1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2/*! For license information please see index.js.LICENSE.txt */ 3(()=>{var e={540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1137:e=>{e.exports=function(e,t,n,r){var i=e[0],o=e[1],s=!1;void 0===n&&(n=0),void 0===r&&(r=t.length);for(var a=r-n,l=0,u=a-1;l<a;u=l++){var c=t[l+n][0],h=t[l+n][1],d=t[u+n][0],f=t[u+n][1];h>o!=f>o&&i<(d-c)*(o-h)/(f-h)+c&&(s=!s)}return s}},1247:(e,t,n)=>{"use strict";var r=n(9982),i=n(6540),o=n(961);function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}var l=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),g=Symbol.for("react.consumer"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var x=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var E=Symbol.for("react.memo_cache_sentinel"),S=Symbol.iterator;function C(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=S&&e[S]||e["@@iterator"])?e:null}var M=Symbol.for("react.client.reference");function k(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===M?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case c:return"Portal";case f:return"Profiler";case d:return"StrictMode";case v:return"Suspense";case _:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case m:return(e.displayName||"Context")+".Provider";case g:return(e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case b:return null!==(t=e.displayName||null)?t:k(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return k(e(t))}catch(e){}}return null}var T,P,O=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.assign;function R(e){if(void 0===T)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||"",P=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+T+e+P}var A=!1;function L(e,t){if(!e||A)return"";A=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
vendor: 5,061 bytes, line 3
3else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),s=o[0],a=o[1];if(s&&a){var l=s.split("\n"),u=a.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{A=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?R(n):""}function N(e){switch(e.tag){case 26:case 27:case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 15:return L(e.type,!1);case 11:return L(e.type.render,!1);case 1:return L(e.type,!0);default:return""}}function D(e){try{var t="";do{t+=N(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function F(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function j(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function B(e){if(F(e)!==e)throw Error(s(188))}function z(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=z(e)))return t;e=e.sibling}return null}var G=Array.isArray,U=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},q=[],V=-1;function Y(e){return{current:e}}function H(e){0>V||(e.current=q[V],q[V]=null,V--)}function $(e,t){V++,q[V]=e.current,e.current=t}var K=Y(null),X=Y(null),Z=Y(null),J=Y(null);function Q(e,t){switch($(Z,t),$(X,e),$(K,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Xc(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Zc(e=Xc(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(K),$(K,t)}function ee(){H(K),H(X),H(Z)}function te(e){null!==e.memoizedState&&$(J,e);var t=K.current,n=Zc(t,e.type);t!==n&&($(X,e),$(K,n))}function ne(e){X.current===e&&(H(K),H(X)),J.current===e&&(H(J),Dh._currentValue=W)}var re=Object.prototype.hasOwnProperty,ie=r.unstable_scheduleCallback,oe=r.unstable_cancelCallback,se=r.unstable_shouldYield,ae=r.unstable_requestPaint,le=r.unstable_now,ue=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,he=r.unstable_UserBlockingPriority,de=r.unstable_NormalPriority,fe=r.unstable_LowPriority,pe=r.unstable_IdlePriority,ge=r.log,me=r.unstable_setDisableYieldValue,ye=null,ve=null;function _e(e){if("function"==typeof ge&&me(e),ve&&"function"==typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(e){}}var be=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(we(e)/xe|0)|0},we=Math.log,xe=Math.LN2,Ee=128,Se=4194304;function Ce(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Me(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=e.warmLanes;e=0!==e.finishedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~i)?r=Ce(n):0!=(o&=a)?r=Ce(o):e||0!=(s=a&~s)&&(r=Ce(s)):0!=(a=n&~i)?r=Ce(a):0!==o?r=Ce(o):e||0!=(s=n&~s)&&(r=Ce(s)),0===r?0:0===t||t===r||t&i||!((i=r&-r)>=(s=t&-t)||32===i&&4194176&s)?r:t}function ke(e,t){return!(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Te(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Pe(){var e=Ee;return!(4194176&(Ee<<=1))&&(Ee=128),e}function Oe(){var e=Se;return!(62914560&(Se<<=1))&&(Se=4194304),e}function Ie(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 10,194 bytes, line 3
3function Re(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-be(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function Le(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ne(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function De(){var e=U.p;return 0!==e?e:void 0===(e=window.event)?32:Zh(e.type)}var Fe=Math.random().toString(36).slice(2),je="__reactFiber$"+Fe,Be="__reactProps$"+Fe,ze="__reactContainer$"+Fe,Ge="__reactEvents$"+Fe,Ue="__reactListeners$"+Fe,We="__reactHandles$"+Fe,qe="__reactResources$"+Fe,Ve="__reactMarker$"+Fe;function Ye(e){delete e[je],delete e[Be],delete e[Ge],delete e[Ue],delete e[We]}function He(e){var t=e[je];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ze]||n[je]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lh(e);null!==e;){if(n=e[je])return n;e=lh(e)}return t}n=(e=n).parentNode}return null}function $e(e){if(e=e[je]||e[ze]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Ke(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(s(33))}function Xe(e){var t=e[qe];return t||(t=e[qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[Ve]=!0}var Je=new Set,Qe={};function et(e,t){tt(e,t),tt(e+"Capture",t)}function tt(e,t){for(Qe[e]=t,e=0;e<t.length;e++)Je.add(t[e])}var nt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),rt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),it={},ot={};function st(e,t,n){if(i=t,re.call(ot,i)||!re.call(it,i)&&(rt.test(i)?ot[i]=!0:(it[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function at(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function lt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ct(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ht(e){e._valueTracker||(e._valueTracker=function(e){var t=ct(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function dt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ct(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ft(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var pt=/[\n"\\]/g;function gt(e){return e.replace(pt,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function mt(e,t,n,r,i,o,s,a){e.name="",null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.type=s:e.removeAttribute("type"),null!=t?"number"===s?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ut(t)):e.value!==""+ut(t)&&(e.value=""+ut(t)):"submit"!==s&&"reset"!==s||e.removeAttribute("value"),null!=t?vt(e,s,ut(t)):null!=n?vt(e,s,ut(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.name=""+ut(a):e.removeAttribute("name")}function yt(e,t,n,r,i,o,s,a){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+ut(n):"",t=null!=t?""+ut(t):n,a||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=a?e.checked:!!r,e.defaultChecked=!!r,null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s&&(e.name=s)}function vt(e,t,n){"number"===t&&ft(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function _t(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ut(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function bt(e,t,n){null==t||((t=""+ut(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ut(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function wt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(s(92));if(G(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ut(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function xt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function St(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ct(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(s(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&St(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&St(e,o,t[o])}function Mt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
3-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Tt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pt(e){return Tt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ot=null;function It(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Rt=null,At=null;function Lt(e){var t=$e(e);if(t&&(e=t.stateNode)){var n=e[Be]||null;e:switch(e=t.stateNode,t.type){case"input":if(mt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+gt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Be]||null;if(!i)throw Error(s(90));mt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&dt(r)}break e;case"textarea":bt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&_t(e,!!n.multiple,t,!1)}}}var Nt=!1;function Dt(e,t,n){if(Nt)return e(t,n);Nt=!0;try{return e(t)}finally{if(Nt=!1,(null!==Rt||null!==At)&&(ju(),Rt&&(t=Rt,e=At,At=Rt=null,Lt(t),e)))for(t=0;t<e.length;t++)Lt(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Be]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var jt=!1;if(nt)try{var Bt={};Object.defineProperty(Bt,"passive",{get:function(){jt=!0}}),window.addEventListener("test",Bt,Bt),window.removeEventListener("test",Bt,Bt)}catch(e){jt=!1}var zt=null,Gt=null,Ut=null;function Wt(){if(Ut)return Ut;var e,t,n=Gt,r=n.length,i="value"in zt?zt.value:zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return Ut=i.slice(e,1<t?1-t:void 0)}function qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Vt(){return!0}function Yt(){return!1}function Ht(e){function t(t,n,r,i,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Vt:Yt,this.isPropagationStopped=Yt,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vt)},persist:function(){},isPersistent:Vt}),t}var $t,Kt,Xt,Zt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jt=Ht(Zt),Qt=I({},Zt,{view:0,detail:0}),en=Ht(Qt),tn=I({},Qt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xt&&(Xt&&"mousemove"===e.type?($t=e.screenX-Xt.screenX,Kt=e.screenY-Xt.screenY):Kt=$t=0,Xt=e),$t)},movementY:function(e){return"movementY"in e?e.movementY:Kt}}),nn=Ht(tn),rn=Ht(I({},tn,{dataTransfer:0})),on=Ht(I({},Qt,{relatedTarget:0})),sn=Ht(I({},Zt,{animationName:0,elapsedTime:0,pseudoElement:0})),an=Ht(I({},Zt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ln=Ht(I({},Zt,{data:0})),un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function fn(){return dn}var pn=Ht(I({},Qt,{key:function(e){if(e.key){var t=un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
3yup"===e.type?cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fn,charCode:function(e){return"keypress"===e.type?qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),gn=Ht(I({},tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),mn=Ht(I({},Qt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fn})),yn=Ht(I({},Zt,{propertyName:0,elapsedTime:0,pseudoElement:0})),vn=Ht(I({},tn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),_n=Ht(I({},Zt,{newState:0,oldState:0})),bn=[9,13,27,32],wn=nt&&"CompositionEvent"in window,xn=null;nt&&"documentMode"in document&&(xn=document.documentMode);var En=nt&&"TextEvent"in window&&!xn,Sn=nt&&(!wn||xn&&8<xn&&11>=xn),Cn=String.fromCharCode(32),Mn=!1;function kn(e,t){switch(e){case"keyup":return-1!==bn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pn=!1,On={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function In(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!On[e.type]:"textarea"===t}function Rn(e,t,n,r){Rt?At?At.push(r):At=[r]:Rt=r,0<(t=Dc(t,"onChange")).length&&(n=new Jt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var An=null,Ln=null;function Nn(e){Tc(e,0)}function Dn(e){if(dt(Ke(e)))return e}function Fn(e,t){if("change"===e)return t}var jn=!1;if(nt){var Bn;if(nt){var zn="oninput"in document;if(!zn){var Gn=document.createElement("div");Gn.setAttribute("oninput","return;"),zn="function"==typeof Gn.oninput}Bn=zn}else Bn=!1;jn=Bn&&(!document.documentMode||9<document.documentMode)}function Un(){An&&(An.detachEvent("onpropertychange",Wn),Ln=An=null)}function Wn(e){if("value"===e.propertyName&&Dn(Ln)){var t=[];Rn(t,Ln,e,It(e)),Dt(Nn,t)}}function qn(e,t,n){"focusin"===e?(Un(),Ln=n,(An=t).attachEvent("onpropertychange",Wn)):"focusout"===e&&Un()}function Vn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Dn(Ln)}function Yn(e,t){if("click"===e)return Dn(t)}function Hn(e,t){if("input"===e||"change"===e)return Dn(t)}var $n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Kn(e,t){if($n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!re.call(t,i)||!$n(e[i],t[i]))return!1}return!0}function Xn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zn(e,t){var n,r=Xn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Xn(r)}}function Jn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Jn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Qn(e){for(var t=ft((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ft((e=t.contentWindow).document)}return t}function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function tr(e,t){var n=Qn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Jn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var i=t.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!n.extend&&o>r&&(i=r,r=o,o=i),i=Zn(t,o);var s=Zn(t,r);i&&s&&(1!==n.rangeCount||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&((e=e.createRange()).setStart(i.node,i.offset),n.removeAllRanges(),o>r?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});
vendor: 24,505 bytes, line 3
3for("function"==typeof t.focus&&t.focus(),t=0;t<e.length;t++)(n=e[t]).element.scrollLeft=n.left,n.element.scrollTop=n.top}}var nr=nt&&"documentMode"in document&&11>=document.documentMode,rr=null,ir=null,or=null,sr=!1;function ar(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==rr||rr!==ft(r)||(r="selectionStart"in(r=rr)&&er(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},or&&Kn(or,r)||(or=r,0<(r=Dc(ir,"onSelect")).length&&(t=new Jt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},cr={},hr={};function dr(e){if(cr[e])return cr[e];if(!ur[e])return e;var t,n=ur[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return cr[e]=n[t];return e}nt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);var fr=dr("animationend"),pr=dr("animationiteration"),gr=dr("animationstart"),mr=dr("transitionrun"),yr=dr("transitionstart"),vr=dr("transitioncancel"),_r=dr("transitionend"),br=new Map,wr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function xr(e,t){br.set(e,t),et(t,[e])}var Er=[],Sr=0,Cr=0;function Mr(){for(var e=Sr,t=Cr=Sr=0;t<e;){var n=Er[t];Er[t++]=null;var r=Er[t];Er[t++]=null;var i=Er[t];Er[t++]=null;var o=Er[t];if(Er[t++]=null,null!==r&&null!==i){var s=r.pending;null===s?i.next=i:(i.next=s.next,s.next=i),r.pending=i}0!==o&&Or(n,i,o)}}function kr(e,t,n,r){Er[Sr++]=e,Er[Sr++]=t,Er[Sr++]=n,Er[Sr++]=r,Cr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Tr(e,t,n,r){return kr(e,t,n,r),Ir(e)}function Pr(e,t){return kr(e,null,null,t),Ir(e)}function Or(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;i&&null!==t&&3===e.tag&&(o=e.stateNode,i=31-be(n),null===(e=(o=o.hiddenUpdates)[i])?o[i]=[t]:e.push(t),t.lane=536870912|n)}function Ir(e){if(50<Tu)throw Tu=0,Pu=null,Error(s(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Rr={},Ar=new WeakMap;function Lr(e,t){if("object"==typeof e&&null!==e){var n=Ar.get(e);return void 0!==n?n:(t={value:e,source:t,stack:D(t)},Ar.set(e,t),t)}return{value:e,source:t,stack:D(t)}}var Nr=[],Dr=0,Fr=null,jr=0,Br=[],zr=0,Gr=null,Ur=1,Wr="";function qr(e,t){Nr[Dr++]=jr,Nr[Dr++]=Fr,Fr=e,jr=t}function Vr(e,t,n){Br[zr++]=Ur,Br[zr++]=Wr,Br[zr++]=Gr,Gr=e;var r=Ur;e=Wr;var i=32-be(r)-1;r&=~(1<<i),n+=1;var o=32-be(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ur=1<<32-be(t)+i|n<<i|r,Wr=o+e}else Ur=1<<o|n<<i|r,Wr=e}function Yr(e){null!==e.return&&(qr(e,1),Vr(e,1,0))}function Hr(e){for(;e===Fr;)Fr=Nr[--Dr],Nr[Dr]=null,jr=Nr[--Dr],Nr[Dr]=null;for(;e===Gr;)Gr=Br[--zr],Br[zr]=null,Wr=Br[--zr],Br[zr]=null,Ur=Br[--zr],Br[zr]=null}var $r=null,Kr=null,Xr=!1,Zr=null,Jr=!1,Qr=Error(s(519));function ei(e){throw oi(Lr(Error(s(418,"")),e)),Qr}function ti(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[je]=e,t[Be]=r,n){case"dialog":Pc("cancel",t),Pc("close",t);break;case"iframe":case"object":case"embed":Pc("load",t);break;case"video":case"audio":for(n=0;n<Mc.length;n++)Pc(Mc[n],t);break;case"source":Pc("error",t);break;case"img":case"image":case"link":Pc("error",t),Pc("load",t);break;case"details":Pc("toggle",t);break;case"input":Pc("invalid",t),yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),ht(t);break;case"select":Pc("invalid",t);break;case"textarea":Pc("invalid",t),wt(t,r.value,r.defaultValue,r.children),ht(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Uc(t.textContent,n)?(null!=r.popover&&(Pc("beforetoggle",t),Pc("toggle",t)),null!=r.onScroll&&Pc("scroll",t),null!=r.onScrollEnd&&Pc("scrollend",t),null!=r.onClick&&(t.onclick=Wc),t=!0):t=!1,t||ei(e)}function ni(e){for($r=e.return;$r;)switch($r.tag){case 3:case 27:return void(Jr=!0);case 5:case 13:return void(Jr=!1);default:$r=$r.return}}function ri(e){if(e!==$r)return!1;if(!Xr)return ni(e),Xr=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Jc(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&Kr&&ei(e),ni(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){Kr=ah(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}Kr=null}}else Kr=$r?ah(e.stateNode.nextSibling):null;return!0}function ii(){Kr=$r=null,Xr=!1}function oi(e){null===Zr?Zr=[e]:Zr.push(e)}var si=Error(s(460)),ai=Error(s(474)),li={then:function(){}};function ui(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ci(){}function hi(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(ci,ci),t=n),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===si)throw Error(s(483));throw e;default:if("string"==typeof t.status)t.then(ci,ci);else{if(null!==(e=tu)&&100<e.shellSuspendCounter)throw Error(s(482));(e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))}switch(t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===si)throw Error(s(483));throw e}throw di=t,si}}var di=null;function fi(){if(null===di)throw Error(s(459));var e=di;return di=null,e}var pi=null,gi=0;function mi(e){var t=gi;return gi+=1,null===pi&&(pi=[]),hi(pi,e,t)}function yi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function vi(e,t){if(t.$$typeof===l)throw Error(s(525));throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _i(e){return(0,e._init)(e._payload)}function bi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Fl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ul(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n,r){var o=n.type;return o===h?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===w&&_i(o)===t.type)?(yi(t=i(t,n.props),n),t.return=e,t):(yi(t=Bl(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function p(e,t,n,r,o){return null===t||7!==t.tag?((t=zl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function g(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Ul(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case u:return yi(n=Bl(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case c:return(t=Wl(t,e.mode,n)).return=e,t;case w:return g(e,t=(0,t._init)(t._payload),n)}if(G(t)||C(t))return(t=zl(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return g(e,mi(t),n);if(t.$$typeof===m)return g(e,Ma(e,t),n);vi(e,t)}return null}function y(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case u:return n.key===i?d(e,t,n,r):null;case c:return n.key===i?f(e,t,n,r):null;case w:return y(e,t,n=(i=n._init)(n._payload),r)}if(G(n)||C(n))return null!==i?null:p(e,t,n,r,null);if("function"==typeof n.then)return y(e,t,mi(n),r);if(n.$$typeof===m)return y(e,t,Ma(e,n),r);vi(e,n)}return null}function v(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case u:return d(t,e=e.get(null===r.key?n:r.key)||null,r,i);case c:return f(t,e=e.get(null===r.key?n:r.key)||null,r,i);case w:return v(e,t,n,r=(0,r._init)(r._payload),i)}if(G(r)||C(r))return p(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return v(e,t,n,mi(r),i);if(r.$$typeof===m)return v(e,t,n,Ma(t,r),i);vi(t,r)}return null}function _(l,d,f,p){if("object"==typeof f&&null!==f&&f.type===h&&null===f.key&&(f=f.props.children),"object"==typeof f&&null!==f){switch(f.$$typeof){case u:e:{for(var b=f.key;null!==d;){if(d.key===b){if((b=f.type)===h){if(7===d.tag){n(l,d.sibling),(p=i(d,f.props.children)).return=l,l=p;break e}}else if(d.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===w&&_i(b)===d.type){n(l,d.sibling),yi(p=i(d,f.props),f),p.return=l,l=p;break e}n(l,d);break}t(l,d),d=d.sibling}f.type===h?((p=zl(f.props.children,l.mode,p,f.key)).return=l,l=p):(yi(p=Bl(f.type,f.key,f.props,null,l.mode,p),f),p.return=l,l=p)}return a(l);case c:e:{for(b=f.key;null!==d;){if(d.key===b){if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){n(l,d.sibling),(p=i(d,f.children||[])).return=l,l=p;break e}n(l,d);break}t(l,d),d=d.sibling}(p=Wl(f,l.mode,p)).return=l,l=p}return a(l);case w:return _(l,d,f=(b=f._init)(f._payload),p)}if(G(f))return function(i,s,a,l){for(var u=null,c=null,h=s,d=s=0,f=null;null!==h&&d<a.length;d++){h.index>d?(f=h,h=null):f=h.sibling;var p=y(i,h,a[d],l);if(null===p){null===h&&(h=f);break}e&&h&&null===p.alternate&&t(i,h),s=o(p,s,d),null===c?u=p:c.sibling=p,c=p,h=f}if(d===a.length)return n(i,h),Xr&&qr(i,d),u;if(null===h){for(;d<a.length;d++)null!==(h=g(i,a[d],l))&&(s=o(h,s,d),null===c?u=h:c.sibling=h,c=h);return Xr&&qr(i,d),u}for(h=r(h);d<a.length;d++)null!==(f=v(h,i,d,a[d],l))&&(e&&null!==f.alternate&&h.delete(null===f.key?d:f.key),s=o(f,s,d),null===c?u=f:c.sibling=f,c=f);return e&&h.forEach((function(e){return t(i,e)})),Xr&&qr(i,d),u}(l,d,f,p);if(C(f)){if("function"!=typeof(b=C(f)))throw Error(s(150));return function(i,a,l,u){if(null==l)throw Error(s(151));for(var c=null,h=null,d=a,f=a=0,p=null,m=l.next();null!==d&&!m.done;f++,m=l.next()){d.index>f?(p=d,d=null):p=d.sibling;var _=y(i,d,m.value,u);if(null===_){null===d&&(d=p);break}e&&d&&null===_.alternate&&t(i,d),a=o(_,a,f),null===h?c=_:h.sibling=_,h=_,d=p}if(m.done)return n(i,d),Xr&&qr(i,f),c;if(null===d){for(;!m.done;f++,m=l.next())null!==(m=g(i,m.value,u))&&(a=o(m,a,f),null===h?c=m:h.sibling=m,h=m);return Xr&&qr(i,f),c}for(d=r(d);!m.done;f++,m=l.next())null!==(m=v(d,i,f,m.value,u))&&(e&&null!==m.alternate&&d.delete(null===m.key?f:m.key),a=o(m,a,f),null===h?c=m:h.sibling=m,h=m);return e&&d.forEach((function(e){return t(i,e)})),Xr&&qr(i,f),c}(l,d,f=b.call(f),p)}if("function"==typeof f.then)return _(l,d,mi(f),p);if(f.$$typeof===m)return _(l,d,Ma(l,f),p);vi(l,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==d&&6===d.tag?(n(l,d.sibling),(p=i(d,f)).return=l,l=p):(n(l,d),(p=Ul(f,l.mode,p)).return=l,l=p),a(l)):n(l,d)}return function(e,t,n,r){try{gi=0;var i=_(e,t,n,r);return pi=null,i}catch(t){if(t===si)throw t;var o=Nl(29,t,null,e.mode);return o.lanes=r,o.return=e,o}}}var wi=bi(!0),xi=bi(!1),Ei=Y(null),Si=Y(0);function Ci(e,t){$(Si,e=uu),$(Ei,t),uu=e|t.baseLanes}function Mi(){$(Si,uu),$(Ei,Ei.current)}function ki(){uu=Si.current,H(Ei),H(Si)}var Ti=Y(null),Pi=null;function Oi(e){var t=e.alternate;$(Li,1&Li.current),$(Ti,e),null===Pi&&(null===t||null!==Ei.current||null!==t.memoizedState)&&(Pi=e)}function Ii(e){if(22===e.tag){if($(Li,Li.current),$(Ti,e),null===Pi){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Pi=e)}}else Ri()}function Ri(){$(Li,Li.current),$(Ti,Ti.current)}function Ai(e){H(Ti),Pi===e&&(Pi=null),H(Li)}var Li=Y(0);function Ni(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Di="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Fi=r.unstable_scheduleCallback,ji=r.unstable_NormalPriority,Bi={$$typeof:m,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zi(){return{controller:new Di,data:new Map,refCount:0}}function Gi(e){e.refCount--,0===e.refCount&&Fi(ji,(function(){e.controller.abort()}))}var Ui=null,Wi=0,qi=0,Vi=null;function Yi(){if(0==--Wi&&null!==Ui){null!==Vi&&(Vi.status="fulfilled");var e=Ui;Ui=null,qi=0,Vi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Hi=O.S;O.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Ui){var n=Ui=[];Wi=0,qi=wc(),Vi={status:"pending",value:void 0,then:function(e){n.push(e)}}}Wi++,t.then(Yi,Yi)}(0,t),null!==Hi&&Hi(e,t)};var $i=Y(null);function Ki(){var e=$i.current;return null!==e?e:tu.pooledCache}function Xi(e,t){$($i,null===t?$i.current:t.pool)}function Zi(){var e=Ki();return null===e?null:{parent:Bi._currentValue,pool:e}}var Ji=0,Qi=null,eo=null,to=null,no=!1,ro=!1,io=!1,oo=0,so=0,ao=null,lo=0;function uo(){throw Error(s(321))}function co(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function ho(e,t,n,r,i,o){return Ji=o,Qi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=null===e||null===e.memoizedState?Ms:ks,io=!1,o=n(r,i),io=!1,ro&&(o=po(t,n,r,i)),fo(e),o}function fo(e){O.H=Cs;var t=null!==eo&&null!==eo.next;if(Ji=0,to=eo=Qi=null,no=!1,so=0,ao=null,t)throw Error(s(300));null===e||qs||null!==(e=e.dependencies)&&Ea(e)&&(qs=!0)}function po(e,t,n,r){Qi=e;var i=0;do{if(ro&&(ao=null),so=0,ro=!1,25<=i)throw Error(s(301));if(i+=1,to=eo=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}O.H=Ts,o=t(n,r)}while(ro);return o}function go(){var e=O.H,t=e.useState()[0];return t="function"==typeof t.then?wo(t):t,e=e.useState()[0],(null!==eo?eo.memoizedState:null)!==e&&(Qi.flags|=1024),t}function mo(){var e=0!==oo;return oo=0,e}function yo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vo(e){if(no){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}no=!1}Ji=0,to=eo=Qi=null,ro=!1,so=oo=0,ao=null}function _o(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===to?Qi.memoizedState=to=e:to=to.next=e,to}function bo(){if(null===eo){var e=Qi.alternate;e=null!==e?e.memoizedState:null}else e=eo.next;var t=null===to?Qi.memoizedState:to.next;if(null!==t)to=t,eo=e;else{if(null===e){if(null===Qi.alternate)throw Error(s(467));throw Error(s(310))}e={memoizedState:(eo=e).memoizedState,baseState:eo.baseState,baseQueue:eo.baseQueue,queue:eo.queue,next:null},null===to?Qi.memoizedState=to=e:to=to.next=e}return to}function wo(e){var t=so;return so+=1,null===ao&&(ao=[]),e=hi(ao,e,t),t=Qi,null===(null===to?t.memoizedState:to.next)&&(t=t.alternate,O.H=null===t||null===t.memoizedState?Ms:ks),e}function xo(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return wo(e);if(e.$$typeof===m)return Ca(e)}throw Error(s(438,String(e)))}function Eo(e){var t=null,n=Qi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Qi.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map((function(e){return e.slice()})),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Qi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=E;return t.index++,n}function So(e,t){return"function"==typeof t?t(e):t}function Co(e){return Mo(bo(),eo,e)}function Mo(e,t,n){var r=e.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,null===i)e.memoizedState=o;else{var l=a=null,u=null,c=t=i.next,h=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(ru&d)===d:(Ji&d)===d){var f=c.revertLane;if(0===f)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===qi&&(h=!0);else{if((Ji&f)===f){c=c.next,f===qi&&(h=!0);continue}d={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=d,a=o):u=u.next=d,Qi.lanes|=f,hu|=f}d=c.action,io&&n(o,d),o=c.hasEagerState?c.eagerState:n(o,d)}else f={lane:d,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,a=o):u=u.next=f,Qi.lanes|=d,hu|=d;c=c.next}while(null!==c&&c!==t);if(null===u?a=o:u.next=l,!$n(o,e.memoizedState)&&(qs=!0,h&&null!==(n=Vi)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=u,r.lastRenderedState=o}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ko(e){var t=bo(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);$n(o,t.memoizedState)||(qs=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function To(e,t,n){var r=Qi,i=bo(),o=Xr;if(o){if(void 0===n)throw Error(s(407));n=n()}else n=t();var a=!$n((eo||i).memoizedState,n);if(a&&(i.memoizedState=n,qs=!0),i=i.queue,Qo(Io.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||null!==to&&1&to.memoizedState.tag){if(r.flags|=2048,$o(9,Oo.bind(null,r,i,n,t),{destroy:void 0},null),null===tu)throw Error(s(349));o||60&Ji||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Qi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Qi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oo(e,t,n,r){t.value=n,t.getSnapshot=r,Ro(t)&&Ao(e)}function Io(e,t,n){return n((function(){Ro(t)&&Ao(e)}))}function Ro(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch(e){return!0}}function Ao(e){var t=Pr(e,2);null!==t&&Ru(t,0,2)}function Lo(e){var t=_o();if("function"==typeof e){var n=e;if(e=n(),io){_e(!0);try{n()}finally{_e(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:e},t}function No(e,t,n,r){return e.baseState=n,Mo(e,eo,"function"==typeof r?r:So)}function Do(e,t,n,r,i){if(xs(e))throw Error(s(485));if(null!==(e=t.action)){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==O.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,Fo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Fo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=O.T,s={};O.T=s;try{var a=n(i,r),l=O.S;null!==l&&l(s,a),jo(e,t,a)}catch(n){zo(e,t,n)}finally{O.T=o}}else try{jo(e,t,o=n(i,r))}catch(n){zo(e,t,n)}}function jo(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then((function(n){Bo(e,t,n)}),(function(n){return zo(e,t,n)})):Bo(e,t,n)}function Bo(e,t,n){t.status="fulfilled",t.value=n,Go(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Fo(e,n)))}function zo(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Go(t),t=t.next}while(t!==r)}e.action=null}function Go(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Uo(e,t){return t}function Wo(e,t){if(Xr){var n=tu.formState;if(null!==n){e:{var r=Qi;if(Xr){if(Kr){t:{for(var i=Kr,o=Jr;8!==i.nodeType;){if(!o){i=null;break t}if(null===(i=ah(i.nextSibling))){i=null;break t}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){Kr=ah(i.nextSibling),r="F!"===i.data;break e}}ei(r)}r=!1}r&&(t=n[0])}}return(n=_o()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Uo,lastRenderedState:t},n.queue=r,n=_s.bind(null,Qi,r),r.dispatch=n,r=Lo(!1),o=ws.bind(null,Qi,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=_o()).queue=i,n=Do.bind(null,Qi,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function qo(e){return Vo(bo(),eo,e)}function Vo(e,t,n){t=Mo(e,t,Uo)[0],e=Co(So)[0],t="object"==typeof t&&null!==t&&"function"==typeof t.then?wo(t):t;var r=bo(),i=r.queue,o=i.dispatch;return n!==r.memoizedState&&(Qi.flags|=2048,$o(9,Yo.bind(null,i,n),{destroy:void 0},null)),[t,o,e]}function Yo(e,t){e.action=t}function Ho(e){var t=bo(),n=eo;if(null!==n)return Vo(t,n,e);bo(),t=t.memoizedState;var r=(n=bo()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=Qi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Qi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ko(){return bo().memoizedState}function Xo(e,t,n,r){var i=_o();Qi.flags|=e,i.memoizedState=$o(1|t,n,{destroy:void 0},void 0===r?null:r)}function Zo(e,t,n,r){var i=bo();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==eo&&null!==r&&co(r,eo.memoizedState.deps)?i.memoizedState=$o(t,n,o,r):(Qi.flags|=e,i.memoizedState=$o(1|t,n,o,r))}function Jo(e,t){Xo(8390656,8,e,t)}function Qo(e,t){Zo(2048,8,e,t)}function es(e,t){return Zo(4,2,e,t)}function ts(e,t){return Zo(4,4,e,t)}function ns(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function rs(e,t,n){n=null!=n?n.concat([e]):null,Zo(4,4,ns.bind(null,t,e),n)}function is(){}function os(e,t){var n=bo();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ss(e,t){var n=bo();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&co(t,r[1]))return r[0];if(r=e(),io){_e(!0);try{e()}finally{_e(!1)}}return n.memoizedState=[r,t],r}function as(e,t,n){return void 0===n||1073741824&Ji?e.memoizedState=t:(e.memoizedState=n,e=Iu(),Qi.lanes|=e,hu|=e,n)}function ls(e,t,n,r){return $n(n,t)?n:null!==Ei.current?(e=as(e,n,r),$n(e,t)||(qs=!0),e):42&Ji?(e=Iu(),Qi.lanes|=e,hu|=e,t):(qs=!0,e.memoizedState=n)}function us(e,t,n,r,i){var o=U.p;U.p=0!==o&&8>o?o:8;var s,a,l,u=O.T,c={};O.T=c,ws(e,!1,t,n);try{var h=i(),d=O.S;null!==d&&d(c,h),null!==h&&"object"==typeof h&&"function"==typeof h.then?bs(e,t,(s=r,a=[],l={status:"pending",value:null,reason:null,then:function(e){a.push(e)}}
vendor: 1,369 bytes, line 3
3,h.then((function(){l.status="fulfilled",l.value=s;for(var e=0;e<a.length;e++)(0,a[e])(s)}),(function(e){for(l.status="rejected",l.reason=e,e=0;e<a.length;e++)(0,a[e])(void 0)})),l),Ou()):bs(e,t,r,Ou())}catch(n){bs(e,t,{then:function(){},status:"rejected",reason:n},Ou())}finally{U.p=o,O.T=u}}function cs(){}function hs(e,t,n,r){if(5!==e.tag)throw Error(s(476));var i=ds(e).queue;us(e,i,t,W,null===n?cs:function(){return fs(e),n(r)})}function ds(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:W},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function fs(e){bs(e,ds(e).next.queue,{},Ou())}function ps(){return Ca(Dh)}function gs(){return bo().memoizedState}function ms(){return bo().memoizedState}function ys(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Ou(),r=Ra(t,e=Ia(n),n);return null!==r&&(Ru(r,0,n),Aa(r,t,n)),t={cache:zi()},void(e.payload=t)}t=t.return}}function vs(e,t,n){var r=Ou();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},xs(e)?Es(t,n):null!==(n=Tr(e,t,n,r))&&(Ru(n,0,r),Ss(n,t,r))}
vendor: 21,233 bytes, line 3
3function _s(e,t,n){bs(e,t,n,Ou())}function bs(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(xs(e))Es(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,$n(a,s))return kr(e,t,i,0),null===tu&&Mr(),!1}catch(e){}if(null!==(n=Tr(e,t,i,r)))return Ru(n,0,r),Ss(n,t,r),!0}return!1}function ws(e,t,n,r){if(r={lane:2,revertLane:wc(),action:r,hasEagerState:!1,eagerState:null,next:null},xs(e)){if(t)throw Error(s(479))}else null!==(t=Tr(e,n,r,2))&&Ru(t,0,2)}function xs(e){var t=e.alternate;return e===Qi||null!==t&&t===Qi}function Es(e,t){ro=no=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ss(e,t,n){if(4194176&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Le(e,n)}}var Cs={readContext:Ca,use:xo,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useLayoutEffect:uo,useInsertionEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useDeferredValue:uo,useTransition:uo,useSyncExternalStore:uo,useId:uo};Cs.useCacheRefresh=uo,Cs.useMemoCache=uo,Cs.useHostTransitionStatus=uo,Cs.useFormState=uo,Cs.useActionState=uo,Cs.useOptimistic=uo;var Ms={readContext:Ca,use:xo,useCallback:function(e,t){return _o().memoizedState=[e,void 0===t?null:t],e},useContext:Ca,useEffect:Jo,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Xo(4194308,4,ns.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xo(4194308,4,e,t)},useInsertionEffect:function(e,t){Xo(4,2,e,t)},useMemo:function(e,t){var n=_o();t=void 0===t?null:t;var r=e();if(io){_e(!0);try{e()}finally{_e(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=_o();if(void 0!==n){var i=n(t);if(io){_e(!0);try{n(t)}finally{_e(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=vs.bind(null,Qi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_o().memoizedState=e},useState:function(e){var t=(e=Lo(e)).queue,n=_s.bind(null,Qi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:is,useDeferredValue:function(e,t){return as(_o(),e,t)},useTransition:function(){var e=Lo(!1);return e=us.bind(null,Qi,e.queue,!0,!1),_o().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Qi,i=_o();if(Xr){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===tu)throw Error(s(349));60&ru||Po(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Jo(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,Oo.bind(null,r,o,n,t),{destroy:void 0},null),n},useId:function(){var e=_o(),t=tu.identifierPrefix;if(Xr){var n=Wr;t=":"+t+"R"+(n=(Ur&~(1<<32-be(Ur)-1)).toString(32)+n),0<(n=oo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=lo++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return _o().memoizedState=ys.bind(null,Qi)}};Ms.useMemoCache=Eo,Ms.useHostTransitionStatus=ps,Ms.useFormState=Wo,Ms.useActionState=Wo,Ms.useOptimistic=function(e){var t=_o();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ws.bind(null,Qi,!0,n),n.dispatch=t,[e,t]};var ks={readContext:Ca,use:xo,useCallback:os,useContext:Ca,useEffect:Qo,useImperativeHandle:rs,useInsertionEffect:es,useLayoutEffect:ts,useMemo:ss,useReducer:Co,useRef:Ko,useState:function(){return Co(So)},useDebugValue:is,useDeferredValue:function(e,t){return ls(bo(),eo.memoizedState,e,t)},useTransition:function(){var e=Co(So)[0],t=bo().memoizedState;return["boolean"==typeof e?e:wo(e),t]},useSyncExternalStore:To,useId:gs};ks.useCacheRefresh=ms,ks.useMemoCache=Eo,ks.useHostTransitionStatus=ps,ks.useFormState=qo,ks.useActionState=qo,ks.useOptimistic=function(e,t){return No(bo(),0,e,t)};var Ts={readContext:Ca,use:xo,useCallback:os,useContext:Ca,useEffect:Qo,useImperativeHandle:rs,useInsertionEffect:es,useLayoutEffect:ts,useMemo:ss,useReducer:ko,useRef:Ko,useState:function(){return ko(So)},useDebugValue:is,useDeferredValue:function(e,t){var n=bo();return null===eo?as(n,e,t):ls(n,eo.memoizedState,e,t)},useTransition:function(){var e=ko(So)[0],t=bo().memoizedState;return["boolean"==typeof e?e:wo(e),t]},useSyncExternalStore:To,useId:gs};function Ps(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}Ts.useCacheRefresh=ms,Ts.useMemoCache=Eo,Ts.useHostTransitionStatus=ps,Ts.useFormState=Ho,Ts.useActionState=Ho,Ts.useOptimistic=function(e,t){var n=bo();return null!==eo?No(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])};var Os={isMounted:function(e){return!!(e=e._reactInternals)&&F(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ou(),i=Ia(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ra(e,i,r))&&(Ru(t,0,r),Aa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ou(),i=Ia(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ra(e,i,r))&&(Ru(t,0,r),Aa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ou(),r=Ia(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ra(e,r,n))&&(Ru(t,0,n),Aa(t,e,n))}};function Is(e,t,n,r,i,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!(t.prototype&&t.prototype.isPureReactComponent&&Kn(n,r)&&Kn(i,o))}function Rs(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Os.enqueueReplaceState(t,t.state,null)}function As(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=I({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}var Ls="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function Ns(e){Ls(e)}function Ds(e){console.error(e)}function Fs(e){Ls(e)}function js(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout((function(){throw e}))}}function Bs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout((function(){throw e}))}}function zs(e,t,n){return(n=Ia(n)).tag=3,n.payload={element:null},n.callback=function(){js(e,t)},n}function Gs(e){return(e=Ia(e)).tag=3,e}function Us(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){Bs(t,n,r)}}var s=n.stateNode;null!==s&&"function"==typeof s.componentDidCatch&&(e.callback=function(){Bs(t,n,r),"function"!=typeof i&&(null===xu?xu=new Set([this]):xu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ws=Error(s(461)),qs=!1;function Vs(e,t,n,r){t.child=null===e?xi(t,null,n,r):wi(t,e.child,n,r)}function Ys(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var s={};for(var a in r)"ref"!==a&&(s[a]=r[a])}else s=r;return Sa(t),r=ho(e,t,n,s,o,i),a=mo(),null===e||qs?(Xr&&a&&Yr(t),t.flags|=1,Vs(e,t,r,i),t.child):(yo(e,t,i),da(e,t,i))}function Hs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Dl(o)||void 0!==o.defaultProps||null!==n.compare?((e=Bl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,$s(e,t,o,r,i))}if(o=e.child,!fa(e,i)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:Kn)(s,r)&&e.ref===t.ref)return da(e,t,i)}return t.flags|=1,(e=Fl(o,r)).ref=t.ref,e.return=t,t.child=e}function $s(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Kn(o,r)&&e.ref===t.ref){if(qs=!1,t.pendingProps=r=o,!fa(e,i))return t.lanes=e.lanes,da(e,t,i);131072&e.flags&&(qs=!0)}}return Js(e,t,n,r,i)}function Ks(e,t,n){var r=t.pendingProps,i=r.children,o=!!(2&t.stateNode._pendingVisibility),s=null!==e?e.memoizedState:null;if(Zs(e,t),"hidden"===r.mode||o){if(128&t.flags){if(r=null!==s?s.baseLanes|n:n,null!==e){for(i=t.child=e.child,o=0;null!==i;)o=o|i.lanes|i.childLanes,i=i.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Xs(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Xs(e,t,null!==s?s.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Xi(0,null!==s?s.cachePool:null),null!==s?Ci(t,s):Mi(),Ii(t)}else null!==s?(Xi(0,s.cachePool),Ci(t,s),Ri(),t.memoizedState=null):(null!==e&&Xi(0,null),Mi(),Ri());return Vs(e,t,i,n),t.child}function Xs(e,t,n,r){var i=Ki();return i=null===i?null:{parent:Bi._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xi(0,null),Mi(),Ii(t),null!==e&&xa(e,t,r,!0),null}function Zs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=2097664);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(s(284));null!==e&&e.ref===n||(t.flags|=2097664)}}function Js(e,t,n,r,i){return Sa(t),n=ho(e,t,n,r,void 0,i),r=mo(),null===e||qs?(Xr&&r&&Yr(t),t.flags|=1,Vs(e,t,n,i),t.child):(yo(e,t,i),da(e,t,i))}function Qs(e,t,n,r,i,o){return Sa(t),t.updateQueue=null,n=po(t,r,n,i),fo(e),r=mo(),null===e||qs?(Xr&&r&&Yr(t),t.flags|=1,Vs(e,t,n,o),t.child):(yo(e,t,o),da(e,t,o))}function ea(e,t,n,r,i){if(Sa(t),null===t.stateNode){var o=Rr,s=n.contextType;"object"==typeof s&&null!==s&&(o=Ca(s)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=Os,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},Pa(t),s=n.contextType,o.context="object"==typeof s&&null!==s?Ca(s):Rr,o.state=t.memoizedState,"function"==typeof(s=n.getDerivedStateFromProps)&&(Ps(t,n,s,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(s=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),s!==o.state&&Os.enqueueReplaceState(o,o.state,null),Fa(t,r,o,i),Da(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var a=t.memoizedProps,l=As(n,a);o.props=l;var u=o.context,c=n.contextType;s=Rr,"object"==typeof c&&null!==c&&(s=Ca(c));var h=n.getDerivedStateFromProps;c="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate,a=t.pendingProps!==a,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a||u!==s)&&Rs(t,o,r,s),Ta=!1;var d=t.memoizedState;o.state=d,Fa(t,r,o,i),Da(),u=t.memoizedState,a||d!==u||Ta?("function"==typeof h&&(Ps(t,n,h,r),u=t.memoizedState),(l=Ta||Is(t,n,l,r,d,u,s))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Oa(e,t),c=As(n,s=t.memoizedProps),o.props=c,h=t.pendingProps,d=o.context,u=n.contextType,l=Rr,"object"==typeof u&&null!==u&&(l=Ca(u)),(u="function"==typeof(a=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==h||d!==l)&&Rs(t,o,r,l),Ta=!1,d=t.memoizedState,o.state=d,Fa(t,r,o,i),Da();var f=t.memoizedState;s!==h||d!==f||Ta||null!==e&&null!==e.dependencies&&Ea(e.dependencies)?("function"==typeof a&&(Ps(t,n,a,r),f=t.memoizedState),(c=Ta||Is(t,n,c,r,d,f,l)||null!==e&&null!==e.dependencies&&Ea(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Zs(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,n,i)):Vs(e,t,n,i),t.memoizedState=o.state,e=t.child):e=da(e,t,i),e}function ta(e,t,n,r){return ii(),t.flags|=256,Vs(e,t,n,r),t.child}var na={dehydrated:null,treeContext:null,retryLane:0};function ra(e){return{baseLanes:e,cachePool:Zi()}}function ia(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=pu),e}function oa(e,t,n){var r,i=t.pendingProps,o=!1,a=!!(128&t.flags);if((r=a)||(r=(null===e||null!==e.memoizedState)&&!!(2&Li.current)),r&&(o=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(Xr){if(o?Oi(t):Ri(),Xr){var l,u=Kr;if(l=u){e:{for(l=u,u=Jr;8!==l.nodeType;){if(!u){u=null;break e}if(null===(l=ah(l.nextSibling))){u=null;break e}}u=l}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==Gr?{id:Ur,overflow:Wr}:null,retryLane:536870912},(l=Nl(18,null,null,0)).stateNode=u,l.return=t,t.child=l,$r=t,Kr=null,l=!0):l=!1}l||ei(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return"$!"===u.data?t.lanes=16:t.lanes=536870912,null;Ai(t)}return u=i.children,i=i.fallback,o?(Ri(),u=aa({mode:"hidden",children:u},o=t.mode),i=zl(i,o,n,null),u.return=t,i.return=t,u.sibling=i,t.child=u,(o=t.child).memoizedState=ra(n),o.childLanes=ia(e,r,n),t.memoizedState=na,i):(Oi(t),sa(t,u))}if(null!==(l=e.memoizedState)&&null!==(u=l.dehydrated)){if(a)256&t.flags?(Oi(t),t.flags&=-257,t=la(e,t,n)):null!==t.memoizedState?(Ri(),t.child=e.child,t.flags|=128,t=null):(Ri(),o=i.fallback,u=t.mode,i=aa({mode:"visible",children:i.children},u),(o=zl(o,u,n,null)).flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,wi(t,e.child,null,n),(i=t.child).memoizedState=ra(n),i.childLanes=ia(e,r,n),t.memoizedState=na,t=o);else if(Oi(t),"$!"===u.data){if(r=u.nextSibling&&u.nextSibling.dataset)var c=r.dgst;r=c,(i=Error(s(419))).stack="",i.digest=r,oi({value:i,source:null,stack:null}),t=la(e,t,n)}else if(qs||xa(e,t,n,!1),r=!!(n&e.childLanes),qs||r){if(null!==(r=tu)){if(42&(i=n&-n))i=1;else switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=64;break;case 268435456:i=134217728;break;default:i=0}if(0!==(i=i&(r.suspendedLanes|n)?0:i)&&i!==l.retryLane)throw l.retryLane=i,Pr(e,i),Ru(r,0,i),Ws}"$?"===u.data||qu(),t=la(e,t,n)}else"$?"===u.data?(t.flags|=128,t.child=e.child,t=ac.bind(null,e),u._reactRetry=t,t=null):(e=l.treeContext,Kr=ah(u.nextSibling),$r=t,Xr=!0,Zr=null,Jr=!1,null!==e&&(Br[zr++]=Ur,Br[zr++]=Wr,Br[zr++]=Gr,Ur=e.id,Wr=e.overflow,Gr=t),(t=sa(t,i.children)).flags|=4096);return t}return o?(Ri(),o=i.fallback,u=t.mode,c=(l=e.child).sibling,(i=Fl(l,{mode:"hidden",children:i.children})).subtreeFlags=31457280&l.subtreeFlags,null!==c?o=Fl(c,o):(o=zl(o,u,n,null)).flags|=2,o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,null===(u=e.child.memoizedState)?u=ra(n):(null!==(l=u.cachePool)?(c=Bi._currentValue,l=l.parent!==c?{parent:c,pool:c}:l):l=Zi(),u={baseLanes:u.baseLanes|n,cachePool:l}),o.memoizedState=u,o.childLanes=ia(e,r,n),t.memoizedState=na,i):(Oi(t),e=(n=e.child).sibling,(n=Fl(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function sa(e,t){return(t=aa({mode:"visible",children:t},e.mode)).return=e,e.child=t}function aa(e,t){return Gl(e,t,0,null)}function la(e,t,n){return wi(t,e.child,null,n),(e=sa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ua(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ba(e.return,t,n)}function ca(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function ha(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Vs(e,t,r.children,n),2&(r=Li.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ua(e,n,t);else if(19===e.tag)ua(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch($(Li,r),i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ni(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ca(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ni(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ca(t,!0,n,null,o);break;case"together":ca(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function da(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),hu|=t.lanes,!(n&t.childLanes)){if(null===e)return null;if(xa(e,t,n,!1),!(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Fl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function fa(e,t){return!!(e.lanes&t)||!(null===(e=e.dependencies)||!Ea(e))}function pa(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)qs=!0;else{if(!(fa(e,n)||128&t.flags))return qs=!1,function(e,t,n){switch(t.tag){case 3:Q(t,t.stateNode.containerInfo),va(0,Bi,e.memoizedState.cache),ii();break;case 27:case 5:te(t);break;case 4:Q(t,t.stateNode.containerInfo);break;case 10:va(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Oi(t),t.flags|=128,null):n&t.child.childLanes?oa(e,t,n):(Oi(t),null!==(e=da(e,t,n))?e.sibling:null);Oi(t);break;case 19:var i=!!(128&e.flags);if((r=!!(n&t.childLanes))||(xa(e,t,n,!1),r=!!(n&t.childLanes)),i){if(r)return ha(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),$(Li,Li.current),r)break;return null;case 22:case 23:return t.lanes=0,Ks(e,t,n);case 24:va(0,Bi,e.memoizedState.cache)}return da(e,t,n)}(e,t,n);qs=!!(131072&e.flags)}else qs=!1,Xr&&1048576&t.flags&&Vr(t,jr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,i=r._init;if(r=i(r._payload),t.type=r,"function"!=typeof r){if(null!=r){if((i=r.$$typeof)===y){t.tag=11,t=Ys(null,t,r,e,n);break e}if(i===b){t.tag=14,t=Hs(null,t,r,e,n);break e}}throw t=k(r)||r,Error(s(306,t,""))}Dl(r)?(e=As(r,e),t.tag=1,t=ea(null,t,r,e,n)):(t.tag=0,t=Js(null,t,r,e,n))}return t;case 0:return Js(e,t,t.type,t.pendingProps,n);case 1:return ea(e,t,r=t.type,i=As(r,t.pendingProps),n);case 3:e:{if(Q(t,t.stateNode.containerInfo),null===e)throw Error(s(387));var o=t.pendingProps;r=(i=t.memoizedState).element,Oa(e,t),Fa(t,o,null,n);var a=t.memoizedState;if(o=a.cache,va(0,Bi,o),o!==i.cache&&wa(t,[Bi],n,!0),Da(),o=a.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=ta(e,t,o,n);break e}if(o!==r){oi(r=Lr(Error(s(424)),t)),t=ta(e,t,o,n);break e}for(Kr=ah(t.stateNode.containerInfo.firstChild),$r=t,Xr=!0,Zr=null,Jr=!0,n=xi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ii(),o===r){t=da(e,t,n);break e}Vs(e,t,o,n)}t=t.child}return t;case 26:return Zs(e,t),null===e?(n=mh(t.type,null,t.pendingProps,null))?t.memoizedState=n:Xr||(n=t.type,e=t.pendingProps,(r=Kc(Z.current).createElement(n))[je]=t,r[Be]=e,Yc(r,n,e),Ze(r),t.stateNode=r):t.memoizedState=mh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),null===e&&Xr&&(r=t.stateNode=uh(t.type,t.pendingProps,Z.current),$r=t,Jr=!0,Kr=ah(r.firstChild)),r=t.pendingProps.children,null!==e||Xr?Vs(e,t,r,n):t.child=wi(t,null,r,n),Zs(e,t),t.child;case 5:return null===e&&Xr&&((i=r=Kr)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var i=n;
vendor: 4,402 bytes, line 3
3if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ve])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=ah(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,Jr))?(t.stateNode=r,$r=t,Kr=ah(r.firstChild),Jr=!1,i=!0):i=!1),i||ei(t)),te(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,r=o.children,Jc(i,o)?r=null:null!==a&&Jc(i,a)&&(t.flags|=32),null!==t.memoizedState&&(i=ho(e,t,go,null,null,n),Dh._currentValue=i),Zs(e,t),Vs(e,t,r,n),t.child;case 6:return null===e&&Xr&&((e=n=Kr)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=ah(e.nextSibling)))return null}return e}(n,t.pendingProps,Jr))?(t.stateNode=n,$r=t,Kr=null,e=!0):e=!1),e||ei(t)),null;case 13:return oa(e,t,n);case 4:return Q(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):Vs(e,t,r,n),t.child;case 11:return Ys(e,t,t.type,t.pendingProps,n);case 7:return Vs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Vs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,va(0,t.type,r.value),Vs(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Sa(t),r=r(i=Ca(i)),t.flags|=1,Vs(e,t,r,n),t.child;case 14:return Hs(e,t,t.type,t.pendingProps,n);case 15:return $s(e,t,t.type,t.pendingProps,n);case 19:return ha(e,t,n);case 22:return Ks(e,t,n);case 24:return Sa(t),r=Ca(Bi),null===e?(null===(i=Ki())&&(i=tu,o=zi(),i.pooledCache=o,o.refCount++,null!==o&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Pa(t),va(0,Bi,i)):(!!(e.lanes&n)&&(Oa(e,t),Fa(t,null,null,n),Da()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),va(0,Bi,r)):(r=o.cache,va(0,Bi,r),r!==i.cache&&wa(t,[Bi],n,!0))),Vs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}var ga=Y(null),ma=null,ya=null;function va(e,t,n){$(ga,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=ga.current,H(ga)}function ba(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wa(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var o=i.dependencies;if(null!==o){var a=i.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=i;for(var u=0;u<t.length;u++)if(l.context===t[u]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),ba(o.return,n,e),r||(a=null);break e}o=l.next}}else if(18===i.tag){if(null===(a=i.return))throw Error(s(341));a.lanes|=n,null!==(o=a.alternate)&&(o.lanes|=n),ba(a,n,e),a=null}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===e){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function xa(e,t,n,r){e=null;for(var i=t,o=!1;null!==i;){if(!o)if(524288&i.flags)o=!0;else if(262144&i.flags)break;if(10===i.tag){var a=i.alternate;if(null===a)throw Error(s(387));if(null!==(a=a.memoizedProps)){var l=i.type;$n(i.pendingProps.value,a.value)||(null!==e?e.push(l):e=[l])}}else if(i===J.current){if(null===(a=i.alternate))throw Error(s(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(Dh):e=[Dh])}i=i.return}null!==e&&wa(t,e,n,r),t.flags|=262144}function Ea(e){for(e=e.firstContext;null!==e;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 79,201 bytes, line 3
3function Sa(e){ma=e,ya=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ca(e){return ka(ma,e)}function Ma(e,t){return null===ma&&Sa(e),ka(e,t)}function ka(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===ya){if(null===e)throw Error(s(308));ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ya=ya.next=t;return n}var Ta=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&eu){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ir(e),Or(e,null,n),t}return kr(e,r,t,n),Ir(e)}function Aa(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194176&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Le(e,n)}}function La(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Na=!1;function Da(){if(Na&&null!==Vi)throw Vi}function Fa(e,t,n,r){Na=!1;var i=e.updateQueue;Ta=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?o=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==o){var h=i.baseState;for(s=0,c=u=l=null,a=o;;){var d=-536870913&a.lane,f=d!==a.lane;if(f?(ru&d)===d:(r&d)===d){0!==d&&d===qi&&(Na=!0),null!==c&&(c=c.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var p=e,g=a;d=t;var m=n;switch(g.tag){case 1:if("function"==typeof(p=g.payload)){h=p.call(m,h,d);break e}h=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(d="function"==typeof(p=g.payload)?p.call(m,h,d):p))break e;h=I({},h,d);break e;case 2:Ta=!0}}null!==(d=a.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=i.callbacks)?i.callbacks=[d]:f.push(d))}else f={lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=f,l=h):c=c.next=f,s|=d;if(null===(a=a.next)){if(null===(a=i.shared.pending))break;a=(f=a).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}null===c&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null===o&&(i.shared.lanes=0),hu|=s,e.lanes=s,e.memoizedState=h}}function ja(e,t){if("function"!=typeof e)throw Error(s(191,e));e.call(t)}function Ba(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ja(n[e],t)}function za(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,s=n.inst;r=o(),s.destroy=r}n=n.next}while(n!==i)}}catch(e){rc(t,t.return,e)}}function Ga(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var s=r.inst,a=s.destroy;if(void 0!==a){s.destroy=void 0,i=t;var l=n;try{a()}catch(e){rc(i,l,e)}}}r=r.next}while(r!==o)}}catch(e){rc(t,t.return,e)}}function Ua(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ba(t,n)}catch(t){rc(e,e.return,t)}}}function Wa(e,t,n){n.props=As(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){rc(e,t,n)}}function qa(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var i=r;break;default:i=r}"function"==typeof n?e.refCleanup=n(i):n.current=i}}catch(n){rc(e,t,n)}}function Va(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){rc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){rc(e,t,n)}else n.current=null}function Ya(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){rc(e,e.return,t)}}function Ha(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,l=null,u=null,c=null,h=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&null!=d)switch(p){case"checked":case"value":break;case"defaultValue":u=d;default:r.hasOwnProperty(p)||qc(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(null!=p||null!=d))switch(f){case"type":o=p;break;case"name":i=p;break;case"checked":c=p;break;case"defaultChecked":h=p;break;case"value":a=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(s(137,t));break;default:p!==d&&qc(e,t,f,p,r,d)}}return void mt(e,a,l,u,c,h,o,i);case"select":for(o in p=a=l=f=null,n)if(u=n[o],n.hasOwnProperty(o)&&null!=u)switch(o){case"value":break;case"multiple":p=u;default:r.hasOwnProperty(o)||qc(e,t,o,null,r,u)}for(i in r)if(o=r[i],u=n[i],r.hasOwnProperty(i)&&(null!=o||null!=u))switch(i){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:o!==u&&qc(e,t,i,o,r,u)}return t=l,n=a,r=p,void(null!=f?_t(e,!!n,f,!1):!!r!=!!n&&(null!=t?_t(e,!!n,t,!0):_t(e,!!n,n?[]:"",!1)));case"textarea":for(l in p=f=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:qc(e,t,l,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(null!=i||null!=o))switch(a){case"value":f=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(s(91));break;default:i!==o&&qc(e,t,a,i,r,o)}return void bt(e,f,p);case"option":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!r.hasOwnProperty(g)&&("selected"===g?e.selected=!1:qc(e,t,g,null,r,f));for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||null==f&&null==p||("selected"===u?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:qc(e,t,u,f,r,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m)&&qc(e,t,m,null,r,f);for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(null!=f||null!=p))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(s(137,t));break;default:qc(e,t,c,f,r,p)}return;default:if(Mt(t)){for(var y in n)f=n[y],n.hasOwnProperty(y)&&void 0!==f&&!r.hasOwnProperty(y)&&Vc(e,t,y,void 0,r,f);for(h in r)f=r[h],p=n[h],!r.hasOwnProperty(h)||f===p||void 0===f&&void 0===p||Vc(e,t,h,f,r,p);return}}for(var v in n)f=n[v],n.hasOwnProperty(v)&&null!=f&&!r.hasOwnProperty(v)&&qc(e,t,v,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||null==f&&null==p||qc(e,t,d,f,r,p)}(r,e.type,n,t),r[Be]=t}catch(t){rc(e,e.return,t)}}function $a(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function Ka(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||$a(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Xa(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Wc));else if(4!==r&&27!==r&&null!==(e=e.child))for(Xa(e,t,n),e=e.sibling;null!==e;)Xa(e,t,n),e=e.sibling}function Za(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&27!==r&&null!==(e=e.child))for(Za(e,t,n),e=e.sibling;null!==e;)Za(e,t,n),e=e.sibling}var Ja=!1,Qa=!1,el=!1,tl="function"==typeof WeakSet?WeakSet:Set,nl=null,rl=!1;function il(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),4&r&&za(5,n);break;case 1:if(yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){rc(n,n.return,e)}else{var i=As(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){rc(n,n.return,e)}}64&r&&Ua(n),512&r&&qa(n,n.return);break;case 3:if(yl(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{Ba(r,e)}catch(e){rc(n,n.return,e)}}break;case 26:yl(e,n),512&r&&qa(n,n.return);break;case 27:case 5:yl(e,n),null===t&&4&r&&Ya(n),512&r&&qa(n,n.return);break;case 12:default:yl(e,n);break;case 13:yl(e,n),4&r&&cl(e,n);break;case 22:if(!(i=null!==n.memoizedState||Ja)){t=null!==t&&null!==t.memoizedState||Qa;var o=Ja,s=Qa;Ja=i,(Qa=t)&&!s?_l(e,n,!!(8772&n.subtreeFlags)):yl(e,n),Ja=o,Qa=s}512&r&&("manual"===n.memoizedProps.mode?qa(n,n.return):Va(n,n.return))}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ye(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,al=!1;function ll(e,t,n){for(n=n.child;null!==n;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ye,n)}catch(e){}switch(n.tag){case 26:Qa||Va(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Qa||Va(n,t);var r=sl,i=al;for(sl=n.stateNode,ll(e,t,n),t=(n=n.stateNode).attributes;t.length;)n.removeAttributeNode(t[0]);Ye(n),sl=r,al=i;break;case 5:Qa||Va(n,t);case 6:i=sl;var o=al;if(sl=null,ll(e,t,n),al=o,null!==(sl=i))if(al)try{e=sl,r=n.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)}catch(e){rc(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){rc(n,t,e)}break;case 18:null!==sl&&(al?(t=sl,n=n.stateNode,8===t.nodeType?oh(t.parentNode,n):1===t.nodeType&&oh(t,n),gd(t)):oh(sl,n.stateNode));break;case 4:r=sl,i=al,sl=n.stateNode.containerInfo,al=!0,ll(e,t,n),sl=r,al=i;break;case 0:case 11:case 14:case 15:Qa||Ga(2,n,t),Qa||Ga(4,n,t),ll(e,t,n);break;case 1:Qa||(Va(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&Wa(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:Qa||Va(n,t),Qa=(r=Qa)||null!==n.memoizedState,ll(e,t,n),Qa=r;break;default:ll(e,t,n)}}function cl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{gd(e)}catch(e){rc(t,t.return,e)}}function hl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new tl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new tl),t;default:throw Error(s(435,e.tag))}}(e);t.forEach((function(t){var r=lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}function dl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 27:case 5:sl=l.stateNode,al=!1;break e;case 3:case 4:sl=l.stateNode.containerInfo,al=!0;break e}l=l.return}if(null===sl)throw Error(s(160));ul(o,a,i),sl=null,al=!1,null!==(o=i.alternate)&&(o.return=null),i.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dl(t,e),gl(e),4&r&&(Ga(3,e,e.return),za(3,e),Ga(5,e,e.return));break;case 1:dl(t,e),gl(e),512&r&&(Qa||null===n||Va(n,n.return)),64&r&&Ja&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var i=fl;if(dl(t,e),gl(e),512&r&&(Qa||null===n||Va(n,n.return)),4&r){var o=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":(!(o=i.getElementsByTagName("title")[0])||o[Ve]||o[je]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),Yc(o,r,n),o[je]=e,Ze(o),r=o;break e;case"link":var a=kh("link","href",i).get(r+(n.href||""));if(a)for(var l=0;l<a.length;l++)if((o=a[l]).getAttribute("href")===(null==n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){a.splice(l,1);break t}Yc(o=i.createElement(r),r,n),i.head.appendChild(o);break;case"meta":if(a=kh("meta","content",i).get(r+(n.content||"")))for(l=0;l<a.length;l++)if((o=a[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){a.splice(l,1);break t}Yc(o=i.createElement(r),r,n),i.head.appendChild(o);break;default:throw Error(s(468,r))}o[je]=e,Ze(o),r=o}e.stateNode=r}else Th(i,e.type,e.stateNode);else e.stateNode=xh(i,r,e.memoizedProps);else o!==r?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===r?Th(i,e.type,e.stateNode):xh(i,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Ha(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(4&r&&null===e.alternate){i=e.stateNode,o=e.memoizedProps;try{for(var u=i.firstChild;u;){var c=u.nextSibling,h=u.nodeName;u[Ve]||"HEAD"===h||"BODY"===h||"SCRIPT"===h||"STYLE"===h||"LINK"===h&&"stylesheet"===u.rel.toLowerCase()||i.removeChild(u),u=c}for(var d=e.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);Yc(i,d,o),i[je]=e,i[Be]=o}catch(t){rc(e,e.return,t)}}case 5:if(dl(t,e),gl(e),512&r&&(Qa||null===n||Va(n,n.return)),32&e.flags){i=e.stateNode;try{xt(i,"")}catch(t){rc(e,e.return,t)}}4&r&&null!=e.stateNode&&Ha(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&r&&(el=!0);break;case 6:if(dl(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(s(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){rc(e,e.return,t)}}break;case 3:if(Mh=null,i=fl,fl=dh(t.containerInfo),dl(t,e),fl=i,gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{gd(t.containerInfo)}catch(t){rc(e,e.return,t)}el&&(el=!1,ml(e));break;case 4:r=fl,fl=dh(e.stateNode.containerInfo),dl(t,e),gl(e),fl=r;break;case 12:dl(t,e),gl(e);break;case 13:dl(t,e),gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(_u=le()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,hl(e,r));break;case 22:if(512&r&&(Qa||null===n||Va(n,n.return)),u=null!==e.memoizedState,c=null!==n&&null!==n.memoizedState,Ja=(h=Ja)||u,Qa=(d=Qa)||c,dl(t,e),Qa=d,Ja=h,gl(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&r&&(t._visibility=u?-2&t._visibility:1|t._visibility,u&&(t=Ja||Qa,null===n||c||t||vl(e)),null===e.memoizedProps||"manual"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,u)"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{a=c.stateNode;var p=null!=(l=c.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null;a.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){rc(c,c.return,e)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(e){rc(c,c.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,hl(e,n));break;case 19:dl(t,e),gl(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,hl(e,r));break;case 21:break;default:dl(t,e),gl(e)}}function gl(e){var t=e.flags;if(2&t){try{if(27!==e.tag){e:{for(var n=e.return;null!==n;){if($a(n)){var r=n;break e}n=n.return}throw Error(s(160))}switch(r.tag){case 27:var i=r.stateNode;Za(e,Ka(e),i);break;case 5:var o=r.stateNode;32&r.flags&&(xt(o,""),r.flags&=-33),Za(e,Ka(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Xa(e,Ka(e),a);break;default:throw Error(s(161))}}}catch(t){rc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ml(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;ml(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)il(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ga(4,t,t.return),vl(t);break;case 1:Va(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&Wa(t,t.return,n),vl(t);break;case 26:case 27:case 5:Va(t,t.return),vl(t);break;case 22:Va(t,t.return),null===t.memoizedState&&vl(t);break;default:vl(t)}e=e.sibling}}function _l(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,o=t,s=o.flags;switch(o.tag){case 0:case 11:case 15:_l(i,o,n),za(4,o);break;case 1:if(_l(i,o,n),"function"==typeof(i=(r=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(e){rc(r,r.return,e)}if(null!==(i=(r=o).updateQueue)){var a=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)ja(l[i],a)}catch(e){rc(r,r.return,e)}}n&&64&s&&Ua(o),qa(o,o.return);break;case 26:case 27:case 5:_l(i,o,n),n&&null===r&&4&s&&Ya(o),qa(o,o.return);break;case 12:default:_l(i,o,n);break;case 13:_l(i,o,n),n&&4&s&&cl(i,o);break;case 22:null===o.memoizedState&&_l(i,o,n),qa(o,o.return)}t=t.sibling}}function bl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Gi(n))}function wl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Gi(e))}function xl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,n,r),2048&i&&za(9,t);break;case 3:xl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Gi(e)));break;case 12:if(2048&i){xl(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,s=o.id,a=o.onPostCommit;"function"==typeof a&&a(s,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){rc(t,t.return,e)}}else xl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,null!==t.memoizedState?4&o._visibility?xl(e,t,n,r):Cl(e,t):4&o._visibility?xl(e,t,n,r):(o._visibility|=4,Sl(e,t,n,r,!!(10256&t.subtreeFlags))),2048&i&&bl(t.alternate,t);break;case 24:xl(e,t,n,r),2048&i&&wl(t.alternate,t);break;default:xl(e,t,n,r)}}function Sl(e,t,n,r,i){for(i=i&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var o=e,s=t,a=n,l=r,u=s.flags;switch(s.tag){case 0:case 11:case 15:Sl(o,s,a,l,i),za(8,s);break;case 23:break;case 22:var c=s.stateNode;null!==s.memoizedState?4&c._visibility?Sl(o,s,a,l,i):Cl(o,s):(c._visibility|=4,Sl(o,s,a,l,i)),i&&2048&u&&bl(s.alternate,s);break;case 24:Sl(o,s,a,l,i),i&&2048&u&&wl(s.alternate,s);break;default:Sl(o,s,a,l,i)}t=t.sibling}}function Cl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Cl(n,r),2048&i&&bl(r.alternate,r);break;case 24:Cl(n,r),2048&i&&wl(r.alternate,r);break;default:Cl(n,r)}t=t.sibling}}var Ml=8192;function kl(e){if(e.subtreeFlags&Ml)for(e=e.child;null!==e;)Tl(e),e=e.sibling}function Tl(e){switch(e.tag){case 26:kl(e),e.flags&Ml&&null!==e.memoizedState&&function(e,t,n){if(null===Oh)throw Error(s(475));var r=Oh;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var i=yh(n.href),o=e.querySelector(vh(i));if(o)return null!==(e=o._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=Rh.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=o,void Ze(o);o=e.ownerDocument||e,n=_h(n),(i=ch.get(i))&&Sh(n,i),Ze(o=o.createElement("link"));var a=o;a._p=new Promise((function(e,t){a.onload=e,a.onerror=t})),Yc(o,"link",n),t.instance=o}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(r.count++,t=Rh.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(fl,e.memoizedState,e.memoizedProps);break;case 5:default:kl(e);break;case 3:case 4:var t=fl;fl=dh(e.stateNode.containerInfo),kl(e),fl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Ml,Ml=16777216,kl(e),Ml=t):kl(e))}}function Pl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Ol(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Al(r,e)}Pl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Il(e),e=e.sibling}function Il(e){switch(e.tag){case 0:case 11:case 15:Ol(e),2048&e.flags&&Ga(9,e,e.return);break;case 3:case 12:default:Ol(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,Rl(e)):Ol(e)}}function Rl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Al(r,e)}Pl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:Ga(8,t,t.return),Rl(t);break;case 22:4&(n=t.stateNode)._visibility&&(n._visibility&=-5,Rl(t));break;default:Rl(t)}e=e.sibling}}function Al(e,t){for(;null!==nl;){var n=nl;switch(n.tag){case 0:case 11:case 15:Ga(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Gi(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,nl=r;else e:for(n=e;null!==nl;){var i=(r=nl).sibling,o=r.return;if(ol(r),r===n){nl=null;break e}if(null!==i){i.return=o,nl=i;break e}nl=o}}}function Ll(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nl(e,t,n,r){return new Ll(e,t,n,r)}function Dl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fl(e,t){var n=e.alternate;return null===n?((n=Nl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function jl(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Bl(e,t,n,r,i,o){var a=0;if(r=e,"function"==typeof e)Dl(e)&&(a=1);else if("string"==typeof e)a=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,K.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case h:return zl(n.children,i,o,t);case d:a=8,i|=24;break;case f:return(e=Nl(12,n,t,2|i)).elementType=f,e.lanes=o,e;case v:return(e=Nl(13,n,t,i)).elementType=v,e.lanes=o,e;case _:return(e=Nl(19,n,t,i)).elementType=_,e.lanes=o,e;case x:return Gl(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case p:case m:a=10;break e;case g:a=9;break e;case y:a=11;break e;case b:a=14;break e;case w:a=16,r=null;break e}a=29,n=Error(s(130,null===e?"null":typeof e,"")),r=null}return(t=Nl(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function zl(e,t,n,r){return(e=Nl(7,e,r,t)).lanes=n,e}function Gl(e,t,n,r){(e=Nl(22,e,r,t)).elementType=x,e.lanes=n;var i={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=i._current;if(null===e)throw Error(s(456));if(!(2&i._pendingVisibility)){var t=Pr(e,2);null!==t&&(i._pendingVisibility|=2,Ru(t,0,2))}},attach:function(){var e=i._current;if(null===e)throw Error(s(456));if(2&i._pendingVisibility){var t=Pr(e,2);null!==t&&(i._pendingVisibility&=-3,Ru(t,0,2))}}};return e.stateNode=i,e}function Ul(e,t,n){return(e=Nl(6,e,null,t)).lanes=n,e}function Wl(e,t,n){return(t=Nl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ql(e){e.flags|=4}function Vl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Ph(t)){if(null!==(t=Ti.current)&&((4194176&ru)===ru?null!==Pi:(62914560&ru)!==ru&&!(536870912&ru)||t!==Pi))throw di=li,ai;e.flags|=8192}}function Yl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Oe():536870912,e.lanes|=t,gu|=t)}function Hl(e,t){if(!Xr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $l(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=31457280&i.subtreeFlags,r|=31457280&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,n){var r=t.pendingProps;switch(Hr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return $l(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(Bi),ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ri(t)?ql(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Zr&&(Lu(Zr),Zr=null))),$l(t),null;case 26:return n=t.memoizedState,null===e?(ql(t),null!==n?($l(t),Vl(t,n)):($l(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ql(t),$l(t),Vl(t,n)):($l(t),t.flags&=-16777217):(e.memoizedProps!==r&&ql(t),$l(t),t.flags&=-16777217),null;case 27:ne(t),n=Z.current;var i=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ql(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return $l(t),null}e=K.current,ri(t)?ti(t):(e=uh(i,r,n),t.stateNode=e,ql(t))}return $l(t),null;case 5:if(ne(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ql(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return $l(t),null}if(e=K.current,ri(t))ti(t);else{switch(i=Kc(Z.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?i.createElement(n,{is:r.is}):i.createElement(n)}}e[je]=t,e[Be]=r;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(Yc(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ql(t)}}return $l(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ql(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=Z.current,ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=$r))switch(i.tag){case 27:case 5:r=i.memoizedProps}e[je]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Uc(e.nodeValue,n)))||ei(t)}else(e=Kc(e).createTextNode(r))[je]=t,t.stateNode=e}return $l(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=ri(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(s(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(s(317));i[je]=t}else ii(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$l(t),i=!1}else null!==Zr&&(Lu(Zr),Zr=null),i=!0;if(!i)return 256&t.flags?(Ai(t),t):(Ai(t),null)}if(Ai(t),128&t.flags)return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){i=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool);var o=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Yl(t,t.updateQueue),$l(t),null;case 4:return ee(),null===e&&Rc(t.stateNode.containerInfo),$l(t),null;case 10:return _a(t.type),$l(t),null;case 19:if(H(Li),null===(i=t.memoizedState))return $l(t),null;if(r=!!(128&t.flags),null===(o=i.rendering))if(r)Hl(i,!1);else{if(0!==cu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=Ni(e))){for(t.flags|=128,Hl(i,!1),e=o.updateQueue,t.updateQueue=e,Yl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)jl(n,e),n=n.sibling;return $(Li,1&Li.current|2),t.child}e=e.sibling}null!==i.tail&&le()>bu&&(t.flags|=128,r=!0,Hl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Ni(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Yl(t,e),Hl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!Xr)return $l(t),null}else 2*le()-i.renderingStartTime>bu&&536870912!==n&&(t.flags|=128,r=!0,Hl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,e=Li.current,$(Li,r?1&e|2:1&e),t):($l(t),null);case 22:case 23:return Ai(t),ki(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&($l(t),6&t.subtreeFlags&&(t.flags|=8192)):$l(t),null!==(n=t.updateQueue)&&Yl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&H($i),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(Bi),$l(t),null;case 25:return null}throw Error(s(156,t.tag))}function Xl(e,t){switch(Hr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return _a(Bi),ee(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(Ai(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));ii()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return H(Li),null;case 4:return ee(),null;case 10:return _a(t.type),null;case 22:case 23:return Ai(t),ki(),null!==e&&H($i),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return _a(Bi),null;default:return null}}function Zl(e,t){switch(Hr(t),t.tag){case 3:_a(Bi),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:Ai(t);break;case 19:H(Li);break;case 10:_a(t.type);break;case 22:case 23:Ai(t),ki(),null!==e&&H($i);break;case 24:_a(Bi)}}var Jl={getCacheForType:function(e){var t=Ca(Bi),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Ql="function"==typeof WeakMap?WeakMap:Map,eu=0,tu=null,nu=null,ru=0,iu=0,ou=null,su=!1,au=!1,lu=!1,uu=0,cu=0,hu=0,du=0,fu=0,pu=0,gu=0,mu=null,yu=null,vu=!1,_u=0,bu=1/0,wu=null,xu=null,Eu=!1,Su=null,Cu=0,Mu=0,ku=null,Tu=0,Pu=null;function Ou(){return 2&eu&&0!==ru?ru&-ru:null!==O.T?0!==qi?qi:wc():De()}function Iu(){0===pu&&(pu=536870912&ru&&!Xr?536870912:Pe());var e=Ti.current;return null!==e&&(e.flags|=32),pu}function Ru(e,t,n){(e===tu&&2===iu||null!==e.cancelPendingCommit)&&(zu(e,0),Fu(e,ru,pu,!1)),Re(e,n),2&eu&&e===tu||(e===tu&&(!(2&eu)&&(du|=n),4===cu&&Fu(e,ru,pu,!1)),gc(e))}function Au(e,t,n){if(6&eu)throw Error(s(327));for(var r=!n&&!(60&t)&&!(t&e.expiredLanes)||ke(e,t),i=r?function(e,t){var n=eu;eu|=2;var r=Uu(),i=Wu();tu!==e||ru!==t?(wu=null,bu=le()+500,zu(e,t)):au=ke(e,t);e:for(;;)try{if(0!==iu&&null!==nu){t=nu;var o=ou;t:switch(iu){case 1:iu=0,ou=null,Xu(e,t,o,1);break;case 2:if(ui(o)){iu=0,ou=null,Ku(t);break}t=function(){2===iu&&tu===e&&(iu=7),gc(e)},o.then(t,t);break e;case 3:iu=7;break e;case 4:iu=5;break e;case 7:ui(o)?(iu=0,ou=null,Ku(t)):(iu=0,ou=null,Xu(e,t,o,7));break;case 5:var a=null;switch(nu.tag){case 26:a=nu.memoizedState;case 5:case 27:var l=nu;if(!a||Ph(a)){iu=0,ou=null;var u=l.sibling;if(null!==u)nu=u;else{var c=l.return;null!==c?(nu=c,Zu(c)):nu=null}break t}}iu=0,ou=null,Xu(e,t,o,5);break;case 6:iu=0,ou=null,Xu(e,t,o,6);break;case 8:Bu(),cu=6;break e;default:throw Error(s(462))}}Hu();break}catch(t){Gu(e,t)}return ya=ma=null,O.H=r,O.A=i,eu=n,null!==nu?0:(tu=null,ru=0,Mr(),cu)}(e,t):Vu(e,t,!0),o=r;;){if(0===i){au&&!r&&Fu(e,t,0,!1);break}if(6===i)Fu(e,t,0,!su);else{if(n=e.current.alternate,o&&!Du(n)){i=Vu(e,t,!1),o=!1;continue}if(2===i){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=0!=(a=-536870913&e.pendingLanes)?a:536870912&a?536870912:0;if(0!==a){t=a;e:{var l=e;i=mu;var u=l.current.memoizedState.isDehydrated;if(u&&(zu(l,a).flags|=256),2!==(a=Vu(l,a,!1))){if(lu&&!u){l.errorRecoveryDisabledLanes|=o,du|=o,i=4;break e}o=yu,yu=i,null!==o&&Lu(o)}i=a}if(o=!1,2!==i)continue}}if(1===i){zu(e,0),Fu(e,t,0,!0);break}e:{switch(r=e,i){case 0:case 1:throw Error(s(345));case 4:if((4194176&t)===t){Fu(r,t,pu,!su);break e}break;case 2:yu=null;break;case 3:case 5:break;default:throw Error(s(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(o=_u+300-le())){if(Fu(r,t,pu,!su),0!==Me(r,0))break e;r.timeoutHandle=eh(Nu.bind(null,r,n,yu,wu,vu,t,pu,du,gu,su,2,-0,0),o)}else Nu(r,n,yu,wu,vu,t,pu,du,gu,su,0,-0,0)}}break}gc(e)}function Lu(e){null===yu?yu=e:yu.push.apply(yu,e)}function Nu(e,t,n,r,i,o,a,l,u,c,h,d,f){var p=t.subtreeFlags;if((8192&p||!(16785408&~p))&&(Oh={stylesheets:null,count:0,unsuspend:Ih},Tl(t),null!==(t=function(){if(null===Oh)throw Error(s(475));var e=Oh;return e.stylesheets&&0===e.count&&Lh(e,e.stylesheets),0<e.count?function(t){var n=setTimeout((function(){if(e.stylesheets&&Lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}),6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=t(Qu.bind(null,e,n,r,i,a,l,u,1,d,f)),void Fu(e,o,a,!c);Qu(e,n,r,i,a,l,u)}function Du(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!$n(o(),i))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fu(e,t,n,r){t&=~fu,t&=~du,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-be(i),s=1<<o;r[o]=-1,i&=~s}0!==n&&Ae(e,n,t)}function ju(){return!!(6&eu)||(mc(0,!1),!1)}function Bu(){if(null!==nu){if(0===iu)var e=nu.return;else ya=ma=null,vo(e=nu),pi=null,gi=0,e=nu;for(;null!==e;)Zl(e.alternate,e),e=e.return;nu=null}}function zu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,th(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Bu(),tu=e,nu=n=Fl(e.current,null),ru=t,iu=0,ou=null,su=!1,au=ke(e,t),lu=!1,gu=pu=fu=du=hu=cu=0,yu=mu=null,vu=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-be(r),o=1<<i;t|=e[i],r&=~o}return uu=t,Mr(),n}function Gu(e,t){Qi=null,O.H=Cs,t===si?(t=fi(),iu=3):t===ai?(t=fi(),iu=4):iu=t===Ws?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,ou=t,null===nu&&(cu=1,js(e,Lr(t,e.current)))}function Uu(){var e=O.H;return O.H=Cs,null===e?Cs:e}function Wu(){var e=O.A;return O.A=Jl,e}function qu(){cu=4,su||(4194176&ru)!==ru&&null!==Ti.current||(au=!0),!(134217727&hu)&&!(134217727&du)||null===tu||Fu(tu,ru,pu,!1)}function Vu(e,t,n){var r=eu;eu|=2;var i=Uu(),o=Wu();tu===e&&ru===t||(wu=null,zu(e,t)),t=!1;var s=cu;e:for(;;)try{if(0!==iu&&null!==nu){var a=nu,l=ou;switch(iu){case 8:Bu(),s=6;break e;case 3:case 2:case 6:null===Ti.current&&(t=!0);var u=iu;if(iu=0,ou=null,Xu(e,a,l,u),n&&au){s=0;break e}break;default:u=iu,iu=0,ou=null,Xu(e,a,l,u)}}Yu(),s=cu;break}catch(t){Gu(e,t)}return t&&e.shellSuspendCounter++,ya=ma=null,eu=r,O.H=i,O.A=o,null===nu&&(tu=null,ru=0,Mr()),s}function Yu(){for(;null!==nu;)$u(nu)}function Hu(){for(;null!==nu&&!se();)$u(nu)}function $u(e){var t=pa(e.alternate,e,uu);e.memoizedProps=e.pendingProps,null===t?Zu(e):nu=t}function Ku(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qs(n,t,t.pendingProps,t.type,void 0,ru);break;case 11:t=Qs(n,t,t.pendingProps,t.type.render,t.ref,ru);break;case 5:vo(t);default:Zl(n,t),t=pa(n,t=nu=jl(t,uu),uu)}e.memoizedProps=e.pendingProps,null===t?Zu(e):nu=t}function Xu(e,t,n,r){ya=ma=null,vo(t),pi=null,gi=0;var i=t.return;try{if(function(e,t,n,r,i){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&xa(t,n,i,!0),null!==(n=Ti.current)){switch(n.tag){case 13:return null===Pi?qu():null===n.alternate&&0===cu&&(cu=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===li?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),ic(e,r,i)),!1;case 22:return n.flags|=65536,r===li?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),ic(e,r,i)),!1}throw Error(s(435,n.tag))}return ic(e,r,i),qu(),!1}if(Xr)return null!==(t=Ti.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Qr&&oi(Lr(e=Error(s(422),{cause:r}),n))):(r!==Qr&&oi(Lr(t=Error(s(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,r=Lr(r,n),La(e,i=zs(e.stateNode,r,i)),4!==cu&&(cu=2)),!1;var o=Error(s(520),{cause:r});if(o=Lr(o,n),null===mu?mu=[o]:mu.push(o),4!==cu&&(cu=2),null===t)return!0;r=Lr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,La(n,e=zs(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==xu&&xu.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,Us(i=Gs(i),e,n,r),La(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,ru))return cu=1,js(e,Lr(n,e.current)),void(nu=null)}catch(t){if(null!==i)throw nu=i,t;return cu=1,js(e,Lr(n,e.current)),void(nu=null)}32768&t.flags?(Xr||1===r?e=!0:au||536870912&ru?e=!1:(su=e=!0,(2===r||3===r||6===r)&&null!==(r=Ti.current)&&13===r.tag&&(r.flags|=16384)),Ju(t,e)):Zu(t)}function Zu(e){var t=e;do{if(32768&t.flags)return void Ju(t,su);e=t.return;var n=Kl(t.alternate,t,uu);if(null!==n)return void(nu=n);if(null!==(t=t.sibling))return void(nu=t);nu=t=e}while(null!==t);0===cu&&(cu=5)}function Ju(e,t){do{var n=Xl(e.alternate,e);if(null!==n)return n.flags&=32767,void(nu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(nu=e);nu=e=n}while(null!==e);cu=6,nu=null}function Qu(e,t,n,r,i,o,a,l,u,c){var h=O.T,d=U.p;try{U.p=2,O.T=null,function(e,t,n,r,i,o,a,l){do{tc()}while(null!==Su);if(6&eu)throw Error(s(327));var u=e.finishedWork;if(r=e.finishedLanes,null===u)return null;if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var c=u.lanes|u.childLanes;if(function(e,t,n,r,i,o){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var a=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-be(n),h=1<<c;a[c]=0,l[c]=-1;var d=u[c];if(null!==d)for(u[c]=null,c=0;c<d.length;c++){var f=d[c];null!==f&&(f.lane&=-536870913)}n&=~h}0!==r&&Ae(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(s&~t))}(e,r,c|=Cr,o,a,l),e===tu&&(nu=tu=null,ru=0),!(10256&u.subtreeFlags)&&!(10256&u.flags)||Eu||(Eu=!0,Mu=c,ku=n,ie(de,(function(){return tc(),null}))),n=!!(15990&u.flags),15990&u.subtreeFlags||n?(n=O.T,O.T=null,o=U.p,U.p=2,a=eu,eu|=4,function(e,t){if(e=e.containerInfo,Hc=qh,er(e=Qn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,h=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==i&&3!==d.nodeType||(l=a+i),d!==o||0!==r&&3!==d.nodeType||(u=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===i&&(l=a),f===o&&++h===r&&(u=a),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($c={focusedElem:e,selectionRange:n},qh=!1,nl=t;null!==nl;)if(e=(t=nl).child,1028&t.subtreeFlags&&null!==e)e.return=t,nl=e;else for(;null!==nl;){switch(o=(t=nl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==o){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var g=As(n.type,i,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(g,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){rc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))sh(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sh(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(s(163))}if(null!==(e=t.sibling)){e.return=t.return,nl=e;break}nl=t.return}g=rl,rl=!1}(e,u),pl(u,e),tr($c,e.containerInfo),qh=!!Hc,$c=Hc=null,e.current=u,il(e,u.alternate,u),ae(),eu=a,U.p=o,O.T=n):e.current=u,Eu?(Eu=!1,Su=e,Cu=r):ec(e,c),0===(c=e.pendingLanes)&&(xu=null),function(e){if(ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ye,e,void 0,!(128&~e.current.flags))}catch(e){}}(u.stateNode),gc(e),null!==t)for(i=e.onRecoverableError,u=0;u<t.length;u++)i((c=t[u]).value,{componentStack:c.stack});!!(3&Cu)&&tc(),c=e.pendingLanes,4194218&r&&42&c?e===Pu?Tu++:(Tu=0,Pu=e):Tu=0,mc(0,!1)}(e,t,n,r,d,i,o,a)}finally{O.T=h,U.p=d}}function ec(e,t){0==(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Gi(t))}function tc(){if(null!==Su){var e=Su,t=Mu;Mu=0;var n=Ne(Cu),r=O.T,i=U.p;try{if(U.p=32>n?32:n,O.T=null,null===Su)var o=!1;else{n=ku,ku=null;var a=Su,l=Cu;if(Su=null,Cu=0,6&eu)throw Error(s(331));var u=eu;if(eu|=4,Il(a.current),El(a,a.current,l,n),eu=u,mc(0,!1),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,a)}catch(e){}o=!0}return o}finally{U.p=i,O.T=r,ec(e,t)}}return!1}function nc(e,t,n){t=Lr(n,t),null!==(e=Ra(e,t=zs(e.stateNode,t,2),2))&&(Re(e,2),gc(e))}function rc(e,t,n){if(3===e.tag)nc(e,e,n);else for(;null!==t;){if(3===t.tag){nc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===xu||!xu.has(r))){e=Lr(n,e),null!==(r=Ra(t,n=Gs(2),2))&&(Us(n,r,t,e),Re(r,2),gc(r));break}}t=t.return}}function ic(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ql;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(lu=!0,i.add(n),e=oc.bind(null,e,t,n),t.then(e,e))}function oc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tu===e&&(ru&n)===n&&(4===cu||3===cu&&(62914560&ru)===ru&&300>le()-_u?!(2&eu)&&zu(e,0):fu|=n,gu===ru&&(gu=0)),gc(e)}function sc(e,t){0===t&&(t=Oe()),null!==(e=Pr(e,t))&&(Re(e,t),gc(e))}function ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),sc(e,n)}function lc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),sc(e,n)}var uc=null,cc=null,hc=!1,dc=!1,fc=!1,pc=0;function gc(e){var t;e!==cc&&null===e.next&&(null===cc?uc=cc=e:cc=cc.next=e),dc=!0,hc||(hc=!0,t=yc,rh((function(){6&eu?ie(ce,t):t()})))}function mc(e,t){if(!fc&&dc){fc=!0;do{for(var n=!1,r=uc;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var s=r.suspendedLanes,a=r.pingedLanes;o=(1<<31-be(42|e)+1)-1,o=201326677&(o&=i&~(s&~a))?201326677&o|1:o?2|o:0}0!==o&&(n=!0,bc(r,o))}else o=ru,!(3&(o=Me(r,r===tu?o:0)))||ke(r,o)||(n=!0,bc(r,o));r=r.next}}while(n);fc=!1}}function yc(){dc=hc=!1;var e,t=0;0!==pc&&(((e=window.event)&&"popstate"===e.type?e!==Qc&&(Qc=e,!0):(Qc=null,!1))&&(t=pc),pc=0);for(var n=le(),r=null,i=uc;null!==i;){var o=i.next,s=vc(i,n);0===s?(i.next=null,null===r?uc=o:r.next=o,null===o&&(cc=r)):(r=i,(0!==t||3&s)&&(dc=!0)),i=o}mc(t,!1)}function vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var s=31-be(o),a=1<<s,l=i[s];-1===l?a&n&&!(a&r)||(i[s]=Te(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}if(n=ru,n=Me(e,e===(t=tu)?n:0),r=e.callbackNode,0===n||e===t&&2===iu||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||ke(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),Ne(n)){case 2:case 8:n=he;break;case 32:default:n=de;break;case 268435456:n=pe}return r=_c.bind(null,e),n=ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function _c(e,t){var n=e.callbackNode;if(tc()&&e.callbackNode!==n)return null;var r=ru;return 0===(r=Me(e,e===tu?r:0))?null:(Au(e,r,t),vc(e,le()),null!=e.callbackNode&&e.callbackNode===n?_c.bind(null,e):null)}function bc(e,t){if(tc())return null;Au(e,t,!0)}function wc(){return 0===pc&&(pc=Pe()),pc}function xc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pt(""+e)}function Ec(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Sc=0;Sc<wr.length;Sc++){var Cc=wr[Sc];xr(Cc.toLowerCase(),"on"+(Cc[0].toUpperCase()+Cc.slice(1)))}xr(fr,"onAnimationEnd"),xr(pr,"onAnimationIteration"),xr(gr,"onAnimationStart"),xr("dblclick","onDoubleClick"),xr("focusin","onFocus"),xr("focusout","onBlur"),xr(mr,"onTransitionRun"),xr(yr,"onTransitionStart"),xr(vr,"onTransitionCancel"),xr(_r,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),et("onBeforeInput",["compositionend","keypress","textInput","paste"]),et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mc));function Tc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=u;try{o(i)}catch(e){Ls(e)}i.currentTarget=null,o=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=u;try{o(i)}catch(e){Ls(e)}i.currentTarget=null,o=l}}}}function Pc(e,t){var n=t[Ge];void 0===n&&(n=t[Ge]=new Set);var r=e+"__bubble";n.has(r)||(Ac(t,e,2,!1),n.add(r))}function Oc(e,t,n){var r=0;t&&(r|=4),Ac(n,e,r,t)}var Ic="_reactListening"+Math.random().toString(36).slice(2);function Rc(e){if(!e[Ic]){e[Ic]=!0,Je.forEach((function(t){"selectionchange"!==t&&(kc.has(t)||Oc(t,!1,e),Oc(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ic]||(t[Ic]=!0,Oc("selectionchange",!1,t))}}function Ac(e,t,n,r){switch(Zh(t)){case 2:var i=Vh;break;case 8:i=Yh;break;default:i=Hh}n=i.bind(null,t,n,e),i=void 0,!jt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lc(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=He(a)))return;if(5===(l=s.tag)||6===l||26===l||27===l){r=o=s;continue e}a=a.parentNode}}r=r.return}Dt((function(){var r=o,i=It(n),s=[];e:{var a=br.get(e);if(void 0!==a){var l=Jt,u=e;switch(e){case"keypress":if(0===qt(n))break e;case"keydown":case"keyup":l=pn;break;case"focusin":u="focus",l=on;break;case"focusout":u="blur",l=on;break;case"beforeblur":case"afterblur":l=on;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=rn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=mn;break;case fr:case pr:case gr:l=sn;break;case _r:l=yn;break;case"scroll":case"scrollend":l=en;break;case"wheel":l=vn;break;case"copy":case"cut":case"paste":l=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=gn;break;case"toggle":case"beforetoggle":l=_n}var c=!!(4&t),h=!c&&("scroll"===e||"scrollend"===e),d=c?null!==a?a+"Capture":null:a;c=[];for(var f,p=r;null!==p;){var g=p;if(f=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===f||null===d||null!=(g=Ft(p,d))&&c.push(Nc(p,g,f)),h)break;p=p.return}0<c.length&&(a=new l(a,u,null,n,i),s.push({event:a,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===Ot||!(u=n.relatedTarget||n.fromElement)||!He(u)&&!u[ze])&&(l||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?He(u):null)&&(h=F(u),c=u.tag,u!==h||5!==c&&27!==c&&6!==c)&&(u=null)):(l=null,u=r),l!==u)){if(c=nn,g="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=gn,g="onPointerLeave",d="onPointerEnter",p="pointer"),h=null==l?a:Ke(l),f=null==u?a:Ke(u),(a=new c(g,p+"leave",l,n,i)).target=h,a.relatedTarget=f,g=null,He(i)===r&&((c=new c(d,p+"enter",u,n,i)).target=f,c.relatedTarget=h,g=c),h=g,l&&u)e:{for(d=u,p=0,f=c=l;f;f=Fc(f))p++;for(f=0,g=d;g;g=Fc(g))f++;for(;0<p-f;)c=Fc(c),p--;for(;0<f-p;)d=Fc(d),f--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Fc(c),d=Fc(d)}c=null}else c=null;null!==l&&jc(s,a,l,c,!1),null!==u&&null!==h&&jc(s,h,u,c,!0)}if("select"===(l=(a=r?Ke(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Fn;else if(In(a))if(jn)m=Hn;else{m=Vn;var y=qn}else!(l=a.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==a.type&&"radio"!==a.type?r&&Mt(r.elementType)&&(m=Fn):m=Yn;switch(m&&(m=m(e,r))?Rn(s,m,n,i):(y&&y(e,a,r),"focusout"===e&&r&&"number"===a.type&&null!=r.memoizedProps.value&&vt(a,"number",a.value)),y=r?Ke(r):window,e){case"focusin":(In(y)||"true"===y.contentEditable)&&(rr=y,ir=r,or=null);break;case"focusout":or=ir=rr=null;break;case"mousedown":sr=!0;break;case"contextmenu":case"mouseup":case"dragend":sr=!1,ar(s,n,i);break;case"selectionchange":if(nr)break;case"keydown":case"keyup":ar(s,n,i)}var v;if(wn)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Pn?kn(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(Sn&&"ko"!==n.locale&&(Pn||"onCompositionStart"!==_?"onCompositionEnd"===_&&Pn&&(v=Wt()):(Gt="value"in(zt=i)?zt.value:zt.textContent,Pn=!0)),0<(y=Dc(r,_)).length&&(_=new ln(_,e,null,n,i),s.push({event:_,listeners:y}),(v||null!==(v=Tn(n)))&&(_.data=v))),(v=En?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(Mn=!0,Cn);case"textInput":return(e=t.data)===Cn&&Mn?null:e;default:return null}}(e,n):function(e,t){if(Pn)return"compositionend"===e||!wn&&kn(e,t)?(e=Wt(),Ut=Gt=zt=null,Pn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(_=Dc(r,"onBeforeInput")).length&&(y=new ln("onBeforeInput","beforeinput",null,n,i),s.push({event:y,listeners:_}),y.data=v),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var o=xc((i[Be]||null).action),s=r.submitter;s&&null!==(t=(t=s[Be]||null)?xc(t.formAction):s.getAttribute("formAction"))&&(o=t,s=null);var a=new Jt("action","action",null,r,i);e.push({event:a,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==pc){var e=s?Ec(i,s):new FormData(i);hs(n,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(a.preventDefault(),e=s?Ec(i,s):new FormData(i),hs(n,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(s,e,r,n,i)}Tc(s,t)}))}function Nc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dc(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=Ft(e,n))&&r.unshift(Nc(e,i,o)),null!=(i=Ft(e,t))&&r.push(Nc(e,i,o))),e=e.return}return r}function Fc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function jc(e,t,n,r,i){for(var o=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(a=a.tag,null!==l&&l===r)break;5!==a&&26!==a&&27!==a||null===u||(l=u,i?null!=(u=Ft(n,o))&&s.unshift(Nc(n,u,l)):i||null!=(u=Ft(n,o))&&s.push(Nc(n,u,l))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Bc=/\r\n?/g,zc=/\u0000|\uFFFD/g;function Gc(e){return("string"==typeof e?e:""+e).replace(Bc,"\n").replace(zc,"")}function Uc(e,t){return t=Gc(t),Gc(e)===t}function Wc(){}function qc(e,t,n,r,i,o){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||xt(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&xt(e,""+r);break;case"className":at(e,"class",r);break;case"tabIndex":at(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":at(e,n,r);break;case"style":Ct(e,r,o);break;case"data":if("object"!==t){at(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&qc(e,t,"name",i.name,i,null),qc(e,t,"formEncType",i.formEncType,i,null),qc(e,t,"formMethod",i.formMethod,i,null),qc(e,t,"formTarget",i.formTarget,i,null)):(qc(e,t,"encType",i.encType,i,null),qc(e,t,"method",i.method,i,null),qc(e,t,"target",i.target,i,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Wc);break;case"onScroll":null!=r&&Pc("scroll",e);break;case"onScrollEnd":null!=r&&Pc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Pt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Pc("beforetoggle",e),Pc("toggle",e),st(e,"popover",r);break;case"xlinkActuate":lt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":lt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":lt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":lt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":lt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":lt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":lt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":lt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":lt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":st(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&st(e,n=kt.get(n)||n,r)}}function Vc(e,t,n,r,i,o){switch(n){case"style":Ct(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(s(60));e.innerHTML=n}}break;case"children":"string"==typeof r?xt(e,r):("number"==typeof r||"bigint"==typeof r)&&xt(e,""+r);break;case"onScroll":null!=r&&Pc("scroll",e);break;case"onScrollEnd":null!=r&&Pc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Wc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Qe.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(o=null!=(o=e[Be]||null)?o[n]:null)&&e.removeEventListener(t,o,i),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):st(e,n,r):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i)))}}function Yc(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pc("error",e),Pc("load",e);var r,i=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(null!=a)switch(r){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:qc(e,t,r,a,n,null)}}return o&&qc(e,t,"srcSet",n.srcSet,n,null),void(i&&qc(e,t,"src",n.src,n,null));case"input":Pc("invalid",e);var l=r=a=o=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var h=n[i];if(null!=h)switch(i){case"name":o=h;break;case"type":a=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":r=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(s(137,t));break;default:qc(e,t,i,h,n,null)}}return yt(e,r,l,u,c,a,o,!1),void ht(e);case"select":for(o in Pc("invalid",e),i=a=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":a=l;break;case"multiple":i=l;default:qc(e,t,o,l,n,null)}return t=r,n=a,e.multiple=!!i,void(null!=t?_t(e,!!i,t,!1):null!=n&&_t(e,!!i,n,!0));case"textarea":for(a in Pc("invalid",e),r=o=i=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":i=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(s(91));break;default:qc(e,t,a,l,n,null)}return wt(e,i,o,r),void ht(e);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(i=n[u])&&("selected"===u?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:qc(e,t,u,i,n,null));return;case"dialog":Pc("cancel",e),Pc("close",e);break;case"iframe":case"object":Pc("load",e);break;case"video":case"audio":for(i=0;i<Mc.length;i++)Pc(Mc[i],e);break;case"image":Pc("error",e),Pc("load",e);break;case"details":Pc("toggle",e);break;case"embed":case"source":case"link":Pc("error",e),Pc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:qc(e,t,c,i,n,null)}return;default:if(Mt(t)){for(h in n)n.hasOwnProperty(h)&&void 0!==(i=n[h])&&Vc(e,t,h,i,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(i=n[l])&&qc(e,t,l,i,n,null)}var Hc=null,$c=null;function Kc(e){return 9===e.nodeType?e:e.ownerDocument}function Xc(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zc(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function Jc(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Qc=null,eh="function"==typeof setTimeout?setTimeout:void 0,th="function"==typeof clearTimeout?clearTimeout:void 0,nh="function"==typeof Promise?Promise:void 0,rh="function"==typeof queueMicrotask?queueMicrotask:void 0!==nh?function(e){return nh.resolve(null).then(e).catch(ih)}:eh;function ih(e){setTimeout((function(){throw e}))}function oh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void gd(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);gd(t)}function sh(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":sh(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function ah(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}function lh(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function uh(e,t,n){switch(t=Kc(n),e){case"html":if(!(e=t.documentElement))throw Error(s(452));return e;case"head":if(!(e=t.head))throw Error(s(453));return e;case"body":if(!(e=t.body))throw Error(s(454));return e;default:throw Error(s(451))}}var ch=new Map,hh=new Set;function dh(e){return"function"==typeof e.getRootNode?e.getRootNode():e.ownerDocument}var fh=U.d;U.d={f:function(){var e=fh.f(),t=ju();return e||t},r:function(e){var t=$e(e);null!==t&&5===t.tag&&"form"===t.type?fs(t):fh.r(e)},D:function(e){fh.D(e),gh("dns-prefetch",e,null)},C:function(e,t){fh.C(e,t),gh("preconnect",e,t)},L:function(e,t,n){fh.L(e,t,n);var r=ph;if(r&&e&&t){var i='link[rel="preload"][as="'+gt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+gt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(i+='[imagesizes="'+gt(n.imageSizes)+'"]')):i+='[href="'+gt(e)+'"]';var o=i;switch(t){case"style":o=yh(e);break;case"script":o=bh(e)}ch.has(o)||(e=I({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),ch.set(o,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(vh(o))||"script"===t&&r.querySelector(wh(o))||(Yc(t=r.createElement("link"),"link",e),Ze(t),r.head.appendChild(t)))}},m:function(e,t){fh.m(e,t);var n=ph;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+gt(r)+'"][href="'+gt(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=bh(e)}if(!ch.has(o)&&(e=I({rel:"modulepreload",href:e},t),ch.set(o,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wh(o)))return}Yc(r=n.createElement("link"),"link",e),Ze(r),n.head.appendChild(r)}}},X:function(e,t){fh.X(e,t);var n=ph;if(n&&e){var r=Xe(n).hoistableScripts,i=bh(e),o=r.get(i);o||((o=n.querySelector(wh(i)))||(e=I({src:e,async:!0},t),(t=ch.get(i))&&Ch(e,t),Ze(o=n.createElement("script")),Yc(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,t,n){fh.S(e,t,n);var r=ph;if(r&&e){var i=Xe(r).hoistableStyles,o=yh(e);t=t||"default";var s=i.get(o);if(!s){var a={loading:0,preload:null};if(s=r.querySelector(vh(o)))a.loading=5;else{e=I({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ch.get(o))&&Sh(e,n);var l=s=r.createElement("link");Ze(l),Yc(l,"link",e),l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),l.addEventListener("load",(function(){a.loading|=1})),l.addEventListener("error",(function(){a.loading|=2})),a.loading|=4,Eh(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:a},i.set(o,s)}}},M:function(e,t){fh.M(e,t);var n=ph;if(n&&e){var r=Xe(n).hoistableScripts,i=bh(e),o=r.get(i);o||((o=n.querySelector(wh(i)))||(e=I({src:e,async:!0,type:"module"},t),(t=ch.get(i))&&Ch(e,t),Ze(o=n.createElement("script")),Yc(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var ph="undefined"==typeof document?null:document;function gh(e,t,n){var r=ph;if(r&&"string"==typeof t&&t){var i=gt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof n&&(i+='[crossorigin="'+n+'"]'),hh.has(i)||(hh.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(Yc(t=r.createElement("link"),"link",e),Ze(t),r.head.appendChild(t)))}}function mh(e,t,n,r){var i,o,a,l,u=(u=Z.current)?dh(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=yh(n.href),(r=(n=Xe(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=yh(n.href);var c=Xe(u).hoistableStyles,h=c.get(e);if(h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=u.querySelector(vh(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ch.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ch.set(e,n),c||(i=u,o=e,a=n,l=h.state,i.querySelector('link[rel="preload"][as="style"]['+o+"]")?l.loading=1:(o=i.createElement("link"),l.preload=o,o.addEventListener("load",(function(){return l.loading|=1})),o.addEventListener("error",(function(){return l.loading|=2})),Yc(o,"link",a),Ze(o),i.head.appendChild(o))))),t&&null===r)throw Error(s(528,""));return h}if(t&&null!==r)throw Error(s(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=bh(n),(r=(n=Xe(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function yh(e){return'href="'+gt(e)+'"'}function vh(e){return'link[rel="stylesheet"]['+e+"]"}function _h(e){return I({},e,{"data-precedence":e.precedence,precedence:null})}function bh(e){return'[src="'+gt(e)+'"]'}function wh(e){return"script[async]"+e}function xh(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+gt(n.href)+'"]');if(r)return t.instance=r,Ze(r),r;var i=I({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ze(r=(e.ownerDocument||e).createElement("style")),Yc(r,"style",i),Eh(r,n.precedence,e),t.instance=r;case"stylesheet":i=yh(n.href);var o=e.querySelector(vh(i));if(o)return t.state.loading|=4,t.instance=o,Ze(o),o;r=_h(n),(i=ch.get(i))&&Sh(r,i),Ze(o=(e.ownerDocument||e).createElement("link"));var a=o;return a._p=new Promise((function(e,t){a.onload=e,a.onerror=t})),Yc(o,"link",r),t.state.loading|=4,Eh(o,n.precedence,e),t.instance=o;case"script":return o=bh(n.src),(i=e.querySelector(wh(o)))?(t.instance=i,Ze(i),i):(r=n,(i=ch.get(o))&&Ch(r=I({},n),i),Ze(i=(e=e.ownerDocument||e).createElement("script")),Yc(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(s(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Eh(r,n.precedence,e));return t.instance}function Eh(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,s=0;s<r.length;s++){var a=r[s];if(a.dataset.precedence===t)o=a;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Sh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Ch(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Mh=null;function kh(e,t,n){if(null===Mh){var r=new Map,i=Mh=new Map;i.set(n,r)}else(r=(i=Mh).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Ve]||o[je]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var s=o.getAttribute(t)||"";s=e+s;var a=r.get(s);a?a.push(o):r.set(s,[o])}}return r}function Th(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Ph(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Oh=null;function Ih(){}function Rh(){if(this.count--,0===this.count)if(this.stylesheets)Lh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Ah=null;function Lh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Ah=new Map,t.forEach(Nh,e),Ah=null,Rh.call(e))}function Nh(e,t){if(!(4&t.state.loading)){var n=Ah.get(e);if(n)var r=n.get(null);else{n=new Map,Ah.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var s=i[o];"LINK"!==s.nodeName&&"not all"===s.getAttribute("media")||(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}s=(i=t.instance).getAttribute("data-precedence"),(o=n.get(s)||r)===r&&n.set(null,i),n.set(s,i),this.count++,r=Rh.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var Dh={$$typeof:m,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Fh(e,t,n,r,i,o,s,a){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ie(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ie(0),this.hiddenUpdates=Ie(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function jh(e,t,n,r,i,o,s,a,l,u,c,h){return e=new Fh(e,t,n,s,a,l,u,h),t=1,!0===o&&(t|=24),o=Nl(3,null,null,t),e.current=o,o.stateNode=e,(t=zi()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},Pa(o),e}function Bh(e){return e?e=Rr:Rr}function zh(e,t,n,r,i,o){i=Bh(i),null===r.context?r.context=i:r.pendingContext=i,(r=Ia(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=Ra(e,r,t))&&(Ru(n,0,t),Aa(n,e,t))}function Gh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Uh(e,t){Gh(e,t),(e=e.alternate)&&Gh(e,t)}function Wh(e){if(13===e.tag){var t=Pr(e,67108864);null!==t&&Ru(t,0,67108864),Uh(e,67108864)}}var qh=!0;function Vh(e,t,n,r){var i=O.T;O.T=null;var o=U.p;try{U.p=2,Hh(e,t,n,r)}finally{U.p=o,O.T=i}}function Yh(e,t,n,r){var i=O.T;O.T=null;var o=U.p;try{U.p=8,Hh(e,t,n,r)}finally{U.p=o,O.T=i}}function Hh(e,t,n,r){if(qh){var i=$h(r);if(null===i)Lc(e,t,r,Kh,n),sd(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Qh=ad(Qh,e,t,n,r,i),!0;case"dragenter":return ed=ad(ed,e,t,n,r,i),!0;case"mouseover":return td=ad(td,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return nd.set(o,ad(nd.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,rd.set(o,ad(rd.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(sd(e,r),4&t&&-1<od.indexOf(e)){for(;null!==i;){var o=$e(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var s=Ce(o.pendingLanes);if(0!==s){var a=o;for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var l=1<<31-be(s);a.entanglements[1]|=l,s&=~l}gc(o),!(6&eu)&&(bu=le()+500,mc(0,!1))}}break;case 13:null!==(a=Pr(o,2))&&Ru(a,0,2),ju(),Uh(o,2)}if(null===(o=$h(r))&&Lc(e,t,r,Kh,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Lc(e,t,r,null,n)}}function $h(e){return Xh(e=It(e))}var Kh=null;function Xh(e){if(Kh=null,null!==(e=He(e))){var t=F(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=j(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Kh=e,null}function Zh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 2,155 bytes, line 3
3:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case ce:return 2;case he:return 8;case de:case fe:return 32;case pe:return 268435456;default:return 32}default:return 32}}var Jh=!1,Qh=null,ed=null,td=null,nd=new Map,rd=new Map,id=[],od="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function sd(e,t){switch(e){case"focusin":case"focusout":Qh=null;break;case"dragenter":case"dragleave":ed=null;break;case"mouseover":case"mouseout":td=null;break;case"pointerover":case"pointerout":nd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rd.delete(t.pointerId)}}function ad(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=$e(t))&&Wh(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function ld(e){var t=He(e.target);if(null!==t){var n=F(t);
vendor: 4,898 bytes, line 3
3if(null!==n)if(13===(t=n.tag)){if(null!==(t=j(n)))return e.blockedOn=t,void function(e){var t=U.p;try{return U.p=e,function(){if(13===n.tag){var e=Ou(),t=Pr(n,e);null!==t&&Ru(t,0,e),Uh(n,e)}}()}finally{U.p=t}}(e.priority)}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function ud(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$h(e.nativeEvent);if(null!==n)return null!==(t=$e(n))&&Wh(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ot=r,n.target.dispatchEvent(r),Ot=null,t.shift()}return!0}function cd(e,t,n){ud(e)&&n.delete(t)}function hd(){Jh=!1,null!==Qh&&ud(Qh)&&(Qh=null),null!==ed&&ud(ed)&&(ed=null),null!==td&&ud(td)&&(td=null),nd.forEach(cd),rd.forEach(cd)}function dd(e,t){e.blockedOn===t&&(e.blockedOn=null,Jh||(Jh=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,hd)))}var fd=null;function pd(e){fd!==e&&(fd=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,(function(){fd===e&&(fd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!=typeof r){if(null===Xh(r||n))continue;break}var o=$e(n);null!==o&&(e.splice(t,3),t-=3,hs(o,{pending:!0,data:i,method:n.method,action:r},r,i))}})))}function gd(e){function t(t){return dd(t,e)}null!==Qh&&dd(Qh,e),null!==ed&&dd(ed,e),null!==td&&dd(td,e),nd.forEach(t),rd.forEach(t);for(var n=0;n<id.length;n++){var r=id[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<id.length&&null===(n=id[0]).blockedOn;)ld(n),null===n.blockedOn&&id.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],s=i[Be]||null;if("function"==typeof o)s||pd(n);else if(s){var a=null;if(o&&o.hasAttribute("formAction")){if(i=o,s=o[Be]||null)a=s.formAction;else if(null!==Xh(i))continue}else a=s.action;"function"==typeof a?n[r+1]=a:(n.splice(r,3),r-=3),pd(n)}}}function md(e){this._internalRoot=e}function yd(e){this._internalRoot=e}yd.prototype.render=md.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));zh(t.current,Ou(),e,t,null,null)},yd.prototype.unmount=md.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;0===e.tag&&tc(),zh(e.current,2,null,e,null,null),ju(),t[ze]=null}},yd.prototype.unstable_scheduleHydration=function(e){if(e){var t=De();e={blockedOn:null,target:e,priority:t};for(var n=0;n<id.length&&0!==t&&t<id[n].priority;n++);id.splice(n,0,e),0===n&&ld(e)}};var vd=i.version;if("19.0.0"!==vd)throw Error(s(527,vd,"19.0.0"));U.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=F(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return B(i),e;if(o===r)return B(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?z(e):null)?null:e.stateNode};var _d={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:O,findFiberByHostInstance:He,reconcilerVersion:"19.0.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var bd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bd.isDisabled&&bd.supportsFiber)try{ye=bd.inject(_d),ve=bd}catch(e){}}t.createRoot=function(e,t){if(!a(e))throw Error(s(299));var n=!1,r="",i=Ns,o=Ds,l=Fs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=jh(e,1,!1,null,0,n,r,i,o,l,0,null),e[ze]=t.current,Rc(8===e.nodeType?e.parentNode:e),new md(t)},t.hydrateRoot=function(e,t,n){if(!a(e))throw Error(s(299));var r=!1,i="",o=Ns,l=Ds,u=Fs,c=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(c=n.formState)),(t=jh(e,1,!0,t,0,r,i,o,l,u,0,c)).context=Bh(null),n=t.current,(i=Ia(r=Ou())).c
3allback=null,Ra(n,i,r),t.current.lanes=r,Re(t,r),gc(t),e[ze]=t.current,Rc(e),new yd(t)},t.version="19.0.0"},1438:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!0;var s,a,l={};for(s=0,a=r.length;s<a;s++)l[r[s]]=!0;for(s=0,a=i.length;s<a;s++){var u=i[s],c=e[u],h=t[u];if(c!==h){if(!l[u]||null===c||null===h||"object"!==n(c)||"object"!==n(h))return!0;var d=Object.keys(c),f=Object.keys(h);if(d.length!==f.length)return!0;for(var p=0,g=d.length;p<g;p++){var m=d[p];if(c[m]!==h[m])return!0}}}return!1}},1476:(e,t,n)=>{var r=n(3841),i=n(1137);e.exports=function(e,t,n,o){return t.length>0&&Array.isArray(t[0])?i(e,t,n,o):r(e,t,n,o)},e.exports.nested=i,e.exports.flat=r}
3,1572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(6540)),i=s(n(5556)),o=s(n(1438));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,n,i,s=(i=a,function(){var e,t=f(i);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(d(e=s.call.apply(s,[this].concat(n))),"storeItemReference",(function(t){null!==t&&(e.item=t)})),g(d(e),"onMouseEnter",(function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:r,itemIndex:i})})),g(d(e),"onMouseLeave",(function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:r,itemIndex:i})})),g(d(e),"onMouseDown",(function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:r,itemIndex:i})})),g(d(e),"onClick",(function(t){var n=e.props,r=n.sectionIndex,i=n.itemIndex;e.props.onClick(t,{sectionIndex:r,itemIndex:i})})),e}return t=a,n=[{key:"shouldComponentUpdate",value:function(e){return(0,o.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,i=e.renderItem,o=e.renderItemData,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete s.sectionIndex,delete s.itemIndex,"function"==typeof s.onMouseEnter&&(s.onMouseEnter=this.onMouseEnter),"function"==typeof s.onMouseLeave&&(s.onMouseLeave=this.onMouseLeave),"function"==typeof s.onMouseDown&&(s.onMouseDown=this.onMouseDown),"function"==typeof s.onClick&&(s.onClick=this.onClick),r.default.createElement("li",u({role:"option"},s,{ref:this.storeItemReference}),i(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
3t%2?c(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isHighlighted:t},o)))}}],n&&h(t.prototype,n),a}(r.Component);t.default=m,g(m,"propTypes",{sectionIndex:i.default.number,isHighlighted:i.default.bool.isRequired,itemIndex:i.default.number.isRequired,item:i.default.any.isRequired,renderItem:i.default.func.isRequired,renderItemData:i.default.object.isRequired,onMouseEnter:i.default.func,onMouseLeave:i.default.func,onMouseDown:i.default.func,onClick:i.default.func})},1578:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function i(e){var i=t(e,2),o=i[0],s=i[1];return r?null===s||s===n[o]-1?null===(o=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(o))?[null,null]:[o,0]:[o,s+1]:0===n||s===n-1?[null,null]:null===s?[null,0]:[null,s+1]}return{next:i,prev:function(e){var i=t(e,2),o=i[0],s=i[1];return r?null===s||0===s?null===(o=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(o))?[null,null]:[o,n[o]-1]:[o,s-1]:0===n||0===s?[null,null]:null===s?[null,n-1]:[null,s-1]},isLast:function(e){return null===i(e)[1]}}}},1582:(e,t,n)=>{"use strict";var r=n(5341),i=n(4262),o=n(1476),s=n(3467).orient2d;function a(e,t,n){t=Math.max(0,void 0===t?2:t),n=n||0;var i=function(e){for(var t=e[0],n=e[0],r=e[0],i=e[0],s=0;s<e.length;s++){var a=e[s];a[0]<t[0]&&(t=a),a[0]>r[0]&&(r=a),a[1]<n[1]&&(n=a),a[1]>i[1]&&(i=a)}var l=[t,n,r,i],u=l.slice();for(s=0;s<e.length;s++)o(e[s],l)||u.push(e[s]);return function(e){e.sort(_);for(var t=[],n=0;n<e.length;n++){for(;t.length>=2&&f(t[t.length-2],t[t.length-1],e[n])<=0;)t.pop();t.push(e[n])}for(var r=[],i=e.length-1;i>=0;i--){for(;r.length>=2&&f(r[r.length-2],r[r.length-1],e[i])<=0;)r.pop();r.push(e[i])}return r.pop(),t.pop(),t.concat(r)}(u)}(e),s=new r(16);s.toBBox=function(e){return{minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]}},s.compareMinX=function(e,t){return e[0]-t[0]},s.compareMinY=function(e,t){return e[1]-t[1]},s.load(e);for(var a,u=[],c=0;c<i.length;c++){var h=i[c];s.remove(h),a=g(h,a),u.push(a)}var d=new r(16);for(c=0;c<u.length;c++)d.insert(p(u[c]));for(var y=t*t,v=n*n;u.length;){var b=u.shift(),w=b.p,x=b.next.p,E=m(w,x);if(!(E<v)){var S=E/y;(h=l(s,b.prev.p,w,x,b.next.next.p,S,d))&&Math.min(m(h,w),m(h,x))<=S&&(u.push(b),u.push(g(h,b)),s.remove(h),d.remove(b),d.insert(p(b)),d.insert(p(b.next)))}}b=a;var C=[];do{C.push(b.p),b=b.next}while(b!==a);return C.push(b.p),C}function l(e,t,n,r,o,s,a){for(var l=new i([],u),h=e.data;h;){for(var f=0;f<h.children.length;f++){var p=h.children[f],g=h.leaf?y(p,n,r):c(n,r,p);g>s||l.push({node:p,dist:g})}for(;l.length&&!l.peek().node.children;){var m=l.pop(),v=m.node,_=y(v,t,n),b=y(v,r,o);if(m.dist<_&&m.dist<b&&d(n,v,a)&&d(r,v,a))return v}(h=l.pop())&&(h=h.node)}return null}function u(e,t){return e.dist-t.dist}function c(e,t,n){if(h(e,n)||h(t,n))return 0;var r=v(e[0],e[1],t[0],t[1],n.minX,n.minY,n.maxX,n.minY);if(0===r)return 0;var i=v(e[0],e[1],t[0],t[1],n.minX,n.minY,n.minX,n.maxY);if(0===i)return 0;var o=v(e[0],e[1],t[0],t[1],n.maxX,n.minY,n.maxX,n.maxY);if(0===o)return 0;var s=v(e[0],e[1],t[0],t[1],n.minX,n.maxY,n.maxX,n.maxY);return 0===s?0:Math.min(r,i,o,s)}function h(e,t){return e[0]>=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function d(e,t,n){for(var r,i,o,s,a=Math.min(e[0],t[0]),l=Math.min(e[1],t[1]),u=Math.max(e[0],t[0]),c=Math.max(e[1],t[1]),h=n.search({minX:a,minY:l,maxX:u,maxY:c}),d=0;d<h.length;d++)if(r=h[d].p,i=h[d].next.p,o=e,r!==(s=t)&&i!==o&&f(r,i,o)>0!=f(r,i,s)>0&&f(o,s,r)>0!=f(o,s,i)>0)return!1;return!0}function f(e,t,n){return s(e[0],e[1],t[0],t[1],n[0],n[1])}function p(e){var t=e.p,n=e.next.p;return e.minX=Math.min(t[0],n[0]),e.minY=Math.min(t[1],n[1]),e.maxX=Math.max(t[0],n[0]),e.maxY=Math.max(t[1],n[1]),e}function g(e,t){var n={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};
3return t?(n.next=t.next,n.prev=t,t.next.prev=n,t.next=n):(n.prev=n,n.next=n),n}function m(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function y(e,t,n){var r=t[0],i=t[1],o=n[0]-r,s=n[1]-i;if(0!==o||0!==s){var a=((e[0]-r)*o+(e[1]-i)*s)/(o*o+s*s);a>1?(r=n[0],i=n[1]):a>0&&(r+=o*a,i+=s*a)}return(o=e[0]-r)*o+(s=e[1]-i)*s}function v(e,t,n,r,i,o,s,a){var l,u,c,h,d=n-e,f=r-t,p=s-i,g=a-o,m=e-i,y=t-o,v=d*d+f*f,_=d*p+f*g,b=p*p+g*g,w=d*m+f*y,x=p*m+g*y,E=v*b-_*_,S=E,C=E;0===E?(u=0,S=1,h=x,C=b):(h=v*x-_*w,(u=_*x-b*w)<0?(u=0,h=x,C=b):u>S&&(u=S,h=x+_,C=b)),h<0?(h=0,-w<0?u=0:-w>v?u=S:(u=-w,S=v)):h>C&&(h=C,-w+_<0?u=0:-w+_>v?u=S:(u=-w+_,S=v));var M=(1-(c=0===h?0:h/C))*i+c*s-((1-(l=0===u?0:u/S))*e+l*n),k=(1-c)*o+c*a-((1-l)*t+l*r);return M*M+k*k}function _(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}i.default&&(i=i.default),e.exports=a,e.exports.default=a},1601:e=>{"use strict";e.exports=function(e){return e[1]}},2243:(e,t,n)=>{"use strict";e.exports=n(7424).default},2291:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1601),i=n.n(r),o=n(6314),s=n.n(o)()(i());s.push([e.id,"// extracted by mini-css-extract-plugin\nexport {};",""]);const a=s},2444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(6540)),i=s(n(5556)),o=s(n(1438));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}var d,f,p,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(a,e);var t,n,i,s=(i=a,function(){var e,t=c(i);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),s.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return(0,o.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,i=e.theme,o=e.sectionKeyPrefix,s=n(t);return s?r.default.createElement("div",i("".concat(o,"title"),"sectionTitle"),s):null}}])&&u(t.prototype,n),a}(r.Component);t.default=g,d=g,f="propTypes",p={section:i.default.any.isRequired,renderSectionTitle:i.default.func.isRequired,theme:i.default.func.isRequired,sectionKeyPrefix:i.default.string.isRequired},f in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p},2543:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,u=128,c=1/0,h=9007199254740991,d=NaN,f=4294967295,p=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",y="[object Boolean]",v="[object Date]",_="[object Error]",b="[object Function]",w="[object GeneratorFunction]",x="[object Map]",E="[object Number]",S="[object Object]",C="[object Promise]",M="[object RegExp]",k="[object Set]",T="[object String]",P="[object Symbol]",O="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",A="[object Float32Array]",L="[object Float64Array
vendor: 8,654 bytes, line 3
3]",N="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",j="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",G="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,H=RegExp(V.source),$=RegExp(Y.source),K=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,be=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="["+we+"]",Pe="["+ke+"]",Oe="["+xe+"]",Ie="\\d+",Re="["+Ee+"]",Ae="["+Se+"]",Le="[^"+we+ke+Ie+Ee+Se+Ce+"]",Ne="\\ud83c[\\udffb-\\udfff]",De="[^"+we+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",je="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Ce+"]",ze="\\u200d",Ge="(?:"+Ae+"|"+Le+")",Ue="(?:"+Be+"|"+Le+")",We="(?:['â](?:d|ll|m|re|s|t|ve))?",qe="(?:['â](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Oe+"|"+Ne+")?",Ye="["+Me+"]?",He=Ye+Ve+"(?:"+ze+"(?:"+[De,Fe,je].join("|")+")"+Ye+Ve+")*",$e="(?:"+[Re,Fe,je].join("|")+")"+He,Ke="(?:"+[De+Oe+"?",Oe,Fe,je,Te].join("|")+")",Xe=RegExp("['â]","g"),Ze=RegExp(Oe,"g"),Je=RegExp(Ne+"(?="+Ne+")|"+Ke+He,"g"),Qe=RegExp([Be+"?"+Ae+"+"+We+"(?="+[Pe,Be,"$"].join("|")+")",Ue+"+"+qe+"(?="+[Pe,Be+Ge,"$"].join("|")+")",Be+"?"+Ge+"+"+We,Be+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,$e].join("|"),"g"),et=RegExp("["+ze+we+xe+Me+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[A]=it[L]=it[N]=it[D]=it[F]=it[j]=it[B]=it[z]=it[G]=!0,it[g]=it[m]=it[I]=it[y]=it[R]=it[v]=it[_]=it[b]=it[x]=it[E]=it[S]=it[M]=it[k]=it[T]=it[O]=!1;var ot={};ot[g]=ot[m]=ot[I]=ot[R]=ot[y]=ot[v]=ot[A]=ot[L]=ot[N]=ot[D]=ot[F]=ot[x]=ot[E]=ot[S]=ot[M]=ot[k]=ot[T]=ot[P]=ot[j]=ot[B]=ot[z]=ot[G]=!0,ot[_]=ot[b]=ot[O]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,lt=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct="object"==typeof self&&self&&self.Object===Object&&self,ht=ut||ct||Function("return this")(),dt=t&&!t.nodeType&&t,ft=dt&&e&&!e.nodeType&&e,pt=ft&&ft.exports===dt,gt=pt&&ut.process,mt=function(){try{return ft&&ft.require&&ft.require("util").types||gt&>.binding&>.binding("util")}catch(e){}}(),yt=mt&&mt.isArrayBuffer,vt=mt&&mt.isDate,_t=mt&&mt.isMap,bt=mt&&mt.isRegExp,wt=mt&&mt.isSet,xt=mt&&mt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Pt(e,t){return!(null==e||!e.length)&&Bt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function It(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Rt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function At(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Lt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Dt=Wt("length");function Ft(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function jt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Bt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):jt(e,Gt,n)}function zt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Gt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:d}function Wt(e){return function(t){return null==t?i:t[e]}}function qt(e){return function(t){return null==e?i:e[t]}}function Vt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Yt(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Ht(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $t(e){return e?e.slice(0,dn(e)+1).replace(re,""):e}function Kt(e){return function(t){return e(t)}}function Xt(e,t){return It(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&Bt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var en=qt({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}),tn=qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function cn(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Dt(e)}function hn(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var fn=qt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function e(t){var n,r=(t=null==t?ht:pn.defaults(ht.Object(),t,pn.pick(ht,nt))).Array,ie=t.Date,we=t.Error,xe=t.Function,Ee=t.Math,Se=t.Object,Ce=t.RegExp,Me=t.String,ke=t.TypeError,Te=r.prototype,Pe=xe.prototype,Oe=Se.prototype,Ie
vendor: 9,942 bytes, line 3
3=t["__core-js_shared__"],Re=Pe.toString,Ae=Oe.hasOwnProperty,Le=0,Ne=(n=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Oe.toString,Fe=Re.call(Se),je=ht._,Be=Ce("^"+Re.call(Ae).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=pt?t.Buffer:i,Ge=t.Symbol,Ue=t.Uint8Array,We=ze?ze.allocUnsafe:i,qe=sn(Se.getPrototypeOf,Se),Ve=Se.create,Ye=Oe.propertyIsEnumerable,He=Te.splice,$e=Ge?Ge.isConcatSpreadable:i,Ke=Ge?Ge.iterator:i,Je=Ge?Ge.toStringTag:i,et=function(){try{var e=lo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ut=ie&&ie.now!==ht.Date.now&&ie.now,ct=t.setTimeout!==ht.setTimeout&&t.setTimeout,dt=Ee.ceil,ft=Ee.floor,gt=Se.getOwnPropertySymbols,mt=ze?ze.isBuffer:i,Dt=t.isFinite,qt=Te.join,gn=sn(Se.keys,Se),mn=Ee.max,yn=Ee.min,vn=ie.now,_n=t.parseInt,bn=Ee.random,wn=Te.reverse,xn=lo(t,"DataView"),En=lo(t,"Map"),Sn=lo(t,"Promise"),Cn=lo(t,"Set"),Mn=lo(t,"WeakMap"),kn=lo(Se,"create"),Tn=Mn&&new Mn,Pn={},On=Fo(xn),In=Fo(En),Rn=Fo(Sn),An=Fo(Cn),Ln=Fo(Mn),Nn=Ge?Ge.prototype:i,Dn=Nn?Nn.valueOf:i,Fn=Nn?Nn.toString:i;function jn(e){if(ea(e)&&!Ws(e)&&!(e instanceof Un)){if(e instanceof Gn)return e;if(Ae.call(e,"__wrapped__"))return jo(e)}return new Gn(e)}var Bn=function(){function e(){}return function(t){if(!Qs(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function zn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Hn(e){var t=this.__data__=new qn(e);this.size=t.size}function $n(e,t){var n=Ws(e),r=!n&&Us(e),i=!n&&!r&&Hs(e),o=!n&&!r&&!i&&la(e),s=n||r||i||o,a=s?Ht(e.length,Me):[],l=a.length;for(var u in e)!t&&!Ae.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mo(u,l))||a.push(u);return a}function Kn(e){var t=e.length;return t?e[Vr(0,t-1)]:i}function Xn(e,t){return Ro(Mi(e),or(t,0,e.length))}function Zn(e){return Ro(Mi(e))}function Jn(e,t,n){(n!==i&&!Bs(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Qn(e,t,n){var r=e[t];Ae.call(e,t)&&Bs(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Bs(e[n][0],t))return n;return-1}function tr(e,t,n,r){return cr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function nr(e,t){return e&&ki(t,Oa(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,s=r(o),a=null==e;++n<o;)s[n]=a?i:Ca(e,t[n]);return s}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,s){var a,l=1&t,u=2&t,c=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!Qs(e))return e;var h=Ws(e);if(h){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Mi(e,a)}else{var d=ho(e),f=d==b||d==w;if(Hs(e))return bi(e,l);if(d==S||d==g||f&&!o){if(a=u||f?{}:po(e),!l)return u?function(e,t){return ki(e,co(e),t)}(e,function(e,t){return e&&ki(t,Ia(t),e)}(a,e)):function(e,t){return ki(e,uo(e),t)}(e,nr(a,e))}else{if(!ot[d])return o?e:{};a=function(e,t,n){var r,i=e.constructor;switch(t){case I:return wi(e);case y:case v:return new i(+e);case R:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case L:case N:case D:case F:case j:case B:case z:case G:return xi(e,n);case x:return new i;case E:case T:return new i(e);case M:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case P:return r=e,Dn?Se(Dn.call(r)):{}}}(e,d,l)}}s||(s=new Hn);var p=s.get(e);if(p)return p;s.set(e,a),oa(e)?e.forEach((function(r){a.add(sr(r,t,n,r,e,s))})):ta(e)&&e.forEach((function(r,i){a.set(i,sr(r,t,n,i,e,s))}));var m=h?i:(c?u?to:eo:u?Ia:Oa)(e);return Ct(m||e,(function(r,i){m&&(r=e[i=r]),Qn(a,i,sr(r,t,n,i,e,s))})),a}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var o=n[r],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new ke(o);return To((function(){e.apply(i,n)}),t)}function ur(e,t,n,r){var i=-1,o=Pt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=It(t,Kt(n))),r?(o=Ot,s=!1):t.length>=200&&(o=Zt,s=!1,t=new Yn(t));e:for(;++i<a;){var c=e[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,s&&h==h){for(var d=u;d--;)if(t[d]===h)continue e;l.push(c)}else o(t,h,r)||l.push(c)}return l}jn.templateSettings={escape:K,evaluate:X,interpolate:Z,variable:"",imports:{_:jn}},jn.prototype=zn.prototype,jn.prototype.constructor=jn,Gn.prototype=Bn(zn.prototype),Gn.prototype.constructor=Gn,Un.prototype=Bn(zn.prototype),Un.prototype.constructor=Un,Wn.prototype.clear=function(){this.__data__=kn?kn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(kn){var n=t[e];return n===s?i:n}return Ae.call(t,e)?t[e]:i},Wn.prototype.has=function(e){var t=this.__data__;return kn?t[e]!==i:Ae.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kn&&t===i?s:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():He.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},qn.prototype.has=function(e){return er(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(En||qn),string:new Wn}},Vn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return so(this,e).get(e)},Vn.prototype.has=function(e){return so(this,e).has(e)},Vn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,s),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Hn.prototype.clear=function(){this.__data__=new qn,this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Hn.prototype.get=function(e){return this.__data__.get(e)},Hn.prototype.has=function(e){return this.__data__.has(e)},Hn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var cr=Oi(vr),hr=Oi(_r,!0);function dr(e,t){var n=!0;return cr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function fr(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===i?a==a&&!aa(a):n(a,l)))var l=a,u=s}return u}function pr(e,t){var n=[];return cr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function gr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=go),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?gr(a,t-1,n,r,i):Rt(i,a):r||(i[i.length]=a)}return i}var mr=Ii(),yr=Ii(!0);function vr(e,t){return e&&mr(e,t,Oa)}function _r(e,t){return e&&yr(e,t,Oa)}function br(e,t){return Tt(t,(function(t){return Xs(e[t])}))}function wr(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&n<r;)e=e[Do(t[n++])];return n&&n==r?e:i}function xr(e,t,n){var r=t(e);return Ws(e)?r:Rt(r,n(e))}function Er(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Se(e)?function(e){var t=Ae.call(e,Je),n=e[Je];try{e[Je]=i;var r=!0}catch(e){}var o=De.call(e);return r&&(t?e[Je]=n:delete e[Je]),o}(e):function(e){return De.call(e)}(e)}function Sr(e,t){return e>t}function Cr(e,t){return null!=e&&Ae.call(e,t)}function Mr(e,t){return null!=e&&t in Se(e)}function kr(e,t,n){for(var o=n?Ot:Pt,s=e[0].length,a=e.length,l=a,u=r(a),c=1/0,h=[];l--;){var d=e[l];l&&t&&(d=It(d,Kt(t))),c=yn(d.length,c),u[l]=!n&&(t||s>=120&&d.length>=120)?new Yn(l&&d):i}d=e[0];var f=-1,p=u[0];e:for(;++f<s&&h.length<c;){var g=d[f],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?Zt(p,m):o(h,m,n))){for(l=a;--l;){var y=u[l];if(!(y?Zt(y,m):o(e[l],m,n)))continue e}p&&p.push(m),h.push(g)}}return h}function Tr(e,t,n){var r=null==(e=Co(e,t=mi(t,e)))?e:e[Do(Ko(t))];return null==r?i:Et(r,e,n)}function Pr(e){return ea(e)&&Er(e)==g}function Or(e,t,n,r,o){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var a=Ws(e),l=Ws(t),u=a?m:ho(e),c=l?m:ho(t),h=(u=u==g?S:u)==S,d=(c=c==g?S:c)==S,f=u==c;if(f&&Hs(e)){if(!Hs(t))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new Hn),a||la(e)?Ji(e,t,n,r,o,s):function(e,t,n,r,i,o,s){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case y:case v:case E:return Bs(+e,+t);case _:return e.name==t.name&&e.message==t.message;case M:case T:return e==t+"";case x:var a=on;case k:var l=1&r;if(a||(a=ln),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var c=Ji(a(e),a(t),r,i,o,s);return s.delete(e),c;case P:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,u,n,r,o,s);if(!(1&n)){var p=h&&Ae.call(e,"__wrapped__"),b=d&&Ae.call(t,"__wrapped__");
vendor: 4,708 bytes, line 3
3if(p||b){var w=p?e.value():e,C=b?t.value():t;return s||(s=new Hn),o(w,C,n,r,s)}}return!!f&&(s||(s=new Hn),function(e,t,n,r,o,s){var a=1&n,l=eo(e),u=l.length;if(u!=eo(t).length&&!a)return!1;for(var c=u;c--;){var h=l[c];if(!(a?h in t:Ae.call(t,h)))return!1}var d=s.get(e),f=s.get(t);if(d&&f)return d==t&&f==e;var p=!0;s.set(e,t),s.set(t,e);for(var g=a;++c<u;){var m=e[h=l[c]],y=t[h];if(r)var v=a?r(y,m,h,t,e,s):r(m,y,h,e,t,s);if(!(v===i?m===y||o(m,y,n,r,s):v)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,r,o,s))}(e,t,n,r,Or,o))}function Ir(e,t,n,r){var o=n.length,s=o,a=!r;if(null==e)return!s;for(e=Se(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var u=(l=n[o])[0],c=e[u],h=l[1];if(a&&l[2]){if(c===i&&!(u in e))return!1}else{var d=new Hn;if(r)var f=r(c,h,u,e,t,d);if(!(f===i?Or(h,c,3,r,d):f))return!1}}return!0}function Rr(e){return!(!Qs(e)||(t=e,Ne&&Ne in t))&&(Xs(e)?Be:ge).test(Fo(e));var t}function Ar(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Ws(e)?jr(e[0],e[1]):Fr(e):hl(e)}function Lr(e){if(!wo(e))return gn(e);var t=[];for(var n in Se(e))Ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e,t){return e<t}function Dr(e,t){var n=-1,i=Vs(e)?r(e.length):[];return cr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Fr(e){var t=ao(e);return 1==t.length&&t[0][2]?Eo(t[0][0],t[0][1]):function(n){return n===e||Ir(n,e,t)}}function jr(e,t){return vo(e)&&xo(t)?Eo(Do(e),t):function(n){var r=Ca(n,e);return r===i&&r===t?Ma(n,e):Or(t,r,3)}}function Br(e,t,n,r,o){e!==t&&mr(t,(function(s,a){if(o||(o=new Hn),Qs(s))!function(e,t,n,r,o,s,a){var l=Mo(e,n),u=Mo(t,n),c=a.get(u);if(c)Jn(e,n,c);else{var h=s?s(l,u,n+"",e,t,a):i,d=h===i;if(d){var f=Ws(u),p=!f&&Hs(u),g=!f&&!p&&la(u);h=u,f||p||g?Ws(l)?h=l:Ys(l)?h=Mi(l):p?(d=!1,h=bi(u,!0)):g?(d=!1,h=xi(u,!0)):h=[]:ra(u)||Us(u)?(h=l,Us(l)?h=ma(l):Qs(l)&&!Xs(l)||(h=po(u))):d=!1}d&&(a.set(u,h),o(h,u,r,s,a),a.delete(u)),Jn(e,n,h)}}(e,t,a,n,Br,r,o);else{var l=r?r(Mo(e,a),s,a+"",e,t,o):i;l===i&&(l=s),Jn(e,a,l)}}),Ia)}function zr(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:i}function Gr(e,t,n){t=t.length?It(t,(function(e){return Ws(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[nl];var r=-1;t=It(t,Kt(oo()));var i=Dr(e,(function(e,n,i){var o=It(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e){var t=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var l=Ei(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));t--;)e[t]=e[t].value;return e}(i)}function Ur(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=wr(e,s);n(a,s)&&Xr(o,mi(s,e),a)}return o}function Wr(e,t,n,r){var i=r?zt:Bt,o=-1,s=t.length,a=e;for(e===t&&(t=Mi(t)),n&&(a=It(e,Kt(n)));++o<s;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(a,c,l,r))>-1;)a!==e&&He.call(a,l,1),He.call(e,l,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?He.call(e,i,1):li(e,i)}}return e}function Vr(e,t){return e+ft(bn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Hr(e,t){return Po(So(e,t,nl),e+"")}function $r(e){return Kn(Ba(e))}function Kr(e,t){var n=Ba(e);return Ro(n,or(t,0,n.length))}function Xr(e,t,n,r){if(!Qs(e))return e;for(var o=-1,s=(t=mi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var u=Do(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=a){var h=l[u];(c=r?r(h,u,l):i)===i&&(c=Qs(h)?h:mo(t[o+1])?[]:{})}Qn(l,u,c),l=l[u]}return e}var Zr=Tn?function(e,t){return Tn.set(e,t),e}:nl,Jr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qa(t),writable:!0})}:nl;function Qr(e){return Ro(Ba(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=r(o);++i<o;)s[i]=e[i+t];return s}function ti(e,t){var n;return cr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!aa(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return ri(e,t,nl,n)}function ri(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,l=null===t,u=aa(t),c=t===i;o<s;){var h=ft((o+s)/2),d=n(e[h]),f=d!==i,p=null===d,g=d==d,m=aa(d);if(a)var y=r||g;else y=c?g&&(r||f):l?g&&f&&(r||!p):u?g&&f&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);
vendor: 24,523 bytes, line 3
3y?o=h+1:s=h}return yn(s,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Bs(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function oi(e){return"number"==typeof e?e:aa(e)?d:+e}function si(e){if("string"==typeof e)return e;if(Ws(e))return It(e,si)+"";if(aa(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ai(e,t,n){var r=-1,i=Pt,o=e.length,s=!0,a=[],l=a;if(n)s=!1,i=Ot;else if(o>=200){var u=t?null:Yi(e);if(u)return ln(u);s=!1,i=Zt,l=new Yn}else l=t?[]:a;e:for(;++r<o;){var c=e[r],h=t?t(c):c;if(c=n||0!==c?c:0,s&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),a.push(c)}else i(l,h,n)||(l!==a&&l.push(h),a.push(c))}return a}function li(e,t){return null==(e=Co(e,t=mi(t,e)))||delete e[Do(Ko(t))]}function ui(e,t,n,r){return Xr(e,t,n(wr(e,t)),r)}function ci(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function hi(e,t){var n=e;return n instanceof Un&&(n=n.value()),At(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function di(e,t,n){var i=e.length;if(i<2)return i?ai(e[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=e[o],l=-1;++l<i;)l!=o&&(s[o]=ur(s[o]||a,e[l],t,n));return ai(gr(s,1),t,n)}function fi(e,t,n){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var l=r<s?t[r]:i;n(a,e[r],l)}return a}function pi(e){return Ys(e)?e:[]}function gi(e){return"function"==typeof e?e:nl}function mi(e,t){return Ws(e)?e:vo(e,t)?[e]:No(ya(e))}var yi=Hr;function vi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var _i=st||function(e){return ht.clearTimeout(e)};function bi(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function xi(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,s=aa(e),a=t!==i,l=null===t,u=t==t,c=aa(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||r&&a&&u||!n&&u||!o)return 1;if(!r&&!s&&!c&&e<t||c&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!u)return-1}return 0}function Si(e,t,n,i){for(var o=-1,s=e.length,a=n.length,l=-1,u=t.length,c=mn(s-a,0),h=r(u+c),d=!i;++l<u;)h[l]=t[l];for(;++o<a;)(d||o<s)&&(h[n[o]]=e[o]);for(;c--;)h[l++]=e[o++];return h}function Ci(e,t,n,i){for(var o=-1,s=e.length,a=-1,l=n.length,u=-1,c=t.length,h=mn(s-l,0),d=r(h+c),f=!i;++o<h;)d[o]=e[o];for(var p=o;++u<c;)d[p+u]=t[u];for(;++a<l;)(f||o<s)&&(d[p+n[a]]=e[o++]);return d}function Mi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function ki(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var l=t[s],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),o?rr(n,l,u):Qn(n,l,u)}return n}function Ti(e,t){return function(n,r){var i=Ws(n)?St:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Pi(e){return Hr((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&yo(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=Se(t);++r<o;){var l=n[r];l&&e(t,l,r,s)}return t}))}function Oi(e,t){return function(n,r){if(null==n)return n;if(!Vs(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Se(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Ii(e){return function(t,n,r){for(var i=-1,o=Se(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function Ri(e){return function(t){var n=rn(t=ya(t))?hn(t):i,r=n?n[0]:t.charAt(0),o=n?vi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ai(e){return function(t){return At(Xa(Ua(t).replace(Xe,"")),e,"")}}function Li(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return Qs(r)?r:n}}function Ni(e){return function(t,n,r){var o=Se(t);if(!Vs(t)){var s=oo(n,3);t=Oa(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[s?t[a]:a]:i}}function Di(e){return Qi((function(t){var n=t.length,r=n,s=Gn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ke(o);if(s&&!l&&"wrapper"==ro(a))var l=new Gn([],!0)}for(r=l?r:n;++r<n;){var u=ro(a=t[r]),c="wrapper"==u?no(a):i;l=c&&_o(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ro(c[0])].apply(l,c[3]):1==a.length&&_o(a)?l[u]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ws(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Fi(e,t,n,o,s,a,l,c,h,d){var f=t&u,p=1&t,g=2&t,m=24&t,y=512&t,v=g?i:Li(e);return function u(){for(var _=arguments.length,b=r(_),w=_;w--;)b[w]=arguments[w];if(m)var x=io(u),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(o&&(b=Si(b,o,s,m)),a&&(b=Ci(b,a,l,m)),_-=E,m&&_<d){var S=an(b,x);return qi(e,t,Fi,u.placeholder,n,b,S,c,h,d-_)}var C=p?n:this,M=g?C[e]:e;return _=b.length,c?b=function(e,t){for(var n=e.length,r=yn(t.length,n),o=Mi(e);r--;){var s=t[r];e[r]=mo(s,n)?o[s]:i}return e}(b,c):y&&_>1&&b.reverse(),f&&h<_&&(b.length=h),this&&this!==ht&&this instanceof u&&(M=v||Li(M)),M.apply(C,b)}}function ji(e,t){return function(n,r){return function(e,t,n,r){return vr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function zi(e){return Qi((function(t){return t=It(t,Kt(oo())),Hr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Gi(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,dt(e/cn(t)));return rn(t)?vi(hn(r),0,e).join(""):r.slice(0,e)}function Ui(e){return function(t,n,o){return o&&"number"!=typeof o&&yo(t,n,o)&&(n=o=i),t=da(t),n===i?(n=t,t=0):n=da(n),function(e,t,n,i){for(var o=-1,s=mn(dt((t-e)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=e,e+=n;return a}(t,n,o=o===i?t<n?1:-1:da(o),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ga(t),n=ga(n)),e(t,n)}}function qi(e,t,n,r,o,s,a,u,c,h){var d=8&t;t|=d?l:64,4&(t&=~(d?64:l))||(t&=-4);var f=[e,t,o,d?s:i,d?a:i,d?i:s,d?i:a,u,c,h],p=n.apply(i,f);return _o(e)&&ko(p,f),p.placeholder=r,Oo(p,e,t)}function Vi(e){var t=Ee[e];return function(e,n){if(e=ga(e),(n=null==n?0:yn(fa(n),292))&&Dt(e)){var r=(ya(e)+"e").split("e");return+((r=(ya(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Yi=Cn&&1/ln(new Cn([,-0]))[1]==c?function(e){return new Cn(e)}:al;function Hi(e){return function(t){var n=ho(t);return n==x?on(t):n==k?un(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $i(e,t,n,s,c,h,d,f){var p=2&t;if(!p&&"function"!=typeof e)throw new ke(o);var g=s?s.length:0;if(g||(t&=-97,s=c=i),d=d===i?d:mn(fa(d),0),f=f===i?f:fa(f),g-=c?c.length:0,64&t){var m=s,y=c;s=c=i}var v=p?i:no(e),_=[e,t,n,s,c,m,y,h,d,f];if(v&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Si(c,l,t[4]):l,e[4]=c?an(e[3],a):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ci(c,l,t[6]):l,e[6]=c?an(e[5],a):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(_,v),e=_[0],t=_[1],n=_[2],s=_[3],c=_[4],!(f=_[9]=_[9]===i?p?0:e.length:mn(_[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var o=Li(e);return function s(){for(var a=arguments.length,l=r(a),u=a,c=io(s);u--;)l[u]=arguments[u];var h=a<3&&l[0]!==c&&l[a-1]!==c?[]:an(l,c);return(a-=h.length)<n?qi(e,t,Fi,s.placeholder,i,l,h,i,i,n-a):Et(this&&this!==ht&&this instanceof s?o:e,this,l)}}(e,t,f):t!=l&&33!=t||c.length?Fi.apply(i,_):function(e,t,n,i){var o=1&t,s=Li(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=i.length,h=r(c+l),d=this&&this!==ht&&this instanceof t?s:e;++u<c;)h[u]=i[u];for(;l--;)h[u++]=arguments[++a];return Et(d,o?n:this,h)}}(e,t,n,s);else var b=function(e,t,n){var r=1&t,i=Li(e);return function t(){return(this&&this!==ht&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Oo((v?Zr:ko)(b,_),e,t)}function Ki(e,t,n,r){return e===i||Bs(e,Oe[n])&&!Ae.call(r,n)?t:e}function Xi(e,t,n,r,o,s){return Qs(e)&&Qs(t)&&(s.set(t,e),Br(e,t,i,Xi,s),s.delete(t)),e}function Zi(e){return ra(e)?i:e}function Ji(e,t,n,r,o,s){var a=1&n,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=s.get(e),h=s.get(t);if(c&&h)return c==t&&h==e;var d=-1,f=!0,p=2&n?new Yn:i;for(s.set(e,t),s.set(t,e);++d<l;){var g=e[d],m=t[d];if(r)var y=a?r(m,g,d,t,e,s):r(g,m,d,e,t,s);if(y!==i){if(y)continue;f=!1;break}if(p){if(!Nt(t,(function(e,t){if(!Zt(p,t)&&(g===e||o(g,e,n,r,s)))return p.push(t)}))){f=!1;break}}else if(g!==m&&!o(g,m,n,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function Qi(e){return Po(So(e,i,qo),e+"")}function eo(e){return xr(e,Oa,uo)}function to(e){return xr(e,Ia,co)}var no=Tn?function(e){return Tn.get(e)}:al;function ro(e){for(var t=e.name+"",n=Pn[t],r=Ae.call(Pn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Ae.call(jn,"placeholder")?jn:e).placeholder}function oo(){var e=jn.iteratee||rl;return e=e===rl?Ar:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ao(e){for(var t=Oa(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,xo(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Rr(n)?n:i}var uo=gt?function(e){return null==e?[]:(e=Se(e),Tt(gt(e),(function(t){return Ye.call(e,t)})))}:pl,co=gt?function(e){for(var t=[];e;)Rt(t,uo(e)),e=qe(e);return t}:pl,ho=Er;function fo(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var s=Do(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Js(i)&&mo(s,i)&&(Ws(e)||Us(e))}function po(e){return"function"!=typeof e.constructor||wo(e)?{}:Bn(qe(e))}function go(e){return Ws(e)||Us(e)||!!($e&&e&&e[$e])}function mo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!Qs(n))return!1;var r=typeof t;return!!("number"==r?Vs(n)&&mo(t,n.length):"string"==r&&t in n)&&Bs(n[t],e)}function vo(e,t){if(Ws(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!aa(e))||Q.test(e)||!J.test(e)||null!=t&&e in Se(t)}function _o(e){var t=ro(e),n=jn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(xn&&ho(new xn(new ArrayBuffer(1)))!=R||En&&ho(new En)!=x||Sn&&ho(Sn.resolve())!=C||Cn&&ho(new Cn)!=k||Mn&&ho(new Mn)!=O)&&(ho=function(e){var t=Er(e),n=t==S?e.constructor:i,r=n?Fo(n):"";if(r)switch(r){case On:return R;case In:return x;case Rn:return C;case An:return k;case Ln:return O}return t});var bo=Ie?Xs:gl;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function xo(e){return e==e&&!Qs(e)}function Eo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Se(n))}}function So(e,t,n){return t=mn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=mn(i.length-t,0),a=r(s);++o<s;)a[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(a),Et(e,this,l)}}function Co(e,t){return t.length<2?e:wr(e,ei(t,0,-1))}function Mo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ko=Io(Zr),To=ct||function(e,t){return ht.setTimeout(e,t)},Po=Io(Jr);function Oo(e,t,n){var r=t+"";return Po(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(p,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function Io(e){var t=0,n=0;return function(){var r=vn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ro(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var s=Vr(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Ao,Lo,No=(Ao=As((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Lo.size&&Lo.clear(),e})),Lo=Ao.cache,Ao);function Do(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fo(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function jo(e){if(e instanceof Un)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Mi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bo=Hr((function(e,t){return Ys(e)?ur(e,gr(t,1,Ys,!0)):[]})),zo=Hr((function(e,t){var n=Ko(t);return Ys(n)&&(n=i),Ys(e)?ur(e,gr(t,1,Ys,!0),oo(n,2)):[]})),Go=Hr((function(e,t){var n=Ko(t);return Ys(n)&&(n=i),Ys(e)?ur(e,gr(t,1,Ys,!0),i,n):[]}));function Uo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=mn(r+i,0)),jt(e,oo(t,3),i)}function Wo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=fa(n),o=n<0?mn(r+o,0):yn(o,r-1)),jt(e,oo(t,3),o,!0)}function qo(e){return null!=e&&e.length?gr(e,1):[]}function Vo(e){return e&&e.length?e[0]:i}var Yo=Hr((function(e){var t=It(e,pi);return t.length&&t[0]===e[0]?kr(t):[]})),Ho=Hr((function(e){var t=Ko(e),n=It(e,pi);return t===Ko(n)?t=i:n.pop(),n.length&&n[0]===e[0]?kr(n,oo(t,2)):[]})),$o=Hr((function(e){var t=Ko(e),n=It(e,pi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?kr(n,i,t):[]}));function Ko(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Hr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Jo=Qi((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,It(t,(function(e){return mo(e,n)?+e:e})).sort(Ei)),r}));function Qo(e){return null==e?e:wn.call(e)}var es=Hr((function(e){return ai(gr(e,1,Ys,!0))})),ts=Hr((function(e){var t=Ko(e);return Ys(t)&&(t=i),ai(gr(e,1,Ys,!0),oo(t,2))})),ns=Hr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,ai(gr(e,1,Ys,!0),i,t)}));function rs(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Ys(e))return t=mn(e.length,t),!0})),Ht(t,(function(t){return It(e,Wt(t))}))}function is(e,t){if(!e||!e.length)return[];var n=rs(e);return null==t?n:It(n,(function(e){return Et(t,i,e)}))}var os=Hr((function(e,t){return Ys(e)?ur(e,t):[]})),ss=Hr((function(e){return di(Tt(e,Ys))})),as=Hr((function(e){var t=Ko(e);return Ys(t)&&(t=i),di(Tt(e,Ys),oo(t,2))})),ls=Hr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,di(Tt(e,Ys),i,t)})),us=Hr(rs),cs=Hr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,is(e,n)}));function hs(e){var t=jn(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var fs=Qi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&mo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ds,args:[o],thisArg:i}),new Gn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ps=Ti((function(e,t,n){Ae.call(e,n)?++e[n]:rr(e,n,1)})),gs=Ni(Uo),ms=Ni(Wo);function ys(e,t){return(Ws(e)?Ct:cr)(e,oo(t,3))}function vs(e,t){return(Ws(e)?Mt:hr)(e,oo(t,3))}var _s=Ti((function(e,t,n){Ae.call(e,n)?e[n].push(t):rr(e,n,[t])})),bs=Hr((function(e,t,n){var i=-1,o="function"==typeof t,s=Vs(e)?r(e.length):[];return cr(e,(function(e){s[++i]=o?Et(t,e,n):Tr(e,t,n)})),s})),ws=Ti((function(e,t,n){rr(e,n,t)}));function xs(e,t){return(Ws(e)?It:Dr)(e,oo(t,3))}var Es=Ti((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ss=Hr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,gr(t,1),[])})),Cs=ut||function(){return ht.Date.now()};function Ms(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,$i(e,u,i,i,i,i,t)}function ks(e,t){var n;if("function"!=typeof t)throw new ke(o);return e=fa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ts=Hr((function(e,t,n){var r=1;if(n.length){var i=an(n,io(Ts));r|=l}return $i(e,r,t,n,i)})),Ps=Hr((function(e,t,n){var r=3;if(n.length){var i=an(n,io(Ps));r|=l}return $i(t,r,e,n,i)}));function Os(e,t,n){var r,s,a,l,u,c,h=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new ke(o);function g(t){var n=r,o=s;return r=s=i,h=t,l=e.apply(o,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||f&&e-h>=a}function y(){var e=Cs();if(m(e))return v(e);u=To(y,function(e){var n=t-(e-c);return f?yn(n,a-(e-h)):n}(e))}function v(e){return u=i,p&&r?g(e):(r=s=i,l)}function _(){var e=Cs(),n=m(e);if(r=arguments,s=this,c=e,n){if(u===i)return function(e){return h=e,u=To(y,t),d?g(e):l}(c);if(f)return _i(u),u=To(y,t),g(c)}return u===i&&(u=To(y,t)),l}return t=ga(t)||0,Qs(n)&&(d=!!n.leading,a=(f="maxWait"in n)?mn(ga(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),_.cancel=function(){u!==i&&_i(u),h=0,r=c=s=u=i},_.flush=function(){return u===i?l:v(Cs())},_}var Is=Hr((function(e,t){return lr(e,1,t)})),Rs=Hr((function(e,t,n){return lr(e,ga(t)||0,n)}));function As(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(As.Cache||Vn),n}function Ls(e){if("function"!=typeof e)throw new ke(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}As.Cache=Vn;var Ns=yi((function(e,t){var n=(t=1==t.length&&Ws(t[0])?It(t[0],Kt(oo())):It(gr(t,1),Kt(oo()))).length;return Hr((function(r){for(var i=-1,o=yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Et(e,this,r)}))})),Ds=Hr((function(e,t){var n=an(t,io(Ds));return $i(e,l,i,t,n)})),Fs=Hr((function(e,t){var n=an(t,io(Fs));return $i(e,64,i,t,n)})),js=Qi((function(e,t){return $i(e,256,i,i,i,t)}));function Bs(e,t){return e===t||e!=e&&t!=t}var zs=Wi(Sr),Gs=Wi((function(e,t){return e>=t})),Us=Pr(function(){return arguments}())?Pr:function(e){return ea(e)&&Ae.call(e,"callee")&&!Ye.call(e,"callee")},Ws=r.isArray,qs=yt?Kt(yt):function(e){return ea(e)&&Er(e)==I};function Vs(e){return null!=e&&Js(e.length)&&!Xs(e)}function Ys(e){return ea(e)&&Vs(e)}var Hs=mt||gl,$s=vt?Kt(vt):function(e){return ea(e)&&Er(e)==v};function Ks(e){if(!ea(e))return!1;var t=Er(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Xs(e){if(!Qs(e))return!1;var t=Er(e);return t==b||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==fa(e)}function Js(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=_t?Kt(_t):function(e){return ea(e)&&ho(e)==x};function na(e){return"number"==typeof e||ea(e)&&Er(e)==E}function ra(e){if(!ea(e)||Er(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Fe}var ia=bt?Kt(bt):function(e){return ea(e)&&Er(e)==M},oa=wt?Kt(wt):function(e){return ea(e)&&ho(e)==k};function sa(e){return"string"==typeof e||!Ws(e)&&ea(e)&&Er(e)==T}function aa(e){return"symbol"==typeof e||ea(e)&&Er(e)==P}var la=xt?Kt(xt):function(e){return ea(e)&&Js(e.length)&&!!it[Er(e)]},ua=Wi(Nr),ca=Wi((function(e,t){return e<=t}));function ha(e){if(!e)return[];if(Vs(e))return sa(e)?hn(e):Mi(e);if(Ke&&e[Ke])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ke]());var t=ho(e);return(t==x?on:t==k?ln:Ba)(e)}function da(e){return e?(e=ga(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fa(e){var t=da(e),n=t%1;return t==t?n?t-n:t:0}function pa(e){return e?or(fa(e),0,f):0}function ga(e){if("number"==typeof e)return e;if(aa(e))return d;if(Qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=pe.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?d:+e}function ma(e){return ki(e,Ia(e))}function ya(e){return null==e?"":si(e)}var va=Pi((function(e,t){if(wo(t)||Vs(t))ki(t,Oa(t),e);else for(var n in t)Ae.call(t,n)&&Qn(e,n,t[n])})),_a=Pi((function(e,t){ki(t,Ia(t),e)})),ba=Pi((function(e,t,n,r){ki(t,Ia(t),e,r)})),wa=Pi((function(e,t,n,r){ki(t,Oa(t),e,r)})),xa=Qi(ir),Ea=Hr((function(e,t){e=Se(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],a=Ia(s),l=-1,u=a.length;++l<u;){var c=a[l],h=e[c];(h===i||Bs(h,Oe[c])&&!Ae.call(e,c))&&(e[c]=s[c])}return e})),Sa=Hr((function(e){return e.push(i,Xi),Et(Aa,i,e)}));function Ca(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Ma(e,t){return null!=e&&fo(e,t,Mr)}var ka=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),Qa(nl)),Ta=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Ae.call(e,t)?e[t].push(n):e[t]=[n]}),oo),Pa=Hr(Tr);function Oa(e){return Vs(e)?$n(e):Lr(e)}function Ia(e){return Vs(e)?$n(e,!0):function(e){if(!Qs(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ae.call(e,r))&&n.push(r);return n}(e)}var Ra=Pi((function(e,t,n){Br(e,t,n)})),Aa=Pi((function(e,t,n,r){Br(e,t,n,r)})),La=Qi((function(e,t){var n={};if(null==e)return n;var r=!1;t=It(t,(function(t){return t=mi(t,e),r||(r=t.length>1),t})),ki(e,to(e),n),r&&(n=sr(n,7,Zi));for(var i=t.length;i--;)li(n,t[i]);return n})),Na=Qi((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Ma(e,n)}))}(e,t)}));function Da(e,t){if(null==e)return{};var n=It(to(e),(function(e){return[e]}));return t=oo(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Fa=Hi(Oa),ja=Hi(Ia);function Ba(e){return null==e?[]:Xt(e,Oa(e))}var za=Ai((function(e,t,n){return t=t.toLowerCase(),e+(n?Ga(t):t)}));function Ga(e){return Ka(ya(e).toLowerCase())}function Ua(e){return(e=ya(e))&&e.replace(ve,en).replace(Ze,"")}var Wa=Ai((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qa=Ai((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Va=Ri("toLowerCase"),Ya=Ai((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ha=Ai((function(e,t,n){return e+(n?" ":"")+Ka(t)})),$a=Ai((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ka=Ri("toUpperCase");function Xa(e,t,n){return e=ya(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Za=Hr((function(e,t){try{return Et(e,i,t)}catch(e){return Ks(e)?e:new we(e)}})),Ja=Qi((function(e,t){return Ct(t,(function(t){t=Do(t),rr(e,t,Ts(e[t],e))})),e}));function Qa(e){return function(){return e}}var el=Di(),tl=Di(!0);function nl(e){return e}function rl(e){return Ar("function"==typeof e?e:sr(e,1))}var il=Hr((function(e,t){return function(n){return Tr(n,e,t)}})),ol=Hr((function(e,t){return function(n){return Tr(e,n,t)}}));function sl(e,t,n){var r=Oa(t),i=br(t,r);null!=n||Qs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=br(t,Oa(t)));var o=!(Qs(n)&&"chain"in n&&!n.chain),s=Xs(e);return Ct(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function al(){}var ll=zi(It),ul=zi(kt),cl=zi(Nt);function hl(e){return vo(e)?Wt(Do(e)):function(e){return function(t){return wr(t,e)}}(e)}var dl=Ui(),fl=Ui(!0);function pl(){return[]}function gl(){return!1}var ml,yl=Bi((function(e,t){return e+t}),0),vl=Vi("ceil"),_l=Bi((function(e,t){return e/t}),1),bl=Vi("floor"),wl=Bi((function(e,t){return e*t}),1),xl=Vi("round"),El=Bi((function(e,t){return e-t}
vendor: 20,642 bytes, line 3
3),0);return jn.after=function(e,t){if("function"!=typeof t)throw new ke(o);return e=fa(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Ms,jn.assign=va,jn.assignIn=_a,jn.assignInWith=ba,jn.assignWith=wa,jn.at=xa,jn.before=ks,jn.bind=Ts,jn.bindAll=Ja,jn.bindKey=Ps,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]},jn.chain=hs,jn.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:mn(fa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=r(dt(o/t));s<o;)l[a++]=ei(e,s,s+=t);return l},jn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},jn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Rt(Ws(n)?Mi(n):[n],gr(t,1))},jn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new ke(o);return[n(e[0]),e[1]]})):[],Hr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Et(i[0],this,n))return Et(i[1],this,n)}}))},jn.conforms=function(e){return function(e){var t=Oa(e);return function(n){return ar(n,e,t)}}(sr(e,1))},jn.constant=Qa,jn.countBy=ps,jn.create=function(e,t){var n=Bn(e);return null==t?n:nr(n,t)},jn.curry=function e(t,n,r){var o=$i(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},jn.curryRight=function e(t,n,r){var o=$i(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},jn.debounce=Os,jn.defaults=Ea,jn.defaultsDeep=Sa,jn.defer=Is,jn.delay=Rs,jn.difference=Bo,jn.differenceBy=zo,jn.differenceWith=Go,jn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:fa(t))<0?0:t,r):[]},jn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:fa(t)))<0?0:t):[]},jn.dropRightWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!0):[]},jn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&yo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=fa(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:fa(r))<0&&(r+=o),r=n>r?0:pa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},jn.filter=function(e,t){return(Ws(e)?Tt:pr)(e,oo(t,3))},jn.flatMap=function(e,t){return gr(xs(e,t),1)},jn.flatMapDeep=function(e,t){return gr(xs(e,t),c)},jn.flatMapDepth=function(e,t,n){return n=n===i?1:fa(n),gr(xs(e,t),n)},jn.flatten=qo,jn.flattenDeep=function(e){return null!=e&&e.length?gr(e,c):[]},jn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===i?1:fa(t)):[]},jn.flip=function(e){return $i(e,512)},jn.flow=el,jn.flowRight=tl,jn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},jn.functions=function(e){return null==e?[]:br(e,Oa(e))},jn.functionsIn=function(e){return null==e?[]:br(e,Ia(e))},jn.groupBy=_s,jn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},jn.intersection=Yo,jn.intersectionBy=Ho,jn.intersectionWith=$o,jn.invert=ka,jn.invertBy=Ta,jn.invokeMap=bs,jn.iteratee=rl,jn.keyBy=ws,jn.keys=Oa,jn.keysIn=Ia,jn.map=xs,jn.mapKeys=function(e,t){var n={};return t=oo(t,3),vr(e,(function(e,r,i){rr(n,t(e,r,i),e)})),n},jn.mapValues=function(e,t){var n={};return t=oo(t,3),vr(e,(function(e,r,i){rr(n,r,t(e,r,i))})),n},jn.matches=function(e){return Fr(sr(e,1))},jn.matchesProperty=function(e,t){return jr(e,sr(t,1))},jn.memoize=As,jn.merge=Ra,jn.mergeWith=Aa,jn.method=il,jn.methodOf=ol,jn.mixin=sl,jn.negate=Ls,jn.nthArg=function(e){return e=fa(e),Hr((function(t){return zr(t,e)}))},jn.omit=La,jn.omitBy=function(e,t){return Da(e,Ls(oo(t)))},jn.once=function(e){return ks(2,e)},jn.orderBy=function(e,t,n,r){return null==e?[]:(Ws(t)||(t=null==t?[]:[t]),Ws(n=r?i:n)||(n=null==n?[]:[n]),Gr(e,t,n))},jn.over=ll,jn.overArgs=Ns,jn.overEvery=ul,jn.overSome=cl,jn.partial=Ds,jn.partialRight=Fs,jn.partition=Es,jn.pick=Na,jn.pickBy=Da,jn.property=hl,jn.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},jn.pull=Xo,jn.pullAll=Zo,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,oo(n,2)):e},jn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,i,n):e},jn.pullAt=Jo,jn.range=dl,jn.rangeRight=fl,jn.rearg=js,jn.reject=function(e,t){return(Ws(e)?Tt:pr)(e,Ls(oo(t,3)))},jn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return qr(e,i),n},jn.rest=function(e,t){if("function"!=typeof e)throw new ke(o);return Hr(e,t=t===i?t:fa(t))},jn.reverse=Qo,jn.sampleSize=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:fa(t),(Ws(e)?Xn:Kr)(e,t)},jn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},jn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Xr(e,t,n,r)},jn.shuffle=function(e){return(Ws(e)?Zn:Qr)(e)},jn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yo(e,t,n)?(t=0,n=r):(t=null==t?0:fa(t),n=n===i?r:fa(n)),ei(e,t,n)):[]},jn.sortBy=Ss,jn.sortedUniq=function(e){return e&&e.length?ii(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},jn.split=function(e,t,n){return n&&"number"!=typeof n&&yo(e,t,n)&&(t=n=i),(n=n===i?f:n>>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=si(t))&&rn(e)?vi(hn(e),0,n):e.split(t,n):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new ke(o);return t=null==t?0:mn(fa(t),0),Hr((function(n){var r=n[t],i=vi(n,0,t);return r&&Rt(i,r),Et(e,this,i)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:fa(t))<0?0:t):[]},jn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:fa(t)))<0?0:t,r):[]},jn.takeRightWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?ci(e,oo(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ke(o);return Qs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Os(e,t,{leading:r,maxWait:t,trailing:i})},jn.thru=ds,jn.toArray=ha,jn.toPairs=Fa,jn.toPairsIn=ja,jn.toPath=function(e){return Ws(e)?It(e,Do):aa(e)?[e]:Mi(No(ya(e)))},jn.toPlainObject=ma,jn.transform=function(e,t,n){var r=Ws(e),i=r||Hs(e)||la(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Qs(e)&&Xs(o)?Bn(qe(e)):{}}return(i?Ct:vr)(e,(function(e,r,i){return t(n,e,r,i)})),n},jn.unary=function(e){return Ms(e,1)},jn.union=es,jn.unionBy=ts,jn.unionWith=ns,jn.uniq=function(e){return e&&e.length?ai(e):[]},jn.uniqBy=function(e,t){return e&&e.length?ai(e,oo(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ai(e,i,t):[]},jn.unset=function(e,t){return null==e||li(e,t)},jn.unzip=rs,jn.unzipWith=is,jn.update=function(e,t,n){return null==e?e:ui(e,t,gi(n))},jn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ui(e,t,gi(n),r)},jn.values=Ba,jn.valuesIn=function(e){return null==e?[]:Xt(e,Ia(e))},jn.without=os,jn.words=Xa,jn.wrap=function(e,t){return Ds(gi(t),e)},jn.xor=ss,jn.xorBy=as,jn.xorWith=ls,jn.zip=us,jn.zipObject=function(e,t){return fi(e||[],t||[],Qn)},jn.zipObjectDeep=function(e,t){return fi(e||[],t||[],Xr)},jn.zipWith=cs,jn.entries=Fa,jn.entriesIn=ja,jn.extend=_a,jn.extendWith=ba,sl(jn,jn),jn.add=yl,jn.attempt=Za,jn.camelCase=za,jn.capitalize=Ga,jn.ceil=vl,jn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ga(n))==n?n:0),t!==i&&(t=(t=ga(t))==t?t:0),or(ga(e),t,n)},jn.clone=function(e){return sr(e,4)},jn.cloneDeep=function(e){return sr(e,5)},jn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},jn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},jn.conformsTo=function(e,t){return null==t||ar(e,t,Oa(t))},jn.deburr=Ua,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=_l,jn.endsWith=function(e,t,n){e=ya(e),t=si(t);var r=e.length,o=n=n===i?r:or(fa(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},jn.eq=Bs,jn.escape=function(e){return(e=ya(e))&&$.test(e)?e.replace(Y,tn):e},jn.escapeRegExp=function(e){return(e=ya(e))&&ne.test(e)?e.replace(te,"\\$&"):e},jn.every=function(e,t,n){var r=Ws(e)?kt:dr;return n&&yo(e,t,n)&&(t=i),r(e,oo(t,3))},jn.find=gs,jn.findIndex=Uo,jn.findKey=function(e,t){return Ft(e,oo(t,3),vr)},jn.findLast=ms,jn.findLastIndex=Wo,jn.findLastKey=function(e,t){return Ft(e,oo(t,3),_r)},jn.floor=bl,jn.forEach=ys,jn.forEachRight=vs,jn.forIn=function(e,t){return null==e?e:mr(e,oo(t,3),Ia)},jn.forInRight=function(e,t){return null==e?e:yr(e,oo(t,3),Ia)},jn.forOwn=function(e,t){return e&&vr(e,oo(t,3))},jn.forOwnRight=function(e,t){return e&&_r(e,oo(t,3))},jn.get=Ca,jn.gt=zs,jn.gte=Gs,jn.has=function(e,t){return null!=e&&fo(e,t,Cr)},jn.hasIn=Ma,jn.head=Vo,jn.identity=nl,jn.includes=function(e,t,n,r){e=Vs(e)?e:Ba(e),n=n&&!r?fa(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),sa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bt(e,t,n)>-1},jn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=mn(r+i,0)),Bt(e,t,i)},jn.inRange=function(e,t,n){return t=da(t),n===i?(n=t,t=0):n=da(n),function(e,t,n){return e>=yn(t,n)&&e<mn(t,n)}(e=ga(e),t,n)},jn.invoke=Pa,jn.isArguments=Us,jn.isArray=Ws,jn.isArrayBuffer=qs,jn.isArrayLike=Vs,jn.isArrayLikeObject=Ys,jn.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Er(e)==y},jn.isBuffer=Hs,jn.isDate=$s,jn.isElement=function(e){return ea(e)&&1===e.nodeType&&!ra(e)},jn.isEmpty=function(e){if(null==e)return!0;if(Vs(e)&&(Ws(e)||"string"==typeof e||"function"==typeof e.splice||Hs(e)||la(e)||Us(e)))return!e.length;var t=ho(e);if(t==x||t==k)return!e.size;if(wo(e))return!Lr(e).length;for(var n in e)if(Ae.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Or(e,t)},jn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Or(e,t,i,n):!!r},jn.isError=Ks,jn.isFinite=function(e){return"number"==typeof e&&Dt(e)},jn.isFunction=Xs,jn.isInteger=Zs,jn.isLength=Js,jn.isMap=ta,jn.isMatch=function(e,t){return e===t||Ir(e,t,ao(t))},jn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Ir(e,t,ao(t),n)},jn.isNaN=function(e){return na(e)&&e!=+e},jn.isNative=function(e){if(bo(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=na,jn.isObject=Qs,jn.isObjectLike=ea,jn.isPlainObject=ra,jn.isRegExp=ia,jn.isSafeInteger=function(e){return Zs(e)&&e>=-9007199254740991&&e<=h},jn.isSet=oa,jn.isString=sa,jn.isSymbol=aa,jn.isTypedArray=la,jn.isUndefined=function(e){return e===i},jn.isWeakMap=function(e){return ea(e)&&ho(e)==O},jn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Er(e)},jn.join=function(e,t){return null==e?"":qt.call(e,t)},jn.kebabCase=Wa,jn.last=Ko,jn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=fa(n))<0?mn(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):jt(e,Gt,o,!0)},jn.lowerCase=qa,jn.lowerFirst=Va,jn.lt=ua,jn.lte=ca,jn.max=function(e){return e&&e.length?fr(e,nl,Sr):i},jn.maxBy=function(e,t){return e&&e.length?fr(e,oo(t,2),Sr):i},jn.mean=function(e){return Ut(e,nl)},jn.meanBy=function(e,t){return Ut(e,oo(t,2))},jn.min=function(e){return e&&e.length?fr(e,nl,Nr):i},jn.minBy=function(e,t){return e&&e.length?fr(e,oo(t,2),Nr):i},jn.stubArray=pl,jn.stubFalse=gl,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=wl,jn.nth=function(e,t){return e&&e.length?zr(e,fa(t)):i},jn.noConflict=function(){return ht._===this&&(ht._=je),this},jn.noop=al,jn.now=Cs,jn.pad=function(e,t,n){e=ya(e);var r=(t=fa(t))?cn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(ft(i),n)+e+Gi(dt(i),n)},jn.padEnd=function(e,t,n){e=ya(e);var r=(t=fa(t))?cn(e):0;return t&&r<t?e+Gi(t-r,n):e},jn.padStart=function(e,t,n){e=ya(e);var r=(t=fa(t))?cn(e):0;return t&&r<t?Gi(t-r,n)+e:e},jn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(ya(e).replace(re,""),t||0)},jn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=da(e),t===i?(t=e,e=0):t=da(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=bn();return yn(e+o*(t-e+at("1e-"+((o+"").length-1))),t)}return Vr(e,t)},jn.reduce=function(e,t,n){var r=Ws(e)?At:Vt,i=arguments.length<3;return r(e,oo(t,4),n,i,cr)},jn.reduceRight=function(e,t,n){var r=Ws(e)?Lt:Vt,i=arguments.length<3;return r(e,oo(t,4),n,i,hr)},jn.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:fa(t),Yr(ya(e),t)},jn.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var r=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=i);++r<o;){var s=null==e?i:e[Do(t[r])];s===i&&(r=o,s=n),e=Xs(s)?s.call(e):s}return e},jn.round=xl,jn.runInContext=e,jn.sample=function(e){return(Ws(e)?Kn:$r)(e)},jn.size=function(e){if(null==e)return 0;if(Vs(e))return sa(e)?cn(e):e.length;var t=ho(e);return t==x||t==k?e.size:Lr(e).length},jn.snakeCase=Ya,jn.some=function(e,t,n){var r=Ws(e)?Nt:ti;return n&&yo(e,t,n)&&(t=i),r(e,oo(t,3))},jn.sortedIndex=function(e,t){return ni(e,t)},jn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},jn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Bs(e[r],t))return r}return-1},jn.sortedLastIndex=function(e,t){return ni(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},jn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Bs(e[n],t))return n}return-1},jn.startCase=Ha,jn.startsWith=function(e,t,n){return e=ya(e),n=null==n?0:or(fa(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},jn.subtract=El,jn.sum=function(e){return e&&e.length?Yt(e,nl):0},jn.sumBy=function(e,t){return e&&e.length?Yt(e,oo(t,2)):0},jn.template=function(e,t,n){var r=jn.templateSettings;n&&yo(e,t,n)&&(t=i),e=ya(e),t=ba({},t,r,Ki);var o,s,a=ba({},t.imports,r.imports,Ki),l=Oa(a),u=Xt(a,l),c=0,h=t.interpolate||_e,d="__p += '",f=Ce((t.escape||_e).source+"|"+h.source+"|"+(h===Z?he:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),p="//# sourceURL="+(Ae.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,(function(t,n,r,i,a,l){return r||(r=i),d+=e.slice(c,l).replace(be,nn),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var g=Ae.call(t,"variable")&&t.variable;if(g){if(ue.test(g))throw new we("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(U,""):d).replace(W,"$1").replace(q,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Za((function(){return xe(l,p+"return "+d).apply(i,u)}));if(m.source=d,Ks(m))throw m;return m},jn.times=function(e,t){if((e=fa(e))<1||e>h)return[];var n=f,r=yn(e,f);t=oo(t),e-=f;for(var i=Ht(r,t);++n<e;)t(n);return i},jn.toFinite=da,jn.toInteger=fa,jn.toLength=pa,jn.toLower=function(e){return ya(e).toLowerCase()},jn.toNumber=ga,jn.toSafeInteger=function(e){return e?or(fa(e),-9007199254740991,h):0===e?e:0},jn.toString=ya,jn.toUpper=function(e){return ya(e).toUpperCase()},jn.trim=function(e,t,n){if((e=ya(e))&&(n||t===i))return $t(e);if(!e||!(t=si(t)))return e;var r=hn(e),o=hn(t);return vi(r,Jt(r,o),Qt(r,o)+1).join("")},jn.trimEnd=function(e,t,n){if((e=ya(e))&&(n||t===i))return e.slice(0,dn(e)+1);if(!e||!(t=si(t)))return e;var r=hn(e);return vi(r,0,Qt(r,hn(t))+1).join("")},jn.trimStart=function(e,t,n){if((e=ya(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=hn(e);return vi(r,Jt(r,hn(t))).join("")},jn.truncate=function(e,t){var n=30,r="...";if(Qs(t)){var o="separator"in t?t.separator:o;n="length"in t?fa(t.length):n,r="omission"in t?si(t.omission):r}var s=(e=ya(e)).length;if(rn(e)){var a=hn(e);s=a.length}if(n>=s)return e;var l=n-cn(r);if(l<1)return r;var u=a?vi(a,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(a&&(l+=u.length-l),ia(o)){if(e.slice(l).search(o)){var c,h=u;for(o.global||(o=Ce(o.source,ya(de.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var d=c.index;u=u.slice(0,d===i?l:d)}}else if(e.indexOf(si(o),l)!=l){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},jn.unescape=function(e){return(e=ya(e))&&H.test(e)?e.replace(V,fn):e},jn.uniqueId=function(e){var t=++Le;return ya(e)+t},jn.upperCase=$a,jn.upperFirst=Ka,jn.each=ys,jn.eachRight=vs,jn.first=Vo,sl(jn,(ml={},vr(jn,(function(e,t){Ae.call(jn.prototype,t)||(ml[t]=e)})),ml),{chain:!1}),jn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),Ct(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:mn(fa(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(nl)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Hr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Tr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Ls(oo(e)))},Un.prototype.slice=function(e,t){e=fa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(f)},vr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=jn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(jn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Un,u=a[0],c=l||Ws(t),h=function(e){var t=o.apply(jn,Rt([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,g=l&&!f;if(!s&&c){t=g?t:new Un(this);var m=e.apply(t,a);return m.__actions__.push({func:ds,args:[h],thisArg:i}),new Gn(m,d)}return p&&g?e.apply(this,a):(m=this.thru(h),p?r?m.value()[0]:m.value():m)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ws(i)?i:[],e)}return this[n]((function(n){return t.apply(Ws(n)?n:[],e)}))}})),vr(Un.prototype,(function(e,t){var n=jn[t];if(n){var r=n.name+"";Ae.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[Fi(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mi(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ws(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=yn(t,e+s);break;case"takeRight":e=mn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,u=r?a:s-1,c=this.__iteratees__,h=c.length,d=0,f=yn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return hi(e,this.__actions__);var p=[];e:for(;l--&&d<f;){for(var g=-1,m=e[u+=t];++g<h;){var y=c[g],v=y.iteratee,_=y.type,b=v(m);
vendor: 1,746 bytes, line 3
3if(2==_)m=b;else if(!b){if(1==_)continue e;break e}}p[d++]=m}return p},jn.prototype.at=fs,jn.prototype.chain=function(){return hs(this)},jn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===i&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=jo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ds,args:[Qo],thisArg:i}),new Gn(t,this.__chain__)}return this.thru(Qo)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,Ke&&(jn.prototype[Ke]=function(){return this}),jn}();ht._=pn,(r=function(){return pn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},2694:(e,t,n)=>{"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
3;return n.PropTypes=n,n}},2799:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,s=60114,a=60109,l=60110,u=60112,c=60113,h=60120,d=60115,f=60116;if("function"==typeof Symbol&&Symbol.for){var p=Symbol.for;n=p("react.element"),r=p("react.portal"),i=p("react.fragment"),o=p("react.strict_mode"),s=p("react.profiler"),a=p("react.provider"),l=p("react.context"),u=p("react.forward_ref"),c=p("react.suspense"),h=p("react.suspense_list"),d=p("react.memo"),f=p("react.lazy"),p("react.block"),p("react.server.block"),p("react.fundamental"),p("react.debug_trace_mode"),p("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case o:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case d:case a:return e;default:return t}}case r:return t}}}(e)===l}},2991:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1601),i=n.n(r),o=n(6314),s=n.n(o)()(i());s.push([e.id,"// extracted by mini-css-extract-plugin\nexport {};",""]);const a=s},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case h:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case l:return e;default:return t}}case i:return t}}}function x(e){return w(e)===h}t.AsyncMode=c,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||w(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===h||e===a||e===s||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y)},t.typeOf=w},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},3467:function(e,t){!function(e){"use strict";const t=134217729;function n(e,t,n,r,i){let o,s,a,l,u=t[0],c=r[0],h=0,d=0;c>u==c>-u?(o=u,u=t[++h]):(o=c,c=r[++d]);let f=0;if(h<e&&d<n)for(c>u==c>-u?(a=o-((s=u+o)-u),u=t[++h]):(a=o-((s=c+o)-c),c=r[++d]),o=s,0!==a&&(i[f++]=a);h<e&&d<n;)c>u==c>-u?(a=o-((s=o+u)-(l=s-o))+(u-l),u=t[++h]):(a=o-((s=o+c)-(l=s-o))+(c-l),c=r[++d]),o=s,0!==a&&(i[f++]=a);for(;h<e;)a=o-((s=o+u)-(l=s-o))+(u-l),u=t[++h],o=s,0!==a&&(i[f++]=a);for(;d<n;)a=o-((s=o+c)-(l=s-o))+(c-l),c=r[++d],o=s,0!==a&&(i[f++]=a);return 0===o&&0!==f||(i[f++]=o),f}function r(e){return new Float64Array(e)}const i=r(4),o=r(8),s=r(12),a=r(16),l=r(4);e.orient2d=function(e,r,u,c,h,d){const f=(r-d)*(u-h),p=(e-h)*(c-d),g=f-p;if(0===f||0===p||f>0!=p>0)return g;const m=Math.abs(f+p);return Math.abs(g)>=33306690738754716e-32*m?g:-function(e,r,u,c,h,d,f){let p,g,m,y,v,_,b,w,x,E,S,C,M,k,T,P,O,I;const R=e-h,A=u-h,L=r-d,N=c-d;v=(T=(w=R-(b=(_=t*R)-(_-R)))*(E=N-(x=(_=t*N)-(_-N)))-((k=R*N)-b*x-w*x-b*E))-(S=T-(O=(w=L-(b=(_=t*L)-(_-L)))*(E=A-(x=(_=t*A)-(_-A)))-((P=L*A)-b*x-w*x-b*E))),i[0]=T-(S+v)+(v-O),v=(M=k-((C=k+S)-(v=C-k))+(S-v))-(S=M-P),i[1]=M-(S+v)+(v-P),v=(I=C+S)-C,i[2]=C-(I-v)+(S-v),i[3]=I;let D=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,i),F=22204460492503146e-32*f;if(D>=F||-D>=F)return D;if(p=e-(R+(v=e-R))+(v-h),m=u-(A+(v=u-A))+(v-h),g=r-(L+(v=r-L))+(v-d),y=c-(N+(v=c-N))+(v-d),0===p&&0===g&&0===m&&0===y)return D;if(F=11093356479670487e-47*f+33306690738754706e-32*Math.abs(D),(D+=R*y+N*p-(L*m+A*g))>=F||-D>=F)return D;v=(T=(w=p-(b=(_=t*p)-(_-p)))*(E=N-(x=(_=t*N)-(_-N)))-((k=p*N)-b*x-w*x-b*E))-(S=T-(O=(w=g-(b=(_=t*g)-(_-g)))*(E=A-(x=(_=t*A)-(_-A)))-((P=g*A)-b*x-w*x-b*E))),l[0]=T-(S+v)+(v-O),v=(M=k-((C=k+S)-(v=C-k))+(S-v))-(S=M-P),l[1]=M-(S+v)+(v-P),v=(I=C+S)-C,l[2]=C-(I-v)+(S-v),l[3]=I;const j=n(4,i,4,l,o);v=(T=(w=R-(b=(_=t*R)-(_-R)))*(E=y-(x=(_=t*y)-(_-y)))-((k=R*y)-b*x-w*x-b*E))-(S=T-(O=(w=L-(b=(_=t*L)-(_-L)))*(E=m-(x=(_=t*m)-(_-m)))-((P=L*m)-b*x-w*x-b*E))),l[0]=T-(S+v)+(v-O),v=(M=k-((C=k+S)-(v=C-k))+(S-v))-(S=M-P),l[1]=M-(S+v)+(v-P),v=(I=C+S)-C,l[2]=C-(I-v)+(S-v),l[3]=I;const B=n(j,o,4,l,s);v=(T=(w=p-(b=(_=t*p)-(_-p)))*(E=y-(x=(_=t*y)-(_-y)))-((k=p*y)-b*x-w*x-b*E))-(S=T-(O=(w=g-(b=(_=t*g)-(_-g)))*(E=m-(x=(_=t*m)-(_-m)))-((P=g*m)-b*x-w*x-b*E))),l[0]=T-(S+v)+(v-O),v=(M=k-((C=k+S)-(v=C-k))+(S-v))-(S=M-P),l[1]=M-(S+v)+(v-P),v=(I=C+S)-C,l[2]=C-(I-v)+(S-v),l[3]=I;const z=n(B,s,4,l,a);return a[z-1]}(e,r,u,c,h,d,m)},e.orient2dfast=function(e,t,n,r,i,o){return(t-o)*(n-i)-(e-i)*(r-o)}
3,Object.defineProperty(e,"__esModule",{value:!0})}(t)},3486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(6540)),i=u(n(5556)),o=u(n(1578)),s=u(n(4525)),a=u(n(2444)),l=u(n(7932));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(c,e);var t,n,i,u=(i=c,function(){var e,t=y(i);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?m(e):t}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),_(m(t=u.call(this,e)),"storeInputReference",(function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"==typeof n?n(e):"object"===p(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))})),_(m(t),"storeItemsContainerReference",(function(e){null!==e&&(t.itemsContainer=e)})),_(m(t),"onHighlightedItemChange",(function(e){t.highlightedItem=e})),_(m(t),"getItemId",(function(e,n){if(null===n)return null;var r=t.props.id,i=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(r,"-").concat(i,"-item-").concat(n)})),_(m(t),"onFocus",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)})),_(m(t),"onBlur",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)})),_(m(t),"onKeyDown",(function(e){var n,r,i=t.props,o=i.inputProps,s=i.highlightedSectionIndex,a=i.highlightedItemIndex,l=e.keyCode;switch(l){case 40:case 38:var u=40===l?"next":"prev",c=(n=t.sectionIterator[u]([s,a]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}
3(n,r)||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.")}()),h=c[0],d=c[1];o.onKeyDown(e,{newHighlightedSectionIndex:h,newHighlightedItemIndex:d});break;default:o.onKeyDown(e,{highlightedSectionIndex:s,highlightedItemIndex:a})}})),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return t=c,(n=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,o.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,s.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,i=n.id,o=n.items,s=n.renderItem,u=n.renderItemData,c=n.renderSectionTitle,h=n.highlightedSectionIndex,d=n.highlightedItemIndex,f=n.itemProps;return o.map((function(n,o){var p="react-autowhatever-".concat(i,"-"),g="".concat(p,"section-").concat(o,"-"),m=0===o;return r.default.createElement("div",t("".concat(g,"container"),"sectionContainer",m&&"sectionContainerFirst"),r.default.createElement(a.default,{section:n,renderSectionTitle:c,theme:t,sectionKeyPrefix:g}),r.default.createElement(l.default,{items:e.sectionsItems[o],itemProps:f,renderItem:s,renderItemData:u,sectionIndex:o,highlightedItemIndex:h===o?d:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:p,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,i=n.id,o=n.renderItem,s=n.renderItemData,a=n.highlightedSectionIndex,u=n.highlightedItemIndex,c=n.itemProps;return r.default.createElement(l.default,{items:e,itemProps:c,renderItem:o,renderItemData:s,highlightedItemIndex:null===a?u:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(i,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,i=t.multiSection,o=t.renderInputComponent,s=t.renderItemsContainer,a=t.highlightedSectionIndex,l=t.highlightedItemIndex,u=this.state.isInputFocused,c=i?this.renderSections():this.renderItems(),h=null!==c,f=this.getItemId(a,l),p="react-autowhatever-".concat(n),g=d({role:"combobox","aria-haspopup":"listbox","aria-owns":p,"aria-expanded":h},e("react-autowhatever-".concat(n,"-container"),"container",h&&"containerOpen"),{},this.props.containerProps),m=o(d({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":p,"aria-activedescendant":f},e("react-autowhatever-".concat(n,"-input"),"input",h&&"inputOpen",u&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),y=s({containerProps:d({id:p,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",h&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:c});return r.default.createElement("div",g,m,y)}}])&&g(t.prototype,n),c}(r.Component);
3t.default=w,_(w,"propTypes",{id:i.default.string,multiSection:i.default.bool,renderInputComponent:i.default.func,renderItemsContainer:i.default.func,items:i.default.array.isRequired,renderItem:i.default.func,renderItemData:i.default.object,renderSectionTitle:i.default.func,getSectionItems:i.default.func,containerProps:i.default.object,inputProps:i.default.object,itemProps:i.default.oneOfType([i.default.object,i.default.func]),highlightedSectionIndex:i.default.number,highlightedItemIndex:i.default.number,theme:i.default.oneOfType([i.default.object,i.default.array])}),_(w,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return r.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:b,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:b,inputProps:b,itemProps:b,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},3675:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var r,i,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){r=arguments[s],i=n(Object(r));for(var a=0;a<i.length;a++)o[i[a]]=r[i[a]]}return o}},3841:e=>{e.exports=function(e,t,n,r){var i=e[0],o=e[1],s=!1;void 0===n&&(n=0),void 0===r&&(r=t.length);for(var a=(r-n)/2,l=0,u=a-1;l<a;u=l++){var c=t[n+2*l+0],h=t[n+2*l+1],d=t[n+2*u+0],f=t[n+2*u+1];h>o!=f>o&&i<(d-c)*(o-h)/(f-h)+c&&(s=!s)}return s}},4146:(e,t,n)=>{"use strict";var r=n(3404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var s=c(n);h&&(s=s.concat(h(n)));for(var a=l(t),g=l(n),m=0;m<s.length;++m){var y=s[m];if(!(o[y]||r&&r[y]||g&&g[y]||a&&a[y])){var v=d(n,y);try{u(t,y,v)}catch(e){}}}}return t}},4262:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{constructor(e=[],t=i){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,r=t[e];for(;e>0;){const i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r}_down(e){const{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e<r;){let r=1+(e<<1),o=t[r];const s=r+1;if(s<this.length&&n(t[s],o)<0&&(r=s,o=t[s]),n(o,i)>=0)break;t[e]=o,e=r}t[e]=i}}function i(e,t){return e<t?-1:e>t?1:0}},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},4477:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;
3){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],h=1,d=null,f=3,p=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(m=!1,b(e),!g)if(null!==r(u))g=!0,I();else{var t=r(c);null!==t&&R(w,t.startTime-e)}}var x,E=!1,S=-1,C=5,M=-1;function k(){return!(t.unstable_now()-M<C)}function T(){if(E){var e=t.unstable_now();M=e;var n=!0;try{e:{g=!1,m&&(m=!1,v(S),S=-1),p=!0;var o=f;try{t:{for(b(e),d=r(u);null!==d&&!(d.expirationTime>e&&k());){var s=d.callback;if("function"==typeof s){d.callback=null,f=d.priorityLevel;var a=s(d.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof a){d.callback=a,b(e),n=!0;break t}d===r(u)&&i(u),b(e)}else i(u);d=r(u)}if(null!==d)n=!0;else{var l=r(c);null!==l&&R(w,l.startTime-e),n=!1}}break e}finally{d=null,f=o,p=!1}n=void 0}}finally{n?x():E=!1}}}if("function"==typeof _)x=function(){_(T)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,O=P.port2;P.port1.onmessage=T,x=function(){O.postMessage(null)}}else x=function(){y(T,0)};function I(){E||(E=!0,x())}function R(e,n){S=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,I())},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:h++,callback:i,priorityLevel:e,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(v(S),S=-1):m=!0,R(w,o-s))):(e.sortIndex=a,n(u,e),g||p||(g=!0,I())),e},t.unstable_shouldYield=k,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},4525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,o=(i=n(3675))&&i.__esModule?i:{default:i},s=function(e){return e};t.default=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(Array.isArray(e)&&2===e.length?e:[e,null],2),n=t[0],i=t[1];return function(e){for(var t=arguments.length,a=Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l];var u=a.map((function(e){return n[e]})).filter(s);return"string"==typeof u[0]||"function"==typeof i?{key:e,className:i?i.apply(void 0,r(u)):u.join(" ")}:{key:e,style:o.default.apply(void 0,[{}].concat(r(u)))}}},e.exports=t.default},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},s=[],a=0;a<e.length;a++){var l=e[a],u=r.base?l[0]+r.base:l[0],c=o[u]||0,h="".concat(u," ").concat(c);o[u]=c+1;var d=n(h),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var p=i(f,r);r.byIndex=a,t.splice(a,0,{identifier:h,updater:p,references:1})}s.push(h)}return s}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=n(o[s]);t[a].references--}for(var l=r(e,i),u=0;u<o.length;u++){var c=n(o[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=l}}},5160:(e,t,n)=>{"use strict";var r=n(6540);"function"==typeof Object.is&&Object.is,r.useSyncExternalStore,r.useRef,r.useEffect,r.useMemo,r.useDebugValue}
3,5338:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1247)},5341:function(e){e.exports=function(){"use strict";function e(e,r,i,o,s){!function e(n,r,i,o,s){for(;o>i;){if(o-i>600){var a=o-i+1,l=r-i+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*c/a+h)),Math.min(o,Math.floor(r+(a-l)*c/a+h)),s)}var d=n[r],f=i,p=o;for(t(n,i,r),s(n[o],d)>0&&t(n,i,o);f<p;){for(t(n,f,p),f++,p--;s(n[f],d)<0;)f++;for(;s(n[p],d)>0;)p--}0===s(n[i],d)?t(n,i,p):t(n,++p,o),p<=r&&(i=p+1),r<=p&&(o=p-1)}}(e,r,i||0,o||e.length-1,s||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){s(e,0,e.children.length,t,e)}function s(e,t,n,r,i){i||(i=p(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var s=e.children[o];a(i,e.leaf?r(s):s)}return i}function a(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function d(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function f(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function p(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,n,r,i,o){for(var s=[n,r];s.length;)if(!((r=s.pop())-(n=s.pop())<=i)){var a=n+Math.ceil((r-n)/i/2)*i;e(t,a,n,r,o),s.push(n,a,a,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!f(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var s=t.children[o],a=t.leaf?r(s):s;f(e,a)&&(t.leaf?n.push(s):d(e,a)?this._all(s,n):i.push(s))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!f(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(f(e,o)){if(t.leaf||d(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=p([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,s=this.data,a=this.toBBox(e),l=[],u=[];s||l.length;){if(s||(s=l.pop(),r=l[l.length-1],n=u.pop(),o=!0),s.leaf){var c=i(e,s.children,t);if(-1!==c)return s.children.splice(c,1),l.push(s),this._condense(l),this}o||s.leaf||!d(s,a)?r?(n++,s=r.children[n],o=!1):s=null:(l.push(s),u.push(n),n=0,r=s,s=s.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,s=n-t+1,a=this._maxEntries;if(s<=a)return o(i=p(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,r-1))),(i=p([])).leaf=!1,i.height=r;var l=Math.ceil(s/a),u=l*Math.ceil(Math.sqrt(a));g(e,t,n,u,this.compareMinX);for(var c=t;c<=n;c+=u){var h=Math.min(c+u-1,n);g(e,c,h,l,this.compareMinY);for(var d=c;d<=h;d+=l){var f=Math.min(d+l-1,h);i.children.push(this._build(e,d,f,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,s=void 0,a=0;a<t.children.length;a++){var l=t.children[a],u=c(l),h=(d=e,f=l,(Math.max(f.maxX,d.maxX)-Math.min(f.minX,d.minX))*(Math.max(f.maxY,d.maxY)-Math.min(f.minY,d.minY))-u);h<o?(o=h,i=u<i?u:i,s=l):h===o&&u<i&&(i=u,s=l)}t=s||t.children[0]}var d,f;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),a(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var s=this._chooseSplitIndex(n,i,r),a=p(n.children.splice(s,n.children.length-s));a.height=n.height,a.leaf=n.leaf,o(n,this.toBBox),o(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(n,a)},r.prototype._splitRoot=function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,a,l,u,h,d=1/0,f=1/0,p=t;p<=n-t;p++){var g=s(e,0,p,this.toBBox),m=s(e,p,n,this.toBBox),y=(i=g,o=m,void 0,void 0,void 0,void 0,a=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),h=Math.min(i.maxY,o.maxY),Math.max(0,u-a)*Math.max(0,h-l)),v=c(g)+c(m);y<d?(d=y,r=p,f=v<f?v:f):y===d&&v<f&&(f=v,r=p)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=s(e,0,t,i),l=s(e,n-t,n,i),u=h(o)+h(l),c=t;c<n-t;c++){var d=e.children[c];a(o,e.leaf?i(d):d),u+=h(o)}for(var f=n-t-1;f>=t;f--){var p=e.children[f];a(l,e.leaf?i(p):p),u+=h(l)}return u},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)a(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},5556:(e,t,n)=>{e.exports=n(2694)()},6221:(e,t,n)=>{"use strict";var r=n(6540);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},a=Symbol.for("react.portal"),l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(i(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=s.p;try{if(l.T=null,s.p=2,e)return e()}finally{l.T=t,s.p=n,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):"script"===n&&s.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin);s.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
3ing"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=u(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.0.0"},6306:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32)}([function(e,t,n){"use strict";(function(e,r){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(17),s=n(15),a=n(37),l=n(16),u=n(18),c={};t.clone=function(n,r){if("object"!==(void 0===n?"undefined":i(n))||null===n)return n;var o=(r=r||new Map).get(n);if(o)return o;var s=void 0,a=!1;if(Array.isArray(n))s=[],a=!0;else if(e.isBuffer(n))s=e.from(n);else if(n instanceof Date)s=new Date(n.getTime());else if(n instanceof RegExp)s=new RegExp(n);else{var l=Object.getPrototypeOf(n);l&&l.isImmutable?s=n:(s=Object.create(l),a=!0)}if(r.set(n,s),a)for(var u=Object.getOwnPropertyNames(n),c=0;c<u.length;++c){var h=u[c],d=Object.getOwnPropertyDescriptor(n,h);d&&(d.get||d.set)?Object.defineProperty(s,h,d):s[h]=t.clone(n[h],r)}return s},t.merge=function(n,r,o,s){if(t.assert(n&&"object"===(void 0===n?"undefined":i(n)),"Invalid target value: must be an object"),t.assert(null==r||"object"===(void 0===r?"undefined":i(r)),"Invalid source value: must be null, undefined, or an object"),!r)return n;if(Array.isArray(r)){t.assert(Array.isArray(n),"Cannot merge array onto an object"),!1===s&&(n.length=0);for(var a=0;a<r.length;++a)n.push(t.clone(r[a]));return n}for(var l=Object.keys(r),u=0;u<l.length;++u){var c=l[u];if("__proto__"!==c){var h=r[c];h&&"object"===(void 0===h?"undefined":i(h))?!n[c]||"object"!==i(n[c])||Array.isArray(n[c])!==Array.isArray(h)||h instanceof Date||e.isBuffer(h)||h instanceof RegExp?n[c]=t.clone(h):t.merge(n[c],h,o,s):(null!=h||!1!==o)&&(n[c]=h)}}return n},t.applyToDefaults=function(e,n,r){if(t.assert(e&&"object"===(void 0===e?"undefined":i(e)),"Invalid defaults value: must be an object"),t.assert(!n||!0===n||"object"===(void 0===n?"undefined":i(n)),"Invalid options value: must be true, falsy or an object"),!n)return null;var o=t.clone(e);return!0===n?o:t.merge(o,n,!0===r,!1)},t.cloneWithShallow=function(e,n){if(!e||"object"!==(void 0===e?"undefined":i(e)))return e;var r=c.store(e,n),o=t.clone(e);return c.restore(o,e,r),o},c.store=function(e,n){for(var r={},i=0;i<n.length;++i){var o=n[i],s=t.reach(e,o);void 0!==s&&(r[o]=s,c.reachSet(e,o,void 0))}return r},c.restore=function(e,t,n){for(var r=Object.keys(n),i=0;i<r.length;++i){var o=r[i];c.reachSet(e,o,n[o]),c.reachSet(t,o,n[o])}},c.reachSet=function(e,t,n){for(var r=t.split("."),i=e,o=0;o<r.length;++o){var s=r[o];o+1===r.length&&(i[s]=n),i=i[s]}},t.applyToDefaultsWithShallow=function(e,n,r){if(t.assert(e&&"object"===(void 0===e?"undefined":i(e)),"Invalid defaults value: must be an object"),t.assert(!n||!0===n||"object"===(void 0===n?"undefined":i(n)),"Invalid options value: must be true, falsy or an object"),t.assert(r&&Array.isArray(r),"Invalid keys"),!n)return null;var o=t.cloneWithShallow(e,r);if(!0===n)return o;var s=c.store(n,r);return t.merge(o,n,!1,!1),c.restore(o,n,s),o},t.deepEqual=function(n,r,o,s){o=o||{prototype:!0};var a=void 0===n?"undefined":i(n);if(a!==(void 0===r?"undefined":i(r)))return!1;if("object"!==a||null===n||null===r)return n===r?0!==n||1/n==1/r:n!=n&&r!=r;if(-1!==(s=s||[]).indexOf(n))return!0;
3if(s.push(n),Array.isArray(n)){if(!Array.isArray(r))return!1;if(!o.part&&n.length!==r.length)return!1;for(var l=0;l<n.length;++l){if(o.part){for(var u=!1,c=0;c<r.length;++c)if(t.deepEqual(n[l],r[c],o)){u=!0;break}return u}if(!t.deepEqual(n[l],r[l],o))return!1}return!0}if(e.isBuffer(n)){if(!e.isBuffer(r))return!1;if(n.length!==r.length)return!1;for(var h=0;h<n.length;++h)if(n[h]!==r[h])return!1;return!0}if(n instanceof Date)return r instanceof Date&&n.getTime()===r.getTime();if(n instanceof RegExp)return r instanceof RegExp&&n.toString()===r.toString();if(o.prototype&&Object.getPrototypeOf(n)!==Object.getPrototypeOf(r))return!1;var d=Object.getOwnPropertyNames(n);if(!o.part&&d.length!==Object.getOwnPropertyNames(r).length)return!1;for(var f=0;f<d.length;++f){var p=d[f],g=Object.getOwnPropertyDescriptor(n,p);if(g.get){if(!t.deepEqual(g,Object.getOwnPropertyDescriptor(r,p),o,s))return!1}else if(!t.deepEqual(n[p],r[p],o,s))return!1}return!0},t.unique=function(e,t){var n=void 0;if(t){n=[];var r=new Set;e.forEach((function(e){var i=e[t];r.has(i)||(r.add(i),n.push(e))}))}else n=Array.from(new Set(e));return n},t.mapToObject=function(e,t){if(!e)return null;for(var n={},r=0;r<e.length;++r)t?e[r][t]&&(n[e[r][t]]=!0):n[e[r]]=!0;return n},t.intersect=function(e,n,r){if(!e||!n)return[];for(var i=[],o=Array.isArray(e)?t.mapToObject(e):e,s={},a=0;a<n.length;++a)if(o[n[a]]&&!s[n[a]]){if(r)return n[a];i.push(n[a]),s[n[a]]=!0}return r?null:i},t.contain=function(e,n,r){var o=null;"object"!==(void 0===e?"undefined":i(e))||"object"!==(void 0===n?"undefined":i(n))||Array.isArray(e)||Array.isArray(n)?n=[].concat(n):(o=n,n=Object.keys(n)),r=r||{},t.assert("string"==typeof e||"object"===(void 0===e?"undefined":i(e)),"Reference must be string or an object"),t.assert(n.length,"Values array cannot be empty");var s=void 0,a=void 0;if(r.deep){s=t.deepEqual;var l=r.hasOwnProperty("only"),u=r.hasOwnProperty("part");a={prototype:l?r.only:!!u&&!r.part,part:l?!r.only:!u||r.part}}else s=function(e,t){return e===t};for(var c=!1,h=new Array(n.length),d=0;d<h.length;++d)h[d]=0;if("string"==typeof e){for(var f="(",p=0;p<n.length;++p){var g=n[p];
3t.assert("string"==typeof g,"Cannot compare string reference to non-string value"),f+=(p?"|":"")+t.escapeRegex(g)}var m=new RegExp(f+")","g");c=!!e.replace(m,(function(e,t){var r=n.indexOf(t);return++h[r],""}))}else if(Array.isArray(e))for(var y=0;y<e.length;++y){for(var v=!1,_=0;_<n.length&&!1===v;++_)v=s(n[_],e[y],a)&&_;!1!==v?++h[v]:c=!0}else for(var b=Object.getOwnPropertyNames(e),w=0;w<b.length;++w){var x=b[w],E=n.indexOf(x);if(-1!==E){if(o&&!s(o[x],e[x],a))return!1;++h[E]}else c=!0}for(var S=!1,C=0;C<h.length;++C)if(S=S||!!h[C],r.once&&h[C]>1||!r.part&&!h[C])return!1;return(!r.only||!c)&&S},t.flatten=function(e,n){for(var r=n||[],i=0;i<e.length;++i)Array.isArray(e[i])?t.flatten(e[i],r):r.push(e[i]);return r},t.reach=function(e,n,r){if(!1===n||null==n)return e;"string"==typeof(r=r||{})&&(r={separator:r});for(var o=n.split(r.separator||"."),s=e,a=0;a<o.length;++a){var l=o[a];if("-"===l[0]&&Array.isArray(s)&&(l=l.slice(1,l.length),l=s.length-l),!s||"object"!==(void 0===s?"undefined":i(s))&&"function"!=typeof s||!(l in s)||"object"!==(void 0===s?"undefined":i(s))&&!1===r.functions){t.assert(!r.strict||a+1===o.length,"Missing segment",l,"in reach path ",n),t.assert("object"===(void 0===s?"undefined":i(s))||!0===r.functions||"function"!=typeof s,"Invalid segment",l,"in reach path ",n),s=r.default;break}s=s[l]}return s},t.reachTemplate=function(e,n,r){return n.replace(/{([^}]+)}/g,(function(n,i){var o=t.reach(e,i,r);return null==o?"":o}))},t.formatStack=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push([r.getFileName(),r.getLineNumber(),r.getColumnNumber(),r.getFunctionName(),r.isConstructor()])}return t},t.formatTrace=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push((r[4]?"new ":"")+r[3]+" ("+r[0]+":"+r[1]+":"+r[2]+")")}return t},t.callStack=function(e){var n=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var r={};Error.captureStackTrace(r,this);var i=r.stack;return Error.prepareStackTrace=n,t.formatStack(i).slice(1+e)},t.displayStack=function(e){var n=t.callStack(void 0===e?1:e+1);return t.formatTrace(n)},t.abortThrow=!1,t.abort=function(e,n){if("test"===r.env.NODE_ENV||!0===t.abortThrow)throw new Error(e||"Unknown error");var i="";n||(i=t.displayStack(1).join("\n\t")),console.log("ABORT: "+e+"\n\t"+i),r.exit(1)},t.assert=function(e){if(!e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(1===r.length&&r[0]instanceof Error)throw r[0];var s=r.filter((function(e){return""!==e})).map((function(e){return"string"==typeof e?e:e instanceof Error?e.message:t.stringify(e)}));throw new o.AssertionError({message:s.join(" ")||"Unknown error",actual:!1,expected:!0,operator:"==",stackStartFunction:t.assert})}},t.Bench=function(){this.ts=0,this.reset()},t.Bench.prototype.reset=function(){this.ts=t.Bench.now()},t.Bench.prototype.elapsed=function(){return t.Bench.now()-this.ts},t.Bench.now=function(){var e=r.hrtime();return 1e3*e[0]+e[1]/1e6},t.escapeRegex=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")},t.base64urlEncode=function(n,r){return t.assert("string"==typeof n||e.isBuffer(n),"value must be string or buffer"),(e.isBuffer(n)?n:e.from(n,r||"binary")).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")},t.base64urlDecode=function(t,n){if("string"!=typeof t)throw new Error("Value not a string");if(!/^[\w\-]*$/.test(t))throw new Error("Invalid character");var r=e.from(t,"base64");return"buffer"===n?r:r.toString(n||"binary")},t.escapeHeaderAttribute=function(e){return t.assert(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(e),"Bad attribute value ("+e+")"),e.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')},t.escapeHtml=function(e){return u.escapeHtml(e)},t.escapeJavaScript=function(e){return u.escapeJavaScript(e)},t.escapeJson=function(e){return u.escapeJson(e)},t.once=function(e){if(e._hoekOnce)return e;var t=!1,n=function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(null,r)}};return n._hoekOnce=!0,n},t.isInteger=Number.isSafeInteger,t.ignore=function(){},t.inherits=l.inherits,t.format=l.format,t.transform=function(e,n,r){t.assert(null==e||"object"===(void 0===e?"undefined":i(e))||Array.isArray(e),"Invalid source object: must be null, undefined, an object, or an array");var o="object"===(void 0===r?"undefined":i(r))&&null!==r&&r.separator||".";if(Array.isArray(e)){for(var s=[],a=0;a<e.length;++a)s.push(t.transform(e[a],n,r));return s}for(var l={},u=Object.keys(n),c=0;c<u.length;++c){var h=u[c],d=h.split(o),f=n[h];t.assert("string"==typeof f,'All mappings must be "." delineated strings');for(var p=void 0,g=l;d.length>1;)g[p=d.shift()]||(g[p]={}),g=g[p];g[p=d.shift()]=t.reach(e,f,r)}return l},t.uniqueFilename=function(e,t){t=t?"."!==t[0]?"."+t:t:"",e=a.resolve(e);var n=[Date.now(),r.pid,s.randomBytes(8).toString("hex")].join("-")+t;return a.join(e,n)},t.stringify=function(){try{for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return JSON.stringify.apply(null,t)}catch(e){return"[Cannot display object: "+e.message+"]"}},t.shallow=function(e){for(var t={},n=Object.keys(e),r=0;r<n.length;++r){var i=n[r];t[i]=e[i]}return t},t.wait=function(e){return new Promise((function(t){return setTimeout(t,e)}))},t.block=function(){return new Promise(t.ignore)}}).call(t,n(3).Buffer,n(7))},function(e,t,n){"use strict";var r=n(0);t.create=function(e,t){r.assert("string"==typeof e,"Invalid reference key:",e);var n=r.clone(t),i=function e(t,i){return r.reach(e.isContext?i.context:t,e.key,n)};return i.isContext=e[0]===(n&&n.contextPrefix||"$"),i.key=i.isContext?e.slice(1):e,i.path=i.key.split(n&&n.separator||"."),i.depth=i.path.length,i.root=i.path[0],i.isJoi=!0,i.toString=function(){return(i.isContext?"context:":"ref:")+i.key},i},t.isRef=function(e){return"function"==typeof e&&e.isJoi},t.push=function(e,n){t.isRef(n)&&!n.isContext&&e.push(n.root)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),s=n(11),a=n(1),l=n(6),u=null,c=null,h={Set:n(9),defaults:{abortE
3arly:!0,convert:!0,allowUnknown:!1,skipFunctions:!1,stripUnknown:!1,language:{},presence:"optional",strip:!1,noDefaults:!1,escapeHtml:!1}};e.exports=h.Any=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c=c||n(4),this.isJoi=!0,this._type="any",this._settings=null,this._valids=new h.Set,this._invalids=new h.Set,this._tests=[],this._refs=[],this._flags={},this._description=null,this._unit=null,this._notes=[],this._tags=[],this._examples=[],this._meta=[],this._inner={}}return e.prototype._init=function(){return this},e.prototype.createError=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this._flags;return l.create(e,t,n,r,i)},e.prototype.createOverrideError=function(e,t,n,r,i,o){return l.create(e,t,n,r,this._flags,i,o)},e.prototype.checkOptions=function(e){var t=n(21).options.validate(e);if(t.error)throw new Error(t.error.details[0].message)},e.prototype.clone=function(){var e=Object.create(Object.getPrototypeOf(this));e.isJoi=!0,e._currentJoi=this._currentJoi,e._type=this._type,e._settings=this._settings,e._baseType=this._baseType,e._valids=this._valids.slice(),e._invalids=this._invalids.slice(),e._tests=this._tests.slice(),e._refs=this._refs.slice(),e._flags=o.clone(this._flags),e._description=this._description,e._unit=this._unit,e._notes=this._notes.slice(),e._tags=this._tags.slice(),e._examples=this._examples.slice(),e._meta=this._meta.slice(),e._inner={};for(var t=Object.keys(this._inner),n=0;n<t.length;++n){var r=t[n];e._inner[r]=this._inner[r]?this._inner[r].slice():null}return e},e.prototype.concat=function(e){o.assert(e instanceof h.Any,"Invalid schema object"),o.assert("any"===this._type||"any"===e._type||e._type===this._type,"Cannot merge type",this._type,"with another type:",e._type);var t=this.clone();if("any"===this._type&&"any"!==e._type){for(var n=e.clone(),r=["_settings","_valids","_invalids","_tests","_refs","_flags","_description","_unit","_notes","_tags","_examples","_meta","_inner"],i=0;i<r.length;++i)n[r[i]]=t[r[i]];t=n}t._settings=t._settings?s.concat(t._settings,e._settings):e._settings,t._valids.merge(e._valids,e._invalids),t._invalids.merge(e._invalids,e._valids),t._tests=t._tests.concat(e._tests),t._refs=t._refs.concat(e._refs),o.merge(t._flags,e._flags),t._description=e._description||t._description,t._unit=e._unit||t._unit,t._notes=t._notes.concat(e._notes),t._tags=t._tags.concat(e._tags),t._examples=t._examples.concat(e._examples),t._meta=t._meta.concat(e._meta);for(var a=Object.keys(e._inner),l="object"===t._type,u=0;u<a.length;++u){var c=a[u],d=e._inner[c];if(d){var f=t._inner[c];if(f)if(l&&"children"===c){for(var p={},g=0;g<f.length;++g)p[f[g].key]=g;for(var m=0;m<d.length;++m){var y=d[m].key;p[y]>=0?f[p[y]]={key:y,schema:f[p[y]].schema.concat(d[m].schema)}:f.push(d[m])}}else t._inner[c]=t._inner[c].concat(d);else t._inner[c]=d.slice()}}return t},e.prototype._test=function(e,t,n,r){var i=this.clone();return i._tests.push({func:n,name:e,arg:t,options:r}),i},e.prototype.options=function(e){o.assert(!e.context,"Cannot override context"),this.checkOptions(e);var t=this.clone();return t._settings=s.concat(t._settings,e),t},e.prototype.strict=function(e){var t=this.clone(),n=void 0!==e&&!e;return t._settings=s.concat(t._settings,{convert:n}),t},e.prototype.raw=function(e){var t=void 0===e||e;if(this._flags.raw===t)return this;var n=this.clone();return n._flags.raw=t,n},e.prototype.error=function(e){o.assert(e&&(e instanceof Error||"function"==typeof e),"Must provide a valid Error object or a function");var t=this.clone();return t._flags.error=e,t},e.prototype.allow=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this.clone();t=o.flatten(t);for(var i=0;i<t.length;++i){var s=t[i];o.assert(void 0!==s,"Cannot call allow/valid/invalid with undefined"),r._invalids.remove(s),r._valids.add(s,r._refs)}return r},e.prototype.valid=function(){var e=this.allow.apply(this,arguments);return e._flags.allowOnly=!0,e},e.prototype.invalid=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this.clone();t=o.flatten(t);for(var i=0;i<t.length;++i){var s=t[i];o.assert(void 0!==s,"Cannot call allow/valid/invalid with undefined"),r._valids.remove(s),r._invalids.add(s,r._refs)}return r},e.prototype.required=function(){if("required"===this._flags.presence)return this;var e=this.clone();return e._flags.presence="required",e},e.prototype.optional=function(){if("optional"===this._flags.presence)return this;var e=this.clone();return e._flags.presence="optional",e},e.prototype.forbidden=function(){if("forbidden"===this._flags.presence)return this;var e=this.clone();return e._flags.presence="forbidden",e},e.prototype.strip=function(){if(this._flags.strip)return this;var e=this.clone();return e._flags.strip=!0,e},e.prototype.applyFunctionToChildren=function(e,t,n,r){if(1!==(e=[].concat(e)).length||""!==e[0]){r=r?r+".":"";var i=(""===e[0]?e.slice(1):e).map((function(e){return r+e}));throw new Error("unknown key(s) "+i.join(", "))}return this[t].apply(this,n)},e.prototype.default=function(e,t){"function"!=typeof e||a.isRef(e)||(!e.description&&t&&(e.description=t),this._flags.func||o.assert("string"==typeof e.description&&e.description.length>0,"description must be provided when default value is a function"));var n=this.clone();return n._flags.default=e,a.push(n._refs,e),n},e.prototype.empty=function(e){var t=this.clone();return void 0===e?delete t._flags.empty:t._flags.empty=c.schema(this._currentJoi,e),t},e.prototype.when=function(e,t){o.assert(t&&"object"===(void 0===t?"undefined":r(t)),"Invalid options"),o.assert(void 0!==t.then||void 0!==t.otherwise,'options must have at least one of "then" or "otherwise"');var i=t.hasOwnProperty("then")?this.concat(c.schema(this._currentJoi,t.then)):void 0,s=t.hasOwnProperty("otherwise")?this.concat(c.schema(this._currentJoi,t.otherwise)):void 0;u=u||n(10);var a={then:i,otherwise:s};Object.prototype.hasOwnProperty.call(t,"is")&&(a.is=t.is);var l=u.when(e,a);return l._flags.presence="ignore",l._baseType=this,l},e.prototype.description=function(e){o.assert(e&&"string"==typeof e,"Description must be a non-empty string");var t=this.clone();return t._description=e,t},e.prototype.notes=function(e){o.assert(e&&("string"==typeof e||Array.isArray(e)),"Notes must be a non-empty string or array");var t=this.clone();return t._notes=t._notes.concat(e),t},e.prototype.tags=function(e){o.assert(e&&("string"==typeof e||Array.isArray(e)),"Tags must be a non-empty string or array");var t=this.clone();return t._tags=t._tags.concat(e),t},e.prototype.meta=function(e){o.assert(void 0!==e,"Meta cannot be undefined");var t=this.clone();return t._meta=t._meta.concat(e),t},e.prototype.example=function(){o.assert(1===arguments.length,"Missing example");var e=arguments.length<=0?void 0:arguments[0],t=this.clone();return t._examples.push(e),t},e.prototype.unit=function(e){o.assert(e&&"string"==typeof e,"Unit name must be a non-empty string");var t=this.clone();return t._unit=e,t},e.prototype._prepareEmptyValue=function(e){return"string"==typeof e&&this._flags.trim?e.trim():e},e.prototype._validate=function(e,t,n,r){var i=this,u=e;t=t||{key:"",path:[],parent:null,reference:r},this._settings&&(n=s.concat(n,this._settings));var c=[],d=function(){var r=void 0;if(void 0!==e)r=i._flags.raw?u:e;else if(n.noDefaults)r=e;else if(a.isRef(i._flags.default))r=i._flags.default(t.parent,n);else if("function"!=typeof i._flags.default||i._flags.func&&!i._flags.default.description)r=o.clone(i._flags.default);else{var s=void 0;null!==t.parent&&i._flags.default.length>0&&(s=[o.clone(t.parent),n]);var l=h._try(i._flags.default,s);r=l.value,l.error&&c.push(i.createError("any.default",{error:l.error},t,n))}if(c.length&&"function"==typeof i._flags.error){var d=i._flags.error.call(i,c);c="string"==typeof d?[i.createOverrideError("override",{reason:c},t,n,d)]:[].concat(d).map((function(e){return e instanceof Error?e:i.createOverrideError(e.type||"override",e.context,t,n,e.message,e.template)}))}return{value:i._flags.strip?void 0:r,finalValue:r,errors:c.length?c:null}};if(this._coerce){var f=this._coerce.call(this,e,t,n);if(f.errors)return e=f.value,c=c.concat(f.errors),d();e=f.value}this._flags.empty&&!this._flags.empty._validate(this._prepareEmptyValue(e),null,h.defaults).errors&&(e=void 0);var p=this._flags.presence||n.presence;if("optional"===p){if(void 0===e){if(!this._flags.hasOwnProperty("default")||void 0!==this._flags.default||"object"!==this._type)return d();e={}}}else{if("required"===p&&void 0===e)return c.push(this.createError("any.required",null,t,n)),d();if("forbidden"===p)return void 0===e||c.push(this.createError("any.unknown",null,t,n)),d()}
3if(this._valids.has(e,t,n,this._flags.insensitive))return d();if(this._invalids.has(e,t,n,this._flags.insensitive)&&(c.push(this.createError(""===e?"any.empty":"any.invalid",{value:e,invalids:this._invalids.values({stripUndefined:!0})},t,n)),n.abortEarly||void 0===e))return d();if(this._base){var g=this._base.call(this,e,t,n);if(g.errors)return e=g.value,c=c.concat(g.errors),d();if(g.value!==e){if(e=g.value,this._valids.has(e,t,n,this._flags.insensitive))return d();if(this._invalids.has(e,t,n,this._flags.insensitive)&&(c.push(this.createError(""===e?"any.empty":"any.invalid",{value:e,invalids:this._invalids.values({stripUndefined:!0})},t,n)),n.abortEarly))return d()}}if(this._flags.allowOnly&&(c.push(this.createError("any.allowOnly",{value:e,valids:this._valids.values({stripUndefined:!0})},t,n)),n.abortEarly))return d();for(var m=0;m<this._tests.length;++m){var y=this._tests[m].func.call(this,e,t,n);if(y instanceof l.Err){if(c.push(y),n.abortEarly)return d()}else e=y}return d()},e.prototype._validateWithOptions=function(e,t,n){t&&this.checkOptions(t);var r=s.concat(h.defaults,t),i=this._validate(e,null,r),o=l.process(i.errors,e);return n?n(o,i.value):{error:o,value:i.value,then:function(e,t){return o?Promise.reject(o).catch(t):Promise.resolve(i.value).then(e)},catch:function(e){return o?Promise.reject(o).catch(e):Promise.resolve(i.value)}}},e.prototype.validate=function(e,t,n){return"function"==typeof t?this._validateWithOptions(e,null,t):this._validateWithOptions(e,t,n)},e.prototype.describe=function(){var e=this,t={type:this._type},n=Object.keys(this._flags);if(n.length)if(["empty","default","lazy","label"].some((function(t){return e._flags.hasOwnProperty(t)}))){t.flags={};for(var r=0;r<n.length;++r){var i=n[r];"empty"===i?t.flags[i]=this._flags[i].describe():"default"===i?a.isRef(this._flags[i])?t.flags[i]=this._flags[i].toString():"function"==typeof this._flags[i]?t.flags[i]={description:this._flags[i].description,function:this._flags[i]}:t.flags[i]=this._flags[i]:"lazy"===i||"label"===i||(t.flags[i]=this._flags[i])}}else t.flags=this._flags;this._settings&&(t.options=o.clone(this._settings)),this._baseType&&(t.base=this._baseType.describe()),this._description&&(t.description=this._description),this._notes.length&&(t.notes=this._notes),this._tags.length&&(t.tags=this._tags),this._meta.length&&(t.meta=this._meta),this._examples.length&&(t.examples=this._examples),this._unit&&(t.unit=this._unit);var s=this._valids.values();s.length&&(t.valids=s.map((function(e){return a.isRef(e)?e.toString():e})));var l=this._invalids.values();l.length&&(t.invalids=l.map((function(e){return a.isRef(e)?e.toString():e}))),t.rules=[];for(var u=0;u<this._tests.length;++u){var c=this._tests[u],h={name:c.name};void 0!==c.arg&&(h.arg=a.isRef(c.arg)?c.arg.toString():c.arg);var d=c.options;if(d){if(d.hasRef){h.arg={};for(var f=Object.keys(c.arg),p=0;p<f.length;++p){var g=f[p],m=c.arg[g];h.arg[g]=a.isRef(m)?m.toString():m}}"string"==typeof d.description?h.description=d.description:"function"==typeof d.description&&(h.description=d.description(h.arg))}t.rules.push(h)}t.rules.length||delete t.rules;var y=this._getLabel();return y&&(t.label=y),t},e.prototype.label=function(e){o.assert(e&&"string"==typeof e,"Label name must be a non-empty string");var t=this.clone();return t._flags.label=e,t},e.prototype._getLabel=function(e){return this._flags.label||e},i(e,[{key:"schemaType",get:function(){return this._type}}]),e}(),h.Any.prototype.isImmutable=!0,h.Any.prototype.only=h.Any.prototype.equal=h.Any.prototype.valid,h.Any.prototype.disallow=h.Any.prototype.not=h.Any.prototype.invalid,h.Any.prototype.exist=h.Any.prototype.required,h._try=function(e,t){var n=void 0,r=void 0;try{r=e.apply(null,t)}catch(e){n=e}return{value:r,error:n}}},function(e,t,n){"use strict";(function(e){var r=n(33),i=n(34),o=n(35);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=a(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(c(t),e=a(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|f(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 16,440 bytes, line 3
3(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return-1}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function b(e,t,n,r){return U(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function E(e,t,n,r){return U(G(t),e,n,r)}function S(e,t,n,r){return U(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,l,u=e[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=k));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?M(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),h=0;h<a;++h)if(u[h]!==c[h]){o=u[h],s=c[h];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",s=t;s<n;++s)o+=(r=e[s])<16?"0"+r.toString(16):r.toString(16);return o}function I(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||A(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||A(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=l.isBuffer(e)?e:z(new l(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>
3-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n(5))},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(0),o=n(1);t.schema=function(e,t){return null!=t&&"object"===(void 0===t?"undefined":r(t))?t.isJoi?t:Array.isArray(t)?e.alternatives().try(t):t instanceof RegExp?e.string().regex(t):t instanceof Date?e.date().valid(t):e.object().keys(t):"string"==typeof t?e.string().valid(t):"number"==typeof t?e.number().valid(t):"boolean"==typeof t?e.boolean().valid(t):o.isRef(t)?e.valid(t):(i.assert(null===t,"Invalid schema content:",t),e.valid(null))},t.ref=function(e){return o.isRef(e)?e:o.create(e)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(0),o=n(20),s={annotations:Symbol("joi-annotations"),stringify:function(e,n){var i=void 0===e?"undefined":r(e);if(null===e)return"null";if("string"===i)return e;if(e instanceof t.Err||"function"===i||"symbol"===i)return e.toString();if("object"===i){if(Array.isArray(e)){for(var o="",a=0;a<e.length;++a)o=o+(o.length?", ":"")+s.stringify(e[a],n);return n?"["+o+"]":o}return e.toString()}return JSON.stringify(e)}};t.Err=function(){function e(t,n,r,i,s,a,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isJoi=!0,this.type=t,this.context=n||{},this.context.key=r.path[r.path.length-1],this.context.label=r.key,this.path=r.path,this.options=i,this.flags=s,this.message=a,this.template=l;var u=this.options.language;this.flags.label?this.context.label=this.flags.label:!u||""!==this.context.label&&null!==this.context.label||(this.context.label=u.root||o.errors.root)}return e.prototype.toString=function(){var e=this;if(this.message)return this.message;var t=void 0;this.template&&(t=this.template);var n=this.options.language;if(void 0===(t=t||i.reach(n,this.type)||i.reach(o.errors,this.type)))return'Error code "'+this.type+'" is not defined, your custom type is missing the correct language definition';var r=i.reach(n,"messages.wrapArrays");if("boolean"!=typeof r&&(r=o.errors.messages.wrapArrays),null===t){var a=s.stringify(this.context.reason,r);return r?a.slice(1,-1):a}var l=/\{\{\!?label\}\}/.test(t),u=t.length>2&&"!"===t[0]&&"!"===t[1];if(u&&(t=t.slice(2)),!l&&!u){var c=i.reach(n,"key");t="string"==typeof c?c+t:i.reach(o.errors,"key")+t}return t.replace(/\{\{(\!?)([^}]+)\}\}/g,(function(t,n,o){var a=i.reach(e.context,o),l=s.stringify(a,r);return n&&e.options.escapeHtml?i.escapeHtml(l):l}))},e}(),t.create=function(e,n,r,i,o,s,a){return new t.Err(e,n,r,i,o,s,a)},t.process=function(e,t){if(!e||!e.length)return null;var n="",r=[],i=function e(t,i){for(var o=0;o<t.length;++o){var s=t[o];if(s instanceof Error)return s;if(s.flags.error&&"function"!=typeof s.flags.error)return s.flags.error;var a=void 0;if(void 0===i&&(a=s.toString(),n=n+(n?". ":"")+a),s.context.reason&&s.c
3ontext.reason.length){var l=e(s.context.reason,s.path);if(l)return l}else r.push({message:a||s.toString(),path:s.path,type:s.type,context:s.context})}}(e);if(i)return i;var o=new Error(n);return o.isJoi=!0,o.name="ValidationError",o.details=r,o._object=t,o.annotate=s.annotate,o},s.safeStringify=function(e,t){return JSON.stringify(e,s.serializer(),t)},s.serializer=function(){var e=[],t=[],n=function(n,r){return t[0]===r?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(r)).join(".")+"]"};return function(i,o){if(t.length>0){var a=t.indexOf(this);~a?(t.length=a+1,e.length=a+1,e[a]=i):(t.push(this),e.push(i)),~t.indexOf(o)&&(o=n.call(this,i,o))}else t.push(o);if(o){var l=o[s.annotations];if(l){if(Array.isArray(o)){for(var u=[],c=0;c<o.length;++c)l.errors[c]&&u.push("_$idx$_"+l.errors[c].sort().join(", ")+"_$end$_"),u.push(o[c]);o=u}else{for(var h=Object.keys(l.errors),d=0;d<h.length;++d){var f=h[d];o[f+"_$key$_"+l.errors[f].sort().join(", ")+"_$end$_"]=o[f],o[f]=void 0}for(var p=Object.keys(l.missing),g=0;g<p.length;++g){var m=p[g];o["_$miss$_"+m+"|"+l.missing[m]+"_$end$_"]="__missing__"}}return o}}return o===1/0||o===-1/0||Number.isNaN(o)||"function"==typeof o||"symbol"===(void 0===o?"undefined":r(o))?"["+o.toString()+"]":o}},s.annotate=function(e){var t=e?"":"�[31m",n=e?"":"�[41m",o=e?"":"�[0m";if("object"!==r(this._object))return this.details[0].message;for(var a=i.clone(this._object||{}),l=this.details.length-1;l>=0;--l)for(var u=l+1,c=this.details[l],h=c.path,d=a,f=0;;++f){var p=h[f];if(d.isImmutable&&(d=d.clone()),!(f+1<h.length&&d[p]&&"string"!=typeof d[p])){var g=d[s.annotations]=d[s.annotations]||{errors:{},missing:{}},m=d[p],y=p||c.context.label;void 0!==m?(g.errors[y]=g.errors[y]||[],g.errors[y].push(u)):g.missing[y]=u;break}d=d[p]}var v=s.safeStringify(a,2).replace(/_\$key\$_([, \d]+)_\$end\$_\"/g,(function(e,n){return'" '+t+"["+n+"]"+o})).replace(/\"_\$miss\$_([^\|]+)\|(\d+)_\$end\$_\"\: \"__missing__\"/g,(function(e,r,i){return n+'"'+r+'"'+o+t+" ["+i+"]: -- missing --"+o})).replace(/\s*\"_\$idx\$_([, \d]+)_\$end\$_\",?\n(.*)/g,(function(e,n,r){return"\n"+r+" "+t+"["+n+"]"+o})).replace(/"\[(NaN|Symbol.*|-?Infinity|function.*|\(.*)\]"/g,(function(e,t){return t}));v=v+"\n"+t;for(var _=0;_<this.details.length;++_)v=v+"\n["+(_+1)+"] "+this.details[_].message;return v+o}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l,u=[],c=!1,h=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++h<t;)l&&l[h].run();h=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var i=n(0),o=n(2),s=n(4),a=n(6),l=n(26),u=n(1),c=n(11),h={alternatives:n(10),array:n(22),boolean:n(24),binary:n(23),date:n(12),func:n(25),number:n(27),object:n(13),string:n(28),callWithDefaults:function(e,t){var n;return i.assert(this,"Must be invoked on a Joi instance."),this._defaults&&(e=this._defaults(e)),e._currentJoi=this,(n=e)._init.apply(n,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))},root:function(){var e=new o,t=e.clone();return o.prototype._currentJoi=t,t._currentJoi=t,t.any=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return i.assert(0===n.length,"Joi.any() does not allow arguments."),h.callWithDefaults.call(this,e,n)},t.alternatives=t.alt=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.callWithDefaults.call(this,h.alternatives,t)},t.array=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.assert(0===t.length,"Joi.array() does not allow arguments."),h.callWithDefaults.call(this,h.array,t)},t.boolean=t.bool=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.assert(0===t.length,"Joi.boolean() does not allow arguments."),h.callWithDefaults.call(this,h.boolean,t)},t.binary=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.assert(0===t.length,"Joi.binary() does not allow arguments."),h.callWithDefaults.call(this,h.binary,t)},t.date=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.assert(0===t.length,"Joi.date() does not allow arguments."),h.callWithDefaults.call(this,h.date,t)},t.func=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.assert(0===t.length,"Joi.func() does not allow arguments."),h.callWithDefaults.call(this,h.func,t)},t.number=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.assert(0===t.length,"Joi.number() does not allow arguments."),h.callWithDefaults.call(this,h.number,t)},t.object=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.callWithDefaults.call(this,h.object,t)},t.string=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.assert(0===t.length,"Joi.string() does not allow arguments."),h.callWithDefaults.call(this,h.string,t)},t.ref=function(){return u.create.apply(u,arguments)},t.isRef=function(e){return u.isRef(e)},t.validate=function(n){var r,i=arguments.length<=(r=(arguments.length<=1?0:arguments.length-1)-1+1)?void 0:arguments[r],o="function"==typeof i?i:null,
3s=(arguments.length<=1?0:arguments.length-1)-(o?1:0);if(0===s)return e.validate(n,o);var a=2===s?arguments.length<=2?void 0:arguments[2]:{};return t.compile(arguments.length<=1?void 0:arguments[1])._validateWithOptions(n,a,o)},t.describe=function(){return(arguments.length?t.compile(arguments.length<=0?void 0:arguments[0]):e).describe()},t.compile=function(e){try{return s.schema(this,e)}catch(e){throw e.hasOwnProperty("path")&&(e.message=e.message+"("+e.path+")"),e}},t.assert=function(e,n,r){t.attempt(e,n,r)},t.attempt=function(e,n,r){var i=t.validate(e,n),o=i.error;if(o){if(!r)throw"function"==typeof o.annotate&&(o.message=o.annotate()),o;if(!(r instanceof Error))throw"function"==typeof o.annotate&&(o.message=r+" "+o.annotate()),o;throw r}return i.value},t.reach=function(e,t){return i.assert(e&&e instanceof o,"you must provide a joi schema"),i.assert(Array.isArray(t)||"string"==typeof t,"path must be a string or an array of strings"),function e(t,n){if(!n.length)return t;var r=t._inner.children;if(r)for(var i=n.shift(),o=0;o<r.length;++o){var s=r[o];if(s.key===i)return e(s.schema,n)}}(e,"string"==typeof t?t?t.split("."):[]:t.slice())},t.lazy=function(e){return l.set(e)},t.defaults=function(e){var t=this;i.assert("function"==typeof e,"Defaults must be a function");var n=Object.create(this.any());return n=e(n),i.assert(n&&n instanceof this.constructor,"defaults() must return a schema"),r(n,this,n.clone()),n._defaults=function(n){return t._defaults&&(n=t._defaults(n),i.assert(n instanceof t.constructor,"defaults() must return a schema")),n=e(n),i.assert(n instanceof t.constructor,"defaults() must return a schema"),n},n},t.extend=function(){for(var e=this,n=arguments.length,l=Array(n),d=0;d<n;d++)l[d]=arguments[d];var f=i.flatten(l);i.assert(f.length>0,"You need to provide at least one extension"),this.assert(f,t.extensionsSchema);var p=Object.create(this.any());r(p,this);for(var g=function(n){var l=f[n];"function"==typeof l&&(l=l(p)),e.assert(l,t.extensionSchema);var d=(l.base||e.any()).clone(),g=d.constructor,m=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,i,o,s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return l.base&&r(s,d),s._type=l.name,l.language&&(s._settings=c.concat(s._settings,{language:(n={},i=l.name,o=l.language,i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n)})),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t}(g);if(l.coerce&&(m.prototype._coerce=function(e,t,n){if(g.prototype._coerce){var r=g.prototype._coerce.call(this,e,t,n);if(r.errors)return r;e=r.value}var i=l.coerce.call(this,e,t,n);return i instanceof a.Err?{value:e,errors:i}:{value:i}}),l.pre&&(m.prototype._base=function(e,t,n){if(g.prototype._base){var r=g.prototype._base.call(this,e,t,n);if(r.errors)return r;e=r.value}var i=l.pre.call(this,e,t,n);return i instanceof a.Err?{value:e,errors:i}:{value:i}}),l.rules)for(var y=function(t){var n=l.rules[t],r=n.params?n.params instanceof o?n.params._inner.children.map((function(e){return e.key})):Object.keys(n.params):[],a=n.params?s.schema(e,n.params):null;m.prototype[n.name]=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];if(t.length>r.length)throw new Error("Unexpected number of arguments");for(var l=!1,c={},h=0;h<r.length;++h)c[r[h]]=t[h],!l&&u.isRef(t[h])&&(l=!0);a&&(c=p.attempt(c,a));var d=void 0;if(d=n.validate?this._test(n.name,c,(function(e,t,r){return n.validate.call(this,c,e,t,r)}),{description:n.description,hasRef:l}):this.clone(),n.setup){var f=n.setup.call(d,c);void 0!==f&&(i.assert(f instanceof o,"Setup of extension Joi."+this._type+"()."+n.name+"() must return undefined or a Joi object"),d=f)}return d}},v=0;v<l.rules.length;++v)y(v);l.describe&&(m.prototype.describe=function(){var e=g.prototype.describe.call(this);return l.describe.call(this,e)});var _=new m;p[l.name]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.callWithDefaults.call(this,_,t)}},m=0;m<f.length;++m)g(m);return p},t.extensionSchema=h.object.keys({base:h.object.type(o,"Joi object"),name:h.string.required(),coerce:h.func.arity(3),pre:h.func.arity(3),language:h.object,describe:h.func.arity(1),rules:h.array.items(h.object.keys({name:h.string.required(),setup:h.func.arity(1),validate:h.func.arity(4),params:[h.object.pattern(/.*/,h.object.type(o,"Joi object")),h.object.type(h.object.constructor,"Joi object")],description:[h.string,h.func.arity(1)]}).or("setup","validate"))}).strict(),t.extensionsSchema=h.array.items([h.object,h.func.arity(1)]).strict(),t.version=n(36).version,t}};e.exports=h.root()},function(e,t,n){"use strict";(function(t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(1),s=function(e,n){var i=void 0===e?"undefined":r(e);if("object"===i){if(e instanceof Date)return function(t){return t instanceof Date&&e.getTime()===t.getTime()};if(t.isBuffer(e))return function(n){return t.isBuffer(n)&&e.length===n.length&&e.toString("binary")===n.toString("binary")}}else if(n&&"string"===i){var o=e.toLowerCase();return function(e){return"string"==typeof e&&o===e.toLowerCase()}}return null};e.exports=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._set=new Set(t),this._hasRef=!1}return e.prototype.add=function(e,t){var n=o.isRef(e);return!n&&this.has(e,null,null,!1)||(void 0!==t&&o.push(t,e),this._set.add(e),this._hasRef|=n),this},e.prototype.merge=function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,s=e._set[Symbol.iterator]();!(n=(o=s.next()).done);
3n=!0){var a=o.value;this.add(a)}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}var l=!0,u=!1,c=void 0;try{for(var h,d=t._set[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){var f=h.value;this.remove(f)}}catch(e){u=!0,c=e}finally{try{!l&&d.return&&d.return()}finally{if(u)throw c}}return this},e.prototype.remove=function(e){return this._set.delete(e),this},e.prototype.has=function(e,t,n,r){if(!this._set.size)return!1;var i=this._set.has(e);if(i)return i;var a=s(e,r);if(!a){if(t&&this._hasRef){var l=!0,u=!1,c=void 0;try{for(var h,d=this._set[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){var f=h.value;if(o.isRef(f)&&(e===(f=f(t.reference||t.parent,n))||Array.isArray(f)&&f.includes(e)))return!0}}catch(e){u=!0,c=e}finally{try{!l&&d.return&&d.return()}finally{if(u)throw c}}}return!1}return this._has(e,t,n,a)},e.prototype._has=function(e,t,n,r){var i=!(!t||!this._hasRef),s=function(t){return e===t||r(t)},a=!0,l=!1,u=void 0;try{for(var c,h=this._set[Symbol.iterator]();!(a=(c=h.next()).done);a=!0){var d=c.value;if(i&&o.isRef(d)&&(d=d(t.reference||t.parent,n),Array.isArray(d))){if(d.find(s))return!0}else if(s(d))return!0}}catch(e){l=!0,u=e}finally{try{!a&&h.return&&h.return()}finally{if(l)throw u}}return!1},e.prototype.values=function(e){if(e&&e.stripUndefined){var t=[],n=!0,r=!1,i=void 0;try{for(var o,s=this._set[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value;void 0!==a&&t.push(a)}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return t}return Array.from(this._set)},e.prototype.slice=function(){var t=new e(this._set);return t._hasRef=this._hasRef,t},e.prototype.concat=function(t){var n=new e([].concat(i(this._set),i(t._set)));return n._hasRef=!!(this._hasRef|t._hasRef),n},e}()}).call(t,n(3).Buffer)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=n(0),o=n(2),s=n(4),a=n(1),l={};l.Alternatives=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n._type="alternatives",n._invalids.remove(null),n._inner.matches=[],n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t.prototype._init=function(){return arguments.length?this.try.apply(this,arguments):this},t.prototype._base=function(e,t,n){for(var r=[],i=this._inner.matches.length,o=this._baseType,s=0;s<i;++s){var a=this._inner.matches[s];if(a.schema){var l=a.schema._validate(e,t,n);if(!l.errors)return l;r=r.concat(l.errors)}else{var u=a.peek||a.is,c=a.is?a.ref(t.reference||t.parent,n):e;if(u._validate(c,null,n,t.parent).errors){if(a.otherwise)return a.otherwise._validate(e,t,n)}else if(a.then)return a.then._validate(e,t,n);if(s===i-1&&o)return o._validate(e,t,n)}}return r.length?{errors:this.createError("alternatives.child",{reason:r},t,n)}:{errors:this.createError("alternatives.base",null,t,n)}},t.prototype.try=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t=i.flatten(t),i.assert(t.length,"Cannot add other alternatives without at least one schema");for(var r=this.clone(),o=0;o<t.length;++o){var a=s.schema(this._currentJoi,t[o]);a._refs.length&&(r._refs=r._refs.concat(a._refs)),r._inner.matches.push({schema:a})}return r},t.prototype.when=function(e,t){var n=!1;i.assert(a.isRef(e)||"string"==typeof e||(n=e instanceof o),"Invalid condition:",e),i.assert(t,"Missing options"),i.assert("object"===(void 0===t?"undefined":r(t)),"Invalid options"),n?i.assert(!t.hasOwnProperty("is"),'"is" can not be used with a schema condition'):i.assert(t.hasOwnProperty("is"),'Missing "is" directive'),i.assert(void 0!==t.then||void 0!==t.otherwise,'options must have at least one of "then" or "otherwise"');var l=this.clone(),u=void 0;
3n||(u=s.schema(this._currentJoi,t.is),null!==t.is&&(a.isRef(t.is)||t.is instanceof o)||(u=u.required()));var c={ref:n?null:s.ref(e),peek:n?e:null,is:u,then:void 0!==t.then?s.schema(this._currentJoi,t.then):void 0,otherwise:void 0!==t.otherwise?s.schema(this._currentJoi,t.otherwise):void 0};return l._baseType&&(c.then=c.then&&l._baseType.concat(c.then),c.otherwise=c.otherwise&&l._baseType.concat(c.otherwise)),n||(a.push(l._refs,c.ref),l._refs=l._refs.concat(c.is._refs)),c.then&&c.then._refs&&(l._refs=l._refs.concat(c.then._refs)),c.otherwise&&c.otherwise._refs&&(l._refs=l._refs.concat(c.otherwise._refs)),l._inner.matches.push(c),l},t.prototype.describe=function(){for(var e=o.prototype.describe.call(this),t=[],n=0;n<this._inner.matches.length;++n){var r=this._inner.matches[n];if(r.schema)t.push(r.schema.describe());else{var i=r.is?{ref:r.ref.toString(),is:r.is.describe()}:{peek:r.peek.describe()};r.then&&(i.then=r.then.describe()),r.otherwise&&(i.otherwise=r.otherwise.describe()),t.push(i)}}return e.alternatives=t,e},t}(o),e.exports=new l.Alternatives},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(0);t.concat=function(e,t){if(!t)return e;for(var n=r({},e),o=Object.keys(t),s=0;s<o.length;++s){var a=o[s];"language"===a&&n.hasOwnProperty(a)?n[a]=i.applyToDefaults(n[a],t[a]):n[a]=t[a]}return n}},function(e,t,n){"use strict";var r,i=n(2),o=n(1),s=n(0),a={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};a.invalidDate=new Date(""),a.isIsoDate=(r=a.isoDate.toString(),function(e){return e&&e.toString()===r}),a.Date=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n._type="date",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t.prototype._base=function(e,t,n){var r={value:n.convert&&a.Date.toDate(e,this._flags.format,this._flags.timestamp,this._flags.multiplier)||e};if(r.value instanceof Date&&!isNaN(r.value.getTime()))r.errors=null;else if(n.convert){var i;i=a.isIsoDate(this._flags.format)?"isoDate":this._flags.timestamp?"timestamp."+this._flags.timestamp:"base",r.errors=this.createError("date."+i,null,t,n)}else r.errors=this.createError("date.strict",null,t,n);return r},t.toDate=function(e,t,n,r){if(e instanceof Date)return e;if("string"==typeof e||"number"==typeof e&&!isNaN(e)&&isFinite(e)){"string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e));var i=void 0;if(i=t&&a.isIsoDate(t)?t.test(e)?new Date(e):a.invalidDate:n&&r?/^\s*$/.test(e)?a.invalidDate:new Date(e*r):new Date(e),!isNaN(i.getTime()))return i}return null},t.prototype.iso=function(){if(this._flags.format===a.isoDate)return this;var e=this.clone();return e._flags.format=a.isoDate,e},t.prototype.timestamp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"javascript",t=["javascript","unix"];if(s.assert(t.includes(e),'"type" must be one of "'+t.join('", "')+'"'),this._flags.timestamp===e)return this;var n=this.clone();return n._flags.timestamp=e,n._flags.multiplier="unix"===e?1e3:1,n},t.prototype._isIsoDate=function(e){return a.isoDate.test(e)},t}(i),a.compare=function(e,t){return function(n){var r="now"===n,i=o.isRef(n);return r||i||(n=a.Date.toDate(n)),s.assert(n,"Invalid date format"),this._test(e,n,(function(o,s,l){var u=void 0;if(r)u=Date.now();else if(i){if(!(u=a.Date.toDate(n(s.reference||s.parent,l))))return this.createError("date.ref",{ref:n.key},s,l);u=u.getTime()}else u=n.getTime();return t(o.getTime(),u)?o:this.createError("date."+e,{limit:new Date(u)},s,l)}))}},a.Date.prototype.min=a.compare("min",(function(e,t){return e>=t})),a.Date.prototype.max=a.compare("max",(function(e,t){return e<=t})),a.Date.prototype.greater=a.compare("greater",(function(e,t){return e>t})),a.Date.prototype.less=a.compare("less",(function(e,t){return e<t})),e.exports=new a.Date},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=n(0),o=n(31),s=n(2),a=n(6),l=n(4),u={};u.Object=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n._type="object",n._inner.children=null,n._inner.renames=[],n._inner.depen
3dencies=[],n._inner.patterns=[],n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t.prototype._init=function(){return arguments.length?this.keys.apply(this,arguments):this},t.prototype._base=function(e,t,n){var o=e,s=[],l=function(){return{value:o,errors:s.length?s:null}};"string"==typeof e&&n.convert&&(e=u.safeParse(e));var c=this._flags.func?"function":"object";if(!e||(void 0===e?"undefined":r(e))!==c||Array.isArray(e))return s.push(this.createError(c+".base",null,t,n)),l();if(!(this._inner.renames.length||this._inner.dependencies.length||this._inner.children||this._inner.patterns.length))return o=e,l();if(o===e){"object"===c?o=Object.create(Object.getPrototypeOf(e)):(o=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)},o.prototype=i.clone(e.prototype));for(var h=Object.keys(e),d=0;d<h.length;++d)o[h[d]]=e[h[d]]}else o=e;for(var f={},p=0;p<this._inner.renames.length;++p){var g=this._inner.renames[p];if(g.isRegExp){for(var m=Object.keys(o),y=[],v=0;v<m.length;++v)g.from.test(m[v])&&y.push(m[v]);var _=y.every((function(e){return void 0===o[e]}));if(g.options.ignoreUndefined&&_)continue;if(!g.options.multiple&&f[g.to]&&(s.push(this.createError("object.rename.regex.multiple",{from:y,to:g.to},t,n)),n.abortEarly))return l();if(Object.prototype.hasOwnProperty.call(o,g.to)&&!g.options.override&&!f[g.to]&&(s.push(this.createError("object.rename.regex.override",{from:y,to:g.to},t,n)),n.abortEarly))return l();if(_?delete o[g.to]:o[g.to]=o[y[y.length-1]],f[g.to]=!0,!g.options.alias)for(var b=0;b<y.length;++b)delete o[y[b]]}else{if(g.options.ignoreUndefined&&void 0===o[g.from])continue;if(!g.options.multiple&&f[g.to]&&(s.push(this.createError("object.rename.multiple",{from:g.from,to:g.to},t,n)),n.abortEarly))return l();if(Object.prototype.hasOwnProperty.call(o,g.to)&&!g.options.override&&!f[g.to]&&(s.push(this.createError("object.rename.override",{from:g.from,to:g.to},t,n)),n.abortEarly))return l();void 0===o[g.from]?delete o[g.to]:o[g.to]=o[g.from],f[g.to]=!0,g.options.alias||delete o[g.from]}}if(!this._inner.children&&!this._inner.patterns.length&&!this._inner.dependencies.length)return l();var w=new Set(Object.keys(o));if(this._inner.children){for(var x=[],E=0;E<this._inner.children.length;++E){var S=this._inner.children[E],C=S.key,M=o[C];w.delete(C);var k={key:C,path:t.path.concat(C),parent:o,reference:t.reference},T=S.schema._validate(M,k,n);if(T.errors){if(s.push(this.createError("object.child",{key:C,child:S.schema._getLabel(C),reason:T.errors},k,n)),n.abortEarly)return l()}else S.schema._flags.strip||void 0===T.value&&T.value!==M?(x.push(C),o[C]=T.finalValue):void 0!==T.value&&(o[C]=T.value)}for(var P=0;P<x.length;++P)delete o[x[P]]}if(w.size&&this._inner.patterns.length){var O=!0,I=!1,R=void 0;try{for(var A,L=w[Symbol.iterator]();!(O=(A=L.next()).done);O=!0)for(var N=A.value,D={key:N,path:t.path.concat(N),parent:o,reference:t.reference},F=o[N],j=0;j<this._inner.patterns.length;++j){var B=this._inner.patterns[j];if(B.regex?B.regex.test(N):!B.schema.validate(N).error){w.delete(N);var z=B.rule._validate(F,D,n);if(z.errors&&(s.push(this.createError("object.child",{key:N,child:B.rule._getLabel(N),reason:z.errors},D,n)),n.abortEarly))return l();o[N]=z.value}}}catch(ne){I=!0,R=ne}finally{try{!O&&L.return&&L.return()}finally{if(I)throw R}}}if(w.size&&(this._inner.children||this._inner.patterns.length)){if(n.stripUnknown&&!0!==this._flags.allowUnknown||n.skipFunctions){var G=!(!n.stripUnknown||!0!==n.stripUnknown&&!n.stripUnknown.objects),U=!0,W=!1,q=void 0;try{for(var V,Y=w[Symbol.iterator]();!(U=(V=Y.next()).done);U=!0){var H=V.value;G?(delete o[H],w.delete(H)):"function"==typeof o[H]&&w.delete(H)}}catch(ne){W=!0,q=ne}finally{try{!U&&Y.return&&Y.return()}finally{if(W)throw q}}}if(void 0!==this._flags.allowUnknown?!this._flags.allowUnknown:!n.allowUnknown){var $=!0,K=!1,X=void 0;try{for(var Z,J=w[Symbol.iterator]();!($=(Z=J.next()).done);$=!0){var Q=Z.value;s.push(this.createError("object.allowUnknown",{child:Q},{key:Q,path:t.path.concat(Q)},n,{}))}}catch(ne){K=!0,X=ne}finally{try{!$&&J.return&&J.return()}finally{if(K)throw X}}}}for(var ee=0;
3ee<this._inner.dependencies.length;++ee){var te=this._inner.dependencies[ee],ne=u[te.type].call(this,null!==te.key&&o[te.key],te.peers,o,{key:te.key,path:null===te.key?t.path:t.path.concat(te.key)},n);if(ne instanceof a.Err&&(s.push(ne),n.abortEarly))return l()}return l()},t.prototype.keys=function(e){i.assert(null==e||"object"===(void 0===e?"undefined":r(e)),"Object schema must be a valid object"),i.assert(!(e&&e instanceof s),"Object schema cannot be a joi schema");var t=this.clone();if(!e)return t._inner.children=null,t;var n=Object.keys(e);if(!n.length)return t._inner.children=[],t;var a=new o;if(t._inner.children)for(var u=0;u<t._inner.children.length;++u){var c=t._inner.children[u];n.includes(c.key)||a.add(c,{after:c._refs,group:c.key})}for(var h=0;h<n.length;++h){var d=n[h],f=e[d];try{var p=l.schema(this._currentJoi,f);a.add({key:d,schema:p},{after:p._refs,group:d})}catch(e){throw e.hasOwnProperty("path")?e.path=d+"."+e.path:e.path=d,e}}return t._inner.children=a.nodes,t},t.prototype.append=function(e){return null==e||0===Object.keys(e).length?this:this.keys(e)},t.prototype.unknown=function(e){var t=!1!==e;if(this._flags.allowUnknown===t)return this;var n=this.clone();return n._flags.allowUnknown=t,n},t.prototype.length=function(e){return i.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("length",e,(function(t,n,r){return Object.keys(t).length===e?t:this.createError("object.length",{limit:e},n,r)}))},t.prototype.min=function(e){return i.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("min",e,(function(t,n,r){return Object.keys(t).length>=e?t:this.createError("object.min",{limit:e},n,r)}))},t.prototype.max=function(e){return i.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("max",e,(function(t,n,r){return Object.keys(t).length<=e?t:this.createError("object.max",{limit:e},n,r)}))},t.prototype.pattern=function(e,t){var n=e instanceof RegExp;i.assert(n||e instanceof s,"pattern must be a regex or schema"),i.assert(void 0!==t,"Invalid rule"),n&&(e=new RegExp(e.source,e.ignoreCase?"i":void 0));try{t=l.schema(this._currentJoi,t)}catch(e){throw e.hasOwnProperty("path")&&(e.message=e.message+"("+e.path+")"),e}var r=this.clone();return n?r._inner.patterns.push({regex:e,rule:t}):r._inner.patterns.push({schema:e,rule:t}),r},t.prototype.schema=function(){return this._test("schema",null,(function(e,t,n){return e instanceof s?e:this.createError("object.schema",null,t,n)}))},t.prototype.with=function(e,t){return i.assert(2===arguments.length,"Invalid number of arguments, expected 2."),this._dependency("with",e,t)},t.prototype.without=function(e,t){return i.assert(2===arguments.length,"Invalid number of arguments, expected 2."),this._dependency("without",e,t)},t.prototype.xor=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t=i.flatten(t),this._dependency("xor",null,t)},t.prototype.or=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t=i.flatten(t),this._dependency("or",null,t)},t.prototype.and=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t=i.flatten(t),this._dependency("and",null,t)},t.prototype.nand=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t=i.flatten(t),this._dependency("nand",null,t)},t.prototype.requiredKeys=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t=i.flatten(t),this.applyFunctionToChildren(t,"required")},t.prototype.optionalKeys=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t=i.flatten(t),this.applyFunctionToChildren(t,"optional")},t.prototype.forbiddenKeys=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t=i.flatten(t),this.applyFunctionToChildren(t,"forbidden")},t.prototype.rename=function(e,t,n){i.assert("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),i.assert("string"==typeof t,"Rename missing the to argument"),i.assert(t!==e,"Cannot rename key to
3same name:",e);for(var r=0;r<this._inner.renames.length;++r)i.assert(this._inner.renames[r].from!==e,"Cannot rename the same key multiple times");var o=this.clone();return o._inner.renames.push({from:e,to:t,options:i.applyToDefaults(u.renameDefaults,n||{}),isRegExp:e instanceof RegExp}),o},t.prototype.applyFunctionToChildren=function(e,t,n,r){e=[].concat(e),i.assert(e.length>0,"expected at least one children");var o=u.groupChildren(e),s=void 0;if(""in o?(s=this[t].apply(this,n),delete o[""]):s=this.clone(),s._inner.children){r=r?r+".":"";for(var a=0;a<s._inner.children.length;++a){var l=s._inner.children[a],c=o[l.key];c&&(s._inner.children[a]={key:l.key,_refs:l._refs,schema:l.schema.applyFunctionToChildren(c,t,n,r+l.key)},delete o[l.key])}}var h=Object.keys(o);return i.assert(0===h.length,"unknown key(s)",h.join(", ")),s},t.prototype._dependency=function(e,t,n){n=[].concat(n);for(var r=0;r<n.length;++r)i.assert("string"==typeof n[r],e,"peers must be a string or array of strings");var o=this.clone();return o._inner.dependencies.push({type:e,key:t,peers:n}),o},t.prototype.describe=function(e){var t=s.prototype.describe.call(this);if(t.rules)for(var n=0;n<t.rules.length;++n){var o=t.rules[n];o.arg&&"object"===r(o.arg)&&o.arg.schema&&o.arg.ref&&(o.arg={schema:o.arg.schema.describe(),ref:o.arg.ref.toString()})}if(this._inner.children&&!e){t.children={};for(var a=0;a<this._inner.children.length;++a){var l=this._inner.children[a];t.children[l.key]=l.schema.describe()}}if(this._inner.dependencies.length&&(t.dependencies=i.clone(this._inner.dependencies)),this._inner.patterns.length){t.patterns=[];for(var u=0;u<this._inner.patterns.length;++u){var c=this._inner.patterns[u];c.regex?t.patterns.push({regex:c.regex.toString(),rule:c.rule.describe()}):t.patterns.push({schema:c.schema.describe(),rule:c.rule.describe()})}}return this._inner.renames.length>0&&(t.renames=i.clone(this._inner.renames)),t},t.prototype.assert=function(e,t,n){e=l.ref(e),i.assert(e.isContext||e.depth>1,"Cannot use assertions for root level references - use direct key rules instead"),n=n||"pass the assertion test";try{t=l.schema(this._currentJoi,t)}catch(e){throw e.hasOwnProperty("path")&&(e.message=e.message+"("+e.path+")"),e}var r=e.path[e.path.length-1],o=e.path.join(".");return this._test("assert",{schema:t,ref:e},(function(s,a,l){if(!t._validate(e(s),null,l,s).errors)return s;var u=i.merge({},a);return u.key=r,u.path=e.path,this.createError("object.assert",{ref:o,message:n},u,l)}))},t.prototype.type=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.name;i.assert("function"==typeof e,"type must be a constructor function");var n={name:t,ctor:e};return this._test("type",n,(function(t,r,i){return t instanceof e?t:this.createError("object.type",{type:n.name},r,i)}))},t}(s),u.safeParse=function(e){try{return JSON.parse(e)}catch(e){}return e},u.renameDefaults={alias:!1,multiple:!1,override:!1},u.groupChildren=function(e){e.sort();for(var t={},n=0;n<e.length;++n){var r=e[n];i.assert("string"==typeof r,"children must be strings");var o=r.split(".")[0];(t[o]=t[o]||[]).push(r.substring(o.length+1))}return t},u.keysToLabels=function(e,t){var n=e._inner.children;if(!n)return t;var r=function(e){var t=n.find((function(t){return t.key===e}));return t?t.schema._getLabel(e):e};return Array.isArray(t)?t.map(r):r(t)},u.with=function(e,t,n,r,i){if(void 0===e)return e;for(var o=0;o<t.length;++o){var s=t[o];if(!Object.prototype.hasOwnProperty.call(n,s)||void 0===n[s])return this.createError("object.with",{main:r.key,mainWithLabel:u.keysToLabels(this,r.key),peer:s,peerWithLabel:u.keysToLabels(this,s)},r,i)}return e},u.without=function(e,t,n,r,i){if(void 0===e)return e;for(var o=0;o<t.length;++o){var s=t[o];if(Object.prototype.hasOwnProperty.call(n,s)&&void 0!==n[s])return this.createError("object.without",{main:r.key,mainWithLabel:u.keysToLabels(this,r.key),peer:s,peerWithLabel:u.keysToLabels(this,s)},r,i)}return e},u.xor=function(e,t,n,r,i){for(var o=[],s=0;s<t.length;++s){var a=t[s];Object.prototype.hasOwnProperty.call(n,a)&&void 0!==n[a]&&o.push(a)}if(1===o.length)return e;var l={peers:t,peersWithLabels:u.keysToLabels(this,t)};return 0===o.length?this.createError("object.missing",l,r,i):this.createError("object.xor",l,r,i)},u.or=function(e,t,n,r,i){for(var o=0;o<t.length;++o){var s=t[o];if(Object.prototype.hasOwnProperty.call(n,s)&&void 0!==n[s])return e}return this.createError("object.missing",{peers:t,peersWithLabels:u.keysToLabels(this,t)},r,i)},u.and=function(e,t,n,r,i){for(var o=[],s=[],a=t.length,l=0;l<a;++l){var c=t[l];Object.prototype.hasOwnProperty.call(n,c)&&void 0!==n[c]?s.push(c):o.push(c)}if(o.length!==a&&s.length!==a)return this.createError("object.and",{present:s,presentWithLabels:u.keysToLabels(this,s),missing:o,missingWithLabels:u.keysToLabels(this,o)},r,i)},u.nand=function(e,t,n,r,o){for(var s=[],a=0;a<t.length;++a){var l=t[a];Object.prototype.hasOwnProperty.call(n,l)&&void 0!==n[l]&&s.push(l)}var c=i.clone(t),h=c.splice(0,1)[0];return s.length===t.length?this.createError("object.nand",{main:h,mainWithLabel:u.keysToLabels(this,h),peers:c,peersWithLabels:u.keysToLabels(this,c)},r,o):null},e.exports=new u.Object},function(e,t,n){"use strict";var r={rfc3986:{},generate:function(){var e="|",t="0-9",n="[0-9]",i="a-zA-Z",o="["+i+"]";r.rfc3986.ipv4Cidr=n+e+"[1-2]"+n+"|3[0-2]",r.rfc3986.ipv6Cidr="(?:0?0?[0-9]|0?[1-9][0-9]|1[01][0-9]|12[0-8])";var s=t+"A-Fa-f",a="["+s+"]",l=i+t+"-\\._~",u="!\\$&'\\(\\)\\*\\+,;=",c="%"+s,h=l+c+u+":@",d="["+h+"]",f="(?:0?0?[0-9]|0?[1-9][0-9]|1"+n+n+"|2[0-4]"+n+"|25[0-5])";r.rfc3986.IPv4address="(?:"+f+"\\.){3}
3"+f;var p=a+"{1,4}",g="(?:"+p+":"+p+"|"+r.rfc3986.IPv4address+")",m="(?:"+p+":){6}"+g,y="::(?:"+p+":){5}"+g,v="(?:"+p+")?::(?:"+p+":){4}"+g,_="(?:(?:"+p+":){0,1}"+p+")?::(?:"+p+":){3}"+g,b="(?:(?:"+p+":){0,2}"+p+")?::(?:"+p+":){2}"+g,w="(?:(?:"+p+":){0,3}"+p+")?::"+p+":"+g,x="(?:(?:"+p+":){0,4}"+p+")?::"+g,E="(?:(?:"+p+":){0,5}"+p+")?::"+p,S="(?:(?:"+p+":){0,6}"+p+")?::";r.rfc3986.IPv6address="(?:"+m+e+y+e+v+e+_+e+b+e+w+e+x+e+E+e+S+")",r.rfc3986.IPvFuture="v"+a+"+\\.["+l+u+":]+",r.rfc3986.scheme=o+"["+i+t+"+-\\.]*";var C="["+l+c+u+"]{0,255}",M="(?:["+l+c+u+":]*@)?(?:\\[(?:"+r.rfc3986.IPv6address+e+r.rfc3986.IPvFuture+")\\]"+e+r.rfc3986.IPv4address+e+C+")(?::"+n+"*)?",k=d+"+",T="(?:\\/"+d+"*)*",P="\\/(?:"+k+T+")?",O=k+T,I="["+l+c+u+"@]+"+T;r.rfc3986.hierPart="(?:(?:\\/\\/"+M+T+")"+e+P+e+O+")",r.rfc3986.relativeRef="(?:(?:\\/\\/"+M+T+")"+e+P+e+I+"|)",r.rfc3986.query="["+h+"\\/\\?]*(?=#|$)",r.rfc3986.fragment="["+h+"\\/\\?]*"}};r.generate(),e.exports=r.rfc3986},function(e,t){},function(e,t,n){(function(e,r){var i=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),l=r[n];n<o;l=r[++n])g(l)||!b(l)?s+=" "+l:s+=" "+a(l);return s},t.deprecate=function(n,i){if(v(e.process))return function(){return t.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return n.apply(this,arguments)}};var o,s={};function a(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),c(r,e,r.depth)}function l(e,t){var n=a.styles[t];return n?"�["+a.colors[n][0]+"m"+e+"�["+a.colors[n][1]+"m":e}function u(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return y(i)||(i=c(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return m(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),x(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return h(n);if(0===s.length){if(E(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return h(n)}var u,b="",S=!1,C=["{","}"];return f(n)&&(S=!0,C=["[","]"]),E(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(b=" "+RegExp.prototype.toString.call(n)),w(n)&&(b=" "+Date.prototype.toUTCString.call(n)),x(n)&&(b=" "+h(n)),0!==s.length||S&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=S?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)k(t,String(s))?o.push(d(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))})),o}(e,n,r,a,s):s.map((function(t){return d(e,n,r,a,t,S)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,b,C)):C[0]+b+C[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[
3Setter]","special")),k(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=g(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function f(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function g(e){return null===e}function m(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function _(e){return b(e)&&"[object RegExp]"===S(e)}function b(e){return"object"==typeof e&&null!==e}function w(e){return b(e)&&"[object Date]"===S(e)}function x(e){return b(e)&&("[object Error]"===S(e)||e instanceof Error)}function E(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(o)&&(o=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=p,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=_,t.isObject=b,t.isDate=w,t.isError=x,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(40);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[C((e=new Date).getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":"),[e.getDate(),M[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(39),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,n(5),n(7))},function(e,t,n){"use strict";(function(t){function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=n(16),s=Object.prototype.hasOwnProperty,a=Array.prototype.slice,l="foo"===function(){}.name;function u(e){return Object.prototype.toString.call(e)}function c(e){return!i(e)&&"function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var h=e.exports=y,d=/\s*function\s+([^\(\s]*)\s*/;function f(e){if(o.isFunction(e)){if(l)return e.name;var t=e.toString().match(d);return t&&t[1]}}function p(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function g(e){if(l||!o.isFunction(e))return o.inspect(e);var t=f(e);return"[Function"+(t?": "+t:"")+"]"}function m(e,t,n,r,i){throw new h.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function y(e,t){e||m(e,!0,t,"==",h.ok)}function v(e,t,n,s){if(e===t)return!0;if(i(e)&&i(t))return 0===r(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(c(e)&&c(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new
vendor: 2,763 bytes, line 3
3Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var l=(s=s||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===s.expected.indexOf(t)||(s.actual.push(e),s.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=_(e),s=_(t);if(i&&!s||!i&&s)return!1;if(i)return v(e=a.call(e),t=a.call(t),n);var l,u,c=x(e),h=x(t);if(c.length!==h.length)return!1;for(c.sort(),h.sort(),u=c.length-1;u>=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(!v(e[l=c[u]],t[l],n,r))return!1;return!0}(e,t,n,s))}return n?e===t:e==t}function _(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function b(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&m(i,n,"Missing expected exception"+r);var s="string"==typeof r,a=!e&&i&&!n;if((!e&&o.isError(i)&&s&&b(i,n)||a)&&m(i,n,"Got unwanted exception"+r),e&&i&&n&&!b(i,n)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return p(g(e.actual),128)+" "+e.operator+" "+p(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=f(t),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}},o.inherits(h.AssertionError,Error),h.fail=m,h.ok=y,h.equal=function(e,t,n){e!=t&&m(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&m(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){v(e,t,!1)||m(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){v(e,t,!0)||m(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){v(e,t,!1)&&m(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,n,r){v(t,n,!0)&&m(t,n,r,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,n){e!==t&&m(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&m(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){w(!0,e,t,n)},h.doesNotThrow=function(e,t,n){w(!1,e,t,n)},h.ifError=function(e){if(e)throw e};var x=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}
3).call(t,n(5))},function(e,t,n){"use strict";(function(e){var n={};t.escapeJavaScript=function(e){if(!e)return"";for(var t="",r=0;r<e.length;++r){var i=e.charCodeAt(r);n.isSafe(i)?t+=e[r]:t+=n.escapeJavaScriptChar(i)}return t},t.escapeHtml=function(e){if(!e)return"";for(var t="",r=0;r<e.length;++r){var i=e.charCodeAt(r);n.isSafe(i)?t+=e[r]:t+=n.escapeHtmlChar(i)}return t},t.escapeJson=function(e){if(!e)return"";var t=void 0;return e.replace(/[<>&\u2028\u2029]/g,(function(e){return 60===(t=e.charCodeAt(0))?"\\u003c":62===t?"\\u003e":38===t?"\\u0026":8232===t?"\\u2028":"\\u2029"}))},n.escapeJavaScriptChar=function(t){if(t>=256)return"\\u"+n.padLeft(""+t,4);var r=e.from(String.fromCharCode(t),"ascii").toString("hex");return"\\x"+n.padLeft(r,2)},n.escapeHtmlChar=function(t){var r=n.namedHtml[t];if(void 0!==r)return r;if(t>=256)return"&#"+t+";";var i=e.from(String.fromCharCode(t),"ascii").toString("hex");return"&#x"+n.padLeft(i,2)+";"},n.padLeft=function(e,t){for(;e.length<t;)e="0"+e;return e},n.isSafe=function(e){return void 0!==n.safeCharCodes[e]},n.namedHtml={38:"&",60:"<",62:">",34:""",160:" ",162:"¢",163:"£",164:"¤",169:"©",174:"®"},n.safeCharCodes=function(){for(var e={},t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&(e[t]=null);return e}()}).call(t,n(3).Buffer)},function(e,t,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(38),o={hasOwn:Object.prototype.hasOwnProperty,indexOf:Array.prototype.indexOf,defaultThreshold:16,maxIPv6Groups:8,categories:{valid:1,dnsWarn:7,rfc5321:15,cfws:31,deprecated:63,rfc5322:127,error:255},diagnoses:{valid:0,rfc5321TLD:9,rfc5321TLDNumeric:10,rfc5321QuotedString:11,rfc5321AddressLiteral:12,cfwsComment:17,cfwsFWS:18,undesiredNonAscii:25,deprecatedLocalPart:33,deprecatedFWS:34,deprecatedQTEXT:35,deprecatedQP:36,deprecatedComment:37,deprecatedCTEXT:38,deprecatedIPv6:39,deprecatedCFWSNearAt:49,rfc5322Domain:65,rfc5322TooLong:66,rfc5322LocalTooLong:67,rfc5322DomainTooLong:68,rfc5322LabelTooLong:69,rfc5322DomainLiteral:70,rfc5322DomainLiteralOBSDText:71,rfc5322IPv6GroupCount:72,rfc5322IPv62x2xColon:73,rfc5322IPv6BadCharacter:74,rfc5322IPv6MaxGroups:75,rfc5322IPv6ColonStart:76,rfc5322IPv6ColonEnd:77,errExpectingDTEXT:129,errNoLocalPart:130,errNoDomain:131,errConsecutiveDots:132,errATEXTAfterCFWS:133,errATEXTAfterQS:134,errATEXTAfterDomainLiteral:135,errExpectingQPair:136,errExpectingATEXT:137,errExpectingQTEXT:138,errExpectingCTEXT:139,errBackslashEnd:140,errDotStart:141,errDotEnd:142,errDomainHyphenStart:143,errDomainHyphenEnd:144,errUnclosedQuotedString:145,errUnclosedComment:146,errUnclosedDomainLiteral:147,errFWSCRLFx2:148,errFWSCRLFEnd:149,errCRNoLF:150,errUnknownTLD:160,errDomainTooShort:161},components:{localpart:0,domain:1,literal:2,contextComment:3,contextFWS:4,contextQuotedString:5,contextQuotedPair:6}};o.specials=function(){var e=new Array(256);e.fill(!1);for(var t=0;t<13;++t)e['()<>[]:;@\\,."'.codePointAt(t)]=!0;return function(t){return e[t]}}(),o.c0Controls=function(){var e=new Array(256);e.fill(!1);for(var t=0;t<33;++t)e[t]=!0;return function(t){return e[t]}}(),o.c1Controls=function(){var e=new Array(256);e.fill(!1);for(var t=127;t<160;++t)e[t]=!0;return function(t){return e[t]}}(),o.regex={ipV4:/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipV6:/^[a-fA-F\d]{0,4}$/},o.normalizeSupportsNul="\0"==="\0".normalize("NFC"),o.nulNormalize=function(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")},o.normalize=function(e){return!o.normalizeSupportsNul&&e.indexOf("\0")>=0?o.nulNormalize(e):e.normalize("NFC")},o.checkIpV6=function(e){return e.every((function(e){return o.regex.ipV6.test(e)}))},o.validDomain=function(e,t){return t.tldBlacklist?Array.isArray(t.tldBlacklist)?-1===o.indexOf.call(t.tldBlacklist,e):!o.hasOwn.call(t.tldBlacklist,e):Array.isArray(t.tldWhitelist)?-1!==o.indexOf.call(t.tldWhitelist,e):o.hasOwn.call(t.tldWhitelist,e)},t.validate=o.validate=function(t,n,s){n=n||{},t=o.normalize(t),"function"==typeof n&&(s=n,n={}),"function"!=typeof s&&(s=null);var a=void 0,l=void 0;if("number"==typeof n.errorLevel?(a=!0,l=n.errorLevel):(a=!!n.errorLevel,l=o.diagnoses.valid),n.tldWhitelist)if("string"==typeof n.tldWhitelist)n.tldWhitelist=[n.tldWhitelist];else if("object"!==r(n.tldWhitelist))throw new TypeError("expected array or object tldWhitelist");if(n.tldBlacklist)if("string"==typeof n.tldBlacklist)n.tldBlacklist=[n.tldBlacklist];else if("object"!==r(n.tldBlacklist))throw new TypeError("expected array or object tldBlacklist");
3if(n.minDomainAtoms&&(n.minDomainAtoms!==(0|+n.minDomainAtoms)||n.minDomainAtoms<0))throw new TypeError("expected positive integer minDomainAtoms");var u=o.diagnoses.valid,c=function(e){e>u&&(u=e)};void 0!==n.allowUnicode&&!n.allowUnicode&&/[^\x00-\x7f]/.test(t)&&c(o.diagnoses.undesiredNonAscii);for(var h={now:o.components.localpart,prev:o.components.localpart,stack:[o.components.localpart]},d="",f={local:"",domain:""},p={locals:[""],domains:[""]},g=0,m=0,y=0,v=void 0,_=!1,b=!1,w=t.length,x=void 0,E=0;E<w;E+=x.length){switch(x=String.fromCodePoint(t.codePointAt(E)),h.now){case o.components.localpart:switch(x){case"(":0===m?c(0===g?o.diagnoses.cfwsComment:o.diagnoses.deprecatedComment):(c(o.diagnoses.cfwsComment),b=!0),h.stack.push(h.now),h.now=o.components.contextComment;break;case".":0===m?c(0===g?o.diagnoses.errDotStart:o.diagnoses.errConsecutiveDots):(b&&c(o.diagnoses.deprecatedLocalPart),b=!1,m=0,++g,f.local+=x,p.locals[g]="");break;case'"':0===m?(c(0===g?o.diagnoses.rfc5321QuotedString:o.diagnoses.deprecatedLocalPart),f.local+=x,p.locals[g]+=x,m+=e.byteLength(x,"utf8"),b=!0,h.stack.push(h.now),h.now=o.components.contextQuotedString):c(o.diagnoses.errExpectingATEXT);break;case"\r":if(w===++E||"\n"!==t[E]){c(o.diagnoses.errCRNoLF);break}case" ":case"\t":0===m?c(0===g?o.diagnoses.cfwsFWS:o.diagnoses.deprecatedFWS):b=!0,h.stack.push(h.now),h.now=o.components.contextFWS,d=x;break;case"@":if(1!==h.stack.length)throw new Error("unexpected item on context stack");0===f.local.length?c(o.diagnoses.errNoLocalPart):0===m?c(o.diagnoses.errDotEnd):e.byteLength(f.local,"utf8")>64?c(o.diagnoses.rfc5322LocalTooLong):h.prev!==o.components.contextComment&&h.prev!==o.components.contextFWS||c(o.diagnoses.deprecatedCFWSNearAt),h.now=o.components.domain,h.stack[0]=o.components.domain,g=0,m=0,b=!1;break;default:if(b)switch(h.prev){case o.components.contextComment:case o.components.contextFWS:c(o.diagnoses.errATEXTAfterCFWS);break;case o.components.contextQuotedString:c(o.diagnoses.errATEXTAfterQS);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+h.prev)}else h.prev=h.now,v=x.codePointAt(0),(o.specials(v)||o.c0Controls(v)||o.c1Controls(v))&&c(o.diagnoses.errExpectingATEXT),f.local+=x,p.locals[g]+=x,m+=e.byteLength(x,"utf8")}break;case o.components.domain:switch(x){case"(":0===m?c(0===g?o.diagnoses.deprecatedCFWSNearAt:o.diagnoses.deprecatedComment):(b=!0,c(o.diagnoses.cfwsComment)),h.stack.push(h.now),h.now=o.components.contextComment;break;case".":var S=i.encode(p.domains[g]).length;0===m?c(0===g?o.diagnoses.errDotStart:o.diagnoses.errConsecutiveDots):_?c(o.diagnoses.errDomainHyphenEnd):S>63&&c(o.diagnoses.rfc5322LabelTooLong),b=!1,m=0,++g,p.domains[g]="",f.domain+=x;break;case"[":0===f.domain.length?(b=!0,m+=e.byteLength(x,"utf8"),h.stack.push(h.now),h.now=o.components.literal,f.domain+=x,p.domains[g]+=x,f.literal=""):c(o.diagnoses.errExpectingATEXT);break;case"\r":if(w===++E||"\n"!==t[E]){c(o.diagnoses.errCRNoLF);break}case" ":case"\t":0===m?c(0===g?o.diagnoses.deprecatedCFWSNearAt:o.diagnoses.deprecatedFWS):(c(o.diagnoses.cfwsFWS),b=!0),h.stack.push(h.now),h.now=o.components.contextFWS,d=x;break;default:if(b)switch(h.prev){case o.components.contextComment:case o.components.contextFWS:c(o.diagnoses.errATEXTAfterCFWS);break;case o.components.literal:c(o.diagnoses.errATEXTAfterDomainLiteral);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+h.prev)}v=x.codePointAt(0),_=!1,o.specials(v)||o.c0Controls(v)||o.c1Controls(v)?c(o.diagnoses.errExpectingATEXT):"-"===x?(0===m&&c(o.diagnoses.errDomainHyphenStart),_=!0):(v<48||v>122&&v<192||v>57&&v<65||v>90&&v<97)&&c(o.diagnoses.rfc5322Domain),f.domain+=x,p.domains[g]+=x,m+=e.byteLength(x,"utf8")}break;case o.components.literal:switch(x){case"]":if(u<o.categories.deprecated){var C=-1,M=f.literal,k=o.regex.ipV4.exec(M);if(k&&0!==(C=k.index)&&(M=M.slice(0,C)+"0:0"),0===C)c(o.diagnoses.rfc5321AddressLiteral);else if("ipv6:"!==M.slice(0,5).toLowerCase())c(o.diagnoses.rfc5322DomainLiteral);else{var T=M.slice(5),P=o.maxIPv6Groups,O=T.split(":");~(C=T.indexOf("::"))?C!==T.lastIndexOf("::")?c(o.diagnoses.rfc5322IPv62x2xColon):(0!==C&&C!==T.length-2||++P,O.length>P?c(o.diagnoses.rfc5322IPv6MaxGroups):O.length===P&&c(o.diagnoses.deprecatedIPv6
3)):O.length!==P&&c(o.diagnoses.rfc5322IPv6GroupCount),":"===T[0]&&":"!==T[1]?c(o.diagnoses.rfc5322IPv6ColonStart):":"===T[T.length-1]&&":"!==T[T.length-2]?c(o.diagnoses.rfc5322IPv6ColonEnd):o.checkIpV6(O)?c(o.diagnoses.rfc5321AddressLiteral):c(o.diagnoses.rfc5322IPv6BadCharacter)}}else c(o.diagnoses.rfc5322DomainLiteral);f.domain+=x,p.domains[g]+=x,m+=e.byteLength(x,"utf8"),h.prev=h.now,h.now=h.stack.pop();break;case"\\":c(o.diagnoses.rfc5322DomainLiteralOBSDText),h.stack.push(h.now),h.now=o.components.contextQuotedPair;break;case"\r":if(w===++E||"\n"!==t[E]){c(o.diagnoses.errCRNoLF);break}case" ":case"\t":c(o.diagnoses.cfwsFWS),h.stack.push(h.now),h.now=o.components.contextFWS,d=x;break;default:if(127!==(v=x.codePointAt(0))&&o.c1Controls(v)||0===v||"["===x){c(o.diagnoses.errExpectingDTEXT);break}(o.c0Controls(v)||127===v)&&c(o.diagnoses.rfc5322DomainLiteralOBSDText),f.literal+=x,f.domain+=x,p.domains[g]+=x,m+=e.byteLength(x,"utf8")}break;case o.components.contextQuotedString:switch(x){case"\\":h.stack.push(h.now),h.now=o.components.contextQuotedPair;break;case"\r":if(w===++E||"\n"!==t[E]){c(o.diagnoses.errCRNoLF);break}case"\t":f.local+=" ",p.locals[g]+=" ",m+=e.byteLength(x,"utf8"),c(o.diagnoses.cfwsFWS),h.stack.push(h.now),h.now=o.components.contextFWS,d=x;break;case'"':f.local+=x,p.locals[g]+=x,m+=e.byteLength(x,"utf8"),h.prev=h.now,h.now=h.stack.pop();break;default:127!==(v=x.codePointAt(0))&&o.c1Controls(v)||0===v||10===v?c(o.diagnoses.errExpectingQTEXT):(o.c0Controls(v)||127===v)&&c(o.diagnoses.deprecatedQTEXT),f.local+=x,p.locals[g]+=x,m+=e.byteLength(x,"utf8")}break;case o.components.contextQuotedPair:127!==(v=x.codePointAt(0))&&o.c1Controls(v)?c(o.diagnoses.errExpectingQPair):(v<31&&9!==v||127===v)&&c(o.diagnoses.deprecatedQP),h.prev=h.now,h.now=h.stack.pop();var I="\\"+x;switch(h.now){case o.components.contextComment:break;case o.components.contextQuotedString:f.local+=I,p.locals[g]+=I,m+=2;break;case o.components.literal:f.domain+=I,p.domains[g]+=I,m+=2;break;default:throw new Error("quoted pair logic invoked in an invalid context: "+h.now)}break;case o.components.contextComment:switch(x){case"(":h.stack.push(h.now),h.now=o.components.contextComment;break;case")":h.prev=h.now,h.now=h.stack.pop();break;case"\\":h.stack.push(h.now),h.now=o.components.contextQuotedPair;break;case"\r":if(w===++E||"\n"!==t[E]){c(o.diagnoses.errCRNoLF);break}case" ":case"\t":c(o.diagnoses.cfwsFWS),h.stack.push(h.now),h.now=o.components.contextFWS,d=x;break;default:if(0===(v=x.codePointAt(0))||10===v||127!==v&&o.c1Controls(v)){c(o.diagnoses.errExpectingCTEXT);break}(o.c0Controls(v)||127===v)&&c(o.diagnoses.deprecatedCTEXT)}break;case o.components.contextFWS:if("\r"===d){if("\r"===x){c(o.diagnoses.errFWSCRLFx2);break}++y>1?c(o.diagnoses.deprecatedFWS):y=1}switch(x){case"\r":w!==++E&&"\n"===t[E]||c(o.diagnoses.errCRNoLF);break;case" ":case"\t":break;default:"\r"===d&&c(o.diagnoses.errFWSCRLFEnd),y=0,h.prev=h.now,h.now=h.stack.pop(),--E}d=x;break;default:throw new Error("unknown context: "+h.now)}if(u>o.categories.rfc5322)break}if(u<o.categories.rfc5322){var R=i.encode(f.domain).length;if(h.now===o.components.contextQuotedString)c(o.diagnoses.errUnclosedQuotedString);else if(h.now===o.components.contextQuotedPair)c(o.diagnoses.errBackslashEnd);else if(h.now===o.components.contextComment)c(o.diagnoses.errUnclosedComment);else if(h.now===o.components.literal)c(o.diagnoses.errUnclosedDomainLiteral);else if("\r"===x)c(o.diagnoses.errFWSCRLFEnd);else if(0===f.domain.length)c(o.diagnoses.errNoDomain);else if(0===m)c(o.diagnoses.errDotEnd);else if(_)c(o.diagnoses.errDomainHyphenEnd);else if(R>255)c(o.diagnoses.rfc5322DomainTooLong);else if(e.byteLength(f.local,"utf8")+R+1>254)c(o.diagnoses.rfc5322TooLong);else if(m>63)c(o.diagnoses.rfc5322LabelTooLong);else if(n.minDomainAtoms&&p.domains.length<n.minDomainAtoms)c(o.diagnoses.errDomainTooShort);else if(n.tldWhitelist||n.tldBlacklist){var A=p.domains[g];o.validDomain(A,n)||c(o.diagnoses.errUnknownTLD)}}u<o.categories.dnsWarn&&p.domains[g].codePointAt(0)<=57&&c(o.diagnoses.rfc5321TLDNumeric),u<l&&(u=o.diagnoses.valid);var L=a?u:u<o.defaultThreshold;return s&&s(L),L},t.diagnoses=o.validate.diagnoses=function(){for(var e={},t=Object.keys(o.diagnoses),n=0;n<t.length;++n){var r=t[n];e[r]=o.diagnoses[r]}return e}(),t.normalize=o.normalize}).call(t,n(3).Buffer)},function(e,t,n){"use strict";t.errors={root:"value",key:'"{{!label}}" ',messages:{wrapArrays:!0}
3,any:{unknown:"is not allowed",invalid:"contains an invalid value",empty:"is not allowed to be empty",required:"is required",allowOnly:"must be one of {{valids}}",default:"threw an error when running default method"},alternatives:{base:"not matching any of the allowed alternatives",child:null},array:{base:"must be an array",includes:"at position {{pos}} does not match any of the allowed types",includesSingle:'single value of "{{!label}}" does not match any of the allowed types',includesOne:"at position {{pos}} fails because {{reason}}",includesOneSingle:'single value of "{{!label}}" fails because {{reason}}',includesRequiredUnknowns:"does not contain {{unknownMisses}} required value(s)",includesRequiredKnowns:"does not contain {{knownMisses}}",includesRequiredBoth:"does not contain {{knownMisses}} and {{unknownMisses}} other required value(s)",excludes:"at position {{pos}} contains an excluded value",excludesSingle:'single value of "{{!label}}" contains an excluded value',min:"must contain at least {{limit}} items",max:"must contain less than or equal to {{limit}} items",length:"must contain {{limit}} items",ordered:"at position {{pos}} fails because {{reason}}",orderedLength:"at position {{pos}} fails because array must contain at most {{limit}} items",ref:'references "{{ref}}" which is not a positive integer',sparse:"must not be a sparse array",unique:"position {{pos}} contains a duplicate value"},boolean:{base:"must be a boolean"},binary:{base:"must be a buffer or a string",min:"must be at least {{limit}} bytes",max:"must be less than or equal to {{limit}} bytes",length:"must be {{limit}} bytes"},date:{base:"must be a number of milliseconds or valid date string",format:"must be a string with one of the following formats {{format}}",strict:"must be a valid date",min:'must be larger than or equal to "{{limit}}"',max:'must be less than or equal to "{{limit}}"',less:'must be less than "{{limit}}"',greater:'must be greater than "{{limit}}"',isoDate:"must be a valid ISO 8601 date",timestamp:{javascript:"must be a valid timestamp or number of milliseconds",unix:"must be a valid timestamp or number of seconds"},ref:'references "{{ref}}" which is not a date'},function:{base:"must be a Function",arity:"must have an arity of {{n}}",minArity:"must have an arity greater or equal to {{n}}",maxArity:"must have an arity lesser or equal to {{n}}",ref:"must be a Joi reference",class:"must be a class"},lazy:{base:"!!schema error: lazy schema must be set",schema:"!!schema error: lazy schema function must return a schema"},object:{base:"must be an object",child:'!!child "{{!child}}" fails because {{reason}}',min:"must have at least {{limit}} children",max:"must have less than or equal to {{limit}} children",length:"must have {{limit}} children",allowUnknown:'!!"{{!child}}" is not allowed',with:'!!"{{mainWithLabel}}" missing required peer "{{peerWithLabel}}"',without:'!!"{{mainWithLabel}}" conflict with forbidden peer "{{peerWithLabel}}"',missing:"must contain at least one of {{peersWithLabels}}",xor:"contains a conflict between exclusive peers {{peersWithLabels}}",or:"must contain at least one of {{peersWithLabels}}",and:"contains {{presentWithLabels}} without its required peers {{missingWithLabels}}",nand:'!!"{{mainWithLabel}}" must not exist simultaneously with {{peersWithLabels}}',assert:'!!"{{ref}}" validation failed because "{{ref}}" failed to {{message}}',rename:{multiple:'cannot rename child "{{from}}" because multiple renames are disabled and another key was already renamed to "{{to}}"',override:'cannot rename child "{{from}}" because override is disabled and target "{{to}}" exists',regex:{multiple:'cannot rename children {{from}} because multiple renames are disabled and another key was already renamed to "{{to}}"',override:'cannot rename children {{from}} because override is disabled and target "{{to}}" exists'}},type:'must be an instance of "{{type}}"',schema:"must be a Joi instance"},number:{base:"must be a number",min:"must be larger than or equal to {{limit}}",max:"must be less than or equal to {{limit}}",less:"must be less than {{limit}}",greater:"must be greater than {{limit}}",float:"must be a float or double",integer:"must be an integer",negative:"must be a negative number",positive:"must be a positive number",precision:"must have no more than {{limit}} decimal places",ref:'references "{{ref}}" which is not a number',multiple:"must be a multiple of {{multiple}}",port:"must be a valid port"},string:{base:"must be a string",min:"length must be at least {{limit}} characters long",max:"length must be less than or equal to {{limit}} characters long",length:"length must be {{limit}} characters long",alphanum:"must only contain alpha-numeric characters",token:"must only contain alpha-numeric and underscore characters",regex:{base:'with value "{{!value}}" fails to match the required pattern: {{pattern}}',name:'with value "{{!value}}" fails to match the {{name}} pattern',invert:{base:'with value "{{!value}}" matches the inverted pattern: {{pattern}}',name:'with value "{{!value}}" matches the inverted {{name}} pattern'}},email:"must be a valid email",uri:"must be a valid uri",uriRelativeOnly:"must be a valid relative uri",uriCustomScheme:"must be a valid uri with a scheme matching the {{scheme}}
3 pattern",isoDate:"must be a valid ISO 8601 date",guid:"must be a valid GUID",hex:"must only contain hexadecimal characters",hexAlign:"hex decoded representation must be byte aligned",base64:"must be a valid base64 string",hostname:"must be a valid hostname",normalize:"must be unicode normalized in the {{form}} form",lowercase:"must only contain lowercase characters",uppercase:"must only contain uppercase characters",trim:"must not have leading or trailing whitespace",creditCard:"must be a credit card",ref:'references "{{ref}}" which is not a number',ip:"must be a valid ip address with a {{cidr}} CIDR",ipVersion:"must be a valid ip address of one of the following versions {{version}} with a {{cidr}} CIDR"}}},function(e,t,n){"use strict";var r=n(8);t.options=r.object({abortEarly:r.boolean(),convert:r.boolean(),allowUnknown:r.boolean(),skipFunctions:r.boolean(),stripUnknown:[r.boolean(),r.object({arrays:r.boolean(),objects:r.boolean()}).or("arrays","objects")],language:r.object(),presence:r.string().only("required","optional","forbidden","ignore"),raw:r.boolean(),context:r.object(),strip:r.boolean(),noDefaults:r.boolean(),escapeHtml:r.boolean()}).strict()},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=n(2),o=n(4),s=n(1),a=n(0),l={fastSplice:function(e,t){for(var n=t;n<e.length;)e[n++]=e[n];--e.length}};l.Array=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n._type="array",n._inner.items=[],n._inner.ordereds=[],n._inner.inclusions=[],n._inner.exclusions=[],n._inner.requireds=[],n._flags.sparse=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t.prototype._base=function(e,t,n){var r={value:e};"string"==typeof e&&n.convert&&l.safeParse(e,r);var i=Array.isArray(r.value),o=i;if(n.convert&&this._flags.single&&!i&&(r.value=[r.value],i=!0),!i)return r.errors=this.createError("array.base",null,t,n),r;if((this._inner.inclusions.length||this._inner.exclusions.length||this._inner.requireds.length||this._inner.ordereds.length||!this._flags.sparse)&&(o&&(r.value=r.value.slice(0)),r.errors=this._checkItems.call(this,r.value,o,t,n),r.errors&&o&&n.convert&&this._flags.single)){var s=r.errors;r.value=[r.value],r.errors=this._checkItems.call(this,r.value,o,t,n),r.errors&&(r.errors=s,r.value=r.value[0])}return r},t.prototype._checkItems=function(e,t,n,r){for(var i=[],o=void 0,s=this._inner.requireds.slice(),a=this._inner.ordereds.slice(),u=this._inner.inclusions.concat(s),c=e.length,h=0;h<c;++h){o=!1;var d=e[h],f=!1,p={key:t?h:n.key,path:t?n.path.concat(h):n.path,parent:n.parent,reference:n.reference},g=void 0;if(this._flags.sparse||void 0!==d){for(var m=0;m<this._inner.exclusions.length;++m)if(!(g=this._inner.exclusions[m]._validate(d,p,{})).errors){if(i.push(this.createError(t?"array.excludes":"array.excludesSingle",{pos:h,value:d},{key:n.key,path:p.path},r)),o=!0,r.abortEarly)return i;a.shift();break}if(!o){if(this._inner.ordereds.length){if(a.length>0){var y=a.shift();if((g=y._validate(d,p,r)).errors){if(i.push(this.createError("array.ordered",{pos:h,reason:g.errors,value:d},{key:n.key,path:p.path},r)),r.abortEarly)return i}else if(y._flags.strip)l.fastSplice(e,h),--h,--c;else{if(!this._flags.sparse&&void 0===g.value){if(i.push(this.createError("array.sparse",null,{key:n.key,path:p.path,pos:h}
3,r)),r.abortEarly)return i;continue}e[h]=g.value}continue}if(!this._inner.items.length){if(i.push(this.createError("array.orderedLength",{pos:h,limit:this._inner.ordereds.length},{key:n.key,path:p.path},r)),r.abortEarly)return i;continue}}for(var v=[],_=s.length,b=0;b<_;++b)if(!(g=v[b]=s[b]._validate(d,p,r)).errors){if(e[h]=g.value,f=!0,l.fastSplice(s,b),--b,--_,!this._flags.sparse&&void 0===g.value&&(i.push(this.createError("array.sparse",null,{key:n.key,path:p.path,pos:h},r)),r.abortEarly))return i;break}if(!f){var w=!(!r.stripUnknown||!0!==r.stripUnknown&&!r.stripUnknown.arrays);_=u.length;for(var x=0;x<_;++x){var E=u[x],S=s.indexOf(E);if(-1!==S)g=v[S];else if(!(g=E._validate(d,p,r)).errors){E._flags.strip?(l.fastSplice(e,h),--h,--c):this._flags.sparse||void 0!==g.value?e[h]=g.value:(i.push(this.createError("array.sparse",null,{key:n.key,path:p.path,pos:h},r)),o=!0),f=!0;break}if(1===_){if(w){l.fastSplice(e,h),--h,--c,f=!0;break}if(i.push(this.createError(t?"array.includesOne":"array.includesOneSingle",{pos:h,reason:g.errors,value:d},{key:n.key,path:p.path},r)),o=!0,r.abortEarly)return i;break}}if(!o&&this._inner.inclusions.length&&!f){if(w){l.fastSplice(e,h),--h,--c;continue}if(i.push(this.createError(t?"array.includes":"array.includesSingle",{pos:h,value:d},{key:n.key,path:p.path},r)),r.abortEarly)return i}}}}else{if(i.push(this.createError("array.sparse",null,{key:n.key,path:p.path,pos:h},r)),r.abortEarly)return i;a.shift()}}return s.length&&this._fillMissedErrors.call(this,i,s,n,r),a.length&&this._fillOrderedErrors.call(this,i,a,n,r),i.length?i:null},t.prototype.describe=function(){var e=i.prototype.describe.call(this);if(this._inner.ordereds.length){e.orderedItems=[];for(var t=0;t<this._inner.ordereds.length;++t)e.orderedItems.push(this._inner.ordereds[t].describe())}if(this._inner.items.length){e.items=[];for(var n=0;n<this._inner.items.length;++n)e.items.push(this._inner.items[n].describe())}return e},t.prototype.items=function(){for(var e=this,t=this.clone(),n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return a.flatten(r).forEach((function(n,r){try{n=o.schema(e._currentJoi,n)}catch(e){throw e.hasOwnProperty("path")?e.path=r+"."+e.path:e.path=r,e.message=e.message+"("+e.path+")",e}t._inner.items.push(n),"required"===n._flags.presence?t._inner.requireds.push(n):"forbidden"===n._flags.presence?t._inner.exclusions.push(n.optional()):t._inner.inclusions.push(n)})),t},t.prototype.ordered=function(){for(var e=this,t=this.clone(),n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return a.flatten(r).forEach((function(n,r){try{n=o.schema(e._currentJoi,n)}catch(e){throw e.hasOwnProperty("path")?e.path=r+"."+e.path:e.path=r,e.message=e.message+"("+e.path+")",e}t._inner.ordereds.push(n)})),t},t.prototype.min=function(e){var t=s.isRef(e);return a.assert(Number.isSafeInteger(e)&&e>=0||t,"limit must be a positive integer or reference"),this._test("min",e,(function(n,r,i){var o=void 0;if(t){if(o=e(r.reference||r.parent,i),!(Number.isSafeInteger(o)&&o>=0))return this.createError("array.ref",{ref:e.key},r,i)}else o=e;return n.length>=o?n:this.createError("array.min",{limit:e,value:n},r,i)}))},t.prototype.max=function(e){var t=s.isRef(e);return a.assert(Number.isSafeInteger(e)&&e>=0||t,"limit must be a positive integer or reference"),this._test("max",e,(function(n,r,i){var o=void 0;if(t){if(o=e(r.reference||r.parent,i),!(Number.isSafeInteger(o)&&o>=0))return this.createError("array.ref",{ref:e.key},r,i)}else o=e;return n.length<=o?n:this.createError("array.max",{limit:e,value:n},r,i)}))},t.prototype.length=function(e){var t=s.isRef(e);return a.assert(Number.isSafeInteger(e)&&e>=0||t,"limit must be a positive integer or reference"),this._test("length",e,(function(n,r,i){var o=void 0;if(t){if(o=e(r.reference||r.parent,i),!(Number.isSafeInteger(o)&&o>=0))return this.createError("array.ref",{ref:e.key},r,i)}else o=e;return n.length===o?n:this.createError("array.length",{limit:e,value:n},r,i)}))},t.prototype.unique=function(e){a.assert(void 0===e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string");var t={};return"string"==typeof e?t.path=e:"function"==typeof e&&(t.comparator=e),this._test("unique",t,(function(e,n,i){for(var o={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},s=t.comparator||a.deepEqual,l=0;l<e.length;++l){var u=t.path?a.reach(e[l],t.path):e[l],c=t.comparator?o.custom:o[void 0===u?"undefined":r(u)];if(c)if(c instanceof Map){for(var h=c.entries(),d=void 0;!(d=h.next()).done;)if(s(d.value[0],u)){var f={key:n.key,path:n.path.concat(l),parent:n.parent,reference:n.reference},p={pos:l,value:e[l],dupePos:d.value[1],dupeValue:e[d.value[1]]};return t.path&&(p.path=t.path),this.createError("array.unique",p,f,i)}c.set(u,l)}else{if(void 0!==c[u]){var g={key:n.key,path:n.path.concat(l),parent:n.parent,reference:n.reference},m={pos:l,value:e[l],dupePos:c[u],dupeValue:e[c[u]]};return t.path&&(m.path=t.path),this.createError("array.unique",m,g,i)}c[u]=l}}return e}))},t.prototype.sparse=function(e){var t=void 0===e||!!e;if(this._flags.sparse===t)return this;var n=this.clone();return n._flags.sparse=t,n},t.prototype.single=function(e){var t=void 0===e||!!e;if(this._flags.single===t)return this;var n=this.clone();return n._flags.single=t,n},t.prototype._fillMissedErrors=function(e,t,n,r){for(var i=[],o=0,s=0;s<t.length;++s){var a=t[s]._getLabel();a?i.push(a):++o}i.length?o?e.push(this.createError("array.includesRequiredBoth",{knownMisses:i,unknownMisses:o},{key:n.key,path:n.path},r)):e.push(this.createError("array.includesRequiredKnowns",{knownMisses:i},{key:n.key,path:n.path},r)):e.push(this.createError("array.includesRequiredUnknowns",{unknownMisses:o},{key:n.key,path:n.path},r))},t.prototype._fillOrderedErrors=function(e,t,n,r){for(var i=[],o=0;o<t.length;++o)"required"===a.reach(t[o],"_flags.presence")&&i.push(t[o]);i.length&&this._fillMissedErrors.call(this,e,i,n,r)},t}(i),l.safeParse=function(e,t){try{var n=JSON.parse(e);Array.isArray(n)&&(t.value=n)}catch(e){}},e.exports=new l.Array},function(e,t,n){"use strict";(function(t){var r=n(2),i=n(0),o={};o.Binary=function(e){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return t._type="binary",t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(n,e),n.prototype._base=function(e,n,r){var i={value:e};if("string"==typeof e&&r.convert)try{i.value=t.from(e,this._flags.encoding)}catch(e){}return i.errors=t.isBuffer(i.value)?null:this.createError("binary.base",null,n,r),i},n.prototype.encoding=function(e){if(i.assert(t.isEncoding(e),"Invalid encoding:",e),this._flags.encoding===e)return this;var n=this.clone();return n._flags.encoding=e,n},n.prototype.min=function(e){return i.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("min",e,(function(t,n,r){return t.length>=e?t:this.createError("binary.min",{limit:e,value:t},n,r)}))},n.prototype.max=function(e){return i.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("max",e,(function(t,n,r){return t.length<=e?t:this.createError("binary.max",{limit:e,value:t},n,r)}))},n.prototype.length=function(e){return i.assert(Number.isSafeInteger(e)&&e>=0,"limit must be a positive integer"),this._test("length",e,(function(t,n,r){return t.length===e?t:this.createError("binary.length",{limit:e,value:t},n,r)}))},n}(r),e.exports=new o.Binary}).call(t,n(3).Buffer)},function(e,t,n){"use strict";var r=n(2),i=n(0),o={Set:n(9)};o.Boolean=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n._type="boolean",n._flags.insensitive=!0,n._inner.truthySet=new o.Set,n._inner.falsySet=new o.Set,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t.prototype._base=function(e,t,n){var r={value:e};if("string"==typeof e&&n.convert){var i=this._flags.insensitive?e.toLowerCase():e;r.value="true"===i||"false"!==i&&e}return"boolean"!=typeof r.value&&(r.value=!!this._inner.truthySet.has(e,null,null,this._flags.insensitive)||!this._inner.falsySet.has(e,null,null,this._flags.insensitive)&&e),r.errors="boolean"==typeof r.value?null:this.createError("boolean.base",null,t,n),r},t.prototype.truthy=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this.clone();t=i.flatten(t);for(var o=0;o<t.length;++o){var s=t[o];i.assert(void 0!==s,"Cannot call truthy with undefined"),r._inner.truthySet.add(s)}return r},t.prototype.falsy=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this.clone();t=i.flatten(t);for(var o=0;o<t.length;++o){var s=t[o];i.assert(void 0!==s,"Cannot call falsy with undefined"),r._inner.falsySet.add(s)}return r},t.prototype.insensitive=function(e){var t=void 0===e||!!e;if(this._flags.insensitive===t)return this;var n=this.clone();return n._flags.insensitive=t,n},t.prototype.describe=function(){var e=r.prototype.describe.call(this);return e.truthy=[!0].concat(this._inner.truthySet.values()),e.falsy=[!1].concat(this._inner.falsySet.values()),e},t}(r),e.exports=new o.Boolean},function(e,t,n){"use strict";var r=n(0),i=n(13),o=n(1),s={};s.Func=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n._flags.func=!0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t.prototype.arity=function(e){return r.assert(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this._test("arity",e,(function(t,n,r){return t.length===e?t:this.createError("function.arity",{n:e},n,r)}))},t.prototype.minArity=function(e){return r.assert(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this._test("minArity",e,(function(t,n,r){return t.length>=e?t:this.createError("function.minArity",{n:e},n,r)}))},t.prototype.maxArity=function(e){return r.assert(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this._test("maxArity",e,(function(t,n,r){return t.length<=e?t:this.createError("function.maxArity",{n:e},n,r)}))},t.prototype.ref=function(){return this._test("ref",null,(function(e,t,n){return o.isRef(e)?e:this.createError("function.ref",null,t,n)}))},t.prototype.class=function(){return this._test("class",null,(function(e,t,n){return/^\s*class\s/.test(e.toString())?e:this.createError("function.class",null,t,n)}))},t}(i.constructor),e.exports=new s.Func},function(e,t,n){"use strict";var r=n(2),i=n(0),o={};o.Lazy=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n._type="lazy",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t.prototype._base=function(e,t,n){var i={value:e},o=this._flags.lazy;if(!o)return i.errors=this.createError("lazy.base",null,t,n),i;var s=o();return s instanceof r?s._validate(e,t,n):(i.errors=this.createError("lazy.schema",null,t,n),i)},t.prototype.set=function(e){i.assert("function"==typeof e,"You must provide a function as first argument");var t=this.clone();return t._flags.lazy=e,t},t}(r),e.exports=new o.Lazy},function(e,t,n){"use strict";var r=n(2),i=n(1),o=n(0),s={precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/};s.Number=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n._type="number",n._invalids.add(1/0),n._invalids.add(-1/0),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t.prototype._base=function(e,t,n){var r={errors:null,value:e};if("string"==typeof e&&n.convert){var i=parseFloat(e);
3r.value=isNaN(i)||!isFinite(e)?NaN:i}var o="number"==typeof r.value&&!isNaN(r.value);if(n.convert&&"precision"in this._flags&&o){var s=Math.pow(10,this._flags.precision);r.value=Math.round(r.value*s)/s}return r.errors=o?null:this.createError("number.base",null,t,n),r},t.prototype.multiple=function(e){var t=i.isRef(e);return t||(o.assert("number"==typeof e&&isFinite(e),"multiple must be a number"),o.assert(e>0,"multiple must be greater than 0")),this._test("multiple",e,(function(n,r,i){var o=t?e(r.reference||r.parent,i):e;return!t||"number"==typeof o&&isFinite(o)?n%o==0?n:this.createError("number.multiple",{multiple:e,value:n},r,i):this.createError("number.ref",{ref:e.key},r,i)}))},t.prototype.integer=function(){return this._test("integer",void 0,(function(e,t,n){return Number.isSafeInteger(e)?e:this.createError("number.integer",{value:e},t,n)}))},t.prototype.negative=function(){return this._test("negative",void 0,(function(e,t,n){return e<0?e:this.createError("number.negative",{value:e},t,n)}))},t.prototype.positive=function(){return this._test("positive",void 0,(function(e,t,n){return e>0?e:this.createError("number.positive",{value:e},t,n)}))},t.prototype.precision=function(e){o.assert(Number.isSafeInteger(e),"limit must be an integer"),o.assert(!("precision"in this._flags),"precision already set");var t=this._test("precision",e,(function(t,n,r){var i=t.toString().match(s.precisionRx);return Math.max((i[1]?i[1].length:0)-(i[2]?parseInt(i[2],10):0),0)<=e?t:this.createError("number.precision",{limit:e,value:t},n,r)}));return t._flags.precision=e,t},t.prototype.port=function(){return this._test("port",void 0,(function(e,t,n){return!Number.isSafeInteger(e)||e<0||e>65535?this.createError("number.port",{value:e},t,n):e}))},t}(r),s.compare=function(e,t){return function(n){var r=i.isRef(n),s="number"==typeof n&&!isNaN(n);return o.assert(s||r,"limit must be a number or reference"),this._test(e,n,(function(i,o,s){var a=void 0;if(r){if("number"!=typeof(a=n(o.reference||o.parent,s))||isNaN(a))return this.createError("number.ref",{ref:n.key},o,s)}else a=n;return t(i,a)?i:this.createError("number."+e,{limit:a,value:i},o,s)}))}},s.Number.prototype.min=s.compare("min",(function(e,t){return e>=t})),s.Number.prototype.max=s.compare("max",(function(e,t){return e<=t})),s.Number.prototype.greater=s.compare("greater",(function(e,t){return e>t})),s.Number.prototype.less=s.compare("less",(function(e,t){return e<t})),e.exports=new s.Number},function(e,t,n){"use strict";(function(t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=n(15),o=n(0),s=void 0,a=n(2),l=n(1),u=n(12),c=n(30),h=n(29),d={uriRegex:c.createUriRegex(),ipRegex:h.createIpRegex(["ipv4","ipv6","ipvfuture"],"optional"),guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},cidrPresences:["required","optional","forbidden"],normalizationForms:["NFC","NFD","NFKC","NFKD"]};d.String=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n._type="string",n._invalids.add(""),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}(t,e),t.prototype._base=function(e,t,n){if("string"==typeof e&&n.convert){if(this._flags.normalize&&(e=e.normalize(this._flags.normalize)),this._flags.case&&(e="upper"===this._flags.case?e.toLocaleUpperCase():e.toLocaleLowerCase()),this._flags.trim&&(e=e.trim()),this._inner.replacements)for(var r=0;r<this._inner.replacements.length;++r){var i=this._inner.replacements[r];e=e.replace(i.pattern,i.replacement)}if(this._flags.truncate)for(var o=0;o<this._tests.length;++o){var s=this._tests[o];if("max"===s.name){e=e.slice(0,s.arg);break}}this._flags.byteAligned&&e.length%2!=0&&(e="0"+e)}return{value:e,errors:"string"==typeof e?null:this.createError("string.base",{value:e},t,n)}},t.prototype.insensitive=function(){if(this._flags.insensitive)return this;var e=this.clone();return e._flags.insensitive=!0,e},t.prototype.creditCard=function(){return this._test("creditCard",void 0,(function(e,t,n){for(var r=e.length,i=0,o=1;r--;){var s=e.charAt(r)*o;i+=s-9*(s>9),o^=3}return i%10==0&&i>
30?e:this.createError("string.creditCard",{value:e},t,n)}))},t.prototype.regex=function(e,t){o.assert(e instanceof RegExp,"pattern must be a RegExp");var n={pattern:new RegExp(e.source,e.ignoreCase?"i":void 0)};"string"==typeof t?n.name=t:"object"===(void 0===t?"undefined":r(t))&&(n.invert=!!t.invert,t.name&&(n.name=t.name));var i=["string.regex",n.invert?".invert":"",n.name?".name":".base"].join("");return this._test("regex",n,(function(e,t,r){return n.pattern.test(e)^n.invert?e:this.createError(i,{name:n.name,pattern:n.pattern,value:e},t,r)}))},t.prototype.alphanum=function(){return this._test("alphanum",void 0,(function(e,t,n){return/^[a-zA-Z0-9]+$/.test(e)?e:this.createError("string.alphanum",{value:e},t,n)}))},t.prototype.token=function(){return this._test("token",void 0,(function(e,t,n){return/^\w+$/.test(e)?e:this.createError("string.token",{value:e},t,n)}))},t.prototype.email=function(e){return e&&(o.assert("object"===(void 0===e?"undefined":r(e)),"email options must be an object"),o.assert(void 0===e.checkDNS,"checkDNS option is not supported"),o.assert(void 0===e.tldWhitelist||"object"===r(e.tldWhitelist),"tldWhitelist must be an array or object"),o.assert(void 0===e.minDomainAtoms||Number.isSafeInteger(e.minDomainAtoms)&&e.minDomainAtoms>0,"minDomainAtoms must be a positive integer"),o.assert(void 0===e.errorLevel||"boolean"==typeof e.errorLevel||Number.isSafeInteger(e.errorLevel)&&e.errorLevel>=0,"errorLevel must be a non-negative integer or boolean")),this._test("email",e,(function(t,r,i){s=s||n(19);try{var o=s.validate(t,e);if(!0===o||0===o)return t}catch(e){}return this.createError("string.email",{value:t},r,i)}))},t.prototype.ip=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=d.ipRegex;o.assert("object"===(void 0===e?"undefined":r(e)),"options must be an object"),e.cidr?(o.assert("string"==typeof e.cidr,"cidr must be a string"),e.cidr=e.cidr.toLowerCase(),o.assert(o.contain(d.cidrPresences,e.cidr),"cidr must be one of "+d.cidrPresences.join(", ")),e.version||"optional"===e.cidr||(t=h.createIpRegex(["ipv4","ipv6","ipvfuture"],e.cidr))):e.cidr="optional";var n=void 0;if(e.version){Array.isArray(e.version)||(e.version=[e.version]),o.assert(e.version.length>=1,"version must have at least 1 version specified"),n=[];for(var i=0;i<e.version.length;++i){var s=e.version[i];o.assert("string"==typeof s,"version at position "+i+" must be a string"),s=s.toLowerCase(),o.assert(h.versions[s],"version at position "+i+" must be one of "+Object.keys(h.versions).join(", ")),n.push(s)}n=o.unique(n),t=h.createIpRegex(n,e.cidr)}return this._test("ip",e,(function(r,i,o){return t.test(r)?r:n?this.createError("string.ipVersion",{value:r,cidr:e.cidr,version:n},i,o):this.createError("string.ip",{value:r,cidr:e.cidr},i,o)}))},t.prototype.uri=function(e){var t="",n=!1,i=!1,s=d.uriRegex;if(e){if(o.assert("object"===(void 0===e?"undefined":r(e)),"options must be an object"),e.scheme){o.assert(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array"),Array.isArray(e.scheme)||(e.scheme=[e.scheme]),o.assert(e.scheme.length>=1,"scheme must have at least 1 scheme specified");for(var a=0;a<e.scheme.length;++a){var l=e.scheme[a];o.assert(l instanceof RegExp||"string"==typeof l,"scheme at position "+a+" must be a RegExp or String"),t+=t?"|":"",l instanceof RegExp?t+=l.source:(o.assert(/[a-zA-Z][a-zA-Z0-9+-\.]*/.test(l),"scheme at position "+a+" must be a valid scheme"),t+=o.escapeRegex(l))}}e.allowRelative&&(n=!0),e.relativeOnly&&(i=!0)}return(t||n||i)&&(s=c.createUriRegex(t,n,i)),this._test("uri",e,(function(e,n,r){return s.test(e)?e:i?this.createError("string.uriRelativeOnly",{value:e},n,r):t?this.createError("string.uriCustomScheme",{scheme:t,value:e},n,r):this.createError("string.uri",{value:e},n,r)}))},t.prototype.isoDate=function(){return this._test("isoDate",void 0,(function(e,t,n){if(u._isIsoDate(e)){if(!n.convert)return e;var r=new Date(e);if(!isNaN(r.getTime()))return r.toISOString()}return this.createError("string.isoDate",{value:e},t,n)}))},t.prototype.guid=function(e){var t="";
3if(e&&e.version){Array.isArray(e.version)||(e.version=[e.version]),o.assert(e.version.length>=1,"version must have at least 1 valid version specified");for(var n=new Set,r=0;r<e.version.length;++r){var i=e.version[r];o.assert("string"==typeof i,"version at position "+r+" must be a string"),i=i.toLowerCase();var s=d.guidVersions[i];o.assert(s,"version at position "+r+" must be one of "+Object.keys(d.guidVersions).join(", ")),o.assert(!n.has(s),"version at position "+r+" must not be a duplicate."),t+=s,n.add(s)}}var a=new RegExp("^([\\[{\\(]?)[0-9A-F]{8}([:-]?)[0-9A-F]{4}\\2?["+(t||"0-9A-F")+"][0-9A-F]{3}\\2?["+(t?"89AB":"0-9A-F")+"][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$","i");return this._test("guid",e,(function(e,t,n){var r=a.exec(e);return r?d.guidBrackets[r[1]]!==r[r.length-1]?this.createError("string.guid",{value:e},t,n):e:this.createError("string.guid",{value:e},t,n)}))},t.prototype.hex=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.assert("object"===(void 0===e?"undefined":r(e)),"hex options must be an object"),o.assert(void 0===e.byteAligned||"boolean"==typeof e.byteAligned,"byteAligned must be boolean");var t=!0===e.byteAligned,n=/^[a-f0-9]+$/i,i=this._test("hex",n,(function(e,r,i){return n.test(e)?t&&e.length%2!=0?this.createError("string.hexAlign",{value:e},r,i):e:this.createError("string.hex",{value:e},r,i)}));return t&&(i._flags.byteAligned=!0),i},t.prototype.base64=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.assert("object"===(void 0===e?"undefined":r(e)),"base64 options must be an object"),o.assert(void 0===e.paddingRequired||"boolean"==typeof e.paddingRequired,"paddingRequired must be boolean");var t=(!1===e.paddingRequired?e.paddingRequired:(e.paddingRequired,1))?/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/:/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/;return this._test("base64",t,(function(e,n,r){return t.test(e)?e:this.createError("string.base64",{value:e},n,r)}))},t.prototype.hostname=function(){var e=/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/;return this._test("hostname",void 0,(function(t,n,r){return t.length<=255&&e.test(t)||i.isIPv6(t)?t:this.createError("string.hostname",{value:t},n,r)}))},t.prototype.normalize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";o.assert(o.contain(d.normalizationForms,e),"normalization form must be one of "+d.normalizationForms.join(", "));var t=this._test("normalize",e,(function(t,n,r){return r.convert||t===t.normalize(e)?t:this.createError("string.normalize",{value:t,form:e},n,r)}));return t._flags.normalize=e,t},t.prototype.lowercase=function(){var e=this._test("lowercase",void 0,(function(e,t,n){return n.convert||e===e.toLocaleLowerCase()?e:this.createError("string.lowercase",{value:e},t,n)}));return e._flags.case="lower",e},t.prototype.uppercase=function(){var e=this._test("uppercase",void 0,(function(e,t,n){return n.convert||e===e.toLocaleUpperCase()?e:this.createError("string.uppercase",{value:e},t,n)}));return e._flags.case="upper",e},t.prototype.trim=function(){var e=this._test("trim",void 0,(function(e,t,n){return n.convert||e===e.trim()?e:this.createError("string.trim",{value:e},t,n)}));return e._flags.trim=!0,e},t.prototype.replace=function(e,t){"string"==typeof e&&(e=new RegExp(o.escapeRegex(e),"g")),o.assert(e instanceof RegExp,"pattern must be a RegExp"),o.assert("string"==typeof t,"replacement must be a String");var n=this.clone();return n._inner.replacements||(n._inner.replacements=[]),n._inner.replacements.push({pattern:e,replacement:t}),n},t.prototype.truncate=function(e){var t=void 0===e||!!e;if(this._flags.truncate===t)return this;var n=this.clone();return n._flags.truncate=t,n},t}(a),d.compare=function(e,n){return function(r,i){var s=l.isRef(r);return o.assert(Number.isSafeInteger(r)&&r>=0||s,"limit must be a positive integer or reference"),o.assert(!i||t.isEncoding(i),"Invalid encoding:",i),this._test(e,r,(function(t,o,a){var l=void 0;if(s){if(l=r(o.reference||o.parent,a),!Number.isSafeInteger(l))return this.createError("string.ref",{ref:r.key},o,a)}else l=r;return n(t,l,i)?t:this.createError("string."+e,{limit:l,value:t,encoding:i},o,a)}))}},d.String.prototype.min=d.compare("min",(function(e,n,r){return(r?t.byteLength(e,r):e.length)>=n})),d.String.prototype.max=d.compare("max",(function(e,n,r){return(r?t.byteLength(e,r):e.length)<=n})),d.String.prototype.length=d.compare("length",(function(e,n,r){return(r?t.byteLength(e,r):e.length)===n})),d.String.prototype.uuid=d.String.prototype.guid,e.exports=new d.String}).call(t,n(3).Buffer)},function(e,t,n){"use strict";var r=n(14),i={Ip:{cidrs:{ipv4:{required:"\\/(?:"+r.ipv4Cidr+")",optional:"(?:\\/(?:"+r.ipv4Cidr+"))?",forbidden:""},ipv6:{required:"\\/"+r.ipv6Cidr,optional:"(?:\\/"+r.ipv6Cidr+")?",forbidden:""},ipvfuture:{required:"\\/"+r.ipv6Cidr,optional:"(?:\\/"+r.ipv6Cidr+")?",forbidden:""}},versions:{ipv4:r.IPv4address,ipv6:r.IPv6address,ipvfuture:r.IPvFuture}}};i.Ip.createIpRegex=function(e,t){for(var n=void 0,r=0;r<e.length;++r){var o=e[r];n?n+="|"+i.Ip.versions[o]+i.Ip.cidrs[o][t]:n="^(?:"+i.Ip.versions[o]+i.Ip.cidrs[o][t]}return new RegExp(n+")$")},e.exports=i.Ip},function(e,t,n){"use strict";var r=n(14),i={Uri:{createUriRegex:function(e,t,n){var i=r.scheme,o=void 0;if(n)o="(?:"+r.relativeRef+")";else{e&&(i="(?:"+e+")");var s="(?:"+i+":"+r.hierPart+")";o=t?"(?:"+s+"|"+r.relativeRef+")":s}return new RegExp("^"+o+"(?:\\?"+r.query+")?(?:#"+r.fragment+")?$")}}};e.exports=i.Uri},function(e,t,n){"use strict";var r=n(0),i={};e.exports=i.Topo=function(){this._items=[],this.nodes=[]},i.Topo.prototype.add=function(e,t){var n=this,i=[].concat((t=t||{}).before||[]),o=[].concat(t.after||[]),s=t.group||"?",a=t.sort||0;r.assert(-1===i.indexOf(s),"Item cannot come before itself:",s),r.assert(-1===i.indexOf("?"),"Item cannot come before unassociated items"),r.assert(-1===o.indexOf(s),"Item cannot come after itself:",s),r.assert(-1===o.indexOf("?"),"Item cannot come after unassociated items"),[].concat(e).forEach((function(e,t){var r={seq:n._items.length,sort:
3a,before:i,after:o,group:s,node:e};n._items.push(r)}));var l=this._sort();return r.assert(!l,"item","?"!==s?"added into group "+s:"","created a dependencies error"),this.nodes},i.Topo.prototype.merge=function(e){e=[].concat(e);for(var t=0;t<e.length;++t){var n=e[t];if(n)for(var o=0;o<n._items.length;++o){var s=r.shallow(n._items[o]);this._items.push(s)}}this._items.sort(i.mergeSort);for(var a=0;a<this._items.length;++a)this._items[a].seq=a;var l=this._sort();return r.assert(!l,"merge created a dependencies error"),this.nodes},i.mergeSort=function(e,t){return e.sort===t.sort?0:e.sort<t.sort?-1:1},i.Topo.prototype._sort=function(){for(var e={},t=Object.create(null),n=Object.create(null),r=0;r<this._items.length;++r){var i=this._items[r],o=i.seq,s=i.group;n[s]=n[s]||[],n[s].push(o),e[o]=i.before;for(var a=i.after,l=0;l<a.length;++l)t[a[l]]=(t[a[l]]||[]).concat(o)}for(var u=Object.keys(e),c=0;c<u.length;++c){for(var h=u[c],d=[],f=Object.keys(e[h]),p=0;p<f.length;++p){var g=e[h][f[p]];n[g]=n[g]||[];for(var m=0;m<n[g].length;++m)d.push(n[g][m])}e[h]=d}for(var y=Object.keys(t),v=0;v<y.length;++v){var _=y[v];if(n[_])for(var b=0;b<n[_].length;++b){var w=n[_][b];e[w]=e[w].concat(t[_])}}var x=void 0,E={};u=Object.keys(e);for(var S=0;S<u.length;++S){var C=u[S];x=e[C];for(var M=0;M<x.length;++M)E[x[M]]=(E[x[M]]||[]).concat(C)}for(var k={},T=[],P=0;P<this._items.length;++P){var O=P;if(E[P]){O=null;for(var I=0;I<this._items.length;++I)if(!0!==k[I]){E[I]||(E[I]=[]);for(var R=E[I].length,A=0,L=0;L<R;++L)k[E[I][L]]&&++A;if(A===R){O=I;break}}}null!==O&&(k[O]=!0,T.push(O))}if(T.length!==this._items.length)return new Error("Invalid dependencies");for(var N={},D=0;D<this._items.length;++D){var F=this._items[D];N[F.seq]=F}var j=[];this._items=T.map((function(e){var t=N[e];return j.push(t.node),t})),this.nodes=j}},function(e,t,n){"use strict";var r=n(8);e.exports=r},function(e,t,n){"use strict";t.byteLength=function(e){return 3*e.length/4-l(e)},t.toByteArray=function(e){var t,n,r,s,a,u=e.length;s=l(e),a=new o(3*u/4-s),n=s>0?u-4:u;var c=0;for(t=0;t<n;t+=4)r=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)],a[c++]=r>>16&255,a[c++]=r>>8&255,a[c++]=255&r;return 2===s?(r=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,a[c++]=255&r):1===s&&(r=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,a[c++]=r>>8&255,a[c++]=255&r),a},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o="",s=[],a=16383,l=0,c=n-i;l<c;l+=a)s.push(u(e,l,l+a>c?c:l+a));return 1===i?(t=e[n-1],o+=r[t>>2],o+=r[t<<4&63],o+="=="):2===i&&(t=(e[n-2]<<8)+e[n-1],o+=r[t>>10],o+=r[t>>4&63],o+=r[t<<2&63],o+="="),s.push(o),s.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function u(e,t,n){for(var i,o,s=[],a=t;a<n;a+=3)i=(e[a]<<16)+(e[a+1]<<8)+e[a+2],s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,u=l>>1,c=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+e[t+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=u}return(f?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*l-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+f]=255&s,f+=p,s/=256,u-=8);e[n+f-p]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports={_args:[["[email protected]","/Users/jeff/projects/joi-browser"]],_development:!0,_from:"[email protected]",_id:"[email protected]",_inBundle:!1,_integrity:"sha512-JuK4GjEu6j7zr9FuVe2MAseZ6si/8/
3HaY0qMAejfDFHp7jcH4OKE937mIHM5VT4xDS0q7lpQbszbxKV9rm0yUg==",_location:"/joi",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"[email protected]",name:"joi",escapedName:"joi",rawSpec:"13.4.0",saveSpec:null,fetchSpec:"13.4.0"},_requiredBy:["#DEV:/"],_resolved:"https://registry.npmjs.org/joi/-/joi-13.4.0.tgz",_spec:"13.4.0",_where:"/Users/jeff/projects/joi-browser",bugs:{url:"https://github.com/hapijs/joi/issues"},dependencies:{hoek:"5.x.x",isemail:"3.x.x",topo:"3.x.x"},description:"Object schema validation",devDependencies:{code:"5.x.x",hapitoc:"1.x.x",lab:"15.x.x"},engines:{node:">=8.9.0"},homepage:"https://github.com/hapijs/joi",keywords:["hapi","schema","validation"],license:"BSD-3-Clause",main:"lib/index.js",name:"joi",repository:{type:"git",url:"git://github.com/hapijs/joi.git"},scripts:{test:"lab -t 100 -a code -L","test-cov-html":"lab -r html -o coverage.html -a code","test-debug":"lab -a code",toc:"hapitoc",version:"npm run toc && git add API.md README.md"},version:"13.4.0"}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var s=i>=0?arguments[i]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,r="/"===s.charAt(0))}return(r?"/":"")+(t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"))||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===s(e,-1);return(e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,l=0;l<s;l++)if(i[l]!==o[l]){a=l;break}var u=[];for(l=a;l<i.length;l++)u.push("..");return(u=u.concat(o.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return i(e)[3]};var s=function(e,t,n){return e.substr(t,n)}}).call(t,n(7))},function(e,t,n){(function(e,r){var i;!function(){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var s,a=2147483647,l=36,u=/^xn--/,c=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function g(e){throw new RangeError(d[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(h,".")).split("."),t).join(".")}function v(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function _(e){return m(e,(function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+p(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=l)e=f(e/35);return f(r+36*e/(e+38))}function x(e){var t,n,r,i,o,s,u,c,h,d,p,m=[],y=e.length,v=0,b=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&g("not-basic"),m.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<y;){for(o=v,s=1,u=l;i>=y&&g("invalid-input"),((c=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:l)>=l||c>f((a-v)/s))&&g("overflow"),v+=c*s,!(c<(h=u<=x?1:u>=x+26?26:u-x));u+=l)s>f(a/(d=l-h))&&g("overflow"),s*=d;x=w(v-o,t=m.length+1,0==o),f(v/t)>a-b&&g("overflow"),b+=f(v/t),v%=t,m.splice(v++,0,b)}return _(m)}function E(e){var t,n,r,i,o,s,u,c,h,d,m,y,_,x,E,S=[];for(y=(e=v(e)).length,t=128,n=0,o=72,s=0;s<y;
3++s)(m=e[s])<128&&S.push(p(m));for(r=i=S.length,i&&S.push("-");r<y;){for(u=a,s=0;s<y;++s)(m=e[s])>=t&&m<u&&(u=m);for(u-t>f((a-n)/(_=r+1))&&g("overflow"),n+=(u-t)*_,t=u,s=0;s<y;++s)if((m=e[s])<t&&++n>a&&g("overflow"),m==t){for(c=n,h=l;!(c<(d=h<=o?1:h>=o+26?26:h-o));h+=l)E=c-d,x=l-d,S.push(p(b(d+E%x,0))),c=f(E/x);S.push(p(b(c,0))),o=w(n,_,r==i),n=0,++r}++n,++t}return S.join("")}s={version:"1.4.1",ucs2:{decode:v,encode:_},decode:x,encode:E,toASCII:function(e){return y(e,(function(e){return c.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(t,n(41)(e),n(5))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}])},e.exports=t()},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&s[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},6462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0,t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},6540:(e,t,n)=>{"use strict";e.exports=n(9869)},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}
3.apply(t,[]))||(e.exports=n)}()},7424:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(6540)),i=l(n(5556)),o=l(n(9321)),s=l(n(3486)),a=n(6462);function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(){return!0},_="suggestions-revealed",b="input-focused",w="input-changed",x="escape-pressed",E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(u,e);var t,n,i,l=(i=u,function(){var e,t=g(i);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?p(e):t}(this,e)});function u(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),y(p(t=l.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),y(p(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),y(p(t),"onSuggestionMouseEnter",(function(e,n){var r=n.sectionIndex,i=n.itemIndex;t.updateHighlightedSuggestion(r,i),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),y(p(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),y(p(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),y(p(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),y(p(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),y(p(t),"onSuggestionSelected",(function(e,n){var r=t.props,i=r.alwaysRenderSuggestions,o=r.onSuggestionSelected,s=r.onSuggestionsFetchRequested;o&&o(e,n);var a=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);i||a?s({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),y(p(t),"onSuggestionClick",(function(e){var n=t.props,r=n.alwaysRenderSuggestions,i=n.focusInputOnSuggestionClick,o=t.getSuggestionIndices(t.findSuggestionElement(e.target)),s=o.sectionIndex,a=o.suggestionIndex,l=t.getSuggestion(s,a),u=t.props.getSuggestionValue(l);t.maybeCallOnChange(e,u,"click"),t.onSuggestionSelected(e,{suggestion:l,suggestionValue:u,suggestionIndex:a,sectionIndex:s,method:"click"});var c=t.props.shouldKeepSuggestionsOnSelect(l);r||c||t.closeSuggestions(),!0===i?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))}
3)),y(p(t),"onBlur",(function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,i=n.value,o=n.onBlur,s=t.getHighlightedSuggestion(),a=r(i,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!a}),o&&o(t.blurEvent,{highlightedSuggestion:s})})),y(p(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),y(p(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),y(p(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),y(p(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),y(p(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return t=u,n=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,o.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,i=n.onSuggestionHighlighted,s=n.highlightFirstSuggestion;if(!(0,o.default)(r,e.suggestions)&&r.length>0&&s)this.highlightFirstSuggestion();else if(i){var a=this.getHighlightedSuggestion();a!=t.highlightedSuggestion&&i({suggestion:a})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(i){var o=i.valueBeforeUpDown;return null===t?o=null:null===o&&void 0!==n&&(o=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:o}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,i=n.multiSection,o=n.getSectionSuggestions;return i?o(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,i=r.value,o=r.onChange;t!==i&&o(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,r=e.inputProps,i=e.shouldRenderSuggestions,o=r.value;return n.length>0&&i(o,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,i=t.renderInputComponent,o=t.onSuggestionsFetchRequested,l=t.render
3Suggestion,u=t.inputProps,c=t.multiSection,h=t.renderSectionTitle,f=t.id,p=t.getSectionSuggestions,g=t.theme,m=t.getSuggestionValue,y=t.alwaysRenderSuggestions,E=t.highlightFirstSuggestion,S=t.containerProps,C=this.state,M=C.isFocused,k=C.isCollapsed,T=C.highlightedSectionIndex,P=C.highlightedSuggestionIndex,O=C.valueBeforeUpDown,I=y?v:this.props.shouldRenderSuggestions,R=u.value,A=u.onFocus,L=u.onKeyDown,N=this.willRenderSuggestions(this.props,"render"),D=y||M&&!k&&N,F=D?n:[],j=d({},u,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=I(R,b);e.setState({isFocused:!0,isCollapsed:!n}),A&&A(t),n&&o({value:R,reason:b})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=I(n,w);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(d({},E?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?o({value:n,reason:w}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var i=t.keyCode;switch(i){case 40:case 38:if(k)I(R,_)&&(o({value:R,reason:_}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var s,a=r.newHighlightedSectionIndex,l=r.newHighlightedItemIndex;s=null===l?null===O?R:O:e.getSuggestionValueByIndex(a,l),e.updateHighlightedSuggestion(a,l,R),e.maybeCallOnChange(t,s,40===i?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(D&&!y&&e.closeSuggestions(),null!=u){t.preventDefault();var c=m(u);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:c,suggestionIndex:P,sectionIndex:T,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:D&&t.preventDefault();var h=D&&!y;null===O?h||(e.maybeCallOnChange(t,"","escape"),I("",x)?o({value:"",reason:x}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,O,"escape"),h?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}L&&L(t)}}),B={query:this.getQuery()};return r.default.createElement(s.default,{multiSection:c,items:F,renderInputComponent:i,renderItemsContainer:this.renderSuggestionsContainer,renderItem:l,renderItemData:B,renderSectionTitle:h,getSectionItems:p,highlightedSectionIndex:T,highlightedItemIndex:P,containerProps:S,inputProps:j,itemProps:this.itemProps,theme:(0,a.mapToAutowhateverTheme)(g),id:f,ref:this.storeAutowhateverRef})}}],n&&f(t.prototype,n),u}(r.Component);
3t.default=E,y(E,"propTypes",{suggestions:i.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){if("function"!=typeof e[t])throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:i.default.func,onSuggestionSelected:i.default.func,onSuggestionHighlighted:i.default.func,renderInputComponent:i.default.func,renderSuggestionsContainer:i.default.func,getSuggestionValue:i.default.func.isRequired,renderSuggestion:i.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:i.default.func,alwaysRenderSuggestions:i.default.bool,multiSection:i.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:i.default.bool,highlightFirstSuggestion:i.default.bool,theme:i.default.object,id:i.default.string,containerProps:i.default.object}),y(E,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:a.defaultTheme,id:"1",containerProps:{}})},7659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(6540)),i=a(n(5556)),o=a(n(1572)),s=a(n(1438));function a(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
3function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(l,e);var t,n,i,a=(i=l,function(){var e,t=p(i);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?f(e):t}(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(f(e=a.call.apply(a,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return t=l,n=[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,i=t.itemProps,s=t.renderItem,a=t.renderItemData,l=t.sectionIndex,u=t.highlightedItemIndex,d=t.getItemId,f=t.theme,p=t.keyPrefix,g=null===l?p:"".concat(p,"section-").concat(l,"-"),y="function"==typeof i;return r.default.createElement("ul",c({role:"listbox"},f("".concat(g,"items-list"),"itemsList")),n.map((function(t,n){var p=0===n,v=n===u,_="".concat(g,"item-").concat(n),b=y?i({sectionIndex:l,itemIndex:n}):i,w=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:d(l,n),"aria-selected":v},f(_,"item",p&&"itemFirst",v&&"itemHighlighted"),{},b);return v&&(w.ref=e.storeHighlightedItemReference),r.default.createElement(o.default,c({},w,{sectionIndex:l,isHighlighted:v,itemIndex:n,item:t,renderItem:s,renderItemData:a}))})))}}],n&&d(t.prototype,n),l}(r.Component);t.default=y,m(y,"propTypes",{items:i.default.array.isRequired,itemProps:i.default.oneOfType([i.default.object,i.default.func]),renderItem:i.default.func.isRequired,renderItemData:i.default.object.isRequired,sectionIndex:i.default.number,highlightedItemIndex:i.default.number,onHighlightedItemChange:i.default.func.isRequired,getItemId:i.default.func.isRequired,theme:i.default.func.isRequired,keyPrefix:i.default.string.isRequired}),m(y,"defaultProps",{sectionIndex:null})},8418:(e,t,n)=>{"use strict";n(5160)},9321:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},9869:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function v(){}function _(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var b=_.prototype=new v;b.constructor=_,g(b,y.prototype),b.isPureReactComponent=!0;var w=Array.isArray,x={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function S(e,t,r,i,o,s){return r=s.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:s}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var M=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function T(){}function P(e,t,i,o,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(a){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case d:return P((c=e._init)(e._payload),t,i,o,s)}}if(c)return s=s(e),c=""===o?"."+k(e,0):o,w(s)?(i="",null!=c&&(i=c.replace(M,"$&/")+"/"),P(s,t,i,"",(function(e){return e}))):null!=s&&(C(s)&&(l=s,u=i+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(M,"$&/")+"/")+c,s=S(l.type,u,void 0,0,0,l.props)),t.push(s)),1;c=0;var h,p=""===o?".":o+":";if(w(e))for(var g=0;g<e.length;g++)c+=P(o=e[g],t,i,a=p+k(o,g),s);else if("function"==typeof(g=null===(h=e)||"object"!=typeof h?null:"function"==typeof(h=f&&h[f]||h["@@iterator"])?h:null))for(e=g.call(e),g=0;!(o=e.next()).done;)c+=P(o=o.value,t,i,a=p+k(o,g++),s);else if("object"===a){if("function"==typeof e.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(T,T):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,i,o,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function O(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function A(){}t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=s,t.PureComponent=_,t.StrictMode=o,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,t.act=function(){throw Error("act(...) is not supported in production builds of React.")},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key;
3if(null!=t)for(o in t.ref,void 0!==t.key&&(i=""+t.key),t)!E.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var s=Array(o),a=0;a<o;a++)s[a]=arguments[a+2];r.children=s}return S(e.type,i,void 0,0,0,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},t.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return S(e,o,void 0,0,0,i)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=x.T,n={};x.T=n;try{var r=e(),i=x.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(A,R)}catch(e){R(e)}finally{x.T=t}},t.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},t.use=function(e){return x.H.use(e)},t.useActionState=function(e,t,n){return x.H.useActionState(e,t,n)},t.useCallback=function(e,t){return x.H.useCallback(e,t)},t.useContext=function(e){return x.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return x.H.useEffect(e,t)},t.useId=function(){return x.H.useId()},t.useImperativeHandle=function(e,t,n){return x.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return x.H.useMemo(e,t)},t.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return x.H.useReducer(e,t,n)},t.useRef=function(e){return x.H.useRef(e)},t.useState=function(e){return x.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return x.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return x.H.useTransition()},t.version="19.0.0"},9982:(e,t,n)=>{"use strict";e.exports=n(4477)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p=".",n.nc=void 0,(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>Oc,hasStandardBrowserEnv:()=>Rc,hasStandardBrowserWebWorkerEnv:()=>Ac,navigator:()=>Ic,origin:()=>Lc});var t=n(6540),r=n(5338),i=(n(8418),t.version.startsWith("19")),o=Symbol.for(i?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=d,v=g;function _(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a,l,u,c,h,d=!1;return function(f,p){return d?function(d,f){const p=!o(f,l),g=!i(d,a,f,l);
vendor: 4,971 bytes, line 3
3return a=d,l=f,p&&g?(u=e(a,l),t.dependsOnOwnProps&&(c=t(r,l)),h=n(u,c,l),h):p?(e.dependsOnOwnProps&&(u=e(a,l)),t.dependsOnOwnProps&&(c=t(r,l)),h=n(u,c,l),h):g?function(){const t=e(a,l),r=!s(t,u);return u=t,r&&(h=n(u,c,l)),h}():h}(f,p):(a=f,l=p,u=e(a,l),c=t(r,l),h=n(u,c,l),d=!0,h)}}function b(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function w(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function x(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=w(e);let i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=w(i),i=r(t,n)),i},r}}function E(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function S(e,t,n){return{...n,...e,...t}}var C={notify(){},get:()=>[]};function M(e,t){let n,r=C,i=0,o=!1;function s(){u.onStateChange&&u.onStateChange()}function a(){i++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=C)}const u={addNestedSub:function(e){a();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:s,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,a())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return u}var k=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),T=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),P=(()=>k||T?t.useLayoutEffect:t.useEffect)();function O(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function I(e,t){if(O(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!O(e[n[r]],t[n[r]]))return!1;return!0}var R={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},N={[y]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[v]:L};function D(e){return function(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case o:switch(e=e.type){case a:case u:case l:case f:case p:return e;default:switch(e=e&&e.$$typeof){case h:case d:case m:case g:case c:return e;default:return t}}case s:return t}}}(e)===g?L:N[e.$$typeof]||R}var F=Object.defineProperty,j=Object.getOwnPropertyNames,B=Object.getOwnPropertySymbols,z=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,U=Object.prototype;function W(e,t){if("string"!=typeof t){if(U){const n=G(t);n&&n!==U&&W(e,n)}let n=j(t);B&&(n=n.concat(B(t)));const r=D(e),i=D(t);for(let o=0;o<n.length;++o){const s=n[o];if(!(A[s]||i&&i[s]||r&&r[s])){const n=z(t,s);try{F(e,s,n)}catch(e){}}}}return e}var q=Symbol.for("react-redux-context"),V="undefined"!=typeof globalThis?globalThis:{};function Y(){if(!t.createContext)return{};const e=V[q]??=new Map;let n=e.get(t.createContext);return n||(n=t.createContext(null),e.set(t.createContext,n)),n}var H=Y(),$=[null,null];function K(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function X(e,t){return e===t}var Z=function(e,n,r,{pure:i,areStatesEqual:o=X,areOwnPropsEqual:s=I,areStatePropsEqual:a=I,areMergedPropsEqual:l=I,forwardRef:u=!1,context:c=H}={}){const h=c,d=function(e){return e?"function"==typeof e?x(e):E(e,"mapStateToProps"):b((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?b((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"==typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"==typeof e?x(e):E(e,"mapDispatchToProps"):b((e=>({dispatch:e})))}(n),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,o=!1;return function(t,n,s){const a=e(t,n,s);return o?r(a,i)||(i=a):(o=!0,i=a),i}}}(e):E(e,"mergeProps"):()=>S}(r),g=Boolean(e);return e=>{const n=e.displayName||e.name||"Component",r=`Connect(${n})`,i={shouldHandleStateChanges:g,displayName:r,wrappedComponentName:n,WrappedComponent:e,initMapStateToProps:d,initMapDispat
3chToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:s,areMergedPropsEqual:l};function c(n){const[r,o,s]=t.useMemo((()=>{const{reactReduxForwardedRef:e,...t}=n;return[n.context,e,t]}),[n]),a=t.useMemo((()=>h),[r,h]),l=t.useContext(a),u=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),c=Boolean(l)&&Boolean(l.store),d=u?n.store:l.store,f=c?l.getServerState:d.getState,p=t.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return _(t(e,i),n(e,i),r(e,i),e,i)}(d.dispatch,i)),[d]),[m,y]=t.useMemo((()=>{if(!g)return $;const e=M(d,u?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,u,l]),v=t.useMemo((()=>u?l:{...l,subscription:m}),[u,l,m]),b=t.useRef(void 0),w=t.useRef(s),x=t.useRef(void 0),E=t.useRef(!1),S=t.useRef(!1),C=t.useRef(void 0);P((()=>(S.current=!0,()=>{S.current=!1})),[]);const k=t.useMemo((()=>()=>x.current&&s===w.current?x.current:p(d.getState(),s)),[d,s]),T=t.useMemo((()=>e=>m?function(e,t,n,r,i,o,s,a,l,u,c){if(!e)return()=>{};let h=!1,d=null;const f=()=>{if(h||!a.current)return;const e=t.getState();let n,f;try{n=r(e,i.current)}catch(e){f=e,d=e}f||(d=null),n===o.current?s.current||u():(o.current=n,l.current=n,s.current=!0,c())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}(g,d,m,p,w,b,E,S,x,y,e):()=>{}),[m]);var O,I;let R;O=K,I=[w,b,E,s,x,y],P((()=>O(...I)),undefined);try{R=t.useSyncExternalStore(T,k,f?()=>p(f(),s):k)}catch(e){throw C.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),e}P((()=>{C.current=void 0,x.current=void 0,b.current=R}));const A=t.useMemo((()=>t.createElement(e,{...R,ref:o})),[o,e,R]);return t.useMemo((()=>g?t.createElement(a.Provider,{value:v},A):A),[a,A,v])}const m=t.memo(c);if(m.WrappedComponent=e,m.displayName=c.displayName=r,u){const n=t.forwardRef((function(e,n){return t.createElement(m,{...e,reactReduxForwardedRef:n})}));return n.displayName=r,n.WrappedComponent=e,W(n,e)}return W(m,e)}},J=function(e){const{children:n,context:r,serverState:i,store:o}=e,s=t.useMemo((()=>{const e=M(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}}),[o,i]),a=t.useMemo((()=>o.getState()),[o]);P((()=>{const{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,a]);const l=r||H;return t.createElement(l.Provider,{value:s},n)},Q=n(6942),ee=n.n(Q);const te="propertychange",ne="change",re="contextmenu",ie="click",oe="keydown",se="keypress",ae="touchmove",le="wheel",ue=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function ce(e,t){return e>t?1:e<t?-1:0}function he(e,t){return e<t?1:e>t?-1:0}function de(e,t,n){if(e[0]<=t)return 0;const r=e.length;if(t<=e[r-1])return r-1;if("function"==typeof n){for(let i=1;i<r;++i){const r=e[i];if(r===t)return i;if(r<t)return n(t,e[i-1],r)>0?i-1:i}return r-1}if(n>0){for(let n=1;n<r;++n)if(e[n]<t)return n-1;return r-1}if(n<0){for(let n=1;n<r;++n)if(e[n]<=t)return n;return r-1}for(let n=1;n<r;++n){if(e[n]==t)return n;if(e[n]<t)return e[n-1]-t<t-e[n]?n-1:n}return r-1}function fe(e,t,n){for(;t<n;){const r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function pe(e,t){const n=Array.isArray(t)?t:[t],r=n.length;for(let t=0;t<r;t++)e[e.length]=n[t]}function ge(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function me(){return!0}function ye(){return!1}function ve(){}function _e(e){let t,n,r;return function(){const i=Array.prototype.slice.call(arguments);return n&&this===r&&ge(i,n)||(r=this,n=i,t=e.apply(this,arguments)),t}}function be(e){for(const t in e)delete e[t]}function we(e){let t;for(t in e)return!1;return!t}const xe=class{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}},Ee=class extends ue{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,t){if(!e||!t)return;const n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);r.includes(t)||r.push(t)}
vendor: 57,125 bytes, line 3
3dispatchEvent(e){const t="string"==typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(!r)return;const i=t?new xe(e):e;i.target||(i.target=this.eventTarget_||this);const o=this.dispatching_||(this.dispatching_={}),s=this.pendingRemovals_||(this.pendingRemovals_={});let a;n in o||(o[n]=0,s[n]=0),++o[n];for(let e=0,t=r.length;e<t;++e)if(a="handleEvent"in r[e]?r[e].handleEvent(i):r[e].call(this,i),!1===a||i.propagationStopped){a=!1;break}if(0==--o[n]){let e=s[n];for(delete s[n];e--;)this.removeEventListener(n,ve);delete o[n]}return a}disposeInternal(){this.listeners_&&be(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(e,t){if(!this.listeners_)return;const n=this.listeners_[e];if(!n)return;const r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=ve,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}};function Se(e,t,n,r,i){if(i){const i=n;n=function(o){return e.removeEventListener(t,n),i.call(r??this,o)}}else r&&r!==e&&(n=n.bind(r));const o={target:e,type:t,listener:n};return e.addEventListener(t,n),o}function Ce(e,t,n,r){return Se(e,t,n,r,!0)}function Me(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),be(e))}class ke extends Ee{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(ne)}getRevision(){return this.revision_}onInternal(e,t){if(Array.isArray(e)){const n=e.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=Se(this,e[i],t);return r}return Se(this,e,t)}onceInternal(e,t){let n;if(Array.isArray(e)){const r=e.length;n=new Array(r);for(let i=0;i<r;++i)n[i]=Ce(this,e[i],t)}else n=Ce(this,e,t);return t.ol_key=n,n}unInternal(e,t){const n=t.ol_key;if(n)Te(n);else if(Array.isArray(e))for(let n=0,r=e.length;n<r;++n)this.removeEventListener(e[n],t);else this.removeEventListener(e,t)}}function Te(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;++t)Me(e[t]);else Me(e)}ke.prototype.on,ke.prototype.once,ke.prototype.un;const Pe=ke;function Oe(){throw new Error("Unimplemented abstract method.")}let Ie=0;function Re(e){return e.ol_uid||(e.ol_uid=String(++Ie))}const Ae="10.4.0";class Le extends xe{constructor(e,t,n){super(e),this.key=t,this.oldValue=n}}const Ne=class extends Pe{constructor(e){super(),this.on,this.once,this.un,Re(this),this.values_=null,void 0!==e&&this.setProperties(e)}get(e){let t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,t){let n;n=`change:${e}`,this.hasListener(n)&&this.dispatchEvent(new Le(n,e,t)),n=te,this.hasListener(n)&&this.dispatchEvent(new Le(n,e,t))}addChangeListener(e,t){this.addEventListener(`change:${e}`,t)}removeChangeListener(e,t){this.removeEventListener(`change:${e}`,t)}set(e,t,n){const r=this.values_||(this.values_={});if(n)r[e]=t;else{const n=r[e];r[e]=t,n!==t&&this.notify(e,n)}}setProperties(e,t){for(const n in e)this.set(n,e[n],t)}applyProperties(e){e.values_&&Object.assign(this.values_||(this.values_={}),e.values_)}unset(e,t){if(this.values_&&e in this.values_){const n=this.values_[e];delete this.values_[e],we(this.values_)&&(this.values_=null),t||this.notify(e,n)}}};function De(e,t){if(!e)throw new Error(t)}class Fe extends Ne{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){const t=e;this.setGeometry(t)}else{const t=e;this.setProperties(t)}}clone(){const e=new Fe(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const t=this.getGeometry();t&&e.setGeometry(t.clone());const n=this.getStyle();return n&&e.setStyle(n),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Me(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=Se(e,ne,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?function(e){if("function"==typeof e)return e;let t;return Array.isArray(e)?t=e:(De("function"==typeof e.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),t=[e]),function(){return t}}(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const je=Fe;function Be(e){const t=[1/0,1/0,-1/0,-1/0];for(let n=0,r=e.length;n<r;++n)Qe(t,e[n]);return t}function ze(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function Ge(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function Ue(e,t,n){let r,i;return r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0,i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0,r*r+i*i}function We(e,t){return Ve(e,t[0],t[1])}function qe(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function Ve(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function Ye(e,t){const n=e[0],r=e[1],i=e[2],o=e[3],s=t[0],a=t[1];let l=0;return s<n?l|=16:s>i&&(l|=4),a<r?l|=8:a>o&&(l|=2),0===l&&(l=1),l}function He(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function $e(e){return He(1/0,1/0,-1/0,-1/0,e)}function Ke(e,t){const n=e[0],r=e[1];return He(n,r,n,r,t)}function Xe(e,t,n,r,i){return et($e(i),e,t,n,r)}function Ze(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function Je(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function Qe(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function et(e,t,n,r,i){for(;n<r;n+=i)tt(e,t[n],t[n+1]);return e}function tt(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function nt(e,t){let n;return n=t(it(e)),n||(n=t(ot(e)),n||(n=t(ft(e)),n||(n=t(dt(e)),n||!1)))}function rt(e){let t=0;return mt(e)||(t=pt(e)*ct(e)),t}function it(e){return[e[0],e[1]]}function ot(e){return[e[2],e[1]]}function st(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function at(e,t){let n;if("bottom-left"===t)n=it(e);else if("bottom-right"===t)n=ot(e);else if("top-left"===t)n=dt(e);else{if("top-right"!==t)throw new Error("Invalid corner");n=ft(e)}return n}function lt(e,t,n,r,i){const[o,s,a,l,u,c,h,d]=ut(e,t,n,r);return He(Math.min(o,a,u,h),Math.min(s,l,c,d),Math.max(o,a,u,h),Math.max(s,l,c,d),i)}function ut(e,t,n,r){const i=t*r[0]/2,o=t*r[1]/2,s=Math.cos(n),a=Math.sin(n),l=i*s,u=i*a,c=o*s,h=o*a,d=e[0],f=e[1];return[d-l+h,f-u-c,d-l-h,f-u+c,d+l-h,f+u+c,d+l+h,f+u-c,d-l+h,f-u-c]}function ct(e){return e[3]-e[1]}function ht(e,t,n){const r=n||[1/0,1/0,-1/0,-1/0];return gt(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):$e(r),r}function dt(e){return[e[0],e[3]]}function ft(e){return[e[2],e[3]]}function pt(e){return e[2]-e[0]}function gt(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function mt(e){return e[2]<e[0]||e[3]<e[1]}function yt(e,t){const n=t.getExtent(),r=st(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){const t=pt(n),i=Math.floor((r[0]-n[0])/t)*t;e[0]-=i,e[2]-=i}return e}function vt(e,t,n){if(t.canWrapX()){const r=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[r[0],e[1],r[2],e[3]]];yt(e,t);const i=pt(r);if(pt(e)>i&&!n)return[[r[0],e[1],r[2],e[3]]];if(e[0]<r[0])return[[e[0]+i,e[1],r[2],e[3]],[r[0],e[1],e[2],e[3]]];if(e[2]>r[2])return[[e[0],e[1],r[2],e[3]],[r[0],e[1],e[2]-i,e[3]]]}return[e]}const _t=2;let bt=1;function wt(...e){bt>_t||console.warn(...e)}function xt(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function Et(e,t){const n=t.getRadius(),r=t.getCenter(),i=r[0],o=r[1];let s=e[0]-i;const a=e[1]-o;0===s&&0===a&&(s=1);const l=Math.sqrt(s*s+a*a);return[i+n*s/l,o+n*a/l]}function St(e,t){const n=e[0],r=e[1],i=t[0],o=t[1],s=i[0],a=i[1],l=o[0],u=o[1],c=l-s,h=u-a,d=0===c&&0===h?0:(c*(n-s)+h*(r-a))/(c*c+h*h||0);let f,p;return d<=0?(f=s,p=a):d>=1?(f=l,p=u):(f=s+d*c,p=a+d*h),[f,p]}function Ct(e,t){let n=!0;for(let r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function Mt(e,t){const n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function kt(e,t){return e[0]*=t,e[1]*=t,e}function Tt(e,t){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function Pt(e,t){return Math.sqrt(Tt(e,t))}function Ot(e,t){if(t.canWrapX()){const n=pt(t.getExtent()),r=It(e,t,n);r&&(e[0]-=r*n)}return e}function It(e,t,n){const r=t.getExtent();let i=0;return t.canWrapX()&&(e[0]<r[0]||e[0]>r[2])&&(n=n||pt(r),i=Math.floor((e[0]-r[0])/n)),i}function Rt(e,t,n){return Math.min(Math.max(e,t),n)}function At(e,t,n,r,i,o){const s=i-n,a=o-r;if(0!==s||0!==a){const l=((e-n)*s+(t-r)*a)/(s*s+a*a);l>1?(n=i,r=o):l>0&&(n+=s*l,r+=a*l)}return Lt(e,t,n,r)}function Lt(e,t,n,r){const i=n-e,o=r-t;return i*i+o*o}function Nt(e){return 180*e/Math.PI}function Dt(e){return e*Math.PI/180}function Ft(e,t){const n=e%t;return n*t<0?n+t:n}function jt(e,t,n){return e+n*(t-e)}function Bt(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function zt(e,t){return Math.round(Bt(e,t))}function Gt(e,t){return Math.floor(Bt(e,t))}function Ut(e,t){return Math.ceil(Bt(e,t))}function Wt(e,t,n){if(e>=t&&e<n)return e;const r=n-t;return((e-t)%r+r)%r+t}const qt={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937},Vt=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||qt[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}},Yt=6378137,Ht=Math.PI*Yt,$t=[-Ht,-Ht,Ht,Ht],Kt=[-180,-85,180,85],Xt=Yt*Math.log(Math.tan(Math.PI/2));class Zt extends Vt{constructor(e){super({code:e,units:"m",extent:$t,global:!0,worldExtent:Kt,getPointResolution:function(e,t){return e/Math.cosh(t[1]/Yt)}})}}const Jt=[new Zt("EPSG:3857"),new Zt("EPSG:102100"),new Zt("EPSG:102113"),new Zt("EPSG:900913"),new Zt("http://www.opengis.net/def/crs/EPSG/0/3857"),new Zt("http://www.opengis.net/gml/srs/epsg.xml#3857")];const Qt=[-180,-90,180,90],en=6378137*Math.PI/180;class tn extends Vt{constructor(e,t){super({code:e,units:"degrees",extent:Qt,axisOrientation:t,global:!0,metersPerUnit:en,worldExtent:Qt})}}const nn=[new tn("CRS:84"),new tn("EPSG:4326","neu"),new tn("urn:ogc:def:crs:OGC:1.3:CRS84"),new tn("urn:ogc:def:crs:OGC:2:84"),new tn("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new tn("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new tn("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let rn={};function on(e){return rn[e]||rn[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}let sn={};function an(e,t,n){const r=e.getCode(),i=t.getCode();r in sn||(sn[r]={}),sn[r][i]=n}function ln(e,t){return e in sn&&t in sn[e]?sn[e][t]:null}const un=.9996,cn=.00669438,hn=cn*cn,dn=hn*cn,fn=cn/(1-cn),pn=Math.sqrt(1-cn),gn=(1-pn)/(1+pn),mn=gn*gn,yn=mn*gn,vn=yn*gn,_n=vn*gn,bn=.9983242984503243,wn=15*hn/256+45*dn/1024,xn=35*dn/3072,En=1.5*gn-27/32*yn+269/512*_n,Sn=21/16*mn-55/32*vn,Cn=151/96*yn-417/128*_n,Mn=1097/512*vn,kn=6378137;function Tn(e,t,n){const r=e-5e5,i=(n.north?t:t-1e7)/un/(kn*bn),o=i+En*Math.sin(2*i)+Sn*Math.sin(4*i)+Cn*Math.sin(6*i)+Mn*Math.sin(8*i),s=Math.sin(o),a=s*s,l=Math.cos(o),u=s/l,c=u*u,h=c*c,d=1-cn*a,f=Math.sqrt(1-cn*a),p=fn*l**2,g=p*p,m=r/(kn/f*un),y=m*m,v=y*m,_=v*m,b=_*m,w=o-u/((1-cn)/d)*(y/2-_/24*(5+3*c+10*p-4*g-9*fn))+b*m/720*(61+90*c+298*p+45*h-252*fn-3*g);let x=(m-v/6*(1+2*c+p)+b/120*(5-2*p+28*c-3*g+8*fn+24*h))/l;return x=Wt(x+Dt(On(n.number)),-Math.PI,Math.PI),[Nt(x),Nt(w)]}function Pn(e,t,n){e=Wt(e,-180,180),t<-80?t=-80:t>84&&(t=84);const r=Dt(t),i=Math.sin(r),o=Math.cos(r),s=i/o,a=s*s,l=a*a,u=Dt(e),c=Dt(On(n.number)),h=kn/Math.sqrt(1-cn*i**2),d=fn*o**2,f=o*Wt(u-c,-Math.PI,Math.PI),p=f*f,g=p*f,m=g*f,y=m*f,v=y*f,_=kn*(bn*r-.002514607064228144*Math.sin(2*r)+wn*Math.sin(4*r)-xn*Math.sin(6*r)),b=un*h*(f+g/6*(1-a+d)+y/120*(5-18*a+l+72*d-58*fn))+5e5;let w=un*(_+h*s*(p/2+m/24*(5-a+9*d+4*d**2)+v/720*(61-58*a+l+600*d-330*fn)));return n.north||(w+=1e7),[b,w]}function On(e){return 6*(e-1)-180+3}const In=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function Rn(e){let t=0;for(const n of In){const r=e.match(n);if(r){t=parseInt(r[1]);break}}if(!t)return null;let n=0,r=!1;return t>32700&&t<32761?n=t-32700:t>32600&&t<32661&&(r=!0,n=t-32600),n?{number:n,north:r}:null}function An(e,t){return function(n,r,i,o){const s=n.length;i=i>1?i:2,o=o??i,r||(r=i>2?n.slice():new Array(s));for(let i=0;i<s;i+=o){const o=n[i],s=n[i+1],a=e(o,s,t);r[i]=a[0],r[i+1]=a[1]}return r}}const Ln=6371008.8;function Nn(e,t,n){n=n||Ln;const r=Dt(e[1]),i=Dt(t[1]),o=(i-r)/2,s=Dt(t[0]-e[0])/2,a=Math.sin(o)*Math.sin(o)+Math.sin(s)*Math.sin(s)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function Dn(e,t){let n=0;for(let r=0,i=e.length;r<i-1;++r)n+=Nn(e[r],e[r+1],t);return n}function Fn(e,t){const n=(t=t||{}).radius||Ln,r=t.projection||"EPSG:3857",i=e.getType();"GeometryCollection"!==i&&(e=e.clone().transform(r,"EPSG:4326"));let o,s,a,l,u,c,h=0;switch(i){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":o=e.getCoordinates(),h=Dn(o,n);break;case"MultiLineString":case"Polygon":for(o=e.getCoordinates(),a=0,l=o.length;a<l;++a)h+=Dn(o[a],n);break;case"MultiPolygon":for(o=e.getCoordinates(),a=0,l=o.length;a<l;++a)for(s=o[a],u=0,c=s.length;u<c;++u)h+=Dn(s[u],n);break;case"GeometryCollection":{const n=e.getGeometries();for(a=0,l=n.length;a<l;++a)h+=Fn(n[a],t);break}default:throw new Error("Unsupported geometry type: "+i)}return h}function jn(e,t){let n=0;const r=e.length;let i=e[r-1][0],o=e[r-1][1];for(let t=0;t<r;t++){const r=e[t][0],s=e[t][1];n+=Dt(r-i)*(2+Math.sin(Dt(o))+Math.sin(Dt(s))),i=r,o=s}return n*t*t/2}function Bn(e,t){const n=(t=t||{}).radius||Ln,r=t.projection||"EPSG:3857",i=e.getType();"GeometryCollection"!==i&&(e=e.clone().transform(r,"EPSG:4326"));let o,s,a,l,u,c,h=0;switch(i){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":for(o=e.getCoordinates(),h=Math.abs(jn(o[0],n)),a=1,l=o.length;a<l;++a)h-=Math.abs(jn(o[a],n));break;case"MultiPolygon":for(o=e.getCoordinates(),a=0,l=o.length;a<l;++a)for(s=o[a],h+=Math.abs(jn(s[0],n)),u=1,c=s.length;u<c;++u)h-=Math.abs(jn(s[u],n));break;case"GeometryCollection":{const n=e.getGeometries();for(a=0,l=n.length;a<l;++a)h+=Bn(n[a],t);break}default:throw new Error("Unsupported geometry type: "+i)}return h}const zn=[function(e){const t=Rn(e.getCode());return t?{forward:An(Pn,t),inverse:An(Tn,t)}:null}],Gn=[function(e){return Rn(e)?new Vt({code:e,units:"m"}):null}];let Un=!0;function Wn(e){Un=!(void 0===e||e)}function qn(e,t){if(void 0!==t)for(let n=0,r=e.length;n<r;++n)t[n]=e[n];else t=e.slice();return t}function Vn(e,t){if(void 0!==t&&e!==t){for(let n=0,r=e.length;n<r;++n)t[n]=e[n];e=t}return e}function Yn(e){!function(e,t){rn[e]=t}(e.getCode(),e),an(e,e,qn)}function Hn(e){if("string"!=typeof e)return e;const t=on(e);if(t)return t;for(const t of Gn){const n=t(e);if(n)return n}return null}function $n(e,t,n,r){let i;const o=(e=Hn(e)).getPointResolutionFunc();if(o){if(i=o(t,n),r&&r!==e.getUnits()){const t=e.getMetersPerUnit();t&&(i=i*t/qt[r])}}else{const o=e.getUnits();if("degrees"==o&&!r||"degrees"==r)i=t;else{const s=er(e,Hn("EPSG:4326"));if(s||"degrees"===o){let e=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];e=s(e,e,2),i=(Nn(e.slice(0,2),e.slice(2,4))+Nn(e.slice(4,6),e.slice(6,8)))/2}else i=t*e.getMetersPerUnit();const a=r?qt[r]:e.getMetersPerUnit();void 0!==a&&(i/=a)}}return i}function Kn(e){!function(e){e.forEach(Yn)}(e),e.forEach((function(t){e.forEach((function(e){t!==e&&an(t,e,qn)}))}))}function Xn(e,t){return e?"string"==typeof e?Hn(e):e:Hn(t)}function Zn(e){return function(t,n,r,i){const o=t.length;r=void 0!==r?r:2,i=i??r,n=void 0!==n?n:new Array(o);for(let s=0;s<o;s+=i){const o=e(t.slice(s,s+r)),a=o.length;for(let e=0,r=i;e<r;++e)n[s+e]=e>=a?t[s+e]:o[e]}return n}}function Jn(e,t,n,r){const i=Hn(e),o=Hn(t);an(i,o,Zn(n)),an(o,i,Zn(r))}function Qn(e,t){if(e===t)return!0;const n=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||er(e,t)===qn)&&n}function er(e,t){const n=e.getCode(),r=t.getCode();let i=ln(n,r);if(i)return i;let o=null,s=null;for(const n of zn)o||(o=n(e)),s||(s=n(t));if(!o&&!s)return null;const a="EPSG:4326";if(s)if(o)i=tr(o.inverse,s.forward);else{const e=ln(n,a);e&&(i=tr(e,s.forward))}else{const e=ln(a,r);e&&(i=tr(o.inverse,e))}return i&&(Yn(e),Yn(t),an(e,t,i)),i}function tr(e,t){return function(n,r,i,o){return r=e(n,r,i,o),t(r,r,i,o)}}function nr(e,t){return er(Hn(e),Hn(t))}function rr(e,t,n){const r=nr(t,n);if(!r){const e=Hn(t).getCode(),r=Hn(n).getCode();throw new Error(`No transform available between ${e} and ${r}`)}return r(e,void 0,e.length)}function ir(e,t,n,r){return function(e,t,n,r){if(mt(e))return $e(n);let i=[];if(r>1){const t=e[2]-e[0],n=e[3]-e[1];for(let o=0;o<r;++o)i.push(e[0]+t*o/r,e[1],e[2],e[1]+n*o/r,e[2]-t*o/r,e[3],e[0],e[3]-n*o/r)}else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);const o=[],s=[];for(let e=0,t=i.length;e<t;e+=2)o.push(i[e]),s.push(i[e+1]);return function(e,t,n){return He(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),n)}(o,s,n)}(e,nr(t,n),void 0,r)}let or=null;function sr(){return or}function ar(e,t){return e}function lr(e,t){return Un&&!Ct(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(Un=!1,wt("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e}function ur(e,t){return e}function cr(e,t){return e}function hr(e,t){return e}function dr(e,t,n){return function(r){let i,o;if(e.canWrapX()){const t=e.getExtent(),s=pt(t);o=It(r=r.slice(0),e,s),o&&(r[0]=r[0]-o*s),r[0]=Rt(r[0],t[0],t[2]),r[1]=Rt(r[1],t[1],t[3]),i=n(r)}else i=n(r);return o&&t.canWrapX()&&(i[0]+=o*pt(t.getExtent())),i}}var fr,pr,gr;function mr(e,t){const n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function yr(e,t,n,r,i,o,s,a){const l=Math.sin(o),u=Math.cos(o);return e[0]=r*u,e[1]=i*l,e[2]=-r*l,e[3]=i*u,e[4]=s*r*u-a*r*l+t,e[5]=s*i*l+a*i*u+n,e}function vr(e,t){const n=(r=t)[0]*r[3]-r[1]*r[2];var r;De(0!==n,"Transformation matrix cannot be inverted");const i=t[0],o=t[1],s=t[2],a=t[3],l=t[4],u=t[5];return e[0]=a/n,e[1]=-o/n,e[2]=-s/n,e[3]=i/n,e[4]=(s*u-a*l)/n,e[5]=-(i*u-o*l)/n,e}Kn(Jt),Kn(nn),fr=Jt,pr=function(e,t,n,r){const i=e.length;n=n>1?n:2,r=r??n,void 0===t&&(t=n>2?e.slice():new Array(i));for(let n=0;n<i;n+=r){t[n]=Ht*e[n]/180;let r=Yt*Math.log(Math.tan(Math.PI*(+e[n+1]+90)/360));r>Xt?r=Xt:r<-Xt&&(r=-Xt),t[n+1]=r}return t},gr=function(e,t,n,r){const i=e.length;n=n>1?n:2,r=r??n,void 0===t&&(t=n>2?e.slice():new Array(i));for(let n=0;n<i;n+=r)t[n]=180*e[n]/Ht,t[n+1]=360*Math.atan(Math.exp(e[n+1]/Yt))/Math.PI-90;return t},nn.forEach((function(e){fr.forEach((function(t){an(e,t,pr),an(t,e,gr)}))})),new Array(6);const _r=[1e6,1e6,1e6,1e6,2,2];function br(e,t,n,r,i,o,s){o=o||[],s=s||2;let a=0;for(let l=t;l<n;l+=r){const t=e[l],n=e[l+1];o[a++]=i[0]*t+i[2]*n+i[4],o[a++]=i[1]*t+i[3]*n+i[5];for(let t=2;t<s;t++)o[a++]=e[l+t]}return o&&o.length!=a&&(o.length=a),o}function wr(e,t,n,r,i,o,s){s=s||[];const a=Math.cos(i),l=Math.sin(i),u=o[0],c=o[1];let h=0;for(let i=t;i<n;i+=r){const t=e[i]-u,n=e[i+1]-c;s[h++]=u+t*a-n*l,s[h++]=c+t*l+n*a;for(let t=i+2;t<i+r;++t)s[h++]=e[t]}return s&&s.length!=h&&(s.length=h),s}const xr=[1,0,0,1,0,0],Er=[NaN,NaN],Sr=class extends Ne{constructor(){super(),this.extent_=[1/0,1/0,-1/0,-1/0],this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=_e(((e,t,n)=>{if(!n)return this.getSimplifiedGeometry(t);const r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)}))}simplifyTransformed(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)}clone(){return Oe()}closestPointXY(e,t,n,r){return Oe()}containsXY(e,t){return 0===this.closestPointXY(e,t,Er,Number.MIN_VALUE)}getClosestPoint(e,t){return t=t||[NaN,NaN],this.closestPointXY(e[0],e[1],t,1/0),t}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return Oe()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&$e(e),this.extentRevision_=this.getRevision()}return function(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}(this.extent_,e)}rotate(e,t){Oe()}scale(e,t,n){Oe()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return Oe()}getType(){return Oe()}applyTransform(e){Oe()}intersectsExtent(e){return Oe()}translate(e,t){Oe()}transform(e,t){const n=Hn(e),r="tile-pixels"==n.getUnits()?function(e,r,i){const o=n.getExtent(),s=n.getWorldExtent(),a=ct(s)/ct(o);yr(xr,s[0],s[3],a,-a,0,0,0);const l=br(e,0,e.length,i,xr,r),u=nr(n,t);return u?u(l,l,i):l}:nr(n,t);return this.applyTransform(r),this}};class Cr extends Sr{constructor(e){super(),this.geometries_=e,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(Me),this.changeEventsKeys_.length=0}listenGeometriesChange_(){const e=this.geometries_;for(let t=0,n=e.length;t<n;++t)this.changeEventsKeys_.push(Se(e[t],ne,this.changed,this))}clone(){const e=new Cr(Mr(this.geometries_));return e.applyProperties(this),e}closestPointXY(e,t,n,r){if(r<Ue(this.getExtent(),e,t))return r;const i=this.geometries_;for(let o=0,s=i.length;o<s;++o)r=i[o].closestPointXY(e,t,n,r);return r}containsXY(e,t){const n=this.geometries_;for(let r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1}computeExtent(e){$e(e);const t=this.geometries_;for(let n=0,r=t.length;n<r;++n)Je(e,t[n].getExtent());return e}getGeometries(){return Mr(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let e=[];const t=this.geometries_;for(let n=0,r=t.length;n<r;++n)t[n].getType()===this.getType()?e=e.concat(t[n].getGeometriesArrayRecursive()):e.push(t[n]);return e}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const t=[],n=this.geometries_;let r=!1;for(let i=0,o=n.length;i<o;++i){const o=n[i],s=o.getSimplifiedGeometry(e);t.push(s),s!==o&&(r=!0)}return r?new Cr(t):(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getType(){return"GeometryCollection"}intersectsExtent(e){const t=this.geometries_;for(let n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1}isEmpty(){return 0===this.geometries_.length}rotate(e,t){const n=this.geometries_;for(let r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()}scale(e,t,n){n||(n=st(this.getExtent()));const r=this.geometries_;for(let i=0,o=r.length;i<o;++i)r[i].scale(e,t,n);this.changed()}setGeometries(e){this.setGeometriesArray(Mr(e))}setGeometriesArray(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()}applyTransform(e){const t=this.geometries_;for(let n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()}translate(e,t){const n=this.geometries_;for(let r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function Mr(e){return e.map((e=>e.clone()))}const kr=Cr;function Tr(e){let t;return"XY"==e?t=2:"XYZ"==e||"XYM"==e?t=3:"XYZM"==e&&(t=4),t}const Pr=class extends Sr{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return Xe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return Oe()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,t){this.stride=Tr(e),this.layout=e,this.flatCoordinates=t}setCoordinates(e,t){Oe()}setLayout(e,t,n){let r;if(e)r=Tr(e);else{for(let e=0;e<n;++e){if(0===t.length)return this.layout="XY",void(this.stride=2);t=t[0]}r=t.length,e=function(e){let t;return 2==e?t="XY":3==e?t="XYZ":4==e&&(t="XYZM"),t}(r)}this.layout=e,this.stride=r}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(e,t){const n=this.getFlatCoordinates();if(n){const r=this.getStride();wr(n,0,n.length,r,e,t,n),this.changed()}}scale(e,t,n){void 0===t&&(t=e),n||(n=st(this.getExtent()));const r=this.getFlatCoordinates();if(r){const i=this.getStride();!function(e,t,n,r,i,o,s,a){a=a||[];const l=s[0],u=s[1];let c=0;for(let t=0;t<n;t+=r){const n=e[t]-l,s=e[t+1]-u;a[c++]=l+i*n,a[c++]=u+o*s;for(let n=t+2;n<t+r;++n)a[c++]=e[n]}a&&a.length!=c&&(a.length=c)}(r,0,r.length,i,e,t,n,r),this.changed()}}translate(e,t){const n=this.getFlatCoordinates();if(n){const r=this.getStride();!function(e,t,n,r,i,o,s){s=s||[];let a=0;for(let t=0;t<n;t+=r){s[a++]=e[t]+i,s[a++]=e[t+1]+o;for(let n=t+2;n<t+r;++n)s[a++]=e[n]}s&&s.length!=a&&(s.length=a)}(n,0,n.length,r,e,t,n),this.changed()}}};function Or(e,t,n,r,i,o,s){const a=e[t],l=e[t+1],u=e[n]-a,c=e[n+1]-l;let h;if(0===u&&0===c)h=t;else{const d=((i-a)*u+(o-l)*c)/(u*u+c*c);if(d>1)h=n;else{if(d>0){for(let i=0;i<r;++i)s[i]=jt(e[t+i],e[n+i],d);return void(s.length=r)}h=t}}for(let t=0;t<r;++t)s[t]=e[h+t];s.length=r}function Ir(e,t,n,r,i){let o=e[t],s=e[t+1];for(t+=r;t<n;t+=r){const n=e[t],r=e[t+1],a=Lt(o,s,n,r);a>i&&(i=a),o=n,s=r}return i}function Rr(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o];i=Ir(e,t,s,r,i),t=s}return i}function Ar(e,t,n,r,i,o,s,a,l,u,c){if(t==n)return u;let h,d;if(0===i){if(d=Lt(s,a,e[t],e[t+1]),d<u){for(h=0;h<r;++h)l[h]=e[t+h];return l.length=r,d}return u}c=c||[NaN,NaN];let f=t+r;for(;f<n;)if(Or(e,f-r,f,r,s,a,c),d=Lt(s,a,c[0],c[1]),d<u){for(u=d,h=0;h<r;++h)l[h]=c[h];l.length=r,f+=r}else f+=r*Math.max((Math.sqrt(d)-Math.sqrt(u))/i|0,1);if(o&&(Or(e,n-r,t,r,s,a,c),d=Lt(s,a,c[0],c[1]),d<u)){for(u=d,h=0;h<r;++h)l[h]=c[h];l.length=r}return u}function Lr(e,t,n,r,i,o,s,a,l,u,c){c=c||[NaN,NaN];for(let h=0,d=n.length;h<d;++h){const d=n[h];u=Ar(e,t,d,r,i,o,s,a,l,u,c),t=d}return u}function Nr(e,t,n,r){for(let r=0,i=n.length;r<i;++r)e[t++]=n[r];return t}function Dr(e,t,n,r){for(let i=0,o=n.length;i<o;++i){const o=n[i];for(let n=0;n<r;++n)e[t++]=o[n]}return t}function Fr(e,t,n,r,i){i=i||[];let o=0;for(let s=0,a=n.length;s<a;++s){const a=Dr(e,t,n[s],r);i[o++]=a,t=a}return i.length=o,i}function jr(e,t,n,r,i){i=void 0!==i?i:[];let o=0;for(let s=t;s<n;s+=r)i[o++]=e.slice(s,s+r);return i.length=o,i}function Br(e,t,n,r,i){i=void 0!==i?i:[];let o=0;for(let s=0,a=n.length;s<a;++s){const a=n[s];i[o++]=jr(e,t,a,r,i[o]),t=a}return i.length=o,i}function zr(e,t,n,r,i){i=void 0!==i?i:[];let o=0;for(let s=0,a=n.length;s<a;++s){const a=n[s];i[o++]=1===a.length&&a[0]===t?[]:Br(e,t,a,r,i[o]),t=a[a.length-1]}return i.length=o,i}function Gr(e,t,n,r,i,o,s){let a,l;const u=(n-t)/r;if(1===u)a=t;else if(2===u)a=t,l=i;else if(0!==u){let o=e[t],s=e[t+1],u=0;const c=[0];for(let i=t+r;i<n;i+=r){const t=e[i],n=e[i+1];u+=Math.sqrt((t-o)*(t-o)+(n-s)*(n-s)),c.push(u),o=t,s=n}const h=i*u,d=function(e,t,n){let r,i;n=n||ce;let o=0,s=e.length,a=!1;for(;o<s;)r=o+(s-o>>1),i=+n(e[r],t),i<0?o=r+1:(s=r,a=!i);return a?o:~o}(c,h);d<0?(l=(h-c[-d-2])/(c[-d-1]-c[-d-2]),a=t+(-d-2)*r):a=t+d*r}s=s>1?s:2,o=o||new Array(s);for(let t=0;t<s;++t)o[t]=void 0===a?NaN:void 0===l?e[a+t]:jt(e[a+t],e[a+r+t],l);return o}function Ur(e,t,n,r,i,o){if(n==t)return null;let s;if(i<e[t+r-1])return o?(s=e.slice(t,t+r),s[r-1]=i,s):null;if(e[n-1]<i)return o?(s=e.slice(n-r,n),s[r-1]=i,s):null;if(i==e[t+r-1])return e.slice(t,t+r);let a=t/r,l=n/r;for(;a<l;){const t=a+l>>1;i<e[(t+1)*r-1]?l=t:a=t+1}const u=e[a*r-1];if(i==u)return e.slice((a-1)*r,(a-1)*r+r);const c=(i-u)/(e[(a+1)*r-1]-u);s=[];for(let t=0;t<r-1;++t)s.push(jt(e[(a-1)*r+t],e[a*r+t],c));return s.push(i),s}function Wr(e,t,n,r,i){return!nt(i,(function(i){return!qr(e,t,n,r,i[0],i[1])}))}function qr(e,t,n,r,i,o){let s=0,a=e[n-r],l=e[n-r+1];for(;t<n;t+=r){const n=e[t],r=e[t+1];l<=o?r>o&&(n-a)*(o-l)-(i-a)*(r-l)>0&&s++:r<=o&&(n-a)*(o-l)-(i-a)*(r-l)<0&&s--,a=n,l=r}return 0!==s}function Vr(e,t,n,r,i,o){if(0===n.length)return!1;if(!qr(e,t,n[0],r,i,o))return!1;for(let t=1,s=n.length;t<s;++t)if(qr(e,n[t-1],n[t],r,i,o))return!1;return!0}function Yr(e,t,n,r,i){let o;for(t+=r;t<n;t+=r)if(o=i(e.slice(t-r,t),e.slice(t,t+r)),o)return o;return!1}function Hr(e,t,n,r,i,o){return o=o??et([1/0,1/0,-1/0,-1/0],e,t,n,r),!!gt(i,o)&&(o[0]>=i[0]&&o[2]<=i[2]||o[1]>=i[1]&&o[3]<=i[3]||Yr(e,t,n,r,(function(e,t){return function(e,t,n){let r=!1;const i=Ye(e,t),o=Ye(e,n);if(1===i||1===o)r=!0;else{const s=e[0],a=e[1],l=e[2],u=e[3],c=t[0],h=t[1],d=n[0],f=n[1],p=(f-h)/(d-c);let g,m;2&o&&!(2&i)&&(g=d-(f-u)/p,r=g>=s&&g<=l),r||!(4&o)||4&i||(m=f-(d-l)*p,r=m>=a&&m<=u),r||!(8&o)||8&i||(g=d-(f-a)/p,r=g>=s&&g<=l),r||!(16&o)||16&i||(m=f-(d-s)*p,r=m>=a&&m<=u)}return r}(i,e,t)})))}function $r(e,t,n,r,i){return!!(Hr(e,t,n,r,i)||qr(e,t,n,r,i[0],i[1])||qr(e,t,n,r,i[0],i[3])||qr(e,t,n,r,i[2],i[1])||qr(e,t,n,r,i[2],i[3]))}function Kr(e,t,n,r,i){if(!$r(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(let t=1,o=n.length;t<o;++t)if(Wr(e,n[t-1],n[t],r,i)&&!Hr(e,n[t-1],n[t],r,i))return!1;return!0}function Xr(e,t,n,r){let i=e[t],o=e[t+1],s=0;for(let a=t+r;a<n;a+=r){const t=e[a],n=e[a+1];s+=Math.sqrt((t-i)*(t-i)+(n-o)*(n-o)),i=t,o=n}return s}function Zr(e,t,n,r,i,o,s){const a=(n-t)/r;if(a<3){for(;t<n;t+=r)o[s++]=e[t],o[s++]=e[t+1];return s}const l=new Array(a);l[0]=1,l[a-1]=1;const u=[t,n-r];let c=0;for(;u.length>0;){const n=u.pop(),o=u.pop();let s=0;const a=e[o],h=e[o+1],d=e[n],f=e[n+1];for(let t=o+r;t<n;t+=r){const n=At(e[t],e[t+1],a,h,d,f);n>s&&(c=t,s=n)}s>i&&(l[(c-t)/r]=1,o+r<c&&u.push(o,c),c+r<n&&u.push(c,n))}for(let n=0;n<a;++n)l[n]&&(o[s++]=e[t+n*r],o[s++]=e[t+n*r+1]);return s}function Jr(e,t,n,r,i,o,s,a){for(let l=0,u=n.length;l<u;++l){const u=n[l];s=Zr(e,t,u,r,i,o,s),a.push(s),t=u}return s}function Qr(e,t){return t*Math.round(e/t)}function ei(e,t,n,r,i,o,s){if(t==n)return s;let a,l,u=Qr(e[t],i),c=Qr(e[t+1],i);t+=r,o[s++]=u,o[s++]=c;do{if(a=Qr(e[t],i),l=Qr(e[t+1],i),(t+=r)==n)return o[s++]=a,o[s++]=l,s}while(a==u&&l==c);for(;t<n;){const n=Qr(e[t],i),h=Qr(e[t+1],i);if(t+=r,n==a&&h==l)continue;const d=a-u,f=l-c,p=n-u,g=h-c;d*g==f*p&&(d<0&&p<d||d==p||d>0&&p>d)&&(f<0&&g<f||f==g||f>0&&g>f)?(a=n,l=h):(o[s++]=a,o[s++]=l,u=a,c=l,a=n,l=h)}return o[s++]=a,o[s++]=l,s}function ti(e,t,n,r,i,o,s,a){for(let l=0,u=n.length;l<u;++l){const u=n[l];s=ei(e,t,u,r,i,o,s),a.push(s),t=u}return s}class ni extends Pr{constructor(e,t){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===t||Array.isArray(e[0])?this.setCoordinates(e,t):this.setFlatCoordinates(t,e)}appendCoordinate(e){pe(this.flatCoordinates,e),this.changed()}clone(){const e=new ni(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,n,r){return r<Ue(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Ir(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Ar(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))}forEachSegment(e){return Yr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinateAtM(e,t){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(t=void 0!==t&&t,Ur(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t))}getCoordinates(){return jr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(e,t){return Gr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)}getLength(){return Xr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(e){const t=[];return t.length=Zr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new ni(t,"XY")}getType(){return"LineString"}intersectsExtent(e){return Hr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,this.getExtent())}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Dr(this.flatCoordinates,0,e,this.stride),this.changed()}}const ri=ni;class ii extends Pr{constructor(e,t,n){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(e[0]))this.setCoordinates(e,t);else if(void 0!==t&&n)this.setFlatCoordinates(t,e),this.ends_=n;else{const t=e,n=[],r=[];for(let e=0,i=t.length;e<i;++e)pe(n,t[e].getFlatCoordinates()),r.push(n.length);const i=0===t.length?this.getLayout():t[0].getLayout();this.setFlatCoordinates(i,n),this.ends_=r}}appendLineString(e){pe(this.flatCoordinates,e.getFlatCoordinates().slice()),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new ii(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,t,n,r){return r<Ue(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Rr(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Lr(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,n,r))}getCoordinateAtM(e,t,n){return"XYM"!=this.layout&&"XYZM"!=this.layout||0===this.flatCoordinates.length?null:(t=void 0!==t&&t,n=void 0!==n&&n,function(e,t,n,r,i,o,s){if(s)return Ur(e,t,n[n.length-1],r,i,o);let a;if(i<e[r-1])return o?(a=e.slice(0,r),a[r-1]=i,a):null;if(e[e.length-1]<i)return o?(a=e.slice(e.length-r),a[r-1]=i,a):null;for(let o=0,s=n.length;o<s;++o){const s=n[o];if(t!=s){if(i<e[t+r-1])return null;if(i<=e[s-1])return Ur(e,t,s,r,i,!1);t=s}}return null}(this.flatCoordinates,0,this.ends_,this.stride,e,t,n))}getCoordinates(){return Br(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(e){return e<0||this.ends_.length<=e?null:new ri(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLineStrings(){const e=this.flatCoordinates,t=this.ends_,n=this.layout,r=[];let i=0;for(let o=0,s=t.length;o<s;++o){const s=t[o],a=new ri(e.slice(i,s),n);r.push(a),i=s}return r}getFlatMidpoints(){const e=[],t=this.flatCoordinates;let n=0;const r=this.ends_,i=this.stride;for(let o=0,s=r.length;o<s;++o){const s=r[o];pe(e,Gr(t,n,s,i,.5)),n=s}return e}getSimplifiedGeometryInternal(e){const t=[],n=[];return t.length=Jr(this.flatCoordinates,0,this.ends_,this.stride,e,t,0,n),new ii(t,"XY",n)}getType(){return"MultiLineString"}intersectsExtent(e){return function(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){if(Hr(e,t,n[o],r,i))return!0;t=n[o]}return!1}(this.flatCoordinates,0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=Fr(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}const oi=ii;class si extends Pr{constructor(e,t){super(),this.setCoordinates(e,t)}clone(){const e=new si(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,n,r){const i=this.flatCoordinates,o=Lt(e,t,i[0],i[1]);if(o<r){const e=this.stride;for(let t=0;t<e;++t)n[t]=i[t];return n.length=e,o}return r}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return Ke(this.flatCoordinates,e)}getType(){return"Point"}intersectsExtent(e){return Ve(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Nr(this.flatCoordinates,0,e,this.stride),this.changed()}}const ai=si;class li extends Pr{constructor(e,t){super(),t&&!Array.isArray(e[0])?this.setFlatCoordinates(t,e):this.setCoordinates(e,t)}appendPoint(e){pe(this.flatCoordinates,e.getFlatCoordinates()),this.changed()}clone(){const e=new li(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,n,r){if(r<Ue(this.getExtent(),e,t))return r;const i=this.flatCoordinates,o=this.stride;for(let s=0,a=i.length;s<a;s+=o){const a=Lt(e,t,i[s],i[s+1]);if(a<r){r=a;for(let e=0;e<o;++e)n[e]=i[s+e];n.length=o}}return r}getCoordinates(){return jr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(e){const t=this.flatCoordinates.length/this.stride;return e<0||t<=e?null:new ai(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)}getPoints(){const e=this.flatCoordinates,t=this.layout,n=this.stride,r=[];for(let i=0,o=e.length;i<o;i+=n){const o=new ai(e.slice(i,i+n),t);r.push(o)}return r}getType(){return"MultiPoint"}intersectsExtent(e){const t=this.flatCoordinates,n=this.stride;for(let r=0,i=t.length;r<i;r+=n)if(Ve(e,t[r],t[r+1]))return!0;return!1}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Dr(this.flatCoordinates,0,e,this.stride),this.changed()}}const ui=li;function ci(e,t,n,r){let i=0;const o=e[n-r],s=e[n-r+1];let a=0,l=0;for(;t<n;t+=r){const n=e[t]-o,r=e[t+1]-s;i+=l*n-a*r,a=n,l=r}return i/2}function hi(e,t,n,r){let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o];i+=ci(e,t,s,r),t=s}return i}class di extends Pr{constructor(e,t){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===t||Array.isArray(e[0])?this.setCoordinates(e,t):this.setFlatCoordinates(t,e)}clone(){return new di(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,t,n,r){return r<Ue(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Ir(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Ar(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))}getArea(){return ci(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return jr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(e){const t=[];return t.length=Zr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new di(t,"XY")}getType(){return"LinearRing"}intersectsExtent(e){return!1}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Dr(this.flatCoordinates,0,e,this.stride),this.changed()}}const fi=di;function pi(e,t,n,r,i,o,s){let a,l,u,c,h,d,f;const p=i[o+1],g=[];for(let i=0,o=n.length;i<o;++i){const o=n[i];for(c=e[o-r],d=e[o-r+1],a=t;a<o;a+=r)h=e[a],f=e[a+1],(p<=d&&f<=p||d<=p&&p<=f)&&(u=(p-d)/(f-d)*(h-c)+c,g.push(u)),c=h,d=f}let m=NaN,y=-1/0;for(g.sort(ce),c=g[0],a=1,l=g.length;a<l;++a){h=g[a];const i=Math.abs(h-c);i>y&&(u=(c+h)/2,Vr(e,t,n,r,u,p)&&(m=u,y=i)),c=h}return isNaN(m)&&(m=i[o]),s?(s.push(m,p,y),s):[m,p,y]}function gi(e,t,n,r,i){let o=[];for(let s=0,a=n.length;s<a;++s){const a=n[s];o=pi(e,t,a,r,i,2*s,o),t=a[a.length-1]}return o}function mi(e,t,n,r){for(;t<n-r;){for(let i=0;i<r;++i){const o=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=o}t+=r,n-=r}}function yi(e,t,n,r){let i=0,o=e[n-r],s=e[n-r+1];for(;t<n;t+=r){const n=e[t],r=e[t+1];i+=(n-o)*(r+s),o=n,s=r}return 0===i?void 0:i>0}function vi(e,t,n,r,i){i=void 0!==i&&i;for(let o=0,s=n.length;o<s;++o){const s=n[o],a=yi(e,t,s,r);if(0===o){if(i&&a||!i&&!a)return!1}else if(i&&!a||!i&&a)return!1;t=s}return!0}function _i(e,t,n,r,i){i=void 0!==i&&i;for(let o=0,s=n.length;o<s;++o){const s=n[o],a=yi(e,t,s,r);(0===o?i&&a||!i&&!a:i&&!a||!i&&a)&&mi(e,t,s,r),t=s}return t}function bi(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o)t=_i(e,t,n[o],r,i);return t}class wi extends Pr{constructor(e,t,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==t&&n?(this.setFlatCoordinates(t,e),this.ends_=n):this.setCoordinates(e,t)}appendLinearRing(e){this.flatCoordinates?pe(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new wi(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,t,n,r){return r<Ue(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Rr(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Lr(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))}containsXY(e,t){return Vr(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)}getArea(){return hi(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),_i(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,Br(t,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const e=st(this.getExtent());this.flatInteriorPoint_=pi(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new ai(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new fi(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){const e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[];let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o],a=new fi(t.slice(i,s),e);r.push(a),i=s}return r}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;vi(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=_i(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const t=[],n=[];return t.length=ti(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),t,0,n),new wi(t,"XY",n)}getType(){return"Polygon"}intersectsExtent(e){return Kr(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=Fr(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}const xi=wi;function Ei(e){if(mt(e))throw new Error("Cannot create polygon from empty extent");const t=e[0],n=e[1],r=e[2],i=e[3],o=[t,n,t,i,r,i,r,n,t,n];return new wi(o,"XY",[o.length])}function Si(e,t,n){t=t||32;const r=e.getStride(),i=e.getLayout(),o=e.getCenter(),s=r*(t+1),a=new Array(s);for(let e=0;e<s;e+=r){a[e]=0,a[e+1]=0;for(let t=2;t<r;t++)a[e+t]=o[t]}const l=[a.length],u=new wi(a,i,l);return function(e,t,n,r){const i=e.getFlatCoordinates(),o=e.getStride(),s=i.length/o-1,a=r||0;for(let e=0;e<=s;++e){const r=e*o,l=a+2*Ft(e,s)*Math.PI/s;i[r]=t[0]+n*Math.cos(l),i[r+1]=t[1]+n*Math.sin(l)}e.changed()}(u,o,e.getRadius(),n),u}function Ci(e,t,n,r){const i=[];let o=[1/0,1/0,-1/0,-1/0];for(let s=0,a=n.length;s<a;++s){const a=n[s];o=Xe(e,t,a[0],r),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),t=a[a.length-1]}return i}class Mi extends Pr{constructor(e,t,n){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){const r=e,i=[],o=[];for(let e=0,t=r.length;e<t;++e){const t=r[e],n=i.length,s=t.getEnds();for(let e=0,t=s.length;e<t;++e)s[e]+=n;pe(i,t.getFlatCoordinates()),o.push(s)}t=0===r.length?this.getLayout():r[0].getLayout(),e=i,n=o}void 0!==t&&n?(this.setFlatCoordinates(t,e),this.endss_=n):this.setCoordinates(e,t)}appendPolygon(e){let t;if(this.flatCoordinates){const n=this.flatCoordinates.length;pe(this.flatCoordinates,e.getFlatCoordinates()),t=e.getEnds().slice();for(let e=0,r=t.length;e<r;++e)t[e]+=n}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()}clone(){const e=this.endss_.length,t=new Array(e);for(let n=0;n<e;++n)t[n]=this.endss_[n].slice();const n=new Mi(this.flatCoordinates.slice(),this.layout,t);return n.applyProperties(this),n}closestPointXY(e,t,n,r){return r<Ue(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o];i=Rr(e,t,s,r,i),t=s[s.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(e,t,n,r,i,o,s,a,l,u,c){c=c||[NaN,NaN];for(let o=0,h=n.length;o<h;++o){const h=n[o];u=Lr(e,t,h,r,i,true,s,a,l,u,c),t=h[h.length-1]}return u}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,0,e,t,n,r))}containsXY(e,t){return function(e,t,n,r,i,o){if(0===n.length)return!1;for(let s=0,a=n.length;s<a;++s){const a=n[s];if(Vr(e,t,a,r,i,o))return!0;t=a[a.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)}getArea(){return function(e,t,n,r){let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o];i+=hi(e,t,s,r),t=s[s.length-1]}return i}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(e){let t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),bi(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,zr(t,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const e=Ci(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=gi(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new ui(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;!function(e,t,n,r){for(let i=0,o=n.length;i<o;++i){const o=n[i];if(!vi(e,t,o,r,undefined))return!1;o.length&&(t=o[o.length-1])}return!0}(e,0,this.endss_,this.stride)?(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=bi(this.orientedFlatCoordinates_,0,this.endss_,this.stride)):this.orientedFlatCoordinates_=e,this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const t=[],n=[];return t.length=function(e,t,n,r,i,o,s,a){for(let l=0,u=n.length;l<u;++l){const u=n[l],c=[];s=ti(e,t,u,r,i,o,s,c),a.push(c),t=u[u.length-1]}return s}(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),t,0,n),new Mi(t,"XY",n)}getPolygon(e){if(e<0||this.endss_.length<=e)return null;let t;if(0===e)t=0;else{const n=this.endss_[e-1];t=n[n.length-1]}const n=this.endss_[e].slice(),r=n[n.length-1];if(0!==t)for(let e=0,r=n.length;e<r;++e)n[e]-=t;return new xi(this.flatCoordinates.slice(t,r),this.layout,n)}getPolygons(){const e=this.layout,t=this.flatCoordinates,n=this.endss_,r=[];let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o].slice(),a=s[s.length-1];if(0!==i)for(let e=0,t=s.length;e<t;++e)s[e]-=i;const l=new xi(t.slice(i,a),e,s);r.push(l),i=a}return r}getType(){return"MultiPolygon"}intersectsExtent(e){return function(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o];if(Kr(e,t,s,r,i))return!0;t=s[s.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);const n=function(e,t,n,r,i){i=i||[];let o=0;for(let s=0,a=n.length;s<a;++s){const a=Fr(e,t,n[s],r,i[o]);0===a.length&&(a[0]=t),i[o++]=a,t=a[a.length-1]}return i.length=o,i}(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{const e=n[n.length-1];this.flatCoordinates.length=0===e.length?0:e[e.length-1]}this.changed()}}const ki=Mi,Ti=class{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=je,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let n=t.dataProjection?Hn(t.dataProjection):this.readProjection(e);t.extent&&n&&"tile-pixels"===n.getUnits()&&(n=Hn(n),n.setWorldExtent(t.extent)),t={dataProjection:n,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return Oe()}readFeature(e,t){return Oe()}readFeatures(e,t){return Oe()}readGeometry(e,t){return Oe()}readProjection(e){return Oe()}writeFeature(e,t){return Oe()}writeFeatures(e,t){return Oe()}writeGeometry(e,t){return Oe()}};function Pi(e,t,n){const r=n?Hn(n.featureProjection):null,i=n?Hn(n.dataProjection):null;let o=e;if(r&&i&&!Qn(r,i)){t&&(o=e.clone());const n=t?r:i,s=t?i:r;"tile-pixels"===n.getUnits()?o.transform(n,s):o.applyTransform(nr(n,s))}if(t&&n&&void 0!==n.decimals){const t=Math.pow(10,n.decimals),r=function(e){for(let n=0,r=e.length;n<r;++n)e[n]=Math.round(e[n]*t)/t;return e};o===e&&(o=e.clone()),o.applyTransform(r)}return o}function Oi(e,t){const n=t?Hn(t.featureProjection):null,r=t?Hn(t.dataProjection):null;return n&&r&&!Qn(n,r)?ir(e,r,n):e}function Ii(e){return"string"==typeof e?e:""}const Ri=class extends Ti{constructor(){super()}getType(){return"text"}readFeature(e,t){return this.readFeatureFromText(Ii(e),this.adaptOptions(t))}readFeatureFromText(e,t){return Oe()}readFeatures(e,t){return this.readFeaturesFromText(Ii(e),this.adaptOptions(t))}readFeaturesFromText(e,t){return Oe()}readGeometry(e,t){return this.readGeometryFromText(Ii(e),this.adaptOptions(t))}readGeometryFromText(e,t){return Oe()}readProjection(e){return this.readProjectionFromText(Ii(e))}readProjectionFromText(e){return this.dataProjection}writeFeature(e,t){return this.writeFeatureText(e,this.adaptOptions(t))}writeFeatureText(e,t){return Oe()}writeFeatures(e,t){return this.writeFeaturesText(e,this.adaptOptions(t))}writeFeaturesText(e,t){return Oe()}writeGeometry(e,t){return this.writeGeometryText(e,this.adaptOptions(t))}writeGeometryText(e,t){return Oe()}},Ai={POINT:ai,LINESTRING:ri,POLYGON:xi,MULTIPOINT:ui,MULTILINESTRING:oi,MULTIPOLYGON:ki},Li="EMPTY",Ni={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"};class Di{constructor(e){this.wkt=e,this.index_=-1}isAlpha_(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isNumeric_(e,t){return t=void 0!==t&&t,e>="0"&&e<="9"||"."==e&&!t}isWhiteSpace_(e){return" "==e||"\t"==e||"\r"==e||"\n"==e}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const e=this.nextChar_(),t=this.index_;let n,r=e;if("("==e)n=2;else if(","==e)n=5;else if(")"==e)n=3;else if(this.isNumeric_(e)||"-"==e)n=4,r=this.readNumber_();else if(this.isAlpha_(e))n=1,r=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);n=6}return{position:t,value:r,type:n}}readNumber_(){let e;const t=this.index_;let n=!1,r=!1;do{"."==e?n=!0:"e"!=e&&"E"!=e||(r=!0),e=this.nextChar_()}while(this.isNumeric_(e,n)||!r&&("e"==e||"E"==e)||r&&("-"==e||"+"==e));return parseFloat(this.wkt.substring(t,this.index_--))}readText_(){let e;const t=this.index_;do{e=this.nextChar_()}while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()}}class Fi{constructor(e){this.lexer_=e,this.token_={position:0,type:0},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(e){return this.token_.type==e}match(e){const t=this.isTokenType(e);return t&&this.consume_(),t}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let e="XY";const t=this.token_;if(this.isTokenType(1)){const n=t.value;"Z"===n?e="XYZ":"M"===n?e="XYM":"ZM"===n&&(e="XYZM"),"XY"!==e&&this.consume_()}return e}parseGeometryCollectionText_(){if(this.match(2)){const e=[];do{e.push(this.parseGeometry_())}while(this.match(5));if(this.match(3))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(2)){const e=this.parsePoint_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(2)){const e=this.parsePointList_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(2)){const e=this.parseLineStringTextList_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(2)){let e;if(e=2==this.token_.type?this.parsePointTextList_():this.parsePointList_(),this.match(3))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(2)){const e=this.parseLineStringTextList_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(2)){const e=this.parsePolygonTextList_();if(this.match(3))return e}throw new Error(this.formatErrorMessage_())}parsePoint_(){const e=[],t=this.layout_.length;for(let n=0;n<t;++n){const t=this.token_;if(!this.match(4))break;e.push(t.value)}if(e.length==t)return e;throw new Error(this.formatErrorMessage_())}parsePointList_(){const e=[this.parsePoint_()];for(;this.match(5);)e.push(this.parsePoint_());return e}parsePointTextList_(){const e=[this.parsePointText_()];for(;this.match(5);)e.push(this.parsePointText_());return e}parseLineStringTextList_(){const e=[this.parseLineStringText_()];for(;this.match(5);)e.push(this.parseLineStringText_());return e}parsePolygonTextList_(){const e=[this.parsePolygonText_()];for(;this.match(5);)e.push(this.parsePolygonText_());return e}isEmptyGeometry_(){const e=this.isTokenType(1)&&this.token_.value==Li;return e&&this.consume_(),e}formatErrorMessage_(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"}parseGeometry_(){const e=this.token_;if(this.match(1)){const t=e.value;this.layout_=this.parseGeometryLayout_();const n=this.isEmptyGeometry_();if("GEOMETRYCOLLECTION"==t){if(n)return new kr([]);const e=this.parseGeometryCollectionText_();return new kr(e)}const r=Ai[t];
3if(!r)throw new Error("Invalid geometry type: "+t);let i;if(n)i="POINT"==t?[NaN,NaN]:[];else switch(t){case"POINT":i=this.parsePointText_();break;case"LINESTRING":i=this.parseLineStringText_();break;case"POLYGON":i=this.parsePolygonText_();break;case"MULTIPOINT":i=this.parseMultiPointText_();break;case"MULTILINESTRING":i=this.parseMultiLineStringText_();break;case"MULTIPOLYGON":i=this.parseMultiPolygonText_()}return new r(i,this.layout_)}throw new Error(this.formatErrorMessage_())}}function ji(e){const t=e.getCoordinates();return 0===t.length?"":t.join(" ")}function Bi(e){const t=e.getCoordinates(),n=[];for(let e=0,r=t.length;e<r;++e)n.push(t[e].join(" "));return n.join(",")}function zi(e){const t=[],n=e.getLinearRings();for(let e=0,r=n.length;e<r;++e)t.push("("+Bi(n[e])+")");return t.join(",")}const Gi={Point:ji,LineString:Bi,Polygon:zi,MultiPoint:function(e){const t=[],n=e.getPoints();for(let e=0,r=n.length;e<r;++e)t.push("("+ji(n[e])+")");return t.join(",")},MultiLineString:function(e){const t=[],n=e.getLineStrings();for(let e=0,r=n.length;e<r;++e)t.push("("+Bi(n[e])+")");return t.join(",")},MultiPolygon:function(e){const t=[],n=e.getPolygons();for(let e=0,r=n.length;e<r;++e)t.push("("+zi(n[e])+")");return t.join(",")},GeometryCollection:function(e){const t=[],n=e.getGeometries();for(let e=0,r=n.length;e<r;++e)t.push(Ui(n[e]));return t.join(",")}};function Ui(e){const t=e.getType(),n=(0,Gi[t])(e);let r=Ni[t];if("function"==typeof e.getFlatCoordinates){const t=function(e){const t=e.getLayout();let n="";return"XYZ"!==t&&"XYZM"!==t||(n+="Z"),"XYM"!==t&&"XYZM"!==t||(n+="M"),n}(e);t.length>0&&(r+=" "+t)}return 0===n.length?r+" "+Li:r+"("+n+")"}const Wi=class extends Ri{constructor(e){super(),e=e||{},this.splitCollection_=void 0!==e.splitCollection&&e.splitCollection}parse_(e){const t=new Di(e);return new Fi(t).parse()}readFeatureFromText(e,t){const n=this.readGeometryFromText(e,t),r=new je;return r.setGeometry(n),r}readFeaturesFromText(e,t){let n=[];const r=this.readGeometryFromText(e,t);n=this.splitCollection_&&"GeometryCollection"==r.getType()?r.getGeometriesArray():[r];const i=[];for(let e=0,t=n.length;e<t;++e){const t=new je;t.setGeometry(n[e]),i.push(t)}return i}readGeometryFromText(e,t){return Pi(this.parse_(e),!1,t)}writeFeatureText(e,t){const n=e.getGeometry();return n?this.writeGeometryText(n,t):""}writeFeaturesText(e,t){if(1==e.length)return this.writeFeatureText(e[0],t);const n=[];for(let t=0,r=e.length;t<r;++t)n.push(e[t].getGeometry());const r=new kr(n);return this.writeGeometryText(r,t)}writeGeometryText(e,t){return Ui(Pi(e,!0,t))}};function qi(e,t){let n=!1;return"vlak"!==e&&"cirkel"!==e||(n=function(e){const t=(new Wi).readGeometry(e);if(t instanceof xi){const e=[];let n=0;for(const r of t.ends_){for(let i=n;i<r-2;i+=2){const n={x1:t.flatCoordinates[i],y1:t.flatCoordinates[i+1],x2:t.flatCoordinates[i+2],y2:t.flatCoordinates[i+3]};e.push(n)}n=r}return!!e.find((t=>function(e,t){return!!t.find((t=>{return function(e,t,n,r,i,o,s,a){const l=(n-e)*(a-o)-(s-i)*(r-t);if(0===l)return!1;{const u=((a-o)*(s-e)+(i-s)*(a-t))/l,c=((t-r)*(s-e)+(n-e)*(a-t))/l;return 0<u&&u<1&&0<c&&c<1}}(e.x1,e.y1,e.x2,e.y2,t.x1,t.y1,t.x2,t.y2)&&(r=t,!((n=e).x1===r.x2&&n.y1===r.y2||n.x2===r.x1&&n.y2===r.y1));var n,r}))}(t,e)))&&"intersect"}return!1}(t)),!1===n&&["vlak","cirkel","lijn"].includes(e)&&(n=function(e){const t=(new Wi).readGeometry(e);let n=!1;for(let e=0;e<t.flatCoordinates.length;e+=2)if(n=Vi(`POINT(${t.flatCoordinates[e]} ${t.flatCoordinates[e+1]})`),!1!==n)return n;return!1}(t)),"punt"===e&&(n=Vi(t)),n}function Vi(e){const t=(new Wi).readGeometry(e);if(t instanceof ai){const e=t.flatCoordinates[0],n=t.flatCoordinates[1];if(e<-7e3||e>3e5||n<289e3||n>629e3)return"coord"}return!1}function Yi(e){const t=(new Wi).readGeometry(e);return t instanceof ai?"X : "+parseFloat(parseFloat(t.flatCoordinates[0]).toFixed(3))+" Y : "+parseFloat(parseFloat(t.flatCoordinates[1]).toFixed(3)):""}let Hi=null;var $i=6378137,Ki=.0066943799901413165,Xi=484813681109536e-20,Zi=Math.PI/2,Ji=1e-10,Qi=.017453292519943295,eo=57.29577951308232,to=Math.PI/4,no=2*Math.PI,ro=3.14159265359,io={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const oo={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.01},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var so=/[\s_\-\/\(\)]/g;function ao(e,t){if(e[t])return e[t];for(var n,r=Object.keys(e),i=t.toLowerCase().replace(so,""),o=-1;++o<r.length;)if((n=r[o]).toLowerCase().replace(so,"")===i)return e[n]}function lo(e){var t,n,r,i={},o=e.split("+").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n=t.split("=");return n.push(!0),e[n[0].toLowerCase()]=n[1],e}),{}),s={proj:"projName",datum:"datumCode",rf:function(e){i.rf=parseFloat(e)},lat_0:function(e){i.lat0=e*Qi},lat_1:function(e){i.lat1=e*Qi},lat_2:function(e){i.lat2=e*Qi},lat_ts:function(e){i.lat_ts=e*Qi},lon_0:function(e){i.long0=e*Qi},lon_1:function(e){i.long1=e*Qi},lon_2:function(e){i.long2=e*Qi}
3,alpha:function(e){i.alpha=parseFloat(e)*Qi},gamma:function(e){i.rectified_grid_angle=parseFloat(e)},lonc:function(e){i.longc=e*Qi},x_0:function(e){i.x0=parseFloat(e)},y_0:function(e){i.y0=parseFloat(e)},k_0:function(e){i.k0=parseFloat(e)},k:function(e){i.k0=parseFloat(e)},a:function(e){i.a=parseFloat(e)},b:function(e){i.b=parseFloat(e)},r:function(e){i.a=i.b=parseFloat(e)},r_a:function(){i.R_A=!0},zone:function(e){i.zone=parseInt(e,10)},south:function(){i.utmSouth=!0},towgs84:function(e){i.datum_params=e.split(",").map((function(e){return parseFloat(e)}))},to_meter:function(e){i.to_meter=parseFloat(e)},units:function(e){i.units=e;var t=ao(oo,e);t&&(i.to_meter=t.to_meter)},from_greenwich:function(e){i.from_greenwich=e*Qi},pm:function(e){var t=ao(io,e);i.from_greenwich=(t||parseFloat(e))*Qi},nadgrids:function(e){"@null"===e?i.datumCode="none":i.nadgrids=e},axis:function(e){var t="ewnsud";3===e.length&&-1!==t.indexOf(e.substr(0,1))&&-1!==t.indexOf(e.substr(1,1))&&-1!==t.indexOf(e.substr(2,1))&&(i.axis=e)},approx:function(){i.approx=!0}};for(t in o)n=o[t],t in s?"function"==typeof(r=s[t])?r(n):i[r]=n:i[t]=n;return"string"==typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i}var uo=1,co=/\s/,ho=/[A-Za-z]/,fo=/[A-Za-z84_]/,po=/[,\]]/,go=/[\d\.E\-\+]/;function mo(e){if("string"!=typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=uo}function yo(e,t,n){Array.isArray(t)&&(n.unshift(t),t=null);var r=t?{}:e,i=n.reduce((function(e,t){return vo(t,e),e}),r);t&&(e[t]=i)}function vo(e,t){if(Array.isArray(e)){var n=e.shift();if("PARAMETER"===n&&(n=e.shift()),1===e.length)return Array.isArray(e[0])?(t[n]={},void vo(e[0],t[n])):void(t[n]=e[0]);if(e.length)if("TOWGS84"!==n){if("AXIS"===n)return n in t||(t[n]=[]),void t[n].push(e);var r;switch(Array.isArray(n)||(t[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[n]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&vo(e[2],t[n]));case"SPHEROID":case"ELLIPSOID":return t[n]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&vo(e[3],t[n]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return e[0]=["name",e[0]],void yo(t,n,e);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return e[0]=["name",e[0]],yo(t,n,e),void(t[n].type=n);default:for(r=-1;++r<e.length;)if(!Array.isArray(e[r]))return vo(e,t[n]);return yo(t,n,e)}}else t[n]=e;else t[n]=!0}else t[e]=!0}mo.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;co.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case uo:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},mo.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(po.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},mo.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=uo)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=uo,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},mo.prototype.number=function(e){if(!go.test(e)){if(po.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},mo.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},mo.prototype.keyword=function(e){if(fo.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=uo)}if(!po.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},mo.prototype.neutral=function(e){if(ho.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(go.test(e))return this.word=e,void(this.state=3);if(!po.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},mo.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};
3var _o=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function bo(e){return.017453292519943295*e}function wo(e){for(var t=Object.keys(e),n=0,r=t.length;n<r;++n){var i=t[n];-1!==_o.indexOf(i)&&xo(e[i]),"object"==typeof e[i]&&wo(e[i])}}function xo(e){if(e.AUTHORITY){var t=Object.keys(e.AUTHORITY)[0];t&&t in e.AUTHORITY&&(e.title=t+":"+e.AUTHORITY[t])}if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var n="",r=0,i=e.AXIS.length;r<i;++r){var o=[e.AXIS[r][0].toLowerCase(),e.AXIS[r][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?n+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?n+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?n+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(n+="w")}2===n.length&&(n+="u"),3===n.length&&(e.axis=n)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var s=e.GEOGCS;function a(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(s=e),s&&(s.DATUM?e.datumCode=s.DATUM.name.toLowerCase():e.datumCode=s.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_1949"===e.datumCode&&(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"belge_1972"===e.datumCode&&(e.datumCode="rnb72"),s.DATUM&&s.DATUM.SPHEROID&&(e.ellps=s.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=s.DATUM.SPHEROID.a,e.rf=parseFloat(s.DATUM.SPHEROID.rf,10)),s.DATUM&&s.DATUM.TOWGS84&&(e.datum_params=s.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",bo],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",bo],["x0","false_easting",a],["y0","false_northing",a],["long0","central_meridian",bo],["lat0","latitude_of_origin",bo],["lat0","standard_parallel_1",bo],["lat1","standard_parallel_1",bo],["lat2","standard_parallel_2",bo],["azimuth","Azimuth"],["alpha","azimuth",bo],["srsCode","name"]].forEach((function(t){return function(e,t){var n=t[0],r=t[1];!(n in e)&&r in e&&(e[n]=e[r],3===t.length&&(e[n]=t[2](e[n])))}(e,t)})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName?!e.lat_ts&&e.lat0&&"Polar_Stereographic"===e.projName&&(e.lat_ts=e.lat0,e.lat0=bo(e.lat0>0?90:-90)):(e.lat0=bo(e.lat1>0?90:-90),e.lat_ts=e.lat1)}function Eo(e){var t=new mo(e).output(),n=t[0],r={};return vo(t,r),wo(r),r[n]}function So(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?So[e]=lo(arguments[1]):So[e]=Eo(arguments[1]):So[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?So.apply(t,e):So(e)}));if("string"==typeof e){if(e in So)return So[e]}else"EPSG"in e?So["EPSG:"+e.EPSG]=e:"ESRI"in e?So["ESRI:"+e.ESRI]=e:"IAU2000"in e?So["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var t=1;t<=60;++t)e("EPSG:"+(32600+t),"+proj=utm +zone="+t+" +datum=WGS84 +units=m"),e("EPSG:"+(32700+t),"+proj=utm +zone="+t+" +south +datum=WGS84 +units=m");e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(So);const Co=So;
3var Mo=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"],ko=["3857","900913","3785","102113"];function To(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)void 0!==(n=t[r])&&(e[r]=n);return e}function Po(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)}function Oo(e){return e<0?-1:1}function Io(e){return Math.abs(e)<=ro?e:e-Oo(e)*no}function Ro(e,t,n){var r=e*n,i=.5*e;return r=Math.pow((1-r)/(1+r),i),Math.tan(.5*(Zi-t))/r}function Ao(e,t){for(var n,r,i=.5*e,o=Zi-2*Math.atan(t),s=0;s<=15;s++)if(n=e*Math.sin(o),o+=r=Zi-2*Math.atan(t*Math.pow((1-n)/(1+n),i))-o,Math.abs(r)<=1e-10)return o;return-9999}function Lo(e){return e}var No=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Po(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,n,r=e.x,i=e.y;if(i*eo>90&&i*eo<-90&&r*eo>180&&r*eo<-180)return null;if(Math.abs(Math.abs(i)-Zi)<=Ji)return null;if(this.sphere)t=this.x0+this.a*this.k0*Io(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(to+.5*i));else{var o=Math.sin(i),s=Ro(this.e,i,o);t=this.x0+this.a*this.k0*Io(r-this.long0),n=this.y0-this.a*this.k0*Math.log(s)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r=e.x-this.x0,i=e.y-this.y0;if(this.sphere)n=Zi-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(n=Ao(this.e,o)))return null}return t=Io(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:Lo,inverse:Lo,names:["longlat","identity"]}],Do={},Fo=[];function jo(e,t){var n=Fo.length;return e.names?(Fo[n]=e,e.names.forEach((function(e){Do[e.toLowerCase()]=n})),this):(console.log(t),!0)}const Bo={start:function(){No.forEach(jo)},add:jo,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==Do[t]&&Fo[Do[t]]?Fo[Do[t]]:void 0}};var zo={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},Go=zo.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};zo.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var Uo={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}};for(var Wo in Uo){var qo=Uo[Wo];Uo[qo.datumName]=qo}const Vo=Uo;var Yo={};function Ho(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:Yo[e]||null,isNull:!1}}
3function $o(e){return e/3600*Math.PI/180}function Ko(e,t,n){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,n)))}function Xo(e){return e.map((function(e){return[$o(e.longitudeShift),$o(e.latitudeShift)]}))}function Zo(e,t,n){return{name:Ko(e,t+8,t+16).trim(),parent:Ko(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,n),upperLatitude:e.getFloat64(t+88,n),lowerLongitude:e.getFloat64(t+104,n),upperLongitude:e.getFloat64(t+120,n),latitudeInterval:e.getFloat64(t+136,n),longitudeInterval:e.getFloat64(t+152,n),gridNodeCount:e.getInt32(t+168,n)}}function Jo(e,t,n,r){for(var i=t+176,o=[],s=0;s<n.gridNodeCount;s++){var a={latitudeShift:e.getFloat32(i+16*s,r),longitudeShift:e.getFloat32(i+16*s+4,r),latitudeAccuracy:e.getFloat32(i+16*s+8,r),longitudeAccuracy:e.getFloat32(i+16*s+12,r)};o.push(a)}return o}function Qo(e,t){if(!(this instanceof Qo))return new Qo(e);t=t||function(e){if(e)throw e};var n=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in Co}(e))return Co[e];if(function(e){return Mo.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=Eo(e);if(function(e){var t=ao(e,"authority");if(t){var n=ao(t,"epsg");return n&&ko.indexOf(n)>-1}}(t))return Co["EPSG:3857"];var n=function(e){var t=ao(e,"extension");if(t)return ao(t,"proj4")}(t);return n?lo(n):t}return function(e){return"+"===e[0]}(e)?lo(e):void 0}(e);if("object"==typeof n){var r=Qo.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var i=ao(Vo,n.datumCode);i&&(n.datum_params=n.datum_params||(i.towgs84?i.towgs84.split(","):null),n.ellps=i.ellipse,n.datumName=i.datumName?i.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var o,s,a,l,u,c,h=function(e,t,n,r,i){if(!e){var o=ao(zo,r);o||(o=Go),e=o.a,t=o.b,n=o.rf}return n&&!t&&(t=(1-1/n)*e),(0===n||Math.abs(e-t)<Ji)&&(i=!0,t=e),{a:e,b:t,rf:n,sphere:i}}(n.a,n.b,n.rf,n.ellps,n.sphere),d=(o=h.a,s=h.b,h.rf,u=((a=o*o)-(l=s*s))/a,c=0,n.R_A?(a=(o*=1-u*(.16666666666666666+u*(.04722222222222222+.022156084656084655*u)))*o,u=0):c=Math.sqrt(u),{es:u,e:c,ep2:(a-l)/l}),f=function(e){return void 0===e?null:e.split(",").map(Ho)}(n.nadgrids),p=n.datum||function(e,t,n,r,i,o,s){var a={};return a.datum_type=void 0===e||"none"===e?5:4,t&&(a.datum_params=t.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=1),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=2,a.datum_params[3]*=Xi,a.datum_params[4]*=Xi,a.datum_params[5]*=Xi,a.datum_params[6]=a.datum_params[6]/1e6+1))),s&&(a.datum_type=3,a.grids=s),a.a=n,a.b=r,a.es=i,a.ep2=o,a}(n.datumCode,n.datum_params,h.a,h.b,d.es,d.ep2,f);To(this,n),To(this,r),this.a=h.a,this.b=h.b,this.rf=h.rf,this.sphere=h.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=p,this.init(),t(null,this)}else t("Could not get projection name from: "+e)}else t("Could not parse to valid json: "+e)}Qo.projections=Bo,Qo.projections.start();const es=Qo;function ts(e,t,n){var r,i,o,s,a=e.x,l=e.y,u=e.z?e.z:0;if(l<-Zi&&l>-1.001*Zi)l=-Zi;else if(l>Zi&&l<1.001*Zi)l=Zi;else{if(l<-Zi)return{x:-1/0,y:-1/0,z:e.z};if(l>Zi)return{x:1/0,y:1/0,z:e.z}}return a>Math.PI&&(a-=2*Math.PI),i=Math.sin(l),s=Math.cos(l),o=i*i,{x:((r=n/Math.sqrt(1-t*o))+u)*s*Math.cos(a),y:(r+u)*s*Math.sin(a),z:(r*(1-t)+u)*i}}function ns(e,t,n,r){var i,o,s,a,l,u,c,h,d,f,p,g,m,y,v,_=e.x,b=e.y,w=e.z?e.z:0;if(i=Math.sqrt(_*_+b*b),o=Math.sqrt(_*_+b*b+w*w),i/n<1e-12){if(y=0,o/n<1e-12)return v=-r,{x:e.x,y:e.y,z:e.z}}else y=Math.atan2(b,_);s=w/o,h=(a=i/o)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*a*a)),d=s*l,m=0;do{m++,u=t*(c=n/Math.sqrt(1-t*d*d))/(c+(v=i*h+w*d-c*(1-t*d*d))),g=(p=s*(l=1/Math.sqrt(1-u*(2-u)*a*a)))*h-(f=a*(1-u)*l)*d,h=f,d=p}while(g*g>1e-24&&m<30);return{x:y,y:Math.atan(p/Math.abs(f)),z:v}}function rs(e){return 1===e||2===e}function is(e,t,n){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;var r={x:-n.x,y:n.y},i={x:Number.NaN,y:Number.NaN},o=[];e:for(var s=0;s<e.grids.length;s++){var a=e.grids[s];if(o.push(a.name),a.isNull){i=r;break}if(a.mandatory,null!==a.grid)for(var l=a.grid.subgrids,u=0,c=l.length;u<c;u++){var h=l[u],d=(Math.abs(h.del[1])+Math.abs(h.del[0]))/1e4,f=h.ll[0]-d,p=h.ll[1]-d,g=h.ll[0]+(h.lim[0]-1)*h.del[0]+d,m=h.ll[1]+(h.lim[1]-1)*h.del[1]+d;if(!(p>r.y||f>r.x||m<r.y||g<r.x||(i=os(r,t,h),isNaN(i.x))))break e}else if(a.mandatory)return console.log("Unable to find mandatory grid '"+a.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-r.x*eo+" "+r.y*eo+" tried: '"+o+"'"),-1):(n.x=-i.x,n.y=i.y,0)}function os(e,t,n){var r={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return r;var i={x:e.x,y:e.y};i.x-=n.ll[0],i.y-=n.ll[1],i.x=Io(i.x-Math.PI)+Math.PI;var o=ss(i,n);if(t){if(isNaN(o.x))return r;o.x=i.x-o.x,o.y=i.y-o.y;var s,a,l=9;do{if(a=ss(o,n),isNaN(a.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}s={x:i.x-(a.x+o.x),y:i.y-(a.y+o.y)},o.x+=s.x,o.y+=s.y}while(l--&&Math.abs(s.x)>1e-12&&Math.abs(s.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=Io(o.x+n.ll[0]),r.y=o.y+n.ll[1]}else isNaN(o.x)||(r.x=e.x+o.x,r.y=e.y+o.y);return r}function ss(e,t){var n,r={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(r.x),o=Math.floor(r.y),s=r.x-1*i,a=r.y-1*o,l={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return l;if(o<0||o>=t.lim[1])return l;n=o*t.lim[0]+i;var u=t.cvs[n][0],c=t.cvs[n][1];n++;var h=t.cvs[n][0],d=t.cvs[n][1];n+=t.lim[0];var f=t.cvs[n][0],p=t.cvs[n][1];n--;var g=t.cvs[n][0],m=t.cvs[n][1],y=s*a,v=s*(1-a),_=(1-s)*(1-a),b=(1-s)*a;return l.x=_*u+v*h+b*g+y*f,l.y=_*c+v*d+b*m+y*p,l}function as(e,t,n){var r,i,o,s=n.x,a=n.y,l=n.z||0,u={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==n.z)switch(0===o?(r=s,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(r=a,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(r=l,i="z"),e.axis[o]){case"e":case"n":u[i]=r;break;case"w":case"s":u[i]=-r;break;case"u":void 0!==n[i]&&(u.z=r);break;case"d":void 0!==n[i]&&(u.z=-r);break;default:return null}return u}function ls(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function us(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function cs(e,t,n,r){var i,o=void 0!==(n=Array.isArray(n)?ls(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(e){us(e.x),us(e.y)}(n),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type||3===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(n=cs(e,i=new es("WGS84"),n,r),e=i),r&&"enu"!==e.axis&&(n=as(e,!1,n)),"longlat"===e.projName)n={x:n.x*Qi,y:n.y*Qi,z:n.z||0};else if(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter,z:n.z||0}),!(n=e.inverse(n)))return;if(e.from_greenwich&&(n.x+=e.from_greenwich),n=function(e,t,n){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return n;if(5===e.datum_type||5===t.datum_type)return n;var r=e.a,i=e.es;if(3===e.datum_type){if(0!==is(e,!1,n))return;r=$i,i=Ki}var o=t.a,s=t.b,a=t.es;return 3===t.datum_type&&(o=$i,s=6356752.314,a=Ki),i!==a||r!==o||rs(e.datum_type)||rs(t.datum_type)?(n=ts(n,i,r),rs(e.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(2===t){var r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],u=n[6];return{x:u*(e.x-l*e.y+a*e.z)+r,y:u*(l*e.x+e.y-s*e.z)+i,z:u*(-a*e.x+s*e.y+e.z)+o}}}(n,e.datum_type,e.datum_params)),rs(t.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(2===t){var r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],u=n[6],c=(e.x-r)/u,h=(e.y-i)/u,d=(e.z-o)/u;return{x:c+l*h-a*d,y:-l*c+h+s*d,z:a*c-s*h+d}}}(n,t.datum_type,t.datum_params)),n=ns(n,a,o,s),3!==t.datum_type||0===is(t,!0,n)?n:void 0):n}(e.datum,t.datum,n))return t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y,z:n.z||0}),"longlat"===t.projName?n={x:n.x*eo,y:n.y*eo,z:n.z||0}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter,z:n.z||0})),r&&"enu"!==t.axis?as(t,!0,n):(n&&!o&&delete n.z,n)}var hs=es("WGS84");function ds(e,t,n,r){var i,o,s;return Array.isArray(n)?(i=cs(e,t,n,r)||{x:NaN,y:NaN},n.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(n.slice(3)):[i.x,i.y,n[2]].concat(n.slice(3)):[i.x,i.y].concat(n.slice(2)):[i.x,i.y]):(o=cs(e,t,n,r),2===(s=Object.keys(n)).length||s.forEac
3h((function(r){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=n[r]})),o)}function fs(e){return e instanceof es?e:e.oProj?e.oProj:es(e)}const ps=function(e,t,n){e=fs(e);var r,i=!1;return void 0===t?(t=e,e=hs,i=!0):(void 0!==t.x||Array.isArray(t))&&(n=t,t=e,e=hs,i=!0),t=fs(t),n?ds(e,t,n):(r={forward:function(n,r){return ds(e,t,n,r)},inverse:function(n,r){return ds(t,e,n,r)}},i&&(r.oProj=t),r)};var gs="AJSAJS",ms="AFAFAF",ys=65,vs=73,_s=79;const bs={forward:ws,inverse:function(e){var t=Cs(ks(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]},toPoint:xs};function ws(e,t){return t=t||5,function(e,t){var n,r,i,o,s,a,l,u,c,h,d,f="00000"+e.easting,p="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(c=e.easting,h=e.northing,d=Ms(e.zoneNumber),n=Math.floor(c/1e5),r=Math.floor(h/1e5)%20,o=gs.charCodeAt(i=d-1),s=ms.charCodeAt(i),u=!1,(a=o+n-1)>90&&(a=a-90+ys-1,u=!0),(a===vs||o<vs&&a>vs||(a>vs||o<vs)&&u)&&a++,(a===_s||o<_s&&a>_s||(a>_s||o<_s)&&u)&&++a===vs&&a++,a>90&&(a=a-90+ys-1),(l=s+r)>86?(l=l-86+ys-1,u=!0):u=!1,(l===vs||s<vs&&l>vs||(l>vs||s<vs)&&u)&&l++,(l===_s||s<_s&&l>_s||(l>_s||s<_s)&&u)&&++l===vs&&l++,l>86&&(l=l-86+ys-1),String.fromCharCode(a)+String.fromCharCode(l))+f.substr(f.length-5,t)+p.substr(p.length-5,t)}(function(e){var t,n,r,i,o,s,a,l=e.lat,u=e.lon,c=6378137,h=.00669438,d=.9996,f=Es(l),p=Es(u);a=Math.floor((u+180)/6)+1,180===u&&(a=60),l>=56&&l<64&&u>=3&&u<12&&(a=32),l>=72&&l<84&&(u>=0&&u<9?a=31:u>=9&&u<21?a=33:u>=21&&u<33?a=35:u>=33&&u<42&&(a=37)),s=Es(6*(a-1)-180+3),t=.006739496752268451,n=c/Math.sqrt(1-h*Math.sin(f)*Math.sin(f)),r=Math.tan(f)*Math.tan(f),i=t*Math.cos(f)*Math.cos(f);var g,m,y=d*n*((o=Math.cos(f)*(p-s))+(1-r+i)*o*o*o/6+(5-18*r+r*r+72*i-58*t)*o*o*o*o*o
3/120)+5e5,v=d*(c*(.9983242984503243*f-.002514607064228144*Math.sin(2*f)+2639046602129982e-21*Math.sin(4*f)-3.418046101696858e-9*Math.sin(6*f))+n*Math.tan(f)*(o*o/2+(5-r+9*i+4*i*i)*o*o*o*o/24+(61-58*r+r*r+600*i-2.2240339282485886)*o*o*o*o*o*o/720));return l<0&&(v+=1e7),{northing:Math.round(v),easting:Math.round(y),zoneNumber:a,zoneLetter:(g=l,m="Z",84>=g&&g>=72?m="X":72>g&&g>=64?m="W":64>g&&g>=56?m="V":56>g&&g>=48?m="U":48>g&&g>=40?m="T":40>g&&g>=32?m="S":32>g&&g>=24?m="R":24>g&&g>=16?m="Q":16>g&&g>=8?m="P":8>g&&g>=0?m="N":0>g&&g>=-8?m="M":-8>g&&g>=-16?m="L":-16>g&&g>=-24?m="K":-24>g&&g>=-32?m="J":-32>g&&g>=-40?m="H":-40>g&&g>=-48?m="G":-48>g&&g>=-56?m="F":-56>g&&g>=-64?m="E":-64>g&&g>=-72?m="D":-72>g&&g>=-80&&(m="C"),m)}}({lat:e[1],lon:e[0]}),t)}function xs(e){var t=Cs(ks(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Es(e){return e*(Math.PI/180)}function Ss(e){return e/Math.PI*180}function Cs(e){var t=e.northing,n=e.easting,r=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,s,a,l,u,c,h,d,f,p=.9996,g=6378137,m=.00669438,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),v=n-5e5,_=t;r<"N"&&(_-=1e7),h=6*(i-1)-180+3,o=.006739496752268451,f=(d=_/p/6367449.145945056)+(3*y/2-27*y*y*y/32)*Math.sin(2*d)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*d)+151*y*y*y/96*Math.sin(6*d),s=g/Math.sqrt(1-m*Math.sin(f)*Math.sin(f)),a=Math.tan(f)*Math.tan(f),l=o*Math.cos(f)*Math.cos(f),u=.99330562*g/Math.pow(1-m*Math.sin(f)*Math.sin(f),1.5),c=v/(s*p);var b=f-s*Math.tan(f)/u*(c*c/2-(5+3*a+10*l-4*l*l-9*o)*c*c*c*c/24+(61+90*a+298*l+45*a*a-1.6983531815716497-3*l*l)*c*c*c*c*c*c/720);b=Ss(b);var w,x=(c-(1+2*a+l)*c*c*c/6+(5-2*l+28*a-3*l*l+8*o+24*a*a)*c*c*c*c*c/120)/Math.cos(f);if(x=h+Ss(x),e.accuracy){var E=Cs({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});w={top:E.lat,right:E.lon,bottom:b,left:x}}else w={lat:b,lon:x};return w}function Ms(e){var t=e%6;return 0===t&&(t=6),t}function ks(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,r=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var s=parseInt(i,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+e;var a=e.charAt(o++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+e;r=e.substring(o,o+=2);for(var l=Ms(s),u=function(e,t){for(var n=gs.charCodeAt(t-1),r=1e5,i=!1;n!==e.charCodeAt(0);){if(++n===vs&&n++,n===_s&&n++,n>90){if(i)throw"Bad character: "+e;n=ys,i=!0}r+=1e5}return r}(r.charAt(0),l),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var n=ms.charCodeAt(t-1),r=0,i=!1;n!==e.charCodeAt(0);){if(++n===vs&&n++,n===_s&&n++,n>86){if(i)throw"Bad character: "+e;n=ys,i=!0}r+=1e5}return r}(r.charAt(1),l);c<Ts(a);)c+=2e6;var h=n-o;if(h%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var d,f,p,g=h/2,m=0,y=0;return g>0&&(d=1e5/Math.pow(10,g),f=e.substring(o,o+g),m=parseFloat(f)*d,p=e.substring(o+g),y=parseFloat(p)*d),{easting:m+u,northing:y+c,zoneLetter:a,zoneNumber:s,accuracy:d}}function Ts(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function Ps(e,t,n){if(!(this instanceof Ps))return new Ps(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ps.fromMGRS=function(e){return new Ps(xs(e))},Ps.prototype.toMGRS=function(e){return ws([this.x,this.y],e)};const Os=Ps;var Is=.046875,Rs=.01953125,As=.01068115234375;function Ls(e){var t=[];t[0]=1-e*(.25+e*(Is+e*(Rs+e*As))),t[1]=e*(.75-e*(Is+e*(Rs+e*As)));var n=e*e;return t[2]=n*(.46875-e*(.013020833333333334+.007120768229166667*e)),n*=e,t[3]=n*(.3645833333333333-.005696614583333333*e),t[4]=n*e*.3076171875,t}function Ns(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))}function Ds(e,t,n){for(var r=1/(1-t),i=e,o=20;o;--o){var s=Math.sin(i),a=1-t*s*s;if(i-=a=(Ns(i,s,Math.cos(i),n)-e)*(a*Math.sqrt(a))*r,Math.abs(a)<Ji)return i}return i}const Fs={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Ls(this.es),this.ml0=Ns(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,n,r,i=e.x,o=e.y,s=Io(i-this.long0),a=Math.sin(o),l=Math.cos(o);if(this.es){var u=l*s,c=Math.pow(u,2),h=this.ep2*Math.pow(l,2),d=Math.pow(h,2),f=Math.abs(l)>Ji?Math.tan(o):0,p=Math.pow(f,2),g=Math.pow(p,2);t=1-this.es*Math.pow(a,2),u/=Math.sqrt(t);var m=Ns(o,a,l,this.en);n=this.a*(this.k0*u*(1+c/6*(1-p+h+c/20*(5-18*p+g+14*h-58*p*h+c/42*(61+179*g-g*p-479*
3p)))))+this.x0,r=this.a*(this.k0*(m-this.ml0+a*s*u/2*(1+c/12*(5-p+9*h+4*d+c/30*(61+g-58*p+270*h-330*p*h+c/56*(1385+543*g-g*p-3111*p))))))+this.y0}else{var y=l*Math.sin(s);if(Math.abs(Math.abs(y)-1)<Ji)return 93;if(n=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,r=l*Math.cos(s)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(r))>=1){if(y-1>Ji)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e},inverse:function(e){var t,n,r,i,o=(e.x-this.x0)*(1/this.a),s=(e.y-this.y0)*(1/this.a);if(this.es)if(n=Ds(t=this.ml0+s/this.k0,this.es,this.en),Math.abs(n)<Zi){var a=Math.sin(n),l=Math.cos(n),u=Math.abs(l)>Ji?Math.tan(n):0,c=this.ep2*Math.pow(l,2),h=Math.pow(c,2),d=Math.pow(u,2),f=Math.pow(d,2);t=1-this.es*Math.pow(a,2);var p=o*Math.sqrt(t)/this.k0,g=Math.pow(p,2);r=n-(t*=u)*g/(1-this.es)*.5*(1-g/12*(5+3*d-9*c*d+c-4*h-g/30*(61+90*d-252*c*d+45*f+46*c-g/56*(1385+3633*d+4095*f+1574*f*d)))),i=Io(this.long0+p*(1-g/6*(1+2*d+c-g/20*(5+28*d+24*f+8*c*d+6*c-g/42*(61+662*d+1320*f+720*f*d))))/l)}else r=Zi*Oo(s),i=0;else{var m=Math.exp(o/this.k0),y=.5*(m-1/m),v=this.lat0+s/this.k0,_=
3Math.cos(v);t=Math.sqrt((1-Math.pow(_,2))/(1+Math.pow(y,2))),r=Math.asin(t),s<0&&(r=-r),i=0===y&&0===_?0:Io(Math.atan2(y,_)+this.long0)}return e.x=i,e.y=r,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function js(e){var t=Math.exp(e);return(t-1/t)/2}function Bs(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))}function zs(e,t){for(var n,r=2*Math.cos(2*t),i=e.length-1,o=e[i],s=0;--i>=0;)n=r*o-s+e[i],s=o,o=n;return t+n*Math.sin(2*t)}function Gs(e,t,n){for(var r,i,o=Math.sin(t),s=Math.cos(t),a=js(n),l=function(e){var t=Math.exp(e);return(t+1/t)/2}(n),u=2*s*l,c=-2*o*a,h=e.length-1,d=e[h],f=0,p=0,g=0;--h>=0;)r=p,i=f,d=u*(p=d)-r-c*(f=g)+e[h],g=c*p-i+u*f;return[(u=o*l)*d-(c=s*a)*g,u*g+c*d]}const Us={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Fs.init.apply(this),this.forward=Fs.forward,this.inverse=Fs.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=zs(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(e,t){for(var n,r=2*Math.cos(t),i=e.length-1,o=e[i],s=0;--i>=0;)n=r*o-s+e[i],s=o,o=n;return Math.sin(t)*n}(this.gtu,2*r))},forward:function(e){var t=Io(e.x-this.long0),n=e.y;n=zs(this.cbg,n);var r=Math.sin(n),i=Math.cos(n),o=Math.sin(t),s=Math.cos(t);n=Math.atan2(r,s*i),t=Math.atan2(o*i,Bs(r,i*s)),t=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}(t*(1+t/(Bs(1,t)+1))),e<0?-t:t}(Math.tan(t));var a,l,u=Gs(this.gtu,2*n,2*t);return n+=u[0],t+=u[1],Math.abs(t)<=2.623395162778?(a=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,l=1/0),e.x=a,e.y=l,e},inverse:function(e){var t,n,r=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var o=Gs(this.utg,2*i,2*r);i+=o[0],r+=o[1],r=Math.atan(js(r));var s=Math.sin(i),a=Math.cos(i),l=Math.sin(r),u=Math.cos(r);i=Math.atan2(s*u,Bs(l,u*a)),t=Io((r=Math.atan2(l,u*a))+this.long0),n=zs(this.cgb,i)}else t=1/0,n=1/0;return e.x=t,e.y=n,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]},Ws={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(Io(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*Qi,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Us.init.apply(this),this.forward=Us.forward,this.inverse=Us.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function qs(e,t){return Math.pow((1-e)/(1+e),t)}const Vs={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+to)/(Math.pow(Math.tan(.5*this.lat0+to),this.C)*qs(this.e*e,this.ratexp))},forward:function(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+to),this.C)*qs(this.e*Math.sin(n),this.ratexp))-Zi,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+to)/this.K,1/this.C),i=20;i>0&&(n=2*Math.atan(r*qs(this.e*Math.sin(e.y),-.5*this.e))-Zi,!(Math.abs(n-e.y)<1e-14));--i)e.y=n;return i?(e.x=t,e.y=n,e):null},names:["gauss"]},Ys={init:function(){Vs.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,n,r,i;return e.x=Io(e.x-this.long0),Vs.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=i*n*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,n,r,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=Bs(e.x,e.y)){var s=2*Math.atan2(o,this.R2);t=Math.sin(s),n=Math.cos(s),i=Math.asin(n*this.sinc0+e.y*t*this.cosc0/o),r=Math.atan2(e.x*t,o*this.cosc0*n-e.y*this.sinc0*t)}else i=this.phic0,r=0;return e.x=r,e.y=i,Vs.inverse.apply(this,[e]),e.x=Io(e.x+this.long0),e}
3,names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},Hs={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=Ji&&(this.k0=.5*(1+Oo(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=Ji&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=Ji&&Math.abs(Math.cos(this.lat_ts))>Ji&&(this.k0=.5*this.cons*Po(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Ro(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Po(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-Zi,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,n,r,i,o,s,a=e.x,l=e.y,u=Math.sin(l),c=Math.cos(l),h=Io(a-this.long0);return Math.abs(Math.abs(a-this.long0)-Math.PI)<=Ji&&Math.abs(l+this.lat0)<=Ji?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*u+this.coslat0*c*Math.cos(h)),e.x=this.a*t*c*Math.sin(h)+this.x0,e.y=this.a*t*(this.coslat0*u-this.sinlat0*c*Math.cos(h))+this.y0,e):(n=2*Math.atan(this.ssfn_(l,u,this.e))-Zi,i=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=Ji?(o=Ro(this.e,l*this.con,this.con*u),s=2*this.a*this.k0*o/this.cons,e.x=this.x0+s*Math.sin(a-this.long0),e.y=this.y0-this.con*s*Math.cos(a-this.long0),e):(Math.abs(this.sinlat0)<Ji?(t=2*this.a*this.k0/(1+i*Math.cos(h)),e.y=t*r):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*i*Math.cos(h))),e.y=t*(this.cosX0*r-this.sinX0*i*Math.cos(h))+this.y0),e.x=t*i*Math.sin(h)+this.x0,e))},inverse:function(e){var t,n,r,i,o;e.x-=this.x0,e.y-=this.y0;var s=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var a=2*Math.atan(s/(2*this.a*this.k0));return t=this.long0,n=this.lat0,s<=Ji?(e.x=t,e.y=n,e):(n=Math.asin(Math.cos(a)*this.sinlat0+e.y*Math.sin(a)*this.coslat0/s),t=Math.abs(this.coslat0)<Ji?this.lat0>0?Io(this.long0+Math.atan2(e.x,-1*e.y)):Io(this.long0+Math.atan2(e.x,e.y)):Io(this.long0+Math.atan2(e.x*Math.sin(a),s*this.coslat0*Math.cos(a)-e.y*this.sinlat0*Math.sin(a))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=Ji){if(s<=Ji)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=s*this.cons/(2*this.a*this.k0),n=this.con*Ao(this.e,r),t=this.con*Io(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,s<=Ji?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/s),t=Io(this.long0+Math.atan2(e.x*Math.sin(i),s*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),n=-1*Ao(this.e,Math.tan(.5*(Zi+o)));return e.x=t,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"],ssfn_:function(e,t,n){return t*=n,Math.tan(.5*(Zi+e))*Math.pow((1-t)/(1+t),.5*n)}},$s={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=1/this.rf,i=2*r-Math.pow(r,2),o=this.e=Math.sqrt(i);this.R=this.k0*n*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+o*t)/(1-o*t));this.K=s-this.alpha*a+this.alpha*o/2*l},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,i=2*(Math.atan(Math.exp(r))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),s=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),a=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,e.x=this.R*s+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,i=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(r)),s=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(i))),a=this.lambda0+s/this.alpha,l=0,u=o,c=-1e3,h=0;Math.abs(u-c)>1e-7;){if(++h>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=a,e.y=u,e},names:["somerc"]};var Ks=1e-7;const Xs={init:function(){var e,t,n,r,i,o,s,a,l,u,c,h,d,f=0,p=0,g=0,m=0,y=0,v=0,_=0;this.no_off=(d="object"==typeof(h=this).PROJECTION?Object.keys(h.PROJECTION)[0]:h.PROJECTION,"no_uoff"in h||"no_off"in h||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(d)),this.no_rot="no_rot"in this;var b=!1;"alpha"in this&&(b=!0);var w=!1;if("rectified_grid_angle"in this&&(w=!0),b&&(_=this.alpha),w&&(f=this.rectified_grid_angle*Qi),b||w)p=this.longc;else if(g=this.long1,y=this.lat1,m=this.long2,v=this.lat2,Math.abs(y-v)<=Ks||(e=Math.abs(y))<=Ks||Math.abs(e-Zi)<=Ks||Math.abs(Math.abs(this.lat0)-Zi)<=Ks||Math.abs(Math.abs(v)-Zi)<=Ks)throw new Error;var x=1-this.es;t=Math.sqrt(x),Math.abs(this.lat0)>Ji?(a=Math.sin(this.lat0),n=Math.cos(this.lat0),e=1-this.es*a*a,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/x),this.A=this.B*this.k0*t/e,(i=(r=this.B*t/(n*Math.sqrt(e)))*r-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=r,this.E*=Math.pow(Ro(this.e,this.lat0,a),this.B)):(this.B=1/t,this.A=this.k0,this.E=r=i=1),b||w?(b?(c=Math.asin(Math.sin(_)/r),w||(f=_)):(c=f,_=Math.asin(r*Math.sin(c))),this.lam0=p-Math.asin(.5*(i-1/i)*M
3ath.tan(c))/this.B):(o=Math.pow(Ro(this.e,y,Math.sin(y)),this.B),s=Math.pow(Ro(this.e,v,Math.sin(v)),this.B),i=this.E/o,l=(s-o)/(s+o),u=((u=this.E*this.E)-s*o)/(u+s*o),(e=g-m)<-Math.pi?m-=no:e>Math.pi&&(m+=no),this.lam0=Io(.5*(g+m)-Math.atan(u*Math.tan(.5*this.B*(g-m))/l)/this.B),c=Math.atan(2*Math.sin(this.B*Io(g-this.lam0))/(i-1/i)),f=_=Math.asin(r*Math.sin(c))),this.singam=Math.sin(c),this.cosgam=Math.cos(c),this.sinrot=Math.sin(f),this.cosrot=Math.cos(f),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(r*r-1)/Math.cos(_))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*c,this.v_pole_n=this.ArB*Math.log(Math.tan(to-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(to+i))},forward:function(e){var t,n,r,i,o,s,a,l,u={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-Zi)>Ji){if(t=.5*((o=this.E/Math.pow(Ro(this.e,e.y,Math.sin(e.y)),this.B))-(s=1/o)),n=.5*(o+s),i=Math.sin(this.B*e.x),r=(t*this.singam-i*this.cosgam)/n,Math.abs(Math.abs(r)-1)<Ji)throw new Error;l=.5*this.ArB*Math.log((1-r)/(1+r)),s=Math.cos(this.B*e.x),a=Math.abs(s)<Ks?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+i*this.singam,s)}else l=e.y>0?this.v_pole_n:this.v_pole_s,a=this.ArB*e.y;return this.no_rot?(u.x=a,u.y=l):(a-=this.u_0,u.x=l*this.cosrot+a*this.sinrot,u.y=a*this.cosrot-l*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(e){var t,n,r,i,o,s,a,l={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(n=e.y,t=e.x):(n=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((r=Math.exp(-this.BrA*n))-1/r),o=.5*(r+1/r),a=((s=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(a)-1)<Ji)l.x=0,l.y=a<0?-Zi:Zi;else{if(l.y=this.E/Math.sqrt((1+a)/(1-a)),l.y=Ao(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(i*this.cosgam-s*this.singam,Math.cos(this.BrA*t))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},Zs={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<Ji)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),n=Math.cos(this.lat1),r=Po(this.e,t,n),i=Ro(this.e,this.lat1,t),o=Math.sin(this.lat2),s=Math.cos(this.lat2),a=Po(this.e,o,s),l=Ro(this.e,this.lat2,o),u=Ro(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>Ji?this.ns=Math.log(r/a)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=Ji&&(n=Oo(n)*(Zi-2e-10));var r,i,o=Math.abs(Math.abs(n)-Zi);if(o>Ji)r=Ro(this.e,n,Math.sin(n)),i=this.a*this.f0*Math.pow(r,this.ns);else{if((o=n*this.ns)<=0)return null;i=0}var s=this.ns*Io(t-this.long0);return e.x=this.k0*(i*Math.sin(s))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(s))+this.y0,e},inverse:function(e){var t,n,r,i,o,s=(e.x-this.x0)/this.k0,a=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(s*s+a*a),n=1):(t=-Math.sqrt(s*s+a*a),n=-1);var l=0;if(0!==t&&(l=Math.atan2(n*s,n*a)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),-9999===(i=Ao(this.e,r)))return null}else i=-Zi;return o=Io(l/this.ns+this.long0),e.x=o,e.y=i,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},Js={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,n,r,i,o,s,a,l=e.x,u=e.y,c=Io(l-this.long0);return t=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/t)-this.s45),r=-c*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),o=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(i)),s=this.n
3*o,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=a*Math.cos(s)/1,e.x=a*Math.sin(s)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,n,r,i,o,s,a,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),n=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(t)),e.x=this.long0-n/this.alfa,s=t,a=0;var u=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-e.y)<1e-10&&(a=1),s=e.y,u+=1}while(0===a&&u<15);return u>=15?null:e},names:["Krovak","krovak"]};function Qs(e,t,n,r,i){return e*i-t*Math.sin(2*i)+n*Math.sin(4*i)-r*Math.sin(6*i)}function ea(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function ta(e){return.375*e*(1+.25*e*(1+.46875*e))}function na(e){return.05859375*e*e*(1+.75*e)}function ra(e){return e*e*e*(35/3072)}function ia(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)}function oa(e){return Math.abs(e)<Zi?e:e-Oo(e)*Math.PI}function sa(e,t,n,r,i){var o,s;o=e/t;for(var a=0;a<15;a++)if(o+=s=(e-(t*o-n*Math.sin(2*o)+r*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*n*Math.cos(2*o)+4*r*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(s)<=1e-10)return o;return NaN}const aa={init:function(){this.sphere||(this.e0=ea(this.es),this.e1=ta(this.es),this.e2=na(this.es),this.e3=ra(this.es),this.ml0=this.a*Qs(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(e){var t,n,r=e.x,i=e.y;if(r=Io(r-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(r)),n=this.a*(Math.atan2(Math.tan(i),Math.cos(r))-this.lat0);else{var o=Math.sin(i),s=Math.cos(i),a=ia(this.a,this.e,o),l=Math.tan(i)*Math.tan(i),u=r*Math.cos(i),c=u*u,h=this.es*s*s/(1-this.es);t=a*u*(1-c*l*(1/6-(8-l+8*h)*c/120)),n=this.a*Qs(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+a*o/s*c*(.5+(5-l+6*h)*c/24)}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r=e.x/this.a,i=e.y/this.a;if(this.sphere){var o=i+this.lat0;t=Math.asin(Math.sin(o)*Math.cos(r)),n=Math.atan2(Math.tan(r),Math.cos(o))}else{var s=sa(this.ml0/this.a+i,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-Zi)<=Ji)return e.x=this.long0,e.y=Zi,i<0&&(e.y*=-1),e;var a=ia(this.a,this.e,Math.sin(s)),l=a*a*a/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(s),2),c=r*this.a/a,h=c*c;t=s-a*Math.tan(s)/l*c*c*(.5-(1+3*u)*c*c/24),n=c*(1-h*(u/3+(1+3*u)*u*h/15))/Math.cos(s)}return e.x=Io(n+this.long0),e.y=oa(t),e},names:["Cassini","Cassini_Soldner","cass"]};function la(e,t){var n;return e>1e-7?(1-e*e)*(t/(1-(n=e*t)*n)-.5/e*Math.log((1-n)/(1+n))):2*t}const ua={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-Zi)<Ji?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<Ji?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=la(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,n=[];return n[0]=.3333333333333333*e,t=e*e,n[0]+=.17222222222222222*t,n[1]=.06388888888888888*t,t*=e,n[0]+=.10257936507936508*t,n[1]+=.0664021164021164*t,n[2]=.016415012942191543*t,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=la(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,n,r,i,o,s,a,l,u,c,h=e.x,d=e.y;if(h=Io(h-this.long0),this.sphere){if(o=Math.sin(d),c=Math.cos(d),r=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+c*r:1+this.sinph0*o+this.cosph0*c*r)<=Ji)return null;t=(n=Math.sqrt(2/n))*c*Math.sin(h),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*c*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(d+this.lat0)<Ji)return null;n=to-.5*d,t=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(h),n*=r}}else{switch(a=0,l=0,u=0,r=Math.cos(h),i=Math.sin(h),o=Math.sin(d),s=la(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(a=s/this.qp,l=
3Math.sqrt(1-a*a)),this.mode){case this.OBLIQ:u=1+this.sinb1*a+this.cosb1*l*r;break;case this.EQUIT:u=1+l*r;break;case this.N_POLE:u=Zi+d,s=this.qp-s;break;case this.S_POLE:u=d-Zi,s=this.qp+s}if(Math.abs(u)<Ji)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:u=Math.sqrt(2/u),n=this.mode===this.OBLIQ?this.ymf*u*(this.cosb1*a-this.sinb1*l*r):(u=Math.sqrt(2/(1+l*r)))*a*this.ymf,t=this.xmf*u*l*i;break;case this.N_POLE:case this.S_POLE:s>=0?(t=(u=Math.sqrt(s))*i,n=r*(this.mode===this.S_POLE?u:-u)):t=n=0}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,i,o,s,a,l,u,c,h=e.x/this.a,d=e.y/this.a;if(this.sphere){var f,p=0,g=0;if((n=.5*(f=Math.sqrt(h*h+d*d)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(n),p=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(f)<=Ji?0:Math.asin(d*g/f),h*=g,d=p*f;break;case this.OBLIQ:n=Math.abs(f)<=Ji?this.lat0:Math.asin(p*this.sinph0+d*g*this.cosph0/f),h*=g*this.cosph0,d=(p-Math.sin(n)*this.sinph0)*f;break;case this.N_POLE:d=-d,n=Zi-n;break;case this.S_POLE:n-=Zi}t=0!==d||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(h,d):0}else{if(a=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(h/=this.dd,d*=this.dd,(s=Math.sqrt(h*h+d*d))<Ji)return e.x=this.long0,e.y=this.lat0,e;i=2*Math.asin(.5*s/this.rq),r=Math.cos(i),h*=i=Math.sin(i),this.mode===this.OBLIQ?(a=r*this.sinb1+d*i*this.cosb1/s,o=this.qp*a,d=s*this.cosb1*r-d*this.sinb1*i):(a=d*i/s,o=this.qp*a,d=s*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(d=-d),!(o=h*h+d*d))return e.x=this.long0,e.y=this.lat0,e;a=1-o/this.qp,this.mode===this.S_POLE&&(a=-a)}t=Math.atan2(h,d),c=(l=Math.asin(a))+l,n=l+(u=this.apa)[0]*Math.sin(c)+u[1]*Math.sin(c+c)+u[2]*Math.sin(c+c+c)}return e.x=Io(this.long0+t),e.y=n,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function ca(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}const ha={init:function(){Math.abs(this.lat1+this.lat2)<Ji||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=Po(this.e3,this.sin_po,this.cos_po),this.qs1=la(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=Po(this.e3,this.sin_po,this.cos_po),this.qs2=la(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=la(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>Ji?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=la(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*Io(t-this.long0),s=i*Math.sin(o)+this.x0,a=this.rh-i*Math.cos(o)+this.y0;return e.x=s,e.y=a,e},inverse:function(e){var t,n,r,i,o,s;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),i=0,0!==t&&(i=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?s=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,s=this.phi1z(this.e3,n)),o=Io(i/this.ns0+this.long0),e.x=o,e.y=s,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var n,r,i,o,s=ca(.5*t);if(e<Ji)return s;for(var a=e*e,l=1;l<=25;l++)if(s+=o=.5*(i=1-(r=e*(n=Math.sin(s)))*r)*i/Math.cos(s)*(t/(1-a)-n/i+.5/e*Math.log((1-r)/(1+r))),Math.abs(o)<=1e-7)return s;return null}},da={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,n,r,i,o,s,a,l=e.x,u=e.y;return r=Io(l-this.long0),t=Math.sin(u),n=Math.cos(u),i=Math.cos(r),(o=this.sin_p14*t+this.cos_p14*n*i)>0||Math.abs(o)<=Ji?(s=this.x0+1*this.a*n*Math.sin(r)/o,a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)/o):(s=this.x0+this.infinity_dist*n*Math.sin(r),a=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*i)),e.x=s,e.y=a,e},inverse:function(e){var t,n,r,i,o,s;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),n=Math.sin(i),s=ca((r=Math.cos(i))*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),o=Io(this.long0+o)):(s=this.phic0,o=0),e.x=o,e.y=s,e},names:["gnom"]},fa={init:function(){this.sphere||(this.k0=Po(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,n,r=e.x,i=e.y,o=Io(r-this.long0);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var s=la(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,n=this.y0+this.a*s*.5/this.k0}return e.x=t,e.y=n,e},inverse:function(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=Io(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));
3if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*Zi:Zi;for(var r,i,o,s,a=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(a),o=Math.cos(a),s=e*i,a+=r=Math.pow(1-s*s,2)/(2*o)*(t/(1-e*e)-i/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),Math.abs(r)<=1e-10)return a;return NaN}(this.e,2*e.y*this.k0/this.a),t=Io(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e},names:["cea"]},pa={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,n=e.y,r=Io(t-this.long0),i=oa(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,n=e.y;return e.x=Io(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=oa(this.lat0+(n-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},ga={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ea(this.es),this.e1=ta(this.es),this.e2=na(this.es),this.e3=ra(this.es),this.ml0=this.a*Qs(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,n,r,i=e.x,o=e.y,s=Io(i-this.long0);if(r=s*Math.sin(o),this.sphere)Math.abs(o)<=Ji?(t=this.a*s,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(o),n=this.a*(oa(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=Ji)t=this.a*s,n=-1*this.ml0;else{var a=ia(this.a,this.e,Math.sin(o))/Math.tan(o);t=a*Math.sin(r),n=this.a*Qs(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+a*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){var t,n,r,i,o,s,a,l,u;if(r=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=Ji)t=Io(r/this.a+this.long0),n=0;else{var c;for(s=this.lat0+i/this.a,a=r*r/this.a/this.a+s*s,l=s,o=20;o;--o)if(l+=u=-1*(s*(l*(c=Math.tan(l))+1)-l-.5*(l*l+a)*c)/((l-s)/c-1),Math.abs(u)<=Ji){n=l;break}t=Io(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(i+this.ml0)<=Ji)n=0,t=Io(this.long0+r/this.a);else{var h,d,f,p,g;for(s=(this.ml0+i)/this.a,a=r*r/this.a/this.a+s*s,l=s,o=20;o;--o)if(g=this.e*Math.sin(l),h=Math.sqrt(1-g*g)*Math.tan(l),d=this.a*Qs(this.e0,this.e1,this.e2,this.e3,l),f=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=u=(s*(h*(p=d/this.a)+1)-p-.5*h*(p*p+a))/(this.es*Math.sin(2*l)*(p*p+a-2*s*p)/(4*h)+(s-p)*(h*f-2/Math.sin(2*l))-f),Math.abs(u)<=Ji){n=l;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=Io(this.long0+Math.asin(r*h/this.a)/Math.sin(n))}return e.x=t,e.y=n,e},names:["Polyconic","poly"]},ma={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,n=e.x,r=e.y-this.lat0,i=n-this.long0,o=r/Xi*1e-5,s=i,a=1,l=0;for(t=1;t<=10;t++)a*=o,l+=this.A[t]*a;var u,c=l,h=s,d=1,f=0,p=0,g=0;for(t=1;t<=6;t++)u=f*c+d*h,d=d*c-f*h,f=u,p=p+this.B_re[t]*d-this.B_im[t]*f,g=g+this.B_im[t]*d+this.B_re[t]*f;return e.x=g*this.a+this.x0,e.y=p*this.a+this.y0,e},inverse:function(e){var t,n,r=e.x,i=e.y,o=r-this.x0,s=(i-this.y0)/this.a,a=o/this.a,l=1,u=0,c=0,h=0;for(t=1;t<=6;t++)n=u*s+l*a,l=l*s-u*a,u=n,c=c+this.C_re[t]*l-this.C_im[t]*u,h=h+this.C_im[t]*l+this.C_re[t]*u;for(var d=0;d<this.iterations;d++){var f,p=c,g=h,m=s,y=a;for(t=2;t<=6;t++)f=g*c+p*h,p=p*c-g*h,g=f,m+=(t-1)*(this.B_re[t]*p-this.B_im[t]*g),y+=(t-1)*(this.B_im[t]*p+this.B_re[t]*g);p=1,g=0;var v=this.B_re[1],_=this.B_im[1];for(t=2;t<=6;t++)f=g*c+p*h,p=p*c-g*h,g=f,v+=t*(this.B_re[t]*p-this.B_im[t]*g),_+=t*(this.B_im[t]*p+this.B_re[t]*g);var b=v*v+_*_;c=(m*v+y*_)/b,h=(y*v-m*_)/b}var w=c,x=h,E=1,S=0;for(t=1;t<=9;t++)E*=w,S+=this.D[t]*E;var C=this.lat0+S*Xi*1e5,M=this.long0+x;return e.x=M,e.y=C,e},names:["New_Zealand_Map_Grid","nzmg"]},ya={init:function(){},forward:function(e){var t=e.x,n=e.y,r=Io(t-this.long0),i=this.x0+this.a*r,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return e.x=i,e.y=o,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t=Io(this.long0+e.x/this.a),n=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=n,e},names:["Miller_Cylindrical","mill"]},va={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Ls(this.es)},forward:function(e){var t,n,r=e.x,i=e.y;if(r=Io(r-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),s=20;s;--s){var a=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=a,Math.abs(a)<Ji)break}
3else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*r*(this.m+Math.cos(i)),n=this.a*this.C_y*i}else{var l=Math.sin(i),u=Math.cos(i);n=this.a*Ns(i,l,u,this.en),t=this.a*r*u/Math.sqrt(1-this.es*l*l)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n/=this.C_x*(this.m+Math.cos(t)),this.m?t=ca((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=ca(Math.sin(t)/this.n)),n=Io(n+this.long0),t=oa(t)):(t=Ds(e.y/this.a,this.es,this.en),(r=Math.abs(t))<Zi?(r=Math.sin(t),n=Io(this.long0+e.x*Math.sqrt(1-this.es*r*r)/(this.a*Math.cos(t)))):r-Ji<Zi&&(n=this.long0)),e.x=n,e.y=t,e},names:["Sinusoidal","sinu"]},_a={init:function(){},forward:function(e){for(var t=e.x,n=e.y,r=Io(t-this.long0),i=n,o=Math.PI*Math.sin(n);;){var s=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=s,Math.abs(s)<Ji)break}i/=2,Math.PI/2-Math.abs(n)<Ji&&(r=0);var a=.900316316158*this.a*r*Math.cos(i)+this.x0,l=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=a,e.y=l,e},inverse:function(e){var t,n;e.x-=this.x0,e.y-=this.y0,n=e.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),t=Math.asin(n);var r=Io(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var i=Math.asin(n);return e.x=r,e.y=i,e},names:["Mollweide","moll"]},ba={init:function(){Math.abs(this.lat1+this.lat2)<Ji||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ea(this.es),this.e1=ta(this.es),this.e2=na(this.es),this.e3=ra(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Po(this.e,this.sinphi,this.cosphi),this.ml1=Qs(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<Ji?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Po(this.e,this.sinphi,this.cosphi),this.ml2=Qs(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Qs(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,n=e.x,r=e.y;if(this.sphere)t=this.a*(this.g-r);else{var i=Qs(this.e0,this.e1,this.e2,this.e3,r);t=this.a*(this.g-i)}var o=this.ns*Io(n-this.long0),s=this.x0+t*Math.sin(o),a=this.y0+this.rh-t*Math.cos(o);return e.x=s,e.y=a,e},inverse:function(e){var t,n,r,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;return 0!==n&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere?(i=Io(this.long0+o/this.ns),r=oa(this.g-n/this.a),e.x=i,e.y=r,e):(r=sa(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),i=Io(this.long0+o/this.ns),e.x=i,e.y=r,e)},names:["Equidistant_Conic","eqdc"]},wa={init:function(){this.R=this.a},forward:function(e){var t,n,r=e.x,i=e.y,o=Io(r-this.long0);Math.abs(i)<=Ji&&(t=this.x0+this.R*o,n=this.y0);var s=ca(2*Math.abs(i/Math.PI));(Math.abs(o)<=Ji||Math.abs(Math.abs(i)-Zi)<=Ji)&&(t=this.x0,n=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math.tan(.5*s));var a=.5*Math.abs(Math.PI/o-o/Math.PI),l=a*a,u=Math.sin(s),c=Math.cos(s),h=c/(u+c-1),d=h*h,f=h*(2/u-1),p=f*f,g=Math.PI*this.R*(a*(h-p)+Math.sqrt(l*(h-p)*(h-p)-(p+l)*(d-p)))/(p+l);o<0&&(g=-g),t=this.x0+g;var m=l+h;return g=Math.PI*this.R*(f*m-a*Math.sqrt((p+l)*(l+1)-m*m))/(p+l),n=i>=0?this.y0+g:this.y0-g,e.x=t,e.y=n,e},inverse:function(e){var t,n,r,i,o,s,a,l,u,c,h,d;return e.x-=this.x0,e.y-=this.y0,h=Math.PI*this.R,o=(r=e.x/h)*r+(i=e.y/h)*i,h=3*(i*i/(l=-2*(s=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(a=s-2*i*i+r*r)*a*a/l/l/l-9*s*a/l/l)/27)/(u=(s-a*a/3/l)/l)/(c=2*Math.sqrt(-u/3)),Math.abs(h)>1&&(h=h>=0?1:-1),d=Math.acos(h)/3,n=e.y>=0?(-c*Math.cos(d+Math.PI/3)-a/3/l)*Math.PI:-(-c*Math.cos(d+Math.PI/3)-a/3/l)*Math.PI,t=Math.abs(r)<Ji?this.long0:Io(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(r*r-i*i)+o*o))/2/r),e.x=t,e.y=n,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},xa={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,n,r,i,o,s,a,l,u,c,h,d,f,p,g,m,y,v,_,b,w,x,E=e.x,S=e.y,C=Math.sin(e.y),M=Math.cos(e.y),k=Io(E-this.long0);
3return this.sphere?Math.abs(this.sin_p12-1)<=Ji?(e.x=this.x0+this.a*(Zi-S)*Math.sin(k),e.y=this.y0-this.a*(Zi-S)*Math.cos(k),e):Math.abs(this.sin_p12+1)<=Ji?(e.x=this.x0+this.a*(Zi+S)*Math.sin(k),e.y=this.y0+this.a*(Zi+S)*Math.cos(k),e):(v=this.sin_p12*C+this.cos_p12*M*Math.cos(k),y=(m=Math.acos(v))?m/Math.sin(m):1,e.x=this.x0+this.a*y*M*Math.sin(k),e.y=this.y0+this.a*y*(this.cos_p12*C-this.sin_p12*M*Math.cos(k)),e):(t=ea(this.es),n=ta(this.es),r=na(this.es),i=ra(this.es),Math.abs(this.sin_p12-1)<=Ji?(o=this.a*Qs(t,n,r,i,Zi),s=this.a*Qs(t,n,r,i,S),e.x=this.x0+(o-s)*Math.sin(k),e.y=this.y0-(o-s)*Math.cos(k),e):Math.abs(this.sin_p12+1)<=Ji?(o=this.a*Qs(t,n,r,i,Zi),s=this.a*Qs(t,n,r,i,S),e.x=this.x0+(o+s)*Math.sin(k),e.y=this.y0+(o+s)*Math.cos(k),e):(a=C/M,l=ia(this.a,this.e,this.sin_p12),u=ia(this.a,this.e,C),c=Math.atan((1-this.es)*a+this.es*l*this.sin_p12/(u*M)),_=0===(h=Math.atan2(Math.sin(k),this.cos_p12*Math.tan(c)-this.sin_p12*Math.cos(k)))?Math.asin(this.cos_p12*Math.sin(c)-this.sin_p12*Math.cos(c)):Math.abs(Math.abs(h)-Math.PI)<=Ji?-Math.asin(this.cos_p12*Math.sin(c)-this.sin_p12*Math.cos(c)):Math.asin(Math.sin(k)*Math.cos(c)/Math.sin(h)),d=this.e*this.sin_p12/Math.sqrt(1-this.es),m=l*_*(1-(b=_*_)*(g=(f=this.e*this.cos_p12*Math.cos(h)/Math.sqrt(1-this.es))*f)*(1-g)/6+(w=b*_)/8*(p=d*f)*(1-2*g)+(x=w*_)/120*(g*(4-7*g)-3*d*d*(1-7*g))-x*_/48*p),e.x=this.x0+m*Math.sin(h),e.y=this.y0+m*Math.cos(h),e))},inverse:function(e){var t,n,r,i,o,s,a,l,u,c,h,d,f,p,g,m,y,v,_,b,w,x,E;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*Zi*this.a)return;return n=t/this.a,r=Math.sin(n),i=Math.cos(n),o=this.long0,Math.abs(t)<=Ji?s=this.lat0:(s=ca(i*this.sin_p12+e.y*r*this.cos_p12/t),a=Math.abs(this.lat0)-Zi,o=Math.abs(a)<=Ji?this.lat0>=0?Io(this.long0+Math.atan2(e.x,-e.y)):Io(this.long0-Math.atan2(-e.x,e.y)):Io(this.long0+Math.atan2(e.x*r,t*this.cos_p12*i-e.y*this.sin_p12*r))),e.x=o,e.y=s,e}return l=ea(this.es),u=ta(this.es),c=na(this.es),h=ra(this.es),Math.abs(this.sin_p12-1)<=Ji?(s=sa(((d=this.a*Qs(l,u,c,h,Zi))-(t=Math.sqrt(e.x*e.x+e.y*e.y)))/this.a,l,u,c,h),o=Io(this.long0+Math.atan2(e.x,-1*e.y)),e.x=o,e.y=s,e):Math.abs(this.sin_p12+1)<=Ji?(d=this.a*Qs(l,u,c,h,Zi),s=sa(((t=Math.sqrt(e.x*e.x+e.y*e.y))-d)/this.a,l,u,c,h),o=Io(this.long0+Math.atan2(e.x,e.y)),e.x=o,e.y=s,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),g=Math.atan2(e.x,e.y),f=ia(this.a,this.e,this.sin_p12),m=Math.cos(g),v=-(y=this.e*this.cos_p12*m)*y/(1-this.es),_=3*this.es*(1-v)*this.sin_p12*this.cos_p12*m/(1-this.es),x=1-v*(w=(b=t/f)-v*(1+v)*Math.pow(b,3)/6-_*(1+3*v)*Math.pow(b,4)/24)*w/2-b*w*w*w/6,p=Math.asin(this.sin_p12*Math.cos(w)+this.cos_p12*Math.sin(w)*m),o=Io(this.long0+Math.asin(Math.sin(g)*Math.sin(w)/Math.cos(p))),E=Math.sin(p),s=Math.atan2((E-this.es*x*this.sin_p12)*Math.tan(p),E*(1-this.es)),e.x=o,e.y=s,e)},names:["Azimuthal_Equidistant","aeqd"]},Ea={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,n,r,i,o,s,a,l=e.x,u=e.y;return r=Io(l-this.long0),t=Math.sin(u),n=Math.cos(u),i=Math.cos(r),((o=this.sin_p14*t+this.cos_p14*n*i)>0||Math.abs(o)<=Ji)&&(s=1*this.a*n*Math.sin(r),a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)),e.x=s,e.y=a,e},inverse:function(e){var t,n,r,i,o,s,a;return e.x-=this.x0,e.y-=this.y0,n=ca((t=Math.sqrt(e.x*e.x+e.y*e.y))/this.a),r=Math.sin(n),i=Math.cos(n),s=this.long0,Math.abs(t)<=Ji?(a=this.lat0,e.x=s,e.y=a,e):(a=ca(i*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.abs(this.lat0)-Zi,Math.abs(o)<=Ji?(s=this.lat0>=0?Io(this.long0+Math.atan2(e.x,-e.y)):Io(this.long0-Math.atan2(-e.x,e.y)),e.x=s,e.y=a,e):(s=Io(this.long0+Math.atan2(e.x*r,t*this.cos_p14*i-e.y*this.sin_p14*r)),e.x=s,e.y=a,e))},names:["ortho"]};function Sa(e,t,n,r){var i;return e<Ji?(r.value=1,i=0):(i=Math.atan2(t,n),Math.abs(i)<=to?r.value=1:i>to&&i<=Zi+to?(r.value=2,i-=Zi):i>Zi+to||i<=-(Zi+to)?(r.value=3,i=i>=0?i-ro:i+ro):(r.value=4,i+=Zi)),i}function Ca(e,t){var n=e+t;return n<-ro?n+=no:n>+ro&&(n-=no),n}const Ma={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=Zi-to/2?this.face=5:this.lat0<=-(Zi-to/2)?this.face=6:Math.abs(this.long0)<=to?this.face=1:Math.abs(this.long0)<=
3Zi+to?this.face=this.long0>0?2:4:this.face=3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,n,r,i,o,s,a={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,5===this.face)i=Zi-t,n>=to&&n<=Zi+to?(l.value=1,r=n-Zi):n>Zi+to||n<=-(Zi+to)?(l.value=2,r=n>0?n-ro:n+ro):n>-(Zi+to)&&n<=-to?(l.value=3,r=n+Zi):(l.value=4,r=n);else if(6===this.face)i=Zi+t,n>=to&&n<=Zi+to?(l.value=1,r=-n+Zi):n<to&&n>=-to?(l.value=2,r=-n):n<-to&&n>=-(Zi+to)?(l.value=3,r=-n-Zi):(l.value=4,r=n>0?-n+ro:-n-ro);else{var u,c,h,d,f,p;2===this.face?n=Ca(n,+Zi):3===this.face?n=Ca(n,+ro):4===this.face&&(n=Ca(n,-Zi)),d=Math.sin(t),f=Math.cos(t),p=Math.sin(n),u=f*Math.cos(n),c=f*p,h=d,1===this.face?r=Sa(i=Math.acos(u),h,c,l):2===this.face?r=Sa(i=Math.acos(c),h,-u,l):3===this.face?r=Sa(i=Math.acos(-u),h,-c,l):4===this.face?r=Sa(i=Math.acos(-c),h,u,l):(i=r=0,l.value=1)}return s=Math.atan(12/ro*(r+Math.acos(Math.sin(r)*Math.cos(to))-Zi)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(r))))),2===l.value?s+=Zi:3===l.value?s+=ro:4===l.value&&(s+=1.5*ro),a.x=o*Math.cos(s),a.y=o*Math.sin(s),a.x=a.x*this.a+this.x0,a.y=a.y*this.a+this.y0,e.x=a.x,e.y=a.y,e},inverse:function(e){var t,n,r,i,o,s,a,l,u,c,h,d,f={lam:0,phi:0},p={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?p.value=1:e.y>=0&&e.y>=Math.abs(e.x)?(p.value=2,t-=Zi):e.x<0&&-e.x>=Math.abs(e.y)?(p.value=3,t=t<0?t+ro:t-ro):(p.value=4,t+=Zi),u=ro/12*Math.tan(t),o=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),s=Math.atan(o),(a=1-(r=Math.cos(t))*r*(i=Math.tan(n))*i*(1-Math.cos(Math.atan(1/Math.cos(s)))))<-1?a=-1:a>1&&(a=1),5===this.face)l=Math.acos(a),f.phi=Zi-l,1===p.value?f.lam=s+Zi:2===p.value?f.lam=s<0?s+ro:s-ro:3===p.value?f.lam=s-Zi:f.lam=s;else if(6===this.face)l=Math.acos(a),f.phi=l-Zi,1===p.value?f.lam=-s+Zi:2===p.value?f.lam=-s:3===p.value?f.lam=-s-Zi:f.lam=s<0?-s-ro:-s+ro;else{var g,m,y;u=(g=a)*g,m=(u+=(y=u>=1?0:Math.sqrt(1-u)*Math.sin(s))*y)>=1?0:Math.sqrt(1-u),2===p.value?(u=m,m=-y,y=u):3===p.value?(m=-m,y=-y):4===p.value&&(u=m,m=y,y=-u),2===this.face?(u=g,g=-m,m=u):3===this.face?(g=-g,m=-m):4===this.face&&(u=g,g=m,m=-u),f.phi=Math.acos(-y)-Zi,f.lam=Math.atan2(m,g),2===this.face?f.lam=Ca(f.lam,-Zi):3===this.face?f.lam=Ca(f.lam,-ro):4===this.face&&(f.lam=Ca(f.lam,+Zi))}return 0!==this.es&&(c=f.phi<0?1:0,h=Math.tan(f.phi),d=this.b/Math.sqrt(h*h+this.one_minus_f_squared),f.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),c&&(f.phi=-f.phi)),f.lam+=this.long0,e.x=f.lam,e.y=f.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var ka=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Ta=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Pa=.8487,Oa=1.3523,Ia=eo/5,Ra=1/Ia,Aa=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};const La={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=Io(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*Ia);r<0?r=0:r>=18&&(r=17);var i={x:Aa(ka[r],n=eo*(n-Ra*r))*t,y:Aa(Ta[r],n)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*Pa+this.x0,i.y=i.y*this.a*Oa+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(this.a*Pa),y:Math.abs(e.y-this.y0)/(this.a*Oa)};if(t.y>=1)t.x/=ka[18][0],t.y=e.y<0?-Zi:Zi;else{var n=Math.floor(18*t.y);for(n<0?n=0:n>=18&&(n=17);;)if(Ta[n][0]>t.y)--n;else{if(!(Ta[n+1][0]<=t.y))break;++n}var r=Ta[n],i=5*(t.y-r[0])/(Ta[n+1][0]-r[0]);i=function(e,t,n,r){for(var i=t;r;--r){var o=e(i);if(i-=o,Math.abs(o)<1e-10)break}return i}((function(e){return(Aa(r,e)-t.y)/function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])}(r,e)}),i,0,100),t.x/=Aa(ka[n],i),t.y=(5*n+i)*Qi,e.y<0&&(t.y=-t.y)}return t.x=Io(t.x+this.long0),t},names:["Robinson","robin"]},Na={init:function(){this.name="geocent"},forward:function(e){return ts(e,this.es,this.a)},inverse:function(e){return ns(e,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var Da={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};
3const Fa={init:function(){if(Object.keys(Da).forEach(function(e){if(void 0===this[e])this[e]=Da[e].def;else{if(Da[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);Da[e].num&&(this[e]=parseFloat(this[e]))}Da[e].degrees&&(this[e]=this[e]*Qi)}.bind(this)),Math.abs(Math.abs(this.lat0)-Zi)<Ji?this.mode=this.lat0<0?1:0:Math.abs(this.lat0)<Ji?this.mode=2:(this.mode=3,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)},forward:function(e){e.x-=this.long0;var t,n,r,i,o=Math.sin(e.y),s=Math.cos(e.y),a=Math.cos(e.x);switch(this.mode){case 3:n=this.sinph0*o+this.cosph0*s*a;break;case 2:n=s*a;break;case 1:n=-o;break;case 0:n=o}switch(t=(n=this.pn1/(this.p-n))*s*Math.sin(e.x),this.mode){case 3:n*=this.cosph0*o-this.sinph0*s*a;break;case 2:n*=o;break;case 0:n*=-s*a;break;case 1:n*=s*a}return i=1/((r=n*this.cg+t*this.sg)*this.sw*this.h1+this.cw),t=(t*this.cg-n*this.sg)*this.cw*i,n=r*i,e.x=t*this.a,e.y=n*this.a,e},inverse:function(e){e.x/=this.a,e.y/=this.a;var t,n,r,i={x:e.x,y:e.y};r=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*r,n=this.pn1*e.y*this.cw*r,e.x=t*this.cg+n*this.sg,e.y=n*this.cg-t*this.sg;var o=Bs(e.x,e.y);if(Math.abs(o)<Ji)i.x=0,i.y=e.y;else{var s,a;switch(a=1-o*o*this.pfact,a=(this.p-Math.sqrt(a))/(this.pn1/o+o/this.pn1),s=Math.sqrt(1-a*a),this.mode){case 3:i.y=Math.asin(s*this.sinph0+e.y*a*this.cosph0/o),e.y=(s-this.sinph0*Math.sin(i.y))*o,e.x*=a*this.cosph0;break;case 2:i.y=Math.asin(e.y*a/o),e.y=s*o,e.x*=a;break;case 0:i.y=Math.asin(s),e.y=-e.y;break;case 1:i.y=-Math.asin(s)}i.x=Math.atan2(e.x,e.y)}return e.x=i.x+this.long0,e.y=i.y,e},names:["Tilted_Perspective","tpers"]},ja={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(e){var t,n,r,i,o=e.x,s=e.y;if(o-=this.long0,"ellipse"===this.shape){s=Math.atan(this.radius_p2*Math.tan(s));var a=this.radius_p/Bs(this.radius_p*Math.cos(s),Math.sin(s));if(n=a*Math.cos(o)*Math.cos(s),r=a*Math.sin(o)*Math.cos(s),i=a*Math.sin(s),(this.radius_g-n)*n-r*r-i*i*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/Bs(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/Bs(r,t)))}else"sphere"===this.shape&&(t=Math.cos(s),n=Math.cos(o)*t,r=Math.sin(o)*t,i=Math.sin(s),t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/Bs(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/Bs(r,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,n,r,i,o=-1,s=0,a=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(a=Math.tan(e.y/this.radius_g_1),s=Math.tan(e.x/this.radius_g_1)*Bs(1,a)):(s=Math.tan(e.x/this.radius_g_1),a=Math.tan(e.y/this.radius_g_1)*Bs(1,s));var l=a/this.radius_p;if(t=s*s+l*l+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,s*=i,a*=i,e.x=Math.atan2(s,o),e.y=Math.atan(a*Math.cos(e.x)/o),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(a=Math.tan(e.y/this.radius_g_1),s=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+a*a)):(s=Math.tan(e.x/this.radius_g_1),a=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+s*s)),t=s*s+a*a+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,s*=i,a*=i,e.x=Math.atan2(s,o),e.y=Math.atan(a*Math.cos(e.x)/o)}return e.x=e.x+this.long0,e},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var Ba=1.340264,za=-.081106,Ga=893e-6,Ua=.003796,Wa=Math.sqrt(3)/2;const qa={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0},forward:function(e){var t=Io(e.x-this.long0),n=e.y,r=Math.asin(Wa*Math.sin(n)),i=r*r,o=i*i*i;return e.x=t*Math.cos(r)/(Wa*(Ba+3*za*i+o*(7*Ga+9*Ua*i))),e.y=r*(Ba+za*i+o*(Ga+Ua*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a;var t,n,r,i,o=e.y;for(i=0;i<12&&(o-=r=(o*(Ba+za*(t=o*o)+(n=t*t*t)*(Ga+Ua*t))-e.y)/(Ba+3*za*t+n*(7*Ga+9*Ua*t)),!(Math.abs(r)<1e-9));++i);return n=(t=o*o)*t*t,e.x=Wa*e.x*(Ba+3*za*t+n*(7*Ga+9*Ua*t))/Math.cos(o),e.y=Math.asin(Math.sin(o)/Wa),e.x=Io(e.x+this.long0),e},names:["eqearth","Equal Earth","Equal_Earth"]};var Va=1e-10;function Ya(e){var t,n,r,i=Io(e.x-(this.long0||0)),o=e.y;return t=this.am1+this.m1-Ns(o,n=Math.sin(o),r=Math.cos(o),this.en),n=r*i/(t*Math.sqrt(1-this.es*n*n)),e.x=t*Math.sin(n),e.y=this.am1-t*Math.cos(n),e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Ha(e){var t,n,r,i;if(e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a,n=Bs(e.x,e.y=this.am1-e.y),i=Ds(this.am1+this.m1-n,this.es,this.en),(t=Math.abs(i))<Zi)t=Math.sin(i),r=n*Math.atan2(e.x,e.y)*Math.sqrt(1-this.es*t*t)/Math.cos(i);else{if(!(Math.abs(t-Zi)<=Va))throw new Error;r=0}return e.x=Io(r+(this.long0||0)),e.y=oa(i),e}function $a(e){var t,n,r=Io(e.x-(this.long0||0)),i=e.y;return n=this.cphi1+this.phi1-i,Math.abs(n)>Va?(e.x=n*Math.sin(t=r*Math.cos(i)/n),e.y=this.cphi1-n*Math.cos(t)):e.x=e.y=0,e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Ka(e){var t,n;e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a;var r=Bs(e.x,e.y=this.cphi1-e.y);if(n=this.cphi1+this.phi1-r,Math.abs(n)>Zi)throw new Error;return t=Math.abs(Math.abs(n)-Zi)<=Va?0:r*Math.atan2(e.x,e.y)/Math.cos(n),e.x=Io(t+(this.long0||0)),e.y=oa(n),e}const Xa={init:function(){var e;if(this.phi1=this.lat1,Math.abs(this.phi1)<Va)throw new Error;this.es?(this.en=Ls(this.es),this.m1=Ns(this.phi1,this.am1=Math.sin(this.phi1),e=Math.cos(this.phi1),this.en),this.am1=e/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=Ha,this.forward=Ya):(Math.abs(this.phi1)+Va>=Zi?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Ka,this.forward=$a)},names:["bonne","Bonne (Werner lat_1=90)"]};var Za;ps.defaultDatum="WGS84",ps.Proj=es,ps.WGS84=new ps.Proj("WGS84"),ps.Point=Os,ps.toPoint=ls,ps.defs=Co,ps.nadgrid=function(e,t){var n=new DataView(t),r=function(e){var t=e.getInt32(8,!1);return 11!==t&&(11!==(t=e.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(n),i=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:Ko(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(n,r),o=function(e,t,n){for(var r=176,i=[],o=0;o<t.nSubgrids;o++){var s=Zo(e,r,n),a=Jo(e,r,s,n),l=Math.round(1+(s.upperLongitude-s.lowerLongitude)/s.longitudeInterval),u=Math.round(1+(s.upperLatitude-s.lowerLatitude)/s.latitudeInterval);i.push({ll:[$o(s.lowerLongitude),$o(s.lowerLatitude)],del:[$o(s.longitudeInterval),$o(s.latitudeInterval)],lim:[l,u],count:s.gridNodeCount,cvs:Xo(a)}),r+=176+16*s.gridNodeCount}return i}(n,i,r),s={header:i,subgrids:o};return Yo[e]=s,s},ps.transform=cs,ps.mgrs=bs,ps.version="__VERSION__",(Za=ps).Proj.projections.add(Fs),Za.Proj.projections.add(Us),Za.Proj.projections.add(Ws),Za.Proj.projections.add(Ys),Za.Proj.projections.add(Hs),Za.Proj.projections.add($s),Za.Proj.projections.add(Xs),Za.Proj.projections.add(Zs),Za.Proj.projections.add(Js),Za.Proj.projections.add(aa),Za.Proj.projections.add(ua),Za.Proj.projections.add(ha),Za.Proj.projections.add(da),Za.Proj.projections.add(fa),Za.Proj.projections.add(pa),Za.Proj.projections.add(ga),Za.Proj.projections.add(ma),Za.Proj.projections.add(ya),Za.Proj.projections.add(va),Za.Proj.projections.add(_a),Za.Proj.projections.add(ba),Za.Proj.projections.add(wa),Za.Proj.projections.add(xa),Za.Proj.projections.add(Ea),Za.Proj.projections.add(Ma),Za.Proj.projections.add(La),Za.Proj.projections.add(Na),Za.Proj.projections.add(Fa),Za.Proj.projections.add(ja),Za.Proj.projections.add(qa),Za.Proj.projections.add(Xa);const Ja=ps;Ja.defs("EPSG:28992","+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +no_defs"),Ja.defs("urn:ogc:def:crs:EPSG::28992","+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +no_defs"),function(e){Hi=e;const t=Object.keys(e.defs),n=t.length;let r,i;for(r=0;r<n;++r){const n=t[r];
3if(!on(n)){const t=e.defs(n);let r=t.units;r||"longlat"!==t.projName||(r="degrees"),Yn(new Vt({code:n,axisOrientation:t.axis,metersPerUnit:t.to_meter,units:r}))}}for(r=0;r<n;++r){const o=t[r],s=on(o);for(i=0;i<n;++i){const n=t[i],r=on(n);if(!ln(o,n))if(e.defs[o]===e.defs[n])Kn([s,r]);else{const t=e(o,n);Jn(s,r,dr(s,r,t.forward),dr(r,s,t.inverse))}}}}(Ja);const Qa={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let el;const tl=new Uint8Array(16),nl=[];for(let e=0;e<256;++e)nl.push((e+256).toString(16).slice(1));const rl=function(e,t,n){if(Qa.randomUUID&&!t&&!e)return Qa.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!el){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");el=crypto.getRandomValues.bind(crypto)}return el(tl)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(nl[e[t+0]]+nl[e[t+1]]+nl[e[t+2]]+nl[e[t+3]]+"-"+nl[e[t+4]]+nl[e[t+5]]+"-"+nl[e[t+6]]+nl[e[t+7]]+"-"+nl[e[t+8]]+nl[e[t+9]]+"-"+nl[e[t+10]]+nl[e[t+11]]+nl[e[t+12]]+nl[e[t+13]]+nl[e[t+14]]+nl[e[t+15]]).toLowerCase()}(r)};var il;!function(e){e.ADD_TO_BASKET="ADD_TO_BASKET",e.ADD_MANY_TO_BASKET="ADD_MANY_TO_BASKET",e.REMOVE_FROM_BASKET="REMOVE_FROM_BASKET",e.DEACTIVATE_ALL_ITEMS="DEACTIVATE_ALL_ITEMS",e.UPDATE_ITEM_IN_BASKET="UPDATE_ITEM_IN_BASKET",e.PEEK_ITEM_IN_BASKET="PEEK_ITEM_IN_BASKET",e.UNPEEK_ITEM_IN_BASKET="UNPEEK_ITEM_IN_BASKET",e.ACTIVATE_ITEM_IN_BASKET="ACTIVATE_ITEM_IN_BASKET",e.DEACTIVATE_ITEM_IN_BASKET="DEACTIVATE_ITEM_IN_BASKET",e.CENTER_ITEM_IN_BASKET="CENTER_ITEM_IN_BASKET",e.CENTER_BASKET="CENTER_BASKET",e.UPDATE_GEOMETRY_ITEM_IN_BASKET="UPDATE_GEOMETRY_ITEM_IN_BASKET",e.REORDER_BASKET="REORDER_BASKET",e.REPRESENTATION_HOVER="REPRESENTATION_HOVER",e.SET_SYMBOLISATIE="SET_SYMBOLISATIE",e.SET_GIOVERSION="SET_GIOVERSION",e.ADD_CUSTOM_MARKER="ADD_CUSTOM_MARKER"}(il||(il={}));const ol=il.ADD_TO_BASKET,sl=il.ADD_MANY_TO_BASKET,al=il.REMOVE_FROM_BASKET,ll=il.DEACTIVATE_ALL_ITEMS,ul=il.UPDATE_ITEM_IN_BASKET,cl=il.PEEK_ITEM_IN_BASKET,hl=il.UNPEEK_ITEM_IN_BASKET,dl=il.ACTIVATE_ITEM_IN_BASKET,fl=il.DEACTIVATE_ITEM_IN_BASKET,pl=il.CENTER_ITEM_IN_BASKET,gl=il.CENTER_BASKET,ml=il.UPDATE_GEOMETRY_ITEM_IN_BASKET,yl=il.REORDER_BASKET,vl=il.REPRESENTATION_HOVER,_l=il.SET_SYMBOLISATIE,bl=il.SET_GIOVERSION,wl=il.ADD_CUSTOM_MARKER;var xl,El;!function(e){e[e.acc=0]="acc",e[e.prod=1]="prod",e[e.test=2]="test"}(xl||(xl={})),function(e){e.GEOBROWSE_ZOOM_IN="in",e.GEOBROWSE_ZOOM_OUT="out"}(El||(El={}));const Sl=El.GEOBROWSE_ZOOM_IN,Cl=El.GEOBROWSE_ZOOM_OUT,Ml={pan_threshold:15};var kl,Tl;!function(e){e.setKpmMode="SET_KPM_MODE",e.setZoomLevel="SET_ZOOM_LEVEL"}(kl||(kl={})),function(e){e.SEARCH="search",e.DRAW="draw",e.SELECT="select"}(Tl||(Tl={}));const Pl=kl.setKpmMode,Ol=kl.setZoomLevel;var Il;!function(e){e.BGT_ACHTERGRONDKAART="bgtachtergrondkaart",e.BRT_ACHTERGRONDKAART="brtachtergrondkaart",e.LUCHTFOTO="luchtfoto",e.LUCHTFOTO_LABELS="luchtfotolabels"}(Il||(Il={}));const Rl=Il.BGT_ACHTERGRONDKAART,Al=Il.BRT_ACHTERGRONDKAART,Ll=Il.LUCHTFOTO,Nl=Il.LUCHTFOTO_LABELS;var Dl;!function(e){e.PERCELEN_LAAG="perceel",e.GEMEENTEN_LAAG="gemeente",e.PROVINCIES_LAAG="provincie",e.WATERSCHAPPEN_LAAG="waterschap",e.WIJKEN_LAAG="wijk",e.BUURTEN_LAAG="buurt",e.WOONPLAATSEN_LAAG="woonplaats",e.WEGEN_LAAG="weg"}(Dl||(Dl={}));const Fl=Dl.PERCELEN_LAAG,jl=Dl.GEMEENTEN_LAAG,Bl=Dl.PROVINCIES_LAAG,zl=Dl.WATERSCHAPPEN_LAAG,Gl=Dl.WIJKEN_LAAG,Ul=Dl.BUURTEN_LAAG,Wl=Dl.WOONPLAATSEN_LAAG,ql=Dl.WEGEN_LAAG;var Vl;!function(e){e.SET_ACTIVE_BASE_LAYER="SET_ACTIVE_BASE_LAYER",e.SET_ACTIVE_OVERLAY_LAYER="SET_ACTIVE_OVERLAY_LAYER",e.CLEAR_OVERLAY_LAYER="CLEAR_OVERLAY_LAYER"}(Vl||(Vl={}));const Yl=Vl.SET_ACTIVE_BASE_LAYER,Hl=Vl.SET_ACTIVE_OVERLAY_LAYER,$l=Vl.CLEAR_OVERLAY_LAYER,Kl=[Rl,Al,
3Ll,Nl],Xl=[Ul,jl,Fl,Bl,zl,Gl,Wl,ql];var Zl,Jl;!function(e){e.CIRKEL="cirkel",e.PUNT="punt",e.LIJN="lijn",e.VLAK="vlak",e.FEEDBACK="feedback"}(Zl||(Zl={})),function(e){e.SET_MAP_DRAW_MODE="SET_MAP_DRAW_MODE"}(Jl||(Jl={}));const Ql=Jl.SET_MAP_DRAW_MODE,eu=Zl.CIRKEL,tu=Zl.PUNT,nu=Zl.LIJN,ru=Zl.VLAK,iu=Zl.FEEDBACK,ou=[eu,tu,nu,ru];var su,au,lu;!function(e){e.VD="vd",e.TUCHTRECHT="tuchtrecht",e.SGD="sgd",e.LOKALE_BEKENDMAKING="lokalebekendmakingen",e.OFFICIELE_PUBLICATIES="officielepublicaties",e.SAMENWERKDENDE_CATALOGI="samenwerkendecatalogi"}(su||(su={})),su.LOKALE_BEKENDMAKING,su.OFFICIELE_PUBLICATIES,su.SAMENWERKDENDE_CATALOGI,su.SGD,su.TUCHTRECHT,su.VD,(lu=au||(au={})).SET_FILL_COLOR="SET_FILL_COLOR",lu.SET_FILL_ACTIVE_COLOR="SET_FILL_ACTIVE_COLOR",lu.SET_BORDER_COLOR="SET_BORDER_COLOR",lu.SET_BORDER_WIDTH="SET_BORDER_WIDTH",lu.SET_READONLY_COLOR="SET_READONLY_COLOR",lu.SET_ZONE_COLOR="SET_ZONE_COLOR";const uu=au.SET_FILL_COLOR,cu=au.SET_FILL_ACTIVE_COLOR,hu=au.SET_BORDER_COLOR,du=au.SET_BORDER_WIDTH,fu=au.SET_READONLY_COLOR,pu=(au.SET_ZONE_COLOR,"#A90061"),gu="#154273",mu="#777777";function yu(e,t,n){return{item:e,mapLayerType:t,options:n,type:il.ADD_TO_BASKET}}function vu(e,t){return{item:e,mapLayerType:t,type:il.REMOVE_FROM_BASKET}}function _u(e,t){return{item:e,mapLayerType:"default",options:t,type:il.ACTIVATE_ITEM_IN_BASKET}}function bu(e){return{item:e,mapLayerType:"default",type:il.DEACTIVATE_ITEM_IN_BASKET}}function wu(){return{type:il.DEACTIVATE_ALL_ITEMS}}function xu(e){return{item:e,mapLayerType:"default",type:il.CENTER_ITEM_IN_BASKET}}function Eu(){return{type:il.CENTER_BASKET}}const Su=function(e){var{type:n="button"}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["type"]);const i=ee()("button",{[`button--${r.modifier}`]:r.modifier,[r.modifiers?r.modifiers.map((e=>`button--${e}`)).join(" "):""]:r.modifiers});return t.createElement("button",{className:i,type:n,onClick:r.onClick,disabled:r.disabled,"data-kpm-selector":r.dataKpmSelector||"button"},r.children,r.spanLabel?t.createElement("span",{className:"visually-hidden"},r.spanLabel):null)};function Cu(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mu}=Object.prototype,{getPrototypeOf:ku}=Object,Tu=(e=>t=>{const n=Mu.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pu=e=>(e=e.toLowerCase(),t=>Tu(t)===e),Ou=e=>t=>typeof t===e,{isArray:Iu}=Array,Ru=Ou("undefined"),Au=Pu("ArrayBuffer"),Lu=Ou("string"),Nu=Ou("function"),Du=Ou("number"),Fu=e=>null!==e&&"object"==typeof e,ju=e=>{if("object"!==Tu(e))return!1;const t=ku(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Bu=Pu("Date"),zu=Pu("File"),Gu=Pu("Blob"),Uu=Pu("FileList"),Wu=Pu("URLSearchParams"),[qu,Vu,Yu,Hu]=["ReadableStream","Request","Response","Headers"].map(Pu);function $u(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),Iu(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function Ku(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Xu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Zu=e=>!Ru(e)&&e!==Xu,Ju=(Qu="undefined"!=typeof Uint8Array&&ku(Uint8Array),e=>Qu&&e instanceof Qu);var Qu;const ec=Pu("HTMLFormElement"),tc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nc=Pu("RegExp"),rc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$u(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},ic=Pu("AsyncFunction"),oc=(sc="function"==typeof setImmediate,ac=Nu(Xu.postMessage),sc?setImmediate:ac?(lc=`axios@${Math.random()}`,uc=[],Xu.addEventListener("message",(({source:e,data:t})=>{e===Xu&&t===lc&&uc.length&&uc.shift()()}),!1),e=>{uc.push(e),Xu.postMessage(lc,"*")}):e=>setTimeout(e));var sc,ac,lc,uc;const cc="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Xu):"undefined"!=typeof process&&process.nextTick||oc,hc={isArray:Iu,isArrayBuffer:Au,isBuffer:function(e){return null!==e&&!Ru(e)&&null!==e.constructor&&!Ru(e.constructor)&&Nu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Nu(e.append)&&("formdata"===(t=Tu(e))||"object"===t&&Nu(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Au(e.buffer),t},isString:Lu,isNumber:Du,isBoolean:e=>!0===e||!1===e,isObject:Fu,isPlainObject:ju,isReadableStream:qu,isRequest:Vu,isResponse:Yu,isHeaders:Hu,isUndefined:Ru,isDate:Bu,isFile:zu,isBlob:Gu,isRegExp:nc,isFunction:Nu,isStream:e=>Fu(e)&&Nu(e.pipe),isURLSearchParams:Wu,isTypedArray:Ju,isFileList:Uu,forEach:$u,merge:function e(){const{caseless:t}=Zu(this)&&this||{},n={},r=(r,i)=>{const o=t&&Ku(n,i)||i;
vendor: 5,411 bytes, line 3
3ju(n[o])&&ju(r)?n[o]=e(n[o],r):ju(r)?n[o]=e({},r):Iu(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&$u(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>($u(t,((t,r)=>{n&&Nu(t)?e[r]=Cu(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&ku(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Tu,kindOfTest:Pu,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Iu(e))return e;let t=e.length;if(!Du(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ec,hasOwnProperty:tc,hasOwnProp:tc,reduceDescriptors:rc,freezeMethods:e=>{rc(e,((t,n)=>{if(Nu(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Nu(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Iu(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ku,global:Xu,isContextDefined:Zu,isSpecCompliantForm:function(e){return!!(e&&Nu(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Fu(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=Iu(e)?[]:{};return $u(e,((e,t)=>{const o=n(e,r+1);!Ru(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:ic,isThenable:e=>e&&(Fu(e)||Nu(e))&&Nu(e.then)&&Nu(e.catch),setImmediate:oc,asap:cc};function dc(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}hc.inherits(dc,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:hc.toJSONObject(this.config),code:this.code,status:this.status}}});const fc=dc.prototype,pc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{pc[e]={value:e}})),Object.defineProperties(dc,pc),Object.defineProperty(fc,"isAxiosError",{value:!0}),dc.from=(e,t,n,r,i,o)=>{const s=Object.create(fc);return hc.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),dc.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const gc=dc;function mc(e){return hc.isPlainObject(e)||hc.isArray(e)}function yc(e){return hc.endsWith(e,"[]")?e.slice(0,-2):e}function vc(e,t,n){return e?e.concat(t).map((function(e,t){return e=yc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const _c=hc.toFlatObject(hc,{},null,(function(e){return/^is[A-Z]/.test(e)})),bc=function(e,t,n){if(!hc.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=hc.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!hc.isUndefined(t[e])}))).metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&hc.isSpecCompliantForm(t);if(!hc.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(hc.isDate(e))return e.toISOString();if(!a&&hc.isBlob(e))throw new gc("Blob is not supported. Use a Buffer instead.");return hc.isArrayBuffer(e)||hc.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if(hc.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(hc.isArray(e)&&function(e){return hc.isArray(e)&&!e.some(mc)}(e)||(hc.isFileList(e)||hc.endsWith(n,"[]"))&&(a=hc.toArray(e)))return n=yc(n),a.forEach((function(e,r){!hc.isUndefined(e)&&null!==e&&t.append(!0===s?vc([n],r,o):null===s?n:n+"[]",l(e))})),!1;return!!mc(e)||(t.append(vc(i,n,o),l(e)),!1)}const c=[],h=Object.assign(_c,{defaultVisitor:u,convertValue:l,isVisitable:mc});if(!hc.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!hc.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),hc.forEach(n,(function(n,o){!0===(!(hc.isUndefined(n)||null===n)&&i.call(t,n,hc.isString(o)?o.trim():o,r,h))&&e(n,r?r.concat(o):[o])})),c.pop()}}(e),t};
vendor: 6,100 bytes, line 3
3function wc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function xc(e,t){this._pairs=[],e&&bc(e,this,t)}const Ec=xc.prototype;Ec.append=function(e,t){this._pairs.push([e,t])},Ec.toString=function(e){const t=e?function(t){return e.call(this,t,wc)}:wc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Sc=xc;function Cc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mc(e,t,n){if(!t)return e;const r=n&&n.encode||Cc;hc.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):hc.isURLSearchParams(t)?t.toString():new Sc(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const kc=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){hc.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Tc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pc={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Sc,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Oc="undefined"!=typeof window&&"undefined"!=typeof document,Ic="object"==typeof navigator&&navigator||void 0,Rc=Oc&&(!Ic||["ReactNative","NativeScript","NS"].indexOf(Ic.product)<0),Ac="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Lc=Oc&&window.location.href||"http://localhost",Nc={...e,...Pc},Dc=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=e.length;return o=!o&&hc.isArray(r)?r.length:o,a?(hc.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!s):(r[o]&&hc.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&hc.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!s)}if(hc.isFormData(e)&&hc.isFunction(e.entries)){const n={};return hc.forEachEntry(e,((e,r)=>{t(function(e){return hc.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},Fc={transitional:Tc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=hc.isObject(e);if(i&&hc.isHTMLForm(e)&&(e=new FormData(e)),hc.isFormData(e))return r?JSON.stringify(Dc(e)):e;if(hc.isArrayBuffer(e)||hc.isBuffer(e)||hc.isStream(e)||hc.isFile(e)||hc.isBlob(e)||hc.isReadableStream(e))return e;if(hc.isArrayBufferView(e))return e.buffer;if(hc.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return bc(e,new Nc.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Nc.isNode&&hc.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=hc.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return bc(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e){if(hc.isString(e))try{return(0,JSON.parse)(e),hc.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Fc.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(hc.isResponse(e)||hc.isReadableStream(e))return e;if(e&&hc.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw gc.from(e,gc.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nc.classes.FormData,Blob:Nc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};hc.forEach(["delete","get","head","post","put","patch"],(e=>{Fc.headers[e]={}}));const jc=Fc,Bc=hc.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zc=Symbol("internals");function Gc(e){return e&&String(e).trim().toLowerCase()}function Uc(e){return!1===e||null==e?e:hc.isArray(e)?e.map(Uc):String(e)}function Wc(e,t,n,r,i){return hc.isFunction(r)?r.call(this,t,n):(i&&(t=n),hc.isString(t)?hc.isString(r)?-1!==t.indexOf(r):hc.isRegExp(r)?r.test(t):void 0:void 0)}class qc{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Gc(t);if(!i)throw new Error("header name must be a non-empty string");const o=hc.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Uc(e))}const o=(e,t)=>hc.forEach(e,((e,n)=>i(e,n,t)));if(hc.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(hc.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Bc[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(hc.isHeaders(e))for(const[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=Gc(e)){const n=hc.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;
vendor: 14,443 bytes, line 3
3=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(hc.isFunction(t))return t.call(this,e,n);if(hc.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Gc(e)){const n=hc.findKey(this,e);return!(!n||void 0===this[n]||t&&!Wc(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Gc(e)){const i=hc.findKey(n,e);!i||t&&!Wc(0,n[i],i,t)||(delete n[i],r=!0)}}return hc.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Wc(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return hc.forEach(this,((r,i)=>{const o=hc.findKey(n,i);if(o)return t[o]=Uc(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();s!==i&&delete t[i],t[s]=Uc(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return hc.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&hc.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[zc]=this[zc]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Gc(e);t[r]||(function(e,t){const n=hc.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return hc.isArray(e)?e.forEach(r):r(e),this}}qc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),hc.reduceDescriptors(qc.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),hc.freezeMethods(qc);const Vc=qc;function Yc(e,t){const n=this||jc,r=t||n,i=Vc.from(r.headers);let o=r.data;return hc.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Hc(e){return!(!e||!e.__CANCEL__)}function $c(e,t,n){gc.call(this,null==e?"canceled":e,gc.ERR_CANCELED,t,n),this.name="CanceledError"}hc.inherits($c,gc,{__CANCEL__:!0});const Kc=$c;function Xc(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new gc("Request failed with status code "+n.status,[gc.ERR_BAD_REQUEST,gc.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Zc=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=r[s];i||(i=l),n[o]=a,r[o]=l;let c=s,h=0;for(;c!==o;)h+=n[c++],c%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const d=u&&l-u;return d?Math.round(1e3*h/d):void 0}}(50,250);return function(e,t){let n,r,i=0,o=1e3/t;const s=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-i;a>=o?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),o-a)))},()=>n&&s(n)]}((n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-r,l=i(a);r=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},Jc=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qc=e=>(...t)=>hc.asap((()=>e(...t))),eh=Nc.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Nc.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Nc.origin),Nc.navigator&&/(msie|trident)/i.test(Nc.navigator.userAgent)):()=>!0,th=Nc.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];hc.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),hc.isString(r)&&s.push("path="+r),hc.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function nh(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const rh=e=>e instanceof Vc?{...e}:e;function ih(e,t){t=t||{};const n={};function r(e,t,n,r){return hc.isPlainObject(e)&&hc.isPlainObject(t)?hc.merge.call({caseless:r},e,t):hc.isPlainObject(t)?hc.merge({},t):hc.isArray(t)?t.slice():t}function i(e,t,n,i){return hc.isUndefined(t)?hc.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!hc.isUndefined(t))return r(void 0,t)}function s(e,t){return hc.isUndefined(t)?hc.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(rh(e),rh(t),0,!0)};return hc.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,s=o(e[r],t[r],r);hc.isUndefined(s)&&o!==a||(n[r]=s)})),n}const oh=e=>{const t=ih({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=Vc.from(a),t.url=Mc(nh(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),hc.isFormData(r))if(Nc.hasStandardBrowserEnv||Nc.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Nc.hasStandardBrowserEnv&&(i&&hc.isFunction(i)&&(i=i(t)),i||!1!==i&&eh(t.url))){const e=o&&s&&th.read(s);e&&a.set(o,e)}return t},sh="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=oh(e);let i=r.data;const o=Vc.from(r.headers).normalize();let s,a,l,u,c,{responseType:h,onUploadProgress:d,onDownloadProgress:f}=r;function p(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=Vc.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Xc((function(e){t(e),p()}),(function(e){n(e),p()}),{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new gc("Request aborted",gc.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new gc("Network Error",gc.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Tc;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new gc(t,i.clarifyTimeoutError?gc.ETIMEDOUT:gc.ECONNABORTED,e,g)),g=null},void 0===i&&o.setContentType(null),"setRequestHeader"in g&&hc.forEach(o.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),hc.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),h&&"json"!==h&&(g.responseType=r.responseType),f&&([l,c]=Zc(f,!0),g.addEventListener("progress",l)),d&&g.upload&&([a,u]=Zc(d),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=t=>{g&&(n(!t||t.type?new Kc(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===Nc.protocols.indexOf(y)?n(new gc("Unsupported protocol "+y+":",gc.ERR_BAD_REQUEST,e)):g.send(i||null)}))},ah=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof gc?t:new Kc(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new gc(`timeout ${t} of ms exceeded`,gc.ETIMEDOUT))}),t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:a}=r;return a.unsubscribe=()=>hc.asap(s),a}},lh=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},uh=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*lh(n,t)}(e,t);let o,s=0,a=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return a(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},ch="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,hh=ch&&"function"==typeof ReadableStream,dh=ch&&("function"==typeof TextEncoder?(fh=new TextEncoder,e=>fh.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var fh;const ph=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},gh=hh&&ph((()=>{let e=!1;const t=new Request(Nc.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),mh=hh&&ph((()=>hc.isReadableStream(new Response("").body))),yh={stream:mh&&(e=>e.body)};var vh;ch&&(vh=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!yh[e]&&(yh[e]=hc.isFunction(vh[e])?t=>t[e]():(t,n)=>{throw new gc(`Response type '${e}' is not supported`,gc.ERR_NOT_SUPPORT,n)})})));const _h=ch&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:h="same-origin",fetchOptions:d}=oh(e);u=u?(u+"").toLowerCase():"text";let f,p=ah([i,o&&o.toAbortSignal()],s);const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(l&&gh&&"get"!==n&&"head"!==n&&0!==(m=await(async(e,t)=>{const n=hc.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(hc.isBlob(e))return e.size;if(hc.isSpecCompliantForm(e)){const t=new Request(Nc.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return hc.isArrayBufferView(e)||hc.isArrayBuffer(e)?e.byteLength:(hc.isURLSearchParams(e)&&(e+=""),hc.isString(e)?(await dh(e)).byteLength:void 0)})(t):n})(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(hc.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Jc(m,Zc(Qc(l)));r=uh(n.body,65536,e,t)}}hc.isString(h)||(h=h?"include":"omit");const i="credentials"in Request.prototype;f=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:i?h:void 0});let o=await fetch(f);const s=mh&&("stream"===u||"response"===u);if(mh&&(a||s&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=hc.toFiniteNumber(o.headers.get("content-length")),[n,r]=a&&Jc(t,Zc(Qc(a),!0))||[];o=new Response(uh(o.body,65536,n,(()=>{r&&r(),g&&g()})),e)}u=u||"text";let y=await yh[hc.findKey(yh,u)||"text"](o,e);return!s&&g&&g(),await new Promise(((t,n)=>{Xc(t,n,{data:y,headers:Vc.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(t){if(g&&g(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new gc("Network Error",gc.ERR_NETWORK,e,f),{cause:t.cause||t});throw gc.from(t,t&&t.code,e,f)}}),bh={http:null,xhr:sh,fetch:_h};hc.forEach(bh,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const wh=e=>`- ${e}`,xh=e=>hc.isFunction(e)||null===e||!1===e,Eh=e=>{e=hc.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!xh(n)&&(r=bh[(t=String(n)).toLowerCase()],void 0===r))throw new gc(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(wh).join("\n"):" "+wh(e[0]):"as no adapter specified";throw new gc("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Sh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kc(null,e)}function Ch(e){return Sh(e),e.headers=Vc.from(e.headers),e.data=Yc.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Eh(e.adapter||jc.adapter)(e).then((function(t){return Sh(e),t.data=Yc.call(e,e.transformResponse,t),t.headers=Vc.from(t.headers),t}),(function(t){return Hc(t)||(Sh(e),t&&t.response&&(t.response.data=Yc.call(e,e.transformResponse,t.response),t.response.headers=Vc.from(t.response.headers))),Promise.reject(t)}))}const Mh={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Mh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const kh={};Mh.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new gc(r(i," has been removed"+(t?" in "+t:"")),gc.ERR_DEPRECATED);return t&&!kh[i]&&(kh[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},Mh.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}
3`),!0)};const Th={assertOptions:function(e,t,n){if("object"!=typeof e)throw new gc("options must be an object",gc.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new gc("option "+o+" must be "+n,gc.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new gc("Unknown option "+o,gc.ERR_BAD_OPTION)}},validators:Mh},Ph=Th.validators;class Oh{constructor(e){this.defaults=e,this.interceptors={request:new kc,response:new kc}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ih(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Th.assertOptions(n,{silentJSONParsing:Ph.transitional(Ph.boolean),forcedJSONParsing:Ph.transitional(Ph.boolean),clarifyTimeoutError:Ph.transitional(Ph.boolean)},!1),null!=r&&(hc.isFunction(r)?t.paramsSerializer={serialize:r}:Th.assertOptions(r,{encode:Ph.function,serialize:Ph.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Th.assertOptions(t,{baseUrl:Ph.spelling("baseURL"),withXsrfToken:Ph.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&hc.merge(i.common,i[t.method]);i&&hc.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Vc.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,h=0;if(!a){const e=[Ch.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);h<c;)u=u.then(e[h++],e[h++]);return u}c=s.length;let d=t;for(h=0;h<c;){const e=s[h++],t=s[h++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Ch.call(this,d)}catch(e){return Promise.reject(e)}for(h=0,c=l.length;h<c;)u=u.then(l[h++],l[h++]);return u}getUri(e){return Mc(nh((e=ih(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}hc.forEach(["delete","get","head","options"],(function(e){Oh.prototype[e]=function(t,n){return this.request(ih(n||{},{method:e,url:t,data:(n||{}).data}))}})),hc.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(ih(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Oh.prototype[e]=t(),Oh.prototype[e+"Form"]=t(!0)}));const Ih=Oh;class Rh{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Kc(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Rh((function(t){e=t})),cancel:e}}}const Ah=Rh,Lh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
3alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lh).forEach((([e,t])=>{Lh[t]=e}));const Nh=Lh,Dh=function e(t){const n=new Ih(t),r=Cu(Ih.prototype.request,n);return hc.extend(r,Ih.prototype,n,{allOwnKeys:!0}),hc.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ih(t,n))},r}(jc);Dh.Axios=Ih,Dh.CanceledError=Kc,Dh.CancelToken=Ah,Dh.isCancel=Hc,Dh.VERSION="1.8.1",Dh.toFormData=bc,Dh.AxiosError=gc,Dh.Cancel=Dh.CanceledError,Dh.all=function(e){return Promise.all(e)},Dh.spread=function(e){return function(t){return e.apply(null,t)}},Dh.isAxiosError=function(e){return hc.isObject(e)&&!0===e.isAxiosError},Dh.mergeConfig=ih,Dh.AxiosHeaders=Vc,Dh.formToJSON=e=>Dc(hc.isHTMLForm(e)?new FormData(e):e),Dh.getAdapter=Eh,Dh.HttpStatusCode=Nh,Dh.default=Dh;const Fh=Dh;var jh,Bh=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))};!function(e){e.PROVINCIE="provincie",e.GEMEENTE="gemeente",e.WOONPLAATS="woonplaats",e.WEG="weg",e.POSTCODE="postcode",e.ADRES="adres",e.PERCEEL="perceel",e.HECTOMETERPAAL="hectometerpaal",e.WIJK="wijk",e.BUURT="buurt",e.WATERSCHAP="waterschap",e.PUNT="punt",e.LIJN="lijn",e.VLAK="vlak",e.CIRKEL="cirkel",e.REPRESENTATIE="representatie",e.ACTUELE_GEMEENTENAAM="actuele_gemeentenaam"}(jh||(jh={}));const zh=["provincie","waterschap","gemeente","woonplaats","weg","postcode","adres","perceel","hectometerpaal","wijk","buurt","punt","lijn","vlak","cirkel"],Gh=["provincie","waterschap","gemeente","woonplaats","weg","postcode","adres","perceel","hectometerpaal","wijk","buurt","punt","lijn","vlak","cirkel","representatie"];function Uh(e){return Bh(this,void 0,void 0,(function*(){var t,n;const r={id:e,fl:["id","centroide_ll","type","weergavenaam","bron","geometrie_rd","identificatie","subtype","openbareruimte_id","openbareruimtetype","straatnaam","straatnaam_verkort","adresseerbaarobject_id","nummeraanduiding_id","huisnummer","huisletter","huisnummertoevoeging","huis_nlt","postcode","woonplaatscode","woonplaatsnaam","gemeentecode","gemeentenaam","provinciecode","provincienaam","provincieafkorting","kadastraal_object_id","kadastrale_gemeentecode","kadastrale_gemeentenaam","actuele_gemeentenaam","kadastrale_sectie","perceelnummer","kadastrale_grootte","gekoppeld_perceel","volgnummer","gekoppeld_appartement","kadastrale_aanduiding","wegnummer","hectometernummer","zijde","hectometerletter","waterschapsnaam","waterschapscode"].join(",")},i=yield Fh.get("https://api.pdok.nl/bzk/locatieserver/search/v3_1/lookup",{params:r}),o=i.data.response.docs[0];if((null===(t=i.data.response.docs[0])||void 0===t?void 0:t.type)===jh.PERCEEL&&void 0!==(null===(n=i.data.response.docs[0])||void 0===n?void 0:n.centroide_ll)){const e=yield(s=i.data.response.docs[0].centroide_ll,a=jh.GEMEENTE,Wh(a,"*",s));null!==e&&(o[jh.ACTUELE_GEMEENTENAAM]=e.gemeentenaam)}var s,a;return o||null}))}function Wh(e,t,n){return Bh(this,void 0,void 0,(function*(){const r=["BAG","NWB","DKK","Bestuurlijke Grenzen","CBS","HWH"].map((e=>`"${e}"`)).join(" OR "),i={fl:["id","type","weergavenaam","bron","geometrie_rd","identificatie","subtype","openbareruimte_id","openbareruimtetype","straatnaam","straatnaam_verkort","adresseerbaarobject_id","nummeraanduiding_id","huisnummer","huisletter","huisnummertoevoeging","huis_nlt","postcode","woonplaatscode","woonplaatsnaam","gemeentecode","gemeentenaam","provinciecode","provincienaam","provincieafkorting","kadastraal_object_id","kadastrale_gemeentecode","kadastrale_gemeentenaam","actuele_gemeentenaam","kadastrale_sectie","perceelnummer","kadastrale_grootte","gekoppeld_perceel","volgnummer","gekoppeld_appartement","kadastrale_aanduiding","wegnummer","hectometernummer","zijde","hectometerletter","waterschapsnaam","waterschapscode"].join(","),fq:`type:(${e}) AND bron:(${r})`,rows:1};if(n){const e=n.replace("POINT(","").replace(")","").split(" ");i.lon=e[0],i.lat=e[1]}let o;t&&(i.q=t);try{o=yield Fh.get("https://api.pdok.nl/bzk/locatieserver/search/v3_1/suggest",{params:i})}catch(e){console.error(e.message)}return(null==o?void 0:o.data.response.docs[0])||null}))}function qh(e,t){return Wh(t,e)}const Vh=(0,t.createContext)({center:{highlight:!1,type:"auto"},clustering:!1,controls:[],features:[],layers:{bgtachtergrondkaart:{enabled:!0}},locationTypes:zh,mode:"geoedit"}),Yh=Vh.Provider,Hh=function(e){const{future:n,main:r,sidebar:i,onCancel:o,onSubmit:s}=e,a=(0,t.useContext)(Vh),[l,u]=(0,t.useState)(!1),c=ee()("columns-map",{"k-future":n,collapsed:l}),h=!a.features.length;return["geoview","geobrowse"].includes(a.mode)?t.createElement("div",{className:c},t.createElement("div",{className:"main-column"},r)):t.createElement("div",{className:c},t.createElement("div",{className:"main-column"},t.createElement("a",{href:"#",className:"trigger-collapse",onClick:function(e){e.preventDefault(),u(!l)}},t.createElement("span",{className:"visually-hidden"},"In- of uitklappen")),r),t.createElement("div",{className:"sidebar-column"},t.createElement("div",{className:"sidebar-column__scroll-container"},t.createElement("div",{className:"sidebar-column-content"},i),t.createElement("div",{className:"sidebar-column-controls","data-kpm-selector":"sidebar-column-controls"},t.createElement(Su,{key:"cancel",modifier:h?"primary":"inversed",onClick:o,dataK
3pmSelector:"button-close"},h?"Afsluiten":"Annuleren"),h?null:t.createElement(Su,{key:"submit",modifier:"primary",onClick:s,dataKpmSelector:"button-submit"},"Opslaan")))))},$h="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",Kh=$h.includes("firefox"),Xh=($h.includes("safari")&&!$h.includes("chrom")&&($h.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test($h)),$h.includes("webkit")&&!$h.includes("edge")),Zh=$h.includes("macintosh"),Jh="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,Qh="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,ed="undefined"!=typeof Image&&Image.prototype.decode,td=function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch{}return e}();function nd(e,t,n,r){let i;return i=n&&n.length?n.shift():Qh?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(i.width=e),t&&(i.height=t),i.getContext("2d",r)}let rd;function id(){return rd||(rd=nd(1,1)),rd}function od(e){const t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function sd(e){let t=e.offsetWidth;const n=getComputedStyle(e);return t+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),t}function ad(e){let t=e.offsetHeight;const n=getComputedStyle(e);return t+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),t}function ld(e,t){const n=t.parentNode;n&&n.replaceChild(e,t)}function ud(e){for(;e.lastChild;)e.lastChild.remove()}const cd="prerender",hd="postrender",dd="precompose",fd="rendercomplete",pd={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87
3],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var gd={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const md={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},yd={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,l=e[2]/100,u=0;if(0===a)return[o=255*l,o,o];for(t=2*l-(n=l<.5?l*(1+a):l+a-l*a),i=[0,0,0];u<3;)(r=s+1/3*-(u-1))<0?r++:r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u++]=255*o;return i}};md.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),l=a-s;return a===s?t=0:r===a?t=(i-o)/l:i===a?t=2+(o-r)/l:o===a&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?l/(a+s):l/(2-a-s)),100*n]};const vd={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};vd.max=vd.whitepoint[2].D65,vd.rgb=function(e,t){t=t||vd.whitepoint[2].E;var n,r,i,o=e[0]/t[0],s=e[1]/t[1],a=e[2]/t[2];return r=-.96924363628087*o+1.87596750150772*s+.041555057407175*a,i=.055630079696993*o+-.20397695888897*s+1.056971514242878*a,n=(n=3.240969941904521*o+-1.537383177570093*s+-.498610760293*a)>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1)),255*(i=Math.min(Math.max(0,i),1))]},md.xyz=function(e,t){var n=e[0]/255,r=e[1]/255,i=e[2]/255,o=.21263900587151*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.71516867876775*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.072192315360733*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92),s=.019330818715591*n+.11919477979462*r+.95053215224966*i;return[(.41239079926595*n+.35758433938387*r+.18048078840183*i)*(t=t||vd.whitepoint[2].E)[0],o*t[1],s*t[2]]};const _d=vd,bd={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(e,t,n){var r,i,o,s,a,l,u,c,h;return o=e[0],s=e[1],a=e[2],0===o?[0,0,0]:(t=t||"D65",n=n||2,r=s/(13*o)+4*(u=_d.whitepoint[n][t][0])/(u+15*(c=_d.whitepoint[n][t][1])+3*(h=_d.whitepoint[n][t][2]))||0,i=a/(13*o)+9*c/(u+15*c+3*h)||0,[9*(l=o>8?c*Math.pow((o+16)/116,3):c*o*.0011070564598794539)*r/(4*i)||0,l,l*(12-3*r-20*i)/(4*i)||0])}};_d.luv=function(e,t,n){var r,i,o,s,a,l,u,c,h,d,f;t=t||"D65",n=n||2,d=4*(u=_d.whitepoint[n][t][0])/(u+15*(c=_d.whitepoint[n][t][1])+3*(h=_d.whitepoint[n][t][2])),f=9*c/(u+15*c+3*h),r=4*(s=e[0])/(s+15*(a=e[1])+3*(l=e[2]))||0,i=9*a/(s+15*a+3*l)||0;var p=a/c;return[o=p<=.008856451679035631?903.2962962962961*p:116*Math.pow(p,1/3)-16,13*o*(r-d),13*o*(i-f)]};var wd={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},xyz:function(e){return bd.xyz(wd.luv(e))}};const xd=wd;bd.lchuv=function(e){var t=e[0],n=e[1],r=e[2],i=Math.sqrt(n*n+r*r),o=360*Math.atan2(r,n)/2/Math.PI;return o<0&&(o+=360),[t,i,o]},_d.lchuv=function(e){return bd.lchuv(_d.luv(e))};const Ed=[NaN,NaN,NaN,0];function Sd(e){return"string"==typeof e?e:Rd(e)}const Cd={};let Md=0;function kd(e){if(4===e.length)return e;const t=e.slice();return t[3]=1,t}function Td(e){const t=_d.lchuv(md.xyz(e));return t[3]=e[3],t}function Pd(e){if("none"===e)return Ed;if(Cd.hasOwnProperty(e))return Cd[e];if(Md>=1024){let e=0;for(const t in Cd)3&e++||(delete Cd[t],--Md)}const t=function(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var n=function(e){var t,n,r=[],i=1;
3if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if(e=String(e).toLowerCase(),pd[e])r=pd[e].slice(),n="rgb";else if("transparent"===e)i=0,n="rgb",r=[0,0,0];else if("#"===e[0]){var o=e.slice(1),s=o.length;i=1,s<=4?(r=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],4===s&&(i=parseInt(o[3]+o[3],16)/255)):(r=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],8===s&&(i=parseInt(o[6]+o[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var a=t[1],l="cmyk"===(n=a.replace(/a$/,""))?4:"gray"===n?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===n&&(n=r.shift()),i=(r=r.map((function(e,t){if("%"===e[e.length-1])return e=parseFloat(e)/100,3===t?e:"rgb"===n?255*e:"h"===n[0]?100*e:"l"!==n[0]||t?"lab"===n?125*e:"lch"===n?t<2?150*e:360*e:"o"!==n[0]||t?"oklab"===n?.4*e:"oklch"===n?t<2?.4*e:360*e:e:e:100*e;if("h"===n[t]||2===t&&"h"===n[n.length-1]){if(void 0!==gd[e])return gd[e];if(e.endsWith("deg"))return parseFloat(e);if(e.endsWith("turn"))return 360*parseFloat(e);if(e.endsWith("grad"))return 360*parseFloat(e)/400;if(e.endsWith("rad"))return 180*parseFloat(e)/Math.PI}return"none"===e?0:parseFloat(e)}))).length>l?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),n=e.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:n,values:r,alpha:i}}(e);if(!n.space)return[];const r="h"===n.space[0]?yd.min:md.min,i="h"===n.space[0]?yd.max:md.max;return(t=Array(3))[0]=Math.min(Math.max(n.values[0],r[0]),i[0]),t[1]=Math.min(Math.max(n.values[1],r[1]),i[1]),t[2]=Math.min(Math.max(n.values[2],r[2]),i[2]),"h"===n.space[0]&&(t=yd.rgb(t)),t.push(Math.min(Math.max(n.alpha,0),1)),t}(e);if(4!==t.length)throw new Error('failed to parse "'+e+'" as color');for(const n of t)if(isNaN(n))throw new Error('failed to parse "'+e+'" as color');return Id(t),Cd[e]=t,++Md,t}function Od(e){return Array.isArray(e)?e:Pd(e)}function Id(e){return e[0]=Rt(e[0]+.5|0,0,255),e[1]=Rt(e[1]+.5|0,0,255),e[2]=Rt(e[2]+.5|0,0,255),e[3]=Rt(e[3],0,1),e}function Rd(e){let t=e[0];t!=(0|t)&&(t=t+.5|0);let n=e[1];n!=(0|n)&&(n=n+.5|0);let r=e[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+t+","+n+","+r+","+(void 0===e[3]?1:Math.round(1e3*e[3])/1e3)+")"}function Ad(e,t,n){return t+":"+e+":"+(n?Od(n):"null")}const Ld=new class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const t in this.cache_){const n=this.cache_[t];3&e++||n.hasListener()||(delete this.cache_[t],delete this.patternCache_[t],--this.cacheSize_)}}}get(e,t,n){const r=Ad(e,t,n);return r in this.cache_?this.cache_[r]:null}getPattern(e,t,n){const r=Ad(e,t,n);return r in this.patternCache_?this.patternCache_[r]:null}set(e,t,n,r,i){const o=Ad(e,t,n),s=o in this.cache_;this.cache_[o]=r,i&&(0===r.getImageState()&&r.load(),1===r.getImageState()?r.ready().then((()=>{this.patternCache_[o]=id().createPattern(r.getImage(1),"repeat")})):this.patternCache_[o]=id().createPattern(r.getImage(1),"repeat")),s||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}};let Nd=null;class Dd extends Ee{constructor(e,t,n,r,i){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=n,this.canvas_={},this.color_=i,this.imageState_=void 0===r?0:r,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=t,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&2===this.imageState_){Nd||(Nd=nd(1,1,void 0,{willReadFrequently:!0})),Nd.drawImage(this.image_,0,0);try{Nd.getImageData(0,0,1,1),this.tainted_=!1}catch{Nd=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(ne)}handleImageError_(){this.imageState_=3,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=2,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],t=this.size_[1],n=nd(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(0===this.imageState_){this.image_||this.initializeImage_(),this.imageState_=1;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(e=this.image_,t=this.src_,t&&(e.src=t),e.src&&ed?new Promise(((t,n)=>e.decode().then((()=>t(e))).catch((r=>e.complete&&e.width?t(e):n(r))))):function(e){return new Promise(((t,n)=>{function r(){o(),t(e)}function i(){o(),n(new Error("Image load error"))}function o(){e.removeEventListener("load",r),e.removeEventListener("error",i)}e.addEventListener("load",r),e.addEventListener("error",i)}))}(e)).then((e=>{this.image_=e,this.handleImageLoad_()})).catch(this.handleImageError_.bind(this))}var e,t}replaceColor_(e){if(!this.color_||this.canvas_[e]||2!==this.imageState_)return;const t=this.image_,n=nd(Math.ceil(t.width*e),Math.ceil(t.height*e)),r=n.canvas;n.scale(e,e),n.drawImage(t,0,0),n.globalCompositeOperation="multiply",n.fillStyle=Sd(this.color_),n.fillRect(0,0,r.width/e,r.height/e),n.globalCompositeOperation="destination-in",n.drawImage(t,0,0),this.canvas_[e]=r}ready(){return this.ready_||(this.ready_=new Promise((e=>{if(2===this.imageState_||3===this.imageState_)e();else{const t=()=>{2!==this.imageState_&&3!==this.imageState_||(this.removeEventListener(ne,t),e())};this.addEventListener(ne,t)}}))),this.ready_}}function Fd(e,t,n,r,i,o){let s=void 0===t?void 0:Ld.get(t,n,i);return s||(s=new Dd(e,e&&"src"in e?e.src||void 0:t,n,r,i),Ld.set(t,n,i,s,o)),o&&s&&!Ld.getPattern(t,n,i)&&Ld.set(t,n,i,s,o),s}const jd=Dd;function Bd(e){return e?Array.isArray(e)?Rd(e):"object"==typeof e&&"src"in e?function(e){if(!e.offset||!e.size)return Ld.getPattern(e.src,"anonymous",e.color);const t=e.src+":"+e.offset,n=Ld.getPattern(t,void 0,e.color);if(n)return n;const r=Ld.get(e.src,"anonymous",null);if(2!==r.getImageState())return null;const i=nd(e.size[0],e.size[1]);return i.drawImage(r.getImage(1),e.offset[0],e.offset[1],e.size[0],e.size[1],0,0,e.size[0],e.size[1]),Fd(i.canvas,t,void 0,2,e.color,!0),Ld.getPattern(t,void 0,e.color)}(e):e:null}const zd=class{drawCustom(e,t,n,r,i){}drawGeometry(e){}setStyle(e){}drawCircle(e,t,n){}drawFeature(e,t,n){}drawGeometryCollection(e,t,n){}drawLineString(e,t,n){}drawMultiLineString(e,t,n){}drawMultiPoint(e,t,n){}drawMultiPolygon(e,t,n){}drawPoint(e,t,n){}drawPolygon(e,t,n){}drawText(e,t,n){}setFillStrokeStyle(e,t){}setImageStyle(e,t){}setTextStyle(e,t){}},Gd="ol-hidden",Ud="ol-unselectable",Wd="ol-unsupported",qd="ol-control",Vd="ol-collapsed",Yd=new RegExp(["^\\s*(?=(?
3:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),Hd=["style","variant","weight","size","lineHeight","family"],$d=function(e){const t=e.match(Yd);if(!t)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let e=0,r=Hd.length;e<r;++e){const r=t[e+1];void 0!==r&&(n[Hd[e]]=r)}return n.families=n.family.split(/,\s?/),n},Kd="10px sans-serif",Xd="#000",Zd="round",Jd=[],Qd="round",ef="#000",tf="center",nf="middle",rf=[0,0,0,0],of=new Ne;let sf,af=null;const lf={},uf=function(){const e="32px ",t=["monospace","serif"],n=t.length,r="wmytzilWMYTZIL@#/&?$%10ï";let i,o;function s(i,s,a){let l=!0;for(let u=0;u<n;++u){const n=t[u];if(o=df(i+" "+s+" "+e+n,r),a!=n){const t=df(i+" "+s+" "+e+a+","+n,r);l=l&&t!=o}}return!!l}function a(){let e=!0;const t=of.getKeys();for(let n=0,r=t.length;n<r;++n){const r=t[n];if(of.get(r)<100){const[t,n,i]=r.split("\n");s(t,n,i)?(be(lf),af=null,sf=void 0,of.set(r,100)):(of.set(r,of.get(r)+1,!0),e=!1)}}e&&(clearInterval(i),i=void 0)}return function(e){const t=$d(e);if(!t)return;const n=t.families;for(let e=0,r=n.length;e<r;++e){const r=n[e],o=t.style+"\n"+t.weight+"\n"+r;void 0===of.get(o)&&(of.set(o,100,!0),s(t.style,t.weight,r)||(of.set(o,0,!0),void 0===i&&(i=setInterval(a,32))))}}}(),cf=function(){let e;return function(t){let n=lf[t];if(null==n){if(Qh){const e=$d(t),r=hf(t,"Žg");n=(isNaN(Number(e.lineHeight))?1.2:Number(e.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else e||(e=document.createElement("div"),e.innerHTML="M",e.style.minHeight="0",e.style.maxHeight="none",e.style.height="auto",e.style.padding="0",e.style.border="none",e.style.position="absolute",e.style.display="block",e.style.left="-99999px"),e.style.font=t,document.body.appendChild(e),n=e.offsetHeight,document.body.removeChild(e);lf[t]=n}return n}}();function hf(e,t){return af||(af=nd(1,1)),e!=sf&&(af.font=e,sf=af.font),af.measureText(t)}function df(e,t){return hf(e,t).width}function ff(e,t,n){if(t in n)return n[t];const r=t.split("\n").reduce(((t,n)=>Math.max(t,df(e,n))),0);return n[t]=r,r}const pf={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},gf=[pf.FILL],mf=[pf.STROKE],yf=[pf.BEGIN_PATH],vf=[pf.CLOSE_PATH],_f=pf,bf=class extends zd{constructor(e,t,n,r){super(),this.tolerance=e,this.maxExtent=t,this.pixelRatio=r,this.maxLineWidth=0,this.resolution=n,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(e){const t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))}appendFlatPointCoordinates(e,t){const n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates;let o=i.length;for(let s=0,a=e.length;s<a;s+=t)r[0]=e[s],r[1]=e[s+1],We(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o}appendFlatLineCoordinates(e,t,n,r,i,o){const s=this.coordinates;let a=s.length;const l=this.getBufferedMaxExtent();o&&(t+=r);let u=e[t],c=e[t+1];const h=this.tmpCoordinate_;let d,f,p,g=!0;for(d=t+r;d<n;d+=r)h[0]=e[d],h[1]=e[d+1],p=Ye(l,h),p!==f?(g&&(s[a++]=u,s[a++]=c,g=!1),s[a++]=h[0],s[a++]=h[1]):1===p?(s[a++]=h[0],s[a++]=h[1],g=!1):g=!0,u=h[0],c=h[1],f=p;return(i&&g||d===t+r)&&(s[a++]=u,s[a++]=c),a}drawCustomCoordinates_(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o],a=this.appendFlatLineCoordinates(e,t,s,r,!1,!1);i.push(a),t=s}return t}drawCustom(e,t,n,r,i){this.beginGeometry(e,t,i);const o=e.getType(),s=e.getStride(),a=this.coordinates.length;let l,u,c,h,d;switch(o){case"MultiPolygon":l=e.getOrientedFlatCoordinates(),h=[];const t=e.getEndss();d=0;for(let e=0,n=t.length;e<n;++e){const n=[];d=this.drawCustomCoordinates_(l,d,t[e],s,n),h.push(n)}this.instructions.push([_f.CUSTOM,a,h,e,n,zr,i]),this.hitDetectionInstructions.push([_f.CUSTOM,a,h,e,r||n,zr,i]);break;case"Polygon":case"MultiLineString":c=[],l="Polygon"==o?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),d=this.drawCustomCoordinates_(l,0,e.getEnds(),s,c),this.instructions.push([_f.CUSTOM,a,c,e,n,Br,i]),this.hitDetectionInstructions.push([_f.CUSTOM,a,c,e,r||n,Br,i]);break;
3case"LineString":case"Circle":l=e.getFlatCoordinates(),u=this.appendFlatLineCoordinates(l,0,l.length,s,!1,!1),this.instructions.push([_f.CUSTOM,a,u,e,n,jr,i]),this.hitDetectionInstructions.push([_f.CUSTOM,a,u,e,r||n,jr,i]);break;case"MultiPoint":l=e.getFlatCoordinates(),u=this.appendFlatPointCoordinates(l,s),u>a&&(this.instructions.push([_f.CUSTOM,a,u,e,n,jr,i]),this.hitDetectionInstructions.push([_f.CUSTOM,a,u,e,r||n,jr,i]));break;case"Point":l=e.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([_f.CUSTOM,a,u,e,n,void 0,i]),this.hitDetectionInstructions.push([_f.CUSTOM,a,u,e,r||n,void 0,i])}this.endGeometry(t)}beginGeometry(e,t,n){this.beginGeometryInstruction1_=[_f.BEGIN_GEOMETRY,t,0,e,n],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[_f.BEGIN_GEOMETRY,t,0,e,n],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const e=this.hitDetectionInstructions;let t;e.reverse();const n=e.length;let r,i,o=-1;for(t=0;t<n;++t)r=e[t],i=r[0],i==_f.END_GEOMETRY?o=t:i==_f.BEGIN_GEOMETRY&&(r[2]=t,fe(this.hitDetectionInstructions,o,t),o=-1)}fillStyleToState(e,t={}){if(e){const n=e.getColor();t.fillPatternScale=n&&"object"==typeof n&&"src"in n?this.pixelRatio:1,t.fillStyle=Bd(n||Xd)}else t.fillStyle=void 0;return t}strokeStyleToState(e,t={}){if(e){const n=e.getColor();t.strokeStyle=Bd(n||ef);const r=e.getLineCap();t.lineCap=void 0!==r?r:Zd;const i=e.getLineDash();t.lineDash=i?i.slice():Jd;const o=e.getLineDashOffset();t.lineDashOffset=o||0;const s=e.getLineJoin();t.lineJoin=void 0!==s?s:Qd;const a=e.getWidth();t.lineWidth=void 0!==a?a:1;const l=e.getMiterLimit();t.miterLimit=void 0!==l?l:10,t.lineWidth>this.maxLineWidth&&(this.maxLineWidth=t.lineWidth,this.bufferedMaxExtent_=null)}else t.strokeStyle=void 0,t.lineCap=void 0,t.lineDash=null,t.lineDashOffset=void 0,t.lineJoin=void 0,t.lineWidth=void 0,t.miterLimit=void 0;return t}setFillStrokeStyle(e,t){const n=this.state;this.fillStyleToState(e,n),this.strokeStyleToState(t,n)}createFill(e){const t=e.fillStyle,n=[_f.SET_FILL_STYLE,t];return"string"!=typeof t&&n.push(e.fillPatternScale),n}applyStroke(e){this.instructions.push(this.createStroke(e))}createStroke(e){return[_f.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,e.lineDash?this.applyPixelRatio(e.lineDash):null,e.lineDashOffset*this.pixelRatio]}updateFillStyle(e,t){const n=e.fillStyle;"string"==typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)}updateStrokeStyle(e,t){const n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!ge(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=s||e.currentLineWidth!=a||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=s,e.currentLineWidth=a,e.currentMiterLimit=l)}endGeometry(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const t=[_f.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Ge(this.maxExtent),this.maxLineWidth>0)){const e=this.resolution*(this.maxLineWidth+1)/2;ze(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}},wf=class extends bf{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinatess_(e,t,n,r){const i=this.state,o=void 0!==i.fillStyle,s=void 0!==i.strokeStyle,a=n.length;this.instructions.push(yf),this.hitDetectionInstructions.push(yf);for(let i=0;i<a;++i){const o=n[i],a=this.coordinates.length,l=this.appendFlatLineCoordinates(e,t,o,r,!0,!s),u=[_f.MOVE_TO_LINE_TO,a,l];this.instructions.push(u),this.hitDetectionInstructions.push(u),s&&(this.instructions.push(vf),this.hitDetectionInstructions.push(vf)),t=o}return o&&(this.instructions.push(gf),this.hitDetectionInstructions.push(gf)),s&&(this.instructions.push(mf),this.hitDetectionInstructions.push(mf)),t}drawCircle(e,t,n){const r=this.state,i=r.fillStyle,o=r.strokeStyle;if(void 0===i&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(e,t,n),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([_f.SET_FILL_STYLE,Xd]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([_f.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miter
3Limit,Jd,0]);const s=e.getFlatCoordinates(),a=e.getStride(),l=this.coordinates.length;this.appendFlatLineCoordinates(s,0,s.length,a,!1,!1);const u=[_f.CIRCLE,l];this.instructions.push(yf,u),this.hitDetectionInstructions.push(yf,u),void 0!==r.fillStyle&&(this.instructions.push(gf),this.hitDetectionInstructions.push(gf)),void 0!==r.strokeStyle&&(this.instructions.push(mf),this.hitDetectionInstructions.push(mf)),this.endGeometry(t)}drawPolygon(e,t,n){const r=this.state,i=r.fillStyle,o=r.strokeStyle;if(void 0===i&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(e,t,n),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([_f.SET_FILL_STYLE,Xd]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([_f.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,Jd,0]);const s=e.getEnds(),a=e.getOrientedFlatCoordinates(),l=e.getStride();this.drawFlatCoordinatess_(a,0,s,l),this.endGeometry(t)}drawMultiPolygon(e,t,n){const r=this.state,i=r.fillStyle,o=r.strokeStyle;if(void 0===i&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(e,t,n),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([_f.SET_FILL_STYLE,Xd]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([_f.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,Jd,
vendor: 44,689 bytes, line 3
30]);const s=e.getEndss(),a=e.getOrientedFlatCoordinates(),l=e.getStride();let u=0;for(let e=0,t=s.length;e<t;++e)u=this.drawFlatCoordinatess_(a,u,s[e],l);this.endGeometry(t)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const e=this.tolerance;if(0!==e){const t=this.coordinates;for(let n=0,r=t.length;n<r;++n)t[n]=Qr(t[n],e)}return super.finish()}setFillStrokeStyles_(){const e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)}};function xf(e,t,n,r,i){const o=[];let s=n,a=0,l=t.slice(n,2);for(;a<e&&s+i<r;){const[n,r]=l.slice(-2),u=t[s+i],c=t[s+i+1],h=Math.sqrt((u-n)*(u-n)+(c-r)*(c-r));if(a+=h,a>=e){const t=(e-a+h)/h,d=jt(n,u,t),f=jt(r,c,t);l.push(d,f),o.push(l),l=[d,f],a==e&&(s+=i),a=0}else if(a<e)l.push(t[s+i],t[s+i+1]),s+=i;else{const e=h-a,t=jt(n,u,e/h),d=jt(r,c,e/h);l.push(t,d),o.push(l),l=[t,d],a=0,s+=i}}return a>0&&o.push(l),o}function Ef(e,t,n,r,i){let o,s,a,l,u,c,h,d,f,p,g=n,m=n,y=0,v=0,_=n;for(s=n;s<r;s+=i){const n=t[s],r=t[s+1];void 0!==u&&(f=n-u,p=r-c,l=Math.sqrt(f*f+p*p),void 0!==h&&(v+=a,o=Math.acos((h*f+d*p)/(a*l)),o>e&&(v>y&&(y=v,g=_,m=s),v=0,_=s-i)),a=l,h=f,d=p),u=n,c=r}return v+=l,v>y?[_,s]:[g,m]}const Sf={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Cf={Circle:wf,Default:bf,Image:class extends bf{constructor(e,t,n,r){super(e,t,n,r),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(e,t,n){if(!this.image_||this.maxExtent&&!We(this.maxExtent,e.getFlatCoordinates()))return;this.beginGeometry(e,t,n);const r=e.getFlatCoordinates(),i=e.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(r,i);this.instructions.push([_f.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([_f.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}drawMultiPoint(e,t,n){if(!this.image_)return;this.beginGeometry(e,t,n);const r=e.getFlatCoordinates(),i=[];for(let t=0,n=r.length;t<n;t+=e.getStride())this.maxExtent&&!We(this.maxExtent,r.slice(t,t+2))||i.push(r[t],r[t+1]);const o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,2);this.instructions.push([_f.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([_f.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(e,t){const n=e.getAnchor(),r=e.getSize(),i=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t}},LineString:class extends bf{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinates_(e,t,n,r){const i=this.coordinates.length,o=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),s=[_f.MOVE_TO_LINE_TO,i,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n}drawLineString(e,t,n){const r=this.state,i=r.strokeStyle,o=r.lineWidth;if(void 0===i||void 0===o)return;this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(e,t,n),this.hitDetectionInstructions.push([_f.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,Jd,0],yf);const s=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(s,0,s.length,a),this.hitDetectionInstructions.push(mf),this.endGeometry(t)}drawMultiLineString(e,t,n){const r=this.state,i=r.strokeStyle,o=r.lineWidth;if(void 0===i||void 0===o)return;this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(e,t,n),this.hitDetectionInstructions.push([_f.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,Jd,0],yf);const s=e.getEnds(),a=e.getFlatCoordinates(),l=e.getStride();let u=0;for(let e=0,t=s.length;e<t;++e)u=this.drawFlatCoordinates_(a,u,s[e],l);this.hitDetectionInstructions.push(mf),this.endGeometry(t)}finish(){const e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(mf),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(mf),e.lastStroke=this.coordinates.length),e.lastStroke=0,super.applyStroke(e),this.instructions.push(yf)}},Polygon:wf,Text:class extends bf{constructor(e,t,n,r){super(e,t,n,r),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textKeepUpright_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[Xd]={fillStyle:Xd},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const e=super.finish();return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e}drawText(e,t,n){const r=this.textFillState_,i=this.textStrokeState_,o=this.textState_;if(""===this.text_||!o||!r&&!i)return;const s=this.coordinates;let a=s.length;const l=e.getType();let u=null,c=e.getStride();if("line"!==o.placement||"LineString"!=l&&"MultiLineString"!=l&&"Polygon"!=l&&"MultiPolygon"!=l){let r=o.overflow?null:[];switch(l){case"Point":case"MultiPoint":u=e.getFlatCoordinates();break;case"LineString":u=e.getFlatMidpoint();break;case"Circle":u=e.getCenter();break;case"MultiLineString":u=e.getFlatMidpoints(),c=2;break;case"Polygon":u=e.getFlatInteriorPoint(),o.overflow||r.push(u[2]/this.resolution),c=3;break;case"MultiPolygon":const t=e.getFlatInteriorPoints();u=[];for(let e=0,n=t.length;e<n;e+=3)o.overflow||r.push(t[e+2]/this.resolution),u.push(t[e],t[e+1]);if(0===u.length)return;c=2}const i=this.appendFlatPointCoordinates(u,c);if(i===a)return;if(r&&(i-a)/2!=u.length/c){let e=a/2;r=r.filter(((t,n)=>{const r=s[2*(e+n)]===u[n*c]&&s[2*(e+n)+1]===u[n*c+1];return r||--e,r}))}this.saveTextStates_();const h=o.backgroundFill?this.createFill(this.fillStyleToState(o.backgroundFill)):null,d=o.backgroundStroke?this.createStroke(this.strokeStyleToState(o.backgroundStroke)):null;this.beginGeometry(e,t,n);let f=o.padding;if(f!=rf&&(o.scale[0]<0||o.scale[1]<0)){let e=o.padding[0],t=o.padding[1],n=o.padding[2],r=o.padding[3];o.scale[0]<0&&(t=-t,r=-r),o.scale[1]<0&&(e=-e,n=-n),f=[e,t,n,r]}const p=this.pixelRatio;this.instructions.push([_f.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,f==rf?rf:f.map((function(e){return e*p})),h,d,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,r]);const g=1/p,m=h?h.slice(0):null;m&&(m[1]=Xd),this.hitDetectionInstructions.push([_f.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[g,g],NaN,this.declutterMode_,this.declutterImageWithText_,f,m,d,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?Xd:this.fillKey_,this.textOffsetX_,this.textOffsetY_,r]),this.endGeometry(t)}else{if(!gt(this.maxExtent,e.getExtent()))return;let r;if(u=e.getFlatCoordinates(),"LineString"==l)r=[u.length];else if("MultiLineString"==l)r=e.getEnds();else if("Polygon"==l)r=e.getEnds().slice(0,1);else if("MultiPolygon"==l){const t=e.getEndss();r=[];for(let e=0,n=t.length;e<n;++e)r.push(t[e][0])}this.beginGeometry(e,t,n);const i=o.repeat,h=i?void 0:o.textAlign;let d=0;for(let e=0,t=r.length;e<t;++e){let t;t=i?xf(i*this.resolution,u,d,r[e],c):[u.slice(d,r[e])];for(let n=0,i=t.length;n<i;++n){const i=t[n];let l=0,u=i.length;if(null==h){const e=Ef(o.maxAngle,i,0,i.length,2);l=e[0],u=e[1]}for(let e=l;e<u;e+=c)s.push(i[e],i[e+1]);const f=s.length;d=r[e],this.drawChars_(a,f),a=f}}this.endGeometry(t)}}saveTextStates_(){const e=this.textStrokeState_,t=this.textState_,n=this.textFillState_,r=this.strokeKey_;e&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));const i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||tf,justify:t.justify,textBaseline:t.textBaseline||nf,scale:t.scale});const o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))}drawChars_(e,t){const n=this.textStrokeState_,r=this.textState_,i=this.strokeKey_,o=this.textKey_,s=this.fillKey_;this.saveTextStates_();const a=this.pixelRatio,l=Sf[r.textBaseline],u=this.textOffsetY_*a,c=this.text_,h=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([_f.DRAW_CHARS,e,t,l,r.overflow,s,r.maxAngle,a,u,i,h*a,c,o,1,this.declutterMode_,this.textKeepUpright_]),this.hitDetectionInstructions.push([_f.DRAW_CHARS,e,t,l,r.overflow,s?Xd:s,r.maxAngle,a,u,i,h*a,c,o,1/a,this.declutterMode_,this.textKeepUpright_])}setTextStyle(e,t){let n,r,i;if(e){const t=e.getFill();t?(r=this.textFillState_,r||(r={},this.textFillState_=r),r.fillStyle=Bd(t.getColor()||Xd)):(r=null,this.textFillState_=r);const o=e.getStroke();if(o){i=this.textStrokeState_,i||(i={},this.textStrokeState_=i);const e=o.getLineDash(),t=o.getLineDashOffset(),n=o.getWidth(),r=o.getMiterLimit();i.lineCap=o.getLineCap()||Zd,i.lineDash=e?e.slice():Jd,i.lineDashOffset=void 0===t?0:t,i.lineJoin=o.getLineJoin()||Qd,i.lineWidth=void 0===n?1:n,i.miterLimit=void 0===r?10:r,i.strokeStyle=Bd(o.getColor()||ef)}else i=null,this.textStrokeState_=i;n=this.textState_;const s=e.getFont()||Kd;uf(s);const a=e.getScaleArray();n.overflow=e.getOverflow(),n.font=s,n.maxAngle=e.getMaxAngle(),n.placement=e.getPlacement(),n.textAlign=e.getTextAlign(),n.repeat=e.getRepeat(),n.justify=e.getJustify(),n.textBaseline=e.getTextBaseline()||nf,n.backgroundFill=e.getBackgroundFill(),n.backgroundStroke=e.getBackgroundStroke(),n.padding=e.getPadding()||rf,n.scale=void 0===a?[1,1]:a;const l=e.getOffsetX(),u=e.getOffsetY(),c=e.getRotateWithView(),h=e.getKeepUpright(),d=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===l?0:l,this.textOffsetY_=void 0===u?0:u,this.textRotateWithView_=void 0!==c&&c,this.textKeepUpright_=void 0===h||h,this.textRotation_=void 0===d?0:d,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:Re(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.repeat||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=r&&r.fillStyle?"string"==typeof r.fillStyle?r.fillStyle:"|"+Re(r.fillStyle):""}else this.text_="";this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t}}},Mf=class{constructor(e,t,n,r){this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}finish(){const e={};for(const t in this.buildersByZIndex_){e[t]=e[t]||{};const n=this.buildersByZIndex_[t];for(const r in n){const i=n[r].finish();e[t][r]=i}}return e}getBuilder(e,t){const n=void 0!==e?e.toString():"0";let r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);let i=r[t];return void 0===i&&(i=new(0,Cf[t])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[t]=i),i}};function kf(e,t,n,r,i,o,s,a,l,u,c,h,d=!0){let f=e[t],p=e[t+1],g=0,m=0,y=0,v=0;function _(){g=f,m=p,f=e[t+=r],p=e[t+1],v+=y,y=Math.sqrt((f-g)*(f-g)+(p-m)*(p-m))}do{_()}while(t<n-r&&v+y<o);let b=0===y?0:(o-v)/y;const w=jt(g,f,b),x=jt(m,p,b),E=t-r,S=v,C=o+a*l(u,i,c);for(;t<n-r&&v+y<C;)_();b=0===y?0:(C-v)/y;const M=jt(g,f,b),k=jt(m,p,b);let T=!1;if(d)if(h){const e=[w,x,M,k];wr(e,0,4,2,h,e,e),T=e[0]>e[2]}else T=w>M;const P=Math.PI,O=[],I=E+r===t;let R;if(y=0,v=S,f=e[t=E],p=e[t+1],I){_(),R=Math.atan2(p-m,f-g),T&&(R+=R>0?-P:P);const e=(M+w)/2,t=(k+x)/2;return O[0]=[e,t,(C-o)/2,R,i],O}for(let e=0,h=(i=i.replace(/\n/g," ")).length;e<h;){_();let d=Math.atan2(p-m,f-g);if(T&&(d+=d>0?-P:P),void 0!==R){let e=d-R;if(e+=e>P?-2*P:e<-P?2*P:0,Math.abs(e)>s)return null}R=d;const w=e;let x=0;for(;e<h;++e){const s=a*l(u,i[T?h-e-1:e],c);if(t+r<n&&v+y<o+x+s/2)break;x+=s}if(e===w)continue;const E=T?i.substring(h-w,h-e):i.substring(w,e);b=0===y?0:(o+x/2-v)/y;const S=jt(g,f,b),C=jt(m,p,b);O.push([S,C,x/2,d,E]),o+=x}return O}const Tf=class{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy(id(),{get:(e,t)=>{if("function"==typeof id()[t])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(t),this.pushMethodArgs_},set:(e,t,n)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(t,n),!0)})}pushMethodArgs_=(...e)=>(this.instructions_[this.zIndex+this.offset_].push(e),this);pushFunction(e){this.instructions_[this.zIndex+this.offset_].push(e)}getContext(){return this.context_}draw(e){this.instructions_.forEach((t=>{for(let n=0,r=t.length;n<r;++n){const r=t[n];if("function"==typeof r){r(e);continue}const i=t[++n];if("function"==typeof e[r])e[r](...i);else{if("function"==typeof i){e[r]=i(e);continue}e[r]=i}}}))}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}},Pf=[1/0,1/0,-1/0,-1/0],Of=[],If=[],Rf=[],Af=[];function Lf(e){return e[3].declutterBox}const Nf=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function Df(e,t){return"start"===t?t=Nf.test(e)?"right":"left":"end"===t&&(t=Nf.test(e)?"left":"right"),Sf[t]}function Ff(e,t,n){return n>0&&e.push("\n",""),e.push(t,""),e}const jf=class{constructor(e,t,n,r,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=i?new Tf:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,n,r){const i=e+t+n+r;if(this.labels_[i])return this.labels_[i];const o=r?this.strokeStates[r]:null,s=n?this.fillStates[n]:null,a=this.textStates[t],l=this.pixelRatio,u=[a.scale[0]*l,a.scale[1]*l],c=a.justify?Sf[a.justify]:Df(Array.isArray(e)?e[0]:e,a.textAlign||tf),h=r&&o.lineWidth?o.lineWidth:0,d=Array.isArray(e)?e:String(e).split("\n").reduce(Ff,[]),{width:f,height:p,widths:g,heights:m,lineWidths:y}=function(e,t){const n=[],r=[],i=[];let o=0,s=0,a=0,l=0;for(let u=0,c=t.length;u<=c;u+=2){const h=t[u];if("\n"===h||u===c){o=Math.max(o,s),i.push(s),s=0,a+=l,l=0;continue}const d=t[u+1]||e.font,f=df(d,h);n.push(f),s+=f;const p=cf(d);r.push(p),l=Math.max(l,p)}return{width:o,height:a,widths:n,heights:r,lineWidths:i}}(a,d),v=f+h,_=[],b=(v+2)*u[0],w=(p+h)*u[1],x={width:b<0?Math.floor(b):Math.ceil(b),height:w<0?Math.floor(w):Math.ceil(w),contextInstructions:_};1==u[0]&&1==u[1]||_.push("scale",u),r&&(_.push("strokeStyle",o.strokeStyle),_.push("lineWidth",h),_.push("lineCap",o.lineCap),_.push("lineJoin",o.lineJoin),_.push("miterLimit",o.miterLimit),_.push("setLineDash",[o.lineDash]),_.push("lineDashOffset",o.lineDashOffset)),n&&_.push("fillStyle",s.fillStyle),_.push("textBaseline","middle"),_.push("textAlign","center");const E=.5-c;let S=c*v+E*h;const C=[],M=[];let k,T=0,P=0,O=0,I=0;for(let e=0,t=d.length;e<t;e+=2){const t=d[e];if("\n"===t){P+=T,T=0,S=c*v+E*h,++I;continue}const i=d[e+1]||a.font;i!==k&&(r&&C.push("font",i),n&&M.push("font",i),k=i),T=Math.max(T,m[O]);const o=[t,S+E*g[O]+c*(g[O]-y[I]),.5*(h+T)+P];S+=g[O],r&&C.push("strokeText",o),n&&M.push("fillText",o),++O}return Array.prototype.push.apply(_,C),Array.prototype.push.apply(_,M),this.labels_[i]=x,x}replayTextBackground_(e,t,n,r,i,o,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignAndScaleFill_=o[2],e.fillStyle=o[1],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())}calculateImageOrLabelDimensions_(e,t,n,r,i,o,s,a,l,u,c,h,d,f,p,g){let m=n-(s*=h[0]),y=r-(a*=h[1]);const v=i+l>e?e-l:i,_=o+u>t?t-u:o,b=f[3]+v*h[0]+f[1],w=f[0]+_*h[1]+f[2],x=m-f[3],E=y-f[0];let S;return(p||0!==c)&&(Of[0]=x,Af[0]=x,Of[1]=E,If[1]=E,If[0]=x+b,Rf[0]=If[0],Rf[1]=E+w,Af[1]=Rf[1]),0!==c?(S=yr([1,0,0,1,0,0],n,r,1,1,c,-n,-r),mr(S,Of),mr(S,If),mr(S,Rf),mr(S,Af),He(Math.min(Of[0],If[0],Rf[0],Af[0]),Math.min(Of[1],If[1],Rf[1],Af[1]),Math.max(Of[0],If[0],Rf[0],Af[0]),Math.max(Of[1],If[1],Rf[1],Af[1]),Pf)):He(Math.min(x,x+b),Math.min(E,E+w),Math.max(x,x+b),Math.max(E,E+w),Pf),d&&(m=Math.round(m),y=Math.round(y)),{drawImageX:m,drawImageY:y,drawImageW:v,drawImageH:_,originX:l,originY:u,declutterBox:{minX:Pf[0],minY:Pf[1],maxX:Pf[2],maxY:Pf[3],value:g},canvasTransform:S,scale:h}}replayImageOrLabel_(e,t,n,r,i,o,s){const a=!(!o&&!s),l=r.declutterBox,u=s?s[2]*r.scale[0]/2:0;return l.minX-u<=t[0]&&l.maxX+u>=0&&l.minY-u<=t[1]&&l.maxY+u>=0&&(a&&this.replayTextBackground_(e,Of,If,Rf,Af,o,s),function(e,t,n,r,i,o,s,a,l,u,c){e.save(),1!==n&&(void 0===e.globalAlpha?e.globalAlpha=e=>e.globalAlpha*=n:e.globalAlpha*=n),t&&e.transform.apply(e,t),r.contextInstructions?(e.translate(l,u),e.scale(c[0],c[1]),function(e,t){const n=e.contextInstructions;for(let e=0,r=n.length;e<r;e+=2)Array.isArray(n[e+1])?t[n[e]].apply(t,n[e+1]):t[n[e]]=n[e+1]}(r,e)):c[0]<0||c[1]<0?(e.translate(l,u),e.scale(c[0],c[1]),e.drawImage(r,i,o,s,a,0,0,s,a)):e.drawImage(r,i,o,s,a,l,u,s*c[0],a*c[1]),e.restore()}(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const n=mr(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(n[0]%r,n[1]%r),1!==t&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6])}drawLabelWithPointPlacement_(e,t,n,r){const i=this.textStates[t],o=this.createLabel(e,t,r,n),s=this.strokeStates[n],a=this.pixelRatio,l=Df(Array.isArray(e)?e[0]:e,i.textAlign||tf),u=Sf[i.textBaseline||nf],c=s&&s.lineWidth?s.lineWidth:0;return{label:o,anchorX:l*(o.width/a-2*i.scale[0])+2*(.5-l)*c,anchorY:u*o.height/a+2*(.5-u)*c}}execute_(e,t,n,r,i,o,s,a){const l=this.zIndexContext_;let u;var c,h;this.pixelCoordinates_&&ge(n,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=br(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),h=n,(c=this.renderedTransform_)[0]=h[0],c[1]=h[1],c[2]=h[2],c[3]=h[3],c[4]=h[4],c[5]=h[5]);let d=0;const f=r.length;let p,g,m,y,v,_,b,w,x,E,S,C,M,k=0,T=0,P=0;const O=this.coordinateCache_,I=this.viewRotation_,R=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,A={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:I},L=this.instructions!=r||this.overlaps?0:200;let N,D,F,j;for(;d<f;){const n=r[d];switch(n[0]){case _f.BEGIN_GEOMETRY:N=n[1],j=n[3],N.getGeometry()?void 0===s||gt(s,j.getExtent())?++d:d=n[2]+1:d=n[2],l&&(l.zIndex=n[4]);break;case _f.BEGIN_PATH:T>L&&(this.fill_(e),T=0),P>L&&(e.stroke(),P=0),T||P||(e.beginPath(),v=NaN,_=NaN),++d;break;case _f.CIRCLE:k=n[1];const r=u[k],c=u[k+1],h=u[k+2]-r,f=u[k+3]-c,B=Math.sqrt(h*h+f*f);e.moveTo(r+B,c),e.arc(r,c,B,0,2*Math.PI,!0),++d;break;case _f.CLOSE_PATH:e.closePath(),++d;break;case _f.CUSTOM:k=n[1],p=n[2];const z=n[3],G=n[4],U=n[5];A.geometry=z,A.feature=N,d in O||(O[d]=[]);const W=O[d];U?U(u,k,p,2,W):(W[0]=u[k],W[1]=u[k+1],W.length=2),l&&(l.zIndex=n[6]),G(W,A),++d;break;case _f.DRAW_IMAGE:k=n[1],p=n[2],x=n[3],g=n[4],m=n[5];let q=n[6];const V=n[7],Y=n[8],H=n[9],$=n[10];let K=n[11];const X=n[12];let Z=n[13];y=n[14]||"declutter";const J=n[15];if(!x&&n.length>=20){E=n[19],S=n[20],C=n[21],M=n[22];const e=this.drawLabelWithPointPlacement_(E,S,C,M);x=e.label,n[3]=x;const t=n[23];g=(e.anchorX-t)*this.pixelRatio,n[4]=g;const r=n[24];m=(e.anchorY-r)*this.pixelRatio,n[5]=m,q=x.height,n[6]=q,Z=x.width,n[13]=Z}let Q,ee,te,ne;n.length>25&&(Q=n[25]),n.length>17?(ee=n[16],te=n[17],ne=n[18]):(ee=rf,te=null,ne=null),$&&R?K+=I:$||R||(K-=I);let re=0;for(;k<p;k+=2){if(Q&&Q[re++]<Z/this.pixelRatio)continue;const n=this.calculateImageOrLabelDimensions_(x.width,x.height,u[k],u[k+1],Z,q,g,m,Y,H,K,X,i,ee,!!te||!!ne,N),r=[e,t,x,n,V,te,ne];if(a){let e,t,i,o,s;if(J){const n=p-k;if(!J[n]){J[n]={args:r,declutterMode:y};continue}const o=J[n];e=o.args,t=o.declutterMode,delete J[n],i=Lf(e)}if(!e||"declutter"===t&&a.collides(i)||(o=!0),"declutter"===y&&a.collides(n.declutterBox)||(s=!0),"declutter"===t&&"declutter"===y){const e=o&&s;o=e,s=e}o&&("none"!==t&&a.insert(i),this.replayImageOrLabel_.apply(this,e)),s&&("none"!==y&&a.insert(n.declutterBox),this.replayImageOrLabel_.apply(this,r))}else this.replayImageOrLabel_.apply(this,r)}++d;break;case _f.DRAW_CHARS:const ie=n[1],oe=n[2],se=n[3],ae=n[4];M=n[5];const le=n[6],ue=n[7],ce=n[8];C=n[9];const he=n[10];E=n[11],S=n[12];const de=[n[13],n[13]];y=n[14]||"declutter";const fe=n[15],pe=this.textStates[S],ge=pe.font,me=[pe.scale[0]*ue,pe.scale[1]*ue];let ye;ge in this.widths_?ye=this.widths_[ge]:(ye={},this.widths_[ge]=ye);const ve=Xr(u,ie,oe,2),_e=Math.abs(me[0])*ff(ge,E,ye);if(ae||_e<=ve){const n=kf(u,ie,oe,2,E,(ve-_e)*Df(E,this.textStates[S].textAlign),le,Math.abs(me[0]),ff,ge,ye,R?0:this.viewRotation_,fe);e:if(n){const r=[];let i,o,s,l,u;if(C)for(i=0,o=n.length;i<o;++i){u=n[i],s=u[4],l=this.createLabel(s,S,"",C),g=u[2]+(me[0]<0?-he:he),m=se*l.height+2*(.5-se)*he*me[1]/me[0]-ce;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,u[0],u[1],l.width,l.height,g,m,0,0,u[3],de,!1,rf,!1,N);if(a&&"declutter"===y&&a.collides(o.declutterBox))break e;r.push([e,t,l,o,1,null,null])}if(M)for(i=0,o=n.length;i<o;++i){u=n[i],s=u[4],l=this.createLabel(s,S,M,""),g=u[2],m=se*l.height-ce;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,u[0],u[1],l.width,l.height,g,m,0,0,u[3],de,!1,rf,!1,N);if(a&&"declutter"===y&&a.collides(o.declutterBox))break e;r.push([e,t,l,o,1,null,null])}a&&"none"!==y&&a.load(r.map(Lf));for(let e=0,t=r.length;e<t;++e)this.replayImageOrLabel_.apply(this,r[e])}}++d;break;case _f.END_GEOMETRY:if(void 0!==o){N=n[1];const e=o(N,j,y);if(e)return e}++d;break;case _f.FILL:L?T++:this.fill_(e),++d;break;case _f.MOVE_TO_LINE_TO:for(k=n[1],p=n[2],D=u[k],F=u[k+1],e.moveTo(D,F),v=D+.5|0,_=F+.5|0,k+=2;k<p;k+=2)D=u[k],F=u[k+1],b=D+.5|0,w=F+.5|0,k!=p-2&&b===v&&w===_||(e.lineTo(D,F),v=b,_=w);++d;break;case _f.SET_FILL_STYLE:this.alignAndScaleFill_=n[2],T&&(this.fill_(e),T=0,P&&(e.stroke(),P=0)),e.fillStyle=n[1],++d;break;case _f.SET_STROKE_STYLE:P&&(e.stroke(),P=0),this.setStrokeStyle_(e,n),++d;break;case _f.STROKE:L?P++:e.stroke(),++d;break;default:++d}}T&&this.fill_(e),P&&e.stroke()}execute(e,t,n,r,i,o){this.viewRotation_=r,this.execute_(e,t,n,this.instructions,i,void 0,void 0,o)}executeHitDetection(e,t,n,r,i){return this.viewRotation_=n,this.execute_(e,[e.canvas.width,e.canvas.height],t,this.hitDetectionInstructions,!0,r,i)}},Bf=["Polygon","Circle","LineString","Image","Text","Default"],zf=["Image","Text"],Gf=Bf.filter((e=>!zf.includes(e))),Uf={},Wf=class{constructor(e,t,n,r,i,o,s){this.maxExtent_=e,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=[1,0,0,1,0,0],this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(i,s)}clip(e,t){const n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()}createExecutors_(e,t){for(const n in e){let r=this.executorsByZIndex_[n];void 0===r&&(r={},this.executorsByZIndex_[n]=r);const i=e[n];for(const e in i){const n=i[e];r[e]=new jf(this.resolution_,this.pixelRatio_,this.overlaps_,n,t)}}}hasExecutors(e){for(const t in this.executorsByZIndex_){const n=this.executorsByZIndex_[t];for(let t=0,r=e.length;t<r;++t)if(e[t]in n)return!0}return!1}forEachFeatureAtCoordinate(e,t,n,r,i,o){const s=2*(r=Math.round(r))+1,a=yr(this.hitDetectionTransform_,r+.5,r+.5,1/t,-1/t,-n,-e[0],-e[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=nd(s,s,void 0,{willReadFrequently:!0}));const u=this.hitDetectionContext_;let c;u.canvas.width!==s||u.canvas.height!==s?(u.canvas.width=s,u.canvas.height=s):l||u.clearRect(0,0,s,s),void 0!==this.renderBuffer_&&(c=[1/0,1/0,-1/0,-1/0],Qe(c,e),ze(c,t*(this.renderBuffer_+r),c));const h=function(e){if(void 0!==Uf[e])return Uf[e];const t=2*e+1,n=e*e,r=new Array(n+1);for(let i=0;i<=e;++i)for(let o=0;o<=e;++o){const s=i*i+o*o;if(s>n)break;let a=r[s];a||(a=[],r[s]=a),a.push(4*((e+i)*t+(e+o))+3),i>0&&a.push(4*((e-i)*t+(e+o))+3),o>0&&(a.push(4*((e+i)*t+(e-o))+3),i>0&&a.push(4*((e-i)*t+(e-o))+3))}const i=[];for(let e=0,t=r.length;e<t;++e)r[e]&&i.push(...r[e]);return Uf[e]=i,i}(r);let d;function f(e,t,n){const a=u.getImageData(0,0,s,s).data;for(let l=0,c=h.length;l<c;l++)if(a[h[l]]>0){if(!o||"none"===n||"Image"!==d&&"Text"!==d||o.includes(e)){const n=(h[l]-3)/4,o=r-n%s,a=r-(n/s|0),u=i(e,t,o*o+a*a);if(u)return u}u.clearRect(0,0,s,s);break}}const p=Object.keys(this.executorsByZIndex_).map(Number);let g,m,y,v,_;for(p.sort(ce),g=p.length-1;g>=0;--g){const e=p[g].toString();for(y=this.executorsByZIndex_[e],m=Bf.length-1;m>=0;--m)if(d=Bf[m],v=y[d],void 0!==v&&(_=v.executeHitDetection(u,a,n,f,c),_))return _}}getClipCoords(e){const t=this.maxExtent_;if(!t)return null;const n=t[0],r=t[1],i=t[2],o=t[3],s=[n,r,n,o,i,o,i,r];return br(s,0,8,2,e,s),s}isEmpty(){return we(this.executorsByZIndex_)}execute(e,t,n,r,i,o,s){const a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(s?he:ce),o=o||Bf;const l=Bf.length;for(let u=0,c=a.length;u<c;++u){const c=a[u].toString(),h=this.executorsByZIndex_[c];for(let c=0,d=o.length;c<d;++c){const d=o[c],f=h[d];if(void 0!==f){const o=null===s?void 0:f.getZIndexContext(),h=o?o.getContext():e,p=this.maxExtent_&&"Image"!==d&&"Text"!==d;if(p&&(h.save(),this.clip(h,n)),o&&"Text"!==d&&"Image"!==d?o.pushFunction((e=>f.execute(e,t,n,r,i,s))):f.execute(h,t,n,r,i,s),p&&h.restore(),o){o.offset();const e=a[u]*l+c;this.deferredZIndexContexts_[e]||(this.deferredZIndexContexts_[e]=[]),this.deferredZIndexContexts_[e].push(o)}}}}this.renderedContext_=e}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const e=this.deferredZIndexContexts_,t=Object.keys(e).map(Number).sort(ce);for(let n=0,r=t.length;n<r;++n)e[t[n]].forEach((e=>{e.draw(this.renderedContext_),e.clear()})),e[t[n]].length=0}};function qf(e){return e[0]>0&&e[1]>0}function Vf(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}class Yf{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Vf(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Yf({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Oe()}getImage(e){return Oe()}getHitDetectionImage(){return Oe()}getPixelRatio(e){return 1}getImageState(){return Oe()}getImageSize(){return Oe()}getOrigin(){return Oe()}getSize(){return Oe()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=Vf(e)}listenImageChange(e){Oe()}load(){Oe()}unlistenImageChange(e){Oe()}ready(){return Promise.resolve()}}const Hf=Yf;function $f(e,t,n,r){return void 0!==n&&void 0!==r?[n/e,r/t]:void 0!==n?n/e:void 0!==r?r/t:1}class Kf extends Hf{constructor(e){const t=void 0!==(e=e||{}).opacity?e.opacity:1,n=void 0!==e.rotation?e.rotation:0,r=void 0!==e.scale?e.scale:1,i=void 0!==e.rotateWithView&&e.rotateWithView;super({opacity:t,rotation:n,scale:r,displacement:void 0!==e.displacement?e.displacement:[0,0],rotateWithView:i,declutterMode:e.declutterMode}),this.anchor_=void 0!==e.anchor?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==e.anchorOrigin?e.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==e.anchorXUnits?e.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==e.anchorYUnits?e.anchorYUnits:"fraction",this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null;const o=void 0!==e.img?e.img:null;let s,a=e.src;if(De(!(void 0!==a&&o),"`image` and `src` cannot be provided at the same time"),void 0!==a&&0!==a.length||!o||(a=o.src||Re(o)),De(void 0!==a&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),De(!((void 0!==e.width||void 0!==e.height)&&void 0!==e.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==e.src?s=0:void 0!==o&&(s="complete"in o?o.complete?o.src?2:0:1:2),this.color_=void 0!==e.color?Od(e.color):null,this.iconImage_=Fd(o,a,this.crossOrigin_,s,this.color_),this.offset_=void 0!==e.offset?e.offset:[0,0],this.offsetOrigin_=void 0!==e.offsetOrigin?e.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==e.size?e.size:null,this.initialOptions_,void 0!==e.width||void 0!==e.height){let t,n;if(e.size)[t,n]=e.size;else{const r=this.getImage(1);if(r.width&&r.height)t=r.width,n=r.height;else if(r instanceof HTMLImageElement){this.initialOptions_=e;const t=()=>{if(this.unlistenImageChange(t),!this.initialOptions_)return;const n=this.iconImage_.getSize();this.setScale($f(n[0],n[1],e.width,e.height))};return void this.listenImageChange(t)}}void 0!==t&&this.setScale($f(t,n,e.width,e.height))}}clone(){let e,t,n;return this.initialOptions_?(t=this.initialOptions_.width,n=this.initialOptions_.height):(e=this.getScale(),e=Array.isArray(e)?e.slice():e),new Kf({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,width:t,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let e=this.normalizedAnchor_;if(!e){e=this.anchor_;const t=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!t)return null;e=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(e[0]*=t[0]),"fraction"==this.anchorYUnits_&&(e[1]*=t[1])}if("top-left"!=this.anchorOrigin_){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(e[0]=-e[0]+t[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(e[1]=-e[1]+t[1])}this.normalizedAnchor_=e}const t=this.getDisplacement(),n=this.getScaleArray();return[e[0]-t[0]/n[0],e[1]+t[1]/n[1]]}setAnchor(e){this.anchor_=e,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(e){return this.iconImage_.getImage(e)}getPixelRatio(e){return this.iconImage_.getPixelRatio(e)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let e=this.offset_;if("top-left"!=this.offsetOrigin_){const t=this.getSize(),n=this.iconImage_.getSize();if(!t||!n)return null;e=e.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[0]=n[0]-t[0]-e[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[1]=n[1]-t[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const e=this.getScaleArray();return this.size_?this.size_[0]*e[0]:2==this.iconImage_.getImageState()?this.iconImage_.getSize()[0]*e[0]:void 0}getHeight(){const e=this.getScaleArray();return this.size_?this.size_[1]*e[1]:2==this.iconImage_.getImageState()?this.iconImage_.getSize()[1]*e[1]:void 0}setScale(e){delete this.initialOptions_,super.setScale(e)}listenImageChange(e){this.iconImage_.addEventListener(ne,e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener(ne,e)}ready(){return this.iconImage_.ready()}}const Xf=Kf,Zf=class extends zd{constructor(e,t,n,r,i,o,s){super(),this.context_=e,this.pixelRatio_=t,this.extent_=n,this.transform_=r,this.transformRotation_=r?Bt(Math.atan2(r[1],r[0]),10):0,this.viewRotation_=i,this.squaredTolerance_=o,this.userTransform_=s,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=[1,0,0,1,0,0]}drawImages_(e,t,n,r){if(!this.image_)return;const i=br(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,a=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=a*this.imageOpacity_);let l=this.imageRotation_;0===this.transformRotation_&&(l-=this.viewRotation_),this.imageRotateWithView_&&(l+=this.viewRotation_);for(let e=0,t=i.length;e<t;e+=2){const t=i[e]-this.imageAnchorX_,n=i[e+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const e=t+this.imageAnchorX_,r=n+this.imageAnchorY_;yr(s,e,r,1,1,l,-e,-r),o.save(),o.transform.apply(o,s),o.translate(e,r),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.restore()}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,t,n,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=a)}drawText_(e,t,n,r){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const i=br(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_;let s=this.textRotation_;for(0===this.transformRotation_&&(s-=this.viewRotation_),this.textRotateWithView_&&(s+=this.viewRotation_);t<n;t+=r){const e=i[t]+this.textOffsetX_,n=i[t+1]+this.textOffsetY_;0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]?(o.save(),o.translate(e-this.textOffsetX_,n-this.textOffsetY_),o.rotate(s),o.translate(this.textOffsetX_,this.textOffsetY_),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.restore()):(this.textStrokeState_&&o.strokeText(this.text_,e,n),this.textFillState_&&o.fillText(this.text_,e,n))}}moveToLineTo_(e,t,n,r,i){const o=this.context_,s=br(e,t,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(s[0],s[1]);let a=s.length;i&&(a-=2);for(let e=2;e<a;e+=2)o.lineTo(s[e],s[e+1]);return i&&o.closePath(),n}drawRings_(e,t,n,r){for(let i=0,o=n.length;i<o;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t}drawCircle(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),gt(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const t=function(e,t,n){const r=e.getFlatCoordinates();if(!r)return null;const i=e.getStride();return br(r,0,r.length,i,t,n)}(e,this.transform_,this.pixelCoordinates_),n=t[2]-t[0],r=t[3]-t[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}}setStyle(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())}setTransform(e){this.transform_=e}drawGeometry(e){switch(e.getType()){case"Point":this.drawPoint(e);break;case"LineString":this.drawLineString(e);break;case"Polygon":this.drawPolygon(e);break;case"MultiPoint":this.drawMultiPoint(e);break;case"MultiLineString":this.drawMultiLineString(e);break;case"MultiPolygon":this.drawMultiPolygon(e);break;case"GeometryCollection":this.drawGeometryCollection(e);break;case"Circle":this.drawCircle(e)}}drawFeature(e,t){const n=t.getGeometryFunction()(e);n&&(this.setStyle(t),this.drawGeometry(n))}drawGeometryCollection(e){const t=e.getGeometriesArray();for(let e=0,n=t.length;e<n;++e)this.drawGeometry(t[e])}drawPoint(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)}drawMultiPoint(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)}drawLineString(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),gt(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const t=this.context_,n=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(n,0,n.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){const t=e.getFlatMidpoint();this.drawText_(t,0,2,2)}}}drawMultiLineString(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const t=e.getExtent();if(gt(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const t=this.context_,n=e.getFlatCoordinates();let r=0;const i=e.getEnds(),o=e.getStride();t.beginPath();for(let e=0,t=i.length;e<t;++e)r=this.moveToLineTo_(n,r,i[e],o,!1);t.stroke()}if(""!==this.text_){const t=e.getFlatMidpoints();this.drawText_(t,0,t.length,2)}}}drawPolygon(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),gt(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){const t=e.getFlatInteriorPoint();this.drawText_(t,0,2,2)}}}drawMultiPolygon(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),gt(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const t=this.context_,n=e.getOrientedFlatCoordinates();let r=0;const i=e.getEndss(),o=e.getStride();t.beginPath();for(let e=0,t=i.length;e<t;++e){const t=i[e];r=this.drawRings_(n,r,t,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){const t=e.getFlatInteriorPoints();this.drawText_(t,0,t.length,2)}}}setContextFillState_(e){const t=this.context_,n=this.contextFillState_;n?n.fillStyle!=e.fillStyle&&(n.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})}setContextStrokeState_(e){const t=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=e.lineCap&&(n.lineCap=e.lineCap,t.lineCap=e.lineCap),ge(n.lineDash,e.lineDash)||t.setLineDash(n.lineDash=e.lineDash),n.lineDashOffset!=e.lineDashOffset&&(n.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset),n.lineJoin!=e.lineJoin&&(n.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),n.lineWidth!=e.lineWidth&&(n.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),n.miterLimit!=e.miterLimit&&(n.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),n.strokeStyle!=e.strokeStyle&&(n.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset,t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}setContextTextState_(e){const t=this.context_,n=this.contextTextState_,r=e.textAlign?e.textAlign:tf;n?(n.font!=e.font&&(n.font=e.font,t.font=e.font),n.textAlign!=r&&(n.textAlign=r,t.textAlign=r),n.textBaseline!=e.textBaseline&&(n.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=r,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:r,textBaseline:e.textBaseline})}setFillStrokeStyle(e,t){if(e){const t=e.getColor();this.fillState_={fillStyle:Bd(t||Xd)}}else this.fillState_=null;if(t){const e=t.getColor(),n=t.getLineCap(),r=t.getLineDash(),i=t.getLineDashOffset(),o=t.getLineJoin(),s=t.getWidth(),a=t.getMiterLimit(),l=r||Jd;this.strokeState_={lineCap:void 0!==n?n:Zd,lineDash:1===this.pixelRatio_?l:l.map((e=>e*this.pixelRatio_)),lineDashOffset:(i||0)*this.pixelRatio_,lineJoin:void 0!==o?o:Qd,lineWidth:(void 0!==s?s:1)*this.pixelRatio_,miter
3Limit:void 0!==a?a:10,strokeStyle:Bd(e||ef)}}else this.strokeState_=null}setImageStyle(e){let t;if(!e||!(t=e.getSize()))return void(this.image_=null);const n=e.getPixelRatio(this.pixelRatio_),r=e.getAnchor(),i=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*n,this.imageAnchorY_=r[1]*n,this.imageHeight_=t[1]*n,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation();const o=e.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/n,o[1]*this.pixelRatio_/n],this.imageWidth_=t[0]*n}setTextStyle(e){if(e){const t=e.getFill();if(t){const e=t.getColor();this.textFillState_={fillStyle:Bd(e||Xd)}}else this.textFillState_=null;const n=e.getStroke();if(n){const e=n.getColor(),t=n.getLineCap(),r=n.getLineDash(),i=n.getLineDashOffset(),o=n.getLineJoin(),s=n.getWidth(),a=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==t?t:Zd,lineDash:r||Jd,lineDashOffset:i||0,lineJoin:void 0!==o?o:Qd,lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:Bd(e||ef)}}else this.textStrokeState_=null;const r=e.getFont(),i=e.getOffsetX(),o=e.getOffsetY(),s=e.getRotateWithView(),a=e.getRotation(),l=e.getScaleArray(),u=e.getText(),c=e.getTextAlign(),h=e.getTextBaseline();this.textState_={font:void 0!==r?r:Kd,textAlign:void 0!==c?c:tf,textBaseline:void 0!==h?h:nf},this.text_=void 0!==u?Array.isArray(u)?u.reduce(((e,t,n)=>e+(n%2?" ":t)),""):u:"",this.textOffsetX_=void 0!==i?this.pixelRatio_*i:0,this.textOffsetY_=void 0!==o?this.pixelRatio_*o:0,this.textRotateWithView_=void 0!==s&&s,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=""}},Jf=.5,Qf={Point:function(e,t,n,r,i,o){const s=n.getImage(),a=n.getText(),l=a&&a.getText(),u=o&&s&&l?{}:void 0;if(s){if(2!=s.getImageState())return;const o=e.getBuilder(n.getZIndex(),"Image");o.setImageStyle(s,u),o.drawPoint(t,r,i)}if(l){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a,u),o.drawText(t,r,i)}},LineString:function(e,t,n,r,i){const o=n.getStroke();if(o){const s=e.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawLineString(t,r,i)}const s=n.getText();if(s&&s.getText()){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,r,i)}},Polygon:function(e,t,n,r,i){const o=n.getFill(),s=n.getStroke();if(o||s){const a=e.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawPolygon(t,r,i)}const a=n.getText();if(a&&a.getText()){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,r,i)}},MultiPoint:function(e,t,n,r,i,o){const s=n.getImage(),a=s&&0!==s.getOpacity(),l=n.getText(),u=l&&l.getText(),c=o&&a&&u?{}:void 0;if(a){if(2!=s.getImageState())return;const o=e.getBuilder(n.getZIndex(),"Image");o.setImageStyle(s,c),o.drawMultiPoint(t,r,i)}if(u){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(l,c),o.drawText(t,r,i)}},MultiLineString:function(e,t,n,r,i){const o=n.getStroke();if(o){const s=e.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawMultiLineString(t,r,i)}const s=n.getText();if(s&&s.getText()){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,r,i)}},MultiPolygon:function(e,t,n,r,i){const o=n.getFill(),s=n.getStroke();if(s||o){const a=e.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawMultiPolygon(t,r,i)}const a=n.getText();if(a&&a.getText()){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,r,i)}},GeometryCollection:function(e,t,n,r,i,o){const s=t.getGeometriesArray();let a,l;for(a=0,l=s.length;a<l;++a)(0,Qf[s[a].getType()])(e,s[a],n,r,i,o)},Circle:function(e,t,n,r,i){const o=n.getFill(),s=n.getStroke();if(o||s){const a=e.getBuilder(n.getZIndex(),"Circle");a.setFillStrokeStyle(o,s),a.drawCircle(t,r,i)}const a=n.getText();if(a&&a.getText()){const i=e.getBuilder(n.getZIndex(),"Text");i.setTextStyle(a),i.drawText(t,r)}}};function ep(e,t){return parseInt(Re(e),10)-parseInt(Re(t),10)}function tp(e,t){const n=np(e,t);return n*n}function np(e,t){return.5*e/t}function rp(e,t,n,r,i,o,s,a){const l=[],u=n.getImage();if(u){let e=!0;const t=u.getImageState();2==t||3==t?e=!1:0==t&&u.load(),e&&l.push(u.ready())}const c=n.getFill();c&&c.loading()&&l.push(c.ready());const h=l.length>0;return h&&Promise.all(l).then((()=>i(null))),function(e,t,n,r,i,o,s){const a=n.getGeometryFunction()(t);if(!a)return;const l=a.simplifyTransformed(r,i);n.getRenderer()?ip(e,l,n,t,s):(0,Qf[l.getType()])(e,l,n,t,s,o)}(e,t,n,r,o,s,a),h}function ip(e,t,n,r,i){if("GeometryCollection"!=t.getType())e.getBuilder(n.getZIndex(),"Default").drawCustom(t,r,n.getRenderer(),n.getHitDetectionRenderer(),i);else{const o=t.getGeometries();for(let t=0,s=o.length;t<s;++t)ip(e,o[t],n,r,i)}}const op=class extends xe{constructor(e,t,n,r){super(e),this.inversePixelTransform=t,this.frameState=n,this.context=r}},sp=class extends Pe{constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.staleKeys_=new Array,this.maxStaleKeys=5}getStaleKeys(){return this.staleKeys_}prependStaleKey(e){this.staleKeys_.unshift(e),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(e){return Oe()}getData(e){return null}prepareFrame(e){return Oe()}renderFrame(e,t){return Oe()}forEachFeatureAtCoordinate(e,t,n,r,i){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){const t=e.target;2!==t.getState()&&3!==t.getState()||this.renderIfReadyAndVisible()}loadImage(e){let t=e.getState();return 2!=t&&3!=t&&e.addEventListener(ne,this.boundHandleImageChange_),0==t&&(e.load(),t=e.getState()),2==t}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()}renderDeferred(e){}disposeInternal(){delete this.layer_,super.disposeInternal()}},ap=[];let lp=null;const up=class extends sp{constructor(e){super(e),this.container=null,this.renderedResolution,this.tempTransform=[1,0,0,1,0,0],this.pixelTransform=[1,0,0,1,0,0],this.inversePixelTransform=[1,0,0,1,0,0],this.context=null,this.deferredContext_=null,this.containerReused=!1,this.frameState=null}getImageData(e,t,n){let r;lp||(lp=nd(1,1,void 0,{willReadFrequently:!0})),lp.clearRect(0,0,1,1);try{lp.drawImage(e,t,n,1,1,0,0,1,1),r=lp.getImageData(0,0,1,1).data}catch{return lp=null,null}return r}
vendor: 1,318 bytes, line 3
3getBackground(e){let t=this.getLayer().getBackground();return"function"==typeof t&&(t=t(e.viewState.resolution)),t||void 0}useContainer(e,t,n){const r=this.getLayer().getClassName();let i,o;if(e&&e.className===r&&(!n||e&&e.style.backgroundColor&&ge(Od(e.style.backgroundColor),Od(n)))){const t=e.firstElementChild;t instanceof HTMLCanvasElement&&(o=t.getContext("2d"))}if(o&&o.canvas.style.transform===t?(this.container=e,this.context=o,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){i=document.createElement("div"),i.className=r;let e=i.style;e.position="absolute",e.width="100%",e.height="100%",o=nd();const t=o.canvas;i.appendChild(t),e=t.style,e.position="absolute",e.left="0",e.transformOrigin="top left",this.container=i,this.context=o}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)}clipUnrotated(e,t,n){const r=dt(n),i=ft(n),o=ot(n),s=it(n);mr(t.coordinateToPixelTransform,r),mr(t.coordinateToPixelTransform,i),mr(t.coordinateToPixelTransform,o),mr(t.coordinateToPixelTransform,s);const a=this.inversePixelTransform;mr(a,r),mr(a,i),mr(a,o),mr(a,s),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])
3),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(s[0]),Math.round(s[1])),e.clip()}prepareContainer(e,t){const n=e.extent,r=e.viewState.resolution,i=e.viewState.rotation,o=e.pixelRatio,s=Math.round(pt(n)/r*o),a=Math.round(ct(n)/r*o);yr(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/o,1/o,i,-s/2,-a/2),vr(this.inversePixelTransform,this.pixelTransform);const l="matrix("+this.pixelTransform.map(((e,t)=>Math.round(e*_r[t])/_r[t])).join(", ")+")";if(this.useContainer(t,l,this.getBackground(e)),!this.containerReused){const e=this.context.canvas;e.width!=s||e.height!=a?(e.width=s,e.height=a):this.context.clearRect(0,0,s,a),l!==e.style.transform&&(e.style.transform=l)}}dispatchRenderEvent_(e,t,n){const r=this.getLayer();if(r.hasListener(e)){const i=new op(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}}preRender(e,t){this.frameState=t,t.declutter||this.dispatchRenderEvent_(cd,e,t)}postRender(e,t){t.declutter||this.dispatchRenderEvent_(hd,e,t)}renderDeferredInternal(e){}getRenderContext(e){return e.declutter&&!this.deferredContext_&&(this.deferredContext_=new Tf),e.declutter?this.deferredContext_.getContext():this.context}renderDeferred(e){e.declutter&&(this.dispatchRenderEvent_(cd,this.context,e),e.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(e),this.dispatchRenderEvent_(hd,this.context,e))}getRenderTransform(e,t,n,r,i,o,s){const a=i/2,l=o/2,u=r/t,c=-u,h=-e[0]+s,d=-e[1];return yr(this.tempTransform,a,l,u,c,-n,h,d)}disposeInternal(){delete this.frameState,super.disposeInternal()}},cp=class extends up{constructor(e){super(e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.clipped_=!1,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=[1/0,1/0,-1/0,-1/0],this.wrappedRenderedExtent_=[1/0,1/0,-1/0,-1/0],this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedPixelRatio_=1,this.renderedRenderOrder_=null,this.renderedFrameDeclutter_,this.replayGroup_=null,this.replayGroupChanged=!0,this.clipping=!0,this.targetContext_=null,this.opacity_=1}renderWorlds(e,t,n){const r=t.extent,i=t.viewState,o=i.center,s=i.resolution,a=i.projection,l=i.rotation,u=a.getExtent(),c=this.getLayer().getSource(),h=this.getLayer().getDeclutter(),d=t.pixelRatio,f=t.viewHints,p=!(f[0]||f[1]),g=this.context,m=Math.round(pt(r)/s*d),y=Math.round(ct(r)/s*d),v=c.getWrapX()&&a.canWrapX(),_=v?pt(u):null,b=v?Math.ceil((r[2]-u[2])/_)+1:1;let w=v?Math.floor((r[0]-u[0])/_):0;do{let r=this.getRenderTransform(o,s,0,d,m,y,w*_);t.declutter&&(r=r.slice(0)),e.execute(g,[g.canvas.width,g.canvas.height],r,l,p,void 0===n?Bf:n?zf:Gf,n?h&&t.declutter[h]:void 0)}while(++w<b)}setDrawContext_(){1!==this.opacity_&&(this.targetContext_=this.context,this.context=nd(this.context.canvas.width,this.context.canvas.height,ap))}resetDrawContext_(){if(1!==this.opacity_){const e=this.targetContext_.globalAlpha;this.targetContext_.globalAlpha=this.opacity_,this.targetContext_.drawImage(this.context.canvas,0,0),this.targetContext_.globalAlpha=e,od(this.context),ap.push(this.context.canvas),this.context=this.targetContext_,this.targetContext_=null}}renderDeclutter(e){this.replayGroup_&&this.getLayer().getDeclutter()&&this.renderWorlds(this.replayGroup_,e,!0)}renderDeferredInternal(e){this.replayGroup_&&(this.replayGroup_.renderDeferred(),this.clipped_&&this.context.restore(),this.resetDrawContext_())}renderFrame(e,t){const n=e.layerStatesArray[e.layerIndex];this.opacity_=n.opacity;const r=e.viewState;this.prepareContainer(e,t);const i=this.context,o=this.replayGroup_;let s=o&&!o.isEmpty();if(!s&&!this.getLayer().hasListener(cd)&&!this.getLayer().hasListener(hd))return null;this.setDrawContext_(),this.preRender(i,e);r.projection;if(this.clipped_=!1,s&&n.extent&&this.clipping){const t=cr(n.extent);s=gt(t,e.extent),this.clipped_=s&&!qe(t,e.extent),this.clipped_&&this.clipUnrotated(i,e,t)}return s&&this.renderWorlds(o,e,!this.getLayer().getDeclutter()&&void 0),!e.declutter&&this.clipped_&&i.restore(
vendor: 11,770 bytes, line 3
3),this.postRender(i,e),this.renderedRotation_!==r.rotation&&(this.renderedRotation_=r.rotation,this.hitDetectionImageData_=null),e.declutter||this.resetDrawContext_(),this.container}getFeatures(e){return new Promise((t=>{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const e=this.frameState.size.slice(),t=this.renderedCenter_,n=this.renderedResolution_,r=this.renderedRotation_,i=this.renderedProjection_,o=this.wrappedRenderedExtent_,s=this.getLayer(),a=[],l=e[0]*Jf,u=e[1]*Jf;a.push(this.getRenderTransform(t,n,r,Jf,l,u,0).slice());const c=s.getSource(),h=i.getExtent();if(c.getWrapX()&&i.canWrapX()&&!qe(h,o)){let e=o[0];const i=pt(h);let s,c=0;for(;e<h[0];)--c,s=i*c,a.push(this.getRenderTransform(t,n,r,Jf,l,u,s).slice()),e+=i;for(c=0,e=o[2];e>h[2];)++c,s=i*c,a.push(this.getRenderTransform(t,n,r,Jf,l,u,s).slice()),e-=i}const d=sr();this.hitDetectionImageData_=function(e,t,n,r,i,o,s,a,l){const u=l?ur(i):i,c=nd(e[0]*Jf,e[1]*Jf);c.imageSmoothingEnabled=!1;const h=c.canvas,d=new Zf(c,Jf,i,null,s,a,l?er(sr(),l):null),f=n.length,p=Math.floor(16777215/f),g={};for(let e=1;e<=f;++e){const t=n[e-1],i=t.getStyleFunction()||r;if(!i)continue;let s=i(t,o);if(!s)continue;Array.isArray(s)||(s=[s]);const a=(e*p).toString(16).padStart(7,"#00000");for(let e=0,n=s.length;e<n;++e){const n=s[e],r=n.getGeometryFunction()(t);if(!r||!gt(u,r.getExtent()))continue;const i=n.clone(),o=i.getFill();o&&o.setColor(a);const l=i.getStroke();l&&(l.setColor(a),l.setLineDash(null)),i.setText(void 0);const c=n.getImage();if(c){const e=c.getImageSize();if(!e)continue;const t=nd(e[0],e[1],void 0,{alpha:!1}),n=t.canvas;t.fillStyle=a,t.fillRect(0,0,n.width,n.height),i.setImage(new Xf({img:n,anchor:c.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:c.getOrigin(),opacity:1,size:c.getSize(),scale:c.getScale(),rotation:c.getRotation(),rotateWithView:c.getRotateWithView()}))}const h=i.getZIndex()||0;let d=g[h];d||(d={},g[h]=d,d.Polygon=[],d.Circle=[],d.LineString=[],d.Point=[]);const f=r.getType();if("GeometryCollection"===f){const e=r.getGeometriesArrayRecursive();for(let t=0,n=e.length;t<n;++t){const n=e[t];d[n.getType().replace("Multi","")].push(n,i)}}else d[f.replace("Multi","")].push(r,i)}}const m=Object.keys(g).map(Number).sort(ce);for(let e=0,n=m.length;e<n;++e){const n=g[m[e]];for(const e in n){const r=n[e];for(let e=0,n=r.length;e<n;e+=2){d.setStyle(r[e+1]);for(let n=0,i=t.length;n<i;++n)d.setTransform(t[n]),d.drawGeometry(r[e])}}}return c.getImageData(0,0,h.width,h.height)}(e,a,this.renderedFeatures_,s.getStyleFunction(),o,n,r,tp(n,this.renderedPixelRatio_),d?i:null)}t(function(e,t,n){const r=[];if(n){const i=Math.floor(Math.round(e[0])*Jf),o=Math.floor(Math.round(e[1])*Jf),s=4*(Rt(i,0,n.width-1)+Rt(o,0,n.height-1)*n.width),a=n.data[s],l=n.data[s+1],u=n.data[s+2]+256*(l+256*a),c=Math.floor(16777215/t.length);u&&u%c==0&&r.push(t[u/c-1])}return r}(e,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(e,t,n,r,i){if(!this.replayGroup_)return;const o=t.viewState.resolution,s=t.viewState.rotation,a=this.getLayer(),l={},u=this.getLayer().getDeclutter();return this.replayGroup_.forEachFeatureAtCoordinate(e,o,s,n,(function(e,t,n){const o=Re(e),s=l[o];if(s){if(!0!==s&&n<s.distanceSq){if(0===n)return l[o]=!0,i.splice(i.lastIndexOf(s),1),r(e,a,t);s.geometry=t,s.distanceSq=n}}else{if(0===n)return l[o]=!0,r(e,a,t);i.push(l[o]={feature:e,layer:a,geometry:t,distanceSq:n,callback:r})}}),u?t.declutter?.[u]?.all().map((e=>e.value)):null)}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}prepareFrame(e){const t=this.getLayer(),n=t.getSource();if(!n)return!1;const r=e.viewHints[0],i=e.viewHints[1],o=t.getUpdateWhileAnimating(),s=t.getUpdateWhileInteracting();if(this.ready&&!o&&r||!s&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const a=e.extent,l=e.viewState,u=l.projection,c=l.resolution,h=e.pixelRatio,d=t.getRevision(),f=t.getRenderBuffer();let p=t.getRenderOrder();void 0===p&&(p=ep);const g=l.center.slice(),m=ze(a,f*c),y=m.slice(),v=[m.slice()],_=u.getExtent();if(n.getWrapX()&&u.canWrapX()&&!qe(_,e.extent)){const e=pt(_),t=Math.max(pt(m)/2,e);m[0]=_[0]-t,m[2]=_[2]+t,Ot(g,u);const n=yt(v[0],u);n[0]<_[0]&&n[2]<_[2]?v.push([n[0]+e,n[1],n[2]+e,n[3]]):n[0]>_[0]&&n[2]>_[2]&&v.push([n[0]-e,n[1],n[2]-e,n[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==d&&this.renderedRenderOrder_==p&&this.renderedFrameDeclutter_===!!e.declutter&&qe(this.wrappedRenderedExtent_,m))return ge(this.renderedExtent_,y)||(this.hitDetectionImageData_=null,this.renderedExtent_=y),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const b=new Mf(np(c,h),m,c,h),w=sr();let x;if(w){for(let e=0,t=v.length;e<t;++e){const t=ur(v[e]);n.loadFeatures(t,hr(c),w)}x=er(w,u)}else for(let e=0,t=v.length;e<t;++e)n.loadFeatures(v[e],c,u);const E=tp(c,h);let S=!0;const C=(e,n)=>{let r;const i=e.getStyleFunction()||t.getStyleFunction();if(i&&(r=i(e,c)),r){const t=this.renderFeature(e,E,r,b,x,this.getLayer().getDeclutter(),n);S=S&&!t}},M=ur(m),k=n.getFeaturesInExtent(M);p&&k.sort(p);for(let e=0,t=k.length;e<t;++e)C(k[e],e);this.renderedFeatures_=k,this.ready=S;const T=b.finish(),P=new Wf(m,c,h,n.getOverlaps(),T,t.getRenderBuffer(),!!e.declutter);return this.renderedResolution_=c,this.renderedRevision_=d,this.renderedRenderOrder_=p,this.renderedFrameDeclutter_=!!e.declutter,this.renderedExtent_=y,this.wrappedRenderedExtent_=m,this.renderedCenter_=g,this.renderedProjection_=u,this.renderedPixelRatio_=h,this.replayGroup_=P,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(e,t,n,r,i,o,s){if(!n)return!1;let a=!1;if(Array.isArray(n))for(let l=0,u=n.length;l<u;++l)a=rp(r,e,n[l],t,this.boundHandleStyleImageChange_,i,o,s)||a;else a=rp(r,e,n,t,this.boundHandleStyleImageChange_,i,o,s);return a}};function hp(e,t,n=0,r=e.length-1,i=fp){for(;r>n;){if(r-n>600){const o=r-n+1,s=t-n+1,a=Math.log(o),l=.5*Math.exp(2*a/3),u=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);hp(e,t,Math.max(n,Math.floor(t-s*l/o+u)),Math.min(r,Math.floor(t+(o-s)*l/o+u)),i)}const o=e[t];let s=n,a=r;for(dp(e,n,t),i(e[r],o)>0&&dp(e,n,r);s<a;){for(dp(e,s,a),s++,a--;i(e[s],o)<0;)s++;for(;i(e[a],o)>0;)a--}0===i(e[n],o)?dp(e,n,a):(a++,dp(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}}function dp(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function fp(e,t){return e<t?-1:e>t?1:0}class pp{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const n=[];if(!Cp(e,t))return n;const r=this.toBBox,i=[];for(;t;){for(let o=0;o<t.children.length;o++){const s=t.children[o],a=t.leaf?r(s):s;Cp(e,a)&&(t.leaf?n.push(s):Sp(e,a)?this._all(s,n):i.push(s))}t=i.pop()}return n}collides(e){let t=this.data;if(!Cp(e,t))return!1;const n=[];for(;t;){for(let r=0;r<t.children.length;r++){const i=t.children[r],o=t.leaf?this.toBBox(i):i;if(Cp(e,o)){if(t.leaf||Sp(e,o))return!0;n.push(i)}}t=n.pop()}return!1}load(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(let t=0;t<e.length;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){const e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=Mp([]),this}remove(e,t){if(!e)return this;let n=this.data;const r=this.toBBox(e),i=[],o=[];let s,a,l;for(;n||i.length;){if(n||(n=i.pop(),a=i[i.length-1],s=o.pop(),l=!0),n.leaf){const r=gp(e,n.children,t);if(-1!==r)return n.children.splice(r,1),i.push(n),this._condense(i),this}l||n.leaf||!Sp(n,r)?a?(s++,n=a.children[s],l=!1):n=null:(i.push(n),o.push(s),s=0,a=n,n=n.children[0])}return this}toBBox(e){return e}compareMinX(e,t){return e.minX-t.minX}compareMinY(e,t){return e.minY-t.minY}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){const n=[];for(;e;)e.leaf?t.push(...e.children):n.push(...e.children),e=n.pop();return t}_build(e,t,n,r){const i=n-t+1;let o,s=this._maxEntries;if(i<=s)return o=Mp(e.slice(t,n+1)),mp(o,this.toBBox),o;r||(r=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/Math.pow(s,r-1))),o=Mp([]),o.leaf=!1,o.height=r;const a=Math.ceil(i/s),l=a*Math.ceil(Math.sqrt(s));kp(e,t,n,l,this.compareMinX);for(let i=t;i<=n;i+=l){const t=Math.min(i+l-1,n);kp(e,i,t,a,this.compareMinY);for(let n=i;n<=t;n+=a){const i=Math.min(n+a-1,t);o.children.push(this._build(e,n,i,r-1))}}return mp(o,this.toBBox),o}_chooseSubtree(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){let n,r=1/0,s=1/0;for(let a=0;a<t.children.length;a++){const l=t.children[a],u=wp(l),c=(i=e,o=l,(Math.max(o.maxX,i.maxX)-Math.min(o.minX,i.minX))*(Math.max(o.maxY,i.maxY)-Math.min(o.minY,i.minY))-u);c<s?(s=c,r=u<r?u:r,n=l):c===s&&u<r&&(r=u,n=l)}t=n||t.children[0]}var i,o;return t}_insert(e,t,n){const r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),vp(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)}_split(e,t){const n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const o=this._chooseSplitIndex(n,i,r),s=Mp(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,mp(n,this.toBBox),mp(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)}_splitRoot(e,t){this.data=Mp([e,t]),this.data.height=e.height+1,this.data.leaf=!1,mp(this.data,this.toBBox)}_chooseSplitIndex(e,t,n){let r,i=1/0,o=1/0;for(let s=t;s<=n-t;s++){const t=yp(e,0,s,this.toBBox),a=yp(e,s,n,this.toBBox),l=Ep(t,a),u=wp(t)+wp(a);l<i?(i=l,r=s,o=u<o?u:o):l===i&&u<o&&(o=u,r=s)}return r||n-t}_chooseSplitAxis(e,t,n){const r=e.leaf?this.compareMinX:_p,i=e.leaf?this.compareMinY:bp;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)}_allDistMargin(e,t,n,r){e.children.sort(r);const i=this.toBBox,o=yp(e,0,t,i),s=yp(e,n-t,n,i);let a=xp(o)+xp(s);for(let r=t;r<n-t;r++){const t=e.children[r];vp(o,e.leaf?i(t):t),a+=xp(o)}for(let r=n-t-1;r>=t;r--){const t=e.children[r];vp(s,e.leaf?i(t):t),a+=xp(s)}return a}_adjustParentBBoxes(e,t,n){for(let r=n;r>=0;r--)vp(t[r],e)}_condense(e){for(let t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children,t.splice(t.indexOf(e[n]),1)):this.clear():mp(e[n],this.toBBox)}}function gp(e,t,n){if(!n)return t.indexOf(e);for(let r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function mp(e,t){yp(e,0,e.children.length,t,e)}function yp(e,t,n,r,i){i||(i=Mp(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o=t;o<n;o++){const t=e.children[o];vp(i,e.leaf?r(t):t)}return i}function vp(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function _p(e,t){return e.minX-t.minX}function bp(e,t){return e.minY-t.minY}function wp(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function xp(e){return e.maxX-e.minX+(e.maxY-e.minY)}function Ep(e,t){const n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function Sp(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function Cp(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function Mp(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function kp(e,t,n,r,i){const o=[t,n];for(;o.length;){if((n=o.pop())-(t=o.pop())<=r)continue;const s=t+Math.ceil((n-t)/r/2)*r;
3hp(e,s,t,n,i),o.push(t,s,s,n)}}let Tp=0;const Pp=1<<Tp++,Op=1<<Tp++,Ip=1<<Tp++,Rp=1<<Tp++,Ap=1<<Tp++,Lp=1<<Tp++,Np=Math.pow(2,6)-1,Dp={[Pp]:"boolean",[Op]:"number",[Ip]:"string",[Rp]:"color",[Ap]:"number[]",[Lp]:"size"},Fp=Object.keys(Dp).map(Number).sort(ce);function jp(e){const t=[];for(const n of Fp)Bp(e,n)&&t.push(Dp[n]);return 0===t.length?"untyped":t.length<3?t.join(" or "):t.slice(0,-1).join(", ")+", or "+t[t.length-1]}function Bp(e,t){return(e&t)===t}function zp(e,t){return e===t}class Gp{constructor(e,t){if(!function(e){return e in Dp}(e))throw new Error(`literal expressions must have a specific type, got ${jp(e)}`);this.type=e,this.value=t}}class Up{constructor(e,t,...n){this.type=e,this.operator=t,this.args=n}}function Wp(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1,mapState:!1}}function qp(e,t,n){switch(typeof e){case"boolean":if(zp(t,Ip))return new Gp(Ip,e?"true":"false");if(!Bp(t,Pp))throw new Error(`got a boolean, but expected ${jp(t)}`);return new Gp(Pp,e);case"number":if(zp(t,Lp))return new Gp(Lp,Vf(e));if(zp(t,Pp))return new Gp(Pp,!!e);if(zp(t,Ip))return new Gp(Ip,e.toString());if(!Bp(t,Op))throw new Error(`got a number, but expected ${jp(t)}`);return new Gp(Op,e);case"string":if(zp(t,Rp))return new Gp(Rp,Pd(e));if(zp(t,Pp))return new Gp(Pp,!!e);if(!Bp(t,Ip))throw new Error(`got a string, but expected ${jp(t)}`);return new Gp(Ip,e)}if(!Array.isArray(e))throw new Error("expression must be an array or a primitive value");if(0===e.length)throw new Error("empty expression");if("string"==typeof e[0])return function(e,t,n){const r=e[0],i=jg[r];if(!i)throw new Error(`unknown operator: ${r}`);return i(e,t,n)}(e,t,n);for(const t of e)if("number"!=typeof t)throw new Error("expected an array of numbers");if(zp(t,Lp)){if(2!==e.length)throw new Error(`expected an array of two values for a size, got ${e.length}`);return new Gp(Lp,e)}if(zp(t,Rp)){if(3===e.length)return new Gp(Rp,[...e,1]);if(4===e.length)return new Gp(Rp,e);throw new Error(`expected an array of 3 or 4 values for a color, got ${e.length}`)}if(!Bp(t,Ap))throw new Error(`got an array of numbers, but expected ${jp(t)}`);return new Gp(Ap,e)}const Vp="get",Yp="var",Hp="concat",$p="geometry-type",Kp="line-metric",Xp="any",Zp="all",Jp="!",Qp="resolution",eg="zoom",tg="time",ng="==",rg="!=",ig=">",og=">=",sg="<",ag="<=",lg="*",ug="/",cg="+",hg="-",dg="clamp",fg="%",pg="^",gg="abs",mg="floor",yg="ceil",vg="round",_g="sin",bg="cos",wg="atan",xg="sqrt",Eg="match",Sg="between",Cg="interpolate",Mg="coalesce",kg="case",Tg="in",Pg="number",Og="string",Ig="array",Rg="color",Ag="id",Lg="band",Ng="palette",Dg="to-string",Fg="has",jg={[Vp]:Yg(Ug(1,1/0),Bg),[Yp]:Yg(Ug(1,1),(function(e,t,n){const r=e[1];if("string"!=typeof r)throw new Error("expected a string argument for var operation");return n.variables.add(r),[new Gp(Ip,r)]})),[Fg]:Yg(Ug(1,1/0),Bg),[Ag]:Yg((function(e,t,n){n.featureId=!0}),Gg),[Hp]:Yg(Ug(2,1/0),qg(Ip)),[$p]:Yg((function(e,t,n){n.geometryType=!0}),Gg),[Kp]:Yg(Gg),[Qp]:Yg(zg,Gg),[eg]:Yg(zg,Gg),[tg]:Yg(zg,Gg),[Xp]:Yg(Ug(2,1/0),qg(Pp)),[Zp]:Yg(Ug(2,1/0),qg(Pp)),[Jp]:Yg(Ug(1,1),qg(Pp)),[ng]:Yg(Ug(2,2),qg(Np)),[rg]:Yg(Ug(2,2),qg(Np)),[ig]:Yg(Ug(2,2),qg(Op)),[og]:Yg(Ug(2,2),qg(Op)),[sg]:Yg(Ug(2,2),qg(Op)),[ag]:Yg(Ug(2,2),qg(Op)),[lg]:Yg(Ug(2,1/0),Wg),[Mg]:Yg(Ug(2,1/0),Wg),[ug]:Yg(Ug(2,2),qg(Op)),[cg]:Yg(Ug(2,1/0),qg(Op)),[hg]:Yg(Ug(2,2),qg(Op)),[dg]:Yg(Ug(3,3),qg(Op)),[fg]:Yg(Ug(2,2),qg(Op)),[pg]:Yg(Ug(2,2),qg(Op)),[gg]:Yg(Ug(1,1),qg(Op)),[mg]:Yg(Ug(1,1),qg(Op)),[yg]:Yg(Ug(1,1),qg(Op)),[vg]:Yg(Ug(1,1),qg(Op)),[_g]:Yg(Ug(1,1),qg(Op)),[bg]:Yg(Ug(1,1),qg(Op)),[wg]:Yg(Ug(1,2),qg(Op)),[xg]:Yg(Ug(1,1),qg(Op)),[Eg]:Yg(Ug(4,1/0),Vg,(function(e,t,n){const r=e.length-1,i=Ip|Op|Pp,o=qp(e[1],i,n),s=qp(e[e.length-1],t,n),a=new Array(r-2);for(let t=0;t<r-2;t+=2){try{const r=qp(e[t+2],o.type,n);a[t]=r}catch(e){throw new Error(`failed to parse argument ${t+1} of match expression: ${e.message}`)}try{const r=qp(e[t+3],s.type,n);a[t+1]=r}catch(e){throw new Error(`failed to parse argument ${t+2} of match expression: ${e.message}`)}}return[o,...a,s]})),[Sg]:Yg(Ug(3,3),qg(Op)),[Cg]:Yg(Ug(6,1/0),Vg,(function(e,t,n){const r=e[1];let i;switch(r[0]){case"linear":i=1;break;case"exponential":const e=r[1];if("number"!=typeof e||e<=0)throw new Error(`expected a number base for exponential interpolation, got ${JSON.stringify(e)} instead`);i=e;break;default:throw new Error(`invalid interpolation type: ${JSON.stringify(r)}`)}const o=new Gp(Op,i);let s;try{s=qp(e[2],Op,n)}catch(e){throw new Error(`failed to parse argument 1 in interpolate expression: ${e.message}`)}const a=new Array(e.length-3);for(let r=0;r<a.length;r+=2){try{const t=qp(e[r+3],Op,n);a[r]=t}catch(e){throw new Error(`failed to parse argument ${r+2} for interpolate expression: ${e.message}`)}try{const i=qp(e[r+4],t,n);a[r+1]=i}catch(e){throw new Error(`failed to parse argument ${r+3} for interpolate expression: ${e.message}`)}}return[o,s,...a]})),[kg]:Yg(Ug(3,1/0),(function(e,t,n){const r=e[0],i=e.length-1;if(i%2==0)throw new Error(`expected an odd number of arguments for ${r}, got ${i} instead`)}),(function(e,t,n){const r=qp(e[e.length-1],t,n),i=new Array(e.length-1);for(let t=0;t<i.length-1;t+=2){try{const r=qp(e[t+1],Pp,n);i[t]=r}catch(e){throw new Error(`failed to parse argument ${t} of case expression: ${e.message}`)}try{const o=qp(e[t+2],r.type,n);i[t+1]=o}catch(e){throw new Error(`failed to parse argument ${t+1} of case expression: ${e.message}`)}}return i[i.length-1]=r,i})),[Tg]:Yg(Ug(2,2),(function(e,t,n){let r,i=e[2];if(!Array.isArray(i))throw new Error('the second argument for the "in" operator must be an array');
3if("string"==typeof i[0]){if("literal"!==i[0])throw new Error('for the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions');if(!Array.isArray(i[1]))throw new Error('failed to parse "in" expression: the literal operator must be followed by an array');i=i[1],r=Ip}else r=Op;const o=new Array(i.length);for(let e=0;e<o.length;e++)try{const t=qp(i[e],r,n);o[e]=t}catch(t){throw new Error(`failed to parse haystack item ${e} for "in" expression: ${t.message}`)}return[qp(e[1],r,n),...o]})),[Pg]:Yg(Ug(1,1/0),qg(Np)),[Og]:Yg(Ug(1,1/0),qg(Np)),[Ig]:Yg(Ug(1,1/0),qg(Op)),[Rg]:Yg(Ug(1,4),qg(Op)),[Lg]:Yg(Ug(1,3),qg(Op)),[Ng]:Yg(Ug(2,2),(function(e,t,n){let r;try{r=qp(e[1],Op,n)}catch(e){throw new Error(`failed to parse first argument in palette expression: ${e.message}`)}const i=e[2];if(!Array.isArray(i))throw new Error("the second argument of palette must be an array");const o=new Array(i.length);for(let e=0;e<o.length;e++){let t;try{t=qp(i[e],Rp,n)}catch(t){throw new Error(`failed to parse color at index ${e} in palette expression: ${t.message}`)}if(!(t instanceof Gp))throw new Error(`the palette color at index ${e} must be a literal value`);o[e]=t}return[r,...o]})),[Dg]:Yg(Ug(1,1),qg(Pp|Op|Ip|Rp))};function Bg(e,t,n){const r=e.length-1,i=new Array(r);for(let t=0;t<r;++t){const r=e[t+1];switch(typeof r){case"number":i[t]=new Gp(Op,r);break;case"string":i[t]=new Gp(Ip,r);break;default:throw new Error(`expected a string key or numeric array index for a get operation, got ${r}`)}0===t&&n.properties.add(String(r))}return i}function zg(e,t,n){n.mapState=!0}function Gg(e,t,n){const r=e[0];if(1!==e.length)throw new Error(`expected no arguments for ${r} operation`);return[]}function Ug(e,t){return function(n,r,i){const o=n[0],s=n.length-1;if(e===t){if(s!==e)throw new Error(`expected ${e} argument${1===e?"":"s"} for ${o}, got ${s}`)}else if(s<e||s>t)throw new Error(`expected ${t===1/0?`${e} or more`:`${e} to ${t}`} arguments for ${o}, got ${s}`)}}function Wg(e,t,n){const r=e.length-1,i=new Array(r);for(let o=0;o<r;++o){const r=qp(e[o+1],t,n);i[o]=r}return i}function qg(e){return function(t,n,r){const i=t.length-1,o=new Array(i);for(let n=0;n<i;++n){const i=qp(t[n+1],e,r);o[n]=i}return o}}function Vg(e,t,n){const r=e[0],i=e.length-1;if(i%2==1)throw new Error(`expected an even number of arguments for operation ${r}, got ${i} instead`)}function Yg(...e){return function(t,n,r){const i=t[0];let o;for(let i=0;i<e.length;i++){const s=e[i](t,n,r);if(i==e.length-1){if(!s)throw new Error("expected last argument validator to return the parsed args");o=s}}return new Up(n,i,...o)}}function Hg(e){if(!e)return"";const t=e.getType();switch(t){case"Point":case"LineString":case"Polygon":return t;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return t.substring(5);case"Circle":return"Polygon";
3case"GeometryCollection":return Hg(e.getGeometries()[0]);default:return""}}function $g(e,t,n){return Kg(qp(e,t,n),n)}function Kg(e,t){if(e instanceof Gp){if(e.type===Rp&&"string"==typeof e.value){const t=Pd(e.value);return function(){return t}}return function(){return e.value}}const n=e.operator;switch(n){case Pg:case Og:case Mg:return function(e,t){const n=e.operator,r=e.args.length,i=new Array(r);for(let n=0;n<r;++n)i[n]=Kg(e.args[n],t);switch(n){case Mg:return e=>{for(let t=0;t<r;++t){const n=i[t](e);if(null!=n)return n}throw new Error("Expected one of the values to be non-null")};case Pg:case Og:return e=>{for(let t=0;t<r;++t){const r=i[t](e);if(typeof r===n)return r}throw new Error(`Expected one of the values to be a ${n}`)};default:throw new Error(`Unsupported assertion operator ${n}`)}}(e,t);case Vp:case Yp:case Fg:return function(e){const t=e.args[0].value;switch(e.operator){case Vp:return n=>{const r=e.args;let i=n.properties[t];for(let e=1,t=r.length;e<t;++e)i=i[r[e].value];return i};case Yp:return e=>e.variables[t];case Fg:return n=>{const r=e.args;if(!(t in n.properties))return!1;let i=n.properties[t];for(let e=1,t=r.length;e<t;++e){const t=r[e].value;if(!i||!Object.hasOwn(i,t))return!1;i=i[t]}return!0};default:throw new Error(`Unsupported accessor operator ${e.operator}`)}}(e);case"id":return e=>e.featureId;case $p:return e=>e.geometryType;case Hp:{const n=e.args.map((e=>Kg(e,t)));return e=>"".concat(...n.map((t=>t(e).toString())))}case Qp:return e=>e.resolution;case Xp:case Zp:case Sg:case Tg:case"!":return function(e,t){const n=e.operator,r=e.args.length,i=new Array(r);for(let n=0;n<r;++n)i[n]=Kg(e.args[n],t);switch(n){case Xp:return e=>{for(let t=0;t<r;++t)if(i[t](e))return!0;return!1};case Zp:return e=>{for(let t=0;t<r;++t)if(!i[t](e))return!1;return!0};case Sg:return e=>{const t=i[0](e),n=i[1](e),r=i[2](e);return t>=n&&t<=r};case Tg:return e=>{const t=i[0](e);for(let n=1;n<r;++n)if(t===i[n](e))return!0;return!1};case"!":return e=>!i[0](e);default:throw new Error(`Unsupported logical operator ${n}`)}}(e,t);case ng:case rg:case"<":case ag:case">":case og:return function(e,t){const n=e.operator,r=Kg(e.args[0],t),i=Kg(e.args[1],t);switch(n){case ng:return e=>r(e)===i(e);case rg:return e=>r(e)!==i(e);case"<":return e=>r(e)<i(e);case ag:return e=>r(e)<=i(e);case">":return e=>r(e)>i(e);case og:return e=>r(e)>=i(e);default:throw new Error(`Unsupported comparison operator ${n}`)}}(e,t);case"*":case"/":case"+":case"-":case dg:case"%":case"^":case gg:case mg:case yg:case vg:case _g:case bg:case wg:case xg:return function(e,t){const n=e.operator,r=e.args.length,i=new Array(r);for(let n=0;n<r;++n)i[n]=Kg(e.args[n],t);switch(n){case"*":return e=>{let t=1;for(let n=0;n<r;++n)t*=i[n](e);return t};case"/":return e=>i[0](e)/i[1](e);case"+":return e=>{let t=0;for(let n=0;n<r;++n)t+=i[n](e);return t};case"-":return e=>i[0](e)-i[1](e);case dg:return e=>{const t=i[0](e),n=i[1](e);if(t<n)return n;const r=i[2](e);return t>r?r:t};case"%":return e=>i[0](e)%i[1](e);case"^":return e=>Math.pow(i[0](e),i[1](e));case gg:return e=>Math.abs(i[0](e));case mg:return e=>Math.floor(i[0](e));case yg:return e=>Math.ceil(i[0](e));case vg:return e=>Math.round(i[0](e));case _g:return e=>Math.sin(i[0](e));case bg:return e=>Math.cos(i[0](e));case wg:return 2===r?e=>Math.atan2(i[0](e),i[1](e)):e=>Math.atan(i[0](e));case xg:return e=>Math.sqrt(i[0](e));default:throw new Error(`Unsupported numeric operator ${n}`)}}(e,t);case kg:return function(e,t){const n=e.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=Kg(e.args[i],t);return e=>{for(let t=0;t<n-1;t+=2)if(r[t](e))return r[t+1](e);return r[n-1](e)}}(e,t);case Eg:return function(e,t){const n=e.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=Kg(e.args[i],t);return e=>{const t=r[0](e);for(let i=1;i<n;i+=2)if(t===r[i](e))return r[i+1](e);return r[n-1](e)}}(e,t);case Cg:return function(e,t){const n=e.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=Kg(e.args[i],t);return e=>{const t=r[0](e),i=r[1](e);let o,s;for(let a=2;a<n;a+=2){const n=r[a](e);let l=r[a+1](e);const u=Array.isArray(l);if(u&&(l=kd(l)),n>=i)return 2===a?l:u?Zg(t,i,o,s,n,l):Xg(t,i,o,s,n,l);o=n,s=l}return s}}(e,t);case Dg:return function(e,t){const n=e.operator,r=e.args.length,i=new Array(r);for(let n=0;n<r;++n)i[n]=Kg(e.args[n],t);
vendor: 16,311 bytes, line 3
3if(n===Dg)return t=>{const n=i[0](t);return e.args[0].type===Rp?Rd(n):n.toString()};throw new Error(`Unsupported convert operator ${n}`)}(e,t);default:throw new Error(`Unsupported operator ${n}`)}}function Xg(e,t,n,r,i,o){const s=i-n;if(0===s)return r;const a=t-n;return r+(1===e?a/s:(Math.pow(e,a)-1)/(Math.pow(e,s)-1))*(o-r)}function Zg(e,t,n,r,i,o){if(0==i-n)return r;const s=Td(r),a=Td(o);let l=a[2]-s[2];return l>180?l-=360:l<-180&&(l+=360),Id(function(e){const t=_d.rgb(xd.xyz(e));return t[3]=e[3],t}([Xg(e,t,n,s[0],i,a[0]),Xg(e,t,n,s[1],i,a[1]),s[2]+Xg(e,t,n,0,i,l),Xg(e,t,n,r[3],i,o[3])]))}class Jg extends Hf{constructor(e){super({opacity:1,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?1:2,1===this.imageState_&&this.ready().then((()=>this.imageState_=2)),this.render()}clone(){const e=this.getScale(),t=new Jg({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),n=this.getScaleArray();return[e[0]/2-t[0]/n[0],e[1]/2+t[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),n=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=Ld.get(n,null,null)?.getImage(1);if(!r){const t=this.renderOptions_,i=Math.ceil(t.size*e),o=nd(i,i);this.draw_(t,o,e),r=o.canvas,Ld.set(n,null,null,new jd(r,void 0,null,2,null))}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,n){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;let r=this.radius,i=void 0===this.radius2_?r:this.radius2_;if(r<i){const e=r;r=i,i=e}const o=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/o,a=i*Math.sin(s),l=r-Math.sqrt(i*i-a*a),u=Math.sqrt(a*a+l*l),c=u/a;if("miter"===e&&c<=n)return c*t;const h=t/2/c,d=t/2*(l/u),f=Math.sqrt((r+h)*(r+h)+d*d)-r;if(void 0===this.radius2_||"bevel"===e)return 2*f;const p=r*Math.sin(s),g=i-Math.sqrt(r*r-p*p),m=Math.sqrt(p*p+g*g)/p;if(m<=n){const e=m*t/2-i-r;return 2*Math.max(f,e)}return 2*f}createRenderOptions(){let e,t=Zd,n=Qd,r=0,i=null,o=0,s=0;this.stroke_&&(e=Bd(this.stroke_.getColor()??ef),s=this.stroke_.getWidth()??1,i=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset()??0,n=this.stroke_.getLineJoin()??Qd,t=this.stroke_.getLineCap()??Zd,r=this.stroke_.getMiterLimit()??10);const a=this.calculateLineJoinSize_(n,s,r),l=Math.max(this.radius,this.radius2_||0);return{strokeStyle:e,strokeWidth:s,size:Math.ceil(2*l+a),lineCap:t,lineDash:i,lineDashOffset:o,lineJoin:n,miterLimit:r}}render(){this.renderOptions_=this.createRenderOptions();const e=this.renderOptions_.size;this.hitDetectionCanvas_=null,this.size_=[e,e]}draw_(e,t,n){if(t.scale(n,n),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){let e=this.fill_.getColor();null===e&&(e=Xd),t.fillStyle=Bd(e),t.fill()}e.strokeStyle&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}createHitDetectionCanvas_(e){let t;if(this.fill_){let n=this.fill_.getColor(),r=0;"string"==typeof n&&(n=Od(n)),null===n?r=1:Array.isArray(n)&&(r=4===n.length?n[3]:1),0===r&&(t=nd(e.size,e.size),this.drawHitDetectionCanvas_(e,t))}return t?t.canvas:this.getImage(1)}createPath_(e){let t=this.points_;const n=this.radius;if(t===1/0)e.arc(0,0,n,0,2*Math.PI);else{const r=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(t*=2);const i=this.angle_-Math.PI/2,o=2*Math.PI/t;for(let s=0;s<t;s++){const t=i+s*o,a=s%2==0?n:r;e.lineTo(a*Math.cos(t),a*Math.sin(t))}e.closePath()}}drawHitDetectionCanvas_(e,t){t.translate(e.size/2,e.size/2),this.createPath_(t),t.fillStyle=Xd,t.fill(),e.strokeStyle&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}const Qg=Jg;class em extends Qg{constructor(e){super({points:1/0,fill:(e=e||{radius:5}).fill,radius:e.radius,stroke:e.stroke,scale:void 0!==e.scale?e.scale:1,rotation:void 0!==e.rotation?e.rotation:0,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})}clone(){const e=this.getScale(),t=new em({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}setRadius(e){this.radius=e,this.render()}}const tm=em;class nm{constructor(e){e=e||{},this.patternImage_=null,this.color_=null,void 0!==e.color&&this.setColor(e.color)}clone(){const e=this.getColor();return new nm({color:Array.isArray(e)?e.slice():e||void 0})}getColor(){return this.color_}setColor(e){if(null!==e&&"object"==typeof e&&"src"in e){const t=Fd(null,e.src,"anonymous",void 0,e.offset?null:e.color?e.color:null,!(e.offset&&e.size));t.ready().then((()=>{this.patternImage_=null})),0===t.getImageState()&&t.load(),1===t.getImageState()&&(this.patternImage_=t)}this.color_=e}getKey(){const e=this.getColor();return e?e instanceof CanvasPattern||e instanceof CanvasGradient?Re(e):"object"==typeof e&&"src"in e?e.src+":"+e.offset:Od(e).toString():""}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const rm=nm;class im{constructor(e){e=e||{},this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}clone(){const e=this.getColor();return new im({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(e){this.color_=e}setLineCap(e){this.lineCap_=e}setLineDash(e){this.lineDash_=e}setLineDashOffset(e){this.lineDashOffset_=e}setLineJoin(e){this.lineJoin_=e}setMiterLimit(e){this.miterLimit_=e}setWidth(e){this.width_=e}}const om=im;class sm{constructor(e){e=e||{},this.geometry_=null,this.geometryFunction_=cm,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}clone(){let e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new sm({geometry:e??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(e){this.renderer_=e}setHitDetectionRenderer(e){this.hitDetectionRenderer_=e}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(e){this.fill_=e}getImage(){return this.image_}setImage(e){this.image_=e}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e}getText(){return this.text_}setText(e){this.text_=e}getZIndex(){return this.zIndex_}setGeometry(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=cm,this.geometry_=e}setZIndex(e){this.zIndex_=e}}let am=null;function lm(e,t){if(!am){const e=new rm({color:"rgba(255,255,255,0.4)"}),t=new om({color:"#3399CC",width:1.25});am=[new sm({image:new tm({fill:e,stroke:t,radius:5}),fill:e,stroke:t})]}return am}function um(){const e={},t=[255,255,255,1],n=[0,153,255,1];return e.Polygon=[new sm({fill:new rm({color:[255,255,255,.5]})})],e.MultiPolygon=e.Polygon,e.LineString=[new sm({stroke:new om({color:t,width:5})}),new sm({stroke:new om({color:n,width:3})})],e.MultiLineString=e.LineString,e.Circle=e.Polygon.concat(e.LineString),e.Point=[new sm({image:new tm({radius:6,fill:new rm({color:n}),stroke:new om({color:t,width:1.5})}),zIndex:1/0})],e.MultiPoint=e.Point,e.GeometryCollection=e.Polygon.concat(e.LineString,e.Point),e}function cm(e){return e.getGeometry()}const hm=sm;class dm{constructor(e){e=e||{},this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.keepUpright_=e.keepUpright,this.scale_=e.scale,this.scaleArray_=Vf(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.repeat_=e.repeat,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new rm({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:"point",this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new dm({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),keepUpright:this.getKeepUpright(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getKeepUpright(){return this.keepUpright_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(e){this.overflow_=e}setFont(e){this.font_=e}setMaxAngle(e){this.maxAngle_=e}setOffsetX(e){this.offsetX_=e}setOffsetY(e){this.offsetY_=e}setPlacement(e){this.placement_=e}setRepeat(e){this.repeat_=e}setRotateWithView(e){this.rotateWithView_=e}setKeepUpright(e){this.keepUpright_=e}setFill(e){this.fill_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=Vf(void 0!==e?e:1)}setStroke(e){this.stroke_=e}setText(e){this.text_=e}setTextAlign(e){this.textAlign_=e}setJustify(e){this.justify_=e}setTextBaseline(e){this.textBaseline_=e}setBackgroundFill(e){this.backgroundFill_=e}setBackgroundStroke(e){this.backgroundStroke_=e}setPadding(e){this.padding_=e}}const fm=dm;function pm(e){return!0}function gm(e){const t=Wp(),n=function(e,t){const n=e.length,r=new Array(n);for(let i=0;i<n;++i){const n=e[i],o="filter"in n?$g(n.filter,Pp,t):pm;let s;if(Array.isArray(n.style)){const e=n.style.length;s=new Array(e);for(let r=0;r<e;++r)s[r]=ym(n.style[r],t)}else s=[ym(n.style,t)];r[i]={filter:o,styles:s}}return function(t){const i=[];let o=!1;for(let s=0;s<n;++s)if((0,r[s].filter)(t)&&(!e[s].else||!o)){o=!0;for(const e of r[s].styles){const n=e(t);n&&i.push(n)}}return i}}(e,t),r={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""};return function(e,i){if(r.properties=e.getPropertiesInternal(),r.resolution=i,t.featureId){const t=e.getId();r.featureId=void 0!==t?t:null}return t.geometryType&&(r.geometryType=Hg(e.getGeometry())),n(r)}}function mm(e){const t=Wp(),n=e.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=ym(e[i],t);const i={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""},o=new Array(n);return function(e,s){if(i.properties=e.getPropertiesInternal(),i.resolution=s,t.featureId){const t=e.getId();i.featureId=void 0!==t?t:null}let a=0;for(let e=0;e<n;++e){const t=r[e](i);t&&(o[a]=t,a+=1)}return o.length=a,o}}function ym(e,t){const n=vm(e,"",t),r=_m(e,"",t),i=function(e,t){const n="text-",r=wm(e,n+"value",t);if(!r)return null;const i=vm(e,n,t),o=vm(e,n+"background-",t),s=_m(e,n,t),a=_m(e,n+"background-",t),l=wm(e,n+"font",t),u=bm(e,n+"max-angle",t),c=bm(e,n+"offset-x",t),h=bm(e,n+"offset-y",t),d=xm(e,n+"overflow",t),f=wm(e,n+"placement",t),p=bm(e,n+"repeat",t),g=km(e,n+"scale",t),m=xm(e,n+"rotate-with-view",t),y=bm(e,n+"rotation",t),v=wm(e,n+"align",t),_=wm(e,n+"justify",t),b=wm(e,n+"baseline",t),w=xm(e,n+"keep-upright",t),x=Sm(e,n+"padding",t),E=Im(e,n+"declutter-mode"),S=new fm({declutterMode:E});return function(e){if(S.setText(r(e)),i&&S.setFill(i(e)),o&&S.setBackgroundFill(o(e)),s&&S.setStroke(s(e)),a&&S.setBackgroundStroke(a(e)),l&&S.setFont(l(e)),u&&S.setMaxAngle(u(e)),c&&S.setOffsetX(c(e)),h&&S.setOffsetY(h(e)),d&&S.setOverflow(d(e)),f){const t=f(e);if("point"!==t&&"line"!==t)throw new Error("Expected point or line for text-placement");S.setPlacement(t)}if(p&&S.setRepeat(p(e)),g&&S.setScale(g(e)),m&&S.setRotateWithView(m(e)),y&&S.setRotation(y(e)),v){const t=v(e);if("left"!==t&&"center"!==t&&"right"!==t&&"end"!==t&&"start"!==t)throw new Error("Expected left, right, center, start, or end for text-align");S.setTextAlign(t)}if(_){const t=_(e);if("left"!==t&&"right"!==t&&"center"!==t)throw new Error("Expected left, right, or center for text-ju
3stify");S.setJustify(t)}if(b){const t=b(e);if("bottom"!==t&&"top"!==t&&"middle"!==t&&"alphabetic"!==t&&"hanging"!==t)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");S.setTextBaseline(t)}return x&&S.setPadding(x(e)),w&&S.setKeepUpright(w(e)),S}}(e,t),o=function(e,t){return"icon-src"in e?function(e,t){const n="icon-",r=n+"src",i=Am(e[r],r),o=Cm(e,n+"anchor",t),s=km(e,n+"scale",t),a=bm(e,n+"opacity",t),l=Cm(e,n+"displacement",t),u=bm(e,n+"rotation",t),c=xm(e,n+"rotate-with-view",t),h=Pm(e,n+"anchor-origin"),d=Om(e,n+"anchor-x-units"),f=Om(e,n+"anchor-y-units"),p=function(e,t){const n=e[t];if(void 0!==n)return Nm(n,t)}(e,n+"color"),g=function(e,t){const n=e[t];if(void 0!==n){if("string"!=typeof n)throw new Error(`Expected a string for ${t}`);return n}}(e,n+"cross-origin"),m=function(e,t){const n=e[t];if(void 0!==n)return Rm(n,t)}(e,n+"offset"),y=Pm(e,n+"offset-origin"),v=Tm(e,n+"width"),_=Tm(e,n+"height"),b=function(e,t){const n=e[t];if(void 0!==n){if("number"==typeof n)return Vf(n);if(!Array.isArray(n))throw new Error(`Expected a number or size array for ${t}`);if(2!==n.length||"number"!=typeof n[0]||"number"!=typeof n[1])throw new Error(`Expected a number or size array for ${t}`);return n}}(e,n+"size"),w=Im(e,n+"declutter-mode"),x=new Xf({src:i,anchorOrigin:h,anchorXUnits:d,anchorYUnits:f,color:p,crossOrigin:g,offset:m,offsetOrigin:y,height:_,width:v,size:b,declutterMode:w});return function(e){return a&&x.setOpacity(a(e)),l&&x.setDisplacement(l(e)),u&&x.setRotation(u(e)),c&&x.setRotateWithView(c(e)),s&&x.setScale(s(e)),o&&x.setAnchor(o(e)),x}}(e,t):"shape-points"in e?function(e,t){const n="shape-",r=n+"points",i=n+"radius",o=Lm(e[r],r),s=Lm(e[i],i),a=vm(e,n,t),l=_m(e,n,t),u=km(e,n+"scale",t),c=Cm(e,n+"displacement",t),h=bm(e,n+"rotation",t),d=xm(e,n+"rotate-with-view",t),f=Tm(e,n+"radius2"),p=Tm(e,n+"angle"),g=Im(e,n+"declutter-mode"),m=new Qg({points:o,radius:s,radius2:f,angle:p,declutterMode:g});return function(e){return a&&m.setFill(a(e)),l&&m.setStroke(l(e)),c&&m.setDisplacement(c(e)),h&&m.setRotation(h(e)),d&&m.setRotateWithView(d(e)),u&&m.setScale(u(e)),m}}(e,t):"circle-radius"in e?function(e,t){const n="circle-",r=vm(e,n,t),i=_m(e,n,t),o=bm(e,n+"radius",t),s=km(e,n+"scale",t),a=Cm(e,n+"displacement",t),l=bm(e,n+"rotation",t),u=xm(e,n+"rotate-with-view",t),c=Im(e,n+"declutter-mode"),h=new tm({radius:5,declutterMode:c});return function(e){return o&&h.setRadius(o(e)),r&&h.setFill(r(e)),i&&h.setStroke(i(e)),a&&h.setDisplacement(a(e)),l&&h.setRotation(l(e)),u&&h.setRotateWithView(u(e)),s&&h.setScale(s(e)),h}}(e,t):null}(e,t),s=bm(e,"z-index",t);if(!(n||r||i||o||we(e)))throw new Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(e));const a=new hm;return function(e){let t=!0;if(n){const r=n(e);r&&(t=!1),a.setFill(r)}if(r){const n=r(e);n&&(t=!1),a.setStroke(n)}if(i){const n=i(e);n&&(t=!1),a.setText(n)}if(o){const n=o(e);n&&(t=!1),a.setImage(n)}return s&&a.setZIndex(s(e)),t?null:a}}function vm(e,t,n){let r;if(t+"fill-pattern-src"in e)r=function(e,t,n){const r=wm(e,t+"pattern-src",n),i=Mm(e,t+"pattern-offset",n),o=Mm(e,t+"pattern-size",n),s=Em(e,t+"color",n);return function(e){return{src:r(e),offset:i&&i(e),size:o&&o(e),color:s&&s(e)}}}(e,t+"fill-",n);else{if("none"===e[t+"fill-color"])return e=>null;r=Em(e,t+"fill-color",n)}if(!r)return null;const i=new rm;return function(e){const t=r(e);return t===Ed?null:(i.setColor(t),i)}}function _m(e,t,n){const r=bm(e,t+"stroke-width",n),i=Em(e,t+"stroke-color",n);if(!r&&!i)return null;const o=wm(e,t+"stroke-line-cap",n),s=wm(e,t+"stroke-line-join",n),a=Sm(e,t+"stroke-line-dash",n),l=bm(e,t+"stroke-line-dash-offset",n),u=bm(e,t+"stroke-miter-limit",n),c=new om;return function(e){if(i){const t=i(e);if(t===Ed)return null;c.setColor(t)}if(r&&c.setWidth(r(e)),o){const t=o(e);if("butt"!==t&&"round"!==t&&"square"!==t)throw new Error("Expected butt, round, or square line cap");c.setLineCap(t)}if(s){const t=s(e);if("bevel"!==t&&"round"!==t&&"miter"!==t)throw new Error("Expected bevel, round, or miter line join");c.setLineJoin(t)}
vendor: 23,895 bytes, line 3
3return a&&c.setLineDash(a(e)),l&&c.setLineDashOffset(l(e)),u&&c.setMiterLimit(u(e)),c}}function bm(e,t,n){if(!(t in e))return;const r=$g(e[t],Op,n);return function(e){return Lm(r(e),t)}}function wm(e,t,n){if(!(t in e))return null;const r=$g(e[t],Ip,n);return function(e){return Am(r(e),t)}}function xm(e,t,n){if(!(t in e))return null;const r=$g(e[t],Pp,n);return function(e){const n=r(e);if("boolean"!=typeof n)throw new Error(`Expected a boolean for ${t}`);return n}}function Em(e,t,n){if(!(t in e))return null;const r=$g(e[t],Rp,n);return function(e){return Nm(r(e),t)}}function Sm(e,t,n){if(!(t in e))return null;const r=$g(e[t],Ap,n);return function(e){return Rm(r(e),t)}}function Cm(e,t,n){if(!(t in e))return null;const r=$g(e[t],Ap,n);return function(e){const n=Rm(r(e),t);if(2!==n.length)throw new Error(`Expected two numbers for ${t}`);return n}}function Mm(e,t,n){if(!(t in e))return null;const r=$g(e[t],Ap,n);return function(e){return Dm(r(e),t)}}function km(e,t,n){if(!(t in e))return null;const r=$g(e[t],Ap|Op,n);return function(e){return n=r(e),i=t,"number"==typeof n?n:Dm(n,i);var n,i}}function Tm(e,t){const n=e[t];if(void 0!==n){if("number"!=typeof n)throw new Error(`Expected a number for ${t}`);return n}}function Pm(e,t){const n=e[t];if(void 0!==n){if("bottom-left"!==n&&"bottom-right"!==n&&"top-left"!==n&&"top-right"!==n)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${t}`);return n}}function Om(e,t){const n=e[t];if(void 0!==n){if("pixels"!==n&&"fraction"!==n)throw new Error(`Expected pixels or fraction for ${t}`);return n}}function Im(e,t){const n=e[t];if(void 0!==n){if("string"!=typeof n)throw new Error(`Expected a string for ${t}`);if("declutter"!==n&&"obstacle"!==n&&"none"!==n)throw new Error(`Expected declutter, obstacle, or none for ${t}`);return n}}function Rm(e,t){if(!Array.isArray(e))throw new Error(`Expected an array for ${t}`);const n=e.length;for(let r=0;r<n;++r)if("number"!=typeof e[r])throw new Error(`Expected an array of numbers for ${t}`);return e}function Am(e,t){if("string"!=typeof e)throw new Error(`Expected a string for ${t}`);return e}function Lm(e,t){if("number"!=typeof e)throw new Error(`Expected a number for ${t}`);return e}function Nm(e,t){if("string"==typeof e)return e;const n=Rm(e,t),r=n.length;if(r<3||r>4)throw new Error(`Expected a color with 3 or 4 values for ${t}`);return n}function Dm(e,t){const n=Rm(e,t);if(2!==n.length)throw new Error(`Expected an array of two numbers for ${t}`);return n}const Fm={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};function jm(e,t,n){return function(r,i,o,s,a){if(!r)return;if(!i&&!t)return r;const l=t?0:o[0]*i,u=t?0:o[1]*i,c=a?a[0]:0,h=a?a[1]:0;let d=e[0]+l/2+c,f=e[2]-l/2+c,p=e[1]+u/2+h,g=e[3]-u/2+h;d>f&&(d=(f+d)/2,f=d),p>g&&(p=(g+p)/2,g=p);let m=Rt(r[0],d,f),y=Rt(r[1],p,g);if(s&&n&&i){const e=30*i;m+=-e*Math.log(1+Math.max(0,d-r[0])/e)+e*Math.log(1+Math.max(0,r[0]-f)/e),y+=-e*Math.log(1+Math.max(0,p-r[1])/e)+e*Math.log(1+Math.max(0,r[1]-g)/e)}return[m,y]}}function Bm(e){return e}function zm(e){return Math.pow(e,3)}function Gm(e){return 1-zm(1-e)}function Um(e){return 3*e*e-2*e*e*e}function Wm(e){return e}function qm(e,t,n,r){const i=pt(t)/n[0],o=ct(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function Vm(e,t,n){let r=Math.min(e,t);return r*=Math.log(1+50*Math.max(0,e/t-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/e-1))/50+1),Rt(r,n/2,2*t)}function Ym(e,t,n,r,i){return n=void 0===n||n,function(o,s,a,l){if(void 0!==o){const s=r?qm(e,r,a,i):e;return n&&l?Vm(o,s,t):Rt(o,t,s)}}}function Hm(e){if(void 0!==e)return 0}function $m(e){if(void 0!==e)return e}const Km=256;function Xm(e,t){setTimeout((function(){e(t)}),0)}function Zm(e){return!(e.sourceCenter&&e.targetCenter&&!Ct(e.sourceCenter,e.targetCenter))&&e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation}function Jm(e,t,n,r,i){const o=Math.cos(-i);let s=Math.sin(-i),a=e[0]*o-e[1]*s,l=e[1]*o+e[0]*s;return a+=(t[0]/2-n[0])*r,l+=(n[1]-t[1]/2)*r,s=-s,[a*o-l*s,l*o+a*s]}const Qm=class extends Ne{constructor(e){super(),this.on,this.once,this.un,e=Object.assign({},e),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=Xn(e.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,e.projection&&Wn(),e.center&&(e.center=lr(e.center,this.projection_)),e.extent&&(e.extent=cr(e.extent,this.projection_)),this.applyOptions_(e)}applyOptions_(e){const t=Object.assign({},e);for(const e in Fm)delete t[e];this.setProperties(t,!0);const n=function(e){let t,n,r;let i=void 0!==e.minZoom?e.minZoom:0,o=void 0!==e.maxZoom?e.maxZoom:28;const s=void 0!==e.zoomFactor?e.zoomFactor:2,a=void 0!==e.multiWorld&&e.multiWorld,l=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,u=void 0!==e.showFullExtent&&e.showFullExtent,c=Xn(e.projection,"EPSG:3857"),h=c.getExtent();let d=e.constrainOnlyCenter,f=e.extent;if(a||f||!c.isGlobal()||(d=!1,f=h),void 0!==e.resolutions){const s=e.resolutions;n=s[i],r=void 0!==s[o]?s[o]:s[s.length-1],t=e.constrainResolution?function(e,t,n,r){return t=void 0===t||t,function(i,o,s,a){if(void 0!==i){const l=e[0],u=e[e.length-1],c=n?qm(l,n,s,r):l;if(a)return t?Vm(i,c,u):Rt(i,u,c);const h=Math.min(c,i),d=Math.floor(de(e,h,o));return e[d]>c&&d<e.length-1?e[d+1]:e[d]}}}(s,l,!d&&f,u):Ym(n,r,l,!d&&f,u)}else{const a=(h?Math.max(pt(h),ct(h)):360*qt.degrees/c.getMetersPerUnit())/256/Math.pow(2,0),p=a/Math.pow(2,28);n=e.maxResolution,void 0!==n?i=0:n=a/Math.pow(s,i),r=e.minResolution,void 0===r&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?n/Math.pow(s,o):a/Math.pow(s,o):p),o=i+Math.floor(Math.log(n/r)/Math.log(s)),r=n/Math.pow(s,o-i),t=e.constrainResolution?function(e,t,n,r,i,o){return r=void 0===r||r,n=void 0!==n?n:0,function(s,a,l,u){if(void 0!==s){const c=i?qm(t,i,l,o):t;if(u)return r?Vm(s,c,n):Rt(s,n,c);const h=1e-9,d=Math.ceil(Math.log(t/c)/Math.log(e)-h),f=-a*(.5-h)+.5,p=Math.min(c,s),g=Math.floor(Math.log(t/p)/Math.log(e)+f),m=Math.max(d,g);return Rt(t/Math.pow(e,m),n,c)}}}(s,n,r,l,!d&&f,u):Ym(n,r,l,!d&&f,u)}return{constraint:t,maxResolution:n,minResolution:r,minZoom:i,zoomFactor:s}}(e);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=e.resolutions,this.padding_=e.padding,this.minZoom_=n.minZoom;const r=function(e){if(void 0!==e.extent){const t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return jm(e.extent,e.constrainOnlyCenter,t)}const t=Xn(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&t.isGlobal()){const e=t.getExtent().slice();return e[0]=-1/0,e[2]=1/0,jm(e,!1,!1)}return Bm}(e),i=n.constraint,o=function(e){if(void 0===e.enableRotation||e.enableRotation){const t=e.constrainRotation;return void 0===t||!0===t?function(){const e=Dt(5);return function(t,n){return n||void 0===t?t:Math.abs(t)<=e?0:t}}():!1===t?$m:"number"==typeof t?function(e){const t=2*Math.PI/e;return function(e,n){return n?e:void 0!==e?e=Math.floor(e/t+.5)*t:void 0}}(t):$m}return Hm}(e);this.constraints_={center:r,resolution:i,rotation:o},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom)}get padding(){return this.padding_}set padding(e){let t=this.padding_;this.padding_=e;const n=this.getCenterInternal();if(n){const r=e||[0,0,0,0];t=t||[0,0,0,0];const i=this.getResolution(),o=i/2*(r[3]-t[3]+t[1]-r[1]),s=i/2*(r[0]-t[0]+t[2]-r[2]);this.setCenterInternal([n[0]+o,n[1]-s])}}getUpdatedOptions_(e){const t=this.getProperties();return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),Object.assign({},t,e)}animate(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const t=new Array(arguments.length);for(let e=0;e<t.length;++e){let n=arguments[e];n.center&&(n=Object.assign({},n),n.center=lr(n.center,this.getProjection())),n.anchor&&(n=Object.assign({},n),n.anchor=lr(n.anchor,this.getProjection())),t[e]=n}this.animateInternal.apply(this,t)}animateInternal(e){let t,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(t=arguments[n-1],--n);let r=0;for(;r<n&&!this.isDef();++r){const e=arguments[r];e.center&&this.setCenterInternal(e.center),void 0!==e.zoom?this.setZoom(e.zoom):e.resolution&&this.setResolution(e.resolution),void 0!==e.rotation&&this.setRotation(e.rotation)}if(r===n)return void(t&&Xm(t,!0));let i=Date.now(),o=this.targetCenter_.slice(),s=this.targetResolution_,a=this.targetRotation_;const l=[];for(;r<n;++r){const e=arguments[r],n={start:i,complete:!1,anchor:e.anchor,duration:void 0!==e.duration?e.duration:1e3,easing:e.easing||Um,callback:t};if(e.center&&(n.sourceCenter=o,n.targetCenter=e.center.slice(),o=n.targetCenter),void 0!==e.zoom?(n.sourceResolution=s,n.targetResolution=this.getResolutionForZoom(e.zoom),s=n.targetResolution):e.resolution&&(n.sourceResolution=s,n.targetResolution=e.resolution,s=n.targetResolution),void 0!==e.rotation){n.sourceRotation=a;const t=Ft(e.rotation-a+Math.PI,2*Math.PI)-Math.PI;n.targetRotation=a+t,a=n.targetRotation}Zm(n)?n.complete=!0:i+=n.duration,l.push(n)}this.animations_.push(l),this.setHint(0,1),this.updateAnimations_()}getAnimating(){return this.hints_[0]>0}getInteracting(){return this.hints_[1]>0}cancelAnimations(){let e;this.setHint(0,-this.hints_[0]);for(let t=0,n=this.animations_.length;t<n;++t){const n=this.animations_[t];if(n[0].callback&&Xm(n[0].callback,!1),!e)for(let t=0,r=n.length;t<r;++t){const r=n[t];if(!r.complete){e=r.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const e=Date.now();let t=!1;for(let n=this.animations_.length-1;n>=0;--n){const r=this.animations_[n];let i=!0;for(let n=0,o=r.length;n<o;++n){const o=r[n];if(o.complete)continue;const s=e-o.start;let a=o.duration>0?s/o.duration:1;a>=1?(o.complete=!0,a=1):i=!1;const l=o.easing(a);if(o.sourceCenter){const e=o.sourceCenter[0],t=o.sourceCenter[1],n=o.targetCenter[0],r=o.targetCenter[1];this.nextCenter_=o.targetCenter;const i=e+l*(n-e),s=t+l*(r-t);this.targetCenter_=[i,s]}if(o.sourceResolution&&o.targetResolution){const e=1===l?o.targetResolution:o.sourceResolution+l*(o.targetResolution-o.sourceResolution);if(o.anchor){const t=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(e,0,t,!0);this.targetCenter_=this.calculateCenterZoom(n,o.anchor)}this.nextResolution_=o.targetResolution,this.targetResolution_=e,this.applyTargetState_(!0)}if(void 0!==o.sourceRotation&&void 0!==o.targetRotation){const e=1===l?Ft(o.targetRotation+Math.PI,2*Math.PI)-Math.PI:o.sourceRotation+l*(o.targetRotation-o.sourceRotation);if(o.anchor){const t=this.constraints_.rotation(e,!0);this.targetCenter_=this.calculateCenterRotate(t,o.anchor)}this.nextRotation_=o.targetRotation,this.targetRotation_=e}if(this.applyTargetState_(!0),t=!0,!o.complete)break}if(i){this.animations_[n]=null,this.setHint(0,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const e=r[0].callback;e&&Xm(e,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,t){let n;const r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],Mt(n,e-this.getRotation()),xt(n,t)),n}calculateCenterZoom(e,t){let n;const r=this.getCenterInternal(),i=this.getResolution();return void 0!==r&&void 0!==i&&(n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]),n}getViewportSize_(e){const t=this.viewportSize_;if(e){const n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e?ar(e,this.getProjection()):e}getCenterInternal(){return this.get(Fm.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){return ur(this.calculateExtentInternal(e),this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const t=this.getCenterInternal();De(t,"The view center is not defined");const n=this.getResolution();De(void 0!==n,"The view resolution is not defined");const r=this.getRotation();return De(void 0!==r,"The view rotation is not defined"),lt(t,n,r,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(Fm.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,t){return this.getResolutionForExtentInternal(cr(e,this.getProjection()),t)}getResolutionForExtentInternal(e,t){t=t||this.getViewportSizeMinusPadding_();const n=pt(e)/t[0],r=ct(e)/t[1];return Math.max(n,r)}getResolutionForValueFunction(e){e=e||2;const t=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(t/n)/Math.log(e);return function(n){return t/Math.pow(e,n*r)}}getRotation(){return this.get(Fm.ROTATION)}getValueForResolutionFunction(e){const t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){return Math.log(n/e)/t/i}}getViewportSizeMinusPadding_(e){let t=this.getViewportSize_(e);const n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t}getState(){const e=this.getProjection(),t=this.getResolution(),n=this.getRotation();let r=this.getCenterInternal();const i=this.padding_;if(i){const e=this.getViewportSizeMinusPadding_();r=Jm(r,this.getViewportSize_(),[e[0]/2+i[3],e[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e}getZoomForResolution(e){let t,n,r=this.minZoom_||0;if(this.resolutions_){const i=de(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)}getResolutionForZoom(e){if(this.resolutions_?.length){if(1===this.resolutions_.length)return this.resolutions_[0];const t=Rt(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,Rt(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,t){let n;if(De(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(e))De(!mt(e),"Cannot fit empty extent provided as `geometry`"),n=Ei(cr(e,this.getProjection()));else if("Circle"===e.getType()){const t=cr(e.getExtent(),this.getProjection());n=Ei(t),n.rotate(this.getRotation(),st(t))}else{const t=sr();n=t?e.clone().transform(t,this.getProjection()):e}this.fitInternal(n,t)}rotatedExtentForGeometry(e){const t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride();let s=1/0,a=1/0,l=-1/0,u=-1/0;for(let e=0,t=i.length;e<t;e+=o){const t=i[e]*n-i[e+1]*r,o=i[e]*r+i[e+1]*n;s=Math.min(s,t),a=Math.min(a,o),l=Math.max(l,t),u=Math.max(u,o)}return[s,a,l,u]}fitInternal(e,t){let n=(t=t||{}).size;n||(n=this.getViewportSizeMinusPadding_());const r=void 0!==t.padding?t.padding:[0,0,0,0],i=void 0!==t.nearest&&t.nearest;let o;o=void 0!==t.minResolution?t.minResolution:void 0!==t.maxZoom?this.getResolutionForZoom(t.maxZoom):0;const s=this.rotatedExtentForGeometry(e);let a=this.getResolutionForExtentInternal(s,[n[0]-r[1]-r[3],n[1]-r[0]-r[2]]);a=isNaN(a)?o:Math.max(a,o),a=this.getConstrainedResolution(a,i?0:1);const l=this.getRotation(),u=Math.sin(l),c=Math.cos(l),h=st(s);h[0]+=(r[1]-r[3])/2*a,h[1]+=(r[0]-r[2])/2*a;const d=h[0]*c-h[1]*u,f=h[1]*c+h[0]*u,p=this.getConstrainedCenter([d,f],a),g=t.callback?t.callback:ve;void 0!==t.duration?this.animateInternal({resolution:a,center:p,duration:t.duration,easing:t.easing},g):(this.targetResolution_=a,this.targetCenter_=p,this.applyTargetState_(!1,!0),Xm(g,!0))}centerOn(e,t,n){this.centerOnInternal(lr(e,this.getProjection()),t,n)}centerOnInternal(e,t,n){this.setCenterInternal(Jm(e,t,n,this.getResolution(),this.getRotation()))}calculateCenterShift(e,t,n,r){let i;const o=this.padding_;if(o&&e){const s=this.getViewportSizeMinusPadding_(-n),a=Jm(e,r,[s[0]/2+o[3],s[1]/2+o[0]],t,n);i=[e[0]-a[0],e[1]-a[1]]}return i}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(e){const t=ar(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])}adjustCenterInternal(e){const t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])}adjustResolution(e,t){t=t&&lr(t,this.getProjection()),this.adjustResolutionInternal(e,t)}adjustResolutionInternal(e,t){const n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,r,n);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()}adjustZoom(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)}adjustRotation(e,t){t&&(t=lr(t,this.getProjection())),this.adjustRotationInternal(e,t)}adjustRotationInternal(e,t){const n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+e,n);t&&(this.targetCenter_=this.calculateCenterRotate(r,t)),this.targetRotation_+=e,this.applyTargetState_()}setCenter(e){this.setCenterInternal(e?lr(e,this.getProjection()):e)}setCenterInternal(e){this.targetCenter_=e,this.applyTargetState_()}setHint(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]}setResolution(e){this.targetResolution_=e,this.applyTargetState_()}setRotation(e){this.targetRotation_=e,this.applyTargetState_()}setZoom(e){this.setResolution(this.getResolutionForZoom(e))}applyTargetState_(e,t){const n=this.getAnimating()||this.getInteracting()||t,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),s=this.constraints_.center(this.targetCenter_,o,i,n,this.calculateCenterShift(this.targetCenter_,o,r,i));this.get(Fm.ROTATION)!==r&&this.set(Fm.ROTATION,r),this.get(Fm.RESOLUTION)!==o&&(this.set(Fm.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(Fm.CENTER)&&Ct(this.get(Fm.CENTER),s)||this.set(Fm.CENTER,s),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(e,t,n){e=void 0!==e?e:200;const r=t||0,i=this.constraints_.rotation(this.targetRotation_),o=this.getViewportSize_(i),s=this.constraints_.resolution(this.targetResolution_,r,o),a=this.constraints_.center(this.targetCenter_,s,o,!1,this.calculateCenterShift(this.targetCenter_,s,i,o));if(0===e&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=i,this.targetCenter_=a,void this.applyTargetState_();n=n||(0===e?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===i&&this.getCenterInternal()&&Ct(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:i,center:a,resolution:s,duration:e,easing:Gm,anchor:n}))}beginInteraction(){this.resolveConstraints(0),this.setHint(1,1)}endInteraction(e,t,n){n=n&&lr(n,this.getProjection()),this.endInteractionInternal(e,t,n)}endInteractionInternal(e,t,n){this.getInteracting()&&(this.setHint(1,-1),this.resolveConstraints(e,t,n))}getConstrainedCenter(e,t){const n=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),n)}getConstrainedZoom(e,t){const n=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(n,t))}getConstrainedResolution(e,t){t=t||0;const n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,t,n)}},ey="opacity",ty="visible",ny="extent",ry="zIndex",iy="maxResolution",oy="minResolution",sy="maxZoom",ay="minZoom",ly="source",uy=class extends Ne{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const t=Object.assign({},e);"object"==typeof e.properties&&(delete t.properties,Object.assign(t,e.properties)),t[ey]=void 0!==e.opacity?e.opacity:1,De("number"==typeof t[ey],"Layer opacity must be a number"),t[ty]=void 0===e.visible||e.visible,t[ry]=e.zIndex,t[iy]=void 0!==e.maxResolution?e.maxResolution:1/0,t[oy]=void 0!==e.minResolution?e.minResolution:0,t[ay]=void 0!==e.minZoom?e.minZoom:-1/0,t[sy]=void 0!==e.maxZoom?e.maxZoom:1/0,this.className_=void 0!==t.className?t.className:"ol-layer",delete t.className,this.setProperties(t),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=Rt(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n||t.managed?n:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t}getLayersArray(e){return Oe()}getLayerStatesArray(e){return Oe()}getExtent(){return this.get(ny)}getMaxResolution(){return this.get(iy)}getMinResolution(){return this.get(oy)}getMinZoom(){return this.get(ay)}getMaxZoom(){return this.get(sy)}getOpacity(){return this.get(ey)}getSourceState(){return Oe()}getVisible(){return this.get(ty)}getZIndex(){return this.get(ry)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(ny,e)}setMaxResolution(e){this.set(iy,e)}setMinResolution(e){this.set(oy,e)}setMaxZoom(e){this.set(sy,e)}setMinZoom(e){this.set(ay,e)}setOpacity(e){De("number"==typeof e,"Layer opacity must be a number"),this.set(ey,e)}setVisible(e){this.set(ty,e)}setZIndex(e){this.set(ry,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}};function cy(e,t){if(!e.visible)return!1;const n=t.resolution;if(n<e.minResolution||n>=e.maxResolution)return!1;const r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}const hy=class extends uy{constructor(e){const t=Object.assign({},e);delete t.source,super(t),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,e.render&&(this.render=e.render),e.map&&this.setMap(e.map),this.addChangeListener(ly,this.handleSourcePropertyChange_);const n=e.source?e.source:null;this.setSource(n)}getLayersArray(e){return(e=e||[]).push(this),e}getLayerStatesArray(e){return(e=e||[]).push(this.getLayerState()),e}getSource(){return this.get(ly)||null}
3getRenderSource(){return this.getSource()}getSourceState(){const e=this.getSource();return e?e.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&(Me(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const e=this.getSource();e&&(this.sourceChangeKey_=Se(e,ne,this.handleSourceChange_,this),"ready"===e.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0)),this.clearRenderer()),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null}isVisible(e){let t;const n=this.getMapInternal();let r;if(!e&&n&&(e=n.getView()),t=e instanceof Qm?{viewState:e.getState(),extent:e.calculateExtent()}:e,!t.layerStatesArray&&n&&(t.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),t.layerStatesArray){if(r=t.layerStatesArray.find((e=>e.layer===this)),!r)return!1}else r=this.getLayerState();const i=this.getExtent();return cy(r,t.viewState)&&(!i||gt(i,t.extent))}getAttributions(e){if(!this.isVisible(e))return[];const t=this.getSource()?.getAttributions();if(!t)return[];let n=t(e instanceof Qm?e.getViewStateAndExtent():e);return Array.isArray(n)||(n=[n]),n}render(e,t){const n=this.getRenderer();return n.prepareFrame(e)?(this.rendered=!0,n.renderFrame(e,t)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(e,t){}renderDeferred(e){const t=this.getRenderer();t&&t.renderDeferred(e)}setMapInternal(e){e||this.unrender(),this.set("map",e)}getMapInternal(){return this.get("map")}setMap(e){this.mapPrecomposeKey_&&(Me(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(Me(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Se(e,dd,this.handlePrecompose_,this),this.mapRenderKey_=Se(this,ne,e.render,e),this.changed())}handlePrecompose_(e){const t=e.frameState.layerStatesArray,n=this.getLayerState(!1);De(!t.some((e=>e.layer===n.layer)),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),t.push(n)}setSource(e){this.set(ly,e)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}clearRenderer(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_)}disposeInternal(){this.clearRenderer(),this.setSource(null),super.disposeInternal()}},dy="renderOrder",fy=class extends hy{constructor(e){e=e||{};const t=Object.assign({},e);delete t.style,delete t.renderBuffer,delete t.updateWhileAnimating,delete t.updateWhileInteracting,super(t),this.declutter_=e.declutter?String(e.declutter):void 0,this.renderBuffer_=void 0!==e.renderBuffer?e.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(e.style),this.updateWhileAnimating_=void 0!==e.updateWhileAnimating&&e.updateWhileAnimating,this.updateWhileInteracting_=void 0!==e.updateWhileInteracting&&e.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(e){return super.getFeatures(e)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(dy)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(e,t){const n=this.getDeclutter();n in e.declutter==0&&(e.declutter[n]=new pp(9)),this.getRenderer().renderDeclutter(e,t)}setRenderOrder(e){this.set(dy,e)}setStyle(e){this.style_=void 0===e?lm:e;const t=function(e){if(void 0===e)return lm;if(!e)return null;if("function"==typeof e)return e;if(e instanceof hm)return e;if(!Array.isArray(e))return mm([e]);if(0===e.length)return[];const t=e.length,n=e[0];if(n instanceof hm){const n=new Array(t);for(let r=0;r<t;++r){const t=e[r];if(!(t instanceof hm))throw new Error("Expected a list of style instances");n[r]=t}return n}if("style"in n){const n=new Array(t);for(let r=0;r<t;++r){const t=e[r];if(!("style"in t))throw new Error("Expected a list of rules with a style property");n[r]=t}return gm(n)}return mm(e)}(e);this.styleFunction_=null===e?void 0:function(e){let t;if("function"==typeof e)t=e;else{let n;Array.isArray(e)?n=e:(De("function"==typeof e.getZIndex,"Expected an `Style` or an array of `Style`"),n=[e]),t=function(){return n}}return t}(t),this.changed()}setDeclutter(e){this.declutter_=e?String(e):void 0,this.changed()}},py=class extends fy{constructor(e){super(e)}createRenderer(){return new cp(this)}}
vendor: 14,252 bytes, line 3
3,gy="add",my="remove",yy="length";class vy extends xe{constructor(e,t,n){super(e),this.element=t,this.index=n}}const _y=class extends Ne{constructor(e,t){if(super(),this.on,this.once,this.un,t=t||{},this.unique_=!!t.unique,this.array_=e||[],this.unique_)for(let e=0,t=this.array_.length;e<t;++e)this.assertUnique_(this.array_[e],e);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let t=0,n=e.length;t<n;++t)this.push(e[t]);return this}forEach(e){const t=this.array_;for(let n=0,r=t.length;n<r;++n)e(t[n],n,t)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get(yy)}insertAt(e,t){if(e<0||e>this.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new vy(gy,t,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const t=this.getLength();return this.insertAt(t,e),this.getLength()}remove(e){const t=this.array_;for(let n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)}removeAt(e){if(e<0||e>=this.getLength())return;const t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new vy(my,t,e)),t}setAt(e,t){if(e>=this.getLength())return void this.insertAt(e,t);if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t,e);const n=this.array_[e];this.array_[e]=t,this.dispatchEvent(new vy(my,n,e)),this.dispatchEvent(new vy(gy,t,e))}updateLength_(){this.set(yy,this.array_.length)}assertUnique_(e,t){for(let n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===e&&n!==t)throw new Error("Duplicate item added to a unique collection")}};function by(e,t){return function(n,r,i,o,s){!function(e,t,n,r,i,o,s){const a=new XMLHttpRequest;a.open("GET","function"==typeof e?e(n,r,i):e,!0),"arraybuffer"==t.getType()&&(a.responseType="arraybuffer"),a.withCredentials=false,a.onload=function(e){if(!a.status||a.status>=200&&a.status<300){const e=t.getType();try{let r;"text"==e||"json"==e?r=a.responseText:"xml"==e?r=a.responseXML||a.responseText:"arraybuffer"==e&&(r=a.response),r?o(t.readFeatures(r,{extent:n,featureProjection:i}),t.readProjection(r)):s()}catch{s()}}else s()},a.onerror=s,a.send()}(e,t,n,r,i,((e,t)=>{this.addFeatures(e),void 0!==o&&o(e)}),s||ve)}}function wy(e,t){return[[-1/0,-1/0,1/0,1/0]]}function xy(e,t){return[e]}const Ey=[1,0,0,1,0,0];class Sy{constructor(e,t,n,r,i,o){this.styleFunction,this.extent_,this.id_=o,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n||null,this.properties_=i,this.squaredTolerance_,this.stride_=r,this.simplifiedGeometry_}get(e){return this.properties_[e]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?Ke(this.flatCoordinates_):Xe(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const e=st(this.getExtent());this.flatInteriorPoints_=pi(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const e=function(e,t){const n=[];let r,i=0,o=0;for(let s=0,a=t.length;s<a;++s){const a=t[s],l=yi(e,i,a,2);if(void 0===r&&(r=l),l===r)n.push(t.slice(o,s+1));else{if(0===n.length)continue;n[n.length-1].push(t[o])}o=s+1,i=a}return n}(this.flatCoordinates_,this.ends_),t=Ci(this.flatCoordinates_,0,e,2);this.flatInteriorPoints_=gi(this.flatCoordinates_,0,e,2,t)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=Gr(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const e=this.flatCoordinates_;let t=0;const n=this.ends_;for(let r=0,i=n.length;r<i;++r){const i=n[r],o=Gr(e,t,i,2,.5);pe(this.flatMidpoints_,o),t=i}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(e){return this}simplifyTransformed(e,t){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(e){const t=(e=Hn(e)).getExtent(),n=e.getWorldExtent();if(t&&n){const e=ct(n)/ct(t);yr(Ey,n[0],n[3],e,-e,0,0,0),br(this.flatCoordinates_,0,this.flatCoordinates_.length,2,Ey,this.flatCoordinates_)}}applyTransform(e){e(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){return new Sy(this.type_,this.flatCoordinates_.slice(),this.ends_?.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=_e(((e,t)=>{if(e===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),t&&this.simplifiedGeometry_.applyTransform(t);const n=this.simplifiedGeometry_.getFlatCoordinates();let r;switch(this.type_){case"LineString":n.length=Zr(n,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,e,n,0),r=[n.length];break;case"MultiLineString":r=[],n.length=Jr(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,e,n,0,r);break;case"Polygon":r=[],n.length=ti(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(e),n,0,r)}return r&&(this.simplifiedGeometry_=new Sy(this.type_,n,r,2,this.properties_,this.id_)),this.squaredTolerance_=e,this.simplifiedGeometry_})),this}}Sy.prototype.getFlatCoordinates=Sy.prototype.getOrientedFlatCoordinates;const Cy=Sy,My=class{constructor(e){this.rbush_=new pp(e),this.items_={}}insert(e,t){const n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[Re(t)]=n}load(e,t){const n=new Array(t.length);for(let r=0,i=t.length;r<i;r++){const i=e[r],o=t[r],s={minX:i[0],minY:i[1],maxX:i[2],maxY:i[3],value:o};n[r]=s,this.items_[Re(o)]=s}this.rbush_.load(n)}remove(e){const t=Re(e),n=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(n)}update(e,t){const n=this.items_[Re(t)];Ze([n.minX,n.minY,n.maxX,n.maxY],e)||(this.remove(t),this.insert(e,t))}getAll(){return this.rbush_.all().map((function(e){return e.value}))}getInExtent(e){const t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this.rbush_.search(t).map((function(e){return e.value}))}forEach(e){return this.forEach_(this.getAll(),e)}forEachInExtent(e,t){return this.forEach_(this.getInExtent(e),t)}forEach_(e,t){let n;for(let r=0,i=e.length;r<i;r++)if(n=t(e[r]),n)return n;return n}isEmpty(){return we(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(e){const t=this.rbush_.toJSON();return He(t.minX,t.minY,t.maxX,t.maxY,e)}concat(e){this.rbush_.load(e.rbush_.all());for(const t in e.items_)this.items_[t]=e.items_[t]}};function ky(e){return e?"function"==typeof e?e:(Array.isArray(e)||(e=[e]),t=>e):null}const Ty=class extends Ne{constructor(e){super(),this.projection=Hn(e.projection),this.attributions_=ky(e.attributions),this.attributionsCollapsible_=e.attributionsCollapsible??!0,this.loading=!1,this.state_=void 0!==e.state?e.state:"ready",this.wrapX_=void 0!==e.wrapX&&e.wrapX,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;const t=this;this.viewPromise_=new Promise((function(e,n){t.viewResolver=e,t.viewRejector=n}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=ky(e),this.changed()}setState(e){this.state_=e,this.changed()}},Py="addfeature",Oy="removefeature";class Iy extends xe{constructor(e,t,n){super(e),this.feature=t,this.features=n}}const Ry=class extends Ty{constructor(e){super({attributions:(e=e||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===e.wrapX||e.wrapX}),this.on,this.once,this.un,this.loader_=ve,this.format_=e.format||null,this.overlaps_=void 0===e.overlaps||e.overlaps,this.url_=e.url,void 0!==e.loader?this.loader_=e.loader:void 0!==this.url_&&(De(this.format_,"`format` must be set when `url` is set"),this.loader_=by(this.url_,this.format_)),this.strategy_=void 0!==e.strategy?e.strategy:wy;const t=void 0===e.useSpatialIndex||e.useSpatialIndex;let n,r;this.featuresRtree_=t?new My:null,this.loadedExtentsRtree_=new My,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(e.features)?r=e.features:e.features&&(n=e.features,r=n.getArray()),t||void 0!==n||(n=new _y(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(e){this.addFeatureInternal(e),this.changed()}addFeatureInternal(e){const t=Re(e);if(!this.addToIndex_(t,e))return void(this.featuresCollection_&&this.featuresCollection_.remove(e));this.setupChangeEvents_(t,e);const n=e.getGeometry();if(n){const t=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(t,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new Iy(Py,e))}setupChangeEvents_(e,t){t instanceof Cy||(this.featureChangeKeys_[e]=[Se(t,ne,this.handleFeatureChange_,this),Se(t,te,this.handleFeatureChange_,this)])}addToIndex_(e,t){let n=!0;if(void 0!==t.getId()){const e=String(t.getId());if(e in this.idIndex_)if(t instanceof Cy){const r=this.idIndex_[e];r instanceof Cy?Array.isArray(r)?r.push(t):this.idIndex_[e]=[r,t]:n=!1}else n=!1;else this.idIndex_[e]=t}return n&&(De(!(e in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[e]=t),n}addFeatures(e){this.addFeaturesInternal(e),this.changed()}addFeaturesInternal(e){const t=[],n=[],r=[];for(let t=0,r=e.length;t<r;t++){const r=e[t],i=Re(r);this.addToIndex_(i,r)&&n.push(r)}for(let e=0,i=n.length;e<i;e++){const i=n[e],o=Re(i);this.setupChangeEvents_(o,i);const s=i.getGeometry();if(s){const e=s.getExtent();t.push(e),r.push(i)}else this.nullGeometryFeatures_[o]=i}if(this.featuresRtree_&&this.featuresRtree_.load(t,r),this.hasListener(Py))for(let e=0,t=n.length;e<t;e++)this.dispatchEvent(new Iy(Py,n[e]))}bindFeaturesCollection_(e){let t=!1;this.addEventListener(Py,(function(n){t||(t=!0,e.push(n.feature),t=!1)})),this.addEventListener(Oy,(function(n){t||(t=!0,e.remove(n.feature),t=!1)})),e.addEventListener(gy,(e=>{t||(t=!0,this.addFeature(e.element),t=!1)})),e.addEventListener(my,(e=>{t||(t=!0,this.removeFeature(e.element),t=!1)})),this.featuresCollection_=e}clear(e){if(e){for(const e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(Me);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach((e=>{this.removeFeatureInternal(e)}));for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const t=new Iy("clear");this.dispatchEvent(t),this.changed()}forEachFeature(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureAtCoordinateDirect(e,t){const n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){const r=n.getGeometry();if(r instanceof Cy||r.intersectsCoordinate(e))return t(n)}))}forEachFeatureInExtent(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureIntersectingExtent(e,t){return this.forEachFeatureInExtent(e,(function(n){const r=n.getGeometry();if(r instanceof Cy||r.intersectsExtent(e)){const e=t(n);if(e)return e}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),we(this.nullGeometryFeatures_)||pe(e,Object.values(this.nullGeometryFeatures_))),e}getFeaturesAtCoordinate(e){const t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t}getFeaturesInExtent(e,t){if(this.featuresRtree_){if(!(t&&t.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);const n=vt(e,t);return[].concat(...n.map((e=>this.featuresRtree_.getInExtent(e))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(e,t){const n=e[0],r=e[1];let i=null;const o=[NaN,NaN];let s=1/0;const a=[-1/0,-1/0,1/0,1/0];return t=t||me,this.featuresRtree_.forEachInExtent(a,(function(e){if(t(e)){const t=e.getGeometry(),l=s;if(s=t instanceof Cy?0:t.closestPointXY(n,r,o,s),s<l){i=e;const t=Math.sqrt(s);a[0]=n-t,a[1]=r-t,a[2]=n+t,a[3]=r+t}}})),i}getExtent(e){return this.featuresRtree_.getExtent(e)}getFeatureById(e){const t=this.idIndex_[e.toString()];return void 0!==t?t:null}getFeatureByUid(e){const t=this.uidIndex_[e];return void 0!==t?t:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(e){const t=e.target,n=Re(t),r=t.getGeometry();if(r){const e=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(e,t)):this.featuresRtree_&&this.featuresRtree_.update(e,t)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[n]=t);const i=t.getId();if(void 0!==i){const e=i.toString();this.idIndex_[e]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[e]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[n]=t;this.changed(),this.dispatchEvent(new Iy("changefeature",t))}hasFeature(e){const t=e.getId();return void 0!==t?t in this.idIndex_:Re(e)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&we(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}
3loadFeatures(e,t,n){const r=this.loadedExtentsRtree_,i=this.strategy_(e,t,n);for(let e=0,o=i.length;e<o;++e){const o=i[e];r.forEachInExtent(o,(function(e){return qe(e.extent,o)}))||(++this.loadingExtentsCount_,this.dispatchEvent(new Iy("featuresloadstart")),this.loader_.call(this,o,t,n,(e=>{--this.loadingExtentsCount_,this.dispatchEvent(new Iy("featuresloadend",void 0,e))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new Iy("featuresloaderror"))})),r.insert(o,{extent:o.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(e){const t=this.loadedExtentsRtree_,n=t.forEachInExtent(e,(function(t){if(Ze(t.extent,e))return t}));n&&t.remove(n)}removeFeatures(e){let t=!1;for(let n=0,r=e.length;n<r;++n)t=this.removeFeatureInternal(e[n])||t;t&&this.changed()}removeFeature(e){e&&this.removeFeatureInternal(e)&&this.changed()}removeFeatureInternal(e){const t=Re(e);if(!(t in this.uidIndex_))return!1;t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e);const n=this.featureChangeKeys_[t];n?.forEach(Me),delete this.featureChangeKeys_[t];const r=e.getId();if(void 0!==r){const t=r.toString(),n=this.idIndex_[t];n===e?delete this.idIndex_[t]:Array.isArray(n)&&(n.splice(n.indexOf(e),1),1===n.length&&(this.idIndex_[t]=n[0]))}return delete this.uidIndex_[t],this.hasListener(Oy)&&this.dispatchEvent(new Iy(Oy,e)),!0}removeFromIdIndex_(e){for(const t in this.idIndex_)if(this.idIndex_[t]===e){delete this.idIndex_[t];break}}setLoader(e){this.loader_=e}setUrl(e){De(this.format_,"`format` must be set when `url` is set"),this.url_=e,this.setLoader(by(e,this.format_))}setOverlaps(e){this.overlaps_=e,this.changed()}};var Ay=Ae.split(".");Ay=100*parseInt(Ay[0])+parseInt(Ay[1]);const Ly=function(e,t){var n=e.frameState.pixelRatio;if(Ay>605&&Ay<700&&1!==n&&t.getImage()instanceof Xf){var r=(t=t.clone()).getImage();r.setScale(r.getScale()*n);var i=r.getAnchor();if(i&&r.setDisplacement){var o=r.getDisplacement();o&&(o[0]-=i[0]/n,o[1]+=i[1]/n,r.setAnchor([0,0]))}else i&&(i[0]/=n,i[1]/=n)}return t},Ny=class extends py{constructor(e){var t=e||{};super(t),this.oldcluster=new Ry,this.clusters=[],this.animation={start:!1},this.set("animationDuration","number"==typeof t.animationDuration?t.animationDuration:700),this.set("animationMethod",t.animationMethod||Gm),this.on(["precompose","prerender"],this.animate.bind(this)),this.on(["postcompose","postrender"],this.postanimate.bind(this))}setSource(e){this._saveClusterFn||(this._saveClusterFn=this.saveCluster.bind(this)),this.getSource()&&this.getSource().un("change",this._saveClusterFn),py.prototype.setSource.call(this,e),this.getSource()&&this.getSource().on("change",this._saveClusterFn)}saveCluster(){if(this.oldcluster){if(this.oldcluster.clear(),!this.get("animationDuration"))return;var e=this.getSource().getFeatures();e.length&&e[0].get("features")&&(this.oldcluster.addFeatures(this.cluster
3s),this.clusters=e.slice(0),this.sourceChanged=!0)}}getClusterForFeature(e,t){for(var n,r=0;n=t[r];r++){var i=n.get("features");if(i&&i.length)for(var o,s=0;o=i[s];s++)if(e===o)return n}return!1}stopAnimation(){this.animation.start=!1,this.animation.cA=[],this.animation.cB=[]}animate(e){var t=this.get("animationDuration");if(t){var n,r,i=e.frameState.viewState.resolution,o=this.animation,s=e.frameState.time;if(o.resolution!=i&&this.sourceChanged){var a=e.frameState.extent;for(o.resolution<i?(a=ze(a,100*i),o.cA=this.oldcluster.getFeaturesInExtent(a),o.cB=this.getSource().getFeaturesInExtent(a),o.revers=!1):(a=ze(a,100*i),o.cA=this.getSource().getFeaturesInExtent(a),o.cB=this.oldcluster.getFeaturesInExtent(a),o.revers=!0),o.clusters=[],n=0;r=o.cA[n];n++){var l=r.get("features");if(l&&l.length){var u=this.getClusterForFeature(l[0],o.cB);u&&o.clusters.push({f:r,pt:u.getGeometry().getCoordinates()})}}if(o.resolution=i,this.sourceChanged=!1,!o.clusters.length||o.clusters.length>1e3)return void this.stopAnimation();s=o.start=(new Date).getTime()}if(o.start){var c=e.vectorContext||function(e){const t=e.frameState,n=function(e,t){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=t[0],u=t[1],c=t[2],h=t[3],d=t[4],f=t[5];return e[0]=n*l+i*u,e[1]=r*l+o*u,e[2]=n*c+i*h,e[3]=r*c+o*h,e[4]=n*d+i*f+s,e[5]=r*d+o*f+a,e}(e.inversePixelTransform.slice(),t.coordinateToPixelTransform);return new Zf(e.context,t.pixelRatio,t.extent,n,t.viewState.rotation)}(e),h=(s-o.start)/t;h>1&&(this.stopAnimation(),h=1),h=this.get("animationMethod")(h);var d=this.getStyle(),f="function"==typeof d?d:d.length?function(){return d}:function(){return[d]};for(e.context.save(),e.context.globalAlpha=this.getOpacity(),n=0;u=o.clusters[n];n++){var p=u.f.getGeometry().getCoordinates(),g=p[0]-u.pt[0],m=p[1]-u.pt[1];o.revers?(p[0]=u.pt[0]+h*g,p[1]=u.pt[1]+h*m):(p[0]=p[0]-h*g,p[1]=p[1]-h*m);var y=f(u.f,i,!0);if(y.length||(y=[y]),1!==u.f.get("features").length||g||m){var v=new ai(p);l=new je(v)}else l=u.f.get("features")[0];for(var _,b=0;_=y[b];b++)if(_.getText()&&/\n/.test(_.getText().getText())){var w,x=_.getText().getOffsetX(),E=_.getText().getOffsetY(),S=_.getText().getRotation()||0,C=1.2*Number((_.getText().getFont()||"10px").match(/\d+/)),M=_.getText().getText().split("\n"),k=M.length-1,T=_.clone();M.forEach((function(t,n){switch(1==n&&(T.setImage(),T.setFill(),T.setStroke()),_.getText().getTextBaseline()){case"alphabetic":case"ideographic":case"bottom":w=k;break;case"hanging":case"top":w=0;break;default:w=k/2}T.getText().setOffsetX(x-Math.sin(S)*C*(n-w)),T.getText().setOffsetY(E+Math.cos(S)*C*(n-w)),T.getText().setText(t),c.drawFeature(l,Ly(e,T))}))}else c.drawFeature(l,Ly(e,_))}e.context.restore(),e.frameState.animate=!0,e.context.save(),e.context.beginPath(),e.context.rect(0,0,0,0),e.context.clip(),this.clip_=!0}}}postanimate(e){this.clip_&&(e.context.restore(),this.clip_=!1)}},Dy={SINGLECLICK:"singleclick",CLICK:ie,DBLCLICK:"dblclick",POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"};function Fy(e){const t=arguments;return function(e){let n=!0;for(let r=0,i=t.length;r<i&&(n=n&&t[r](e),n);++r);return n}}const jy=function(e){const t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},By=function(e){const t=e.map.getTargetElement(),n=t.getRootNode();return!(n instanceof ShadowRoot?n.host:t).hasAttribute("tabindex")||function(e){const t=e.map.getTargetElement(),n=t.getRootNode(),r=e.map.getOwnerDocument().activeElement;return n instanceof ShadowRoot?n.host.contains(r):t.contains(r)}(e)},zy=me,Gy=function(e){const t=e.originalEvent;return 0==t.button&&!(Xh&&Zh&&t.ctrlKey)},Uy=ye,Wy=function(e){return"pointermove"==e.type},qy=function(e){return e.type==Dy.SINGLECLICK},Vy=function(e){const t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},Yy=function(e){const t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},Hy=function(e){const t=e.originalEvent,n=t.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!t.target.isContentEditable},$y=function(e){const t=e.originalEvent;return De(void 0!==t,"mapBrowserEvent must originate from a pointer event"),"mouse"==t.pointerType},Ky=function(e){const t=e.originalEvent;return De(void 0!==t,"mapBrowserEvent must originate from a pointer event"),t.isPrimary&&0===t.button},Xy="active";function Zy(e,t,n,r){const i=e.getZoom();if(void 0===i)return;const o=e.getConstrainedZoom(i+t),s=e.getResolutionForZoom(o);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:s,anch
vendor: 24,325 bytes, line 3
3or:n,duration:void 0!==r?r:250,easing:Gm})}const Jy=class extends Ne{constructor(e){super(),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(Xy)}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set(Xy,e)}setMap(e){this.map_=e}};function Qy(e){const t=e.length;let n=0,r=0;for(let i=0;i<t;i++)n+=e[i].clientX,r+=e[i].clientY;return{clientX:n/t,clientY:r/t}}const ev=class extends Jy{constructor(e){super(e=e||{}),e.handleDownEvent&&(this.handleDownEvent=e.handleDownEvent),e.handleDragEvent&&(this.handleDragEvent=e.handleDragEvent),e.handleMoveEvent&&(this.handleMoveEvent=e.handleMoveEvent),e.handleUpEvent&&(this.handleUpEvent=e.handleUpEvent),e.stopDown&&(this.stopDown=e.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(e){return!1}handleDragEvent(e){}handleEvent(e){if(!e.originalEvent)return!0;let t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==Dy.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==Dy.POINTERUP){const t=this.handleUpEvent(e);this.handlingDownUpSequence=t&&this.targetPointers.length>0}}else if(e.type==Dy.POINTERDOWN){const n=this.handleDownEvent(e);this.handlingDownUpSequence=n,t=this.stopDown(n)}else e.type==Dy.POINTERMOVE&&this.handleMoveEvent(e);return!t}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}},tv=class extends ev{constructor(e){super({stopDown:ye}),e=e||{},this.kinetic_=e.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const t=e.condition?e.condition:Fy(Vy,Ky);this.condition_=e.onFocusOnly?Fy(By,t):t,this.noKinetic_=!1}handleDragEvent(e){const t=e.map;this.panning_||(this.panning_=!0,t.getView().beginInteraction());const n=this.targetPointers,r=t.getEventPixel(Qy(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){const t=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],n=e.map.getView();kt(t,n.getResolution()),Mt(t,n.getRotation()),n.adjustCenterInternal(t)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=n.length,e.originalEvent.preventDefault()}handleUpEvent(e){const t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const e=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),i=n.getCenterInternal(),o=t.getPixelFromCoordinateInternal(i),s=t.getCoordinateFromPixelInternal([o[0]-e*Math.cos(r),o[1]-e*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:Gm})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(e){if(this.targetPointers.length>0&&this.condition_(e)){const t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},nv="postrender",rv="loadstart",iv="loadend",ov=class extends Ne{constructor(e){super();const t=e.element;!t||e.target||t.style.pointerEvents||(t.style.pointerEvents="auto"),this.element=t||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&this.element?.remove();for(let e=0,t=this.listenerKeys.length;e<t;++e)Me(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=e,e){const t=this.target_??e.getOverlayContainerStopEvent();this.element&&t.appendChild(this.element),this.render!==ve&&this.listenerKeys.push(Se(e,nv,this.render,this)),e.render()}}render(e){}setTarget(e){this.target_="string"==typeof e?document.getElementById(e):e}},sv="units",av=[1,2,5],lv=25.4/.28,uv=class extends ov{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const n=void 0!==e.className?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=n+"-inner",this.element.className=n+" "+Ud,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==e.minWidth?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(sv,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(sv)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(sv,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=e.center,n=e.projection,r=this.getUnits(),i="degrees"==r?"degrees":"m";let o=$n(n,e.resolution,t,i);const s=this.minWidth_*(this.dpi_||lv)/lv,a=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||lv)/lv:void 0;let l=s*o,u="";if("degrees"==r){const e=qt.degrees;l*=e,l<e/60?(u="â³",o*=3600):l<e?(u="â²",o*=60):u="°"}else if("imperial"==r)l<.9144?(u="in",o/=.0254):l<1609.344?(u="ft",o/=.3048):(u="mi",o/=1609.344);else if("nautical"==r)o/=1852,u="NM";else if("metric"==r)l<1e-6?(u="nm",o*=1e9):l<.001?(u="μm",o*=1e6):l<1?(u="mm",o*=1e3):l<1e3?u="m":(u="km",o/=1e3);else{if("us"!=r)throw new Error("Invalid units");l<.9144?(u="in",o*=39.37):l<1609.344?(u="ft",o/=.30480061):(u="mi",o/=1609.3472)}let c,h,d,f,p,g=3*Math.floor(Math.log(s*o)/Math.log(10)),m=0;for(;;){d=Math.floor(g/3);const e=Math.pow(10,d);if(c=av[(g%3+3)%3]*e,h=Math.round(c/o),isNaN(h))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==a&&h>=a){c=m,h=f,d=p;break}if(h>=s)break;m=c,f=h,p=d,++g}const y=this.scaleBar_?this.createScaleBar(h,c,u):c.toFixed(d<0?-d:0)+" "+u;this.renderedHTML_!=y&&(this.innerElement_.innerHTML=y,this.renderedHTML_=y),this.renderedWidth_!=h&&(this.innerElement_.style.width=h+"px",this.renderedWidth_=h),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,n){const r=this.getScaleForResolution(),i=r<1?Math.round(1/r).toLocaleString()+" : 1":"1 : "+Math.round(r).toLocaleString(),o=this.scaleBarSteps_,s=e/o,a=[this.createMarker("absolute")];for(let r=0;r<o;++r){const i=r%2==0?"ol-scale-singlebar-odd":"ol-scale-singlebar-even";a.push(`<div><div class="ol-scale-singlebar ${i}" style="width: ${s}px;"></div>`+this.createMarker("relative")+(r%2==0||2===o?this.createStepText(r,e,!1,t,n):"")+"</div>")}return a.push(this.createStepText(o,e,!0,t,n)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${e}px;">`+i+"</div>":"")+a.join("")}createMarker(e){return`<div class="ol-scale-step-marker" style="position: ${e}; top: ${"absolute"===e?3:-10}px;"></div>`}createStepText(e,t,n,r,i){const o=(0===e?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(0===e?"":" "+i);return`<div class="ol-scale-step-text" style="margin-left: ${0===e?-3:t/this.scaleBarSteps_*-1}px;text-align: ${0===e?"left":"center"};min-width: ${0===e?0:t/this.scaleBarSteps_*2}px;left: ${n?t+"px":"unset"};">`+o+"</div>"}getScaleForResolution(){return $n(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m")*(1e3/25.4)*(this.dpi_||lv)}render(e){const t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}},cv="layergroup",hv="size",dv="target",fv="view",pv=["fullscreenchange","webkitfullscreenchange"];function gv(e){const t=e.body;return!!(t.webkitRequestFullscreen||t.requestFullscreen&&e.fullscreenEnabled)}function mv(e){return!(!e.webkitIsFullScreen&&!e.fullscreenElement)}function yv(e){e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()}const vv=class extends ov{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target}),this.on,this.once,this.un,this.keys_=void 0!==e.keys&&e.keys,this.source_=e.source,this.isInFullscreen_=!1,this.boundHandleMapTargetChange_=this.handleMapTargetChange_.bind(this),this.cssClassName_=void 0!==e.className?e.className:"ol-full-screen",this.documentListeners_=[],this.activeClassName_=void 0!==e.activeClassName?e.activeClassName.split(" "):[this.cssClassName_+"-true"],this.inactiveClassName_=void 0!==e.inactiveClassName?e.inactiveClassName.split(" "):[this.cssClassName_+"-false"];const t=void 0!==e.label?e.label:"⤢";this.labelNode_="string"==typeof t?document.createTextNode(t):t;const n=void 0!==e.labelActive?e.labelActive:"Ã";this.labelActiveNode_="string"==typeof n?document.createTextNode(n):n;const r=e.tipLabel?e.tipLabel:"Toggle full-screen";this.button_=document.createElement("button"),this.button_.title=r,this.button_.setAttribute("type","button"),this.button_.appendChild(this.labelNode_),this.button_.addEventListener(ie,this.handleClick_.bind(this),!1),this.setClassName_(this.button_,this.isInFullscreen_),this.element.className=`${this.cssClassName_} ${Ud} ${qd}`,this.element.appendChild(this.button_)}handleClick_(e){e.preventDefault(),this.handleFullScreen_()}handleFullScreen_(){const e=this.getMap();if(!e)return;const t=e.getOwnerDocument();if(gv(t))if(mv(t))!function(e){e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen&&e.webkitExitFullscreen()}(t);else{let n;n=this.source_?"string"==typeof this.source_?t.getElementById(this.source_):this.source_:e.getTargetElement(),this.keys_?function(e){e.webkitRequestFullscreen?e.webkitRequestFullscreen():yv(e)}(n):yv(n)}}handleFullScreenChange_(){const e=this.getMap();if(!e)return;const t=this.isInFullscreen_;this.isInFullscreen_=mv(e.getOwnerDocument()),t!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(ld(this.labelActiveNode_,this.labelNode_),this.dispatchEvent("enterfullscreen")):(ld(this.labelNode_,this.labelActiveNode_),this.dispatchEvent("leavefullscreen")),e.updateSize())}setClassName_(e,t){t?(e.classList.remove(...this.inactiveClassName_),e.classList.add(...this.activeClassName_)):(e.classList.remove(...this.activeClassName_),e.classList.add(...this.inactiveClassName_))}setMap(e){const t=this.getMap();t&&t.removeChangeListener(dv,this.boundHandleMapTargetChange_),super.setMap(e),this.handleMapTargetChange_(),e&&e.addChangeListener(dv,this.boundHandleMapTargetChange_)}handleMapTargetChange_(){const e=this.documentListeners_;for(let t=0,n=e.length;t<n;++t)Me(e[t]);e.length=0;const t=this.getMap();if(t){const n=t.getOwnerDocument();gv(n)?this.element.classList.remove(Wd):this.element.classList.add(Wd);for(let t=0,r=pv.length;t<r;++t)e.push(Se(n,pv[t],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}}},_v=class extends ov{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target});const t=void 0!==e.className?e.className:"ol-rotate",n=void 0!==e.label?e.label:"â§",r=void 0!==e.compassClassName?e.compassClassName:"ol-compass";this.label_=null,"string"==typeof n?(this.label_=document.createElement("span"),this.label_.className=r,this.label_.textContent=n):(this.label_=n,this.label_.classList.add(r));const i=e.tipLabel?e.tipLabel:"Reset rotation",o=document.createElement("button");o.className=t+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.label_),o.addEventListener(ie,this.handleClick_.bind(this),!1);const s=t+" "+Ud+" "+qd,a=this.element;a.className=s,a.appendChild(o),this.callResetNorth_=e.resetNorth?e.resetNorth:void 0,this.duration_=void 0!==e.duration?e.duration:250,this.autoHide_=void 0===e.autoHide||e.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(Gd)}handleClick_(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const e=this.getMap().getView();if(!e)return;const t=e.getRotation();void 0!==t&&(this.duration_>0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:Gm}):e.setRotation(0))}render(e){const t=e.frameState;if(!t)return;const n=t.viewState.rotation;if(n!=this.rotation_){const e="rotate("+n+"rad)";if(this.autoHide_){const e=this.element.classList.contains(Gd);e||0!==n?e&&0!==n&&this.element.classList.remove(Gd):this.element.classList.add(Gd)}this.label_.style.transform=e}this.rotation_=n}},bv=class extends ov{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const t=void 0!==e.className?e.className:"ol-zoom",n=void 0!==e.delta?e.delta:1,r=void 0!==e.zoomInClassName?e.zoomInClassName:t+"-in",i=void 0!==e.zoomOutClassName?e.zoomOutClassName:t+"-out",o=void 0!==e.zoomInLabel?e.zoomInLabel:"+",s=void 0!==e.zoomOutLabel?e.zoomOutLabel:"â",a=void 0!==e.zoomInTipLabel?e.zoomInTipLabel:"Zoom in",l=void 0!==e.zoomOutTipLabel?e.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=a,u.appendChild("string"==typeof o?document.createTextNode(o):o),u.addEventListener(ie,this.handleClick_.bind(this,n),!1);const c=document.createElement("button");c.className=i,c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof s?document.createTextNode(s):s),c.addEventListener(ie,this.handleClick_.bind(this,-n),!1);const h=t+" "+Ud+" "+qd,d=this.element;d.className=h,d.appendChild(u),d.appendChild(c),this.duration_=void 0!==e.duration?e.duration:250}handleClick_(e,t){t.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const t=this.getMap().getView();if(!t)return;const n=t.getZoom();if(void 0!==n){const r=t.getConstrainedZoom(n+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:r,duration:this.duration_,easing:Gm})):t.setZoom(r)}}},wv=class extends ov{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===e.collapsed||e.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==e.collapsible,this.collapsible_=void 0===e.collapsible||e.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=e.attributions;const t=void 0!==e.className?e.className:"ol-attribution",n=void 0!==e.tipLabel?e.tipLabel:"Attributions",r=void 0!==e.expandClassName?e.expandClassName:t+"-expand",i=void 0!==e.collapseLabel?e.collapseLabel:"âº",o=void 0!==e.collapseClassName?e.collapseClassName:t+"-collapse";"string"==typeof i?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=i,this.collapseLabel_.className=o):this.collapseLabel_=i;const s=void 0!==e.label?e.label:"i";"string"==typeof s?(this.label_=document.createElement("span"),this.label_.textContent=s,this.label_.className=r):this.label_=s;const a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=n,this.toggleButton_.appendChild(a),this.toggleButton_.addEventListener(ie,this.handleClick_.bind(this),!1);const l=t+" "+Ud+" "+qd+(this.collapsed_&&this.collapsible_?" "+Vd:"")+(this.collapsible_?"":" ol-uncollapsible"),u=this.element;u.className=l,u.appendChild(this.toggleButton_),u.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(e){const t=this.getMap().getAllLayers(),n=new Set(t.flatMap((t=>t.getAttributions(e))));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach((e=>n.add(e))):n.add(this.attributions_)),!this.overrideCollapsible_){const e=!t.some((e=>!1===e.getSource()?.getAttributionsCollapsible()));this.setCollapsible(e)}return Array.from(n)}async updateElement_(e){if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=await Promise.all(this.collectSourceAttributions_(e).map((e=>{return t=()=>e,function(){let e;try{e=t()}catch(e){return Promise.reject(e)}return e instanceof Promise?e:Promise.resolve(e)}();var t}))),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!ge(t,this.renderedAttributions_)){ud(this.ulElement_);for(let e=0,n=t.length;e<n;++e){const n=document.createElement("li");n.innerHTML=t[e],this.ulElement_.appendChild(n)}this.renderedAttributions_=t}}handleClick_(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(Vd),this.collapsed_?ld(this.collapseLabel_,this.label_):ld(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(e){this.updateElement_(e.frameState)}};function xv(e){e=e||{};const t=new _y;return(void 0===e.zoom||e.zoom)&&t.push(new bv(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&t.push(new _v(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&t.push(new wv(e.attributionOptions)),t}const Ev="pointermove",Sv="pointerdown",Cv="projection",Mv="coordinateFormat",kv=class extends ov{constructor(e){e=e||{};const t=document.createElement("div");t.className=void 0!==e.className?e.className:"ol-mouse-position",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un,this.addChangeListener(Cv,this.handleProjectionChanged_),e.coordinateFormat&&this.setCoordinateFormat(e.coordinateFormat),e.projection&&this.setProjection(e.projection),this.renderOnMouseOut_=void 0!==e.placeholder,this.placeholder_=this.renderOnMouseOut_?e.placeholder:" ",this.renderedHTML_=t.innerHTML,this.mapProjection_=null,this.transform_=null,this.wrapX_=!1!==e.wrapX}handleProjectionChanged_(){this.transform_=null}getCoordinateFormat(){return this.get(Mv)}getProjection(){return this.get(Cv)}handleMouseMove(e){const t=this.getMap();this.updateHTML_(t.getEventPixel(e))}handleMouseOut(e){this.updateHTML_(null)}setMap(e){if(super.setMap(e),e){const t=e.getViewport();this.listenerKeys.push(Se(t,Ev,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Se(t,"pointerout",this.handleMouseOut,this)),this.updateHTML_(null)}}setCoordinateFormat(e){this.set(Mv,e)}setProjection(e){this.set(Cv,Hn(e))}updateHTML_(e){let t=this.placeholder_;if(e&&this.mapProjection_){if(!this.transform_){const e=this.getProjection();this.transform_=e?er(this.mapProjection_,e):Vn}const n=this.getMap().getCoordinateFromPixelInternal(e);if(n){const e=sr();e&&(this.transform_=er(this.mapProjection_,e)),this.transform_(n,n),this.wrapX_&&Ot(n,e||this.getProjection()||this.mapProjection_);const r=this.getCoordinateFormat();t=r?r(n):n.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)}render(e){const t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}};class Tv extends Pr{constructor(e,t,n){super(),void 0!==n&&void 0===t?this.setFlatCoordinates(n,e):(t=t||0,this.setCenterAndRadius(e,t,n))}clone(){const e=new Tv(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e}closestPointXY(e,t,n,r){const i=this.flatCoordinates,o=e-i[0],s=t-i[1],a=o*o+s*s;if(a<r){if(0===a)for(let e=0;e<this.stride;++e)n[e]=i[e];else{const e=this.getRadius()/Math.sqrt(a);n[0]=i[0]+e*o,n[1]=i[1]+e*s;for(let e=2;e<this.stride;++e)n[e]=i[e]}return n.length=this.stride,a}return r}containsXY(e,t){const n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()}getCenter(){return this.flatCoordinates.slice(0,this.stride)}computeExtent(e){const t=this.flatCoordinates,n=t[this.stride]-t[0];return He(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)}getRadius(){return Math.sqrt(this.getRadiusSquared_())}getRadiusSquared_(){const e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t}getType(){return"Circle"}intersectsExtent(e){if(gt(e,this.getExtent())){const t=this.getCenter();return e[0]<=t[0]&&e[2]>=t[0]||e[1]<=t[1]&&e[3]>=t[1]||nt(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){const t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(let n=1;n<t;++n)r[t+n]=e[n];this.setFlatCoordinates(this.layout,r),this.changed()}setCenterAndRadius(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]);const r=this.flatCoordinates;let i=Nr(r,0,e,this.stride);r[i++]=r[0]+t;for(let e=1,t=this.stride;e<t;++e)r[i++]=r[e];r.length=i,this.changed()}getCoordinates(){return null}setCoordinates(e,t){}setRadius(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()}rotate(e,t){const n=this.getCenter(),r=this.getStride();this.setCenter(wr(n,0,n.length,r,e,t,n)),this.changed()}}Tv.prototype.transform;const Pv=Tv;class Ov extends xe{constructor(e,t,n,r){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=r}}const Iv={};class Rv extends Jy{constructor(e){let t;if(super(),this.on,this.once,this.un,e=e||{},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=e.condition?e.condition:qy,this.addCondition_=e.addCondition?e.addCondition:Uy,this.removeCondition_=e.removeCondition?e.removeCondition:Uy,this.toggleCondition_=e.toggleCondition?e.toggleCondition:Yy,this.multi_=!!e.multi&&e.multi,this.filter_=e.filter?e.filter:me,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=void 0!==e.style?e.style:function(){const e=um();return pe(e.Polygon,e.LineString),pe(e.GeometryCollection,e.LineString),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}(),this.features_=e.features||new _y,e.layers)if("function"==typeof e.layers)t=e.layers;else{const n=e.layers;t=function(e){return n.includes(e)}}else t=me;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[Re(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[Re(e)]}setHitTolerance(e){this.hitTolerance_=e}setMap(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(e),e?(this.features_.addEventListener(gy,this.boundAddFeature_),this.features_.addEventListener(my,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(gy,this.boundAddFeature_),this.features_.removeEventListener(my,this.boundRemoveFeature_))}addFeature_(e){const t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){const e=this.getMap().getAllLayers().find((function(e){if(e instanceof py&&e.getSource()&&e.getSource().hasFeature(t))return e}));e&&this.addFeatureLayerAssociation_(t,e)}}removeFeature_(e){this.style_&&this.restorePreviousStyle_(e.element)}getStyle(){return this.style_}applySelectedStyle_(e){const t=Re(e);t in Iv||(Iv[t]=e.getStyle()),e.setStyle(this.style_)}restorePreviousStyle_(e){const t=this.getMap().getInteractions().getArray();for(let n=t.length-1;n>=0;--n){const r=t[n];if(r!==this&&r instanceof Rv&&r.getStyle()&&-1!==r.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(r.getStyle())}const n=Re(e);e.setStyle(Iv[n]),delete Iv[n]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[Re(e)]}handleEvent(e){if(!this.condition_(e))return!0;const t=this.addCondition_(e),n=this.removeCondition_(e),r=this.toggleCondition_(e),i=!t&&!n&&!r,o=e.map,s=this.getFeatures(),a=[],l=[];
3if(i){be(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,((e,t)=>{if(e instanceof je&&this.filter_(e,t))return this.addFeatureLayerAssociation_(e,t),l.push(e),!this.multi_}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=s.getLength()-1;e>=0;--e){const t=s.item(e),n=l.indexOf(t);n>-1?l.splice(n,1):(s.remove(t),a.push(t))}0!==l.length&&s.extend(l)}else{o.forEachFeatureAtPixel(e.pixel,((e,i)=>{if(e instanceof je&&this.filter_(e,i))return!t&&!r||s.getArray().includes(e)?(n||r)&&s.getArray().includes(e)&&(a.push(e),this.removeFeatureLayerAssociation_(e)):(this.addFeatureLayerAssociation_(e,i),l.push(e)),!this.multi_}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=a.length-1;e>=0;--e)s.remove(a[e]);s.extend(l)}return(l.length>0||a.length>0)&&this.dispatchEvent(new Ov("select",l,a,e)),!0}}const Av=Rv,Lv=[0,0,0,0],Nv=[],Dv="modifyend";class Fv extends xe{constructor(e,t,n){super(e),this.features=t,this.mapBrowserEvent=n}}function jv(e,t){return e.index-t.index}function Bv(e,t,n){const r=t.geometry;if("Circle"===r.getType()){let i=r;if(1===t.index){const t=sr();t&&(i=i.clone().transform(t,n));const r=Tt(i.getCenter(),lr(e)),o=Math.sqrt(r)-i.getRadius();return o*o}}const i=lr(e);return Nv[0]=lr(t.segment[0]),Nv[1]=lr(t.segment[1]),function(e,t){return Tt(e,St(e,t))}(i,Nv)}function zv(e,t,n){const r=t.geometry;if("Circle"===r.getType()&&1===t.index){let t=r;const i=sr();return i&&(t=t.clone().transform(i,n)),ar(t.getClosestPoint(lr(e)))}const i=lr(e);return Nv[0]=lr(t.segment[0]),Nv[1]=lr(t.segment[1]),ar(St(i,Nv))}function Gv(){const e=um();return function(t,n){return e.Point}}const Uv=class extends ev{constructor(e){let t;if(super(e),this.on,this.once,this.un,this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=e.condition?e.condition:Ky,this.defaultDeleteCondition_=function(e){return function(e){const t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}(e)&&qy(e)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:zy,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new My,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new py({source:new Ry({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:Gv(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null,e.features?t=e.features:e.source&&(this.source_=e.source,t=new _y(this.source_.getFeatures()),this.source_.addEventListener(Py,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(Oy,this.handleSourceRemove_.bind(this))),!t)throw new Error("The modify interaction requires features, a source or a layer");e.hitDetection&&(this.hitDetection_=e.hitDetection),this.features_=t,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(gy,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(my,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=void 0===e.snapToPointer?!this.hitDetection_:e.snapToPointer}addFeature_(e){const t=e.getGeometry();if(t){const n=this.SEGMENT_WRITERS_[t.getType()];n&&n(e,t)}const n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(n.getCoordinateFromPixel(this.lastPixel_)),e.addEventListener(ne,this.boundHandleFeatureChange_)}willModifyFeatures_(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new _y;const n=this.featuresBeingModified_.getArray();for(let e=0,r=t.length;e<r;++e){const r=t[e].feature;r&&!n.includes(r)&&this.featuresBeingModified_.push(r)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new Fv("modifystart",this.featuresBeingModified_,e))}}removeFeature_(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature
vendor: 4,295 bytes, line 3
3(this.vertexFeature_),this.vertexFeature_=null),e.removeEventListener(ne,this.boundHandleFeatureChange_)}removeFeatureSegmentData_(e){const t=this.rBush_,n=[];t.forEach((function(t){e===t.feature&&n.push(t)}));for(let e=n.length-1;e>=0;--e){const r=n[e];for(let e=this.dragSegments_.length-1;e>=0;--e)this.dragSegments_[e][0]===r&&this.dragSegments_.splice(e,1);t.remove(r)}}setActive(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(e)}setMap(e){this.overlay_.setMap(e),super.setMap(e)}getOverlay(){return this.overlay_}handleSourceAdd_(e){e.feature&&this.features_.push(e.feature)}handleSourceRemove_(e){e.feature&&this.features_.remove(e.feature)}handleFeatureAdd_(e){this.addFeature_(e.element)}handleFeatureChange_(e){if(!this.changingFeature_){const t=e.target;this.removeFeature_(t),this.addFeature_(t)}}handleFeatureRemove_(e){this.removeFeature_(e.element)}writePointGeometry_(e,t){const n=t.getCoordinates(),r={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)}writeMultiPointGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const i=n[r],o={feature:e,geometry:t,depth:[r],index:r,segment:[i,i]};this.rBush_.insert(t.getExtent(),o)}}writeLineStringGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length-1;r<i;++r){const i=n.slice(r,r+2),o={feature:e,geometry:t,index:r,segment:i};this.rBush_.insert(Be(i),o)}}writeMultiLineStringGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const i=n[r];for(let n=0,o=i.length-1;n<o;++n){const o=i.slice(n,n+2),s={feature:e,geometry:t,depth:[r],index:n,segment:o};this.rBush_.insert(Be(o),s)}}}writePolygonGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const i=n[r];for(let n=0,o=i.length-1;n<o;++n){const o=i.slice(n,n+2),s={feature:e,geometry:t,depth:[r],index:n,segment:o};this.rBush_.insert(Be(o),s)}}}writeMultiPolygonGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const i=n[r];for(let n=0,o=i.length;n<o;++n){const o=i[n];for(let i=0,s=o.length-1;i<s;++i){const s=o.slice(i,i+2),a={feature:e,geometry:t,depth:[n,r],index:i,segment:s};this.rBush_.insert(Be(s),a)}}}}writeCircleGeometry_(e,t){const n=t.getCenter(),r={feature:e,geometry:t,index:0,segment:[n,n]},i={feature:e,geometry:t,index:1,segment:[n,n]},o=[r,i];r.featureSegments=o,i.featureSegments=o,this.rBush_.insert(Ke(n),r);let s=t;const a=sr();if(a&&this.getMap()){const e=this.getMap().getView().getProjection();s=s.clone().transform(a,e),s=Si(s).transform(e,a)}this.rBush_.insert(s.getExtent(),i)}writeGeometryCollectionGeometry_(e,t){const n=t.getGeometriesArray();for(let t=0;t<n.length;++t){const r=n[t];(0,this.SEGMENT_WRITERS_[r.getType()])(e,r)}}createOrUpdateVertexFeature_(e,t,n,r){let i=this.vertexFeature_;return i?i.getGeometry().setCoordinates(e):(i=new je(new ai(e)),this.vertexFeature_=i,this.overlay_.getSource().addFeature(i)),i.set("features",t),i.set("geometries",n),i.set("existing",r),i}handleEvent(e){if(!e.originalEvent)return!0;let t;return this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=Dy.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(t=!(e.type!=Dy.SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==Dy.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),super.handleEvent(e)&&!t}findInsertVerticesAndUpdateDragSegments_(e){this.handlePointerAtPixel_(e),this.dragSegments_.length=0,this.featuresBeingModified_=null;const t=this.vertexFeature_;if(!t)return;const n=this.getMap().getView().getProjection(),r=[],i=t.getGeometry().getCoordinates(),o=Be([i]),s=this.rBush_.getInExtent(o),a={};s.sort(jv);for(let t=0,o=s.length;t<o;++t){const o=s[t],l=o.segment;let u=Re(o.geometry);const c=o.depth;if(c&&(u+="-"+c.join("-")),a[u]||(a[u]=new Array(2)),"Circle"!==o.geometry.getType()||1!==o.index)if(!Ct(l[0],i)||a[u][0])if(!Ct(l[1],i)||a[u][1])!(Re(l)in this.vertexSegments_)||a[u][0]||a[u][1]||r.push(o);else{if(a[u][0]&&0===a[u][0].index){let e=o.geometry.getCoordinates();switch(o.geometry.getType()){case"LineString":case"MultiLineString":continue;case"MultiPolygon":e=e[c[1]];case"Polygon":if(o.index!==e[c[0]].length-2)continue}}
3this.dragSegments_.push([o,1]),a[u][1]=o}else this.dragSegments_.push([o,0]),a[u][0]=o;else Ct(zv(e,o,n),i)&&!a[u][0]&&(this.dragSegments_.push([o,0]),a[u][0]=o)}return r}handleDragEvent(e){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(e,this.dragSegments_.map((([e])=>e)));const t=[e.coordinate[0]+this.delta_[0],e.coordinate[1]+this.delta_[1]],n=[],r=[];for(let i=0,o=this.dragSegments_.length;i<o;++i){const o=this.dragSegments_[i],s=o[0],a=s.feature;n.includes(a)||n.push(a);const l=s.geometry;r.includes(l)||r.push(l);const u=s.depth;let c;const h=s.segment,d=o[1];for(;t.length<l.getStride();)t.push(h[d][t.length]);switch(l.getType()){case"Point":c=t,h[0]=t,h[1]=t;break;case"MultiPoint":c=l.getCoordinates(),c[s.index]=t,h[0]=t,h[1]=t;break;case"LineString":c=l.getCoordinates(),c[s.index+d]=t,h[d]=t;break;case"MultiLineString":case"Polygon":c=l.getCoordinates(),c[u[0]][s.index+d]=t,h[d]=t;break;case"MultiPolygon":c=l.getCoordinates(),c[u[1]][u[0]][s.index+d]=t,h[d]=t;break;case"Circle":const n=l;if(h[0]=t,h[1]=t,0===s.index)this.changingFeature_=!0,n.setCenter(t),this.changingFeature_=!1;else{this.changingFeature_=!0;const r=e.map.getView().getProjection();let i=Pt(lr(n.getCenter()),lr(t));const o=sr();if(o){const e=n.clone().transform(o,r);e.setRadius(i),i=e.transform(r,o).getRadius()}n.setRadius(i),this.changingFeature_=!1}}c&&this.setGeometryCoordinates_(l,c)}this.createOrUpdateVertexFeature_(t,n,r,!0)}handleDownEvent(e){if(!this.condition_(e))return!1;const t=e.coordinate,n=this.findInsertVerticesAndUpdateDragSegments_(t);if(n?.length&&this.insertVertexCondition_(e)&&(this.willModifyFeatures_(e,n),this.vertexFeature_)){const e=this.vertexFeature_.getGeometry().getCoordinates();for(let t=n.length-1;t>=0;--t)this.insertVertex_(n[t],e);this.ignoreNextSingleClick_=!0}return!!this.vertexFeature_}handleUpEvent(e){for(let t=this.dragSegments_.length-1;t>=0;--t){const n=this.dragSegments_[t][0],r=n.geometry;if("Circle"===r.getType()){const t=r,i=t.getCenter(),o=n.featureSegments[0],s=n.featureSegments[1];o.segment[0]=i,o.segment[1]=i,s.segment[0]=i,s.segment[1]=i,this.rBush_.update(Ke(i),o);let a=t;const l=sr();if(l){const t=e.map.getView().getProjection();a=a.clone().transform(l,t),a=Si(a).transform(t,l)}this.rBush_.update(a.getExtent(),s)}else this.rBush_.update(Be(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new Fv(Dv,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1}handlePointerMove_(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.coordinate)}handlePointerAtPixel_(e){const t=this.getMap(),n=t.getPixelFromCoordinate(e),r=t.getView().getProjection(),i=function(t,n){return Bv(e,t,r)-Bv(e,n,r)};let o,s;if(this.hitDetection_){const e="object"==typeof this.hitDetection_?e=>e===this.hitDetection_:void 0;t.forEachFeatureAtPixel(n,((e,t,n)=>{n&&"Point"===n.getType()&&(n=new ai(ar(n.getCoordinates())));const r=n||e.getGeometry();if(r&&"Point"===r.getType()&&e instanceof je&&this.features_.getArray().includes(e)){s=r;const t=e.getGeometry().getFlatCoordinates().slice(0,2);o=[{feature:e,geometry:s,segment:[t,t]}]}return!0}),{layerFilter:e})}if(!o){const n=ur(ze(cr(Ke(e,Lv)),t.getView().getResolution()*this.pixelTolerance_,Lv));o=this.rBush_.getInExtent(n)}if(o&&o.length>0){const a=o.sort(i)[0],l=a.segment;let u=zv(e,a,r);const c=t.getPixelFromCoordinate(u);let h=Pt(n,c);if(s||h<=this.pixelTolerance_){const n={};if(n[Re(l)]=!0,this.snapToPointer_||(this.delta_[0]=u[0]-e[0],this.delta_[1]=u[1]-e[1]),"Circle"===a.geometry.getType()&&1===a.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(u,[a.feature],[a.geometry],this.snappedToVertex_);else{const e=t.getPixelFromCoordinate(l[0]),r=t.getPixelFromCoordinate(l[1]),i=Tt(c,e),s=Tt(c,r);if(h=Math.sqrt(Math.min(i,s)),this.snappedToVertex_=h<=this.pixelTolerance_,!this.snappedToVertex_&&!this.insertVertexCondition_(this.lastPointerEvent_))return void(this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null));this.snappedToVertex_&&(u=i>s?l[1]:l[0]),this.createOrUpdateVertexFeature_(u,[a.feature],[a.geometry],this.snappedToVertex_);const d={};d[Re(a.geometry)]=!0;for(let e=1,t=o.length;e<t;++e){const t=o[e].segment;if(!(Ct(l[0],t[0])&&Ct(l[1],t[1])||Ct(l[0],t[1])&&Ct(l[1],t[0])))break;{const r=Re(o[e].geometry);r in d||(d[r]=!0,n[Re(t)]=!0)}}}return void(this.vertexSegments_=n)}}
3this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)}insertVertex_(e,t){const n=e.segment,r=e.feature,i=e.geometry,o=e.depth,s=e.index;let a;for(;t.length<i.getStride();)t.push(0);switch(i.getType()){case"MultiLineString":case"Polygon":a=i.getCoordinates(),a[o[0]].splice(s+1,0,t);break;case"MultiPolygon":a=i.getCoordinates(),a[o[1]][o[0]].splice(s+1,0,t);break;case"LineString":a=i.getCoordinates(),a.splice(s+1,0,t);break;default:return!1}this.setGeometryCoordinates_(i,a);const l=this.rBush_;l.remove(e),this.updateSegmentIndices_(i,s,o,1);const u={segment:[n[0],t],feature:r,geometry:i,depth:o,index:s};l.insert(Be(u.segment),u),this.dragSegments_.push([u,1]);const c={segment:[t,n[1]],feature:r,geometry:i,depth:o,index:s+1};return l.insert(Be(c.segment),c),this.dragSegments_.push([c,0]),!0}updatePointer_(e){return e&&this.findInsertVerticesAndUpdateDragSegments_(e),this.vertexFeature_?.getGeometry().getCoordinates()}getPoint(){const e=this.vertexFeature_?.getGeometry().getCoordinates();return e?ar(e,this.getMap().getView().getProjection()):null}canRemovePoint(){if(!this.vertexFeature_)return!1;if(this.vertexFeature_.get("geometries").every((e=>"Circle"===e.getType()||e.getType().endsWith("Point"))))return!1;const e=this.vertexFeature_.getGeometry().getCoordinates();return this.rBush_.getInExtent(Be([e])).some((({segment:t})=>Ct(t[0],e)||Ct(t[1],e)))}removePoint(e){if(e&&(e=lr(e,this.getMap().getView().getProjection()),this.updatePointer_(e)),!this.lastPointerEvent_||this.lastPointerEvent_&&this.lastPointerEvent_.type!=Dy.POINTERDRAG){const e=this.lastPointerEvent_;this.willModifyFeatures_(e,this.dragSegments_.map((([e])=>e)));const t=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new Fv(Dv,this.featuresBeingModified_,e)),this.featuresBeingModified_=null,t}return!1}removeVertex_(){const e=this.dragSegments_,t={};let n,r,i,o,s,a,l,u,c,h,d,f=!1;for(s=e.length-1;s>=0;--s)i=e[s],h=i[0],d=Re(h.feature),h.depth&&(d+="-"+h.depth.join("-")),d in t||(t[d]={}),0===i[1]?(t[d].right=h,t[d].index=h.index):1==i[1]&&(t[d].left=h,t[d].index=h.index+1);for(d in t){switch(c=t[d].right,l=t[d].left,a=t[d].index,u=a-1,h=void 0!==l?l:c,u<0&&(u=0),o=h.geometry,r=o.getCoordinates(),n=r,f=!1,o.getType()){case"MultiLineString":r[h.depth[0]].length>2&&(r[h.depth[0]].splice(a,1),f=!0);break;case"LineString":r.length>2&&(r.splice(a,1),f=!0);break;case"MultiPolygon":n=n[h.depth[1]];case"Polygon":n=n[h.depth[0]],n.length>4&&(a==n.length-1&&(a=0),n.splice(a,1),f=!0,0===a&&(n.pop(),n.push(n[0]),u=n.length-1))}if(f){this.setGeometryCoordinates_(o,r);const t=[];if(void 0!==l&&(this.rBush_.remove(l),t.push(l.segment[0])),void 0!==c&&(this.rBush_.remove(c),t.push(c.segment[1])),void 0!==l&&void 0!==c){const e={depth:h.depth,feature:h.feature,geometry:h.geometry,index:u,segment:t};this.rBush_.insert(Be(e.segment),e)}this.updateSegmentIndices_(o,a,h.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.length=0}}return f}canInsertPoint(){if(!this.vertexFeature_)return!1;if(this.vertexFeature_.get("geometries").every((e=>"Circle"===e.getType()||e.getType().endsWith("Point"))))return!1;const e=this.vertexFeature_.getGeometry().getCoordinates();return this.rBush_.getInExtent(Be([e])).some((({segment:t})=>!(Ct(t[0],e)||Ct(t[1],e))))}insertPoint(e){const t=e?lr(e,this.getMap().getView().getProjection()):this.vertexFeature_?.getGeometry().getCoordinates();return!!t&&this.findInsertVerticesAndUpdateDragSegments_(t).reduce(((e,n)=>e||this.insertVertex_(n,t)),!1)}setGeometryCoordinates_(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}updateSegmentIndices_(e,t,n,r){this.rBush_.forEachInExtent(e.getExtent(),(function(i){i.geometry===e&&(void 0===n||void 0===i.depth||ge(i.depth,n))&&i.index>t&&(i.index+=r)}))}};class Wv extends xe{constructor(e,t){super(e),this.vertex=t.vertex,this.vertexPixel=t.vertexPixel,this.feature=t.feature,this.segment=t.segment}}function qv(e){return e.feature?e.feature:e.element?e.element:null}const Vv=[],Yv=class extends ev{constructor(e){const t=e=e||{};t.handleDownEvent||(t.handleDownEvent=me),t.stopDown||(t.stopDown=ye),super(t),this.on,this.once,this.un,this.source_=e.source?e.source:null,this.vertex_=void 0===e.vertex||e.vertex,this.edge_=void 0===e.edge||e.edge,this.features_=e.features?e.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.rBush_=new My,this.GEOMETRY_SEGMENTERS_={Point:this.segmentPointGeometry_.bind(this),LineString:this.segmentLineStringGeometry_.bind(this),LinearRing:this.segmentLineStringGeometry_.bind(this),Polygon:this.segmentPolygonGeometry_.bind(this),MultiPoint:this.segmentMultiPointGeometry_.bind(this),MultiLineString:this.segmentMultiLineStringGeometry_.bind(this),MultiPolygon:this.segmentMultiPolygonGeometry_.bind(this),GeometryCollection:this.segmentGeometryCollectionGeometry_.bind(this),Circle:this.segmentCircleGeometry_.bind(this)}}addFeature(e,t){t=void 0===t||t;const n=Re(e),r=e.getGeometry();if(r){const t=this.GEOMETRY_SEGMENTERS_[r.getType()];if(t){this.indexedFeaturesExtents_[n]=r.getExtent([1/0,1/0,-1/0,-1/0]);const i=[];if(t(i,r),1===i.length)this.rBush_.insert(Be(i[0]),{feature:e,segment:i[0]});else if(i.length>1){const t=i.map((e=>Be(e))),n=i.map((t=>({feature:e,segment:t})));this.rBush_.load(t,n)}}}t&&(this.featureChangeListenerKeys_[n]=Se(e,ne,this.handleFeatureChange_,this))}getFeatures_(){let e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e}handleEvent(e){const t=this.snapTo(e.pixel,e.coordinate,e.map);return t&&(e.coordinate=t.vertex.slice(0,2),e.pixel=t.vertexPixel,this.dispatchEvent(new Wv("snap",{vertex:e.coordinate,vertexPixel:e.pixel,feature:t.feature,segment:t.segment}))),super.handleEvent(e)}handleFeatureAdd_(e){const t=qv(e);t&&this.addFeature(t)}handleFeatureRemove_(e){const t=qv(e);
3t&&this.removeFeature(t)}handleFeatureChange_(e){const t=e.target;if(this.handlingDownUpSequence){const e=Re(t);e in this.pendingFeatures_||(this.pendingFeatures_[e]=t)}else this.updateFeature_(t)}handleUpEvent(e){const t=Object.values(this.pendingFeatures_);return t.length&&(t.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1}removeFeature(e,t){const n=void 0===t||t,r=Re(e),i=this.indexedFeaturesExtents_[r];if(i){const t=this.rBush_,n=[];t.forEachInExtent(i,(function(t){e===t.feature&&n.push(t)}));for(let e=n.length-1;e>=0;--e)t.remove(n[e])}n&&(Me(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])}setMap(e){const t=this.getMap(),n=this.featuresListenerKeys_,r=this.getFeatures_();t&&(n.forEach(Me),n.length=0,this.rBush_.clear(),Object.values(this.featureChangeListenerKeys_).forEach(Me),this.featureChangeListenerKeys_={}),super.setMap(e),e&&(this.features_?n.push(Se(this.features_,gy,this.handleFeatureAdd_,this),Se(this.features_,my,this.handleFeatureRemove_,this)):this.source_&&n.push(Se(this.source_,Py,this.handleFeatureAdd_,this),Se(this.source_,Oy,this.handleFeatureRemove_,this)),r.forEach((e=>this.addFeature(e))))}snapTo(e,t,n){const r=n.getView().getProjection(),i=lr(t),o=ur(ze(Be([i]),n.getView().getResolution()*this.pixelTolerance_)),s=this.rBush_.getInExtent(o),a=s.length;if(0===a)return null;let l,u,c=1/0,h=null;const d=this.pixelTolerance_*this.pixelTolerance_,f=()=>{if(l){const t=n.getPixelFromCoordinate(l);if(Tt(e,t)<=d)return{vertex:l,vertexPixel:[Math.round(t[0]),Math.round(t[1])],feature:u,segment:h}}return null};if(this.vertex_){for(let e=0;e<a;++e){const t=s[e];"Circle"!==t.feature.getGeometry().getType()&&t.segment.forEach((e=>{const n=lr(e),r=Tt(i,n);r<c&&(l=e,c=r,u=t.feature)}))}const e=f();if(e)return e}if(this.edge_){for(let e=0;e<a;++e){let t=null;const n=s[e];if("Circle"===n.feature.getGeometry().getType()){let e=n.feature.getGeometry();const o=sr();o&&(e=e.clone().transform(o,r)),t=Et(i,e)}else{const[e,r]=n.segment;r&&(Vv[0]=lr(e),Vv[1]=lr(r),t=St(i,Vv))}if(t){const e=Tt(i,t);e<c&&(l=ar(t),h="Circle"===n.feature.getGeometry().getType()?null:n.segment,c=e,u=n.feature)}}const e=f();if(e)return e}return null}updateFeature_(e){this.removeFeature(e,!1),this.addFeature(e,!1)}segmentCircleGeometry_(e,t){const n=this.getMap().getView().getProjection();let r=t;const i=sr();i&&(r=r.clone().transform(i,n));const o=Si(r);i&&o.transform(n,i);const s=o.getCoordinates()[0];for(let t=0,n=s.length-1;t<n;++t)e.push(s.slice(t,t+2))}segmentGeometryCollectionGeometry_(e,t){const n=t.getGeometriesArray();for(let t=0;t<n.length;++t){const r=this.GEOMETRY_SEGMENTERS_[n[t].getType()];r&&r(e,n[t])}}segmentLineStringGeometry_(e,t){const n=t.getCoordinates();for(let t=0,r=n.length-1;t<r;++t)e.push(n.slice(t,t+2))}segmentMultiLineStringGeometry_(e,t){const n=t.getCoordinates();for(let t=0,r=n.length;t<r;++t){const r=n[t];for(let t=0,n=r.length-1;t<n;++t)e.push(r.slice(t,t+2))}}
3segmentMultiPointGeometry_(e,t){t.getCoordinates().forEach((t=>{e.push([t])}))}segmentMultiPolygonGeometry_(e,t){const n=t.getCoordinates();for(let t=0,r=n.length;t<r;++t){const r=n[t];for(let t=0,n=r.length;t<n;++t){const n=r[t];for(let t=0,r=n.length-1;t<r;++t)e.push(n.slice(t,t+2))}}}segmentPointGeometry_(e,t){e.push([t.getCoordinates()])}segmentPolygonGeometry_(e,t){const n=t.getCoordinates();for(let t=0,r=n.length;t<r;++t){const r=n[t];for(let t=0,n=r.length-1;t<n;++t)e.push(r.slice(t,t+2))}}},Hv=class extends xe{constructor(e,t,n){super(e),this.map=t,this.frameState=void 0!==n?n:null}},$v=class extends Hv{constructor(e,t,n,r,i,o){super(e,t,i),this.originalEvent=n,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==r&&r,this.activePointers=o}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(e){this.pixel_=e}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(e){this.coordinate_=e}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}},Kv="drawstart";class Xv extends xe{constructor(e,t){super(e),this.feature=t}}function Zv(e,t){return Lt(e[0],e[1],t[0],t[1])}function Jv(e,t){const n=e.length;return t<0?e[t+n]:t>=n?e[t-n]:e[t]}function Qv(e,t,n){let r,i;t<n?(r=t,i=n):(r=n,i=t);const o=Math.ceil(r),s=Math.floor(i);if(o>s)return Zv(o_(e,r),o_(e,i));let a=0;r<o&&(a+=Zv(o_(e,r),Jv(e,o))),s<i&&(a+=Zv(Jv(e,s),o_(e,i)));for(let t=o;t<s-1;++t)a+=Zv(Jv(e,t),Jv(e,t+1));return a}function e_(e,t,n){if(t instanceof ri)n_(e,t.getCoordinates(),!1,n);else if(t instanceof oi){const r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t)n_(e,r[t],!1,n)}else if(t instanceof xi){const r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t)n_(e,r[t],!0,n)}else if(t instanceof ki){const r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t){const i=r[t];for(let t=0,r=i.length;t<r;++t)n_(e,i[t],!0,n)}}else if(t instanceof kr){const r=t.getGeometries();for(let t=0;t<r.length;++t)e_(e,r[t],n)}}const t_={index:-1,endIndex:NaN};function n_(e,t,n,r){const i=e[0],o=e[1];for(let e=0,s=t.length-1;e<s;++e){const s=i_(i,o,t[e],t[e+1]);if(0===s.squaredDistance){const i=e+s.along;return void r.push({coordinates:t,ring:n,startIndex:i,endIndex:i})}}}const r_={along:0,squaredDistance:0};function i_(e,t,n,r){const i=n[0],o=n[1],s=r[0]-i,a=r[1]-o;let l=0,u=i,c=o;return 0===s&&0===a||(l=Rt(((e-i)*s+(t-o)*a)/(s*s+a*a),0,1),u+=s*l,c+=a*l),r_.along=l,r_.squaredDistance=Bt(Lt(e,t,u,c),10),r_}function o_(e,t){const n=e.length;let r=Math.floor(t);const i=t-r;r>=n?r-=n:r<0&&(r+=n);let o=r+1;o>=n&&(o-=n);const s=e[r],a=s[0],l=s[1],u=e[o];return[a+(u[0]-a)*i,l+(u[1]-l)*i]}function s_(){const e=um();return function(t,n){return e[t.getGeometry().getType()]}}const a_=class extends ev{constructor(e){const t=e;t.stopDown||(t.stopDown=ye),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=function(e){switch(e){case"Point":case"MultiPoint":return"Point";case"LineString":case"MultiLineString":return"LineString";case"Polygon":case"MultiPolygon":return"Polygon";
vendor: 29,508 bytes, line 3
3case"Circle":return"Circle";default:throw new Error("Invalid type: "+e)}}(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:"Polygon"===this.mode_?3:2,this.maxPoints_="Circle"===this.mode_?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:me,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const e=this.mode_;if("Circle"===e)n=(e,t,n)=>{const r=t||new Pv([NaN,NaN]),i=lr(e[0]),o=Tt(i,lr(e[e.length-1]));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);const s=sr();return s&&r.transform(n,s),r};else{let t;"Point"===e?t=ai:"LineString"===e?t=ri:"Polygon"===e&&(t=xi),n=(n,r,i)=>(r?"Polygon"===e?n[0].length?r.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):r.setCoordinates([],this.geometryLayout_):r.setCoordinates(n,this.geometryLayout_):r=new t(n,this.geometryLayout_),r)}}this.geometryFunction_=n,this.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new py({source:new Ry({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:s_(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:Vy,this.freehandCondition_,e.freehand?this.freehandCondition_=zy:this.freehandCondition_=e.freehandCondition?e.freehandCondition:Yy,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(Xy,this.updateState_)}setTrace(e){let t;t=e?!0===e?zy:e:Uy,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===re&&e.originalEvent.preventDefault(),this.freehand_="Point"!==this.mode_&&this.freehandCondition_(e);let t=e.type===Dy.POINTERMOVE,n=!0;return!this.freehand_&&this.lastDragTime_&&e.type===Dy.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===Dy.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===Dy.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===Dy.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===Dy.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===Dy.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout((()=>{this.handlePointerMove_(new $v(Dy.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active)return void this.deactivateTrace_();const t=this.getMap(),n=Be([t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_])]),r=this.traceSource_.getFeaturesInExtent(n);if(0===r.length)return;const i=function(e,t){const n=[];for(let r=0;r<t.length;++r)e_(e,t[r].getGeometry(),n);return n}(e.coordinate,r);i.length&&(this.traceState_={active:!0,startPx:e.pixel.slice(),targets:i,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){const n=e.startIndex<=e.endIndex;n===e.startIndex<=t?n&&t>e.endIndex||!n&&t<e.endIndex?this.addTracedCoordinates_(e,e.endIndex,t):(n&&t<e.endIndex||!n&&t>e.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e<t){const r=Math.ceil(e);let i=Math.floor(t);i===t&&(i-=1),n=i-r+1}else{const r=Math.floor(e);let i=Math.ceil(t);i===t&&(i+=1),n=r-i+1}n>0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;const r=[];if(t<n){const i=Math.ceil(t);let o=Math.floor(n);o===n&&(o-=1);for(let t=i;t<=o;++t)r.push(Jv(e.coordinates,t))}else{const i=Math.floor(t);let o=Math.ceil(n);o===n&&(o+=1);for(let t=i;t>=o;--t)r.push(Jv(e.coordinates,t))}r.length&&this.appendCoordinates(r)}updateTrace_(e){const t=this.traceState_;if(!t.active)return;if(-1===t.targetIndex&&Pt(t.startPx,e.pixel)<this.snapTolerance_)return;const n=function(e,t,n,r){const i=e[0],o=e[1];let s=1/0,a=-1,l=NaN;for(let e=0;e<t.targets.length;++e){const n=t.targets[e],r=n.coordinates;let u,c=1/0;for(let e=0;e<r.length-1;++e){const t=i_(i,o,r[e],r[e+1]);t.squaredDistance<c&&(c=t.squaredDistance,u=e+t.along)}c<s&&(s=c,n.ring&&t.targetIndex===e&&(n.endIndex>n.startIndex?u<n.startIndex&&(u+=r.length):n.endIndex<n.startIndex&&u>n.startIndex&&(u-=r.length)),l=u,a=e)}const u=t.targets[a];let c=u.ring;if(t.targetIndex===a&&c){const e=o_(u.coordinates,l);Pt(n.getPixelFromCoordinate(e),t.startPx)>r&&(c=!1)}if(c){const e=u.coordinates,t=e.length,n=u.startIndex,r=l;if(n<r){const i=Qv(e,n,r);Qv(e,n,r-t)<i&&(l-=t)}else{const i=Qv(e,n,r);Qv(e,n,r+t)<i&&(l+=t)}}return t_.index=a,t_.endIndex=l,t_}(e.coordinate,t,this.getMap(),this.snapTolerance_);if(t.targetIndex!==n.index){if(-1!==t.targetIndex){const e=t.targets[t.targetIndex];this.removeTracedCoordinates_(e.startIndex,e.endIndex)}const e=t.targets[n.index];this.addTracedCoordinates_(e,e.startIndex,n.endIndex)}else{const e=t.targets[t.targetIndex];this.addOrRemoveTracedCoordinates_(e,n.endIndex)}t.targetIndex=n.index;const r=t.targets[t.targetIndex];r.endIndex=n.endIndex;const i=o_(r.coordinates,r.endIndex),o=this.getMap().getPixelFromCoordinate(i);e.coordinate=i,e.pixel=[Math.round(o[0]),Math.round(o[1])]}handleUpEvent(e){let t=!0;if(0===this.getPointerCount()){this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e);const n=this.traceState_.active;if(this.toggleTraceState_(e),this.shouldHandle_){const r=!this.finishCoordinate_;r&&this.startDrawing_(e.coordinate),!r&&this.freehand_?this.finishDrawing():this.freehand_||r&&"Point"!==this.mode_||(this.atFinish_(e.pixel,n)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),t=!1}else this.freehand_&&this.abortDrawing()}return!t&&this.stopClick_&&e.preventDefault(),t}handlePointerMove_(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){const t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],o=r*r+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?(this.updateTrace_(e),this.modifyDrawing_(e.coordinate)):this.createOrUpdateSketchPoint_(e.coordinate.slice())}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let r=!1,i=[this.finishCoordinate_];const o=this.mode_;if("Point"===o)n=!0;else if("Circle"===o)n=2===this.sketchCoords_.length;else if("LineString"===o)r=!t&&this.sketchCoords_.length>this.minPoints_;else if("Polygon"===o){const e=this.sketchCoords_;r=e[0].length>this.minPoints_,i=[e[0][0],e[0][e[0].length-2]],i=t?[e[0][0]]:[e[0][0],e[0][e[0].length-2]]}if(r){const t=this.getMap();for(let r=0,o=i.length;r<o;r++){const o=i[r],s=t.getPixelFromCoordinate(o),a=e[0]-s[0],l=e[1]-s[1],u=this.freehand_?1:this.snapTolerance_;if(n=Math.sqrt(a*a+l*l)<=u,n){this.finishCoordinate_=o;break}}}}return n}createOrUpdateSketchPoint_(e){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new je(new ai(e)),this.updateSketchFeatures_())}createOrUpdateCustomSketchLine_(e){this.sketchLine_||(this.sketchLine_=new je);const t=e.getLinearRing(0);let n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),n.changed()):(n=new ri(t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(n))}startDrawing_(e){const t=this.getMap().getView().getProjection(),n=Tr(this.geometryLayout_);for(;e.length<n;)e.push(0);this.finishCoordinate_=e,"Point"===this.mode_?this.sketchCoords_=e.slice():"Polygon"===this.mode_?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new je(new ri(this.sketchLineCoords_)));const r=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new je,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new Xv(Kv,this.sketchFeature_))}modifyDrawing_(e){const t=this.getMap(),n=this.sketchFeature_.getGeometry(),r=t.getView().getProjection(),i=Tr(this.geometryLayout_);let o,s;for(;e.length<i;)e.push(0);"Point"===this.mode_?s=this.sketchCoords_:"Polygon"===this.mode_?(o=this.sketchCoords_[0],s=o[o.length-1],this.atFinish_(t.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):(o=this.sketchCoords_,s=o[o.length-1]),s[0]=e[0],s[1]=e[1],this.geometryFunction_(this.sketchCoords_,n,r),this.sketchPoint_&&this.sketchPoint_.getGeometry().setCoordinates(e),"Polygon"===n.getType()&&"Polygon"!==this.mode_?this.createOrUpdateCustomSketchLine_(n):this.sketchLineCoords_&&this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_),this.updateSketchFeatures_()}addToDrawing_(e){const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection();let r,i;const o=this.mode_;return"LineString"===o||"Circle"===o?(this.finishCoordinate_=e.slice(),i=this.sketchCoords_,i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):"Polygon"===o&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),r&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r?this.finishDrawing():this.sketchFeature_}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;for(let i=0;i<e;++i){let e;if("LineString"===r||"Circle"===r){if(e=this.sketchCoords_,e.splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();const t=this.finishCoordinate_.slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if("Polygon"===r){e=this.sketchCoords_[0],e.splice(-2,1);const r=this.sketchLine_.getGeometry();if(e.length>=2){const t=e[e.length-2].slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}r.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}if(1===e.length){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return null;let t=this.sketchCoords_;const n=e.getGeometry(),r=this.getMap().getView().getProjection();return"LineString"===this.mode_?(t.pop(),this.geometryFunction_(t,n,r)):"Polygon"===this.mode_&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new ui([t])):"MultiLineString"===this.type_?e.setGeometry(new oi([t])):"MultiPolygon"===this.type_&&e.setGeometry(new ki([t])),this.dispatchEvent(new Xv("drawend",e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e),e}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new Xv("drawabort",e))}appendCoordinates(e){const t=this.mode_,n=!this.sketchFeature_;let r;if(n&&this.startDrawing_(e[0]),"LineString"===t||"Circle"===t)r=this.sketchCoords_;else{if("Polygon"!==t)return;r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&r.shift(),r.pop();for(let t=0;t<e.length;t++)this.addToDrawing_(e[t]);const i=e[e.length-1];this.sketchFeature_=this.addToDrawing_(i),this.modifyDrawing_(i)}extend(e){const t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();const n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new je(new ai(n)),this.updateSketchFeatures_(),this.dispatchEvent(new Xv(Kv,this.sketchFeature_))}updateSketchFeatures_(){const e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);const t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)}updateState_(){const e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing(),this.overlay_.setMap(t?e:null)}};class l_ extends xe{constructor(e,t){super(e),this.layer=t}}const u_="layers";class c_ extends uy{constructor(e){e=e||{};const t=Object.assign({},e);delete t.layers;let n=e.layers;super(t),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(u_,this.handleLayersChanged_),n?Array.isArray(n)?n=new _y(n.slice(),{unique:!0}):De("function"==typeof n.getArray,"Expected `layers` to be an array or a `Collection`"):n=new _y(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(Me),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(Se(e,gy,this.handleLayersAdd_,this),Se(e,my,this.handleLayersRemove_,this));for(const e in this.listenerKeys_)this.listenerKeys_[e].forEach(Me);be(this.listenerKeys_);const t=e.getArray();for(let e=0,n=t.length;e<n;e++){const n=t[e];this.registerLayerListeners_(n),this.dispatchEvent(new l_("addlayer",n))}this.changed()}registerLayerListeners_(e){const t=[Se(e,te,this.handleLayerChange_,this),Se(e,ne,this.handleLayerChange_,this)];e instanceof c_&&t.push(Se(e,"addlayer",this.handleLayerGroupAdd_,this),Se(e,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Re(e)]=t}handleLayerGroupAdd_(e){this.dispatchEvent(new l_("addlayer",e.layer))}handleLayerGroupRemove_(e){this.dispatchEvent(new l_("removelayer",e.layer))}handleLayersAdd_(e){const t=e.element;this.registerLayerListeners_(t),this.dispatchEvent(new l_("addlayer",t)),this.changed()}handleLayersRemove_(e){const t=e.element,n=Re(t);this.listenerKeys_[n].forEach(Me),delete this.listenerKeys_[n],this.dispatchEvent(new l_("removelayer",t)),this.changed()}getLayers(){return this.get(u_)}setLayers(e){const t=this.getLayers();if(t){const e=t.getArray();for(let t=0,n=e.length;t<n;++t)this.dispatchEvent(new l_("removelayer",e[t]))}this.set(u_,e)}getLayersArray(e){return e=void 0!==e?e:[],this.getLayers().forEach((function(t){t.getLayersArray(e)})),e}getLayerStatesArray(e){const t=void 0!==e?e:[],n=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));const r=this.getLayerState();let i=r.zIndex;e||void 0!==r.zIndex||(i=0);for(let e=n,o=t.length;e<o;e++){const n=t[e];n.opacity*=r.opacity,n.visible=n.visible&&r.visible,n.maxResolution=Math.min(n.maxResolution,r.maxResolution),n.minResolution=Math.max(n.minResolution,r.minResolution),n.minZoom=Math.max(n.minZoom,r.minZoom),n.maxZoom=Math.min(n.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==n.extent?n.extent=ht(n.extent,r.extent):n.extent=r.extent),void 0===n.zIndex&&(n.zIndex=i)}return t}getSourceState(){return"ready"}}const h_=c_,d_=class extends Ee{constructor(e,t){super(e),this.map_=e,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===t?1:t,this.down_=null;const n=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=n,this.pointerdownListenerKey_=Se(n,Sv,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=Se(n,Ev,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(ae,this.boundHandleTouchMove_,!!td&&{passive:!1})}emulateClick_(e){let t=new $v(Dy.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new $v(Dy.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const t=new $v(Dy.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}),250)}updateActivePointers_(e){const t=e,n=t.pointerId;if(t.type==Dy.POINTERUP||t.type==Dy.POINTERCANCEL){delete this.trackedTouches_[n];for(const e in this.trackedTouches_)if(this.trackedTouches_[e].target!==t.target){delete this.trackedTouches_[e];break}}else t.type!=Dy.POINTERDOWN&&t.type!=Dy.POINTERMOVE||(this.trackedTouches_[n]=t);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const t=new $v(Dy.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(Me),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return 0===e.button}handlePointerDown_(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);const t=new $v(Dy.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(t),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),0===this.dragListenerKeys_.length){const e=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Se(e,Dy.POINTERMOVE,this.handlePointerMove_,this),Se(e,Dy.POINTERUP,this.handlePointerUp_,this),Se(this.element_,Dy.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==e&&this.dragListenerKeys_.push(Se(this.element_.getRootNode(),Dy.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const t=new $v(Dy.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(t)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new $v(Dy.POINTERMOVE,this.map_,e,t))}handleTouchMove_(e){const t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"==typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(Me(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ae,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Me(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Me),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},f_=1/0,p_=class{constructor(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,be(this.queuedElements_)}dequeue(){const e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));const r=this.keyFunction_(n);return delete this.queuedElements_[r],n}enqueue(e){De(!(this.keyFunction_(e)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const t=this.priorityFunction_(e);return t!=f_&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(e){return 2*e+1}getRightChildIndex_(e){return 2*e+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return 0===this.elements_.length}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],s=e;for(;e<r>>1;){const i=this.getLeftChildIndex_(e),o=this.getRightChildIndex_(e),s=o<r&&n[o]<n[i]?o:i;t[e]=t[s],n[e]=n[s],e=s}t[e]=i,n[e]=o,this.siftDown_(s,e)}siftDown_(e,t){const n=this.elements_,r=this.priorities_,i=n[t],o=r[t];for(;t>e;){const e=this.getParentIndex_(t);if(!(r[e]>o))break;n[t]=n[e],r[t]=r[e],t=e}n[t]=i,r[t]=o}reprioritize(){const e=this.priorityFunction_,t=this.elements_,n=this.priorities_;let r=0;const i=t.length;let o,s,a;for(s=0;s<i;++s)o=t[s],a=e(o),a==f_?delete this.queuedElements_[this.keyFunction_(o)]:(n[r]=a,t[r++]=o);t.length=r,n.length=r,this.heapify_()}},g_=class extends p_{constructor(e,t){super((t=>e.apply(null,t)),(e=>e[0].getKey())),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=t,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(e){const t=super.enqueue(e);return t&&e[0].addEventListener(ne,this.boundHandleTileChange_),t}getTilesLoading(){return this.tilesLoading_}handleTileChange(e){const t=e.target,n=t.getState();if(2===n||3===n||4===n){3!==n&&t.removeEventListener(ne,this.boundHandleTileChange_);const e=t.getKey();e in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[e],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(e,t){let n=0;for(;this.tilesLoading_<e&&n<t&&this.getCount()>0;){const e=this.dequeue()[0],t=e.getKey();0!==e.getState()||t in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[t]=!0,++this.tilesLoading_,++n,e.load())}}},m_=class{constructor(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,t){this.points_.push(e,t,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;let n=t-3;for(;n>0&&this.points_[n+2]>e;)n-=3;const r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;const i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}},y_=class extends Jy{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:250}handleEvent(e){let t=!1;if(e.type==Dy.DBLCLICK){const n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_;Zy(r.getView(),o,i,this.duration_),n.preventDefault(),t=!0}return!t}},v_=class extends ev{constructor(e){e=e||{},super({stopDown:ye}),this.condition_=e.condition?e.condition:jy,this.lastAngle_=void 0,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){if(!$y(e))return;const t=e.map,n=t.getView();if(n.getConstraints().rotation===Hm)return;const r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){const e=o-this.lastAngle_;n.adjustRotationInternal(-e)}this.lastAngle_=o}handleUpEvent(e){return!$y(e)||(e.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(e){return!!$y(e)&&(!(!Gy(e)||!this.condition_(e))&&(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))}},__=class extends ue{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,t=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(e[0],t[0])+n,r.top=Math.min(e[1],t[1])+n,r.width=Math.abs(t[0]-e[0])+n,r.height=Math.abs(t[1]-e[1])+n}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new xi([n])}getGeometry(){return this.geometry_}},b_="boxcancel";class w_ extends xe{constructor(e,t,n){super(e),this.coordinate=t,this.mapBrowserEvent=n}}const x_=class extends ev{constructor(e){super(),this.on,this.once,this.un,e=e??{},this.box_=new __(e.className||"ol-dragbox"),this.minArea_=e.minArea??64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition??Gy,this.boxEndCondition_=e.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(e,t,n){const r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.startPixel_&&(this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new w_("boxdrag",e.coordinate,e)))}handleUpEvent(e){if(!this.startPixel_)return!1;const t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new w_(t?"boxend":b_,e.coordinate,e)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new w_("boxstart",e.coordinate,e)),!0)}onBoxEnd(e){}setActive(e){e||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new w_(b_,this.startPixel_,null)),this.startPixel_=null)),super.setActive(e)}setMap(e){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new w_(b_,this.startPixel_,null)),this.startPixel_=null)),super.setMap(e)}},E_=class extends x_{constructor(e){super({condition:(e=e||{}).condition?e.condition:Yy,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=void 0!==e.duration?e.duration:200,this.out_=void 0!==e.out&&e.out}onBoxEnd(e){const t=this.getMap().getView();let n=this.getGeometry();if(this.out_){const e=t.rotatedExtentForGeometry(n),r=t.getResolutionForExtentInternal(e),i=t.getResolution()/r;n=n.clone(),n.scale(i*i)}t.fitInternal(n,{duration:this.duration_,easing:Gm})}},S_="ArrowLeft",C_="ArrowRight",M_="ArrowDown",k_=class extends Jy{constructor(e){super(),e=e||{},this.defaultCondition_=function(e){return Vy(e)&&Hy(e)},this.condition_=void 0!==e.condition?e.condition:this.defaultCondition_,this.duration_=void 0!==e.duration?e.duration:100,this.pixelDelta_=void 0!==e.pixelDelta?e.pixelDelta:128}handleEvent(e){let t=!1;if(e.type==oe){const n=e.originalEvent,r=n.key;if(this.condition_(e)&&(r==M_||r==S_||r==C_||"ArrowUp"==r)){const i=e.map.getView(),o=i.getResolution()*this.pixelDelta_;let s=0,a=0;r==M_?a=-o:r==S_?s=-o:r==C_?s=o:a=o;const l=[s,a];Mt(l,i.getRotation()),function(e,t,n){const r=e.getCenterInternal();if(r){const i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:Wm,center:e.getConstrainedCenter(i)})}}(i,l,this.duration_),n.preventDefault(),t=!0}}return!t}},T_=class extends Jy{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:function(e){return!function(e){const t=e.originalEvent;return Zh?t.metaKey:t.ctrlKey}(e)&&Hy(e)},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:100}handleEvent(e){let t=!1;if(e.type==oe||e.type==se){const n=e.originalEvent,r=n.key;if(this.condition_(e)&&("+"===r||"-"===r)){const i=e.map,o="+"===r?this.delta_:-this.delta_;Zy(i.getView(),o,void 0,this.duration_),n.preventDefault(),t=!0}}return!t}},P_=class extends Jy{constructor(e){super(e=e||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==e.maxDelta?e.maxDelta:1,this.duration_=void 0!==e.duration?e.duration:250,this.timeout_=void 0!==e.timeout?e.timeout:80,this.useAnchor_=void 0===e.useAnchor||e.useAnchor,this.constrainResolution_=void 0!==e.constrainResolution&&e.constrainResolution;const t=e.condition?e.condition:zy;this.condition_=e.onFocusOnly?Fy(By,t):t,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();e&&e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(e){if(!this.condition_(e))return!0;
3if(e.type!==le)return!0;const t=e.map,n=e.originalEvent;let r;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.pixel),e.type==le&&(r=n.deltaY,Kh&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=Jh),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),0===r)return!1;this.lastDelta_=r;const i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const o=t.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=i,!1;this.totalDelta_+=r;const s=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,t),s),!1}handleWheelZoom_(e){const t=e.getView();t.getAnimating()&&t.cancelAnimations();let n=-Rt(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Zy(t,n,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}},O_=class extends ev{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=ye),super(t),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==e.threshold?e.threshold:.3,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){let t=0;const n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){const e=i-this.lastAngle_;this.rotationDelta_+=e,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=e}this.lastAngle_=i;const o=e.map,s=o.getView();s.getConstraints().rotation!==Hm&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(Qy(this.targetPointers))),this.rotating_&&(o.render(),s.adjustRotationInternal(t,this.anchor_)))}handleUpEvent(e){return!(this.targetPointers.length<2)||(e.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}},I_=class extends ev{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=ye),super(t),this.anchor_=null,this.duration_=void 0!==e.duration?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let t=1;const n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,s=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/s),this.lastDistance_=s;const a=e.map,l=a.getView();1!=t&&(this.lastScaleDelta_=t),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(Qy(this.targetPointers))),a.render(),l.adjustResolutionInternal(t,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}};function R_(e){e=e||{};const t=new _y,n=new m_(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&t.push(new v_),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&t.push(new y_({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&t.push(new tv({onFocusOnly:e.onFocusOnly,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&t.push(new O_),(void 0===e.pinchZoom||e.pinchZoom)&&t.push(new I_({duration:e.zoomDuration}
3)),(void 0===e.keyboard||e.keyboard)&&(t.push(new k_),t.push(new T_({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&t.push(new P_({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&t.push(new E_({duration:e.zoomDuration})),t}function A_(e,t){Ld.expire()}const L_=class extends ue{constructor(e){super(),this.map_=e}dispatchRenderEvent(e,t){Oe()}calculateMatrices2D(e){const t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;yr(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),vr(r,n)}forEachFeatureAtCoordinate(e,t,n,r,i,o,s,a){let l;const u=t.viewState;function c(e,t,n,r){return i.call(o,t,e?n:null,r)}const h=u.projection,d=Ot(e.slice(),h),f=[[0,0]];if(h.canWrapX()&&r){const e=pt(h.getExtent());f.push([-e,0],[e,0])}const p=t.layerStatesArray,g=p.length,m=[],y=[];for(let r=0;r<f.length;r++)for(let i=g-1;i>=0;--i){const o=p[i],h=o.layer;if(h.hasRenderer()&&cy(o,u)&&s.call(a,h)){const i=h.getRenderer(),s=h.getSource();if(i&&s){const a=s.getWrapX()?d:e,u=c.bind(null,o.managed);y[0]=a[0]+f[r][0],y[1]=a[1]+f[r][1],l=i.forEachFeatureAtCoordinate(y,t,n,u,m)}if(l)return l}}if(0===m.length)return;const v=1/m.length;return m.forEach(((e,t)=>e.distanceSq+=t*v)),m.sort(((e,t)=>e.distanceSq-t.distanceSq)),m.some((e=>l=e.callback(e.feature,e.layer,e.geometry))),l}hasFeatureAtCoordinate(e,t,n,r,i,o){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,r,me,this,i,o)}getMap(){return this.map_}renderFrame(e){Oe()}scheduleExpireIconCache(e){Ld.canExpireCache()&&e.postRenderFunctions.push(A_)}},N_=class extends L_{constructor(e){super(e),this.fontChangeListenerKey_=Se(of,te,e.redrawText,e),this.element_=document.createElement("div");const t=this.element_.style;t.position="absolute",t.width="100%",t.height="100%",t.zIndex="0",this.element_.className=Ud+" ol-layers";const n=e.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(e,t){const n=this.getMap();if(n.hasListener(e)){const r=new op(e,void 0,t);n.dispatchEvent(r)}}disposeInternal(){Me(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(e){if(!e)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(e),this.dispatchRenderEvent(dd,e);const t=e.layerStatesArray.sort(((e,t)=>e.zIndex-t.zIndex));t.some((e=>
3e.layer instanceof fy&&e.layer.getDeclutter()))&&(e.declutter={});const n=e.viewState;this.children_.length=0;const r=[];let i=null;for(let o=0,s=t.length;o<s;++o){const s=t[o];e.layerIndex=o;const a=s.layer,l=a.getSourceState();if(!cy(s,n)||"ready"!=l&&"undefined"!=l){a.unrender();continue}const u=a.render(e,i);u&&(u!==i&&(this.children_.push(u),i=u),r.push(s))}this.declutter(e,r),function(e,t){const n=e.childNodes;for(let r=0;;++r){const i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}(this.element_,this.children_),this.dispatchRenderEvent("postcompose",e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}declutter(e,t){if(e.declutter){for(let n=t.length-1;n>=0;--n){const r=t[n],i=r.layer;i.getDeclutter()&&i.renderDeclutter(e,r)}t.forEach((t=>t.layer.renderDeferred(e)))}}};function D_(e){e instanceof hy?e.setMapInternal(null):e instanceof h_&&e.getLayers().forEach(D_)}function F_(e,t){if(e instanceof hy)e.setMapInternal(t);else if(e instanceof h_){const n=e.getLayers().getArray();for(let e=0,r=n.length;e<r;++e)F_(n[e],t)}}const j_=class extends Ne{constructor(e){super(),e=e||{},this.on,this.once,this.un;const t=function(e){let t=null;
3void 0!==e.keyboardEventTarget&&(t="string"==typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);const n={},r=e.layers&&"function"==typeof e.layers.getLayers?e.layers:new h_({layers:e.layers});let i,o,s;return n[cv]=r,n[dv]=e.target,n[fv]=e.view instanceof Qm?e.view:new Qm,void 0!==e.controls&&(Array.isArray(e.controls)?i=new _y(e.controls.slice()):(De("function"==typeof e.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),i=e.controls)),void 0!==e.interactions&&(Array.isArray(e.interactions)?o=new _y(e.interactions.slice()):(De("function"==typeof e.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),o=e.interactions)),void 0!==e.overlays?Array.isArray(e.overlays)?s=new _y(e.overlays.slice()):(De("function"==typeof e.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),s=e.overlays):s=new _y,{controls:i,interactions:o,keyboardEventTarget:t,overlays:s,values:n}}(e);this.renderComplete_=!1,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,this.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:Jh,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=[1,0,0,1,0,0],this.pixelToCoordinateTransform_=[1,0,0,1,0,0],this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=e.moveTolerance,this.keyboardEventTarget_=t.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver((()=>this.updateSize())),this.controls=t.controls||xv(),this.interactions=t.interactions||R_({onFocusOnly:!0}),this.overlays_=t.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new g_(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(cv,this.handleLayerGroupChanged_),this.addChangeListener(fv,this.handleViewChanged_),this.addChangeListener(hv,this.handleSizeChanged_),this.addChangeListener(dv,this.handleTargetChanged_),this.setProperties(t.values);const n=this;!e.view||e.view instanceof Qm||e.view.then((function(e){n.setVie
vendor: 24,505 bytes, line 3
3w(new Qm(e))})),this.controls.addEventListener(gy,(e=>{e.element.setMap(this)})),this.controls.addEventListener(my,(e=>{e.element.setMap(null)})),this.interactions.addEventListener(gy,(e=>{e.element.setMap(this)})),this.interactions.addEventListener(my,(e=>{e.element.setMap(null)})),this.overlays_.addEventListener(gy,(e=>{this.addOverlayInternal_(e.element)})),this.overlays_.addEventListener(my,(e=>{const t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)})),this.controls.forEach((e=>{e.setMap(this)})),this.interactions.forEach((e=>{e.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){F_(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,t,n){if(!this.frameState_||!this.renderer_)return;const r=this.getCoordinateFromPixelInternal(e),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:me,s=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,s,t,null,o,null)}getFeaturesAtPixel(e,t){const n=[];return this.forEachFeatureAtPixel(e,(function(e){n.push(e)}),t),n}getAllLayers(){const e=[];return function t(n){n.forEach((function(n){n instanceof h_?t(n.getLayers()):e.push(n)}))}(this.getLayers()),e}hasFeatureAtPixel(e,t){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(e),r=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:me,i=void 0!==t.hitTolerance?t.hitTolerance:0,o=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,o,r,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const t=this.viewport_.getBoundingClientRect(),n=this.getSize(),r=t.width/n[0],i=t.height/n[1],o="changedTouches"in e?e.changedTouches[0]:e;return[(o.clientX-t.left)/r,(o.clientY-t.top)/i]}getTarget(){return this.get(dv)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return ar(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const t=this.frameState_;return t?mr(t.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(cv)}setLayers(e){const t=this.getLayerGroup();if(e instanceof _y)return void t.setLayers(e);const n=t.getLayers();n.clear(),n.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let t=0,n=e.length;t<n;++t){const n=e[t];if(!n.visible)continue;const r=n.layer.getRenderer();if(r&&!r.ready)return!0;const i=n.layer.getSource();if(i&&i.loading)return!0}return!1}getPixelFromCoordinate(e){const t=lr(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)}getPixelFromCoordinateInternal(e){const t=this.frameState_;return t?mr(t.coordinateToPixelTransform,e.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(hv)}getView(){return this.get(fv)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const e=this.getTargetElement();return e?e.ownerDocument:document}getTilePriority(e,t,n,r){return function(e,t,n,r,i){if(!e||!(n in e.wantedTiles))return f_;if(!e.wantedTiles[n][t.getKey()])return f_;const o=e.viewState.center,s=r[0]-o[0],a=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+a*a)/i}(this.frameState_,e,t,n,r)}handleBrowserEvent(e,t){t=t||e.type;const n=new $v(t,this,e);this.handleMapBrowserEvent(n)}handleMapBrowserEvent(e){if(!this.frameState_)return;const t=e.originalEvent,n=t.type;if(n===Sv||n===le||n===oe){const e=this.getOwnerDocument(),n=this.viewport_.getRootNode?this.viewport_.getRootNode():e,r=t.target,i=n instanceof ShadowRoot?n.host===r?n.host.ownerDocument:n:n===e?e.documentElement:n;if(this.overlayContainerStopEvent_.contains(r)||!i.contains(r))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e)){const t=this.getInteractions().getArray().slice();for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.getMap()===this&&r.getActive()&&this.getTargetElement()&&(!r.handleEvent(e)||e.propagationStopped))break}}}handlePostRender(){const e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){let n=this.maxTilesLoading_,r=n;if(e){const t=e.viewHints;if(t[0]||t[1]){const t=Date.now()-e.time>8;n=t?0:8,r=t?0:2}}t.getTilesLoading()<n&&(t.reprioritize(),t.loadMoreTiles(n,r))}e&&this.renderer_&&!e.animate&&(this.renderComplete_?(this.hasListener(fd)&&this.renderer_.dispatchRenderEvent(fd,e),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new Hv(iv,this,e)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new Hv(rv,this,e))));const n=this.postRenderFunctions_;if(e)for(let t=0,r=n.length;t<r;++t)n[t](this,e);n.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let e=0,t=this.targetChangeHandlerKeys_.length;e<t;++e)Me(this.targetChangeHandlerKeys_[e]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(re,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(le,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const e=this.targetElement_.getRootNode();e instanceof ShadowRoot&&this.resizeObserver_.unobserve(e.host),this.setSize(void 0)}const e=this.getTarget(),t="string"==typeof e?document.getElementById(e):e;if(this.targetElement_=t,t){t.appendChild(this.viewport_),this.renderer_||(this.renderer_=new N_(this)),this.mapBrowserEventHandler_=new d_(this,this.moveTolerance_);for(const e in Dy)this.mapBrowserEventHandler_.addEventListener(Dy[e],this.handleMapBrowserEvent.bind(this));let e;if(this.viewport_.addEventListener(re,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(le,this.boundHandleBrowserEvent_,!!td&&{passive:!1}),this.keyboardEventTarget_)e=this.keyboardEventTarget_;else{const n=t.getRootNode();e=n instanceof ShadowRoot?n.host:t}this.targetChangeHandlerKeys_=[Se(e,oe,this.handleBrowserEvent,this),Se(e,se,this.handleBrowserEvent,this)];const n=t.getRootNode();n instanceof ShadowRoot&&this.resizeObserver_.observe(n.host),this.resizeObserver_.observe(t)}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&(Me(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Me(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const e=this.getView();e&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=Se(e,te,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Se(e,ne,this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(Me),this.layerGroupPropertyListenerKeys_=null);const e=this.getLayerGroup();e&&(this.handleLayerAdd_(new l_("addlayer",e)),this.layerGroupPropertyListenerKeys_=[Se(e,te,this.render,this),Se(e,ne,this.render,this),Se(e,"addlayer",this.handleLayerAdd_,this),Se(e,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const e=this.getLayerGroup().getLayerStatesArray();for(let t=0,n=e.length;t<n;++t){const n=e[t].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(e){return this.getControls().remove(e)}removeInteraction(e){return this.getInteractions().remove(e)}removeLayer(e){return this.getLayerGroup().getLayers().remove(e)}handleLayerRemove_(e){D_(e.layer)}removeOverlay(e){return this.getOverlays().remove(e)}renderFrame_(e){const t=this.getSize(),n=this.getView(),r=this.frameState_;let i=null;if(void 0!==t&&qf(t)&&n&&n.isDef()){const r=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),o=n.getState();if(i={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:lt(o.center,o.resolution,o.rotation,t),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:t,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:o,viewHints:r,wantedTiles:{},mapId:Re(this),renderTargets:{}},o.nextCenter&&o.nextResolution){const e=isNaN(o.nextRotation)?o.rotation:o.nextRotation;i.nextExtent=lt(o.nextCenter,o.nextResolution,e,t)}}this.frameState_=i,this.renderer_.renderFrame(i),i&&(i.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,i.postRenderFunctions),r&&(!this.previousExtent_||!mt(this.previousExtent_)&&!Ze(i.extent,this.previousExtent_))&&(this.dispatchEvent(new Hv("movestart",this,r)),this.previousExtent_=$e(this.previousExtent_)),this.previousExtent_&&!i.viewHints[0]&&!i.viewHints[1]&&!Ze(i.extent,this.previousExtent_)&&(this.dispatchEvent(new Hv("moveend",this,i)),Ge(i.extent,this.previousExtent_))),this.dispatchEvent(new Hv(nv,this,i)),this.renderComplete_=(this.hasListener(rv)||this.hasListener(iv)||this.hasListener(fd))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(e){const t=this.getLayerGroup();t&&this.handleLayerRemove_(new l_("removelayer",t)),this.set(cv,e)}setSize(e){this.set(hv,e)}setTarget(e){this.set(dv,e)}setView(e){if(!e||e instanceof Qm)return void this.set(fv,e);this.set(fv,new Qm);const t=this;e.then((function(e){t.setView(new Qm(e))}))}updateSize(){const e=this.getTargetElement();let t;if(e){const n=getComputedStyle(e),r=e.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=e.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||(t=[Math.max(0,r),Math.max(0,i)],!qf(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&wt("No map visible because the map container's width or height are 0."))}const n=this.getSize();!t||n&&ge(t,n)||(this.setSize(t),this.updateViewportSize_(t))}updateViewportSize_(e){const t=this.getView();t&&t.setViewportSize(e)}},B_="element",z_="map",G_="offset",U_="position",W_="positioning",q_=class extends Ne{constructor(e){super(),this.on,this.once,this.un,this.options=e,this.id=e.id,this.insertFirst=void 0===e.insertFirst||e.insertFirst,this.stopEvent=void 0===e.stopEvent||e.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==e.className?e.className:"ol-overlay-container ol-selectable",this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===e.autoPan?{}:e.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(B_,this.handleElementChanged),this.addChangeListener(z_,this.handleMapChanged),this.addChangeListener(G_,this.handleOffsetChanged),this.addChangeListener(U_,this.handlePositionChanged),this.addChangeListener(W_,this.handlePositioningChanged),void 0!==e.element&&this.setElement(e.element),this.setOffset(void 0!==e.offset?e.offset:[0,0]),this.setPositioning(e.positioning||"top-left"),void 0!==e.position&&this.setPosition(e.position)}getElement(){return this.get(B_)}getId(){return this.id}getMap(){return this.get(z_)||null}getOffset(){return this.get(G_)}getPosition(){return this.get(U_)}getPositioning(){return this.get(W_)}handleElementChanged(){ud(this.element);const e=this.getElement();e&&this.element.appendChild(e)}handleMapChanged(){this.mapPostrenderListenerKey&&(this.element?.remove(),Me(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const e=this.getMap();if(e){this.mapPostrenderListenerKey=Se(e,nv,this.render,this),this.updatePixelPosition();const t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(e){this.set(B_,e)}setMap(e){this.set(z_,e)}setOffset(e){this.set(G_,e)}setPosition(e){this.set(U_,e)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(e){const t=this.getMap();if(!t||!t.getTargetElement()||!this.get(U_))return;const n=this.getRect(t.getTargetElement(),t.getSize()),r=this.getElement(),i=this.getRect(r,[sd(r),ad(r)]),o=void 0===(e=e||{}).margin?20:e.margin;if(!qe(n,i)){const r=i[0]-n[0],s=n[2]-i[2],a=i[1]-n[1],l=n[3]-i[3],u=[0,0];if(r<0?u[0]=r-o:s<0&&(u[0]=Math.abs(s)+o),a<0?u[1]=a-o:l<0&&(u[1]=Math.abs(l)+o),0!==u[0]||0!==u[1]){const n=t.getView().getCenterInternal(),r=t.getPixelFromCoordinateInternal(n);if(!r)return;const i=[r[0]+u[0],r[1]+u[1]],o=e.animation||{};t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(i),duration:o.duration,easing:o.easing})}}}getRect(e,t){const n=e.getBoundingClientRect(),r=n.left+window.pageXOffset,i=n.top+window.pageYOffset;return[r,i,r+t[0],i+t[1]]}setPositioning(e){this.set(W_,e)}setVisible(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)}updatePixelPosition(){const e=this.getMap(),t=this.getPosition();if(!e||!e.isRendered()||!t)return void this.setVisible(!1);const n=e.getPixelFromCoordinate(t),r=e.getSize();this.updateRenderedPosition(n,r)}updateRenderedPosition(e,t){const n=this.element.style,r=this.getOffset(),i=this.getPositioning();this.setVisible(!0);let o="0%",s="0%";"bottom-right"==i||"center-right"==i||"top-right"==i?o="-100%":"bottom-center"!=i&&"center-center"!=i&&"top-center"!=i||(o="-50%"),"bottom-left"==i||"bottom-center"==i||"bottom-right"==i?s="-100%":"center-left"!=i&&"center-center"!=i&&"center-right"!=i||(s="-50%");const a=`translate(${o}, ${s}) translate(${Math.round(e[0]+r[0])+"px"}, ${Math.round(e[1]+r[1])+"px"})`;this.rendered.transform_!=a&&(this.rendered.transform_=a,n.transform=a)}getOptions(){return this.options}},V_=class extends Ry{constructor(e){super({attributions:(e=e||{}).attributions,wrapX:e.wrapX}),this.resolution=void 0,this.distance=void 0!==e.distance?e.distance:20,this.minDistance=e.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=e.geometryFunction||function(e){const t=e.getGeometry();return De(!t||"Point"===t.getType(),"The default `geometryFunction` can only handle `Point` or null geometries"),t},this.createCustomCluster_=e.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(e.source||null)}clear(e){this.features.length=0,super.clear(e)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(e,t,n){this.source?.loadFeatures(e,t,n),t!==this.resolution&&(this.resolution=t,this.refresh())}setDistance(e){this.updateDistance(e,this.minDistance)}setMinDistance(e){this.updateDistance(this.distance,e)}getMinDistance(){return this.minDistance}setSource(e){this.source&&this.source.removeEventListener(ne,this.boundRefresh_),this.source=e,e&&e.addEventListener(ne,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(e,t){const n=0===e?0:Math.min(t,e)/e,r=e!==this.distance||this.interpolationRatio!==n;this.distance=e,this.minDistance=t,this.interpolationRatio=n,r&&this.refresh()}cluster(){if(void 0===this.resolution||!this.source)return;const e=[1/0,1/0,-1/0,-1/0],t=this.distance*this.resolution,n=this.source.getFeatures(),r={};for(let i=0,o=n.length;i<o;i++){const o=n[i];if(!(Re(o)in r)){const n=this.geometryFunction(o);if(n){Ke(n.getCoordinates(),e),ze(e,t,e);const i=this.source.getFeaturesInExtent(e).filter((function(e){const t=Re(e);return!(t in r)&&(r[t]=!0,!0)}));this.features.push(this.createCluster(i,e))}}}}createCluster(e,t){const n=[0,0];for(let t=e.length-1;t>=0;--t){const r=this.geometryFunction(e[t]);r?xt(n,r.getCoordinates()):e.splice(t,1)}kt(n,1/e.length);const r=st(t),i=this.interpolationRatio,o=new ai([n[0]*(1-i)+r[0]*i,n[1]*(1-i)+r[1]*i]);return this.createCustomCluster_?this.createCustomCluster_(o,e):new je({geometry:o,features:e})}};function Y_(e){return(t,n)=>{const r=n();e!==r.kpm.mode&&(t(wu()),r.basket.selected.length&&t(vu(r.basket.selected[0],"selected"))),t(function(e){return{mode:e,type:Pl}}(e))}}function H_(e){return{mode:e,type:Ql}}function $_(e,t){return cb().createElementNS(e,t)}function K_(e,t){return X_(e,t,[]).join("")}function X_(e,t,n){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)t?n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(e.nodeValue);else{let r;for(r=e.firstChild;r;r=r.nextSibling)X_(r,t,n)}return n}function Z_(e){return"documentElement"in e}function J_(e){return(new DOMParser).parseFromString(e,"application/xml")}function Q_(e,t){return function(n,r){const i=e.call(t??this,n,r);void 0!==i&&pe(r[r.length-1],i)}}function eb(e,t){return function(n,r){const i=e.call(t??this,n,r);void 0!==i&&r[r.length-1].push(i)}}function tb(e,t){return function(n,r){const i=e.call(t??this,n,r);void 0!==i&&(r[r.length-1]=i)}}function nb(e,t){return function(n,r,i){e.call(t??this,n,r,i),i[i.length-1].node.appendChild(n)}}function rb(e,t){return function(n,r,i){const o=r[r.length-1].node;let s=e;return void 0===s&&(s=i),$_(void 0!==t?t:o.namespaceURI,s)}}const ib=rb();function ob(e,t,n,r){let i;for(i=t.firstElementChild;i;i=i.nextElementSibling){const t=e[i.namespaceURI];if(void 0!==t){const e=t[i.localName];void 0!==e&&e.call(r,i,n)}}}function sb(e,t,n,r,i){return r.push(e),ob(t,n,r,i),r.pop()}function ab(e,t,n,r,i,o,s){return i.push(e),function(e,t,n,r,i,o){const s=(void 0!==i?i:n).length;let a,l;for(let u=0;u<s;++u)a=n[u],void 0!==a&&(l=t.call(o,a,r,void 0!==i?i[u]:void 0),void 0!==l&&e[l.namespaceURI][l.localName].call(o,l,a,r))}(t,n,r,i,o,s),i.pop()}let lb,ub;function cb(){return void 0===ub&&"undefined"!=typeof document&&(ub=document.implementation.createDocument("","",null)),ub}function hb(e){const t=/^\s*(\d+)\s*$/.exec(e);if(t)return parseInt(t[1],10)}function db(e,t){e.appendChild(cb().createTextNode(t))}const fb=class extends Ti{constructor(){super(),this.xmlSerializer_=(void 0===lb&&"undefined"!=typeof XMLSerializer&&(lb=new XMLSerializer),lb)}getType(){return"xml"}readFeature(e,t){if(!e)return null;if("string"==typeof e){const n=J_(e);return this.readFeatureFromDocument(n,t)}return Z_(e)?this.readFeatureFromDocument(e,t):this.readFeatureFromNode(e,t)}readFeatureFromDocument(e,t){const n=this.readFeaturesFromDocument(e,t);return n.length>0?n[0]:null}readFeatureFromNode(e,t){return null}readFeatures(e,t){if(!e)return[];if("string"==typeof e){const n=J_(e);return this.readFeaturesFromDocument(n,t)}return Z_(e)?this.readFeaturesFromDocument(e,t):this.readFeaturesFromNode(e,t)}readFeaturesFromDocument(e,t){const n=[];for(let r=e.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&pe(n,this.readFeaturesFromNode(r,t));return n}readFeaturesFromNode(e,t){return Oe()}readGeometry(e,t){if(!e)return null;if("string"==typeof e){const n=J_(e);return this.readGeometryFromDocument(n,t)}return Z_(e)?this.readGeometryFromDocument(e,t):this.readGeometryFromNode(e,t)}readGeometryFromDocument(e,t){return null}readGeometryFromNode(e,t){return null}readProjection(e){if(!e)return null;if("string"==typeof e){const t=J_(e);return this.readProjectionFromDocument(t)}return Z_(e)?this.readProjectionFromDocument(e):this.readProjectionFromNode(e)}readProjectionFromDocument(e){return this.dataProjection}readProjectionFromNode(e){return this.dataProjection}writeFeature(e,t){const n=this.writeFeatureNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeFeatureNode(e,t){return null}writeFeatures(e,t){const n=this.writeFeaturesNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeFeaturesNode(e,t){return null}writeGeometry(e,t){const n=this.writeGeometryNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeGeometryNode(e,t){return null}},pb="http://www.opengis.net/gml",gb=/^\s*$/;class mb extends fb{constructor(e){super(),e=e||{},this.featureType=e.featureType,this.featureNS=e.featureNS,this.srsName=e.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:eb(this.readFeaturesInternal),featureMembers:tb(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(e,t){const n=e.localName;let r=null;if("FeatureCollection"==n)r=sb([],this.FEATURE_COLLECTION_PARSERS,e,t,this);else if("featureMembers"==n||"featureMember"==n||"member"==n){const i=t[0];let o=i.featureType,s=i.featureNS;const a="p",l="p0";if(!o&&e.childNodes){o=[],s={};for(let t=0,n=e.childNodes.length;t<n;++t){const n=e.childNodes[t];if(1===n.nodeType){const e=n.nodeName.split(":").pop();if(!o.includes(e)){let t="",r=0;const i=n.namespaceURI;for(const e in s){if(s[e]===i){t=e;break}++r}t||(t=a+r,s[t]=i),o.push(t+":"+e)}}}"featureMember"!=n&&(i.featureType=o,i.featureNS=s)}if("string"==typeof s){const e=s;s={},s[l]=e}const u={},c=Array.isArray(o)?o:[o];for(const e in s){const t={};for(let r=0,i=c.length;r<i;++r)(c[r].includes(":")?c[r].split(":")[0]:l)===e&&(t[c[r].split(":").pop()]="featureMembers"==n?eb(this.readFeatureElement,this):tb(this.readFeatureElement,this));u[s[e]]=t}r=sb("featureMember"==n||"member"==n?void 0:[],u,e,t)}return null===r&&(r=[]),r}readGeometryOrExtent(e,t){const n=t[0];return n.srsName=e.firstElementChild.getAttribute("srsName"),n.srsDimension=e.firstElementChild.getAttribute("srsDimension"),sb(null,this.GEOMETRY_PARSERS,e,t,this)}readExtentElement(e,t){const n=t[0],r=this.readGeometryOrExtent(e,t);return r?Oi(r,n):void 0}readGeometryElement(e,t){const n=t[0],r=this.readGeometryOrExtent(e,t);return r?Pi(r,!1,n):void 0}readFeatureElementInternal(e,t,n){let r;const i={};for(let o=e.firstElementChild;o;o=o.nextElementSibling){let e;const s=o.localName;0===o.childNodes.length||1===o.childNodes.length&&(3===o.firstChild.nodeType||4===o.firstChild.nodeType)?(e=K_(o,!1),gb.test(e)&&(e=void 0)):(n&&(e="boundedBy"===s?this.readExtentElement(o,t):this.readGeometryElement(o,t)),e?"boundedBy"!==s&&(r=s):e=this.readFeatureElementInternal(o,t,!1));const a=o.attributes.length;if(a>0&&!(e instanceof Sr)){e={_content_:e};for(let t=0;t<a;t++)e[o.attributes[t].name]=o.attributes[t].value}i[s]?(i[s]instanceof Array||(i[s]=[i[s]]),i[s].push(e)):i[s]=e}if(!n)return i;const o=new je(i);r&&o.setGeometryName(r);const s=e.getAttribute("fid")||function(e,t){return e.getAttributeNS(t,"i
3d")||""}(e,this.namespace);return s&&o.setId(s),o}readFeatureElement(e,t){return this.readFeatureElementInternal(e,t,!0)}readPoint(e,t){const n=this.readFlatCoordinatesFromNode(e,t);if(n)return new ai(n,"XYZ")}readMultiPoint(e,t){const n=sb([],this.MULTIPOINT_PARSERS,e,t,this);if(n)return new ui(n)}readMultiLineString(e,t){const n=sb([],this.MULTILINESTRING_PARSERS,e,t,this);if(n)return new oi(n)}readMultiPolygon(e,t){const n=sb([],this.MULTIPOLYGON_PARSERS,e,t,this);if(n)return new ki(n)}pointMemberParser(e,t){ob(this.POINTMEMBER_PARSERS,e,t,this)}lineStringMemberParser(e,t){ob(this.LINESTRINGMEMBER_PARSERS,e,t,this)}polygonMemberParser(e,t){ob(this.POLYGONMEMBER_PARSERS,e,t,this)}readLineString(e,t){const n=this.readFlatCoordinatesFromNode(e,t);if(n)return new ri(n,"XYZ")}readFlatLinearRing(e,t){const n=sb(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,e,t,this);if(n)return n}readLinearRing(e,t){const n=this.readFlatCoordinatesFromNode(e,t);if(n)return new fi(n,"XYZ")}readPolygon(e,t){const n=sb([null],this.FLAT_LINEAR_RINGS_PARSERS,e,t,this);if(n&&n[0]){const e=n[0],t=[e.length];let r,i;for(r=1,i=n.length;r<i;++r)pe(e,n[r]),t.push(e.length);return new xi(e,"XYZ",t)}}readFlatCoordinatesFromNode(e,t){return sb(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,e,t,this)}readGeometryFromNode(e,t){return this.readGeometryElement(e,[this.getReadOptions(e,t||{})])||null}readFeaturesFromNode(e,t){const n={featureType:this.featureType,featureNS:this.featureNS};return n&&Object.assign(n,this.getReadOptions(e,t)),this.readFeaturesInternal(e,[n])||[]}readProjectionFromNode(e){return Hn(this.srsName?this.srsName:e.firstElementChild.getAttribute("srsName"))}}mb.prototype.namespace=pb,mb.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{}},mb.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{}},mb.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{}},mb.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml":{pointMember:eb(mb.prototype.pointMemberParser),pointMembers:eb(mb.prototype.pointMemberParser)}},mb.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml":{lineStringMember:eb(mb.prototype.lineStringMemberParser),lineStringMembers:eb(mb.prototype.lineStringMemberParser)}},mb.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml":{polygonMember:eb(mb.prototype.polygonMemberParser),polygonMembers:eb(mb.prototype.polygonMemberParser)}},mb.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml":{Point:eb(mb.prototype.readFlatCoordinatesFromNode)}},mb.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:eb(mb.prototype.readLineString)}},mb.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:eb(mb.prototype.readPolygon)}},mb.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:tb(mb.prototype.readFlatLinearRing)}};const yb=mb,vb=pb+" http://schemas.opengis.net/gml/2.1.2/feature.xsd",_b={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};class bb extends yb{constructor(e){super(e=e||{}),this.FEATURE_COLLECTION_PARSERS[pb].featureMember=eb(this.readFeaturesInternal),this.schemaLocation=e.schemaLocation?e.schemaLocation:vb}readFlatCoordinates(e,t){const n=K_(e,!1).replace(/^\s*|\s*$/g,""),r=t[0].srsName;let i="enu";if(r){const e=Hn(r);e&&(i=e.getAxisOrientation())}const o=n.trim().split(/\s+/),s=[];for(let e=0,t=o.length;e<t;e++){const t=o[e].split(/,+/),n=parseFloat(t[0]),r=parseFloat(t[1]),a=3===t.length?parseFloat(t[2]):0;i.startsWith("en")?s.push(n,r,a):s.push(r,n,a)}return s}readBox(e,t){const n=sb([null],this.BOX_PARSERS_,e,t,this);return He(n[1][0],n[1][1],n[1][3],n[1][4])}innerBoundaryIsParser(e,t){const n=sb(void 0,this.RING_PARSERS,e,t,this);n&&t[t.length-1].push(n)}outerBoundaryIsParser(e,t){const n=sb(void 0,this.RING_PARSERS,e,t,this);n&&(t[t.length-1][0]=n)}GEOMETRY_NODE_FACTORY_(e,t,n){const r=t[t.length-1],i=r.multiSurface,o=r.surface,s=r.multiCurve;return Array.isArray(e)?n="Envelope":"MultiPolygon"===(n=e.getType())&&!0===i?n="MultiSurface":"Polygon"===n&&!0===o?n="Surface":"MultiLineString"===n&&!0===s&&(n="MultiCurve"),$_("http://www.opengis.net/gml",n)}writeFeatureElement(e,t,n){const r=t.getId();r&&e.setAttribute("fid",r);const i=n[n.length-1],o=i.featureNS,s=t.getGeometryName();
vendor: 10,709 bytes, line 3
3i.serializers||(i.serializers={},i.serializers[o]={});const a=[],l=[];if(t.hasProperties()){const e=t.getProperties();for(const t in e){const n=e[t];null!=n&&(a.push(t),l.push(n),t==s||"function"==typeof n.getSimplifiedGeometry?t in i.serializers[o]||(i.serializers[o][t]=nb(this.writeGeometryElement,this)):t in i.serializers[o]||(i.serializers[o][t]=nb(db)))}}const u=Object.assign({},i);u.node=e,ab(u,i.serializers,rb(void 0,o),l,n,a)}writeCurveOrLineString(e,t,n){const r=n[n.length-1].srsName;if("LineStringSegment"!==e.nodeName&&r&&e.setAttribute("srsName",r),"LineString"===e.nodeName||"LineStringSegment"===e.nodeName){const r=this.createCoordinatesNode_(e.namespaceURI);e.appendChild(r),this.writeCoordinates_(r,t,n)}else if("Curve"===e.nodeName){const r=$_(e.namespaceURI,"segments");e.appendChild(r),this.writeCurveSegments_(r,t,n)}}writeLineStringOrCurveMember(e,t,n){const r=this.GEOMETRY_NODE_FACTORY_(t,n);r&&(e.appendChild(r),this.writeCurveOrLineString(r,t,n))}writeMultiCurveOrLineString(e,t,n){const r=n[n.length-1],i=r.hasZ,o=r.srsName,s=r.curve;o&&e.setAttribute("srsName",o);const a=t.getLineStrings();ab({node:e,hasZ:i,srsName:o,curve:s},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,a,n,void 0,this)}writeGeometryElement(e,t,n){const r=n[n.length-1],i=Object.assign({},r);let o;i.node=e,o=Array.isArray(t)?Oi(t,r):Pi(t,!0,r),ab(i,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[o],n,void 0,this)}createCoordinatesNode_(e){const t=$_(e,"coordinates");return t.setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}writeCoordinates_(e,t,n){const r=n[n.length-1],i=r.hasZ,o=r.srsName,s=t.getCoordinates(),a=s.length,l=new Array(a);for(let e=0;e<a;++e){const t=s[e];l[e]=this.getCoords_(t,o,i)}db(e,l.join(" "))}writeCurveSegments_(e,t,n){const r=$_(e.namespaceURI,"LineStringSegment");e.appendChild(r),this.writeCurveOrLineString(r,t,n)}writeSurfaceOrPolygon(e,t,n){const r=n[n.length-1],i=r.hasZ,o=r.srsName;if("PolygonPatch"!==e.nodeName&&o&&e.setAttribute("srsName",o),"Polygon"===e.nodeName||"PolygonPatch"===e.nodeName){const r=t.getLinearRings();ab({node:e,hasZ:i,srsName:o},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,r,n,void 0,this)}else if("Surface"===e.nodeName){const r=$_(e.namespaceURI,"patches");e.appendChild(r),this.writeSurfacePatches_(r,t,n)}}RING_NODE_FACTORY_(e,t,n){const r=t[t.length-1],i=r.node,o=r.exteriorWritten;return void 0===o&&(r.exteriorWritten=!0),$_(i.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")}writeSurfacePatches_(e,t,n){const r=$_(e.namespaceURI,"PolygonPatch");e.appendChild(r),this.writeSurfaceOrPolygon(r,t,n)}writeRing(e,t,n){const r=$_(e.namespaceURI,"LinearRing");e.appendChild(r),this.writeLinearRing(r,t,n)}getCoords_(e,t,n){let r=(t?Hn(t).getAxisOrientation():"enu").startsWith("en")?e[0]+","+e[1]:e[1]+","+e[0];return n&&(r+=","+(e[2]||0)),r}writePoint(e,t,n){const r=n[n.length-1],i=r.hasZ,o=r.srsName;o&&e.setAttribute("srsName",o);const s=this.createCoordinatesNode_(e.namespaceURI);e.appendChild(s);const a=t.getCoordinates();db(s,this.getCoords_(a,o,i))}writeMultiPoint(e,t,n){const r=n[n.length-1],i=r.hasZ,o=r.srsName;o&&e.setAttribute("srsName",o);const s=t.getPoints();ab({node:e,hasZ:i,srsName:o},this.POINTMEMBER_SERIALIZERS,rb("pointMember"),s,n,void 0,this)}writePointMember(e,t,n){const r=$_(e.namespaceURI,"Point");e.appendChild(r),this.writePoint(r,t,n)}writeLinearRing(e,t,n){const r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);const i=this.createCoordinatesNode_(e.namespaceURI);e.appendChild(i),this.writeCoordinates_(i,t,n)}writeMultiSurfaceOrPolygon(e,t,n){const r=n[n.length-1],i=r.hasZ,o=r.srsName,s=r.surface;o&&e.setAttribute("srsName",o);const a=t.getPolygons();ab({node:e,hasZ:i,srsName:o,surface:s},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,a,n,void 0,this)}writeSurfaceOrPolygonMember(e,t,n){const r=this.GEOMETRY_NODE_FACTORY_(t,n);r&&(e.appendChild(r),this.writeSurfaceOrPolygon(r,t,n))}writeEnvelope(e,t,n){const r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);const i=[t[0]+" "+t[1],t[2]+" "+t[3]];ab({node:e},this.ENVELOPE_SERIALIZERS,ib,i,n,["lowerCorner","upperCorner"],this)}MULTIGEOMETRY_MEMBER_NODE_FACTORY_(e,t,n){const r=t[t.length-1].node;return $_("http://www.opengis.net/gml",_b[r.nodeName])}}bb.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{coordinates:tb(bb.prototype.readFlatCoordinates)}},bb.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{innerBoundaryIs:bb.prototype.innerBoundaryIsParser,outerBoundaryIs:bb.prototype.outerBoundaryIsParser}},bb.prototype.BOX_PARSERS_={"http://www.opengis.net/gml":{coordinates:eb(bb.prototype.readFlatCoordinates)}},bb.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:tb(yb.prototype.readPoint),MultiPoint:tb(yb.prototype.readMultiPoint),LineString:tb(yb.prototype.readLineString),MultiLineString:tb(yb.prototype.readMultiLineString),LinearRing:tb(yb.prototype.readLinearRing),Polygon:tb(yb.prototype.readPolygon),MultiPolygon:tb(yb.prototype.readMultiPolygon),Box:tb(bb.prototype.readBox)}},bb.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:nb(bb.prototype.writeCurveOrLineString),MultiCurve:nb(bb.prototype.writeMultiCurveOrLineString),Point:nb(bb.prototype.writePoint),MultiPoint:nb(bb.prototype.writeMultiPoint),LineString:nb(bb.prototype.writeCurveOrLineString),MultiLineString:nb(bb.prototype.writeMultiCurveOrLineString),LinearRing:nb(bb.prototype.writeLinearRing),Polygon:nb(bb.prototype.writeSurfaceOrPolygon),MultiPolygon:nb(bb.prototype.writeMultiSurfaceOrPolygon),Surface:nb(bb.prototype.writeSurfaceOrPolygon),MultiSurface:nb(bb.prototype.writeMultiSurfaceOrPolygon),Envelope:nb(bb.prototype.writeEnvelope)}},bb.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:nb(bb.prototype.writeLineStringOrCurveMember),curveMember:nb(bb.prototype.writeLineStringOrCurveMember)}},bb.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{outerBoundaryIs:nb(bb.prototype.writeRing),innerBoundaryIs:nb(bb.prototype.writeRing)}},bb.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:nb(bb.prototype.writePointMember)}},bb.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:nb(bb.prototype.writeSurfaceOrPolygonMember),polygonMember:nb(bb.prototype.writeSurfaceOrPolygonMember)}},bb.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:nb(db),upperCorner:nb(db)}};const wb=bb,xb=pb+" http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",Eb={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};class Sb extends yb{constructor(e){super(e=e||{}),this.surface_=void 0!==e.surface&&e.surface,this.curve_=void 0!==e.curve&&e.curve,this.multiCurve_=void 0===e.multiCurve||e.multiCurve,this.multiSurface_=void 0===e.multiSurface||e.multiSurface,this.schemaLocation=e.schemaLocation?e.schemaLocation:xb,this.hasZ=void 0!==e.hasZ&&e.hasZ}readMultiCurve(e,t){const n=sb([],this.MULTICURVE_PARSERS,e,t,this);if(n)return new oi(n)}readFlatCurveRing(e,t){const n=sb([],this.MULTICURVE_PARSERS,e,t,this),r=[];for(let e=0,t=n.length;e<t;++e)pe(r,n[e].getFlatCoordinates());return r}readMultiSurface(e,t){const n=sb([],this.MULTISURFACE_PARSERS,e,t,this);if(n)return new ki(n)}curveMemberParser(e,t){ob(this.CURVEMEMBER_PARSERS,e,t,this)}surfaceMemberParser(e,t){ob(this.SURFACEMEMBER_PARSERS,e,t,this)}readPatch(e,t){return sb([null],this.PATCHES_PARSERS,e,t,this)}readSegment(e,t){return sb([],this.SEGMENTS_PARSERS,e,t,this)}readPolygonPatch(e,t){return sb([null],this.FLAT_LINEAR_RINGS_PARSERS,e,t,this)}readLineStringSegment(e,t){return sb([null],this.GEOMETRY_FLAT_COORDINATES_PARSERS,e,t,this)}interiorParser(e,t){const n=sb(void 0,this.RING_PARSERS,e,t,this);n&&t[t.length-1].push(n)}exteriorParser(e,t){const n=sb(void 0,this.RING_PARSERS,e,t,this);n&&(t[t.length-1][0]=n)}readSurface(e,t){const n=sb([null],this.SURFACE_PARSERS,e,t,this);if(n&&n[0]){const e=n[0],t=[e.length];let r,i;for(r=1,i=n.length;r<i;++r)pe(e,n[r]),t.push(e.length);return new xi(e,"XYZ",t)}}readCurve(e,t){const n=sb([null],this.CURVE_PARSERS,e,t,this);if(n)return new ri(n,"XYZ")}readEnvelope(e,t){const n=sb([null],this.ENVELOPE_PARSERS,e,t,this);return He(n[1][0],n[1][1],n[2][0],n[2][1])}readFlatPos(e,t){let n=K_(e,!1);const r=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,i=[];let o;for(;o=r.exec(n);)i.push(parseFloat(o[1])),n=n.substr(o[0].length);if(""!==n)return;const s=t[0].srsName;if("neu"===(s?Hn(s).getAxisOrientation():"enu"))for(let e=0,t=i.length;e<t;e+=3){const t=i[e],n=i[e+1];i[e]=n,i[e+1]=t}const a=i.length;return 2==a&&i.push(0),0!==a?i:void 0}readFlatPosList(e,t){const n=K_(e,!1).replace(/^\s*|\s*$/g,""),r=t[0],i=r.srsName,o=r.srsDimension,s=i?Hn(i).getAxisOrientation():"enu",a=n.split(/\s+/);let l=2;e.getAttribute("srsDimension")?l=hb(e.getAttribute("srsDimension")):e.getAttribute("dimension")?l=hb(e.getAttribute("dimension")):e.parentNode.getAttribute("srsDimension")?l=hb(e.parentNode.getAttribute("srsDimension")):o&&(l=hb(o));const u=s.startsWith("en");let c,h,d;const f=[];for(let e=0,t=a.length;e<t;e+=l)c=parseFloat(a[e]),h=parseFloat(a[e+1]),d=3===l?parseFloat(a[e+2]):0,u?f.push(c,h,d):f.push(h,c,d);return f}writePos_(e,t,n){const r=n[n.length-1],i=r.hasZ,o=i?"3":"2";e.setAttribute("srsDimension",o);const s=r.srsName,a=s?Hn(s).getAxisOrientation():"enu",l=t.getCoordinates();let u=a.startsWith("en")?l[0]+" "+l[1]:l[1]+" "+l[0];i&&(u+=" "+(l[2]||0)),db(e,u)}getCoords_(e,t,n){let r=(t?Hn(t).getAxisOrientation():"enu").startsWith("en")?e[0]+" "+e[1]:e[1]+" "+e[0];return n&&(r+=" "+(e[2]||0)),r}writePosList_(e,t,n){const r=n[n.length-1],i=r.hasZ,o=i?"3":"2";e.setAttribute("srsDimension",o);const s=r.srsName,a=t.getCoordinates(),l=a.length,u=new Array(l);let c;for(let e=0;e<l;++e)c=a[e],u[e]=this.getCoords_(c,s,i);db(e,u.join(" "))}writePoint(e,t,n){const r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);const i=$_(e.namespaceURI,"pos");e.appendChild(i),this.writePos_(i,t,n)}writeEnvelope(e,t,n){const r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);const i=[t[0]+" "+t[1],t[2]+" "+t[3]];ab({node:e},this.ENVELOPE_SERIALIZERS,ib,i,n,["lowerCorner","upperCorner"],this)}writeLinearRing(e,t,n){const r=n[n.length-1].srsName;r&&e.setAttribute("srsName",r);const i=$_(e.namespaceURI,"posList");e.appendChild(i),this.writePosList_(i,t,n)}RING_NODE_FACTORY_(e,t,n){const r=t[t.length-1],i=r.node,o=r.exteriorWritten;return void 0===o&&(r.exteriorWritten=!0),$_(i.namespaceURI,void 0!==o?"
3interior":"exterior")}writeSurfaceOrPolygon(e,t,n){const r=n[n.length-1],i=r.hasZ,o=r.srsName;if("PolygonPatch"!==e.nodeName&&o&&e.setAttribute("srsName",o),"Polygon"===e.nodeName||"PolygonPatch"===e.nodeName){const r=t.getLinearRings();ab({node:e,hasZ:i,srsName:o},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,r,n,void 0,this)}else if("Surface"===e.nodeName){const r=$_(e.namespaceURI,"patches");e.appendChild(r),this.writeSurfacePatches_(r,t,n)}}writeCurveOrLineString(e,t,n){const r=n[n.length-1].srsName;if("LineStringSegment"!==e.nodeName&&r&&e.setAttribute("srsName",r),"LineString"===e.nodeName||"LineStringSegment"===e.nodeName){const r=$_(e.namespaceURI,"posList");e.appendChild(r),this.writePosList_(r,t,n)}else if("Curve"===e.nodeName){const r=$_(e.namespaceURI,"segments");e.appendChild(r),this.writeCurveSegments_(r,t,n)}}writeMultiSurfaceOrPolygon(e,t,n){const r=n[n.length-1],i=r.hasZ,o=r.srsName,s=r.surface;o&&e.setAttribute("srsName",o);const a=t.getPolygons();ab({node:e,hasZ:i,srsName:o,surface:s},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,a,n,void 0,this)}writeMultiPoint(e,t,n){const r=n[n.length-1],i=r.srsName,o=r.hasZ;i&&e.setAttribute("srsName",i);const s=t.getPoints();ab({node:e,hasZ:o,srsName:i},this.POINTMEMBER_SERIALIZERS,rb("pointMember"),s,n,void 0,this)}writeMultiCurveOrLineString(e,t,n){const r=n[n.length-1],i=r.hasZ,o=r.srsName,s=r.curve;o&&e.setAttribute("srsName",o);const a=t.getLineStrings();ab({node:e,hasZ:i,srsName:o,curve:s},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,a,n,void 0,this)}writeRing(e,t,n){const r=$_(e.namespaceURI,"LinearRing");e.appendChild(r),this.writeLinearRing(r,t,n)}writeSurfaceOrPolygonMember(e,t,n){const r=this.GEOMETRY_NODE_FACTORY_(t,n);r&&(e.appendChild(r),this.writeSurfaceOrPolygon(r,t,n))}writePointMember(e,t,n){const r=$_(e.namespaceURI,"Point");e.appendChild(r),this.writePoint(r,t,n)}writeLineStringOrCurveMember(e,t,n){const r=this.GEOMETRY_NODE_FACTORY_(t,n);r&&(e.appendChild(r),this.writeCurveOrLineString(r,t,n))}writeSurfacePatches_(e,t,n){const r=$_(e.namespaceURI,"PolygonPatch");e.appendChild(r),this.writeSurfaceOrPolygon(r,t,n)}writeCurveSegments_(e,t,n){const r=$_(e.namespaceURI,"LineStringSegment");e.appendChild(r),this.writeCurveOrLineString(r,t,n)}writeGeometryElement(e,t,n){const r=n[n.length-1],i=Object.assign({},r);let o;i.node=e,o=Array.isArray(t)?Oi(t,r):Pi(t,!0,r),ab(i,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[o],n,void 0,this)}writeFeatureElement(e,t,n){const r=t.getId();r&&e.setAttribute("fid",r);const i=n[n.length-1],o=i.featureNS,s=t.getGeometryName();i.serializers||(i.serializers={},i.serializers[o]={});const a=[],l=[];if(t.hasProperties()){const e=t.getProperties();for(const t in e){const n=e[t];null!=n&&(a.push(t),l.push(n),t==s||"function"==typeof n.getSimplifiedGeometry?t in i.serializers[o]||(i.serializers[o][t]=nb(this.writeGeometryElement,this)):t in i.serializers[o]||(i.serializers[o][t]=nb(db)))}}const u=Object.assign({},i);u.node=e,ab(u,i.serializers,rb(void 0,o),l,n,a)}writeFeatureMembers_(e,t,n){const r=n[n.length-1],i=r.featureType,o=r.featureNS,s={};s[o]={},s[o][i]=nb(this.writeFeatureElement,this);const a=Object.assign({},r);a.node=e,ab(a,s,rb(i,o),t,n)}MULTIGEOMETRY_MEMBER_NODE_FACTORY_(e,t,n){const r=t[t.length-1].node;return $_(this.namespace,Eb[r.nodeName])}GEOMETRY_NODE_FACTORY_(e,t,n){const r=t[t.length-1],i=r.multiSurface,o=r.surface,s=r.curve,a=r.multiCurve;return Array.isArray(e)?n="Envelope":"MultiPolygon"===(n=e.getType())&&!0===i?n="MultiSurface":"Polygon"===n&&!0===o?n="Surface":"LineString"===n&&!0===s?n="Curve":"MultiLineString"===n&&!0===a&&(n="MultiCurve"),$_(this.namespace,n)}writeGeometryNode(e,t){t=this.adaptOptions(t);const n=$_(this.namespace,"geom"),r={node:n,hasZ:this.hasZ,srsName:this.srsName,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_};return t&&Object.assign(r,t),this.writeGeometryElement(n,e,[r]),n}writeFeaturesNode(e,t){t=this.adaptOptions(t);const n=$_(this.namespace,"featureMembers");n.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);const r={srsName:this.srsName,hasZ:this.hasZ,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_,featureNS:this.featureNS,featureType:this.featureType};return t&&Object.assign(r,t),this.writeFeatureMembers_(n,e,[r]),n}}Sb.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{pos:tb(Sb.prototype.readFlatPos),posList:tb(Sb.prototype.readFlatPosList),coordinates:tb(wb.prototype.readFlatCoordinates)}}
3,Sb.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{interior:Sb.prototype.interiorParser,exterior:Sb.prototype.exteriorParser}},Sb.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:tb(yb.prototype.readPoint),MultiPoint:tb(yb.prototype.readMultiPoint),LineString:tb(yb.prototype.readLineString),MultiLineString:tb(yb.prototype.readMultiLineString),LinearRing:tb(yb.prototype.readLinearRing),Polygon:tb(yb.prototype.readPolygon),MultiPolygon:tb(yb.prototype.readMultiPolygon),Surface:tb(Sb.prototype.readSurface),MultiSurface:tb(Sb.prototype.readMultiSurface),Curve:tb(Sb.prototype.readCurve),MultiCurve:tb(Sb.prototype.readMultiCurve),Envelope:tb(Sb.prototype.readEnvelope)}},Sb.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml":{curveMember:eb(Sb.prototype.curveMemberParser),curveMembers:eb(Sb.prototype.curveMemberParser)}},Sb.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml":{surfaceMember:eb(Sb.prototype.surfaceMemberParser),surfaceMembers:eb(Sb.prototype.surfaceMemberParser)}},Sb.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:eb(yb.prototype.readLineString),Curve:eb(Sb.prototype.readCurve)}},Sb.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:eb(yb.prototype.readPolygon),Surface:eb(Sb.prototype.readSurface)}},Sb.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml":{patches:tb(Sb.prototype.readPatch)}},Sb.prototype.CURVE_PARSERS={"http://www.opengis.net/gml":{segments:tb(Sb.prototype.readSegment)}},Sb.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml":{lowerCorner:eb(Sb.prototype.readFlatPosList),upperCorner:eb(Sb.prototype.readFlatPosList)}},Sb.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml":{PolygonPatch:tb(Sb.prototype.readPolygonPatch)}},Sb.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml":{LineStringSegment:Q_(Sb.prototype.readLineStringSegment)}},yb.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:tb(yb.prototype.readFlatLinearRing),Ring:tb(Sb.prototype.readFlatCurveRing)}},Sb.prototype.writeFeatures,Sb.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{exterior:nb(Sb.prototype.writeRing),interior:nb(Sb.prototype.writeRing)}},Sb.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:nb(db),upperCorner:nb(db)}},Sb.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:nb(Sb.prototype.writeSurfaceOrPolygonMember),polygonMember:nb(Sb.prototype.writeSurfaceOrPolygonMember)}},Sb.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:nb(Sb.prototype.writePointMember)}},Sb.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:nb(Sb.prototype.writeLineStringOrCurveMember),curveMember:nb(Sb.prototype.writeLineStringOrCurveMember)}},Sb.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:nb(Sb.prototype.writeCurveOrLineString),MultiCurve:nb(Sb.prototype.writeMultiCurveOrLineString),Point:nb(Sb.prototype.writePoint),MultiPoint:nb(Sb.prototype.writeMultiPoint),LineString:nb(Sb.prototype.writeCurveOrLineString),MultiLineString:nb(Sb.prototype.writeMultiCurveOrLineString),LinearRing:nb(Sb.prototype.writeLinearRing),Polygon:nb(Sb.prototype.writeSurfaceOrPolygon),MultiPolygon:nb(Sb.prototype.writeMultiSurfaceOrPolygon),Surface:nb(Sb.prototype.writeSurfaceOrPolygon),MultiSurface:nb(Sb.prototype.writeMultiSurfaceOrPolygon),Envelope:nb(Sb.prototype.writeEnvelope)}};const Cb=Sb;class Mb extends Cb{constructor(e){super(e=e||{}),this.schemaLocation=e.schemaLocation?e.schemaLocation:this.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd"}writeGeometryElement(e,t,n){const r=n[n.length-1];n[n.length-1]=Object.assign({multiCurve:!0,multiSurface:!0},r),super.writeGeometryElement(e,t,n)}}Mb.prototype.namespace="http://www.opengis.net/gml/3.2",Mb.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:tb(Cb.prototype.readFlatPos),posList:tb(Cb.prototype.readFlatPosList),coordinates:tb(wb.prototype.readFlatCoordinates)}},Mb.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:Cb.prototype.interiorParser,exterior:Cb.prototype.exteriorParser}},Mb.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:tb(yb.prototype.readPoint),MultiPoint:tb(yb.prototype.readMultiPoint),LineString:tb(yb.prototype.readLineString),MultiLineString:tb(yb.prototype.readMultiLineString),LinearRing:tb(yb.prototype.readLinearRing),Polygon:tb(yb.prototype.readPolygon),MultiPolygon:tb(yb.prototype.readMultiPolygon),Surface:tb(Mb.prototype.readSurface),MultiSurface:tb(Cb.prototype.readMultiSurface),Curve:tb(Mb.prototype.readCurve),MultiCurve:tb(Cb.prototype.readMultiCurve),Envelope:tb(Mb.prototype.readEnvelope)}},Mb.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:eb(Cb.prototype.curveMemberParser),curveMembers:eb(Cb.prototype.curveMemberParser)}},Mb.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:eb(Cb.prototype.surfaceMemberParser),surfaceMembers:eb(Cb.prototype.surfaceMemberParser)}},Mb.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:eb(yb.prototype.readLineString),Curve:eb(Cb.prototype.readCurve)}},Mb.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:eb(yb.prototype.readPolygon),Surface:eb(Cb.prototype.readSurface)}},Mb.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:tb(Cb.prototype.readPatch)}},Mb.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:tb(Cb.prototype.readSegment)}},Mb.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:eb(Cb.prototype.readFlatPosList),upperCorner:eb(Cb.prototype.readFlatPosList)}},Mb.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:tb(Cb.prototype.readPolygonPatch)}},Mb.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:Q_(Cb.prototype.readLineStringSegment)}},Mb.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:eb(yb.prototype.pointMemberParser),pointMembers:eb(yb.prototype.pointMemberParser)}},Mb.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:eb(yb.prototype.lineStringMemberParser),lineStringMembers:eb(yb.prototype.lineStringMemberParser)}},Mb.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:eb(yb.prototype.polygonMemberParser),polygonMembers:eb(yb.prototype.polygonMemberParser)}},Mb.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:eb(yb.prototype.readFlatCoordinatesFromNode)}},Mb.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:eb(yb.prototype.readLineString)}},Mb.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:eb(yb.prototype.readPolygon)}},Mb.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:tb(yb.prototype.readFlatLinearRing),Ring:tb(Mb.prototype.readFlatCurveRing)}},Mb.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:nb(Cb.prototype.writeRing),interior:nb(Cb.prototype.writeRing)}},Mb.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:nb(db),upperCorner:nb(db)}},Mb.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:nb(Cb.prototype.writeSurfaceOrPolygonMember),polygonMember:nb(Cb.prototype.writeSurfaceOrPolygonMember)}},Mb.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:nb(Cb.prototype.writePointMember)}},Mb.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:nb(Cb.prototype.writeLineStringOrCurveMember),curveMember:nb(Cb.prototype.writeLineStringOrCurveMember)}},Mb.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:nb(Cb.prototype.writeCurveOrLineString),MultiCurve:nb(Cb.prototype.writeMultiCurveOrLineString),Point:nb(Mb.prototype.writePoint),MultiPoint:nb(Cb.prototype.writeMultiPoint),LineString:nb(Cb.prototype.writeCurveOrLineString),MultiLineString:nb(Cb.prototype.writeMultiCurveOrLineString),LinearRing:nb(Cb.prototype.writeLinearRing),Polygon:nb(Cb.prototype.writeSurfaceOrPolygon),MultiPolygon:nb(Cb.prototype.writeMultiSurfaceOrPolygon),Surface:nb(Cb.prototype.writeSurfaceOrPolygon),MultiSurface:nb(Cb.prototype.writeMultiSurfaceOrPolygon),Envelope:nb(Cb.prototype.writeEnvelope)}};const kb=Mb;function Tb(e,t,n={}){const r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function Pb(e,t,n={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Rb(e[0])||!Rb(e[1]))throw new Error("coordinates must contain numbers");return Tb({type:"Point",coordinates:e},t,n)}function Ob(e,t,n={}
3){for(const t of e){if(t.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(t[t.length-1].length!==t[0].length)throw new Error("First and last Position are not equivalent.");for(let e=0;e<t[t.length-1].length;e++)if(t[t.length-1][e]!==t[0][e])throw new Error("First and last Position are not equivalent.")}return Tb({type:"Polygon",coordinates:e},t,n)}function Ib(e,t,n={}){return Tb({type:"MultiPolygon",coordinates:e},t,n)}function Rb(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function Ab(e,t,n){if(null!==e)for(var r,i,o,s,a,l,u,c,h=0,d=0,f=e.type,p="FeatureCollection"===f,g="Feature"===f,m=p?e.features.length:1,y=0;y<m;y++){a=(c=!!(u=p?e.features[y].geometry:g?e.geometry:e)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var v=0;v<a;v++){var _=0,b=0;if(null!==(s=c?u.geometries[v]:u)){l=s.coordinates;var w=s.type;switch(h=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(l,d,y,_,b))return!1;d++,_++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(!1===t(l[r],d,y,_,b))return!1;d++,"MultiPoint"===w&&_++}"LineString"===w&&_++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(i=0;i<l[r].length-h;i++){if(!1===t(l[r][i],d,y,_,b))return!1;d++}"MultiLineString"===w&&_++,"Polygon"===w&&b++}"Polygon"===w&&_++;break;case"MultiPolygon":for(r=0;r<l.length;r++){for(b=0,i=0;i<l[r].length;i++){for(o=0;o<l[r][i].length-h;o++){if(!1===t(l[r][i][o],d,y,_,b))return!1;d++}b++}_++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===Ab(s.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Lb(e,t){var n,r,i,o,s,a,l,u,c,h,d=0,f="FeatureCollection"===e.type,p="Feature"===e.type,g=f?e.features.length:1;for(n=0;n<g;n++){for(a=f?e.features[n].geometry:p?e.geometry:e,u=f?e.features[n].properties:p?e.properties:{},c=f?e.features[n].bbox:p?e.bbox:void 0,h=f?e.features[n].id:p?e.id:void 0,s=(l=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<s;i++)if(null!==(o=l?a.geometries[i]:a))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,d,u,c,h))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],d,u,c,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,d,u,c,h))return!1;d++}}Math.PI;var Nb=n(1582);function Db(e,t={}){let n=0,r=0,i=0;return Ab(e,(function(e){n+=e[0],r+=e[1],i++}),!0),Pb([n/i,r/i],t.properties)}function Fb(e,t={}){switch(function(e){return"FeatureCollection"===e.type?"FeatureCollection":"GeometryCollection"===e.type?"GeometryCollection":"Feature"===e.type&&null!==e.geometry?e.geometry.type:e.type}(e)){case"Point":return Pb(function(e){if(!e)throw new Error("coord
3is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return[...e.geometry.coordinates];if("Point"===e.type)return[...e.coordinates]}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return[...e];throw new Error("coord must be GeoJSON Point or an Array of numbers")}(e),t.properties);case"Polygon":var n=[];Ab(e,(function(e){n.push(e)}));var r,i,o,s,a,l,u,c,h=Db(e,{properties:t.properties}),d=h.geometry.coordinates,f=0,p=0,g=0,m=n.map((function(e){return[e[0]-d[0],e[1]-d[1]]}));for(r=0;r<n.length-1;r++)s=(i=m[r])[0],l=i[1],a=(o=m[r+1])[0],g+=c=s*(u=o[1])-a*l,f+=(s+a)*c,p+=(l+u)*c;if(0===g)return h;var y=1/(.5*g*6);return Pb([d[0]+y*f,d[1]+y*p],t.properties);default:var v=function(e,t={}){t.concavity=t.concavity||1/0;const n=[];if(Ab(e,(e=>{n.push([e[0],e[1]])})),!n.length)return null;const r=Nb(n,t.concavity);return r.length>3?Ob([r]):null}(e);return v?Fb(v,{properties:t.properties}):Db(e,{properties:t.properties})}}function jb(e){const t={fill:"#999999",fill_opacity:.5};return Array.from(e).forEach((e=>{const n=e.getAttribute("name");if(n)t[n.replace("-","_")]=e.textContent;else if("se:GraphicFill"===e.tagName){const n=e.getElementsByTagNameNS("*","InlineContent");if(n.length&&n[0].textContent){const e=n[0].textContent.trim().replace(/\n/gm,"");t.fill_image="data:image/png;base64,"+e,Gb(t.fill_image).then((e=>{const n=Ub(e);n&&(t.fill_pattern=n)})).catch((()=>{return e=this,t=void 0,r=function*(){yield Promise.reject(null)},new((n=void 0)||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}));var e,t,n,r}))}}})),t}function Bb(e){const t={identifier:"plus",rotation:0,size:12};if(e)for(const n of e)switch(n.tagName){case"se:Mark":{const e=n.getElementsByTagNameNS("*","WellKnownName");e.length&&(t.identifier=e[0].textContent?e[0].textContent:"plus");break}case"se:Size":t.size=parseFloat(n.textContent);break;case"se:Rotation":t.rotation=parseFloat(n.textContent)}return t}function zb(e){const t={stroke:"#000000",stroke_linejoin:"round",stroke_opacity:.5,stroke_width:1};if(e)for(const n of e)t[n.getAttribute("name").replace("-","_")]=n.textContent;return t}function Gb(e){return new Promise((t=>{const n=new Image;n.src=e,n.onload=()=>{t(n)}}))}function Ub(e){const t=document.createElement("canvas").getContext("2d");return t?t.createPattern(e,"repeat"):null}const Wb=function(e,t){const n=t.split(":").reverse(),r=e.getElementsByTagNameNS("*",n[0]);if(r.length)return r[0].textContent?r[0].textContent:""},qb=function(e){return t=>{if(e){let n="";t.lengthComputable?null!==t.total&&(n=`${Math.round(100*t.loaded/t.total)}%`):n=`${Math.round(t.loaded/1024)} kB`,e(n)}}};function Vb(e){const t=document.createElementNS("https://standaarden.overheid.nl/stop/imop/geo/","geo:featureMember");t.appendChild(e);const n=e.getElementsByTagNameNS("http://www.opengis.net/gml/3.2","*"),r=t.getElementsByTagNameNS("https://standaarden.overheid.nl/stop/imop/geo/","geometrie"),i=function(e){for(const t of Array.from(e))if(!["gml:boundedBy"].includes(t.tagName))return t}(n);return r.length&&void 0!==i&&r[0].appendChild(i),t}function Yb(e,t){const n={adres:"Adres",buurt:"Buurt",cirkel:"Cirkel",gemeente:"Gemeente",hectometerpaal:"Hectometerpaal",lijn:"Lijn",perceel:"Perceel",postcode:"Postcode",provincie:"Provincie",punt:"Punt",representatie:"Representatiepunt",vlak:"Vlak",waterschap:"Waterschap",weg:"Weg",wijk:"Wijk",woonplaats:"Woonplaats"};let r=1,i=`${n[t]} ${r}`;const o=e.filter((e=>e.type===t)).map((e=>e.weergavenaam));if(o.length)for(;-1!==o.indexOf(i);)i=`${n[t]} ${r++}`;return i}function Hb(e,t,n){const r=Wb(e,"kwalitatieveNormwaarde"),i=Wb(e,"kwantitatieveNormwaarde"),o=Wb(e,"groepID");return void 0!==i?{label:`${i} ${t}`,value:parseFloat(i)}:void 0!==r?{label:void 0!==n&&void 0!==n.title?n.title:r,value:r}:void 0!==o?{label:void 0!==n&&void 0!==n.title?n.title:o,value:o}:void 0}function $b(e,t){const n=Hb(e);let r;
3return t.items&&t.items.forEach((e=>{(n&&void 0!==n.value&&function(e,t){const n=[];let r,i;const o="number"==typeof e?e:parseFloat(e);for(const s of t)if(r=s.getElementsByTagNameNS("*","PropertyIsEqualTo"),r.length&&(i=Wb(r[0],"Literal"),n.push(e==i)),r=s.getElementsByTagNameNS("*","PropertyIsLessThanOrEqualTo"),r.length&&(i=Wb(r[0],"Literal"),i&&n.push(parseFloat(i)>=o)),r=s.getElementsByTagNameNS("*","PropertyIsLessThan"),r.length&&(i=Wb(r[0],"Literal"),i&&n.push(parseFloat(i)>o)),r=s.getElementsByTagNameNS("*","PropertyIsGreaterThanOrEqualTo"),r.length&&(i=Wb(r[0],"Literal"),i&&n.push(parseFloat(i)<=o)),r=s.getElementsByTagNameNS("*","PropertyIsGreaterThan"),r.length&&(i=Wb(r[0],"Literal"),i&&n.push(parseFloat(i)<o)),r=s.getElementsByTagNameNS("*","PropertyIsBetween"),r.length){const e=s.getElementsByTagNameNS("*","LowerBoundary"),t=s.getElementsByTagNameNS("*","UpperBoundary");if(e.length&&t.length){const r=Wb(e[0],"Literal"),i=Wb(t[0],"Literal");r&&i&&n.push(parseFloat(r)<=o&&o<=parseFloat(i))}}return n.includes(!0)&&!n.includes(!1)}(n.value,e.filter)||t.items&&1===t.items.length)&&(r=e)})),r}const Kb="4.0.2",Xb=e=>{const t=Object.prototype.toString.call(e).slice(1,-1).split(" ");return t&&t[1].toLowerCase()},Zb={isEmpty:e=>{var t;const n=Xb(e);return"string"===n?!(null===(t=(e=>{if("string"===Xb(e))return e.replace(/(^[\s\n\t]+|[\s\n\t]+$)/g,"")})(e))||void 0===t?void 0:t.length):"array"===n?!(null==e?void 0:e.length):"object"===n?!Object.keys(e).length:"number"===n?Number.isNaN(e):"boolean"!==n},number:e=>!Zb.isEmpty(e)&&("number"===Xb(e)&&!Number.isNaN(e)||"string"===Xb(e)&&(!e.startsWith("00")&&!e.startsWith("-00")&&/^[-]?[\d]*[.]?[\d]*([eE][-+]?[\d]+)?$/.test(e))),startAndEndsWith:(e,t={firstCharacter:[],lastCharacter:[]})=>!Zb.isEmpty(e)&&(t.firstCharacter.includes(e.slice(0,1))&&t.lastCharacter.includes(e.slice(-1))),isJSONString:e=>{if(Zb.isEmpty(e))return!1;const t="string"===Xb(e)?e.trim():e;try{return!!JSON.parse(t)}catch(e){return!1}}},Jb=Zb,{appEnvironment:Qb}=window,ew=({key:e,asString:t=!1})=>{var n;if(Jb.isEmpty(e))return null;if("NODE_ENV"===e)return null!=="production"?"production":null;const r=!!Qb,i=`REACT_APP_${e}`,o="API_ENV"===e?window.appEnvironment.API_ENV:"API_URL"===e?window.appEnvironment.API_URL:null,s=r?null!=o?o:{NODE_ENV:"production",PUBLIC_URL:".",REACT_APP_API_URL:"http://repository.overheid.nl/",REACT_APP_API_ENV:"tst"}[i]:null!==(n={NODE_ENV:"production",PUBLIC_URL:".",REACT_APP_API_URL:"http://repository.overheid.nl/",REACT_APP_API_ENV:"tst"}[i])&&void 0!==n?n:null;return Jb.isJSONString(s)&&!t?JSON.parse(s):s};var tw=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,nw=Math.ceil,rw=Math.floor,iw="[BigNumber Error] ",ow=iw+"Number primitive has more than 15 significant digits: ",sw=1e14,aw=14,lw=9007199254740991,uw=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],cw=1e7,hw=1e9;function dw(e){var t=0|e;return e>0||e===t?t:t-1}function fw(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=aw-t.length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function pw(e,t){var n,r,i=e.c,o=t.c,s=e.s,a=t.s,l=e.e,u=t.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;
vendor: 18,655 bytes, line 3
3if(s!=a)return s;if(n=s<0,r=l==u,!i||!o)return r?0:!i^n?1:-1;if(!r)return l>u^n?1:-1;for(a=(l=i.length)<(u=o.length)?l:u,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return l==u?0:l>u^n?1:-1}function gw(e,t,n,r){if(e<t||e>n||e!==rw(e))throw Error(iw+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function mw(e){var t=e.c.length-1;return dw(e.e/aw)==t&&e.c[t]%2!=0}function yw(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function vw(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var _w=function e(t){var n,r,i,o,s,a,l,u,c,h,d=M.prototype={constructor:M,toString:null,valueOf:null},f=new M(1),p=20,g=4,m=-7,y=21,v=-1e7,_=1e7,b=!1,w=1,x=0,E={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"Â ",suffix:""},S="0123456789abcdefghijklmnopqrstuvwxyz",C=!0;function M(e,t){var n,o,s,a,l,u,c,h,d=this;if(!(d instanceof M))return new M(e,t);if(null==t){if(e&&!0===e._isBigNumber)return d.s=e.s,void(!e.c||e.e>_?d.c=d.e=null:e.e<v?d.c=[d.e=0]:(d.e=e.e,d.c=e.c.slice()));if((u="number"==typeof e)&&0*e==0){if(d.s=1/e<0?(e=-e,-1):1,e===~~e){for(a=0,l=e;l>=10;l/=10,a++);return void(a>_?d.c=d.e=null:(d.e=a,d.c=[e]))}h=String(e)}else{if(!tw.test(h=String(e)))return i(d,h,u);d.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(a=h.indexOf("."))>-1&&(h=h.replace(".","")),(l=h.search(/e/i))>0?(a<0&&(a=l),a+=+h.slice(l+1),h=h.substring(0,l)):a<0&&(a=h.length)}else{if(gw(t,2,S.length,"Base"),10==t&&C)return O(d=new M(e),p+d.e+1,g);if(h=String(e),u="number"==typeof e){if(0*e!=0)return i(d,h,u,t);if(d.s=1/e<0?(h=h.slice(1),-1):1,M.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(ow+e)}else d.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(n=S.slice(0,t),a=l=0,c=h.length;l<c;l++)if(n.indexOf(o=h.charAt(l))<0){if("."==o){if(l>a){a=c;continue}}else if(!s&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){s=!0,l=-1,a=0;continue}return i(d,String(e),u,t)}u=!1,(a=(h=r(h,t,10,d.s)).indexOf("."))>-1?h=h.replace(".",""):a=h.length}for(l=0;48===h.charCodeAt(l);l++);for(c=h.length;48===h.charCodeAt(--c););if(h=h.slice(l,++c)){if(c-=l,u&&M.DEBUG&&c>15&&(e>lw||e!==rw(e)))throw Error(ow+d.s*e);if((a=a-l-1)>_)d.c=d.e=null;else if(a<v)d.c=[d.e=0];else{if(d.e=a,d.c=[],l=(a+1)%aw,a<0&&(l+=aw),l<c){for(l&&d.c.push(+h.slice(0,l)),c-=aw;l<c;)d.c.push(+h.slice(l,l+=aw));l=aw-(h=h.slice(l)).length}else l-=c;for(;l--;h+="0");d.c.push(+h)}}else d.c=[d.e=0]}function k(e,t,n,r){var i,o,s,a,l;if(null==n?n=g:gw(n,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)l=fw(e.c),l=1==r||2==r&&(s<=m||s>=y)?yw(l,s):vw(l,s,"0");else if(o=(e=O(new M(e),t,n)).e,a=(l=fw(e.c)).length,1==r||2==r&&(t<=o||o<=m)){for(;a<t;l+="0",a++);l=yw(l,o)}else if(t-=s,l=vw(l,o,"0"),o+1>a){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-a)>0)for(o+1==a&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function T(e,t){for(var n,r,i=1,o=new M(e[0]);i<e.length;i++)(!(r=new M(e[i])).s||(n=pw(o,r))===t||0===n&&o.s===t)&&(o=r);return o}function P(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*aw-1)>_?e.c=e.e=null:n<v?e.c=[e.e=0]:(e.e=n,e.c=t),e}function O(e,t,n,r){var i,o,s,a,l,u,c,h=e.c,d=uw;if(h){e:{for(i=1,a=h[0];a>=10;a/=10,i++);if((o=t-i)<0)o+=aw,s=t,l=h[u=0],c=rw(l/d[i-s-1]%10);else if((u=nw((o+1)/aw))>=h.length){if(!r)break e;for(;h.length<=u;h.push(0));l=c=0,i=1,s=(o%=aw)-aw+1}else{for(l=a=h[u],i=1;a>=10;a/=10,i++);c=(s=(o%=aw)-aw+i)<0?0:rw(l/d[i-s-1]%10)}if(r=r||t<0||null!=h[u+1]||(s<0?l:l%d[i-s-1]),r=n<4?(c||r)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||r||6==n&&(o>0?s>0?l/d[i-s]:0:h[u-1])%10&1||n==(e.s<0?8:7)),t<1||!h[0])return h.length=0,r?(t-=e.e+1,h[0]=d[(aw-t%aw)%aw],e.e=-t||0):h[0]=e.e=0,e;if(0==o?(h.length=u,a=1,u--):(h.length=u+1,a=d[aw-o],h[u]=s>0?rw(l/d[i-s]%d[s])*a:0),r)for(;;){if(0==u){for(o=1,s=h[0];s>=10;s/=10,o++);for(s=h[0]+=a,a=1;s>=10;s/=10,a++);o!=a&&(e.e++,h[0]==sw&&(h[0]=1));break}if(h[u]+=a,h[u]!=sw)break;h[u--]=0,a=1}for(o=h.length;0===h[--o];h.pop());}e.e>_?e.c=e.e=null:e.e<v&&(e.c=[e.e=0])}return e}function I(e){var t,n=e.e;return null===n?e.toString():(t=fw(e.c),t=n<=m||n>=y?yw(t,n):vw(t,n,"0"),e.s<0?"-"+t:t)}return M.clone=e,M.ROUND_UP=0,M.ROUND_DOWN=1,M.ROUND_CEIL=2,M.ROUND_FLOOR=3,M.ROUND_HALF_UP=4,M.ROUND_HALF_DOWN=5,M.ROUND_HALF_EVEN=6,M.ROUND_HALF_CEIL=7,M.ROUND_HALF_FLOOR=8,M.EUCLID=9,M.config=M.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(iw+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(gw(n=e[t],0,hw,t),p=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(gw(n=e[t],0,8,t),g=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(gw(n[0],-hw,0,t),gw(n[1],0,hw,t),m=n[0],y=n[1]):(gw(n,-hw,hw,t),m=-(y=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)gw(n[0],-hw,-1,t),gw(n[1],1,hw,t),v=n[0],_=n[1];else{if(gw(n,-hw,hw,t),!n)throw Error(iw+t+" cannot be zero: "+n);v=-(_=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(iw+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw b=!n,Error(iw+"crypto unavailable");b=n}else b=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(gw(n=e[t],0,9,t),w=n),e.hasOwnProperty(t="POW_PRECISION")&&(gw(n=e[t],0,hw,t),x=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(iw+t+" not an object: "+n);E=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(iw+t+" invalid: "+n);C="0123456789"==n.slice(0,10),S=n}}return{DECIMAL_PLACES:p,ROUNDING_MODE:g,EXPONENTIAL_AT:[m,y],RANGE:[v,_],CRYPTO:b,MODULO_MODE:w,POW_PRECISION:x,FORMAT:E,ALPHABET:S}},M.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!M.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-hw&&i<=hw&&i===rw(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%aw)<1&&(t+=aw),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=sw||n!==rw(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(iw+"Invalid BigNumber: "+e)},M.maximum=M.max=function(){return T(arguments,-1)},M.minimum=M.min=function(){return T(arguments,1)},M.random=(o=9007199254740992,s=Math.random()*o&2097151?function(){return rw(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,o,a=0,l=[],u=new M(f);if(null==e?e=p:gw(e,0,hw),i=nw(e/aw),b)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));a<i;)(o=131072*t[a]+(t[a+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[a]=n[0],t[a+1]=n[1]):(l.push(o%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw b=!1,Error(iw+"crypto unavailable");for(t=crypto.randomBytes(i*=7);a<i;)(o=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(l.push(o%1e14),a+=7);a=i/7}if(!b)for(;a<i;)(o=s())<9e15&&(l[a++]=o%1e14);for(i=l[--a],e%=aw,i&&e&&(o=uw[aw-e],l[a]=rw(i/o)*o);0===l[a];l.pop(),a--);if(a<0)l=[r=0];else{for(r=-1;0===l[0];l.splice(0,1),r-=aw);for(a=1,o=l[0];o>=10;o/=10,a++);a<aw&&(r-=aw-a)}return u.e=r,u.c=l,u}),M.sum=function(){for(var e=1,t=arguments,n=new M(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){var e="0123456789";function t(e,t,n,r){for(var i,o,s=[0],a=0,l=e.length;a<l;){for(o=s.length;o--;s[o]*=t);for(s[0]+=r.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var l,u,c,h,d,f,m,y,v=r.indexOf("."),_=p,b=g;for(v>=0&&(h=x,x=0,r=r.replace(".",""),f=(y=new M(i)).pow(r.length-v),x=h,y.c=t(vw(fw(f.c),f.e,"0"),10,o,e),y.e=y.c.length),c=h=(m=t(r,i,o,a?(l=S,e):(l=e,S))).length;0==m[--h];m.pop());if(!m[0])return l.charAt(0);if(v<0?--c:(f.c=m,f.e=c,f.s=s,m=(f=n(f,y,_,b,o)).c,d=f.r,c=f.e),v=m[u=c+_+1],h=o/2,d=d||u<0||null!=m[u+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>h||v==h&&(4==b||d||6==b&&1&m[u-1]||b==(f.s<0?8:7)),u<1||!m[0])r=d?vw(l.charAt(1),-_,l.charAt(0)):l.charAt(0);else{if(m.length=u,d)for(--o;++m[--u]>o;)m[u]=0,u||(++c,m=[1].concat(m));for(h=m.length;!m[--h];);for(v=0,r="";v<=h;r+=l.charAt(m[v++]));r=vw(r,c,l.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,o,s,a=0,l=e.length,u=t%cw,c=t/cw|0;for(e=e.slice();l--;)a=((i=u*(o=e[l]%cw)+(r=c*o+(s=e[l]/cw|0)*u)%cw*cw+a)/n|0)+(r/cw|0)+c*s,e[l]=i%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,o,s,a){var l,u,c,h,d,f,p,g,m,y,v,_,b,w,x,E,S,C=r.s==i.s?1:-1,k=r.c,T=i.c;if(!(k&&k[0]&&T&&T[0]))return new M(r.s&&i.s&&(k?!T||k[0]!=T[0]:T)?k&&0==k[0]||!T?0*C:C/0:NaN);for(m=(g=new M(C)).c=[],C=o+(u=r.e-i.e)+1,a||(a=sw,u=dw(r.e/aw)-dw(i.e/aw),C=C/aw|0),c=0;T[c]==(k[c]||0);c++);if(T[c]>(k[c]||0)&&u--,C<0)m.push(1),h=!0;else{for(w=k.length,E=T.length,c=0,C+=2,(d=rw(a/(T[0]+1)))>1&&(T=e(T,d,a),k=e(k,d,a),E=T.length,w=k.length),b=E,v=(y=k.slice(0,E)).length;v<E;y[v++]=0);S=T.slice(),S=[0].concat(S),x=T[0],T[1]>=a/2&&x++;do{if(d=0,(l=t(T,y,E,v))<0){if(_=y[0],E!=v&&(_=_*a+(y[1]||0)),(d=rw(_/x))>1)for(d>=a&&(d=a-1),p=(f=e(T,d,a)).length,v=y.length;1==t(f,y,p,v);)d--,n(f,E<p?S:T,p,a),p=f.length,l=1;else 0==d&&(l=d=1),p=(f=T.slice()).length;if(p<v&&(f=[0].concat(f)),n(y,f,v,a),v=y.length,-1==l)for(;t(T,y,E,v)<1;)d++,n(y,E<v?S:T,v,a),v=y.length}else 0===l&&(d++,y=[0]);m[c++]=d,y[0]?y[v++]=k[b]||0:(y=[k[b]],v=1)}while((b++<w||null!=y[0])&&C--);h=null!=y[0],m[0]||m.splice(0,1)}if(a==sw){for(c=1,C=m[0];C>=10;C/=10,c++);O(g,o+(g.e=c+u*aw-1)+1,s,h)}else g.e=u,g.r=+h;return g}}(),a=/^(-?)0([xbo])(?=\w[\w.]*$)/i,l=/^([^.]+)\.$/,u=/^\.([^.]+)$/,c=/^-?(Infinity|NaN)$/,h=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(e,t,n,r){var i,o=n?t:t.replace(h,"");if(c.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(a,(function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t})),r&&(i=r,o=o.replace(l,"$1").replace(u,"0.$1")),t!=o))return new M(o,i);if(M.DEBUG)throw Error(iw+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},d.absoluteValue=d.abs=function(){var e=new M(this);return e.s<0&&(e.s=1),e},d.comparedTo=function(e,t){return pw(this,new M(e,t))},d.decimalPlaces=d.dp=function(e,t){var n,r,i,o=this;if(null!=e)return gw(e,0,hw),null==t?t=g:gw(t,0,8),O(new M(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-dw(this.e/aw))*aw,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},d.dividedBy=d.div=function(e,t){return n(this,new M(e,t),p,g)},d.dividedToIntegerBy=d.idiv=function(e,t){return n(this,new M(e,t),0,1)},d.exponentiatedBy=d.pow=function(e,t){var n,r,i,o,s,a,l,u,c=this;if((e=new M(e)).c&&!e.isInteger())throw Error(iw+"Exponent not an integer: "+I(e));if(null!=t&&(t=new M(t)),s=e.e>14,!c.c||!c.c[0]||1==c.c[0]&&!c.e&&1==c.c.length||!e.c||!e.c[0])return u=new M(Math.pow(+I(c),s?e.s*(2-mw(e)):+I(e))),t?u.mod(t):u;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new M(NaN);(r=!a&&c.isInteger()&&t.isInteger())&&(c=c.mod(t))}else{if(e.e>9&&(c.e>0||c.e<-1||(0==c.e?c.c[0]>1||s&&c.c[1]>=24e7:c.c[0]<8e13||s&&c.c[0]<=9999975e7)))return o=c.s<0&&mw(e)?-0:0,c.e>-1&&(o=1/o),new M(a?1/o:o);x&&(o=nw(x/aw+2))}for(s?(n=new M(.5),a&&(e.s=1),l=mw(e)):l=(i=Math.abs(+I(e)))%2,u=new M(f);;){if(l){if(!(u=u.times(c)).c)break;o?u.c.length>o&&(u.c.length=o):r&&(u=u.mod(t))}if(i){if(0===(i=rw(i/2)))break;l=i%2}else if(O(e=e.times(n),e.e+1,1),e.e>14)l=mw(e);else{if(0==(i=+I(e)))break;l=i%2}c=c.times(c),o?c.c&&c.c.length>o&&(c.c.length=o):r&&(c=c.mod(t))}return r?u:(a&&(u=f.div(u)),t?u.mod(t):o?O(u,x,g,void 0):u)},d.integerValue=function(e){var t=new M(this);return null==e?e=g:gw(e,0,8),O(t,t.e+1,e)},d.isEqualTo=d.eq=function(e,t){return 0===pw(this,new M(e,t))},d.isFinite=function(){return!!this.c},d.isGreaterThan=d.gt=function(e,t){return pw(this,new M(e,t))>0},d.isGreaterThanOrEqualTo=d.gte=function(e,t){return 1===(t=pw(this,new M(e,t)))||0===t},d.isInteger=function(){return!!this.c&&dw(this.e/aw)>this.c.length-2},d.isLessThan=d.lt=function(e,t){return pw(this,new M(e,t))<0},d.isLessThanOrEqualTo=d.lte=function(e,t){return-1===(t=pw(this,new M(e,t)))||0===t},d.isNaN=function(){return!this.s},d.isNegative=function(){return this.s<0},d.isPositive=function(){return this.s>0},d.isZero=function(){return!!this.c&&0==this.c[0]},d.minus=function(e,t){var n,r,i,o,s=this,a=s.s;if(t=(e=new M(e,t)).s,!a||!t)return new M(NaN);if(a!=t)return e.s=-t,s.plus(e);var l=s.e/aw,u=e.e/aw,c=s.c,h=e.c;if(!l||!u){if(!c||!h)return c?(e.s=-t,e):new M(h?s:NaN);if(!c[0]||!h[0])return h[0]?(e.s=-t,e):new M(c[0]?s:3==g?-0:0)}if(l=dw(l),u=dw(u),c=c.slice(),a=l-u){for((o=a<0)?(a=-a,i=c):(u=l,i=h),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=c.length)<(t=h.length))?a:t,a=t=0;t<r;t++)if(c[t]!=h[t]){o=c[t]<h[t];break}if(o&&(i=c,c=h,h=i,e.s=-e.s),(t=(r=h.length)-(n=c.length))>0)for(;t--;c[n++]=0);for(t=sw-1;r>a;){if(c[--r]<h[r]){for(n=r;n&&!c[--n];c[n]=t);--c[n],c[r]+=sw}c[r]-=h[r]}for(;0==c[0];c.splice(0,1),--u);return c[0]?P(e,c,u):(e.s=3==g?-1:1,e.c=[e.e=0],e)},d.modulo=d.mod=function(e,t){var r,i,o=this;return e=new M(e,t),!o.c||!e.s||e.c&&!e.c[0]?new M(NaN):!e.c||o.c&&!o.c[0]?new M(o):(9==w?(i=e.s,e.s=1,r=n(o,e,0,3),e.s=i,r.s*=i):r=n(o,e,0,w),(e=o.minus(r.times(e))).c[0]||1!=w||(e.s=o.s),e)},d.multipliedBy=d.times=function(e,t){var n,r,i,o,s,a,l,u,c,h,d,f,p,g,m,y=this,v=y.c,_=(e=new M(e,t)).c;if(!(v&&_&&v[0]&&_[0]))return!y.s||!e.s||v&&!v[0]&&!_||_&&!_[0]&&!v?e.c=e.e=e.s=null:(e.s*=y.s,v&&_?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=dw(y.e/aw)+dw(e.e/aw),e.s*=y.s,(l=v.length)<(h=_.length)&&(p=v,v=_,_=p,i=l,l=h,h=i),i=l+h,p=[];i--;p.push(0));for(g=sw,m=cw,i=h;--i>=0;){for(n=0,d=_[i]%m,f=_[i]/m|0,o=i+(s=l);o>i;)n=((u=d*(u=v[--s]%m)+(a=f*u+(c=v[s]/m|0)*d)%m*m+p[o]+n)/g|0)+(a/m|0)+f*c,p[o--]=u%g;p[o]=n}return n?++r:p.splice(0,1),P(e,p,r)},d.negated=function(){var e=new M(this);return e.s=-e.s||null,e},d.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new M(e,t)).s,!i||!t)return new M(NaN);if(i!=t)return e.s=-t,r.minus(e);var o=r.e/aw,s=e.e/aw,a=r.c,l=e.c;if(!o||!s){if(!a||!l)return new M(i/0);if(!a[0]||!l[0])return l[0]?e:new M(a[0]?r:0*i)}if(o=dw(o),s=dw(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=l):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(t=l.length)<0&&(n=l,l=a,a=n,t=i),i=0;t;)i=(a[--t]=a[t]+l[t]+i)/sw|0,a[t]=sw===a[t]?0:a[t]%sw;return i&&(a=[i].concat(a),++s),P(e,a,s)},d.precision=d.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return gw(e,1,hw),null==t?t=g:gw(t,0,8),O(new M(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*aw+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},d.shiftedBy=function(e){return gw(e,-9007199254740991,lw),this.times("1e"+e)},d.squareRoot=d.sqrt=function(){var e,t,r,i,o,s=this,a=s.c,l=s.s,u=s.e,c=p+4,h=new M("0.5");if(1!==l||!a||!a[0])return new M(!l||l<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(l=Math.sqrt(+I(s)))||l==1/0?(((t=fw(a)).length+u)%2==0&&(t+="0"),l=Math.sqrt(+t),u=dw((u+1)/2)-(u<0||u%2),r=new M(t=l==1/0?"5e"+u:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new M(l+""),r.c[0])for((l=(u=r.e)+c)<3&&(l=0);;)if(o=r,r=h.times(o.plus(n(s,o,c,1))),fw(o.c).slice(0,l)===(t=fw(r.c)).slice(0,l)){if(r.e<u&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(O(r,r.e+p+2,1),e=!r.times(r).eq(s));break}if(!i&&(O(o,o.e+p+2,0),o.times(o).eq(s))){r=o;break}c+=4,l+=4,i=1}return O(r,r.e+p+1,g,e)},d.toExponential=function(e,t){return null!=e&&(gw(e,0,hw),e++),k(this,e,t,1)},d.toFixed=function(e,t){return null!=e&&(gw(e,0,hw),e=e+this.e+1),k(this,e,t)},d.toFormat=function(e,t,n){var r,i=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=E;else if("object"!=typeof n)throw Error(iw+"Argument not an object: "+n);if(r=i.toFixed(e,t),i.c){var o,s=r.split("."),a=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",c=s[0],h=s[1],d=i.s<0,f=d?c.slice(1):c,p=f.length;if(l&&(o=a,a=l,l=o,p-=o),a>0&&p>0){for(o=p%a||a,c=f.substr(0,o);o<p;o+=a)c+=u+f.substr(o,a);l>0&&(c+=u+f.slice(o)),d&&(c="-"+c)}r=h?c+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):c}return(n.prefix||"")+r+(n.suffix||"")},d.toFraction=function(e){var t,r,i,o,s,a,l,u,c,h,d,p,m=this,y=m.c;if(null!=e&&(!(l=new M(e)).isInteger()&&(l.c||1!==l.s)||l.lt(f)))throw Error(iw+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+I(l));if(!y)return new M(m);for(t=new M(f),c=r=new M(f),i=u=new M(f),p=fw(y),s=t.e=p.length-m.e-1,t.c[0]=uw[(a=s%aw)<0?aw+a:a],e=!e||l.comparedTo(t)>0?s>0?t:c:l,a=_,_=1/0,l=new M(p),u.c[0]=0;h=n(l,t,0,1),1!=(o=r.plus(h.times(i))).comparedTo(e);)r=i,i=o,c=u.plus(h.times(o=c)),u=o,t=l.minus(h.times(o=t)),l=o;return o=n(e.minus(r),i,0,1),u=u.plus(o.times(c)),r=r.plus(o.times(i)),u.s=c.s=m.s,d=n(c,i,s*=2,g).minus(m).abs().comparedTo(n(u,r,s,g).minus(m).abs())<1?[c,i]:[u,r],_=a,d},d.toNumber=function(){return+I(this)},d.toPrecision=function(e,t){return null!=e&&gw(e,1,hw),k(this,e,t,2)},d.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=m||o>=y?yw(fw(n.c),o):vw(fw(n.c),o,"0"):10===e&&C?t=vw(fw((n=O(new M(n),p+o+1,g)).c),n.e,"0"):(gw(e,2,S.length,"Base"),t=r(vw(fw(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},d.valueOf=d.toJSON=function(){return I(this)},d._isBigNumber=!0,d[Symbol.toStringTag]="BigNumber",d[Symbol.for("nodejs.util.inspect.custom")]=d.valueOf,null!=t&&M.set(t),M}();const bw=_w;var ww=class{key;left=null;right=null;constructor(e){this.key=e}},xw=class extends ww{constructor(e){super(e)}},Ew=class{size=0;modificationCount=0;splayCount=0;splay(e){const t=this.root;if(null==t)return this.compare(e,e),-1;let n=null,r=null,i=null,o=null,s=t;const a=this.compare;let l;for(;;)if(l=a(s.key,e),l>0){let t=s.left;if(null==t)break;if(l=a(t.key,e),l>0&&(s.left=t.right,t.right=s,s=t,t=s.left,null==t))break;null==n?r=s:n.left=s,n=s,s=t}else{if(!(l<0))break;{let t=s.right;if(null==t)break;if(l=a(t.key,e),l<0&&(s.right=t.left,t.left=s,s=t,t=s.right,null==t))break;null==i?o=s:i.right=s,i=s,s=t}}
3return null!=i&&(i.right=s.left,s.left=o),null!=n&&(n.left=s.right,s.right=r),this.root!==s&&(this.root=s,this.splayCount++),l}splayMin(e){let t=e,n=t.left;for(;null!=n;){const e=n;t.left=e.right,e.right=t,t=e,n=t.left}return t}splayMax(e){let t=e,n=t.right;for(;null!=n;){const e=n;t.right=e.left,e.left=t,t=e,n=t.right}return t}_delete(e){if(null==this.root)return null;if(0!=this.splay(e))return null;let t=this.root;const n=t,r=t.left;if(this.size--,null==r)this.root=t.right;else{const e=t.right;t=this.splayMax(r),t.right=e,this.root=t}return this.modificationCount++,n}addNewRoot(e,t){this.size++,this.modificationCount++;const n=this.root;null!=n?(t<0?(e.left=n,e.right=n.right,n.right=null):(e.right=n,e.left=n.left,n.left=null),this.root=e):this.root=e}_first(){const e=this.root;return null==e?null:(this.root=this.splayMin(e),this.root)}_last(){const e=this.root;return null==e?null:(this.root=this.splayMax(e),this.root)}clear(){this.root=null,this.size=0,this.modificationCount++}has(e){return this.validKey(e)&&0==this.splay(e)}defaultCompare(){return(e,t)=>e<t?-1:e>t?1:0}wrap(){return{getRoot:()=>this.root,setRoot:e=>{this.root=e},getSize:()=>this.size,getModificationCount:()=>this.modificationCount,getSplayCount:()=>this.splayCount,setSplayCount:e=>{this.splayCount=e},splay:e=>this.splay(e),has:e=>this.has(e)}}},Sw=(Symbol.iterator,Symbol.toStringTag,class e extends Ew{root=null;compare;validKey;constructor(e,t){super(),this.compare=e??this.defaultCompare(),this.validKey=t??(e=>null!=e&&null!=e)}delete(e){return!!this.validKey(e)&&null!=this._delete(e)}deleteAll(e){for(const t of e)this.delete(t)}forEach(e){const t=this[Symbol.iterator]();let n;for(;n=t.next(),!n.done;)e(n.value,n.value,this)}add(e){const t=this.splay(e);return 0!=t&&this.addNewRoot(new xw(e),t),this}addAndReturn(e){const t=this.splay(e);return 0!=t&&this.addNewRoot(new xw(e),t),this.root.key}addAll(e){for(const t of e)this.add(t)}isEmpty(){return null==this.root}isNotEmpty(){return null!=this.root}single(){if(0==this.size)throw"Bad state: No element";if(this.size>1)throw"Bad state: Too many element";return this.root.key}first(){if(0==this.size)throw"Bad state: No element";return this._first().key}last(){if(0==this.size)throw"Bad state: No element";return this._last().key}lastBefore(e){if(null==e)throw"Invalid arguments(s)";if(null==this.root)return null;if(this.splay(e)<0)return this.root.key;let t=this.root.left;if(null==t)return null;let n=t.right;for(;null!=n;)t=n,n=t.right;return t.key}firstAfter(e){if(null==e)throw"Invalid arguments(s)";if(null==this.root)return null;if(this.splay(e)>0)return this.root.key;let t=this.root.right;if(null==t)return null;let n=t.left;for(;null!=n;)t=n,n=t.left;return t.key}retainAll(t){const n=new e(this.compare,this.validKey),r=this.modificationCount;for(const e of t){if(r!=this.modificationCount)throw"Concurrent modification during iteration.";this.validKey(e)&&0==this.splay(e)&&n.add(this.root.key)}n.size!=this.size&&(this.root=n.root,this.size=n.size,this.modificationCount++)}lookup(e){return this.validKey(e)?0!=this.splay(e)?null:this.root.key:null}intersection(t){const n=new e(this.compare,this.validKey);for(const e of this)t.has(e)&&n.add(e);return n}difference(t){const n=new e(this.compare,this.validKey);for(const e of this)t.has(e)||n.add(e);return n}union(e){const t=this.clone();return t.addAll(e),t}clone(){const t=new e(this.compare,this.validKey);return t.size=this.size,t.root=this.copyNode(this.root),t}copyNode(e){if(null==e)return null;const t=new xw(e.key);return function e(t,n){let r,i;do{if(r=t.left,i=t.right,null!=r){const t=new xw(r.key);n.left=t,e(r,t)}if(null!=i){const e=new xw(i.key);n.right=e,t=i,n=e}}while(null!=i)}(e,t),t}toSet(){return this.clone()}entries(){return new kw(this.wrap())}keys(){return this[Symbol.iterator]()}values(){return this[Symbol.iterator]()}[Symbol.iterator](){return new Mw(this.wrap())}[Symbol.toStringTag]="[object Set]"}),Cw=class{tree;path=new Array;modificationCount=null;splayCount;constructor(e){this.tree=e,this.splayCount=e.getSplayCount()}[Symbol.iterator](){return this}next(){return this.moveNext()?{done:!1,value:this.current()}:{done:!0,value:null}}current(){if(!this.path.length)return null;const e=this.path[this.path.length-1];return this.getValue(e)}rebuildPath(e){this.path.splice(0,this.path.length),this.tree.splay(e),this.path.push(this.tree.getRoot()),this.splayCount=this.tree.getSplayCount()}findLeftMostDescendent(e){for(;null!=e;)this.path.push(e),e=e.left}moveNext(){if(this.modificationCount!=this.tree.getModificationCount()){if(null==this.modificationCount){this.modificationCount=this.tree.getModificationCount();let e=this.tree.getRoot();for(;null!=e;)this.path.push(e),e=e.left;return this.path.length>0}throw"Concurrent modification during iteration."}if(!this.path.length)return!1;this.splayCount!=this.tree.getSplayCount()&&this.rebuildPath(this.path[this.path.length-1].key);let e=this.path[this.path.length-1],t=e.right;if(null!=t){for(;null!=t;)this.path.push(t),t=t.left;return!0}for(this.path.pop();this.path.length&&this.path[this.path.length-1].right===e;)e=this.path.pop();return this.path.length>0}},Mw=class extends Cw{getValue(e){return e.key}},kw=class extends Cw{getValue(e){return[e.key,e.key]}},Tw=e=>()=>e,Pw=e=>{const t=e?(t,n)=>n.minus(t).abs().isLessThanOrEqualTo(e):Tw(!1);return(e,n)=>t(e,n)?0:e.comparedTo(n)};function Ow(e){const t=e?(t,n,r,i,o)=>t.exponentiatedBy(2).isLessThanOrEqualTo(i.minus(n).exponentiatedBy(2).plus(o.minus(r).exponentiatedBy(2)).times(e)):Tw(!1);return(e,n,r)=>{const i=e.x,o=e.y,s=r.x,a=r.y,l=o.minus(a).times(n.x.minus(s)).minus(i.minus(s).times(n.y.minus(a)));return t(l,i,o,s,a)?0:l.comparedTo(0)}}var Iw=e=>
3e,Rw=e=>{if(e){const t=new Sw(Pw(e)),n=new Sw(Pw(e)),r=(e,t)=>t.addAndReturn(e),i=e=>({x:r(e.x,t),y:r(e.y,n)});return i({x:new bw(0),y:new bw(0)}),i}return Iw},Aw=e=>({set:e=>{Lw=Aw(e)},reset:()=>Aw(e),compare:Pw(e),snap:Rw(e),orient:Ow(e)}),Lw=Aw(),Nw=(e,t)=>e.ll.x.isLessThanOrEqualTo(t.x)&&t.x.isLessThanOrEqualTo(e.ur.x)&&e.ll.y.isLessThanOrEqualTo(t.y)&&t.y.isLessThanOrEqualTo(e.ur.y),Dw=(e,t)=>{if(t.ur.x.isLessThan(e.ll.x)||e.ur.x.isLessThan(t.ll.x)||t.ur.y.isLessThan(e.ll.y)||e.ur.y.isLessThan(t.ll.y))return null;const n=e.ll.x.isLessThan(t.ll.x)?t.ll.x:e.ll.x,r=e.ur.x.isLessThan(t.ur.x)?e.ur.x:t.ur.x;return{ll:{x:n,y:e.ll.y.isLessThan(t.ll.y)?t.ll.y:e.ll.y},ur:{x:r,y:e.ur.y.isLessThan(t.ur.y)?e.ur.y:t.ur.y}}},Fw=(e,t)=>e.x.times(t.y).minus(e.y.times(t.x)),jw=(e,t)=>e.x.times(t.x).plus(e.y.times(t.y)),Bw=e=>jw(e,e).sqrt(),zw=(e,t,n)=>{const r={x:t.x.minus(e.x),y:t.y.minus(e.y)},i={x:n.x.minus(e.x),y:n.y.minus(e.y)};return Fw(i,r).div(Bw(i)).div(Bw(r))},Gw=(e,t,n)=>{const r={x:t.x.minus(e.x),y:t.y.minus(e.y)},i={x:n.x.minus(e.x),y:n.y.minus(e.y)};return jw(i,r).div(Bw(i)).div(Bw(r))},Uw=(e,t,n)=>t.y.isZero()?null:{x:e.x.plus(t.x.div(t.y).times(n.minus(e.y))),y:n},Ww=(e,t,n)=>t.x.isZero()?null:{x:n,y:e.y.plus(t.y.div(t.x).times(n.minus(e.x)))},qw=class e{point;isLeft;segment;otherSE;consumedBy;static compare(t,n){const r=e.comparePoints(t.point,n.point);return 0!==r?r:(t.point!==n.point&&t.link(n),t.isLeft!==n.isLeft?t.isLeft?1:-1:Jw.compare(t.segment,n.segment))}static comparePoints(e,t){return e.x.isLessThan(t.x)?-1:e.x.isGreaterThan(t.x)?1:e.y.isLessThan(t.y)?-1:e.y.isGreaterThan(t.y)?1:0}constructor(e,t){void 0===e.events?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=t}link(e){if(e.point===this.point)throw new Error("Tried to link already linked events");const t=e.point.events;for(let e=0,n=t.length;e<n;e++){const n=t[e];this.point.events.push(n),n.point=this.point}this.checkForConsuming()}checkForConsuming(){const e=this.point.events.length;for(let t=0;t<e;t++){const n=this.point.events[t];if(void 0===n.segment.consumedBy)for(let r=t+1;r<e;r++){const e=this.point.events[r];void 0===e.consumedBy&&n.otherSE.point.events===e.otherSE.point.events&&n.segment.consume(e.segment)}}}getAvailableLinkedEvents(){const e=[];for(let t=0,n=this.point.events.length;t<n;t++){const n=this.point.events[t];n!==this&&!n.segment.ringOut&&n.segment.isInResult()&&e.push(n)}return e}getLeftmostComparator(e){const t=new Map,n=n=>{const r=n.otherSE;t.set(n,{sine:zw(this.point,e.point,r.point),cosine:Gw(this.point,e.point,r.point)})};return(e,r)=>{t.has(e)||n(e),t.has(r)||n(r);const{sine:i,cosine:o}=t.get(e),{sine:s,cosine:a}=t.get(r);return i.isGreaterThanOrEqualTo(0)&&s.isGreaterThanOrEqualTo(0)?o.isLessThan(a)?1:o.isGreaterThan(a)?-1:0:i.isLessThan(0)&&s.isLessThan(0)?o.isLessThan(a)?-1:o.isGreaterThan(a)?1:0:s.isLessThan(i)?-1:s.isGreaterThan(i)?1:0}}},Vw=class e{events;poly;_isExteriorRing;_enclosingRing;static factory(t){const n=[];for(let r=0,i=t.length;r<i;r++){const i=t[r];if(!i.isInResult()||i.ringOut)continue;let o=null,s=i.leftSE,a=i.rightSE;const l=[s],u=s.point,c=[];for(;o=s,s=a,l.push(s),s.point!==u;)for(;;){const t=s.getAvailableLinkedEvents();if(0===t.length){const e=l[0].point,t=l[l.length-1].point;throw new Error(`Unable to complete output ring starting at [${e.x}, ${e.y}]. Last matching segment found ends at [${t.x}, ${t.y}].`)}if(1===t.length){a=t[0].otherSE;break}let r=null;for(let e=0,t=c.length;e<t;e++)if(c[e].point===s.point){r=e;break}if(null!==r){const t=c.splice(r)[0],i=l.splice(t.index);i.unshift(i[0].otherSE),n.push(new e(i.reverse()));continue}c.push({index:l.length,point:s.point});const i=s.getLeftmostComparator(o);a=t.sort(i)[0].otherSE;break}n.push(new e(l))}return n}constructor(e){this.events=e;for(let t=0,n=e.length;t<n;t++)e[t].segment.ringOut=this;this.poly=null}getGeom(){let e=this.events[0].point;const t=[e];for(let n=1,r=this.events.length-1;n<r;n++){const r=this.events[n].point,i=this.events[n+1].point;0!==Lw.orient(r,e,i)&&(t.push(r),e=r)}if(1===t.length)return null;const n=t[0],r=t[1];0===Lw.orient(n,e,r)&&t.shift(),t.push(t[0]);const i=this.isExteriorRing()?1:-1,o=this.isExteriorRing()?0:t.length-1,s=this.isExteriorRing()?t.length:-1,a=[];for(let e=o;e!=s;e+=i)a.push([t[e].x.toNumber(),t[e].y.toNumber()]);return a}isExteriorRing(){if(void 0===this._isExteriorRing){const e=this.enclosingRing();this._isExteriorRing=!e||!e.isExteriorRing()}return this._isExteriorRing}enclosingRing(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}_calcEnclosingRing(){let e=this.events[0];for(let t=1,n=this.events.length;t<n;t++){const n=this.events[t];qw.compare(e,n)>0&&(e=n)}let t=e.segment.prevInResult(),n=t?t.prevInResult():null;for(;;){if(!t)return null;if(!n)return t.ringOut;if(n.ringOut!==t.ringOut)return n.ringOut?.enclosingRing()!==t.ringOut?t.ringOut:t.ringOut?.enclosingRing();t=n.prevInResult(),n=t?t.prevInResult():null}}},Yw=class{exteriorRing;interiorRings;constructor(e){this.exteriorRing=e,e.poly=this,this.interiorRings=[]}addInterior(e){this.interiorRings.push(e),e.poly=this}getGeom(){const e=this.exteriorRing.getGeom();if(null===e)return null;const t=[e];for(let e=0,n=this.interiorRings.length;e<n;e++){const n=this.interiorRings[e].getGeom();null!==n&&t.push(n)}return t}},Hw=class{rings;polys;constructor(e){this.rings=e,this.polys=this._composePolys(e)}getGeom(){const e=[];for(let t=0,n=this.polys.length;t<n;t++){const n=this.polys[t].getGeom();null!==n&&e.push(n)}return e}_composePolys(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];if(!r.poly)if(r.isExteriorRing())t.push(new Yw(r));else{const e=r.enclosingRing();
3e?.poly||t.push(new Yw(e)),e?.poly?.addInterior(r)}}return t}},$w=class{queue;tree;segments;constructor(e,t=Jw.compare){this.queue=e,this.tree=new Sw(t),this.segments=[]}process(e){const t=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.delete(e.otherSE):this.tree.delete(t),n;e.isLeft&&this.tree.add(t);let r=t,i=t;do{r=this.tree.lastBefore(r)}while(null!=r&&null!=r.consumedBy);do{i=this.tree.firstAfter(i)}while(null!=i&&null!=i.consumedBy);if(e.isLeft){let o=null;if(r){const e=r.getIntersection(t);if(null!==e&&(t.isAnEndpoint(e)||(o=e),!r.isAnEndpoint(e))){const t=this._splitSafely(r,e);for(let e=0,r=t.length;e<r;e++)n.push(t[e])}}let s=null;if(i){const e=i.getIntersection(t);if(null!==e&&(t.isAnEndpoint(e)||(s=e),!i.isAnEndpoint(e))){const t=this._splitSafely(i,e);for(let e=0,r=t.length;e<r;e++)n.push(t[e])}}if(null!==o||null!==s){let e=null;e=null===o?s:null===s||qw.comparePoints(o,s)<=0?o:s,this.queue.delete(t.rightSE),n.push(t.rightSE);const r=t.split(e);for(let e=0,t=r.length;e<t;e++)n.push(r[e])}n.length>0?(this.tree.delete(t),n.push(e)):(this.segments.push(t),t.prev=r)}else{if(r&&i){const e=r.getIntersection(i);if(null!==e){if(!r.isAnEndpoint(e)){const t=this._splitSafely(r,e);for(let e=0,r=t.length;e<r;e++)n.push(t[e])}if(!i.isAnEndpoint(e)){const t=this._splitSafely(i,e);for(let e=0,r=t.length;e<r;e++)n.push(t[e])}}}this.tree.delete(t)}return n}_splitSafely(e,t){this.tree.delete(e);const n=e.rightSE;this.queue.delete(n);const r=e.split(t);return r.push(n),void 0===e.consumedBy&&this.tree.add(e),r}},Kw=new class{type;numMultiPolys;
3run(e,t,n){Kw.type=e;const r=[new tx(t,!0)];for(let e=0,t=n.length;e<t;e++)r.push(new tx(n[e],!1));if(Kw.numMultiPolys=r.length,"difference"===Kw.type){const e=r[0];let t=1;for(;t<r.length;)null!==Dw(r[t].bbox,e.bbox)?t++:r.splice(t,1)}if("intersection"===Kw.type)for(let e=0,t=r.length;e<t;e++){const t=r[e];for(let n=e+1,i=r.length;n<i;n++)if(null===Dw(t.bbox,r[n].bbox))return[]}const i=new Sw(qw.compare);for(let e=0,t=r.length;e<t;e++){const t=r[e].getSweepEvents();for(let e=0,n=t.length;e<n;e++)i.add(t[e])}const o=new $w(i);let s=null;for(0!=i.size&&(s=i.first(),i.delete(s));s;){const e=o.process(s);for(let t=0,n=e.length;t<n;t++){const n=e[t];void 0===n.consumedBy&&i.add(n)}0!=i.size?(s=i.first(),i.delete(s)):s=null}Lw.reset();const a=Vw.factory(o.segments);return new Hw(a).getGeom()}},Xw=Kw,Zw=0,Jw=class e{id;leftSE;rightSE;rings;windings;ringOut;consumedBy;prev;_prevInResult;_beforeState;_afterState;_isInResult;static compare(e,t){const n=e.leftSE.point.x,r=t.leftSE.point.x,i=e.rightSE.point.x,o=t.rightSE.point.x;if(o.isLessThan(n))return 1;if(i.isLessThan(r))return-1;const s=e.leftSE.point.y,a=t.leftSE.point.y,l=e.rightSE.point.y,u=t.rightSE.point.y;if(n.isLessThan(r)){if(a.isLessThan(s)&&a.isLessThan(l))return 1;if(a.isGreaterThan(s)&&a.isGreaterThan(l))return-1;const n=e.comparePoint(t.leftSE.point);if(n<0)return 1;if(n>0)return-1;const r=t.comparePoint(e.rightSE.point);return 0!==r?r:-1}if(n.isGreaterThan(r)){if(s.isLessThan(a)&&s.isLessThan(u))return-1;if(s.isGreaterThan(a)&&s.isGreaterThan(u))return 1;const n=t.comparePoint(e.leftSE.point);if(0!==n)return n;const r=e.comparePoint(t.rightSE.point);return r<0?1:r>0?-1:1}if(s.isLessThan(a))return-1;if(s.isGreaterThan(a))return 1;if(i.isLessThan(o)){const n=t.comparePoint(e.rightSE.point);if(0!==n)return n}if(i.isGreaterThan(o)){const n=e.comparePoint(t.rightSE.point);if(n<0)return 1;if(n>0)return-1}if(!i.eq(o)){const e=l.minus(s),t=i.minus(n),c=u.minus(a),h=o.minus(r);if(e.isGreaterThan(t)&&c.isLessThan(h))return 1;if(e.isLessThan(t)&&c.isGreaterThan(h))return-1}return i.isGreaterThan(o)?1:i.isLessThan(o)||l.isLessThan(u)?-1:l.isGreaterThan(u)?1:e.id<t.id?-1:e.id>t.id?1:0}constructor(e,t,n,r){this.id=++Zw,this.leftSE=e,e.segment=this,e.otherSE=t,this.rightSE=t,t.segment=this,t.otherSE=e,this.rings=n,this.windings=r}static fromRing(t,n,r){let i,o,s;const a=qw.comparePoints(t,n);if(a<0)i=t,o=n,s=1;else{if(!(a>0))throw new Error(`Tried to create degenerate segment at [${t.x}, ${t.y}]`);i=n,o=t,s=-1}const l=new qw(i,!0),u=new qw(o,!1);return new e(l,u,[r],[s])}replaceRightSE(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const e=this.leftSE.point.y,t=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:e.isLessThan(t)?e:t},ur:{x:this.rightSE.point.x,y:e.isGreaterThan(t)?e:t}}}vector(){return{x:this.rightSE.point.x.minus(this.leftSE.point.x),y:this.rightSE.point.y.minus(this.leftSE.point.y)}}isAnEndpoint(e){return e.x.eq(this.leftSE.point.x)&&e.y.eq(this.leftSE.point.y)||e.x.eq(this.rightSE.point.x)&&e.y.eq(this.rightSE.point.y)}comparePoint(e){return Lw.orient(this.leftSE.point,e,this.rightSE.point)}getIntersection(e){const t=this.bbox(),n=e.bbox(),r=Dw(t,n);if(null===r)return null;const i=this.leftSE.point,o=this.rightSE.point,s=e.leftSE.point,a=e.rightSE.point,l=Nw(t,s)&&0===this.comparePoint(s),u=Nw(n,i)&&0===e.comparePoint(i),c=Nw(t,a)&&0===this.comparePoint(a),h=Nw(n,o)&&0===e.comparePoint(o);if(u&&l)return h&&!c?o:!h&&c?a:null;if(u)return c&&i.x.eq(a.x)&&i.y.eq(a.y)?null:i;if(l)return h&&o.x.eq(s.x)&&o.y.eq(s.y)?null:s;if(h&&c)return null;if(h)return o;if(c)return a;const d=((e,t,n,r)=>{if(t.x.isZero())return Ww(n,r,e.x);if(r.x.isZero())return Ww(e,t,n.x);if(t.y.isZero())return Uw(n,r,e.y);if(r.y.isZero())return Uw(e,t,n.y);const i=Fw(t,r);if(i.isZero())return null;const o={x:n.x.minus(e.x),y:n.y.minus(e.y)},s=Fw(o,t).div(i),a=Fw(o,r).div(i),l=e.x.plus(a.times(t.x)),u=n.x.plus(s.times(r.x)),c=e.y.plus(a.times(t.y)),h=n.y.plus(s.times(r.y));return{x:l.plus(u).div(2),y:c.plus(h).div(2)}})(i,this.vector(),s,e.vector());return null===d?null:Nw(r,d)?Lw.snap(d):null}split(t){const n=[],r=void 0!==t.events,i=new qw(t,!0),o=new qw(t,!1),s=this.rightSE;this.replaceRightSE(o),n.push(o),n.push(i);const a=new e(i,s,this.rings.slice(),this.windings.slice());return qw.comparePoints(a.leftSE.point,a.rightSE.point)>0&&a.swapEvents(),qw.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),o.checkForConsuming()),n}swapEvents(){const e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let e=0,t=this.windings.length;e<t;e++)this.windings[e]*=-1}consume(t){let n=this,r=t;for(;n.consumedBy;)n=n.consumedBy;for(;r.consumedBy;)r=r.consumedBy;const i=e.compare(n,r);if(0!==i){if(i>0){const e=n;n=r,r=e}if(n.prev===r){const e=n;n=r,r=e}for(let e=0,t=r.rings.length;e<t;e++){const t=r.rings[e],i=r.windings[e],o=n.rings.indexOf(t);-1===o?(n.rings.push(t),n.windings.push(i)):n.windings[o]+=i}r.rings=null,r.windings=null,r.consumedBy=n,r.leftSE.consumedBy=n.leftSE,r.rightSE.consumedBy=n.rightSE}}prevInResult(){return void 0!==this._prevInResult||(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null),this._prevInResult}beforeState(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){const e=this.prev.consumedBy||this.prev;this._beforeState=e.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}afterState(){if(void 0!==this._afterState)return this._afterState;const e=this.beforeState();this._afterState={rings:e.rings.slice(0),windings:e.windings.slice(0),multiPolys:[]};const t=this._afterState.rings,n=this._afterState.windings,r=this._afterState.multiPolys;for(let e=0,r=this.rings.length;e<r;e++){const r=this.rings[e],i=this.windings[e],o=t.indexOf(r);-1===o?(t.push(r),n.push(i)):n[o]+=i}const i=[],o=[];for(let e=0,r=t.length;e<r;e++){if(0===n[e])continue;const r=t[e],s=r.poly;if(-1===o.indexOf(s))if(r.isExterior)i.push(s);else{-1===o.indexOf(s)&&o.push(s);const e=i.indexOf(r.poly);-1!==e&&i.splice(e,1)}}for(let e=0,t=i.length;e<t;e++){const t=i[e].multiPoly;-1===r.indexOf(t)&&r.push(t)}return this._afterState}
3isInResult(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;const e=this.beforeState().multiPolys,t=this.afterState().multiPolys;switch(Xw.type){case"union":{const n=0===e.length,r=0===t.length;this._isInResult=n!==r;break}case"intersection":{let n,r;e.length<t.length?(n=e.length,r=t.length):(n=t.length,r=e.length),this._isInResult=r===Xw.numMultiPolys&&n<r;break}case"xor":{const n=Math.abs(e.length-t.length);this._isInResult=n%2==1;break}case"difference":{const n=e=>1===e.length&&e[0].isSubject;this._isInResult=n(e)!==n(t);break}}return this._isInResult}},Qw=class{poly;isExterior;segments;bbox;constructor(e,t,n){if(!Array.isArray(e)||0===e.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=t,this.isExterior=n,this.segments=[],"number"!=typeof e[0][0]||"number"!=typeof e[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const r=Lw.snap({x:new bw(e[0][0]),y:new bw(e[0][1])});this.bbox={ll:{x:r.x,y:r.y},ur:{x:r.x,y:r.y}};let i=r;for(let t=1,n=e.length;t<n;t++){if("number"!=typeof e[t][0]||"number"!=typeof e[t][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const n=Lw.snap({x:new bw(e[t][0]),y:new bw(e[t][1])});n.x.eq(i.x)&&n.y.eq(i.y)||(this.segments.push(Jw.fromRing(i,n,this)),n.x.isLessThan(this.bbox.ll.x)&&(this.bbox.ll.x=n.x),n.y.isLessThan(this.bbox.ll.y)&&(this.bbox.ll.y=n.y),n.x.isGreaterThan(this.bbox.ur.x)&&(this.bbox.ur.x=n.x),n.y.isGreaterThan(this.bbox.ur.y)&&(this.bbox.ur.y=n.y),i=n)}r.x.eq(i.x)&&r.y.eq(i.y)||this.segments.push(Jw.fromRing(i,r,this))}getSweepEvents(){const e=[];for(let t=0,n=this.segments.length;t<n;t++){const n=this.segments[t];e.push(n.leftSE),e.push(n.rightSE)}return e}},ex=class{multiPoly;exteriorRing;interiorRings;bbox;constructor(e,t){if(!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new Qw(e[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(let t=1,n=e.length;t<n;t++){const n=new Qw(e[t],this,!1);n.bbox.ll.x.isLessThan(this.bbox.ll.x)&&(this.bbox.ll.x=n.bbox.ll.x),n.bbox.ll.y.isLessThan(this.bbox.ll.y)&&(this.bbox.ll.y=n.bbox.ll.y),n.bbox.ur.x.isGreaterThan(this.bbox.ur.x)&&(this.bbox.ur.x=n.bbox.ur.x),n.bbox.ur.y.isGreaterThan(this.bbox.ur.y)&&(this.bbox.ur.y=n.bbox.ur.y),this.interiorRings.push(n)}this.multiPoly=t}getSweepEvents(){const e=this.exteriorRing.getSweepEvents();for(let t=0,n=this.interiorRings.length;t<n;t++){const n=this.interiorRings[t].getSweepEvents();for(let t=0,r=n.length;t<r;t++)e.push(n[t])}return e}},tx=class{isSubject;polys;bbox;constructor(e,t){if(!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"==typeof e[0][0][0]&&(e=[e])}catch(e){}this.polys=[],this.bbox={ll:{x:new bw(Number.POSITIVE_INFINITY),y:new bw(Number.POSITIVE_INFINITY)},ur:{x:new bw(Number.NEGATIVE_INFINITY),y:new bw(Number.NEGATIVE_INFINITY)}};for(let t=0,n=e.length;t<n;t++){const n=new ex(e[t],this);n.bbox.ll.x.isLessThan(this.bbox.ll.x)&&(this.bbox.ll.x=n.bbox.ll.x),n.bbox.ll.y.isLessThan(this.bbox.ll.y)&&(this.bbox.ll.y=n.bbox.ll.y),n.bbox.ur.x.isGreaterThan(this.bbox.ur.x)&&(this.bbox.ur.x=n.bbox.ur.x),n.bbox.ur.y.isGreaterThan(this.bbox.ur.y)&&(this.bbox.ur.y=n.bbox.ur.y),this.polys.push(n)}this.isSubject=t}getSweepEvents(){const e=[];for(let t=0,n=this.polys.length;t<n;t++){const n=this.polys[t].getSweepEvents();for(let t=0,r=n.length;t<r;t++)e.push(n[t])}return e}};Lw.set;const nx="tst"===ew({key:"API_ENV"})?100:1e3;var rx=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))};const ix=Fh.create({baseURL:function(){{const e=ew({key:"API_URL"})||"";return"string"===Xb(e)?e:""}}(),responseType:"document"});
3var ox=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))};function sx(e){return ox(this,arguments,void 0,(function*(e,t=0,n,r,i){let o={totalRecords:0,basketItems:[],fetchedRecords:0};return yield function(e){return rx(this,arguments,void 0,(function*(e,t=0,n,r,i,o){const s=function(e,t,n,r,i){let o="",s=!1;return i.query?(o+=i.query,`?query=${o}&maximumRecords=${nx}&startRecord=${t}&recordSchema=short&httpSchema=application/xml&facetLimit=100:dt.type`):(i.filters&&i.filters.map((e=>{const t=e.value.split(",");o+="(",t.map(((n,r)=>{o+=`${e.name} ${e.operator?e.operator:"=="} "${n}"${r<t.length-1?" OR ":") AND "}`,"c.product-area"===e.name.toLocaleLowerCase()&&(s=!0)}))})),s||(o+=`(c.product-area=="${i&&i.collection?i.collection:"officielepublicaties"}") AND `),o+=`(dt.modified>=${n.getFullYear()}-${cE(n.getMonth()+1)}-${cE(n.getDate())} AND dt.modified<=${r.getFullYear()}-${cE(r.getMonth()+1)}-${cE(r.getDate())}) AND `,i.area?"location"===i.area.type&&i.area.location?o+=function(e){let t="";return"gemeente"===e.type?t+="w.ligtingemeente":t+=`w.${e.type}`,t+=`="${e.title}"`,t}(i.area.location):"circle"===i.area.type&&i.area.circle&&(o+=`(w.locatiepu
3nt within/rijksdriehoek "${i.area.circle.x} ${i.area.circle.y} ${(i.area.circle.radius||0)/1e3}" OR cd.afgeleideLocatiegebied within/rijksdriehoek "${i.area.circle.x} ${i.area.circle.y} ${(i.area.circle.radius||0)/1e3}")`):o+=`(w.locatiepunt within/swne.rd "${e}" OR cd.afgeleideLocatiegebied within/swne.rd "${e}")`,`?query=${o}&maximumRecords=${nx}&startRecord=${t}&recordSchema=short&httpSchema=application/xml&facetLimit=100:dt.type`)}(e,t,n,r,i);if(!s)return Promise.reject(null);const a={onDownloadProgress:qb(o),headers:{Accept:"application/xml"}},l=yield ix.get(`/sru${s}`,a);return null==l?void 0:l.data}))}(e,t,n,r,i).then((e=>{o=function(e){const t=[],n=e.getElementsByTagNameNS("*","record"),r=n.length,i=Wb(e,"sru:numberOfRecords");for(const e of n){const{itemTitle:n,itemDescription:r,itemId:i,all:o}=ax(e);t.push(...lx(o,i,n,r))}return console.info("fetchCollection",t),{basketItems:t,totalRecords:parseInt(i,10),fetchedRecords:r}}(e)})).catch((e=>{console.error(e)})),o}))}function ax(e){return{itemTitle:Wb(e,"title")||"",itemDescription:Wb(e,"description"),itemId:Wb(e,"identifier")||"",all:e.getElementsByTagNameNS("*","recordData")}}function lx(e,t,n,r,i="location"){const o=[];let s=0;for(const a of e){const e=Array.from(a.getElementsByTagNameNS("*","geometrie")),l=Array.from(a.getElementsByTagNameNS("*","bronIdentifier"));e.forEach(((e,a)=>{var u,c;const h=e.innerHTML;if(h){const e=h.indexOf("POINT")>-1?jh.PUNT:jh.VLAK,d={geometrie_rd:h,id:`${t}--${s}`,type:e,weergavenaam:n,omschrijving:r!==n?r:"",url:null!==(c=null===(u=l[a])||void 0===u?void 0:u.textContent)&&void 0!==c?c:cx(t),areaType:i};o.push(d)}s++}))}return o}function ux(e){const t=[];return e.forEach((e=>{if(e.geometrie_rd&&e.geometrie_rd.startsWith("MULTIPOINT")){const n=/\((.*)\)$/.exec(e.geometrie_rd);(n?n[0].split(","):[]).forEach(((n,r)=>{const i=Object.assign({},e);i.geometrie_rd=`POINT${n.replace("((","(").replace("))",")")}`,i.id+=`-${r}`,t.push(i)}))}else t.push(e)})),t}function cx(e){if(e)return`https://zoek.officielebekendmakingen.nl/${e}.html`}var hx=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))};const dx=class{constructor(e,t,n,r,i){this.initializeOptions(e),this.loadEnd=t,this.loadError=n,this.loadStart=r,this.loadProgress=i,this.lastTimeStamp=null,this.loadLocationsForExtent=this.loadLocationsForExtent.bind(this),this.onMapPanZoomHandler=this.onMapPanZoomHandler.bind(this),this.shouldExtentUpdate=this.shouldExtentUpdate.bind(this)}onMapPanZoomHandler(e,t){return hx(this,void 0,void 0,(function*(){const n=this.roundExtent(e),r=this.createFeatureFromExtent(n),i=this.extentMove(n,t);if(this.zoom=t,this.config.on_zoom_pan&&this.config.on_zoom_pan(n,t),this.shouldExtentUpdate(r,i)){this.setExtent(n),this.lastTimeStamp=new Date;const e=this.getExtentFromFeature(this.getViewportDifference(r));this.loadLocationsForExtent(e,this.lastTimeStamp).then((()=>{this.lastTimeStamp=null,this.addViewportToHistory(r)}))}}))}loadLocationsForExtent(e,t){return hx(this,void 0,void 0,(function*(){this.loadStart&&this.loadStart();let n=!0,r=0;for(;this.lastTimeStamp===t&&n;)yield sx(`${e[0]} ${e[1]} ${e[2]} ${e[3]}`,r,this.dateFrom,this.dateTo,this.config).then((e=>{n=e.totalRecords>e.fetchedRecords+r&&t===this.lastTimeStamp,r+=e.fetchedRecords,this.loadEnd(e.basketItems,n),n&&this.loadProgress&&this.loadProgress(`${r} van ${e.totalRecords}`)})).catch((e=>{if(this.loadError){let t="Er is een probleem met de netwerkverbinding naar de SRU zoekservice";e.status?t+=`: ${e.status}`:e.message&&(t+=`: ${e.message}`),this.loadError(t),n=!1,this.lastTimeStamp=null}}))}))}initializeOptions(e){this.config=Object.assign({},Ml);for(const t in e)e[t]&&(this.config[t]=e[t]);this.dateTo=this.config.date_to?new Date(this.config.date_to):new Date,this.config.date_from?this.dateFrom=new Date(this.config.date_from):(this.dateFrom=new Date(this.dateTo),this.dateFrom.setDate(this.dateTo.getDate()-56))}extentMove(e,t){const n=this.maxx-this.minx,r=this.maxy-this.miny,i=Math.abs(e[0]-this.minx),o=Math.abs(e[1]-this.miny);return{moveX:i,moveY:o,moveXPercentage:Math.round(i/n*100),moveYPercentage:Math.round(o/r*100),moveZoom:this.extentZoom(t)}}extentZoom(e){const t=e-this.zoom;if(0!==t){const e=t>0?Sl:Cl;return{zoomFactor:Math.abs(t),zoomDirection:e}}}roundExtent(e){return[parseFloat(e[0].toFixed(0)),parseFloat(e[1].toFixed(0)),parseFloat(e[2].toFixed(0)),parseFloat(e[3].toFixed(0))]}setExtent(e){this.minx=e[0],this.miny=e[1],this.maxx=e[2],this.maxy=e[3]}shouldExtentUpdate(e,t){return!this.historyViewport||!this.config.area&&!!this.getViewportDifference(e)&&(t.moveXPercentage>(this.config.pan_threshold||15)||t.moveYPercentage>(this.config.pan_threshold||15))}getViewportDifference(e){return this.historyViewport?function(e){const t=[];if(Lb(e,(e=>{t.push(e.coordinates)}
3)),t.length<2)throw new Error("Must have at least two features");const n=e.features[0].properties||{},r=((e,...t)=>Xw.run("difference",e,t))(t[0],...t.slice(1));return 0===r.length?null:1===r.length?Ob(r[0],n):Ib(r,n)}(function(e,t={}){const n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}([e,this.historyViewport])):e}getExtentFromFeature(e){return function(e,t={}){if(null!=e.bbox&&!0!==t.recompute)return e.bbox;const n=[1/0,1/0,-1/0,-1/0];return Ab(e,(e=>{n[0]>e[0]&&(n[0]=e[0]),n[1]>e[1]&&(n[1]=e[1]),n[2]<e[0]&&(n[2]=e[0]),n[3]<e[1]&&(n[3]=e[1])})),n}(e)}addViewportToHistory(e){this.historyViewport=this.historyViewport?function(e,t={}){const n=[];if(Lb(e,(e=>{n.push(e.coordinates)})),n.length<2)throw new Error("Must have at least 2 geometries");const r=((e,...t)=>Xw.run("union",e,t))(n[0],...n.slice(1));return 0===r.length?null:1===r.length?Ob(r[0],t.properties):Ib(r,t.properties)}(this.historyViewport,e):e}createFeatureFromExtent(e){return Ob([[[e[0],e[1]],[e[2],e[1]],[e[2],e[3]],[e[0],e[3]],[e[0],e[1]]]])}},fx={LINESTRING:"lijn",MULTILINESTRING:"lijnen",POINT:"punt"};function px(e){let t="",n=", ";function r(e,t,n=" "){return e.length?e+n+t:t}if(e.kadastrale_gemeentenaam||e.kadastrale_sectie||e.perceelnummer)return t="Perceel",e.kadastrale_gemeentenaam&&(t=r(t,e.kadastrale_gemeentenaam)),e.kadastrale_sectie&&(t=r(t,e.kadastrale_sectie)),e.perceelnummer&&(t=r(t,e.perceelnummer)),t;if(!t.length&&(e.hectometernummer||e.wegnummer))return t="Hectometerpaal",e.wegnummer&&(t=r(t,e.wegnummer)),e.hectometernummer&&(t=r(t,e.hectometernummer,e.wegnummer?"-":" ")),t;const i=function(e){let t="";return e.huis_nlt?t=r(t,e.huis_nlt):e.huisnummer&&(t=r(t,e.huisnummer.toString()),e.huisletter&&(t=r(t,e.huisletter)),e.huisnummertoevoeging&&(t=r(t,e.huisnummertoevoeging,"-"))),t}(e);if((e.straatnaam||e.straatnaam_verkort)&&(e.straatnaam?t=r(t,e.straatnaam):e.straatnaam_verkort&&(t=r(t,e.straatnaam_verkort)),i.length&&(t=r(t,i))),e.postcode&&(t=r(t,e.postcode,n),n=" ",!e.straatnaam&&!e.straatnaam_verkort&&i.length))return t=r(t,i),t;if(e.woonplaatsnaam?t=r(t,e.woonplaatsnaam,n):e.gemeentenaam?t=r(t,e.gemeentenaam,n):e.provincienaam&&(t=r(t,e.provincienaam,n)),!t.length&&e.waterschapsnaam&&(t=e.waterschapsnaam),!t.length&&e.geometry_type&&(t=function(e){const t=Object.keys(fx);let n=e.type||"";return t.forEach((t=>{var r;!0===(null===(r=e.geometry)||void 0===r?void 0:r.startsWith(t))&&(n=fx[t])})),n}(e)),!e.type)throw new Error("Unexpected error: location.type property is undefined");return t.length?t:e.type}function gx(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var mx=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),yx=()=>Math.random().toString(36).substring(7).split("").join("."),vx={INIT:`@@redux/INIT${yx()}`,REPLACE:`@@redux/REPLACE${yx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yx()}`};function _x(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function bx(e,t,n){if("function"!=typeof e)throw new Error(gx(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(gx(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(gx(1));return n(bx)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function u(){s===o&&(s=new Map,o.forEach(((e,t)=>{s.set(t,e)})))}function c(){if(l)throw new Error(gx(3));return i}function h(e){if("function"!=typeof e)throw new Error(gx(4));if(l)throw new Error(gx(5));let t=!0;u();const n=a++;return s.set(n,e),function(){if(t){if(l)throw new Error(gx(6));t=!1,u(),s.delete(n),o=null}}}function d(e){if(!_x(e))throw new Error(gx(7));if(void 0===e.type)throw new Error(gx(8));if("string"!=typeof e.type)throw new Error(gx(17));if(l)throw new Error(gx(9));try{l=!0,i=r(i,e)}finally{l=!1}
3return(o=s).forEach((e=>{e()})),e}return d({type:vx.INIT}),{dispatch:d,subscribe:h,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(gx(10));r=e,d({type:vx.REPLACE})},[mx]:function(){const e=h;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(gx(11));function n(){const e=t;e.next&&e.next(c())}return n(),{unsubscribe:e(n)}},[mx](){return this}}}}}function wx(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}const r=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:vx.INIT}))throw new Error(gx(12));if(void 0===n(void 0,{type:vx.PROBE_UNKNOWN_ACTION()}))throw new Error(gx(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let o=!1;const s={};for(let i=0;i<r.length;i++){const a=r[i],l=n[a],u=e[a],c=l(u,t);if(void 0===c)throw t&&t.type,new Error(gx(14));s[a]=c,o=o||c!==u}return o=o||r.length!==Object.keys(e).length,o?s:e}}function xx(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function Ex(e){return({dispatch:t,getState:n})=>r=>i=>"function"==typeof i?i(t,n,e):r(i)}var Sx=Ex(),Cx=Ex,Mx="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?xx:xx.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var kx=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}},Tx=e=>t=>{setTimeout(t,e)};function Px(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{};let o=new kx;return t&&("boolean"==typeof t?o.push(Sx):o.push(Cx(t.extraArgument))),o},{reducer:n,middleware:r,devTools:i=!0,preloadedState:o,enhancers:s}=e||{};let a,l;if("function"==typeof n)a=n;else{if(!_x(n))throw new Error(`Minified Redux Toolkit error #${u=1}; visit https://redux-toolkit.js.org/Errors?code=${u} for the full message or use the non-minified dev environment for full errors. `);a=wx(n)}var u;l="function"==typeof r?r(t):t();let c=xx;i&&(c=Mx({trace:!1,..."object"==typeof i&&i}));const h=function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(gx(15))};const s={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},a=e.map((e=>e(s)));return o=xx(...a)(i.dispatch),{...i,dispatch:o}}}(...l),d=(e=>function(t){const{autoBatch:n=!0}=t??{};let r=new kx(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Tx(10):"callback"===e.type?e.queueNotification:Tx(e.timeout),u=()=>{s=!1,o&&(o=!1,a.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>i&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return i=!e?.meta?.RTK_autoBatch,o=!i,o&&(s||(s=!0,l(u))),r.dispatch(e)}finally{i=!0}}})})("object"==typeof n?n:void 0)),r})(h);return bx(a,o,c(..."function"==typeof s?s(d):d()))}var{assign:Ox}=Object;function Ix(e){return Object.assign(Object.assign({},e),{default:e.default.map((e=>Object.assign(Object.assign({},e),{active:!1})))})}function Rx(e,t,n){const r=e.default.map((e=>(e.id===t.item.id&&(e=Object.assign(Object.assign({},e),{peek:n})),e)));return Object.assign(Object.assign({},e),{default:r})}function Ax(e,t){return Object.assign(Object.assign({},e),{center:{sequence:e.center.sequence+1,item:t.item}})}Symbol.for("rtk-state-proxy-original");const Lx={[wl]:function(e,t){const n=e.customMarkers.includes(t.marker)?e.customMarkers:[...e.customMarkers,t.marker];return Object.assign(Object.assign({},e),{customMarkers:n})},[sl]:function(e,t){let n=t.items;return t.options&&t.options.append&&(n=n.concat(...e.default),n=n.reduce(((e,t)=>
3(e.some((e=>e.id===t.id))||e.push(t),e)),[])),Object.assign(Object.assign({},e),{default:n,selected:[]})},[ol]:function(e,t){let n=!1;switch(t.item.geometrie_rd&&(n=qi(t.item.type,t.item.geometrie_rd)),t.mapLayerType){case"selected":return Ix(Object.assign(Object.assign({},e),{selected:[Object.assign(Object.assign({},t.item),{invalid:n})]}));case"default":{const r=Object.assign(Object.assign({},e),{default:[...e.default,Object.assign(Object.assign({},t.item),{invalid:n})],selected:[]});return t.options&&t.options.activate?Nx(r,t,!0):r}}},[ll]:Ix,[al]:function(e,t){switch(t.mapLayerType){case"selected":return Object.assign(Object.assign({},e),{selected:[]});case"default":{const n=e.default.filter((e=>e.id!==t.item.id));return Object.assign(Object.assign({},e),{default:n})}default:return e}},[bl]:function(e,t){const n=e.gioVersion.includes(t.gioVersion)?e.gioVersion:[...e.gioVersion,t.gioVersion];return Object.assign(Object.assign({},e),{gioVersion:n})},[_l]:function(e,t){return Object.assign(Object.assign({},e),{symbolisatieItemsArray:t.items})},[ul]:function(e,t){const n=e.default.map((e=>e.id===t.item.id?t.item:e));return Object.assign(Object.assign({},e),{default:n})},[cl]:function(e,t){return Rx(e,t,!0)},[hl]:function(e,t){return Rx(e,t,!1)},[dl]:function(e,t){return Nx(e,t,!0,!t.options||void 0===t.options.center||t.options.center)},[fl]:function(e,t){return Nx(e,t,!1)},[pl]:Ax,[gl]:function(e){return Object.assign(Object.assign({},e),{center:{sequence:e.center.sequence+1}})},[ml]:function(e,t){let n,r=!1;if(e.selected.some((e=>e.id===t.item.id))){if(n=e.selected.find((e=>e.id===t.item.id)),!n)return e;t.item.geometrie_rd&&(r=qi(n.type,t.item.geometrie_rd));const i=Object.assign(Object.assign({},n),{geometrie_rd:t.item.geometrie_rd,centroide_rd:t.item.geometrie_rd,invalid:r});return Object.assign(Object.assign({},e),{selected:[i]})}n=e.default.find((e=>e.id===t.item.id)),n&&t.item.geometrie_rd&&(r=qi(n.type,t.item.geometrie_rd));const i=e.default.map((e=>e.id===t.item.id?Object.assign(Object.assign({},e),{geometrie_rd:t.item.geometrie_rd,centroide_rd:t.item.geometrie_rd,invalid:r}):e));return Object.assign(Object.assign({},e),{default:i})},[yl]:function(e,t){const n=e.default.sort(((e,n)=>t.orderedIds.indexOf(e.id)-t.orderedIds.indexOf(n.id)));return Object.assign(Object.assign({},e),{default:n})},[vl]:function(e,t){const n=!(!t.options||void 0===t.options.representationHover)&&t.options.representationHover,r=e.default.map((e=>e.id===t.item.id?Object.assign(Object.assign({},e),{representationHover:n}):e));return Object.assign(Object.assign({},e),{default:r})}};function Nx(e,t,n,r=!1){const i=e.default.map((e=>(n&&e.active&&(e=Object.assign(Object.assign({},e),{active:!1})),e.id===t.item.id&&(e=Object.assign(Object.assign({},e),{active:n})),e)));return n?r?Ax(Object.assign(Object.assign({},e),{default:i,selected:[]}),t):Object.assign(Object.assign({},e),{default:i,selected:[]}):Object.assign(Object.assign({},e),{default:i})}const Dx=wx({basket:function(e={default:[],gioVersion:[],selected:[],center:{sequence:0},symbolisatieItemsArray:[{}],customMarkers:[]},t){const n=function(e){return Lx[e.type]}(t);return n?n(e,t):e},kpm:function(e={zoomLevel:9,mode:null,usedModes:[]},t){switch(t.type){case"SET_KPM_MODE":{const n=[...e.usedModes];return t.mode&&-1===n.indexOf(t.mode)&&n.push(t.mode),Object.assign(Object.assign({},e),{mode:t.mode,usedModes:n})}case"SET_ZOOM_LEVEL":return Object.assign(Object.assign({},e),{zoomLevel:t.level})}return e},layer:function(e={activeBaseLayer:Al,activeOverlayLayer:null},t){switch(t.type){case"SET_ACTIVE_BASE_LAYER":return Object.assign(Object.assign({},e),{activeBaseLayer:t.layer});case"SET_ACTIVE_OVERLAY_LAYER":return Object.assign(Object.assign({},e),{activeOverlayLayer:t.layer});case"CLEAR_OVERLAY_LAYER":return Object.assign(Object.assign({},e),{activeOverlayLayer:null})}return e},map:function(e={drawmode:null},t){return t.type===Ql?Object.assign(Object.assign({},e),{drawmode:t.mode}):e},style:function(e={fill_color:gu,fill_active_color:pu,border_color:"rgb(255, 255, 255)",border_width:2,readonlyColor:mu,zoneColor:"#E17000"},t){switch(t.type){case hu:return Object.assign(Object.assign({},e),{border_color:t.color});case du:return Object.assign(Object.assign({},e),{border_width:t.width});case cu:return Object.assign(Object.assign({},e),{fill_active_color:t.color});case uu:return Object.assign(Object.assign({},e),{fill_color:t.color});case fu:return Object.assign(Object.assign({},e),{readonlyColor:t.color})}return e}});function Fx(){console.log("[store.ts] Creating KPM store.");const e=Px({reducer:Dx,middleware:e=>e({serializableCheck:!1,immutableCheck:!1}),devTools:!1});return jx=e,e}let jx;Fx();const Bx=(e=gu)=>"data:image/svg+xml;base64,"+window.btoa(`<svg width="56" height="62" preserveAspectRatio="xMidYMax" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">\n <defs>\n <filter x="-9%" y="-8.2%" width="118%" height="117.9%" filterUnits="objectBoundingBox" id="a">\n <feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>\n <feOffset in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>\n <feGaussianBlur stdDeviation=".5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>\n <feColorMatrix values="0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.25 0" in="shadowBlurOuter1"></feColorMatrix>\n </filter>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" id="b"></path>\n </defs>\n <g transform="translate(3 3)" fill="none" fill-rule="evenodd" bx:origin="0.5 1">\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#000" filter="url
3(#a)"></path>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#FFF"></path>\n <circle fill="${e}" cx="25" cy="25" r="23"></circle>\n <circle fill="#FFF" cx="25" cy="25" r="6"></circle>\n </g>\n</svg>`),zx=(e=gu)=>"data:image/svg+xml;base64,"+window.btoa(`<svg width="56" height="62" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">\n <defs>\n <filter x="-9%" y="-8.2%" width="118%" height="117.9%" filterUnits="objectBoundingBox" id="a">\n <feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>\n <feOffset in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>\n <feGaussianBlur stdDeviation=".5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>\n <feColorMatrix values="0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.25 0" in="shadowBlurOuter1"></feColorMatrix>\n </filter>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" id="b"></path>\n </defs>\n <g transform="translate(3 3)" fill="none" fill-rule="evenodd" bx:origin="0.5 1">\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#000" filter="url(#a)"></path>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#FFF"></path>\n <circle fill="${e}" cx="25" cy="25" r="23"></circle>\n <circle fill="#FFF" cx="25" cy="25" r="12"></circle>\n <circle fill="${e}" cx="25" cy="25" r="6"></circle>\n </g>\n</svg>`),Gx=(e=gu)=>"data:image/svg+xml;base64,"+window.btoa(`<svg width="66" height="66" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-9.2%" y="-5.8%" width="118.3%" height="118.3%" filterUnits="objectBoundingBox" id="a"><feMorphology radius=".5" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"/><feOffset dy="2" in="shadowSpreadOuter1" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.25 0" in="shadowBlurOuter1"/></filter><circle id="b" cx="30" cy="30" r="30"/></defs><g transform="translate(3 1)" fill="none" fill-rule="evenodd"><use fill="#000" filter="url(#a)" xlink:href="#b"/><circle stroke="#FFF" stroke-width="2" stroke-linejoin="square" fill="${e}" cx="30" cy="30" r="29"/></g></svg>`),Ux=(e=pu)=>"data:image/svg+xml;base64,"+window.btoa(`<svg width="66" height="66" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-9.2%" y="-5.8%" width="118.3%" height="118.3%" filterUnits="objectBoundingBox" id="a"><feMorphology radius=".5" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"/><feOffset dy="2" in="shadowSpreadOuter1" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.25 0" in="shadowBlurOuter1"/></filter><circle id="b" cx="30" cy="30" r="30"/></defs><g transform="translate(3 1)" fill="none" fill-rule="evenodd"><use fill="#000" filter="url(#a)" xlink:href="#b"/><circle stroke="#FFF" stroke-width="4" stroke-linejoin="square" fill="${e}" cx="30" cy="30" r="28"/></g></svg>`),Wx="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABsCAYAAACcsRc5AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZKADAAQAAAABAAAAbAAAAAAfy5WAAAABVElEQVR4Ae3YsQ3DQAwDQDsTZ4Ssmk0CZIBnRxDGuVUh4egvpPv7vj6Xb0bgNTOJQf4CAhn7E
3QQyFohxCBAgQIAAAQIECBAg0Ba43bLa5Od+NvWzT70qkDr5uaFAzj6qBAgQIECAAAECBAgQeLyAW9ZYxDZ1gYwJjI3jhYwFYhwCBAgQIECAAAECBAi0Bdyy2uKhn009ALXLAmmLh34CCUDKBAgQIECAAAECBAgQeLqAW9ZYwjZ1gYwJjI3jhYwFYhwCBAgQIECAAAECBAi0Bdyy2uKhn009ALXLAmmLh34CCUDKBAgQIECAAAECBAgQeLqAW9ZYwjZ1gYwJjI3jhYwFYhwCBAgQIECAAAECBAi0Bdyy2uKhn009ALXLAmmLh34CCUDKBAgQIECAAAECBAgQeLqAW9ZYwjZ1gYwJjI3jhYwFYhwCBAgQIECAAAECBAi0BX7HMBCZ0T0+MQAAAABJRU5ErkJggg==",qx=Bx(),Vx=(zx(),zx(pu)),Yx={circle:'<svg height="24" width="24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11" style="fill:|fillcolor|;fill-opacity:|fillopacity|;stroke:|strokecolor|;stroke-opacity:|strokeopacity|;stroke-width:|strokewidth|"></circle></svg>',cross:'<svg viewBox="0 0 24 24" height="34" width="34" xmlns="http://www.w3.org/2000/svg"><polygon x="5" y="5" points="10,0 14,0 14,10 24,10 24,14 14,14 14,24 10,24 10,14 0,14 0,10 10,10 10,0" style="fill:|fillcolor|;fill-opacity:|fillopacity|;stroke:#999999;stroke-opacity:|strokeopacity|;stroke-width:|strokewidth|;stroke-linejoin:;stroke-dasharray:;stroke-linecap:;transform-origin: center;transform: rotate(|rotation|deg);"></polygon></svg>',plus:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" style="transform: rotate(|rotation|deg);"><path d="M14 0C6.2 0 0 6.2 0 14c0 2.6 1 5 2 7.4.8 2 7.4 15 10.4 21 .2.6.8 1 1.6 1 .6 0 1.2-.4 1.6-1 3-6 9.6-19 10.4-21 1-2.4 2-4.8 2-7.4 0-7.8-6.2-14-14-14zm0 22.4c-4.6 0-8.4-3.8-8.4-8.4 0-4.6 3.8-8.4 8.4-8.4 4.6 0 8.4 3.8 8.4 8.4 0 4.6-3.8 8.4-8.4 8.4z" fill="|fillcolor|" fill-rule="nonzero"/><path d="M6 6h16v16H6z"/><path d="M19.067 12.667h-3.734V8.933C15.333 8.2 14.733 8 14 8s-1.333.2-1.333.933v3.734H8.933C8.2 12.667 8 13.267 8 14s.2 1.333.933 1.333h3.734v3.734c0 .733.6.933 1.333.933s1.333-.2 1.333-.933v-3.734h3.734c.733 0 .933-.6.933-1.333s-.2-1.333-.933-1.333z" fill="|fillcolor|" fill-rule="nonzero"/><ellipse fill="|fillcolor|" fill-opacity="|fillopacity|" cx="14" cy="14" rx="8.5" ry="8.5"/></g></svg>',square:'<svg height="34" width="34" xmlns="http://www.w3.org/2000/svg"><rect x="5" y="5" width="24" height="24" style="fill:|fillcolor|;fill-opacity:|fillopacity|;stroke:|strokecolor|;stroke-opacity:|strokeopacity|;stroke-width:|strokewidth|;transform: rotate(|rotation|deg);transform-origin: center;"></rect></svg>',star:'<svg viewBox="0 0 24 24" height="34" width="34" xmlns="http://www.w3.org/2000/svg"><polygon x="5" y="5" points="12,0 19,21 1,8 23,8 5,21 12,0" style="fill:|fillcolor|;fill-opacity:|fillopacity|;stroke:|strokecolor|;stroke-opacity:|strokeopacity|;stroke-width:|strokewidth|;transform: rotate(|rotation|deg);transform-origin: center;"></polygon></svg>',triangle:'<svg viewBox="0 0 34 34" height="34" width="34" xmlns="http://www.w3.org/2000/svg"><polygon x="5" y="5" points="12,0 24,24 0,24 12,0" style="fill:|fillcolor|;fill-opacity:|fillopacity|;stroke:|strokecolor|;stroke-opacity:|strokeopacity|;stroke-width:|strokewidth|;transform: rotate(|rotation|deg);transform-origin: center;"></polygon></svg>'};function Hx(e,t){let n=Yx[e.icon?e.icon.identifier:"plus"];return e.fill&&e.fill.fill&&(n=n.replace(/\|fillcolor\|/g,t?pu:e.fill.fill),n=n.replace(/\|fillopacity\|/g,t?"1":e.fill.fill_opacity.toString())),e.stroke&&e.stroke.stroke&&(n=n.replace(/\|strokecolor\|/g,t?pu:e.stroke.stroke),n=n.replace(/\|strokeopacity\|/g,t?"1":e.stroke.stroke_opacity.toString()),n=n.replace(/\|strokewidth\|/g,t?"1":e.stroke.stroke_width.toString())),n=n.replace(/\|rotation\|/g,e.icon&&e.icon.rotation?e.icon.rotation.toString():"0"),"data:image/svg+xml;base64,"+window.btoa(n)}function $x(e){return[eE(e)]}function Kx(e){return eE(e,!1,!0)}function Xx(e){return eE(e,!0)}function Zx(){return rE()}Yx.cross_fill=Yx.cross;const Jx={},Qx={};function eE(e,t=!1,n=!1){const r=e.get("features")||[e];if(1===r.length){const e=r[0].get("readonly"),i=r[0].get("type"),o=n||r[0].get("highlight"),s=!!r[0].get("hover"),a=r[0].symbolisatie;return"punt"===i?a?nE(a,t):r[0].get("marker")?function(e){const t=new Image;t.src=e;const n=t.width,r=t.height;return new hm({image:new Xf({anchor:[.5,.5],imgSize:[n,r],scale:.85,src:e})})}(t?r[0].get("marker_active"):r[0].get("marker")):tE(i,t,o,e):a?o?tE(i,t,o):nE(a):tE(i,t||s,o,e)}return function(e,t=!1){const n=2*e+(t?1:0);let r=Jx[n];if(r)return r;const i=jx.getState().style;return r=new hm({image:new Xf({src:t?Ux(i.fill_active_color):Gx(i.fill_color),scale:.5+Math.min(e,50)/200}),text:new fm({fill:new rm({color:i.border_color}),font:"bold 18px 'Rijksoverheid Sans', sans-serif",text:e.toString()})}),Jx[n]=r,r}(r.length,t)}function tE(e="punt",t=!1,n=!1,r=!1){let i=Jx[t?1:0];if(i)return i;const o=["postcode","hectometerpaal","adres","punt","representatie"];let s=gu,a=Bx(s);if(jx){const i=jx.getState().style;if(!i.readonlyColor||!i.fill_active_color||!i.fill_color)throw new Error("Unexpected error: styleState property is undefined");s=r?i.readonlyColor:n||t?i.fill_active_color:i.fill_color,o.includes(e)&&(r&&(s=i.readonlyColor),a=t?zx(s):Bx(s),r&&(a=t?((e=pu)=>"data:image/svg+xml;base64,"+window.btoa(`<svg width="56" height="62" xmlns="http://www.w3.org/2000/svg">\n <defs>\n <filter x="-9%" y="-8.2%" width="118%" height="117.9%" filterUnits="objectBoundingBox" id="a">\n <feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>\n <feOffset in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>\n <feGaussianBlur stdDeviation=".5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>\n <feColorMatrix values="0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.25 0" in="shadowBlurOuter1"></feColorMatrix>\n </filter>\n <circle id="c" cx="23" cy="23" r="23"></circle>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" id="b"></path>\n </defs>\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(3 3)">\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#000" filter="url
3(#a)"></path>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#FFF"></path>\n </g>\n <g transform="translate(5 5)">\n <mask id="d" fill="#fff">\n <circle cx="22.224" cy="24.684" r="23"></circle>\n </mask>\n <circle cx="23" cy="23" r="23" transform="matrix(1, 0, 0, 1, 0, 0)" fill="${e}"></circle>\n <path d="M 70.224 46.684 L 70.224 47.684 L -20.776 47.684 L -20.776 46.684 L 70.224 46.684 Z M 70.224 43.684 L 70.224 44.684 L -20.776 44.684 L -20.776 43.684 L 70.224 43.684 Z M 70.224 40.684 L 70.224 41.684 L -20.776 41.684 L -20.776 40.684 L 70.224 40.684 Z M 70.224 37.684 L 70.224 38.684 L -20.776 38.684 L -20.776 37.684 L 70.224 37.684 Z M 70.224 34.684 L 70.224 35.684 L -20.776 35.684 L -20.776 34.684 L 70.224 34.684 Z M 70.224 31.684 L 70.224 32.684 L -20.776 32.684 L -20.776 31.684 L 70.224 31.684 Z M 70.224 28.684 L 70.224 29.684 L -20.776 29.684 L -20.776 28.684 L 70.224 28.684 Z M 70.224 25.684 L 70.224 26.684 L -20.776 26.684 L -20.776 25.684 L 70.224 25.684 Z M 70.224 22.684 L 70.224 23.684 L -20.776 23.684 L -20.776 22.684 L 70.224 22.684 Z M 70.224 19.684 L 70.224 20.684 L -20.776 20.684 L -20.776 19.684 L 70.224 19.684 Z M 70.224 16.684 L 70.224 17.684 L -20.776 17.684 L -20.776 16.684 L 70.224 16.684 Z M 70.224 13.684 L 70.224 14.684 L -20.776 14.684 L -20.776 13.684 L 70.224 13.684 Z M 70.224 10.684 L 70.224 11.684 L -20.776 11.684 L -20.776 10.684 L 70.224 10.684 Z M 70.224 7.684 L 70.224 8.684 L -20.776 8.684 L -20.776 7.684 L 70.224 7.684 Z M 70.224 4.684 L 70.224 5.684 L -20.776 5.684 L -20.776 4.684 L 70.224 4.684 Z M 70.224 1.684 L 70.224 2.684 L -20.776 2.684 L -20.776 1.684 L 70.224 1.684 Z" fill="#FFF" opacity="0.5" mask="url(#d)" transform="matrix(0.707107, 0.707107, -0.707107, 0.707107, 24.695716, -10.252732)"></path>\n </g>\n <path d="M28 16c6.627 0 12 5.373 12 12s-5.373 12-12 12-12-5.373-12-12 5.373-12 12-12zm0 6a6 6 0 1 0 0 12 6 6 0 0 0 0-12z" fill="#FFF"></path>\n </g>\n</svg>`))(s):((e=mu)=>"data:image/svg+xml;base64,"+window.btoa(`<svg width="56" height="63px" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">\n <defs>\n <filter x="-9%" y="-8.2%" width="118%" height="117.9%" filterUnits="objectBoundingBox" id="a">\n <feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>\n <feOffset in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>\n <feGaussianBlur stdDeviation=".5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>\n <feColorMatrix values="0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.25 0" in="shadowBlurOuter1"></feColorMatrix>\n </filter>\n <circle id="c" cx="23" cy="23" r="23"></circle>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" id="b"></path>\n </defs>\n <g transform="matrix(1, 0, 0, 1, 3, 3)" fill="none" fill-rule="evenodd">\n <path d="M 25 0 C 38.807 0 50 11.193 50 25 C 50 36.306 42.494 45.86 32.194 48.95 L 25.707 55.435 C 25.317 55.825 24.683 55.825 24.293 55.435 L 17.806 48.95 C 7.506 45.86 0 36.306 0 25 C 0 11.
3193 11.193 0 25 0 Z" fill="#000" filter="url(#a)" bx:origin="0.5 0.484498"></path>\n <path d="M 25 0 C 38.807 0 50 11.193 50 25 C 50 36.306 42.494 45.86 32.194 48.95 L 25.707 55.435 C 25.317 55.825 24.683 55.825 24.293 55.435 L 17.806 48.95 C 7.506 45.86 0 36.306 0 25 C 0 11.193 11.193 0 25 0 Z" fill="#FFF"></path>\n <g transform="translate(2 2)">\n <mask id="d" fill="#fff">\n <circle cx="22.337" cy="24.837" r="23"></circle>\n </mask>\n <circle cx="23" cy="23" r="23" transform="matrix(1, 0, 0, 1, 0, 0)" fill="${e}"></circle>\n <path d="M 70.337 46.837 L 70.337 47.837 L -20.663 47.837 L -20.663 46.837 L 70.337 46.837 Z M 70.337 43.837 L 70.337 44.837 L -20.663 44.837 L -20.663 43.837 L 70.337 43.837 Z M 70.337 40.837 L 70.337 41.837 L -20.663 41.837 L -20.663 40.837 L 70.337 40.837 Z M 70.337 37.837 L 70.337 38.837 L -20.663 38.837 L -20.663 37.837 L 70.337 37.837 Z M 70.337 34.837 L 70.337 35.837 L -20.663 35.837 L -20.663 34.837 L 70.337 34.837 Z M 70.337 31.837 L 70.337 32.837 L -20.663 32.837 L -20.663 31.837 L 70.337 31.837 Z M 70.337 28.837 L 70.337 29.837 L -20.663 29.837 L -20.663 28.837 L 70.337 28.837 Z M 70.337 25.837 L 70.337 26.837 L -20.663 26.837 L -20.663 25.837 L 70.337 25.837 Z M 70.337 22.837 L 70.337 23.837 L -20.663 23.837
3L -20.663 22.837 L 70.337 22.837 Z M 70.337 19.837 L 70.337 20.837 L -20.663 20.837 L -20.663 19.837 L 70.337 19.837 Z M 70.337 16.837 L 70.337 17.837 L -20.663 17.837 L -20.663 16.837 L 70.337 16.837 Z M 70.337 13.837 L 70.337 14.837 L -20.663 14.837 L -20.663 13.837 L 70.337 13.837 Z M 70.337 10.837 L 70.337 11.837 L -20.663 11.837 L -20.663 10.837 L 70.337 10.837 Z M 70.337 7.837 L 70.337 8.837 L -20.663 8.837 L -20.663 7.837 L 70.337 7.837 Z M 70.337 4.837 L 70.337 5.837 L -20.663 5.837 L -20.663 4.837 L 70.337 4.837 Z M 70.337 1.837 L 70.337 2.837 L -20.663 2.837 L -20.663 1.837 L 70.337 1.837 Z" fill="#fff" opacity="0.5" mask="url(#d)" transform="matrix(0.707107, 0.707107, -0.707107, 0.707107, 24.837, -10.287822)"></path>\n </g>\n <circle fill="#FFF" cx="25" cy="25" r="6"></circle>\n </g>\n</svg>`))(s)),"representatie"===e&&(a=t?((e=pu)=>"data:image/svg+xml;base64,"+window.btoa(`<svg width="56" height="62" xmlns="http://www.w3.org/2000/svg">\n <defs>\n <filter x="-9%" y="-8.2%" width="118%" height="117.9%" filterUnits="objectBoundingBox" id="a">\n <feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>\n <feOffset in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>\n <feGaussianBlur stdDeviation=".5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>\n <feColorMatrix values="0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.25 0" in="shadowBlurOuter1"></feColorMatrix>\n </filter>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" id="b"></path>\n </defs>\n <g transform="translate(3 3)" fill="none" fill-rule="evenodd">\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#000" filter="url(#a)"></path>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#FFF"></path>\n <circle fill="${e}" cx="25" cy="25" r="23"></circle>\n <g fill="#FFF">\n <path d="M33.444 22.778h-6.222v-6.222c0-1.223-1-1.556-2.222-1.556s-2.222.333-2.222 1.556v6.222h-6.222c-1.223 0-1.556 1-1.556 2.222s.333 2.222 1.556 2.222h6.222v6.222c0 1.223 1 1.556 2.222 1.556s2.222-.333 2.222-1.556v-6.222h6.222c1.223 0 1.556-1 1.556-2.222s-.333-2.222-1.556-2.222z"></path>\n </g>\n </g>\n</svg>`))(s):((e=gu)=>"data:image/svg+xml;base64,"+window.btoa(`<svg width="56" height="62" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">\n <defs>\n <filter x="-9%" y="-8.2%" width="118%" height="117.9%" filterUnits="objectBoundingBox" id="a">\n <feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>\n <feOffset in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>\n <feGaussianBlur stdDeviation=".5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>\n <feColorMatrix values="0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.25 0" in="shadowBlurOuter1"></feColorMatrix>\n </filter>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" id="b"></path>\n </defs>\n <g transform="translate(3 3)" fill="none" bx:origin="0.5 1">\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#000" filter="url(#a)"></path>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#FFF"></path>\n <circle fill="${e}" cx="25" cy="25" r="23"></circle>\n <g fill="#FFF">\n <path d="M29.222 23.889h-3.11v-3.111c0-.611-.5-.778-1.112-.778-.611 0-1.111.167-1.111.778v3.11h-3.111c-.611 0-.778.5-.778 1.112 0 .611.167 1.111.778 1.111h3.11v3.111c0 .611.5.778 1.112.778.611 0 1.111-.167 1.111-.778v-3.11h3.111c.611 0 .778-.5.778-1.112 0-.611-.167-1.111-.778-1.111z"></path>\n </g>\n </g>\n</svg>`))(s)))}return i=new hm({fill:new rm({color:uE(s,.25)}),image:new Xf({anchor:[.5,.95],imgSize:[56,62],scale:.7,src:a}),stroke:new om({color:uE(s,.8),width:4})}),i}function nE(e,t){let n,r,i;if(e.fill&&(n=new rm({color:e.fill.fill_pattern?e.fill.fill_pattern:uE(e.fill.fill,e.fill.fill_opacity)})),e.stroke&&(r=new om({color:uE(e.stroke.stroke,e.stroke.stroke_opacity),lineDash:e.stroke.stroke_dasharray?e.stroke.stroke_dasharray.split(" "):null,width:e.stroke.stroke_width})),e.icon){const n=Hx(e,t);i=new Xf({anchor:[.5,.5],imgSize:[34,34],scale:e.icon.size/16,src:n})}return new hm({fill:n,image:i,stroke:r})}function rE(e=!0){let t=Qx[0];if(e&&t)return t;const n=jx.getState().style;return Gb(Wx).then((e=>{const r=Ub(e);t=new hm({fill:new rm({color:r}),stroke:new om({color:uE(n.zoneColor,1),width:4})}),Qx[0]=t})),t}const iE=tE(),oE=tE("punt",!0),sE=(tE("punt",!0),tE("punt",!1,!1,!0),new hm({fill:new rm({color:"rgba(21, 66, 115, 0.3)"}),image:new tm({fill:new rm({color:"rgba(21, 66, 115, 0.3)"}),radius:5,stroke:new om({color:"rgba(21, 66, 115, 0.8)",width:3})}),stroke:new om({color:"rgba(21, 66, 115, 0.8)",width:4})})),aE=new hm({image:new Xf({anchor:[.5,.95],imgSize:[56,62],scale:.7,src:((e=pu)=>"data:image/svg+xml;base64,"+window.btoa(`<svg width="56" height="62" xmlns="http://www.w3.org/2000/svg">\n <defs>\n <filter x="-9%" y="-8.2%" width="118%" height="117.9%" filterUnits="objectBoundingBox" id="a">\n <feMorphology radius="1" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>\n <feOffset in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>\n <feGaussianBlur stdDeviation=".5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>\n <feColorMatrix values="0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.25 0" in="shadowBlurOuter1"></feColorMatrix>\n </filter>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" id="b"></path>\n </defs>\n <g transform="translate(3 3)" fill="none" fill-rule="evenodd">\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#000" filter="url
3(#a)"></path>\n <path d="M25 0c13.807 0 25 11.193 25 25 0 11.306-7.506 20.86-17.806 23.95l-6.487 6.485a1 1 0 0 1-1.414 0l-6.487-6.485C7.506 45.86 0 36.306 0 25 0 11.193 11.193 0 25 0z" transform="matrix(1, 0, 0, 1, 0, 0)" fill="#FFF"></path>\n <circle fill="${e}" cx="25" cy="25" r="23"></circle>\n <g fill="#FFF">\n <path d="m32.853 30.09-6.69-11.454c-.509-.848-1.817-.848-2.326 0l-6.69 11.455c-.437.848.145 1.909 1.163 1.909h13.38c1.018 0 1.6-1.06 1.163-1.91zM24.2 22.173l1.818-.212-.218 3.323v1.768h-1.673v-4.88h.073zm.8 8.272c-.8 0-1.236-.424-1.236-1.272 0-.707.436-1.344 1.236-1.344s1.236.495 1.236 1.344c0 .707-.436 1.272-1.236 1.272z"></path>\n </g>\n </g>\n</svg>`))()})}),lE=new hm({fill:new rm({color:"rgba(0, 0, 0, 0.3)"})});function uE(e,t){const[n,r,i]=Array.from(Od(e));return Sd([n,r,i,t])}function cE(e){return e<10?`0${e}`:`${e}`}var hE=n(6306);const dE=hE.object().keys({collections:hE.array().items(hE.object({url:hE.string().required()})),debug:hE.boolean(),locations:hE.array().items(hE.object({ext_ref_id:hE.string(),geometry:hE.string(),geometry_type:hE.string().valid("WKT"),id:hE.string(),locatieserver_id:hE.string(),marker:hE.string(),omschrijving:hE.string(),readonly:hE.boolean(),title:hE.string(),type:hE.string(),url:hE.string()}).unknown(!0).when(hE.object({locatieserver_id:hE.exist()}).unknown(!0),{otherwise:hE.object({type:hE.required()})})),markers:hE.array().items(hE.object({marker:hE.string().required(),marker_active:hE.string(),name:hE.string().required()})),mount_element:hE.alternatives().try(hE.object(),hE.string()).required(),on_cancel:hE.func(),on_location_click:hE.func(),on_submit:hE.func(),options:hE.object().keys({allow_click:hE.boolean(),allow_hover:hE.boolean(),center:hE.object().keys({circle:hE.object().keys({radius:hE.number(),x:hE.number(),y:hE.number()}),highlight:hE.boolean(),location:hE.object().keys({title:hE.string(),type:hE.string()}),type:hE.string().valid(["auto","circle","location"])}),class:hE.string(),clustering:hE.boolean(),controls:hE.array(),ctrl_zoom:hE.boolean(),features:hE.array(),geobrowse:hE.object().keys({area:hE.object().keys({circle:hE.object().keys({radius:hE.number(),x:hE.number(),y:hE.number()}),location:hE.object().keys({title:hE.string(),type:hE.string()}),type:hE.string().valid(["circle","location"])}),date_from:hE.date(),date_to:hE.date(),filters:hE.array().items(hE.object({name:hE.string().required(),operator:hE.string(),value:hE.string().required()})),collection:hE.string(),on_zoom_pan:hE.func(),pan_threshold:hE.number(),query:hE.string()}),layers:hE.object().keys({bgtachtergrondkaart:hE.object().keys({enabled:hE.boolean()})}),location_button:hE.object().keys({title:hE.string(),targetBlank:hE.boolean()}),location_types:hE.array(),maxzoom:hE.number(),minzoom:hE.number(),mode:hE.string().valid(["geoedit","geoview","geobrowse"]),nonce:hE.string(),optimize_complex_geo:hE.boolean(),title:hE.string()}),publication_id:hE.string(),styles:hE.object().keys({border_color:hE.string(),border_width:hE.number(),fill_active_color:hE.string(),fill_color:hE.string()})});const fE=function(e,t){return n=this,r=void 0,o=function*(){try{const n=(yield Fh.get(e)).data.features[0];let r="";switch(n.geometry.type){case"LineString":r="LINESTRING("+n.geometry.coordinates.map((e=>e.join(" "))).join(", ")+")";break;case"Point":r="POINT("+n.geometry.coordinates.join(" ")+")";break;case"Polygon":r="POLYGON("+n.geometry.coordinates.map((e=>"("+e.map((e=>e.join(" "))).join(", ")+")")).join(", ")+")"}const i=new Wi,o=i.writeGeometry(i.readGeometry(r).transform("EPSG:3857","EPSG:28992"));return console.warn("Properties",n.properties),{geometrie_rd:o,id:rl(),type:t,weergavenaam:n.properties.naam}}catch(e){return console.debug("NULL RETURNED")}},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{l(o.next(e))}catch(e){t(e)}}function a(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}l((o=o.apply(n,r||[])).next())}));var n,r,i,o};function pE(e){const t=window;t.dataLayer=t.dataLayer||[],t.dataLayer.push(Object.assign(Object.assign({},e),{event:"kpmEvent",eventCategory:"kpm",eventName:"|"+e.eventName.join("|")+"|",eventAction:"|"+e.eventAction+("start"===e.eventAction?`|${Kb}|`:"|")}))}const gE={[Al]:"Toon kaart",[Ll]:"Toon luchtfoto"},mE=Z((function(e){return{activeBaseLayer:e.layer.activeBaseLayer}}),(function(e){return{setActiveBaseLayer:t=>e(function(e){return{layer:e,type:Yl}}(t))}}))((function({activeBaseLayer:e,setActiveBaseLayer:n}){const r=()=>e===Il.LUCHTFOTO?Il.BRT_ACHTERGRONDKAART:Il.LUCHTFOTO;return t.createElement("div",{className:`map-button map-button--base-layer-selector map-button--base-layer-selector-${r()}`,"data-kpm-selector":"base-layer-selector"},t.createElement("button",{type:"button",onClick:function(){const e=r();n(e),pE({eventAction:"view",eventName:["baseLayer",e]})},title:gE[r()],"aria-label":gE[r()],"data-kpm-selector":"base-layer-selector-button"},gE[r()]))})),yE=function({modifier:e,modalOpen:n,onCloseModal:r,children:i}){const o=ee()("modal",{[`modal--${e}`]:e});return t.createElement(t.Fragment,null,n&&t.createElement("div",{className:o,role:"alert",onClick:e=>{e.stopPropagation()},"data-kpm-selector":"modal"},t.createElement("div",{className:"modal__inner"},t.createElement("div",{className:"modal__content","data-kpm-selector":"modal-content"},t.createElement("button",{type:"button",onClick:r,className:"modal__close","data-kpm-selector":"button-close"},"Modal sluiten"),i))))},vE={[tu]:{label:tu,drawingInteraction:"Point"},[nu]:{label:nu,drawingInteraction:"LineString"},[ru]:{label:ru,drawingInteraction:"Polygon"},[eu]:{label:eu,drawingInteraction:"Circle"},[iu]:{label:iu,drawingInteraction:"Point"}},_E=Z((function(e){return{drawMode:e.map.drawmode,mode:e.kpm.mode}}),(function(e){return{setKpmMode:t=>e(Y_(t)),setMapMode:t=>e(H_(t))}}))((function(e){const{setKpmMode:n,setMapMode:r,mode:i,drawMode:o}=e,s=(0,t.useContext)(Vh),[a,l]=(0,t.useState)({}),[u,c]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=Object.keys(vE).filter((e=>s.locationTypes.includes(e))).reduce(((e,t)=>(e[t]=vE[t],e)),{});l(e)}),[]),t.createElement(t.Fragment,null,t.createElement("button",{id:"draw-button",type:"button",className:"button button--primary button--divider-icon-draw",onClick:()=>{"draw"===i?o===Zl.FEEDBACK?(r(null),c(!1)):n(null):n(Tl.DRAW)},"data-kpm-selector":"tool-selector","aria-label":"Locatie tekenen"},t.createElement("span",{className:"divider"},"Locatie tekenen")),(h=a,t.createElement(yE,{modifier:"tooltip",modalOpen:"draw"===i&&"feedback"!==o,onCloseModal:()=>{n(null)}},t.createElement("h3",null,"Locatie tekenen"),u?t.createElement(t.Fragment,null,t.createElement("p",{className:"layer-selector layer-selector-link",onClick:()=>{c(!1)}},o,t.createElement("a",null,"Meer keuzes")),"punt"===o?t.createElement("p",null,"Tip:"," ",t.createElement("em",null,t.createElement("strong",null,"Klik")," op de kaart om een punt te plaatsen.")):null,"lijn"===o?t.createElement("p",null,"Tip:"," ",t.createElement("em",null,t.createElement("strong",null,"Klik")," op de kaart op een lijnsegment toe te voegen, ",t.createElement("strong",null,"dubbelklik")," om de lijn te sluiten.")):null,"vlak"===o?t.createElement("p",null,"Tip:"," ",t.createElement("em",null,t.createElement("strong",null,"Klik")," op de kaart op een vlaksegment toe te voegen, ",t.createElement("strong",null,"dubbelklik")," om het vlak te sluiten.")):null,"cirkel"===o?t.createElement("p",null,"Tip:"," ",t.createElement("em",null,t.createElement("strong",null,"Klik")," op de kaart om het middelpunt te selecteren, ",t.createElement("strong",null,"klik")," nogmaals om de cirkel te sluiten.")):null):t.createElement("div",null,t.createElement("p",null,"Kies een geometrische vorm om vrij te kunnen tekenen."),t.createElement("form",null,t.createElement("fieldset",{className:"form__element radiogroup","data-kpm-selector":"toolselector-draw-modes"},Object.keys(h).map((i=>t.createElement(t.Fragment,{key:i},t.createElement("input",{type:"radio",id:i,name:"possible-layers",className:"radio__input",value:i,checked:e.drawMode===i,onChange:e=>{n(Tl.DRAW),c(!0),r(e.target.value)},"data-kpm-selector":`layerselector-draw-mode-${i}`}),t.createElement("label",{className:"radio__label",htmlFor:i},h[i].label))))))))));var h}
3)),bE=class extends Ee{constructor(e,t,n){super(),n=n||{},this.tileCoord=e,this.state=t,this.key="",this.transition_=void 0===n.transition?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(ne)}release(){this.setState(4)}getKey(){return this.key+"/"+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(4!==this.state){if(3!==this.state&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()}}load(){Oe()}getAlpha(e,t){if(!this.transition_)return 1;let n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;const r=t-n+1e3/60;return r>=this.transition_?1:zm(r/this.transition_)}inTransition(e){return!!this.transition_&&-1!==this.transitionStarts_[e]}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}disposeInternal(){this.release(),super.disposeInternal()}};function wE(e){return e instanceof Image||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageBitmap?e:null}const xE=new Error("disposed"),EE=[256,256],SE=class extends bE{constructor(e){super(e.tileCoord,0,{transition:e.transition,interpolate:e.interpolate}),this.loader_=e.loader,this.data_=null,this.error_=null,this.size_=e.size||null,this.controller_=e.controller||null}getSize(){if(this.size_)return this.size_;const e=wE(this.data_);return e?[e.width,e.height]:EE}getData(){return this.data_}getError(){return this.error_}load(){if(0!==this.state&&3!==this.state)return;this.state=1,this.changed();const e=this;this.loader_().then((function(t){e.data_=t,e.state=2,e.changed()})).catch((function(t){e.error_=t,e.state=3,e.changed()}))}disposeInternal(){this.controller_&&(this.controller_.abort(xE),this.controller_=null),super.disposeInternal()}},CE=class extends bE{constructor(e,t,n,r,i,o){super(e,t,o),this.crossOrigin_=r,this.src_=n,this.key=n,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.unlisten_=null,this.tileLoadFunction_=i}getImage(){return this.image_}setImage(e){this.image_=e,this.state=2,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=3,this.unlistenImage_(),this.image_=function(){const e=nd(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=2:this.state=4,this.unlistenImage_(),this.changed()}load(){3==this.state&&(this.state=0,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),0==this.state&&(this.state=1,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=function(e,t,n){const r=e;let i=!0,o=!1,s=!1;const a=[Ce(r,"load",(function(){s=!0,o||t()}))];return r.src&&ed?(o=!0,r.decode().then((function(){i&&t()})).catch((function(e){i&&(s?t():n())}))):a.push(Ce(r,"error",n)),function(){i=!1,a.forEach(Me)}}(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}};class ME{constructor(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)}
vendor: 3,347 bytes, line 3
3getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function kE(e,t,n,r,i){return void 0!==i?(i.minX=e,i.maxX=t,i.minY=n,i.maxY=r,i):new ME(e,t,n,r)}const TE=ME;let PE;const OE=[];function IE(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function RE(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function AE(e,t,n,r){const i=rr(n,t,e);let o=$n(t,r,n);const s=t.getMetersPerUnit();void 0!==s&&(o*=s);const a=e.getMetersPerUnit();void 0!==a&&(o/=a);const l=e.getExtent();if(!l||We(l,i)){const t=$n(e,o,i)/o;isFinite(t)&&t>0&&(o/=t)}return o}const LE=class{constructor(e,t,n,r,i,o,s){this.sourceProj_=e,this.targetProj_=t;let a={};const l=s?Zn((e=>mr(s,rr(e,this.targetProj_,this.sourceProj_)))):nr(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){const t=e[0]+"/"+e[1];return a[t]||(a[t]=l(e)),a[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&pt(r)>=pt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?pt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?pt(this.targetProj_.getExtent()):null;const u=dt(n),c=ft(n),h=ot(n),d=it(n),f=this.transformInv_(u),p=this.transformInv_(c),g=this.transformInv_(h),m=this.transformInv_(d),y=10+(o?Math.max(0,Math.ceil(Math.log2(rt(n)/(o*o*256*256)))):0);if(this.addQuad_(u,c,h,d,f,p,g,m,y),this.wrapsXInSource_){let e=1/0;this.triangles_.forEach((function(t,n,r){e=Math.min(e,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach((t=>{if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-e>this.sourceWorldWidth_/2){const n=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];n[0][0]-e>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-e>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-e>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);const r=Math.min(n[0][0],n[1][0],n[2][0]);Math.max(n[0][0],n[1][0],n[2][0])-r<this.sourceWorldWidth_/2&&(t.source=n)}}))}a={}}addTriangle_(e,t,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[e,t,n]})}addQuad_(e,t,n,r,i,o,s,a,l){const u=Be([i,o,s,a]),c=this.sourceWorldWidth_?pt(u)/this.sourceWorldWidth_:null,h=this.sourceWorldWidth_,d=this.sourceProj_.canWrapX()&&c>.5&&c<1;let f=!1;if(l>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(f=pt(Be([e,t,n,r]))/this.targetWorldWidth_>.25||f),!d&&this.sourceProj_.isGlobal()&&c&&(f=c>.25||f)),!f&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!gt(u,this.maxSourceExtent_))return;let p=0;if(!(f||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])))if(l>0)f=!0;else if(p=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1),1!=p&&2!=p&&4!=p&&8!=p
3)return;if(l>0){if(!f){const t=[(e[0]+n[0])/2,(e[1]+n[1])/2],r=this.transformInv_(t);let o;o=d?(Ft(i[0],h)+Ft(s[0],h))/2-Ft(r[0],h):(i[0]+s[0])/2-r[0];const a=(i[1]+s[1])/2-r[1];f=o*o+a*a>this.errorThresholdSquared_}if(f){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){const u=[(t[0]+n[0])/2,(t[1]+n[1])/2],c=this.transformInv_(u),h=[(r[0]+e[0])/2,(r[1]+e[1])/2],d=this.transformInv_(h);this.addQuad_(e,t,u,h,i,o,c,d,l-1),this.addQuad_(h,u,n,r,d,c,s,a,l-1)}else{const u=[(e[0]+t[0])/2,(e[1]+t[1])/2],c=this.transformInv_(u),h=[(n[0]+r[0])/2,(n[1]+r[1])/2],d=this.transformInv_(h);this.addQuad_(e,u,h,r,i,c,d,a,l-1),this.addQuad_(u,t,n,h,c,o,s,d,l-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}11&p||this.addTriangle_(e,n,r,i,s,a),14&p||this.addTriangle_(e,n,t,i,s,o),p&&(13&p||this.addTriangle_(t,r,e,o,a,i),7&p||this.addTriangle_(t,r,n,o,a,s))}calculateSourceExtent(){const e=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach((function(t,n,r){const i=t.source;Qe(e,i[0]),Qe(e,i[1]),Qe(e,i[2])})),e}getTriangles(){return this.triangles_}},NE=class extends bE{constructor(e,t,n,r,i,o,s,a,l,u,c,h){super(i,0,h),this.renderEdges_=void 0!==c&&c,this.pixelRatio_=s,this.gutter_=a,this.canvas_=null,this.sourceTileGrid_=t,this.targetTileGrid_=r,this.wrappedTileCoord_=o||i,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=e.canWrapX()?e.getExtent():void 0;const d=r.getTileCoordExtent(this.wrappedTileCoord_),f=this.targetTileGrid_.getExtent();let p=this.sourceTileGrid_.getExtent();const g=f?ht(d,f):d;if(0===rt(g))return void(this.state=4);const m=e.getExtent();m&&(p=p?ht(p,m):m);const y=r.getResolution(this.wrappedTileCoord_[0]),v=function(e,t,n,r){const i=st(n);let o=AE(e,t,i,r);return(!isFinite(o)||o<=0)&&nt(n,(function(n){return o=AE(e,t,n,r),isFinite(o)&&o>0})),o}(e,n,g,y);if(!isFinite(v)||v<=0)return void(this.state=4);const _=void 0!==u?u:.5;if(this.triangulation_=new LE(e,n,g,p,v*_,y),0===this.triangulation_.getTriangles().length)return void(this.state=4);this.sourceZ_=t.getZForResolution(v);let b=this.triangulation_.calculateSourceExtent();if(p&&(e.canWrapX()?(b[1]=Rt(b[1],p[1],p[3]),b[3]=Rt(b[3],p[1],p[3])):b=ht(b,p)),rt(b)){let n=0,r=0;e.canWrapX()&&(n=pt(m),r=Math.floor((b[0]-m[0])/n)),vt(b.slice(),e,!0).forEach((e=>{const i=t.getTileRangeForExtentAndZ(e,this.sourceZ_);for(let e=i.minX;e<=i.maxX;e++)for(let t=i.minY;t<=i.maxY;t++){const i=l(this.sourceZ_,e,t,s);if(i){const e=r*n;this.sourceTiles_.push({tile:i,offset:e})}}++r})),0===this.sourceTiles_.length&&(this.state=4)}else this.state=4}getImage(){return this.canvas_}reproject_(){const e=[];if(this.sourceTiles_.forEach((t=>{const n=t.tile;if(n&&2==n.getState()){const r=this.sourceTileGrid_.getTileCoordExtent(n.tileCoord);r[0]+=t.offset,r[2]+=t.offset;const i=this.clipExtent_?.slice();i&&(i[0]+=t.offset,i[2]+=t.offset),e.push({extent:r,clipExtent:i,image:n.getImage()})}})),this.sourceTiles_.length=0,0===e.length)this.state=3;else{const t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"==typeof n?n:n[0],i="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(t),s=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(e,t,n,r,i,o,s,a,l,u,c,h,d,f){const p=nd(Math.round(n*e),Math.round(n*t),OE);if(h||(p.imageSmoothingEnabled=!1),0===l.length)return p.canvas;function g(e){return Math.round(e*n)/n}p.scale(n,n),p.globalCompositeOperation="lighter";const m=[1/0,1/0,-1/0,-1/0];let y;l.forEach((function(e,t,n){Je(m,e.extent)}));const v=n/r,_=(h?1:1+Math.pow(2,-24))/v;if(!d||1!==l.length||0!==u){if(y=nd(Math.round(pt(m)*v),Math.round(ct(m)*v),OE),h||(y.imageSmoothingEnabled=!1),i&&f){const e=(i[0]-m[0])*v,t=-(i[3]-m[3])*v,n=pt(i)*v,r=ct(i)*v;y.rect(e,t,n,r),y.clip()}l.forEach((function(e,t,n){if(e.image.width>0&&e.image.height>0){if(e.clipExtent){y.save();const t=(e.clipExtent[0]-m[0])*v,n=-(e.clipExtent[3]-m[3])*v,r=pt(e.clipExtent)*v,i=ct(e.clipExtent)*v;y.rect(h?t:Math.round(t),h?n:Math.round(n),h?r:Math.round(t+r)-Math.round(t),h?i:Math.round(n+i)-Math.round(n)),y.clip()}const t=(e.extent[0]-m[0])*v,n=-(e.extent[3]-m[3])*v,r=pt(e.extent)*v,i=ct(e.extent)*v;y.drawImage(e.image,u,u,e.image.width-2*u,e.image.height-2*u,h?t:Math.round(t),h?n:Math.round(n),h?r:Math.round(t+r)-Math.round(t),h?i:Math.round(n+i)-Math.round(n)),e.clipExtent&&y.restore(
vendor: 1,690 bytes, line 3
3)}}))}const b=dt(s);return a.getTriangles().forEach((function(e,t,n){const r=e.source,i=e.target;let s=r[0][0],a=r[0][1],u=r[1][0],c=r[1][1],d=r[2][0],f=r[2][1];const v=g((i[0][0]-b[0])/o),w=g(-(i[0][1]-b[1])/o),x=g((i[1][0]-b[0])/o),E=g(-(i[1][1]-b[1])/o),S=g((i[2][0]-b[0])/o),C=g(-(i[2][1]-b[1])/o),M=s,k=a;s=0,a=0,u-=M,c-=k,d-=M,f-=k;const T=function(e){const t=e.length;for(let n=0;n<t;n++){let r=n,i=Math.abs(e[n][n]);for(let o=n+1;o<t;o++){const t=Math.abs(e[o][n]);t>i&&(i=t,r=o)}if(0===i)return null;const o=e[r];e[r]=e[n],e[n]=o;for(let r=n+1;r<t;r++){const i=-e[r][n]/e[n][n];for(let o=n;o<t+1;o++)n==o?e[r][o]=0:e[r][o]+=i*e[n][o]}}const n=new Array(t);for(let r=t-1;r>=0;r--){n[r]=e[r][t]/e[r][r];for(let i=r-1;i>=0;i--)e[i][t]-=e[i][r]*n[r]}return n}([[u,c,0,0,x-v],[d,f,0,0,S-v],[0,0,u,c,E-w],[0,0,d,f,C-w]]);if(!T)return;if(p.save(),p.beginPath(),function(){if(void 0===PE){const e=nd(6,6,OE);e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",IE(e,4,5,4,0),IE(e,4,5,0,5);const t=e.getImageData(0,0,3,3).data;PE=RE(t,0)||RE(t,4)||RE(t,8),od(e),OE.push(e.canvas)}return PE}()||!h){p.moveTo(x,E);const e=4,t=v-x,n=w-E;for(let r=0;r<e;r++)p.lineTo(x+g((r+1)*t/e),E+g(r*n/(e-1))),r!=e-1&&p.lineTo(x+g((r+1)*t/e),E+g((r+1)*n/(e-1)));p.lineTo(S,C)}else p.moveTo(x,E),p.lineTo(v,w),p.lineTo(S,C);let P;if(p.clip(),p.transform(T[0],T[2],T[1],T[3],v,w),p.translate(m[0]-M,m[3]-k),y)P=y.canvas,p.scale(_,-_);else{const e=l[0],t=e.extent;P=e.image,p.scale(pt(t)/P.width,-ct(t)/P.height)}p.drawImage(P,0,0),p.restore()})),y&&(od(y),OE.push(y.canvas)),c&&(p.save(),p.globalCompositeOperation="source-over",p.strokeStyle="black",p.lineWidth=1,a.getTriangles().forEac
3h((function(e,t,n){const r=e.target,i=(r[0][0]-b[0])/o,s=-(r[0][1]-b[1])/o,a=(r[1][0]-b[0])/o,l=-(r[1][1]-b[1])/o,u=(r[2][0]-b[0])/o,c=-(r[2][1]-b[1])/o;p.beginPath(),p.moveTo(a,l),p.lineTo(i,s),p.lineTo(u,c),p.closePath(),p.stroke()})),p.restore()),p.canvas}(r,i,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,a,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=2}this.changed()}load(){if(0==this.state){this.state=1,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((({tile:t})=>{const n=t.getState();if(0==n||1==n){e++;const n=Se(t,ne,(r=>{const i=t.getState();2!=i&&3!=i&&4!=i||(Me(n),e--,0===e&&(this.unlistenSources_(),this.reproject_()))}));this.sourcesListenerKeys_.push(n)}})),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function({tile:e},t,n){0==e.getState()&&e.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(Me),this.sourcesListenerKeys_=null}release(){this.canvas_&&(od(this.canvas_.getContext("2d")),OE.push(this.canvas_),this.canvas_=null),super.release()}},DE=class{constructor(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}deleteOldest(){const e=this.pop();e instanceof ue&&e.dispose()}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.deleteOldest()}clear(){for(;this.oldest_;)this.deleteOldest()}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let t=this.oldest_;for(;t;)e(t.value_,t.key_,this),t=t.newer}get(e,t){const n=this.entries_[e];return De(void 0!==n,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(e){const t=this.entries_[e];return De(void 0!==t,"Tried to get a value for a key that does not exist in the cache"),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let t,n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e}getValues(){const e=new Array(this.count_);let t,n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){return this.entries_[e]?.value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,t){this.get(e),this.entries_[e].value_=t}set(e,t){De(!(e in this.entries_),"Tried to set a value for a key that is used already");const n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_}setSize(e){this.highWaterMark=e}};function FE(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function jE(e){return t=e[0],(e[1]<<t)+e[2];var t}function BE(e,t,n,r){return`${e},${function(e,t,n){return e+"/"+t+"/"+n}(t,n,r)}`}function zE(e,t,n){if(!(n in e))return e[n]=new Set([t]),!0;const r=e[n],i=r.has(t);return i||r.add(t),!i}function GE(e,t,n){const r=e[n];return!!r&&r.delete(t)}function UE(e,t){const n=e.layerStatesArray[e.layerIndex];n.extent&&(t=ht(t,cr(n.extent,e.viewState.projection)));const r=n.layer.getRenderSource();if(!r.getWrapX()){const n=r.getTileGridForProjection(e.viewState.projection).getExtent();n&&(t=ht(t,n))}return t}const WE=class extends up{constructor(e,t){super(e),t=t||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision_,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=[1/0,1/0,-1/0,-1/0],this.tempTileRange_=new TE(0,0,0,0),this.tempTileCoord_=FE(0,0,0);
vendor: 4,290 bytes, line 3
3const n=void 0!==t.cacheSize?t.cacheSize:512;this.tileCache_=new DE(n),this.maxStaleKeys=.5*n}getTileCache(){return this.tileCache_}getOrCreateTile(e,t,n,r){const i=this.tileCache_,o=this.getLayer().getSource(),s=BE(o.getKey(),e,t,n);let a;if(i.containsKey(s))a=i.get(s);else{if(a=o.getTile(e,t,n,r.pixelRatio,r.viewState.projection),!a)return null;i.set(s,a)}return a}getTile(e,t,n,r){return this.getOrCreateTile(e,t,n,r)||null}getData(e){const t=this.frameState;if(!t)return null;const n=this.getLayer(),r=mr(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!We(i,r))return null;const o=t.viewState,s=n.getRenderSource(),a=s.getTileGridForProjection(o.projection),l=s.getTilePixelRatio(t.pixelRatio);for(let e=a.getZForResolution(o.resolution);e>=a.getMinZoom();--e){const n=a.getTileCoordForCoordAndZ(r,e),i=this.getTile(e,n[1],n[2],t);if(!i||2!==i.getState())continue;const u=a.getOrigin(e),c=Vf(a.getTileSize(e)),h=a.getResolution(e);let d;if(i instanceof CE||i instanceof NE)d=i.getImage();else{if(!(i instanceof SE))continue;if(d=wE(i.getData()),!d)continue}const f=Math.floor(l*((r[0]-u[0])/h-n[1]*c[0])),p=Math.floor(l*((u[1]-r[1])/h-n[2]*c[1])),g=Math.round(l*s.getGutterForProjection(o.projection));return this.getImageData(d,f+g,p+g)}return null}prepareFrame(e){this.renderedProjection?e.viewState.projection!==this.renderedProjection&&(this.tileCache_.clear(),this.renderedProjection=e.viewState.projection):this.renderedProjection=e.viewState.projection;const t=this.getLayer().getSource();if(!t)return!1;const n=t.getRevision();return this.renderedRevision_?this.renderedRevision_!==n&&(this.renderedRevision_=n,this.renderedSourceKey_===t.getKey()&&this.tileCache_.clear()):this.renderedRevision_=n,!0}enqueueTiles(e,t,n,r,i){const o=e.viewState,s=this.getLayer(),a=s.getRenderSource(),l=a.getTileGridForProjection(o.projection),u=Re(a);u in e.wantedTiles||(e.wantedTiles[u]={});const c=e.wantedTiles[u],h=s.getMapInternal(),d=Math.max(n-i,l.getMinZoom(),l.getZForResolution(Math.min(s.getMaxResolution(),h?h.getView().getResolutionForZoom(Math.max(s.getMinZoom(),0)):l.getResolution(0)),a.zDirection)),f=o.rotation,p=f?ut(o.center,o.resolution,f,e.size):void 0;for(let i=n;i>=d;--i){const n=l.getTileRangeForExtentAndZ(t,i,this.tempTileRange_),o=l.getResolution(i);for(let t=n.minX;t<=n.maxX;++t)for(let s=n.minY;s<=n.maxY;++s){if(f&&!l.tileCoordIntersectsViewport([i,t,s],p))continue;const n=this.getTile(i,t,s,e);if(!n)continue;if(!zE(r,n,i))continue;const a=n.getKey();if(c[a]=!0,0===n.getState()&&!e.tileQueue.isKeyQueued(a)){const r=FE(i,t,s,this.tempTileCoord_);e.tileQueue.enqueue([n,u,l.getTileCoordCenter(r),o])}}}}findStaleTile_(e,t){const n=this.tileCache_,r=e[0],i=e[1],o=e[2],s=this.getStaleKeys();for(let e=0;e<s.length;++e){const a=BE(s[e],r,i,o);if(n.containsKey(a)){const e=n.peek(a);if(2===e.getState())return e.endTransition(Re(this)),zE(t,e,r),!0}}return!1}findAltTiles_(e,t,n,r){const i=e.getTileRangeForTileCoordAndZ(t,n,this.tempTileRange_);if(!i)return!1;let o=!0;const s=this.tileCache_,a=this.getLayer().getRenderSource().getKey();for(let e=i.minX;e<=i.maxX;++e)for(let t=i.minY;t<=i.maxY;++t){const i=BE(a,n,e,t);let l=!1;if(s.containsKey(i)){const e=s.peek(i);2===e.getState()&&(zE(r,e,n),l=!0)}l||(o=!1)}return o}renderFrame(e,t){let n=!0;this.renderComplete=!0;const r=e.layerStatesArray[e.layerIndex],i=e.viewState,o=i.projection,s=i.resolution,a=i.center,l=e.pixelRatio,u=this.getLayer(),c=u.getSource(),h=c.getTileGridForProjection(o),d=h.getZForResolution(s,c.zDirection),f=h.getResolution(d),p=c.getKey();this.renderedSourceKey_?this.renderedSourceKey_!==p&&(this.prependStaleKey(this.renderedSourceKey_),this.renderedSourceKey_=p):this.renderedSourceKey_=p;let g=e.extent;const m=c.getTilePixelRatio(l);this.prepareContainer(e,t);const y=this.context.canvas.width,v=this.context.canvas.height,_=r.extent&&cr(r.extent);_&&(g=ht(g,cr(r.extent)));const b=f*y/2/m,w=f*v/2/m,x=[a[0]-b,a[1]-w,a[0]+b,a[1]+w],E={};this.renderedTiles.length=0;const S=u.getPreload();if(e.nextExtent){const t=h.getZForResolution(i.nextResolution,c.zDirection),n=UE(e,e.nextExtent);this.enqueueTiles(e,n,t,E,S)}const C=UE(e,g);if(this.enqueueTiles(e,C,d,E,0),S>0&&setTimeout((()=>{this.enqueueTiles(e,C,d-1,E,S-1)}),0),!(d in E))return this.container;
3const M=Re(this),k=e.time;for(const t of E[d]){const r=t.getState();if(4===r)continue;const i=t.tileCoord;if(2===r&&1===t.getAlpha(M,k)){t.endTransition(M);continue}if(0!==r&&(n=!1),3!==r&&(this.renderComplete=!1),this.findStaleTile_(i,E)){GE(E,t,d),e.animate=!0;continue}if(this.findAltTiles_(h,i,d+1,E))continue;const o=h.getMinZoom();for(let e=d-1;e>=o&&!this.findAltTiles_(h,i,e,E);--e);}const T=f/s*l/m,P=this.getRenderContext(e);yr(this.tempTransform,y/2,v/2,T,T,0,-y/2,-v/2),r.extent&&this.clipUnrotated(P,e,_),c.getInterpolate()||(P.imageSmoothingEnabled=!1),this.preRender(P,e);const O=Object.keys(E).map(Number);let I;O.sort(ce);const R=[],A=[];for(let t=O.length-1;t>=0;--t){const n=O[t],r=c.getTilePixelSize(n,l,o),i=h.getResolution(n)/f,s=r[0]*i*T,a=r[1]*i*T,u=h.getTileCoordForCoordAndZ(dt(x),n),d=h.getTileCoordExtent(u),p=mr(this.tempTransform,[m*(d[0]-x[0])/f,m*(x[3]-d[3])/f]),g=m*c.getGutterForProjection(o);for(const t of E[n]){if(2!==t.getState())continue;const r=t.tileCoord,i=u[1]-r[1],o=Math.round(p[0]-(i-1)*s),l=u[2]-r[2],h=Math.round(p[1]-(l-1)*a),d=Math.round(p[0]-i*s),f=Math.round(p[1]-l*a),m=o-d,y=h-f,v=1===O.length;let _=!1;I=[d,f,d+m,f,d+m,f+y,d,f+y];for(let e=0,t=R.length;e<t;++e)if(!v&&n<A[e]){const t=R[e];gt([d,f,d+m,f+y],[t[0],t[3],t[4],t[7]])&&(_||(P.save(),_=!0),P.beginPath(),P.moveTo(I[0],I[1]),P.lineTo(I[2],I[3]),P.lineTo(I[4],I[5]),P.lineTo(I[6],I[7]),P.moveTo(t[6],t[7]),P.lineTo(t[4],t[5]),P.lineTo(t[2],t[3]),P.lineTo(t[0],t[1]),P.clip())}R.push(I),A.push(n),this.drawTile(t,e,d,f,m,y,g,v),_&&P.restore(),this.renderedTiles.unshift(t),this.updateUsedTiles(e.usedTiles,c,t)}}if(this.renderedResolution=f,this.extentChanged=!this.renderedExtent_||!Ze(this.renderedExtent_,x),this.renderedExtent_=x,this.renderedPixelRatio=l,this.postRender(this.context,e),r.extent&&P.restore(),P.imageSmoothingEnabled=!0,this.renderComplete){const t=(e,t)=>{const n=Re(c),r=t.wantedTiles[n],i=r?Object.keys(r).length:0;this.updateCacheSize(i),this.tileCache_.expireCache()};e.postRenderFunctions.push(t)}return this.renderComplete||n||(e.animate=!0),this.container}updateCacheSize(e){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,2*e)}drawTile(e,t,n,r,i,o,s,a){let l;if(e instanceof SE){if(l=wE(e.getData()),!l)throw new Error("Rendering array data is not yet supported")}else l=this.getTileImage(e);if(!l)return;const u=this.getRenderContext(t),c=Re(this),h=t.layerStatesArray[t.layerIndex],d=h.opacity*(a?e.getAlpha(c,t.time):1),f=d!==u.globalAlpha;f&&(u.save(),u.globalAlpha=d),u.drawImage(l,s,s,l.width-2*s,l.height-2*s,n,r,i,o),f&&u.restore(),d!==h.opacity?t.animate=!0:a&&e.endTransition(c)}getImage(){const e=this.context;return e?e.canvas:null}getTileImage(e){return e.getImage()}updateUsedTiles(e,t,n){const r=Re(t);r in e||(e[r]={}),e[r][n.getKey()]=!0}},qE="preload",VE="useInterimTilesOnError",YE=class extends hy{constructor(e){e=e||{};const t=Object.assign({},e),n=e.cacheSize;delete e.cacheSize,delete t.preload,delete t.useInterimTilesOnError,super(t),this.on,this.once,this.un,this.cacheSize_=n,this.setPreload(void 0!==e.preload?e.preload:0),this.setUseInterimTilesOnError(void 0===e.useInterimTilesOnError||e.useInterimTilesOnError)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(qE)}setPreload(e){this.set(qE,e)}getUseInterimTilesOnError(){return this.get(VE)}setUseInterimTilesOnError(e){this.set(VE,e)}getData(e){return super.getData(e)}},HE=class extends YE{constructor(e){super(e)}createRenderer(){return new WE(this,{cacheSize:this.getCacheSize()})}};function $E(e,t){const n=(""+e).split("."),r=(""+t).split(".");for(let e=0;e<Math.max(n.length,r.length);e++){const t=parseInt(n[e]||"0",10),i=parseInt(r[e]||"0",10);if(t>i)return 1;if(i>t)return-1}return 0}function KE(e,t){const n=[];Object.keys(t).forEach((function(e){null!==t[e]&&void 0!==t[e]&&n.push(e+"="+encodeURIComponent(t[e]))}));const r=n.join("&");return e=e.replace(/[?&]$/,""),(e+=e.includes("?")?"&":"?")+r}const XE=/\{z\}/g,ZE=/\{x\}/g,JE=/\{y\}/g,QE=/\{-y\}/g;function eS(e){const t=[];let n=/\{([a-z])-([a-z])\}/.exec(e);
vendor: 16,680 bytes, line 3
3if(n){const r=n[1].charCodeAt(0),i=n[2].charCodeAt(0);let o;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e),n){const r=parseInt(n[2],10);for(let i=parseInt(n[1],10);i<=r;i++)t.push(e.replace(n[0],i.toString()));return t}return t.push(e),t}const tS=[0,0,0],nS=class{constructor(e){let t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,De(function(e){const t=((e,t)=>t-e)||ce;return e.every((function(n,r){if(0===r)return!0;const i=t(e[r-1],n);return!(i>0||0===i)}))}(this.resolutions_),"`resolutions` must be sorted in descending order"),!e.origins)for(let e=0,n=this.resolutions_.length-1;e<n;++e)if(t){if(this.resolutions_[e]/this.resolutions_[e+1]!==t){t=void 0;break}}else t=this.resolutions_[e]/this.resolutions_[e+1];this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==e.origin?e.origin:null,this.origins_=null,void 0!==e.origins&&(this.origins_=e.origins,De(this.origins_.length==this.resolutions_.length,"Number of `origins` and `resolutions` must be equal"));const n=e.extent;void 0===n||this.origin_||this.origins_||(this.origin_=dt(n)),De(!this.origin_&&this.origins_||this.origin_&&!this.origins_,"Either `origin` or `origins` must be configured, never both"),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,De(this.tileSizes_.length==this.resolutions_.length,"Number of `tileSizes` and `resolutions` must be equal")),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:256,De(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,"Either `tileSize` or `tileSizes` must be configured, never both"),this.extent_=void 0!==n?n:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map(((e,t)=>{const r=new TE(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(n){const e=this.getTileRangeForExtentAndZ(n,t);r.minX=Math.max(e.minX,r.minX),r.maxX=Math.min(e.maxX,r.maxX),r.minY=Math.max(e.minY,r.minY),r.maxY=Math.min(e.maxY,r.maxY)}return r})):n&&this.calculateTileRanges_(n)}forEachTileCoord(e,t,n){const r=this.getTileRangeForExtentAndZ(e,t);for(let e=r.minX,i=r.maxX;e<=i;++e)for(let i=r.minY,o=r.maxY;i<=o;++i)n([t,e,i])}forEachTileCoordParentTileRange(e,t,n,r){let i,o,s,a=null,l=e[0]-1;for(2===this.zoomFactor_?(o=e[1],s=e[2]):a=this.getTileCoordExtent(e,r);l>=this.minZoom;){if(void 0!==o&&void 0!==s?(o=Math.floor(o/2),s=Math.floor(s/2),i=kE(o,o,s,s,n)):i=this.getTileRangeForExtentAndZ(a,l,n),t(l,i))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,t,n){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){const n=2*e[1],r=2*e[2];return kE(n,n+1,r,r+1,t)}const r=this.getTileCoordExtent(e,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(r,e[0]+1,t)}return null}getTileRangeForTileCoordAndZ(e,t,n){if(t>this.maxZoom||t<this.minZoom)return null;const r=e[0],i=e[1],o=e[2];if(t===r)return kE(i,o,i,o,n);if(this.zoomFactor_){const e=Math.pow(this.zoomFactor_,t-r),s=Math.floor(i*e),a=Math.floor(o*e);return t<r?kE(s,s,a,a,n):kE(s,Math.floor(e*(i+1))-1,a,Math.floor(e*(o+1))-1,n)}const s=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(s,t,n)}getTileRangeForExtentAndZ(e,t,n){this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,tS);const r=tS[1],i=tS[2];return this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,tS),kE(r,tS[1],i,tS[2],n)}getTileCoordCenter(e){const t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=Vf(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]-(e[2]+.5)*r[1]*n]}getTileCoordExtent(e,t){const n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=Vf(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*i[0]*r,s=n[1]-(e[2]+1)*i[1]*r;return He(o,s,o+i[0]*r,s+i[1]*r,t)}getTileCoordForCoordAndResolution(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)}getTileCoordForXYAndResolution_(e,t,n,r,i){const o=this.getZForResolution(n),s=n/this.getResolution(o),a=this.getOrigin(o),l=Vf(this.getTileSize(o),this.tmpSize_);let u=s*(e-a[0])/n/l[0],c=s*(a[1]-t)/n/l[1];return r?(u=Ut(u,5)-1,c=Ut(c,5)-1):(u=Gt(u,5),c=Gt(c,5)),FE(o,u,c,i)}getTileCoordForXYAndZ_(e,t,n,r,i){const o=this.getOrigin(n),s=this.getResolution(n),a=Vf(this.getTileSize(n),this.tmpSize_);let l=(e-o[0])/s/a[0],u=(o[1]-t)/s/a[1];return r?(l=Ut(l,5)-1,u=Ut(u,5)-1):(l=Gt(l,5),u=Gt(u,5)),FE(n,l,u,i)}getTileCoordForCoordAndZ(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)}getTileCoordResolution(e){return this.resolutions_[e[0]]}getTileSize(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]}getFullTileRange(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null}getZForResolution(e,t){return Rt(de(this.resolutions_,e,t||0),this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(e,t){return $r(t,0,t.length,2,this.getTileCoordExtent(e))}calculateTileRanges_(e){const t=this.resolutions_.length,n=new Array(t);for(let r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n}};function rS(e){let t=e.getDefaultTileGrid();return t||(t=function(e){return function(e,t,n,r){r=void 0!==r?r:"top-left";const i=function(e,t,n,r){t=void 0!==t?t:42,n=Vf(void 0!==n?n:Km);const i=ct(e),o=pt(e);r=r>0?r:Math.max(o/n[0],i/n[1]);const s=t+1,a=new Array(s);for(let e=0;e<s;++e)a[e]=r/Math.pow(2,e);return a}(e,t,n);return new nS({extent:e,origin:at(e,r),resolutions:i,tileSize:n})}(iS(e),void 0,void 0,void 0)}(e),e.setDefaultTileGrid(t)),t}function iS(e){let t=(e=Hn(e)).getExtent();if(!t){const n=180*qt.degrees/e.getMetersPerUnit();t=He(-n,-n,n,n)}return t}function oS(e,t){return function(n,r,i){if(!n)return;let o;const s=n[0];if(t){const e=t.getFullTileRange(s);e&&(o=e.getHeight()-1)}return function(e,t,n,r,i){return e.replace(XE,t.toString()).replace(ZE,n.toString()).replace(JE,r.toString()).replace(QE,(function(){if(void 0===i)throw new Error("If the URL template has a {-y} placeholder, the grid extent must be known");return(i-r).toString()}))}(e,s,n[1],n[2],o)}}function sS(e){return 1===e.length?e[0]:function(t,n,r){if(!t)return;const i=Ft(jE(t),e.length);return e[i](t,n,r)}}class aS extends xe{constructor(e,t){super(e),this.tile=t}}const lS=class extends Ty{constructor(e){super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate}),this.on,this.once,this.un,this.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,this.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;this.tileGrid&&Vf(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),[256,256]),this.tmpSize=[0,0],this.key_=e.key||Re(this),this.tileOptions={transition:e.transition,interpolate:e.interpolate},this.zDirection=e.zDirection?e.zDirection:0}getGutterForProjection(e){return 0}getKey(){return this.key_}setKey(e){this.key_!==e&&(this.key_=e,this.changed())}getResolutions(e){const t=e?this.getTileGridForProjection(e):this.tileGrid;return t?t.getResolutions():null}getTile(e,t,n,r,i){return Oe()}getTileGrid(){return this.tileGrid}getTileGridForProjection(e){return this.tileGrid?this.tileGrid:rS(e)}getTilePixelRatio(e){return this.tilePixelRatio_}getTilePixelSize(e,t,n){const r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),o=Vf(r.getTileSize(e),this.tmpSize);return 1==i?o:(s=o,a=i,void 0===(l=this.tmpSize)&&(l=[0,0]),l[0]=s[0]*a+.5|0,l[1]=s[1]*a+.5|0,l);var s,a,l}getTileCoordForTileUrlFunction(e,t){const n=void 0!==t?t:this.getProjection(),r=void 0!==t?this.getTileGridForProjection(n):this.tileGrid||this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(e=function(e,t,n){const r=t[0],i=e.getTileCoordCenter(t),o=iS(n);if(!We(o,i)){const t=pt(o),n=Math.ceil((o[0]-i[0])/t);return i[0]+=t*n,e.getTileCoordForCoordAndZ(i,r)}return t}(r,e,n)),function(e,t){const n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;const o=t.getFullTileRange(n);return!o||o.containsXY(r,i)}(e,r)?e:null}clear(){}refresh(){this.clear(),super.refresh()}};class uS extends lS{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===uS.prototype.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,e.tileUrlFunction&&(this.tileUrlFunction=e.tileUrlFunction),this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(e){const t=e.target,n=Re(t),r=t.getState();let i;1==r?(this.tileLoadingKeys_[n]=!0,i="tileloadstart"):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],i=3==r?"tileloaderror":2==r?"tileloadend":void 0),null!=i&&this.dispatchEvent(new aS(i,t))}setTileLoadFunction(e){this.tileLoadFunction=e,this.changed()}setTileUrlFunction(e,t){this.tileUrlFunction=e,void 0!==t?this.setKey(t):this.changed()}setUrl(e){const t=eS(e);this.urls=t,this.setUrls(t)}setUrls(e){this.urls=e;const t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(e,t){const n=e.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=oS(e[i],t);return sS(r)}(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,n){}}const cS=uS;function hS(e,t){e.getImage().src=t}const dS=class extends cS{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:hS,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:void 0===e.interpolate||e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,this.tileClass=void 0!==e.tileClass?e.tileClass:CE,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!Qn(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||Qn(t,e)))return this.tileGrid;const n=Re(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=rS(e)),this.tileGridForProjection[n]}createTile_(e,t,n,r,i,o){const s=[e,t,n],a=this.getTileCoordForTileUrlFunction(s,i),l=a?this.tileUrlFunction(a,r,i):void 0,u=new this.tileClass(s,void 0!==l?0:4,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,u.addEventListener(ne,this.handleTileChange.bind(this)),u}getTile(e,t,n,r,i){const o=this.getProjection();if(!o||!i||Qn(o,i))return this.getTileInternal(e,t,n,r,o||i);const s=[e,t,n],a=this.getKey(),l=this.getTileGridForProjection(o),u=this.getTileGridForProjection(i),c=this.getTileCoordForTileUrlFunction(s,i),h=new NE(o,l,i,u,s,c,this.getTilePixelRatio(r),this.getGutter(),((e,t,n,r)=>this.getTileInternal(e,t,n,r,o)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return h.key=a,h}getTileInternal(e,t,n,r,i){const o=this.getKey();return this.createTile_(e,t,n,r,i,o)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const n=Hn(e);if(n){const e=Re(n);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}},fS="1.3.0";function pS(e,t,n,r,i,o,s){o=Object.assign({REQUEST:"GetMap"},o);const a=t/n,l=[zt(pt(e)/a,4),zt(ct(e)/a,4)];if(1!=n)switch(s){case"geoserver":const e=90*n+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+e:o.FORMAT_OPTIONS="dpi:"+e;break;case"mapserver":o.MAP_RESOLUTION=90*n;break;case"carmentaserver":case"qgis":o.DPI=90*n;break;default:throw new Error("Unknown `serverType` configured")}return function(e,t,n,r,i){i.WIDTH=n[0],i.HEIGHT=n[1];const o=r.getAxisOrientation(),s=$E(i.VERSION,"1.3")>=0;i[s?"CRS":"SRS"]=r.getCode();const a=s&&o.startsWith("ne")?[t[1],t[0],t[3],t[2]]:t;return i.BBOX=a.join(","),KE(e,i)}(i,e,l,r,o)}function gS(e,t){return Object.assign({REQUEST:t,SERVICE:"WMS",VERSION:fS,FORMAT:"image/png",STYLES:"",TRANSPARENT:"TRUE"},e)}const mS=class extends dS{constructor(e){e=e||{};const t=Object.assign({},e.params);super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection}),this.gutter_=void 0!==e.gutter?e.gutter:0,this.params_=t,this.v13_=!0,this.serverType_=e.serverType,this.hidpi_=void 0===e.hidpi||e.hidpi,this.tmpExtent_=[1/0,1/0,-1/0,-1/0],this.updateV13_(),this.setKey(this.getKeyForParams_())}getFeatureInfoUrl(e,t,n,r){const i=Hn(n),o=this.getProjection()||i;let s=this.getTileGrid();s||(s=this.getTileGridForProjection(o));const a=rr(e,i,o),l=AE(o,i,e,t),u=s.getZForResolution(l,this.zDirection),c=s.getResolution(u),h=s.getTileCoordForCoordAndZ(a,u);if(s.getResolutions().length<=h[0])return;let d=s.getTileCoordExtent(h,this.tmpExtent_);const f=this.gutter_;0!==f&&(d=ze(d,c*f,d));const p={QUERY_LAYERS:this.params_.LAYERS};Object.assign(p,gS(this.params_,"GetFeatureInfo"),r);const g=Math.floor((a[0]-d[0])/c),m=Math.floor((d[3]-a[1])/c);return p[this.v13_?"I":"X"]=g,p[this.v13_?"J":"Y"]=m,this.getRequestUrl_(h,d,1,o||i,p)}getLegendUrl(e,t){if(void 0===this.urls[0])return;const n={SERVICE:"WMS",VERSION:fS,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===t||void 0===t.LAYER){const e=this.params_.LAYERS;if(Array.isArray(e)&&1!==e.length)return;n.LAYER=e}if(void 0!==e){const t=this.getProjection()?this.getProjection().getMetersPerUnit():1,r=28e-5;n.SCALE=e*t/r}return Object.assign(n,t),KE(this.urls[0],n)}getGutter(){return this.gutter_}getParams(){return this.params_}getRequestUrl_(e,t,n,r,i){const o=this.urls;if(!o)return;let s;return s=1==o.length?o[0]:o[Ft(jE(e),o.length)],pS(t,(this.tileGrid||this.getTileGridForProjection(r)).getResolution(e[0]),n,r,s,i,this.serverType_)}getTilePixelRatio(e){return this.hidpi_&&void 0!==this.serverType_?e:1}getKeyForParams_(){let e=0;const t=[];for(const n in this.params_)t[e++]=n+"-"+this.params_[n];return t.join("/")}updateParams(e){Object.assign(this.params_,e),this.updateV13_(),this.setKey(this.getKeyForParams_())}updateV13_(){const e=this.params_.VERSION||fS;this.v13_=$E(e,"1.3")>=0}tileUrlFunction(e,t,n){let r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(n)),r.getResolutions().length<=e[0])return;1==t||this.hidpi_&&void 0!==this.serverType_||(t=1);const i=r.getResolution(e[0]);let o=r.getTileCoordExtent(e,this.tmpExtent_);const s=this.gutter_;0!==s&&(o=ze(o,i*s,o));const a=Object.assign({},gS(this.params_,"GetMap"));return this.getRequestUrl_(e,o,t,n,a)}},yS=class extends dS{constructor(e){const t=void 0!==e.requestEncoding?e.requestEncoding:"KVP",n=e.tileGrid;let r=e.urls;void 0===r&&void 0!==e.url&&(r=eS(e.url)),super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:r,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition,zDirection:e.zDirection}),this.version_=void 0!==e.version?e.version:"1.0.0",this.format_=void 0!==e.format?e.format:"image/jpeg",this.dimensions_=void 0!==e.dimensions?e.dimensions:{},this.layer_=e.layer,this.matrixSet_=e.matrixSet,this.style_=e.style,this.requestEncoding_=t,this.setKey(this.getKeyForDimensions_()
3),r&&r.length>0&&(this.tileUrlFunction=sS(r.map(this.createFromWMTSTemplate.bind(this))))}setUrls(e){this.urls=e;const t=e.join("\n");this.setTileUrlFunction(sS(e.map(this.createFromWMTSTemplate.bind(this))),t)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const e=this.urls?this.urls.slice(0):[];for(const t in this.dimensions_)e.push(t+"-"+this.dimensions_[t]);return e.join("/")}updateDimensions(e){Object.assign(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(e){const t=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==t&&Object.assign(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e="KVP"==t?KE(e,n):e.replace(/\{(\w+?)\}/g,(function(e,t){return t.toLowerCase()in n?n[t.toLowerCase()]:e}));const r=this.tileGrid,i=this.dimensions_;return function(n,o,s){if(!n)return;const a={TileMatrix:r.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};Object.assign(a,i);let l=e;return l="KVP"==t?KE(l,a):l.replace(/\{(\w+?)\}/g,(function(e,t){return encodeURIComponent(a[t])})),l}}};const vS=class extends nS{constructor(e){super({extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes}),this.matrixIds_=e.matrixIds}getMatrixId(e){return this.matrixIds_[e]}getMatrixIds(){return this.matrixIds_}};function _S(e,t){const n={wms:{format:"image/png",lookupService:"locatieserver",maxZoom:24,minZoom:0,transparent:!0,url:"https://geodata.nationaalgeoregister.nl/{workSpaceName}/wms?",version:"1.1.1"},wmts:{attribution:'© <a href="http://openlayers.org/" rel="external" target="_blank">OpenLayers v'+Ae+'<span class="visually-hidden">Opent in nieuw venster</span></a> <a href="https://www.kadaster.nl" rel="external" target="_blank">Kadaster <span class="visually-hidden">Opent in nieuw venster</span></a> (<a href="https://creativecommons.org/licenses/by/4.0/" rel="external" target="_blank">CC BY 4.0 <span class="visually-hidden">Opent in nieuw venster</span></a>)',crs:"EPSG:28992",format:"png",lookupService:"locatieserver",maxZoom:24,minZoom:0,requestEncoding:"KVP",url:"https://geodata.nationaalgeoregister.nl/tiles/service"}},r={bgtachtergrondkaart:Object.assign({},n.wmts,{infoUrl:"https://www.pdok.nl/geo-services/-/article/basisregistratie-grootschalige-topografie-bgt-",layerName:"achtergrondvisualisatie",minZoom:t.layers.bgtachtergrondkaart.enabled?17:1/0,name:"BGT WMTS",requestEncoding:"REST",type:"wmts",url:"https://service.pdok.nl/lv/bgt/wmts/v1_0/achtergrondvisualisatie/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png"}),brtachtergrondkaart:Object.assign({},n.wmts,{infoUrl:"https://www.pdok.nl/geo-services/-/article/basisregistratie-topografie-achtergrondkaarten-brt-a-",layerName:"standaard",maxZoom:t.layers.bgtachtergrondkaart.enabled?16:24,name:"BRT Achtergrondkaart WMTS",type:"wmts",url:"https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0?"}),buurt:Object.assign({},n.wms,{infoUrl:"https://www.pdok.nl/geo-services/-/article/cbs-wijken-en-buurten",layerName:"buurten",name:"CBS Wijken en Buurten 2024 versie 1 WMS",styleName:"default",type:"wms",url:"https://service.pdok.nl/cbs/wijkenbuurten/2024/wms/v1_0?",version:"1.3.0"}),gemeente:Object.assign({},n.wms,{infoUrl:"https://www.pdok.nl/geo-services/-/article/bestuurlijke-gebieden",layerName:"Gemeentegebied",name:"Bestuurlijke Gebieden WMS",styleName:"Gemeentegebied",type:"wms",url:"https://service.pdok.nl/kadaster/bestuurlijkegebieden/wms/v1_0?",version:"1.3.0"}),luchtfoto:Object.assign({},n.wmts,{infoUrl:"https://www.pdok.nl/introductie/-/article/pdok-luchtfoto-rgb-open-",layerName:"Actueel_orthoHR",name:"Landelijke Voorziening Beeldmateriaal",requestEncoding:"REST",type:"wmts",url:"https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0/Actueel_orthoHR/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.jpeg"}),luchtfotolabels:Object.assign({},n.wmts,{infoUrl:"https://www.pdok.nl/geo-services/-/article/luchtfotolabels",layerName:"lufolabels",maxZoom:t.layers.bgtachtergrondkaart.enabled?16:24,name:"Luchtfoto Labels WMTS",requestEncoding:"REST",type:"wmts",url:"https://service.pdok.nl/bzk/luchtfotolabels/wmts/v1_0/lufolabels/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png"}),perceel:Object.assign({},n.wms,{infoUrl:"https://www.pdok.nl/geo-services/-/article/basisregistratie-kadaster-brk-",layerName:"Perceel",minZoom:17,name:"Kadastrale Kaart (WMS)",styleName:"standaard:perceel",type:"wms",url:"https://service.pdok.nl/kadaster/kadastralekaart/wms/v5_0?",version:"1.3.0"}),provincie:Object.assign({},n.wms,{infoUrl:"https://www.pdok.nl/geo-services/-/article/bestuurlijke-gebieden",layerName:"Provinciegebied",name:"Bestuurlijke Gebieden WMS",styleName:"Provinciegebied",type:"wms",url:"https://service.pdok.nl/kadaster/bestuurlijkegebieden/wms/v1_0?",version:"1.3.0"}),waterschap:Object.assign({},n.wms,{infoUrl:"https://www.pdok.nl/ogc-webservices/-/article/waterschappen-administratieve-eenheden-inspire-geharmoniseerd-",layerName:"AU.AdministrativeUnit",name:"Waterschappen Administratieve eenheden (INSPIRE geharmoniseerd) WMS",styleName:"AU.AdministrativeUnit.Alternative",type:"wms",url:"https://service.pdok.nl/hwh/administratieve-eenheden/waterschapsgrenzen/wms/v1_0?",version:"1.3.0"}),weg:Object.assign({},n.wms,{infoUrl:"https://www.pdok.nl/ogc-webservices/-/article/nationaal-wegen-bestand-nwb-wegen",layerName:"wegvakken",minZoom:14,name:"NWB - Wegen WMS",styleName:"wegvakken",type:"wms",url:"https://service.pdok.nl/rws/nwbwegen/wms
3/v1_0?",version:"1.3.0"}),wijk:Object.assign({},n.wms,{infoUrl:"https://www.pdok.nl/geo-services/-/article/cbs-wijken-en-buurten",layerName:"wijken",name:"CBS Wijken en Buurten 2024 WMS",styleName:"wijkenbuurten_thema_wijken_default",type:"wms",url:"https://service.pdok.nl/cbs/wijkenbuurten/2024/wms/v1_0?",version:"1.3.0"}),woonplaats:Object.assign({},n.wms,{infoUrl:"https://www.pdok.nl/geo-services/-/article/basisregistratie-adressen-en-gebouwen-ba-1",layerName:"woonplaats",name:"BAG WMS",styleName:"bag:woonplaats",type:"wms",url:"https://service.pdok.nl/lv/bag/wms/v2_0?",version:"1.3.0"})};return function(e){switch(e.type){case"wmts":e.url+=e.url.includes(e.type)?"/?":`/${e.type}/?`;break;case"wms":e.url=e.url.replace(/{workSpaceName}/,e.workSpaceName)}return e}(Object.assign(Object.assign({},r[e]),{id:e}))}function bS(e,t,n,r,i,o){const s=_S(e,t);let a;switch(s.type){case"wms":a=new mS({params:{LAYERS:s.layerName,STYLES:s.styleName,VERSION:s.version},serverType:"geoserver",url:s.url});break;case"wmts":{const e=[-285401.92,22598.08,595401.9199999999,903401.9199999999],t=new Vt({code:"EPSG:28992",units:"m",extent:e}),n=[3440.64,1720.32,860.16,430.08,215.04,107.52,53.76,26.88,13.44,6.72,3.36,1.68,.84,.42,.21];let r=Array.from(Array(15),((e,t)=>`EPSG:28992:${t}`));"REST"===s.requestEncoding&&(r=Array.from(Array(15),((e,t)=>`${t}`))),a=new yS({attributions:s.attribution,format:"image/png",layer:s.layerName,matrixSet:s.crs,projection:t,style:"default",tileGrid:new vS({matrixIds:r,origin:dt(e),resolutions:n}),requestEncoding:s.requestEncoding,url:s.url,wrapX:!1});break}}return n&&a.on("tileloaderror",(function(){n&&n()})),a.on("tileloadend",(function(){r&&r(!1),i&&i()})),a.on("tileloadstart",(function(){r&&r(!0),o&&o()})),a}function wS(e,t,n,r,i,o,s){const a=_S(t,n),l=bS(t,n,r,i,o,s),u=function(e,t){return{minResolution:e.minZoom>0?t.getResolutionForZoom(e.maxZoom+1):.2,maxResolution:e.minZoom>0?t.getResolutionForZoom(e.minZoom):void 0}}(a,e),c=Object.assign(Object.assign({},u),{source:l,title:a.layerName,preload:0});return new HE(c)}function xS(e,t,n){const r=_S(e,n);return t<=r.maxZoom&&t>=r.minZoom}const ES=function(){const e=" -webkit- -moz- -o- -ms- ".split(" ");if("ontouchstart"in window||navigator.maxTouchPoints>0)return!0;return t=["(",e.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia(t).matches;var t};function SS(e){const{message:n}=e,r=["message"];return!1!==n&&r.push("show"),t.createElement("div",{className:r.join(" "),id:"message-controls"},t.createElement("div",{className:"ol-popup"},t.createElement("h2",null,n)))}function CS(e){const n=(0,t.useRef)(void 0);return(0,t.useEffect)((()=>{n.current=e}),[e]),n.current}class MS{constructor(e){this.el=e,this.loading=0,this.loaded=0}addLoading(){++this.loading,this.update()}addLoaded(){++this.loaded,this.update()}update(){if(!this.el)return;const e=(this.loaded/this.loading*100).toFixed(1)+"%";this.el.style.width=e}show(){this.el&&(this.el.style.visibility="visible")}hide(){if(!this.el)return;const e=this.el.style;setTimeout((()=>{e.visibility="hidden",e.width="0"}),250)}}var kS=n(5072),TS=n.n(kS),PS=n(7825),OS=n.n(PS),IS=n(7659),RS=n.n(IS),AS=n(5056),LS=n.n(AS),NS=n(540),DS=n.n(NS),FS=n(1113),jS=n.n(FS),BS=n(2991),zS={};zS.styleTagTransform=jS(),zS.setAttributes=LS(),zS.insert=RS().bind(null,"head"),zS.domAPI=OS(),zS.insertStyleElement=DS(),TS()(BS.A,zS),BS.A&&BS.A.locals&&BS.A.locals;const GS=n.p+"media/_variables.scss";function US(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function WS(e,t){void 0===e&&(e={}),void 0===t&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{void 0===e[n]?e[n]=t[n]:US(t[n])&&US(e[n])&&Object.keys(t[n]).length>0&&WS(e[n],t[n])}))}const qS={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function VS(){const e="undefined"!=typeof document?document:{};return WS(e,qS),e}const YS={document:qS,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){}
3,clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function HS(){const e="undefined"!=typeof window?window:{};return WS(e,YS),e}function $S(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function KS(){return Date.now()}function XS(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ZS(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const i=r<0||arguments.length<=r?void 0:arguments[r];if(null!=i&&(n=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const n=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,r=n.length;t<r;t+=1){const r=n[t],o=Object.getOwnPropertyDescriptor(i,r);void 0!==o&&o.enumerable&&(XS(e[r])&&XS(i[r])?i[r].__swiper__?e[r]=i[r]:ZS(e[r],i[r]):!XS(e[r])&&XS(i[r])?(e[r]={},i[r].__swiper__?e[r]=i[r]:ZS(e[r],i[r])):e[r]=i[r])}}}var n;return e}function JS(e,t,n){e.style.setProperty(t,n)}function QS(e){let{swiper:t,targetPosition:n,side:r}=e;const i=HS(),o=-t.translate;let s,a=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const u=n>o?"next":"prev",c=(e,t)=>"next"===u&&e>=t||"prev"===u&&e<=t,h=()=>{s=(new Date).getTime(),null===a&&(a=s);const e=Math.max(Math.min((s-a)/l,1),0),u=.5-Math.cos(e*Math.PI)/2;let d=o+u*(n-o);if(c(d,n)&&(d=n),t.wrapperEl.scrollTo({[r]:d}),c(d,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:d})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(h)};h()}function eC(e,t){void 0===t&&(t="");const n=HS(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter((e=>e.matches(t))):r}function tC(e){try{return void console.warn(e)}catch(e){}}function nC(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),n}function rC(e,t){return HS().getComputedStyle(e,null).getPropertyValue(t)}function iC(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function oC(e,t,n){const r=HS();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function sC(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}let aC,lC,uC;function cC(){return aC||(aC=function(){const e=HS(),t=VS();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),aC}function hC(e){return void 0===e&&(e={}),lC||(lC=function(e){let{userAgent:t}=void 0===e?{}:e;const n=cC(),r=HS(),i=r.navigator.platform,o=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/);let c=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===i;let p="MacIntel"===i;return!c&&p&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${l}`)>=0&&(c=o.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),u&&!f&&(s.os="android",s.android=!0),(c||d||h)&&(s.os="ios",s.ios=!0),s}(e)),lC}function dC(){return uC||(uC=function(){const e=HS(),t=hC();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));
vendor: 26,320 bytes, line 3
3n=e<16||16===e&&r<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||i&&t.ios,isWebView:i}}()),uC}var fC={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),r=e):(t=o[0].events,n=o[0].data,r=o[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(r,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(r,n)}))})),e}};const pC=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},gC=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},mC=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},yC=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},vC=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map(((e,t)=>n+r+t))),void e.slides.forEach(((t,n)=>{o.includes(t.column)&&yC(e,n)}))}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){const t=(r%n+n)%n;(t<i||t>o)&&yC(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r<i)&&yC(e,r)};var _C={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(rC(r,"padding-left")||0,10)-parseInt(rC(r,"padding-right")||0,10),n=n-parseInt(rC(r,"padding-top")||0,10)-parseInt(rC(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:o,rtlTranslate:s,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=eC(i,`.${e.params.slideClass}, swiper-slide`),h=l?e.virtual.slides.length:c.length;let d=[];const f=[],p=[];let g=n.slidesOffsetBefore;"function"==typeof g&&(g=n.slidesOffsetBefore.call(e));let m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,v=e.slidesGrid.length;let _=n.spaceBetween,b=-g,w=0,x=0;if(void 0===o)return;"string"==typeof _&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*o:"string"==typeof _&&(_=parseFloat(_)),e.virtualSize=-_,c.forEach((e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(JS(r,"--swiper-centered-offset-before",""),JS(r,"--swiper-centered-offset-after",""));const E=n.grid&&n.grid.rows>1&&e.grid;let S;E?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let r=0;r<h;r+=1){let i;if(S=0,c[r]&&(i=c[r]),E&&e.grid.updateSlide(r,i,c),!c[r]||"none"!==rC(i,"display")){if("auto"===n.slidesPerView){C&&(c[r].style[e.getDirectionLabel("width")]="");const o=getComputedStyle(i),s=i.style.transform,a=i.style.webkitTransform;if(s&&(i.style.transform="none"),a&&(i.style.webkitTransform="none"),n.roundLengths)S=e.isHorizontal()?oC(i,"width",!0):oC(i,"height",!0);else{const e=t(o,"width"),n=t(o,"padding-left"),r=t(o,"padding-right"),s=t(o,"margin-left"),a=t(o,"margin-right"),l=o.getPropertyValue("box-sizing");if(l&&"border-box"===l)S=e+s+a;else{const{clientWidth:t,offsetWidth:o}=i;S=e+n+r+s+a+(o-t)}}s&&(i.style.transform=s),a&&(i.style.webkitTransform=a),n.roundLengths&&(S=Math.floor(S))}else S=(o-(n.slidesPerView-1)*_)/n.slidesPerView,n.roundLengths&&(S=Math.floor(S)),c[r]&&(c[r].style[e.getDirectionLabel("width")]=`${S}px`);c[r]&&(c[r].swiperSlideSize=S),p.push(S),n.centeredSlides?(b=b+S/2+w/2+_,0===w&&0!==r&&(b=b-o/2-_),0===r&&(b=b-o/2-_),Math.abs(b)<.001&&(b=0),n.roundLengths&&(b=Math.floor(b)),x%n.slidesPerGroup==0&&d.push(b),f.push(b)):(n.roundLengths&&(b=Math.floor(b)),(x-Math.min(e.params.slidesPerGroupSkip,x))%e.params.slidesPerGroup==0&&d.push(b),f.push(b),b=b+S+_),e.virtualSize+=S+_,w=S,x+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+m,s&&a&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width=`${e.virtualSize+_}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+_}px`),E&&e.grid.updateWrapperSize(S,d),!n.centeredSlides){const t=[];for(let r=0;r<d.length;r+=1){let i=d[r];n.roundLengths&&(i=Math.floor(i)),d[r]<=e.virtualSize-o&&t.push(i)}d=t,Math.floor(e.virtualSize-o)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-o)}if(l&&n.loop){const t=p[0]+_;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)d.push(d[d.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&d.push(d[d.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===d.length&&(d=[0]),0!==_){const t=e.isHorizontal()&&s?"marginLeft":e.getDirectionLabel("marginRight");c.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1)).forEach((e=>{e.style[t]=`${_}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach((t=>{e+=t+(_||0)})),e-=_;const t=e>o?e-o:0;d=d.map((e=>e<=0?-g:e>t?t+m:e))}if(n.centerInsufficientSlides){let e=0;p.forEach((t=>{e+=t+(_||0)})),e-=_;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<o){const n=(o-e-t)/2;d.forEach(((e,t)=>{d[t]=e-n})),f.forEach(((e,t)=>{f[t]=e+n}))}}if(Object.assign(e,{slides:c,snapGrid:d,slidesGrid:f,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){JS(r,"--swiper-centered-offset-before",-d[0]+"px"),JS(r,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(h!==u&&e.emit("slidesLengthChange"),d.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==v&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);h<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const s=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(s(e))}else n.push(s(t.activeIndex));for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const e=n[i].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let s=-e;i&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<r.length;e+=1){const l=r[e];let u=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const c=(s+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+a),h=(s-o[0]+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+a),d=-(s-u),f=d+t.slidesSizesGrid[e],p=d>=0&&d<=t.size-t.slidesSizesGrid[e],g=d>=0&&d<t.size-1||f>1&&f<=t.size||d<=0&&f>=t.size;g&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),pC(l,g,n.slideVisibleClass),pC(l,p,n.slideFullyVisibleClass),l.progress=i?-c:c,l.originalProgress=i?-h:h}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:s,progressLoop:a}=t;const l=o,u=s;if(0===r)i=0,o=!0,s=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,s=a||i>=1,n&&(i=0),a&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],s=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=i?(l-i)/s:(l+s-o)/s,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!s)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,a=e=>eC(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,u,c;if(o)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${t}"]`)}else l=a(`[data-swiper-slide-index="${i}"]`);else s?(l=t.find((e=>e.column===i)),c=t.find((e=>e.column===i+1)),u=t.find((e=>e.column===i-1))):l=t[i];l&&(s||(c=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),u=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!u&&(u=t[t.length-1]))),t.forEach((e=>{gC(e,e===l,n.slideActiveClass),gC(e,e===c,n.slideNextClass),gC(e,e===u,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:s,snapIndex:a}=t;let l,u=e;const c=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===u&&(u=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1):r>=t[e]&&(i=e);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,u);l=e+Math.floor((u-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),u===o&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(u===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(u));const h=t.grid&&i.grid&&i.grid.rows>1;let d;if(t.virtual&&i.virtual.enabled&&i.loop)d=c(u);else if(h){const e=t.slides.find((e=>e.column===u));let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),d=Math.floor(n/i.grid.rows)}else if(t.slides[u]){const e=t.slides[u].getAttribute("data-swiper-slide-index");d=e?parseInt(e,10):u}else d=u;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:s,realIndex:d,previousIndex:o,activeIndex:u}),t.initialized&&vC(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==d&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)}));let o,s=!1;if(i)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){s=!0,o=e;break}if(!i||!s)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},bC={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=function(e,t){void 0===t&&(t="x");const n=HS();let r,i,o;const s=function(e){const t=HS();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new n.WebKitCSSMatrix("none"===i?"":i)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:s}=n;let a,l=0,u=0;n.isHorizontal()?l=r?-e:e:u=e,i.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:u,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-u:i.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${u}px, 0px)`);const c=n.maxTranslate()-n.minTranslate();a=0===c?0:(e-n.minTranslate())/c,a!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const l=o.minTranslate(),u=o.maxTranslate();let c;if(c=r&&e>l?l:r&&e<u?u:e,o.updateProgress(c),s.cssMode){const e=o.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-c;else{if(!o.support.smoothScroll)return QS({swiper:o,targetPosition:-c,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function wC(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e;const{activeIndex:o,previousIndex:s}=t;let a=r;if(a||(a=o>s?"next":o<s?"prev":"reset"),t.emit(`transition${i}`),n&&o!==s){if("reset"===a)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),"next"===a?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}var xC={setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),wC({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),wC({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},EC={slideTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;let s=e;s<0&&(s=0);const{params:a,snapGrid:l,slidesGrid:u,previousIndex:c,activeIndex:h,rtlTranslate:d,wrapperEl:f,enabled:p}=o;if(!p&&!r&&!i||o.destroyed||o.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const g=Math.min(o.params.slidesPerGroupSkip,s);let m=g+Math.floor((s-g)/o.params.slidesPerGroup);m>=l.length&&(m=l.length-1);const y=-l[m];if(a.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){const t=-Math.floor(100*y),n=Math.floor(100*u[e]),r=Math.floor(100*u[e+1]);void 0!==u[e+1]?t>=n&&t<r-(r-n)/2?s=e:t>=n&&t<r&&(s=e+1):t>=n&&(s=e)}if(o.initialized&&s!==h){if(!o.allowSlideNext&&(d?y>o.translate&&y>o.minTranslate():y<o.translate&&y<o.minTranslate()))return!1;if(!o.allowSlidePrev&&y>o.translate&&y>o.maxTranslate()&&(h||0)!==s)return!1}let v;s!==(c||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(y),v=s>h?"next":s<h?"prev":"reset";const _=o.virtual&&o.params.virtual.enabled;if((!_||!i)&&(d&&-y===o.translate||!d&&y===o.translate))return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==a.effect&&o.setTranslate(y),"reset"!==v&&(o.transitionStart(n,v),o.transitionEnd(n,v)),!1;if(a.cssMode){const e=o.isHorizontal(),n=d?y:-y;if(0===t)_&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),_&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{f[e?"scrollLeft":"scrollTop"]=n}))):f[e?"scrollLeft":"scrollTop"]=n,_&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}));else{if(!o.support.smoothScroll)return QS({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const b=dC().isSafari;return _&&!i&&b&&o.isElement&&o.virtual.update(!1,!1,s),o.setTransition(t),o.setTranslate(y),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,v),0===t?o.transitionEnd(n,v):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,v))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let s=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)s+=i.virtual.slidesBefore;else{let e;if(o){const t=s*i.params.grid.rows;e=i.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=i.getSlideIndexByData(s);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n}=i.params;let a=i.params.slidesPerView;"auto"===a?a=i.slidesPerViewDynamic():(a=Math.ceil(parseFloat(i.params.slidesPerView,10)),n&&a%2==0&&(a+=1));let l=t-e<a;if(n&&(l=l||e<Math.ceil(a/2)),r&&n&&"auto"!==i.params.slidesPerView&&!o&&(l=!1),l){const r=n?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?i.realIndex:void 0})}if(o){const e=s*i.params.grid.rows;s=i.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else s=i.getSlideIndexByData(s)}return requestAnimationFrame((()=>{i.slideTo(s,t,n,r)})),i},slideNext:function(e,t,n){void 0===t&&(t=!0);const r=this,{enabled:i,params:o,animating:s}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:a,u=r.virtual&&o.virtual.enabled;if(o.loop){if(s&&!u&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame((()=>{r.slideTo(r.activeIndex+l,e,t,n)})),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const r=this,{params:i,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:u}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function h(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const d=h(a?r.translate:-r.translate),f=o.map((e=>h(e))),p=i.freeMode&&i.freeMode.enabled;let g=o[f.indexOf(d)-1];if(void 0===g&&(i.cssMode||p)){let e;o.forEach(((t,n)=>{d>=t&&(e=n)})),void 0!==e&&(g=p?o[e]:o[e>0?e-1:e])}let m=0;if(void 0!==g&&(m=s.indexOf(g),m<0&&(m=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=m-r.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{r.slideTo(m,e,t,n)})),!0):r.slideTo(m,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===t&&(t=!0),void 0===r&&(r=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const e=i.snapGrid[a];l-e>(i.snapGrid[a+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[a-1];l-e<=(i.snapGrid[a]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.clickedIndex;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-r/2||o>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),o=e.getSlideIndex(eC(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),$S((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-r?(e.loopFix(),o=e.getSlideIndex(eC(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),$S((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}},SC={loopCreate:function(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{eC(r,`.${n.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},o=t.grid&&n.grid&&n.grid.rows>1,s=n.slidesPerGroup*(o?n.grid.rows:1),a=t.slides.length%s!=0,l=o&&t.slides.length%n.grid.rows!=0,u=e=>{for(let r=0;r<e;r+=1){const e=t.isElement?nC("swiper-slide",[n.slideBlankClass]):nC("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(e)}};a?(n.loopAddBlankSlides?(u(s-t.slides.length%s),t.recalcSlides(),t.updateSlides()):tC("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may
3not function properly. You need to add more slides (or make duplicates, or empty slides)"),i()):l?(n.loopAddBlankSlides?(u(n.grid.rows-t.slides.length%n.grid.rows),t.recalcSlides(),t.updateSlides()):tC("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),i()):i(),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:o,byController:s,byMousewheel:a}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:h,slidesEl:d,params:f}=l,{centeredSlides:p}=f;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&f.virtual.enabled)return n&&(f.centeredSlides||0!==l.snapIndex?f.centeredSlides&&l.snapIndex<f.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=c,l.allowSlideNext=h,void l.emit("loopFix");let g=f.slidesPerView;"auto"===g?g=l.slidesPerViewDynamic():(g=Math.ceil(parseFloat(f.slidesPerView,10)),p&&g%2==0&&(g+=1));const m=f.slidesPerGroupAuto?g:f.slidesPerGroup;let y=m;y%m!=0&&(y+=m-y%m),y+=f.loopAdditionalSlides,l.loopedSlides=y;const v=l.grid&&f.grid&&f.grid.rows>1;u.length<g+y?tC("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):v&&"row"===f.grid.fill&&tC("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const _=[],b=[];let w=l.activeIndex;void 0===o?o=l.getSlideIndex(u.find((e=>e.classList.contains(f.slideActiveClass)))):w=o;const x="next"===r||!r,E="prev"===r||!r;let S=0,C=0;const M=v?Math.ceil(u.length/f.grid.rows):u.length,k=(v?u[o].column:o)+(p&&void 0===i?-g/2+.5:0);if(k<y){S=Math.max(y-k,m);for(let e=0;e<y-k;e+=1){const t=e-Math.floor(e/M)*M;if(v){const e=M-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&_.push(t)}else _.push(M-t-1)}}else if(k+g>M-y){C=Math.max(k-(M-2*y),m);for(let e=0;e<C;e+=1){const t=e-Math.floor(e/M)*M;v?u.forEach(((e,n)=>{e.column===t&&b.push(n)})):b.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),E&&_.forEach((e=>{u[e].swiperLoopMoveDOM=!0,d.prepend(u[e]),u[e].swiperLoopMoveDOM=!1})),x&&b.forEach((e=>{u[e].swiperLoopMoveDOM=!0,d.append(u[e]),u[e].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===f.slidesPerView?l.updateSlides():v&&(_.length>0&&E||b.length>0&&x)&&l.slides.forEach(((e,t)=>{l.grid.updateSlide(t,e,l.slides)})),f.watchSlidesProgress&&l.updateSlidesOffset(),n)if(_.length>0&&E){if(void 0===t){const e=l.slidesGrid[w],t=l.slidesGrid[w+S]-e;a?l.setTranslate(l.translate-t):(l.slideTo(w+Math.ceil(S),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(i){const e=v?_.length/f.grid.rows:_.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(b.length>0&&x)if(void 0===t){const e=l.slidesGrid[w],t=l.slidesGrid[w-C]-e;a?l.setTranslate(l.translate-t):(l.slideTo(w-C,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=v?b.length/f.grid.rows:b.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=c,l.allowSlideNext=h,l.controller&&l.controller.control&&!s){const e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&n})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===f.slidesPerView&&n})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];
vendor: 4,728 bytes, line 3
3e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),r.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function CC(e,t,n){const r=HS(),{params:i}=e,o=i.edgeSwipeDetection,s=i.edgeSwipeThreshold;return!o||!(n<=s||n>=r.innerWidth-s)||"prevent"===o&&(t.preventDefault(),!0)}function MC(e){const t=this,n=VS();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if("pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void CC(t,r,r.targetTouches[0].pageX);const{params:o,touches:s,enabled:a}=t;if(!a)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=r.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=HS();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),r}(l,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&""!==o.noSwipingClass,c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(l=c[0]);const h=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,d=!(!r.target||!r.target.shadowRoot);if(o.noSwiping&&(d?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===VS()||n===HS())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(h,l):l.closest(h)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;s.currentX=r.pageX,s.currentY=r.pageY;const f=s.currentX,p=s.currentY;if(!CC(t,r,f))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=f,s.startY=p,i.touchStartTime=KS(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let g=!0;l.matches(i.focusableElements)&&(g=!1,"SELECT"===l.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!l.matches(i.focusableElements))&&n.activeElement.blur();const m=g&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!m||l.isContentEditable||r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function kC(e){const t=VS(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:s,enabled:a}=n;if(!a)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let l,u=e;if(u.originalEvent&&(u=u.originalEvent),"pointermove"===u.type){if(null!==r.touchId)return;if(u.pointerId!==r.pointerId)return}if("touchmove"===u.type){if(l=[...u.changedTouches].find((e=>e.identifier===r.touchId)),!l||l.identifier!==r.touchId)return}else l=u;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",u));const c=l.pageX,h=l.pageY;if(u.preventedByNestedSwiper)return o.startX=c,void(o.startY=h);if(!n.allowTouchMove)return u.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:c,startY:h,currentX:c,currentY:h}),r.touchStartTime=KS()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(h<o.startY&&n.translate<=n.maxTranslate()||h>o.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(c<o.startX&&n.translate<=n.maxTranslate()||c>o.startX&&n.translate>=n.minTranslate())return;if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==u.target&&"mouse"!==u.pointerType&&t.activeElement.blur(),t.activeElement&&u.target===t.activeElement&&u.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",u),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=c,o.currentY=h;const d=o.currentX-o.startX,f=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(d**2+f**2)<n.params.threshold)return;if(void 0===r.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:d*d+f*f>
vendor: 3,327 bytes, line 3
3=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",u),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===u.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&u.cancelable&&u.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&u.stopPropagation();let p=n.isHorizontal()?d:f,g=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(p=Math.abs(p)*(s?1:-1),g=Math.abs(g)*(s?1:-1)),o.diff=p,p*=i.touchRatio,s&&(p=-p,g=-g);const m=n.touchesDirection;n.swipeDirection=p>0?"prev":"next",n.touchesDirection=g>0?"prev":"next";const y=n.params.loop&&!i.cssMode,v="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(y&&v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",u)}if((new Date).getTime(),!1!==i._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&m!==n.touchesDirection&&y&&v&&Math.abs(p)>=1)return Object.assign(o,{startX:c,startY:h,currentX:c,currentY:h,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",u),r.isMoved=!0,r.currentTranslate=p+r.startTranslate;let _=!0,b=i.resistanceRatio;if(i.touchReleaseOnEdges&&(b=0),p>0?(y&&v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(_=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+p)**b))):p<0&&(y&&v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(_=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-p)**b))),_&&(u.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(p)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);
vendor: 24,529 bytes, line 3
3if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function TC(e){const t=this,n=t.touchEventsData;let r,i=e;if(i.originalEvent&&(i=i.originalEvent),"touchend"===i.type||"touchcancel"===i.type){if(r=[...i.changedTouches].find((e=>e.identifier===n.touchId)),!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:o,touches:s,rtlTranslate:a,slidesGrid:l,enabled:u}=t;if(!u)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=KS(),h=c-n.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),h<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=KS(),$S((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===s.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let d;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,d=o.followFinger?a?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:d});const f=d>=-t.maxTranslate()&&!t.params.loop;let p=0,g=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[e+t]?(f||d>=l[e]&&d<l[e+t])&&(p=e,g=l[e+t]-l[e]):(f||d>=l[e])&&(p=e,g=l[l.length-1]-l[l.length-2])}let m=null,y=null;o.rewind&&(t.isBeginning?y=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const v=(d-l[p])/g,_=p<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(h>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?m:p+_):t.slideTo(p)),"prev"===t.swipeDirection&&(v>1-o.longSwipesRatio?t.slideTo(p+_):null!==y&&v<0&&Math.abs(v)>o.longSwipesRatio?t.slideTo(y):t.slideTo(p))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==m?m:p+_),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:p)):i.target===t.navigation.nextEl?t.slideTo(p+_):t.slideTo(p)}}function PC(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=s&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function OC(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function IC(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function RC(e){const t=this;mC(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function AC(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const LC=(e,t)=>{const n=VS(),{params:r,el:i,wrapperEl:o,device:s}=e,a=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",u=t;i&&"string"!=typeof i&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",PC,!0):e[u]("observerUpdate",PC,!0),i[l]("load",e.onLoad,{capture:!0}))};var NC={attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=MC.bind(e),e.onTouchMove=kC.bind(e),e.onTouchEnd=TC.bind(e),e.onDocumentTouchStart=AC.bind(e),t.cssMode&&(e.onScroll=IC.bind(e)),e.onClick=OC.bind(e),e.onLoad=RC.bind(e),LC(e,"on")},detachEvents:function(){LC(this,"off")}};const DC=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var FC={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const s=VS(),a="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:s.querySelector(r.breakpointsBase),u=e.getBreakpoint(o,a,l);if(!u||e.currentBreakpoint===u)return;const c=(u in o?o[u]:void 0)||e.originalParams,h=DC(e,r),d=DC(e,c),f=e.params.grabCursor,p=c.grabCursor,g=r.enabled;h&&!d?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!h&&d&&(i.classList.add(`${r.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===r.grid.fill)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!p?e.unsetGrabCursor():!f&&p&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===c[t])return;const n=r[t]&&r[t].enabled,i=c[t]&&c[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}));const m=c.direction&&c.direction!==r.direction,y=r.loop&&(c.slidesPerView!==r.slidesPerView||m),v=r.loop;m&&n&&e.changeDirection(),ZS(e.params,c);const _=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!_?e.disable():!g&&_&&e.enable(),e.currentBreakpoint=u,e.emit("_beforeBreakpoint",c),n&&(y?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&b?(e.loopCreate(t),e.updateSlides()):v&&!b&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1;const i=HS(),o="window"===t?i.innerHeight:n.clientHeight,s=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));s.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<s.length;e+=1){const{point:o,value:a}=s[e];"window"===t?i.matchMedia(`(min-width: ${a}px)`).matches&&(r=o):a<=n.clientWidth&&(r=o)}return r||"max"}},jC={addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,s=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((r=>{e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}},BC={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function zC(e,t){return function(n){void 0===n&&(n={});const r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),ZS(t,n)):ZS(t,n)):ZS(t,n)}}const GC={eventsEmitter:fC,update:_C,translate:bC,transition:xC,slide:EC,loop:SC,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:NC,breakpoints:FC,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:jC},UC={};class WC{constructor(){let e,t;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=ZS({},t),e&&!t.el&&(t.el=e);const o=VS();if(t.el&&"string"==typeof t.el&&o.querySelectorAll(t.el).length>1){const e=[];return o.querySelectorAll(t.el).forEach((n=>{const r=ZS({},t,{el:n});e.push(new WC(r))})),e}const s=this;s.__swiper__=!0,s.support=cC(),s.device=hC({userAgent:t.userAgent}),s.browser=dC(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],t.modules&&Array.isArray(t.modules)&&s.modules.push(...t.modules);const a={};s.modules.forEach((e=>{e({params:t,swiper:s,extendParams:zC(t,a),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})}));const l=ZS({},BC,a);return s.params=ZS({},l,UC,t),s.originalParams=ZS({},s.params),s.passedParams=ZS({},t),s.params&&s.params.on&&Object.keys(s.params.on).forEach((e=>{s.on(e,s.params.on[e])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=iC(eC(t,`.${n.slideClass}, swiper-slide`)[0]);return iC(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=eC(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:s,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[a]?Math.ceil(r[a].swiperSlideSize):0;for(let n=a+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),l+=1,t>s&&(e=!0));for(let n=a-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>s&&(e=!0))}else if("current"===e)for(let e=a+1;e<r.length;e+=1)(t?i[e]+o[e]-i[a]<s:i[e]-i[a]<s)&&(l+=1);else for(let e=a-1;e>=0;e-=1)i[a]-i[e]<s&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&mC(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):eC(n,r())[0];return!i&&t.params.createElements&&(i=nC("div",t.params.wrapperClass),n.append(i),eC(n,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===rC(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===rC(n,"direction")),wrongRTL:"-webkit-box"===rC(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach((e=>{e.complete?mC(t,e):e.addEventListener("load",(e=>{mC(t,e.target)}))})),vC(t),t.initialized=!0,vC(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:r,el:i,wrapperEl:o,slides:s}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),s&&s.length&&s.forEach((e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){ZS(UC,e)}static get extendedDefaults(){return UC}static get defaults(){return BC}static installModule(e){WC.prototype.__modules__||(WC.prototype.__modules__=[]);const t=WC.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>WC.installModule(e))),WC):(WC.installModule(e),WC)}}Object.keys(GC).forEach((e=>{Object.keys(GC[e]).forEach((t=>{WC.prototype[t]=GC[e][t]}))})),WC.use([function(e){let{swiper:t,on:n,emit:r}=e;const i=HS();let o=null,s=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{s=i.requestAnimationFrame((()=>{const{width:n,height:r}=t;let i=n,o=r;e.forEach((e=>{let{contentBoxSize:n,contentRect:r,target:s}=e;s&&s!==t.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||a()}))})),o.observe(t.el)):(i.addEventListener("resize",a),i.addEventListener("orientationchange",l))})),n("destroy",(()=>{s&&i.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=[],s=HS(),a=function(e,n){void 0===n&&(n={});const r=new(s.MutationObserver||s.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const n=function(){i("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(n):s.setTimeout(n,0)}));r.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),o.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=function(e){const t=[];let n=e.parentElement;for(;n;)t.push(n),n=n.parentElement;return t}(t.hostEl);for(let t=0;t<e.length;t+=1)a(e[t])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}})),r("destroy",(()=>{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);const qC=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesB
3ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function VC(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function YC(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{void 0===e[n]?e[n]=t[n]:VC(t[n])&&VC(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:YC(e[n],t[n]):e[n]=t[n]}))}function HC(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function $C(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function KC(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function XC(e){void 0===e&&(e="");const t=e.split(" ").map((e=>e.trim())).filter((e=>!!e)),n=[];return t.forEach((e=>{n.indexOf(e)<0&&n.push(e)})),n.join(" ")}function ZC(e){return void 0===e&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function JC(){return JC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JC.apply(this,arguments)}function QC(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function eM(e){const n=[];return t.Children.toArray(e).forEach((e=>{QC(e)?n.push(e):e.props&&e.props.children&&eM(e.props.children).forEach((e=>n.push(e)))})),n}function tM(e){const n=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return t.Children.toArray(e).forEach((e=>{if(QC(e))n.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){const t=eM(e.props.children);t.length>0?t.forEach((e=>n.push(e))):r["container-end"].push(e)}else r["container-end"].push(e)})),{slides:n,slots:r}}function nM(e,n){return"undefined"==typeof window?(0,t.useEffect)(e,n):(0,t.useLayoutEffect)(e,n)}const rM=(0,t.createContext)(null),iM=(0,t.createContext)(null),oM=(0,t.forwardRef)((function(e,n){let{className:r,tag:i="div",wrapperTag:o="div",children:s,onSwiper:a,...l}=void 0===e?{}:e,u=!1;const[c,h]=(0,t.useState)("swiper"),[d,f]=(0,t.useState)(null),[p,g]=(0,t.useState)(!1),m=(0,t.useRef)(!1),y=(0,t.useRef)(null),v=(0,t.useRef)(null),_=(0,t.useRef)(null),b=(0,t.useRef)(null),w=(0,t.useRef)(null),x=(0,t.useRef)(null),E=(0,t.useRef)(null),S=(0,t.useRef)(null),{params:C,passedParams:M,rest:k,events:T}=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!0);const n={on:{}},r={},i={};YC(n,BC),n._emitClasses=!0,n.init=!1;const o={},s=qC.map((e=>e.replace(/_/,""))),a=Object.assign({},e);return Object.keys(a).forEach((a=>{void 0!==e[a]&&(s.indexOf(a)>=0?VC(e[a])?(n[a]={},i[a]={},YC(n[a],e[a]),YC(i[a],e[a])):(n[a]=e[a],i[a]=e[a]):0===a.search(/on[A-Z]/)&&"function"==typeof e[a]?t?r[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:n.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:o[a]=e[a])})),["navigation","pagination","scrollbar"].forEach((e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]})),{params:n,passedParams:i,rest:o,events:r}}(l),{slides:P,slots:O}=tM(s),I=()=>{g(!p)};Object.assign(C.on,{_containerClasses(e,t){h(t)}});const R=()=>{Object.assign(C.on,T),u=!0;const e={...C};
3if(delete e.wrapperClass,v.current=new WC(e),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=P;const e={cache:!1,slides:P,renderExternal:f,renderExternalUpdate:!1};YC(v.current.params.virtual,e),YC(v.current.originalParams.virtual,e)}};return y.current||R(),v.current&&v.current.on("_beforeBreakpoint",I),(0,t.useEffect)((()=>()=>{v.current&&v.current.off("_beforeBreakpoint",I)})),(0,t.useEffect)((()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)})),nM((()=>{if(n&&(n.current=y.current),y.current)return v.current.destroyed&&R(),function(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:o,scrollbarEl:s,swiper:a}=e;HC(t)&&r&&i&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),$C(t)&&o&&(a.params.pagination.el=o,a.originalParams.pagination.el=o),KC(t)&&s&&(a.params.scrollbar.el=s,a.originalParams.scrollbar.el=s),a.init(n)}({el:y.current,nextEl:w.current,prevEl:x.current,paginationEl:E.current,scrollbarEl:S.current,swiper:v.current},C),a&&!v.current.destroyed&&a(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}}),[]),nM((()=>{!u&&T&&v.current&&Object.keys(T).forEach((e=>{v.current.on(e,T[e])}));const e=function(e,t,n,r,i){const o=[];if(!t)return o;const s=e=>{o.indexOf(e)<0&&o.push(e)};if(n&&r){const e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&s("children"),r.length!==n.length&&s("children")}const a=qC.filter((e=>"_"===e[0])).map((e=>e.replace(/_/,"")));return a.forEach((n=>{if(n in e&&n in t)if(VC(e[n])&&VC(t[n])){const r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?s(n):(r.forEach((r=>{e[n][r]!==t[n][r]&&s(n)})),i.forEach((r=>{e[n][r]!==t[n][r]&&s(n)})))}else e[n]!==t[n]&&s(n)})),o}(M,_.current,P,b.current,(e=>e.key));return _.current=M,b.current=P,e.length&&v.current&&!v.current.destroyed&&function(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:o,prevEl:s,scrollbarEl:a,paginationEl:l}=e;const u=i.filter((e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e)),{params:c,pagination:h,navigation:d,scrollbar:f,virtual:p,thumbs:g}=t;let m,y,v,_,b,w,x,E;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(m=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(y=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(c.pagination||!1===c.pagination)&&h&&!h.el&&(v=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(c.scrollbar||!1===c.scrollbar)&&f&&!f.el&&(_=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||s)&&(r.navigation.nextEl||o)&&(c.navigation||!1===c.navigation)&&d&&!d.prevEl&&!d.nextEl&&(b=!0);const S=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),c[e].prevEl=void 0,c[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),c[e].el=void 0,t[e].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?w=!0:!c.loop&&r.loop?x=!0:E=!0),u.forEach((e=>{if(VC(c[e])&&VC(r[e]))Object.assign(c[e],r[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in r[e])||r[e].enabled||S(e);else{const t=r[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=r[e]:!1===t&&S(e)}})),u.includes("controller")&&!y&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&p&&c.virtual.enabled?(p.slides=n,p.update(!0)):i.includes("virtual")&&p&&c.virtual.enabled&&(n&&(p.slides=n),p.update(!0)),i.includes("children")&&n&&c.loop&&(E=!0),m&&g.init()&&g.update(!0),y&&(t.controller.control=c.controller.control),v&&(!t.isElement||l&&"string"!=typeof l||(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),h.init(),h.render(),h.update()),_&&(!t.isElement||a&&"string"!=typeof a||(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.a
3ppendChild(a)),a&&(c.scrollbar.el=a),f.init(),f.updateSize(),f.setTranslate()),b&&(t.isElement&&(o&&"string"!=typeof o||(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=t.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),t.el.appendChild(o)),s&&"string"!=typeof s||(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=t.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),t.el.appendChild(s))),o&&(c.navigation.nextEl=o),s&&(c.navigation.prevEl=s),d.init(),d.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(w||E)&&t.loopDestroy(),(x||E)&&t.loopCreate(),t.update()}({swiper:v.current,slides:P,passedParams:M,changedParams:e,nextEl:w.current,prevEl:x.current,scrollbarEl:S.current,paginationEl:E.current}),()=>{T&&v.current&&Object.keys(T).forEach((e=>{v.current.off(e,T[e])}))}})),nM((()=>{var e;!(e=v.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())}),[d]),t.createElement(i,JC({ref:y,className:XC(`${c}${r?` ${r}`:""}`)},k),t.createElement(iM.Provider,{value:v.current},O["container-start"],t.createElement(o,{className:ZC(C.wrapperClass)},O["wrapper-start"],C.virtual?function(e,n,r){if(!r)return null;const i=e=>{let t=e;return e<0?t=n.length+e:t>=n.length&&(t-=n.length),t},o=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:s,to:a}=r,l=e.params.loop?-n.length:0,u=e.params.loop?2*n.length:n.length,c=[];for(let e=l;e<u;e+=1)e>=s&&e<=a&&c.push(n[i(e)]);return c.map(((n,r)=>t.cloneElement(n,{swiper:e,style:o,key:n.props.virtualIndex||n.key||`slide-${r}`})))}(v.current,P,d):P.map(((e,n)=>t.cloneElement(e,{swiper:v.current,swiperSlideIndex:n}))),O["wrapper-end"]),HC(C)&&t.createElement(t.Fragment,null,t.createElement("div",{ref:x,className:"swiper-button-prev"}),t.createElement("div",{ref:w,className:"swiper-button-next"})),KC(C)&&t.createElement("div",{ref:S,className:"swiper-scrollbar"}),$C(C)&&t.createElement("div",{ref:E,className:"swiper-pagination"}),O["container-end"]))}));oM.displayName="Swiper";const sM=(0,t.forwardRef)((function(e,n){let{tag:r="div",children:i,className:o="",swiper:s,zoom:a,lazy:l,virtualIndex:u,swiperSlideIndex:c,...h}=void 0===e?{}:e;const d=(0,t.useRef)(null),[f,p]=(0,t.useState)("swiper-slide"),[g,m]=(0,t.useState)(!1);function y(e,t,n){t===d.current&&p(n)}nM((()=>{if(void 0!==c&&(d.current.swiperSlideIndex=c),n&&(n.current=d.current),d.current&&s){if(!s.destroyed)return s.on("_slideClass",y),()=>{s&&s.off("_slideClass",y)};"swiper-slide"!==f&&p("swiper-slide")}})),nM((()=>{s&&d.current&&!s.destroyed&&p(s.getSlideClasses(d.current))}),[s]);const v={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},_=()=>"function"==typeof i?i(v):i;return t.createElement(r,JC({ref:d,className:XC(`${f}${o?` ${o}`:""}`),"data-swiper-slide-index":u,onLoad:()=>{m(!0)}},h),a&&t.createElement(rM.Provider,{value:v},t.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof a?a:void 0},_(),l&&!g&&t.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&t.createElement(rM.Provider,{value:v},_(),l&&!g&&t.createElement("div",{className:"swiper-lazy-preloader"})))}));function aM(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;function o(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function s(e,n){const r=t.params.navigation;(e=sC(e)).forEach((e=>{e&&(e.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))}))}function a(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return s(n,!1),void s(e,!1);s(n,t.isBeginning&&!t.params.rewind),s(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function u(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=function(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach((i=>{if(!n[i]&&!0===n.auto){let o=eC(e.el,`.${r[i]}`)[0];o||(o=nC("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}})),n}(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=o(e.nextEl),r=o(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=sC(n),r=sC(r);const i=(n,r)=>{n&&n.addEventListener("click","next"===r?u:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};
3n.forEach((e=>i(e,"next"))),r.forEach((e=>i(e,"prev")))}function h(){let{nextEl:e,prevEl:n}=t.navigation;e=sC(e),n=sC(n);const r=(e,n)=>{e.removeEventListener("click","next"===n?u:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>r(e,"next"))),n.forEach((e=>r(e,"prev")))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},r("init",(()=>{!1===t.params.navigation.enabled?d():(c(),a())})),r("toEdge fromEdge lock unlock",(()=>{a()})),r("destroy",(()=>{h()})),r("enable disable",(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=sC(e),n=sC(n),t.enabled?a():[...e,...n].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),r("click",((e,n)=>{let{nextEl:r,prevEl:o}=t.navigation;r=sC(r),o=sC(o);const s=n.target;let a=o.includes(s)||r.includes(s);if(t.isElement&&!a){const e=n.path||n.composedPath&&n.composedPath();e&&(a=e.find((e=>r.includes(e)||o.includes(e))))}if(t.params.navigation.hideOnClick&&!a){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;let e;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...r,...o].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const d=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),a()},disable:d,update:a,init:c,destroy:h})}var lM;function uM(){return uM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uM.apply(null,arguments)}sM.displayName="SwiperSlide";const cM=e=>t.createElement("svg",uM({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e),lM||(lM=t.createElement("path",{fill:"none",stroke:"#154273",strokeLinecap:"round",d:"M13.5 14.5v-5m-3-9h5m0 0v5m0-5-7 6m-3-5h-5m0 0v13m0 0h13"}))),hM=({item:e,index:n,total:r,locationButton:i})=>{return t.createElement(t.Fragment,null,e.weergavenaam&&t.createElement("h2",null,r>1?`${n+1}. `:"",e.weergavenaam),e.normwaarde&&t.createElement("p",{className:"normwaarde"},e.normwaarde.label),e.omschrijving&&t.createElement("p",null,(o=e.omschrijving).length>150?o.substring(0,150)+"...":o),e.url&&t.createElement("a",{href:e.url,className:"button button--primary button--small",target:i.targetBlank?"_blank":"_self",rel:i.targetBlank?"noopener noreferrer":void 0},i.title,i.targetBlank&&t.createElement(t.Fragment,null,t.createElement("span",{className:"icon-container","aria-hidden":"true"},t.createElement(cM,{viewBox:"0 0 16 16"})),((e="(opent in nieuw scherm)")=>t.createElement("span",{className:"screen-reader-text"},e))())));var o},dM=({items:e,locationButton:n})=>{const r=e.length>1;return t.createElement(t.Fragment,null,r&&t.createElement("div",{className:"ol-popup__navigation"},t.createElement("button",{className:"swiper-button-prev button button--small button--prev"},"<"),t.createElement("button",{className:"swiper-button-next button button--small button--next"},">")),t.createElement(oM,{modules:[aM],spaceBetween:10,slidesPerView:1,navigation:!!r&&{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}},e.map(((r,i)=>t.createElement(sM,{key:i},t.createElement(hM,{item:r,index:i,total:e.length,locationButton:n}))))))};const fM=(0,t.createContext)({area:null,length:null,radius:null});let pM=[],gM=-1,mM=!1;const yM=Z((function(e){let t,n,r;return e.basket.selected.length?(t=e.basket.selected,n=[],r=e.basket.default):(t=e.basket.default.filter((e=>e.active)),n=e.basket.default.filter((e=>!e.active&&e.peek)),r=e.basket.default.filter((e=>!e.active&&!e.peek))),{activeBaseLayer:e.layer.activeBaseLayer,activeLocations:t,activeOverlayLayer:"select"===e.kpm.mode?e.layer.activeOverlayLayer:null,center:e.basket.center,defaultBasketItems:e.basket.default,inactiveLocations:r,mapDrawMode:"draw"===e.kpm.mode?e.map.drawmode:null,peekLocations:n,showControlMessage:!1,touchMoving:!1,zoomLevel:e.kpm.zoomLevel}}),(function(e){return{activateItemInBasket:(t,n)=>e(_u(t,n)),addToBasket:(t,n,r)=>e(yu(t,n,r)),centerBasket:()=>e(Eu()),deactivateAllItemsInBasket:()=>e(wu()),deactivateItemInBasket:t=>e(bu(t)),deactivateOverlayLayer:()=>e({type:$l}),removeFromBasket:t=>e(vu({},t)),representationHover:(t,n)=>e(function(e,t){return{item:e,mapLayerType:"default",options:t,type:il.REPRESENTATION_HOVER}}(t,n)),setKpmMode:t=>e(Y_(t)),setMapMode:t=>e(H_(t)),setZoomLevel:t=>e(function(e){return{level:e,type:Ol}}(t)),updateGeometryItemInBasket:(t,n)=>e(function(e,t){return{item:{centroide_rd:t,geometrie_rd:t,id:e},type:il.UPDATE_GEOMETRY_ITEM_IN_BASKET}}(t,n))}}))((function(e){const n=(0,t.useContext)(Vh),i=(0,t.useContext)(fM),[o,s]=(0,t.useState)(new j_({})),[a,l]=(0,t.useState)(),[u,c]=(0,t.useState)(),[h,d]=(0,t.useState)(),[f,p]=(0,t.useState)(!0),[g,m]=(0,t.useState)(!0),y=(0,t.useRef)(new Ry),v=(0,t.useRef)(void 0),_=(0,t.useRef)(void 0),b=(0,t.useRef)(void 0),w=(0,t.useRef)(void 0),x=(0,t.useRef)(void 0),[E,S]=(0,t.useState)({mapInteraction:null,showControlMessage:!1,touchMoving:!1}),{defaultBasketItems:C,activeOverlayLayer:M,allowHover:k}=e,T=(0,t.createRef)(),P=(0,t.createRef)(),O=(0,t.createRef)(),I=new Wi;let R;const A=(0,t.useRef)(new Ry),L=[],N=CS(e);let D,F;function j(){return D||(D=new MS(document.getElementById("map-progress"))),D}function B(t){if(e.activeOverlayLayer){const r=()=>{return r=this,i=void 0,a=function*(){let r;if(!e.activeOverlayLayer)throw new Error("Unexpected error: activeOverlayLayer property is undefined");if("wms"===_S(e.activeOverlayLayer,n).lookupService){const i=o.getView().getResolution(),s=bS(e.activeOverlayLayer,n).getGetFeatureInfoUrl(t.coordinate,i,"EPSG:3857",{INFO_FORMAT:"application/json"});r=yield fE(s,e.activeOverlayLayer)}else r=yield function(e,t){let n=t.toString(),r=1;n===jh.PERCEEL&&(n="perceel,gemeente",r=2);const i={lat:e[1],lon:e[0],type:n,distance:25,fl:["id","type","weergavenaam","bron","geometrie_rd","identificatie","subtype","openbareruimte_id","openbareruimtetype","straatnaam","straatnaam_verkort","adresseerbaarobject_id","nummeraanduiding_id","huisnummer","huisletter","huisnummertoevoeging","huis_nlt","postcode","woonplaatscode","woonplaatsnaam","gemeentecode","gemeentenaam","provinciecode","provincienaam","provincieafkorting","kadastraal_object_id","kadastrale_gemeentecode","kadastrale_gemeentenaam","actuele_gemeentenaam","kadastrale_sectie","perceelnummer","kadastrale_grootte","gekoppeld_perceel","volgnummer","gekoppeld_appartement","kadastrale_aanduiding","wegnummer","hectometernummer","zijde","hectometerletter","waterschapsnaam","waterschapscode"].join(","),rows:r};return Fh.get("https://api.pdok.nl/bzk/locatieserver/search/v3_1/reverse",{params:i}).then((e=>{let t=e.data.response.docs[0],n=e.data.response.docs[0].id;if(e.data.response.docs.length>1&&e.data.response.docs[1].type===jh.PERCEEL&&(t=e.data.response.docs[1],t.actuele_gemeentenaam=e.data.response.docs[0].gemeentenaam,n=e.data.response.docs[1].id),t&&t.geometrie_rd)return Object.assign(Object.assign({},t),{id:rl(),locatieserver_id:n})})).catch((()=>console.debug("NULL RETURNED")))}(function(e){const t=rr(e,"EPSG:3857","EPSG:4326"),n=t[0];return(n<-180||n>180)&&(t[0]=Ft(n+180,360)-180),t}(t.coordinate),e.activeOverlayLayer);return r&&null!==r?Promise.resolve(r):Promise.reject(e.activeOverlayLayer)}
3,new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof s?r:new s((function(e){e(r)}))).then(n,o)}l((a=a.apply(r,i||[])).next())}));var r,i,s,a};e.onClickLocationHandler(r)}if(e.allowClick){const n=o.getFeaturesAtPixel(t.pixel,{layerFilter:e=>"binocular"!==e.get("name")});n.length&&null===e.activeOverlayLayer?!function(e){let t,n=e.length>1;return e.forEach(((e,r)=>{0===r&&(t=e.getGeometry().flatCoordinates.toString()),("Point"===e.getGeometry().getType()||r>0&&e.getGeometry().flatCoordinates.toString()!==t)&&(n=!1)})),n}(n)?ie(n[0].get("features")||[n[0]]):ie(n,!0):oe(o),0===n.length&&e.deactivateAllItemsInBasket()}}function z(t){let n=t.feature.getGeometry();n instanceof Pv&&e.mapDrawMode===Zl.CIRKEL&&(n=Si(n,64));const r=I.writeGeometry(n,{dataProjection:"EPSG:28992",featureProjection:"EPSG:3857"});if(Zl.FEEDBACK!==e.mapDrawMode){const t={centroide_rd:r,geometrie_rd:r,id:rl(),type:e.mapDrawMode,weergavenaam:Yb(e.defaultBasketItems,e.mapDrawMode)};e.addToBasket(t,"selected",{activate:!0})}else e.onClickFeedback(r,e.zoomLevel),e.setKpmMode(null),e.setMapMode(null)}function G(t){b.current.setPosition(void 0),document.body.classList.remove("cursor-pointer");let n=[],r=[];t.selected.forEach((i=>{document.body.classList.add("cursor-pointer");const s=i.get("features")||[i];if(1!==s.length)return;const a=s.map((e=>e.get("representationId")));r=e.defaultBasketItems.filter((e=>a.includes(e.id))),r.length&&e.representationHover(r[0],{representationHover:!0});const l=s.map((e=>e.getId()));r=e.defaultBasketItems.filter((e=>l.includes(e.id)||a.includes(e.id))),function(t,n){const r=t.map((e=>e.weergavenaam)).join(", "),i=t.map((e=>e.symbolisatie&&e.symbolisatie.title)).join(", ");let s="";if(!O.current||!r||!e.allowHover)return;r&&(s+=`<h2>${function(e,t,n=" "){return e.length<=t?e:e.substring(0,e.lastIndexOf(n,t))+" ..."}(r,80)}</h2>`),i&&(s+=`<p className="normwaarde">${i}</p>`),O.current.innerHTML=`${s}`,b.current.setOffset([0,0]),b.current.setPosition(n),b.current.setPositioning("top-center");const a=function(){const e=b.current.getElement().getBoundingClientRect(),t=o.getTargetElement().getBoundingClientRect(),n=e.left-t.left,r=t.right-e.right,i=t.bottom-e.bottom,s=[0,10];return n<0?s[0]=10-n:r<0&&(s[0]=-(Math.abs(r)+10)),i<30&&(s[1]=-10),s}();a[1]&&a[1]<0&&b.current.setPositioning("bottom-center"),b.current.setOffset(a)}(r,t.mapBrowserEvent.coordinate),n=l.concat(a)})),t.deselected.forEach((t=>{const r=t.get("features")||[t];if(1!==r.length)return;const i=r.map((e=>e.getId())),o=r.map((e=>e.get("representationId"))),s=e.defaultBasketItems.filter((e=>i.concat(o).includes(e.id)&&!n.includes(e.id)));s.length&&e.representationHover(s[0],{representationHover:!1})}))}function U(t){t.selected.forEach((t=>{const r=t.get("features")||[t];if(1!==r.length&&e.zoomLevel<o.getView().getMaxZoom())!function(e,t,r){const i="geoedit"===n.mode?parseFloat(GS.sidebarWidth):0,s=[1/0,1/0,-1/0,-1/0];e.forEach((e=>{Je(s,e.getGeometry().getExtent())})),o.getView().fit(s,{padding:[80,80,80,i+80],duration:1e3,callback:()=>function(e,t,n){setTimeout((()=>{if(ce()){const r=e[0].get("geometry").flatCoordinates;let i;t.getSource().getFeatures().forEach((t=>{i=t.get("geometry").flatCoordinates,Math.abs(i[0]-r[0])<1e-4&&Math.abs(i[1]-r[1])<1e-4&&t.get("features").length===e.length&&(ie(e),n.current.getFeatures().push(t))}))}}),100)}(e,t,r)})}(r,a,_);else if(1===r.length){const t=r.map((e=>e.get("representationId"))),n=e.defaultBasketItems.filter((e=>t.includes(e.id))),i=r.map((e=>e.getId())),o=e.defaultBasketItems.filter((e=>i.includes(e.id)||t.includes(e.id)));o.length&&e.activateItemInBasket(o[0],{center:!1}),n.length&&e.activateItemInBasket(n[0],{center:!1})}}))}function W(e){"Tab"===e.key&&0!==pM.length&&(e.preventDefault(),q())}function q(){if(gM++,gM>=pM.length)return document.removeEventListener("keydown",W),void setTimeout((()=>{mM=!1}),1e3);const e=pM[gM];if(void 0!==e){const t=e.getGeometry().getCoordinates();!function(e){return!!(Array.isArray(e)&&Number.isFinite(e[0])&&Number.isFinite(e[1]))}(t)?q():(function(e){o.getView().animate({center:e,duration:400})}(t),setTimeout((()=>
3{!function(e){const t=o.getPixelFromCoordinate(e);o.dispatchEvent({coordinates:e,pixel:t,type:"singleclick"})}(t),function(e){pM.forEach((e=>e.set("highlight",!1))),e.set("highlight",!0)}(e)}),500))}}function V(e=!1){let t=10;return(e||"auto"===n.center.type)&&(t=30),[t+("geoedit"===n.mode?50:0),t+(((null===(r=P.current)||void 0===r?void 0:r.getBoundingClientRect().width)||0)+parseFloat((null===(i=window.getComputedStyle(P.current))||void 0===i?void 0:i.getPropertyValue("right"))||"0")),t,t+Y()];var r,i}function Y(){var e;return"geoedit"===n.mode?(null===(F||(F=document.querySelector("div.columns-map.k-future")),e=F)||void 0===e?void 0:e.classList.contains("collapsed"))?0:432:0}function H(){let e=[1/0,1/0,-1/0,-1/0];return o.getLayers().forEach((t=>{if(t instanceof py){const n=t.getSource();n instanceof V_&&Je(e,n.getSource().getExtent()),n instanceof Ry&&Je(e,n.getExtent())}})),e.indexOf(1/0)>-1&&(e=[402058,6690380,738993,6987454]),e}function $(e){const t=document.createElement("div");t.classList.add("ol-info"),t.classList.add(`ol-info--${e}`);const n=new ov({element:t,render:()=>{t.innerHTML=i[e]||""}});return L.push(n),n}function K(e){i.radius=e instanceof Pv?function(e){const t=Fn(Si(e,64))/Math.PI/2,n="Straal";if(Math.floor(t)>0){let e;return e=t>100?`${n}: ${(Math.round(t/1e3*100)/100).toFixed(2)} km`:`${n}: ${(Math.round(100*t)/100).toFixed(2)} m`,e}return null}(e):null,i.area=e instanceof Pv||e instanceof Sr?function(e){let t;if(e instanceof xi||e instanceof ki?t=Bn(e):e instanceof Pv&&(t=Bn(Si(e,64))),t&&Math.floor(t)>0){let e;return e=t>1e4?`Oppervlakte: ${(Math.round(t/1e6*100)/100).toFixed(2)} km<sup>2</sup>`:`Oppervlakte: ${(Math.round(100*t)/100).toFixed(2)} m<sup>2</sup>`,e}return null}(e):null,i.length=e instanceof Pv||e instanceof Sr?function(e,t){let n,r="Lengte";if(e instanceof ri||e instanceof xi||e instanceof ki?(n=Fn(e),r=e instanceof ri?"Lengte":t?"Omtrek":"Lengte"):e instanceof Pv&&(n=Fn(Si(e,64)),r="Omtrek"),n){let e;return e=n>100?`${r}: ${(Math.round(n/1e3*100)/100).toFixed(2)} km`:`${r}: ${(Math.round(100*n)/100).toFixed(2)} m`,e}return null}(e,i.area):null}function X(){const e=document.createElement("a");e.setAttribute("href",""),e.innerText="Info",e.addEventListener("click",Z);const t=document.createElement("div");return t.classList.add("ol-info"),t.classList.add("ol-info--about"),t.appendChild(e),new ov({element:t})}function Z(t){t.preventDefault(),e.onClickAbout()}function J(){const e=document.createElement("a");e.setAttribute("href",""),e.innerText="Terugmelden",e.addEventListener("click",Q);const t=document.createElement("div");return t.classList.add("ol-info"),t.classList.add("ol-info--feedback"),t.appendChild(e),new ov({element:t})}function Q(t){t.preventDefault(),t.stopPropagation(),e.mapDrawMode!==Zl.FEEDBACK?(e.setKpmMode(Tl.DRAW),e.setMapMode(Zl.FEEDBACK)):(e.setKpmMode(null),e.setMapMode(null))}function ee(){const t=document.createElement("button");t.title="Zoom in op alle locaties",t.innerHTML="Zoom in op alle locaties",t.setAttribute("aria-label","Zoom in op alle locaties"),t.addEventListener("click",e.centerBasket),t.type="button";const n=document.createElement("div");return n.classList.add("map-button"),n.classList.add("map-button--center-basket-button"),n.appendChild(t),new ov({element:n,target:P.current})}function te(e){S((t=>Object.assign(Object.assign({},t),{showControlMessage:e}))),setTimeout((()=>{S((e=>Object.assign(Object.assign({},e),{showControlMessage:!1})))}),1100)}function ne(e){return e.getGeometry().on("change",(e=>{K(e.target)}))}function re(t){let n="punt"===t?oE:sE;Zl.FEEDBACK===t&&(n=aE);const r=new a_({source:y.current,type:vE[t].drawingInteraction,style:n});let i;o.addInteraction(r),S((e=>Object.assign(Object.assign({},e),{mapInteraction:r}))),r.on("drawstart",(t=>{e.removeFromBasket("selected"),i=ne(t.feature)})),r.on("drawend",(()=>{Te(i)}))}function ie(n,i=!1){if(1===n.length||ce()||i){const i=n.map((e=>e.getId())),s=n.map((e=>e.get("representationId"))),a=e.defaultBasketItems.filter((e=>i.includes(e.id)||s.includes(e.id)));e.customLocationHandler?e.customLocationHandler(a):function(n){if(oe(o),null===O.current)return;const i=n.map((e=>""!==e.weergavenaam)).includes(!0),s=n.map((e=>void 0!==e.normwaarde&&void 0!==e.normwaarde.label)).includes(!0);if(!i&&!s)return;const a=document.createElement("div");a.classList.add("ol-popup"),a.classList.add("ol-popup--fixed"),(0,r.createRoot)(a).render(t.createElement(dM,{items:n,locationButton:{title:e.locationButton.title,targetBlank:e.locationButton.targetBlank}
3})),w.current=new ov({element:a}),document.querySelector('[data-kpm-selector="map-buttons"]').hidden=!0,o.addControl(w.current)}(a)}}function oe(e){w.current&&(e.removeControl(w.current),document.querySelector('[data-kpm-selector="map-buttons"]').hidden=!1)}function se(){j().addLoaded(),"geoview"!==n.mode&&e.onError("Een of meerdere delen van de kaart konden niet geladen worden. Indien de kaart in zijn geheel niet zichtbaar is kunt u alsnog punten plaatsen door ze ergens te prikken en vervolgens het coördinaat aan te passen.")}function ae(t){e.onLoad(t)}function le(){j().addLoaded()}function ue(){j().addLoading()}function ce(){return o.getView().getZoom()===o.getView().getMaxZoom()}return(0,t.useEffect)((()=>(v.current&&v.current.on("select",G),()=>{v.current&&v.current.un("select",G)})),[C,a,u,O,k]),(0,t.useEffect)((()=>(_.current&&_.current.on("select",U),()=>{_.current&&_.current.un("select",U)})),[C,a,u,O,k]),(0,t.useEffect)((()=>((void 0!==e.center.item||void 0===e.center.item&&0===e.activeLocations.length)&&oe(o),y.current.on("addfeature",z),()=>y.current.un("addfeature",z))),[e.defaultBasketItems,e.mapDrawMode]),(0,t.useEffect)((()=>(o.on("singleclick",B),()=>o.un("singleclick",B))),[M,e.allowClick,O]),(0,t.useEffect)((()=>{!function(){const t=new kv({coordinateFormat:e=>`X: ${Math.round(e[0])} Y: ${Math.round(e[1])}`,projection:"EPSG:28992",undefinedHTML:" "}),r=new uv({units:"metric"}),i=new vv({className:"map-button--full-screen",label:"Wissel van/naar fullscreen",labelActive:"",source:document.querySelector(".kpm-container"),target:P.current,tipLabel:"Wissel van/naar fullscreen",type:"button"});i.button_.ariaLabel="Wissel van/naar fullscreen",i.on("enterfullscreen",(()=>pE({eventAction:"view",eventName:["fullscreen","enter"]}))),i.on("leavefullscreen",(()=>pE({eventAction:"view",eventName:["fullscreen","leave"]})));const a=new _v({autoHide:!0,className:"map-button--rotate ol-rotate",label:"Herstel rotatie",labelActive:"",source:document.querySelector(".kpm-container"),target:P.current,tipLabel:"Herstel rotatie",type:"button"});a.element.ariaLabel="Herstel rotatie";const u=new bv({className:"map-button--zoom",target:P.current}),h=u.element.querySelector(".map-button--zoom-in"),f=u.element.querySelector(".map-button--zoom-out");h.setAttribute("aria-label","Zoom in"),f.setAttribute("aria-label","Zoom out");const g=new wv({collapsible:!1}),y=e.maxZoom?e.maxZoom:19,w=e.minZoom?e.minZoom:"geobrowse"===n.mode?13:8.5,C="geoedit"===n.mode?[-207e3,289e3,3e5,629e3]:w<8.3?[-407e3,189e3,1e6,929e3]:[-7e3,289e3,3e5,629e3],M=new Qm({center:(L=[4.34015737,52.07846659],Wn(),rr(L,"EPSG:4326",void 0!==N?N:"EPSG:3857")),extent:ir(C,"EPSG:28992","EPSG:3857"),maxZoom:y,minZoom:w,smoothExtentConstraint:!0,zoom:9}),k=[];var L,N;k.push(wS(M,e.activeBaseLayer,n,se,void 0,le,ue)),"brtachtergrondkaart"===e.activeBaseLayer&&k.push(wS(M,"bgtachtergrondkaart",n,se,ae,le,ue));const D=new h_({layers:k,title:"base_layer"}),F=[{control:$("radius"),key:"radius"},{control:$("length"),key:"length"},{control:$("area"),key:"area"},{control:r,key:"scaleLine"},{control:t,key:"mousePosition"},{control:X(),key:"about"},{control:J(),key:"feedback"},{control:g,key:"attribution"},{control:ee(),key:"center"},{control:i,key:"fullscreen"},{control:a,key:"rotate"},{control:u,key:"zoom"}],B=xv({attribution:!1,zoom:!1}).extend(F.filter((e=>n.controls.indexOf(e.key)>-1)).map((e=>e.control))),z=e.ctrlZoom,G=n.features.includes("rotate"),U=R_({dragPan:!1,mouseWheelZoom:!1,altShiftDragRotate:!1,pinchRotate:G}).extend([new tv({condition:function(e){return!0}}),new P_({condition:function(e){return!z||function(e){const t=e.originalEvent;return!t.altKey&&(Zh?t.metaKey:t.ctrlKey)&&!t.shiftKey}(e)}}),new v_({condition:function(e){return G&&jy(e)}})]);b.current=new q_({element:O.current,stopEvent:!1});const W=new j_({controls:B,interactions:U,layers:[D],overlays:[b.current],target:T.current,view:M});let q;x.current=ir(C,"EPSG:28992","EPSG:3857");const V=new Ry,Y=new V_({distance:50,source:V});q=n.clustering?new Ny({animationDuration:700,source:Y,style:$x}):new py({source:V,style:$x});const H=new Ry,K=new py({source:H,style:$x}),Z=new Ry,Q=new py({source:Z,style:Zx});W.addLayer(Q),W.addLayer(K),W.addLayer(q),n.center.highlight&&W.addLayer(function(e){var t,r,i,o,s,a,l,u;if("circle"!==n.center.type&&"location"!==n.center.type)return;if("circle"===n.center.type&&!n.center.circle)return;if(!("location"!==n.center.type||n.center.location&&n.center.location.geometrie_rd))return;
3const c=[],h=Ei(ir(e,"EPSG:28992","EPSG:3857"));h.scale(5);const d=new je({geometry:h});if(c.push(d),"location"===n.center.type){const e=I.readFeature(null===(r=null===(t=null==n?void 0:n.center)||void 0===t?void 0:t.location)||void 0===r?void 0:r.geometrie_rd,{dataProjection:"EPSG:28992",featureProjection:"EPSG:3857"}).getGeometry();if(e instanceof xi){const t=e.getCoordinates();h.setCoordinates([...h.getCoordinates(),...t])}else if(e instanceof ki){const t=e.getCoordinates();for(const e of t)h.setCoordinates([...h.getCoordinates(),...e])}}if("circle"===n.center.type){const e=Si(new Pv([null===(o=null===(i=null==n?void 0:n.center)||void 0===i?void 0:i.circle)||void 0===o?void 0:o.x,null===(a=null===(s=null==n?void 0:n.center)||void 0===s?void 0:s.circle)||void 0===a?void 0:a.y],null===(u=null===(l=null==n?void 0:n.center)||void 0===l?void 0:l.circle)||void 0===u?void 0:u.radius),64).transform("EPSG:28992","EPSG:3857").getCoordinates();h.setCoordinates([...h.getCoordinates(),...e])}const f=new Ry({features:c});return R=new py({source:f,title:"binocular",style:lE}),R.set("name","binocular"),R}(C)),e.mapDrawMode&&re(e.mapDrawMode),v.current=new Av({condition:Wy,layers:[q,K],style:Xx}),_.current=new Av({layers:[q,K],style:Kx}),["geobrowse","geoview"].includes(n.mode)&&(o.addInteraction(v.current),o.addInteraction(_.current),function(e,t,n){n.addInteraction(e),n.addInteraction(t)}(v.current,_.current,W)),W.on("precompose",(()=>{m(!0)})),W.on("rendercomplete",(()=>{m(!1)})),W.on("loadstart",(()=>{p(!0),j().show()})),W.on("loadend",(()=>{p(!1),j().hide()})),W.on("change:size",(()=>{W.getView().getMinZoom()!==w&&W.getView().setMinZoom(w)})),W.on("movestart",(()=>{v.current&&v.current.getFeatures&&v.current.getFeatures().clear(),_.current&&_.current.getFeatures&&_.current.getFeatures().clear(),oe(W)})),W.on("moveend",(t=>{var n,r,i;const o=W.getView().getZoomForResolution(W.getView().getResolution());W.getView().getMinZoom()!==o&&(null===(n=t.frameState)||void 0===n?void 0:n.extent)&&Math.round(x.current[2]-x.current[0])<=Math.round((null===(r=t.frameState)||void 0===r?void 0:r.extent[2])-(null===(i=t.frameState)||void 0===i?void 0:i.extent[0]))&&W.getView().setMinZoom(o),o!==e.zoomLevel&&(h.disabled=o>=W.getView().getMaxZoom(),f.disabled=o<=W.getView().getMinZoom()),e.setZoomLevel(o);const s=t.target,a=s.getView().calculateExtent(s.getSize());e.onPanZoomHandler(ir(a,"EPSG:3857","EPSG:28992"),o)})),ES()&&(W.getViewport().addEventListener("touchend",(e=>{0===e.touches.length&&S((e=>Object.assign(Object.assign({},e),{touchMoving:!1})))})),W.getViewport().addEventListener("touchmove",(e=>{1!==e.touches.length||E.touchMoving?e.touches.length>1&&(S((e=>Object.assign(Object.assign({},e),{touchMoving:!0}))),E.showControlMessage&&S((e=>Object.assign(Object.assign({},e),{showControlMessage:!1})))):te("Gebruik twee vingers om te navigeren")}))),W.getViewport().addEventListener("wheel",(t=>{!e.ctrlZoom||t.ctrlKey||t.metaKey||te(`Gebruik ${/Mac/.exec(window.navigator.platform)?"CMD":"CTRL"} + scrollen om in- en uit te zoomen op de kaart`)})),W.getViewport().addEventListener("pointermove",(()=>{e.mapDrawMode&&!E.mapInteraction.getActive()&&E.mapInteraction.setActive(!0)})),setTimeout((()=>{const t=W.getViewport().querySelectorAll("canvas");t.length>1&&t[1].addEventListener("mouseout",(()=>{e.mapDrawMode&&E.mapInteraction.setActive(!1)}))}),500);const ie=new Uv({source:A.current}),ce=new Yv({source:A.current});let he;W.addInteraction(ie),W.addInteraction(ce),ie.on("modifystart",(e=>{he=ne(e.features.item(0))})),ie.on("modifyend",(t=>{Te(he);const n=t.features.item(0),r=n.getGeometry(),i=I.writeGeometry(r,{dataProjection:"EPSG:28992",featureProjection:"EPSG:3857"});e.updateGeometryItemInBasket(n.getId(),i)})),c(K),d(Q),l(q),s(W)}()}),[]),(0,t.useEffect)((()=>{a&&h&&u&&function(){const t=function(t){const r=!n.features||!n.features.length,i=[],o=[],s=[];if(t.forEach((t=>{try{const a=t.feature||I.readFeature(t.geometrie_rd,{dataProjection:"EPSG:28992",featureProjection:"EPSG:3857"}),l=e.activeLocations.indexOf(t)>-1||e.peekLocations.indexOf(t)>-1;if(a.setId(t.id),a.set("type",t.type),a.set("highlight",l),a.set("readonly","geoedit"===n.mode&&(t.readonly||r)),t.marker&&(a.set("marker",t.marker),t.marker_active&&a.set("marker_active",t.marker_active)),"Point"===a.getGeometry().getType())i.push(a);else if("zone"===t.areaType)s.push(a);else if(n.optimizeComplexGeo&&!ce()){const e=function(e,t){let n,r=e.getGeometry().getCoordinates();switch(e.getGeometry().getType()){case"MultiPoint":n=function(e,t,n={}){return Tb({type:"MultiPoint",coordinates:e},t,n)}(r);break;case"MultiLineString":n=function(e,t,n={}){return Tb({type:"MultiLineString",coordinates:e},t,n)}(r);break;case"LineString":n=function(e,t,n={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return Tb({type:"LineString",coordinates:e},t,n)}(r);break;case"MultiPolygon":n=Ib(r);break;
3case"Polygon":case"Circle":n=Ob(r);break;case"Point":n=Pb(r);break;default:console.debug("Geometry type not implemented: "+e.getGeometry().getType())}const i=Fb(n),o=`POINT(${i.geometry.coordinates[0]} ${i.geometry.coordinates[1]})`,s=t.readFeature(o);return s.setId(rl()),s.set("type","representatie"),s.set("representationId",e.getId()),s}(a,I);(t.representationHover||t.active)&&(e.set("hover",!!t.representationHover),e.set("highlight",!!t.active),a.set("hover",!!t.representationHover),o.push(a)),i.push(e)}else o.push(a)}catch(e){console.error(`[error] : ${e.message}`)}})),n.clustering?(a.getSource().getSource().clear(),a.getSource().getSource().addFeatures(i)):(a.getSource().clear(),a.getSource().addFeatures(i)),u.getSource().clear(),u.getSource().addFeatures(o),h.getSource().clear(),h.getSource().addFeatures(s),!r){const n=[...i,...o].filter((n=>{const r=t.find((e=>e.id===n.getId()));return r&&!0===r.active&&!0!==r.readonly&&e.activeLocations.some((e=>e.id===n.getId()))&&ou.indexOf(r.type)>=0}));A.current.clear(),A.current.addFeatures(n)}return[...i,...o,...s]}([...e.inactiveLocations,...e.activeLocations,...e.peekLocations]);if(pM=t,mM||(mM=!0,gM=-1,document.addEventListener("keydown",W)),e.center.sequence!==(null==N?void 0:N.center.sequence)&&function(e){if(e){if(e.geometrie_rd){const t=Math.min(o.getView().getResolution(),5);o.getView().fit(I.readGeometry(e.geometrie_rd).transform("EPSG:28992","EPSG:3857"),{padding:V(!0),minResolution:t})}}else{let e=[1/0,1/0,-1/0,-1/0],u=1;switch(n.center.type){case"auto":e=H(),u=5;break;case"circle":e=Si(new Pv([null===(r=null===(t=null==n?void 0:n.center)||void 0===t?void 0:t.circle)||void 0===r?void 0:r.x,null===(s=null===(i=null==n?void 0:n.center)||void 0===i?void 0:i.circle)||void 0===s?void 0:s.y],null===(l=null===(a=null==n?void 0:n.center)||void 0===a?void 0:a.circle)||void 0===l?void 0:l.radius),64).transform("EPSG:28992","EPSG:3857");break;case"location":e=n.center.location&&n.center.location.geometrie_rd?I.readGeometry(n.center.location.geometrie_rd).transform("EPSG:28992","EPSG:3857"):H()}o.getView().fit(e,{padding:V(),minResolution:u})}var t,r,i,s,a,l}(e.center.item),"geoedit"===n.mode&&e.activeLocations.length>0){const t=e.activeLocations[0];let n;t.geometrie_rd&&(n=I.readGeometry(t.geometrie_rd).transform("EPSG:28992","EPSG:3857")),K(n)}if(e.mapDrawMode!==(null==N?void 0:N.mapDrawMode)&&(o.removeInteraction(E.mapInteraction),e.mapDrawMode&&re(e.mapDrawMode)),e.activeBaseLayer!==(null==N?void 0:N.activeBaseLayer)){const t=o.getLayers(),r=[];r.push(wS(o.getView(),e.activeBaseLayer,n,se,void 0,le,ue)),"brtachtergrondkaart"===e.activeBaseLayer&&r.push(wS(o.getView(),"bgtachtergrondkaart",n,se,ae,le,ue)),"luchtfoto"===e.activeBaseLayer&&r.push(wS(o.getView(),"luchtfotolabels",n,se,ae,le,ue));const i=new h_({layers:r,title:"base_layer"});t.setAt(0,i)}e.activeOverlayLayer!==(null==N?void 0:N.activeOverlayLayer)&&(function(){const e=function(e){let t;return o.getLayers().forEach((n=>{n.get("title")===e&&(t=n)})),t}("extra_layer");e&&(e instanceof py&&e.getSource().clear(),o.removeLayer(e))}(),function(){if(!e.activeOverlayLayer)return;const t=wS(o.getView(),e.activeOverlayLayer,n),r=new h_({layers:[t],title:"extra_layer"});o.addLayer(r)}()),N&&e.zoomLevel<(null==N?void 0:N.zoomLevel)&&e.activeOverlayLayer&&!xS(e.activeOverlayLayer,e.zoomLevel,n)&&e.deactivateOverlayLayer()}()}),[a,h,u,e]),(0,t.useEffect)((()=>{o&&(document.removeEventListener("keydown",W),document.addEventListener("keydown",W))}),[o]),t.createElement("div",{style:{height:"100%"}},t.createElement("div",{className:"map",style:{height:"100%"},tabIndex:0,ref:T,"data-loading":f||g,"data-zoomlevel":e.zoomLevel}),t.createElement("div",{id:"map-progress"}),t.createElement("div",{className:"map-buttons",ref:P,"data-kpm-selector":"map-buttons"},n.controls.includes("base-layer")?t.createElement(mE,null):null),t.createElement("div",{ref:O,className:"ol-popup"}),ES()||e.ctrlZoom?t.createElement(SS,{message:E.showControlMessage}):null)})),vM=function(e){return t.createElement("div",{className:"container"},e.children)};
3function _M(e,t){return _M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_M(e,t)}function bM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_M(e,t)}function wM(){return wM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wM.apply(null,arguments)}function xM(e){return xM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xM(e)}function EM(e,t,n){return(t=function(e){var t=function(e){if("object"!=xM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xM(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SM(Object(n),!0).forEach((function(t){EM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MM(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var kM="function"==typeof Symbol&&Symbol.observable||"@@observable",TM=function(){return Math.random().toString(36).substring(7).split("").join(".")},PM={INIT:"@@redux/INIT"+TM(),REPLACE:"@@redux/REPLACE"+TM(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+TM()}};function OM(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(MM(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(MM(1));return n(OM)(e,t)}if("function"!=typeof e)throw new Error(MM(2));var i=e,o=t,s=[],a=s,l=!1;function u(){a===s&&(a=s.slice())}function c(){if(l)throw new Error(MM(3));return o}function h(e){if("function"!=typeof e)throw new Error(MM(4));if(l)throw new Error(MM(5));var t=!0;return u(),a.push(e),function(){if(t){if(l)throw new Error(MM(6));t=!1,u();var n=a.indexOf(e);a.splice(n,1),s=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(MM(7));if(void 0===e.type)throw new Error(MM(8));if(l)throw new Error(MM(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=s=a,n=0;n<t.length;n++)(0,t[n])();return e}return d({type:PM.INIT}),(r={dispatch:d,subscribe:h,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(MM(10));i=e,d({type:PM.REPLACE})}})[kM]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(MM(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[kM]=function(){return this},e},r}function IM(e,t){return function(){return t(e.apply(this,arguments))}}function RM(e,t){if("function"==typeof e)return IM(e,t);if("object"!=typeof e||null===e)throw new Error(MM(16));var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=IM(i,t))}return n}function AM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var LM=t.createContext(null),NM=function(e){e()};var DM={notify:function(){},get:function(){return[]}};function FM(e,t){var n,r=DM;function i(){s.onStateChange&&s.onStateChange()}function o(){var o,s,a;n||(n=t?t.addNestedSub(i):e.subscribe(i),o=NM,s=null,a=null,r={clear:function(){s=null,a=null},notify:function(){o((function(){for(var e=s;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=s;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,n=a={callback:e,next:null,prev:a};return n.prev?n.prev.next=n:s=n,function(){t&&null!==s&&(t=!1,n.next?n.next.prev=n.prev:a=n.prev,n.prev?n.prev.next=n.next:s=n.next)}}})}var s={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=DM)},getListeners:function(){return r}};return s}var jM="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;const BM=function(e){var n=e.store,r=e.context,i=e.children,o=(0,t.useMemo)((function(){var e=FM(n);return{store:n,subscription:e}}),[n]),s=(0,t.useMemo)((function(){return n.getState()}),[n]);jM((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,s]);var a=r||LM;return t.createElement(a.Provider,{value:o},i)};function zM(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var GM=n(4146),UM=n.n(GM),WM=n(4363),qM=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],VM=["reactReduxForwardedRef"],YM=[],HM=[null,null];function $M(e,t){var n=e[1];return[t.payload,n+1]}function KM(e,t,n){jM((function(){return e.apply(void 0,t)}),n)}function XM(e,t,n,r,i,o,s){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,s())}function ZM(e,t,n,r,i,o,s,a,l,u){if(e){var c=!1,h=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,i.current)}catch(e){n=e,h=e}n||(h=null),e===o.current?s.current||l():(o.current=e,a.current=e,s.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=d,n.trySubscribe(),d(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h}}}var JM=function(){return[null,0]};function QM(e,n){void 0===n&&(n={});var r=n,i=r.getDisplayName,o=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=r.methodName,a=void 0===s?"connectAdvanced":s,l=r.renderCountProp,u=void 0===l?void 0:l,c=r.shouldHandleStateChanges,h=void 0===c||c,d=r.storeKey,f=void 0===d?"store":d,p=(r.withRef,r.forwardRef),g=void 0!==p&&p,m=r.context,y=void 0===m?LM:m,v=zM(r,qM),_=y;return function(n){var r=n.displayName||n.name||"Component",i=o(r),s=wM({},v,{getDisplayName:o,methodName:a,renderCountProp:u,shouldHandleStateChanges:h,storeKey:f,displayName:i,wrappedComponentName:r,WrappedComponent:n}),l=v.pure,c=l?t.useMemo:function(e){return e()};function d(r){var i=(0,t.useMemo)((function(){var e=r.reactReduxForwardedRef,t=zM(r,VM);return[r.context,e,t]}),[r]),o=i[0],a=i[1],l=i[2],u=(0,t.useMemo)((function(){return o&&o.Consumer&&(0,WM.isContextConsumer)(t.createElement(o.Consumer,null))?o:_}
3),[o,_]),d=(0,t.useContext)(u),f=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(d)&&Boolean(d.store);var p=f?r.store:d.store,g=(0,t.useMemo)((function(){return function(t){return e(t.dispatch,s)}(p)}),[p]),m=(0,t.useMemo)((function(){if(!h)return HM;var e=FM(p,f?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,f,d]),y=m[0],v=m[1],b=(0,t.useMemo)((function(){return f?d:wM({},d,{subscription:y})}),[f,d,y]),w=(0,t.useReducer)($M,YM,JM),x=w[0][0],E=w[1];if(x&&x.error)throw x.error;var S=(0,t.useRef)(),C=(0,t.useRef)(l),M=(0,t.useRef)(),k=(0,t.useRef)(!1),T=c((function(){return M.current&&l===C.current?M.current:g(p.getState(),l)}),[p,x,l]);KM(XM,[C,S,k,l,T,M,v]),KM(ZM,[h,p,y,g,C,S,k,M,v,E],[p,y,g]);var P=(0,t.useMemo)((function(){return t.createElement(n,wM({},T,{ref:a}))}),[a,n,T]);return(0,t.useMemo)((function(){return h?t.createElement(u.Provider,{value:b},P):P}),[u,P,b])}var p=l?t.memo(d):d;if(p.WrappedComponent=n,p.displayName=d.displayName=i,g){var m=t.forwardRef((function(e,n){return t.createElement(p,wM({},e,{reactReduxForwardedRef:n}))}));return m.displayName=i,m.WrappedComponent=n,UM()(m,n)}return UM()(p,n)}}function ek(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function tk(e,t){if(ek(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!ek(e[n[i]],t[n[i]]))return!1;return!0}function nk(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function rk(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function ik(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=rk(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=rk(i),i=r(t,n)),i},r}}const ok=[function(e){return"function"==typeof e?ik(e):void 0},function(e){return e?void 0:nk((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?nk((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}],sk=[function(e){return"function"==typeof e?ik(e):void 0},function(e){return e?void 0:nk((function(){return{}}))}];function ak(e,t,n){return wM({},n,e,t)}const lk=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,s=!1;return function(t,n,a){var l=e(t,n,a);return s?i&&o(l,r)||(r=l):(s=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return ak}}];var uk=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ck(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function hk(e,t,n,r,i){var o,s,a,l,u,c=i.areStatesEqual,h=i.areOwnPropsEqual,d=i.areStatePropsEqual,f=!1;return function(i,p){return f?function(i,f){var p,g,m=!h(f,s),y=!c(i,o,f,s);return o=i,s=f,m&&y?(a=e(o,s),t.dependsOnOwnProps&&(l=t(r,s)),u=n(a,l,s)):m?(e.dependsOnOwnProps&&(a=e(o,s)),t.dependsOnOwnProps&&(l=t(r,s)),u=n(a,l,s)):y?(p=e(o,s),g=!d(p,a),a=p,g&&(u=n(a,l,s)),u):u}(i,p):(a=e(o=i,s=p),l=t(r,s),u=n(a,l,s),f=!0,u)}}function dk(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=zM(t,uk),s=n(e,o),a=r(e,o),l=i(e,o);return(o.pure?hk:ck)(s,a,l,e,o)}var fk=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function pk(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function gk(e,t){return e===t}function mk(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?QM:n,i=t.mapStateToPropsFactories,o=void 0===i?sk:i,s=t.mapDispatchToPropsFactories,a=void 0===s?ok:s,l=t.mergePropsFactories,u=void 0===l?lk:l,c=t.selectorFactory,h=void 0===c?dk:c;return function(e,t,n,i){void 0===i&&(i={});var s=i,l=s.pure,c=void 0===l||l,d=s.areStatesEqual,f=void 0===d?gk:d,p=s.areOwnPropsEqual,g=void 0===p?tk:p,m=s.areStatePropsEqual,y=void 0===m?tk:m,v=s.areMergedPropsEqual,_=void 0===v?tk:v,b=zM(s,fk),w=pk(e,o,"mapStateToProps"),x=pk(t,a,"mapDispatchToProps"),E=pk(n,u,"mergeProps");return r(h,wM({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispat
3chToProps:x,initMergeProps:E,pure:c,areStatesEqual:f,areOwnPropsEqual:g,areStatePropsEqual:y,areMergedPropsEqual:_},b))}}const yk=mk();var vk,_k=n(961);function bk(e,n){var r=(0,t.useState)((function(){return{inputs:n,result:e()}}))[0],i=(0,t.useRef)(!0),o=(0,t.useRef)(r),s=i.current||Boolean(n&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,o.current.inputs))?o.current:{inputs:n,result:e()};return(0,t.useEffect)((function(){i.current=!1,o.current=s}),[s]),s.result}vk=_k.unstable_batchedUpdates,NM=vk;var wk=bk,xk=function(e,t){return bk((function(){return e}),t)},Ek=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},Sk=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Ck=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Mk={top:0,right:0,bottom:0,left:0},kk=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Mk:n,i=e.border,o=void 0===i?Mk:i,s=e.padding,a=void 0===s?Mk:s,l=Ek(Sk(t,r)),u=Ek(Ck(t,o)),c=Ek(Ck(u,a));return{marginBox:l,borderBox:Ek(t),paddingBox:u,contentBox:c,margin:r,border:o,padding:a}},Tk=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(){throw new Error("Invariant failed")}(),n},Pk=function(e,t){var n,r,i=e.borderBox,o=e.border,s=e.margin,a=e.padding,l=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return kk({borderBox:l,border:o,margin:s,padding:a})},Ok=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Pk(e,t)},Ik=function(e,t){var n={top:Tk(t.marginTop),right:Tk(t.marginRight),bottom:Tk(t.marginBottom),left:Tk(t.marginLeft)},r={top:Tk(t.paddingTop),right:Tk(t.paddingRight),bottom:Tk(t.paddingBottom),left:Tk(t.paddingLeft)},i={top:Tk(t.borderTopWidth),right:Tk(t.borderRightWidth),bottom:Tk(t.borderBottomWidth),left:Tk(t.borderLeftWidth)};return kk({borderBox:e,margin:n,padding:r,border:i})},Rk=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Ik(t,n)},Ak=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Lk(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(i=t[n])||Ak(r)&&Ak(i)))return!1;var r,i;return!0}const Nk=function(e,t){var n;void 0===t&&(t=Lk);var r,i=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&n===this&&t(s,i)||(r=e.apply(this,s),o=!0,n=this,i=s),r}},Dk=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t=i,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function Fk(e,t){}function jk(){}function Bk(e,t,n){var r=t.map((function(t){var r=function(e,t){return wM({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}Fk.bind(null,"warn"),Fk.bind(null,"error");function zk(e){this.message=e}function Gk(e,t){if(!e)throw new zk("Invariant failed")}zk.prototype.toString=function(){return this.message};var Uk=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=jk,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof zk&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}bM(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=Bk(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof zk))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(t.Component),Wk=function(e){return e+1},qk=function(e,t){var n=e.droppableId===t.droppableId,r=Wk(e.index),i=Wk(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+i+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},Vk=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Yk=function(e){return"\n The item has returned to its starting position\n of "+Wk(e.index)+"\n"},Hk=function(e){return"\n You have lifted an item in position "+Wk(e.source.index)+"\n"},$k=function(e){var t=e.destination;if(t)return qk(e.source,t);
3var n=e.combine;return n?Vk(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Kk=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Yk(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+qk(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Vk(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Yk(e.source)+"\n "},Xk={x:0,y:0},Zk=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Jk=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Qk=function(e,t){return e.x===t.x&&e.y===t.y},eT=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},tT=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},nT=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},rT=function(e,t){return Math.min.apply(Math,t.map((function(t){return nT(e,t)})))},iT=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},oT=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},sT=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},aT=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Ek({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):Ek(e)},lT=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=function(e,t){return t?oT(e,t.scroll.diff.displacement):e}(t.marginBox,i),s=function(e,t,n){var r;return n&&n.increasedBy?wM({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(o,r,n);return{page:t,withPlaceholder:n,active:aT(s,i)}},uT=function(e,t){e.frame||Gk(!1);var n=e.frame,r=Jk(t,n.scroll.initial),i=eT(r),o=wM({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}});return wM({},e,{frame:o,subject:lT({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o})})};function cT(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function hT(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function dT(e,t){if(e.find)return e.find(t);var n=hT(e,t);return-1!==n?e[n]:void 0}function fT(e){return Array.prototype.slice.call(e)}var pT=Nk((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),gT=Nk((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),mT=Nk((function(e){return cT(e)})),yT=Nk((function(e){return cT(e)})),vT=Nk((function(e,t){var n=yT(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function _T(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function bT(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var wT=Nk((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),xT=function(e,t){return e.descriptor.droppableId===t.descriptor.id},ET={point:Xk,value:0},ST={invisible:{},visible:{},all:[]},CT={displaced:ST,displacedBy:ET,at:null},MT=function(e,t){return function(n){return e<=n&&n<=t}},kT=function(e){var t=MT(e.top,e.bottom),n=MT(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;var s=r.top<e.top&&r.bottom>e.bottom,a=r.left<e.left&&r.right>e.right;return!(!s||!a)||s&&o||a&&i}},TT=function(e){var t=MT(e.top,e.bottom),n=MT(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},PT={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},OT={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},IT=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,s=i?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Xk;return oT(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(s,n,o)&&function(e,t,n){return n(t)(e)}(s,r,o)},RT=function(e){return IT(wM({},e,{isVisibleThroughFrameFn:TT}))};function AT(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,s=e.last;return t.reduce((function(e,t){var a=function(e,t){var n=e.page.marginBox,r
3={top:t.point.y,right:0,bottom:0,left:t.point.x};return Ek(Sk(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!IT(wM({},{target:a,destination:n,viewport:i,withDroppableDisplacement:!0},{isVisibleThroughFrameFn:kT})))return e.invisible[t.descriptor.id]=!0,e;var u=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,i=t.visible;if(r[e])return!1;var o=i[e];return!o||o.shouldAnimate}(l,s,o),c={draggableId:l,shouldAnimate:u};return e.visible[l]=c,e}),{all:[],visible:{},invisible:{}})}function LT(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:ST,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function NT(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,s=e.last,a=e.index,l=e.forceShouldAnimate,u=xT(t,r);if(null==a)return LT({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var c=dT(n,(function(e){return e.descriptor.index===a}));if(!c)return LT({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var h=wT(t,n),d=n.indexOf(c);return{displaced:AT({afterDragging:h.slice(d),destination:r,displacedBy:o,last:s,viewport:i.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function DT(e,t){return Boolean(t.effected[e])}var FT=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},jT=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},BT=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return tT(t.line,n.marginBox[t.end]+FT(t,r),jT(t,n.marginBox,r))},zT=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return tT(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),jT(t,n.marginBox,r))},GT=function(e,t){var n=e.frame;return n?Zk(t,n.scroll.diff.displacement):t},UT=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.afterCritical,s=n.page.borderBox.center,a=t.at;return r&&a?"REORDER"===a.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,s=vT(i.descriptor.id,r),a=n.page,l=i.axis;if(!s.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return tT(t.line,n.contentBox[t.start]+FT(t,r),jT(t,n.contentBox,r))}({axis:l,moveInto:i.page,isMoving:a});var u=t.displaced,c=t.displacedBy,h=u.all[0];if(h){var d=r[h];if(DT(h,o))return zT({axis:l,moveRelativeTo:d.page,isMoving:a});var f=Pk(d.page,c.point);return zT({axis:l,moveRelativeTo:f,isMoving:a})}var p=s[s.length-1];if(p.descriptor.id===n.descriptor.id)return a.borderBox.center;if(DT(p.descriptor.id,o)){var g=Pk(p.page,eT(o.displacedBy.point));return BT({axis:l,moveRelativeTo:g,isMoving:a})}return BT({axis:l,moveRelativeTo:p.page,isMoving:a})}({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:o}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=bT(n);i||Gk(!1);var o=i.draggableId,s=r[o].page.borderBox.center,a=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[r]||t.invisible[r]);return DT(r,n)?o?Xk:eT(i.point):o?i.point:Xk}({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Zk(s,a)}({impact:t,draggables:i,afterCritical:o}):s}(e),n=e.droppable;return n?GT(n,t):t},WT=function(e,t){var n=Jk(t,e.scroll.initial),r=eT(n);return{frame:Ek({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function qT(e,t){return e.map((function(e){return t[e]}))}var VT=function(e){var t,n,r=e.pageBorderBoxCenter,i=e.draggable,o=(t=e.viewport,n=r,Zk(t.scroll.diff.displacement,n)),s=Jk(o,i.page.borderBox.center);return Zk(i.client.borderBox.center,s)},YT=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,s=e.onlyOnMainAxis,a=void 0!==s&&s,l=Jk(r,t.page.borderBox.center),u={target:oT(t.page.borderBox,l),destination:n,withDroppableDisplacement:o,viewport:i};return a?function(e){return IT(wM({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=MT(e.top,e.bottom),r=MT(e.left,e.right);return function(e){return t===PT?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):RT(u)},HT=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,o=e.previousImpact,s=e.viewport,a=e.previousPageBorderBoxCenter,l=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var c=vT(r.descriptor.id,i),h=xT(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.previousImpact;
3if(!r.isCombineEnabled)return null;if(!_T(o))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return wM({},o,{at:t})}var a=o.displaced.all,l=a.length?a[0]:null;if(t)return l?s(l):null;var u=wT(n,i);if(!l)return u.length?s(u[u.length-1].descriptor.id):null;var c=hT(u,(function(e){return e.descriptor.id===l}));-1===c&&Gk(!1);var h=c-1;return h<0?null:s(u[h].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:o})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,s=e.insideDestination,a=e.previousImpact,l=e.viewport,u=e.afterCritical,c=a.at;if(c||Gk(!1),"REORDER"===c.type){var h=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,s=t?o+1:o-1,a=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return s<a||s>(n?l:l+1)?null:s}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:s});return null==h?null:NT({draggable:r,insideDestination:s,destination:o,viewport:l,last:a.displaced,displacedBy:a.displacedBy,index:h})}var d=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,i=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var o=r.draggableId,s=n[o].descriptor.index;return DT(o,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:o,displaced:a.displaced,draggables:i,combine:c.combine,afterCritical:u});return null==d?null:NT({draggable:r,insideDestination:s,destination:o,viewport:l,last:a.displaced,displacedBy:a.displacedBy,index:d})}({isMovingForward:t,isInHomeList:h,draggable:n,draggables:i,destination:r,insideDestination:c,previousImpact:o,viewport:s,afterCritical:u});if(!d)return null;var f=UT({impact:d,draggable:n,droppable:r,draggables:i,afterCritical:u});if(YT({draggable:n,destination:r,newPageBorderBoxCenter:f,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:VT({pageBorderBoxCenter:f,draggable:n,viewport:s}),impact:d,scrollJumpRequest:null};var p=Jk(f,a),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,o=e.maxScrollChange,s=WT(n,Zk(n.scroll.current,o)),a=r.frame?uT(r,Zk(r.frame.scroll.current,o)):r,l=t.displaced,u=AT({afterDragging:qT(l.all,i),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:l,forceShouldAnimate:!1}),c=AT({afterDragging:qT(l.all,i),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),h={},d={},f=[l,u,c];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,f);t?d[e]=t:h[e]=!0})),wM({},t,{displaced:{all:l.all,invisible:h,visible:d}})}({impact:d,viewport:s,destination:r,draggables:i,maxScrollChange:p});return{clientSelection:l,impact:g,scrollJumpRequest:p}},$T=function(e){var t=e.subject.active;return t||Gk(!1),t},KT=function(e,t){var n=e.page.borderBox.center;return DT(e.descriptor.id,t)?Jk(n,t.displacedBy.point):n},XT=function(e,t){var n=e.page.borderBox;return DT(e.descriptor.id,t)?oT(n,eT(t.displacedBy.point)):n},ZT=Nk((function(e,t){var n=t[e.line];return{value:n,point:tT(e.line,n)}})),JT=function(e,t){return wM({},e,{scroll:wM({},e.scroll,{max:t})})},QT=function(e,t,n){var r=e.frame;xT(t,e)&&Gk(!1),e.subject.withPlaceholder&&Gk(!1);var i=ZT(e.axis,t.displaceBy).point,o=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return tT(r.line,t[r.line]);var i=e.subject.page.contentBox[r.size],o=vT(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-i;return o<=0?null:tT(r.line,o)}(e,i,n),s={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return wM({},e,{subject:lT({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame})});var a=o?Zk(r.scroll.max,o):r.scroll.max,l=JT(r,a);return wM({},e,{subject:lT({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:l}),frame:l})},eP=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},tP=function(e){var t=e.state,n=e.type,r=function(e,t){var n=eP(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),i=Boolean(r),o=t.dimensions.droppables[t.critical.droppable.
3id],s=r||o,a=s.axis.direction,l="vertical"===a&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===a&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!i)return null;var u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],h=t.current.page.borderBoxCenter,d=t.dimensions,f=d.draggables,p=d.droppables;return l?HT({isMovingForward:u,previousPageBorderBoxCenter:h,draggable:c,destination:s,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,s=e.droppables,a=e.viewport,l=e.afterCritical,u=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,o=e.viewport,s=r.subject.active;if(!s)return null;var a=r.axis,l=MT(s[a.start],s[a.end]),u=mT(i).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return kT(o.frame)($T(e))})).filter((function(e){var n=$T(e);return t?s[a.crossAxisEnd]<n[a.crossAxisEnd]:n[a.crossAxisStart]<s[a.crossAxisStart]})).filter((function(e){var t=$T(e),n=MT(t[a.start],t[a.end]);return l(t[a.start])||l(t[a.end])||n(s[a.start])||n(s[a.end])})).sort((function(e,n){var r=$T(e)[a.crossAxisStart],i=$T(n)[a.crossAxisStart];return t?r-i:i-r})).filter((function(e,t,n){return $T(e)[a.crossAxisStart]===$T(n[0])[a.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return MT($T(e)[a.start],$T(e)[a.end])(n[a.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return $T(e)[a.start]-$T(t)[a.start]}))[0]:u.sort((function(e,t){var r=rT(n,sT($T(e))),i=rT(n,sT($T(t)));return r!==i?r-i:$T(e)[a.start]-$T(t)[a.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:s,viewport:a});if(!u)return null;var c=vT(u.descriptor.id,o),h=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.afterCritical,o=e.insideDestination.filter((function(e){return RT({target:XT(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=nT(t,GT(r,KT(e,i))),s=nT(t,GT(r,KT(n,i)));return o<s?-1:s<o?1:e.descriptor.index-n.descriptor.index}));return o[0]||null}({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:l}),d=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,o=e.draggables,s=e.destination,a=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var u={displaced:ST,displacedBy:ET,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:0}}},c=UT({impact:u,draggable:i,droppable:s,draggables:o,afterCritical:l}),h=xT(i,s)?s:QT(s,i,o);return YT({draggable:i,destination:h,newPageBorderBoxCenter:c,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var d,f=Boolean(t[s.axis.line]<=n.page.borderBox.center[s.axis.line]),p=(d=n.descriptor.index,n.descriptor.id===i.descriptor.id||f?d:d+1);return NT({draggable:i,insideDestination:r,destination:s,viewport:a,displacedBy:ZT(s.axis,i.displaceBy),last:ST,index:p})}({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:o,moveRelativeTo:h,insideDestination:c,viewport:a,afterCritical:l});if(!d)return null;var f=UT({impact:d,draggable:r,droppable:u,draggables:o,afterCritical:l});return{clientSelection:VT({pageBorderBoxCenter:f,draggable:r,viewport:
3a}),impact:d,scrollJumpRequest:null}}({isMovingForward:u,previousPageBorderBoxCenter:h,draggable:c,isOver:s,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function nP(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function rP(e){var t=MT(e.top,e.bottom),n=MT(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}var iP=function(e,t){return Ek(oT(e,t))};function oP(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var sP=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,s=e.viewport,a=e.afterCritical,l=iP(n.page.borderBox,t),u=function(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=mT(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,i=e.subject.active;if(!i)return!1;if(r=i,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(rP(i)(t.center))return!0;var o=e.axis,s=i.center[o.crossAxisLine],a=t[o.crossAxisStart],l=t[o.crossAxisEnd],u=MT(i[o.crossAxisStart],i[o.crossAxisEnd]),c=u(a),h=u(l);return!c&&!h||(c?a<s:l>s)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,i=n.map((function(e){var n=e.axis,i=tT(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:nT(r,i)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:i}):null}({pageBorderBox:l,draggable:n,droppables:i});if(!u)return CT;var c=i[u],h=vT(c.descriptor.id,r),d=function(e,t){var n=e.frame;return n?iP(t,n.scroll.diff.value):t}(c,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,o=e.insideDestination,s=e.afterCritical;if(!i.isCombineEnabled)return null;var a=i.axis,l=ZT(i.axis,t.displaceBy),u=l.value,c=n[a.start],h=n[a.end],d=dT(wT(t,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox,i=n[a.size]/4,o=DT(t,s),l=oP({displaced:r.displaced,id:t});return o?l?h>n[a.start]+i&&h<n[a.end]-i:c>n[a.start]-u+i&&c<n[a.end]-u-i:l?h>n[a.start]+u+i&&h<n[a.end]+u-i:c>n[a.start]+i&&c<n[a.end]-i}));return d?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:o,destination:c,insideDestination:h,afterCritical:a})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,s=e.viewport,a=e.afterCritical,l=r.axis,u=ZT(r.axis,n.displaceBy),c=u.value,h=t[l.start],d=t[l.end],f=function(e){var t=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:dT(wT(n,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=DT(t,a),i=oP({displaced:o,id:t});return r?i?d<=n:h<n-c:i?d<=n+c:h<n})),inHomeList:xT(n,r)});return NT({draggable:n,insideDestination:i,destination:r,viewport:s,last:o,displacedBy:u,index:f})}({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:c,insideDestination:h,last:o.displaced,viewport:s,afterCritical:a})},aP=function(e,t){var n;return wM({},e,((n={})[t.descriptor.id]=t,n))},lP=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,o=e.impact,s=e.scrollJumpRequest,a=i||t.viewport,l=r||t.dimensions,u=n||t.current.client.selection,c=Jk(u,t.initial.client.selection),h={offset:c,selection:u,borderBoxCenter:Zk(t.initial.client.borderBoxCenter,c)},d={selection:Zk(h.selection,a.scroll.current),borderBoxCenter:Zk(h.borderBoxCenter,a.scroll.current),offset:Zk(h.offset,a.scroll.diff.value)},f={client:h,page:d};if("COLLECTING"===t.phase)return wM({phase:"COLLECTING"},t,{dimensions:l,viewport:a,current:f});var p=l.draggables[t.critical.draggable.id],g=o||sP({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:
3a,afterCritical:t.afterCritical}),m=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.impact,o=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,i=eP(t),o=eP(n);if(!i)return r;if(i===o)return r;var s=r[i];if(!s.subject.withPlaceholder)return r;var a=function(e){var t=e.subject.withPlaceholder;t||Gk(!1);var n=e.frame;if(!n)return wM({},e,{subject:lT({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||Gk(!1);var i=JT(n,r);return wM({},e,{subject:lT({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null}),frame:i})}(s);return aP(r,a)}({previousImpact:e.previousImpact,impact:i,droppables:r}),s=eP(i);if(!s)return o;var a=r[s];if(xT(t,a))return o;if(a.subject.withPlaceholder)return o;var l=QT(a,t,n);return aP(o,l)}({draggable:p,impact:g,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return wM({},t,{current:f,dimensions:{draggables:l.draggables,droppables:m},impact:g,viewport:a,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})},uP=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,o=e.forceShouldAnimate,s=t.displaced,a=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r);return wM({},t,{displaced:AT({afterDragging:a,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:s})})},cP=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,s=e.afterCritical,a=UT({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:s});return VT({pageBorderBoxCenter:a,draggable:n,viewport:o})},hP=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&Gk(!1);var i=t.impact,o=r||t.viewport,s=n||t.dimensions,a=s.draggables,l=s.droppables,u=a[t.critical.draggable.id],c=eP(i);c||Gk(!1);var h=l[c],d=uP({impact:i,viewport:o,destination:h,draggables:a}),f=cP({impact:d,draggable:u,droppable:h,draggables:a,viewport:o,afterCritical:t.afterCritical});return lP({impact:d,clientSelection:f,state:t,dimensions:s,viewport:o})},dP=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=ZT(n.axis,t.displaceBy),s=vT(n.descriptor.id,r),a=s.indexOf(t);-1===a&&Gk(!1);var l,u=s.slice(a+1),c=u.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),h={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:o,effected:c};return{impact:{displaced:AT({afterDragging:u,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:h}},fP=function(e){return"SNAP"===e.movementMode},pP=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:aP(e.droppables,t)}}(e.dimensions,t);return!fP(e)||n?lP({state:e,dimensions:r}):hP({state:e,dimensions:r})};function gP(e){return e.isDragging&&"SNAP"===e.movementMode?wM({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var mP={phase:"IDLE",completed:null,shouldFlush:!1},yP=function(e,t){if(void 0===e&&(e=mP),"FLUSH"===t.type)return wM({},mP,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&Gk(!1);var n=t.payload,r=n.critical,i=n.clientSelection,o=n.viewport,s=n.dimensions,a=n.movementMode,l=s.draggables[r.draggable.id],u=s.droppables[r.droppable.id],c={selection:i,borderBoxCenter:l.client.borderBox.center,offset:Xk},h={client:c,page:{selection:Zk(c.selection,o.scroll.initial),borderBoxCenter:Zk(c.selection,o.scroll.initial),offset:Zk(c.selection,o.scroll.diff.value)}},d=mT(s.droppables).every((function(e){return!e.isFixedOnPage})),f=dP({draggable:l,home:u,draggables:s.draggables,viewport:o}),p=f.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:s,initial:h,current:h,isWindowScrollAllowed:d,impact:p,afterCritical:f.afterCritical,onLiftImpact:p,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Gk(!1),wM({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Gk(!1),function(e){var t=e.state,n=e.published,r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return uT(n,e.scroll)})),i=wM({},t.dimensions.droppables,{},pT(r)),o=gT(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,o=function(e){var t=e.frame;return t||Gk(!1),t}(n[t]),s=o.scroll.diff.value,a=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=Pk(t.client,n),o=Ok(i,r);return wM({},t,{placeholder:wM({},t.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:Zk(i,s),initialWindowScroll:r.scroll.initial});return a}))}({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),s=wM({},t.dimensions.draggables,{},o);
3n.removals.forEach((function(e){delete s[e]}));var a={droppables:i,draggables:s},l=eP(t.impact),u=l?a.droppables[l]:null,c=a.draggables[t.critical.draggable.id],h=a.droppables[t.critical.droppable.id],d=dP({draggable:c,home:h,draggables:s,viewport:t.viewport}),f=d.impact,p=d.afterCritical,g=u&&u.isCombineEnabled?t.impact:f,m=sP({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:g,viewport:t.viewport,afterCritical:p}),y=wM({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:m,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:wM({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;nP(e)||Gk(!1);var g=t.payload.client;return Qk(g,e.current.client.selection)?e:lP({state:e,clientSelection:g,impact:fP(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return gP(e);if("COLLECTING"===e.phase)return gP(e);nP(e)||Gk(!1);var m=t.payload,y=m.id,v=m.newScroll,_=e.dimensions.droppables[y];if(!_)return e;var b=uT(_,v);return pP(e,b,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;nP(e)||Gk(!1);var w=t.payload,x=w.id,E=w.isEnabled,S=e.dimensions.droppables[x];S||Gk(!1),S.isEnabled===E&&Gk(!1);var C=wM({},S,{isEnabled:E});return pP(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;nP(e)||Gk(!1);
3var M=t.payload,k=M.id,T=M.isCombineEnabled,P=e.dimensions.droppables[k];P||Gk(!1),P.isCombineEnabled===T&&Gk(!1);var O=wM({},P,{isCombineEnabled:T});return pP(e,O,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;nP(e)||Gk(!1),e.isWindowScrollAllowed||Gk(!1);var I=t.payload.newScroll;if(Qk(e.viewport.scroll.current,I))return gP(e);var R=WT(e.viewport,I);return fP(e)?hP({state:e,viewport:R}):lP({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!nP(e))return e;var A=t.payload.maxScroll;if(Qk(A,e.viewport.scroll.max))return e;var L=wM({},e.viewport,{scroll:wM({},e.viewport.scroll,{max:A})});return wM({phase:"DRAGGING"},e,{viewport:L})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Gk(!1);var N=tP({state:e,type:t.type});return N?lP({state:e,impact:N.impact,clientSelection:N.clientSelection,scrollJumpRequest:N.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var D=t.payload.reason;return"COLLECTING"!==e.phase&&Gk(!1),wM({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:D})}if("DROP_ANIMATE"===t.type){var F=t.payload,j=F.completed,B=F.dropDuration,z=F.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Gk(!1),{phase:"DROP_ANIMATING",completed:j,dropDuration:B,newHomeClientOffset:z,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},vP=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},_P=function(){return{type:"COLLECTION_STARTING",payload:null}},bP=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},wP=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},xP=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},EP=function(e){return{type:"MOVE",payload:e}},SP=function(){return{type:"MOVE_UP",payload:null}},CP=function(){return{type:"MOVE_DOWN",payload:null}},MP=function(){return{type:"MOVE_RIGHT",payload:null}},kP=function(){return{type:"MOVE_LEFT",payload:null}},TP=function(e){return{type:"DROP_COMPLETE",payload:e}},PP=function(e){return{type:"DROP",payload:e}},OP="cubic-bezier(.2,1,.1,1)",IP=0,RP=.7,AP=.75,LP="0.2s cubic-bezier(0.2, 0, 0, 1)",NP={fluid:"opacity "+LP,snap:"transform "+LP+", opacity "+LP,drop:function(e){var t=e+"s "+OP;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+LP,placeholder:"height "+LP+", width "+LP+", margin "+LP},DP=function(e){return Qk(e,Xk)?null:"translate("+e.x+"px, "+e.y+"px)"},FP=DP,jP=.33,BP=.55-jP,zP=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var i=t(),o=r.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&Gk(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&Gk(!1);var s=i.critical,a=i.dimensions,l=a.draggables[i.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:wM({},r,{displaced:ST}),didDropInsideDroppable:!0}:{impact:uP({draggables:t,impact:s,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),c=u.impact,h=u.didDropInsideDroppable,d=h?_T(c):null,f=h?bT(c):null,p={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:l.descriptor.id,type:l.descriptor.type,source:p,reason:o,mode:i.movementMode,destination:d,combine:f},m=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,s=r.draggables,a=r.droppables,l=eP(t),u=l?a[l]:null,c=a[n.descriptor.droppableId],h=cP({impact:t,draggable:n,draggables:s,afterCritical:o,droppable:u||c,viewport:i});return Jk(h,n.client.borderBox.center)}({impact:c,draggable:l,dimensions:a,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:g,impact:c};if(!Qk(i.current.client.offset,m)||Boolean(g.combine)){var v=function(e){var t=e.reason,n=nT(e.current,e.destination);if(n<=0)return jP;if(n>=1500)return.55;var r=jP+BP*(n/1500);return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:i.current.client.offset,destination:m,reason:o});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:m,dropDuration:v,completed:y}})}else n(TP({completed:y}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(r)}}},GP=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var UP=function(e){var t=function(e){var t,n=e.onWindowScroll,r=Dk((function(){n(GP())})),i=(t=r,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||t()}}),o=jk;function s(){return o!==jk}return{start:function(){s()&&Gk(!1),o=Bk(window,[i])},stop:function(){s()||Gk(!1),r.cancel(),o(),o=jk},isActive:s}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},WP=function(e,t){t()},qP=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.
3id,index:e.draggable.index},mode:t}},VP=function(e,t,n,r){if(e){var i=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),i=function(i){t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=function(){return t},i}(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}else n(r(t))},YP=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=hT(n,(function(t){return t.timerId===e}));-1===t&&Gk(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),i=null,o=function(n){i||Gk(!1),i=null,WP(0,(function(){return VP(e().onDragEnd,n,t,Kk)}))};return{beforeCapture:function(t,n){i&&Gk(!1),WP(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){i&&Gk(!1),WP(0,(function(){var r=e().onBeforeDragStart;r&&r(qP(t,n))}))},start:function(n,o){i&&Gk(!1);var s=qP(n,o);i={mode:o,lastCritical:n,lastLocation:s.source,lastCombine:null},r.add((function(){WP(0,(function(){return VP(e().onDragStart,s,t,Hk)}))}))},update:function(n,o){var s=_T(o),a=bT(o);i||Gk(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,i.lastCritical);l&&(i.lastCritical=n);var u,c,h=(c=s,!(null==(u=i.lastLocation)&&null==c||null!=u&&null!=c&&u.droppableId===c.droppableId&&u.index===c.index));h&&(i.lastLocation=s);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(i.lastCombine,a);if(d&&(i.lastCombine=a),l||h||d){var f=wM({},qP(n,i.mode),{combine:a,destination:s});r.add((function(){WP(0,(function(){return VP(e().onDragUpdate,f,t,$k)}))}))}},flush:function(){i||Gk(!1),r.flush()},drop:o,abort:function(){if(i){var e=wM({},qP(i.lastCritical,i.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var i=r.payload.critical;return n.beforeStart(i,r.payload.movementMode),t(r),void n.start(i,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var o=r.payload.completed.result;return n.flush(),t(r),void n.drop(o)}if(t(r),"FLUSH"!==r.type){var s=e.getState();"DRAGGING"===s.phase&&n.update(s.critical,s.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},HP=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&Gk(!1),e.dispatch(TP({completed:r.completed}))}else t(n)}}},$P=function(e){var t=null,n=null;return function(r){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=Bk(window,[o])}))}}}},KP=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(PP({reason:r.reason})))}}}},XP=AM,ZP=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=Jk({x:n,y:t},{x:i,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},JP=function(){var e=document.documentElement;return e||Gk(!1),e},QP=function(){var e=JP();return ZP({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function eO(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var tO,nO,rO=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame((function(){i=null;var e=r,o=e.additions,s=e.removals,a=e.modified,l=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(Xk)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(a).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:l,removals:Object.keys(s),modified:u};r={additions:{},removals:{},modified:{}},n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){n||Gk(!1);var i=n.critical.draggable;"ADDITION"===t.type&&eO(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&eO(e,i,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,i){e.droppable.exists(r)||Gk(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})}
3,updateDroppableIsCombineEnabled:function(r,i){n&&(e.droppable.exists(r)||Gk(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,i){n&&(e.droppable.exists(r)||Gk(!1),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:function(t){n&&Gk(!1);var r=e.draggable.getById(t.draggableId),o=e.droppable.getById(r.descriptor.droppableId),s={draggable:r.descriptor,droppable:o.descriptor},a=e.subscribe(i);return n={critical:s,unsubscribe:a},function(e){var t,n,r,i,o,s,a,l=e.critical,u=e.scrollOptions,c=e.registry,h=(t=GP(),n=QP(),r=t.y,i=t.x,s=(o=JP()).clientWidth,a=o.clientHeight,{frame:Ek({top:r,left:i,right:i+s,bottom:r+a}),scroll:{initial:t,current:t,max:n,diff:{value:Xk,displacement:Xk}}}),d=h.scroll.current,f=l.droppable,p=c.droppable.getAllByType(f.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,u)})),g=c.draggable.getAllByType(l.draggable.type).map((function(e){return e.getDimension(d)}));return{dimensions:{draggables:gT(g),droppables:pT(p)},critical:l,viewport:h}}({critical:s,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},iO=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},oO=function(e){window.scrollBy(e.x,e.y)},sO=Nk((function(e){return mT(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),aO=function(e){return Math.pow(e,2)},lO=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;return 0===i?0:(r-t)/i},uO=360,cO=1200,hO=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=lO({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*aO(1-n);return Math.ceil(r)}(t,n);return 0===o?0:i?Math.max(function(e,t){var n=t,r=cO,i=Date.now()-n;if(i>=cO)return e;if(i<uO)return 1;var o=lO({startOfRange:uO,endOfRange:r,current:i}),s=e*aO(o);return Math.ceil(s)}(o,r),1):o},dO=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,s=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,i);return n[i.end]<n[i.start]?hO({distanceToEdge:n[i.end],thresholds:s,dragStartTime:r,shouldUseTimeDampening:o}):-1*hO({distanceToEdge:n[i.start],thresholds:s,dragStartTime:r,shouldUseTimeDampening:o})},fO=iT((function(e){return 0===e?0:e})),pO=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},a=dO({container:n,distanceToEdges:s,dragStartTime:t,axis:PT,shouldUseTimeDampening:o}),l=dO({container:n,distanceToEdges:s,dragStartTime:t,axis:OT,shouldUseTimeDampening:o}),u=fO({x:l,y:a});if(Qk(u,Xk))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,o=n.width>t.width;return o||i?o&&i?null:{x:o?0:r.x,y:i?0:r.y}:r}({container:n,subject:r,proposedScroll:u});return c?Qk(c,Xk)?null:c:null},gO=iT((function(e){return 0===e?0:e>0?1:-1})),mO=(tO=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,i=Zk(t,r),o={x:tO(i.x,n.x),y:tO(i.y,n.y)};return Qk(o,Xk)?null:o}),yO=function(e){var t=e.max,n=e.current,r=e.change,i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=gO(r),s=mO({max:i,current:n,change:o});return!s||0!==o.x&&0===s.x||0!==o.y&&0===s.y},vO=function(e,t){return yO({current:e.scroll.current,max:e.scroll.max,change:t})},_O=function(e,t){var n=e.frame;return!!n&&yO({current:n.scroll.current,max:n.scroll.max,change:t})},bO=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,s=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.shouldUseTimeDampening,o=pO({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return o&&vO(t,o)?o:null}({dragStartTime:n,viewport:t.viewport,subject:a,center:s,shouldUseTimeDampening:r});if(l)return void i(l)}var u=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=function(e,t){var n=dT(sO(t),(function(t){return t.frame||Gk(!1),rP(t.frame.pageMarginBox)(e)}));return n}(t,r);return o}({center:s,destination:eP(t.impact),droppables:t.dimensions.droppables});if(u){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=t.frame;if(!s)return null;var a=pO({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return a&&_O(t,a)?a:null}({dragStartTime:n,droppable:u,subject:a,center:s,shouldUseTimeDampening:r});c&&o(u.descriptor.id,c)}},wO=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var i=e.scrollJumpRequest;if(i){var o=eP(e.impact);o||Gk(!1);var s=function(e,t){if(!_O(e,t))return t;var r=function(e,t){var n=e.frame;return n&&_O(e,t)?mO({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var i=Jk(t,r);return n(e.descriptor.id,i),Jk(t,i)}(e.dimensions.droppables[o],i);if(s){var a=e.viewport,l=function(e,t,n){if(!e)return n;if(!vO(t,n))return n;var i=function(e,t){if(!vO(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return mO({current:r,max:n,change:t})}(t,n);if(!i)return r(n),null;var o=Jk(n,i);return r(o),Jk(n,o)}(e.isWindowScrollAllowed,a,s);l&&function(e,n){var r=Zk(e.current.client.selection,n);t({client:r})}(e,l)}}}},xO="data-rbd",EO={base:nO=xO+"-drag-handle",draggableId:nO+"-draggable-id",contextId:nO+"-context-id"},SO=function(){var e=xO+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),CO=function(){var e=xO+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),MO={contextId:xO+"-scroll-container-context-id"},kO=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},TO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect,PO=function(){var e=document.querySelector("head");return e||Gk(!1),e},OO=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var IO=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function RO(e){return e instanceof IO(e).HTMLElement}function AO(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=r(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||Gk(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return cT(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=i(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||Gk(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return cT(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var LO=t.createContext(null),NO=function(){var e=document.body;return e||Gk(!1),e},DO={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},FO=0,jO={separator:"::"};function BO(e,t){return void 0===t&&(t=jO),wk((function(){return""+e+t.separator+FO++}),[t.separator,e])}var zO=t.createContext(null);function GO(e){var n=(0,t.useRef)(e);return(0,t.useEffect)((function(){n.current=e})),n}var UO,WO,qO=((UO={})[13]=!0,UO[9]=!0,UO),VO=function(e){qO[e.keyCode]&&e.preventDefault()},YO=function(){var e="visibilitychange";return"undefined"==typeof document?e:dT([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),HO={type:"IDLE"};function $O(){}var KO=((WO={})[34]=!0,WO[33]=!0,WO[36]=!0,WO[35]=!0,WO);var XO={type:"IDLE"},ZO={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function JO(e,t){if(null==t)return!1;if(Boolean(ZO[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&JO(e,t.parentElement)}function QO(e,t){var n=t.target;return!!RO(n)&&JO(e,n)}var eI=function(e){return Ek(e.getBoundingClientRect()).center},tI=function(){var e="matches";
3return"undefined"==typeof document?e:dT([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function nI(e,t){return null==e?null:e[tI](t)?e:nI(e.parentElement,t)}function rI(e,t){return e.closest?e.closest(t):nI(e,t)}function iI(e){e.preventDefault()}function oI(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function sI(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!!o&&!!o.options.isEnabled&&!!iO(n.getState(),i)}var aI=[function(e){var n=(0,t.useRef)(HO),r=(0,t.useRef)(jk),i=wk((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,a,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};r.current(),c(i,o)}}}}}}),[e]),o=wk((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),s=xk((function(){r.current=Bk(window,[o,i],{passive:!1,capture:!0})}),[o,i]),a=xk((function(){"IDLE"!==n.current.type&&(n.current=HO,r.current(),s())}),[s]),l=xk((function(){var e=n.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),u=xk((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t,n,o=e.button,s=e.clientX,a=e.clientY;if(0===o){var l={x:s,y:a},u=r();if("DRAGGING"===u.type)return e.preventDefault(),void u.actions.move(l);if("PENDING"!==u.type&&Gk(!1),t=u.point,n=l,Math.abs(n.x-t.x)>=5||Math.abs(n.y-t.y)>=5){e.preventDefault();var c=u.actions.fluidLift(l);i({type:"DRAGGING",actions:c})}}}},{eventName:"mouseup",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void VO(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&Gk(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:YO,fn:t}]}({cancel:l,completed:a,getPhase:function(){return n.current},setPhase:function(e){n.current=e}});r.current=Bk(window,e,{capture:!0,passive:!1})}),[l,a]),c=xk((function(e,t){"IDLE"!==n.current.type&&Gk(!1),n.current={type:"PENDING",point:t,actions:e},u()}),[u]);TO((function(){return s(),function(){r.current()}}),[s])},function(e){var n=(0,t.useRef)($O),r=wk((function(){return{eventName:"keydown",fn:function(t){if(!t.defaultPrevented&&32===t.keyCode){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){t.preventDefault();var s=!0,a=o.snapLift();n.current(),n.current=Bk(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(KO[r.keyCode]?r.preventDefault():VO(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:YO,fn:n}]}(a,l),{capture:!0,passive:!1})}}}function l(){s||Gk(!1),s=!1,n.current(),i()}}}}),[e]),i=xk((function(){n.current=Bk(window,[r],{passive:!1,capture:!0})}),[r]);TO((function(){return i(),function(){n.current()}}),[i])},function(e){var n=(0,t.useRef)(XO),r=(0,t.useRef)(jk),i=xk((function(){return n.current}),[]),o=xk((function(e){n.current=e}),[]),s=wk((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,l,{sourceEvent:t});if(i){var o=t.touches[0],s={x:o.clientX,y:o.clientY};r.current(),d(i,s)}}}}}}),[e]),a=xk((function(){r.current=Bk(window,[s],{capture:!0,passive:!1})}),[s]),l=xk((function(){var e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(XO),r.current(),a())}),[a,o]),u=xk((function(){var e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=xk((function(){var e={capture:!0,passive:!1},t={cancel:u,completed:l,getPhase:i},n=Bk(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),n.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&Gk(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:YO,fn:t}]}(t),e),o=Bk(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.ke
3yCode&&e.preventDefault(),t()):t()}},{eventName:YO,fn:t}]}(t),e);r.current=function(){n(),o()}}),[u,i,l]),h=xk((function(){var e=i();"PENDING"!==e.type&&Gk(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),d=xk((function(e,t){"IDLE"!==i().type&&Gk(!1);var n=setTimeout(h,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,i,o,h]);TO((function(){return a(),function(){r.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(XO))}}),[i,a,o]),TO((function(){return Bk(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function lI(e){var n=e.contextId,r=e.store,i=e.registry,o=e.customSensors,s=e.enableDefaultSensors,a=[].concat(s?aI:[],o||[]),l=(0,t.useState)((function(){return function(){var e=null;function t(){e||Gk(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Gk(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],u=xk((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);TO((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();u(e,t),e=t}))}),[l,r,u]),TO((function(){return l.tryAbandon}),[l.tryAbandon]);for(var c=xk((function(e){return sI({lockAPI:l,registry:i,store:r,draggableId:e})}),[l,i,r]),h=xk((function(e,t,o){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,s=e.forceSensorStop,a=e.sourceEvent;if(!sI({lockAPI:t,store:r,registry:i,draggableId:o}))return null;var l=i.draggable.getById(o),u=function(e,t){var n="["+SO.contextId+'="'+e+'"]',r=dT(fT(document.querySelectorAll(n)),(function(e){return e.getAttribute(SO.id)===t}));return r&&RO(r)?r:null}(n,l.descriptor.id);if(!u)return null;if(a&&!l.options.canDragInteractiveElements&&QO(u,a))return null;var c=t.claim(s||jk),h="PRE_DRAG";function d(){return l.options.shouldRespectForcePress}function f(){return t.isActive(c)}var p=function(e,t){oI({expected:e,phase:h,isLockActive:f,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),h="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=Bk(window,[{eventName:"click",fn:iI,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}n(),r.dispatch(PP({reason:t}))}return"PRE_DRAG"!==h&&(n(),"PRE_DRAG"!==h&&Gk(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),h="DRAGGING",wM({isActive:function(){return oI({expected:"DRAGGING",phase:h,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}var m={isActive:function(){return oI({expected:"PRE_DRAG",phase:h,isLockActive:f,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=Dk((function(e){p((function(){return EP({client:e})}))}));return wM({},g({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return p(SP)},moveRight:function(){return p(MP)},moveDown:function(){return p(CP)},moveLeft:function(){return p(kP)}};return g({liftActionArgs:{id:o,clientSelection:eI(u),movementMode:"SNAP"},cleanup:jk,actions:e})},abort:function(){oI({expected:"PRE_DRAG",phase:h,isLockActive:f,shouldWarn:!0})&&t.release()}};return m}({lockAPI:l,registry:i,contextId:n,store:r,draggableId:e,forceSensorStop:t,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[n,l,i,r]),d=xk((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof IO(n).Element))return null;var i=function(e){return"["+EO.contextId+'="'+e+'"]'}(e),o=rI(r,i);return o&&RO(o)?o:null}(e,t);return n?n.getAttribute(EO.draggableId):null}(n,e)}),[n]),f=xk((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),p=xk((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch({type:"FLUSH",payload:null}))}),[l,r]),g=xk(l.isClaimed,[l]),m=wk((function(){return{canGetLock:c,tryGetLock:h,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:g}}),[c,h,d,f,p,g]),y=0;y<a.length;y++)a[y](m)}function uI(e){return e.current||Gk(!1),e.current}function cI(e){var n=e.contextId,r=e.setCallbacks,i=e.sensors,o=e.nonce,s=e.dragHandleUsageInstructions,a=(0,t.useRef)(null),l=GO(e),u=xk((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(l.current)}),[l]),c=function(e){var n=wk((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),r=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),wM(e.style,DO),NO().appendChild(e),function(){setTimeout((function(){var t=NO();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),xk((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(n),h=function(e){var n=e.contextId,r=e.text,i=BO("hidden-text",{separator:"-"}),o=wk((function(){return"rbd-hidden-text-"+(e={contextId:n,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,n]);return(0,t.useEffect)((function(){var e=document.createElement("div");
3return e.id=o,e.textContent=r,e.style.display="none",NO().appendChild(e),function(){var t=NO();t.contains(e)&&t.removeChild(e)}}),[o,r]),o}({contextId:n,text:s}),d=function(e,n){var r=wk((function(){return function(e){var t,n,r=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:r(EO.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),o=function(){var e="\n transition: "+NP.outOfTheWay+";\n ";return{selector:r(SO.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),s=[o,i,{selector:r(CO.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:kO(s,"always"),resting:kO(s,"resting"),dragging:kO(s,"dragging"),dropAnimating:kO(s,"dropAnimating"),userCancel:kO(s,"userCancel")}}(e)}),[e]),i=(0,t.useRef)(null),o=(0,t.useRef)(null),s=xk(Nk((function(e){var t=o.current;t||Gk(!1),t.textContent=e})),[]),a=xk((function(e){var t=i.current;t||Gk(!1),t.textContent=e}),[]);TO((function(){(i.current||o.current)&&Gk(!1);var t=OO(n),l=OO(n);return i.current=t,o.current=l,t.setAttribute(xO+"-always",e),l.setAttribute(xO+"-dynamic",e),PO().appendChild(t),PO().appendChild(l),a(r.always),s(r.resting),function(){var e=function(e){var t=e.current;t||Gk(!1),PO().removeChild(t),e.current=null};e(i),e(o)}}),[n,a,s,r.always,r.resting,e]);var l=xk((function(){return s(r.dragging)}),[s,r.dragging]),u=xk((function(e){s("DROP"!==e?r.userCancel:r.dropAnimating)}),[s,r.dropAnimating,r.userCancel]),c=xk((function(){o.current&&s(r.resting)}),[s,r.resting]);return wk((function(){return{dragging:l,dropping:u,resting:c}}),[l,u,c])}(n,o),f=xk((function(e){uI(a).dispatch(e)}),[]),p=wk((function(){return RM({publishWhileDragging:vP,updateDroppableScroll:bP,updateDroppableIsEnabled:wP,updateDroppableIsCombineEnabled:xP,collectionStarting:_P},f)}),[f]),g=function(){var e=wk(AO,[]);return(0,t.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),m=wk((function(){return rO(g,p)}),[g,p]),y=wk((function(){return function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=function(e){var t=e.scrollDroppable,n=Dk(e.scrollWindow),r=Dk(t),i=null,o=function(e){i||Gk(!1);var t=i,o=t.shouldUseTimeDampening,s=t.dragStartTime;bO({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:s,shouldUseTimeDampening:o})};return{start:function(e){i&&Gk(!1);var t=Date.now(),n=!1,r=function(){n=!0};bO({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},n&&o(e)},stop:function(){i&&(n.cancel(),r.cancel(),i=null)},scroll:o}}({scrollWindow:n,scrollDroppable:t}),o=wO({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}}(wM({scrollWindow:oO,scrollDroppable:m.scrollDroppable},RM({move:EP},f)))}),[m.scrollDroppable,f]),v=function(e){var n=(0,t.useRef)({}),r=(0,t.useRef)(null),i=(0,t.useRef)(null),o=(0,t.useRef)(!1),s=xk((function(e,t){var r={id:e,focus:t};return n.current[e]=r,function(){var t=n.current;t[e]!==r&&delete t[e]}}),[]),a=xk((function(t){var n=function(e,t){var n="["+EO.contextId+'="'+e+'"]',r=fT(document.querySelectorAll(n));if(!r.length)return null;var i=dT(r,(function(e){return e.getAttribute(EO.draggableId)===t}));return i&&RO(i)?i:null}(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=xk((function(e,t){r.current===e&&(r.current=t)}),[]),u=xk((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=r.current;e&&a(e)})))}),[a]),c=xk((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(EO.draggableId)===e&&(r.current=e)}),[]);return TO((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),wk((function(){return{register:s,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:l}}),[s,c,u,l])}(n),_=wk((function(){return function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,s=e.announce,a=e.autoScroller;return OM(yP,XP(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(MM(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=AM.apply(void 0,o)(n.dispatch),CM(CM({},n),{},{dispatch:r})}}}((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,s=o.id,a=o.clientSelection,l=o.movementMode,u=n();"DROP_ANIMATING"===u.phase&&r(TP({completed:u.completed})),"IDLE"!==n().phase&&Gk(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:s,movementMode:l}});var c={draggableId:s,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},h=e.startPublishing(c),d=h.critical,f=h.dimensions,p=h.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:d,dimensions:f,clientSelection:a,movementMode:l,viewport:p}})}else t(i)}}}}(n),zP,HP,$P,KP,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var i=t.getState();return"DRAGGING"!==i.phase&&Gk(!1),void e.start(i)}n(r),e.scroll(t.getState())}}}}(a),UP,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),YP(o,s))))}({announce:c,autoScroller:y,dimensionMarshal:m,focusMarshal:v,getResponders:u,styleMarshal:d})}),[c,y,m,v,u,d]);a.current=_;var b=xk((function(){var e=uI(a);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),w=xk((function(){var e=uI(a).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r(wk((function(){return{isDragging:w,tryAbort:b}}),[w,b]));var x=xk((function(e){return iO(uI(a).getState(),e)}),[]),E=xk((function(){return nP(uI(a).getState())}),[]),S=wk((function(){return{marshal:m,focus:v,contextId:n,canLift:x,isMovementAllowed:E,dragHandleUsageInstructionsId:h,registry:g}}),[n,m,h,v,x,E,g]);return lI({contextId:n,store:_,registry:g,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,t.useEffect)((function(){return b}),[b]),t.createElement(zO.Provider,{value:S},t.createElement(BM,{context:LO,store:_},e.children))}var hI=0;function dI(e){var n=wk((function(){return""+hI++}),[]),r=e.dragHandleUsageInstructions||"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";return t.createElement(Uk,null,(function(i){return t.createElement(cI,{nonce:e.nonce,contextId:n,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var fI=function(e){return function(t){return e===t}},pI=fI("scroll"),gI=fI("auto"),mI=(fI("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),yI=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return mI(n,pI)||mI(n,gI)}(t)?t:e(t.parentElement)},vI=function(e){return{x:e.scrollLeft,y:e.scrollTop}},_I=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},bI={passive:!1},wI={passive:!0},xI=function(e){return e.shouldPublishImmediately?bI:wI};function EI(e){var n=(0,t.useContext)(e);return n||Gk(!1),n}var SI=function(e){return e&&e.env.closestScrollable||null};function CI(){}var MI={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},kI=t.memo((function(e){var n=(0,t.useRef)(null),r=xk((function(){n.current&&(clearTimeout(n.current),n.current=null)}),[]),i=e.animate,o=e.onTransitionEnd,s=e.onClose,a=e.contextId,l=(0,t.useState)("open"===e.animate),u=l[0],c=l[1];(0,t.useEffect)((function(){return u?"open"!==i?(r(),c(!1),CI):n.current?CI:(n.current=setTimeout((function(){n.current=null,c(!1)})),r):CI}),[i,u,r]);var h=xk((function(e){"height"===e.propertyName&&(o(),"close"===i&&s())}
3),[i,s,o]),d=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,i=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?MI:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?NP.placeholder:null}}({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return t.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":a,onTransitionEnd:h,ref:e.innerRef})})),TI=t.createContext(null),PI=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return bM(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(t.PureComponent),OI=function(e,t){return t?NP.drop(t.duration):e?NP.snap:NP.fluid},II=function(e,t){return e?t?IP:RP:null};function RI(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,o=Boolean(r),s=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),a=Boolean(i),l=a?function(e,t){var n=DP(e);return n?t?n+" scale("+AP+")":n:null}(n,o):FP(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:OI(s,i),transform:l,opacity:II(o,a),zIndex:a?4500:5e3,pointerEvents:"none"}}(e):{transform:FP((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function AI(e){e.preventDefault()}var LI=function(e,t){return e===t},NI=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function DI(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var FI={mapped:{type:"SECONDARY",offset:Xk,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:DI(null)}},jI=yk((function(){var e,t,n,r=(e=Nk((function(e,t){return{x:e,y:t}})),t=Nk((function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Nk((function(e,n,r,i,o,s,a){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:s,mode:n,offset:e,dimension:r,forceShouldAnimate:a,snapshot:t(n,i,o,s,null)}}})),function(r,i){if(r.isDragging){if(r.critical.draggable.id!==i.draggableId)return null;var o=r.current.client.offset,s=r.dimensions.draggables[i.draggableId],a=eP(r.impact),l=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,u=r.forceShouldAnimate;return n(e(o.x,o.y),r.movementMode,s,i.isClone,a,l,u)}var c;if("DROP_ANIMATING"===r.phase){var h=r.completed;if(h.result.draggableId!==i.draggableId)return null;var d=i.isClone,f=r.dimensions.draggables[i.draggableId],p=h.result,g=p.mode,m=NI(p),y=function(e){return e.combine?e.combine.draggableId:null}(p),v={duration:r.dropDuration,curve:OP,moveTo:r.newHomeClientOffset,opacity:y?IP:null,scale:y?AP:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:f,dropping:v,draggingOver:m,combineWith:y,mode:g,forceShouldAnimate:null,snapshot:t(g,d,m,y,v)}}}return null}),i=function(){var e=Nk((function(e,t){return{x:e,y:t}})),t=Nk(DI),n=Nk((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Xk,e,!0):null},i=function(t,i,o,s){var a=o.displaced.visible[t],l=Boolean(s.inVirtualList&&s.effected[t]),u=bT(o),c=u&&u.draggableId===t?i:null;if(!a){if(!l)return r(c);if(o.displaced.invisible[t])return null;var h=eT(s.displacedBy.point),d=e(h.x,h.y);return n(d,c,!0)}if(l)return r(c);var f=o.displacedBy.point,p=e(f.x,f.y);return n(p,c,a.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||i(e,t)||FI}}),{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:LO,pure:!0,areStatePropsEqual:LI})((function(e){var n=(0,t.useRef)(null),r=xk((function(e){n.current=e}),[]),i=xk((function(){return n.current}),[]),o=EI(zO),s=o.contextId,a=o.dragHandleUsageInstructionsId,l=o.registry,u=EI(TI),c=u.type,h=u.droppableId,d=wk((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:h}}),[e.draggableId,e.index,c,h]),f=e.children,p=e.draggableId,g=e.isEnabled,m=e.shouldRespectForcePress,y=e.canDragInteractiveElements,v=e.isClone,_=e.mapped,b=e.dropAnimationFinished;v||function(e){var n=BO("draggable"),r=e.descriptor,i=e.registry,o=e.getDraggableRef,s=e.canDragInteractiveElements,a=e.shouldRespectForcePress,l=e.isEnabled,u=wk((function(){return{canDragInteractiveElements:s,shouldRespectForcePress:a,isEnabled:l}}),[s,l,a]),c=xk((function(e){var t=o();return t||Gk(!1),function(e,t,n){void 0===n&&(n=Xk);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=Ik(i,r),s=Ok(o,n);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:s}}(r,t,e)}),[r,o]),h=wk((function(){return{uniqueId:n,descriptor:r,options:u,getDimension:c}}),[r,c,u,n]),d=(0,t.useRef)(h),f=(0,t.useRef)(!0);TO((function(){return i.draggable.register(d.current),function(){return i.draggable.unregister(d.current)}}),[i.draggable]),TO((function(){if(f.current)f.current=!1;else{var e=d.current;d.current=h,i.draggable.update(h,e)}}),[h,i.draggable])}(wk((function(){return{descriptor:d,registry:l,getDraggableRef:i,canDragInteractiveElements:y,shouldRespectForcePress:m,isEnabled:g}}),[d,l,i,y,m,g]));var w=wk((function(){return g?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":p,"data-rbd-drag-handle-context-id":s,draggable:!1,onDragStart:AI}:null}),[s,a,p,g]),x=xk((function(e){"DRAGGING"===_.type&&_.dropping&&"transform"===e.propertyName&&b()}),[b,_]),E=wk((function(){var e=RI(_),t="DRAGGING"===_.type&&_.dropping?x:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":s,"data-rbd-draggable-id":p,style:e,onTransitionEnd:t},dragHandleProps:w}}),[s,w,p,_,x,r]),S=wk((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return f(E,_.snapshot,S)}));function BI(e){return EI(TI).isUsingCloneFor!==e.draggableId||e.isClone?t.createElement(jI,e):null}function zI(e){var n="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return t.createElement(BI,wM({},e,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:i}))}var GI=function(e,t){return e===t.droppable.type},UI=function(e,t){return t.draggables[e.draggable.id]},WI={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombine
3Enabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Gk(!1),document.body}},qI=yk((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=wM({},e,{shouldAnimatePlaceholder:!1}),n=Nk((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=Nk((function(r,i,o,s,a,l){var u=a.descriptor.id;if(a.descriptor.droppableId===r){var c=l?{render:l,dragging:n(a.descriptor)}:null,h={isDraggingOver:o,draggingOverWith:o?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:a.placeholder,shouldAnimatePlaceholder:!1,snapshot:h,useClone:c}}if(!i)return t;if(!s)return e;var d={isDraggingOver:o,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:a.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,i){var o=i.droppableId,s=i.type,a=!i.isDropDisabled,l=i.renderClone;if(n.isDragging){var u=n.critical;if(!GI(s,u))return t;var c=UI(u,n.dimensions),h=eP(n.impact)===o;return r(o,a,h,h,c,l)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!GI(s,d.critical))return t;var f=UI(d.critical,n.dimensions);return r(o,a,NI(d.result)===o,eP(d.impact)===o,f,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var p=n.completed;if(!GI(s,p.critical))return t;var g=eP(p.impact)===o,m=Boolean(p.impact.at&&"COMBINE"===p.impact.at.type),y=p.critical.droppable.id===o;return g?m?e:t:y?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:LO,pure:!0,areStatePropsEqual:LI})((function(e){var n=(0,t.useContext)(zO);n||Gk(!1);var r=n.contextId,i=n.isMovementAllowed,o=(0,t.useRef)(null),s=(0,t.useRef)(null),a=e.children,l=e.droppableId,u=e.type,c=e.mode,h=e.direction,d=e.ignoreContainerClipping,f=e.isDropDisabled,p=e.isCombineEnabled,g=e.snapshot,m=e.useClone,y=e.updateViewportMaxScroll,v=e.getContainerForClone,_=xk((function(){return o.current}),[]),b=xk((function(e){o.current=e}),[]),w=(xk((function(){return s.current}),[]),xk((function(e){s.current=e}),[])),x=xk((function(){i()&&y({maxScroll:QP()})}),[i,y]);!function(e){var n=(0,t.useRef)(null),r=EI(zO),i=BO("droppable"),o=r.registry,s=r.marshal,a=GO(e),l=wk((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),u=(0,t.useRef)(l),c=wk((function(){return Nk((function(e,t){n.current||Gk(!1);var r={x:e,y:t};s.updateDroppableScroll(l.id,r)}))}),[l.id,s]),h=xk((function(){var e=n.current;return e&&e.env.closestScrollable?vI(e.env.closestScrollable):Xk}),[]),d=xk((function(){var e=h();c(e.x,e.y)}),[h,c]),f=wk((function(){return Dk(d)}),[d]),p=xk((function(){var e=n.current,t=SI(e);e&&t||Gk(!1),e.scrollOptions.shouldPublishImmediately?d():f()}),[f,d]),g=xk((function(e,t){n.current&&Gk(!1);var i=a.current,o=i.getDroppableRef();o||Gk(!1);var s,u={closestScrollable:yI(s=o),isFixedOnPage:_I(s)},c={ref:o,descriptor:l,env:u,scrollOptions:t};n.current=c;var h=function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,o=e.direction,s=e.isDropDisabled,a=e.isCombineEnabled,l=e.shouldClipSubject,u=r.closestScrollable,c=function(e,t){var n=Rk(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=r+t.scrollHeight,s=i+t.scrollWidth,a=Sk({top:r,right:s,bottom:o,left:i},n.border);return kk({borderBox:a,margin:n.margin,border:n.border,padding:n.padding})}(t,u),h=Ok(c,i),d=function(){if(!u)return null;var e=Rk(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:Ok(e,i),scroll:vI(u),scrollSize:t,shouldClipSubject:l}}(),f=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,s=e.client,a=e.page,l=e.closest,u=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=ZP({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Xk,displacement:Xk}}}}(),c="vertical"===o?PT:OT;
3return{descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:c,isEnabled:n,client:s,page:a,frame:u,subject:lT({page:a,withPlaceholder:null,axis:c,frame:u})}}({descriptor:n,isEnabled:!s,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:o,client:c,page:h,closest:d});return f}({ref:o,descriptor:l,env:u,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=u.closestScrollable;return d&&(d.setAttribute(MO.contextId,r.contextId),d.addEventListener("scroll",p,xI(c.scrollOptions))),h}),[r.contextId,l,p,a]),m=xk((function(){var e=n.current,t=SI(e);return e&&t||Gk(!1),vI(t)}),[]),y=xk((function(){var e=n.current;e||Gk(!1);var t=SI(e);n.current=null,t&&(f.cancel(),t.removeAttribute(MO.contextId),t.removeEventListener("scroll",p,xI(e.scrollOptions)))}),[p,f]),v=xk((function(e){var t=n.current;t||Gk(!1);var r=SI(t);r||Gk(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),_=wk((function(){return{getDimensionAndWatchScroll:g,getScrollWhileDragging:m,dragStopped:y,scroll:v}}),[y,g,m,v]),b=wk((function(){return{uniqueId:i,descriptor:l,callbacks:_}}),[_,l,i]);TO((function(){return u.current=b.descriptor,o.droppable.register(b),function(){n.current&&y(),o.droppable.unregister(b)}}),[_,l,y,b,s,o.droppable]),TO((function(){n.current&&s.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)}),[e.isDropDisabled,s]),TO((function(){n.current&&s.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,s])}({droppableId:l,type:u,mode:c,direction:h,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:_});var E=t.createElement(PI,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var n=e.onClose,i=e.data,o=e.animate;return t.createElement(kI,{placeholder:i,onClose:n,innerRef:w,animate:o,contextId:r,onTransitionEnd:x})})),S=wk((function(){return{innerRef:b,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}}),[r,l,E,b]),C=m?m.dragging.draggableId:null,M=wk((function(){return{droppableId:l,type:u,isUsingCloneFor:C}}),[l,C,u]);return t.createElement(TI.Provider,{value:M},a(S,g),function(){if(!m)return null;var e=m.dragging,n=m.render,r=t.createElement(BI,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(t,r){return n(t,r,e)}));return _k.createPortal(r,v())}())}));function VI({removalIndicator:e,children:n,type:r}){const[i,o]=(0,t.useState)(!0);return(0,t.useEffect)((()=>{e&&setTimeout((()=>{o(!1)}),1e4)}),[i]),t.createElement(t.Fragment,null,i&&t.createElement("div",{className:`alert alert--${r}`,role:"alert"},e?t.createElement("div",{className:"alert__removal_indicator"}):null,n))}let YI;qI.defaultProps=WI;const HI=Z((function(e){return{basket:e.basket,mode:e.kpm.mode}}),(function(e){return{centerItemInBasket:t=>e(xu(t))}}))((function(e){const[n,r]=(0,t.useState)({expanded:!1,formErrors:{},itemChanges:x(),modalOpen:!1,modalType:null,readOnly:!0,item:{id:"",highlightedTitle:"",type:"provincie",weergavenaam:""}}),i=CS(n),o=t.createRef(),s=t.createRef();function a(t=n.expanded){const r=[];return u(t).map((t=>{let n=e.item[t]?e.item[t]:null;n="centroide_rd"===t?function(){const{coordX:e,coordY:t}=x();return`X:Â ${Number.parseFloat(e).toFixed(3)} Y:Â ${Number.parseFloat(t).toFixed(3)}`}():n,n&&r.push({attr:t,val:n})})),r}function l(e){return["postcode","adres","hectometerpaal","punt"].indexOf(e.type)>-1}function u(t){let n;return e.compact?(n=[],t&&(n=["bron","type"],l(e.item)&&(n=[...n,"centroide_rd"]))):(n=["bron","type"],t&&["provincie","gemeente","woonplaats","weg","postcode","adres","perceel","hectometerpaal","wijk","buurt","waterschap"].indexOf(e.item.type)>-1&&(n=[...n,"identificatie","subtype","openbareruimte_id","openbareruimtetype","straatnaam","straatnaam_verkort","adresseerbaarobject_id","nummeraanduiding_id","huisnummer","huisletter","huisnummertoevoeging","huis_nlt","postcode","woonplaatscode","woonplaatsnaam","gemeentecode","gemeentenaam","provinciecode","provincienaam","provincieafkorting","kadastraal_object_id","kadastrale_gemeentecode","kadastrale_gemeentenaam","actuele_gemeentenaam","kadastrale_sectie","perceelnummer","kadastrale_grootte","gekoppeld_perceel","volgnummer","gekoppeld_appartement","kadastrale_aanduiding","wegnummer","hectometernummer","zijde","hectometerletter","waterschapsnaam","waterschapscode"]),l(e.item)&&(n=[...n,"centroide_rd"])),n}
3function c(e){return(["punt","vlak"].includes(e)?"Dit ":"Deze ")+e}function h(){return null===e.mode&&!0===e.item.active}function d(e){const t=e.target,i=Object.assign({},n.formErrors),o=f(t);delete i[t.name];const s=Object.assign(Object.assign({},n),{formErrors:Object.assign(Object.assign({},i),o),itemChanges:Object.assign(Object.assign({},n.itemChanges),{[t.name]:t.value})});r(s)}function f(e){const t={};return"button"===e.nodeName.toLowerCase()||e.validity.valid||(e.validity.valueMissing?t[e.name]="Vul aub een waarde in.":e.validity.rangeUnderflow?t[e.name]="De waarde ligt te laag. De coördinaten moeten vallen binnen het geldigheidsgebied van het stelsel van de Rijksdriehoeksmeting.":e.validity.rangeOverflow?t[e.name]="De waarde ligt te hoog. De coördinaten moeten vallen binnen het geldigheidsgebied van het stelsel van de Rijksdriehoeksmeting.":t[e.name]=e.validationMessage),t}function p(t){if(t.preventDefault(),function(){const e=s.current;let t={};if(!e)return!1;if(e&&!1===e.checkValidity()){for(let n=0;n<e.length;n++){const r=e[n];t=Object.assign(Object.assign({},t),f(r))}return r((e=>Object.assign(Object.assign({},e),{formErrors:t}))),!1}return r((e=>Object.assign(Object.assign({},e),{formErrors:t}))),!0}()&&(b(),e.onUpdateHandler)){let t=Object.assign(Object.assign({},e.item),n.itemChanges);if(l(e.item)){const e=[parseFloat(n.itemChanges.coordX),parseFloat(n.itemChanges.coordY)],r=YI.writeGeometry(new ai(e));t=Object.assign(Object.assign({},t),{geometrie_rd:r})}e.onUpdateHandler(t),e.centerItemInBasket(t)}}(0,t.useEffect)((()=>{o.current&&h()&&o.current.scrollIntoView(!1),i&&function(t){e.item.id!==t.item.id&&r((e=>Object.assign(Object.assign({},e),{expanded:!1}))),(e.item.weergavenaam!==t.item.weergavenaam||e.item.geometrie_rd&&e.item.geometrie_rd!==t.item.geometrie_rd)&&r((e=>Object.assign(Object.assign({},e),{itemChanges:x()})))}(i),u(n.expanded)}),[]);const g=t=>{t.stopPropagation(),!h()&&e.onSelectHandler&&e.onSelectHandler(),h()&&e.onDeselectHandler&&e.onDeselectHandler()},m=()=>{b(),e.onDeleteHandler&&e.onDeleteHandler()};function y(e){e.stopPropagation(),r((e=>Object.assign(Object.assign({},e),{expanded:!0})))}function v(e){e.stopPropagation(),r((e=>Object.assign(Object.assign({},e),{expanded:!1})))}const _=e=>t=>{t.stopPropagation(),r((t=>Object.assign(Object.assign({},t),{modalOpen:!0,modalType:e})))},b=()=>{r((e=>Object.assign(Object.assign({},e),{itemChanges:x(),modalOpen:!1,modalType:null})))};function w(){return e.basket.default.findIndex((t=>t.id!==e.item.id&&void 0!==e.item.locatieserver_id&&t.locatieserver_id===e.item.locatieserver_id))>-1}function x(){let t;if(e.item.geometrie_rd&&l(e.item)){YI=new Wi;const n=YI.readGeometry(e.item.geometrie_rd).getCoordinates();t={coordX:`${n[0]}`,coordY:`${n[1]}`,weergavenaam:e.item.weergavenaam}}else t={coordX:"",coordY:"",weergavenaam:e.item.weergavenaam};return t}const E=ee()(e.selectable?"basket__item content-item collapsed":"basket__item result-item collapsed",{"basket__item--selectable":e.selectable,"basket__item--selected active":h(),"basket__item--readonly":e.readOnly}),S=a();return t.createElement("div",{ref:o,"data-id":e.item.id,className:E,onClick:g,onMouseEnter:e.onMouseEnterHandler,onMouseLeave:e.onMouseLeaveHandler,"data-kpm-selector":"basket-item"},e.onDiscardHandler?t.createElement("button",{type:"button",className:"basket__close_item",onClick:e.onDiscardHandler},"Sluiten"):null,t.createElement("h3",null,e.item.weergavenaam),"intersect"===e.item.invalid?t.createElement(VI,{type:"failed"},c(e.item.type)," is ongeldig. Lijnen van een vlak mogen elkaar niet kruisen."):"coord"===e.item.invalid?t.createElement(VI,{type:"failed"},c(e.item.type)," is ongeldig. De coördinaten moeten vallen binnen het geldigheidsgebied van het stelsel van de Rijksdriehoeksmeting."):w()?t.createElement(VI,{type:"failed"},"Deze locatie is reeds opgenomen in uw lijst."):null,S.length?t.createElement("table",{className:"table table--small"},t.createElement("tbody",null,S.map((e=>{const n=e.attr.replaceAll("_"," ");return t.createElement(t.Fragment,{key:e.attr},Array.isArray(e.val)&&e.val.map(((r,i)=>t.createElement("tr",{key:i},t.createElement("th",{title:e.attr},0===i?n:""),t.createElement("td",{title:r},r)))),!Array.isArray(e.val)&&t.createElement("tr",null,t.createElement("th",{title:e.attr},n),t.createElement("td",{title:e.val},e.val)))})))):null,function(){const r=[],i=["punt","lijn","vlak","cirkel"].indexOf(e.item.type)>-1;return n.expanded?r.push(t.createElement(Su,{modifier:"small",key:"collapse",onClick:v,children:"Minder details",spanLabel:" over "+e.item.weergavenaam,dataKpmSelector:"button-collapse"})):a(!0).length>a(!1).length&&r.push(t.createElement(Su,{modifier:"small",key:"expand",onClick:y,children:"Meer details",spanLabel:" over "+e.item.weergavenaam,dataKpmSelector:"button-expand"})),e.readOnly||(e.onAddToBasketHandler?r.push(t.createElement(Su,{modifiers:["small","primary"],key:"addToBasket",onClick:e.onAddToBasketHandler,children:"Toevoegen",spanLabel:" van "+e.item.weergavenaam+" aan uw lijst.",disabled:!1!==e.item.invali
3d||w(),dataKpmSelector:"button-add-to-basket"})):(r.push(t.createElement(t.Fragment,{key:"delete"},t.createElement(Su,{modifier:"small",onClick:_("DELETE_BASKET_ITEM_MODAL"),children:"Verwijderen",spanLabel:" van "+e.item.weergavenaam+" uit uw lijst.",dataKpmSelector:"button-delete"}),t.createElement(yE,{modalOpen:n.modalOpen&&"DELETE_BASKET_ITEM_MODAL"===n.modalType,onCloseModal:b},t.createElement("h2",{className:"k-future h2--large"},"Geselecteerde locatie verwijderen"),t.createElement("p",null,"Weet u zeker dat u deze locatie wil verwijderen?"),t.createElement("h3",null,e.item.weergavenaam),t.createElement("table",{className:"table table--small"},t.createElement("tbody",null,e.item.bron?t.createElement("tr",null,t.createElement("th",null,"bron"),t.createElement("td",null,e.item.bron)):null,t.createElement("tr",null,t.createElement("th",null,"type"),t.createElement("td",null,e.item.type)))),t.createElement("div",{className:"modal__actions"},t.createElement(Su,{modifier:"inversed",onClick:b,dataKpmSelector:"button-cancel"},"Annuleren"),t.createElement(Su,{modifier:"primary",onClick:m,dataKpmSelector:"button-delete"},"Verwijderen"))))),i&&r.push(t.createElement(t.Fragment,{key:"update"},t.createElement(Su,{modifier:"small",onClick:_("UPDATE_BASKET_ITEM_MODAL"),children:"Bewerken",spanLabel:" van "+e.item.weergavenaam+" in uw lijst.",dataKpmSelector:"button-update"}),t.createElement(yE,{modalOpen:n.modalOpen&&"UPDATE_BASKET_ITEM_MODAL"===n.modalType,onCloseModal:b},t.createElement("h2",{className:"k-future h2--large"},"Locatie bewerken"),t.createElement("form",{ref:s,noValidate:!0,onSubmit:p},t.createElement("div",{className:"columns"},t.createElement("div",{className:"columns__column form__element"},t.createElement("label",{htmlFor:"weergavenaam"},"Titel"),t.createElement("input",{type:"text",className:n.formErrors.weergavenaam?"input--error":void 0,required:!0,name:"weergavenaam",defaultValue:e.item.weergavenaam,onChange:d,"data-kpm-selector":"basket-item-input-weergavenaam"}),n.formErrors.weergavenaam?t.createElement("div",{className:"form__error"},n.formErrors.weergavenaam):null)),"punt"===e.item.type?t.createElement("div",{className:"columns"},t.createElement("div",{className:"columns__column form__element"},t.createElement("label",{htmlFor:"coordX"},"Coördinaat X"),t.createElement("input",{type:"number",step:"any",className:n.formErrors.coordX?"input--error":void 0,name:"coordX",required:!0,min:-7e3,max:3e5,defaultValue:Number.parseFloat(n.itemChanges.coordX).toFixed(3),onChange:d,"data-kpm-selector":"basket-item-input-coord-x"}),n.formErrors.coordX?t.createElement("div",{className:"form__error"},n.formErrors.coordX):null),t.createElement("div",{className:"columns__column form__element"},t.createElement("label",{htmlFor:"coordY"},"Coördinaat Y"),t.createElement("input",{type:"number",step:"any",className:n.formErrors.coordY?"input--error":void 0,name:"coordY",required:!0,min:289e3,max:629e3,defaultValue:Number.parseFloat(n.itemChanges.coordY).toFixed(3),onChange:d,"data-kpm-selector":"basket-item-input-coord-y"}),n.formErrors.coordY?t.createElement("div",{className:"form__error"},n.formErrors.coordY):null)):null,t.createElement("div",{className:"modal__actions","data-kpm-selector":"basket-item-actions"},t.createElement(Su,{modifier:"inversed",onClick:b,dataKpmSelector:"button-cancel"},"Annuleren"),t.createElement(Su,{modifier:"primary",type:"submit",dataKpmSelector:"button-submit"},"Opslaan")))))))),e.selectable&&r.push(t.createElement(Su,{modifier:"small",key:"select",onClick:g,children:h()?"Deselecteer":"Selecteer",dataKpmSelector:"button-select"})),r}(),e.readOnly?t.createElement("div",{className:"readonly"},"Alleen lezen"):null)})),$I=Z((function(e){return{basket:e.basket}}),(function(e){return{activateItemInBasket:t=>e(_u(t)),deactivateItemInBasket:t=>e(bu(t)),peekItemInBasket:t=>e(function(e){return{item:e,mapLayerType:"default",type:il.PEEK_ITEM_IN_BASKET}}(t)),removeFromBasket:(t,n)=>e(vu(t,n)),reorderBasket:t=>e(function(e){return{orderedIds:e,type:il.REORDER_BASKET}}(t)),setKpmMode:t=>e(Y_(t)),unpeekItemInBasket:t=>e(function(e){return{item:e,mapLayerType:"default",type:il.UNPEEK_ITEM_IN_BASKET}}(t)),updateItemInBasket:t=>e(function(e){return{item:e,mapLayerType:"default",type:il.UPDATE_ITEM_IN_BASKET}}(t))}}))((function(e){const n=(0,t.useContext)(Vh),{basket:r,nonce:i,updateItemInBasket:o,removeFromBasket:s,peekItemInBasket:a,unpeekItemInBasket:l,deactivateItemInBasket:u,activateItemInBasket:c,setKpmMode:h,reorderBasket:d}=e;const f=(e,t)=>()=>{s(e,t)},p=e=>()=>a(e),g=e=>()=>l(e),m=e=>()=>{h(null),c(e)},y=e=>()=>u(e);function v(e){if(!e.destination)return;const t=function(e,t,n){const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r}(r.default,e.source.index,e.destination.index).map((e=>e.id));d(t)}return t.createElement("div",{className:"basket"},function(){const e=r.default,s=!n.features||!n.features.length;return e.length?t.createElement(t.Fragment,null,t.createElement("div",{className:"result--list"},t.createElement("p",{id:"basket__dragon-help",className:"visually-hidden"},"Om de volgorde te wijzigen kunt u de betreffende locatie selecteren met spatiebalk en daarna verplaatsen met de omhoog- en omlaagpijltjestoets. Druk op nogmaals op spatiebalk om te bevestigen, of druk op escape om te annuleren."),t.createElement(dI,{onDragEnd:v,nonce:i},t.createElement(qI,{droppableId:"droppable",isDropDisabled:s},(r=>t.createElement("ul",Object.assign({},r.droppableProps,{ref:r.innerRef,"aria-labelledby":"basket__dragon-help"}),function(e){const r=!n.features||!n.features.length;return e.map(((e,n)=>t.createElement(zI,{key:e.id,draggableId:e.id,index:n,isDragDisabled:r},(i=>t.createElement("li",Object.assign({ref:i.innerRef},i.draggableProps,i.dragHandleProps),t.createElement(HI,{key:n,item:e,selectable:!0,readOnly:r||!!e.readonly,onMouseEnterHandler:p(e),onMouseLeaveHandler:g(e),onSelectHandler:m(e),onDeselectHandler:y(e),onDeleteHandler:f(e,"default"),onUpdateHandler:e=>o(e)}))))))}
3(e),r.placeholder)))))):t.createElement("p",null,"U heeft nog geen locatie gekozen.")}())})),KI=Z((function(e){return{defaultBasketItems:e.basket.default}}))((function({defaultBasketItems:e,children:n,nonce:r}){const i=(0,t.useContext)(Vh),o=e.length?`Locaties (${e.length})`:"Locaties";return t.createElement(vM,null,t.createElement("h2",null,o),i.title?t.createElement("p",null,i.title):null,n,t.createElement($I,{nonce:r}))}));var XI=n(2243),ZI=n.n(XI),JI=n(2543),QI=n.n(JI);const eR=function(e){const[n,r]=(0,t.useState)({value:e.value||""}),i=ee()("combobox-container",{"combobox-container--error":e.error}),o=(0,t.useCallback)(QI().debounce((t=>e.onChange(t)),200),[]);return t.createElement("div",{className:i,"data-kpm-selector":"input-autocomplete"},t.createElement("span",{id:`${e.id}-help-text`,className:"combobox-help-text visually-hidden"},"Gebruik de tabulatie (of pijl omlaag) toets om suggesties te benaderen en door te bladeren na invoer. Bevestig uw keuze met de enter-toets, of de esc-toets om het suggestievenster te sluiten."),t.createElement("div",{className:"combobox-wrapper"},t.createElement(ZI(),{suggestions:e.items,onSuggestionsFetchRequested:function({value:t}){e.onChange(t)},onSuggestionsClearRequested:function(){e.items.splice(0,e.items.length)},getSuggestionValue:function(e){return e.value},renderSuggestion:function(e,{isHighlighted:n}){return t.createElement("div",{className:"combobox-suggestion "+(n?"combobox-suggestion--highlighted":""),key:e.value,dangerouslySetInnerHTML:{__html:e.highlightedLabel}})},inputProps:{id:e.id,value:n.value,onChange:function(e,{newValue:t}){r({value:t}),o(t)},placeholder:e.placeholder,className:"input-text input-text--search combobox-input","aria-describedby":`${e.id}-help-text`,onFocus:e.onFocus,autoCapitalize:"off",autoCorrect:"off",spellCheck:!1,onKeyDown:function(t){"Enter"===t.key&&(t.preventDefault(),function(){if(console.log("Enter pressed, selecting first suggestion"),0===e.items.length)return;const t=e.items[0];r({value:t.label}),e.onSelect(t)}())}},onSuggestionSelected:function(t,{suggestion:n}){e.error||(r({value:n.label}),e.onSelect(n))},renderSuggestionsContainer:({containerProps:e,children:n})=>t.createElement("div",Object.assign({},e,{className:"combobox-suggestions"}),t.createElement("div",{role:"listbox"},n))}),n.value.length>0&&t.createElement("button",{className:"combobox-clear-button","aria-label":"Wis invoer",title:"Wis invoer",type:"button",onClick:function(){e.items.splice(0,e.items.length),r({value:""})},"data-kpm-selector":"button-clear"},t.createElement("span",null,"X"))))},tR=Z((function(e){return{defaultBasketItems:e.basket.default,mode:e.kpm.mode}}),(function(e){return{addToBasket:(t,n,r)=>e(yu(t,n,r)),centerItemInBasket:t=>e(xu(t)),setKpmMode:t=>e(Y_(t))}}))((function(e){const[n,r]=(0,t.useState)({error:!1}),{setKpmMode:i,defaultBasketItems:o,addToBasket:s,centerItemInBasket:a}=e,l=(0,t.useContext)(Vh),[u,c]=(0,t.useState)([]);return(0,t.useEffect)((()=>{const e=n.suggestions?n.suggestions.locations.map((e=>({label:e.weergavenaam,geometrie_rd:e.geometrie_rd,highlightedLabel:e.highlightedTitle,type:e.type,value:e.id}))):[];c(e),n.error&&e.push({highlightedLabel:"Er is een fout opgetreden bij het ophalen van de zoekresultaten",label:"",type:null,value:""})}),[n.error,n.suggestions]),t.createElement(eR,{id:"q",items:u,error:n.error,onChange:function(e){if(e.length){const t=function(e){const t=/^(POINT)(\(-?[0-9]{1,6}(\.[0-9]+)?) (-?[0-9]{6}(\.[0-9]+)?\))|^(LINESTRING)(\(-?[0-9]{1,6}(\.[0-9]+)? -?[0-9]{6}(\.[0-9]+)?(,\s?-?[0-9]{1,6}(\.[0-9]+)? -?[0-9]{6}(\.[0-9]+)?)+\))|^(POLYGON)(\((\(-?[0-9]{1,6}(\.[0-9]+)? -?[0-9]{6}(\.[0-9]+)?,\s?-?[0-9]{1,6}(\.[0-9]+)? -?[0-9]{6}(\.[0-9]+)?(,\s?-?[0-9]{1,6}(\.[0-9]+)? -?[0-9]{6}(\.[0-9]+)?)+\)(,\s?)?)+\))|^(X:\s?)?(-?[0-9]{1,6}(\.[0-9]+)?) (Y:\s?)?(-?[0-9]{6}(\.[0-9]+)?)$/.exec(e);if(t){if(t[1])return["punt",t[1],t[2],t[4]];if(t[6]){const e=t[7].replaceAll(", ",",").replaceAll(",",", ");return e.split(", ").length>=100?null:["lijn",t[6],e]}if(t[13]){let e=!1,n=0;const r=t[14].replaceAll(", ",",").replaceAll(",",", ").replaceAll("), (","),(").replaceAll("),(","), (");return r.split("), (").forEach((t=>{const r=t.replaceAll("(","").replaceAll(")","").split(", ");e||((n+=r.length)>=100&&(e=!0),r[0]!==r[r.length-1]&&(e=!0))})),e?null:["vlak",t[13],r]}if(t[25])return["punt","XY",t[25],t[28]]}return null}(e);if(t)switch(t[0]){case"punt":if(l.locationTypes.indexOf(t[0])>-1)if("XY"===t[1]){const e={locations:[{geometrie_rd:`POINT(${t[2]} ${t[3]}
3)`,highlightedTitle:`<b>X: </b>${t[2]} <b>Y: </b>${t[3]}`,id:rl(),type:t[0],weergavenaam:`X: ${t[2]} Y: ${t[3]}`}],numFound:1};r({suggestions:e,error:!1})}else{const e={locations:[{geometrie_rd:`${t[1]}${t[2]} ${t[3]}`,highlightedTitle:`<b>${t[1]}</b>${t[2]} ${t[3]}`,id:rl(),type:t[0],weergavenaam:`${t[1]}${t[2]} ${t[3]}`}],numFound:1};r({suggestions:e,error:!1})}break;case"lijn":if(l.locationTypes.indexOf(t[0])>-1){const e={locations:[{geometrie_rd:`${t[1]}${t[2]}`,highlightedTitle:`<b>${t[1]}</b>${t[2]}`,id:rl(),type:t[0],weergavenaam:`${t[1]}${t[2]}`}],numFound:1};r({suggestions:e,error:!1})}break;case"vlak":if(l.locationTypes.indexOf(t[0])>-1){const e={locations:[{geometrie_rd:`${t[1]}${t[2]}`,highlightedTitle:`<b>${t[1]}</b>${t[2]}`,id:rl(),type:t[0],weergavenaam:`${t[1]}${t[2]}`}],numFound:1};r({suggestions:e,error:!1})}}else(function(e,t){return Bh(this,void 0,void 0,(function*(){const n=["waterschap"],r=t.map((e=>`"${e}"`)).join(" OR "),i=["BAG","NWB","DKK","Bestuurlijke Grenzen","CBS","HWH"].map((e=>`"${e}"`)).join(" OR "),o={q:e,fl:["id","type","weergavenaam","centroide_rd"].join(","),fq:`type:(${r}) AND bron:(${i})`,rows:20},s=yield Fh.get("https://api.pdok.nl/bzk/locatieserver/search/v3_1/suggest",{params:o});return{locations:s.data.response.docs.map((e=>{const t=(s.data.highlighting[e.id].suggest||[])[0]||e.weergavenaam;return Object.assign(Object.assign({},e),{highlightedTitle:t})})).sort(((e,t)=>n.indexOf(t.type)-n.indexOf(e.type))).slice(0,10),numFound:s.data.response.numFound}}))})(e,l.locationTypes).then((e=>{r({suggestions:e,error:!1})})).catch((()=>{r({suggestions:void 0,error:!0})}))}else r({suggestions:void 0,error:!1})},onFocus:function(){i(Tl.SEARCH)},onSelect:function(e){switch(e.type){case"punt":case"lijn":case"vlak":h({geometrie_rd:e.geometrie_rd,highlightedTitle:e.highlightedLabel,id:rl(),type:e.type,weergavenaam:Yb(o,e.type)});break;default:Uh(e.value).then((e=>{h(Object.assign({},e,{locatieserver_id:e.id,id:rl()}))}))}},placeholder:function(){if(l.locationTypes){return(e=l.locationTypes.filter((e=>"punt"===e||"lijn"===e||"vlak"===e||!Object.keys(vE).includes(e))).join(", ")).charAt(0).toUpperCase()+e.slice(1)+"..."}return"Search...";var e}()});function h(e){s(e,"selected",{activate:!0}),a(e)}})),nR={[Bl]:{key:"Provincies",enabled:!1,visible:!1},[zl]:{key:"Waterschappen",enabled:!1,visible:!1},[jl]:{key:"Gemeenten",enabled:!1,visible:!1},[Wl]:{key:"Woonplaatsen",enabled:!1,visible:!1},[Gl]:{key:"Wijken",enabled:!1,visible:!1},[Ul]:{key:"Buurten",enabled:!1,visible:!1},[ql]:{key:"Wegen",enabled:!1,visible:!1},[Fl]:{key:"Percelen",enabled:!1,visible:!1}},rR=Z((function(e){return{activeOverlayLayer:e.layer.activeOverlayLayer,mode:e.kpm.mode,zoomLevel:e.kpm.zoomLevel}}),(function(e){return{setActiveOverlayLayer:t=>e(function(e){return{layer:e,type:Hl}}(t)),setKpmMode:t=>e(Y_(t))}}))((function(e){const{mode:n,activeOverlayLayer:r,setKpmMode:i,setActiveOverlayLayer:o,zoomLevel:s}=e,a=(0,t.useContext)(Vh),[l,u]=(0,t.useState)({fold:!1}),c=()=>{i(null)},h=()=>{u({fold:!1})},d=Object.keys(nR).filter((e=>a.locationTypes.includes(e))).reduce(((e,t)=>{const n=xS(t,s,a),i=t===r;return e[t]={enabled:n||i,key:t,visible:n},e}),{});return t.createElement(t.Fragment,null,t.createElement("button",{id:"select-button",type:"button",className:"button button--primary button--divider-icon-map",onClick:()=>{n===Tl.SELECT?i(null):i(Tl.SELECT)},"data-kpm-selector":"layerselector","aria-label":"Locatie kiezen"},t.createElement("span",{className:"divider"},"Locatie kiezen")),(e=>t.createElement(yE,{modifier:"tooltip",modalOpen:n===Tl.SELECT,onCloseModal:c},t.createElement("h3",null,"Locatie kiezen"),l.fold?t.createElement("p",{className:"layer-selector layer-selector-link",onClick:h},r,t.createElement("a",null,"Meer locaties")):t.createElement("div",null,t.createElement("p",{className:"layer-selector"},"Selecteer een locatie of een gebied uit de lijst."),t.createElement("form",null,t.createElement("fieldset",{className:"form__element radiogroup","data-kpm-selector":"layerselector-layers"},Object.keys(e).map((s=>t.createElement(t.Fragment,{key:s},t.createElement("input",{type:"radio",id:s,className:"radio__input",name:"possible-layers",value:s,checked:(n!==Tl.SELECT?null:r)===s,disabled:!e[s].enabled,onChange:e=>{i(Tl.SELECT),o(e.target.value),u({fold:!0})}
3,"data-kpm-selector":`layerselector-layer-${e[s].key}`}),t.createElement("label",{className:"radio__label",htmlFor:s},e[s].key," ",e[s].enabled?null:t.createElement("i",null,"zoom in"))))))))))(d))})),iR=Z((function(e){return{basketItems:e.basket.default,showLegend:!0,symbolisatieItemsArray:e.basket.symbolisatieItemsArray}}))((function(e){const{symbolisatieItemsArray:n,basketItems:r}=e,[i,o]=(0,t.useState)({showLegend:!1});(0,t.useEffect)((()=>{setTimeout((()=>o({showLegend:!0})),500)}),[]);const s=()=>r.filter((e=>"zone"===e.areaType)).length>0;function a(e,n){let r="";const i={};return n&&(i.borderColor=n.getStroke().getColor(),i.borderWidth=n.getStroke().getWidth()+"px","object"==typeof n.getFill().getColor()?(i.backgroundImage=`url("${Wx}")`,r="pattern"):i.backgroundColor=n.getFill().getColor()),t.createElement("li",{className:"legend-item",key:e},l(i,r),t.createElement("div",{className:"legend-name",title:e},e))}function l(e,n=""){return t.createElement("div",{className:"legend-bullet "+n},t.createElement("span",{style:e}))}const u=ee()("legend-container",i.showLegend?"legend-container-open":"","modal modal--tooltip");return void 0!==n&&n.length>0&&n.filter((e=>{var t;return null===(t=e.items)||void 0===t?void 0:t.length})).length>0||s()?t.createElement("div",{className:u},t.createElement("div",{className:"modal__inner"},t.createElement("button",{id:"legenda-button",type:"button",className:"button modal__close map-button--legend",onClick:()=>{o({showLegend:!i.showLegend})},"data-kpm-selector":"legendatoggle"}),n.filter((e=>{var t;return null===(t=null==e?void 0:e.items)||void 0===t?void 0:t.length})).map(((e,r)=>{var o;return t.createElement("div",{key:r},t.createElement("h3",{className:r>0?"top-spacing":""},e.title?e.title:"Legenda"+(n.length>1?` ${r+1}`:"")),i.showLegend&&e.items&&t.createElement("div",null,e.subtitle&&t.createElement("h5",null,e.subtitle),t.createElement("ul",{className:"ul_legenda","data-kpm-selector":"legenda"},null===(o=e.items)||void 0===o?void 0:o.map((e=>(e=>{const n={};let r="";if(e.icon){const t=Hx(e);n.backgroundImage="url("+t+")",n.backgroundSize=Math.min(e.icon.size/16,1.3)+"rem",n.borderWidth="0"}else e.fill?e.fill.fill_image?(n.backgroundImage=`url("${e.fill.fill_image}")`,r="pattern"):n.backgroundColor=uE(e.fill.fill,e.fill.fill_opacity):r="line",e.stroke&&(n.borderColor=uE(e.stroke.stroke,e.stroke.stroke_opacity),n.borderWidth=e.stroke.stroke_width+"px",e.stroke.stroke_dasharray&&(n.borderStyle="dashed"));return t.createElement("li",{className:"legend-item",key:e.id},l(n,r),t.createElement("div",{className:"legend-name",title:e.abstract},e.title))})(e))))))})),i.showLegend&&s()&&t.createElement("div",null,t.createElement("ul",{className:"ul_legenda","data-kpm-selector":"legenda"},a("Markering",iE),a("Effectgebied",rE(!1)))))):null})),oR=Z((function(e){return e.basket.selected.length?{selectedLocation:e.basket.selected[0]}:{}}),(function(e){return{addToBasket:(t,n,r)=>e(yu(t,n,r)),removeFromBasket:(t,n)=>e(vu(t,n)),setKpmMode:t=>e(Y_(t))}}))((function({selectedLocation:e,removeFromBasket:n,addToBasket:r}){const i=(0,t.useContext)(Vh);return t.createElement(t.Fragment,null,e&&t.createElement("div",{className:"selected-location"},t.createElement(HI,{compact:!0,item:e,readOnly:!i.features.length,onAddToBasketHandler:(o=e,()=>r(o,"default")),onDiscardHandler:function(){n(e,"selected")}})));var o})),sR=function(e){const{radius:n,stroke:r,progress:i}=e,o=n-2*r,s=2*o*Math.PI,a=s-i/100*s;return t.createElement(t.Fragment,null,t.createElement("svg",{height:2*n,width:2*n},t.createElement("circle",{stroke:"#b2d7ee",fill:"transparent",r:o,cx:n,cy:n}),t.createElement("circle",{stroke:"#154273",strokeDasharray:s+" "+s,strokeWidth:r,strokeDashoffset:a,fill:"transparent",r:o,cx:n,cy:n})))};function aR({coords:e,zoomlevel:n}){const r=(0,t.createRef)();return t.createElement("form",{ref:r,noValidate:!0},t.createElement("h2",{className:"k-future h2--large"},"Nieuwe terugmelding - Verbeter de kaart"),t.createElement("p",null,"U wilt voor de gekozen locatie een melding maken over een mogelijke fout in de k
3aart. Ga hiervoor naar"," ",t.createElement("a",{href:"https://www.verbeterdekaart.nl/#?geometry.x="+Math.round(e[0])+"&geometry.y="+Math.round(e[1])+"&zoomlevel="+Math.round(n),target:"_blank",rel:"noopener noreferrer"},"www.verbeterdekaart.nl")," ","en klik op 'Melding maken'."),t.createElement("p",null,"Locatie: ",t.createElement("b",null,"X: "),t.createElement("span",{id:"x"},Math.round(e[0]))," ",t.createElement("b",null,"Y: "),t.createElement("span",{id:"y"},Math.round(e[1]))))}var lR=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))};const uR=Z((function(e){return{customMarkers:e.basket.customMarkers,defaultBasketLocations:e.basket.default,gioVersion:e.basket.gioVersion,usedKpmModes:e.kpm.usedModes}}),(function(e){return{addCustomMarker:t=>e(function(e){return{marker:e,type:il.ADD_CUSTOM_MARKER}}(t)),addManyToBasket:(t,n,r)=>e(function(e,t,n){return{items:e,mapLayerType:t,options:n,type:il.ADD_MANY_TO_BASKET}}(t,n,r)),addToBasket:(t,n,r)=>e(yu(t,n,r)),centerBasket:()=>e(Eu()),removeFromBasket:t=>e(vu({},t)),setBorderColor:t=>e(function(e){return{color:e,type:au.SET_BORDER_COLOR}}(t)),setBorderWidth:t=>e(function(e){return{type:au.SET_BORDER_WIDTH,width:e}}(t)),setFillActiveColor:t=>e(function(e){return{color:e,type:au.SET_FILL_ACTIVE_COLOR}}(t)),setFillColor:t=>e(function(e){return{color:e,type:au.SET_FILL_COLOR}}(t)),setGioVersion:t=>e(function(e){return{gioVersion:e,type:il.SET_GIOVERSION}}(t)),setSymbolisatie:t=>e(function(e){return{items:e,type:il.SET_SYMBOLISATIE}}(t))}}))((function(e){const{config:n,gioVersion:r,defaultBasketLocations:i,customMarkers:o,onCancel:s,onSubmit:a,setFillColor:l,setFillActiveColor:u,setBorderColor:c,setBorderWidth:h,addCustomMarker:d,addToBasket:f,centerBasket:p,setSymbolisatie:g,setGioVersion:m,addManyToBasket:y,removeFromBasket:v}=e,_=(0,t.useContext)(Vh),[b,w]=(0,t.useState)({alerts:[],allowClick:!1,allowHover:!1,center:{highlight:!1,type:"auto"},clustering:!1,controls:[],customMarkers:[],failedLayerType:null,failedLocations:[],features:[],feedbackCoords:[],feedbackZoomLevel:9,initialLoading:!0,isLoading:!0,showLoadingSidebar:!0,layers:{bgtachtergrondkaart:{enabled:!1}},loadingLocationCounter:1,loadingLocationProgress:null,locationButton:{title:"Meer details",targetBlank:!0},locationTypes:[],openedAt:Date.now(),optimizeComplexGeo:!1,showAboutModal:!1,showErrorModal:!1,showFeedbackModal:!1,totalLocations:0});let x,E;const S=(0,t.useMemo)((()=>({center:b.center,clustering:b.clustering,controls:b.controls,features:b.features,layers:b.layers,locationTypes:b.locationTypes,mode:b.mode||"geoview",optimizeComplexGeo:b.optimizeComplexGeo,title:b.title})),[b.center,b.clustering,b.controls,b.features,b.layers,b.locationTypes,b.mode,b.optimizeComplexGeo,b.title]),C=n.options.mode;if(C&&C.includes("geobrowse")){const e=n.options.geobrowse;E=new dx(e,(function(e,t=!1){e.length&&y(e,"default",{append:!0}),t||w((e=>Object.assign(Object.assign({},e),{isLoading:!1,loadingLocationProgress:null})))}),I,(function(){w((e=>Object.assign(Object.assign({},e),{isLoading:!0})))}),(function(e){w((t=>Object.assign(Object.assign({},t),{isLoading:!0,loadingLocationProgress:e})))}))}const M=()=>lR(this,void 0,void 0,(function*(){if(n.markers){const e=n.markers.map((e=>e));o.push(...e)}x=n.debug,x&&console.info("[kpm.tsx] KPM mounted..."),yield function(e){return lR(this,void 0,void 0,(function*(){yield function(e){return lR(this,void 0,void 0,(function*(){var t,n,r,i;const o=F(Gh,e.location_types||zh),s=F(["draw","search","select","rotate"],e.features);let a=null;if(e.center&&"location"===e.center.type&&e.center.location){const t=e.center.location.title,n=e.center.location.type;t&&n&&(a=yield qh(t,n))}const l=e.mode||"geoedit",u=!1!==e.allow_click,c=!1!==e.allow_hover;let h,d,f=!0===e.optimize_complex_geo;d=e.controls?e.controls:"geoview"===l?["zoom"]:"geobrowse"===l?["base-layer","fullscreen","zoom"]:["base-layer","center","fullscreen","zoom","feedback"],["geobrowse","geoview"].includes(l)?(h=!1!==e.clustering,d=d.concat(["scaleLine","about","attribution","rotate"]),"geobrowse"===l&&(f=!1!==e.optimize_complex_geo)):(h=!0===e.clustering,d=d.concat(["radiu
3s","length","area","scaleLine","mousePosition","about","attribution","rotate"]));const p={title:(null!==(n=null===(t=e.location_button)||void 0===t?void 0:t.title)&&void 0!==n?n:"geobrowse"===_.mode)?"Bekijk publicatie":"Meer details",targetBlank:null!==(i=null===(r=null==e?void 0:e.location_button)||void 0===r?void 0:r.targetBlank)&&void 0!==i?i:b.locationButton.targetBlank};w((t=>Object.assign(Object.assign({},t),{allowClick:u,allowHover:c,center:Object.assign(Object.assign(Object.assign({},b.center),e.center),{location:a||void 0}),clustering:h,controls:d,features:Array.from(s),layers:e.layers||{bgtachtergrondkaart:{enabled:!0}},locationButton:p,locationTypes:Array.from(o),mode:l,optimizeComplexGeo:f,title:e.title}))),pE({eventAction:"start",eventName:[l]})}))}(n.options);const t=yield(o=e,hE.validate(o,dE)),r=[],i=(t.locations?t.locations.length:0)+(t.collections?t.collections.length:0);var o;let s=i<100;if(t.styles&&(t.styles.fill_color&&l(t.styles.fill_color),t.styles.fill_active_color&&u(t.styles.fill_active_color),t.styles.border_color&&c(t.styles.border_color),t.styles.border_width&&h(t.styles.border_width)),t.markers)for(const e of t.markers){const t={marker:e.marker,marker_active:e.marker_active?e.marker_active:e.marker,name:e.name};d(t)}if(s&&w((e=>Object.assign(Object.assign({},e),{totalLocations:i}))),t.collections){const e=[];for(const n of t.collections)s&&w((e=>Object.assign(Object.assign({},e),{loadingLocationProgress:null}))),yield j(n).then((t=>{s=t.basketItems.length<100,s?(t.basketItems.forEach((e=>f(e,"default"))),p()):t.basketItems.forEach((e=>r.push(e))),e.push(t.symbolisatieItems),m(t.gioVersion)})).finally((()=>{s&&w((e=>Object.assign(Object.assign({},e),{loadingLocationCounter:e.loadingLocationCounter+1})))}));g(e)}if(t.locations)for(const e of t.locations)s&&w((e=>Object.assign(Object.assign({},e),{loadingLocationProgress:null}))),yield B(e).then((e=>{s?(f(e,"default"),p()):r.push(e)}),(e=>{w((t=>Object.assign(Object.assign({},t),{failedLocations:[...t.failedLocations,e]}))),console.error("Failed location:",e)})).finally((()=>{s&&w((e=>Object.assign(Object.assign({},e),{loadingLocationCounter:e.loadingLocationCounter+1})))}));t.publication_id&&(s&&w((e=>Object.assign(Object.assign({},e),{loadingLocationProgress:null,isLoading:!0}))),yield function(e){return lR(this,void 0,void 0,(function*(){const t=yield function(e,t){return ox(this,void 0,void 0,(function*(){if(!e)return Promise.reject(null);const n=yield function(e,t){return rx(this,void 0,void 0,(function*(){const n=qb(t),r=yield ix.get(`/sru?query=dt.identifier==${e}&httpAccept=application/xml`,{onDownloadProgress:n});return null==r?void 0:r.data}))}(e,t);if(null===n)return yield Promise.reject({id:e,weergavenaam:e});const r=[],i=n.getElementsByTagNameNS("*","record");if(0===i.length)return yield Promise.reject({id:e,weergavenaam:e});const o=i[0],s=o.getElementsByTagNameNS("*","gebiedsmarkering"),a=o.getElementsByTagNameNS("*","effectgebied"),{itemTitle:l,itemDescription:u,itemId:c,all:h}=ax(o);return a.length?(r.push(...lx(a,c,l,u,"zone")),s.length&&r.push(...lx(s,c,l,u)),Promise.resolve(ux(r))):(r.push(...lx(h,c,l,u)),Promise.resolve(ux(r)))}))}(e,(e=>{w((t=>Object.assign(Object.assign({},t),{loadingLocationProgress:e})))})).catch((t=>{console.error(t);const n={id:e,weergavenaam:e};return Promise.reject(n)}));return t}))}(t.publication_id).then((e=>{y(e,"default"),p(),w((e=>Object.assign(Object.assign({},e),{isLoading:!1})))}),(e=>{w((t=>Object.assign(Object.assign({},t),{failedLocations:[...t.failedLocations,e]}))),console.error("Failed location:",e)}))),s||y(r,"default"),w((e=>Object.assign(Object.assign({},e),{initialLoading:!1,isLoading:!1})))}))}(n)}));(0,t.useEffect)((()=>{M()}),[]);const k=(0,t.useRef)((0,JI.debounce)((()=>{p()}),2e3)).current;(0,t.useEffect)((()=>{b.center&&k()}),[b.center]);const[T,P]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{!function(){const e=b.alerts.slice(0);if(0===b.failedLocations.length||b.isLoading)return;const n=t.createElement(t.Fragment,null,t.createElement("div",{role:"alert"},t.createElement("h3",null,"Locaties niet gevonden"),t.createElement("p",null,"De volgende locaties zijn niet gevonden"),t.createElement("ul",{className:"failed--list"},b.failedLocations.map(((e,n)=>e?t.createElement("li",{key:n},t.createElement("i",null,e.locatieserver_id?e.locatieserver_id:e.weergavenaam),function(e){return e.error?t.createElement("div",{className:"alert-error-message"},t.createElement("i",null,e.error.message)):null}(e)):t.createElement("li",{key:n},t.createElement("i",null,"Locatie niet gevonden.")))))));e.push({body:n,type:"failed"}),w((t=>Object.assign(Object.assign({},t),{alerts:e})))}();let e=null;return b.isLoading?P(!0):e=setTimeout((()=>{P(!1)}),2e3),()=>{e&&clearTimeout(e)}}),[b.isLoading]),t.createElement(t.Fragment,null,b.mode&&t.createElement(Yh,{value:S}
3,t.createElement("div",{className:`kpm-container kpm-container--${b.mode}`},t.createElement(Hh,{key:"body",sidebar:t.createElement(KI,{nonce:n.options.nonce},"geoedit"===b.mode&&b.totalLocations>0&&T?t.createElement("div",{className:"alert alert--loading",role:"alert"},t.createElement("h3",null,"Locaties laden"),t.createElement("p",{className:"loading__subtitle"},O()),t.createElement("div",{className:"loader"})):null,b.alerts.map(((e,n)=>t.createElement(VI,{key:n,type:e.type,removalIndicator:!0},e.body)))),main:t.createElement(t.Fragment,null,t.createElement("div",{className:"columns-map-actions"},b.features.includes("search")?t.createElement("div",{className:"columns-map-action columns-map-action--autocomplete"},t.createElement(tR,null)):null,b.features.includes("draw")?t.createElement("div",{className:"columns-map-action"},t.createElement(_E,null)):null,b.features.includes("select")?t.createElement("div",{className:"columns-map-action"},t.createElement(rR,null)):null),"geoview"===b.mode?t.createElement("div",{className:"columns-map-legend"},t.createElement(iR,null)):null,b.initialLoading?t.createElement("div",{className:"main-column__overlay"}):null,t.createElement(oR,null),function(){if(b.mode&&["geobrowse","geoview"].includes(b.mode)&&b.isLoading){const e=1===b.totalLocations?null:b.totalLocations>0?Math.min(100,Math.round(b.loadingLocationCounter/b.totalLocations*100)):null,n=O();let r;return r=null!==e?t.createElement(sR,{radius:32,stroke:2,progress:e}):t.createElement("div",{className:"loader"},t.createElement("div",{className:"loader__spinner"})),t.createElement("div",{className:"main-column__loader"},t.createElement("div",{className:"alert alert--loading",role:"alert"},r,n.length>0&&t.createElement("div",null,t.createElement("h3",null,"Kaart laden"),t.createElement("p",null,n))))}return null}(),b.mode&&!["geobrowse","geoview"].includes(b.mode)?null:t.createElement("div",{className:"main-column__loader"},b.alerts.map(((e,n)=>t.createElement(VI,{key:n,type:e.type,removalIndicator:!0},e.body)))),t.createElement(yM,{allowClick:b.allowClick,allowHover:b.allowHover,customLocationHandler:n.on_location_click,onClickAbout:function(){w((e=>Object.assign(Object.assign({},e),{showAboutModal:!0})))},onClickFeedback:function(e,t){const n=(new Wi).readGeometry(e);let r=Math.round(t);r=r-5-(r>=12&&r<=14?1:0),w((e=>Object.assign(Object.assign({},e),{showFeedbackModal:!0,feedbackCoords:n.flatCoordinates,feedbackZoomLevel:r})))},onClickLocationHandler:function(e){v("selected"),w((e=>Object.assign(Object.assign({},e),{failedLayerType:null,failedLocations:[],isLoading:!0,loadingLocationCounter:1,totalLocations:1}))),e().then((e=>f(e,"selected",{activate:!0})),(e=>{const n=b.alerts.slice(0),r=t.createElement("p",null,"Geen ",e," gevonden op de aangegeven locatie.");n.push({body:r,type:"failed"}),w((t=>Object.assign(Object.assign({},t),{failedLayerType:e,alerts:n})))})).finally((()=>w((e=>Object.assign(Object.assign({},e),{isLoading:!1})))))},onError:I,onLoad:function(e){w((t=>Object.assign(Object.assign({},t),{isLoading:e})))},onPanZoomHandler:function(e,t){"geobrowse"===n.options.mode&&(null==E||E.onMapPanZoomHandler(e,t))},locationButton:b.locationButton,maxZoom:n.options.maxzoom,minZoom:n.options.minzoom,ctrlZoom:n.options.ctrl_zoom})),future:!0,onCancel:function(){pE({eventAction:"cancel",eventName:[`${i.length} locations`],eventValue:N()}),s()},onSubmit:function(){const e=i.map(R);if(i.find((e=>!1!==e.invalid)))return D()();pE({eventAction:"opslaan",eventName:[`${i.length} locations`],eventValue:N()}),a(e)}}),function(){const e=function(e){return[...Kl,...Xl].map((t=>_S(t,e)))}(S).filter((e=>{var t,n;if(Kl.indexOf(e.id)>-1)switch(e.id){case"bgtachtergrondkaart":return null===(t=null==b?void 0:b.layers)||void 0===t?void 0:t.bgtachtergrondkaart.enabled;case"brtachtergrondkaart":return!0;case"luchtfoto":case"luchtfotolabels":return null===(n=null==b?void 0:b.controls)||void 0===n?void 0:n.includes("base-layer")}return!!(b.features.includes("select")&&b.locationTypes.indexOf(null==e?void 0:e.id)>-1)})).sort(((e,t)=>e.name.localeCompare(t.name))),n=_S(Il.BRT_ACHTERGRONDKAART,S);return t.createElement(yE,{modalOpen:b.showAboutModal,onCloseModal:A()},t.createElement("h2",{className:"k-future h2--large"},"Over de kaartmodule"),t.createElement("dl",{className:"dl"},t.createElement("dt",null,"Gebruikte kaartlagen"),t.createElement("dd",null,t.createElement("ul",null,e.map((e=>t.createElement("li",{key:e.layerName},t.createElement("a",{href:e.infoUrl,target:"_blank",rel:"noreferrer"},e.name," (",e.layerName,")")))))),t.createElement("dt",{className:"about__copyright-title"},"Copyright"),t.createElement("dd",{className:"about__copyright-value",dangerouslySetInnerHTML:{__html:n.attribution}}),t.createElement("dt",null,"Versie"),t.createElement("dd",null,Kb),r.length>0&&t.createElement("dd",null,"Geladen GIO versie",r.length>1&&"s",":",r.join(", ")," (ondersteuning voor GIO volgens STOP v0.98.0-beta en v1.0.4)"),t.createElement("dt",null,"Meer informatie"),t.createElement("dd",null,"Voor meer informatie en hulp bij gebruik kunt u terecht op"," ",t.createElement("a",{href:"https://www.overheid.nl/kaarten",target:"_blank",rel:"noreferrer"},"https://www.overheid.nl/kaarten"),".")),t.createElement(Su,{modifier:"inversed",onClick:A(),dataKpmSelector:"button-close"},"Sluiten"))}(),t.createElement(yE,{modalOpen:b.showErrorModal,onCloseModal:D()},t.createElement("h2",{className:"k-future h2--large"},"Opslaan niet mogelijk"),t.createElement("p",null,"Er zijn nog ongeldige locaties gevonden."),t.createElement(Su,{modifier:"inversed",onClick:D(),dataK
3pmSelector:"button-close"},"Sluiten")),t.createElement(yE,{modalOpen:b.showFeedbackModal,onCloseModal:L()},t.createElement(aR,{coords:b.feedbackCoords,zoomlevel:b.feedbackZoomLevel,close:L()})))));function O(){const e=b.loadingLocationProgress?` (${b.loadingLocationProgress})`:"";return"geobrowse"===b.mode?e:b.totalLocations<1?`Locatie laden ... ${e}`:`Locatie ${b.loadingLocationCounter-1} van ${b.totalLocations} laden ... ${e}`}function I(e){const n=t.createElement("p",null,e);w((e=>Object.assign(Object.assign({},e),{alerts:[...b.alerts,{body:n,type:"failed"}],isLoading:!1})))}function R(e){const t={geometry:e.geometrie_rd,geometry_type:"WKT",id:e.id,readonly:e.readonly,title:e.weergavenaam,type:e.type};return e.locatieserver_id&&(t.locatieserver_id=e.locatieserver_id),e.symbolisatie&&(t.symbolisatie=e.symbolisatie),["gemeentenaam","hectometerletter","hectometernummer","huis_nlt","huisletter","huisnummer","huisnummertoevoeging","kadastraal_object_id","kadastrale_aanduiding","kadastrale_gemeentenaam","actuele_gemeentenaam","kadastrale_grootte","kadastrale_sectie","perceelnummer","postcode","provincienaam","straatnaam","straatnaam_verkort","type","waterschapsnaam","wegnummer","woonplaatsnaam"].forEach((n=>{e[n]&&(t[n]=e[n])})),t}function A(){return()=>{w((e=>Object.assign(Object.assign({},e),{showAboutModal:!b.showAboutModal})))}}function L(){return()=>{w((e=>Object.assign(Object.assign({},e),{showFeedbackModal:!b.showFeedbackModal})))}}function N(){return Math.round((Date.now()-b.openedAt)/1e3).toString()}function D(){return()=>{w((e=>Object.assign(Object.assign({},e),{showErrorModal:!b.showErrorModal})))}}function F(e,t){const n=new Set(e),r=new Set(t),i=new Set(Array.from(r).filter((e=>n.has(e))));if(i.size!==r.size){const e=new Set(Array.from(r).filter((e=>!n.has(e))));console.error(`[kpm.tsx] Unknown option given: ${Array.from(e)}`)}return i}function j(e){return lR(this,void 0,void 0,(function*(){return function(e,t){if(!e.url)return Promise.reject(null);const n=new Ry({format:new kb({featureNS:{geo:"https://standaarden.overheid.nl/stop/imop/geo/"},featureType:"geo:Locatie",srsName:"EPSG:28992"}),projection:"EPSG:28992",strategy:xy}),r=qb(t);return Fh.get(e.url,{onDownloadProgress:r,responseType:"document"}).then((e=>{const t=[],r=e.data.getElementsByTagNameNS("*","Locatie"),i=e.data.getElementsByTagNameNS("https://standaarden.overheid.nl/stop/imop/geo/","normlabel"),o=e.data.getElementsByTagNameNS("https://standaarden.overheid.nl/stop/imop/geo/","eenheidlabel"),s=e.data.getElementsByTagName("KMGeometrie"),a=void 0!==i[0]?i[0].innerHTML:"",l=void 0!==o[0]?o[0].innerHTML:"";let u="";void 0!==s[0]&&(u=s[0].getAttribute("schemaversie")||"");const c=function(e,t,n){const r=[],i=e.getElementsByTagNameNS("*","Rule"),o=t&&t,s=n&&n;for(const e of i){const t=e.getElementsByTagNameNS("*","Fill"),n=e.getElementsByTagNameNS("*","PointSymbolizer"),i=e.getElementsByTagNameNS("*","Stroke"),o={abstract:Wb(e,"Abstract"),filter:e.getElementsByTagNameNS("*","Filter"),id:rl(),title:Wb(e,"Title")};if(t.length&&(o.fill=jb(t[0].querySelectorAll("*"))),i.length&&(o.stroke=zb(i[0].querySelectorAll("*"))),n.length){const e=n[0].getElementsByTagNameNS("*","Graphic");o.icon=Bb(e[0].querySelectorAll("*"))}r.push(o)}return{filtername:Wb(e,"PropertyName"),items:r,subtitle:s,title:o,typeIdentifier:Wb(e,"SemanticTypeIdentifier")}}(e.data,a,l);for(const e of r){const r=Vb(e.cloneNode(!0)),i=(new XMLSerializer).serializeToString(r),o=n.getFormat().readFeatures(i,{dataProjection:"EPSG:28992",featureProjection:"EPSG:3857"})[0],s=o.getGeometry().getType(),a="Point"===s?"punt":"LineString"===s?"lijn":"vlak",u=$b(e,c);o.symbolisatie=u;const h={feature:o,id:Wb(e,"oId")||rl(),normwaarde:Hb(e,l,u),symbolisatie:u,type:a,weergavenaam:Wb(e,"naam")||""};t.push(h)}return{basketItems:t,gioVersion:u,symbolisatieItems:c}}))}(e,(e=>{w((t=>Object.assign(Object.assign({},t),{loadingLocationProgress:e})))}))}))}function B(e){return lR(this,void 0,void 0,(function*(){let t;if(e.locatieserver_id||!e.geometry){let n;if(e.locatieserver_id){if(n=yield Uh(e.locatieserver_id),null===n)return Promise.reject({locatieserver_id:e.locatieserver_id,weergavenaam:e.title})}else{const t=e.title,r=e.type;if(n=yield qh(t,r),"perceel"===(null==n?void 0:n.type)&&(n=yield Uh(n.id)),null===n)return Promise.reject({weergavenaam:e.title})}t=Object.assign(Object.assign(Object.assign({},e),n),{id:e.id||rl(),locatieserver_id:n.id})}else{t=Object.assign(Object.assign({},e),{geometrie_rd:e.geometry,id:e.id||rl(),type:e.type,weergavenaam:e.title||px(e)});try{if(e.type&&e.geometry&&!1!==qi(e.type,e.geometry))return Promise.reject({weergavenaam:"Buiten bereik: "+("punt"===e.type?Yi(e.geometry):`(${e.type}) ${e.title}`)});(new Wi).readFeature(e.geometry)}catch(n){return e.geometry?Promise.reject(Object.assign(Object.assign({},t),{weergavenaam:"Fout bij invoer:",error:n})):Promise.reject(t)}}return e.marker&&(yield z(e.marker).then((e=>{t.marker=e})),yield z(e.marker,!0).then((e=>{t.marker_active=e}))),Promise.resolve(t)}))}function z(e,t){return lR(this,void 0,void 0,(function*(){let n=t?qx:Vx;for(const r of o)r.name===e&&(n="data:image/svg+xml;base64,"+(t&&r.marker_active?r.marker_active:r.marker));return G(n),n}))}function G(e){const t=rl();G["img"+t]=new Image,G["img"+t].src=e}}));let cR,hR;const dR=window.kaartprikmodule||[];
3window.kaartprikmodule=function e(){function n(t){const n=new e(t);cR=t,cR.debug&&console.info("[api.ts] Setting config:",t),cR.debug&&console.log("[api.ts] Mount when ready called"),n.mountKPM()}function i(e,t){if(e<1)throw new Error(`Invalid config: '${t}' must be a positive number.`);if(e>25)throw new Error(`Invalid config: '${t}' cannot be higher than 25`);if("maxzoom"===t&&e<=(cR.options.minzoom||8.5))throw new Error("maxzoom must be bigger than minzoom");if("minzoom"===t&&e>=(cR.options.maxzoom||19))throw new Error("maxzoom must be bigger than minzoom")}function o(){if(cR.debug&&console.info("[api.ts] Unmounting KPM component."),hR)return hR.unmount(),hR=void 0,!0}function s(){o()&&cR.on_cancel&&cR.on_cancel()}function a(e){if(o()&&cR.on_submit){const t=new Date,n={locations:e,referencedate:t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)};cR.on_submit(n)}}return{validateConfig:function(){if([void 0,"geoedit"].includes(cR.options.mode)){if(void 0!==cR.on_cancel&&"function"!=typeof cR.on_cancel)throw new Error(`Invalid config: 'onCancel' must be either undefined or a function. A *${typeof cR.on_cancel}* was passed.`);if(void 0!==cR.on_location_click&&"function"!=typeof cR.on_location_click)throw new Error(`Invalid config: 'on_location_click' must be a function. A *${typeof cR.on_location_click}* was passed.`);if("function"!=typeof cR.on_submit)throw new Error(`Invalid config: 'on_submit' must be a function. A *${typeof cR.on_submit}* was passed.`)}if(void 0===cR.mount_element||!(cR.mount_element instanceof Element||"string"==typeof cR.mount_element))throw new Error(`Invalid config: 'mount_element' must be an Element or a string. A *${typeof cR.mount_element}* was passed.`);if(void 0!==cR.options.maxzoom){if("number"!=typeof cR.options.maxzoom)throw new Error(`Invalid config: 'maxzoom' must be a number. A *${typeof cR.options.maxzoom}* was passed.`);i(cR.options.maxzoom,"maxzoom")}if(void 0!==cR.options.minzoom){if("number"!=typeof cR.options.minzoom)throw new Error(`Invalid config: 'minzoom' must be a number. A *${typeof cR.options.minzoom}* was passed.`);i(cR.options.minzoom,"minzoom")}},mountKPM:function(){cR.debug&&console.info("[api.ts] Mounting KPM component."),Fx(),function(){let e=ee()("kpm",cR.options.class);const n="string"==typeof cR.mount_element?document.querySelector(cR.mount_element):cR.mount_element;n?(0===n.clientHeight&&"geoview"===cR.options.mode&&(e+=" no-height"),o(),hR=void 0,hR=r.createRoot(n),hR.render(t.createElement(J,{store:jx},t.createElement("div",{className:e},t.createElement(uR,{config:cR,onCancel:s,onSubmit:a}))))):console.warn(`No DOM node found for mountElement ${cR.mount_element}`)}()},bootstrapKpm:function(e){"complete"!==document.readyState?document.addEventListener("DOMContentLoaded",(()=>{n(e)})):n(e)},push:function e(t){const[n,...r]=t;n&&e[n].call(e,...r)}}}(),dR.forEach((e=>window.kaartprikmodule.push(e)));var fR=n(2291),pR={};pR.styleTagTransform=jS(),pR.setAttributes=LS(),pR.insert=RS().bind(null,"head"),pR.domAPI=OS(),pR.insertStyleElement=DS(),TS()(fR.A,pR),fR.A&&fR.A.locals&&fR.A.locals})()})();; 4window.appEnvironment = { 5 API_URL: "{{url.repository.sru}}", 6 API_ENV: "{{environment-demo}}", 7}; 8; 9/* Package version: 2.43.3, "@koop/applicatie-cb". */ 10/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 11!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var i=[],s=Object.getPrototypeOf,n=i.slice,o=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},r=i.push,a=i.indexOf,l={},c=l.toString,h=l.hasOwnProperty,u=h.toString,d=u.call(Object),p={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,i){var s,n,o=(i=i||m).createElement("script");
vendor: 49,042 bytes, line 11
11if(o.text=e,t)for(s in v)(n=t[s]||t.getAttribute&&t.getAttribute(s))&&o.setAttribute(s,n);i.head.appendChild(o).parentNode.removeChild(o)}function y(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var _="3.7.1",x=/HTML$/i,w=function(e,t){return new w.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,i=y(e);return!f(e)&&!g(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}w.fn=w.prototype={jquery:_,constructor:w,length:0,toArray:function(){return n.call(this)},get:function(e){return null==e?n.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:r,sort:i.sort,splice:i.splice},w.extend=w.fn.extend=function(){var e,t,i,s,n,o,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||f(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)s=e[t],"__proto__"!==t&&r!==s&&(c&&s&&(w.isPlainObject(s)||(n=Array.isArray(s)))?(i=r[t],o=n&&!Array.isArray(i)?[]:n||w.isPlainObject(i)?i:{},n=!1,r[t]=w.extend(c,o,s)):void 0!==s&&(r[t]=s));return r},w.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==c.call(e)||(t=s(e))&&("function"!=typeof(i=h.call(t,"constructor")&&t.constructor)||u.call(i)!==d))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){b(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,s=0;if(k(e))for(i=e.length;s<i&&!1!==t.call(e[s],s,e[s]);s++);else for(s in e)if(!1===t.call(e[s],s,e[s]))break;return e},text:function(e){var t,i="",s=0,n=e.nodeType;if(!n)for(;t=e[s++];)i+=w.text(t);return 1===n||11===n?e.textContent:9===n?e.documentElement.textContent:3===n||4===n?e.nodeValue:i},makeArray:function(e,t){var i=t||[];return null!=e&&(k(Object(e))?w.merge(i,"string"==typeof e?[e]:e):r.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:a.call(t,e,i)},isXMLDoc:function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!x.test(t||i&&i.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,s=0,n=e.length;s<i;s++)e[n++]=t[s];return e.length=n,e},grep:function(e,t,i){for(var s=[],n=0,o=e.length,r=!i;n<o;n++)!t(e[n],n)!==r&&s.push(e[n]);return s},map:function(e,t,i){var s,n,r=0,a=[];if(k(e))for(s=e.length;r<s;r++)null!=(n=t(e[r],r,i))&&a.push(n);else for(r in e)null!=(n=t(e[r],r,i))&&a.push(n);return o(a)},guid:1,support:p}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=i[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var S=i.pop,A=i.sort,T=i.splice,D="[\\x20\\t\\r\\n\\f]",E=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");w.contains=function(e,t){var i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(e.contains?e.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))};var M=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function L(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}w.escapeSelector=function(e){return(e+"").replace(M,L)};var I=m,P=r;!function(){var t,s,o,r,l,c,u,d,f,g,m=P,v=w.expando,b=0,y=0,_=ee(),x=ee(),k=ee(),M=ee(),L=function(e,t){return e===t&&(l=!0),0},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+D+"*("+H+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+D+"*\\]",F=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",R=new RegExp(D+"+","g"),q=new RegExp("^"+D+"*,"+D+"*"),$=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),j=new RegExp(D+"|>"),z=new RegExp(F),B=new RegExp("^"+H+"$"),W={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,U=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,K=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),X=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},J=function(){le()},Z=de((function(e){return!0===e.disabled&&C(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(i=n.call(I.childNodes),I.childNodes),i[I.childNodes.length].nodeType}catch(t){m={apply:function(e,t){P.apply(e,n.call(t))},call:function(e){P.apply(e,n.call(arguments,1))}}}function Q(e,t,i,s){var n,o,r,a,l,h,u,g=t&&t.ownerDocument,b=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return i;if(!s&&(le(t),t=t||c,d)){if(11!==b&&(l=U.exec(e)))if(n=l[1]){if(9===b){if(!(r=t.getElementById(n)))return i;if(r.id===n)return m.call(i,r),i}else if(g&&(r=g.getElementById(n))&&Q.contains(t,r)&&r.id===n)return m.call(i,r),i}else{if(l[2])return m.apply(i,t.getElementsByTagName(e)),i;if((n=l[3])&&t.getElementsByClassName)return m.apply(i,t.getElementsByClassName(n)),i}if(!(M[e+" "]||f&&f.test(e))){if(u=e,g=t,1===b&&(j.test(e)||$.test(e))){for((g=G.test(e)&&ae(t.parentNode)||t)==t&&p.scope||((a=t.getAttribute("id"))?a=w.escapeSelector(a):t.setAttribute("id",a=v)),o=(h=he(e)).length;o--;)h[o]=(a?"#"+a:":scope")+" "+ue(h[o]);u=h.join(",")}try{return m.apply(i,g.querySelectorAll(u)),i}catch(t){M(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return be(e.replace(E,"$1"),t,i,s)}function ee(){var e=[];return function t(i,n){return e.push(i+" ")>s.cacheLength&&delete t[e.shift()],t[i+" "]=n}}function te(e){return e[v]=!0,e}function ie(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e){return function(t){return C(t,"input")&&t.type===e}}function ne(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Z(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function re(e){return te((function(t){return t=+t,te((function(i,s){for(var n,o=e([],i.length,t),r=o.length;r--;)i[n=o[r]]&&(i[n]=!(s[n]=i[n]))}))}))}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,i=e?e.ownerDocument||e:I;return i!=c&&9===i.nodeType&&i.documentElement&&(u=(c=i).documentElement,d=!w.isXMLDoc(c),g=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&I!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",J),p.getById=ie((function(e){return u.appendChild(e).id=w.expando,!c.getElementsByName||!c.getElementsByName(w.expando).length})),p.disconnectedMatch=ie((function(e){return g.call(e,"*")})),p.scope=ie((function(){return c.querySelectorAll(":scope")})),p.cssHas=ie((function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),p.getById?(s.filter.ID=function(e){var t=e.replace(K,X);return function(e){return e.getAttribute("id")===t}},s.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i=t.getElementById(e);return i?[i]:[]}}):(s.filter.ID=function(e){var t=e.replace(K,X);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},s.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i,s,n,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(n=t.getElementsByName(e),s=0;o=n[s++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),s.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},s.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},f=[],ie((function(e){var t;u.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+D+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+v+"-]").length||f.push("~="),e.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),p.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),L=function(e,t){if(e===t)return l=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===i?e===c||e.ownerDocument==I&&Q.contains(I,e)?-1:t===c||t.ownerDocument==I&&Q.contains(I,t)?1:r?a.call(r,e)-a.call(r,t):0:4&i?-1:1)}),c}for(t in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),d&&!M[t+" "]&&(!f||!f.test(t)))try{var i=g.call(e,t);if(i||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){M(t,!0)}return 0<Q(t,c,null,[e]).length},Q.contains=function(e,t){return(e.ownerDocument||e)!=c&&le(e),w.contains(e,t)},Q.attr=function(e,t){(e.ownerDocument||e)!=c&&le(e);var i=s.attrHandle[t.toLowerCase()],n=i&&h.call(s.attrHandle,t.toLowerCase())?i(e,t,!d):void 0;return void 0!==n?n:e.getAttribute(t)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,i=[],s=0,o=0;if(l=!p.sortStable,r=!p.sortStable&&n.call(e,0),A.call(e,L),l){for(;t=e[o++];)t===e[o]&&(s=i.push(o));for(;s--;)T.call(e,i[s],1)}return r=null,e},w.fn.uniqueSort=function(){return this.pushStack(w.uniqueSort(n.apply(this)))},(s=w.expr={cacheLength:50,createPseudo:te,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(K,X),e[3]=(e[3]||e[4]||e[5]||"").replace(K,X),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&z.test(i)&&(t=he(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(K,X).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&_(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(s){var n=Q.attr(s,e);return null==n?"!="===t:!t||(n+="","="===t?n===i:"!="===t?n!==i:"^="===t?i&&0===n.indexOf(i):"*="===t?i&&-1<n.indexOf(i):"$="===t?i&&n.slice(-i.length)===i:"~="===t?-1<(" "+n.replace(R," ")+" ").indexOf(i):"|="===t&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,s,n){var o="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===s&&0===n?function(e){return!!e.parentNode}:function(t,i,l){var c,h,u,d,p,f=o!==r?"nextSibling":"previousSibling",g=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!l&&!a,_=!1;if(g){if(o){for(;f;){for(u=t;u=u[f];)if(a?C(u,m):1===u.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[r?g.firstChild:g.lastChild],r&&y){for(_=(d=(c=(h=g[v]||(g[v]={}))[e]||[])[0]===b&&c[1])&&c[2],u=d&&g.childNodes[d];u=++d&&u&&u[f]||(_=d=0)||p.pop();)if(1===u.nodeType&&++_&&u===t){h[e]=[b,d,_];break}}else if(y&&(_=d=(c=(h=t[v]||(t[v]={}))[e]||[])[0]===b&&c[1]),!1===_)for(;(u=++d&&u&&u[f]||(_=d=0)||p.pop())&&(!(a?C(u,m):1===u.nodeType)||!++_||(y&&((h=u[v]||(u[v]={}))[e]=[b,_]),u!==t)););return(_-=n)===s||_%s==0&&0<=_/s}}},PSEUDO:function(e,t){var i,n=s.pseudos[e]||s.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return n[v]?n(t):1<n.length?(i=[e,e,"",t],s.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,i){for(var s,o=n(e,t),r=o.length;r--;)e[s=a.call(e,o[r])]=!(i[s]=o[r])})):function(e){return n(e,0,i)}):n}},pseudos:{not:te((function(e){var t=[],i=[],s=ve(e.replace(E,"$1"));return s[v]?te((function(e,t,i,n){for(var o,r=s(e,null,n,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(t[a]=o))})):function(e,n,o){return t[0]=e,s(t,null,o,i),t[0]=null,!i.pop()}})),has:te((function(e){return function(t){return 0<Q(e,t).length}})),contains:te((function(e){return e=e.replace(K,X),function(t){return-1<(t.textContent||w.text(t)).indexOf(e)}})),lang:te((function(e){return B.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(K,X).toLowerCase(),function(t){var i;do{if(i=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return c.activeElement}catch(e){}}()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!s.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){return C(e,"input")&&"button"===e.type||C(e,"button")},text:function(e){var t;return C(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:re((function(){return[0]})),last:re((function(e,t){return[t-1]})),eq:re((function(e,t,i){return[i<0?i+t:i]})),even:re((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:re((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:re((function(e,t,i){var s;for(s=i<0?i+t:t<i?t:i;0<=--s;)e.push(s);return e})),gt:re((function(e,t,i){for(var s=i<0?i+t:i;++s<t;)e.push(s);return e}))}}).pseudos.nth=s.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})s.pseudos[t]=se(t);for(t in{submit:!0,reset:!0})s.pseudos[t]=ne(t);function ce(){}function he(e,t){var i,n,o,r,a,l,c,h=x[e+" "];if(h)return t?0:h.slice(0);for(a=e,l=[],c=s.preFilter;a;){for(r in i&&!(n=q.exec(a))||(n&&(a=a.slice(n[0].length)||a),l.push(o=[])),i=!1,(n=$.exec(a))&&(i=n.shift(),o.push({value:i,type:n[0].replace(E," ")}),a=a.slice(i.length)),s.filter)!(n=W[r].exec(a))||c[r]&&!(n=c[r](n))||(i=n.shift(),o.push({value:i,type:r,matches:n}),a=a.slice(i.length));if(!i)break}return t?a.length:a?Q.error(e):x(e,l).slice(0)}function ue(e){for(var t=0,i=e.length,s="";t<i;t++)s+=e[t].value;return s}function de(e,t,i){var s=t.dir,n=t.next,o=n||s,r=i&&"parentNode"===o,a=y++;return t.first?function(t,i,n){for(;t=t[s];)if(1===t.nodeType||r)return e(t,i,n);return!1}:function(t,i,l){var c,h,u=[b,a];if(l){for(;t=t[s];)if((1===t.nodeType||r)&&e(t,i,l))return!0}else for(;t=t[s];)if(1===t.nodeType||r)if(h=t[v]||(t[v]={}),n&&C(t,n))t=t[s]||t;else{if((c=h[o])&&c[0]===b&&c[1]===a)return u[2]=c[2];if((h[o]=u)[2]=e(t,i,l))return!0}return!1}}function pe(e){return 1<e.length?function(t,i,s){for(var n=e.length;n--;)if(!e[n](t,i,s))return!1;return!0}:e[0]}function fe(e,t,i,s,n){for(var o,r=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(i&&!i(o,s,n)||(r.push(o),c&&t.push(a)));return r}function ge(e,t,i,s,n,o){return s&&!s[v]&&(s=ge(s)),n&&!n[v]&&(n=ge(n,o)),te((function(o,r,l,c){var h,u,d,p,f=[],g=[],v=r.length,b=o||function(e,t,i){for(var s=0,n=t.length;s<n;s++)Q(e,t[s],i);return i}(t||"*",l.nodeType?[l]:l,[]),y=!e||!o&&t?b:fe(b,f,e,l,c);if(i?i(y,p=n||(o?e:v||s)?[]:r,l,c):p=y,s)for(h=fe(p,g),s(h,[],l,c),u=h.length;u--;)(d=h[u])&&(p[g[u]]=!(y[g[u]]=d));if(o){if(n||e){if(n){for(h=[],u=p.length;u--;)(d=p[u])&&h.push(y[u]=d);n(null,p=[],h,c)}for(u=p.length;u--;)(d=p[u])&&-1<(h=n?a.call(o,d):f[u])&&(o[h]=!(r[h]=d))}}else p=fe(p===r?p.splice(v,p.length):p),n?n(null,r,p,c):m.apply(r,p)}))}function me(e){for(var t,i,n,r=e.length,l=s.relative[e[0].type],c=l||s.relative[" "],h=l?1:0,u=de((function(e){return e===t}),c,!0),d=de((function(e){return-1<a.call(t,e)}),c,!0),p=[function(e,i,s){var n=!l&&(s||i!=o)||((t=i).nodeType?u(e,i,s):d(e,i,s));return t=null,n}];h<r;h++)if(i=s.relative[e[h].type])p=[de(pe(p),i)];else{if((i=s.filter[e[h].type].apply(null,e[h].matches))[v]){for(n=++h;n<r&&!s.relative[e[n].type];n++);return ge(1<h&&pe(p),1<h&&ue(e.slice(0,h-1).concat({value:" "===e[h-2].type?"*":""})).replace(E,"$1"),i,h<n&&me(e.slice(h,n)),n<r&&me(e=e.slice(n)),n<r&&ue(e))}p.push(i)}return pe(p)}function ve(e,t){var i,n,r,a,l,h,u=[],p=[],f=k[e+" "];if(!f){for(t||(t=he(e)),i=t.length;i--;)(f=me(t[i]))[v]?u.push(f):p.push(f);(f=k(e,(n=p,a=0<(r=u).length,l=0<n.length,h=function(e,t,i,h,u){var p,f,g,v=0,y="0",_=e&&[],x=[],k=o,C=e||l&&s.find.TAG("*",u),A=b+=null==k?1:Math.random()||.1,T=C.length;for(u&&(o=t==c||t||u);y!==T&&null!=(p=C[y]);y++){if(l&&p){for(f=0,t||p.ownerDocument==c||(le(p),i=!d);g=n[f++];)if(g(p,t||c,i)){m.call(h,p);break}u&&(b=A)}a&&((p=!g&&p)&&v--,e&&_.push(p))}if(v+=y,a&&y!==v){for(f=0;g=r[f++];)g(_,x,t,i);if(e){if(0<v)for(;y--;)_[y]||x[y]||(x[y]=S.call(h));x=fe(x)}m.apply(h,x),u&&!e&&0<x.length&&1<v+r.length&&w.uniqueSort(h)}return u&&(b=A,o=k),_},a?te(h):h))).selector=e}return f}function be(e,t,i,n){var o,r,a,l,c,h="function"==typeof e&&e,u=!n&&he(e=h.selector||e);if(i=i||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(a=r[0]).type&&9===t.nodeType&&d&&s.relative[r[1].type]){if(!(t=(s.find.ID(a.matches[0].replace(K,X),t)||[])[0]))return i;h&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=W.needsContext.test(e)?0:r.length;o--&&(a=r[o],!s.relative[l=a.type]);)if((c=s.find[l])&&(n=c(a.matches[0].replace(K,X),G.test(r[0].type)&&ae(t.parentNode)||t))){if(r.splice(o,1),!(e=n.length&&ue(r)))return m.apply(i,n),i;break}}return(h||ve(e,u))(n,t,!d,i,!t||G.test(e)&&ae(t.parentNode)||t),i}ce.prototype=s.filters=s.pseudos,s.setFilters=new ce,p.sortStable=v.split("").sort(L).join("")===v,le(),p.sortDetached=ie((function(e){return 1&e.compareDocumentPosition(c.createElement("fieldset"))})),w.find=Q,w.expr[":"]=w.expr.pseudos,w.unique=w.uniqueSort,Q.compile=ve,Q.select=be,Q.setDocument=le,Q.tokenize=he,Q.escape=w.escapeSelector,Q.getText=w.text,Q.isXML=w.isXMLDoc,Q.selectors=w.expr,Q.support=w.support,Q.uniqueSort=w.uniqueSort}();var O=function(e,t,i){for(var s=[],n=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&w(e).is(i))break;s.push(e)}return s},H=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},N=w.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,t,i){return f(t)?w.grep(e,(function(e,s){return!!t.call(e,s,e)!==i})):t.nodeType?w.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?w.grep(e,(function(e){return-1<a.call(t,e)!==i})):w.filter(t,e,i)}w.filter=function(e,t,i){var s=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===s.nodeType?w.find.matchesSelector(s,e)?[s]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,i,s=this.length,n=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<s;t++)if(w.contains(n[t],this))return!0})));for(i=this.pushStack([]),t=0;t<s;t++)w.find(e,n[t],i);return 1<s?w.uniqueSort(i):i},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&N.test(e)?w(e):e||[],!1).length}});var q,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,i){var s,n;if(!e)return this;if(i=i||q,"string"==typeof e){if(!(s="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:$.exec(e))||!s[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(s[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(s[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),F.test(s[1])&&w.isPlainObject(t))for(s in t)f(this[s])?this[s](t[s]):this.attr(s,t[s]);return this}return(n=m.getElementById(s[2]))&&(this[0]=n,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==i.ready?i.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,q=w(m);var j=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};function B(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var i,s=0,n=this.length,o=[],r="string"!=typeof e&&w(e);if(!N.test(e))for(;s<n;s++)for(i=this[s];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&w.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(1<o.length?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(w(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return O(e,"parentNode")},parentsUntil:function(e,t,i){return O(e,"parentNode",i)},next:function(e){return B(e,"nextSibling")},prev:function(e){return B(e,"previousSibling")},nextAll:function(e){return O(e,"nextSibling")},prevAll:function(e){return O(e,"previousSibling")},nextUntil:function(e,t,i){return O(e,"nextSibling",i)},prevUntil:function(e,t,i){return O(e,"previousSibling",i)},siblings:function(e){return H((e.parentNode||{}).firstChild,e)},children:function(e){return H(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(i,s){var n=w.map(this,t,i);return"Until"!==e.slice(-5)&&(s=i),s&&"string"==typeof s&&(n=w.filter(s,n)),1<this.length&&(z[e]||w.uniqueSort(n),j.test(e)&&n.reverse()),this.pushStack(n)}}));var W=/[^\x20\t\r\n\f]+/g;function Y(e){return e}function V(e){throw e}function U(e,t,i,s){var n;try{e&&f(n=e.promise)?n.call(e).done(t).fail(i):e&&f(n=e.then)?n.call(e,t,i):t.apply(void 0,[e].slice(s))}catch(e){i.apply(void 0,[e])}}w.Callbacks=function(e){var t,i;e="string"==typeof e?(t=e,i={},w.each(t.match(W)||[],(function(e,t){i[t]=!0})),i):w.extend({},e);var s,n,o,r,a=[],l=[],c=-1,h=function(){for(r=r||e.once,o=s=!0;l.length;c=-1)for(n=l.shift();++c<a.length;)!1===a[c].apply(n[0],n[1])&&e.stopOnFalse&&(c=a.length,n=!1);e.memory||(n=!1),s=!1,r&&(a=n?[]:"")},u={add:function(){return a&&(n&&!s&&(c=a.length-1,l.push(n)),function t(i){w.each(i,(function(i,s){f(s)?e.unique&&u.has(s)||a.push(s):s&&s.length&&"string"!==y(s)&&t(s)}))}(arguments),n&&!s&&h()),this},remove:function(){return w.each(arguments,(function(e,t){for(var i;-1<(i=w.inArray(t,a,i));)a.splice(i,1),i<=c&&c--})),this},has:function(e){return e?-1<w.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return r=l=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=l=[],n||s||(a=n=""),this},locked:function(){return!!r},fireWith:function(e,t){return r||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),s||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},w.extend({Deferred:function(t){var i=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],s="pending",n={state:function(){return s},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return n.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(i,(function(i,s){var n=f(e[s[4]])&&e[s[4]];o[s[1]]((function(){var e=n&&n.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[s[0]+"With"](this,n?[e]:arguments)}))})),e=null})).promise()},then:function(t,s,n){var o=0;function r(t,i,s,n){return function(){var a=this,l=arguments,c=function(){var e,c;if(!(t<o)){if((e=s.apply(a,l))===i.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(c)?n?c.call(e,r(o,i,Y,n),r(o,i,V,n)):(o++,c.call(e,r(o,i,Y,n),r(o,i,V,n),r(o,i,Y,i.notifyWith))):(s!==Y&&(a=void 0,l=[e]),(n||i.resolveWith)(a,l))}},h=n?c:function(){try{c()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,h.error),o<=t+1&&(s!==V&&(a=void 0,l=[e]),i.rejectWith(a,l))}};t?h():(w.Deferred.getErrorHook?h.error=w.Deferred.getErrorHook():w.Deferred.getStackHook&&(h.error=w.Deferred.getStackHook()),e.setTimeout(h))}}return w.Deferred((function(e){i[0][3].add(r(0,e,f(n)?n:Y,e.notifyWith)),i[1][3].add(r(0,e,f(t)?t:Y)),i[2][3].add(r(0,e,f(s)?s:V))})).promise()},promise:function(e){return null!=e?w.extend(e,n):n}},o={};return w.each(i,(function(e,t){var r=t[2],a=t[5];n[t[1]]=r.add,a&&r.add((function(){s=a}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),r.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=r.fireWith})),n.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,i=t,s=Array(i),o=n.call(arguments),r=w.Deferred(),a=function(e){return function(i){s[e]=this,o[e]=1<arguments.length?n.call(arguments):i,--t||r.resolveWith(s,o)}};if(t<=1&&(U(e,r.done(a(i)).resolve,r.reject,!t),"pending"===r.state()||f(o[i]&&o[i].then)))return r.then();for(;i--;)U(o[i],a(i),r.reject);return r.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&G.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var K=w.Deferred();function X(){m.removeEventListener("DOMContentLoaded",X),e.removeEventListener("load",X),w.ready()}w.fn.ready=function(e){return K.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||K.resolveWith(m,[w])}}),w.ready.then=K.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",X),e.addEventListener("load",X));var J=function(e,t,i,s,n,o,r){var a=0,l=e.length,c=null==i;if("object"===y(i))for(a in n=!0,i)J(e,t,a,i[a],!0,o,r);else if(void 0!==s&&(n=!0,f(s)||(r=!0),c&&(r?(t.call(e,s),t=null):(c=t,t=function(e,t,i){return c.call(w(e),i)})),t))for(;a<l;a++)t(e[a],i,r?s:s.call(e[a],a,t(e[a],i)));return n?e:c?t.call(e):l?t(e[0],i):o},Z=/^-ms-/,Q=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(Z,"ms-").replace(Q,ee)}var ie=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function se(){this.expando=w.expando+se.uid++}se.uid=1,se.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var s,n=this.cache(e);if("string"==typeof t)n[te(t)]=i;else for(s in t)n[te(s)]=t[s];return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,s=e[this.expando];if(void 0!==s){if(void 0!==t){i=(t=Array.isArray(t)?t.map(te):(t=te(t))in s?[t]:t.match(W)||[]).length;for(;i--;)delete s[t[i]]}(void 0===t||w.isEmptyObject(s))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var ne=new se,oe=new se,re=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;function le(e,t,i){var s,n;if(void 0===i&&1===e.nodeType)if(s="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(s))){try{i="true"===(n=i)||"false"!==n&&("null"===n?null:n===+n+""?+n:re.test(n)?JSON.parse(n):n)}catch(e){}oe.set(e,t,i)}else i=void 0;return i}w.extend({hasData:function(e){return oe.hasData(e)||ne.hasData(e)},data:function(e,t,i){return oe.access(e,t,i)},removeData:function(e,t){oe.remove(e,t)},_data:function(e,t,i){return ne.access(e,t,i)},_removeData:function(e,t){ne.remove(e,t)}}),w.fn.extend({data:function(e,t){var i,s,n,o=this[0],r=o&&o.attributes;if(void 0===e){if(this.length&&(n=oe.get(o),1===o.nodeType&&!ne.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(s=r[i].name).indexOf("data-")&&(s=te(s.slice(5)),le(o,s,n[s]));ne.set(o,"hasDataAttrs",!0)}return n}return"object"==typeof e?this.each((function(){oe.set(this,e)})):J(this,(function(t){var i;if(o&&void 0===t)return void 0!==(i=oe.get(o,e))||void 0!==(i=le(o,e))?i:void 0;this.each((function(){oe.set(this,e,t)}))}),null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each((function(){oe.remove(this,e)}))}}),w.extend({queue:function(e,t,i){var s;if(e)return t=(t||"fx")+"queue",s=ne.get(e,t),i&&(!s||Array.isArray(i)?s=ne.access(e,t,w.makeArray(i)):s.push(i)),s||[]},dequeue:function(e,t){t=t||"fx";var i=w.queue(e,t),s=i.length,n=i.shift(),o=w._queueHooks(e,t);"inprogress"===n&&(n=i.shift(),s--),n&&("fx"===t&&i.unshift("inprogress"),delete o.stop,n.call(e,(function(){w.dequeue(e,t)}),o)),!s&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return ne.get(e,i)||ne.access(e,i,{empty:w.Callbacks("once memory").add((function(){ne.remove(e,[t+"queue",i])}))})}}),w.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?w.queue(this[0],e):void 0===t?this:this.each((function(){var i=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,s=1,n=w.Deferred(),o=this,r=this.length,a=function(){--s||n.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(i=ne.get(o[r],e+"queueHooks"))&&i.empty&&(s++,i.empty.add(a));return a(),n.promise(t)}});var ce=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+ce+")([a-z%]*)$","i"),ue=["Top","Right","Bottom","Left"],de=m.documentElement,pe=function(e){return w.contains(e.ownerDocument,e)},fe={composed:!0};de.getRootNode&&(pe=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(fe)===e.ownerDocument});var ge=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&pe(e)&&"none"===w.css(e,"display")};function me(e,t,i,s){var n,o,r=20,a=s?function(){return s.cur()}:function(){return w.css(e,t,"")},l=a(),c=i&&i[3]||(w.cssNumber[t]?"":"px"),h=e.nodeType&&(w.cssNumber[t]||"px"!==c&&+l)&&he.exec(w.css(e,t));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;r--;)w.style(e,t,h+c),(1-o)*(1-(o=a()/l||.5))<=0&&(r=0),h/=o;h*=2,w.style(e,t,h+c),i=i||[]}return i&&(h=+h||+l||0,n=i[1]?h+(i[1]+1)*i[2]:+i[2],s&&(s.unit=c,s.start=h,s.end=n)),n}var ve={};function be(e,t){for(var i,s,n,o,r,a,l,c=[],h=0,u=e.length;h<u;h++)(s=e[h]).style&&(i=s.style.display,t?("none"===i&&(c[h]=ne.get(s,"display")||null,c[h]||(s.style.display="")),""===s.style.display&&ge(s)&&(c[h]=(l=r=o=void 0,r=(n=s).ownerDocument,a=n.nodeName,(l=ve[a])||(o=r.body.appendChild(r.createElement(a)),l=w.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),ve[a]=l)))):"none"!==i&&(c[h]="none",ne.set(s,"display",i)));for(h=0;h<u;h++)null!=c[h]&&(e[h].style.display=c[h]);return e}w.fn.extend({show:function(){return be(this,!0)},hide:function(){return be(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ge(this)?w(this).show():w(this).hide()}))}});var ye,_e,xe=/^(?:checkbox|radio)$/i,we=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i;ye=m.createDocumentFragment().appendChild(m.createElement("div")),(_e=m.createElement("input")).setAttribute("type","radio"),_e.setAttribute("checked","checked"),_e.setAttribute("name","t"),ye.appendChild(_e),p.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue,ye.innerHTML="<option></option>",p.option=!!ye.lastChild;var Ce={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?w.merge([e],i):i}function Ae(e,t){for(var i=0,s=e.length;i<s;i++)ne.set(e[i],"globalEval",!t||ne.get(t[i],"globalEval"))}Ce.tbody=Ce.tfoot=Ce.colgroup=Ce.caption=Ce.thead,Ce.th=Ce.td,p.option||(Ce.optgroup=Ce.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function De(e,t,i,s,n){for(var o,r,a,l,c,h,u=t.createDocumentFragment(),d=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===y(o))w.merge(d,o.nodeType?[o]:o);else if(Te.test(o)){for(r=r||u.appendChild(t.createElement("div")),a=(we.exec(o)||["",""])[1].toLowerCase(),l=Ce[a]||Ce._default,r.innerHTML=l[1]+w.htmlPrefilter(o)+l[2],h=l[0];h--;)r=r.lastChild;w.merge(d,r.childNodes),(r=u.firstChild).textContent=""}else d.push(t.createTextNode(o));for(u.textContent="",p=0;o=d[p++];)if(s&&-1<w.inArray(o,s))n&&n.push(o);else if(c=pe(o),r=Se(u.appendChild(o),"script"),c&&Ae(r),i)for(h=0;o=r[h++];)ke.test(o.type||"")&&i.push(o);return u}var Ee=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Le(){return!1}function Ie(e,t,i,s,n,o){var r,a;if("object"==typeof t){for(a in"string"!=typeof i&&(s=s||i,i=void 0),t)Ie(e,a,i,s,t[a],o);return e}if(null==s&&null==n?(n=i,s=i=void 0):null==n&&("string"==typeof i?(n=s,s=void 0):(n=s,s=i,i=void 0)),!1===n)n=Le;else if(!n)return e;return 1===o&&(r=n,(n=function(e){return w().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=w.guid++)),e.each((function(){w.event.add(this,t,n,s,i)}))}function Pe(e,t,i){i?(ne.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var i,s=ne.get(this,t);if(1&e.isTrigger&&this[t]){if(s)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=n.call(arguments),ne.set(this,t,s),this[t](),i=ne.get(this,t),ne.set(this,t,!1),s!==i)return e.stopImmediatePropagation(),e.preventDefault(),i}else s&&(ne.set(this,t,w.event.trigger(s[0],s.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===ne.get(e,t)&&w.event.add(e,t,Me)}w.event={global:{},add:function(e,t,i,s,n){var o,r,a,l,c,h,u,d,p,f,g,m=ne.get(e);if(ie(e))for(i.handler&&(i=(o=i).handler,n=o.selector),n&&w.find.matchesSelector(de,n),i.guid||(i.guid=w.guid++),(l=m.events)||(l=m.events=Object.create(null)),(r=m.handle)||(r=m.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(W)||[""]).length;c--;)p=g=(a=Ee.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(u=w.event.special[p]||{},p=(n?u.delegateType:u.bindType)||p,u=w.event.special[p]||{},h=w.extend({type:p,origType:g,data:s,handler:i,guid:i.guid,selector:n,needsContext:n&&w.expr.match.needsContext.test(n),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,s,f,r)||e.addEventListener&&e.addEventListener(p,r)),u.add&&(u.add.call(e,h),h.handler.guid||(h.handler.guid=i.guid)),n?d.splice(d.delegateCount++,0,h):d.push(h),w.event.global[p]=!0)},remove:function(e,t,i,s,n){var o,r,a,l,c,h,u,d,p,f,g,m=ne.hasData(e)&&ne.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(W)||[""]).length;c--;)if(p=g=(a=Ee.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=w.event.special[p]||{},d=l[p=(s?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)h=d[o],!n&&g!==h.origType||i&&i.guid!==h.guid||a&&!a.test(h.namespace)||s&&s!==h.selector&&("**"!==s||!h.selector)||(d.splice(o,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(e,h));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,f,m.handle)||w.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)w.event.remove(e,p+t[c],i,s,!0);w.isEmptyObject(l)&&ne.remove(e,"handle events")}},dispatch:function(e){var t,i,s,n,o,r,a=new Array(arguments.length),l=w.event.fix(e),c=(ne.get(this,"events")||Object.create(null))[l.type]||[],h=w.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(r=w.event.handlers.call(this,l,c),t=0;(n=r[t++])&&!l.isPropagationStopped();)for(l.currentTarget=n.elem,i=0;(o=n.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(s=((w.event.special[o.origType]||{}).handle||o.handler).apply(n.elem,a))&&!1===(l.result=s)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,s,n,o,r,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],r={},i=0;i<l;i++)void 0===r[n=(s=t[i]).selector+" "]&&(r[n]=s.needsContext?-1<w(n,this).index(c):w.find(n,this,null,[c]).length),r[n]&&o.push(s);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return xe.test(t.type)&&t.click&&C(t,"input")&&Pe(t,"click",!0),!1},trigger:function(e){var t=this||e;return xe.test(t.type)&&t.click&&C(t,"input")&&Pe(t,"click"),!0},_default:function(e){var t=e.target;return xe.test(t.type)&&t.click&&C(t,"input")&&ne.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Le,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Le,isPropagationStopped:Le,isImmediatePropagationStopped:Le,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(e,t){function i(e){if(m.documentMode){var i=ne.get(this,"handle"),s=w.event.fix(e);s.type="focusin"===e.type?"focus":"blur",s.isSimulated=!0,i(e),s.target===s.currentTarget&&i(s)}else w.event.simulate(t,e.target,w.event.fix(e))}w.event.special[e]={setup:function(){var s;if(Pe(this,e,!0),!m.documentMode)return!1;(s=ne.get(this,t))||this.addEventListener(t,i),ne.set(this,t,(s||0)+1)},trigger:function(){return Pe(this,e),!0},teardown:function(){var e;if(!m.documentMode)return!1;(e=ne.get(this,t)-1)?ne.set(this,t,e):(this.removeEventListener(t,i),ne.remove(this,t))},_default:function(t){return ne.get(t.target,e)},delegateType:t},w.event.special[t]={setup:function(){var s=this.ownerDocument||this.document||this,n=m.documentMode?this:s,o=ne.get(n,t);o||(m.documentMode?this.addEventListener(t,i):s.addEventListener(e,i,!0)),ne.set(n,t,(o||0)+1)},teardown:function(){var s=this.ownerDocument||this.document||this,n=m.documentMode?this:s,o=ne.get(n,t)-1;o?ne.set(n,t,o):(m.documentMode?this.removeEventListener(t,i):s.removeEventListener(e,i,!0),ne.remove(n,t))}}})),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,s=e.relatedTarget,n=e.handleObj;return s&&(s===this||w.contains(this,s))||(e.type=n.origType,i=n.handler.apply(this,arguments),e.type=t),i}}})),w.fn.extend({on:function(e,t,i,s){return Ie(this,e,t,i,s)},one:function(e,t,i,s){return Ie(this,e,t,i,s,1)},off:function(e,t,i){var s,n;if(e&&e.preventDefault&&e.handleObj)return s=e.handleObj,w(e.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler),this;if("object"==typeof e){for(n in e)this.off(n,t,e[n]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=Le),this.each((function(){w.event.remove(this,e,i,t)}))}});var Oe=/<script|<style|<link/i,He=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function $e(e,t){var i,s,n,o,r,a;if(1===t.nodeType){if(ne.hasData(e)&&(a=ne.get(e).events))for(n in ne.remove(t,"handle events"),a)for(i=0,s=a[n].length;i<s;i++)w.event.add(t,n,a[n][i]);oe.hasData(e)&&(o=oe.access(e),r=w.extend({},o),oe.set(t,r))}}function je(e,t,i,s){t=o(t);var n,r,a,l,c,h,u=0,d=e.length,g=d-1,m=t[0],v=f(m);if(v||1<d&&"string"==typeof m&&!p.checkClone&&He.test(m))return e.each((function(n){var o=e.eq(n);v&&(t[0]=m.call(this,n,o.html())),je(o,t,i,s)}));if(d&&(r=(n=De(t,e[0].ownerDocument,!1,e,s)).firstChild,1===n.childNodes.length&&(n=r),r||s)){for(l=(a=w.map(Se(n,"script"),Re)).length;u<d;u++)c=n,u!==g&&(c=w.clone(c,!0,!0),l&&w.merge(a,Se(c,"script"))),i.call(e[u],c,u);if(l)for(h=a[a.length-1].ownerDocument,w.map(a,qe),u=0;u<l;u++)c=a[u],ke.test(c.type||"")&&!ne.access(c,"globalEval")&&w.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):b(c.textContent.replace(Ne,""),c,h))}return e}function ze(e,t,i){for(var s,n=t?w.filter(t,e):e,o=0;null!=(s=n[o]);o++)i||1!==s.nodeType||w.cleanData(Se(s)),s.parentNode&&(i&&pe(s)&&Ae(Se(s,"script")),s.parentNode.removeChild(s));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var s,n,o,r,a,l,c,h=e.cloneNode(!0),u=pe(e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(r=Se(h),s=0,n=(o=Se(e)).length;s<n;s++)a=o[s],"input"===(c=(l=r[s]).nodeName.toLowerCase())&&xe.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(i)for(o=o||Se(e),r=r||Se(h),s=0,n=o.length;s<n;s++)$e(o[s],r[s]);else $e(e,h);return 0<(r=Se(h,"script")).length&&Ae(r,!u&&Se(e,"script")),h},cleanData:function(e){for(var t,i,s,n=w.event.special,o=0;void 0!==(i=e[o]);o++)if(ie(i)){if(t=i[ne.expando]){if(t.events)for(s in t.events)n[s]?w.event.remove(i,s):w.removeEvent(i,s,t.handle);i[ne.expando]=void 0}i[oe.expando]&&(i[oe.expando]=void 0)}}}),w.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return J(this,(function(e){return void 0===e?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return je(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return je(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return je(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return je(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return J(this,(function(e){var t=this[0]||{},i=0,s=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!Ce[(we.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;i<s;i++)1===(t=this[i]||{}).nodeType&&(w.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return je(this,arguments,(function(t){var i=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(Se(this)),i&&i.replaceChild(t,this))}),e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){w.fn[e]=function(e){for(var i,s=[],n=w(e),o=n.length-1,a=0;a<=o;a++)i=a===o?this:this.clone(!0),w(n[a])[t](i),r.apply(s,i.get());return this.pushStack(s)}}));var Be=new RegExp("^("+ce+")(?!px)[a-z%]+$","i"),We=/^--/,Ye=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},Ve=function(e,t,i){var s,n,o={};for(n in t)o[n]=e.style[n],e.style[n]=t[n];for(n in s=i.call(e),t)e.style[n]=o[n];return s},Ue=new RegExp(ue.join("|"),"i");function Ge(e,t,i){var s,n,o,r,a=We.test(t),l=e.style;return(i=i||Ye(e))&&(r=i.getPropertyValue(t)||i[t],a&&r&&(r=r.replace(E,"$1")||void 0),""!==r||pe(e)||(r=w.style(e,t)),!p.pixelBoxStyles()&&Be.test(r)&&Ue.test(t)&&(s=l.width,n=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=i.width,l.width=s,l.minWidth=n,l.maxWidth=o)),void 0!==r?r+"":r}function Ke(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(h){c.style.cssText="position:absolute;
11left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",de.appendChild(c).appendChild(h);var t=e.getComputedStyle(h);s="1%"!==t.top,l=12===i(t.marginLeft),h.style.right="60%",r=36===i(t.right),n=36===i(t.width),h.style.position="absolute",o=12===i(h.offsetWidth/3),de.removeChild(c),h=null}}function i(e){return Math.round(parseFloat(e))}var s,n,o,r,a,l,c=m.createElement("div"),h=m.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===h.style.backgroundClip,w.extend(p,{boxSizingReliable:function(){return t(),n},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),s},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,i,s,n;return null==a&&(t=m.createElement("table"),i=m.createElement("tr"),s=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",i.style.cssText="box-sizing:content-box;border:1px solid",i.style.height="1px",s.style.height="9px",s.style.display="block",de.appendChild(t).appendChild(i).appendChild(s),n=e.getComputedStyle(i),a=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===i.offsetHeight,de.removeChild(t)),a}}
vendor: 37,335 bytes, line 11
11))}();var Xe=["Webkit","Moz","ms"],Je=m.createElement("div").style,Ze={};function Qe(e){return w.cssProps[e]||Ze[e]||(e in Je?e:Ze[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=Xe.length;i--;)if((e=Xe[i]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},it={letterSpacing:"0",fontWeight:"400"};function st(e,t,i){var s=he.exec(t);return s?Math.max(0,s[2]-(i||0))+(s[3]||"px"):t}function nt(e,t,i,s,n,o){var r="width"===t?1:0,a=0,l=0,c=0;if(i===(s?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(c+=w.css(e,i+ue[r],!0,n)),s?("content"===i&&(l-=w.css(e,"padding"+ue[r],!0,n)),"margin"!==i&&(l-=w.css(e,"border"+ue[r]+"Width",!0,n))):(l+=w.css(e,"padding"+ue[r],!0,n),"padding"!==i?l+=w.css(e,"border"+ue[r]+"Width",!0,n):a+=w.css(e,"border"+ue[r]+"Width",!0,n));return!s&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+c}function ot(e,t,i){var s=Ye(e),n=(!p.boxSizingReliable()||i)&&"border-box"===w.css(e,"boxSizing",!1,s),o=n,r=Ge(e,t,s),a="offset"+t[0].toUpperCase()+t.slice(1);if(Be.test(r)){if(!i)return r;r="auto"}return(!p.boxSizingReliable()&&n||!p.reliableTrDimensions()&&C(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===w.css(e,"display",!1,s))&&e.getClientRects().length&&(n="border-box"===w.css(e,"boxSizing",!1,s),(o=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+nt(e,t,i||(n?"border":"content"),o,s,r)+"px"}function rt(e,t,i,s,n){return new rt.prototype.init(e,t,i,s,n)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ge(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,s){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,o,r,a=te(t),l=We.test(t),c=e.style;if(l||(t=Qe(a)),r=w.cssHooks[t]||w.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(n=r.get(e,!1,s))?n:c[t];"string"==(o=typeof i)&&(n=he.exec(i))&&n[1]&&(i=me(e,t,n),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=n&&n[3]||(w.cssNumber[a]?"":"px")),p.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,s))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,s){var n,o,r,a=te(t);return We.test(t)||(t=Qe(a)),(r=w.cssHooks[t]||w.cssHooks[a])&&"get"in r&&(n=r.get(e,!0,i)),void 0===n&&(n=Ge(e,t,s)),"normal"===n&&t in it&&(n=it[t]),""===i||i?(o=parseFloat(n),!0===i||isFinite(o)?o||0:n):n}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,i,s){if(i)return!et.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,s):Ve(e,tt,(function(){return ot(e,t,s)}))},set:function(e,i,s){var n,o=Ye(e),r=!p.scrollboxSize()&&"absolute"===o.position,a=(r||s)&&"border-box"===w.css(e,"boxSizing",!1,o),l=s?nt(e,t,s,a,o):0;return a&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-nt(e,t,"border",!1,o)-.5)),l&&(n=he.exec(i))&&"px"!==(n[3]||"px")&&(e.style[t]=i,i=w.css(e,t)),st(0,i,l)}}})),w.cssHooks.marginLeft=Ke(p.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(i){for(var s=0,n={},o="string"==typeof i?i.split(" "):[i];s<4;s++)n[e+ue[s]+t]=o[s]||o[s-2]||o[0];return n}},"margin"!==e&&(w.cssHooks[e+t].set=st)})),w.fn.extend({css:function(e,t){return J(this,(function(e,t,i){var s,n,o={},r=0;if(Array.isArray(t)){for(s=Ye(e),n=t.length;r<n;r++)o[t[r]]=w.css(e,t[r],!1,s);return o}return void 0!==i?w.style(e,t,i):w.css(e,t)}),e,t,1<arguments.length)}}),((w.Tween=rt).prototype={constructor:rt,init:function(e,t,i,s,n,o){this.elem=e,this.prop=i,this.easing=n||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=s,this.unit=o||(w.cssNumber[i]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,i=rt.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):rt.propHooks._default.set(this),this}}).init.prototype=rt.prototype,(rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=rt.prototype.init,w.fx.step={};var at,lt,ct,ht,ut=/^(?:toggle|show|hide)$/,dt=/queueHooks$/;function pt(){lt&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(pt):e.setTimeout(pt,w.fx.interval),w.fx.tick())}function ft(){return e.setTimeout((function(){at=void 0})),at=Date.now()}function gt(e,t){var i,s=0,n={height:e};for(t=t?1:0;s<4;s+=2-t)n["margin"+(i=ue[s])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function mt(e,t,i){for(var s,n=(vt.tweeners[t]||[]).concat(vt.tweeners["*"]),o=0,r=n.length;o<r;o++)if(s=n[o].call(i,t,e))return s}function vt(e,t,i){var s,n,o=0,r=vt.prefilters.length,a=w.Deferred().always((function(){delete l.elem})),l=function(){if(n)return!1;for(var t=at||ft(),i=Math.max(0,c.startTime+c.duration-t),s=1-(i/c.duration||0),o=0,r=c.tweens.length;o<r;o++)c.tweens[o].run(s);return a.notifyWith(e,[c,s,i]),s<1&&r?i:(r||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},i),originalProperties:t,originalOptions:i,startTime:at||ft(),duration:i.duration,tweens:[],createTween:function(t,i){var s=w.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(s),s},stop:function(t){var i=0,s=t?c.tweens.length:0;if(n)return this;for(n=!0;i<s;i++)c.tweens[i].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),h=c.props;for(function(e,t){var i,s,n,o,r;for(i in e)if(n=t[s=te(i)],o=e[i],Array.isArray(o)&&(n=o[1],o=e[i]=o[0]),i!==s&&(e[s]=o,delete e[i]),(r=w.cssHooks[s])&&"expand"in r)for(i in o=r.expand(o),delete e[s],o)i in e||(e[i]=o[i],t[i]=n);else t[s]=n}(h,c.opts.specialEasing);o<r;o++)if(s=vt.prefilters[o].call(c,e,h,c.opts))return f(s.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=s.stop.bind(s)),s;return w.map(h,mt,c),f(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(vt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return me(i.elem,e,he.exec(t),i),i}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(W);for(var i,s=0,n=e.length;s<n;s++)i=e[s],vt.tweeners[i]=vt.tweeners[i]||[],vt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var s,n,o,r,a,l,c,h,u="width"in t||"height"in t,d=this,p={},f=e.style,g=e.nodeType&&ge(e),m=ne.get(e,"fxshow");for(s in i.queue||(null==(r=w._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,d.always((function(){d.always((function(){r.unqueued--,w.queue(e,"fx").length||r.empty.fire()}))}))),t)if(n=t[s],ut.test(n)){if(delete t[s],o=o||"toggle"===n,n===(g?"hide":"show")){if("show"!==n||!m||void 0===m[s])continue;g=!0}p[s]=m&&m[s]||w.style(e,s)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(p))for(s in u&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=ne.get(e,"display")),"none"===(h=w.css(e,"display"))&&(c?h=c:(be([e],!0),c=e.style.display||c,h=w.css(e,"display"),be([e]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===w.css(e,"float")&&(l||(d.done((function(){f.display=c})),null==c&&(h=f.display,c="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=ne.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&be([e],!0),d.done((function(){for(s in g||be([e]),ne.remove(e,"fxshow"),p)w.style(e,s,p[s])}))),l=mt(g?m[s]:0,s,d),s in m||(m[s]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?vt.prefilters.unshift(e):vt.prefilters.push(e)}}),w.speed=function(e,t,i){var s=e&&"object"==typeof e?w.extend({},e):{complete:i||!i&&t||f(e)&&e,duration:e,easing:i&&t||t&&!f(t)&&t};return w.fx.off?s.duration=0:"number"!=typeof s.duration&&(s.duration in w.fx.speeds?s.duration=w.fx.speeds[s.duration]:s.duration=w.fx.speeds._default),null!=s.queue&&!0!==s.queue||(s.queue="fx"),s.old=s.complete,s.complete=function(){f(s.old)&&s.old.call(this),s.queue&&w.dequeue(this,s.queue)},s},w.fn.extend({fadeTo:function(e,t,i,s){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,i,s)},animate:function(e,t,i,s){var n=w.isEmptyObject(e),o=w.speed(t,i,s),r=function(){var t=vt(this,w.extend({},e),o);(n||ne.get(this,"finish"))&&t.stop(!0)};return r.finish=r,n||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(e,t,i){var s=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,n=null!=e&&e+"queueHooks",o=w.timers,r=ne.get(this);if(n)r[n]&&r[n].stop&&s(r[n]);else for(n in r)r[n]&&r[n].stop&&dt.test(n)&&s(r[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(i),t=!1,o.splice(n,1));!t&&i||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=ne.get(this),s=i[e+"queue"],n=i[e+"queueHooks"],o=w.timers,r=s?s.length:0;for(i.finish=!0,w.queue(this,e,[]),n&&n.stop&&n.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<r;t++)s[t]&&s[t].finish&&s[t].finish.call(this);delete i.finish}))}}),w.each(["toggle","show","hide"],(function(e,t){var i=w.fn[t];w.fn[t]=function(e,s,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(t,!0),e,s,n)}})),w.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){w.fn[e]=function(e,i,s){return this.animate(t,e,i,s)}})),w.timers=[],w.fx.tick=function(){var e,t=0,i=w.timers;for(at=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||w.fx.stop(),at=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){lt||(lt=!0,pt())},w.fx.stop=function(){lt=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,i){return t=w.fx&&w.fx.speeds[t]||t,i=i||"fx",this.queue(i,(function(i,s){var n=e.setTimeout(i,t);s.stop=function(){e.clearTimeout(n)}}))},ct=m.createElement("input"),ht=m.createElement("select").appendChild(m.createElement("option")),ct.type="checkbox",p.checkOn=""!==ct.value,p.optSelected=ht.selected,(ct=m.createElement("input")).value="t",ct.type="radio",p.radioValue="t"===ct.value;var bt,yt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return J(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,i){var s,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,i):(1===o&&w.isXMLDoc(e)||(n=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?bt:void 0)),void 0!==i?null===i?void w.removeAttr(e,t):n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:(e.setAttribute(t,i+""),i):n&&"get"in n&&null!==(s=n.get(e,t))?s:null==(s=w.find.attr(e,t))?void 0:s)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&C(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,s=0,n=t&&t.match(W);if(n&&1===e.nodeType)for(;i=n[s++];)e.removeAttribute(i)}}),bt={set:function(e,t,i){return!1===t?w.removeAttr(e,i):e.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=yt[t]||w.find.attr;yt[t]=function(e,t,s){var n,o,r=t.toLowerCase();return s||(o=yt[r],yt[r]=n,n=null!=i(e,t,s)?r:null,yt[r]=o),n}}));var _t=/^(?:input|select|textarea|button)$/i,xt=/^(?:a|area)$/i;function wt(e){return(e.match(W)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(W)||[]}w.fn.extend({prop:function(e,t){return J(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,i){var s,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,n=w.propHooks[t]),void 0!==i?n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:e[t]=i:n&&"get"in n&&null!==(s=n.get(e,t))?s:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||xt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,i,s,n,o,r;return f(e)?this.each((function(t){w(this).addClass(e.call(this,t,kt(this)))})):(t=Ct(e)).length?this.each((function(){if(s=kt(this),i=1===this.nodeType&&" "+wt(s)+" "){for(o=0;o<t.length;o++)n=t[o],i.indexOf(" "+n+" ")<0&&(i+=n+" ");r=wt(i),s!==r&&this.setAttribute("class",r)}})):this},removeClass:function(e){var t,i,s,n,o,r;return f(e)?this.each((function(t){w(this).removeClass(e.call(this,t,kt(this)))})):arguments.length?(t=Ct(e)).length?this.each((function(){if(s=kt(this),i=1===this.nodeType&&" "+wt(s)+" "){for(o=0;o<t.length;o++)for(n=t[o];-1<i.indexOf(" "+n+" ");)i=i.replace(" "+n+" "," ");r=wt(i),s!==r&&this.setAttribute("class",r)}})):this:this.attr("class","")},toggleClass:function(e,t){var i,s,n,o,r=typeof e,a="string"===r||Array.isArray(e);return f(e)?this.each((function(i){w(this).toggleClass(e.call(this,i,kt(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(i=Ct(e),this.each((function(){if(a)for(o=w(this),n=0;n<i.length;n++)s=i[n],o.hasClass(s)?o.removeClass(s):o.addClass(s);else void 0!==e&&"boolean"!==r||((s=kt(this))&&ne.set(this,"__className__",s),this.setAttribute&&this.setAttribute("class",s||!1===e?"":ne.get(this,"__className__")||""))})))},hasClass:function(e){var t,i,s=0;for(t=" "+e+" ";i=this[s++];)if(1===i.nodeType&&-1<(" "+wt(kt(i))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;w.fn.extend({val:function(e){var t,i,s,n=this[0];return arguments.length?(s=f(e),this.each((function(i){var n;1===this.nodeType&&(null==(n=s?e.call(this,i,w(this).val()):e)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=w.map(n,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))}))):n?(t=w.valHooks[n.type]||w.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(St,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:wt(w.text(e))}},select:{get:function(e){var t,i,s,n=e.options,o=e.selectedIndex,r="select-one"===e.type,a=r?null:[],l=r?o+1:n.length;for(s=o<0?l:r?o:0;s<l;s++)if(((i=n[s]).selected||s===o)&&!i.disabled&&(!i.parentNode.disabled||!C(i.parentNode,"optgroup"))){if(t=w(i).val(),r)return t;a.push(t)}return a},set:function(e,t){for(var i,s,n=e.options,o=w.makeArray(t),r=n.length;r--;)((s=n[r]).selected=-1<w.inArray(w.valHooks.option.get(s),o))&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<w.inArray(w(e).val(),t)}},p.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var At=e.location,Tt={guid:Date.now()},Dt=/\?/;w.parseXML=function(t){var i,s;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return s=i&&i.getElementsByTagName("parsererror")[0],i&&!s||w.error("Invalid XML: "+(s?w.map(s.childNodes,(function(e){return e.textContent})).join("\n"):t)),i};var Et=/^(?:focusinfocus|focusoutblur)$/,Mt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,i,s,n){var o,r,a,l,c,u,d,p,v=[s||m],b=h.call(t,"type")?t.type:t,y=h.call(t,"namespace")?t.namespace.split("."):[];if(r=p=a=s=s||m,3!==s.nodeType&&8!==s.nodeType&&!Et.test(b+w.event.triggered)&&(-1<b.indexOf(".")&&(b=(y=b.split(".")).shift(),y.sort()),c=b.indexOf(":")<0&&"on"+b,(t=t[w.expando]?t:new w.Event(b,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=s),i=null==i?[t]:w.makeArray(i,[t]),d=w.event.special[b]||{},n||!d.trigger||!1!==d.trigger.apply(s,i))){if(!n&&!d.noBubble&&!g(s)){for(l=d.delegateType||b,Et.test(l+b)||(r=r.parentNode);r;r=r.parentNode)v.push(r),a=r;a===(s.ownerDocument||m)&&v.push(a.defaultView||a.parentWindow||e)}for(o=0;(r=v[o++])&&!t.isPropagationStopped();)p=r,t.type=1<o?l:d.bindType||b,(u=(ne.get(r,"events")||Object.create(null))[t.type]&&ne.get(r,"handle"))&&u.apply(r,i),(u=c&&r[c])&&u.apply&&ie(r)&&(t.result=u.apply(r,i),!1===t.result&&t.preventDefault());return t.type=b,n||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(v.pop(),i)||!ie(s)||c&&f(s[b])&&!g(s)&&((a=s[c])&&(s[c]=null),w.event.triggered=b,t.isPropagationStopped()&&p.addEventListener(b,Mt),s[b](),t.isPropagationStopped()&&p.removeEventListener(b,Mt),w.event.triggered=void 0,a&&(s[c]=a)),t.result}},simulate:function(e,t,i){var s=w.extend(new w.Event,i,{type:e,isSimulated:!0});w.event.trigger(s,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return w.event.trigger(e,t,i,!0)}});var Lt=/\[\]$/,It=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Ht(e,t,i,s){var n;if(Array.isArray(t))w.each(t,(function(t,n){i||Lt.test(e)?s(e,n):Ht(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,i,s)}));else if(i||"object"!==y(t))s(e,t);else for(n in t)Ht(e+"["+n+"]",t[n],i,s)}w.param=function(e,t){var i,s=[],n=function(e,t){var i=f(t)?t():t;s[s.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){n(this.name,this.value)}));else for(i in e)Ht(i,e[i],t,n);return s.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Ot.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!xe.test(e))})).map((function(e,t){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(e){return{name:t.name,value:e.replace(It,"\r\n")}})):{name:t.name,value:i.replace(It,"\r\n")}})).get()}});var Nt=/%20/g,Ft=/#.*$/,Rt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:GET|HEAD)$/,jt=/^\/\//,zt={},Bt={},Wt="*/".concat("*"),Yt=m.createElement("a");function Vt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var s,n=0,o=t.toLowerCase().match(W)||[];if(f(i))for(;s=o[n++];)"+"===s[0]?(s=s.slice(1)||"*",(e[s]=e[s]||[]).unshift(i)):(e[s]=e[s]||[]).push(i)}}function Ut(e,t,i,s){var n={},o=e===Bt;function r(a){var l;return n[a]=!0,w.each(e[a]||[],(function(e,a){var c=a(t,i,s);return"string"!=typeof c||o||n[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)})),l}return r(t.dataTypes[0])||!n["*"]&&r("*")}function Gt(e,t){var i,s,n=w.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:s||(s={}))[i]=t[i]);return s&&w.extend(!0,e,s),e}Yt.href=At.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,w.ajaxSettings),t):Gt(w.ajaxSettings,e)},ajaxPrefilter:Vt(zt),ajaxTransport:Vt(Bt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var s,n,o,r,a,l,c,h,u,d,p=w.ajaxSetup({},i),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?w(f):w.event,v=w.Deferred(),b=w.Callbacks("once memory"),y=p.statusCode||{},_={},x={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!r)for(r={};t=qt.exec(o);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||k;return s&&s.abort(t),S(0,t),this}};if(v.promise(C),p.url=((t||p.url||At.href)+"").replace(jt,At.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(W)||[""],null==p.crossDomain){l=m.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Yt.protocol+"//"+Yt.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),Ut(zt,p,i,C),c)return C;for(u in(h=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!$t.test(p.type),n=p.url.replace(Ft,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Nt,"+")):(d=p.url.slice(n.length),p.data&&(p.processData||"string"==typeof p.data)&&(n+=(Dt.test(n)?"&":"?")+p.data,delete p.data),!1===p.cache&&(n=n.replace(Rt,"$1"),d=(Dt.test(n)?"&":"?")+"_="+Tt.guid+++d),p.url=n+d),p.ifModified&&(w.lastModified[n]&&C.setRequestHeader("If-Modified-Since",w.lastModified[n]),w.etag[n]&&C.setRequestHeader("If-None-Match",w.etag[n])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Wt+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||c))return C.abort();if(k="abort",b.add(p.complete),C.done(p.success),C.fail(p.error),s=Ut(Bt,p,i,C)){if(C.readyState=1,h&&g.trigger("ajaxSend",[C,p]),c)return C;p.async&&0<p.timeout&&(a=e.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,s.send(_,S)}catch(t){if(c)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,i,r,l){var u,d,m,_,x,k=i;c||(c=!0,a&&e.clearTimeout(a),s=void 0,o=l||"",C.readyState=0<t?4:0,u=200<=t&&t<300||304===t,r&&(_=function(e,t,i){for(var s,n,o,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===s&&(s=e.mimeType||t.getResponseHeader("Content-Type"));if(s)for(n in a)if(a[n]&&a[n].test(s)){l.unshift(n);break}if(l[0]in i)o=l[0];else{for(n in i){if(!l[0]||e.converters[n+" "+l[0]]){o=n;break}r||(r=n)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,C,r)),!u&&-1<w.inArray("script",p.dataTypes)&&w.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(e,t,i,s){var n,o,r,a,l,c={},h=e.dataTypes.slice();if(h[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(o=h.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&s&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(n in c)if((a=n.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[n]:!0!==c[n]&&(o=a[0],h.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,_,C,u),u?(p.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(w.lastModified[n]=x),(x=C.getResponseHeader("etag"))&&(w.etag[n]=x)),204===t||"HEAD"===p.type?k="nocontent":304===t?k="notmodified":(k=_.state,d=_.data,u=!(m=_.error))):(m=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(i||k)+"",u?v.resolveWith(f,[d,k,C]):v.rejectWith(f,[C,k,m]),C.statusCode(y),y=void 0,h&&g.trigger(u?"ajaxSuccess":"ajaxError",[C,p,u?d:m]),b.fireWith(f,[C,k]),h&&(g.trigger("ajaxComplete",[C,p]),--w.active||w.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,i){return w.get(e,t,i,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,i,s,n){return f(i)&&(n=n||s,s=i,i=void 0),w.ajax(w.extend({url:e,type:t,dataType:n,data:i,success:s},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,i){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,i)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return f(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(i){w(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Xt=w.ajaxSettings.xhr();p.cors=!!Xt&&"withCredentials"in Xt,p.ajax=Xt=!!Xt,w.ajaxTransport((function(t){var i,s;if(p.cors||Xt&&!t.crossDomain)return{send:function(n,o){var r,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];for(r in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)a.setRequestHeader(r,n[r]);i=function(e){return function(){i&&(i=s=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Kt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),s=a.onerror=a.ontimeout=i("error"),void 0!==a.onabort?a.onabort=s:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout((function(){i&&s()}))},i=i("abort");try{a.send(t.hasContent&&t.data||null)}catch(n){if(i)throw n}},abort:function(){i&&i()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(s,n){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&n("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){i&&i()}}}));var Jt,Zt=[],Qt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Zt.pop()||w.expando+"_"+Tt.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(t,i,s){var n,o,r,a=!1!==t.jsonp&&(Qt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Qt,"$1"+n):!1!==t.jsonp&&(t.url+=(Dt.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return r||w.error(n+" was not called"),r[0]},t.dataTypes[0]="json",o=e[n],e[n]=function(){r=arguments},s.always((function(){void 0===o?w(e).removeProp(n):e[n]=o,t[n]&&(t.jsonpCallback=i.jsonpCallback,Zt.push(n)),r&&f(o)&&o(r[0]),r=o=void 0})),"script"})),p.createHTMLDocument=((Jt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),w.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(p.createHTMLDocument?((s=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(s)):t=m),o=!i&&[],(n=F.exec(e))?[t.createElement(n[1])]:(n=De([e],t,o),o&&o.length&&w(o).remove(),w.merge([],n.childNodes)));var s,n,o},w.fn.load=function(e,t,i){var s,n,o,r=this,a=e.indexOf(" ");return-1<a&&(s=wt(e.slice(a)),e=e.slice(0,a)),f(t)?(i=t,t=void 0):t&&"object"==typeof t&&(n="POST"),0<r.length&&w.ajax({url:e,type:n||"GET",dataType:"html",data:t}).done((function(e){o=arguments,r.html(s?w("<div>").append(w.parseHTML(e)).find(s):e)})).always(i&&function(e,t){r.each((function(){i.apply(this,o||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,i){var s,n,o,r,a,l,c=w.css(e,"position"),h=w(e),u={};"static"===c&&(e.style.position="relative"),a=h.offset(),o=w.css(e,"top"),l=w.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(r=(s=h.position()).top,n=s.left):(r=parseFloat(o)||0,n=parseFloat(l)||0),f(t)&&(t=t.call(e,i,w.extend({},a))),null!=t.top&&(u.top=t.top-a.top+r),null!=t.left&&(u.left=t.left-a.left+n),"using"in t?t.using.call(e,u):h.css(u)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,i,s=this[0];return s?s.getClientRects().length?(t=s.getBoundingClientRect(),i=s.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,s=this[0],n={top:0,left:0};if("fixed"===w.css(s,"position"))t=s.getBoundingClientRect();else{for(t=this.offset(),i=s.ownerDocument,e=s.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==s&&1===e.nodeType&&((n=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),n.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-n.top-w.css(s,"marginTop",!0),left:t.left-n.left-w.css(s,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||de}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;w.fn[e]=function(s){return J(this,(function(e,s,n){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===n)return o?o[t]:e[s];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):e[s]=n}),e,s,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=Ke(p.pixelPosition,(function(e,i){if(i)return i=Ge(e,t),Be.test(i)?w(e).position()[t]+"px":i}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,s){w.fn[s]=function(n,o){var r=arguments.length&&(i||"boolean"!=typeof n),a=i||(!0===n||!0===o?"margin":"border");return J(this,(function(t,i,n){var o;return g(t)?0===s.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===n?w.css(t,i,a):w.style(t,i,n,a)}),t,r?n:void 0,r)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,s){return this.on(t,e,i,s)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,i){return 0<arguments.length?this.on(t,null,e,i):this.trigger(t)}}));var ei=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var i,s,o;if("string"==typeof t&&(i=e[t],t=e,e=i),f(e))return s=n.call(arguments,2),(o=function(){return e.apply(t||this,s.concat(n.call(arguments)))}).guid=e.guid=e.guid||w.guid++,o},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=C,w.isFunction=f,w.isWindow=g,w.camelCase=te,w.type=y,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(ei,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var ti=e.jQuery,ii=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=ii),t&&e.jQuery===w&&(e.jQuery=ti),w},void 0===t&&(e.jQuery=e.$=w),w})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e){"use strict";e.ui=e.ui||{},e.ui.version="1.14.2";var t,i,s,n,o=0,r=Array.prototype.hasOwnProperty,a=Array.prototype.slice;l=e.cleanData,e.cleanData=function(t){var i,s,n;for(n=0;null!=(s=t[n]);n++)(i=e._data(s,"events"))&&i.remove&&e(s).triggerHandler("remove");l(t)},e.widget=function(t,i,s){var n,o,r,a={},l=t.split(".")[0];if("__proto__"===(t=t.split(".")[1])||"constructor"===t)return e.error("Invalid widget name: "+t);var c=l+"-"+t;return s||(s=i,i=e.Widget),Array.isArray(s)&&(s=e.extend.apply(null,[{}].concat(s))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},n=e[l][t],o=e[l][t]=function(e,t){if(!this||!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,n,{version:s.version,_proto:e.extend({},s),_childConstructors:[]}),(r=new i).options=e.widget.extend({},r.options),e.each(s,(function(e,t){a[e]="function"==typeof t?function(){function s(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,e=t.apply(this,arguments),this._super=i,this._superApply=o,e}}():t})),o.prototype=e.widget.extend(r,{widgetEventPrefix:n&&r.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:c}),n?(e.each(n._childConstructors,(function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)})),delete n._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o}
vendor: 15,913 bytes, line 11
11,e.widget.extend=function(t){for(var i,s,n=a.call(arguments,1),o=0,l=n.length;o<l;o++)for(i in n[o])s=n[o][i],r.call(n[o],i)&&void 0!==s&&(e.isPlainObject(s)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],s):e.widget.extend({},s):t[i]=s);return t},e.widget.bridge=function(t,i){var s=i.prototype.widgetFullName||t;e.fn[t]=function(n){var o="string"==typeof n,r=a.call(arguments,1),l=this;return o?this.length||"instance"!==n?this.each((function(){var i,o=e.data(this,s);return"instance"===n?(l=o,!1):o?"function"!=typeof o[n]||"_"===n.charAt(0)?e.error("no such method '"+n+"' for "+t+" widget instance"):(i=o[n].apply(o,r))!==o&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+n+"'")})):l=void 0:(r.length&&(n=e.widget.extend.apply(null,[n].concat(r))),this.each((function(){var t=e.data(this,s);t?(t.option(n||{}),t._init&&t._init()):e.data(this,s,new i(n,this))}))),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=o++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,i){t._removeClass(i,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var s,n,o,r=t;if(0==arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},t=(s=t.split(".")).shift(),s.length){for(o=0,n=r[t]=e.widget.extend({},this.options[t]);o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(t=s.pop(),1==arguments.length)return void 0===n[t]?null:n[t];n[t]=i}else{if(1==arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,s,n;for(i in t)n=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&n&&n.length&&(s=e(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var i=[],s=this;function n(n,o){var r,a;for(a=0;a<n.length;a++)r=s.classesElementLookup[n[a]]||e(),t.add?(function(){var i=[];t.element.each((function(t,n){e.map(s.classesElementLookup,(function(e){return e})).some((function(e){return e.is(n)}))||i.push(n)})),s._on(e(i),{remove:"_untrackClassesElement"})}(),r=e(e.uniqueSort(r.get().concat(t.element.get())))):r=e(r.not(t.element).get()),s.classesElementLookup[n[a]]=r,i.push(n[a]),o&&t.classes[n[a]]&&i.push(t.classes[n[a]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&n(t.keys.match(/\S+/g)||[],!0),t.extra&&n(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,(function(s,n){-1!==e.inArray(t.target,n)&&(i.classesElementLookup[s]=e(n.not(t.target).get()))})),this._off(e(t.target))},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof e||null===e,o={extra:n?t:i,keys:n?e:t,element:n?this.element:e,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(t,i,s){var n,o=this;"boolean"!=typeof t&&(s=i,i=t,t=!1),s?(i=n=e(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),e.each(s,(function(s,r){function a(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||e.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,h=l[2];h?n.on(c,h,a):i.on(c,a)}))},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var i=this;return setTimeout((function(){return("string"==typeof e?i[e]:e).apply(i,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,s){var n,o,r=this.options[t];if(s=s||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,i){e.Widget.prototype["_"+t]=function(s,n,o){"string"==typeof n&&(n={effect:n});var r,a=n?!0===n||"number"==typeof n?i:n.effect||i:t;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),r=!e.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),r&&e.effects&&e.effects.effect[a]?s[t](n):a!==t&&s[a]?s[a](n.duration,n.easing,o):s.queue((function(i){e(this)[t](),o&&o.call(s[0]),i()}))}})),e.widget,function(){var t,i=Math.max,s=Math.abs,n=/left|center|right/,o=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,c=e.fn.position;function h(e,t,i){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?i/100:1)]}function u(t,i){return parseInt(e.css(t,i),10)||0}function d(e){return null!=e&&e===e.window}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var i,s,n=e("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=n.children()[0];return e("body").append(n),i=o.offsetWidth,n.css("overflow","scroll"),i===(s=o.offsetWidth)&&(s=n[0].clientWidth),n.remove(),t=i-s},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),s=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),n="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth;return{width:"scroll"===s||"auto"===s&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:n?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),s=d(i[0]),n=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:s,isDocument:n,offset:s||n?{left:0,top:0}:e(t).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return c.apply(this,arguments);var l,p,f,g,m,v,b,y="string"==typeof(t=e.extend({},t)).of?e(document).find(t.of):e(t.of),_=e.position.getWithinInfo(t.within),x=e.position.getScrollInfo(_),w=(t.collision||"flip").split(" "),k={};return b=9===(l=y[0]).nodeType?{width:y.width(),height:y.height(),offset:{top:0,left:0}}:d(l)?{width:y.width(),height:y.height(),offset:{top:y.scrollTop(),left:y.scrollLeft()}}:l.preventDefault?{width:0,height:0,offset:{top:l.pageY,left:l.pageX}}:{width:y.outerWidth(),height:y.outerHeight(),offset:y.offset()},y[0].preventDefault&&(t.at="left top"),f=b.width,g=b.height,m=b.offset,v=e.extend({},m),e.each(["my","at"],(function(){var e,i,s=(t[this]||"").split(" ");1===s.length&&(s=n.test(s[0])?s.concat(["center"]):o.test(s[0])?["center"].concat(s):["center","center"]),s[0]=n.test(s[0])?s[0]:"center",s[1]=o.test(s[1])?s[1]:"center",e=r.exec(s[0]),i=r.exec(s[1]),k[this]=[e?e[0]:0,i?i[0]:0],t[this]=[a.exec(s[0])[0],a.exec(s[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?v.left+=f:"center"===t.at[0]&&(v.left+=f/2),"bottom"===t.at[1]?v.top+=g:"center"===t.at[1]&&(v.top+=g/2),p=h(k.at,f,g),v.left+=p[0],v.top+=p[1],this.each((function(){var n,o,r=e(this),a=r.outerWidth(),l=r.outerHeight(),c=u(this,"marginLeft"),d=u(this,"marginTop"),b=a+c+u(this,"marginRight")+x.width,C=l+d+u(this,"marginBottom")+x.height,S=e.extend({},v),A=h(k.my,r.outerWidth(),r.outerHeight());"right"===t.my[0]?S.left-=a:"center"===t.my[0]&&(S.left-=a/2),"bottom"===t.my[1]?S.top-=l:"center"===t.my[1]&&(S.top-=l/2),S.left+=A[0],S.top+=A[1],n={marginLeft:c,marginTop:d},e.each(["left","top"],(function(i,s){e.ui.position[w[i]]&&e.ui.position[w[i]][s](S,{targetWidth:f,targetHeight:g,elemWidth:a,elemHeight:l,collisionPosition:n,collisionWidth:b,collisionHeight:C,offset:[p[0]+A[0],p[1]+A[1]],my:t.my,at:t.at,within:_,elem:r})})),t.using&&(o=function(e){var n=m.left-S.left,o=n+f-a,c=m.top-S.top,h=c+g-l,u={target:{element:y,left:m.left,top:m.top,width:f,height:g},element:{element:r,left:S.left,top:S.top,width:a,height:l},horizontal:o<0?"left":n>0?"right":"center",vertical:h<0?"top":c>0?"bottom":"middle"};f<a&&s(n+o)<f&&(u.horizontal="center"),g<l&&s(c+h)<g&&(u.vertical="middle"),i(s(n),s(o))>i(s(c),s(h))?u.important="horizontal":u.important="vertical",t.using.call(this,e,u)}),r.offset(e.extend(S,{using:o}))}))},e.ui.position={fit:{left:function(e,t){var s,n=t.within,o=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,a=e.left-t.collisionPosition.marginLeft,l=o-a,c=a+t.collisionWidth-r-o;t.collisionWidth>r?l>0&&c<=0?(s=e.left+l+t.collisionWidth-r-o,e.left+=l-s):e.left=c>0&&l<=0?o:l>c?o+r-t.collisionWidth:o:l>0?e.left+=l:c>0?e.left-=c:e.left=i(e.left-a,e.left)},top:function(e,t){var s,n=t.within,o=n.isWindow?n.scrollTop:n.offset.top,r=t.within.height,a=e.top-t.collisionPosition.marginTop,l=o-a,c=a+t.collisionHeight-r-o;t.collisionHeight>r?l>0&&c<=0?(s=e.top+l+t.collisionHeight-r-o,e.top+=l-s):e.top=c>0&&l<=0?o:l>c?o+r-t.collisionHeight:o:l>0?e.top+=l:c>0?e.top-=c:e.top=i(e.top-a,e.top)}},flip:{left:function(e,t){var i,n,o=t.within,r=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=e.left-t.collisionPosition.marginLeft,h=c-l,u=c+t.collisionWidth-a-l,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];h<0?((i=e.left+d+p+f+t.collisionWidth-a-r)<0||i<s(h))&&(e.left+=d+p+f):u>0&&((n=e.left-t.collisionPosition.marginLeft+d+p+f-l)>0||s(n)<u)&&(e.left+=d+p+f)},top:function(e,t){var i,n,o=t.within,r=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=e.top-t.collisionPosition.marginTop,h=c-l,u=c+t.collisionHeight-a-l,d="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,p="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];h<0?((n=e.top+d+p+f+t.collisionHeight-a-r)<0||n<s(h))&&(e.top+=d+p+f):u>0&&((i=e.top-t.collisionPosition.marginTop+d+p+f-l)>0||s(i)<u)&&(e.top+=d+p+f)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position,e.extend(e.expr.pseudos,{data:e.expr.createPseudo((function(t){return function(i){return!!e.data(i,t)}}))}),e.fn.extend({disableSelection:(c="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(c+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var l,c,h,u={},d=u.toString,p=/^([\-+])=\s*(\d+\.?\d*)/,f=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),e[4]?(parseInt(e[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),e[4]?(parseInt(e[4]+e[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],g=e.Color=function(t,i,s,n){return new e.Color.fn.parse(t,i,s,n)},m={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},v={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},b=e.each;function y(e){return null==e?e+"":"object"==typeof e?u[d.call(e)]||"object":typeof e}function _(e,t,i){var s=v[t.type]||{};return null==e?i||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),s.mod?(e+s.mod)%s.mod:Math.min(s.max,Math.max(0,e)))}function x(t){var i=g(),s=i._rgba=[];return t=t.toLowerCase(),b(f,(function(e,n){var o,r=n.re.exec(t),a=r&&n.parse(r),l=n.space||"rgba";if(a)return o=i[l](a),i[m[l].cache]=o[m[l].cache],s=i._rgba=o._rgba,!1})),s.length?("0,0,0,0"===s.join()&&e.extend(s,h.transparent),i):h[t]}function w(e,t,i){return 6*(i=(i+1)%1)<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}b(m,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()})),g.fn=e.extend(g.prototype,{parse:function(t,i,s,n){if(void 0===t)return this._rgba=[null,null,null,null],this;(t.jquery||t.nodeType)&&(t=e(t).css(i),i=void 0);var o=this,r=y(t),a=this._rgba=[];return void 0!==i&&(t=[t,i,s,n],r="array"),"string"===r?this.parse(x(t)||h._default):"array"===r?(b(m.rgba.props,(function(e,i){a[i.idx]=_(t[i.idx],i)})),this):"object"===r?(b(m,t instanceof g?function(e,i){t[i.cache]&&(o[i.cache]=t[i.cache].slice())}:function(i,s){var n=s.cache;b(s.props,(function(e,i){if(!o[n]&&s.to){if("alpha"===e||null==t[e])return;o[n]=s.to(o._rgba)}o[n][i.idx]=_(t[e],i,!0)})),o[n]&&0>e.inArray(null,o[n].slice(0,3))&&(null==o[n][3]&&(o[n][3]=1),s.from&&(o._rgba=s.from(o[n])))}),this):void 0},is:function(e){var t=g(e),i=!0,s=this;return b(m,(function(e,n){var o,r=t[n.cache];return r&&(o=s[n.cache]||n.to&&n.to(s._rgba)||[],b(n.props,(function(e,t){if(null!=r[t.idx])return i=r[t.idx]===o[t.idx]}))),i})),i},_space:function(){var e=[],t=this;
11return b(m,(function(i,s){t[s.cache]&&e.push(i)})),e.pop()},transition:function(e,t){var i=g(e),s=i._space(),n=m[s],o=0===this.alpha()?g("transparent"):this,r=o[n.cache]||n.to(o._rgba),a=r.slice();return i=i[n.cache],b(n.props,(function(e,s){var n=s.idx,o=r[n],l=i[n],c=v[s.type]||{};null!==l&&(null===o?a[n]=l:(c.mod&&(l-o>c.mod/2?o+=c.mod:o-l>c.mod/2&&(o-=c.mod)),a[n]=_((l-o)*t+o,s)))})),this[s](a)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=g(t)._rgba;return g(e.map(i,(function(e,t){return(1-s)*n[t]+s*e})))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,(function(e,t){return null!=e?e:+(t>2)}));return 1===i[3]&&(i.pop(),t="rgb("),t+i.join(", ")+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),(function(e,t){return null==e&&(e=+(t>2)),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===i[3]&&(i.pop(),t="hsl("),t+i.join(", ")+")"},toHexString:function(t){var i=this._rgba.slice(),s=i.pop();return t&&i.push(~~(255*s)),"#"+e.map(i,(function(e){return("0"+(e||0).toString(16)).substr(-2)})).join("")},toString:function(){return this.toRgbaString()}}),g.fn.parse.prototype=g.fn,m.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/255,i=e[1]/255,s=e[2]/255,n=e[3],o=Math.max(t,i,s),r=Math.min(t,i,s),a=o-r,l=o+r,c=.5*l;return[Math.round(r===o?0:t===o?60*(i-s)/a+360:i===o?60*(s-t)/a+120:60*(t-i)/a+240)%360,0===a?0:c<=.5?a/l:a/(2-l),c,null==n?1:n]},m.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],s=e[2],n=e[3],o=s<=.5?s*(1+i):s+i-s*i,r=2*s-o;return[Math.round(255*w(r,o,t+1/3)),Math.round(255*w(r,o,t)),Math.round(255*w(r,o,t-1/3)),n]},b(m,(function(e,t){var i=t.props,s=t.cache,n=t.to,o=t.from;g.fn[e]=function(e){if(n&&!this[s]&&(this[s]=n(this._rgba)),void 0===e)return this[s].slice();var t,r=y(e),a="array"===r||"object"===r?e:arguments,l=this[s].slice();return b(i,(function(e,t){var i=a["object"===r?e:t.idx];null==i&&(i=l[t.idx]),l[t.idx]=_(i,t)})),o?((t=g(o(l)))[s]=l,t):g(l)},b(i,(function(t,i){!g.fn[t]&&(g.fn[t]=function(s){var n,o,r,a,l=y(s);return o=(n=this[a="alpha"===t?this._hsla?"hsla":"rgba":e]())[i.idx],"undefined"===l?o:("function"===l&&(l=y(s=s.call(this,o))),null==s&&i.empty?this:("string"===l&&(r=p.exec(s))&&(s=o+parseFloat(r[2])*("+"===r[1]?1:-1)),n[i.idx]=s,this[a](n)))})}))})),g.hook=function(t){b(t.split(" "),(function(t,i){e.cssHooks[i]={set:function(e,t){var s;"transparent"!==t&&("string"!==y(t)||(s=x(t)))&&(t=(t=g(s||t)).toRgbaString()),e.style[i]=t}},e.fx.step[i]=function(t){t.colorInit||(t.start=g(t.elem,i),t.end=g(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}}))},g.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return b(["Top","Right","Bottom","Left"],(function(i,s){t["border"+s+"Color"]=e})),t}},h=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"};var k="ui-effects-",C="ui-effects-style",S="ui-effects-animated";e.effects={effect:{}},function(){var t,i,s,n=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function r(e){var t,i,s=e.ownerDocument.defaultView.getComputedStyle(e),n={};for(i=s.length;i--;)"string"==typeof s[t=s[i]]&&(n[t.replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))]=s[t]);return n}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,i){e.fx.step[i]=function(t){("none"===t.end||t.setAttr)&&(1!==t.pos||t.setAttr)||(e.style(t.elem,i,t.end),t.setAttr=!0)}})),e.effects.animateClass=function(t,i,s,a){var l=e.speed(i,s,a);return this.queue((function(){var i,s=e(this),a=s.attr("class")||"",c=l.children?s.find("*").addBack():s;c=c.map((function(){return{el:e(this),start:r(this)}})),(i=function(){e.each(n,(function(e,i){t[i]&&s[i+"Class"](t[i])}))})(),c=c.map((function(){return this.end=r(this.el[0]),this.diff=function(t,i){var s,n,r={};for(s in i)n=i[s],t[s]===n||o[s]||!e.fx.step[s]&&isNaN(parseFloat(n))||
vendor: 5,381 bytes, line 11
11(r[s]=n);return r}(this.start,this.end),this})),s.attr("class",a),c=c.map((function(){var t=this,i=e.Deferred(),s=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,s),i.promise()})),e.when.apply(e,c.get()).done((function(){i(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),l.complete.call(s[0])}))}))},e.fn.extend({addClass:(t=e.fn.addClass,function(i,s,n,o){return s?e.effects.animateClass.call(this,{add:i},s,n,o):t.apply(this,arguments)}),removeClass:(i=e.fn.removeClass,function(t,s,n,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:t},s,n,o):i.apply(this,arguments)}),toggleClass:(s=e.fn.toggleClass,function(t,i,n,o,r){return"boolean"!=typeof i&&void 0!==i?e.effects.animateClass.call(this,{toggle:t},i,n,o):n?e.effects.animateClass.call(this,i?{add:t}:{remove:t},n,o,r):s.apply(this,arguments)}),switchClass:function(t,i,s,n,o){return e.effects.animateClass.call(this,{add:i,remove:t},s,n,o)}})}(),function(){var t,i,s,n;function o(t,i,s,n){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),"function"==typeof i&&(n=i,s=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(n=s,s=i,i={}),"function"==typeof s&&(n=s,s=null),i&&e.extend(t,i),s=s||i.duration,t.duration=e.fx.off?0:"number"==typeof s?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._default,t.complete=n||i.complete,t}function r(t){return!t||"number"==typeof t||!!e.fx.speeds[t]||"string"==typeof t&&!e.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function a(e,t){var i=t.outerWidth(),s=t.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,s,0];return{top:parseFloat(n[1])||0,right:"auto"===n[2]?i:parseFloat(n[2]),bottom:"auto"===n[3]?s:parseFloat(n[3]),left:parseFloat(n[4])||0}}e.expr&&e.expr.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=(t=e.expr.pseudos.animated,function(i){return!!e(i).data(S)||t(i)})),!0===e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var i=0,s=t.length;i<s;i++)null!==t[i]&&e.data(k+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,s=0,n=t.length;s<n;s++)null!==t[s]&&(i=e.data(k+t[s]),e.css(t[s],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},s=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(s),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),s=t.parent(),"static"===t.css("position")?(s.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(n),s.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"1.14.2",define:function(t,i,s){return s||(s=i,i="effect"),e.effects.effect[t]=s,e.effects.effect[t].mode=i,s},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(t||100)/100:1,n="vertical"!==i?(t||100)/100:1;return{height:e.height()*n,width:e.width()*s,outerHeight:e.outerHeight()*n,outerWidth:e.outerWidth()*s}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var s=e.queue();t>1&&s.splice.apply(s,[1,0].concat(s.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(C,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(C)||"",e.removeData(C)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,s;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createPlaceholder:function(t){var i,s=t.css("position"),n=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(s)&&(s="absolute",i=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(k+"placeholder",i)),t.css({position:s,left:n.left,top:n.top}),i},removePlaceholder:function(e){var t=k+"placeholder",i=e.data(t);
vendor: 4,441 bytes, line 11
11i&&(i.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,s,n){return n=n||{},e.each(i,(function(e,i){var o=t.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])})),n}}),e.fn.extend({effect:function(){var t=o.apply(this,arguments),i=e.effects.effect[t.effect],s=i.mode,n=t.queue,r=n||"fx",a=t.complete,l=t.mode,c=[],h=function(t){var i=e(this),n=e.effects.mode(i,l)||s;i.data(S,!0),c.push(n),s&&("show"===n||n===s&&"hide"===n)&&i.show(),s&&"none"===n||e.effects.saveStyle(i),"function"==typeof t&&t()};if(e.fx.off||!i)return l?this[l](t.duration,a):this.each((function(){a&&a.call(this)}));function u(n){var o=e(this);function r(){"function"==typeof a&&a.call(o[0]),"function"==typeof n&&n()}t.mode=c.shift(),!0!==e.uiBackCompat||s?"none"===t.mode?(o[l](),r()):i.call(o[0],t,(function(){o.removeData(S),e.effects.cleanUp(o),"hide"===t.mode&&o.hide(),r()})):(o.is(":hidden")?"hide"===l:"show"===l)?(o[l](),r()):i.call(o[0],t,r)}return!1===n?this.each(h).each(u):this.queue(r,h).queue(r,u)},show:(i=e.fn.show,function(e){if(r(e))return i.apply(this,arguments);var t=o.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:(s=e.fn.hide,function(e){if(r(e))return s.apply(this,arguments);var t=o.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(n=e.fn.toggle,function(e){if(r(e)||"boolean"==typeof e)return n.apply(this,arguments);var t=o.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(t){var i=this.css(t),s=[];return e.each(["em","px","%","pt"],(function(e,t){i.indexOf(t)>0&&(s=[parseFloat(i),t])})),s},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):a(this.css("clip"),this)},transfer:function(t,i){var s=e(this),n=e(t.to),o="fixed"===n.css("position"),r=e("body"),a=o?r.scrollTop():0,l=o?r.scrollLeft():0,c=n.offset(),h={top:c.top-a,left:c.left-l,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=e("<div class='ui-effects-transfer'></div>");d.appendTo("body").addClass(t.className).css({top:u.top-a,left:u.left-l,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(h,t.duration,t.easing,(function(){d.remove(),"function"==typeof i&&i()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=a(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),t={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,i){t[i]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?i(2*e)/2:1-i(-2*e+2)/2}}));e.effects;e.effects.define("blind","hide",(function(t,i){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=e(this),o=t.direction||"up",r=n.cssClip(),a={clip:e.extend({},r)},l=e.effects.createPlaceholder(n);a.clip[s[o][0]]=a.clip[s[o][1]],"show"===t.mode&&(n.cssClip(a.clip),l&&l.css(e.effects.clipToBox(a)),a.clip=r),l&&l.animate(e.effects.clipToBox(a),t.duration,t.easing),n.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("bounce",(function(t,i){var s,n,o,r=e(this),a=t.mode,l="hide"===a,c="show"===a,h=t.direction||"up",u=t.distance,d=t.times||5,p=2*d+(c||l?1:0),f=t.duration/p,g=t.easing,m="up"===h||"down"===h?"top":"left",v="up"===h||"left"===h,b=0,y=r.queue().length;for(e.effects.createPlaceholder(r),o=r.css(m),u||(u=r["top"===m?"outerHeight":"outerWidth"]()/3),c&&((n={opacity:1})[m]=o,r.css("opacity",0).css(m,v?-2*u:2*u).animate(n,f,g)),l&&(u/=Math.pow(2,d-1)),(n={})[m]=o;b<d;b++)(s={})[m]=(v?"-=":"+=")+u,r.animate(s,f,g).animate(n,f,g),u=l?2*u:u/2;l&&((s={opacity:0}
vendor: 4,910 bytes, line 11
11)[m]=(v?"-=":"+=")+u,r.animate(s,f,g)),r.queue(i),e.effects.unshift(r,y,p+1)})),e.effects.define("clip","hide",(function(t,i){var s,n={},o=e(this),r=t.direction||"vertical",a="both"===r,l=a||"horizontal"===r,c=a||"vertical"===r;s=o.cssClip(),n.clip={top:c?(s.bottom-s.top)/2:s.top,right:l?(s.right-s.left)/2:s.right,bottom:c?(s.bottom-s.top)/2:s.bottom,left:l?(s.right-s.left)/2:s.left},e.effects.createPlaceholder(o),"show"===t.mode&&(o.cssClip(n.clip),n.clip=s),o.animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("drop","hide",(function(t,i){var s,n=e(this),o=t.mode,r=t.direction||"left",a="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+=",c={opacity:0};e.effects.createPlaceholder(n),s=t.distance||n["top"===a?"outerHeight":"outerWidth"](!0)/2,c[a]=l+s,"show"===o&&(n.css(c),c[a]=("+="===l?"-=":"+=")+s,c.opacity=1),n.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("explode","hide",(function(t,i){var s,n,o,r,a,l,c=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=e(this),u="show"===t.mode,d=h.show().css("visibility","hidden").offset(),p=Math.ceil(h.outerWidth()/c),f=Math.ceil(h.outerHeight()/c),g=[];function m(){g.push(this),g.length===c*c&&(h.css({visibility:"visible"}),e(g).remove(),i())}for(s=0;s<c;s++)for(n=0,r=d.top+s*f,l=s-(c-1)/2;n<c;n++)o=d.left+n*p,a=n-(c-1)/2,h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*p,top:-s*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:o+(u?a*p:0),top:r+(u?l*f:0),opacity:+!u}).animate({left:o+(u?0:a*p),top:r+(u?0:l*f),opacity:+!!u},t.duration||500,t.easing,m)})),e.effects.define("fade","toggle",(function(t,i){var s="show"===t.mode;e(this).css("opacity",+!s).animate({opacity:+!!s},{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("fold","hide",(function(t,i){var s=e(this),n=t.mode,o=t.size||15,r=/([0-9]+)%/.exec(o),a=t.horizFirst?["right","bottom"]:["bottom","right"],l=t.duration/2,c=e.effects.createPlaceholder(s),h=s.cssClip(),u={clip:e.extend({},h)},d={clip:e.extend({},h)},p=[h[a[0]],h[a[1]]],f=s.queue().length;r&&(o=parseInt(r[1],10)/100*p[+("hide"!==n)]),u.clip[a[0]]=o,d.clip[a[0]]=o,d.clip[a[1]]=0,"show"===n&&(s.cssClip(d.clip),c&&c.css(e.effects.clipToBox(d)),d.clip=h),s.queue((function(i){c&&c.animate(e.effects.clipToBox(u),l,t.easing).animate(e.effects.clipToBox(d),l,t.easing),i()})).animate(u,l,t.easing).animate(d,l,t.easing).queue(i),e.effects.unshift(s,f,4)})),e.effects.define("highlight","show",(function(t,i){var s=e(this),n={backgroundColor:s.css("backgroundColor")};"hide"===t.mode&&(n.opacity=0),e.effects.saveStyle(s),s.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("size",(function(t,i){var s,n,o,r=e(this),a=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=t.mode,u="effect"!==h,d=t.scale||"both",p=t.origin||["middle","center"],f=r.css("position"),g=r.position(),m=e.effects.scaledDimensions(r),v=t.from||m,b=t.to||e.effects.scaledDimensions(r,0);e.effects.createPlaceholder(r),"show"===h&&(o=v,v=b,b=o),n={from:{y:v.height/m.height,x:v.width/m.width},to:{y:b.height/m.height,x:b.width/m.width}},("box"===d||"both"===d)&&(n.from.y!==n.to.y&&(v=e.effects.setTransition(r,l,n.from.y,v),b=e.effects.setTransition(r,l,n.to.y,b)),n.from.x!==n.to.x&&(v=e.effects.setTransition(r,c,n.from.x,v),b=e.effects.setTransition(r,c,n.to.x,b))),("content"===d||"both"===d)&&n.from.y!==n.to.y&&(v=e.effects.setTransition(r,a,n.from.y,v),b=e.effects.setTransition(r,a,n.to.y,b)),p&&(s=e.effects.getBaseline(p,m),v.top=(m.outerHeight-v.outerHeight)*s.y+g.top,v.left=(m.outerWidth-v.outerWidth)*s.x+g.left,b.top=(m.outerHeight-b.outerHeight)*s.y+g.top,b.left=(m.outerWidth-b.outerWidth)*s.x+g.left),delete v.outerHeight,delete v.outerWidth,r.css(v),("content"===d||"both"===d)&&(l=l.concat(["marginTop","marginBottom"]).concat(a),c=c.concat(["marginLeft","marginRight"]),r.find("*[width]").each((function(){var i=e(this),s=e.effects.scaledDimensions(i),o={height:s.height*n.from.y,width:s.width*n.from.x,outerHeight:s.outerHeight*n.from.y,outerWidth:s.outerWidth*n.from.x},r={height:s.height*n.to.y,width:s.width*n.to.x,outerHeight:s.height*n.to.y,outerWidth:s.width*n.to.x};n.from.y!==n.to.y&&(o=e.effects.setTransition(i,l,n.from.y,o),r=e.effects.setTransition(i,l,n.to.y,r)),n.from.x!==n.to.x&&(o=e.effects.setTransition(i,c,n.from.x,o),r=e.effects.setTransition(i,c,n.to.x,r)),u&&e.effects.saveStyle(i),i.css(o),i.animate(r,t.duration,t.easing,(function(){u&&e.effects.restoreStyle(i)}))}))),r.animate(b,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=r.offset();
vendor: 20,551 bytes, line 11
110===b.opacity&&r.css("opacity",v.opacity),u||(r.css("position","static"===f?"relative":f).offset(t),e.effects.saveStyle(r)),i()}})})),e.effects.define("scale",(function(t,i){var s=e(this),n=t.mode,o=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:100*("effect"===n)),r=e.extend(!0,{from:e.effects.scaledDimensions(s),to:e.effects.scaledDimensions(s,o,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0),e.effects.effect.size.call(this,r,i)})),e.effects.define("puff","hide",(function(t,i){var s=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,s,i)})),e.effects.define("pulsate","show",(function(t,i){var s=e(this),n=t.mode,o="show"===n,r=2*(t.times||5)+ +!(!o&&"hide"!==n),a=t.duration/r,l=0,c=1,h=s.queue().length;for((o||!s.is(":visible"))&&(s.css("opacity",0).show(),l=1);c<r;c++)s.animate({opacity:l},a,t.easing),l=1-l;s.animate({opacity:l},a,t.easing),s.queue(i),e.effects.unshift(s,h,r+1)})),e.effects.define("shake",(function(t,i){var s=1,n=e(this),o=t.direction||"left",r=t.distance||20,a=t.times||3,l=2*a+1,c=Math.round(t.duration/l),h="up"===o||"down"===o?"top":"left",u="up"===o||"left"===o,d={},p={},f={},g=n.queue().length;for(e.effects.createPlaceholder(n),d[h]=(u?"-=":"+=")+r,p[h]=(u?"+=":"-=")+2*r,f[h]=(u?"-=":"+=")+2*r,n.animate(d,c,t.easing);s<a;s++)n.animate(p,c,t.easing).animate(f,c,t.easing);n.animate(p,c,t.easing).animate(d,c/2,t.easing).queue(i),e.effects.unshift(n,g,l+1)})),e.effects.define("slide","show",(function(t,i){var s,n,o=e(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",h=t.distance||o["top"===c?"outerHeight":"outerWidth"](!0),u={};e.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[c],u[c]=("up"===l||"left"===l?-1:1)*h+n,u.clip=o.cssClip(),u.clip[r[l][1]]=u.clip[r[l][0]],"show"===a&&(o.cssClip(u.clip),o.css(c,u[c]),u.clip=s,u[c]=n),o.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),!0===e.uiBackCompat&&e.effects.define("transfer",(function(t,i){e(this).transfer(t,i)})),e.ui.focusable=function(t,i){var s,n,o,r,a,l=t.nodeName.toLowerCase();return"area"===l?(n=(s=t.parentNode).name,!!t.href&&!!n&&"map"===s.nodeName.toLowerCase()&&(o=e("img[usemap='#"+n+"']")).length>0&&o.is(":visible")):(/^(input|select|textarea|button|object)$/.test(l)?(r=!t.disabled)&&(a=e(t).closest("fieldset")[0])&&(r=!a.disabled):r="a"===l&&t.href||i,r&&e(t).is(":visible")&&"visible"===e(t).css("visibility"))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable,e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout((function(){var i=t.data("ui-form-reset-instances");e.each(i,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=e(this.element.prop("form")),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},e.escapeSelector||(e.escapeSelector=function(e){return CSS.escape(e+"")}),e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter((function(e){return e%2==0}))},odd:function(){return this.filter((function(e){return e%2==1}))}}),e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.fn.labels=function(){var e,t,i,s,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),(i=this.attr("id"))&&(n=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),t="label[for='"+CSS.escape(i)+"']",s=s.add(n.find(t).addBack(t))),this.pushStack(s)):this.pushStack([])},e.fn.scrollParent=function(t){var i=this.css("position"),s="absolute"===i,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var t=e(this);return(!s||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:e(this[0].ownerDocument||document)},e.extend(e.expr.pseudos,{tabbable:function(t){var i=e.attr(t,"tabindex"),s=null!=i;return(!s||i>=0)&&e.ui.focusable(t,s)}}),e.fn.extend({uniqueId:(i=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++i)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}}),e.widget("ui.accordion",{version:"1.14.2",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(e){return e.find("> li > :first-child").add(e.find("> :not(li)").filter((function(e){return e%2==0})))},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e()}},_createIcons:function(){var t,i,s=this.options.icons;s&&(t=e("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+s.header),t.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,s.header)._addClass(i,null,s.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"!==e?("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons())):this._activate(t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=e.ui.keyCode,s=this.headers.length,n=this.headers.index(t.target),o=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:o=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[s-1]}o&&(e(t.target).attr("tabIndex",-1),e(o).attr("tabIndex",0),e(o).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=e()):!1===t.active?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var t,i=this.options,s=i.heightStyle,n=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each((function(){var t=e(this),i=t.uniqueId().attr("id"),s=t.next(),n=s.uniqueId().attr("id");t.attr("aria-controls",n),s.attr("aria-labelledby",i)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(t=n.height(),this.element.siblings(":visible").each((function(){var i=e(this),s=i.css("position");"absolute"!==s&&"fixed"!==s&&(t-=i.outerHeight(!0))})),this.headers.each((function(){t-=e(this).outerHeight(!0)})),this.headers.next().each((function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))})).css("overflow","auto")):"auto"===s&&(t=0,this.headers.next().each((function(){var i=e(this).is(":visible");i||e(this).show(),t=Math.max(t,e(this).css("height","").height()),i||e(this).hide()})).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&e.each(t.split(" "),(function(e,t){i[t]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var i,s,n=this.options,o=this.active,r=e(t.currentTarget),a=r[0]===o[0],l=a&&n.collapsible,c=l?e():r.next(),h=o.next(),u={oldHeader:o,oldPanel:h,newHeader:l?e():r,newPanel:c};t.preventDefault(),(!a||n.collapsible)&&!1!==this._trigger("beforeActivate",t,u)&&(n.active=!l&&this.headers.index(r),this.active=a?e():r,this._toggle(u),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),n.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,n.icons.activeHeader)._addClass(i,null,n.icons.header)),a||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),n.icons&&(s=r.children(".ui-accordion-header-icon"),this._removeClass(s,null,n.icons.header)._addClass(s,null,n.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var i=t.newPanel,s=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,t):(s.hide(),i.show(),this._toggleComplete(t)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter((function(){return 0===parseInt(e(this).attr("tabIndex"),10)})).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,t,i){var s,n,o,r=this,a=0,l=e.css("box-sizing"),c=e.length&&(!t.length||e.index()<t.index()),h=this.options.animate||{},u=c&&h.down||h,d=function(){r._toggleComplete(i)};return"number"==typeof u&&(o=u),"string"==typeof u&&(n=u),n=n||u.easing||h.easing,o=o||u.duration||h.duration,t.length?e.length?(s=e.show().outerHeight(),t.animate(this.hideProps,{duration:o,easing:n,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:o,easing:n,complete:d,step:function(e,i){i.now=Math.round(e),"height"!==i.prop?"content-box"===l&&(a+=i.now):"content"!==r.options.heightStyle&&(i.now=Math.round(s-t.outerHeight()-a),a=0)}})):t.animate(this.hideProps,o,n,d):e.animate(this.showProps,o,n,d)},_toggleComplete:function(e){var t=e.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),this._trigger("activate",null,e)}}),e.widget("ui.menu",{version:"1.14.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var i=e(t.target),s=e(this.document[0].activeElement);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(t){this._delay((function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var i=e(t.target).closest(".ui-menu-item"),s=e(t.currentTarget);i[0]===s[0]&&!s.is(".ui-state-active")&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,s))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each((function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()}))},_keydown:function(t){var i,s,n,o,r=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,s=this.previousFilter||"",o=!1,n=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),(i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(n=String.fromCharCode(t.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(t,i),this.previousFilter=n,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i,s,n,o=this,r=this.options.icons.submenu,a=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=a.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var t=e(this),i=t.prev(),s=e("<span>").data("ui-menu-submenu-caret",!0);o._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),t.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(t=a.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var t=e(this);o._isDivider(t)&&o._addClass(t,"ui-menu-divider","ui-widget-content")})),n=(s=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(s,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,s,n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,n,o,r,a;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=t.outerHeight(),n<0?this.activeMenu.scrollTop(o+n):n+a>r&&this.activeMenu.scrollTop(o+n-r+a))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(e)}),this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay((function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s}),i?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
11se")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay((function(){this.focus(e,t)})))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),s&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(t){var i,s,n;this.active?!this.isLastItem()&&(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-s-n<0})),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var i,s,n;this.active?!this.isFirstItem()&&(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-s+n>0})),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=RegExp("^"+t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return i.test(String.prototype.trim.call(e(this).children(".ui-menu-item-wrapper").text()))}))}}),e.widget("ui.autocomplete",{version:"1.14.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var t,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,r="input"===n;this.isMultiLine=o||!r&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[o||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return t=!0,s=!0,void(i=!0);t=!1,s=!1,i=!1;var o=e.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:t=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:t=!0,this._move("nextPage",n);break;case o.UP:t=!0,this._keyEvent("previous",n);break;case o.DOWN:t=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(t=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(t)return t=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault());if(!i){var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(e){if(s)return s=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 16,343 bytes, line 11
11)},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,i){var s,n;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){e(t.target).trigger(t.originalEvent)}));n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),(s=i.item.attr("aria-label")||n.value)&&String.prototype.trim.call(s).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(e("<div>").text(s))}),100))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=s),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||e.contains(i,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,s=this;Array.isArray(this.options.source)?(t=this.options.source,this.source=function(i,s){s(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,n){s.xhr&&s.xhr.abort(),s.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){n(e)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay((function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),s=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||i||s)||(this.selectedItem=null,this.search(null,e))}),this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,(function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})}))},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var s=this;e.each(i,(function(e,i){s._renderItemData(t,i)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<div>").text(i.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,(function(e){return s.test(e.label||e.value||e)}))}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),!this.options.disabled&&!this.cancelSearch&&(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(e("<div>").text(i))}),100))}}),e.ui.autocomplete;var A=/ui-corner-([a-z]){2,6}/g;function T(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=D(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function D(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,(function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,E)}function E(){e.datepicker._isDisabledDatepicker(n.inline?n.dpDiv.parent()[0]:n.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function M(t,i){for(var s in e.extend(t,i),i)null==i[s]&&(t[s]=i[s]);return t}e.widget("ui.controlgroup",{version:"1.14.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,i=[];e.each(this.options.items,(function(s,n){var o,r={};if(n){if("controlgroupLabel"===s)return(o=t.element.find(n)).each((function(){var t=e(this);!t.children(".ui-controlgroup-label-contents").length&&t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),t._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(o.get()));e.fn[s]&&(r=t["_"+s+"Options"]?t["_"+s+"Options"]("middle"):{classes:{}},t.element.find(n).each((function(){var n=e(this),o=n[s]("instance"),a=e.widget.extend({},r);if("button"!==s||!n.parent(".ui-spinner").length){o||(o=n[s]()[s]("instance")),o&&(a.classes=t._resolveClassesValues(a.classes,o)),n[s](a);var l=n[s]("widget");e.data(l[0],"ui-controlgroup-data",o||n[s]("instance")),i.push(l[0])}})))}})),this.childWidgets=e(e.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each((function(){var i=e(this).data("ui-controlgroup-data");i&&i[t]&&i[t]()}))},_updateCornerClass:function(e,t){var i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(e,null,i)},_buildSimpleOptions:function(e,t){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[e],s},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t="vertical"===this.options.direction;return{width:!!t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(t,i){var s={};return e.each(t,(function(e){var n=i.options.classes[e]||"";n=String.prototype.trim.call(n.replace(A,"")),s[e]=(n+" "+t[e]).replace(/\s+/g," ")})),s},_setOption:function(e,t){"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"!==e?this.refresh():this._callChildMethod(t?"disable":"enable")},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),t=this.childWidgets,this.options.onlyVisible&&(t=t.filter(":visible")),t.length&&(e.each(["first","last"],(function(e,s){var n=t[s]().data("ui-controlgroup-data");if(n&&i["_"+n.widgetName+"Options"]){var o=i["_"+n.widgetName+"Options"](1===t.length?"only":s);o.classes=i._resolveClassesValues(o.classes,n),n.element[n.widgetName](o)}else i._updateCornerClass(t[s](),s)})),this._callChildMethod("refresh"))}}),e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.14.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i,s,n=this._super()||{};return this._readType(),i=this.element.labels(),this.label=e(i[i.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",(s=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=s.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(n.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(n.disabled=t),n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,i="input[name='"+CSS.escape(t)+"']";return t?(this.form.length?e(this.form[0].elements).filter(i):e(i).filter((function(){return 0===e(e(this).prop("form")).length}))).not(this.element):e([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each((function(){var t=e(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){if("label"!==e||t){if(this._super(e,t),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t);this.refresh()}},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>
11"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]),e.ui.checkboxradio,e.widget("ui.button",{version:"1.14.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var s="iconPosition"!==t,n=s?this.options.iconPosition:i,o="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,i),this._attachIcon(n),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 7,044 bytes, line 11
11pace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=void 0===e.showLabel?this.options.showLabel:e.showLabel,i=void 0===e.icon?this.options.icon:e.icon;t||i||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.trigger("blur"))},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!0===e.uiBackCompat&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){"text"!==e?("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",t)}}),e.fn.button=(s=e.fn.button,function(t){var i="string"==typeof t,n=Array.prototype.slice.call(arguments,1),o=this;return i?this.length||"instance"!==t?this.each((function(){var i,s=e(this).attr("type"),r=e.data(this,"ui-"+("checkbox"!==s&&"radio"!==s?"button":"checkboxradio"));return"instance"===t?(o=r,!1):r?"function"!=typeof r[t]||"_"===t.charAt(0)?e.error("no such method '"+t+"' for button widget instance"):(i=r[t].apply(r,n))!==r&&void 0!==i?(o=i&&i.jquery?o.pushStack(i.get()):i,!1):void 0:e.error("cannot call methods on button prior to initialization; attempted to call method '"+t+"'")})):o=void 0:(n.length&&(t=e.widget.extend.apply(null,[t].concat(n))),this.each((function(){var i=e(this).attr("type"),n="checkbox"!==i&&"radio"!==i?"button":"checkboxradio",o=e.data(this,"ui-"+n);if(o)o.option(t||{}),o._init&&o._init();else{if("button"===n)return void s.call(e(this),t);e(this).checkboxradio(e.extend({icon:!1},t))}}))),o}),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),e.ui.button,e.extend(e.ui,{datepicker:{version:"1.14.2"}}),e.extend(T.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return M(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var s,n,o;n="div"===(s=t.nodeName.toLowerCase())||"span"===s,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(o=this._newInst(e(t),n)).settings=e.extend({},i||{}),"input"===s?this._connectDatepicker(t,o):n&&this._inlineDatepicker(t,o)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?D(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var s=e(t);i.append=e([]),i.trigger=e([]),!s.hasClass(this.markerClassName)&&(this._attachments(s,i),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var s,n,o,r=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span>").addClass(this._appendClass).text(r),t[a?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),("focus"===(s=this._get(i,"showOn"))||"both"===s)&&t.on("focus",this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),o?i.trigger.html(e("<img>").attr({src:o,alt:n,title:n})):i.trigger.text(n)),t[a?"before":"after"](i.trigger),i.trigger.on("click",(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():(e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]&&e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])),!1})))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,s,n,o=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(n=0,i=0,s=0;n<e.length;n++)e[n].length>i&&(i=e[n].length,s=n);return s},o.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length)}},_inlineDatepicker:function(t,i){var s=e(t);!s.hasClass(this.markerClassName)&&(s.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,s,n,o){var r,a,l,c,h,u=this._dialogInst;return u||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>
11"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",u)),M(u.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(u,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(a=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+c,l/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",u),this},_destroyDatepicker:function(t){var i,s=e(t),o=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===i?(o.append.remove(),o.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty(),e.datepicker._hideDatepicker(),n===o&&(n=null,this._curInst=null))},_enableDatepicker:function(t){var i,s,n=e(t),o=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,o.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&((s=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})))},_disableDatepicker:function(t){var i,s,n=e(t),o=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,o.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&((s=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,s){var n,o,r,a,l=this._getInst(t);if(2==arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):l?"all"===i?e.extend({},l.settings):this._get(l,i):null;n=i||{},"string"==typeof i&&((n={})[i]=s),l&&(this._curInst===l&&this._hideDatepicker(),o=this._getDateDatepicker(t,!0),r=this._getMinMaxDate(l,"min"),a=this._getMinMaxDate(l,"max"),M(l.settings,n),null!==r&&void 0!==n.dateFormat&&void 0===n.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==a&&void 0!==n.dateFormat&&void 0===n.maxDate&&(l.settings.maxDate=this._formatDate(l,a)),"disabled"in n&&(n.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,o),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,s,n,o=e.datepicker._getInst(t.target),r=!0,a=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(n=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",o.dpDiv))[0]&&e.datepicker._selectDay(t.target,o.selectedMonth,o.selectedYear,n[0]),(i=e.datepicker._get(o,"onSelect"))?(s=e.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[s,o])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,a?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,a?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,s,n=e.datepicker._getInst(t.target);if(e.datepicker._get(n,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(n,"dateFormat")),s=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||s<" "||!i||i.indexOf(s)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(t){var i,s,n,o,r,a,l;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(n=(s=e.datepicker._get(i,"beforeShow"))?s.apply(t,[t,i]):{})&&(M(i.settings,n),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),o=!1,e(t).parents().each((function(){return!(o|="fixed"===e(this).css("position"))})),r={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),r=e.datepicker._checkOffset(i,r,o),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:r.left+"px",to
vendor: 5,013 bytes, line 11
11p:r.top+"px"}),i.inline||(a=e.datepicker._get(i,"showAnim"),l=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&!isNaN(i=parseInt(e.css("zIndex"),10))&&0!==i)return i;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[a]?i.dpDiv.show(a,e.datepicker._get(i,"showOptions"),l):i.dpDiv[a||"show"](a?l:null),e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),e.datepicker._curInst=i)))},_updateDatepicker:function(t){this.maxRows=4,n=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i,s=this._getNumberOfMonths(t),o=s[1],r=t.dpDiv.find("."+this._dayOverClass+" a"),a=e.datepicker._get(t,"onUpdateDatepicker");r.length>0&&E.apply(r.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&t.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),t.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(i=t.yearshtml,setTimeout((function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),i=t.yearshtml=null}),0)),a&&a.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")},_checkOffset:function(t,i,s){var n=t.dpDiv.outerWidth(),o=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(s?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(s?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?n-r:0,i.left-=s&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=s&&i.top===t.input.offset().top+a?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>l&&l>n?Math.abs(i.left+n-l):0),i.top-=Math.min(i.top,i.top+o>c&&c>o?Math.abs(o+a):0),i},_findPos:function(t){for(var i,s=this._getInst(t),n=this._get(s,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[n?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,s,n,o,r=this._curInst;r&&(!t||r===e.data(t,"datepicker"))&&this._datepickerShowing&&(i=this._get(r,"showAnim"),s=this._get(r,"duration"),n=function(){e.datepicker._tidyDialog(r)},e.effects&&e.effects.effect[i]?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),s,n):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,(o=this._get(r,"onClose"))&&o.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),s=e.datepicker._getInst(i[0]);(i[0].id!==e.datepicker._mainDivId&&0===i.parents("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassName)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)||i.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==s)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,s){var n=e(t),o=this._getInst(n[0]);!this._isDisabledDatepicker(n[0])&&(this._adjustInstDate(o,i,s),this._updateDatepicker(o))},_gotoToday:function(t){var i,s=e(t),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(n.selectedDay=(i=new Date).getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(t,i,s){var n=e(t),o=this._getInst(n[0]);o["selected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(t,i,s,n){var o,r=e(t);!e(n).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(r[0])&&((o=this._getInst(r[0])).selectedDay=o.currentDay=parseInt(e("a",n).attr("data-date")),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=s,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var s,n=e(t),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),(s=this._get(o,"onSelect"))?s.apply(o.input?o.input[0]:null,[
vendor: 12,635 bytes, line 11
11i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,s,n,o=this._get(t,"altField");o&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),s=this._getDate(t),n=this.formatDate(i,s,this._getFormatConfig(t)),e(document).find(o).val(n))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,s){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var n,o,r,a,l=0,c=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),u=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,d=(s?s.dayNames:null)||this._defaults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,b=-1,y=!1,_=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},x=function(e){var t=_(e),s="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,n=RegExp("^\\d{"+("y"===e?s:1)+","+s+"}"),o=i.substring(l).match(n);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},w=function(t,s,n){var o=-1,r=e.map(_(t)?n:s,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)}));if(e.each(r,(function(e,t){var s=t[1];if(i.substr(l,s.length).toLowerCase()===s.toLowerCase())return o=t[0],l+=s.length,!1})),-1!==o)return o+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==t.charAt(n))throw"Unexpected literal at position "+l;l++};for(n=0;n<t.length;n++)if(y)"'"!==t.charAt(n)||_("'")?k():y=!1;else switch(t.charAt(n)){case"d":v=x("d");break;case"D":w("D",u,d);break;case"o":b=x("o");break;case"m":m=x("m");break;case"M":m=w("M",p,f);break;case"y":g=x("y");break;case"@":g=(a=new Date(x("@"))).getFullYear(),m=a.getMonth()+1,v=a.getDate();break;case"!":g=(a=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),m=a.getMonth()+1,v=a.getDate();break;case"'":_("'")?k():y=!0;break;default:k()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=h?0:-100)),b>-1)for(m=1,v=b;;){if(v<=(o=this._getDaysInMonth(g,m-1)))break;m++,v-=o}if((a=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==v)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,i){if(!t)return"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=s+1<e.length&&e.charAt(s+1)===t;return i&&s++,i},c=function(e,t,i){var s=""+t;if(l(e))for(;s.length<i;)s="0"+s;return s},h=function(e,t,i,s){return l(e)?s[t]:i[t]},u="",d=!1;if(t)for(s=0;s<e.length;s++)if(d)"'"!==e.charAt(s)||l("'")?u+=e.charAt(s):d=!1;else switch(e.charAt(s)){case"d":u+=c("d",t.getDate(),2);break;case"D":u+=h("D",t.getDay(),n,o);break;case"o":u+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=c("m",t.getMonth()+1,2);break;case"M":u+=h("M",t.getMonth(),r,a);break;case"y":u+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":d=!0;break;default:u+=e.charAt(s)}return u},_possibleChars:function(e){var t,i="",s=!1,n=function(i){var s=t+1<e.length&&e.charAt(t+1)===i;return s&&t++,s};for(t=0;t<e.length;t++)if(s)"'"!==e.charAt(t)||n("'")?i+=e.charAt(t):s=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),s=e.lastVal=e.input?e.input.val():null,n=this._getDefaultDate(e),o=n,r=this._getFormatConfig(e);try{o=this.parseDate(i,s,r)||n}catch(e){s=t?"":s}e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),e.currentDay=s?o.getDate():0,e.currentMonth=s?o.getMonth():0,e.currentYear=s?o.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,s){var n,o=null==i||""===i?s:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var s=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,n=s.getFullYear(),o=s.getMonth(),r=s.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=a.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(n,o));break;case"y":case"Y":n+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(n,o))}l=a.exec(i)}return new Date(n,o,r)}(i):"number"==typeof i?isNaN(i)?s:((n=new Date).setDate(n.getDate()+i),n):new Date(i.getTime());return(o=o&&"Invalid Date"===o.toString()?s:o)&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var s=!t,n=e.selectedMonth,o=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),n===e.selectedMonth&&o===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(s?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),s="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){e(this).on(this.getAttribute("data-event"),{prev:function(){e.datepicker._adjustDate(s,-i,"M")},next:function(){e.datepicker._adjustDate(s,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(s)},selectDay:function(){return e.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(s,this,"Y"),!1}}[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var i,s,n,o,r,a,l,c,h,u,d,p,f,g,m,v,b,y,_,x,w,k,C,S,A,T,D,E,M,L,I,P,O,H,N,F,R,q,$,j=new Date,z=this._daylightSavingAdjust(new Date(j.getFullYear(),j.getMonth(),j.getDate())),B=this._get(t,"isRTL"),W=this._get(t,"showButtonPanel"),Y=this._get(t,"hideIfNoPrevNext"),V=this._get(t,"navigationAsDateFormat"),U=this._getNumberOfMonths(t),G=this._get(t,"showCurrentAtPos"),K=this._get(t,"stepMonths"),X=1!==U[0]||1!==U[1],J=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),ee=t.drawMonth-G,te=t.drawYear;if(ee<0&&(ee+=12,te--),Q)for(i=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-U[0]*U[1]+1,Q.getDate())),i=Z&&i<Z?Z:i;this._daylightSavingAdjust(new Date(te,ee,1))>i;)--ee<0&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,s=this._get(t,"prevText"),s=V?this.formatDate(s,this._daylightSavingAdjust(new Date(te,ee-K,1)),this._getFormatConfig(t)):s,n=this._canAdjustMonth(t,-1,te,ee)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:s}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(B?"e":"w")).text(s))[0].outerHTML:Y?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:s}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(B?"e":"w")).text(s))[0].outerHTML,o=this._get(t,"nextText"),o=V?this.formatDate(o,this._daylightSavingAdjust(new Date(te,ee+K,1)),this._getFormatConfig(t)):o,r=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:o}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(B?"w":"e")).text(o))[0].outerHTML:Y?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:o}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(B?"w":"e")).text(o))[0].outerHTML,a=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?J:z,a=V?this.formatDate(a,l,this._getFormatConfig(t)):a,c="",t.inline||(c=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),h="",W&&(h=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(B?c:"").append(this._isInRange(t,l)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(a):"").append(B?"":c)[0].outerHTML),u=isNaN(u=parseInt(this._get(t,"firstDay"),10))?0:u,d=this._get(t,"showWeek"),p=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),g=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),v=this._get(t,"beforeShowDay"),b=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),x="",k=0;k<U[0];k++){for(S=0,C="",this.maxRows=4;S<U[1];S++){if(A=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),T=" ui-corner-all",D="",X){if(D+="<div class='ui-datepicker-group",U[1]>1)switch(S){case 0:D+=" ui-datepicker-group-first",T=" ui-corner-"+(B?"right":"left");break;case U[1]-1:D+=" ui-datepicker-group-last",T=" ui-corner-"+(B?"left":"right");break;default:D+=" ui-datepicker-group-middle",T=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===k?B?r:n:"")+(/all|right/.test(T)&&0===k?B?n:r:"")+this._generateMonthYearHeader(t,ee,te,Z,Q,k>0||S>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",E=d?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;w<7;w++)E+="<th scope='col'"+((w+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[M=(w+u)%7]+"'>"+f[M]+"</span></th>";for(D+=E+"</tr></thead><tbody>",L=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,L)),P=Math.ceil(((I=(this._getFirstDayOfMonth(te,ee)-u+7)%7)+L)/7),O=X&&this.maxRows>P?this.maxRows:P,this.maxRows=O,H=this._daylightSavingAdjust(new Date(te,ee,1-I)),N=0;N<O;N++){for(D+="<tr>",F=d?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(H)+"</td>":"",w=0;w<7;w++)R=v?v.apply(t.input?t.input[0]:null,[H]):[!0,""],$=(q=H.getMonth()!==ee)&&!y||!R[0]||Z&&H<Z||Q&&H>Q,F+="<td class='"+((w+u+6)%7>=5?" ui-datepicker-week-end":"")+(q?" ui-datepicker-other-month":"")+(H.getTime()===A.getTime()&&ee===t.selectedMonth&&t._keyEvent||_.getTime()===H.getTime()&&_.getTime()===A.getTime()?" "+this._dayOverClass:"")+($?" "+this._unselectableClass+" ui-state-disabled":"")+(q&&!b?"":" "+R[1]+(H.getTime()===J.getTime()?" "+this._currentClass:"")+(H.getTime()===z.getTime()?" ui-datepicker-today":""))+"'"+(q&&!b||!R[2]?"":" title='"+R[2].replace(/'/g,"'")+"'")+($?"":" data-handler='selectDay' data-event='click' data-month='"+H.getMonth()+"' data-year='"+H.getFullYear()+"'")+">"+(q&&!b?" ":$?"<span class='ui-state-default'>"+H.getDate()+"</span>
11":"<a class='ui-state-default"+(H.getTime()===z.getTime()?" ui-state-highlight":"")+(H.getTime()===J.getTime()?" ui-state-active":"")+(q?" ui-priority-secondary":"")+"' href='#' aria-current='"+(H.getTime()===J.getTime()?"true":"false")+"' data-date='"+H.getDate()+"'>"+H.getDate()+"</a>")+"</td>",H.setDate(H.getDate()+1),H=this._daylightSavingAdjust(H);D+=F+"</tr>"}++ee>11&&(ee=0,te++),C+=D+="</tbody></table>"+(X?"</div>"+(U[0]>0&&S===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}x+=C}return x+=h,t._keyEvent=!1,x},_generateMonthYearHeader:function(e,t,i,s,n,o,r,a){var l,c,h,u,d,p,f,g,m=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),b=this._get(e,"showMonthAfterYear"),y=this._get(e,"selectMonthLabel"),_=this._get(e,"selectYearLabel"),x="<div class='ui-datepicker-title'>",w="";if(o||!m)w+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=s&&s.getFullYear()===i,c=n&&n.getFullYear()===i,w+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!l||h>=s.getMonth())&&(!c||h<=n.getMonth())&&(w+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+a[h]+"</option>");w+="</select>"}if(b||(x+=w+(!o&&m&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",o||!v)x+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(e,"yearRange").split(":"),d=(new Date).getFullYear(),g=Math.max(f=(p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?d+parseInt(e,10):parseInt(e,10);return isNaN(t)?d:t})(u[0]),p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+_+"' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",x+=e.yearshtml,e.yearshtml=null}return x+=this._get(e,"yearSuffix"),b&&(x+=(!o&&m&&v?"":" ")+w),x+"</div>"},_adjustInstDate:function(e,t,i){var s=e.selectedYear+("Y"===i?t:0),n=e.selectedMonth+("M"===i?t:0),o=Math.min(e.selectedDay,this._getDaysInMonth(s,n))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(s,n,o)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),n=i&&t<i?i:t;return s&&n>s?s:n},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,s){var n=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(i,s+(t<0?t:n[0]*n[1]),1));return t<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,t){var i,s,n=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),r=null,a=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),s=(new Date).getFullYear(),r=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=s),i[1].match(/[+\-].*/)&&(a+=s)),(!n||t.getTime()>=n.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!a||t.getFullYear()<=a)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,s){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var n=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(s,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),n,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);
vendor: 13,816 bytes, line 11
11var i=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2==arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}))},e.datepicker=new T,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.14.2",e.datepicker;var L=!1;function I(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e(document).on("mouseup",(function(){L=!1})),e.widget("ui.mouse",{version:"1.14.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!L){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var i=this,s=1===t.which,n="string"==typeof this.options.cancel&&e(t.target).closest(this.options.cancel).length;return!(s&&!n&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),L=!0),0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e);return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,L=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,i,s){var n,o=e.ui[t].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(e,t,i,s){var n,o=e.plugins[t];if(o&&(s||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(n=0;n<o.length;n++)e.options[o[n][0]]&&o[n][1].apply(e.element,i)}},e.widget("ui.draggable",e.ui.mouse,{version:"1.14.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var i=this.options;return!(this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(t),!this.handle||(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0)))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map((function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=this.document[0].activeElement;!e(t.target).closest(i).length&&e(i).trigger("blur")},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(!1===this._trigger("drag",t,s))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,s=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(s=e.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,s)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",t)&&i._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,s="function"==typeof i.helper,n=s?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,s,n=this.options,o=this.document[0];this.relativeContainer=null,n.containment?"window"!==n.containment?"document"!==n.containment?n.containment.constructor!==Array?("parent"===n.containment&&(n.containment=this.helper[0].parentNode),(s=(i=e(n.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=n.containment:this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,s,n,o,r=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(n=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>
vendor: 5,905 bytes, line 11
11i[3]?n:n-this.offset.click.top>=i[1]?n-r.grid[1]:n+r.grid[1]:n,o=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-r.grid[0]:o+r.grid[0]:o),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[i,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,s){var n=e.extend({},i,{item:s.element});s.sortables=[],e(s.options.connectToSortable).each((function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,n))}))},stop:function(t,i,s){var n=e.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,e.each(s.sortables,(function(){this.isOver?(this.isOver=0,s.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(t),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",t,n))}))},drag:function(t,i,s){e.each(s.sortables,(function(){var n=!1,o=this;o.positionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.offset.click,o._intersectsWith(o.containerCache)&&(n=!0,e.each(s.sortables,(function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&e.contains(o.element[0],this.element[0])&&(n=!1),n}))),n?(o.isOver||(o.isOver=1,s._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("toSortable",t),s.dropped=o.element,e.each(s.sortables,(function(){this.refreshPositions()})),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag(t),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(t),i.position=s._generatePosition(t,!0),s._trigger("fromSortable",t),s.dropped=!1,e.each(s.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,s){var n=e("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(t,i,s){var n=s.options;n._cursor&&e("body").css("cursor",n._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,s){var n=e(i.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(t,i,s){var n=s.options;n._opacity&&e(i.helper).css("opacity",n._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,s){var n=s.options,o=!1,r=s.scrollParentNotHidden[0],a=s.document[0];r!==a&&"HTML"!==r.tagName?((!n.axis||"x"!==n.axis)&&(s.overflowOffset.top+r.offsetHeight-t.pageY<n.scrollSensitivity?r.scrollTop=o=r.scrollTop+n.scrollSpeed:t.pageY-s.overflowOffset.top<n.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-n.scrollSpeed)),(!n.axis||"y"!==n.axis)&&(s.overflowOffset.left+r.offsetWidth-t.pageX<n.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+n.scrollSpeed:t.pageX-s.overflowOffset.left<n.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-n.scrollSpeed))):((!n.axis||"x"!==n.axis)&&(t.pageY-e(a).scrollTop()<n.scrollSensitivity?o=e(a).scrollTop(e(a).scrollTop()-n.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<n.scrollSensitivity&&(o=e(a).scrollTop(e(a).scrollTop()+n.scrollSpeed))),(!n.axis||"y"!==n.axis)&&(t.pageX-e(a).scrollLeft()<n.scrollSensitivity?o=e(a).scrollLeft(e(a).scrollLeft()-n.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<n.scrollSensitivity&&(o=e(a).scrollLeft(e(a).scrollLeft()+n.scrollSpeed)))),!1!==o&&e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(s,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,s){var n=s.options;s.snapElements=[],e(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each((function(){var t=e(this),i=t.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left
vendor: 6,522 bytes, line 11
11:i.left})}))},drag:function(t,i,s){var n,o,r,a,l,c,h,u,d,p,f=s.options,g=f.snapTolerance,m=i.offset.left,v=m+s.helperProportions.width,b=i.offset.top,y=b+s.helperProportions.height;for(d=s.snapElements.length-1;d>=0;d--)c=(l=s.snapElements[d].left-s.margins.left)+s.snapElements[d].width,u=(h=s.snapElements[d].top-s.margins.top)+s.snapElements[d].height,v<l-g||m>c+g||y<h-g||b>u+g||!e.contains(s.snapElements[d].item.ownerDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(n=Math.abs(h-y)<=g,o=Math.abs(u-b)<=g,r=Math.abs(l-v)<=g,a=Math.abs(c-m)<=g,n&&(i.position.top=s._convertPositionTo("relative",{top:h-s.helperProportions.height,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:c}).left)),p=n||o||r||a,"outer"!==f.snapMode&&(n=Math.abs(h-b)<=g,o=Math.abs(u-y)<=g,r=Math.abs(l-m)<=g,a=Math.abs(c-v)<=g,n&&(i.position.top=s._convertPositionTo("relative",{top:h,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:c-s.helperProportions.width}).left)),!s.snapElements[d].snapping&&(n||o||r||a||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=n||o||r||a||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,s){var n,o=s.options,r=e.makeArray(e(o.stack)).sort((function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)}));r.length&&(n=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each((function(t){e(this).css("zIndex",n+t)})),this.css("zIndex",n+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,s){var n=e(i.helper),o=s.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(t,i,s){var n=s.options;n._zIndex&&e(i.helper).css("zIndex",n._zIndex)}}),e.ui.draggable,e.widget("ui.resizable",e.ui.mouse,{version:"1.14.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,i){var s,n=!1,o=e(t).css("overflow");if("hidden"===o)return!1;if("scroll"===o||t[s=i&&"left"===i?"scrollLeft":"scrollTop"]>0)return!0;try{t[s]=1,n=t[s]>0,t[s]=0}catch(e){}return n},_create:function(){var t,i=this.options,s=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),i.autoHide&&e(this.element).on("mouseenter",(function(){!i.disabled&&(s._removeClass("ui-resizable-autohide"),s._handles.show())})).on("mouseleave",(function(){!i.disabled&&(s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide()))})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var t,i=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var t,i,s,n,o,r=this.options,a=this;if(this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this._addedHandles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;i<s.length;i++)n="ui-resizable-"+(t=String.prototype.trim.call(s[i])),o=e("<div>"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(t){var i,s,n,o;for(i in t=t||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=e(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n
vendor: 10,237 bytes, line 11
11/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")})),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var i,s,n=!1;for(i in this.handles)((s=e(this.handles[i])[0])===t.target||e.contains(s,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var i,s,n,o,r=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),r.containment&&(i+=e(r.containment).scrollLeft()||0,s+=e(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this._helper||(o=this._calculateAdjustedElementDimensions(a)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width,height:o.height},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:o.width,height:o.height},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,s,n=this.originalMousePosition,o=this.axis,r=t.pageX-n.left||0,a=t.pageY-n.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[t,r,a]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var i,s,n,o,r,a,l,c=this.options;return this._helper&&(n=(s=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:this.sizeDiff.height,o=s?0:this.sizeDiff.width,r={width:this.helper.width()-o,height:this.helper.height()-n},a=parseFloat(this.element.css("left"))+(this.position.left-this.originalPosition.left)||null,l=parseFloat(this.element.css("top"))+(this.position.top-this.originalPosition.top)||null,c.animate||this.element.css(e.extend(r,{top:l,left:a})),this.helper.height(this.size.height),this.helper.width(this.size.width),this._helper&&!c.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.helper.css(e),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px",this.helper.width(e.width)),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px",this.helper.height(e.height)),e},_updateVirtualBoundaries:function(e){var t,i,s,n,o,r=this.options;o={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),s>o.minHeight&&(o.minHeight=s),i<o.maxWidth&&(o.maxWidth=i),n<o.maxHeight&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,s=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===s&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===s&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,s=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,n=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),h=/nw|ne|n/.test(i);return o&&(e.width=t.minWidth),r&&(e.height=t.minHeight),s&&(e.width=t.maxWidth),n&&(e.height=t.maxHeight),o&&c&&(e.left=a-t.minWidth),s&&c&&(e.left=a-t.maxWidth),r&&h&&(e.top=l-t.minHeight),n&&h&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],s=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],n=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(s[t])||0,i[t]+=parseFloat(n[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_calculateAdjustedElementDimensions:function(e){var t,i,s,n=e.get(0);return"content-box"===e.css("box-sizing")&&(this._hasScroll(n)||this._hasScroll(n,"left"))?(t=parseFloat(n.style.width),i=parseFloat(n.style.height),s=this._getPaddingPlusBorderDimensions(e),t=isNaN(t)?this._getElementTheoreticalSize(e,s,"width"):t,{height:i=isNaN(i)?this._getElementTheoreticalSize(e,s,"height"):i,width:t}):{height:parseFloat(e.css("height")),width:parseFloat(e.css("width"))}},_getElementTheoreticalSize:function(e,t,i){return Math.max(0,Math.ceil(e.get(0)["offset"+i[0].toUpperCase()+i.slice(1)]-t[i]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},sw:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,s]))},ne:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},nw:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,s]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),r=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-r},c=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,h&&c?{top:h,left:c}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&e(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,s,n,o,r,a,l=e(this).resizable("instance"),c=l.options,h=l.element,u=c.containment,d=u instanceof e?u.get(0):/parent/.test(u)?h.parent().get(0):u;d&&(l.containerElement=e(d),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(d),i=[],e(["Top","Right","Left","Bottom"]).each((function(e,s){i[e]=l._num(t.css("padding"+s))})),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHe
vendor: 4,186 bytes, line 11
11ight()-i[3],width:t.innerWidth()-i[1]},s=l.containerOffset,n=l.containerSize.height,o=l.containerSize.width,r=l._hasScroll(d,"left")?d.scrollWidth:o,a=l._hasScroll(d)?d.scrollHeight:n,l.parentData={element:d,left:s.left,top:s.top,width:r,height:a}))},resize:function(t){var i,s,n,o,r=e(this).resizable("instance"),a=r.options,l=r.containerOffset,c=r.position,h=r._aspectRatio||t.shiftKey,u={top:0,left:0},d=r.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-u.left),h&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=a.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),h&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?l.top:0),n=r.containerElement.get(0)===r.element.parent().get(0),o=/relative|absolute/.test(r.containerElement.css("position")),n&&o?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),i=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-u.left:r.offset.left-l.left)),s=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-u.top:r.offset.top-l.top)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,h&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),s+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-s,h&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,s=t.containerOffset,n=t.containerPosition,o=t.containerElement,r=e(t.helper),a=r.offset(),l=r.outerWidth()-t.sizeDiff.width,c=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(o.css("position"))&&e(this).css({left:a.left-n.left-s.left,width:l,height:c}),t._helper&&!i.animate&&/static/.test(o.css("position"))&&e(this).css({left:a.left-n.left-s.left,width:l,height:c})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance");e(t.options.alsoResize).each((function(){var i=e(this),s=t._calculateAdjustedElementDimensions(i);i.data("ui-resizable-alsoresize",{width:s.width,height:s.height,left:parseFloat(i.css("left")),top:parseFloat(i.css("top"))})}))},resize:function(t,i){var s=e(this).resizable("instance"),n=s.options,o=s.originalSize,r=s.originalPosition,a={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-r.top||0,left:s.position.left-r.left||0};e(n.alsoResize).each((function(){var t=e(this),s=e(this).data("ui-resizable-alsoresize"),n={},o=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,(function(e,t){var i=(s[t]||0)+(a[t]||0);i&&i>=0&&(n[t]=i||null)})),t.css(n)}))},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!0===e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,i=e(this).resizable("instance"),s=i.options,n=i.size,o=i.originalSize,r=i.originalPosition,a=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,c=l[0]||1,h=l[1]||1,u=Math.round((n.width-o.width)/c)*c,d=Math.round((n.height-o.height)/h)*h,p=o.width+u,f=o.height+d,g=s.maxWidth&&s.maxWidth<p,m=s.maxHeight&&s.maxHeight<f,v=s.minWidth&&s.minWidth>p,b=s.minHeight&&s.minHeight>f;
vendor: 6,540 bytes, line 11
11s.grid=l,v&&(p+=c),b&&(f+=h),g&&(p-=c),m&&(f-=h),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.top=r.top-d):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.left=r.left-u):((f-h<=0||p-c<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),f-h>0?(i.size.height=f,i.position.top=r.top-d):(f=h-t.height,i.size.height=f,i.position.top=r.top+o.height-f),p-c>0?(i.size.width=p,i.position.left=r.left-u):(p=c-t.width,i.size.width=p,i.position.left=r.left+o.width-p))}}),e.ui.resizable,e.widget("ui.dialog",{version:"1.14.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=e(this).css(t).offset().top;i<0&&e(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,uiDialogTitleHeadingLevel:0,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,(function(){i._trigger("close",t)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var s=!1,n=this.uiDialog.siblings(".ui-front:visible").map((function(){return+e(this).css("z-index")})).get(),o=Math.max.apply(null,n);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!i&&this._trigger("focus",t),s},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=e(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){t._focusTabbable(),t._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=this.document[0].activeElement;this.uiDialog[0]===t||e.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(e){e.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=e("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),s=i.first(),n=i.last();t.target!==n[0]&&t.target!==this.uiDialog[0]||t.shiftKey?(t.target===s[0]||t.target===this.uiDialog[0])&&t.shiftKey&&(this._delay((function(){n.trigger("focus")})),t.preventDefault()):(this._delay((function(){s.trigger("focus")})),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:e("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("<"+(Number.isInteger(this.options.uiDialogTitleHeadingLevel)&&this.options.uiDialogTitleHeadingLevel>0&&this.options.uiDialogTitleHeadingLevel<=6?"h"+this.options.uiDialogTitleHeadingLevel:"span")+">").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prepe
vendor: 6,875 bytes, line 11
11ndTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(i)||Array.isArray(i)&&!i.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(e.each(i,(function(i,s){var n,o;s="function"==typeof s?{click:s,text:i}:s,n=(s=e.extend({type:"button"},s)).click,o={icon:s.icon,iconPosition:s.iconPosition,showLabel:s.showLabel,icons:s.icons,text:s.text},delete s.click,delete s.icon,delete s.iconPosition,delete s.showLabel,delete s.icons,"boolean"==typeof s.text&&delete s.text,e("<button></button>",s).button(o).appendTo(t.uiButtonSet).on("click",(function(){n.apply(t.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,i=this.options;function s(e){return{position:e.position,offset:e.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,n){t._addClass(e(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",i,s(n))},drag:function(e,i){t._trigger("drag",e,s(i))},stop:function(n,o){var r=o.offset.left-t.document.scrollLeft(),a=o.offset.top-t.document.scrollTop();i.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(a>=0?"+":"")+a,of:t.window},t._removeClass(e(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",n,s(o))}})},_makeResizable:function(){var t=this,i=this.options,s=i.resizable,n=this.uiDialog.css("position");function o(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:"string"==typeof s?s:"n,e,s,w,se,sw,ne,nw",start:function(i,s){t._addClass(e(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",i,o(s))},resize:function(e,i){t._trigger("resize",e,o(i))},stop:function(s,n){var r=t.uiDialog.offset(),a=r.left-t.document.scrollLeft(),l=r.top-t.document.scrollTop();i.height=t.uiDialog.height(),i.width=t.uiDialog.width(),i.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(e(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",s,o(n))}}).css("position",n)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=e.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};e.each(t,(function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(s=!0),e in i.resizableRelatedOptions&&(n[e]=t)})),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(t,i){var s,n,o=this.uiDialog;"disabled"!==t&&(this._super(t,i),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:e("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((s=o.is(":data(ui-draggable)"))&&!i&&o.draggable("destroy"),!s&&i&&this._makeDraggable()),"position"===t&&this._position(),"resizable"!==t||((n=o.is(":data(ui-resizable)"))&&!i&&o.resizable("destroy"),n&&"string"==typeof i&&o.resizable("option","handles",i),n||!1===i||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),"modal"===t&&o.attr("aria-modal",i?"true":null))},_size:function(){var e,t,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),e=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),t=Math.max(0,s.minHeight-e),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-e):"none","auto"===s.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!e(t.target).closest(".ui-dialog").length||!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay((function(){t=!1})),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(e){if(!t){var i=this._trackingInstances()[0];i._allowInteraction(e)||(e.preventDefault(),i._focusTabbable())}}.bind(this)),this.overlay=e("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!0===e.uiBackCompat&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),e.ui.dialog,e.widget("ui.droppable",{version:"1.14.2",widgetEventPrefix:"drop",o
vendor: 5,764 bytes, line 11
11ptions:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){if("accept"===t)this.accept="function"==typeof i?i:function(e){return e.is(i)};else if("scope"===t){var s=e.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=e.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var s=i||e.ui.ddmanager.current,n=!1;return!!s&&(s.currentItem||s.element)[0]!==this.element[0]&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=e(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&e.ui.intersect(s,e.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return n=!0,!1})),!n&&!!this.accept.call(this.element[0],s.currentItem||s.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(s)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),e.ui.intersect=function(e,t,i,s){if(!t.offset)return!1;var n,o,r,a,l=(e.positionAbs||e.position.absolute).left+e.margins.left,c=(e.positionAbs||e.position.absolute).top+e.margins.top,h=l+e.helperProportions.width,u=c+e.helperProportions.height,d=t.offset.left,p=t.offset.top,f=d+t.proportions().width,g=p+t.proportions().height;switch(i){case"fit":return d<=l&&h<=f&&p<=c&&u<=g;case"intersect":return d<l+e.helperProportions.width/2&&h-e.helperProportions.width/2<f&&p<c+e.helperProportions.height/2&&u-e.helperProportions.height/2<g;case"pointer":return n=s.pageY,o=t.proportions().height,n>=p&&n<p+o&&(r=s.pageX,a=t.proportions().width,r>=d&&r<d+a);case"touch":return(c>=p&&c<=g||u>=p&&u<=g||c<p&&u>g)&&(l>=d&&l<=f||h>=d&&h<=f||l<d&&h>f);default:return!1}},e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,i){var s,n,o=e.ui.ddmanager.droppables[t.options.scope]||[],r=i?i.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(s=0;s<o.length;s++)if(!o[s].options.disabled&&(!t||o[s].accept.call(o[s].element[0],t.currentItem||t.element))){for(n=0;n<a.length;n++)if(a[n]===o[s].element[0]){o[s].proportions().height=0;continue e}o[s].visible="none"!==o[s].element.css("display"),o[s].visible&&("mousedown"===r&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight}))}},drop:function(t,i){var s=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),s},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}))},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,o,r=e.ui.intersect(t,this,this.options.tolerance,i),a=!r&&this.isover?"isout":r&&!this.isover?"isover":null;a&&(this.options.greedy&&(n=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return e(this).droppable("instance").options.scope===n}))).length&&((s=e(o[0]).droppable("instance")).greedyChild="isover"===a)),s&&"isover"===a&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),s&&"isout"===a&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}}))},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}},!0===e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1}
vendor: 11,924 bytes, line 11
11,_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),e.ui.droppable,e.widget("ui.progressbar",{version:"1.14.2",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=e("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),e.widget("ui.selectable",e.ui.mouse,{version:"1.14.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t.elementPos=e(t.element[0]).offset(),t.selectees=e(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each((function(){var i=e(this),s=i.offset(),n={left:s.left-t.elementPos.left,top:s.top-t.elementPos.top};e.data(this,"selectable-item",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerWidth(),bottom:n.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})}))},this.refresh(),this._mouseInit(),this.helper=e("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var i=this,s=this.options;this.opos=[t.pageX,t.pageY],this.elementPos=e(this.element[0]).offset(),!this.options.disabled&&(this.selectees=e(s.filter,this.element[0]),this._trigger("start",t),e(s.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var s=e.data(this,"selectable-item");s.startselected=!0,t.metaKey||t.ctrlKey||(i._removeClass(s.$element,"ui-selected"),s.selected=!1,i._addClass(s.$element,"ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",t,{unselecting:s.element}))})),e(t.target).parents().addBack().each((function(){var s,n=e.data(this,"selectable-item");if(n)return s=!t.metaKey&&!t.ctrlKey||!n.$element.hasClass("ui-selected"),i._removeClass(n.$element,s?"ui-unselecting":"ui-selected")._addClass(n.$element,s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",t,{selecting:n.element}):i._trigger("unselecting",t,{unselecting:n.element}),!1})))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,o=this.opos[0],r=this.opos[1],a=t.pageX,l=t.pageY;return o>a&&(i=a,a=o,o=i),r>l&&(i=l,l=r,r=i),this.helper.css({left:o,top:r,width:a-o,height:l-r}),this.selectees.each((function(){var i=e.data(this,"selectable-item"),c=!1,h={};i&&i.element!==s.element[0]&&(h.left=i.left+s.elementPos.left,h.right=i.right+s.elementPos.left,h.top=i.top+s.elementPos.top,h.bottom=i.bottom+s.elementPos.top,"touch"===n.tolerance?c=!(h.left>a||h.right<o||h.top>l||h.bottom<r):"fit"===n.tolerance&&(c=h.left>o&&h.right<a&&h.top>r&&h.bottom<l),c?(i.selected&&(s._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(s._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(s._addClass(i.$element,"ui-selecting"),i.selecting=!0,s._trigger("selecting",t,{selecting:i.element}))):(i.selecting&&((t.metaKey||t.ctrlKey)&&i.startselected?(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,s._addClass(i.$element,"ui-selected"),i.selected=!0):(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",t,{unselecting:i.element}))),!i.selected||t.metaKey||t.ctrlKey||i.startselected||(s._removeClass(i.$element,"ui-selected"),i.selected=!1,s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",t,{unselecting:i.element}))))})),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each((function(){var s=e.data(this,"selectable-item");i._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",t,{unselected:s.element})})),e(".ui-selecting",this.element[0]).each((function(){var s=e.data(this,"selectable-item");i._removeClass(s.$element,"ui-selecting")._addClass(s.$element,"ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",t,{selected:s.element})})),this._trigger("stop",t),this.helper.remove(),!1}}),e.widget("ui.selectmenu",[e.ui.formResetMixin,{version:"1.14.2",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=e()},_drawButton:function(){var t,i=this,s=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.trigger("focus"),e.preventDefault()}}),this.element.hide(),this.button=e("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=e("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(s).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){i._rendered||i._refreshMenu()}))},_drawMenu:function(){var t=this;this.menu=e("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=e("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,i){e.preventDefault(),t._select(i.item.data("ui-selectmenu-item"),e)},focus:function(e,i){var s=i.item.data("ui-selectmenu-item");null==t.focusIndex||s.index===t.focusIndex||(t._trigger("focus",e,{item:s}),t.isOpen||t._select(s,e)),t.focusIndex=s.index,t.button.attr("aria-activedescendant",t.menuItems.eq(s.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e,t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=e("<span>");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var s=this,n="";e.each(i,(function(i,o){var r;o.optgroup!==n&&(r=e("<li>",{text:o.optgroup}),s._addClass(r,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),r.appendTo(t),n=o.optgroup),s._renderItemData(t,o)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var s=e("<li>"),n=e("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(s,null,"ui-state-disabled"),i.hidden?s.prop("hidden",!0):this._setText(n,i.label),s.append(n).appendTo(t)},_setText:function(e,t){t?e.text(t):e.html(" ")},_move:function(e,t){var i,s,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),(s="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](n).eq(-1):i[e+"All"](n).eq(0)).length&&this.menuInstance.focus(t,s)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")}
vendor: 4,229 bytes, line 11
11,_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&((e=window.getSelection()).removeAllRanges(),e.addRange(this.range))},_documentClick:{mousedown:function(t){this.isOpen&&(e(t.target).closest(".ui-selectmenu-menu, #"+CSS.escape(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var e=window.getSelection();e.rangeCount&&(this.range=e.getRangeAt(0))},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(t){var i=!0;switch(t.keyCode){case e.ui.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),i=!1;break;case e.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move("prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.keyCode.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCode.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if("icons"===e){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;!1!==e?(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(t){var i=this,s=[];t.each((function(t,n){s.push(i._parseOption(e(n),t))})),this.items=s},_parseOption:function(e,t){var i=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),hidden:i.prop("hidden")||e.prop("hidden"),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),e.widget("ui.slider",e.ui.mouse,{version:"1.14.2",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null}
vendor: 20,637 bytes, line 11
11,numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,i,s=this.options,n=this.element.find(".ui-slider-handle"),o=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),t=n.length;t<i;t++)o.push("<span tabindex='0'></span>");this.handles=n.add(e(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)}))},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===t.range||"max"===t.range)&&this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,o,r,a,l,c=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var i=Math.abs(s-c.values(t));(n>i||n===i&&(t===c._lastChangedValue||c.values(t)===h.min))&&(n=i,o=e(this),r=t)})),!1!==this._start(t,r)&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),a=o.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-a.left-o.width()/2,top:t.pageY-a.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,s,n,o;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(s=i/t)>1&&(s=1),s<0&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_uiHash:function(e,t,i){var s={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==t?t:this.values(e),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var s,n=this.value(),o=this.values();this._hasMultipleValues()&&(s=this.values(+!t),n=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(s,i):Math.max(s,i)),o[t]=i),i!==n&&!1!==this._trigger("slide",e,this._uiHash(t,i,o))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var i,s,n;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!Array.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(n=0,i=this.options.values,s=arguments[0];n<i.length;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()},_setOption:function(e,t){var i,s=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i,s;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);if(!this._hasMultipleValues())return[];for(s=0,i=this.options.values.slice();s<i.length;s+=1)i[s]=this._trimAlignValue(i[s]);return i},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,s=e-i;return 2*Math.abs(i)>=t&&(s+=i>0?t:-t),parseFloat(s.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,s,n,o,r=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,h={};this._hasMultipleValues()?this.handles.each((function(s){i=(l.values(s)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[c?"animate":"css"](h,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===s&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},a.animate),1===s&&l.range[c?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:a.animate})):(0===s&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},a.animate),1===s&&l.range[c?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:a.animate}))),t=i})):(s=this.value(),n=this._valueMin(),i=(o=this._valueMax())!==n?(s-n)/(o-n)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](h,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},a.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(t){var i,s,n,o=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,o)))return}switch(n=this.options.step,i=s=this._hasMultipleValues()?this.values(o):this.value(),t.keyCode){case e.ui.keyCode.HOME:s=this._valueMin();break;case e.ui.keyCode.END:s=this._valueMax();break;case e.ui.keyCode.PAGE_UP:s=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;s=this._trimAlignValue(i+n);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;s=this._trimAlignValue(i-n)}this._slide(t,o,s)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(e(t.target),null,"ui-state-active"))}}}),e.widget("ui.sortable",e.ui.mouse,{version:"1.14.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,(function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var s=null,n=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,o.widgetName+"-item")===o)return s=e(this),!1})),e.data(t.target,o.widgetName+"-item")===o&&(s=e(t.target)),!s||this.options.handle&&!i&&(e(this.options.handle,s).find("*").addBack().each((function(){this===t.target&&(n=!0)})),!n)||(this.currentItem=s,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,i,s){var n,o,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this._storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,s,n,o,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(n=(s=this.items[i]).item[0],(o=this._intersectsWithPointer(s))&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!e.contains(this.placeholder[0],n)&&("semi-dynamic"!==this.options.type||!e.contains(this.element[0],n))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(t,s),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,r={};o&&"x"!==o||(r.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){s._clear(t)}))}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},e(i).each((function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&s.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))})),!s.length&&t.key&&s.push(t.key+"="),s.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},i.each((function(){s.push(e(t.item||this).attr(t.attribute||"id")||"")})),s},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=e.left,r=o+e.width,a=e.top,l=a+e.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||s+c>a&&s+c<l,d="y"===this.options.axis||t+h>o&&t+h<r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?u&&d:o<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<s+this.helperProportions.height/2&&n-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,s="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!!s&&!!n&&(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),s=this.dragDirection.vertical,n=this.dragDirection.horizontal;return this.floating&&n?"right"===n&&i||"left"===n&&!i:s&&("down"===s&&t||"up"===s&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;
vendor: 13,441 bytes, line 11
11return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,s,n,o,r=[],a=[],l=this._connectWith();if(l&&t)for(i=l.length-1;i>=0;i--)for(s=(n=e(l[i],this.document[0])).length-1;s>=0;s--)(o=e.data(n[s],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):e(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function c(){r.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(c);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var i,s,n,o,r,a,l,c,h=this.items,u=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(s=(n=e(d[i],this.document[0])).length-1;s>=0;s--)(o=e.data(n[s],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):e(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(s=0,r=u[i][1],c=(a=u[i][0]).length;s<c;s++)(l=e(a[s])).data(this.widgetName+"-item",r),h.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var i,s,n,o;for(i=this.items.length-1;i>=0;i--)s=this.items[i],(!this.currentContainer||s.instance===this.currentContainer||s.item[0]===this.currentItem[0])&&(n=this.options.toleranceElement?e(this.options.toleranceElement,s.item):s.item,t||(s.width=n.outerWidth(),s.height=n.outerHeight()),s.left=(o=n.offset()).left,s.top=o.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,s,n=(t=t||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,s=t.currentItem[0].nodeName.toLowerCase(),n.placeholder={element:function(){var n=e("<"+s+">",t.document[0]);return t._addClass(n,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(n,"ui-sortable-helper"),"tbody"===s?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(n)):"tr"===s?t._createTrPlaceholder(t.currentItem,n):"img"===s&&n.attr("src",t.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(e,o){(!i||n.forcePlaceholderSize)&&((!o.height()||n.forcePlaceholderSize&&("tbody"===s||"tr"===s))&&o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(n.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),n.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var s=this;t.children().each((function(){e("<td> </td>",s.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(t){var i,s,n,o,r,a,l,c,h,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&e.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(n=1e4,o=null,r=(h=d.floating||this._isFloating(this.currentItem))?"left":"top",a=h?"width":"height",u=h?"pageX":"pageY",s=this.items.length-1;s>=0;s--)e.contains(this.containers[p].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(l=this.items[s].item.offset()[r],c=!1,t[u]-l>this.items[s][a]/2&&(c=!0),Math.abs(t[u]-l)<n&&(n=Math.abs(t[u]-l),o=this.items[s],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(t,o,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(t){var i=this.options,s="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||this.appendTo[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(t=e(n.containment)[0],i=e(n.containment).offset(),s="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var s="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(t){var i,s,n=this.options,o=t.pageX,r=t.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"===this.cssPosition&&(this.scrollParent[0]===this.document[0]||this.scrollParent[0]===this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/n.grid[1])*n.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(e,t,i,s){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay((function(){n===this.counter&&this.refreshPositions(!s)}))},_clear:function(e,t){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function n(e,t,i){return function(s){i._trigger(e,s,t._uiHash(t))}}for(this.fromOutside&&!t&&s.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&s.push((function(e){this._trigger("update",e,this._uiHash())})),this===this.currentContainer||t||(s.push((function(e){this._trigger("remove",e,this._uiHash())})),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;i>=0;
vendor: 1,995 bytes, line 11
11i--)t||s.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<s.length;i++)s[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}}),e.widget("ui.spinner",{version:"1.14.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return e.each(["min","max","step"],(function(e,s){var n=i.attr(s);null!=n&&n.length&&(t[s]=n)})),t}
vendor: 5,484 bytes, line 11
11,_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e)},wheel:function(e){var t=this.document[0].activeElement,i=this.element[0]===t,s=e.deltaY||e.originalEvent&&e.originalEvent.deltaY;if(i&&s){if(!this.spinning&&!this._start(e))return!1;this._spin((s>0?-1:1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(e)}),100),e.preventDefault()}},mousewheel:function(t,i){if(t.isTrigger){var s=e.Event(t);return s.type="wheel",i&&(s.deltaY=-i),this._events.wheel.call(this,s)}},"mousedown .ui-spinner-button":function(t){var i;i=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),function(){this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=i)}.call(this),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active")){if(!1===this._start(t))return!1;this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)}},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var i=this.options,s=e.ui.keyCode;switch(t.keyCode){case s.UP:return this._repeat(null,1,t),!0;case s.DOWN:return this._repeat(null,-1,t),!0;case s.PAGE_UP:return this._repeat(null,i.page,t),!0;case s.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,t,i)}),e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),(!this.spinning||!1!==this._trigger("spin",t,{value:i}))&&(this._value(i),this.counter++)},_increment:function(e){var t=this.options.incremental;return t?"function"==typeof t?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,s=this.options;return i=Math.round((i=e-(t=null!==s.min?s.min:0))/s.step)*s.step,e=parseFloat((e=t+i).toFixed(this._precision())),null!==s.max&&e>s.max?s.max:null!==s.min&&e<s.min?s.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var i,s,n;if("culture"===e||"numberFormat"===e)return i=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(i));("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(s=this.buttons.first().find(".ui-icon"),this._removeClass(s,null,this.options.icons.up),this._addClass(s,null,t.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,t.down)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:I((function(e){this._super(e)})),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&null!==(i=this._parse(e))&&(t||(i=this._adjustValue(i)),e=this._format(i)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:I((function(e){this._stepUp(e)}
vendor: 14,651 bytes, line 11
11)),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:I((function(e){this._stepDown(e)})),_stepDown:function(e){this._start()&&(this._spin(-(e||1)*this.options.step),this._stop())},pageUp:I((function(e){this._stepUp((e||1)*this.options.page)})),pageDown:I((function(e){this._stepDown((e||1)*this.options.page)})),value:function(e){if(!arguments.length)return this._parse(this.element.val());I(this._value).call(this,e)},widget:function(){return this.uiSpinner}}),!0===e.uiBackCompat&&e.widget("ui.spinner",e.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),e.ui.spinner,e.widget("ui.tabs",{version:"1.14.2",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(e){var t=new URL(e.href),i=new URL(location.href);return e.hash.length>1&&t.origin===i.origin&&t.pathname===i.pathname&&t.search===i.search},_create:function(){var t=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),Array.isArray(i.disabled)&&(i.disabled=e.uniqueSort(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),(function(e){return t.tabs.index(e)})))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,s=location.hash.substring(1),n=decodeURIComponent(s);return null===t&&(s&&(this.tabs.each((function(i,n){if(e(n).attr("aria-controls")===s)return t=i,!1})),null===t&&this.tabs.each((function(i,s){if(e(s).attr("aria-controls")===n)return t=i,!1}))),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t)&&(t=!!this.tabs.length&&0)),!1!==t&&-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!i&&0),!i&&!1===t&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(this.document[0].activeElement).closest("li"),s=this.tabs.index(i),n=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:s++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:n=!1,s--;break;case e.ui.keyCode.END:s=this.anchors.length-1;break;case e.ui.keyCode.HOME:s=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(s);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(s!==this.options.active&&s);default:return}t.preventDefault(),clearTimeout(this.activating),s=this._focusNextTab(s,n),t.ctrlKey||t.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",s)}),this.delay))}},_panelKeydown:function(t){!this._handlePageNav(t)&&t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){for(var s=this.tabs.length-1;-1!==e.inArray((t>s&&(t=0),t<0&&(t=s),t),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){"active"!==e?(this._super(e,t),"collapsible"!==e||(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t)):this._activate(t)},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),(function(e){return i.index(e)})),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,s=this.anchors,n=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",(function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()})),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map((function(){return e("a",this)[0]})).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each((function(i,s){var n,o,r,a=e(s).uniqueId().attr("id"),l=e(s).closest("li"),c=l.attr("aria-controls");t._isLocal(s)?(r=(n=s.hash).substring(1),(o=t.element.find("#"+CSS.escape(r))).length||(r=decodeURIComponent(r),o=t.element.find("#"+CSS.escape(r)))):(n="#"+(r=l.attr("aria-controls")||e({}).uniqueId()[0].id),(o=t.element.find(n)).length||(o=t._createPanel(r)).insertAfter(t.panels[i-1]||t.tablist),o.attr("aria-live","polite")),o.length&&(t.panels=t.panels.add(o)),c&&l.data("ui-tabs-aria-controls",c),l.attr({"aria-controls":r,"aria-labelledby":a}),o.attr("aria-labelledby",a)})),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,s,n;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),n=0;s=this.tabs[n];n++)i=e(s),!0===t||-1!==e.inArray(n,t)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&e.each(t.split(" "),(function(e,t){i[t]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,s=this.element.parent();"fill"===t?(i=s.height()-(this.element.outerHeight()-this.element.height()),this.element.siblings(":visible").each((function(){var t=e(this),s=t.css("position");"absolute"!==s&&"fixed"!==s&&(i-=t.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){i-=e(this).outerHeight(!0)})),this.panels.each((function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))})).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each((function(){i=Math.max(i,e(this).height("").height())})).height(i))},_eventHandler:function(t){var i=this.options,s=this.active,n=e(t.currentTarget).closest("li"),o=n[0]===s[0],r=o&&i.collapsible,a=r?e():this._getPanelForTab(n),l=s.length?this._getPanelForTab(s):e(),c={oldTab:s,oldPanel:l,newTab:r?e():n,newPanel:a};t.preventDefault(),!n.hasClass("ui-state-disabled")&&!n.hasClass("ui-tabs-loading")&&!this.running&&(!o||i.collapsible)&&!1!==this._trigger("beforeActivate",t,c)&&(i.active=!r&&this.tabs.index(n),this.active=o?e():n,this.xhr&&this.xhr.abort(),l.length||a.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(n),t),this._toggle(t,c))},_toggle:function(t,i){var s=this,n=i.newPanel,o=i.oldPanel;function r(){s.running=!1,s._trigger("activate",t,i)}function a(){s._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),n.length&&s.options.show?s._show(n,s.options.show,r):(n.show(),r())}this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,(function(){s._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()})):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o.hide(),a()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&o.length?i.oldTab.attr("tabIndex",-1):n.length&&this.tabs.filter((function(){return 0===e(this).attr("tabIndex")})).attr("tabIndex",-1),n.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var i,s=this._findActive(t);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return!1===t?e():this.tabs.eq(t)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+CSS.escape(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each((function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")})),this.tabs.each((function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;!1!==i&&(void 0===t?i=!1:(t=this._getIndex(t),i=Array.isArray(i)?e.map(i,(function(e){return e!==t?e:null})):e.map(this.tabs,(function(e,i){return i!==t?i:null}))),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(!0!==i){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,i))return;i=Array.isArray(i)?e.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var s=this,n=this.tabs.eq(t),o=n.find(".ui-tabs-anchor"),r=this._getPanelForTab(n),a={tab:n,panel:r},l=function(e,t){"abort"===t&&s.panels.stop(!1,!0),s._removeClass(n,"ui-tabs-loading"),r.removeAttr("aria-busy"),e===s.xhr&&delete s.xhr};!this._isLocal(o[0])&&(this.xhr=e.ajax(this._ajaxSettings(o,i,a)),"canceled"!==this.xhr.statusText&&(this._addClass(n,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done((function(e,t,n){r.html(e),s._trigger("load",i,a),l(n,t)})).fail((function(e,t){l(e,t)}))))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href"),beforeSend:function(t,o){return n._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:o},s))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find("#"+CSS.escape(i))}}),!0===e.uiBackCompat&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),e.ui.tabs,e.widget("ui.tooltip",{version:"1.14.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title");return e("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,t){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(t),e.data("ui-tooltip-id",t).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),s=(t.attr("aria-describedby")||"").split(/\s+/),n=e.inArray(i,s);-1!==n&&s.splice(n,1),t.removeData("ui-tooltip-id"),(s=String.prototype.trim.call(s.join(" ")))?t.attr("aria-describedby",s):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=e([])},_setOption:function(t,i){var s=this;this._super(t,i),"content"===t&&e.each(this.tooltips,(function(e,t){s._updateContent(t.element)}))},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,(function(i,s){var n=e.Event("blur");n.target=n.currentTarget=s.element[0],t.close(n,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var t=e(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})))},_enable:function(){this.disabledTitles.each((function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})),this.disabledTitles=e([])},open:function(t){var i=this,s=e(t?t.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&s.parents().each((function(){var t,s=e(this);s.data("ui-tooltip-open")&&((t=e.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}
11)),this._registerCloseHandlers(t,s),this._updateContent(s,t))},_updateContent:function(e,t){var i,s=this.options.content,n=this,o=t?t.type:null;if("string"==typeof s||s.nodeType||s.jquery)return this._open(t,e,s);(i=s.call(e[0],(function(i){e.data("ui-tooltip-open")&&(t&&(t.type=o),n._open(t,e,i))})))&&this._open(t,e,i)},_open:function(t,i,s){var n,o,r,a,l=e.extend({},this.options.position);if(s){if(n=this._find(i))return void n.tooltip.find(".ui-tooltip-content").html(s);i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),o=(n=this._tooltip(i)).tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(s),this.liveRegion.children().hide(),(a=e("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),a.removeAttr("id").find("[id]").removeAttr("id"),a.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:c}),c(t)):o.position(e.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval((function(){o.is(":visible")&&(c(l.of),clearInterval(r))}),13)),this._trigger("open",t,{tooltip:o})}function c(e){l.of=e,!o.is(":hidden")&&o.position(l)}},_registerCloseHandlers:function(t,i){var s={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var s=e.Event(t);s.currentTarget=i[0],this.close(s,!0)}}};i[0]!==this.element[0]&&(s.remove=function(){var e=this._find(i);e&&this._removeTooltip(e.tooltip)}),t&&"mouseover"!==t.type||(s.mouseleave="close"),t&&"focusin"!==t.type||(s.focusout="close"),this._on(!0,i,s)},close:function(t){var i,s=this,n=e(t?t.currentTarget:this.element),o=this._find(n);o?(i=o.tooltip,!o.closing&&(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),o.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,(function(){s._removeTooltip(e(this))})),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,(function(t,i){e(i.element).attr("title",i.title),delete s.parents[t]})),o.closing=!0,this._trigger("close",t,{tooltip:i}),o.hiding||(o.closing=!1))):n.removeData("ui-tooltip-open")},_tooltip:function(t){var i=e("<div>").attr("role","tooltip"),s=e("<div>").appendTo(i),n=i.uniqueId().attr("id");return this._addClass(s,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[n]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){clearInterval(this.delayedShow),e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,(function(i,s){var n=e.Event("blur"),o=s.element;n.target=n.currentTarget=o[0],t.close(n,!0),e("#"+i).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!0===e.uiBackCompat&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),e.ui.tooltip}));var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},n={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++i}
vendor: 11,305 bytes, lines 11-19
11),e.__id},clone:function e(t,i){var s,o;switch(i=i||{},n.util.type(t)){case"Object":if(o=n.util.objId(t),i[o])return i[o];for(var r in s={},i[o]=s,t)t.hasOwnProperty(r)&&(s[r]=e(t[r],i));return s;case"Array":return o=n.util.objId(t),i[o]?i[o]:(s=[],i[o]=s,t.forEach((function(t,n){s[n]=e(t,i)})),s);default:return t}},getLanguage:function(e){for(;e;){var i=t.exec(e.className);if(i)return i[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,i){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+i)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(s){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var i in t)if(t[i].src==e)return t[i]}return null}},isActive:function(e,t,i){for(var s="no-"+t;e;){var n=e.classList;if(n.contains(t))return!0;if(n.contains(s))return!1;e=e.parentElement}return!!i}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(e,t){var i=n.util.clone(n.languages[e]);for(var s in t)i[s]=t[s];return i},insertBefore:function(e,t,i,s){var o=(s=s||n.languages)[e],r={};for(var a in o)if(o.hasOwnProperty(a)){if(a==t)for(var l in i)i.hasOwnProperty(l)&&(r[l]=i[l]);i.hasOwnProperty(a)||(r[a]=o[a])}var c=s[e];return s[e]=r,n.languages.DFS(n.languages,(function(t,i){i===c&&t!=e&&(this[t]=r)})),r},DFS:function e(t,i,s,o){o=o||{};var r=n.util.objId;for(var a in t)if(t.hasOwnProperty(a)){i.call(t,a,t[a],s||a);var l=t[a],c=n.util.type(l);"Object"!==c||o[r(l)]?"Array"!==c||o[r(l)]||(o[r(l)]=!0,e(l,i,a,o)):(o[r(l)]=!0,e(l,i,null,o))}}},plugins:{},highlightAll:function(e,t){n.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,i){var s={callback:i,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",s),s.elements=Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)),n.hooks.run("before-all-elements-highlight",s);for(var o,r=0;o=s.elements[r++];)n.highlightElement(o,!0===t,s.callback)},highlightElement:function(t,i,s){var o=n.util.getLanguage(t),r=n.languages[o];n.util.setLanguage(t,o);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&n.util.setLanguage(a,o);var l={element:t,language:o,grammar:r,code:t.textContent};function c(e){l.highlightedCode=e,n.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,n.hooks.run("after-highlight",l),n.hooks.run("complete",l),s&&s.call(l.element)}if(n.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return n.hooks.run("complete",l),void(s&&s.call(l.element));if(n.hooks.run("before-highlight",l),l.grammar)if(i&&e.Worker){var h=new Worker(n.filename);h.onmessage=function(e){c(e.data)},h.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(n.highlight(l.code,l.grammar,l.language));else c(n.util.encode(l.code))},highlight:function(e,t,i){var s={code:e,grammar:t,language:i};if(n.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=n.tokenize(s.code,s.grammar),n.hooks.run("after-tokenize",s),o.stringify(n.util.encode(s.tokens),s.language)},tokenize:function(e,t){var i=t.rest;if(i){for(var s in i)t[s]=i[s];delete t.rest}var h=new a;return l(h,h.head,e),function e(t,i,s,a,h,u){for(var d in s)if(s.hasOwnProperty(d)&&s[d]){var p=s[d];p=Array.isArray(p)?p:[p];for(var f=0;f<p.length;++f){if(u&&u.cause==d+","+f)return;var g=p[f],m=g.inside,v=!!g.lookbehind,b=!!g.greedy,y=g.alias;if(b&&!g.pattern.global){var _=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,_+"g")}for(var x=g.pattern||g,w=a.next,k=h;w!==i.tail&&!(u&&k>=u.reach);k+=w.value.length,w=w.next){var C=w.value;if(i.length>t.length)return;if(!(C instanceof o)){var S,A=1;if(b){if(!(S=r(x,k,t,v))||S.index>=t.length)break;var T=S.index,D=S.index+S[0].length,E=k;for(E+=w.value.length;T>=E;)w=w.next,E+=w.value.length;if(E-=w.value.length,k=E,w.value instanceof o)continue;for(var M=w;M!==i.tail&&(E<D||"string"==typeof M.value);M=M.next)A++,E+=M.value.length;A--,C=t.slice(k,E),S.index-=k}else if(!(S=r(x,0,C,v)))continue;T=S.index;var L=S[0],I=C.slice(0,T),P=C.slice(T+L.length),O=k+C.length;u&&O>u.reach&&(u.reach=O);var H=w.prev;I&&(H=l(i,H,I),k+=I.length),c(i,H,A);var N=new o(d,m?n.tokenize(L,m):L,y,L);if(w=l(i,H,N),P&&l(i,w,P),A>1){var F={cause:d+","+f,reach:O};e(t,i,s,w.prev,k,F),u&&F.reach>u.reach&&(u.reach=F.reach)}}}}}}(e,h,t,h.head,0),function(e){var t=[],i=e.head.next;for(;i!==e.tail;)t.push(i.value),i=i.next;return t}(h)},hooks:{all:{},add:function(e,t){var i=n.hooks.all;i[e]=i[e]||[],i[e].push(t)},run:function(e,t){var i=n.hooks.all[e];if(i&&i.length)for(var s,o=0;s=i[o++];)s(t)}},Token:o};function o(e,t,i,s){this.type=e,this.content=t,this.alias=i,this.length=0|(s||"").length}function r(e,t,i,s){e.lastIndex=t;var n=e.exec(i);if(n&&s&&n[1]){var o=n[1].length;n.index+=o,n[0]=n[0].slice(o)}return n}function a(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,i){var s=t.next,n={value:i,prev:t,next:s};return t.next=n,s.prev=n,e.length++,n}function c(e,t,i){for(var s=t.next,n=0;n<i&&s!==e.tail;n++)s=s.next;t.next=s,s.prev=t,e.length-=n}if(e.Prism=n,o.stringify=function e(t,i){if("string"==typeof t)return t;if(Array.isArray(t)){var s="";return t.forEach((function(t){s+=e(t,i)})),s}var o={type:t.type,content:e(t.content,i),tag:"span",classes:["token",t.type],attributes:{},language:i},r=t.alias;r&&(Array.isArray(r)?Array.prototype.push.apply(o.classes,r):o.classes.push(r)),n.hooks.run("wrap",o);var a="";for(var l in o.attributes)a+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+a+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(n.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var i=JSON.parse(t.data),s=i.language,o=i.code,r=i.immediateClose;e.postMessage(n.highlight(o,n.languages[s],s)),r&&e.close()}),!1),n):n;var h=n.util.currentScript();function u(){n.manual||n.highlightAll()}if(h&&(n.filename=h.src,h.hasAttribute("data-manual")&&(n.manual=!0)),!n.manual){var d=document.readyState;"loading"===d||"interactive"===d&&h&&h.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return n}(_self); 12/** 13 * Prism: Lightweight, robust, elegant syntax highlighting 14 * 15 * @license MIT <https://opensource.org/licenses/MIT> 16 * @author Lea Verou <https://lea.verou.me> 17 * @namespace 18 * @public 19 */"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var i={};i["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};s["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var n={};n[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:s},Prism.languages.insertBefore("markup","cdata",n)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var i=e.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(Prism),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}
vendor: 4,320 bytes, line 19
19],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2}
19)*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,function(){if(void 0!==Prism&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])';Prism.hooks.add("before-highlightall",(function(e){e.selector+=", "+t})),Prism.hooks.add("before-sanity-check",(function(i){var s=i.element;if(s.matches(t)){i.code="",s.setAttribute("data-src-status","loading");var n=s.appendChild(document.createElement("CODE"));n.textContent="Loadingâ¦";var o=s.getAttribute("data-src"),r=i.language;if("none"===r){var a=(/\.(\w+)$/.exec(o)||[,"none"])[1];r=e[a]||a}Prism.util.setLanguage(n,r),Prism.util.setLanguage(s,r);var l=Prism.plugins.autoloader;l&&l.loadLanguages(r),function(e,t,i){var s=new XMLHttpRequest;s.open("GET",e,!0),s.onreadystatechange=function(){var e,n;4==s.readyState&&(s.status<400&&s.responseText?t(s.responseText):s.status>=400?i((e=s.status,n=s.statusText,"â Error "+e+" while fetching file: "+n)):i("â Error: File does not exist or is empty"))},s.send(null)}(o,(function(e){s.setAttribute("data-src-status","loaded");var t=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var i=Number(t[1]),s=t[2],n=t[3];return s?n?[i,Number(n)]:[i,void 0]:[i,i]}}(s.getAttribute("data-range"));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],r=null==t[1]?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),r<0&&(r+=i.length),r=Math.max(0,Math.min(r,i.length)),e=i.slice(o,r).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(o+1))}n.textContent=e,Prism.highlightElement(n)}),(function(e){s.setAttribute("data-src-status","failed"),n.textContent=e}))}})),Prism.plugins.fileHighlight={highlight:function(e){for(var i,s=(e||document).querySelectorAll(t),n=0;i=s[n++];)Prism.highlightElement(i)}};var i=!1;Prism.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),Prism.plugins.fileHighlight.highlight.apply(this,arguments)}}}(),function(e,t){"object"==typeof exports?module.exports=exports=t():"function"==typeof define&&define.amd?define([],t):e.CryptoJS=t()}(this,(function(){var e,t,i,s,n,o,r,a,l=l||function(e,t){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!=typeof global&&global.crypto&&(i=global.crypto),!i&&"function"==typeof require)try{i=require("crypto")}catch(e){}var s=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var i;return e.prototype=t,i=new e,e.prototype=null,i}}(),o={},r=o.lib={},a=r.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
vendor: 5,143 bytes, line 19
19pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=r.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,i=e.words,s=this.sigBytes,n=e.sigBytes;if(this.clamp(),s%4)for(var o=0;o<n;o++){var r=i[o>>>2]>>>24-o%4*8&255;t[s+o>>>2]|=r<<24-(s+o)%4*8}else for(var a=0;a<n;a+=4)t[s+a>>>2]=i[a>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=e.ceil(i/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],i=0;i<e;i+=4)t.push(s());return new l.init(t,e)}}),c=o.enc={},h=c.Hex={stringify:function(e){for(var t=e.words,i=e.sigBytes,s=[],n=0;n<i;n++){var o=t[n>>>2]>>>24-n%4*8&255;s.push((o>>>4).toString(16)),s.push((15&o).toString(16))}return s.join("")},parse:function(e){for(var t=e.length,i=[],s=0;s<t;s+=2)i[s>>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new l.init(i,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,i=e.sigBytes,s=[],n=0;n<i;n++){var o=t[n>>>2]>>>24-n%4*8&255;s.push(String.fromCharCode(o))}return s.join("")},parse:function(e){for(var t=e.length,i=[],s=0;s<t;s++)i[s>>>2]|=(255&e.charCodeAt(s))<<24-s%4*8;return new l.init(i,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},p=r.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var i,s=this._data,n=s.words,o=s.sigBytes,r=this.blockSize,a=o/(4*r),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*r,h=e.min(4*c,o);if(c){for(var u=0;u<c;u+=r)this._doProcessBlock(n,u);i=n.splice(0,c),s.sigBytes-=h}return new l.init(i,h)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(r.Hasher=p.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,i){return new e.init(i).finalize(t)}},_createHmacHelper:function(e){return function(t,i){return new f.HMAC.init(e,i).finalize(t)}}}),o.algo={});return o}(Math);return t=(e=l).lib,i=t.Base,s=t.WordArray,(n=e.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),n.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,i=[],n=0;n<t;n++){var o=e[n];i.push(o.high),i.push(o.low)}return s.create(i,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),s=t.length,n=0;n<s;n++)t[n]=t[n].clone();return e}}),function(){if("function"==typeof ArrayBuffer){var e=l.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var i=e.byteLength,s=[],n=0;n<i;n++)s[n>>>2]|=e[n]<<24-n%4*8;t.call(this,s,i)}else t.apply(this,arguments)}).prototype=e}}(),function(){var e=l,t=e.lib.WordArray,i=e.enc;i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,i=e.sigBytes,s=[],n=0;n<i;n+=2){var o=t[n>>>2]>>>16-n%4*8&65535;s.push(String.fromCharCode(o))}return s.join("")},parse:function(e){for(var i=e.length,s=[],n=0;n<i;n++)s[n>>>1]|=e.charCodeAt(n)<<16-n%2*16;return t.create(s,2*i)}};function s(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16LE={stringify:function(e){for(var t=e.words,i=e.sigBytes,n=[],o=0;o<i;o+=2){var r=s(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(r))}return n.join("")},parse:function(e){for(var i=e.length,n=[],o=0;o<i;o++)n[o>>>1]|=s(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*i)}}}(),function(){var e=l,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,i=e.sigBytes,s=this._map;e.clamp();for(var n=[],o=0;o<i;o+=3)for(var r=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<i;a++)n.push(s.charAt(r>>>6*(3-a)&63));var l=s.charAt(64);if(l)for(;n.length%4;)n.push(l);return n.join("")},parse:function(e){var i=e.length,s=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<s.length;
vendor: 10,187 bytes, line 19
19o++)n[s.charCodeAt(o)]=o}var r=s.charAt(64);if(r){var a=e.indexOf(r);-1!==a&&(i=a)}return function(e,i,s){for(var n=[],o=0,r=0;r<i;r++)if(r%4){var a=s[e.charCodeAt(r-1)]<<r%4*2,l=s[e.charCodeAt(r)]>>>6-r%4*2,c=a|l;n[o>>>2]|=c<<24-o%4*8,o++}return t.create(n,o)}(e,i,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(){var e=l,t=e.lib.WordArray;e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var i=e.words,s=e.sigBytes,n=t?this._safe_map:this._map;e.clamp();for(var o=[],r=0;r<s;r+=3)for(var a=(i[r>>>2]>>>24-r%4*8&255)<<16|(i[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|i[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l<s;l++)o.push(n.charAt(a>>>6*(3-l)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e,i){void 0===i&&(i=!0);var s=e.length,n=i?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var r=0;r<n.length;r++)o[n.charCodeAt(r)]=r}var a=n.charAt(64);if(a){var l=e.indexOf(a);-1!==l&&(s=l)}return function(e,i,s){for(var n=[],o=0,r=0;r<i;r++)if(r%4){var a=s[e.charCodeAt(r-1)]<<r%4*2,l=s[e.charCodeAt(r)]>>>6-r%4*2,c=a|l;n[o>>>2]|=c<<24-o%4*8,o++}return t.create(n,o)}(e,s,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),function(e){var t=l,i=t.lib,s=i.WordArray,n=i.Hasher,o=t.algo,r=[];!function(){for(var t=0;t<64;t++)r[t]=4294967296*e.abs(e.sin(t+1))|0}();var a=o.MD5=n.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var i=0;i<16;i++){var s=t+i,n=e[s];e[s]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],_=e[t+9],x=e[t+10],w=e[t+11],k=e[t+12],C=e[t+13],S=e[t+14],A=e[t+15],T=o[0],D=o[1],E=o[2],M=o[3];T=c(T,D,E,M,a,7,r[0]),M=c(M,T,D,E,l,12,r[1]),E=c(E,M,T,D,p,17,r[2]),D=c(D,E,M,T,f,22,r[3]),T=c(T,D,E,M,g,7,r[4]),M=c(M,T,D,E,m,12,r[5]),E=c(E,M,T,D,v,17,r[6]),D=c(D,E,M,T,b,22,r[7]),T=c(T,D,E,M,y,7,r[8]),M=c(M,T,D,E,_,12,r[9]),E=c(E,M,T,D,x,17,r[10]),D=c(D,E,M,T,w,22,r[11]),T=c(T,D,E,M,k,7,r[12]),M=c(M,T,D,E,C,12,r[13]),E=c(E,M,T,D,S,17,r[14]),T=h(T,D=c(D,E,M,T,A,22,r[15]),E,M,l,5,r[16]),M=h(M,T,D,E,v,9,r[17]),E=h(E,M,T,D,w,14,r[18]),D=h(D,E,M,T,a,20,r[19]),T=h(T,D,E,M,m,5,r[20]),M=h(M,T,D,E,x,9,r[21]),E=h(E,M,T,D,A,14,r[22]),D=h(D,E,M,T,g,20,r[23]),T=h(T,D,E,M,_,5,r[24]),M=h(M,T,D,E,S,9,r[25]),E=h(E,M,T,D,f,14,r[26]),D=h(D,E,M,T,y,20,r[27]),T=h(T,D,E,M,C,5,r[28]),M=h(M,T,D,E,p,9,r[29]),E=h(E,M,T,D,b,14,r[30]),T=u(T,D=h(D,E,M,T,k,20,r[31]),E,M,m,4,r[32]),M=u(M,T,D,E,y,11,r[33]),E=u(E,M,T,D,w,16,r[34]),D=u(D,E,M,T,S,23,r[35]),T=u(T,D,E,M,l,4,r[36]),M=u(M,T,D,E,g,11,r[37]),E=u(E,M,T,D,b,16,r[38]),D=u(D,E,M,T,x,23,r[39]),T=u(T,D,E,M,C,4,r[40]),M=u(M,T,D,E,a,11,r[41]),E=u(E,M,T,D,f,16,r[42]),D=u(D,E,M,T,v,23,r[43]),T=u(T,D,E,M,_,4,r[44]),M=u(M,T,D,E,k,11,r[45]),E=u(E,M,T,D,A,16,r[46]),T=d(T,D=u(D,E,M,T,p,23,r[47]),E,M,a,6,r[48]),M=d(M,T,D,E,b,10,r[49]),E=d(E,M,T,D,S,15,r[50]),D=d(D,E,M,T,m,21,r[51]),T=d(T,D,E,M,k,6,r[52]),M=d(M,T,D,E,f,10,r[53]),E=d(E,M,T,D,x,15,r[54]),D=d(D,E,M,T,l,21,r[55]),T=d(T,D,E,M,y,6,r[56]),M=d(M,T,D,E,A,10,r[57]),E=d(E,M,T,D,v,15,r[58]),D=d(D,E,M,T,C,21,r[59]),T=d(T,D,E,M,g,6,r[60]),M=d(M,T,D,E,w,10,r[61]),E=d(E,M,T,D,p,15,r[62]),D=d(D,E,M,T,_,21,r[63]),o[0]=o[0]+T|0,o[1]=o[1]+D|0,o[2]=o[2]+E|0,o[3]=o[3]+M|0},_doFinalize:function(){var t=this._data,i=t.words,s=8*this._nDataBytes,n=8*t.sigBytes;i[n>>>5]|=128<<24-n%32;var o=e.floor(s/4294967296),r=s;i[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(i.length+1),this._process();for(var a=this._hash,l=a.words,c=0;c<4;c++){var h=l[c];l[c]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return a},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,i,s,n,o,r){var a=e+(t&i|~t&s)+n+r;return(a<<o|a>>>32-o)+t}function h(e,t,i,s,n,o,r){var a=e+(t&s|i&~s)+n+r;return(a<<o|a>>>32-o)+t}function u(e,t,i,s,n,o,r){var a=e+(t^i^s)+n+r;return(a<<o|a>>>32-o)+t}function d(e,t,i,s,n,o,r){var a=e+(i^(t|~s))+n+r;return(a<<o|a>>>32-o)+t}t.MD5=n._createHelper(a),t.HmacMD5=n._createHmacHelper(a)}(Math),function(){var e=l,t=e.lib,i=t.WordArray,s=t.Hasher,n=e.algo,o=[],r=n.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var i=this._hash.words,s=i[0],n=i[1],r=i[2],a=i[3],l=i[4],c=0;c<80;c++){if(c<16)o[c]=0|e[t+c];else{var h=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=h<<1|h>>>31}var u=(s<<5|s>>>27)+l+o[c];u+=c<20?1518500249+(n&r|~n&a):c<40?1859775393+(n^r^a):c<60?(n&r|n&a|r&a)-1894007588:(n^r^a)-899497514,l=a,a=r,r=n<<30|n>>>2,n=s,s=u}i[0]=i[0]+s|0,i[1]=i[1]+n|0,i[2]=i[2]+r|0,i[3]=i[3]+a|0,i[4]=i[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,i=8*this._nDataBytes,s=8*e.sigBytes;return t[s>>>5]|=128<<24-s%32,t[14+(s+64>>>9<<4)]=Math.floor(i/4294967296),t[15+(s+64>>>9<<4)]=i,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=s._createHelper(r),e.HmacSHA1=s._createHmacHelper(r)}(),function(e){var t=l,i=t.lib,s=i.WordArray,n=i.Hasher,o=t.algo,r=[],a=[];!function(){function t(t){for(var i=e.sqrt(t),s=2;s<=i;s++)if(!(t%s))return!1;return!0}function i(e){return 4294967296*(e-(0|e))|0}for(var s=2,n=0;n<64;)t(s)&&(n<8&&(r[n]=i(e.pow(s,.5))),a[n]=i(e.pow(s,1/3)),n++),s++}();var c=[],h=o.SHA256=n.extend({_doReset:function(){this._hash=new s.init(r.slice(0))},_doProcessBlock:function(e,t){for(var i=this._hash.words,s=i[0],n=i[1],o=i[2],r=i[3],l=i[4],h=i[5],u=i[6],d=i[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=c[p-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[p]=g+c[p-7]+v+c[p-16]}var b=s&n^s&o^n&o,y=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),_=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&h^~l&u)+a[p]+c[p];d=u,u=h,h=l,l=r+_|0,r=o,o=n,n=s,s=_+(y+b)|0}i[0]=i[0]+s|0,i[1]=i[1]+n|0,i[2]=i[2]+o|0,i[3]=i[3]+r|0,i[4]=i[4]+l|0,i[5]=i[5]+h|0,i[6]=i[6]+u|0,i[7]=i[7]+d|0},_doFinalize:function(){var t=this._data,i=t.words,s=8*this._nDataBytes,n=8*t.sigBytes;return i[n>>>5]|=128<<24-n%32,i[14+(n+64>>>9<<4)]=e.floor(s/4294967296),i[15+(n+64>>>9<<4)]=s,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=n._createHelper(h),t.HmacSHA256=n._createHmacHelper(h)}(Math),function(){var e=l,t=e.lib.WordArray,i=e.algo,s=i.SHA256,n=i.SHA224=s.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=s._createHelper(n),e.HmacSHA224=s._createHmacHelper(n)}(),function(){var e=l,t=e.lib.Hasher,i=e.x64,s=i.Word,n=i.WordArray,o=e.algo;function r(){return s.create.apply(s,arguments)}var a=[r(1116352408,3609767458),r(1899447441,602891725),r(3049323471,3964484399),r(3921009573,2173295548),r(961987163,4081628472),r(1508970993,3053834265),r(2453635748,2937671579),r(2870763221,3664609560),r(3624381080,2734883394),r(310598401,1164996542),r(607225278,1323610764),r(1426881987,3590304994),r(1925078388,4068182383),r(2162078206,991336113),r(2614888103,633803317),r(3248222580,3479774868),r(3835390401,2666613458),r(4022224774,944711139),r(264347078,2341262773),r(604807628,2007800933),r(770255983,1495990901),r(1249150122,1856431235),r(1555081692,3175218132),r(1996064986,2198950837),r(2554220882,3999719339),r(2821834349,766784016),r(2952996808,2566594879),r(3210313671,3203337956),r(3336571891,1034457026),r(3584528711,2466948901),r(113926993,3758326383),r(338241895,168717936),r(666307205,1188179964),r(773529912,1546045734),r(1294757372,1522805485),r(1396182291,2643833823),r(1695183700,2343527390),r(1986661051,1014477480),r(2177026350,1206759142),r(2456956037,344077627),r(2730485921,1290863460),r(2820302411,3158454273),r(3259730800,3505952657),r(3345764771,106217008),r(3516065817,3606008344),r(3600352804,1432725776),r(4094571909,1467031594),r(275423344,851169720),r(430227734,3100823752),r(506948616,1363258195),r(659060556,3750685593),r(883997877,3785050280),r(958139571,3318307427),r(1322822218,3812723403),r(1537002063,2003034995),r(1747873779,3602036899),r(1955562222,1575990012),r(2024104815,1125592928),r(2227730452,2716904306),r(2361852424,442776044),r(2428436474,593698344),r(2756734187,3733110249),r(3204031479,2999351573),r(3329325298,3815920427),r(3391569614,3928383900),r(3515267271,566280711),r(3940187606,3454069534),r(4118630271,4000239992),r(116418474,1914138554),r(174292421,2731055270),r(289380356,3203993006),r(460393269,320620315),r(685471733,587496836),r(852142971,1086792851),r(1017036298,365543100),r(1126000580,2618297676),r(1288033470,3409855158),r(1501505948,4234509866),r(1607167915,987167468),r(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=r()}();var h=o.SHA512=t.extend({_doReset:function(){this._hash=new n.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var i=this._hash.words,s=i[0],n=i[1],o=i[2],r=i[3],l=i[4],h=i[5],u=i[6],d=i[7],p=s.high,f=s.low,g=n.high,m=n.low,v=o.high,b=o.low,y=r.high,_=r.low,x=l.high,w=l.low,k=h.high,C=h.low,S=u.high,A=u.low,T=d.high,D=d.low,E=p,M=f,L=g,I=m,P=v,O=b,H=y,N=_,F=x,R=w,q=k,$=C,j=S,z=A,B=T,W=D,Y=0;Y<80;Y++){var V,U,G=c[Y];if(Y<16)U=G.high=0|e[t+2*Y],V=G.low=0|e[t+2*Y+1];else{var K=c[Y-15],X=K.high,J=K.low,Z=(X>>>1|J<<31)^(X>>>8|J<<24)^X>>>7,Q=(J>>>1|X<<31)^(J>>>8|X<<24)^(J>>>7|X<<25),ee=c[Y-2],te=ee.high,ie=ee.low,se=(te>>>19|ie<<13)^(te<<3|ie>>>29)^te>>>6,ne=(ie>>>19|te<<13)^(ie<<3|te>>>29)^(ie>>>6|te<<26),oe=c[Y-7],re=oe.high,ae=oe.low,le=c[Y-16],ce=le.high,he=le.low;
vendor: 5,111 bytes, lines 19-28
19U=(U=(U=Z+re+((V=Q+ae)>>>0<Q>>>0?1:0))+se+((V+=ne)>>>0<ne>>>0?1:0))+ce+((V+=he)>>>0<he>>>0?1:0),G.high=U,G.low=V}var ue,de=F&q^~F&j,pe=R&$^~R&z,fe=E&L^E&P^L&P,ge=M&I^M&O^I&O,me=(E>>>28|M<<4)^(E<<30|M>>>2)^(E<<25|M>>>7),ve=(M>>>28|E<<4)^(M<<30|E>>>2)^(M<<25|E>>>7),be=(F>>>14|R<<18)^(F>>>18|R<<14)^(F<<23|R>>>9),ye=(R>>>14|F<<18)^(R>>>18|F<<14)^(R<<23|F>>>9),_e=a[Y],xe=_e.high,we=_e.low,ke=B+be+((ue=W+ye)>>>0<W>>>0?1:0),Ce=ve+ge;B=j,W=z,j=q,z=$,q=F,$=R,F=H+(ke=(ke=(ke=ke+de+((ue=ue+pe)>>>0<pe>>>0?1:0))+xe+((ue=ue+we)>>>0<we>>>0?1:0))+U+((ue=ue+V)>>>0<V>>>0?1:0))+((R=N+ue|0)>>>0<N>>>0?1:0)|0,H=P,N=O,P=L,O=I,L=E,I=M,E=ke+(me+fe+(Ce>>>0<ve>>>0?1:0))+((M=ue+Ce|0)>>>0<ue>>>0?1:0)|0}f=s.low=f+M,s.high=p+E+(f>>>0<M>>>0?1:0),m=n.low=m+I,n.high=g+L+(m>>>0<I>>>0?1:0),b=o.low=b+O,o.high=v+P+(b>>>0<O>>>0?1:0),_=r.low=_+N,r.high=y+H+(_>>>0<N>>>0?1:0),w=l.low=w+R,l.high=x+F+(w>>>0<R>>>0?1:0),C=h.low=C+$,h.high=k+q+(C>>>0<$>>>0?1:0),A=u.low=A+z,u.high=S+j+(A>>>0<z>>>0?1:0),D=d.low=D+W,d.high=T+B+(D>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,i=8*this._nDataBytes,s=8*e.sigBytes;return t[s>>>5]|=128<<24-s%32,t[30+(s+128>>>10<<5)]=Math.floor(i/4294967296),t[31+(s+128>>>10<<5)]=i,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(h),e.HmacSHA512=t._createHmacHelper(h)}(),function(){var e=l,t=e.x64,i=t.Word,s=t.WordArray,n=e.algo,o=n.SHA512,r=n.SHA384=o.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=o._createHelper(r),e.HmacSHA384=o._createHmacHelper(r)}(),function(e){var t=l,i=t.lib,s=i.WordArray,n=i.Hasher,o=t.x64.Word,r=t.algo,a=[],c=[],h=[];!function(){for(var e=1,t=0,i=0;i<24;i++){a[e+5*t]=(i+1)*(i+2)/2%64;var s=(2*e+3*t)%5;e=t%5,t=s}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,r=0;r<24;r++){for(var l=0,u=0,d=0;d<7;d++){if(1&n){var p=(1<<d)-1;p<32?u^=1<<p:l^=1<<p-32}128&n?n=n<<1^113:n<<=1}h[r]=o.create(l,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=o.create()}();var d=r.SHA3=n.extend({cfg:n.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var i=this._state,s=this.blockSize/2,n=0;n<s;n++){var o=e[t+2*n],r=e[t+2*n+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(D=i[n]).high^=r,D.low^=o}for(var l=0;l<24;l++){for(var d=0;d<5;d++){for(var p=0,f=0,g=0;g<5;g++){p^=(D=i[d+5*g]).high,f^=D.low}var m=u[d];m.high=p,m.low=f}for(d=0;d<5;d++){var v=u[(d+4)%5],b=u[(d+1)%5],y=b.high,_=b.low;for(p=v.high^(y<<1|_>>>31),f=v.low^(_<<1|y>>>31),g=0;g<5;g++){(D=i[d+5*g]).high^=p,D.low^=f}}for(var x=1;x<25;x++){var w=(D=i[x]).high,k=D.low,C=a[x];C<32?(p=w<<C|k>>>32-C,f=k<<C|w>>>32-C):(p=k<<C-32|w>>>64-C,f=w<<C-32|k>>>64-C);var S=u[c[x]];S.high=p,S.low=f}var A=u[0],T=i[0];A.high=T.high,A.low=T.low;for(d=0;d<5;d++)for(g=0;g<5;g++){var D=i[x=d+5*g],E=u[x],M=u[(d+1)%5+5*g],L=u[(d+2)%5+5*g];D.high=E.high^~M.high&L.high,D.low=E.low^~M.low&L.low}D=i[0];var I=h[l];D.high^=I.high,D.low^=I.low}},_doFinalize:function(){var t=this._data,i=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;i[n>>>5]|=1<<24-n%32,i[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*i.length,this._process();for(var r=this._state,a=this.cfg.outputLength/8,l=a/8,c=[],h=0;h<l;h++){var u=r[h],d=u.high,p=u.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(d)}return new s.init(c,a)},clone:function(){for(var e=n.clone.call(this),t=e._state=this._state.slice(0),i=0;i<25;i++)t[i]=t[i].clone();return e}});t.SHA3=n._createHelper(d),t.HmacSHA3=n._createHmacHelper(d)}(Math), 20/** @preserve 21 (c) 2012 by Cédric Mesnil. All rights reserved. 22 23 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 24 25 - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 26 - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 27 28 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (
vendor: 14,308 bytes, lines 28-36
28INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30function(e){var t=l,i=t.lib,s=i.WordArray,n=i.Hasher,o=t.algo,r=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),d=s.create([1352829926,1548603684,1836072691,2053994217,0]),p=o.RIPEMD160=n.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var i=0;i<16;i++){var s=t+i,n=e[s];e[s]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o,l,p,_,x,w,k,C,S,A,T,D=this._hash.words,E=u.words,M=d.words,L=r.words,I=a.words,P=c.words,O=h.words;w=o=D[0],k=l=D[1],C=p=D[2],S=_=D[3],A=x=D[4];for(i=0;i<80;i+=1)T=o+e[t+L[i]]|0,T+=i<16?f(l,p,_)+E[0]:i<32?g(l,p,_)+E[1]:i<48?m(l,p,_)+E[2]:i<64?v(l,p,_)+E[3]:b(l,p,_)+E[4],T=(T=y(T|=0,P[i]))+x|0,o=x,x=_,_=y(p,10),p=l,l=T,T=w+e[t+I[i]]|0,T+=i<16?b(k,C,S)+M[0]:i<32?v(k,C,S)+M[1]:i<48?m(k,C,S)+M[2]:i<64?g(k,C,S)+M[3]:f(k,C,S)+M[4],T=(T=y(T|=0,O[i]))+A|0,w=A,A=S,S=y(C,10),C=k,k=T;T=D[1]+p+S|0,D[1]=D[2]+_+A|0,D[2]=D[3]+x+w|0,D[3]=D[4]+o+k|0,D[4]=D[0]+l+C|0,D[0]=T},_doFinalize:function(){var e=this._data,t=e.words,i=8*this._nDataBytes,s=8*e.sigBytes;t[s>>>5]|=128<<24-s%32,t[14+(s+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,o=n.words,r=0;r<5;r++){var a=o[r];o[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return n},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,i){return e^t^i}function g(e,t,i){return e&t|~e&i}function m(e,t,i){return(e|~t)^i}function v(e,t,i){return e&i|t&~i}function b(e,t,i){return e^(t|~i)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=n._createHelper(p),t.HmacRIPEMD160=n._createHmacHelper(p)}(Math),function(){var e=l,t=e.lib.Base,i=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var s=e.blockSize,n=4*s;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),r=this._iKey=t.clone(),a=o.words,l=r.words,c=0;c<s;c++)a[c]^=1549556828,l[c]^=909522486;o.sigBytes=r.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,i=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(i))}})}(),function(){var e=l,t=e.lib,i=t.Base,s=t.WordArray,n=e.algo,o=n.SHA256,r=n.HMAC,a=n.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var i=this.cfg,n=r.create(i.hasher,e),o=s.create(),a=s.create([1]),l=o.words,c=a.words,h=i.keySize,u=i.iterations;l.length<h;){var d=n.update(t).finalize(a);n.reset();for(var p=d.words,f=p.length,g=d,m=1;m<u;m++){g=n.finalize(g),n.reset();for(var v=g.words,b=0;b<f;b++)p[b]^=v[b]}o.concat(d),c[0]++}return o.sigBytes=4*h,o}});e.PBKDF2=function(e,t,i){return a.create(i).compute(e,t)}}(),function(){var e=l,t=e.lib,i=t.Base,s=t.WordArray,n=e.algo,o=n.MD5,r=n.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var i,n=this.cfg,o=n.hasher.create(),r=s.create(),a=r.words,l=n.keySize,c=n.iterations;a.length<l;){i&&o.update(i),i=o.update(e).finalize(t),o.reset();for(var h=1;h<c;h++)i=o.finalize(i),o.reset();r.concat(i)}return r.sigBytes=4*l,r}});e.EvpKDF=function(e,t,i){return r.create(i).compute(e,t)}}(),l.lib.Cipher||function(e){var t=l,i=t.lib,s=i.Base,n=i.WordArray,o=i.BufferedBlockAlgorithm,r=t.enc,a=(r.Utf8,r.Base64),c=t.algo.EvpKDF,h=i.Cipher=o.extend({cfg:s.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,i){this.cfg=this.cfg.extend(i),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:v}return function(t){return{encrypt:function(i,s,n){return e(s).encrypt(t,i,s,n)},decrypt:function(i,s,n){return e(s).decrypt(t,i,s,n)}}}}()}),u=(i.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),d=i.BlockCipherMode=s.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=u.CBC=function(){var e=d.extend();function t(e,t,i){var s,n=this._iv;n?(s=n,this._iv=void 0):s=this._prevBlock;for(var o=0;o<i;o++)e[t+o]^=s[o]}return e.Encryptor=e.extend({processBlock:function(e,i){var s=this._cipher,n=s.blockSize;t.call(this,e,i,n),s.encryptBlock(e,i),this._prevBlock=e.slice(i,i+n)}}),e.Decryptor=e.extend({processBlock:function(e,i){var s=this._cipher,n=s.blockSize,o=e.slice(i,i+n);s.decryptBlock(e,i),t.call(this,e,i,n),this._prevBlock=o}}),e}(),f=(t.pad={}).Pkcs7={pad:function(e,t){for(var i=4*t,s=i-e.sigBytes%i,o=s<<24|s<<16|s<<8|s,r=[],a=0;a<s;a+=4)r.push(o);var l=n.create(r,s);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},g=(i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:f}),reset:function(){var e;h.reset.call(this);var t=this.cfg,i=t.iv,s=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=s.createEncryptor:(e=s.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,i&&i.words):(this._mode=e.call(s,this,i&&i.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),i.CipherParams=s.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,i=e.salt;return(i?n.create([1398893684,1701076831]).concat(i).concat(t):t).toString(a)},parse:function(e){var t,i=a.parse(e),s=i.words;return 1398893684==s[0]&&1701076831==s[1]&&(t=n.create(s.slice(2,4)),s.splice(0,4),i.sigBytes-=16),g.create({ciphertext:i,salt:t})}},v=i.SerializableCipher=s.extend({cfg:s.extend({format:m}),encrypt:function(e,t,i,s){s=this.cfg.extend(s);var n=e.createEncryptor(i,s),o=n.finalize(t),r=n.cfg;return g.create({ciphertext:o,key:i,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:s.format})},decrypt:function(e,t,i,s){return s=this.cfg.extend(s),t=this._parse(t,s.format),e.createDecryptor(i,s).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(t.kdf={}).OpenSSL={execute:function(e,t,i,s,o){if(s||(s=n.random(8)),o)r=c.create({keySize:t+i,hasher:o}).compute(e,s);else var r=c.create({keySize:t+i}).compute(e,s);var a=n.create(r.words.slice(t),4*i);return r.sigBytes=4*t,g.create({key:r,iv:a,salt:s})}},y=i.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:b}),encrypt:function(e,t,i,s){var n=(s=this.cfg.extend(s)).kdf.execute(i,e.keySize,e.ivSize,s.salt,s.hasher);s.iv=n.iv;var o=v.encrypt.call(this,e,t,n.key,s);return o.mixIn(n),o},decrypt:function(e,t,i,s){s=this.cfg.extend(s),t=this._parse(t,s.format);var n=s.kdf.execute(i,e.keySize,e.ivSize,t.salt,s.hasher);return s.iv=n.iv,v.decrypt.call(this,e,t,n.key,s)}})}(),l.mode.CFB=function(){var e=l.lib.BlockCipherMode.extend();function t(e,t,i,s){var n,o=this._iv;o?(n=o.slice(0),this._iv=void 0):n=this._prevBlock,s.encryptBlock(n,0);for(var r=0;r<i;r++)e[t+r]^=n[r]}return e.Encryptor=e.extend({processBlock:function(e,i){var s=this._cipher,n=s.blockSize;t.call(this,e,i,n,s),this._prevBlock=e.slice(i,i+n)}}),e.Decryptor=e.extend({processBlock:function(e,i){var s=this._cipher,n=s.blockSize,o=e.slice(i,i+n);t.call(this,e,i,n,s),this._prevBlock=o}}),e}(),l.mode.CTR=(o=l.lib.BlockCipherMode.extend(),r=o.Encryptor=o.extend({processBlock:function(e,t){var i=this._cipher,s=i.blockSize,n=this._iv,o=this._counter;n&&(o=this._counter=n.slice(0),this._iv=void 0);var r=o.slice(0);i.encryptBlock(r,0),o[s-1]=o[s-1]+1|0;for(var a=0;a<s;a++)e[t+a]^=r[a]}}),o.Decryptor=r,o), 31/** @preserve 32 * Counter block mode compatible with Dr Brian Gladman fileenc.c 33 * derived from CryptoJS.mode.CTR 34 * Jan Hruby [email protected] 35 */ 36l.mode.CTRGladman=function(){var e=l.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,i=e>>8&255,s=255&e;255===t?(t=0,255===i?(i=0,255===s?s=0:++s):++i):++t,e=0,e+=t<<16,e+=i<<8,e+=s}else e+=1<<24;return e}var i=e.Encryptor=e.extend({processBlock:function(e,i){var s=this._cipher,n=s.blockSize,o=this._iv,r=this._counter;o&&(r=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(r);var a=r.slice(0);s.encryptBlock(a,0);for(var l=0;l<n;l++)e[i+l]^=a[l]}});return e.Decryptor=i,e}(),l.mode.OFB=function(){var e=l.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,s=i.blockSize,n=this._iv,o=this._keystream;n&&(o=this._keystream=n.slice(0),this._iv=void 0),i.encryptBlock(o,0);for(var r=0;r<s;r++)e[t+r]^=o[r]}});return e.Decryptor=t,e}(),l.mode.ECB=((a=l.lib.BlockCipherMode.extend()).Encryptor=a.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),a.Decryptor=a.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),a),l.pad.AnsiX923={pad:function(e,t){var i=e.sigBytes,s=4*t,n=s-i%s,o=i+n-1;e.clamp(),e.words[o>>>2]|=n<<24-o%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},l.pad.Iso10126={pad:function(e,t){var i=4*t,s=i-e.sigBytes%i;e.concat(l.lib.WordArray.random(s-1)).concat(l.lib.WordArray.create([s<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},l.pad.Iso97971={pad:function(e,t){e.concat(l.lib.WordArray.create([2147483648],1)),l.pad.ZeroPadding.pad(e,t)},unpad:function(e){l.pad.ZeroPadding.unpad(e),e.sigBytes--}},l.pad.ZeroPadding={pad:function(e,t){var i=4*t;e.clamp(),e.sigBytes+=i-(e.sigBytes%i||i)},unpad:function(e){var t=e.words,i=e.sigBytes-1;for(i=e.sigBytes-1;i>=0;i--)if(t[i>>>2]>>>24-i%4*8&255){e.sigBytes=i+1;break}}},l.pad.NoPadding={pad:function(){},unpad:function(){}},function(e){var t=l,i=t.lib.CipherParams,s=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(s)},parse:function(e){var t=s.parse(e);return i.create({ciphertext:t})}}}(),function(){var e=l,t=e.lib.BlockCipher,i=e.algo,s=[],n=[],o=[],r=[],a=[],c=[],h=[],u=[],d=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var i=0,l=0;for(t=0;t<256;t++){var f=l^l<<1^l<<2^l<<3^l<<4;f=f>>>8^255&f^99,s[i]=f,n[f]=i;var g=e[i],m=e[g],v=e[m],b=257*e[f]^16843008*f;o[i]=b<<24|b>>>8,r[i]=b<<16|b>>>16,a[i]=b<<8|b>>>24,c[i]=b;b=16843009*v^65537*m^257*g^16843008*i;h[f]=b<<24|b>>>8,u[f]=b<<16|b>>>16,d[f]=b<<8|b>>>24,p[f]=b,i?(i=g^e[e[e[v^g]]],l^=e[e[l]]):i=l=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,i=e.sigBytes/4,n=4*((this._nRounds=i+6)+1),o=this._keySchedule=[],r=0;r<n;r++)r<i?o[r]=t[r]:(c=o[r-1],r%i?i>6&&r%i==4&&(c=s[c>>>24]<<24|s[c>>>16&255]<<16|s[c>>>8&255]<<8|s[255&c]):(c=s[(c=c<<8|c>>>24)>>>24]<<24|s[c>>>16&255]<<16|s[c>>>8&255]<<8|s[255&c],c^=f[r/i|0]<<24),o[r]=o[r-i]^c);for(var a=this._invKeySchedule=[],l=0;l<n;l++){r=n-l;if(l%4)var c=o[r];else c=o[r-4];a[l]=l<4||r<=4?c:h[s[c>>>24]]^u[s[c>>>16&255]]^d[s[c>>>8&255]]^p[s[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,r,a,c,s)},decryptBlock:function(e,t){var i=e[t+1];e[t+1]=e[t+3],e[t+3]=i,this._doCryptBlock(e,t,this._invKeySchedule,h,u,d,p,n);i=e[t+1];e[t+1]=e[t+3],e[t+3]=i},_doCryptBlock:function(e,t,i,s,n,o,r,a){for(var l=this._nRounds,c=e[t]^i[0],h=e[t+1]^i[1],u=e[t+2]^i[2],d=e[t+3]^i[3],p=4,f=1;f<l;f++){var g=s[c>>>24]^n[h>>>16&255]^o[u>>>8&255]^r[255&d]^i[p++],m=s[h>>>24]^n[u>>>16&255]^o[d>>>8&255]^r[255&c]^i[p++],v=s[u>>>24]^n[d>>>16&255]^o[c>>>8&255]^r[255&h]^i[p++],b=s[d>>>24]^n[c>>>16&255]^o[h>>>8&255]^r[255&u]^i[p++];c=g,h=m,u=v,d=b}g=(a[c>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^i[p++],m=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&c])^i[p++],v=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[c>>>8&255]<<8|a[255&h])^i[p++],b=(a[d>>>24]<<24|a[c>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^i[p++];e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=b},keySize:8});e.AES=t._createHelper(g)}(),function(){var e=l,t=e.lib,i=t.WordArray,s=t.BlockCipher,n=e.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],r=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c
vendor: 7,629 bytes, line 36
36=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 7,352 bytes, line 36
36h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=n.DES=s.extend({_doReset:function(){for(var e=this._key.words,t=[],i=0;i<56;i++){var s=o[i]-1;t[i]=e[s>>>5]>>>31-s%32&1}for(var n=this._subKeys=[],l=0;l<16;l++){var c=n[l]=[],h=a[l];for(i=0;i<24;i++)c[i/6|0]|=t[(r[i]-1+h)%28]<<31-i%6,c[4+(i/6|0)]|=t[28+(r[i+24]-1+h)%28]<<31-i%6;c[0]=c[0]<<1|c[0]>>>31;for(i=1;i<7;i++)c[i]=c[i]>>>4*(i-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(i=0;i<16;i++)u[i]=n[15-i]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,i){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var s=0;s<16;s++){for(var n=i[s],o=this._lBlock,r=this._rBlock,a=0,l=0;l<8;l++)a|=c[l][((r^n[l])&h[l])>>>0];this._lBlock=r,this._rBlock=o^a}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var i=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=i,this._lBlock^=i<<e}function p(e,t){var i=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=i,this._rBlock^=i<<e}e.DES=s._createHelper(u);var f=n.TripleDES=s.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),s=e.length<4?e.slice(0,2):e.slice(2,4),n=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(i.create(t)),this._des2=u.createEncryptor(i.create(s)),this._des3=u.createEncryptor(i.create(n))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=s._createHelper(f)}(),function(){var e=l,t=e.lib.StreamCipher,i=e.algo,s=i.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,i=e.sigBytes,s=this._S=[],n=0;n<256;n++)s[n]=n;n=0;for(var o=0;n<256;n++){var r=n%i,a=t[r>>>2]>>>24-r%4*8&255;o=(o+s[n]+a)%256;var l=s[n];s[n]=s[o],s[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=n.call(this)},keySize:8,ivSize:0});function n(){for(var e=this._S,t=this._i,i=this._j,s=0,n=0;n<4;n++){i=(i+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[i],e[i]=o,s|=e[(e[t]+e[i])%256]<<24-8*n}return this._i=t,this._j=i,s}e.RC4=t._createHelper(s);var o=i.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)n.call(this)}});e.RC4Drop=t._createHelper(o)}(),function(){var e=l,t=e.lib.StreamCipher,i=e.algo,s=[],n=[],o=[],r=i.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,i=0;i<4;i++)e[i]=16711935&(e[i]<<8|e[i]>>>24)|4278255360&(e[i]<<24|e[i]>>>8);var s=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(i=0;i<4;i++)a.call(this);for(i=0;i<8;i++)n[i]^=s[i+4&7];if(t){var o=t.words,r=o[0],l=o[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),h=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u=c>>>16|4294901760&h,d=h<<16|65535&c;n[0]^=c,n[1]^=u,n[2]^=h,n[3]^=d,n[4]^=c,n[5]^=u,n[6]^=h,n[7]^=d;for(i=0;i<4;i++)a.call(this)}},_doProcessBlock:function(e,t){var i=this._X;a.call(this),s[0]=i[0]^i[5]>>>16^i[3]<<16,s[1]=i[2]^i[7]>>>16^i[5]<<16,s[2]=i[4]^i[1]>>>16^i[7]<<16,s[3]=i[6]^i[3]>>>16^i[1]<<16;for(var n=0;n<4;n++)s[n]=16711935&(s[n]<<8|s[n]>>>24)|4278255360&(s[n]<<24|s[n]>>>8),e[t+n]^=s[n]},blockSize:4,ivSize:2});function a(){for(var e=this._X,t=this._C,i=0;i<8;i++)n[i]=t[i];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<n[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<n[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<n[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<n[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<n[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<n[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<n[6]>>>0?1:0)|0,this._b=t[7]>>>0<n[7]>>>0?1:0;for(i=0;i<8;i++){var s=e[i]+t[i],r=65535&s,a=s>>>16,l=((r*r>>>17)+r*a>>>15)+a*a,c=((4294901760&s)*s|0)+((65535&s)*s|0);o[i]=l^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=t._createHelper(r)}(),function(){var e=l,t=e.lib.StreamCipher,i=e.algo,s=[],n=[],o=[],r=i.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],s=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var n=0;n<4;n++)a.call(this);for(n=0;n<8;n++)s[n]^=i[n+4&7];if(t){var o=t.words,r=o[0],l=o[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),h=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u=c>>>16|4294901760&h,d=h<<16|65535&c;s[0]^=c,s[1]^=u,s[2]^=h,s[3]^=d,s[4]^=c,s[5]^=u,s[6]^=h,s[7]^=d;for(n=0;n<4;n++)a.call(this)}},_doProcessBlock:function(e,t){var i=this._X;a.call(this),s[0]=i[0]^i[5]>>>16^i[3]<<16,s[1]=i[2]^i[7]>>>16^i[5]<<16,s[2]=i[4]^i[1]>>>16^i[7]<<16,s[3]=i[6]^i[3]>>>16^i[1]<<16;for(var n=0;n<4;n++)s[n]=16711935&(s[n]<<8|s[n]>>>24)|4278255360&(s[n]<<24|s[n]>>>8),e[t+n]^=s[n]},blockSize:4,ivSize:2});function a(){for(var e=this._X,t=this._C,i=0;i<8;i++)n[i]=t[i];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<n[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<n[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<n[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<n[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<n[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<n[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<n[6]>>>0?1:0)|0,this._b=t[7]>>>0<n[7]>>>0?1:0;for(i=0;i<8;i++){var s=e[i]+t[i],r=65535&s,a=s>>>16,l=((r*r>>>17)+r*a>>>15)+a*a,c=((4294901760&s)*s|0)+((65535&s)*s|0);o[i]=l^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=t._createHelper(r)}(),function(){var e=l,t=e.lib.BlockCipher,i=e.algo;const s=16,n=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o
vendor: 11,038 bytes, line 36
36=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var
36r={pbox:[],sbox:[]};function a(e,t){let i=t>>24&255,s=t>>16&255,n=t>>8&255,o=255&t,r=e.sbox[0][i]+e.sbox[1][s];return r^=e.sbox[2][n],r+=e.sbox[3][o],r}function c(e,t,i){let n,o=t,r=i;for(let t=0;t<s;++t)o^=e.pbox[t],r=a(e,o)^r,n=o,o=r,r=n;return n=o,o=r,r=n,r^=e.pbox[s],o^=e.pbox[17],{left:o,right:r}}var h=i.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,i=e.sigBytes/4;!function(e,t,i){for(let t=0;t<4;t++){e.sbox[t]=[];for(let i=0;i<256;i++)e.sbox[t][i]=o[t][i]}let s=0;for(let o=0;o<18;o++)e.pbox[o]=n[o]^t[s],s++,s>=i&&(s=0);let r=0,a=0,l=0;for(let t=0;t<18;t+=2)l=c(e,r,a),r=l.left,a=l.right,e.pbox[t]=r,e.pbox[t+1]=a;for(let t=0;t<4;t++)for(let i=0;i<256;i+=2)l=c(e,r,a),r=l.left,a=l.right,e.sbox[t][i]=r,e.sbox[t][i+1]=a}(r,t,i)}},encryptBlock:function(e,t){var i=c(r,e[t],e[t+1]);e[t]=i.left,e[t+1]=i.right},decryptBlock:function(e,t){var i=function(e,t,i){let s,n=t,o=i;for(let t=17;t>1;--t)n^=e.pbox[t],o=a(e,n)^o,s=n,n=o,o=s;return s=n,n=o,o=s,o^=e.pbox[1],n^=e.pbox[0],{left:n,right:o}}(r,e[t],e[t+1]);e[t]=i.left,e[t+1]=i.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(h)}(),l})), 37/* @license The MIT License (MIT) Copyright (c) 2014 Damir Brekalo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 38function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}((function(e){var t=e(window.document),i=0,s=/\w\b/g,n={13:"enter",27:"escape",40:"downArrow",38:"upArrow",32:"space"};function o(e,t){this.init.apply(this,arguments)}return e.extend(o.prototype,{init:function(t,s){s=this.options=e.extend(!0,{}
38,o.defaults,s),this.$input=e(t),this.$el=s.wrapSelector instanceof e?s.wrapSelector:this.$input.closest(s.wrapSelector),o.pickTo(s,this.$el.data(),["url","onItemSelect","noResultsText","inputIdName","apiInputName"]),s.url=s.url||this.$el.attr("action"),this.ens=".fastsearch"+ ++i,this.itemSelector=o.selectorFromClass(s.itemClass),this.focusedItemSelector=o.selectorFromClass(s.focusedItemClass),this.events()},namespaceEvents:function(e){var t=this.ens;return e.replace(s,(function(e){return e+t}))},events:function(){var t=this,i=this.options;this.$input.on(this.namespaceEvents("keyup focus click"),(function(e){"enter"!==n[e.keyCode]&&t.handleTyping()})).on(this.namespaceEvents("keydown"),(function(e){if("enter"===n[e.keyCode]&&i.preventSubmit&&e.preventDefault(),t.hasResults&&t.resultsOpened)switch(n[e.keyCode]){case"downArrow":e.preventDefault(),t.navigateItem("down");break;case"upArrow":e.preventDefault(),t.navigateItem("up");break;case"enter":t.onEnter(e)}})),this.$el.on(this.namespaceEvents("click"),this.itemSelector,(function(i){i.preventDefault(),t.handleItemSelect(e(this))})),i.mouseEvents&&this.$el.on(this.namespaceEvents("mouseleave"),this.itemSelector,(function(t){e(this).removeClass(i.focusedItemClass)})).on(this.namespaceEvents("mouseenter"),this.itemSelector,(function(s){t.$resultItems.removeClass(i.focusedItemClass),e(this).addClass(i.focusedItemClass)}))},handleTyping:function(){var t=e.trim(this.$input.val()),i=this;t.length<this.options.minQueryLength?this.hideResults():t===this.query?this.showResults():(clearTimeout(this.keyupTimeout),this.keyupTimeout=setTimeout((function(){i.$el.addClass(i.options.loadingClass),i.query=t,i.getResults((function(e){i.showResults(i.storeResponse(e).generateResults(e))}))}),this.options.typeTimeout))},getResults:function(t){var i=this,s=this.options,n=this.$el.find("input, textarea, select").serializeArray();s.apiInputName&&n.push({name:s.apiInputName,value:this.$input.val()}),e.get(s.url,n,(function(e){t(s.parseResponse?s.parseResponse.call(i,e,i):e)}))},storeResponse:function(e){return this.responseData=e,this.hasResults=0!==e.length,this},generateResults:function(t){var i=e("<div>"),s=this.options;return s.template?e(s.template(t,this)):(0===t.length?i.html('<p class="'+s.noResultsClass+'">'+("function"==typeof s.noResultsText?s.noResultsText.call(this):s.noResultsText)+"</p>"):"html"===this.options.responseType?i.html(t):this["generate"+(t[0][s.responseFormat.groupItems]?"GroupedResults":"SimpleResults")](t,i),i.children())},generateSimpleResults:function(t,i){var s=this;this.itemModels=t,e.each(t,(function(e,t){i.append(s.generateItem(t))}))},generateGroupedResults:function(t,i){var s=this,n=this.options,o=n.responseFormat;this.itemModels=[],e.each(t,(function(t,r){var a=e('<div class="'+n.groupClass+'">').appendTo(i);r[o.groupCaption]&&a.append('<h3 class="'+n.groupTitleClass+'">'+r[o.groupCaption]+"</h3>"),e.each(r.items,(function(e,t){s.itemModels.push(t),a.append(s.generateItem(t))})),n.onGroupCreate&&n.onGroupCreate.call(s,a,r,s)}))},generateItem:function(t){var i=this,s=this.options,n=s.responseFormat,o=t[n.url],r=t[n.html]||t[n.label],a=e('<span tabindex="0">').html(r).addClass(s.itemClass);return a.on("keydown",(function(e){13===e.keyCode&&i.onEnter(e),32===e.keyCode&&i.onEnter(e),40===e.keyCode&&i.navigateItem("down"),38===e.keyCode&&i.navigateItem("up")})),o&&a.attr("href",o),s.onItemCreate&&s.onItemCreate.call(this,a,t,this),a},showResults:function(t){!t&&this.resultsOpened||(this.$el.removeClass(this.options.loadingClass).addClass(this.options.resultsOpenedClass),this.options.flipOnBottom&&this.checkDropdownPosition(),this.$resultsCont=this.$resultsCont||e("<div>").attr("id","fstResults-"+this.options.elementId).addClass(this.options.resultsContClass).attr("aria-live","polite").appendTo(this.$el),t&&(this.$resultsCont.html(t),this.$resultItems=this.$resultsCont.find(this.itemSelector),this.options.onResultsCreate&&this.options.onResultsCreate.call(this,this.$resultsCont,this.responseData,this)),this.resultsOpened||(this.documentCancelEvents("on"),this.$input.trigger("openingResults")),this.options.focusFirstItem&&this.$resultItems&&this.$resultItems.length&&this.navigateItem("down"),this.resultsOpened=!0)},checkDropdownPosition:function(){var e=this.options.flipOnBottom,i="boolean"==typeof e&&e?400:e,s=this.$input.offset().top+i>t.height();this.$el.toggleClass(this.options.resultsFlippedClass,s)},documentCancelEvents:function(i,s){var o=this;if("off"===i&&this.closeEventsSetuped)return t.off(this.ens),void(this.closeEventsSetuped=!1);"on"!==i||this.closeEventsSetuped||(t.on(this.namespaceEvents("touchstart click keyup"),(function(t){("escape"===n[t.keyCode]||!e(t.target).is(o.$el)&&!e.contains(o.$el.get(0),t.target)&&e.contains(document.documentElement,t.target))&&(s?s.c
38all(o):o.hideResults())})),this.closeEventsSetuped=!0)},navigateItem:function(e){var t=this.$resultItems.filter(":focus"),i=this.$resultItems.length-1;if(0!==t.length){var s=this.$resultItems.index(t),n="up"===e?s-1:s+1;n>i&&(n=0),n<0&&(n=i),t.removeClass(this.options.focusedItemClass),this.$resultItems.eq(n).focus(),this.$input.attr("aria-activedescendant",t.text())}else this.$resultItems.eq("up"===e?i:0).focus()},navigateDown:function(){this.navigateItem("down")},navigateUp:function(){this.navigateItem("up")},onEnter:function(e){var t=this.$resultItems.filter(":focus");t.length&&(e.preventDefault(),this.handleItemSelect(t))},handleItemSelect:function(e){var t=this.options.onItemSelect,i=this.itemModels.length?this.itemModels[this.$resultItems.index(e)]:{};this.$input.trigger("itemSelected"),"fillInput"===t?this.fillInput(i):"follow"===t?window.location.href=e.attr("href"):"function"==typeof t&&(t.call(this,e,i,this),this.$input.focus())},fillInput:function(t){var i=this.options,s=i.responseFormat;if(this.query=t[s.label],this.$input.val(t[s.label]).trigger("change"),i.fillInputId&&t.id){if(!this.$inputId){var n=i.inputIdName||this.$input.attr("name")+"_id";this.$inputId=this.$el.find('input[name="'+n+'"]'),this.$inputId.length||(this.$inputId=e('<input type="hidden" name="'+n+'" />').appendTo(this.$el))}this.$inputId.val(t.id).trigger("change")}this.hideResults()},hideResults:function(){return this.resultsOpened&&(this.resultsOpened=!1,this.$el.removeClass(this.options.resultsOpenedClass),this.$input.trigger("closingResults"),this.documentCancelEvents("off")),this},clear:function(){return this.hideResults(),this.$input.val("").trigger("change"),this},destroy:function(){t.off(this.ens),this.$input.off(this.ens),this.$el.off(this.ens).removeClass(this.options.resultsOpenedClass).removeClass(this.options.loadingClass),this.$resultsCont&&(this.$resultsCont.remove(),delete this.$resultsCont),delete this.$el.data().fastsearch}}),e.extend(o,{pickTo:function(t,i,s){return e.each(s,(function(e,s){t[s]=i&&i[s]||t[s]})),t},selectorFromClass:function(e){return"."+e.replace(/\s/g,".")}}),o.defaults={wrapSelector:"form",url:null,responseType:"JSON",preventSubmit:!1,resultsContClass:"fs_results",resultsOpenedClass:"fsr_opened",resultsFlippedClass:"fsr_flipped",groupClass:"fs_group",itemClass:"fs_result_item",groupTitleClass:"fs_group_title",loadingClass:"loading",noResultsClass:"fs_no_results",focusedItemClass:"focused",typeTimeout:140,minQueryLength:2,template:null,mouseEvents:!("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),focusFirstItem:!1,flipOnBottom:!1,elementId:null,responseFormat:{url:"url",html:"html",label:"label",groupCaption:"caption",groupItems:"items"},fillInputId:!0,inputIdName:null,apiInputName:null,noResultsText:"No results found",onItemSelect:"follow",parseResponse:null,onResultsCreate:null,onGroupCreate:null,onItemCreate:null},e.fastsearch=o,e.fn.fastsearch=function(t){return this.each((function(){e.data(this,"fastsearch")||e.data(this,"fastsearch",new o(this,t))}))},e})), 39/* @license The MIT License (MIT) Copyright (c) 2015 Damir Brekalo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 40function(e,t){"function"==typeof define&&define.amd?define(["jquery","fastsearch"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),require("fastsearch")):t(e.jQuery)}(this,(function(e){var t=e(document),i=0,s=e.fastsearch,n=s.pickTo,o=s.selectorFromClass;function r(e,t){this.init.apply(this,arguments)}function a(e){this.init(e)}return e.extend(r.prototype,{init:function(t,s){this.inputElement=t,this.ens=".fastselect"+ ++i,this.$input
40=e(t),this.id=i,this.helptextText=this.$input.data("multiselect-helptext"),this.options=n(e.extend(!0,{},r.defaults,s,{placeholder:this.$input.attr("placeholder")}),this.$input.data(),["url","loadOnce","apiParam","initialValue","userOptionAllowed"]),this.hasCustomLoader=this.$input.is("input"),this.isMultiple=!!this.$input.attr("multiple"),this.userOptionAllowed=this.hasCustomLoader&&this.isMultiple&&this.options.userOptionAllowed,this.optionsCollection=new a(n({multipleValues:this.isMultiple},this.options,["url","loadOnce","parseData","matcher"])),this.setupDomElements(),this.setupFastsearch(),this.setupEvents(),this.options.isDisabled&&this.$el.addClass("is-disabled")},setupDomElements:function(){this.$el=e("<div>").addClass(this.options.elementClass),this[this.isMultiple?"setupMultipleElement":"setupSingleElement"]((function(){this.updateDomElements(),this.$controls.appendTo(this.$el),this.$el.insertAfter(this.$input),this.$input.detach().appendTo(this.$el)}))},setupSingleElement:function(t){var i=this.processInitialOptions(),s=i&&i.length?i[0].text:this.options.placeholder;this.$el.addClass(this.options.singleModeClass),this.$controls=e("<div>").addClass(this.options.controlsClass),this.$toggleBtn=e("<div>").addClass(this.options.toggleButtonClass).text(s).appendTo(this.$el),this.$queryInput=e("<input>").attr("aria-describedby",this.id).attr("placeholder",this.options.searchPlaceholder).addClass(this.options.queryInputClass).appendTo(this.$controls),this.$queryInput.disabled=this.options.isDisabled,this.$inputHelptext=e("<p>").attr("id",this.id).addClass(this.options.inputHelptextClass).addClass("visually-hidden").text(this.helptextText).insertBefore(this.$controls),t.call(this)},setupMultipleElement:function(t){var i=this,s=i.options,n=(n&&n.length?n[0].text:this.options.placeholder,this.processInitialOptions());this.$el.addClass(s.multipleModeClass),this.$controls=e("<div>").addClass(s.controlsClass),this.options.isDisabled?this.$queryInput=e("<input>").attr({"aria-expanded":!1,"aria-activedescendant":"","aria-autocomplete":"both",disabled:!0,"aria-describedby":"fstHelptext-"+this.id}).attr("aria-owns","fstResults-"+this.id).addClass(s.queryInputClass).appendTo(this.$controls):this.$queryInput=e("<input>").attr({"aria-expanded":!1,"aria-activedescendant":"","aria-autocomplete":"both","aria-describedby":"fstHelptext-"+this.id}).attr("aria-owns","fstResults-"+this.id).addClass(s.queryInputClass).appendTo(this.$controls),this.$inputHelptext=e("<p>
40").attr("id","fstHelptext-"+this.id).addClass(this.options.inputHelptextClass).addClass("visually-hidden").text(this.helptextText).appendTo(this.$el),n&&e.each(n,(function(e,t){i.addChoiceItem(t)})),t.call(this)},updateDomElements:function(){this.$el.toggleClass(this.options.noneSelectedClass,!this.optionsCollection.hasSelectedValues()),this.adjustQueryInputLayout()},processInitialOptions:function(){var t,i=this;return this.hasCustomLoader?(t=this.options.initialValue,e.isPlainObject(t)&&(t=[t])):t=e.map(this.$input.find("option:selected").get(),(function(t){var i=e(t);return{text:i.text(),value:i.attr("value")}})),t&&e.each(t,(function(e,t){i.optionsCollection.setSelected(t)})),t},addChoiceItem:function(t){e('<div data-text="'+t.text+'" data-value="'+t.value+'" class="'+this.options.choiceItemClass+'">'+e("<div>").html(t.text).text()+'<button class="'+this.options.choiceRemoveClass+'" type="button" aria-label="Item verwijderen: '+t.text+'">Ã</button></div>').insertBefore(this.$queryInput),this.setSelectChoiceToSelected(t.value)},setSelectChoiceToSelected:function(t){this.$input.find("option").each((function(){e(this).val()===t&&e(this).attr("selected",!0)}))},removeSelectChoiceToSelected:function(t){this.$input.find("option").each((function(){e(this).val()===t&&e(this).attr("selected",!1)}))},setupFastsearch:function(){var t=this,i=this.options,o={};n(o,i,["resultsContClass","resultsOpenedClass","resultsFlippedClass","groupClass","itemClass","focusFirstItem","groupTitleClass","loadingClass","noResultsClass","noResultsText","focusedItemClass","flipOnBottom"]),this.fastsearch=new s(this.$queryInput.get(0),e.extend(o,{wrapSelector:this.isMultiple?this.$el:this.$controls,minQueryLength:0,typeTimeout:this.hasCustomLoader?i.typeTimeout:0,preventSubmit:!0,fillInputId:!1,elementId:this.id,activeClass:this.options.activeClass,responseFormat:{label:"text",groupCaption:"label"},onItemSelect:function(e,s,n){var o=i.maxItems;t.isMultiple&&o&&t.optionsCollection.getValues().length>o-1?i.onMaxItemsReached&&i.onMaxItemsReached(this):(t.setSelectedOption(s),t.writeToInput(),!t.isMultiple&&t.hide(),i.clearQueryOnSelect&&n.clear(),t.userOptionAllowed&&s.isUserOption&&(n.$resultsCont.remove(),delete n.$resultsCont,t.hide()),i.onItemSelect&&i.onItemSelect.call(t,e,s,t,n))},onItemCreate:function(e,s){s.$item=e,s.selected&&e.addClass(i.itemSelectedClass),t.userOptionAllowed&&s.isUserOption&&e.text(t.options.userOptionPrefix+e.text()).addClass(t.options.userOptionClass),i.onItemCreate&&i.onItemCreate.call(t,e,s,t)}})),this.fastsearch.getResults=function(){t.userOptionAllowed&&t.$queryInput.val().length>1&&t.renderOptions(),t.getOptions((function(){t.renderOptions(!0)}))}},getOptions:function(t){var i=this.options,s={};if(this.hasCustomLoader){var n=e.trim(this.$queryInput.val());n&&i.apiParam&&(s[i.apiParam]=n),this.optionsCollection.fetch(s,t)}else!this.optionsCollection.models&&this.optionsCollection.reset(this.gleanSelectData(this.$input)),t()},namespaceEvents:function(e){return s.prototype.namespaceEvents.call(this,e)},setupEvents:function(){var t=this,i=this.options;this.options.isDisabled||(this.isMultiple?(this.$el.on(this.namespaceEvents("click"),(function(s){e(s.target).is(o(i.controlsClass))&&t.$queryInput.focus()})),this.$queryInput.on(this.namespaceEvents("keyup"),(function(e){t.adjustQueryInputLayout(),t.show()})).on(this.namespaceEvents("focus"),(function(){t.show()})),this.$el.on(this.namespaceEvents("click"),o(i.choiceRemoveClass),(function(s){var n=e(s.currentTarget).closest(o(i.choiceItemClass));t.hideAll(),e(this).parent().parent().find("input")[0].focus(),t.removeSelectedOption({value:n.attr("data-value"),text:n.attr("data-text")},n)}))):this.$el.on(this.namespaceEvents("click"),o(i.toggleButtonClass),(function(){t.$el.hasClass(i.activeClass)?t.hide():t.show(!0)})))},adjustQueryInputLayout:function(){if(this.isMultiple&&this.$queryInput){var t=this.$el.hasClass(this.options.noneSelectedClass);this.$queryInput.toggleClass(this.options.queryInputExpandedClass,t),t?this.$queryInput.attr({style:"",placeholder:this.options.placeholder}):(this.$fakeInput=this.$fakeInput||e("<span>").addClass(this.options.fakeInputClass),this.$fakeInput.text(this.$queryInput.val().replace(/\s/g," ")),this.$queryInput.removeAttr("placeholder").css("width",this.$fakeInput.insertAfter(this.$queryInput).width()+20),this.$fakeInput.detach())}},show:function(e){this.$el.addClass(this.options.activeClass),e?this.$queryInput.focus():this.fastsearch.handleTyping(),this.$queryInput.attr("aria-expanded",!0),this.documentCancelEvents("on")},hide:function(){this.$queryInput.attr("aria-expanded",!1),this.$queryInput.attr("aria-activedescendant",""),this.$el.removeClass(this.options.activeClass),this.documentCancelEvents("off")},hideAll:function(){e(".multiselect__input").attr("aria-expanded",!1),e(".multiselect__input").attr("aria-activedescendant",""),e("div.multiselect__container").removeClass(this.options.activeClass),this.documentCancelEvents("off")},documentCancelEvents:function(e){s.prototype.documentCancelEvents.call(this,e,this.hide)},setSelectedOption:function(e){if(this.optionsCollection.isSelected(e.value)){document.querySelector('[data-value="'+e.value+'"]').querySelector(".multiselect__choiceremove").click()}else{this.optionsCollection.setSelected(e);var t=this.optionsCollection.findWhere((function(t){return t.value===e.value}));this.isMultiple?this.$controls&&this.addChoiceItem(e):(this.fastsearch&&this.fastsearch.$resultItems.removeClass(this.options.itemSelectedClass),this.$toggleBtn&&this.$toggleBtn.text(e.text)),t&&t.$item.addClass(this.options.itemSelectedClass),this.updateDomElements()}},removeSelectedOption:function(e,t){var i=this.optionsCollection.removeSelected(e);i&&i.$item&&i.$item.removeClass(this.options.itemSelectedClass),t?t.remove():this.$el.find(o(this.options.choiceItemClass)+'[data-value="'+e.value+'"]').remove(),this.updateDomElements(),this.writeToInput(),this.removeSelectChoiceToSelected(e.value)}
40,writeToInput:function(){var e=this.optionsCollection.getValues(),t=this.options.valueDelimiter,i=this.isMultiple?this.hasCustomLoader?e.join(t):e:e[0];this.$input.val(i).trigger("change")},renderOptions:function(e){var t,i=this.$queryInput.val();if(t=this.optionsCollection.models?(e?this.optionsCollection.filter(i):this.optionsCollection.models).slice(0):[],this.userOptionAllowed){var s=this.optionsCollection.models&&this.optionsCollection.findWhere((function(e){return e.value===i}));i&&!s&&t.unshift({text:i,value:i,isUserOption:!0})}this.fastsearch.showResults(this.fastsearch.storeResponse(t).generateResults(t))},gleanSelectData:function(t){var i=this,s=t.children();return s.eq(0).is("optgroup")?e.map(s.get(),(function(t){var s=e(t);return{label:s.attr("label"),items:i.gleanOptionsData(s.children())}})):this.gleanOptionsData(s)},gleanOptionsData:function(t){return e.map(t.get(),(function(t){var i=e(t);return{text:i.text(),value:i.attr("value"),selected:i.is(":selected")}}))},destroy:function(){t.off(this.ens),this.fastsearch.destroy(),this.$input.off(this.ens).detach().insertAfter(this.$el),this.$el.off(this.ens).remove(),this.$input.data()&&delete this.$input.data().fastselect}}),e.extend(a.prototype,{defaults:{loadOnce:!1,url:null,parseData:null,multipleValues:!1,matcher:function(e,t){return e.toLowerCase().indexOf(t.toLowerCase())>-1}},init:function(t){this.options=e.extend({},this.defaults,t),this.selectedValues={}},fetch:function(e,t){var i=this,s=function(){i.applySelectedValues(t)};this.options.loadOnce?(this.fetchDeferred=this.fetchDeferred||this.load(e),this.fetchDeferred.done(s)):this.load(e,s)},reset:function(e){this.models=this.options.parseData?this.options.parseData(e):e,this.applySelectedValues()},applySelectedValues:function(e){this.each((function(e){this.options.multipleValues&&e.selected?this.selectedValues[e.value]=!0:e.selected=!!this.selectedValues[e.value]})),e&&e.call(this)},load:function(t,i){var s=this,n=this.options;return e.get(n.url,t,(function(e){s.models=n.parseData?n.parseData(e):e,i&&i.call(s)}))},setSelected:function(e){this.options.multipleValues||(this.selectedValues={}),this.selectedValues[e.value]=!0,this.applySelectedValues()},removeSelected:function(e){var t=this.findWhere((function(t){return e.value===t.value}));return t&&(t.selected=!1),delete this.selectedValues[e.value],t},isSelected:function(e){return!!this.selectedValues[e]},hasSelectedValues:function(){return this.getValues().length>0},each:function(t){var i=this;this.models&&e.each(this.models,(function(s,n){n.items?e.each(n.items,(function(e,s){t.call(i,s)})):t.call(i,n)}))},where:function(e){var t=[];return this.each((function(i){e(i)&&t.push(i)})),t},findWhere:function(e){var t=this.where(e);return t.length?t[0]:void 0},filter:function(t){var i=this;function s(e){return i.options.matcher(e.text,t)?e:null}return t&&0!==t.length?e.map(this.models,(function(t){if(t.items){var i=e.map(t.items,s);return i.length?{label:t.label,items:i}:null}return s(t)})):this.models},getValues:function(){return e.map(this.selectedValues,(function(e,t){return e?t:null}))}}),r.defaults={elementClass:"fstElement",singleModeClass:"fstSingleMode",noneSelectedClass:"fstNoneSelected",multipleModeClass:"fstMultipleMode",queryInputClass:"fstQueryInput",inputHelptextClass:"fstInputHelptext",queryInputExpandedClass:"fstQueryInputExpanded",fakeInputClass:"fstFakeInput",controlsClass:"fstControls",toggleButtonClass:"fstToggleBtn",activeClass:"fstActive",itemSelectedClass:"fstSelected",choiceItemClass:"fstChoiceItem",choiceRemoveClass:"fstChoiceRemove",userOptionClass:"fstUserOption",resultsContClass:"fstResults",resultsOpenedClass:"fstResultsOpened",resultsFlippedClass:"fstResultsFilpped",groupClass:"fstGroup",itemClass:"fstResultItem",groupTitleClass:"fstGroupTitle",loadingClass:"fstLoading",noResultsClass:"fstNoResults",focusedItemClass:"fstFocused",matcher:null,url:null,loadOnce:!1,apiParam:"query",initialValue:null,clearQueryOnSelect:!0,minQueryLength:1,focusFirstItem:!1,flipOnBottom:!0,typeTimeout:150,userOptionAllowed:!1,valueDelimiter:",",maxItems:null,parseData:null,onItemSelect:function(t){var i=t[0].parentNode.querySelectorAll(".multiselect__result"),s=t[0].innerHTML;if(labelStart=s.substring(0,5),"Alle "===labelStart){for(var n=i[0].closest(".select-multi").querySelectorAll(".multiselect__choice"),o=0;o<i.length;o++)if(0!=o)for(var r=0;r<n.length;
40r++){(l=(l=(l=n[r].innerText).substring(0,l.length-1)).replace(/(\r\n|\n|\r)/gm,""))===i[o].innerHTML&&this.removeSelectedOption({value:e(n[r]).attr("data-value"),text:e(n[r]).attr("data-text")},e(n[r]))}}else if("Alle "===i[0].innerHTML.substring(0,5)&&i[0].classList.contains("is-selected")){n=i[0].closest(".select-multi").querySelectorAll(".multiselect__choice");for(var a=0;a<n.length;a++){var l;(l=(l=(l=n[a].innerText).substring(0,l.length-1)).replace(/(\r\n|\n|\r)/gm,""))===i[0].innerHTML&&this.removeSelectedOption({value:e(n[a]).attr("data-value"),text:e(n[a]).attr("data-text")},e(n[a]))}}},onItemCreate:null,onMaxItemsReached:null,placeholder:"Kies een optie",searchPlaceholder:"Zoek opties",noResultsText:"Geen resultaten",userOptionPrefix:"Toevoegen "},e.Fastselect=r,e.Fastselect.OptionsCollection=a,e.fn.fastselect=function(t){return this.each((function(){e.data(this,"fastselect")||e.data(this,"fastselect",new r(this,t))}))},e})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e;function t(){return e.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(n(e,t))return;return 1}function r(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){for(var i=[],s=e.length,n=0;n<s;++n)i.push(t(e[n],n));return i}function h(e,t){for(var i in t)n(t,i)&&(e[i]=t[i]);return n(t,"toString")&&(e.toString=t.toString),n(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,i,s){return vt(e,t,i,s,!0).utc()}function d(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){var t,i,s=e._d&&!isNaN(e._d.getTime());return s&&(t=d(e),i=g.call(t.parsedDateParts,(function(e){return null!=e})),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i),e._strict)&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?s:(e._isValid=s,e._isValid)}function f(e){var t=u(NaN);return null!=e?h(d(t),e):d(t).userInvalidated=!0,t}var g=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,s=0;s<i;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1},m=t.momentProperties=[],v=!1;function b(e,t){var i,s,n,o=m.length;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=d(t)),r(t._locale)||(e._locale=t._locale),0<o)for(i=0;i<o;i++)r(n=t[s=m[i]])||(e[s]=n);return e}function y(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,t.updateOffset(this),v=!1)}function _(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function x(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,i){var s=!0;return h((function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),s){for(var o,r,a=[],l=arguments.length,c=0;c<l;c++){if(o="","object"==typeof arguments[c]){for(r in o+="\n["+c+"] ",arguments[0])n(arguments[0],r)&&(o+=r+": "+arguments[0][r]+", ");o=o.slice(0,-2)}else o=arguments[c];a.push(o)}x(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),s=!1}return i.apply(this,arguments)}),i)}var k={};function C(e,i){null!=t.deprecationHandler&&t.deprecationHandler(e,i
40),k[e]||(x(i),k[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var i,o=h({},e);for(i in t)n(t,i)&&(s(e[i])&&s(t[i])?(o[i]={},h(o[i],e[i]),h(o[i],t[i])):null!=t[i]?o[i]=t[i]:delete o[i]);for(i in e)n(e,i)&&!n(t,i)&&s(e[i])&&(o[i]=h({},o[i]));return o}function T(e){null!=e&&this.set(e)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var D=Object.keys||function(e){var t,i=[];for(t in e)n(e,t)&&i.push(t);return i};function E(e,t,i){var s=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},P={};function O(e,t,i,s){var n="string"==typeof s?function(){return this[s]()}:s;e&&(P[e]=n),t&&(P[t[0]]=function(){return E(n.apply(this,arguments),t[1],t[2])}),i&&(P[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function H(e,t){return e.isValid()?(t=N(t,e.localeData()),I[t]=I[t]||function(e){for(var t,i=e.match(M),s=0,n=i.length;s<n;s++)P[i[s]]?i[s]=P[i[s]]:i[s]=(t=i[s]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var s="",o=0;o<n;o++)s+=S(i[o])?i[o].call(t,e):i[o];return s}}(t),I[t](e)):e.localeData().invalidDate()}function N(e,t){var i=5;function s(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;0<=i&&L.test(e);)e=e.replace(L,s),L.lastIndex=0,--i;return e}var F={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function R(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function q(e){var t,i,s={};for(i in e)n(e,i)&&(t=R(i))&&(s[t]=e[i]);return s}var $={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},j=/\d/,z=/\d\d/,B=/\d{3}/,W=/\d{4}/,Y=/[+-]?\d{6}/,V=/\d\d?/,U=/\d\d\d\d?/,G=/\d\d\d\d\d\d?/,K=/\d{1,3}/,X=/\d{1,4}/,J=/[+-]?\d{1,6}/,Z=/\d+/,Q=/[+-]?\d+/,ee=/Z|[+-]\d\d:?\d\d/gi,te=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,se=/^[1-9]\d?/,ne=/^([1-9]\d|\d)/;function oe(e,t,i){he[e]=S(t)?t:function(e,s){return e&&i?i:t}}function re(e,t){return n(he,e)?he[e](t._strict,t._locale):new RegExp(ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,s,n){return t||i||s||n}))))}function ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=0;return 0!=(e=+e)&&isFinite(e)?le(e):t}var he={},ue={};function de(e,t){var i,s,n=t;for("string"==typeof e&&(e=[e]),a(t)&&(n=function(e,i){i[t]=ce(e)}),s=e.length,i=0;i<s;i++)ue[e[i]]=n}function pe(e,t){de(e,(function(e,i,s,n){s._w=s._w||{},t(e,s._w,s,n)}))}function fe(e){return e%4==0&&e%100!=0||e%400==0}function ge(e){return fe(e)?366:365}O("Y",0,0,(function(){var e=this.year();return e<=9999?E(e,4):"+"+e})),O(0,["YY",2],0,(function(){return this.year()%100})),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,!0],0,"year"),oe("Y",Q),oe("YY",V,z),oe("YYYY",X,W),oe("YYYYY",J,Y),oe("YYYYYY",J,Y),de(["YYYYY","YYYYYY"],0),de("YYYY",(function(e,i){i[0]=2===e.length?t.parseTwoDigitYear(e):ce(e)})),de("YY",(function(e,i){i[0]=t.parseTwoDigitYear(e)})),de("Y",(function(e,t){t[0]=parseInt(e,10)})),t.parseTwoDigitYear=function(e){return ce(e)+(68<ce(e)?1900:2e3)};var me,ve=be("FullYear",!0);function be(e,i){return function(s){return null!=s?(_e(this,e,s),t.updateOffset(this,i),this):ye(this,e)}}function ye(e,t){if(!e.isValid())return NaN;var i=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return s?i.getUTCSeconds():i.getSeconds();case"Minutes":return s?i.getUTCMinutes():i.getMinutes();case"Hours":return s?i.getUTCHours():i.getHours();case"Date":return s?i.getUTCDate():i.getDate();case"Day":return s?i.getUTCDay():i.getDay();case"Month":return s?i.getUTCMonth():i.getMonth();case"FullYear":return s?i.getUTCFullYear():i.getFullYear();default:return NaN}}function _e(e,t,i){var s,n,o;if(e.isValid()&&!isNaN(i)){switch(s=e._d,n=e._isUTC,t){case"Milliseconds":return n?s.setUTCMilliseconds(i):s.setMilliseconds(i);case"Seconds":return n?s.setUTCSeconds(i):s.setSeconds(i);case"Minutes":return n?s.setUTCMinutes(i):s.setMinutes(i);case"Hours":return n?s.setUTCHours(i):s.setHours(i);case"Date":return n?s.setUTCDate(i):s.setDate(i);case"FullYear":break;default:return}t=i,o=e.month(),e=29!==(e=e.date())||1!==o||fe(t)?e:28,n?s.setUTCFullYear(t,o,e):s.setFullYear(t,o,e)}}function xe(e,t){var i;return isNaN(e)||isNaN(t)?NaN:(e+=(t-(i=(t%(i=12)+i)%i))/12,1==i?fe(e)?29:28:31-i%7%2)}me=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},O("M",["MM",2],"Mo",(function(){return this.month()+1})),O("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),O("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),oe("M",V,se),oe("MM",V,z),oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),oe("MMMM",(function(e,t){return t.monthsRegex(e)})),de(["M","MM"],(function(e,t){t[1]=ce(e)-1})),de(["MMM","MMMM"],(function(e,t,i,s){null!=(s=i._locale.monthsParse(e,s,i._strict))?t[1]=s:d(i).invalidMonth=e}));var we="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ce=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=ie,Ae=ie;function Te(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!a(t=e.localeData().monthsParse(t)))return;var i=(i=e.date())<29?i:Math.min(i,xe(e.year(),t));e._isUTC?e._d.setUTCMonth(t,i):e._d.setMonth(t,i)}}function De(e){return null!=e?(Te(this,e),t.updateOffset(this,!0),this):ye(this,"Month")}function Ee(){function e(e,t){return t.length-e.length}for(var t,i,s=[],n=[],o=[],r=0;r<12;r++)i=u([2e3,r]),t=ae(this.monthsShort(i,"")),i=ae(this.months(i,"")),s.push(t),n.push(i),o.push(i),o.push(t);s.sort(e),n.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Me(e,t,i,s,n,o,r){var a;return e<100&&0<=e?(a=new Date(e+400,t,i,s,n,o,r),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,i,s,n,o,r),a}function Le(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,i){return(i=7+t-i)-(7+Le(e,0,i).getUTCDay()-t)%7-1}function Pe(e,t,i,s,n){var o;i=(t=1+7*(t-1)+(7+i-s)%7+Ie(e,s,n))<=0?ge(o=e-1)+t:t>ge(e)?(o=e+1,t-ge(e)):(o=e,t);return{year:o,dayOfYear:i}}function Oe(e,t,i){var s,n,o=Ie(e.year(),t,i);return(o=Math.floor((e.dayOfYear()-o-1)/7)+1)<1?s=o+He(n=e.year()-1,t,i):o>He(e.year(),t,i)?(s=o-He(e.year(),t,i),n=e.year()+1):(n=e.year(),s=o),{week:s,year:n}}function He(e,t,i){var s=Ie(e,t,i);t=Ie(e+1,t,i);return(ge(e)-s+t)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),oe("w",V,se),oe("ww",V,z),oe("W",V,se),oe("WW",V,z),pe(["w","ww","W","WW"],(function(e,t,i,s){t[s.substr(0,1)]=ce(e)})),O("d",0,"do","day"),O("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),O("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),O("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),oe("d",V),oe("e",V),oe("E",V),oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,i,s){null!=(s=i._locale.weekdaysParse(e,s,i._strict))?t.d=s:d(i).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,i,s){t[s]=ce(e)}));var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$e=ie,je=ie,ze=ie;function Be(){function e(e,t){return t.length-e.length}for(var t,i,s,n=[],o=[],r=[],a=[],l=0;l<7;l++)s=u([2e3,1]).day(l),t=ae(this.weekdaysMin(s,"")),i=ae(this.weekdaysShort(s,"")),s=ae(this.weekdays(s,"")),n.push(t),o.push(i),r.push(s),a.push(t),a.push(i),a.push(s);n.sort(e),o.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function We(){return this.hours()%12||12}function Ye(e,t){O(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ve(e,t){return t._meridiemParse}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,We),O("k",["kk",2],0,(function(){return this.hours()||24}
40)),O("hmm",0,0,(function(){return""+We.apply(this)+E(this.minutes(),2)})),O("hmmss",0,0,(function(){return""+We.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),O("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),O("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),Ye("a",!0),Ye("A",!1),oe("a",Ve),oe("A",Ve),oe("H",V,ne),oe("h",V,se),oe("k",V,se),oe("HH",V,z),oe("hh",V,z),oe("kk",V,z),oe("hmm",U),oe("hmmss",G),oe("Hmm",U),oe("Hmmss",G),de(["H","HH"],3),de(["k","kk"],(function(e,t,i){e=ce(e),t[3]=24===e?0:e})),de(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),de(["h","hh"],(function(e,t,i){t[3]=ce(e),d(i).bigHour=!0})),de("hmm",(function(e,t,i){var s=e.length-2;t[3]=ce(e.substr(0,s)),t[4]=ce(e.substr(s)),d(i).bigHour=!0})),de("hmmss",(function(e,t,i){var s=e.length-4,n=e.length-2;t[3]=ce(e.substr(0,s)),t[4]=ce(e.substr(s,2)),t[5]=ce(e.substr(n)),d(i).bigHour=!0})),de("Hmm",(function(e,t,i){var s=e.length-2;t[3]=ce(e.substr(0,s)),t[4]=ce(e.substr(s))})),de("Hmmss",(function(e,t,i){var s=e.length-4,n=e.length-2;t[3]=ce(e.substr(0,s)),t[4]=ce(e.substr(s,2)),t[5]=ce(e.substr(n))})),ie=be("Hours",!0);var Ue,Ge={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:we,monthsShort:ke,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:qe,weekdaysShort:Re,meridiemParse:/[ap]\.?m?\.?/i},Ke={},Xe={};function Je(e){return e&&e.toLowerCase().replace("_","-")}function Ze(e){var t,i;if(void 0===Ke[e]&&"undefined"!=typeof module&&module&&module.exports&&(i=e)&&i.match("^[^/\\\\]*$"))try{t=Ue._abbr,require("./locale/"+e),Qe(t)}catch(t){Ke[e]=null}return Ke[e]}function Qe(e,t){return e&&((t=r(t)?tt(e):et(e,t))?Ue=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ue._abbr}function et(e,t){if(null===t)return delete Ke[e],null;var i,s=Ge;if(t.abbr=e,null!=Ke[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Ke[e]._config;else if(null!=t.parentLocale)if(null!=Ke[t.parentLocale])s=Ke[t.parentLocale]._config;else{if(null==(i=Ze(t.parentLocale)))return Xe[t.parentLocale]||(Xe[t.parentLocale]=[]),Xe[t.parentLocale].push({name:e,config:t}),null;s=i._config}return Ke[e]=new T(A(s,t)),Xe[e]&&Xe[e].forEach((function(e){et(e.name,e.config)})),Qe(e),Ke[e]}function tt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return Ue;if(!i(e)){if(t=Ze(e))return t;e=[e]}return function(e){for(var t,i,s,n,o=0;o<e.length;){for(t=(n=Je(e[o]).split("-")).length,i=(i=Je(e[o+1]))?i.split("-"):null;0<t;){if(s=Ze(n.slice(0,t).join("-")))return s;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),s=0;s<i;s+=1)if(e[s]!==t[s])return s;return i}(n,i)>=t-1)break;t--}o++}return Ue}(e)}function it(e){var t=e._a;return t&&-2===d(e).overflow&&(t=t[1]<0||11<t[1]?1:t[2]<1||t[2]>xe(t[0],t[1])?2:t[3]<0||24<t[3]||24===t[3]&&(0!==t[4]||0!==t[5]||0!==t[6])?3:t[4]<0||59<t[4]?4:t[5]<0||59<t[5]?5:t[6]<0||999<t[6]?6:-1,d(e)._overflowDayOfYear&&(t<0||2<t)&&(t=2),d(e)._overflowWeeks&&-1===t&&(t=7),d(e)._overflowWeekday&&-1===t&&(t=8),d(e).overflow=t),e}var st=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ot=/Z|[+-]\d\d(?::?\d\d)?/,rt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],at=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],lt=/^\/?Date\((-?\d+)/i,ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ht={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ut(e){var t,i,s,n,o,r,a=e._i,l=st.exec(a)||nt.exec(a),c=(a=rt.length,at.length);if(l){for(d(e).iso=!0,t=0,i=a;t<i;
40t++)if(rt[t][1].exec(l[1])){n=rt[t][0],s=!1!==rt[t][2];break}if(null==n)e._isValid=!1;else{if(l[3]){for(t=0,i=c;t<i;t++)if(at[t][1].exec(l[3])){o=(l[2]||" ")+at[t][0];break}if(null==o)return void(e._isValid=!1)}if(s||null==o){if(l[4]){if(!ot.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=n+(o||"")+(r||""),gt(e)}else e._isValid=!1}}else e._isValid=!1}function dt(e){var t,i,s=ct.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=function(e,t,i,s,n,o){return e=[function(e){return(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e}(e),ke.indexOf(t),parseInt(i,10),parseInt(s,10),parseInt(n,10)],o&&e.push(parseInt(o,10)),e}(s[4],s[3],s[2],s[5],s[6],s[7]),function(e,t,i){if(!e||Re.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;d(i).weekdayMismatch=!0,i._isValid=!1}(s[1],t,e)&&(e._a=t,e._tzm=(t=s[8],i=s[9],s=s[10],t?ht[t]:i?0:((t=parseInt(s,10))-(i=t%100))/100*60+i),e._d=Le.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),d(e).rfc2822=!0)):e._isValid=!1}function pt(e,t,i){return null!=e?e:null!=t?t:i}function ft(e){var i,s,n,o,r,a,l,c,h,u,p,f=[];if(!e._d){for(n=e,o=new Date(t.now()),s=n._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(o=(n=e)._w).GG||null!=o.W||null!=o.E?(c=1,h=4,r=pt(o.GG,n._a[0],Oe(bt(),1,4).year),a=pt(o.W,1),((l=pt(o.E,1))<1||7<l)&&(u=!0)):(c=n._locale._week.dow,h=n._locale._week.doy,p=Oe(bt(),c,h),r=pt(o.gg,n._a[0],p.year),a=pt(o.w,p.week),null!=o.d?((l=o.d)<0||6<l)&&(u=!0):null!=o.e?(l=o.e+c,(o.e<0||6<o.e)&&(u=!0)):l=c),a<1||a>He(r,c,h)?d(n)._overflowWeeks=!0:null!=u?d(n)._overflowWeekday=!0:(p=Pe(r,a,l,c,h),n._a[0]=p.year,n._dayOfYear=p.dayOfYear)),null!=e._dayOfYear&&(o=pt(e._a[0],s[0]),(e._dayOfYear>ge(o)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),u=Le(o,0,e._dayOfYear),e._a[1]=u.getUTCMonth(),e._a[2]=u.getUTCDate()),i=0;i<3&&null==e._a[i];++i)e._a[i]=f[i]=s[i];for(;i<7;i++)e._a[i]=f[i]=null==e._a[i]?2===i?1:0:e._a[i];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Le:Me).apply(null,f),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(d(e).weekdayMismatch=!0)}}function gt(e){if(e._f===t.ISO_8601)ut(e);else if(e._f===t.RFC_2822)dt(e);else{e._a=[],d(e).empty=!0;for(var i,s,o,r,a,l=""+e._i,c=l.length,h=0,u=N(e._f,e._locale).match(M)||[],p=u.length,f=0;f<p;f++)s=u[f],(i=(l.match(re(s,e))||[])[0])&&(0<(o=l.substr(0,l.indexOf(i))).length&&d(e).unusedInput.push(o),l=l.slice(l.indexOf(i)+i.length),h+=i.length),P[s]?(i?d(e).empty=!1:d(e).unusedTokens.push(s),o=s,a=e,null!=(r=i)&&n(ue,o)&&ue[o](r,a._a,a,o)):e._strict&&!i&&d(e).unusedTokens.push(s);d(e).charsLeftOver=c-h,0<l.length&&d(e).unusedInput.push(l),e._a[3]<=12&&!0===d(e).bigHour&&0<e._a[3]&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[3]=function(e,t,i){return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?((e=e.isPM(i))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[3],e._meridiem),null!==(c=d(e).era)&&(e._a[0]=e._locale.erasConvertYear(c,e._a[0])),ft(e),it(e)}}function mt(e){var n,o,u,g=e._i,m=e._f;if(e._locale=e._locale||tt(e._l),null===g||void 0===m&&""===g)return f({nullInput:!0});if("string"==typeof g&&(e._i=g=e._locale.preparse(g)),_(g))return new y(it(g));if(l(g))e._d=g;else if(i(m)){var v,x,w,k,C,S,A=e,T=!1,D=A._f.length;if(0===D)d(A).invalidFormat=!0,A._d=new Date(NaN);else{for(k=0;k<D;k++)C=0,S=!1,v=b({},A),null!=A._useUTC&&(v._useUTC=A._useUTC),v._f=A._f[k],gt(v),p(v)&&(S=!0),C=(C+=d(v).charsLeftOver)+10*d(v).unusedTokens.length,d(v).score=C,T?C<w&&(w=C,x=v):(null==w||C<w||S)&&(w=C,x=v,S)&&(T=!0);h(A,x||v)}}else m?gt(e):r(m=(g=e)._i)?g._d=new Date(t.now()):l(m)?g._d=new Date(m.valueOf()):"string"==typeof m?(o=g,null!==(n=lt.exec(o._i))?o._d=new Date(+n[1]):(ut(o),!1===o._isValid&&
40(delete o._isValid,dt(o),!1===o._isValid)&&(delete o._isValid,o._strict?o._isValid=!1:t.createFromInputFallback(o)))):i(m)?(g._a=c(m.slice(0),(function(e){return parseInt(e,10)})),ft(g)):s(m)?(n=g)._d||(u=void 0===(o=q(n._i)).day?o.date:o.day,n._a=c([o.year,o.month,u,o.hour,o.minute,o.second,o.millisecond],(function(e){return e&&parseInt(e,10)})),ft(n)):a(m)?g._d=new Date(m):t.createFromInputFallback(g);return p(e)||(e._d=null),e}function vt(e,t,n,r,a){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&o(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=r,(a=new y(it(mt(a=l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function bt(e,t,i,s){return vt(e,t,i,s,!1)}function yt(e,t){var s,n;if(!(t=1===t.length&&i(t[0])?t[0]:t).length)return bt();for(s=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](s)||(s=t[n]);return s}t.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),t.ISO_8601=function(){},t.RFC_2822=function(){},U=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()})),G=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:f()}));var _t=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xt(e){var t=(e=q(e)).year||0,i=e.quarter||0,s=e.month||0,o=e.week||e.isoWeek||0,r=e.day||0,a=e.hour||0,l=e.minute||0,c=e.second||0,h=e.millisecond||0;this._isValid=function(e){var t,i,s=!1,o=_t.length;for(t in e)if(n(e,t)&&(-1===me.call(_t,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<o;++i)if(e[_t[i]]){if(s)return!1;parseFloat(e[_t[i]])!==ce(e[_t[i]])&&(s=!0)}return!0}(e),this._milliseconds=+h+1e3*c+6e4*l+1e3*a*60*60,this._days=+r+7*o,this._months=+s+3*i+12*t,this._data={},this._locale=tt(),this._bubble()}function wt(e){return e instanceof xt}function kt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ct(e,t){O(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+E(~~(e/60),2)+t+E(~~e%60,2)}))}Ct("Z",":"),Ct("ZZ",""),oe("Z",te),oe("ZZ",te),de(["Z","ZZ"],(function(e,t,i){i._useUTC=!0,i._tzm=At(te,e)}));var St=/([\+\-]|\d\d)/gi;function At(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(St)||["-",0,0])[1]+ce(e[2]))?0:"+"===e[0]?t:-t}function Tt(e,i){var s;return i._isUTC?(i=i.clone(),s=(_(e)||l(e)?e:bt(e)).valueOf()-i.valueOf(),i._d.setTime(i._d.valueOf()+s),t.updateOffset(i,!1),i):bt(e).local()}function Dt(e){return-Math.round(e._d.getTimezoneOffset())}function Et(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var Mt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Lt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function It(e,t){var i,s=e;return wt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:a(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(t=Mt.exec(e))?(i="-"===t[1]?-1:1,s={y:0,d:ce(t[2])*i,h:ce(t[3])*i,m:ce(t[4])*i,s:ce(t[5])*i,ms:ce(kt(1e3*t[6]))*i}):(t=Lt.exec(e))?(i="-"===t[1]?-1:1,s={y:Pt(t[2],i),M:Pt(t[3],i),w:Pt(t[4],i),d:Pt(t[5],i),h:Pt(t[6],i),m:Pt(t[7],i),s:Pt(t[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=function(e,t){var i;return e.isValid()&&t.isValid()?(t=Tt(t,e),e.isBefore(t)?i=Ot(e,t):((i=Ot(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}(bt(s.from),bt(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),i=new xt(s),wt(e)&&n(e,"_locale")&&(i._locale=e._locale),wt(e)&&n(e,"_isValid")&&(i._isValid=e._isValid),i}function Pt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Ot(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Ht(e,t){return function(i,s){var n;return null===s||isNaN(+s)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=i,i=s,s=n),Nt(this,It(i,s),e),this}}function Nt(e,i,s,n){var o=i._milliseconds,r=kt(i._days);i=kt(i._months);e.isValid()&&(n=null==n||n,i&&Te(e,ye(e,"Month")+i*s),r&&_e(e,"Date",ye(e,"Date")+r*s),o&&e._d.setTime(e._d.valueOf()+o*s),n)&&t.updateOffset(e,r||i)}function Ft(e){return"string"==typeof e||e instanceof String}function Rt(e){return _(e)||l(e)||Ft(e)||a(e)||function(e){var t=i(e),s=!1;return t&&(s=0===e.filter((function(t){return!a(t)&&Ft(e)})).length),t&&s}(e)||function(e){var t,i=s(e)&&!o(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=a.length;for(t=0;t<l;t+=1)r=r||n(e,a[t]);return i&&r}(e)||null==e}function qt(e,t){var i,s;return e.date()<t.date()?-qt(t,e):-((i=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(s=e.clone().add(i,"months"))<0?(t-s)/(s-e.clone().add(i-1,"months")):(t-s)/(e.clone().add(1+i,"months")-s)))||0}function $t(e){return void 0===e?this._locale._abbr:(null!=(e=tt(e))&&(this._locale=e),this)}function jt(){return this._locale}
40It.fn=xt.prototype,It.invalid=function(){return It(NaN)},we=Ht(1,"add"),Fe=Ht(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",qe=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));var zt=126227808e5;function Bt(e,t){return(e%t+t)%t}function Wt(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-zt:new Date(e,t,i).valueOf()}function Yt(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-zt:Date.UTC(e,t,i)}function Vt(e,t){return t.erasAbbrRegex(e)}function Ut(){for(var e,t,i,s=[],n=[],o=[],r=[],a=this.eras(),l=0,c=a.length;l<c;++l)e=ae(a[l].name),t=ae(a[l].abbr),i=ae(a[l].narrow),n.push(e),s.push(t),o.push(i),r.push(e),r.push(t),r.push(i);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Gt(e,t){O(0,[e,e.length],0,t)}function Kt(e,t,i,s,n){var o;return null==e?Oe(this,s,n).year:(o=He(e,s,n),function(e,t,i,s,n){return t=Le((e=Pe(e,t,i,s,n)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=o<t?o:t,i,s,n))}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),oe("N",Vt),oe("NN",Vt),oe("NNN",Vt),oe("NNNN",(function(e,t){return t.erasNameRegex(e)})),oe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),de(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,i,s){(s=i._locale.erasParse(e,s,i._strict))?d(i).era=s:d(i).invalidEra=e})),oe("y",Z),oe("yy",Z),oe("yyy",Z),oe("yyyy",Z),oe("yo",(function(e,t){return t._eraYearOrdinalRegex||Z})),de(["y","yy","yyy","yyyy"],0),de(["yo"],(function(e,t,i,s){var n;i._locale._eraYearOrdinalRegex&&(n=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[0]=i._locale.eraYearOrdinalParse(e,n):t[0]=parseInt(e,10)})),O(0,["gg",2],0,(function(){return this.weekYear()%100})),O(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Gt("gggg","weekYear"),Gt("ggggg","weekYear"),Gt("GGGG","isoWeekYear"),Gt("GGGGG","isoWeekYear"),oe("G",Q),oe("g",Q),oe("GG",V,z),oe("gg",V,z),oe("GGGG",X,W),oe("gggg",X,W),oe("GGGGG",J,Y),oe("ggggg",J,Y),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,s){t[s.substr(0,2)]=ce(e)})),pe(["gg","GG"],(function(e,i,s,n){i[n]=t.parseTwoDigitYear(e)})),O("Q",0,"Qo","quarter"),oe("Q",j),de("Q",(function(e,t){t[1]=3*(ce(e)-1)})),O("D",["DD",2],"Do","date"),oe("D",V,se),oe("DD",V,z),oe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),de(["D","DD"],2),de("Do",(function(e,t){t[2]=ce(e.match(V)[0])})),X=be("Date",!0),O("DDD",["DDDD",3],"DDDo","dayOfYear"),oe("DDD",K),oe("DDDD",B),de(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=ce(e)})),O("m",["mm",2],0,"minute"),oe("m",V,ne),oe("mm",V,z),de(["m","mm"],4);var Xt;W=be("Minutes",!1),O("s",["ss",2],0,"second"),oe("s",V,ne),oe("ss",V,z),de(["s","ss"],5),J=be("Seconds",!1);for(O("S",0,0,(function(){return~~(this.millisecond()/100)})),O(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),O(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),O(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),O(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),O(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),O(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),oe("S",K,j),oe("SS",K,z),oe("SSS",K,B),Xt="SSSS";Xt.length<=9;Xt+="S")oe(Xt,Z);function Jt(e,t){t[6]=ce(1e3*("0."+e))}for(Xt="S";Xt.length<=9;Xt+="S")de(Xt,Jt);function Zt(e){return e}function Qt(e,t,i,s){var n=tt();s=u().set(s,t);return n[i](s,e)}function ei(e,t,i){if(a(e)&&(t=e,e=void 0),e=e||"",null!=t)return Qt(e,t,i,"month");for(var s=[],n=0;n<12;n++)s[n]=Qt(e,n,i,"month");return s}function ti(e,t,i,s){"boolean"==typeof e?a(t)&&(i=t,t=void 0):(t=e,e=!1,a(i=t)&&(i=t,t=void 0)),t=t||"";var n,o=tt(),r=e?o._week.dow:0,l=[];
vendor: 10,896 bytes, line 40
40if(null!=i)return Qt(t,(i+r)%7,s,"day");for(n=0;n<7;n++)l[n]=Qt(t,(n+r)%7,s,"day");return l}Y=be("Milliseconds",!1),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName"),(se=y.prototype).add=we,se.calendar=function(e,i){1===arguments.length&&(arguments[0]?Rt(arguments[0])?(e=arguments[0],i=void 0):function(e){for(var t=s(e)&&!o(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a=0;a<r.length;a+=1)i=i||n(e,r[a]);return t&&i}(arguments[0])&&(i=arguments[0],e=void 0):i=e=void 0);var r=Tt(e=e||bt(),this).startOf("day");r=t.calendarFormat(this,r)||"sameElse",i=i&&(S(i[r])?i[r].call(this,e):i[r]);return this.format(i||this.localeData().calendar(r,this,bt(e)))},se.clone=function(){return new y(this)},se.diff=function(e,t,i){var s,n,o;if(!this.isValid())return NaN;if(!(s=Tt(e,this)).isValid())return NaN;switch(n=6e4*(s.utcOffset()-this.utcOffset()),t=R(t)){case"year":o=qt(this,s)/12;break;case"month":o=qt(this,s);break;case"quarter":o=qt(this,s)/3;break;case"second":o=(this-s)/1e3;break;case"minute":o=(this-s)/6e4;break;case"hour":o=(this-s)/36e5;break;case"day":o=(this-s-n)/864e5;break;case"week":o=(this-s-n)/6048e5;break;default:o=this-s}return i?o:le(o)},se.endOf=function(e){var i,s;if(void 0!==(e=R(e))&&"millisecond"!==e&&this.isValid()){switch(s=this._isUTC?Yt:Wt,e){case"year":i=s(this.year()+1,0,1)-1;break;case"quarter":i=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=s(this.year(),this.month()+1,1)-1;break;case"week":i=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=36e5-Bt(i+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":i=this._d.valueOf(),i+=6e4-Bt(i,6e4)-1;break;case"second":i=this._d.valueOf(),i+=1e3-Bt(i,1e3)-1}this._d.setTime(i),t.updateOffset(this,!0)}return this},se.format=function(e){return e=H(this,e=e||(this.isUtc()?t.defaultFormatUtc:t.defaultFormat)),this.localeData().postformat(e)},se.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||bt(e).isValid())?It({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},se.fromNow=function(e){return this.from(bt(),e)},se.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||bt(e).isValid())?It({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},se.toNow=function(e){return this.to(bt(),e)},se.get=function(e){return S(this[e=R(e)])?this[e]():this},se.invalidAt=function(){return d(this).overflow},se.isAfter=function(e,t){return e=_(e)?e:bt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},se.isBefore=function(e,t){return e=_(e)?e:bt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},se.isBetween=function(e,t,i,s){return e=_(e)?e:bt(e),t=_(t)?t:bt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(s=s||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===s[1]?this.isBefore(t,i):!this.isAfter(t,i))},se.isSame=function(e,t){e=_(e)?e:bt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},se.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},se.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},se.isValid=function(){return p(this)},se.lang=qe,se.locale=$t,se.localeData=jt,se.max=G,se.min=U,se.parsingFlags=function(){return h({},d(this))},se.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)n(e,t)&&i.push({unit:t,priority:$[t]});return i.sort((function(e,t){return e.priority-t.priority})),i}(e=q(e)),s=i.length,o=0;o<s;o++)this[i[o].unit](e[i[o].unit]);else if(S(this[e=R(e)]))return this[e](t);return this},se.startOf=function(e){var i,s;if(void 0!==(e=R(e))&&"millisecond"!==e&&this.isValid()){switch(s=this._isUTC?Yt:Wt,e){case"year":i=s(this.year(),0,1);break;case"quarter":i=s(this.year(),this.month()-this.month()%3,1);break;case"month":i=s(this.year(),this.month(),1);break;case"week":i=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=s(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=Bt(i+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":i=this._d.valueOf(),i-=Bt(i,6e4);break;case"second":i=this._d.valueOf(),i-=Bt(i,1e3)}this._d.setTime(i),t.updateOffset(this,!0)}return this},se.subtract=Fe,se.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},se.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},se.toDate=function(){return new Date(this.valueOf())},se.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?H(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(t,"Z")):H(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},se.inspect=function(){var e,t,i;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+i+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),se.toJSON=function(){return this.isValid()?this.toISOString():null},se.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},se.unix=function(){return Math.floor(this.valueOf()/1e3)},se.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},se.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},se.eraName=function(){for(var e,t=this.localeData().eras(),i=0,s=t.length;i<s;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},se.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,s=t.length;i<s;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},se.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,s=t.length;i<s;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},se.eraYear=function(){for(var e,i,s=this.localeData().eras(),n=0,o=s.length;n<o;++n)if(e=s[n].since<=s[n].until?1:-1,i=this.clone().startOf("day").valueOf(),s[n].since<=i&&i<=s[n].until||s[n].until<=i&&i<=s[n].since)return(this.year()-t(s[n].since).year())*e+s[n].offset;return this.year()},se.year=ve,se.isLeapYear=function(){return fe(this.year())},se.weekYear=function(e){return Kt.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},se.isoWeekYear=function(e){return Kt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},se.quarter=se.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},se.month=De,se.daysInMonth=function(){return xe(this.year(),this.month())},se.week=se.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},se.isoWeek=se.isoWeeks=function(e){var t=Oe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},se.weeksInYear=function(){var e=this.localeData()._week;return He(this.year(),e.dow,e.doy)},se.weeksInWeekYear=function(){var e=this.localeData()._week;return He(this.weekYear(),e.dow,e.doy)},se.isoWeeksInYear=function(){return He(this.year(),1,4)},se.isoWeeksInISOWeekYear=function(){return He(this.isoWeekYear(),1,4)},se.date=X,se.day=se.days=function(e){var t,i,s;return this.isValid()?(t=ye(this,"Day"),null!=e?(i=e,s=this.localeData(),e="string"!=typeof i?i:isNaN(i)?"number"==typeof(i=s.weekdaysParse(i))?i:null:parseInt(i,10),this.add(e-t,"d")):t):null!=e?this:NaN},se.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},se.isoWeekday=function(e){var t,i;return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN},se.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},se.hour=se.hours=ie,se.minute=se.minutes=W,se.second=se.seconds=J,se.millisecond=se.milliseconds=Y,se.utcOffset=function(e,i,s){var n,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?o:Dt(this);if("string"==typeof e){if(null===(e=At(te,e)))return this}else Math.abs(e)<16&&!s&&(e*=60);return!this._isUTC&&i&&(n=Dt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==e&&(!i||this._changeInProgress?Nt(this,It(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},se.utc=function(e){return this.utcOffset(0,e)},se.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Dt(this),"m"),this},se.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=At(ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},se.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?bt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},se.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},se.isLocal=function(){return!!this.isValid()&&!this._isUTC},se.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},se.isUtc=Et,se.isUTC=Et,se.zoneAbbr=function(){return this._isUTC?"UTC":""},se.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},se.dates=w("dates accessor is deprecated. Use date instead.",X),se.months=w("months accessor is deprecated. Use month instead",De),se.years=w("years accessor is deprecated. Use year instead",ve),se.zone
vendor: 11,595 bytes, line 40
40=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()})),se.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){var e,t;return r(this._isDSTShifted)&&(b(e={},this),(e=mt(e))._a?(t=(e._isUTC?u:bt)(e._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var s=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),o=0,r=0;r<s;r++)ce(e[r])!==ce(t[r])&&o++;return o+n}(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted})),(ne=T.prototype).calendar=function(e,t,i){return S(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},ne.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(M).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},ne.invalidDate=function(){return this._invalidDate},ne.ordinal=function(e){return this._ordinal.replace("%d",e)},ne.preparse=Zt,ne.postformat=Zt,ne.relativeTime=function(e,t,i,s){var n=this._relativeTime[i];return S(n)?n(e,t,i,s):n.replace(/%d/i,e)},ne.pastFuture=function(e,t){return S(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},ne.set=function(e){var t,i;for(i in e)n(e,i)&&(S(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ne.eras=function(e,i){for(var s,n=this._eras||tt("en")._eras,o=0,r=n.length;o<r;++o){switch(typeof n[o].since){case"string":s=t(n[o].since).startOf("day"),n[o].since=s.valueOf()}switch(typeof n[o].until){case"undefined":n[o].until=1/0;break;case"string":s=t(n[o].until).startOf("day").valueOf(),n[o].until=s.valueOf()}}return n},ne.erasParse=function(e,t,i){var s,n,o,r,a,l=this.eras();for(e=e.toUpperCase(),s=0,n=l.length;s<n;++s)if(o=l[s].name.toUpperCase(),r=l[s].abbr.toUpperCase(),a=l[s].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(r===e)return l[s];break;case"NNNN":if(o===e)return l[s];break;case"NNNNN":if(a===e)return l[s]}else if(0<=[o,r,a].indexOf(e))return l[s]},ne.erasConvertYear=function(e,i){var s=e.since<=e.until?1:-1;return void 0===i?t(e.since).year():t(e.since).year()+(i-e.offset)*s},ne.erasAbbrRegex=function(e){return n(this,"_erasAbbrRegex")||Ut.call(this),e?this._erasAbbrRegex:this._erasRegex},ne.erasNameRegex=function(e){return n(this,"_erasNameRegex")||Ut.call(this),e?this._erasNameRegex:this._erasRegex},ne.erasNarrowRegex=function(e){return n(this,"_erasNarrowRegex")||Ut.call(this),e?this._erasNarrowRegex:this._erasRegex},ne.months=function(e,t){return e?(i(this._months)?this._months:this._months[(this._months.isFormat||Ce).test(t)?"format":"standalone"])[e.month()]:i(this._months)?this._months:this._months.standalone},ne.monthsShort=function(e,t){return e?(i(this._monthsShort)?this._monthsShort:this._monthsShort[Ce.test(t)?"format":"standalone"])[e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ne.monthsParse=function(e,t,i){var s,n;if(this._monthsParseExact)return function(e,t,i){var s,n,o;e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)o=u([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(n=me.call(this._shortMonthsParse,e))?n:null:-1!==(n=me.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=me.call(this._shortMonthsParse,e))||-1!==(n=me.call(this._longMonthsParse,e))?n:null:-1!==(n=me.call(this._longMonthsParse,e))||-1!==(n=me.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=u([2e3,s]),i&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),i||this._monthsParse[s]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(n.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(i&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!i&&this._monthsParse[s].test(e))return s}},ne.monthsRegex=function(e){return this._monthsParseExact?(n(this,"_monthsRegex")||Ee.call(this),e?this._monthsStrictRegex:this._monthsRegex):(n(this,"_monthsRegex")||(this._monthsRegex=Ae),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ne.monthsShortRegex=function(e){return this._monthsParseExact?(n(this,"_monthsRegex")||Ee.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(n(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ne.week=function(e){return Oe(e,this._week.dow,this._week.doy).week},ne.firstDayOfYear=function(){return this._week.doy},ne.firstDayOfWeek=function(){return this._week.dow},ne.weekdays=function(e,t){return t=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ne(t,this._week.dow):e?t[e.day()]:t},ne.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ne.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},ne.weekdaysParse=function(e,t,i){var s,n;if(this._weekdaysParseExact)return function(e,t,i){var s,n,o;e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)o=u([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(n=me.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=me.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=me.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=me.call(this._weekdaysParse,e))||-1!==(n=me.call(this._shortWeekdaysParse,e))||-1!==(n=me.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=me.call(this._shortWeekdaysParse,e))||-1!==(n=me.call(this._weekdaysParse,e))||-1!==(n=me.call(this._minWeekdaysParse,e))?n:null:-1!==(n=me.call(this._minWeekdaysParse,e))||-1!==(n=me.call(this._weekdaysParse,e))||-1!==(n=me.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=u([2e3,1]).day(s),i&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(n.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(i&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(i&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!i&&this._weekdaysParse[s].test(e))return s}},ne.weekdaysRegex=function(e){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(n(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ne.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(n(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ne.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(n(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ne.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ne.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},Qe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),t.lang=w("moment.lang is deprecated. Use moment.locale instead.",Qe),t.langData=w("moment.langData is deprecated. Use moment.localeData instead.",tt);var ii=Math.abs;function si(e,t,i,s){return t=It(t,i),e._milliseconds+=s*t._milliseconds,e._days+=s*t._days,e._months+=s*t._months,e._bubble()}function ni(e){return e<0?Math.floor(e):Math.ceil(e)}function oi(e){return 4800*e/146097}function ri(e){return 146097*e/4800}function ai(e){return function(){return this.as(e)}}function li(e){return function(){return this.isValid()?this._data[e]:NaN}}j=ai("ms"),z=ai("s"),K=ai("m"),B=ai("h"),we=ai("d"),G=ai("w"),U=ai("M"),Fe=ai("Q"),ie=ai("y"),W=j;J=li("milliseconds"),Y=li("seconds"),X=li("minutes"),ve=li("hours"),ne=li("days");var ci=li("months"),hi=li("years"),ui=Math.round,di={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var pi=Math.abs;function fi(e){return(0<e)-(e<0)||+e}function gi(){var e,t,i,s,n,o,r,a,l,c,h;return this.isValid()?(e=pi(this._milliseconds)/1e3,t=pi(this._days),i=pi(this._months),(a=this.asSeconds())?(s=le(e/60),n=le(s/60),e%=60,s%=60,o=le(i/12),i%=12,r=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=fi(this._months)!==fi(a)?"-":"",c=fi(this._days)!==fi(a)?"-":"",h=fi(this._milliseconds)!==fi(a)?"-":"",(a<0?"-":"")+"P"+(o?l+o+"Y":"")+(i?l+i+"M":"")+(t?c+t+"D":"")+(n||s||e?"T":"")+(n?h+n+"H":"")+(s?h+s+"M":"")+(e?h+r+"S":"")):"P0D"):this.localeData().invalidDate()}var mi=xt.prototype;return mi.isValid=function(){return this._isValid},mi.abs=function(){var e=this._data;return this._milliseconds=ii(this._milliseconds),this._days=ii(this._days),this._months=ii(this._months),e.milliseconds=ii(e.milliseconds),e.seconds=ii(e.seconds),e.minutes=ii(e.minutes),e.hours=ii(e.hours),e.months=ii(e.months),e.years=ii(e.years),this},mi.add=function(e,t){return si(this,e,t,1)},mi.subtract=function(e,t){return si(this,e,t,-1)},mi.as=function(e){if(!this.isValid())return NaN;var t,i,s=this._milliseconds;if("month"===(e=R(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,i=this._months+oi(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(ri(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},mi.asMilliseconds=j,mi.asSeconds=z,mi.asMinutes=K,mi.asHours=B,mi.asDays=we,mi.asWeeks=G,mi.asMonths=U,mi.asQuarters=
40Fe,mi.asYears=ie,mi.valueOf=W,mi._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,s=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*ni(ri(i)+t),i=t=0),s.milliseconds=e%1e3,e=le(e/1e3),s.seconds=e%60,e=le(e/60),s.minutes=e%60,e=le(e/60),s.hours=e%24,t+=le(e/24),i+=e=le(oi(t)),t-=ni(ri(e)),e=le(i/12),i%=12,s.days=t,s.months=i,s.years=e,this},mi.clone=function(){return It(this)},mi.get=function(e){return e=R(e),this.isValid()?this[e+"s"]():NaN},mi.milliseconds=J,mi.seconds=Y,mi.minutes=X,mi.hours=ve,mi.days=ne,mi.weeks=function(){return le(this.days()/7)},mi.months=ci,mi.years=hi,mi.humanize=function(e,t){var i,s;return this.isValid()?(i=!1,s=di,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(s=Object.assign({},di,t),null!=t.s)&&null==t.ss&&(s.ss=t.s-1),t=function(e,t,i,s){var n=It(e).abs(),o=ui(n.as("s")),r=ui(n.as("m")),a=ui(n.as("h")),l=ui(n.as("d")),c=ui(n.as("M")),h=ui(n.as("w"));return n=ui(n.as("y")),o=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||(r<=1?["m"]:r<i.m&&["mm",r])||(a<=1?["h"]:a<i.h&&["hh",a])||(l<=1?["d"]:l<i.d&&["dd",l]),(o=(o=null!=i.w?o||(h<=1?["w"]:h<i.w&&["ww",h]):o)||(c<=1?["M"]:c<i.M&&["MM",c])||(n<=1?["y"]:["yy",n]))[2]=t,o[3]=0<+e,o[4]=s,function(e,t,i,s,n){return n.relativeTime(t||1,!!i,e,s)}.apply(null,o)}(this,!i,s,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},mi.toISOString=gi,mi.toString=gi,mi.toJSON=gi,mi.locale=$t,mi.localeData=jt,mi.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gi),mi.lang=qe,O("X",0,0,"unix"),O("x",0,0,"valueOf"),oe("x",Q),oe("X",/[+-]?\d+(\.\d{1,3})?/),de("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e))})),de("x",(function(e,t,i){i._d=new Date(ce(e))})),t.version="2.30.1",e=bt,t.fn=se,t.min=function(){return yt("isBefore",[].slice.call(arguments,0))},t.max=function(){return yt("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=u,t.unix=function(e){return bt(1e3*e)},t.months=function(e,t){return ei(e,t,"months")},t.isDate=l,t.locale=Qe,t.invalid=f,t.duration=It,t.isMoment=_,t.weekdays=function(e,t,i){return ti(e,t,i,"weekdays")},t.parseZone=function(){return bt.apply(null,arguments).parseZone()},t.localeData=tt,t.isDuration=wt,t.monthsShort=function(e,t){return ei(e,t,"monthsShort")},t.weekdaysMin=function(e,t,i){return ti(e,t,i,"weekdaysMin")},t.defineLocale=et,t.updateLocale=function(e,t){var i,s;return null!=t?(s=Ge,null!=Ke[e]&&null!=Ke[e].parentLocale?Ke[e].set(A(Ke[e]._config,t)):(t=A(s=null!=(i=Ze(e))?i._config:s,t),null==i&&(t.abbr=e),(s=new T(t)).parentLocale=Ke[e],Ke[e]=s),Qe(e)):null!=Ke[e]&&(null!=Ke[e].parentLocale?(Ke[e]=Ke[e].parentLocale,e===Qe()&&Qe(e)):null!=Ke[e]&&delete Ke[e]),Ke[e]},t.locales=function(){return D(Ke)},t.weekdaysShort=function(e,t,i){return ti(e,t,i,"weekdaysShort")},t.normalizeUnits=R,t.relativeTimeRounding=function(e){return void 0===e?ui:"function"==typeof e&&(ui=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==di[e]&&(void 0===t?di[e]:(di[e]=t,"
40s"===e&&(di.ss=t-1),!0))},t.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},t.prototype=se,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})), 41/* @license moment.js version : 2.29.4 authors : Tim Wood, Iskren Chernev, Moment.js contributors license : MIT momentjs.com. */ 42/* @license jQuery UI - v1.13.2 - 2022-07-14 http://jqueryui.com Copyright jQuery Foundation and other contributors; Licensed MIT */ 43version="copyright",function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).stickybits=t()}(this,(function(){"use strict";var e=function(){function e(e,t){var i=void 0!==t?t:{};this.version="3.6.2",this.userAgent=window.navigator.userAgent||"no `userAgent` provided by the browser",this.props={customStickyChangeNumber:i.customStickyChangeNumber||null,noStyles:i.noStyles||!1,stickyBitStickyOffset:i.stickyBitStickyOffset||0,parentClass:i.parentClass||"js-stickybit-parent",scrollEl:"string"==typeof i.scrollEl?document.querySelector(i.scrollEl):i.scrollEl||window,stickyClass:i.stickyClass||"js-is-sticky",stuckClass:i.stuckClass||"js-is-stuck",stickyChangeClass:i.stickyChangeClass||"js-is-sticky--change",useStickyClasses:i.useStickyClasses||!1,useFixed:i.useFixed||!1,useGetBoundingClientRect:i.useGetBoundingClientRect||!1,verticalPosition:i.verticalPosition||"top"},this.props.positionVal=this.definePosition()||"fixed",this.instances=[];var s=this.props,n=s.positionVal,o=s.verticalPosition,r=s.noStyles,a=s.stickyBitStickyOffset,l=s.useStickyClasses,c="top"!==o||r?"":a+"px",h="fixed"!==n?n:"";this.els="string"==typeof e?document.querySelectorAll(e):e,"length"in this.els||(this.els=[this.els]);for(var u=0;u<this.els.length;u++){var d=this.els[u];if(d.style[o]=c,d.style.position=h,"fixed"===n||l){var p=this.addInstance(d,this.props);this.instances.push(p)}}}var t=e.prototype;return t.definePosition=function(){var e;if(this.props.useFixed)e="fixed";else{for(var t=["","-o-","-webkit-","-moz-","-ms-"],i=document.head.style,s=0;s<t.length;s+=1)i.position=t[s]+"sticky";e=i.position?i.position:"fixed",i.position=""}return e},t.addInstance=function(e,t){var i=this,s={el:e,parent:e.parentNode,props:t};this.isWin=this.props.scrollEl===window;var n=this.isWin?window:this.getClosestParent(s.el,s.props.scrollEl);return this.computeScrollOffsets(s),s.parent.className+=" "+t.parentClass,s.state="default",s.stateContainer=function(){return i.manageState(s)},n.addEventListener("scroll",s.stateContainer),s},t.getClosestParent=function(e,t){var i=t,s=e;if(s.parentElement===i)return i;for(;s.parentElement!==i;)s=s.parentElement;return i},t.getTopPosition=function(e){if(this.props.useGetBoundingClientRect)return e.getBoundingClientRect().top+(this.props.scrollEl.pageYOffset||document.documentElement.scrollTop);for(var t=0;t=e.offsetTop+t,e=e.offsetParent;);return t},t.computeScrollOffsets=function(e){var t=e,i=t.props,s=t.el,n=t.parent,o=!this.isWin&&"fixed"===i.positionVal,r="bottom"!==i.verticalPosition,a=o?this.getTopPosition(i.scrollEl):0,l=o?this.getTopPosition(n)-a:this.getTopPosition(n),c=null!==i.customStickyChangeNumber?i.customStickyChangeNumber:s.offsetHeight,h=l+n.offsetHeight;return t.offset=a+i.stickyBitStickyOffset,t.stickyStart=r?l-t.offset:0,t.stickyChange=t.stickyStart+c,t.stickyStop=r?h-(s.offsetHeight+t.offset):h-window.innerHeight,t},t.toggleClasses=function(e,t,i){var s=e,n=s.className.split(" ");i&&-1===n.indexOf(i)&&n.push(i);var o=n.indexOf(t);-1!==o&&n.splice(o,1),s.className=n.join(" ")},t.manageState=function(e){var t=e,i=t.el,s=t.props,n=t.state,o=t.stickyStart,r=t.stickyChange,a=t.stickyStop,l=i.style,c=s.noStyles,h=s.positionVal,u=s.scrollEl,d=s.stickyClass,p=s.stickyChangeClass,f=s.stuckClass,g=s.verticalPosition,m="bottom"!==g,v=this.isWin&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame)||function(e){e()},b=this.toggleClasses,y=this.isWin?window.scrollY||window.pageYOffset:u.scrollTop,_=m&&y<=o&&("sticky"===n||"stuck"===n),x=a<=y&&"sticky"===n;o<y&&y<a&&("default"===n||"stuck"===n)?(t.state="sticky",v((function(){b(i,f,d),l.position=h,c||(l.bottom="",l[g]=s.stickyBitStickyOffset+"px")}))):_?(t.state="default",v((function(){b(i,d),b(i,f),"fixed"===h&&
43(l.position="")}))):x&&(t.state="stuck",v((function(){b(i,d,f),"fixed"!==h||c||(l.top="",l.bottom="0",l.position="absolute")})));var w=r<=y&&y<=a;return y<r/2||a<y?v((function(){b(i,p)})):w&&v((function(){b(i,"stub",p)})),t},t.update=function(e){void 0===e&&(e=null);for(var t=0;t<this.instances.length;t+=1){var i=this.instances[t];if(this.computeScrollOffsets(i),e)for(var s in e)i.props[s]=e[s]}return this},t.removeInstance=function(e){var t=e.el,i=e.props,s=this.toggleClasses;t.style.position="",t.style[i.verticalPosition]="",s(t,i.stickyClass),s(t,i.stuckClass),s(t.parentNode,i.parentClass)},t.cleanup=function(){for(var e=0;e<this.instances.length;e+=1){var t=this.instances[e];t.props.scrollEl.removeEventListener("scroll",t.stateContainer),this.removeInstance(t)}this.manageState=!1,this.instances=[]},e}();return function(t,i){return new e(t,i)}})),/* @license MIT License Copyright (c) 2016 Dollar Shave Club, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. stickybits version v3.6.2 */ 44window.MutationObserver||(window.MutationObserver=function(e){function t(e){this.i=[],this.m=e}function i(t){var i,s={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(i in t)s[i]!==e&&t[i]!==e&&(s[i]=t[i]);return s}function s(t,s){var a=o(t,s);return function(c){var h=c.length;if(s.a&&3===t.nodeType&&t.nodeValue!==a.a&&c.push(new i({type:"characterData",target:t,oldValue:a.a})),s.b&&a.b&&n(c,t,a.b,s.f),s.c||s.g)var u=function(t,s,o,a){function c(e,s,o,r,l){var c,u,d,p=e.length-1;for(l=-~((p-l)/2);d=e.pop();)c=o[d.j],u=r[d.l],a.c&&l&&Math.abs(d.j-d.l)>=p&&(t.push(i({type:"childList",target:s,addedNodes:[c],removedNodes:[c],nextSibling:c.nextSibling,previousSibling:c.previousSibling})),l--),a.b&&u.b&&n(t,c,u.b,a.f),a.a&&3===c.nodeType&&c.nodeValue!==u.a&&t.push(i({type:"characterData",target:c,oldValue:u.a})),a.g&&h(c,u)}function h(s,o){for(var d,p,f,g,m,v=s.childNodes,b=o.c,y=v.length,_=b?b.length:0,x=0,w=0,k=0;w<y||k<_;)(g=v[w])===(m=(f=b[k])&&f.node)?(a.b&&f.b&&n(t,g,f.b,a.f),a.a&&f.a!==e&&g.nodeValue!==f.a&&t.push(i({type:"characterData",target:g,oldValue:f.a})),p&&c(p,s,v,b,x),a.g&&(g.childNodes.length||f.c&&f.c.length)&&h(g,f),w++,k++):(u=!0,d||(d={},p=[]),g&&(d[f=r(g)]||(d[f]=!0,-1===(f=l(b,g,k,"node"))?a.c&&(t.push(i({type:"childList",target:s,addedNodes:[g],nextSibling:g.nextSibling,previousSibling:g.previousSibling})),x++):p.push({j:w,l:f})),w++),m&&m!==v[w]&&(d[f=r(m)]||(d[f]=!0,-1===(f=l(v,m,w))?a.c&&(t.push(i({type:"childList",target:o.node,removedNodes:[m],nextSibling:b[k+1],previousSibling:b[k-1]})),x--):p.push({j:f,l:k})),k++));p&&c(p,s,v,b,x)}var u;return h(s,o),u}(c,t,a,s);(u||c.length!==h)&&(a=o(t,s))}}function n(t,s,n,o){for(var r,a,l={},c=s.attributes,u=c.length;u--;)a=(r=c[u]).name,o&&o[a]===e||(h(s,r)!==n[a]&&t.push(i({type:"attributes",target:s,attributeName:a,oldValue:n[a],attributeNamespace:r.namespaceURI})),l[a]=!0);for(a in n)l[a]||t.push(i({target:s,type:"attributes",attributeName:a,oldValue:n[a]}))}function o(e,t){var i=!0;return function e(s){var n={node:s};return!t.a||3!==s.nodeType&&8!==s.nodeType?(t.b&&i&&1===s.nodeType&&(n.b=a(s.attributes,(function(e,i){return t.f&&!t.f[
44i.name]||(e[i.name]=h(s,i)),e}),{})),i&&(t.c||t.a||t.b&&t.g)&&(n.c=function(e,t){for(var i=[],s=0;s<e.length;s++)i[s]=t(e[s],s,e);return i}(s.childNodes,e)),i=t.g):n.a=s.nodeValue,n}(e)}function r(e){try{return e.id||(e.mo_id=e.mo_id||u++)}catch(t){try{return e.nodeValue}catch(e){return u++}}}function a(e,t,i){for(var s=0;s<e.length;s++)i=t(i,e[s],s,e);return i}function l(e,t,i,s){for(;i<e.length;i++)if((s?e[i][s]:e[i])===t)return i;return-1}t._period=30,t.prototype={observe:function(e,i){for(var n={b:!!(i.attributes||i.attributeFilter||i.attributeOldValue),c:!!i.childList,g:!!i.subtree,a:!(!i.characterData&&!i.characterDataOldValue)},o=this.i,r=0;r<o.length;r++)o[r].s===e&&o.splice(r,1);i.attributeFilter&&(n.f=a(i.attributeFilter,(function(e,t){return e[t]=!0,e}),{})),o.push({s:e,o:s(e,n)}),this.h||function(e){!function i(){var s=e.takeRecords();s.length&&e.m(s,e),e.h=setTimeout(i,t._period)}()}(this)},takeRecords:function(){for(var e=[],t=this.i,i=0;i<t.length;i++)t[i].o(e);return e},disconnect:function(){this.i=[],clearTimeout(this.h),this.h=null}};var c=document.createElement("i");c.style.top=0;var h=(c="null"!=c.attributes.style.value)?function(e,t){return t.value}:function(e,t){return"style"!==t.name?t.value:e.style.cssText},u=1;return t}(void 0)),$(document).ready((function(){ 45/* @license * jQuery accessible and keyboard-enhanced autocomplete list * @version v1.6.1 * Website: https://a11y.nicolas-hoffmann.net/autocomplet-list/ * License MIT: https://github.com/nico3333fr/jquery-accessible-autocomplete-list-aria/blob/master/LICENSE */ 46var e=$(".js-combobox"),t=$("body"),i=[];function s(){$("#js-codeit").html("You have to code a function or a redirection to display more results ;)")}function n(e,i){t.find("."+e).val(i)}tablo_suggestions_label=[],e.length&&(e.each((function(e){var t=$(this),s=t.attr("id"),n=$('label[for="'+s+'"]'),o=e+1,r=t.data(),a=void 0!==r.comboboxPrefixClass?r.comboboxPrefixClass+"-":"combobox-",l=void 0!==r.comboboxHelpText?r.comboboxHelpText:"Use tabulation (or down) key to access and browse suggestions after input. Confirm your choice with enter key, or esc key to close suggestions box.",c=$("#"+t.attr("list")),h=void 0!==r.comboboxButtonTitle?r.comboboxButtonTitle:"clear this field",u=void 0!==r.comboboxButtonText?r.comboboxButtonText:"X",d=(void 0!==r.comboboxCaseSensitive&&r.comboboxCaseSensitive,[]),p=[];t.attr({"data-number":o,autocorrect:"off",autocapitalize:"off",spellcheck:"false",autocomplete:"off","aria-describedby":a+"help-text"+o,"aria-autocomplete":"list","data-lastval":"","aria-owns":a+"suggest_"+o}),c.find("option").each((function(e,t){d.push(t.value),p.push($(t).html())})),i[o]=d,tablo_suggestions_label[o]=p,t.wrap('<div class="'+a+'container js-container" data-combobox-prefix-class="'+a+'"></div>');var f=t.parent();f.append('<div id="'+a+"suggest_"+o+'" class="js-suggest '+a+'suggestions"><div role="listbox"></div></div>'),c.remove(),f.prepend('<div id="'+a+"suggestion-text"+o+'" class="js-suggestion-text '+a+'suggestion-text visually-hidden" aria-live="assertive"></div>'),f.prepend('<span id="'+a+"help-text"+o+'" class="'+a+'help-text visually-hidden">'+l+"</span>"),n.attr("id","label-id-"+s),t.after('<button class="js-clear-button visually-hidden '+a+'clear-button" aria-label="'+h+'" title="'+h+'" aria-describedby="label-id-'+s+'" type="button"><span>'+u+"</span></button>")})),t.on("keyup",".js-combobox",(function(e){var t=$(this),s=t.data(),o=t.parent(),r=(o.parents("form"),o.data()),a=void 0!==r.comboboxPrefixClass?r.comboboxPrefixClass:"",l=o.find(".js-suggest div"),c=o.find(".js-suggestion-text"),h=void 0!==s.suggestionSingle?s.suggestionSingle:"There is ",u=void 0!==s.suggestionPlural?s.suggestionPlural:"There are ",d=void 0!==s.suggestionWord?s.suggestionWord:"suggestion",p=void 0!==s.suggestionWord?s.suggestionWordPlural:"suggestions",f=void 0!==s.comboboxMinLength?Math.abs(s.comboboxMinLength):0,g=void 0!==s.comboboxCaseSensitive?s.comboboxCaseSensitive:"no",m=void 0!==s.comboboxLimitNumberSuggestions?Math.abs(s.comboboxLimitNumberSuggestions):666,v=void 0!==s.comboboxSearchOption?s.comboboxSearchOption:"containing",b=void 0!==s.comboboxSeeMoreText?s.comboboxSeeMoreText:"See more resultsâ¦",y=t.attr("data-number"),_=t.val(),x="";if(""===t.val()?t.next(".js-clear-button").addClass("visually-hidden"):t.next(".js-clear-button").removeClass("visually-hidden"),n(s.comboboxHiddenField,_),13===e.keyCode);else if(27!==e.keyCode){t.attr("data-lastval",_);var w=i[y].length,k=0,C=0;if(l.empty(),""!=_&&_.length>=f){for(;k<w;)C<m&&("containing"===v&&("yes"===g&&i[y][k].indexOf(_)>=0||"no"===g&&i[y][k].toUpperCase().indexOf(_.toUpperCase())>=0)||"beginning"===v&&("yes"===g&&i[y][k].substring(0,_.length)===_||"no"===g&&i[y][k].substring(0,_.length).toUpperCase()===_.toUpperCase()))&&
46(l.append('<div id="suggestion-'+y+"-"+C+'" class="js-suggestion '+a+'suggestion" tabindex="-1" role="option" data-value="'+tablo_suggestions_label[y][k]+'">'+i[y][k]+"</div>"),C++),k++;if($(".combobox-container").css("z-index","0"),$(this).parent(".combobox-container").css("z-index","2"),C>=m&&(l.append('<div id="suggestion-'+y+"-"+C+'" class="js-suggestion js-seemore '+a+'suggestion" tabindex="-1" role="option">'+b+"</div>"),C++),C>1&&(x=u+C+" "+p+"."),1===C&&(x=h+C+" "+d+"."),0===C&&(x=h+C+" "+d+"."),C>=0)if(x!=c.text()){var S=$("<p>").text(x);c.attr("aria-live","polite"),c.empty(),c.append(S)}}}})).on("click",(function(e){var t=$(e.target),i=$(".js-suggestion-text:not(:empty)"),s=i.parents(".js-container"),n=s.find(".js-combobox"),o=s.find(".js-suggest div");t.is(".js-suggestion")||t.is(".js-combobox")||!i.length||(n.last().val(n.last().attr("data-lastval")),o.empty(),i.empty())})).on("keydown",".js-combobox",(function(e){var t=$(this),i=t.parent(),s=i.find(".js-combobox"),n=i.find(".js-suggest div"),o=n.find(".js-suggestion"),r=i.find(".js-suggestion-text"),a=void 0===t.attr("data-combobox-notab-options"),l=o.first();(!e.shiftKey&&9==e.keyCode&&a||40==e.keyCode)&&o.length&&(s.val(l.html()),o.first().focus(),e.preventDefault()),(27==e.keyCode||!1===a&&9==e.keyCode)&&(s.val(s.attr("data-lastval")),n.empty(),r.empty(),27==e.keyCode&&(e.preventDefault(),setTimeout((function(){s.focus()}),300)))})).on("keydown",".js-suggestion",(function(e){var t=$(this),i=t.parents(".js-container"),o=i.find(".js-combobox"),r=o.data(),a=void 0===o.attr("data-combobox-notab-options"),l=i.find(".js-suggest div"),c=i.find(".js-suggestion-text"),h=t.next(),u=t.prev();if((27==e.keyCode||!1===a&&9==e.keyCode)&&(27==e.keyCode&&(o.val(o.attr("data-lastval")),l.empty(),c.empty(),setTimeout((function(){o.focus()}),300),e.preventDefault()),!1===a&&9==e.keyCode&&(l.empty(),c.empty(),o.focus())),13!=e.keyCode&&32!=e.keyCode||(t.hasClass("js-seemore")?(o.val(o.attr("data-lastval")),l.empty(),c.empty(),setTimeout((function(){o.focus()}),300),setTimeout((function(){s()}),301),e.preventDefault()):(o.val(t.html()),o.attr("data-lastval",t.html()),n(r.comboboxHiddenField,t.data("value")),l.empty(),c.empty(),setTimeout((function(){o.focus()}),300),e.preventDefault())),!e.shiftKey&&9==e.keyCode&&a||40==e.keyCode){if(h.length)o.val(h.html()),h.focus();else if(o.val(o.attr("data-lastval")),e.shiftKey||9!=e.keyCode)setTimeout((function(){o.focus()}),300);else{var d=jQuery.Event("keydown");d.which=27,d.keyCode=27,t.trigger(d)}e.preventDefault()}(e.shiftKey&&9==e.keyCode&&a||38==e.keyCode)&&(u.length?(o.val(u.html()),u.focus()):o.val(o.attr("data-lastval")).focus(),e.preventDefault())})).on("click",".js-clear-button",(function(){var e,i=$(this),s=i.parent(),n=s.find(".js-combobox"),o=n.data(),r=s.find(".js-suggest div"),a=s.find(".js-suggestion-text");r.empty(),a.empty(),n.val(""),n.attr("data-lastval",""),i.addClass("visually-hidden"),e=o.comboboxHiddenField,t.find("."+e).val("")}
46)).on("click",".js-suggestion",(function(){var e=$(this),t=e.html(),i=e.parents(".js-container"),o=i.find(".js-combobox"),r=o.data(),a=i.find(".js-suggest div"),l=i.find(".js-suggestion-text");n(r.comboboxHiddenField,e.data("value")),e.hasClass("js-seemore")?(a.empty(),l.empty(),o.focus(),s()):(o.val(t).focus(),a.empty(),l.empty())})))})),function(e,t,i){ 47/* @license The MIT License (MIT) Copyright (c) Go Make Things, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 48"use strict";var s,n,o,r,a,l,c=(s=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"validity"),n=Object.getOwnPropertyDescriptor(HTMLButtonElement.prototype,"validity"),o=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"validity"),r=Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,"validity"),a={},s&&(a.input=s.get),n&&(a.button=n.get),o&&(a.select=o.get),r&&(a.textarea=r.get),a),h=function(e){var i=e.getAttribute("type")||e.nodeName.toLowerCase(),s="number"===i||"range"===i,n=e.value.length,o=!0;if("radio"===e.type&&e.name){var r=t.getElementsByName(e.name);if(r.length>0)for(var a=0;a<r.length;a++)if(r[a].form===e.form&&e.checked){e=r[a];break}}var l={badInput:s&&n>0&&!/^[-+]?(?:\d+|\d*[.,]\d+)$/.test(e.value),patternMismatch:e.hasAttribute("pattern")&&n>0&&!1===new RegExp(e.getAttribute("pattern")).test(e.value),rangeOverflow:e.hasAttribute("max")&&s&&e.value>0&&Number(e.value)>Number(e.getAttribute("max")),rangeUnderflow:e.hasAttribute("min")&&s&&e.value>0&&Number(e.value)<Number(e.getAttribute("min")),stepMismatch:s&&(e.hasAttribute("step")&&"any"!==e.getAttribute("step")&&Number(e.value)%Number(e.getAttribute("step"))!=0||!e.hasAttribute("step")&&Number(e.value)%1!=0),tooLong:e.hasAttribute("maxLength")&&e.getAttribute("maxLength")>0&&n>parseInt(e.getAttribute("maxLength"),10),tooShort:e.hasAttribute("minLength")&&e.getAttribute("minLength")>0&&n>0&&n<parseInt(e.getAttribute("minLength"),10),typeMismatch:n>0&&("email"===i&&!/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/.test(e.value)||"url"===i&&!/^(?:(?:https?|HTTPS?|ftp|FTP):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)(?:\.(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)*)(?::\d{2,5})?(?:[\/?#]\S*)?$/.test(e.value)),valueMissing:e.hasAttribute("required")&&(("checkbox"===i||"radio"===i)&&!e.hasAttribute("checked")||"select"===i&&(-1===e.selectedIndex||e.options[e.selectedIndex].value.length<1)||"checkbox"!==i&&"radio"!==i&&"select"!==i&&n<1)},h=e.tagName.toLowerCase(),u=h in c?c[h].call(e):{};for(var d in l)l.hasOwnProperty(d)&&(d in u&&u[d]&&(l[d]=!0),l[d]&&(o=!1));return l.valid=o,l};"validity"in(l=t.createElement("input"))&&"badInput"in l.validity&&"patternMismatch"in l.validity&&"rangeOverflow"in l.validity&&"rangeUnderflow"in l.validity&&"stepMismatch"in l.validity&&"tooLong"in l.validity&&"tooShort"in l.validity&&"typeMismatch"in l.validity&&"valid"in l.validity&&"valueMissing"in l.validity||(Object.defineProperty(HTMLInputElement.prototype,"validity",{get:function(){return h(this)},configurable:!0}),Object.defineProperty(HTMLButtonElement.prototype,"validity",{get:function(){return h(this)},configurable:!0}),Object.defineProperty(HTMLSelectElement.prototype,"validity",{get:function(){return h(this)},configurable:!0}),Object.defineProperty(HTMLTextAreaElement.prototype,"validity",{get:function(){return h(this)},configurable:!0}))}(window,document);
48var isVisible=function(e){return 0!==e.clientWidth&&0!==e.clientHeight&&0!==e.style.opacity&&"hidden"!==e.style.visibility},getClosest=function(e,t){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1});e&&e!==document;e=e.parentNode)if(e.matches(t))return e;return null};String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var i=arguments[t];if(null!=i)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===e)return t;return-1}),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var i=Object(this),s=i.length>>>0,n=0;if("function"!=typeof e)throw new TypeError;for(;n<s;n++)i.hasOwnProperty(n)&&e.call(t||void 0,i[n],n,i)}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t.matches&&!t.matches(e);)t=t.parentNode;return t.matches?t:null}),!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))?function(e){"use strict";var t,i,s,n,o;if("Element"in e)if((t=function(e,t){this.name=e,this.code=DOMException[e],this.message=t}).prototype=Error.prototype,i=function(e,i){if(""===i)throw new t("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(i))throw new t("INVALID_CHARACTER_ERR","String contains an invalid character");return[].indexOf.call(e,i)},n=function(){return new s(this)},((s=function(e){for(var t=String.prototype.trim.call(e.getAttribute("class")||""),i=t?t.split(/\s+/):[],s=i.length,n=0;n<s;n++)this.push(i[n]);this._updateClassName=function(){e.setAttribute("class",this.toString())}}).prototype=[]).item=function(e){return this[e]||null},s.prototype.contains=function(e){return-1!==i(this,e+="")},s.prototype.add=function(){var e,t=arguments,s=0,n=t.length,o=!1;do{e=t[s]+"",-1===i(this,e)&&(this.push(e),o=!0)}while(++s<n);o&&this._updateClassName()},s.prototype.remove=function(){var e,t,s=arguments,n=0,o=s.length,r=!1;do{for(e=s[n]+"",t=i(this,e);-1!==t;)this.splice(t,1),r=!0,t=i(this,e)}while(++n<o);r&&this._updateClassName()},s.prototype.toggle=function(e,t){var i,s;return e+="",(s=(i=this.contains(e))?!0!==t&&"remove":!1!==t&&"add")&&this[s](e),!0===t||!1===t?t:!i},s.prototype.toString=function(){return this.join(" ")},Object.defineProperty){o={get:n,enumerable:!0,configurable:!0};try{Object.defineProperty(e.Element.prototype,"classList",o)}catch(t){-2146823252===t.number&&(o.enumerable=!1,Object.defineProperty(e.Element.prototype,"classList",o))}}else Object.prototype.__defineGetter__&&e.Element.prototype.__defineGetter__("classList",n)}(self):function(){"use strict";var e,t,i=document.createElement("_");i.classList.add("c1","c2"),i.classList.contains("c2")||((e=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var i,s=arguments.length;for(i=0;i<s;i++)e=arguments[i],t.call(this,e)}})("add"),e("remove")),i.classList.toggle("c3",!1),i.classList.contains("c3")&&(t=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(e,i){return 1 in arguments&&!this.contains(e)==!i?i:t.call(this,e)}),i=null}(),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("before")||Object.defineProperty(e,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){var i=e instanceof Node;t.appendChild(i?e:document.createTextNode(String(e)))})),this.parentNode.insertBefore(t,this)}})})),window.onl={ui:{ieversion:function(){var e=-1;if("Microsoft Internet Explorer"==navigator.appName){var t=navigator.userAgent;null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))}else"Netscape"==navigator.appName&&(e=-1===navigator.appVersion.indexOf("Trident")?12:11);return e},toggle:function(e){onl.ui.isHidden(e)?e.removeAttribute("hidden"):e.setAttribute("hidden",!0)},hide:function(e,t){onl.ui.isHidden(e)||(e.setAttribute("hidden",!0),e.removeAttribute("aria-hidden",!0)),onl.ui.focus(t)},show:function(e,t){onl.ui.isHidden(e)&&(e.removeAttribute("hidden"),e.removeAttribute("aria-hidden")),t&&onl.ui.focus(t)},isHidden:function(e,t){var i=!1;return t&&(i=!!e.closest("[hidden]")),e.hasAttribute("hidden")||t&&i},isVisible:function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},focus:function(e){e&&(e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),"function"==typeof e.focus&&(window.requestAnimationFrame?window.requestAnimationFrame((function(){e.focus()})):e.focus()))},isTouch:function(){return"ontouchstart"in window},hasDragDrop:function(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window},debounce:function(e,t){var i=null;return function(){var s=this,n=arguments;clearTimeout(i),i=setTimeout((function(){e.apply(s,n)}),t)}},disable:function(e){void 0===e._tabIndex&&(e._tabIndex=e.tabIndex,e.tabIndex=-1,onl.dom.isDisableable(e)?e.disabled=!0:"A"===e.nodeName&&e.setAttribute("aria-disabled",!0))},enable:function(e){void 0!==e._tabIndex&&(e.tabIndex=e._tabIndex,delete e._tabIndex,onl.dom.isDisableable(e)?e.disabled=!1:"A"===e.nodeName&&e.setAttribute("aria-disabled",!1))},getFocusableElements:function(e){return onl.dom.$('a[href], button, input[type="text"], input[type="radio"], input[type="checkbox"], select',e).filter(onl.dom.isVisibleElement)},bindFocusTrap:function(e){e.addEventListener("keydown",onl.ui.trapFocus)},unbindFocusTrap:function(e){e.removeEventListener("keydown",onl.ui.trapFocus)},uniqBy:function(e,t){var i={};return e.filter((function(e){var s=t(e);return!i.hasOwnProperty(s)&&(i[s]=!0)}))},trapFocus:function(e){var t=e.currentTarget,i=onl.ui.getFocusableElements(t),s=i[0],n=i[i.length-1];("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===s&&(n.focus(),e.preventDefault()):document.activeElement===n&&(s.focus(),e.preventDefault()))}},dom:{$:function(e,t){var i=(t||document).querySelectorAll(e);return Array.prototype.slice.call(i)},getElementFromHref:function(e){var t=e.match(/#(.+)/)[1];return document.getElementById(t)},getExistingElementsByIds:function(e){return e.map((function(e){return document.getElementById(e)})).filter((function(e){return e}))},makeHash:function(e){var t,i=0;if(0===e.length)return i;for(t=0;t<e.length;t++)i=(i<<5)-i+e.charCodeAt(t),i|=0;return i},isDisableable:function(e){return Object.getPrototypeOf(e).hasOwnProperty("disabled")},isVisibleElement:function(e){return!onl.ui.isHidden(e,!0)},getRequiredElements:function(e){return onl.dom.$("[required]",e).filter(onl.dom.isVisibleElement)},getRequiredElement:function(e){return e.querySelector(e.querySelector("[required]"))},offset:function(e){var t=e.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,s=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+s,left:t.left+i}}},handlers:{},decorators:{},handle:function(e){var t;for(t in e)onl.handlers[t]?console.log("Conflicting handler: "+t):onl.handlers[t]=e[t]},decorate:function(e){var t;for(t in e)onl.decorators[t]?console.log("Conflicting decorator: "+t):onl.decorators[t]=e[t]},run:function(e){var t=/\s+/;onl.dom.$("[data-decorator]",e||document).forEach((function(e){var i=e.getAttribute("data-decorator").toLowerCase().split(t);e.getAttribute("data-decorator-initialized")||(i.forEach((function(t){"function"==typeof onl.decorators[t]&&onl.decorators[t](e)})),e.setAttribute("data-decorator-initialized",!0))}))}};var pubsub=function(){var e={},t=e.hasOwnProperty;return{subscribe:function(i,s){t.call(e,i)||(e[i]=[]);var n=e[i].push(s)-1;return{remove:function(){delete e[i][n]}}}
48,publish:function(i,s){t.call(e,i)&&e[i].forEach((function(e){e(null!=s?s:{})}))}}}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),function(){"use strict";onl.handle({"select-today":function(e,t){var i=e.getAttribute("data-for"),s=new Date,n=function(e){return e<10?"0"+e:e};if(t.preventDefault(),i&&(i=document.getElementById(i)))if("date"==i.type?i.value=s.getFullYear()+"-"+n(s.getMonth()+1)+"-"+n(s.getDate()):i.value=n(s.getDate())+"-"+n(s.getMonth()+1)+"-"+s.getFullYear(),"createEvent"in document){var o=document.createEvent("HTMLEvents");o.initEvent("change",!1,!0),i.dispatchEvent(o)}else i.fireEvent("onchange")},"toggle-option":function(e){var t=e.getAttribute("data-for");t&&(t=document.getElementById(t))&&(e.checked?t.disabled=!1:(t.checked=!1,t.disabled=!0))},"toggle-extra-options":function(e){var t=e.getAttribute("data-options"),i=e.checked,s=onl.dom.$('[data-options="'+t+'"]');t&&(t=document.getElementById(t))&&(s&&s.forEach((function(e){e.checked&&(i=!0)})),i&&onl.ui.isHidden(t)?onl.ui.show(t):i||onl.ui.hide(t))},"show-extra-options":function(e){var t=e.getAttribute("data-options");t&&(t=document.getElementById(t))&&onl.ui.show(t)},"hide-extra-options":function(e){var t=e.getAttribute("data-options");t&&(t=document.getElementById(t))&&onl.ui.hide(t)}}),onl.decorate({submitlistener:function(e){function t(){e.classList.add("is-submitted")}e.addEventListener?e.addEventListener("submit",(function(e){t()}),!0):e.attachEvent&&e.attachEvent("onsubmit",(function(e){t()}))},"check-all":function(e){var t=e.getAttribute("data-for");t&&(t=onl.dom.$('[data-set="'+t+'"]'))&&(t.forEach((function(i){i.addEventListener("click",(function(){var i=!0;t.forEach((function(e){e.checked||(i=!1)})),e.checked=i}))})),e.addEventListener("click",(function(){var e=this;t.forEach((function(t){t.checked=e.checked}))})))}})}(),function(){"use strict";onl.decorate({"init-browseralert":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[];this.element.querySelector(".button__label")&&this.element.querySelector(".button__label").setAttribute("data-alertmessage",this.element.getAttribute("data-alertmessage"));this.element.addEventListener("click",function(e){var t=e.target;window.confirm(t.getAttribute("data-alertmessage"))||e.preventDefault()}.bind(this),!1)}}(),function(){"use strict";onl.decorate({"init-selectall":function(t){new e(t)}});var e=function(e){this.element=e,this.mastercheckbox=this.element.querySelector(".js-checkbox-master"),this.mastercheckboxId=this.mastercheckbox.getAttribute("id"),this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.checkboxes=this.element.querySelectorAll('input[type="checkbox"]:not(.js-checkbox-master)'),this.checkboxSelectAllOnMain=document.getElementById("ref-"+this.mastercheckboxId),this.amountLabel=this.element.querySelector(".js-amount-checkboxes"),this.amountLabel&&(this.amountLabel.innerHTML=this.checkboxes.length),this.init()};e.prototype.init=function(e){var t=this;this.areAllCheckboxesChecked()&&(this.mastercheckbox.checked=!0,this.checkboxSelectAllOnMain&&(this.checkboxSelectAllOnMain.checked=!0,pubsub.publish("/selectall/init/checkboxSelectAllOnMain/true",{element:this.element})));pubsub.subscribe("/selectall-inner/init/checkboxSelectAllOnMain/true",(function(e){var i=t.element.querySelectorAll('input[type="checkbox"]');t.areAllCheckboxesChecked(i)&&(t.mastercheckbox.checked=!0,t.checkboxSelectAllOnMain&&(t.checkboxSelectAllOnMain.checked=!0,pubsub.publish("/selectall/init/checkboxSelectAllOnMain/true",{element:t.element})))})),pubsub.subscribe("/selectall-inner/changeCheckbox/allAreChecked",(function(e){t.changeCheckbox(e)})),pubsub.subscribe("/selectall-inner/changeMasterCheckbox/allAreChecked",(function(e){t.changeCheckbox(e)}));this.initEventListeners()},e.prototype.initEventListeners=function(e){var t;for(t=0;t<this.checkboxes.length;t++)this.checkboxes[t].addEventListener("click",function(e){this.changeCheckbox(e)}.bind(this),!1);this.mastercheckbox.addEventListener("change",function(e){this.changeMasterCheckbox(e)}.bind(this),!1)},e.prototype.areAllCheckboxesChecked=function(e){e=e||this.checkboxes;return this.countAmountChecked()===this.checkboxes.length},e.prototype.countAmountChecked=function(e){var t,i=0;for(t=0;t<this.checkboxes.length;t++)this.checkboxes[t].checked&&i++;return i},e.prototype.changeCheckbox=function(e){var t,i=this.checkboxes.length;!1===e.target.checked&&this.mastercheckbox.checked&&(this.mastercheckbox.checked=!1,t=!1),i===this.countAmountChecked()&&(this.mastercheckbox.checked=!0,t=!0),this.checkboxSelectAllOnMain&&(this.checkboxSelectAllOnMain.checked=t)},e.prototype.changeMasterCheckbox=function(e){var t,i=this.checkboxes,s=e.target.checked;for(t=0;t<i.length;t++)if(i[t]!==e.target){if(i[t].classList.contains("is-invisible"))continue;if(i[t].checked=e.target.checked,"createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent("change",!1,!0),i[t].dispatchEvent(n)}else i[t].fireEvent("onchange")}var o=getClosest(this.element,".subselection");if(o){var r=o.querySelector(".js-checkbox-selectAllOnMain");o&&r&&(r.checked=s);var a=o.getAttribute("data-id");pubsub.publish("/selectall/changeMasterCheckbox",{element:a})}}}(),function(){"use strict";onl.decorate({"init-selectall2":function(t){new e(t)}});var e=function(e){this.element=e,this.mastercheckbox=this.element.querySelector(".js-checkbox-master-inner"),this.mastercheckboxId=this.mastercheckbox.getAttribute("id"),this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.checkboxes=this.element.querySelectorAll('input[type="checkbox"]:not(.js-checkbox-master-inner)'),this.checkboxSelectAllOnMain=document.getElementById("ref-"+this.mastercheckboxId),this.init()};e.prototype.init=function(e){this.areAllCheckboxesChecked()&&(this.mastercheckbox.checked=!0,this.checkboxSelectAllOnMain&&(this.checkboxSelectAllOnMain.checked=!0,pubsub.publish("/selectall-inner/init/checkboxSelectAllOnMain/true",{element:this.element})),pubsub.publish("/selectall-inner/init/checkboxSelectAllOnMain/true",{target:e})),this.initEventListeners()},e.prototype.initEventListeners=function(e){var t;for(t=0;t<this.checkboxes.length;t++)this.checkboxes[t].addEventListener("click",function(e){this.changeCheckbox(e)}.bind(this),!1);this.mastercheckbox.addEventListener("change",function(e){this.changeMasterCheckbox(e)}.bind(this),!1)},e.prototype.areAllCheckboxesChecked=function(e){return this.countAmountChecked()===this.checkboxes.length},e.prototype.countAmountChecked=function(e){var t,i=0;for(t=0;t<this.checkboxes.length;t++)this.checkboxes[t].checked&&i++;return i},e.prototype.changeCheckbox=function(e){var t,i=this.checkboxes.length;!1===e.target.checked&&this.mastercheckbox.checked&&(this.mastercheckbox.checked=!1,t=!1),i===this.countAmountChecked()&&(this.mastercheckbox.checked=!0,t=!0,pubsub.publish("/selectall-inner/changeCheckbox/allAreChecked",{target:e})),this.checkboxSelectAllOnMain&&(this.checkboxSelectAllOnMain.checked=t)},e.prototype.changeMasterCheckbox=function(e){var t,i=this.checkboxes;e.target.checked;for(t=0;t<i.length;t++)if(i[t]!==e.target){if(i[t].classList.contains("is-invisible"))continue;if(i[t].checked=e.target.checked,"createEvent"in document){var s=document.createEvent("HTMLEvents");s.initEvent("change",!1,!0),i[t].dispatchEvent(s)}else i[t].fireEvent("onchange")}pubsub.publish("/selectall-inner/changeMasterCheckbox/allAreChecked",{target:e})}}(),function(){"use strict";onl.decorate({"init-unselectall":function(t){new e(t)}});var e=function(e){this.element=e,this.mastercheckbox=this.element.querySelector(".js-checkbox-master"),this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.checkboxes=this.element.querySelectorAll(this.config.checkboxSelector||'input[type="checkbox"]:not(.js-checkbox-master)'),this.init()};e.prototype.init=function(e){this.areAllCheckboxesNotChecked()&&(this.mastercheckbox.checked=!0,this.mastercheckbox.setAttribute("checked","checked"),this.mastercheckbox.setAttribute("aria-checked","true")),this.initEventListeners()},e.prototype.initEventListeners=function(e){var t;for(t=0;t<this.checkboxes.length;t++)this.checkboxes[t].addEventListener("click",function(e){this.changeCheckbox(e)}.bind(this),!1);this.mastercheckbox.addEventListener("click",function(e){this.changeMasterCheckbox(e)}.bind(this),!1)},e.prototype.areAllCheckboxesNotChecked=function(e){return 0===this.countAmountChecked()},e.prototype.countAmountChecked=function(e){var t,i=0;for(t=0;t<this.checkboxes.length;t++)this.checkboxes[t].checked&&i++;return i},e.prototype.changeCheckbox=function(e){!0===e.target.checked&&this.mastercheckbox.checked&&(this.mastercheckbox.checked=!1,this.mastercheckbox.removeAttribute("checked"),this.mastercheckbox.setAttribute("aria-checked","fal
48se")),0===this.countAmountChecked()&&(this.mastercheckbox.checked=!0,this.mastercheckbox.setAttribute("checked","checked"),this.mastercheckbox.setAttribute("aria-checked","true"))},e.prototype.changeMasterCheckbox=function(e){var t,i=this.checkboxes;for(e.target.checked,e.target.checked=!0,t=0;t<i.length;t++)if(i[t]!==e.target&&i[t].checked)if(i[t].checked=!1,"createEvent"in document){var s=document.createEvent("HTMLEvents");s.initEvent("change",!1,!0),i[t].dispatchEvent(s)}else{var n=document.createEventObject();i[t].fireEvent("change",n)}}}(),function(){"use strict";onl.decorate({"init-copydata":function(t){new e(t)}});var e=function(e){this.element=e,this.datafield=e.querySelector(".js-copydata__datafield"),this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.init()};e.prototype.init=function(){this.createAndPlaceTrigger(),this.addEventListeners(),this.trigger.setAttribute("aria-live","polite")},e.prototype.addEventListeners=function(){this.trigger.addEventListener("click",function(e){this.triggerCopy(e)}.bind(this),!1)},e.prototype.triggerCopy=function(e){e.preventDefault(),this.putValueInClipboard()},e.prototype.createAndPlaceTrigger=function(){this.trigger=document.createElement("button"),this.triggerSpan=document.createElement("span"),this.trigger.classList.add(this.config.triggerClass),this.trigger.setAttribute("tabindex","0"),this.trigger.setAttribute("aria-label",this.config.triggerLabel+":"+this.datafield.innerHTML),this.triggerSpan.innerText=this.config.triggerLabel,this.trigger.appendChild(this.triggerSpan),this.element.appendChild(this.trigger)},e.prototype.giveFeedbackToUser=function(){var e=this,t=this.trigger.innerText,i=this.config.triggerCopiedlabel||"Gekopieerd";this.trigger.classList.add("is-active"),this.triggerSpan.innerHTML=i,this.trigger.setAttribute("aria-label",i),setTimeout((function(){e.triggerSpan.innerHTML=t,e.trigger.setAttribute("aria-label",e.config.triggerLabel+":"+e.datafield.innerHTML),e.trigger.classList.remove("is-active")}),1e4)},e.prototype.putValueInClipboard=function(){if(document.selection)(e=document.body.createTextRange(this.datafield)).moveToElementText(),e.select().createTextRange(),document.execCommand("copy");else if(window.getSelection){var e;(e=document.createRange()).selectNode(this.datafield),window.getSelection().removeAllRanges(e),window.getSelection().addRange(e),document.execCommand("copy")}this.giveFeedbackToUser()}}(),function(){"use strict";var e=function(e){this.element=e,this.init()};e.prototype.init=function(){this.settings=[{excludeSubdomains:!0}];var e=window.location.host.replace(/^(([^\/:]+?\.)*)([^\.:]{1,})((\.[a-z0-9]{1,253})*)(:[0-9]{1,5})?$/,"$2$3$6"),t=e.split(".");e=t.length>1?t[t.length-2]+"."+t[t.length-1]:t;var i,s,n,o=window.location.host.replace(e,"");for(this.settings.excludeSubdomains?"([^/]*\\.)?":"www."===o||""===o?"(www\\.)?":o.replace(".","\\."),this.regexInternalLink=new RegExp("^https?://([^@]*@)?"+e,"i"),this.whitelistedDomains=["overheid.nl","officielebekendmakingen.nl","officiele-overheidspublicaties.nl","internetconsultatie.nl"],this.whitelistedDomainsRegexxed=[],i=0;i<this.whitelistedDomains.length;i++)this.whitelistedDomainsRegexxed.push(new RegExp("^https?:\\/\\/"+this.whitelistedDomains[i].replace(/(\r\n|\n|\r)/gm,"")+".*$","i"));for(this.allLinks=document.querySelectorAll("a"),this.arrayExternalLinks=[],s=0;s<this.allLinks.length;s++){var r="";if("string"==typeof this.allLinks[s].href&&(r=this.allLinks[s].href.toLowerCase()),"#"!=(r=(r=r.replace("http://localhost:3000","https://"+e)).replace("https://localhost:3000","https://"+e)).charAt(0)&&""!=this.allLinks[s].getAttribute("href")){var a=r.replace("https://",""),l=(a=a.replace("http://","")).split("/")[0].split("."),c=!1;if(l.length>=3&&(c=!0),c)r="https://"+(l[l.length-2]+"."+l[l.length-1]);"/"===r.charAt(0)&&(r="https://"+e);var h=!1;if(!this.regexInternalLink.test(r)){if(this.whitelistedDomains)for(var u=0;u<this.whitelistedDomainsRegexxed.length;u++)if(this.whitelistedDomainsRegexxed[u].test(r)){h=!0;break}h||this.arrayExternalLinks.push(this.allLinks[s])}}}for(n=0;n<this.arrayExternalLinks.length;n++){if("mailto:"!=this.arrayExternalLinks[n].href.substr(0,7)&&"javascript:void(0)"!=this.arrayExternalLinks[n].href&&""!==this.arrayExternalLinks[n].href&&!this.arrayExternalLinks[n].classList.contains("is-external")){this.arrayExternalLinks[n].classList.contains("button--doubleline")||this.arrayExternalLinks[n].classList.add("is-external");var d=document.createElement("span");d.innerHTML="Externe link: ",d.classList.add("visually-hidden"),this.arrayExternalLinks[n].insertBefore(d,this.arrayExternalLinks[n].firstChild)}}},new e}(),function(){"use strict";onl.decorate({"init-filter-results":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.init()};e.prototype.init=function(){this.input=onl.dom.$(".js-filterresults__input",this.element)[0],this.results=onl.dom.$(".js-filterresults__result",this.element),this.setContainerClass=".js-filterresults__resultmother",this.btnSelectAll=this.element.querySelector(this.config.btnSelectAll)||this.element.querySelector(".js-filterresults__btn-selectall"),this.allCheckboxes=this.element.querySelectorAll('input[type="checkbox"], input[type="radio"]'),this.setContainers=this.element.querySelectorAll(this.setContainerClass);for(var e=0;e<this.results.length;e++)this.results[e].classList.add("is-visible");this.addEventListeners()},e.prototype.addEventListeners=function(){this.btnSelectAll&&this.btnSelectAll.addEventListener("click",function(){return this.selectAll(event),!1}.bind(this),!1),this.input&&this.input.addEventListener("keyup",function(){this.doFilter()}.bind(this),!1);pubsub.subscribe("rps/filtersearch/filter-id--SelectedOrganisaties/reset-subselection",function(e){}.bind(this))},e.prototype.selectAll=function(e){var t;for(t=0;t<this.allCheckboxes.length;t++)onl.ui.isVisible(this.allCheckboxes[t])&&(this.allCheckboxes[t].checked=!0);if("createEvent"in document){var i=document.createEvent("HTMLEvents");i.initEvent("change",!1,!0),this.allCheckboxes[0].dispatchEvent(i)}else this.allCheckboxes[0].fireEvent("onchange");-1!==navigator.appVersion.indexOf("MSIE 10")?e.returnValue=!1:e.preventDefault()},e.prototype.doFilter=function(){var e,t,i,s,n=this.input.value.toUpperCase(),o=!1,r=this.setContainers,a=0;function l(e){return e.replace(/([à áâãÄäå])|([çÄÄ])|([èéêë])|([ìÃîïī])|([ñÅ])|([òóôõÅöø])|([Ã])|([ùúûüū])|([ÿ])|([æ])/g,(function(e,t,i,s,n,o,r,a,l,c,h){return t?"a":i?"c":s?"e":n?"i":o?"n":r?"o":a?"s":l?"u":c?"y":h?"ae":void 0}))}for(e=0;e<this.results.length;e++)if(s=(s=(s=(i=this.results[e]).textContent||i.innerText).trim()).toLowerCase(),(!this.results[e].closest("fieldset")||"false"!==this.results[e].closest("fieldset").classList.contains("is-hidden"))&&l(s).indexOf(l(n.toLowerCase()))>-1){this.results[e].removeAttribute("aria-hidden"),this.results[e].classList.add("is-visible"),this.results[e].classList.remove("is-invisible"),this.results[e].classList.remove("a");
48const t=this.results[e].closest(".is-custom-hiddenfalse"),i=this.results[e].closest(".is-custom-hiddentrue");t&&a++,t||i||a++}else this.results[e].setAttribute("aria-hidden","true"),this.results[e].classList.add("is-invisible"),this.results[e].classList.add("a"),this.results[e].classList.remove("is-visible");for(t=0;t<r.length;t++){r[t].querySelectorAll(".is-visible").length<1?r[t].setAttribute("aria-hidden","true"):r[t].removeAttribute("aria-hidden")}if(r.length>0){for(t=0;t<r.length;t++)if(!r[t].hasAttribute("aria-hidden")){o=!0;break}}else for(e=0;e<this.allCheckboxes.length;e++)if(onl.ui.isVisible(this.allCheckboxes[e])){o=!0;break}var c="#"+this.input.getAttribute("aria-controls"),h="#alert-"+c.substring(1);if(o)this.element.querySelector(h)&&this.element.querySelector(h).parentNode.removeChild(this.element.querySelector(h));else if(!this.element.querySelector(h)){var u=document.createElement("p");u.innerHTML="Er zijn geen resultaten gevonden",u.setAttribute("role","alert"),u.classList.add("alert"),u.id=h.substring(1),this.element.querySelector(c).parentNode.appendChild(u)}this.btnSelectAll&&(o?this.btnSelectAll.removeAttribute("aria-hidden"):this.btnSelectAll.setAttribute("aria-hidden","true"),""===this.input.value?this.btnSelectAll.innerHTML=this.btnSelectAll.getAttribute("data-label"):this.btnSelectAll.innerHTML=1===a?"Selecteer "+a+" resultaat":"Selecteer "+a+" resultaten")}}(),function(){"use strict";onl.decorate({"init-form-conditionals":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.questionIdTag=this.config.questionIdTag||"#citem-",this.questionContainer=this.config.questionContainer||".js-form-conditionals__citem",this.submitContainer=this.config.submitContainer||this.element.querySelector(".js-form-conditionals__submitcontainer"),this.respondsContainer=this.config.respondsContainer||this.element.querySelector(".js-form-conditionals__responds"),this.buttonNextSelector=".js-button-next",this.questions=this.element.querySelectorAll(this.questionContainer),this.inputs=this.element.querySelectorAll("input,select"),this.buttonNexts=this.element.querySelectorAll(this.buttonNextSelector),this.initEventListeners(),this.setInitialState()};e.prototype.setInitialState=function(){var e,t,i,s;for(e=0;e<this.questions.length;e++)0!==e&&this.questions[e].setAttribute("aria-hidden","true"),0===e&&(i=!0);if(i&&(i=this.questions[0].querySelectorAll("input,select"))[0]&&("SELECT"===i[0].tagName&&("createEvent"in document?((s=document.createEvent("HTMLEvents")).initEvent("change",!1,!0),i[0].dispatchEvent(s)):i[0].fireEvent("onchange")),"INPUT"===i[0].tagName))for(t=0;t<i.length;t++)i[t].checked&&this.actOnChange(i[t])},e.prototype.initEventListeners=function(e){var t,i;for(t=0;t<this.inputs.length;t++)this.inputs[t].addEventListener("change",function(e){this.actOnChange(e)}.bind(this),!1);for(i=0;i<this.buttonNexts.length;i++)this.buttonNexts[i].addEventListener("click",function(e){this.actOnChange(e,"button")}.bind(this),!1)},e.prototype.actOnChange=function(e,t){var i,s,n,o,r,a,l,c;switch(s=(i=void 0!==e.target?e.target:e).type,o=i.closest(this.questionContainer),r=!0,a=i.getAttribute("data-triggerlaststep"),l=i.getAttribute("data-triggeresponds"),c=i.getAttribute("data-hideself"),s){case"radio":case"submit":case"button":case"input":n=i.getAttribute("data-linkedto");break;case"select-one":n=i[i.selectedIndex].getAttribute("data-linkedto");break;case"checkbox":this.amountCheckedInFamily(i,o)>0?(o.querySelector(this.buttonNextSelector).removeAttribute("hidden"),o.querySelector(this.buttonNextSelector).removeAttribute("aria-hidden")):(o.querySelector(this.buttonNextSelector).setAttribute("aria-hidden","true"),this.resetFutureQuestions(o)),r=!1}r&&(this.resetFutureQuestions(o),n?(this.activateLinkedQuestion(n),this.hideFormSubmit()):this.showFormSubmit()),l?(this.showResponds(),this.hideForm()):a&&this.showFormSubmit(),c&&this.hideCurrentQuestion(o),"button"===t&&e.preventDefault()},e.prototype.hideCurrentQuestion=function(e){e.setAttribute("aria-hidden","true")},e.prototype.amountCheckedInFamily=function(e,t){var i,s,n,o;for(o=0,i=t.getElementsByTagName("input"),s=0;s<i.length;++s)"checkbox"===(n=i[s]).getAttribute("type")&&n.checked&&n.name===e.name&&++o;return o},e.prototype.resetFutureQuestions=function(e){var t,i,s;for(e=(e=e.getAttribute("id")).substr(this.questionIdTag.length-1,5),t=0;t<this.questions.length;t++)if(this.questions[t].getAttribute("id").substr(this.questionIdTag.length-1,5)>e){for(s=this.questions[t].querySelectorAll("input"),i=0;i<s.length;i++){"radio"===s[i].getAttribute("type")&&(s[i].checked=!1)}this.questions[t].setAttribute("aria-hidden","true"),this.questions[t].removeAttribute("aria-live")}},e.prototype.activateLinkedQuestion=function(e){var t=this.element.querySelector(this.questionIdTag+e);t&&(t.removeAttribute("aria-hidden"),t.setAttribute("aria-live","polite"))},e.prototype.showFormSubmit=function(){this.submitContainer&&(this.submitContainer.removeAttribute("hidden"),this.submitContainer.removeAttribute("aria-hidden"))},e.prototype.hideFormSubmit=function(){this.submitContainer&&(this.submitContainer.setAttribute("hidden","hidden"),this.submitContainer.setAttribute("aria-hidden","true"))},e.prototype.showResponds=function(){this.respondsContainer.removeAttribute("hidden"),this.respondsContainer.removeAttribute("aria-hidden")},e.prototype.hideForm=function(){var e;
48for(e=0;e<this.questions.length;e++)this.questions[e].setAttribute("aria-hidden","true");this.submitContainer.setAttribute("aria-hidden","true")}}(),function(){"use strict";onl.decorate({"init-form-addfield":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.addbutton=this.element.querySelector("."+this.config.addbuttonClass)||this.element.querySelector(".js-form-fieldrepeater__addbutton"),this.fieldName=this.config.fieldName||"nameplaceholder",this.init()};e.prototype.init=function(){this.initEventListeners()},e.prototype.initEventListeners=function(){this.addbutton&&this.addbutton.addEventListener("click",function(e){this.actionAddButton(e)}.bind(this),!1)},e.prototype.actionAddButton=function(e){var t=this.element.querySelectorAll(".form__row"),i=t[t.length-2],s=i.cloneNode(!0),n=i.querySelector("input").id+"1";return s.querySelector("label").setAttribute("for",i.querySelector("input").id+"1"),s.querySelector("label").setAttribute("id",i.querySelector("input").id+"2"),s.querySelector("input").id=n,s.querySelector("input").setAttribute("data-lastval",""),i.parentNode.insertBefore(s,i.nextSibling),document.getElementById(n).value="",s.querySelector("input").focus(),e.preventDefault(),!1}}(),function(){"use strict";onl.decorate({"init-formredirecter":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.element.field=this.config.field||".js-form-redirecter__field",this.root=location.protocol+"//"+location.host,this.element.addEventListener("submit",function(e){e.preventDefault(),this.formValue=this.element.querySelector(this.element.field).value,"/"!==this.formValue.charAt(0)&&(this.formValue="/"+this.formValue),window.location=this.root+this.formValue}.bind(this),!1)}}(),function(){"use strict";onl.decorate({"init-formreset":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.elements=this.config.elements||"input, select",this.resetElementClass=this.config.resetElementClass||"formreset-resetlink",this.resetLink=this.element.querySelector("."+this.resetElementClass),this.storeInitialValue("select"),this.resetLink&&this.initEventListeners()};e.prototype.initEventListeners=function(){this.resetLink.addEventListener("click",function(e){this.resetForm(e)}.bind(this),!1)},e.prototype.storeInitialValue=function(e){this.inputs=this.element.querySelectorAll(this.elements);for(var t=0;t<this.inputs.length;t++){switch(this.getType(this.inputs[t])){case"select":this.inputs[t].setAttribute("data-initial-value",this.inputs[t].value)}}},e.prototype.getType=function(e){var t;return"INPUT"===e.nodeName?t=e.getAttribute("type"):"SELECT"===e.nodeName&&(t="select"),t},e.prototype.resetForm=function(e){var t;for(this.inputs=this.element.querySelectorAll(this.elements),t=0;t<this.inputs.length;t++){var i;if(i=this.getType(this.inputs[t]))switch(i){case"radio":case"checkbox":this.inputs[t].checked&&(this.inputs[t].checked=!1);break;case"select":if(this.inputs[t].value=this.inputs[t].getAttribute("data-initial-value"),"createEvent"in document)(s=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),this.inputs[t].dispatchEvent(s);else this.inputs[t].fireEvent("change");break;case"text":var s;if(this.inputs[t].value="","createEvent"in document)(s=document.createEvent("HTMLEvents")).initEvent("keyup",!1,!0),this.inputs[t].dispatchEvent(s);else this.inputs[t].fireEvent("keyup")}}e.preventDefault()}}(),function(){"use strict";onl.decorate({"init-inputsuggestion":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.suggestiontype=this.element.getAttribute("data-suggestionpattern")||!1,this.element.setAttribute("data-id",Math.floor(1e4*Math.random())),this.initEventListeners()};e.prototype.initEventListeners=function(){this.element.addEventListener("blur",function(e){this.validateField(e)}.bind(this),!1)},e.prototype.setSuggestionAsValue=function(e){this.element.value=this.hasSuggestion,this.element.focus(),this.removeExcistingSuggestion(this.element),e.preventDefault()},e.prototype.validateField=function(e){var t=e.target,i=e.target.value;if(this.hasExcistingSuggestion(t)&&this.removeExcistingSuggestion(t),this.hasExcistingError(t)&&this.removeExcistingError(t),""!=e.target.value)if(this.hasSuggestion=this.validateValue(this.suggestiontype,i
48),this.hasSuggestion)this.buildAndAppendSuggestion(this.hasSuggestion);else if(""===this.hasSuggestion);else{var s;switch(this.suggestiontype){case"ondernummer":s="Geen geldig ondernummer";break;case"dossiernummer":s="Geen geldig dossiernummer";break;default:s="Geen geldige invoer"}this.showErrorMessage(s)}},e.prototype.showErrorMessage=function(e){var t=document.createElement("p");t.innerHTML=e,t.classList.add("js-inputsuggestion__error"),t.classList.add("form__error"),t.setAttribute("role","alert"),t.setAttribute("data-id","error-"+this.element.getAttribute("data-id")),t.setAttribute("id","error-"+this.element.getAttribute("data-id")),this.element.parentNode.insertBefore(t,this.element.nextSibling),this.element.setAttribute("aria-invalid",!0),this.element.setAttribute("aria-describedby","error-"+this.element.getAttribute("data-id"))},e.prototype.validateValue=function(e,t){if("regex"===e&&this.element.getAttribute("data-regex")){var i=new RegExp(this.element.getAttribute("data-regex"));if(""==t||i.test(t))return"";if(t.indexOf(" ")>-1){var s=t.replace(" ","");if(i.test(s))return s}}if("ondernummer"===e){i=new RegExp("^([0-9]{1,4}[A-z]{0,3}|[A-z]{1,5})$");if(""==t||i.test(t))return"";if(t.indexOf(" ")>-1){s=t.replace(" ","");if(i.test(s))return s}}if("dossiernummer"===e){var n;i=new RegExp("^[iIvVxXcClLdDmM]+$|^[0-9]{5}(-(\\(?R[0-9]{4}\\)?|[A-z]{1,5}|[0-9]{2}))?$");if(""==t||i.test(t))return"";if(1==(n=(t=t.replace(" ","")).split("-")).length){var o=n[0].match(/[a-z]+|\d+/gi);if(null!=o)if(2==o.length){if(r=this.uitgevuldDossiernummer(o[0])+"-"+o[1],i.test(r))return r}else if(1==o.length){if(""==(r=this.uitgevuldDossiernummer(o[0]))&&t.length>5&&(r=[t.slice(0,5),"-",t.slice(5)].join("")),i.test(r))return r}else if(3==o.length&&("R"==o[1]||"r"==o[1])&&(r=this.uitgevuldDossiernummer(o[0])+"-(R"+o[2]+")",i.test(r)))return r}else if(2==n.length){var r=this.uitgevuldDossiernummer(n[0])+"-"+n[1];if(i.test(r))return r}return""}return!1},e.prototype.uitgevuldDossiernummer=function(e){return e.length<=5?("00000"+e).slice(-5):""},e.prototype.hasExcistingSuggestion=function(e){return document.querySelector('[data-id="suggestion-'+this.element.getAttribute("data-id")+'"]')},e.prototype.hasExcistingError=function(e){return document.querySelector('[data-id="error-'+this.element.getAttribute("data-id")+'"]')},e.prototype.removeExcistingSuggestion=function(e){var t=document.querySelector('[data-id="suggestion-'+this.element.getAttribute("data-id")+'"]');t&&t.parentNode.removeChild(t),this.element.removeAttribute("aria-describedby")},e.prototype.removeExcistingError=function(e){var t=document.querySelector('[data-id="error-'+this.element.getAttribute("data-id")+'"]');t&&(t.parentNode.removeChild(t),this.element.removeAttribute("aria-describedby")),this.element.setAttribute("aria-invalid",!1)},e.prototype.buildAndAppendSuggestion=function(e){var t=document.createElement("p");t.classList.add("js-inputsuggestion__suggestion"),t.classList.add("form__suggestion"),t.setAttribute("role","alert"),t.setAttribute("data-id","suggestion-"+this.element.getAttribute("data-id")),t.setAttribute("id","suggestion-"+this.element.getAttribute("data-id")),t.innerHTML='Bedoelde u: "<a href="#" class="js-inputsuggestion__suggestion-link">'+e+'</a>"?',this.element.setAttribute("aria-describedby","suggestion-"+this.element.getAttribute("data-id")),this.element.parentNode.insertBefore(t,this.element.nextSibling),document.querySelector('[data-id="suggestion-'+this.element.getAttribute("data-id")+'"]').addEventListener("click",function(e){this.setSuggestionAsValue(e)}.bind(this),!1)}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var supports=function(){return!(!document.addEventListener&&!document.querySelector("body"))};!function(){"use strict";onl.decorate({})}(),function(){"use strict";onl.decorate({"init-kpm":function(t){new e(t,"push")}}),window.kpmLocationModal=function(e,t,i){var s=t[0],n=document.querySelector(i)||document.querySelector(".js-kpm-location-information"),o="<h2>"+s.title+"</h2>";s.omschrijving&&(o+="<p>"+s.omschrijving+"</p>"),s.url&&(o+='<p><a href="'+s.url+'" class="button button--primary">Bekijk publicatie <span class="visually-hidden">"'+s.title+'"</span></p>'),n.innerHTML=o,e.click()};var e=function(e,t){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.dataFromJSON=document.querySelector(this.config.config).innerHTML,this.rangeSelectors=document.querySelectorAll(this.config.rangeselector),this.mapInitialized=!1;var i=this,s=!0;this.id=this.element.getAttribute("id");var n=getClosest(this.element,".modal");if(n&&(s=isVisible(n)),s)this.rangeSelectors&&this.setRangeListener(),"push"!==t||this.mapInitialized||this.setupMap();else pubsub.subscribe("/modal/open",(function(e){var t=e.modal.querySelector(".map__kpm");t&&i.id===t.getAttribute("id")&&i.setupMap()}))};e.prototype.setRangeListener=function(){var e;
48for(e=0;e<this.rangeSelectors.length;e++)this.rangeSelectors[e].addEventListener("change",function(e){this.setupMap(e.target,"editRange")}.bind(this),!1),this.rangeSelectors[e].hasAttribute("checked")&&(this.setupMap(this.rangeSelectors[e],"editRange"),this.mapInitialized=!0)},e.prototype.setupMap=function(e,t){if(window.kaartprikmodule=window.kaartprikmodule||[],this.data={debug:!1,on_cancel:function(){},on_submit:function(e){}},this.data.mount_element=document.getElementById(this.element.getAttribute("id")),Object.assign(this.data,JSON.parse(this.dataFromJSON)),"editRange"===t){var i=e.getAttribute("data-kpm-rangetype"),s=e.getAttribute("data-kpm-rangetitle")||e.getAttribute("value");if("gemeente"===i)this.data.options.center.type="location",this.data.options.center.location={},this.data.options.center.location.type=i,this.data.options.center.location.title=s;else{if(isNaN(e.value))return!1;this.data.options.center.circle.radius=parseInt(e.value,10)}}this.renderMap()},e.prototype.renderMap=function(){void 0!==window.kaartprikmodule&&window.k
48aartprikmodule.bootstrapKpm(this.data)}}(),function(){"use strict";onl.decorate({"init-passwordstrength":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.fieldPassword=this.config.fieldPassword||".js-passwordstrength__input",this.fieldPassword=this.element.querySelector(this.fieldPassword),this.fieldPasswordRepeat=this.config.fieldPasswordRepeat||".js-passwordstrength__inputrepeat",this.fieldPasswordRepeat=document.querySelector(this.fieldPasswordRepeat),this.regexContainer=this.element.querySelector(".js-passwordstrength__regexcontainer > div"),this.regexs=this.regexContainer.querySelectorAll("[data-regex]"),this.messageTemplate='<p class="form__{{state}}">{{message}}</p>',this.duplicateRegexContainer=document.querySelector(".js-passwordstrength__duplicateregexcontainer"),this.duplicateRegexContainer&&this.makeDuplicateRegexContainer(),this.initEventListeners()};e.prototype.initEventListeners=function(){this.fieldPassword&&(this.fieldPassword.addEventListener("keyup",function(e){this.validateField(e,"keyup")}.bind(this),!1),this.fieldPassword.addEventListener("blur",function(e){this.validateField(e,"blur")}.bind(this),!1)),this.fieldPasswordRepeat&&(this.fieldPasswordRepeat.addEventListener("keyup",function(e){this.validateFieldRepeat(e,"keyup")}.bind(this),!1),this.fieldPasswordRepeat.addEventListener("blur",function(e){this.validateFieldRepeat(e,"blur")}.bind(this),!1))},e.prototype.makeDuplicateRegexContainer=function(){this.duplicateRegexContainer.innerHTML="";var e=this.regexContainer.cloneNode(!0);this.duplicateRegexContainer.appendChild(e)},e.prototype.validateFieldOnBlur=function(){},e.prototype.validateField=function(e,t){var i,s,n=0;for(i=0;i<this.regexs.length;i++)this.regexs[i].classList.remove("is-active"),this.regexContainer.setAttribute("role","");for(i=0;i<this.regexs.length;i++)new RegExp(this.regexs[i].dataset.regex).test(this.fieldPassword.value)&&(this.regexs[i].classList.add("is-active"),n++);n===this.regexs.length&&""!=this.fieldPassword.value?(this.fieldPassword.classList.add("is-valid","pw-valid"),this.fieldPassword.classList.remove("is-invalid","pw-invalid"),this.fieldPassword.setAttribute("aria-invalid",!1),s="success"):""!=this.fieldPassword.value?(this.fieldPassword.classList.remove("is-valid","pw-valid"),this.fieldPassword.classList.add("is-invalid","pw-invalid"),this.fieldPassword.setAttribute("aria-invalid",!0),s="error",this.removeFieldMessage(this.fieldPassword)):(this.fieldPassword.classList.remove("is-valid","pw-valid"),this.fieldPassword.classList.remove("is-invalid","pw-invalid"),this.fieldPassword.setAttribute("aria-invalid",!1),s="default"),this.duplicateRegexContainer&&this.makeDuplicateRegexContainer(),this.clearFieldRepeat(),"blur"===t&&(this.appendFieldMessage(this.fieldPassword,"original",s),this.fieldPasswordRepeat&&this.fieldPasswordRepeat.value)},e.prototype.removeFieldMessage=function(e){var t=e.parentNode.querySelectorAll(".form__message");if(t)for(var i=0;i<t.length;i++)t[i].remove()},e.prototype.clearFieldRepeat=function(){var e=this.fieldPasswordRepeat;if(e){e.value;this.fieldPassword.value!==e&&(this.fieldPasswordRepeat.classList.remove("is-valid"),this.fieldPasswordRepeat.classList.remove("is-invalid"),this.fieldPasswordRepeat.classList.remove("has-error"),this.fieldPasswordRepeat.value="",this.fieldPasswordRepeat.setAttribute("aria-invalid",!1),this.removeFieldMessage(this.fieldPasswordRepeat))}},e.prototype.appendFieldMessage=function(e,t,i){var s="",n=document.createElement("p"),o=e.getAttribute("placeholder");if("original"===t)var r=this.getLackingFieldCriteria(e);var a="fieldmessage-"+Math.floor(11e4*Math.random());switch(this.removeFieldMessage(e),i){case"success":s="Correct ingevuld";break;case"error":s="repeat"===t?"Het veld '"+o+"' is incorrect ingevuld. Het moet gelijk zijn aan het veld 'Nieuw wachtwoord'":"Het veld '"+o+"' is incorrect ingevuld. Het veld moet nog minimaal voldoen aan: "+r+"."}n.innerHTML=s,n.id=a,n.classList.add("form__message"),n.classList.add("form__"+i),n.setAttribute("aria-live","polite"),e.setAttribute("aria-describedby",a),e.parentNode.insertBefore(n,e.nextSibling)},e.prototype.getLackingFieldCriteria=function(e){for(var t="",i=e.closest(".passwordstrength").querySelector(".passwordstrength__regexcontainer").querySelectorAll(".passwordstrength__regexcontainer__regexoptions li:not(.is-active)"),s=0;s<i.length;s++)t+=", "+i[s].innerText;return t.substring(2)},e.prototype.validateFieldRepeat=function(e,t){var i,s=this.fieldPasswordRepeat.value;this.fieldPassword.value!==s?(this.showError(this.fieldPasswordRepeat),this.fieldPasswordRepeat.classList.remove("is-valid"),this.fieldPasswordRepeat.classList.add("is-invalid"),this.fieldPasswordRepeat.classList.add("pw-invalid-repeat","has-error"),this.fieldPasswordRepeat.setAttribute("aria-invalid",!0),i="error"):(this.removeError(this.fieldPasswordRepeat),this.fieldPasswordRepeat.classList.add("is-valid"),this.fieldPasswordRepeat.classList.remove("pw-invalid-repeat"),this.fieldPasswordRepeat.classList.remove("has-error"),this.fieldPasswordRepeat.classList.remove("is-invalid"),this.fieldPasswordRepeat.setAttribute("aria-invalid",!1),i="success"),"blur"===t&&this.appendFieldMessage(this.fieldPasswordRepeat,"repeat",i)},e.prototype.showError=function(e){e.nextElementSibling},e.prototype.removeError=function(e){e.nextElementSibling}}(),function(){"use strict";onl.decorate({"init-printtrigger":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.element.addEventListener("click",function(e){window.print(),e.preventDefault()}.bind(this),!1)}}(),function(){"use strict";onl.decorate({"init-scroll-chapter":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.chapter
48Links=this.config.chapterLinks||document.querySelectorAll(".nav-sub a"),this.lastId,this.cur=[],this.initEventListeners()};e.prototype.initEventListeners=function(){var e;for(e=0;e<this.chapterLinks.length;e++)this.chapterLinks[e].addEventListener("click",function(e){this.chapterLinksClickhandler(e)}.bind(this),!1);window.addEventListener("scroll",function(e){var t,i=this;t&&window.clearTimeout(t),t=window.setTimeout((function(){i.onScroll(e)}),10)}.bind(this),!1)},e.prototype.chapterLinksClickhandler=function(e){var t,i=e.target.hash;if(""!=i&&"accordion__item"===(t=document.getElementById(i.substring(1))).getAttribute("class")){var s=t.querySelector(".accordion__item__header-trigger");s&&"false"===s.getAttribute("aria-expanded")&&s.click()}},e.prototype.offset=function(e){var t=e.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,s=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+s,left:t.left+i}},e.prototype.onScroll=function(){var e,t,i,s,n=window.pageYOffset+2;for(i=0;i<this.chapterLinks.length;i++)""!==(s=this.chapterLinks[i]).hash&&(e=document.querySelector(s.hash))&&((t=this.offset(e)).top<=n&&t.top+e.offsetHeight>n?s.classList.add("is-currentchapter"):s.classList.remove("is-currentchapter"))}}(),function(){"use strict";onl.decorate({"to-top":function(e){var t=e;t.classList.add("irrelevant"),window.addEventListener("scroll",(function(){var e=document.querySelector(".footer").offsetTop,i=window.pageYOffset||document.documentElement.scrollTop;i>500&&i+window.innerHeight<=e?t.classList.remove("irrelevant"):t.classList.add("irrelevant")}))}})}(),function(){"use strict";onl.decorate({"init-tablefullscreen":function(t){new e(t)}});var e=function(e){var t=this;this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.openButton=this.element,this.closeButton=this.element.nextSibling.querySelector(".table__container__closefullscreen"),this.tableFullscreenContainer=this.element.nextSibling,this.previouslyFocused=this.openButton,this.element.addEventListener("click",function(e){t.openFullscreenMode(),e.preventDefault()}.bind(this),!1),this.closeButton.addEventListener("click",function(e){t.closeFullscreenMode(),e.preventDefault()}.bind(this),!1)};e.prototype.openFullscreenMode=function(){this.element.nextSibling.classList.add("is-fullscreen"),this.element.nextSibling.setAttribute("aria-modal",!0),this.element.nextSibling.setAttribute("role","dialog"),document.body.classList.add("is-modal-open");var e=this.element.nextSibling.querySelector(".table__container"),t=window.innerHeight;e.style.height=t-145+"px",onl.ui.focus(this.tableFullscreenContainer),onl.ui.bindFocusTrap(this.tableFullscreenContainer)},e.prototype.closeFullscreenMode=function(){this.element.nextSibling.classList.remove("is-fullscreen"),document.body.classList.remove("is-modal-open"),this.element.nextSibling.removeAttribute("aria-modal",!0),this.element.nextSibling.removeAttribute("role","dialog"),this.element.nextSibling.querySelector(".table__container").style.height="auto",onl.ui.unbindFocusTrap(this.tableFullscreenContainer),this.previouslyFocused&&onl.ui.focus(this.previouslyFocused)}}(),function(){"use strict";onl.decorate({"init-toast":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.config2=JSON.parse(this.element.getAttribute("data-config"))||[],this.trigger=this.element.querySelector(".toast-trigger"),this.message=this.element.querySelector(".toast-message"),this.triggerConfig=JSON.parse(this.trigger.getAttribute("data-config"))||[],this.timeout=this.triggerConfig.timeout||"5000",this.init()};e.prototype.init=function(){this.initEventListeners()},e.prototype.initEventListeners=function(){var e=this;this.trigger.addEventListener("click",function(e){this.setStateToast()}.bind(this),!1);pubsub.subscribe("/toast/hideAllActiveToasts",(function(){clearTimeout(e.timer);for(var t=e.element.querySelectorAll(".toast-message"),i=0;i<t.length;i++)e.hideToast(t[i])}))},e.prototype.setStateToast=function(){var e=this;this.hideAllActiveToasts(),this.showToast(e.message),this.timer=setTimeout((function(){e.hideToast(e.message)}),this.timeout)},e.prototype.hideAllActiveToasts=function(){pubsub.publish("/toast/hideAllActiveToasts")},e.prototype.showToast=function(e){e.setAttribute("aria-hidden",!1)},e.prototype.hideToast=function(e){e.getAttribute("aria-hidden")&&e.setAttribute("aria-hidden",!0)}}(),onl.decorate({"active-item-toggle":function(e,t){e.querySelectorAll(".content-item").forEach((function(e){e.addEventListener("click",(function(t){if("button"!==t.target.type){var i=document.getElementsByClassName("content-item active");if(i.length>0){if(i[0]===e)return void i[0].classList.remove("active");i[0].classList.remove("active")}e.classList.add("active")}}))}))}}),onl.handle({"toggle-other-sites":function(e,t){var i=onl.dom.getElementFromHref(e.href),s=e.getAttribute("aria-expanded"),n=document.createEvent("Event"),o=document.createEvent("Event"),r=document.querySelector(".header__primary-nav li:nth-child(2)")||!1;t.preventDefault(),n.initEvent("othersites:open",!0,!0),o.initEvent("othersites:close",!0,!0),"true"===s?(i.classList.remove("is-open"),e.setAttribute("aria-expanded","fal
48se"),window.dispatchEvent(o)):(i.classList.add("is-open"),onl.ui.getFocusableElements(i).length>0?onl.ui.focus(onl.ui.getFocusableElements(i)[0]):onl.ui.focus(i),e.setAttribute("aria-expanded","true"),window.dispatchEvent(n),document.addEventListener("keydown",fn=function(t){if(9==t.keyCode){var s=i.querySelectorAll("a");if(s[s.length-1]===document.activeElement)if(t.preventDefault(),i.classList.remove("is-open"),e.setAttribute("aria-expanded","false"),window.dispatchEvent(o),document.removeEventListener("keydown",fn),r)r.querySelector("a").focus()}}))},"toggle-nav":function(e){var t=document.getElementById(e.getAttribute("aria-controls"));"false"===e.getAttribute("aria-expanded")?(t.classList.remove("header__nav--closed"),e.setAttribute("aria-expanded","true"),onl.ui.focus(t)):(t.classList.add("header__nav--closed"),e.setAttribute("aria-expanded","false"))}}),onl.decorate({"init-toggle-other-sites":function(e){var t=onl.dom.getElementFromHref(e.href);e.setAttribute("aria-controls",t.id),e.setAttribute("aria-expanded","false")}}),function(){"use strict";var e={context:{searchTermHiddenClass:"search__term--hidden",searchTermAnimateClass:"search__term--animating",open:"Open zoekveld",close:"Sluit zoekveld",submit:"Zoek"},handleInputChange:function(t){var i=t.target,s=i.form.querySelector("button");i.value.length>0?s.textContent=e.context.submit:s.textContent=e.context.close}};onl.handle({"toggle-search":function(t,i){var s=t.closest("form"),n=s.querySelector(".search__term"),o=s.querySelector("button"),r=e.context.searchTermHiddenClass;i.preventDefault(),n.value.length>0?s.submit():n.classList.contains(r)?(n.classList.remove(r),n.focus(),o.textContent=e.context.close):(n.classList.add(r),o.textContent=e.context.open,n.value="")}}),onl.decorate({"init-search-toggle":function(t){var i=t.querySelector(".search__term"),s=t.querySelector("button"),n=e.context.searchTermHiddenClass,o=e.context.searchTermAnimateClass;i.classList.add(n),i.addEventListener("keyup",e.handleInputChange),s.textContent=e.context.open,s.setAttribute("data-handler","toggle-search"),setTimeout((function(){i.classList.add(o)}),500)}})}(),function(){"use strict";var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.init()};e.prototype.init=function(){this.triggers=document.querySelectorAll("[data-controller-value]"),this.targetContainer=this.config.targetContainer||"body",this.attachListerners()},e.prototype.attachListerners=function(){var e,t=this;for(e=0;e<this.triggers.length;e++)this.triggers[e].addEventListener("click",(function(e){t.setState(e)}))},e.prototype.setState=function(e){var t,i=e.target,s=i.getAttribute("data-controller-value"),n=document.querySelector(this.targetContainer);for(document.querySelector(this.targetContainer).classList.remove("is-delinscontrollerstate-del"),document.querySelector(this.targetContainer).classList.remove("is-delinscontrollerstate-ins"),"ins"!==s&&"del"!==s||document.querySelector(this.targetContainer).classList.add("is-delinscontrollerstate-"+s),t=0;t<this.triggers.length;t++)this.triggers[t].setAttribute("aria-current",!1);i.setAttribute("aria-current",!0),n&&n.setAttribute("aria-live","polite")},onl.decorate({"init-controller-insdel":function(t){new e(t)}})}(),onl.handle({"toggle-explanation":function(e,t){var i,s=onl.dom.getElementFromHref(e.href),n=document.querySelectorAll(".question-explanation__content .question-explanation__close");for(i=0;i<n.length;i++)n[i].click();if(t.preventDefault(),s.hasAttribute("data-explanation-opener")||s.setAttribute("data-explanation-opener",e.id),onl.ui.isHidden(s)){var o=window.innerWidth;onl.ui.show(s,s);var r=s.getBoundingClientRect(),a=r.width||r.left-r.right;o<=r.left+a&&(s.classList.add("question-explanation__content--left"),r=s.getBoundingClientRect(),window.pageXOffset>r.left&&(s.classList.remove("question-explanation__content--left"),s.classList.add("question-explanation__content--fixed")))}else onl.ui.hide(s),s.classList.remove("question-explanation__content--left"),s.classList.remove("question-explanation__content--fixed")},"close-explanation":function(e,t){var i=e.closest(".question-explanation__content"),s=document.getElementById(i.getAttribute("data-explanation-opener"));s&&(onl.ui.hide(i,s),i.classList.remove("question-explanation__content--left"),i.classList.remove("question-explanation__content--fixed")),t.preventDefault()}}),onl.decorate({"hide-self":function(e){onl.ui.hide(e)}}),onl.decorate({explanation:function(e){e.classList.add("is-hidden")}}), 49/** @license * moment.js * authors : Tim Wood, Iskren Chernev, Moment.js contributors * license : MIT * momentjs.com */ 50function(){onl.decorate({"init-datepicker":function(t){new e(t)}});var e=function(e){var t=this;this.element=e,this.elementId=this.element.getAttribute("id"),this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.config.isTouch=onl.ui.isTouch(),this.config.months=["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],this.round=0,this.config.manualHiddenField||this.createHiddenField(),this.config.isTouch?$(e).on("change",(function(){this.setAttribute("data-date",moment(this.value,"YYYY-MM-DD").format("DD-MM-YYYY")),this.setAttribute("value",moment(this.value,"YYYY-MM-DD").format("YYYY-MM-DD")),t.hiddenfield.setAttribute("value",this.getAttribute("data-date")),t.round>0&&$(".js-fixedbottom-button__button")&&$(".js-fixedbottom-button__button").removeAttr("hidden"),t.round++})).trigger("change"):(this.initDatepicker(e),$(e).on("change",(function(){this.setAttribute("data-date",this.value),this.setAttribute("value",this.value),t.hiddenfield.setAttribute("value",this.value),t.round>0&&$(".js-fixedbottom-button__button")&&$(".js-fixedbottom-button__button").removeAttr("hidden"),t.round++})).trigger("change"))};e.prototype.initDatepicker=function(e){var t=this,i=this.element.getAttribute("data-placeholder"),s=document.querySelector('[for="'+this.element.getAttribute("id")+'"');buttonText=s?"Toon kalender voor: "+s.innerHTML:"Toon kalender ",i&&this.element.setAttribute("placeholder",i),$(e).attr("type","text").datepicker({dateFormat:this.config.dateFormat||"dd-mm-yy",showOn:"button",changeYear:!0,yearRange:this.config.yearrange||"c-10:c+10",buttonImageOnly:!1,buttonText:buttonText,monthNames:this.config.months,firstDay:1,dayNamesMin:["Zo","Ma","Di","Wo","Do","Vr","Za"],dayNamesShort:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"],selectYearLabel:"Selecteer jaar",selectMonthLabel:"Selecteer maand",prevText:"Vorige maand",nextText:"Volgende maand",showButtonPanel:!0,closeText:"Sluiten",onClose:this.removeAria.bind(this),beforeShow:function(e,t){t.dpDiv.css({marginTop:e.offsetHeight/2+"px"})},beforeShow:function(){setTimeout((function(){$(".ui-datepicker-year").attr("id","ui-datepicker-year"),$(".ui-datepicker-year").before('<label for="ui-datepicker-year" class="visually-hidden">Jaar</label>')}),200)},onSelect:function(i){var s=i;t.config.range&&("from"===t.config.rangePosition?($(t.config.rangeRelation).datepicker("option","minDate",s),$(t.config.rangeRelation).attr("data-date",s),$(t.config.rangeRelation).parent().find(".datepicker__hiddenfield").val(s)):$(t.config.rangeRelation).datepicker("option","maxDate",s)),$(".js-fixedbottom-button__button")&&$(".js-fixedbottom-button__button").removeAttr("hidden"),$(this).change(),pubsub.publish("/datepicker/onclose",$(e))}}),$(e).val($(e).data("date")),this.activateTrigger()},e.prototype.createHiddenField=function(){this.hiddenfield=document.createElement("input"),this.hiddenfield.setAttribute("type","hidden"),this.hiddenfield.setAttribute("name","date-"+this.elementId),this.hiddenfield.setAttribute("value",""),this.hiddenfield.setAttribute("class","datepicker__hiddenfield"),this.element.parentNode.appendChild(this.hiddenfield)},e.prototype.activateTrigger=function(){var e=this;
50$(".datepicker__input").unbind("keyup"),$(".ui-datepicker-trigger").click((function(){setTimeout((function(){var t=$(".ui-datepicker-today a")[0],i=document.querySelector(".ui-datepicker-prev");t||(t=$(".ui-state-active")[0]||$(".ui-state-default")[0]),window.setTimeout((function(){i.focus()}),0),$("main").attr("id","dp-container"),$("#dp-container").attr("aria-hidden","true"),$("#skipnav").attr("aria-hidden","true"),$(".ui-datepicker-current").hide(),e.initiatePicker(),$(document).on("click","#ui-datepicker-div .ui-datepicker-close",(function(){e.closeCalendar()}))}),100)}))},e.prototype.createHeaderSummary=function(){if(!($(".ui-datepicker-summary").length>0)){var e=document.getElementById("ui-datepicker-div");$(e).prepend('<div class="ui-datepicker-summary"><div class="ui-datepicker-summary__year"></div><div class="ui-datepicker-summary__date"></div></div>'),this.containerSummaryYear=$(".ui-datepicker-summary__year"),this.containerSummaryYear.text(this.currentDate.getFullYear()),this.containerSummaryDate=$(".ui-datepicker-summary__date");var t=this.currentDate.getDate()+" "+this.config.months[this.currentDate.getMonth()];this.containerSummaryDate.text(t)}},e.prototype.initiatePicker=function(){var e,t=this,i=document.getElementById("ui-datepicker-div");if(i&&this.element){this.currentDate=$(this.element).datepicker("getDate"),this.currentDate&&this.createHeaderSummary(),i.setAttribute("role","application"),i.setAttribute("aria-label","Calendar view date-picker");var s=$(".ui-datepicker-prev",i)[0],n=$(".ui-datepicker-next",i)[0],o=$(".ui-datepicker-year",i)[0];n.href="javascript:void(0)",s.href="javascript:void(0)",o.href="javascript:void(0)",n.setAttribute("role","button"),n.removeAttribute("title"),s.setAttribute("role","button"),s.removeAttribute("title"),this.appendOffscreenMonthText(n),this.appendOffscreenMonthText(s),n.addEventListener("click",function(e){t.handleNextClicks(e)}.bind(t),!1),s.addEventListener("click",function(e){t.handlePrevClicks(e)}.bind(t),!1),o.addEventListener("change",function(e){t.handleYearChange(e)}.bind(t),!1),this.monthDayYearText(),$(i).off("keydown"),$(i).on("keydown",(function(o){var r=o.which,a=o.target,l=t.getCurrentDate(i);switch(l||(l=$("a.ui-state-default")[0],t.setHighlightState(l,i)),r){case 9:o.preventDefault(),o.shiftKey?$(a).hasClass("ui-datepicker-close")?(e=$(".ui-state-highlight")||$(".ui-state-active")[0])&&e.focus():$(a).hasClass("ui-state-default")?$(".ui-datepicker-next")[0].focus():$(a).hasClass("ui-datepicker-prev")?$(".ui-datepicker-close")[0].focus():$(a).hasClass("ui-datepicker-year")?$(".ui-datepicker-prev")[0].focus():$(a).hasClass("ui-datepicker-next")&&$(".ui-datepicker-year")[0].focus():$(a).hasClass("ui-datepicker-close")?$(".ui-datepicker-prev")[0].focus():$(a).hasClass("ui-state-default")?$(".ui-datepicker-close")[0].focus():$(a).hasClass("ui-datepicker-next")?(e=$(".ui-state-highlight")||$(".ui-state-active")[0])&&e.focus():$(a).hasClass("ui-datepicker-year")?$(".ui-datepicker-next")[0].focus():$(a).hasClass("ui-datepicker-prev")&&$(".ui-datepicker-year")[0].focus();break;case 13:$(a).hasClass("ui-state-default")?setTimeout((function(){t.closeCalendar()}),100):$(a).hasClass("ui-datepicker-year")?t.handleYearChange(a):$(a).hasClass("ui-datepicker-prev")?t.handlePrevClicks():$(a).hasClass("ui-datepicker-next")&&t.handleNextClicks();break;case 27:return o.stopPropagation(),t.closeCalendar();case 32:$(a).hasClass("ui-datepicker-prev")?t.handlePrevClicks():$(a).hasClass("ui-datepicker-next")&&t.handleNextClicks();break;case 33:t.moveOneMonth(a,"prev");break;case 34:t.moveOneMonth(a,"next");break;case 35:var c=$(a).closest("tbody").find(".ui-state-default"),h=c[c.length-1];h&&(h.focus(),t.setHighlightState(h,$("#ui-datepicker-div")[0]));break;case 37:!$(a).hasClass("ui-datepicker-close")&&$(a).hasClass("ui-state-default")&&(o.preventDefault(),t.previousDay(a));break;case 38:!$(a).hasClass("ui-datepicker-close")&&$(a).hasClass("ui-state-default")&&(o.preventDefault(),t.upHandler(a,i,s));break;case 39:!$(a).hasClass("ui-datepicker-close")&&$(a).hasClass("ui-state-default")&&(o.preventDefault(),t.nextDay(a));break;case 40:!$(a).hasClass("ui-datepicker-close")&&$(a).hasClass("ui-state-default")&&(o.preventDefault(),t.downHandler(a,i,n));break;default:return}$(".ui-datepicker-current").hide()}))}}
50,e.prototype.closeCalendar=function(){var e=$("#ui-datepicker-div"),t=this.element;$(e).off("keydown"),$(t).datepicker("hide"),t.focus()},e.prototype.isOdd=function(e){return e%2},e.prototype.moveOneMonth=function(e,t){var i="next"===t?$(".ui-datepicker-next")[0]:$(".ui-datepicker-prev")[0];if(i){var s="#ui-datepicker-div tbody td:not(.ui-state-disabled)",n=$(s),o=$.inArray(e.parentNode,n);i.click();var r=this;setTimeout((function(){r.updateHeaderElements();for(var e=$(s),t=e[o],i=t&&$(t).find("a")[0];!i;)i=(t=e[--o])&&$(t).find("a")[0];r.setHighlightState(i,$("#ui-datepicker-div")[0]),i.focus()}),0)}},e.prototype.handleYearChange=function(){var e=this;setTimeout((function(){e.updateHeaderElements(),e.prepHighlightState(),$(".ui-datepicker-next").focus(),$(".ui-datepicker-current").hide()}),0)},e.prototype.handleNextClicks=function(){var e=this;setTimeout((function(){e.updateHeaderElements(),e.prepHighlightState(),$(".ui-datepicker-next").focus(),$(".ui-datepicker-current").hide()}),0)},e.prototype.handlePrevClicks=function(){var e=this;setTimeout((function(){e.updateHeaderElements(),e.prepHighlightState(),$(".ui-datepicker-prev").focus(),$(".ui-datepicker-current").hide()}),0)},e.prototype.previousDay=function(e){if(e){var t=$(e).closest("td");if(t){var i=$(t).prev(),s=$("a.ui-state-default",i)[0],n=document.getElementById("ui-datepicker-div");i&&s?(this.setHighlightState(s,n),s.focus()):this.handlePrevious(e)}}},e.prototype.handlePrevious=function(e){if(e){var t=$(e).closest("tr");if(t){var i=document.getElementById("ui-datepicker-div"),s=$(t).prev();if(s&&0!==s.length){var n=$("td a.ui-state-default",s),o=n[n.length-1];if(o){var r=this;setTimeout((function(){r.setHighlightState(o,i),o.focus()}),0)}}else this.previousMonth()}}},e.prototype.previousMonth=function(){var e=this,t=$(".ui-datepicker-prev")[0],i=document.getElementById("ui-datepicker-div");t.click(),setTimeout((function(){var t=$("tr",i),s=$("td a.ui-state-default",t[t.length-1]),n=s[s.length-1];e.updateHeaderElements(),e.setHighlightState(n,i),n.focus()}),0)},e.prototype.nextDay=function(e){var t=document.getElementById("ui-datepicker-div");if(e){var i=$(e).closest("td");if(i){var s=$(i).next(),n=$("a.ui-state-default",s)[0];s&&n?(this.setHighlightState(n,t),n.focus()):this.handleNext(e)}}},e.prototype.handleNext=function(e){if(e){var t=document.getElementById("ui-datepicker-div"),i=$(e).closest("tr"),s=$(i).next();if(s&&0!==s.length){var n=$("a.ui-state-default",s)[0];n&&(this.setHighlightState(n,t),n.focus())}else this.nextMonth()}},e.prototype.nextMonth=function(){var e=this,t=document.getElementById("ui-datepicker-div");$(".ui-datepicker-next")[0].click(),setTimeout((function(){e.updateHeaderElements();var i=$("a.ui-state-default",t)[0];e.setHighlightState(i,t),i.focus()}),0)},e.prototype.upHandler=function(e,t,i){i=$(".ui-datepicker-prev")[0];var s=$(e).closest("tr");if(s){var n=this,o=$("td",s),r=$("a.ui-state-default",s),a=$.inArray(e,r),l=$(s).prev(),c=$("td",l)[a],h=$("a.ui-state-default",c)[0];if(l&&c&&h)n.setHighlightState(h,t),h.focus();else{i.click();n=this;setTimeout((function(){n.updateHeaderElements();var i=$("tr",t),s=i[i.length-1],r=$("td",s),a=$.inArray(e.parentNode,o),l=r[a],c=$("a.ui-state-default",l)[0];if(s&&l&&c)n.setHighlightState(c,t),c.focus();else{var h=i[i.length-2],u=$("td",h)[a],d=$("a.ui-state-default",u)[0];d&&(n.setHighlightState(d,t),d.focus())}}),0)}}},e.prototype.downHandler=function(e,t,i){i=$(".ui-datepicker-next")[0];var s=$(e).closest("tr");if(s){var n=this,o=$("td",s),r=$.inArray(e.parentNode,o),a=$(s).next(),l=$("td",a)[r],c=$("a.ui-state-default",l)[0];a&&l&&c?(n.setHighlightState(c,t),c.focus()):(i.click(),setTimeout((function(){n.updateHeaderElements();var e=$("tbody tr",t),i=$("td",e[0])[r],s=$("a.ui-state-default",i)[0];if(i&&s)n.setHighlightState(s,t),s.focus();else{var o=e[1],a=$("td",o)[r],l=$("a.ui-state-default",a)[0];o&&l&&(n.setHighlightState(l,t),l.focus())}}),0))}},e.prototype.onCalendarHide=function(){this.closeCalendar()},e.prototype.monthDayYearText=function(){var e=this,t=$(".amaze-date");$(t).each((function(e){e.parentNode.removeChild(e)}));var i=document.getElementById("ui-datepicker-div");if(i){var s=$("a.ui-state-default",i);$(s).attr("role","button").on("keydown",(function(t){32===t.which&&(t.preventDefault(),t.target.click(),setTimeout((function(){e.closeCalendar(
50)}),100))})),$(s).each((function(e,t){var i=document.getElementById("ui-datepicker-div"),s=$(t).closest("tr"),n=$("td",s),o=$.inArray(t.parentNode,n),r=$("thead tr th",i)[o],a=$("span",r)[0],l=$(".ui-datepicker-month",i)[0].innerHTML,c=$(".ui-datepicker-year",i).val(),h=t.innerHTML;if(a&&l&&h&&c){var u=t.innerHTML+" "+l+" "+c;t.setAttribute("aria-label",u)}}))}},e.prototype.updateHeaderElements=function(){var e=document.getElementById("ui-datepicker-div");if(e){$(this.element).datepicker("getDate")&&this.createHeaderSummary();var t=$(".ui-datepicker-prev",e)[0],i=$(".ui-datepicker-next",e)[0],s=$(".ui-datepicker-year",e)[0];i.href="javascript:void(0)",t.href="javascript:void(0)",i.setAttribute("role","button"),t.setAttribute("role","button"),this.appendOffscreenMonthText(i),this.appendOffscreenMonthText(t),i.addEventListener("click",function(e){this.handleNextClicks(e)}.bind(this),!1),t.addEventListener("click",function(e){this.handlePrevClicks(e)}.bind(this),!1),s.addEventListener("change",function(e){this.handleYearChange(e)}.bind(this),!1),this.monthDayYearText()}},e.prototype.prepHighlightState=function(){var e,t=document.getElementById("ui-datepicker-div");(e=$(".ui-state-highlight",t)[0]||$(".ui-state-default",t)[0])&&t&&this.setHighlightState(e,t)},e.prototype.setHighlightState=function(e,t){var i=this.getCurrentDate(t);$(i).removeClass("ui-state-highlight"),$(e).addClass("ui-state-highlight")},e.prototype.getCurrentDate=function(e){return $(".ui-state-highlight",e)[0]},e.prototype.appendOffscreenMonthText=function(e){var t,i=$(e).hasClass("ui-datepicker-next"),s=this.config.months,n=$(".ui-datepicker-title .ui-datepicker-month").text().toLowerCase(),o=$.inArray(n.toLowerCase(),s),r=$(".ui-datepicker-title .ui-datepicker-year").val().toLowerCase(),a=i?o+1:o-1;i&&"december"===n?(r=parseInt(r,10)+1,a=0):i||"januari"!==n||(r=parseInt(r,10)-1,a=s.length-1),t=i?"Volgende maand, "+this.firstToCap(s[a])+" "+r:"Vorige maand, "+this.firstToCap(s[a])+" "+r,$(e).find(".ui-icon").html(t)},e.prototype.firstToCap=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.removeAria=function(){this.closeCalendar(),$("#dp-container").removeAttr("aria-hidden"),$("#skipnav").removeAttr("aria-hidden")}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);supports=function(){return!(!document.addEventListener&&!document.querySelector("body"))};function findObjectByKey(e,t,i){for(var s=0;s<e.length;s++)if(e[s][t]===i)return e[s];return null}function findObjectByKey(e,t,i){for(var s=0;s<e.length;s++)if(e[s][t]===i)return e[s];return null}function findAncestorWithClass(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}!function(){"use strict";onl.decorate({"init-form-validation":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.isTouch=onl.ui.isTouch(),this.config.classErrorField=this.config.classErrorField||"has-error",this.config.classValidField=this.config.classValidField||"is-valid",this.config.classErrorContainer=this.config.classErrorContainer||"form__error",this.config.classValidContainer=this.config.classValidContainer||"form__success",this.config.classErrorsContainer=this.config.classErrorsContainer||"form__errors",this.errors=[],this.config.txtIntroErrorsContainer=this.config.txtIntroErrorsContainer||"Er zijn één of meerdere velden niet of niet juist ingevuld. Controleer uw gegevens en verstuur het formulier opnieuw.",this.config.messageLabelValid=this.config.messageLabelValid||"Correct ingevuld",void 0===this.config.showSummary?this.showSummary=!0:this.showSummary=this.config.showSummary,this.config.messageValueMissing=this.config.messageValueMissing||"Het veld '{label}' mag niet leeg zijn.",this.config.messageValueMissingCheckbox=this.config.messageValueMissingCheckbox||"Het veld '{label}' is verplicht.",this.config.messageValueMissingRadio=this.config.messageValueMissingRadio||"Kies van veld '{label}' een waarde.",this.config.messageValueMissingSelect=this.config.messageValueMissingSelect||"Selecteer van veld '{label}' een waarde.",this.config.messageValueMissingSelectMulti=this.config.messageValueMissingSelectMulti||"Selecteer van veld '{label}' minstens één waarde.",this.config.messageTypeMismatchEmail=this.config.messageTypeMismatchEmail||"Vul in veld '{label}' een correct e-mailadres in.",this.config.messageTypeMismatchURL=this.config.messageTypeMismatchURL||"Vul in veld '{label}' een correct website-adres in.",this.config.messageTooShort=this.config.messageTooShort||"Gebruik in veld '{ label }' minimaal {minLength} karakters. Op dit moment gebruik je {length} karakter(s).",this.config.messageTooLong=this.config.messageTooLong||"Het is in veld '{label}' niet toegestaan meer dan {maxLength} karakters te gebruiken. Op dit moment gebruik je {length} karakter(s).",this.config.messagePatternMismatch=this.config.messagePatternMismatch||"Het veld '{label}' voldoet niet aan de eisen.",this.config.messageBadInput=this.config.messageBadInput||"Vul in veld '{label}' een nummer in.",this.config.messageStepMismatch=this.config.messageStepMismatch||"Vul in veld '{label}' een correcte waarde in.",this.config.messageRangeOverflow=this.config.messageRangeOverflow||"Vul in veld '{label}' een waarde in dat lager is dan {max}.",this.config.messageRangeUnderflow=this.config.messageRangeUnderflow||"Vul in veld '{label}' een waarde in dat hoger is dan {min}.",this.config.passwordMismatch=this.config.passwordMismatch||"Het veld '{label}' voldoet niet aan de beveiligingseisen.",this.config.passwordRepeatMismatch=this.config.passwordRepeatMismatch||"Het wac
50htwoord in veld '{label}' is niet gelijk aan het nieuwe wachtwoord.",this.config.messageGeneric=this.config.messageGeneric||"Het veld '{label}' is niet correct ingevuld.",this.init()};e.prototype.init=function(){if(supports()){this.addNoValidate();var e=this;this.element.addEventListener("change",function(e){this.blurHandler(e)}.bind(this),!0),this.element.addEventListener("blur",function(e){this.blurHandler(e)}.bind(this),!0),this.element.addEventListener("click",function(e){this.clickHandler(e)}.bind(this),!1),this.element.addEventListener("submit",function(e){this.submitHandler(e)}.bind(this),!1);pubsub.subscribe("/datepicker/onclose",(function(t){e.blurHandlerDatepicker(t[0])}))}},e.prototype.addNoValidate=function(){this.element.setAttribute("novalidate",!0)},e.prototype.getClosest=function(e,t){for(;e&&e!==document;e=e.parentNode)if(e.matches(t))return e;return null},e.prototype.hasErrorInSubselection=function(e,t){var i=e.querySelector(".subselection__summary");return!!i.classList.contains("required")&&(!(i.childNodes.length>0)&&this.config.messageValueMissing)},e.prototype.hasError=function(e,t){if(!e.disabled&&"file"!==e.type&&"reset"!==e.type&&"submit"!==e.type&&"button"!==e.type&&void 0!==e.type&&"fieldset"!==e.type&&"a"!==e.type&&""!==e.type){var i=e.validity,s=this.element.querySelector('[for="'+e.getAttribute("id")+'"]');if(s=s?s.innerHTML:"",e.classList.contains("pw-invalid"))return this.config.passwordMismatch.replace("{label}",s);if(e.classList.contains("pw-invalid-repeat"))return this.config.passwordRepeatMismatch.replace("{label}",s);if(e.classList.contains("js-captchasum-input")&&e.classList.contains("is-invalid"))return"captcha invalid";if(e.classList.contains("datepicker__input")){if(e.hasAttribute("required"))return this.validateDate(e)?void 0:""===e.value?this.config.messageValueMissing.replace("{label}",s):e.hasAttribute("title")?e.getAttribute("title"):this.config.messagePatternMismatch.replace("{label}",s);if(""===e.value)return;if(this.validateDate(e))return;return e.hasAttribute("title")?e.getAttribute("title"):this.config.messagePatternMismatch.replace("{label}",s)}if(e.getAttribute("data-pattern-type")){if("number"===e.getAttribute("data-pattern-type"))var n=/^\d+$/;if("tel"===e.getAttribute("data-pattern-type"))n=/^\d+$/;if("email"===e.getAttribute("data-pattern-type"))n=/^(?!\.)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~.-]+(?<!\.)@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/;if("zipcode"===e.getAttribute("data-pattern-type"))n=/^\d{4} ?[a-z]{2}$/i;return""===e.value&&this.isRequired(e)?this.config.messageValueMissing.replace("{label}",s):n.test(e.value)&&""!=e.value||""===e.value?void 0:e.hasAttribute("title")?e.getAttribute("title"):this.config.messagePatternMismatch.replace("{label}",s)}if(!i.valid){if(i.valueMissing)return"checkbox"===e.type?e.checked?void 0:this.config.messageValueMissingCheckbox.replace("{label}",s):"radio"===e.type?this.config.messageValueMissingRadio.replace("{label}",s):"select-multiple"===e.type?this.config.messageValueMissingSelectMulti.replace("{label}",s):"select-one"===e.type?this.config.messageValueMissingSelect.replace("{label}",s):this.config.messageValueMissing.replace("{label}",s);if(i.typeMismatch){if("email"===e.type)return this.config.messageTypeMismatchEmail.replace("{label}",s);if("url"===e.type)return this.config.messageTypeMismatchURL.replace("{label}",s)}return i.tooShort?this.config.messageTooShort.replace("{minLength}",e.getAttribute("minLength")).replace("{length}",e.value.length).replace("{label}",s):i.tooLong?this.config.messageTooLong.replace("{minLength}",e.getAttribute("maxLength")).replace("{length}",e.value.length).replace("{label}",s):i.badInput?this.config.messageBadInput.replace("{label}",s):i.stepMismatch?this.config.messageStepMismatch.replace("{label}",s):i.rangeOverflow?this.config.messageRangeOverflow.replace("{max}",e.getAttribute("max")).replace("{label}",s):i.rangeUnderflow?this.config.messageRangeUnderflow.replace("{min}",e.getAttribute("min")).replace("{label}",s):i.patternMismatch?e.hasAttribute("title")?e.getAttribute("title").replace("{label}",s):this.config.messagePatternMismatch.replace("{label}",s):this.config.messageGeneric.replace("{label}",s)}}},e.prototype.validateDate=function(e){var t=e.value;if(this.isTouch){if(!/^\d{4}[-/]\d{1,2}[-/]\d{1,2}$/.test(t))return!1}else if(!/^\d{1,2}[-/]\d{1,2}[-/]\d{4}$/.test(t))return!1;if(this.isTouch)var i=t.split("-"),s=parseInt(i[0],10),n=parseInt(i[1],10),o=parseInt(i[2],10);else i=t.split("-"),o=parseInt(i[0],10),n=parseInt(i[1],10),s=parseInt(i[2],10);if(s<1e3||s>3e3||0==n||n>12)return!1;var r=[31,28,31,30,31,30,31,31,30,31,30,31];return(s%400==0||s%100!=0&&s%4==0)&&(r[1]=29),o>0&&o<=r[n-1]},e.prototype.showErrorSubselection=function(e){var t=e.querySelector(".subselection__trigger"),i=e.parentNode.querySelector(".form__sublegend");i=i?i.innerHTML:"",this.showMessage("error",t,this.config.messageValueMissingCheckbox.replace("{label}",i),"subselection")},e.prototype.showSuccessSubselection=function(e){var t=e.querySelector(".subselection__trigger"),i=e.parentNode.querySelector(".form__sublegend");i=i?i.innerHTML:"",this.showMessage("success",t,this.config.messageLabelValid,"subselection")},e.prototype.showMessage=function(e,t,i,s){var n,o,r,a,l=!1;this.fieldConfig=JSON.parse(t.getAttribute("data-config"))||[];var c=t.classList.contains("js-captchasum-input"),h=this.getClosest(t,".subselection");h?this.removeMessage(t,h):this.removeMessage(t);var u,d=this.config.classValidField,p=this.config.classErrorField,f=this.config.classErrorC
50ontainer,g="message",m=!0;if("success"===e&&(d=this.config.classErrorField,p=this.config.classValidField,f=this.config.classValidContainer,g="message",m=!1,i=this.fieldConfig.messageLabelValid||i),"error"===e&&(i=t.getAttribute("title")?t.getAttribute("title")||i:this.fieldConfig.messageLabelError||i),c||("select-one"===t.type?(t.parentNode.classList.add(p),t.parentNode.classList.remove(d),t.setAttribute("aria-invalid",m)):(t.classList.add(p),t.classList.remove(d),t.setAttribute("aria-invalid",m))),"radio"===t.type&&t.name){var v=document.getElementsByName(t.name);if(v.length>0){for(var b=0;b<v.length;b++)v[b].form===t.form&&("success"!==e&&(v[b].classList.add(this.config.classErrorField),v[b].classList.remove(this.config.classValidField)),0===b&&(l=v[b].getAttribute("id")));t=v[v.length-1]}}if(h){var y=h.querySelector(".subselection__trigger");y.setAttribute("aria-invalid",m),u=y.getAttribute("id")}else u=t.id||t.name;if(u)if("success"!==e){if((r=document.createElement("div")).classList.add("form__message"),r.classList.add(f),r.id=g+"-for-"+u,"radio"!==t.type&&"checkbox"!==t.type||(h?l=(a=h.querySelector(".subselection__trigger")).getAttribute("id"):a=t.form.querySelector('label[for="'+u+'"]')||this.getClosest(t,"label"),a&&(a.parentNode.insertBefore(r,a.nextSibling),n=(o=this.getClosest(t,"[data-radiogroup-title]"))?o.getAttribute("data-radiogroup-title"):a.textContent)),"select-one"===t.type)if(a=t.form.querySelector('label[for="'+u+'"]')||this.getClosest(t,"label"))(_=t.parentNode).parentNode.insertBefore(r,_.nextSibling),n=a.textContent;if(!a)if(c||t.parentNode.insertBefore(r,t.nextSibling),"subselection"===s)n=t.textContent;else{var _=t.parentNode;t.parentNode.classList.contains("datepicker")&&(_=_.parentNode),n=_.querySelector("label").textContent}l?this.errors.push({id:l,label:n}):this.errors.push({id:t.getAttribute("id"),label:n}),this.addDescribedbyValue(t,g+"-for-"+u),r.innerHTML=i}else{var x=this.element.querySelector("."+f+"#"+g+"-for-"+u);x&&x.parentNode.removeChild(x)}},e.prototype.markFieldInSummary=function(e,t,i){var s,n=this.getClosest(e,".subselection");if(n){s=n.querySelector(".subselection__trigger").getAttribute("id")}else{if("radio"===e.type&&e.name){var o=document.getElementsByName(e.name);if(o.length>0){for(var r=0;r<o.length;r++)o[r].form===e.form&&o[r].classList.remove(this.config.classErrorField);e=o[0]}}s=e.getAttribute("id")}var a=this.element.querySelectorAll("."+this.config.classErrorsContainer+"> ul li");for(r=0;r<a.length;r++)a[r].getAttribute("data-id")===s&&("error"===i?a[r].childNodes[0].classList.remove("line-through"):a[r].childNodes[0].classList.add("line-through"))},e.prototype.addDescribedbyValue=function(e,t){let i=e.getAttribute("aria-describedby"),s=i?i.split(" "):[];s?s+=" "+t:s=t,e.setAttribute("aria-describedby",s)},e.prototype.removeDescribedbyValue=function(e,t){let i=e.getAttribute("aria-describedby"),s=i?i.split(" "):[];s=s.filter(e=>!e.startsWith(t)),s.length&&e.setAttribute("aria-describedby",s.join(" "))},e.prototype.removeFieldValid=function(e){var t=e.getAttribute("id"),i=this.element.querySelector("#message-for-"+t);i.parentNode.removeChild(i)},e.prototype.removeMessage=function(e,t,i){if("select-one"===e.type?(e.parentNode.classList.remove(this.config.classErrorField),e.parentNode.classList.remove(this.config.classValidField)):(e.classList.remove(this.config.classErrorField),e.classList.remove(this.config.classValidField)),"radio"===e.type&&e.name){var s=document.getElementsByName(e.name);if(s.length>0){for(var n=0;n<s.length;n++)s[n].form===e.form&&s[n].classList.remove(this.config.classErrorField);e=s[s.length-1]}}var o;if(t){if(!(o=t.querySelector(".form__message")))return;o.parentNode.removeChild(o)}else{if(!(o=this.element.querySelector("#message-for-"+e.id)))return;var r=e.parentNode;if(r.classList.contains("input-checkbox")||r.classList.contains("input-radio")||r.classList.contains("select-custom"))o.parentNode.removeChild(o);else{var a=r.querySelectorAll(".form__message");if(a)for(n=0;n<a.length;n++)a[n].remove()}}},e.prototype.removeErrorFromErrors=function(e){e=e;this.errors=this.errors.filter((function(t){return t.id!==e}))},e.prototype.pushErrorToErrors=function(e,t){var i=e.getAttribute("id");this.errors=this.errors.filter((function(e){return e.id!==i}));var s=e.parentNode.querySelector("label").innerHTML||"label";this.errors.push({id:e.getAttribute("id"),label:s,error:t})},e.prototype.addErrorToErrors=function(e,t){this.pushErrorToErrors(e,t),this.showSummary&&this.showErrorSummary()},e.prototype.showErrorSummary=function(){var e=this.element.querySelector("."+this.config.classErrorsContainer);if(e)i=this.element.querySelector("."+this.config.classErrorsContainer+"> ul");else{(e=document.createElement("div")).setAttribute("tabindex","0"),e.classList.add(this.config.classErrorsContainer),this.element.insertBefore(e,this.element.childNodes[0]);var t=document.createElement("p");t.classList.add("form__errors__heading"),t.innerHTML=this.config.txtIntroErrorsContainer,e.appendChild(t);var i=document.createElement("ul");e.appendChild(i)}i.innerHTML="",this.errors=onl.ui.uniqBy(this.errors,JSON.stringify);for(var s=0;s<this.errors.length;s++)this.appendErrorToErrorsList(this.errors[s])},e.prototype.isRequired=function(e){if(e.hasAttribute("required"))return!0;var t=self.getClosest(e,".subselection");if(t&&t.querySelector(".subselection__summary.required"))return!0;return!1},e.prototype.blurHandlerDatepicker=function(e){var t=this.hasError(e);t?this.showMessage("error",e,t):e.hasAttribute("data-pattern-type")||e.hasAttribute("pattern")?this.showMessage("success",e,this.config.messageLabelValid):this.isRequired(e)&&(this.showMessage("success",e,this.config.messageLabelValid),this.showSummary&&this.markFieldInSummary(e,null,"success"))},e.prototype.blurHandler=function(e){var t=e.target.nodeName;if("submit"!==e.target.type&&"DIV"!==t)if("BUTTON"===t);else if("A"===t);else{var i=this.hasError(e.target);
50if(i)return this.showMessage("error",e.target,i),void(this.showSummary&&this.markFieldInSummary(e.target,null,"error"));if(e.target.hasAttribute("data-pattern-type")||e.target.hasAttribute("pattern"))return this.showMessage("success",e.target,this.config.messageLabelValid),void(this.showSummary&&this.markFieldInSummary(e.target,null,"success"));this.isRequired(e.target)?(this.showMessage("success",e.target,this.config.messageLabelValid),this.showSummary&&this.markFieldInSummary(e.target,null,"success")):e.target.classList.contains("datepicker__input")&&this.showMessage("success",e.target,this.config.messageLabelValid)}},e.prototype.clickHandler=function(e){if("createEvent"in document){var t=document.createEvent("HTMLEvents");t.initEvent("keyup",!1,!0),e.target.dispatchEvent(t)}else e.target.fireEvent("keyup");var i=this,s=e.target.getAttribute("type");if(null==s&&(s=e.target.tagName),this.isRequired(e.target)){if((n=this.getClosest(e.target,".subselection"))&&!e.target.classList.contains("subselection__trigger")){if("checkbox"===s||"radio"===s)setTimeout((function(){0!=i.hasErrorInSubselection(n)?i.showErrorSubselection(n):i.showSuccessSubselection(n)}),100);else 0!=(r=i.hasErrorInSubselection(n))?i.showErrorSubselection(n):i.showSuccessSubselection(n);return}if("close-modal"===e.target.getAttribute("data-handler")){var n=this.getClosest(e.target,".subselection");(r=i.hasErrorInSubselection(n))?(i.showErrorSubselection(n),this.showSummary&&this.markFieldInSummary(e.target,null,"error")):(i.showSuccessSubselection(n),this.showSummary&&this.markFieldInSummary(e.target,null,"success"))}}if("A"===s&&e.target.classList.contains("subselection__summaryitem__remove")){var o=e.target.getAttribute("data-subselection-id");n=this.element.querySelector('[data-id="'+o+'"');(r=i.hasErrorInSubselection(n))?(i.showErrorSubselection(n),this.showSummary&&this.markFieldInSummary(e.target,null,"error")):(i.showMessage("success",e.target,n),this.showSummary&&this.markFieldInSummary(e.target,null,"success"))}else if("checkbox"===s||"radio"===s){var r;if(r=this.hasError(e.target))return this.showMessage("error",e.target,r),void(this.showSummary&&this.markFieldInSummary(e.target,null,"error"));this.isRequired(e.target)&&(this.showMessage("success",e.target,this.config.messageLabelValid),this.showSummary&&this.markFieldInSummary(e.target,null,"success"))}},e.prototype.appendErrorToErrorsList=function(e){var t=this.element.querySelector("."+this.config.classErrorsContainer+"> ul"),i=e.label;if(i=i.replace("Verplicht",""),t){var s=document.createElement("li"),n=e.id||e.getAttribute("id");s.setAttribute("data-id",n);var o=document.createElement("a");o.setAttribute("href","#"+n),o.innerHTML='<span class="visually-hidden">Spring naar veld: </span>'+i,s.appendChild(o),t.appendChild(s)}},e.prototype.submitHandler=function(e){this.errors=[];for(var t,i=e.target.elements,s=this.element.querySelectorAll(".subselection__summary.required"),n=0;n<s.length;n++)""===s[n].innerHTML&&(this.showErrorSubselection(s[n].parentNode),t||(t=s[n]));for(var o=0;o<i.length;o++){var r=this.hasError(i[o]);r&&(this.showMessage("error",i[o],r),t||(t=i[o]))}if(t&&this.showSummary&&this.showErrorSummary(this.errors),t&&e.preventDefault(),t)if(this.showSummary){this.element.querySelector("."+this.config.classErrorsContainer).focus()}else{var a=this.element.querySelectorAll(".form__error")[0].getAttribute("id");this.element.querySelector('[aria-describedby~="'+a+'"]').focus()}else this.config.debug?console.log("debug: Form submit"):t||this.element.submit()}}(),function(){if(!("position"in document.createElement("progress"))){var e;e=Object.defineProperty?function(e,t,i){i.enumerable=!0,i.configurable=!0;try{Object.defineProperty(e,t,i)}catch(s){-2146823252===s.number&&(i.enumerable=!1,Object.defineProperty(e,t,i))}}:"__defineSetter__"in document.body?function(e,t,i){e.__defineGetter__(t,i.get),i.set&&e.__defineSetter__(t,i.set)}:function(e,t,i){e[t]=i.get.call(e)};try{[].slice.apply(document.images);var t=function(e){return[].slice.apply(e)}}catch(e){t=function(e){for(var t=[],i=e.length,s=0;s<i;s++)t[s]=e[s];return t}}for(var i=(o=void 0,(o=document.createElement("div")).foo="bar","bar"===o.getAttribute("foo")),s=window.ProgressPolyfill={DOMInterface:{max:{get:function(){return parseFloat(this.getAttribute("aria-valuemax"))||1},set:function(e){this.setAttribute("aria-valuemax",e),i||this.setAttribute("max",e),s.redraw(this)}},value:{get:function(){return parseFloat(this.getAttribute("aria-valuenow"))||0},set:function(e){this.setAttribute("aria-valuenow",e),i||this.setAttribute("value",e),s.redraw(this)}},position:{get:function(){return this.hasAttribute("aria-valuenow")?this.value/this.max:-1}},labels:{get:function(){for(var e=this.parentNode;e&&"LABEL"!==e.nodeName;)e=e.parentNode;if(e=e?[e]:[],this.id&&document.querySelectorAll){var i=t(document.querySelectorAll('label[for="'+this.id+'"]'));i.length&&(e=e.concat(i))}return e}}},redraw:function(e){s.isInited(e)?s.init(e):i||(e.setAttribute("aria-valuemax",parseFloat(e.getAttribute("max"))||1),e.hasAttribute("value")?e.setAttribute("aria-valuenow",parseFloat(e.getAttribute("value"))||0):e.removeAttribute("aria-valuenow")),-1!==e.position&&(e.style.paddingRight=e.offsetWidth*(1-e.position)+"px")},isInited:function(e){return"progressbar"===e.getAttribute("role")},init:function(t){if(!s.isInited(t)){for(var i in t.setAttribute("role","progressbar"),t.setAttribute("aria-valuemin","0"),t.setAttribute("aria-valuemax",parseFloat(t.getAttribute("max"))||1),t.hasAttribute("value")&&t.setAttribute("aria-valuenow",parseFloat(t.getAttribute("value"))||0),s.DOMInterface)e(t,i,{get:s.DOMInterface[i].get,set:s.DOMInterface[i].set});s.redraw(t)}},progresses:document.getElementsByTagName("progress")},n=s.progresses.length-1;n>=0;n--)s.init(s.progresses[n]);document.addEventListener&&(document.addEventListener("DOMAttrModified",(function(e){var t=e.target;e=e.attrName;"PROGRESS"===t.nodeName&&("max"===e||"value"===e)&&s.redraw(t)}),!1),document.addEventListener("DOMNodeInserted",(function(e){"PROGRESS"===(e=e.target).nodeName&&s.init(e)}),!1))}var o}(),function(){onl.decorate({"init-inputfile":function(t){new e(t)}});var e=function(e){this.element=e,this.area=this.element.querySelector(".js-input-dragbox"),this.label=this.element.querySelector(".js-input-dragbox__label"),this.prelabel=this.element.querySelector(".js-input-dragbox__prelabel"),this.buttonDeletefile=this.element.querySelector(".js-input-dragbox__buttondelete"),this.orginalLabelValue=this.label.innerHTML,this.orginalPreLabelValue=this.prelabel.innerHTML,this.input=this.element.querySelector('input[type="file"]'),this.submitbuttonClass=".js-input-dragbox__button",this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.droppedFiles=!1,this.debug=this.config.debug,this.responseMsg=this.element.querySelector(".js-input-dragbox__msg"),this.isAjaxHandling=this.config.ajax||!1,this.init()};e.prototype.init=function(){var e=this;onl.ui.hasDragDrop()&&this.element.classList.add("has-dragdrop"),this.area.addEventListener("change",(function(t){e.droppedFiles=t.target.files,e.setAttributes(t.target.files)})),this.eventListers()},e.prototype.setAttributes=function(e){var t="";e[0]&&e.length>1||(t=!(!e[0]||1!==e.length)&&e[0].name),t?(this.label.innerHTML="Selecteer ander bestand",this.prelabel.innerHTML=t,this.prelabel.setAttribute("tabindex","0"),this.prelabel.focus(),this.area.classList.add("has-file"),"true"===this.config.showbuttonAfterChange&&this.showbuttonAfterChange()):this.resetElement()},e.prototype.showbuttonAfterChange=function(){this.element.querySelector(this.submitbuttonClass).removeAttribute("hidden")},e.prototype.hidebuttonAfterChange=function(){this.element.querySelector(this.submitbuttonClass).setAttribute("hidden","hidden")},e.prototype.resetElement=function(e){this.input.value="",this.label.innerHTML=this.orginalLabelValue,this.prelabel.innerHTML=this.orginalPreLabelValue,this.prelabel.setAttribute("tabindex","-1"),this.area.classList.remove("has-file"),this.config.showbuttonAfterChange&&this.hidebuttonAfterChange(),this.element.classList.remove("is-success","is-uploading","is-failed"),this.area.classList.remove("has-file")},e.prototype.eventListers=function(){var e=this;this.label.addEventListener("keyup",(function(e){e.preventDefault(),13===e.keyCode&&this.click()})),this.isAjaxHandling&&this.element.querySelector(".js-reset").addEventListener("click",function(e){e.preventDefault(),this.resetElement(e)}.bind(this),!1),this.buttonDeletefile&&this.buttonDeletefile.addEventListener("click",function(e){e.preventDefault(),this.resetElement(e)}.bind(this),!1),this.area.addEventListener("focus",function(e){this.area.classList.add("has-focus")}.bind(this),!1),this.area.addEventListener("blur",function(e){this.area.classList.remove("has-focus")}.bind(this),!1),this.isAjaxHandling&&(this.form=this.element.parentNode,this.form.addEventListener("submit",function(t){e.ajax=new XMLHttpRequest;var i=new FormData(e.form);if(e.area.classList.contains("is-uploading"))return!1;e.element.classList.add("is-uploading"),e.element.classList.remove("is-error"),onl.ui.hasDragDrop()&&(t.preventDefault(),e.droppedFiles&&Array.prototype.forEach.call(e.droppedFiles,function(t){i.append(e.input.getAttribute("name"),t)}.bind(e)),e.debug?(e.ajax=new Array({status:300,responseText:{success:!0,message:"Bestand is succesvol geupload",file:"Testbestand.xml"}}),e.ajax=e.ajax[0],e.loadHandler(e.ajax)):(e.ajax.upload.addEventListener("progress",function(t){e.progressHandler(t)}.bind(e),!1),e.ajax.upload.addEventListener("load",function(t){e.loadHandler(t)}.bind(e),!1),e.ajax.upload.addEventListener("error",function(t){e.errorHandler(t)}.bind(e),!1),e.ajax.open(e.config.ajax,e.form.getAttribute("action"),!0),e.ajax.send(i)))}.bind(this),!1))},e.prototype.loadHandler=function(e){var t,i=this;if(this.debug&&e.responseText.success)t=e.responseText.success;else{e=JSON.parse(e.responseText);t=e.success}if(e.status>=200&&e.status<400){if(this.debug){progressdata=new Array({loaded:40,total:100}),this.progressHandler(progressdata[0]);setTimeout((function(){i.element.classList.remove("is-uploading"),i.element.classList.add(1==t?"is-success":"is-error"),i.responseMsg.innerHTML=e.responseText.message+" ("+e.responseText.file+")"}),2e3)}else this.element.classList.remove("is-uploading"),this.element.classList.add(1==t?"is-success":"is-error"),i.responseMsg.innerHTML=e.responseText.message+" ("+e.responseText.file+")";1==t&&this.config.messageModal}},e.prototype.errorHandler=function(e){this.element.classList.remove("is-uploading"),this.element.classList.remove("is-failed"),this.responseMsg.innerHTML="Document kan niet worden geupload"},e.prototype.progressHandler=function(e){var t=e.loaded/e.total*100;this.element.querySelector(".input-dragbox__uploading__msg span").innerHTML=Math.round(t),this.element.querySelector(".input-dragbox__uploading__progress").value=Math.round(t)}}(),function(){"use strict";onl.decorate({"init-inputcaptchamath":function(t){new e(t)}});var e=function(e){if(this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.form=this.element,this.input=this.element.querySelector(".js-captchasum-input"),this.hiddenIdField=this.form.querySelector("[name='form_build_id']"),this.label=this.element.querySelector(".js-captchasum-label"),this.buttonSubmit=this.element.querySelector('[type="submit"]'),this.messageId=this.input.getAttribute("aria-describedby"),this.messageId){if(this.elMessage=document.getElementById("input-text-"+this.messageId+"__error"),!this.elMessage){var t=document.createElement("p");t.classList.add("form__error"),t.id="input-text-"+this.messageId+"__error";var i=this.input;i.parentNode.insertBefore(t,i.nextSibling),this.elMessage=document.getElementById("input-text-"+this.messageId+"__error")}this.elMessageTextError=this.config.messageTextError||"Veld incorrect ingevuld, de rekensom klopt niet.",this.elMessageTextSuccess=this.config.messageTextSuccess||"Veld correct ingevuld."}this.hiddenIdField?this.ID=this.hiddenIdField.getAttribute("value"):this.ID="id-field-captcha-"+Number(Math.floor(1e4*Math.random())),this.input.setAttribute("required",!0),this.init()};e.prototype.encrypt=function(e,t=1,i=99){return Array.from(e+String((new Date).getFullYear())).map(e=>e.charCodeAt(0)).reduce((e,t)=>
50e+t)%i+t},e.prototype.init=function(){this.input.setAttribute("aria-invalid",!1),this.input.classList.remove("has-error"),this.messageId&&this.elMessage.setAttribute("aria-hidden",!0);var e,t,i=this.encrypt(CryptoJS.MD5(this.ID),1,5),s=this.encrypt(CryptoJS.SHA1(this.ID),1,5);switch(i){case 1:e="een";break;case 2:e="twee";break;case 3:e="drie";break;case 4:e="vier";break;case 5:e="vijf";break;case 6:e="zes";break;case 7:e="zeven";break;case 8:e="acht";break;case 9:e="negen";break;default:e=i}switch(s){case 1:t="een";break;case 2:t="twee";break;case 3:t="drie";break;case 4:t="vier";break;case 5:t="vijf";break;case 6:t="zes";break;case 7:t="zeven";break;case 8:t="acht";break;case 9:t="negen";break;default:t=s}var n=i+s;this.buttonSubmit.setAttribute("data-mathsum",n),this.label.innerHTML="Wat is de totaalsom van '"+e+"' plus '"+t+"'?",this.addListeners()},e.prototype.isSumValid=function(e){var t=e;if(isNaN(e))switch(e){case"een":t=1;break;case"twee":t=2;break;case"drie":t=3;break;case"vier":t=4;break;case"vijf":t=5;break;case"zes":t=6;break;case"zeven":t=7;break;case"acht":t=8;break;case"negen":t=9;break;default:t=0}return t==this.buttonSubmit.getAttribute("data-mathsum")},e.prototype.addListeners=function(){var e=this;this.form.addEventListener("submit",(function(t){e.isSumValid(e.input.value)||t.preventDefault()})),this.input.addEventListener("keyup",(function(t){e.messageId&&e.elMessage.setAttribute("aria-hidden",!1),e.isSumValid(this.value.toLowerCase())?(e.buttonSubmit.removeAttribute("disabled"),e.input.setAttribute("aria-invalid",!1),e.input.classList.remove("is-invalid"),e.input.classList.remove("has-error"),e.input.classList.add("is-valid"),e.messageId&&(e.elMessage.classList.remove("form__error"),e.elMessage.classList.add("form__success"),e.elMessage.innerHTML=e.elMessageTextSuccess)):(e.buttonSubmit.setAttribute("disabled",""),e.input.setAttribute("aria-invalid",!0),e.input.classList.add("is-invalid"),e.input.classList.add("has-error"),e.input.classList.remove("is-valid"),e.messageId&&(e.elMessage.classList.remove("form__success"),e.elMessage.classList.add("form__error"),e.elMessage.innerHTML=e.elMessageTextError))}))}}(),onl.handle({"empty-input":function(e,t){if(t.preventDefault(),e.previousElementSibling.value="",e.classList.add("invisible"),e.previousElementSibling.focus(),"createEvent"in document){var i=document.createEvent("HTMLEvents");i.initEvent("keyup",!1,!0),e.previousElementSibling.dispatchEvent(i)}else e.previousElementSibling.fireEvent("keyup")}}),onl.decorate({"toggle-remove-visibility":function(e,t){var i=e.nextElementSibling;e.addEventListener("keyup",(function(t){i.classList.contains("invisible")&&e.value.length>0||!i.classList.contains("invisible")&&e.value.length>0?i.classList.remove("invisible"):i.classList.contains("invisible")||0!==e.value.length||i.classList.add("invisible")}),!1)}}),function(){"use strict";onl.decorate({"init-form-subselection":function(i){new e(i),new t(i)},"init-form-disregardchanges":function(e){new t(e)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.config.type=this.config.type||"div",this.config.maxShow=this.config.maxShow||!1,this.config.triggerSubmit=this.config.triggerSubmit||!1,this.config.triggerOnChangeText=this.config.triggerOnChangeText||"Wijzig selectie",onl.dom.$(".selection_popup",this.element)[0]?(this.triggerClassDefault="icon--",this.triggerClassActive="icon--"):(this.triggerClassDefault="is-empty",this.triggerClassActive="is-filled"),this.init()};e.prototype.init=function(){var e=this;this.trigger=onl.dom.$(".subselection__trigger",this.element)[0]||onl.dom.$(".selection_popup",this.element)[0];var t=Math.floor(1e6*Math.random());this.element.setAttribute("data-id",t),this.elementId=t,this.trigger.classList.add(this.triggerClassDefault),this.triggerOnLoadText=this.trigger.innerText,this.containerSummary=onl.dom.$(".subselection__summary",this.element)[0],this.buttonClose=onl.dom.$('[data-handler="close-modal"]',this.element),this.buttonConfirmModal=this.element.querySelector('.button[data-handler="close-modal"]'),this.modal=onl.dom.$(".modal",this.element)[0],this.options=onl.dom.$("input[type=checkbox], input[type=radio]",this.modal),this.resetLinkClass=this.config.resetLink||"formreset-resetlink",this.checkboxSelectAllOnMain=onl.dom.$(".js-checkbox-selectAllOnMain",this.element)[0],this.checkboxSelectAll=onl.dom.$(".js-checkbox-master",this.element)[0],this.hasHiddenValueField=this.config.hiddenValueField||!1,this.hiddenValueFieldSeperator=this.config.hiddenValueFieldSeperator||",",this.hiddenValueFieldValueAttribute=this.config.hiddenValueFieldValueAttribute||"id",this.hiddenValueFieldId=this.config.hiddenValueFieldId||"hvf-"+this.elementId,this.hiddenValueFieldName=this.config.hiddenValueFieldName||"hvf-"+this.elementId,this.fieldSearch=this.element.querySelector(".js-filterresults__input")||!1,this.fieldButtonClear=this.config.fieldSearch||".input-text__remove",setTimeout((function(){e.resetLink=e.element.querySelector("."+e.resetLinkClass),e.resetLink&&e.resetLink.addEventListener("click",function(t){e.resetCheckboxes(t),e.clearSearchField()}.bind(e),!1)}),1e3),this.items=[],this.hasHiddenValueField&&this.createHiddenValueField(),this.collectValues(),this.parseSelectedOptions(),setTimeout(function(){this.listensTo=document.querySelector("#"+this.config.listensTo)||!1,this.sendsTo=document.querySelector("#"+this.config.sendsTo)||!1,console.log("listensTo",this.element,this.config.listensTo,this.listensTo),console.log("sendsTo",this.element,this.config.sendsTo,this.sendsTo),this.trigger&&this.listensTo&&this.initListensTo(),this.trigger&&this.listensTo&&this.trigger.addEventListener("click",function(e){this.triggerListensTo(e)}.bind(this),!1)}.bind(this),1500),this.attachListeners()},e.prototype.createHiddenValueField=function(){var e=document.createElement("input");e.type="hidden",e.classList.add("js-hiddenvaluefield"),e.id=this.hiddenValueFieldId,e.name=this.hiddenValueFieldName,this.element.appendChild(e)},e.prototype.attachListeners=function(){var e,t=this;for(e=0;e<this.options.length;e++)this.options[e].addEventListener("change",function(e){this.collectValues(e)}.bind(this),!1);this.checkboxSelectAllOnMain&&this.checkboxSelectAllOnMain.addEventListener("change",function(e){this.setStateSelectAll(e)}.bind(this),!1),this.buttonConfirmModal.addEventListener("click",function(e){this.confirmModal(e)}.bind(this),!1);pubsub.subscribe("/disregardchanges/disregardAll/updateSummary",(function(e){var i=t.element;e.element.getAttribute("data-id")===i.getAttribute("data-id")&&t.collectValues()}));window.addEventListener("resize",function(){(window.outerWidth-8)/window.innerWidth>1.7?this.element.querySelector(".modal").classList.remove("modal--fixedpane"):this.element.querySelector(".modal").classList.add("modal--fixedpane")}.bind(this),!1)},e.prototype.confirmModal=function(){if(document.querySelector("[data-listentocheckboxid]"))for(var e=this.element.querySelectorAll('input[type="checkbox"], input[type="radio"]'),t=0;t<e.length;t++){var i=e[t],s=i.id;if(!i.checked){var n=document.querySelector('fieldset[data-listentocheckboxid="'+s+'"]');if(n)for(var o=n.querySelectorAll('input[type="checkbox"]'),r=0;r<o.length;r++)if(o[r].checked)if(o[r].checked=!1,"createEvent"in document){var a=document.createEvent("HTMLEvents");a.initEvent("change",!1,!0),o[r].dispatchEvent(a)}else o[r].fireEvent("onchange")}}pubsub.publish("/subselection/removeSummaryItem/sendsTo",{element:this.sendsTo})},e.prototype.initListensTo=function(){console.log("initListensTo",this.listensTo);for(var e=this.element.querySelectorAll("fieldset.js-filterresults__resultmother"),t=0;t<e.length;t++){var i=e[t],s=i.querySelector("legend").innerText.toLowerCase();i.setAttribute("data-parentid",s)}for(var n=this.listensTo.closest(".subselection").querySelectorAll('input[type="checkbox"], input[type="radio"]'),o=0;o<n.length;o++){var r=n[o],a=r.value.toLowerCase(),l=this.element.querySelector('fieldset.js-filterresults__resultmother[data-
50parentid="'+a+'"]');l&&(l.setAttribute("data-listentocheckboxvalue",l.querySelector("legend").innerText.toLowerCase()),l.setAttribute("data-listentocheckboxid",r.id))}},e.prototype.triggerListensTo=function(e){console.log("triggerListensTo",this.listensTo);var t=this.element.querySelectorAll("fieldset.js-filterresults__resultmother");this.listensToValue=this.listensTo.value;var i=[];""!==this.listensToValue.toLowerCase()&&(i=this.listensToValue.toLowerCase().split("$"));var s=this.fieldSearch;this.element.querySelector(".input-text__remove").classList.add("invisible"),document;for(var n=0;n<t.length;n++){var o=t[n],r=o.getAttribute("aria-hidden"),a=!1;if((0===i.length||i.includes(o.querySelector("legend").innerText.toLowerCase()))&&(a=!0),void 0!==r&&!1!==r&&a)o.setAttribute("aria-hidden",!1),o.classList.add("is-custom-hiddenfalse"),o.classList.remove("is-custom-hiddentrue"),o.classList.remove("is-hidden");else if(!a){o.setAttribute("aria-hidden",!0),o.classList.add("is-custom-hiddentrue"),o.classList.remove("is-custom-hiddenfalse"),o.classList.add("is-hidden");for(var l=0;l<o.querySelectorAll(".checkbox__input").length;l++){var c=o.querySelectorAll(".checkbox__input")[l].getAttribute("id"),h=this.containerSummary.querySelector('[data-checkbox-id="'+c+'"]');h&&h.remove()}}s.dispatchEvent(new Event("input",{bubbles:!0})),s.dispatchEvent(new Event("keyup",{bubbles:!0}))}},e.prototype.setStateSelectAll=function(e){if(this.checkboxSelectAll.checked=e.target.checked,"createEvent"in document){var t=document.createEvent("HTMLEvents");t.initEvent("change",!1,!0),this.checkboxSelectAll.dispatchEvent(t)}else this.checkboxSelectAll.fireEvent("onchange")},e.prototype.attachRemoveListeners=function(){var e;for(this.summaryItemRemovers=this.containerSummary.querySelectorAll(".subselection__summaryitem__remove"),e=0;e<this.summaryItemRemovers.length;e++)this.summaryItemRemovers[e].addEventListener("click",function(e){e.preventDefault(),this.removeSummaryItem(e)}.bind(this),!1)},e.prototype.collectValues=function(e){var t,i,s,n,o;for(this.items=[],t=0;t<this.options.length;t++)i=[],this.options[t].checked&&(s=this.options[t].value,n=this.options[t].getAttribute("data-value")||this.options[t].value,o=this.options[t].getAttribute("id"),null!==this.options[t].closest("label")?i.push(s,n,this.options[t].closest("label").innerText,o):this.options[t].closest(".input-checkbox")?i.push(s,n,this.options[t].closest(".input-checkbox").querySelector("label").innerText,o):i.push(s,n,this.options[t].closest(".input-radio").querySelector("label").innerText,o),this.options[t].classList.contains("js-checkbox-master")||this.options[t].classList.contains("js-checkbox-master-inner")||this.items.push(i));this.parseSelectedOptions()},e.prototype.parseSelectedOptions=function(){var e,t,i,s,n,o="",r="";for(e=0;e<this.items.length;e++)t=this.items[e][0],i=this.items[e][1],s=this.items[e][2],n=this.items[e][3],"abbr"!==this.config.type?o+="<"+this.config.type+' class="subselection__summaryitem" data-linkedid="'+n+'" data-value="'+t+'">'+i+'<a href="#!" title="'+s.trim()+'" class="subselection__summaryitem__remove" data-subselection-id="'+this.elementId+'"><span class="visually-hidden">Verwijder filter: '+t+"</a></"+this.config.type+"> ":o+="<"+this.config.type+' class="subselection__summaryitem" title="'+s+'" data-linkedid="'+n+'" data-value="'+t+'">'+i+"</"+this.config.type+"> ","value"===this.hiddenValueFieldValueAttribute?r+=this.hiddenValueFieldSeperator+t:r+=this.hiddenValueFieldSeperator+n;(this.containerSummary.innerHTML=o,this.containerSummary.setAttribute("aria-live","polite"),this.hasHiddenValueField)&&(this.element.querySelector("#"+this.hiddenValueFieldId).value=r.substring(1));this.updateTriggerLabel(this.items.length),this.config.maxShow&&this.initHideUnwantedResults(),this.attachRemoveListeners()},e.prototype.initHideUnwantedResults=function(){var e=this.element.querySelector(".subselection__summary");this.resultItems=[].slice.call(e.querySelectorAll(".subselection__summaryitem")),this.config.labelMore=this.config.labelmore||"Toon meer",this.config.labelLess=this.config.labelless||"Toon minder",this.allvisible=!1,this.hideUnwantedResults(!0)},e.prototype.hideUnwantedResults=function(e){var t,i=0;for(t=0;t<this.resultItems.length;t++)t>this.config.maxShow-1&&(this.resultItems[t].setAttribute("hidden","true"),this.resultItems[t].setAttribute("aria-hidden","true"),i++);this.totalHidden=i,e&&t>this.config.maxShow&&this.addShowMoreTrigger()},e.prototype.addShowMoreTrigger=function(){this.trigger=document.createElement("div"),this.trigger.classList.add("link"),this.trigger.classList.add("link--down"),this.triggerA=document.createElement("a"),this.triggerA.setAttribute("href","#"),this.triggerA.setAttribute("tabindex","0"),this.triggerA.setAttribute("aria-expanded",!1),this.triggerA.innerHTML="Toon meer ("+this.totalHidden+")",this.trigger.appendChild(this.triggerA),this.containerSummary.appendChild(this.trigger),this.triggerA.addEventListener("click",function(e){e.preventDefault(),this.showHide(e)}.bind(this),!1)},e.prototype.showHide=function(){var e;if(this.allvisible)this.hideUnwantedResults(),this.allvisible=!1,this.trigger.classList.remove("link--up"),this.trigger.classList.add("link--down"),this.triggerA.innerHTML=this.config.labelMore+" ("+this.totalHidden+")",this.triggerA.setAttribute("aria-expanded",!1);else{for(e=0;e<this.resultItems.length;e++)this.resultItems[e].removeAttribute("hidden","true"),this.resultItems[e].removeAttribute("aria-hidden","true");this.allvisible=!0,this.trigger.classList.add("link--up"),this.trigger.classList.remove("link--down"),this.triggerA.innerHTML=this.config.labelLess,this.triggerA.setAttribute("aria-expanded",!0)}},e.prototype.updateTriggerLabel=function(e){this.trigger=onl.dom.$(".subselection__trigger",this.element)[0]||onl.dom.$(".selection_popup",this.element)[0],e>0?(this.trigger.innerText=this.config.triggerOnChangeText,this.trigger.classList.remove(this.triggerClassDefault),this.trigger.classList.add(this.triggerClassActive)):(this.trigger.innerText=this.triggerOnLoadText,this.trigger.classList.remove(this.triggerClassActive),this.trigger.classList.add(this.triggerClassDefault))},e.prototype.removeSummaryItem=function(e){for(var t=e.target.parentNode,i=t.getAttribute("data-linkedid"),s=document.getElementById(i),n=document.querySelectorAll('fieldset[data-listentocheckboxid="'+i+'"] .checkbox__input'),o=0;o<n.length;o++){if(n[o].checked=!1,"createEvent"in document)(a=document.createEvent("HTMLEvents")).initEvent("change",!1,!0),n[o].dispatchEvent(a);else n[o].fireEvent("onchange")}if(s.checked=!1,this.config.triggerSubmit){var r=getClosest(t,"form").querySelector('[type="submit"]');r&&setTimeout((function(){r.click()}),100)}var a,l=getClosest(this.element,".subselection");if(l){var c=l.querySelector(".js-checkbox-master");c&&(c.checked=!1);var h=l.querySelector(".js-checkbox-selectAllOnMain");h&&(h.checked=!1)}"createEvent"in document?((a=document.createEvent("HTMLEvents")).initEvent("change",!1,!0),s.dispatchEvent(a)):s.fireEvent("onchange");
50pubsub.publish("/subselection/removeSummaryItem",{element:this.element});pubsub.publish("/subselection/removeSummaryItem/sendsTo",{element:this.sendsTo}),this.collectValues()},e.prototype.clearSearchField=function(){document.querySelector(this.fieldButtonClear).click()},e.prototype.resetCheckboxes=function(e){var t;for(t=0;t<this.options.length;t++)this.options[t].checked=!1;if("createEvent"in document){var i=document.createEvent("HTMLEvents");i.initEvent("change",!1,!0),this.options[0].dispatchEvent(i)}else this.options[0].fireEvent("onchange");e.preventDefault()};var t=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.triggerDisregard=this.element.querySelector(this.config.triggerDisregard)||this.element.querySelector(".modal__close"),this.triggerApplySelection=this.element.querySelector(this.config.triggerApplySelection)||this.element.querySelector('[data-handler="close-modal"]'),this.selectAllOnMain=this.element.querySelector(".js-checkbox-selectAllOnMain"),this.options=onl.dom.$("input[type=checkbox], input[type=radio]",this.element),this.init()};t.prototype.init=function(){var e=this;this.createState(),this.setEventListeners();pubsub.subscribe("/subselection/removeSummaryItem",(function(t){console.log("/subselection/removeSummaryItem",t);var i=e.element;t.element===i&&e.createState()})),pubsub.subscribe("/selectall/init/checkboxSelectAllOnMain/true",(function(t){e.createState()})),pubsub.subscribe("/subselection/removeSummaryItem/sendsTo",(function(t){console.log("/subselection/removeSummaryItem/sendsTo",t),e.createState()}))},t.prototype.setEventListeners=function(){var e=this;this.triggerDisregard&&this.triggerDisregard.addEventListener("click",function(e){this.disregardAll(e)}.bind(this),!1),this.triggerApplySelection&&this.triggerApplySelection.addEventListener("click",function(e){this.rebuildState(e)}.bind(this),!1);pubsub.subscribe("/selectall/changeMasterCheckbox",(function(t){(t=t.element)===e.element.getAttribute("data-id")&&e.createState()}))},t.prototype.rebuildState=function(){this.createState()},t.prototype.createState=function(){this.state=[];for(var e=onl.dom.$("input[type=checkbox], input[type=radio]",this.element),t=0;t<e.length;t++){if("radio"!==e[t].type&&"checkbox"!==e[t].type)return;var i=e[t].getAttribute("id"),s=e[t].type,n=e[t].checked;this.state.push({ID:i,type:s,state:n})}},t.prototype.disregardAll=function(){for(var e=this.state,t=0;t<e.length;t++){var i=findObjectByKey(e,"ID",e[t].ID);document.getElementById(i.ID).checked=e[t].state}pubsub.publish("/disregardchanges/disregardAll/updateSummary",{element:this.element})}}(),function(){"use strict";onl.decorate({selectedfilters:function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.filters=this.element.querySelectorAll(".form__selectedfilter__remove"),this.form=this.element.closest("form"),this.init()};e.prototype.init=function(){this.addEventListeners()},e.prototype.addEventListeners=function(){for(var e=0;e<this.filters.length;e++)this.filters[e].addEventListener("click",function(e){e.preventDefault(),this.removeHandler(e.target)}.bind(this),!1)},e.prototype.removeHandler=function(e){var t=e.getAttribute("data-linkedid");document.getElementById(t)&&(document.getElementById(t).click(),this.form.submit())}}(),function(){"use strict";onl.decorate({"init-form-subselection-checkbox":function(i){new e(i),new t(i)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.config.type=this.config.type||"div",this.config.triggerSubmit=this.config.triggerSubmit||!1,this.config.triggerOnChangeText=this.config.triggerOnChangeText||"Wijzig selectie",this.triggerClassDefault="is-empty",this.init()};e.prototype.init=function(){var e=this;this.trigger=onl.dom.$(".subselection-checkbox__trigger",this.element)[0]||onl.dom.$(".selection_popup",this.element)[0];var t=Math.floor(1e6*Math.random());this.element.setAttribute("data-id",t),this.elementId=t,this.trigger.classList.add(this.triggerClassDefault),this.triggerOnLoadText=this.trigger.innerText,this.containerSummary=onl.dom.$(".subselection-checkbox__summary",this.element)[0],this.buttonClose=onl.dom.$('[data-handler="close-modal"]',this.element),this.modal=onl.dom.$(".modal",this.element)[0],this.options=onl.dom.$("input[type=checkbox], input[type=radio]",this.modal),this.resetLinkClass=this.config.resetLink||"formreset-resetlink",this.checkboxSelectAllOnMain=onl.dom.$(".js-checkbox-selectAllOnMain",this.element)[0],this.checkboxSelectAll=onl.dom.$(".js-checkbox-master",this.element)[0],this.hiddenValueFieldSeperator=this.config.hiddenValueFieldSeperator||",",this.hiddenValueFieldValueAttribute=this.config.hiddenValueFieldValueAttribute||"id",this.hiddenValueFieldId=this.config.hiddenValueFieldId||"hvf-"+this.elementId,this.hiddenValueFieldName=this.config.hiddenValueFieldName||"hvf-"+this.elementId,this.checkboxTemplate='<div class="input-checkbox"><input class="checkbox__input" type="checkbox" {{checked}} id="{{id}}" value="{{value}}"/><label class="checkbox__label" for="{{id}}">{{label}}</label></div>',this.hasInitialCheckboxes=!0,this.InitialCheckboxesAmount=this.config.initialCheckboxesAmount||5,this.options.length<=this.InitialCheckboxesAmount&&this.trigger.remove(),setTimeout((function(){e.resetLink=e.element.querySelector("."+e.resetLinkClass),e.resetLink&&e.resetLink.addEventListener("click",function(t){e.resetCheckboxes(t)}.bind(e),!1)}),1e3),this.items=[],this.collectValues(),this.parseSelectedOptions(),this.attachListeners(),this.hasInitialCheckboxes&&this.createInitialCheckboxes()},e.prototype.createInitialCheckboxes=function(){for(var e,t="",i=0;i<this.InitialCheckboxesAmount&&i<this.options.length;i++){var s,n=(e=this.options[i]).getAttribute("id"),o=e.getAttribute("data-value");s=e.hasAttribute("checked")?"checked":"",t+=this.checkboxTemplate.replace("{{checked}}",s).replace("{{id}}",n+"-copy").replace("{{id}}",n+"-copy").replace("{{value}}",o).replace("{{label}}",o)}this.containerSummary.querySelector(".subselection-checkbox__summary-main").innerHTML=t,this.containerSummary.setAttribute("aria-live","polite"),this.attachSummaryCheckboxMainListeners()},e.prototype.attachSummaryCheckboxMainListeners=function(){for(var e=this.element.querySelector(".subselection-checkbox__summary-main").querySelectorAll(".checkbox__input"),t=0;t<e.length;
50t++)e[t].addEventListener("change",function(e){this.toggleValueCorrespondingCheckbox(e)}.bind(this),!1)},e.prototype.attachSummaryCheckboxAdditionalListeners=function(){for(var e=this.element.querySelector(".subselection-checkbox__summary-additional").querySelectorAll(".checkbox__input"),t=0;t<e.length;t++)e[t].addEventListener("change",function(e){this.toggleValueCorrespondingCheckbox(e)}.bind(this),!1)},e.prototype.toggleValueCorrespondingCheckbox=function(e){var t=e.target.getAttribute("id");t=t.replace("-copy",""),this.element.querySelector("#"+t).click(),pubsub.publish("/subselectioncheckbox/removeSummaryItem",{element:this.element})},e.prototype.attachListeners=function(){var e=this;this.checkboxSelectAllOnMain&&this.checkboxSelectAllOnMain.addEventListener("change",function(e){this.setStateSelectAll(e)}.bind(this),!1);pubsub.subscribe("/disregardchangescheckbox/disregardAll/updateSummary",(function(t){var i=e.element;t.element.getAttribute("data-id")===i.getAttribute("data-id")&&e.collectValues()}))},e.prototype.setStateSelectAll=function(e){if(this.checkboxSelectAll.checked=e.target.checked,"createEvent"in document){var t=document.createEvent("HTMLEvents");t.initEvent("change",!1,!0),this.checkboxSelectAll.dispatchEvent(t)}else this.checkboxSelectAll.fireEvent("onchange")},e.prototype.collectValues=function(){var e,t,i,s,n;for(this.items=[],e=0;e<this.options.length;e++){t=[];var o=e;this.options[e].checked&&(i=this.options[e].value,s=this.options[e].getAttribute("data-value")||this.options[e].value,n=this.options[e].getAttribute("id"),null!==this.options[e].closest("label")?t.push(i,s,this.options[e].closest("label").innerText,n,o):this.options[e].closest(".input-checkbox")?t.push(i,s,this.options[e].closest(".input-checkbox").querySelector("label").innerText,n,o):t.push(i,s,this.options[e].closest(".input-radio").querySelector("label").innerText,n,o),this.options[e].classList.contains("js-checkbox-master")||this.items.push(t))}},e.prototype.parseSelectedOptions=function(){for(var e,t,i,s="",n=this.element.querySelector(".subselection-checkbox__summary-main").querySelectorAll(".checkbox__input"),o=0;o<n.length;o++)n[o].removeAttribute("checked");for(o=0;o<this.items.length;o++)if(e=this.items[o][0],t=this.items[o][1],this.items[o][2],i=this.items[o][3],this.items[o][4]+1>this.InitialCheckboxesAmount)s+='<div class="input-checkbox"><input class="checkbox__input" checked type="checkbox" id="'+i+'-copy" value="'+e+'"/><label class="checkbox__label" for="'+i+'-copy">'+t+"</label></div>";else{var r=this.element.querySelector("#"+i+"-copy");r&&r.setAttribute("checked","checked")}this.containerSummary.querySelector(".subselection-checkbox__summary-additional").innerHTML=s,this.containerSummary.setAttribute("aria-live","polite"),this.attachSummaryCheckboxAdditionalListeners()},e.prototype.resetCheckboxes=function(e){var t;for(t=0;t<this.options.length;t++)this.options[t].checked=!1;if("createEvent"in document){var i=document.createEvent("HTMLEvents");i.initEvent("change",!1,!0),this.options[0].dispatchEvent(i)}else this.options[0].fireEvent("onchange");e.preventDefault()};var t=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.triggerDisregard=this.element.querySelector(this.config.triggerDisregard)||this.element.querySelector(".modal__close"),this.triggerApplySelection=this.element.querySelector(this.config.triggerApplySelection)||this.element.querySelector('[data-handler="close-modal"]'),this.options=onl.dom.$("input[type=checkbox], input[type=radio]",this.element),this.init()};t.prototype.init=function(){var e=this;this.createState(),this.setEventListeners();pubsub.subscribe("/subselectioncheckbox/removeSummaryItem",(function(t){var i=e.element;t.element===i&&e.createState()})),pubsub.subscribe("/selectall/init/checkboxSelectAllOnMain/true",(function(t){e.createState()}))},t.prototype.setEventListeners=function(){var e=this;this.triggerDisregard&&this.triggerDisregard.addEventListener("click",function(e){this.disregardAll(e)}.bind(this),!1),this.triggerApplySelection&&this.triggerApplySelection.addEventListener("click",function(e){this.rebuildState(e)}.bind(this),!1);pubsub.subscribe("/selectall/changeMasterCheckbox",(function(t){(t=t.element)===e.element.getAttribute("data-id")&&e.createState()}))},t.prototype.rebuildState=function(){this.createState()},t.prototype.createState=function(){this.state=[];for(var e=onl.dom.$("input[type=checkbox], input[type=radio]",this.element),t=0;t<e.length;t++){if("radio"!==e[t].type&&"checkbox"!==e[t].type)return;var i=e[t].getAttribute("id"),s=e[t].type,n=e[t].checked;this.state.push({ID:i,type:s,state:n})}},t.prototype.disregardAll=function(){for(var e=this.state,t=0;t<e.length;t++){var i=findObjectByKey(e,"ID",e[t].ID);document.getElementById(i.ID).checked=e[t].state}pubsub.publish("/disregardchanges/disregardAll/updateSummary",{element:this.element})}}(),function(){"use strict";var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.trigger=this.element.querySelector(this.config.trigger)||this.element.querySelector(".tooltip__trigger"),this.content=this.element.querySelector(this.config.content)||this.element.querySelector(".tooltip__content"),this.content=document.getElementById(this.trigger.getAttribute("aria-describedby")),this.isInsideTable=e.closest("table")||!1,this.init()};e.prototype.init=function(){var e=this;onl.ui.isTouch()?(this.trigger.addEventListener("click",function(e){this.showTooltip("click"),e.preventDefault()}.bind(this),!1),this.createCloseButton()):(this.content.addEventListener("mouseover",function(e){this.clearTimeoutTooltip()}.bind(this),!1),this.content.addEventListener("mouseout",function(e){this.timeoutTooltip()}.bind(this),!1),this.trigger.addEventListener("mouseover",function(e){this.showTooltip(e)}.bind(this),!1),this.trigger.addEventListener("focus",function(e){this.showTooltip(e)}.bind(this),!1),this.trigger.addEventListener("mouseout",function(e){this.timeoutTooltip(e)}.bind(this),!1),this.trigger.addEventListener("blur",function(e){this.timeoutTooltip(e)}.bind(this),!1),this.content.addEventListener("click",function(e){this.showTooltip(e)}.bind(this),!1),this.trigger.addEventListener("click",function(e){e.preventDefault()}.bind(this),!1),document.onkeydown=function(e){if("key"in(e=e||window.event)?"Escape"===e.key||"Esc"===e.key:27===e.ke
50yCode)for(var t=document.querySelectorAll(".tooltip"),i=0;i<t.length;i++){var s=t[i].querySelector(".tooltip__trigger"),n=t[i].querySelector(".tooltip__content");s.setAttribute("aria-expanded","false"),s.classList.remove("is-active"),s.classList.remove("has-position--left"),s.classList.remove("has-position--fixed"),n.classList.add("is-hidden"),n.setAttribute("aria-hidden","true"),n.classList.remove("is-tooltip-visible")}},this.content.addEventListener("mouseenter",(function(t){e.mouseOverTooltip=!0})),this.content.addEventListener("mouseleave",(function(t){e.mouseOverTooltip=!1,e.timeoutTooltip()})))},e.prototype.createCloseButton=function(){var e=this;this.closeButton=document.createElement("button"),this.closeButton.classList.add("tooltip__close"),this.closeButton.innerHTML='<span class="visually-hidden">Tooltip </span>Sluiten',this.content.appendChild(this.closeButton),this.closeButton.addEventListener("click",(function(t){t.preventDefault(),e.hideTooltip("closebutton")}))},e.prototype.showTooltip=function(e){var t,i=document.querySelectorAll(".tooltip__content");for(t=0;t<i.length;t++)i[t].setAttribute("aria-hidden","true"),i[t].classList.add("is-hidden");this.trigger.setAttribute("aria-expanded","true"),this.trigger.classList.add("is-active"),this.content.setAttribute("aria-hidden","false"),this.content.classList.remove("is-hidden"),this.content.classList.add("is-tooltip-visible"),this.isInsideTable&&document.body.classList.add("has-tooltipInsideTable-active"),"click"!==e?this.positionTooltip():this.trigger.classList.add("is-clicked")},e.prototype.positionTooltip=function(){this.content.classList.remove("has-position--above"),this.content.classList.remove("has-position--left");var e=this.content.getBoundingClientRect(),t=e.width||e.left-e.right,i=window.innerWidth,s=this.content.closest(".table__container")||!1;if(s){var n=s.getBoundingClientRect();e.bottom>n.bottom&&this.content.classList.add("has-position--above")}i-10<=e.left+t&&(this.content.classList.add("has-position--left"),e=this.content.getBoundingClientRect(),window.pageXOffset>e.left&&(this.content.classList.remove("has-position--left"),this.content.classList.add("has-position--fixed")))},e.prototype.timeoutTooltip=function(){var e=this;this.timeoutHide=window.setTimeout((function(){e.mouseOverTooltip||e.hideTooltip()}),300)},e.prototype.clearTimeoutTooltip=function(){window.clearTimeout(this.timeoutHide)},e.prototype.hideTooltip=function(e){this.element.querySelector(".tooltip__trigger").setAttribute("aria-expanded","false"),this.element.querySelector(".tooltip__trigger").classList.remove("is-active"),this.element.classList.remove("has-position--left"),this.element.classList.remove("has-position--fixed"),this.content.classList.add("is-hidden"),this.content.setAttribute("aria-hidden","true"),this.content.classList.remove("is-tooltip-visible"),this.isInsideTable&&document.body.classList.remove("has-tooltipInsideTable-active")},e.prototype.hideTooltipKeyboard=function(e){"27"===e.keyCode&&this.hideTooltip(e)},onl.decorate({tooltip:function(t){new e(t)}})}(),function(){"use strict";onl.decorate({"init-accordion":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],!1===this.config.allowMultiplePanelsOpen?this.allowMultiplePanelsOpen=this.config.allowMultiplePanelsOpen:this.allowMultiplePanelsOpen=!0,this.allowToggle=this.config.allowToggle||!0,this.accordionHeaderClass=this.config.accordionHeaderClass||"accordion__item__header",this.triggerClass=this.config.triggerClass||"accordion__item__header-trigger",this.checkboxTriggerClass=this.config.checkboxTriggerClass||"accordion__item__header-checkboxtrigger",this.triggers=this.element.querySelectorAll("."+this.triggerClass),this.checkboxTriggers=this.element.querySelectorAll("."+this.checkboxTriggerClass),this.init(),this.initEventListeners(),this.readHashForActions()};e.prototype.init=function(){if(!this.allowToggle){var e=this.element.querySelector('[aria-checked="true"]');e&&e.setAttribute("aria-disabled","true")}},e.prototype.initEventListeners=function(){var e,t;for(t=0;t<this.checkboxTriggers.length;t++)this.checkboxTriggers[t].addEventListener("change",function(e){this.doCheckboxTriggerAction(e)}.bind(this),!1),this.checkboxTriggers[t].checked&&this.doCheckboxTriggerAction(this.checkboxTriggers[t],!0),document.getElementById(this.checkboxTriggers[t].getAttribute("aria-controls")).setAttribute("aria-expanded","fal
50se");for(e=0;e<this.triggers.length;e++)this.triggers[e].classList.contains("has-eventlisterner")||(this.triggers[e].addEventListener("click",function(e){this.doTriggerAction(e)}.bind(this),!1),this.triggers[e].classList.add("has-eventlisterner"))},e.prototype.readHashForActions=function(e){var t=window.location.hash.substr(1);if(t){var i=document.querySelector("#"+t);if(i&&i.classList.contains("accordion__item")){var s=i.querySelector(".accordion__item__header-trigger");s&&s.click()}}},e.prototype.doCheckboxTriggerAction=function(e,t){this.doTriggerAction(e,"checkbox",t)},e.prototype.doTriggerAction=function(e,t,i){var s,n,o;if(s=e.target?e.target:e,"checkbox"===t?(n=this.checkboxTriggerClass,o="aria-checked"):(o="aria-expanded",n=this.triggerClass),"checkbox"!=t&&(s.classList.contains(n)||(s=function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}(s,n))),s.classList.contains(n)){var r="true"==s.getAttribute(o),a=this.element.querySelector("["+o+'="true"]');i?(document.getElementById(s.getAttribute("aria-controls")).setAttribute("aria-hidden","false"),document.getElementById(s.getAttribute("aria-controls")).setAttribute("aria-expanded","true")):(a&&a!==s&&!this.allowMultiplePanelsOpen&&(a.setAttribute(o,"false"),document.getElementById(a.getAttribute("aria-controls")).setAttribute("aria-hidden","true"),document.getElementById(a.getAttribute("aria-controls")).setAttribute("aria-expanded","false"),this.allowToggle||s.setAttribute("aria-disabled","true")),r?this.allowToggle&&r&&(s.setAttribute(o,"false"),document.getElementById(s.getAttribute("aria-controls")).setAttribute("aria-hidden","true"),document.getElementById(s.getAttribute("aria-controls")).setAttribute("aria-expanded","false")):(s.setAttribute(o,"true"),document.getElementById(s.getAttribute("aria-controls")).setAttribute("aria-hidden","false"),document.getElementById(s.getAttribute("aria-controls")).setAttribute("aria-expanded","true"),s.scrollIntoView({behavior:"smooth"}),this.allowToggle||s.setAttribute("aria-disabled","true")))}if("checkbox"===t)return!1;e.preventDefault()}}(),onl.handle({"close-alert":function(e,t){t.preventDefault();var i=findAncestorWithClass(e,"alert");i.classList.remove("show"),i.classList.add("hide"),setTimeout((function(){i.classList.remove("hide")}),500)}}),function(){"use strict";var e=function(e){onl.dom.$(".collapsible__header>*",e)[0].setAttribute("aria-expanded","true"),"show/hide"==onl.dom.$(".collapsible__header>*",e)[0].getAttribute("data-text")&&(onl.dom.$(".collapsible__header>*",e)[0].innerHTML="Toon minder informatie"),onl.ui.show(onl.dom.$(".collapsible__content",e)[0])},t=function(e){onl.dom.$(".collapsible__header>*",e)[0].setAttribute("aria-expanded","false"),"show/hide"==onl.dom.$(".collapsible__header>*",e)[0].getAttribute("data-text")&&(onl.dom.$(".collapsible__header>*",e)[0].innerHTML="Toon meer informatie"),onl.ui.hide(onl.dom.$(".collapsible__content",e)[0])},i=function(e){return onl.ui.isHidden(onl.dom.$(".collapsible__content",e)[0])};onl.handle({"toggle-collapsible":function(s,n){var o=s.closest(".collapsible"),r=o.parentElement,a=onl.dom.$(".collapsible",r).filter((function(e){return e.id===o.id}));n.preventDefault(),i(o)?(a.forEach((function(e){i(e)||t(e)})),e(o)):t(o)}}),onl.decorate({"init-collapsible":function(i){!0===i.classList.contains("collapsible--initially-visible")?e(i):t(i)},"init-search-collapsables":function(e){new s(e)}});var s=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.inputSearch=this.element.querySelector(".js-inputsearch"),this.results=onl.dom.$(".collapsible__content .input-checkbox",this.element),this.setContainerClass=".js-resultcontainer",this.setContainers=this.element.querySelectorAll(this.setContainerClass),this.allCheckboxes=this.element.querySelectorAll('input[type="checkbox"], input[type="radio"]'),this.init()};s.prototype.init=function(){this.inputSearch.addEventListener("keyup",function(){this.doFilter()}.bind(this),!1)},s.prototype.doFilter=function(){var e,t,i=this.inputSearch.value.toUpperCase(),s=!1,n=this.setContainers;function o(e){return e.replace(/([à áâãÄäå])|([çÄÄ])|([èéêë])|([ìÃîïī])|([ñÅ])|([òóôõÅöø])|([Ã])|([ùúûüū])|([ÿ])|([æ])/g,(function(e,t,i,s,n,o,r,a,l,c,h){return t?"a":i?"c":s?"e":n?"i":o?"n":r?"o":a?"s":l?"u":c?"y":h?"ae":void 0}))}if(""===i){var r=this.element.querySelectorAll('[aria-expanded="true"]');for(c=0;c<r.length;c++)r[c].click();this.element.classList.remove("is-searched")}for(e=0;e<this.results.length;e++)o(((t=this.results[e]).textContent||t.innerText).trim().toLowerCase()).indexOf(o(i.toLowerCase()))>-1?(this.results[e].removeAttribute("aria-hidden"),this.results[e].classList.add("is-visible"),this.results[e].classList.remove("is-invisible")):(this.results[e].setAttribute("aria-hidden","true"),this.results[e].classList.add("is-invisible"),this.results[e].classList.remove("is-visible"));for(c=0;c<n.length;c++){n[c].querySelectorAll(".is-visible").length<1?n[c].setAttribute("aria-hidden","true"):n[c].removeAttribute("aria-hidden")}if(n.length>0){for(c=0;c<n.length;c++)if(!n[c].hasAttribute("aria-hidden")){s=!0;break}}else for(e=0;e<this.allCheckboxes.length;e++)if(onl.ui.isVisible(this.allCheckboxes[e])){s=!0;break}var a="#"+this.inputSearch.getAttribute("aria-controls"),l="#alert-"+a.substring(1);if(s){if(this.element.querySelector(l)&&this.element.querySelector(l).parentNode.removeChild(this.element.querySelector(l)),""!=i){var c;r=this.element.querySelectorAll('[aria-expanded="false"]');for(c=0;c<r.length;c++)r[c].click();this.element.classList.add("is-searched")}}else if(!this.element.querySelector(l)){var h=document.createElement("p");h.innerHTML="Er zijn geen resultaten gevonden",h.setAttribute("role","alert"),h.classList.add("alert"),h.id=l.substring(1),this.element.querySelector(a).parentNode.appendChild(h)}}}(),function(){"use strict";onl.decorate({"init-facetgroup":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.config.limit=this.config.limit||"5",this.list=this.element.querySelector(".facetgroup__list"),this.arrayListItems=this.list.querySelectorAll("li"),this.holder=this.element.querySelector(".js-facetgroup__listholder"),this.holder&&this.init()};e.prototype.init=function(){if(this.arrayListItems>this.config.limit){var e,t=this.list.cloneNode(!0);for(this.holder.appendChild(t),e=0;e<this.arrayListItems.length;e++)e>=this.config.limit&&this.arrayListItems[e].parentNode.removeChild(this.arrayListItems[e])}}}(),function(){"use strict";onl.decorate({"init-footnote":function(t){new e(t)}});var e=function(e){this.element=e,this.footnote=document.querySelector(this.element.getAttribute("href")),this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.referenceClass=this.config.referenceClass||".reference",this.init()};e.prototype.init=function(){this.element.setAttribute("id","footnumber"+Math.floor(1e4*Math.random())+0),this.addEventListeners()},e.prototype.addEventListeners=function(){this.element.addEventListener("click",function(e){this.setReferenceAnker(e)}.bind(this),!1)},e.prototype.setReferenceAnker=function(){this.footnote.querySelector(".reference").setAttribute("href","#"+this.element.getAttribute("id"))}}(),function(){"use strict";var e=null,t={open:function(t,i){e=document.activeElement,onl.ui.show(t),t.classList.add("is-open"),window.setTimeout((function(){t.classList.remove("modal--off-screen")}
50),400),onl.ui.focus(t),onl.ui.bindFocusTrap(t);var s=JSON.parse(i.getAttribute("data-config"))||[];"function"==typeof window[s.function]&&new(0,window[s.function])(s.action,JSON.parse(document.getElementById(s.data).innerHTML));pubsub.publish("/modal/open",{modal:t})},close:function(t){onl.ui.hide(t),t.classList.add("modal--off-screen"),t.classList.remove("is-open"),onl.ui.unbindFocusTrap(t),e&&onl.ui.focus(e)},recalculateAndSetBounds:function(e){var t=e,i=window.innerHeight,s=t.querySelector(".modal__content");s.style.height="auto",s.offsetHeight+100>=i?s.style.height=i-100+"px":s.style.height="auto"},setHeight:function(e){var i;t.recalculateAndSetBounds(e),window.addEventListener("resize",(function(){i&&clearTimeout(i),i=window.setTimeout((function(){t.recalculateAndSetBounds(e)}),50)}))}};onl.decorate({"init-modal":function(e){e.classList.contains("modal")&&(e.classList.contains("modal--off-screen")||(t.setHeight(e),onl.ui.focus(e),onl.ui.bindFocusTrap(e)));var i=e.getAttribute("id");this.thisId=i;var s=document.querySelector('[data-modal="'+i+'"]');this.trigger=s,this.trigger&&s.addEventListener("click",function(i,s){s=s.target;var n=getClosest(s,"button").getAttribute("data-modal");n=document.getElementById(n);var o=document.getElementsByTagName("body");o[0].classList.add("is-modal-open"),o[0].setAttribute("data-modal-id",this.thisId),t.open(n,e),t.setHeight(n)}.bind(this,this.trigger),!1);var n=this;document.addEventListener("keydown",(function(e){"Escape"===e.key&&document.getElementById(n.thisId).querySelector(".modal__close").click()}))}}),onl.handle({"open-modal":function(e,i){i.preventDefault();var s=document.getElementById(e.getAttribute("data-modal"));document.getElementsByTagName("body")[0].classList.add("is-modal-open"),t.open(s,e),t.setHeight(s)},"close-modal":function(e){var i;document.getElementsByTagName("body")[0].classList.remove("is-modal-open"),i=e.getAttribute("data-modal")?document.getElementById(e.getAttribute("data-modal")):e.closest(".modal"),t.close(i)}})}(),function(){"use strict";var e=null,t=function(t){e=document.activeElement,t.classList.add("is-open"),onl.ui.focus(t),onl.ui.bindFocusTrap(t)},i=function(t){t.classList.remove("is-open"),onl.ui.unbindFocusTrap(t),e&&onl.ui.focus(e)};onl.decorate({"init-modalsidebar":function(){},"init-fixedbottom-button":function(e){new s(e)}});var s=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.allInputs=onl.dom.$("input, select",e),this.button=onl.dom.$(".js-fixedbottom-button__button",e)[0]||!1,this.button&&this.init()};s.prototype.init=function(){this.attachListerners()},s.prototype.attachListerners=function(){var e;for(e=0;e<this.allInputs.length;e++)this.allInputs[e].addEventListener("change",function(e){this.doChangeAction(e)}.bind(this),!1)},s.prototype.doChangeAction=function(){this.button.removeAttribute("hidden")},onl.handle({"open-modalsidebar":function(e){var i=document.getElementById(e.getAttribute("data-modal")),s=document.getElementsByTagName("body");s[0].classList.add("no-scroll"),s[0].classList.add("has-modal-open"),t(i)},"close-modalsidebar":function(e){var t,s=document.getElementsByTagName("body");s[0].classList.remove("no-scroll"),s[0].classList.remove("has-modal-open"),t=e.getAttribute("data-modal")?document.getElementById(e.getAttribute("data-modal")):e.closest(".modal-sidebar"),i(t)}})}(),function(){"use strict";onl.decorate({"init-nav-menubar":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.config.type=this.config.type||"default",this.isTouch="ontouchstart"in window||navigator.msMaxTouchPoints,this.init()};e.prototype.init=function(){var e=this;if("default"===this.config.type){var t=this.element.querySelectorAll(".has-submenu");Array.prototype.forEach.call(t,(function(t,i){e.isTouch||t.addEventListener("click",(function(e){"nav-menubar__item has-submenu"==this.className?(this.className="nav-menubar__item has-submenu is-open",this.querySelector("button.nav-menubar__link").setAttribute("aria-expanded","true")):(this.className="nav-menubar__item has-submenu",this.querySelector("button.nav-menubar__link").setAttribute("aria-expanded","fal
50se")),clearTimeout(void 0)}))})),Array.prototype.forEach.call(t,(function(e,t){}))}if("togglebutton"===this.config.type){this.element.classList.add("has-togglebutton");t=document.querySelectorAll("li.has-submenu");Array.prototype.forEach.call(t,(function(e,t){var i=e.querySelector("a"),s='<button class="nav-menubar__item__togglebutton" aria-haspopup="true" aria-expanded="false"><span><span class="visuallyhidden">Toon menu voor "'+i.text+'"</span></span></button>';i.insertAdjacentHTML("afterend",s),i.setAttribute("role","menuitem"),e.querySelector("button").addEventListener("click",(function(e){"nav-menubar__item has-submenu"==this.parentNode.className?(this.parentNode.className="nav-menubar__item has-submenu is-open",this.parentNode.querySelector("button").setAttribute("aria-expanded","true")):(this.parentNode.className="nav-menubar__item has-submenu",this.parentNode.querySelector("button").setAttribute("aria-expanded","false")),e.preventDefault()}))}))}}}(),function(){"use strict";onl.decorate({"init-notification":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.containerContent=this.element.querySelector(".notification__content"),this.btnClose=this.element.querySelector(".js-btn-close"),this.openOnPageload=this.config.openOnPageload||!0,this.addElements(),this.initEventListeners(),this.init()};e.prototype.init=function(){},e.prototype.addElements=function(){this.btnCollapse=document.createElement("button"),this.btnCollapseLabel=document.createElement("span"),this.btnCollapse.classList.add("notification__btn-collapse"),this.btnCollapse.type="button",this.btnCollapseLabel.innerHTML="Toon de inhoud",this.btnCollapse.appendChild(this.btnCollapseLabel),this.element.appendChild(this.btnCollapse),this.btnClose=document.createElement("button"),this.btnCloseLabel=document.createElement("span"),this.btnClose.classList.add("notification__btn-close"),this.btnClose.type="button",this.btnCloseLabel.innerHTML="Sluit de notificatie",this.btnClose.appendChild(this.btnCloseLabel),this.element.appendChild(this.btnClose)},e.prototype.initEventListeners=function(){this.btnClose.addEventListener("click",function(e){this.element.setAttribute("aria-hidden","true")}.bind(this),!1),this.btnCollapse.addEventListener("click",function(e){this.setState()}.bind(this),!1)},e.prototype.setState=function(){this.element.classList.toggle("is-open"),this.containerContent.setAttribute("alert","polite")}}(),function(){"use strict";var e=function(e){var t=document.getElementById(e.getAttribute("aria-controls"));"true"===e.getAttribute("aria-expanded")?(onl.ui.hide(t),e.setAttribute("aria-expanded","false")):(onl.ui.show(t),e.setAttribute("aria-expanded","true"))};onl.decorate({"init-profile-toggle":function(t){var i=onl.dom.$("[data-toggler]",t)[0],s=onl.dom.$("[data-toggled]",t)[0],n=document.createElement("button");n.type="button",n.textContent="Opties",n.setAttribute("aria-controls",s.id),n.setAttribute("aria-expanded","true"),n.setAttribute("data-handler","toggle-profile-options"),i.appendChild(n),e(n),document.addEventListener("click",(function(e){t.contains(e.target)||function(e){var t=document.getElementById(e.getAttribute("aria-controls"));"true"===e.getAttribute("aria-expanded")&&(onl.ui.hide(t),e.setAttribute("aria-expanded","false"))}(n)}))}}),onl.handle({"toggle-profile-options":function(t){e(t)}})}(),function(){"use strict";onl.decorate({"init-sourceslist":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.triggerClass=this.config.triggerClass||".js-sourceslist-statetrigger",this.triggerConfig=JSON.parse(this.element.getAttribute("data-config"))||[],this.stateTriggers=document.querySelectorAll(this.triggerClass),this.initEventListeners()};e.prototype.initEventListeners=function(){var e;for(e=0;e<this.stateTriggers.length;e++)this.stateTriggers[e].addEventListener("click",function(e){this.getTriggerConfig(e)}.bind(this),!1)},e.prototype.getTriggerConfig=function(e){e.preventDefault();var t=e.target,i=JSON.parse(e.target.getAttribute("data-config")),s=i.state,n=i.id;this.sourceslist=document.querySelector("#"+n),this.sourceslist&&(this.sourceslist.classList.add("is-state-"+s),this.sourceslist.setAttribute("role","alert"),this.sourceslist.setAttribute("tabindex","0"),this.sourceslist.focus(),t.setAttribute("hidden","hidden"),this.createDiscardLink(t))},e.prototype.createDiscardLink=function(e){var t=document.createElement("a"),i=document.createTextNode("Annuleren");t.classList.add("button"),t.classList.add("button--secondary"),t.appendChild(i),t.href="#";var s=e;s.parentNode.insertBefore(t,s.nextSibling),t.addEventListener("click",function(t){this.reset(t,e)}.bind(this),!1)},e.prototype.reset=function(e,t){e.preventDefault(),e.target.parentNode.removeChild(e.target),t.removeAttribute("hidden"),this.sourceslist.classList.remove("is-state-actions")}}(),function(){"use strict";onl.decorate({"init-table":function(e){}});!function(){var e,t=document.getElementsByTagName("table");function i(e,t){return e?(e.matches(t)||(e="html"!==e.nodeName.toLowerCase()&&i(e.parentNode,t)),e):e}for(e=0;e<t.length;e++){if(i(t[e],".documentbanner"))return;if(t[e].parentNode.classList.contains("table--container")&&t[e].parentNode.classList.add("table__container"),!t[e].parentNode.classList.contains("table__container")&&!t[e].parentNode.classList.contains("table--container")){var s=document.createElement("div").cloneNode(!1);t[e].parentNode.insertBefore(s,t[e]),s.classList.add("table__container"),s.appendChild(t[e])}if(t[e].parentNode.classList.contains("table__container"))if((s=t[e].parentNode).scrollWidth>s.clientWidth){s.classList.add("has-scrollbar");var n=document.createElement("div").cloneNode(!1);s.parentNode.insertBefore(n,s),n.classList.add("table__container__fullscreen");var o=document.createElement("button");o.innerHTML="Toon volledige tabel",o.setAttribute("data-decorator","init-tablefullscreen"),o.classList.add("table__container__openfullscreen"),o.classList.add("button"),o.classList.add("icon-bg"),o.classList.add("icon--fullscreen"),n.parentNode.insertBefore(o,n);var r=document.createElement("button");r.innerHTML='<span class="visually-hidden">Sluiten grote weergave tabel</span>',r.classList.add("table__container__closefullscreen"),n.appendChild(s),n.appendChild(r)}}}()}(),function(){"use strict";var e={openPanel:function(e){var t=e.closest('[data-decorator="init-tabs"]'),i=onl.dom.$('[role="tab"]',t),s=onl.dom.$('[aria-selected="true"]',t)[0],n=onl.dom.$("#"+s.getAttribute("aria-controls"),t)[0],o=onl.dom.$("#"+e.getAttribute("aria-controls"),t)[0];window.location.hash=e.getAttribute("aria-controls"),onl.ui.hide(n),onl.ui.show(o),i.forEac
50h((function(e){e.setAttribute("aria-selected","false")})),e.setAttribute("aria-selected","true")},getNextPanel:function(e){return e.parentElement.nextElementSibling?e.parentElement.nextElementSibling.firstElementChild:e.parentElement.parentElement.firstElementChild.firstElementChild},getPreviousPanel:function(e){return e.parentElement.previousElementSibling?e.parentElement.previousElementSibling.firstElementChild:e.parentElement.parentElement.lastElementChild.lastElementChild},getCurrentPanel:function(e){var t=e.closest('[data-decorator="init-tabs]');return onl.dom.$('[aria-selected="true"]',t)[0]},switch:function(t){var i=t.target,s=e.getNextPanel(i),n=e.getPreviousPanel(i);39===t.which&&(s.focus(),e.openPanel(s)),37===t.which&&(n.focus(),e.openPanel(n))}};onl.decorate({"init-tabs":function(t){var i,s=onl.dom.$('[role="tab"]',t),n=onl.dom.$('[role="tabpanel"]',t),o=0;s.forEach((function(t){t.setAttribute("aria-selected","false"),t.addEventListener("keyup",e.switch)})),n.forEach((function(e){onl.ui.hide(e)}));var r=window.location.hash;""!==window.location.hash?(r=r.substr(1,500),n.forEach((function(e){""!==r&&r===e.getAttribute("id")&&(onl.ui.show(e),s[o].setAttribute("aria-selected","true"),i=!0),o++})),i||(onl.ui.show(n[0]),s[0].setAttribute("aria-selected","true"))):(onl.ui.show(n[0]),s[0].setAttribute("aria-selected","true"))}}),onl.handle({"open-panel":function(t,i){i.preventDefault(),e.openPanel(t)},"open-next-panel":function(t){var i=e.getCurrentPanel(t),s=e.getNextPanel(i);e.openPanel(s)},"open-previous-panel":function(t){var i=e.getCurrentPanel(t),s=e.getPreviousPanel(i);e.openPanel(s)}})}(),function(){"use strict";var e=function(e){return Array.prototype.slice.call(e.parentNode.children,1)},t=function(e){var t,i="";for(t=0;t<e.length;t++)i+=t>0?" "+e[t].id:e[t].id;return i};onl.handle({"toggle-fold":function(t,i){var s=t.parentNode,n=e(s);i.preventDefault(),n.forEach((function(e){onl.ui.isHidden(e)?(onl.ui.show(e),t.textContent="Verberg onderliggende",t.setAttribute("aria-expanded","true")):(onl.ui.hide(e),t.textContent="Toon onderliggende",t.setAttribute("aria-expanded","false"))}))}}),onl.decorate({"add-foldability":function(i){var s,n=e(i),o=t(n);if(o=o.trim(),n.length>0){(s=document.createElement("button")).type="button",s.textContent="Verberg onderliggende",s.setAttribute("data-handler","toggle-fold");var r=document.getElementById(o);r&&((r.hasAttribute("aria-hidden")||r.hasAttribute("hidden"))&&("true"===r.getAttribute("aria-hidden")||r.hasAttribute("hidden"))?s.setAttribute("aria-expanded","false"):s.setAttribute("aria-expanded","true")),o&&s.setAttribute("aria-controls",o),i.appendChild(s)}},"init-legacytreeview":function(e){new i(e)}});var i=function(e){this.element=e,this.init()};i.prototype.init=function(){var e;for(this.foldouts=this.element.querySelectorAll(".nav .first .toc"),e=0;e<this.foldouts.length;e++){var t="_"+Math.random().toString(36).substr(2,9),i=this.foldouts[e].parentNode.querySelector("a:first-child"),s=document.createElement("button");this.foldouts[e].setAttribute("hidden",!0),this.foldouts[e].setAttribute("id",t),s.type="button",s.textContent="Toon onderliggende",s.setAttribute("data-handler","toggle-fold"),s.setAttribute("aria-expanded","false"),s.setAttribute("aria-controls",t),i.appendChild(s)}this.foldouts&&this.element.querySelector(".nav.nav-tree").classList.add("treeview--foldable")}}(),function(){"use strict";onl.decorate({"init-video":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.placeholderContainer=this.element.querySelector(".video__placeholder"),this.trigger=this.element.querySelector(".video__placeholder button"),this.initEventListeners()};e.prototype.initEventListeners=function(e){this.trigger.addEventListener("click",function(e){this.showVideo(e)}.bind(this),!1)},e.prototype.showVideo=function(){this.element.classList.add("is-video"),this.element.setAttribute("role","alert")}}(),function(){"use strict";onl.decorate({showmoreless:function(t){new e(t)}});var e=function(e){this.element=e,this.listitems=[].slice.call(this.element.querySelectorAll("li")),this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.config.amountVisible=this.config.amount||"4",this.config.labelMore=this.config.labelmore||"Toon meer",this.config.labelLess=this.config.labelless||"Toon minder",this.allvisible=!1,this.init()};e.prototype.init=function(){this.hideItems(!0)},e.prototype.hideItems=function(e){var t,i=0;for(t=0;t<this.listitems.length;t++)t>this.config.amountVisible-1&&(this.listitems[t].setAttribute("hidden","true"),this.listitems[t].setAttribute("aria-hidden","true"),i++);this.totalHidden=i,e&&t>this.config.amountVisible&&this.addTrigger()},e.prototype.addTrigger=function(){this.trigger=document.createElement("li"),this.trigger.classList.add("link"),this.trigger.classList.add("link--down"),this.triggerA=document.createElement("a"),this.triggerA.setAttribute("href","#"),this.triggerA.setAttribute("tabindex","0"),this.triggerA.setAttribute("aria-expanded",!1),this.triggerA.innerHTML=this.config.labelMore+" ("+this.totalHidden+")",this.trigger.appendChild(this.triggerA),this.element.querySelector("ul").appendChild(this.trigger),this.triggerA.addEventListener("click",function(e){e.preventDefault(),this.showHide(e)}.bind(this),!1)},e.prototype.showHide=function(){var e;if(this.allvisible)this.hideItems(),this.allvisible=!1,this.trigger.classList.remove("link--up"),this.trigger.classList.add("link--down"),this.triggerA.innerHTML=this.config.labelMore+" ("+this.totalHidden+")",this.triggerA.setAttribute("aria-expanded",!1);else{for(e=0;e<this.listitems.length;e++)this.listitems[e].removeAttribute("hidden","true"),this.listitems[e].removeAttribute("aria-hidden","true");this.allvisible=!0,this.trigger.classList.add("link--up"),this.trigger.classList.remove("link--down"),this.triggerA.innerHTML=this.config.labelLess,this.triggerA.setAttribute("aria-expanded",!0)}},e.prototype.removeTrigger=function(){this.trigger.parentNode.removeChild(this.trigger)}}(),function(){"use strict";onl.decorate({"init-multiselect":function(t){new e(t)}});var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.config.placeholder=this.element.getAttribute("data-decorator-placeholder"),this.config.searchPlaceholder="Zoek opties",this.config.noResultsText="Geen resultaten",this.config.userOptionPrefix="Toevoegen ",this.isDisabled=this.element.disabled,this.init()};e.prototype.init=function(){$(this.element).fastselect({isDisabled:this.isDisabled,placeholder:this.config.placeholder,searchPlaceholder:this.config.searchPlaceholder,noResultsText:this.config.noResultsText,userOptionPrefix:this.config.userOptionPrefix,clearQueryOnSelect:!0,elementClass:"multiselect__container",singleModeClass:"multiselect--singlemode",noneSelectedClass:"has-noneSelected",multipleModeClass:"multiselect--multiplemode",queryInputClass:"multiselect__input",inputHelptextClass:"multiselect__helptext",queryInputExpandedClass:"is-expanded",fakeInputClass:"multiselect__fakeinput",controlsClass:"multiselect__controls",toggleButtonClass:"multiselect__togglebutton",activeClass:"is-active",itemSelectedClass:"is-selected",choiceItemClass:"multiselect__choice",choiceRemoveClass:"multiselect__choiceremove",resultsContClass:"multiselect__resultscontainer",resultsOpenedClass:"is-open",resultsFlippedClass:"is-flipped",groupClass:"multiselect__group",groupTitleClass:"multiselect__group-title",itemClass:"multiselect__result",loadingClass:"is-loading",noResultsClass:"has-noresults",focusedItemClass:"has-focus",onItemSelect:function(e){var t=document.querySelector(".js-fixedbottom-button__button");t&&t.removeAttribute("hidden");var i=e.closest(".multiselect__group"),s=i[0].querySelectorAll("span");if(i[0])if("Alle"===(o=e[0].innerText).substr(0,4)){for(var n=0;n<s.length;n++)if(n>0&&s[n].classList.contains("is-selected")){var o=s[n].innerText;document.querySelector('[data-text="'+o+'"').querySelector("button").click()}}else{var r=s[0];if("Alle"===r.innerText.substr(0,4)&&r.classList.contains("is-selected")){o=r.innerText;document.querySelector('[data-text="'+o+'"').querySelector("button").click()}}}}),this.isDisabled}}(),function(){"use strict";var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.init()};e.prototype.init=function(){void 0!==this.config.trigger?this.addEventListeners(document.querySelector(".trigger-collapse."+this.config.trigger)):this.addEventListeners(document.querySelector(".trigger-collapse"))},e.prototype.addEventListeners=function(e){e.addEventListener("click",function(e){e.preventDefault(),this.toggleCollapse()}.bind(this),!1)},e.prototype.toggleCollapse=function(){this.element.classList.contains("collapsed")?this.element.classList.remove("collapsed"):this.element.classList.add("collapsed")},onl.decorate({"handle-collapse":function(t){new e(t)}})}(),function(){"use strict";onl.decorate({"init-setfocus":function(t){new e(t)}});var e=function(e){var t=this;this.element=e,this.targetId=this.element.getAttribute("data-setfocus-target"),this.target=document.getElementById(this.targetId),this.target&&this.element.addEventListener("click",function(e){onl.ui.focus(t.target)}.bind(this),!1)}}(),function(){"use strict";var e,t,i,s,n,o=function(){return window.pageYOffset||document.documentElement.scrollTop},r=function(s){var r,a,l=document.querySelector(".disclaimer"),c=document.querySelector(".footer");l?r=l.getBoundingClientRect():c&&(r=c.getBoundingClientRect()),a=r?r.top:"0";var h,u,d=o(),p=Math.max(window.innerHeight-a,0),f=window.innerHeight-p-32,g=window.matchMedia&&window.matchMedia("(min-width: 65em)").matches;if(d>e&&g?(i.classList.add("is-sticky"),i.style.position="fixed",i.style.top="1em",i.style.left=n+"px",i.style.height=f+"px"):(i.removeAttribute("style"),i.classList.remove("is-sticky")),onl.dom.$(".scrollC
50ontentReceiver")[0])if(h=document.querySelector(s).childNodes,onl.dom.$(".scrollContentReceiver")[0].innerHTML="",d>t&&g)for(u=0;u<h.length;u++){var m=h[u].cloneNode(!0);document.querySelector(".scrollContentReceiver").appendChild(m)}else onl.dom.$(".scrollContentReceiver")[0].innerHTML=""};onl.decorate({"add-mobile-foldability":function(e){var t,i="150",s=document.querySelector(".documentbanner");"0"!=(t=(s||e).getBoundingClientRect()).top&&(i=t.top);var n=document.createElement("button"),o="is-column-default",r={open:"Details openen",close:"Details sluiten"};if(document.querySelector(".columns--sidebar__sidebar form")){o="is-column-filters";r={open:"Filters openen",close:"Filters sluiten"}}n.type="button",n.classList.add(o),n.setAttribute("data-handler","toggle-sidebar"),n.setAttribute("aria-controls",e.id),n.setAttribute("data-toggle-open",r.open),n.setAttribute("data-toggle-close",r.close),n.setAttribute("aria-expanded","false"),n.textContent=r.open,n.style.top=Math.round(i)+40+"px",e.before(n),setTimeout((function(e){var t=document.querySelector(".documentbanner"),i=document.querySelector(".breadcrumb"),s=document.querySelector(".topbar"),n=document.querySelector("[data-blocksearch-pageheader]"),o=document.querySelector('[data-handler="toggle-sidebar"]');var r=i?i.offsetHeight:0,a=s?s.offsetHeight:0;o.style.top=Math.round("150")+a+r+20+"px"}),10,e)},"stick-sidebar":function(a){var l,c;(c=JSON.parse(a.getAttribute("data-config"))||[]).scrollContentElement,onl.dom.$(".footer")[0],i=a;for(var h=function(){e=i.closest(".columns--sticky-sidebar").getBoundingClientRect().top+o()+16,void 0!==onl.dom.$(".container > .breadcrumb")[0]?n=onl.dom.$(".container > .breadcrumb")[0].getBoundingClientRect().left:void 0!==onl.dom.$(".logo")[0]&&(n=onl.dom.$(".logo")[0].getBoundingClientRect().left),onl.dom.$("h1")[0]&&(t=onl.dom.$("h1")[0].getBoundingClientRect().bottom)},u=document.querySelector(".columns--sticky-sidebar__sidebar > *:first-child").offsetHeight,d=document.querySelectorAll(".columns--sticky-sidebar > div"),p=0;p<d.length;p++)d[p].classList.contains("columns--sticky-sidebar__sidebar")||(d[p].style.minHeight=u+80+"px");h(),window.addEventListener("othersites:open",(function(){window.setTimeout((function(){h()}),500)})),window.addEventListener("othersites:close",(function(){h()})),window.addEventListener("scroll",(function(){l&&window.clearTimeout(l),l=window.setTimeout((function(){r(c.scrollContentElement)}),10)})),window.addEventListener("resize",(function(){s&&clearTimeout(s),s=window.setTimeout((function(){h(),r(c.scrollContentElement)}),50)}))}}),onl.handle({"toggle-sidebar":function(e){var t,i,s,n,o;i=(t=e).getAttribute("data-toggle-open")||"Open",s=t.getAttribute("data-toggle-close")||"Sluit",n="true"===t.getAttribute("aria-expanded"),o=document.querySelector(".header"),n?(t.textContent=i,t.setAttribute("aria-expanded","false"),document.body.classList.remove("has-stickysidebar-open"),onl.ui.unbindFocusTrap(t.parentNode),o.style="z-index: 10"):(t.textContent=s,t.setAttribute("aria-expanded","true"),document.body.classList.add("has-stickysidebar-open"),onl.ui.bindFocusTrap(t.parentNode),o.style="z-index: 1")}})}(),function(){"use strict";var e=function(e){this.element=e,this.config=JSON.parse(this.element.getAttribute("data-config"))||[],this.position=this.config.position||"top",this.init()};e.prototype.init=function(){stickybits(this.element,{useStickyClasses:!0,verticalPosition:this.position})},onl.decorate({"init-sticky":function(t){new e(t)}})}(), 51/* @license Fastselect: Copyright(c) 2015 Damir Brekalo */ 52document.documentElement.className="has-js",onl.run();var mutationObserver=new MutationObserver((function(e){e.forEach((function(e){if("init-accordion"===e.target.dataset.decorator){var t=e.target.id;document.querySelector("#"+t).removeAttribute("data-decorator-initialized")}onl.run()}))}));mutationObserver.observe(document.documentElement,{attributes:!1,characterData:!1,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1}),document.addEventListener("click",(function(e){var t=e.target,i=(t.getAttribute("data-handler")||"").toLowerCase(),s="true"===t.getAttribute("aria-disabled");if(i)return!("A"!==t.nodeName||!(e.shiftKey||e.metaKey||e.ctrlKey))||void(s?e.preventDefault():i.split(/\s+/).forEac
52h((function(i){onl.handlers[i]instanceof Function&&onl.handlers[i](t,e)})))})),document.querySelector("#broodtekst")&&document.querySelectorAll("p.lid > span.lidnr").forEach(e=>{e.textContent.includes("2 bis.")&&e.parentElement.classList.add("lidnr-2bis"),e.textContent.includes("2 ter.")&&e.parentElement.classList.add("lidnr-2ter"),e.textContent.includes("2 quater.")&&e.parentElement.classList.add("lidnr-2quater")});;
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.