1(()=>{var t={6031:()=>{window.addEventListener("load",function(){for(var t=document.getElementsByClassName("accordion-menu-content"),e=0;e<t.length;e++)t[e].querySelector("h4").addEventListener("click",function(){this.parentElement.parentElement.classList.toggle("open")})})},2811:()=>{var t=document.getElementById("allow"),e=document.getElementById("send_btn");null!==t&&null!==e&&(t.checked?e.disabled=!1:e.disabled=!0,t.addEventListener("change",function(t){!0===t.target.checked?e.disabled=!1:e.disabled=!0}))},1468:(t,e,i)=>{var n,o,r,a;function s(t){return s="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},s(t) 2/*! 3 * dist/inputmask.min 4 * https://github.com/RobinHerbots/Inputmask 5 * Copyright (c) 2010 - 2021 Robin Herbots 6 * Licensed under the MIT license 7 * Version: 5.0.7 8 */}t=i.nmd(t),self,a=function(){return function(){"use strict";var t={8741:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=!("undefined"==typeof window||!window.document||!window.document.createElement);e.default=i},3976:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o=(n=i(5581))&&n.__esModule?n:{default:n},r={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(t,e){return"function"==typeof e.onBeforeMask?e.onBeforeMask.call(this,t,e):t},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[o.default.BACKSPACE,o.default.TAB,o.default["PAUSE/BREAK"],o.default.ESCAPE,o.default.PAGE_UP,o.default.PAGE_DOWN,o.default.END,o.default.HOME,o.default.LEFT,o.default.UP,o.default.RIGHT,o.default.DOWN,o.default.INSERT,o.default.DELETE,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}};e.default=r},7392:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={9:{validator:"[0-9ï¼-ï¼]",definitionSymbol:"*"},a:{validator:"[A-Za-zÐ-ÑÐÑÃ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-9ï¼-ï¼A-Za-zÐ-ÑÐÑÃ-ÿµ]"}}},253:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,i){if(void 0===i)return t.__data?t.__data[e]:null;t.__data=t.__data||{},t.__data[e]=i}},3776:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0,e.off=function(t,e){var i,n;function o(t,e,o){if(t in i==1)if(n.removeEventListener?n.removeEventListener(t,o,!1):n.detachEvent&&n.detachEvent("on"+t,o),"global"===e)for(var r in i[t])i[t][r].splice(i[t][r].indexOf(o),1);else i[t][e].splice(i[t][e].indexOf(o),1)}function r(t,n){var o,r,a=[];if(t.length>0)if(void 0===e)for(o=0,r=i[t][n].length;o<r;o++)a.push({ev:t,namespace:n&&n.length>0?n:"global",handler:i[t][n][o]});else a.push({ev:t,namespace:n&&n.length>0?n:"global",handler:e});else if(n.length>0)for(var s in i)for(var l in i[s])if(l===n)if(void 0===e)for(o=0,r=i[s][l].length;o<r;o++)a.push({ev:s,namespace:l,handler:i[s][l][o]});else a.push({ev:s,namespace:l,handler:e});return a}if(u(this[0])&&t){i=this[0].eventRegistry,n=this[0];for(var a=t.split(" "),s=0;s<a.length;s++)for(var l=a[s].split("."),c=r(l[0],l[1]),h=0,d=c.length;h<d;h++)o(c[h].ev,c[h].namespace,c[h].handler)}return this},e.on=function(t,e){function i(t,i){o.addEventListener?o.addEventListener(t,e,!1):o.attachEvent&&o.attachEvent("on"+t,e),n[t]=n[t]||{},n[t][i]=n[t][i]||[],n[t][i].push(e)}if(u(this[0]))for(var n=this[0].eventRegistry,o=this[0],r=t.split(" "),a=0;a<r.length;a++){var s=r[a].split(".");i(s[0],s[1]||"global")}return this},e.trigger=function(t){if(u(this[0]))for(var e=this[0].eventRegistry,i=this[0],n="string"==typeof t?t.split(" "):[t.type],r=0;r<n.length;r++){var s=n[r].split("."),l=s[0],c=s[1]||"global";if(void 0!==document&&"global"===c){var h,d,f={bubbles:!0,cancelable:!0,detail:arguments[1]};
8if(document.createEvent){try{"input"===l?(f.inputType="insertText",h=new InputEvent(l,f)):h=new CustomEvent(l,f)}catch(t){(h=document.createEvent("CustomEvent")).initCustomEvent(l,f.bubbles,f.cancelable,f.detail)}t.type&&(0,o.default)(h,t),i.dispatchEvent(h)}else(h=document.createEventObject()).eventType=l,h.detail=arguments[1],t.type&&(0,o.default)(h,t),i.fireEvent("on"+h.eventType,h)}else if(void 0!==e[l])if(arguments[0]=arguments[0].type?arguments[0]:a.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1),"global"===c)for(var p in e[l])for(d=0;d<e[l][p].length;d++)e[l][p][d].apply(i,arguments);else for(d=0;d<e[l][c].length;d++)e[l][c][d].apply(i,arguments)}return this};var n,o=l(i(600)),r=l(i(9380)),a=l(i(4963)),s=l(i(8741));function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return t instanceof Element}e.Event=n,"function"==typeof r.default.CustomEvent?e.Event=n=r.default.CustomEvent:s.default&&(e.Event=n=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i},n.prototype=r.default.Event.prototype)},600:function(t,e){function i(t){return i="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)},i(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(){var e,n,o,r,a,s,l=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof l&&(h=l,l=arguments[u]||{},u++),"object"!==i(l)&&"function"!=typeof l&&(l={});u<c;u++)if(null!=(e=arguments[u]))for(n in e)o=l[n],l!==(r=e[n])&&(h&&r&&("[object Object]"===Object.prototype.toString.call(r)||(a=Array.isArray(r)))?(a?(a=!1,s=o&&Array.isArray(o)?o:[]):s=o&&"[object Object]"===Object.prototype.toString.call(o)?o:{},l[n]=t(h,s,r)):void 0!==r&&(l[n]=r));return l}},4963:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(i(600)),o=s(i(9380)),r=s(i(253)),a=i(3776);function s(t){return t&&t.__esModule?t:{default:t}}var l=o.default.document;function u(t){return t instanceof u?t:this instanceof u?void(null!=t&&t!==o.default&&(this[0]=t.nodeName?t:void 0!==t[0]&&t[0].nodeName?t[0]:l.querySelector(t),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new u(t)}u.prototype={on:a.on,off:a.off,trigger:a.trigger},u.extend=n.default,u.data=r.default,u.Event=a.Event;var c=u;e.default=c},9845:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.ua=e.mobile=e.iphone=e.iemobile=e.ie=void 0;var n,o=(n=i(9380))&&n.__esModule?n:{default:n},r=o.default.navigator&&o.default.navigator.userAgent||"",a=r.indexOf("MSIE ")>0||r.indexOf("Trident/")>0,s="ontouchstart"in o.default,l=/iemobile/i.test(r),u=/iphone/i.test(r)&&!l;e.iphone=u,e.iemobile=l,e.mobile=s,e.ie=a,e.ua=r},7184:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.replace(i,"\\$1")};var i=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.EventHandlers=void 0;var n,o=i(8711),r=(n=i(5581))&&n.__esModule?n:{default:n},a=i(9845),s=i(7215),l=i(7760),u=i(4713);function c(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return h(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?h(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 r,a=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw r}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var d={keydownEvent:function(t){var e=this.inputmask,i=e.opts,n=e.dependencyLib,c=e.maskset,h=this,d=n(h),f=t.keyCode,p=o.caret.call(e,h),_=i.onKeyDown.call(this,t,o.getBuffer.call(e),p,i);if(void 0!==_)return _;if(f===r.default.BACKSPACE||f===r.default.DELETE||a.iphone&&f===r.default.BACKSPACE_SAFARI||t.ctrlKey&&f===r.default.X&&!("oncut"in h))t.preventDefault(),s.handleRemove.call(e,h,f,p),(0,l.writeBuffer)(h,o.getBuffer.call(e,!0),c.p,t,h.inputmask._valueGet()!==o.getBuffer.call(e).join(""));else if(f===r.default.END||f===r.default.PAGE_DOWN){t.preventDefault();var m=o.seekNext.call(e,o.getLastValidPosition.call(e));o.caret.call(e,h,t.shiftKey?p.begin:m,m,!0)}else f===r.default.HOME&&!t.shiftKey||f===r.default.PAGE_UP?(t.preventDefault(),o.caret.call(e,h,0,t.shiftKey?p.begin:0,!0)):i.undoOnEscape&&f===r.default.ESCAPE&&!0!==t.altKey?((0,l.checkVal)(h,!0,!1,e.undoValue.split("")),d.trigger("click")):f!==r.default.INSERT||t.shiftKey||t.ctrlKey||void 0!==e.userOptions.insertMode?!0===i.tabThrough&&f===r.default.TAB?!0===t.shiftKey?(p.end=o.seekPrevious.call(e,p.end,!0),!0===u.getTest.call(e,p.end-1).match.static&&p.end--,p.begin=o.seekPrevious.call(e,p.end,!0),p.begin>=0&&p.end>0&&(t.preventDefault(),o.caret.call(e,h,p.begin,p.end))):(p.begin=o.seekNext.call(e,p.begin,!0),p.end=o.seekNext.call(e,p.begin,!0),p.end<c.maskLength&&p.end--,p.begin<=c.maskLength&&(t.preventDefault(),o.caret.call(e,h,p.begin,p.end))):t.shiftKey||i.insertModeVisual&&!1===i.insertMode&&(f===r.default.RIGHT?setTimeout(function(){var t=o.caret.call(e,h);o.caret.call(e,h,t.begin)},0):f===r.default.LEFT&&setTimeout(function(){var t=o.translatePosition.call(e,h.inputmask.caretPos.begin);o.translatePosition.call(e,h.inputmask.caretPos.end),e.isRTL?o.caret.call(e,h,t+(t===c.maskLength?0:1)):o.caret.call(e,h,t-(0===t?0:1))},0)):s.isSelection.call(e,p)?i.insertMode=!i.insertMode:(i.insertMode=!i.insertMode,o.caret.call(e,h,p.begin,p.begin));e.ignorable=i.ignorables.includes(f)}
vendor: 7,710 bytes, line 8
8,keypressEvent:function(t,e,i,n,a){var u=this.inputmask||this,c=u.opts,h=u.dependencyLib,d=u.maskset,f=u.el,p=h(f),_=t.keyCode;if(!(!0===e||t.ctrlKey&&t.altKey)&&(t.ctrlKey||t.metaKey||u.ignorable))return _===r.default.ENTER&&u.undoValue!==u._valueGet(!0)&&(u.undoValue=u._valueGet(!0),setTimeout(function(){p.trigger("change")},0)),u.skipInputEvent=!0,!0;if(_){44!==_&&46!==_||3!==t.location||""===c.radixPoint||(_=c.radixPoint.charCodeAt(0));var m,v=e?{begin:a,end:a}:o.caret.call(u,f),g=String.fromCharCode(_);g=c.substitutes[g]||g,d.writeOutBuffer=!0;var y=s.isValid.call(u,v,g,n,void 0,void 0,void 0,e);if(!1!==y&&(o.resetMaskSet.call(u,!0),m=void 0!==y.caret?y.caret:o.seekNext.call(u,y.pos.begin?y.pos.begin:y.pos),d.p=m),m=c.numericInput&&void 0===y.caret?o.seekPrevious.call(u,m):m,!1!==i&&(setTimeout(function(){c.onKeyValidation.call(f,_,y)},0),d.writeOutBuffer&&!1!==y)){var E=o.getBuffer.call(u);(0,l.writeBuffer)(f,E,m,t,!0!==e)}if(t.preventDefault(),e)return!1!==y&&(y.forwardPosition=m),y}},keyupEvent:function(t){var e=this.inputmask;!e.isComposing||t.keyCode!==r.default.KEY_229&&t.keyCode!==r.default.ENTER||e.$el.trigger("input")},pasteEvent:function(t){var e,i=this.inputmask,n=i.opts,r=i._valueGet(!0),a=o.caret.call(i,this);i.isRTL&&(e=a.end,a.end=o.translatePosition.call(i,a.begin),a.begin=o.translatePosition.call(i,e));var s=r.substr(0,a.begin),u=r.substr(a.end,r.length);if(s==(i.isRTL?o.getBufferTemplate.call(i).slice().reverse():o.getBufferTemplate.call(i)).slice(0,a.begin).join("")&&(s=""),u==(i.isRTL?o.getBufferTemplate.call(i).slice().reverse():o.getBufferTemplate.call(i)).slice(a.end).join("")&&(u=""),window.clipboardData&&window.clipboardData.getData)r=s+window.clipboardData.getData("Text")+u;else{if(!t.clipboardData||!t.clipboardData.getData)return!0;r=s+t.clipboardData.getData("text/plain")+u}var h=r;if(i.isRTL){h=h.split("");var d,f=c(o.getBufferTemplate.call(i));try{for(f.s();!(d=f.n()).done;){var p=d.value;h[0]===p&&h.shift()}}catch(t){f.e(t)}finally{f.f()}h=h.join("")}if("function"==typeof n.onBeforePaste){if(!1===(h=n.onBeforePaste.call(i,h,n)))return!1;h||(h=r)}(0,l.checkVal)(this,!0,!1,h.toString().split(""),t),t.preventDefault()},inputFallBackEvent:function(t){var e=this.inputmask,i=e.opts,n=e.dependencyLib,s=this,c=s.inputmask._valueGet(!0),h=(e.isRTL?o.getBuffer.call(e).slice().reverse():o.getBuffer.call(e)).join(""),f=o.caret.call(e,s,void 0,void 0,!0);if(h!==c){c=function(t,i,n){if(a.iemobile){var r=i.replace(o.getBuffer.call(e).join(""),"");if(1===r.length){var s=i.split("");s.splice(n.begin,0,r),i=s.join("")}}return i}(0,c,f);var p=function(t,n,r){for(var a,s,l,c=t.substr(0,r.begin).split(""),h=t.substr(r.begin).split(""),d=n.substr(0,r.begin).split(""),f=n.substr(r.begin).split(""),p=c.length>=d.length?c.length:d.length,_=h.length>=f.length?h.length:f.length,m="",v=[],g="~";c.length<p;)c.push(g);for(;d.length<p;)d.push(g);for(;h.length<_;)h.unshift(g);for(;f.length<_;)f.unshift(g);var y=c.concat(h),E=d.concat(f);for(s=0,a=y.length;s<a;s++)switch(l=u.getPlaceholder.call(e,o.translatePosition.call(e,s)),m){case"insertText":E[s-1]===y[s]&&r.begin==y.length-1&&v.push(y[s]),s=a;break;case"insertReplacementText":case"deleteContentBackward":y[s]===g?r.end++:s=a;break;default:y[s]!==E[s]&&(y[s+1]!==g&&y[s+1]!==l&&void 0!==y[s+1]||(E[s]!==l||E[s+1]!==g)&&E[s]!==g?E[s+1]===g&&E[s]===y[s+1]?(m="insertText",v.push(y[s]),r.begin--,r.end--):y[s]!==l&&y[s]!==g&&(y[s+1]===g||E[s]!==y[s]&&E[s+1]===y[s+1])?(m="insertReplacementText",v.push(y[s]),r.begin--):y[s]===g?(m="deleteContentBackward",(o.isMask.call(e,o.translatePosition.call(e,s),!0)||E[s]===i.radixPoint)&&r.end++):s=a:(m="insertText",v.push(y[s]),r.begin--,r.end--))}return{action:m,data:v,caret:r}}(c,h,f);switch((s.inputmask.shadowRoot||s.ownerDocument).activeElement!==s&&s.focus(),(0,l.writeBuffer)(s,o.getBuffer.call(e)),o.caret.call(e,s,f.begin,f.end,!0),p.action){case"insertText":case"insertReplacementText":p.data.forEach(function(t,i){var o=new n.Event("keypress");o.keyCode=t.charCodeAt(0),e.ignorable=!1,d.keypressEvent.call(s,o)}),setTimeout(function(){e.$el.trigger("keyup")},0);break;case"deleteContentBackward":var _=new n.Event("keydown");_.keyCode=r.default.BACKSPACE,d.keydownEvent.call(s,_);break;default:(0,l.applyInputValue)(s,c)}t.preventDefault()}},compositionendEvent:function(t){var e=this.inputmask;e.isComposing=!1,e.$el.trigger("input")},setValueEvent:function(t){var e=this.inputmask,i=this,n=t&&t.detail?t.detail[0]:arguments[1];void 0===n&&(n=i.inputmask._valueGet(!0)),(0,l.applyInputValue)(i,n),(t.detail&&void 0!==t.detail[1]||void 0!==arguments[2])&&o.caret.call(e,i,t.detail?t.detail[1]:arguments[2])},focusEvent:function(t){var e=this.inputmask,i=e.opts,n=this,r=n.inputmask._valueGet();i.showMaskOnFocus&&r!==o.getBuffer.call(e).join("")&&(0,l.writeBuffer)(n,o.getBuffer.call(e),o.seekNext.call(e,o.getLastValidPosition.call(e))),!0!==i.positionCaretOnTab||!1!==e.mouseEnter||s.isComplete.call(e,o.getBuffer.call(e))&&-1!==o.getLastValidPosition.call(e)||d.clickEvent.apply(n,[t,!0]),e.undoValue=e._valueGet(!0)},invalidEvent:function(t){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var t=this.inputmask,e=t.opts,i=this;t.mouseEnter=!1,e.clearMaskOnLostFocus&&(i.inputmask.shadowRoot||i.ownerDocument).activeElement!==i&&(0,l.HandleNativePlaceholder)(i,t.originalPlaceholder)},clickEvent:function(t,e){var i=this.inputmask,n=this;if((n.inputmask.shadowRoot||n.ownerDocument).activeElement===n){var r=o.determineNewCaretPosition.call(i,o.caret.call(i,n),e);void 0!==r&&o.caret.call(i,n,r)}},cutEvent:function(t){var e=this.inputmask,i=e.maskset,n=this,a=o.caret.call(e,n),u=e.isRTL?o.getBuffer.call(e).slice(a.end,a.begin):o.getBuffer.call(e).slice(a.begin,a.end),c=e.isRTL?u.reverse().join(""):u.join("");window.navigator.clipboard?window.navigator.clipboard.writeText(c):window.clipboardData&&window.clipboardData.getData&&window.clipboardData.setData("Text",c),s.handleRemove.call(e,n,r.default.DELETE,a),(0,l.writeBuffer)(n,o.getBuffer.call(e),i.p,t,e.undoValue!==e._valueGet(!0))},blurEvent:function(t){var e=this.inputmask,i=e.opts,n=(0,e.dependencyLib)(this),r=this;if(r.inputmask){(0,l.HandleNativePlaceholder)(r,e.originalPlaceholder);var a=r.inputmask._valueGet(),u=o.getBuffer.call(e).slice();""!==a&&(i.clearMaskOnLostFocus&&(-1===o.getLastValidPosition.call(e)&&a===o.getBufferTemplate.call(e).join("")?u=[]:l.clearOptionalTail.call(e,u)),!1===s.isComplete.call(e,u)&&(setTimeout(function(){n.trigger("incomplete")},0),i.clearIncomplete&&(o.resetMaskSet.call(e),u=i.clearMaskOnLostFocus?[]:o.getBufferTemplate.call(e).slice())),(0,l.writeBuffer)(r,u,void 0,t)),e.undoValue!==e._valueGet(!0)&&(e.undoValue=e._valueGet(!0),n.trigger("change"))}},mouseenterEvent:function(){var t=this.inputmask,e=t.opts,i=this;if(t.mouseEnter=!0,(i.inputmask.shadowRoot||i.ownerDocument).activeElement!==i){var n=(t.isRTL?o.getBufferTemplate.call(t).slice().reverse():o.getBufferTemplate.call(t)).join("");t.placeholder!==n&&i.placeholder!==t.originalPlaceholder&&(t.originalPlaceholder=i.placeholder),e.showMaskOnHover&&(0,l.HandleNativePlaceholder)(i,n)}},submitEvent:function(){var t=this.inputmask,e=t.opts;t.undoValue!==t._valueGet(!0)&&t.$el.trigger("change"),-1===o.getLastValidPosition.call(t)&&t._valueGet&&t._valueGet()===o.getBufferTemplate.call(t).join("")&&t._valueSet(""),e.clearIncomplete&&!1===s.isComplete.call(t,o.getBuffer.call(t))&&t._valueSet(""),e.removeMaskOnSubmit&&(t._valueSet(t.unmaskedvalue(),!0),setTimeout(function(){(0,l.writeBuffer)(t.el,o.getBuffer.call(t))},0))},resetEvent:function(){var t=this.inputmask;t.refreshValue=!0,setTimeout(function(){(0,l.applyInputValue)(t.el,t._valueGet(!0))}
8,0)}};e.EventHandlers=d},9716:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.EventRuler=void 0;var n=s(i(2394)),o=s(i(5581)),r=i(8711),a=i(7760);function s(t){return t&&t.__esModule?t:{default:t}}var l={on:function(t,e,i){var s=t.inputmask.dependencyLib,l=function(e){e.originalEvent&&(e=e.originalEvent||e,arguments[0]=e);var l,u=this,c=u.inputmask,h=c?c.opts:void 0;if(void 0===c&&"FORM"!==this.nodeName){var d=s.data(u,"_inputmask_opts");s(u).off(),d&&new n.default(d).mask(u)}else{if(["submit","reset","setvalue"].includes(e.type)||"FORM"===this.nodeName||!(u.disabled||u.readOnly&&!("keydown"===e.type&&e.ctrlKey&&67===e.keyCode||!1===h.tabThrough&&e.keyCode===o.default.TAB))){switch(e.type){case"input":if(!0===c.skipInputEvent||e.inputType&&"insertCompositionText"===e.inputType)return c.skipInputEvent=!1,e.preventDefault();break;case"keydown":c.skipKeyPressEvent=!1,c.skipInputEvent=c.isComposing=e.keyCode===o.default.KEY_229;break;case"keyup":case"compositionend":c.isComposing&&(c.skipInputEvent=!1);break;case"keypress":if(!0===c.skipKeyPressEvent)return e.preventDefault();c.skipKeyPressEvent=!0;break;case"click":case"focus":return c.validationEvent?(c.validationEvent=!1,t.blur(),(0,a.HandleNativePlaceholder)(t,(c.isRTL?r.getBufferTemplate.call(c).slice().reverse():r.getBufferTemplate.call(c)).join("")),setTimeout(function(){t.focus()},h.validationEventTimeOut),!1):(l=arguments,setTimeout(function(){t.inputmask&&i.apply(u,l)},0),!1)}var f=i.apply(u,arguments);return!1===f&&(e.preventDefault(),e.stopPropagation()),f}e.preventDefault()}};["submit","reset"].includes(e)?(l=l.bind(t),null!==t.form&&s(t.form).on(e,l)):s(t).on(e,l),t.inputmask.events[e]=t.inputmask.events[e]||[],t.inputmask.events[e].push(l)},off:function(t,e){if(t.inputmask&&t.inputmask.events){var i=t.inputmask.dependencyLib,n=t.inputmask.events;for(var o in e&&((n=[])[e]=t.inputmask.events[e]),n){for(var r=n[o];r.length>0;){var a=r.pop();["submit","reset"].includes(o)?null!==t.form&&i(t.form).off(o,a):i(t).off(o,a)}delete t.inputmask.events[o]}}}};e.EventRuler=l},219:function(t,e,i){var n=d(i(2394)),o=d(i(5581)),r=d(i(7184)),a=i(8711),l=i(4713);function u(t){return u="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)},u(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t){return t&&t.__esModule?t:{default:t}}var f=n.default.dependencyLib,p=function(){function t(e,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.mask=e,this.format=i,this.opts=n,this._date=new Date(1,0,1),this.initDateObject(e,this.opts)}var e,i;return e=t,(i=[{key:"date",get:function(){return void 0===this._date&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts)),this._date}},{key:"initDateObject",value:function(t,e){var i;for(T(e).lastIndex=0;i=T(e).exec(this.format);){var n=new RegExp("\\d+$").exec(i[0]),o=n?i[0][0]+"x":i[0],r=void 0;if(void 0!==t){if(n){var a=T(e).lastIndex,s=M(i.index,e);T(e).lastIndex=a,r=t.slice(0,t.indexOf(s.nextMatch[0]))}else r=t.slice(0,o.length);t=t.slice(r.length)}Object.prototype.hasOwnProperty.call(v,o)&&this.setValue(this,r,o,v[o][2],v[o][1])}}},{key:"setValue",value:function(t,e,i,n,o){if(void 0!==e&&(t[n]="ampm"===n?e:e.replace(/[^0-9]/g,"0"),t["raw"+n]=e.replace(/\s/g,"_")),void 0!==o){var r=t[n];("day"===n&&29===parseInt(r)||"month"===n&&2===parseInt(r))&&(29!==parseInt(t.day)||2!==parseInt(t.month)||""!==t.year&&void 0!==t.year||t._date.setFullYear(2012,1,29)),"day"===n&&(m=!0,0===parseInt(r)&&(r=1)),"month"===n&&(m=!0),"year"===n&&(m=!0,r.length<4&&(r=I(r,4,!0))),""===r||isNaN(r)||o.call(t._date,r),"ampm"===n&&o.call(t._date,r)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}
vendor: 4,124 bytes, line 8
8])&&h(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),_=(new Date).getFullYear(),m=!1,v={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return I(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(t){var e=t?parseInt(t):0;return e>0&&e--,Date.prototype.setMonth.call(this,e)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(t){var e=t?parseInt(t):0;return e>0&&e--,Date.prototype.setMonth.call(this,e)},"month",function(){return I(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return I(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return I(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return I(Date.prototype.getHours.call(this),2)}],hx:[function(t){return"[0-9]{".concat(t,"}")},Date.prototype.setHours,"hours",function(t){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return I(Date.prototype.getHours.call(this),2)}],Hx:[function(t){return"[0-9]{".concat(t,"}")},Date.prototype.setHours,"hours",function(t){return function(){return I(Date.prototype.getHours.call(this),t)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return I(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return I(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return I(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return I(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]",y,"ampm",E,1],tt:["[ap]m",y,"ampm",E,2],T:["[AP]",y,"ampm",E,1],TT:["[AP]M",y,"ampm",E,2],Z:[".*",void 0,"Z",function(){var t=this.toString().match(/\((.+)\)/)[1];return t.includes(" ")&&(t=(t=t.replace("-"," ").toUpperCase()).split(" ").map(function(t){return function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,r=[],a=!0,s=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(r.push(n.value),!e||r.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==i.return||i.return()}finally{if(s)throw o}}return r}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(t,e):void 0}}(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.")}()}(t,1)[0]}).join("")),t}],o:[""],S:[""]},g={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function y(t){var e=this.getHours();t.toLowerCase().includes("p")?this.setHours(e+12):t.toLowerCase().includes("a")&&e>=12&&this.setHours(e-12)}function E(){var t=this.getHours();return(t=t||12)>=12?"PM":"AM"}function L(t){var e=new RegExp("\\d+$").exec(t[0]);if(e&&void 0!==e[0]){var i=v[t[0][0]+"x"].slice("");return i[0]=i[0](e[0]),i[3]=i[3](e[0]),i}if(v[t[0]])return v[t[0]]}function T(t){if(!t.tokenizer){var e=[],i=[];for(var n in v)if(/\.*x$/.test(n)){var o=n[0]+"\\d+";-1===i.indexOf(o)&&i.push(o)}else-1===e.indexOf(n[0])&&e.push(n[0]);
8t.tokenizer="("+(i.length>0?i.join("|")+"|":"")+e.join("+|")+")+?|.",t.tokenizer=new RegExp(t.tokenizer,"g")}return t.tokenizer}function b(t,e,i){if(!m)return!0;if(void 0===t.rawday||!isFinite(t.rawday)&&new Date(t.date.getFullYear(),isFinite(t.rawmonth)?t.month:t.date.getMonth()+1,0).getDate()>=t.day||"29"==t.day&&(!isFinite(t.rawyear)||void 0===t.rawyear||""===t.rawyear)||new Date(t.date.getFullYear(),isFinite(t.rawmonth)?t.month:t.date.getMonth()+1,0).getDate()>=t.day)return e;if("29"==t.day){var n=M(e.pos,i);if("yyyy"===n.targetMatch[0]&&e.pos-n.targetMatchIndex==2)return e.remove=e.pos+1,e}else if("02"==t.month&&"30"==t.day&&void 0!==e.c)return t.day="03",t.date.setDate(3),t.date.setMonth(1),e.insert=[{pos:e.pos,c:"0"},{pos:e.pos+1,c:e.c}],e.caret=a.seekNext.call(this,e.pos+1),e;return!1}function w(t,e,i,n){var o,a,s="";for(T(i).lastIndex=0;o=T(i).exec(t);)if(void 0===e)if(a=L(o))s+="("+a[0]+")";else switch(o[0]){case"[":s+="(";break;case"]":s+=")?";break;default:s+=(0,r.default)(o[0])}else(a=L(o))?!0!==n&&a[3]?s+=a[3].call(e.date):a[2]?s+=e["raw"+a[2]]:s+=o[0]:s+=o[0];return s}function I(t,e,i){for(t=String(t),e=e||2;t.length<e;)t=i?t+"0":"0"+t;return t}function P(t,e,i){return"string"==typeof t?new p(t,e,i):t&&"object"===u(t)&&Object.prototype.hasOwnProperty.call(t,"date")?t:void 0}function x(t,e){return w(e.inputFormat,{date:t},e)}function M(t,e){var i,n,o=0,r=0;for(T(e).lastIndex=0;n=T(e).exec(e.inputFormat);){var a=new RegExp("\\d+$").exec(n[0]);if((o+=r=a?parseInt(a[0]):n[0].length)>=t+1){i=n,n=T(e).exec(e.inputFormat);break}}return{targetMatchIndex:o-r,nextMatch:n,targetMatch:i}}n.default.extendAliases({datetime:{mask:function(t){return t.numericInput=!1,v.S=t.i18n.ordinalSuffix.join("|"),t.inputFormat=g[t.inputFormat]||t.inputFormat,t.displayFormat=g[t.displayFormat]||t.displayFormat||t.inputFormat,t.outputFormat=g[t.outputFormat]||t.outputFormat||t.inputFormat,t.placeholder=""!==t.placeholder?t.placeholder:t.inputFormat.replace(/[[\]]/,""),t.regex=w(t.inputFormat,void 0,t),t.min=P(t.min,t.inputFormat,t),t.max=P(t.max,t.inputFormat,t),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(t,e,i,n,o,r,a,s){if(s)return!0;if(isNaN(i)&&t[e]!==i){var l=M(e,o);if(l.nextMatch&&l.nextMatch[0]===i&&l.targetMatch[0].length>1){var u=v[l.targetMatch[0]][0];if(new RegExp(u).test("0"+t[e-1]))return t[e]=t[e-1],t[e-1]="0",{fuzzy:!0,buffer:t,refreshFromBuffer:{start:e-1,end:e+1},pos:e+1}}}return!0},postValidation:function(t,e,i,n,o,r,a,s){var u,c;if(a)return!0;if(!1===n&&(((u=M(e+1,o)).targetMatch&&u.targetMatchIndex===e&&u.targetMatch[0].length>1&&void 0!==v[u.targetMatch[0]]||(u=M(e+2,o)).targetMatch&&u.targetMatchIndex===e+1&&u.targetMatch[0].length>1&&void 0!==v[u.targetMatch[0]])&&(c=v[u.targetMatch[0]][0]),void 0!==c&&(void 0!==r.validPositions[e+1]&&new RegExp(c).test(i+"0")?(t[e]=i,t[e+1]="0",n={pos:e+2,caret:e}):new RegExp(c).test("0"+i)&&(t[e]="0",t[e+1]=i,n={pos:e+2})),!1===n))return n;if(n.fuzzy&&(t=n.buffer,e=n.pos),(u=M(e,o)).targetMatch&&u.targetMatch[0]&&void 0!==v[u.targetMatch[0]]){var h=v[u.targetMatch[0]];c=h[0];var d=t.slice(u.targetMatchIndex,u.targetMatchIndex+u.targetMatch[0].length);if(!1===new RegExp(c).test(d.join(""))&&2===u.targetMatch[0].length&&r.validPositions[u.targetMatchIndex]&&r.validPositions[u.targetMatchIndex+1]&&(r.validPositions[u.targetMatchIndex+1].input="0"),"year"==h[2])for(var f=l.getMaskTemplate.call(this,!1,1,void 0,!0),p=e+1;p<t.length;p++)t[p]=f[p],delete r.validPositions[p]}var m=n,g=P(t.join(""),o.inputFormat,o);return m&&g.date.getTime()==g.date.getTime()&&(o.prefillYear&&(m=function(t,e,i){if(t.year!==t.rawyear){var n=_.toString(),o=t.rawyear.replace(/[^0-9]/g,""),r=n.slice(0,o.length),a=n.slice(o.length);if(2===o.length&&o===r){var s=new Date(_,t.month-1,t.day);t.day==s.getDate()&&(!i.max||i.max.date.getTime()>=s.getTime())&&(t.date.setFullYear(_),t.year=n,e.insert=[{pos:e.pos+1,c:a[0]},{pos:e.pos+2,c:a[1]}])}}return e}
8(g,m,o)),m=function(t,e,i,n){if(!e)return e;if(e&&i.min&&i.min.date.getTime()==i.min.date.getTime()){var o;for(t.reset(),T(i).lastIndex=0;o=T(i).exec(i.inputFormat);){var r;if((r=L(o))&&r[3]){for(var a=r[1],s=t[r[2]],l=i.min[r[2]],u=i.max?i.max[r[2]]:l,c=[],h=!1,d=0;d<l.length;d++)void 0!==n.validPositions[d+o.index]||h?(c[d]=s[d],h=h||s[d]>l[d]):(c[d]=l[d],"year"===r[2]&&s.length-1==d&&l!=u&&(c=(parseInt(c.join(""))+1).toString().split("")),"ampm"===r[2]&&l!=u&&i.min.date.getTime()>t.date.getTime()&&(c[d]=u[d]));a.call(t._date,c.join(""))}}e=i.min.date.getTime()<=t.date.getTime(),t.reInit()}return e&&i.max&&i.max.date.getTime()==i.max.date.getTime()&&(e=i.max.date.getTime()>=t.date.getTime()),e}(g,m=b.call(this,g,m,o),o,r)),void 0!==e&&m&&n.pos!==e?{buffer:w(o.inputFormat,g,o).split(""),refreshFromBuffer:{start:e,end:n.pos},pos:n.caret||n.pos}:m},onKeyDown:function(t,e,i,n){t.ctrlKey&&t.keyCode===o.default.RIGHT&&(this.inputmask._valueSet(x(new Date,n)),f(this).trigger("setvalue"))},onUnMask:function(t,e,i){return e?w(i.outputFormat,P(t,i.inputFormat,i),i,!0):e},casing:function(t,e,i,n){return 0==e.nativeDef.indexOf("[ap]")?t.toLowerCase():0==e.nativeDef.indexOf("[AP]")?t.toUpperCase():t},onBeforeMask:function(t,e){return"[object Date]"===Object.prototype.toString.call(t)&&(t=x(t,e)),t},insertMode:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(t,e,i){var n,o=(n=i(2394))&&n.__esModule?n:{default:n},r=i(8711),a=i(4713);o.default.extendDefinitions({A:{validator:"[A-Za-zÐ-ÑÐÑÃ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zÐ-ÑÐÑÃ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var s=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function l(t,e,i,n,o){return i-1>-1&&"."!==e.buffer[i-1]?(t=e.buffer[i-1]+t,t=i-2>-1&&"."!==e.buffer[i-2]?e.buffer[i-2]+t:"0"+t):t="00"+t,s.test(t)}o.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:l},j:{validator:l},k:{validator:l},l:{validator:l}},onUnMask:function(t,e,i){return t},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(t){var e="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",i=e;if(t.separator)for(var n=0;n<t.quantifier;n++)i+="[".concat(t.separator).concat(e,"]");return i},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(t,e){return(t=t.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9ï¼-ï¼A-Za-zÐ-ÑÐÑÃ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(t,e,i){return t},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(t,e,i,n,o,s,l){var u=a.getMaskTemplate.call(this,!0,r.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(u.join(""))}}})},207:function(t,e,i){var n=s(i(2394)),o=s(i(5581)),r=s(i(7184)),a=i(8711);function s(t){return t&&t.__esModule?t:{default:t}}var l=n.default.dependencyLib;function u(t,e){for(var i="",o=0;o<t.length;o++)n.default.prototype.definitions[t.charAt(o)]||e.definitions[t.charAt(o)]||e.optionalmarker[0]===t.charAt(o)||e.optionalmarker[1]===t.charAt(o)||e.quantifiermarker[0]===t.charAt(o)||e.quantifiermarker[1]===t.charAt(o)||e.groupmarker[0]===t.charAt(o)||e.groupmarker[1]===t.charAt(o)||e.alternatormarker===t.charAt(o)?i+="\\"+t.charAt(o):i+=t.charAt(o);return i}function c(t,e,i,n){if(t.length>0&&e>0&&(!i.digitsOptional||n)){var o=t.indexOf(i.radixPoint),r=!1;i.negationSymbol.back===t[t.length-1]&&(r=!0,t.length--),-1===o&&(t.push(i.radixPoint),o=t.length-1);for(var a=1;a<=e;a++)isFinite(t[o+a])||(t[o+a]="0")}return r&&t.push(i.negationSymbol.back),t}function h(t,e){var i=0;if("+"===t){for(i in e.validPositions);i=a.seekNext.call(this,parseInt(i))}
vendor: 18,352 bytes, line 8
8for(var n in e.tests)if((n=parseInt(n))>=i)for(var o=0,r=e.tests[n].length;o<r;o++)if((void 0===e.validPositions[n]||"-"===t)&&e.tests[n][o].match.def===t)return n+(void 0!==e.validPositions[n]&&"-"!==t?1:0);return i}function d(t,e){var i=-1;for(var n in e.validPositions){var o=e.validPositions[n];if(o&&o.match.def===t){i=parseInt(n);break}}return i}function f(t,e,i,n,o){var r=e.buffer?e.buffer.indexOf(o.radixPoint):-1,a=(-1!==r||n&&o.jitMasking)&&new RegExp(o.definitions[9].validator).test(t);return o._radixDance&&-1!==r&&a&&null==e.validPositions[r]?{insert:{pos:r===i?r+1:r,c:o.radixPoint},pos:i}:a}n.default.extendAliases({numeric:{mask:function(t){t.repeat=0,t.groupSeparator===t.radixPoint&&t.digits&&"0"!==t.digits&&("."===t.radixPoint?t.groupSeparator=",":","===t.radixPoint?t.groupSeparator=".":t.groupSeparator="")," "===t.groupSeparator&&(t.skipOptionalPartCharacter=void 0),t.placeholder.length>1&&(t.placeholder=t.placeholder.charAt(0)),"radixFocus"===t.positionCaretOnClick&&""===t.placeholder&&(t.positionCaretOnClick="lvp");var e="0",i=t.radixPoint;!0===t.numericInput&&void 0===t.__financeInput?(e="1",t.positionCaretOnClick="radixFocus"===t.positionCaretOnClick?"lvp":t.positionCaretOnClick,t.digitsOptional=!1,isNaN(t.digits)&&(t.digits=2),t._radixDance=!1,i=","===t.radixPoint?"?":"!",""!==t.radixPoint&&void 0===t.definitions[i]&&(t.definitions[i]={},t.definitions[i].validator="["+t.radixPoint+"]",t.definitions[i].placeholder=t.radixPoint,t.definitions[i].static=!0,t.definitions[i].generated=!0)):(t.__financeInput=!1,t.numericInput=!0);var n,o="[+]";if(o+=u(t.prefix,t),""!==t.groupSeparator?(void 0===t.definitions[t.groupSeparator]&&(t.definitions[t.groupSeparator]={},t.definitions[t.groupSeparator].validator="["+t.groupSeparator+"]",t.definitions[t.groupSeparator].placeholder=t.groupSeparator,t.definitions[t.groupSeparator].static=!0,t.definitions[t.groupSeparator].generated=!0),o+=t._mask(t)):o+="9{+}",void 0!==t.digits&&0!==t.digits){var a=t.digits.toString().split(",");isFinite(a[0])&&a[1]&&isFinite(a[1])?o+=i+e+"{"+t.digits+"}":(isNaN(t.digits)||parseInt(t.digits)>0)&&(t.digitsOptional||t.jitMasking?(n=o+i+e+"{0,"+t.digits+"}",t.keepStatic=!0):o+=i+e+"{"+t.digits+"}")}else t.inputmode="numeric";return o+=u(t.suffix,t),o+="[-]",n&&(o=[n+u(t.suffix,t)+"[-]",o]),t.greedy=!1,function(t){void 0===t.parseMinMaxOptions&&(null!==t.min&&(t.min=t.min.toString().replace(new RegExp((0,r.default)(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.min=t.min.replace(t.radixPoint,".")),t.min=isFinite(t.min)?parseFloat(t.min):NaN,isNaN(t.min)&&(t.min=Number.MIN_VALUE)),null!==t.max&&(t.max=t.max.toString().replace(new RegExp((0,r.default)(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.max=t.max.replace(t.radixPoint,".")),t.max=isFinite(t.max)?parseFloat(t.max):NaN,isNaN(t.max)&&(t.max=Number.MAX_VALUE)),t.parseMinMaxOptions="done")}(t),""!==t.radixPoint&&(t.substitutes["."==t.radixPoint?",":"."]=t.radixPoint),o},_mask:function(t){return"("+t.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,definitions:{0:{validator:f},1:{validator:f,definitionSymbol:"9"},9:{validator:"[0-9ï¼-ï¼Ù -Ù©Û°-Û¹]",definitionSymbol:"*"},"+":{validator:function(t,e,i,n,o){return o.allowMinus&&("-"===t||t===o.negationSymbol.front)}},"-":{validator:function(t,e,i,n,o){return o.allowMinus&&t===o.negationSymbol.back}}},preValidation:function(t,e,i,n,o,r,a,s){if(!1!==o.__financeInput&&i===o.radixPoint)return!1;var l=t.indexOf(o.radixPoint),u=e;if(e=function(t,e,i,n,o){return o._radixDance&&o.numericInput&&e!==o.negationSymbol.back&&t<=i&&(i>0||e==o.radixPoint)&&(void 0===n.validPositions[t-1]||n.validPositions[t-1].input!==o.negationSymbol.back)&&(t-=1),t}(e,i,l,r,o),"-"===i||i===o.negationSymbol.front){if(!0!==o.allowMinus)return!1;var c=!1,f=d("+",r),p=d("-",r);return-1!==f&&(c=[f,p]),!1!==c?{remove:c,caret:u-o.negationSymbol.back.length}:{insert:[{pos:h.call(this,"+",r),c:o.negationSymbol.front,fromIsValid:!0},{pos:h.call(this,"-",r),c:o.negationSymbol.back,fromIsValid:void 0}],caret:u+o.negationSymbol.back.length}}if(i===o.groupSeparator)return{caret:u};if(s)return!0;if(-1!==l&&!0===o._radixDance&&!1===n&&i===o.radixPoint&&void 0!==o.digits&&(isNaN(o.digits)||parseInt(o.digits)>0)&&l!==e)return{caret:o._radixDance&&e===l-1?l+1:l};if(!1===o.__financeInput)if(n){if(o.digitsOptional)return{rewritePosition:a.end};if(!o.digitsOptional){if(a.begin>l&&a.end<=l)return i===o.radixPoint?{insert:{pos:l+1,c:"0",fromIsValid:!0},rewritePosition:l}:{rewritePosition:l+1};if(a.begin<l)return{rewritePosition:a.begin-1}}}else if(!o.showMaskOnHover&&!o.showMaskOnFocus&&!o.digitsOptional&&o.digits>0&&""===this.__valueGet.call(this.el))return{rewritePosition:l};return{rewritePosition:e}},postValidation:function(t,e,i,n,o,r,a){if(!1===n)return n;if(a)return!0;if(null!==o.min||null!==o.max){var s=o.onUnMask(t.slice().reverse().join(""),void 0,l.extend({},o,{unmaskAsNumber:!0}));if(null!==o.min&&s<o.min&&(s.toString().length>o.min.toString().length||s<0))return!1;if(null!==o.max&&s>o.max)return!!o.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:c(o.max.toString().replace(".",o.radixPoint).split(""),o.digits,o).reverse()}}return n},onUnMask:function(t,e,i){if(""===e&&!0===i.nullable)return e;var n=t.replace(i.prefix,"");return n=(n=n.replace(i.suffix,"")).replace(new RegExp((0,r.default)(i.groupSeparator),"g"),""),""!==i.placeholder.charAt(0)&&(n=n.replace(new RegExp(i.placeholder.charAt(0),"g"),"0")),i.unmaskAsNumber?(""!==i.radixPoint&&-1!==n.indexOf(i.radixPoint)&&(n=n.replace(r.default.call(this,i.radixPoint),".")),n=(n=n.replace(new RegExp("^"+(0,r.default)(i.negationSymbol.front)),"-")).replace(new RegExp((0,r.default)(i.negationSymbol.back)+"$"),""),Number(n)):n},isComplete:function(t,e){var i=(e.numericInput?t.slice().reverse():t).join("");return i=(i=(i=(i=(i=i.replace(new RegExp("^"+(0,r.default)(e.negationSymbol.front)),"-")).replace(new RegExp((0,r.default)(e.negationSymbol.back)+"$"),"")).replace(e.prefix,"")).replace(e.suffix,"")).replace(new RegExp((0,r.default)(e.groupSeparator)+"([0-9]{3})","g"),"$1"),","===e.radixPoint&&(i=i.replace((0,r.default)(e.radixPoint),".")),isFinite(i)},onBeforeMask:function(t,e){var i=e.radixPoint||",";isFinite(e.digits)&&(e.digits=parseInt(e.digits)),"number"!=typeof t&&"number"!==e.inputType||""===i||(t=t.toString().replace(".",i));var n="-"===t.charAt(0)||t.charAt(0)===e.negationSymbol.front,o=t.split(i),a=o[0].replace(/[^\-0-9]/g,""),s=o.length>1?o[1].replace(/[^0-9]/g,""):"",l=o.length>1;t=a+(""!==s?i+s:s);var u=0;if(""!==i&&(u=e.digitsOptional?e.digits<s.length?e.digits:s.length:e.digits,""!==s||!e.digitsOptional)){var h=Math.pow(10,u||1);t=t.replace((0,r.default)(i),"."),isNaN(parseFloat(t))||(t=(e.roundingFN(parseFloat(t)*h)/h).toFixed(u)),t=t.toString().replace(".",i)}if(0===e.digits&&-1!==t.indexOf(i)&&(t=t.substring(0,t.indexOf(i))),null!==e.min||null!==e.max){var d=t.toString().replace(i,".");null!==e.min&&d<e.min?t=e.min.toString().replace(".",i):null!==e.max&&d>e.max&&(t=e.max.toString().replace(".",i))}return n&&"-"!==t.charAt(0)&&(t="-"+t),c(t.toString().split(""),u,e,l).join("")},onBeforeWrite:function(t,e,i,n){function o(t,e){if(!1!==n.__financeInput||e){var i=t.indexOf(n.radixPoint);-1!==i&&t.splice(i,1)}if(""!==n.groupSeparator)for(;-1!==(i=t.indexOf(n.groupSeparator));)t.splice(i,1);return t}var a,s;if(n.stripLeadingZeroes&&(s=function(t,e){var i=new RegExp("(^"+(""!==e.negationSymbol.front?(0,r.default)(e.negationSymbol.front)+"?":"")+(0,r.default)(e.prefix)+")(.*)("+(0,r.default)(e.suffix)+(""!=e.negationSymbol.back?(0,r.default)(e.negationSymbol.back)+"?":"")+"$)").exec(t.slice().reverse().join("")),n=i?i[2]:"",o=!1;return n&&(n=n.split(e.radixPoint.charAt(0))[0],o=new RegExp("^[0"+e.groupSeparator+"]*").exec(n)),!(!o||!(o[0].length>1||o[0].length>0&&o[0].length<n.length))&&o}(e,n)))for(var u=e.join("").lastIndexOf(s[0].split("").reverse().join(""))-(s[0]==s.input?0:1),h=s[0]==s.input?1:0,d=s[0].length-h;d>0;d--)delete this.maskset.validPositions[u+d],delete e[u+d];if(t)switch(t.type){case"blur":case"checkval":if(null!==n.min){var f=n.onUnMask(e.slice().reverse().join(""),void 0,l.extend({},n,{unmaskAsNumber:!0}));if(null!==n.min&&f<n.min)return{refreshFromBuffer:!0,buffer:c(n.min.toString().replace(".",n.radixPoint).split(""),n.digits,n).reverse()}}if(e[e.length-1]===n.negationSymbol.front){var p=new RegExp("(^"+(""!=n.negationSymbol.front?(0,r.default)(n.negationSymbol.front)+"?":"")+(0,r.default)(n.prefix)+")(.*)("+(0,r.default)(n.suffix)+(""!=n.negationSymbol.back?(0,r.default)(n.negationSymbol.back)+"?":"")+"$)").exec(o(e.slice(),!0).reverse().join(""));0==(p?p[2]:"")&&(a={refreshFromBuffer:!0,buffer:[0]})}else""!==n.radixPoint&&e.indexOf(n.radixPoint)===n.suffix.length&&(a&&a.buffer?a.buffer.splice(0,1+n.suffix.length):(e.splice(0,1+n.suffix.length),a={refreshFromBuffer:!0,buffer:o(e)}));if(n.enforceDigitsOnBlur){var _=(a=a||{})&&a.buffer||e.slice().reverse();a.refreshFromBuffer=!0,a.buffer=c(_,n.digits,n,!0).reverse()}}return a},onKeyDown:function(t,e,i,n){var r,a,s=l(this),u=String.fromCharCode(t.keyCode).toLowerCase();if((a=n.shortcuts&&n.shortcuts[u])&&a.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(a)),s.trigger("setvalue"),!1;if(t.ctrlKey)switch(t.keyCode){case o.default.UP:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(n.step)),s.trigger("setvalue"),!1;case o.default.DOWN:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(n.step)),s.trigger("setvalue"),!1}if(!t.shiftKey&&(t.keyCode===o.default.DELETE||t.keyCode===o.default.BACKSPACE||t.keyCode===o.default.BACKSPACE_SAFARI)&&i.begin!==e.length){if(e[t.keyCode===o.default.DELETE?i.begin-1:i.end]===n.negationSymbol.front)return r=e.slice().reverse(),""!==n.negationSymbol.front&&r.shift(),""!==n.negationSymbol.back&&r.pop(),s.trigger("setvalue",[r.join(""),i.begin]),!1;if(!0===n._radixDance){var h=e.indexOf(n.radixPoint);if(n.digitsOptional){if(0===h)return(r=e.slice().reverse()).pop(),s.trigger("setvalue",[r.join(""),i.begin>=r.length?r.length:i.begin]),!1}else if(-1!==h&&(i.begin<h||i.end<h||t.keyCode===o.default.DELETE&&i.begin===h))return i.begin!==i.end||t.keyCode!==o.default.BACKSPACE&&t.keyCode!==o.default.BACKSPACE_SAFARI||i.begin++,(r=e.slice().reverse()).splice(r.length-i.begin,i.begin-i.end+1),r=c(r,n.digits,n).join(""),s.trigger("setvalue",[r,i.begin>=r.length?h+1:i.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(t){return"("+t.groupSeparator+"99){*|1}("+t.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(t,e,i){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=((n=i(8741))&&n.__esModule?n:{default:n}).default?window:{};e.default=o},7760:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.HandleNativePlaceholder=function(t,e){var i=t?t.inputmask:this;if(l.ie){if(t.inputmask._valueGet()!==e&&(t.placeholder!==e||""===t.placeholder)){var n=a.getBuffer.call(i).slice(),o=t.inputmask._valueGet();if(o!==e){var r=a.getLastValidPosition.call(i);-1===r&&o===a.getBufferTemplate.call(i).join("")?n=[]:-1!==r&&h.call(i,n),f(t,n)}}}else t.placeholder!==e&&(t.placeholder=e,""===t.placeholder&&t.removeAttribute("placeholder"))},e.applyInputValue=c,e.checkVal=d,e.clearOptionalTail=h,e.unmaskedvalue=function(t){var e=t?t.inputmask:this,i=e.opts,n=e.maskset;if(t){if(void 0===t.inputmask)return t.value;t.inputmask&&t.inputmask.refreshValue&&c(t,t.inputmask._valueGet(!0))}var o=[],r=n.validPositions;for(var s in r)r[s]&&r[s].match&&(1!=r[s].match.static||Array.isArray(n.metadata)&&!0!==r[s].generatedInput)&&o.push(r[s].input);var l=0===o.length?"":(e.isRTL?o.reverse():o).join("");if("function"==typeof i.onUnMask){var u=(e.isRTL?a.getBuffer.call(e).slice().reverse():a.getBuffer.call(e)).join("");l=i.onUnMask.call(e,u,l,i)}return l},e.writeBuffer=f;var n,o=(n=i(5581))&&n.__esModule?n:{default:n},r=i(4713),a=i(8711),s=i(7215),l=i(9845),u=i(6030);function c(t,e){var i=t?t.inputmask:this,n=i.opts;t.inputmask.refreshValue=!1,"function"==typeof n.onBeforeMask&&(e=n.onBeforeMask.call(i,e,n)||e),d(t,!0,!1,e=e.toString().split("")),i.undoValue=i._valueGet(!0),(n.clearMaskOnLostFocus||n.clearIncomplete)&&t.inputmask._valueGet()===a.getBufferTemplate.call(i).join("")&&-1===a.getLastValidPosition.call(i)&&t.inputmask._valueSet("")}function h(t){t.length=0;for(var e,i=r.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(e=i.shift());)t.push(e);return t}function d(t,e,i,n,o){var l=t?t.inputmask:this,c=l.maskset,h=l.opts,d=l.dependencyLib,p=n.slice(),_="",m=-1,v=void 0,g=h.skipOptionalPartCharacter;h.skipOptionalPartCharacter="",a.resetMaskSet.call(l),c.tests={},m=h.radixPoint?a.determineNewCaretPosition.call(l,{begin:0,end:0},!1,!1===h.__financeInput?"radixFocus":void 0).begin:0,c.p=m,l.caretPos={begin:m};var y=[],E=l.caretPos;if(p.forEach(function(t,e){if(void 0!==t){var n=new d.Event("_checkval");n.keyCode=t.toString().charCodeAt(0),_+=t;var o=a.getLastValidPosition.call(l,void 0,!0);!function(t,e){for(var i=r.getMaskTemplate.call(l,!0,0).slice(t,a.seekNext.call(l,t,!1,!1)).join("").replace(/'/g,""),n=i.indexOf(e);n>0&&" "===i[n-1];)n--;var o=0===n&&!a.isMask.call(l,t)&&(r.getTest.call(l,t).match.nativeDef===e.charAt(0)||!0===r.getTest.call(l,t).match.static&&r.getTest.call(l,t).match.nativeDef==="'"+e.charAt(0)||" "===r.getTest.call(l,t).match.nativeDef&&(r.getTest.call(l,t+1).match.nativeDef===e.charAt(0)||!0===r.getTest.call(l,t+1).match.static&&r.getTest.call(l,t+1).match.nativeDef==="'"+e.charAt(0)));if(!o&&n>0&&!a.isMask.call(l,t,!1,!0)){var s=a.seekNext.call(l,t);l.caretPos.begin<s&&(l.caretPos={begin:s})}return o}(m,_)?(v=u.EventHandlers.keypressEvent.call(l,n,!0,!1,i,l.caretPos.begin))&&(m=l.caretPos.begin+1,_=""):v=u.EventHandlers.keypressEvent.call(l,n,!0,!1,i,o+1),v?(void 0!==v.pos&&c.validPositions[v.pos]&&!0===c.validPositions[v.pos].match.static&&void 0===c.validPositions[v.pos].alternation&&(y.push(v.pos),l.isRTL||(v.forwardPosition=v.pos+1)),f.call(l,void 0,a.getBuffer.call(l),v.forwardPosition,n,!1),l.caretPos={begin:v.forwardPosition,end:v.forwardPosition},E=l.caretPos):void 0===c.validPositions[e]&&p[e]===r.getPlaceholder.call(l,e)&&a.isMask.call(l,e,!0)?l.caretPos.begin++:l.caretPos=E}}),y.length>0){var L,T,b=a.seekNext.call(l,-1,void 0,!1);if(!s.isComplete.call(l,a.getBuffer.call(l))&&y.length<=b||s.isComplete.call(l,a.getBuffer.call(l))&&y.length>0&&y.length!==b&&0===y[0])for(var w=b;void 0!==(L=y.shift());){var I=new d.Event("_checkval");if((T=c.validPositions[L]).generatedInput=!0,I.keyCode=T.input.charCodeAt(0),(v=u.EventHandlers.keypressEvent.call(l,I,!0,!1,i,w))&&void 0!==v.pos&&v.pos!==L&&c.validPositions[v.pos]&&!0===c.validPositions[v.pos].match.static)y.push(v.pos);else if(!v)break;w++}}e&&f.call(l,t,a.getBuffer.call(l),v?v.forwardPosition:l.caretPos.begin,o||new d.Event("checkval"),o&&("input"===o.type&&l.undoValue!==a.getBuffer.call(l).join("")||"paste"===o.type)),h.skipOptionalPartCharacter=g}function f(t,e,i,n,r){var l=t?t.inputmask:this,u=l.opts,c=l.dependencyLib;if(n&&"function"==typeof u.onBeforeWrite){var h=u.onBeforeWrite.call(l,n,e,i,u);if(h){if(h.refreshFromBuffer){var d=h.refreshFromBuffer;s.refreshFromBuffer.call(l,!0===d?d:d.start,d.end,h.buffer||e),e=a.getBuffer.call(l,!0)}void 0!==i&&(i=void 0!==h.caret?h.caret:i)}}if(void 0!==t&&(t.inputmask._valueSet(e.join("")),void 0===i||void 0!==n&&"blur"===n.type||a.caret.call(l,t,i,void 0,void 0,void 0!==n&&"keydown"===n.type&&(n.keyCode===o.default.DELETE||n.keyCode===o.default.BACKSPACE)),!0===r)){var f=c(t),p=t.inputmask._valueGet();t.inputmask.skipInputEvent=!0,f.trigger("input"),setTimeout(function(){p===a.getBufferTemplate.call(l).join("")?f.trigger("cleared"):!0===s.isComplete.call(l,e)&&f.trigger("complete")},0)}}},2394:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(7149),i(3194);var n=i(157),o=v(i(4963)),r=v(i(9380)),a=i(2391),l=i(4713),u=i(8711),c=i(7215),h=i(7760),d=i(9716),f=v(i(7392)),p=v(i(3976)),_=v(i(8741));function m(t){return m="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)},m(t)}function v(t){return t&&t.__esModule?t:{default:t}}var g=r.default.document,y="_inputmask_opts";function E(t,e,i){if(_.default){if(!(this instanceof E))return new E(t,e,i);this.dependencyLib=o.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==i&&("[object Object]"===Object.prototype.toString.call(t)?e=t:(e=e||{},t&&(e.alias=t)),this.opts=o.default.extend(!0,{},this.defaults,e),this.noMasksCache=e&&void 0!==e.definitions,this.userOptions=e||{},L(this.opts.alias,e,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipKeyPressEvent=!1,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.originalPlaceholder=void 0,this.isComposing=!1}}function L(t,e,i){var n=E.prototype.aliases[t];return n?(n.alias&&L(n.alias,void 0,i),o.default.extend(!0,i,n),o.default.extend(!0,i,e),!0):(null===i.mask&&(i.mask=t),!1)}E.prototype={dataAttribute:"data-inputmask",defaults:p.default,definitions:f.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(t){var e=this;return"string"==typeof t&&(t=g.getElementById(t)||g.querySelectorAll(t)),(t=t.nodeName?[t]:Array.isArray(t)?t:Array.from(t)).forEac
vendor: 4,664 bytes, line 8
8h(function(t,i){var s=o.default.extend(!0,{},e.opts);if(function(t,e,i,n){function a(e,o){var a=""===n?e:n+"-"+e;null!==(o=void 0!==o?o:t.getAttribute(a))&&("string"==typeof o&&(0===e.indexOf("on")?o=r.default[o]:"false"===o?o=!1:"true"===o&&(o=!0)),i[e]=o)}if(!0===e.importDataAttributes){var s,l,u,c,h=t.getAttribute(n);if(h&&""!==h&&(h=h.replace(/'/g,'"'),l=JSON.parse("{"+h+"}")),l)for(c in u=void 0,l)if("alias"===c.toLowerCase()){u=l[c];break}for(s in a("alias",u),i.alias&&L(i.alias,i,e),e){if(l)for(c in u=void 0,l)if(c.toLowerCase()===s.toLowerCase()){u=l[c];break}a(s,u)}}return o.default.extend(!0,e,i),("rtl"===t.dir||e.rightAlign)&&(t.style.textAlign="right"),("rtl"===t.dir||e.numericInput)&&(t.dir="ltr",t.removeAttribute("dir"),e.isRTL=!0),Object.keys(i).length}(t,s,o.default.extend(!0,{},e.userOptions),e.dataAttribute)){var l=(0,a.generateMaskSet)(s,e.noMasksCache);void 0!==l&&(void 0!==t.inputmask&&(t.inputmask.opts.autoUnmask=!0,t.inputmask.remove()),t.inputmask=new E(void 0,void 0,!0),t.inputmask.opts=s,t.inputmask.noMasksCache=e.noMasksCache,t.inputmask.userOptions=o.default.extend(!0,{},e.userOptions),t.inputmask.el=t,t.inputmask.$el=(0,o.default)(t),t.inputmask.maskset=l,o.default.data(t,y,e.userOptions),n.mask.call(t.inputmask))}}),t&&t[0]&&t[0].inputmask||this},option:function(t,e){return"string"==typeof t?this.opts[t]:"object"===m(t)?(o.default.extend(this.userOptions,t),this.el&&!0!==e&&this.mask(this.el),this):void 0},unmaskedvalue:function(t){if(this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==t){var e=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,t,this.opts)||t).split("");h.checkVal.call(this,void 0,!1,!1,e),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,u.getBuffer.call(this),0,this.opts)}return h.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){o.default.data(this.el,y,null);var t=this.opts.autoUnmask?(0,h.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);t!==u.getBufferTemplate.call(this).join("")?this._valueSet(t,this.opts.autoUnmask):this._valueSet(""),d.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):g.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),u.getBufferTemplate.call(this).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),c.isComplete.call(this,u.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var t=l.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach(function(e){return e.mask!==t||(t=e,!1)}),t}return this.maskset.metadata},isValid:function(t){if(this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),t){var e=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,t,this.opts)||t).split("");h.checkVal.call(this,void 0,!0,!1,e)}else t=this.isRTL?u.getBuffer.call(this).slice().reverse().join(""):u.getBuffer.call(this).join("");for(var i=u.getBuffer.call(this),n=u.determineLastRequiredPosition.call(this),o=i.length-1;o>n&&!u.isMask.call(this,o);o--);return i.splice(n,o+1-n),c.isComplete.call(this,i)&&t===(this.isRTL?u.getBuffer.call(this).slice().reverse().join(""):u.getBuffer.call(this).join(""))},format:function(t,e){this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache);var i=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,t,this.opts)||t).split("");h.checkVal.call(this,void 0,!0,!1,i);var n=this.isRTL?u.getBuffer.call(this).slice().reverse().join(""):u.getBuffer.call(this).join("");return e?{value:n,metadata:this.getmetadata()}:n},setValue:function(t){this.el&&(0,o.default)(this.el).trigger("setvalue",[t])},analyseMask:a.analyseMask},E.extendDefaults=function(t){o.default.extend(!0,E.prototype.defaults,t)},E.extendDefinitions=function(t){o.default.extend(!0,E.prototype.definitions,t)},E.extendAliases=function(t){o.default.extend(!0,E.prototype.aliases,t)}
8,E.format=function(t,e,i){return E(e).format(t,i)},E.unmask=function(t,e){return E(e).unmaskedvalue(t)},E.isValid=function(t,e){return E(e).isValid(t)},E.remove=function(t){"string"==typeof t&&(t=g.getElementById(t)||g.querySelectorAll(t)),(t=t.nodeName?[t]:t).forEach(function(t){t.inputmask&&t.inputmask.remove()})},E.setValue=function(t,e){"string"==typeof t&&(t=g.getElementById(t)||g.querySelectorAll(t)),(t=t.nodeName?[t]:t).forEach(function(t){t.inputmask?t.inputmask.setValue(e):(0,o.default)(t).trigger("setvalue",[e])})},E.dependencyLib=o.default,r.default.Inputmask=E;var T=E;e.default=T},5296:function(t,e,i){function n(t){return n="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)},n(t)}var o=p(i(9380)),r=p(i(2394)),a=p(i(8741));function l(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var e="function"==typeof Map?new Map:void 0;return u=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;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,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)},u(t)}function c(t,e,i){return c=h()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return i&&d(o,i.prototype),o},c.apply(null,arguments)}function h(){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 d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t){return t&&t.__esModule?t:{default:t}}var _=o.default.document;if(a.default&&_&&_.head&&_.head.attachShadow&&o.default.customElements&&void 0===o.default.customElements.get("input-mask")){var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&d(t,e)}(a,t);var e,i,n,o=(e=a,i=h(),function(){var t,n=f(e);if(i){var o=f(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return l(this,t)});function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var e=(t=o.call(this)).getAttributeNames(),i=t.attachShadow({mode:"closed"}),n=_.createElement("input");for(var s in n.type="text",i.appendChild(n),e)Object.prototype.hasOwnProperty.call(e,s)&&n.setAttribute(e[s],t.getAttribute(e[s]));var l=new r.default;return l.dataAttribute="",l.mask(n),n.inputmask.shadowRoot=i,t}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(u(HTMLElement));o.default.customElements.define("input-mask",m)}},2391:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.analyseMask=function(t,e,i){var n,a,s,l,u,c,h=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,d=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,f=!1,p=new o.default,_=[],m=[],v=!1;function g(t,n,o){o=void 0!==o?o:t.matches.length;var a=t.matches[o-1];if(e)0===n.indexOf("[")||f&&/\\d|\\s|\\w/i.test(n)||"."===n?t.matches.splice(o++,0,{fn:new RegExp(n,i.casing?"i":""),static:!1,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==n,casing:null,def:n,placeholder:void 0,nativeDef:n}):(f&&(n=n[n.length-1]),n.split("").forEach(function(e,n){a=t.matches[o-1],t.matches.splice(o++,0,{fn:/[a-z]/i.test(i.staticDefinitionSymbol||e)?new RegExp("["+(i.staticDefinitionSymbol||e)+"]",i.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==e&&!0!==a.static,casing:null,def:i.staticDefinitionSymbol||e,placeholder:void 0!==i.staticDefinitionSymbol?e:void 0,nativeDef:(f?"'":"")+e})})),f=!1;else{var s=i.definitions&&i.definitions[n]||i.usePrototypeDefinitions&&r.default.prototype.definitions[n];s&&!f?t.matches.splice(o++,0,{fn:s.validator?"string"==typeof s.validator?new RegExp(s.validator,i.casing?"i":""):new function(){this.test=s.validator}:new RegExp("."),static:s.static||!1,optionality:s.optional||!1,newBlockMarker:void 0===a||s.optional?"master":a.def!==(s.definitionSymbol||n),casing:s.casing,def:s.definitionSymbol||n,placeholder:s.placeholder,nativeDef:n,generated:s.generated}):(t.matches.splice(o++,0,{fn:/[a-z]/i.test(i.staticDefinitionSymbol||n)?new RegExp("["+(i.staticDefinitionSymbol||n)+"]",i.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==n&&!0!==a.static,casing:null,def:i.staticDefinitionSymbol||n,placeholder:void 0!==i.staticDefinitionSymbol?n:void 0,nativeDef:(f?"'":"")+n}),f=!1)}}function y(){if(_.length>
80){if(g(l=_[_.length-1],a),l.isAlternator){u=_.pop();for(var t=0;t<u.matches.length;t++)u.matches[t].isGroup&&(u.matches[t].isGroup=!1);_.length>0?(l=_[_.length-1]).matches.push(u):p.matches.push(u)}}else g(p,a)}function E(t){var e=new o.default(!0);return e.openGroup=!1,e.matches=t,e}function L(){if((s=_.pop()).openGroup=!1,void 0!==s)if(_.length>0){if((l=_[_.length-1]).matches.push(s),l.isAlternator){for(var t=(u=_.pop()).matches[0].matches?u.matches[0].matches.length:1,e=0;e<u.matches.length;e++)u.matches[e].isGroup=!1,u.matches[e].alternatorGroup=!1,null===i.keepStatic&&t<(u.matches[e].matches?u.matches[e].matches.length:1)&&(i.keepStatic=!0),t=u.matches[e].matches?u.matches[e].matches.length:1;_.length>0?(l=_[_.length-1]).matches.push(u):p.matches.push(u)}}else p.matches.push(s);else y()}function T(t){var e=t.pop();return e.isQuantifier&&(e=E([t.pop(),e])),e}for(e&&(i.optionalmarker[0]=void 0,i.optionalmarker[1]=void 0);n=e?d.exec(t):h.exec(t);){if(a=n[0],e){switch(a.charAt(0)){case"?":a="{0,1}";break;case"+":case"*":a="{"+a+"}";break;case"|":if(0===_.length){var b=E(p.matches);b.openGroup=!0,_.push(b),p.matches=[],v=!0}}"\\d"===a&&(a="[0-9]")}if(f)y();else switch(a.charAt(0)){case"$":case"^":e||y();break;case i.escapeChar:f=!0,e&&y();break;case i.optionalmarker[1]:case i.groupmarker[1]:L();break;case i.optionalmarker[0]:_.push(new o.default(!1,!0));break;case i.groupmarker[0]:_.push(new o.default(!0));break;case i.quantifiermarker[0]:var w=new o.default(!1,!1,!0),I=(a=a.replace(/[{}?]/g,"")).split("|"),P=I[0].split(","),x=isNaN(P[0])?P[0]:parseInt(P[0]),M=1===P.length?x:isNaN(P[1])?P[1]:parseInt(P[1]),k=isNaN(I[1])?I[1]:parseInt(I[1]);"*"!==x&&"+"!==x||(x="*"===M?0:1),w.quantifier={min:x,max:M,jit:k};var O=_.length>0?_[_.length-1].matches:p.matches;if((n=O.pop()).isAlternator){O.push(n),O=n.matches;var S=new o.default(!0),D=O.pop();O.push(S),O=S.matches,n=D}n.isGroup||(n=E([n])),O.push(n),O.push(w);break;case i.alternatormarker:if(_.length>0){var R=(l=_[_.length-1]).matches[l.matches.length-1];c=l.openGroup&&(void 0===R.matches||!1===R.isGroup&&!1===R.isAlternator)?_.pop():T(l.matches)}else c=T(p.matches);if(c.isAlternator)_.push(c);else if(c.alternatorGroup?(u=_.pop(),c.alternatorGroup=!1):u=new o.default(!1,!1,!1,!0),u.matches.push(c),_.push(u),c.openGroup){c.openGroup=!1;var A=new o.default(!0);A.alternatorGroup=!0,_.push(A)}break;default:y()}}for(v&&L();_.length>0;)s=_.pop(),p.matches.push(s);return p.matches.length>0&&(function t(n){n&&n.matches&&n.matches.forEach(function(o,r){var a=n.matches[r+1];(void 0===a||void 0===a.matches||!1===a.isQuantifier)&&o&&o.isGroup&&(o.isGroup=!1,e||(g(o,i.groupmarker[0],0),!0!==o.openGroup&&g(o,i.groupmarker[1]))),t(o)})}(p),m.push(p)),(i.numericInput||i.isRTL)&&function t(e){for(var n in e.matches=e.matches.reverse(),e.matches)if(Object.prototype.hasOwnProperty.call(e.matches,n)){var o=parseInt(n);if(e.matches[n].isQuantifier&&e.matches[o+1]&&e.matches[o+1].isGroup){var r=e.matches[n];e.matches.splice(n,1),e.matches.splice(o+1,0,r)}void 0!==e.matches[n].matches?e.matches[n]=t(e.matches[n]):e.matches[n]=((a=e.matches[n])===i.optionalmarker[0]?a=i.optionalmarker[1]:a===i.optionalmarker[1]?a=i.optionalmarker[0]:a===i.groupmarker[0]?a=i.groupmarker[1]:a===i.groupmarker[1]&&(a=i.groupmarker[0]),a)}var a;return e}(m[0]),m},e.generateMaskSet=function(t,e){var i;function o(t,i,o){var a,s,l=!1;if(null!==t&&""!==t||((l=null!==o.regex)?t=(t=o.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(l=!0,t=".*")),1===t.length&&!1===o.greedy&&0!==o.repeat&&(o.placeholder=""),o.repeat>0||"*"===o.repeat||"+"===o.repeat){var u="*"===o.repeat?0:"+"===o.repeat?1:o.repeat;t=o.groupmarker[0]+t+o.groupmarker[1]+o.quantifiermarker[0]+u+","+o.repeat+o.quantifiermarker[1]}return s=l?"regex_"+o.regex:o.numericInput?t.split("").reverse().join(""):t,null!==o.keepStatic&&(s="ks_"+o.keepStatic+s),void 0===r.default.prototype.masksCache[s]||!0===e?(a={mask:t,maskToken:r.default.prototype.analyseMask(t,l,o),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:i,maskLength:void 0,jitOffset:{}},!0!==e&&(r.default.prototype.masksCache[s]=a,a=n.default.extend(!0,{},r.default.prototype.masksCache[s]))):a=n.default.extend(!0,{},r.default.prototype.masksCache[s]),a}if("function"==typeof t.mask&&(t.mask=t.mask(t)),Array.isArray(t.mask)){if
vendor: 4,751 bytes, line 8
8(t.mask.length>1){null===t.keepStatic&&(t.keepStatic=!0);var a=t.groupmarker[0];return(t.isRTL?t.mask.reverse():t.mask).forEach(function(e){a.length>1&&(a+=t.alternatormarker),void 0!==e.mask&&"function"!=typeof e.mask?a+=e.mask:a+=e}),o(a+=t.groupmarker[1],t.mask,t)}t.mask=t.mask.pop()}return i=t.mask&&void 0!==t.mask.mask&&"function"!=typeof t.mask.mask?o(t.mask.mask,t.mask,t):o(t.mask,t.mask,t),null===t.keepStatic&&(t.keepStatic=!1),i};var n=a(i(4963)),o=a(i(9695)),r=a(i(2394));function a(t){return t&&t.__esModule?t:{default:t}}},157:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.mask=function(){var t=this,e=this.opts,i=this.el,n=this.dependencyLib;s.EventRuler.off(i);var h=function(e,i){"textarea"!==e.tagName.toLowerCase()&&i.ignorables.push(o.default.ENTER);var l=e.getAttribute("type"),u="input"===e.tagName.toLowerCase()&&i.supportsInputType.includes(l)||e.isContentEditable||"textarea"===e.tagName.toLowerCase();if(!u)if("input"===e.tagName.toLowerCase()){var c=document.createElement("input");c.setAttribute("type",l),u="text"===c.type,c=null}else u="partial";return!1!==u?function(e){var o,l;function u(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==r.getLastValidPosition.call(t)||!0!==i.nullable?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&i.clearMaskOnLostFocus?(t.isRTL?a.clearOptionalTail.call(t,r.getBuffer.call(t).slice()).reverse():a.clearOptionalTail.call(t,r.getBuffer.call(t).slice())).join(""):o.call(this):"":o.call(this)}function c(t){l.call(this,t),this.inputmask&&(0,a.applyInputValue)(this,t)}if(!e.inputmask.__valueGet){if(!0!==i.noValuePatching){if(Object.getOwnPropertyDescriptor){var h=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):void 0;h&&h.get&&h.set?(o=h.get,l=h.set,Object.defineProperty(e,"value",{get:u,set:c,configurable:!0})):"input"!==e.tagName.toLowerCase()&&(o=function(){return this.textContent},l=function(t){this.textContent=t},Object.defineProperty(e,"value",{get:u,set:c,configurable:!0}))}else document.__lookupGetter__&&e.__lookupGetter__("value")&&(o=e.__lookupGetter__("value"),l=e.__lookupSetter__("value"),e.__defineGetter__("value",u),e.__defineSetter__("value",c));e.inputmask.__valueGet=o,e.inputmask.__valueSet=l}e.inputmask._valueGet=function(e){return t.isRTL&&!0!==e?o.call(this.el).split("").reverse().join(""):o.call(this.el)},e.inputmask._valueSet=function(e,i){l.call(this.el,null==e?"":!0!==i&&t.isRTL?e.split("").reverse().join(""):e)},void 0===o&&(o=function(){return this.value},l=function(t){this.value=t},function(e){if(n.valHooks&&(void 0===n.valHooks[e]||!0!==n.valHooks[e].inputmaskpatch)){var o=n.valHooks[e]&&n.valHooks[e].get?n.valHooks[e].get:function(t){return t.value},s=n.valHooks[e]&&n.valHooks[e].set?n.valHooks[e].set:function(t,e){return t.value=e,t};n.valHooks[e]={get:function(e){if(e.inputmask){if(e.inputmask.opts.autoUnmask)return e.inputmask.unmaskedvalue();var n=o(e);return-1!==r.getLastValidPosition.call(t,void 0,void 0,e.inputmask.maskset.validPositions)||!0!==i.nullable?n:""}return o(e)},set:function(t,e){var i=s(t,e);return t.inputmask&&(0,a.applyInputValue)(t,e),i},inputmaskpatch:!0}}}(e.type),function(e){s.EventRuler.on(e,"mouseenter",function(){var e=this.inputmask._valueGet(!0);e!==(t.isRTL?r.getBuffer.call(t).reverse():r.getBuffer.call(t)).join("")&&(0,a.applyInputValue)(this,e)})}(e))}}(e):e.inputmask=void 0,u}(i,e);if(!1!==h){t.originalPlaceholder=i.placeholder,t.maxLength=void 0!==i?i.maxLength:void 0,-1===t.maxLength&&(t.maxLength=void 0),"inputMode"in i&&null===i.getAttribute("inputmode")&&(i.inputMode=e.inputmode,i.setAttribute("inputmode",e.inputmode)),!0===h&&(e.showMaskOnFocus=e.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(i.autocomplete),l.iphone&&(e.insertModeVisual=!1),s.EventRuler.on(i,"submit",c.EventHandlers.submitEvent),s.EventRuler.on(i,"reset",c.EventHandlers.resetEvent),s.EventRuler.on(i,"blur",c.EventHandlers.blurEvent),s.EventRuler.on(i,"focus",c.EventHandlers.focusEvent),s.EventRuler.on(i,"invalid",c.EventHandlers.invalidEvent),s.EventRuler.on(i,"click",c.EventHandlers.clickEvent),s.EventRuler.on(i,"mouseleave",c.EventHandlers.mouseleaveEvent),s.EventRuler.on(i,"mouseenter",c.EventHandlers.mouseenterEvent),s.EventRuler.on(i,"paste",c.EventHandlers.pasteEvent),s.EventRuler.on(i,"cut",c.EventHandlers.cutEvent),s.EventRuler.on(i,"complete",e.oncomplete),s.EventRuler.on(i,"incomplete",e.onincomplete),s.EventRuler.on(i,"cleared",e.oncleared),!0!==e.inputEventOnly&&(s.EventRuler.on(i,"keydown",c.EventHandlers.keydownEvent),s.EventRuler.on(i,"keypress",c.EventHandlers.keypressEvent),s.EventRuler.on(i,"keyup",c.EventHandlers.keyupEvent)),(l.mobile||e.
vendor: 9,372 bytes, line 8
8inputEventOnly)&&i.removeAttribute("maxLength"),s.EventRuler.on(i,"input",c.EventHandlers.inputFallBackEvent),s.EventRuler.on(i,"compositionend",c.EventHandlers.compositionendEvent)),s.EventRuler.on(i,"setvalue",c.EventHandlers.setValueEvent),r.getBufferTemplate.call(t).join(""),t.undoValue=t._valueGet(!0);var d=(i.inputmask.shadowRoot||i.ownerDocument).activeElement;if(""!==i.inputmask._valueGet(!0)||!1===e.clearMaskOnLostFocus||d===i){(0,a.applyInputValue)(i,i.inputmask._valueGet(!0),e);var f=r.getBuffer.call(t).slice();!1===u.isComplete.call(t,f)&&e.clearIncomplete&&r.resetMaskSet.call(t),e.clearMaskOnLostFocus&&d!==i&&(-1===r.getLastValidPosition.call(t)?f=[]:a.clearOptionalTail.call(t,f)),(!1===e.clearMaskOnLostFocus||e.showMaskOnFocus&&d===i||""!==i.inputmask._valueGet(!0))&&(0,a.writeBuffer)(i,f),d===i&&r.caret.call(t,i,r.seekNext.call(t,r.getLastValidPosition.call(t)))}}};var n,o=(n=i(5581))&&n.__esModule?n:{default:n},r=i(8711),a=i(7760),s=i(9716),l=i(9845),u=i(7215),c=i(6030)},9695:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,i,n){this.matches=[],this.openGroup=t||!1,this.alternatorGroup=!1,this.isGroup=t||!1,this.isOptional=e||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0===n)return!1;for(var o=0|e,r=Math.max(o>=0?o:n-Math.abs(o),0);r<n;){if(i[r]===t)return!0;r++}return!1}})},7149:function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(e)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===t("test".__proto__)?function(t){return t.__proto__}:function(t){return t.constructor.prototype})},8711:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.caret=function(t,e,i,n,o){var r,a=this,s=this.opts;if(void 0===e)return"selectionStart"in t&&"selectionEnd"in t?(e=t.selectionStart,i=t.selectionEnd):window.getSelection?(r=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==t&&r.commonAncestorContainer!==t||(e=r.startOffset,i=r.endOffset):document.selection&&document.selection.createRange&&(i=(e=0-(r=document.selection.createRange()).duplicate().moveStart("character",-t.inputmask._valueGet().length))+r.text.length),{begin:n?e:u.call(a,e),end:n?i:u.call(a,i)};if(Array.isArray(e)&&(i=a.isRTL?e[0]:e[1],e=a.isRTL?e[1]:e[0]),void 0!==e.begin&&(i=a.isRTL?e.begin:e.end,e=a.isRTL?e.end:e.begin),"number"==typeof e){e=n?e:u.call(a,e),i="number"==typeof(i=n?i:u.call(a,i))?i:e;var l=parseInt(((t.ownerDocument.defaultView||window).getComputedStyle?(t.ownerDocument.defaultView||window).getComputedStyle(t,null):t.currentStyle).fontSize)*i;if(t.scrollLeft=l>t.scrollWidth?l:0,t.inputmask.caretPos={begin:e,end:i},s.insertModeVisual&&!1===s.insertMode&&e===i&&(o||i++),t===(t.inputmask.shadowRoot||t.ownerDocument).activeElement)if("setSelectionRange"in t)t.setSelectionRange(e,i);else if(window.getSelection){if(r=document.createRange(),void 0===t.firstChild||null===t.firstChild){var c=document.createTextNode("");t.appendChild(c)}r.setStart(t.firstChild,e<t.inputmask._valueGet().length?e:t.inputmask._valueGet().length),r.setEnd(t.firstChild,i<t.inputmask._valueGet().length?i:t.inputmask._valueGet().length),r.collapse(!0);var h=window.getSelection();h.removeAllRanges(),h.addRange(r)}else t.createTextRange&&((r=t.createTextRange()).collapse(!0),r.moveEnd("character",i),r.moveStart("character",e),r.select())}},e.determineLastRequiredPosition=function(t){var e,i,r=this,s=this.maskset,l=this.dependencyLib,u=n.getMaskTemplate.call(r,!0,a.call(r),!0,!0),c=u.length,h=a.call(r),d={},f=s.validPositions[h],p=void 0!==f?f.locator.slice():void 0;for(e=h+1;e<u.length;e++)p=(i=n.getTestTemplate.call(r,e,p,e-1)).locator.slice(),d[e]=l.extend(!0,{},i);var _=f&&void 0!==f.alternation?f.locator[f.alternation]:void 0;for(e=c-1;e>h&&((i=d[e]).match.optionality||i.match.optionalQuantifier&&i.match.newBlockMarker||_&&(_!==d[e].locator[f.alternation]&&1!=i.match.static||!0===i.match.static&&i.locator[f.alternation]&&o.checkAlternationMatch.call(r,i.locator[f.alternation].toString().split(","),_.toString().split(","))&&""!==n.getTests.call(r,e)[0].def))&&u[e]===n.getPlaceholder.call(r,e,i.match);e--)c--;return t?{l:c,def:d[c]?d[c].match:void 0}:c},e.determineNewCaretPosition=function(t,e,i){var o=this,u=this.maskset,c=this.opts;if(e&&(o.isRTL?t.end=t.begin:t.begin=t.end),t.begin===t.end){switch(i=i||c.positionCaretOnClick){case"none":break;case"select":t={begin:0,end:r.call(o).length};break;case"ignore":t.end=t.begin=l.call(o,a.call(o));break;case"radixFocus":if(function(t){if(""!==c.radixPoint&&0!==c.digits){var e=u.validPositions;if(void 0===e[t]||e[t].input===n.getPlaceholder.call(o,t)){if(t<l.call(o,-1))return!0;var i=r.call(o).indexOf(c.radixPoint);if(-1!==i){for(var a in e)if(e[a]&&i<a&&e[a].input!==n.getPlaceholder.call(o,a))return!1;return!0}}}return!1}(t.begin)){var h=r.call(o).join("").indexOf(c.radixPoint);t.end=t.begin=c.numericInput?l.call(o,h):h;break}default:var d=t.begin,f=a.call(o,d,!0),p=l.call(o,-1!==f||s.call(o,0)?f:-1);if(d<=p)t.end=t.begin=s.call(o,d,!1,!0)?d:l.call(o,d);else{var _=u.validPositions[f],m=n.getTestTemplate.call(o,p,_?_.match.locator:void 0,_),v=n.getPlaceholder.call(o,p,m.match);if(""!==v&&r.call(o)[p]!==v&&!0!==m.match.optionalQuantifier&&!0!==m.match.newBlockMarker||!s.call(o,p,c.keepStatic,!0)&&m.match.def===v){var g=l.call(o,p);(d>=g||d===p)&&(p=g)}t.end=t.begin=p}}return t}},e.getBuffer=r,e.getBufferTemplate=function(){var t=this.maskset;return void 0===t._buffer&&(t._buffer=n.getMaskTemplate.call(this,!1,1),void 0===t.buffer&&(t.buffer=t._buffer.slice())),t._buffer},e.getLastValidPosition=a,e.isMask=s,e.resetMaskSet=function(t){var e=this.maskset;e.buffer=void 0,!0!==t&&(e.validPositions={},e.p=0)},e.seekNext=l,e.seekPrevious=function(t,e){var i=this,o=t-1;if(t<=0)return 0;for(;o>0&&(!0===e&&(!0!==n.getTest.call(i,o).match.newBlockMarker||!s.call(i,o,void 0,!0))||!0!==e&&!s.call(i,o,void 0,!0));)o--;return o},e.translatePosition=u;var n=i(4713),o=i(7215);function r(t){var e=this.maskset;return void 0!==e.buffer&&!0!==t||(e.buffer=n.getMaskTemplate.call(this,!0,a.call(this),!0),void 0===e._buffer&&(e._buffer=e.buffer.slice())),e.buffer}function a(t,e,i){var n=this.maskset,o=-1,r=-1,a=i||n.validPositions;for(var s in void 0===t&&(t=-1),a){var l=parseInt(s);a[l]&&(e||!0!==a[l].generatedInput)&&(l<=t&&(o=l),l>=t&&(r=l))}return-1===o||o==t?r:-1==r||t-o<r-t?o:r}function s(t,e,i){var o=this,r=this.maskset,a=n.getTestTemplate.call(o,t).match;if(""===a.def&&(a=n.getTest.call(o,t).match),!0!==a.static)return a.fn;if(!0===i&&void 0!==r.validPositions[t]&&!0!==r.validPositions[t].generatedInput)return!0;if(!0!==e&&t>-1){if(i){var s=n.getTests.call(o,t);return s.length>1+(""===s[s.length-1].match.def?1:0)}var l=n.determineTestTemplate.call(o,t,n.getTests.call(o,t)),u=n.getPlaceholder.call(o,t,l.match);return l.match.def!==u}return!1}function l(t,e,i){var o=this;void 0===i&&(i=!0);for(var r=t+1;""!==n.getTest.call(o,r).match.def&&(!0===e&&(!0!==n.getTest.call(o,r).match.newBlockMarker||!s.call(o,r,void 0,!0))||!0!==e&&!s.call(o,r,void 0,i));)r++;return r}function u(t){var e=this.opts,i=this.el;return!this.isRTL||"number"!=typeof t||e.greedy&&""===e.placeholder||!i||(t=Math.abs(this._valueGet().length-t)),t}},4713:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.determineTestTemplate=u,e.getDecisionTaker=a,e.getMaskTemplate=function(t,e,i,n,o){var r=this,a=this.opts,c=this.maskset,h=a.greedy;o&&a.greedy&&(a.greedy=!1,r.maskset.tests={}),e=e||0;var f,p,_,m,v=[],g=0;do{if(!0===t&&c.validPositions[g])p=(_=o&&c.validPositions[g].match.optionality&&void 0===c.validPositions[g+1]&&(!0===c.validPositions[g].generatedInput||c.validPositions[g].input==a.skipOptionalPartCharacter&&g>0)?u.call(r,g,d.call(r,g,f,g-1)):c.validPositions[g]).match,f=_.locator.slice(),v.push(!0===i?_.input:!1===i?p.nativeDef:s.call(r,g,p));else{p=(_=l.call(r,g,f,g-1)).match,f=_.locator.slice();var y=!0!==n&&(!1!==a.jitMasking?a.jitMasking:p.jit);(m=(m&&p.static&&p.def!==a.groupSeparator&&null===p.fn||c.validPositions[g-1]&&p.static&&p.def!==a.groupSeparator&&null===p.fn)&&c.tests[g]&&1===c.tests[g].length)||!1===y||void 0===y||"number"==typeof y&&isFinite(y)&&y>g?v.push(!1===i?p.nativeDef:s.call(r,g,p)):m=!1}g++}while(!0!==p.static||""!==p.def||e>g);return""===v[v.length-1]&&v.pop(),!1===i&&void 0!==c.maskLength||(c.maskLength=g-1),a.greedy=h,v},e.getPlaceholder=s,e.getTest=c,e.getTestTemplate=l,e.getTests=d,e.isSubsetOf=h;var n,o=(n=i(2394))&&n.__esModule?n:{default:n};function r(t,e){var i=(null!=t.alternation?t.mloc[a(t)]:t.locator).join("");if(""!==i)for(;i.length<e;)i+="0";return i}function a(t){var e=t.locator[t.alternation];return"string"==typeof e&&e.length>0&&(e=e.split(",")[0]),void 0!==e?e.toString():""}function s(t,e,i){var n=this.opts,o=this.maskset;if(void 0!==(e=e||c.call(this,t).match).placeholder||!0===i)return"function"==typeof e.placeholder?e.placeholder(n):e.placeholder;if(!0===e.static){if(t>
8-1&&void 0===o.validPositions[t]){var r,a=d.call(this,t),s=[];if(a.length>1+(""===a[a.length-1].match.def?1:0))for(var l=0;l<a.length;l++)if(""!==a[l].match.def&&!0!==a[l].match.optionality&&!0!==a[l].match.optionalQuantifier&&(!0===a[l].match.static||void 0===r||!1!==a[l].match.fn.test(r.match.def,o,t,!0,n))&&(s.push(a[l]),!0===a[l].match.static&&(r=a[l]),s.length>1&&/[0-9a-bA-Z]/.test(s[0].match.def)))return n.placeholder.charAt(t%n.placeholder.length)}return e.def}return n.placeholder.charAt(t%n.placeholder.length)}function l(t,e,i){return this.maskset.validPositions[t]||u.call(this,t,d.call(this,t,e?e.slice():e,i))}function u(t,e){var i=this.opts,n=function(t,e){var i=0,n=!1;return e.forEach(function(t){t.match.optionality&&(0!==i&&i!==t.match.optionality&&(n=!0),(0===i||i>t.match.optionality)&&(i=t.match.optionality))}),i&&(0==t||1==e.length?i=0:n||(i=0)),i}(t,e);t=t>0?t-1:0;var o,a,s,l=r(c.call(this,t));i.greedy&&e.length>1&&""===e[e.length-1].match.def&&e.pop();for(var u=0;u<e.length;u++){var h=e[u];o=r(h,l.length);var d=Math.abs(o-l);(void 0===a||""!==o&&d<a||s&&!i.greedy&&s.match.optionality&&s.match.optionality-n>0&&"master"===s.match.newBlockMarker&&(!h.match.optionality||h.match.optionality-n<1||!h.match.newBlockMarker)||s&&!i.greedy&&s.match.optionalQuantifier&&!h.match.optionalQuantifier)&&(a=d,s=h)}return s}function c(t,e){var i=this.maskset;return i.validPositions[t]?i.validPositions[t]:(e||d.call(this,t))[0]}function h(t,e,i){function n(t){for(var e,i=[],n=-1,o=0,r=t.length;o<r;o++)if("-"===t.charAt(o))for(e=t.charCodeAt(o+1);++n<e;)i.push(String.fromCharCode(n));else n=t.charCodeAt(o),i.push(t.charAt(o));return i.join("")}return t.match.def===e.match.nativeDef||!(!(i.regex||t.match.fn instanceof RegExp&&e.match.fn instanceof RegExp)||!0===t.match.static||!0===e.match.static)&&-1!==n(e.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(n(t.match.fn.toString().replace(/[[\]/]/g,"")))}function d(t,e,i){var n,r,a=this,s=this.dependencyLib,l=this.maskset,c=this.opts,d=this.el,f=l.maskToken,p=e?i:0,_=e?e.slice():[0],m=[],v=!1,g=e?e.join(""):"";function y(e,i,r,a){function s(r,a,u){function f(t,e){var i=0===e.matches.indexOf(t);return i||e.matches.every(function(n,o){return!0===n.isQuantifier?i=f(t,e.matches[o-1]):Object.prototype.hasOwnProperty.call(n,"matches")&&(i=f(t,n)),!i}),i}function _(t,e,i){var n,o;if((l.tests[t]||l.validPositions[t])&&(l.tests[t]||[l.validPositions[t]]).every(function(t,r){if(t.mloc[e])return n=t,!1;var a=void 0!==i?i:t.alternation,s=void 0!==t.locator[a]?t.locator[a].toString().indexOf(e):-1;return(void 0===o||s<o)&&-1!==s&&(n=t,o=s),!0}),n){var r=n.locator[n.alternation];return(n.mloc[e]||n.mloc[r]||n.locator).slice((void 0!==i?i:n.alternation)+1)}return void 0!==i?_(t,e):void 0}function E(t,e){var i=t.alternation,n=void 0===e||i===e.alternation&&-1===t.locator[i].toString().indexOf(e.locator[i]);if(!n&&i>e.alternation)for(var o=e.alternation;o<i;o++)if(t.locator[o]!==e.locator[o]){i=o,n=!0;break}if(n){t.mloc=t.mloc||{};var r=t.locator[i];if(void 0!==r){if("string"==typeof r&&(r=r.split(",")[0]),void 0===t.mloc[r]&&(t.mloc[r]=t.locator.slice()),void 0!==e){for(var a in e.mloc)"string"==typeof a&&(a=a.split(",")[0]),void 0===t.mloc[a]&&(t.mloc[a]=e.mloc[a]);t.locator[i]=Object.keys(t.mloc).join(",")}return!0}t.alternation=void 0}return!1}function L(t,e){if(t.locator.length!==e.locator.length)return!1;for(var i=t.alternation+1;i<t.locator.length;i++)if(t.locator[i]!==e.locator[i])return!1;return!0}if(p>t+c._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+l.mask;if(p===t&&void 0===r.matches){if(m.push({match:r,locator:a.reverse(),cd:g,mloc:{}}),!r.optionality||void 0!==u||!(c.definitions&&c.definitions[r.nativeDef]&&c.definitions[r.nativeDef].optional||o.default.prototype.definitions[r.nativeDef]&&o.default.prototype.definitions[r.nativeDef].optional))return!0;v=!0,p=t}else if(void 0!==r.matches){if(r.isGroup&&u!==r){if(r=s(e.matches[e.matches.indexOf(r)+1],a,u))return!0}else if(r.isOptional){var T=r,b=m.length;if(r=y(r,i,a,u)){if(m.forEach(function(t,e){e>=b&&(t.match.optionality=t.match.optionality?t.match.optionality+1:1)}),n=m[m.length-1].match,void 0!==u||!f(n,T))return!0;v=!0,p=t}}else if(r.isAlternator){var w,I=r,P=[],x=m.slice(),M=a.length,k=!1,O=i.length>0?i.shift():-1;if(-1===O||"string"==typeof O){var S,D=p,R=i.slice(),A=[];
vendor: 10,087 bytes, line 8
8if("string"==typeof O)A=O.split(",");else for(S=0;S<I.matches.length;S++)A.push(S.toString());if(void 0!==l.excludes[t]){for(var C=A.slice(),N=0,B=l.excludes[t].length;N<B;N++){var G=l.excludes[t][N].toString().split(":");a.length==G[1]&&A.splice(A.indexOf(G[0]),1)}0===A.length&&(delete l.excludes[t],A=C)}(!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&D>=c.keepStatic)&&(A=A.slice(0,1));for(var z=0;z<A.length;z++){S=parseInt(A[z]),m=[],i="string"==typeof O&&_(p,S,M)||R.slice();var F=I.matches[S];if(F&&s(F,[S].concat(a),u))r=!0;else if(0===z&&(k=!0),F&&F.matches&&F.matches.length>I.matches[0].matches.length)break;w=m.slice(),p=D,m=[];for(var U=0;U<w.length;U++){var j=w[U],V=!1;j.match.jit=j.match.jit||k,j.alternation=j.alternation||M,E(j);for(var H=0;H<P.length;H++){var Z=P[H];if("string"!=typeof O||void 0!==j.alternation&&A.includes(j.locator[j.alternation].toString())){if(j.match.nativeDef===Z.match.nativeDef){V=!0,E(Z,j);break}if(h(j,Z,c)){E(j,Z)&&(V=!0,P.splice(P.indexOf(Z),0,j));break}if(h(Z,j,c)){E(Z,j);break}if(K=Z,!0===(X=j).match.static&&!0!==K.match.static&&K.match.fn.test(X.match.def,l,t,!1,c,!1)){L(j,Z)||void 0!==d.inputmask.userOptions.keepStatic?E(j,Z)&&(V=!0,P.splice(P.indexOf(Z),0,j)):c.keepStatic=!0;break}}}V||P.push(j)}}m=x.concat(P),p=t,v=m.length>0,r=P.length>0,i=R.slice()}else r=s(I.matches[O]||e.matches[O],[O].concat(a),u);if(r)return!0}else if(r.isQuantifier&&u!==e.matches[e.matches.indexOf(r)-1])for(var q=r,W=i.length>0?i.shift():0;W<(isNaN(q.quantifier.max)?W+1:q.quantifier.max)&&p<=t;W++){var Y=e.matches[e.matches.indexOf(q)-1];if(r=s(Y,[W].concat(a),Y)){if((n=m[m.length-1].match).optionalQuantifier=W>=q.quantifier.min,n.jit=(W+1)*(Y.matches.indexOf(n)+1)>q.quantifier.jit,n.optionalQuantifier&&f(n,Y)){v=!0,p=t;break}return n.jit&&(l.jitOffset[t]=Y.matches.length-Y.matches.indexOf(n)),!0}}else if(r=y(r,i,a,u))return!0}else p++;var X,K}for(var u=i.length>0?i.shift():0;u<e.matches.length;u++)if(!0!==e.matches[u].isQuantifier){var f=s(e.matches[u],[u].concat(r),a);if(f&&p===t)return f;if(p>t)break}}if(t>-1){if(void 0===e){for(var E,L=t-1;void 0===(E=l.validPositions[L]||l.tests[L])&&L>-1;)L--;void 0!==E&&L>-1&&(_=function(t,e){var i,n=[];return Array.isArray(e)||(e=[e]),e.length>0&&(void 0===e[0].alternation||!0===c.keepStatic?0===(n=u.call(a,t,e.slice()).locator.slice()).length&&(n=e[0].locator.slice()):e.forEach(function(t){""!==t.def&&(0===n.length?(i=t.alternation,n=t.locator.slice()):t.locator[i]&&-1===n[i].toString().indexOf(t.locator[i])&&(n[i]+=","+t.locator[i]))})),n}(L,E),g=_.join(""),p=L)}if(l.tests[t]&&l.tests[t][0].cd===g)return l.tests[t];for(var T=_.shift();T<f.length&&!(y(f[T],_,[T])&&p===t||p>t);T++);}return(0===m.length||v)&&m.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:g}),void 0!==e&&l.tests[t]?r=s.extend(!0,[],m):(l.tests[t]=s.extend(!0,[],m),r=l.tests[t]),m.forEach(function(t){t.match.optionality=!1}),r}},7215:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.alternate=l,e.checkAlternationMatch=function(t,e,i){for(var n,o=this.opts.greedy?e:e.slice(0,1),r=!1,a=void 0!==i?i.split(","):[],s=0;s<a.length;s++)-1!==(n=t.indexOf(a[s]))&&t.splice(n,1);for(var l=0;l<t.length;l++)if(o.includes(t[l])){r=!0;break}return r},e.handleRemove=function(t,e,i,n,s){var u=this,c=this.maskset,h=this.opts;if((h.numericInput||u.isRTL)&&(e===r.default.BACKSPACE?e=r.default.DELETE:e===r.default.DELETE&&(e=r.default.BACKSPACE),u.isRTL)){var d=i.end;i.end=i.begin,i.begin=d}var f,p=a.getLastValidPosition.call(u,void 0,!0);if(i.end>=a.getBuffer.call(u).length&&p>=i.end&&(i.end=p+1),e===r.default.BACKSPACE?i.end-i.begin<1&&(i.begin=a.seekPrevious.call(u,i.begin)):e===r.default.DELETE&&i.begin===i.end&&(i.end=a.isMask.call(u,i.end,!0,!0)?i.end+1:a.seekNext.call(u,i.end)+1),!1!==(f=m.call(u,i))){if(!0!==n&&!1!==h.keepStatic||null!==h.regex&&-1!==o.getTest.call(u,i.begin).match.def.indexOf("|")){var _=l.call(u,!0);if(_){var v=void 0!==_.caret?_.caret:_.pos?a.seekNext.call(u,_.pos.begin?_.pos.begin:_.pos):a.getLastValidPosition.call(u,-1,!0);(e!==r.default.DELETE||i.begin>v)&&i.begin}}!0!==n&&(c.p=e===r.default.DELETE?i.begin+f:i.begin,c.p=a.determineNewCaretPosition.call(u,{begin:c.p,end:c.p},!1,!1===h.insertMode&&e===r.default.BACKSPACE?"none":void 0).begin)}},e.isComplete=c,e.isSelection=h,e.isValid=d,e.refreshFromBuffer=p,e.revalidateMask=m;var n,o=i(4713),r=(n=i(5581))&&n.__esModule?n:{default:n},a=i(8711),s=i(6030);function l(t,e,i,n,r,s){var u,c,h,f,p,_,m,v,g,y,E,L=this,T=this.dependencyLib,b=this.opts,w=L.maskset,I=T.extend(!0,{},w.validPositions),P=T.extend(!0,{},w.tests),x=!1,M=!1,k=void 0!==r?r:a.getLastValidPosition.call(L);if(s&&(y=s.begin,E=s.end,s.begin>s.end&&(y=s.end,E=s.begin)),-1===k&&void 0===r)u=0,c=(f=o.getTest.call(L,u)).alternation;else for(;k>=0;k--)if((h=w.validPositions[k])&&void 0!==h.alternation){if(f&&f.locator[h.alternation]!==h.locator[h.alternation])break;u=k,c=w.validPositions[u].alternation,f=h}if(void 0!==c){m=parseInt(u),w.excludes[m]=w.excludes[m]||[],!0!==t&&w.excludes[m].push((0,o.getDecisionTaker)(f)+":"+f.alternation);var O=[],S=-1;for(p=m;p<a.getLastValidPosition.call(L,void 0,!0)+1;p++)-1===S&&t<=p&&void 0!==e&&(O.push(e),S=O.length-1),(_=w.validPositions[p])&&!0!==_.generatedInput&&(void 0===s||p<y||p>=E)&&O.push(_.input),delete w.validPositions[p];for(-1===S&&void 0!==e&&(O.push(e),S=O.length-1);void 0!==w.excludes[m]&&w.excludes[m].length<10;){for(w.tests={},a.resetMaskSet.call(L,!0),x=!0,p=0;p<O.length&&(v=x.caret||a.getLastValidPosition.call(L,void 0,!0)+1,g=O[p],x=d.call(L,v,g,!1,n,!0));p++)p===S&&(M=x),1==t&&x&&(M={caretPos:p});if(x)break;if(a.resetMaskSet.call(L),f=o.getTest.call(L,m),w.validPositions=T.extend(!0,{},I),w.tests=T.extend(!0,{},P),!w.excludes[m]){M=l.call(L,t,e,i,n,m-1,s);break}var D=(0,o.getDecisionTaker)(f);if(-1!==w.excludes[m].indexOf(D+":"+f.alternation)){M=l.call(L,t,e,i,n,m-1,s);break}for(w.excludes[m].push(D+":"+f.alternation),p=m;p<a.getLastValidPosition.call(L,void 0,!0)+1;p++)delete w.validPositions[p]}}return M&&!1===b.keepStatic||delete w.excludes[m],M}function u(t,e,i){var n=this.opts,o=this.maskset;switch(n.casing||e.casing){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase();break;case"title":var a=o.validPositions[i-1];t=0===i||a&&a.input===String.fromCharCode(r.default.SPACE)?t.toUpperCase():t.toLowerCase();break;default:if("function"==typeof n.casing){var s=Array.prototype.slice.call(arguments);s.push(o.validPositions),t=n.casing.apply(this,s)}}return t}function c(t){var e=this,i=this.opts,n=this.maskset;if("function"==typeof i.isComplete)return i.isComplete(t,i);if("*"!==i.repeat){var r=!1,s=a.determineLastRequiredPosition.call(e,!0),l=a.seekPrevious.call(e,s.l);if(void 0===s.def||s.def.newBlockMarker||s.def.optionality||s.def.optionalQuantifier){r=!0;for(var u=0;u<=l;u++){var c=o.getTestTemplate.call(e,u).match;if(!0!==c.static&&void 0===n.validPositions[u]&&!0!==c.optionality&&!0!==c.optionalQuantifier||!0===c.static&&t[u]!==o.getPlaceholder.call(e,u,c)){r=!1;break}}}return r}}function h(t){var e=this.opts.insertMode?0:1;return this.isRTL?t.begin-t.end>e:t.end-t.begin>e}function d(t,e,i,n,r,s,f){var v=this,g=this.dependencyLib,y=this.opts,E=v.maskset;i=!0===i;var L=t;function T(t){if(void 0!==t){if(void 0!==t.remove&&(Array.isArray(t.remove)||(t.remove=[t.remove]),t.remove.sort(function(t,e){return e.pos-t.pos}).forEach(function(t){m.call(v,{begin:t,end:t+1})}),t.remove=void 0),void 0!==t.insert&&(Array.isArray(t.insert)||(t.insert=[t.insert]),t.insert.sort(function(t,e){return t.pos-e.pos}).forEach(function(t){""!==t.c&&d.call(v,t.pos,t.c,void 0===t.strict||t.strict,void 0!==t.fromIsValid?t.fromIsValid:n)}),t.insert=void 0),t.refreshFromBuffer&&t.buffer){var e=t.refreshFromBuffer;p.call(v,!0===e?e:e.start,e.end,t.buffer),t.refreshFromBuffer=void 0}void 0!==t.rewritePosition&&(L=t.rewritePosition,t=!0)}return t}function b(e,i,r){var s=!1;return o.getTests.call(v,e).every(function(l,c){var d=l.match;if(a.getBuffer.call(v,!0),!1!==(s=(!d.jit||void 0!==E.validPositions[a.seekPrevious.call(v,e)])&&(null!=d.fn?d.fn.test(i,E,e,r,y,h.call(v,t)):(i===d.def||i===y.skipOptionalPartCharacter)&&""!==d.def&&{c:o.getPlaceholder.call(v,e,d,!0)||d.def,pos:e}))){var f=void 0!==s.c?s.c:i,p=e;return f=f===y.skipOptionalPartCharacter&&!0===d.static?o.getPlaceholder.call(v,e,d,!0)||d.def:f,!0!==(s=T(s))&&void 0!==s.pos&&s.pos!==e&&(p=s.pos),!0!==s&&void 0===s.pos&&void 0===s.c||!1===m.call(v,t,g.extend({},l,{input:u.call(v,f,d,p)}),n,p)&&(s=!1),!1}return!0}),s}void 0!==t.begin&&(L=v.isRTL?t.end:t.begin);var w=!0,I=g.extend(!0,{},E.validPositions);if(!1===y.keepStatic&&void 0!==E.excludes[L]&&!0!==r&&!0!==n)for(var P=L;P<(v.isRTL?t.begin:t.end);P++)void 0!==E.excludes[P]&&(E.excludes[P]=void 0,delete E.tests[P]);if("function"==typeof y.preValidation&&!0!==n&&!0!==s&&(w=T(w=y.preValidation.call(v,a.getBuffer.call(v),L,e,h.call(v,t),y,E,t,i||r))),!0===w){if(w=b(L,e,i),(!i||!0===n)&&!1===w&&!0!==s){var x=E.validPositions[L];if(!x||!0!==x.match.static||x.match.def!==e&&e!==y.skipOptionalPartCharacter){if(y.insertMode||void 0===E.validPositions[a.seekNext.call(v,L)]||t.end>L){var M=!1;if(E.jitOffset[L]&&void 0===E.validPositions[a.seekNext.call(v,L)]&&!1!==(w=d.call(v,L+E.jitOffset[L],e,!0,!0))&&(!0!==r&&(w.caret=L),M=!0),t.end>L&&(E.validPositions[L]=void 0),!M&&!a.isMask.call(v,L,y.keepStatic&&0===L))for(var k=L+1,O=a.seekNext.call(v,L,!1,0!==L);k<=O;k++)if(!1!==(w=b(k,e,i))){w=_.call(v,L,void 0!==w.pos?w.pos:k)||w,L=k;break}}}else w={caret:a.seekNext.call(v,L)}}!1!==w||!y.keepStatic||!c.call(v,a.getBuffer.call(v))&&0!==L||i||!0===r?h.call(v,t)&&E.tests[L]&&E.tests[L].length>1&&y.keepStatic&&!i&&!0!==r&&(w=l.call(v,!0)):w=l.call(v,L,e,i,n,void 0,t),!0===w&&(w={pos:L})}if("function"==typeof y.postValidation&&!0!==n&&!0!==s){var S=y.postValidation.call(v,a.getBuffer.call(v,!0),void 0!==t.begin?v.isRTL?t.end:t.begin:t,e,w,y,E,i,f);void 0!==S&&(w=!0===S?w:S)}w&&void 0===w.pos&&(w.pos=L),!1===w||!0===s?(a.resetMaskSet.call(v,!0),E.val
8idPositions=g.extend(!0,{},I)):_.call(v,void 0,L,!0);var D=T(w);return void 0!==v.maxLength&&a.getBuffer.call(v).length>v.maxLength&&!n&&(a.resetMaskSet.call(v,!0),E.validPositions=g.extend(!0,{},I),D=!1),D}function f(t,e,i){for(var n=this.maskset,r=!1,a=o.getTests.call(this,t),s=0;s<a.length;s++){if(a[s].match&&(a[s].match.nativeDef===e.match[i.shiftPositions?"def":"nativeDef"]&&(!i.shiftPositions||!e.match.static)||a[s].match.nativeDef===e.match.nativeDef||i.regex&&!a[s].match.static&&a[s].match.fn.test(e.input))){r=!0;break}if(a[s].match&&a[s].match.def===e.match.nativeDef){r=void 0;break}}return!1===r&&void 0!==n.jitOffset[t]&&(r=f.call(this,t+n.jitOffset[t],e,i)),r}function p(t,e,i){var n,o,r=this,l=this.maskset,u=this.opts,c=this.dependencyLib,h=u.skipOptionalPartCharacter,d=r.isRTL?i.slice().reverse():i;if(u.skipOptionalPartCharacter="",!0===t)a.resetMaskSet.call(r),l.tests={},t=0,e=i.length,o=a.determineNewCaretPosition.call(r,{begin:0,end:0},!1).begin;else{for(n=t;n<e;n++)delete l.validPositions[n];o=t}var f=new c.Event("keypress");for(n=t;n<e;n++){f.keyCode=d[n].toString().charCodeAt(0),r.ignorable=!1;var p=s.EventHandlers.keypressEvent.call(r,f,!0,!1,!1,o);!1!==p&&void 0!==p&&(o=p.forwardPosition)}u.skipOptionalPartCharacter=h}function _(t,e,i){var n=this,r=this.maskset,s=this.dependencyLib;if(void 0===t)for(t=e-1;t>0&&!r.validPositions[t];t--);for(var l=t;l<e;l++)if(void 0===r.validPositions[l]&&!a.isMask.call(n,l,!1)&&(0==l?o.getTest.call(n,l):r.validPositions[l-1])){var u=o.getTests.call(n,l).slice();""===u[u.length-1].match.def&&u.pop();var c,h=o.determineTestTemplate.call(n,l,u);if(h&&(!0!==h.match.jit||"master"===h.match.newBlockMarker&&(c=r.validPositions[l+1])&&!0===c.match.optionalQuantifier)&&((h=s.extend({},h,{input:o.getPlaceholder.call(n,l,h.match,!0)||h.match.def})).generatedInput=!0,m.call(n,l,h,!0),!0!==i)){var f=r.validPositions[e].input;return r.validPositions[e]=void 0,d.call(n,e,f,!0,!0)}}}function m(t,e,i,n){var r=this,s=this.maskset,l=this.opts,u=this.dependencyLib;function c(t,e,i){var n=e[t];if(void 0!==n&&!0===n.match.static&&!0!==n.match.optionality&&(void 0===e[0]||void 0===e[0].alternation)){var o=i.begin<=t-1?e[t-1]&&!0===e[t-1].match.static&&e[t-1]:e[t-1],r=i.end>t+1?e[t+1]&&!0===e[t+1].match.static&&e[t+1]:e[t+1];return o&&r}return!1}var h=0,p=void 0!==t.begin?t.begin:t,_=void 0!==t.end?t.end:t,m=!0;if(t.begin>t.end&&(p=t.end,_=t.begin),n=void 0!==n?n:p,p!==_||l.insertMode&&void 0!==s.validPositions[n]&&void 0===i||void 0===e||e.match.optionalQuantifier||e.match.optionality){var v,g=u.extend(!0,{},s.validPositions),y=a.getLastValidPosition.call(r,void 0,!0);for(s.p=p,v=y;v>=p;v--)delete s.validPositions[v],void 0===e&&delete s.tests[v+1];var E,L,T=n,b=T;for(e&&(s.validPositions[n]=u.extend(!0,{},e),b++,T++),v=e?_:_-1;v<=y;v++){if(void 0!==(E=g[v])&&!0!==E.generatedInput&&(v>=_||v>=p&&c(v,g,{begin:p,end:_}))){for(;""!==o.getTest.call(r,b).match.def;){if(!1!==(L=f.call(r,b,E,l))||"+"===E.match.def){"+"===E.match.def&&a.getBuffer.call(r,!0);var w=d.call(r,b,E.input,"+"!==E.match.def,!0);if(m=!1!==w,T=(w.pos||b)+1,!m&&L)break}else m=!1;if(m){void 0===e&&E.match.static&&v===t.begin&&h++;break}if(!m&&a.getBuffer.call(r),b>s.maskLength)break;b++}""==o.getTest.call(r,b).match.def&&(m=!1),b=T}if(!m)break}if(!m)return s.validPositions=u.extend(!0,{},g),a.resetMaskSet.call(r,!0),!1}else e&&o.getTest.call(r,n).match.cd===e.match.cd&&(s.validPositions[n]=u.extend(!0,{},e));return a.resetMaskSet.call(r,!0),h}},5581:function(t){t.exports=JSON.parse('{"BACKSPACE":8,"BACKSPACE_SAFARI":127,"DELETE":46,"DOWN":40,"END":35,"ENTER":13,"ESCAPE":27,"HOME":36,"INSERT":45,"LEFT":37,"PAGE_DOWN":34,"PAGE_UP":33,"RIGHT":39,"SPACE":32,"TAB":9,"UP":38,"X":88,"Z":90,"CONTROL":17,"PAUSE/BREAK":19,"WINDOWS_LEFT":91,"WINDOWS_RIGHT":92,"KEY_229":229}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,i),r.exports}var n={};return function(){var t,e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(3851),i(219),i(207),i(5296);var o=((t=i(2394))&&t.__esModule?t:{default:t}).default;e.default=o}(),n}()},"object"==s(e)&&"object"==s(t)?t.exports=a():(o=[],void 0===(r="function"==typeof(n=a)?n.apply(e,o):n)||(t.exports=r))},197:()=>{window.addEventListener("load",function(){try{for(var t=document.querySelector(".nav-menu-mobile").querySelectorAll(".nav-elem:not(.secondary-menu-anchor)"),e=0;e<t.length;e++)t[e].addEventListener("click",function(){document.getElementById("menuToggle").querySelector("input").checked=!1,document.body.style.overflowY="auto"});document.getElementById("menuToggle").querySelector("input").addEventListener("change",function(){this.checked?document.body.style.overflowY="hidden":document.body.style.overflowY="auto"})}catch(t){console.log("mobile menu not found")}try{for(var i=document.querySelectorAll(".secondary-menu-anchor"),n=0;n<i.length;n++)i[n].addEventListener("click",function(t){"A"===t.target.tagName?(t.target.classList.toggle("open"),console.log(t.target.parentElement.nextElementSibling),t.target.nextElementSibling.classList.toggle("open")):(t.target.parentElement.classList.toggle("open"),console.log(t.target.parentElement.nextElementSibling),t.target.parentElement.nextElementSibling.classList.toggle("open"))})}catch(t){console.log("secondary menu not found")}var o=document.querySelectorAll(".stylyzed-input");if(o.length>0)for(var r=0;r<o.length;r++)o[r].querySelector("input").addEventListener("change",function(){""==this.value?this.classList.remove("valid"):this.classList.add("valid")});document.cookie.split("; ").find(function(t){return t.startsWith("enable-contrast")})&&document.querySelector("body").classList.toggle("contrast-enable");try{document.querySelector(".accessibility").addEventListener("click",function(){document.querySelector("body").classList.toggle("contrast-enable"),document.querySelector("body").classList.contains("contrast-enable")?document.cookie="enable-contrast=true; path=/;":document.cookie="enable-contrast=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"})}catch(t){console.log("accessibility menu not found")}for(var a=document.querySelectorAll(".close"),s=0;s<a.length;s++)a[s].addEventListener("click",function(t){t.target.parentElement.classList.remove("active")});var l=document.querySelector(".search-icon");null!=l&&l.addEventListener("click",function(t){t.target.parentElement.parentElement.querySelector(".search-window").classList.add("active")});var u=document.querySelector("#scroll-top");null!=u&&(window.onscroll=function(){window.scrollY>1200?u.classList.add("show"):u.classList.remove("show")});var c=document.querySelectorAll(".stylyzed-textarea textarea");
8c.length&&c.forEach(function(t){var e=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"};e(),t.addEventListener("input",e)})})},2222:()=>{window.addEventListener("load",function(){if(null!=document.querySelector("#hromada-info-map")){var t=L.map("hromada-info-map").setView(setView.coord,setView.zoom);L.tileLayer("https://tiles.openstreetmap.org.ua/osm/{z}/{x}/{y}.png",{attribution:'<a href="https://www.minregion.gov.ua/" rel="nofollow" target="_blank">ÐÑнÑегÑон</a>; <a href="https://github.com/tomchadwin/qgis2web" target="_blank" rel="nofollow">qgis2web</a> · <a href="https://qgis.org" rel="nofollow" target="_blank">QGIS</a> © <a href="https://tiles.openstreetmap.org.ua/#6/48.959/32.311" rel="nofollow" target="_blank">OSM UA volunteer\'s server</a>'}).addTo(t);var e=L.icon({iconUrl:"/images/subdomain/classic/marker.png",iconSize:[34,50],iconAnchor:[17,50],className:"map-marker"}),i=L.icon({iconUrl:"/images/subdomain/classic/marker.png",iconSize:[34,50],iconAnchor:[17,50],className:"map-marker"});L.marker([mainLocaton.lat,mainLocaton.lon],{icon:i,riseOnHover:!0,draggable:!1}).addTo(t).bindPopup(mainLocaton.description,{closeOnClick:!1,autoClose:!1}),geoAreas.forEach(function(e){L.polygon(e,{weight:5,color:"#1699B4",fill:!0,fillColor:"#1ACEC4"}).addTo(t)});for(var n=0;n<locations.length;n++)L.marker([locations[n].lat,locations[n].lon],{icon:e,riseOnHover:!0,draggable:!1}).addTo(t).bindPopup(locations[n].description,{closeOnClick:!1,autoClose:!1})}if(null!=document.querySelector("#cnap-map")){var o=L.map("cnap-map").setView(setView.coord,setView.zoom);L.tileLayer("https://tiles.openstreetmap.org.ua/osm/{z}/{x}/{y}.png",{attribution:'<a href="https://www.minregion.gov.ua/" rel="nofollow" target="_blank">ÐÑнÑегÑон</a>; <a href="https://github.com/tomchadwin/qgis2web" target="_blank" rel="nofollow">qgis2web</a> · <a href="https://qgis.org" rel="nofollow" target="_blank">QGIS</a> © <a href="https://tiles.openstreetmap.org.ua/#6/48.959/32.311" rel="nofollow" target="_blank">OSM UA volunteer\'s server</a>'}).addTo(o);for(var r=L.icon({iconUrl:"/images/subdomain/classic/marker.png",iconSize:[34,50],iconAnchor:[17,50],className:"map-marker"}),a=0;a<locations.length;a++)L.marker([locations[a].lat,locations[a].lon],{icon:r,riseOnHover:!0,draggable:!1}).addTo(o).bindPopup(locations[a].description,{closeOnClick:!1,autoClose:!1})}if(null!=document.querySelector("#rozdil-info-map")){var s=L.map("rozdil-info-map").setView(setView.coord,setView.zoom);L.tileLayer("https://tiles.openstreetmap.org.ua/osm/{z}/{x}/{y}.png",{attribution:'<a href="https://www.minregion.gov.ua/" rel="nofollow" target="_blank">ÐÑнÑегÑон</a>; <a href="https://github.com/tomchadwin/qgis2web" target="_blank" rel="nofollow">qgis2web</a> · <a href="https://qgis.org" rel="nofollow" target="_blank">QGIS</a> © <a href="https://tiles.openstreetmap.org.ua/#6/48.959/32.311" rel="nofollow" target="_blank">OSM UA volunteer\'s server</a>'}).addTo(s);for(var l=L.icon({iconUrl:"/images/subdomain/classic/marker.png",iconSize:[34,50],iconAnchor:[17,50],className:"map-marker"}),u=0;u<locations.length;u++)L.marker([locations[u].lat,locations[u].lon],{icon:l,riseOnHover:!0,draggable:!1}).addTo(s).bindPopup(locations[u].description,{closeOnClick:!1,autoClose:!1})}})},2619:()=>{function t(t){for(var e="",i=Object.keys(t),n="",o="",r=0;r<i.length;r++)o=n,n="",0==t[i[r]][0]?n="<p>".concat(i[r],"</p><p>ÐиÑ
Ñдний</p>"):(n+="<p>".concat(i[r],"</p><div><p>").concat(t[i[r]][1]," - ").concat(t[i[r]][2],"</p>"),null!=t[i[r]][3]&&(n+="<br><p>ÐеÑеÑва</p><p>".concat(t[i[r]][3]," - ").concat(t[i[r]][4],"</p>")),n+="</div>"),n.substring(5)!=o.substring(5)?e+='<div class="content-entry">'+n+"</div>":e=e.replace(o.substring(3,5),o.substring(3,5)+", "+n.substring(3,5));return e=(e=(e=(e=(e=(e=(e=(e=e.replace("Ðн,ÐÑ,СÑ,ЧÑ,ÐÑ","Ðн-ÐÑ")).replace("Ðн","ÐонедÑлок")).replace("ÐÑ","ÐÑвÑоÑок")).replace("СÑ","СеÑеда")).replace("ЧÑ","ЧеÑвеÑ")).replace("ÐÑ","Ð'ÑÑниÑÑ")).replace("Сб","СÑбоÑа")).replace("Ðд","ÐедÑлÑ")}window.addEventListener("load",function(){if("undefined"!=typeof schedule){for(var e=0;e<schedule.length;e++){var i=document.getElementById("institution-".concat(schedule[e].id));try{i.querySelector(".schedule").innerHTML=t(schedule[e].schedule)}catch(t){}}for(var n=document.getElementsByClassName("schedule-accordion"),o=0;o<n.length;o++)n[o].querySelector("h5").addEventListener("click",function(){this.parentElement.classList.toggle("open")})}})},4418:()=>{var t=!1;function e(){if(t){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4==this.readyState&&200==this.status){document.querySelector("#vulyk-results").innerHTML="";var t=JSON.parse(this.response);if(null==t||"EmptyResult"==t.code){return document.querySelector("#vulyk-results").innerHTML="<h2>РезÑлÑÑаÑи запиÑÑ</h2><br><br><h4>ÐоÑлÑги не знайдено</h4>",void document.getElementById("vulyk-results").scrollIntoView()}var e="";switch(t.status){case"Draft":e="ЧеÑнеÑа";break;case"Registered":e="ÐаÑеÑÑÑÑована";break;case"SubmitedToCNAP":e="Ðодано до ЦÐÐÐ";break;case"OnProcessingSNAP":e="Ðа обÑобÑÑ Ð¦ÐÐÐ";break;case"ResultPrepared":e="РезÑлÑÑÐ°Ñ Ð¿ÑдгоÑовлено";break;case"ApplicantNoted":e="СповÑÑено заÑвника";break;case"ApplicantNotedButNotReceived":e="СповÑÑено заÑвника, але не оÑÑимано";break;case"closed":e="ÐакÑиÑо";break;case"closedWithoutResult":e="ÐакÑиÑо без ÑезÑлÑÑаÑÑ";break;default:e=t.status,console.log("Unknown vulyk status: ",t.status)}var i="";switch(t.state){case"Premature":i="ÐкÑÑалÑна";break;case"ApproachingDeadline":i="ÐаближаÑÑÑÑÑ ÑеÑмÑн виконаннÑ";break;case"Overdue":i="ÐÑоÑеÑмÑнована";break;default:i=t.state,console.log("Unknown vulyk state: ",t.state)}var n="<h2>РезÑлÑÑаÑи запиÑÑ</h2>";return n+='\n <div class="two-one-container reverse mobile-one-top">\n <div class="two-column"><p>'.concat(e,'</p></div>\n <div class="one-column"><h5>СÑаÑÑÑ</h5></div>\n </div>\n '),n+='\n <div class="two-one-container reverse mobile-one-top">\n <div class="two-column"><p>'.concat(i,'</p></div>\n <div class="one-column"><h5>ТеÑмÑн</h5></div>\n </div>\n '),document.querySelector("#vulyk-results").innerHTML=n,void document.getElementById("vulyk-results").scrollIntoView()}if(4==this.readyState&&500==this.status){return document.querySelector("#vulyk-results").innerHTML="<h2>РезÑлÑÑаÑи запиÑÑ</h2><br><br><h4>ÐоÑлÑги не знайдено</h4>",void document.getElementById("vulyk-results").scrollIntoView()}}
vendor: 54,569 bytes, lines 8-38
8,e.open("POST","https://api.toolkit.in.ua/getVulykData",!0),e.setRequestHeader("Content-type","application/json; charset=UTF-8"),e.send(JSON.stringify({number:document.getElementsByName("number")[0].value,password:document.getElementsByName("pin")[0].value}))}}window.addEventListener("load",function(){var i=document.getElementById("vulyk-form");if(i)for(var n=function(e){e.target.checkValidity()||""==e.target.value?(e.target.classList.remove("invalid"),t=!0):(e.target.classList.add("invalid"),t=!1)},o=i.querySelectorAll("input"),r=0;r<o.length;r++)o[r].addEventListener("change",n),o[r].addEventListener("keydown",function(t){"Enter"===t.key&&(t.preventDefault(),e())})})},8236:function(t){ 9/*! 10 * FilePondPluginFileValidateSize 2.2.8 11 * Licensed under MIT, https://opensource.org/licenses/MIT/ 12 * Please visit https://pqina.nl/filepond/ for details. 13 */ 14t.exports=function(){"use strict";var t=function(t){var e=t.addFilter,i=t.utils,n=i.Type,o=i.replaceInString,r=i.toNaturalFileSize;return e("ALLOW_HOPPER_ITEM",function(t,e){var i=e.query;if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var n=i("GET_MAX_FILE_SIZE");if(null!==n&&t.size>n)return!1;var o=i("GET_MIN_FILE_SIZE");return!(null!==o&&t.size<o)}),e("LOAD_FILE",function(t,e){var i=e.query;return new Promise(function(e,n){if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return e(t);var a=i("GET_FILE_VALIDATE_SIZE_FILTER");if(a&&!a(t))return e(t);var s=i("GET_MAX_FILE_SIZE");if(null!==s&&t.size>s)n({status:{main:i("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:o(i("GET_LABEL_MAX_FILE_SIZE"),{filesize:r(s,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});else{var l=i("GET_MIN_FILE_SIZE");if(null!==l&&t.size<l)n({status:{main:i("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:o(i("GET_LABEL_MIN_FILE_SIZE"),{filesize:r(l,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});else{var u=i("GET_MAX_TOTAL_FILE_SIZE");if(null!==u&&i("GET_ACTIVE_ITEMS").reduce(function(t,e){return t+e.fileSize},0)>u)return void n({status:{main:i("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:o(i("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:r(u,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});e(t)}}})}),{options:{allowFileSizeValidation:[!0,n.BOOLEAN],maxFileSize:[null,n.INT],minFileSize:[null,n.INT],maxTotalFileSize:[null,n.INT],fileValidateSizeFilter:[null,n.FUNCTION],labelMinFileSizeExceeded:["File is too small",n.STRING],labelMinFileSize:["Minimum file size is {filesize}",n.STRING],labelMaxFileSizeExceeded:["File is too large",n.STRING],labelMaxFileSize:["Maximum file size is {filesize}",n.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",n.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",n.STRING]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:t})),t}()},521:function(t){ 15/*! 16 * FilePondPluginFileValidateType 1.2.9 17 * Licensed under MIT, https://opensource.org/licenses/MIT/ 18 * Please visit https://pqina.nl/filepond/ for details. 19 */ 20t.exports=function(){"use strict";var t=function(t){var e=t.addFilter,i=t.utils,n=i.Type,o=i.isString,r=i.replaceInString,a=i.guesstimateMimeType,s=i.getExtensionFromFilename,l=i.getFilenameFromURL,u=function(t,e){return(/^[^/]+/.exec(t)||[]).pop()===e.slice(0,-2)},c=function(t,e){return t.some(function(t){return/\*$/.test(t)?u(e,t):t===e})},h=function(t){var e="";if(o(t)){var i=l(t),n=s(i);n&&(e=a(n))}else e=t.type;return e},d=function(t,e,i){if(0===e.length)return!0;var n=h(t);return i?new Promise(function(o,r){i(t,n).then(function(t){c(e,t)?o():r()}).catch(r)}):c(e,n)},f=function(t){return function(e){return null!==t[e]&&(t[e]||e)}};return e("SET_ATTRIBUTE_TO_OPTION_MAP",function(t){return Object.assign(t,{accept:"acceptedFileTypes"})}),e("ALLOW_HOPPER_ITEM",function(t,e){var i=e.query;return!i("GET_ALLOW_FILE_TYPE_VALIDATION")||d(t,i("GET_ACCEPTED_FILE_TYPES"))}),e("LOAD_FILE",function(t,e){var i=e.query;return new Promise(function(e,n){if(i("GET_ALLOW_FILE_TYPE_VALIDATION")){var o=i("GET_ACCEPTED_FILE_TYPES"),a=i("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),s=d(t,o,a),l=function(){var t=o.map(f(i("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter(function(t){return!1!==t}),e=t.filter(function(e,i){return t.indexOf(e)===i});n({status:{main:i("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:r(i("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:e.join(", "),allButLastType:e.slice(0,-1).join(", "),lastType:e[e.length-1]})}})};if("boolean"==typeof s)return s?e(t):l();s.then(function(){e(t)}).catch(l)}else e(t)})}),{options:{allowFileTypeValidation:[!0,n.BOOLEAN],acceptedFileTypes:[[],n.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",n.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",n.STRING],fileValidateTypeLabelExpectedTypesMap:[{},n.OBJECT],fileValidateTypeDetectType:[null,n.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:t})),t}()},3567:function(t){ 21/*! 22 * FilePondPluginImageResize 2.0.10 23 * Licensed under MIT, https://opensource.org/licenses/MIT/ 24 * Please visit https://pqina.nl/filepond/ for details. 25 */ 26t.exports=function(){"use strict";var t=function(t){return/^image/.test(t.type)},e=function(t,e){var i=new Image;i.onload=function(){var t=i.naturalWidth,n=i.naturalHeight;i=null,e({width:t,height:n})},i.onerror=function(){return e(null)},i.src=t},i=function(i){var n=i.addFilter,o=i.utils.Type;return n("DID_LOAD_ITEM",function(i,n){var o=n.query;return new Promise(function(n,r){var a=i.file;if(!t(a)||!o("GET_ALLOW_IMAGE_RESIZE"))return n(i);var s=o("GET_IMAGE_RESIZE_MODE"),l=o("GET_IMAGE_RESIZE_TARGET_WIDTH"),u=o("GET_IMAGE_RESIZE_TARGET_HEIGHT"),c=o("GET_IMAGE_RESIZE_UPSCALE");if(null===l&&null===u)return n(i);var h=null===l?u:l,d=null===u?h:u,f=URL.createObjectURL(a);e(f,function(t){if(URL.revokeObjectURL(f),!t)return n(i);var e=t.width,o=t.height,r=(i.getMetadata("exif")||{}).orientation||-1;if(r>=5&&r<=8){var a=[o,e];e=a[0],o=a[1]}if(e===h&&o===d)return n(i);if(!c)if("cover"===s){if(e<=h||o<=d)return n(i)}else if(e<=h&&o<=h)return n(i);i.setMetadata("resize",{mode:s,upscale:c,size:{width:h,height:d}}),n(i)})})}),{options:{allowImageResize:[!0,o.BOOLEAN],imageResizeMode:["cover",o.STRING],imageResizeUpscale:[!0,o.BOOLEAN],imageResizeTargetWidth:[null,o.INT],imageResizeTargetHeight:[null,o.INT]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:i})),i}()},3863:function(t){ 27/*! 28 * FilePondPluginImageTransform 3.8.7 29 * Licensed under MIT, https://opensource.org/licenses/MIT/ 30 * Please visit https://pqina.nl/filepond/ for details. 31 */ 32t.exports=function(){"use strict";var t=function(t){return/^image/.test(t.type)},e=function(t){return t.substr(0,t.lastIndexOf("."))||t},i={jpeg:"jpg","svg+xml":"svg"},n=function(t,n){var o=e(t),r=n.split("/")[1],a=i[r]||r;return"".concat(o,".").concat(a)},o=function(t){return/jpeg|png|svg\+xml/.test(t)?t:"image/jpeg"},r=function(t){return/^image/.test(t.type)},a={1:function(){return[1,0,0,1,0,0]},2:function(t){return[-1,0,0,1,t,0]},3:function(t,e){return[-1,0,0,-1,t,e]},4:function(t,e){return[1,0,0,-1,0,e]},5:function(){return[0,1,1,0,0,0]},6:function(t,e){return[0,1,-1,0,e,0]},7:function(t,e){return[0,-1,-1,0,e,t]},8:function(t){return[0,-1,1,0,0,t]}},s=function(t,e,i){return-1===i&&(i=1),a[i](t,e)},l=function(t,e){return{x:t,y:e}},u=function(t,e){return t.x*e.x+t.y*e.y},c=function(t,e){return l(t.x-e.x,t.y-e.y)},h=function(t,e){return u(c(t,e),c(t,e))},d=function(t,e){return Math.sqrt(h(t,e))},f=function(t,e){var i=t,n=1.5707963267948966,o=e,r=1.5707963267948966-e,a=Math.sin(n),s=Math.sin(o),u=Math.sin(r),c=Math.cos(r),h=i/a;return l(c*(h*s),c*(h*u))},p=function(t,e){var i=t.width,n=t.height,o=f(i,e),r=f(n,e),a=l(t.x+Math.abs(o.x),t.y-Math.abs(o.y)),s=l(t.x+t.width+Math.abs(r.y),t.y+Math.abs(r.x)),u=l(t.x-Math.abs(r.y),t.y+t.height-Math.abs(r.x));return{width:d(a,s),height:d(a,u)}},_=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:.5,y:.5},o=n.x>.5?1-n.x:n.x,r=n.y>.5?1-n.y:n.y,a=2*o*t.width,s=2*r*t.height,l=p(e,i);return Math.max(l.width/a,l.height/s)},m=function(t,e){var i=t.width,n=i*e;return n>t.height&&(i=(n=t.height)/e),{x:.5*(t.width-i),y:.5*(t.height-n),width:i,height:n}},v=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t.height/t.width,o=1,r=e,a=1,s=n;s>r&&(a=(s=r)/n);var l=Math.max(o/a,r/s),u=t.width/(i*l*a);return{width:u,height:u*e}},g=function(t){t.width=1,t.height=1,t.getContext("2d").clearRect(0,0,1,1)},y=function(t){return t&&(t.horizontal||t.vertical)},E=function(t,e,i){if(e<=1&&!y(i))return t.width=t.naturalWidth,t.height=t.naturalHeight,t;var n=document.createElement("canvas"),o=t.naturalWidth,r=t.naturalHeight,a=e>=5&&e<=8;a?(n.width=r,n.height=o):(n.width=o,n.height=r);var l=n.getContext("2d");if(e&&l.transform.apply(l,s(o,r,e)),y(i)){var u=[1,0,0,1,0,0];(!a&&i.horizontal||a&i.vertical)&&(u[0]=-1,u[4]=o),(!a&&i.vertical||a&&i.horizontal)&&(u[3]=-1,u[5]=r),l.transform.apply(l,u)}return l.drawImage(t,0,0,o,r),n},L=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.canvasMemoryLimit,r=n.background,a=void 0===r?null:r,s=i.zoom||1,l=E(t,e,i.flip),u={width:l.width,height:l.height},c=i.aspectRatio||u.height/u.width,h=v(u,c,s);if(o){var d=h.width*h.height;if(d>o){var f=Math.sqrt(o)/Math.sqrt(d);u.width=Math.floor(u.width*f),u.height=Math.floor(u.height*f),h=v(u,c,s)}}var p=document.createElement("canvas"),y={x:.5*h.width,y:.5*h.height},L={x:0,y:0,width:h.width,height:h.height,center:y},T=void 0===i.scaleToFit||i.scaleToFit,b=s*_(u,m(L,c),i.rotation,T?i.center:{x:.5,y:.5});p.width=Math.round(h.width/b),p.height=Math.round(h.height/b),y.x/=b,y.y/=b;var w={x:y.x-u.width*(i.center?i.center.x:.5),y:y.y-u.height*(i.center?i.center.y:.5)},I=p.getContext("2d");a&&(I.fillStyle=a,I.fillRect(0,0,p.width,p.height)),I.translate(y.x,y.y),I.rotate(i.rotation||0),I.drawImage(l,w.x-y.x,w.y-y.y,u.width,u.height);var P=I.getImageData(0,0,p.width,p.height);return g(p),P};"undefined"!=typeof window&&void 0!==window.document&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,e,i){var n=this.toDataURL(e,i).split(",")[1];setTimeout(function(){for(var i=atob(n),o=i.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=i.charCodeAt(a);t(new Blob([r],{type:e||"image/png"}))})}}));var T=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Promise(function(n){var o=i?i(t):t;Promise.resolve(o).then(function(t){t.toBlob(n,e.type,e.quality)})})},b=function(t,e){return x(t.x*e,t.y*e)},w=function(t,e){return x(t.x+e.x,t.y+e.y)},I=function(t){var e=Math.sqrt(t.x*t.x+t.y*t.y);return 0===e?{x:0,y:0}:x(t.x/e,t.y/e)},P=function(t,e,i){var n=Math.cos(e),o=Math.sin(e),r=x(t.x-i.x,t.y-i.y);return x(i.x+n*r.x-o*r.y,i.y+o*r.x+n*r.y)},x=function(){return{x:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,y:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}},M=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0;return"string"==typeof t?parseFloat(t)*i:"number"==typeof t?t*(n?e[n]:Math.min(e.width,e.height)):void 0},k=function(t,e,i){var n=t.borderStyle||t.lineStyle||"solid",o=t.backgroundColor||t.fontColor||"transparent",r=t.borderColor||t.lineColor||"transparent",a=M(t.borderWidth||t.lineWidth,e,i);return{"stroke-linecap":t.lineCap||"round","stroke-linejoin":t.lineJoin||"round","stroke-width":a||0,"stroke-dasharray":"string"==typeof n?"":n.map(function(t){return M(t,e,i)}).join(","),stroke:r,fill:o,opacity:t.opacity||1}},O=function(t){return null!=t},S=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=M(t.x,e,i,"width")||M(t.left,e,i,"width"),o=M(t.y,e,i,"height")||M(t.top,e,i,"height"),r=M(t.width,e,i,"width"),a=M(t.height,e,i,"height"),s=M(t.right,e,i,"width"),l=M(t.bottom,e,i,"height");return O(o)||(o=O(a)&&O(l)?e.height-a-l:l),O(n)||(n=O(r)&&O(s)?e.width-r-s:s),O(r)||(r=O(n)&&O(s)?e.width-n-s:0),O(a)||(a=O(o)&&O(l)?e.height-o-l:0),{x:n||0,y:o||0,width:r||0,height:a||0}},D=function(t){return t.map(function(t,e){return"".concat(0===e?"M":"L"," ").concat(t.x," ").concat(t.y)}).join(" ")},R=function(t,e){return Object.keys(e).forEach(function(i){return t.setAttribute(i,e[i])})},A="http://www.w3.org/2000/svg",C=function(t,e){var i=document.createElementNS(A,t);return e&&R(i,e),i},N=function(t){return R(t,Object.assign({},t.rect,t.styles))},B=function(t){var e=t.rect.x+.5*t.rect.width,i=t.rect.y+.5*t.rect.height,n=.5*t.rect.width,o=.5*t.rect.height;return R(t,Object.assign({cx:e,cy:i,rx:n,ry:o},t.styles))},G={contain:"xMidYMid meet",cover:"xMidYMid slice"},z=function(t,e){R(t,Object.assign({},t.rect,t.styles,{preserveAspectRatio:G[e.fit]||"none"}))},F={left:"start",center:"middle",right:"end"},U=function(t,e,i,n){var o=M(e.fontSize,i,n),r=e.fontFamily||"sans-serif",a=e.fontWeight||"normal",s=F[e.textAlign]||"start";R(t,Object.assign({},t.rect,t.styles,{"stroke-width":0,"font-weight":a,"font-size":o,"font-family":r,"text-anchor":s})),t.text!==e.text&&(t.text=e.text,t.textContent=e.text.length?e.text:" ")},j=function(t,e,i,n){R(t,Object.assign({},t.rect,t.styles,{fill:"none"}));var o=t.childNodes[0],r=t.childNodes[1],a=t.childNodes[2],s=t.rect,l={x:t.rect.x+t.rect.width,y:t.rect.y+t.rect.height};if(R(o,{x1:s.x,y1:s.y,x2:l.x,y2:l.y}),e.lineDecoration){r.style.display="none",a.style.display="none";var u=I({x:l.x-s.x,y:l.y-s.y}),c=M(.05,i,n);if(-1!==e.lineDecoration.indexOf("arrow-begin")){var h=b(u,c),d=w(s,h),f=P(s,2,d),p=P(s,-2,d);R(r,{style:"display:block;",d:"M".concat(f.x,",").concat(f.y," L").concat(s.x,",").concat(s.y," L").concat(p.x,",").concat(p.y)})}if(-1!==e.lineDecoration.indexOf("arrow-end")){var _=b(u,-c),m=w(l,_),v=P(l,2,m),g=P(l,-2,m);R(a,{style:"display:block;",d:"M".concat(v.x,",").concat(v.y," L").concat(l.x,",").concat(l.y," L").concat(g.x,",").concat(g.y)})}}},V=function(t,e,i,n){R(t,Object.assign({},t.styles,{fill:"none",d:D(e.points.map(function(t){return{x:M(t.x,i,n,"width"),y:M(t.y,i,n,"height")}}))}))},H=function(t){return function(e){return C(t,{id:e.id})}},Z=function(t){var e=C("g",{id:t.id,"stroke-linecap":"round","stroke-linejoin":"round"}),i=C("line");e.appendChild(i);var n=C("path");e.appendChild(n);var o=C("path");return e.appendChild(o),e},q={image:function(t){var e=C("image",{id:t.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return e.onload=function(){e.setAttribute("opacity",t.opacity||1)},e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.src),e},rect:H("rect"),ellipse:H("ellipse"),text:H("text"),path:H("path"),line:Z},W={rect:N,ellipse:B,image:z,text:U,path:V,line:j},Y=function(t,e){return q[t](e)},X=function(t,e,i,n,o){"path"!==e&&(t.rect=S(i,n,o)),t.styles=k(i,n,o),W[e](t,i,n,o)},K=function(t,e){return t[1].zIndex>e[1].zIndex?1:t[1].zIndex<e[1].zIndex?-1:0},Q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;return new Promise(function(o){var r=n.background,a=void 0===r?null:r,s=new FileReader;s.onloadend=function(){var t=s.result,n=document.createElement("div");n.style.cssText="position:absolute;pointer-events:none;width:0;height:0;visibility:hidden;",n.innerHTML=t;var r=n.querySelector("svg");document.body.appendChild(n);var l=r.getBBox();n.parentNode.removeChild(n);var u=n.querySelector("title"),c=r.getAttribute("viewBox")||"",h=r.getAttribute("width")||"",d=r.getAttribute("height")||"",f=parseFloat(h)||null,p=parseFloat(d)||null,v=(h.match(/[a-z]+/)||[])[0]||"",g=(d.match(/[a-z]+/)||[])[0]||"",y=c.split(" ").map(parseFloat),E=y.length?{x:y[0],y:y[1],width:y[2],height:y[3]}:l,L=null!=f?f:E.width,T=null!=p?p:E.height;r.style.overflow="visible",r.setAttribute("width",L),r.setAttribute("height",T);var b="";if(i&&i.length){var w={width:L,height:T};b=i.sort(K).reduce(function(t,e){var i=Y(e[0],e[1]);return X(i,e[0],e[1],w),i.removeAttribute("id"),1===i.getAttribute("opacity")&&i.removeAttribute("opacity"),t+"\n"+i.outerHTML+"\n"},""),b="\n\n<g>".concat(b.replace(/ /g," "),"</g>\n\n")}var I=e.aspectRatio||T/L,P=L,x=P*I,M=void 0===e.scaleToFit||e.scaleToFit,k=e.center?e.center.x:.5,O=e.center?e.center.y:.5,S=_({width:L,height:T},m({width:P,height:x},I),e.rotation,M?{x:k,y:O}:{x:.5,y:.5}),D=e.zoom*S,R=e.rotation*(180/Math.PI),A={x:.5*P,y:.5*x},C={x:A.x-L*k,y:A.y-T*O},N=["rotate(".concat(R," ").concat(A.x," ").concat(A.y,")"),"translate(".concat(A.x," ").concat(A.y,")"),"scale(".concat(D,")"),"translate(".concat(-A.x," ").concat(-A.y,")"),"translate(".concat(C.x," ").concat(C.y,")")],B=e.flip&&e.flip.horizontal,G=e.flip&&e.flip.vertical,z=["scale(".concat(B?-1:1," ").concat(G?-1:1,")"),"translate(".concat(B?-L:0," ").concat(G?-T:0,")")],F='<?xml version="1.0" encoding="UTF-8"?>\n<svg width="'.concat(P).concat(v,'" height="').concat(x).concat(g,'" \nviewBox="0 0 ').concat(P," ").concat(x,'" ').concat(a?'style="background:'+a+'" ':"",'\npreserveAspectRatio="xMinYMin"\nxmlns:xlink="http://www.w3.org/1999/xlink"\nxmlns="http://www.w3.org/2000/svg">\n\x3c!-- Generated by PQINA - https://pqina.nl/ --\x3e\n<title>').concat(u?u.textContent:"",'</title>\n<g transform="').concat(N.join(" "),'">\n<g transform="').concat(z.join(" "),'">\n').concat(r.outerHTML).concat(b,"\n</g>\n</g>\n</svg>");o(F)},s.readAsText(t)})},$=function(t){var e;try{e=new ImageData(t.width,t.height)}catch(i){e=document.createElement("canvas").getContext("2d").createImageData(t.width,t.height)}return e.data.set(t.data),e},J=function(){var t={resize:c,filter:u},e=function(e,i){return e.forEach(function(e){i=t[e.type](i,e.data)}),i},i=function(t,i){var n=t.transforms,o=null;if(n.forEach(function(t){"filter"===t.type&&(o=t)}),o){var r=null;n.forEach(function(t){"resize"===t.type&&(r=t)}),r&&(r.data.matrix=o.data,n=n.filter(function(t){return"filter"!==t.type}))}i(e(n,t.imageData))};self.onmessage=function(t){i(t.data.message,function(e){self.postMessage({id:t.data.id,message:e},[e.data.buffer])})};var n=1,o=1,r=1;function a(t,e,i){var a=e[t]/255,s=e[t+1]/255,l=e[t+2]/255,u=e[t+3]/255,c=a*i[0]+s*i[1]+l*i[2]+u*i[3]+i[4],h=a*i[5]+s*i[6]+l*i[7]+u*i[8]+i[9],d=a*i[10]+s*i[11]+l*i[12]+u*i[13]+i[14],f=a*i[15]+s*i[16]+l*i[17]+u*i[18]+i[19],p=Math.max(0,c*f)+n*(1-f),_=Math.max(0,h*f)+o*(1-f),m=Math.max(0,d*f)+r*(1-f);e[t]=255*Math.max(0,Math.min(1,p)),e[t+1]=255*Math.max(0,Math.min(1,_)),e[t+2]=255*Math.max(0,Math.min(1,m))}var s=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function l(t){return self.JSON.stringify(t||[])===s}function u(t,e){if(!e||l(e))return t;for(var i=t.data,a=i.length,s=e[0],u=e[1],c=e[2],h=e[3],d=e[4],f=e[5],p=e[6],_=e[7],m=e[8],v=e[9],g=e[10],y=e[11],E=e[12],L=e[13],T=e[14],b=e[15],w=e[16],I=e[17],P=e[18],x=e[19],M=0,k=0,O=0,S=0,D=0,R=0,A=0,C=0,N=0,B=0,G=0,z=0;M<a;M+=4)R=(k=i[M]/255)*s+(O=i[M+1]/255)*u+(S=i[M+2]/255)*c+(D=i[M+3]/255)*h+d,A=k*f+O*p+S*_+D*m+v,C=k*g+O*y+S*E+D*L+T,N=k*b+O*w+S*I+D*P+x,B=Math.max(0,R*N)+n*(1-N),G=Math.max(0,A*N)+o*(1-N),z=Math.max(0,C*N)+r*(1-N),i[M]=255*Math.max(0,Math.min(1,B)),i[M+1]=255*Math.max(0,Math.min(1,G)),i[M+2]=255*Math.max(0,Math.min(1,z));return t}function c(t,e){var i=e.mode,n=void 0===i?"contain":i,o=e.upscale,r=void 0!==o&&o,s=e.width,c=e.height,h=e.matrix;if(h=!h||l(h)?null:h,!s&&!c)return u(t,h);if(null===s?s=c:null===c&&(c=s),"force"!==n){var d=s/t.width,f=c/t.height,p=1;if("cover"===n?p=Math.max(d,f):"contain"===n&&(p=Math.min(d,f)),p>1&&!1===r)return u(t,h);s=t.width*p,c=t.height*p}for(var _=t.width,m=t.height,v=Math.round(s),g=Math.round(c),y=t.data,E=new Uint8ClampedArray(v*g*4),L=_/v,T=m/g,b=Math.ceil(.5*L),w=Math.ceil(.5*T),I=0;I<g;I++)for(var P=0;P<v;P++){for(var x=4*(P+I*v),M=0,k=0,O=0,S=0,D=0,R=0,A=0,C=(I+.5)*T,N=Math.floor(I*T);N<(I+1)*T;N++)for(var B=Math.abs(C-(N+.5))/w,G=(P+.5)*L,z=B*B,F=Math.floor(P*L);F<(P+1)*L;F++){var U=Math.abs(G-(F+.5))/b,j=Math.sqrt(z+U*U);if(j>=-1&&j<=1&&(M=2*j*j*j-3*j*j+1)>0){var V=y[3+(U=4*(F+N*_))];A+=M*V,O+=M,V<255&&(M=M*V/250),S+=M*y[U],D+=M*y[U+1],R+=M*y[U+2],k+=M}}E[x]=S/k,E[x+1]=D/k,E[x+2]=R/k,E[x+3]=A/O,h&&a(x,E,h)}return{data:E,width:v,height:g}}},tt=function(t,e){if(1165519206===t.getUint32(e+4,!1)){e+=4;var i=18761===t.getUint16(e+=6,!1);e+=t.getUint32(e+4,i);var n=t.getUint16(e,i);e+=2;for(var o=0;o<n;o++)if(274===t.getUint16(e+12*o,i))return t.setUint16(e+12*o+8,1,i),!0;return!1}},et=function(t){var e=new DataView(t);if(65496!==e.getUint16(0))return null;for(var i,n,o=2,r=!1;o<e.byteLength&&(i=e.getUint16(o,!1),n=e.getUint16(o+2,!1)+2,i>=65504&&i<=65519||65534===i)&&(r||(r=tt(e,o,n)),!(o+n>e.byteLength));)o+=n;return t.slice(0,o)},it=function(t){return new Promise(function(e){var i=new FileReader;i.onload=function(){return e(et(i.result)||null)},i.readAsArrayBuffer(t.slice(0,262144))})},nt=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},ot=function(t,e){var i=nt();if(i){var n=new i;return n.append(t),n.getBlob(e)}return new Blob([t],{type:e})},rt=function(){return Math.random().toString(36).substr(2,9)},at=function(t){var e=new Blob(["(",t.toString(),")()"],{type:"application/javascript"}),i=URL.createObjectURL(e),n=new Worker(i),o=[];return{transfer:function(){},post:function(t,e,i){var r=rt();o[r]=e,n.onmessage=function(t){var e=o[t.data.id];e&&(e(t.data.message),delete o[t.data.id])},n.postMessage({id:r,message:t},i)},terminate:function(){n.terminate(),URL.revokeObjectURL(i)}}},st=function(t){return new Promise(function(e,i){var n=new Image;n.onload=function(){e(n)},n.onerror=function(t){i(t)},n.src=t})},lt=function(t){return t.reduce(function(t,e){return t.then(function(t){return e().then(Array.prototype.concat.bind(t))})},Promise.resolve([]))},ut=function(t,e){return new Promise(function(i){var n={width:t.width,height:t.height},o=t.getContext("2d"),r=e.sort(K).map(function(t){return function(){return new Promise(function(e){dt[t[0]](o,n,t[1],e)&&e()})}});lt(r).then(function(){return i(t)})})},ct=function(t,e){t.beginPath(),t.lineCap=e["stroke-linecap"],t.lineJoin=e["stroke-linejoin"],t.lineWidth=e["stroke-width"],e["stroke-dasharray"].length&&t.setLineDash(e["stroke-dasharray"].split(",")),t.fillStyle=e.fill,t.strokeStyle=e.stroke,t.globalAlpha=e.opacity||1},ht=function(t){t.fill(),t.stroke(),t.globalAlpha=1},dt={rect:function(t,e,i){var n=S(i,e),o=k(i,e);return ct(t,o),t.rect(n.x,n.y,n.width,n.height),ht(t,o),!0},ellipse:function(t,e,i){var n=S(i,e),o=k(i,e);ct(t,o);var r=n.x,a=n.y,s=n.width,l=n.height,u=.5522848,c=s/2*u,h=l/2*u,d=r+s,f=a+l,p=r+s/2,_=a+l/2;return t.moveTo(r,_),t.bezierCurveTo(r,_-h,p-c,a,p,a),t.bezierCurveTo(p+c,a,d,_-h,d,_),t.bezierCurveTo(d,_+h,p+c,f,p,f),t.bezierCurveTo(p-c,f,r,_+h,r,_),ht(t,o),!0},image:function(t,e,i,n){var o=S(i,e),r=k(i,e);ct(t,r);var a=new Image;new URL(i.src,window.location.href).origin!==window.location.origin&&(a.crossOrigin=""),a.onload=function(){if("cover"===i.fit){var e=o.width/o.height,s=e>1?a.width:a.height*e,l=e>1?a.width/e:a.height,u=.5*a.width-.5*s,c=.5*a.height-.5*l;t.drawImage(a,u,c,s,l,o.x,o.y,o.width,o.height)}else if("contain"===i.fit){var h=Math.min(o.width/a.width,o.height/a.height),d=h*a.width,f=h*a.height,p=o.x+.5*o.width-.5*d,_=o.y+.5*o.height-.5*f;t.drawImage(a,0,0,a.width,a.height,p,_,d,f)}else t.drawImage(a,0,0,a.width,a.height,o.x,o.y,o.width,o.height);ht(t,r),n()},a.src=i.src},text:function(t,e,i){var n=S(i,e),o=k(i,e);ct(t,o);var r=M(i.fontSize,e),a=i.fontFamily||"sans-serif",s=i.fontWeight||"normal",l=i.textAlign||"left";return t.font="".concat(s," ").concat(r,"px ").concat(a),t.textAlign=l,t.fillText(i.text,n.x,n.y),ht(t,o),!0},line:function(t,e,i){var n=S(i,e),o=k(i,e);ct(t,o),t.beginPath();var r={x:n.x,y:n.y},a={x:n.x+n.width,y:n.y+n.height};t.moveTo(r.x,r.y),t.lineTo(a.x,a.y);var s=I({x:a.x-r.x,y:a.y-r.y}),l=.04*Math.min(e.width,e.height);if(-1!==i.lineDecoration.indexOf("arrow-begin")){var u=b(s,l),c=w(r,u),h=P(r,2,c),d=P(r,-2,c);t.moveTo(h.x,h.y),t.lineTo(r.x,r.y),t.lineTo(d.x,d.y)}if(-1!==i.lineDecoration.indexOf("arrow-end")){var f=b(s,-l),p=w(a,f),_=P(a,2,p),m=P(a,-2,p);t.moveTo(_.x,_.y),t.lineTo(a.x,a.y),t.lineTo(m.x,m.y)}return ht(t,o),!0},path:function(t,e,i){var n=k(i,e);ct(t,n),t.beginPath();var o=i.points.map(function(t){return{x:M(t.x,e,1,"width"),y:M(t.y,e,1,"height")}});t.moveTo(o[0].x,o[0].y);for(var r=o.length,a=1;a<r;a++)t.lineTo(o[a].x,o[a].y);return ht(t,n),!0}},ft=function(t){var e=document.createElement("canvas");return e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t,0,0),e},pt=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(n,o){if(!t||!r(t))return o({status:"not an image file",file:t});var a=i.stripImageHead,s=i.beforeCreateBlob,l=i.afterCreateBlob,u=i.canvasMemoryLimit,c=e.crop,h=e.size,d=e.filter,f=e.markup,p=e.output,_=e.image&&e.image.orientation?Math.max(1,Math.min(8,e.image.orientation)):null,m=p&&p.quality,v=null===m?null:m/100,y=p&&p.type||null,E=p&&p.background||null,b=[];!h||"number"!=typeof h.width&&"number"!=typeof h.height||b.push({type:"resize",data:h}),d&&20===d.length&&b.push({type:"filter",data:d});var w=function(t){var e=l?l(t):t;Promise.resolve(e).then(n)},I=function(e,i){var n=ft(e),r=f.length?ut(n,f):n;Promise.resolve(r).then(function(e){T(e,i,s).then(function(i){if(g(e),a)return w(i);it(t).then(function(t){null!==t&&(i=new Blob([t,i.slice(20)],{type:i.type})),w(i)})}).catch(o)})};if(/svg/.test(t.type)&&null===y)return Q(t,c,f,{background:E}).then(function(t){n(ot(t,"image/svg+xml"))});var P=URL.createObjectURL(t);st(P).then(function(e){URL.revokeObjectURL(P);var i=L(e,_,c,{canvasMemoryLimit:u,background:E}),n={quality:v,type:y||t.type};if(!b.length)return I(i,n);var o=at(J);o.post({transforms:b,imageData:i},function(t){I($(t),n),o.terminate()},[i.data.buffer])}).catch(o)})};function _t(t){this.wrapped=t}function mt(t){var e,i;function n(t,n){return new Promise(function(r,a){var s={key:t,arg:n,resolve:r,reject:a,next:null};i?i=i.next=s:(e=i=s,o(t,n))})}function o(e,i){try{var n=t[e](i),a=n.value,s=a instanceof _t;Promise.resolve(s?a.wrapped:a).then(function(t){s?o("next",t):r(n.done?"return":"normal",t)},function(t){o("throw",t)})}catch(t){r("throw",t)}}function r(t,n){switch(t){case"return":e.resolve({value:n,done:!0});break;case"throw":e.reject(n);break;default:e.resolve({value:n,done:!1})}(e=e.next)?o(e.key,e.arg):i=null}this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}function vt(t,e){return gt(t)||yt(t,e)||Et()}function gt(t){if(Array.isArray(t))return t}function yt(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw r}}return i}function Et(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}"function"==typeof Symbol&&Symbol.asyncIterator&&(mt.prototype[Symbol.asyncIterator]=function(){return this}),mt.prototype.next=function(t){return this._invoke("next",t)},mt.prototype.throw=function(t){return this._invoke("throw",t)},mt.prototype.return=function(t){return this._invoke("return",t)};var Lt=["x","y","left","top","right","bottom","width","height"],Tt=function(t){return"string"==typeof t&&/%/.test(t)?parseFloat(t)/100:t},bt=function(t){var e=vt(t,2),i=e[0],n=e[1],o=n.points?{}:Lt.reduce(function(t,e){return t[e]=Tt(n[e]),t},{});return[i,Object.assign({zIndex:0},n,o)]},wt=function(t){return new Promise(function(e,i){var n=new Image;n.src=URL.createObjectURL(t);var o=function(){var t=n.naturalWidth,i=n.naturalHeight;t&&i&&(URL.revokeObjectURL(n.src),clearInterval(r),e({width:t,height:i}))};n.onerror=function(t){URL.revokeObjectURL(n.src),clearInterval(r),i(t)};var r=setInterval(o,1);o()})};"undefined"!=typeof window&&void 0!==window.document&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,e,i){var n=this;setTimeout(function(){for(var o=n.toDataURL(e,i).split(",")[1],r=atob(o),a=r.length,s=new Uint8Array(a);a--;)s[a]=r.charCodeAt(a);t(new Blob([s],{type:e||"image/png"}))})}}));var It="undefined"!=typeof window&&void 0!==window.document,Pt=It&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,xt=function(e){var i=e.addFilter,r=e.utils,a=r.Type,s=r.forin,l=r.getFileFromBlob,u=r.isFile,c=["crop","resize","filter","markup","output"],h=function(t){return function(e,i,n){return e(i,t?t(n):n)}},d=function(t){return null===t.aspectRatio&&0===t.rotation&&1===t.zoom&&t.center&&.5===t.center.x&&.5===t.center.y&&t.flip&&!1===t.flip.horizontal&&!1===t.flip.vertical};i("SHOULD_PREPARE_OUTPUT",function(t,e){var i=e.query;return new Promise(function(t){t(!i("IS_ASYNC"))})});var f=function(e,i,n){return new Promise(function(o){if(!e("GET_ALLOW_IMAGE_TRANSFORM")||n.archived||!u(i)||!t(i))return o(!1);wt(i).then(function(){var t=e("GET_IMAGE_TRANSFORM_IMAGE_FILTER");if(t){var n=t(i);if(null==n)return handleRevert(!0);if("boolean"==typeof n)return o(n);if("function"==typeof n.then)return n.then(o)}o(!0)}).catch(function(t){o(!1)})})};return i("DID_CREATE_ITEM",function(t,e){var i=e.query,n=e.dispatch;i("GET_ALLOW_IMAGE_TRANSFORM")&&t.extend("requestPrepare",function(){return new Promise(function(e,i){n("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:e,failure:i},!0)})})}),i("PREPARE_OUTPUT",function(t,e){var i=e.query,r=e.item;return new Promise(function(e){f(i,t,r).then(function(a){if(!a)return e(t);var u=[];i("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_ORIGINAL")&&u.push(function(){return new Promise(function(e){e({name:i("GET_IMAGE_TRANSFORM_VARIANTS_ORIGINAL_NAME"),file:t})})}),i("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_DEFAULT")&&u.push(function(t,e,n){return new Promise(function(o){t(e,n).then(function(t){return o({name:i("GET_IMAGE_TRANSFORM_VARIANTS_DEFAULT_NAME"),file:t})})})});var f=i("GET_IMAGE_TRANSFORM_VARIANTS")||{};s(f,function(t,e){var i=h(e);u.push(function(e,n,o){return new Promise(function(r){i(e,n,o).then(function(e){return r({name:t,file:e})})})})});var p=i("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY"),_=i("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY_MODE"),m=null===p?null:p/100,v=i("GET_IMAGE_TRANSFORM_OUTPUT_MIME_TYPE"),g=i("GET_IMAGE_TRANSFORM_CLIENT_TRANSFORMS")||c;r.setMetadata("output",{type:v,quality:m,client:g},!0);var y=function(t,e){return new Promise(function(r,a){var s=Object.assign({},e);Object.keys(s).filter(function(t){return"exif"!==t}).forEach(function(t){-1===g.indexOf(t)&&delete s[t]});var u=s.resize,c=s.exif,h=s.output,f=s.crop,p=s.filter,m=s.markup,v={image:{orientation:c?c.orientation:null},output:h&&(h.type||"number"==typeof h.quality||h.background)?{type:h.type,quality:"number"==typeof h.quality?100*h.quality:null,background:h.background||i("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||null}:void 0,size:u&&(u.size.width||u.size.height)?Object.assign({mode:u.mode,upscale:u.upscale},u.size):void 0,crop:f&&!d(f)?Object.assign({},f):void 0,markup:m&&m.length?m.map(bt):[],filter:p};if(v.output){var y=!!h.type&&h.type!==t.type,E=/\/jpe?g$/.test(t.type),L=null!==h.quality&&E&&"always"===_;if(!(v.size||v.crop||v.filter||y||L))return r(t)}var T={beforeCreateBlob:i("GET_IMAGE_TRANSFORM_BEFORE_CREATE_BLOB"),afterCreateBlob:i("GET_IMAGE_TRANSFORM_AFTER_CREATE_BLOB"),canvasMemoryLimit:i("GET_IMAGE_TRANSFORM_CANVAS_MEMORY_LIMIT"),stripImageHead:i("GET_IMAGE_TRANSFORM_OUTPUT_STRIP_IMAGE_HEAD")};pt(t,v,T).then(function(e){var i=l(e,n(t.name,o(e.type)));r(i)}).catch(a)})},E=u.map(function(e){return e(y,t,r.getMetadata())});Promise.all(E).then(function(t){e(1===t.length&&null===t[0].name?t[0].file:t)})})})}),{options:{allowImageTransform:[!0,a.BOOLEAN],imageTransformImageFilter:[null,a.FUNCTION],imageTransformOutputMimeType:[null,a.STRING],imageTransformOutputQuality:[null,a.INT],imageTransformOutputStripImageHead:[!0,a.BOOLEAN],imageTransformClientTransforms:[null,a.ARRAY],imageTransformOutputQualityMode:["always",a.STRING],imageTransformVariants:[null,a.OBJECT],imageTransformVariantsIncludeDefault:[!0,a.BOOLEAN],imageTransformVariantsDefaultName:[null,a.STRING],imageTransformVariantsIncludeOriginal:[!1,a.BOOLEAN],imageTransformVariantsOriginalName:["original_",a.STRING],imageTransformBeforeCreateBlob:[null,a.FUNCTION],imageTransformAfterCreateBlob:[null,a.FUNCTION],imageTransformCanvasMemoryLimit:[It&&Pt?16777216:null,a.INT],imageTransformCanvasBackgroundColor:[null,a.STRING]}}};return It&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:xt})),xt}()},6136:function(t,e){ 33/*! 34 * FilePond 4.32.8 35 * Licensed under MIT, https://opensource.org/licenses/MIT/ 36 * Please visit https://pqina.nl/filepond/ for details. 37 */ 38!function(t){"use strict";var e=function(t){return t instanceof HTMLElement},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Object.assign({},t),o=[],r=[],a=function(){var t=[].concat(r);r.length=0,t.forEach(function(t){var e=t.type,i=t.data;s(e,i)})},s=function(t,e,i){!i||document.hidden?(h[t]&&h[t](e),o.push({type:t,data:e})):r.push({type:t,data:e})},l=function(t){for(var e,i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return c[t]?(e=c)[t].apply(e,n):null},u={getState:function(){return Object.assign({},n)},processActionQueue:function(){var t=[].concat(o);return o.length=0,t},processDispatchQueue:a,dispatch:s,query:l},c={};e.forEach(function(t){c=Object.assign({},t(n),{},c)});var h={};return i.forEach(function(t){h=Object.assign({},t(s,l,n),{},h)}),u},n=function(t,e,i){"function"!=typeof i?Object.defineProperty(t,e,Object.assign({},i)):t[e]=i},o=function(t,e){for(var i in t)t.hasOwnProperty(i)&&e(i,t[i])},r=function(t){var e={};return o(t,function(i){n(e,i,t[i])}),e},a=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===i)return t.getAttribute(e)||t.hasAttribute(e);t.setAttribute(e,i)},s="http://www.w3.org/2000/svg",l=["svg","path"],u=function(t){return l.includes(t)},c=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof e&&(i=e,e=null);var n=u(t)?document.createElementNS(s,t):document.createElement(t);return e&&(u(t)?a(n,"class",e):n.className=e),o(i,function(t,e){a(n,t,e)}),n},h=function(t){return function(e,i){void 0!==i&&t.children[i]?t.insertBefore(e,t.children[i]):t.appendChild(e)}},d=function(t,e){return function(t,i){return void 0!==i?e.splice(i,0,t):e.push(t),t}},f=function(t,e){return function(i){return e.splice(e.indexOf(i),1),i.element.parentNode&&t.removeChild(i.element),i}},p="undefined"!=typeof window&&void 0!==window.document,_=function(){return p},m="children"in(_()?c("svg"):{})?function(t){return t.children.length}:function(t){return t.childNodes.length},v=function(t,e,i,n){var o=i[0]||t.left,r=i[1]||t.top,a=o+t.width,s=r+t.height*(n[1]||1),l={element:Object.assign({},t),inner:{left:t.left,top:t.top,right:t.right,bottom:t.bottom},outer:{left:o,top:r,right:a,bottom:s}};return e.filter(function(t){return!t.isRectIgnored()}).map(function(t){return t.rect}).forEach(function(t){g(l.inner,Object.assign({},t.inner)),g(l.outer,Object.assign({},t.outer))}),y(l.inner),l.outer.bottom+=l.element.marginBottom,l.outer.right+=l.element.marginRight,y(l.outer),l},g=function(t,e){e.top+=t.top,e.right+=t.left,e.bottom+=t.top,e.left+=t.left,e.bottom>t.bottom&&(t.bottom=e.bottom),e.right>t.right&&(t.right=e.right)},y=function(t){t.width=t.right-t.left,t.height=t.bottom-t.top},E=function(t){return"number"==typeof t},L=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(t-e)<n&&Math.abs(i)<n},T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiffness,i=void 0===e?.5:e,n=t.damping,o=void 0===n?.75:n,a=t.mass,s=void 0===a?10:a,l=null,u=null,c=0,h=!1,d=r({interpolate:function(t,e){if(!h){if(!E(l)||!E(u))return h=!0,void(c=0);L(u+=c+=-(u-l)*i/s,l,c*=o)||e?(u=l,c=0,h=!0,d.onupdate(u),d.oncomplete(u)):d.onupdate(u)}},target:{set:function(t){if(E(t)&&!E(u)&&(u=t),null===l&&(l=t,u=t),u===(l=t)||void 0===l)return h=!0,c=0,d.onupdate(u),void d.oncomplete(u);h=!1},get:function(){return l}},resting:{get:function(){return h}},onupdate:function(t){},oncomplete:function(t){}});return d},b=function(t){return t<.5?2*t*t:(4-2*t)*t-1},w=function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.duration,o=void 0===n?500:n,a=i.easing,s=void 0===a?b:a,l=i.delay,u=void 0===l?0:l,c=null,h=!0,d=!1,f=null,p=r({interpolate:function(i,n){h||null===f||(null===c&&(c=i),i-c<u||((t=i-c-u)>=o||n?(t=1,e=d?0:1,p.onupdate(e*f),p.oncomplete(e*f),h=!0):(e=t/o,p.onupdate((t>=0?s(d?1-e:e):0)*f))))},target:{get:function(){return d?0:f},set:function(t){if(null===f)return f=t,p.onupdate(t),void p.oncomplete(t);t<f?(f=1,d=!0):(d=!1,f=t),h=!1,c=null}},resting:{get:function(){return h}},onupdate:function(t){},oncomplete:function(t){}});return p},I={spring:T,tween:w},P=function(t,e,i){var n=t[e]&&"object"==typeof t[e][i]?t[e][i]:t[e]||t,o="string"==typeof n?n:n.type,r="object"==typeof n?Object.assign({},n):{};return I[o]?I[o](r):null},x=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(e=Array.isArray(e)?e:[e]).forEach(function(e){t.forEach(function(t){var o=t,r=function(){return i[t]},a=function(e){return i[t]=e};"object"==typeof t&&(o=t.key,r=t.getter||r,a=t.setter||a),e[o]&&!n||(e[o]={get:r,set:a})})})},M=function(t){return function(e,i){t.addEventListener(e,i)}},k=function(t){return function(e,i){t.removeEventListener(e,i)}},O=function(t){return null!=t},S={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},D=function(t){var e=t.mixinConfig,i=t.viewProps,n=t.viewInternalAPI,o=t.viewExternalAPI,r=t.view,a=Object.assign({},i),s={};x(e,[n,o],i);var l=function(){return[i.translateX||0,i.translateY||0]},u=function(){return[i.scaleX||0,i.scaleY||0]},c=function(){return r.rect?v(r.rect,r.childViews,l(),u()):null};return n.rect={get:c},o.rect={get:c},e.forEach(function(t){i[t]=void 0===a[t]?S[t]:a[t]}),{write:function(){if(R(s,i))return A(r.element,i),Object.assign(s,Object.assign({},i)),!0},destroy:function(){}}},R=function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(var i in e)if(e[i]!==t[i])return!0;return!1},A=function(t,e){var i=e.opacity,n=e.perspective,o=e.translateX,r=e.translateY,a=e.scaleX,s=e.scaleY,l=e.rotateX,u=e.rotateY,c=e.rotateZ,h=e.originX,d=e.originY,f=e.width,p=e.height,_="",m="";(O(h)||O(d))&&(m+="transform-origin: "+(h||0)+"px "+(d||0)+"px;"),O(n)&&(_+="perspective("+n+"px) "),(O(o)||O(r))&&(_+="translate3d("+(o||0)+"px, "+(r||0)+"px, 0) "),(O(a)||O(s))&&(_+="scale3d("+(O(a)?a:1)+", "+(O(s)?s:1)+", 1) "),O(c)&&(_+="rotateZ("+c+"rad) "),O(l)&&(_+="rotateX("+l+"rad) "),O(u)&&(_+="rotateY("+u+"rad) "),_.length&&(m+="transform:"+_+";"),O(i)&&(m+="opacity:"+i+";",0===i&&(m+="visibility:hidden;"),i<1&&(m+="pointer-events:none;")),O(p)&&(m+="height:"+p+"px;"),O(f)&&(m+="width:"+f+"px;");var v=t.elementCurrentStyle||"";m.length===v.length&&m===v||(t.style.cssText=m,t.elementCurrentStyle=m)},C={styles:D,listeners:function(t){t.mixinConfig,t.viewProps,t.viewInternalAPI;var e=t.viewExternalAPI,i=(t.viewState,t.view),n=[],o=M(i.element),r=k(i.element);return e.on=function(t,e){n.push({type:t,fn:e}),o(t,e)},e.off=function(t,e){n.splice(n.findIndex(function(i){return i.type===t&&i.fn===e}),1),r(t,e)},{write:function(){return!0},destroy:function(){n.forEach(function(t){r(t.type,t.fn)})}}},animations:function(t){var e=t.mixinConfig,i=t.viewProps,n=t.viewInternalAPI,r=t.viewExternalAPI,a=Object.assign({},i),s=[];return o(e,function(t,e){var o=P(e);o&&(o.onupdate=function(e){i[t]=e},o.target=a[t],x([{key:t,setter:function(t){o.target!==t&&(o.target=t)},getter:function(){return i[t]}}],[n,r],i,!0),s.push(o))}),{write:function(t){var e=document.hidden,i=!0;return s.forEach(function(n){n.resting||(i=!1),n.interpolate(t,e)}),i},destroy:function(){}}},apis:function(t){var e=t.mixinConfig,i=t.viewProps,n=t.viewExternalAPI;x(e,n,i)}},N=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.layoutCalculated||(t.paddingTop=parseInt(i.paddingTop,10)||0,t.marginTop=parseInt(i.marginTop,10)||0,t.marginRight=parseInt(i.marginRight,10)||0,t.marginBottom=parseInt(i.marginBottom,10)||0,t.marginLeft=parseInt(i.marginLeft,10)||0,e.layoutCalculated=!0),t.left=e.offsetLeft||0,t.top=e.offsetTop||0,t.width=e.offsetWidth||0,t.height=e.offsetHeight||0,t.right=t.left+t.width,t.bottom=t.top+t.height,t.scrollTop=e.scrollTop,t.hidden=null===e.offsetParent,t},B=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.tag,i=void 0===e?"div":e,n=t.name,o=void 0===n?null:n,a=t.attributes,s=void 0===a?{}:a,l=t.read,u=void 0===l?function(){}:l,p=t.write,_=void 0===p?function(){}:p,g=t.create,y=void 0===g?function(){}:g,E=t.destroy,L=void 0===E?function(){}:E,T=t.filterFrameActionsForChild,b=void 0===T?function(t,e){return e}:T,w=t.didCreateView,I=void 0===w?function(){}:w,P=t.didWriteView,x=void 0===P?function(){}:P,M=t.ignoreRect,k=void 0!==M&&M,O=t.ignoreRectUpdate,S=void 0!==O&&O,D=t.mixins,R=void 0===D?[]:D;return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c(i,"filepond--"+o,s),a=window.getComputedStyle(n,null),l=N(),p=null,g=!1,E=[],T=[],w={},P={},M=[_],O=[u],D=[L],A=function(){return n},B=function(){return E.concat()},G=function(){return w},z=function(t){return function(e,i){return e(t,i)}},F=function(){return p||(p=v(l,E,[0,0],[1,1]))},U=function(){p=null,E.forEach(function(t){return t._read()}),!(S&&l.width&&l.height)&&N(l,n,a);var t={root:Y,props:e,rect:l};O.forEach(function(e){return e(t)})},j=function(t,i,n){var o=0===i.length;return M.forEach(function(r){!1===r({props:e,root:Y,actions:i,timestamp:t,shouldOptimize:n})&&(o=!1)}),T.forEach(function(e){!1===e.write(t)&&(o=!1)}),E.filter(function(t){return!!t.element.parentNode}).forEach(function(e){e._write(t,b(e,i),n)||(o=!1)}),E.forEach(function(e,r){e.element.parentNode||(Y.appendChild(e.element,r),e._read(),e._write(t,b(e,i),n),o=!1)}),g=o,x({props:e,root:Y,actions:i,timestamp:t}),o},V=function(){T.forEach(function(t){return t.destroy()}),D.forEach(function(t){t({root:Y,props:e})}),E.forEach(function(t){return t._destroy()})},H={element:{get:A},style:{get:function(){return a}},childViews:{get:B}},Z=Object.assign({},H,{rect:{get:F},ref:{get:G},is:function(t){return o===t},appendChild:h(n),createChildView:z(t),linkView:function(t){return E.push(t),t},unlinkView:function(t){E.splice(E.indexOf(t),1)},appendChildView:d(n,E),removeChildView:f(n,E),registerWriter:function(t){return M.push(t)},registerReader:function(t){return O.push(t)},registerDestroyer:function(t){return D.push(t)},invalidateLayout:function(){return n.layoutCalculated=!1},dispatch:t.dispatch,query:t.query}),q={element:{get:A},childViews:{get:B},rect:{get:F},resting:{get:function(){return g}},isRectIgnored:function(){return k},_read:U,_write:j,_destroy:V},W=Object.assign({},H,{rect:{get:function(){return l}}});Object.keys(R).sort(function(t,e){return"styles"===t?1:"styles"===e?-1:0}).forEach(function(t){var i=C[t]({mixinConfig:R[t],viewProps:e,viewState:P,viewInternalAPI:Z,viewExternalAPI:q,view:r(W)});i&&T.push(i)});var Y=r(Z);y({root:Y,props:e});var X=m(n);return E.forEach(function(t,e){Y.appendChild(t.element,X+e)}),I(Y),r(q)}},G=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,n="__framePainter";if(window[n])return window[n].readers.push(t),void window[n].writers.push(e);window[n]={readers:[t],writers:[e]};var o=window[n],r=1e3/i,a=null,s=null,l=null,u=null,c=function(){document.hidden?(l=function(){return window.setTimeout(function(){return h(performance.now())},r)},u=function(){return window.clearTimeout(s)}):(l=function(){return window.requestAnimationFrame(h)},u=function(){return window.cancelAnimationFrame(s)})};document.addEventListener("visibilitychange",function(){u&&u(),c(),h(performance.now())});var h=function t(e){s=l(t),a||(a=e);var i=e-a;i<=r||(a=e-i%r,o.readers.forEach(function(t){return t()}),o.writers.forEach(function(t){return t(e)}))};return c(),h(performance.now()),{pause:function(){u(s)}}},z=function(t,e){return function(i){var n=i.root,o=i.props,r=i.actions,a=void 0===r?[]:r,s=i.timestamp,l=i.shouldOptimize;a.filter(function(e){return t[e.type]}).forEach(function(e){return t[e.type]({root:n,props:o,action:e.data,timestamp:s,shouldOptimize:l})}),e&&e({root:n,props:o,actions:a,timestamp:s,shouldOptimize:l})}},F=function(t,e){return e.parentNode.insertBefore(t,e)},U=function(t,e){return e.parentNode.insertBefore(t,e.nextSibling)},j=function(t){return Array.isArray(t)},V=function(t){return null==t},H=function(t){return t.trim()},Z=function(t){return""+t},q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return V(t)?[]:j(t)?t:Z(t).split(e).map(H).filter(function(t){return t.length})},W=function(t){return"boolean"==typeof t},Y=function(t){return W(t)?t:"true"===t},X=function(t){return"string"==typeof t},K=function(t){return E(t)?t:X(t)?Z(t).replace(/[a-z]+/gi,""):0},Q=function(t){return parseInt(K(t),10)},$=function(t){return parseFloat(K(t))},J=function(t){return E(t)&&isFinite(t)&&Math.floor(t)===t},tt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(J(t))return t;var i=Z(t).trim();return/MB$/i.test(i)?(i=i.replace(/MB$i/,"").trim(),Q(i)*e*e):/KB/i.test(i)?(i=i.replace(/KB$i/,"").trim(),Q(i)*e):Q(i)},et=function(t){return"function"==typeof t},it=function(t){for(var e=self,i=t.split("."),n=null;n=i.shift();)if(!(e=e[n]))return null;return e},nt={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},ot=function(t){var e={};return e.url=X(t)?t:t.url||"",e.timeout=t.timeout?parseInt(t.timeout,10):0,e.headers=t.headers?t.headers:{},o(nt,function(i){e[i]=rt(i,t[i],nt[i],e.timeout,e.headers)}),e.process=t.process||X(t)||t.url?e.process:null,e.remove=t.remove||null,delete e.headers,e},rt=function(t,e,i,n,o){if(null===e)return null;if("function"==typeof e)return e;var r={url:"GET"===i||"PATCH"===i?"?"+t+"=":"",method:i,headers:o,withCredentials:!1,timeout:n,onload:null,ondata:null,onerror:null};if(X(e))return r.url=e,r;if(Object.assign(r,e),X(r.headers)){var a=r.headers.split(/:(.+)/);r.headers={header:a[0],value:a[1]}}return r.withCredentials=Y(r.withCredentials),r},at=function(t){return null===t},st=function(t){return"object"==typeof t&&null!==t},lt=function(t){return st(t)&&X(t.url)&&st(t.process)&&st(t.revert)&&st(t.restore)&&st(t.fetch)},ut=function(t){return j(t)?"array":at(t)?"null":J(t)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(t)?"bytes":lt(t)?"api":typeof t},ct=function(t){return t.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},ht={array:q,boolean:Y,int:function(t){return"bytes"===ut(t)?tt(t):Q(t)},number:$,float:$,bytes:tt,string:function(t){return et(t)?t:Z(t)},function:function(t){return it(t)},serverapi:function(t){return ot(t)},object:function(t){try{return JSON.parse(ct(t))}catch(t){return null}}},dt=function(t,e){return ht[e](t)},ft=function(t,e,i){if(t===e)return t;var n=ut(t);if(n!==i){var o=dt(t,i);if(n=ut(o),null===o)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+i+'"';t=o}return t},pt=function(t,e){var i=t;return{enumerable:!0,get:function(){return i},set:function(n){i=ft(n,t,e)}}},_t=function(t){var e={};return o(t,function(i){var n=t[i];e[i]=pt(n[0],n[1])}),r(e)},mt=function(t){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:_t(t)}},vt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.split(/(?=[A-Z])/).map(function(t){return t.toLowerCase()}).join(e)},gt=function(t,e){var i={};return o(e,function(e){i[e]={get:function(){return t.getState().options[e]},set:function(i){t.dispatch("SET_"+vt(e,"_").toUpperCase(),{value:i})}}}),i},yt=function(t){return function(e,i,n){var r={};return o(t,function(t){var i=vt(t,"_").toUpperCase();r["SET_"+i]=function(o){try{n.options[t]=o.value}catch(t){}e("DID_SET_"+i,{value:n.options[t]})}}),r}},Et=function(t){return function(e){var i={};return o(t,function(t){i["GET_"+vt(t,"_").toUpperCase()]=function(i){return e.options[t]}}),i}},Lt={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},Tt=function(){return Math.random().toString(36).substring(2,11)};function bt(t){this.wrapped=t}function wt(t){var e,i;function n(t,n){return new Promise(function(r,a){var s={key:t,arg:n,resolve:r,reject:a,next:null};i?i=i.next=s:(e=i=s,o(t,n))})}function o(e,i){try{var n=t[e](i),a=n.value,s=a instanceof bt;Promise.resolve(s?a.wrapped:a).then(function(t){s?o("next",t):r(n.done?"return":"normal",t)},function(t){o("throw",t)})}catch(t){r("throw",t)}}function r(t,n){switch(t){case"return":e.resolve({value:n,done:!0});break;case"throw":e.reject(n);break;default:e.resolve({value:n,done:!1})}(e=e.next)?o(e.key,e.arg):i=null}this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}function It(t,e){if(null==t)return{};var i,n,o={},r=Object.keys(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}function Pt(t,e){if(null==t)return{};var i,n,o=It(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function xt(t){return Mt(t)||kt(t)||Ot()}function Mt(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}function kt(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function Ot(){throw new TypeError("Invalid attempt to spread non-iterable instance")}"function"==typeof Symbol&&Symbol.asyncIterator&&(wt.prototype[Symbol.asyncIterator]=function(){return this}),wt.prototype.next=function(t){return this._invoke("next",t)},wt.prototype.throw=function(t){return this._invoke("throw",t)},wt.prototype.return=function(t){return this._invoke("return",t)};var St=function(t,e){return t.splice(e,1)},Dt=function(t,e){e?t():document.hidden?Promise.resolve(1).then(t):setTimeout(t,0)},Rt=function(){var t=[],e=function(e,i){St(t,t.findIndex(function(t){return t.event===e&&(t.cb===i||!i)}))},i=function(e,i,n){t.filter(function(t){return t.event===e}).map(function(t){return t.cb}).forEach(function(t){return Dt(function(){return t.apply(void 0,xt(i))},n)})};return{fireSync:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];i(t,n,!0)},fire:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];i(t,n,!1)},on:function(e,i){t.push({event:e,cb:i})},onOnce:function(i,n){t.push({event:i,cb:function(){e(i,n),n.apply(void 0,arguments)}})},off:e}},At=function(t,e,i){Object.getOwnPropertyNames(t).filter(function(t){return!i.includes(t)}).forEach(function(i){return Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})},Ct=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],Nt=function(t){var e={};return At(t,e,Ct),e},Bt=function(t){t.forEach(function(e,i){e.released&&St(t,i)})},Gt={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},zt={INPUT:1,LIMBO:2,LOCAL:3},Ft=function(t){return/[^0-9]+/.exec(t)},Ut=function(){return Ft(1.1.toLocaleString())[0]},jt=function(){var t=Ut(),e=1e3.toLocaleString();return e!==1e3.toString()?Ft(e)[0]:"."===t?",":"."},Vt={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Ht=[],Zt=function(t,e,i){return new Promise(function(n,o){var r=Ht.filter(function(e){return e.key===t}).map(function(t){return t.cb});if(0!==r.length){var a=r.shift();r.reduce(function(t,e){return t.then(function(t){return e(t,i)})},a(e,i)).then(function(t){return n(t)}).catch(function(t){return o(t)})}else n(e)})},qt=function(t,e,i){return Ht.filter(function(e){return e.key===t}).map(function(t){return t.cb(e,i)})},Wt=function(t,e){return Ht.push({key:t,cb:e})},Yt=function(t){return Object.assign(Qt,t)},Xt=function(){return Object.assign({},Qt)},Kt=function(t){o(t,function(t,e){Qt[t]&&(Qt[t][0]=ft(e,Qt[t][0],Qt[t][1]))})},Qt={id:[null,Vt.STRING],name:["filepond",Vt.STRING],disabled:[!1,Vt.BOOLEAN],className:[null,Vt.STRING],required:[!1,Vt.BOOLEAN],captureMethod:[null,Vt.STRING],allowSyncAcceptAttribute:[!0,Vt.BOOLEAN],allowDrop:[!0,Vt.BOOLEAN],allowBrowse:[!0,Vt.BOOLEAN],allowPaste:[!0,Vt.BOOLEAN],allowMultiple:[!1,Vt.BOOLEAN],allowReplace:[!0,Vt.BOOLEAN],allowRevert:[!0,Vt.BOOLEAN],allowRemove:[!0,Vt.BOOLEAN],allowProcess:[!0,Vt.BOOLEAN],allowReorder:[!1,Vt.BOOLEAN],allowDirectoriesOnly:[!1,Vt.BOOLEAN],storeAsFile:[!1,Vt.BOOLEAN],forceRevert:[!1,Vt.BOOLEAN],maxFiles:[null,Vt.INT],checkValidity:[!1,Vt.BOOLEAN],itemInsertLocationFreedom:[!0,Vt.BOOLEAN],itemInsertLocation:["before",Vt.STRING],itemInsertInterval:[75,Vt.INT],dropOnPage:[!1,Vt.BOOLEAN],dropOnElement:[!0,Vt.BOOLEAN],dropValidation:[!1,Vt.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],Vt.ARRAY],instantUpload:[!0,Vt.BOOLEAN],maxParallelUploads:[2,Vt.INT],allowMinimumUploadDuration:[!0,Vt.BOOLEAN],chunkUploads:[!1,Vt.BOOLEAN],chunkForce:[!1,Vt.BOOLEAN],chunkSize:[5e6,Vt.INT],chunkRetryDelays:[[500,1e3,3e3],Vt.ARRAY],server:[null,Vt.SERVER_API],fileSizeBase:[1e3,Vt.INT],labelFileSizeBytes:["bytes",Vt.STRING],labelFileSizeKilobytes:["KB",Vt.STRING],labelFileSizeMegabytes:["MB",Vt.STRING],labelFileSizeGigabytes:["GB",Vt.STRING],labelDecimalSeparator:[Ut(),Vt.STRING],labelThousandsSeparator:[jt(),Vt.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>
38',Vt.STRING],labelInvalidField:["Field contains invalid files",Vt.STRING],labelFileWaitingForSize:["Waiting for size",Vt.STRING],labelFileSizeNotAvailable:["Size not available",Vt.STRING],labelFileCountSingular:["file in list",Vt.STRING],labelFileCountPlural:["files in list",Vt.STRING],labelFileLoading:["Loading",Vt.STRING],labelFileAdded:["Added",Vt.STRING],labelFileLoadError:["Error during load",Vt.STRING],labelFileRemoved:["Removed",Vt.STRING],labelFileRemoveError:["Error during remove",Vt.STRING],labelFileProcessing:["Uploading",Vt.STRING],labelFileProcessingComplete:["Upload complete",Vt.STRING],labelFileProcessingAborted:["Upload cancelled",Vt.STRING],labelFileProcessingError:["Error during upload",Vt.STRING],labelFileProcessingRevertError:["Error during revert",Vt.STRING],labelTapToCancel:["tap to cancel",Vt.STRING],labelTapToRetry:["tap to retry",Vt.STRING],labelTapToUndo:["tap to undo",Vt.STRING],labelButtonRemoveItem:["Remove",Vt.STRING],labelButtonAbortItemLoad:["Abort",Vt.STRING],labelButtonRetryItemLoad:["Retry",Vt.STRING],labelButtonAbortItemProcessing:["Cancel",Vt.STRING],labelButtonUndoItemProcessing:["
38Undo",Vt.STRING],labelButtonRetryItemProcessing:["Retry",Vt.STRING],labelButtonProcessItem:["Upload",Vt.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',Vt.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',Vt.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',Vt.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',Vt.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',Vt.STRING],oninit:[null,Vt.FUNCTION],onwarning:[null,Vt.FUNCTION],onerror:[null,Vt.FUNCTION],onactivatefile:[null,Vt.FUNCTION],oninitfile:[null,Vt.FUNCTION],onaddfilestart:[null,Vt.FUNCTION],onaddfileprogress:[null,Vt.FUNCTION],onaddfile:[null,Vt.FUNCTION],onprocessfilestart:[null,Vt.FUNCTION],onprocessfileprogress:[null,Vt.FUNCTION],onprocessfileabort:[null,Vt.FUNCTION],onprocessfilerevert:[null,Vt.FUNCTION],onprocessfile:[null,Vt.FUNCTION],onprocessfiles:[null,Vt.FUNCTION],onremovefile:[null,Vt.FUNCTION],onpreparefile:[null,Vt.FUNCTION],onupdatefiles:[null,Vt.FUNCTION],onreorderfiles:[null,Vt.FUNCTION],beforeDropFile:[null,Vt.FUNCTION],beforeAddFile:[null,Vt.FUNCTION],beforeRemoveFile:[null,Vt.FUNCTION],beforePrepareFile:[null,Vt.FUNCTION],stylePanelLayout:[null,Vt.STRING],stylePanelAspectRatio:[null,Vt.STRING],styleItemPanelAspectRatio:[null,Vt.STRING],styleButtonRemoveItemPosition:["left",Vt.STRING],styleButtonProcessItemPosition:["right",Vt.STRING],styleLoadIndicatorPosition:["right",Vt.STRING],styleProgressIndicatorPosition:["right",Vt.STRING],styleButtonRemoveItemAlign:[!1,Vt.BOOLEAN],files:[[],Vt.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],Vt.ARRAY]},$t=function(t,e){return V(e)?t[0]||null:J(e)?t[e]||null:("object"==typeof e&&(e=e.id),t.find(function(t){return t.id===e})||null)},Jt=function(t){if(V(t))return t;if(/:/.test(t)){var e=t.split(":");return e[1]/e[0]}return parseFloat(t)},te=function(t){return t.filter(function(t){return!t.archived})},ee={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},ie=null,ne=function(){if(null===ie)try{var t=new DataTransfer;t.items.add(new File(["hello world"],"This_Works.txt"));var e=document.createElement("input");e.setAttribute("type","file"),e.files=t.files,ie=1===e.files.length}catch(t){ie=!1}return ie},oe=[Gt.LOAD_ERROR,Gt.PROCESSING_ERROR,Gt.PROCESSING_REVERT_ERROR],re=[Gt.LOADING,Gt.PROCESSING,Gt.PROCESSING_QUEUED,Gt.INIT],ae=[Gt.PROCESSING_COMPLETE],se=function(t){return oe.includes(t.status)},le=function(t){return re.includes(t.status)},ue=function(t){return ae.includes(t.status)},ce=function(t){return st(t.options.server)&&(st(t.options.server.process)||et(t.options.server.process))}
vendor: 91,626 bytes, line 38
38,he=function(t){return{GET_STATUS:function(){var e=te(t.items),i=ee.EMPTY,n=ee.ERROR,o=ee.BUSY,r=ee.IDLE,a=ee.READY;return 0===e.length?i:e.some(se)?n:e.some(le)?o:e.some(ue)?a:r},GET_ITEM:function(e){return $t(t.items,e)},GET_ACTIVE_ITEM:function(e){return $t(te(t.items),e)},GET_ACTIVE_ITEMS:function(){return te(t.items)},GET_ITEMS:function(){return t.items},GET_ITEM_NAME:function(e){var i=$t(t.items,e);return i?i.filename:null},GET_ITEM_SIZE:function(e){var i=$t(t.items,e);return i?i.fileSize:null},GET_STYLES:function(){return Object.keys(t.options).filter(function(t){return/^style/.test(t)}).map(function(e){return{name:e,value:t.options[e]}})},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(t.options.stylePanelLayout)?1:Jt(t.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return t.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(e){return te(t.items).filter(function(t){return t.status===e})},GET_TOTAL_ITEMS:function(){return te(t.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return t.options.storeAsFile&&ne()&&!ce(t)},IS_ASYNC:function(){return ce(t)},GET_FILE_SIZE_LABELS:function(t){return{labelBytes:t("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:t("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:t("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:t("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},de=function(t){var e=te(t.items).length;if(!t.options.allowMultiple)return 0===e;var i=t.options.maxFiles;return null===i||e<i},fe=function(t,e,i){return Math.max(Math.min(i,t),e)},pe=function(t,e,i){return t.splice(e,0,i)},_e=function(t,e,i){return V(e)?null:void 0===i?(t.push(e),e):(i=fe(i,0,t.length),pe(t,i,e),e)},me=function(t){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(t)},ve=function(t){return(""+t).split("/").pop().split("?").shift()},ge=function(t){return t.split(".").pop()},ye=function(t){if("string"!=typeof t)return"";var e=t.split("/").pop();return/svg/.test(e)?"svg":/zip|compressed/.test(e)?"zip":/plain/.test(e)?"txt":/msword/.test(e)?"doc":/[a-z]+/.test(e)?"jpeg"===e?"jpg":e:""},Ee=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(e+t).slice(-e.length)},Le=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return t.getFullYear()+"-"+Ee(t.getMonth()+1,"00")+"-"+Ee(t.getDate(),"00")+"_"+Ee(t.getHours(),"00")+"-"+Ee(t.getMinutes(),"00")+"-"+Ee(t.getSeconds(),"00")},Te=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o="string"==typeof i?t.slice(0,t.size,i):t.slice(0,t.size,t.type);return o.lastModifiedDate=new Date,t._relativePath&&(o._relativePath=t._relativePath),X(e)||(e=Le()),e&&null===n&&ge(e)?o.name=e:(n=n||ye(o.type),o.name=e+(n?"."+n:"")),o},be=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},we=function(t,e){var i=be();if(i){var n=new i;return n.append(t),n.getBlob(e)}return new Blob([t],{type:e})},Ie=function(t,e){for(var i=new ArrayBuffer(t.length),n=new Uint8Array(i),o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return we(i,e)},Pe=function(t){return(/^data:(.+);/.exec(t)||[])[1]||null},xe=function(t){return t.split(",")[1].replace(/\s/g,"")},Me=function(t){return atob(xe(t))},ke=function(t){var e=Pe(t),i=Me(t);return Ie(i,e)},Oe=function(t,e,i){return Te(ke(t),e,null,i)},Se=function(t){if(!/^content-disposition:/i.test(t))return null;var e=t.split(/filename=|filename\*=.+''/).splice(1).map(function(t){return t.trim().replace(/^["']|[;"']{0,2}$/g,"")}).filter(function(t){return t.length});return e.length?decodeURI(e[e.length-1]):null},De=function(t){if(/content-length:/i.test(t)){var e=t.match(/[0-9]+/)[0];return e?parseInt(e,10):null}return null},Re=function(t){return/x-content-transfer-id:/i.test(t)&&(t.split(":")[1]||"").trim()||null},Ae=function(t){var e={source:null,name:null,size:null},i=t.split("\n"),n=!0,o=!1,r=void 0;try{for(var a,s=i[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value,u=Se(l);if(u)e.name=u;else{var c=De(l);if(c)e.size=c;else{var h=Re(l);h&&(e.source=h)}}}}catch(t){o=!0,r=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw r}}return e},Ce=function(t){var e={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},i=function(){return e.progress},n=function(){e.request&&e.request.abort&&e.request.abort()},o=function(){var t=e.source;a.fire("init",t),t instanceof File?a.fire("load",t):t instanceof Blob?a.fire("load",Te(t,t.name)):me(t)?a.fire("load",Oe(t)):r(t)},r=function(i){t?(e.timestamp=Date.now(),e.request=t(i,function(t){e.duration=Date.now()-e.timestamp,e.complete=!0,t instanceof Blob&&(t=Te(t,t.name||ve(i))),a.fire("load",t instanceof Blob?t:t?t.body:null)},function(t){a.fire("error","string"==typeof t?{type:"error",code:0,body:t}:t)},function(t,i,n){n&&(e.size=n),e.duration=Date.now()-e.timestamp,t?(e.progress=i/n,a.fire("progress",e.progress)):e.progress=null},function(){a.fire("abort")},function(t){var i=Ae("string"==typeof t?t:t.headers);a.fire("meta",{size:e.size||i.size,filename:i.name,source:i.source})})):a.fire("error",{type:"error",body:"Can't load URL",code:400})},a=Object.assign({},Rt(),{setSource:function(t){return e.source=t},getProgress:i,abort:n,load:o});return a},Ne=function(t){return/GET|HEAD/.test(t)},Be=function(t,e,i){var n={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){o=!0,a.abort()}},o=!1,r=!1;i=Object.assign({method:"POST",headers:{},withCredentials:!1},i),e=encodeURI(e),Ne(i.method)&&t&&(e=""+e+encodeURIComponent("string"==typeof t?t:JSON.stringify(t)));var a=new XMLHttpRequest;return(Ne(i.method)?a:a.upload).onprogress=function(t){o||n.onprogress(t.lengthComputable,t.loaded,t.total)},a.onreadystatechange=function(){a.readyState<2||4===a.readyState&&0===a.status||r||(r=!0,n.onheaders(a))},a.onload=function(){a.status>=200&&a.status<300?n.onload(a):n.onerror(a)},a.onerror=function(){return n.onerror(a)},a.onabort=function(){o=!0,n.onabort()},a.ontimeout=function(){return n.ontimeout(a)},a.open(i.method,e,!0),J(i.timeout)&&(a.timeout=i.timeout),Object.keys(i.headers).forEach(function(t){var e=unescape(encodeURIComponent(i.headers[t]));a.setRequestHeader(t,e)}),i.responseType&&(a.responseType=i.responseType),i.withCredentials&&(a.withCredentials=!0),a.send(t),n},Ge=function(t,e,i,n){return{type:t,code:e,body:i,headers:n}},ze=function(t){return function(e){t(Ge("error",0,"Timeout",e.getAllResponseHeaders()))}},Fe=function(t){return/\?/.test(t)},Ue=function(){for(var t="",e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return i.forEach(function(e){t+=Fe(t)&&Fe(e)?e.replace(/\?/,"&"):e}),t},je=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if("function"==typeof e)return e;if(!e||!X(e.url))return null;var i=e.onload||function(t){return t},n=e.onerror||function(t){return null};return function(o,r,a,s,l,u){var c=Be(o,Ue(t,e.url),Object.assign({},e,{responseType:"blob"}));return c.onload=function(t){var n=t.getAllResponseHeaders(),a=Ae(n).name||ve(o);r(Ge("load",t.status,"HEAD"===e.method?null:Te(i(t.response),a),n))},c.onerror=function(t){a(Ge("error",t.status,n(t.response)||t.statusText,t.getAllResponseHeaders()))},c.onheaders=function(t){u(Ge("headers",t.status,null,t.getAllResponseHeaders()))},c.ontimeout=ze(a),c.onprogress=s,c.onabort=l,c}},Ve={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},He=function(t,e,i,n,o,r,a,s,l,u,c){for(var h=[],d=c.chunkTransferId,f=c.chunkServer,p=c.chunkSize,_=c.chunkRetryDelays,m={serverId:d,aborted:!1},v=e.ondata||function(t){return t},g=e.onload||function(t,e){return"HEAD"===e?t.getResponseHeader("Upload-Offset"):t.response},y=e.onerror||function(t){return null},E=function(r){var s=new FormData;st(o)&&s.append(i,JSON.stringify(o));var l="function"==typeof e.headers?e.headers(n,o):Object.assign({},e.headers,{"Upload-Length":n.size}),u=Object.assign({},e,{headers:l}),c=Be(v(s),Ue(t,e.url),u);c.onload=function(t){return r(g(t,u.method))},c.onerror=function(t){return a(Ge("error",t.status,y(t.response)||t.statusText,t.getAllResponseHeaders()))},c.ontimeout=ze(a)},L=function(i){var n=Ue(t,f.url,m.serverId),o={headers:"function"==typeof e.headers?e.headers(m.serverId):Object.assign({},e.headers),method:"HEAD"},r=Be(null,n,o);r.onload=function(t){return i(g(t,o.method))},r.onerror=function(t){return a(Ge("error",t.status,y(t.response)||t.statusText,t.getAllResponseHeaders()))},r.ontimeout=ze(a)},T=Math.floor(n.size/p),b=0;b<=T;b++){var w=b*p,I=n.slice(w,w+p,"application/offset+octet-stream");h[b]={index:b,size:I.size,offset:w,data:I,file:n,progress:0,retries:xt(_),status:Ve.QUEUED,error:null,request:null,timeout:null}}var P=function(){return r(m.serverId)},x=function(t){return t.status===Ve.QUEUED||t.status===Ve.ERROR},M=function(e){if(!m.aborted)if(e=e||h.find(x)){e.status=Ve.PROCESSING,e.progress=null;var i=f.ondata||function(t){return t},o=f.onerror||function(t){return null},r=f.onload||function(){},s=Ue(t,f.url,m.serverId),u="function"==typeof f.headers?f.headers(e):Object.assign({},f.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":e.offset,"Upload-Length":n.size,"Upload-Name":n.name}),c=e.request=Be(i(e.data),s,Object.assign({},f,{headers:u}));c.onload=function(t){r(t,e.index,h.length),e.status=Ve.COMPLETE,e.request=null,S()},c.onprogress=function(t,i,n){e.progress=t?i:null,O()},c.onerror=function(t){e.status=Ve.ERROR,e.request=null,e.error=o(t.response)||t.statusText,k(e)||a(Ge("error",t.status,o(t.response)||t.statusText,t.getAllResponseHeaders()))},c.ontimeout=function(t){e.status=Ve.ERROR,e.request=null,k(e)||ze(a)(t)},c.onabort=function(){e.status=Ve.QUEUED,e.request=null,l()}}else h.every(function(t){return t.status===Ve.COMPLETE})&&P()},k=function(t){return 0!==t.retries.length&&(t.status=Ve.WAITING,clearTimeout(t.timeout),t.timeout=setTimeout(function(){M(t)},t.retries.shift()),!0)},O=function(){var t=h.reduce(function(t,e){return null===t||null===e.progress?null:t+e.progress},0);if(null===t)return s(!1,0,0);var e=h.reduce(function(t,e){return t+e.size},0);s(!0,t,e)},S=function(){h.filter(function(t){return t.status===Ve.PROCESSING}).length>=1||M()},D=function(){h.forEach(function(t){clearTimeout(t.timeout),t.request&&t.request.abort()})};return m.serverId?L(function(t){m.aborted||(h.filter(function(e){return e.offset<t}).forEach(function(t){t.status=Ve.COMPLETE,t.progress=t.size}),S())}):E(function(t){m.aborted||(u(t),m.serverId=t,S())}),{abort:function(){m.aborted=!0,D()}}},Ze=function(t,e,i,n){return function(o,r,a,s,l,u,c){if(o){var h=n.chunkUploads,d=h&&o.size>n.chunkSize,f=h&&(d||n.chunkForce);if(o instanceof Blob&&f)return He(t,e,i,o,r,a,s,l,u,c,n);var p=e.ondata||function(t){return t},_=e.onload||function(t){return t},m=e.onerror||function(t){return null},v="function"==typeof e.headers?e.headers(o,r)||{}:Object.assign({},e.headers),g=Object.assign({},e,{headers:v}),y=new FormData;st(r)&&y.append(i,JSON.stringify(r)),(o instanceof Blob?[{name:null,file:o}]:o).forEach(function(t){y.append(i,t.file,null===t.name?t.file.name:""+t.name+t.file.name)});var E=Be(p(y),Ue(t,e.url),g);return E.onload=function(t){a(Ge("load",t.status,_(t.response),t.getAllResponseHeaders()))},E.onerror=function(t){s(Ge("error",t.status,m(t.response)||t.statusText,t.getAllResponseHeaders()))},E.ontimeout=ze(s),E.onprogress=l,E.onabort=u,E}}},qe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;return"function"==typeof e?function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return e.apply(void 0,[i].concat(o,[n]))}:e&&X(e.url)?Ze(t,e,i,n):null},We=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if("function"==typeof e)return e;if(!e||!X(e.url))return function(t,e){return e()};var i=e.onload||function(t){return t},n=e.onerror||function(t){return null};return function(o,r,a){var s=Be(o,t+e.url,e);return s.onload=function(t){r(Ge("load",t.status,i(t.response),t.getAllResponseHeaders()))},s.onerror=function(t){a(Ge("error",t.status,n(t.response)||t.statusText,t.getAllResponseHeaders()))},s.ontimeout=ze(a),s}},Ye=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t+Math.random()*(e-t)},Xe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,o=null,r=Date.now();return e>0&&function a(){var s=Date.now()-r,l=Ye(i,n);s+l>e&&(l=s+l-e);var u=s/e;u>=1||document.hidden?t(1):(t(u),o=setTimeout(a,l))}(),{clear:function(){clearTimeout(o)}}},Ke=function(t,e){var i={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},n=e.allowMinimumUploadDuration,o=function(e,o){var r=function(){0!==i.duration&&null!==i.progress&&u.fire("progress",u.getProgress())},a=function(){i.complete=!0,u.fire("load-perceived",i.response.body)};u.fire("start"),i.timestamp=Date.now(),i.perceivedPerformanceUpdater=Xe(function(t){i.perceivedProgress=t,i.perceivedDuration=Date.now()-i.timestamp,r(),i.response&&1===i.perceivedProgress&&!i.complete&&a()},n?Ye(750,1500):0),i.request=t(e,o,function(t){i.response=st(t)?t:{type:"load",code:200,body:""+t,headers:{}},i.duration=Date.now()-i.timestamp,i.progress=1,u.fire("load",i.response.body),(!n||n&&1===i.perceivedProgress)&&a()},function(t){i.perceivedPerformanceUpdater.clear(),u.fire("error",st(t)?t:{type:"error",code:0,body:""+t})},function(t,e,n){i.duration=Date.now()-i.timestamp,i.progress=t?e/n:null,r()},function(){i.perceivedPerformanceUpdater.clear(),u.fire("abort",i.response?i.response.body:null)},function(t){u.fire("transfer",t)})},r=function(){i.request&&(i.perceivedPerformanceUpdater.clear(),i.request.abort&&i.request.abort(),i.complete=!0)},a=function(){r(),i.complete=!1,i.perceivedProgress=0,i.progress=0,i.timestamp=null,i.perceivedDuration=0,i.duration=0,i.request=null,i.response=null},s=n?function(){return i.progress?Math.min(i.progress,i.perceivedProgress):null}:function(){return i.progress||null},l=n?function(){return Math.min(i.duration,i.perceivedDuration)}:function(){return i.duration},u=Object.assign({},Rt(),{process:o,abort:r,getProgress:s,getDuration:l,reset:a});return u},Qe=function(t){return t.substring(0,t.lastIndexOf("."))||t},$e=function(t){var e=[t.name,t.size,t.type];return t instanceof Blob||me(t)?e[0]=t.name||Le():me(t)?(e[1]=t.length,e[2]=Pe(t)):X(t)&&(e[0]=ve(t),e[1]=0,e[2]="application/octet-stream"),{name:e[0],size:e[1],type:e[2]}},Je=function(t){return!!(t instanceof File||t instanceof Blob&&t.name)},ti=function t(e){if(!st(e))return e;var i=j(e)?[]:{};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];i[n]=o&&st(o)?t(o):o}return i},ei=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Tt(),o={archived:!1,frozen:!1,released:!1,source:null,file:i,serverFileReference:e,transferId:null,processingAborted:!1,status:e?Gt.PROCESSING_COMPLETE:Gt.INIT,activeLoader:null,activeProcessor:null},a=null,s={},l=function(t){return o.status=t},u=function(t){if(!o.released&&!o.frozen){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];b.fire.apply(b,[t].concat(i))}},c=function(){return ge(o.file.name)},h=function(){return o.file.type},d=function(){return o.file.size},f=function(){return o.file},p=function(e,i,n){o.source=e,b.fireSync("init"),o.file?b.fireSync("load-skip"):(o.file=$e(e),i.on("init",function(){u("load-init")}),i.on("meta",function(e){o.file.size=e.size,o.file.filename=e.filename,e.source&&(t=zt.LIMBO,o.serverFileReference=e.source,o.status=Gt.PROCESSING_COMPLETE),u("load-meta")}),i.on("progress",function(t){l(Gt.LOADING),u("load-progress",t)}),i.on("error",function(t){l(Gt.LOAD_ERROR),u("load-request-error",t)}),i.on("abort",function(){l(Gt.INIT),u("load-abort")}),i.on("load",function(e){o.activeLoader=null;var i=function(e){o.file=Je(e)?e:o.file,t===zt.LIMBO&&o.serverFileReference?l(Gt.PROCESSING_COMPLETE):l(Gt.IDLE),u("load")},r=function(t){o.file=e,u("load-meta"),l(Gt.LOAD_ERROR),u("load-file-error",t)};o.serverFileReference?i(e):n(e,i,r)}),i.setSource(e),o.activeLoader=i,i.load())},_=function(){o.activeLoader&&o.activeLoader.load()},m=function(){o.activeLoader?o.activeLoader.abort():(l(Gt.INIT),u("load-abort"))},v=function t(e,i){if(o.processingAborted)o.processingAborted=!1;else if(l(Gt.PROCESSING),a=null,o.file instanceof Blob){e.on("load",function(t){o.transferId=null,o.serverFileReference=t}),e.on("transfer",function(t){o.transferId=t}),e.on("load-perceived",function(t){o.activeProcessor=null,o.transferId=null,o.serverFileReference=t,l(Gt.PROCESSING_COMPLETE),u("process-complete",t)}),e.on("start",function(){u("process-start")}),e.on("error",function(t){o.activeProcessor=null,l(Gt.PROCESSING_ERROR),u("process-error",t)}),e.on("abort",function(t){o.activeProcessor=null,o.serverFileReference=t,l(Gt.IDLE),u("process-abort"),a&&a()}),e.on("progress",function(t){u("process-progress",t)});var n=function(t){o.archived||e.process(t,Object.assign({},s))},r=console.error;i(o.file,n,r),o.activeProcessor=e}else b.on("load",function(){t(e,i)})},g=function(){o.processingAborted=!1,l(Gt.PROCESSING_QUEUED)},y=function(){return new Promise(function(t){if(!o.activeProcessor)return o.processingAborted=!0,l(Gt.IDLE),u("process-abort"),void t();a=function(){t()},o.activeProcessor.abort()})},E=function(t,e){return new Promise(function(i,n){var r=null!==o.serverFileReference?o.serverFileReference:o.transferId;null!==r?(t(r,function(){o.serverFileReference=null,o.transferId=null,i()},function(t){e?(l(Gt.PROCESSING_REVERT_ERROR),u("process-revert-error"),n(t)):i()}),l(Gt.IDLE),u("process-revert")):i()})},L=function(t,e,i){var n=t.split("."),o=n[0],r=n.pop(),a=s;n.forEach(function(t){return a=a[t]}),JSON.stringify(a[r])!==JSON.stringify(e)&&(a[r]=e,u("metadata-update",{key:o,value:s[o],silent:i}))},T=function(t){return ti(t?s[t]:s)},b=Object.assign({id:{get:function(){return n}},origin:{get:function(){return t},set:function(e){return t=e}},serverId:{get:function(){return o.serverFileReference}},transferId:{get:function(){return o.transferId}},status:{get:function(){return o.status}},filename:{get:function(){return o.file.name}},filenameWithoutExtension:{get:function(){return Qe(o.file.name)}},fileExtension:{get:c},fileType:{get:h},fileSize:{get:d},file:{get:f},relativePath:{get:function(){return o.file._relativePath}},source:{get:function(){return o.source}},getMetadata:T,setMetadata:function(t,e,i){if(st(t)){var n=t;return Object.keys(n).forEach(function(t){L(t,n[t],e)}),t}return L(t,e,i),e},extend:function(t,e){return w[t]=e},abortLoad:m,retryLoad:_,requestProcessing:g,abortProcessing:y,load:p,process:v,revert:E},Rt(),{freeze:function(){return o.frozen=!0},release:function(){return o.released=!0},released:{get:function(){return o.released}},archive:function(){return o.archived=!0},archived:{get:function(){return o.archived}},setFile:function(t){return o.file=t}}),w=r(b);return w},ii=function(t,e){return V(e)?0:X(e)?t.findIndex(function(t){return t.id===e}):-1},ni=function(t,e){var i=ii(t,e);if(!(i<0))return t[i]||null},oi=function(t,e,i,n,o,r){var a=Be(null,t,{method:"GET",responseType:"blob"});return a.onload=function(i){var n=i.getAllResponseHeaders(),o=Ae(n).name||ve(t);e(Ge("load",i.status,Te(i.response,o),n))},a.onerror=function(t){i(Ge("error",t.status,t.statusText,t.getAllResponseHeaders()))},a.onheaders=function(t){r(Ge("headers",t.status,null,t.getAllResponseHeaders()))},a.ontimeout=ze(i),a.onprogress=n,a.onabort=o,a},ri=function(t){return 0===t.indexOf("//")&&(t=location.protocol+t),t.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},ai=function(t){return(t.indexOf(":")>-1||t.indexOf("//")>-1)&&ri(location.href)!==ri(t)},si=function(t){return function(){return et(t)?t.apply(void 0,arguments):t}},li=function(t){return!Je(t.file)},ui=function(t,e){clearTimeout(e.listUpdateTimeout),e.listUpdateTimeout=setTimeout(function(){t("DID_UPDATE_ITEMS",{items:te(e.items)})},0)},ci=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return new Promise(function(e){if(!t)return e(!0);var n=t.apply(void 0,i);return null==n?e(!0):"boolean"==typeof n?e(n):void("function"==typeof n.then&&n.then(e))})},hi=function(t,e){t.items.sort(function(t,i){return e(Nt(t),Nt(i))})},di=function(t,e){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.query,o=i.success,r=void 0===o?function(){}:o,a=i.failure,s=void 0===a?function(){}:a,l=Pt(i,["query","success","failure"]),u=$t(t.items,n);u?e(u,r,s,l||{}):s({error:Ge("error",0,"Item not found"),file:null})}},fi=function(t,e,i){return{ABORT_ALL:function(){te(i.items).forEach(function(t){t.freeze(),t.abortLoad(),t.abortProcessing()})},DID_SET_FILES:function(e){var n=e.value,o=(void 0===n?[]:n).map(function(t){return{source:t.source?t.source:t,options:t.options}}),r=te(i.items);r.forEach(function(e){o.find(function(t){return t.source===e.source||t.source===e.file})||t("REMOVE_ITEM",{query:e,remove:!1})}),r=te(i.items),o.forEach(function(e,i){r.find(function(t){return t.source===e.source||t.file===e.source})||t("ADD_ITEM",Object.assign({},e,{interactionMethod:Lt.NONE,index:i}))})},DID_UPDATE_ITEM_METADATA:function(n){var o=n.id,r=n.action,a=n.change;a.silent||(clearTimeout(i.itemUpdateTimeout),i.itemUpdateTimeout=setTimeout(function(){var n=ni(i.items,o);if(e("IS_ASYNC")){n.origin===zt.LOCAL&&t("DID_LOAD_ITEM",{id:n.id,error:null,serverFileReference:n.source});var s=function(){setTimeout(function(){t("REQUEST_ITEM_PROCESSING",{query:o})},32)},l=function(t){n.revert(We(i.options.server.url,i.options.server.revert),e("GET_FORCE_REVERT")).then(t?s:function(){}).catch(function(){})},u=function(t){n.abortProcessing().then(t?s:function(){})};return n.status===Gt.PROCESSING_COMPLETE?l(i.options.instantUpload):n.status===Gt.PROCESSING?u(i.options.instantUpload):void(i.options.instantUpload&&s())}Zt("SHOULD_PREPARE_OUTPUT",!1,{item:n,query:e,action:r,change:a}).then(function(i){var r=e("GET_BEFORE_PREPARE_FILE");r&&(i=r(n,i)),i&&t("REQUEST_PREPARE_OUTPUT",{query:o,item:n,success:function(e){t("DID_PREPARE_OUTPUT",{id:o,file:e})}},!0)})},0))},MOVE_ITEM:function(t){var e=t.query,n=t.index,o=$t(i.items,e);if(o){var r=i.items.indexOf(o);r!==(n=fe(n,0,i.items.length-1))&&i.items.splice(n,0,i.items.splice(r,1)[0])}},SORT:function(n){var o=n.compare;hi(i,o),t("DID_SORT_ITEMS",{items:e("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(i){var n=i.items,o=i.index,r=i.interactionMethod,a=i.success,s=void 0===a?function(){}:a,l=i.failure,u=void 0===l?function(){}:l,c=o;if(-1===o||void 0===o){var h=e("GET_ITEM_INSERT_LOCATION"),d=e("GET_TOTAL_ITEMS");c="before"===h?0:d}var f=e("GET_IGNORED_FILES"),p=function(t){return Je(t)?!f.includes(t.name.toLowerCase()):!V(t)},_=n.filter(p).map(function(e){return new Promise(function(i,n){t("ADD_ITEM",{interactionMethod:r,source:e.source||e,success:i,failure:n,index:c++,options:e.options||{}})})});Promise.all(_).then(s).catch(u)},ADD_ITEM:function(n){var o=n.source,r=n.index,a=void 0===r?-1:r,s=n.interactionMethod,l=n.success,u=void 0===l?function(){}:l,c=n.failure,h=void 0===c?function(){}:c,d=n.options,f=void 0===d?{}:d;if(V(o))h({error:Ge("error",0,"No source"),file:null});else if(!Je(o)||!i.options.ignoredFiles.includes(o.name.toLowerCase())){if(!de(i)){if(i.options.allowMultiple||!i.options.allowMultiple&&!i.options.allowReplace){var p=Ge("warning",0,"Max files");return t("DID_THROW_MAX_FILES",{source:o,error:p}),void h({error:p,file:null})}var _=te(i.items)[0];if(_.status===Gt.PROCESSING_COMPLETE||_.status===Gt.PROCESSING_REVERT_ERROR){var m=e("GET_FORCE_REVERT");if(_.revert(We(i.options.server.url,i.options.server.revert),m).then(function(){m&&t("ADD_ITEM",{source:o,index:a,interactionMethod:s,success:u,failure:h,options:f})}).catch(function(){}),m)return}t("REMOVE_ITEM",{query:_.id})}var v="local"===f.type?zt.LOCAL:"limbo"===f.type?zt.LIMBO:zt.INPUT,g=ei(v,v===zt.INPUT?null:o,f.file);Object.keys(f.metadata||{}).forEach(function(t){g.setMetadata(t,f.metadata[t])}),qt("DID_CREATE_ITEM",g,{query:e,dispatch:t});var y=e("GET_ITEM_INSERT_LOCATION");i.options.itemInsertLocationFreedom||(a="before"===y?-1:i.items.length),_e(i.items,g,a),et(y)&&o&&hi(i,y);var E=g.id;g.on("init",function(){t("DID_INIT_ITEM",{id:E})}),g.on("load-init",function(){t("DID_START_ITEM_LOAD",{id:E})}),g.on("load-meta",function(){t("DID_UPDATE_ITEM_META",{id:E})}),g.on("load-progress",function(e){t("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:E,progress:e})}),g.on("load-request-error",function(e){var n=si(i.options.labelFileLoadError)(e);if(e.code>=400&&e.code<500)return t("DID_THROW_ITEM_INVALID",{id:E,error:e,status:{main:n,sub:e.code+" ("+e.body+")"}}),void h({error:e,file:Nt(g)});t("DID_THROW_ITEM_LOAD_ERROR",{id:E,error:e,status:{main:n,sub:i.options.labelTapToRetry}})}),g.on("load-file-error",function(e){t("DID_THROW_ITEM_INVALID",{id:E,error:e.status,status:e.status}),h({error:e.status,file:Nt(g)})}),g.on("load-abort",function(){t("REMOVE_ITEM",{query:E})}),g.on("load-skip",function(){g.on("metadata-update",function(e){Je(g.file)&&t("DID_UPDATE_ITEM_METADATA",{id:E,change:e})}),t("COMPLETE_LOAD_ITEM",{query:E,item:g,data:{source:o,success:u}})}),g.on("load",function(){var n=function(n){n?(g.on("metadata-update",function(e){t("DID_UPDATE_ITEM_METADATA",{id:E,change:e})}),Zt("SHOULD_PREPARE_OUTPUT",!1,{item:g,query:e}).then(function(n){var r=e("GET_BEFORE_PREPARE_FILE");r&&(n=r(g,n));var a=function(){t("COMPLETE_LOAD_ITEM",{query:E,item:g,data:{source:o,success:u}}),ui(t,i)};n?t("REQUEST_PREPARE_OUTPUT",{query:E,item:g,success:function(e){t("DID_PREPARE_OUTPUT",{id:E,file:e}),a()}},!0):a()})):t("REMOVE_ITEM",{query:E})};Zt("DID_LOAD_ITEM",g,{query:e,dispatch:t}).then(function(){ci(e("GET_BEFORE_ADD_FILE"),Nt(g)).then(n)}).catch(function(e){if(!e||!e.error||!e.status)return n(!1);t("DID_THROW_ITEM_INVALID",{id:E,error:e.error,status:e.status})})}),g.on("process-start",function(){t("DID_START_ITEM_PROCESSING",{id:E})}),g.on("process-progress",function(e){t("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:E,progress:e})}),g.on("process-error",function(e){t("DID_THROW_ITEM_PROCESSING_ERROR",{id:E,error:e,status:{main:si(i.options.labelFileProcessingError)(e),sub:i.options.labelTapToRetry}})}),g.on("process-revert-error",function(e){t("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:E,error:e,status:{main:si(i.options.labelFileProcessingRevertError)(e),sub:i.options.labelTapToRetry}})}),g.on("process-complete",function(e){t("DID_COMPLETE_ITEM_PROCESSING",{id:E,error:null,serverFileReference:e}),t("DID_DEFINE_VALUE",{id:E,value:e})}),g.on("process-abort",function(){t("DID_ABORT_ITEM_PROCESSING",{id:E})}),g.on("process-revert",function(){t("DID_REVERT_ITEM_PROCESSING",{id:E}),t("DID_DEFINE_VALUE",{id:E,value:null})}),t("DID_ADD_ITEM",{id:E,index:a,interactionMethod:s}),ui(t,i);var L=i.options.server||{},T=L.url,b=L.load,w=L.restore,I=L.fetch;g.load(o,Ce(v===zt.INPUT?X(o)&&ai(o)&&I?je(T,I):oi:v===zt.LIMBO?je(T,w):je(T,b)),function(t,i,n){Zt("LOAD_FILE",t,{query:e}).then(i).catch(n)})}},REQUEST_PREPARE_OUTPUT:function(t){var i=t.item,n=t.success,o=t.failure,r=void 0===o?function(){}:o,a={error:Ge("error",0,"Item not found"),file:null};if(i.archived)return r(a);Zt("PREPARE_OUTPUT",i.file,{query:e,item:i}).then(function(t){Zt("COMPLETE_PREPARE_OUTPUT",t,{query:e,item:i}).then(function(t){if(i.archived)return r(a);n(t)})})},COMPLETE_LOAD_ITEM:function(n){var o=n.item,r=n.data,a=r.success,s=r.source,l=e("GET_ITEM_INSERT_LOCATION");if(et(l)&&s&&hi(i,l),t("DID_LOAD_ITEM",{id:o.id,error:null,serverFileReference:o.origin===zt.INPUT?null:s}),a(Nt(o)),o.origin!==zt.LOCAL)return o.origin===zt.LIMBO?(t("DID_COMPLETE_ITEM_PROCESSING",{id:o.id,error:null,serverFileReference:s}),void t("DID_DEFINE_VALUE",{id:o.id,value:o.serverId||s})):void(e("IS_ASYNC")&&i.options.instantUpload&&t("REQUEST_ITEM_PROCESSING",{query:o.id}));t("DID_LOAD_LOCAL_ITEM",{id:o.id})},RETRY_ITEM_LOAD:di(i,function(t){t.retryLoad()}),REQUEST_ITEM_PREPARE:di(i,function(e,i,n){t("REQUEST_PREPARE_OUTPUT",{query:e.id,item:e,success:function(n){t("DID_PREPARE_OUTPUT",{id:e.id,file:n}),i({file:e,output:n})},failure:n},!0)}),REQUEST_ITEM_PROCESSING:di(i,function(n,o,r){if(n.status===Gt.IDLE||n.status===Gt.PROCESSING_ERROR)n.status!==Gt.PROCESSING_QUEUED&&(n.requestProcessing(),t("DID_REQUEST_ITEM_PROCESSING",{id:n.id}),t("PROCESS_ITEM",{query:n,success:o,failure:r},!0));else{var a=function(){return t("REQUEST_ITEM_PROCESSING",{query:n,success:o,failure:r})},s=function(){return document.hidden?a():setTimeout(a,32)};n.status===Gt.PROCESSING_COMPLETE||n.status===Gt.PROCESSING_REVERT_ERROR?n.revert(We(i.options.server.url,i.options.server.revert),e("GET_FORCE_REVERT")).then(s).catch(function(){}):n.status===Gt.PROCESSING&&n.abortProcessing().then(s)}}),PROCESS_ITEM:di(i,function(n,o,r){var a=e("GET_MAX_PARALLEL_UPLOADS");if(e("GET_ITEMS_BY_STATUS",Gt.PROCESSING).length!==a){if(n.status!==Gt.PROCESSING){var s=function e(){var n=i.processingQueue.shift();if(n){var o=n.id,r=n.success,a=n.failure,s=$t(i.items,o);s&&!s.archived?t("PROCESS_ITEM",{query:o,success:r,failure:a},!0):e()}};n.onOnce("process-complete",function(){o(Nt(n)),s();var r=i.options.server;if(i.options.instantUpload&&n.origin===zt.LOCAL&&et(r.remove)){var a=function(){};n.origin=zt.LIMBO,i.options.server.remove(n.source,a,a)}e("GET_ITEMS_BY_STATUS",Gt.PROCESSING_COMPLETE).length===i.items.length&&t("DID_COMPLETE_ITEM_PROCESSING_ALL")}),n.onOnce("process-error",function(t){r({error:t,file:Nt(n)}),s()});var l=i.options;n.process(Ke(qe(l.server.url,l.server.process,l.name,{chunkTransferId:n.transferId,chunkServer:l.server.patch,chunkUploads:l.chunkUploads,chunkForce:l.chunkForce,chunkSize:l.chunkSize,chunkRetryDelays:l.chunkRetryDelays}),{allowMinimumUploadDuration:e("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),function(i,o,r){Zt("PREPARE_OUTPUT",i,{query:e,item:n}).then(function(e){t("DID_PREPARE_OUTPUT",{id:n.id,file:e}),o(e)}).catch(r)})}}else i.processingQueue.push({id:n.id,success:o,failure:r})}),RETRY_ITEM_PROCESSING:di(i,function(e){t("REQUEST_ITEM_PROCESSING",{query:e})}),REQUEST_REMOVE_ITEM:di(i,function(i){ci(e("GET_BEFORE_REMOVE_FILE"),Nt(i)).then(function(e){e&&t("REMOVE_ITEM",{query:i})})}),RELEASE_ITEM:di(i,function(t){t.release()}),REMOVE_ITEM:di(i,function(n,o,r,a){var s=function(){var e=n.id;ni(i.items,e).archive(),t("DID_REMOVE_ITEM",{error:null,id:e,item:n}),ui(t,i),o(Nt(n))},l=i.options.server;n.origin===zt.LOCAL&&l&&et(l.remove)&&!1!==a.remove?(t("DID_START_ITEM_REMOVE",{id:n.id}),l.remove(n.source,function(){return s()},function(e){t("DID_THROW_ITEM_REMOVE_ERROR",{id:n.id,error:Ge("error",0,e,null),status:{main:si(i.options.labelFileRemoveError)(e),sub:i.options.labelTapToRetry}})})):((a.revert&&n.origin!==zt.LOCAL&&null!==n.serverId||i.options.chunkUploads&&n.file.size>i.options.chunkSize||i.options.chunkUploads&&i.options.chunkForce)&&n.revert(We(i.options.server.url,i.options.server.revert),e("GET_FORCE_REVERT")),s())}),ABORT_ITEM_LOAD:di(i,function(t){t.abortLoad()}),ABORT_ITEM_PROCESSING:di(i,function(e){e.serverId?t("REVERT_ITEM_PROCESSING",{id:e.id}):e.abortProcessing().then(function(){i.options.instantUpload&&t("REMOVE_ITEM",{query:e.id})})}),REQUEST_REVERT_ITEM_PROCESSING:di(i,function(n){if(i.options.instantUpload){var o=function(e){e&&t("REVERT_ITEM_PROCESSING",{query:n})},r=e("GET_BEFORE_REMOVE_FILE");if(!r)return o(!0);var a=r(Nt(n));return null==a?o(!0):"boolean"==typeof a?o(a):void("function"==typeof a.then&&a.then(o))}t("REVERT_ITEM_PROCESSING",{query:n})}),REVERT_ITEM_PROCESSING:di(i,function(n){n.revert(We(i.options.server.url,i.options.server.revert),e("GET_FORCE_REVERT")).then(function(){(i.options.instantUpload||li(n))&&t("REMOVE_ITEM",{query:n.id})}).catch(function(){})}),SET_OPTIONS:function(e){var i=e.options,n=Object.keys(i),o=pi.filter(function(t){return n.includes(t)});[].concat(xt(o),xt(Object.keys(i).filter(function(t){return!o.includes(t)}))).forEach(function(e){t("SET_"+vt(e,"_").toUpperCase(),{value:i[e]})})}}},pi=["server"],_i=function(t){return t},mi=function(t){return document.createElement(t)},vi=function(t,e){var i=t.childNodes[0];i?e!==i.nodeValue&&(i.nodeValue=e):(i=document.createTextNode(e),t.appendChild(i))},gi=function(t,e,i,n){var o=(n%360-90)*Math.PI/180;return{x:t+i*Math.cos(o),y:e+i*Math.sin(o)}},yi=function(t,e,i,n,o,r){var a=gi(t,e,i,o),s=gi(t,e,i,n);return["M",a.x,a.y,"A",i,i,0,r,0,s.x,s.y].join(" ")},Ei=function(t,e,i,n,o){var r=1;return o>n&&o-n<=.5&&(r=0),n>o&&n-o>=.5&&(r=0),yi(t,e,i,360*Math.min(.9999,n),360*Math.min(.9999,o),r)},Li=B({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(t){var e=t.root,i=t.props;i.spin=!1,i.progress=0,i.opacity=0;var n=c("svg");e.ref.path=c("path",{"stroke-width":2,"stroke-linecap":"round"}),n.appendChild(e.ref.path),e.ref.svg=n,e.appendChild(n)},write:function(t){var e=t.root,i=t.props;if(0!==i.opacity){i.align&&(e.element.dataset.align=i.align);var n=parseInt(a(e.ref.path,"stroke-width"),10),o=.5*e.rect.element.width,r=0,s=0;i.spin?(r=0,s=.5):(r=0,s=i.progress);var l=Ei(o,o,o-n,r,s);a(e.ref.path,"d",l),a(e.ref.path,"stroke-opacity",i.spin||i.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Ti=B({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(t){var e=t.root,i=t.props;e.element.innerHTML=(i.icon||"")+"<span>"+i.label+"</span>",i.isDisabled=!1},write:function(t){var e=t.root,i=t.props,n=i.isDisabled,o=e.query("GET_DISABLED")||0===i.opacity;o&&!n?(i.isDisabled=!0,a(e.element,"disabled","disabled")):!o&&n&&(i.isDisabled=!1,e.element.removeAttribute("disabled"))}}),bi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.labelBytes,r=void 0===o?"bytes":o,a=n.labelKilobytes,s=void 0===a?"KB":a,l=n.labelMegabytes,u=void 0===l?"MB":l,c=n.labelGigabytes,h=void 0===c?"GB":c,d=i,f=i*i,p=i*i*i;return(t=Math.round(Math.abs(t)))<d?t+" "+r:t<f?Math.floor(t/d)+" "+s:t<p?wi(t/f,1,e)+" "+u:wi(t/p,2,e)+" "+h},wi=function(t,e,i){return t.toFixed(e).split(".").filter(function(t){return"0"!==t}).join(i)},Ii=function(t){var e=t.root,i=t.props,n=mi("span");n.className="filepond--file-info-main",a(n,"aria-hidden","true"),e.appendChild(n),e.ref.fileName=n;var o=mi("span");o.className="filepond--file-info-sub",e.appendChild(o),e.ref.fileSize=o,vi(o,e.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),vi(n,_i(e.query("GET_ITEM_NAME",i.id)))},Pi=function(t){var e=t.root,i=t.props;vi(e.ref.fileSize,bi(e.query("GET_ITEM_SIZE",i.id),".",e.query("GET_FILE_SIZE_BASE"),e.query("GET_FILE_SIZE_LABELS",e.query))),vi(e.ref.fileName,_i(e.query("GET_ITEM_NAME",i.id)))},xi=function(t){var e=t.root,i=t.props;J(e.query("GET_ITEM_SIZE",i.id))?Pi({root:e,props:i}):vi(e.ref.fileSize,e.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Mi=B({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:z({DID_LOAD_ITEM:Pi,DID_UPDATE_ITEM_META:Pi,DID_THROW_ITEM_LOAD_ERROR:xi,DID_THROW_ITEM_INVALID:xi}),didCreateView:function(t){qt("CREATE_VIEW",Object.assign({},t,{view:t}))},create:Ii,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),ki=function(t){return Math.round(100*t)},Oi=function(t){var e=t.root,i=mi("span");i.className="filepond--file-status-main",e.appendChild(i),e.ref.main=i;var n=mi("span");n.className="filepond--file-status-sub",e.appendChild(n),e.ref.sub=n,Si({root:e,action:{progress:null}})},Si=function(t){var e=t.root,i=t.action,n=null===i.progress?e.query("GET_LABEL_FILE_LOADING"):e.query("GET_LABEL_FILE_LOADING")+" "+ki(i.progress)+"%";vi(e.ref.main,n),vi(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},Di=function(t){var e=t.root;vi(e.ref.main,""),vi(e.ref.sub,"")},Ri=function(t){var e=t.root,i=t.action;vi(e.ref.main,i.status.main),vi(e.ref.sub,i.status.sub)},Ai=B({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:z({DID_LOAD_ITEM:Di,DID_REVERT_ITEM_PROCESSING:Di,DID_REQUEST_ITEM_PROCESSING:function(t){var e=t.root;vi(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING")),vi(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(t){var e=t.root;vi(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_ABORTED")),vi(e.ref.sub,e.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(t){var e=t.root;vi(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),vi(e.ref.sub,e.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(t){var e=t.root,i=t.action,n=null===i.progress?e.query("GET_LABEL_FILE_PROCESSING"):e.query("GET_LABEL_FILE_PROCESSING")+" "+ki(i.progress)+"%";vi(e.ref.main,n),vi(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:Si,DID_THROW_ITEM_LOAD_ERROR:Ri,DID_THROW_ITEM_INVALID:Ri,DID_THROW_ITEM_PROCESSING_ERROR:Ri,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Ri,DID_THROW_ITEM_REMOVE_ERROR:Ri}),didCreateView:function(t){qt("CREATE_VIEW",Object.assign({},t,{view:t}))},create:Oi,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),Ci={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},Ni=[];o(Ci,function(t){Ni.push(t)});var Bi,Gi=function(t){if("right"===ji(t))return 0;var e=t.ref.buttonRemoveItem.rect.element;return e.hidden?null:e.width+e.left},zi=function(t){return t.ref.buttonAbortItemLoad.rect.element.width},Fi=function(t){return Math.floor(t.ref.buttonRemoveItem.rect.element.height/4)},Ui=function(t){return Math.floor(t.ref.buttonRemoveItem.rect.element.left/2)},ji=function(t){return t.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},Vi={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(t){return t.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(t){return t.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},Hi={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Gi},status:{translateX:Gi}},Zi={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},qi={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Gi},status:{translateX:Gi,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Gi},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:ji},info:{translateX:Gi},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:ji},buttonRemoveItem:{opacity:1},info:{translateX:Gi},status:{opacity:1,translateX:Gi}},DID_LOAD_ITEM:Hi,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Gi},status:{translateX:Gi}},DID_START_ITEM_PROCESSING:Zi,DID_REQUEST_ITEM_PROCESSING:Zi,DID_UPDATE_ITEM_PROCESS_PROGRESS:Zi,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Gi}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Gi},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:Hi},Wi=B({create:function(t){var e=t.root;e.element.innerHTML=e.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),Yi=function(t){var e,i=t.root,n=t.props,r=Object.keys(Ci).reduce(function(t,e){return t[e]=Object.assign({},Ci[e]),t},{}),a=n.id,s=i.query("GET_ALLOW_REVERT"),l=i.query("GET_ALLOW_REMOVE"),u=i.query("GET_ALLOW_PROCESS"),c=i.query("GET_INSTANT_UPLOAD"),h=i.query("IS_ASYNC"),d=i.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");h?u&&!s?e=function(t){return!/RevertItemProcessing/.test(t)}:!u&&s?e=function(t){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(t)}:u||s||(e=function(t){return!/Process/.test(t)}):e=function(t){return!/Process/.test(t)};var f=e?Ni.filter(e):Ni.concat();if(c&&s&&(r.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",r.RevertItemProcessing.icon="GET_ICON_REMOVE"),h&&!s){var p=qi.DID_COMPLETE_ITEM_PROCESSING;p.info.translateX=Ui,p.info.translateY=Fi,p.status.translateY=Fi,p.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(h&&!u&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(function(t){qi[t].status.translateY=Fi}),qi.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=zi),d&&s){r.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var _=qi.DID_COMPLETE_ITEM_PROCESSING;_.info.translateX=Gi,_.status.translateY=Fi,_.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}l||(r.RemoveItem.disabled=!0),o(r,function(t,e){var n=i.createChildView(Ti,{label:i.query(e.label),icon:i.query(e.icon),opacity:0});f.includes(t)&&i.appendChildView(n),e.disabled&&(n.element.setAttribute("disabled","disabled"),n.element.setAttribute("hidden","hidden")),n.element.dataset.align=i.query("GET_STYLE_"+e.align),n.element.classList.add(e.className),n.on("click",function(t){t.stopPropagation(),e.disabled||i.dispatch(e.action,{query:a})}),i.ref["button"+t]=n}),i.ref.processingCompleteIndicator=i.appendChildView(i.createChildView(Wi)),i.ref.processingCompleteIndicator.element.dataset.align=i.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),i.ref.info=i.appendChildView(i.createChildView(Mi,{id:a})),i.ref.status=i.appendChildView(i.createChildView(Ai,{id:a}));var m=i.appendChildView(i.createChildView(Li,{opacity:0,align:i.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));m.element.classList.add("filepond--load-indicator"),i.ref.loadProgressIndicator=m;var v=i.appendChildView(i.createChildView(Li,{opacity:0,align:i.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));v.element.classList.add("filepond--process-indicator"),i.ref.processProgressIndicator=v,i.ref.activeStyles=[]},Xi=function(t){var e=t.root,i=t.actions,n=t.props;Ki({root:e,actions:i,props:n});var r=i.concat().filter(function(t){return/^DID_/.test(t.type)}).reverse().find(function(t){return qi[t.type]});if(r){e.ref.activeStyles=[];var a=qi[r.type];o(Vi,function(t,i){var n=e.ref[t];o(i,function(i,o){var r=a[t]&&void 0!==a[t][i]?a[t][i]:o;e.ref.activeStyles.push({control:n,key:i,value:r})})})}e.ref.activeStyles.forEach(function(t){var i=t.control,n=t.key,o=t.value;i[n]="function"==typeof o?o(e):o})},Ki=z({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(t){var e=t.root,i=t.action;e.ref.buttonAbortItemProcessing.label=i.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(t){var e=t.root,i=t.action;e.ref.buttonAbortItemLoad.label=i.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(t){var e=t.root,i=t.action;e.ref.buttonAbortItemRemoval.label=i.value},DID_REQUEST_ITEM_PROCESSING:function(t){var e=t.root;e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(t){var e=t.root;e.ref.loadProgressIndicator.spin=!0,e.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(t){var e=t.root;e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(t){var e=t.root,i=t.action;e.ref.loadProgressIndicator.spin=!1,e.ref.loadProgressIndicator.progress=i.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(t){var e=t.root,i=t.action;e.ref.processProgressIndicator.spin=!1,e.ref.processProgressIndicator.progress=i.progress}}),Qi=B({create:Yi,write:Xi,didCreateView:function(t){qt("CREATE_VIEW",Object.assign({},t,{view:t}))},name:"file"}),$i=B({create:function(t){var e=t.root,i=t.props;e.ref.fileName=mi("legend"),e.appendChild(e.ref.fileName),e.ref.file=e.appendChildView(e.createChildView(Qi,{id:i.id})),e.ref.data=!1},ignoreRect:!0,write:z({DID_LOAD_ITEM:function(t){var e=t.root,i=t.props;vi(e.ref.fileName,_i(e.query("GET_ITEM_NAME",i.id)))}}),didCreateView:function(t){qt("CREATE_VIEW",Object.assign({},t,{view:t}))},tag:"fieldset",name:"file-wrapper"}),Ji={type:"spring",damping:.6,mass:7},tn=function(t){var e=t.root,i=t.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:Ji},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:Ji},styles:["translateY"]}}].forEach(function(t){en(e,t,i.name)}),e.element.classList.add("filepond--"+i.name),e.ref.scalable=null},en=function(t,e,i){var n=B({name:"panel-"+e.name+" filepond--"+i,mixins:e.mixins,ignoreRectUpdate:!0}),o=t.createChildView(n,e.props);t.ref[e.name]=t.appendChildView(o)},nn=B({name:"panel",read:function(t){var e=t.root;return t.props.heightCurrent=e.ref.bottom.translateY},write:function(t){var e=t.root,i=t.props;if(null!==e.ref.scalable&&i.scalable===e.ref.scalable||(e.ref.scalable=!W(i.scalable)||i.scalable,e.element.dataset.scalable=e.ref.scalable),i.height){var n=e.ref.top.rect.element,o=e.ref.bottom.rect.element,r=Math.max(n.height+o.height,i.height);e.ref.center.translateY=n.height,e.ref.center.scaleY=(r-n.height-o.height)/100,e.ref.bottom.translateY=r-o.height}},create:tn,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),on=function(t){var e=t.map(function(t){return t.id}),i=void 0;return{setIndex:function(t){i=t},getIndex:function(){return i},getItemIndex:function(t){return e.indexOf(t.id)}}},rn={type:"spring",stiffness:.75,damping:.45,mass:10},an="spring",sn={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},ln=function(t){var e=t.root,i=t.props;if(e.ref.handleClick=function(t){return e.dispatch("DID_ACTIVATE_ITEM",{id:i.id})},e.element.id="filepond--item-"+i.id,e.element.addEventListener("click",e.ref.handleClick),e.ref.container=e.appendChildView(e.createChildView($i,{id:i.id})),e.ref.panel=e.appendChildView(e.createChildView(nn,{name:"item-panel"})),e.ref.panel.height=null,i.markedForRemoval=!1,e.query("GET_ALLOW_REORDER")){e.element.dataset.dragState="idle";var n=function(t){if(t.isPrimary){var n=!1,o={x:t.pageX,y:t.pageY};i.dragOrigin={x:e.translateX,y:e.translateY},i.dragCenter={x:t.offsetX,y:t.offsetY};var r=on(e.query("GET_ACTIVE_ITEMS"));e.dispatch("DID_GRAB_ITEM",{id:i.id,dragState:r});var a=function(t){t.isPrimary&&(t.stopPropagation(),t.preventDefault(),i.dragOffset={x:t.pageX-o.x,y:t.pageY-o.y},i.dragOffset.x*i.dragOffset.x+i.dragOffset.y*i.dragOffset.y>16&&!n&&(n=!0,e.element.removeEventListener("click",e.ref.handleClick)),e.dispatch("DID_DRAG_ITEM",{id:i.id,dragState:r}))},s=function(t){t.isPrimary&&(i.dragOffset={x:t.pageX-o.x,y:t.pageY-o.y},u())},l=function(){u()},u=function(){document.removeEventListener("pointercancel",l),document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",s),e.dispatch("DID_DROP_ITEM",{id:i.id,dragState:r}),n&&setTimeout(function(){return e.element.addEventListener("click",e.ref.handleClick)},0)};document.addEventListener("pointercancel",l),document.addEventListener("pointermove",a),document.addEventListener("pointerup",s)}};e.element.addEventListener("pointerdown",n)}},un=z({DID_UPDATE_PANEL_HEIGHT:function(t){var e=t.root,i=t.action;e.height=i.height}}),cn=z({DID_GRAB_ITEM:function(t){var e=t.root;t.props.dragOrigin={x:e.translateX,y:e.translateY}},DID_DRAG_ITEM:function(t){t.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(t){var e=t.root,i=t.props;i.dragOffset=null,i.dragOrigin=null,e.element.dataset.dragState="drop"}},function(t){var e=t.root,i=t.actions,n=t.props,o=t.shouldOptimize;"drop"===e.element.dataset.dragState&&e.scaleX<=1&&(e.element.dataset.dragState="idle");var r=i.concat().filter(function(t){return/^DID_/.test(t.type)}).reverse().find(function(t){return sn[t.type]});r&&r.type!==n.currentState&&(n.currentState=r.type,e.element.dataset.filepondItemState=sn[n.currentState]||"");var a=e.query("GET_ITEM_PANEL_ASPECT_RATIO")||e.query("GET_PANEL_ASPECT_RATIO");a?o||(e.height=e.rect.element.width*a):(un({root:e,actions:i,props:n}),!e.height&&e.ref.container.rect.element.height>0&&(e.height=e.ref.container.rect.element.height)),o&&(e.ref.panel.height=null),e.ref.panel.height=e.height}),hn=B({create:ln,write:cn,destroy:function(t){var e=t.root,i=t.props;e.element.removeEventListener("click",e.ref.handleClick),e.dispatch("RELEASE_ITEM",{query:i.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:an,scaleY:an,translateX:rn,translateY:rn,opacity:{type:"tween",duration:150}}}}),dn=function(t,e){return Math.max(1,Math.floor((t+1)/e))},fn=function(t,e,i){if(i){var n=t.rect.element.width,o=e.length,r=null;if(0===o||i.top<e[0].rect.element.top)return-1;var a=e[0].rect.element,s=a.marginLeft+a.marginRight,l=a.width+s,u=dn(n,l);if(1===u){for(var c=0;c<o;c++){var h=e[c],d=h.rect.outer.top+.5*h.rect.element.height;if(i.top<d)return c}return o}for(var f=a.marginTop+a.marginBottom,p=a.height+f,_=0;_<o;_++){var m=_%u*l,v=Math.floor(_/u)*p,g=v-a.marginTop,y=m+l,E=v+p+a.marginBottom;if(i.top<E&&i.top>g){if(i.left<y)return _;r=_!==o-1?_:null}}return null!==r?r:o}},pn={height:0,width:0,get getHeight(){return this.height},set setHeight(t){0!==this.height&&0!==t||(this.height=t)},get getWidth(){return this.width},set setWidth(t){0!==this.width&&0!==t||(this.width=t)},setDimensions:function(t,e){0!==this.height&&0!==t||(this.height=t),0!==this.width&&0!==e||(this.width=e)}},_n=function(t){var e=t.root;a(e.element,"role","list"),e.ref.lastItemSpanwDate=Date.now()},mn=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t.dragOffset?(t.translateX=null,t.translateY=null,t.translateX=t.dragOrigin.x+t.dragOffset.x,t.translateY=t.dragOrigin.y+t.dragOffset.y,t.scaleX=1.025,t.scaleY=1.025):(t.translateX=e,t.translateY=i,Date.now()>t.spawnDate&&(0===t.opacity&&vn(t,e,i,n,o),t.scaleX=1,t.scaleY=1,t.opacity=1))},vn=function(t,e,i,n,o){t.interactionMethod===Lt.NONE?(t.translateX=null,t.translateX=e,t.translateY=null,t.translateY=i):t.interactionMethod===Lt.DROP?(t.translateX=null,t.translateX=e-20*n,t.translateY=null,t.translateY=i-10*o,t.scaleX=.8,t.scaleY=.8):t.interactionMethod===Lt.BROWSE?(t.translateY=null,t.translateY=i-30):t.interactionMethod===Lt.API&&(t.translateX=null,t.translateX=e-30,t.translateY=null)},gn=function(t){return t.rect.element.height+.5*t.rect.element.marginBottom+.5*t.rect.element.marginTop},yn=function(t){return t.rect.element.width+.5*t.rect.element.marginLeft+.5*t.rect.element.marginRight},En=z({DID_ADD_ITEM:function(t){var e=t.root,i=t.action,n=i.id,o=i.index,r=i.interactionMethod;e.ref.addIndex=o;var a=Date.now(),s=a,l=1;if(r!==Lt.NONE){l=0;var u=e.query("GET_ITEM_INSERT_INTERVAL"),c=a-e.ref.lastItemSpanwDate;s=c<u?a+(u-c):a}e.ref.lastItemSpanwDate=s,e.appendChildView(e.createChildView(hn,{spawnDate:s,id:n,opacity:l,interactionMethod:r}),o)},DID_REMOVE_ITEM:function(t){var e=t.root,i=t.action.id,n=e.childViews.find(function(t){return t.id===i});n&&(n.scaleX=.9,n.scaleY=.9,n.opacity=0,n.markedForRemoval=!0)},DID_DRAG_ITEM:function(t){var e=t.root,i=t.action,n=i.id,o=i.dragState,r=e.query("GET_ITEM",{id:n}),a=e.childViews.find(function(t){return t.id===n}),s=e.childViews.length,l=o.getItemIndex(r);if(a){var u={x:a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,y:a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y},c=gn(a),h=yn(a),d=Math.floor(e.rect.outer.width/h);d>s&&(d=s);var f=Math.floor(s/d+1);pn.setHeight=c*f,pn.setWidth=h*d;var p={y:Math.floor(u.y/c),x:Math.floor(u.x/h),getGridIndex:function(){return u.y>pn.getHeight||u.y<0||u.x>pn.getWidth||u.x<0?l:this.y*d+this.x},getColIndex:function(){for(var t=e.query("GET_ACTIVE_ITEMS"),i=e.childViews.filter(function(t){return t.rect.element.height}),n=t.map(function(t){return i.find(function(e){return e.id===t.id})}),o=n.findIndex(function(t){return t===a}),r=gn(a),s=n.length,l=s,c=0,h=0,d=0;d<s;d++)if(c=(h=c)+gn(n[d]),u.y<c){if(o>d){if(u.y<h+r){l=d;break}continue}l=d;break}return l}},_=d>1?p.getGridIndex():p.getColIndex();e.dispatch("MOVE_ITEM",{query:a,index:_});var m=o.getIndex();if(void 0===m||m!==_){if(o.setIndex(_),void 0===m)return;e.dispatch("DID_REORDER_ITEMS",{items:e.query("GET_ACTIVE_ITEMS"),origin:l,target:_})}}}}),Ln=B({create:_n,write:function(t){var e=t.root,i=t.props,n=t.actions,o=t.shouldOptimize;En({root:e,props:i,actions:n});var r=i.dragCoordinates,a=e.rect.element.width,s=e.childViews.filter(function(t){return t.rect.element.height}),l=e.query("GET_ACTIVE_ITEMS").map(function(t){return s.find(function(e){return e.id===t.id})}).filter(function(t){return t}),u=r?fn(e,l,r):null,c=e.ref.addIndex||null;e.ref.addIndex=null;var h=0,d=0,f=0;if(0!==l.length){var p=l[0].rect.element,_=p.marginTop+p.marginBottom,m=p.marginLeft+p.marginRight,v=p.width+m,g=p.height+_,y=dn(a,v);if(1===y){var E=0,L=0;l.forEach(function(t,e){if(u){var i=e-u;L=-2===i?.25*-_:-1===i?.75*-_:0===i?.75*_:1===i?.25*_:0}o&&(t.translateX=null,t.translateY=null),t.markedForRemoval||mn(t,0,E+L);var n=(t.rect.element.height+_)*(t.markedForRemoval?t.opacity:1);E+=n})}else{var T=0,b=0;l.forEach(function(t,e){e===u&&(h=1),e===c&&(f+=1),t.markedForRemoval&&t.opacity<.5&&(d-=1);var i=e+f+h+d,n=i%y,r=Math.floor(i/y),a=n*v,s=r*g,l=Math.sign(a-T),p=Math.sign(s-b);T=a,b=s,t.markedForRemoval||(o&&(t.translateX=null,t.translateY=null),mn(t,a,s,l,p))})}}},tag:"ul",name:"list",didWriteView:function(t){var e=t.root;e.childViews.filter(function(t){return t.markedForRemoval&&0===t.opacity&&t.resting}).forEach(function(t){t._destroy(),e.removeChildView(t)})},filterFrameActionsForChild:function(t,e){return e.filter(function(e){return!e.data||!e.data.id||t.id===e.data.id})},mixins:{apis:["dragCoordinates"]}}),Tn=function(t){var e=t.root,i=t.props;e.ref.list=e.appendChildView(e.createChildView(Ln)),i.dragCoordinates=null,i.overflowing=!1},bn=z({DID_DRAG:function(t){var e=t.root,i=t.props,n=t.action;e.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(i.dragCoordinates={left:n.position.scopeLeft-e.ref.list.rect.element.left,top:n.position.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},DID_END_DRAG:function(t){t.props.dragCoordinates=null}}),wn=B({create:Tn,write:function(t){var e=t.root,i=t.props,n=t.actions;if(bn({root:e,props:i,actions:n}),e.ref.list.dragCoordinates=i.dragCoordinates,i.overflowing&&!i.overflow&&(i.overflowing=!1,e.element.dataset.state="",e.height=null),i.overflow){var o=Math.round(i.overflow);o!==e.height&&(i.overflowing=!0,e.element.dataset.state="overflow",e.height=o)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),In=function(t,e,i){i?a(t,e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):t.removeAttribute(e)},Pn=function(t){if(t&&""!==t.value){try{t.value=""}catch(t){}if(t.value){var e=mi("form"),i=t.parentNode,n=t.nextSibling;e.appendChild(t),e.reset(),n?i.insertBefore(t,n):i.appendChild(t)}}},xn=function(t){var e=t.root,i=t.props;e.element.id="filepond--browser-"+i.id,a(e.element,"name",e.query("GET_NAME")),a(e.element,"aria-controls","filepond--assistant-"+i.id),a(e.element,"aria-labelledby","filepond--drop-label-"+i.id),Mn({root:e,action:{value:e.query("GET_ACCEPTED_FILE_TYPES")}}),kn({root:e,action:{value:e.query("GET_ALLOW_MULTIPLE")}}),On({root:e,action:{value:e.query("GET_ALLOW_DIRECTORIES_ONLY")}}),Sn({root:e}),Dn({root:e,action:{value:e.query("GET_REQUIRED")}}),Rn({root:e,action:{value:e.query("GET_CAPTURE_METHOD")}}),e.ref.handleChange=function(t){if(e.element.value){var n=Array.from(e.element.files).map(function(t){return t._relativePath=t.webkitRelativePath,t});setTimeout(function(){i.onload(n),Pn(e.element)},250)}},e.element.addEventListener("change",e.ref.handleChange)},Mn=function(t){var e=t.root,i=t.action;e.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&In(e.element,"accept",!!i.value,i.value?i.value.join(","):"")},kn=function(t){var e=t.root,i=t.action;In(e.element,"multiple",i.value)},On=function(t){var e=t.root,i=t.action;In(e.element,"webkitdirectory",i.value)},Sn=function(t){var e=t.root,i=e.query("GET_DISABLED"),n=e.query("GET_ALLOW_BROWSE"),o=i||!n;In(e.element,"disabled",o)},Dn=function(t){var e=t.root;t.action.value?0===e.query("GET_TOTAL_ITEMS")&&In(e.element,"required",!0):In(e.element,"required",!1)},Rn=function(t){var e=t.root,i=t.action;In(e.element,"capture",!!i.value,!0===i.value?"":i.value)},An=function(t){var e=t.root,i=e.element;if(e.query("GET_TOTAL_ITEMS")>0){In(i,"required",!1),In(i,"name",!1);for(var n=e.query("GET_ACTIVE_ITEMS"),o=!1,r=0;r<n.length;r++)n[r].status===Gt.LOAD_ERROR&&(o=!0);e.element.setCustomValidity(o?e.query("GET_LABEL_INVALID_FIELD"):"")}else In(i,"name",!0,e.query("GET_NAME")),e.query("GET_CHECK_VALIDITY")&&i.setCustomValidity(""),e.query("GET_REQUIRED")&&In(i,"required",!0)},Cn=B({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:xn,destroy:function(t){var e=t.root;e.element.removeEventListener("change",e.ref.handleChange)},write:z({DID_LOAD_ITEM:An,DID_REMOVE_ITEM:An,DID_THROW_ITEM_INVALID:function(t){var e=t.root;e.query("GET_CHECK_VALIDITY")&&e.element.setCustomValidity(e.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:Sn,DID_SET_ALLOW_BROWSE:Sn,DID_SET_ALLOW_DIRECTORIES_ONLY:On,DID_SET_ALLOW_MULTIPLE:kn,DID_SET_ACCEPTED_FILE_TYPES:Mn,DID_SET_CAPTURE_METHOD:Rn,DID_SET_REQUIRED:Dn})}),Nn={ENTER:13,SPACE:32},Bn=function(t){var e=t.root,i=t.props,n=mi("label");a(n,"for","filepond--browser-"+i.id),a(n,"id","filepond--drop-label-"+i.id),e.ref.handleKeyDown=function(t){(t.keyCode===Nn.ENTER||t.keyCode===Nn.SPACE)&&(t.preventDefault(),e.ref.label.click())},e.ref.handleClick=function(t){t.target===n||n.contains(t.target)||e.ref.label.click()},n.addEventListener("keydown",e.ref.handleKeyDown),e.element.addEventListener("click",e.ref.handleClick),Gn(n,i.caption),e.appendChild(n),e.ref.label=n},Gn=function(t,e){t.innerHTML=e;var i=t.querySelector(".filepond--label-action");return i&&a(i,"tabindex","0"),e},zn=B({name:"drop-label",ignoreRect:!0,create:Bn,destroy:function(t){var e=t.root;e.ref.label.addEventListener("keydown",e.ref.handleKeyDown),e.element.removeEventListener("click",e.ref.handleClick)},write:z({DID_SET_LABEL_IDLE:function(t){var e=t.root,i=t.action;Gn(e.ref.label,i.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),Fn=B({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),Un=function(t){var e=t.root,i=.5*e.rect.element.width,n=.5*e.rect.element.height;e.ref.blob=e.appendChildView(e.createChildView(Fn,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:i,translateY:n}))},jn=function(t){var e=t.root,i=t.props,n=t.actions;Vn({root:e,props:i,actions:n});var o=e.ref.blob;0===n.length&&o&&0===o.opacity&&(e.removeChildView(o),e.ref.blob=null)},Vn=z({DID_DRAG:function(t){var e=t.root,i=t.action;e.ref.blob?(e.ref.blob.translateX=i.position.scopeLeft,e.ref.blob.translateY=i.position.scopeTop,e.ref.blob.scaleX=1,e.ref.blob.scaleY=1,e.ref.blob.opacity=1):Un({root:e})},DID_DROP:function(t){var e=t.root;e.ref.blob&&(e.ref.blob.scaleX=2.5,e.ref.blob.scaleY=2.5,e.ref.blob.opacity=0)},DID_END_DRAG:function(t){var e=t.root;e.ref.blob&&(e.ref.blob.opacity=0)}}),Hn=B({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:jn}),Zn=function(t,e){try{var i=new DataTransfer;e.forEach(function(t){t instanceof File?i.items.add(t):i.items.add(new File([t],t.name,{type:t.type}))}),t.files=i.files}catch(t){return!1}return!0},qn=function(t){var e=t.root;e.ref.fields={};var i=document.createElement("legend");i.textContent="Files",e.element.appendChild(i)},Wn=function(t,e){return t.ref.fields[e]},Yn=function(t){t.query("GET_ACTIVE_ITEMS").forEach(function(e){t.ref.fields[e.id]&&t.element.appendChild(t.ref.fields[e.id])})},Xn=function(t){var e=t.root;return Yn(e)},Kn=z({DID_SET_DISABLED:function(t){var e=t.root;e.element.disabled=e.query("GET_DISABLED")},DID_ADD_ITEM:function(t){var e=t.root,i=t.action,n=!(e.query("GET_ITEM",i.id).origin===zt.LOCAL)&&e.query("SHOULD_UPDATE_FILE_INPUT"),o=mi("input");o.type=n?"file":"hidden",o.name=e.query("GET_NAME"),e.ref.fields[i.id]=o,Yn(e)},DID_LOAD_ITEM:function(t){var e=t.root,i=t.action,n=Wn(e,i.id);if(n&&(null!==i.serverFileReference&&(n.value=i.serverFileReference),e.query("SHOULD_UPDATE_FILE_INPUT"))){var o=e.query("GET_ITEM",i.id);Zn(n,[o.file])}},DID_REMOVE_ITEM:function(t){var e=t.root,i=t.action,n=Wn(e,i.id);n&&(n.parentNode&&n.parentNode.removeChild(n),delete e.ref.fields[i.id])},DID_DEFINE_VALUE:function(t){var e=t.root,i=t.action,n=Wn(e,i.id);n&&(null===i.value?n.removeAttribute("value"):"file"!=n.type&&(n.value=i.value),Yn(e))},DID_PREPARE_OUTPUT:function(t){var e=t.root,i=t.action;e.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(function(){var t=Wn(e,i.id);t&&Zn(t,[i.file])},0)},DID_REORDER_ITEMS:Xn,DID_SORT_ITEMS:Xn}),Qn=B({tag:"fieldset",name:"data",create:qn,write:Kn,ignoreRect:!0}),$n=function(t){return"getRootNode"in t?t.getRootNode():document},Jn=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],to=["css","csv","html","txt"],eo={zip:"zip|compressed",epub:"application/epub+zip"},io=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=t.toLowerCase(),Jn.includes(t)?"image/"+("jpg"===t?"jpeg":"svg"===t?"svg+xml":t):to.includes(t)?"text/"+t:eo[t]||""},no=function(t){return new Promise(function(e,i){var n=po(t);if(n.length&&!oo(t))return e(n);ro(t).then(e)})},oo=function(t){return!!t.files&&t.files.length>0},ro=function(t){return new Promise(function(e,i){var n=(t.items?Array.from(t.items):[]).filter(function(t){return ao(t)}).map(function(t){return so(t)});n.length?Promise.all(n).then(function(t){var i=[];t.forEach(function(t){i.push.apply(i,t)}),e(i.filter(function(t){return t}).map(function(t){return t._relativePath||(t._relativePath=t.webkitRelativePath),t}))}).catch(console.error):e(t.files?Array.from(t.files):[])})},ao=function(t){if(ho(t)){var e=fo(t);if(e)return e.isFile||e.isDirectory}return"file"===t.kind},so=function(t){return new Promise(function(e,i){co(t)?lo(fo(t)).then(e).catch(i):e([t.getAsFile()])})},lo=function(t){return new Promise(function(e,i){var n=[],o=0,r=0,a=function(){0===r&&0===o&&e(n)},s=function t(e){o++;var s=e.createReader(),l=function e(){s.readEntries(function(i){if(0===i.length)return o--,void a();i.forEach(function(e){e.isDirectory?t(e):(r++,e.file(function(t){var i=uo(t);e.fullPath&&(i._relativePath=e.fullPath),n.push(i),r--,a()}))}),e()},i)};l()};s(t)})},uo=function(t){if(t.type.length)return t;var e=t.lastModifiedDate,i=t.name,n=io(ge(t.name));return n.length?((t=t.slice(0,t.size,n)).name=i,t.lastModifiedDate=e,t):t},co=function(t){return ho(t)&&(fo(t)||{}).isDirectory},ho=function(t){return"webkitGetAsEntry"in t},fo=function(t){return t.webkitGetAsEntry()},po=function(t){var e=[];try{if((e=mo(t)).length)return e;e=_o(t)}catch(t){}return e},_o=function(t){var e=t.getData("url");return"string"==typeof e&&e.length?[e]:[]},mo=function(t){var e=t.getData("text/html");if("string"==typeof e&&e.length){var i=e.match(/src\s*=\s*"(.+?)"/);if(i)return[i[1]]}return[]},vo=[],go=function(t){return{pageLeft:t.pageX,pageTop:t.pageY,scopeLeft:t.offsetX||t.layerX,scopeTop:t.offsetY||t.layerY}},yo=function(t,e,i){var n=Eo(e),o={element:t,filterElement:i,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return o.destroy=n.addListener(o),o},Eo=function(t){var e=vo.find(function(e){return e.element===t});if(e)return e;var i=Lo(t);return vo.push(i),i},Lo=function(t){var e=[],i={dragenter:Po,dragover:xo,dragleave:ko,drop:Mo},n={};o(i,function(i,o){n[i]=o(t,e),t.addEventListener(i,n[i],!1)});var r={element:t,addListener:function(a){return e.push(a),function(){e.splice(e.indexOf(a),1),0===e.length&&(vo.splice(vo.indexOf(r),1),o(i,function(e){t.removeEventListener(e,n[e],!1)}))}}};return r},To=function(t,e){return"elementFromPoint"in t||(t=document),t.elementFromPoint(e.x,e.y)},bo=function(t,e){var i=$n(e),n=To(i,{x:t.pageX-window.pageXOffset,y:t.pageY-window.pageYOffset});return n===e||e.contains(n)},wo=null,Io=function(t,e){try{t.dropEffect=e}catch(t){}},Po=function(t,e){return function(t){t.preventDefault(),wo=t.target,e.forEach(function(e){var i=e.element,n=e.onenter;bo(t,i)&&(e.state="enter",n(go(t)))})}},xo=function(t,e){return function(t){t.preventDefault();var i=t.dataTransfer;no(i).then(function(n){var o=!1;e.some(function(e){var r=e.filterElement,a=e.element,s=e.onenter,l=e.onexit,u=e.ondrag,c=e.allowdrop;Io(i,"copy");var h=c(n);if(h)if(bo(t,a)){if(o=!0,null===e.state)return e.state="enter",void s(go(t));if(e.state="over",r&&!h)return void Io(i,"none");u(go(t))}else r&&!o&&Io(i,"none"),e.state&&(e.state=null,l(go(t)));else Io(i,"none")})})}},Mo=function(t,e){return function(t){t.preventDefault();var i=t.dataTransfer;no(i).then(function(i){e.forEach(function(e){var n=e.filterElement,o=e.element,r=e.ondrop,a=e.onexit,s=e.allowdrop;if(e.state=null,!n||bo(t,o))return s(i)?void r(go(t),i):a(go(t))})})}},ko=function(t,e){return function(t){wo===t.target&&e.forEach(function(e){var i=e.onexit;e.state=null,i(go(t))})}},Oo=function(t,e,i){t.classList.add("filepond--hopper");var n=i.catchesDropsOnPage,o=i.requiresDropOnElement,r=i.filterItems,a=void 0===r?function(t){return t}:r,s=yo(t,n?document.documentElement:t,o),l="",u="";s.allowdrop=function(t){return e(a(t))},s.ondrop=function(t,i){var n=a(i);e(n)?(u="drag-drop",c.onload(n,t)):c.ondragend(t)},s.ondrag=function(t){c.ondrag(t)},s.onenter=function(t){u="drag-over",c.ondragstart(t)},s.onexit=function(t){u="drag-exit",c.ondragend(t)};var c={updateHopperState:function(){l!==u&&(t.dataset.hopperState=u,l=u)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return c},So=!1,Do=[],Ro=function(t){var e=document.activeElement;if(e&&(/textarea|input/i.test(e.nodeName)||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable"))){for(var i=!1,n=e;n!==document.body;){if(n.classList.contains("filepond--root")){i=!0;break}n=n.parentNode}if(!i)return}no(t.clipboardData).then(function(t){t.length&&Do.forEach(function(e){return e(t)})})},Ao=function(t){Do.includes(t)||(Do.push(t),So||(So=!0,document.addEventListener("paste",Ro)))},Co=function(t){St(Do,Do.indexOf(t)),0===Do.length&&(document.removeEventListener("paste",Ro),So=!1)},No=function(){var t=function(t){e.onload(t)},e={destroy:function(){Co(t)},onload:function(){}};return Ao(t),e},Bo=null,Go=null,zo=[],Fo=function(t,e){t.element.textContent=e},Uo=function(t){t.element.textContent=""},jo=function(t,e,i){var n=t.query("GET_TOTAL_ITEMS");Fo(t,i+" "+e+", "+n+" "+(1===n?t.query("GET_LABEL_FILE_COUNT_SINGULAR"):t.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(Go),Go=setTimeout(function(){Uo(t)},1500)},Vo=function(t){return t.element.parentNode.contains(document.activeElement)},Ho=function(t){var e=t.root,i=t.action,n=e.query("GET_ITEM",i.id).filename,o=e.query("GET_LABEL_FILE_PROCESSING_ABORTED");Fo(e,n+" "+o)},Zo=function(t){var e=t.root,i=t.action,n=e.query("GET_ITEM",i.id).filename;Fo(e,i.status.main+" "+n+" "+i.status.sub)},qo=B({create:function(t){var e=t.root,i=t.props;e.element.id="filepond--assistant-"+i.id,a(e.element,"role","alert"),a(e.element,"aria-live","polite"),a(e.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:z({DID_LOAD_ITEM:function(t){var e=t.root,i=t.action;if(Vo(e)){e.element.textContent="";var n=e.query("GET_ITEM",i.id);zo.push(n.filename),clearTimeout(Bo),Bo=setTimeout(function(){jo(e,zo.join(", "),e.query("GET_LABEL_FILE_ADDED")),zo.length=0},750)}},DID_REMOVE_ITEM:function(t){var e=t.root,i=t.action;if(Vo(e)){var n=i.item;jo(e,n.filename,e.query("GET_LABEL_FILE_REMOVED"))}},DID_COMPLETE_ITEM_PROCESSING:function(t){var e=t.root,i=t.action,n=e.query("GET_ITEM",i.id).filename,o=e.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Fo(e,n+" "+o)},DID_ABORT_ITEM_PROCESSING:Ho,DID_REVERT_ITEM_PROCESSING:Ho,DID_THROW_ITEM_REMOVE_ERROR:Zo,DID_THROW_ITEM_LOAD_ERROR:Zo,DID_THROW_ITEM_INVALID:Zo,DID_THROW_ITEM_PROCESSING_ERROR:Zo}),tag:"span",name:"assistant"}),Wo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.replace(new RegExp(e+".","g"),function(t){return t.charAt(1).toUpperCase()})},Yo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Date.now(),o=null;return function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];clearTimeout(o);var l=Date.now()-n,u=function(){n=Date.now(),t.apply(void 0,a)};l<e?i||(o=setTimeout(u,e-l)):u()}},Xo=1e6,Ko=function(t){return t.preventDefault()},Qo=function(t){var e=t.root,i=t.props,n=e.query("GET_ID");n&&(e.element.id=n);var o=e.query("GET_CLASS_NAME");o&&o.split(" ").filter(function(t){return t.length}).forEach(function(t){e.element.classList.add(t)}),e.ref.label=e.appendChildView(e.createChildView(zn,Object.assign({},i,{translateY:null,caption:e.query("GET_LABEL_IDLE")}))),e.ref.list=e.appendChildView(e.createChildView(wn,{translateY:null})),e.ref.panel=e.appendChildView(e.createChildView(nn,{name:"panel-root"})),e.ref.assistant=e.appendChildView(e.createChildView(qo,Object.assign({},i))),e.ref.data=e.appendChildView(e.createChildView(Qn,Object.assign({},i))),e.ref.measure=mi("div"),e.ref.measure.style.height="100%",e.element.appendChild(e.ref.measure),e.ref.bounds=null,e.query("GET_STYLES").filter(function(t){return!V(t.value)}).map(function(t){var i=t.name,n=t.value;e.element.dataset[i]=n}),e.ref.widthPrevious=null,e.ref.widthUpdated=Yo(function(){e.ref.updateHistory=[],e.dispatch("DID_RESIZE_ROOT")},250),e.ref.previousAspectRatio=null,e.ref.updateHistory=[];var r=window.matchMedia("(pointer: fine) and (hover: hover)").matches,a="PointerEvent"in window;e.query("GET_ALLOW_REORDER")&&a&&!r&&(e.element.addEventListener("touchmove",Ko,{passive:!1}),e.element.addEventListener("gesturestart",Ko));var s=e.query("GET_CREDITS");if(2===s.length){var l=document.createElement("a");l.className="filepond--credits",l.href=s[0],l.tabIndex=-1,l.target="_blank",l.rel="noopener noreferrer nofollow",l.textContent=s[1],e.element.appendChild(l),e.ref.credits=l}},$o=function(t){var e=t.root,i=t.props,n=t.actions;if(sr({root:e,props:i,actions:n}),n.filter(function(t){return/^DID_SET_STYLE_/.test(t.type)}).filter(function(t){return!V(t.data.value)}).map(function(t){var i=t.type,n=t.data,o=Wo(i.substring(8).toLowerCase(),"_");e.element.dataset[o]=n.value,e.invalidateLayout()}),!e.rect.element.hidden){e.rect.element.width!==e.ref.widthPrevious&&(e.ref.widthPrevious=e.rect.element.width,e.ref.widthUpdated());var o=e.ref.bounds;o||(o=e.ref.bounds=er(e),e.element.removeChild(e.ref.measure),e.ref.measure=null);var r=e.ref,a=r.hopper,s=r.label,l=r.list,u=r.panel;a&&a.updateHopperState();var c=e.query("GET_PANEL_ASPECT_RATIO"),h=e.query("GET_ALLOW_MULTIPLE"),d=e.query("GET_TOTAL_ITEMS"),f=d===(h?e.query("GET_MAX_FILES")||Xo:1),p=n.find(function(t){return"DID_ADD_ITEM"===t.type});if(f&&p){var _=p.data.interactionMethod;s.opacity=0,h?s.translateY=-40:_===Lt.API?s.translateX=40:_===Lt.BROWSE?s.translateY=40:s.translateY=30}else f||(s.opacity=1,s.translateX=0,s.translateY=0);var m=Jo(e),v=tr(e),g=s.rect.element.height,y=!h||f?0:g,E=f?l.rect.element.marginTop:0,L=0===d?0:l.rect.element.marginBottom,T=y+E+v.visual+L,b=y+E+v.bounds+L;if(l.translateY=Math.max(0,y-l.rect.element.marginTop)-m.top,c){var w=e.rect.element.width,I=w*c;c!==e.ref.previousAspectRatio&&(e.ref.previousAspectRatio=c,e.ref.updateHistory=[]);var P=e.ref.updateHistory;P.push(w);var x=2;if(P.length>2*x)for(var M=P.length,k=M-10,O=0,S=M;S>=k;S--)if(P[S]===P[S-2]&&O++,O>=x)return;u.scalable=!1,u.height=I;var D=I-y-(L-m.bottom)-(f?E:0);v.visual>D?l.overflow=D:l.overflow=null,e.height=I}else if(o.fixedHeight){u.scalable=!1;var R=o.fixedHeight-y-(L-m.bottom)-(f?E:0);v.visual>R?l.overflow=R:l.overflow=null}else if(o.cappedHeight){var A=T>=o.cappedHeight,C=Math.min(o.cappedHeight,T);u.scalable=!0,u.height=A?C:C-m.top-m.bottom;var N=C-y-(L-m.bottom)-(f?E:0);T>o.cappedHeight&&v.visual>N?l.overflow=N:l.overflow=null,e.height=Math.min(o.cappedHeight,b-m.top-m.bottom)}else{var B=d>0?m.top+m.bottom:0;u.scalable=!0,u.height=Math.max(g,T-B),e.height=Math.max(g,b-B)}e.ref.credits&&u.heightCurrent&&(e.ref.credits.style.transform="translateY("+u.heightCurrent+"px)")}},Jo=function(t){var e=t.ref.list.childViews[0].childViews[0];return e?{top:e.rect.element.marginTop,bottom:e.rect.element.marginBottom}:{top:0,bottom:0}},tr=function(t){var e=0,i=0,n=t.ref.list,o=n.childViews[0],r=o.childViews.filter(function(t){return t.rect.element.height}),a=t.query("GET_ACTIVE_ITEMS").map(function(t){return r.find(function(e){return e.id===t.id})}).filter(function(t){return t});if(0===a.length)return{visual:e,bounds:i};var s=o.rect.element.width,l=fn(o,a,n.dragCoordinates),u=a[0].rect.element,c=u.marginTop+u.marginBottom,h=u.marginLeft+u.marginRight,d=u.width+h,f=u.height+c,p=void 0!==l&&l>=0?1:0,_=a.find(function(t){return t.markedForRemoval&&t.opacity<.45})?-1:0,m=a.length+p+_,v=dn(s,d);return 1===v?a.forEach(function(t){var n=t.rect.element.height+c;i+=n,e+=n*t.opacity}):(i=Math.ceil(m/v)*f,e=i),{visual:e,bounds:i}},er=function(t){var e=t.ref.measureHeight||null;return{cappedHeight:parseInt(t.style.maxHeight,10)||null,fixedHeight:0===e?null:e}},ir=function(t,e){var i=t.query("GET_ALLOW_REPLACE"),n=t.query("GET_ALLOW_MULTIPLE"),o=t.query("GET_TOTAL_ITEMS"),r=t.query("GET_MAX_FILES"),a=e.length;return!n&&a>1?(t.dispatch("DID_THROW_MAX_FILES",{source:e,error:Ge("warning",0,"Max files")}),!0):!(!n&&i||!(J(r=n?r:1)&&o+a>r)||(t.dispatch("DID_THROW_MAX_FILES",{source:e,error:Ge("warning",0,"Max files")}),0))},nr=function(t,e,i){var n=t.childViews[0];return fn(n,e,{left:i.scopeLeft-n.rect.element.left,top:i.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},or=function(t){var e=t.query("GET_ALLOW_DROP"),i=t.query("GET_DISABLED"),n=e&&!i;if(n&&!t.ref.hopper){var o=Oo(t.element,function(e){var i=t.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!t.query("GET_DROP_VALIDATION")||e.every(function(e){return qt("ALLOW_HOPPER_ITEM",e,{query:t.query}).every(function(t){return!0===t})&&i(e)})},{filterItems:function(e){var i=t.query("GET_IGNORED_FILES");return e.filter(function(t){return!Je(t)||!i.includes(t.name.toLowerCase())})},catchesDropsOnPage:t.query("GET_DROP_ON_PAGE"),requiresDropOnElement:t.query("GET_DROP_ON_ELEMENT")});o.onload=function(e,i){var n=t.ref.list.childViews[0].childViews.filter(function(t){return t.rect.element.height}),o=t.query("GET_ACTIVE_ITEMS").map(function(t){return n.find(function(e){return e.id===t.id})}).filter(function(t){return t});Zt("ADD_ITEMS",e,{dispatch:t.dispatch}).then(function(e){if(ir(t,e))return!1;t.dispatch("ADD_ITEMS",{items:e,index:nr(t.ref.list,o,i),interactionMethod:Lt.DROP})}),t.dispatch("DID_DROP",{position:i}),t.dispatch("DID_END_DRAG",{position:i})},o.ondragstart=function(e){t.dispatch("DID_START_DRAG",{position:e})},o.ondrag=Yo(function(e){t.dispatch("DID_DRAG",{position:e})}),o.ondragend=function(e){t.dispatch("DID_END_DRAG",{position:e})},t.ref.hopper=o,t.ref.drip=t.appendChildView(t.createChildView(Hn))}else!n&&t.ref.hopper&&(t.ref.hopper.destroy(),t.ref.hopper=null,t.removeChildView(t.ref.drip))},rr=function(t,e){var i=t.query("GET_ALLOW_BROWSE"),n=t.query("GET_DISABLED"),o=i&&!n;o&&!t.ref.browser?t.ref.browser=t.appendChildView(t.createChildView(Cn,Object.assign({},e,{onload:function(e){Zt("ADD_ITEMS",e,{dispatch:t.dispatch}).then(function(e){if(ir(t,e))return!1;t.dispatch("ADD_ITEMS",{items:e,index:-1,interactionMethod:Lt.BROWSE})})}})),0):!o&&t.ref.browser&&(t.removeChildView(t.ref.browser),t.ref.browser=null)},ar=function(t){var e=t.query("GET_ALLOW_PASTE"),i=t.query("GET_DISABLED"),n=e&&!i;n&&!t.ref.paster?(t.ref.paster=No(),t.ref.paster.onload=function(e){Zt("ADD_ITEMS",e,{dispatch:t.dispatch}).then(function(e){if(ir(t,e))return!1;t.dispatch("ADD_ITEMS",{items:e,index:-1,interactionMethod:Lt.PASTE})})}):!n&&t.ref.paster&&(t.ref.paster.destroy(),t.ref.paster=null)},sr=z({DID_SET_ALLOW_BROWSE:function(t){var e=t.root,i=t.props;rr(e,i)},DID_SET_ALLOW_DROP:function(t){var e=t.root;or(e)},DID_SET_ALLOW_PASTE:function(t){var e=t.root;ar(e)},DID_SET_DISABLED:function(t){var e=t.root,i=t.props;or(e),ar(e),rr(e,i),e.query("GET_DISABLED")?e.element.dataset.disabled="disabled":e.element.removeAttribute("data-disabled")}}),lr=B({name:"root",read:function(t){var e=t.root;e.ref.measure&&(e.ref.measureHeight=e.ref.measure.offsetHeight)},create:Qo,write:$o,destroy:function(t){var e=t.root;e.ref.paster&&e.ref.paster.destroy(),e.ref.hopper&&e.ref.hopper.destroy(),e.element.removeEventListener("touchmove",Ko),e.element.removeEventListener("gesturestart",Ko)},mixins:{styles:["height"]}}),ur=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=null,n=Xt(),o=i(mt(n),[he,Et(n)],[fi,yt(n)]);o.dispatch("SET_OPTIONS",{options:t});var a=function(){document.hidden||o.dispatch("KICK")};document.addEventListener("visibilitychange",a);var s=null,l=!1,u=!1,c=null,h=null,d=function(){l||(l=!0),clearTimeout(s),s=setTimeout(function(){l=!1,c=null,h=null,u&&(u=!1,o.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",d);var f=lr(o,{id:Tt()}),p=!1,_=!1,m={_read:function(){l&&(h=window.innerWidth,c||(c=h),u||h===c||(o.dispatch("DID_START_RESIZE"),u=!0)),_&&p&&(p=null===f.element.offsetParent),p||(f._read(),_=f.rect.element.hidden)},_write:function(t){var e=o.processActionQueue().filter(function(t){return!/^SET_/.test(t.type)});p&&!e.length||(L(e),p=f._write(t,e,u),Bt(o.query("GET_ITEMS")),p&&o.processDispatchQueue())}},v=function(t){return function(e){var i={type:t};if(!e)return i;if(e.hasOwnProperty("error")&&(i.error=e.error?Object.assign({},e.error):null),e.status&&(i.status=Object.assign({},e.status)),e.file&&(i.output=e.file),e.source)i.file=e.source;else if(e.item||e.id){var n=e.item?e.item:o.query("GET_ITEM",e.id);i.file=n?Nt(n):null}return e.items&&(i.items=e.items.map(Nt)),/progress/.test(t)&&(i.progress=e.progress),e.hasOwnProperty("origin")&&e.hasOwnProperty("target")&&(i.origin=e.origin,i.target=e.target),i}},g={DID_DESTROY:v("destroy"),DID_INIT:v("init"),DID_THROW_MAX_FILES:v("warning"),DID_INIT_ITEM:v("initfile"),DID_START_ITEM_LOAD:v("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:v("addfileprogress"),DID_LOAD_ITEM:v("addfile"),DID_THROW_ITEM_INVALID:[v("error"),v("addfile")],DID_THROW_ITEM_LOAD_ERROR:[v("error"),v("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[v("error"),v("removefile")],DID_PREPARE_OUTPUT:v("preparefile"),DID_START_ITEM_PROCESSING:v("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:v("processfileprogress"),DID_ABORT_ITEM_PROCESSING:v("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:v("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:v("processfiles"),DID_REVERT_ITEM_PROCESSING:v("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[v("error"),v("processfile")],DID_REMOVE_ITEM:v("removefile"),DID_UPDATE_ITEMS:v("updatefiles"),DID_ACTIVATE_ITEM:v("activatefile"),DID_REORDER_ITEMS:v("reorderfiles")},y=function(t){var e=Object.assign({pond:A},t);delete e.type,f.element.dispatchEvent(new CustomEvent("FilePond:"+t.type,{detail:e,bubbles:!0,cancelable:!0,composed:!0}));var i=[];t.hasOwnProperty("error")&&i.push(t.error),t.hasOwnProperty("file")&&i.push(t.file);var n=["type","error","file"];Object.keys(t).filter(function(t){return!n.includes(t)}).forEach(function(e){return i.push(t[e])}),A.fire.apply(A,[t.type].concat(i));var r=o.query("GET_ON"+t.type.toUpperCase());r&&r.apply(void 0,i)},L=function(t){t.length&&t.filter(function(t){return g[t.type]}).forEach(function(t){var e=g[t.type];(Array.isArray(e)?e:[e]).forEach(function(e){"DID_INIT_ITEM"===t.type?y(e(t.data)):setTimeout(function(){y(e(t.data))},0)})})},T=function(t){return o.dispatch("SET_OPTIONS",{options:t})},b=function(t){return o.query("GET_ACTIVE_ITEM",t)},w=function(t){return new Promise(function(e,i){o.dispatch("REQUEST_ITEM_PREPARE",{query:t,success:function(t){e(t)},failure:function(t){i(t)}})})},I=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(i,n){M([{source:t,options:e}],{index:e.index}).then(function(t){return i(t&&t[0])}).catch(n)})},P=function(t){return t.file&&t.id},x=function(t,e){return"object"!=typeof t||P(t)||e||(e=t,t=void 0),o.dispatch("REMOVE_ITEM",Object.assign({},e,{query:t})),null===o.query("GET_ACTIVE_ITEM",t)},M=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return new Promise(function(t,i){var n=[],r={};if(j(e[0]))n.push.apply(n,e[0]),Object.assign(r,e[1]||{});else{var a=e[e.length-1];"object"!=typeof a||a instanceof Blob||Object.assign(r,e.pop()),n.push.apply(n,e)}o.dispatch("ADD_ITEMS",{items:n,index:r.index,interactionMethod:Lt.API,success:t,failure:i})})},k=function(){return o.query("GET_ACTIVE_ITEMS")},O=function(t){return new Promise(function(e,i){o.dispatch("REQUEST_ITEM_PROCESSING",{query:t,success:function(t){e(t)},failure:function(t){i(t)}})})},S=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=Array.isArray(e[0])?e[0]:e,o=n.length?n:k();return Promise.all(o.map(w))},D=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=Array.isArray(e[0])?e[0]:e;if(!n.length){var o=k().filter(function(t){return!(t.status===Gt.IDLE&&t.origin===zt.LOCAL)&&t.status!==Gt.PROCESSING&&t.status!==Gt.PROCESSING_COMPLETE&&t.status!==Gt.PROCESSING_REVERT_ERROR});return Promise.all(o.map(O))}return Promise.all(n.map(O))},R=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n,o=Array.isArray(e[0])?e[0]:e;"object"==typeof o[o.length-1]?n=o.pop():Array.isArray(e[0])&&(n=e[1]);var r=k();return o.length?o.map(function(t){return E(t)?r[t]?r[t].id:null:t}).filter(function(t){return t}).map(function(t){return x(t,n)}):Promise.all(r.map(function(t){return x(t,n)}))},A=Object.assign({},Rt(),{},m,{},gt(o,n),{setOptions:T,addFile:I,addFiles:M,getFile:b,processFile:O,prepareFile:w,removeFile:x,moveFile:function(t,e){return o.dispatch("MOVE_ITEM",{query:t,index:e})},getFiles:k,processFiles:D,removeFiles:R,prepareFiles:S,sort:function(t){return o.dispatch("SORT",{compare:t})},browse:function(){var t=f.element.querySelector("input[type=file]");t&&t.click()},destroy:function(){A.fire("destroy",f.element),o.dispatch("ABORT_ALL"),f._destroy(),window.removeEventListener("resize",d),document.removeEventListener("visibilitychange",a),o.dispatch("DID_DESTROY")},insertBefore:function(t){return F(f.element,t)},insertAfter:function(t){return U(f.element,t)},appendTo:function(t){return t.appendChild(f.element)},replaceElement:function(t){F(f.element,t),t.parentNode.removeChild(t),e=t},restoreElement:function(){e&&(U(e,f.element),f.element.parentNode.removeChild(f.element),e=null)},isAttachedTo:function(t){return f.element===t||e===t},element:{get:function(){return f.element}},status:{get:function(){return o.query("GET_STATUS")}}});return o.dispatch("DID_INIT"),r(A)},cr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};return o(Xt(),function(t,i){e[t]=i[0]}),ur(Object.assign({},e,{},t))},hr=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},dr=function(t){return Wo(t.replace(/^data-/,""))},fr=function t(e,i){o(i,function(i,n){o(e,function(t,o){var r=new RegExp(i);if(r.test(t)&&(delete e[t],!1!==n))if(X(n))e[n]=o;else{var a=n.group;st(n)&&!e[a]&&(e[a]={}),e[a][hr(t.replace(r,""))]=o}}),n.mapping&&t(e[n.group],n.mapping)})},pr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[];o(t.attributes,function(e){i.push(t.attributes[e])});var n=i.filter(function(t){return t.name}).reduce(function(e,i){var n=a(t,i.name);return e[dr(i.name)]=n===i.name||n,e},{});return fr(n,e),n},_r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};qt("SET_ATTRIBUTE_TO_OPTION_MAP",i);var n=Object.assign({},e),o=pr("FIELDSET"===t.nodeName?t.querySelector("input[type=file]"):t,i);Object.keys(o).forEach(function(t){st(o[t])?(st(n[t])||(n[t]={}),Object.assign(n[t],o[t])):n[t]=o[t]}),n.files=(e.files||[]).concat(Array.from(t.querySelectorAll("input:not([type=file])")).map(function(t){return{source:t.value,options:{type:t.dataset.type}}}));var r=cr(n);return t.files&&Array.from(t.files).forEach(function(t){r.addFile(t)}),r.replaceElement(t),r},mr=function(){return e(arguments.length<=0?void 0:arguments[0])?_r.apply(void 0,arguments):cr.apply(void 0,arguments)},vr=["fire","_read","_write"],gr=function(t){var e={};return At(t,e,vr),e},yr=function(t,e){return t.replace(/(?:{([a-zA-Z]+)})/g,function(t,i){return e[i]})},Er=function(t){var e=new Blob(["(",t.toString(),")()"],{type:"application/javascript"}),i=URL.createObjectURL(e),n=new Worker(i);return{transfer:function(t,e){},post:function(t,e,i){var o=Tt();n.onmessage=function(t){t.data.id===o&&e(t.data.message)},n.postMessage({id:o,message:t},i)},terminate:function(){n.terminate(),URL.revokeObjectURL(i)}}},Lr=function(t){return new Promise(function(e,i){var n=new Image;n.onload=function(){e(n)},n.onerror=function(t){i(t)},n.src=t})},Tr=function(t,e){var i=t.slice(0,t.size,t.type);return i.lastModifiedDate=t.lastModifiedDate,i.name=e,i},br=function(t){return Tr(t,t.name)},wr=[],Ir=function(t){if(!wr.includes(t)){wr.push(t);var e=t({addFilter:Wt,utils:{Type:Vt,forin:o,isString:X,isFile:Je,toNaturalFileSize:bi,replaceInString:yr,getExtensionFromFilename:ge,getFilenameWithoutExtension:Qe,guesstimateMimeType:io,getFileFromBlob:Te,getFilenameFromURL:ve,createRoute:z,createWorker:Er,createView:B,createItemAPI:Nt,loadImage:Lr,copyFile:br,renameFile:Tr,createBlob:we,applyFilterChain:Zt,text:vi,getNumericAspectRatioFromString:Jt},views:{fileActionButton:Ti}});Yt(e.options)}},Pr=function(){return"[object OperaMini]"===Object.prototype.toString.call(window.operamini)},xr=function(){return"Promise"in window},Mr=function(){return"slice"in Blob.prototype},kr=function(){return"URL"in window&&"createObjectURL"in window.URL},Or=function(){return"visibilityState"in document},Sr=function(){return"performance"in window},Dr=function(){return"supports"in(window.CSS||{})},Rr=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},Ar=(Bi=_()&&!Pr()&&Or()&&xr()&&Mr()&&kr()&&Sr()&&(Dr()||Rr()),function(){return Bi}),Cr={apps:[]},Nr="filepond",Br=function(){};if(t.Status={},t.FileStatus={},t.FileOrigin={},t.OptionTypes={},t.create=Br,t.destroy=Br,t.parse=Br,t.find=Br,t.registerPlugin=Br,t.getOptions=Br,t.setOptions=Br,Ar()){G(function(){Cr.apps.forEach(function(t){return t._read()})},function(t){Cr.apps.forEach(function(e){return e._write(t)})});var Gr=function e(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:Ar,create:t.create,destroy:t.destroy,parse:t.parse,find:t.find,registerPlugin:t.registerPlugin,setOptions:t.setOptions}})),document.removeEventListener("DOMContentLoaded",e)};"loading"!==document.readyState?setTimeout(function(){return Gr()}
38,0):document.addEventListener("DOMContentLoaded",Gr);var zr=function(){return o(Xt(),function(e,i){t.OptionTypes[e]=i[1]})};t.Status=Object.assign({},ee),t.FileOrigin=Object.assign({},zt),t.FileStatus=Object.assign({},Gt),t.OptionTypes={},zr(),t.create=function(){var e=mr.apply(void 0,arguments);return e.on("destroy",t.destroy),Cr.apps.push(e),gr(e)},t.destroy=function(t){var e=Cr.apps.findIndex(function(e){return e.isAttachedTo(t)});return e>=0&&(Cr.apps.splice(e,1)[0].restoreElement(),!0)},t.parse=function(e){return Array.from(e.querySelectorAll("."+Nr)).filter(function(t){return!Cr.apps.find(function(e){return e.isAttachedTo(t)})}).map(function(e){return t.create(e)})},t.find=function(t){var e=Cr.apps.find(function(e){return e.isAttachedTo(t)});return e?gr(e):null},t.registerPlugin=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(Ir),zr()},t.getOptions=function(){var t={};return o(Xt(),function(e,i){t[e]=i[0]}),t},t.setOptions=function(e){return st(e)&&(Cr.apps.forEach(function(t){t.setOptions(e)}),Kt(e)),t.getOptions()}}t.supported=Ar,Object.defineProperty(t,"__esModule",{value:!0})}(e)},1787:()=>{var t,e;t=window,e=document,L.drawVersion="1.0.4",L.Draw={},L.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},L.Draw.Event={},L.Draw.Event.CREATED="draw:created",L.Draw.Event.EDITED="draw:edited",L.Draw.Event.DELETED="draw:deleted",L.Draw.Event.DRAWSTART="draw:drawstart",L.Draw.Event.DRAWSTOP="draw:drawstop",L.Draw.Event.DRAWVERTEX="draw:drawvertex",L.Draw.Event.EDITSTART="draw:editstart",L.Draw.Event.EDITMOVE="draw:editmove",L.Draw.Event.EDITRESIZE="draw:editresize",L.Draw.Event.EDITVERTEX="draw:editvertex",L.Draw.Event.EDITSTOP="draw:editstop",L.Draw.Event.DELETESTART="draw:deletestart",L.Draw.Event.DELETESTOP="draw:deletestop",L.Draw.Event.TOOLBAROPENED="draw:toolbaropened",L.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",L.Draw.Event.MARKERCONTEXT="draw:markercontext",L.Draw=L.Draw||{},L.Draw.Feature=L.Handler.extend({initialize:function(t,e){this._map=t,this._container=t._container,this._overlayPane=t._panes.overlayPane,this._popupPane=t._panes.popupPane,e&&e.shapeOptions&&(e.shapeOptions=L.Util.extend({},this.options.shapeOptions,e.shapeOptions)),L.setOptions(this,e);var i=L.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?L.Draw.Feature.include(L.Evented.prototype):L.Draw.Feature.include(L.Mixin.Events)},enable:function(){this._enabled||(L.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DRAWSTOP,{layerType:this.t
vendor: 20,339 bytes, line 38
38ype}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(L.DomUtil.disableTextSelection(),t.getContainer().focus(),this._tooltip=new L.Draw.Tooltip(this._map),L.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(L.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,L.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(t){L.setOptions(this,t)},_fireCreatedEvent:function(t){this._map.fire(L.Draw.Event.CREATED,{layer:t,layerType:this.type})},_cancelDrawing:function(t){27===t.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),L.Draw.Polyline=L.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:L.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(t,e){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=L.drawLocal.draw.handlers.polyline.error,e&&e.drawError&&(e.drawError=L.Util.extend({},this.options.drawError,e.drawError)),this.type=L.Draw.Polyline.TYPE,L.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new L.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var t=this._markers.pop(),e=this._poly,i=e.getLatLngs(),n=i.splice(-1,1)[0];this._poly.setLatLngs(i),this._markerGroup.removeLayer(t),e.getLatLngs().length<2&&this._map.removeLayer(e),this._vertexChanged(n,!1)}},addVertex:function(t){this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(t)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(t)),this._poly.addLatLng(t),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(t,!0))},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var t=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),e=this._poly.newLatLngIntersects(t[t.length-1]);!this.options.allowIntersection&&e||!this._shapeIsValid()?this._showErrorTooltip():(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_shapeIsValid:function(){return!0},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),i=this._map.layerPointToLatLng(e);this._currentLatLng=i,this._updateTooltip(i),this._updateGuide(e),this._mouseMarker.setLatLng(i),L.DomEvent.preventDefault(t.originalEvent)},_vertexChanged:function(t,e){this._map.fire(L.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(t,e),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(t){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(t),this._clickHandled=!0,this._disableNewMarkers();var e=t.originalEvent,i=e.clientX,n=e.clientY;this._startPoint.call(this,i,n)}},_startPoint:function(t,e){this._mouseDownOrigin=L.point(t,e)},_onMouseUp:function(t){var e=t.originalEvent,i=e.clientX,n=e.clientY;this._endPoint.call(this,i,n,t),this._clickHandled=null},_endPoint:function(e,i,n){if(this._mouseDownOrigin){var o=L.point(e,i).distanceTo(this._mouseDownOrigin),r=this._calculateFinishDistance(n.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(n.latlng),this._finishShape()):r<10&&L.Browser.touch?this._finishShape():Math.abs(o)<9*(t.devicePixelRatio||1)&&this.addVertex(n.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(t){var e,i,n=t.originalEvent;!n.touches||!n.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(e=n.touches[0].clientX,i=n.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,e,i),this._endPoint.call(this,e,i,t),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(t){var e;if(this._markers.length>0){var i;if(this.type===L.Draw.Polyline.TYPE)i=this._markers[this._markers.length-1];else{if(this.type!==L.Draw.Polygon.TYPE)return 1/0;i=this._markers[0]}var n=this._map.latLngToContainerPoint(i.getLatLng()),o=new L.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),r=this._map.latLngToContainerPoint(o.getLatLng());e=n.distanceTo(r)}else e=1/0;return e},_updateFinishHandler:function(){var t=this._markers.length;t>1&&this._markers[t-1].on("click",this._finishShape,this),t>2&&this._markers[t-2].off("click",this._finishShape,this)},_createMarker:function(t){var e=new L.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(e),e},_updateGuide:function(t){var e=this._markers?this._markers.length:0;e>0&&(t=t||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[e-1].getLatLng()),t))},_updateTooltip:function(t){var e=this._getTooltipText();t&&this._tooltip.updatePosition(t),this._errorShown||this._tooltip.updateContent(e)},_drawGuide:function(t,e){var i,n,o,r=Math.floor(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))),a=this.options.guidelineDistance,s=this.options.maxGuideLineLength,l=r>s?r-s:a;for(this._guidesContainer||(this._guidesContainer=L.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));l<r;l+=this.options.guidelineDistance)i=l/r,n={x:Math.floor(t.x*(1-i)+i*e.x),y:Math.floor(t.y*(1-i)+i*e.y)},(o=L.DomUtil.create("div","leaflet-draw-guide-dash",this._guidesContainer)).style.backgroundColor=this._errorShown?this.options.drawError.color:this.options.shapeOptions.color,L.DomUtil.setPosition(o,n)},_updateGuideColor:function(t){if(this._guidesContainer)for(var e=0,i=this._guidesContainer.childNodes.length;e<i;e++)this._guidesContainer.childNodes[e].style.backgroundColor=t},_clearGuides:function(){if(this._guidesContainer)for(;this._guidesContainer.firstChild;)this._guidesContainer.removeChild(this._guidesContainer.firstChild)},_getTooltipText:function(){var t,e,i=this.options.showLength;return 0===this._markers.length?t={text:L.drawLocal.draw.handlers.polyline.tooltip.start}:(e=i?this._getMeasurementString():"",t=1===this._markers.length?{text:L.drawLocal.draw.handlers.polyline.tooltip.cont,subtext:e}:{text:L.drawLocal.draw.handlers.polyline.tooltip.end,subtext:e}),t},_updateRunningMeasure:function(t,e){var i,n,o=this._markers.length;1===this._markers.length?this._measurementRunningTotal=0:(i=o-(e?2:1),n=L.GeometryUtil.isVersion07x()?t.distanceTo(this._markers[i].getLatLng())*(this.options.factor||1):this._map.distance(t,this._markers[i].getLatLng())*(this.options.factor||1),this._measurementRunningTotal+=n*(e?1:-1))},_getMeasurementString:function(){var t,e=this._currentLatLng,i=this._markers[this._markers.length-1].getLatLng();return t=L.GeometryUtil.isVersion07x()?i&&e&&e.distanceTo?this._measurementRunningTotal+e.distanceTo(i)*(this.options.factor||1):this._measurementRunningTotal||0:i&&e?this._measurementRunningTotal+this._map.distance(e,i)*(this.options.factor||1):this._measurementRunningTotal||0,L.GeometryUtil.readableDistance(t,this.options.metric,this.options.feet,this.options.nautic,this.options.precision)},_showErrorTooltip:function(){this._errorShown=!0,this._tooltip.showAsError().updateContent({text:this.options.drawError.message}),this._updateGuideColor(this.options.drawError.color),this._poly.setStyle({color:this.options.drawError.color}),this._clearHideErrorTimeout(),this._hideErrorTimeout=setTimeout(L.Util.bind(this._hideErrorTooltip,this),this.options.drawError.timeout)},_hideErrorTooltip:function(){this._errorShown=!1,this._clearHideErrorTimeout(),this._tooltip.removeError().updateContent(this._getTooltipText()),this._updateGuideColor(this.options.shapeOptions.color),this._poly.setStyle({color:this.options.shapeOptions.color})},_clearHideErrorTimeout:function(){this._hideErrorTimeout&&(clearTimeout(this._hideErrorTimeout),this._hideErrorTimeout=null)},_disableNewMarkers:function(){this._disableMarkers=!0},_enableNewMarkers:function(){setTimeout(function(){this._disableMarkers=!1}.bind(this),50)},_cleanUpShape:function(){this._markers.length>1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var t=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);L.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),L.Draw.Polygon=L.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:L.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(t,e){L.Draw.Polyline.prototype.initialize.call(this,t,e),this.type=L.Draw.Polygon.TYPE},_updateFinishHandler:function(){var t=this._markers.length;1===t&&this._markers[0].on("click",this._finishShape,this),t>2&&(this._markers[t-1].on("dblclick",this._finishShape,this),t>3&&this._markers[t-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var t,e;return 0===this._markers.length?t=L.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(t=L.drawLocal.draw.handlers.polygon.tooltip.cont,e=this._getMeasurementString()):(t=L.drawLocal.draw.handlers.polygon.tooltip.end,e=this._getMeasurementString()),{text:t,subtext:e}},_getMeasurementString:function(){var t=this._area,e="";return t||this.options.showLength?(this.options.showLength&&(e=L.Draw.Polyline.prototype._getMeasurementString.call(this)),t&&(e+="<br>"+L.GeometryUtil.readableArea(t,this.options.metric,this.options.precision)),e):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(t,e){var i;!this.options.allowIntersection&&this.options.showArea&&(i=this._poly.getLatLngs(),this._area=L.GeometryUtil.geodesicArea(i)),L.Draw.Polyline.prototype._vertexChanged.call(this,t,e)},_cleanUpShape:function(){var t=this._markers.length;t>0&&(this._markers[0].off("click",this._finishShape,this),t>2&&this._markers[t-1].off("dblclick",this._finishShape,this))}}),L.SimpleShape={},L.Draw.SimpleShape=L.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(t,e){this._endLabelText=L.drawLocal.draw.handlers.simpleshape.tooltip.end,L.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),e.addEventListener("touchstart",L.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),L.DomEvent.off(e,"mouseup",this._onMouseUp,this),L.DomEvent.off(e,"touchend",this._onMouseUp,this),e.removeEventListener("touchstart",L.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(t){this._isDrawing=!0,this._startLatLng=t.latlng,L.DomEvent.on(e,"mouseup",this._onMouseUp,this).on(e,"touchend",this._onMouseUp,this).preventDefault(t.originalEvent)},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(e))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),L.Draw.Rectangle=L.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(t,e){this.type=L.Draw.Rectangle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.rectangle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,t,e)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,L.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(t){this._shape||this._isCurrentlyTwoClickDrawing?this._isCurrentlyTwoClickDrawing&&!function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}(t.target,"leaflet-pane")||L.Draw.SimpleShape.prototype._onMouseUp.call(this):this._isCurrentlyTwoClickDrawing=!0},_drawShape:function(t){this._shape?this._shape.setBounds(new L.LatLngBounds(this._startLatLng,t)):(this._shape=new L.Rectangle(new L.LatLngBounds(this._startLatLng,t),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new L.Rectangle(this._shape.getBounds(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_getTooltipText:function(){var t,e,i,n=L.Draw.SimpleShape.prototype._getTooltipText.call(this),o=this._shape,r=this.options.showArea;return o&&(t=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),e=L.GeometryUtil.geodesicArea(t),i=r?L.GeometryUtil.readableArea(e,this.options.metric):""),{text:n.text,subtext:i}}}),L.Draw.Marker=L.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new L.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(t,e){this.type=L.Draw.Marker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.marker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._mouseMarker.setLatLng(e),this._marker?(e=this._mouseMarker.getLatLng(),this._marker.setLatLng(e)):(this._marker=this._createMarker(e),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(t){return new L.Marker(t,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(t){this._onMouseMove(t),this._onClick()},_fireCreatedEvent:function(){var t=new L.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});L.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),L.Draw.CircleMarker=L.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(t,e){this.type=L.Draw.CircleMarker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circlemarker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,t,e)},_fireCreatedEvent:function(){var t=new L.CircleMarker(this._marker.getLatLng(),this.options);L.Draw.Feature.prototype._fireCreatedEvent.call(this,t)},_createMarker:function(t){return new L.CircleMarker(t,this.options)}}),L.Draw.Circle=L.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(t,e){this.type=L.Draw.Circle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,t,e)},_drawShape:function(t){if(L.GeometryUtil.isVersion07x())var e=this._startLatLng.distanceTo(t);else e=this._map.distance(this._startLatLng,t);this._shape?this._shape.setRadius(e):(this._shape=new L.Circle(this._startLatLng,e,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new L.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_onMouseMove:function(t){var e,i=t.latlng,n=this.options.showRadius,o=this.options.metric;if(this._tooltip.updatePosition(i),this._isDrawing){this._drawShape(i),e=this._shape.getRadius().toFixed(1);var r="";n&&(r=L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(e,o,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:r})}}}),L.Edit=L.Edit||{},L.Edit.Marker=L.Handler.extend({initialize:function(t,e){this._marker=t,L.setOptions(this,e)},addHooks:function(){var t=this._marker;t.dragging.enable(),t.on("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},removeHooks:function(){var t=this._marker;t.dragging.disable(),t.off("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},_onDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:e})},_toggleMarkerHighlight:function(){var t=this._marker._icon;t&&(t.style.display="none",L.DomUtil.hasClass(t,"leaflet-edit-marker-selected")?(L.DomUtil.removeClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,-4)):(L.Dom
vendor: 13,368 bytes, line 38
38Util.addClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,4)),t.style.display="")},_offsetMarker:function(t,e){var i=parseInt(t.style.marginTop,10)-e,n=parseInt(t.style.marginLeft,10)-e;t.style.marginTop=i+"px",t.style.marginLeft=n+"px"}}),L.Marker.addInitHook(function(){L.Edit.Marker&&(this.editing=new L.Edit.Marker(this),this.options.editable&&this.editing.enable())}),L.Edit=L.Edit||{},L.Edit.Poly=L.Handler.extend({initialize:function(t){this.latlngs=[t._latlngs],t._holes&&(this.latlngs=this.latlngs.concat(t._holes)),this._poly=t,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(t){for(var e=0;e<this._verticesHandlers.length;e++)t(this._verticesHandlers[e])},addHooks:function(){this._initHandlers(),this._eachVertexHandler(function(t){t.addHooks()})},removeHooks:function(){this._eachVertexHandler(function(t){t.removeHooks()})},updateMarkers:function(){this._eachVertexHandler(function(t){t.updateMarkers()})},_initHandlers:function(){this._verticesHandlers=[];for(var t=0;t<this.latlngs.length;t++)this._verticesHandlers.push(new L.Edit.PolyVerticesEdit(this._poly,this.latlngs[t],this._poly.options.poly))},_updateLatLngs:function(t){this.latlngs=[t.layer._latlngs],t.layer._holes&&(this.latlngs=this.latlngs.concat(t.layer._holes))}}),L.Edit.PolyVerticesEdit=L.Handler.extend({options:{icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),drawError:{color:"#b00b00",timeout:1e3}},initialize:function(t,e,i){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this._poly=t,i&&i.drawError&&(i.drawError=L.Util.extend({},this.options.drawError,i.drawError)),this._latlngs=e,L.setOptions(this,i)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._latlngs)?this._latlngs:this._latlngs[0]:this._latlngs},addHooks:function(){var t=this._poly,e=t._path;t instanceof L.Polygon||(t.options.fill=!1,t.options.editing&&(t.options.editing.fill=!1)),e&&t.options.editing&&t.options.editing.className&&(t.options.original.className&&t.options.original.className.split(" ").forEach(function(t){L.DomUtil.removeClass(e,t)}),t.options.editing.className.split(" ").forEach(function(t){L.DomUtil.addClass(e,t)})),t.setStyle(t.options.editing),this._poly._map&&(this._map=this._poly._map,this._markerGroup||this._initMarkers(),this._poly._map.addLayer(this._markerGroup))},removeHooks:function(){var t=this._poly,e=t._path;e&&t.options.editing&&t.options.editing.className&&(t.options.editing.className.split(" ").forEach(function(t){L.DomUtil.removeClass(e,t)}),t.options.original.className&&t.options.original.className.split(" ").forEach(function(t){L.DomUtil.addClass(e,t)})),t.setStyle(t.options.original),t._map&&(t._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers)},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new L.LayerGroup),this._markers=[];var t,e,i,n,o,r,a=this._defaultShape();for(t=0,i=a.length;t<i;t++)(n=this._createMarker(a[t],t)).on("click",this._onMarkerClick,this),n.on("contextmenu",this._onContextMenu,this),this._markers.push(n);for(t=0,e=i-1;t<i;e=t++)(0!==t||L.Polygon&&this._poly instanceof L.Polygon)&&(o=this._markers[e],r=this._markers[t],this._createMiddleMarker(o,r),this._updatePrevNext(o,r))},_createMarker:function(t,e){var i=new L.Marker.Touch(t,{draggable:!0,icon:this.options.icon});return i._origLatLng=t,i._index=e,i.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._fireEdit,this).on("touchmove",this._onTouchMove,this).on("touchend",this._fireEdit,this).on("MSPointerMove",this._onTouchMove,this).on("MSPointerUp",this._fireEdit,this),this._markerGroup.addLayer(i),i},_onMarkerDragStart:function(){this._poly.fire("editstart")},_spliceLatLngs:function(){var t=this._defaultShape(),e=[].splice.apply(t,arguments);return this._poly._convertLatLngs(t,!0),this._poly.redraw(),e},_removeMarker:function(t){var e=t._index;this._markerGroup.removeLayer(t),this._markers.splice(e,1),this._spliceLatLngs(e,1),this._updateIndexes(e,-1),t.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._fireEdit,this).off("touchmove",this._onMarkerDrag,this).off("touchend",this._fireEdit,this).off("click",this._onMarkerClick,this).off("MSPointerMove",this._onTouchMove,this).off("MSPointerUp",this._fireEdit,this)},_fireEdit:function(){this._poly.edited=!0,this._poly.fire("edit"),this._poly._map.fire(L.Draw.Event.EDITVERTEX,{layers:this._markerGroup,poly:this._poly})},_onMarkerDrag:function(t){var e=t.target,i=this._poly,n=L.LatLngUtil.cloneLatLng(e._origLatLng);if(L.extend(e._origLatLng,e._latlng),i.options.poly){var o=i._map._editTooltip;if(!i.options.poly.allowIntersection&&i.intersects()){L.extend(e._origLatLng,n),e.setLatLng(n);var r=i.options.color;i.setStyle({color:this.options.drawError.color}),o&&o.updateContent({text:L.drawLocal.draw.handlers.polyline.error}),setTimeout(function(){i.setStyle({color:r}),o&&o.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext})},1e3)}}e._middleLeft&&e._middleLeft.setLatLng(this._getMiddleLatLng(e._prev,e)),e._middleRight&&e._middleRight.setLatLng(this._getMiddleLatLng(e,e._next)),this._poly._bounds._southWest=L.latLng(1/0,1/0),this._poly._bounds._northEast=L.latLng(-1/0,-1/0);var a=this._poly.getLatLngs();this._poly._convertLatLngs(a,!0),this._poly.redraw(),this._poly.fire("editdrag")},_onMarkerClick:function(t){var e=L.Polygon&&this._poly instanceof L.Polygon?4:3,i=t.target;this._defaultShape().length<e||(this._removeMarker(i),this._updatePrevNext(i._prev,i._next),i._middleLeft&&this._markerGroup.removeLayer(i._middleLeft),i._middleRight&&this._markerGroup.removeLayer(i._middleRight),i._prev&&i._next?this._createMiddleMarker(i._prev,i._next):i._prev?i._next||(i._prev._middleRight=null):i._next._middleLeft=null,this._fireEdit())},_onContextMenu:function(t){var e=t.target;this._poly,this._poly._map.fire(L.Draw.Event.MARKERCONTEXT,{marker:e,layers:this._markerGroup,poly:this._poly}),L.DomEvent.stopPropagation},_onTouchMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent.touches[0]),i=this._map.layerPointToLatLng(e),n=t.target;L.extend(n._origLatLng,i),n._middleLeft&&n._middleLeft.setLatLng(this._getMiddleLatLng(n._prev,n)),n._middleRight&&n._middleRight.setLatLng(this._getMiddleLatLng(n,n._next)),this._poly.redraw(),this.updateMarkers()},_updateIndexes:function(t,e){this._markerGroup.eachLayer(function(i){i._index>t&&(i._index+=e)})},_createMiddleMarker:function(t,e){var i,n,o,r=this._getMiddleLatLng(t,e),a=this._createMarker(r);a.setOpacity(.6),t._middleRight=e._middleLeft=a,n=function(){a.off("touchmove",n,this);var o=e._index;a._index=o,a.off("click",i,this).on("click",this._onMarkerClick,this),r.lat=a.getLatLng().lat,r.lng=a.getLatLng().lng,this._spliceLatLngs(o,0,r),this._markers.splice(o,0,a),a.setOpacity(1),this._updateIndexes(o,1),e._index++,this._updatePrevNext(t,a),this._updatePrevNext(a,e),this._poly.fire("editstart")},o=function(){a.off("dragstart",n,this),a.off("dragend",o,this),a.off("touchmove",n,this),this._createMiddleMarker(t,a),this._createMiddleMarker(a,e)},i=function(){n.call(this),o.call(this),this._fireEdit()},a.on("click",i,this).on("dragstart",n,this).on("dragend",o,this).on("touchmove",n,this),this._markerGroup.addLayer(a)},_updatePrevNext:function(t,e){t&&(t._next=e),e&&(e._prev=t)},_getMiddleLatLng:function(t,e){var i=this._poly._map,n=i.project(t.getLatLng()),o=i.project(e.getLatLng());return i.unproject(n._add(o)._divideBy(2))}}),L.Polyline.addInitHook(function(){this.editing||(L.Edit.Poly&&(this.editing=new L.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()}))}),L.Edit=L.Edit||{},L.Edit.SimpleShape=L.Handler.extend({options:{moveIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(t,e){L.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=t,L.Util.setOptions(this,e)},addHooks:function(){var t=this._shape;this._shape._map&&(this._map=this._shape._map,t.setStyle(t.options.editing),t._map&&(this._map=t._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var t=this._shape;if(t.setStyle(t.options.original),t._map){this._unbindMarker(this._moveMarker);for(var e=0,i=this._resizeMarkers.length;e<i;e++)this._unbindMarker(this._resizeMarkers[e]);this._resizeMarkers=null,this._map.removeLayer(this._markerGroup),delete this._markerGroup}this._map=null},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new L.LayerGroup),this._createMoveMarker(),this._createResizeMarker()},_createMoveMarker:function(){},_createResizeMarker:function(){},_createMarker:function(t,e){var i=new L.Marker.Touch(t,{draggable:!0,icon:e,zIndexOffset:10});return this._bindMarker(i),this._markerGroup.addLayer(i),i},_bindMarker:function(t){t.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._onMarkerDragEnd,this).on("touchstart",this._onTouchStart,this).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onTouchEnd,this).on("MSPointerUp",this._onTouchEnd,this)},_unbindMarker:function(t){t.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._onMarkerDragEnd,this).off("touchstart",this._onTouchStart,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onTouchEnd,this).off("MSPointerUp",this._onTouchEnd,this)},_onMarkerDragStart:function(t){t.target.setOpacity(0),this._shape.fire("editstart")},_fireEdit:function(){this._shape.edited=!0,this._shape.fire("edit")},_onMarkerDrag:function(t){var e=t.target,i=e.getLatLng();e===this._moveMarker?this._move(i):this._resize(i),this._shape.redraw(),this._shape.fire("editdrag")},_onMarkerDragEnd:function(t){t.target.setOpacity(1),this._fireEdit()},_onTouchStart:function(t){if(L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,t),"function"==typeof this._getCorners){var e=this._getCorners(),i=t.target,n=i._cornerIndex;i.setOpacity(0),this._oppositeCorner=e[(n+2)%4],this._toggleCornerMarkers(0,n)}this._shape.fire("editstart")},_onTouchMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent.touches[0]),i=this._map.layerPointToLatLng(e);return t.target===this._moveMarker?this._move(i):this._resize(i),this._shape.redraw(),!1},_onTouchEnd:function(t){t.target.setOpacity(1),this.updateMarkers(),this._fireEdit()},_move:function(){},_resize:function(){}}),L.Edit=L.Edit||{},L.Edit.Rectangle=L.Edit.SimpleShape.extend({_createMoveMarker:function(){var t=this._shape.getBounds().getCenter();this._moveMarker=this._createMarker(t,this.options.moveIcon)},_createResizeMarker:function(){var t=this._getCorners();this._resizeMarkers=[];for(var e=0,i=t.length;e<i;e++)this._resizeMarkers.push(this._createMarker(t[e],this.options.resizeIcon)),this._resizeMarkers[e]._cornerIndex=e},_onMarkerDragStart:function(t){L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,t);var e=this._getCorners(),i=t.target._cornerIndex;this._oppositeCorner=e[(i+2)%4],this._toggleCornerMarkers(0,i)},_onMarkerDragEnd:function(t){var e,i=t.target;i===this._moveMarker&&(e=this._shape.getBounds().getCenter(),i.setLatLng(e)),this._toggleCornerMarkers(1),this._repositionCornerMarkers(),L.Edit.SimpleShape.prototype._onMarkerDragEnd.call(this,t)},_move:function(t){for(var e,i=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),n=this._shape.getBounds().getCenter(),o=[],r=0,a=i.length;r<a;r++)e=[i[r].lat-n.lat,i[r].lng-n.lng],o.push([t.lat+e[0],t.lng+e[1]]);this._shape.setLatLngs(o),this._repositionCornerMarkers(),this._map.fire(L.Draw.Event.EDITMOVE,{layer:this._shape})},_resize:function(t){var e;this._shape.setBounds(L.latLngBounds(t,this._oppositeCorner)),e=this._shape.getBounds(),this._moveMarker.setLatLng(e.getCenter()),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})},_getCorners:function(){var t=this._shape.getBounds();return[t.getNorthWest(),t.getNorthEast(),t.getSouthEast(),t.getSouthWest
vendor: 13,055 bytes, line 38
38()]},_toggleCornerMarkers:function(t){for(var e=0,i=this._resizeMarkers.length;e<i;e++)this._resizeMarkers[e].setOpacity(t)},_repositionCornerMarkers:function(){for(var t=this._getCorners(),e=0,i=this._resizeMarkers.length;e<i;e++)this._resizeMarkers[e].setLatLng(t[e])}}),L.Rectangle.addInitHook(function(){L.Edit.Rectangle&&(this.editing=new L.Edit.Rectangle(this),this.options.editable&&this.editing.enable())}),L.Edit=L.Edit||{},L.Edit.CircleMarker=L.Edit.SimpleShape.extend({_createMoveMarker:function(){var t=this._shape.getLatLng();this._moveMarker=this._createMarker(t,this.options.moveIcon)},_createResizeMarker:function(){this._resizeMarkers=[]},_move:function(t){if(this._resizeMarkers.length){var e=this._getResizeMarkerPoint(t);this._resizeMarkers[0].setLatLng(e)}this._shape.setLatLng(t),this._map.fire(L.Draw.Event.EDITMOVE,{layer:this._shape})}}),L.CircleMarker.addInitHook(function(){L.Edit.CircleMarker&&(this.editing=new L.Edit.CircleMarker(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()})}),L.Edit=L.Edit||{},L.Edit.Circle=L.Edit.CircleMarker.extend({_createResizeMarker:function(){var t=this._shape.getLatLng(),e=this._getResizeMarkerPoint(t);this._resizeMarkers=[],this._resizeMarkers.push(this._createMarker(e,this.options.resizeIcon))},_getResizeMarkerPoint:function(t){var e=this._shape._radius*Math.cos(Math.PI/4),i=this._map.project(t);return this._map.unproject([i.x+e,i.y-e])},_resize:function(t){var e=this._moveMarker.getLatLng();L.GeometryUtil.isVersion07x()?radius=e.distanceTo(t):radius=this._map.distance(e,t),this._shape.setRadius(radius),this._map.editTooltip&&this._map._editTooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.subtext+"<br />"+L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})}}),L.Circle.addInitHook(function(){L.Edit.Circle&&(this.editing=new L.Edit.Circle(this),this.options.editable&&this.editing.enable())}),L.Map.mergeOptions({touchExtend:!0}),L.Map.TouchExtend=L.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane},addHooks:function(){L.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){L.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(t,e){var i={};if(void 0!==t.touches){if(!t.touches.length)return;i=t.touches[0]}else{if("touch"!==t.pointerType)return;if(i=t,!this._filterClick(t))return}var n=this._map.mouseEventToContainerPoint(i),o=this._map.mouseEventToLayerPoint(i),r=this._map.layerPointToLatLng(o);this._map.fire(e,{latlng:r,layerPoint:o,containerPoint:n,pageX:i.pageX,pageY:i.pageY,originalEvent:t})},_filterClick:function(t){var e=t.timeStamp||t.originalEvent.timeStamp,i=L.DomEvent._lastClick&&e-L.DomEvent._lastClick;return i&&i>100&&i<500||t.target._simulatedClick&&!t._simulated?(L.DomEvent.stop(t),!1):(L.DomEvent._lastClick=e,!0)},_onTouchStart:function(t){this._map._loaded&&this._touchEvent(t,"touchstart")},_onTouchEnd:function(t){this._map._loaded&&this._touchEvent(t,"touchend")},_onTouchCancel:function(t){if(this._map._loaded){var e="touchcancel";this._detectIE()&&(e="pointercancel"),this._touchEvent(t,e)}},_onTouchLeave:function(t){this._map._loaded&&this._touchEvent(t,"touchleave")},_onTouchMove:function(t){this._map._loaded&&this._touchEvent(t,"touchmove")},_detectIE:function(){var e=t.navigator.userAgent,i=e.indexOf("MSIE ");if(i>0)return parseInt(e.substring(i+5,e.indexOf(".",i)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var o=e.indexOf("Edge/");return o>0&&parseInt(e.substring(o+5,e.indexOf(".",o)),10)}}),L.Map.addInitHook("addHandler","touchExtend",L.Map.TouchExtend),L.Marker.Touch=L.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?L.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];this._detectIE?e.concat(["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]):e.concat(["touchcancel"]),L.DomUtil.addClass(t,"leaflet-clickable"),L.DomEvent.on(t,"click",this._onMouseClick,this),L.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;i<e.length;i++)L.DomEvent.on(t,e[i],this._fireMouseEvent,this);L.Handler.MarkerDrag&&(this.dragging=new L.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_detectIE:function(){var e=t.navigator.userAgent,i=e.indexOf("MSIE ");if(i>0)return parseInt(e.substring(i+5,e.indexOf(".",i)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var o=e.indexOf("Edge/");return o>0&&parseInt(e.substring(o+5,e.indexOf(".",o)),10)}}),L.LatLngUtil={cloneLatLngs:function(t){for(var e=[],i=0,n=t.length;i<n;i++)Array.isArray(t[i])?e.push(L.LatLngUtil.cloneLatLngs(t[i])):e.push(this.cloneLatLng(t[i]));return e},cloneLatLng:function(t){return L.latLng(t.lat,t.lng)}},function(){var t={km:2,ha:2,m:0,mi:2,ac:2,yd:0,ft:0,nm:2};L.GeometryUtil=L.extend(L.GeometryUtil||{},{geodesicArea:function(t){var e,i,n=t.length,o=0,r=Math.PI/180;if(n>2){for(var a=0;a<n;a++)e=t[a],o+=((i=t[(a+1)%n]).lng-e.lng)*r*(2+Math.sin(e.lat*r)+Math.sin(i.lat*r));o=6378137*o*6378137/2}return Math.abs(o)},formattedNumber:function(t,e){var i=parseFloat(t).toFixed(e),n=L.drawLocal.format&&L.drawLocal.format.numeric,o=n&&n.delimiters,r=o&&o.thousands,a=o&&o.decimal;if(r||a){var s=i.split(".");i=r?s[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+r):s[0],a=a||".",s.length>1&&(i=i+a+s[1])}return i},readableArea:function(e,i,n){var o,r;return n=L.Util.extend({},t,n),i?(r=["ha","m"],type=typeof i,"string"===type?r=[i]:"boolean"!==type&&(r=i),o=e>=1e6&&-1!==r.indexOf("km")?L.GeometryUtil.formattedNumber(1e-6*e,n.km)+" km²":e>=1e4&&-1!==r.indexOf("ha")?L.GeometryUtil.formattedNumber(1e-4*e,n.ha)+" ha":L.GeometryUtil.formattedNumber(e,n.m)+" m²"):o=(e/=.836127)>=3097600?L.GeometryUtil.formattedNumber(e/3097600,n.mi)+" mi²":e>=4840?L.GeometryUtil.formattedNumber(e/4840,n.ac)+" acres":L.GeometryUtil.formattedNumber(e,n.yd)+" yd²",o},readableDistance:function(e,i,n,o,r){var a;switch(r=L.Util.extend({},t,r),i?"string"==typeof i?i:"metric":n?"feet":o?"nauticalMile":"yards"){case"metric":a=e>1e3?L.GeometryUtil.formattedNumber(e/1e3,r.km)+" km":L.GeometryUtil.formattedNumber(e,r.m)+" m";break;case"feet":e*=3.28083,a=L.GeometryUtil.formattedNumber(e,r.ft)+" ft";break;case"nauticalMile":e*=.53996,a=L.GeometryUtil.formattedNumber(e/1e3,r.nm)+" nm";break;default:a=(e*=1.09361)>1760?L.GeometryUtil.formattedNumber(e/1760,r.mi)+" miles":L.GeometryUtil.formattedNumber(e,r.yd)+" yd"}return a},isVersion07x:function(){var t=L.version.split(".");return 0===parseInt(t[0],10)&&7===parseInt(t[1],10)}})}(),L.Util.extend(L.LineUtil,{segmentsIntersect:function(t,e,i,n){return this._checkCounterclockwise(t,i,n)!==this._checkCounterclockwise(e,i,n)&&this._checkCounterclockwise(t,e,i)!==this._checkCounterclockwise(t,e,n)},_checkCounterclockwise:function(t,e,i){return(i.y-t.y)*(e.x-t.x)>(e.y-t.y)*(i.x-t.x)}}),L.Polyline.include({intersects:function(){var t,e,i,n=this._getProjectedPoints(),o=n?n.length:0;if(this._tooFewPointsForIntersection())return!1;for(t=o-1;t>=3;t--)if(e=n[t-1],i=n[t],this._lineSegmentsIntersectsRange(e,i,t-2))return!0;return!1},newLatLngIntersects:function(t,e){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(t),e)},newPointIntersects:function(t,e){var i=this._getProjectedPoints(),n=i?i.length:0,o=i?i[n-1]:null,r=n-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(o,t,r,e?1:0)},_tooFewPointsForIntersection:function(t){var e=this._getProjectedPoints(),i=e?e.length:0;return!e||(i+=t||0)<=3},_lineSegmentsIntersectsRange:function(t,e,i,n){var o,r,a=this._getProjectedPoints();n=n||0;for(var s=i;s>n;s--)if(o=a[s-1],r=a[s],L.LineUtil.segmentsIntersect(t,e,o,r))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var t=[],e=this._defaultShape(),i=0;i<e.length;i++)t.push(this._map.latLngToLayerPoint(e[i]));return t}}),L.Polygon.include({intersects:function(){var t,e,i,n,o=this._getProjectedPoints();return!this._tooFewPointsForIntersection()&&(!!L.Polyline.prototype.intersects.call(this)||(t=o.length,e=o[0],i=o[t-1],n=t-2,this._lineSegmentsIntersectsRange(i,e,n,1)))}}),L.Control.Draw=L.Control.extend({options:{position:"topleft",draw:{},edit:!1},initialize:function(t){if(L.version<"0.7")throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");var e;L.Control.prototype.initialize.call(this,t),this._toolbars={},L.DrawToolbar&&this.options.draw&&(e=new L.DrawToolbar(this.options.draw),this._toolbars[L.DrawToolbar.TYPE]=e,this._toolbars[L.DrawToolbar.TYPE].on("enable",this._toolbarEnabled,this)),L.EditToolbar&&this.options.edit&&(e=new L.EditToolbar(this.options.edit),this._toolbars[L.EditToolbar.TYPE]=e,this._toolbars[L.EditToolbar.TYPE].on("enable",this._toolbarEnabled,this)),L.toolbar=this},onAdd:function(t){var e,i=L.DomUtil.create("div","leaflet-draw"),n=!1;for(var o in this._toolbars)this._toolbars.hasOwnProperty(o)&&(e=this._toolbars[o].addToolbar(t))&&(n||(L.DomUtil.hasClass(e,"leaflet-draw-toolbar-top")||L.DomUtil.addClass(e.childNodes[0],"leaflet-draw-toolbar-top"),n=!0),i.appendChild(e));return i},onRemove:function(){for(var t in this._toolbars)this._toolbars.hasOwnProperty(t)&&this._toolbars[t].removeToolbar()},setDrawingOptions:function(t){for(var e in this._toolbars)this._toolbars[e]instanceof L.DrawToolbar&&this._toolbars[e].setOptions(t)},_toolbarEnabled:function(t){var e=t.target;for(var i in this._toolbars)this._toolbars[i]!==e&&this._toolbars[i].disable()}}),L.Map.mergeOptions({drawControlTooltips:!0,drawControl:!1}),L.Map.addInitHook(function(){this.options.drawControl&&(this.drawControl=new L.Control.Draw,this.addControl(this.drawControl))}),L.Toolbar=L.Class.extend({initialize:function(t){L.setOptions(this,t),this._modes={},this._actionButtons=[],this._activeMode=null;var e=L.version.split(".");1===parseInt(e[0],10)&&parseInt(e[1],10)>=2?L.Toolbar.include(L.Evented.prototype):L.Toolbar.include(L.Mixin.Events)},enabled:function(){return null!==this._activeMode},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(t){var e,i=L.DomUtil.create("div","leaflet-draw-section"),n=0,o=this._toolbarClass||"",r=this.getModeHandlers(t);for(this._toolbarContainer=L.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=t,e=0;e<r.length;e++)r[e].enabled&&this._initModeHandler(r[e].handler,this._toolbarContainer,n++,o,r[e].title);if(n)return this._lastButtonIndex=--n,this._actionsContainer=L.DomUtil.create("ul","leaflet-draw-actions"),i.appendChild(this._toolbarContainer),i.appendChild(this._actionsContainer),i},removeToolbar:function(){for(var t in this._modes)this._modes.hasOwnProperty(t)&&(this._disposeButton(this._modes[t].button,this._modes[t].handler.enable,this._modes[t].handler),this._modes[t].handler.disable(),this._modes[t].handler.off("enabled",this._handlerActivated,this).off("disabled",this._handlerDeactivated,this));this._modes={};for(var e=0,i=this._actionButtons.length;e<i;e++)this._disposeButton(this._actionButtons[e].button,this._actionButtons[e].callback,this);this._actionButtons=[],this._actionsContainer=null}
vendor: 4,266 bytes, line 38
38,_initModeHandler:function(t,e,i,n,o){var r=t.type;this._modes[r]={},this._modes[r].handler=t,this._modes[r].button=this._createButton({type:r,title:o,className:n+"-"+r,container:e,callback:this._modes[r].handler.enable,context:this._modes[r].handler}),this._modes[r].buttonIndex=i,this._modes[r].handler.on("enabled",this._handlerActivated,this).on("disabled",this._handlerDeactivated,this)},_detectIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!t.MSStream},_createButton:function(t){var e=L.DomUtil.create("a",t.className||"",t.container),i=L.DomUtil.create("span","sr-only",t.container);e.href="#",e.appendChild(i),t.title&&(e.title=t.title,i.innerHTML=t.title),t.text&&(e.innerHTML=t.text,i.innerHTML=t.text);var n=this._detectIOS()?"touchstart":"click";return L.DomEvent.on(e,"click",L.DomEvent.stopPropagation).on(e,"mousedown",L.DomEvent.stopPropagation).on(e,"dblclick",L.DomEvent.stopPropagation).on(e,"touchstart",L.DomEvent.stopPropagation).on(e,"click",L.DomEvent.preventDefault).on(e,n,t.callback,t.context),e},_disposeButton:function(t,e){var i=this._detectIOS()?"touchstart":"click";L.DomEvent.off(t,"click",L.DomEvent.stopPropagation).off(t,"mousedown",L.DomEvent.stopPropagation).off(t,"dblclick",L.DomEvent.stopPropagation).off(t,"touchstart",L.DomEvent.stopPropagation).off(t,"click",L.DomEvent.preventDefault).off(t,i,e)},_handlerActivated:function(t){this.disable(),this._activeMode=this._modes[t.handler],L.DomUtil.addClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._showActionsToolbar(),this.fire("enable")},_handlerDeactivated:function(){this._hideActionsToolbar(),L.DomUtil.removeClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._activeMode=null,this.fire("disable")},_createActions:function(t){var e,i,n,o,r=this._actionsContainer,a=this.getActions(t),s=a.length;for(i=0,n=this._actionButtons.length;i<n;i++)this._disposeButton(this._actionButtons[i].button,this._actionButtons[i].callback);for(this._actionButtons=[];r.firstChild;)r.removeChild(r.firstChild);for(var l=0;l<s;l++)"enabled"in a[l]&&!a[l].enabled||(e=L.DomUtil.create("li","",r),o=this._createButton({title:a[l].title,text:a[l].text,container:e,callback:a[l].callback,context:a[l].context}),this._actionButtons.push({button:o,callback:a[l].callback}))},_showActionsToolbar:function(){var t=this._activeMode.buttonIndex,e=this._lastButtonIndex,i=this._activeMode.button.offsetTop-1;this._createActions(this._activeMode.handler),this._actionsContainer.style.top=i+"px",0===t&&(L.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),L.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-top")),t===e&&(L.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),L.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-bottom")),this._actionsContainer.style.display="block",this._map.fire(L.Draw.Event.TOOLBAROPENED)},_hideActionsToolbar:function(){this._actionsContainer.style.display="none",L.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),L.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),L.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-top"),L.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-bottom"),this._map.fire(L.Draw.Event.TOOLBARCLOSED)}}),L.Draw=L.Draw||{},L.Draw.Tooltip=L.Class.extend({initialize:function(t){this._map=t,this._popupPane=t._panes.popupPane,this._visible=!1,this._container=t.options.drawControlTooltips?L.DomUtil.create("div","leaflet-draw-tooltip",this._popupPane):null,this._singleLineLabel=!1,this._map.on("mouseout",this._onMouseOut,this)},dispose:function(){this._map.off("mouseout",this._onMouseOut,this),this._container&&(this._popupPane.removeChild(this._container),this._container=null)},updateContent:function(t){return this._container?(t.subtext=t.subtext||"",0!==t.subtext.length||this._singleLineLabel?t.subtext.length>0&&this._singleLineLabel&&(L.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(L.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(t.subtext.length>0?'<span class="leaflet-draw-tooltip-subtext">
38'+t.subtext+"</span><br />":"")+"<span>"+t.text+"</span>",t.text||t.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(t){var e=this._map.latLngToLayerPoint(t),i=this._container;return this._container&&(this._visible&&(i.style.visibility="inherit"),L.DomUtil.setPosition(i,e)),this},showAsError:function(){return this._container&&L.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&L.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),L.DrawToolbar=L.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(t){for(var e in this.options)this.options.hasOwnProperty(e)&&t[e]&&(t[e]=L.extend({},this.options[e],t[e]));this._toolbarClass="leaflet-draw-draw",L.Toolbar.prototype.initialize.call(this,t)},getModeHandlers:function(t){return[{enabled:this.options.polyline,handler:new L.Draw.Polyline(t,this.options.polyline),title:L.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new L.Draw.Polygon(t,this.options.polygon),title:L.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new L.Draw.Rectangle(t,this.options.rectangle),title:L.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new L.Draw.Circle(t,this.options.circle),title:L.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new L.Draw.Marker(t,this.options.marker),title:L.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new L.Draw.CircleMarker(t,this.options.circlemarker),title:L.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(t){return[{enabled:t.completeShape,title:L.drawLocal.draw.toolbar.finish.title,text:L.drawLocal.draw.toolbar.finish.text,callback:t.completeShape,context:t},{enabled:t.deleteLastVertex,title:L.drawLocal.draw.toolbar.undo.title,text:L.drawLocal.draw.toolbar.undo.text,callback:t.deleteLastVertex,context:t},{title:L.drawLocal.draw.toolbar.actions.title,text:L.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(t){for(var e in L.setOptions(this,t),this._modes)this._modes.hasOwnProperty(e)&&t.hasOwnProperty(e)&&this._modes[e].handler.setOptions(t[e])}}),L.EditToolbar=L.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(t){t.edit&&(void 0===t.edit.selectedPathOptions&&(t.edit.selectedPathOptions=this.options.edit.selectedPathOptions),t.edit.selectedPathOptions=L.extend({},this.options.edit.selectedPathOptions,t.edit.selectedPathOptions)),t.remove&&(t.remove=L.extend({},this.options.remove,t.remove)),t.poly&&(t.poly=L.extend({},this.options.poly,t.poly)),this._toolbarClass="leaflet-draw-edit",L.Toolbar.prototype.initialize.call(this,t),this._selectedFeatureCount=0},getModeHandlers:function(t){var e=this.options.featureGroup;return[{enabled:this.options.edit,handler:new L.EditToolbar.Edit(t,{featureGroup:e,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:L.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new L.EditToolbar.Delete(t,{featureGroup:e}),title:L.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(t){var e=[{title:L.drawLocal.edit.toolbar.actions.save.title,text:L.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:L.drawLocal.edit.toolbar.actions.cancel.title,text:L.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return t.removeAllLayers&&e.push({title:L.drawLocal.edit.toolbar.actions.clearAll.title,text:L.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),e},addToolbar:function(t){var e=L.Toolbar.prototype.addToolbar.call(this,t);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),e},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),L.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),L.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var t,e=0!==this.options.featureGroup.getLayers().length;this.options.edit&&(t=this._modes[L.EditToolbar.Edit.TYPE].button,e?L.DomUtil.removeClass(t,"leaflet-disabled"):L.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",e?L.drawLocal.edit.toolbar.buttons.edit:L.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(t=this._modes[L.EditToolbar.Delete.TYPE].button,e?L.DomUtil.removeClass(t,"leaflet-disabled"):L.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",e?L.drawLocal.edit.toolbar.buttons.remove:L.drawLocal.edit.toolbar.buttons.removeDisabled))}}),L.EditToolbar.Edit=L.Handler.extend({statics:{TYPE:"edit"},initialize:function(t,e){if(L.Handler.prototype.initialize.call(this,t),L.setOptions(this,e),this._featureGroup=e.featureGroup,!(this._featureGroup instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=L.EditToolbar.Edit.TYPE;var i=L.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?L.EditToolbar.Edit.include(L.Evented.prototype):L.EditToolbar.Edit.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.t
vendor: 8,393 bytes, lines 38-43
38ype}),this._map.fire(L.Draw.Event.EDITSTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}),t._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer(function(t){this._revertLayer(t)},this)},save:function(){var t=new L.LayerGroup;this._featureGroup.eachLayer(function(e){e.edited&&(t.addLayer(e),e.edited=!1)}),this._map.fire(L.Draw.Event.EDITED,{layers:t})},_backupLayer:function(t){var e=L.Util.stamp(t);this._uneditedLayerProps[e]||(t instanceof L.Polyline||t instanceof L.Polygon||t instanceof L.Rectangle?this._uneditedLayerProps[e]={latlngs:L.LatLngUtil.cloneLatLngs(t.getLatLngs())}:t instanceof L.Circle?this._uneditedLayerProps[e]={latlng:L.LatLngUtil.cloneLatLng(t.getLatLng()),radius:t.getRadius()}:(t instanceof L.Marker||t instanceof L.CircleMarker)&&(this._uneditedLayerProps[e]={latlng:L.LatLngUtil.cloneLatLng(t.getLatLng())}))},_getTooltipText:function(){return{text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(t){var e=L.Util.stamp(t);t.edited=!1,this._uneditedLayerProps.hasOwnProperty(e)&&(t instanceof L.Polyline||t instanceof L.Polygon||t instanceof L.Rectangle?t.setLatLngs(this._uneditedLayerProps[e].latlngs):t instanceof L.Circle?(t.setLatLng(this._uneditedLayerProps[e].latlng),t.setRadius(this._uneditedLayerProps[e].radius)):(t instanceof L.Marker||t instanceof L.CircleMarker)&&t.setLatLng(this._uneditedLayerProps[e].latlng),t.fire("revert-edited",{layer:t}))},_enableLayerEdit:function(t){var e,i,n=t.layer||t.target||t;this._backupLayer(n),this.options.poly&&(i=L.Util.extend({},this.options.poly),n.options.poly=i),this.options.selectedPathOptions&&((e=L.Util.extend({},this.options.selectedPathOptions)).maintainColor&&(e.color=n.options.color,e.fillColor=n.options.fillColor),n.options.original=L.extend({},n.options),n.options.editing=e),n instanceof L.Marker?(n.editing&&n.editing.enable(),n.dragging.enable(),n.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):n.editing.enable()},_disableLayerEdit:function(t){var e=t.layer||t.target||t;e.edited=!1,e.editing&&e.editing.disable(),delete e.options.editing,delete e.options.original,this._selectedPathOptions&&(e instanceof L.Marker?this._toggleMarkerHighlight(e):(e.setStyle(e.options.previousOptions),delete e.options.previousOptions)),e instanceof L.Marker?(e.dragging.disable(),e.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):e.editing.disable()},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_onMarkerDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:e})},_onTouchMove:function(t){var e=t.originalEvent.changedTouches[0],i=this._map.mouseEventToLayerPoint(e),n=this._map.layerPointToLatLng(i);t.target.setLatLng(n)},_hasAvailableLayers:function(){return 0!==this._featureGroup.getLayers().length}}),L.EditToolbar.Delete=L.Handler.extend({statics:{TYPE:"remove"},initialize:function(t,e){if(L.Handler.prototype.initialize.call(this,t),L.Util.setOptions(this,e),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=L.EditToolbar.Delete.TYPE;var i=L.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?L.EditToolbar.Delete.include(L.Evented.prototype):L.EditToolbar.Delete.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DELETESTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new L.LayerGroup,this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer(function(t){this._deletableLayers.addLayer(t),t.fire("revert-deleted",{layer:t})},this)},save:function(){this._map.fire(L.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer(function(t){this._removeLayer({layer:t})},this),this.save()},_enableLayerDelete:function(t){(t.layer||t.target||t).on("click",this._removeLayer,this)},_disableLayerDelete:function(t){var e=t.layer||t.target||t;e.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(e)},_removeLayer:function(t){var e=t.layer||t.target||t;this._deletableLayers.removeLayer(e),this._deletedLayers.addLayer(e),e.fire("deleted")},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_hasAvailableLayers:function(){return 0!==this._deletableLayers.getLayers().length}})},5243:function(t,e){ 39/* @preserve 40 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com 41 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade 42 */ 43!function(t){"use strict";var e="1.9.4";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++)for(e in o=arguments[i])t[e]=o[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function o(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var r=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++r),t._leaflet_id}function s(t,e,i){var n,o,r,a;return a=function(){n=!1,o&&(r.apply(i,o),o=!1)},r=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(a,e),n=!0)},r}function l(t,e,i){var n=e[1],o=e[0],r=n-o;return t===n&&i?t:((t-o)%r+r)%r+o}function u(){return!1}function c(t,e){if(!1===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return h(t).split(/\s+/)}function f(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}
vendor: 10,549 bytes, line 43
43function p(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var _=/\{ *([\w_ -]+) *\}/g;function m(t,e){return t.replace(_,function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n})}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function g(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function E(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var T=0;function b(t){var e=+new Date,i=Math.max(0,16-(e-T));return T=e+i,window.setTimeout(t,i)}var w=window.requestAnimationFrame||E("RequestAnimationFrame")||b,I=window.cancelAnimationFrame||E("CancelAnimationFrame")||E("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,i){if(!i||w!==b)return w.call(window,o(t,e));t.call(e)}function x(t){t&&I.call(window,t)}var M={__proto__:null,extend:i,create:n,bind:o,get lastId(){return r},stamp:a,throttle:s,wrapNum:l,falseFn:u,formatNum:c,trim:h,splitWords:d,setOptions:f,getParamString:p,template:m,isArray:v,indexOf:g,emptyImageUrl:y,requestFn:w,cancelFn:I,requestAnimFrame:P,cancelAnimFrame:x};function k(){}function O(t){if("undefined"!=typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}k.extend=function(t){var e=function(){f(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=e.__super__=this.prototype,r=n(o);for(var a in r.constructor=e,e.prototype=r,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&i(e,t.statics),t.includes&&(O(t.includes),i.apply(null,[r].concat(t.includes))),i(r,t),delete r.statics,delete r.includes,r.options&&(r.options=o.options?n(o.options):{},i(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},e},k.include=function(t){var e=this.prototype.options;return i(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},k.mergeOptions=function(t){return i(this.prototype.options,t),this},k.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var S={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var o=0,r=(t=d(t)).length;o<r;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=d(t);for(var o=1===arguments.length,r=0,a=t.length;r<a;r++)o?this._off(t[r]):this._off(t[r],e,i)}else delete this._events;return this},_on:function(t,e,i,n){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var o={fn:e,ctx:i};n&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var n,o,r;if(this._events&&(n=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var a=this._listens(t,e,i);if(!1!==a){var s=n[a];this._firingCount&&(s.fn=u,this._events[t]=n=n.slice()),n.splice(a,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,r=n.length;o<r;o++)n[o].fn=u;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var a=0,s=r.length;a<s;a++){var l=r[a],u=l.fn;l.once&&this.off(t,u,l.ctx),u.call(l.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(n=!!e,o=void 0,i=void 0);var r=this._events&&this._events[t];if(r&&r.length&&!1!==this._listens(t,o,i))return!0;if(n)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,i,n))return!0;return!1},_listens:function(t,e,i){if(!this._events)return!1;var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var o=0,r=n.length;o<r;o++)if(n[o].fn===e&&n[o].ctx===i)return o;return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var o=0,r=(t=d(t)).length;o<r;o++)this._on(t[o],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};S.addEventListener=S.on,S.removeEventListener=S.clearAllEventListeners=S.off,S.addOneTimeEventListener=S.once,S.fireEvent=S.fire,S.hasEventListeners=S.listens;var D=k.extend(S);function R(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var A=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function C(t,e,i){return t instanceof R?t:v(t)?new R(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new R(t.x,t.y):new R(t,e,i)}function N(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function B(t,e){return!t||t instanceof N?t:new N(t,e)}function G(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function z(t,e){return t instanceof G?t:new G(t,e)}function F(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function U(t,e,i){return t instanceof F?t:v(t)&&"object"!=typeof t[0]?3===t.length?new F(t[0],t[1],t[2]):2===t.length?new F(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new F(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new F(t,e,i)}R.prototype={clone:function(){return new R(this.x,this.y)},add:function(t){return this.clone()._add(C(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(C(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new R(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new R(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=A(this.x),this.y=A(this.y),this},distanceTo:function(t){var e=(t=C(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=C(t)).x===this.x&&t.y===this.y},contains:function(t){return t=C(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},N.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof R||"number"==typeof t[0]||"x"in t)e=i=C(t);else if(e=(t=B(t)).min,i=t.max,!e||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone()),this},getCenter:function(t){return C((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return C(this.min.x,this.max.y)},getTopRight:function(){return C(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof R?C(t):B(t))instanceof N?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=B(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,a=o.y>=e.y&&n.y<=i.y;return r&&a},overlaps:function(t){t=B(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.x<i.x,a=o.y>e.y&&n.y<i.y;return r&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,o=Math.abs(e.y-i.y)*t;return B(C(e.x-n,e.y-o),C(i.x+n,i.y+o))},equals:function(t){return!!t&&(t=B(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},G.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof F)e=t,i=t;else{if(!(t instanceof G))return t?this.extend(U(t)||z(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new F(e.lat,e.lng),this._northEast=new F(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new G(new F(e.lat-n,e.lng-o),new F(i.lat+n,i.lng+o))},getCenter:function(){return new F((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new F(this.getNorth(),this.getWest())},getSouthEast:function(){return new F(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof F||"lat"in t?U(t):z(t);var e,i,n=this._southWest,o=this._northEast;
vendor: 2,213 bytes, line 43
43return t instanceof G?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=z(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,a=o.lng>=e.lng&&n.lng<=i.lng;return r&&a},overlaps:function(t){t=z(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.lat<i.lat,a=o.lng>e.lng&&n.lng<i.lng;return r&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=z(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},F.prototype={equals:function(t,e){return!!t&&(t=U(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return H.distance(this,U(t))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return z([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new F(this.lat,this.lng,this.alt)}};var j,V={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new N(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new F(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(0===n&&0===o)return t;
vendor: 8,736 bytes, line 43
43var r=t.getSouthWest(),a=t.getNorthEast();return new G(new F(r.lat-n,r.lng-o),new F(a.lat-n,a.lng-o))}},H=i({},V,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),s=r*r+Math.cos(n)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),Z=6378137,q={R:Z,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new R(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new F((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(j=Z*Math.PI,new N([-j,-j],[j,j]))};function W(t,e,i,n){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function Y(t,e,i,n){return new W(t,e,i,n)}W.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new R((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var X=i({},H,{code:"EPSG:3857",projection:q,transformation:function(){var t=.5/(Math.PI*q.R);return Y(t,.5,-t,.5)}()}),K=i({},X,{code:"EPSG:900913"});function Q(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t,e){var i,n,o,r,a,s,l="";for(i=0,o=t.length;i<o;i++){for(n=0,r=(a=t[i]).length;n<r;n++)l+=(n?"L":"M")+(s=a[n]).x+" "+s.y;l+=e?Gt.svg?"z":"x":""}return l||"M0 0"}var J,tt=document.documentElement.style,et="ActiveXObject"in window,it=et&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),ot=Bt("webkit"),rt=Bt("android"),at=Bt("android 2")||Bt("android 3"),st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),lt=rt&&Bt("Google")&&st<537&&!("AudioNode"in window),ut=!!window.opera,ct=!nt&&Bt("chrome"),ht=Bt("gecko")&&!ot&&!ut&&!et,dt=!ct&&Bt("safari"),ft=Bt("phantom"),pt="OTransition"in tt,_t=0===navigator.platform.indexOf("Win"),mt=et&&"transition"in tt,vt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!at,gt="MozPerspective"in tt,yt=!window.L_DISABLE_3D&&(mt||vt||gt)&&!pt&&!ft,Et="undefined"!=typeof orientation||Bt("mobile"),Lt=Et&&ot,Tt=Et&&vt,bt=!window.PointerEvent&&window.MSPointerEvent,wt=!(!window.PointerEvent&&!bt),It="ontouchstart"in window||!!window.TouchEvent,Pt=!window.L_NO_TOUCH&&(It||wt),xt=Et&&ut,Mt=Et&&ht,kt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ot=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",u,e),window.removeEventListener("testPassiveEventSupport",u,e)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Dt=!(!document.createElementNS||!Q("svg").createSVGRect),Rt=!!Dt&&((J=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(J.firstChild&&J.firstChild.namespaceURI)),At=!Dt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Ct=0===navigator.platform.indexOf("Mac"),Nt=0===navigator.platform.indexOf("Linux");function Bt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Gt={ie:et,ielt9:it,edge:nt,webkit:ot,android:rt,android23:at,androidStock:lt,opera:ut,chrome:ct,gecko:ht,safari:dt,phantom:ft,opera12:pt,win:_t,ie3d:mt,webkit3d:vt,gecko3d:gt,any3d:yt,mobile:Et,mobileWebkit:Lt,mobileWebkit3d:Tt,msPointer:bt,pointer:wt,touch:Pt,touchNative:It,mobileOpera:xt,mobileGecko:Mt,retina:kt,passiveEvents:Ot,canvas:St,svg:Dt,vml:At,inlineSvg:Rt,mac:Ct,linux:Nt},zt=Gt.msPointer?"MSPointerDown":"pointerdown",Ft=Gt.msPointer?"MSPointerMove":"pointermove",Ut=Gt.msPointer?"MSPointerUp":"pointerup",jt=Gt.msPointer?"MSPointerCancel":"pointercancel",Vt={touchstart:zt,touchmove:Ft,touchend:Ut,touchcancel:jt},Ht={touchstart:te,touchmove:Jt,touchend:Jt,touchcancel:Jt},Zt={},qt=!1;function Wt(t,e,i){return"touchstart"===e&&$t(),Ht[e]?(i=Ht[e].bind(this,i),t.addEventListener(Vt[e],i,!1),i):(console.warn("wrong event specified:",e),u)}function Yt(t,e,i){Vt[e]?t.removeEventListener(Vt[e],i,!1):console.warn("wrong event specified:",e)}function Xt(t){Zt[t.pointerId]=t}function Kt(t){Zt[t.pointerId]&&(Zt[t.pointerId]=t)}function Qt(t){delete Zt[t.pointerId]}function $t(){qt||(document.addEventListener(zt,Xt,!0),document.addEventListener(Ft,Kt,!0),document.addEventListener(Ut,Qt,!0),document.addEventListener(jt,Qt,!0),qt=!0)}function Jt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Zt)e.touches.push(Zt[i]);e.changedTouches=[e],t(e)}}function te(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Xe(e),Jt(t,e)}function ee(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var ie=200;function ne(t,e){t.addEventListener("dblclick",e);var i,n=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Qe(t);if(!o.some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})||o.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})){var r=Date.now();r-n<=ie?2===++i&&e(ee(t)):i=1,n=r}}}else i=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function oe(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var re,ae,se,le,ue,ce=xe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),he=xe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===he||"OTransition"===he?he+"End":"transitionend";function fe(t){return"string"==typeof t?document.getElementById(t):t}function pe(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function _e(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function me(t){var e=t.parentNode;e&&e.removeChild(t)}function ve(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ge(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ye(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Ee(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=we(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function Le(t,e){if(void 0!==t.classList)for(var i=d(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!Ee(t,e)){var r=we(t);be(t,(r?r+" ":"")+e)}}function Te(t,e){void 0!==t.classList?t.classList.remove(e):be(t,h((" "+we(t)+" ").replace(" "+e+" "," ")))}function be(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function we(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Ie(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Pe(t,e)}function Pe(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function xe(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function Me(t,e,i){var n=e||new R(0,0);t.style[ce]=(Gt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function ke(t,e){t._leaflet_pos=e,Gt.any3d?Me(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Oe(t){return t._leaflet_pos||new R(0,0)}if("onselectstart"in document)re=function(){ze(window,"selectstart",Xe)},ae=function(){Ue(window,"selectstart",Xe)};else{var Se=xe(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);re=function(){if(Se){var t=document.documentElement.style;se=t[Se],t[Se]="none"}},ae=function(){Se&&(document.documentElement.style[Se]=se,se=void 0)}}function De(){ze(window,"dragstart",Xe)}function Re(){Ue(window,"dragstart",Xe)}function Ae(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Ce(),le=t,ue=t.style.outlineStyle,t.style.outlineStyle="none",ze(window,"keydown",Ce))}function Ce(){le&&(le.style.outlineStyle=ue,le=void 0,ue=void 0,Ue(window,"keydown",Ce))}function Ne(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Be(t){var e=t.getBoundingClientRect();
vendor: 1,064 bytes, line 43
43return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ge={__proto__:null,TRANSFORM:ce,TRANSITION:he,TRANSITION_END:de,get:fe,getStyle:pe,create:_e,remove:me,empty:ve,toFront:ge,toBack:ye,hasClass:Ee,addClass:Le,removeClass:Te,setClass:be,getClass:we,setOpacity:Ie,testProp:xe,setTransform:Me,setPosition:ke,getPosition:Oe,get disableTextSelection(){return re},get enableTextSelection(){return ae},disableImageDrag:De,enableImageDrag:Re,preventOutline:Ae,restoreOutline:Ce,getSizedParentNode:Ne,getScale:Be};function ze(t,e,i,n){if(e&&"object"==typeof e)for(var o in e)He(t,o,e[o],i);else for(var r=0,a=(e=d(e)).length;r<a;r++)He(t,e[r],i,n);return this}var Fe="_leaflet_events";function Ue(t,e,i,n){if(1===arguments.length)je(t),delete t[Fe];else if(e&&"object"==typeof e)for(var o in e)Ze(t,o,e[o],i);else if(e=d(e),2===arguments.length)je(t,function(t){return-1!==g(e,t)});else for(var r=0,a=e.length;r<a;r++)Ze(t,e[r],i,n);return this}function je(t,e){for(var i in t[Fe]){var n=i.split(/\d/)[0];e&&!e(n)||Ze(t,n,null,null,i)}}
vendor: 56,352 bytes, line 43
43var Ve={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function He(t,e,i,n){var o=e+a(i)+(n?"_"+a(n):"");if(t[Fe]&&t[Fe][o])return this;var r=function(e){return i.call(n||t,e||window.event)},s=r;!Gt.touchNative&&Gt.pointer&&0===e.indexOf("touch")?r=Wt(t,e,r):Gt.touch&&"dblclick"===e?r=ne(t,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Ve[e]||e,r,!!Gt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(r=function(e){e=e||window.event,ei(t,e)&&s(e)},t.addEventListener(Ve[e],r,!1)):t.addEventListener(e,s,!1):t.attachEvent("on"+e,r),t[Fe]=t[Fe]||{},t[Fe][o]=r}function Ze(t,e,i,n,o){o=o||e+a(i)+(n?"_"+a(n):"");var r=t[Fe]&&t[Fe][o];if(!r)return this;!Gt.touchNative&&Gt.pointer&&0===e.indexOf("touch")?Yt(t,e,r):Gt.touch&&"dblclick"===e?oe(t,r):"removeEventListener"in t?t.removeEventListener(Ve[e]||e,r,!1):t.detachEvent("on"+e,r),t[Fe][o]=null}function qe(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function We(t){return He(t,"wheel",qe),this}function Ye(t){return ze(t,"mousedown touchstart dblclick contextmenu",qe),t._leaflet_disable_click=!0,this}function Xe(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ke(t){return Xe(t),qe(t),this}function Qe(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function $e(t,e){if(!e)return new R(t.clientX,t.clientY);var i=Be(e),n=i.boundingClientRect;return new R((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Je=Gt.linux&&Gt.chrome?window.devicePixelRatio:Gt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ti(t){return Gt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Je:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function ei(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var ii={__proto__:null,on:ze,off:Ue,stopPropagation:qe,disableScrollPropagation:We,disableClickPropagation:Ye,preventDefault:Xe,stop:Ke,getPropagationPath:Qe,getMousePosition:$e,getWheelDelta:ti,isExternalTarget:ei,addListener:ze,removeListener:Ue},ni=D.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Oe(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=P(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),ke(this._el,i),this.fire("step")},_complete:function(){x(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),oi=D.extend({options:{crs:X,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=f(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(U(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=he&&Gt.any3d&&!Gt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ze(this._proxy,de,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(U(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,n.pan&&n.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Gt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Gt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),r=(t instanceof R?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),a=this.containerPointToLatLng(o.add(r));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():z(t);var i=C(e.paddingTopLeft||e.padding||[0,0]),n=C(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var r=n.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),o),s=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(s).divideBy(2).add(r),o),zoom:o}},fitBounds:function(t,e){if(!(t=z(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,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,e){if(e=e||{},!(t=C(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ni,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){Le(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!Gt.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),a=this._zoom;t=U(t),e=void 0===e?a:e;var s=Math.max(r.x,r.y),l=s*this.getZoomScale(a,e),u=o.distanceTo(n)||1,c=1.42,h=c*c;function d(t){var e=(l*l-s*s+(t?-1:1)*h*h*u*u)/(2*(t?l:s)*h*u),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function _(t){return f(t)/p(t)}var m=d(0);function v(t){return s*(p(m)/p(m+c*t))}function g(t){return s*(p(m)*_(m+c*t)-f(m))/h}function y(t){return 1-Math.pow(1-t,1.5)}var E=Date.now(),L=(d(1)-m)/c,T=i.duration?1e3*i.duration:1e3*L*.8;function b(){var i=(Date.now()-E)/T,r=y(i)*L;i<=1?(this._flyToFrame=P(b,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy(g(r)/u)),a),this.getScaleZoom(s/v(r),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),b.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=z(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,z(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=C((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=C(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),a=this.getPixelBounds(),s=B([a.min.add(i),a.max.subtract(n)]),l=s.getSize();if(!s.contains(r)){this._enforcingBounds=!0;var u=r.subtract(s.getCenter()),c=s.extend(r).getSize().subtract(l);o.x+=u.x<0?-c.x:c.x,o.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),r=e.divideBy(2).round(),a=n.divideBy(2).round(),s=r.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new F(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var r={latlng:e,bounds:i,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(r[a]=t.coords[a]);this.fire("locationfound",r)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),me(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(x(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)me(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=_e("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new G(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=z(t),i=C(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(i),u=B(this.project(s,n),this.project(a,n)).getSize(),c=Gt.any3d?this.options.zoomSnap:1,h=l.x/u.x,d=l.y/u.y,f=e?Math.max(h,d):Math.min(h,d);return n=this.getScaleZoom(f,n),c&&(n=Math.round(n/(c/100))*(c/100),n=e?Math.ceil(n/c)*c:Math.floor(n/c)*c),Math.max(o,Math.min(r,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new R(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new N(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(U(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(C(t),e)},layerPointToLatLng:function(t){var e=C(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(U(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(U(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(z(t))},distance:function(t,e){return this.options.crs.distance(U(t),U(e))},containerPointToLayerPoint:function(t){return C(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return C(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(C(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(t)))},mouseEventToContainerPoint:function(t){return $e(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=fe(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");ze(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Gt.any3d,Le(t,"leaflet-container"+(Gt.touch?" leaflet-touch":"")+(Gt.retina?" leaflet-retina":"")+(Gt.ielt9?" leaflet-oldie":"")+(Gt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=pe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ke(this._mapPane,new R(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Le(t.markerPane,"leaflet-zoom-hide"),Le(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){ke(this._mapPane,new R(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return x(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ke(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?Ue:ze;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Gt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){x(this._resizeRequest),this._resizeRequest=P(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,s=!1;r;){if((i=this._targets[a(r)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(e,!0)){if(o&&!ei(r,t))break;if(n.push(i),o)break}if(r===this._container)break;r=r.parentNode}return n.length||s||o||!this.listens(e,!0)||(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&Ae(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var r=this._findEventTargets(t,e);if(n){for(var a=[],s=0;s<n.length;s++)n[s].listens(e,!0)&&a.push(n[s]);r=a.concat(r)}if(r.length){"contextmenu"===e&&Xe(t);var l=r[0],u={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(s=0;s<r.length;s++)if(r[s].fire(e,u,!0),u.originalEvent._stopped||!1===r[s].options.bubblingMouseEvents&&-1!==g(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Oe(this._mapPane)||new R(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return B([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),r=new N(n.subtract(o),n.add(o)),a=this._getBoundsOffset(r,i,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(n.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new N(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=B(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),r=n.max.subtract(t.max);return new R(this._rebound(o.x,-r.x),this._rebound(o.y,-r.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Gt.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Te(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=_e("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=ce,i=this._proxy.style[e];Me(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){me(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Me(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(P(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,Le(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Te(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ri(t,e){return new oi(t,e)}var ai=k.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return Le(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(me(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),si=function(t){return new ai(t)};oi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=_e("div",e+"control-container",this._container);function n(n,o){var r=e+n+" "+e+o;t[n+o]=_e("div",r,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)me(this._controlCorners[t]);me(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var li=ai.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in f(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return ai.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){Le(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(Le(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Te(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Te(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=_e("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Ye(e),We(e);var n=this._section=_e("section",t+"-list");i&&(this._map.on("click",this.collapse,this),ze(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=_e("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),ze(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Xe(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=_e("div",t+"-base",n),this._separator=_e("div",t+"-separator",n),this._overlaysList=_e("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(o(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ve(this._baseLayersList),ve(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+a(this),n),this._layerControlInputs.push(e),e.layerId=a(t.layer),ze(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("span");return i.appendChild(r),r.appendChild(e),r.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var r=i.length-1;r>=0;r--)t=i[r],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(r=0;r<o.length;r++)this._map.hasLayer(o[r])&&this._map.removeLayer(o[r]);for(r=0;r<n.length;r++)this._map.hasLayer(n[r])||this._map.addLayer(n[r]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,ze(t,"click",Xe),this.expand();var e=this;setTimeout(function(){Ue(t,"click",Xe),e._preventClick=!1})}}),ui=function(t,e,i){return new li(t,e,i)},ci=ai.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=_e("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var r=_e("a",i,n);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Ye(r),ze(r,"click",Ke),ze(r,"click",o,this),ze(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";Te(this._zoomInButton,e),Te(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(Le(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(Le(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});oi.mergeOptions({zoomControl:!0}),oi.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ci,this.addControl(this.zoomControl))});var hi=function(t){return new ci(t)},di=ai.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=_e("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=_e("div",e,i)),t.imperial&&(this._iScale=_e("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),fi=function(t){return new di(t)},pi='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',_i=ai.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Gt.inlineSvg?pi+" ":"")+"Leaflet</a>"},initialize:function(t){f(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=_e("div","leaflet-control-attribution"),Ye(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},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):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});oi.mergeOptions({attributionControl:!0}),oi.addInitHook(function(){this.options.attributionControl&&(new _i).addTo(this)});var mi=function(t){return new _i(t)};ai.Layers=li,ai.Zoom=ci,ai.Scale=di,ai.Attribution=_i,si.layers=ui,si.zoom=hi,si.scale=fi,si.attribution=mi;var vi=k.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});vi.addTo=function(t,e){return t.addHandler(e,this),this};var gi={Events:S},yi=Gt.touch?"touchstart mousedown":"mousedown",Ei=D.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){f(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(ze(this._dragStartTarget,yi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ei._dragging===this&&this.finishDrag(!0),Ue(this._dragStartTarget,yi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Ee(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)Ei._dragging===this&&this.finishDrag();else if(!(Ei._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Ei._dragging=this,this._preventOutline&&Ae(this._element),De(),re(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Ne(this._element);this._startPoint=new R(e.clientX,e.clientY),this._startPos=Oe(this._element),this._parentScale=Be(i);var n="mousedown"===t.type;ze(document,n?"mousemove":"touchmove",this._onMove,this),ze(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new R(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,Xe(t),this._moved||(this.fire("dragstart"),this._moved=!0,Le(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Le(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ke(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Te(document.body,"leaflet-dragging"),this._lastTarget&&(Te(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ue(document,"mousemove touchmove",this._onMove,this),Ue(document,"mouseup touchend touchcancel",this._onUp,this),Re(),ae();var e=this._moved&&this._moving;this._moving=!1,Ei._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Li(t,e,i){var n,o,r,a,s,l,u,c,h,d=[1,4,2,8];for(o=0,u=t.length;o<u;o++)t[o]._code=Ai(t[o],e);for(a=0;a<4;a++){for(c=d[a],n=[],o=0,r=(u=t.length)-1;o<u;r=o++)s=t[o],l=t[r],s._code&c?l._code&c||((h=Ri(l,s,c,e,i))._code=Ai(h,e),n.push(h)):(l._code&c&&((h=Ri(l,s,c,e,i))._code=Ai(h,e),n.push(h)),n.push(s));t=n}return t}function Ti(t,e){var i,n,o,r,a,s,l,u,c;if(!t||0===t.length)throw new Error("latlngs not passed");Bi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=U([0,0]),d=z(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(h=bi(t));var f=t.length,p=[];for(i=0;i<f;i++){var _=U(t[i]);p.push(e.project(U([_.lat-h.lat,_.lng-h.lng])))}for(s=l=u=0,i=0,n=f-1;i<f;n=i++)o=p[i],r=p[n],a=o.y*r.x-r.y*o.x,l+=(o.x+r.x)*a,u+=(o.y+r.y)*a,s+=3*a;c=0===s?p[0]:[l/s,u/s];var m=e.unproject(C(c));return U([m.lat+h.lat,m.lng+h.lng])}function bi(t){for(var e=0,i=0,n=0,o=0;o<t.length;o++){var r=U(t[o]);e+=r.lat,i+=r.lng,n++}return U([e/n,i/n])}var wi,Ii={__proto__:null,clipPolygon:Li,polygonCenter:Ti,centroid:bi};function Pi(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=ki(t=Si(t,i),i)}function xi(t,e,i){return Math.sqrt(Ni(t,e,i,!0))}function Mi(t,e,i){return Ni(t,e,i)}function ki(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,Oi(t,n,e,0,i-1);var o,r=[];for(o=0;o<i;o++)n[o]&&r.push(t[o]);return r}function Oi(t,e,i,n,o){var r,a,s,l=0;for(a=n+1;a<=o-1;a++)(s=Ni(t[a],t[n],t[o],!0))>l&&(r=a,l=s);l>i&&(e[r]=1,Oi(t,e,i,n,r),Oi(t,e,i,r,o))}function Si(t,e){for(var i=[t[0]],n=1,o=0,r=t.length;n<r;n++)Ci(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<r-1&&i.push(t[r-1]),i}function Di(t,e,i,n,o){var r,a,s,l=n?wi:Ai(t,i),u=Ai(e,i);for(wi=u;;){if(!(l|u))return[t,e];if(l&u)return!1;s=Ai(a=Ri(t,e,r=l||u,i,o),i),r===l?(t=a,l=s):(e=a,u=s)}}function Ri(t,e,i,n,o){var r,a,s=e.x-t.x,l=e.y-t.y,u=n.min,c=n.max;return 8&i?(r=t.x+s*(c.y-t.y)/l,a=c.y):4&i?(r=t.x+s*(u.y-t.y)/l,a=u.y):2&i?(r=c.x,a=t.y+l*(c.x-t.x)/s):1&i&&(r=u.x,a=t.y+l*(u.x-t.x)/s),new R(r,a,o)}function Ai(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function Ci(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Ni(t,e,i,n){var o,r=e.x,a=e.y,s=i.x-r,l=i.y-a,u=s*s+l*l;return u>0&&((o=((t.x-r)*s+(t.y-a)*l)/u)>1?(r=i.x,a=i.y):o>0&&(r+=s*o,a+=l*o)),s=t.x-r,l=t.y-a,n?s*s+l*l:new R(r,a)}function Bi(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Gi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Bi(t)}function zi(t,e){var i,n,o,r,a,s,l,u;if(!t||0===t.length)throw new Error("latlngs not passed");Bi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=U([0,0]),h=z(t);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(c=bi(t));var d=t.length,f=[];for(i=0;i<d;i++){var p=U(t[i]);f.push(e.project(U([p.lat-c.lat,p.lng-c.lng])))}for(i=0,n=0;i<d-1;i++)n+=f[i].distanceTo(f[i+1])/2;if(0===n)u=f[0];else for(i=0,r=0;i<d-1;i++)if(a=f[i],s=f[i+1],(r+=o=a.distanceTo(s))>n){l=(r-n)/o,u=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}var _=e.unproject(C(u));return U([_.lat+c.lat,_.lng+c.lng])}var Fi={__proto__:null,simplify:Pi,pointToSegmentDistance:xi,closestPointOnSegment:Mi,clipSegment:Di,_getEdgeIntersection:Ri,_getBitCode:Ai,_sqClosestPointOnSegment:Ni,isFlat:Bi,_flat:Gi,polylineCenter:zi},Ui={project:function(t){return new R(t.lng,t.lat)},unproject:function(t){return new F(t.y,t.x)},bounds:new N([-180,-90],[180,90])},ji={R:6378137,R_MINOR:6356752.314245179,bounds:new N([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),a=r*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-a)/(1+a),r/2);return n=-i*Math.log(Math.max(s,1e-10)),new R(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),a=Math.exp(-t.y/n),s=Math.PI/2-2*Math.atan(a),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)e=r*Math.sin(s),e=Math.pow((1-e)/(1+e),r/2),s+=u=Math.PI/2-2*Math.atan(a*e)-s;return new F(s*i,t.x*i/n)}},Vi={__proto__:null,LonLat:Ui,Mercator:ji,SphericalMercator:q},Hi=i({},H,{code:"EPSG:3395",projection:ji,transformation:function(){var t=.5/(Math.PI*ji.R);return Y(t,.5,-t,.5)}()}),Zi=i({},H,{code:"EPSG:4326",projection:Ui,transformation:Y(1/180,1,-1/180,.5)}),qi=i({},V,{projection:Ui,transformation:Y(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});V.Earth=H,V.EPSG3395=Hi,V.EPSG3857=X,V.EPSG900913=K,V.EPSG4326=Zi,V.Simple=qi;var Wi=D.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});oi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return a(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?v(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Yi=Wi.extend({initialize:function(t,e){var i,n;if(f(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}}),Xi=function(t,e){return new Yi(t,e)},Ki=Yi.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Yi.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Yi.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new G;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Qi=function(t,e){return new Ki(t,e)},$i=k.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){f(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var o=C(n),r=C("shadow"===e&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Gt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Ji(t){return new $i(t)}var tn=$i.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof tn.imagePath&&(tn.imagePath=this._detectIconPath()),(this.options.imagePath||tn.imagePath)+$i.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=_e("div","leaflet-default-icon-path",document.body),e=pe(t,"background-image")||pe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}}),en=vi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Ei(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Le(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Te(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=Oe(e._icon),a=i.getPixelBounds(),s=i.getPixelOrigin(),l=B(a.min._subtract(s).add(o),a.max._subtract(s).subtract(o));if(!l.contains(r)){var u=C((Math.max(l.max.x,r.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(n);i.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),ke(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=P(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(x(this._panRequest),this._panRequest=P(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=Oe(e._icon),o=e._map.layerPointToLatLng(n);i&&ke(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){x(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),nn=Wi.extend({options:{icon:new tn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){f(this,e),this._latlng=U(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=U(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),Le(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ze(i,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(Le(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ue(this._icon,"focus",this._panOnFocus,this),me(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&me(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ke(this._icon,t),this._shadow&&ke(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(Le(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),en)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new en(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Ie(this._icon,t),this._shadow&&Ie(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?C(e.iconSize):C(0,0),n=e.iconAnchor?C(e.iconAnchor):C(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function on(t,e){return new nn(t,e)}var rn=Wi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,f
vendor: 1,337 bytes, line 43
43illRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return f(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),an=rn.extend({options:{fill:!0,radius:10},initialize:function(t,e){f(this,e),this._latlng=U(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=U(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}
vendor: 31,194 bytes, line 43
43,setStyle:function(t){var e=t&&t.radius||this._radius;return rn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new N(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function sn(t,e){return new an(t,e)}var ln=an.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),f(this,e),this._latlng=U(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new G(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:rn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===H.distance){var o=Math.PI/180,r=this._mRadius/H.R/o,a=i.project([e+r,t]),s=i.project([e-r,t]),l=a.add(s).divideBy(2),u=i.unproject(l).lat,c=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(u*o))/(Math.cos(e*o)*Math.cos(u*o)))/o;(isNaN(c)||0===c)&&(c=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-i.project([u,t-c]).x,this._radiusY=l.y-a.y}else{var h=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(h).x}this._updateBounds()}});function un(t,e,i){return new ln(t,e,i)}var cn=rn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){f(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,o=null,r=Ni,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],u=1,c=l.length;u<c;u++){var h=r(t,e=l[u-1],i=l[u],!0);h<n&&(n=h,o=r(t,e,i))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return zi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=U(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new G,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Bi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=Bi(t),n=0,o=t.length;n<o;n++)i?(e[n]=U(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new N;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new R(t,t);this._rawPxBounds&&(this._pxBounds=new N([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var n,o,r=t[0]instanceof F,a=t.length;if(r){for(o=[],n=0;n<a;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<a;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,n,o,r,a,s,l=this._parts;for(e=0,n=0,o=this._rings.length;e<o;e++)for(i=0,r=(s=this._rings[e]).length;i<r-1;i++)(a=Di(s[i],s[i+1],t,i,!0))&&(l[n]=l[n]||[],l[n].push(a[0]),a[1]===s[i+1]&&i!==r-2||(l[n].push(a[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Pi(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,r,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,r=this._parts.length;i<r;i++)for(n=0,o=(a=(s=this._parts[i]).length)-1;n<a;o=n++)if((e||0!==n)&&xi(t,s[o],s[n])<=l)return!0;return!1}});function hn(t,e){return new cn(t,e)}cn._flat=Gi;var dn=cn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ti(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=cn.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof F&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){cn.prototype._setLatLngs.call(this,t),Bi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Bi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new R(e,e);if(t=new N(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,r=this._rings.length;o<r;o++)(n=Li(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,r,a,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,s=this._parts.length;o<s;o++)for(r=0,a=(l=(e=this._parts[o]).length)-1;r<l;a=r++)i=e[r],n=e[a],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(u=!u);return u||cn.prototype._containsPoint.call(this,t,!0)}});function fn(t,e){return new dn(t,e)}var pn=Ki.extend({initialize:function(t,e){f(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=v(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var a=_n(t,r);return a?(a.feature=Tn(t),a.defaultOptions=a.options,this.resetStyle(a),r.onEachFeature&&r.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function _n(t,e){var i,n,o,r,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],u=e&&e.pointToLayer,c=e&&e.coordsToLatLng||vn;if(!s&&!a)return null;switch(a.type){case"Point":return mn(u,t,i=c(s),e);case"MultiPoint":for(o=0,r=s.length;o<r;o++)i=c(s[o]),l.push(mn(u,t,i,e));return new Ki(l);case"LineString":case"MultiLineString":return n=gn(s,"LineString"===a.type?0:1,c),new cn(n,e);case"Polygon":case"MultiPolygon":return n=gn(s,"Polygon"===a.type?1:2,c),new dn(n,e);case"GeometryCollection":for(o=0,r=a.geometries.length;o<r;o++){var h=_n({geometry:a.geometries[o],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new Ki(l);case"FeatureCollection":for(o=0,r=a.features.length;o<r;o++){var d=_n(a.features[o],e);d&&l.push(d)}return new Ki(l);default:throw new Error("Invalid GeoJSON object.")}}function mn(t,e,i,n){return t?t(e,i):new nn(i,n&&n.markersInheritOptions&&n)}function vn(t){return new F(t[1],t[0],t[2])}function gn(t,e,i){for(var n,o=[],r=0,a=t.length;r<a;r++)n=e?gn(t[r],e-1,i):(i||vn)(t[r]),o.push(n);return o}function yn(t,e){return void 0!==(t=U(t)).alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function En(t,e,i,n){for(var o=[],r=0,a=t.length;r<a;r++)o.push(e?En(t[r],Bi(t[r])?0:e-1,i,n):yn(t[r],n));return!e&&i&&o.length>0&&o.push(o[0].slice()),o}function Ln(t,e){return t.feature?i({},t.feature,{geometry:e}):Tn(e)}function Tn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var bn={toGeoJSON:function(t){return Ln(this,{type:"Point",coordinates:yn(this.getLatLng(),t)})}};function wn(t,e){return new pn(t,e)}nn.include(bn),ln.include(bn),an.include(bn),cn.include({toGeoJSON:function(t){var e=!Bi(this._latlngs);return Ln(this,{type:(e?"Multi":"")+"LineString",coordinates:En(this._latlngs,e?1:0,!1,t)})}}),dn.include({toGeoJSON:function(t){var e=!Bi(this._latlngs),i=e&&!Bi(this._latlngs[0]),n=En(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Ln(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Yi.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Ln(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer(function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var r=Tn(o);"FeatureCollection"===r.type?n.push.apply(n,r.features):n.push(r)}}}),i?Ln(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var In=wn,Pn=Wi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=z(e),f(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Le(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){me(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ge(this._image),this},bringToBack:function(){return this._map&&ye(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=z(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:_e("img");Le(e,"leaflet-image-layer"),this._zoomAnimated&&Le(e,"leaflet-zoom-animated"),this.options.className&&Le(e,this.options.className),e.onselectstart=u,e.onmousemove=u,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Me(this._image,i,e)},_reset:function(){var t=this._image,e=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ke(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){Ie(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),xn=function(t,e,i){return new Pn(t,e,i)},Mn=Pn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:_e("video");if(Le(e,"leaflet-image-layer"),this._zoomAnimated&&Le(e,"leaflet-zoom-animated"),this.options.className&&Le(e,this.options.className),e.onselectstart=u,e.onmousemove=u,e.onloadeddata=o(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],r=0;r<i.length;r++)n.push(i[r].src);this._url=i.length>0?n:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=_e("source");s.src=this._url[a],e.appendChild(s)}}}});function kn(t,e,i){return new Mn(t,e,i)}var On=Pn.extend({_initImage:function(){var t=this._image=this._url;Le(t,"leaflet-image-layer"),this._zoomAnimated&&Le(t,"leaflet-zoom-animated"),this.options.className&&Le(t,this.options.className),t.onselectstart=u,t.onmousemove=u}});function Sn(t,e,i){return new On(t,e,i)}var Dn=Wi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof F||v(t))?(this._latlng=U(t),f(this,e)):(f(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Ie(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Ie(this._container,1),this.bringToFront(),this.options.interactive&&(Le(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Ie(this._container,0),this._removeTimeout=setTimeout(o(me,void 0,this._container),200)):me(this._container),this.options.interactive&&(Te(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=U(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ge(this._container),this},bringToBack:function(){return this._map&&ye(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Ki){e=null;var i=this._source._layers;for(var n in i)if(i[n]._map){e=i[n];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=C(this.options.offset),i=this._getAnchor();this._zoomAnimated?ke(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});oi.include({_initOverlay:function(t,e,i,n){var o=e;return o instanceof t||(o=new t(n).setContent(e)),i&&o.setLatLng(i),o}}),Wi.include({_initOverlay:function(t,e,i,n){var o=i;return o instanceof t?(f(o,n),o._source=this):(o=e&&!n?e:new t(n,this)).setContent(i),o}});var Rn=Dn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Dn.prototype.openOn.call(this,t)},onAdd:function(t){Dn.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof rn||this._source.on("preclick",qe))},onRemove:function(t){Dn.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof rn||this._source.off("preclick",qe))},getEvents:function(){var t=Dn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=_e("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=_e("div",t+"-content-wrapper",e);if(this._contentNode=_e("div",t+"-content",i),Ye(e),We(this._contentNode),ze(e,"contextmenu",qe),this._tipContainer=_e("div",t+"-tip-container",e),this._tip=_e("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=_e("a",t+"-close-button",e);n.setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">×</span>',ze(n,"click",function(t){Xe(t),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&n>o?(e.height=o+"px",Le(t,r)):Te(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();ke(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(pe(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new R(this._containerLeft,-i-this._containerBottom);o._add(Oe(this._container));var r=t.layerPointToContainerPoint(o),a=C(this.options.autoPanPadding),s=C(this.options.autoPanPaddingTopLeft||a),l=C(this.options.autoPanPaddingBottomRight||a),u=t.getSize(),c=0,h=0;r.x+n+l.x>u.x&&(c=r.x+n-u.x+l.x),r.x-c-s.x<0&&(c=r.x-s.x),r.y+i+l.y>u.y&&(h=r.y+i-u.y+l.y),r.y-h-s.y<0&&(h=r.y-s.y),(c||h)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,h]))}},_getAnchor:function(){return C(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),An=function(t,e){return new Rn(t,e)};oi.mergeOptions({closePopupOnClick:!0}),oi.include({openPopup:function(t,e,i){return this._initOverlay(Rn,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Wi.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Rn,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Ki||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ke(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof rn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Cn=Dn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Dn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Dn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Dn.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=_e("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,r=n.latLngToContainerPoint(n.getCenter()),a=n.layerPointToContainerPoint(t),s=this.options.direction,l=o.offsetWidth,u=o.offsetHeight,c=C(this.options.offset),h=this._getAnchor();"top"===s?(e=l/2,i=u):"bottom"===s?(e=l/2,i=0):"center"===s?(e=l/2,i=u/2):"right"===s?(e=0,i=u/2):"left"===s?(e=l,i=u/2):a.x<r.x?(s="right",e=0,i=u/2):(s="left",e=l+2*(c.x+h.x),i=u/2),t=t.subtract(C(e,i,!0)).add(c).add(h),Te(o,"leaflet-tooltip-right"),Te(o,"leaflet-tooltip-left"),Te(o,"leaflet-tooltip-top"),Te(o,"leaflet-tooltip-bottom"),Le(o,"leaflet-tooltip-"+s),ke(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Ie(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return C(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Nn=function(t,e){return new Cn(t,e)};oi.include({openTooltip:function(t,e,i){return this._initOverlay(Cn,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Wi.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Cn,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Ki||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(ze(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),ze(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var Bn=$i.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(ve(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=C(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Gn(t){return new Bn(t)}$i.Default=tn;var zn=Wi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Gt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){f(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),me(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ge(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ye(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof R?t:new R(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),o=0,r=i.length;o<r;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Gt.ielt9){Ie(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var r=Math.min(1,(t-o.loaded)/200);Ie(o.el,r),r<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(x(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=_e("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(me(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=_e("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),u(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)me(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}
vendor: 5,037 bytes, line 43
43,_retainParent:function(t,e,i,n){var o=Math.floor(t/2),r=Math.floor(e/2),a=i-1,s=new R(+o,+r);s.z=+a;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),a>n&&this._retainParent(o,r,a,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var a=new R(o,r);a.z=i+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<n&&this._retainChildren(o,r,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var r=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!r||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();Gt.any3d?Me(t.el,o,n):ke(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*n);return new N(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),r=o.getCenter(),a=[],s=this.options.keepBuffer,l=new N(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new R(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var h=o.min.y;h<=o.max.y;h++)for(var d=o.min.x;d<=o.max.x;d++){var f=new R(d,h);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:a.push(f)}}if(a.sort(function(t,e){return t.distanceTo(r)-e.distanceTo(r)}),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var _=document.createDocumentFragment();for(d=0;d<a.length;d++)this._addTile(a[d],_);this._level.el.appendChild(_)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return z(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new G(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new R(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(me(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){Le(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,Gt.ielt9&&this.options.opacity<1&&Ie(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&P(o(this._tileReady,this,t,null,r)),ke(r,i),this._tiles[n]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})}
vendor: 6,026 bytes, line 43
43,_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(Ie(i.el,0),x(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(Le(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Gt.ielt9||!this._map._fadeAnimated?P(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new R(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Fn(t){return new zn(t)}var Un=zn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=f(this,e)).detectRetina&&Gt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return ze(i,"load",o(this._tileOnLoad,this,e,i)),ze(i,"error",o(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:Gt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return m(this._url,i(e,this.options))},_tileOnLoad:function(t,e){Gt.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=u,e.onerror=u,!e.complete)){e.src=y;var i=this._tiles[t].coords;me(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),zn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return zn.prototype._tileReady.call(this,t,e,i)}});function jn(t,e){return new Un(t,e)}var Vn=Un.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var r=(e=f(this,e)).detectRetina&&Gt.retina?2:1,a=this.getTileSize();n.width=a.x*r,n.height=a.y*r,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Un.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=B(i.project(e[0]),i.project(e[1])),o=n.min,r=n.max,a=(this._wmsVersion>=1.3&&this._crs===Zi?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),s=Un.prototype.getTileUrl.call(this,t);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function Hn(t,e){return new Vn(t,e)}Un.WMS=Vn,jn.wms=Hn;var Zn=Wi.extend({options:{padding:.1},initialize:function(t){f(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Le(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));Gt.any3d?Me(this._container,r,i):ke(this._container,r)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).roun
vendor: 5,439 bytes, line 43
43d();this._bounds=new N(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),qn=Zn.extend({options:{tolerance:0},getEvents:function(){var t=Zn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Zn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");ze(t,"mousemove",this._onMouseMove,this),ze(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ze(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){x(this._redrawRequest),delete this._ctx,me(this._container),Ue(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Zn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Gt.retina?2:1;ke(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Gt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Zn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),o=[];for(i=0;i<n.length;i++){if(e=Number(n[i]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||P(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new N,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,r,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),i=0;i<s;i++){for(n=0,o=a[i].length;n<o;n++)r=a[i][n],l[n?"lineTo":"moveTo"](r.x,r.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==o&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!==o&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(i=e);this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(Te(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,r=this._drawFirst;r;r=r.next)(i=r.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(Le(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}}
vendor: 17,526 bytes, line 43
43,_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;i&&(i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;n&&(n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Wn(t){return Gt.canvas?new qn(t):null}var Yn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Xn={_initContainer:function(){this._container=_e("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Zn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Yn("shape");Le(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Yn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;me(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Yn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=v(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=Yn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ge(t._container)},_bringToBack:function(t){ye(t._container)}},Kn=Gt.vml?Yn:Q,Qn=Zn.extend({_initContainer:function(){this._container=Kn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Kn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){me(this._container),Ue(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Zn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),ke(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Kn("path");t.options.className&&Le(e,t.options.className),t.options.interactive&&Le(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){me(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,$(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ge(t._path)},_bringToBack:function(t){ye(t._path)}});function $n(t){return Gt.svg||Gt.vml?new Qn(t):null}Gt.vml&&Qn.include(Xn),oi.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Wn(t)||$n(t)}});var Jn=dn.extend({initialize:function(t,e){dn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=z(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function to(t,e){return new Jn(t,e)}Qn.create=Kn,Qn.pointsToPath=$,pn.geometryToLayer=_n,pn.coordsToLatLng=vn,pn.coordsToLatLngs=gn,pn.latLngToCoords=yn,pn.latLngsToCoords=En,pn.getFeature=Ln,pn.asFeature=Tn,oi.mergeOptions({boxZoom:!0});var eo=vi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){ze(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ue(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){me(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),re(),De(),this._startPoint=this._map.mouseEventToContainerPoint(t),ze(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=_e("div","leaflet-zoom-box",this._container),Le(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),i=e.getSize();ke(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(me(this._box),Te(this._container,"leaflet-crosshair")),ae(),Re(),Ue(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new G(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});oi.addInitHook("addHandler","boxZoom",eo),oi.mergeOptions({doubleClickZoom:!0});var io=vi.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,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});oi.addInitHook("addHandler","doubleClickZoom",io),oi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var no=vi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Ei(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}Le(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Te(this._map._container,"leaflet-grab"),Te(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=z(this._map.options.maxBounds);this._offsetLimit=B(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,a=Math.abs(o+i)<Math.abs(r+i)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,s=o.multiplyBy(a/r),l=s.distanceTo([0,0]),u=Math.min(i.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),h=u/(i.inertiaDeceleration*a),d=c.multiplyBy(-h/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),P(function(){e.panBy(d,{duration:h,easeLinearity:a,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});oi.addInitHook("addHandler","dragging",no),oi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var oo=vi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),ze(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ue(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;e<i;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;e<i;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;e<i;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;e<i;e++)n[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;e<i;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;e<i;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){ze(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ue(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=C(e).multiplyBy(3)),n.options.maxBounds&&(e=n._limitOffset(C(e),n.options.maxBounds)),n.options.worldCopyJump){var o=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(e)));n.panTo(o)}else n.panBy(e)}else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Ke(t)}}});oi.addInitHook("addHandler","keyboard",oo),oi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ro=vi.extend({addHooks:function(){ze(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ue(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=ti(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),n),Ke(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,r=i?Math.ceil(o/i)*i:o,a=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});oi.addInitHook("addHandler","scrollWheelZoom",ro);var ao=600;oi.mergeOptions({tapHold:Gt.touchNative&&Gt.safari&&Gt.mobile,tapTolerance:15});var so=vi.extend({addHooks:function(){ze(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ue(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new R(e.clientX,e.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(ze(document,"touchend",Xe),ze(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),ao),ze(document,"touchend touchcancel contextmenu",this._cancel,this),ze(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Ue(document,"touchend",Xe),Ue(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Ue(document,"touchend touchcancel contextmenu",this._cancel,this),Ue(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new R(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});oi.addInitHook("addHandler","tapHold",so),oi.mergeOptions({touchZoom:Gt.touch,bounceAtZoomLimits:!0});var lo=vi.extend({addHooks:function(){Le(this._map._container,"leaflet-touch-zoom"),ze(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Te(this._map._container,"leaflet-touch-zoom"),Ue(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),ze(document,"touchmove",this._onTouchMove,this),ze(document,"touchend touchcancel",this._onTouchEnd,this),Xe(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),r
43=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var a=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),x(this._animRequest);var s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=P(s,this,!0),Xe(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,x(this._animRequest),Ue(document,"touchmove",this._onTouchMove,this),Ue(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});oi.addInitHook("addHandler","touchZoom",lo),oi.BoxZoom=eo,oi.DoubleClickZoom=io,oi.Drag=no,oi.Keyboard=oo,oi.ScrollWheelZoom=ro,oi.TapHold=so,oi.TouchZoom=lo,t.Bounds=N,t.Browser=Gt,t.CRS=V,t.Canvas=qn,t.Circle=ln,t.CircleMarker=an,t.Class=k,t.Control=ai,t.DivIcon=Bn,t.DivOverlay=Dn,t.DomEvent=ii,t.DomUtil=Ge,t.Draggable=Ei,t.Evented=D,t.FeatureGroup=Ki,t.GeoJSON=pn,t.GridLayer=zn,t.Handler=vi,t.Icon=$i,t.ImageOverlay=Pn,t.LatLng=F,t.LatLngBounds=G,t.Layer=Wi,t.LayerGroup=Yi,t.LineUtil=Fi,t.Map=oi,t.Marker=nn,t.Mixin=gi,t.Path=rn,t.Point=R,t.PolyUtil=Ii,t.Polygon=dn,t.Polyline=cn,t.Popup=Rn,t.PosAnimation=ni,t.Projection=Vi,t.Rectangle=Jn,t.Renderer=Zn,t.SVG=Qn,t.SVGOverlay=On,t.TileLayer=Un,t.Tooltip=Cn,t.Transformation=W,t.Util=M,t.VideoOverlay=Mn,t.bind=o,t.bounds=B,t.canvas=Wn,t.circle=un,t.circleMarker=sn,t.control=si,t.divIcon=Gn,t.extend=i,t.featureGroup=Qi,t.geoJSON=wn,t.geoJson=In,t.gridLayer=Fn,t.icon=Ji,t.imageOverlay=xn,t.latLng=U,t.latLngBounds=z,t.layerGroup=Xi,t.map=ri,t.marker=on,t.point=C,t.polygon=fn,t.polyline=hn,t.popup=An,t.rectangle=to,t.setOptions=f,t.stamp=a,t.svg=$n,t.svgOverlay=Sn,t.tileLayer=jn,t.tooltip=Nn,t.transformation=Y,t.version=e,t.videoOverlay=kn;var uo=window.L;t.noConflict=function(){return window.L=uo,this},window.L=t}(e)}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t=i(6136),e=i(521),n=i.n(e),o=i(8236),r=i.n(o),a=i(3863),s=i.n(a),l=i(3567),u=i.n(l);i(5243),i(1787),i(197),i(6031),i(2222),i(2619),i(4418),i(2811),i(1468),window.FilePond=t,window.FilePondPluginFileValidateType=n(),window.FilePondPluginFileValidateSize=r(),window.FilePondPluginImageTransform=s(),window.FilePondPluginImageResize=u()})()})();
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.