PageSourceSearch

https://streetmix.net/assets/main.1790850879610.js

js streetmix.net collected 2026-10-02 06:46:36 UTC 2,403,133 bytes, 158 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fb994f74-94f4-5003-9ab4-d3d1843e1f5d")}catch(e){}}();
3(()=>{let e,t,n,r,i,o,a,s,l,u,c,d,f,h,p,m,g,y,v,b,w,x,_,k,S,E,O,j,T,C,I,P,A,R,N;function M(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function D(e){if(e=el.i?.[e]||e,!pQ)try{throw Error()}catch(n){var t=(""+n.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);if(!t)return eo+e;pQ=t[0]}return new URL(eo+e,pQ).toString()}var z,F,B,U,$,H,W,V,q,K,Z,G,Y,X,J,Q,ee,et,en,er=globalThis;function ei(e){return e&&e.__esModule?e.default:e}var eo="./",ea={},es={},el=er.parcelRequirecd19;null==el&&((el=function(e){if(e in ea)return ea[e].exports;if(e in es){var t=es[e];delete es[e];var n={id:e,exports:{}};return ea[e]=n,t.call(n.exports,n,n.exports),n.exports}var r=Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(e,t){es[e]=t},er.parcelRequirecd19=el);"use strict";var eu=el.register;eu("2kzMM",function(e,t){"use strict";M(e.exports,"Fragment",()=>n,e=>n=e),M(e.exports,"jsx",()=>r,e=>r=e),M(e.exports,"jsxs",()=>i,e=>i=e);var n,r,i,o=Symbol.for("react.transitional.element");function a(e,t,n){var r=null;if(void 0!==n&&(r=""+n),void 0!==t.key&&(r=""+t.key),"key"in t)for(var i in n={},t)"key"!==i&&(n[i]=t[i]);else n=t;return{$$typeof:o,type:e,key:r,ref:void 0!==(t=n.ref)?t:null,props:n}}n=Symbol.for("react.fragment"),r=a,i=a}),eu("gNTjK",function(e,t){"use strict";M(e.exports,"createRoot",()=>tF,e=>tF=e),M(e.exports,"hydrateRoot",()=>tB,e=>tB=e),M(e.exports,"version",()=>tU,e=>tU=e);var n,r=el("clk2u"),i=el("8NFma"),o=el("2pmb0");function a(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 s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function u(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 c(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function d(e){if(l(e)!==e)throw Error(a(188))}var f=Object.assign,h=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),E=Symbol.for("react.lazy");Symbol.for("react.scope");var O=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var j=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var T=Symbol.iterator;function C(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}var I=Symbol.for("react.client.reference"),P=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N={pending:!1,data:null,method:null,action:null},D=[],z=-1;function F(e){return{current:e}}function B(e){0>z||(e.current=D[z],D[z]=null,z--)}function U(e,t){D[++z]=e.current,e.current=t}var $=F(null),H=F(null),W=F(null),V=F(null);function q(e,t){switch(U(W,t),U(H,e),U($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?uk(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=uS(t=uk(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B($),U($,e)}function K(){B($),B(H),B(W)}function Z(e){null!==e.memoizedState&&U(V,e);var t=$.current,n=uS(t,e.type);
3t!==n&&(U(H,e),U($,n))}function G(e){H.current===e&&(B($),B(H)),V.current===e&&(B(V),ca._currentValue=N)}function Y(e){if(void 0===t$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);t$=t&&t[1]||"",tH=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+t$+e+tH}var X=!1;function J(e,t){if(!e||X)return"";X=!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)}else{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(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),u=s.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--,i--,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{X=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Y(n):""}function Q(e){try{var t="",n=null;do t+=function(e,t){switch(e.tag){case 26:case 27:case 5:return Y(e.type);case 16:return Y("Lazy");case 13:return e.child!==t&&null!==t?Y("Suspense Fallback"):Y("Suspense");case 19:return Y("SuspenseList");case 0:case 15:return J(e.type,!1);case 11:return J(e.type.render,!1);case 1:return J(e.type,!0);case 31:return Y("Activity");default:return""}}(e,n),n=e,e=e.return;while(e)return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ee=Object.prototype.hasOwnProperty,et=r.unstable_scheduleCallback,en=r.unstable_cancelCallback,er=r.unstable_shouldYield,ei=r.unstable_requestPaint,eo=r.unstable_now,ea=r.unstable_getCurrentPriorityLevel,es=r.unstable_ImmediatePriority,eu=r.unstable_UserBlockingPriority,ec=r.unstable_NormalPriority,ed=r.unstable_LowPriority,ef=r.unstable_IdlePriority,eh=r.log,ep=r.unstable_setDisableYieldValue,em=null,eg=null;function ey(e){if("function"==typeof eh&&ep(e),eg&&"function"==typeof eg.setStrictMode)try{eg.setStrictMode(em,e)}catch(e){}}var ev=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eb(e)/ew|0)|0},eb=Math.log,ew=Math.LN2,ex=256,e_=262144,ek=4194304;function eS(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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function eE(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=0x7ffffff&r;return 0!==s?0!=(r=s&~o)?i=eS(r):0!=(a&=s)?i=eS(a):n||0!=(n=s&~e)&&(i=eS(n)):0!=(s=r&~o)?i=eS(s):0!==a?i=eS(a):n||0!=(n=r&~e)&&(i=eS(n)),0===i?0:0!==t&&t!==i&&0==(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&0!=(4194048&n))?t:i}function eO(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ej(){var e=ek;return 0==(0x3c00000&(ek<<=1))&&(ek=4194304),e}function eT(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,458 bytes, line 3
3function eC(e,t){e.pendingLanes|=t,0x10000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eI(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ev(t);e.entangledLanes|=t,e.entanglements[r]=0x40000000|e.entanglements[r]|261930&n}function eP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ev(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function eA(e,t){var n=t&-t;return 0!=((n=0!=(42&n)?1:eR(n))&(e.suspendedLanes|t))?0:n}function eR(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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 0x1000000:case 0x2000000:e=128;break;case 0x10000000:e=0x8000000;break;default:e=0}return e}function eN(e){return 2<(e&=-e)?8<e?0!=(0x7ffffff&e)?32:0x10000000:8:2}function eM(){var e=R.p;return 0!==e?e:void 0===(e=window.event)?32:cx(e.type)}function eD(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var eL=Math.random().toString(36).slice(2),ez="__reactFiber$"+eL,eF="__reactProps$"+eL,eB="__reactContainer$"+eL,eU="__reactEvents$"+eL,e$="__reactListeners$"+eL,eH="__reactHandles$"+eL,eW="__reactResources$"+eL,eV="__reactMarker$"+eL;function eq(e){delete e[ez],delete e[eF],delete e[eU],delete e[e$],delete e[eH]}function eK(e){var t=e[ez];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eB]||n[ez]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=u$(e);null!==e;){if(n=e[ez])return n;e=u$(e)}return t}n=(e=n).parentNode}return null}function eZ(e){if(e=e[ez]||e[eB]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function eG(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(a(33))}function eY(e){var t=e[eW];return t||(t=e[eW]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function eX(e){e[eV]=!0}var eJ=new Set,eQ={};function e0(e,t){e1(e,t),e1(e+"Capture",t)}function e1(e,t){for(eQ[e]=t,e=0;e<t.length;e++)eJ.add(t[e])}var e2=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]*$"),e3={},e4={};function e5(e,t,n){if(ee.call(e4,t)||!ee.call(e3,t)&&(e2.test(t)?e4[t]=!0:(e3[t]=!0,!1)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function e6(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function e8(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function e9(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e7(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function te(e){if(!e._valueTracker){var t=e7(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function tt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e7(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function tn(e){if(void 0===(e=e||("u">typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var tr=/[\n"\\]/g;function ti(e){return e.replace(tr,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}
3function to(e,t,n,r,i,o,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+e9(t)):e.value!==""+e9(t)&&(e.value=""+e9(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?ts(e,a,e9(t)):null!=n?ts(e,a,e9(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!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+e9(s):e.removeAttribute("name")}function ta(e,t,n,r,i,o,a,s){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 void te(e);n=null!=n?""+e9(n):"",t=null!=t?""+e9(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),te(e)}function ts(e,t,n){"number"===t&&tn(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tl(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(i=0,n=""+e9(n),t=null;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function tu(e,t,n){if(null!=t&&((t=""+e9(t))!==e.value&&(e.value=t),null==n)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=null!=n?""+e9(n):""}function tc(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(a(92));if(P(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}null==n&&(n=""),t=n}e.defaultValue=n=e9(t),(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),te(e)}function td(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var tf=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 th(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||tf.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function tp(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(a(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&&th(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&th(e,o,t[o])}function tm(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 tg=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"],["colorRen
3dering","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-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"]]),ty=/^[\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 tv(e){return ty.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function tb(){}var tw=null;function tx(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 4,908 bytes, line 3
3odeType?e.parentNode:e}var t_=null,tk=null;function tS(e){var t=eZ(e);if(t&&(e=t.stateNode)){var n=e[eF]||null;switch(e=t.stateNode,t.type){case"input":if(to(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="'+ti(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[eF]||null;if(!i)throw Error(a(90));to(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&&tt(r)}break;case"textarea":tu(e,n.value,n.defaultValue);break;case"select":null!=(t=n.value)&&tl(e,!!n.multiple,t,!1)}}}var tE=!1;function tO(e,t,n){if(tE)return e(t,n);tE=!0;try{return e(t)}finally{if(tE=!1,(null!==t_||null!==tk)&&(ly(),t_&&(t=t_,e=tk,tk=t_=null,tS(t),e)))for(t=0;t<e.length;t++)tS(e[t])}}function tj(e,t){var n=e.stateNode;if(null===n)return null;var r=n[eF]||null;if(null===r)return null;switch(n=r[t],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;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var tT="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,tC=!1;if(tT)try{var tI={};Object.defineProperty(tI,"passive",{get:function(){tC=!0}}),window.addEventListener("test",tI,tI),window.removeEventListener("test",tI,tI)}catch(e){tC=!1}var tP=null,tA=null,tR=null;function tN(){if(tR)return tR;var e,t,n=tA,r=n.length,i="value"in tP?tP.value:tP.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tR=i.slice(e,1<t?1-t:void 0)}function tM(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 tD(){return!0}function tL(){return!1}function tz(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?tD:tL,this.isPropagationStopped=tL,this}return f(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=tD)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tD)},persist:function(){},isPersistent:tD}),t}var tF,tB,tU,t$,tH,tW,tV,tq,tK={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tZ=tz(tK),tG=f({},tK,{view:0,detail:0}),tY=tz(tG),tX=f({},tG,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:t9,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!==tq&&(tq&&"mousemove"===e.type?(tW=e.screenX-tq.screenX,tV=e.screenY-tq.screenY):tV=tW=0,tq=e),tW)},movementY:function(e){return"movementY"in e?e.movementY:tV}}),tJ=tz(tX),tQ=tz(f({},tX,{dataTransfer:0})),t0=tz(f({},tG,{relatedTarget:0})),t1=tz(f({},tK,{animationName:0,elapsedTime:0,pseudoElement:0})),t2=tz(f({},tK,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),t3=tz(f({},tK,{data:0})),t4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t5={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"},t6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=t6[e])&&!!t[e]}function t9(){return t8}var t7=tz(f({},tG,{key:function(e){if(e.key){var t=t4[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tM(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
3yup"===e.type?t5[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:t9,charCode:function(e){return"keypress"===e.type?tM(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tM(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),ne=tz(f({},tX,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nt=tz(f({},tG,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:t9})),nn=tz(f({},tK,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=tz(f({},tX,{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})),ni=tz(f({},tK,{newState:0,oldState:0})),no=[9,13,27,32],na=tT&&"CompositionEvent"in window,ns=null;tT&&"documentMode"in document&&(ns=document.documentMode);var nl=tT&&"TextEvent"in window&&!ns,nu=tT&&(!na||ns&&8<ns&&11>=ns),nc=!1;function nd(e,t){switch(e){case"keyup":return -1!==no.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nf(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nh=!1,np={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 nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!np[e.type]:"textarea"===t}function ng(e,t,n,r){t_?tk?tk.push(r):tk=[r]:t_=r,0<(t=uu(t,"onChange")).length&&(n=new tZ("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ny=null,nv=null;function nb(e){ut(e,0)}function nw(e){if(tt(eG(e)))return e}function nx(e,t){if("change"===e)return t}var n_=!1;if(tT){if(tT){var nk="oninput"in document;if(!nk){var nS=document.createElement("div");nS.setAttribute("oninput","return;"),nk="function"==typeof nS.oninput}n=nk}else n=!1;n_=n&&(!document.documentMode||9<document.documentMode)}function nE(){ny&&(ny.detachEvent("onpropertychange",nO),nv=ny=null)}function nO(e){if("value"===e.propertyName&&nw(nv)){var t=[];ng(t,nv,e,tx(e)),tO(nb,t)}}function nj(e,t,n){"focusin"===e?(nE(),ny=t,nv=n,ny.attachEvent("onpropertychange",nO)):"focusout"===e&&nE()}function nT(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nw(nv)}function nC(e,t){if("click"===e)return nw(t)}function nI(e,t){if("input"===e||"change"===e)return nw(t)}var nP="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function nA(e,t){if(nP(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(!ee.call(t,i)||!nP(e[i],t[i]))return!1}return!0}function nR(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nN(e,t){var n,r=nR(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=nR(r)}}function nM(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var t=tn(e.document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=tn(e.document)}return t}function nD(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)}var nL=tT&&"documentMode"in document&&11>=document.documentMode,nz=null,nF=null,nB=null,nU=!1;function n$(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nU||null==nz||nz!==tn(r)||(r="selectionStart"in(r=nz)&&nD(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,209 bytes, line 3
3sNode:r.focusNode,focusOffset:r.focusOffset},nB&&nA(nB,r)||(nB=r,0<(r=uu(nF,"onSelect")).length&&(t=new tZ("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nz)))}function nH(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nW={animationend:nH("Animation","AnimationEnd"),animationiteration:nH("Animation","AnimationIteration"),animationstart:nH("Animation","AnimationStart"),transitionrun:nH("Transition","TransitionRun"),transitionstart:nH("Transition","TransitionStart"),transitioncancel:nH("Transition","TransitionCancel"),transitionend:nH("Transition","TransitionEnd")},nV={},nq={};function nK(e){if(nV[e])return nV[e];if(!nW[e])return e;var t,n=nW[e];for(t in n)if(n.hasOwnProperty(t)&&t in nq)return nV[e]=n[t];return e}tT&&(nq=document.createElement("div").style,"AnimationEvent"in window||(delete nW.animationend.animation,delete nW.animationiteration.animation,delete nW.animationstart.animation),"TransitionEvent"in window||delete nW.transitionend.transition);var nZ=nK("animationend"),nG=nK("animationiteration"),nY=nK("animationstart"),nX=nK("transitionrun"),nJ=nK("transitionstart"),nQ=nK("transitioncancel"),n0=nK("transitionend"),n1=new Map,n2="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 toggle touchMove waiting wheel".split(" ");function n3(e,t){n1.set(e,t),e0(t,[e])}n2.push("scrollEnd");var n4="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}console.error(e)},n5=[],n6=0,n8=0;function n9(){for(var e=n6,t=n8=n6=0;t<e;){var n=n5[t];n5[t++]=null;var r=n5[t];n5[t++]=null;var i=n5[t];n5[t++]=null;var o=n5[t];if(n5[t++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==o&&rn(n,i,o)}}function n7(e,t,n,r){n5[n6++]=e,n5[n6++]=t,n5[n6++]=n,n5[n6++]=r,n8|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function re(e,t,n,r){return n7(e,t,n,r),rr(e)}function rt(e,t){return n7(e,null,null,t),rr(e)}function rn(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;return 3===e.tag?(o=e.stateNode,i&&null!==t&&(i=31-ev(n),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=0x20000000|n),o):null}function rr(e){if(50<lu)throw lu=0,lc=null,Error(a(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var ri={};function ro(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 ra(e,t,n,r){return new ro(e,t,n,r)}function rs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function rl(e,t){var n=e.alternate;return null===n?((n=ra(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=0x3e00000&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.depen
vendor: 6,601 bytes, line 3
3dencies,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 ru(e,t){e.flags&=0x3e00002;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,e.dependencies=null===(t=n.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function rc(e,t,n,r,i,o){var s=0;if(r=e,"function"==typeof e)rs(e)&&(s=1);else if("string"==typeof e)s=!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;if("stylesheet"===t.rel)return e=t.disabled,"string"==typeof t.precedence&&null==e;return!0;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,$.current)?"html"===e||"head"===e||"body"===e?27:5:26;else e:switch(e){case O:return(e=ra(31,n,t,i)).elementType=O,e.lanes=o,e;case g:return rd(n.children,i,o,t);case y:s=8,i|=24;break;case v:return(e=ra(12,n,t,2|i)).elementType=v,e.lanes=o,e;case _:return(e=ra(13,n,t,i)).elementType=_,e.lanes=o,e;case k:return(e=ra(19,n,t,i)).elementType=k,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case b:s=9;break e;case x:s=11;break e;case S:s=14;break e;case E:s=16,r=null;break e}s=29,n=Error(a(130,null===e?"null":typeof e,"")),r=null}return(t=ra(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function rd(e,t,n,r){return(e=ra(7,e,r,t)).lanes=n,e}function rf(e,t,n){return(e=ra(6,e,null,t)).lanes=n,e}function rh(e){var t=ra(18,null,null,0);return t.stateNode=e,t}function rp(e,t,n){return(t=ra(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var rm=new WeakMap;function rg(e,t){if("object"==typeof e&&null!==e){var n=rm.get(e);return void 0!==n?n:(t={value:e,source:t,stack:Q(t)},rm.set(e,t),t)}return{value:e,source:t,stack:Q(t)}}var ry=[],rv=0,rb=null,rw=0,rx=[],r_=0,rk=null,rS=1,rE="";function rO(e,t){ry[rv++]=rw,ry[rv++]=rb,rb=e,rw=t}function rj(e,t,n){rx[r_++]=rS,rx[r_++]=rE,rx[r_++]=rk,rk=e;var r=rS;e=rE;var i=32-ev(r)-1;r&=~(1<<i),n+=1;var o=32-ev(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,rS=1<<32-ev(t)+i|n<<i|r,rE=o+e}else rS=1<<o|n<<i|r,rE=e}function rT(e){null!==e.return&&(rO(e,1),rj(e,1,0))}function rC(e){for(;e===rb;)rb=ry[--rv],ry[rv]=null,rw=ry[--rv],ry[rv]=null;for(;e===rk;)rk=rx[--r_],rx[r_]=null,rE=rx[--r_],rx[r_]=null,rS=rx[--r_],rx[r_]=null}function rI(e,t){rx[r_++]=rS,rx[r_++]=rE,rx[r_++]=rk,rS=t.id,rE=t.overflow,rk=e}var rP=null,rA=null,rR=!1,rN=null,rM=!1,rD=Error(a(519));function rL(e){var t=Error(a(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML",""));throw rH(rg(t,e)),rD}function rz(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ez]=e,t[eF]=r,n){case"dialog":un("cancel",t),un("close",t);break;case"iframe":case"object":case"embed":un("load",t);break;case"video":case"audio":for(n=0;n<l7.length;n++)un(l7[n],t);break;case"source":un("error",t);break;case"img":case"image":case"link":un("error",t),un("load",t);break;case"details":un("toggle",t);break;case"input":un("invalid",t),ta(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":un("invalid",t);break;case"textarea":un("invalid",t),tc(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||um(t.textContent,n)?(null!=r.popover&&(un("beforetoggle",t),un("toggle",t)),null!=r.onScroll&&un("scroll",t),null!=r.onScrollEnd&&un("scrollend",t),null!=r.onClick&&(t.onclick=tb),t=!0):t=!1,t||rL(e,!0)}function rF(e){for(rP=e.return;rP;)switch(rP.tag){case 5:case 31:case 13:rM=!1;return;case 27:case 3:rM=!0;return;default:rP=rP.return}}function rB(e){if(e!==rP)return!1;if(!rR)return rF(e),rR=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t="form"===(t=e.type)||"button"===t||uE(e.type,e.memoizedProps)),t=!t),t&&rA&&rL(e),rF(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));rA=uU(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));rA=uU(e)}else 27===n?(n=rA,uA(e.type)?(e=uB,uB=null,rA=e):rA=n):rA=rP?uF(e.stateNode.nextSibling):null;return!0}function rU(){rA=rP=null,rR=!1}function r$(){var e=rN;return null!==e&&(null===s5?s5=e:s5.push.apply(s5,e),rN=null),e}function rH(e){null===rN?rN=[e]:rN.push(e)}var rW=F(null),rV=null,rq=null;function rK(e,t,n){U(rW,t._currentValue),t._currentValue=n}function rZ(e){e._currentValue=rW.current,B(rW)}function rG(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 rY(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var o=i.dependencies;if(null!==o){var s=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),rG(o.return,n,e),r||(s=null);break e}o=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(o=s.alternate)&&(o.lanes|=n),rG(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function rX(e,t,n,r){e=null;for(var i=t,o=!1;null!==i;){if(!o){if(0!=(524288&i.flags))o=!0;else if(0!=(262144&i.flags))break}if(10===i.tag){var s=i.alternate;if(null===s)throw Error(a(387));if(null!==(s=s.memoizedProps)){var l=i.type;nP(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===V.current){if(null===(s=i.alternate))throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(ca):e=[ca])}i=i.return}null!==e&&rY(t,e,n,r),t.flags|=262144}function rJ(e){for(e=e.firstContext;null!==e;){if(!nP(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 9,017 bytes, line 3
3function rQ(e){rV=e,rq=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function r0(e){return r2(rV,e)}function r1(e,t){return null===rV&&rQ(e),r2(e,t)}function r2(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===rq){if(null===e)throw Error(a(308));rq=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else rq=rq.next=t;return n}var r3="u">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()})}},r4=r.unstable_scheduleCallback,r5=r.unstable_NormalPriority,r6={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function r8(){return{controller:new r3,data:new Map,refCount:0}}function r9(e){e.refCount--,0===e.refCount&&r4(r5,function(){e.controller.abort()})}var r7=null,ie=0,it=0,ir=null;function ii(){if(0==--ie&&null!==r7){null!==ir&&(ir.status="fulfilled");var e=r7;r7=null,it=0,ir=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var io=A.S;A.S=function(e,t){s9=eo(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e){if(null===r7){var t=r7=[];ie=0,it=l4(),ir={status:"pending",value:void 0,then:function(e){t.push(e)}}}ie++,e.then(ii,ii)}(t),null!==io&&io(e,t)};var ia=F(null);function is(){var e=ia.current;return null!==e?e:sH.pooledCache}function il(e,t){null===t?U(ia,ia.current):U(ia,t.pool)}function iu(){var e=is();return null===e?null:{parent:r6._currentValue,pool:e}}var ic=Error(a(460)),id=Error(a(474)),ih=Error(a(542)),ip={then:function(){}};function im(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ig(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(tb,tb),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw iw(e=t.reason),e;default:if("string"==typeof t.status)t.then(tb,tb);else{if(null!==(e=sH)&&100<e.shellSuspendCounter)throw Error(a(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":throw iw(e=t.reason),e}throw iv=t,ic}}function iy(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw iv=e,ic;throw e}}var iv=null;function ib(){if(null===iv)throw Error(a(459));var e=iv;return iv=null,e}function iw(e){if(e===ic||e===ih)throw Error(a(483))}var ix=null,i_=0;function ik(e){var t=i_;return i_+=1,null===ix&&(ix=[]),ig(ix,e,t)}function iS(e,t){e.ref=void 0!==(t=t.props.ref)?t:null}function iE(e,t){if(t.$$typeof===h)throw Error(a(525));throw Error(a(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iO(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=rl(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|=0x4000002,n):r:(t.flags|=0x4000002,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=0x4000002),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=rf(n,e.mode,r)).return=e:(t=i(t,n)).return=e,t}function u(e,t,n,r){var o=n.type;return o===g?d(e,t,n.props.children,r,n.key):(null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===E&&iy(o)===t.type)?iS(t=i(t,n.props),n):iS(t=rc(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=rp(n,e.mode,r)).return=e:(t=i(t,n.children||[])).return=e,t}function d(e,t,n,r,o){return null===t||7!==t.tag?(t=rd(n,e.mode,r,o)).return=e:(t=i(t,n)).return=e,t}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=rf(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case p:return iS(n=rc(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case m:return(t=rp(t,e.mode,n)).return=e,t;case E:return f(e,t=iy(t),n)}if(P(t)||C(t))return(t=rd(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,ik(t),n);if(t.$$typeof===w)return f(e,r1(e,t),n);iE(e,t)}return null}function h(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 p:return n.key===i?u(e,t,n,r):null;case m:return n.key===i?c(e,t,n,r):null;case E:return h(e,t,n=iy(n),r)}if(P(n)||C(n))return null!==i?null:d(e,t,n,r,null);if("function"==typeof n.then)return h(e,t,ik(n),r);if(n.$$typeof===w)return h(e,t,r1(e,n),r);iE(e,n)}return null}function y(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 p:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case m:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case E:return y(e,t,n,r=iy(r),i)}if(P(r)||C(r))return d(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return y(e,t,n,ik(r),i);if(r.$$typeof===w)return y(e,t,n,r1(t,r),i);iE(t,r)}return null}return function(l,u,c,d){try{i_=0;var v=function l(u,c,d,v){if("object"==typeof d&&null!==d&&d.type===g&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case p:e:{for(var b=d.key;null!==c;){if(c.key===b){if((b=d.type)===g){if(7===c.tag){n(u,c.sibling),(v=i(c,d.props.children)).return=u,u=v;break e}}else if(c.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===E&&iy(b)===c.type){n(u,c.sibling),iS(v=i(c,d.props),d),v.return=u,u=v;break e}n(u,c);break}t(u,c),c=c.sibling}d.type===g?(v=rd(d.props.children,u.mode,v,d.key)).return=u:(iS(v=rc(d.type,d.key,d.props,null,u.mode,v),d),v.return=u),u=v}return s(u);case m:e:{for(b=d.key;null!==c;){if(c.key===b)if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(u,c.sibling),(v=i(c,d.children||[])).return=u,u=v;break e}else{n(u,c);break}t(u,c),c=c.sibling}(v=rp(d,u.mode,v)).return=u,u=v}return s(u);case E:return l(u,c,d=iy(d),v)}if(P(d))return function(i,a,s,l){for(var u=null,c=null,d=a,p=a=0,m=null;null!==d&&p<s.length;p++){d.index>p?(m=d,d=null):m=d.sibling;var g=h(i,d,s[p],l);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(i,d),a=o(g,a,p),null===c?u=g:c.sibling=g,c=g,d=m}if(p===s.length)return n(i,d),rR&&rO(i,p),u;if(null===d){for(;p<s.length;p++)null!==(d=f(i,s[p],l))&&(a=o(d,a,p),null===c?u=d:c.sibling=d,c=d);return rR&&rO(i,p),u}for(d=r(d);p<s.length;p++)null!==(m=y(d,i,p,s[p],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?p:m.key),a=o(m,a,p),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(i,e)}),rR&&rO(i,p),u}(u,c,d,v);if(C(d)){if("function"!=typeof(b=C(d)))throw Error(a(150));return function(i,s,l,u){if(null==l)throw Error(a(151));for(var c=null,d=null,p=s,m=s=0,g=null,v=l.next();null!==p&&!v.done;m++,v=l.next()){p.index>m?(g=p,p=null):g=p.sibling;var b=h(i,p,v.value,u);if(null===b){null===p&&(p=g);break}e&&p&&null===b.alternate&&t(i,p),s=o(b,s,m),null===d?c=b:d.sibling=b,d=b,p=g}if(v.done)return n(i,p),rR&&rO(i,m),c;if(null===p){for(;!v.done;m++,v=l.next())null!==(v=f(i,v.value,u))&&(s=o(v,s,m),null===d?c=v:d.sibling=v,d=v);return rR&&rO(i,m),c}for(p=r(p);!v.done;m++,v=l.next())null!==(v=y(p,i,m,v.value,u))&&(e&&null!==v.alternate&&p.delete(null===v.key?m:v.key),s=o(v,s,m),null===d?c=v:d.sibling=v,d=v);return e&&p.forEach(function(e){return t(i,e)}),rR&&rO(i,m),c}(u,c,d=b.call(d),v)}if("function"==typeof d.then)return l(u,c,ik(d),v);if(d.$$typeof===w)return l(u,c,r1(u,d),v);iE(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d||"bigint"==typeof d?(d=""+d,null!==c&&6===c.tag?(n(u,c.sibling),(v=i(c,d)).return=u):(n(u,c),(v=rf(d,u.mode,v)).return=u),s(u=v)):n(u,c)}(l,u,c,d);return ix=null,v}catch(e){if(e===ic||e===ih)throw e;var b=ra(29,e,null,l.mode);return b.lanes=d,b.return=l,b}finally{}}}var ij=iO(!0),iT=iO(!1),iC=!1;function iI(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function iP(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 iR(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&s$)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=rr(e),rn(e,null,n),t}return n7(e,r,t,n),rr(e)}
3function iN(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194048&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eP(e,n)}}function iM(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 a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n)null===o?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var iD=!1;function iL(){if(iD){var e=ir;if(null!==e)throw e}}function iz(e,t,n,r){iD=!1;var i=e.updateQueue;iC=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var h=-0x20000001&s.lane,p=h!==s.lane;if(p?(sV&h)===h:(r&h)===h){0!==h&&h===it&&(iD=!0),null!==c&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;switch(h=t,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(n,d,h);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(h="function"==typeof(m=g.payload)?m.call(n,d,h):m))break e;d=f({},d,h);break e;case 2:iC=!0}}null!==(h=s.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=i.callbacks)?i.callbacks=[h]:p.push(h))}else p={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=h;if(null===(s=s.next))if(null===(s=i.shared.pending))break;else s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null===o&&(i.shared.lanes=0),sQ|=a,e.lanes=a,e.memoizedState=d}}function iF(e,t){if("function"!=typeof e)throw Error(a(191,e));e.call(t)}function iB(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)iF(n[e],t)}var iU=F(null),i$=F(0);function iH(e,t){U(i$,e=sX),U(iU,t),sX=e|t.baseLanes}function iW(){U(i$,sX),U(iU,iU.current)}function iV(){sX=i$.current,B(iU),B(i$)}var iq=F(null),iK=null;function iZ(e){var t=e.alternate;U(iQ,1&iQ.current),U(iq,e),null===iK&&(null===t||null!==iU.current?iK=e:null!==t.memoizedState&&(iK=e))}function iG(e){U(iQ,iQ.current),U(iq,e),null===iK&&(iK=e)}function iY(e){22===e.tag?(U(iQ,iQ.current),U(iq,e),null===iK&&(iK=e)):iX(e)}function iX(){U(iQ,iQ.current),U(iq,iq.current)}function iJ(e){B(iq),iK===e&&(iK=null),B(iQ)}var iQ=F(0);function i0(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||uL(n)||uz(n)))return t}else if(19===t.tag&&("forwards"===t.memoizedProps.revealOrder||"backwards"===t.memoizedProps.revealOrder||"unstable_legacy-backwards"===t.memoizedProps.revealOrder||"together"===t.memoizedProps.revealOrder)){if(0!=(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 i1=0,i2=null,i3=null,i4=null,i5=!1,i6=!1,i8=!1,i9=0,i7=0,oe=null,ot=0;function on(){throw Error(a(321))}function or(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nP(e[n],t[n]))return!1;return!0}function oi(e,t,n,r,i,o){return i1=o,i2=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=null===e||null===e.memoizedState?ac:ad,i8=!1,o=n(r,i),i8=!1,i6&&(o=oa(t,n,r,i)),oo(e),o}function oo(e){A.H=au;var t=null!==i3&&null!==i3.next;if(i1=0,i4=i3=i2=null,i5=!1,i7=0,oe=null,t)throw Error(a(300));null===e||aj||null!==(e=e.dependencies)&&rJ(e)&&(aj=!0)}function oa(e,t,n,r){i2=e;var i=0;do{if(i6&&(oe=null),i7=0,i6=!1,25<=i)throw Error(a(301));if(i+=1,i4=i3=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}A.H=af,o=t(n,r)}while(i6)return o}function os(){var e=A.H,t=e.useState()[0];return t="function"==typeof t.then?op(t):t,e=e.useState()[0],(null!==i3?i3.memoizedState:null)!==e&&(i2.flags|=1024),t}function ol(){var e=0!==i9;return i9=0,e}function ou(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function oc(e){if(i5){for(e=e.memoizedState;null!==e;){var t=e.queue;
3null!==t&&(t.pending=null),e=e.next}i5=!1}i1=0,i4=i3=i2=null,i6=!1,i7=i9=0,oe=null}function od(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===i4?i2.memoizedState=i4=e:i4=i4.next=e,i4}function of(){if(null===i3){var e=i2.alternate;e=null!==e?e.memoizedState:null}else e=i3.next;var t=null===i4?i2.memoizedState:i4.next;if(null!==t)i4=t,i3=e;else{if(null===e){if(null===i2.alternate)throw Error(a(467));throw Error(a(310))}e={memoizedState:(i3=e).memoizedState,baseState:i3.baseState,baseQueue:i3.baseQueue,queue:i3.queue,next:null},null===i4?i2.memoizedState=i4=e:i4=i4.next=e}return i4}function oh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function op(e){var t=i7;return i7+=1,null===oe&&(oe=[]),e=ig(oe,e,t),t=i2,null===(null===i4?t.memoizedState:i4.next)&&(A.H=null===(t=t.alternate)||null===t.memoizedState?ac:ad),e}function om(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return op(e);if(e.$$typeof===w)return r0(e)}throw Error(a(438,String(e)))}function og(e){var t=null,n=i2.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=i2.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=oh(),i2.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]=j;return t.index++,n}function oy(e,t){return"function"==typeof t?t(e):t}function ov(e){return ob(of(),i3,e)}function ob(e,t,n){var r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,null===i)e.memoizedState=o;else{t=i.next;var l=s=null,u=null,c=t,d=!1;do{var f=-0x20000001&c.lane;if(f!==c.lane?(sV&f)===f:(i1&f)===f){var h=c.revertLane;if(0===h)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===it&&(d=!0);else if((i1&h)===h){c=c.next,h===it&&(d=!0);continue}else f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=o):u=u.next=f,i2.lanes|=h,sQ|=h;f=c.action,i8&&n(o,f),o=c.hasEagerState?c.eagerState:n(o,f)}else h={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=h,s=o):u=u.next=h,i2.lanes|=f,sQ|=f;c=c.next}while(null!==c&&c!==t)if(null===u?s=o:u.next=l,!nP(o,e.memoizedState)&&(aj=!0,d&&null!==(n=ir)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=u,r.lastRenderedState=o}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ow(e){var t=of(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i)nP(o,t.memoizedState)||(aj=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ox(e,t,n){var r=i2,i=of(),o=rR;if(o){if(void 0===n)throw Error(a(407));n=n()}else n=t();var s=!nP((i3||i).memoizedState,n);if(s&&(i.memoizedState=n,aj=!0),i=i.queue,oq(oS.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||null!==i4&&1&i4.memoizedState.tag){if(r.flags|=2048,oU(9,{destroy:void 0},ok.bind(null,r,i,n,t),null),null===sH)throw Error(a(349));o||0!=(127&i1)||o_(r,t,n)}return n}function o_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=i2.updateQueue)?(t=oh(),i2.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ok(e,t,n,r){t.value=n,t.getSnapshot=r,oE(t)&&oO(e)}function oS(e,t,n){return n(function(){oE(t)&&oO(e)})}function oE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nP(e,n)}catch(e){return!0}}function oO(e){var t=rt(e,2);null!==t&&lh(t,e,2)}function oj(e){var t=od();if("function"==typeof e){var n=e;if(e=n(),i8){ey(!0);try{n()}finally{ey(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oy,lastRenderedState:e},t}function oT(e,t,n,r){return e.baseState=n,ob(e,i3,"function"==typeof r?r:oy)}function oC(e,t,n,r,i){if(aa(e))throw Error(a(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!==A.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,oI(t,o)):(o.next=n.next,t.pending=n.next=o)}}function oI(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=A.T,a={};A.T=a;try{var s=n(i,r),l=A.S;
3null!==l&&l(a,s),oP(e,t,s)}catch(n){oR(e,t,n)}finally{null!==o&&null!==a.types&&(o.types=a.types),A.T=o}}else try{o=n(i,r),oP(e,t,o)}catch(n){oR(e,t,n)}}function oP(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){oA(e,t,n)},function(n){return oR(e,t,n)}):oA(e,t,n)}function oA(e,t,n){t.status="fulfilled",t.value=n,oN(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,oI(e,n)))}function oR(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do t.status="rejected",t.reason=n,oN(t),t=t.next;while(t!==r)}e.action=null}function oN(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oM(e,t){return t}function oD(e,t){if(rR){var n=sH.formState;if(null!==n){e:{var r=i2;if(rR){if(rA){t:{for(var i=rA,o=rM;8!==i.nodeType;)if(!o||null===(i=uF(i.nextSibling))){i=null;break t}i="F!"===(o=i.data)||"F"===o?i:null}if(i){rA=uF(i.nextSibling),r="F!"===i.data;break e}}rL(r)}r=!1}r&&(t=n[0])}}return(n=od()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oM,lastRenderedState:t},n.queue=r,n=ar.bind(null,i2,r),r.dispatch=n,r=oj(!1),o=ao.bind(null,i2,!1,r.queue),r=od(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=oC.bind(null,i2,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function oL(e){return oz(of(),i3,e)}function oz(e,t,n){if(t=ob(e,t,oM)[0],e=ov(oy)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=op(t)}catch(e){if(e===ic)throw ih;throw e}else r=t;var i=(t=of()).queue,o=i.dispatch;return n!==t.memoizedState&&(i2.flags|=2048,oU(9,{destroy:void 0},oF.bind(null,i,n),null)),[r,o,e]}function oF(e,t){e.action=t}function oB(e){var t=of(),n=i3;if(null!==n)return oz(t,n,e);of(),t=t.memoizedState;var r=(n=of()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function oU(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=i2.updateQueue)&&(t=oh(),i2.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 o$(){return of().memoizedState}function oH(e,t,n,r){var i=od();i2.flags|=e,i.memoizedState=oU(1|t,{destroy:void 0},n,void 0===r?null:r)}function oW(e,t,n,r){var i=of();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==i3&&null!==r&&or(r,i3.memoizedState.deps)?i.memoizedState=oU(t,o,n,r):(i2.flags|=e,i.memoizedState=oU(1|t,o,n,r))}function oV(e,t){oH(8390656,8,e,t)}function oq(e,t){oW(2048,8,e,t)}function oK(e){var t=of().memoizedState,n={ref:t,nextImpl:e};i2.flags|=4;var r=i2.updateQueue;if(null===r)r=oh(),i2.updateQueue=r,r.events=[n];else{var i=r.events;null===i?r.events=[n]:i.push(n)}return function(){if(0!=(2&s$))throw Error(a(440));return t.impl.apply(void 0,arguments)}}function oZ(e,t){return oW(4,2,e,t)}function oG(e,t){return oW(4,4,e,t)}function oY(e,t){if("function"==typeof t){var n=t(e=e());return function(){"function"==typeof n?n():t(null)}}if(null!=t)return t.current=e=e(),function(){t.current=null}}function oX(e,t,n){n=null!=n?n.concat([e]):null,oW(4,4,oY.bind(null,t,e),n)}function oJ(){}function oQ(e,t){var n=of();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&or(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function o0(e,t){var n=of();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&or(t,r[1]))return r[0];if(r=e(),i8){ey(!0);try{e()}finally{ey(!1)}}return n.memoizedState=[r,t],r}function o1(e,t,n){return void 0===n||0!=(0x40000000&i1)&&0==(261930&sV)?e.memoizedState=t:(e.memoizedState=n,e=lf(),i2.lanes|=e,sQ|=e,n)}function o2(e,t,n,r){return nP(n,t)?n:null!==iU.current?(nP(e=o1(e,n,r),t)||(aj=!0),e):0==(42&i1)||0!=(0x40000000&i1)&&0==(261930&sV)?(aj=!0,e.memoizedState=n):(e=lf(),i2.lanes|=e,sQ|=e,t)}function o3(e,t,n,r,i){var o=R.p;R.p=0!==o&&8>o?o:8;var a=A.T,s={};A.T=s,ao(e,!1,t,n);try{var l=i(),u=A.S;if(null!==u&&u(s,l),null!==l&&"object"==typeof l&&"function"==typeof l.then){var c,d,f=(c=[],d={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},l.then(function(){d.status="fulfilled",d.value=r;
3for(var e=0;e<c.length;e++)(0,c[e])(r)},function(e){for(d.status="rejected",d.reason=e,e=0;e<c.length;e++)(0,c[e])(void 0)}),d);ai(e,t,f,ld(e))}else ai(e,t,r,ld(e))}catch(n){ai(e,t,{then:function(){},status:"rejected",reason:n},ld())}finally{R.p=o,null!==a&&null!==s.types&&(a.types=s.types),A.T=a}}function o4(){}function o5(e,t,n,r){if(5!==e.tag)throw Error(a(476));var i=o6(e).queue;o3(e,i,t,N,null===n?o4:function(){return o8(e),n(r)})}function o6(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:N,baseState:N,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oy,lastRenderedState:N},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oy,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function o8(e){var t=o6(e);null===t.next&&(t=e.alternate.memoizedState),ai(e,t.next.queue,{},ld())}function o9(){return r0(ca)}function o7(){return of().memoizedState}function ae(){return of().memoizedState}function at(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=ld(),r=iR(t,e=iA(n),n);null!==r&&(lh(r,t,n),iN(r,t,n)),t={cache:r8()},e.payload=t;return}t=t.return}}function an(e,t,n){var r=ld();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},aa(e)?as(t,n):null!==(n=re(e,t,n,r))&&(lh(n,e,r),al(n,t,r))}function ar(e,t,n){ai(e,t,n,ld())}function ai(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(aa(e))as(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,nP(s,a))return n7(e,t,i,0),null===sH&&n9(),!1}catch(e){}finally{}if(null!==(n=re(e,t,i,r)))return lh(n,e,r),al(n,t,r),!0}return!1}function ao(e,t,n,r){if(r={lane:2,revertLane:l4(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},aa(e)){if(t)throw Error(a(479))}else null!==(t=re(e,n,r,2))&&lh(t,e,2)}function aa(e){var t=e.alternate;return e===i2||null!==t&&t===i2}function as(e,t){i6=i5=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!=(4194048&n)){var r=t.lanes;r&=e.pendingLanes,t.lanes=n|=r,eP(e,n)}}var au={readContext:r0,use:om,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useLayoutEffect:on,useInsertionEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useSyncExternalStore:on,useId:on,useHostTransitionStatus:on,useFormState:on,useActionState:on,useOptimistic:on,useMemoCache:on,useCacheRefresh:on};au.useEffectEvent=on;var ac={readContext:r0,use:om,useCallback:function(e,t){return od().memoizedState=[e,void 0===t?null:t],e},useContext:r0,useEffect:oV,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,oH(4194308,4,oY.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oH(4194308,4,e,t)},useInsertionEffect:function(e,t){oH(4,2,e,t)},useMemo:function(e,t){var n=od();t=void 0===t?null:t;var r=e();if(i8){ey(!0);try{e()}finally{ey(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=od();if(void 0!==n){var i=n(t);if(i8){ey(!0);try{n(t)}finally{ey(!1)}}}else i=t;return r.memoizedState=r.baseState=i,r.queue=e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},e=e.dispatch=an.bind(null,i2,e),[r.memoizedState,e]},useRef:function(e){return od().memoizedState={current:e}},useState:function(e){var t=(e=oj(e)).queue,n=ar.bind(null,i2,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:oJ,useDeferredValue:function(e,t){return o1(od(),e,t)},useTransition:function(){var e=oj(!1);return e=o3.bind(null,i2,e.queue,!0,!1),od().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=i2,i=od();if(rR){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===sH)throw Error(a(349));0!=(127&sV)||o_(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,oV(oS.bind(null,r,o,e),[e]),r.flags|=2048,oU(9,{destroy:void 0},ok.bind(null,r,o,n,t),null),n},useId:function(){var e=od(),t=sH.identifierPrefix;if(rR){var n=rE,r=rS;t="_"+t+"R_"+(n=(r&~(1<<32-ev(r)-1)).toString(32)+n),0<(n=i9++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ot++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:o9,useFormState:oD,useActionState:oD,useOptimistic:function(e){var t=od();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ao.bind(null,i2,!0,n),n.dispatch=t,[e,t]},useMemoCache:og,useCacheRefresh:function(){return od().memoizedState=at.bind(null,i2)},useEffectEvent:function(e){var t=od(),n={impl:e};return t.memoizedState=n,function(){if(0!=(2&s$))throw Error(a(440));return n.impl.apply(void 0,arguments)}}}
3,ad={readContext:r0,use:om,useCallback:oQ,useContext:r0,useEffect:oq,useImperativeHandle:oX,useInsertionEffect:oZ,useLayoutEffect:oG,useMemo:o0,useReducer:ov,useRef:o$,useState:function(){return ov(oy)},useDebugValue:oJ,useDeferredValue:function(e,t){return o2(of(),i3.memoizedState,e,t)},useTransition:function(){var e=ov(oy)[0],t=of().memoizedState;return["boolean"==typeof e?e:op(e),t]},useSyncExternalStore:ox,useId:o7,useHostTransitionStatus:o9,useFormState:oL,useActionState:oL,useOptimistic:function(e,t){return oT(of(),i3,e,t)},useMemoCache:og,useCacheRefresh:ae};ad.useEffectEvent=oK;var af={readContext:r0,use:om,useCallback:oQ,useContext:r0,useEffect:oq,useImperativeHandle:oX,useInsertionEffect:oZ,useLayoutEffect:oG,useMemo:o0,useReducer:ow,useRef:o$,useState:function(){return ow(oy)},useDebugValue:oJ,useDeferredValue:function(e,t){var n=of();return null===i3?o1(n,e,t):o2(n,i3.memoizedState,e,t)},useTransition:function(){var e=ow(oy)[0],t=of().memoizedState;return["boolean"==typeof e?e:op(e),t]},useSyncExternalStore:ox,useId:o7,useHostTransitionStatus:o9,useFormState:oB,useActionState:oB,useOptimistic:function(e,t){var n=of();return null!==i3?oT(n,i3,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:og,useCacheRefresh:ae};function ah(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}af.useEffectEvent=oK;var ap={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ld(),i=iA(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=iR(e,i,r))&&(lh(t,e,r),iN(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ld(),i=iA(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=iR(e,i,r))&&(lh(t,e,r),iN(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ld(),r=iA(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=iR(e,r,n))&&(lh(t,e,n),iN(t,e,n))}};function am(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||!nA(n,r)||!nA(i,o)}function ag(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&&ap.enqueueReplaceState(t,t.state,null)}function ay(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=f({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function av(e){n4(e)}function ab(e){console.error(e)}function aw(e){n4(e)}function ax(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function a_(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 ak(e,t,n){return(n=iA(n)).tag=3,n.payload={element:null},n.callback=function(){ax(e,t)},n}function aS(e){return(e=iA(e)).tag=3,e}function aE(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(){a_(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){a_(t,n,r),"function"!=typeof i&&(null===lt?lt=new Set([this]):lt.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var aO=Error(a(461)),aj=!1;function aT(e,t,n,r){t.child=null===e?iT(t,null,n,r):ij(t,e.child,n,r)}function aC(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return(rQ(t),r=oi(e,t,n,a,o,i),s=ol(),null===e||aj)?(rR&&s&&rT(t),t.flags|=1,aT(e,t,r,i),t.child):(ou(e,t,i),aJ(e,t,i))}function aI(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||rs(o)||void 0!==o.defaultProps||null!==n.compare?((e=rc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,aP(e,t,o,r,i))}if(o=e.child,!aQ(e,i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:nA)(a,r)&&e.ref===t.ref)return aJ(e,t,i)}return t.flags|=1,(e=rl(o,r)).ref=t.ref,e.return=t,t.child=e}function aP(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(nA(o,r)&&e.ref===t.ref)if(aj=!1,t.pendingProps=r=o,!aQ(e,i))return t.lanes=e.lanes,aJ(e,t,i);else 0!=(131072&e.flags)&&(aj=!0)}return az(e,t,n,r,i)}function aA(e,t,n,r){var i=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(0!=(128&t.flags)){if(o=null!==o?o.baseLanes|n:n,null!==e){for(i=0,r=t.child=e.child;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return aN(e,t,o,n,r)}if(0==(0x20000000&n))return r=t.lanes=0x20000000,aN(e,t,null!==o?o.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&il(t,null!==o?o.cachePool:null),null!==o?iH(t,o):iW(),iY(t)}else null!==o?(il(t,o.cachePool),iH(t,o),iX(t),t.memoizedState=null):(null!==e&&il(t,null),iW(),iX(t));return aT(e,t,i,n),t.child}function aR(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function aN(e,t,n,r,i){var o=is();return t.memoizedState={baseLanes:n,cachePool:o=null===o?null:{parent:r6._currentValue,pool:o}},null!==e&&il(t,null),iW(),iY(t),null!==e&&rX(e,t,r,!0),t.childLanes=i,null}function aM(e,t){return(t=aK({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}
vendor: 9,048 bytes, line 3
3function aD(e,t,n){return ij(t,e.child,null,n),e=aM(t,t.pendingProps),e.flags|=2,iJ(t),t.memoizedState=null,e}function aL(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(a(284));(null===e||e.ref!==n)&&(t.flags|=4194816)}}function az(e,t,n,r,i){return(rQ(t),n=oi(e,t,n,r,void 0,i),r=ol(),null===e||aj)?(rR&&r&&rT(t),t.flags|=1,aT(e,t,n,i),t.child):(ou(e,t,i),aJ(e,t,i))}function aF(e,t,n,r,i,o){return(rQ(t),t.updateQueue=null,n=oa(t,r,n,i),oo(e),r=ol(),null===e||aj)?(rR&&r&&rT(t),t.flags|=1,aT(e,t,n,o),t.child):(ou(e,t,o),aJ(e,t,o))}function aB(e,t,n,r,i){if(rQ(t),null===t.stateNode){var o=ri,a=n.contextType;"object"==typeof a&&null!==a&&(o=r0(a)),t.memoizedState=null!==(o=new n(r,o)).state&&void 0!==o.state?o.state:null,o.updater=ap,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},iI(t),a=n.contextType,o.context="object"==typeof a&&null!==a?r0(a):ri,o.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(ah(t,n,a,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(a=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),a!==o.state&&ap.enqueueReplaceState(o,o.state,null),iz(t,r,o,i),iL(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var s=t.memoizedProps,l=ay(n,s);o.props=l;var u=o.context,c=n.contextType;a=ri,"object"==typeof c&&null!==c&&(a=r0(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s||u!==a)&&ag(t,o,r,a),iC=!1;var f=t.memoizedState;o.state=f,iz(t,r,o,i),iL(),u=t.memoizedState,s||f!==u||iC?("function"==typeof d&&(ah(t,n,d,r),u=t.memoizedState),(l=iC||am(t,n,l,r,f,u,a))?(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=a,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,iP(e,t),c=ay(n,a=t.memoizedProps),o.props=c,d=t.pendingProps,f=o.context,u=n.contextType,l=ri,"object"==typeof u&&null!==u&&(l=r0(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==d||f!==l)&&ag(t,o,r,l),iC=!1,f=t.memoizedState,o.state=f,iz(t,r,o,i),iL();var h=t.memoizedState;a!==d||f!==h||iC||null!==e&&null!==e.dependencies&&rJ(e.dependencies)?("function"==typeof s&&(ah(t,n,s,r),h=t.memoizedState),(c=iC||am(t,n,c,r,f,h,l)||null!==e&&null!==e.dependencies&&rJ(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,aL(e,t),r=0!=(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=ij(t,e.child,null,i),t.child=ij(t,null,n,i)):aT(e,t,n,i),t.memoizedState=o.state,e=t.child):e=aJ(e,t,i),e}function aU(e,t,n,r){return rU(),t.flags|=256,aT(e,t,n,r),t.child}var a$={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function aH(e){return{baseLanes:e,cachePool:iu()}}function aW(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=s2),e}function aV(e,t,n){var r,i=t.pendingProps,o=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&iQ.current)),r&&(o=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(rR){if(o?iZ(t):iX(t),(e=rA)?null!==(e=null!==(e=uD(e,rM))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==rk?{id:rS,overflow:rE}:null,retryLane:0x20000000,hydrationErrors:null},(n=rh(e)).return=t,t.child=n,rP=t,rA=null):e=null,null===e)throw rL(t);return uz(e)?t.lanes=32:t.lanes=0x20000000,null}var l=i.children;return(i=i.fallback,o)?(iX(t),l=aK({mode:"hidden",children:l},o=t.mode),i=rd(i,o,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=aH(n),i.childLanes=aW(e,r,n),t.memoizedState=a$,aR(null,i)):(iZ(t),aq(t,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(s)256&t.flags?(iZ(t),t.flags&=-257,t=aZ(e,t,n)):null!==t.memoizedState?(iX(t),t.child=e.child,t.flags|=128,t=null):(iX(t),l=i.fallback,o=t.mode,i=aK({mode:"visible",children:i.children},o),l=rd(l,o,n,null),l.flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,ij(t,e.child,null,n),(i=t.child).memoizedState=aH(n),i.childLanes=aW(e,r,n),t.memoizedState=a$,t=aR(null,i));else if(iZ(t),uz(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var c=r.dgst;r=c,(i=Error(a(419))).stack="",i.digest=r,rH({value:i,source:null,stack:null}),t=aZ(e,t,n)}else if(aj||rX(e,t,n,!1),r=0!=(n&e.childLanes),aj||r){if(null!==(r=sH)&&0!==(i=eA(r,n))&&i!==u.retryLane)throw u.retryLane=i,rt(e,i),lh(r,e,i),aO;uL(l)||lS(),t=aZ(e,t,n)}else uL(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,rA=uF(l.nextSibling),rP=t,rR=!0,rN=null,rM=!1,null!==e&&rI(t,e),t=aq(t,i.children),t.flags|=4096);return t}return o?(iX(t),l=i.fallback,o=t.mode,c=(u=e.child).sibling,(i=rl(u,{mode:"hidden",children:i.children})).subtreeFlags=0x3e00000&u.subtreeFlags,null!==c?l=rl(c,l):(l=rd(l,o,n,null),l.flags|=2),l.return=t,i.return=t,i.sibling=l,t.child=i,aR(null,i),i=t.child,null===(l=e.child.memoizedState)?l=aH(n):(null!==(o=l.cachePool)?(u=r6._currentValue,o=o.parent!==u?{parent:u,pool:u}:o):o=iu(),l={baseLanes:l.baseLanes|n,cachePool:o}),i.memoizedState=l,i.childLanes=aW(e,r,n),t.memoizedState=a$,aR(e.child,i)):(iZ(t),e=(n=e.child).sibling,(n=rl(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 aq(e,t){return(t=aK({mode:"visible",children:t},e.mode)).return=e,e.child=t}function aK(e,t){return(e=ra(22,e,null,t)).lanes=0,e}function aZ(e,t,n){return ij(t,e.child,null,n),e=aq(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function aG(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),rG(e.return,t,n)}function aY(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function aX(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=iQ.current,s=0!=(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,U(iQ,a),aT(e,t,r,n),r=rR?rw:0,!s&&null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&aG(e,n,t);else if(19===e.tag)aG(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(i=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===i0(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),aY(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===i0(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}aY(t,!0,n,null,o,r);break;case"together":aY(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function aJ(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),sQ|=t.lanes,0==(n&t.childLanes)){if(null===e)return null;else if(rX(e,t,n,!1),0==(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=rl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;
3)e=e.sibling,(n=n.sibling=rl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function aQ(e,t){return 0!=(e.lanes&t)||!!(null!==(e=e.dependencies)&&rJ(e))}function a0(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)aj=!0;else{if(!aQ(e,n)&&0==(128&t.flags))return aj=!1,function(e,t,n){switch(t.tag){case 3:q(t,t.stateNode.containerInfo),rK(t,r6,e.memoizedState.cache),rU();break;case 27:case 5:Z(t);break;case 4:q(t,t.stateNode.containerInfo);break;case 10:rK(t,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,iG(t),null;break;case 13:var r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return iZ(t),t.flags|=128,null;if(0!=(n&t.child.childLanes))return aV(e,t,n);return iZ(t),null!==(e=aJ(e,t,n))?e.sibling:null}iZ(t);break;case 19:var i=0!=(128&e.flags);if((r=0!=(n&t.childLanes))||(rX(e,t,n,!1),r=0!=(n&t.childLanes)),i){if(r)return aX(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(iQ,iQ.current),!r)return null;break;case 22:return t.lanes=0,aA(e,t,n,t.pendingProps);case 24:rK(t,r6,e.memoizedState.cache)}return aJ(e,t,n)}(e,t,n);aj=0!=(131072&e.flags)}else aj=!1,rR&&0!=(1048576&t.flags)&&rj(t,rw,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=iy(t.elementType),t.type=e,"function"==typeof e)rs(e)?(r=ay(e,r),t.tag=1,t=aB(null,t,e,r,n)):(t.tag=0,t=az(null,t,e,r,n));else{if(null!=e){var i=e.$$typeof;if(i===x){t.tag=11,t=aC(null,t,e,r,n);break e}if(i===S){t.tag=14,t=aI(null,t,e,r,n);break e}}throw Error(a(306,t=function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===I?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case g:return"Fragment";case v:return"Profiler";case y:return"StrictMode";case _:return"Suspense";case k:return"SuspenseList";case O:return"Activity"}if("object"==typeof t)switch(t.$$typeof){case m:return"Portal";case w:return t.displayName||"Context";case b:return(t._context.displayName||"Context")+".Consumer";case x:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case S:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case E:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(e)||e,""))}}return t;case 0:return az(e,t,t.type,t.pendingProps,n);case 1:return i=ay(r=t.type,t.pendingProps),aB(e,t,r,i,n);case 3:e:{if(q(t,t.stateNode.containerInfo),null===e)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,iP(e,t),iz(t,r,null,n);var s=t.memoizedState;if(rK(t,r6,r=s.cache),r!==o.cache&&rY(t,[r6],n,!0),iL(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=aU(e,t,r,n);break e}else if(r!==i){rH(i=rg(Error(a(424)),t)),t=aU(e,t,r,n);break e}else for(rA=uF((e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).firstChild),rP=t,rR=!0,rN=null,rM=!0,n=iT(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling;else{if(rU(),r===i){t=aJ(e,t,n);break e}aT(e,t,r,n)}t=t.child}return t;case 26:return aL(e,t),null===e?(n=uX(t.type,null,t.pendingProps,null))?t.memoizedState=n:rR||(n=t.type,e=t.pendingProps,(r=u_(W.current).createElement(n))[ez]=t,r[eF]=e,uv(r,n,e),eX(r),t.stateNode=r):t.memoizedState=uX(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Z(t),null===e&&rR&&(r=t.stateNode=uH(t.type,t.pendingProps,W.current),rP=t,rM=!0,i=rA,uA(t.type)?(uB=i,rA=uF(r.firstChild)):rA=i),aT(e,t,t.pendingProps.children,n),aL(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&rR&&((i=r=rA)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[eV])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||i!==n.rel||e.getAttribute("href")!==(null==n.href||""===n.href?null:n.href)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin)||e.getAttribute("title")!==(null==n.title?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==n.src?null:n.src)||e.getAttribute("type")!==(null==n.type?null:n.type)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}
3else{if("input"!==t||"hidden"!==e.type)return e;var i=null==n.name?null:""+n.name;if("hidden"===n.type&&e.getAttribute("name")===i)return e}if(null===(e=uF(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,rM))?(t.stateNode=r,rP=t,rA=uF(r.firstChild),rM=!1,i=!0):i=!1),i||rL(t)),Z(t),i=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,r=o.children,uE(i,o)?r=null:null!==s&&uE(i,s)&&(t.flags|=32),null!==t.memoizedState&&(ca._currentValue=i=oi(e,t,os,null,null,n)),aL(e,t),aT(e,t,r,n),t.child;case 6:return null===e&&rR&&((e=n=rA)&&(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||null===(e=uF(e.nextSibling)))return null;return e}(n,t.pendingProps,rM))?(t.stateNode=n,rP=t,rA=null,e=!0):e=!1),e||rL(t)),null;case 13:return aV(e,t,n);case 4:return q(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ij(t,null,r,n):aT(e,t,r,n),t.child;case 11:return aC(e,t,t.type,t.pendingProps,n);case 7:return aT(e,t,t.pendingProps,n),t.child;case 8:case 12:return aT(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,rK(t,t.type,r.value),aT(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,rQ(t),r=r(i=r0(i)),t.flags|=1,aT(e,t,r,n),t.child;case 14:return aI(e,t,t.type,t.pendingProps,n);case 15:return aP(e,t,t.type,t.pendingProps,n);case 19:return aX(e,t,n);case 31:var l=e,u=t,c=n,d=u.pendingProps,f=0!=(128&u.flags);if(u.flags&=-129,null===l){if(rR){if("hidden"===d.mode)return l=aM(u,d),u.lanes=0x20000000,aR(null,l);if(iG(u),(l=rA)?null!==(l=null!==(l=uD(l,rM))&&"&"===l.data?l:null)&&(u.memoizedState={dehydrated:l,treeContext:null!==rk?{id:rS,overflow:rE}:null,retryLane:0x20000000,hydrationErrors:null},(c=rh(l)).return=u,u.child=c,rP=u,rA=null):l=null,null===l)throw rL(u);return u.lanes=0x20000000,null}return aM(u,d)}var h=l.memoizedState;if(null!==h){var p=h.dehydrated;if(iG(u),f)if(256&u.flags)u.flags&=-257,u=aD(l,u,c);else if(null!==u.memoizedState)u.child=l.child,u.flags|=128,u=null;else throw Error(a(558));else if(aj||rX(l,u,c,!1),f=0!=(c&l.childLanes),aj||f){if(null!==(d=sH)&&0!==(p=eA(d,c))&&p!==h.retryLane)throw h.retryLane=p,rt(l,p),lh(d,l,p),aO;lS(),u=aD(l,u,c)}else l=h.treeContext,rA=uF(p.nextSibling),rP=u,rR=!0,rN=null,rM=!1,null!==l&&rI(u,l),u=aM(u,d),u.flags|=4096;return u}return(l=rl(l.child,{mode:d.mode,children:d.children})).ref=u.ref,u.child=l,l.return=u,l;case 22:return aA(e,t,n,t.pendingProps);case 24:return rQ(t),r=r0(r6),null===e?(null===(i=is())&&(i=sH,o=r8(),i.pooledCache=o,o.refCount++,null!==o&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},iI(t),rK(t,r6,i)):(0!=(e.lanes&n)&&(iP(e,t),iz(t,null,null,n),iL()),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),rK(t,r6,r)):(rK(t,r6,r=o.cache),r!==i.cache&&rY(t,[r6],n,!0))),aT(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function a1(e){e.flags|=4}function a2(e,t,n,r,i){if((t=0!=(32&e.mode))&&(t=!1),t){if(e.flags|=0x1000000,(0x13ffff40&i)===i)if(e.stateNode.complete)e.flags|=8192;else if(lx())e.flags|=8192;else throw iv=ip,id}else e.flags&=-0x1000001}function a3(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-0x1000001;else if(e.flags|=0x1000000,!ce(t))if(lx())e.flags|=8192;else throw iv=ip,id}function a4(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?ej():0x20000000,e.lanes|=t,s3|=t)}function a5(e,t){if(!rR)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 a6(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|=0x3e00000&i.subtreeFlags,r|=0x3e00000&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 a8(e,t){switch(rC(t),t.tag){case 3:rZ(r6),K();break;case 26:case 27:case 5:G(t);break;case 4:K();break;case 31:null!==t.memoizedState&&iJ(t);break;case 13:iJ(t);break;case 19:B(iQ);break;case 10:rZ(t.type);break;case 22:case 23:iJ(t),iV(),null!==e&&B(ia);break;case 24:rZ(r6)}}function a9(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;n.inst.destroy=r=o()}n=n.next}while(n!==i)}}catch(e){lF(t,t.return,e)}}function a7(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 a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,i=t;
vendor: 5,014 bytes, line 3
3try{s()}catch(e){lF(i,n,e)}}}r=r.next}while(r!==o)}}catch(e){lF(t,t.return,e)}}function se(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{iB(t,n)}catch(t){lF(e,e.return,t)}}}function st(e,t,n){n.props=ay(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){lF(e,t,n)}}function sn(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){lF(e,t,n)}}function sr(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){lF(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){lF(e,t,n)}else n.current=null}function si(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){lF(e,e.return,t)}}function so(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,s=null,l=null,u=null,c=null,d=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&null!=f)switch(p){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(p)||ug(e,t,p,null,r,f)}}for(var h in r){var p=r[h];if(f=n[h],r.hasOwnProperty(h)&&(null!=p||null!=f))switch(h){case"type":o=p;break;case"name":i=p;break;case"checked":c=p;break;case"defaultChecked":d=p;break;case"value":s=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(a(137,t));break;default:p!==f&&ug(e,t,h,p,r,f)}}to(e,s,l,u,c,d,o,i);return;case"select":for(o in p=s=l=h=null,n)if(u=n[o],n.hasOwnProperty(o)&&null!=u)switch(o){case"value":break;case"multiple":p=u;default:r.hasOwnProperty(o)||ug(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":h=o;break;case"defaultValue":l=o;break;case"multiple":s=o;default:o!==u&&ug(e,t,i,o,r,u)}t=l,n=s,r=p,null!=h?tl(e,!!n,h,!1):!!r!=!!n&&(null!=t?tl(e,!!n,t,!0):tl(e,!!n,n?[]:"",!1));return;case"textarea":for(l in p=h=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ug(e,t,l,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(null!=i||null!=o))switch(s){case"value":h=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(a(91));break;default:i!==o&&ug(e,t,s,i,r,o)}tu(e,h,p);return;case"option":for(var m in n)h=n[m],n.hasOwnProperty(m)&&null!=h&&!r.hasOwnProperty(m)&&("selected"===m?e.selected=!1:ug(e,t,m,null,r,h));for(u in r)h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(null!=h||null!=p)&&("selected"===u?e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h:ug(e,t,u,h,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 g in n)h=n[g],n.hasOwnProperty(g)&&null!=h&&!r.hasOwnProperty(g)&&ug(e,t,g,null,r,h);for(c in r)if(h=r[c],p=n[c],r.hasOwnProperty(c)&&h!==p&&(null!=h||null!=p))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(a(137,t));break;default:ug(e,t,c,h,r,p)}return;default:if(tm(t)){for(var y in n)h=n[y],n.hasOwnProperty(y)&&void 0!==h&&!r.hasOwnProperty(y)&&uy(e,t,y,void 0,r,h);for(d in r)h=r[d],p=n[d],r.hasOwnProperty(d)&&h!==p&&(void 0!==h||void 0!==p)&&uy(e,t,d,h,r,p);return}}for(var v in n)h=n[v],n.hasOwnProperty(v)&&null!=h&&!r.hasOwnProperty(v)&&ug(e,t,v,null,r,h);for(f in r)h=r[f],p=n[f],r.hasOwnProperty(f)&&h!==p&&(null!=h||null!=p)&&ug(e,t,f,h,r,p)})(r,e.type,n,t),r[eF]=t}catch(t){lF(e,e.return,t)}}function sa(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&uA(e.type)||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&uA(e.type)||2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sl(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&&uA(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}function su(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);uv(t,r,n),t[ez]=e,t[eF]=n}catch(t){lF(e,e.return,t)}}var sc=!1,sd=!1,sf=!1,sh="function"==typeof WeakSet?WeakSet:Set,sp=null;function sm(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:sj(e,n),4&r&&a9(5,n);break;case 1:if(sj(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){lF(n,n.return,e)}else{var i=ay(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 12,069 bytes, line 3
3try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){lF(n,n.return,e)}}64&r&&se(n),512&r&&sn(n,n.return);break;case 3:if(sj(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{iB(e,t)}catch(e){lF(n,n.return,e)}}break;case 27:null===t&&4&r&&su(n);case 26:case 5:sj(e,n),null===t&&4&r&&si(n),512&r&&sn(n,n.return);break;case 12:default:sj(e,n);break;case 31:sj(e,n),4&r&&sw(e,n);break;case 13:sj(e,n),4&r&&sx(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=lH.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||sc)){t=null!==t&&null!==t.memoizedState||sd,i=sc;var o=sd;sc=r,(sd=t)&&!o?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var i=n.alternate,o=t,a=n,s=a.flags;switch(a.tag){case 0:case 11:case 15:e(o,a,r),a9(4,a);break;case 1:if(e(o,a,r),"function"==typeof(o=(i=a).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){lF(i,i.return,e)}if(null!==(o=(i=a).updateQueue)){var l=i.stateNode;try{var u=o.shared.hiddenCallbacks;if(null!==u)for(o.shared.hiddenCallbacks=null,o=0;o<u.length;o++)iF(u[o],l)}catch(e){lF(i,i.return,e)}}r&&64&s&&se(a),sn(a,a.return);break;case 27:su(a);case 26:case 5:e(o,a,r),r&&null===i&&4&s&&si(a),sn(a,a.return);break;case 12:default:e(o,a,r);break;case 31:e(o,a,r),r&&4&s&&sw(o,a);break;case 13:e(o,a,r),r&&4&s&&sx(o,a);break;case 22:null===a.memoizedState&&e(o,a,r),sn(a,a.return);case 30:}n=n.sibling}}(e,n,0!=(8772&n.subtreeFlags)):sj(e,n),sc=i,sd=o}case 30:}}var sg=null,sy=!1;function sv(e,t,n){for(n=n.child;null!==n;)sb(e,t,n),n=n.sibling}function sb(e,t,n){if(eg&&"function"==typeof eg.onCommitFiberUnmount)try{eg.onCommitFiberUnmount(em,n)}catch(e){}switch(n.tag){case 26:sd||sr(n,t),sv(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:sd||sr(n,t);var r=sg,i=sy;uA(n.type)&&(sg=n.stateNode,sy=!1),sv(e,t,n),uW(n.stateNode),sg=r,sy=i;break;case 5:sd||sr(n,t);case 6:if(r=sg,i=sy,sg=null,sv(e,t,n),sg=r,sy=i,null!==sg)if(sy)try{(9===sg.nodeType?sg.body:"HTML"===sg.nodeName?sg.ownerDocument.body:sg).removeChild(n.stateNode)}catch(e){lF(n,t,e)}else try{sg.removeChild(n.stateNode)}catch(e){lF(n,t,e)}break;case 18:null!==sg&&(sy?(uR(9===(e=sg).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),cF(e)):uR(sg,n.stateNode));break;case 4:r=sg,i=sy,sg=n.stateNode.containerInfo,sy=!0,sv(e,t,n),sg=r,sy=i;break;case 0:case 11:case 14:case 15:a7(2,n,t),sd||a7(4,n,t),sv(e,t,n);break;case 1:sd||(sr(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&st(n,t,r)),sv(e,t,n);break;case 21:default:sv(e,t,n);break;case 22:sd=(r=sd)||null!==n.memoizedState,sv(e,t,n),sd=r}}function sw(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{cF(e)}catch(e){lF(t,t.return,e)}}}function sx(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{cF(e)}catch(e){lF(t,t.return,e)}}function s_(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new sh),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new sh),t;default:throw Error(a(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=lW.bind(null,e,t);t.then(r,r)}})}function sk(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(uA(l.type)){sg=l.stateNode,sy=!1;break e}break;case 5:sg=l.stateNode,sy=!1;break e;case 3:case 4:sg=l.stateNode.containerInfo,sy=!0;break e}l=l.return}if(null===sg)throw Error(a(160));sb(o,s,i),sg=null,sy=!1,null!==(o=i.alternate)&&(o.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)sE(t,e),t=t.sibling}var sS=null;function sE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sk(t,e),sO(e),4&r&&(a7(3,e,e.return),a9(3,e),a7(5,e,e.return));break;case 1:sk(t,e),sO(e),512&r&&(sd||null===n||sr(n,n.return)),64&r&&sc&&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=sS;if(sk(t,e),sO(e),512&r&&(sd||null===n||sr(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[eV]||o[ez]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),uv(o,r,n),o[ez]=e,eX(o),r=o;break e;case"link":var s=u9("link","href",i).get(r+(n.href||""));if(s){for(var l=0;l<s.length;l++)if((o=s[l]).getAttribute("href")===(null==n.href||""===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)){s.splice(l,1);break t}}uv(o=i.createElement(r),r,n),i.head.appendChild(o);break;case"meta":if(s=u9("meta","content",i).get(r+(n.content||""))){for(l=0;l<s.length;l++)if((o=s[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)){s.splice(l,1);break t}}uv(o=i.createElement(r),r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[ez]=e,eX(o),r=o}e.stateNode=r}else u7(i,e.type,e.stateNode);else e.stateNode=u3(i,r,e.memoizedProps);else o!==r?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===r?u7(i,e.type,e.stateNode):u3(i,r,e.memoizedProps)):null===r&&null!==e.stateNode&&so(e,e.memoizedProps,n.memoizedProps)}break;case 27:sk(t,e),sO(e),512&r&&(sd||null===n||sr(n,n.return)),null!==n&&4&r&&so(e,e.memoizedProps,n.memoizedProps);break;case 5:if(sk(t,e),sO(e),512&r&&(sd||null===n||sr(n,n.return)),32&e.flags){i=e.stateNode;try{td(i,"")}catch(t){lF(e,e.return,t)}}4&r&&null!=e.stateNode&&(i=e.memoizedProps,so(e,i,null!==n?n.memoizedProps:i)),1024&r&&(sf=!0);break;case 6:if(sk(t,e),sO(e),4&r){if(null===e.stateNode)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){lF(e,e.return,t)}}break;case 3:if(u8=null,i=sS,sS=uK(t.containerInfo),sk(t,e),sS=i,sO(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{cF(t.containerInfo)}catch(t){lF(e,e.return,t)}sf&&(sf=!1,function e(t){if(1024&t.subtreeFlags)for(t=t.child;null!==t;){var n=t;e(n),5===n.tag&&1024&n.flags&&n.stateNode.reset(),t=t.sibling}}(e));break;case 4:r=sS,sS=uK(e.stateNode.containerInfo),sk(t,e),sO(e),sS=r;break;case 12:default:sk(t,e),sO(e);break;case 31:case 19:sk(t,e),sO(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,s_(e,r));break;case 13:sk(t,e),sO(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(s8=eo()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,s_(e,r));break;case 22:i=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=sc,d=sd;if(sc=c||i,sd=d||u,sk(t,e),sd=d,sc=c,sO(e),8192&r)e:for((t=e.stateNode)._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||u||sc||sd||function e(t){for(t=t.child;null!==t;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:a7(4,n,n.return),e(n);break;case 1:sr(n,n.return);var r=n.stateNode;"function"==typeof r.componentWillUnmount&&st(n,n.return,r),e(n);break;case 27:uW(n.stateNode);case 26:case 5:sr(n,n.return),e(n);break;case 22:null===n.memoizedState&&e(n);break;default:e(n)}t=t.sibling}}(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(o=u.stateNode,i)s=o.style,"function"==typeof s.setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var f=u.memoizedProps.style,h=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(e){lF(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(e){lF(u,u.return,e)}}}else if(18===t.tag){if(null===n){u=t;try{var p=u.stateNode;i?uN(p,!0):uN(u.stateNode,!1)}catch(e){lF(u,u.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;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,s_(e,n));case 30:case 21:}}function sO(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(sa(r)){n=r;break}r=r.return}if(null==n)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode,o=ss(e);sl(e,o,i);break;case 5:var s=n.stateNode;32&n.flags&&(td(s,""),n.flags&=-33);var l=ss(e);sl(e,l,s);break;case 3:case 4:var u=n.stateNode.containerInfo,c=ss(e);!function e(t,n,r){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?(9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).insertBefore(t,n):((n=9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=tb));else if(4!==i&&(27===i&&uA(t.type)&&(r=t.stateNode,n=null),null!==(t=t.child)))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,c,u);break;default:throw Error(a(161))}}catch(t){lF(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function sj(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)sm(e,t.alternate,t),t=t.sibling}function sT(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&&r9(n))}function sC(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&r9(e))}function sI(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)sP(e,t,n,r),t=t.sibling}function sP(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:sI(e,t,n,r),2048&i&&a9(9,t);break;case 1:case 31:case 13:default:sI(e,t,n,r);break;case 3:sI(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&&r9(e)));break;case 12:if(2048&i){sI(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,s=o.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){lF(t,t.return,e)}}else sI(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,null!==t.memoizedState?2&o._visibility?sI(e,t,n,r):sA(e,t):2&o._visibility?sI(e,t,n,r):(o._visibility|=2,function e(t,n,r,i,o){for(o=o&&0!=(10256&n.subtreeFlags),n=n.child;null!==n;){var a=n,s=a.flags;switch(a.tag){case 0:case 11:case 15:e(t,a,r,i,o),a9(8,a);break;case 23:break;case 22:var l=a.stateNode;null!==a.memoizedState?2&l._visibility?e(t,a,r,i,o):sA(t,a):(l._visibility|=2,e(t,a,r,i,o)),o&&2048&s&&sT(a.alternate,a);break;case 24:e(t,a,r,i,o),o&&2048&s&&sC(a.alternate,a);break;default:e(t,a,r,i,o)}n=n.sibling}}(e,t,n,r,0!=(10256&t.subtreeFlags))),2048&i&&sT(a,t);break;case 24:sI(e,t,n,r),2048&i&&sC(t.alternate,t)}}function sA(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=t,r=n.flags;switch(n.tag){case 22:sA(e,n),2048&r&&sT(n.alternate,n);break;case 24:sA(e,n),2048&r&&sC(n.alternate,n);break;default:sA(e,n)}t=t.sibling}}var sR=8192;function sN(e,t,n){if(e.subtreeFlags&sR)for(e=e.child;null!==e;
3)sM(e,t,n),e=e.sibling}function sM(e,t,n){switch(e.tag){case 26:sN(e,t,n),e.flags&sR&&null!==e.memoizedState&&function(e,t,n,r){if("stylesheet"===n.type&&("string"!=typeof r.media||!1!==matchMedia(r.media).matches)&&0==(4&n.state.loading)){if(null===n.instance){var i=uJ(r.href),o=t.querySelector(uQ(i));if(o){null!==(t=o._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=cn.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,eX(o);return}o=t.ownerDocument||t,r=u0(r),(i=uV.get(i))&&u5(r,i),eX(o=o.createElement("link"));var a=o;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),uv(o,"link",r),n.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&0==(3&n.state.loading)&&(e.count++,n=cn.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,sS,e.memoizedState,e.memoizedProps);break;case 5:default:sN(e,t,n);break;case 3:case 4:var r=sS;sS=uK(e.stateNode.containerInfo),sN(e,t,n),sS=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=sR,sR=0x1000000,sN(e,t,n),sR=r):sN(e,t,n))}}function sD(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 sL(e){var t=e.deletions;if(0!=(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];sp=r,sF(r,e)}sD(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)sz(e),e=e.sibling}function sz(e){switch(e.tag){case 0:case 11:case 15:sL(e),2048&e.flags&&a7(9,e,e.return);break;case 3:case 12:default:sL(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,function e(t){var n=t.deletions;if(0!=(16&t.flags)){if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];sp=i,sF(i,t)}sD(t)}for(t=t.child;null!==t;){switch((n=t).tag){case 0:case 11:case 15:a7(8,n,n.return),e(n);break;case 22:2&(r=n.stateNode)._visibility&&(r._visibility&=-3,e(n));break;default:e(n)}t=t.sibling}}(e)):sL(e)}}function sF(e,t){for(;null!==sp;){var n=sp;switch(n.tag){case 0:case 11:case 15:a7(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:r9(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,sp=r;else for(n=e;null!==sp;){var i=(r=sp).sibling,o=r.return;if(!function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&eq(n),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(r),r===n){sp=null;break}if(null!==i){i.return=o,sp=i;break}sp=o}}}var sB={getCacheForType:function(e){var t=r0(r6),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return r0(r6).controller.signal}},sU="function"==typeof WeakMap?WeakMap:Map,s$=0,sH=null,sW=null,sV=0,sq=0,sK=null,sZ=!1,sG=!1,sY=!1,sX=0,sJ=0,sQ=0,s0=0,s1=0,s2=0,s3=0,s4=null,s5=null,s6=!1,s8=0,s9=0,s7=1/0,le=null,lt=null,ln=0,lr=null,li=null,lo=0,la=0,ls=null,ll=null,lu=0,lc=null;function ld(){return 0!=(2&s$)&&0!==sV?sV&-sV:null!==A.T?l4():eM()}function lf(){if(0===s2)if(0==(0x20000000&sV)||rR){var e=e_;0==(3932160&(e_<<=1))&&(e_=262144),s2=e}else s2=0x20000000;return null!==(e=iq.current)&&(e.flags|=32),s2}function lh(e,t,n){(e===sH&&(2===sq||9===sq)||null!==e.cancelPendingCommit)&&(lb(e,0),lg(e,sV,s2,!1)),eC(e,n),(0==(2&s$)||e!==sH)&&(e===sH&&(0==(2&s$)&&(s0|=n),4===sJ&&lg(e,sV,s2,!1)),lX(e))}function lp(e,t,n){if(0!=(6&s$))throw Error(a(327));for(var r=!n&&0==(127&t)&&0==(t&e.expiredLanes)||eO(e,t),i=r?function(e,t){var n=s$;s$|=2;var r=l_(),i=lk();sH!==e||sV!==t?(le=null,s7=eo()+500,lb(e,t)):sG=eO(e,t);e:for(;;)try{if(0!==sq&&null!==sW){t=sW;var o=sK;t:switch(sq){case 1:sq=0,sK=null,lT(e,t,o,1);break;
3case 2:case 9:if(im(o)){sq=0,sK=null,lj(t);break}t=function(){2!==sq&&9!==sq||sH!==e||(sq=7),lX(e)},o.then(t,t);break e;case 3:sq=7;break e;case 4:sq=5;break e;case 7:im(o)?(sq=0,sK=null,lj(t)):(sq=0,sK=null,lT(e,t,o,7));break;case 5:var s=null;switch(sW.tag){case 26:s=sW.memoizedState;case 5:case 27:var l=sW;if(s?ce(s):l.stateNode.complete){sq=0,sK=null;var u=l.sibling;if(null!==u)sW=u;else{var c=l.return;null!==c?(sW=c,lC(c)):sW=null}break t}}sq=0,sK=null,lT(e,t,o,5);break;case 6:sq=0,sK=null,lT(e,t,o,6);break;case 8:lv(),sJ=6;break e;default:throw Error(a(462))}}for(;null!==sW&&!er();)lO(sW);break}catch(t){lw(e,t)}return(rq=rV=null,A.H=r,A.A=i,s$=n,null!==sW)?0:(sH=null,sV=0,n9(),sJ)}(e,t):lE(e,t,!0),o=r;;){if(0===i)sG&&!r&&lg(e,t,0,!1);else{if(n=e.current.alternate,o&&!function(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(!nP(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}(n)){i=lE(e,t,!1),o=!1;continue}if(2===i){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!=(s=-0x20000001&e.pendingLanes)?s:0x20000000&s?0x20000000:0;if(0!==s){t=s;e:{i=s4;var l=e.current.memoizedState.isDehydrated;if(l&&(lb(e,s).flags|=256),2!==(s=lE(e,s,!1))){if(sY&&!l){e.errorRecoveryDisabledLanes|=o,s0|=o,i=4;break e}o=s5,s5=i,null!==o&&(null===s5?s5=o:s5.push.apply(s5,o))}i=s}if(o=!1,2!==i)continue}}if(1===i){lb(e,0),lg(e,t,0,!0);break}e:{switch(r=e,o=i){case 0:case 1:throw Error(a(345));case 4:if((4194048&t)!==t)break;case 6:lg(r,t,s2,!sZ);break e;case 2:s5=null;break;case 3:case 5:break;default:throw Error(a(329))}if((0x3c00000&t)===t&&10<(i=s8+300-eo())){if(lg(r,t,s2,!sZ),0!==eE(r,0,!0))break e;lo=t,r.timeoutHandle=uj(lm.bind(null,r,n,s5,le,s6,t,s2,s0,s3,sZ,o,"Throttled",-0,0),i);break e}lm(r,n,s5,le,s6,t,s2,s0,s3,sZ,o,null,-0,0)}}break}lX(e)}function lm(e,t,n,r,i,o,a,s,l,u,c,d,f,h){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||0x1002000==(0x1002000&d)){sM(t,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tb});var p,m,g=(0x3c00000&o)===o?s8-eo():(4194048&o)===o?s9-eo():0;if(null!==(p=d,m=g,p.stylesheets&&0===p.count&&ci(p,p.stylesheets),g=0<p.count||0<p.imgCount?function(e){var t=setTimeout(function(){if(p.stylesheets&&ci(p,p.stylesheets),p.unsuspend){var e=p.unsuspend;p.unsuspend=null,e()}},6e4+m);0<p.imgBytes&&0===ct&&(ct=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,s=i.duration;if(o&&s&&ub(a)){for(a=0,s=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&ub(d)&&(a+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,t+=8*(o+a)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var n=setTimeout(function(){if(p.waitingForImages=!1,0===p.count&&(p.stylesheets&&ci(p,p.stylesheets),p.unsuspend)){var e=p.unsuspend;p.unsuspend=null,e()}},(p.imgBytes>ct?50:800)+m);return p.unsuspend=e,function(){p.unsuspend=null,clearTimeout(t),clearTimeout(n)}}:null)){lo=o,e.cancelPendingCommit=g(lP.bind(null,e,t,o,n,r,i,a,s,l,c,d,null,f,h)),lg(e,o,a,!u);return}}lP(e,t,o,n,r,i,a,s,l)}function lg(e,t,n,r){t&=~s1,t&=~s0,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-ev(i),a=1<<o;r[o]=-1,i&=~a}0!==n&&eI(e,n,t)}function ly(){return 0!=(6&s$)||(lJ(0,!1),!1)}function lv(){if(null!==sW){if(0===sq)var e=sW.return;else e=sW,rq=rV=null,oc(e),ix=null,i_=0,e=sW;for(;null!==e;)a8(e.alternate,e),e=e.return;sW=null}}function lb(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,uT(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),lo=0,lv(),sH=e,sW=n=rl(e.current,null),sV=t,sq
vendor: 1,254 bytes, line 3
3=0,sK=null,sZ=!1,sG=eO(e,t),sY=!1,s3=s2=s1=s0=sQ=sJ=0,s5=s4=null,s6=!1,0!=(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-ev(r),o=1<<i;t|=e[i],r&=~o}return sX=t,n9(),n}function lw(e,t){i2=null,A.H=au,t===ic||t===ih?(t=ib(),sq=3):t===id?(t=ib(),sq=4):sq=t===aO?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,sK=t,null===sW&&(sJ=1,ax(e,rg(t,e.current)))}function lx(){var e=iq.current;return null===e||((4194048&sV)===sV?null===iK:((0x3c00000&sV)===sV||0!=(0x20000000&sV))&&e===iK)}function l_(){var e=A.H;return A.H=au,null===e?au:e}function lk(){var e=A.A;return A.A=sB,e}function lS(){sJ=4,sZ||(4194048&sV)!==sV&&null!==iq.current||(sG=!0),0==(0x7ffffff&sQ)&&0==(0x7ffffff&s0)||null===sH||lg(sH,sV,s2,!1)}function lE(e,t,n){var r=s$;s$|=2;var i=l_(),o=lk();(sH!==e||sV!==t)&&(le=null,lb(e,t)),t=!1;var a=sJ;e:for(;;)try{if(0!==sq&&null!==sW){var s=sW,l=sK;switch(sq){case 8:lv(),a=6;break e;case 3:case 2:case 9:case 6:null===iq.current&&(t=!0);var u=sq;if(sq=0,sK=null,lT(e,s,l,u),n&&sG){a=0;break e}break;default:u=sq,sq=0,sK=null,lT(e,s,l,u)}}(function(){for(;null!==sW;)lO(sW)})(),a=sJ;break}catch(t){lw(e,t)}return t&&e.shellSuspendCounter++,rq=rV=null,s$=r,A.H=i,A.A=o,null===sW&&(sH=null,
3sV=0,n9()),a}function lO(e){var t=a0(e.alternate,e,sX);e.memoizedProps=e.pendingProps,null===t?lC(e):sW=t}function lj(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=aF(n,t,t.pendingProps,t.type,void 0,sV);break;case 11:t=aF(n,t,t.pendingProps,t.type.render,t.ref,sV);break;case 5:oc(t);default:a8(n,t),t=a0(n,t=sW=ru(t,sX),sX)}e.memoizedProps=e.pendingProps,null===t?lC(e):sW=t}function lT(e,t,n,r){rq=rV=null,oc(t),ix=null,i_=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)&&rX(t,n,i,!0),null!==(n=iq.current)){switch(n.tag){case 31:case 13:return null===iK?lS():null===n.alternate&&0===sJ&&(sJ=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===ip?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),lB(e,r,i)),!1;case 22:return n.flags|=65536,r===ip?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),lB(e,r,i)),!1}throw Error(a(435,n.tag))}return lB(e,r,i),lS(),!1}if(rR)return null!==(t=iq.current)?(0==(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==rD&&rH(rg(e=Error(a(422),{cause:r}),n))):(r!==rD&&rH(rg(t=Error(a(423),{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=rg(r,n),i=ak(e.stateNode,r,i),iM(e,i),4!==sJ&&(sJ=2)),!1;var o=Error(a(520),{cause:r});if(o=rg(o,n),null===s4?s4=[o]:s4.push(o),4!==sJ&&(sJ=2),null===t)return!0;r=rg(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ak(n.stateNode,r,e),iM(n,e),!1;case 1:if(t=n.type,o=n.stateNode,0==(128&n.flags)&&("function"==typeof t.getDerivedStateFromError||null!==o&&"function"==typeof o.componentDidCatch&&(null===lt||!lt.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,aE(i=aS(i),e,n,r),iM(n,i),!1}n=n.return}while(null!==n)return!1}(e,i,t,n,sV)){sJ=1,ax(e,rg(n,e.current)),sW=null;return}}catch(t){if(null!==i)throw sW=i,t;sJ=1,ax(e,rg(n,e.current)),sW=null;return}32768&t.flags?(rR||1===r?e=!0:sG||0!=(0x20000000&sV)?e=!1:(sZ=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=iq.current)&&13===r.tag&&(r.flags|=16384)),lI(t,e)):lC(t)}function lC(e){var t=e;do{if(0!=(32768&t.flags))return void lI(t,sZ);e=t.return;var n=function(e,t,n){var r=t.pendingProps;switch(rC(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return a6(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),rZ(r6),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(rB(t)?a1(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,r$())),a6(t),null;case 26:var i=t.type,o=t.memoizedState;return null===e?(a1(t),null!==o?(a6(t),a3(t,o)):(a6(t),a2(t,i,null,r,n))):o?o!==e.memoizedState?(a1(t),a6(t),a3(t,o)):(a6(t),t.flags&=-0x1000001):((e=e.memoizedProps)!==r&&a1(t),a6(t),a2(t,i,e,r,n)),null;case 27:if(G(t),n=W.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&a1(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return a6(t),null}e=$.current,rB(t)?rz(t,e):(t.stateNode=e=uH(i,r,n),a1(t))}return a6(t),null;case 5:if(G(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&a1(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return a6(t),null}if(o=$.current,rB(t))rz(t,o);else{var s=u_(W.current);switch(o){case 1:o=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(o=s.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"==typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o="string"==typeof r.is?s.createElement(i,{is:r.is}
3):s.createElement(i)}}o[ez]=t,o[eF]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)o.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(t.stateNode=o,uv(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&a1(t)}}return a6(t),a2(t,t.type,null===e?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&a1(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(e=W.current,rB(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=rP))switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ez]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||um(e.nodeValue,n)))||rL(t,!0)}else(e=u_(e).createTextNode(r))[ez]=t,t.stateNode=e}return a6(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=rB(t),null!==n){if(null===e){if(!r)throw Error(a(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(a(557));e[ez]=t}else rU(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;a6(t),e=!1}else n=r$(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e){if(256&t.flags)return iJ(t),t;return iJ(t),null}if(0!=(128&t.flags))throw Error(a(558))}return a6(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=rB(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[ez]=t}else rU(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;a6(t),i=!1}else i=r$(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i){if(256&t.flags)return iJ(t),t;return iJ(t),null}}if(iJ(t),0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,i=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),a4(t,t.updateQueue),a6(t),null;case 4:return K(),null===e&&uo(t.stateNode.containerInfo),a6(t),null;case 10:return rZ(t.type),a6(t),null;case 19:if(B(iQ),null===(r=t.memoizedState))return a6(t),null;if(i=0!=(128&t.flags),null===(o=r.rendering))if(i)a5(r,!1);else{if(0!==sJ||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=i0(e))){for(t.flags|=128,a5(r,!1),t.updateQueue=e=o.updateQueue,a4(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)ru(n,e),n=n.sibling;return U(iQ,1&iQ.current|2),rR&&rO(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&eo()>s7&&(t.flags|=128,i=!0,a5(r,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=i0(o))){if(t.flags|=128,i=!0,t.updateQueue=e=e.updateQueue,a4(t,e),a5(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!rR)return a6(t),null}else 2*eo()-r.renderingStartTime>s7&&0x20000000!==n&&(t.flags|=128,i=!0,a5(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}if(null!==r.tail)return e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=eo(),e.sibling=null,n=iQ.current,U(iQ,i?1&n|2:1&n),rR&&rO(t,r.treeForkCount),e;return a6(t),null;case 22:case 23:return iJ(t),iV(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(a6(t),6&t.subtreeFlags&&(t.flags|=8192)):a6(t),null!==(n=t.updateQueue)&&a4(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&&B(ia),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),rZ(r6),a6(t),null;case 25:case 30:return null}throw Error(a(156,t.tag))}(t.alternate,t,sX);if(null!==n){sW=n;return}if(null!==(t=t.sibling)){sW=t;return}sW=t=e}
3while(null!==t)0===sJ&&(sJ=5)}function lI(e,t){do{var n=function(e,t){switch(rC(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return rZ(r6),K(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return G(t),null;case 31:if(null!==t.memoizedState){if(iJ(t),null===t.alternate)throw Error(a(340));rU()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(iJ(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));rU()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return B(iQ),null;case 4:return K(),null;case 10:return rZ(t.type),null;case 22:case 23:return iJ(t),iV(),null!==e&&B(ia),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return rZ(r6),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,sW=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){sW=e;return}sW=e=n}while(null!==e)sJ=6,sW=null}function lP(e,t,n,r,i,o,s,l,u){e.cancelPendingCommit=null;do lD();while(0!==ln)if(0!=(6&s$))throw Error(a(327));if(null!==t){if(t===e.current)throw Error(a(177));if(!function(e,t,n,r,i,o){var a=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 s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var c=31-ev(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var h=f[c];null!==h&&(h.lane&=-0x20000001)}n&=~d}0!==r&&eI(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~t))}(e,n,o=t.lanes|t.childLanes|n8,s,l,u),e===sH&&(sW=sH=null,sV=0),li=t,lr=e,lo=n,la=o,ls=i,ll=r,0!=(10256&t.subtreeFlags)||0!=(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,et(ec,function(){return lL(),null})):(e.callbackNode=null,e.callbackPriority=0),r=0!=(13878&t.flags),0!=(13878&t.subtreeFlags)||r){r=A.T,A.T=null,i=R.p,R.p=2,s=s$,s$|=4;try{!function(e,t){if(e=e.containerInfo,uw=cp,nD(e=nM(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,o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var l=0,u=-1,c=-1,d=0,f=0,h=e,p=null;t:for(;;){for(;h!==n||0!==o&&3!==h.nodeType||(u=l+o),h!==s||0!==r&&3!==h.nodeType||(c=l+r),3===h.nodeType&&(l+=h.nodeValue.length),null!==(i=h.firstChild);)p=h,h=i;for(;;){if(h===e)break t;if(p===n&&++d===o&&(u=l),p===s&&++f===r&&(c=l),null!==(i=h.nextSibling))break;
vendor: 3,659 bytes, line 3
3p=(h=p).parentNode}h=i}n=-1===u||-1===c?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ux={focusedElem:e,selectionRange:n},cp=!1,sp=t;null!==sp;)if(e=(t=sp).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,sp=e;else for(;null!==sp;){switch(s=(t=sp).alternate,e=t.flags,t.tag){case 0:if(0!=(4&e)&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(o=e[n]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!=(1024&e)&&null!==s){e=void 0,n=t,o=s.memoizedProps,s=s.memoizedState,r=n.stateNode;try{var m=ay(n.type,o);e=r.getSnapshotBeforeUpdate(m,s),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){lF(n,n.return,e)}}break;case 3:if(0!=(1024&e)){if(9===(n=(e=t.stateNode.containerInfo).nodeType))uM(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uM(e);break;default:e.textContent=""}}break;default:if(0!=(1024&e))throw Error(a(163))}if(null!==(e=t.sibling)){e.return=t.return,sp=e;break}sp=t.return}}(e,t,n)}finally{s$=s,R.p=i,A.T=r}}ln=1,lA(),lR(),lN()}}function lA(){if(1===ln){ln=0;var e=lr,t=li,n=0!=(13878&t.flags);if(0!=(13878&t.subtreeFlags)||n){n=A.T,A.T=null;var r=R.p;R.p=2;var i=s$;s$|=4;try{sE(t,e);var o=ux,a=nM(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&function e(t,n){return!!t&&!!n&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(s.ownerDocument.documentElement,s)){if(null!==l&&nD(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),p=s.textContent.length,m=Math.min(l.start,p),g=void 0===l.end?m:Math.min(l.end,p);!h.extend&&m>g&&(a=g,g=m,m=a);var y=nN(s,m),v=nN(s,g);if(y&&v&&(1!==h.rangeCount||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),h.removeAllRanges(),m>g?(h.addRange(b),h.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),h.addRange(b))}}}}for(d=[],h=s;h=h.parentNode;)1===h.nodeType&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}cp=!!uw,ux=uw=null}finally{s$=i,R.p=r,A.T=n}}e.current=t,ln=2}}function lR(){if(2===ln){ln=0;var e=lr,t=li,n=0!=(8772&t.flags);if(0!=(8772&t.subtreeFlags)||n){n=A.T,A.T=null;var r=R.p;R.p=2;var i=s$;s$|=4;try{sm(e,t.alternate,t)}finally{s$=i,R.p=r,A.T=n}}ln=3}}function lN(){if(4===ln||3===ln){ln=0,ei();var e=lr,t=li,n=lo,r=ll;0!=(10256&t.subtreeFlags)||0!=(10256&t.flags)?ln=5:(ln=0,li=lr=null,lM(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(lt=null),eN(n),t=t.stateNode,eg&&"function"==typeof eg.onCommitFiberRoot)try{eg.onCommitFiberRoot(em,t,void 0,128==(128&t.current.flags))}catch(e){}if(null!==r){t=A.T,i=R.p,R.p=2,A.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{A.T=t,R.p=i}}0!=(3&lo)&&lD(),lX(e),i=e.pendingLanes,0!=(261930&n)&&0!=(42&i)?e===lc?lu++:(lu=0,lc=e):lu=0,lJ(0,!1)}}function lM(e,t){0==(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,r9(t))}function lD(){return lA(),lR(),lN(),lL()}function lL(){if(5!==ln)return!1;var e=lr,t=la;la=0;var n=eN(lo),r=A.T,i=R.p;try{R.p=32>n?32:n,A.T=null,n=ls,ls=null;var o=lr,s=lo;if(ln=0,li=lr=null,lo=0,0!=(6&s$))throw Error(a(331));var l=s$;
3if(s$|=4,sz(o.current),sP(o,o.current,s,n),s$=l,lJ(0,!1),eg&&"function"==typeof eg.onPostCommitFiberRoot)try{eg.onPostCommitFiberRoot(em,o)}catch(e){}return!0}finally{R.p=i,A.T=r,lM(e,t)}}function lz(e,t,n){t=rg(n,t),t=ak(e.stateNode,t,2),null!==(e=iR(e,t,2))&&(eC(e,2),lX(e))}function lF(e,t,n){if(3===e.tag)lz(e,e,n);else for(;null!==t;){if(3===t.tag){lz(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===lt||!lt.has(r))){e=rg(n,e),null!==(r=iR(t,n=aS(2),2))&&(aE(n,r,t,e),eC(r,2),lX(r));break}}t=t.return}}function lB(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new sU;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)||(sY=!0,i.add(n),e=lU.bind(null,e,t,n),t.then(e,e))}function lU(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,sH===e&&(sV&n)===n&&(4===sJ||3===sJ&&(0x3c00000&sV)===sV&&300>eo()-s8?0==(2&s$)&&lb(e,0):s1|=n,s3===sV&&(s3=0)),lX(e)}function l$(e,t){0===t&&(t=ej()),null!==(e=rt(e,t))&&(eC(e,t),lX(e))}function lH(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),l$(e,n)}function lW(e,t){var n=0;switch(e.tag){case 31: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(a(314))}null!==r&&r.delete(t),l$(e,n)}var lV=null,lq=null,lK=!1,lZ=!1,lG=!1,lY=0;function lX(e){e!==lq&&null===e.next&&(null===lq?lV=lq=e:lq=lq.next=e),lZ=!0,lK||(lK=!0,uI(function(){0!=(6&s$)?et(es,lQ):l0()}))}function lJ(e,t){if(!lG&&lZ){lG=!0;do for(var n=!1,r=lV;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=0xc000095&(o=(1<<31-ev(42|e)+1)-1&(i&~(a&~s)))?0xc000095&o|1:o?2|o:0}0!==o&&(n=!0,l3(r,o))}else o=sV,0==(3&(o=eE(r,r===sH?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||eO(r,o)||(n=!0,l3(r,o));r=r.next}while(n)lG=!1}}function lQ(){l0()}function l0(){lZ=lK=!1;var e,t=0;0===lY||((e=window.event)&&"popstate"===e.type?e===uO||(uO=e,0):(uO=null,1))||(t=lY);for(var n=eo(),r=null,i=lV;null!==i;){var o=i.next,a=l1(i,n);0===a?(i.next=null,null===r?lV=o:r.next=o,null===o&&(lq=r)):(r=i,(0!==t||0!=(3&a))&&(lZ=!0)),i=o}0!==ln&&5!==ln||lJ(t,!1),0!==lY&&(lY=0)}function l1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-0x3c00001&e.pendingLanes;0<o;){var a=31-ev(o),s=1<<a,l=i[a];-1===l?(0==(s&n)||0!=(s&r))&&(i[a]=function(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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}}(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(t=sH,n=sV,n=eE(e,e===t?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===sq||9===sq)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&en(r),e.callbackNode=null,e.callbackPriority=0;if(0==(3&n)||eO(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&en(r),eN(n)){case 2:case 8:n=eu;break;case 32:default:n=ec;break;case 0x10000000:n=ef}return n=et(n,r=l2.bind(null,e)),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&en(r),e.callbackPriority=2,e.callbackNode=null,2}function l2(e,t){if(0!==ln&&5!==ln)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(lD()&&e.callbackNode!==n)return null;var r=sV;return 0===(r=eE(e,e===sH?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(lp(e,r,t),l1(e,eo()),null!=e.callbackNode&&e.callbackNode===n?l2.bind(null,e):null)}function l3(e,t){if(lD())return null;lp(e,t,!0)}function l4(){if(0===lY){var e=it;0===e&&(e=ex,0==(261888&(ex<<=1))&&(ex=256)),lY=e}return lY}function l5(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:tv(""+e)}function l6(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 l8=0;l8<n2.length;l8++){var l9=n2[l8];n3(l9.toLowerCase(),"on"+(l9[0].toUpperCase()+l9.slice(1)))}n3(nZ,"onAnimationEnd"),n3(nG,"onAnimationIteration"),n3(nY,"onAnimationStart"),n3("dblclick","onDoubleClick"),n3("focusin","onFocus"),n3("focusout","onBlur"),n3(nX,"onTransitionRun"),n3(nJ,"onTransitionStart"),n3(nQ,"onTransitionCancel"),n3(n0,"onTransitionEnd"),e1("onMouseEnter",["mouseout","mouseover"]),e1("onMouseLeave",["mouseout","mouseover"]),e1("onPointerEnter",["pointerout","pointerover"]),e1("onPointerLeave",["pointerout","pointerover"]),e0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),e0("onSelect","focusout contextmenu dragend focu
3sin keydown keyup mousedown mouseup selectionchange".split(" ")),e0("onBeforeInput",["compositionend","keypress","textInput","paste"]),e0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),e0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),e0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var l7="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(" "),ue=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(l7));function ut(e,t){t=0!=(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 a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(e){n4(e)}i.currentTarget=null,o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(e){n4(e)}i.currentTarget=null,o=l}}}}function un(e,t){var n=t[eU];void 0===n&&(n=t[eU]=new Set);var r=e+"__bubble";n.has(r)||(ua(t,e,2,!1),n.add(r))}function ur(e,t,n){var r=0;t&&(r|=4),ua(n,e,r,t)}var ui="_reactListening"+Math.random().toString(36).slice(2);function uo(e){if(!e[ui]){e[ui]=!0,eJ.forEach(function(t){"selectionchange"!==t&&(ue.has(t)||ur(t,!1,e),ur(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ui]||(t[ui]=!0,ur("selectionchange",!1,t))}}function ua(e,t,n,r){switch(cx(t)){case 2:var i=cm;break;case 8:i=cg;break;default:i=cy}n=i.bind(null,t,n,e),i=void 0,tC&&("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 us(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&a.stateNode.containerInfo===i)return;a=a.return}for(;null!==s;){if(null===(a=eK(s)))return;if(5===(u=a.tag)||6===u||26===u||27===u){r=o=a;continue e}s=s.parentNode}}r=r.return}tO(function(){var r=o,i=tx(n),a=[];e:{var s=n1.get(e);if(void 0!==s){var u=tZ,c=e;switch(e){case"keypress":if(0===tM(n))break e;case"keydown":case"keyup":u=t7;break;case"focusin":c="focus",u=t0;break;case"focusout":c="blur",u=t0;break;case"beforeblur":case"afterblur":u=t0;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":u=tJ;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=tQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=nt;break;case nZ:case nG:case nY:u=t1;break;case n0:u=nn;break;case"scroll":case"scrollend":u=tY;break;case"wheel":u=nr;break;case"copy":case"cut":case"paste":u=t2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=ne;break;case"toggle":case"beforetoggle":u=ni}var d=0!=(4&t),f=!d&&("scroll"===e||"scrollend"===e),h=d?null!==s?s+"Capture":null:s;d=[];for(var p,m=r;null!==m;){var g=m;if(p=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===p||null===h||null!=(g=tj(m,h))&&d.push(ul(m,g,p)),f)break;m=m.return}0<d.length&&(s=new u(s,c,null,n,i),a.push({event:s,listeners:d}))}}if(0==(7&t)){if((s="mouseover"===e||"pointerover"===e,u="mouseout"===e||"pointerout"===e,!(s&&n!==tw&&(c=n.relatedTarget||n.fromElement)&&(eK(c)||c[eB])))&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(c=n.relatedTarget||n.toElement,u=r,null!==(c=c?eK(c):null)&&(f=l(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=tJ,g="onMouseLeave",h="onMouseEnter",m="mou
3se",("pointerout"===e||"pointerover"===e)&&(d=ne,g="onPointerLeave",h="onPointerEnter",m="pointer"),f=null==u?s:eG(u),p=null==c?s:eG(c),(s=new d(g,m+"leave",u,n,i)).target=f,s.relatedTarget=p,g=null,eK(i)===r&&((d=new d(h,m+"enter",c,n,i)).target=p,d.relatedTarget=f,g=d),f=g,u&&c)t:{for(d=uc,h=u,m=c,p=0,g=h;g;g=d(g))p++;g=0;for(var y,v=m;v;v=d(v))g++;for(;0<p-g;)h=d(h),p--;for(;0<g-p;)m=d(m),g--;for(;p--;){if(h===m||null!==m&&h===m.alternate){d=h;break t}h=d(h),m=d(m)}d=null}else d=null;null!==u&&ud(a,s,u,d,!1),null!==c&&null!==f&&ud(a,f,c,d,!0)}e:{if("select"===(u=(s=r?eG(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var b=nx;else if(nm(s))if(n_)b=nI;else{b=nT;var w=nj}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)?b=nC:r&&tm(r.elementType)&&(b=nx);if(b&&(b=b(e,r))){ng(a,b,n,i);break e}w&&w(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&ts(s,"number",s.value)}switch(w=r?eG(r):window,e){case"focusin":(nm(w)||"true"===w.contentEditable)&&(nz=w,nF=r,nB=null);break;case"focusout":nB=nF=nz=null;break;case"mousedown":nU=!0;break;case"contextmenu":case"mouseup":case"dragend":nU=!1,n$(a,n,i);break;case"selectionchange":if(nL)break;case"keydown":case"keyup":n$(a,n,i)}if(na)t:{switch(e){case"compositionstart":var x="onCompositionStart";break t;case"compositionend":x="onCompositionEnd";break t;case"compositionupdate":x="onCompositionUpdate";break t}x=void 0}else nh?nd(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(nu&&"ko"!==n.locale&&(nh||"onCompositionStart"!==x?"onCompositionEnd"===x&&nh&&(y=tN()):(tA="value"in(tP=i)?tP.value:tP.textContent,nh=!0)),0<(w=uu(r,x)).length&&(x=new t3(x,e,null,n,i),a.push({event:x,listeners:w}),y?x.data=y:null!==(y=nf(n))&&(x.data=y))),(y=nl?function(e,t){switch(e){case"compositionend":return nf(t);case"keypress":if(32!==t.which)return null;return nc=!0," ";case"textInput":return" "===(e=t.data)&&nc?null:e;default:return null}}(e,n):function(e,t){if(nh)return"compositionend"===e||!na&&nd(e,t)?(e=tN(),tR=tA=tP=null,nh=!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 nu&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(x=uu(r,"onBeforeInput")).length&&(w=new t3("onBeforeInput","beforeinput",null,n,i),a.push({event:w,listeners:x}),w.data=y);var _=e;if("submit"===_&&r&&r.stateNode===i){var k=l5((i[eF]||null).action),S=n.submitter;S&&null!==(_=(_=S[eF]||null)?l5(_.formAction):S.getAttribute("formAction"))&&(k=_,S=null);var E=new tZ("action","action",null,n,i);a.push({event:E,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(0!==lY){var e=S?l6(i,S):new FormData(i);o5(r,{pending:!0,data:e,method:i.method,action:k},null,e)}}else"function"==typeof k&&(E.preventDefault(),o5(r,{pending:!0,data:e=S?l6(i,S):new FormData(i),method:i.method,action:k},k,e))},currentTarget:i}]})}}ut(a,t)})}function ul(e,t,n){return{instance:e,listener:t,currentTarget:n}}function uu(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=tj(e,n))&&r.unshift(ul(e,i,o)),null!=(i=tj(e,t))&&r.push(ul(e,i,o))),3===e.tag)return r;e=e.return}return[]}function uc(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag&&27!==e.tag)return e||null}function ud(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,i?null!=(u=tj(n,o))&&a.unshift(ul(n,u,l)):i||null!=(u=tj(n,o))&&a.push(ul(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var uf=/\r\n?/g,uh=/\u0000|\uFFFD/g;function up(e){return("string"==typeof e?e:""+e).replace(uf,"\n").replace(uh,"")}function um(e,t){return t=up(t),up(e)===t}function ug(e,t,n,r,i,o){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||td(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&td(e,""+r);break;case"className":e6(e,"class",r);break;case"tabIndex":e6(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":e6(e,n,r);break;case"style":tp(e,r,o);break;case"data":if("object"!==t){e6(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)||null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=tv(""+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&&ug(e,t,"name",i.name,i,null),ug(e,t,"formEncType",i.formEncType,i,null),ug(e,t,"formMethod",i.formMethod,i,null),ug(e,t,"formTarget",i.formTarget,i,null)):(ug(e,t,"encType",i.encType,i,null),ug(e,t,"method",i.method,i,null),ug(e,t,"target",i.target,i,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=tv(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=tb);break;case"onScroll":null!=r&&un("scroll",e);break;case"onScrollEnd":null!=r&&un("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(a(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":case"innerText":case"textContent":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=tv(""+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"playsInl
3ine":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":un("beforetoggle",e),un("toggle",e),e5(e,"popover",r);break;case"xlinkActuate":e8(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":e8(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":e8(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":e8(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":e8(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":e8(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":e8(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":e8(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":e8(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":e5(e,"is",r);break;default:2<n.length&&("o"===n[0]||"O"===n[0])&&("n"===n[1]||"N"===n[1])||e5(e,n=tg.get(n)||n,r)}}function uy(e,t,n,r,i,o){switch(n){case"style":tp(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(a(60));e.innerHTML=n}}break;case"children":"string"==typeof r?td(e,r):("number"==typeof r||"bigint"==typeof r)&&td(e,""+r);break;case"onScroll":null!=r&&un("scroll",e);break;case"onScrollEnd":null!=r&&un("scrollend",e);break;case"onClick":null!=r&&(e.onclick=tb);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:if(!eQ.hasOwnProperty(n))e:{if("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[eF]||null)?o[n]:null)&&e.removeEventListener(t,o,i),"function"==typeof r)){"function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:!0===r?e.setAttribute(n,""):e5(e,n,r)}}}function uv(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":un("error",e),un("load",e);var r,i=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:ug(e,t,r,s,n,null)}}o&&ug(e,t,"srcSet",n.srcSet,n,null),i&&ug(e,t,"src",n.src,n,null);return;case"input":un("invalid",e);var l=r=s=o=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":o=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(a(137,t));break;default:ug(e,t,i,d,n,null)}}ta(e,r,l,u,c,s,o,!1);return;case"select":for(o in un("invalid",e),i=s=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:ug(e,t,o,l,n,null)}t=r,n=s,e.multiple=!!i,null!=t?tl(e,!!i,t,!1):null!=n&&tl(e,!!i,n,!0);return;case"textarea":for(s in un("invalid",e),r=o=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(a(91));break;default:ug(e,t,s,l,n,null)}tc(e,i,o,r);return;case"option":for(u in n)n.hasOwnProperty(u)&&null!=(i=n[u])&&("selected"===u?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:ug(e,t,u,i,n,null));return;case"dialog":un("beforetoggle",e),un("toggle",e),un("cancel",e),un("close",e);break;case"iframe":case"object":un("load",e);break;case"video":case"audio":for(i=0;i<l7.length;i++)un(l7[i],e);break;case"image":un("error",e),un("load",e);break;case"details":un("toggle",e);break;case"embed":case"source":case"link":un("error",e),un("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(a(137,t));default:ug(e,t,c,i,n,null)}return;default:if(tm(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(i=n[d])&&uy(e,t,d,i,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(i=n[l])&&ug(e,t,l,i,n,null)}function ub(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var uw=null,ux=null;
vendor: 3,883 bytes, line 3
3function u_(e){return 9===e.nodeType?e:e.ownerDocument}function uk(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 uS(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 uE(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 uO=null,uj="function"==typeof setTimeout?setTimeout:void 0,uT="function"==typeof clearTimeout?clearTimeout:void 0,uC="function"==typeof Promise?Promise:void 0,uI="function"==typeof queueMicrotask?queueMicrotask:void 0!==uC?function(e){return uC.resolve(null).then(e).catch(uP)}:uj;function uP(e){setTimeout(function(){throw e})}function uA(e){return"head"===e}function uR(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===r){e.removeChild(i),cF(t);return}r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)uW(e.ownerDocument.documentElement);else if("head"===n){uW(n=e.ownerDocument.head);for(var o=n.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[eV]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=a}}else"body"===n&&uW(e.ownerDocument.body);n=i}while(n)cF(t)}function uN(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data))if(0===e)break;else e--;else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function uM(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":uM(n),eq(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function uD(e,t){for(;8!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t||null===(e=uF(e.nextSibling)))return null;return e}function uL(e){return"$?"===e.data||"$~"===e.data}function uz(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function uF(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||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var uB=null;function uU(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return uF(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function u$(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function uH(e,t,n){switch(t=u_(n),e){case"html":if(!(e=t.documentElement))throw Error(a(452));return e;case"head":if(!(e=t.head))throw Error(a(453));return e;case"body":if(!(e=t.body))throw Error(a(454));return e;default:throw Error(a(451))}}function uW(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);eq(e)}var uV=new Map,uq=new Set;function uK(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var uZ=R.d;R.d={f:function(){var e=uZ.f(),t=ly();return e||t},r:function(e){var t=eZ(e);null!==t&&5===t.tag&&"form"===t.type?o8(t):uZ.r(e)},D:function(e){uZ.D(e),uY("dns-prefetch",e,null)},C:function(e,t){uZ.C(e,t),uY("preconnect",e,t)}
vendor: 5,220 bytes, line 3
3,L:function(e,t,n){if(uZ.L(e,t,n),uG&&e&&t){var r='link[rel="preload"][as="'+ti(t)+'"]';"image"===t&&n&&n.imageSrcSet?(r+='[imagesrcset="'+ti(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(r+='[imagesizes="'+ti(n.imageSizes)+'"]')):r+='[href="'+ti(e)+'"]';var i=r;switch(t){case"style":i=uJ(e);break;case"script":i=u1(e)}uV.has(i)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),uV.set(i,e),null!==uG.querySelector(r)||"style"===t&&uG.querySelector(uQ(i))||"script"===t&&uG.querySelector(u2(i))||(uv(t=uG.createElement("link"),"link",e),eX(t),uG.head.appendChild(t)))}},m:function(e,t){if(uZ.m(e,t),uG&&e){var n=t&&"string"==typeof t.as?t.as:"script",r='link[rel="modulepreload"][as="'+ti(n)+'"][href="'+ti(e)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=u1(e)}if(!uV.has(i)&&(e=f({rel:"modulepreload",href:e},t),uV.set(i,e),null===uG.querySelector(r))){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(uG.querySelector(u2(i)))return}uv(n=uG.createElement("link"),"link",e),eX(n),uG.head.appendChild(n)}}},X:function(e,t){if(uZ.X(e,t),uG&&e){var n=eY(uG).hoistableScripts,r=u1(e),i=n.get(r);i||((i=uG.querySelector(u2(r)))||(e=f({src:e,async:!0},t),(t=uV.get(r))&&u6(e,t),eX(i=uG.createElement("script")),uv(i,"link",e),uG.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}},S:function(e,t,n){if(uZ.S(e,t,n),uG&&e){var r=eY(uG).hoistableStyles,i=uJ(e);t=t||"default";var o=r.get(i);if(!o){var a={loading:0,preload:null};if(o=uG.querySelector(uQ(i)))a.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=uV.get(i))&&u5(e,n);var s=o=uG.createElement("link");eX(s),uv(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){a.loading|=1}),s.addEventListener("error",function(){a.loading|=2}),a.loading|=4,u4(o,t,uG)}o={type:"stylesheet",instance:o,count:1,state:a},r.set(i,o)}}},M:function(e,t){if(uZ.M(e,t),uG&&e){var n=eY(uG).hoistableScripts,r=u1(e),i=n.get(r);i||((i=uG.querySelector(u2(r)))||(e=f({src:e,async:!0,type:"module"},t),(t=uV.get(r))&&u6(e,t),eX(i=uG.createElement("script")),uv(i,"link",e),uG.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}};var uG="u"<typeof document?null:document;function uY(e,t,n){if(uG&&"string"==typeof t&&t){var r=ti(t);r='link[rel="'+e+'"][href="'+r+'"]',"string"==typeof n&&(r+='[crossorigin="'+n+'"]'),uq.has(r)||(uq.add(r),e={rel:e,crossOrigin:n,href:t},null===uG.querySelector(r)&&(uv(t=uG.createElement("link"),"link",e),eX(t),uG.head.appendChild(t)))}}function uX(e,t,n,r){var i=(i=W.current)?uK(i):null;if(!i)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=uJ(n.href),(r=(n=eY(i).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=uJ(n.href);var o,s,l,u,c=eY(i).hoistableStyles,d=c.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=i.querySelector(uQ(e)))&&!c._p&&(d.instance=c,d.state.loading=5),uV.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},uV.set(e,n),c||(o=i,s=e,l=n,u=d.state,o.querySelector('link[rel="preload"][as="style"]['+s+"]")?u.loading=1:(u.preload=s=o.createElement("link"),s.addEventListener("load",function(){return u.loading|=1}),s.addEventListener("error",function(){return u.loading|=2}),uv(s,"link",l),eX(s),o.head.appendChild(s))))),t&&null===r)throw Error(a(528,""));return d}if(t&&null!==r)throw Error(a(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=u1(n),(r=(n=eY(i).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(a(444,e))}}function uJ(e){return'href="'+ti(e)+'"'}function uQ(e){return'link[rel="stylesheet"]['+e+"]"}function u0(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function u1(e){return'[src="'+ti(e)+'"]'}function u2(e){return"script[async]"+e}function u3(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ti(n.href)+'"]');if(r)return t.instance=r,eX(r),r;var i=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return eX(r=(e.ownerDocument||e).createElement("style")),uv(r,"style",i),u4(r,n.precedence,e),t.instance=r;case"stylesheet":i=uJ(n.href);var o=e.querySelector(uQ(i));if(o)return t.state.loading|=4,t.instance=o,eX(o),o;r=u0(n),(i=uV.get(i))&&u5(r,i),eX(o=(e.ownerDocument||e).createElement("link"));var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),uv(o,"link",r),t.state.loading|=4,u4(o,n.precedence,e),t.instance=o;
3case"script":if(o=u1(n.src),i=e.querySelector(u2(o)))return t.instance=i,eX(i),i;return r=n,(i=uV.get(o))&&u6(r=f({},n),i),eX(i=(e=e.ownerDocument||e).createElement("script")),uv(i,"link",r),e.head.appendChild(i),t.instance=i;case"void":return null;default:throw Error(a(443,t.type))}return"stylesheet"===t.type&&0==(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,u4(r,n.precedence,e)),t.instance}function u4(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,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function u5(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function u6(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var u8=null;function u9(e,t,n){if(null===u8){var r=new Map,i=u8=new Map;i.set(n,r)}else(r=(i=u8).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[eV]||o[ez]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var a=o.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function u7(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function ce(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var ct=0;function cn(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages)){if(this.stylesheets)ci(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cr=null;function ci(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,cr=new Map,t.forEach(co,e),cr=null,cn.call(e))}function co(e,t){if(!(4&t.state.loading)){var n=cr.get(e);if(n)var r=n.get(null);else{n=new Map,cr.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];("LINK"===a.nodeName||"not all"!==a.getAttribute("media"))&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(i=t.instance).getAttribute("data-precedence"),(o=n.get(a)||r)===r&&n.set(null,i),n.set(a,i),this.count++,r=cn.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 ca={$$typeof:w,Provider:null,Consumer:null,_currentValue:N,_currentValue2:N,_threadCount:0};function cs(e,t,n,r,i,o,a,s,l){this.tag=1,this.containerInfo=e,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=eT(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eT(0),this.hiddenUpdates=eT(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function cl(e,t,n,r,i,o,a,s,l,u,c,d){return e=new cs(e,t,n,a,l,u,c,d,s),t=1,!0===o&&(t|=24),o=ra(3,null,null,t),e.current=o,o.stateNode=e,t=r8(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},iI(o),e}function cu(e,t,n,r,i,o){i=i?ri:ri,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=iR(e,r,t))&&(lh(n,e,t),iN(n,e,t))}function cc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function cd(e,t){cc(e,t),(e=e.alternate)&&cc(e,t)}function cf(e){if(13===e.tag||31===e.tag){var t=rt(e,0x4000000);null!==t&&lh(t,e,0x4000000),cd(e,0x4000000)}}function ch(e){if(13===e.tag||31===e.tag){var t=ld(),n=rt(e,t=eR(t));null!==n&&lh(n,e,t),cd(e,t)}}var cp=!0;function cm(e,t,n,r){var i=A.T;A.T=null;var o=R.p;try{R.p=2,cy(e,t,n,r)}finally{R.p=o,A.T=i}}function cg(e,t,n,r){var i=A.T;A.T=null;var o=R.p;try{R.p=8,cy(e,t,n,r)}finally{R.p=o,A.T=i}}function cy(e,t,n,r){if(cp){var i=cv(r);
vendor: 16,384 bytes, line 3
3if(null===i)us(e,t,r,cb,n),cI(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return ck=cP(ck,e,t,n,r,i),!0;case"dragenter":return cS=cP(cS,e,t,n,r,i),!0;case"mouseover":return cE=cP(cE,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return cO.set(o,cP(cO.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,cj.set(o,cP(cj.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(cI(e,r),4&t&&-1<cC.indexOf(e)){for(;null!==i;){var o=eZ(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=eS(o.pendingLanes);if(0!==a){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-ev(a);s.entanglements[1]|=l,a&=~l}lX(o),0==(6&s$)&&(s7=eo()+500,lJ(0,!1))}}break;case 31:case 13:null!==(s=rt(o,2))&&lh(s,o,2),ly(),cd(o,2)}if(null===(o=cv(r))&&us(e,t,r,cb,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else us(e,t,r,null,n)}}function cv(e){return cw(e=tx(e))}var cb=null;function cw(e){if(cb=null,null!==(e=eK(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=u(t)))return e;e=null}else if(31===n){if(null!==(e=c(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 cb=e,null}function cx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":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(ea()){case es:return 2;case eu:return 8;case ec:case ed:return 32;case ef:return 0x10000000;default:return 32}default:return 32}}var c_=!1,ck=null,cS=null,cE=null,cO=new Map,cj=new Map,cT=[],cC="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 cI(e,t){switch(e){case"focusin":case"focusout":ck=null;break;case"dragenter":case"dragleave":cS=null;break;case"mouseover":case"mouseout":cE=null;break;case"pointerover":case"pointerout":cO.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cj.delete(t.pointerId)}}function cP(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=eZ(t))&&cf(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function cA(e){var t=eK(e.target);if(null!==t){var n=l(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=u(n))){e.blockedOn=t,eD(e.priority,function(){ch(n)});return}}else if(31===t){if(null!==(t=c(n))){e.blockedOn=t,eD(e.priority,function(){ch(n)});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cR(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=cv(e.nativeEvent);if(null!==n)return null!==(t=eZ(n))&&cf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);tw=r,n.target.dispatchEvent(r),tw=null,t.shift()}return!0}function cN(e,t,n){cR(e)&&n.delete(t)}function cM(){c_=!1,null!==ck&&cR(ck)&&(ck=null),null!==cS&&cR(cS)&&(cS=null),null!==cE&&cR(cE)&&(cE=null),cO.forEach(cN),cj.forEach(cN)}function cD(e,t){e.blockedOn===t&&(e.blockedOn=null,c_||(c_=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,cM)))}var cL=null;function cz(e){cL!==e&&(cL=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){cL===e&&(cL=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===cw(r||n))continue;else break;var o=eZ(n);null!==o&&(e.splice(t,3),t-=3,o5(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function cF(e){function t(t){return cD(t,e)}null!==ck&&cD(ck,e),null!==cS&&cD(cS,e),null!==cE&&cD(cE,e),cO.forEach(t),cj.forEach(t);for(var n=0;n<cT.length;n++){var r=cT[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<cT.length&&null===(n=cT[0]).blockedOn;)cA(n),null===n.blockedOn&&cT.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[eF]||null;if("function"==typeof o)a||cz(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[eF]||null)s=a.formAction;else if(null!==cw(i))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),cz(n)}}}function cB(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==i&&(i(),i=null)}}}function cU(e){this._internalRoot=e}function c$(e){this._internalRoot=e}c$.prototype.render=cU.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));cu(t.current,ld(),e,t,null,null)},c$.prototype.unmount=cU.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(e.current,2,null,e,null,null),ly(),t[eB]=null}},c$.prototype.unstable_scheduleHydration=function(e){if(e){var t=eM();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cT.length&&0!==t&&t<cT[n].priority;n++);cT.splice(n,0,e),0===n&&cA(e)}};var cH=i.version;if("19.2.8"!==cH)throw Error(a(527,cH,"19.2.8"));if(R.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,e=Object.keys(e).join(",")))}return null===(e=null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(a(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 d(i),e;if(o===r)return d(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(t))?function e(t){var n=t.tag;if(5===n||26===n||27===n||6===n)return t;for(t=t.child;null!==t;){if(null!==(n=e(t)))return n;t=t.sibling}return null}(e):null)?null:e.stateNode},"u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cW=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cW.isDisabled&&cW.supportsFiber)try{em=cW.inject({bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.8"}),eg=cW}catch(e){}}tF=function(e,t){if(!s(e))throw Error(a(299));var n=!1,r="",i=av,o=ab,l=aw;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)),t=cl(e,1,!1,null,null,n,r,null,i,o,l,cB),e[eB]=t.current,uo(e),new cU(t)},tB=function(e,t,n){if(!s(e))throw Error(a(299));var r,i=!1,o="",l=av,u=ab,c=aw,d=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onUncaughtError&&(l=n.onUncaughtError),void 0!==n.onCaughtError&&(u=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(d=n.formState)),(t=cl(e,1,!0,t,null!=n?n:null,i,o,d,l,u,c,cB)).context=(r=null,ri),n=t.current,(o=iA(i=eR(i=ld()))).callback=null,iR(n,o,i),n=i,t.current.lanes=n,eC(t,n),lX(t),e[eB]=t.current,uo(e),new c$(t)},tU="19.2.8"}),eu("clk2u",function(e,t){"use strict";e.exports=el("epnUP")}),eu("epnUP",function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,i=e[r];if(0<o(i,t))e[r]=t,e[n]=i,n=r;else break}}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;for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+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[s]=n,r=s);else if(u<i&&0>o(c,n))e[r]=c,e[u]=n,r=u;else break}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(M(e.exports,"unstable_now",()=>a,e=>a=e),M(e.exports,"unstable_IdlePriority",()=>s,e=>s=e),M(e.exports,"unstable_ImmediatePriority",()=>l,e=>l=e),M(e.exports,"unstable_LowPriority",()=>u,e=>u=e),M(e.exports,"unstable_NormalPriority",()=>c,e=>c=e),M(e.exports,"unstable_Profiling",()=>d,e=>d=e),M(e.exports,"unstable_UserBlockingPriority",()=>f,e=>f=e),M(e.exports,"unstable_cancelCallback",()=>h,e=>h=e),M(e.exports,"unstable_forceFrameRate",()=>p,e=>p=e),M(e.exports,"unstable_getCurrentPriorityLevel",()=>m,e=>m=e),M(e.exports,"unstable_next",()=>g,e=>g=e),M(e.exports,"unstable_requestPaint",()=>y,e=>y=e),M(e.exports,"unstable_runWithPriority",()=>v,e=>v=e),M(e.exports,"unstable_scheduleCallback",()=>b,e=>b=e),M(e.exports,"unstable_shouldYield",()=>w,e=>w=e),M(e.exports,"unstable_wrapCallback",()=>x,e=>x=e),a=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a,s,l,u,c,d,f,h,p,m,g,y,v,b,w,x,_,k=performance;a=function(){return k.now()}}else{var S=Date,E=S.now();a=function(){return S.now()-E}}var O=[],j=[],T=1,C=null,I=3,P=!1,A=!1,R=!1,N=!1,D="function"==typeof setTimeout?setTimeout:null,z="function"==typeof clearTimeout?clearTimeout:null,F="u">typeof setImmediate?setImmediate:null;function B(e){for(var t=r(j);null!==t;){if(null===t.callback)i(j);else if(t.startTime<=e)i(j),t.sortIndex=t.expirationTime,n(O,t);else break;t=r(j)}}function U(e){if(R=!1,B(e),!A)if(null!==r(O))A=!0,$||($=!0,_());else{var t=r(j);null!==t&&Y(U,t.startTime-e)}}var $=!1,H=-1,W=5,V=-1;function q(){return!!N||!(a()-V<W)}function K(){if(N=!1,$){var e=a();V=e;var t=!0;try{e:{A=!1,R&&(R=!1,z(H),H=-1),P=!0;var n=I;try{t:{for(B(e),C=r(O);null!==C&&!(C.expirationTime>e&&q());){var o=C.callback;if("function"==typeof o){C.callback=null,I=C.priorityLevel;var s=o(C.expirationTime<=e);if(e=a(),"function"==typeof s){C.callback=s,B(e),t=!0;break t}C===r(O)&&i(O),B(e)}else i(O);C=r(O)}if(null!==C)t=!0;else{var l=r(j);null!==l&&Y(U,l.startTime-e),t=!1}}break e}finally{C=null,I=n,P=!1}}}finally{t?_():$=!1}}}if("function"==typeof F)_=function(){F(K)};else if("u">typeof MessageChannel){var Z=new MessageChannel,G=Z.port2;Z.port1.onmessage=K,_=function(){G.postMessage(null)}}else _=function(){D(K,0)};function Y(e,t){H=D(function(){e(a())},t)}s=5,l=1,u=4,c=3,d=null,f=2,h=function(e){e.callback=null},p=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"):W=0<e?Math.floor(1e3/e):5},m=function(){return I},g=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},y=function(){N=!0},v=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},b=function(e,t,i){var o=a();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?o+i:o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=0x3fffffff;break;case 4:s=1e4;break;default:s=5e3}return s=i+s,e={id:T++,callback:t,priorityLevel:e,startTime:i,expirationTime:s,sortIndex:-1},i>o?(e.sortIndex=i,n(j,e),null===r(O)&&e===r(j)&&(R?(z(H),H=-1):R=!0,Y(U,i-o))):(e.sortIndex=s,n(O,e),A||P||(A=!0,$||($=!0,_()))),e},w=q,x=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}}),eu("8NFma",function(e,t){"use strict";e.exports=el("jMs9J")}),eu("jMs9J",function(e,t){"use strict";M(e.exports,"Activity",()=>n,e=>n=e),M(e.exports,"Children",()=>r,e=>r=e),M(e.exports,"Component",()=>i,e=>i=e),M(e.exports,"Fragment",()=>o,e=>o=e),M(e.exports,"Profiler",()=>a,e=>a=e),M(e.exports,"PureComponent",()=>s,e=>s=e),M(e.exports,"StrictMode",()=>l,e=>l=e),M(e.exports,"Suspense",()=>u,e=>u=e),M(e.exports,"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",()=>c,e=>c=e),M(e.exports,"__COMPILER_RUNTIME",()=>d,e=>d=e),M(e.exports,"cache",()=>f,e=>f=e),M(e.exports,"cacheSignal",()=>h,e=>h=e),M(e.exports,"cloneElement",()=>p,e=>p=e),M(e.exports,"createContext",()=>m,e=>m=e),M(e.exports,"createElement",()=>g,e=>g=e),M(e.exports,"createRef",()=>y,e=>y=e),M(e.exports,"forwardRef",()=>v,e=>v=e),M(e.exports,"isValidElement",()=>b,e=>b=e),M(e.exports,"lazy",()=>w,e=>w=e),M(e.exports,"memo",()=>x,e=>x=e),M(e.exports,"startTransition",()=>_,e=>_=e),M(e.exports,"unstable_useCacheRefresh",()=>k,e=>k=e),M(e.exports,"use",()=>S,e=>S=e),M(e.exports,"useActionState",()=>E,e=>E=e),M(e.exports,"useCallback",()=>O,e=>O=e),M(e.exports,"useContext",()=>j,e=>j=e),M(e.exports,"useDebugValue",()=>T,e=>T=e),M(e.exports,"useDeferredValue",()=>C,e=>C=e),M(e.exports,"useEffect",()=>I,e=>I=e),M(e.exports,"useEffectEvent",()=>P,e=>P=e),M(e.exports,"useId",()=>A,e=>A=e),M(e.exports,"useImperativeHandle",()=>R,e=>R=e),M(e.exports,"useInsertionEffect",()=>N,e=>N=e),M(e.exports,"useLayoutEffect",()=>D,e=>D=e),M(e.exports,"useMemo",()=>z,e=>z=e),M(e.exports,"useOptimistic",()=>F,e=>F=e),M(e.exports,"useReducer",()=>B,e=>B=e),M(e.exports,"useRef",()=>U,e=>U=e),M(e.exports,"useState",()=>$,e=>$=e),M(e.exports,"useSyncExternalStore",()=>H,e=>H=e),M(e.exports,"useTransition",()=>W,e=>W=e),M(e.exports,"version",()=>V,e=>V=e);var n,r,i,o,a,s,l,u,c,d,f,h,p,m,g,y,v,b,w,x,_,k,S,E,O,j,T,C,I,P,A,R,N,D,z,F,B,U,$,H,W,V,q=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),J=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),et=Symbol.for("react.memo"),en=Symbol.for("react.lazy"),er=Symbol.for("react.activity"),ei=Symbol.iterator,eo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ea=Object.assign,es={};function el(e,t,n){this.props=e,this.context=t,this.refs=es,this.updater=n||eo}function eu(){}function ec(e,t,n){this.props=e,this.context=t,this.refs=es,this.updater=n||eo}el.prototype.isReactComponent={},el.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")},el.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},eu.prototype=el.prototype;var ed=ec.prototype=new eu;ed.constructor=ec,ea(ed,el.prototype),ed.isPureReactComponent=!0;var ef=Array.isArray;function eh(){}var
3 ep={H:null,A:null,T:null,S:null},em=Object.prototype.hasOwnProperty;function eg(e,t,n){var r=n.ref;return{$$typeof:q,type:e,key:t,ref:void 0!==r?r:null,props:n}}function ey(e){return"object"==typeof e&&null!==e&&e.$$typeof===q}var ev=/\/+/g;function eb(e,t){var n,r;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)}function ew(e,t,n){if(null==e)return e;var r=[],i=0;return!function e(t,n,r,i,o){var a,s,l,u=typeof t;("undefined"===u||"boolean"===u)&&(t=null);var c=!1;if(null===t)c=!0;else switch(u){case"bigint":case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case q:case K:c=!0;break;case en:return e((c=t._init)(t._payload),n,r,i,o)}}if(c)return o=o(t),c=""===i?"."+eb(t,0):i,ef(o)?(r="",null!=c&&(r=c.replace(ev,"$&/")+"/"),e(o,n,r,"",function(e){return e})):null!=o&&(ey(o)&&(a=o,s=r+(null==o.key||t&&t.key===o.key?"":(""+o.key).replace(ev,"$&/")+"/")+c,o=eg(a.type,s,a.props)),n.push(o)),1;c=0;var d=""===i?".":i+":";if(ef(t))for(var f=0;f<t.length;f++)u=d+eb(i=t[f],f),c+=e(i,n,r,u,o);else if("function"==typeof(f=null===(l=t)||"object"!=typeof l?null:"function"==typeof(l=ei&&l[ei]||l["@@iterator"])?l:null))for(t=f.call(t),f=0;!(i=t.next()).done;)u=d+eb(i=i.value,f++),c+=e(i,n,r,u,o);else if("object"===u){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(eh,eh):(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}(t),n,r,i,o);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(n=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return c}(e,r,"","",function(e){return t.call(n,e,i++)}),r}function ex(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 e_="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}console.error(e)};n=er,r={map:ew,forEach:function(e,t,n){ew(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ew(e,function(){t++}),t},toArray:function(e){return ew(e,function(e){return e})||[]},only:function(e){if(!ey(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},i=el,o=Z,a=Y,s=ec,l=G,u=ee,c=ep,d={__proto__:null,c:function(e){return ep.H.useMemoCache(e)}},f=function(e){return function(){return e.apply(null,arguments)}},h=function(){return null},p=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=ea({},e.props),i=e.key;if(null!=t)for(o in void 0!==t.key&&(i=""+t.key),t)em.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 a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return eg(e.type,i,r)},m=function(e){return(e={$$typeof:J,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:X,_context:e},e},g=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)em.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return eg(e,o,i)},y=function(){return{current:null}},v=function(e){return{$$typeof:Q,render:e}},b=ey,w=function(e){return{$$typeof:en,_payload:{_status:-1,_result:e},_init:ex}},x=function(e,t){return{$$typeof:et,type:e,compare:void 0===t?null:t}},_=function(e){var t=ep.T,n={};ep.T=n;try{var r=e(),i=ep.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(eh,e_)}catch(e){e_(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),ep.T=t}},k=function(){return ep.H.useCacheRefresh()},S=function(e){return ep.H.use(e)},E=function(e,t,n){return ep.H.useActionState(e,t,n)},O=function(e,t){return ep.H.useCallback(e,t)},j=function(e){return ep.H.useContext(e)},T=function(){},C=function(e,t){return ep.H.useDeferredValue(e,t)},I=function(e,t){return ep.H.useEffect(e,t)},P=function(e){return ep.H.useEffectEvent(e)},A=function(){return ep.H.useId()},R=function(e,t,n){return ep.H.useImperativeHandle(e,t,n)},N=function(e,t){return ep.H.useInsertionEffect(e,t)},D=function(e,t){return ep.H.useLayoutEffect(e,t)},z=function(e,t){return ep.H.useMemo(e,t)},F=function(e,t){return ep.H.useOptimistic(e,t)},B=function(e,t,n){return ep.H.useReducer(e,t,n)},U=function(e){return ep.H.useRef(e)},$=function(e){return ep.H.useState(e)},H=function(e,t,n){return ep.H.useSyncExternalStore(e,t,n)},W=function(){return ep.H.useTransition()},V="19.2.8"}),eu("2pmb0",function(e,t){"use strict";!function e(){if("u">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=el("jRYbO")}),eu("jRYbO",function(e,t){"use strict";M(e.exports,"__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",()=>n,e=>n=e),M(e.exports,"createPortal",()=>r,e=>r=e),M(e.exports,"flushSync",()=>i,e=>i=e),M(e.exports,"preconnect",()=>o,e=>o=e),M(e.exports,"prefetchDNS",()=>a,e=>a=e),M(e.exports,"preinit",()=>s,e=>s=e),M(e.exports,"preinitModule",()=>l,e=>l=e),M(e.exports,"preload",()=>u,e=>u=e),M(e.exports,"preloadModule",()=>c,e=>c=e),M(e.exports,"requestFormReset",()=>d,e=>d=e),M(e.exports,"unstable_batchedUpdates",()=>f,e=>f=e),M(e.exports,"useFormState",()=>h,e=>h=e),M(e.exports,"useFormStatus",()=>p,e=>p=e),M(e.exports,"version",()=>m,e=>m=e);var n,r,i,o,a,s,l,u,c,d,f,h,p,m,g=el("8NFma");function y(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 v(){}var b={d:{f:v,r:function(){throw Error(y(522))},D:v,C:v,L:v,m:v,X:v,S:v,M:v},p:0,findDOMNode:null},w=Symbol.for("react.portal"),x=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}n=b,r=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(y(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},i=function(e){var t=x.T,n=b.p;try{if(x.T=null,b.p=2,e)return e()}finally{x.T=t,b.p=n,b.d.f()}},o=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,b.d.C(e,t))},a=function(e){"string"==typeof e&&b.d.D(e)},s=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=_(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?b.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):"script"===n&&b.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},l=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=_(t.as,t.crossOrigin);b.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&&b.d.M(e)},u=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=_(n,t.crossOrigin);b.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})}},c=function(e,t){if("string"==typeof e)if(t){var n=_(t.as,t.crossOrigin);b.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 b.d.m(e)},d=function(e){b.d.r(e)},f=function(e,t){return e(t)},h=function(e,t,n){return x.H.useFormState(e,t,n)},p=function(){return x.H.useHostTransitionStatus()},m="19.2.8"}),eu("bcILy",function(e,t){M(e.exports,"useSyncExternalStoreWithSelector",()=>n,e=>n=e);"use strict";var n,r=el("8NFma"),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,u=r.useDebugValue;n=function(e,t,n,r,c){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=o(e,(d=l(function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(o=e,t):(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,c]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=h},[h]),u(h),h}}),eu("kGgTb",function(e,t){M(e.exports,"isNodeEnv",()=>r);var n=el("efMmY");function r(){return!(0,n.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call(0)}}),eu("efMmY",function(e,t){function n(){return"u">typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function r(){return"npm"}M(e.exports,"isBrowserBundle",()=>n),M(e.exports,"getSDKSource",()=>r)}),eu("7qgcG",function(e,t){M(e.exports,"array",()=>Q),M(e.exports,"union",()=>ei),M(e.exports,"string",()=>g),M(e.exports,"number",()=>W),M(e.exports,"boolean",()=>K),M(e.exports,"object",()=>et),M(e.exports,"strictObject",()=>en),M(e.exports,"record",()=>es);var n=el("ghwTM"),r=el("aEJki"),i=el("gZAXg");el("gPen2");var o=el("eJJL5"),a=el("3TrIT"),s=el("b03fG");el("i1d0y");var l=el("lFBOL"),u=el("1K28a"),c=el("iVZyL"),n=el("ghwTM"),d=el("bWpqK");function f(){r.globalConfig.memoizer||r.config({memoizer:s.memoizer()})}let h=r.$constructor("ZodType",(e,t)=>(r.globalConfig.localeError||r.config((0,c.default)()),i.$ZodType.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(o.mergeDefs(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return o.clone(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return n._refine(ek,e,t)}(e,t))},superRefine(e,t){var r,i;return this.check((r=e,i=t,n._superRefine(r,i)))},overwrite(e){return this.check(n._overwrite(e))},optional(){return ef(this)},exactOptional(){var e;return e=this,new eh({type:"optional",innerType:e})},nullable(){return em(this)},nullish(){return ef(em(this))},nonoptional(e){var t,n;return t=this,n=e,new ev({type:"nonoptional",innerType:t,...o.normalizeParams(n)})},array(){return Q(this)},or(e){return ei([this,e])},and(e){var t;return t=this,new eo({type:"intersection",left:t,right:e})},transform(e){return ex(this,new ec({type:"transform",transform:e}))},default(e){var t,n;return t=this,n=e,new eg({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():o.shallowClone(n)}})},prefault(e){var t,n;return t=this,n=e,new ey({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof n?n():o.shallowClone(n)}})},catch(e){var t,n;return t=this,new eb({type:"catch",innerType:t,catchValue:"function"==typeof(n=e)?n:o.constantCatch(n)})},pipe(e){return ex(this,e)},readonly(){var e;return e=this,new e_({type:"readonly",innerType:e})},describe(e){let t=this.clone();return a.globalRegistry.add(t,{description:e}),t},meta(...e){if(0===e.length)return a.globalRegistry.get(this);let t=this.clone();return a.globalRegistry.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return 0===t.length?e(this):e(this,...t)},get"~standard"(){return o.hide(this,"~standard",{...i.standardProps(this),jsonSchema:{input:(0,u.createStandardJSONSchemaMethod)(this,"input"),output:(0,u.createStandardJSONSchemaMethod)(this,"output")}})},set"~standard"(value){o.own(this,"~standard",value)},parse:function e(t,n){return d.parse(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await d.parseAsync(this,t,n,{callee:e})},safeParse(e,t){return d.safeParse(this,e,t)},async safeParseAsync(e,t){return d.safeParseAsync(this,e,t)},get spa(){return this?.safeParseAsync},set spa(value){o.own(this,"spa",value)},encode:function e(t,n){return d.encode(this,t,n,{callee:e})},decode:function e(t,n){return d.decode(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await d.encodeAsync(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await d.decodeAsync(this,t,n,{callee:e})},safeEncode(e,t){return d.safeEncode(this,e,t)},safeDecode(e,t){return d.safeDecode(this,e,t)},async safeEncodeAsync(e,t){return d.safeEncodeAsync(this,e,t)},async safeDecodeAsync(e,t){return d.safeDecodeAsync(this,e,t)},toJSONSchema(e){return(0,u.createToJSONSchemaMethod)(this,{})(e)},get description(){return a.globalRegistry.get(this)?.description},get _def(){return this._zod.def}}),p=r.$constructor("_ZodString",(e,t)=>{i.$ZodString.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.stringProcessor(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(n._regex(...e))},includes(...e){return this.check(n._includes(...e))},startsWith(...e){return this.check(n._startsWith(...e))},endsWith(...e){return this.check(n._endsWith(...e))},min(...e){return this.check(n._minLength(...e))},max(...e){return this.check(n._maxLength(...e))},length(...e){return this.check(n._length(...e))},nonempty(...e){return this.check(n._minLength(1,...e))},lowercase(e){return this.check(n._lowercase(e))},uppercase(e){return this.check(n._uppercase(e))},trim(){return this.check(n._trim())},normalize(...e){return this.check(n._normalize(...e))},toLowerCase(){return this.check(n._toLowerCase())},toUpperCase(){return this.check(n._toUpperCase())},slugify(){return this.check(n._slugify())}}),m=r.$constructor("ZodString",(e,t)=>{i.$ZodString.init(e,t),p.init(e,t)},{email(e){return this.check(n._email(_,e))},url(e){return this.check(n._url(E,e))},jwt(e){return this.check(n._jwt($,e))},emoji(e){return this.check(n._emoji(O,e))},guid(e){return this.check(n._guid(k,e))},uuid(e){return this.check(n._uuid(S,e))},uuidv4(e){return this.check(n._uuidv4(S,e))},uuidv6(e){return this.check(n._uuidv6(S,e))},uuidv7(e){return this.check(n._uuidv7(S,e))},nanoid(e){return this.check(n._nanoid(j,e))},cuid(e){return this.check(n._cuid(T,e))},cuid2(e){return this.check(n._cuid2(C,e))},ulid(e){return this.check(n._ulid(I,e))},base64(e){return this.check(n._base64(F,e))},base64url(e){return this.check(n._base64url(B,e))},xid(e){return this.check(n._xid(P,e))},ksuid(e){return this.check(n._ksuid(A,e))},ipv4(e){return this.check(n._ipv4(R,e))},ipv6(e){return this.check(n._ipv6(N,e))},cidrv4(e){return this.check(n._cidrv4(D,e))},cidrv6(e){return this.check(n._cidrv6(z,e))},e164(e){return this.check(n._e164(U,e))},datetime(e){return this.check(n._isoDateTime(v,e))},date(e){return this.check(n._isoDate(b,e))},time(e){return this.check(n._isoTime(w,e))},duration(e){return this.check(n._isoDuration(x,e))}});
3function g(e){return n._string(m,e)}let y=r.$constructor("ZodStringFormat",(e,t)=>{i.$ZodStringFormat.init(e,t),p.init(e,t)}),v=r.$constructor("ZodISODateTime",(e,t)=>{i.$ZodISODateTime.init(e,t),y.init(e,t)}),b=r.$constructor("ZodISODate",(e,t)=>{i.$ZodISODate.init(e,t),y.init(e,t)}),w=r.$constructor("ZodISOTime",(e,t)=>{i.$ZodISOTime.init(e,t),y.init(e,t)}),x=r.$constructor("ZodISODuration",(e,t)=>{i.$ZodISODuration.init(e,t),y.init(e,t)}),_=r.$constructor("ZodEmail",(e,t)=>{i.$ZodEmail.init(e,t),y.init(e,t)}),k=r.$constructor("ZodGUID",(e,t)=>{i.$ZodGUID.init(e,t),y.init(e,t)}),S=r.$constructor("ZodUUID",(e,t)=>{i.$ZodUUID.init(e,t),y.init(e,t)}),E=r.$constructor("ZodURL",(e,t)=>{i.$ZodURL.init(e,t),y.init(e,t)}),O=r.$constructor("ZodEmoji",(e,t)=>{i.$ZodEmoji.init(e,t),y.init(e,t)}),j=r.$constructor("ZodNanoID",(e,t)=>{i.$ZodNanoID.init(e,t),y.init(e,t)}),T=r.$constructor("ZodCUID",(e,t)=>{i.$ZodCUID.init(e,t),y.init(e,t)}),C=r.$constructor("ZodCUID2",(e,t)=>{i.$ZodCUID2.init(e,t),y.init(e,t)}),I=r.$constructor("ZodULID",(e,t)=>{i.$ZodULID.init(e,t),y.init(e,t)}),P=r.$constructor("ZodXID",(e,t)=>{i.$ZodXID.init(e,t),y.init(e,t)}),A=r.$constructor("ZodKSUID",(e,t)=>{i.$ZodKSUID.init(e,t),y.init(e,t)}),R=r.$constructor("ZodIPv4",(e,t)=>{i.$ZodIPv4.init(e,t),y.init(e,t)}),N=r.$constructor("ZodIPv6",(e,t)=>{i.$ZodIPv6.init(e,t),y.init(e,t)}),D=r.$constructor("ZodCIDRv4",(e,t)=>{i.$ZodCIDRv4.init(e,t),y.init(e,t)}),z=r.$constructor("ZodCIDRv6",(e,t)=>{i.$ZodCIDRv6.init(e,t),y.init(e,t)}),F=r.$constructor("ZodBase64",(e,t)=>{i.$ZodBase64.init(e,t),y.init(e,t)}),B=r.$constructor("ZodBase64URL",(e,t)=>{i.$ZodBase64URL.init(e,t),y.init(e,t)}),U=r.$constructor("ZodE164",(e,t)=>{i.$ZodE164.init(e,t),y.init(e,t)}),$=r.$constructor("ZodJWT",(e,t)=>{i.$ZodJWT.init(e,t),y.init(e,t)}),H=r.$constructor("ZodNumber",(e,t)=>{i.$ZodNumber.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.numberProcessor(e,t,n,r);let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null},{gt(e,t){return this.check(n._gt(e,t))},gte(e,t){return this.check(n._gte(e,t))},min(e,t){return this.check(n._gte(e,t))},lt(e,t){return this.check(n._lt(e,t))},lte(e,t){return this.check(n._lte(e,t))},max(e,t){return this.check(n._lte(e,t))},int(e){var t;return this.check((t=e,n._int(V,t)))},safe(e){var t;return this.check((t=e,n._int(V,t)))},positive(e){return this.check(n._gt(0,e))},nonnegative(e){return this.check(n._gte(0,e))},negative(e){return this.check(n._lt(0,e))},nonpositive(e){return this.check(n._lte(0,e))},multipleOf(e,t){return this.check(n._multipleOf(e,t))},step(e,t){return this.check(n._multipleOf(e,t))},finite(){return this}});function W(e){return n._number(H,e)}let V=r.$constructor("ZodNumberFormat",(e,t)=>{i.$ZodNumberFormat.init(e,t),H.init(e,t)}),q=r.$constructor("ZodBoolean",(e,t)=>{i.$ZodBoolean.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.booleanProcessor(e,t,n,r)});function K(e){return n._boolean(q,e)}(e,t)=>{i.$ZodBigInt.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.bigintProcessor(e,t,n,r);let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null};let Z=r.$constructor("ZodUnknown",(e,t)=>{i.$ZodUnknown.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.unknownProcessor(e,t,n,r)});function G(){return n._unknown(Z)}let Y=r.$constructor("ZodNever",(e,t)=>{i.$ZodNever.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.neverProcessor(e,t,n,r)});function X(e){return n._never(Y,e)}let J=r.$constructor("ZodArray",(e,t)=>{f(),i.$ZodArray.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.arrayProcessor(e,t,n,r),e.element=t.element},{min(e,t){return this.check(n._minLength(e,t))},nonempty(e){return this.check(n._minLength(1,e))},max(e,t){return this.check(n._maxLength(e,t))},length(e,t){return this.check(n._length(e,t))},unwrap(){return this.element}});function Q(e,t){return n._array(J,e,t)}let ee=r.$constructor("ZodObject",(e,t)=>{f(),i.$ZodObjectJIT.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>
3l.objectProcessor(e,t,n,r),o.installLazyProp(e,"shape",e=>e._zod.def.shape,!1)},{keyof(){var e;return new eu({type:"enum",entries:Array.isArray(e=Object.keys(this._zod.def.shape))?Object.fromEntries(e.map(e=>[e,e])):e,...o.normalizeParams(void 0)})},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:G()})},loose(){return this.clone({...this._zod.def,catchall:G()})},strict(){return this.clone({...this._zod.def,catchall:X()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return o.extend(this,e)},safeExtend(e){return o.safeExtend(this,e)},merge(e){return o.merge(this,e)},pick(e){return o.pick(this,e)},omit(e){return o.omit(this,e)},partial(...e){return o.partial(ed,this,e[0])},exactPartial(...e){return o.partial(eh,this,e[0],"exactPartial")},required(...e){return o.required(ev,this,e[0])}});function et(e,t){return new ee({type:"object",shape:e??{},...o.normalizeParams(t)})}function en(e,t){return new ee({type:"object",shape:e,catchall:X(),...o.normalizeParams(t)})}let er=r.$constructor("ZodUnion",(e,t)=>{i.$ZodUnion.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.unionProcessor(e,t,n,r),e.options=t.options});function ei(e,t){return new er({type:"union",options:e,...o.normalizeParams(t)})}let eo=r.$constructor("ZodIntersection",(e,t)=>{i.$ZodIntersection.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.intersectionProcessor(e,t,n,r)}),ea=r.$constructor("ZodRecord",(e,t)=>{f(),i.$ZodRecord.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.recordProcessor(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});
3function es(e,t,n){return new ea(t&&t._zod?{type:"record",keyType:e,valueType:t,...o.normalizeParams(n)}:{type:"record",keyType:g(),valueType:e,...o.normalizeParams(t)})}let eu=r.$constructor("ZodEnum",(e,t)=>{i.$ZodEnum.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.enumProcessor(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new eu({...t,checks:[],...o.normalizeParams(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new eu({...t,checks:[],...o.normalizeParams(r),entries:i})}}),ec=r.$constructor("ZodTransform",(e,t)=>{f(),i.$ZodTransform.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.transformProcessor(e,t,n,r),e._zod.parse=(n,i)=>{if("backward"===i.direction)throw new r.$ZodEncodeError(e.constructor.name);n.addIssue=r=>{"string"==typeof r?n.issues.push(o.issue(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),"input"in r||(r.input=n.value),r.inst??(r.inst=e),n.issues.push(o.issue(r)))};let a=t.transform(n.value,n);return a instanceof Promise?a.then(e=>(n.value=e,n)):(n.value=a,n)}}),ed=r.$constructor("ZodOptional",(e,t)=>{i.$ZodOptional.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.optionalProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ef(e){return new ed({type:"optional",innerType:e})}let eh=r.$constructor("ZodExactOptional",(e,t)=>{i.$ZodExactOptional.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.optionalProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),ep=r.$constructor("ZodNullable",(e,t)=>{i.$ZodNullable.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.nullableProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function em(e){return new ep({type:"nullable",innerType:e})}let eg=r.$constructor("ZodDefault",(e,t)=>{i.$ZodDefault.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.defaultProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),ey=r.$constructor("ZodPrefault",(e,t)=>{i.$ZodPrefault.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.prefaultProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),ev=r.$constructor("ZodNonOptional",(e,t)=>{i.$ZodNonOptional.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.nonoptionalProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),eb=r.$constructor("ZodCatch",(e,t)=>{i.$ZodCatch.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.catchProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),ew=r.$constructor("ZodPipe",(e,t)=>{i.$ZodPipe.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.pipeProcessor(e,t,n,r),e.in=t.in,e.out=t.out});function ex(e,t){return new ew({type:"pipe",in:e,out:t})}let e_=r.$constructor("ZodReadonly",(e,t)=>{i.$ZodReadonly.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.readonlyProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),ek=r.$constructor("ZodCustom",(e,t)=>{i.$ZodCustom.init(e,t),h.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l.customProcessor(e,t,n,r)});n.describe,n.meta}),eu("ghwTM",function(e,t){M(e.exports,"_string",()=>a),M(e.exports,"_email",()=>s),M(e.exports,"_guid",()=>l),M(e.exports,"_uuid",()=>u),M(e.exports,"_uuidv4",()=>c),M(e.exports,"_uuidv6",()=>d),M(e.exports,"_uuidv7",()=>f),M(e.exports,"_url",()=>h),M(e.exports,"_emoji",()=>p),M(e.exports,"_nanoid",()=>m),M(e.exports,"_cuid",()=>g),M(e.exports,"_cuid2",()=>y),M(e.exports,"_ulid",()=>v),M(e.exports,"_xid",()=>b),M(e.exports,"_ksuid",()=>w),M(e.exports,"_ipv4",()=>x),M(e.exports,"_ipv6",()=>_),M(e.exports,"_mac",()=>k),M(e.exports,"_cidrv4",()=>S),M(e.exports,"_cidrv6",()=>E),M(e.exports,"_base64",()=>O),M(e.exports,"_base64url",()=>j),M(e.exports,"_e164",()=>T),M(e.exports,"_creditCard",()=>C),M(e.exports,"_jwt",()=>I),M(e.exports,"_isoDateTime",()=>P),M(e.exports,"_isoDate",()=>A),M(e.exports,"_isoTime",()=>R),M(e.exports,"_isoDuration",()=>N),M(e.exports,"_number",()=>D),M(e.exports,"_int",()=>z),M(e.exports,"_float32",()=>F),M(e.exports,"_float64",()=>B),M(e.exports,"_int32",()=>U),M(e.exports,"_uint32",()=>$),M(e.exports,"_boolean",()=>H),M(e.exports,"_bigint",()=>W),M(e.exports,"_int64",()=>V),M(e.exports,"_uint64",()=>q),M(e.exports,"_symbol",()=>K),M(e.exports,"_undefined",()=>Z),M(e.exports,"_null",()=>G),M(e.exports,"_any",()=>Y),M(e.exports,"_unknown",()=>X),M(e.exports,"_never",()=>J),M(e.exports,"_void",()=>Q),M(e.exports,"_date",()=>ee),M(e.exports,"_nan",()=>et),M(e.exports,"_lt",()=>en),M(e.exports,"_lte",()=>er),M(e.exports,"_gt",()=>ei),M(e.exports,"_gte",()=>eo),M(e.exports,"_multipleOf",()=>ea),M(e.exports,"_maxSize",()=>es),M(e.exports,"_minSize",()=>eu),M(e.exports,"_size",()=>ec),M(e.exports,"_maxLength",()=>ed),M(e.exports,"_minLength",()=>ef),M(e.exports,"_length",()=>eh),M(e.exports,"_regex",()=>ep),M(e.exports,"_lowercase",()=>em),M(e.exports,"_uppercase",()=>eg),M(e.exports,"_includes",()=>ey),M(e.exports,"_startsWith",()=>ev),M(e.exports,"_endsWith",()=>eb),M(e.exports,"_mime",()=>ew),M(e.exports,"_overwrite",()=>ex),M(e.exports,"_normalize",()=>e_),M(e.exports,"_trim",()=>ek),M(e.exports,"_toLowerCase",()=>eS),M(e.exports,"_toUpperCase",()=>eE),M(e.exports,"_slugify",()=>eO),M(e.exports,"_array",()=>
3ej),M(e.exports,"_file",()=>eT),M(e.exports,"_custom",()=>eC),M(e.exports,"_refine",()=>eI),M(e.exports,"_superRefine",()=>eP),M(e.exports,"describe",()=>eA),M(e.exports,"meta",()=>eR),M(e.exports,"_stringbool",()=>eN),M(e.exports,"_stringFormat",()=>eM);var n=el("gPen2"),r=el("3TrIT"),i=el("gZAXg"),o=el("eJJL5");function a(e,t){return new e({type:"string",...o.normalizeParams(t)})}function s(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...o.normalizeParams(t)})}function l(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function u(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function c(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...o.normalizeParams(t)})}function d(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...o.normalizeParams(t)})}function f(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...o.normalizeParams(t)})}function h(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...o.normalizeParams(t)})}function p(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...o.normalizeParams(t)})}function m(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function g(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function y(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...o.normalizeParams(t)})}function v(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function b(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function w(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function x(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...o.normalizeParams(t)})}function _(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...o.normalizeParams(t)})}function k(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...o.normalizeParams(t)})}function S(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...o.normalizeParams(t)})}function E(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...o.normalizeParams(t)})}function O(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...o.normalizeParams(t)})}function j(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...o.normalizeParams(t)})}function T(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...o.normalizeParams(t)})}function C(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...o.normalizeParams(t)})}function I(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...o.normalizeParams(t)})}function P(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...o.normalizeParams(t)})}function A(e,t){return new e({type:"string",format:"date",check:"string_format",...o.normalizeParams(t)})}function R(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...o.normalizeParams(t)})}function N(e,t){return new e({type:"string",format:"duration",check:"string_format",...o.normalizeParams(t)})}function D(e,t){return new e({type:"number",checks:[],...o.normalizeParams(t)})}function z(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...o.normalizeParams(t)})}function F(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...o.normalizeParams(t)})}function B(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...o.normalizeParams(t)})}function U(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...o.normalizeParams(t)})}function $(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...o.normalizeParams(t)})}function H(e,t){return new e({type:"boolean",...o.normalizeParams(t)})}function W(e,t){return new e({type:"bigint",...o.normalizeParams(t)})}function V(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...o.normalizeParams(t)})}function q(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...o.normalizeParams(t)})}function K(e,t){return new e({type:"symbol",...o.normalizeParams(t)})}function Z(e,t){return new e({type:"undefined",...o.normalizeParams(t)})}function G(e,t){return new e({type:"null",...o.normalizeParams(t)})}function Y(e){return new e({type:"any"})}function X(e){return new e({type:"unknown"})}function J(e,t){return new e({type:"never",...o.normalizeParams(t)})}function Q(e,t){return new e({type:"void",...o.normalizeParams(t)})}function ee(e,t){return new e({type:"date",...o.normalizeParams(t)})}function et(e,t){return new e({type:"nan",...o.normalizeParams(t)})}function en(e,t){return new n.$ZodCheckLessThan({check:"less_than",...o.normalizeParams(t),value:e,inclusive:!1})}function er(e,t){return new n.$ZodCheckLessThan({check:"less_than",...o.normalizeParams(t),value:e,inclusive:!0})}function ei(e,t){return new n.$ZodCheckGreaterThan({check:"greater_than",...o.normalizeParams(t),value:e,inclusive:!1})}function eo(e,t){return new n.$ZodCheckGreaterThan({check:"greater_than",...o.normalizeParams(t),value:e,inclusive:!0})}function ea(e,t){return new n.$ZodCheckMultipleOf({check:"multiple_of",...o.normalizeParams(t),value:e})}function es(e,t){return new n.$ZodCheckMaxSize({check:"max_size",...o.normalizeParams(t),maximum:e})}function eu(e,t){return new n.$ZodCheckMinSize({check:"min_size",...o.normalizeParams(t),minimum:e})}function ec(e,t){return new n.$ZodCheckSizeEquals({check:"size_equals",...o.normalizeParams(t),size:e})}function ed(e,t){return new n.$ZodCheckMaxLength({check:"max_length",...o.normalizeParams(t),maximum:e})}function ef(e,t){return new n.$ZodCheckMinLength({check:"min_length",...o.normalizeParams(t),minimum:e})}function eh(e,t){return new n.$ZodCheckLengthEquals({check:"length_equals",...o.normalizeParams(t),length:e})}function ep(e,t){return new n.$ZodCheckRegex({check:"string_format",format:"regex",...o.normalizeParams(t),pattern:e})}function em(e){return new n.$ZodCheckLowerCase({check:"string_format",format:"lowercase",...o.normalizeParams(e)})}function eg(e){return new n.$ZodCheckUpperCase({check:"string_format",format:"up
3percase",...o.normalizeParams(e)})}function ey(e,t){return new n.$ZodCheckIncludes({check:"string_format",format:"includes",...o.normalizeParams(t),includes:e})}function ev(e,t){return new n.$ZodCheckStartsWith({check:"string_format",format:"starts_with",...o.normalizeParams(t),prefix:e})}function eb(e,t){return new n.$ZodCheckEndsWith({check:"string_format",format:"ends_with",...o.normalizeParams(t),suffix:e})}function ew(e,t){return new n.$ZodCheckMimeType({check:"mime_type",mime:e,...o.normalizeParams(t)})}function ex(e){return new n.$ZodCheckOverwrite({check:"overwrite",tx:e})}function e_(e){return ex(t=>t.normalize(e))}function ek(){return ex(e=>e.trim())}function eS(){return ex(e=>e.toLowerCase())}function eE(){return ex(e=>e.toUpperCase())}function eO(){return ex(e=>o.slugify(e))}function ej(e,t,n){return new e({type:"array",element:t,...o.normalizeParams(n)})}function eT(e,t){return new e({type:"file",...o.normalizeParams(t)})}function eC(e,t,n){let r=o.normalizeParams(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function eI(e,t,n){return new e({type:"custom",check:"custom",fn:t,...o.normalizeParams(n)})}function eP(e,t){var r,i;let a,s=(r=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(o.issue(e,t.value,s._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),"input"in e||(e.input=t.value),e.inst??(e.inst=s),e.continue??(e.continue=!s._zod.def.abort),t.issues.push(o.issue(e)))},e(t.value,t)),i=t,(a=new n.$ZodCheck({check:"custom",...o.normalizeParams(i)}))._zod.check=r,a);return s}function eA(e){let t=new n.$ZodCheck({check:"describe"});return t._zod.onattach=[t=>{let n=r.globalRegistry.get(t)??{};r.globalRegistry.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function eR(e){let t=new n.$ZodCheck({check:"meta"});return t._zod.onattach=[t=>{let n=r.globalRegistry.get(t)??{};r.globalRegistry.add(t,{...n,...e})}],t._zod.check=()=>{},t}function eN(e,t){let n=o.normalizeParams(t),r=n.truthy??["true","1","yes","on","y","enabled"],a=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(r=r.map(e=>"string"==typeof e?e.toLowerCase():e),a=a.map(e=>"string"==typeof e?e.toLowerCase():e));let s=new Set(r),l=new Set(a),u=e.Codec??i.$ZodCodec,c=e.Boolean??i.$ZodBoolean,d=new u({type:"pipe",in:new(e.String??i.$ZodString)({type:"string",error:n.error}),out:new c({type:"boolean",error:n.error}),transform:(e,t)=>{let r=e;return"sensitive"!==n.case&&(r=r.toLowerCase()),!!s.has(r)||!l.has(r)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...l],input:t.value,inst:d,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?r[0]||"true":a[0]||"false",error:n.error});return d._zod.bag.truthy=r,d._zod.bag.falsy=a,d._zod.bag.case=n.case??"insensitive",d}function eM(e,t,n,r={}){let i={check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...o.normalizeParams(r)};return n instanceof RegExp&&(i.pattern=n),new e(i)}}),eu("gPen2",function(e,t){M(e.exports,"$ZodCheck",()=>o),M(e.exports,"$ZodCheckLessThan",()=>u),M(e.exports,"$ZodCheckGreaterThan",()=>c),M(e.exports,"$ZodCheckMultipleOf",()=>d),M(e.exports,"$ZodCheckNumberFormat",()=>f),M(e.exports,"$ZodCheckBigIntFormat",()=>h),M(e.exports,"$ZodCheckMaxSize",()=>p),M(e.exports,"$ZodCheckMinSize",()=>m),M(e.exports,"$ZodCheckSizeEquals",()=>g),M(e.exports,"$ZodCheckMaxLength",()=>y),M(e.exports,"$ZodCheckMinLength",()=>v),M(e.exports,"$ZodCheckLengthEquals",()=>b),M(e.exports,"$ZodCheckStringFormat",()=>w),M(e.exports,"$ZodCheckRegex",()=>x),M(e.exports,"$ZodCheckLowerCase",()=>_),M(e.exports,"$ZodCheckUpperCase",()=>k),M(e.exports,"$ZodCheckIncludes",()=>S),M(e.exports,"$ZodCheckStartsWith",()=>E),M(e.exports,"$ZodCheckEndsWith",()=>O),M(e.exports,"$ZodCheckProperty",()=>T),M(e.exports,"$ZodCheckMimeType",()=>C),M(e.exports,"$ZodCheckOverwrite",()=>I);var n=el("aEJki"),r=el("i1d0y"),i=el("eJJL5");let o=n.$constructor("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),a=e=>{let t=e.value;return!i.nullish(t)&&void 0!==t.size},s=e=>{let t=e.value;return!i.nullish(t)&&void 0!==t.length},l={number:"number",bigint:"bigint",object:"date"},u=n.$constructor("$ZodCheckLessThan",(e,t)=>{o.init(e,t);let n=l[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:l[typeof r.value]??n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),c=n.$constructor("$ZodCheckGreaterThan",(e,t)=>{o.init(e,t);let n=l[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:l[typeof r.value]??n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),d=n.$constructor("$ZodCheckMultipleOf",(e,t)=>{o.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):0===i.floatSafeRemainder(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),f=n.$constructor("$ZodCheckNumberFormat",(e,t)=>{o.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),a=n?"int":"number",[s,l]=i.NUMBER_FORMAT_RANGES[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=s,i.maximum=l,n&&(i.pattern=r.integer)}),e._zod.check=r=>{let i=r.value;if(n){if(!Number.isInteger(i))return void r.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:i,inst:e});if(!Number.isSafeInteger(i))return void(i>0?r.issues.push({input:i,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,
3continue:!t.abort}):r.issues.push({input:i,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}))}i<s&&r.issues.push({origin:"number",input:i,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),i>l&&r.issues.push({origin:"number",input:i,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),h=n.$constructor("$ZodCheckBigIntFormat",(e,t)=>{o.init(e,t);let[n,r]=i.BIGINT_FORMAT_RANGES[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let o=i.value;o<n&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>r&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),p=n.$constructor("$ZodCheckMaxSize",(e,t)=>{var n;o.init(e,t),(n=e._zod.def).when??(n.when=a),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:i.getSizableOrigin(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),m=n.$constructor("$ZodCheckMinSize",(e,t)=>{var n;o.init(e,t),(n=e._zod.def).when??(n.when=a),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:i.getSizableOrigin(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),g=n.$constructor("$ZodCheckSizeEquals",(e,t)=>{var n;o.init(e,t),(n=e._zod.def).when??(n.when=a),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,o=r.size;if(o===t.size)return;let a=o>t.size;n.issues.push({origin:i.getSizableOrigin(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),y=n.$constructor("$ZodCheckMaxLength",(e,t)=>{var n;o.init(e,t),(n=e._zod.def).when??(n.when=s),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value,o=r.length;if(("string"==typeof r&&o>t.maximum?i.codePointLength(r):o)<=t.maximum)return;let a=i.getLengthableOrigin(r);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),v=n.$constructor("$ZodCheckMinLength",(e,t)=>{var n;o.init(e,t),(n=e._zod.def).when??(n.when=s),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value,o=r.length;if(("string"==typeof r&&o>=t.minimum&&o<2*t.minimum?i.codePointLength(r):o)>=t.minimum)return;let a=i.getLengthableOrigin(r);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),b=n.$constructor("$ZodCheckLengthEquals",(e,t)=>{var n;o.init(e,t),(n=e._zod.def).when??(n.when=s),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,o=r.length,a="string"==typeof r&&o>=t.length&&o<=2*t.length?i.codePointLength(r):o;if(a===t.length)return;let s=i.getLengthableOrigin(r),l=a>t.length;n.issues.push({origin:s,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),w=n.$constructor("$ZodCheckStringFormat",(e,t)=>{var n,r;o.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),x=n.$constructor("$ZodCheckRegex",(e,t)=>{w.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),_=n.$constructor("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=r.lowercase),w.init(e,t)}),k=n.$constructor("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=r.uppercase),w.init(e,t)}),S=n.$constructor("$ZodCheckIncludes",(e,t)=>{o.init(e,t);let n=i.escapeRegex(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>
3{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),E=n.$constructor("$ZodCheckStartsWith",(e,t)=>{o.init(e,t);let n=RegExp(`^${i.escapeRegex(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),O=n.$constructor("$ZodCheckEndsWith",(e,t)=>{o.init(e,t);let n=RegExp(`.*${i.escapeRegex(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function j(e,t,n){e.issues.length&&t.issues.push(...i.prefixIssues(n,e.issues))}let T=n.$constructor("$ZodCheckProperty",(e,t)=>{o.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>j(n,e,t.property));j(n,e,t.property)}}),C=n.$constructor("$ZodCheckMimeType",(e,t)=>{o.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),I=n.$constructor("$ZodCheckOverwrite",(e,t)=>{o.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})}),eu("aEJki",function(e,t){M(e.exports,"$constructor",()=>a),M(e.exports,"$ZodAsyncError",()=>s),M(e.exports,"$ZodEncodeError",()=>l),M(e.exports,"globalConfig",()=>u),M(e.exports,"config",()=>c);var n,r=el("eJJL5");let i={value:void 0,enumerable:!1},o="captureStackTrace"in Error?Error:null;function a(e,t,n,a){function s(e){this.def=e,this.constr=f,this.traits=new Set}s.prototype={};let l=n&&new WeakSet;function u(o,a){if(!o._zod){i.value=new s(a);try{Object.defineProperty(o,"_zod",i)}finally{i.value=void 0}}if(o._zod.traits.has(e))return;if(o._zod.traits.add(e),t(o,a),l){let e=Object.getPrototypeOf(o),t=o._zod.constr.prototype,i=e;for(;i&&i!==t;)i=Object.getPrototypeOf(i);let a=i??e;l.has(a)||(l.add(a),(0,r.members)(a,n))}let u=f.prototype;for(let e in u)Object.prototype.hasOwnProperty.call(u,e)&&(e in o||(o[e]=u[e].bind(o)))}let c=a?.Parent??Object;class d extends c{}function f(e){let t=a?.Parent?function(e){let t=o;if(t){let n=t.stackTraceLimit;if("number"==typeof n){try{t.stackTraceLimit=0}catch{return o=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}(d):this;u(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let r=globalThis.__zod_globalConfig?.postProcessor;return r&&r(t),t}return Object.defineProperty(d,"name",{value:e}),Object.defineProperty(f,"init",{value:u}),Object.defineProperty(f,Symbol.hasInstance,{value:t=>!!a?.Parent&&t instanceof a.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}class s extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class l extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(n=globalThis).__zod_globalConfig??(n.__zod_globalConfig={});let u=globalThis.__zod_globalConfig;function c(e){return e&&Object.assign(u,e),u}}),eu("eJJL5",function(e,t){let n;M(e.exports,"assertEqual",()=>i),M(e.exports,"assertNotEqual",()=>o),M(e.exports,"toZod",()=>a),M(e.exports,"assertIs",()=>s),M(e.exports,"assertNever",()=>l),M(e.exports,"assert",()=>u),M(e.exports,"getEnumValues",()=>c),M(e.exports,"joinValues",()=>d),M(e.exports,"stringifyPrimitive",()=>H),M(e.exports,"jsonStringifyReplacer",()=>f),M(e.exports,"cached",()=>h),M(e.exports,"nullish",()=>p),M(e.exports,"cleanRegex",()=>m),M(e.exports,"floatSafeRemainder",()=>g),M(e.exports,"defineLazy",()=>v),M(e.exports,"objectClone",()=>b),M(e.exports,"assignProp",()=>w),M(e.exports,"mergeDefs",()=>x),M(e.exports,"cloneDef",()=>_),M(e.exports,"getElementAtPath",()=>
3k),M(e.exports,"promiseAllObject",()=>S),M(e.exports,"randomString",()=>E),M(e.exports,"esc",()=>O),M(e.exports,"slugify",()=>j),M(e.exports,"captureStackTrace",()=>T),M(e.exports,"isObject",()=>C),M(e.exports,"allowsEval",()=>I),M(e.exports,"isPlainObject",()=>P),M(e.exports,"shallowClone",()=>A),M(e.exports,"numKeys",()=>R),M(e.exports,"getParsedType",()=>N),M(e.exports,"propertyKeyTypes",()=>D),M(e.exports,"primitiveTypes",()=>z),M(e.exports,"escapeRegex",()=>F),M(e.exports,"clone",()=>B),M(e.exports,"normalizeParams",()=>U),M(e.exports,"createTransparentProxy",()=>$),M(e.exports,"optionalKeys",()=>W),M(e.exports,"NUMBER_FORMAT_RANGES",()=>V),M(e.exports,"BIGINT_FORMAT_RANGES",()=>q),M(e.exports,"pick",()=>K),M(e.exports,"omit",()=>Z),M(e.exports,"extend",()=>G),M(e.exports,"safeExtend",()=>Y),M(e.exports,"merge",()=>X),M(e.exports,"partial",()=>J),M(e.exports,"required",()=>Q),M(e.exports,"aborted",()=>ee),M(e.exports,"explicitlyAborted",()=>et),M(e.exports,"prefixIssues",()=>en),M(e.exports,"unwrapMessage",()=>er),M(e.exports,"attachSchema",()=>ei),M(e.exports,"finalizeIssue",()=>eo),M(e.exports,"getSizableOrigin",()=>ea),M(e.exports,"codePointLength",()=>eu),M(e.exports,"getLengthableOrigin",()=>ec),M(e.exports,"parsedType",()=>ed),M(e.exports,"issue",()=>ef),M(e.exports,"cleanEnum",()=>eh),M(e.exports,"base64ToUint8Array",()=>ep),M(e.exports,"uint8ArrayToBase64",()=>em),M(e.exports,"base64urlToUint8Array",()=>eg),M(e.exports,"uint8ArrayToBase64url",()=>ey),M(e.exports,"hexToUint8Array",()=>ev),M(e.exports,"uint8ArrayToHex",()=>eb),M(e.exports,"Class",()=>ew),M(e.exports,"members",()=>ex),M(e.exports,"own",()=>e_),M(e.exports,"hide",()=>ek),M(e.exports,"defineLazyInternal",()=>eO),M(e.exports,"installLazyProp",()=>ej),M(e.exports,"CONSTANT_CATCH",()=>eT),M(e.exports,"constantCatch",()=>eC);var r=el("aEJki");function i(e){return e}function o(e){return e}function a(){return e=>e}function s(e){}function l(e){throw Error("Unexpected value in exhaustive check")}function u(e){}function c(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function d(e,t="|"){return e.map(e=>H(e)).join(t)}function f(e,t){return"bigint"==typeof t?t.toString():t}function h(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function p(e){return null==e}function m(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function g(e,t){let n=e/t,r=Math.round(n),i=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}let y=Symbol("evaluating");function v(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==y)return void 0===r&&(r=y,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function b(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function w(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function x(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function _(e){return x(e._zod.def)}function k(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function S(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function E(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function O(e){return JSON.stringify(e)}function j(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let T="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function C(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let I=h(()=>{if(r.globalConfig.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function P(e){if(!1===C(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==C(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function A(e){return P(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function R(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}let N=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},D=new Set(["string","number","symbol"]),z=new Set(["string","number","bigint","boolean","symbol","undefined"]);function F(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function B(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function U(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function $(e){let t;return new Proxy({},{get:(n,r,i)=>(t??(t=e()),Reflect.get(t,r,i)),set:(n,r,i,o)=>(t??(t=e()),Reflect.set(t,r,i,o)),has:(n,r)=>(t??(t=e()),Reflect.has(t,r)),deleteProperty:(n,r)=>(t??(t=e()),Reflect.deleteProperty(t,r)),ownKeys:n=>
3(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,r)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)),defineProperty:(n,r,i)=>(t??(t=e()),Reflect.defineProperty(t,r,i))})}function H(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function W(e){return Object.keys(e).filter(t=>void 0!==e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let V={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},q={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function K(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=x(e._zod.def,{get shape(){let e={};for(let r of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,r))throw Error(`Unrecognized key: "${String(r)}"`);t[r]&&w(e,r,n.shape[r])}return w(this,"shape",e),e},checks:[]});return B(e,i)}function Z(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=x(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,e))throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&delete r[e]}return w(this,"shape",r),r},checks:[]});return B(e,i)}function G(e,t){if(!P(t))throw Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e of Reflect.ownKeys(t))if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=x(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return w(this,"shape",n),n}});return B(e,r)}function Y(e,t){if(!P(t))throw Error("Invalid input to safeExtend: expected a plain object");let n=x(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return w(this,"shape",n),n}});return B(e,n)}function X(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=x(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return w(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return B(e,n)}function J(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let o=x(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(r,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t of Reflect.ownKeys(r))i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return w(this,"shape",i),i},checks:[]});return B(t,o)}function Q(e,t,n){let r=x(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t of Reflect.ownKeys(r))i[t]=new e({type:"nonoptional",innerType:r[t]});return w(this,"shape",i),i}});return B(t,r)}function ee(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function et(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function en(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function er(e){return"string"==typeof e?e:e?.message}function ei(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function eo(e,t,n){let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?e.schema??(e.schema=e.inst):e.schema=e.inst);
3let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,o=e.message?e.message:er(e.inst?._zod.def?.error?.(e))??er(i?.(e))??er(t?.error?.(e))??er(n.customError?.(e))??er(n.localeError?.(e))??"Invalid input",{inst:a,schema:s,continue:l,input:u,...c}=e;return c.path??(c.path=[]),c.message=o,t?.reportInput&&(c.input=u),c}function ea(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}let es=/[\uD800-\uDBFF]/;function eu(e){let t=e.length;if(!es.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(64512&e.charCodeAt(r))==55296&&(64512&e.charCodeAt(r+1))==56320&&(n--,r++);return n}function ec(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ed(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}function ef(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function eh(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ep(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function em(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function eg(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return ep(t+n)}function ey(e){return em(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ev(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function eb(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}class ew{constructor(...e){}}function ex(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:e_(this,t,n.bind(this))},set(e){e_(this,t,e)}})}(e,n,r.value)}}function e_(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function ek(e,t,n){return e_(e,t,n,!1)}let eS=!1,eE={configurable:!0,get(){eS=!0}};function eO(e,t,r){let i=Object.getPrototypeOf(e._zod);if(t in i&&n!==e._zod){n=void 0;return}n=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,eE);let e=eS;eS=!1;try{let n=r(this);return eS?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n}),eS=eS||e,n}catch(n){throw delete this[t],eS=eS||e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function ej(e,t,n,r){let i,o=t in(i=Object.getPrototypeOf(e))?void 0:i;o&&Object.defineProperty(o,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}let eT="~constantCatch";function eC(e){let t=()=>e;return t[eT]=!0,t}}),eu("i1d0y",function(e,t){M(e.exports,"cuid",()=>r),M(e.exports,"cuid2",()=>i),M(e.exports,"ulid",()=>o),M(e.exports,"xid",()=>
3a),M(e.exports,"ksuid",()=>s),M(e.exports,"nanoid",()=>l),M(e.exports,"nanoidOfLength",()=>u),M(e.exports,"duration",()=>c),M(e.exports,"extendedDuration",()=>d),M(e.exports,"guid",()=>f),M(e.exports,"uuid",()=>h),M(e.exports,"uuid4",()=>p),M(e.exports,"uuid6",()=>m),M(e.exports,"uuid7",()=>g),M(e.exports,"email",()=>y),M(e.exports,"html5Email",()=>v),M(e.exports,"rfc5322Email",()=>b),M(e.exports,"unicodeEmail",()=>w),M(e.exports,"idnEmail",()=>x),M(e.exports,"browserEmail",()=>_),M(e.exports,"emoji",()=>k),M(e.exports,"ipv4",()=>S),M(e.exports,"ipv6",()=>E),M(e.exports,"mac",()=>O),M(e.exports,"cidrv4",()=>j),M(e.exports,"cidrv6",()=>T),M(e.exports,"base64",()=>C),M(e.exports,"base64url",()=>I),M(e.exports,"hostname",()=>P),M(e.exports,"domain",()=>A),M(e.exports,"httpProtocol",()=>R),M(e.exports,"e164",()=>N),M(e.exports,"creditCard",()=>D),M(e.exports,"date",()=>F),M(e.exports,"time",()=>U),M(e.exports,"datetime",()=>$),M(e.exports,"string",()=>H),M(e.exports,"bigint",()=>W),M(e.exports,"integer",()=>V),M(e.exports,"number",()=>q),M(e.exports,"boolean",()=>K),M(e.exports,"null",()=>Z),M(e.exports,"undefined",()=>G),M(e.exports,"lowercase",()=>Y),M(e.exports,"uppercase",()=>X),M(e.exports,"hex",()=>J),M(e.exports,"md5_hex",()=>et),M(e.exports,"md5_base64",()=>en),M(e.exports,"md5_base64url",()=>er),M(e.exports,"sha1_hex",()=>ei),M(e.exports,"sha1_base64",()=>eo),M(e.exports,"sha1_base64url",()=>ea),M(e.exports,"sha256_hex",()=>es),M(e.exports,"sha256_base64",()=>eu),M(e.exports,"sha256_base64url",()=>ec),M(e.exports,"sha384_hex",()=>ed),M(e.exports,"sha384_base64",()=>ef),M(e.exports,"sha384_base64url",()=>eh),M(e.exports,"sha512_hex",()=>ep),M(e.exports,"sha512_base64",()=>em),M(e.exports,"sha512_base64url",()=>eg);var n=el("eJJL5");let r=/^[cC][0-9a-z]{6,}$/,i=/^[0-9a-z]+$/,o=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,a=/^[0-9a-vA-V]{20}$/,s=/^[A-Za-z0-9]{27}$/,l=/^[a-zA-Z0-9_-]{21}$/;function u(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}let c=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,d=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,f=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,h=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,p=h(4),m=h(6),g=h(7),y=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,v=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,b=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,w=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,x=w,_=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function k(){return RegExp("^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$","u")}let S=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,E=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,O=e=>{let t=n.escapeRegex(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},j=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,T=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,C=/^$|^(?:[0-9a-zA-Z+/]{4}
3)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,I=/^[A-Za-z0-9_-]*$/,P=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,A=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,R=/^https?$/,N=/^\+[1-9]\d{6,14}$/,D=/^\d(?:[ -]?\d){11,18}$/,z="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",F=RegExp(`^${z}$`);function B(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function U(e){return RegExp(`^${B(e)}$`)}function $(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${B({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${B({precision:e.precision})}`:n;return RegExp(`^${z}T(?:${r})$`)}let H=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},W=/^-?\d+n?$/,V=/^-?\d+$/,q=/^-?\d+(?:\.\d+)?$/,K=/^(?:true|false)$/i,Z=/^null$/i,G=/^undefined$/i,Y=/^[^A-Z]*$/,X=/^[^a-z]*$/,J=/^[0-9a-fA-F]*$/;function Q(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ee(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let et=/^[0-9a-fA-F]{32}$/,en=Q(22,"=="),er=ee(22),ei=/^[0-9a-fA-F]{40}$/,eo=Q(27,"="),ea=ee(27),es=/^[0-9a-fA-F]{64}$/,eu=Q(43,"="),ec=ee(43),ed=/^[0-9a-fA-F]{96}$/,ef=Q(64,""),eh=ee(64),ep=/^[0-9a-fA-F]{128}$/,em=Q(86,"=="),eg=ee(86)}),eu("3TrIT",function(e,t){var n;M(e.exports,"globalRegistry",()=>r);(n=globalThis).__zod_globalRegistry??(n.__zod_globalRegistry=new class e{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});let r=globalThis.__zod_globalRegistry}),eu("gZAXg",function(e,t){M(e.exports,"$ZodType",()=>u),M(e.exports,"standardProps",()=>d),M(e.exports,"$ZodString",()=>f),M(e.exports,"$ZodStringFormat",()=>h),M(e.exports,"$ZodGUID",()=>p),M(e.exports,"$ZodUUID",()=>m),M(e.exports,"$ZodEmail",()=>g),M(e.exports,"$ZodURL",()=>v),M(e.exports,"$ZodEmoji",()=>b),M(e.exports,"$ZodNanoID",()=>w),M(e.exports,"$ZodCUID",()=>x),M(e.exports,"$ZodCUID2",()=>_),M(e.exports,"$ZodULID",()=>k),M(e.exports,"$ZodXID",()=>S),M(e.exports,"$ZodKSUID",()=>E),M(e.exports,"$ZodISODateTime",()=>O),M(e.exports,"$ZodISODate",()=>j),M(e.exports,"$ZodISOTime",()=>T),M(e.exports,"$ZodISODuration",()=>C),M(e.exports,"$ZodIPv4",()=>I),M(e.exports,"$ZodIPv6",()=>R),M(e.exports,"$ZodMAC",()=>N),M(e.exports,"$ZodCIDRv4",()=>D),M(e.exports,"$ZodCIDRv6",()=>z),M(e.exports,"$ZodBase64",()=>B),M(e.exports,"$ZodBase64URL",()=>U),M(e.exports,"$ZodE164",()=>$),M(e.exports,"$ZodCreditCard",()=>W),M(e.exports,"$ZodJWT",()=>V),M(e.exports,"$ZodCustomStringFormat",()=>q),M(e.exports,"$ZodNumber",()=>K),M(e.exports,"$ZodNumberFormat",()=>Z),M(e.exports,"$ZodBoolean",()=>G),M(e.exports,"$ZodBigInt",()=>Y),M(e.exports,"$ZodBigIntFormat",()=>X),M(e.exports,"$ZodSymbol",()=>J),M(e.exports,"$ZodUndefined",()=>Q),M(e.exports,"$ZodNull",()=>ee),M(e.exports,"$ZodAny",()=>et),M(e.exports,"$ZodUnknown",()=>en),M(e.exports,"$ZodNever",()=>er),M(e.exports,"$ZodVoid",()=>ei),M(e.exports,"$ZodDate",()=>eo),M(e.exports,"$ZodArray",()=>es),M(e.exports,"$ZodObjectJIT",()=>em),M(e.exports,"$ZodUnion",()=>ey),M(e.exports,"$ZodXor",()=>eb),M(e.exports,"$ZodDiscriminatedUnion",()=>ew),M(e.exports,"$ZodIntersection",()=>ex),M(e.exports,"$ZodTuple",()=>ek),M(e.exports,"$ZodRecord",()=>
3ej),M(e.exports,"$ZodMap",()=>eT),M(e.exports,"$ZodSet",()=>eI),M(e.exports,"$ZodEnum",()=>eA),M(e.exports,"$ZodLiteral",()=>eR),M(e.exports,"$ZodFile",()=>eN),M(e.exports,"$ZodTransform",()=>eM),M(e.exports,"$ZodOptional",()=>eL),M(e.exports,"$ZodExactOptional",()=>ez),M(e.exports,"$ZodNullable",()=>eF),M(e.exports,"$ZodDefault",()=>eB),M(e.exports,"$ZodPrefault",()=>e$),M(e.exports,"$ZodNonOptional",()=>eH),M(e.exports,"$ZodSuccess",()=>eV),M(e.exports,"$ZodCatch",()=>eK),M(e.exports,"$ZodNaN",()=>eZ),M(e.exports,"$ZodPipe",()=>eG),M(e.exports,"$ZodCodec",()=>eX),M(e.exports,"$ZodPreprocess",()=>e0),M(e.exports,"$ZodReadonly",()=>e1),M(e.exports,"$ZodTemplateLiteral",()=>e3),M(e.exports,"$ZodFunction",()=>e4),M(e.exports,"$ZodPromise",()=>e5),M(e.exports,"$ZodLazy",()=>e6),M(e.exports,"$ZodCustom",()=>e8);var n=el("gPen2"),r=el("aEJki"),i=el("5mluK"),o=el("4d1HL"),a=el("i1d0y"),s=el("eJJL5"),l=el("hI9ya");let u=r.$constructor("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=l.version;let i=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...i??[]]:i?.length?[...i]:[];for(let t of o)for(let n of t._zod.onattach)n(e);if(0===o.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,i)=>{let o;if(t.memo)return t;let a=s.aborted(t);for(let l of n){if(l._zod.def.when){if(s.explicitlyAborted(t)||!l._zod.def.when(t))continue}else if(a)continue;let n=t.issues.length,u=l._zod.check(t);if(u instanceof Promise&&i?.async===!1)throw new r.$ZodAsyncError;if(o||u instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await u,t.issues.length!==n&&(s.attachSchema(t.issues,n,e),a||(a=s.aborted(t,n)))});else{if(t.issues.length===n)continue;s.attachSchema(t.issues,n,e),a||(a=s.aborted(t,n))}}return o?o.then(()=>t):t},n=(n,i,a)=>{if(s.aborted(n))return n.aborted=!0,n;let l=t(i,o,a);if(l instanceof Promise){if(!1===a.async)throw new r.$ZodAsyncError;return l.then(t=>e._zod.parse(t,a))}return e._zod.parse(l,a)};e._zod.run=(i,a)=>
3{if(a.skipChecks)return e._zod.parse(i,a);if("backward"===a.direction){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let s=e._zod.parse(i,a);if(s instanceof Promise){if(!1===a.async)throw new r.$ZodAsyncError;return s.then(e=>t(e,o,a))}return t(s,o,a)}}},{get"~standard"(){return s.hide(this,"~standard",d(this))},set"~standard"(value){s.own(this,"~standard",value)}}),c=e=>e.success?{value:e.data}:{issues:e.error?.issues};function d(e){return{validate:t=>{try{return c((0,o.safeParse)(e,t))}catch(n){return(0,o.safeParseAsync)(e,t).then(c)}},vendor:"zod",version:1}}let f=r.$constructor("$ZodString",(e,t)=>{u.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??a.string(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),h=r.$constructor("$ZodStringFormat",(e,t)=>{n.$ZodCheckStringFormat.init(e,t),f.init(e,t)}),p=r.$constructor("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=a.guid),h.init(e,t)}),m=r.$constructor("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=a.uuid(e))}else t.pattern??(t.pattern=a.uuid());h.init(e,t)}),g=r.$constructor("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=a.email),h.init(e,t)}),y=/[\t\n\r]/g,v=r.$constructor("$ZodURL",(e,t)=>{h.init(e,t),e._zod.check=n=>{try{var r,i;let o=n.value.trim(),s=function(e,t){if(!t.normalize&&t.protocol?.source===a.httpProtocol.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}(o,t);if(1===s)return void n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});if(2===s)return void n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});t.hostname&&((r=t.hostname).lastIndex=0,!r.test(s.hostname))&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&((i=t.protocol).lastIndex=0,!i.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol))&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?s.href:o.replace(y,"");return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),b=r.$constructor("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=a.emoji()),h.init(e,t)}),w=r.$constructor("$ZodNanoID",(e,t)=>{if(void 0!==t.length&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=void 0===t.length?a.nanoid:a.nanoidOfLength(t.length)),h.init(e,t)}),x=r.$constructor("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=a.cuid),h.init(e,t)}),_=r.$constructor("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=a.cuid2),h.init(e,t)}),k=r.$constructor("$ZodULID",(e,t)=>{t.pattern??(t.pattern=a.ulid),h.init(e,t)}),S=r.$constructor("$ZodXID",(e,t)=>{t.pattern??(t.pattern=a.xid),h.init(e,t)}),E=r.$constructor("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=a.ksuid),h.init(e,t)}),O=r.$constructor("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=a.datetime(t)),h.init(e,t),(t.local||-1===t.precision)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(e=>{e._zod.bag.laxFormat=!0}))}),j=r.$constructor("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=a.date),h.init(e,t)}),T=r.$constructor("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=a.time(t)),h.init(e,t)}),C=r.$constructor("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=a.duration),h.init(e,t)}),I=r.$constructor("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=a.ipv4),h.init(e,t),e._zod.bag.format="ipv4"}),P=/^[0-9a-fA-F:.]+$/;function A(e){if(!P.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}let R=r.$constructor("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=a.ipv6),h.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{A(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),N=r.$constructor("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=a.mac(t.delimiter)),h.init(e,t),e._zod.bag.format="mac"}),D=r.$constructor("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=a.cidrv4),h.init(e,t)}),z=r.$constructor("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=a.cidrv6),h.init(e,t),e._zod.check=n=>{!function(e){let t=e.split("/");if(2!==t.length)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}
3`===r&&!(i<0)&&!(i>128)&&A(n)}(n.value)&&n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function F(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let B=r.$constructor("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=a.base64),h.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{F(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),U=r.$constructor("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=a.base64url),h.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{!function(e){if(!a.base64url.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return F(t.padEnd(4*Math.ceil(t.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),$=r.$constructor("$ZodE164",(e,t)=>{t.pattern??(t.pattern=a.e164),h.init(e,t)}),H=/[- ]/g,W=r.$constructor("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=a.creditCard),h.init(e,t),e._zod.check=n=>{var r;r=n.value,a.creditCard.test(r)&&function(e){let t=e.length,n=1,r=0;for(;t;){let i=+e[--t];n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][i]:i}return r%10==0}(r.replace(H,""))||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}}),V=r.$constructor("$ZodJWT",(e,t)=>{h.init(e,t),e._zod.check=n=>{!function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(n.value,t.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),q=r.$constructor("$ZodCustomStringFormat",(e,t)=>{h.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),K=r.$constructor("$ZodNumber",(e,t)=>{u.init(e,t),e._zod.pattern=e._zod.bag.pattern??a.number,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Z=r.$constructor("$ZodNumberFormat",(e,t)=>{n.$ZodCheckNumberFormat.init(e,t),K.init(e,t)}),G=r.$constructor("$ZodBoolean",(e,t)=>{u.init(e,t),e._zod.pattern=a.boolean,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Y=r.$constructor("$ZodBigInt",(e,t)=>{u.init(e,t),e._zod.pattern=a.bigint,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),X=r.$constructor("$ZodBigIntFormat",(e,t)=>{n.$ZodCheckBigIntFormat.init(e,t),Y.init(e,t)}),J=r.$constructor("$ZodSymbol",(e,t)=>{u.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return"symbol"==typeof r||t.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),t}}),Q=r.$constructor("$ZodUndefined",(e,t)=>{u.init(e,t),e._zod.pattern=a.undefined,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),t}}),ee=r.$constructor("$ZodNull",(e,t)=>{u.init(e,t),e._zod.pattern=a.null,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),et=r.$constructor("$ZodAny",(e,t)=>{u.init(e,t),e._zod.parse=e=>e}),en=r.$constructor("$ZodUnknown",(e,t)=>{u.init(e,t),e._zod.parse=e=>e}),er=r.$constructor("$ZodNever",(e,t)=>{u.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),ei=r.$constructor("$ZodVoid",(e,t)=>{u.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),t}}
3),eo=r.$constructor("$ZodDate",(e,t)=>{u.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}let i=n.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),n}});function ea(e,t,n){e.issues.length&&t.issues.push(...s.prefixIssues(n,e.issues)),t.value[n]=e.value}let es=r.$constructor("$ZodArray",(e,t)=>{u.init(e,t);let n=r.globalConfig.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=n?n.alloc(e,r,Array(o.length),i):Array(o.length);let a=[];for(let e=0;e<o.length;e++){let n=o[e],s=t.element._zod.run({value:n,issues:[]},i);s instanceof Promise?a.push(s.then(t=>ea(t,r,e))):ea(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function eu(e,t,n,r,i,o){let a=n in r,l="optional"===o;if(a||!l||"optional"!==i){if(e.issues.length){if(void 0!==i&&l&&!a)return;t.issues.push(...s.prefixIssues(n,e.issues))}if(!a&&void 0===i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===e.value?a&&(t.value[n]=void 0):t.value[n]=e.value}}let ec=[];function ed(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:ec,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let o=s.optionalKeys(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function ef(e,t,n,r,i,o){let a=[],s=i.keySet,l=i.catchall._zod,u=l.def.type,c=l.optin,d=l.optout;for(let i in t){if(s.has(i))continue;if("__proto__"===i){"never"===u&&a.push(i);continue}if("never"===u){a.push(i);continue}let o=l.run({value:t[i],issues:[]},r);o instanceof Promise?e.push(o.then(e=>eu(e,n,i,t,c,d))):eu(o,n,i,t,c,d)}return(a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o,continue:!0}),e.length)?Promise.all(e).then(()=>n):n}let eh=new WeakMap,ep=r.$constructor("$ZodObject",(e,t)=>{let n;u.init(e,t);let i=Object.getOwnPropertyDescriptor(t,"shape");if(!i?.get){let e=t.shape;eh.set(t,e),Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),eh.set(t,n),n}})}let o=s.cached(()=>ed(t));s.defineLazyInternal(e,"propValues",e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){for(let t of(Object.prototype.hasOwnProperty.call(n,e)||s.assignProp(n,e,new Set),r.values))n[e].add(t);void 0!==r.optin&&n[e].add(void 0)}}return n});let a=s.isObject,l=t.catchall,c=r.globalConfig.memoizer;c?.attach(e),e._zod.parse=(t,r)=>{n??(n=o.value);let i=t.value;if(!a(i))return t.issues.push({expected:"object",code:"invalid_type",input:i,inst:e}),t;t.value=c?c.alloc(e,t,{},r):{};let s=[],u=n.shape;for(let e of n.allKeys){if("__proto__"===e)continue;let n=u[e],o=n._zod.optin,a=n._zod.optout,l=n._zod.run({value:i[e],issues:[]},r);l instanceof Promise?s.push(l.then(n=>eu(n,t,e,i,o,a))):eu(l,t,e,i,o,a)}return l?ef(s,i,t,r,o.value,e):s.length?Promise.all(s).then(()=>t):t}}),em=r.$constructor("$ZodObjectJIT",(e,t)=>{let n,o;ep.init(e,t);let a=e._zod.parse,l=s.cached(()=>ed(t)),u=r.globalConfig.memoizer,c=s.isObject,d=!r.globalConfig.jitless,f=s.allowsEval,h=d&&f.value,p=t.catchall;e._zod.parse=(r,f)=>{o??(o=l.value);let m=r.value;return c(m)?d&&h&&f?.async===!1&&!0!==f.jitless?(n||(n=(t=>{let n=l.value,r=n.symbolKeys,o=new(0,i.Doc)(["payload","ctx"],{shape:t,inst:e,memo:u,syms:r}),a=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
4          for (let i = 0; i < ${e}.issues.length; i++) {
5            const iss = ${e}.issues[i];
6            iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
7            payload.issues.push(iss);
8          }`;o.write("const input = payload.value;");let d=Object.create(null),f=0;for(let e of n.allKeys)d[e]=`key_${f++}`;for(let e of(o.write(u?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};
8"),n.allKeys)){if("__proto__"===e)continue;let n=d[e],i="symbol"==typeof e?`syms[${r.indexOf(e)}]`:s.esc(e),l=`${i} in input`,u=t[e],f=u?._zod?.optin,h=void 0!==f,p=u?._zod?.optout==="optional";if(o.write(`const ${n} = ${a(i)};`),h&&p){let e="optional"===f?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
9        const ${n}_present = ${l};
10        if (!${n}.issues.length || ${n}_present) {
11          if (${n}.issues.length) {${c(n,i)}
12          }
13
14          if (${e}) {
15            newResult[${i}] = ${n}.value;
16          }
17        }
18
19      `)}else h?o.write(`
20        if (${n}.issues.length) {${c(n,i)}
21        }
22        
23        if (${n}.value === undefined) {
24          if (${l}) {
25            newResult[${i}] = undefined;
26          }
27        } else {
28          newResult[${i}] = ${n}.value;
29        }
30
31      `):o.write(`
32        const ${n}_present = ${l};
33        if (${n}.issues.length) {${c(n,i)}
34        }
35        if (!${n}_present && !${n}.issues.length) {
36          payload.issues.push({
37            code: "invalid_type",
38            expected: "nonoptional",
39            input: undefined,
40            path: [${i}]
41          });
42        }
43
44        if (${n}_present) {
45          newResult[${i}] = ${n}.value;
46        }
47
48      `)}return o.write("payload.value = newResult;"),o.write("return payload;"),o.compile()})(t.shape)),r=n(r,f),p)?ef([],m,r,f,o,e):r:a(r,f):(r.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),r)}});function eg(e,t,n,i){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let o=e.filter(e=>!s.aborted(e));return 1===o.length?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>s.finalizeIssue(e,i,r.config())))}),t)}let ey=r.$constructor("$ZodUnion",(e,t)=>{u.init(e,t),s.defineLazyInternal(e,"optin",e=>e.def.options.some(e=>"defaulted"===e._zod.optin)?"defaulted":e.def.options.some(e=>void 0!==e._zod.optin)?"optional":void 0),s.defineLazyInternal(e,"optout",e=>e.def.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),s.defineLazyInternal(e,"values",e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),s.defineLazyInternal(e,"pattern",e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>s.cleanRegex(e.source)).join("|")})$`)}});let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)a.push(t),o=!0;else{if(0===t.issues.length)return t;a.push(t)}}return o?Promise.all(a).then(t=>eg(t,r,e,i)):eg(a,r,e,i)}});function ev(e,t,n,i){let o=[];for(let t=0;t<e.length;t++)0===e[t].issues.length&&o.push(t);return 1===o.length?t.value=e[o[0]].value:0===o.length?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>s.finalizeIssue(e,i,r.config())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:o}),t}let eb=r.$constructor("$ZodXor",(e,t)=>{ey.init(e,t),t.inclusive=!1;let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(a.push(t),o=!0):a.push(t)}return o?Promise.all(a).then(t=>ev(t,r,e,i)):ev(a,r,e,i)}}),ew=r.$constructor("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ey.init(e,t);let n=e._zod.parse;s.defineLazyInternal(e,"propValues",e=>{let t={};for(let n of e.def.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(n)}"`);for(let[e,n]of Object.entries(r))for(let r of(Object.prototype.hasOwnProperty.call(t,e)||s.assignProp(t,e,new Set),n))t[e].add(r)}return t}),t.options.forEach((e,n)=>{let r=eh.get(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=s.cached(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,o)=>{let a=i.value;if(!s.isObject(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let l=r.value.get(a?.[t.discriminator]);return l?l._zod.run(i,o):t.unionFallback||"backward"===o.direction?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input
48:a,path:[t.discriminator],inst:e}),i)}}),ex=r.$constructor("$ZodIntersection",(e,t)=>{u.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),o=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,n])=>e_(e,t,n)):e_(e,i,o)}});function e_(e,t,n){let r,i=new Map,o=new Map,a=(e,t)=>{let n;if("unrecognized_keys"!==e.code||e.path?.length)if("invalid_key"!==e.code||"record"!==e.origin||e.path?.length!==1)return!1;else{let t=String(e.path[0]);o.has(t)||o.set(t,e),n=[t]}else r??(r=e),n=e.keys;for(let e of n)i.has(e)||i.set(e,{}),i.get(e)[t]=!0;return!0};for(let n of t.issues)a(n,"l")||e.issues.push(n);for(let t of n.issues)a(t,"r")||e.issues.push(t);let l=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(l.length){let t=r?l.filter(e=>r.keys.includes(e)):[];for(let n of(t.length&&e.issues.push({...r,keys:t}),l))!t.includes(n)&&o.has(n)&&e.issues.push(o.get(n))}let u=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(s.isPlainObject(t)&&s.isPlainObject(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),o={...t,...n};for(let r of(Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__,i)){if("__proto__"===r)continue;let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};o[r]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let o=e(t[i],n[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!u.valid){if(s.aborted(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`)}return e.value=u.data,e}let ek=r.$constructor("$ZodTuple",(e,t)=>{u.init(e,t);let n=t.items,i=r.globalConfig.memoizer;i?.attach(e),e._zod.parse=(r,o)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=i?i.alloc(e,r,[],o):[];let s=[],l=eS(n,"optin"),u=eS(n,"optout");if(!t.rest){if(a.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}let c=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},o);t instanceof Promise?s.push(t.then(t=>{c[e]=t})):c[e]=t}if(t.rest){let e=n.length-1;for(let i of a.slice(n.length)){e++;let n=t.rest._zod.run({value:i,issues:[]},o);n instanceof Promise?s.push(n.then(t=>eE(t,r,e))):eE(n,r,e)}}return s.length?Promise.all(s).then(()=>eO(c,r,n,a,u)):eO(c,r,n,a,u)}});function eS(e,t){for(let n=e.length-1;n>=0;n--)if(!("optin"===t?void 0!==e[n]._zod.optin:"optional"===e[n]._zod.optout))return n+1;return 0}function eE(e,t,n){e.issues.length&&t.issues.push(...s.prefixIssues(n,e.issues)),t.value[n]=e.value}function eO(e,t,n,r,i){for(let o=0;o<n.length;o++){let a=e[o],l=o<r.length;if(!l&&o>=i&&"optional"===n[o]._zod.optin){t.value.length=o;break}if(a.issues.length){if(!l&&o>=i){t.value.length=o;break}t.issues.push(...s.prefixIssues(o,a.issues))}t.value[o]=a.value}for(let e=t.value.length-1;e>=r.length;e--)if("optional"===n[e]._zod.optout&&void 0===t.value[e])t.value.length=e;else break;return t}let ej=r.$constructor("$ZodRecord",(e,t)=>{u.init(e,t);let n=r.globalConfig.memoizer;n?.attach(e),e._zod.parse=(i,o)=>{let l=i.value;if(!s.isPlainObject(l))return i.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),i;let u=[],c=t.keyType._zod.values;if(c&&!t.partial){let a;i.value=n?n.alloc(e,i,{},o):{};let d=new Set;for(let n of c)if("string"==typeof n||"number"==typeof n||"symbol"==typeof n){if(d.add("number"==typeof n?n.toString():n),"__proto__"===n)continue;let a=t.keyType._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(a.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(e=>
48s.finalizeIssue(e,o,r.config())),input:n,path:[n],inst:e});continue}let c=a.value;if("__proto__"===c)continue;let f=t.valueType._zod.run({value:l[n],issues:[]},o);f instanceof Promise?u.push(f.then(e=>{e.issues.length&&i.issues.push(...s.prefixIssues(n,e.issues)),i.value[c]=e.value})):(f.issues.length&&i.issues.push(...s.prefixIssues(n,f.issues)),i.value[c]=f.value)}for(let e in l)if(!d.has(e))if("loose"===t.mode){if("__proto__"===e)continue;i.value[e]=l[e]}else(a=a??[]).push(e);a&&a.length>0&&i.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:a,continue:!0})}else{let d;for(let f of(i.value=n?n.alloc(e,i,{},o):{},Reflect.ownKeys(l))){if("__proto__"===f||!Object.prototype.propertyIsEnumerable.call(l,f))continue;let n=t.keyType._zod.run({value:f,issues:[]},o);if(n instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof f&&a.number.test(f)&&n.issues.length){let e=t.keyType._zod.run({value:Number(f),issues:[]},o);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(n=e)}if(n.issues.length){"loose"===t.mode?i.value[f]=l[f]:c?(d=d??[]).push(f):i.issues.push({code:"invalid_key",origin:"record",issues:n.issues.map(e=>s.finalizeIssue(e,o,r.config())),input:f,path:[f],inst:e});continue}let h=n.value;if("__proto__"===h)continue;let p=t.valueType._zod.run({value:l[f],issues:[]},o);p instanceof Promise?u.push(p.then(e=>{e.issues.length&&i.issues.push(...s.prefixIssues(f,e.issues)),i.value[h]=e.value})):(p.issues.length&&i.issues.push(...s.prefixIssues(f,p.issues)),i.value[h]=p.value)}d&&d.length>0&&i.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:d,continue:!0})}return u.length?Promise.all(u).then(()=>i):i}}),eT=r.$constructor("$ZodMap",(e,t)=>{u.init(e,t);let n=r.globalConfig.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let o=r.value;if(!(o instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),r;let a=[];for(let[s,l]of(r.value=n?n.alloc(e,r,new Map,i):new Map,o)){let n=t.keyType._zod.run({value:s,issues:[]},i),u=t.valueType._zod.run({value:l,issues:[]},i);n instanceof Promise||u instanceof Promise?a.push(Promise.all([n,u]).then(([t,n])=>{eC(t,n,r,s,o,e,i)})):eC(n,u,r,s,o,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function eC(e,t,n,i,o,a,l){e.issues.length&&(s.propertyKeyTypes.has(typeof i)?n.issues.push(...s.prefixIssues(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:a,issues:e.issues.map(e=>s.finalizeIssue(e,l,r.config()))})),t.issues.length&&(s.propertyKeyTypes.has(typeof i)?n.issues.push(...s.prefixIssues(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:a,key:i,issues:t.issues.map(e=>s.finalizeIssue(e,l,r.config()))})),n.value.set(e.value,t.value)}let eI=r.$constructor("$ZodSet",(e,t)=>{u.init(e,t);let n=r.globalConfig.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let o=r.value;if(!(o instanceof Set))return r.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];for(let s of(r.value=n?n.alloc(e,r,new Set,i):new Set,o)){let e=t.valueType._zod.run({value:s,issues:[]},i);e instanceof Promise?a.push(e.then(e=>eP(e,r))):eP(e,r)}return a.length?Promise.all(a).then(()=>r):r}});function eP(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let eA=r.$constructor("$ZodEnum",(e,t)=>{u.init(e,t);let n=s.getEnumValues(t.entries),r=new Set(n);e._zod.values=r;let i=n.filter(e=>s.propertyKeyTypes.has(typeof e));e._zod.pattern=new RegExp(i.length?`^(${i.map(e=>s.escapeRegex(e.toString())).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(t,i)=>{let o=t.value;return r.has(o)||t.issues.push({code:"invalid_value",values:n,input:o,inst:e}),t}}),eR=r.$constructor("$ZodLiteral",(e,t)=>{u.init(e,t);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(t.values.length?`^(${t.values.map(e=>"string"==typeof e?s.escapeRegex(e):e?s.escapeRegex(e.toString()):String(e)).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(r,i)=>{let o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),r}}),eN=r.$constructor("$ZodFile",(e,t)=>{u.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),t}}),eM=r.$constructor("$ZodTransform",(e,t)=>{u.init(e,t),e._zod.optin="optional",r.globalConfig.memoizer?.guard(e),e._zod.parse=(n,i)=>{if("backward"===i.direction)throw new r.$ZodEncodeError(e.constructor.name);
48let o=t.transform(n.value,n);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(e=>(n.value=e,n));if(o instanceof Promise)throw new r.$ZodAsyncError;return n.value=o,n}});function eD(e,t){return e.value=t.issues.length?void 0:t.value,e}let eL=r.$constructor("$ZodOptional",(e,t)=>{u.init(e,t),s.defineLazyInternal(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),e._zod.optout="optional",s.defineLazyInternal(e,"values",e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),s.defineLazyInternal(e,"pattern",e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${s.cleanRegex(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(void 0===e.value){if("defaulted"!==t.innerType._zod.optin)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>eD(e,t)):eD(e,r)}return t.innerType._zod.run(e,n)}}),ez=r.$constructor("$ZodExactOptional",(e,t)=>{eL.init(e,t),s.defineLazyInternal(e,"values",e=>e.def.innerType._zod.values),s.defineLazyInternal(e,"pattern",e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),eF=r.$constructor("$ZodNullable",(e,t)=>{u.init(e,t),s.defineLazyInternal(e,"optin",e=>e.def.innerType._zod.optin),s.defineLazyInternal(e,"optout",e=>e.def.innerType._zod.optout),s.defineLazyInternal(e,"pattern",e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${s.cleanRegex(t.source)}|null)$`):void 0}),s.defineLazyInternal(e,"values",e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),eB=r.$constructor("$ZodDefault",(e,t)=>{u.init(e,t),e._zod.optin="defaulted",s.defineLazyInternal(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>eU(e,t)):eU(r,t)}});function eU(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let e$=r.$constructor("$ZodPrefault",(e,t)=>{u.init(e,t),e._zod.optin="defaulted",s.defineLazyInternal(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),eH=r.$constructor("$ZodNonOptional",(e,t)=>{u.init(e,t),s.defineLazyInternal(e,"values",e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>eW(t,e)):eW(i,e)}});function eW(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let eV=r.$constructor("$ZodSuccess",(e,t)=>{u.init(e,t),e._zod.parse=(e,n)=>{if("backward"===n.direction)throw new r.$ZodEncodeError("ZodSuccess");let i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===i.issues.length,e)}});function eq(e,t,n,i){return t.issues.length?e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>s.finalizeIssue(e,i,r.config()))},input:e.value}):(e.value=t.value,t.memo&&(e.memo=!0)),e}let eK=r.$constructor("$ZodCatch",(e,t)=>{u.init(e,t),s.defineLazyInternal(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),s.defineLazyInternal(e,"optout",e=>e.def.innerType._zod.optout),s.defineLazyInternal(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>eq(e,r,t,n)):eq(e,r,t,n)}}),eZ=r.$constructor("$ZodNaN",(e,t)=>{u.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),eG=r.$constructor("$ZodPipe",(e,t)=>{u.init(e,t),s.defineLazyInternal(e,"values",e=>e.def.in._zod.values),s.defineLazyInternal(e,"optin",e=>e.def.in._zod.optin),s.defineLazyInternal(e,"optout",e=>e.def.out._zod.optout),s.defineLazyInternal(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>eY(e,t.in,n)):eY(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>eY(e,t.out,n)):eY(r,t.out,n)}});function eY(e,t,n){return e.issues.some(e=>"unrecognized_keys"!==e.code)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}let eX=r.$constructor("$ZodCodec",(e,t)=>{u.init(e,t),s.defineLazyInternal(e,"values",e=>e.def.in._zod.values),s.defineLazyInternal(e,"optin",e=>e.def.in._zod.optin),s.defineLazyInternal(e,"optout",e=>e.def.out._zod.optout),s.defineLazyInternal(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if("forward"===(n.direction||"forward")){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>eJ(e,t,n)):eJ(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>eJ(e,t,n)):eJ(r,t,n)}}});function eJ(e,t,n){if(e.issues.length)return e.aborted=!0,e;if("forward"===(n.direction||"forward")){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>eQ(e,r,t.out,n)):eQ(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>eQ(e,r,t.in,n)):eQ(e,r,t.in,n)}}function eQ(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}let e0=r.$constructor("$ZodPreprocess",(e,t)=>{eG.init(e,t)}),e1=r.$constructor("$ZodReadonly",(e,t)=>{u.init(e,t),s.defineLazyInternal(e,"propValues",e=>e.def.innerType._zod.propValues),s.defineLazyInternal(e,"values",e=>e.def.innerType._zod.values),s.defineLazyInternal(e,"optin",e=>e.def.innerType?._zod?.optin),s.defineLazyInternal(e,"optout",e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e2):e2(r)}});function e2(e){return e.memo||(e.value=Object.freeze(e.value)),e}let e3=r.$constructor("$ZodTemplateLiteral",(e,t)=>{u.init(e,t);let n=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith("^"),i=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(r,i))}else if(null===e||s.primitiveTypes.has(typeof e))n.push(s.escapeRegex(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join("")}$`),e._zod.parse=(n,r)=>("string"!=typeof n.value?n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),n)}),e4=r.$constructor("$ZodFunction",(e,t)=>(u.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return Object.defineProperty(function(...n){let r=Reflect.apply(t,this,e._def.input?(0,o.parse)(e._def.input,n):n);return e._def.output?(0,o.parse)(e._def.output,r):r},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...n){let r=e._def.input?await (0,o.parseAsync)(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await (0,o.parseAsync)(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(t,n)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let n=e.constructor;return new n(Array.isArray(t[0])?{type:"function",input:new ek({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),e5=r.$constructor("$ZodPromise",(e,t)=>{u.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),e6=r.$constructor("$ZodLazy",(e,t)=>{u.init(e,t),s.defineLazy(e._zod,"innerType",()=>(t._cachedInner||(t._cachedInner=t.getter()),t._cachedInner)),s.defineLazyInternal(e,"pattern",e=>e.innerType?._zod?.pattern),s.defineLazyInternal(e,"propValues",e=>e.innerType?._zod?.propValues),s.defineLazyInternal(e,"optin",e=>e.innerType?._zod?.optin??void 0),s.defineLazyInternal(e,"optout",e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),e8=r.$constructor("$ZodCustom",(e,t)=>{n.$ZodCheck.init(e,t),u.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>e9(t,n,r,e));e9(i,n,r,e)}});function e9(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(s.issue(e))}}}),eu("5mluK",function(e,t){M(e.exports,"Doc",()=>n);
48class n{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){let e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
49${t.join("\n")}
50};`)(...Object.values(this.closed))}}}),eu("4d1HL",function(e,t){M(e.exports,"_parse",()=>a),M(e.exports,"parse",()=>s),M(e.exports,"_parseAsync",()=>l),M(e.exports,"parseAsync",()=>u),M(e.exports,"_safeParse",()=>c),M(e.exports,"safeParse",()=>d),M(e.exports,"_safeParseAsync",()=>f),M(e.exports,"safeParseAsync",()=>h),M(e.exports,"_encode",()=>p),M(e.exports,"_decode",()=>m),M(e.exports,"_encodeAsync",()=>g),M(e.exports,"_decodeAsync",()=>y),M(e.exports,"_safeEncode",()=>v),M(e.exports,"_safeDecode",()=>b),M(e.exports,"_safeEncodeAsync",()=>w),M(e.exports,"_safeDecodeAsync",()=>x);var n=el("aEJki"),r=el("cCeLw"),i=el("eJJL5");function o(e,t){return{callee:t?.callee??e,Err:t?.Err}}let a=e=>{let t=(r,o,a,s)=>{let l=a?{...a,async:!1}:{async:!1},u=r._zod.run({value:o,issues:[]},l);if(u instanceof Promise)throw new n.$ZodAsyncError;if(u.issues.length){let r=new(s?.Err??e)(u.issues.map(e=>i.finalizeIssue(e,l,n.config())));throw i.captureStackTrace(r,s?.callee??t),r}return u.value};return t},s=a(r.$ZodRealError),l=e=>{let t=async(r,o,a,s)=>{let l=a?{...a,async:!0}:{async:!0},u=r._zod.run({value:o,issues:[]},l);if(u instanceof Promise&&(u=await u),u.issues.length){let r=new(s?.Err??e)(u.issues.map(e=>i.finalizeIssue(e,l,n.config())));throw i.captureStackTrace(r,s?.callee??t),r}return u.value};return t},u=l(r.$ZodRealError),c=e=>(t,o,a)=>{let s=a?{...a,async:!1}:{async:!1},l=t._zod.run({value:o,issues:[]},s);if(l instanceof Promise)throw new n.$ZodAsyncError;return l.issues.length?{success:!1,error:new(e??r.$ZodError)(l.issues.map(e=>i.finalizeIssue(e,s,n.config())))}:{success:!0,data:l.value}},d=c(r.$ZodRealError),f=e=>async(t,r,o)=>{let a=o?{...o,async:!0}:{async:!0},s=t._zod.run({value:r,issues:[]},a);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(e=>i.finalizeIssue(e,a,n.config())))}:{success:!0,data:s.value}},h=f(r.$ZodRealError),p=e=>{let t=a(e),n=(e,r,i,a)=>t(e,r,i?{...i,direction:"backward"}:{direction:"backward"},o(n,a));return n};r.$ZodRealError;let m=e=>{let t=a(e),n=(e,r,i,a)=>t(e,r,i,o(n,a));return n};r.$ZodRealError;let g=e=>{let t=l(e),n=async(e,r,i,a)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return await t(e,r,s,o(n,a))};return n};r.$ZodRealError;let y=e=>{let t=l(e),n=async(e,r,i,a)=>await t(e,r,i,o(n,a));return n};r.$ZodRealError;let v=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return c(e)(t,n,i)};r.$ZodRealError;let b=e=>(t,n,r)=>c(e)(t,n,r);r.$ZodRealError;let w=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return f(e)(t,n,i)};r.$ZodRealError;let x=e=>async(t,n,r)=>f(e)(t,n,r);r.$ZodRealError}),eu("cCeLw",function(e,t){M(e.exports,"$ZodError",()=>u),M(e.exports,"$ZodRealError",()=>c),M(e.exports,"flattenError",()=>d),M(e.exports,"formatError",()=>f);var n=el("aEJki"),r=el("eJJL5");let i={get:function(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,r.jsonStringifyReplacer,2)),e.message},set:function(e){this._zod.message=e},enumerable:!0,configurable:!0},o={value:void 0,enumerable:!1},a={value:void 0,enumerable:!1},s=new WeakSet([Object.prototype,Error.prototype]),l=(e,t)=>{e.name="$ZodError",o.value=e._zod,Object.defineProperty(e,"_zod",o),a.value=t,Object.defineProperty(e,"issues",a),o.value=void 0,a.value=void 0,Object.defineProperty(e,"message",i);let n=Object.getPrototypeOf(e);s.has(n)||(s.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},u=(0,n.$constructor)("$ZodError",l),c=(0,n.$constructor)("$ZodError",l,void 0,{Parent:Error});function d(e,t=e=>e.message){let n={},r=[];for(let a of e.issues)if(a.path.length>0){var i,o;(i=a.path[0],o=()=>[],!Object.prototype.hasOwnProperty.call(n,i)&&("__proto__"===i?Object.defineProperty(n,i,{value:o(),writable:!0,enumerable:!0,configurable:!0}):n[i]=o()),n[i]).push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}function f(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>r({issues:e},[...i,...o.path]));else if("invalid_key"===o.code)r({issues:o.issues},[...i,...o.path]);else if("invalid_element"===o.code)r({issues:o.issues},[...i,...o.path]);else{let e=[...i,...o.path];if(0===e.length)n._errors.push(t(o));else{let r=n,i=0;for(;i<e.length;){let n=e[i],a=i===e.length-1;if("_errors"===n){a&&r._errors.push(t(o)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];a&&s._errors.push(t(o)),r=s,i++}}}};return r(e),n}}),eu("hI9ya",function(e,t){M(e.exports,"version",()=>n);let n={major:4,minor:5,patch:4}}),eu("b03fG",function(e,t){let n;M(e.exports,"memoizer",()=>c);
50class r extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}let i="~memo",o=[];function a(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}let s=new WeakMap,l=[],u={alloc(e,t,r){let i=n;if(!i)return r;n=void 0;let o={value:r,issues:null};return i.set(t.value,o),l.push(o),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{var o,a;let s;if("backward"!==n.direction&&(o=n,a=e.value,void 0!==(s=o[i]?.backEdges)&&null!==a&&"object"==typeof a&&s.has(a)))throw new r;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let r,u,c;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,d=(f,h)=>{let p;if(void 0===r&&!(r=function e(t,n){let r=s.get(t);if(void 0!==r)return r;if(n.has(t))return!0;n.add(t);let i=!1,o=t=>{!i&&t?._zod&&e(t,n)&&(i=!0)},a=t._zod.def;switch(a.type){case"object":for(let e of Reflect.ownKeys(a.shape))o(a.shape[e]);o(a.catchall);break;case"array":o(a.element);break;case"tuple":for(let e of a.items)o(e);o(a.rest);break;case"record":case"map":o(a.keyType),o(a.valueType);break;case"set":o(a.valueType);break;case"union":for(let e of a.options)o(e);break;case"intersection":o(a.left),o(a.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(a.innerType);break;case"pipe":o(a.in),o(a.out);break;case"function":o(a.input),o(a.output);break;case"lazy":o(t._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let e in a){let t=Object.getOwnPropertyDescriptor(a,e);if(!t||t.get)continue;let n=t.value;if(n&&"object"==typeof n){if(n._zod)o(n);else if(Array.isArray(n))for(let e of n)o(e)}}}return n.delete(t),s.set(t,i),i}(e,new Set)))return e._zod.parse=t,e._zod.run===d&&(e._zod.run=t),t(f,h);let m=f.value;if(null===m||"object"!=typeof m)return t(f,h);let g=h[i];if(g||(g={buckets:new Map,backEdges:void 0},h[i]=g),u===h)p=c;else{var y;let t;(t=(y=g).buckets.get(e))||(t=new Map,y.buckets.set(e,t)),p=t,u=h,c=p}let v=p.get(m);if(v)return f.value=v.value,v.issues?v.issues.length&&f.issues.push(...a(v.issues)):(f.memo=!0,g.backEdges??(g.backEdges=new Set),g.backEdges.add(v.value)),f;n=p;let b=l.length,w=t(f,h);n=void 0;let x=l.length>b?l.pop():void 0;return w instanceof Promise?w.then(e=>(x&&(x.issues=e.issues.length?a(e.issues):o),e)):(x&&(x.issues=w.issues.length?a(w.issues):o),w)};e._zod.parse=d,e._zod.run===t&&(e._zod.run=d)})}};function c(){return u}}),eu("lFBOL",function(e,t){M(e.exports,"stringProcessor",()=>a),M(e.exports,"numberProcessor",()=>s),M(e.exports,"booleanProcessor",()=>l),M(e.exports,"bigintProcessor",()=>u),M(e.exports,"symbolProcessor",()=>c),M(e.exports,"nullProcessor",()=>d),M(e.exports,"undefinedProcessor",()=>f),M(e.exports,"voidProcessor",()=>h),M(e.exports,"neverProcessor",()=>p),M(e.exports,"anyProcessor",()=>m),M(e.exports,"unknownProcessor",()=>g),M(e.exports,"dateProcessor",()=>y),M(e.exports,"enumProcessor",()=>v),M(e.exports,"literalProcessor",()=>b),M(e.exports,"nanProcessor",()=>w),M(e.exports,"templateLiteralProcessor",()=>x),M(e.exports,"fileProcessor",()=>_),M(e.exports,"successProcessor",()=>k),M(e.exports,"customProcessor",()=>S),M(e.exports,"functionProcessor",()=>E),M(e.exports,"transformProcessor",()=>O),M(e.exports,"mapProcessor",()=>j),M(e.exports,"setProcessor",()=>T),M(e.exports,"arrayProcessor",()=>C),M(e.exports,"objectProcessor",()=>P),M(e.exports,"unionProcessor",()=>A),M(e.exports,"intersectionProcessor",()=>R),M(e.exports,"tupleProcessor",()=>N),M(e.exports,"recordProcessor",()=>z),M(e.exports,"nullableProcessor",()=>F),M(e.exports,"nonoptionalProcessor",()=>B),M(e.exports,"defaultProcessor",()=>H),M(e.exports,"prefaultProcessor",()=>W),M(e.exports,"catchProcessor",()=>V),M(e.exports,"pipeProcessor",()=>q),M(e.exports,"readonlyProcessor",()=>K),M(e.exports,"promiseProcessor",()=>Z),M(e.exports,"optionalProcessor",()=>G),M(e.exports,"lazyProcessor",()=>Y);var n=el("i1d0y"),r=el("1K28a"),i=el("eJJL5");let o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=(e,t,n,r)=>{n.type="string";let{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:u,laxFormat:c}=e._zod.bag;if("number"==typeof i&&(n.minLength=i),"number"==typeof a&&(n.maxLength=a),s&&(n.format=o[s]??s,""===n.format&&delete n.format,("time"===s||c)&&delete n.format),u&&(n.contentEncoding=u),l&&l.size>0){let e=[...l];1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},s=(e,t,n,i)=>{let{minimum:o,maximum:a,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;"string"==typeof s&&s.includes("int")?n.type="integer":n.type="number";let d="number"==typeof c&&c>=(o??-1/0),f="number"==typeof u&&u<=(a??1/0),h="draft-04"===t.target||"openapi-3.0"===t.target;d?h?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c:"number"==typeof o&&(n.minimum=o),f?h?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:"number"==typeof a&&(n.maximum=a),"number"==typeof l&&(Number.isFinite(l)&&0!==l?n.multipleOf=Math.abs(l):(0,r.handleUnrepresentable)(e,t,n,i,`A multipleOf divisor of ${l} cannot be represented in JSON Schema`))},l=(e,t,n,r)=>{n.type="boolean"},u=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"BigInt cannot be represented in JSON Schema")},c=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"Symbols cannot be represented in JSON Schema")},d=(e,t,n,r)=>{"openapi-3.0"===t.target?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},f=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"Undefined cannot be represented in JSON Schema")},h=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"Void cannot be represented in JSON Schema")},p=(e,t,n,r)=>{n.not={}},m=(e,t,n,r)=>{},g=(e,t,n,r)=>{},y=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"Date cannot be represented in JSON Schema")},v=(e,t,n,r)=>{let o=e._zod.def,a=(0,i.getEnumValues)(o.entries);if(0===a.length){n.not={};return}a.every(e=>"number"==typeof e)&&(n.type="number"),a.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=a},b=(e,t,n,i)=>{let o=e._zod.def;if(0===o.values.length){n.not={};return}let a=[];for(let s of o.values)if(void 0===s){if((0,r.handleUnrepresentable)(e,t,n,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if("bigint"==typeof s){if((0,r.handleUnrepresentable)(e,t,n,i,"BigInt literals cannot be represented in JSON Schema"))return;a.push(Number(s))}else a.push(s);if(0===a.length);else if(1===a.length){let e=a[0];
50n.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?n.enum=[e]:n.const=e}else a.every(e=>"number"==typeof e)&&(n.type="number"),a.every(e=>"string"==typeof e)&&(n.type="string"),a.every(e=>"boolean"==typeof e)&&(n.type="boolean"),a.every(e=>null===e)&&(n.type="null"),n.enum=a},w=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"NaN cannot be represented in JSON Schema")},x=(e,t,n,r)=>{let i=e._zod.pattern;if(!i)throw Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},_=(e,t,n,r)=>{let i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:a,mime:s}=e._zod.bag;void 0!==o&&(i.minLength=o),void 0!==a&&(i.maxLength=a),s?1===s.length?(i.contentMediaType=s[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=s.map(e=>({contentMediaType:e}))):Object.assign(n,i)},k=(e,t,n,r)=>{n.type="boolean"},S=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"Custom types cannot be represented in JSON Schema")},E=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"Function types cannot be represented in JSON Schema")},O=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"Transforms cannot be represented in JSON Schema")},j=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"Map cannot be represented in JSON Schema")},T=(e,t,n,i)=>{(0,r.handleUnrepresentable)(e,t,n,i,"Set cannot be represented in JSON Schema")},C=(e,t,n,i)=>{let o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;"number"==typeof a&&(n.minItems=a),"number"==typeof s&&(n.maxItems=s),n.type="array",n.items=(0,r.process)(o.element,t,{...i,path:[...i.path,"items"]})};function I(e){let t=e._zod.def;return"pipe"===t.type&&t.in._zod.traits.has("$ZodTransform")?I(t.out):"catch"===t.type?I(t.innerType):e._zod.optin}let P=(e,t,n,o)=>{let a=e._zod.def,s=a.shape;if(Object.getOwnPropertySymbols(s).length&&(0,r.handleUnrepresentable)(e,t,n,o,"Symbol keys cannot be represented in JSON Schema"))return;for(let e in n.type="object",n.properties={},s)(0,i.assignProp)(n.properties,e,(0,r.process)(s[e],t,{...o,path:[...o.path,"properties",e]}));let l=new Set([...new Set(Object.keys(s))].filter(e=>{let n=a.shape[e];return"input"===t.io?void 0===I(n):void 0===n._zod.optout}));l.size>0&&(n.required=Array.from(l)),a.catchall?._zod.def.type==="never"?n.additionalProperties=!1:a.catchall?a.catchall&&(n.additionalProperties=(0,r.process)(a.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)},A=(e,t,n,i)=>{let o=e._zod.def,a=!1===o.inclusive,s=o.options.map((e,n)=>(0,r.process)(e,t,{...i,path:[...i.path,a?"oneOf":"anyOf",n]}));a?n.oneOf=s:n.anyOf=s},R=(e,t,n,i)=>{let o=e._zod.def,a=(0,r.process)(o.left,t,{...i,path:[...i.path,"allOf",0]}),s=(0,r.process)(o.right,t,{...i,path:[...i.path,"allOf",1]}),l=e=>"allOf"in e&&1===Object.keys(e).length,u=[...l(a)?a.allOf:[a],...l(s)?s.allOf:[s]];n.allOf=u,t.intersections.push(u)},N=(e,t,n,i)=>{let o=e._zod.def;n.type="array";let a="draft-2020-12"===t.target?"prefixItems":"items",s="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",l=o.items.map((e,n)=>(0,r.process)(e,t,{...i,path:[...i.path,a,n]})),u=o.rest?(0,r.process)(o.rest,t,{...i,path:[...i.path,s,..."openapi-3.0"===t.target?[o.items.length]:[]]}):null,c=o.items.length;for(;c>0;){let e=o.items[c-1];if(!("input"===t.io?void 0!==I(e):"optional"===e._zod.optout))break;c--}let d=o.items.length,f=!o.rest;"draft-2020-12"===t.target?(n.prefixItems=l,f?n.items=!1:u&&(n.items=u)):"openapi-3.0"===t.target?(n.items={anyOf:l},u&&n.items.anyOf.push(u)):(n.items=l,f?n.additionalItems=!1:u&&(n.additionalItems=u)),c>0&&(n.minItems=c),f&&(n.maxItems=d);let{minimum:h,maximum:p}=e._zod.bag;"number"==typeof h&&(n.minItems=h),"number"==typeof p&&(n.maxItems=p)},D=new WeakMap,z=(e,t,o,a)=>{let s=e._zod.def;o.type="object";let l=s.keyType,u=l._zod.bag,c=u?.patterns;if("loose"===s.mode&&c&&c.size>0){let e=(0,r.process)(s.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});for(let t of(o.patternProperties={},c))(0,i.assignProp)(o.patternProperties,t.source,e)}
50else{if("draft-07"===t.target||"draft-2020-12"===t.target){o.propertyNames=(0,r.process)(s.keyType,t,{...a,path:[...a.path,"propertyNames"]});let i=D.get(t);i||(i=[],D.set(t,i),t.deferred.push(()=>(function(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let r=new Map;for(let i of D.get(e)??[]){let o=e.seen.get(i),a=(o?.def??o?.schema)?.propertyNames;if(!a||!0===a||r.has(a))continue;let s=function e(t,r,i){if(r.$ref){if(i.has(r))return r;i.add(r);let n=t.get(r)?.def;if(!n)return r;let o=e(t,n,i);return o===n?r:o}for(let n of["anyOf","oneOf"]){let o=r[n];if(!Array.isArray(o))continue;let a=o.map(n=>e(t,n,i));a.some((e,t)=>e!==o[t])&&(r={...r,[n]:a})}let o=Array.isArray(r.type)?r.type:[r.type],a=!o.includes("string")&&o.some(e=>"number"===e||"integer"===e),s=r.enum??(void 0!==r.const?[r.const]:void 0);if(!a&&!s?.some(e=>"number"==typeof e))return r;let{minimum:l,maximum:u,exclusiveMinimum:c,exclusiveMaximum:d,multipleOf:f,format:h,id:p,...m}=r;return m.enum?m.enum=m.enum.map(e=>"number"==typeof e?String(e):e):"number"==typeof m.const&&(m.const=String(m.const)),a&&(m.type="string",s||(m.pattern=(o.includes("number")?n.number:n.integer).source)),m}(t,a,new Set);s!==a&&r.set(a,s)}if(r.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&r.get(e.propertyNames);t&&(e.propertyNames=t)}})(t))),i.push(e)}o.additionalProperties=(0,r.process)(s.valueType,t,{...a,path:[...a.path,"additionalProperties"]})}let d=l._zod.values,f="input"===t.io&&void 0!==I(s.valueType);if(d&&!s.partial&&!f){let e=[...d].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(o.required=e.map(String))}},F=(e,t,n,i)=>{let o=e._zod.def,a=(0,r.process)(o.innerType,t,i),s=t.seen.get(e);"openapi-3.0"===t.target?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},B=(e,t,n,i)=>{let o=e._zod.def;(0,r.process)(o.innerType,t,i),t.seen.get(e).ref=o.innerType},U=Symbol();function $(e,t,n,i,o){let a=!1,s=JSON.stringify(e,(e,t)=>"bigint"!=typeof t?t:(a=!0,null));return a?((0,r.handleUnrepresentable)(t,n,i,o,"BigInt defaults cannot be represented in JSON Schema"),U):JSON.parse(s)}let H=(e,t,n,i)=>{let o=e._zod.def;(0,r.process)(o.innerType,t,i),t.seen.get(e).ref=o.innerType;let a=$(o.defaultValue,e,t,n,i);a!==U&&(n.default=a)},W=(e,t,n,i)=>{let o=e._zod.def;if((0,r.process)(o.innerType,t,i),t.seen.get(e).ref=o.innerType,"input"!==t.io)return;let a=$(o.defaultValue,e,t,n,i);a!==U&&(n._prefault=a)},V=(e,t,n,i)=>{let o,a=e._zod.def;(0,r.process)(a.innerType,t,i),t.seen.get(e).ref=a.innerType;try{o=a.catchValue(void 0)}catch{(0,r.handleUnrepresentable)(e,t,n,i,"Dynamic catch values are not supported in JSON Schema");return}n.default=o},q=(e,t,n,i)=>{let o=e._zod.def,a=o.in._zod.traits.has("$ZodTransform"),s="input"===t.io?a?o.out:o.in:o.out;(0,r.process)(s,t,i),t.seen.get(e).ref=s},K=(e,t,n,i)=>{let o=e._zod.def;(0,r.process)(o.innerType,t,i),t.seen.get(e).ref=o.innerType,n.readOnly=!0},Z=(e,t,n,i)=>{let o=e._zod.def;(0,r.process)(o.innerType,t,i),t.seen.get(e).ref=o.innerType},G=(e,t,n,i)=>{let o=e._zod.def;(0,r.process)(o.innerType,t,i),t.seen.get(e).ref=o.innerType},Y=(e,t,n,i)=>{let o=e._zod.innerType;(0,r.process)(o,t,i),t.seen.get(e).ref=o}}),eu("1K28a",function(e,t){M(e.exports,"initializeContext",()=>o),M(e.exports,"handleUnrepresentable",()=>a),M(e.exports,"process",()=>s),M(e.exports,"extractDefs",()=>u),M(e.exports,"finalize",()=>p),M(e.exports,"createStandardJSONSchemaMethod",()=>g),M(e.exports,"createToJSONSchemaMethod",()=>m);var n=el("3TrIT"),r=el("eJJL5");function i(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&(0,r.assignProp)(e,t,n[t]);return e}function o(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??n.globalRegistry,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function a(e,t,n,r,i){let o="function"==typeof t.unrepresentable?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if("any"===o)return!1;if(void 0===o||"throw"===o)throw Error(i);return Object.assign(n,o),!0}function s(e,t,n={path:[],schemaPath:[]}){var r;let o=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let u=e._zod.toJSONSchema?.();if(u)l.schema=u;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,r);else{let n=l.schema,i=t.processors[o.type];if(!i)throw Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);i(e,t,n,r)}let i=e._zod.parent;i&&(l.ref||(l.ref=i),s(i,t,r),t.seen.get(i).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&i(l.schema,c),"input"===t.io&&function e(t,n){let r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;
50if("array"===i.type)return e(i.element,r);if("set"===i.type)return e(i.valueType,r);if("lazy"===i.type)return e(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type||"catch"===i.type)return e(i.innerType,r);if("intersection"===i.type)return e(i.left,r)||e(i.right,r);if("record"===i.type||"map"===i.type)return e(i.keyType,r)||e(i.valueType,r);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,r)||e(i.out,r);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],r))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,r))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,r))return!0;if(i.rest&&e(i.rest,r))return!0}return!1}(e)&&(delete l.schema.examples,delete l.schema.default),"input"===t.io&&"_prefault"in l.schema&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function l(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function u(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let r=t[1],{ref:i,defId:o}=(t=>{let r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${i("__shared")}#/${r}/${l(o)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:"#"};let o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:i+l(o)}})(t);r.def={...r.schema},o&&(r.defId=o);let a=r.schema;for(let e in a)delete a[e];a.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
51
52Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){i(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){i(n);continue}}if(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&"ref"===e.reused){i(n);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}let c=new Set(["type","properties","required","additionalProperties"]),d=["oneOf","anyOf"];function f(e){let t=e.additionalProperties;return void 0===t||!1===t||"object"!=typeof t||null===t?null:Object.keys(t).length?t:null}function h(e){let t=[];for(let n of e){if("object"!=typeof n||"object"!==n.type)return null;for(let e in n)if(!c.has(e))return null;t.push(n)}let n={},i=new Set;for(let e of t){for(let i in e.properties){if(Object.prototype.hasOwnProperty.call(n,i))continue;let e=[];for(let n of t){let t=n.properties?.[i]??f(n);null!=t&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}let o=1===e.length?e[0]:h(e)??{allOf:e};(0,r.assignProp)(n,i,o)}for(let t of e.required??[])i.add(t)}let o={type:"object",properties:n};if(i.size&&(o.required=[...i]),t.every(e=>!1===e.additionalProperties))o.additionalProperties=!1;else{let e=[];for(let n of t){let t=f(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}1===e.length?o.additionalProperties=e[0]:e.length>1&&(o.additionalProperties={allOf:e})}return o}function p(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let o=t=>{let n=e.seen.get(t);if(null===n.ref)return;let r=n.def??n.schema,a={...r},s=n.ref;if(n.ref=null,s){o(s);let n=e.seen.get(s),l=n.schema;if(l.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(r.allOf=r.allOf??[],r.allOf.push(l)):i(r,l),i(r,a),t._zod.parent===s)for(let e in r)"$ref"!==e&&"allOf"!==e&&(e in a||delete r[e]);if(l.$ref&&n.def)for(let e in r)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(r[e])===JSON.stringify(n.def[e])&&delete r[e]}let l=t._zod.parent;if(l&&l!==s){o(l);let t=e.seen.get(l);if(t?.schema.$ref&&(r.$ref=t.schema.$ref,t.def))for(let e in r)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(r[e])===JSON.stringify(t.def[e])&&delete r[e]}e.override({zodSchema:t,jsonSchema:r,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())o(t[0]);if("openapi-3.0"!==e.target)for(let t of e.seen.entries())!function e(t){let n=t.anyOf;if(!Array.isArray(n)||0===n.length||void 0!==t.type)return;let r=[];for(let t of n){if(!t||"object"!=typeof t)return;e(t);let n=Object.keys(t);if(1!==n.length||"type"!==n[0])return;let i=t.type;for(let e of Array.isArray(i)?i:[i]){if("string"!=typeof e)return;r.includes(e)||r.push(e)}}delete t.anyOf,t.type=1===r.length?r[0]:r}(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])!function(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of c)if(t in e)return;let n=t.filter(e=>d.some(t=>Array.isArray(e[t]))),r=null;if(n.length){let e=n[0],i=d.find(t=>Array.isArray(e[t]));if(1!==Object.keys(e).length)return;let o=t.filter(t=>t!==e),a=e[i].map(e=>h([...o,e]));if(a.some(e=>!e))return;r={[i]:a}}else r=h(t);r&&(delete e.allOf,i(e,r))}(e)}}let a={};
52if("draft-2020-12"===e.target?a.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?a.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");a.$id=e.external.uri(n)}i(a,n.defId?n.schema:n.def??n.schema);let s=e.metadataRegistry.get(t)?.id;void 0!==s&&a.id===s&&delete a.id;let l=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,(0,r.assignProp)(l,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(l).length>0&&("draft-2020-12"===e.target?a.$defs=l:a.definitions=l);try{let n=JSON.parse(JSON.stringify(a));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:g(t,"input",e.processors),output:g(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw Error("Error converting schema to JSON.")}}let m=(e,t={})=>n=>{let r=o({...n,processors:t});return s(e,r),u(r,e),p(r,e)},g=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},l=o({...i??{},target:a,io:t,processors:n});return s(e,l),u(l,e),p(l,e)}}),eu("iVZyL",function(e,t){M(e.exports,"default",()=>r);var n=el("eJJL5");function r(){return{localeError:(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function i(e,t){return"number"!==e||"number"!=typeof t||Number.isFinite(t)?r[e]??e:String(t)}return r=>{switch(r.code){case"invalid_type":{let e=i(r.expected),t=i(n.parsedType(r.input),r.input);return`Invalid input: expected ${e}, received ${t}`}case"invalid_value":if(1===r.values.length)return`Invalid input: expected ${n.stringifyPrimitive(r.values[0])}`;return`Invalid option: expected one of ${n.joinValues(r.values,"|")}`;case"too_big":{let t=r.exact?"exactly ":r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Too big: expected ${r.origin??"value"} to have ${t}${r.maximum.toString()} ${n.unit??"elements"}`;return`Too big: expected ${r.origin??"value"} to be ${t}${r.maximum.toString()}`}case"too_small":{let t=r.exact?"exactly ":r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Too small: expected ${r.origin} to have ${t}${r.minimum.toString()} ${n.unit}`;return`Too small: expected ${r.origin} to be ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Invalid string: must start with "${r.prefix}"`;if("ends_with"===r.format)return`Invalid string: must end with "${r.suffix}"`;if("includes"===r.format)return`Invalid string: must include "${r.includes}"`;if("regex"===r.format)return`Invalid string: must match pattern ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${n.joinValues(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":if(r.options&&Array.isArray(r.options)&&r.options.length>0){let e=r.options.map(e=>`'${e}'`).join(" | ");return`Invalid discriminator value. Expected ${e}`}if(!1===r.inclusive)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}})()}}}),eu("bWpqK",function(e,t){M(e.exports,"parse",()=>i),M(e.exports,"parseAsync",()=>o),M(e.exports,"safeParse",()=>a),M(e.exports,"safeParseAsync",()=>s),M(e.exports,"encode",()=>l),M(e.exports,"decode",()=>u),M(e.exports,"encodeAsync",()=>c),M(e.exports,"decodeAsync",()=>d),M(e.exports,"safeEncode",()=>f),M(e.exports,"safeDecode",()=>h),M(e.exports,"safeEncodeAsync",()=>p),M(e.exports,"safeDecodeAsync",()=>m);var n=el("4d1HL"),r=el("aIEJO");let i=n._parse(r.ZodRealError),o=n._parseAsync(r.ZodRealError),a=n._safeParse(r.ZodRealError),s=n._safeParseAsync(r.ZodRealError),l=n._encode(r.ZodRealError),u=n._decode(r.ZodRealError),c=n._encodeAsync(r.ZodRealError),d=n._decodeAsync(r.ZodRealError),f=n._safeEncode(r.ZodRealError),h=n._safeDecode(r.ZodRealError),p=n._safeEncodeAsync(r.ZodRealError),m=n._safeDecodeAsync(r.ZodRealError)}),eu("aIEJO",function(e,t){M(e.exports,"ZodRealError",()=>s);var n=el("aEJki"),r=el("cCeLw"),i=el("eJJL5");let o=new WeakSet([Object.prototype,Error.prototype]);function a(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}let s=n.$constructor("ZodError",(e,t)=>{r.$ZodError.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);o.has(n)||(o.add(n),a(n,"format",e=>t=>r.formatError(e,t)),a(n,"flatten",e=>t=>r.flattenError(e,t)),a(n,"addIssue",e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,i.jsonStringifyReplacer,2)}),a(n,"addIssues",e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,i.jsonStringifyReplacer,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},void 0,{Parent:Error})}),eu("gj6Et",function(e,t){!function(e,t){function n(e){var t,n=this,r=(t=0xefc8249d,function(e){e=String(e);for(var n=0;n<e.length;n++){var r=.02519603282416938*(t+=e.charCodeAt(n));t=r>>>0,r-=t,r*=t,t=r>>>0,r-=t,t+=0x100000000*r}return(t>>>0)*23283064365386963e-26});n.next=function(){var e=2091639*n.s0+23283064365386963e-26*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=r(" "),n.s1=r(" "),n.s2=r(" "),n.s0-=r(e),n.s0<0&&(n.s0+=1),n.s1-=r(e),n.s1<0&&(n.s1+=1),n.s2-=r(e),n.s2<0&&(n.s2+=1)}function r(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function i(e,t){var i=new n(e),o=t&&t.state,a=i.next;return a.int32=function(){return 0x100000000*i.next()|0},a.double=function(){return a()+(2097152*a()|0)*11102230246251565e-32},a.quick=a,o&&("object"==typeof o&&r(o,i),a.state=function(){return r(i,{})}),a}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.alea=i}(e,"function"==typeof define&&define)}),eu("4gDjz",function(e,t){!function(e,t){function n(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;r++)t.x^=n.charCodeAt(r),t.next()}function r(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function i(e,t){var i=new n(e),o=t&&t.state,a=function(){return(i.next()>>>0)/0x100000000};return a.double=function(){do var e=i.next()>>>11,t=(i.next()>>>0)/0x100000000,n=(e+t)/2097152;while(0===n)return n},a.int32=i.next,a.quick=a,o&&("object"==typeof o&&r(o,i),a.state=function(){return r(i,{})}),a}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.xor128=i}(e,"function"==typeof define&&define)}),eu("HLBv4",function(e,t){!function(e,t){function n(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^(e^e<<1))|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;r++)t.x^=n.charCodeAt(r),r==n.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function r(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function i(e,t){var i=new n(e),o=t&&t.state,a=function(){return(i.next()>>>0)/0x100000000};return a.double=function(){do var e=i.next()>>>11,t=(i.next()>>>0)/0x100000000,n=(e+t)/2097152;while(0===n)return n},a.int32=i.next,a.quick=a,o&&("object"==typeof o&&r(o,i),a.state=function(){return r(i,{})}),a}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.xorwow=i}(e,"function"==typeof define&&define)}),eu("ktaoY",function(e,t){!function(e,t){function n(e){var t=this;t.next=function(){var e,n,r=t.x,i=t.i;return e=r[i],e^=e>>>7,n=e^e<<24^((e=r[i+1&7])^e>>>10)^((e=r[i+3&7])^e>>>3)^((e=r[i+4&7])^e<<7),e=r[i+7&7],e^=e<<13,n^=e^e<<9,r[i]=n,t.i=i+1&7,n};var n,r=e,i=[];if(r===(0|r))i[0]=r;else for(n=0,r=""+r;n<r.length;++n)i[7&n]=i[7&n]<<15^r.charCodeAt(n)+i[n+1&7]<<13;for(;i.length<8;)i.push(0);for(n=0;n<8&&0===i[n];++n);for(8==n?i[7]=-1:i[n],t.x=i,t.i=0,n=256;n>0;--n)t.next()}function r(e,t){return t.x=e.x.slice(),t.i=e.i,t}function i(e,t){null==e&&(e=+new Date);var i=new n(e),o=t&&t.state,a=function(){return(i.next()>>>0)/0x100000000};return a.double=function(){do var e=i.next()>>>11,t=(i.next()>>>0)/0x100000000,n=(e+t)/2097152;while(0===n)return n},a.int32=i.next,a.quick=a,o&&(o.x&&r(o,i),a.state=function(){return r(i,{})}),a}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.xorshift7=i}(e,"function"==typeof define&&define)}),eu("gBs5C",function(e,t){!function(e,t){function n(e){var t=this;t.next=function(){var e,n,r=t.w,i=t.X,o=t.i;return t.w=r=r+0x61c88647|0,n=i[o+34&127],e=i[o=o+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=i[o]=n^e,t.i=o,n+(r^r>>>16)|0},!function(e,t){var n,r,i,o,a,s=[],l=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,l=Math.max(l,t.length)),i=0,o=-32;o<l;++o)t&&(r^=t.charCodeAt((o+32)%t.length)),0===o&&(a=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,o>
52=0&&(a=a+0x61c88647|0,i=0==(n=s[127&o]^=r+a)?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,o=512;o>0;--o)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[i]=r^n;e.w=a,e.X=s,e.i=i}(t,e)}function r(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function i(e,t){null==e&&(e=+new Date);var i=new n(e),o=t&&t.state,a=function(){return(i.next()>>>0)/0x100000000};return a.double=function(){do var e=i.next()>>>11,t=(i.next()>>>0)/0x100000000,n=(e+t)/2097152;while(0===n)return n},a.int32=i.next,a.quick=a,o&&(o.X&&r(o,i),a.state=function(){return r(i,{})}),a}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.xor4096=i}(e,"function"==typeof define&&define)}),eu("ktLSh",function(e,t){!function(e,t){function n(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,i=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-0x61c88647,t.d=0x517cc1b7,e===Math.floor(e)?(t.a=e/0x100000000|0,t.b=0|e):n+=e;for(var r=0;r<n.length+20;r++)t.b^=n.charCodeAt(r),t.next()}function r(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function i(e,t){var i=new n(e),o=t&&t.state,a=function(){return(i.next()>>>0)/0x100000000};return a.double=function(){do var e=i.next()>>>11,t=(i.next()>>>0)/0x100000000,n=(e+t)/2097152;while(0===n)return n},a.int32=i.next,a.quick=a,o&&("object"==typeof o&&r(o,i),a.state=function(){return r(i,{})}),a}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.tychei=i}(e,"function"==typeof define&&define)}),eu("foUwZ",function(e,t){}),eu("fb0st",function(e,t){e.exports=el("6DzO8")()}),eu("6DzO8",function(e,t){"use strict";var n=el("iz60K");function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var o={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:i,resetWarningCache:r};return o.PropTypes=o,o}}),eu("iz60K",function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}),eu("gOknb",function(e,t){"use strict";var n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var i=(0,r.default)(e),o="function"==typeof t;return i.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var r=n(el("5HSB2"))}),eu("5HSB2",function(e,t){var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g;function c(e){return e?e.replace(u,""):""}e.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var u=1,d=1;function f(e){var t=e.match(r);t&&(u+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function h(){var e={line:u,column:d};return function(t){return t.position=new p(e),y(i),t}}function p(e){this.start=e,this.end={line:u,column:d},this.source=t.source}p.prototype.content=e;var m=[];function g(n){var r=Error(t.source+":"+u+":"+d+": "+n);if(r.reason=n,r.filename=t.source,r.line=u,r.column=d,r.source=e,t.silent)m.push(r);else throw r}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}y(i);var w,x=[];for(v(x);w=function(){var e=h(),t=y(o);if(t){if(b(),!y(a))return g("property missing ':'");var r=y(s),i=e({type:"declaration",property:c(t[0].replace(n,"")),value:r?c(r[0].replace(n,"")):""});return y(l),i}}();)!1!==w&&(x.push(w),v(x));return x}}),eu("eXpYg",function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var n,r,i=el("6oOAi"),o=el("lBRDc"),a=el("bczLa"),s=el("fb0st"),l=el("8NFma");el("dwgfu");var u=el("1fzvI"),c=(n=Object.create(null),l&&Object.keys(l).forEach(function(e){if("default"!==e){var t=Object.getOwnPropertyDescriptor(l,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return l[e]}})}}),n.default=l,Object.freeze(n)),d=Object.freeze({__proto__:null,blurButton:14,blurInput:10,changeInput:11,clickButton:13,clickItem:9,controlledPropUpdatedSelectedItem:15,itemMouseEnter:2,keyDownArrowDown:4,keyDownArrowUp:3,keyDownEnd:8,keyDownEnter:6,keyDownEscape:5,keyDownHome:7,keyDownSpaceButton:12,mouseUp:1,touchEnd:16,unknown:0}),f=0;function h(){return String(f++)}var p="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function m(e){var t=c.useRef(e);return p(function(){t.current=e},[e]),t}function g(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function y(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function v(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout(function(){n=null,e.apply(void 0,o)},t)}return i.cancel=r,i}var b=v(function(e){w(e).textContent=""},500);function w(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t)),t}function x(e,t){e&&t&&(w(t).textContent=e,b(t))}function _(){}function k(e,t){return t?Object.keys(e).reduce(function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e},o({},e)):e}function S(e,t){e&&u.compute(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}
52).forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})}function E(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&!t.startsWith("Arrow")?"Arrow"+t:t}function O(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var s=e;s<o;s++)if(!r(n[s],s))return s;return i?O(t?o-1:0,t,n,r):-1}function j(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(0===o)return -1;var a=o-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=i?a:0:s>a&&(s=i?0:a);var l=O(s,t<0,n,r,i);return -1===l?e>=o?-1:e:l}function T(e,t,n,r){return void 0===r&&(r=!0),!!n&&t.some(function(t){return t&&(C(t,e,n)||r&&C(t,n.document.activeElement,n))})}function C(e,t,n){return e===t||t instanceof n.Node&&e.contains(t)}function I(e){return"function"==typeof e?e:_}function P(e,t){return(e=Array.isArray(e)?e[0]:e)||!t?e:t}var A=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function R(e){void 0===e&&(e={});var t={};return A.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var N=["refKey","ref"],M=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],D=["onKeyDown","onBlur","onChange","onInput","onChangeText"],z=["refKey","ref"],F=["onMouseMove","onMouseDown","onClick","onPress","index","item"],B=((r=function(e){function t(t){(n=e.call(this,t)||this).id=n.props.id||"downshift-"+h(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==r}),e()},t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.isItemDisabled=function(e,t){var r=n.getItemNodeFromIndex(t);return r&&r.hasAttribute("disabled")},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=R(t),n.internalSetState(o({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=R(t),n.internalSetState(o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var i=n.items[e];null!=i&&n.selectItem(i,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,i,a={},s="function"==typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,o({},n.getStateAndHelpers(),e)),n.setState(function(t){t=n.getState(t);var l,u=s?e(t):e;r=(u=n.props.stateReducer(t,u)).hasOwnProperty("selectedItem");var c={};return r&&u.selectedItem!==t.selectedItem&&(i=u.selectedItem),(l=u).type||(l.type=0),Object.keys(u).forEach(function(e){t[e]!==u[e]&&(a[e]=u[e]),"type"!==e&&(u[e],void 0===n.props[e]&&(c[e]=u[e]))}),s&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,o({},n.getStateAndHelpers(),u)),c},function(){I(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==i&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())})},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,a=void 0===e?{}:e,s=a.refKey,l=void 0===s?"ref":s,u=a.ref,c=i(a,N),d=(void 0===t?{}:t).suppressRefError;n.getRootProps.called=!0,n.getRootProps.refKey=l,n.getRootProps.suppressRefError=void 0!==d&&d;var f=n.getState().isOpen;return o(((r={})[l]=g(u,n.rootRef),r.role="combobox",r["aria-expanded"]=f,r["aria-haspopup"]="listbox",r["aria-owns"]=f?n.menuId:void 0,r["aria-labelledby"]=n.labelId,r),c)},n.keyDownHandlers={ArrowDown:function(e){var t=this;
52if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},function(){var e=t.getItemCount();if(e>0){var n=j(t.getState().highlightedIndex,1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:4})}})},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},function(){var e=t.getItemCount();if(e>0){var n=j(t.getState().highlightedIndex,-1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:3})}})},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var i=this.items[r],o=this.getItemNodeFromIndex(r);if(null==i||o&&o.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset(o({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDown
52Handlers=o({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=o({},n.keyDownHandlers,{Home:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var r=O(0,!1,{length:n},this.isItemDisabled);this.setHighlightedIndex(r,{type:7})}}},End:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var r=O(n-1,!0,{length:n},this.isItemDisabled);this.setHighlightedIndex(r,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick;t.onPress;var a=t.onKeyDown,s=t.onKeyUp,l=t.onBlur,u=i(t,M),c=n.getState().isOpen,d={onClick:y(r,n.buttonHandleClick),onKeyDown:y(a,n.buttonHandleKeyDown),onKeyUp:y(s,n.buttonHandleKeyUp),onBlur:y(l,n.buttonHandleBlur)};return o({type:"button",role:"button","aria-label":c?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},u.disabled?{}:d,u)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=E(e);
52n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(n,e)},n.buttonHandleClick=function(e){if(e.preventDefault(),n.props.environment){var t=n.props.environment.document,r=t.body,i=t.activeElement;r&&r===i&&e.target.focus()}n.internalSetTimeout(function(){return n.toggleMenu({type:13})})},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){if(!n.isMouseDown&&n.props.environment){var e=n.props.environment.document.activeElement;(null==e||e.id!==n.inputId)&&e!==t&&n.reset({type:14})}})},n.getLabelProps=function(e){return o({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t,r=void 0===e?{}:e,a=r.onKeyDown,s=r.onBlur,l=r.onChange,u=r.onInput;r.onChangeText;var c=i(r,D),d={},f=n.getState(),h=f.inputValue,p=f.isOpen,m=f.highlightedIndex;return c.disabled||((t={}).onChange=y(l,u,n.inputHandleChange),t.onKeyDown=y(a,n.inputHandleKeyDown),t.onBlur=y(s,n.inputHandleBlur),d=t),o({"aria-autocomplete":"list","aria-activedescendant":p&&"number"==typeof m&&m>=0?n.getItemId(m):void 0,"aria-controls":p?n.menuId:void 0,"aria-labelledby":c&&c["aria-label"]?void 0:n.labelId,autoComplete:"off",value:h,id:n.inputId},d,c)},n.inputHandleKeyDown=function(e){var t=E(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(n,e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout(function(){if(!n.isMouseDown&&n.props.environment){var e,t=n.props.environment.document.activeElement;(null==t||null==(e=t.dataset)?void 0:e.toggle)&&n._rootNode&&n._rootNode.contains(t)||n.reset({type:10})}})},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,a=void 0===e?{}:e,s=a.refKey,l=void 0===s?"ref":s,u=a.ref,c=i(a,z),d=(void 0===t?{}:t).suppressRefError;return n.getMenuProps.called=!0,n.getMenuProps.refKey=l,n.getMenuProps.suppressRefError=void 0!==d&&d,o(((r={})[l]=g(u,n.menuRef),r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?void 0:n.labelId,r.id=n.menuId,r),c)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,a=r.onMouseMove,s=r.onMouseDown,l=r.onClick;r.onPress;var u=r.index,c=r.item,d=void 0===c?void 0:c,f=i(r,F);void 0===u?(n.items.push(d),u=n.items.indexOf(d)):n.items[u]=d;var h=((t={onMouseMove:y(a,function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout(function(){return n.avoidScrolling=!1},250))}),onMouseDown:y(s,function(e){e.preventDefault()})}).onClick=y(l,function(){n.selectItemAtIndex(u,{type:9})}),t),p=f.disabled?{onMouseDown:h.onMouseDown}:h;return o({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},p,f)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=R(e),n.internalSetState(function(t){var r=t.selectedItem;return o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)},t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=R(e),n.internalSetState(function(t){var r=t.isOpen;return o({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)},function(){var r=n.getState(),i=r.isOpen,o=r.highlightedIndex;i&&n.getItemCount()>0&&"number"==typeof o&&n.setHighlightedIndex(o,e),I(t)()})},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=v(function(){if(null!=(e=n.props)&&null!=(e=e.environment)&&e.document){var e,t=n.getState(),r=n.items[t.highlightedIndex],i=n.getItemCount(),a=n.props.getA11yStatusMessage(o({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:i,highlightedItem:r},t));n.previousResultCount=i,x(a,n.props.environment.document)}},200);var n,r=n.props,a=r.defaultHighlightedIndex,s=r.initialHighlightedIndex,l=r.defaultIsOpen,u=r.initialIsOpen,c=r.initialInputValue,d=r.initialSelectedItem,f=n.getState({highlightedIndex:void 0===s?a:s,isOpen:void 0===u?l:u,inputValue:void 0===c?"":c,selectedItem:void 0===d?null:d});return null!=f.selectedItem&&void 0===n.props.initialInputValue&&(f.inputValue=n.props.itemToString(f.selectedItem)),n.state=f,n}a(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(e){clearTimeout(e)}),this.timeoutIds=[]},n.getState=function(e){return void 0===e&&(e=this.state),k(e,this.props)},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(e)):null},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);
52this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this.getItemCount(),r=this.getState().highlightedIndex;if(n>0){var i=j(r,e,{length:n},this.isItemDisabled,!0);this.setHighlightedIndex(i,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,i=e.isOpen,o=this.props.itemToString,a=this.id,s=this.getRootProps,l=this.getToggleButtonProps,u=this.getLabelProps,c=this.getMenuProps,d=this.getInputProps,f=this.getItemProps,h=this.openMenu,p=this.closeMenu,m=this.toggleMenu,g=this.selectItem,y=this.selectItemAtIndex,v=this.selectHighlightedItem,b=this.setHighlightedIndex,w=this.clearSelection,x=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:u,getMenuProps:c,getInputProps:d,getItemProps:f,reset:this.reset,openMenu:h,closeMenu:p,toggleMenu:m,selectItem:g,selectItemAtIndex:y,selectHighlightedItem:v,setHighlightedIndex:b,clearSelection:w,clearItems:x,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:o,id:a,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:r}},n.componentDidMount=function(){var e=this;if(this.props.environment){var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!T(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},r=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},o=function(t){var n=T(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",i),a.addEventListener("touchend",o),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",i),a.removeEventListener("touchend",o)}}else this.cleanup=function(){e.internalClearTimeouts()}},n.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},n.componentDidUpdate=function(e,t){void 0!==this.props.selectedItem&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=P(this.props.children,_);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=P(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:"string"==typeof t.type?l.cloneElement(t,this.getRootProps(t.props)):void 0:null},t}(l.Component)).defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""},itemToString:function(e){return null==e?"":String(e)},onStateChange:_,onInputValueChange:_,onUserAction:_,onChange:_,onSelect:_,onOuterClick:_,selectedItemChanged:function(e,t){return e!==t},environment:"u"<typeof window?void 0:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:S},r.stateChangeTypes=d,r);function U(e,t,n,r){var i=c.useRef({}),a=c.useCallback(function(t,n){var r=t.state,i=e(r=k(r,n.props),n),a=n.props.stateReducer(r,o({},n,{changes:i}));return{state:o({},r,a),lastAction:n}},[e]),s=c.useReducer(a,t,function(e){return{state:n(e),lastAction:void 0}}),l=s[0],u=l.state,d=l.lastAction,f=s[1],h=m(t),p=c.useCallback(function(e){return f(o({},e,{props:h.current}))},[h]);
52return c.useEffect(function(){if(d){var e=k(i.current,d.props);r(e,u)||function(e,t,n,r){for(var i=e.type,a={},s=Object.keys(n),l=0;l<s.length;l++){var u=s[l];(function(e,t,n,r,i){if(i[e]!==r[e]){var a=n["on"+e.slice(0,1).toUpperCase()+e.slice(1)+"Change"];"function"==typeof a&&a(o({type:t.type},i))}})(u,e,t,n,r),r[u]!==n[u]&&(a[u]=r[u])}"function"==typeof t.onStateChange&&Object.keys(a).length&&t.onStateChange(o({type:i},a))}(d,d.props,e,u)}i.current=u},[u,d,r]),[u,p]}function $(e,t,n,r){var i=U(e,t,n,r),o=i[0],a=i[1];return[k(o,t),a]}function H(e,t,n,r){if(void 0!==e&&void 0!==t)return[e,t];if(void 0!==e){if(0>n.indexOf(e))throw Error(r);return[e,n.indexOf(e)]}if(void 0!==t){var i=n[t];if(void 0===i)throw Error(r);return[i,t]}throw Error(r)}function W(){var e=c.useRef(!0);return c.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var V={environment:s.shape({addEventListener:s.func.isRequired,removeEventListener:s.func.isRequired,document:s.shape({createElement:s.func.isRequired,getElementById:s.func.isRequired,activeElement:s.any.isRequired,body:s.any.isRequired}).isRequired,Node:s.func.isRequired}),itemToKey:s.func,stateReducer:s.func};function q(e,t){return void 0===e?t:e}function K(e,t,n,r){return void 0!==e?e:void 0!==t?t:void 0!==n?n:r}var Z=v(function(e,t){x(e,t)},200);function G(e,t,n,r){var i=null==r?void 0:r.document,o=W();c.useEffect(function(){e&&!o&&i&&Z(e(t),i)},n),c.useEffect(function(){return function(){var e;Z.cancel(),(e=null==i?void 0:i.getElementById("a11y-status-message"))&&e.remove()}},[i])}var Y=o({},V,{getA11yStatusMessage:s.func,highlightedIndex:s.number,defaultHighlightedIndex:s.number,initialHighlightedIndex:s.number,isOpen:s.bool,defaultIsOpen:s.bool,initialIsOpen:s.bool,selectedItem:s.any,initialSelectedItem:s.any,defaultSelectedItem:s.any,id:s.string,labelId:s.string,menuId:s.string,getItemId:s.func,toggleButtonId:s.string,onSelectedItemChange:s.func,onHighlightedIndexChange:s.func,onStateChange:s.func,onIsOpenChange:s.func,scrollIntoView:s.func}),X={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},isItemDisabled:function(e){return!1},stateReducer:function(e,t){return t.changes},scrollIntoView:S,environment:"u"<typeof window?void 0:window},J=o({},c).useId,Q="function"==typeof J?function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,o=e.toggleButtonId,a=e.inputId,s="downshift-"+J();return t||(t=s),c.useMemo(function(){return{labelId:null!=n?n:t+"-label",menuId:null!=r?r:t+"-menu",getItemId:null!=i?i:function(e){return t+"-item-"+e},toggleButtonId:null!=o?o:t+"-toggle-button",inputId:null!=a?a:t+"-input"}},[i,t,a,n,r,o])}:function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,o=e.toggleButtonId,a=e.inputId,s=c.useState(function(){return null!=t?t:"downshift-"+h()})[0];return c.useMemo(function(){return{labelId:null!=n?n:s+"-label",menuId:null!=r?r:s+"-menu",getItemId:null!=i?i:function(e){return s+"-item-"+e},toggleButtonId:null!=o?o:s+"-toggle-button",inputId:null!=a?a:s+"-input"}},[i,a,n,r,o,s])};function ee(e,t,n){var r=q(n,-1);return e[r]&&t(e[r],r)?-1:r}function et(e,t,n,r,i,a){return o({isOpen:!1,highlightedIndex:-1},e.length&&i>=0&&o({selectedItem:e[i],isOpen:q(n,!1),highlightedIndex:q(r,-1)},a&&{inputValue:t(e[i])}))}function en(e,t,n,r,i,o,a,s){return 0===e.length?-1:void 0===t||a!==t||-1!==t&&(void 0===e[t]||r(e[t],t))?void 0===n||-1!==n&&(void 0===e[n]||r(e[n],n))?o?e.findIndex(function(e){return i(o)===i(e)}):s<0&&e[e.length-1]&&!r(e[e.length-1],e.length-1)?e.length-1:s>0&&e[0]&&!r(e[0],0)?0:-1:n:t}function er(e){var t,n,r=K(e.selectedItem,e.initialSelectedItem,e.defaultSelectedItem,null),i=K(e.isOpen,e.initialIsOpen,e.defaultIsOpen,!1),o=(n=K((t=e).highlightedIndex,t.initialHighlightedIndex,t.defaultHighlightedIndex,-1))>-1&&t.items[n]&&t.isItemDisabled(t.items[n],n)?-1:n,a=K(e.inputValue,e.initialInputValue,e.defaultInputValue,"");return{highlightedIndex:o<0&&r&&i?e.items.findIndex(function(t){return e.itemToKey(t)===e.itemToKey(r)}):o,isOpen:i,selectedItem:r,inputValue:a}}function ei(e,t,n){var r=c.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),i=c.useCallback(function(){return n.map(function(e){return e.current})},[n]);return c.useEffect(function(){if(!e)return _;function n(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function o(n){r.current.isMouseDown=!1,T(n.target,i(),e)||t()}function a(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function s(){r.current.isTouchMove=!0}function l(n){r.current.isTouchEnd=!0,r.current.isTouchMove||T(n.target,i(),e,!1)||t()}return e.addEventListener("mousedown",n),e.addEventListener("mouseup",o),e.addEventListener("touchstart",a),e.addEventListener("touchmove",s),e.addEventListener("touchend",l),function(){e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",s),e.removeEventListener("touchend",l)}},[e,i,t]),r}var eo=function(){return _};function ea(e,t,n,r,i,o){var a=c.useRef(!0);return p(function(){if(!(t<0)&&n&&Object.keys(i.current).length)if(a.current){var s=i.current[o(t)];s&&r.current&&e(s,r.current)}else a.current=!0},[t]),c.useCallback(function(){a.current=!1},[])}function es(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function eu(e,t,n,r){var i;switch(n.type){case r.ItemMouseMove:i={highlightedIndex:n.disabled?-1:n.index};break;case r.MenuMouseLeave:i={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:en(t.items,t.initialHighlightedIndex,t.defaultHighlightedIndex,t.isItemDisabled,t.itemToKey,e.selectedItem,e.highlightedIndex,0)};break;case r.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:en(t.items,t.initialHighlightedIndex,t.defaultHighlightedIndex,t.isItemDisabled,t.itemToKey,e.selectedItem,e.highlightedIndex,0)};break;case r.FunctionCloseMenu:i={isOpen:!1};break;case r.FunctionSetHighlightedIndex:var a=n.highlightedIndex;i={highlightedIndex:t.isItemDisabled(t.items[a],a)?-1:a};break;case r.FunctionSetInputValue:i={inputValue:n.inputValue};break;case r.FunctionReset:i={highlightedIndex:ee(t.items,t.isItemDisabled,t.defaultHighlightedIndex),isOpen:q(t.defaultIsOpen,!1),selectedItem:q(t.defaultSelectedItem,null),inputValue:q(t.defaultInputValue,"")};break;default:throw Error("Reducer called without proper action type.")}return o({},e,i)}o({},Y,{items:s.array.isRequired,isItemDisabled:s.func});var ec=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:14,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:11,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:1,ToggleButtonKeyDownArrowUp:2,ToggleButtonKeyDownCharacter:3,ToggleButtonKeyDownEnd:6,ToggleButtonKeyDownEnter:7,ToggleButtonKeyDownEscape:4,ToggleButtonKeyDown
52Home:5,ToggleButtonKeyDownPageDown:10,ToggleButtonKeyDownPageUp:9,ToggleButtonKeyDownSpaceButton:8});function ed(e,t){var n,r=t.type,i=t.props;switch(r){case 14:n={isOpen:q(i.defaultIsOpen,!1),highlightedIndex:ee(i.items,i.isItemDisabled,i.defaultHighlightedIndex),selectedItem:i.items[t.index]};break;case 3:var a=t.key,s=""+e.inputValue+a,l=function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,o=e.isItemDisabled,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+ +(t.length<2))%r.length,u=r[l];if(void 0!==u&&i(u).toLowerCase().startsWith(a)&&!o(u,l))return l}return n}({keysSoFar:s,highlightedIndex:!e.isOpen&&e.selectedItem?i.items.findIndex(function(t){return i.itemToKey(t)===i.itemToKey(e.selectedItem)}):e.highlightedIndex,items:i.items,itemToString:i.itemToString,isItemDisabled:i.isItemDisabled});n={inputValue:s,highlightedIndex:l,isOpen:!0};break;case 1:var u=t.altKey;n={highlightedIndex:e.isOpen?j(e.highlightedIndex,1,i.items,i.isItemDisabled):u&&null==e.selectedItem?-1:en(i.items,i.initialHighlightedIndex,i.defaultHighlightedIndex,i.isItemDisabled,i.itemToKey,e.selectedItem,e.highlightedIndex,1),isOpen:!0};break;case 2:var c=t.altKey;n=e.isOpen&&c?et(i.items,i.itemToString,i.defaultIsOpen,i.defaultHighlightedIndex,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?j(e.highlightedIndex,-1,i.items,i.isItemDisabled):en(i.items,i.initialHighlightedIndex,i.defaultHighlightedIndex,i.isItemDisabled,i.itemToKey,e.selectedItem,e.highlightedIndex,-1),isOpen:!0};break;case 7:case 8:n=et(i.items,i.itemToString,i.defaultIsOpen,i.defaultHighlightedIndex,e.highlightedIndex,!1);break;case 5:n={highlightedIndex:O(0,!1,i.items,i.isItemDisabled),isOpen:!0};break;case 6:n={highlightedIndex:O(i.items.length-1,!0,i.items,i.isItemDisabled),isOpen:!0};break;case 9:n={highlightedIndex:j(e.highlightedIndex,-10,i.items,i.isItemDisabled)};break;case 10:n={highlightedIndex:j(e.highlightedIndex,10,i.items,i.isItemDisabled)};break;case 4:n={isOpen:!1,highlightedIndex:-1};break;case 11:n=o({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&i.items.length&&{selectedItem:i.items[e.highlightedIndex]});break;case 19:n={selectedItem:t.selectedItem};break;default:return eu(e,i,t,ec)}return o({},e,n)}var ef=["onClick"],eh=["onMouseLeave","refKey","ref","aria-label"],ep=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],em=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function eg(e){void 0===e&&(e={});var t=o({},X,e),n=t.items,r=t.isItemDisabled,a=t.scrollIntoView,s=t.environment,u=t.getA11yStatusMessage,c=$(ed,t,er,es),d=c[0],f=c[1],h=d.isOpen,p=d.highlightedIndex,b=d.selectedItem,w=d.inputValue,x=l.useRef(null),_=l.useRef(null),k=l.useRef({}),S=l.useRef(null),O=Q(t),j=m(d);G(u,d,[h,p,b,w],s);var T=ea(a,p,h,_,k,O.getItemId);l.useEffect(function(){return S.current=v(function(e){e({type:20,inputValue:""})},500),function(){var e;null==(e=S.current)||e.cancel()}},[]),l.useEffect(function(){w&&(null==S.current||S.current(f))},[f,w]),l.useEffect(function(){K(t.isOpen,t.initialIsOpen,t.defaultIsOpen,!1)&&x.current&&x.current.focus()},[]);var C=ei(s,l.useCallback(function(){j.current.isOpen&&f({type:11})},[f,j]),l.useMemo(function(){return[_,x]},[])),I=eo("getMenuProps","getToggleButtonProps");l.useEffect(function(){h||(k.current={})},[h]);var P=l.useMemo(function(){return{ArrowDown:function(e){e.preventDefault(),f({type:1,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),f({type:2,altKey:e.altKey})},Home:function(e){e.preventDefault(),f({type:5})},End:function(e){e.preventDefault(),f({type:6})},Escape:function(){j.current.isOpen&&f({type:4})},Enter:function(e){e.preventDefault(),f({type:7*!!j.current.isOpen})},PageUp:function(e){j.current.isOpen&&(e.preventDefault(),f({type:9}))},PageDown:function(e){j.current.isOpen&&(e.preventDefault(),f({type:10}))}," ":function(e){e.preventDefault();var t=j.current;t.isOpen?t.inputValue?f({type:3,key:" "}):f({type:8}):f({type:0})}}},[f,j]),A=l.useCallback(function(e){var t=null!=e?e:{},n=t.onClick,r=i(t,ef);return o({id:O.labelId,htmlFor:O.toggleButtonId,onClick:y(n,function(){var e;null==(e=x.current)||e.focus()})},r)},[O]),R=l.useCallback(function(e,t){var n,r=null!=e?e:{},a=r.onMouseLeave,s=r.refKey,l=void 0===s?"ref":s,u=r.ref,c=r["aria-label"],d=i(r,eh),h=(null!=t?t:{}).suppressRefError;return I("getMenuProps",void 0!==h&&h,l,_),o(((n={})[l]=g(u,function(e){_.current=e}),n.id=O.menuId,n.role="listbox",n["aria-label"]=c,n["aria-labelledby"]=c?void 0:""+O.labelId,n.onMouseLeave=y(a,function(){f({type:12})}),n),d)},[f,I,O]),N=l.useCallback(function(e,t){var n,r=null!=e?e:{},a=r.onBlur,s=r.onClick;r.onPress;var l=r.onKeyDown,u=r.refKey,c=void 0===u?"ref":u,d=r.ref,m=i(r,ep),v=(null!=t?t:{}).suppressRefError,b=o(((n={})[c]=g(d,function(e){x.current=e}),n["aria-activedescendant"]=h&&p>-1?O.getItemId(p):"",n["aria-controls"]=O.menuId,n["aria-expanded"]=h,n["aria-haspopup"]="listbox",n["aria-labelledby"]=m["aria-label"]?void 0:""+O.labelId,n.id=O.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=y(a,function(){j.current.isOpen&&!C.current.isMouseDown&&f({type:11})}),n),m);return m.disabled||Object.assign(b,{onClick:y(s,function(){f({type:0})}),onKeyDown:y(l,function(e){var t=E(e);t&&t in P?P[t](e):/^\S{1}$/.test(t)&&f({type:3,key:t})})}),I("getToggleButtonProps",void 0!==v&&v,c,x),b},[f,O,h,p,C,I,P,j]),M=l.useCallback(function(e){var t,a=null!=e?e:{},s=a.item,l=a.index,u=a.onMouseMove,c=a.onClick,d=a.onMouseDown;a.onPress;var h=a.refKey,p=a.disabled,m=a.ref,v=i(a,em);void 0!==p&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var w=H(s,l,n,"Pass either item or index to getItemProps!"),x=w[0],_=w[1],S=r(x,_),E=o(((t={})[void 0===h?"ref":h]=g(m,function(e){e&&(k.current[O.getItemId(_)]=e)}),t["aria-disabled"]=S,t["aria-selected"]=x===b,t.id=O.getItemId(_),t.role="option",t.onMouseMove=y(u,function(){C.current.isTouchEnd||_===j.current.highlightedIndex||(T(),f({type:13,index:_,disabled:S}))}),t.onMouseDown=y(d,function(e){return e.preventDefault()}),t),v);return S||Object.assign(E,{onClick:y(c,function(){f({type:14,index:_})})}),E},[n,r,b,O,C,T,f,j]),D=l.useCallback(function(){f({type:15})},[f]),z=l.useCallback(function(){f({type:17})},[f]);return{getToggleButtonProps:N,getLabelProps:A,getMenuProps:R,getItemProps:M,toggleMenu:D,openMenu:l.useCallback(function(){f({type:16})},[f]),closeMenu:z,setHighlightedIndex:l.useCallback(function(e){f({type:18,highlightedIndex:e})},[f]),selectItem:l.useCallback(function(e){f({type:19,selectedItem:e})}
52,[f]),reset:l.useCallback(function(){f({type:21})},[f]),setInputValue:l.useCallback(function(e){f({type:20,inputValue:e})},[f]),highlightedIndex:p,isOpen:h,selectedItem:b,inputValue:w}}function ey(e){var t=er(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),o({},t,{inputValue:r})}eg.stateChangeTypes=ec;var ev=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:22,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,InputBlur:9,InputChange:8,InputClick:10,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEnd:4,InputKeyDownEnter:7,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownPageDown:6,InputKeyDownPageUp:5,ItemClick:13,ItemMouseMove:12,MenuMouseLeave:11,ToggleButtonClick:14});function eb(e,t){var n,r=t.type,i=t.props;switch(r){case 13:n={isOpen:q(i.defaultIsOpen,!1),highlightedIndex:ee(i.items,i.isItemDisabled,i.defaultHighlightedIndex),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:j(e.highlightedIndex,1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:t.altKey&&null==e.selectedItem?-1:en(i.items,i.initialHighlightedIndex,i.defaultHighlightedIndex,i.isItemDisabled,i.itemToKey,e.selectedItem,e.highlightedIndex,1),isOpen:i.items.length>=0};break;case 1:n=e.isOpen?t.altKey?et(i.items,i.itemToString,i.defaultIsOpen,i.defaultHighlightedIndex,e.highlightedIndex,!0):{highlightedIndex:j(e.highlightedIndex,-1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:en(i.items,i.initialHighlightedIndex,i.defaultHighlightedIndex,i.isItemDisabled,i.itemToKey,e.selectedItem,e.highlightedIndex,-1),isOpen:i.items.length>=0};break;case 7:n=et(i.items,i.itemToString,i.defaultIsOpen,i.defaultHighlightedIndex,e.highlightedIndex,!0);break;case 2:n=o({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 5:n={highlightedIndex:j(e.highlightedIndex,-10,i.items,i.isItemDisabled,!0)};break;case 6:n={highlightedIndex:j(e.highlightedIndex,10,i.items,i.isItemDisabled,!0)};break;case 3:n={highlightedIndex:O(0,!1,i.items,i.isItemDisabled)};break;case 4:n={highlightedIndex:O(i.items.length-1,!0,i.items,i.isItemDisabled)};break;case 9:n=o({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&i.items.length&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 8:n={isOpen:!0,highlightedIndex:ee(i.items,i.isItemDisabled,i.defaultHighlightedIndex),inputValue:t.inputValue};break;case 10:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:en(i.items,i.initialHighlightedIndex,i.defaultHighlightedIndex,i.isItemDisabled,i.itemToKey,e.selectedItem,e.highlightedIndex,0)};break;case 19:n={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case 22:n={inputValue:t.inputValue};break;default:return eu(e,i,t,ev)}return o({},e,n)}o({},Y,{items:s.array.isRequired,isItemDisabled:s.func,inputValue:s.string,defaultInputValue:s.string,initialInputValue:s.string,inputId:s.string,onInputValueChange:s.func});var ew=["onMouseLeave","refKey","ref","aria-label"],ex=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],e_=["onClick","onPress","refKey","ref"],ek=["aria-label","onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function eS(e){void 0===e&&(e={});var t,n,r,a,s,u=o({},X,e),c=u.items,d=u.isItemDisabled,f=u.scrollIntoView,h=u.environment,p=u.getA11yStatusMessage,v=(t=l.useRef(null),r=(n=U(eb,u,ey,es))[0],a=n[1],s=W(),l.useEffect(function(){void 0!==u.selectedItem&&(s||u.itemToKey(u.selectedItem)!==u.itemToKey(t.current)&&a({type:22,inputValue:u.itemToString(u.selectedItem)}),t.current=r.selectedItem===t.current?u.selectedItem:r.selectedItem)},[r.selectedItem,u.selectedItem]),[k(r,u),a]),b=v[0],w=v[1],x=b.isOpen,_=b.highlightedIndex,S=b.selectedItem,O=b.inputValue,j=l.useRef(null),T=l.useRef({}),C=l.useRef(null),I=l.useRef(null),P=W(),A=Q(u),R=l.useRef(),N=m(b);G(p,b,[x,_,S,O],h);var M=ea(f,_,x,j,T,A.getItemId);l.useEffect(function(){K(u.isOpen,u.initialIsOpen,u.defaultIsOpen,!1)&&C.current&&C.current.focus()},[]),l.useEffect(function(){P||(R.current=c.length)});var D=ei(h,l.useCallback(function(){N.current.isOpen&&w({type:9})},[w,N]),l.useMemo(function(){return[j,I,C]},[])),z=eo("getInputProps","getMenuProps");l.useEffect(function(){x||(T.current={})},[x]),l.useEffect(function(){var e;x&&null!=h&&h.document&&null!=(e=C.current)&&e.focus&&h.document.activeElement!==C.current&&C.current.focus()},[x,h]);var F=l.useMemo(function(){return{ArrowDown:function(e){e.preventDefault(),w({type:0,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),w({type:1,altKey:e.altKey})},Home:function(e){N.current.isOpen&&(e.preventDefault(),w({type:3}))},End:function(e){N.current.isOpen&&(e.preventDefault(),w({type:4}))},Escape:function(e){var t=N.current;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),w({type:2}))},Enter:function(e){N.current.isOpen&&229!==e.which&&(e.preventDefault(),w({type:7}))},PageUp:function(e){N.current.isOpen&&(e.preventDefault(),w({type:5}))},PageDown:function(e){N.current.isOpen&&(e.preventDefault(),w({type:6}))}}},[w,N]),B=l.useCallback(function(e){return o({id:A.labelId,htmlFor:A.inputId},e)},[A]),$=l.useCallback(function(e,t){var n,r=null!=e?e:{},a=r.onMouseLeave,s=r.refKey,l=void 0===s?"ref":s,u=r.ref,c=r["aria-label"],d=i(r,ew),f=(null!=t?t:{}).suppressRefError;return z("getMenuProps",void 0!==f&&f,l,j),o(((n={})[l]=g(u,function(e){j.current=e}),n.id=A.menuId,n.role="listbox",n["aria-label"]=c,n["aria-labelledby"]=c?void 0:""+A.labelId,n.onMouseLeave=y(a,function(){w({type:11})}),n),d)},[w,z,A]),V=l.useCallback(function(e){var t,n,r=null!=e?e:{}
52,a=r.item,s=r.index,l=r.refKey,u=r.ref,f=r.onMouseMove,h=r.onMouseDown,p=r.onClick;r.onPress;var m=r.disabled,v=i(r,ex);void 0!==m&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var b=H(a,s,c,"Pass either item or index to getItemProps!"),x=b[0],k=b[1],S=d(x,k);return o(((t={})[void 0===l?"ref":l]=g(u,function(e){e&&(T.current[A.getItemId(k)]=e)}),t["aria-disabled"]=S,t["aria-selected"]=k===_,t.id=A.getItemId(k),t.role="option",t),!S&&((n={}).onClick=y(p,function(){w({type:13,index:k})}),n),{onMouseMove:y(f,function(){D.current.isTouchEnd||k===N.current.highlightedIndex||(M(),w({type:12,index:k,disabled:S}))}),onMouseDown:y(h,function(e){return e.preventDefault()})},v)},[w,A,c,d,_,D,M,N]),q=l.useCallback(function(e){var t,n=null!=e?e:{},r=n.onClick;n.onPress;var a=n.refKey,s=n.ref,l=i(n,e_);return o(((t={})[void 0===a?"ref":a]=g(s,function(e){I.current=e}),t["aria-controls"]=A.menuId,t["aria-expanded"]=x,t.id=A.toggleButtonId,t.tabIndex=-1,t),!l.disabled&&o({},{onClick:y(r,function(){w({type:14})})}),l)},[w,x,A]),Z=l.useCallback(function(e,t){var n,r,a=null!=e?e:{},s=a["aria-label"],l=a.onKeyDown,u=a.onChange,c=a.onInput,d=a.onBlur;a.onChangeText;var f=a.onClick,p=a.refKey,m=void 0===p?"ref":p,v=a.ref,b=i(a,ek),k=(null!=t?t:{}).suppressRefError;z("getInputProps",void 0!==k&&k,m,C);var S={};return b.disabled||((r={}).onChange=y(u,c,function(e){w({type:8,inputValue:e.target.value})}),r.onKeyDown=y(l,function(e){var t=E(e);t&&t in F&&F[t](e)}),r.onBlur=y(d,function(e){null!=h&&h.document&&N.current.isOpen&&!D.current.isMouseDown&&w({type:9,selectItem:null!==e.relatedTarget||h.document.activeElement===h.document.body})}),r.onClick=y(f,function(){w({type:10})}),S=r),o(((n={})[m]=g(v,function(e){C.current=e}),n["aria-activedescendant"]=x&&_>-1?A.getItemId(_):"",n["aria-autocomplete"]="list",n["aria-controls"]=A.menuId,n["aria-expanded"]=x,n["aria-labelledby"]=s?void 0:A.labelId,n["aria-label"]=s,n.autoComplete="off",n.id=A.inputId,n.role="combobox",n.value=O,n),S,b)},[w,A,h,F,x,_,O,D,z,N]),Y=l.useCallback(function(){w({type:15})},[w]),J=l.useCallback(function(){w({type:17})},[w]),ee=l.useCallback(function(){w({type:16})},[w]),et=l.useCallback(function(e){w({type:18,highlightedIndex:e})},[w]),en=l.useCallback(function(e){w({type:19,selectedItem:e})},[w]);
52return{getItemProps:V,getLabelProps:B,getMenuProps:$,getInputProps:Z,getToggleButtonProps:q,toggleMenu:Y,openMenu:ee,closeMenu:J,setHighlightedIndex:et,setInputValue:l.useCallback(function(e){w({type:20,inputValue:e})},[w]),selectItem:en,reset:l.useCallback(function(){w({type:21})},[w]),highlightedIndex:_,isOpen:x,selectedItem:S,inputValue:O}}eS.stateChangeTypes=ev;var eE=[];function eO(e){return{activeIndex:K(e.activeIndex,e.initialActiveIndex,e.defaultActiveIndex,-1),selectedItems:K(e.selectedItems,e.initialSelectedItems,e.defaultSelectedItems,eE)}}function ej(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement)||""===t.value||0===t.selectionStart&&0===t.selectionEnd}function eT(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}Y.stateReducer,Y.itemToKey,Y.environment,s.array,s.array,s.array,s.func,s.number,s.number,s.number,s.func,s.func,s.string,s.string;var eC={itemToKey:X.itemToKey,stateReducer:X.stateReducer,environment:X.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},eI=Object.freeze({__proto__:null,DropdownClick:7,DropdownKeyDownBackspace:6,DropdownKeyDownNavigationPrevious:5,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionReset:12,FunctionSetActiveIndex:11,FunctionSetSelectedItems:10,SelectedItemClick:0,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownDelete:1,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4});function eP(e,t){var n,r=t.type,i=t.index,a=t.selectedItem,s=t.props,l=e.activeIndex,u=e.selectedItems;switch(r){case 0:n={activeIndex:i};break;case 4:n={activeIndex:l-1<0?0:l-1};break;case 3:n={activeIndex:l+1>=u.length?-1:l+1};break;case 2:case 1:if(l<0)break;var c=l;1===u.length?c=-1:l===u.length-1&&(c=u.length-2),n=o({selectedItems:[].concat(u.slice(0,l),u.slice(l+1))},{activeIndex:c});break;case 5:n={activeIndex:u.length-1};break;case 6:n={selectedItems:u.slice(0,u.length-1)};break;case 8:n={selectedItems:[].concat(u,[a])};break;case 7:n={activeIndex:-1};break;case 9:var d=l,f=u.findIndex(function(e){return s.itemToKey(e)===s.itemToKey(a)});if(f<0)break;1===u.length?d=-1:f===u.length-1&&(d=u.length-2),n={selectedItems:[].concat(u.slice(0,f),u.slice(f+1)),activeIndex:d};break;case 10:n={selectedItems:t.selectedItems};break;case 11:n={activeIndex:t.activeIndex};break;case 12:n={activeIndex:q(s.defaultActiveIndex,-1),selectedItems:q(s.defaultSelectedItems,eE)};break;default:throw Error("Reducer called without proper action type.")}return o({},e,n)}var eA=["refKey","ref","onClick","onKeyDown","selectedItem","index"],eR=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function eN(e){void 0===e&&(e={});var t=o({},eC,e),n=t.getA11yStatusMessage,r=t.environment,a=t.keyNavigationNext,s=t.keyNavigationPrevious,u=$(eP,t,eO,eT),c=u[0],d=u[1],f=c.activeIndex,h=c.selectedItems,p=W(),m=l.useRef(null),v=l.useRef(null);null===v.current&&(v.current=new Map),G(n,c,[f,h],r),l.useEffect(function(){if(!p)if(-1===f&&m.current)m.current.focus();else{var e;null==(e=v.current.get(f))||e.focus()}},[f]);var b=eo("getDropdownProps"),w=l.useMemo(function(){var e;return(e={})[s]=function(){d({type:4})},e[a]=function(){d({type:3})},e.Delete=function(){d({type:1})},e.Backspace=function(){d({type:2})},e},[d,a,s]),x=l.useMemo(function(){var e;return(e={})[s]=function(e){ej(e)&&d({type:5})},e.Backspace=function(e){ej(e)&&d({type:6})},e},[d,s]);return{getSelectedItemProps:l.useCallback(function(e){var t,n=void 0===e?{}:e,r=n.refKey,a=n.ref,s=n.onClick,l=n.onKeyDown,u=n.selectedItem,c=n.index,p=i(n,eA),m=H(u,c,h,"Pass either item or index to getSelectedItemProps!")[1],b=m>-1&&m===f;return o(((t={})[void 0===r?"ref":r]=g(a,function(e){e?v.current.set(m,e):v.current.delete(m)}),t.tabIndex=b?0:-1,t.onClick=y(s,function(){d({type:0,index:m})}),t.onKeyDown=y(l,function(e){var t=E(e);t&&w[t]&&w[t](e)}),t),p)},[d,h,f,w]),getDropdownProps:l.useCallback(function(e,t){var n,r=void 0===e?{}:e,a=r.refKey,s=void 0===a?"ref":a,l=r.ref,u=r.onKeyDown,c=r.onClick,f=r.preventKeyAction,h=i(r,eR),p=(void 0===t?{}:t).suppressRefError;return b("getDropdownProps",void 0!==p&&p,s,m),o(((n={})[s]=g(l,function(e){e&&(m.current=e)}),n),!(void 0!==f&&f)&&{onKeyDown:y(u,function(e){var t=E(e);t&&x[t]&&x[t](e)}),onClick:y(c,function(){d({type:7})})},h)},[d,x,b]),addSelectedItem:l.useCallback(function(e){d({type:8,selectedItem:e})},[d]),removeSelectedItem:l.useCallback(function(e){d({type:9,selectedItem:e})},[d]),setSelectedItems:l.useCallback(function(e){d({type:10,selectedItems:e})},[d]),setActiveIndex:l.useCallback(function(e){d({type:11,activeIndex:e})},[d]),reset:l.useCallback(function(){d({type:12})},[d]),selectedItems:h,activeIndex:f}}eN.stateChangeTypes=eI;var eM=Object.freeze({__proto__:null,FunctionAddItem:6,TagClick:0,TagGroupKeyDownArrowLeft:1,TagGroupKeyDownArrowRight:2,TagGroupKeyDownBackspace:4,TagGroupKeyDownDelete:3,TagRemoveClick:5});function eD(e,t){var n;switch(t.type){case 0:n={activeIndex:t.index};break;case 1:n={activeIndex:0===e.activeIndex?e.items.length-1:e.activeIndex-1};break;case 2:n={activeIndex:e.activeIndex===e.items.length-1?0:e.activeIndex+1};break;
52case 4:case 3:var r=[].concat(e.items.slice(0,e.activeIndex),e.items.slice(e.activeIndex+1)),i=0===r.length?-1:r.length===e.activeIndex?e.activeIndex-1:e.activeIndex;n={items:[].concat(e.items.slice(0,e.activeIndex),e.items.slice(e.activeIndex+1)),activeIndex:i};break;case 5:var a=[].concat(e.items.slice(0,t.index),e.items.slice(t.index+1)),s=0===a.length?-1:a.length===t.index?t.index-1:t.index;n={items:a,activeIndex:s};break;case 6:var l=[];l=void 0===t.index?[].concat(e.items,[t.item]):[].concat(e.items.slice(0,t.index),[t.item],e.items.slice(t.index));var u=-1===e.activeIndex?l.length-1:e.activeIndex;n={items:l,activeIndex:u};break;default:throw Error("Invalid useTagGroup reducer action.")}return o({},e,n)}var eL=o({},c).useId,ez="function"==typeof eL?function(e){var t=e.id,n=e.tagGroupId,r=e.getTagId,i="downshift-"+eL();return t||(t=i),c.useMemo(function(){return{tagGroupId:null!=n?n:t+"-tag-group",getTagId:null!=r?r:function(e){return t+"-tag-"+e}}},[r,t,n])}:function(e){var t=e.id,n=e.getTagId,r=e.tagGroupId,i=c.useState(function(){return null!=t?t:"downshift-"+h()})[0];return c.useMemo(function(){return{tagGroupId:null!=r?r:i+"-tag-group",getTagId:null!=n?n:function(e){return i+"-tag-"+e}}},[n,i,r])};function eF(e){var t,n,r,i,o=null!=(t=null!=(n=e.items)?n:e.initialItems)?t:[];return{activeIndex:null!=(r=null!=(i=e.activeIndex)?i:e.initialActiveIndex)?r:0===o.length?-1:0,items:o}}function eB(e,t){return e.activeIndex===t.activeIndex&&e.items===t.items}var eU="tag-group-a11y-description",e$=(s.func,["onKeyDown"]),eH=["index","refKey","ref","onClick"],eW=["index","onClick"],eV=function(e){void 0===e&&(e={});var t,n,r,a,s,u,d,f,h=o({stateReducer:function(e,t){return t.changes},environment:"u"<typeof window?void 0:window,removeElementDescription:"Press Delete or Backspace to remove tag."},e),p=$(eD,h,eF,eB),m=p[0],v=p[1],b=m.activeIndex,w=m.items,x=ez({getTagId:h.getTagId,id:h.id,tagGroupId:h.tagGroupId});t=null==(f=h.environment)?void 0:f.document,n=h.removeElementDescription,c.useEffect(function(){if(t){var e=t.createElement("div");return e.setAttribute("id",eU),e.style.display="none",e.textContent=n,t.body.appendChild(e),function(){e.remove()}}},[n,t]);var _=(r=w.length,a=x.getTagId,s=c.useRef({}),u=c.useRef(b),d=c.useRef(r),c.useEffect(function(){if(-1!==b&&-1!==u.current&&b!==u.current||d.current===r+1){var e;null==(e=s.current[a(b)])||e.focus()}u.current=b,d.current=r},[b,a,r]),s),k=l.useCallback(function(e){var t=null!=e?e:{},n=t.onKeyDown,r=i(t,e$);return o({id:x.tagGroupId,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions",role:"listbox",onKeyDown:y(n,function(e){switch(e.key){case"ArrowLeft":v({type:1});break;case"ArrowRight":v({type:2});break;case"Delete":v({type:3});break;case"Backspace":v({type:4})}})},r)},[v,x.tagGroupId]),S=l.useCallback(function(e){var t,n=e.index,r=e.refKey,a=e.ref,s=e.onClick,l=i(e,eH);if(!Number.isInteger(n)||n<0)throw Error("Pass correct item index to getTagProps!");var u=x.getTagId(n);return o(((t={"aria-describedby":eU})[void 0===r?"ref":r]=g(a,function(e){e&&(_.current[u]=e)}),t["aria-labelledby"]=u,t.role="option",t.id=u,t.onClick=y(s,function(){v({type:0,index:n})}),t.tabIndex=b===n?0:-1,t),l)},[v,x,b,_]),E=l.useCallback(function(e){var t=e.index,n=e.onClick,r=i(e,eW);if(!Number.isInteger(t)||t<0)throw Error("Pass correct item index to getTagRemoveProps!");var a=x.getTagId(t),s=a+"-remove";return o({id:s,tabIndex:-1,"aria-labelledby":s+" "+a,onClick:y(n,function(e){e.stopPropagation(),v({type:5,index:t})})},r)},[x,v]);return{activeIndex:b,addItem:l.useCallback(function(e,t){v({type:6,item:e,index:t})},[v]),getTagGroupProps:k,getTagProps:S,getTagRemoveProps:E,items:w}};eV.stateChangeTypes=eM,e.exports.default=B,e.exports.resetIdCounter=function(){"useId"in c?console.warn("It is not necessary to call resetIdCounter when using React 18+"):f=0},e.exports.useCombobox=eS,e.exports.useMultipleSelection=eN,e.exports.useSelect=eg,e.exports.useTagGroup=eV}),eu("6oOAi",function(e,t){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports}),eu("lBRDc",function(e,t){function n(){return e.exports=n=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},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}
52e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}),eu("bczLa",function(e,t){var n=el("fVxGC");e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports}),eu("fVxGC",function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}),eu("dwgfu",function(e,t){"use strict";e.exports=el("8CI2e")}),eu("8CI2e",function(e,t){"use strict";M(e.exports,"ContextConsumer",()=>n,e=>n=e),M(e.exports,"ContextProvider",()=>r,e=>r=e),M(e.exports,"Element",()=>i,e=>i=e),M(e.exports,"ForwardRef",()=>o,e=>o=e),M(e.exports,"Fragment",()=>a,e=>a=e),M(e.exports,"Lazy",()=>s,e=>s=e),M(e.exports,"Memo",()=>l,e=>l=e),M(e.exports,"Portal",()=>u,e=>u=e),M(e.exports,"Profiler",()=>c,e=>c=e),M(e.exports,"StrictMode",()=>d,e=>d=e),M(e.exports,"Suspense",()=>f,e=>f=e),M(e.exports,"SuspenseList",()=>h,e=>h=e),M(e.exports,"isAsyncMode",()=>p,e=>p=e),M(e.exports,"isConcurrentMode",()=>m,e=>m=e),M(e.exports,"isContextConsumer",()=>g,e=>g=e),M(e.exports,"isContextProvider",()=>y,e=>y=e),M(e.exports,"isElement",()=>v,e=>v=e),M(e.exports,"isForwardRef",()=>b,e=>b=e),M(e.exports,"isFragment",()=>w,e=>w=e),M(e.exports,"isLazy",()=>x,e=>x=e),M(e.exports,"isMemo",()=>_,e=>_=e),M(e.exports,"isPortal",()=>k,e=>k=e),M(e.exports,"isProfiler",()=>S,e=>S=e),M(e.exports,"isStrictMode",()=>E,e=>E=e),M(e.exports,"isSuspense",()=>O,e=>O=e),M(e.exports,"isSuspenseList",()=>j,e=>j=e),M(e.exports,"isValidElementType",()=>T,e=>T=e),M(e.exports,"typeOf",()=>C,e=>C=e);var n,r,i,o,a,s,l,u,c,d,f,h,p,m,g,y,v,b,w,x,_,k,S,E,O,j,T,C,I,P=Symbol.for("react.element"),A=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),F=Symbol.for("react.context"),B=Symbol.for("react.server_context"),U=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen");function K(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case P:switch(e=e.type){case R:case D:case N:case $:case H:return e;default:switch(e=e&&e.$$typeof){case B:case F:case U:case V:case W:case z:return e;default:return t}}case A:return t}}}I=Symbol.for("react.module.reference"),n=F,r=z,i=P,o=U,a=R,s=V,l=W,u=A,c=D,d=N,f=$,h=H,p=function(){return!1},m=function(){return!1},g=function(e){return K(e)===F},y=function(e){return K(e)===z},v=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===P},b=function(e){return K(e)===U},w=function(e){return K(e)===R},x=function(e){return K(e)===V},_=function(e){return K(e)===W},k=function(e){return K(e)===A},S=function(e){return K(e)===D},E=function(e){return K(e)===N},O=function(e){return K(e)===$},j=function(e){return K(e)===H},T=function(e){return"string"==typeof e||"function"==typeof e||e===R||e===D||e===N||e===$||e===H||e===q||"object"==typeof e&&null!==e&&(e.$$typeof===V||e.$$typeof===W||e.$$typeof===z||e.$$typeof===F||e.$$typeof===U||e.$$typeof===I||void 0!==e.getModuleId)||!1},C=K}),eu("1fzvI",function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});let n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,r=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,i=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n,i=getComputedStyle(e,null);return r(i.overflowY,t)||r(i.overflowX,t)||!!(n=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1},o=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t};e.exports.compute=(e,t)=>{var r,s,l,u;let c;if("u"<typeof document)return[];let{scrollMode:d,block:f,inline:h,boundary:p,skipOverflowHiddenElements:m}=t,g="function"==typeof p?p:e=>e!==p;if(!n(e))throw TypeError("Invalid target");let y=document.scrollingElement||document.documentElement,v=[],b=e;for(;n(b)&&g(b);){if((b=a(b))===y){v.push(b);break}null!=b&&b===document.body&&i(b)&&!i(document.documentElement)||null!=b&&i(b,m)&&v.push(b)}
52let w=null!=(s=null==(r=window.visualViewport)?void 0:r.width)?s:innerWidth,x=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:_,scrollY:k}=window,{height:S,width:E,top:O,right:j,bottom:T,left:C}=e.getBoundingClientRect(),{top:I,right:P,bottom:A,left:R}={top:parseFloat((c=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(c.scrollMarginRight)||0,bottom:parseFloat(c.scrollMarginBottom)||0,left:parseFloat(c.scrollMarginLeft)||0},N="start"===f||"nearest"===f?O-I:"end"===f?T+A:O+S/2-I+A,M="center"===h?C+E/2-R+P:"end"===h?j+P:C-R,D=[];for(let e=0;e<v.length;e++){let t=v[e],{height:n,width:r,top:a,right:s,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===d&&O>=0&&C>=0&&T<=x&&j<=w&&(t===y&&!i(t)||O>=a&&T<=l&&C>=u&&j<=s))break;let c=getComputedStyle(t),p=parseInt(c.borderLeftWidth,10),m=parseInt(c.borderTopWidth,10),g=parseInt(c.borderRightWidth,10),b=parseInt(c.borderBottomWidth,10),I=0,P=0,A="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-g:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-b:0,z="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(y===t)I="start"===f?N:"end"===f?N-x:"nearest"===f?o(k,k+x,x,m,b,k+N,k+N+S,S):N-x/2,P="start"===h?M:"center"===h?M-w/2:"end"===h?M-w:o(_,_+w,w,p,g,_+M,_+M+E,E),I=Math.max(0,I+k),P=Math.max(0,P+_);else{I="start"===f?N-a-m:"end"===f?N-l+b+R:"nearest"===f?o(a,l,n,m,b+R,N,N+S,S):N-(a+n/2)+R/2,P="start"===h?M-u-p:"center"===h?M-(u+r/2)+A/2:"end"===h?M-s+g+A:o(u,s,r,p,g+A,M,M+E,E);let{scrollLeft:e,scrollTop:i}=t;I=0===F?0:Math.max(0,Math.min(i+I/F,t.scrollHeight-n/F+R)),P=0===z?0:Math.max(0,Math.min(e+P/z,t.scrollWidth-r/z+A)),N+=i-I,M+=e-P}D.push({el:t,top:I,left:P})}return D}}),eu("6bYwQ",function(e,t){"use strict";var n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0});let r=n(el("9JgFQ")),i=n(el("j6Rpi"));e.exports.default=class{constructor(e){this.search=new r.default(e),this.autocomplete=new i.default(e)}}}),eu("9JgFQ",function(e,t){"use strict";var n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(e.exports,"__esModule",{value:!0});let r=n(el("fFqjx"));var i=el("euAl7");let o=n(el("jcaI1"));e.exports.default=class{constructor(e){if(this.setSearchTerm=o.setSearchTerm.bind(this,"_searchObject"),this.setFocusPoint=o.setFocusPoint.bind(this,"_searchObject"),this.setResultsLimit=o.setResultsLimit.bind(this,"_searchObject"),this.setBoundaryCountry=o.setBoundaryCountry.bind(this,"_searchObject"),this.setBoundaryRectangle=o.setBoundaryRectangle.bind(this,"_searchObject"),this.setBoundaryCircle=o.setBoundaryCircle.bind(this,"_searchObject"),this.setBoundaryAdminArea=o.setBoundaryAdminArea.bind(this,"_searchObject"),this.setDataSources=o.setDataSources.bind(this,"_searchObject"),this.setLayers=o.setLayers.bind(this,"_searchObject"),this.execute=()=>{var e;let t,n=(e=this._searchObject,t=[],e.searchTerm&&t.push([r.QS_TEXT,e.searchTerm]),e.apiKey&&t.push([r.QS_API_KEY,e.apiKey]),e.focusPoint&&(t.push([r.QS_FOCUS_LAT,e.focusPoint.lat]),t.push([r.QS_FOCUS_LONG,e.focusPoint.lon])),e.resultsLimit&&t.push([r.QS_RESULTS_LIMIT,e.resultsLimit]),e.boundaryCountry&&t.push([r.QS_BOUNDARY_COUNTRY,e.boundaryCountry]),e.boundaryRectangle&&(t.push([r.QS_BOUNDARY_RECT_MIN_LAT,e.boundaryRectangle.min_lat]),t.push([r.QS_BOUNDARY_RECT_MAX_LAT,e.boundaryRectangle.max_lat]),t.push([r.QS_BOUNDARY_RECT_MIN_LON,e.boundaryRectangle.min_lon]),t.push([r.QS_BOUNDARY_RECT_MAX_LON,e.boundaryRectangle.max_lon])),e.boundaryCircle&&(t.push([r.QS_BOUNDARY_CIRCLE_LAT,e.boundaryCircle.lat]),t.push([r.QS_BOUNDARY_CIRCLE_LON,e.boundaryCircle.lon]),t.push([r.QS_BOUNDARY_CIRCLE_RADIUS,e.boundaryCircle.radius])),e.boundaryAdminArea&&t.push([r.QS_BOUNDARY_ADMIN_AREA,e.boundaryAdminArea]),e.dataSources&&t.push([r.QS_DATA_SOURCES,e.dataSources.join(",")]),e.layers&&t.push([r.QS_LAYERS,e.layers.join(",")]),t.map(e=>`${encodeURIComponent(e[0])}=${encodeURIComponent(e[1])}`).join("&"));return i.search(this._baseUrl,n).then(e=>e)},this._searchObject={searchTerm:void 0,apiKey:e.apiKey||void 0},!("peliasUrl"in e))throw Error("peliasUrl must be specified in the constructor");this._baseUrl=e.peliasUrl}}}),eu("fFqjx",function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.GET="GET",e.exports.POST="POST",e.exports.SEARCH_ENDPOINT="/v1/search?",e.exports.AUTOCOMPLETE_ENDPOINT="/v1/autocomplete?",e.exports.QS_TEXT="text",e.exports.QS_API_KEY="api_key",e.exports.QS_FOCUS_
52LAT="focus.point.lat",e.exports.QS_FOCUS_LONG="focus.point.lon",e.exports.QS_RESULTS_LIMIT="size",e.exports.QS_BOUNDARY_COUNTRY="boundary.country",e.exports.QS_BOUNDARY_RECT_MIN_LAT="boundary.rect.min_lat",e.exports.QS_BOUNDARY_RECT_MAX_LAT="boundary.rect.max_lat",e.exports.QS_BOUNDARY_RECT_MIN_LON="boundary.rect.min_lon",e.exports.QS_BOUNDARY_RECT_MAX_LON="boundary.rect.max_lon",e.exports.QS_BOUNDARY_CIRCLE_LAT="boundary.circle.lat",e.exports.QS_BOUNDARY_CIRCLE_LON="boundary.circle.lon",e.exports.QS_BOUNDARY_CIRCLE_RADIUS="boundary.circle.radius",e.exports.QS_BOUNDARY_ADMIN_AREA="boundary.gid",e.exports.QS_DATA_SOURCES="sources",e.exports.QS_LAYERS="layers",e.exports.DATA_SOURCE_OPENSTREETMAP="osm",e.exports.DATA_SOURCE_OPENADDRESSES="oa",e.exports.DATA_SOURCE_WHOSONFIRST="wof",e.exports.DATA_SOURCE_GEONAMES="gn",e.exports.PLACE_TYPE_ADDRESS="address",e.exports.PLACE_TYPE_VENUE="venue",e.exports.PLACE_TYPE_NEIGHBOURHOOD="neighbourhood",e.exports.PLACE_TYPE_LOCALITY="locality",e.exports.PLACE_TYPE_BOROUGH="borough",e.exports.PLACE_TYPE_LOCALADMIN="localadmin",e.exports.PLACE_TYPE_COUNTY="county",e.exports.PLACE_TYPE_MACROCOUNTY="macrocounty",e.exports.PLACE_TYPE_REGION="region",e.exports.PLACE_TYPE_MACROREGION="macroregion",e.exports.PLACE_TYPE_COUNTRY="country",e.exports.PLACE_TYPE_COARSE="coarse",e.exports.MIN_LAT="min_lat",e.exports.MAX_LAT="max_lat",e.exports.MIN_LON="min_lon",e.exports.MAX_LON="max_lon",e.exports.LAT="lat",e.exports.LON="lon",e.exports.RADIUS="radius"}),eu("euAl7",function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var n=el("fFqjx");e.exports.search=(e,t)=>o(`${e}${n.SEARCH_ENDPOINT}`,t),e.exports.autocomplete=(e,t)=>a(500,`${e}${n.AUTOCOMPLETE_ENDPOINT}`,t);let r=e=>e.ok?e:Promise.reject(Error("Error in fetch: "+e.status)),i=e=>e.json(),o=(e,t)=>fetch(t?`${e}${t}`:e).then(r).then(i).catch(e=>{throw Error(`Error fetching data: ${e}`)}),a=(e,t,n)=>n?o(t,n):o(t)}),eu("jcaI1",function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var n=el("4vfuv");e.exports.setSearchTerm=function(e,t){if(!n.isValidString(t))throw Error("Search term should be a nonempty string");return this[e].searchTerm=t,this},e.exports.setFocusPoint=function(e,t){if(!n.isNumeric(t.lat)||!n.isNumeric(t.lon))throw Error("Lat and long values should be numeric floating-point coordinates");return this[e].focusPoint=t,this},e.exports.setResultsLimit=function(e,t){if(!Number.isInteger(t))throw Error("Limit should be an integer");return this[e].resultsLimit=t,this},e.exports.setBoundaryCountry=function(e,t){if(!n.isValidString(t))throw Error("Boundary country should be a nonempty string");return this[e].boundaryCountry=t,this},e.exports.setBoundaryRectangle=function(e,t){if(!n.isValidBoundaryRectangle(t))throw Error("Boundary rectangle should be an object with keys min_lat, max_lat, min_lon, max_lon. Values should be floating-point coordinates");return this[e].boundaryRectangle=t,this},e.exports.setBoundaryCircle=function(e,t){if(!n.isValidBoundaryCircle(t))throw Error("Boundary circle should be an object with keys lat, lon, and radius. Lat and lon should be floating-point coordinates, radius may be floating point or integer");return this[e].boundaryCircle=t,this},e.exports.setBoundaryAdminArea=function(e,t){if(!n.isValidString(t))throw Error("Boundary admin area should be a nonempty string");return this[e].boundaryAdminArea=t,this},e.exports.setDataSources=function(e,t){if(!n.isValidDataSources(t))throw Error("Data sources should be an array with one or more of: oa, osm, wof, gn");return this[e].dataSources=t,this},e.exports.setLayers=function(e,t){if(!n.isValidLayers(t))throw Error("Data sources should be an array with one or more of: venue, address, street, neighbourhood, borough, localadmin, locality, county, macrocounty, region, macroregion, country, coarse");return this[e].layers=t,this}}),eu("4vfuv",function(e,t){"use strict";var n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(e.exports,"__esModule",{value:!0});let r=n(el("fFqjx"));e.exports.isValidString=e=>e&&e.length>0,e.exports.isNumeric=e=>null!=e&&!isNaN(e-parseFloat(e)),e.exports.isValidBoundaryRectangle=t=>t instanceof Object&&!!(r.MIN_LAT in t&&r.MAX_LAT in t&&r.MIN_LON in t&&r.MAX_LON in t)&&!!(e.exports.isNumeric(t[r.MIN_LAT])&&e.exports.isNumeric(t[r.MAX_LAT])&&e.exports.isNumeric(t[r.MIN_LON])&&e.exports.isNumeric(t[r.MAX_LON])),e.exports.isValidBoundaryCircle=t=>t instanceof Object&&!!(r.LAT in t&&r.LON in t&&r.RADIUS in t)&&!!(e.exports.isNumeric(t[r.LAT])&&e.exports.isNumeric(t[r.LON])&&e.exports.isNumeric(t[r.RADIUS])),e.exports.isValidDataSources=e=>{let t=[r.DATA_SOURCE_GEONAMES,r.DATA_SOURCE_OPENADDRESSES,r.DATA_SOURCE_OPENSTREETMAP,r.DATA_SOURCE_WHOSONFIRST];return!!Array.isArray(e)&&0!==e.length&&e.reduce((e,n)=>e&&"string"==typeof n&&t.includes(n.toLowerCase()),!0)},e.exports.isValidLayers=e=>{let t=[r.PLACE_TYPE_ADDRESS,r.PLACE_TYPE_BOROUGH,r.PLACE_TYPE_COARSE,r.PLACE_TYPE_COUNTRY,r.PLACE_TYPE_COUNTY,r.PLACE_TYPE_LOCALADMIN,r.PLACE_TYPE_LOCALITY,r.PLACE_TYPE_MACROCOUNTY,r.PLACE_TYPE_MACROREGION,r.PLACE_TYPE_NEIGHBOURHOOD,r.PLACE_TYPE_REGION,r.PLACE_TYPE_VENUE];return!!Array.isArray(e)&&0!==e.length&&e.reduce((e,n)=>e&&"string"==typeof n&&t.includes(n.toLowerCase()),!0)}}),eu("j6Rpi",function(e,t){"use strict";var n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esMo
52dule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(e.exports,"__esModule",{value:!0});let r=n(el("fFqjx"));var i=el("euAl7");let o=n(el("jcaI1"));e.exports.default=class{constructor(e){if(this.setSearchTerm=o.setSearchTerm.bind(this,"_autocompleteObject"),this.setFocusPoint=o.setFocusPoint.bind(this,"_autocompleteObject"),this.setBoundaryCountry=o.setBoundaryCountry.bind(this,"_autocompleteObject"),this.setBoundaryRectangle=o.setBoundaryRectangle.bind(this,"_autocompleteObject"),this.setDataSources=o.setDataSources.bind(this,"_autocompleteObject"),this.setLayers=o.setLayers.bind(this,"_autocompleteObject"),this.execute=()=>{var e;let t,n=(e=this._autocompleteObject,t=[],e.searchTerm&&t.push([r.QS_TEXT,e.searchTerm]),e.apiKey&&t.push([r.QS_API_KEY,e.apiKey]),e.focusPoint&&(t.push([r.QS_FOCUS_LAT,e.focusPoint.lat]),t.push([r.QS_FOCUS_LONG,e.focusPoint.lon])),e.boundaryCountry&&t.push([r.QS_BOUNDARY_COUNTRY,e.boundaryCountry]),e.boundaryRectangle&&(t.push([r.QS_BOUNDARY_RECT_MIN_LAT,e.boundaryRectangle.min_lat]),t.push([r.QS_BOUNDARY_RECT_MAX_LAT,e.boundaryRectangle.max_lat]),t.push([r.QS_BOUNDARY_RECT_MIN_LON,e.boundaryRectangle.min_lon]),t.push([r.QS_BOUNDARY_RECT_MAX_LON,e.boundaryRectangle.max_lon])),e.dataSources&&t.push([r.QS_DATA_SOURCES,e.dataSources.join(",")]),e.layers&&t.push([r.QS_LAYERS,e.layers.join(",")]),t.map(e=>`${encodeURIComponent(e[0])}=${encodeURIComponent(e[1])}`).join("&"));return i.autocomplete(this._baseUrl,n).then(e=>e)},this._autocompleteObject={searchTerm:void 0,apiKey:e.apiKey||void 0},!("peliasUrl"in e))throw Error("peliasUrl must be specified in the constructor");this._baseUrl=e.peliasUrl}}}),eu("75B2O",function(e,t){e.exports=el("dNLwc")(D("cO2d9")).then(()=>el("eP0G1"))}),eu("dNLwc",function(e,t){"use strict";e.exports=el("7lV8K")(function(e){return new Promise(function(t,n){if([].concat(document.getElementsByTagName("script")).some(function(t){return t.src===e}))return void t();var r=document.createElement("link");r.href=e,r.rel="preload",r.as="script",document.head.appendChild(r);var i=document.createElement("script");i.async=!0,i.type="text/javascript",i.src=e,i.onerror=function(t){var r=TypeError("Failed to fetch dynamically imported module: ".concat(e,". Error: ").concat(t.message));i.onerror=i.onload=null,i.remove(),n(r)},i.onload=function(){i.onerror=i.onload=null,t()},document.getElementsByTagName("head")[0].appendChild(i)})})}),eu("7lV8K",function(e,t){"use strict";var n={},r={},i={};e.exports=function(e,t){return function(o){var a=function(e){switch(e){case"preload":return r;case"prefetch":return i;default:return n}}(t);return a[o]?a[o]:a[o]=e.apply(null,arguments).catch(function(e){throw delete a[o],e})}}}),Object.assign(el.i??={},{gsKEV:"google.c68ebea7.svg",gAsvz:"icon-slope.57dd59b5.svg","81EQX":"icon-left-slope.e3cae45e.svg","7h9Aj":"icon-right-slope.65e1dad0.svg",c6ObA:"warning_alert.8e42c0be.svg","6hp9H":"warning_error.ed8c0b0f.svg",crc3R:"boston-logo.d7bf307d.png",amEMk:"boston-icon-chevron.58da86a5.svg","88f4t":"boston-icon-city-hall.561b1c2d.svg","9Kwjx":"boston-icon-lock.6915a29e.svg","8jM8X":"streetmix-plus.d55aee46.svg","1o2rM":"logo_horizontal.6e7efafb.svg","7vsiZ":"logo_horizontal_coastmix.8ec8672f.svg",jvnhX:"boston-logo.4dc6b92e.svg","69lc5":"numo.247d77d8.svg",j4WqY:"bif.75220d97.svg",cbcwa:"codeforamerica.506a3ceb.png",hnKde:"mozilla.1b44ab4e.svg","3vunn":"logo_horizontal_coastmix2.ea52deea.svg",kqVwX:"crb.85279982.png",c4JLg:"oet.70f2ffb0.svg","5altv":"cat.4a9ce5ae.jpg","9MyrM":"kelly.6cd9432d.jpg","2qSqM":"michael.d473b52b.jpg","9u707":"wm-icon-animated.b1291cad.svg",euPyy:"1F620.18d09ba2.svg",ewyxH:"1F641.b3633139.svg",j5lsi:"1F610.dd106c0c.svg","727pi":"1F60A.61941c82.svg","8vhAO":"1F60D.e14fff66.svg",dnGHA:"welcome-coastmix.7f220b3a.png",cO2d9:"widget.446d409e.js"});"use strict";var ec={};ec=el("2kzMM");"use strict";var ed={};!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),ed=el("gNTjK");var ef=el("8NFma"),eh={};eh=el("bcILy");var ep={notify(){},get:()=>[]},em="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,eg="u">typeof navigator&&"ReactNative"===navigator.product,ey=em||eg?ef.useLayoutEffect:ef.useEffect;function ev(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function eb(e,t){if(ev(e,t))return!0;
52if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let 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])||!ev(e[n[r]],t[n[r]]))return!1;return!0}var ew=Symbol.for("react-redux-context"),ex="u">typeof globalThis?globalThis:{},e_=function(){if(!ef.createContext)return{};let e=ex[ew]??=new Map,t=e.get(ef.createContext);return t||(t=ef.createContext(null),e.set(ef.createContext,t)),t}();function ek(e=e_){return function(){return ef.useContext(e)}}var eS=ek();function eE(e=e_){let t=e===e_?eS:ek(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var eO=eE(),ej=function(e=e_){let t=e===e_?eO:eE(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}(),eT=(e,t)=>e===t,eC=function(e=e_){let t=e===e_?eS:ek(e),n=(e,n={})=>{let{equalityFn:r=eT}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:o,getServerState:a}=t();ef.useRef(!0);let s=ef.useCallback({[e.name]:t=>e(t)}[e.name],[e]),l=(0,eh.useSyncExternalStoreWithSelector)(o.addNestedSub,i.getState,a||i.getState,s,r);return ef.useDebugValue(l),l};return Object.assign(n,{withTypes:()=>n}),n}(),eI=function(e){e()};let eP="10.73.0",eA=globalThis;function eR(){return eN(eA),eA}function eN(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||eP,t[eP]=t[eP]||{}}function eM(e,t,n=eA){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[eP]=r[eP]||{};return i[e]||(i[e]=t())}let eD="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eL=["debug","info","warn","error","log","assert","trace"],ez={};function eF(e){if(!("console"in eA))return e();let t=eA.console,n={},r=Object.keys(ez);r.forEach(e=>{let r=ez[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function eB(){return e$().enabled}function eU(e,...t){eD&&eB()&&eF(()=>{eA.console[e](`Sentry Logger [${e}]:`,...t)})}function e$(){return eD?eM("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let eH=function(){e$().enabled=!0},eW=function(...e){eU("log",...e)},eV=function(...e){eU("warn",...e)},eq=function(...e){eU("error",...e)},eK=Object.prototype.toString;function eZ(e){switch(eK.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return e5(e,Error)}}function eG(e,t){return eK.call(e)===`[object ${t}]`}function eY(e){return eG(e,"ErrorEvent")}function eX(e){return eG(e,"DOMError")}function eJ(e){return eG(e,"String")}function eQ(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function e0(e){return null===e||eQ(e)||"object"!=typeof e&&"function"!=typeof e}function e1(e){return eG(e,"Object")}function e2(e){return"object"==typeof e&&null!==e}function e3(e){return"u">typeof Event&&e5(e,Event)}function e4(e){return!!(e?.then&&"function"==typeof e.then)}function e5(e,t){try{return e instanceof t}catch{return!1}}function e6(e){return"u">typeof Request&&e5(e,Request)}function e8(e,t,n){if(!(t in e))return;let r=e[t];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&e7(i,r);try{e[t]=i}catch{eD&&eW(`Failed to replace method "${t}" in object`,e)}}function e9(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{eD&&eW(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function e7(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,e9(e,"__sentry_original__",t)}catch{}}function te(e){return e.__sentry_original__}function tt(e){if(eZ(e))return{message:e.message,name:e.name,stack:e.stack,...tn(e)};if(e3(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...tn(e)}}return e}function tn(e){return e2(e)?Object.fromEntries(Object.entries(e)):{}}function tr(t){if(void 0!==e)return e?e(t):t();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return n in eA&&"function"==typeof eA[n]?(e=eA[n])(t):(e=null,t())}function ti(){return tr(()=>Math.random())}function to(){return tr(()=>Date.now())}let ta=Symbol.for("sentry.skipNormalization"),ts=Symbol.for("sentry.overrideNormalizationDepth"),tl=/\(error: (.*)\)/,tu=/captureMessage|captureException/;function tc(...e){let t=e.sort((e,t)=>
52e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],o=e.split("\n");for(let e=n;e<o.length;e++){let n=o[e];n.length>1024&&(n=n.slice(0,1024));let a=tl.test(n)?n.replace(tl,"$1"):n;if(!a.includes("Error: ")){for(let e of t){let t=e(a);if(t){i.push(t);break}}if(i.length>=50+r)break}}var a=i.slice(r);if(!a.length)return[];let s=Array.from(a);return/sentryWrapped/.test(td(s).function||"")&&s.pop(),s.reverse(),tu.test(td(s).function||"")&&(s.pop(),tu.test(td(s).function||"")&&s.pop()),s.slice(0,50).map(e=>({...e,filename:e.filename||td(s).filename,function:e.function||"?"}))}}function td(e){return e[e.length-1]||{}}let tf="<anonymous>";function th(e){try{if(!e||"function"!=typeof e)return tf;return e.name||tf}catch{return tf}}function tp(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function tm(e,t=100,n=1/0){try{return function e(t,n,r=1/0,i=1/0,o=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let a,[s,l]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let u=tg(t,n);if(!u.startsWith("[object "))return u;if(n[ta])return n;let c=(a=n[ts],"number"==typeof a?a:void 0),d=void 0!==c?c:r;if(0===d)return u.replace("object ","");if(s(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,d-1,i,o)}catch{}let f=Array.isArray(n)?[]:{},h=0,p=tt(n);for(let t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(h>=i){f[t]="[MaxProperties ~]";break}let n=p[t];f[t]=e(t,n,d-1,i,o),h++}return l(n),f}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function tg(e,n){try{var r;let e;if(t){let e=t(n);if(e)return e}if(void 0!==er&&n===er)return"[Global]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${th(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;let i=(r=n,e=Object.getPrototypeOf(r),e?.constructor?e.constructor.name:"null prototype");return`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}function ty(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function tv(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];e0(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(tg(void 0,r))}return n.join(t)}function tb(e,t,n=!1){return!!eJ(e)&&(eG(t,"RegExp")?t.test(e):eJ(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function tw(e,t=[],n=!1){for(let r of t)if(tb(e,r,n))return!0;return!1}function tx(e=eA.crypto||eA.msCrypto){try{if(e?.randomUUID)return tr(()=>e.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*ti())>>e/4).toString(16))}function t_(e){return e.exception?.values?.[0]}function tk(e){let{message:t,event_id:n}=e;if(t)return t;let r=t_(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function tS(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function tE(e,t){let n=t_(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}function tO(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{e9(e,"__sentry_captured__",!0)}catch{}return!1}function tj(){return to()/1e3}function tT(){return(r??(r=function(){let{performance:e}=eA;if(!e?.now||!e.timeOrigin)return tj;let t=e.timeOrigin;return()=>(t+tr(()=>e.now()))/1e3}()))()}function tC(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||tT(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:tx()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function tI(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=tI(r[e],t[e],n-1));return r}function tP(){return tx().substring(16)}function tA(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let tR="_sentrySpan";function tN(e,t){t?e9(e,tR,function(e){try{let t=eA.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(t)):delete e[tR]}class tM{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:tx(),sampleRand:ti()}}clone(){let e=new tM;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,tN(e,tA(this[tR])),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&tC(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:o,contexts:a,level:s,fingerprint:l=[],propagationContext:u,conversationId:c}=(t instanceof tM?t.getScopeData():e1(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),s&&(this._level=s),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),c&&(this._conversationId=c),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,tN(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tx(),sampleRand:ti()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:tj(),...e,message:e.message?ty(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:tA(this[tR]),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=tI(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||tx();if(!this._client)return eD&&eV("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||tx();if(!this._client)return eD&&eV("No client configured on scope - will not capture message!"),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||tx();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):eD&&eV("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
52h(e=>{e(this)}),this._notifyingListeners=!1)}}let tD=e=>e instanceof Promise&&!e[tL],tL=Symbol("chained PromiseLike");class tz{constructor(e,t){let n,r;n=e||new tM,r=t||new tM,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}if(e4(t)){var r,i,o;let e;return r=t,i=()=>this._popScope(),o=()=>this._popScope(),tD(e=r.then(e=>(i(e),e),e=>{throw o(e),e}))&&tD(r)?e:((e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[tL]:!0}),t})(r,e)}return this._popScope(),t}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function tF(){let e=eN(eR());return e.stack=e.stack||new tz(eM("defaultCurrentScope",()=>new tM),eM("defaultIsolationScope",()=>new tM))}function tB(e){return tF().withScope(e)}function tU(e,t){let n=tF();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function t$(e){return tF().withScope(()=>e(tF().getIsolationScope()))}function tH(e){let t=eN(e);return t.acs?t.acs:{withIsolationScope:t$,withScope:tB,withSetScope:tU,withSetIsolationScope:(e,t)=>t$(t),getCurrentScope:()=>tF().getScope(),getIsolationScope:()=>tF().getIsolationScope()}}function tW(){return tH(eR()).getCurrentScope()}function tV(){return tH(eR()).getIsolationScope()}function tq(){return tW().getClient()}let tK=[];function tZ(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function tG(e,t,n){if(n[t.name]){eD&&eW(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,tK.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),tK.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{let r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),eD&&eW(`Integration installed: ${t.name}`)}let tY="sentry.op",tX="sentry.profile_id",tJ="sentry.exclusive_time";function tQ(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=function(e,t){let{value:n,unit:r}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){if(Array.isArray(e))return{value:e,type:"array"};let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),o=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...o};if(!t||"skip-undefined"===t&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...o}}(i,t);e&&(n[r]=e)}return n}function t0(e){return{scope:e._sentryScope,isolationScope:tA(e._sentryIsolationScope)}}let t1="sentry-";function t2(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}let t3=/^o(\d+)\./,t4=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function t5(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function t6(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");let t8=!1;function t9(e){return"number"==typeof e?t7(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?t7(e.getTime()):tT()}function t7(e){return e>0x2540be3ff?e/1e3:e}function ne(e){var t,n;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:i}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:o,name:a,endTime:s,status:l,links:u}=e;return{span_id:r,trace_id:i,data:t,description:a,parent_span_id:"parentSpanId"in(n=e)?n.parentSpanId:"parentSpanContext"in n?n.parentSpanContext?.spanId:void 0,start_timestamp:t9(o),timestamp:t9(s)||void 0,status:function(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}(l),op:t[tY],origin:t["sentry.origin"],links:u&&u.length>0?u.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}let nt=function(e){return e._sentryRootSpan||e};function nn(){t8||(eF(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),t8=!0)}function nr(e,t){let n=tp(e),r=tp(t);if(!n&&!r)return!0;
52if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function ni(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function no(e){return e.exception?.values?.[0]}let na=new WeakMap;function ns(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}let nl=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/];function nu(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:nl],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function nc(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return eD&&eq(`Cannot extract url for event ${tk(e)}`),null}}function nd(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}let nf="production";function nh(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||tq()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}let np=Symbol.for("sentry.nonRecordingSpan");function nm(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||nf,release:n.release,public_key:r,trace_id:e,org_id:function(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};if(n.orgId)t=String(n.orgId);else{let e;r&&(e=r.match(t3),t=e?.[1])}return t}(t)};return t.emit("createDsc",i),i}function ng(e,t){let n=t.getPropagationContext();return n.dsc||nm(n.traceId,e)}function ny(e,t=[]){return[e,t]}function nv(e,t){let[n,r]=e;return[n,[...r,t]]}function nb(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function nw(e){let t=eN(eA);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let nx={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function n_(e){return e in nx?nx[e]:e}function nk(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function nS(e){eW(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function nE(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&tb(e.description,r))return eD&&nS(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&tb(e.description,r.name),o=!r.op||e.op&&tb(e.op,r.op),a=!r.attributes||Object.entries(r.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?tb(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));if(i&&o&&a)return eD&&nS(e),!0}return!1}function nO(e,t){let{extra:n,tags:r,attributes:i,user:o,contexts:a,level:s,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:f,propagationContext:h,transactionName:p,span:m}=t;nj(e,"extra",n),nj(e,"tags",r),nj(e,"attributes",i),nj(e,"user",o),nj(e,"contexts",a),e.sdkProcessingMetadata=tI(e.sdkProcessingMetadata,l,2),s&&(e.level=s),p&&(e.transactionName=p),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function nj(e,t,n){e[t]=tI(e[t],n,1)}function nT(e,t){let n=eM("globalScope",()=>new tM).getScopeData();return e&&nO(n,e.getScopeData()),t&&nO(n,t.getScopeData()),n}var nC=el("kGgTb");function nI(){let e;return"u">typeof window&&(!(0,nC.isNodeEnv)()||(e=eA.process,e?.type==="renderer"))}function nP(e,t){var n,r,i,o,a;let s,l,u=t??(a=e,nA().get(a))??[];if(0===u.length)return;let c=e.getOptions(),d=(n=c._metadata,r=c.tunnel,i=e.getDsn(),o=e.getDataCollectionOptions().userInfo,s={},n?.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(s.dsn=t5(i)),ny(s,[(l=o?"auto":"never",[{type:"log",item_count:u.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...nI()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));nA().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(d)}function nA(){return eM("clientToLogBufferMap",()=>new WeakMap)}function nR(e,t){var n,r,i,o,a;let s,l,u=t??(a=e,nN().get(a))??[];if(0===u.length)return;let c=e.getOptions(),d=(n=c._metadata,r=c.tunnel,i=e.getDsn(),o=e.getDataCollectionOptions().userInfo,s={},n?.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(s.dsn=t5(i)),ny(s,[(l=o?"auto":"never",[{type:"trace_metric",item_count:u.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...nI()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));nN().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(d)}function nN(){return eM("clientToMetricBufferMap",()=>new WeakMap)}function nM(e){return new nL(t=>{t(e)})}function nD(e){return new nL((t,n)=>{n(e)})}class nL{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new nL((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new nL((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();
52this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(e4(t))return void t.then(n,r);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}function nz(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let nF=Symbol.for("SentryBufferFullError");function nB(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return nD(nF);let r=n();return t.add(r),r.then(()=>{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return nM(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>nz(setTimeout(()=>t(!1),e)))]):n}}}let nU=["user","level","extra","contexts","tags","fingerprint","propagationContext"],n$=["forwarded","-ip","remote-","via","-user"],nH={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},nW="Not capturing exception because it's already been captured.",nV="Discarded session because of missing or non-string release",nq=Symbol.for("SentryInternalError"),nK=Symbol.for("SentryDoNotSendEventError");function nZ(e){return{message:e,[nq]:!0}}function nG(e){return{message:e,[nK]:!0}}function nY(e){return e2(e)&&nq in e}function nX(e){return e2(e)&&nK in e}function nJ(e,t,n,r,i){let o,a=0,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if((a+=r(t))>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,o=nz(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class nQ{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=nB(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?nH:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:n$},httpHeaders:{request:{deny:n$},response:{deny:n$}},httpBodies:[],urlQueryParams:{deny:n$},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7},n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=function(e){let t="string"==typeof e?function(e){let t=t4.exec(e);if(!t)return void eF(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,i="",o="",a="",s=""]=t.slice(1),l="",u=s,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return t6({host:o,pass:i,path:l,projectId:u,port:a,protocol:n,publicKey:r})}(e):t6(e);if(t&&function(e){if(!eD)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(eq(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(eq(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(t&&isNaN(parseInt(t,10)))||(eq(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(eq(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):eD&&eV("No DSN provided, client will not send events."),this._dsn){const t=function(e,t,n){let r,i,o;
52return t||`${r=e.protocol?`${e.protocol}:`:"",i=e.port?`:${e.port}`:"",`${r}//${e.host}${i}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${o={sentry_version:"7"},e.publicKey&&(o.sentry_key=e.publicKey),n&&(o.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(o).toString()}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&nJ(this,"afterCaptureLog","flushLogs",n4,nP),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&nJ(this,"afterCaptureMetric","flushMetrics",n3,nR)}captureException(e,t,n){let r=tx();if(tO(e))return eD&&eW(nW),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),"error"),i.event_id}captureMessage(e,t,n,r){let i={event_id:tx(),...n},o=eQ(e)?e:String(e),a=e0(e),s=a?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),a?"unknown":"error"),i.event_id}captureEvent(e,t,n){let r=tx();if(t?.originalException&&tO(t.originalException))return eD&&eW(nW),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},a=o.capturedSpanScope,s=o.capturedSpanIsolationScope,l=n0(e.type);return this._process(()=>this._captureEvent(e,i,a||n,s),l),i.event_id}captureSession(e){this.sendSession(e),tC(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit("flush"),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),tG(this,e,this._integrations),t||tZ(this,[e])}sendEvent(e,t={}){var n,r,i;let o,a,s,l;this.emit("beforeSendEvent",e,t);let u=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||"stream"===t.getOptions().traceLifecycle)return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?n.push(function(e){var t;return{...t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links},attributes:tQ(t.attributes),links:t.links?.map(e=>({...e,attributes:tQ(e.attributes)}))}}(t)):r.push(t);if(0===n.length)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...nI()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}(e,this),c=(n=this._dsn,r=this._options._metadata,i=this._options.tunnel,o=nk(r),a=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){if(!t)return;let n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk),s=e.sdkProcessingMetadata?.dynamicSamplingContext,l={event_id:e.event_id,sent_at:new Date(to()).toISOString(),...o&&{sdk:o},...!!i&&n&&{dsn:t5(n)},...s&&{trace:s}},delete e.sdkProcessingMetadata,ny(l,[[{type:a},e]]));for(let e of t.attachments||[])c=nv(c,function(e){let t="string"==typeof e.data?nw(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));u&&(c=nv(c,u)),this.sendEnvelope(c).then(t=>
52this.emit("afterSendEvent",e,t))}sendSession(e){var t,n,r;let i,{release:o,environment:a=nf}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!o){eD&&eV(nV);return}t.release=t.release||o,t.environment=t.environment||a,e.attrs=t}else{if(!e.release&&!o){eD&&eV(nV);return}e.release=e.release||o,e.environment=e.environment||a}this.emit("beforeSendSession",e);let s=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,i=nk(n),ny({sent_at:new Date(to()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:t5(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(s)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;eD&&eW(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return eD&&eq("Error while sending envelope:",e),{}}return eD&&eq("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),n.forEach(n=>{n&&tG(e,n,t)}),t),tZ(this,n)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i){for(let e of(r=!0,n=!1,i))if(e.mechanism?.handled===!1){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&(tC(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let u=this.getOptions(),c=this.getIntegrationNames();return!t.integrations&&c.length&&(t.integrations=c),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(function(e,t,n,r,i,u){var c,d,f;let h,{normalizeDepth:p=3,normalizeMaxBreadth:m=1e3}=e,g={...t,event_id:t.event_id||n.event_id||tx(),timestamp:t.timestamp||tj()},y=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:o}=t;e.environment=e.environment||n||nf,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let a=e.request;a?.url&&o&&(a.url=ty(a.url,o)),o&&e.exception?.values?.forEach(e=>{e.value&&(e.value=ty(e.value,o))})})(g,e),c=g,(d=y).length>0&&(c.sdk=c.sdk||{},c.sdk.integrations=[...c.sdk.integrations||[],...d]),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&(f=g,h=function(e){let t=eA._sentryDebugIds,n=eA._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(l&&r.length===a&&i.length===s)return l;a=r.length,s=i.length,l={},o||(o={});let u=(t,n)=>{for(let r of t){let t=n[r],i=o?.[r];if(i&&l&&t)l[i[0]]=t,o&&(o[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e],a=i?.filename;if(a&&l&&o){l[a]=t,o[r]=[a,t];break}}}}};return t&&u(r,t),n&&u(i,n),l}(e.stackParser),f.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=h[e.filename])})}));let v=function(e,t){if(!t)return e;let n=e?e.clone():new tM;return n.update(t),n}(r,n.captureContext);n.mechanism&&tE(g,n.mechanism);let b=i?i.getEventProcessors():[],w=nT(u,v),x=[...n.attachments||[],...w.attachments];x.length&&(n.attachments=x),function(e,t){var n,r,i,o,a,s,l,u;let c,d,{fingerprint:f,span:h,breadcrumbs:p,sdkProcessingMetadata:m}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),h&&((n=e).contexts={trace:function(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:ne(e).parent_span_id,o=t0(e).scope;return{parent_span_id:i,span_id:r?o?.getPropagationContext().propagationSpanId||tP():t,trace_id:n}}(r=h),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:function(e){let t=tq();if(!t)return{};let n=nt(e),r=ne(n),i=r.data,o=n.spanContext().traceState,a=o?.get("sentry.sample_rate")??i["sentry.sample_rate"]??i["sentry.previous_trace_sample_rate"];function s(e){return("number"==typeof a||"string"==typeof a)&&(e.sample_rate=`${a}`),e}let l=n._frozenDsc;if(l)return s(l);let u=!!n&&!0===n[np],c=u&&"ignored"===n.dropReason;if(u&&(!nh(t.getOptions())||c)){let e=t0(n).scope;if(e){let n={...ng(t,e)};return c&&(n.sampled="false"),s(n)}}let d=o?.get("sentry.dsc"),f=d&&function(e){let t=function(e){if(e&&(eJ(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
52(Object.entries(t2(t)).forEach(([t,n])=>{e[t]=n}),e),{}):t2(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(t1)&&(e[t.slice(t1.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}(d);if(f)return s(f);let h=nm(e.spanContext().traceId,t),p=i["sentry.source"]??i["sentry.segment.name.source"],m=r.description;return"url"!==p&&m&&(h.transaction=m),nh()&&(h.sampled=String(function(e){let{traceFlags:t}=e.spanContext();return 1===t}(n)),h.sample_rand=o?.get("sentry.sample_rand")??t0(n).scope?.getPropagationContext().sampleRand.toString()),s(h),t.emit("createDsc",h,n),h}(r),...n.sdkProcessingMetadata},(c=ne(nt(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=c)),i=e,o=f,i.fingerprint=i.fingerprint?Array.isArray(i.fingerprint)?i.fingerprint:[i.fingerprint]:[],o&&(i.fingerprint=i.fingerprint.concat(o)),i.fingerprint.length||delete i.fingerprint,a=e,s=p,d=[...a.breadcrumbs||[],...s],a.breadcrumbs=d.length?d:void 0,l=e,u=m,l.sdkProcessingMetadata={...l.sdkProcessingMetadata,...u}}(g,w);let _=[...b,...w.eventProcessors];return(n.data&&!0===n.data.__sentry__?nM(g):function(e,t,n,r=0){try{let i=function e(t,n,r,i){let o=r[i];if(!t||!o)return t;let a=o({...t},n);return(eD&&null===a&&eW(`Event processor "${o.id||"?"}" dropped event`),e4(a))?a.then(t=>e(t,n,r,i+1)):e(a,n,r,i+1)}(t,n,e,r);return e4(i)?i:nM(i)}catch(e){return nD(e)}}(_,g,n)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof p&&p>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:tm(e.data,t,n)}}))},...e.user&&{user:tm(e.user,t,n)},...e.contexts&&{contexts:tm(e.contexts,t,n)},...e.extra&&{extra:tm(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=tm(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:tm(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=tm(e.contexts.flags,3,n)),r}(e,p,m):e)})(u,e,t,n,this,r).then(e=>
52(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...function(e){let t=i?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:o}=e.getPropagationContext(),a={trace_id:n,span_id:o||tP()};return r&&(a.parent_span_id=r),a}(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ng(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=tW(),r=tV()){return eD&&n1(e)&&eW(`Captured error event \`${ns(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{eD&&(nX(e)?eW(e.message):nY(e)?eV(e.message):eV(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:o}=i,a=n2(e),s=n1(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===o?void 0:function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}(o),d=n0(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),nG("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(e4(e))return e.then(e=>{if(!e1(e)&&null!==e)throw nZ(n);return e},e=>{throw nZ(`${t} rejected with ${e}`)});if(!e1(e)&&null!==e)throw nZ(n);return e}(function(e,t,n,r){var i;let{beforeSend:o,beforeSendTransaction:a,ignoreSpans:s}=t,l=!((i=t.beforeSendSpan)&&"function"==typeof i&&"_streamed"in i&&i._streamed)&&t.beforeSendSpan,u=n;if(n1(u)&&o)return o(u,r);if(n2(u)){if(l||s){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:o,data:a,op:s}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:a?.[tX],exclusive_time:a?.[tJ],measurements:e.measurements,is_segment:!0}}(u);if(s?.length&&nE({description:t.description,op:t.op,attributes:t.data},s))return null;if(l){let e=l(t);e?u=tI(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[tX]:e.profile_id},...e.exclusive_time&&{[tJ]:e.exclusive_time}}}},measurements:e.measurements}):nn()}if(u.spans){let t=[],n=u.spans;for(let e of n){if(s?.length&&nE({description:e.description,op:e.op,attributes:e.data},s)){!function(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}(n,e);continue}if(l){let n=l(e);n?t.push(n):(nn(),t.push(e))}else t.push(e)}let r=u.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),u.spans=t}}if(a){if(u.spans){let e=u.spans.length;u.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(u,r)}}return u}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw nG(`${u} returned \`null\`, will not send event.`)}let l=n.getSession()||r.getSession();if(s&&l&&this._updateSessionFromEvent(l,i),s&&"number"==typeof c&&ti()>c)throw this.recordDroppedEvent("sample_rate","error"),nG(`Discarding event because it's not included in the random sample (sampling rate = ${o})`);if(a){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let f=i.transaction_info;return a&&f&&i.transaction!==e.transaction&&(i.transaction_info={...f,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(nX(e)||nY(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),nZ(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
53Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===nF&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;eD&&eW("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){eD&&eW("No outcomes to send");return}if(!this._dsn){eD&&eW("No dsn provided, will not send outcomes");return}eD&&eW("Sending outcomes:",t);let n=ny((e=this._options.tunnel&&t5(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:tj(),discarded_events:t}]]);this.sendEnvelope(n)}}function n0(e){return"replay_event"===e?"replay":e||"error"}function n1(e){return void 0===e.type}function n2(e){return"transaction"===e.type}function n3(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+n5(e.attributes)}function n4(e){let t=0;return e.message&&(t+=2*e.message.length),t+n5(e.attributes)}function n5(e){if(!e)return 0;let t=0;
53return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*n6(e[0]):e0(e)?t+=n6(e):t+=100}),t}function n6(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}var n8=el("efMmY");function n9(e){return eZ(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function n7(e,t){var n,r;let i,o,a=rt(e,t),s={type:(n=t,!(i=n?.name)&&rr(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":i),value:(r=t,o=r?.message,rr(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":o?o.error&&"string"==typeof o.error.message?n9(o.error):n9(r):"No error message")};return a.length&&(s.stacktrace={frames:a}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function re(e,t){return{exception:{values:[n7(e,t)]}}}function rt(e,t){var n,r;let i=t.stacktrace||t.stack||"",o=(n=t)&&rn.test(n.message)?1:0,a="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,o,a)}catch{}return[]}let rn=/Minified React error #\d+;/i;function rr(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ri(e,t,n,r,i){let o;if(eY(t)&&t.error)return re(e,t.error);if(eX(t)||eG(t,"DOMException")){if("stack"in t){o=re(e,t);let i=o.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=rt(e,n);t.length&&(i.stacktrace={frames:t},tE(o,{synthetic:!0}))}}else{let i=t.name||(eX(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;tS(o=ro(e,a,n,r),a)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return eZ(t)?re(e,t):(e1(t)||e3(t)?tE(o=function(e,t,n,r){let i=tq(),o=i?.getOptions().normalizeDepth,a=Object.values(t).find(eZ),s={__serialized__:function e(t,n=3,r=102400){let i=tm(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,o)};if(a)return{exception:{values:[n7(e,a)]},extra:s};let l={exception:{values:[{type:e3(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n,r=((n=Object.keys(tt(e))).sort(),n[0]?n.join(", "):"[object has no keys]"),i=t?"promise rejection":"exception";if(eY(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(e3(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${r}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=rt(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i),{synthetic:!0}):(tS(o=ro(e,t,n,r),`${t}`,void 0),tE(o,{synthetic:!0})),o)}function ro(e,t,n,r){let i={};if(r&&n){let r=rt(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),tE(i,{synthetic:!0})}if(eQ(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function ra(e,t){return tW().captureEvent(e,t)}function rs(e){var t;let n,r,i=tV(),{user:o}=nT(i,tW()),{userAgent:a}=eA.navigator||{},s=(t={user:o,...a&&{userAgent:a},...e},n=tT(),r={sid:tx(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}},t&&tC(r,t),r),l=i.getSession();return l?.status==="ok"&&tC(l,{status:"exited"}),rl(),i.setSession(s),s}function rl(){let e,t=tV(),n=tW().getSession()||t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),tC(n,e)),ru(),t.setSession()}function ru(){let e=tV(),t=tq(),n=e.getSession();n&&t&&t.captureSession(n)}function rc(e=!1){e?rl():ru()}function rd(){try{return eA.document.location.href}catch{return""}}let rf=0;function rh(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if(te(e))return e}catch{return e}let n=function(...n){eA._sentryWrappedDepth=(eA._sentryWrappedDepth||0)+1;try{let r=n.map(e=>rh(e,t));return e.apply(this,r)}catch(e){throw rf++,setTimeout(()=>{rf--}),!function(...e){let t=tH(eR());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}(r=>{r.addEventProcessor(e=>(t.mechanism&&(tS(e,void 0,void 0),tE(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),tW().captureException(e,function(e){if(e){var t;return(t=e)instanceof tM||"function"==typeof t||Object.keys(e).some(e=>nU.includes(e))?{captureContext:e}:e}}(void 0))}),e}finally{eA._sentryWrappedDepth=(eA._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}e7(n,e),e9(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function rp(){let e=rd(),{referrer:t}=eA.document||{},{userAgent:n}=eA.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class rm extends nQ{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eA.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);!function(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:eP})),i.version=eP)}(t,"browser",["browser"],eA.SENTRY_SDK_SOURCE||(0,n8.getSDKSource)()),super(t);const{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:r}=this._options;eA.document&&eA.document.addEventListener("visibilitychange",()=>{"hidden"===eA.document.visibilityState&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",nd)}eventFromException(e,t){var n,r;let i;return n=this._options.stackParser,r=this._options.attachStacktrace,tE(i=ri(n,e,t?.syntheticException||void 0,r)),i.level="error",t?.event_id&&(i.event_id=t.event_id),nM(i)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let o=ro(e,t,r?.syntheticException||void 0,i);return o.level=n,r?.event_id&&(o.event_id=r.event_id),nM(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}function rg(e,t){let n=tq(),r=tV();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=n.getOptions();if(o<=0)return;let a={timestamp:tj(),...e},s=i?eF(()=>i(a,t)):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}let ry={},rv={};function rb(e,t){return ry[e]=ry[e]||[],ry[e].push(t),()=>{let n=ry[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function rw(e,t){if(!rv[e]){rv[e]=!0;try{t()}catch(t){eD&&eq(`Error while instrumenting ${e}`,t)}}}function rx(e,t){let n=e&&ry[e];if(n)for(let r of n)try{r(t)}catch(t){eD&&eq(`Error while triggering instrumentation handler.
54Type: ${e}
55Name: ${th(r)}
56Error:`,t)}}let r_=new Set([]),rk=new Set;
56function rS(){"console"in eA&&eL.forEach(function(e){!rk.has(e)&&e in eA.console&&(rk.add(e),e8(eA.console,e,function(t){return ez[e]=t,function(...t){let n=t[0],r=ez[e],i=r_.size&&"string"==typeof n&&tw(n,r_);i||rx("console",{args:t,level:e}),(!i||eD&&eB())&&r?.apply(eA.console,t)}}))})}function rE(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function rO(e,t){return e2(e)&&!!e[t]}function rj(e){return"string"==typeof e?e:e?rO(e,"url")?e.url:e.toString?e.toString():"":""}function rT(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function rC(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function rI(){if(!eA.document)return;let e=rx.bind(null,"dom"),t=rP(e,!0);eA.document.addEventListener("click",t,!1),eA.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=eA[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(e8(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=rP(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch{}return t.call(this,n,r,i)}}),e8(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function rP(e,t=!1){return n=>{var r;if(!n||n._sentryCaptured)return;let i=function(e){try{return e.target}catch{return null}}(n);if(r=n.type,"keypress"===r&&(!i?.tagName||"INPUT"!==i.tagName&&"TEXTAREA"!==i.tagName&&!i.isContentEditable&&1))return;e9(n,"_sentryCaptured",!0),i&&!i._sentryId&&e9(i,"_sentryId",tx());let o="keypress"===n.type?"input":n.type;!function(e){if(e.type!==c)return!1;try{if(!e.target||e.target._sentryId!==d)return!1}catch{}return!0}(n)&&(e({event:n,name:o,global:t}),c=n.type,d=i?i._sentryId:void 0),clearTimeout(u),u=eA.setTimeout(()=>{d=void 0,c=void 0},1e3)}}function rA(e){let t="history";rb(t,e),rw(t,rR)}function rR(){function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=f,i=function(e){try{return new URL(e,eA.location.origin).toString()}catch{return e}}(String(n));if(f=i,r===i)return e.apply(this,t);rx("history",{from:r,to:i})}return e.apply(this,t)}}eA.addEventListener("popstate",()=>{let e=eA.location.href,t=f;f=e,t===e||rx("history",{from:t,to:e})}),"history"in eA&&eA.history&&(e8(eA.history,"pushState",e),e8(eA.history,"replaceState",e))}let rN="__sentry_xhr_v3__";function rM(){if(!eA.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=1e3*tT(),o=eJ(n[0])?n[0].toUpperCase():void 0,a=function(e){if(eJ(e))return e;try{return e.toString()}catch{}}(n[1]);if(!o||!a)return e.apply(t,n);t[rN]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[rN];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}rx("xhr",{endTimestamp:1e3*tT(),startTimestamp:i,xhr:t,virtualError:r}),t.removeEventListener("readystatechange",s)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(s(),e.apply(t,n))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,o=t[rN];return o&&eJ(r)&&eJ(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[rN];return r&&(void 0!==n[0]&&(r.body=n[0]),rx("xhr",{startTimestamp:1e3*tT(),xhr:t})),e.apply(t,n)}})}let rD={};try{"u">typeof Node&&(rD.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(rD.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,rD.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,rD.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,rD.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(rD.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function rL(e,t,n){let r=rD[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return"function"==typeof i?i.call(e,n):i}function rz(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<5&&(n=function(e,t){let n=[],r=rL(e,"tagName");if(!r)return"";if("u">typeof HTMLElement&&e instanceof HTMLElement){let t=rL(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>rL(e,"getAttribute",t)).map(t=>[t,rL(e,"getAttribute",t)]):null;
56if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=rL(e,"id");t&&n.push(`#${t}`);let r=rL(e,"className");if(r&&eJ(r))for(let e of r.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=rL(e,"getAttribute",t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,s),"html"!==n&&(!(o>1)||!(a+3*i.length+n.length>=l)));)i.push(n),a+=n.length,r=rL(r,"parentNode");return i.reverse().join(" > ")}catch{return"<unknown>"}}let rF="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rB="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");function rU(e){return function(...t){let n=t[0];return t[0]=rh(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${th(e)}`}}),e.apply(this,t)}}function r$(e){return function(t){return e.apply(this,[rh(t,{mechanism:{data:{handler:th(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rH(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&e8(n,e,function(t){let n={mechanism:{data:{handler:th(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=te(t);return r&&(n.mechanism.data.handler=th(r)),rh(t,n)})}),e.apply(this,t)}}function rW(e,t,n){eA.document&&eA.addEventListener(e,t,n)}function rV(e,t,n){eA.document&&eA.removeEventListener(e,t,n)}function rq(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}function rK(){try{let e=eA.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let rZ=null;function rG(){rZ=eA.onerror,eA.onerror=function(e,t,n,r,i){return rx("error",{column:r,error:i,line:n,msg:e,url:t}),!!rZ&&rZ.apply(this,arguments)},eA.onerror.__SENTRY_INSTRUMENTED__=!0}let rY=null;function rX(){rY=eA.onunhandledrejection,eA.onunhandledrejection=function(e){return rx("unhandledrejection",e),!rY||rY.apply(this,arguments)},eA.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function rJ(e){rF&&eW(`Global Handler attached: ${e}`)}function rQ(){let e=tq();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function r0(e){return Array.isArray(e.errors)}function r1(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...r0(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function r2(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function r3(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let r4=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,r5=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r6=/\((\S*)(?::(\d+))(?::(\d+))\)/,r8=/at (.+?) ?\(data:(.+?),/,r9=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,r7=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ie=tc([30,e=>{let t=e.match(r8);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=r4.exec(e);if(n){let[,e,t,r]=n;return r3(e,"?",+t,+r)}let r=r5.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let e=r6.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=it(r[1]||"?",r[2]);return r3(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,e=>{let t=r9.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=r7.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=it(n,e),r3(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),it=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ir="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ii={};function io(e,t=function(e){let t=ii[e];if(t)return t;let n=eA[e];if(rE(n))return ii[e]=n.bind(eA);let r=eA.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){ir&&eV(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?ii[e]=n.bind(eA):n}("fetch")){let n=0,r=0;async function i(i){let o=i.body.length;n+=o,r++;
56let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,a);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw ii.fetch=void 0,e}finally{n-=o,r--}}return function(e,t,n=nB(e.bufferSize||64)){let r={};return{send:function(i){let o=[];if(nb(i,(t,n)=>{let i=n_(n);!function(e,t,n=to()){return(e[t]||e.all||0)>n}(r,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===o.length)return Promise.resolve({});let a=ny(i[0],o),s=t=>{var n;if(n=["client_report"],nb(a,(e,t)=>n.includes(t))){eD&&eV(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}nb(a,(n,r)=>{e.recordDroppedEvent(t,n_(r))})};return n.add(()=>t({body:function(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[nw(r),e]:r.push("string"==typeof e?nw(e):e)}for(let e of n){let[t,n]=e;if(i(`
57${JSON.str
57ingify(t)}
58`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(tm(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}(a)}).then(e=>(413===e.statusCode?(eD&&eq("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(eD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&eV(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=to()){let i={...e},o=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=r+s):i[e]=r+s;else i.all=r+s}else a?i.all=r+function(e,t=to()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e)),e),e=>{throw s("network_error"),eD&&eq("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===nF)return eD&&eq("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}(e,i,nB(e.bufferSize||40))}let ia=/^HTML(\w*)Element$/;function is(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t,n=(t=Object.getPrototypeOf(e),t?.constructor?t.constructor.name:"null prototype");if(ia.test(n))return`[HTMLElement: ${rz(e)}]`}}function il(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 iu="function"==typeof Symbol&&Symbol.observable||"@@observable",ic=()=>Math.random().toString(36).substring(7).split("").join("."),id={INIT:`@@redux/INIT${ic()}`,REPLACE:`@@redux/REPLACE${ic()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ic()}`};function ih(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 ip(e){let t,n=Object.keys(e),r={};for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof e[i]&&(r[i]=e[i])}let i=Object.keys(r);try{Object.keys(r).forEach(e=>{let t=r[e];if(void 0===t(void 0,{type:id.INIT}))throw Error(il(12));if(void 0===t(void 0,{type:id.PROBE_UNKNOWN_ACTION()}))throw Error(il(13))})}catch(e){t=e}return function(e={},n){if(t)throw t;let o=!1,a={};for(let t=0;t<i.length;t++){let s=i[t],l=r[s],u=e[s],c=l(u,n);if(void 0===c)throw n&&n.type,Error(il(14));a[s]=c,o=o||c!==u}return(o=o||i.length!==Object.keys(e).length)?a:e}}function im(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function ig(e){return ih(e)&&"type"in e&&"string"==typeof e.type}var iy=Symbol.for("immer-nothing"),iv=Symbol.for("immer-draftable"),ib=Symbol.for("immer-state");function iw(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ix=Object,i_=ix.getPrototypeOf,ik="constructor",iS="prototype",iE="configurable",iO="enumerable",ij="writable",iT="value",iC=e=>!!e&&!!e[ib];function iI(e){return!!e&&(iR(e)||iF(e)||!!e[iv]||!!e[ik]?.[iv]||iB(e)||iU(e))}var iP=ix[iS][ik].toString(),iA=new WeakMap;function iR(e){if(!e||!i$(e))return!1;let t=i_(e);if(null===t||t===ix[iS])return!0;let n=ix.hasOwnProperty.call(t,ik)&&t[ik];if(n===Object)return!0;if(!iH(n))return!1;let r=iA.get(n);return void 0===r&&(r=Function.toString.call(n),iA.set(n,r)),r===iP}function iN(e,t,n=!0){0===iM(e)?(n?Reflect.ownKeys(e):ix.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function iM(e){let t=e[ib];return t?t.type_:iF(e)?1:iB(e)?2:3*!!iU(e)}var iD=(e,t,n=iM(e))=>2===n?e.has(t):ix[iS].hasOwnProperty.call(e,t),iL=(e,t,n=iM(e))=>2===n?e.get(t):e[t],iz=(e,t,n,r=iM(e))=>{2===r?e.set(t,n):3===r?e.add(n):e[t]=n},iF=Array.isArray,iB=e=>e instanceof Map,iU=e=>e instanceof Set,i$=e=>"object"==typeof e,iH=e=>"function"==typeof e,iW=e=>e.modified_?e.copy_:e.base_;function iV(e,t){if(iB(e))return new Map(e);if(iU(e))return new Set(e);if(iF(e))return Array[iS].slice.call(e);let n=iR(e);if(!0!==t&&("class_only"!==t||n)){let t=i_(e);if(null!==t&&n)return{...e};let r=ix.create(t);return ix.assign(r,e)}{let t=ix.getOwnPropertyDescriptors(e);delete t[ib];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],o=t[i];!1===o[ij]&&(o[ij]=!0,o[iE]=!0),(o.get||o.set)&&(t[i]={[iE]:!0,[ij]:!0,[iO]:o[iO],[iT]:e[i]})}return ix.create(i_(e),t)}}function iq(e,t=!1){return iZ(e)||iC(e)||(iM(e)>
581&&ix.defineProperties(e,{set:iK,add:iK,clear:iK,delete:iK}),ix.freeze(e),t&&iN(e,(e,t)=>{iq(t,!0)},!1)),e}var iK={[iT]:function(){iw(2)}};function iZ(e){return!(null!==e&&i$(e))||ix.isFrozen(e)}var iG="MapSet",iY="Patches",iX={};function iJ(e){let t=iX[e];return t||iw(0,e),t}function iQ(e,t){t&&(e.patchPlugin_=iJ(iY),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function i0(e){i1(e),e.drafts_.forEach(i3),e.drafts_=null}function i1(e){e===p0&&(p0=e.parent_)}var i2=e=>p0={drafts_:[],parent_:p0,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:iX[iG]?iJ(iG):void 0};function i3(e){let t=e[ib];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function i4(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(void 0!==e&&e!==n){n[ib].modified_&&(i0(t),iw(4)),iI(e)&&(e=i5(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[ib].base_,e,t)}else e=i5(t,n);return function(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&iq(t,n)}(t,e,!0),i0(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==iy?e:void 0}function i5(e,t){if(iZ(t))return t;let n=t[ib];if(!n)return ot(t,e.handledSet_,e);if(!i8(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);oe(n,e)}return n.copy_}function i6(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var i8=(e,t)=>e.scope_===t,i9=[];function i7(e,t,n,r){let i=e.copy_||e.base_,o=e.type_;if(void 0!==r&&iL(i,r,o)===t)return void iz(i,r,n,o);if(!e.draftLocations_){let t=e.draftLocations_=new Map;iN(i,(e,n)=>{if(iC(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}for(let r of e.draftLocations_.get(t)??i9)iz(i,r,n,o)}function oe(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}i6(e)}}function ot(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||iC(e)||t.has(e)||!iI(e)||iZ(e)||(t.add(e),iN(e,(r,i)=>{if(iC(i)){let t=i[ib];i8(t,n)&&(iz(e,r,iW(t),e.type_),i6(t))}else iI(i)&&ot(i,t,n)})),e}var on={get(e,t){if(t===ib)return e;let n=e.copy_||e.base_;if(!iD(n,t,e.type_)){var r;let i;return r=e,(i=oo(n,t))?iT in i?i[iT]:i.get?.call(r.draft_):void 0}let i=n[t];if(e.finalized_||!iI(i))return i;if(i===oi(e.base_,t)){os(e);let n=1===e.type_?+t:t,r=ol(e.scope_,i,e,n);return e.copy_[n]=r}return i},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,n){let r=oo(e.copy_||e.base_,t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=oi(e.copy_||e.base_,t),i=r?.[ib];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||iD(e.base_,t,e.type_)))return!0;os(e),oa(e)}return!!(e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=n,e.assigned_.set(t,!0),!function(e,t,n){let{scope_:r}=e;if(iC(n)){let i=n[ib];i8(i,r)&&i.callbacks_.push(function(){os(e),i7(e,n,iW(i),t)})}else iI(n)&&e.callbacks_.push(function(){iL(e.copy_||e.base_,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ot(iL(e.copy_,t,e.type_),r.handledSet_,r)})}(e,t,n),!0)},deleteProperty:(e,t)=>(os(e),void 0!==oi(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),oa(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=e.copy_||e.base_,r=Reflect.getOwnPropertyDescriptor(n,t);return r?{[ij]:!0,[iE]:1!==e.type_||"length"!==t,[iO]:r[iO],[iT]:n[t]}:r},defineProperty(){iw(11)},getPrototypeOf:e=>i_(e.base_),setPrototypeOf(){iw(12)}},or={};function oi(e,t){let n=e[ib];return(n?n.copy_||n.base_:e)[t]}function oo(e,t){if(!(t in e))return;let n=i_(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=i_(n)}}function oa(e){!e.modified_&&(e.modified_=!0,e.parent_&&oa(e.parent_))}function os(e){e.copy_||(e.assigned_=new Map,e.copy_=iV(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function ol(e,t,n,r){let[i,o]=iB(t)?iJ(iG).proxyMap_(t,n):iU(t)?iJ(iG).proxySet_(t,n):function(e,t){let n=iF(e),r={type_:+!!n,scope_:t?t.scope_:p0,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,o=on;n&&(i=[r],o=or);let{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,[s,r]}(t,n);if((n?.scope_??p0).drafts_.push(i),o.callbacks_=n?.callbacks_??[],o.key_=r,n&&void 0!==r)n.callbacks_.push(function(e){if(!o||!i8(o,e))return;e.mapSetPlugin_?.fixSetContents(o);let t=iW(o);i7(n,o.draft_??o,t,r),oe(o,e)});else o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)});return i}function ou(e){return iC(e)||iw(10,e),function e(t){let n;if(!iI(t)||iZ(t))return t;let r=t[ib],i=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=iV(t,r.scope_.immer_.useStrictShallowCopy_),i=r.scope_.immer_.shouldUseStrictIteration()}else n=iV(t,!0);return iN(n,(t,r)=>{iz(n,t,e(r))},i),r&&(r.finalized_=!1),n}(e)}iN(on,(e,t)=>{or[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}),or.deleteProperty=function(e,t){return or.set.call(this,e,t,void 0)},or.set=function(e,t,n){return on.set.call(this,e[0],t,n,e[0])};var oc=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{let r;if(iH(e)&&!iH(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}if(iH(t)||iw(6),void 0===n||iH(n)||iw(7),iI(e)){let i=i2(this),o=ol(i,e,void 0),a=!0;try{r=t(o),a=!1}finally{a?i0(i):i1(i)}return iQ(i,n),i4(r,i)}if(e&&i$(e))iw(1,e);else{if(void 0===(r=t(e))&&(r=e),r===iy&&(r=void 0),this.autoFreeze_&&iq(r,!0),n){let t=[],i=[];iJ(iY).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}},this.produceWithPatches=(e,t)=>{let n,r;return iH(e)?(t,...n)=>this.produceWithPatches(t,t=>e(t,...n)):[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},(e=>"boolean"==typeof e)(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),(e=>"boolean"==typeof e)(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),(e=>"boolean"==typeof e)(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){iI(e)||iw(8),iC(e)&&(e=ou(e));let t=i2(this),n=ol(t,e,void 0);return n[ib].isManual_=!0,i1(t),n}finishDraft(e,t){let n=e&&e[ib];n&&n.isManual_||iw(9);let{scope_:r}=n;return iQ(r,t),i4(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>
58-1&&(t=t.slice(n+1));let r=iJ(iY).applyPatches_;return iC(e)?r(e,t):this.produce(e,e=>r(e,t))}},od=oc.produce,of=oc.produceWithPatches.bind(oc),oh=oc.applyPatches.bind(oc),op=e=>Array.isArray(e)?e:[e],om=0,og=class{revision=om;_value;_lastValue;_isEqual=oy;constructor(e,t=oy){this._value=this._lastValue=e,this._isEqual=t}get value(){return this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++om)}};function oy(e,t){return e===t}function ov(e){return e instanceof og||console.warn("Not a valid cell! ",e),e.value}var ob=(e,t)=>!1;function ow(){return function(e=oy){return new og(null,e)}(ob)}var ox=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=ow()),ov(t)};Symbol();var o_=0,ok=Object.getPrototypeOf({}),oS=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,oE);tag=ow();tags={};children={};collectionTag=null;id=o_++},oE={get:(e,t)=>(function(){let{value:n}=e,r=Reflect.get(n,t);if("symbol"==typeof t||t in ok)return r;if("object"==typeof r&&null!==r){var i;let n=e.children[t];return void 0===n&&(n=e.children[t]=Array.isArray(i=r)?new oO(i):new oS(i)),n.tag&&ov(n.tag),n.proxy}{let n=e.tags[t];return void 0===n&&((n=e.tags[t]=ow()).value=r),ov(n),r}})(),ownKeys:e=>(ox(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},oO=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],oj);tag=ow();tags={};children={};collectionTag=null;id=o_++},oj={get:([e],t)=>("length"===t&&ox(e),oE.get(e,t)),ownKeys:([e])=>oE.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>oE.getOwnPropertyDescriptor(e,t),has:([e],t)=>oE.has(e,t)},oT="u">typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function oC(){return{s:0,v:void 0,o:null,p:null}}function oI(e,t={}){let n,r=oC(),{resultEqualityCheck:i}=t,o=0;function a(){let t,a=r,{length:s}=arguments;for(let e=0;e<s;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=a.o;null===e&&(a.o=e=new WeakMap);let n=e.get(t);void 0===n?(a=oC(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);let n=e.get(t);void 0===n?(a=oC(),e.set(t,a)):a=n}}let l=a;if(1===a.s)t=a.v;else if(t=e.apply(null,arguments),o++,i){let e=n?.deref?.()??n;null!=e&&i(e,t)&&(t=e,0!==o&&o--),n="object"==typeof t&&null!==t||"function"==typeof t?new oT(t):t}return l.s=1,l.v=t,t}return a.clearCache=()=>{r=oC(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}var oP=function(e,...t){let n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r,i=0,o=0,a={},s=e.pop();"object"==typeof s&&(a=s,s=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);let{memoize:l,memoizeOptions:u=[],argsMemoize:c=oI,argsMemoizeOptions:d=[],devModeChecks:f={}}={...n,...a},h=op(u),p=op(d),m=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${n}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),g=l(function(){return i++,s.apply(null,arguments)},...h);return Object.assign(c(function(){o++;let e=function(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(m,arguments);return r=g.apply(null,e)},...p),{resultFunc:s,memoizedResultFunc:g,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>r,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:l,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}(oI),oA=Object.assign((e,t=oP)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>oA});function oR(e){return({dispatch:t,getState:n})=>r=>i=>"function"==typeof i?i(t,n,e):r(i)}var oN=oR(),oM="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?im:im.apply(null,arguments)};function oD(e,t){function n(...r){if(t){let n=t(...r);if(!n)throw Error(aa(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>ig(t)&&t.type===e,n}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var oL=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))}};function oz(e){return iI(e)?od(e,()=>{}):e}function oF(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var oB="RTK_autoBatch",oU=()=>e=>({payload:e,meta:{[oB]:!0}}),o$=e=>t=>{setTimeout(t,e)};function oH(e){let t,n={},r=[],i={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(aa(28));if(r in n)throw Error(aa(29));return n[r]=t,i},addAsyncThunk:(e,t)=>(t.pending&&(n[e.pending.type]=t.pending),t.rejected&&(n[e.rejected.type]=t.rejected),t.fulfilled&&(n[e.fulfilled.type]=t.fulfilled),t.settled&&r.push({matcher:e.settled,reducer:t.settled}),i),addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[n,r,t]}var oW=(e,t)=>
58e&&"function"==typeof e.match?e.match(t):e(t);function oV(...e){return t=>e.some(e=>oW(e,t))}function oq(...e){return t=>e.every(e=>oW(e,t))}function oK(e,t){if(!e||!e.meta)return!1;let n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function oZ(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function oG(...e){return 0===e.length?e=>oK(e,["pending"]):oZ(e)?oV(...e.map(e=>e.pending)):oG()(e[0])}function oY(...e){return 0===e.length?e=>oK(e,["rejected"]):oZ(e)?oV(...e.map(e=>e.rejected)):oY()(e[0])}function oX(...e){let t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||oZ(e)?oq(oY(...e),t):oX()(e[0])}function oJ(...e){return 0===e.length?e=>oK(e,["fulfilled"]):oZ(e)?oV(...e.map(e=>e.fulfilled)):oJ()(e[0])}function oQ(...e){return 0===e.length?e=>oK(e,["pending","fulfilled","rejected"]):oZ(e)?oV(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):oQ()(e[0])}var o0=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},o1=["name","message","stack","code"],o2=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},o3=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},o4="External signal was aborted",o5=(()=>{function e(e,t,n){let r=oD(e+"/fulfilled",(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}})),i=oD(e+"/pending",(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}})),o=oD(e+"/rejected",(e,t,r,i,o)=>({payload:i,error:(n&&n.serializeError||(e=>{if("object"==typeof e&&null!==e){let t={};for(let n of o1)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}}))(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:e?.name==="AbortError",condition:e?.name==="ConditionError"}}));return Object.assign(function(e,{signal:a}={}){return(s,l,u)=>{let c,d,f=n?.idGenerator?n.idGenerator(e):o0(),h=new AbortController;function p(e){d=e,h.abort()}a&&(a.aborted?p(o4):a.addEventListener("abort",()=>p(o4),{once:!0}));let m=async function(){let a;try{var m;let o=n?.condition?.(e,{getState:l,extra:u});if(m=o,null!==m&&"object"==typeof m&&"function"==typeof m.then&&(o=await o),!1===o||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let g=new Promise((e,t)=>{c=()=>{t({name:"AbortError",message:d||"Aborted"})},h.signal.addEventListener("abort",c,{once:!0})});s(i(f,e,n?.getPendingMeta?.({requestId:f,arg:e},{getState:l,extra:u}))),a=await Promise.race([g,Promise.resolve(t(e,{dispatch:s,getState:l,extra:u,requestId:f,signal:h.signal,abort:p,rejectWithValue:(e,t)=>new o2(e,t),fulfillWithValue:(e,t)=>new o3(e,t)})).then(t=>{if(t instanceof o2)throw t;return t instanceof o3?r(t.payload,f,e,t.meta):r(t,f,e)})])}catch(t){a=t instanceof o2?o(null,f,e,t.payload,t.meta):o(t,f,e)}finally{c&&h.signal.removeEventListener("abort",c)}return n&&!n.dispatchConditionRejection&&o.match(a)&&a.meta.condition||s(a),a}();return Object.assign(m,{abort:p,requestId:f,arg:e,unwrap:()=>m.then(o6)})}},{pending:i,rejected:o,fulfilled:r,settled:oV(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function o6(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var o8=Symbol.for("rtk-slice-createasyncthunk"),o9=((pK=o9||{}).reducer="reducer",pK.reducerWithPrepare="reducerWithPrepare",pK.asyncThunk="asyncThunk",pK),o7=function({creators:e}={}){let t=e?.asyncThunk?.[o8];return function(e){let n,{name:r,reducerPath:i=r}=e;if(!r)throw Error(aa(11));let o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(o),s={},l={},u={},c=[],d={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(aa(12));if(n in l)throw Error(aa(13));return l[n]=t,d},addMatcher:(e,t)=>(c.push({matcher:e,reducer:t}),d),exposeAction:(e,t)=>(u[e]=t,d),exposeCaseReducer:(e,t)=>(s[e]=t,d)};function f(){let[t={},n=[],r]="function"==typeof e.extraReducers?oH(e.extraReducers):[e.extraReducers],i={...t,...l};return function(e,t){let n,[r,i,o]=oH(t);if("function"==typeof e)n=()=>oz(e());else{let t=oz(e);n=()=>t}function a(e=n(),t){let s=[r[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===s.filter(e=>!!e).length&&(s=[o]),s.reduce((e,n)=>{if(n)if(iC(e)){let r=n(e,t);return void 0===r?e:r}else{if(iI(e))return od(e,e=>n(e,t));let r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e},e)}return a.getInitialState=n,a}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of c)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}
58a.forEach(n=>{let i=o[n],a={reducerName:n,type:`${r}/${n}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===i._reducerDefinitionType?function({type:e,reducerName:t},n,r,i){if(!i)throw Error(aa(18));let{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:c}=n,d=i(e,o,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||ae,pending:s||ae,rejected:l||ae,settled:u||ae})}(a,i,d,t):function({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&"reducerWithPrepare"!==r._reducerDefinitionType)throw Error(aa(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?oD(e,a):oD(e))}(a,i,d)});let h=e=>e,p=new Map,m=new WeakMap;function g(e,t){return n||(n=f()),n(e,t)}function y(){return n||(n=f()),n.getInitialState()}function v(t,n=!1){function r(e){let i=e[t];return void 0===i&&n&&(i=oF(m,r,y)),i}function i(t=h){let r=oF(p,n,()=>new WeakMap);return oF(r,t,()=>{let r={};for(let[i,o]of Object.entries(e.selectors??{}))r[i]=function(e,t,n,r){function i(o,...a){let s=t(o);return void 0===s&&r&&(s=n()),e(s,...a)}return i.unwrapped=e,i}(o,t,()=>oF(m,t,y),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let b={name:r,reducer:g,actions:u,caseReducers:s,getInitialState:y,...v(i),injectInto(e,{reducerPath:t,...n}={}){let r=t??i;return e.inject({reducerPath:r,reducer:g},n),{...b,...v(r,!0)}}};return b}}();function ae(){}var{assign:at}=Object,an="listenerMiddleware",ar=at(e=>{let{type:t,predicate:n,effect:r}=(e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=oD(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(i);else throw Error(aa(21));if("function"!=typeof o)throw TypeError(aa(32));return{predicate:i,type:t,effect:o}})(e);return{id:o0(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(aa(22))}}},{withTypes:()=>ar}),ai=at(oD(`${an}/add`),{withTypes:()=>ai}),ao=at(oD(`${an}/remove`),{withTypes:()=>ao});function aa(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}"use strict";let as=[{label:"አማርኛ",name:"Amharic",value:"am",key:"i18n.lang.am",level:3},{label:"لغة عربية",name:"Arabic",value:"ar",key:"i18n.lang.ar",level:3},{label:"Català",name:"Catalan",value:"ca",key:"i18n.lang.ca",level:3},{label:"čeština",name:"Czech",value:"cs",key:"i18n.lang.cs",level:3},{label:"Deutsch",name:"German",value:"de",key:"i18n.lang.de",level:3},{label:"English",name:"English",value:"en",key:"i18n.lang.en",level:4},{label:"English (United Kingdom)",name:"English (United Kingdom)",value:"en-GB",key:"i18n.lang.en-gb",level:1},{label:"Español",name:"Spanish",value:"es",key:"i18n.lang.es",level:1},{label:"Español (América Latina)",name:"Spanish (Latin America)",value:"es-419",key:"i18n.lang.es-419",level:3},{label:"Español (España)",name:"Spanish (Spain)",value:"es-ES",key:"i18n.lang.es-es",level:3},{label:"Español (México)",name:"Spanish (Mexico)",value:"es-MX",key:"i18n.lang.es-mx",level:3},{label:"Suomi",name:"Finnish",value:"fi",key:"i18n.lang.fi",level:3},{label:"Filipino",name:"Filipino",value:"fil",key:"i18n.lang.fil",level:1},{label:"Français",name:"French",value:"fr",key:"i18n.lang.fr",level:3},{label:"bahasa Indonesia",name:"Indonesian",value:"id",key:"i18n.lang.id",level:3},{label:"Italiano",name:"Italian",value:"it",key:"i18n.lang.it",level:3},{label:"日本語",name:"Japanese",value:"ja",key:"i18n.lang.ja",level:3},{label:"한국어",name:"Korean",value:"ko",key:"i18n.lang.ko",level:3},{label:"Nederlands",name:"Dutch (Netherlands)",value:"nl-NL",key:"i18n.lang.nl-nl",level:2},{label:"Bokmål",name:"Norwegian Bokmål",value:"nb-NO",key:"i18n.lang.nb-no",level:3},{label:"Polski",name:"Polish",value:"pl",key:"i18n.lang.pl",level:3},{label:"Português (Brasil)",name:"Portuguese (Brazil)",value:"pt-BR",key:"i18n.lang.pt-br",level:3},{label:"Roemeense",name:"Romanian",value:"ro-RO",key:"i18n.lang.ro-ro",level:1},{label:"Русский",name:"Russian",value:"ru",key:"i18n.lang.ru",level:3},{label:"Slovak",name:"Slovak",value:"sk",key:"i18n.lang.sk",level:1},{label:"Svenska",name:"Swedish",value:"sv",key:"i18n.lang.sv",level:3},{label:"Türkçe",name:"Turkish",value:"tr",key:"i18n.lang.tr",level:3},{label:"简体中文",name:"Simplified Chinese",value:"zh-Hans",key:"i18n.lang.zh-hans",level:3},{label:"繁體中文",name:"Traditional Chinese",value:"zh-Hant",key:"i18n.lang.zh-hant",level:3}];function al(e,t){return function(){return e.apply(t,arguments)}}"use strict";let{toString:au}=Object.prototype,{getPrototypeOf:ac}=Object,{iterator:ad,toStringTag:af}=Symbol,ah=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ap=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),am=(e,t,n)=>e===Object.prototype||!n&&null===t,ag=(e,t)=>
58{let n=e,r=[];for(;null!=n&&-1===r.indexOf(n);){r.push(n);let i=ac(n);if(am(n,i,n===e))break;if(ah(n,t))return!0;n=i}return!1},ay=(j=Object.create(null),e=>{let t=au.call(e);return j[t]||(j[t]=t.slice(8,-1).toLowerCase())}),av=e=>(e=e.toLowerCase(),t=>ay(t)===e),ab=e=>t=>typeof t===e,{isArray:aw}=Array,ax=ab("undefined");function a_(e){return null!==e&&!ax(e)&&null!==e.constructor&&!ax(e.constructor)&&aE(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let ak=av("ArrayBuffer"),aS=ab("string"),aE=ab("function"),aO=ab("number"),aj=e=>null!==e&&"object"==typeof e,aT=e=>{if(!aj(e))return!1;let t=ac(e);return(null===t||t===Object.prototype||null===ac(t))&&!ag(e,af)&&!ag(e,ad)},aC=av("Date"),aI=av("File"),aP=av("Blob"),aA=av("FileList"),aR=av("Set"),aN="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:void 0!==er?er:{},aM=void 0!==aN.FormData?aN.FormData:void 0,aD=av("URLSearchParams"),[aL,az,aF,aB]=["ReadableStream","Request","Response","Headers"].map(av);function aU(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e)if("object"!=typeof e&&(e=[e]),aw(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;if(a_(e))return;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function a$(e,t){let n;if(a_(e))return null;t=t.toLowerCase();let r=Object.keys(e),i=r.length;for(;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}"use strict";let aH="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:er,aW=e=>!ax(e)&&e!==aH,aV=(T="u">typeof Uint8Array&&ac(Uint8Array),e=>T&&e instanceof T),aq=av("HTMLFormElement"),{propertyIsEnumerable:aK}=Object.prototype,aZ=av("RegExp"),aG=(e,t)=>
58{let n=Object.getOwnPropertyDescriptors(e),r={};aU(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},aY=av("AsyncFunction"),aX=(pH="function"==typeof setImmediate,pW=aE(aH.postMessage),pH?setImmediate:pW?(pV=`axios@${Math.random()}`,pq=[],aH.addEventListener("message",({source:e,data:t})=>{e===aH&&t===pV&&pq.length&&pq.shift()()},!1),e=>{pq.push(e),aH.postMessage(pV,"*")}):e=>setTimeout(e)),aJ="u">typeof queueMicrotask?queueMicrotask.bind(aH):aX,aQ=e=>null!=e&&aE(e[ad]);"use strict";var a0={isArray:aw,isArrayBuffer:ak,isBuffer:a_,isFormData:e=>{if(!e)return!1;if(aM&&e instanceof aM)return!0;let t=ac(e);if(!t||t===Object.prototype||!aE(e.append))return!1;let n=ay(e);return"formdata"===n||"object"===n&&aE(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ak(e.buffer)},isString:aS,isNumber:aO,isBoolean:e=>!0===e||!1===e,isObject:aj,isPlainObject:aT,isEmptyObject:e=>{if(!aj(e)||a_(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:aL,isRequest:az,isResponse:aF,isHeaders:aB,isUndefined:ax,isDate:aC,isFile:aI,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:aP,isRegExp:aZ,isFunction:aE,isStream:e=>aj(e)&&aE(e.pipe),isURLSearchParams:aD,isTypedArray:aV,isFileList:aA,forEach:aU,merge:function e(...t){let{caseless:n,skipUndefined:r}=aW(this)&&this||{},i={},o=(t,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let a=n&&"string"==typeof o&&a$(i,o)||o,s=ah(i,a)?i[a]:void 0;aT(s)&&aT(t)?i[a]=e(s,t):aT(t)?i[a]=e({},t):aw(t)?i[a]=t.slice():r&&ax(t)||(i[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||a_(n)||(aU(n,o),"object"!=typeof n||aw(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];aK.call(n,t)&&o(n[t],t)}}return i},extend:(e,t,n,{allOwnKeys:r}={})=>(aU(t,(t,r)=>{n&&aE(t)?Object.defineProperty(e,r,{__proto__:null,value:al(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{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),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&ac(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype)return t},kindOf:ay,kindOfTest:av,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(aw(e))return e;let t=e.length;if(!aO(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,r=(e&&e[ad]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n,r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:aq,hasOwnProperty:ah,hasOwnProp:ah,hasOwnInPrototypeChain:ag,getSafeProp:(e,t)=>null!=e&&ag(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=ac(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(ap(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),r=Object.create(null),i=[],o=e;for(;null!=o&&-1===i.indexOf(o);){i.push(o);let a=o===e?t:ac(o);if(am(o,a,o===e))break;let s=Object.getOwnPropertyNames(o);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(o)),s))!ap(t)&&(ah(r,t)||(n[t]=e[t],r[t]=!0));o=a}return n},reduceDescriptors:aG,freezeMethods:e=>{aG(e,(t,n)=>{if(aE(e)&&["arguments","caller","callee"].includes(n))return!1;if(aE(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};
58return(aw(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),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*=1)?e:t,findKey:a$,global:aH,isContextDefined:aW,isSpecCompliantForm:function(e){return!!(e&&aE(e.append)&&"FormData"===e[af]&&e[ad])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(aj(e)){if(t.has(e))return;if(a_(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),aR(e))for(let t of(r=[],e)){let e=n(t);ax(e)||r.push(e)}else r=aw(e)?[]:{},aU(e,(e,t)=>{let i=n(e);ax(i)||(r[t]=i)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:aY,isThenable:e=>e&&(aj(e)||aE(e))&&aE(e.then)&&aE(e.catch),setImmediate:aX,asap:aJ,isIterable:aQ,isSafeIterable:e=>null!=e&&ag(e,ad)&&aQ(e)};let a1=a0.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"]),a2=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),a3=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function a4(e,t){return a0.isArray(e)?e.map(e=>a4(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function a5(e){let t=Object.create(null);return a0.forEach(e.toJSON(),(e,n)=>{t[n]=a4(e,a3)}),t}"use strict";let a6=Symbol("internals");function a8(e){return e&&String(e).trim().toLowerCase()}function a9(e){return!1===e||null==e?e:a0.isArray(e)?e.map(a9):a4(String(e),a2)}let a7=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function se(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function st(e,t,n,r,i){if(a0.isFunction(r))return r.call(this,t,n);if(i&&(t=n),a0.isString(t)){if(a0.isString(r))return -1!==t.indexOf(r);if(a0.isRegExp(r))return r.test(t)}}class sn{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=a8(t);if(!i)return;let o=a0.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=a9(e))}let o=(e,t)=>a0.forEach(e,(e,n)=>i(e,n,t));if(a0.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let r;if(a0.isString(e)&&(e=e.trim())&&(r=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var a;let n,r,i,s;o((s={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let t=a0.hasOwnProp(s,n);!n||t&&a0.hasOwnProp(a1,n)||("set-cookie"===n?t?s[n].push(r):s[n]=[r]:s[n]=t?s[n]+", "+r:r)}),s),t)}else if(a0.isObject(e)&&a0.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!a0.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],a0.hasOwnProp(n,i)?(r=n[i],n[i]=a0.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}o(n,t)}else null!=e&&i(t,e,n)}return this}get(e,t){if(e=a8(e)){let n=a0.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
58for(;t=r.exec(e);)n[t[1]]=t[2];return n}if(a0.isFunction(t))return t.call(this,e,n);if(a0.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=a8(e)){let n=a0.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||st(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=a8(e)){let i=a0.findKey(n,e);i&&(!t||st(n,n[i],i,t))&&(delete n[i],r=!0)}}return a0.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||st(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return a0.forEach(this,(r,i)=>{let o=a0.findKey(n,i);if(o){t[o]=a9(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=a9(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return a0.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&a0.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")}getSetCookie(){let e=this.get("set-cookie");return a0.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),r=0,i=!1,o=!1;function a(e){let i=se(n.slice(r,e)),o=i.indexOf("=");if(o<1)return;let a=se(i.slice(0,o));if(!a7.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let l=se(i.slice(o+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(34===i||92===i&&(r+=1)>=t)return e;n+=e[r]}return n}(l)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?o?o=!1:92===t?o=!0:34===t&&(i=!1):34===t?i=!0:(44===t||59===t)&&(a(e),r=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[a6]=this[a6]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=a8(e);if(!t[r]){let i;i=a0.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+i,{__proto__:null,value:function(n,r,i){return this[t].call(this,e,n,r,i)},configurable:!0})}),t[r]=!0}}return a0.isArray(e)?e.forEach(r):r(e),this}}"use strict";sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a0.reduceDescriptors(sn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),a0.freezeMethods(sn);let sr="[REDACTED ****]";function si(e){try{return String(e)}catch(e){return""}}class so extends Error{static from(e,t,n,r,i,o){let a=e.message;!a&&a0.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?si(e.message):si(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new so(a,t||e.code,n,r,i);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e,t,n,r=this.config,i=r&&a0.hasOwnProp(r,"redact")?r.redact:void 0,o=a0.isArray(i)&&i.length>0?(e=new Set(i.map(e=>String(e).toLowerCase())),t=[],(n=r=>{let i;if(null===r||"object"!=typeof r||a0.isBuffer(r))return r;if(-1===t.indexOf(r)){if(r instanceof sn&&(r=r.toJSON()),t.push(r),a0.isArray(r))i=[],r.forEach((e,t)=>{let r=n(e);a0.isUndefined(r)||(i[t]=r)});else{if(!a0.isPlainObject(r)&&function(e){if(a0.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(a0.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(r))return t.pop(),r;for(let[t,o]of(i=Object.create(null),Object.entries(r))){let r=e.has(t.toLowerCase())?sr:n(o);a0.isUndefined(r)||(i[t]=r)}}return t.pop(),i}})(r)):a0.toJSONObject(r);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:o,code:this.code,status:this.status}}}"use strict";so.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",so.ERR_BAD_OPTION="ERR_BAD_OPTION",so.ECONNABORTED="ECONNABORTED",so.ETIMEDOUT="ETIMEDOUT",so.ECONNREFUSED="ECONNREFUSED",so.ERR_NETWORK="ERR_NETWORK",so.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",so.ERR_DEPRECATED="ERR_DEPRECATED",so.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",so.ERR_BAD_REQUEST="ERR_BAD_REQUEST",so.ERR_CANCELED="ERR_CANCELED",so.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",so.ERR_INVALID_URL="ERR_INVALID_URL",so.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var sa=so;function ss(e){return a0.isPlainObject(e)||a0.isArray(e)}function sl(e){return a0.endsWith(e,"[]")?e.slice(0,-2):e}function su(e,t,n){return e?e.concat(t).map(function(e,t){return e=sl(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}"use strict";let sc=a0.toFlatObject(a0,{},null,function(e){return/^is[A-Z]/.test(e)});var sd=function(e,t,n){if(!a0.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(e,t)=>
58{let r=a0.getSafeProp(n,e);return a0.isUndefined(r)?t:r},i=r("metaTokens",!0),o=r("visitor")||p,a=r("dots",!1),s=r("indexes",!1),l=r("Blob")||"u">typeof Blob&&Blob,u=r("maxDepth",100),c=l&&a0.isSpecCompliantForm(t),d=[];if(!a0.isFunction(o))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(a0.isDate(e))return e.toISOString();if(a0.isBoolean(e))return e.toString();if(!c&&a0.isBlob(e))throw new sa("Blob is not supported. Use a Buffer instead.");if(a0.isArrayBuffer(e)||a0.isTypedArray(e)){if(c&&"function"==typeof l)return new l([e]);throw new sa("Blob is not supported. Use a Buffer instead.",sa.ERR_NOT_SUPPORT)}return e}function h(e){if(e>u)throw new sa("Object is too deeply nested ("+e+" levels). Max depth: "+u,sa.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,r){let o=e;if(a0.isReactNative(t)&&a0.isReactNativeBlob(e))return t.append(su(r,n,a),f(e)),!1;if(e&&!r&&"object"==typeof e)if(a0.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(u===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!a0.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),h(1+t.length-1),n})}(e);else{var l;if(a0.isArray(e)&&(l=e,a0.isArray(l)&&!l.some(ss))||(a0.isFileList(e)||a0.endsWith(n,"[]"))&&(o=a0.toArray(e)))return n=sl(n),o.forEach(function(e,r){a0.isUndefined(e)||null===e||t.append(!0===s?su([n],r,a):null===s?n:n+"[]",f(e))}),!1}return!!ss(e)||(t.append(su(r,n,a),f(e)),!1)}let m=Object.assign(sc,{defaultVisitor:p,convertValue:f,isVisitable:ss});if(!a0.isObject(e))throw TypeError("data must be an object");return!function e(n,r,i=0){if(!a0.isUndefined(n)){if(h(i),-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),a0.forEach(n,function(n,a){!0===(!(a0.isUndefined(n)||null===n)&&o.call(t,n,a0.isString(a)?a.trim():a,r,m))&&e(n,r?r.concat(a):[a],i+1)}),d.pop()}}(e),t};function sf(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function sh(e,t){this._pairs=[],e&&sd(e,this,t)}"use strict";let sp=sh.prototype;function sm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function sg(e,t,n){let r;if(!t)return e;e=e||"";let i=a0.isFunction(n)?{serialize:n}:n,o=a0.getSafeProp(i,"encode")||sm,a=a0.getSafeProp(i,"serialize");if(r=a?a(t,i):a0.isURLSearchParams(t)?t.toString():new sh(t,i).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}"use strict";sp.append=function(e,t){this._pairs.push([e,t])},sp.toString=function(e){let t=e?t=>e.call(this,t,sf):sf;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let sy=Symbol("internals");function sv(e){return e?e.length:0}function sb(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function sw(e,t){let n=e.handlers,r=sv(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}"use strict";"use strict";"use strict";"use strict";var sx=class{constructor(){this.handlers=[],this[sy]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},i=this[sy];null==this.handlers&&(this.handlers=[]),sw(this,i);let o=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(o,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,o}eject(e){let t=this[sy];sw(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(sb(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],sw(this,this[sy]))}forEach(e){let t=this[sy];sw(this,t),t.iterationDepth++;try{a0.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(sw(this,t),sb(this.handlers),t.handlersLength=sv(this.handlers))}}},s_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},sk="u">typeof URLSearchParams?URLSearchParams:sh,sS="u">typeof FormData?FormData:null,sE="u">typeof Blob?Blob:null,sO={};M(sO,"hasBrowserEnv",()=>sj),M(sO,"navigator",()=>sT),M(sO,"hasStandardBrowserEnv",()=>sC),M(sO,"hasStandardBrowserWebWorkerEnv",()=>sI),M(sO,"origin",()=>sP);"use strict";"use strict";let sj="u">typeof window&&"u">typeof document,sT="object"==typeof navigator&&navigator||void 0,sC=sj&&(!sT||0>["ReactNative","NativeScript","NS"].indexOf(sT.product)),sI="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,sP=sj&&window.location.href||"http://localhost";
58var sA={...sO,isBrowser:!0,classes:{URLSearchParams:sk,FormData:sS,Blob:sE},protocols:["http","https","file","blob","url","data"]};function sR(e){if(e>100)throw new sa("FormData field is too deeply nested ("+e+" levels). Max depth: 100",sa.ERR_FORM_DATA_DEPTH_EXCEEDED)}"use strict";"use strict";var sN=function(e){if(a0.isFormData(e)&&a0.isFunction(e.entries)){let t={};return a0.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){sR(i);let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&a0.isArray(r)?r.length:o,s)?a0.hasOwnProp(r,o)?r[o]=a0.isArray(r[o])?r[o].concat(n):[r[o],n]:r[o]=n:(a0.hasOwnProp(r,o)&&a0.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&a0.isArray(r[o])&&(r[o]=function(e){let t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!a}(function(e){let t,n=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=r.exec(e));)sR(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null};"use strict";let sM=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),sD=(e,t)=>null!=e&&a0.hasOwnProp(e,t)?e[t]:void 0,sL={transitional:s_,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=a0.isObject(e);if(o&&a0.isHTMLForm(e)&&(e=new FormData(e)),a0.isFormData(e))return i?JSON.stringify(sN(e)):e;if(a0.isArrayBuffer(e)||a0.isBuffer(e)||a0.isStream(e)||a0.isFile(e)||a0.isBlob(e)||a0.isReadableStream(e))return e;if(a0.isArrayBufferView(e))return e.buffer;if(a0.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();
58if(o){let t=sD(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return sd(e,new sA.classes.URLSearchParams,{visitor:function(e,t,n,r){return sA.isNode&&a0.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=a0.isFileList(e))||r.indexOf("multipart/form-data")>-1){let r=sD(this,"env"),i=r&&r.FormData;return sd(n?{"files[]":e}:e,i&&new i,t)}}if(o||i){t.setContentType("application/json",!1);var a=e;if(a0.isString(a))try{return(0,JSON.parse)(a),a0.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=sD(this,"transitional")||sL.transitional,n=t&&t.forcedJSONParsing,r=sD(this,"responseType"),i="json"===r;if(a0.isResponse(e)||a0.isReadableStream(e))return e;if(e&&a0.isString(e)&&(n&&!r||i)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,sD(this,"parseReviver"))}catch(e){if(!n&&i){if("SyntaxError"===e.name)throw sa.from(e,sa.ERR_BAD_RESPONSE,this,null,sD(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sA.classes.FormData,Blob:sA.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function sz(e,t){let n=this||sL,r=t||n,i=sn.from(r.headers),o=r.data;return a0.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}"use strict";function sF(e){return!!(e&&e.__CANCEL__)}"use strict";"use strict";a0.forEach(sM,e=>{sL.headers[e]={}});var sB=class extends sa{constructor(e,t,n){super(null==e?"canceled":e,sa.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function sU(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new sa("Request failed with status code "+n.status,n.status>=400&&n.status<500?sa.ERR_BAD_REQUEST:sa.ERR_BAD_RESPONSE,n.config,n.request,n))}"use strict";let s$=/[\t\n\r]/g;function sH(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(s$,"")}"use strict";function sW(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}"use strict";var sV=function(e,t){let n,r=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];n||(n=l),r[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},sq=function(e,t){let n,r,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n),(...e)=>a(e)]};"use strict";"use strict";"use strict";let sK=(e,t,n=3)=>{let r=0,i=sV(50,250);return sq(n=>{if(!n||!a0.isNumber(n.loaded))return;let o=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(o,a):o),l=Math.max(0,s-r),u=i(l);r=Math.max(r,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a?(a-s)/u:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},sZ=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sG=(e,t=a0.asap)=>(...n)=>t(()=>e(...n));var sY=sA.hasStandardBrowserEnv?(C=new URL(sA.origin),I=sA.navigator&&/(msie|trident)/i.test(sA.navigator.userAgent),e=>(e=new URL(e,sA.origin),C.protocol===e.protocol&&C.host===e.host&&(I||C.port===e.port))):()=>!0,sX=sA.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];a0.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),a0.isString(r)&&s.push(`path=${r}`),a0.isString(i)&&s.push(`domain=${i}`),!0===o&&s.push("secure"),a0.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(-1!==i&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch(e){return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};let sJ=/^https?:(?!\/\/)/i;function sQ(e,t){if("string"==typeof e){let r=sH(e);if(sJ.test(r)){var n;let e,i,o;throw new sa(`Invalid URL ${JSON.stringify((o=(-1===(i=(e=r.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${sr}@`)).indexOf("#"))?e:e.slice(0,i)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${sr}`),-1===i?o:`${o}#${!(n=e.slice(i+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${sr}`)}`))}: missing "//" after protocol`,sa.ERR_INVALID_URL,t)}}}function s0(e,t,n,r){sQ(t,r);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(i||!1===n)){sQ(e,r);if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}return t}"use strict";let s1=e=>e instanceof sn?{...e}:e;function s2(e,t){var n;e=e||{},t=t||{};let r=Object.create(null);function i(e,t,n,r){return a0.isPlainObject(e)&&a0.isPlainObject(t)?a0.merge.call({caseless:r},e,t):a0.isPlainObject(t)?a0.merge({},t):a0.isArray(t)?t.slice():t}function o(e,t,n,r){return a0.isUndefined(t)?a0.isUndefined(e)?void 0:i(void 0,e,n,r):i(e,t,n,r)}function a(e,t){if(!a0.isUndefined(t))return i(void 0,t)}function s(e,t){return a0.isUndefined(t)?a0.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function l(n,r,o){return a0.hasOwnProp(t,o)?i(n,r):a0.hasOwnProp(e,o)?i(void 0,n):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage: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,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(e,t,n)=>o(s1(e),s1(t),n,!0)};return a0.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=a0.hasOwnProp(u,n)?u[n]:o,a=i(a0.hasOwnProp(e,n)?e[n]:void 0,a0.hasOwnProp(t,n)?t[n]:void 0,n);a0.isUndefined(a)&&i!==l||(r[n]=a)}),a0.hasOwnProp(t,"validateStatus")&&a0.isUndefined(t.validateStatus)&&!1===function(n){let r=a0.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!a0.isUndefined(r)){if(!a0.isPlainObject(r))return;else if(a0.hasOwnProp(r,n))return r[n]}let i=a0.hasOwnProp(e,"transitional")?e.transitional:void 0;if(a0.isPlainObject(i)&&a0.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(a0.hasOwnProp(e,"validateStatus")?r.validateStatus=i(void 0,e.validateStatus):delete r.validateStatus),r}"use strict";let s3=["content-type","content-length"];var s4=function(e){let t=s2({},e),n=e=>a0.hasOwnProp(t,e)?t[e]:void 0,r=n("data"),i=n("withXSRFToken"),o=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");
58if(t.headers=s=sn.from(s),t.url=sg(s0(u,d,c,t),n("params"),n("paramsSerializer")),l){let t=a0.getSafeProp(l,"username")||"",n=a0.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw sa.from(t,sa.ERR_BAD_OPTION_VALUE,e)}}if(a0.isFormData(r)){let e=a0.getSafeProp(r,"getHeaders");if(sA.hasStandardBrowserEnv||sA.hasStandardBrowserWebWorkerEnv||a0.isReactNative(r))s.setContentType(void 0);else{var f,h;a0.isFunction(e)&&(f=s,h=e.call(r),"content-only"!==n("formDataHeaderPolicy")?f.set(h):Object.entries(h||{}).forEach(([e,t])=>{s3.includes(e.toLowerCase())&&f.set(e,t)}))}}if(sA.hasStandardBrowserEnv&&(a0.isFunction(i)&&(i=i(t)),!0===i||null==i&&sY(t.url))){let e=o&&a&&sX.read(a);e&&s.set(o,e)}return t},s5="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,o,a,s,l,u=s4(e),c=u.data,d=sn.from(u.headers).normalize(),{responseType:f,onUploadProgress:h,onDownloadProgress:p}=u;function m(){a&&a(),s&&s(),u.cancelToken&&u.cancelToken.unsubscribe(r),u.signal&&u.signal.removeEventListener("abort",r)}let g=new XMLHttpRequest;function y(r){if(!g)return;if(0===g.status&&"file"!==(sW(sH(u.url))||sW(sA.origin))&&!(g.responseURL&&g.responseURL.startsWith("file:"))){n(new sa("Request aborted",sa.ECONNABORTED,e,g)),m(),g=null;return}try{r?l&&l(r):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let i=sn.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());sU(function(e){t(e),m()},function(e){n(e),m()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(y)},g.onabort=function(){g&&(n(new sa("Request aborted",sa.ECONNABORTED,e,g)),m(),g=null)},g.onerror=function(t){let r=new sa(t&&t.message?t.message:"Network Error",sa.ERR_NETWORK,e,g);r.event=t||null,n(r),m(),g=null},g.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||s_;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),n(new sa(t,r.clarifyTimeoutError?sa.ETIMEDOUT:sa.ECONNABORTED,e,g)),m(),g=null},void 0===c&&d.setContentType(null),"setRequestHeader"in g&&a0.forEach(a5(d),function(e,t){g.setRequestHeader(t,e)}),a0.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),f&&"json"!==f&&(g.responseType=u.responseType),p&&([o,s,l]=sK(p,!0),g.addEventListener("progress",o)),h&&g.upload&&([i,a]=sK(h),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(u.cancelToken||u.signal)&&(r=t=>{g&&(n(!t||t.type?new sB(null,e,g):t),g.abort(),m(),g=null)},u.cancelToken&&u.cancelToken.subscribe(r),u.signal&&(u.signal.aborted?r():u.signal.addEventListener("abort",r)));let v=sW(u.url);if(v&&!sA.protocols.includes(v)){n(new sa("Unsupported protocol "+v+":",sa.ERR_BAD_REQUEST,e)),m();return}g.send(c||null)})};let s6=function*(e,t){let n,r=e.byteLength;if(!t||r<t)return void(yield e);let i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},s8=async function*(e,t){for await(let n of s9(e))yield*s6(n,t)},s9=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},s7=(e,t,n,r)=>{let i,o=s8(e,t),a=0,s=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await o.next();if(t){s(),e.close();return}let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},le=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,lt=(e,t,n)=>t+2<n&&le(e.charCodeAt(t+1))&&le(e.charCodeAt(t+2)),ln=e=>e<=57?e-48:(223&e)-55,lr=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,li=e=>9===e||10===e||12===e||13===e||32===e,lo=e=>{var t;let n,r,i=e.length,o=0,a=0,s=!1;for(let t=0;t<i;t++){let n=e.charCodeAt(t);if(37===n&&lt(e,t,i)&&(n=16*ln(e.charCodeAt(t+1))+ln(e.charCodeAt(t+2)),t+=2),!li(n)){if(61===n){a++;continue}if(!lr(n)||a>0){s=!0;continue}o++}}if(s||a>2||a>0&&(o+a)%4!=0||o%4==1){let t,n;return t=e.length,n=0,t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)}return n=Math.floor((t=o)/4),3*n+(2==(r=t%4)?1:2*(3===r))},la="1.20.0",ls={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ll}=a0,lu=e=>{if(!a0.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},lc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ld=e=>{let t,n=void 0!==a0.global&&null!==a0.global?a0.global:globalThis,{ReadableStream:r,TextEncoder:i}=n,{fetch:o,Request:a,Response:s}=e=a0.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=o?ll(o):"function"==typeof fetch,u=ll(a),c=ll(s);if(!l)return!1;
58let d=l&&ll(r),f=l&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),h=u&&d&&lc(()=>{let e=!1,t=new a(sA.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),p=c&&d&&lc(()=>a0.isReadableStream(new s("").body)),m={stream:p&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{m[e]||(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new sa(`Response type '${e}' is not supported`,sa.ERR_NOT_SUPPORT,n)})});let g=async e=>{if(null==e)return 0;if(a0.isBlob(e))return e.size;if(a0.isSpecCompliantForm(e)){let t=new a(sA.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return a0.isArrayBufferView(e)||a0.isArrayBuffer(e)?e.byteLength:(a0.isURLSearchParams(e)&&(e+=""),a0.isString(e))?(await f(e)).byteLength:void 0},y=async(e,t)=>{let n=a0.toFiniteNumber(e.getContentLength());return null==n?g(t):n};return async e=>{let t,{url:n,method:r,data:l,signal:c,cancelToken:f,timeout:v,onDownloadProgress:b,onUploadProgress:w,responseType:x,headers:_,withCredentials:k="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:O,maxRedirects:j}=s4(e),T=a0.isNumber(E)&&E>-1,C=a0.isNumber(O)&&O>-1,I=o||fetch;x=x?(x+"").toLowerCase():"text";let P=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof sa?t:new sB(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new sa(`timeout of ${t}ms exceeded`,sa.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!r){if(e.aborted)return void i.call(e);e.addEventListener("abort",i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>a0.asap(a),s})([c,f&&f.toAbortSignal()],v),A=null,R=P&&P.unsubscribe&&(()=>{P.unsubscribe()}),N=null,M=()=>new sa("Request body larger than maxBodyLength limit",sa.ERR_BAD_REQUEST,e,A);try{var D,z;let o,c,f,v,F=(c="auth",a0.hasOwnProp(e,c)?e[c]:void 0);if(F){let e=a0.getSafeProp(F,"username")||"",t=a0.getSafeProp(F,"password")||"";o={username:e,password:t}}if(f=(D=n).indexOf("://"),v=D,-1!==f&&(v=v.slice(f+3)),v.includes("@")||v.includes(":")){let e=new URL(n,sA.origin);if(!o&&(e.username||e.password)){let t=lu(e.username),n=lu(e.password);o={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(o){let e;_.delete("authorization"),_.set("Authorization","Basic "+btoa((e=(o.username||"")+":"+(o.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(T&&"string"==typeof n&&n.startsWith("data:")){let t;if(z=n,t="string"==typeof z?z.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let o=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&lt(i,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o})(-1===t?z:z.slice(0,t),lo)>E)throw new sa("maxContentLength size of "+E+" exceeded",sa.ERR_BAD_RESPONSE,e,A)}if(C&&"get"!==r&&"head"!==r){let e=await g(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>O))throw M()}let B=C&&(a0.isReadableStream(l)||a0.isStream(l)),U=(e,t,n)=>s7(e,65536,e=>{if(C&&e>O)throw N=M();t&&t(e)},n);if(h&&"get"!==r&&"head"!==r&&(w||B)){if(t=null==t?await y(_,l):t,0!==t||B){let e,r=new a(n,{method:"POST",body:l,duplex:"half"});if(a0.isFormData(l)&&(e=r.headers.get("content-type"))&&_.setContentType(e),r.body){let[e,n]=w&&sZ(t,sK(sG(w)))||[];l=U(r.body,e,n)}}}else if(B&&!u&&d&&"get"!==r&&"head"!==r)l=U(l);else if(B&&u&&!h&&"get"!==r&&"head"!==r)throw new sa("Stream request bodies are not supported by the current fetch implementation",sa.ERR_NOT_SUPPORT,e,A);a0.isString(k)||(k=k?"include":"omit");let $=u&&"credentials"in a.prototype;if(a0.isFormData(l)){let e=_.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&_.delete("content-type")}_.set("User-Agent","axios/"+la,!1);let H=null==S?S:Object.assign(Object.create(null),S);H&&(delete H.body,delete H.headers,delete H.method,delete H.signal,delete H.duplex,delete H.credentials);let W=Object.assign(Object.create(null),H,{signal:P,method:r.toUpperCase(),headers:a5(_.normalize()),body:l,duplex:"half",credentials:$?k:void 0});u&&(a0.forEach(ls,(e,t)=>{void 0===W[t]&&(W[t]=e)}),void 0===W.signal&&(W.signal=null),void 0===W.body&&(W.body=null)),0===j&&(W.redirect="manual",H&&(H.redirect="manual")),A=u&&new a(n,W);let V=await (u?I(A,H):I(n,W)),q=sn.from(V.headers);if(T){let t=a0.toFiniteNumber(q.getContentLength());if(null!=t&&t>E)throw new sa("maxContentLength size of "+E+" exceeded",sa.ERR_BAD_RESPONSE,e,A)}let K=p&&("stream"===x||"response"===x);if(p&&V.body&&(b||T||K&&R)){let t={};
58["status","statusText","headers"].forEach(e=>{t[e]=V[e]});let n=a0.toFiniteNumber(q.getContentLength()),[r,i]=b&&sZ(n,sK(sG(b),!0))||[];V=new s(s7(V.body,65536,t=>{if(T&&t>E)throw new sa("maxContentLength size of "+E+" exceeded",sa.ERR_BAD_RESPONSE,e,A);r&&r(t)},()=>{i&&i(),R&&R()}),t)}x=x||"text";let Z=await m[a0.findKey(m,x)||"text"](V,e);if(T&&!p&&!K){let t;if(null!=Z&&("number"==typeof Z.byteLength?t=Z.byteLength:"number"==typeof Z.size?t=Z.size:"string"==typeof Z&&(t="function"==typeof i?new i().encode(Z).byteLength:Z.length)),"number"==typeof t&&t>E)throw new sa("maxContentLength size of "+E+" exceeded",sa.ERR_BAD_RESPONSE,e,A)}return!K&&R&&R(),await new Promise((t,n)=>{sU(t,n,{data:Z,headers:sn.from(V.headers),status:V.status,statusText:V.statusText,config:e,request:A})})}catch(t){if(R&&R(),P&&P.aborted&&P.reason instanceof sa){let n=P.reason;throw n.config=e,A&&(n.request=A),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(N)throw A&&!N.request&&(N.request=A),N;if(t instanceof sa)throw A&&!t.request&&(t.request=A),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new sa("Network Error",sa.ERR_NETWORK,e,A,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw sa.from(t,t&&t.code,e,A,t&&t.response)}}},lf=new Map,lh=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,o=[r,i,n],a=o.length,s,l,u=lf;for(;a--;)s=o[a],void 0===(l=u.get(s))&&u.set(s,l=a?new Map:ld(t)),u=l;return l};lh();let lp={http:null,xhr:s5,fetch:{get:lh}};a0.forEach(lp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});"use strict";let lm=e=>`- ${e}`,lg=e=>a0.isFunction(e)||null===e||!1===e;var ly=function(e,t){let n,r,{length:i}=e=a0.isArray(e)?e:[e],o={};for(let a=0;a<i;a++){let i;if(r=n=e[a],!lg(n)&&void 0===(r=lp[(i=String(n)).toLowerCase()]))throw new sa(`Unknown adapter '${i}'`);if(r&&(a0.isFunction(r)||(r=r.get(t))))break;o[i||"#"+a]=r}if(!r){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new sa("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(lm).join("\n"):" "+lm(e[0]):"as no adapter specified"),sa.ERR_NOT_SUPPORT)}return r};function lv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sB(null,e)}function lb(e){let t=a0.toSafeFlatObject(e);return lv(t),t.headers=sn.from(a0.getSafeProp(t,"headers")),t.data=sz.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ly(t.adapter||sL.adapter,t)(t).then(function(e){lv(t),t.response=e;try{e.data=sz.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=sn.from(e.headers),e},function(e){if(!sF(e)&&(lv(t),e&&e.response)){t.response=e.response;try{e.response.data=sz.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=sn.from(e.response.headers)}return Promise.reject(e)})}"use strict";let lw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lw[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});"use strict";let lx={};lw.transitional=function(e,t,n){function r(e,t){return"[Axios v"+la+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new sa(r(i," has been removed"+(t?" in "+t:"")),sa.ERR_DEPRECATED);return t&&!lx[i]&&(lx[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)}},lw.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var l_=function(e,t,n){if("object"!=typeof e||null===e)throw new sa("options must be an object",sa.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new sa("option "+o+" must be "+n,sa.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new sa("Unknown option "+o,sa.ERR_BAD_OPTION)}};class lk{constructor(e){this.defaults=e||{},this.interceptors={request:new sx,response:new sx}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r="";if("string"==typeof n){let e=n.indexOf("\n");r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=s2(this.defaults,t);void 0!==i&&l_(i,{silentJSONParsing:lw.transitional(lw.boolean),forcedJSONParsing:lw.transitional(lw.boolean),clarifyTimeoutError:lw.transitional(lw.boolean),legacyInterceptorReqResOrdering:lw.transitional(lw.boolean),advertiseZstdAcceptEncoding:lw.transitional(lw.boolean),validateStatusUndefinedResolves:lw.transitional(lw.boolean)}
58,!1),null!=o&&(a0.isFunction(o)?t.paramsSerializer={serialize:o}:l_(o,{encode:lw.function,serialize:lw.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),l_(t,{baseUrl:lw.spelling("baseURL"),withXsrfToken:lw.spelling("withXSRFToken")},!0),t.method=(a0.getSafeProp(t,"method")||a0.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&a0.merge(a.common,a[t.method]);a&&a0.forEach(sM.concat("common"),e=>{delete a[e]}),t.headers=sn.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let n=t.transitional||s_;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[lb.bind(this),void 0];for(e.unshift(...l),e.push(...c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=l.length;let f=t;for(;d<r;){let e=l[d++],t=l[d++];try{f=e?e(f):f}catch(e){if(!t){n=Promise.reject(e);break}try{let r=t.call(this,e);a0.isThenable(r)&&(n=Promise.resolve(r).then(()=>lb.call(this,f)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=lb.call(this,f)}catch(e){n=Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return sg(s0((e=s2(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}"use strict";a0.forEach(["delete","get","head","options"],function(e){lk.prototype[e]=function(t,n){return this.request(s2(n||{},{method:e,url:t,data:n&&a0.hasOwnProp(n,"data")?n.data:void 0}))}}),a0.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,i){return this.request(s2(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}lk.prototype[e]=t(),"query"!==e&&(lk.prototype[e+"Form"]=t(!0))});class lS{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");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,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 sB(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;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let 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 lS(function(t){e=t}),cancel:e}}}"use strict";"use strict";"use strict";let lE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
58alContent: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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lE).forEach(([e,t])=>{void 0===lE[t]&&(lE[t]=e)});let lO=function e(t){let n=new lk(t),r=al(lk.prototype.request,n);return a0.extend(r,lk.prototype,n,{allOwnKeys:!0}),a0.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(s2(t,n))},r}(sL);lO.Axios=lk,lO.CanceledError=sB,lO.CancelToken=lS,lO.isCancel=sF,lO.VERSION=la,lO.toFormData=sd,lO.AxiosError=sa,lO.Cancel=lO.CanceledError,lO.all=function(e){return Promise.all(e)},lO.spread=function(e){return function(t){return e.apply(null,t)}},lO.isAxiosError=function(e){return a0.isObject(e)&&!0===e.isAxiosError},lO.mergeConfig=s2,lO.AxiosHeaders=sn,lO.formToJSON=e=>sN(a0.isHTMLForm(e)?new FormData(e):e),lO.getAdapter=ly,lO.HttpStatusCode=lE,lO.default=lO;let{Axios:lj,AxiosError:lT,CanceledError:lC,isCancel:lI,CancelToken:lP,VERSION:lA,all:lR,Cancel:lN,isAxiosError:lM,spread:lD,toFormData:lL,AxiosHeaders:lz,HttpStatusCode:lF,formToJSON:lB,getAdapter:lU,mergeConfig:l$,create:lH}=lO;"use strict";var lW={};lW=(()=>{let e,t;var n={365(e){e.exports=(()=>{let e,t;var n={543(e,t,n){var r;e=n.nmd(e),(function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=1/0,u=NaN,c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],d="[object Arguments]",f="[object Array]",h="[object Boolean]",p="[object Date]",m="[object Error]",g="[object Function]",y="[object GeneratorFunction]",v="[object Map]",b="[object Number]",w="[object Object]",x="[object Promise]",_="[object RegExp]",k="[object Set]",S="[object String]",E="[object Symbol]",O="[object WeakMap]",j="[object ArrayBuffer]",T="[object DataView]",C="[object Float32Array]",I="[object Float64Array]",P="[object Int8Array]",A="[object Int16Array]",R="[object Int32Array]",N="[object Uint8Array]",M="[object Uint8ClampedArray]",D="[object Uint16Array]",z="[object Uint32Array]",F=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,W=RegExp($.source),V=RegExp(H.source),q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(J.source),ee=/^\s+/,et=/\s/,en=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,er=/\{\n\/\* \[wrapped with (.+)\] \*/,ei=/,? & /,eo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ea=/[()=,{}\[\]\/\s]/,es=/\\(\\)?/g,el=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eu=/\w*$/,ec=/^[-+]0x[0-9a-f]+$/i,ed=/^0b[01]+$/i,ef=/^\[object .+?Constructor\]$/,eh=/^0o[0-7]+$/i,ep=/^(?:0|[1-9]\d*)$/,em=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 7,290 bytes, line 58
587f]/g,eg=/($^)/,ey=/['\n\r\u2028\u2029\\]/g,ev="\\ud800-\\udfff",eb="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ew="\\u2700-\\u27bf",ex="a-z\\xdf-\\xf6\\xf8-\\xff",e_="A-Z\\xc0-\\xd6\\xd8-\\xde",ek="\\ufe0e\\ufe0f",eS="\\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",eE="["+eS+"]",eO="["+eb+"]",ej="["+ex+"]",eT="[^"+ev+eS+"\\d+"+ew+ex+e_+"]",eC="\\ud83c[\\udffb-\\udfff]",eI="[^"+ev+"]",eP="(?:\\ud83c[\\udde6-\\uddff]){2}",eA="[\\ud800-\\udbff][\\udc00-\\udfff]",eR="["+e_+"]",eN="\\u200d",eM="(?:"+ej+"|"+eT+")",eD="(?:"+eR+"|"+eT+")",eL="(?:['’](?:d|ll|m|re|s|t|ve))?",ez="(?:['’](?:D|LL|M|RE|S|T|VE))?",eF="(?:"+eO+"|"+eC+")?",eB="["+ek+"]?",eU=eB+eF+"(?:"+eN+"(?:"+[eI,eP,eA].join("|")+")"+eB+eF+")*",e$="(?:"+["["+ew+"]",eP,eA].join("|")+")"+eU,eH="(?:"+[eI+eO+"?",eO,eP,eA,"["+ev+"]"].join("|")+")",eW=RegExp("['’]","g"),eV=RegExp(eO,"g"),eq=RegExp(eC+"(?="+eC+")|"+eH+eU,"g"),eK=RegExp([eR+"?"+ej+"+"+eL+"(?="+[eE,eR,"$"].join("|")+")",eD+"+"+ez+"(?="+[eE,eR+eM,"$"].join("|")+")",eR+"?"+eM+"+"+eL,eR+"+"+ez,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",e$].join("|"),"g"),eZ=RegExp("["+eN+ev+eb+ek+"]"),eG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eY=["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"],eX=-1,eJ={};eJ[C]=eJ[I]=eJ[P]=eJ[A]=eJ[R]=eJ[N]=eJ[M]=eJ[D]=eJ[z]=!0,eJ[d]=eJ[f]=eJ[j]=eJ[h]=eJ[T]=eJ[p]=eJ[m]=eJ[g]=eJ[v]=eJ[b]=eJ[w]=eJ[_]=eJ[k]=eJ[S]=eJ[O]=!1;var eQ={};eQ[d]=eQ[f]=eQ[j]=eQ[T]=eQ[h]=eQ[p]=eQ[C]=eQ[I]=eQ[P]=eQ[A]=eQ[R]=eQ[v]=eQ[b]=eQ[w]=eQ[_]=eQ[k]=eQ[S]=eQ[E]=eQ[N]=eQ[M]=eQ[D]=eQ[z]=!0,eQ[m]=eQ[g]=eQ[O]=!1;var e0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e1=parseFloat,e2=parseInt,e3="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,e4="object"==typeof self&&self&&self.Object===Object&&self,e5=e3||e4||Function("return this")(),e6=t&&!t.nodeType&&t,e8=e6&&e&&!e.nodeType&&e,e9=e8&&e8.exports===e6,e7=e9&&e3.process,te=function(){try{return e8&&e8.require&&e8.require("util").types||e7&&e7.binding&&e7.binding("util")}catch(e){}}(),tt=te&&te.isArrayBuffer,tn=te&&te.isDate,tr=te&&te.isMap,ti=te&&te.isRegExp,to=te&&te.isSet,ta=te&&te.isTypedArray;function ts(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 tl(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function tu(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function tc(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 td(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function tf(e,t){return!(null==e||!e.length)&&t_(e,t,0)>-1}function th(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 tp(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 tm(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function tg(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 ty(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 tv(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 tb=tO("length");function tw(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function tx(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 t_(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):tx(e,tS,n)}function tk(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return -1}function tS(e){return e!=e}function tE(e,t){var n=null==e?0:e.length;return n?tC(e,t)/n:u}function tO(e){return function(t){return null==t?i:t[e]}}function tj(e){return function(t){return null==e?i:e[t]}}function tT(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function tC(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function tI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function tP(e){return e?e.slice(0,tK(e)+1).replace(ee,""):e}function tA(e){return function(t){return e(t)}}function tR(e,t){return tp(t,function(t){return e[t]})}function tN(e,t){return e.has(t)}function tM(e,t){for(var n=-1,r=e.length;++n<r&&t_(t,e[n],0)>-1;);return n}function tD(e,t){for(var n=e.length;n--&&t_(t,e[n],0)>-1;);return n}var tL=tj({À:"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:"'n",ſ:"s"}),tz=tj({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function tF(e){return"\\"+e0[e]}function tB(e){return eZ.test(e)}function tU(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function t$(e,t){return function(n){return e(t(n))}}function tH(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function tW(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function tV(e){return tB(e)?function(e){for(var t=eq.lastIndex=0;eq.test(e);)++t;return t}(e):tb(e)}function tq(e){return tB(e)?e.match(eq)||[]:e.split("")}function tK(e){for(var t=e.length;t--&&et.test(e.charAt(t)););return t}var tZ=tj({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),tG=function e(t){var n,r=(t=null==t?e5:tG.defaults(e5.Object(),t,tG.pick(e5,eY))).Array,et=t.Date,ev=t.Error,eb=t.Fu
vendor: 3,561 bytes, line 58
58nction,ew=t.Math,ex=t.Object,e_=t.RegExp,ek=t.String,eS=t.TypeError,eE=r.prototype,eO=eb.prototype,ej=ex.prototype,eT=t["__core-js_shared__"],eC=eO.toString,eI=ej.hasOwnProperty,eP=0,eA=(n=/[^.]+$/.exec(eT&&eT.keys&&eT.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",eR=ej.toString,eN=eC.call(ex),eM=e5._,eD=e_("^"+eC.call(eI).replace(J,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eL=e9?t.Buffer:i,ez=t.Symbol,eF=t.Uint8Array,eB=eL?eL.allocUnsafe:i,eU=t$(ex.getPrototypeOf,ex),e$=ex.create,eH=ej.propertyIsEnumerable,eq=eE.splice,eZ=ez?ez.isConcatSpreadable:i,e0=ez?ez.iterator:i,e3=ez?ez.toStringTag:i,e4=function(){try{var e=iu(ex,"defineProperty");return e({},"",{}),e}catch(e){}}(),e6=t.clearTimeout!==e5.clearTimeout&&t.clearTimeout,e8=et&&et.now!==e5.Date.now&&et.now,e7=t.setTimeout!==e5.setTimeout&&t.setTimeout,te=ew.ceil,tb=ew.floor,tj=ex.getOwnPropertySymbols,tY=eL?eL.isBuffer:i,tX=t.isFinite,tJ=eE.join,tQ=t$(ex.keys,ex),t0=ew.max,t1=ew.min,t2=et.now,t3=t.parseInt,t4=ew.random,t5=eE.reverse,t6=iu(t,"DataView"),t8=iu(t,"Map"),t9=iu(t,"Promise"),t7=iu(t,"Set"),ne=iu(t,"WeakMap"),nt=iu(ex,"create"),nn=ne&&new ne,nr={},ni=iL(t6),no=iL(t8),na=iL(t9),ns=iL(t7),nl=iL(ne),nu=ez?ez.prototype:i,nc=nu?nu.valueOf:i,nd=nu?nu.toString:i;function nf(e){if(oW(e)&&!oR(e)&&!(e instanceof ng)){if(e instanceof nm)return e;if(eI.call(e,"__wrapped__"))return iz(e)}return new nm(e)}var nh=function(){function e(){}return function(t){if(!oH(t))return{};if(e$)return e$(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function np(){}function nm(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function ng(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function ny(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 nv(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 nb(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 nw(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new nb;++t<n;)this.add(e[t])}function nx(e){var t=this.__data__=new nv(e);this.size=t.size}function n_(e,t){var n=oR(e),r=!n&&oA(e),i=!n&&!r&&oL(e),o=!n&&!r&&!i&&oJ(e),a=n||r||i||o,s=a?tI(e.length,ek):[],l=s.length;for(var u in e)!t&&!eI.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||iy(u,l))||s.push(u);return s}function nk(e){var t=e.length;return t?e[rs(0,t-1)]:i}function nS(e,t,n){(n===i||oC(e[t],n))&&(n!==i||t in e)||nC(e,t,n)}function nE(e,t,n){var r=e[t];eI.call(e,t)&&oC(r,n)&&(n!==i||t in e)||nC(e,t,n)}function nO(e,t){for(var n=e.length;n--;)if(oC(e[n][0],t))return n;return -1}function nj(e,t,n,r){return nD(e,function(e,i,o){t(r,e,n(e),o)}),r}function nT(e,t){return e&&rF(t,ac(t),e)}function nC(e,t,n){"__proto__"==t&&e4?e4(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function nI(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:ao(e,t[n]);return a}function nP(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function nA(e,t,n,r,o,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!oH(e))return e;var f=oR(e);if(f){if(m=e.length,x=new e.constructor(m),m&&"string"==typeof e[0]&&eI.call(e,"index")&&(x.index=e.index,x.input=e.input),s=x,!l)return rz(e,s)}else{var m,x,O,F,B,U=ih(e),$=U==g||U==y;
58if(oL(e))return rA(e,l);if(U==w||U==d||$&&!o){if(s=u||$?{}:im(e),!l)return u?(F=(O=s)&&rF(e,ad(e),O),rF(e,id(e),F)):(B=nT(s,e),rF(e,ic(e),B))}else{if(!eQ[U])return o?e:{};s=function(e,t,n){var r,i,o=e.constructor;switch(t){case j:return rR(e);case h:case p:return new o(+e);case T:return r=n?rR(e.buffer):e.buffer,new e.constructor(r,e.byteOffset,e.byteLength);case C:case I:case P:case A:case R:case N:case M:case D:case z:return rN(e,n);case v:return new o;case b:case S:return new o(e);case _:return(i=new e.constructor(e.source,eu.exec(e))).lastIndex=e.lastIndex,i;case k:return new o;case E:return nc?ex(nc.call(e)):{}}}(e,U,l)}}a||(a=new nx);var H=a.get(e);if(H)return H;a.set(e,s),oG(e)?e.forEach(function(r){s.add(nA(r,t,n,r,e,a))}):oV(e)&&e.forEach(function(r,i){s.set(i,nA(r,t,n,i,e,a))});var W=f?i:(c?u?function(e){return nZ(e,ad,id)}:function(e){return nZ(e,ac,ic)}:u?ad:ac)(e);return tu(W||e,function(r,i){W&&(r=e[i=r]),nE(s,i,nA(r,t,n,i,e,a))}),s}function nR(e,t,n){var r=n.length;if(null==e)return!r;for(e=ex(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function nN(e,t,n){if("function"!=typeof e)throw new eS(o);return iT(function(){e.apply(i,n)},t)}function nM(e,t,n,r){var i=-1,o=tf,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=tp(t,tA(n))),r?(o=th,a=!1):t.length>=200&&(o=tN,a=!1,t=new nw(t));n:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue n;l.push(c)}else o(t,d,r)||l.push(c)}return l}nf.templateSettings={escape:q,evaluate:K,interpolate:Z,variable:"",imports:{_:nf}},nf.prototype=np.prototype,nf.prototype.constructor=nf,nm.prototype=nh(np.prototype),nm.prototype.constructor=nm,ng.prototype=nh(np.prototype),ng.prototype.constructor=ng,ny.prototype.clear=function(){this.__data__=nt?nt(null):{},this.size=0},ny.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},ny.prototype.get=function(e){var t=this.__data__;if(nt){var n=t[e];return n===a?i:n}return eI.call(t,e)?t[e]:i},ny.prototype.has=function(e){var t=this.__data__;return nt?t[e]!==i:eI.call(t,e)},ny.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=nt&&t===i?a:t,this},nv.prototype.clear=function(){this.__data__=[],this.size=0},nv.prototype.delete=function(e){var t=this.__data__,n=nO(t,e);return!(n<0||(n==t.length-1?t.pop():eq.call(t,n,1),--this.size,0))},nv.prototype.get=function(e){var t=this.__data__,n=nO(t,e);return n<0?i:t[n][1]},nv.prototype.has=function(e){return nO(this.__data__,e)>-1},nv.prototype.set=function(e,t){var n=this.__data__,r=nO(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},nb.prototype.clear=function(){this.size=0,this.__data__={hash:new ny,map:new(t8||nv),string:new ny}},nb.prototype.delete=function(e){var t=is(this,e).delete(e);return this.size-=!!t,t},nb.prototype.get=function(e){return is(this,e).get(e)},nb.prototype.has=function(e){return is(this,e).has(e)},nb.prototype.set=function(e,t){var n=is(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},nw.prototype.add=nw.prototype.push=function(e){return this.__data__.set(e,a),this},nw.prototype.has=function(e){return this.__data__.has(e)},nx.prototype.clear=function(){this.__data__=new nv,this.size=0},nx.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},nx.prototype.get=function(e){return this.__data__.get(e)},nx.prototype.has=function(e){return this.__data__.has(e)},nx.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nv){var r=n.__data__;if(!t8||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new nb(r)}return n.set(e,t),this.size=n.size,this};var nD=r$(nW),nL=r$(nV,!0);function nz(e,t){var n=!0;return nD(e,function(e,r,i){return n=!!t(e,r,i)}),n}function nF(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!oX(s):n(s,l)))var l=s,u=a}return u}function nB(e,t){var n=[];return nD(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function nU(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=ig),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?nU(s,t-1,n,r,i):tm(i,s):r||(i[i.length]=s)}return i}var n$=rH(),nH=rH(!0);function nW(e,t){return e&&n$(e,t,ac)}function nV(e,t){return e&&nH(e,t,ac)}function nq(e,t){return td(t,function(t){return oB(e[t])})}function nK(e,t){for(var n=0,r=(t=rC(t,e)).length;null!=e&&n<r;)e=e[iD(t[n++])];return n&&n==r?e:i}
vendor: 1,836 bytes, line 58
58function nZ(e,t,n){var r=t(e);return oR(e)?r:tm(r,n(e))}function nG(e){return null==e?e===i?"[object Undefined]":"[object Null]":e3&&e3 in ex(e)?function(e){var t=eI.call(e,e3),n=e[e3];try{e[e3]=i;var r=!0}catch(e){}var o=eR.call(e);return r&&(t?e[e3]=n:delete e[e3]),o}(e):eR.call(e)}function nY(e,t){return e>t}function nX(e,t){return null!=e&&eI.call(e,t)}function nJ(e,t){return null!=e&&t in ex(e)}function nQ(e,t,n){for(var o=n?th:tf,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=tp(f,tA(t))),c=t1(f.length,c),u[l]=!n&&(t||a>=120&&f.length>=120)?new nw(l&&f):i}f=e[0];var h=-1,p=u[0];n:for(;++h<a&&d.length<c;){var m=f[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(p?tN(p,g):o(d,g,n))){for(l=s;--l;){var y=u[l];if(!(y?tN(y,g):o(e[l],g,n)))continue n}p&&p.push(g),d.push(m)}}return d}function n0(e,t,n){var r=null==(e=iE(e,t=rC(t,e)))?e:e[iD(iG(t))];return null==r?i:ts(r,e,n)}function n1(e){return oW(e)&&nG(e)==d}function n2(e,t,n,r,o){return e===t||(null!=e&&null!=t&&(oW(e)||oW(t))?function(e,t,n,r,o,a){var s=oR(e),l=oR(t),u=s?f:ih(e),c=l?f:ih(t),g=(u=u==d?w:u)==w,y=(c=c==d?w:c)==w,x=u==c;if(x&&oL(e)){if(!oL(t))return!1;s=!0,g=!1}if(x&&!g)return a||(a=new nx),s||oJ(e)?ie(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!o(new eF(e),new eF(t)));case h:case p:case b:return oC(+e,+t);case m:return e.name==t.name&&e.message==t.message;case _:case S:return e==t+"";case v:var s=tU;case k:var l=1&r;if(s||(s=tW),e.size!=t.size&&!l)break;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=ie(s(e),s(t),r,i,o,a);return a.delete(e),c;case E:if(nc)return nc.call(e)==nc.call(t)}return!1}(e,t,u,n,r,o,a);if(!(1&n)){var O=g&&eI.call(e,"__wrapped__"),C=y&&eI.call(t,"__wrapped__");
vendor: 9,940 bytes, line 58
58if(O||C){var I=O?e.value():e,P=C?t.value():t;return a||(a=new nx),o(I,P,n,r,a)}}return!!x&&(a||(a=new nx),function(e,t,n,r,o,a){var s=1&n,l=nZ(e,ac,ic),u=l.length;if(u!=nZ(t,ac,ic).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:eI.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++c<u;){var g=e[d=l[c]],y=t[d];if(r)var v=s?r(y,g,d,t,e,a):r(g,y,d,e,t,a);if(!(v===i?g===y||o(g,y,n,r,a):v)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,o,a))}(e,t,n,r,n2,o):e!=e&&t!=t)}function n3(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=ex(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=n[o])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===i&&!(u in e))return!1}else{var f=new nx;if(r)var h=r(c,d,u,e,t,f);if(!(h===i?n2(d,c,3,r,f):h))return!1}}return!0}function n4(e){return!(!oH(e)||eA&&eA in e)&&(oB(e)?eD:ef).test(iL(e))}function n5(e){return"function"==typeof e?e:null==e?aD:"object"==typeof e?oR(e)?re(e[0],e[1]):n7(e):aV(e)}function n6(e){if(!i_(e))return tQ(e);var t=[];for(var n in ex(e))eI.call(e,n)&&"constructor"!=n&&t.push(n);return t}function n8(e,t){return e<t}function n9(e,t){var n=-1,i=oM(e)?r(e.length):[];return nD(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function n7(e){var t=il(e);return 1==t.length&&t[0][2]?ik(t[0][0],t[0][1]):function(n){return n===e||n3(n,e,t)}}function re(e,t){var n;return ib(e)&&(n=t)==n&&!oH(n)?ik(iD(e),t):function(n){var r=ao(n,e);return r===i&&r===t?aa(n,e):n2(t,r,3)}}function rt(e,t,n,r,o){e!==t&&n$(t,function(a,s){if(o||(o=new nx),oH(a))!function(e,t,n,r,o,a,s){var l=iO(e,n),u=iO(t,n),c=s.get(u);if(c)nS(e,n,c);else{var d=a?a(l,u,n+"",e,t,s):i,f=d===i;if(f){var h=oR(u),p=!h&&oL(u),m=!h&&!p&&oJ(u);d=u,h||p||m?oR(l)?d=l:oD(l)?d=rz(l):p?(f=!1,d=rA(u,!0)):m?(f=!1,d=rN(u,!0)):d=[]:oK(u)||oA(u)?(d=l,oA(l)?d=o6(l):oH(l)&&!oB(l)||(d=im(u))):f=!1}f&&(s.set(u,d),o(d,u,r,a,s),s.delete(u)),nS(e,n,d)}}(e,t,s,n,rt,r,o);else{var l=r?r(iO(e,s),a,s+"",e,t,o):i;l===i&&(l=a),nS(e,s,l)}},ad)}function rn(e,t){var n=e.length;if(n)return iy(t+=t<0?n:0,n)?e[t]:i}function rr(e,t,n){t=t.length?tp(t,function(e){return oR(e)?function(t){return nK(t,1===e.length?e[0]:e)}:e}):[aD];var r=-1;t=tp(t,tA(ia()));var i=n9(e,function(e,n,i){return{criteria:tp(t,function(t){return t(e)}),index:++r,value:e}}),o=i.length;for(i.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=rM(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});o--;)i[o]=i[o].value;return i}function ri(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=nK(e,a);n(s,a)&&rc(o,rC(a,e),s)}return o}function ro(e,t,n,r){var i=r?tk:t_,o=-1,a=t.length,s=e;for(e===t&&(t=rz(t)),n&&(s=tp(e,tA(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&eq.call(s,l,1),eq.call(e,l,1);return e}function ra(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;iy(i)?eq.call(e,i,1):rx(e,i)}}return e}function rs(e,t){return e+tb(t4()*(t-e+1))}function rl(e,t){var n="";if(!e||t<1||t>0x1fffffffffffff)return n;do t%2&&(n+=e),(t=tb(t/2))&&(e+=e);while(t)return n}function ru(e,t){return iC(iS(e,t,aD),e+"")}function rc(e,t,n,r){if(!oH(e))return e;for(var o=-1,a=(t=rC(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var u=iD(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(o!=s){var d=l[u];(c=r?r(d,u,l):i)===i&&(c=oH(d)?d:iy(t[o+1])?[]:{})}nE(l,u,c),l=l[u]}return e}var rd=nn?function(e,t){return nn.set(e,t),e}:aD,rf=e4?function(e,t){return e4(e,"toString",{configurable:!0,enumerable:!1,value:aR(t),writable:!0})}:aD;function rh(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 a=r(o);++i<o;)a[i]=e[i+t];return a}function rp(e,t){var n;return nD(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function rm(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=0x7fffffff){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!oX(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return rg(e,t,aD,n)}function rg(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,u=oX(t),c=t===i;o<a;){var d=tb((o+a)/2),f=n(e[d]),h=f!==i,p=null===f,m=f==f,g=oX(f);if(s)var y=r||m;else y=c?m&&(r||h):l?m&&h&&(r||!p):u?m&&h&&!p&&(r||!g):!p&&!g&&(r?f<=t:f<t);y?o=d+1:a=d}return t1(a,0xfffffffe)}function ry(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!oC(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function rv(e){return"number"==typeof e?e:oX(e)?u:+e}function rb(e){if("string"==typeof e)return e;if(oR(e))return tp(e,rb)+"";if(oX(e))return nd?nd.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function rw(e,t,n){var r=-1,i=tf,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=th;else if(o>=200){var u=t?null:r4(e);if(u)return tW(u);a=!1,i=tN,l=new nw}else l=t?[]:s;n:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue n;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function rx(e,t){var n=-1,r=(t=rC(t,e)).length;if(!r)return!0;for(;++n<r;){var i=iD(t[n]);if("__proto__"===i&&!eI.call(e,"__proto__")||("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=iE(e,t);return null==o||delete o[iD(iG(t))]}function r_(e,t,n,r){return rc(e,t,n(nK(e,t)),r)}function rk(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?rh(e,r?0:o,r?o+1:i):rh(e,r?o+1:0,r?i:o)}function rS(e,t){var n=e;return n instanceof ng&&(n=n.value()),tg(t,function(e,t){return t.func.apply(t.thisArg,tm([e],t.args))},n)}function rE(e,t,n){var i=e.length;if(i<2)return i?rw(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=nM(a[o]||s,e[l],t,n));return rw(nU(a,1),t,n)}function rO(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function rj(e){return oD(e)?e:[]}function rT(e){return"function"==typeof e?e:aD}function rC(e,t){return oR(e)?e:ib(e,t)?[e]:iM(o8(e))}function rI(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:rh(e,t,n)}var rP=e6||function(e){return e5.clearTimeout(e)};function rA(e,t){if(t)return e.slice();var n=e.length,r=eB?eB(n):new e.constructor(n);return e.copy(r),r}function rR(e){var t=new e.constructor(e.byteLength);return new eF(t).set(new eF(e)),t}function rN(e,t){var n=t?rR(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function rM(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=oX(e),s=t!==i,l=null===t,u=t==t,c=oX(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return -1}return 0}function rD(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,u=t.length,c=t0(a-s,0),d=r(u+c),f=!i;++l<u;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}function rL(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,d=t0(a-l,0),f=r(d+c),h=!i;++o<d;)f[o]=e[o];for(var p=o;++u<c;)f[p+u]=t[u];for(;++s<l;)(h||o<a)&&(f[p+n[s]]=e[o++]);return f}function rz(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function rF(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),o?nC(n,l,u):nE(n,l,u)}return n}function rB(e,t){return function(n,r){var i=oR(n)?tl:nj,o=t?t():{};return i(n,e,ia(r,2),o)}}function rU(e){return ru(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&iv(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=ex(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t})}function r$(e,t){return function(n,r){if(null==n)return n;if(!oM(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=ex(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function rH(e){return function(t,n,r){for(var i=-1,o=ex(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function rW(e){return function(t){var n=tB(t=o8(t))?tq(t):i,r=n?n[0]:t.charAt(0),o=n?rI(n,1).join(""):t.slice(1);return r[e]()+o}}function rV(e){return function(t){return tg(aI(a_(t).replace(eW,"")),e,"")}}function rq(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=nh(e.prototype),r=e.apply(n,t);return oH(r)?r:n}}function rK(e){return function(t,n,r){var o=ex(t);if(!oM(t)){var a=ia(n,3);t=ac(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function rZ(e){return it(function(t){var n=t.length,r=n,a=nm.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new eS(o);if(a&&!l&&"wrapper"==ii(s))var l=new nm([],!0)}for(r=l?r:n;++r<n;){var u=ii(s=t[r]),c="wrapper"==u?ir(s):i;l=c&&iw(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ii(c[0])].apply(l,c[3]):1==s.length&&iw(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&oR(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 rG(e,t,n,o,a,s,l,u,c,d){var f=128&t,h=1&t,p=2&t,m=24&t,g=512&t,y=p?i:rq(e);return function v(){for(var b=arguments.length,w=r(b),x=b;x--;)w[x]=arguments[x];if(m)var _=io(v),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,_);if(o&&(w=rD(w,o,a,m)),s&&(w=rL(w,s,l,m)),b-=k,m&&b<d){var S=tH(w,_);return r2(e,t,rG,v.placeholder,n,w,S,u,c,d-b)}var E=h?n:this,O=p?E[e]:e;return b=w.length,u?w=function(e,t){for(var n=e.length,r=t1(t.length,n),o=rz(e);
58r--;){var a=t[r];e[r]=iy(a,n)?o[a]:i}return e}(w,u):g&&b>1&&w.reverse(),f&&c<b&&(w.length=c),this&&this!==e5&&this instanceof v&&(O=y||rq(O)),O.apply(E,w)}}function rY(e,t){return function(n,r){var i,o;return i=t(r),o={},nW(n,function(t,n,r){e(o,i(t),n,r)}),o}}function rX(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=rb(n),r=rb(r)):(n=rv(n),r=rv(r)),o=e(n,r)}return o}}function rJ(e){return it(function(t){return t=tp(t,tA(ia())),ru(function(n){var r=this;return e(t,function(e){return ts(e,r,n)})})})}function rQ(e,t){var n=(t=t===i?" ":rb(t)).length;if(n<2)return n?rl(t,e):t;var r=rl(t,te(e/tV(t)));return tB(t)?rI(tq(r),0,e).join(""):r.slice(0,e)}function r0(e){return function(t,n,o){return o&&"number"!=typeof o&&iv(t,n,o)&&(n=o=i),t=o2(t),n===i?(n=t,t=0):n=o2(n),function(e,t,n,i){for(var o=-1,a=t0(te((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:o2(o),e)}}function r1(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=o5(t),n=o5(n)),e(t,n)}}function r2(e,t,n,r,o,a,s,l,u,c){var d=8&t;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var f=[e,t,o,d?a:i,d?s:i,d?i:a,d?i:s,l,u,c],h=n.apply(i,f);return iw(e)&&ij(h,f),h.placeholder=r,iI(h,e,t)}function r3(e){var t=ew[e];return function(e,n){if(e=o5(e),(n=null==n?0:t1(o3(n),292))&&tX(e)){var r=(o8(e)+"e").split("e");return+((r=(o8(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(r[1]-n))}return t(e)}}var r4=t7&&1/tW(new t7([,-0]))[1]==l?function(e){return new t7(e)}:aU;function r5(e){return function(t){var n,r,i=ih(t);return i==v?tU(t):i==k?(n=-1,r=Array(t.size),t.forEach(function(e){r[++n]=[e,e]}),r):tp(e(t),function(e){return[e,t[e]]})}}function r6(e,t,n,a,l,u,c,d){var f=2&t;if(!f&&"function"!=typeof e)throw new eS(o);var h=a?a.length:0;if(h||(t&=-97,a=l=i),c=c===i?c:t0(o3(c),0),d=d===i?d:o3(d),h-=l?l.length:0,64&t){var p=a,m=l;a=l=i}var g=f?i:ir(e),y=[e,t,n,a,l,p,m,u,c,d];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(o||a){1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?rD(u,l,t[4]):l,e[4]=u?tH(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?rL(u,l,t[6]):l,e[6]=u?tH(e[5],s):t[6]),(l=t[7])&&(e[7]=l),128&r&&(e[8]=null==e[8]?t[8]:t1(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(y,g),e=y[0],t=y[1],n=y[2],a=y[3],l=y[4],(d=y[9]=y[9]===i?f?0:e.length:t0(y[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)R=8==t||16==t?(v=e,b=t,w=d,x=rq(v),function e(){for(var t=arguments.length,n=r(t),o=t,a=io(e);o--;)n[o]=arguments[o];var s=t<3&&n[0]!==a&&n[t-1]!==a?[]:tH(n,a);return(t-=s.length)<w?r2(v,b,rG,e.placeholder,i,n,s,i,i,w-t):ts(this&&this!==e5&&this instanceof e?x:v,this,n)}):32!=t&&33!=t||l.length?rG.apply(i,y):(_=e,k=t,S=n,E=a,O=1&k,j=rq(_),function e(){for(var t=-1,n=arguments.length,i=-1,o=E.length,a=r(o+n),s=this&&this!==e5&&this instanceof e?j:_;++i<o;)a[i]=E[i];for(;n--;)a[i++]=arguments[++t];return ts(s,O?S:this,a)});else var v,b,w,x,_,k,S,E,O,j,T,C,I,P,A,R=(T=e,C=t,I=n,P=1&C,A=rq(T),function e(){return(this&&this!==e5&&this instanceof e?A:T).apply(P?I:this,arguments)});return iI((g?rd:ij)(R,y),e,t)}function r8(e,t,n,r){return e===i||oC(e,ej[n])&&!eI.call(r,n)?t:e}function r9(e,t,n,r,o,a){return oH(e)&&oH(t)&&(a.set(t,e),rt(e,t,i,r9,a),a.delete(t)),e}function r7(e){return oK(e)?i:e}function ie(e,t,n,r,o,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&n?new nw:i;for(a.set(e,t),a.set(t,e);++f<l;){var m=e[f],g=t[f];if(r)var y=s?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(y!==i){if(y)continue;h=!1;break}if(p){if(!tv(t,function(e,t){if(!tN(p,t)&&(m===e||o(m,e,n,r,a)))return p.push(t)})){h=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function it(e){return iC(iS(e,i,iW),e+"")}var ir=nn?function(e){return nn.get(e)}:aU;function ii(e){for(var t=e.name+"",n=nr[t],r=eI.call(nr,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(eI.call(nf,"placeholder")?nf:e).placeholder}function ia(){var e=nf.iteratee||aL;return e=e===aL?n5:e,arguments.length?e(arguments[0],arguments[1]):e}function is(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["
58string"==typeof t?"string":"hash"]:r.map}function il(e){for(var t=ac(e),n=t.length;n--;){var r,i=t[n],o=e[i];t[n]=[i,o,(r=o)==r&&!oH(r)]}return t}function iu(e,t){var n=null==e?i:e[t];return n4(n)?n:i}var ic=tj?function(e){return null==e?[]:td(tj(e=ex(e)),function(t){return eH.call(e,t)})}:aZ,id=tj?function(e){for(var t=[];e;)tm(t,ic(e)),e=eU(e);return t}:aZ,ih=nG;function ip(e,t,n){for(var r=-1,i=(t=rC(t,e)).length,o=!1;++r<i;){var a=iD(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&o$(i)&&iy(a,i)&&(oR(e)||oA(e))}function im(e){return"function"!=typeof e.constructor||i_(e)?{}:nh(eU(e))}function ig(e){return oR(e)||oA(e)||!!(eZ&&e&&e[eZ])}function iy(e,t){var n=typeof e;return!!(t=t??0x1fffffffffffff)&&("number"==n||"symbol"!=n&&ep.test(e))&&e>-1&&e%1==0&&e<t}function iv(e,t,n){if(!oH(n))return!1;var r=typeof t;return!!("number"==r?oM(n)&&iy(t,n.length):"string"==r&&t in n)&&oC(n[t],e)}function ib(e,t){if(oR(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!oX(e))||Y.test(e)||!G.test(e)||null!=t&&e in ex(t)}function iw(e){var t=ii(e),n=nf[t];if("function"!=typeof n||!(t in ng.prototype))return!1;if(e===n)return!0;var r=ir(n);return!!r&&e===r[0]}(t6&&ih(new t6(new ArrayBuffer(1)))!=T||t8&&ih(new t8)!=v||t9&&ih(t9.resolve())!=x||t7&&ih(new t7)!=k||ne&&ih(new ne)!=O)&&(ih=function(e){var t=nG(e),n=t==w?e.constructor:i,r=n?iL(n):"";if(r)switch(r){case ni:return T;case no:return v;case na:return x;case ns:return k;case nl:return O}return t});var ix=eT?oB:aG;function i_(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ej)}function ik(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in ex(n))}}function iS(e,t,n){return t=t0(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=t0(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),ts(e,this,l)}}function iE(e,t){return t.length<2?e:nK(e,rh(t,0,-1))}function iO(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ij=iP(rd),iT=e7||function(e,t){return e5.setTimeout(e,t)},iC=iP(rf);function iI(e,t,n){var r,i,o=t+"";return iC(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(en,"{\n/* [wrapped with "+t+"] */\n")}(o,(i=(r=o.match(er))?r[1].split(ei):[],tu(c,function(e){var t="_."+e[0];n&e[1]&&!tf(i,t)&&i.push(t)}),i.sort())))}function iP(e){var t=0,n=0;return function(){var r=t2(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function iA(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=rs(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var iR,iN,iM=(iN=(iR=ok(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(X,function(e,n,r,i){t.push(r?i.replace(es,"$1"):n||e)}),t},function(e){return 500===iN.size&&iN.clear(),e})).cache,iR);function iD(e){if("string"==typeof e||oX(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function iL(e){if(null!=e){try{return eC.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function iz(e){if(e instanceof ng)return e.clone();var t=new nm(e.__wrapped__,e.__chain__);return t.__actions__=rz(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}
vendor: 1,677 bytes, line 58
58var iF=ru(function(e,t){return oD(e)?nM(e,nU(t,1,oD,!0)):[]}),iB=ru(function(e,t){var n=iG(t);return oD(n)&&(n=i),oD(e)?nM(e,nU(t,1,oD,!0),ia(n,2)):[]}),iU=ru(function(e,t){var n=iG(t);return oD(n)&&(n=i),oD(e)?nM(e,nU(t,1,oD,!0),i,n):[]});function i$(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var i=null==n?0:o3(n);return i<0&&(i=t0(r+i,0)),tx(e,ia(t,3),i)}function iH(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var o=r-1;return n!==i&&(o=o3(n),o=n<0?t0(r+o,0):t1(o,r-1)),tx(e,ia(t,3),o,!0)}function iW(e){return null!=e&&e.length?nU(e,1):[]}function iV(e){return e&&e.length?e[0]:i}var iq=ru(function(e){var t=tp(e,rj);return t.length&&t[0]===e[0]?nQ(t):[]}),iK=ru(function(e){var t=iG(e),n=tp(e,rj);return t===iG(n)?t=i:n.pop(),n.length&&n[0]===e[0]?nQ(n,ia(t,2)):[]}),iZ=ru(function(e){var t=iG(e),n=tp(e,rj);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?nQ(n,i,t):[]});function iG(e){var t=null==e?0:e.length;return t?e[t-1]:i}var iY=ru(iX);function iX(e,t){return e&&e.length&&t&&t.length?ro(e,t):e}var iJ=it(function(e,t){var n=null==e?0:e.length,r=nI(e,t);return ra(e,tp(t,function(e){return iy(e,n)?+e:e}).sort(rM)),r});function iQ(e){return null==e?e:t5.call(e)}var i0=ru(function(e){return rw(nU(e,1,oD,!0))}),i1=ru(function(e){var t=iG(e);return oD(t)&&(t=i),rw(nU(e,1,oD,!0),ia(t,2))}),i2=ru(function(e){var t=iG(e);return t="function"==typeof t?t:i,rw(nU(e,1,oD,!0),i,t)});function i3(e){if(!e||!e.length)return[];var t=0;return e=td(e,function(e){if(oD(e))return t=t0(e.length,t),!0}),tI(t,function(t){return tp(e,tO(t))})}function i4(e,t){if(!e||!e.length)return[];var n=i3(e);return null==t?n:tp(n,function(e){return ts(t,i,e)})}
vendor: 6,482 bytes, line 58
58var i5=ru(function(e,t){return oD(e)?nM(e,t):[]}),i6=ru(function(e){return rE(td(e,oD))}),i8=ru(function(e){var t=iG(e);return oD(t)&&(t=i),rE(td(e,oD),ia(t,2))}),i9=ru(function(e){var t=iG(e);return t="function"==typeof t?t:i,rE(td(e,oD),i,t)}),i7=ru(i3),oe=ru(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,i4(e,n)});function ot(e){var t=nf(e);return t.__chain__=!0,t}function on(e,t){return t(e)}var or=it(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return nI(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ng&&iy(n)?((r=r.slice(n,+n+ +!!t)).__actions__.push({func:on,args:[o],thisArg:i}),new nm(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),oi=rB(function(e,t,n){eI.call(e,n)?++e[n]:nC(e,n,1)}),oo=rK(i$),oa=rK(iH);function os(e,t){return(oR(e)?tu:nD)(e,ia(t,3))}function ol(e,t){return(oR(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:nL)(e,ia(t,3))}var ou=rB(function(e,t,n){eI.call(e,n)?e[n].push(t):nC(e,n,[t])}),oc=ru(function(e,t,n){var i=-1,o="function"==typeof t,a=oM(e)?r(e.length):[];return nD(e,function(e){a[++i]=o?ts(t,e,n):n0(e,t,n)}),a}),od=rB(function(e,t,n){nC(e,n,t)});function of(e,t){return(oR(e)?tp:n9)(e,ia(t,3))}var oh=rB(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]}),op=ru(function(e,t){if(null==e)return[];var n=t.length;return n>1&&iv(e,t[0],t[1])?t=[]:n>2&&iv(t[0],t[1],t[2])&&(t=[t[0]]),rr(e,nU(t,1),[])}),om=e8||function(){return e5.Date.now()};function og(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,r6(e,128,i,i,i,i,t)}function oy(e,t){var n;if("function"!=typeof t)throw new eS(o);return e=o3(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ov=ru(function(e,t,n){var r=1;if(n.length){var i=tH(n,io(ov));r|=32}return r6(e,r,t,n,i)}),ob=ru(function(e,t,n){var r=3;if(n.length){var i=tH(n,io(ob));r|=32}return r6(t,r,e,n,i)});function ow(e,t,n){var r,a,s,l,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new eS(o);function m(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function g(e){var n=e-c;return c===i||n>=t||n<0||h&&e-d>=s}function y(){var e,n=om();if(g(n))return v(n);u=iT(y,(e=t-(n-c),h?t1(e,s-(n-d)):e))}function v(e){return u=i,p&&r?m(e):(r=a=i,l)}function b(){var e,n=om(),o=g(n);if(r=arguments,a=this,c=n,o){if(u===i)return d=e=c,u=iT(y,t),f?m(e):l;if(h)return rP(u),u=iT(y,t),m(c)}return u===i&&(u=iT(y,t)),l}return t=o5(t)||0,oH(n)&&(f=!!n.leading,s=(h="maxWait"in n)?t0(o5(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==i&&rP(u),d=0,r=c=a=u=i},b.flush=function(){return u===i?l:v(om())},b}var ox=ru(function(e,t){return nN(e,1,t)}),o_=ru(function(e,t,n){return nN(e,o5(t)||0,n)});function ok(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new eS(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 a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ok.Cache||nb),n}function oS(e){if("function"!=typeof e)throw new eS(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)}}ok.Cache=nb;var oE=ru(function(e,t){var n=(t=1==t.length&&oR(t[0])?tp(t[0],tA(ia())):tp(nU(t,1),tA(ia()))).length;return ru(function(r){for(var i=-1,o=t1(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ts(e,this,r)})}),oO=ru(function(e,t){var n=tH(t,io(oO));return r6(e,32,i,t,n)}),oj=ru(function(e,t){var n=tH(t,io(oj));return r6(e,64,i,t,n)}),oT=it(function(e,t){return r6(e,256,i,i,i,t)});function oC(e,t){return e===t||e!=e&&t!=t}var oI=r1(nY),oP=r1(function(e,t){return e>=t}),oA=n1(function(){return arguments}())?n1:function(e){return oW(e)&&eI.call(e,"callee")&&!eH.call(e,"callee")},oR=r.isArray,oN=tt?tA(tt):function(e){return oW(e)&&nG(e)==j};function oM(e){return null!=e&&o$(e.length)&&!oB(e)}function oD(e){return oW(e)&&oM(e)}var oL=tY||aG,oz=tn?tA(tn):function(e){return oW(e)&&nG(e)==p};function oF(e){if(!oW(e))return!1;var t=nG(e);return t==m||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oK(e)}function oB(e){if(!oH(e))return!1;var t=nG(e);return t==g||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function oU(e){return"number"==typeof e&&e==o3(e)}function o$(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function oH(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function oW(e){return null!=e&&"object"==typeof e}var oV=tr?tA(tr):function(e){return oW(e)&&ih(e)==v};function oq(e){return"number"==typeof e||oW(e)&&nG(e)==b}function oK(e){if(!oW(e)||nG(e)!=w)return!1;var t=eU(e);if(null===t)return!0;var n=eI.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&eC.call(n)==eN}var oZ=ti?tA(ti):function(e){return oW(e)&&nG(e)==_},oG=to?tA(to):function(e){return oW(e)&&ih(e)==k};function oY(e){return"string"==typeof e||!oR(e)&&oW(e)&&nG(e)==S}function oX(e){return"symbol"==typeof e||oW(e)&&nG(e)==E}var oJ=ta?tA(ta):function(e){return oW(e)&&o$(e.length)&&!!eJ[nG(e)]},oQ=r1(n8),o0=r1(function(e,t){return e<=t});function o1(e){if(!e)return[];if(oM(e))return oY(e)?tq(e):rz(e);if(e0&&e[e0]){for(var t,n=e[e0](),r=[];!(t=n.next()).done;)r.push(t.value);return r}var i=ih(e);return(i==v?tU:i==k?tW:ab)(e)}function o2(e){return e?(e=o5(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function o3(e){var t=o2(e),n=t%1;return t==t?n?t-n:t:0}function o4(e){return e?nP(o3(e),0,0xffffffff):0}function o5(e){if("number"==typeof e)return e;if(oX(e))return u;if(oH(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=oH(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tP(e);var n=ed.test(e);return n||eh.test(e)?e2(e.slice(2),n?2:8):ec.test(e)?u:+e}function o6(e){return rF(e,ad(e))}function o8(e){return null==e?"":rb(e)}var o9=rU(function(e,t){if(i_(t)||oM(t))rF(t,ac(t),e);else for(var n in t)eI.call(t,n)&&nE(e,n,t[n])}),o7=rU(function(e,t){rF(t,ad(t),e)}),ae=rU(function(e,t,n,r){rF(t,ad(t),e,r)}),at=rU(function(e,t,n,r){rF(t,ac(t),e,r)}),an=it(nI),ar=ru(function(e,t){e=ex(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&iv(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=ad(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===i||oC(d,ej[c])&&!eI.call(e,c))&&(e[c]=a[c])}return e}),ai=ru(function(e){return e.push(i,r9),ts(ah,i,e)});
58function ao(e,t,n){var r=null==e?i:nK(e,t);return r===i?n:r}function aa(e,t){return null!=e&&ip(e,t,nJ)}var as=rY(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=eR.call(t)),e[t]=n},aR(aD)),al=rY(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=eR.call(t)),eI.call(e,t)?e[t].push(n):e[t]=[n]},ia),au=ru(n0);function ac(e){return oM(e)?n_(e):n6(e)}function ad(e){return oM(e)?n_(e,!0):function(e){if(!oH(e)){var t=[];if(null!=e)for(var n in ex(e))t.push(n);return t}var r=i_(e),i=[];for(var o in e)("constructor"!=o||!r&&eI.call(e,o))&&i.push(o);return i}(e)}var af=rU(function(e,t,n){rt(e,t,n)}),ah=rU(function(e,t,n,r){rt(e,t,n,r)}),ap=it(function(e,t){var n={};if(null==e)return n;var r=!1;t=tp(t,function(t){return t=rC(t,e),r||(r=t.length>1),t}),rF(e,nZ(e,ad,id),n),r&&(n=nA(n,7,r7));for(var i=t.length;i--;)rx(n,t[i]);return n}),am=it(function(e,t){return null==e?{}:ri(e,t,function(t,n){return aa(e,n)})});function ag(e,t){if(null==e)return{};var n=tp(nZ(e,ad,id),function(e){return[e]});return t=ia(t),ri(e,n,function(e,n){return t(e,n[0])})}var ay=r5(ac),av=r5(ad);function ab(e){return null==e?[]:tR(e,ac(e))}var aw=rV(function(e,t,n){return t=t.toLowerCase(),e+(n?ax(t):t)});function ax(e){return aC(o8(e).toLowerCase())}function a_(e){return(e=o8(e))&&e.replace(em,tL).replace(eV,"")}var ak=rV(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),aS=rV(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),aE=rW("toLowerCase"),aO=rV(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),aj=rV(function(e,t,n){return e+(n?" ":"")+aC(t)}),aT=rV(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),aC=rW("toUpperCase");
58function aI(e,t,n){var r;return e=o8(e),(t=n?i:t)===i?(r=e,eG.test(r))?e.match(eK)||[]:e.match(eo)||[]:e.match(t)||[]}var aP=ru(function(e,t){try{return ts(e,i,t)}catch(e){return oF(e)?e:new ev(e)}}),aA=it(function(e,t){return tu(t,function(t){nC(e,t=iD(t),ov(e[t],e))}),e});function aR(e){return function(){return e}}var aN=rZ(),aM=rZ(!0);function aD(e){return e}function aL(e){return n5("function"==typeof e?e:nA(e,1))}var az=ru(function(e,t){return function(n){return n0(n,e,t)}}),aF=ru(function(e,t){return function(n){return n0(e,n,t)}});function aB(e,t,n){var r=ac(t),i=nq(t,r);null!=n||oH(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=nq(t,ac(t)));var o=!(oH(n)&&"chain"in n&&!n.chain),a=oB(e);return tu(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=rz(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,tm([this.value()],arguments))})}),e}function aU(){}var a$=rJ(tp),aH=rJ(tc),aW=rJ(tv);function aV(e){return ib(e)?tO(iD(e)):function(t){return nK(t,e)}}var aq=r0(),aK=r0(!0);function aZ(){return[]}function aG(){return!1}var aY,aX=rX(function(e,t){return e+t},0),aJ=r3("ceil"),aQ=rX(function(e,t){return e/t},1),a0=r3("floor"),a1=rX(function(e,t){return e*t},1),a2=r3("round"),a3=rX(function(e,t){return e-t},0);return nf.after=function(e,t){if("function"!=typeof t)throw new eS(o);return e=o3(e),function(){if(--e<1)return t.apply(this,arguments)}},nf.ary=og,nf.assign=o9,nf.assignIn=o7,nf.assignInWith=ae,nf.assignWith=at,nf.at=an,nf.before=oy,nf.bind=ov,nf.bindAll=aA,nf.bindKey=ob,nf.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return oR(e)?e:[e]},nf.chain=ot,nf.chunk=function(e,t,n){t=(n?iv(e,t,n):t===i)?1:t0(o3(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(te(o/t));a<o;)l[s++]=rh(e,a,a+=t);return l},nf.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},nf.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 tm(oR(n)?rz(n):[n],nU(t,1))},nf.cond=function(e){var t=null==e?0:e.length,n=ia();return e=t?tp(e,function(e){if("function"!=typeof e[1])throw new eS(o);return[n(e[0]),e[1]]}):[],ru(function(n){for(var r=-1;++r<t;){var i=e[r];if(ts(i[0],this,n))return ts(i[1],this,n)}})},nf.conforms=function(e){var t,n;return n=ac(t=nA(e,1)),function(e){return nR(e,t,n)}},nf.constant=aR,nf.countBy=oi,nf.create=function(e,t){var n=nh(e);return null==t?n:nT(n,t)},nf.curry=function e(t,n,r){var o=r6(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},nf.curryRight=function e(t,n,r){var o=r6(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},nf.debounce=ow,nf.defaults=ar,nf.defaultsDeep=ai,nf.defer=ox,nf.delay=o_,nf.difference=iF,nf.differenceBy=iB,nf.differenceWith=iU,nf.drop=function(e,t,n){var r=null==e?0:e.length;return r?rh(e,(t=n||t===i?1:o3(t))<0?0:t,r):[]},nf.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?rh(e,0,(t=r-(t=n||t===i?1:o3(t)))<0?0:t):[]},nf.dropRightWhile=function(e,t){return e&&e.length?rk(e,ia(t,3),!0,!0):[]},nf.dropWhile=function(e,t){return e&&e.length?rk(e,ia(t,3),!0):[]},nf.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&iv(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=o3(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:o3(r))<0&&(r+=o),r=n>r?0:o4(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},nf.filter=function(e,t){return(oR(e)?td:nB)(e,ia(t,3))},nf.flatMap=function(e,t){return nU(of(e,t),1)},nf.flatMapDeep=function(e,t){return nU(of(e,t),l)},nf.flatMapDepth=function(e,t,n){return n=n===i?1:o3(n),nU(of(e,t),n)},nf.flatten=iW,nf.flattenDeep=function(e){return null!=e&&e.length?nU(e,l):[]}
vendor: 4,631 bytes, line 58
58,nf.flattenDepth=function(e,t){return null!=e&&e.length?nU(e,t=t===i?1:o3(t)):[]},nf.flip=function(e){return r6(e,512)},nf.flow=aN,nf.flowRight=aM,nf.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];nC(r,i[0],i[1])}return r},nf.functions=function(e){return null==e?[]:nq(e,ac(e))},nf.functionsIn=function(e){return null==e?[]:nq(e,ad(e))},nf.groupBy=ou,nf.initial=function(e){return null!=e&&e.length?rh(e,0,-1):[]},nf.intersection=iq,nf.intersectionBy=iK,nf.intersectionWith=iZ,nf.invert=as,nf.invertBy=al,nf.invokeMap=oc,nf.iteratee=aL,nf.keyBy=od,nf.keys=ac,nf.keysIn=ad,nf.map=of,nf.mapKeys=function(e,t){var n={};return t=ia(t,3),nW(e,function(e,r,i){nC(n,t(e,r,i),e)}),n},nf.mapValues=function(e,t){var n={};return t=ia(t,3),nW(e,function(e,r,i){nC(n,r,t(e,r,i))}),n},nf.matches=function(e){return n7(nA(e,1))},nf.matchesProperty=function(e,t){return re(e,nA(t,1))},nf.memoize=ok,nf.merge=af,nf.mergeWith=ah,nf.method=az,nf.methodOf=aF,nf.mixin=aB,nf.negate=oS,nf.nthArg=function(e){return e=o3(e),ru(function(t){return rn(t,e)})},nf.omit=ap,nf.omitBy=function(e,t){return ag(e,oS(ia(t)))},nf.once=function(e){return oy(2,e)},nf.orderBy=function(e,t,n,r){return null==e?[]:(oR(t)||(t=null==t?[]:[t]),oR(n=r?i:n)||(n=null==n?[]:[n]),rr(e,t,n))},nf.over=a$,nf.overArgs=oE,nf.overEvery=aH,nf.overSome=aW,nf.partial=oO,nf.partialRight=oj,nf.partition=oh,nf.pick=am,nf.pickBy=ag,nf.property=aV,nf.propertyOf=function(e){return function(t){return null==e?i:nK(e,t)}},nf.pull=iY,nf.pullAll=iX,nf.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?ro(e,t,ia(n,2)):e},nf.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?ro(e,t,i,n):e},nf.pullAt=iJ,nf.range=aq,nf.rangeRight=aK,nf.rearg=oT,nf.reject=function(e,t){return(oR(e)?td:nB)(e,oS(ia(t,3)))},nf.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ia(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return ra(e,i),n},nf.rest=function(e,t){if("function"!=typeof e)throw new eS(o);return ru(e,t=t===i?t:o3(t))},nf.reverse=iQ,nf.sampleSize=function(e,t,n){return t=(n?iv(e,t,n):t===i)?1:o3(t),(oR(e)?function(e,t){return iA(rz(e),nP(t,0,e.length))}:function(e,t){var n=ab(e);return iA(n,nP(t,0,n.length))})(e,t)},nf.set=function(e,t,n){return null==e?e:rc(e,t,n)},nf.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:rc(e,t,n,r)},nf.shuffle=function(e){return(oR(e)?function(e){return iA(rz(e))}:function(e){return iA(ab(e))})(e)},nf.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&iv(e,t,n)?(t=0,n=r):(t=null==t?0:o3(t),n=n===i?r:o3(n)),rh(e,t,n)):[]},nf.sortBy=op,nf.sortedUniq=function(e){return e&&e.length?ry(e):[]},nf.sortedUniqBy=function(e,t){return e&&e.length?ry(e,ia(t,2)):[]},nf.split=function(e,t,n){return n&&"number"!=typeof n&&iv(e,t,n)&&(t=n=i),(n=n===i?0xffffffff:n>>>0)?(e=o8(e))&&("string"==typeof t||null!=t&&!oZ(t))&&!(t=rb(t))&&tB(e)?rI(tq(e),0,n):e.split(t,n):[]},nf.spread=function(e,t){if("function"!=typeof e)throw new eS(o);return t=null==t?0:t0(o3(t),0),ru(function(n){var r=n[t],i=rI(n,0,t);return r&&tm(i,r),ts(e,this,i)})},nf.tail=function(e){var t=null==e?0:e.length;return t?rh(e,1,t):[]},nf.take=function(e,t,n){return e&&e.length?rh(e,0,(t=n||t===i?1:o3(t))<0?0:t):[]},nf.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?rh(e,(t=r-(t=n||t===i?1:o3(t)))<0?0:t,r):[]},nf.takeRightWhile=function(e,t){return e&&e.length?rk(e,ia(t,3),!1,!0):[]},nf.takeWhile=function(e,t){return e&&e.length?rk(e,ia(t,3)):[]},nf.tap=function(e,t){return t(e),e},nf.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new eS(o);return oH(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ow(e,t,{leading:r,maxWait:t,trailing:i})},nf.thru=on,nf.toArray=o1,nf.toPairs=ay,nf.toPairsIn=av,nf.toPath=function(e){return oR(e)?tp(e,iD):oX(e)?[e]:rz(iM(o8(e)))},nf.toPlainObject=o6,nf.transform=function(e,t,n){var r=oR(e),i=r||oL(e)||oJ(e);if(t=ia(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:oH(e)&&oB(o)?nh(eU(e)):{}}return(i?tu:nW)(e,function(e,r,i){return t(n,e,r,i)}),n},nf.unary=function(e){return og(e,1)},nf.union=i0,nf.unionBy=i1,nf.unionWith=i2,nf.uniq=function(e){return e&&e.length?rw(e):[]},nf.uniqBy=function(e,t){return e&&e.length?rw(e,ia(t,2)):[]},nf.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?rw(e,i,t):[]},nf.unset=function(e,t){return null==e||rx(e,t)},nf.unzip=i3,nf.unzipWith=i4,nf.update=function(e,t,n){return null==e?e:r_(e,t,rT(n))},nf.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:r_(e,t,rT(n),r)}
vendor: 5,392 bytes, line 58
58,nf.values=ab,nf.valuesIn=function(e){return null==e?[]:tR(e,ad(e))},nf.without=i5,nf.words=aI,nf.wrap=function(e,t){return oO(rT(t),e)},nf.xor=i6,nf.xorBy=i8,nf.xorWith=i9,nf.zip=i7,nf.zipObject=function(e,t){return rO(e||[],t||[],nE)},nf.zipObjectDeep=function(e,t){return rO(e||[],t||[],rc)},nf.zipWith=oe,nf.entries=ay,nf.entriesIn=av,nf.extend=o7,nf.extendWith=ae,aB(nf,nf),nf.add=aX,nf.attempt=aP,nf.camelCase=aw,nf.capitalize=ax,nf.ceil=aJ,nf.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=o5(n))==n?n:0),t!==i&&(t=(t=o5(t))==t?t:0),nP(o5(e),t,n)},nf.clone=function(e){return nA(e,4)},nf.cloneDeep=function(e){return nA(e,5)},nf.cloneDeepWith=function(e,t){return nA(e,5,t="function"==typeof t?t:i)},nf.cloneWith=function(e,t){return nA(e,4,t="function"==typeof t?t:i)},nf.conformsTo=function(e,t){return null==t||nR(e,t,ac(t))},nf.deburr=a_,nf.defaultTo=function(e,t){return null==e||e!=e?t:e},nf.divide=aQ,nf.endsWith=function(e,t,n){e=o8(e),t=rb(t);var r=e.length,o=n=n===i?r:nP(o3(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},nf.eq=oC,nf.escape=function(e){return(e=o8(e))&&V.test(e)?e.replace(H,tz):e},nf.escapeRegExp=function(e){return(e=o8(e))&&Q.test(e)?e.replace(J,"\\$&"):e},nf.every=function(e,t,n){var r=oR(e)?tc:nz;return n&&iv(e,t,n)&&(t=i),r(e,ia(t,3))},nf.find=oo,nf.findIndex=i$,nf.findKey=function(e,t){return tw(e,ia(t,3),nW)},nf.findLast=oa,nf.findLastIndex=iH,nf.findLastKey=function(e,t){return tw(e,ia(t,3),nV)},nf.floor=a0,nf.forEach=os,nf.forEachRight=ol,nf.forIn=function(e,t){return null==e?e:n$(e,ia(t,3),ad)},nf.forInRight=function(e,t){return null==e?e:nH(e,ia(t,3),ad)},nf.forOwn=function(e,t){return e&&nW(e,ia(t,3))},nf.forOwnRight=function(e,t){return e&&nV(e,ia(t,3))},nf.get=ao,nf.gt=oI,nf.gte=oP,nf.has=function(e,t){return null!=e&&ip(e,t,nX)},nf.hasIn=aa,nf.head=iV,nf.identity=aD,nf.includes=function(e,t,n,r){e=oM(e)?e:ab(e),n=n&&!r?o3(n):0;var i=e.length;return n<0&&(n=t0(i+n,0)),oY(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&t_(e,t,n)>-1},nf.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var i=null==n?0:o3(n);return i<0&&(i=t0(r+i,0)),t_(e,t,i)},nf.inRange=function(e,t,n){var r,o,a;return t=o2(t),n===i?(n=t,t=0):n=o2(n),(r=e=o5(e))>=t1(o=t,a=n)&&r<t0(o,a)},nf.invoke=au,nf.isArguments=oA,nf.isArray=oR,nf.isArrayBuffer=oN,nf.isArrayLike=oM,nf.isArrayLikeObject=oD,nf.isBoolean=function(e){return!0===e||!1===e||oW(e)&&nG(e)==h},nf.isBuffer=oL,nf.isDate=oz,nf.isElement=function(e){return oW(e)&&1===e.nodeType&&!oK(e)},nf.isEmpty=function(e){if(null==e)return!0;if(oM(e)&&(oR(e)||"string"==typeof e||"function"==typeof e.splice||oL(e)||oJ(e)||oA(e)))return!e.length;var t=ih(e);if(t==v||t==k)return!e.size;if(i_(e))return!n6(e).length;for(var n in e)if(eI.call(e,n))return!1;return!0},nf.isEqual=function(e,t){return n2(e,t)},nf.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?n2(e,t,i,n):!!r},nf.isError=oF,nf.isFinite=function(e){return"number"==typeof e&&tX(e)},nf.isFunction=oB,nf.isInteger=oU,nf.isLength=o$,nf.isMap=oV,nf.isMatch=function(e,t){return e===t||n3(e,t,il(t))},nf.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,n3(e,t,il(t),n)},nf.isNaN=function(e){return oq(e)&&e!=+e},nf.isNative=function(e){if(ix(e))throw new ev("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return n4(e)},nf.isNil=function(e){return null==e},nf.isNull=function(e){return null===e},nf.isNumber=oq,nf.isObject=oH,nf.isObjectLike=oW,nf.isPlainObject=oK,nf.isRegExp=oZ,nf.isSafeInteger=function(e){return oU(e)&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff},nf.isSet=oG,nf.isString=oY,nf.isSymbol=oX,nf.isTypedArray=oJ,nf.isUndefined=function(e){return e===i},nf.isWeakMap=function(e){return oW(e)&&ih(e)==O},nf.isWeakSet=function(e){return oW(e)&&"[object WeakSet]"==nG(e)},nf.join=function(e,t){return null==e?"":tJ.call(e,t)},nf.kebabCase=ak,nf.last=iG,nf.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var o=r;return n!==i&&(o=(o=o3(n))<0?t0(r+o,0):t1(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--&&e[r]!==t;);return r}(e,t,o):tx(e,tS,o,!0)},nf.lowerCase=aS,nf.lowerFirst=aE,nf.lt=oQ,nf.lte=o0,nf.max=function(e){return e&&e.length?nF(e,aD,nY):i},nf.maxBy=function(e,t){return e&&e.length?nF(e,ia(t,2),nY):i},nf.mean=function(e){return tE(e,aD)},nf.meanBy=function(e,t){return tE(e,ia(t,2))},nf.min=function(e){return e&&e.length?nF(e,aD,n8):i},nf.minBy=function(e,t){return e&&e.length?nF(e,ia(t,2),n8):i},nf.stubArray=aZ,nf.stubFalse=aG,nf.stubObject=function(){return{}},nf.stubString=function(){return""},nf.stubTrue=function(){return!0},nf.multiply=a1,nf.nth=function(e,t){return e&&e.length?rn(e,o3(t)):i},nf.noConflict=function(){return e5._===this&&(e5._=eM),this},nf.noop=aU,nf.now=om,nf.pad=function(e,t,n){e=o8(e);var r=(t=o3(t))?tV(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return rQ(tb(i),n)+e+rQ(te(i),n)},nf.padEnd=function(e,t,n){e=o8(e);var r=(t=o3(t))?tV(e):0;return t&&r<t?e+rQ(t-r,n):e},nf.padStart=function(e,t,n){e=o8(e);var r=(t=o3(t))?tV(e):0;return t&&r<t?rQ(t-r,n)+e:e},nf.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t*=1),t3(o8(e).replace(ee,""),t||0)},nf.random=function(e,t,n){if(n&&"boolean"!=typeof n&&iv(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=o2(e),t===i?(t=e,e=0):t=o2(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=t4();
vendor: 5,405 bytes, line 58
58return t1(e+o*(t-e+e1("1e-"+((o+"").length-1))),t)}return rs(e,t)},nf.reduce=function(e,t,n){var r=oR(e)?tg:tT,i=arguments.length<3;return r(e,ia(t,4),n,i,nD)},nf.reduceRight=function(e,t,n){var r=oR(e)?ty:tT,i=arguments.length<3;return r(e,ia(t,4),n,i,nL)},nf.repeat=function(e,t,n){return t=(n?iv(e,t,n):t===i)?1:o3(t),rl(o8(e),t)},nf.replace=function(){var e=arguments,t=o8(e[0]);return e.length<3?t:t.replace(e[1],e[2])},nf.result=function(e,t,n){var r=-1,o=(t=rC(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[iD(t[r])];a===i&&(r=o,a=n),e=oB(a)?a.call(e):a}return e},nf.round=a2,nf.runInContext=e,nf.sample=function(e){return(oR(e)?nk:function(e){return nk(ab(e))})(e)},nf.size=function(e){if(null==e)return 0;if(oM(e))return oY(e)?tV(e):e.length;var t=ih(e);return t==v||t==k?e.size:n6(e).length},nf.snakeCase=aO,nf.some=function(e,t,n){var r=oR(e)?tv:rp;return n&&iv(e,t,n)&&(t=i),r(e,ia(t,3))},nf.sortedIndex=function(e,t){return rm(e,t)},nf.sortedIndexBy=function(e,t,n){return rg(e,t,ia(n,2))},nf.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=rm(e,t);if(r<n&&oC(e[r],t))return r}return -1},nf.sortedLastIndex=function(e,t){return rm(e,t,!0)},nf.sortedLastIndexBy=function(e,t,n){return rg(e,t,ia(n,2),!0)},nf.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=rm(e,t,!0)-1;if(oC(e[n],t))return n}return -1},nf.startCase=aj,nf.startsWith=function(e,t,n){return e=o8(e),n=null==n?0:nP(o3(n),0,e.length),t=rb(t),e.slice(n,n+t.length)==t},nf.subtract=a3,nf.sum=function(e){return e&&e.length?tC(e,aD):0},nf.sumBy=function(e,t){return e&&e.length?tC(e,ia(t,2)):0},nf.template=function(e,t,n){var r=nf.templateSettings;n&&iv(e,t,n)&&(t=i),e=o8(e),t=at({},t,r,r8);var o=at({},t.imports,r.imports,r8),a=ac(o),s=tR(o,a);tu(a,function(e){if(ea.test(e))throw new ev("Invalid `imports` option passed into `_.template`")});var l,u,c=0,d=t.interpolate||eg,f="__p += '",h=e_((t.escape||eg).source+"|"+d.source+"|"+(d===Z?el:eg).source+"|"+(t.evaluate||eg).source+"|$","g"),p="//# sourceURL="+(eI.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eX+"]")+"\n";e.replace(h,function(t,n,r,i,o,a){return r||(r=i),f+=e.slice(c,a).replace(ey,tF),n&&(l=!0,f+="' +\n__e("+n+") +\n'"),o&&(u=!0,f+="';\n"+o+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+t.length,t}),f+="';\n";var m=eI.call(t,"variable")&&t.variable;if(m){if(ea.test(m))throw new ev("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(u?f.replace(F,""):f).replace(B,"$1").replace(U,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=aP(function(){return eb(a,p+"return "+f).apply(i,s)});if(g.source=f,oF(g))throw g;return g},nf.times=function(e,t){if((e=o3(e))<1||e>0x1fffffffffffff)return[];var n=0xffffffff,r=t1(e,0xffffffff);t=ia(t),e-=0xffffffff;for(var i=tI(r,t);++n<e;)t(n);return i},nf.toFinite=o2,nf.toInteger=o3,nf.toLength=o4,nf.toLower=function(e){return o8(e).toLowerCase()},nf.toNumber=o5,nf.toSafeInteger=function(e){return e?nP(o3(e),-0x1fffffffffffff,0x1fffffffffffff):0===e?e:0},nf.toString=o8,nf.toUpper=function(e){return o8(e).toUpperCase()},nf.trim=function(e,t,n){if((e=o8(e))&&(n||t===i))return tP(e);if(!e||!(t=rb(t)))return e;var r=tq(e),o=tq(t);return rI(r,tM(r,o),tD(r,o)+1).join("")},nf.trimEnd=function(e,t,n){if((e=o8(e))&&(n||t===i))return e.slice(0,tK(e)+1);if(!e||!(t=rb(t)))return e;var r=tq(e);return rI(r,0,tD(r,tq(t))+1).join("")},nf.trimStart=function(e,t,n){if((e=o8(e))&&(n||t===i))return e.replace(ee,"");if(!e||!(t=rb(t)))return e;var r=tq(e);return rI(r,tM(r,tq(t))).join("")},nf.truncate=function(e,t){var n=30,r="...";if(oH(t)){var o="separator"in t?t.separator:o;n="length"in t?o3(t.length):n,r="omission"in t?rb(t.omission):r}var a=(e=o8(e)).length;if(tB(e)){var s=tq(e);a=s.length}if(n>=a)return e;var l=n-tV(r);if(l<1)return r;var u=s?rI(s,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),oZ(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=e_(o.source,o8(eu.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,f===i?l:f)}}else if(e.indexOf(rb(o),l)!=l){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+r},nf.unescape=function(e){return(e=o8(e))&&W.test(e)?e.replace($,tZ):e},nf.uniqueId=function(e){var t=++eP;return o8(e)+t},nf.upperCase=aT,nf.upperFirst=aC,nf.each=os,nf.eachRight=ol,nf.first=iV,aB(nf,(aY={},nW(nf,function(e,t){eI.call(nf.prototype,t)||(aY[t]=e)}),aY),{chain:!1}),nf.VERSION="4.18.1",tu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){nf[e].placeholder=nf}),tu(["drop","take"],function(e,t){ng.prototype[e]=function(n){n=n===i?1:t0(o3(n),0);var r=this.__filtered__&&!t?new ng(this):this.clone();return r.__filtered__?r.__takeCount__=t1(n,r.__takeCount__):r.__views__.push({size:t1(n,0xffffffff),type:e+(r.__dir__<0?"Right":"")}),r},ng.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tu(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ng.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ia(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),tu(["head","last"],function(e,t){var n="take"+(t?"Right":"");
58ng.prototype[e]=function(){return this[n](1).value()[0]}}),tu(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ng.prototype[e]=function(){return this.__filtered__?new ng(this):this[n](1)}}),ng.prototype.compact=function(){return this.filter(aD)},ng.prototype.find=function(e){return this.filter(e).head()},ng.prototype.findLast=function(e){return this.reverse().find(e)},ng.prototype.invokeMap=ru(function(e,t){return"function"==typeof e?new ng(this):this.map(function(n){return n0(n,e,t)})}),ng.prototype.reject=function(e){return this.filter(oS(ia(e)))},ng.prototype.slice=function(e,t){e=o3(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ng(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=o3(t))<0?n.dropRight(-t):n.take(t-e)),n)},ng.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ng.prototype.toArray=function(){return this.take(0xffffffff)},nW(ng.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=nf[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(nf.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof ng,u=s[0],c=l||oR(t),d=function(e){var t=o.apply(nf,tm([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,m=l&&!h;if(!a&&c){t=m?t:new ng(this);var g=e.apply(t,s);return g.__actions__.push({func:on,args:[d],thisArg:i}),new nm(g,f)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})}),tu(["pop","push","shift","sort","splice","unshift"],function(e){var t=eE[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);nf.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(oR(i)?i:[],e)}return this[n](function(n){return t.apply(oR(n)?n:[],e)})}}),nW(ng.prototype,function(e,t){var n=nf[t];if(n){var r=n.name+"";eI.call(nr,r)||(nr[r]=[]),nr[r].push({name:t,func:n})}}),nr[rG(i,2).name]=[{name:"wrapper",func:i}],ng.prototype.clone=function(){var e=new ng(this.__wrapped__);return e.__actions__=rz(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rz(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rz(this.__views__),e},ng.prototype.reverse=function(){if(this.__filtered__){var e=new ng(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ng.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=oR(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],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=t1(t,e+a);break;case"takeRight":e=t0(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,h=t1(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return rS(e,this.__actions__);var p=[];n:for(;l--&&f<h;){for(var m=-1,g=e[u+=t];++m<d;){var y=c[m],v=y.iteratee,b=y.type,w=v(g);if(2==b)g=w;else if(!w){if(1==b)continue n;break n}}p[f++]=g}return p},nf.prototype.at=or,nf.prototype.chain=function(){return ot(this)},nf.prototype.commit=function(){return new nm(this.value(),this.__chain__)},nf.prototype.next=function(){this.__values__===i&&(this.__values__=o1(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},nf.prototype.plant=function(e){for(var t,n=this;n instanceof np;){var r=iz(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},nf.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ng){var t=e;return this.__actions__.length&&(t=new ng(this)),(t=t.reverse()).__actions__.push({func:on,args:[iQ],thisArg:i}),new nm(t,this.__chain__)}return this.thru(iQ)},nf.prototype.toJSON=nf.prototype.valueOf=nf.prototype.value=function(){return rS(this.__wrapped__,this.__actions__)},nf.prototype.first=nf.prototype.head,e0&&(nf.prototype[e0]=function(){return this}),nf}();e5._=tG,(r=(function(){return tG}).call(t,n,t,e))===i||(e.exports=r)}).call(this)},837(e){"use strict";var t=TypeError;e.exports=function(e){if(e>0x1fffffffffffff)throw new t("Maximum allowed index exceeded");return e}},400(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},767(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},757(e){"use strict";e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},859(e){"use strict";e.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},684(e){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},269(e){"use strict";e.exports=Object.create?Object.create(null):{}},741(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},717(e,t){"use strict";t.f=Object.getOwnPropertySymbols},103(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},265(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},823(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}}};let r={};function i(e){let t=r[e];if(void 0!==t)return t.exports;let o=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.n=e=>
58{let t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},t=Object.getPrototypeOf,i.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;let o=Object.create(null);i.r(o);let a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);let o={};return(()=>{"use strict";let e,t;i.r(o),i.d(o,{DoesNotExist:()=>oQ,JsonApi:()=>a4,JsonApiException:()=>oX,MultipleObjectsReturned:()=>o0,NotSingleItem:()=>oJ,Resource:()=>a5});var n,r,a,s,l,u,c,d,f,h,p,m,g,y,v,b,w,x,_,k,S,E,O,j,T,C,I,P,A,R,N,M,D,z=i.cw(function(e,t){var n=e4(),r=nu(),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(r(e)+" is not a function")}}),F=i.cw(function(e,t){var n=e5(),r=nu(),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(r(e)+" is not a constructor")}}),B=i.cw(function(e,t){var n=e7(),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}}),U=i.cw(function(e,t){var n=ny(),r=tv(),i=tw().f,o=n("unscopables"),a=Array.prototype;void 0===a[o]&&i(a,o,{configurable:!0,value:r(null)}),e.exports=function(e){a[o][e]=!0}}),$=i.cw(function(e,t){var n=tO(),r=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new r("Incorrect invocation")}}),H=i.cw(function(e,t){var n=e9(),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(r(e)+" is not an object")}}),W=i.cw(function(e,t){e.exports=eP()(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})}),V=i.cw(function(e,t){var n=Z().jJ;e.exports=Y()("forEach")?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),q=i.cw(function(e,t){var n=eN(),r=eL(),i=ni(),o=et(),a=e2(),s=e5(),l=tf(),u=ef(),c=X(),d=eH(),f=eW(),h=to(),p=ew(),m=Array;e.exports=function(e){var t=s(this),g=arguments.length,y=g>1?arguments[1]:void 0,v=void 0!==y;v&&(y=n(y,g>2?arguments[2]:void 0));var b,w,x,_,k,S,E=i(e),O=f(E),j=0;if(!O||this===m&&a(O))for(b=l(E),w=t?new this(b):m(b);b>j;j++)S=v?y(E[j],j):E[j],u(w,j,S);else for(w=t?new this:[],k=(_=d(E,O)).next;!(x=r(k,_)).done;j++){try{p(j)}catch(e){h(_,"throw",e)}S=v?o(_,y,[x.value,j],!0):x.value;try{u(w,j,S)}catch(e){h(_,"throw",e)}}return c(w,j),w}}),K=i.cw(function(e,t){var n=nt(),r=ne(),i=tf(),o=function(e){return function(t,o,a){var s=n(t),l=i(s);if(0===l)return!e&&-1;var u,c=r(a,l);if(e&&o!=o){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===o)return e||c||0;return!e&&-1}};e.exports={m:o(!0),q:o(!1)}}),Z=i.cw(function(e,t){var n=eN(),r=eX(),i=ni(),o=tf(),a=ee(),s=ef(),l=function(e){var t=1===e,l=2===e,u=3===e,c=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,m,g){for(var y,v,b=i(p),w=r(b),x=o(w),_=n(m,g),k=0,S=0,E=t?a(p,x):l||f?a(p,0):void 0;x>k;k++)if((h||k in w)&&(v=_(y=w[k],k,b),e))if(t)s(E,k,v);else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:s(E,S++,y)}else switch(e){case 4:return!1;case 7:s(E,S++,y)}return d?-1:u||c?c:E}};e.exports={jJ:l(0),Tj:l(1),pb:l(2),zN:l(3),Si:l(4),...void l(5),...void l(6),...void l(7)}}),G=i.cw(function(e,t){var n=eP(),r=ny(),i=eT(),o=r("species");e.exports=function(e){return i>=51||!n(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}),Y=i.cw(function(e,t){var n=eP();e.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}}),X=i.cw(function(e,t){var n=ev(),r=e3(),i=TypeError,o=Object.getOwnPropertyDescriptor;e.exports=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(r(e)&&!o(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}}),J=i.cw(function(e,t){e.exports=eU()([].slice)}),Q=i.cw(function(e,t){var n=e3(),r=e5(),i=e9(),o=ny()("species"),a=Array;e.exports=function(e){var t;return n(e)&&(r(t=e.constructor)&&(t===a||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0),void 0===t?a:t}}),ee=i.cw(function(e,t){var n=Q();e.exports=function(e,t){return new(n(e))(0===t?0:t)}}),et=i.cw(function(e,t){var n=H(),r=to();e.exports=function(e,t,i,o){try{return o?t(n(i)[0],i[1]):t(i)}catch(t){r(e,"throw",t)}}}
vendor: 5,235 bytes, line 58
58),en=i.cw(function(e,t){var n=ny()("iterator"),r=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){r=!0}};o[n]=function(){return this},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},e(o)}catch(e){}return i}}),er=i.cw(function(e,t){var n=eU(),r=n({}.toString),i=n("".slice);e.exports=function(e){return i(r(e),8,-1)}}),ei=i.cw(function(e,t){var n=ns(),r=e4(),i=er(),o=ny()("toStringTag"),a=Object,s="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,n,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:s?i(t):"Object"===(l=i(t))&&r(t.callee)?"Arguments":l}}),eo=i.cw(function(e,t){var n=tv(),r=ep(),i=eg(),o=eN(),a=$(),s=e8(),l=tr(),u=tl(),c=eu(),d=tX(),f=ev(),h=e0().fastKey,p=e1(),m=p.set,g=p.getterFor;e.exports={getConstructor:function(e,t,u,c){var d=e(function(e,r){a(e,p),m(e,{type:t,index:n(null),first:null,last:null,size:0}),f||(e.size=0),s(r)||l(r,e[c],{that:e,AS_ENTRIES:u})}),p=d.prototype,y=g(t),v=function(e,t,n){var r,i,o=y(e),a=b(e,t);return a?a.value=n:(o.last=a={index:i=h(t,!0),key:t,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},b=function(e,t){var n,r=y(e),i=h(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return i(p,{clear:function(){for(var e=y(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=n(null),f?e.size=0:this.size=0},delete:function(e){var t=y(this),n=b(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first===n&&(t.first=r),t.last===n&&(t.last=i),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=y(this),r=o(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(p,u?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(p,"size",{configurable:!0,get:function(){return y(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);u(e,t,function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?c("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,c(void 0,!0))},n?"entries":"values",!n,!0),d(t)}}}),ea=i.cw(function(e,t){var n=eI(),r=eq(),i=eU(),o=e6(),a=em(),s=e0(),l=tr(),u=$(),c=e4(),d=e8(),f=e9(),h=eP(),p=en(),m=tJ(),g=eJ();e.exports=function(e,t,y){var v=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=v?"set":"add",x=r[e],_=x&&x.prototype,k=x,S={},E=function(e){var t=i(_[e]);a(_,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!f(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!f(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(o(e,!c(x)||!(b||_.forEach&&!h(function(){(new x).entries().next()}))))k=y.getConstructor(t,e,v,w),s.enable();else if(o(e,!0)){var O=new k,j=O[w](b?{}:-0,1)!==O,T=h(function(){O.has(1)}),C=p(function(e){new x(e)}),I=!b&&h(function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)});C||((k=t(function(e,t){u(e,_);var n=g(new x,e,k);return d(t)||l(t,n[w],{that:n,AS_ENTRIES:v}),n})).prototype=_,_.constructor=k),(T||I)&&(E("delete"),E("has"),v&&E("get")),(I||j)&&E(w),b&&_.clear&&delete _.clear}return S[e]=k,n({global:!0,constructor:!0,forced:k!==x},S),m(k,e),b||y.setStrong(k,e,v),k}}),es=i.cw(function(e,t){var n=eK(),r=tN(),i=tx(),o=tw();e.exports=function(e,t,a){for(var s=r(t),l=o.f,u=i.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||a&&n(a,d)||l(e,d,u(t,d))}}}),el=i.cw(function(e,t){e.exports=!eP()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),eu=i.cw(function(e,t){e.exports=function(e,t){return{value:e,done:t}}}),ec=i.cw(function(e,t){var n=ev(),r=tw(),i=ed();e.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}}),ed=i.cw(function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),ef=i.cw(function(e,t){var n=ev(),r=tw(),i=ed();e.exports=function(e,t,o){n?r.f(e,t,i(0,o)):e[t]=o}}),eh=i.cw(function(e,t){var n=H(),r=tR(),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return r(this,e)}}),ep=i.cw(function(e,t){var n=th(),r=tw();e.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}}),em=i.cw(function(e,t){var n=e4(),r=tw(),i=th(),o=ey();e.exports=function(e,t,a,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(n(a)&&i(a,u,s),s.global)l?e[t]=a:o(t,a);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}
58l?e[t]=a:r.f(e,t,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}}),eg=i.cw(function(e,t){var n=em();e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}}),ey=i.cw(function(e,t){var n=eq(),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}}),ev=i.cw(function(e,t){e.exports=!eP()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),eb=i.cw(function(e,t){var n=eq(),r=e9(),i=n.document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}}),ew=()=>i(837),ex=i.cw(function(e,t){var n=eb()("span").classList,r=n&&n.constructor&&n.constructor.prototype;e.exports=r===Object.prototype?void 0:r}),e_=i.cw(function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),ek=i.cw(function(e,t){var n=ej();e.exports=/ipad|iphone|ipod/i.test(n)&&"u">typeof Pebble}),eS=i.cw(function(e,t){var n=ej();e.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)}),eE=i.cw(function(e,t){e.exports="NODE"===eC()}),eO=i.cw(function(e,t){var n=ej();e.exports=/web0s(?!.*chrome)/i.test(n)}),ej=i.cw(function(e,t){var n=eq().navigator,r=n&&n.userAgent;e.exports=r?String(r):""}),eT=i.cw(function(e,t){var n,r,i=eq(),o=ej(),a=i.process,s=i.Deno,l=a&&a.versions||s&&s.version,u=l&&l.v8;u&&(r=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r}),eC=i.cw(function(e,t){var n=eq(),r=ej(),i=er(),o=function(e){return r.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"}),eI=i.cw(function(e,t){var n=eq(),r=tx().f,i=ec(),o=em(),a=ey(),s=es(),l=e6();e.exports=function(e,t){var u,c,d,f,h,p=e.target,m=e.global,g=e.stat;if(u=m?n:g?n[p]||a(p,{}):n[p]&&n[p].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(h=r(u,c))&&h.value:u[c],!l(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;s(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),o(u,c,f,e)}}}),eP=i.cw(function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}}),eA=i.cw(function(e,t){e.exports=!eP()(function(){return Object.isExtensible(Object.preventExtensions({}))})}),eR=i.cw(function(e,t){var n=eM(),r=Function.prototype,i=r.apply,o=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})}),eN=i.cw(function(e,t){var n=eB(),r=z(),i=eM(),o=n(n.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}}),eM=i.cw(function(e,t){e.exports=!eP()(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}),eD=i.cw(function(e,t){var n=eU(),r=z(),i=e9(),o=eK(),a=J(),s=eM(),l=Function,u=n([].concat),c=n([].join),d={};e.exports=s?l.bind:function(e){var t=r(this),n=t.prototype,s=a(arguments,1),f=function(){var n=u(s,a(arguments));return this instanceof f?function(e,t,n){if(!o(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=l("C,a","return new C("+c(r,",")+")")}return d[t](e,n)}(t,n.length,n):t.apply(e,n)};return i(n)&&(f.prototype=n),f}}),eL=i.cw(function(e,t){var n=eM(),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}}),ez=i.cw(function(e,t){var n=ev(),r=eK(),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=r(i,"name"),s=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:a&&"something"===(function(){}).name,CONFIGURABLE:s}}),eF=i.cw(function(e,t){var n=eU(),r=z();e.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch(e){}}}),eB=i.cw(function(e,t){var n=er(),r=eU();e.exports=function(e){if("Function"===n(e))return r(e)}}),eU=i.cw(function(e,t){var n=eM(),r=Function.prototype,i=r.call,o=n&&r.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}}),e$=i.cw(function(e,t){var n=eq(),r=e4();e.exports=function(e,t){var i;return arguments.length<2?r(i=n[e])?i:void 0:n[e]&&n[e][t]}}),eH=i.cw(function(e,t){var n=eL(),r=e4(),i=H(),o=nu(),a=eW(),s=TypeError;e.exports=function(e,t){var l=arguments.length<2?a(e):t;if(r(l))return i(n(l,e));throw new s(o(e)+" is not iterable")}}),eW=i.cw(function(e,t){var n=er(),r=e8(),i=eV(),o=ny()("iterator"),a=Array.prototype;e.exports=function(e){if(!r(e))return i(e,o)||i(e,"@@iterator")||("Arguments"===n(e)?a[o]:void 0)}}),eV=i.cw(function(e,t){var n=z(),r=e8();e.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}}),eq=i.cw(function(e,t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}),eK=i.cw(function(e,t){var n=eU(),r=ni(),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}}),eZ=i.cw(function(e,t){e.exports={}}),eG=i.cw(function(e,t){e.exports=e$()("document","documentElement")}),eY=i.cw(function(e,t){var n=ev(),r=eP(),i=eb();e.exports=!n&&!r(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})}),eX=i.cw(function(e,t){var n=eU(),r=eP(),i=er(),o=Object,a=n("".split);e.exports=r(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?a(e,""):o(e)}:o}),eJ=i.cw(function(e,t){var n=e4(),r=e9(),i=tI();e.exports=function(e,t,o){var a,s;return i&&n(a=t.constructor)&&a!==o&&r(s=a.prototype)&&s!==o.prototype&&i(e,s),e}}
vendor: 4,572 bytes, line 58
58),eQ=i.cw(function(e,t){var n=eU(),r=e4(),i=t0(),o=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource}),e0=i.cw(function(e,t){var n=eI(),r=eU(),i=eZ(),o=e9(),a=eK(),s=tw().f,l=tk(),u=t_(),c=tE(),d=nc(),f=eA(),h=!1,p=d("meta"),m=0,g=function(e){s(e,p,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},h=!0;var e=l.f,t=r([].splice),i={};i[p]=1,e(i).length&&(l.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===p){t(r,i,1);break}return r},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,p)){if(!c(e))return"F";if(!t)return"E";g(e)}return e[p].objectID},getWeakData:function(e,t){if(!a(e,p)){if(!c(e))return!0;if(!t)return!1;g(e)}return e[p].weakData},onFreeze:function(e){return f&&h&&c(e)&&!a(e,p)&&g(e),e}};i[p]=!0}),e1=i.cw(function(e,t){var n,r,i,o=np(),a=eq(),s=e9(),l=ec(),u=eK(),c=t0(),d=tQ(),f=eZ(),h="Object already initialized",p=a.TypeError,m=a.WeakMap;if(o||c.state){var g=c.state||(c.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new p(h);return t.facade=e,g.set(e,t),t},r=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=d("state");f[y]=!0,n=function(e,t){if(u(e,y))throw new p(h);return t.facade=e,l(e,y,t),t},r=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:n,get:r,has:i,enforce:function(e){return i(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}}),e2=i.cw(function(e,t){var n=ny(),r=td(),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}}),e3=i.cw(function(e,t){var n=er();e.exports=Array.isArray||function(e){return"Array"===n(e)}}),e4=i.cw(function(e,t){var n="object"==typeof document&&document.all;e.exports=void 0===n&&void 0!==n?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}}),e5=i.cw(function(e,t){var n=eU(),r=eP(),i=e4(),o=ei(),a=e$(),s=eQ(),l=function(){},u=a("Reflect","construct"),c=/^\s*(?:class|function)\b/,d=n(c.exec),f=!c.test(l),h=function(e){if(!i(e))return!1;try{return u(l,[],e),!0}catch(e){return!1}},p=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(c,s(e))}catch(e){return!0}};p.sham=!0,e.exports=!u||r(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?p:h}),e6=i.cw(function(e,t){var n=eP(),r=e4(),i=/#|\.prototype\./,o=function(e,t){var i=s[a(e)];return i===u||i!==l&&(r(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o}),e8=i.cw(function(e,t){e.exports=function(e){return null==e}}),e9=i.cw(function(e,t){var n=e4();e.exports=function(e){return"object"==typeof e?null!==e:n(e)}}),e7=i.cw(function(e,t){var n=e9();e.exports=function(e){return n(e)||null===e}}),te=i.cw(function(e,t){e.exports=!1}),tt=i.cw(function(e,t){var n=e9(),r=e1().get;e.exports=function(e){if(!n(e))return!1;var t=r(e);return!!t&&"RawJSON"===t.type}}),tn=i.cw(function(e,t){var n=e$(),r=e4(),i=tO(),o=nd(),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&i(t.prototype,a(e))}}),tr=i.cw(function(e,t){var n=eN(),r=eL(),i=H(),o=nu(),a=e2(),s=tf(),l=tO(),u=eH(),c=eW(),d=to(),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},p=h.prototype;e.exports=function(e,t,m){var g,y,v,b,w,x,_,k=m&&m.that,S=!(!m||!m.AS_ENTRIES),E=!(!m||!m.IS_RECORD),O=!(!m||!m.IS_ITERATOR),j=!(!m||!m.INTERRUPTED),T=n(t,k),C=function(e){var t=g;return g=void 0,t&&d(t,"normal"),new h(!0,e)},I=function(e){return S?(i(e),j?T(e[0],e[1],C):T(e[0],e[1])):j?T(e,C):T(e)};if(E)g=e.iterator;else if(O)g=e;else{if(!(y=c(e)))throw new f(o(e)+" is not iterable");if(a(y)){for(v=0,b=s(e);b>v;v++)if((w=I(e[v]))&&l(p,w))return w;return new h(!1)}g=u(e,y)}for(x=E?e.next:g.next;!(_=r(x,g)).done;){var P=_.value;try{w=I(P)}catch(e){if(!g)throw e;d(g,"throw",e)}if("object"==typeof w&&w&&l(p,w))return w}return new h(!1)}}),ti=i.cw(function(e,t){var n=to();e.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}}),to=i.cw(function(e,t){var n=eL(),r=H(),i=eV();e.exports=function(e,t,o){var a,s;r(e);
58try{if(!(a=i(e,"return"))){if("throw"===t)throw o;return o}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw o;if(s)throw a;return r(a),o}}),ta=i.cw(function(e,t){var n=tc().IteratorPrototype,r=tv(),i=ed(),o=tJ(),a=td(),s=function(){return this};e.exports=function(e,t,l,u){var c=t+" Iterator";return e.prototype=r(n,{next:i(+!u,l)}),o(e,c,!1,!0),a[c]=s,e}}),ts=i.cw(function(e,t){var n=eL(),r=tv(),o=ec(),a=eg(),s=ny(),l=e1(),u=eV(),c=tc().IteratorPrototype,d=eu(),f=to(),h=ti(),p=i(859),m=s("toStringTag"),g="IteratorHelper",y="WrapForValidIterator",v="normal",b="throw",w=l.set,x=function(e){var t=l.getterFor(e?y:g);return a(r(c),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.done&&p(n),n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,p(n),e}},return:function(){var r=t(this),i=r.iterator,o=r.inner,a=r.openIters,s=r.done;if(r.done=!0,e){var l=u(i,"return");return l?n(l,i):d(void 0,!0)}if(p(r),s)return d(void 0,!0);if(o)try{f(o.iterator,v)}catch(e){return f(i,b,e)}if(a)try{h(a,v)}catch(e){if(i)return f(i,b,e);throw e}return i&&f(i,v),d(void 0,!0)}})},_=x(!0),k=x(!1);o(k,m,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?y:g,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,w(this,i)};return r.prototype=t?_:k,r}}),tl=i.cw(function(e,t){var n=eI(),r=eL(),i=te(),o=ez(),a=e4(),s=ta(),l=tS(),u=tI(),c=tJ(),d=ec(),f=em(),h=ny(),p=td(),m=tc(),g=o.PROPER,y=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=h("iterator"),x="keys",_="values",k="entries",S=function(){return this};e.exports=function(e,t,o,h,m,E,O){s(o,t,h);var j,T,C,I=function(e){if(e===m&&M)return M;if(!b&&e&&e in R)return R[e];switch(e){case x:case _:case k:return function(){return new o(this,e)}}return function(){return new o(this)}},P=t+" Iterator",A=!1,R=e.prototype,N=R[w]||R["@@iterator"]||m&&R[m],M=!b&&N||I(m),D="Array"===t&&R.entries||N;if(D&&(j=l(D.call(new e)))!==Object.prototype&&j.next&&(i||l(j)===v||(u?u(j,v):a(j[w])||f(j,w,S)),c(j,P,!0,!0),i&&(p[P]=S)),g&&m===_&&N&&N.name!==_&&(!i&&y?d(R,"name",_):(A=!0,M=function(){return r(N,this)})),m)if(T={values:I(_),keys:E?M:I(x),entries:I(k)},O)for(C in T)!b&&!A&&C in R||f(R,C,T[C]);else n({target:t,proto:!0,forced:b||A},T);return i&&!O||R[w]===M||f(R,w,M,{name:m}),p[t]=M,T}}),tu=i.cw(function(e,t){var n=eq();e.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,o=i&&i[e],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(e){e instanceof t||(a=!1)}if(!a)return o}}),tc=i.cw(function(e,t){var n,r,i,o=eP(),a=e4(),s=e9(),l=tv(),u=tS(),c=em(),d=ny(),f=te(),h=d("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(r=u(u(i)))!==Object.prototype&&(n=r):p=!0),!s(n)||o(function(){var e={};return n[h].call(e)!==e})?n={}:f&&(n=l(n)),a(n[h])||c(n,h,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}}),td=()=>i(269),tf=i.cw(function(e,t){var n=nr();e.exports=function(e){return n(e.length)}}),th=i.cw(function(e,t){var n=eU(),r=eP(),i=e4(),o=eK(),a=ev(),s=ez().CONFIGURABLE,l=eQ(),u=e1(),c=u.enforce,d=u.get,f=String,h=Object.defineProperty,p=n("".slice),m=n("".replace),g=n([].join),y=a&&!r(function(){return 8!==h(function(){},"length",{value:8}).length}),v=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===p(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return o(r,"source")||(r.source=g(v,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function(){return i(this)&&d(this).source||l(this)},"toString")}),tp=i.cw(function(e,t){var n,r,i,o,a,s=eq(),l=tY(),u=eN(),c=t9().h,d=tU(),f=eS(),h=ek(),p=eO(),m=eE(),g=s.MutationObserver||s.WebKitMutationObserver,y=s.document,v=s.process,b=s.Promise,w=l("queueMicrotask");if(!w){var x=new d,_=function(){var e,t;for(m&&(e=v.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&n(),e}e&&e.enter()};f||m||p||!g||!y?!h&&b&&b.resolve?((o=b.resolve(void 0)).constructor=b,a=u(o.then,o),n=function(){a(_)}):m?n=function(){v.nextTick(_)}:(c=u(c,s),n=function(){c(_)}):(r=!0,i=y.createTextNode(""),new g(_).observe(i,{characterData:!0}
58),n=function(){i.data=r=!r}),w=function(e){x.head||n(),x.add(e)}}e.exports=w}),tm=i.cw(function(e,t){e.exports=!eP()(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})}),tg=i.cw(function(e,t){var n=z(),r=TypeError,i=function(e){var t,i;this.promise=new e(function(e,n){if(void 0!==t||void 0!==i)throw new r("Bad Promise constructor");t=e,i=n}),this.resolve=n(t),this.reject=n(i)};e.exports.f=function(e){return new i(e)}}),ty=i.cw(function(e,t){var n=ev(),r=eU(),i=eL(),o=eP(),a=tT(),s=rk(),l=tC(),u=ni(),c=eX(),d=Object.assign,f=Object.defineProperty,h=r([].concat);e.exports=!d||o(function(){if(n&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(e){t[e]=e}),7!==d({},e)[r]||a(d({},t)).join("")!==i})?function(e,t){for(var r=u(e),o=arguments.length,d=1,f=s.f,p=l.f;o>d;)for(var m,g=c(arguments[d++]),y=f?h(a(g),f(g)):a(g),v=y.length,b=0;v>b;)m=y[b++],n&&!i(p,g,m)||(r[m]=g[m]);return r}:d}),tv=i.cw(function(e,t){var n,r=H(),i=tb(),o=e_(),a=eZ(),s=eG(),l=eb(),u=tQ(),c="prototype",d="script",f=u("IE_PROTO"),h=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}g="u">typeof document?document.domain&&n?m(n):(t=l("iframe"),r="java"+d+":",t.style.display="none",s.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(n);for(var e,t,r,i=o.length;i--;)delete g[c][o[i]];return g()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[c]=r(e),n=new h,h[c]=null,n[f]=e):n=g(),void 0===t?n:i.f(n,t)}}),tb=i.cw(function(e,t){var n=ev(),r=nf(),i=tw(),o=H(),a=nt(),s=tT();t.f=n&&!r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),l=s(t),u=l.length,c=0;u>c;)i.f(e,n=l[c++],r[n]);return e}}),tw=i.cw(function(e,t){var n=ev(),r=eY(),i=nf(),o=H(),a=na(),s=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c="enumerable",d="configurable",f="writable";t.f=n?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:c in n?n[c]:r[c],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=a(t),o(n),r)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(e[t]=n.value),e}}),tx=i.cw(function(e,t){var n=ev(),r=eL(),i=tC(),o=ed(),a=nt(),s=na(),l=eK(),u=eY(),c=Object.getOwnPropertyDescriptor;t.f=n?c:function(e,t){if(e=a(e),t=s(t),u)try{return c(e,t)}catch(e){}if(l(e,t))return o(!r(i.f,e,t),e[t])}}),t_=i.cw(function(e,t){var n=er(),r=nt(),i=tk().f,o=J(),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return o(a)}}(e):i(r(e))}}),tk=i.cw(function(e,t){var n=tj(),r=e_().concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}}),tS=i.cw(function(e,t){var n=eK(),r=e4(),i=ni(),o=tQ(),a=el(),s=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var o=t.constructor;return r(o)&&t instanceof o?o.prototype:t instanceof l?u:null}}),tE=i.cw(function(e,t){var n=eP(),r=e9(),i=er(),o=W(),a=Object.isExtensible;e.exports=n(function(){a(1)})||o?function(e){return!!r(e)&&(!o||"ArrayBuffer"!==i(e))&&(!a||a(e))}:a}),tO=i.cw(function(e,t){e.exports=eU()({}.isPrototypeOf)}),tj=i.cw(function(e,t){var n=eU(),r=eK(),i=nt(),o=K().q,a=eZ(),s=n([].push);e.exports=function(e,t){var n,l=i(e),u=0,c=[];for(n in l)!r(a,n)&&r(l,n)&&s(c,n);for(;t.length>u;)r(l,n=t[u++])&&(~o(c,n)||s(c,n));return c}}),tT=i.cw(function(e,t){var n=tj(),r=e_();e.exports=Object.keys||function(e){return n(e,r)}}),tC=i.cw(function(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n}),tI=i.cw(function(e,t){var n=eF(),r=e9(),i=tG(),o=B();
58e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,a={};try{(e=n(Object.prototype,"__proto__","set"))(a,[]),t=a instanceof Array}catch(e){}return function(n,a){return i(n),o(a),r(n)&&(t?e(n,a):n.__proto__=a),n}}():void 0)}),tP=i.cw(function(e,t){var n=ev(),r=eP(),i=eU(),o=tS(),a=tT(),s=nt(),l=i(tC().f),u=i([].push),c=n&&r(function(){var e=Object.create(null);return e[2]=2,!l(e,2)}),d=function(e){return function(t){for(var r,i=s(t),d=a(i),f=c&&null===o(i),h=d.length,p=0,m=[];h>p;)r=d[p++],(!n||(f?r in i:l(i,r)))&&u(m,e?[r,i[r]]:i[r]);return m}};e.exports={j:d(!0),...void d(!1)}}),tA=i.cw(function(e,t){var n=ns(),r=ei();e.exports=n?({}).toString:function(){return"[object "+r(this)+"]"}}),tR=i.cw(function(e,t){var n=eL(),r=e4(),i=e9(),o=TypeError;e.exports=function(e,t){var a,s;if("string"===t&&r(a=e.toString)&&!i(s=n(a,e))||r(a=e.valueOf)&&!i(s=n(a,e))||"string"!==t&&r(a=e.toString)&&!i(s=n(a,e)))return s;throw new o("Can't convert object to primitive value")}}),tN=i.cw(function(e,t){var n=e$(),r=eU(),i=tk(),o=rk(),a=H(),s=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?s(t,n(e)):t}}),tM=i.cw(function(e,t){var n=eU(),r=eK(),i=SyntaxError,o=parseInt,a=String.fromCharCode,s=n("".charAt),l=n("".slice),u=n(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"	"},d=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,h="";t<e.length;){var p=s(e,t);if("\\"===p){var m=l(e,t,t+2);if(r(c,m))h+=c[m],t+=2;else{if("\\u"!==m)throw new i('Unknown escape sequence: "'+m+'"');var g=l(e,t+=2,t+4);if(!u(d,g))throw new i("Bad Unicode escape at: "+t);h+=a(o(g,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(u(f,p))throw new i("Bad control character in string literal at: "+t);h+=p,t++}}if(n)throw new i("Unterminated string at: "+t);return{value:h,end:t}}}),tD=i.cw(function(e,t){e.exports=eq()}),tL=i.cw(function(e,t){var n=eq(),r=tz(),i=e4(),o=e6(),a=eQ(),s=ny(),l=eC(),u=te(),c=eT(),d=r&&r.prototype,f=s("species"),h=!1,p=i(n.PromiseRejectionEvent);e.exports={CONSTRUCTOR:o("Promise",function(){var e=a(r),t=e!==String(r);if(!t&&66===c||u&&(!d.catch||!d.finally))return!0;if(!c||c<51||!/native code/.test(e)){var n=new r(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((n.constructor={})[f]=i,!(h=n.then(function(){})instanceof i))return!0}return!(t||"BROWSER"!==l&&"DENO"!==l||p)}),REJECTION_EVENT:p,SUBCLASSING:h}}),tz=i.cw(function(e,t){e.exports=eq().Promise}),tF=i.cw(function(e,t){var n=H(),r=e9(),i=tg();e.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var o=i.f(e);return(0,o.resolve)(t),o.promise}}),tB=i.cw(function(e,t){var n=tz(),r=en();e.exports=tL().CONSTRUCTOR||!r(function(e){n.all(e).then(void 0,function(){})})}),tU=()=>i(265),t$=i.cw(function(e,t){var n,r,i=eL(),o=eU(),a=nl(),s=tW(),l=tq(),u=t1(),c=tv(),d=e1().get,f=tK(),h=tZ(),p=u("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,g=m,y=o("".charAt),v=o("".indexOf),b=o("".replace),w=o("".slice),x=(r=/b*/g,i(m,n=/a/,"a"),i(m,r,"a"),0!==n.lastIndex||0!==r.lastIndex),_=l.BROKEN_CARET,k=void 0!==/()??/.exec("")[1],S=function(e,t){for(var n=e.groups=c(null),r=0;r<t.length;r++){var i=t[r];n[i[0]]=e[i[1]]}};(x||k||_||f||h)&&(g=function(e){var t,n,r,o=d(this),l=a(e),u=o.raw;if(u)return u.lastIndex=this.lastIndex,t=i(g,u,l),this.lastIndex=u.lastIndex,t&&o.groups&&S(t,o.groups),t;var c=o.groups,f=_&&this.sticky,h=i(s,this),E=this.source,O=0,j=l;if(f){-1===v(h=b(h,"y",""),"g")&&(h+="g"),j=w(l,this.lastIndex);var T=this.lastIndex>0&&y(l,this.lastIndex-1);this.lastIndex>0&&(!this.multiline||this.multiline&&"\n"!==T&&"\r"!==T&&"\u2028"!==T&&"\u2029"!==T)&&(E="(?: (?:"+E+"))",j=" "+j,O++),n=RegExp("^(?:"+E+")",h)}k&&(n=RegExp("^"+E+"$(?!\\s)",h)),x&&(r=this.lastIndex);var C=i(m,f?n:this,j);return f?C?(C.input=l,C[0]=w(C[0],O),C.index=this.lastIndex,this.lastIndex+=C[0].length):this.lastIndex=0:x&&C&&(this.lastIndex=this.global?C.index+C[0].length:r),k&&C&&C.length>1&&i(p,C[0],n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(C[e]=void 0)}),C&&c&&S(C,c),C}),e.exports=g}),tH=i.cw(function(e,t){var n=eq(),r=eP(),i=n.RegExp;e.exports={correct:!r(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)o(s,a[s]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==r||n!==r})}}),tW=i.cw(function(e,t){var n=H();e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}}),tV=i.cw(function(e,t){var n=eL(),r=eK(),i=tO(),o=tH(),a=tW(),s=RegExp.prototype;e.exports=o.correct?function(e){return e.flags}:function(e){return o.correct||!i(s,e)||r(e,"flags")?e.flags:n(a,e)}}),tq=i.cw(function(e,t){var n=eP(),r=eq().RegExp,i=n(function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),o=i||n(function(){return!r("a","y").sticky});e.exports={BROKEN_CARET:i||n(function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:o,UNSUPPORTED_Y:i}}),tK=i.cw(function(e,t){var n=eP(),r=eq().RegExp;e.exports=n(function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}),tZ=i.cw(function(e,t){var n=eP(),r=eq().RegExp;e.exports=n(function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}),tG=i.cw(function(e,t){var n=e8(),r=TypeError;e.exports=function(e){if(n(e))throw new r("Can't call method on "+e);return e}}),tY=i.cw(function(e,t){var n=eq(),r=ev(),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return n[e];var t=i(n,e);return t&&t.value}}),tX=i.cw(function(e,t){var n=e$(),r=ep(),i=ny(),o=ev(),a=i("species");e.exports=function(e){var t=n(e);o&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}}),tJ=i.cw(function(e,t){var n=tw().f,r=eK(),i=ny()("toStringTag");e.exports=function(e,t,o){e&&!o&&(e=e.prototype),e&&!r(e,i)&&n(e,i,{configurable:!0,value:t})}}),tQ=i.cw(function(e,t){var n=t1(),r=nc(),i=n("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}}),t0=i.cw(function(e,t){var n=te(),r=eq(),i=ey(),o="__core-js_shared__",a=e.exports=r[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),t1=i.cw(function(e,t){var n=t0(),r=Object.create||Object;e.exports=function(e,t){return n[e]||(n[e]=t||r(null))}}),t2=i.cw(function(e,t){var n=H(),r=F(),i=e8(),o=ny()("species");e.exports=function(e,t){var a,s=n(e).constructor;return void 0===s||i(a=n(s)[o])?t:r(a)}}),t3=i.cw(function(e,t){var n=eU(),r=nn(),i=nl(),o=tG(),a=n("".charAt),s=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,n){var u,c,d=i(o(t)),f=r(n),h=d.length;return f<0||f>=h?e?"":void 0:(u=s(d,f))<55296||u>56319||f+1===h||(c=s(d,f+1))<56320||c>57343?e?a(d,f):u:e?l(d,f,f+2):c-56320+(u-55296<<10)+65536}};e.exports={...void u(!1),o:u(!0)}}),t4=i.cw(function(e,t){var n=eU(),r=tG(),i=nl(),o=nv(),a=n("".replace),s=RegExp("^["+o+"]+"),l=RegExp("(^|[^"+o+"])["+o+"]+$"),u=function(e){return function(t){var n=i(r(t));return 1&e&&(n=a(n,s,"")),2&e&&(n=a(n,l,"$1")),n}};e.exports={...void u(1),...void u(2),Bq:u(3)}}),t5=i.cw(function(e,t){var n=eT(),r=eP(),i=eq().String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})}),t6=i.cw(function(e,t){var n=eL(),r=e$(),i=ny(),o=em();e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,a=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&o(t,s,function(e){return n(a,this)},{arity:1}
vendor: 2,169 bytes, line 58
58)}}),t8=i.cw(function(e,t){e.exports=t5()&&!!Symbol.for&&!!Symbol.keyFor}),t9=i.cw(function(e,t){var n,r,i,o,a=eq(),s=eR(),l=eN(),u=e4(),c=eK(),d=eP(),f=eG(),h=J(),p=eb(),m=nh(),g=eS(),y=eE(),v=a.setImmediate,b=a.clearImmediate,w=a.process,x=a.Dispatch,_=a.Function,k=a.MessageChannel,S=a.String,E=0,O={},j="onreadystatechange";d(function(){n=a.location});var T=function(e){if(c(O,e)){var t=O[e];delete O[e],t()}},C=function(e){return function(){T(e)}},I=function(e){T(e.data)},P=function(e){a.postMessage(S(e),n.protocol+"//"+n.host)};v&&b||(v=function(e){m(arguments.length,1);var t=u(e)?e:_(e),n=h(arguments,1);return O[++E]=function(){s(t,void 0,n)},r(E),E},b=function(e){delete O[e]},y?r=function(e){w.nextTick(C(e))}:x&&x.now?r=function(e){x.now(C(e))}:k&&!g?(o=(i=new k).port2,i.port1.onmessage=I,r=l(o.postMessage,o)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(P)?(r=P,a.addEventListener("message",I,!1)):r=j in p("script")?function(e){f.appendChild(p("script"))[j]=function(){f.removeChild(this),T(e)}}:function(e){setTimeout(C(e),0)}),e.exports={h:v}}),t7=i.cw(function(e,t){e.exports=eU()(1.1.valueOf)}),ne=i.cw(function(e,t){var n=nn(),r=Math.max,i=Math.min;e.exports=function(e,t){var o=n(e);return o<0?r(o+t,0):i(o,t)}}),nt=i.cw(function(e,t){var n=eX(),r=tG();e.exports=function(e){return n(r(e))}}),nn=i.cw(function(e,t){var n=i(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}}),nr=i.cw(function(e,t){var n=nn(),r=Math.min;e.exports=function(e){var t=n(e);return t>0?r(t,0x1fffffffffffff):0}}),ni=i.cw(function(e,t){var n=tG(),r=Object;e.exports=function(e){return r(n(e))}}),no=i.cw(function(e,t){var n=eL(),r=e9(),i=tn(),o=eV(),a=tR(),s=ny(),l=TypeError,u=s("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),!r(s=n(c,e,t))||i(s))return s;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}}),na=i.cw(function(e,t){var n=no(),r=tn();e.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}}),ns=i.cw(function(e,t){var n={};n[ny()("toStringTag")]="z",e.exports="[object z]"===String(n)}
58),nl=i.cw(function(e,t){var n=ei(),r=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}}),nu=()=>i(823),nc=i.cw(function(e,t){var n=eU(),r=0,i=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+i,36)}}),nd=i.cw(function(e,t){e.exports=t5()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),nf=i.cw(function(e,t){var n=ev(),r=eP();e.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),nh=i.cw(function(e,t){var n=TypeError;e.exports=function(e,t){if(e<t)throw new n("Not enough arguments");return e}}),np=i.cw(function(e,t){var n=eq(),r=e4(),i=n.WeakMap;e.exports=r(i)&&/native code/.test(String(i))}),nm=i.cw(function(e,t){var n=tD(),r=eK(),i=ng(),o=tw().f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});r(t,e)||o(t,e,{value:i.f(e)})}}),ng=i.cw(function(e,t){t.f=ny()}),ny=i.cw(function(e,t){var n=eq(),r=t1(),i=eK(),o=nc(),a=t5(),s=nd(),l=n.Symbol,u=r("wks"),c=s?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:c("Symbol."+e)),u[e]}}),nv=i.cw(function(e,t){e.exports="	\n\v\f\r                 \u2028\u2029\uFEFF"}),nb=i.cw(function(e,t){var n=eI(),r=eP(),i=e3(),o=e9(),a=ni(),s=tf(),l=ew(),u=ef(),c=X(),d=ee(),f=G(),h=ny(),p=eT(),m=h("isConcatSpreadable"),g=p>=51||!r(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),y=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,n,r,i,o,f=a(this),h=d(f,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(y(o=-1===t?f:arguments[t]))for(l(p+(i=s(o))),n=0;n<i;n++,p++)n in o&&u(h,p,o[n]);else l(p+1),u(h,p++,o);return c(h,p),h}})}),nw=i.cw(function(e,t){var n=eI(),r=Z().Si;n({target:"Array",proto:!0,forced:!Y()("every")},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})}),nx=i.cw(function(e,t){var n=eI(),r=Z().pb;n({target:"Array",proto:!0,forced:!G()("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})}),n_=i.cw(function(e,t){var n=eI(),r=V();n({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})}),nk=i.cw(function(e,t){var n=eI(),r=q();n({target:"Array",stat:!0,forced:!en()(function(e){Array.from(e)})},{from:r})}),nS=i.cw(function(e,t){var n=eI(),r=eB(),i=K().q,o=Y(),a=r([].indexOf),s=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:s||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return s?a(this,e,t)||0:i(this,e,t)}})}),nE=i.cw(function(e,t){eI()({target:"Array",stat:!0},{isArray:e3()})}),nO=i.cw(function(e,t){var n=nt(),r=U(),i=td(),o=e1(),a=tw().f,s=tl(),l=eu(),u=te(),c=ev(),d="Array Iterator",f=o.set,h=o.getterFor(d);e.exports=s(Array,"Array",function(e,t){f(this,{type:d,target:n(e),index:0,kind:t})},function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)},"values");var p=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!u&&c&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(e){}}),nj=i.cw(function(e,t){var n=eI(),r=eU(),i=eX(),o=nt(),a=Y(),s=r([].join);n({target:"Array",proto:!0,forced:i!==Object||!a("join",",")},{join:function(e){return s(o(this),void 0===e?",":e)}})}),nT=i.cw(function(e,t){var n=eI(),r=Z().Tj;n({target:"Array",proto:!0,forced:!G()("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})}),nC=i.cw(function(e,t){var n=eI(),r=e3(),i=e5(),o=e9(),a=ne(),s=tf(),l=nt(),u=ef(),c=X(),d=ny(),f=G(),h=J(),p=f("slice"),m=d("species"),g=Array,y=Math.max;n({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,d,f,p=l(this),v=s(p),b=a(e,v),w=a(void 0===t?v:t,v);if(r(p)&&((i(n=p.constructor)&&(n===g||r(n.prototype))||o(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return h(p,b,w);for(d=new(void 0===n?g:n)(y(w-b,0)),f=0;b<w;b++,f++)b in p&&u(d,f,p[b]);return c(d,f),d}})}),nI=i.cw(function(e,t){var n=eI(),r=Z().zN;n({target:"Array",proto:!0,forced:!Y()("some")},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})}),nP=i.cw(function(e,t){var n=eI(),r=eP(),i=ni(),o=no();n({target:"Date",proto:!0,forced:r(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=i(this),n=o(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})}),nA=i.cw(function(e,t){var n=eK(),r=em(),i=eh(),o=ny()("toPrimitive"),a=Date.prototype;n(a,o)||r(a,o,i)}),nR=i.cw(function(e,t){var n=eU(),r=em(),i=Date.prototype,o="Invalid Date",a="toString",s=n(i[a]),l=n(i.getTime);String(new Date(NaN))!==o&&r(i,a,function(){var e=l(this);return e==e?s(this):o})}),nN=i.cw(function(e,t){var n=eI(),r=eD();n({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})}),nM=i.cw(function(e,t){var n=ev(),r=ez().EXISTS,i=eU(),o=ep(),a=Function.prototype,s=i(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=i(l.exec);n&&!r&&o(a,"name",{configurable:!0,get:function(){try{return u(l,s(this))[1]}catch(e){return""}}})}),nD=i.cw(function(e,t){var n=eI(),r=eq(),i=$(),o=H(),a=e4(),s=tS(),l=ep(),u=ef(),c=eP(),d=eK(),f=ny(),h=tc().IteratorPrototype,p=ev(),m=te(),g="constructor",y="Iterator",v=f("toStringTag"),b=TypeError,w=r[y],x=m||!a(w)||w.prototype!==h||!c(function(){w({})}),_=function(){if(i(this,h),s(this)===h)throw new b("Abstract class Iterator not directly constructable")},k=function(e,t){p?l(h,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===h)throw new b("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):h[e]=t};d(h,v)||k(v,y),!x&&d(h,g)&&h[g]!==Object||k(g,_),_.prototype=h,n({global:!0,constructor:!0,forced:x},{Iterator:_})}),nL=i.cw(function(e,t){var n=eI(),r=eL(),o=tr(),a=z(),s=H(),l=i(767),u=to(),c=tu()("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{every:function(e){s(this);try{a(e)}catch(e){u(this,"throw",e)}if(c)return r(c,this,e);var t=l(this),n=0;return!o(t,function(t,r){if(!e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),nz=i.cw(function(e,t){var n=eI(),r=eL(),o=z(),a=H(),s=i(767),l=ts(),u=et(),c=te(),d=to(),f=i(684),h=tu(),p=!c&&!f("filter",function(){}),m=!c&&!p&&h("filter",TypeError),g=c||p||m,y=l(function(){for(var e,t,n=this.iterator,i=this.predicate,o=this.next;;){if(e=a(r(o,n)),this.done=!!e.done)return;if(u(n,i,[t=e.value,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(e){a(this);try{o(e)}catch(e){d(this,"throw",e)}return m?r(m,this,e):new y(s(this),{predicate:e})}})}),nF=i.cw(function(e,t){var n=eI(),r=eL(),o=tr(),a=z(),s=H(),l=i(767),u=to(),c=tu()("forEac
58h",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){s(this);try{a(e)}catch(e){u(this,"throw",e)}if(c)return r(c,this,e);var t=l(this),n=0;o(t,function(t){e(t,n++)},{IS_RECORD:!0})}})}),nB=i.cw(function(e,t){var n=eI(),r=eL(),o=z(),a=H(),s=i(767),l=ts(),u=et(),c=to(),d=i(684),f=tu(),h=te(),p=!h&&!d("map",function(){}),m=!h&&!p&&f("map",TypeError),g=h||p||m,y=l(function(){var e=this.iterator,t=a(r(this.next,e));if(!(this.done=!!t.done))return u(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}return m?r(m,this,e):new y(s(this),{mapper:e})}})}),nU=i.cw(function(e,t){var n=eI(),r=eL(),o=tr(),a=z(),s=H(),l=i(767),u=to(),c=tu()("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{some:function(e){s(this);try{a(e)}catch(e){u(this,"throw",e)}if(c)return r(c,this,e);var t=l(this),n=0;return o(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),n$=i.cw(function(e,t){var n=eI(),r=e$(),i=eL(),o=eU(),a=eP(),s=e3(),l=e4(),u=e9(),c=tv(),d=tt(),f=tn(),h=er(),p=t7(),m=K().m,g=eK(),y=nl(),v=tM(),b=nc(),w=t5(),x=tm(),_=String,k=TypeError,S=r("JSON","stringify"),E=r("BigInt"),O=o("".valueOf),j=o((!0).valueOf),T=E&&o(E.prototype.valueOf),C=o(/./.exec),I=o("".charAt),P=o("".charCodeAt),A=o("".replace),R=o("".slice),N=o([].push),M=o([].pop),D=o(1.1.toString),z=/[\uD800-\uDFFF]/g,F=/^[\uD800-\uDBFF]$/,B=/^[\uDC00-\uDFFF]$/,U=/^\d+$/,$=b(),H=b(),W=b(),V=$.length,q=H.length,Z=!w||a(function(){var e=r("Symbol")("stringify detection");return"[null]"!==S([e])||"{}"!==S({a:e})||"{}"!==S(Object(e))}),G=a(function(){return'"\\udf06\\ud834"'!==S("\uDF06\uD834")||'"\\udead"'!==S("\uDEAD")}),Y=x?r("JSON","isRawJSON"):d,X=Z?function(e,t,n){return S(e,function(e,n){var r=i(t,this,e,n);if(!f(r))return r},n)}:S,J=function(e,t,n){var r=I(n,t-1),i=I(n,t+1);return C(F,e)&&!C(B,i)||C(B,e)&&!C(F,r)?"\\u"+D(P(e,0),16):e},Q=function(e,t){try{return e(t),!0}catch(e){return!1}},ee=function(e,t){return{toJSON:function(){var n=e[t];if(u(n)||"bigint"==typeof n){var r=n.toJSON;l(r)&&(n=i(r,n,t))}return n}}};S&&n({target:"JSON",stat:!0,arity:3,forced:Z||G||!x},{stringify:function(e,t,n){var r,o=l(t)?t:void 0,a=o?void 0:function(e){if(s(e)){for(var t=e.length,n=[],r=c(null),i=0;i<t;i++){var o,a=e[i];if("string"==typeof a)o=a;else{if("number"!=typeof a&&"Number"!==h(a)&&"String"!==h(a))continue;o=y(a)}g(r,o)||(r[o]=!0,N(n,o))}return n}}(t),d=a&&function(e){for(var t=0,n=e.length;t<n;t++)if(C(U,e[t]))return H;return""}(a),f=[],b=[],w=[],S=!1,E=!0,P=X(e,function(e,t){if(e=_(e),a){if(e===W)return M(b),void(r=M(w));if(E)E=!1;else if(this!==r&&!s(this)&&!m(a,e))return}else o&&(t=i(o,this,e,t));if(Y(t))return x?t:(S=!0,$+(N(f,t.rawJSON)-1));if(a&&function(e){if(!u(e)||l(e)||s(e))return!1;try{var t;return t=h(e),!("Number"===t&&Q(p,e)||"String"===t&&Q(O,e)||"Boolean"===t&&Q(j,e)||T&&"BigInt"===t&&Q(T,e))}catch(e){return!0}}(t)){if(m(b,t))throw new k("Converting circular structure to JSON");var n=function(e,t,n){for(var r=c(null),i=0,o=t.length;i<o;i++){var a=t[i];r[n+a]=ee(e,a)}return r[W]=null,r}(t,a,d);return N(b,t),N(w,r),r=n,d&&(S=!0),n}return t},n);if("string"!=typeof P||(G&&(P=A(P,z,J)),!S))return P;for(var D="",F=P.length,B=0;B<F;B++){var K=I(P,B);if('"'===K){var Z=v(P,++B).end-1,et=R(P,B,Z);R(et,0,V)===$?D+=f[R(et,V)]:R(et,0,q)===H?D+='"'+R(et,q)+'"':D+='"'+et+'"',B=Z}else D+=K}return D}})}),nH=i.cw(function(e,t){ea()("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},eo())}),nW=i.cw(function(e,t){nH()}),nV=i.cw(function(e,t){var n=eI(),r=te(),i=ev(),o=eq(),a=tD(),s=eU(),l=e6(),u=eK(),c=eJ(),d=tO(),f=tn(),h=no(),p=eP(),m=tk().f,g=tx().f,y=tw().f,v=t7(),b=t4().Bq,w="Number",x=o[w],_=a[w],k=x.prototype,S=o.TypeError,E=s("".slice),O=s("".charCodeAt),j=l(w,!x(" 0o1")||!x("0b1")||x("+0x1")),T=function(e){var t,n,r=arguments.length<1?0:x("bigint"==typeof(t=h(e,"number"))?t:function(e){var t,n,r,i,o,a,s,l,u=h(e,"number");if(f(u))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2){if(43===(t=O(u=b(u),0))||45===t){if(88===(n=O(u,2))||120===n)return NaN}else if(48===t){switch(O(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=E(u,2)).length,s=0;s<a;s++)if((l=O(o,s))<48||l>i)return NaN;return parseInt(o,r)}}return+u}(t));return d(k,n=this)&&p(function(){v(n)})?c(Object(r),this,T):r};T.prototype=k,j&&!r&&(k.constructor=T),n({global:!0,constructor:!0,wrap:!0,forced:j},{Number:T});var C=function(e,t){for(var n,r=i?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>
58o;o++)u(t,n=r[o])&&!u(e,n)&&y(e,n,g(t,n))};r&&_&&C(a[w],_),(j||r)&&C(a[w],x)}),nq=i.cw(function(e,t){var n=eI(),r=ty();n({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})}),nK=i.cw(function(e,t){eI()({target:"Object",stat:!0,sham:!ev()},{create:tv()})}),nZ=i.cw(function(e,t){var n=eI(),r=ev(),i=tb().f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!r},{defineProperties:i})}),nG=i.cw(function(e,t){var n=eI(),r=ev(),i=tw().f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!r},{defineProperty:i})}),nY=i.cw(function(e,t){var n=eI(),r=tP().j;n({target:"Object",stat:!0},{entries:function(e){return r(e)}})}),nX=i.cw(function(e,t){var n=eI(),r=eP(),i=nt(),o=tx().f,a=ev();n({target:"Object",stat:!0,forced:!a||r(function(){o(1)}),sham:!a},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})}),nJ=i.cw(function(e,t){var n=eI(),r=ev(),i=tN(),o=nt(),a=tx(),s=ef();n({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),l=a.f,u=i(r),c={},d=0;u.length>d;)void 0!==(n=l(r,t=u[d++]))&&s(c,t,n);return c}})}),nQ=i.cw(function(e,t){var n=eI(),r=t5(),i=eP(),o=rk(),a=ni();n({target:"Object",stat:!0,forced:!r||i(function(){o.f(1)})},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(a(e)):[]}})}),n0=i.cw(function(e,t){var n=eI(),r=eP(),i=ni(),o=tS(),a=el();n({target:"Object",stat:!0,forced:r(function(){o(1)}),sham:!a},{getPrototypeOf:function(e){return o(i(e))}})}),n1=i.cw(function(e,t){var n=eI(),r=ni(),i=tT();n({target:"Object",stat:!0,forced:eP()(function(){i(1)})},{keys:function(e){return i(r(e))}})}),n2=i.cw(function(e,t){eI()({target:"Object",stat:!0},{setPrototypeOf:tI()})}),n3=i.cw(function(e,t){var n=ns(),r=em(),i=tA();n||r(Object.prototype,"toString",i,{unsafe:!0})}),n4=i.cw(function(e,t){var n=eI(),r=eL(),o=z(),a=tg(),s=i(103),l=tr();n({target:"Promise",stat:!0,forced:tB()},{all:function(e){var t=this,n=a.f(t),i=n.resolve,u=n.reject,c=s(function(){var n=o(t.resolve),a=[],s=0,c=1;l(e,function(e){var o=s++,l=!1;c++,r(n,t,e).then(function(e){l||(l=!0,a[o]=e,--c||i(a))},u)}),--c||i(a)});return c.error&&u(c.value),n.promise}})}),n5=i.cw(function(e,t){var n=eI(),r=te(),i=tL().CONSTRUCTOR,o=tz(),a=e$(),s=e4(),l=em(),u=o&&o.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&s(o)){var c=a("Promise").prototype.catch;u.catch!==c&&l(u,"catch",c,{unsafe:!0})}}),n6=i.cw(function(e,t){var n,r,o,a,s=eI(),l=te(),u=eE(),c=eq(),d=tD(),f=eL(),h=em(),p=tI(),m=tJ(),g=tX(),y=z(),v=e4(),b=e9(),w=$(),x=t2(),_=t9().h,k=tp(),S=i(757),E=i(103),O=tU(),j=e1(),T=tz(),C=tL(),I=tg(),P="Promise",A=C.CONSTRUCTOR,R=C.REJECTION_EVENT,N=C.SUBCLASSING,M=j.getterFor(P),D=j.set,F=T&&T.prototype,B=T,U=F,H=c.TypeError,W=c.document,V=c.process,q=I.f,K=q,Z=!!(W&&W.createEvent&&c.dispatchEvent),G="unhandledrejection",Y=function(e){var t;return!(!b(e)||!v(t=e.then))&&t},X=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&en(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?u(new H("Promise-chain cycle")):(r=Y(n))?f(r,n,l,u):l(n)):u(o)}catch(e){c&&!i&&c.exit(),u(e)}},J=function(e,t){e.notified||(e.notified=!0,k(function(){for(var n,r=e.reactions;n=r.get();)X(n,e);e.notified=!1,t&&!e.rejection&&ee(e)}))},Q=function(e,t,n){var r,i;Z?((r=W.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!R&&(i=c["on"+e])?i(r):e===G&&S("Unhandled promise rejection",n)},ee=function(e){f(_,c,function(){var t,n=e.facade,r=e.value;if(et(e)&&(t=E(function(){u?V.emit("unhandledRejection",r,n):Q(G,n,r)}),e.rejection=u||et(e)?2:1,t.error))throw t.value})},et=function(e){return 1!==e.rejection&&!e.parent},en=function(e){f(_,c,function(){var t=e.facade;u?V.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)})},er=function(e,t,n){return function(r){e(t,r,n)}},ei=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,J(e,!0))},eo=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);
58try{if(e.facade===t)throw new H("Promise can't be resolved itself");var r=Y(t);r?k(function(){var n={done:!1};try{f(r,t,er(eo,n,e),er(ei,n,e))}catch(t){ei(n,t,e)}}):(e.value=t,e.state=1,J(e,!1))}catch(t){ei({done:!1},t,e)}}};if(A&&(U=(B=function(e){w(this,U),y(e),f(n,this);var t=M(this);try{e(er(eo,t),er(ei,t))}catch(e){ei(t,e)}}).prototype,(n=function(e){D(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=h(U,"then",function(e,t){var n=M(this),r=q(x(this,B));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=u?V.domain:void 0,0===n.state?n.reactions.add(r):k(function(){X(r,n)}),r.promise}),r=function(){var e=new n,t=M(e);this.promise=e,this.resolve=er(eo,t),this.reject=er(ei,t)},I.f=q=function(e){return e===B||e===o?new r(e):K(e)},!l&&v(T)&&F!==Object.prototype)){a=F.then,N||h(F,"then",function(e,t){var n=this;return new B(function(e,t){f(a,n,e,t)}).then(e,t)},{unsafe:!0});try{delete F.constructor}catch(e){}p&&p(F,U)}s({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:B}),o=d.Promise,m(B,P,!1,!0),g(P)}),n8=i.cw(function(e,t){n6(),n4(),n5(),n9(),n7(),re()}),n9=i.cw(function(e,t){var n=eI(),r=eL(),o=z(),a=tg(),s=i(103),l=tr();n({target:"Promise",stat:!0,forced:tB()},{race:function(e){var t=this,n=a.f(t),i=n.reject,u=s(function(){var a=o(t.resolve);l(e,function(e){r(a,t,e).then(n.resolve,i)})});return u.error&&i(u.value),n.promise}})}),n7=i.cw(function(e,t){var n=eI(),r=tg();n({target:"Promise",stat:!0,forced:tL().CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})}),re=i.cw(function(e,t){var n=eI(),r=e$(),i=te(),o=tz(),a=tL().CONSTRUCTOR,s=tF(),l=r("Promise"),u=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return s(u&&this===l?o:this,e)}})}),rt=i.cw(function(e,t){var n=eI(),r=e$(),i=eR(),o=eD(),a=F(),s=H(),l=e9(),u=tv(),c=eP(),d=r("Reflect","construct"),f=Object.prototype,h=[].push,p=c(function(){function e(){}return!(d(function(){},[],e)instanceof e)}),m=!c(function(){d(function(){})}),g=p||m;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){a(e);var n=arguments.length<3?e:a(arguments[2]);if(s(t),m&&!p)return d(e,t,n);if(e===n){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])}var r=[null];return i(h,r,t),new(i(o,e,r))}var c=n.prototype,g=u(l(c)?c:f),y=i(e,g,t);return l(y)?y:g}})}),rn=i.cw(function(e,t){var n=eI(),r=t$();n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})}),rr=i.cw(function(e,t){rn();var n,r,i=eI(),o=eL(),a=e4(),s=H(),l=nl(),u=(n=!1,(r=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===r.test("abc")&&n),c=/./.test;i({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=s(this),n=l(e),r=t.exec;if(!a(r))return o(c,t,n);var i=o(r,t,n);return null!==i&&(s(i),!0)}})}),ri=i.cw(function(e,t){var n=ez().PROPER,r=em(),i=H(),o=nl(),a=eP(),s=tV(),l="toString",u=RegExp.prototype,c=u[l],d=a(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),f=n&&c.name!==l;(d||f)&&r(u,l,function(){var e=i(this);return"/"+o(e.source)+"/"+o(s(e))},{unsafe:!0})}),ro=i.cw(function(e,t){var n=t3().o,r=nl(),i=e1(),o=tl(),a=eu(),s="String Iterator",l=i.set,u=i.getterFor(s);o(String,"String",function(e){l(this,{type:s,string:r(e),index:0})},function(){var e,t=u(this),r=t.string,i=t.index;return i>=r.length?a(void 0,!0):(e=n(r,i),t.index+=e.length,a(e,!1))})}),ra=i.cw(function(e,t){nm()("asyncIterator")}),rs=i.cw(function(e,t){var n=eI(),r=eq(),i=eL(),o=eU(),a=te(),s=ev(),l=t5(),u=eP(),c=eK(),d=tO(),f=H(),h=nt(),p=na(),m=nl(),g=ed(),y=tv(),v=tT(),b=tk(),w=t_(),x=rk(),_=tx(),k=tw(),S=tb(),E=tC(),O=em(),j=ep(),T=t1(),C=tQ(),I=eZ(),P=nc(),A=ny(),R=ng(),N=nm(),M=t6(),D=tJ(),z=e1(),F=Z().jJ,B=C("hidden"),U="Symbol",$="prototype",W=z.set,V=z.getterFor(U),q=Object[$],K=r.Symbol,G=K&&K[$],Y=r.RangeError,X=r.TypeError,J=r.QObject,Q=_.f,ee=k.f,et=w.f,en=E.f,er=o([].push),ei=T("symbols"),eo=T("op-symbols"),ea=T("wks"),es=!J||!J[$]||!J[$].findChild,el=function(e,t,n){var r=Q(q,t);return r&&delete q[t],ee(e,t,n),r&&e!==q&&ee(q,t,r),e},eu=s&&u(function(){return 7!==y(ee({},"a",{get:function(){return ee(this,"a",{value:7}).a}})).a}
58)?el:ee,ec=function(e,t){var n=ei[e]=y(G);return W(n,{type:U,tag:e,description:t}),s||(n.description=t),n},ef=function(e,t,n){e===q&&ef(eo,t,n),f(e);var r=p(t);return f(n),c(ei,r)?(("enumerable"in n?!n.enumerable:!c(e,r)||c(e,B)&&e[B][r])?(c(e,B)||ee(e,B,g(1,y(null))),e[B][r]=!0):(c(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:g(0,!1)})),eu(e,r,n)):ee(e,r,n)},eh=function(e,t){f(e);var n=h(t);return F(v(n).concat(ew(n)),function(t){s&&!i(eg,n,t)||ef(e,t,n[t])}),e},eg=function(e){var t=p(e),n=i(en,this,t);return!(this===q&&c(ei,t)&&!c(eo,t))&&(!(n||!c(this,t)||!c(ei,t)||c(this,B)&&this[B][t])||n)},ey=function(e,t){var n=h(e),r=p(t);if(n!==q||!c(ei,r)||c(eo,r)){var i=Q(n,r);return!i||!c(ei,r)||c(n,B)&&n[B][r]||(i.enumerable=!0),i}},eb=function(e){var t=et(h(e)),n=[];return F(t,function(e){c(ei,e)||c(I,e)||er(n,e)}),n},ew=function(e){var t=e===q,n=et(t?eo:h(e)),r=[];return F(n,function(e){c(ei,e)&&(!t||c(q,e))&&er(r,ei[e])}),r};l||(O(G=(K=function(){if(d(G,this))throw new X("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=P(e),n=function(e){var o=void 0===this?r:this;o===q&&i(n,eo,e),c(o,B)&&c(o[B],t)&&(o[B][t]=!1);var a=g(1,e);try{eu(o,t,a)}catch(e){if(!(e instanceof Y))throw e;el(o,t,a)}};return s&&es&&eu(q,t,{configurable:!0,set:n}),ec(t,e)})[$],"toString",function(){return V(this).tag}),O(K,"withoutSetter",function(e){return ec(P(e),e)}),E.f=eg,k.f=ef,S.f=eh,_.f=ey,b.f=w.f=eb,x.f=ew,R.f=function(e){return ec(A(e),e)},s&&(j(G,"description",{configurable:!0,get:function(){return V(this).description}}),a||O(q,"propertyIsEnumerable",eg,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:K}),F(v(ea),function(e){N(e)}),n({target:U,stat:!0,forced:!l},{useSetter:function(){es=!0},useSimple:function(){es=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?y(e):eh(y(e),t)},defineProperty:ef,defineProperties:eh,getOwnPropertyDescriptor:ey}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:eb}),M(),D(K,U),I[B]=!0}),rl=i.cw(function(e,t){var n=eI(),r=ev(),i=eq(),o=eL(),a=eU(),s=eK(),l=e4(),u=tO(),c=nl(),d=ep(),f=es(),h=i.Symbol,p=h&&h.prototype;if(r&&l(h)&&(!("description"in p)||void 0!==h().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};f(g,h);var y=g.for;g.for=({for:function(e){var t=c(e),n=o(y,this,t);return""===t&&(m[n]=!0),n}}).for,g.prototype=p,p.constructor=g;var v="Symbol(description detection)"===String(h("description detection")),b=a(p.valueOf),w=a(p.toString),x=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),k=a("".slice);d(p,"description",{configurable:!0,get:function(){var e=b(this);if(s(m,e))return"";var t=w(e),n=v?k(t,7,-1):_(t,x,"$1");return""===n?void 0:n}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}}),ru=i.cw(function(e,t){var n=eI(),r=e$(),i=eK(),o=nl(),a=t1(),s=t8(),l=a("str
58ing-to-symbol-registry"),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{for:function(e){var t=o(e);if(i(l,t))return l[t];var n=r("Symbol")(t);return l[t]=n,u[n]=t,n}})}),rc=i.cw(function(e,t){nm()("iterator")}),rd=i.cw(function(e,t){rs(),ru(),rf(),n$(),nQ()}),rf=i.cw(function(e,t){var n=eI(),r=eK(),i=tn(),o=nu(),a=t1(),s=t8(),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(r(l,e))return l[e]}})}),rh=i.cw(function(e,t){var n=nm(),r=t6();n("toPrimitive"),r()}),rp=i.cw(function(e,t){nD()}),rm=i.cw(function(e,t){nL()}),rg=i.cw(function(e,t){nz()}),ry=i.cw(function(e,t){nF()}),rv=i.cw(function(e,t){nB()}),rb=i.cw(function(e,t){nU()}),rw=i.cw(function(e,t){var n=eq(),r=rS(),i=ex(),o=V(),a=ec(),s=function(e){if(e&&e.forEach!==o)try{a(e,"forEach",o)}catch(t){e.forEach=o}};for(var l in r)r[l]&&s(n[l]&&n[l].prototype);s(i)}),rx=i.cw(function(e,t){var n=eq(),r=rS(),i=ex(),o=nO(),a=ec(),s=tJ(),l=ny()("iterator"),u=o.values,c=function(e,t){if(e){if(e[l]!==u)try{a(e,l,u)}catch(t){e[l]=u}if(s(e,t,!0),r[t]){for(var n in o)if(e[n]!==o[n])try{a(e,n,o[n])}catch(t){e[n]=o[n]}}}};for(var d in r)c(n[d]&&n[d].prototype,d);c(i,"DOMTokenList")}),r_={};function rk(){return rk.c||(rk.c=i.t(i(717),2))}function rS(){return rS.c||(rS.c=i.t(i(400),2))}i.r(r_),i.d(r_,{hasBrowserEnv:()=>iV,hasStandardBrowserEnv:()=>iK,hasStandardBrowserWebWorkerEnv:()=>iZ,navigator:()=>iq,origin:()=>iG}),n$(),rd(),rl(),rc(),nx(),n_(),nS(),nO(),nN(),nK(),nZ(),nX(),nJ(),n0(),n1(),n2(),n3(),n8(),rt(),ro(),rp(),rg(),ry(),rw(),rx(),rh(),nA(),nV(),nq(),nG();var rE=i(543),rO=i.n(rE);function rj(e,t){return function(){return e.apply(t,arguments)}}let{toString:rT}=Object.prototype,{getPrototypeOf:rC}=Object,{iterator:rI,toStringTag:rP}=Symbol,rA=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rR=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),rN=(e,t,n)=>e===Object.prototype||!n&&null===t,rM=(e,t)=>{let n=e,r=[];for(;null!=n&&-1===r.indexOf(n);){r.push(n);let i=rC(n);if(rN(n,i,n===e))break;if(rA(n,t))return!0;n=i}return!1},rD=(P=Object.create(null),e=>{let t=rT.call(e);return P[t]||(P[t]=t.slice(8,-1).toLowerCase())}),rL=e=>(e=e.toLowerCase(),t=>rD(t)===e),rz=e=>t=>typeof t===e,{isArray:rF}=Array,rB=rz("undefined");function rU(e){return null!==e&&!rB(e)&&null!==e.constructor&&!rB(e.constructor)&&rW(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let r$=rL("ArrayBuffer"),rH=rz("string"),rW=rz("function"),rV=rz("number"),rq=e=>null!==e&&"object"==typeof e,rK=e=>{if(!rq(e))return!1;let t=rC(e);return!(null!==t&&t!==Object.prototype&&null!==rC(t)||rM(e,rP)||rM(e,rI))},rZ=rL("Date"),rG=rL("File"),rY=rL("Blob"),rX=rL("FileList"),rJ=rL("Set"),rQ="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:void 0!==i.g?i.g:{},r0=void 0!==rQ.FormData?rQ.FormData:void 0,r1=rL("URLSearchParams"),[r2,r3,r4,r5]=["ReadableStream","Request","Response","Headers"].map(rL);function r6(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e)if("object"!=typeof e&&(e=[e]),rF(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;if(rU(e))return;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function r8(e,t){if(rU(e))return null;t=t.toLowerCase();let n=Object.keys(e),r,i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let r9="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:i.g,r7=e=>!rB(e)&&e!==r9,ie=(A="u">typeof Uint8Array&&rC(Uint8Array),e=>A&&e instanceof A),it=rL("HTMLFormElement"),{propertyIsEnumerable:ir}=Object.prototype,ii=rL("RegExp"),io=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};r6(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},ia=rL("AsyncFunction"),is=(R="function"==typeof setImmediate,N=rW(r9.postMessage),R?setImmediate:N?(M=`axios@${Math.random()}`,D=[],r9.addEventListener("message",({source:e,data:t})=>{e===r9&&t===M&&D.length&&D.shift()()},!1),e=>{D.push(e),r9.postMessage(M,"*")}):e=>setTimeout(e)),il="u">typeof queueMicrotask?queueMicrotask.bind(r9):is,iu=e=>null!=e&&rW(e[rI]),ic={isArray:rF,isArrayBuffer:r$,isBuffer:rU,isFormData:e=>{if(!e)return!1;if(r0&&e instanceof r0)return!0;let t=rC(e);if(!t||t===Object.prototype||!rW(e.append))return!1;let n=rD(e);return"formdata"===n||"object"===n&&rW(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&r$(e.buffer)},isString:rH,isNumber:rV,isBoolean:e=>!0===e||!1===e,isObject:rq,isPlainObject:rK,isEmptyObject:e=>{if(!rq(e)||rU(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:r2,isRequest:r3,isResponse:r4,isHeaders:r5,isUndefined:rB,isDate:rZ,isFile:rG,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:rY,isRegExp:ii,isFunction:rW,isStream:e=>rq(e)&&rW(e.pipe),isURLSearchParams:r1,isTypedArray:ie,isFileList:rX,forEac
58h:r6,merge:function e(...t){let{caseless:n,skipUndefined:r}=r7(this)&&this||{},i={},o=(t,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let a=n&&"string"==typeof o&&r8(i,o)||o,s=rA(i,a)?i[a]:void 0;rK(s)&&rK(t)?i[a]=e(s,t):rK(t)?i[a]=e({},t):rF(t)?i[a]=t.slice():r&&rB(t)||(i[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||rU(n)||(r6(n,o),"object"!=typeof n||rF(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];ir.call(n,t)&&o(n[t],t)}}return i},extend:(e,t,n,{allOwnKeys:r}={})=>(r6(t,(t,r)=>{n&&rW(t)?Object.defineProperty(e,r,{__proto__:null,value:rj(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{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),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&rC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype)return t},kindOf:rD,kindOfTest:rL,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(rF(e))return e;let t=e.length;if(!rV(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,r=(e&&e[rI]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n,r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:it,hasOwnProperty:rA,hasOwnProp:rA,hasOwnInPrototypeChain:rM,getSafeProp:(e,t)=>null!=e&&rM(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=rC(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(rR(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),r=Object.create(null),i=[],o=e;for(;null!=o&&-1===i.indexOf(o);){i.push(o);let a=o===e?t:rC(o);if(rN(o,a,o===e))break;let s=Object.getOwnPropertyNames(o);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(o)),s))rR(t)||rA(r,t)||(n[t]=e[t],r[t]=!0);o=a}return n},reduceDescriptors:io,freezeMethods:e=>{io(e,(t,n)=>{if(rW(e)&&["arguments","caller","callee"].includes(n))return!1;rW(e[n])&&(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)=>{let n={};return(rF(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),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*=1)?e:t,findKey:r8,global:r9,isContextDefined:r7,isSpecCompliantForm:function(e){return!!(e&&rW(e.append)&&"FormData"===e[rP]&&e[rI])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(rq(e)){if(t.has(e))return;if(rU(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),rJ(e))for(let t of(r=[],e)){let e=n(t);rB(e)||r.push(e)}else r=rF(e)?[]:{},r6(e,(e,t)=>{let i=n(e);rB(i)||(r[t]=i)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:ia,isThenable:e=>e&&(rq(e)||rW(e))&&rW(e.then)&&rW(e.catch),setImmediate:is,asap:il,isIterable:iu,isSafeIterable:e=>null!=e&&rM(e,rI)&&iu(e)},id=ic.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"]),ih=RegExp("[\\u0000-\\u
580008\\u000a-\\u001f\\u007f]+","g"),ip=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function im(e,t){return ic.isArray(e)?e.map(e=>im(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ig(e){let t=Object.create(null);return ic.forEach(e.toJSON(),(e,n)=>{t[n]=im(e,ip)}),t}let iy=Symbol("internals");function iv(e){return e&&String(e).trim().toLowerCase()}function ib(e){return!1===e||null==e?e:ic.isArray(e)?e.map(ib):im(String(e),ih)}let iw=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ix(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function i_(e,t,n,r,i){return ic.isFunction(r)?r.call(this,t,n):(i&&(t=n),ic.isString(t)?ic.isString(r)?-1!==t.indexOf(r):ic.isRegExp(r)?r.test(t):void 0:void 0)}class ik{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=iv(t);if(!i)return;let o=ic.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=ib(e))}let o=(e,t)=>ic.forEach(e,(e,n)=>i(e,n,t));if(ic.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ic.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())){var a;let n,r,i,s;o((s={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let t=ic.hasOwnProp(s,n);!n||t&&ic.hasOwnProp(id,n)||("set-cookie"===n?t?s[n].push(r):s[n]=[r]:s[n]=t?s[n]+", "+r:r)}),s),t)}else if(ic.isObject(e)&&ic.isSafeIterable(e)){let n,r,i=Object.create(null);for(let t of e){if(!ic.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],ic.hasOwnProp(i,r)?(n=i[r],i[r]=ic.isArray(n)?[...n,t[1]]:[n,t[1]]):i[r]=t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=iv(e)){let n=ic.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
58for(;t=r.exec(e);)n[t[1]]=t[2];return n}if(ic.isFunction(t))return t.call(this,e,n);if(ic.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=iv(e)){let n=ic.findKey(this,e);return!(!n||void 0===this[n]||t&&!i_(0,this[n],n,t))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=iv(e)){let i=ic.findKey(n,e);i&&(!t||i_(0,n[i],i,t))&&(delete n[i],r=!0)}}return ic.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];e&&!i_(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return ic.forEach(this,(r,i)=>{let o=ic.findKey(n,i);if(o)return t[o]=ib(r),void delete t[i];let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=ib(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ic.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ic.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")}getSetCookie(){let e=this.get("set-cookie");return ic.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),r=0,i=!1,o=!1;function a(e){let i=ix(n.slice(r,e)),o=i.indexOf("=");if(o<1)return;let a=ix(i.slice(0,o));if(!iw.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let l=ix(i.slice(o+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(34===i||92===i&&(r+=1)>=t)return e;n+=e[r]}return n}(l)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?o?o=!1:92===t?o=!0:34===t&&(i=!1):34===t?i=!0:44!==t&&59!==t||(a(e),r=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[iy]=this[iy]={accessors:{}}).accessors,n=this.prototype;function r(e){let r,i=iv(e);t[i]||(r=ic.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{__proto__:null,value:function(n,r,i){return this[t].call(this,e,n,r,i)},configurable:!0})}),t[i]=!0)}return ic.isArray(e)?e.forEach(r):r(e),this}}ik.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ic.reduceDescriptors(ik.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ic.freezeMethods(ik);let iS="[REDACTED ****]";function iE(e){try{return String(e)}catch(e){return""}}class iO extends Error{static from(e,t,n,r,i,o){let a=e.message;!a&&ic.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?iE(e.message):iE(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new iO(a,t||e.code,n,r,i);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e,t,n,r=this.config,i=r&&ic.hasOwnProp(r,"redact")?r.redact:void 0,o=ic.isArray(i)&&i.length>0?(e=new Set(i.map(e=>String(e).toLowerCase())),t=[],(n=r=>{let i;if(null===r||"object"!=typeof r||ic.isBuffer(r))return r;if(-1===t.indexOf(r)){if(r instanceof ik&&(r=r.toJSON()),t.push(r),ic.isArray(r))i=[],r.forEach((e,t)=>{let r=n(e);ic.isUndefined(r)||(i[t]=r)});else{if(!ic.isPlainObject(r)&&function(e){if(ic.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ic.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(r))return t.pop(),r;for(let[t,o]of(i=Object.create(null),Object.entries(r))){let r=e.has(t.toLowerCase())?iS:n(o);ic.isUndefined(r)||(i[t]=r)}}return t.pop(),i}})(r)):ic.toJSONObject(r);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:o,code:this.code,status:this.status}}}
58iO.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",iO.ERR_BAD_OPTION="ERR_BAD_OPTION",iO.ECONNABORTED="ECONNABORTED",iO.ETIMEDOUT="ETIMEDOUT",iO.ECONNREFUSED="ECONNREFUSED",iO.ERR_NETWORK="ERR_NETWORK",iO.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",iO.ERR_DEPRECATED="ERR_DEPRECATED",iO.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",iO.ERR_BAD_REQUEST="ERR_BAD_REQUEST",iO.ERR_CANCELED="ERR_CANCELED",iO.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",iO.ERR_INVALID_URL="ERR_INVALID_URL",iO.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let ij=iO;function iT(e){return ic.isPlainObject(e)||ic.isArray(e)}function iC(e){return ic.endsWith(e,"[]")?e.slice(0,-2):e}function iI(e,t,n){return e?e.concat(t).map(function(e,t){return e=iC(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let iP=ic.toFlatObject(ic,{},null,function(e){return/^is[A-Z]/.test(e)}),iA=function(e,t,n){if(!ic.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(e,t)=>{let r=ic.getSafeProp(n,e);return ic.isUndefined(r)?t:r},i=r("metaTokens",!0),o=r("visitor")||p,a=r("dots",!1),s=r("indexes",!1),l=r("Blob")||"u">typeof Blob&&Blob,u=r("maxDepth",100),c=l&&ic.isSpecCompliantForm(t),d=[];if(!ic.isFunction(o))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(ic.isDate(e))return e.toISOString();if(ic.isBoolean(e))return e.toString();if(!c&&ic.isBlob(e))throw new ij("Blob is not supported. Use a Buffer instead.");if(ic.isArrayBuffer(e)||ic.isTypedArray(e)){if(c&&"function"==typeof l)return new l([e]);throw new ij("Blob is not supported. Use a Buffer instead.",ij.ERR_NOT_SUPPORT)}return e}function h(e){if(e>u)throw new ij("Object is too deeply nested ("+e+" levels). Max depth: "+u,ij.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,r){let o=e;if(ic.isReactNative(t)&&ic.isReactNativeBlob(e))return t.append(iI(r,n,a),f(e)),!1;if(e&&!r&&"object"==typeof e)if(ic.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(u===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!ic.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),h(1+t.length-1),n})}(e);else{var l;if(ic.isArray(e)&&(l=e,ic.isArray(l)&&!l.some(iT))||(ic.isFileList(e)||ic.endsWith(n,"[]"))&&(o=ic.toArray(e)))return n=iC(n),o.forEach(function(e,r){ic.isUndefined(e)||null===e||t.append(!0===s?iI([n],r,a):null===s?n:n+"[]",f(e))}),!1}return!!iT(e)||(t.append(iI(r,n,a),f(e)),!1)}let m=Object.assign(iP,{defaultVisitor:p,convertValue:f,isVisitable:iT});if(!ic.isObject(e))throw TypeError("data must be an object");return function e(n,r,i=0){if(!ic.isUndefined(n)){if(h(i),-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),ic.forEach(n,function(n,a){!0===(!(ic.isUndefined(n)||null===n)&&o.call(t,n,ic.isString(a)?a.trim():a,r,m))&&e(n,r?r.concat(a):[a],i+1)}),d.pop()}}(e),t};function iR(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function iN(e,t){this._pairs=[],e&&iA(e,this,t)}let iM=iN.prototype;function iD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function iL(e,t,n){let r;if(!t)return e;e=e||"";let i=ic.isFunction(n)?{serialize:n}:n,o=ic.getSafeProp(i,"encode")||iD,a=ic.getSafeProp(i,"serialize");if(r=a?a(t,i):ic.isURLSearchParams(t)?t.toString():new iN(t,i).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}iM.append=function(e,t){this._pairs.push([e,t])},iM.toString=function(e){let t=e?t=>e.call(this,t,iR):iR;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let iz=Symbol("internals");function iF(e){return e?e.length:0}function iB(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function iU(e,t){let n=e.handlers,r=iF(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}let i$=class{constructor(){this.handlers=[],this[iz]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},i=this[iz];null==this.handlers&&(this.handlers=[]),iU(this,i);let o=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(o,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,o}eject(e){let t=this[iz];iU(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(iB(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],iU(this,this[iz]))}forEach(e){let t=this[iz];iU(this,t),t.iterationDepth++;try{ic.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(iU(this,t),iB(this.handlers),t.handlersLength=iF(this.handlers))}}},iH={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0}
58,iW={isBrowser:!0,classes:{URLSearchParams:"u">typeof URLSearchParams?URLSearchParams:iN,FormData:"u">typeof FormData?FormData:null,Blob:"u">typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},iV="u">typeof window&&"u">typeof document,iq="object"==typeof navigator&&navigator||void 0,iK=iV&&(!iq||0>["ReactNative","NativeScript","NS"].indexOf(iq.product)),iZ="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,iG=iV&&window.location.href||"http://localhost",iY={...r_,...iW};function iX(e){if(e>100)throw new ij("FormData field is too deeply nested ("+e+" levels). Max depth: 100",ij.ERR_FORM_DATA_DEPTH_EXCEEDED)}let iJ=function(e){if(ic.isFormData(e)&&ic.isFunction(e.entries)){let t={};return ic.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){iX(i);let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return o=!o&&ic.isArray(r)?r.length:o,s?ic.hasOwnProp(r,o)?r[o]=ic.isArray(r[o])?r[o].concat(n):[r[o],n]:r[o]=n:(ic.hasOwnProp(r,o)&&ic.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&ic.isArray(r[o])&&(r[o]=function(e){let t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!a}(function(e){let t,n=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=r.exec(e));)iX(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},iQ=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),i0=(e,t)=>null!=e&&ic.hasOwnProp(e,t)?e[t]:void 0,i1={transitional:iH,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=ic.isObject(e);if(o&&ic.isHTMLForm(e)&&(e=new FormData(e)),ic.isFormData(e))return i?JSON.stringify(iJ(e)):e;if(ic.isArrayBuffer(e)||ic.isBuffer(e)||ic.isStream(e)||ic.isFile(e)||ic.isBlob(e)||ic.isReadableStream(e))return e;if(ic.isArrayBufferView(e))return e.buffer;if(ic.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();
58if(o){let t=i0(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return iA(e,new iY.classes.URLSearchParams,{visitor:function(e,t,n,r){return iY.isNode&&ic.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=ic.isFileList(e))||r.indexOf("multipart/form-data")>-1){let r=i0(this,"env"),i=r&&r.FormData;return iA(n?{"files[]":e}:e,i&&new i,t)}}return o||i?(t.setContentType("application/json",!1),function(e){if(ic.isString(e))try{return(0,JSON.parse)(e),ic.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=i0(this,"transitional")||i1.transitional,n=t&&t.forcedJSONParsing,r=i0(this,"responseType"),i="json"===r;if(ic.isResponse(e)||ic.isReadableStream(e))return e;if(e&&ic.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,i0(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw ij.from(e,ij.ERR_BAD_RESPONSE,this,null,i0(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iY.classes.FormData,Blob:iY.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function i2(e,t){let n=this||i1,r=t||n,i=ik.from(r.headers),o=r.data;return ic.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function i3(e){return!(!e||!e.__CANCEL__)}ic.forEach(iQ,e=>{i1.headers[e]={}});let i4=class extends ij{constructor(e,t,n){super(e??"canceled",ij.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function i5(e,t,n){let r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ij("Request failed with status code "+n.status,n.status>=400&&n.status<500?ij.ERR_BAD_REQUEST:ij.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}let i6=/[\t\n\r]/g;function i8(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(i6,"")}function i9(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let i7=(e,t,n=3)=>{var r,i,o;let a,s,l,u,c,d,f,h,p,m,g=0,y=(i=250,a=Array(r=r=50),s=Array(r),u=0,c=0,i=void 0!==i?i:1e3,function(e){let t=Date.now(),n=s[c];l||(l=t),a[u]=e,s[u]=t;let o=c,d=0;for(;o!==u;)d+=a[o++],o%=r;if((u=(u+1)%r)===c&&(c=(c+1)%r),t-l<i)return;let f=n&&t-n;return f?Math.round(1e3*d/f):void 0});return o=n=>{if(!n||!ic.isNumber(n.loaded))return;let r=n.loaded,i=n.lengthComputable?n.total:void 0,o=Math.max(0,null!=i?Math.min(r,i):r),a=Math.max(0,o-g),s=y(a);g=Math.max(g,o),e({loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:s||void 0,estimated:s&&i?(i-o)/s:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},h=0,p=1e3/n,m=(e,t=Date.now())=>{h=t,d=null,f&&(clearTimeout(f),f=null),o(...e)},[(...e)=>{let t=Date.now(),n=t-h;n>=p?m(e,t):(d=e,f||(f=setTimeout(()=>{f=null,m(d)},p-n)))},()=>d&&m(d),(...e)=>m(e)]},oe=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ot=(e,t=ic.asap)=>(...n)=>t(()=>e(...n)),on=iY.hasStandardBrowserEnv?(e=new URL(iY.origin),t=iY.navigator&&/(msie|trident)/i.test(iY.navigator.userAgent),n=>(n=new URL(n,iY.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port))):()=>!0,or=iY.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];ic.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ic.isString(r)&&s.push(`path=${r}`),ic.isString(i)&&s.push(`domain=${i}`),!0===o&&s.push("secure"),ic.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(-1!==i&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch(e){return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},oi=/^https?:(?!\/\/)/i;function oo(e,t){if("string"==typeof e){let r=i8(e);if(oi.test(r)){var n;let e,i,o;throw new ij(`Invalid URL ${JSON.stringify((o=(-1===(i=(e=r.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${iS}@`)).indexOf("#"))?e:e.slice(0,i)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${iS}`),-1===i?o:`${o}#${(n=e.slice(i+1))?n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${iS}`):n}`))}: missing "//" after protocol`,ij.ERR_INVALID_URL,t)}}}function oa(e,t,n,r){oo(t,r);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(i||!1===n)?(oo(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}let os=e=>e instanceof ik?{...e}:e;function ol(e,t){var n;e=e||{},t=t||{};let r=Object.create(null);function i(e,t,n,r){return ic.isPlainObject(e)&&ic.isPlainObject(t)?ic.merge.call({caseless:r}
58,e,t):ic.isPlainObject(t)?ic.merge({},t):ic.isArray(t)?t.slice():t}function o(e,t,n,r){return ic.isUndefined(t)?ic.isUndefined(e)?void 0:i(void 0,e,0,r):i(e,t,0,r)}function a(e,t){if(!ic.isUndefined(t))return i(void 0,t)}function s(e,t){return ic.isUndefined(t)?ic.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function l(n,r,o){return ic.hasOwnProp(t,o)?i(n,r):ic.hasOwnProp(e,o)?i(void 0,n):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage: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,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(e,t,n)=>o(os(e),os(t),0,!0)};return ic.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=ic.hasOwnProp(u,n)?u[n]:o,a=i(ic.hasOwnProp(e,n)?e[n]:void 0,ic.hasOwnProp(t,n)?t[n]:void 0,n);ic.isUndefined(a)&&i!==l||(r[n]=a)}),ic.hasOwnProp(t,"validateStatus")&&ic.isUndefined(t.validateStatus)&&!1===function(n){let r=ic.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ic.isUndefined(r)){if(!ic.isPlainObject(r))return;if(ic.hasOwnProp(r,n))return r[n]}let i=ic.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ic.isPlainObject(i)&&ic.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(ic.hasOwnProp(e,"validateStatus")?r.validateStatus=i(void 0,e.validateStatus):delete r.validateStatus),r}let ou=["content-type","content-length"],oc=function(e){let t=ol({},e),n=e=>ic.hasOwnProp(t,e)?t[e]:void 0,r=n("data"),i=n("withXSRFToken"),o=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");if(t.headers=s=ik.from(s),t.url=iL(oa(u,d,c,t),n("params"),n("paramsSerializer")),l){let t=ic.getSafeProp(l,"username")||"",n=ic.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw ij.from(t,ij.ERR_BAD_OPTION_VALUE,e)}}if(ic.isFormData(r)){var f,h;let e=ic.getSafeProp(r,"getHeaders");iY.hasStandardBrowserEnv||iY.hasStandardBrowserWebWorkerEnv||ic.isReactNative(r)?s.setContentType(void 0):ic.isFunction(e)&&(f=s,h=e.call(r),"content-only"===n("formDataHeaderPolicy")?Object.entries(h||{}).forEach(([e,t])=>{ou.includes(e.toLowerCase())&&f.set(e,t)}):f.set(h))}if(iY.hasStandardBrowserEnv&&(ic.isFunction(i)&&(i=i(t)),!0===i||null==i&&on(t.url))){let e=o&&a&&or.read(a);e&&s.set(o,e)}return t},od="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r=oc(e),i=r.data,o=ik.from(r.headers).normalize(),a,s,l,u,c,d,{responseType:f,onUploadProgress:h,onDownloadProgress:p}=r;function m(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function y(i){if(!g)return;if(!(0!==g.status||"file"===(i9(i8(r.url))||i9(iY.origin))||g.responseURL&&g.responseURL.startsWith("file:")))return n(new ij("Request aborted",ij.ECONNABORTED,e,g)),m(),void(g=null);try{i?d&&d(i):c&&c()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let o=ik.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());i5(function(e){t(e),m()},function(e){n(e),m()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:o,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(y)},g.onabort=function(){g&&(n(new ij("Request aborted",ij.ECONNABORTED,e,g)),m(),g=null)},g.onerror=function(t){let r=new ij(t&&t.message?t.message:"Network Error",ij.ERR_NETWORK,e,g);r.event=t||null,n(r),m(),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",i=r.transitional||iH;
58r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ij(t,i.clarifyTimeoutError?ij.ETIMEDOUT:ij.ECONNABORTED,e,g)),m(),g=null},void 0===i&&o.setContentType(null),"setRequestHeader"in g&&ic.forEach(ig(o),function(e,t){g.setRequestHeader(t,e)}),ic.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),f&&"json"!==f&&(g.responseType=r.responseType),p&&([l,c,d]=i7(p,!0),g.addEventListener("progress",l)),h&&g.upload&&([s,u]=i7(h),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new i4(null,e,g):t),g.abort(),m(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));let v=i9(r.url);v&&!iY.protocols.includes(v)?(n(new ij("Unsupported protocol "+v+":",ij.ERR_BAD_REQUEST,e)),m()):g.send(i||null)})},of=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},oh=(e,t,n,r)=>{let i=async function*(e,t){for await(let n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*of(n,t)}(e,t),o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},op=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,om=(e,t,n)=>t+2<n&&op(e.charCodeAt(t+1))&&op(e.charCodeAt(t+2)),og=e=>e<=57?e-48:(223&e)-55,oy=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,ov=e=>9===e||10===e||12===e||13===e||32===e,ob=e=>{var t;let n,r,i,o=e.length,a=0,s=0,l=!1;for(let t=0;t<o;t++){let n=e.charCodeAt(t);37===n&&om(e,t,o)&&(n=16*og(e.charCodeAt(t+1))+og(e.charCodeAt(t+2)),t+=2),ov(n)||(61!==n?!oy(n)||s>0?l=!0:a++:s++)}return l||s>2||s>0&&(a+s)%4!=0||a%4==1?(n=e.length,r=0,n>0&&61===e.charCodeAt(n-1)&&(r++,n>1&&61===e.charCodeAt(n-2)&&r++),Math.floor(3*(n-r)/4)):(i=(t=a)%4,3*Math.floor(t/4)+(2===i?1:2*(3===i)))},ow={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ox}=ic,o_=e=>{if(!ic.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ok=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},oS=e=>{var t;let n=void 0!==ic.global&&null!==ic.global?ic.global:globalThis,{ReadableStream:r,TextEncoder:i}=n,{fetch:o,Request:a,Response:s}=e=ic.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=o?ox(o):"function"==typeof fetch,u=ox(a),c=ox(s);if(!l)return!1;let d=l&&ox(r),f=l&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),h=u&&d&&ok(()=>{let e=!1,t=new a(iY.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),p=c&&d&&ok(()=>ic.isReadableStream(new s("").body)),m={stream:p&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{m[e]||(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ij(`Response type '${e}' is not supported`,ij.ERR_NOT_SUPPORT,n)})});let g=async e=>{if(null==e)return 0;if(ic.isBlob(e))return e.size;if(ic.isSpecCompliantForm(e)){let t=new a(iY.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ic.isArrayBufferView(e)||ic.isArrayBuffer(e)?e.byteLength:(ic.isURLSearchParams(e)&&(e+=""),ic.isString(e)?(await f(e)).byteLength:void 0)};return async e=>{var t,n,r,l;let{url:c,method:f,data:y,signal:v,cancelToken:b,timeout:w,onDownloadProgress:x,onUploadProgress:_,responseType:k,headers:S,withCredentials:E="same-origin",fetchOptions:O,maxContentLength:j,maxBodyLength:T,maxRedirects:C}=oc(e),I=ic.isNumber(j)&&j>-1,P=ic.isNumber(T)&&T>-1,A=o||fetch;k=k?(k+"").toLowerCase():"text";let R=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof ij?t:new i4(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new ij(`timeout of ${t}ms exceeded`,ij.ETIMEDOUT))},t),a=()=>
58{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{r||(e.aborted?i.call(e):e.addEventListener("abort",i,{once:!0}))});let{signal:s}=n;return s.unsubscribe=()=>ic.asap(a),s})([v,b&&b.toAbortSignal()],w),N=null,M=R&&R.unsubscribe&&(()=>{R.unsubscribe()}),D,z=null,F=()=>new ij("Request body larger than maxBodyLength limit",ij.ERR_BAD_REQUEST,e,N);try{let o,v,b,w=(n="auth",ic.hasOwnProp(e,n)?e[n]:void 0);if(w&&(o={username:ic.getSafeProp(w,"username")||"",password:ic.getSafeProp(w,"password")||""}),v=(r=c).indexOf("://"),b=r,-1!==v&&(b=b.slice(v+3)),b.includes("@")||b.includes(":")){let e=new URL(c,iY.origin);!o&&(e.username||e.password)&&(o={username:o_(e.username),password:o_(e.password)}),(e.username||e.password)&&(e.username="",e.password="",c=e.href)}if(o&&(S.delete("authorization"),S.set("Authorization","Basic "+btoa((t=(o.username||"")+":"+(o.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),I&&"string"==typeof c&&c.startsWith("data:")){let t;if(l=c,t="string"==typeof l?l.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let o=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&om(i,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o})(-1===t?l:l.slice(0,t),ob)>j)throw new ij("maxContentLength size of "+j+" exceeded",ij.ERR_BAD_RESPONSE,e,N)}if(P&&"get"!==f&&"head"!==f){let e=await g(y);if("number"==typeof e&&isFinite(e)&&(D=e,e>T))throw F()}let B=P&&(ic.isReadableStream(y)||ic.isStream(y)),U=(e,t,n)=>oh(e,65536,e=>{if(P&&e>T)throw z=F();t&&t(e)},n);if(h&&"get"!==f&&"head"!==f&&(_||B)){if(D=D??await (async(e,t)=>ic.toFiniteNumber(e.getContentLength())??g(t))(S,y),0!==D||B){let e,t=new a(c,{method:"POST",body:y,duplex:"half"});if(ic.isFormData(y)&&(e=t.headers.get("content-type"))&&S.setContentType(e),t.body){let[e,n]=_&&oe(D,i7(ot(_)))||[];y=U(t.body,e,n)}}}else if(B&&!u&&d&&"get"!==f&&"head"!==f)y=U(y);else if(B&&u&&!h&&"get"!==f&&"head"!==f)throw new ij("Stream request bodies are not supported by the current fetch implementation",ij.ERR_NOT_SUPPORT,e,N);ic.isString(E)||(E=E?"include":"omit");let $=u&&"credentials"in a.prototype;if(ic.isFormData(y)){let e=S.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&S.delete("content-type")}S.set("User-Agent","axios/1.20.0",!1);let H=null==O?O:Object.assign(Object.create(null),O);H&&(delete H.body,delete H.headers,delete H.method,delete H.signal,delete H.duplex,delete H.credentials);let W=Object.assign(Object.create(null),H,{signal:R,method:f.toUpperCase(),headers:ig(S.normalize()),body:y,duplex:"half",credentials:$?E:void 0});u&&(ic.forEach(ow,(e,t)=>{void 0===W[t]&&(W[t]=e)}),void 0===W.signal&&(W.signal=null),void 0===W.body&&(W.body=null)),0===C&&(W.redirect="manual",H&&(H.redirect="manual")),N=u&&new a(c,W);let V=await (u?A(N,H):A(c,W)),q=ik.from(V.headers);if(I){let t=ic.toFiniteNumber(q.getContentLength());if(null!=t&&t>j)throw new ij("maxContentLength size of "+j+" exceeded",ij.ERR_BAD_RESPONSE,e,N)}let K=p&&("stream"===k||"response"===k);if(p&&V.body&&(x||I||K&&M)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=V[e]});let n=ic.toFiniteNumber(q.getContentLength()),[r,i]=x&&oe(n,i7(ot(x),!0))||[];V=new s(oh(V.body,65536,t=>{if(I&&t>j)throw new ij("maxContentLength size of "+j+" exceeded",ij.ERR_BAD_RESPONSE,e,N);r&&r(t)},()=>{i&&i(),M&&M()}),t)}k=k||"text";let Z=await m[ic.findKey(m,k)||"text"](V,e);if(I&&!p&&!K){let t;if(null!=Z&&("number"==typeof Z.byteLength?t=Z.byteLength:"number"==typeof Z.size?t=Z.size:"string"==typeof Z&&(t="function"==typeof i?(new i).encode(Z).byteLength:Z.length)),"number"==typeof t&&t>j)throw new ij("maxContentLength size of "+j+" exceeded",ij.ERR_BAD_RESPONSE,e,N)}return!K&&M&&M(),await new Promise((t,n)=>
58{i5(t,n,{data:Z,headers:ik.from(V.headers),status:V.status,statusText:V.statusText,config:e,request:N})})}catch(t){if(M&&M(),R&&R.aborted&&R.reason instanceof ij){let n=R.reason;throw n.config=e,N&&(n.request=N),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(z)throw N&&!z.request&&(z.request=N),z;if(t instanceof ij)throw N&&!t.request&&(t.request=N),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new ij("Network Error",ij.ERR_NETWORK,e,N,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw ij.from(t,t&&t.code,e,N,t&&t.response)}}},oE=new Map,oO=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,o=[r,i,n],a,s,l=o.length,u=oE;for(;l--;)a=o[l],void 0===(s=u.get(a))&&u.set(a,s=l?new Map:oS(t)),u=s;return s},oj=(oO(),{http:null,xhr:od,fetch:{get:oO}});ic.forEach(oj,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let oT=e=>`- ${e}`,oC=e=>ic.isFunction(e)||null===e||!1===e,oI=function(e,t){let n,r,{length:i}=e=ic.isArray(e)?e:[e],o={};for(let a=0;a<i;a++){let i;if(r=n=e[a],!oC(n)&&void 0===(r=oj[(i=String(n)).toLowerCase()]))throw new ij(`Unknown adapter '${i}'`);if(r&&(ic.isFunction(r)||(r=r.get(t))))break;o[i||"#"+a]=r}if(!r){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ij("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(oT).join("\n"):" "+oT(e[0]):"as no adapter specified"),ij.ERR_NOT_SUPPORT)}return r};function oP(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i4(null,e)}function oA(e){let t=ic.toSafeFlatObject(e);return oP(t),t.headers=ik.from(ic.getSafeProp(t,"headers")),t.data=i2.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),oI(t.adapter||i1.adapter,t)(t).then(function(e){oP(t),t.response=e;try{e.data=i2.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=ik.from(e.headers),e},function(e){if(!i3(e)&&(oP(t),e&&e.response)){t.response=e.response;try{e.response.data=i2.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=ik.from(e.response.headers)}return Promise.reject(e)})}let oR={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oR[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let oN={};oR.transitional=function(e,t,n){function r(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new ij(r(i," has been removed"+(t?" in "+t:"")),ij.ERR_DEPRECATED);return t&&!oN[i]&&(oN[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)}},oR.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let oM=function(e,t,n){if("object"!=typeof e||null===e)throw new ij("options must be an object",ij.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new ij("option "+o+" must be "+n,ij.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ij("Unknown option "+o,ij.ERR_BAD_OPTION)}};class oD{constructor(e){this.defaults=e||{},this.interceptors={request:new i$,response:new i$}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r="";if("string"==typeof n){let e=n.indexOf("\n");r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}throw e}}_request(e,t){let n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:o}=t=ol(this.defaults,t);void 0!==r&&oM(r,{silentJSONParsing:oR.transitional(oR.boolean),forcedJSONParsing:oR.transitional(oR.boolean),clarifyTimeoutError:oR.transitional(oR.boolean),legacyInterceptorReqResOrdering:oR.transitional(oR.boolean),advertiseZstdAcceptEncoding:oR.transitional(oR.boolean),validateStatusUndefinedResolves:oR.transitional(oR.boolean)}
58,!1),null!=i&&(ic.isFunction(i)?t.paramsSerializer={serialize:i}:oM(i,{encode:oR.function,serialize:oR.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),oM(t,{baseUrl:oR.spelling("baseURL"),withXsrfToken:oR.spelling("withXSRFToken")},!0),t.method=(ic.getSafeProp(t,"method")||ic.getSafeProp(this.defaults,"method")||"get").toLowerCase();let a=o&&ic.merge(o.common,o[t.method]);o&&ic.forEach(iQ.concat("common"),e=>{delete o[e]}),t.headers=ik.concat(a,o);let s=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let n=t.transitional||iH;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let c,d=0;if(!l){let e=[oA.bind(this),void 0];for(e.unshift(...s),e.push(...u),c=e.length,n=Promise.resolve(t);d<c;)n=n.then(e[d++],e[d++]);return n}c=s.length;let f=t;for(;d<c;){let e=s[d++],t=s[d++];try{f=e?e(f):f}catch(e){if(!t){n=Promise.reject(e);break}try{let r=t.call(this,e);ic.isThenable(r)&&(n=Promise.resolve(r).then(()=>oA.call(this,f)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=oA.call(this,f)}catch(e){n=Promise.reject(e)}for(d=0,c=u.length;d<c;)n=n.then(u[d++],u[d++]);return n}getUri(e){return iL(oa((e=ol(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}ic.forEach(["delete","get","head","options"],function(e){oD.prototype[e]=function(t,n){return this.request(ol(n||{},{method:e,url:t,data:n&&ic.hasOwnProp(n,"data")?n.data:void 0}))}}),ic.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,i){return this.request(ol(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}oD.prototype[e]=t(),"query"!==e&&(oD.prototype[e+"Form"]=t(!0))});class oL{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");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,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 i4(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;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let 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 oL(function(t){e=t}),cancel:e}}}let oz={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
58alContent: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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(oz).forEach(([e,t])=>{void 0===oz[t]&&(oz[t]=e)});let oF=function e(t){let n=new oD(t),r=rj(oD.prototype.request,n);return ic.extend(r,oD.prototype,n,{allOwnKeys:!0}),ic.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ol(t,n))},r}(i1);function oB(e,t,n){return t=oV(t),function(e,t){if(t&&("object"==oq(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e,oH()?Reflect.construct(t,n||[],oV(e).constructor):t.apply(e,n))}function oU(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oW(e,t)}function o$(e){var t="function"==typeof Map?new Map:void 0;return(o$=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(oH())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&oW(i,n.prototype),i}(e,arguments,oV(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),oW(n,e)})(e)}function oH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oH=function(){return!!e})()}function oW(e,t){return(oW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oV(e){return(oV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oq(e){return(oq="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})(e)}function oK(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oZ(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,function(e){var t=function(e){if("object"!=oq(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oq(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oq(t)?t:t+""}(r.key),r)}}function oG(e,t,n){return t&&oZ(e.prototype,t),n&&oZ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}oF.Axios=oD,oF.CanceledError=i4,oF.CancelToken=oL,oF.isCancel=i3,oF.VERSION="1.20.0",oF.toFormData=iA,oF.AxiosError=ij,oF.Cancel=oF.CanceledError,oF.all=function(e){return Promise.all(e)},oF.spread=function(e){return function(t){return e.apply(null,t)}},oF.isAxiosError=function(e){return ic.isObject(e)&&!0===e.isAxiosError},oF.mergeConfig=ol,oF.AxiosHeaders=ik,oF.formToJSON=e=>iJ(ic.isHTMLForm(e)?new FormData(e):e),oF.getAdapter=oI,oF.HttpStatusCode=oz,oF.default=oF,ra(),nb(),nk(),nE(),nj(),nC(),nP(),nR(),nM(),nY(),rn(),rr(),ri(),nT(),nW(),rv();var oY=oG(function e(t){var n=t.status,r=t.code,i=t.title,o=t.detail,a=t.source;oK(this,e),this.status=n,this.code=r,this.title=i,this.detail=o,this.source=void 0===a?null:a},[{key:"toString",value:function(){return"<JsonApiError: ".concat(this.status," - ").concat(this.detail,"> ")}}]),oX=function(e){function t(e,n){var r;oK(this,t);for(var i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return(r=oB(this,t,[].concat(o))).statusCode=e,r.errors=n.map(function(e){return new oY(e)}),r.message=r.errors.map(function(e){return e.toString()}).join(", "),Error.captureStackTrace&&Error.captureStackTrace(r,t),r.name="JsonApiException",r}return oU(t,e),oG(t)}
58(o$(Error)),oJ=function(e){function t(){return oK(this,t),oB(this,t,arguments)}return oU(t,e),oG(t)}(o$(Error)),oQ=function(e){function t(){return oK(this,t),oB(this,t,arguments)}return oU(t,e),oG(t)}(oJ),o0=function(e){function t(){return oK(this,t),oB(this,t,arguments)}return oU(t,e),oG(t)}(oJ);nw(),nI(),rm(),rb();var o1=["id","attributes","relationships","links","redirect","type","included"],o2=["TYPE"];function o3(e){return(o3="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})(e)}function o4(e){return(o4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o5(e,t){return(o5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o6=function(){return!!e})()}function o8(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=Object.create((r&&r.prototype instanceof s?r:s).prototype);return o9(l,"_invoke",function(n,r,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(s=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,l=p;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),l}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=u.prototype=s.prototype=Object.create([][r]?t(t([][r]())):(o9(t={},r,function(){return this}),t));function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,o9(e,i,"GeneratorFunction")),e.prototype=Object.create(c),e}return l.prototype=u,o9(c,"constructor",u),o9(u,"constructor",l),l.displayName="GeneratorFunction",o9(u,i,"GeneratorFunction"),o9(c),o9(c,i,"Generator"),o9(c,r,function(){return this}),o9(c,"toString",function(){return"[object Generator]"}),(o8=function(){return{w:o,m:d}})()}function o9(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(o9=function(e,t,n,r){function o(t,n){o9(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function o7(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o7(Object(n),!0).forEach(function(t){at(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function at(e,t,n){return(t=ad(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function ar(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){an(o,r,i,a,s,"next",e)}function s(e){an(o,r,i,a,s,"throw",e)}a(void 0)})}}function ai(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
58finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||ao(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ao(e,t){if(e){if("string"==typeof e)return aa(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aa(e,t):void 0}}function aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function as(e,t){if(null==e)return{};var n,r,i=function(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}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function al(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function au(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,ad(r.key),r)}}function ac(e,t,n){return t&&au(e.prototype,t),n&&au(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ad(e){var t=function(e){if("object"!=o3(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o3(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o3(t)?t:t+""}var af=ac(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};al(this,e),this._overwrite(t)},[{key:"_overwrite",value:function(e){var t=this,n=e.id,r=e.attributes,i=e.relationships,o=e.links,a=e.redirect,s=e.type,l=void 0===s?null:s,u=e.included,c=as(e,o1);if(l&&l!==this.constructor.TYPE)throw Error("Received type '".concat(l,"', expected ").concat(this.constructor.TYPE));var d=void 0===r?{}:r,f=void 0===i?{}:i;Object.entries(c).forEach(function(e){var t=ai(e,2),n=t[0],r=t[1];aD(r)||aM(r)||aN(r)&&(aA(r)||aP(r)&&(aD(r.data)||aM(r.data)||rO().every(r.data,function(e){return aD(e)||aM(e)})))||aR(r)&&r.length>0&&rO().every(r,function(e){return aD(e)||aM(e)})?f[n]=r:d[n]=r}),this.id=void 0===n?null:n,this.attributes=d,this.links=void 0===o?{}:o,this.redirect=void 0===a?null:a,this.relationships=rO().pickBy(this.relationships,function(e,t){return t in f}),this.related=rO().pickBy(this.related,function(e,t){return t in f});var h={};(void 0===u?[]:u).forEach(function(e){h["".concat(e.type,"__").concat(e.id)]=t.constructor.API.asResource(e)}),Object.entries(f).forEach(function(e){var n=ai(e,2),r=n[0],i=n[1];t._setRelated(r,i,h)})}},{key:"_setRelated",value:function(e,t){var n=this,r=t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(i||(i={}),r)if(aR(r)||aN(r)&&aR(r.data)||aN(r)&&aA(r)&&!aP(r)){this.relationships[e]={};var o=this.relationships[e];if(aN(r)&&aA(r)&&(o.links=r.links),aP(r)&&(r=r.data),aR(r)){var a=[],s=[];r.forEach(function(e){var t=n.constructor.API.asResource(e),r=t.asResourceIdentifier();a.push(r);var o="".concat(r.type,"__").concat(r.id);o in i?s.push(i[o]):s.push(t)}),o.data=a;var l=null;"links"in o&&"related"in o.links&&(l=o.links.related),this.related[e]&&this.related[e].data&&this.related[e].data.length===s.length&&!rO().some(rO().zip(this.related[e].data,s),function(e){var t=ai(e,2),n=t[0],r=t[1];return n.id!==r.id||rO().size(r.attributes)>0||rO().size(r.relationships)>0})||(this.related[e]=aI.fromData(this.constructor.API,s,l))}}else{var u,c,d=null;if(aN(r))aP(r)?(c=r.data,"links"in r&&(d=r.links)):c=r,u=this.constructor.API.new(c);else{if(!aM(r))throw Error("Cannot set relationship '".concat(e,"'"));c=(u=r).asResourceIdentifier()}var f="".concat(c.type,"__").concat(c.id);f in i&&(u=i[f]),this.relationships[e]={data:c},d&&(this.relationships[e].links=d),((this.related[e]||{}).id!==u.id||rO().size(u.attributes)>0||rO().size(u.relationships)>0)&&(this.related[e]=u)}else this.relationships[e]=null,this.related[e]=null}},{key:"get",value:function(e){return e in this.related?this.related[e]:this.attributes[e]}},{key:"set",value:function(e,t){e in this.relationships?(this._setRelated(e,t),this.relationships[e]=this.related[e].asRelationship()):this.attributes[e]=t}},{key:"reload",value:(x=ar(o8().m(function e(){var t,n,r,i,o=arguments;return o8().w(function(e){for(;;)switch(e.n){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:null,e.n=1,this.constructor.API.request({method:"get",url:this.getItemUrl(),params:t?{include:t.join(",")}:null});case 1:if(!((n=e.v).status>
58=300&&n.status<400&&n.headers.location)){e.n=2;break}return this._overwrite({id:this.id,attributes:this.attributes,relationships:ae(ae({},this.relationships),this.related),links:this.links,redirect:n.headers.location}),e.a(2);case 2:i=(r=n.data).data,"included"in r&&(i.included=r.included),this._overwrite(i);case 3:return e.a(2)}},e,this)})),function(){return x.apply(this,arguments)})},{key:"fetch",value:(w=ar(o8().m(function e(t){var n,r,i,o,a=arguments;return o8().w(function(e){for(;;)switch(e.n){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],t in this.relationships){e.n=1;break}throw Error("Resource does not have relationship '".concat(t,"'"));case 1:if(r=this.relationships[t]){e.n=2;break}return e.a(2,null);case 2:var s,l;if(!((s=i=this.related[t])&&s instanceof af&&(rO().size(s.attributes)>0||rO().size(s.relationships)>0))&&!((l=i)&&l instanceof aI)||n){e.n=3;break}return e.a(2,i);case 3:if(!rO().isObject(r.data)){e.n=5;break}return e.n=4,i.reload();case 4:return e.a(2,i);case 5:if(o=(r.links||{}).related){e.n=6;break}throw Error("Cannot fetch ".concat(t,", no 'related' link"));case 6:return this.related[t]=new aI(this.constructor.API,o),e.a(2,this.related[t])}},e,this)})),function(e){return w.apply(this,arguments)})},{key:"save",value:(b=ar(o8().m(function e(){var t,n,r,i,o=this,a=arguments;return o8().w(function(e){for(;;)switch(e.n){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:null,r=[],i={},(t=a.length>0&&void 0!==a[0]?a[0]:null)&&n?(r=t,i=n):t&&(rO().isArray(t)?r=t:rO().isObject(t)&&(i=t)),Object.entries(i).forEach(function(e){var t=ai(e,2),n=t[0],i=t[1];o.set(n,i),r.push(n)}),!this.id){e.n=2;break}return e.n=1,this._saveExisting(r);case 1:e.n=3;break;case 2:return e.n=3,this._saveNew(r);case 3:return e.a(2)}},e,this)})),function(){return b.apply(this,arguments)})},{key:"_saveExisting",value:(v=ar(o8().m(function e(){var t,n,r,i=arguments;return o8().w(function(e){for(;;)switch(e.n){case 0:return 0===(t=i.length>0&&void 0!==i[0]?i[0]:[]).length&&(Object.keys(this.attribute).forEach(function(e){t.push(e)}),Object.keys(this.related).forEach(function(e){t.push(e)})),n=ae(ae({},this.asResourceIdentifier()),this._generateDataForSaving(t)),e.n=1,this.constructor.API.request({method:"patch",url:this.getItemUrl(),data:{data:n}});case 1:r=e.v,this._postSave(r);case 2:return e.a(2)}},e,this)})),function(){return v.apply(this,arguments)})},{key:"_saveNew",value:(y=ar(o8().m(function e(){var t,n,r,i=arguments;return o8().w(function(e){for(;;)switch(e.n){case 0:return 0===(t=i.length>0&&void 0!==i[0]?i[0]:[]).length&&(Object.keys(this.attributes).forEach(function(e){t.push(e)}),Object.keys(this.related).forEach(function(e){t.push(e)})),n={type:this.constructor.TYPE},this.id&&(n.id=this.id),Object.assign(n,this._generateDataForSaving(t)),e.n=1,this.constructor.API.request({method:"post",url:this.constructor.getCollectionUrl(),data:{data:n}});case 1:r=e.v,this._postSave(r);case 2:return e.a(2)}},e,this)})),function(){return y.apply(this,arguments)})},{key:"_generateDataForSaving",value:function(e){var t=this,n={};return e.forEach(function(e){if(e in t.attributes)"attributes"in n||(n.attributes={}),n.attributes[e]=t.attributes[e];else{if(!(e in t.relationships))throw Error("Unknown field '".concat(e,"'"));"relationships"in n||(n.relationships={}),n.relationships[e]=t.constructor.API.asResource(t.relationships[e]).asRelationship()}}),n}},{key:"_postSave",value:function(e){var t=this,n=e.data.data,r=ae({},this.related);Object.entries(r).forEach(function(e){var i=ai(e,2),o=i[0],a=i[1];if(null===n.relationships[o])r[o]=null;else{var s=a.id,l=n.relationships[o].data.id;s!==l&&(l?r[o]=t.constructor.API.new(n.relationships[o]):delete r[o])}});var i=n.relationships||{};delete n.relationships,Object.assign(i,r),this._overwrite(ae({relationships:i},n))}},{key:"delete",value:(g=ar(o8().m(function e(){return o8().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.constructor.API.request({method:"delete",url:this.getItemUrl()});case 1:this.id=null;case 2:return e.a(2)}},e,this)})),function(){return g.apply(this,arguments)})},{key:"change",value:(m=ar(o8().m(function e(t,n){var r;return o8().w(function(e){for(;;)switch(e.n){case 0:if(r=n,t in this.relationships){e.n=1;break}throw Error("".concat(t," is not a relationship"));case 1:return r=r&&this.constructor.API.asResource(r),e.n=2,this._editRelationship("patch",t,r&&r.asResourceIdentifier());case 2:this.relationships[t]||(this.relationships[t]={}),this.relationships[t].data=r&&r.asResourceIdentifier(),(this.related[t]||{}).id!==(r||{}).id&&(this.related[t]=r);case 3:return e.a(2)}},e,this)})),function(e,t){return m.apply(this,arguments)})},{key:"add",value:(p=ar(o8().m(function e(t,n){return o8().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._editPluralRelationship("post",t,n);case 1:return e.a(2)}},e,this)})),function(e,t){return p.apply(this,arguments)})},{key:"reset",value:(h=ar(o8().m(function e(t,n){return o8().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._editPluralRelationship("patch",t,n);case 1:return e.a(2)}},e,this)})),function(e,t){return h.apply(this,arguments)})},{key:"remove",value:(f=ar(o8().m(function e(t,n){return o8().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._editPluralRelationship("delete",t,n);case 1:return e.a(2)}},e,this)})),function(e,t){return f.apply(this,arguments)})},{key:"_editRelationship",value:(d=ar(o8().m(function e(t,n,r){var i;return o8().w(function(e){for(;;)switch(e.n){case 0:return i=rO().get(this,"relationships.".concat(n,".links.self"),"/".concat(this.constructor.TYPE,"/").concat(this.id,"/relationships/").concat(n)),e.n=1,this.constructor.API.request({method:t,url:i,data:{data:r}});case 1:return e.a(2)}},e,this)})),function(e,t,n){return d.apply(this,arguments)})},{key:"_editPluralRelationship",value:(c=ar(o8().m(function e(t,n,r){var i,o=this;return o8().w(function(e){for(;;)switch(e.n){case 0:return i=r.map(function(e){return o.constructor.API.asResource(e).asResourceIdentifier()}),e.n=1,this._editRelationship(t,n,i);case 1:return e.a(2)}},e,this)})),function(e,t,n){return c.apply(this,arguments)})},{key:"getItemUrl",value:function(){var e=this.links.self;return e||(e="/".concat(this.constructor.TYPE,"/").concat(this.id
58)),e}},{key:"asResourceIdentifier",value:function(){return{type:this.constructor.TYPE,id:this.id}}},{key:"asRelationship",value:function(){return{data:this.asResourceIdentifier()}}}],[{key:"get",value:(u=ar(o8().m(function e(){var t,n,r,i,o,a,s=arguments;return o8().w(function(e){for(;;)switch(e.n){case 0:var l;if(t=s.length>0&&void 0!==s[0]?s[0]:null,r=void 0===(n=(s.length>1&&void 0!==s[1]?s[1]:{}).include)?null:n,null!==t&&!rO().isPlainObject(t)){e.n=1;break}return i=this.list(),r&&(i=(o=i).include.apply(o,function(e){if(Array.isArray(e))return aa(e)}(l=r)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||ao(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),e.a(2,i.get(t||{}));case 1:return a=new this({id:t}),e.n=2,a.reload(r);case 2:return e.a(2,a)}},e,this)})),function(){return u.apply(this,arguments)})},{key:"create",value:(l=ar(o8().m(function e(){var t,n,r,i,o=arguments;return o8().w(function(e){for(;;)switch(e.n){case 0:for(n=Array(t=o.length),r=0;r<t;r++)n[r]=o[r];return i=function(e,t,n){if(o6())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&o5(i,n.prototype),i}(this,n),e.n=1,i._saveNew();case 1:return e.a(2,i)}},e,this)})),function(){return l.apply(this,arguments)})},{key:"list",value:function(){return new aI(this.API,this.getCollectionUrl())}},{key:"bulkCreate",value:(s=ar(o8().m(function e(t){var n,r,i=this;return o8().w(function(e){for(;;)switch(e.n){case 0:return n=[],t.forEach(function(e){var t=i.API.asResource(e),r={type:i.TYPE};rO().size(t.attributes)&&(r.attributes=t.attributes),rO().size(t.relationships)&&(r.relationships=t.relationships),t.id&&(r.id=t.id),n.push(r)}),e.n=1,this.API.request({method:"post",url:this.getCollectionUrl(),data:{data:n},bulk:!0});case 1:return r=e.v,e.a(2,aI.fromData(this.API,r.data.data))}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"bulkDelete",value:(a=ar(o8().m(function e(t){var n,r=this;return o8().w(function(e){for(;;)switch(e.n){case 0:return n=[],t.forEach(function(e){aM(e)?n.push(e.asResourceIdentifier()):rO().isPlainObject(e)?n.push(r.API.asResource(e).asResourceIdentifier()):n.push({type:r.TYPE,id:e})}),e.n=1,this.API.request({method:"delete",url:this.getCollectionUrl(),data:{data:n},bulk:!0});case 1:return e.a(2,n.length)}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"bulkUpdate",value:(r=ar(o8().m(function e(t,n){var r,i,o=this;return o8().w(function(e){for(;;)switch(e.n){case 0:return r=[],t.forEach(function(e){var t=o.API.asResource(e),i=t.asResourceIdentifier();n.forEach(function(e){if(e in t.attributes)"attributes"in i||(i.attributes={}),i.attributes[e]=t.attributes[e];else{if(!(e in t.relationships))throw Error("".concat(e," is not part of one of the resources"));"relationships"in i||(i.relationships={}),i.relationships[e]=t.relationships[e]}}),r.push(i)}),e.n=1,this.API.request({method:"patch",url:this.getCollectionUrl(),data:{data:r},bulk:!0});case 1:return i=e.v,e.a(2,aI.fromData(this.API,i.data.data))}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"createWithForm",value:(n=ar(o8().m(function e(){var t,n,r,i,o,a,s=arguments;return o8().w(function(e){for(;;)switch(e.n){case 0:for(n=Array(t=s.length),r=0;r<t;r++)n[r]=s[r];return e.n=1,this.API.request(ae({method:"post",url:this.getCollectionUrl()},n));case 1:return o=(i=e.v.data).data,(a=i.included)&&(o.included=a),e.a(2,this.API.new(o))}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getCollectionUrl",value:function(){return"/".concat(this.TYPE)}},{key:"extend",value:function(e){var t,n=e.TYPE,r=as(e,o2),i=(at(t=function(e){function t(){var e,n;return al(this,t),n=arguments,e=o4(e=t),function(e,t){if(t&&("object"==o3(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,o6()?Reflect.construct(e,n||[],o4(this).constructor):e.apply(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o5(e,t)}(t,e),ac(t)}(this),"TYPE",n),t);return Object.assign(i.prototype,r),i}}]);function ah(e){return(ah="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})(e)}function ap(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=Object.create((r&&r.prototype instanceof s?r:s).prototype);return am(l,"_invoke",function(n,r,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(s=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,l=p;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
58if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),l}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=u.prototype=s.prototype=Object.create([][r]?t(t([][r]())):(am(t={},r,function(){return this}),t));function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,am(e,i,"GeneratorFunction")),e.prototype=Object.create(c),e}return l.prototype=u,am(c,"constructor",u),am(u,"constructor",l),l.displayName="GeneratorFunction",am(u,i,"GeneratorFunction"),am(c),am(c,i,"Generator"),am(c,r,function(){return this}),am(c,"toString",function(){return"[object Generator]"}),(ap=function(){return{w:o,m:d}})()}function am(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(am=function(e,t,n,r){function o(t,n){am(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function ag(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 ay(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ag(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=aS(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ag(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function av(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||ab(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ab(e,t){if(e){if("string"==typeof e)return aw(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aw(e,t):void 0}}function aw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ax(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function a_(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){ax(o,r,i,a,s,"next",e)}function s(e){ax(o,r,i,a,s,"throw",e)}a(void 0)})}}function ak(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,aS(r.key),r)}}function aS(e){var t=function(e){if("object"!=ah(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ah(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ah(t)?t:t+""}function aE(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(aE=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new aE(e)}function aO(e){return new aC(e,0)}function aj(e){return function(){return new aT(e.apply(this,arguments))}}function aT(e){var t,n;function r(t,n){try{var o=e[t](n),a=o.value,s=a instanceof aC;Promise.resolve(s?a.v:a).then(function(n){if(s){var l="return"===t&&a.k?t:"next";if(!a.k||n.done)return r(l,n);n=e[l](n).value}i(!!o.done,n)},function(e){r("throw",e)})}catch(e){i(2,e)}}function i(e,i){2===e?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,i))})}
58,"function"!=typeof e.return&&(this.return=void 0)}function aC(e,t){this.v=e,this.k=t}["extra","filter","page","include","sort","fields","all","allPages"].forEach(function(e){af[e]=function(){var t;return(t=this.list())[e].apply(t,arguments)}}),aT.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},aT.prototype.next=function(e){return this._invoke("next",e)},aT.prototype.throw=function(e){return this._invoke("throw",e)},aT.prototype.return=function(e){return this._invoke("return",e)};var aI=(_=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._API=t,this._url=n,this._params=r,this.data=null,this.next=null,this.previous=null},k=[{key:"fetch",value:(T=a_(ap().m(function e(){var t,n,r=this;return ap().w(function(e){for(;;)switch(e.n){case 0:if(!this.data){e.n=1;break}return e.a(2);case 1:return e.n=2,this._API.request({method:"get",url:this._url,params:this._params});case 2:t=e.v,n={},"included"in t.data&&t.data.included.forEach(function(e){n["".concat(e.type,"__").concat(e.id)]=e}),this.data=[],t.data.data.forEach(function(e){var t={};Object.entries(e.relationships||{}).forEach(function(e){var i=av(e,2),o=i[0],a=i[1];if(a&&aP(a)){var s="".concat(a.data.type,"__").concat(a.data.id);s in n&&(t[o]=r._API.new(n[s]))}});var i=e.relationships||{};delete e.relationships,Object.assign(i,t),r.data.push(r._API.new(ay({relationships:i},e)))}),this.next=(t.data.links||{}).next||null,this.previous=(t.data.links||{}).previous||null;case 3:return e.a(2)}},e,this)})),function(){return T.apply(this,arguments)})},{key:"getNext",value:(j=a_(ap().m(function e(){var t;return ap().w(function(e){for(;;)switch(e.n){case 0:return t=new this.constructor(this._API,this.next),e.n=1,t.fetch();case 1:return e.a(2,t)}},e,this)})),function(){return j.apply(this,arguments)})},{key:"getPrevious",value:(O=a_(ap().m(function e(){var t;return ap().w(function(e){for(;;)switch(e.n){case 0:return t=new this.constructor(this._API,this.previous),e.n=1,t.fetch();case 1:return e.a(2,t)}},e,this)})),function(){return O.apply(this,arguments)})},{key:"extra",value:function(e){var t=ay(ay({},this._params||{}),e);return new this.constructor(this._API,this._url,t)}},{key:"filter",value:function(e){var t={};return Object.entries(e).forEach(function(e){for(var n=av(e,2),r=n[0],i=n[1],o=r.split("__"),a=["filter[".concat(o[0],"]")],s=1;s<o.length;s++){var l=o[s];a.push("[".concat(l,"]"))}i instanceof af&&(i=i.id),t[a.join("")]=i}),this.extra(t)}},{key:"page",value:function(e){var t={};return rO().isPlainObject(e)?Object.entries(e).forEach(function(e){var n=av(e,2),r=n[0],i=n[1];t["page[".concat(r,"]")]=i}):t.page=e,this.extra(t)}},{key:"include",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.extra({include:t.join(",")})}},{key:"sort",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.extra({sort:t.join(",")})}},{key:"fields",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.extra({fields:t.join(",")})}},{key:"get",value:(E=a_(ap().m(function e(){var t,n,r=arguments;return ap().w(function(e){for(;;)switch(e.n){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},n=this.filter(t),e.n=1,n.fetch();case 1:if(0!==n.data.length){e.n=2;break}throw new oQ("Does not exist for filter: ".concat(JSON.stringify(t)));case 2:if(!(n.data.length>1)){e.n=3;break}throw new o0("Multiple objects returned (".concat(n.data.length,") for filter: ").concat(JSON.stringify(t)));case 3:return e.a(2,n.data[0]);case 4:return e.a(2)}},e,this)})),function(){return E.apply(this,arguments)})},{key:"allPages",value:function(){var e=this;return aj(ap().m(function t(){var n;return ap().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,aO(e.fetch());case 1:n=e;case 2:return t.n=3,n;case 3:if(!n.next){t.n=5;break}return t.n=4,aO(n.getNext());case 4:n=t.v,t.n=6;break;case 5:return t.a(3,7);case 6:t.n=2;break;case 7:return t.a(2)}},t)}))()}},{key:"all",value:function(){var e=this;return aj(ap().m(function t(){var n,r,i,o,a,s,l,u,c,d;return ap().w(function(t){for(;;)switch(t.p=t.n){case 0:n=!1,r=!1,t.p=1,o=function(e){var t,n,r,i=2;for("u">typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);
58if(r&&null!=(t=e[r]))return new aE(t.call(e));n="@@asyncIterator",r="@@iterator"}throw TypeError("Object is not async iterable")}(e.allPages());case 2:return t.n=3,aO(o.next());case 3:if(!(n=!(a=t.v).done)){t.n=11;break}s=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ab(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(a)throw i}}}}(a.value.data),t.p=4,s.s();case 5:if((l=s.n()).done){t.n=7;break}return u=l.value,t.n=6,u;case 6:t.n=5;break;case 7:t.n=9;break;case 8:t.p=8,c=t.v,s.e(c);case 9:return t.p=9,s.f(),t.f(9);case 10:n=!1,t.n=2;break;case 11:t.n=13;break;case 12:t.p=12,d=t.v,r=!0,i=d;case 13:if(t.p=13,t.p=14,!n||null==o.return){t.n=15;break}return t.n=15,aO(o.return());case 15:if(t.p=15,!r){t.n=16;break}throw i;case 16:return t.f(15);case 17:return t.f(13);case 18:return t.a(2)}},t,null,[[14,,15,17],[4,8,9,10],[1,12,13,18]])}))()}}],S=[{key:"fromData",value:function(e,t){var n=new this(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"");return n.data=t,n}}],k&&ak(_.prototype,k),S&&ak(_,S),Object.defineProperty(_,"prototype",{writable:!1}),_);function aP(e){return rO().isObject(e)&&"data"in e}function aA(e){return rO().isObject(e)&&"links"in e}function aR(e){return rO().isArray(e)}function aN(e){return rO().isPlainObject(e)}function aM(e){return e instanceof af}function aD(e){return rO().isObject(e)&&"type"in e&&"id"in e}var aL=["url","bulk","headers","maxRedirects"],az=["type"],aF=["HOST"];function aB(e){return(aB="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})(e)}function aU(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=Object.create((r&&r.prototype instanceof s?r:s).prototype);return a$(l,"_invoke",function(n,r,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(s=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,l=p;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),l}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=u.prototype=s.prototype=Object.create([][r]?t(t([][r]())):(a$(t={},r,function(){return this}),t));function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,a$(e,i,"GeneratorFunction")),e.prototype=Object.create(c),e}return l.prototype=u,a$(c,"constructor",u),a$(u,"constructor",l),l.displayName="GeneratorFunction",a$(u,i,"GeneratorFunction"),a$(c),a$(c,i,"Generator"),a$(c,r,function(){return this}),a$(c,"toString",function(){return"[object Generator]"}),(aU=function(){return{w:o,m:d}})()}function a$(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(a$=function(e,t,n,r){function o(t,n){a$(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function aH(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 aW(e,t){if(null==e)return{};var n,r,i=function(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}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function aV(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function aq(e,t,n){return t=aZ(t),function(e,t){if(t&&("object"==aB(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e,aK()?Reflect.construct(t,n||[],aZ(e).constructor):t.apply(e,n))}function aK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aK=function(){return!!e})()}
58function aZ(e){return(aZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function aG(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aY(e,t)}function aY(e,t){return(aY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function aX(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function aJ(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,a1(r.key),r)}}function aQ(e,t,n){return t&&aJ(e.prototype,t),n&&aJ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a0(e,t,n){return(t=a1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a1(e){var t=function(e){if("object"!=aB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=aB(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==aB(t)?t:t+""}function a2(e){return e>=200&&e<400}var a3=aQ(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};aX(this,e),this.host=this.constructor.HOST,this.auth=null,this.registry={},this.setup(t)},[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.host,n=e.auth;t&&(this.host=t),n&&(rO().isFunction(n)?this.auth=n:this.auth=function(){return{Authorization:"Bearer ".concat(n)}})}},{key:"getCls",value:function(e){var t=this.registry[e];if(!t){var n,r,i=this.constructor.registry[e];i?(a0(n=function(e){function t(){return aX(this,t),aq(this,t,arguments)}return aG(t,e),aQ(t)}(i),"API",this),t=n):(a0(r=function(e){function t(){return aX(this,t),aq(this,t,arguments)}return aG(t,e),aQ(t)}(af),"TYPE",e),a0(r,"API",this),t=r),this.registry[e]=t}return t}},{key:"request",value:(C=aU().m(function e(t){var n,r,i,o,a,s,l,u,c,d,f,h,p;return aU().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=t.url,i=void 0!==(r=t.bulk)&&r,a=void 0===(o=t.headers)?{}:o,l=void 0===(s=t.maxRedirects)?0:s,u=aW(t,aL),c=n,"/"===n[0]&&(c=this.host+n),(d=this.auth())["Content-Type"]=i?'application/vnd.api+json;profile="bulk"':"application/vnd.api+json",Object.assign(d,a),e.p=1,e.n=2,oF.request(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aH(Object(n),!0).forEach(function(t){a0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({url:c,headers:d,maxRedirects:l,validateStatus:a2},u));case 2:f=e.v,e.n=5;break;case 3:if(e.p=3,p=e.v,!(h=rO().get(p.response,"data.errors"))){e.n=4;break}throw new oX(p.response.status,h);case 4:throw p;case 5:return e.a(2,f)}},e,this,[[1,3]])}),I=function(){var e=this,t=arguments;return new Promise(function(n,r){var i=C.apply(e,t);function o(e){aV(i,n,r,o,a,"next",e)}function a(e){aV(i,n,r,o,a,"throw",e)}o(void 0)})},function(e){return I.apply(this,arguments)})},{key:"new",value:function(e){var t=e.type,n=aW(e,az);return new(this.getCls(t))(n)}},{key:"asResource",value:function(e){if(!e||aM(e))return e;var t=e;return"data"in e&&(t=e.data),this.new(t)}}],[{key:"register",value:function(e,t){this.registry[e.TYPE]=e;var n={configurable:!0,enumerable:!0,get:function(){return this.getCls(e.TYPE)}};Object.defineProperty(this.prototype,t,n),Object.defineProperty(this.prototype,e.TYPE,n)}},{key:"extend",value:function(e){var t,n=e.HOST,r=aW(e,aF),i=(a0(t=function(e){function t(){return aX(this,t),aq(this,t,arguments)}return aG(t,e),aQ(t)}(this),"HOST",n),t);return Object.assign(i.prototype,r),i}}]);a0(a3,"registry",{});var a4=a3,a5=af})(),o})()},529(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},400(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},767(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},757(e){"use strict";e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},117(e){"use strict";e.exports=function(e){return null==e}},859(e){"use strict";e.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},684(e){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},269(e){"use strict";e.exports=Object.create?Object.create(null):{}},741(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},717(e,t){"use strict";t.f=Object.getOwnPropertySymbols},103(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},265(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},823(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}}};let r={};function i(e){let t=r[e];if(void 0!==t)return t.exports;let o=r[e]={exports:{}};return n[e].call(o.exports,o,o.exports,i),o.exports}i.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},t=Object.getPrototypeOf,i.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;let o=Object.create(null);i.r(o);let a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);
58s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let o={};return(()=>{"use strict";i.r(o),i.d(o,{TransifexApi:()=>nU,transifexApi:()=>ri});var e=i.cw(function(e,t){var n=ep(),r=tw(),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(r(e)+" is not a function")}}),t=i.cw(function(e,t){var n=em(),r=tw(),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(r(e)+" is not a constructor")}}),n=i.cw(function(e,t){var n=eb(),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}}),r=i.cw(function(e,t){var n=tT(),r=eL(),i=eF().f,o=n("unscopables"),a=Array.prototype;void 0===a[o]&&i(a,o,{configurable:!0,value:r(null)}),e.exports=function(e){a[o][e]=!0}}),a=i.cw(function(e,t){var n=eW(),r=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new r("Incorrect invocation")}}),s=i.cw(function(e,t){var n=ev(),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(r(e)+" is not an object")}}),l=i.cw(function(e,t){var n=c().jJ;e.exports=f()("forEach")?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),u=i.cw(function(e,t){var n=tf(),r=td(),i=eA(),o=function(e){return function(t,o,a){var s=n(t),l=i(s);if(0===l)return!e&&-1;var u,c=r(a,l);if(e&&o!=o){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===o)return e||c||0;return!e&&-1}};e.exports={m:o(!0),q:o(!1)}}),c=i.cw(function(e,t){var n=V(),r=el(),i=tm(),o=eA(),a=m(),s=S(),l=function(e){var t=1===e,l=2===e,u=3===e,c=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,m,g){for(var y,v,b=i(p),w=r(b),x=o(w),_=n(m,g),k=0,S=0,E=t?a(p,x):l||f?a(p,0):void 0;x>k;k++)if((h||k in w)&&(v=_(y=w[k],k,b),e))if(t)s(E,k,v);else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:s(E,S++,y)}else switch(e){case 4:return!1;case 7:s(E,S++,y)}return d?-1:u||c?c:E}};e.exports={jJ:l(0),...void l(1),pb:l(2),...void l(3),...void l(4),...void l(5),...void l(6),...void l(7)}}),d=i.cw(function(e,t){var n=H(),r=tT(),i=B(),o=r("species");e.exports=function(e){return i>=51||!n(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}),f=i.cw(function(e,t){var n=H();e.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}}),h=i.cw(function(e,t){e.exports=J()([].slice)}),p=i.cw(function(e,t){var n=eh(),r=em(),i=ev(),o=tT()("species"),a=Array;e.exports=function(e){var t;return n(e)&&(r(t=e.constructor)&&(t===a||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0),void 0===t?a:t}}),m=i.cw(function(e,t){var n=p();e.exports=function(e,t){return new(n(e))(0===t?0:t)}}),g=i.cw(function(e,t){var n=s(),r=eE();e.exports=function(e,t,i,o){try{return o?t(n(i)[0],i[1]):t(i)}catch(t){r(e,"throw",t)}}}),y=i.cw(function(e,t){var n=tT()("iterator"),r=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){r=!0}};o[n]=function(){return this},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},e(o)}catch(e){}return i}}),v=i.cw(function(e,t){var n=J(),r=n({}.toString),i=n("".slice);e.exports=function(e){return i(r(e),8,-1)}}),b=i.cw(function(e,t){var n=tv(),r=ep(),i=v(),o=tT()("toStringTag"),a=Object,s="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,n,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:s?i(t):"Object"===(l=i(t))&&r(t.callee)?"Arguments":l}}
vendor: 9,530 bytes, line 58
58),w=i.cw(function(e,t){var n=ei(),r=eX(),i=eB(),o=eF();e.exports=function(e,t,a){for(var s=r(t),l=o.f,u=i.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||a&&n(a,d)||l(e,d,u(t,d))}}}),x=i.cw(function(e,t){e.exports=!H()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),_=i.cw(function(e,t){var n=I(),r=eF(),i=k();e.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}}),k=i.cw(function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),S=i.cw(function(e,t){var n=I(),r=eF(),i=k();e.exports=function(e,t,o){n?r.f(e,t,i(0,o)):e[t]=o}}),E=i.cw(function(e,t){var n=s(),r=eY(),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return r(this,e)}}),O=i.cw(function(e,t){var n=eR(),r=eF();e.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}}),j=i.cw(function(e,t){var n=ep(),r=eF(),i=eR(),o=C();e.exports=function(e,t,a,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(n(a)&&i(a,u,s),s.global)l?e[t]=a:o(t,a);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=a:r.f(e,t,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}}),T=i.cw(function(e,t){var n=j();e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}}),C=i.cw(function(e,t){var n=er(),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}}),I=i.cw(function(e,t){e.exports=!H()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),P=i.cw(function(e,t){var n=er(),r=ev(),i=n.document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}}),A=i.cw(function(e,t){var n=P()("span").classList,r=n&&n.constructor&&n.constructor.prototype;e.exports=r===Object.prototype?void 0:r}),R=i.cw(function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),N=i.cw(function(e,t){var n=F();e.exports=/ipad|iphone|ipod/i.test(n)&&"u">typeof Pebble}),M=i.cw(function(e,t){var n=F();e.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)}),D=i.cw(function(e,t){e.exports="NODE"===U()}),z=i.cw(function(e,t){var n=F();e.exports=/web0s(?!.*chrome)/i.test(n)}),F=i.cw(function(e,t){var n=er().navigator,r=n&&n.userAgent;e.exports=r?String(r):""}),B=i.cw(function(e,t){var n,r,i=er(),o=F(),a=i.process,s=i.Deno,l=a&&a.versions||s&&s.version,u=l&&l.v8;u&&(r=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r}),U=i.cw(function(e,t){var n=er(),r=F(),i=v(),o=function(e){return r.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"}),$=i.cw(function(e,t){var n=er(),r=eB().f,i=_(),o=j(),a=C(),s=w(),l=eg();e.exports=function(e,t){var u,c,d,f,h,p=e.target,m=e.global,g=e.stat;if(u=m?n:g?n[p]||a(p,{}):n[p]&&n[p].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(h=r(u,c))&&h.value:u[c],!l(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;s(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),o(u,c,f,e)}}}),H=i.cw(function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}}),W=i.cw(function(e,t){var n=q(),r=Function.prototype,i=r.apply,o=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})}),V=i.cw(function(t,n){var r=X(),i=e(),o=q(),a=r(r.bind);t.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}}),q=i.cw(function(e,t){e.exports=!H()(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}),K=i.cw(function(t,n){var r=J(),i=e(),o=ev(),a=ei(),s=h(),l=q(),u=Function,c=r([].concat),d=r([].join),f={};t.exports=l?u.bind:function(e){var t=i(this),n=t.prototype,r=s(arguments,1),l=function(){var n=c(r,s(arguments));return this instanceof l?function(e,t,n){if(!a(f,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";f[t]=u("C,a","return new C("+d(r,",")+")")}return f[t](e,n)}(t,n.length,n):t.apply(e,n)};return o(n)&&(l.prototype=n),l}}),Z=i.cw(function(e,t){var n=q(),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}}),G=i.cw(function(e,t){var n=I(),r=ei(),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=r(i,"name"),s=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:a&&"something"===(function(){}).name,CONFIGURABLE:s}}),Y=i.cw(function(t,n){var r=J(),i=e();t.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}}),X=i.cw(function(e,t){var n=v(),r=J();e.exports=function(e){if("Function"===n(e))return r(e)}}),J=i.cw(function(e,t){var n=q(),r=Function.prototype,i=r.call,o=n&&r.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}}),Q=i.cw(function(e,t){var n=er(),r=ep();e.exports=function(e,t){var i;return arguments.length<2?r(i=n[e])?i:void 0:n[e]&&n[e][t]}}),ee=i.cw(function(e,t){var n=Z(),r=ep(),i=s(),o=tw(),a=et(),l=TypeError;e.exports=function(e,t){var s=arguments.length<2?a(e):t;if(r(s))return i(n(s,e));throw new l(o(e)+" is not iterable")}}),et=i.cw(function(e,t){var n=v(),r=ey(),i=en(),o=tT()("iterator"),a=Array.prototype;e.exports=function(e){if(!r(e))return i(e,o)||i(e,"@@iterator")||("Arguments"===n(e)?a[o]:void 0)}}),en=i.cw(function(t,n){var r=e(),i=ey();t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}}),er=i.cw(function(e,t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}),ei=i.cw(function(e,t){var n=J(),r=tm(),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}}),eo=i.cw(function(e,t){e.exports={}}),ea=i.cw(function(e,t){e.exports=Q()("document","documentElement")}),es=i.cw(function(e,t){var n=I(),r=H(),i=P();e.exports=!n&&!r(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})}),el=i.cw(function(e,t){var n=J(),r=H(),i=v(),o=Object,a=n("".split);e.exports=r(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?a(e,""):o(e)}:o}),eu=i.cw(function(e,t){var n=ep(),r=ev(),i=eZ();e.exports=function(e,t,o){var a,s;return i&&n(a=t.constructor)&&a!==o&&r(s=a.prototype)&&s!==o.prototype&&i(e,s),e}}),ec=i.cw(function(e,t){var n=J(),r=ep(),i=tt(),o=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource}),ed=i.cw(function(e,t){var n,r,i,o=tE(),a=er(),s=ev(),l=_(),u=ei(),c=tt(),d=te(),f=eo(),h="Object already initialized",p=a.TypeError,m=a.WeakMap;if(o||c.state){var g=c.state||(c.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new p(h);return t.facade=e,g.set(e,t),t},r=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=d("state");f[y]=!0,n=function(e,t){if(u(e,y))throw new p(h);return t.facade=e,l(e,y,t),t},r=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:n,get:r,has:i,enforce:function(e){return i(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}}),ef=i.cw(function(e,t){var n=tT(),r=eP(),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}}),eh=i.cw(function(e,t){var n=v();e.exports=Array.isArray||function(e){return"Array"===n(e)}}),ep=i.cw(function(e,t){var n="object"==typeof document&&document.all;e.exports=void 0===n&&void 0!==n?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}}),em=i.cw(function(e,t){var n=J(),r=H(),i=ep(),o=b(),a=Q(),s=ec(),l=function(){},u=a("Reflect","construct"),c=/^\s*(?:class|function)\b/,d=n(c.exec),f=!c.test(l),h=function(e){if(!i(e))return!1;try{return u(l,[],e),!0}catch(e){return!1}},p=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(c,s(e))}catch(e){return!0}};p.sham=!0,e.exports=!u||r(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?p:h}),eg=i.cw(function(e,t){var n=H(),r=ep(),i=/#|\.prototype\./,o=function(e,t){var i=s[a(e)];return i===u||i!==l&&(r(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o}),ey=()=>i(117),ev=i.cw(function(e,t){var n=ep();e.exports=function(e){return"object"==typeof e?null!==e:n(e)}}),eb=i.cw(function(e,t){var n=ev();e.exports=function(e){return n(e)||null===e}}),ew=i.cw(function(e,t){e.exports=!1}),ex=i.cw(function(e,t){var n=ev(),r=ed().get;e.exports=function(e){if(!n(e))return!1;var t=r(e);return!!t&&"RawJSON"===t.type}}),e_=i.cw(function(e,t){var n=Q(),r=ep(),i=eW(),o=t_(),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&i(t.prototype,a(e))}}
58),ek=i.cw(function(e,t){var n=V(),r=Z(),i=s(),o=tw(),a=ef(),l=eA(),u=eW(),c=ee(),d=et(),f=eE(),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,s){var g,y,v,b,w,x,_,k=s&&s.that,S=!(!s||!s.AS_ENTRIES),E=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),j=!(!s||!s.INTERRUPTED),T=n(t,k),C=function(e){var t=g;return g=void 0,t&&f(t,"normal"),new p(!0,e)},I=function(e){return S?(i(e),j?T(e[0],e[1],C):T(e[0],e[1])):j?T(e,C):T(e)};if(E)g=e.iterator;else if(O)g=e;else{if(!(y=d(e)))throw new h(o(e)+" is not iterable");if(a(y)){for(v=0,b=l(e);b>v;v++)if((w=I(e[v]))&&u(m,w))return w;return new p(!1)}g=c(e,y)}for(x=E?e.next:g.next;!(_=r(x,g)).done;){var P=_.value;try{w=I(P)}catch(e){if(!g)throw e;f(g,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new p(!1)}}),eS=i.cw(function(e,t){var n=eE();e.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}}),eE=i.cw(function(e,t){var n=Z(),r=s(),i=en();e.exports=function(e,t,o){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw o;return o}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw o;if(s)throw a;return r(a),o}}),eO=i.cw(function(e,t){var n=eI().IteratorPrototype,r=eL(),i=k(),o=e7(),a=eP(),s=function(){return this};e.exports=function(e,t,l,u){var c=t+" Iterator";return e.prototype=r(n,{next:i(+!u,l)}),o(e,c,!1,!0),a[c]=s,e}}),ej=i.cw(function(e,t){var n=Z(),r=eL(),o=_(),a=T(),s=tT(),l=ed(),u=en(),c=eI().IteratorPrototype,d=i(529),f=eE(),h=eS(),p=i(859),m=s("toStringTag"),g="IteratorHelper",y="WrapForValidIterator",v="normal",b="throw",w=l.set,x=function(e){var t=l.getterFor(e?y:g);return a(r(c),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.done&&p(n),n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,p(n),e}},return:function(){var r=t(this),i=r.iterator,o=r.inner,a=r.openIters,s=r.done;if(r.done=!0,e){var l=u(i,"return");return l?n(l,i):d(void 0,!0)}if(p(r),s)return d(void 0,!0);if(o)try{f(o.iterator,v)}catch(e){return f(i,b,e)}if(a)try{h(a,v)}catch(e){if(i)return f(i,b,e);throw e}return i&&f(i,v),d(void 0,!0)}})}
58,k=x(!0),S=x(!1);o(S,m,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?y:g,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,w(this,i)};return r.prototype=t?k:S,r}}),eT=i.cw(function(e,t){var n=$(),r=Z(),i=ew(),o=G(),a=ep(),s=eO(),l=eH(),u=eZ(),c=e7(),d=_(),f=j(),h=tT(),p=eP(),m=eI(),g=o.PROPER,y=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=h("iterator"),x="keys",k="values",S="entries",E=function(){return this};e.exports=function(e,t,o,h,m,_,O){s(o,t,h);var j,T,C,I=function(e){if(e===m&&M)return M;if(!b&&e&&e in R)return R[e];switch(e){case x:case k:case S:return function(){return new o(this,e)}}return function(){return new o(this)}},P=t+" Iterator",A=!1,R=e.prototype,N=R[w]||R["@@iterator"]||m&&R[m],M=!b&&N||I(m),D="Array"===t&&R.entries||N;if(D&&(j=l(D.call(new e)))!==Object.prototype&&j.next&&(i||l(j)===v||(u?u(j,v):a(j[w])||f(j,w,E)),c(j,P,!0,!0),i&&(p[P]=E)),g&&m===k&&N&&N.name!==k&&(!i&&y?d(R,"name",k):(A=!0,M=function(){return r(N,this)})),m)if(T={values:I(k),keys:_?M:I(x),entries:I(S)},O)for(C in T)!b&&!A&&C in R||f(R,C,T[C]);else n({target:t,proto:!0,forced:b||A},T);return i&&!O||R[w]===M||f(R,w,M,{name:m}),p[t]=M,T}}),eC=i.cw(function(e,t){var n=er();e.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,o=i&&i[e],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(e){e instanceof t||(a=!1)}if(!a)return o}}),eI=i.cw(function(e,t){var n,r,i,o=H(),a=ep(),s=ev(),l=eL(),u=eH(),c=j(),d=tT(),f=ew(),h=d("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(r=u(u(i)))!==Object.prototype&&(n=r):p=!0),!s(n)||o(function(){var e={};return n[h].call(e)!==e})?n={}:f&&(n=l(n)),a(n[h])||c(n,h,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}}),eP=()=>i(269),eA=i.cw(function(e,t){var n=tp();e.exports=function(e){return n(e.length)}}),eR=i.cw(function(e,t){var n=J(),r=H(),i=ep(),o=ei(),a=I(),s=G().CONFIGURABLE,l=ec(),u=ed(),c=u.enforce,d=u.get,f=String,h=Object.defineProperty,p=n("".slice),m=n("".replace),g=n([].join),y=a&&!r(function(){return 8!==h(function(){},"length",{value:8}).length}),v=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===p(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return o(r,"source")||(r.source=g(v,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function(){return i(this)&&d(this).source||l(this)},"toString")}),eN=i.cw(function(e,t){var n,r,i,o,a,s=er(),l=e6(),u=V(),c=tu().h,d=e4(),f=M(),h=N(),p=z(),m=D(),g=s.MutationObserver||s.WebKitMutationObserver,y=s.document,v=s.process,b=s.Promise,w=l("queueMicrotask");if(!w){var x=new d,_=function(){var e,t;for(m&&(e=v.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&n(),e}e&&e.enter()};f||m||p||!g||!y?!h&&b&&b.resolve?((o=b.resolve(void 0)).constructor=b,a=u(o.then,o),n=function(){a(_)}):m?n=function(){v.nextTick(_)}:(c=u(c,s),n=function(){c(_)}):(r=!0,i=y.createTextNode(""),new g(_).observe(i,{characterData:!0}),n=function(){i.data=r=!r}),w=function(e){x.head||n(),x.add(e)}}e.exports=w}),eM=i.cw(function(e,t){e.exports=!H()(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})}),eD=i.cw(function(t,n){var r=e(),i=TypeError,o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};t.exports.f=function(e){return new o(e)}}),eL=i.cw(function(e,t){var n,r=s(),i=ez(),o=R(),a=eo(),l=ea(),u=P(),c=te(),d="prototype",f="script",h=c("IE_PROTO"),p=function(){},m=function(e){return"<"+f+">"+e+"</"+f+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}y="u">typeof document?document.domain&&n?g(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var e,t,r,i=o.length;i--;)delete y[d][o[i]];return y()};a[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=r(e),n=new p,p[d]=null,n[h]=e):n=y(),void 0===t?n:i.f(n,t)}}),ez=i.cw(function(e,t){var n=I(),r=tk(),i=eF(),o=s(),a=tf(),l=eq();t.f=n&&!r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=l(t),u=s.length,c=0;u>c;)i.f(e,n=s[c++],r[n]);return e}}),eF=i.cw(function(e,t){var n=I(),r=es(),i=tk(),o=s(),a=ty(),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=n?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);
58r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),r)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}}),eB=i.cw(function(e,t){var n=I(),r=Z(),i=eK(),o=k(),a=tf(),s=ty(),l=ei(),u=es(),c=Object.getOwnPropertyDescriptor;t.f=n?c:function(e,t){if(e=a(e),t=s(t),u)try{return c(e,t)}catch(e){}if(l(e,t))return o(!r(i.f,e,t),e[t])}}),eU=i.cw(function(e,t){var n=v(),r=tf(),i=e$().f,o=h(),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return o(a)}}(e):i(r(e))}}),e$=i.cw(function(e,t){var n=eV(),r=R().concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}}),eH=i.cw(function(e,t){var n=ei(),r=ep(),i=tm(),o=te(),a=x(),s=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var o=t.constructor;return r(o)&&t instanceof o?o.prototype:t instanceof l?u:null}}),eW=i.cw(function(e,t){e.exports=J()({}.isPrototypeOf)}),eV=i.cw(function(e,t){var n=J(),r=ei(),i=tf(),o=u().q,a=eo(),s=n([].push);e.exports=function(e,t){var n,l=i(e),u=0,c=[];for(n in l)!r(a,n)&&r(l,n)&&s(c,n);for(;t.length>u;)r(l,n=t[u++])&&(~o(c,n)||s(c,n));return c}}),eq=i.cw(function(e,t){var n=eV(),r=R();e.exports=Object.keys||function(e){return n(e,r)}}),eK=i.cw(function(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n}),eZ=i.cw(function(e,t){var r=Y(),i=ev(),o=e5(),a=n();
58e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),a(r),i(n)&&(t?e(n,r):n.__proto__=r),n}}():void 0)}),eG=i.cw(function(e,t){var n=tv(),r=b();e.exports=n?({}).toString:function(){return"[object "+r(this)+"]"}}),eY=i.cw(function(e,t){var n=Z(),r=ep(),i=ev(),o=TypeError;e.exports=function(e,t){var a,s;if("string"===t&&r(a=e.toString)&&!i(s=n(a,e))||r(a=e.valueOf)&&!i(s=n(a,e))||"string"!==t&&r(a=e.toString)&&!i(s=n(a,e)))return s;throw new o("Can't convert object to primitive value")}}),eX=i.cw(function(e,t){var n=Q(),r=J(),i=e$(),o=nf(),a=s(),l=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?l(t,n(e)):t}}),eJ=i.cw(function(e,t){var n=J(),r=ei(),i=SyntaxError,o=parseInt,a=String.fromCharCode,s=n("".charAt),l=n("".slice),u=n(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"	"},d=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,h="";t<e.length;){var p=s(e,t);if("\\"===p){var m=l(e,t,t+2);if(r(c,m))h+=c[m],t+=2;else{if("\\u"!==m)throw new i('Unknown escape sequence: "'+m+'"');var g=l(e,t+=2,t+4);if(!u(d,g))throw new i("Bad Unicode escape at: "+t);h+=a(o(g,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(u(f,p))throw new i("Bad control character in string literal at: "+t);h+=p,t++}}if(n)throw new i("Unterminated string at: "+t);return{value:h,end:t}}}),eQ=i.cw(function(e,t){e.exports=er()}),e0=i.cw(function(e,t){var n=er(),r=e1(),i=ep(),o=eg(),a=ec(),s=tT(),l=U(),u=ew(),c=B(),d=r&&r.prototype,f=s("species"),h=!1,p=i(n.PromiseRejectionEvent);e.exports={CONSTRUCTOR:o("Promise",function(){var e=a(r),t=e!==String(r);if(!t&&66===c||u&&(!d.catch||!d.finally))return!0;if(!c||c<51||!/native code/.test(e)){var n=new r(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((n.constructor={})[f]=i,!(h=n.then(function(){})instanceof i))return!0}return!(t||"BROWSER"!==l&&"DENO"!==l||p)}),REJECTION_EVENT:p,SUBCLASSING:h}}),e1=i.cw(function(e,t){e.exports=er().Promise}),e2=i.cw(function(e,t){var n=s(),r=ev(),i=eD();e.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var o=i.f(e);return(0,o.resolve)(t),o.promise}}),e3=i.cw(function(e,t){var n=e1(),r=y();e.exports=e0().CONSTRUCTOR||!r(function(e){n.all(e).then(void 0,function(){})})}),e4=()=>i(265),e5=i.cw(function(e,t){var n=ey(),r=TypeError;e.exports=function(e){if(n(e))throw new r("Can't call method on "+e);return e}}),e6=i.cw(function(e,t){var n=er(),r=I(),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return n[e];var t=i(n,e);return t&&t.value}}),e8=i.cw(function(e,t){var n,r=er(),i=W(),o=ep(),a=U(),s=F(),l=h(),u=tS(),c=r.Function,d=/MSIE .\./.test(s)||"BUN"===a&&((n=r.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var n=t?2:1;return d?function(r,a){var s=u(arguments.length,1)>n,d=o(r)?r:c(r),f=s?l(arguments,n):[],h=s?function(){i(d,this,f)}:d;return t?e(h,a):e(h)}:e}}),e9=i.cw(function(e,t){var n=Q(),r=O(),i=tT(),o=I(),a=i("species");e.exports=function(e){var t=n(e);o&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}}),e7=i.cw(function(e,t){var n=eF().f,r=ei(),i=tT()("toStringTag");e.exports=function(e,t,o){e&&!o&&(e=e.prototype),e&&!r(e,i)&&n(e,i,{configurable:!0,value:t})}}),te=i.cw(function(e,t){var n=tn(),r=tx(),i=n("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}}),tt=i.cw(function(e,t){var n=ew(),r=er(),i=C(),o="__core-js_shared__",a=e.exports=r[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),tn=i.cw(function(e,t){var n=tt(),r=Object.create||Object;e.exports=function(e,t){return n[e]||(n[e]=t||r(null))}}),tr=i.cw(function(e,n){var r=s(),i=t(),o=ey(),a=tT()("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}}),ti=i.cw(function(e,t){var n=J(),r=th(),i=tb(),o=e5(),a=n("".charAt),s=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,n){var u,c,d=i(o(t)),f=r(n),h=d.length;return f<0||f>=h?e?"":void 0:(u=s(d,f))<55296||u>56319||f+1===h||(c=s(d,f+1))<56320||c>57343?e?a(d,f):u:e?l(d,f,f+2):c-56320+(u-55296<<10)+65536}};e.exports={...void u(!1),o:u(!0)}}),to=i.cw(function(e,t){var n=J(),r=e5(),i=tb(),o=tC(),a=n("".replace),s=RegExp("^["+o+"]+"),l=RegExp("(^|[^"+o+"])["+o+"]+$"),u=function(e){return function(t){var n=i(r(t));return 1&e&&(n=a(n,s,"")),2&e&&(n=a(n,l,"$1")),n}};e.exports={...void u(1),...void u(2),Bq:u(3)}}),ta=i.cw(function(e,t){var n=B(),r=H(),i=er().String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})}),ts=i.cw(function(e,t){var n=Z(),r=Q(),i=tT(),o=j();e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,a=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&o(t,s,function(e){return n(a,this)},{arity:1}
58)}}),tl=i.cw(function(e,t){e.exports=ta()&&!!Symbol.for&&!!Symbol.keyFor}),tu=i.cw(function(e,t){var n,r,i,o,a=er(),s=W(),l=V(),u=ep(),c=ei(),d=H(),f=ea(),p=h(),m=P(),g=tS(),y=M(),v=D(),b=a.setImmediate,w=a.clearImmediate,x=a.process,_=a.Dispatch,k=a.Function,S=a.MessageChannel,E=a.String,O=0,j={},T="onreadystatechange";d(function(){n=a.location});var C=function(e){if(c(j,e)){var t=j[e];delete j[e],t()}},I=function(e){return function(){C(e)}},A=function(e){C(e.data)},R=function(e){a.postMessage(E(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){g(arguments.length,1);var t=u(e)?e:k(e),n=p(arguments,1);return j[++O]=function(){s(t,void 0,n)},r(O),O},w=function(e){delete j[e]},v?r=function(e){x.nextTick(I(e))}:_&&_.now?r=function(e){_.now(I(e))}:S&&!y?(o=(i=new S).port2,i.port1.onmessage=A,r=l(o.postMessage,o)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(R)?(r=R,a.addEventListener("message",A,!1)):r=T in m("script")?function(e){f.appendChild(m("script"))[T]=function(){f.removeChild(this),C(e)}}:function(e){setTimeout(I(e),0)}),e.exports={h:b}}),tc=i.cw(function(e,t){e.exports=J()(1.1.valueOf)}),td=i.cw(function(e,t){var n=th(),r=Math.max,i=Math.min;e.exports=function(e,t){var o=n(e);return o<0?r(o+t,0):i(o,t)}}),tf=i.cw(function(e,t){var n=el(),r=e5();e.exports=function(e){return n(r(e))}}),th=i.cw(function(e,t){var n=i(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}}),tp=i.cw(function(e,t){var n=th(),r=Math.min;e.exports=function(e){var t=n(e);return t>0?r(t,0x1fffffffffffff):0}}),tm=i.cw(function(e,t){var n=e5(),r=Object;e.exports=function(e){return r(n(e))}}),tg=i.cw(function(e,t){var n=Z(),r=ev(),i=e_(),o=en(),a=eY(),s=tT(),l=TypeError,u=s("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),!r(s=n(c,e,t))||i(s))return s;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}}),ty=i.cw(function(e,t){var n=tg(),r=e_();e.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}}),tv=i.cw(function(e,t){var n={};n[tT()("toStringTag")]="z",e.exports="[object z]"===String(n)}),tb=i.cw(function(e,t){var n=b(),r=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}}),tw=()=>i(823),tx=i.cw(function(e,t){var n=J(),r=0,i=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+i,36)}}),t_=i.cw(function(e,t){e.exports=ta()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),tk=i.cw(function(e,t){var n=I(),r=H();e.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),tS=i.cw(function(e,t){var n=TypeError;e.exports=function(e,t){if(e<t)throw new n("Not enough arguments");return e}}),tE=i.cw(function(e,t){var n=er(),r=ep(),i=n.WeakMap;e.exports=r(i)&&/native code/.test(String(i))}),tO=i.cw(function(e,t){var n=eQ(),r=ei(),i=tj(),o=eF().f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});r(t,e)||o(t,e,{value:i.f(e)})}}),tj=i.cw(function(e,t){t.f=tT()}
vendor: 1,298 bytes, line 58
58),tT=i.cw(function(e,t){var n=er(),r=tn(),i=ei(),o=tx(),a=ta(),s=t_(),l=n.Symbol,u=r("wks"),c=s?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:c("Symbol."+e)),u[e]}}),tC=i.cw(function(e,t){e.exports="	\n\v\f\r                 \u2028\u2029\uFEFF"}),tI=i.cw(function(e,t){var n=$(),r=c().pb;n({target:"Array",proto:!0,forced:!d()("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})}),tP=i.cw(function(e,t){var n=$(),r=l();n({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})}),tA=i.cw(function(e,t){var n=$(),r=X(),i=u().q,o=f(),a=r([].indexOf),s=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:s||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return s?a(this,e,t)||0:i(this,e,t)}})}),tR=i.cw(function(e,t){var n=tf(),o=r(),a=eP(),s=ed(),l=eF().f,u=eT(),c=i(529),d=ew(),f=I(),h="Array Iterator",p=s.set,m=s.getterFor(h);e.exports=u(Array,"Array",function(e,t){p(this,{type:h,target:n(e),index:0,kind:t})},function(){var e=m(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)},"values");var g=a.Arguments=a.Array;
58if(o("keys"),o("values"),o("entries"),!d&&f&&"values"!==g.name)try{l(g,"name",{value:"values"})}catch(e){}}),tN=i.cw(function(e,t){var n=ei(),r=j(),i=E(),o=tT()("toPrimitive"),a=Date.prototype;n(a,o)||r(a,o,i)}),tM=i.cw(function(e,t){var n=$(),r=K();n({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})}),tD=i.cw(function(e,t){var n=$(),r=er(),i=a(),o=s(),l=ep(),u=eH(),c=O(),d=S(),f=H(),h=ei(),p=tT(),m=eI().IteratorPrototype,g=I(),y=ew(),v="constructor",b="Iterator",w=p("toStringTag"),x=TypeError,_=r[b],k=y||!l(_)||_.prototype!==m||!f(function(){_({})}),E=function(){if(i(this,m),u(this)===m)throw new x("Abstract class Iterator not directly constructable")},j=function(e,t){g?c(m,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===m)throw new x("You can't redefine this property");h(this,e)?this[e]=t:d(this,e,t)}}):m[e]=t};h(m,w)||j(w,b),!k&&h(m,v)&&m[v]!==Object||j(v,E),E.prototype=m,n({global:!0,constructor:!0,forced:k},{Iterator:E})}),tL=i.cw(function(t,n){var r=$(),o=Z(),a=e(),l=s(),u=i(767),c=ej(),d=g(),f=ew(),h=eE(),p=i(684),m=eC(),y=!f&&!p("filter",function(){}),v=!f&&!y&&m("filter",TypeError),b=f||y||v,w=c(function(){for(var e,t,n=this.iterator,r=this.predicate,i=this.next;;){if(e=l(o(i,n)),this.done=!!e.done)return;if(d(n,r,[t=e.value,this.counter++],!0))return t}});r({target:"Iterator",proto:!0,real:!0,forced:b},{filter:function(e){l(this);try{a(e)}catch(e){h(this,"throw",e)}return v?o(v,this,e):new w(u(this),{predicate:e})}})}),tz=i.cw(function(t,n){var r=$(),o=Z(),a=ek(),l=e(),u=s(),c=i(767),d=eE(),f=eC()("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(e){u(this);try{l(e)}catch(e){d(this,"throw",e)}if(f)return o(f,this,e);var t=c(this),n=0;a(t,function(t){e(t,n++)},{IS_RECORD:!0})}})}),tF=i.cw(function(e,t){var n=$(),r=Q(),i=Z(),o=J(),a=H(),s=eh(),l=ep(),c=ev(),d=eL(),f=ex(),h=e_(),p=v(),m=tc(),g=u().m,y=ei(),b=tb(),w=eJ(),x=tx(),_=ta(),k=eM(),S=String,E=TypeError,O=r("JSON","stringify"),j=r("BigInt"),T=o("".valueOf),C=o((!0).valueOf),I=j&&o(j.prototype.valueOf),P=o(/./.exec),A=o("".charAt),R=o("".charCodeAt),N=o("".replace),M=o("".slice),D=o([].push),z=o([].pop),F=o(1.1.toString),B=/[\uD800-\uDFFF]/g,U=/^[\uD800-\uDBFF]$/,W=/^[\uDC00-\uDFFF]$/,V=/^\d+$/,q=x(),K=x(),G=x(),Y=q.length,X=K.length,ee=!_||a(function(){var e=r("Symbol")("stringify detection");return"[null]"!==O([e])||"{}"!==O({a:e})||"{}"!==O(Object(e))}),et=a(function(){return'"\\udf06\\ud834"'!==O("\uDF06\uD834")||'"\\udead"'!==O("\uDEAD")}),en=k?r("JSON","isRawJSON"):f,er=ee?function(e,t,n){return O(e,function(e,n){var r=i(t,this,e,n);if(!h(r))return r},n)}:O,eo=function(e,t,n){var r=A(n,t-1),i=A(n,t+1);return P(U,e)&&!P(W,i)||P(W,e)&&!P(U,r)?"\\u"+F(R(e,0),16):e},ea=function(e,t){try{return e(t),!0}catch(e){return!1}},es=function(e,t){return{toJSON:function(){var n=e[t];if(c(n)||"bigint"==typeof n){var r=n.toJSON;l(r)&&(n=i(r,n,t))}return n}}};O&&n({target:"JSON",stat:!0,arity:3,forced:ee||et||!k},{stringify:function(e,t,n){var r,o=l(t)?t:void 0,a=o?void 0:function(e){if(s(e)){for(var t=e.length,n=[],r=d(null),i=0;i<t;i++){var o,a=e[i];if("string"==typeof a)o=a;else{if("number"!=typeof a&&"Number"!==p(a)&&"String"!==p(a))continue;o=b(a)}y(r,o)||(r[o]=!0,D(n,o))}return n}}(t),u=a&&function(e){for(var t=0,n=e.length;t<n;t++)if(P(V,e[t]))return K;return""}(a),f=[],h=[],v=[],x=!1,_=!0,O=er(e,function(e,t){if(e=S(e),a){if(e===G)return z(h),void(r=z(v));if(_)_=!1;else if(this!==r&&!s(this)&&!g(a,e))return}else o&&(t=i(o,this,e,t));if(en(t))return k?t:(x=!0,q+(D(f,t.rawJSON)-1));if(a&&function(e){if(!c(e)||l(e)||s(e))return!1;try{var t;return t=p(e),!("Number"===t&&ea(m,e)||"String"===t&&ea(T,e)||"Boolean"===t&&ea(C,e)||I&&"BigInt"===t&&ea(I,e))}catch(e){return!0}}(t)){if(g(h,t))throw new E("Converting circular structure to JSON");var n=function(e,t,n){for(var r=d(null),i=0,o=t.length;i<o;i++){var a=t[i];r[n+a]=es(e,a)}return r[G]=null,r}(t,a,u);return D(h,t),D(v,r),r=n,u&&(x=!0),n}return t},n);if("string"!=typeof O||(et&&(O=N(O,B,eo)),!x))return O;for(var j="",R=O.length,F=0;F<R;F++){var U=A(O,F);if('"'===U){var $=w(O,++F).end-1,H=M(O,F,$);M(H,0,Y)===q?j+=f[M(H,Y)]:M(H,0,X)===K?j+='"'+M(H,X)+'"':j+='"'+H+'"',F=$}else j+=U}return j}})}),tB=i.cw(function(e,t){var n=$(),r=ew(),i=I(),o=er(),a=eQ(),s=J(),l=eg(),u=ei(),c=eu(),d=eW(),f=e_(),h=tg(),p=H(),m=e$().f,g=eB().f,y=eF().f,v=tc(),b=to().Bq,w="Number",x=o[w],_=a[w],k=x.prototype,S=o.TypeError,E=s("".slice),O=s("".charCodeAt),j=l(w,!x(" 0o1")||!x("0b1")||x("+0x1")),T=function(e){var t,n,r=arguments.length<1?0:x("bigint"==typeof(t=h(e,"number"))?t:function(e){var t,n,r,i,o,a,s,l,u=h(e,"number");if(f(u))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2){if(43===(t=O(u=b(u),0))||45===t){if(88===(n=O(u,2))||120===n)return NaN}else if(48===t){switch(O(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=E(u,2)).length,s=0;s<a;s++)if((l=O(o,s))<48||l>i)return NaN;return parseInt(o,r)}}return+u}(t));return d(k,n=this)&&p(function(){v(n)})?c(Object(r),this,T):r};T.prototype=k,j&&!r&&(k.constructor=T),n({global:!0,constructor:!0,wrap:!0,forced:j},{Number:T});var C=function(e,t){for(var n,r=i?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>
58o;o++)u(t,n=r[o])&&!u(e,n)&&y(e,n,g(t,n))};r&&_&&C(a[w],_),(j||r)&&C(a[w],x)}),tU=i.cw(function(e,t){$()({target:"Object",stat:!0,sham:!I()},{create:eL()})}),t$=i.cw(function(e,t){var n=$(),r=I(),i=ez().f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!r},{defineProperties:i})}),tH=i.cw(function(e,t){var n=$(),r=I(),i=eF().f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!r},{defineProperty:i})}),tW=i.cw(function(e,t){var n=$(),r=H(),i=tf(),o=eB().f,a=I();n({target:"Object",stat:!0,forced:!a||r(function(){o(1)}),sham:!a},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})}),tV=i.cw(function(e,t){var n=$(),r=I(),i=eX(),o=tf(),a=eB(),s=S();n({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),l=a.f,u=i(r),c={},d=0;u.length>d;)void 0!==(n=l(r,t=u[d++]))&&s(c,t,n);return c}})}),tq=i.cw(function(e,t){var n=$(),r=ta(),i=H(),o=nf(),a=tm();n({target:"Object",stat:!0,forced:!r||i(function(){o.f(1)})},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(a(e)):[]}})}),tK=i.cw(function(e,t){var n=$(),r=H(),i=tm(),o=eH(),a=x();n({target:"Object",stat:!0,forced:r(function(){o(1)}),sham:!a},{getPrototypeOf:function(e){return o(i(e))}})}),tZ=i.cw(function(e,t){var n=$(),r=tm(),i=eq();n({target:"Object",stat:!0,forced:H()(function(){i(1)})},{keys:function(e){return i(r(e))}})}),tG=i.cw(function(e,t){$()({target:"Object",stat:!0},{setPrototypeOf:eZ()})}),tY=i.cw(function(e,t){var n=tv(),r=j(),i=eG();n||r(Object.prototype,"toString",i,{unsafe:!0})}),tX=i.cw(function(t,n){var r=$(),o=Z(),a=e(),s=eD(),l=i(103),u=ek();r({target:"Promise",stat:!0,forced:e3()},{all:function(e){var t=this,n=s.f(t),r=n.resolve,i=n.reject,c=l(function(){var n=a(t.resolve),s=[],l=0,c=1;u(e,function(e){var a=l++,u=!1;c++,o(n,t,e).then(function(e){u||(u=!0,s[a]=e,--c||r(s))},i)}),--c||r(s)});return c.error&&i(c.value),n.promise}})}),tJ=i.cw(function(e,t){var n=$(),r=ew(),i=e0().CONSTRUCTOR,o=e1(),a=Q(),s=ep(),l=j(),u=o&&o.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&s(o)){var c=a("Promise").prototype.catch;u.catch!==c&&l(u,"catch",c,{unsafe:!0})}}),tQ=i.cw(function(t,n){var r,o,s,l,u=$(),c=ew(),d=D(),f=er(),h=eQ(),p=Z(),m=j(),g=eZ(),y=e7(),v=e9(),b=e(),w=ep(),x=ev(),_=a(),k=tr(),S=tu().h,E=eN(),O=i(757),T=i(103),C=e4(),I=ed(),P=e1(),A=e0(),R=eD(),N="Promise",M=A.CONSTRUCTOR,z=A.REJECTION_EVENT,F=A.SUBCLASSING,B=I.getterFor(N),U=I.set,H=P&&P.prototype,W=P,V=H,q=f.TypeError,K=f.document,G=f.process,Y=R.f,X=Y,J=!!(K&&K.createEvent&&f.dispatchEvent),Q="unhandledrejection",ee=function(e){var t;return!(!x(e)||!w(t=e.then))&&t},et=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&es(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?u(new q("Promise-chain cycle")):(r=ee(n))?p(r,n,l,u):l(n)):u(o)}catch(e){c&&!i&&c.exit(),u(e)}},en=function(e,t){e.notified||(e.notified=!0,E(function(){for(var n,r=e.reactions;n=r.get();)et(n,e);e.notified=!1,t&&!e.rejection&&eo(e)}))},ei=function(e,t,n){var r,i;J?((r=K.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),f.dispatchEvent(r)):r={promise:t,reason:n},!z&&(i=f["on"+e])?i(r):e===Q&&O("Unhandled promise rejection",n)},eo=function(e){p(S,f,function(){var t,n=e.facade,r=e.value;if(ea(e)&&(t=T(function(){d?G.emit("unhandledRejection",r,n):ei(Q,n,r)}),e.rejection=d||ea(e)?2:1,t.error))throw t.value})},ea=function(e){return 1!==e.rejection&&!e.parent},es=function(e){p(S,f,function(){var t=e.facade;d?G.emit("rejectionHandled",t):ei("rejectionhandled",t,e.value)})},el=function(e,t,n){return function(r){e(t,r,n)}},eu=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,en(e,!0))},ec=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new q("Promise can't be resolved itself");var r=ee(t);r?E(function(){var n={done:!1};try{p(r,t,el(ec,n,e),el(eu,n,e))}catch(t){eu(n,t,e)}}):(e.value=t,e.state=1,en(e,!1))}catch(t){eu({done:!1},t,e)}}};if(M&&(V=(W=function(e){_(this,V),b(e),p(r,this);var t=B(this);try{e(el(ec,t),el(eu,t))}catch(e){eu(t,e)}}).prototype,(r=function(e){U(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=m(V,"then",function(e,t){var n=B(this),r=Y(k(this,W));return n.parent=!0,r.ok=!w(e)||e,r.fail=w(t)&&t,r.domain=d?G.domain:void 0,0===n.state?n.reactions.add(r):E(function(){et(r,n)}),r.promise}),o=function(){var e=new r,t=B(e);this.promise=e,this.resolve=el(ec,t),this.reject=el(eu,t)},R.f=Y=function(e){return e===W||e===s?new o(e):X(e)},!c&&w(P)&&H!==Object.prototype)){l=H.then,F||m(H,"then",function(e,t){var n=this;return new W(function(e,t){p(l,n,e,t)}).then(e,t)},{unsafe:!0});try{delete H.constructor}catch(e){}g&&g(H,V)}u({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:W}),s=h.Promise,y(W,N,!1,!0),v(N)}),t0=i.cw(function(e,t){tQ(),tX(),tJ(),t1(),t2(),t3()}),t1=i.cw(function(t,n){var r=$(),o=Z(),a=e(),s=eD(),l=i(103),u=ek();r({target:"Promise",stat:!0,forced:e3()},{race:function(e){var t=this,n=s.f(t),r=n.reject,i=l(function(){var i=a(t.resolve);u(e,function(e){o(i,t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})}),t2=i.cw(function(e,t){var n=$(),r=eD();n({target:"Promise",stat:!0,forced:e0().CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})}),t3=i.cw(function(e,t){var n=$(),r=Q(),i=ew(),o=e1(),a=e0().CONSTRUCTOR,s=e2(),l=r("Promise"),u=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return s(u&&this===l?o:this,e)}})}),t4=i.cw(function(e,n){var r=$(),i=Q(),o=W(),a=K(),l=t(),u=s(),c=ev(),d=eL(),f=H(),h=i("Reflect","construct"),p=Object.prototype,m=[].push,g=f(function(){function e(){}return!(h(function(){},[],e)instanceof e)}),y=!f(function(){h(function(){})}),v=g||y;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){l(e);var n=arguments.length<3?e:l(arguments[2]);if(u(t),y&&!g)return h(e,t,n);if(e===n){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])}
vendor: 4,113 bytes, line 58
58var r=[null];return o(m,r,t),new(o(a,e,r))}var i=n.prototype,s=d(c(i)?i:p),f=o(e,s,t);return c(f)?f:s}})}),t5=i.cw(function(e,t){var n=ti().o,r=tb(),o=ed(),a=eT(),s=i(529),l="String Iterator",u=o.set,c=o.getterFor(l);a(String,"String",function(e){u(this,{type:l,string:r(e),index:0})},function(){var e,t=c(this),r=t.string,i=t.index;return i>=r.length?s(void 0,!0):(e=n(r,i),t.index+=e.length,s(e,!1))})}),t6=i.cw(function(e,t){tO()("asyncIterator")}),t8=i.cw(function(e,t){var n=$(),r=er(),i=Z(),o=J(),a=ew(),l=I(),u=ta(),d=H(),f=ei(),h=eW(),p=s(),m=tf(),g=ty(),y=tb(),v=k(),b=eL(),w=eq(),x=e$(),_=eU(),S=nf(),E=eB(),T=eF(),C=ez(),P=eK(),A=j(),R=O(),N=tn(),M=te(),D=eo(),z=tx(),F=tT(),B=tj(),U=tO(),W=ts(),V=e7(),q=ed(),K=c().jJ,G=M("hidden"),Y="Symbol",X="prototype",Q=q.set,ee=q.getterFor(Y),et=Object[X],en=r.Symbol,ea=en&&en[X],es=r.RangeError,el=r.TypeError,eu=r.QObject,ec=E.f,ef=T.f,eh=_.f,ep=P.f,em=o([].push),eg=N("symbols"),ey=N("op-symbols"),ev=N("wks"),eb=!eu||!eu[X]||!eu[X].findChild,ex=function(e,t,n){var r=ec(et,t);return r&&delete et[t],ef(e,t,n),r&&e!==et&&ef(et,t,r),e},e_=l&&d(function(){return 7!==b(ef({},"a",{get:function(){return ef(this,"a",{value:7}).a}})).a})?ex:ef,ek=function(e,t){var n=eg[e]=b(ea);return Q(n,{type:Y,tag:e,description:t}),l||(n.description=t),n},eS=function(e,t,n){e===et&&eS(ey,t,n),p(e);var r=g(t);return p(n),f(eg,r)?(("enumerable"in n?!n.enumerable:!f(e,r)||f(e,G)&&e[G][r])?(f(e,G)||ef(e,G,v(1,b(null))),e[G][r]=!0):(f(e,G)&&e[G][r]&&(e[G][r]=!1),n=b(n,{enumerable:v(0,!1)})),e_(e,r,n)):ef(e,r,n)},eE=function(e,t){p(e);var n=m(t);return K(w(n).concat(eC(n)),function(t){l&&!i(eO,n,t)||eS(e,t,n[t])}),e},eO=function(e){var t=g(e),n=i(ep,this,t);return!(this===et&&f(eg,t)&&!f(ey,t))&&(!(n||!f(this,t)||!f(eg,t)||f(this,G)&&this[G][t])||n)},ej=function(e,t){var n=m(e),r=g(t);if(n!==et||!f(eg,r)||f(ey,r)){var i=ec(n,r);return!i||!f(eg,r)||f(n,G)&&n[G][r]||(i.enumerable=!0),i}},eT=function(e){var t=eh(m(e)),n=[];return K(t,function(e){f(eg,e)||f(D,e)||em(n,e)}),n},eC=function(e){var t=e===et,n=eh(t?ey:m(e)),r=[];return K(n,function(e){f(eg,e)&&(!t||f(et,e))&&em(r,eg[e])}),r};u||(A(ea=(en=function(){if(h(ea,this))throw new el("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=z(e),n=function(e){var o=void 0===this?r:this;o===et&&i(n,ey,e),f(o,G)&&f(o[G],t)&&(o[G][t]=!1);var a=v(1,e);try{e_(o,t,a)}catch(e){if(!(e instanceof es))throw e;ex(o,t,a)}};return l&&eb&&e_(et,t,{configurable:!0,set:n}),ek(t,e)})[X],"toString",function(){return ee(this).tag}),A(en,"withoutSetter",function(e){return ek(z(e),e)}),P.f=eO,T.f=eS,C.f=eE,E.f=ej,x.f=_.f=eT,S.f=eC,B.f=function(e){return ek(F(e),e)},l&&(R(ea,"description",{configurable:!0,get:function(){return ee(this).description}}),a||A(et,"propertyIsEnumerable",eO,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:en}),K(w(ev),function(e){U(e)}),n({target:Y,stat:!0,forced:!u},{useSetter:function(){eb=!0},useSimple:function(){eb=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?b(e):eE(b(e),t)},defineProperty:eS,defineProperties:eE,getOwnPropertyDescriptor:ej}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:eT}),W(),V(en,Y),D[G]=!0}),t9=i.cw(function(e,t){var n=$(),r=I(),i=er(),o=Z(),a=J(),s=ei(),l=ep(),u=eW(),c=tb(),d=O(),f=w(),h=i.Symbol,p=h&&h.prototype;if(r&&l(h)&&(!("description"in p)||void 0!==h().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};f(g,h);var y=g.for;g.for=({for:function(e){var t=c(e),n=o(y,this,t);return""===t&&(m[n]=!0),n}}).for,g.prototype=p,p.constructor=g;var v="Symbol(description detection)"===String(h("description detection")),b=a(p.valueOf),x=a(p.toString),_=/^Symbol\((.*)\)[^)]+$/,k=a("".replace),S=a("".slice);d(p,"description",{configurable:!0,get:function(){var e=b(this);if(s(m,e))return"";var t=x(e),n=v?S(t,7,-1):k(t,_,"$1");return""===n?void 0:n}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}}
58),t7=i.cw(function(e,t){var n=$(),r=Q(),i=ei(),o=tb(),a=tn(),s=tl(),l=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{for:function(e){var t=o(e);if(i(l,t))return l[t];var n=r("Symbol")(t);return l[t]=n,u[n]=t,n}})}),ne=i.cw(function(e,t){tO()("iterator")}),nt=i.cw(function(e,t){t8(),t7(),nn(),tF(),tq()}),nn=i.cw(function(e,t){var n=$(),r=ei(),i=e_(),o=tw(),a=tn(),s=tl(),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(r(l,e))return l[e]}})}),nr=i.cw(function(e,t){var n=tO(),r=ts();n("toPrimitive"),r()}),ni=i.cw(function(e,t){tD()}),no=i.cw(function(e,t){tL()}),na=i.cw(function(e,t){tz()}),ns=i.cw(function(e,t){var n=er(),r=nh(),i=A(),o=l(),a=_(),s=function(e){if(e&&e.forEach!==o)try{a(e,"forEach",o)}catch(t){e.forEach=o}};for(var u in r)r[u]&&s(n[u]&&n[u].prototype);s(i)}),nl=i.cw(function(e,t){var n=er(),r=nh(),i=A(),o=tR(),a=_(),s=e7(),l=tT()("iterator"),u=o.values,c=function(e,t){if(e){if(e[l]!==u)try{a(e,l,u)}catch(t){e[l]=u}if(s(e,t,!0),r[t]){for(var n in o)if(e[n]!==o[n])try{a(e,n,o[n])}catch(t){e[n]=o[n]}}}};for(var d in r)c(n[d]&&n[d].prototype,d);c(i,"DOMTokenList")}),nu=i.cw(function(e,t){var n=$(),r=er(),i=e8()(r.setInterval,!0);n({global:!0,bind:!0,forced:r.setInterval!==i},{setInterval:i})}),nc=i.cw(function(e,t){var n=$(),r=er(),i=e8()(r.setTimeout,!0);n({global:!0,bind:!0,forced:r.setTimeout!==i},{setTimeout:i})}),nd=i.cw(function(e,t){nu(),nc()});function nf(){return nf.c||(nf.c=i.t(i(717),2))}function nh(){return nh.c||(nh.c=i.t(i(400),2))}nt(),t9(),t6(),ne(),tI(),nr(),tP(),tA(),tR(),tN(),tM(),tB(),tU(),t$(),tH(),tW(),tV(),tK(),tZ(),tG(),tY(),t0(),t4(),t5(),ni(),no(),na(),ns(),nl(),nd();var np=i(365);function nm(e){return(nm="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})(e)}var ng=["interval"],ny=["interval"];function nv(e,t){if(null==e)return{};var n,r,i=function(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}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nb(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 nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(n),!0).forEach(function(t){nP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nx(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=Object.create((r&&r.prototype instanceof s?r:s).prototype);return n_(l,"_invoke",function(n,r,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],h=f.p,p=o[2];n>3?(i=p===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(s=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),s=c,l=p;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),l}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=u.prototype=s.prototype=Object.create([][r]?t(t([][r]())):(n_(t={},r,function(){return this}),t));function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,n_(e,i,"GeneratorFunction")),e.prototype=Object.create(c),e}return l.prototype=u,n_(c,"constructor",u),n_(u,"constructor",l),l.displayName="GeneratorFunction",n_(u,i,"GeneratorFunction"),n_(c),n_(c,i,"Generator"),n_(c,r,function(){return this}),n_(c,"toString",function(){return"[object Generator]"}),(nx=function(){return{w:o,m:d}})()}function n_(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(n_=function(e,t,n,r){function o(t,n){n_(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function nk(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,nA(r.key),r)}}function nS(e,t,n){return t&&nk(e.prototype,t),n&&nk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nE(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function nO(e,t,n){return t=nT(t),function(e,t){if(t&&("object"==nm(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e,nj()?Reflect.construct(t,n||[],nT(e).constructor):t.apply(e,n))}function nj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nj=function(){return!!e})()}function nT(e){return(nT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nC(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nI(e,t)}
58function nI(e,t){return(nI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nP(e,t,n){return(t=nA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nA(e){var t=function(e){if("object"!=nm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nm(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nm(t)?t:t+""}function nR(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function nN(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){nR(o,r,i,a,s,"next",e)}function s(e){nR(o,r,i,a,s,"throw",e)}a(void 0)})}}function nM(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(nM=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new nM(e)}function nD(e){return new Promise(function(t){setTimeout(function(){t()},1e3*e)})}function nL(e){return nz.apply(this,arguments)}function nz(){return(nz=nN(nx().m(function e(t){var n,r,i,o;return nx().w(function(e){for(;;)switch(e.n){case 0:return r=void 0===(n=t.interval)?5:n,i=nv(t,ng),e.n=1,this.create(i);case 1:o=e.v;case 2:if(o.redirect){e.n=5;break}return e.n=3,nD(r);case 3:return e.n=4,o.reload();case 4:e.n=2;break;case 5:return e.a(2,o.redirect)}},e,this)}))).apply(this,arguments)}function nF(e){return nB.apply(this,arguments)}function nB(){return(nB=nN(nx().m(function e(t){var n,r,i,o;return nx().w(function(e){for(;;)switch(e.n){case 0:return r=void 0===(n=t.interval)?5:n,i=nv(t,ny),e.n=1,this.create(i);case 1:o=e.v;case 2:if("succeeded"===o.get("status")){e.n=5;break}return e.n=3,nD(r);case 3:return e.n=4,o.reload();case 4:e.n=2;break;case 5:return e.a(2)}},e,this)}))).apply(this,arguments)}var nU=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.JsonApi);nP(nU,"HOST","https://rest.api.transifex.com");var n$=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(n$,"TYPE","organizations"),nU.register(n$,"Organization");var nH=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(nH,"TYPE","users"),nU.register(nH,"User");var nW=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(nW,"TYPE","languages"),nU.register(nW,"Language");var nV=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(nV,"TYPE","projects"),nU.register(nV,"Project");var nq=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(nq,"TYPE","project_webhooks"),nU.register(nq,"ProjectWebhook");var nK=function(e){var t,n;function r(){return nE(this,r),nO(this,r,arguments)}return nC(r,e),nS(r,[{key:"purge",value:(n=nN(nx().m(function e(){var t,n,r,i,o,a,s,l;return nx().w(function(e){for(;;)switch(e.p=e.n){case 0:t=0,n=!1,r=!1,e.p=1,o=function(e){var t,n,r,i=2;for("u">typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new nM(t.call(e));n="@@asyncIterator",r="@@iterator"}throw TypeError("Object is not async iterable")}(this.constructor.API.ResourceString.filter({resource:this}).allPages());case 2:return e.n=3,o.next();case 3:if(!(n=!(a=e.v).done)){e.n=5;break}return s=a.value,t+=s.data.length,e.n=4,this.constructor.API.ResourceString.bulkDelete(s.data);case 4:n=!1,e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,l=e.v,r=!0,i=l;case 7:if(e.p=7,e.p=8,!n||null==o.return){e.n=9;break}return e.n=9,o.return();case 9:if(e.p=9,!r){e.n=10;break}throw i;case 10:return e.f(9);case 11:return e.f(7);case 12:return e.a(2,t)}},e,this,[[8,,9,11],[1,6,7,12]])})),function(){return n.apply(this,arguments)})},{key:"downloadSource",value:(t=nN(nx().m(function e(){var t,n=arguments;return nx().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,this.constructor.API.ResourceStringsAsyncDownload.download(nw({resource:this},t)))},e,this)})),function(){return t.apply(this,arguments)})}])}(np.Resource);nP(nK,"TYPE","resources"),nU.register(nK,"Resource");var nZ=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(nZ,"TYPE","resource_strings"),nU.register(nZ,"ResourceString");var nG=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"download",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nL.call(this,nw({content_encoding:"text",file_type:"default"},t)))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(nG,"TYPE","resource_strings_async_downloads"),nU.register(nG,"ResourceStringsAsyncDownload");var nY=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"upload",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nF.call(this,nw({content_encoding:"text"},t)))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(nY,"TYPE","resource_strings_async_uploads"),nU.register(nY,"ResourceStringsAsyncUpload");var nX=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(nX,"TYPE","resource_string_comments"),nU.register(nX,"ResourceStringComment");var nJ=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(nJ,"TYPE","i18n_formats"),nU.register(nJ,"I18nFormat");var nQ=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(nQ,"TYPE","context_screenshot_maps"),nU.register(nQ,"ContextScreenshotMap");var n0=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(n0,"TYPE","context_screenshots"),nU.register(n0,"ContextScreenshot");var n1=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"download",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nL.call(this,t))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(n1,"TYPE","organization_activity_reports_async_downloads"),nU.register(n1,"OrganizationActivityReportsAsyncDownload");var n2=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"download",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nL.call(this,t))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(n2,"TYPE","project_activity_reports_async_downloads"),nU.register(n2,"ProjectActivityReportsAsyncDownload");var n3=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"download",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nL.call(this,t))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(n3,"TYPE","resource_activity_reports_async_downloads"),nU.register(n3,"ResourceActivityReportsAsyncDownload");var n4=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"download",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nL.call(this,t))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(n4,"TYPE","team_activity_reports_async_downloads"),nU.register(n4,"TeamActivityReportsAsyncDownload");var n5=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(n5,"TYPE","resource_language_stats"),nU.register(n5,"ResourceLanguageStats");var n6=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(n6,"TYPE","resource_translations"),nU.register(n6,"ResourceTranslation");var n8=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"download",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nL.call(this,nw({content_encoding:"text",file_type:"default",mode:"default"},t)))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(n8,"TYPE","resource_translations_async_downloads"),nU.register(n8,"ResourceTranslationsAsyncDownload");var n9=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"upload",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nF.call(this,nw({content_encoding:"text",file_type:"default"},t)))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(n9,"TYPE","resource_translations_async_uploads"),nU.register(n9,"ResourceTranslationsAsyncUpload");var n7=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(n7,"TYPE","team_memberships"),nU.register(n7,"TeamMembership");var re=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(re,"TYPE","teams"),nU.register(re,"Team");var rt=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"download",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nL.call(this,nw({callback_url:null},t)))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(rt,"TYPE","tmx_async_downloads"),nU.register(rt,"TmxAsyncDownload");var rn=function(e){var t;function n(){return nE(this,n),nO(this,n,arguments)}return nC(n,e),nS(n,null,[{key:"upload",value:(t=nN(nx().m(function e(t){return nx().w(function(e){for(;;)if(0===e.n)return e.a(2,nF.call(this,nw({content_encoding:"text"},t)))},e,this)})),function(e){return t.apply(this,arguments)})}])}(np.Resource);nP(rn,"TYPE","tmx_async_uploads"),nU.register(rn,"TmxAsyncUpload");var rr=function(e){function t(){return nE(this,t),nO(this,t,arguments)}return nC(t,e),nS(t)}(np.Resource);nP(rr,"TYPE","resource_strings_revisions"),nU.register(rr,"ResourceStringsRevision");var ri=new nU})(),o})();var lV={};let lq=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);lV=e=>!lq.has(e&&e.code);let lK="axios-retry";function lZ(e){return!(e.response||!e.code||["ERR_CANCELED","ECONNABORTED"].includes(e.code))&&ei(lV)(e)}let lG=["get","head","options"],lY=lG.concat(["put","delete"]);function lX(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function lJ(e){return!!e.config?.method&&lX(e)&&-1!==lY.indexOf(e.config.method)}function lQ(e){return lZ(e)||lJ(e)}function l0(e){let t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}function l1(e=0,t,n=100){let r=Math.max(2**e*n,l0(t)),i=.2*r*Math.random();return r+i}let l2={retries:3,retryCondition:lQ,retryDelay:function(e=0,t){return Math.max(0,l0(t))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function l3(e,t,n=!1){var r;let i=(r=t||{},{...l2,...r,...e[lK]});return i.retryCount=i.retryCount||0,(!i.lastRequestTime||n)&&(i.lastRequestTime=
58Date.now()),e[lK]=i,i}async function l4(e,t){let{retries:n,retryCondition:r}=e,i=(e.retryCount||0)<n&&r(t);if("object"==typeof i)try{let e=await i;return!1!==e}catch(e){return!1}return i}async function l5(e,t,n,r){t.retryCount+=1;let{retryDelay:i,shouldResetTimeout:o,onRetry:a}=t,s=i(t.retryCount,n);if(e.defaults.agent===r.agent&&delete r.agent,e.defaults.httpAgent===r.httpAgent&&delete r.httpAgent,e.defaults.httpsAgent===r.httpsAgent&&delete r.httpsAgent,!o&&r.timeout&&t.lastRequestTime){let e=Date.now()-t.lastRequestTime,i=r.timeout-e-s;if(i<=0)return Promise.reject(n);r.timeout=i}return(r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted)?Promise.resolve(e(r)):new Promise(t=>{let n=()=>{clearTimeout(i),t(e(r))},i=setTimeout(()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)},s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})})}async function l6(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}let l8=(e,t)=>({requestInterceptorId:e.interceptors.request.use(e=>(l3(e,t,!0),e[lK]?.validateResponse&&(e.validateStatus=()=>!1),e)),responseInterceptorId:e.interceptors.response.use(null,async n=>{let{config:r}=n;if(!r)return Promise.reject(n);let i=l3(r,t);return n.response&&i.validateResponse?.(n.response)?n.response:await l4(i,n)?l5(e,i,n,r):(await l6(i,n),Promise.reject(n))})});l8.isNetworkError=lZ,l8.isSafeRequestError=function(e){return!!e.config?.method&&lX(e)&&-1!==lG.indexOf(e.config.method)},l8.isIdempotentRequestError=lJ,l8.isNetworkOrIdempotentRequestError=lQ,l8.exponentialDelay=l1,l8.linearDelay=function(e=100){return(t=0,n)=>Math.max(t*e,l0(n))},l8.isRetryableError=lX;let l9="/api/v1",l7="/services",{getAppTranslations:ue,getSegmentTranslations:ut,getUser:un,putUserSettings:ur,patchUser:ui,deleteUser:uo,deleteUserLoginToken:ua,getGalleryForUser:us,getStreet:ul,getStreetWithParams:uu,postStreet:uc,putStreet:ud,deleteStreet:uf,deleteStreetImage:uh,getGalleryForAllStreets:up,getSentimentSurveyStreet:um,postSentimentSurveyVote:ug,putSentimentSurveyComment:uy,getChangelog:uv,getGeoIp:ub}=new class{constructor(){this.getAppTranslations=async e=>await this.client.get(`${l9}/translate/${e}/main`),this.getSegmentTranslations=async e=>await this.client.get(`${l9}/translate/${e}/segment-info`),this.getUser=async e=>await this.client.get(`${l9}/users/${e}`),this.putUserSettings=async(e,t)=>await this.client.put(`${l9}/users/${e}`,t),this.patchUser=async(e,t)=>await this.client.patch(`${l9}/users/${e}`,t),this.deleteUser=async e=>await this.client.delete(`${l9}/users/${e}`),this.deleteUserLoginToken=async e=>await this.client.delete(`${l9}/users/${e}/login-token`),this.getGalleryForUser=async(e,t)=>await this.client.get(`${l9}/users/${e}/streets?page=${t}`),this.getStreet=async(e,t={})=>await this.client.get(`${l9}/streets/${e}`,t),this.getStreetWithParams=async(e,t)=>{let n=new URLSearchParams({namespacedId:t.toString()});return e&&n.append("creatorId",e),await this.client.get(`${l9}/streets/?${n.toString()}`)},this.postStreet=async e=>await this.client.post(`${l9}/streets`,e),this.putStreet=async(e,t)=>await this.client.put(`${l9}/streets/${e}`,t),this.deleteStreet=async e=>await this.client.delete(`${l9}/streets/${e}`),this.deleteStreetImage=async e=>await this.client.delete(`${l9}/streets/${e}/image`),this.getGalleryForAllStreets=async e=>await this.client.get(`${l9}/streets?page=${e}`),this.getSentimentSurveyStreet=async()=>await this.client.get(`${l9}/votes`),this.postSentimentSurveyVote=async e=>await this.client.post(`${l9}/votes`,e),this.putSentimentSurveyComment=async e=>await this.client.put(`${l9}/votes`,e),this.getChangelog=async()=>await this.client.get(`${l7}/changelog`),this.getGeoIp=async()=>await this.client.get(`${l7}/geoip`),this.client=lO.create({responseType:"json"}),l8(this.client,{retries:3,retryDelay:l1,onRetry:function(e){e>=3&&window.dispatchEvent(new window.CustomEvent("stmx:api_max_connection"))}})}};function uw(e){let t,n={};return Object.keys(e).forEach(r=>{"object"!=typeof e[r]||Array.isArray(e[r])?n[r]=e[r]:Object.keys(t=uw(e[r])).forEac
58h(e=>{n[r+"."+e]=t[e]})}),n}let ux=o5("locale/changeLocale",async e=>{let t=await ue(e),n=await ut(e);return{locale:e,translation:{messages:t.data,segmentInfo:n.data}}});var u_=o7({name:"locale",initialState:{locale:"en",messages:{},segmentInfo:{},isLoading:!1,requestedLocale:null},reducers:{},extraReducers:e=>{e.addCase(ux.pending,(e,t)=>{e.isLoading=!0,e.requestedLocale=t.meta.arg}).addCase(ux.fulfilled,(e,t)=>{let{locale:n,translation:r}=t.payload,{messages:i,segmentInfo:o={}}=r;e.locale=n,e.messages=uw(i),e.segmentInfo=uw(o),e.isLoading=!1,e.requestedLocale=null;let a=document.querySelector("html");a&&(a.lang=n)}).addCase(ux.rejected,e=>{e.isLoading=!1,e.requestedLocale=null})}}).reducer;let uk=o7({name:"app",initialState:{readOnly:!1,printing:!1,everythingLoaded:!1,contentDirection:"ltr",priorLastStreetId:null},reducers:{setAppFlags:(e,t)=>({...e,...t.payload}),startPrinting(e){e.printing=!0},stopPrinting(e){e.printing=!1},everythingLoaded(e){e.everythingLoaded=!0}},extraReducers:e=>{e.addCase(ux.fulfilled,(e,t)=>{e.contentDirection=["ar","dv","fa","he"].includes(t.payload.locale)?"rtl":"ltr"})}}),{setAppFlags:uS,startPrinting:uE,stopPrinting:uO,everythingLoaded:uj}=uk.actions;var uT=uk.reducer;let uC={controlsVisible:!1,seaLevelRise:0,stormSurge:!1,floodDetails:[null,null]},uI=o7({name:"coastmix",initialState:uC,reducers:{setCoastmixState:(e,t)=>({...e,...t.payload}),resetCoastmixState:()=>({...uC}),showCoastalFloodingPanel(e){e.controlsVisible=!0},hideCoastalFloodingPanel(e){e.controlsVisible=!1},toggleCoastalFloodingPanel(e){e.controlsVisible=!e.controlsVisible},setSeaLevelRise(e,t){e.seaLevelRise=t.payload},setFloodDetails(e,t){e.floodDetails=t.payload},setStormSurge(e,t){e.stormSurge=t.payload}}}),{setCoastmixState:uP,resetCoastmixState:uA,showCoastalFloodingPanel:uR,hideCoastalFloodingPanel:uN,toggleCoastalFloodingPanel:uM,setSeaLevelRise:uD,setFloodDetails:uL,setStormSurge:uz}=uI.actions;var uF=uI.reducer;let uB=o7({name:"debug",initialState:{forceLeftHandTraffic:!1,forceNonRetina:!1,forceOfflineMode:!1,forceReadOnly:!1},reducers:{setDebugFlags:(e,t)=>({...e,...t.payload})}}),{setDebugFlags:uU}=uB.actions;var u$=uB.reducer;let uH=o7({name:"dialogs",initialState:{name:null},reducers:{showDialog(e,t){e.name=t.payload},clearDialogs(e){e.name=null}}}),{showDialog:uW,clearDialogs:uV}=uH.actions;var uq=uH.reducer;let uK=o7({name:"errors",initialState:{errorType:null,abortEverything:!1},reducers:{showError:{reducer(e,t){e.errorType=t.payload.errorType,e.abortEverything=t.payload.abortEverything||!1},prepare:(e,t=!1)=>({payload:{errorType:e,abortEverything:t}})},hideError(e){e.errorType=null,e.abortEverything=!1}}}),{showError:uZ,hideError:uG}=uK.actions;var uY=uK.reducer,uX={};let uJ=o7({name:"flags",initialState:Object.entries(ei(uX=JSON.parse('{"COLOR_MODE_TOGGLE":{"label":"UI — Color mode (e.g. dark mode) themes","defaultValue":false},"GEOTAG":{"label":"UI — Geotagging","defaultValue":true},"ANALYTICS":{"label":"UI — Street analytics","defaultValue":true},"EDIT_STREET_WIDTH":{"label":"UI — Edit street width","defaultValue":true},"EDIT_STREET_NAME":{"label":"UI — Edit street name","defaultValue":true},"EDIT_BOUNDARY_LEFT":{"label":"UI — Edit left-side boundary","defaultValue":true},"EDIT_BOUNDARY_RIGHT":{"label":"UI — Edit right-side boundary","defaultValue":true},"NEW_STREET_TEMPLATES":{"label":"UI — Additional street templates","defaultValue":true},"GALLERY_SEARCH":{"label":"UI — Gallery search box","defaultValue":false},"SENTIMENT_SURVEY":{"label":"Sentiment surveys","defaultValue":false},"SKY_ANIMATED_CLOUDS":{"label":"Sky — animated clouds","defaultValue":false},"ENVIRONMENTS_UNLOCKED":{"label":"Environment — unlocked","defaultValue":false},"WEATHER_EFFECTS":{"label":"Environment — weather effects","defaultValue":false},"SAVE_UNDO":{"label":"Save undo data to server","defaultValue":false,"enabled":false},"ELEVATION_CONTROLS_UNLOCKED":{"label":"Info bubble — elevation property controls (unlocked)","defaultValue":false},"UNIVERSAL_ELEVATION_CONTROLS":{"label":"Info bubble — universal elevation controls","defaultValue":false},"TOAST_LIFE_BAR":{"label":"Toasts — [debug] show life bar","defaultValue":false}
58,"LOCALES_LEVEL_1":{"label":"Locales — level 1+ (in progress)","defaultValue":false},"LOCALES_LEVEL_2":{"label":"Locales — level 2+ (complete, in testing)","defaultValue":false},"LOCALES_LEVEL_3":{"label":"Locales — level 3 (complete, final)","defaultValue":true},"SEGMENT_3D_PARKING":{"label":"Component — 3d angled parking","defaultValue":false,"enabled":false},"SEGMENT_CROSSWALK":{"label":"Component — crosswalk","defaultValue":false},"SEGMENT_DRAINAGE_CHANNEL_UNLOCKED":{"label":"Component — drainage channel (unlocked)","defaultValue":false},"SEGMENT_INCEPTION_TRAIN":{"label":"Component — the train from “Inception”","defaultValue":false},"VARIANT_MIXED_DRIVE_LANES_1":{"label":"Variant — mixed-traffic drive lane (with bus) (unlocked)","defaultValue":false},"VARIANT_MIXED_DRIVE_LANES_2":{"label":"Variant — mixed-traffic drive lane (with bike) (unlocked)","defaultValue":false},"DEBUG_SEGMENT_CANVAS_RECTANGLES":{"label":"Slice — [debug] canvas rectangles","defaultValue":false},"DEBUG_SLICE_SLOPE":{"label":"Slice — [debug] slope measurements","defaultValue":false},"SAVE_AS_IMAGE_CUSTOM_DPI":{"label":"Export images at custom scale","defaultValue":false},"SAVE_AS_IMAGE_NEW_EXPORT_PIPELINE":{"label":"Export images using new experimental pipeline","defaultValue":false},"ALWAYS_DISPLAY_WHATS_NEW":{"label":"Always display the What’s New dialog","defaultValue":false},"MEMBER_UPGRADE":{"label":"Integrated membership billing","defaultValue":false},"COASTMIX_MODE":{"label":"Coastmix features","defaultValue":false},"SILLY_CLOWNS":{"label":"Silly clowns","defaultValue":false}}'))).reduce((e,t)=>{let[n,r]=t;return e[n]={...r,value:r.defaultValue,source:"initial"},e},{}),reducers:{setFeatureFlag(e,t){let n=e[t.payload.flag];e[t.payload.flag]={...n,value:t.payload.value,source:"session"}},setFlagOverrides:(e,t)=>({...e,...t.payload})}}),{setFeatureFlag:uQ,setFlagOverrides:u0}=uJ.actions;var u1=uJ.reducer;let u2=o7({name:"gallery",initialState:{visible:!1,instant:!1,userId:null,mode:"none",streets:[],pagination:{page:1,limit:100,total:1,totalPages:1,hasNextPage:!1,hasPreviousPage:!1}},reducers:{showGallery(e,t){e.visible=!0,e.userId=t.payload,e.mode="none"},hideGallery(e){e.visible=!1},deleteGalleryStreet(e,t){e.streets=e.streets.filter(e=>e.id!==t.payload),e.pagination.total=e.pagination.total-1},setGalleryUserId(e,t){e.userId=t.payload}},extraReducers:e=>{e.addMatcher(e=>"gallery/openGallery/pending"===e.type,(e,t)=>{e.visible=!0,e.instant=t.meta.arg.instant??!1,e.userId=t.meta.arg.userId??null,e.mode="loading"}).addMatcher(e=>"gallery/openGallery/fulfilled"===e.type,(e,t)=>{e.mode="gallery",e.streets=t.payload.streets,e.pagination=t.payload.pagination}).addMatcher(e=>"gallery/fetchPage/pending"===e.type,e=>{e.mode="loading"}).addMatcher(e=>"gallery/fetchPage/fulfilled"===e.type,(e,t)=>{e.mode="gallery",e.streets=t.payload.streets,e.pagination=t.payload.pagination}).addMatcher(e=>"gallery/fetchPage/rejected"===e.type,(e,t)=>{console.error("gallery/fetchPage/rejected",t.error.stack),e.mode="error"}).addMatcher(e=>"gallery/openGallery/rejected"===e.type,(e,t)=>{console.error("gallery/openGallery/rejected",t.error.stack),e.mode="error",t.payload?.killGallery===!0&&(e.visible=!1,e.instant=!0)}).addMatcher(e=>"gallery/closeGallery/fulfilled"===e.type,(e,t)=>{e.visible=!1,e.instant=t.payload.instant??!1}).addMatcher(e=>"gallery/closeGallery/rejected"===e.type,(e,t)=>{console.error("gallery/closeGallery/rejected",t.error.stack)})}}),{showGallery:u3,hideGallery:u4,deleteGalleryStreet:u5,setGalleryUserId:u6}=u2.actions;var u8=u2.reducer;let u9=o7({name:"infoBubble",initialState:{mouseInside:!1,descriptionVisible:!1,descriptionData:null},reducers:{setInfoBubbleMouseInside(e,t){e.mouseInside=t.payload},showDescription(e,t){e.descriptionVisible=!0,e.descriptionData=t.payload},hideDescription(e){e.descriptionVisible=!1}},extraReducers:e=>{e.addCase(uE,e=>{e.descriptionVisible=!1,e.mouseInside=!1})}}),{setInfoBubbleMouseInside:u7,showDescription:ce,hideDescription:ct}=u9.actions;var cn=u9.reducer,cr={};
58function ci(e){if(!(e in ei(cr)))throw Error("Unknown boundary variant: "+e);return ei(cr)[e]}cr=JSON.parse('{"grass":{"id":"grass","label":"Grass","spriteId":"boundaries--grass","hasFloors":false,"sameOnBothSides":true},"fence":{"id":"fence","label":"Empty lot","spriteId":"boundaries--fenced-lot","hasFloors":false},"parking-lot":{"id":"parking-lot","label":"Parking lot","spriteId":"boundaries--parking-lot","hasFloors":false,"repeatHalf":true,"offsetY":0.15},"waterfront":{"id":"waterfront","label":"Waterfront","spriteId":"boundaries--waterfront","waterfront":true,"hasFloors":false,"alignAtBaseline":true,"repeatHalf":true},"waterfront2":{"id":"waterfront2","label":"Waterfront","spriteId":"boundaries--waterfront2","waterfront":true,"hasFloors":false,"alignAtBaseline":true,"repeatHalf":true,"earthColor":"#366387"},"residential":{"id":"residential","label":"Home","spriteId":"buildings--residential","hasFloors":true,"variantsCount":0,"floorHeight":3,"roofHeight":2,"mainFloorHeight":7.25},"narrow":{"id":"narrow","label":"Building","spriteId":"buildings--apartments-narrow","hasFloors":true,"variantsCount":1,"floorHeight":3,"roofHeight":0.7,"mainFloorHeight":4.1,"overhangWidth":16},"wide":{"id":"wide","label":"Building","spriteId":"buildings--apartments-wide","hasFloors":true,"variantsCount":1,"floorHeight":3,"roofHeight":0.7,"mainFloorHeight":4.1,"overhangWidth":21.5},"arcade":{"id":"arcade","label":"Arcade building","spriteId":"buildings--arcade","hasFloors":true,"variantsCount":1,"floorHeight":3.1,"roofHeight":1.8,"mainFloorHeight":4.1,"overhangWidth":15},"compound-wall":{"id":"compound-wall","label":"Compound wall","spriteId":"boundaries--compound-wall","hasFloors":false},"beach":{"id":"beach","label":"Beach","spriteId":"boundaries--beach","waterfront":true,"hasFloors":false,"alignAtBaseline":true,"repeatHalf":true,"earthColor":"#ecdbb1"},"marsh":{"id":"marsh","label":"Marsh","spriteId":"boundaries--marsh","waterfront":true,"hasFloors":false,"alignAtBaseline":true,"repeatHalf":true},"water":{"id":"water","label":"Water","spriteId":"boundaries--water","waterfront":true,"hasFloors":false,"alignAtBaseline":true,"repeatHalf":true,"earthColor":"#366387"},"dock":{"id":"dock","label":"Dock","spriteId":"boundaries--dock","waterfront":true,"hasFloors":true,"showFloors":false,"variantsCount":1,"floorHeight":0.25,"roofHeight":3,"mainFloorHeight":1.75,"alignAtBaseline":true,"earthColor":"#366387"},"fishing-boat":{"id":"fishing-boat","label":"Fishing boat","spriteId":"boundaries--fishing-boat","waterfront":true,"alignAtBaseline":true,"repeatHalf":true,"earthColor":"#366387"},"cargo-ship":{"id":"cargo-ship","label":"Cargo ship","spriteId":"boundaries--cargo-ship","waterfront":true,"alignAtBaseline":true,"earthColor":"#366387"}}');var co={};co=JSON.parse('{"sidewalk":{"name":"Sidewalk","nameKey":"sidewalk","owner":"PEDESTRIAN","zIndex":30,"coastmixPaletteOrder":20,"defaultWidth":{"metric":1.8,"imperial":6},"rules":{"minWidth":{"metric":1.8,"imperial":6},"slope":"path"},"defaultElevation":{"metric":0.15,"imperial":0.5},"enableElevation":true,"variants":["sidewalk-density"],"details":{"dense":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"vehicles":[{"id":"pedestrian","variants":{"density":"dense"}}]}},"normal":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"vehicles":[{"id":"pedestrian","variants":{"density":"normal"}}]}},"sparse":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"vehicles":[{"id":"pedestrian","variants":{"density":"sparse"}}]}},"empty":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}]}}}},"sidewalk-tree":{"name":"Sidewalk tree","nameKey":"sidewalk-tree","owner":"NATURE","zIndex":22,"coastmixPaletteOrder":21,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"path"},"variants":["tree-type"],"details":{"big":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"tree","variants":{"type":"big"}}]}},"palm-tree":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"tree","variants":{"type":"palm-tree"}}]}}}},"sidewalk-bike-rack":{"name":"Bike rack","nameKey":"bike-rack","owner":"BIKE","zIndex":23,"coastmixPaletteOrder":22,"defaultWidth":{"metric":1.5,"imperial":5},"rules":{"slope":"path"},"defaultVariant":"left|sidewalk","variants":["orientation","bike-rack-elevation"],"details":{"left|sidewalk-parallel":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["parallel","left"]}}]}},"right|sidewalk-parallel":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["parallel","right"]}}]}},"left|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["perpendicular","left"]}}]}},"right|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["perpendicular","right"]}}]}},"left|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["perpendicular","left"]}}]}},"right|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["perpendicular","right"]}}]}}}},"sidewalk-bench":{"name":"Bench","nameKey":"bench","owner":"FURNITURE","zIndex":24,"coastmixPaletteOrder":23,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"path"},"variants":["bench-orientation"],"details":{"left":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bench","variants":{"orientation":"left"}}]}},"center":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bench","variants":{"orientation":"center"}}]}},"right":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bench","variants":{"orientation":"right"}}]}}}},"outdoor-dining":{"name":"Outdoor dining","nameKey":"outdoor-dining","owner":"FURNITURE","zIndex":24,"coastmixPaletteOrder":24,"defaultWidth":{"metric":2.4,"imperial":8},"rules":{"slope":"path"},"unlockCondition":"SIGN_IN","variants":["occupants","elevation"],"details":{"occupied|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"outdoor-dining","variants":{"occupants":"occupied"}}]}},"empty|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"outdoor-dining","variants":{"occupants":"empty"}}]}},"occupied|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"outdoor-dining","variants":{"occupants":"occupied"}}]}},"empty|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"outdoor-dining","variants":{"occupants":"empty"}}]}}}},"sidewalk-wayfinding":{"name":"Wayfinding sign","nameKey":"wayfinding-sign","owner":"FURNITURE","zIndex":21,"coastmixPaletteOrder":25,"defaultWidth":{"metric":1.2,"imperial":4},"description":{"key":"wayfinding-sign","image":"wayfinding-02.jpg"},"rules":{"slope":"path"},"variants":["wayfinding-type"],"details":{"large":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"wayfinding-sign","variants":{"type":"large"}}]}},"medium":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"wayfinding-sign","variants":{"type":"medium"}}]}},"small":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"wayfinding-sign","variants":{"type":"small"}}]}}}},"sidewalk-lamp":{"name":"Lamp","nameKey":"sidewalk-lamp","owner":"FURNITURE","zIndex":19,"coastmixPaletteOrder":26,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"path"},"defaultVariant":"both|traditional","variants":["lamp-orientation","lamp-type"],"details":{"right|modern":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","right"]}}]}},"both|modern":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","both"]}}]}},"left|modern":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","left"]}}]}},"right|traditional":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["traditional","right"]}}]}},"both|traditional":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["traditional","both"]}}]}},"left|traditional":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["traditional","left"]}}]}},"right|pride":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","right"]}}
58,{"id":"pride-banner","variants":{"orientation":"right"}}]}},"left|pride":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","left"]}},{"id":"pride-banner","variants":{"orientation":"left"}}]}},"both|pride":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","both"]}},{"id":"pride-banner","variants":{"orientation":"both"}}]}}}},"utilities":{"name":"Utility pole","nameKey":"utility-pole","owner":"UTILITY","zIndex":10,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"berm"},"unlockCondition":"SIGN_IN","variants":["orientation"],"details":{"left":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"utility-pole","variants":{"orientation":"left"}}]}},"right":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"utility-pole","variants":{"orientation":"right"}}]}}}},"parklet":{"name":"Parklet","nameKey":"parklet","owner":"FURNITURE","zIndex":15,"defaultWidth":{"metric":2.4,"imperial":8},"description":{"key":"parklet","image":"parklets-01.jpg","imageCredit":"San Francisco Planning Department"},"rules":{"minWidth":{"metric":2.4,"imperial":8},"slope":"path"},"variants":["orientation"],"details":{"left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"parklet","variants":{"orientation":"left"}}]}},"right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"parklet","variants":{"orientation":"right"}}]}}}},"street-vendor":{"name":"Street vendor","nameKey":"street-vendor","owner":"PEDESTRIAN","zIndex":24,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"minWidth":{"metric":1.2,"imperial":4},"slope":"path"},"defaultElevation":{"metric":0.15,"imperial":0.5},"enableElevation":true,"unlockCondition":"SIGN_IN","defaultVariant":"table|concrete","variants":["vendor-type","ground"],"details":{"handcart|concrete":{"rules":{"minWidth":{"metric":0.9,"imperial":3}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"handcart"}}]}},"table|concrete":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"table"}}]}},"tarp|concrete":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"tarp"}}]}},"platform|concrete":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"platform"}}]}},"handcart|asphalt":{"rules":{"minWidth":{"metric":0.9,"imperial":3}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"handcart"}}]}},"table|asphalt":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"table"}}]}},"tarp|asphalt":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"tarp"}}]}},"platform|asphalt":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"platform"}}]}}}},"divider":{"name":"Buffer","nameKey":"divider","owner":"NATURE","zIndex":20,"coastmixPaletteOrder":2,"defaultWidth":{"metric":0.5,"imperial":2},"defaultVariant":"flowers","variants":["divider-type"],"details":{"planting-strip":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}]}},"planter-box":{"name":"Planter box","nameKey":"planter-box","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--stripes-diagonal"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"planter-box","variants":{"type":"default"}}]}},"median":{"name":"Median","nameKey":"median","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}]}},"striped-buffer":{"name":"Buffer","nameKey":"divider","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--stripes-diagonal"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}]}},"bush":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"planting-strip","variants":{"type":"bush"}}]}},"flowers":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"planting-strip","variants":{"type":"flowers"}}]}},"big-tree":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"tree","variants":{"type":"big"}}]}},"palm-tree":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"tree","variants":{"type":"palm-tree"}}]}},"bollard":{"name":"Bollard","nameKey":"bollard","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--stripes-diagonal"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"bollard","variants":{"type":"default"}}]}},"dome":{"name":"Traffic exclusion dome","nameKey":"dome","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--stripes-diagonal"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"dome","variants":{"type":"default"}}]}}}},"crosswalk":{"name":"Crosswalk","nameKey":"crosswalk","defaultWidth":{"metric":3,"imperial":10},"defaultVariant":"zebra-crossing","defaultElevation":0,"enableElevation":true,"enableWithFlag":"SEGMENT_CROSSWALK","variants":["crosswalk-type"],"details":{"zebra-crossing":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--crosswalk-zebra"}]}},"zebra-crossing-bike":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--crosswalk-zebra-bike"}]}}}},"temporary":{"name":"Temporary barrier","nameKey":"temporary-barrier","zIndex":20,"defaultWidth":{"metric":0.5,"imperial":2},"defaultVariant":"traffic-cone","unlockCondition":"SIGN_IN","variants":["temporary-barrier-type"],"details":{"barricade":{"name":"Barricade","nameKey":"barricade","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"barricade","variants":{"type":"default"}}]}},"traffic-cone":{"name":"Traffic cone","nameKey":"traffic-cone","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"traffic-cone","variants":{"type":"default"}}]}},"jersey-barrier-concrete":{"name":"Jersey barrier","nameKey":"jersey-barrier","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"jersey-barrier","variants":{"material":"concrete"}}]}},"jersey-barrier-plastic":{"name":"Jersey barrier","nameKey":"jersey-barrier","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"jersey-barrier","variants":{"material":"plastic"}}]}}}}
58,"drainage-channel":{"name":"Drainage channel","nameKey":"drainage-channel","owner":"DRAINAGE","coastmixPaletteOrder":50,"unlockWithFlag":"SEGMENT_DRAINAGE_CHANNEL_UNLOCKED","unlockCondition":"SUBSCRIBE","defaultWidth":{"metric":1,"imperial":3.25},"variants":["drainage-sides"],"details":{"slanted":{"components":{"lanes":[{"id":"drainage","variants":{"color":"regular"}}],"objects":[{"id":"open-drain","variants":{"drainage-sides":["slanted"]}}]},"offsetY":-50},"vertical":{"components":{"lanes":[{"id":"drainage","variants":{"color":"regular"}}],"objects":[{"id":"open-drain","variants":{"drainage-sides":["vertical"]}}]},"offsetY":-50}}},"bioswale":{"name":"Rain garden","nameKey":"rain-garden","owner":"DRAINAGE","enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":3,"unlockCondition":"SUBSCRIBE","description":{"key":"rain-garden","image":"bioswale-02.jpg","imageCredit":"Lou Huang"},"defaultWidth":{"metric":3,"imperial":10},"rules":{"minWidth":{"metric":2.45,"imperial":8}},"variants":["bioswale-vegetation"],"details":{"bush":{"components":{"lanes":[{"id":"earth","variants":{"type":"default"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"bioswale","variants":{"plants":["bush"],"sides":["slanted"]}}]},"offsetY":-50},"tree":{"components":{"lanes":[{"id":"earth","variants":{"type":"default"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"bioswale","variants":{"plants":["tree"],"sides":["slanted"]}}]},"offsetY":-50}}},"scooter":{"name":"Electric scooter","nameKey":"scooter","owner":"BIKE","zIndex":16,"defaultWidth":{"metric":1.5,"imperial":5},"rules":{"minWidth":{"metric":1.2,"imperial":4},"slope":"path"}
58,"variants":["direction","bike-asphalt"],"details":{"inbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"inbound"}}]}},"outbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"outbound"}}]}},"inbound|green":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"inbound"}}]}},"outbound|green":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"outbound"}}]}},"inbound|red":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"inbound"}}]}},"outbound|red":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"outbound"}}]}}}},"scooter-drop-zone":{"name":"Scooter drop zone","nameKey":"scooter-drop-zone","owner":"FLEX","zIndex":21,"defaultWidth":{"metric":1.5,"imperial":5},"defaultVariant":"right|sidewalk|empty","variants":["orientation","scooter-elevation","scooter-riders"],"details":{"left|sidewalk|empty":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["empty","left"]}}]}},"right|sidewalk|empty":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["empty","right"]}}]}},"left|sidewalk|sparse":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["sparse","left"]}}]}},"right|sidewalk|sparse":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["sparse","right"]}}]}},"left|road|empty":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["empty","left"]}}]}},"right|road|empty":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["empty","right"]}}]}},"left|road|sparse":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["sparse","left"]}}]}},"right|road|sparse":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["sparse","right"]}}]}}}},"bike-lane":{"name":"Bike lane","nameKey":"bike-lane","owner":"BIKE","zIndex":16,"coastmixPaletteOrder":30,"defaultWidth":{"metric":1.8,"imperial":6},"description":{"key":"bike-lane","image":"bike-lane-02.jpg"},"rules":{"minWidth":{"metric":1.5,"imperial":5},"slope":"path"},"variants":["bike-direction","bike-asphalt","elevation"],"details":{"inbou
58nd|regular|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|regular|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|regular|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|regular|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|green|road":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|green|road":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|green|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|green|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|red|road":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|red|road":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|red|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|red|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|regular|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"black"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbou
58nd"]}}]}},"outbound|regular|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"black"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|regular|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"black"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|regular|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"black"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|green|sidewalk":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|green|sidewalk":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|green|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"green"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|green|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"green"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|red|sidewalk":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|red|sidewalk":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|red|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"red"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|red|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"red"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}}}},"bikeshare":{"name":"Bikeshare station","nameKey":"bikeshare-station","owner":"FURNITURE","zIndex":21,"coastmixPaletteOrder":31,"defaultWidth":{"metric":2,"imperial":7},"rules":{"minWidth":{"metric":2.1,"imperial":7},"maxWidth":{"metric":3,"imperial":10}},"variants":["orientation","elevation"],"details":{"left|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"bikeshare","variants":{"orientation":"left"}}]}},"right|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"bikeshare","variants":{"orientation":"right"}}]}},"left|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bikeshare","variants":{"orientation":"left"}}]}},"right|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bikeshare","variants":{"orientation":"right"}}]}}}},"food-truck":{"name":"Food truck","nameKey":"foodtruck","owner":"CAR","zIndex":20,"coastmixPaletteOrder":32,"defaultWidth":{"metric":3,"imperial":10},"rules":{"minWidth":{"metric":3,"imperial":10}},"variants":["orientation"],"details":{"left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"food-truck","variants":{"orientation":"left"}}]}},"right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"food-truck","variants":{"orientation":"right"}}]}}}},"flex-zone":{"name":"Flex zone","nameKey":"flex-zone","owner":"FLEX","zIndex":15,"defaultWidth":{"metric":2,"imperial":7},"rules":{"minWidth":{"metric":2.1,"imperial":7},"maxWidth":{"metric":3,"imperial":10}},"variants":["flex-type","direction","orientation"],"details":{"taxi|inbou
58nd|left":{"name":"Taxi loading zone","nameKey":"taxi-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-right"}],"vehicles":[{"id":"taxi","variants":{"direction|orientation":["inbound","left"]}}]}},"taxi|inbound|right":{"name":"Taxi loading zone","nameKey":"taxi-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"}],"vehicles":[{"id":"taxi","variants":{"direction|orientation":["inbound","right"]}}]}},"taxi|outbound|left":{"name":"Taxi loading zone","nameKey":"taxi-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-right"}],"vehicles":[{"id":"taxi","variants":{"direction|orientation":["outbound","left"]}}]}},"taxi|outbound|right":{"name":"Taxi loading zone","nameKey":"taxi-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"}],"vehicles":[{"id":"taxi","variants":{"direction|orientation":["outbound","right"]}}]}},"rideshare|inbound|left":{"name":"Rideshare loading zone","nameKey":"rideshare-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-right"}],"vehicles":[{"id":"rideshare","variants":{"direction|orientation":["inbound","left"]}}]}},"rideshare|inbound|right":{"name":"Rideshare loading zone","nameKey":"rideshare-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"}],"vehicles":[{"id":"rideshare","variants":{"direction|orientation":["inbound","right"]}}]}},"rideshare|outbound|left":{"name":"Rideshare loading zone","nameKey":"rideshare-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-right"}],"vehicles":[{"id":"rideshare","variants":{"direction|orientation":["outbound","left"]}}]}},"rideshare|outbound|right":{"name":"Rideshare loading zone","nameKey":"rideshare-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"}],"vehicles":[{"id":"rideshare","variants":{"direction|orientation":["outbound","right"]}}]}}}},"flex-zone-curb":{"name":"Waiting area","nameKey":"flex-zone-curb","owner":"FLEX","zIndex":30,"defaultWidth":{"metric":1.2,"imperial":4},"variants":["waiting-area","orientation"],"details":{"sparse|left":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"pickup-sign","variants":{"orientation":"right"}},{"id":"person-waiting","variants":{"orientation":"right"}}]}},"sparse|right":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"pickup-sign","variants":{"orientation":"left"}},{"id":"person-waiting","variants":{"orientation":"left"}}]}},"empty|left":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"pickup-sign","variants":{"orientation":"right"}}]}},"empty|right":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"pickup-sign","variants":{"orientation":"left"}}]}}}},"parking-lane":{"name":"Parking lane","nameKey":"parking-lane","owner":"CAR","zIndex":13,"coastmixPaletteOrder":40,"defaultWidth":{"metric":2,"imperial":7},"rules":{"minWidth":{"metric":2.1,"imperial":7},"maxWidth":{"metric":3,"imperial":10},"slope":"path"},"variants":["parking-lane-direction","parking-lane-orientation"],"details":{"inbou
58nd|left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--parking-left"}],"vehicles":[{"id":"car","offsetX":-80,"variants":{"direction|orientation":["inbound","left"]}}]}},"inbound|right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--parking-right"}],"vehicles":[{"id":"car","offsetX":-80,"variants":{"direction|orientation":["inbound","right"]}}]}},"outbound|left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--parking-left"}],"vehicles":[{"id":"car","offsetX":-80,"variants":{"direction|orientation":["outbound","left"]}}]}},"outbound|right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--parking-right"}],"vehicles":[{"id":"car","offsetX":-80,"variants":{"direction|orientation":["outbound","right"]}}]}},"sideways|left":{"name":"Perpendicular parking","nameKey":"perpendicular-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":6,"imperial":20}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["sideways","left"]}}]}}
58,"sideways|right":{"name":"Perpendicular parking","nameKey":"perpendicular-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":6,"imperial":20}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["sideways","right"]}}]}},"angled-front-left|left":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-front-left","left"]}}]}},"angled-front-right|left":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-front-right","left"]}}]}},"angled-rear-left|left":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-rear-left","left"]}}]}},"angled-rear-right|left":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-rear-right","left"]}}]}},"angled-front-left|right":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-front-left","right"]}}]}},"angled-front-right|right":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-front-right","right"]}}]}},"angled-rear-left|right":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-rear-left","right"]}}]}},"angled-rear-right|right":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-rear-right","right"]}}]}}}},"drive-lane":{"name":"Drive lane","nameKey":"drive-lane","owner":"CAR","zIndex":14,"coastmixPaletteOrder":41,"defaultWidth":{"metric":3,"imperial":10},"rules":{"minWidth":{"metric":2.4,"imperial":8},"maxWidth":{"metric":3.6,"imperial":12},"slope":"path"}
58,"variants":["direction","car-type"],"details":{"inbound|car":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"car","variants":{"direction":"inbound"}}]}},"outbound|car":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"car","variants":{"direction":"outbound"}}]}},"inbound|car-with-bus":{"name":"Mixed-traffic drive lane","nameKey":"mixed-drive-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bus-alt","variants":{"direction":"inbound"}},{"id":"car","variants":{"direction":"inbound"}}]}},"outbound|car-with-bus":{"name":"Mixed-traffic drive lane","nameKey":"mixed-drive-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bus-alt","variants":{"direction":"outbound"}},{"id":"car","variants":{"direction":"outbound"}}]}},"inbound|car-with-bike":{"name":"Mixed-traffic drive lane","nameKey":"mixed-drive-lane","rules":{"dangerous":true},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"car","variants":{"direction":"inbound"}},{"id":"bike","offsetX":30,"variants":{"type|direction":["biker-02","inbound"]}}],"effects":[{"id":"biker-stress","offsetX":20,"variants":{"type":"sweat-drop"}}]}},"outbound|car-with-bike":{"name":"Mixed-traffic drive lane","nameKey":"mixed-drive-lane","rules":{"dangerous":true},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"car","variants":{"direction":"outbound"}},{"id":"bike","offsetX":-30,"variants":{"type|direction":["biker-02","outbound"]}}]}},"inbound|sharrow":{"name":"Sharrow","nameKey":"sharrow","rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"defaultWidth":{"metric":4.2,"imperial":14},"description":{"key":"sharrow","image":"sharrow-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-inbound"}],"vehicles":[{"id":"car","variants":{"direction":"inbound"}},{"id":"bike","variants":{"type|direction":["biker-02","inbound"]}}]}},"outbound|sharrow":{"name":"Sharrow","nameKey":"sharrow","rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"defaultWidth":{"metric":4.2,"imperial":14},"description":{"key":"sharrow","image":"sharrow-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-outbound"}],"vehicles":[{"id":"car","variants":{"direction":"outbound"}},{"id":"bike","variants":{"type|direction":["biker-02","outbound"]}}]}},"inbound|bus":{"rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"inbound"}}]}},"outbound|bus":{"rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"outbound"}}]}},"inbound|truck":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"truck","variants":{"direction":"inbound"}}]}},"outbound|truck":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"truck","variants":{"direction":"outbound"}}]}},"inbound|microvan":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"microvan","variants":{"direction":"inbound"}}]}},"outbound|microvan":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"microvan","variants":{"direction":"outbound"}}]}},"inbound|av":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"av","variants":{"direction":"inbound"}}]}},"outbound|av":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"av","variants":{"direction":"outbound"}}]}},"inbound|motorcycle-sidecar":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"motorcycle-sidecar","variants":{"direction":"inbound"}}]}},"outbound|motorcycle-sidecar":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"motorcycle-sidecar","variants":{"direction":"outbound"}}]}},"inbound|pedestrian":{"name":"Pedestrian","nameKey":"pedestrian","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"pedestrian","variants":{"density":"normal"}}]}},"outbound|pedestrian":{"name":"Pedestrian","nameKey":"pedestrian","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"pedestrian","variants":{"density":"normal"}}]}}}},"turn-lane":{"name":"Turn lane","nameKey":"turn-lane","owner":"CAR","zIndex":13,"defaultWidth":{"metric":3,"imperial":10},"rules":{"minWidth":{"metric":2.7,"imperial":9},"maxWidth":{"metric":3.6,"imperial":12},"slope":"path"},"variants":["direction","turn-lane-orientation"],"details":{"inbou
58nd|left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","right"]}}]}},"inbound|left-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-straight-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","right"]}}]}},"inbound|straight":{"name":"No turn lane","nameKey":"turn-lane-straight","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound"}],"vehicles":[{"id":"car","variants":{"direction":"inbound"}}]}},"inbound|right-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--right-straight-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","left"]}}]}},"inbound|right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--right-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","left"]}}]}},"inbound|both":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--both-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","right"]}}]}},"inbound|left-right-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-right-straight-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","right"]}}]}},"inbound|shared":{"name":"Center turn lane","nameKey":"turn-lane-center","rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":4.8,"imperial":16}},"defaultWidth":{"metric":3.6,"imperial":12},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--shared-inbound"},{"id":"markings--center-lane-left"},{"id":"markings--center-lane-right"}]}},"outbound|left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","left"]}}]}},"outbound|left-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-straight-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","left"]}}]}},"outbound|straight":{"name":"No turn lane","nameKey":"turn-lane-straight","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound"}],"vehicles":[{"id":"car","variants":{"direction":"outbound"}}]}},"outbound|right-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--right-straight-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","right"]}}]}},"outbound|right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--right-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","right"]}}]}},"outbound|both":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--both-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","left"]}}]}},"outbound|left-right-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-right-straight-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","left"]}}]}},"outbound|shared":{"name":"Center turn lane","nameKey":"turn-lane-center","rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":4.8,"imperial":16}},"defaultWidth":{"metric":3.6,"imperial":12},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--shared-outbound"},{"id":"markings--center-lane-left"},{"id":"markings--center-lane-right"}]}}}},"bus-lane":{"name":"Bus lane","nameKey":"bus-lane","owner":"TRANSIT","zIndex":15,"coastmixPaletteOrder":42,"defaultWidth":{"metric":3.6,"imperial":12},"rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":3.9,"imperial":13},"slope":"path"},"variants":["direction","bus-asphalt","bus-type"],"details":{"inbou
58nd|regular|typical":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"inbound"}}]}},"outbound|regular|typical":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"outbound"}}]}},"inbound|colored|typical":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"inbound"}}]}},"outbound|colored|typical":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"outbound"}}]}},"inbound|shared|typical":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-inbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"bus","variants":{"direction":"inbound"}},{"id":"bike","offsetX":30,"variants":{"type|direction":["biker-02","inbound"]}}]}},"outbound|shared|typical":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-outbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"bus","variants":{"direction":"outbound"}},{"id":"bike","offsetX":-30,"variants":{"type|direction":["biker-02","outbound"]}}]}},"inbound|regular|double-decker":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"inbound"}}]}},"outbound|regular|double-decker":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"outbound"}}]}},"inbound|colored|double-decker":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"inbound"}}]}},"outbound|colored|double-decker":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"outbound"}}]}},"inbound|shared|double-decker":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-inbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"inbound"}},{"id":"bike","offsetX":30,"variants":{"type|direction":["biker-02","inbound"]}}]}},"outbound|shared|double-decker":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-outbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"outbound"}},{"id":"bike","offsetX":-30,"variants":{"type|direction":["biker-02","outbound"]}}]}},"inbound|regular|av-shuttle":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"inbound"}}]}},"outbound|regular|av-shuttle":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"outbound"}}]}},"inbound|colored|av-shuttle":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"inbound"}}]}},"outbound|colored|av-shuttle":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"outbound"}}]}},"inbound|shared|av-shuttle":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-inbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"inbound"}},{"id":"bike","offsetX":30,"variants":{"type|direction":["biker-02","inbound"]}}]}},"outbound|shared|av-shuttle":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}
58],"markings":[{"id":"markings--sharrow-outbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"outbound"}},{"id":"bike","offsetX":-30,"variants":{"type|direction":["biker-02","outbound"]}}]}}}},"streetcar":{"name":"Streetcar","nameKey":"streetcar","owner":"TRANSIT","zIndex":15,"coastmixPaletteOrder":43,"defaultWidth":{"metric":3.6,"imperial":12},"rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":4.2,"imperial":14},"slope":"path"},"variants":["direction","public-transit-asphalt"],"details":{"inbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--streetcar-track-01"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"streetcar","variants":{"direction":"inbound"}}]}},"outbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--streetcar-track-01"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"streetcar","variants":{"direction":"outbound"}}]}},"inbound|colored":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"streetcar","variants":{"direction":"inbound"}}]}},"outbound|colored":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"streetcar","variants":{"direction":"outbound"}}]}},"inbound|grass":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}],"vehicles":[{"id":"streetcar","variants":{"direction":"inbound"}}]}},"outbound|grass":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}],"vehicles":[{"id":"streetcar","variants":{"direction":"outbound"}}]}}}},"light-rail":{"name":"Light rail","nameKey":"light-rail","owner":"TRANSIT","zIndex":15,"coastmixPaletteOrder":44,"defaultWidth":{"metric":3.6,"imperial":12},"rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":4.2,"imperial":14}},"variants":["direction","public-transit-asphalt"],"details":{"inbou
58nd|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"gray"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"inbound"}}]}},"outbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"gray"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"outbound"}}]}},"inbound|colored":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"inbound"}}]}},"outbound|colored":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"outbound"}}]}},"inbound|grass":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"inbound"}}]}},"outbound|grass":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"outbound"}}]}}}},"transit-shelter":{"name":"Transit shelter","nameKey":"transit-shelter","owner":"TRANSIT","zIndex":20,"coastmixPaletteOrder":45,"defaultWidth":{"metric":2.7,"imperial":9},"defaultVariant":"right|street-level","rules":{"minWidth":{"metric":2.7,"imperial":9}},"variants":["orientation","transit-shelter-elevation"],"details":{"left|street-level":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"transit-shelter","variants":{"type|orientation":["transit-shelter-01","left"]}}]}},"right|street-level":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"transit-shelter","variants":{"type|orientation":["transit-shelter-01","right"]}}]}},"left|light-rail":{"description":{"key":"transit-shelter-elevated","image":"transit-station-elevated.jpg"},"rules":{"minWidth":{"metric":2.4,"imperial":8}},"components":{"lanes":[{"id":"raised-sidewalk","variants":{"type":"default"}}],"objects":[{"id":"transit-shelter","variants":{"type|orientation":["transit-shelter-02","left"]}}]}},"right|light-rail":{"description":{"key":"transit-shelter-elevated","image":"transit-station-elevated.jpg"},"rules":{"minWidth":{"metric":2.4,"imperial":8}},"components":{"lanes":[{"id":"raised-sidewalk","variants":{"type":"default"}}],"objects":[{"id":"transit-shelter","variants":{"type|orientation":["transit-shelter-02","right"]}}]}}}},"brt-station":{"name":"BRT station","nameKey":"brt-station","owner":"TRANSIT","zIndex":20,"coastmixPaletteOrder":46,"defaultWidth":{"metric":4,"imperial":13.5},"unlockCondition":"SIGN_IN","defaultVariant":"center","rules":{"minWidth":{"metric":4,"imperial":13.5},"slope":"off"},"variants":["brt-station-orientation"],"details":{"left":{"rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"brt-station","variants":{"orientation":["left"]}}]}},"right":{"rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"brt-station","variants":{"orientation":["right"]}}]}},"center":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"brt-station","variants":{"orientation":["center"]}}]}}}},"brt-lane":{"name":"Bus rapid transit lane","nameKey":"brt-lane","owner":"TRANSIT","zIndex":15,"coastmixPaletteOrder":47,"defaultWidth":{"metric":3.5,"imperial":11.667},"unlockCondition":"SIGN_IN","rules":{"minWidth":{"metric":3.4,"imperial":11.5},"maxWidth":{"metric":4,"imperial":13}}
58,"variants":["direction","brt-asphalt"],"details":{"inbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"brt-bus","variants":{"direction":"inbound"}}]}},"outbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"brt-bus","variants":{"direction":"outbound"}}]}},"inbound|red":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"brt-bus","variants":{"direction":"inbound"}}]}},"outbound|red":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"brt-bus","variants":{"direction":"outbound"}}]}}}},"train":{"name":"“Inception” train","nameKey":"inception-train","owner":"TRANSIT","zIndex":10,"defaultWidth":{"metric":4.2,"imperial":14},"enableWithFlag":"SEGMENT_INCEPTION_TRAIN","description":{"key":"inception-train","image":"train.jpg"},"rules":{"minWidth":{"metric":4.2,"imperial":14}},"variants":[""],"details":{"":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"train","variants":{"type":"default"}}]}}}},"magic-carpet":{"name":"Magic carpet","nameKey":"magic-carpet","defaultWidth":{"metric":3,"imperial":10},"rules":{"slope":"berm"},"unlockCondition":"SIGN_IN","defaultVariant":"jasmine-aladdin","variants":["magic-carpet-occupants"],"details":{"aladdin":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"magic-carpet","variants":{"magic-carpet-occupants":"aladdin"}}]}},"jasmine":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"magic-carpet","variants":{"magic-carpet-occupants":"jasmine"}}]}},"aladdin-jasmine":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"magic-carpet","variants":{"magic-carpet-occupants":"aladdin-jasmine"}}]}},"jasmine-aladdin":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"magic-carpet","variants":{"magic-carpet-occupants":"jasmine-aladdin"}}]}}}},"beach":{"name":"Beach","nameKey":"beach","owner":"NATURE","defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"berm"},"defaultVariant":"lounger","enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":4,"variants":["beach-type"],"details":{"beach":{"components":{"lanes":[{"id":"beach","variants":{"type":"default"}}]}},"lounger":{"components":{"lanes":[{"id":"beach","variants":{"type":"default"}}],"objects":[{"id":"beach-lounger","variants":{"type":"default"},"offsetX":50}]}}}},"marsh":{"name":"Marsh","nameKey":"marsh","owner":"NATURE","defaultWidth":{"metric":1.2,"imperial":4},"description":{"key":"marsh","image":"marsh-01.jpg"},"rules":{"slope":"berm"},"defaultVariant":"marsh","enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":5,"variants":["marsh-type"],"details":{"marsh":{"components":{"lanes":[{"id":"earth","variants":{"type":"default"}}],"objects":[{"id":"marsh-grass","variants":{"type":"default"}}]}}}},"wall":{"name":"Wall","nameKey":"wall","owner":"WALL","zIndex":35,"defaultWidth":{"metric":0.75,"imperial":2.5},"defaultVariant":"low","enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":10,"variants":["wall-height"],"details":{"low":{"components":{"lanes":[{"id":"wall","variants":{"type":"default"}}],"objects":[{"id":"wall","variants":{"wall-height":"low"}}]}},"high":{"components":{"lanes":[{"id":"wall","variants":{"type":"default"}}],"objects":[{"id":"wall","variants":{"wall-height":"high"}}]}}}},"guardrail":{"name":"Guard rail","nameKey":"guardrail","defaultWidth":{"metric":0.25,"imperial":1},"enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":11,"variants":["guardrail-type"],"details":{"default":{"name":"Guard rail","nameKey":"guardrail","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"guardrail","variants":{"type":"default"}}]}}}},"slope":{"name":"Slope","nameKey":"slope","defaultWidth":{"metric":2.4,"imperial":8},"defaultSlope":[{"metric":0.15,"imperial":0.5},{"metric":0.9,"imperial":3}],"rules":{"slope":"berm"},"enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":1,"variants":["slope-type"],"details":{"grass":{"name":"Grassy hill","nameKey":"grass-hill","components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}]}},"dune":{"name":"Sand dune","nameKey":"sand-dune","components":{"lanes":[{"id":"beach","variants":{"type":"default"}}],"objects":[{"id":"marsh-grass","variants":{"type":"default"}}]}}}}}');var ca={};function cs(e){return[...new Set(e)]}
58ca=JSON.parse('{"markings--straight-inbound-light":{"id":"markings--straight-inbound-light","originY":120},"markings--straight-outbound-light":{"id":"markings--straight-outbound-light","originY":120},"markings--straight-inbound":{"id":"markings--straight-inbound","originY":120},"markings--straight-outbound":{"id":"markings--straight-outbound","originY":120},"markings--left-inbound":{"id":"markings--left-inbound","originY":120},"markings--left-outbound":{"id":"markings--left-outbound","originY":120},"markings--left-straight-inbound":{"id":"markings--left-straight-inbound","originY":120},"markings--left-straight-outbound":{"id":"markings--left-straight-outbound","originY":120},"markings--right-inbound":{"id":"markings--right-inbound","originY":120},"markings--right-outbound":{"id":"markings--right-outbound","originY":120},"markings--right-straight-inbound":{"id":"markings--right-straight-inbound","originY":120},"markings--right-straight-outbound":{"id":"markings--right-straight-outbound","originY":120},"markings--both-inbound":{"id":"markings--both-inbound","originY":120},"markings--both-outbound":{"id":"markings--both-outbound","originY":120},"markings--left-right-straight-inbound":{"id":"markings--left-right-straight-inbound","originY":120},"markings--left-right-straight-outbound":{"id":"markings--left-right-straight-outbound","originY":120},"markings--shared-inbound":{"id":"markings--shared-inbound","originY":120},"markings--shared-outbound":{"id":"markings--shared-outbound","originY":120},"markings--sharrow-inbound":{"id":"markings--sharrow-inbound","originY":120},"markings--sharrow-outbound":{"id":"markings--sharrow-outbound","originY":120},"markings--lane-left":{"id":"markings--lane-left","originY":120},"markings--lane-right":{"id":"markings--lane-right","originY":120},"markings--lane-left-half":{"id":"markings--lane-left-half","originY":120},"markings--lane-right-half":{"id":"markings--lane-right-half","originY":120},"markings--lane-horiz":{"id":"markings--lane-horiz","originY":120},"markings--center-lane":{"id":"markings--center-lane","originY":120},"markings--center-lane-left":{"id":"markings--center-lane-left","originY":120},"markings--center-lane-right":{"id":"markings--center-lane-right","originY":120},"markings--parking-left":{"id":"markings--parking-left","originY":120},"markings--parking-right":{"id":"markings--parking-right","originY":120},"markings--streetcar-track-01":{"id":"markings--streetcar-track-01","originY":120},"markings--streetcar-track-02":{"id":"markings--streetcar-track-02","originY":120},"markings--stripes-diagonal":{"id":"markings--stripes-diagonal","originY":120},"markings--crosswalk-zebra":{"id":"markings--crosswalk-zebra","originY":120},"markings--crosswalk-zebra-bike":{"id":"markings--crosswalk-zebra-bike","originY":120},"lamps--lamp-modern-left":{"id":"lamps--lamp-modern-left","offsetX":-315},"lamps--lamp-modern-right":{"id":"lamps--lamp-modern-right","offsetX":-315},"lamps--lamp-traditional-right":{"id":"lamps--lamp-traditional-right","offsetX":-45},"lamps--lamp-traditional-left":{"id":"lamps--lamp-traditional-left","offsetX":-45},"lamps--pride-banner-right":{"id":"lamps--pride-banner-right","offsetX":-83,"originY":-536},"lamps--pride-banner-left":{"id":"lamps--pride-banner-left","offsetX":-83,"originY":-536},"effects--sweat-drop":{"id":"effects--sweat-drop","originY":-160},"beach--surface":{"id":"beach--surface","offsetY":-12},"earth--surface":{"id":"earth--surface","offsetY":-12},"missing":{"id":"missing"}}');var cl={};cl=JSON.parse('{"lanes":{"asphalt":{"elevation":0,"variants":{"color":{"regular":{"graphics":{"ground":"ground--asphalt"}},"red":{"graphics":{"ground":"ground--asphalt-red"}},"green":{"graphics":{"ground":"ground--asphalt-green"}},"gray":{"graphics":{"ground":"ground--asphalt-gray"}}}}},"sidewalk":{"elevation":{"metric":0.15,"imperial":0.5},"variants":{"color":{"regular":{"graphics":{"ground":"ground--concrete"}},"black":{"graphics":{"ground":"ground--asphalt"}},"red":{"graphics":{"ground":"ground--asphalt-red"}},"green":{"graphics":{"ground":"ground--asphalt-green"}},"gray":{"graphics":{"ground":"ground--asphalt-gray"}}},"density":{"empty":{"graphics":{"ground":"ground--concrete"}}}}},"raised-sidewalk":{"elevation":{"metric":0.75,"imperial":2.5},"variants":{"type":{"default":{"graphics":{"ground":"ground--concrete"}}}}},"drainage":{"elevation":0,"variants":{"color":{"regular":{"graphics":{"ground":"ground--concrete"}}}}},"beach":{"elevation":0,"variants":{"type":{"default":{"graphics":{"repeat":"beach--surface","ground":"ground--sand"}}}}},"earth":{"elevation":0,"variants":{"type":{"default":{"graphics":{"repeat":"earth--surface","ground":"ground--earth"}},"flat":{"graphics":{"ground":"ground--earth"}}}}},"wall":{"elevation":0,"variants":{"type":{"default":{"graphics":{"ground":"ground--wall"}}}}}},"markings":{"markings--lane-right":{"graphics":{"right":"markings--lane-right"}},"markings--lane-left":{"graphics":{"left":"markings--lane-left"}},"markings--straight-inbound-light":{"graphics":{"center":"markings--straight-inbound-light"}},"markings--straight-outbound-light":{"graphics":{"center":"markings--straight-outbound-light"}},"markings--lane-left-half":{"graphics":{"left":"markings--lane-left-half"}},"markings--lane-right-half":{"graphics":{"right":"markings--lane-right-half"}},"markings--lane-horiz":{"graphics":{"repeat":"markings--lane-horiz"}},"markings--sharrow-inbound":{"graphics":{"center":"markings--sharrow-inbound"}}
58,"markings--sharrow-outbound":{"graphics":{"center":"markings--sharrow-outbound"}},"markings--left-inbound":{"graphics":{"center":"markings--left-inbound"}},"markings--left-straight-inbound":{"graphics":{"center":"markings--left-straight-inbound"}},"markings--straight-inbound":{"graphics":{"center":"markings--straight-inbound"}},"markings--right-straight-inbound":{"graphics":{"center":"markings--right-straight-inbound"}},"markings--right-inbound":{"graphics":{"center":"markings--right-inbound"}},"markings--both-inbound":{"graphics":{"center":"markings--both-inbound"}},"markings--left-right-straight-inbound":{"graphics":{"center":"markings--left-right-straight-inbound"}},"markings--shared-inbound":{"graphics":{"center":"markings--shared-inbound"}},"markings--center-lane-left":{"graphics":{"left":"markings--center-lane-left"}},"markings--center-lane-right":{"graphics":{"right":"markings--center-lane-right"}},"markings--left-outbound":{"graphics":{"center":"markings--left-outbound"}},"markings--left-straight-outbound":{"graphics":{"center":"markings--left-straight-outbound"}},"markings--straight-outbound":{"graphics":{"center":"markings--straight-outbound"}},"markings--right-straight-outbound":{"graphics":{"center":"markings--right-straight-outbound"}},"markings--right-outbound":{"graphics":{"center":"markings--right-outbound"}},"markings--both-outbound":{"graphics":{"center":"markings--both-outbound"}},"markings--left-right-straight-outbound":{"graphics":{"center":"markings--left-right-straight-outbound"}},"markings--shared-outbound":{"graphics":{"center":"markings--shared-outbound"}},"markings--streetcar-track-01":{"graphics":{"center":"markings--streetcar-track-01"}},"markings--streetcar-track-02":{"graphics":{"center":"markings--streetcar-track-02"}},"markings--stripes-diagonal":{"graphics":{"repeat":"markings--stripes-diagonal"}},"markings--parking-left":{"graphics":{"right":"markings--parking-left"}},"markings--parking-right":{"graphics":{"left":"markings--parking-right"}},"markings--twoway-left":{"graphics":{"center":[{"id":"markings--center-lane"},{"id":"markings--straight-inbound-light","offsetX":"-50%"},{"id":"markings--straight-outbound-light","offsetX":"50%"}]}},"markings--twoway-right":{"graphics":{"center":[{"id":"markings--center-lane"},{"id":"markings--straight-inbound-light","offsetX":"50%"},{"id":"markings--straight-outbound-light","offsetX":"-50%"}]}},"markings--crosswalk-zebra":{"graphics":{"repeat":"markings--crosswalk-zebra"}},"markings--crosswalk-zebra-bike":{"graphics":{"repeat":"markings--crosswalk-zebra-bike"}}},"objects":{"pickup-sign":{"name":"Pickup sign","nameKey":"pickup-sign","owner":"FURNITURE","zIndex":30,"variants":{"orientation":{"left":{"graphics":{"right":"curb--pickup-sign-left"}},"right":{"graphics":{"left":"curb--pickup-sign-right"}}}}},"person-waiting":{"name":"Person waiting","nameKey":"person-waiting","zIndex":30,"variants":{"orientation":{"left":{"graphics":{"center":"curb--person-waiting-01-left"}},"right":{"graphics":{"center":"curb--person-waiting-01-right"}}}}},"utility-pole":{"name":"Utility pole","nameKey":"utility-pole","owner":"UTILITY","zIndex":10,"variants":{"orientation":{"left":{"graphics":{"center":"utilities--utility-pole-left"}},"right":{"graphics":{"center":"utilities--utility-pole-right"}}}}},"tree":{"name":"Tree","nameKey":"tree","owner":"NATURE","zIndex":22,"variants":{"type":{"big":{"graphics":{"center":"trees--tree"}},"palm-tree":{"graphics":{"center":"trees--palm-tree"}}}}},"bike-rack":{"name":"Bike rack","nameKey":"bike-rack","owner":"BIKE","zIndex":23,"variants":{"direction|orientation":{"parallel":{"left":{"graphics":{"left":"bikes--bike-rack-parallel-left"}},"right":{"graphics":{"right":"bikes--bike-rack-parallel-right"}}},"perpendicular":{"left":{"graphics":{"left":"bikes--bike-rack-perpendicular-left"}},"right":{"graphics":{"right":"bikes--bike-rack-perpendicular-right"}}}}}},"bench":{"name":"Bench","nameKey":"bench","owner":"FURNITURE","zIndex":24,"variants":{"orientation":{"left":{"graphics":{"left":"furniture--bench-left"}},"center":{"graphics":{"center":"furniture--bench-center"}},"right":{"graphics":{"right":"furniture--bench-right"}}}}},"outdoor-dining":{"name":"Outdoor dining","nameKey":"outdoor-dining","owner":"FURNITURE","zIndex":20,"variants":{"occupants":{"occupied":{"graphics":{"center":"furniture--cafe-seating-occupied"}},"empty":{"graphics":{"center":"furniture--cafe-seating"}}}}},"wayfinding-sign":{"name":"Wayfinding sign","nameKey":"wayfinding-sign","owner":"FURNITURE","zIndex":21,"variants":{"type":{"small":{"graphics":{"center":"wayfinding--nyc-wayfinding-pylon-small"}},"medium":{"graphics":{"center":"wayfinding--nyc-wayfinding-pylon-medium"}},"large":{"graphics":{"center":"wayfinding--nyc-wayfinding-pylon-large"}}}}},"lamp":{"name":"Lamp","nameKey":"lamp","owner":"FURNITURE","zIndex":19,"variants":{"type|orientation":{"modern":{"right":{"graphics":{"right":"lamps--lamp-modern-right"}},"left":{"graphics":{"left":"lamps--lamp-modern-left"}},"both":{"graphics":{"center":"lamps--lamp-modern-both"}}},"traditional":{"right":{"graphics":{"right":"lamps--lamp-traditional-right"}},"left":{"graphics":{"left":"lamps--lamp-traditional-left"}},"both":{"graphics":{"center":"lamps--lamp-traditional-center"}}}}}}
58,"pride-banner":{"name":"Pride banner","nameKey":"pride-banner","variants":{"orientation":{"left":{"graphics":{"left":"lamps--pride-banner-left"}},"right":{"graphics":{"right":"lamps--pride-banner-right"}},"both":{"graphics":{"center":{"id":"lamps--pride-banner-left","offsetX":49}}}}}},"parklet":{"name":"Parklet","nameKey":"parklet","owner":"FURNITURE","zIndex":15,"variants":{"orientation":{"left":{"graphics":{"left":"parklet--yerba-buena-parklet-left-v02"}},"right":{"graphics":{"right":"parklet--yerba-buena-parklet-right-v02"}}}}},"street-vendor":{"name":"Street vendor","nameKey":"street-vendor","zIndex":24,"variants":{"vendor-type":{"handcart":{"graphics":{"center":"vendors--vendor-handcart"}},"platform":{"graphics":{"center":"vendors--vendor-platform"}},"table":{"graphics":{"center":"vendors--vendor-table"}},"tarp":{"graphics":{"center":"vendors--vendor-tarp"}}}}},"bikeshare":{"name":"Bikeshare station","nameKey":"bikeshare-station","owner":"FURNITURE","zIndex":21,"variants":{"orientation":{"left":{"graphics":{"left":"bikes--bikeshare-left"}},"right":{"graphics":{"right":"bikes--bikeshare-right"}}}}},"planting-strip":{"name":"Planting strip","nameKey":"planting-strip","owner":"NATURE","zIndex":20,"variants":{"type":{"grass":{"graphics":{"repeat":"plants--grass"}},"bush":{"graphics":{"scatter":{"sprites":["plants--bush"],"minSpacing":-1,"maxSpacing":1,"padding":0.5}}},"flowers":{"graphics":{"scatter":{"sprites":["plants--flowers-red",{"id":"plants--flowers-orange","width":1,"disallowFirst":true,"weight":20},{"id":"plants--flowers-yellow","width":1,"disallowFirst":true},{"id":"plants--flowers-white","width":1,"disallowFirst":true,"weight":20},{"id":"plants--flowers-blue","width":1,"disallowFirst":true,"weight":10}],"minSpacing":-0.5,"maxSpacing":1,"padding":0.5}}}}}},"planter-box":{"name":"Planter box","nameKey":"planter-box","owner":"FURNITURE","zIndex":20,"variants":{"type":{"default":{"graphics":{"center":"dividers--planter-box"}}}}},"bollard":{"name":"Bollard","nameKey":"bollard","zIndex":20,"variants":{"type":{"default":{"graphics":{"center":"dividers--bollard"}}}}},"dome":{"name":"Traffic exclusion dome","nameKey":"dome","zIndex":20,"variants":{"type":{"default":{"graphics":{"center":"dividers--dome"}}}}},"transit-shelter":{"name":"Transit shelter","nameKey":"transit-shelter","owner":"TRANSIT","zIndex":20,"variants":{"type|orientation":{"transit-shelter-01":{"left":{"graphics":{"left":"transit--transit-shelter-01-left"}},"right":{"graphics":{"right":"transit--transit-shelter-01-right"}}},"transit-shelter-02":{"left":{"graphics":{"left":"transit--transit-shelter-02-left"}},"right":{"graphics":{"right":"transit--transit-shelter-02-right"}}}}}},"brt-station":{"name":"BRT station","nameKey":"brt-station","owner":"TRANSIT","zIndex":20,"variants":{"orientation":{"left":{"graphics":{"quirks":{"minWidth":2},"repeat":{"id":"transit--brt-station-piece-center","padding":0.5},"left":"transit--brt-station-piece-left-edge","right":"transit--brt-station-piece-right-platform","scatter":{"pool":"people","minSpacing":0,"maxSpacing":0.75,"originY":-45,"padding":2}}},"right":{"graphics":{"quirks":{"minWidth":2},"repeat":{"id":"transit--brt-station-piece-center","padding":0.5},"right":"transit--brt-station-piece-right-edge","left":"transit--brt-station-piece-left-platform","scatter":{"pool":"people","minSpacing":0,"maxSpacing":0.75,"originY":-45,"padding":2}}},"center":{"graphics":{"quirks":{"minWidth":2},"repeat":{"id":"transit--brt-station-piece-center","padding":0.5},"left":"transit--brt-station-piece-left-platform","right":"transit--brt-station-piece-right-platform","scatter":{"pool":"people","minSpacing":0,"maxSpacing":0.75,"originY":-45,"padding":2}}}}}},"traffic-cone":{"name":"Traffic cone","nameKey":"traffic-cone","zIndex":20,"variants":{"type":{"default":{"graphics":{"center":"construction--cone"}}}}},"jersey-barrier":{"name":"Jersey barrier","nameKey":"jersey-barrier","zIndex":20,"variants":{"material":{"concrete":{"graphics":{"center":"construction--jersey-barrier-concrete"}},"plastic":{"graphics":{"center":"construction--jersey-barrier-plastic"}}}}},"barricade":{"name":"Barricade","nameKey":"barricade","zIndex":20,"variants":{"type":{"default":{"graphics":{"center":"construction--barricade"}}}}},"open-drain":{"variants":{"drainage-sides":{"slanted":{"graphics":{"quirks":{"minWidth":0.9},"repeat":"utilities--drainage-channel-piece-center","left":"utilities--drainage-channel-piece-left-slanted","right":"utilities--drainage-channel-piece-right-slanted"}},"vertical":{"graphics":{"quirks":{"minWidth":0.5},"repeat":"utilities--drainage-channel-piece-center","left":"utilities--drainage-channel-piece-left-vertical","right":"utilities--drainage-channel-piece-right-vertical"}}}}},"bioswale":{"variants":{"sides":{"slanted":{"graphics":{"quirks":{"minWidth":2.5},"left":"plants--bioswale-pieces-slope-left","right":"plants--bioswale-pieces-slope-right"}}},"plants":{"bush":{"graphics":{"scatter":{"sprites":["plants--bush"],"minSpacing":-1,"maxSpacing":1,"padding":1}}},"tree":{"graphics":{"scatter":{"sprites":["trees--tree"],"minSpacing":-1,"maxSpacing":1,"padding":1}}}}}},"beach-lounger":{"variants":{"type":{"default":{"graphics":{"center":"beach--lounger"}}}}},"marsh-grass":{"name":"Marsh","nameKey":"marsh","owner":"NATURE","zIndex":10,"variants":{"type":{"default":{"graphics":{"scatter":{"sprites":["plants--marsh-grass-01","plants--marsh-grass-02","plants--marsh-grass-03","plants--marsh-grass-04","plants--marsh-grass-05"],"minSpacing":-0.75,"maxSpacing":0.35,"padding":0.25}}}}}},"wall":{"name":"Wall","nameKey":"wall","owner":"WALL","variants":{"wall-height":{"low":{"graphics":{"quirks":{"minWidth":0.5}
58,"repeat":{"id":"wall--wall-low-center","padding":0.2},"left":{"id":"wall--wall-low-left-sloped","offsetX":0},"right":{"id":"wall--wall-low-right-sloped","offsetX":0}}},"high":{"graphics":{"quirks":{"minWidth":0.5},"repeat":{"id":"wall--wall-high-center","padding":0.2},"left":{"id":"wall--wall-high-left-sloped","offsetX":0},"right":{"id":"wall--wall-high-right-sloped","offsetX":0}}}}}},"guardrail":{"name":"Guard rail","nameKey":"guardrail","variants":{"type":{"default":{"graphics":{"center":"dividers--guardrail"}}}}}},"vehicles":{"pedestrian":{"name":"Pedestrian","nameKey":"pedestrian","owner":"PEDESTRIAN","variants":{"density":{"normal":{"graphics":{"scatter":{"pool":"people","minSpacing":0,"maxSpacing":1.5,"padding":0.5}}},"dense":{"graphics":{"scatter":{"pool":"people","minSpacing":0,"maxSpacing":0.5,"padding":0.5}}},"sparse":{"graphics":{"scatter":{"pool":"people","minSpacing":1,"maxSpacing":3.5,"padding":0.5}}}}}},"scooter":{"name":"Electric scooter","nameKey":"scooter","owner":"BIKE","zIndex":16,"variants":{"direction":{"inbound":{"graphics":{"center":["scooters--scooter-inbound"]}},"outbound":{"graphics":{"center":["scooters--scooter-outbound"]}}},"riders|orientation":{"empty":{"left":{"graphics":{"left":"scooters--scooter-left-docked"}},"right":{"graphics":{"right":"scooters--scooter-right-docked"}}},"sparse":{"left":{"graphics":{"left":"scooters--scooter-left-rider"}},"right":{"graphics":{"right":"scooters--scooter-right-rider"}}}}}},"taxi":{"name":"Taxi","nameKey":"taxi","owner":"CAR","zIndex":15,"variants":{"direction|orientation":{"inbound":{"left":{"graphics":{"center":"vehicles--taxi-inbound-door-left"}},"right":{"graphics":{"center":"vehicles--taxi-inbound-door-right"}}},"outbound":{"left":{"graphics":{"center":"vehicles--taxi-outbound-door-left"}},"right":{"graphics":{"center":"vehicles--taxi-outbound-door-right"}}}}}},"rideshare":{"name":"Rideshare","nameKey":"rideshare","owner":"CAR","zIndex":15,"variants":{"direction|orientation":{"inbound":{"left":{"graphics":{"center":"vehicles--rideshare-inbound-door-left"}},"right":{"graphics":{"center":"vehicles--rideshare-inbound-door-right"}}},"outbound":{"left":{"graphics":{"center":"vehicles--rideshare-outbound-door-left"}},"right":{"graphics":{"center":"vehicles--rideshare-outbound-door-right"}}}}}},"train":{"name":"“Inception” train","nameKey":"inception-train","owner":"TRANSIT","zIndex":10,"variants":{"type":{"default":{"graphics":{"center":"secret--inception-train"}}}}},"bike":{"name":"Bike","nameKey":"bike","owner":"BIKE","zIndex":16,"variants":{"type|direction":{"biker-01":{"inbound":{"graphics":{"center":"bikes--biker-01-inbound"}},"outbound":{"graphics":{"center":"bikes--biker-01-outbound"}}},"biker-02":{"inbound":{"graphics":{"center":"bikes--biker-02-inbound"}},"outbound":{"graphics":{"center":"bikes--biker-02-outbound"}}}}}},"car":{"name":"Car","nameKey":"car","owner":"CAR","zIndex":14,"variants":{"direction":{"inbound":{"graphics":{"center":"vehicles--car-inbound"}},"outbound":{"graphics":{"center":"vehicles--car-outbound"}}},"direction|turn-orientation":{"inbound":{"right":{"graphics":{"center":"vehicles--car-inbound-turn-signal-right"}},"left":{"graphics":{"center":"vehicles--car-inbound-turn-signal-left"}}},"outbound":{"right":{"graphics":{"center":"vehicles--car-outbound-turn-signal-right"}},"left":{"graphics":{"center":"vehicles--car-outbound-turn-signal-left"}}}},"direction|orientation":{"inbound":{"left":{"graphics":{"left":"vehicles--car-inbound"}},"right":{"graphics":{"right":"vehicles--car-inbound"}}},"outbound":{"left":{"graphics":{"left":"vehicles--car-outbound"}},"right":{"graphics":{"right":"vehicles--car-outbound"}}},"sideways":{"left":{"graphics":{"left":"vehicles--car-sideways-left"}},"right":{"graphics":{"right":"vehicles--car-sideways-right"}}},"angled-front-left":{"left":{"graphics":{"left":"vehicles--car-angled-front-left"}},"right":{"graphics":{"right":"vehicles--car-angled-front-left"}}},"angled-front-right":{"left":{"graphics":{"left":"vehicles--car-angled-front-right"}},"right":{"graphics":{"right":"vehicles--car-angled-front-right"}}},"angled-rear-left":{"left":{"graphics":{"left":"vehicles--car-angled-rear-left"}},"right":{"graphics":{"right":"vehicles--car-angled-rear-left"}}},"angled-rear-right":{"left":{"graphics":{"left":"vehicles--car-angled-rear-right"}},"right":{"graphics":{"right":"vehicles--car-angled-rear-right"}}}}}}
58,"microvan":{"name":"Microvan","nameKey":"microvan","owner":"CAR","zIndex":14,"variants":{"direction":{"inbound":{"graphics":{"center":"vehicles--microvan-inbound"}},"outbound":{"graphics":{"center":"vehicles--microvan-outbound"}}}}},"av":{"name":"Autonomous vehicle","nameKey":"av","owner":"CAR","zIndex":14,"variants":{"direction":{"inbound":{"graphics":{"center":"vehicles--av-inbound"}},"outbound":{"graphics":{"center":"vehicles--av-outbound"}}}}},"motorcycle-sidecar":{"name":"Motorcycle with sidecar","nameKey":"motorcycle-sidecar","owner":"CAR","zIndex":14,"variants":{"direction":{"inbound":{"graphics":{"center":"vehicles--krz-motorbike-inbound"}},"outbound":{"graphics":{"center":"vehicles--krz-motorbike-outbound"}}}}},"truck":{"name":"Truck","nameKey":"truck","owner":"CAR","zIndex":14,"variants":{"direction":{"inbound":{"graphics":{"center":"vehicles--truck-inbound"}},"outbound":{"graphics":{"center":"vehicles--truck-outbound"}}}}},"food-truck":{"name":"Food truck","nameKey":"foodtruck","owner":"CAR","zIndex":20,"variants":{"orientation":{"left":{"graphics":{"center":"vehicles--foodtruck-left"}},"right":{"graphics":{"center":"vehicles--foodtruck-right"}}}}},"streetcar":{"name":"Streetcar","nameKey":"streetcar","owner":"TRANSIT","zIndex":15,"variants":{"direction":{"inbound":{"graphics":{"center":"transit--streetcar-inbound"}},"outbound":{"graphics":{"center":"transit--streetcar-outbound"}}}}},"light-rail":{"name":"Light rail","nameKey":"light-rail","owner":"TRANSIT","zIndex":15,"variants":{"direction":{"inbound":{"graphics":{"center":"transit--light-rail-inbound"}},"outbound":{"graphics":{"center":"transit--light-rail-outbound"}}}}},"bus":{"name":"Bus","nameKey":"bus","owner":"TRANSIT","zIndex":15,"variants":{"direction":{"inbound":{"graphics":{"center":"transit--bus-inbound"}}
58,"outbound":{"graphics":{"center":"transit--bus-outbound"}}}}},"bus-alt":{"name":"Bus","nameKey":"bus","owner":"TRANSIT","zIndex":15,"variants":{"direction":{"inbound":{"graphics":{"center":"transit--bus-inbound-alt"}},"outbound":{"graphics":{"center":"transit--bus-outbound-alt"}}}}},"brt-bus":{"name":"BRT","nameKey":"brt-bus","owner":"TRANSIT","zIndex":15,"variants":{"direction":{"inbound":{"graphics":{"center":"transit--brt-bus-inbound"}},"outbound":{"graphics":{"center":"transit--brt-bus-outbound"}}}}},"double-decker-bus":{"name":"Double decker bus","nameKey":"double-decker","owner":"TRANSIT","zIndex":15,"variants":{"direction":{"inbound":{"graphics":{"center":"transit--double-decker-bus-inbound"}},"outbound":{"graphics":{"center":"transit--double-decker-bus-outbound"}}}}},"av-shuttle":{"name":"Autonomous shuttle","nameKey":"av-shuttle","owner":"TRANSIT","zIndex":15,"variants":{"direction":{"inbound":{"graphics":{"center":"transit--av-shuttle-inbound"}},"outbound":{"graphics":{"center":"transit--av-shuttle-outbound"}}}}},"magic-carpet":{"name":"Magic carpet","nameKey":"magic-carpet","zIndex":14,"variants":{"magic-carpet-occupants":{"aladdin":{"graphics":{"center":{"id":"vehicles--magic-carpet-aladdin","originY":-325}}},"jasmine":{"graphics":{"center":{"id":"vehicles--magic-carpet-jasmine","originY":-325}}},"aladdin-jasmine":{"graphics":{"center":{"id":"vehicles--magic-carpet-aladdin-jasmine","originY":-325}}},"jasmine-aladdin":{"graphics":{"center":{"id":"vehicles--magic-carpet-jasmine-aladdin","originY":-325}}}}}}},"effects":{"biker-stress":{"name":"Biker stress","nameKey":"biker-stress","variants":{"type":{"sweat-drop":{"graphics":{"center":"effects--sweat-drop"}}}}}}}');function cu(e,t){return ei(cl)[e]?.[t]??cf}let cc=function(e){let t={};for(let n in e)t[n]=cp([n,e[n]]);return t}(ei(co)),cd={NONE:"NONE",CAR:"CAR",TRANSIT:"TRANSIT",BIKE:"BIKE",PEDESTRIAN:"PEDESTRIAN",FURNITURE:"FURNITURE",FLEX:"FLEX",UTILITY:"UTILITY",WALL:"WALL",DRAINAGE:"DRAINAGE",NATURE:"NATURE"},cf={unknown:!0,id:"unknown",name:"Unknown",owner:"NONE",zIndex:1,variants:[],details:{}},ch={unknown:!0,name:"Unknown",graphics:{center:"missing"}};function cp([e,t]){return{id:e,...t}}function cm(e){return cc[e]??cf}function cg(e,t){let n=cm(e).details?.[t],{rules:r}=cm(e);if(n?.components===void 0)return ch;let{components:i,...o}=n,a=function(e,t){let{rules:n,...r}=e;return Object.assign({},t,n,r)}(o,r);return a.graphics=Object.entries(i).reduce((e,t)=>{let[n,r]=t,i=r.reduce((e,t)=>(e[t.id]=cu(n,t.id),e),{});if("markings"===n)Object.values(i).forEach(t=>{e.push(t.graphics)});else{let t=r.reduce((e,t)=>{let{id:n,offsetX:r,offsetY:o,variants:a}=t,s=i[n]&&i[n].variants;return s&&a&&Object.entries(a).forEach(([t,n])=>{var i;let a=s[t]??ch;(Array.isArray(n)?n:[n]).forEach(e=>{a=a?.[e]??ch});let l=(i=a.graphics,r||o?Object.entries(i).reduce((e,[t,n])=>(e[t]={id:n,offsetX:r,offsetY:o},e),{}):i);e.push(l)}),e},[]);t.length&&t.forEach(t=>{e.push(t)})}return e},[]).reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{let r=e[n],i=t[n];if(r){let t,o;e[n]=(t=Array.isArray(r)?r:[r],o=Array.isArray(i)?i:[i],cs(t.concat(o)))}else e[n]=i}),e),{}),a.elevation=cu("lanes",i.lanes?.[0].id).elevation,a}function cy(e){return"object"==typeof e?{...ei(ca)[e.id],...e}:{...ei(ca)[e]??{id:e}}}function cv(e,t,n={}){return cb(t,n).format(e)}let cb=(pZ=Intl.NumberFormat,P={},(...e)=>{let t=JSON.stringify(e.map(e=>{var t;return e&&"object"==typeof e?Object.keys(t=e).sort().map(e=>({[e]:t[e]})):e})),n=P[t];if(n)return n;let r=new pZ(...e);return P[t]=r,r});function cw(e,t=0){return Number(Math.round(Number(e+"e"+t))+"e-"+t)}let cx={".125":"⅛",".25":"¼",".375":"⅜",".5":"½",".625":"⅝",".75":"¾",".875":"⅞"};function c_(e,t,n){let r;if(1===t)r=function(e,t){let n=Math.floor(e),r=cx[(e-n).toString().replace(/^0/,"")];if(void 0!==r)if(e<1)return r;else return ck(n,1,t)+r;return ck(e,1,t)}(cS(e),n)+"′";else switch(r=ck(e,0,n),n){case"ru":r+=" м";break;case"ar":r+=" م";break;default:r+=" m"}return r}function ck(e,t,n){return e?("ar"===n&&(n+="-u-nu-latn"),cv(e,n,{style:"decimal",maximumFractionDigits:3})):"0"}function cS(e){return Math.round(8*cw(e/.3048,3))/8}function cE(e){return cw(.3048*e,3)}function cO(e,t){return 1===t?cE(e.imperial):e.metric}function cj(e,t){return"number"==typeof e?e:void 0!==e?cO(e,t):0}function cT(e,t){let n={},r=t.split("|"),i=cm(e);if(i&&i.variants)for(let e in i.variants)n[i.variants[e]]=r[e];return n}function cC(e){return Object.values(e).join("|")}let cI=12/.3048,cP=12/.3048*2.54,cA="left",cR="right",cN=o7({name:"street",initialState:{id:"",namespacedId:0,originalStreetId:null,schemaVersion:0,units:0,width:0,name:null,segments:[],boundary:{left:{id:"",variant:"",floors:1,elevation:0},right:{id:"",variant:"",floors:1,elevation:0}},skybox:"day",weather:null,location:null,showAnalytics:!1,occupiedWidth:0,remainingWidth:0,creatorId:null,userUpdated:!1,editCount:0},reducers:{updateStreetData:(e,t)=>({...e,...t.payload}),addSegment:{reducer(e,t){let{index:n,segment:r}=t.payload;e.segments.splice(n,0,r)},prepare:(e,t)=>
58({payload:{index:e,segment:t}})},removeSegment(e,t){e.segments.splice(t.payload,1)},moveSegment:{reducer(e,t){let{fromIndex:n,toIndex:r,update:i}=t.payload,o={...e.segments[n],...i};e.segments.splice(n,1),e.segments.splice(r,0,o)},prepare:(e,t,n={})=>({payload:{fromIndex:e,toIndex:t,update:n}})},updateShowAnalytics(e,t){e.showAnalytics=t.payload},updateCapacitySource(e,t){e.capacitySource=t.payload},updateSegments:{reducer(e,t){let{segments:n,occupiedWidth:r,remainingWidth:i}=t.payload;e.segments=n,e.occupiedWidth=r,e.remainingWidth=i},prepare:(e,t,n)=>({payload:{segments:e,occupiedWidth:t,remainingWidth:n}})},clearSegments(e){e.segments=[]},changeSegmentWidth:{reducer(e,t){let{index:n,width:r}=t.payload;e.segments[n].width=r},prepare:(e,t)=>({payload:{index:e,width:t}})},changeSegmentVariant:{reducer(e,t){let{index:n,set:r,selection:i}=t.payload,o=e.segments[n];o.variant=o.variant??{},o.variant[r]=i,o.variantString=cC(o.variant);let a=cm(o.type),s=cg(o.type,o.variantString);!0!==a.enableElevation&&!0!==o.elevationChanged&&(o.elevation=cj(s.elevation,e.units))},prepare:(e,t,n)=>({payload:{index:e,set:t,selection:n}})},toggleSliceSlope:{reducer(e,t){let{index:n,value:r}=t.payload;e.segments[n].slope.on=r},prepare:(e,t)=>({payload:{index:e,value:t}})},setSlopeValue:{reducer(e,t){let{index:n,anchor:r,value:i}=t.payload;e.segments[n].slope.values[r]=i},prepare:(e,t,n)=>({payload:{index:e,anchor:t,value:n}})},setSlopeValues:{reducer(e,t){let{index:n,values:r}=t.payload;e.segments[n].slope.values=r},prepare:(e,t)=>({payload:{index:e,values:t}})},changeSegmentProperties:{reducer(e,t){let{index:n,properties:r}=t.payload;Object.assign(e.segments[n],r)},prepare:(e,t)=>({payload:{index:e,properties:t}})},saveStreetName:{reducer(e,t){let{streetName:n,userUpdated:r}=t.payload;(e.userUpdated&&r||!e.userUpdated)&&("string"==typeof n?(e.name=n.trim(),r&&(e.userUpdated=!0),""===n&&(e.name=null,e.userUpdated=!1)):(e.name=null,e.userUpdated=!1))},prepare:(e,t)=>({payload:{streetName:e,userUpdated:t}})},saveCreatorId(e,t){e.creatorId=t.payload},saveStreetId:{reducer(e,t){let{id:n,namespacedId:r}=t.payload;n&&(e.id=n),e.namespacedId=r},prepare:(e,t)=>({payload:{id:e,namespacedId:t}})},updateStreetIdMetadata(e,t){let{creatorId:n,id:r,namespacedId:i}=t.payload;e.creatorId=n,e.id=r,e.namespacedId=i},setUpdateTime(e,t){e.updatedAt=t.payload,e.clientUpdatedAt=t.payload},saveOriginalStreetId(e,t){e.originalStreetId=t.payload},updateEditCount(e,t){e.editCount=t.payload},setUnits(e,t){e.units=t.payload},updateStreetWidth(e,t){e.width=t.payload},updateSchemaVersion(e,t){e.schemaVersion=t.payload},addLocation(e,t){e.location=t.payload},clearLocation(e){e.location=null,e.userUpdated||(e.name=null)},setBoundaryElevation:{reducer(e,t){let{position:n,value:r}=t.payload;if(!("number"!=typeof r||Number.isNaN(r)))switch(n){case"left":e.boundary.left.elevation=r;break;case"right":e.boundary.right.elevation=r}},prepare:(e,t)=>({payload:{position:e,value:t}})},setSeaLevel(e,t){let n=t.payload;if("number"!=typeof n||Number.isNaN(n))return;let r=ci(e.boundary.left.variant),i=ci(e.boundary.right.variant);r.waterfront&&(e.boundary.left.elevation=n),i.waterfront&&(e.boundary.right.elevation=n)},addBuildingFloor(e,t){switch(t.payload){case"left":e.boundary.left.floors=Math.min(e.boundary.left.floors+1,20);break;case"right":e.boundary.right.floors=Math.min(e.boundary.right.floors+1,20)}},removeBuildingFloor(e,t){switch(t.payload){case"left":e.boundary.left.floors=Math.max(e.boundary.left.floors-1,1);break;case"right":e.boundary.right.floors=Math.max(e.boundary.right.floors-1,1)}},setBuildingFloorValue:{reducer(e,t){let n=Number.parseInt(t.payload.value,10);if(Number.isNaN(n))return;let{position:r}=t.payload;switch(r){case"left":e.boundary.left.floors=Math.min(Math.max(n,1),20);break;case"right":e.boundary.right.floors=Math.min(Math.max(n,1),20)}},prepare:(e,t)=>({payload:{position:e,value:t}})},setBuildingVariant:{reducer(e,t){let{position:n,variant:r}=t.payload;if(r)switch(n){case"left":{e.boundary.left.variant=r;let t=ci(r),n=ci(e.boundary.right.variant);t.waterfront&&n.waterfront&&(e.boundary.left.elevation=e.boundary.right.elevation);break}case"right":{e.boundary.right.variant=r;let t=ci(e.boundary.left.variant),n=ci(r);t.waterfront&&n.waterfront&&(e.boundary.right.elevation=e.boundary.left.elevation)}}},prepare:(e,t)=>
58({payload:{position:e,variant:t}})},setSkybox(e,t){e.skybox=t.payload},setWeather(e,t){e.weather=t.payload}}}),{updateStreetData:cM,addSegment:cD,removeSegment:cL,moveSegment:cz,updateSegments:cF,updateShowAnalytics:cB,updateCapacitySource:cU,clearSegments:c$,changeSegmentWidth:cH,changeSegmentVariant:cW,toggleSliceSlope:cV,setSlopeValue:cq,setSlopeValues:cK,changeSegmentProperties:cZ,saveStreetName:cG,saveCreatorId:cY,saveStreetId:cX,updateStreetIdMetadata:cJ,setUpdateTime:cQ,saveOriginalStreetId:c0,updateEditCount:c1,setUnits:c2,updateStreetWidth:c3,updateSchemaVersion:c4,addLocation:c5,clearLocation:c6,setBoundaryElevation:c8,setSeaLevel:c9,addBuildingFloor:c7,removeBuildingFloor:de,setBuildingFloorValue:dt,setBuildingVariant:dn,setSkybox:dr,setWeather:di}=cN.actions;var da=cN.reducer;let ds={markerLocation:null,addressInformation:{},rawInputString:null},dl=o7({name:"map",initialState:ds,reducers:{setMapState:(e,t)=>({...e,...t.payload}),resetMapState:e=>ds},extraReducers:e=>{e.addCase(c6,()=>ds)}}),{setMapState:du,resetMapState:dc}=dl.actions;var dd=dl.reducer;let df=o7({name:"menus",initialState:{id:null},reducers:{showMenu(e,t){e.id=t.payload},clearMenus(e){e.id=null}},extraReducers:e=>{e.addCase("gallery/openGallery/pending",e=>{e.id=null}).addCase("dialogs/showDialog",e=>{e.id=null}).addCase("app/startPrinting",e=>{e.id=null})}}),{showMenu:dh,clearMenus:dp}=df.actions;var dm=df.reducer;let dg="default",dy="copy",dv="/new",db="/gallery",dw="/survey-finished",dx=["/services",dv,db,"/error","/help",dw,"/streets","/terms-of-service","/privacy-policy","/map","/survey"],d_="light",dk,dS,dE="ge-1793afb81c0a7784",dO="api.geocode.earth",dj="cb1_2sx7_1_adaba45644323779a9550e62",dT,dC=o7({name:"settings",initialState:{lastStreetId:null,lastStreetNamespacedId:null,lastStreetCreatorId:null,newStreetPreference:1,saveAsImageTransparentSky:!1,saveAsImageSegmentNamesAndWidths:!1,saveAsImageStreetName:!1,saveAsImageWatermark:!0,colorMode:d_,locale:null,units:+("coastmix"===dk)},reducers:{updateSettings:(e,t)=>({...e,...t.payload}),setUserUnits(e,t){e.units=t.payload},setUserColorMode(e,t){e.colorMode=t.payload}},extraReducers:e=>{e.addCase(ux.fulfilled,(e,t)=>{e.locale=t.payload.locale})}}),{updateSettings:dI,setUserUnits:dP,setUserColorMode:dA}=dC.actions;var dR=dC.reducer;let dN=o7({name:"system",initialState:{safari:navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")||!1,windows:navigator.userAgent.includes("Windows")||!1,offline:!1,devicePixelRatio:window.devicePixelRatio||1},reducers:{setSystemFlags:(e,t)=>({...e,...t.payload})}}),{setSystemFlags:dM}=dN.actions;var dD=dN.reducer;let dL=o7({name:"toasts",initialState:[],reducers:{addToast:{reducer(e,t){e.push(t.payload)},prepare:e=>({payload:{...e,timestamp:Date.now()}})},destroyToast:(e,t)=>e.filter(e=>e.timestamp!==t.payload)}}),{addToast:dz,destroyToast:dF}=dL.actions;var dB=dL.reducer;let dU=o7({name:"ui",initialState:{welcomePanelVisible:!1,welcomePanelDismissed:!1,toolboxVisible:!1,activeSegment:null,draggingState:{isDragging:!1,segmentBeforeEl:null,segmentAfterEl:null,draggedSegment:null,withinCanvas:!1},draggingType:0,resizeGuidesVisible:!1,immediateRemoval:!1},reducers:{setWelcomePanelVisible(e,t){e.welcomePanelVisible=t.payload},setWelcomePanelDismissed(e){e.welcomePanelDismissed=!0,e.welcomePanelVisible=!1},setActiveSegment(e,t){e.resizeGuidesVisible||(e.activeSegment=t.payload)},initDraggingState(e,t){e.draggingState.isDragging=!0,void 0!==t.payload.dragIndex&&(e.draggingState.draggedSegment=t.payload.dragIndex),e.draggingType=t.payload.type},updateDraggingState(e,t){e.draggingState={...e.draggingState,...t.payload}},clearDraggingState(e){e.draggingState={isDragging:!1,segmentBeforeEl:null,segmentAfterEl:null,draggedSegment:null,withinCanvas:!1},e.draggingType=0},setDraggingType(e,t){e.draggingType=t.payload,e.resizeGuidesVisible=3===t.payload},toggleToolbox(e){e.toolboxVisible=!e.toolboxVisible},setImmediateRemoval(e,t){e.immediateRemoval=t.payload}}}),{setWelcomePanelVisible:d$,setWelcomePanelDismissed:dH,setActiveSegment:dW,initDraggingState:dV,updateDraggingState:dq,clearDraggingState:dK,setDraggingType:dZ,toggleToolbox:dG,setImmediateRemoval:dY}=dU.actions;var dX=dU.reducer;let dJ=o7({name:"undo",initialState:{stack:[],position:null},reducers:{undo(e){null!==e.position&&(e.position=Math.max(-1,e.position-1))},redo(e){if(null===e.position)return;let t=e.stack.length-1,n=e.position+1;e.position=n>t?t:n},resetUndoStack(e){e.stack=[],e.position=null},replaceUndoStack(e,t){e.stack=t.payload.stack,0===e.stack.length?e.position=null:null===t.payload.position?e.position=e.stack.length-1:e.position=Math.min(Math.max(t.payload.position,-1),e.stack.length-1)},createNewUndo(e,t){var n;let r,i=null===e.position?0:(e.position??0)+1,o=e.stack.slice(0,i);o.push(t.payload),e.stack=o=(r=(n=o).length-100)>0?n.slice(r):n,e.position=o.length>0?o.length-1:null}}}),{undo:dQ,redo:d0,resetUndoStack:d1,replaceUndoStack:d2,createNewUndo:d3}=dJ.actions;var d4=dJ.reducer,d5={};d5=JSON.parse('{"USER":{"key":"user","text":"User","value":"USER","flags":{"VARIANT_TWOWAY_BIKES":true}},"ADMIN":{"key":"admin","text":"Administrator","value":"ADMIN","flags":{"LOCALES_LEVEL_1":true,"NEW_STREET_TEMPLATES":true,"COLOR_MODE_TOGGLE":true,"COASTMIX_MODE":true}},"BETA_TESTER":{"key":"beta_tester","text":"Beta tester","value":"BETA_TESTER","flags":{"LOCALES_LEVEL_1":true,"NEW_STREET_TEMPLATES":true,"GALLERY_SEARCH":true,"ELEVATION_CONTROLS_UNLOCKED":true,"UNIVERSAL_ELEVATION_CONTROLS":true,"SEGMENT_CROSSWALK":true,"SEGMENT_DRAINAGE_CHANNEL_UNLOCKED":true,"VARIANT_MIXED_DRIVE_LANES_1":true,"VARIANT_MIXED_DRIVE_LANES_2":true,"COLOR_MODE_TOGGLE":true,"COASTMIX_MODE":true}},"ITDP":{"key":"itdp","text":"ITDP user","value":"ITDP","flags":{"ELEVATION_CONTROLS_UNLOCKED":true,"SEGMENT_DRAINAGE_CHANNEL_UNLOCKED":true,"VARIANT_MIXED_DRIVE_LANES_1":true,"VARIANT_MIXED_DRIVE_LANES_2":true}},"TRANSLATOR":{"key":"translator","text":"Translator","value":"TRANSLATOR","flags":{"LOCALES_LEVEL_1":true}},"SUBSCRIBER_1":{"key":"subscriber_1","text":"Subscriber tier 1","value":"SUBSCRIBER_1","flags":{"SAVE_AS_IMAGE_CUSTOM_DPI":true}},"SUBSCRIBER_2":{"key":"subscriber_2","text":"Subscriber tier 2","value":"SUBSCRIBER_2","flags":{}},"SUBSCRIBER_3":{"key":"subscriber_3","text":"Subscriber tier 3","value":"SUBSCRIBER_3","flags":{}}}');let d6=o5("user/detectGeolocation",async()=>(await ub()).data),d8=o7({name:"user",initialState:{signInData:null,signedIn:!1,isSubscriber:!1,isCoilPluginSubscriber:!1,geolocation:{attempted:!1,data:null,error:null}},reducers:{setSignInData(e,t){e.signInData=t.payload,e.signedIn=!0,t.payload.details?.roles?.includes(ei(d5).SUBSCRIBER_1.value)&&(e.isSubscriber=!0)},clearSignInData(e){e.signInData=null,e.signedIn=!1,e.isSubscriber=!1,e.isCoilPluginSubscriber=!1},setCoilPluginSubscriber(e,t){e.isCoilPluginSubscriber=t.payload,t.payload&&e.signedIn?e.isSubscriber=!0:e.signInData?.details?.roles?.includes(ei(d5).SUBSCRIBER_1.value)!==!0&&(e.isSubscriber=!1)},setUserProfile(e,t){e.signInData&&(e.signInData.details=t.payload,t.payload.roles?.includes(ei(d5).SUBSCRIBER_1.value)&&(e.isSubscriber=!0))},updateDisplayName(e,t){e.signInData?.details&&(e.signInData.details.displayName=t.payload)}},extraReducers:e=>{e.addCase(d6.pending,e=>{e.geolocation.attempted=!1,e.geolocation.data=null,e.geolocation.error=null}).addCase(d6.fulfilled,(e,t)=>{e.geolocation.attempted=!0,e.geolocation.data=t.payload,e.geolocation.error=null}).addCase(d6.rejected,(e,t)=>{e.geolocation.attempted=!0,e.geolocation.data=null,e.geolocation.error=t.error.message??t.error})}}),{setSignInData:d9,clearSignInData:d7,setCoilPluginSubscriber:fe,setUserProfile:ft,updateDisplayName:fn}=d8.actions;
58var fr=d8.reducer,fi=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},fo=((pG=fo||{}).uninitialized="uninitialized",pG.pending="pending",pG.fulfilled="fulfilled",pG.rejected="rejected",pG),fa="uninitialized",fs="pending",fl="fulfilled",fu="rejected";function fc(e){return{status:e,isUninitialized:e===fa,isLoading:e===fs,isSuccess:e===fl,isError:e===fu}}function fd(e,t){if(e===t||!(ih(e)&&ih(t)||Array.isArray(e)&&Array.isArray(t)))return t;let n=Object.keys(t),r=Object.keys(e),i=n.length===r.length,o=Array.isArray(t)?[]:{};for(let r of n)o[r]=fd(e[r],t[r]),i&&(i=e[r]===o[r]);return i?e:o}function ff(e,t,n){return e.reduce((e,r,i)=>(t(r,i)&&e.push(n(r,i)),e),[]).flat()}function fh(e){return null!=e}function fp(e){return[...e?.values()??[]].filter(fh)}function fm(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var fg=()=>new Map,fy=(...e)=>fetch(...e),fv=e=>e.status>=200&&e.status<=299;function fb(e){if(!ih(e))return e;let t={...e};for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}var fw=class{constructor(e,t){this.value=e,this.meta=t}value;meta},fx="__rtkq/",f_="focused",fk=oD(`${fx}${f_}`),fS=oD(`${fx}un${f_}`),fE=oD(`${fx}online`),fO=oD(`${fx}offline`),fj="query",fT="mutation",fC="infinitequery";function fI(e){return e.type===fj}function fP(e){return e.type===fC}function fA(e){return fI(e)||fP(e)}function fR(e,t,n,r,i,o){let a="function"==typeof e?e(t,n,r,i):e;return a?ff(a,fh,e=>o(fN(e))):[]}function fN(e){return"string"==typeof e?{type:e}:e}var fM=(e,t)=>e.endpointDefinitions[t],fD=Symbol("forceQueryFn"),fL=e=>"function"==typeof e[fD],fz=class extends fi{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}value;schemaName;_bqMeta},fF=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function fB(e,t,n,r){let i=await e["~standard"].validate(t);if(i.issues)throw new fz(i.issues,t,n,r);return i.value}function fU(e){return e}var f$=(e={})=>({...e,[oB]:!0});function fH(e,{pages:t,pageParams:n},r){let i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function fW(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function fV(e,t,n,r){return fR(n[e.meta.arg.endpointName][t],oJ(e)?e.payload:void 0,oX(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function fq(e,t,n){let r=e[t];r&&n(r)}function fK(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function fZ(e,t,n){let r=e[fK(t)];r&&n(r)}var fG={},fY=Symbol.for("RTKQ/skipToken"),fX={status:fa},fJ=od(fX,()=>{}),fQ=od(fX,()=>{}),f0=WeakMap?new WeakMap:void 0,f1=({endpointName:e,queryArgs:t})=>{let n="",r=f0?.get(t);if("string"==typeof r)n=r;else{let e=JSON.stringify(t,(e,t)=>t=ih(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);ih(t)&&f0?.set(t,e),n=e}return`${e}(${n})`};function f2(e,...t){return Object.assign(e,...t)}var f3=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:o,selectConfig:a},getRunningQueryThunk:s,mwApi:l})=>{let{removeQueryResult:u,unsubscribeQueryResult:c,cacheEntriesUpserted:d}=t.internalActions,f=oV(c.match,n.fulfilled,n.rejected,d.match);function h(e){let t=i.currentSubscriptions.get(e);return!!t&&t.size>0}let p={};function m(e){for(let t of e.values())t?.abort?.()}function g(e,t,n){let i=t.getState();for(let a of e){let e=o(i,a);e?.endpointName&&function(e,t,n,i){let a=fM(r,t),l=a?.keepUnusedDataFor??i.keepUnusedDataFor;if(l===1/0)return;let c=Math.max(0,Math.min(l,2147482.647));if(!h(e)){let t=p[e];t&&clearTimeout(t),p[e]=setTimeout(()=>{if(!h(e)){let t=o(n.getState(),e);if(t?.endpointName){let e=n.dispatch(s(t.endpointName,t.originalArgs));e?.abort()}n.dispatch(u({queryCacheKey:e}))}delete p[e]},1e3*c)}}(a,e.endpointName,t,n)}}return(e,n)=>{let o=a(n.getState());if(f(e)){let t;if(d.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{let{queryCacheKey:n}=c.match(e)?e.payload:e.meta.arg;t=[n]}g(t,n,o)}if(t.util.resetApiState.match(e)){for(let[e,t]of Object.entries(p))t&&clearTimeout(t),delete p[e];m(i.runningQueries),m(i.runningMutations)}if(r.hasRehydrationInfo(e)){let{queries:t}=r.extractRehydrationInfo(e);g(Object.keys(t),n,o)}}},f4=Error("Promise never resolved before cacheEntryRemoved."),f5=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:o,selectors:{selectQueryEntry:a,selectApiState:s}})=>{let l=oQ(r),u=oQ(i),c=oJ(r,i),d={},{removeQueryResult:f,removeMutationResult:h,cacheEntriesUpserted:p}=e.internalActions;function m(e,t,n){let r=d[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function g(e){let t=d[e];t&&(delete d[e],t.cacheEntryRemoved())}function y(e){let{arg:t,requestId:n}=e.meta,{endpointName:r,originalArgs:i}=t;return[r,i,n]}function v(t,r,i,o,a){let s=fM(n,t),l=s?.onCacheEntryAdded;if(!l)return;let u={},c=new Promise(e=>{u.cacheEntryRemoved=e}),f=Promise.race([new Promise(e=>{u.valueResolved=e}),c.then(()=>{throw f4})]);f.catch(()=>{}),d[i]=u;let h=e.endpoints[t].select(fA(s)?r:i),p=o.dispatch((e,t,n)=>n),m={...o,getCacheEntry:()=>h(o.getState()),requestId:a,extra:p,updateCachedData:fA(s)?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:c};Promise.resolve(l(r,m)).catch(e=>{if(e!==f4)throw e})}return(n,o,s)=>{var b;let w=l(b=n)?b.meta.arg.queryCacheKey:u(b)?b.meta.arg.fixedCacheKey??b.meta.requestId:f.match(b)?b.payload.queryCacheKey:h.match(b)?fK(b.payload):"";function x(e,t,n,r){let i=a(s,t),l=a(o.getState(),t);!i&&l&&v(e,r,t,o,n)}if(r.pending.match(n)){let[e,t,r]=y(n);x(e,w,r,t)}else if(p.match(n))for(let{queryDescription:e,value:t}of n.payload){let{endpointName:r,originalArgs:i,queryCacheKey:o}=e;x(r,o,n.meta.requestId,i),m(o,t,{})}else if(i.pending.match(n)){if(o.getState()[t].mutations[w]){let[e,t,r]=y(n);v(e,t,w,o,r)}}else if(c(n))m(w,n.payload,n.meta.baseQueryMeta);else if(f.match(n)||h.match(n))g(w);else if(e.util.resetApiState.match(n))for(let e of Object.keys(d))g(e)}},f6=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},f8=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:o,assertTagType:a,refetchQuery:s,internalState:l})=>{let{removeQueryResult:u}=o.internalActions,c=oV(oJ(r),oX(r)),d=oV(oJ(i,r),oY(i,r)),f=[],h=0;function p(n,r){let i=r.getState(),a=i[e];
58if(f.push(...n),"delayed"===a.config.invalidationBehavior&&h>0)return;let c=f;if(f=[],0===c.length)return;let d=o.util.selectInvalidatedBy(i,c);t.batch(()=>{for(let{queryCacheKey:e}of Array.from(d.values())){let t=a.queries[e],n=fm(l.currentSubscriptions,e,fg);t&&(0===n.size?r.dispatch(u({queryCacheKey:e})):t.status!==fa&&r.dispatch(s(t)))}})}return(e,t)=>{(i.pending.match(e)||r.pending.match(e))&&h++,d(e)&&(h=Math.max(0,h-1)),c(e)?p(fV(e,"invalidatesTags",n,a),t):d(e)?p([],t):o.util.invalidateTags.match(e)&&p(fR(e.payload,void 0,void 0,void 0,void 0,a),t)}},f9=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{let{currentPolls:o,currentSubscriptions:a}=i,s=new Set,l=null;function u(t,n){s.add(t),l||(l=setTimeout(()=>{for(let t of s)!function({queryCacheKey:t},n){let r=n.getState()[e].queries[t],i=a.get(t);if(!r||r.status===fa)return;let{lowestPollingInterval:s}=f(i);if(!Number.isFinite(s))return d(t);let l=o.get(t),u=Date.now()+s;(!l||u<l.nextPollTimestamp)&&c({queryCacheKey:t},n)}({queryCacheKey:t},n);s.clear(),l=null},0))}function c({queryCacheKey:t},n){let i=n.getState()[e],s=i.queries[t],l=a.get(t);if(!s||s.status===fa)return;let{lowestPollingInterval:u,skipPollingIfUnfocused:d}=f(l);if(!Number.isFinite(u))return;let h=o.get(t);h?.timeout&&(clearTimeout(h.timeout),h.timeout=void 0);let p=Date.now()+u;o.set(t,{nextPollTimestamp:p,pollingInterval:u,timeout:setTimeout(()=>{(i.config.focused||!d)&&n.dispatch(r(s)),c({queryCacheKey:t},n)},u)})}function d(e){let t=o.get(e);t?.timeout&&clearTimeout(t.timeout),o.delete(e)}function f(e=new Map){let t=!1,n=1/0;for(let r of e.values())r.pollingInterval&&(n=Math.min(r.pollingInterval,n),t=r.skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&u(e.payload.queryCacheKey,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&u(e.meta.arg.queryCacheKey,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&c(e.meta.arg,r),n.util.resetApiState.match(e)&&(function(){for(let e of o.keys())d(e)}(),l&&(clearTimeout(l),l=null),s.clear())}},f7=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{let i=oG(n,r),o=oY(n,r),a=oJ(n,r),s={};return(n,r)=>{if(i(n)){let{requestId:i,arg:{endpointName:o,originalArgs:a}}=n.meta,l=fM(t,o),u=l?.onQueryStarted;if(u){let t={},n=new Promise((e,n)=>{t.resolve=e,t.reject=n});n.catch(()=>{}),s[i]=t;let c=e.endpoints[o].select(fA(l)?a:i),d=r.dispatch((e,t,n)=>n),f={...r,getCacheEntry:()=>c(r.getState()),requestId:i,extra:d,updateCachedData:fA(l)?t=>r.dispatch(e.util.updateQueryData(o,a,t)):void 0,queryFulfilled:n};u(a,f)}}else if(a(n)){let{requestId:e,baseQueryMeta:t}=n.meta;s[e]?.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){let{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;s[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},he=Symbol(),ht=({createSelector:e=oP}={})=>({name:he,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:o,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:h},p){!function(){let e="replace",t="remove";function n(e){if(!iI(e))return e;if(iF(e))return e.map(n);if(iB(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,n(t)]));if(iU(e))return new Set(Array.from(e).map(n));let t=Object.create(i_(e));for(let r in e)t[r]=n(e[r]);return iD(e,iv)&&(t[iv]=e[iv]),t}function r(e){return iC(e)?n(e):e}iX[iY]||(iX[iY]={applyPatches_:function(r,i){return i.forEach(i=>{let{path:o,op:a}=i,s=r;for(let e=0;e<o.length-1;e++){let t=iM(s),n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||n===ik)&&iw(19),iH(s)&&n===iS&&iw(19),i$(s=iL(s,n))||iw(18,o.join("/"))}let l=iM(s),u=n(i.value),c=o[o.length-1];switch(a){case e:switch(l){case 2:return s.set(c,u);case 3:iw(16);default:return s[c]=u}case"add":switch(l){case 1:return"-"===c?s.push(u):s.splice(c,0,u);case 2:return s.set(c,u);case 3:return s.add(u);default:return s[c]=u}case t:switch(l){case 1:return s.splice(c,1);case 2:return s.delete(c);case 3:return s.delete(i.value);default:return delete s[c]}default:iw(17,a)}}),r},generatePatches_:function(n,i,o){if(n.scope_.processedForPatches_.has(n))return;n.scope_.processedForPatches_.add(n);let{patches_:a,inversePatches_:s}=o;switch(n.type_){case 0:case 2:return function(n,i,o,a){let{base_:s,copy_:l,type_:u}=n;iN(n.assigned_,(n,c)=>{let d=iL(s,n,u),f=iL(l,n,u),h=c?iD(s,n)?e:"add":t;if(d===f&&h===e)return;let p=i.concat(n);o.push(h===t?{op:h,path:p}:{op:h,path:p,value:r(f)}),a.push("add"===h?{op:t,path:p}:h===t?{op:"add",path:p,value:r(d)}:{op:e,path:p,value:r(d)})})}(n,i,a,s);case 1:return function(n,i,o,a){let{base_:s,assigned_:l}=n,u=n.copy_;u.length<s.length&&([s,u]=[u,s],[o,a]=[a,o]);for(let t=0;t<s.length;t++){let n=u[t],c=s[t];if(l?.get(t.toString())&&n!==c){let s=n?.[ib];if(s&&s.modified_)continue;let l=i.concat([t]);o.push({op:e,path:l,value:r(n)}),a.push({op:e,path:l,value:r(c)})}}for(let e=s.length;e<u.length;e++){let t=i.concat([e]);o.push({op:"add",path:t,value:r(u[e])})}for(let e=u.length-1;s.length<=e;--e){let n=i.concat([e]);a.push({op:t,path:n})}}(n,i,a,s);case 3:return function(e,n,r,i){let{base_:o,copy_:a}=e,s=0;
58o.forEach(e=>{if(!a.has(e)){let o=n.concat([s]);r.push({op:t,path:o,value:e}),i.unshift({op:"add",path:o,value:e})}s++}),s=0,a.forEach(e=>{if(!o.has(e)){let o=n.concat([s]);r.push({op:"add",path:o,value:e}),i.unshift({op:t,path:o,value:e})}s++})}(n,i,a,s)}},generateReplacementPatches_:function(t,n,r){let{patches_:i,inversePatches_:o}=r;i.push({op:e,path:[],value:n===iy?void 0:n}),o.push({op:e,path:[],value:t})},getPath:function e(t,n=[]){if("key_"in t&&void 0!==t.key_){var r;let e,i=t.parent_.copy_??t.parent_.base_,o=i$(r=iL(i,t.key_))?r?.[ib]:null,a=iL(i,t.key_);if(void 0===a||a!==t.draft_&&a!==t.base_&&a!==t.copy_||null!=o&&o.base_!==t.base_)return null;let s=3===t.parent_.type_;if(e=s?Array.from(t.parent_.drafts_.keys()).indexOf(t.key_):t.key_,!(s&&i.size>e||iD(i,e)))return null;n.push(e)}if(t.parent_)return e(t.parent_,n);n.reverse();try{var i=t.copy_,o=n;let e=i;for(let t=0;t<o.length-1;t++)if(!i$(e=iL(e,o[t]))||null===e)throw Error(`Cannot resolve path at '${o.join("/")}'`)}catch(e){return null}return n}})}();let m=e=>e;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:fE,onOffline:fO,onFocus:fk,onFocusLost:fS},util:{}});let g=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){let r=e=>fJ,i=e=>fQ;return{buildQuerySelector:function(e,t){return l(e,t,o)},buildInfiniteQuerySelector:function(e,t){let{infiniteQueryOptions:n}=t;return l(e,t,function(e){var t,r,i,o,a,s;let l={...e,...fc(e.status)},{isLoading:u,isError:c,direction:d}=l,f="forward"===d,h="backward"===d;return{...l,hasNextPage:(t=n,r=l.data,i=l.originalArgs,!!r&&null!=fH(t,r,i)),hasPreviousPage:(o=n,a=l.data,s=l.originalArgs,!!a&&!!o.getPreviousPageParam&&null!=fW(o,a,s)),isFetchingNextPage:u&&f,isFetchingPreviousPage:u&&h,isFetchNextPageError:c&&f,isFetchPreviousPageError:c&&h}})},buildMutationSelector:function(){return e=>{let r;return n((r="object"==typeof e?fK(e)??fY:e)===fY?i:e=>e[t]?.mutations?.[r]??fQ,o)}},selectInvalidatedBy:function(e,n){let r=e[t],i=new Set;for(let e of ff(n,fh,fN)){let t=r.provided.tags[e.type];if(t)for(let n of(void 0!==e.id?t[e.id]:Object.values(t).flat())??[])i.add(n)}return Array.from(i.values()).flatMap(e=>{let t=r.queries[e];return t?{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}:[]})},selectCachedArgsForQuery:function(e,t){return ff(Object.values(a(e)),e=>e?.endpointName===t&&e.status!==fa,e=>e.originalArgs)},selectApiState:function(e){return e[t]},selectQueries:a,selectMutations:function(e){return e[t]?.mutations},selectQueryEntry:s,selectConfig:function(e){return e[t]?.config}};function o(e){return{...e,...fc(e.status)}}function a(e){return e[t]?.queries}function s(e,t){return a(e)?.[t]}function l(t,i,o){return a=>{if(a===fY)return n(r,o);let l=e({queryArgs:a,endpointDefinition:i,endpointName:t});return n(e=>s(e,l)??fJ,o)}}}({serializeQueryArgs:o,reducerPath:i,createSelector:e}),{selectInvalidatedBy:y,selectCachedArgsForQuery:v,buildQuerySelector:b,buildInfiniteQuerySelector:w,buildMutationSelector:x}=g;f2(t.util,{selectInvalidatedBy:y,selectCachedArgsForQuery:v});let{queryThunk:_,infiniteQueryThunk:k,mutationThunk:S,patchQueryData:E,updateQueryData:O,upsertQueryData:j,prefetch:T,buildMatchThunkActions:C}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:o,selectors:a,onSchemaFailure:s,catchSchemaFailure:l,skipSchemaValidation:u}){function c(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}function d(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}let f=(e,t)=>e.query&&e[t]?e[t]:fU,h=async(e,{signal:r,abort:i,rejectWithValue:o,fulfillWithValue:h,dispatch:m,getState:g,extra:y})=>{let v=n[e.endpointName],{metaSchema:b,skipSchemaValidation:w=u}=v,x=e.type===fj;try{let n,o=fU,s={signal:r,abort:i,dispatch:m,getState:g,extra:y,endpoint:e.endpointName,type:e.type,forced:x?p(e,g()):void 0,queryCacheKey:x?e.queryCacheKey:void 0},l=x?e[fD]:void 0,u=async(t,n,r,i)=>{if(null==n&&t.pages.length)return Promise.resolve({data:t});let o={queryArg:e.originalArgs,pageParam:n},a=await _(o),s=i?c:d;return{data:{pages:s(t.pages,a.data,r),pageParams:s(t.pageParams,n,r)},meta:a.meta}};async function _(e){let n,{extraOptions:r,argSchema:i,rawResponseSchema:a,responseSchema:u}=v;if(i&&!fF(w,"arg")&&(e=await fB(i,e,"argSchema",{})),l?n=l():v.query?(o=f(v,"transformResponse"),n=await t(v.query(e),s,r)):n=await v.queryFn(e,s,r,e=>t(e,s,r)),n.error)throw new fw(n.error,n.meta);let{data:c}=n;a&&!fF(w,"rawResponse")&&(c=await fB(a,n.data,"rawResponseSchema",n.meta));let d=await o(c,n.meta,e);return u&&!fF(w,"response")&&(d=await fB(u,d,"responseSchema",n.meta)),{...n,data:d}}if(x&&"infiniteQueryOptions"in v){let t,{infiniteQueryOptions:r}=v,{maxPages:i=1/0}=r,o=e.refetchCachedPages??r.refetchCachedPages??!0,s=a.selectQueryEntry(g(),e.queryCacheKey)?.data,c=(!p(e,g())||e.direction)&&s?s:{pages:[],pageParams:[]};if("direction"in e&&e.direction&&c.pages.length){let n="backward"===e.direction,o=(n?fW:fH)(r,c,e.originalArgs);t=await u(c,o,i,n)}else{let{initialPageParam:n=r.initialPageParam}=e,a=s?.pageParams??[],d=a[0]??n,f=a.length;if(t=await u(c,d,i),l&&(t={data:t.data.pages[0]}),o)for(let n=1;n<f;n++){let n=fH(r,t.data,e.originalArgs);t=await u(t.data,n,i)}}n=t}else n=await _(e.originalArgs);return b&&!fF(w,"meta")&&n.meta&&(n.meta=await fB(b,n.meta,"metaSchema",n.meta)),h(n.data,f$({fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta}))}catch(n){let t=n;if(t instanceof fw){let n=f(v,"transformErrorResponse"),{rawErrorResponseSchema:r,errorResponseSchema:i}=v,{value:a,meta:s}=t;try{r&&!fF(w,"rawErrorResponse")&&(a=await fB(r,a,"rawErrorResponseSchema",s)),b&&!fF(w,"meta")&&(s=await fB(b,s,"metaSchema",s));let t=await n(a,s,e.originalArgs);return i&&!fF(w,"errorResponse")&&(t=await fB(i,t,"errorResponseSchema",s)),o(t,f$({baseQueryMeta:s}))}catch(e){t=e}}
58try{if(t instanceof fz){let n={endpoint:e.endpointName,arg:e.originalArgs,type:e.type,queryCacheKey:x?e.queryCacheKey:void 0};v.onSchemaFailure?.(t,n),s?.(t,n);let{catchSchemaFailure:r=l}=v;if(r)return o(r(t,n),f$({baseQueryMeta:t._bqMeta}))}}catch(e){t=e}throw console.error(t),t}};function p(e,t){let n=a.selectQueryEntry(t,e.queryCacheKey),r=a.selectConfig(t).refetchOnMountOrArgChange,i=n?.fulfilledTimeStamp,o=e.forceRefetch??(e.subscribe&&r);return!!o&&(!0===o||(Number(new Date)-Number(i))/1e3>=o)}let m=()=>o5(`${e}/executeQuery`,h,{getPendingMeta({arg:e}){let t=n[e.endpointName];return f$({startedTimeStamp:Date.now(),...fP(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){let r=t(),i=a.selectQueryEntry(r,e.queryCacheKey),o=i?.fulfilledTimeStamp,s=e.originalArgs,l=i?.originalArgs,u=n[e.endpointName],c=e.direction;return!!fL(e)||i?.status!=="pending"&&(!!(p(e,r)||fI(u)&&u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:i,state:r}))||!o||!!c)},dispatchConditionRejection:!0}),g=m(),y=m();function v(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:g,mutationThunk:o5(`${e}/executeMutation`,h,{getPendingMeta:()=>f$({startedTimeStamp:Date.now()})}),infiniteQueryThunk:y,prefetch:(e,t,n={})=>(r,o)=>{let a="force"in n&&n.force,s="ifOlderThan"in n&&n.ifOlderThan,l=(n=!0)=>i.endpoints[e].initiate(t,{forceRefetch:n,subscribe:!1}),u=i.endpoints[e].select(t)(o());if(a)r(l());else if(s){let e=u?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(o,a)=>{let s,l=i.endpoints[e].select(t)(a()),u={patches:[],inversePatches:[],undo:()=>o(i.util.patchQueryData(e,t,u.inversePatches,r))};if(l.status===fa)return u;if("data"in l)if(iI(l.data)){let[e,t,r]=of(l.data,n);u.patches.push(...t),u.inversePatches.push(...r),s=e}else s=n(l.data),u.patches.push({op:"replace",path:[],value:s}),u.inversePatches.push({op:"replace",path:[],value:l.data});return 0===u.patches.length||o(i.util.patchQueryData(e,t,u.patches,r)),u},upsertQueryData:(e,t,n)=>r=>r(i.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[fD]:()=>({data:n})})),patchQueryData:(e,t,a,s)=>(l,u)=>{let c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(l(i.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!s)return;let f=i.endpoints[e].select(t)(u()),h=fR(c.providesTags,f.data,void 0,t,{},o);l(i.internalActions.updateProvidedBy([{queryCacheKey:d,providedTags:h}]))},buildMatchThunkActions:function(e,t){return{matchPending:oq(oG(e),v(t)),matchFulfilled:oq(oJ(e),v(t)),matchRejected:oq(oY(e),v(t))}}}}({baseQuery:n,reducerPath:i,context:p,api:t,serializeQueryArgs:o,assertTagType:m,selectors:g,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:h}),{reducer:I,actions:P}=function({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:o,extractRehydrationInfo:a,hasRehydrationInfo:s},assertTagType:l,config:u}){let c=oD(`${e}/resetApiState`);function d(e,t,n,r){e[t.queryCacheKey]??={status:fa,endpointName:t.endpointName},fq(e,t.queryCacheKey,e=>{e.status=fs,e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp,fP(i[r.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function f(e,t,n,r){fq(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!r)return;let{merge:o}=i[t.arg.endpointName];if(e.status=fl,o)if(void 0!==e.data){let{fulfilledTimeStamp:r,arg:i,baseQueryMeta:a,requestId:s}=t,l=od(e.data,e=>o(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:s}));e.data=l}else e.data=n;else{var a;e.data=i[t.arg.endpointName].structuralSharing??!0?fd(iC(e.data)?(iC(a=e.data)||iw(15,a),a[ib].base_):e.data,n):n}delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}let h=o7({name:`${e}/queries`,initialState:fG,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:oU()},cacheEntriesUpserted:{reducer(e,t){for(let n of t.payload){let{queryDescription:r,value:i}=n;d(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),f(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},i,!0)}},prepare:e=>({payload:e.map(e=>{let{endpointName:t,arg:n,value:o}=e,a=i[t];return{queryDescription:{type:fj,endpointName:t,originalArgs:e.arg,queryCacheKey:r({queryArgs:n,endpointDefinition:a,endpointName:t})},value:o}}),meta:{[oB]:!0,requestId:o0(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){fq(e,t,e=>{e.data=oh(e.data,n.concat())})},prepare:oU()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:n}})=>{let r=fL(n);d(e,n,r,t)}).addCase(t.fulfilled,(e,{meta:t,payload:n})=>{let r=fL(t.arg);f(e,t,n,r)}).addCase(t.rejected,(e,{meta:{condition:t,arg:n,requestId:r},error:i,payload:o})=>{fq(e,n.queryCacheKey,e=>{if(t);else{if(e.requestId!==r)return;e.status=fu,e.error=o??i}})}).addMatcher(s,(e,t)=>{let{queries:n}=a(t);for(let[t,r]of Object.entries(n))(r?.status===fl||r?.status===fu)&&(e[t]=r)})}}),p=o7({name:`${e}/mutations`,initialState:fG,reducers:{removeMutationResult:{reducer(e,{payload:t}){let n=fK(t);n in e&&delete e[n]},prepare:oU()}},extraReducers(e){e.addCase(n.pending,(e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:i}})=>{r.track&&(e[fK(t)]={requestId:n,status:fs,endpointName:r.endpointName,startedTimeStamp:i})}).addCase(n.fulfilled,(e,{payload:t,meta:n})=>{n.arg.track&&fZ(e,n,e=>{e.requestId===n.requestId&&(e.status=fl,e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)})}).addCase(n.rejected,(e,{payload:t,error:n,meta:r})=>{r.arg.track&&fZ(e,r,e=>{e.requestId===r.requestId&&(e.status=fu,e.error=t??n)})}).addMatcher(s,(e,t)=>{let{mutations:n}=a(t);for(let[t,r]of Object.entries(n))(r?.status===fl||r?.status===fu)&&t!==r?.requestId&&(e[t]=r)})}}),m=o7({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(let{queryCacheKey:n,providedTags:r}of t.payload){for(let{type:t,id:i}of(g(e,n),r)){let r=(e.tags[t]??={})[i||"__internal_without_id"]??=[];r.includes(n)||r.push(n)}e.keys[n]=r}},prepare:oU()}},extraReducers(e){e.addCase(h.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{g(e,t)}).addMatcher(s,(e,t)=>{let{provided:n}=a(t);for(let[t,r]of Object.entries(n.tags??{}))for(let[i,o]of Object.entries(r)){let r=(e.tags[t]??={})[i||"__internal_without_id"]??=[];for(let t of o)r.includes(t)||r.push(t),e.keys[t]=n.keys[t]}}).addMatcher(oV(oJ(t),oX(t)),(e,t)=>{y(e,[t])}).addMatcher(h.actions.cacheEntriesUpserted.match,(e,t)=>{y(e,t.payload.map(({queryDescription:e,value:t})=>({type:"UNKNOWN",payload:t,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:e}})))})}});function g(e,t){var n;for(let r of iC(n=e.keys[t]??[])?ou(n):n){let n=r.type,i=r.id??"__internal_without_id",o=e.tags[n]?.[i];o&&(e.tags[n][i]=(iC(o)?ou(o):o).filter(e=>e!==t))}delete e.keys[t]}function y(e,t){let n=t.map(e=>{let t=fV(e,"providesTags",i,l),{queryCacheKey:n}=e.meta.arg;return{queryCacheKey:n,providedTags:t}});m.caseReducers.updateProvidedBy(e,m.actions.updateProvidedBy(n))}let v=o7({name:`${e}/subscriptions`,initialState:fG,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),b=o7({name:`${e}/internalSubscriptions`,initialState:fG,reducers:{subscriptionsUpdated:{reducer:(e,t)=>oh(e,t.payload),prepare:oU()}}}),w=o7({name:`${e}/config`,initialState:{online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine,focu
58sed:"u"<typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(fE,e=>{e.online=!0}).addCase(fO,e=>{e.online=!1}).addCase(fk,e=>{e.focused=!0}).addCase(fS,e=>{e.focused=!1}).addMatcher(s,e=>({...e}))}}),x=ip({queries:h.reducer,mutations:p.reducer,provided:m.reducer,subscriptions:b.reducer,config:w.reducer});return{reducer:(e,t)=>x(c.match(t)?void 0:e,t),actions:{...w.actions,...h.actions,...v.actions,...b.actions,...p.actions,...m.actions,resetApiState:c}}}({context:p,queryThunk:_,infiniteQueryThunk:k,mutationThunk:S,serializeQueryArgs:o,reducerPath:i,assertTagType:m,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:i,invalidationBehavior:c}});f2(t.util,{patchQueryData:E,updateQueryData:O,upsertQueryData:j,prefetch:T,resetApiState:P.resetApiState,upsertQueryEntries:P.cacheEntriesUpserted}),f2(t.internalActions,P);let A=new WeakMap,R=e=>fm(A,e,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:N,buildInitiateInfiniteQuery:M,buildInitiateMutation:D,getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueriesThunk:B,getRunningQueryThunk:U}=function({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:o,getInternalState:a}){let s=e=>a(e)?.runningQueries,l=e=>a(e)?.runningMutations,{unsubscribeQueryResult:u,removeMutationResult:c,updateSubscriptionOptions:d}=i.internalActions;return{buildInitiateQuery:function(e,t){return f(e,t)},buildInitiateInfiniteQuery:function(e,t){return f(e,t)},buildInitiateMutation:function(e){return(t,{track:n=!0,fixedCacheKey:i}={})=>(o,a)=>{var s,u;let d=o(r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:i})),{requestId:f,abort:h,unwrap:p}=d,m=Object.assign((s=d.unwrap().then(e=>({data:e})),u=e=>({error:e}),s.catch(u)),{arg:d.arg,requestId:f,abort:h,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:i}))}}),g=l(o);return g.set(f,m),m.then(()=>{g.delete(f)}),i&&(g.set(i,m),m.then(()=>{g.get(i)===m&&g.delete(i)})),m}},getRunningQueryThunk:function(t,n){return r=>{let i=e({queryArgs:n,endpointDefinition:fM(o,t),endpointName:t});return s(r)?.get(i)}},getRunningMutationThunk:function(e,t){return e=>l(e)?.get(t)},getRunningQueriesThunk:function(){return e=>fp(s(e))},getRunningMutationsThunk:function(){return e=>fp(l(e))}};function f(r,o){let a=(l,{subscribe:c=!0,forceRefetch:f,subscriptionOptions:h,[fD]:p,...m}={})=>(g,y)=>{let v,b=e({queryArgs:l,endpointDefinition:o,endpointName:r}),w={...m,type:fj,subscribe:c,forceRefetch:f,subscriptionOptions:h,endpointName:r,originalArgs:l,queryCacheKey:b,[fD]:p};if(fI(o))v=t(w);else{let{direction:e,initialPageParam:t,refetchCachedPages:r}=m;v=n({...w,direction:e,initialPageParam:t,refetchCachedPages:r})}let x=i.endpoints[r].select(l),_=g(v),k=x(y()),{requestId:S,abort:E}=_,O=k.requestId!==S,j=s(g)?.get(b),T=()=>x(y()),C=Object.assign(p?_.then(T):O&&!j?Promise.resolve(k):Promise.all([j,_]).then(T),{arg:l,requestId:S,subscriptionOptions:h,queryCacheKey:b,abort:E,async unwrap(){let e=await C;if(e.isError)throw e.error;return e.data},refetch:e=>g(a(l,{subscribe:!1,forceRefetch:!0,...e})),unsubscribe(){c&&g(u({queryCacheKey:b,requestId:S}))},updateSubscriptionOptions(e){C.subscriptionOptions=e,g(d({endpointName:r,requestId:S,queryCacheKey:b,options:e}))}});if(!j&&!O&&!p){let e=s(g);e.set(b,C),C.then(()=>{e.delete(b)})}return C};return a}}({queryThunk:_,mutationThunk:S,infiniteQueryThunk:k,api:t,serializeQueryArgs:o,context:p,getInternalState:R});f2(t.util,{getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueryThunk:U,getRunningQueriesThunk:B});let{middleware:$,actions:H}=function(e){let{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:o}=e,{apiUid:a}=i,s={invalidateTags:oD(`${t}/invalidateTags`)},l=e=>e.type.startsWith(`${t}/`),u=[f6,f3,f8,f9,f5,f7];return{middleware:n=>{let s=!1,d=o(n.dispatch),f={...e,internalState:d,refetchQuery:c,isThisApiSliceAction:l,mwApi:n},h=u.map(e=>e(f)),p=(({api:e,queryThunk:t,internalState:n,mwApi:r})=>{let i=`${e.reducerPath}
58/subscriptions`,o=null,a=null,{updateSubscriptionOptions:s,unsubscribeQueryResult:l}=e.internalActions,u=()=>n.currentSubscriptions,c={getSubscriptions:u,getSubscriptionCount:e=>{let t=u().get(e);return t?.size??0},isRequestSubscribed:(e,t)=>{let n=u();return!!n?.get(e)?.get(t)}};function d(e){return JSON.parse(JSON.stringify(Object.fromEntries([...e].map(([e,t])=>[e,Object.fromEntries(t)]))))}return(r,u)=>{if(o||(o=d(n.currentSubscriptions)),e.util.resetApiState.match(r))return o={},n.currentSubscriptions.clear(),a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(r))return[!1,c];let f=((n,r)=>{if(s.match(r)){let{queryCacheKey:e,requestId:t,options:i}=r.payload,o=n.get(e);return o?.has(t)&&o.set(t,i),!0}if(l.match(r)){let{queryCacheKey:e,requestId:t}=r.payload,i=n.get(e);return i&&i.delete(t),!0}if(e.internalActions.removeQueryResult.match(r))return n.delete(r.payload.queryCacheKey),!0;if(t.pending.match(r)){let{meta:{arg:e,requestId:t}}=r,i=fm(n,e.queryCacheKey,fg);return e.subscribe&&i.set(t,e.subscriptionOptions??i.get(t)??{}),!0}let i=!1;if(t.rejected.match(r)){let{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){let e=fm(n,t.queryCacheKey,fg);e.set(o,t.subscriptionOptions??e.get(o)??{}),i=!0}}return i})(n.currentSubscriptions,r),h=!0;if(f){a||(a=setTimeout(()=>{let t=d(n.currentSubscriptions),[,r]=of(o,()=>t);u.next(e.internalActions.subscriptionsUpdated(r)),o=t,a=null},500));let s="string"==typeof r.type&&!!r.type.startsWith(i),l=t.rejected.match(r)&&r.meta.condition&&!!r.meta.arg.subscribe;h=!s&&!l}return[h,!1]}})(f),m=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{let{removeQueryResult:o}=n.internalActions;function a(n,a){let s=n.getState()[e],l=s.queries,u=i.currentSubscriptions;t.batch(()=>{for(let e of u.keys()){let t=l[e],i=u.get(e);if(!i||!t)continue;let c=[...i.values()];(c.some(e=>!0===e[a])||c.every(e=>void 0===e[a])&&s.config[a])&&(0===i.size?n.dispatch(o({queryCacheKey:e})):t.status!==fa&&n.dispatch(r(t)))}})}return(e,t)=>{fk.match(e)&&a(t,"refetchOnFocus"),fE.match(e)&&a(t,"refetchOnReconnect")}})(f);return e=>o=>{let u;if(!ig(o))return e(o);s||(s=!0,n.dispatch(r.internalActions.middlewareRegistered(a)));let c={...n,next:e},d=n.getState(),[f,g]=p(o,c,d);if(u=f?e(o):g,n.getState()[t]&&(m(o,c,d),l(o)||i.hasRehydrationInfo(o)))for(let e of h)e(o,c,d);return u}},actions:s};function c(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}({reducerPath:i,context:p,queryThunk:_,mutationThunk:S,infiniteQueryThunk:k,api:t,assertTagType:m,selectors:g,getRunningQueryThunk:U,getInternalState:R});return f2(t.util,H),f2(t,{reducer:I,middleware:$}),{name:he,injectEndpoint(e,n){let r=t.endpoints[e]??={};fI(n)&&f2(r,{name:e,select:b(e,n),initiate:N(e,n)},C(_,e)),n.type===fT&&f2(r,{name:e,select:x(),initiate:D(e)},C(S,e)),fP(n)&&f2(r,{name:e,select:w(e,n),initiate:M(e,n)},C(_,e))}}}});ht();var ef=el("8NFma");function hn(e){return e.replace(e[0],e[0].toUpperCase())}function hr(e){return"infinitequery"===e.type}function hi(e,...t){return Object.assign(e,...t)}var ho=Symbol();function ha(e){let t=(0,ef.useRef)(e),n=(0,ef.useMemo)(()=>fd(t.current,e),[e]);return(0,ef.useEffect)(()=>{t.current!==n&&(t.current=n)},[n]),n}function hs(e){let t=(0,ef.useRef)(e);return(0,ef.useEffect)(()=>{eb(t.current,e)||(t.current=e)},[e]),eb(t.current,e)?t.current:e}var hl="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,hu="u">typeof navigator&&"ReactNative"===navigator.product,hc=hl||hu?ef.useLayoutEffect:ef.useEffect,hd=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:fo.pending}:e;function hf(e,...t){let n={};return t.forEach(t=>{n[t]=e[t]}),n}var hh=["data","status","isLoading","isSuccess","isError","error"],hp=Symbol();let hm=(function(...e){return function(t){let n=oI(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=f1;
58if("serializeQueryArgs"in e.endpointDefinition){let t=e.endpointDefinition.serializeQueryArgs;n=e=>{let n=t(e);return"string"==typeof n?n:f1({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},i={endpointDefinitions:{},batch(e){e()},apiUid:o0(),extractRehydrationInfo:n,hasRehydrationInfo:oI(e=>null!=n(e))},o={injectEndpoints:function(e){for(let[t,n]of Object.entries(e.endpoints({query:e=>({...e,type:fj}),mutation:e=>({...e,type:fT}),infiniteQuery:e=>({...e,type:fC})}))){if(!0!==e.overrideExisting&&t in i.endpointDefinitions){if("throw"===e.overrideExisting)throw Error(aa(39));continue}for(let e of(i.endpointDefinitions[t]=n,a))e.injectEndpoint(t,n)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(let t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(let[e,n]of Object.entries(t))"function"==typeof n?n(fM(i,e)):Object.assign(fM(i,e)||{},n);return o}},a=e.map(e=>e.init(o,r,i));return o.injectEndpoints({endpoints:t.endpoints})}})(ht(),(({batch:e=eI,hooks:t={useDispatch:ej,useSelector:eC,useStore:eO},createSelector:n=oP,unstable__sideEffectsInRender:r=!1,...i}={})=>({name:hp,init(i,{serializeQueryArgs:o},a){let{buildQueryHooks:s,buildInfiniteQueryHooks:l,buildMutationHook:u,usePrefetch:c}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:i},unstable__sideEffectsInRender:o,createSelector:a},serializeQueryArgs:s,context:l}){let u=o?e=>e():ef.useEffect,c=e=>e.current?.unsubscribe?.(),d=l.endpointDefinitions;return{buildQueryHooks:function(r){let i=(e,t={})=>{let[n]=p(r,e,t);return g(n),(0,ef.useMemo)(()=>({refetch:()=>(function(e){if(!e.current)throw Error(aa(38));return e.current.refetch()})(n)}),[n])},o=({refetchOnReconnect:i,refetchOnFocus:o,pollingInterval:a=0,skipPollingIfUnfocused:s=!1}={})=>{let{initiate:l}=e.endpoints[r],d=n(),[f,h]=(0,ef.useState)(ho),p=(0,ef.useRef)(void 0),m=hs({refetchOnReconnect:i,refetchOnFocus:o,pollingInterval:a,skipPollingIfUnfocused:s});u(()=>{m!==p.current?.subscriptionOptions&&p.current?.updateSubscriptionOptions(m)},[m]);let g=(0,ef.useRef)(m);u(()=>{g.current=m},[m]);let y=(0,ef.useCallback)(function(e,n=!1){let r;return t(()=>{c(p),p.current=r=d(l(e,{subscriptionOptions:g.current,forceRefetch:!n})),h(e)}),r},[d,l]),v=(0,ef.useCallback)(()=>{p.current?.queryCacheKey&&d(e.internalActions.removeQueryResult({queryCacheKey:p.current?.queryCacheKey}))},[d]);return(0,ef.useEffect)(()=>()=>{c(p)},[]),(0,ef.useEffect)(()=>{f===ho||p.current||y(f,!0)},[f,y]),(0,ef.useMemo)(()=>[y,f,{reset:v}],[y,f,v])},a=m(r,f);return{useQueryState:a,useQuerySubscription:i,useLazyQuerySubscription:o,useLazyQuery(e){let[t,n,{reset:r}]=o(e),i=a(n,{...e,skip:n===ho}),s=(0,ef.useMemo)(()=>({lastArg:n}),[n]);return(0,ef.useMemo)(()=>[t,{...i,reset:r},s],[t,i,r,s])},useQuery(e,t){let n=i(e,t),r=a(e,{selectFromResult:e===fY||t?.skip?void 0:hd,...t}),o=hf(r,...hh);return(0,ef.useDebugValue)(o),(0,ef.useMemo)(()=>({...r,...n}),[r,n])}}},buildInfiniteQueryHooks:function(e){let n=(n,r={})=>{let[i,o,a,s]=p(e,n,r),l=(0,ef.useRef)(s);u(()=>{l.current=s},[s]);let d=hs(r.refetchCachedPages),f=(0,ef.useCallback)(function(e,n){let r;return t(()=>{c(i),i.current=r=o(a(e,{subscriptionOptions:l.current,direction:n}))}),r},[i,o,a]);g(i);let h=ha(r.skip?fY:n),m=(0,ef.useCallback)(e=>{if(!i.current)throw Error(aa(38));let t={refetchCachedPages:e?.refetchCachedPages??d};return i.current.refetch(t)},[i,d]);return(0,ef.useMemo)(()=>({trigger:f,refetch:m,fetchNextPage:()=>f(h,"forward"),fetchPreviousPage:()=>f(h,"backward")}),[m,f,h])},r=m(e,h);return{useInfiniteQueryState:r,useInfiniteQuerySubscription:n,useInfiniteQuery(e,t){let{refetch:i,fetchNextPage:o,fetchPreviousPage:a}=n(e,t),s=r(e,{selectFromResult:e===fY||t?.skip?void 0:hd,...t}),l=hf(s,...hh,"hasNextPage","hasPreviousPage");return(0,ef.useDebugValue)(l),(0,ef.useMemo)(()=>({...s,fetchNextPage:o,fetchPreviousPage:a,refetch:i}),[s,o,a,i])}}},buildMutationHook:function(i){return({selectFromResult:o,fixedCacheKey:s}={})=>{let{select:l,initiate:u}=e.endpoints[i],c=n(),[d,f]=(0,ef.useState)();(0,ef.useEffect)(()=>()=>{d?.arg.fixedCacheKey||d?.reset()},[d]);let h=(0,ef.useCallback)(function(e){let t=c(u(e,{fixedCacheKey:s}));return f(t),t},[c,u,s]),{requestId:p}=d||{},m=(0,ef.useMemo)(()=>l({fixedCacheKey:s,requestId:d?.requestId}),[s,d,l]),g=r((0,ef.useMemo)(()=>o?a([m],o):m,[o,m]),eb),y=null==s?d?.arg.originalArgs:void 0,v=(0,ef.useCallback)(()=>{t(()=>{d&&f(void 0),s&&c(e.internalActions.removeMutationResult({requestId:p,fixedCacheKey:s}))})},[c,s,d,p]),b=hf(g,...hh,"endpointName");(0,ef.useDebugValue)(b);let w=(0,ef.useMemo)(()=>({...g,originalArgs:y,reset:v}),[g,y,v]);return(0,ef.useMemo)(()=>[h,w],[h,w])}},usePrefetch:function(t,r){let i=n(),o=hs(r);return(0,ef.useCallback)((n,r)=>i(e.util.prefetch(t,n,{...o,...r})),[t,i,o])}};function f(e,t,n){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,r=d[e];n!==fY&&s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);let i=void 0!==r,o=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!i&&o,l=e.isSuccess||i&&(o&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:o,isLoading:a,isSuccess:l}}function h(e,t,n){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,r=d[e];n!==fY&&s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);let i=void 0!==r,o=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!i&&o,l=e.isSuccess||i&&(o&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:o,isLoading:a,isSuccess:l}}function p(t,r,{refetchOnReconnect:i,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:s=!1,pollingInterval:l=0,skipPollingIfUnfocused:c=!1,...f}={}){let{initiate:h}=e.endpoints[t],m=n(),g=(0,ef.useRef)(void 0);g.current||(g.current=m(e.internalActions.internal_getRTKQSubscriptions()));let y=ha(s?fY:r),v=hs({refetchOnReconnect:i,refetchOnFocus:o,pollingInterval:l,skipPollingIfUnfocused:c}),b=hs(f.initialPageParam),w=hs(f.refetchCachedPages),x=(0,ef.useRef)(void 0),{queryCacheKey:_,requestId:k}=x.current||{},S=!1;_&&k&&(S=g.current.isRequestSubscribed(_,k));let E=!S&&void 0!==x.current;return u(()=>{E&&(x.current=void 0)},[E]),u(()=>{let e=x.current;if(y===fY){e?.unsubscribe(),x.current=void 0;return}let n=x.current?.subscriptionOptions;e&&e.arg===y?v!==n&&e.updateSubscriptionOptions(v):(e?.unsubscribe(),x.current=m(h(y,{subscriptionOptions:v,forceRefetch:a,...hr(d[t])?{initialPageParam:b,refetchCachedPages:w}:{}})))},[m,h,a,y,v,E,b,w,t]),[x,m,h,v]}function m(t,n){return(o,{skip:s=!1,selectFromResult:l}={})=>{let{select:u}=e.endpoints[t],c=ha(s?fY:o),d=(0,ef.useRef)(void 0),f=(0,ef.useMemo)(()=>a([u(c),(e,t)=>t,e=>c],n,{memoizeOptions:{resultEqualityCheck:eb}}),[u,c]),h=(0,ef.useMemo)(()=>l?a([f],l,{devModeChecks:{identityFunctionCheck:"never"}}):f,[f,l]),p=r(e=>
58h(e,d.current),eb),m=f(i().getState(),d.current);return hc(()=>{d.current=m},[m]),p}}function g(e){(0,ef.useEffect)(()=>()=>{c(e),e.current=void 0},[e])}}({api:i,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:a});return hi(i,{usePrefetch:c}),hi(a,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){let{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:a}=s(e);hi(i.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:a}),i[`use${hn(e)}Query`]=t,i[`useLazy${hn(e)}Query`]=n}if("mutation"===t.type){let t=u(e);hi(i.endpoints[e],{useMutation:t}),i[`use${hn(e)}Mutation`]=t}else if(hr(t)){let{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}=l(e);hi(i.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}),i[`use${hn(e)}InfiniteQuery`]=t}}}}}))())({reducerPath:"streetmixApi",baseQuery:function({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=fy,paramsSerializer:r,isJsonContentType:i=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||""),jsonContentType:o="application/json",jsonReplacer:a,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return"u"<typeof fetch&&n===fy&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,h,p)=>{let m,g,y,v,b,{getState:w,extra:x,endpoint:_,forced:k,type:S}=h,{url:E,headers:O=new Headers(c.headers),params:j,responseHandler:T=l??"json",validateStatus:C=u??fv,timeout:I=s,...P}="string"==typeof f?{url:f}:f,A={...c,signal:I?((...e)=>{for(let t of e)if(t.aborted)return AbortSignal.abort(t.reason);let t=new AbortController;for(let n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal})(h.signal,(v=new AbortController,setTimeout(()=>{let e="signal timed out",t="TimeoutError";v.abort("u">typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))},I),v.signal)):h.signal,...P};O=new Headers(fb(O)),A.headers=await t(O,{getState:w,arg:f,extra:x,endpoint:_,forced:k,type:S,extraOptions:p})||O;let R="object"==typeof(b=A.body)&&(ih(b)||Array.isArray(b)||"function"==typeof b.toJSON);if(null==A.body||R||"string"==typeof A.body||A.headers.delete("content-type"),!A.headers.has("content-type")&&R&&A.headers.set("content-type",o),R&&i(A.headers)&&(A.body=JSON.stringify(A.body,a)),A.headers.has("accept")||("json"===T?A.headers.set("accept","application/json"):"text"===T&&A.headers.set("accept","text/plain, text/html, */*")),j){let e=~E.indexOf("?")?"&":"?";E+=e+(r?r(j):new URLSearchParams(fb(j)))}let N=new Request(E=function(e,t){var n;if(!e)return t;if(!t)return e;if(n=t,RegExp("(^|:)//").test(n))return t;let r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=e.replace(/\/$/,""),t=t.replace(/^\//,""),`${e}${r}${t}`}(e,E),A);m={request:new Request(E,A)};try{g=await n(N)}catch(e){return{error:{status:(e instanceof Error||"u">typeof DOMException&&e instanceof DOMException)&&"TimeoutError"===e.name?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:m}}let M=g.clone();m.response=M;let D="";try{let e;if(await Promise.all([d(g,T).then(e=>y=e,t=>e=t),M.text().then(e=>D=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:g.status,data:D,error:String(e)},meta:m}}return C(g,y)?{data:y,meta:m}:{error:{status:g.status,data:y},meta:m}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=i(e.headers)?"json":"text"),"json"===t){let t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}({baseUrl:new URL("/api/v1",location.origin).href}),endpoints:e=>({getUser:e.query({queryFn:(e,t,n,r)=>null===e?{data:null}:r(`users/${e}`)})})}),{useGetUserQuery:hg}=hm,hy=function(e){let t,n,r,i=function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},o=new oL;return t&&("boolean"==typeof t?o.push(oN):o.push(oR(t.extraArgument))),o},{reducer:o,middleware:a,devTools:s=!0,duplicateMiddlewareCheck:l=!0,preloadedState:u,enhancers:c}=e||{};if("function"==typeof o)t=o;else if(ih(o))t=ip(o);else throw Error(aa(1));n="function"==typeof a?a(i):i();let d=im;s&&(d=oM({trace:!1,..."object"==typeof s&&s}));let f=(r=function(...e){return t=>(n,r)=>{let i=t(n,r),o=()=>{throw Error(il(15))},a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)};return o=im(...e.map(e=>e(a)))(i.dispatch),{...i,dispatch:o}}}(...n),function(e){let{autoBatch:t=!0}=e??{},n=new oL(r);return t&&n.push(((e={type:"raf"})=>t=>(...n)=>{let r,i=t(...n),o=!0,a=!1,s=!1,l=new Set,u="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?(r=window.requestAnimationFrame,e=>{let t=!1,n=()=>{t||(t=!0,cancelAnimationFrame(i),clearTimeout(o),e())},i=r(n),o=setTimeout(n,100)}
58):o$(10):"callback"===e.type?e.queueNotification:o$(e.timeout),c=()=>{s=!1,a&&(a=!1,l.forEach(e=>e()))};return Object.assign({},i,{subscribe(e){let t=i.subscribe(()=>o&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return(a=!(o=!e?.meta?.[oB]))&&!s&&(s=!0,u(c)),i.dispatch(e)}finally{o=!0}}})})("object"==typeof t?t:void 0)),n});return function e(t,n,r){if("function"!=typeof t)throw Error(il(2));if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(il(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw Error(il(1));return r(e)(t,n)}let i=t,o=n,a=new Map,s=a,l=0,u=!1;function c(){s===a&&(s=new Map,a.forEach((e,t)=>{s.set(t,e)}))}function d(){if(u)throw Error(il(3));return o}function f(e){if("function"!=typeof e)throw Error(il(4));if(u)throw Error(il(5));let t=!0;c();let n=l++;return s.set(n,e),function(){if(t){if(u)throw Error(il(6));t=!1,c(),s.delete(n),a=null}}}function h(e){if(!ih(e))throw Error(il(7));if(void 0===e.type)throw Error(il(8));if("string"!=typeof e.type)throw Error(il(17));if(u)throw Error(il(9));try{u=!0,o=i(o,e)}finally{u=!1}
58return(a=s).forEach(e=>{e()}),e}return h({type:id.INIT}),{dispatch:h,subscribe:f,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw Error(il(10));i=e,h({type:id.REPLACE})},[iu]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(il(11));function t(){e.next&&e.next(d())}return t(),{unsubscribe:f(t)}},[iu](){return this}}}}}(t,u,d(..."function"==typeof c?c(f):f()))}({reducer:{...{app:uT,coastmix:uF,debug:u$,dialogs:uq,errors:uY,flags:u1,gallery:u8,history:d4,infoBubble:cn,locale:u_,map:dd,menus:dm,settings:dR,street:da,system:dD,toasts:dB,ui:dX,user:fr},[hm.reducerPath]:hm.reducer},middleware:e=>e({immutableCheck:!1,serializableCheck:!1}).concat(hm.middleware)});function hv(e,t){let n;return hy.subscribe(function(){let r=e(hy.getState());r!==n&&t(n=r)})}let hb={forceLeftHandTraffic:!1,forceNonRetina:!1,forceOfflineMode:!1,forceReadOnly:!1},hw=new URLSearchParams(window.location.search);function hx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)"__proto__"!==r&&(e[r]=n[r])}return e}hw.has("debug-force-left-hand-traffic")&&(hb.forceLeftHandTraffic=!0),hw.has("debug-force-non-retina")&&(hb.forceNonRetina=!0),hw.has("debug-force-offline")&&(hb.forceOfflineMode=!0),hw.has("debug-force-read-only")&&(hb.forceReadOnly=!0),hy.dispatch(uU({...hb})),hb.forceReadOnly&&hy.dispatch(uS({readOnly:hb.forceReadOnly}));var h_=function e(t,n){function r(e,r,i){if("u">typeof document){"number"==typeof(i=hx({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(s in r||(r[s]=t.read(a,s)),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",hx({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,hx({},this.attributes,t))},withConverter:function(t){return e(hx({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});class hk extends Error{}function hS(e,t){let n;if("string"!=typeof e)throw new hk("Invalid token specified: must be a string");t||(t={});let r=+(!0!==t.header),i=e.split(".")[r];if("string"!=typeof i)throw new hk(`Invalid token specified: missing part #${r+1}`);try{n=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var n;return n=t,decodeURIComponent(atob(n).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(e){return atob(t)}}(i)}catch(e){throw new hk(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(n)}catch(e){throw new hk(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}function hE(e,t){let n=t&&t.cache?t.cache:hI,r=t&&t.serializer?t.serializer:hT;return(t&&t.strategy?t.strategy:function(e,t){var n,r;let i=1===e.length?hO:hj;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)})(e,{cache:n,serializer:r})}function hO(e,t,n,r){let i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(i);return void 0===o&&(o=e.call(this,r),t.set(i,o)),o}function hj(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}hk.prototype.name="InvalidTokenError";let hT=function(){return JSON.stringify(arguments)};var hC=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};let hI={create:function(){return new hC}},hP={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,hj.bind(this,e,n,r)},monadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,hO.bind(this,e,n,r)}},hA=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,hR=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,hN=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hM=/^(@+)?(\+|#+)?[rs]?$/g,hD=/(\*)(0+)|(#+)(0+)|(0+)/g,hL=/^(0+)$/;function hz(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(hM,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function hF(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function hB(e){let t=hF(e);return t||{}}let hU=((pY={})[pY.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",pY[pY.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",pY[pY.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",pY[pY.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",pY[pY.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",pY[pY.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",pY[pY.INVALID_
58NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",pY[pY.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",pY[pY.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",pY[pY.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",pY[pY.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",pY[pY.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",pY[pY.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",pY[pY.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",pY[pY.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",pY[pY.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",pY[pY.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",pY[pY.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",pY[pY.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",pY[pY.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",pY[pY.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",pY[pY.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",pY[pY.INVALID_TAG=23]="INVALID_TAG",pY[pY.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",pY[pY.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",pY[pY.UNCLOSED_TAG=27]="UNCLOSED_TAG",pY),h$=((pX={})[pX.literal=0]="literal",pX[pX.argument=1]="argument",pX[pX.number=2]="number",pX[pX.date=3]="date",pX[pX.time=4]="time",pX[pX.select=5]="select",pX[pX.plural=6]="plural",pX[pX.pound=7]="pound",pX[pX.tag=8]="tag",pX);function hH(e){return!!(e&&"object"==typeof e&&0===e.type)}function hW(e){return!!(e&&"object"==typeof e&&1===e.type)}let hV=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,hq={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
58:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},hK=RegExp(`^${hV.source}*`),hZ=RegExp(`${hV.source}*$`);function hG(e,t){return{start:e,end:t}}let hY=!!Object.fromEntries,hX=!!String.prototype.trimStart,hJ=!!String.prototype.trimEnd,hQ=hY?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},h0=hX?function(e){return e.trimStart()}:function(e){return e.replace(hK,"")},h1=hJ?function(e){return e.trimEnd()}:function(e){return e.replace(hZ,"")},h2=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var h3=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");if(this.message.length>0){let e=this.message.charCodeAt(0);if(35!==e&&39!==e&&60!==e&&123!==e&&125!==e){let e=function(e){if(0===e.length)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(10===i)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:hG(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(123===i){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),r.push({type:7,location:hG(e,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek())if(60===i&&!this.ignoreTag&&h4(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}else if(!n)return this.error(26,hG(this.clonePosition(),this.clonePosition()));else break}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${r}/>`,location:hG(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(23,hG(n,this.clonePosition()));{let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let o=i.val,a=this.clonePosition();if(!this.bumpIf("</"))return this.error(27,hG(n,this.clonePosition()));{if(this.isEOF()||!h4(this.char()))return this.error(23,hG(a,this.clonePosition()));let e=this.clonePosition();return r!==this.parseTagName()?this.error(26,hG(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:8,value:r,children:o,location:hG(n,this.clonePosition())},err:null}:this.error(23,hG(a,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r="";for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}return{val:{type:0,value:r,location:hG(n,this.clonePosition())},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(h4(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
58case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,hG(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,hG(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,hG(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,hG(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:hG(n,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,hG(n,this.clonePosition()));return this.parseArgumentOptions(e,t,r,n);default:return this.error(3,hG(n,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),n=this.offset(),r=(e=this.message,h2.lastIndex=n,h2.exec(e)[1]??""),i=n+r.length;return this.bumpTo(i),{value:r,location:hG(t,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(4,hG(i,a));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=h1(n.val);if(0===r.length)return this.error(6,hG(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:hG(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=hG(r,this.clonePosition());if(e&&e.style.startsWith("::")){let t=h0(e.style.slice(2));if("number"===o){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);if(r.err)return r;return{val:{type:2,value:n,location:i,style:r.val},err:null}}{let r;if(0===t.length)return this.error(10,i);let a=t;return this.locale&&(a=function(e,t){let n="";for(let r=0;r<e.length;r++){let i=e.charAt(r);if("j"===i){let o=0;for(;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;let a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){let t,n=e.hourCycle;if(void 0===n&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let r=e.language;return"root"!==r&&(t=e.maximize().region),(hq[t||""]||hq[r||""]||hq[`${r}-001`]||hq["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(t,this.locale)),{val:{type:"date"===o?3:4,value:n,location:i,style:{type:1,pattern:a,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},a.replace(hA,e=>{let t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-3];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-3];break;case"a":r.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][t-1];break;case"s":r.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r):{}}},err:null}}}return{val:{type:"number"===o?2:"date"===o?3:4,value:n,location:i,style:e?.style??null},err:null}}
58case"plural":case"selectordinal":case"select":{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,hG(i,{...i}));this.bumpSpace();let a=this.parseIdentifierIfPossible(),s=0;if("select"!==o&&"offset"===a.value){if(!this.bumpIf(":"))return this.error(13,hG(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),a=this.parseIdentifierIfPossible(),s=e.val}let l=this.tryParsePluralOrSelectOptions(e,o,t,a);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;let c=hG(r,this.clonePosition());if("select"===o)return{val:{type:5,value:n,options:hQ(l.val),location:c},err:null};return{val:{type:6,value:n,options:hQ(l.val),offset:s,pluralType:"plural"===o?"cardinal":"ordinal",location:c},err:null}}default:return this.error(5,hG(i,a))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,hG(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,hG(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(hR).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[r,...i]=t;for(let e of i)if(0===e.length)throw Error("Invalid number skeleton");n.push({stem:r,options:i})}return n}(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let n of e){switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...n.options.reduce((e,t)=>({...e,...hB(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...n.options.reduce((e,t)=>({...e,...hB(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(hD,function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(hL.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(hN.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(hN,function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});let e=n.options[0];
58"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...hz(e)});continue}if(hM.test(n.stem)){t={...t,...hz(n.stem)};continue}let e=hF(n.stem);e&&(t={...t,...e});let r=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!hL.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);r&&(t={...t,...r})}return t}(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,o=[],a=new Set,{value:s,location:l}=r;for(;;){if(0===s.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;l=hG(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(a.has(s))return this.error("select"===t?21:20,l);"other"===s&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,hG(this.clonePosition(),this.clonePosition()));let u=this.parseMessage(e+1,t,n);if(u.err)return u;let c=this.tryParseArgumentClose(r);if(c.err)return c;o.push([s,{value:u.val,location:hG(r,this.clonePosition())}]),a.add(s),this.bumpSpace(),{value:s,location:l}=this.parseIdentifierIfPossible()}return 0===o.length?this.error("select"===t?15:16,hG(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,hG(this.clonePosition(),this.clonePosition())):{val:o,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);let i=!1,o=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,o=10*o+(e-48),this.bump();else break}let a=hG(r,this.clonePosition());return i?Number.isSafeInteger(o*=n)?{val:o,err:null}:this.error(t,a):this.error(e,a)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function h4(e){return e>=97&&e<=122||e>=65&&e<=90}function h5(e,t={}){let n=new h3(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(n.err){let e=SyntaxError(hU[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,5===t.type||6===t.type)for(let n in t.options)delete t.options[n].location,e(t.options[n].value);else 2===t.type&&hH(t.style)||(3===t.type||4===t.type)&&hW(t.style)?delete t.style.location:8===t.type&&e(t.children)})}(n.val),n.val}let h6=((pJ={}).MISSING_VALUE="MISSING_VALUE",pJ.INVALID_VALUE="INVALID_VALUE",pJ.MISSING_INTL_API="MISSING_INTL_API",pJ);
58var h8=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},h9=class extends h8{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join('", "')}"`,"INVALID_VALUE",r)}},h7=class extends h8{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",n)}},pe=class extends h8{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function pt(e){return"function"==typeof e}function pn(e){return{create:()=>({get:t=>e[t],set(t,n){e[t]=n}})}}var pr=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let n=t.reduce((e,t)=>(e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return n.length<=1?n[0]||"":n},this.formatToParts=e=>
58(function e(t,n,r,i,o,a,s){if(1===t.length&&0===t[0].type)return[{type:0,value:t[0].value}];let l=[];for(let u of t){if(0===u.type){l.push({type:0,value:u.value});continue}if(7===u.type){"number"==typeof a&&l.push({type:0,value:r.getNumberFormat(n).format(a)});continue}let{value:t}=u;if(!(o&&t in o))throw new pe(t,s);let c=o[t];if(1===u.type){c&&"string"!=typeof c&&"number"!=typeof c&&"bigint"!=typeof c||(c="string"==typeof c||"number"==typeof c||"bigint"==typeof c?String(c):""),l.push({type:+("string"!=typeof c),value:c});continue}if(3===u.type){let e="string"==typeof u.style?i.date[u.style]:hW(u.style)?u.style.parsedOptions:void 0;l.push({type:0,value:r.getDateTimeFormat(n,e).format(c)});continue}if(4===u.type){let e="string"==typeof u.style?i.time[u.style]:hW(u.style)?u.style.parsedOptions:i.time.medium;l.push({type:0,value:r.getDateTimeFormat(n,e).format(c)});continue}if(2===u.type){let e="string"==typeof u.style?i.number[u.style]:hH(u.style)?u.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof c){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);c*=BigInt(t)}else c*=t}l.push({type:0,value:r.getNumberFormat(n,e).format(c)});continue}if(8===u.type){let{children:t,value:c}=u,d=o[c];if(!pt(d))throw new h7(c,"function",s);let f=d(e(t,n,r,i,o,a).map(e=>e.value));Array.isArray(f)||(f=[f]),l.push(...f.map(e=>({type:+("string"!=typeof e),value:e})))}if(5===u.type){let t=c,a=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other;if(!a)throw new h9(u.value,c,Object.keys(u.options),s);l.push(...e(a.value,n,r,i,o));continue}if(6===u.type){let t=`=${c}`,a=Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0;if(!a){if(!Intl.PluralRules)throw new h8(`Intl.PluralRules is not available in this environment.
59Try polyfilling it using "@formatjs/intl-pluralrules"
60`,"MISSING_INTL_API",s);let e="bigint"==typeof c?Number(c):c,t=r.getPluralRules(n,{type:u.pluralType}).select(e-(u.offset||0));a=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other}if(!a)throw new h9(u.value,c,Object.keys(u.options),s);let d="bigint"==typeof c?Number(c):c;l.push(...e(a.value,n,r,i,o,d-(u.offset||0)));continue}}return l.length<2?l:l.reduce((e,t)=>{let n=e[e.length-1];return n&&0===n.type&&0===t.type?n.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((n,r)=>{var i,o;return n[r]=(i=e[r],(o=t[r])?{...i,...o,...Object.keys(i).reduce((e,t)=>(e[t]={...i[t],...o[t]},e),{})}:i),n},{...e}):e}(e.formats,r),this.formatters=i&&i.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:hE((...e)=>new Intl.NumberFormat(...e),{cache:pn(e.number),strategy:hP.variadic}),getDateTimeFormat:hE((...e)=>new Intl.DateTimeFormat(...e),{cache:pn(e.dateTime),strategy:hP.variadic}),getPluralRules:hE((...e)=>new Intl.PluralRules(...e),{cache:pn(e.pluralRules),strategy:hP.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}}static{this.__parse=h5}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}};async function pi(){let e,t=new URLSearchParams(window.location.search).get("lang"),n=navigator.language||"en";try{e=t??JSON.parse(window.localStorage.getItem("settings")??"{}").locale??n}catch(t){e=n}hv(e=>e.app.contentDirection,e=>{document.documentElement.dir=e});let r=ps(e);hy.dispatch(ux(r))}function po(e,t="",n={}){let r,i=hy.getState().locale;if(void 0===(r="segment-info"===n.ns?i.segmentInfo[e]:i.messages[e]))return t;let o=new pr(r??t,i.locale).format(n);return Array.isArray(o)?o.join(" "):o}function pa(){let e,t,n=(e=hy.getState().flags,t=4,e.LOCALES_LEVEL_3.value&&(t=3),e.LOCALES_LEVEL_2.value&&(t=2),e.LOCALES_LEVEL_1.value&&(t=1),t);return as.filter(e=>e.level>=n).sort((e,t)=>
60e.label<t.label?-1:+(e.label>t.label))}function ps(e){let t=pa(),n="en",r=!1;for(let i=0;i<t.length;i++)if(e===t[i].value){r=!0,n=t[i].value;break}if(r)return n;let i=!1;for(let r=0;r<t.length;r++)if(0===e.indexOf(t[r].value)){n=t[r].value,i=!0;break}if(i)return n;let o=e.split("-")[0];for(let e=0;e<t.length;e++)if(o===t[e].value.split("-")[0]){n=t[e].value;break}return n}let pl=new Map,pu=["/assets/icons.svg","/assets/illustrations.svg","/assets/images.svg","/images/wordmark.svg","/images/wordmark_black.svg","/images/wordmark_white.svg","/images/sky-front.svg","/images/sky-rear.svg"],pc=document.getElementById("svg");async function pd(){let e=[];for(let t of pu)e.push(pf(t).catch(e=>{console.error("loading svg error",e)}));return(await Promise.all(e)).filter(e=>void 0!==e)}async function pf(e){if(!pc)throw Error("element not found");let t=await window.fetch(e),n=await t.text();for(let e of(pc.innerHTML+=n,pc.querySelectorAll("symbol"))){if(0===e.id.indexOf("icon-"))continue;let t=e.id.replace(/^image-/,""),n=function(e){let t,n=(void 0===(t=e.innerHTML)&&(t="",Array.prototype.slice.call(e.childNodes).forEach(function(e){t+=new window.XMLSerializer().serializeToString(e)})),t);return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e.viewBox}" width="${e.viewBox.baseVal.width}" height="${e.viewBox.baseVal.height}">${n}</svg>`}(e);ph(t,e,n)}for(let t of pc.querySelectorAll("svg[viewBox]")){if(!(t instanceof SVGSVGElement))continue;let n=function(e){e.getAttribute("viewBox")&&(e.setAttribute("width",String(e.viewBox.baseVal.width)),e.setAttribute("height",String(e.viewBox.baseVal.height)));let t=e.outerHTML;return void 0===t&&(t=new window.XMLSerializer().serializeToString(e)),t}(t);ph(e,t,n)}return n}function ph(e,t,n){let r="data:image/svg+xml;base64,"+window.btoa(n),i=new Image;i.src=r,pl.set(e,{el:t,src:r,img:i,width:t.viewBox.baseVal.width,height:t.viewBox.baseVal.height})}var pp=function e(t){let n=t;var r=({}).toString.call(t).slice(8,-1);if("Set"==r)return new Set([...t].map(t=>e(t)));if("Map"==r)return new Map([...t].map(t=>[e(t[0]),e(t[1])]));if("Date"==r)return new Date(t.getTime());if("RegExp"==r)return RegExp(t.source,function(e){if("string"==typeof e.source.flags)return e.source.flags;var t=[];return e.global&&t.push("g"),e.ignoreCase&&t.push("i"),e.multiline&&t.push("m"),e.sticky&&t.push("y"),e.unicode&&t.push("u"),t.join("")}(t));if("Array"==r||"Object"==r)for(var i in n=Array.isArray(t)?[]:{},t)n[i]=e(t[i]);return n};function pm(e,t){hy.dispatch(uj()),hy.dispatch(uZ(e,t))}let pg={0:0,2030:1.5,2050:2.5,2070:4.5},py=[cd.CAR,cd.BIKE,cd.TRANSIT,cd.BIKE,cd.UTILITY];function pv(e,t,n){let r=0,i=0,o=ci(n.boundary.left.variant),a=ci(n.boundary.right.variant);return o.waterfront?i=n.boundary.left.elevation:a.waterfront&&(i=n.boundary.right.elevation),e in pg&&(r+=pg[e]),t&&(r+=1.25),i+cE(r)}function pb(e,t,n){let r,i="left"===n,o=[],a=0;for(let n=i?0:e.length-1;i?n<e.length:n>=0;i?n++:n--){let r=e[n],s=cm(r.type),l=cg(r.type,r.variantString),u=!1;if("unknown"in l||(u=("path"===l.slope||"berm"===l.slope)&&r.slope.on),u){let e=+!i,n=+!!i;if(r.slope.values[e]>=t)break;if(r.slope.values[n]>=t){let i=r.slope.values[n]-r.slope.values[e];a+=r.width/i*(t-r.slope.values[e]),o.push(s.owner);break}a+=r.width,o.push(s.owner)}else{let e=r.elevation;if(s.owner===cd.WALL&&("low"===r.variant["wall-height"]?e+=1:e+=2.15),e>=t)break;a+=r.width,o.push(s.owner)}n===(i?e.length-1:0)&&(a+=1/0)}let s=cs(o).filter(e=>void 0!==e);return{direction:n,distance:a===1/0?"max":a,floodedTypes:s,flooded:(r=new Set(s),py.filter(e=>r.has(e))).length>0}}let pw=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t},px="SLICE",p_="PALETTE",pk={segmentEl:null,sliceIndex:null,mouseX:null,mouseY:null,elX:null,elY:null,width:null,originalX:null,originalWidth:null,right:!1};function pS(e){let{draggingType:t}=hy.getState().ui;0!==t&&(3===t&&function(e){let t,n,r;if("touches"in e&&e.touches[0])t=e.touches[0].pageX,n=e.touches[0].pageY;else{if(!("pageX"in e))return;t=e.pageX,n=e.pageY}let i=t-pk.mouseX,o=pk.elX-pk.originalX;pk.right||(o=-o),pk.width=pk.originalWidth+o/cI*2,pk.elX+=i,r=e.shiftKey?pA:pP,pk.width=pR(pk.sliceIndex,r,pk.width),pk.mouseX=t,pk.mouseY=n}(e),e.preventDefault())}function pE(e){let{draggingType:t}=hy.getState().ui;switch(t){case 0:return;case 3:pM()}e.preventDefault()}function pO(){h={isDragging:!1,segmentBeforeEl:null,segmentAfterEl:null,draggedSegment:null,withinCanvas:!1},pF(),Ar(),document.body.classList.remove("not-within-canvas")}function pj(e,t,n,r){let i;return(i=!h||e!==h.segmentBeforeEl||t!==h.segmentAfterEl||n.sliceIndex!==h.draggedSegment)&&(h={...h,isDragging:!0,segmentBeforeEl:e,segmentAfterEl:t,draggedSegment:n.sliceIndex}
60,hy.dispatch(dq({isDragging:!0,segmentBeforeEl:e,segmentAfterEl:t,draggedSegment:n.sliceIndex})),!function(e,t){let n=hy.getState().street,{variantString:r,type:i,actualWidth:o}=e;if(t===p_&&n.remainingWidth>0&&o>n.remainingWidth){let t=cg(i,r),o="unknown"in t?void 0:t.minWidth,a=0;void 0!==o&&(a=cO(o,n.units)),n.remainingWidth>=.25&&n.remainingWidth>=a&&(e.actualWidth=pz(n.remainingWidth,pL(pC,n.units)))}let{segmentBeforeEl:a,segmentAfterEl:s}=hy.getState().ui.draggingState,l=null!==s?n.segments[s]??null:null,u=null!==a?n.segments[a]??null:null,c=l&&cd[cm(l.type).owner],d=u&&cd[cm(u.type).owner],f=c===cd.CAR||c===cd.BIKE||c===cd.TRANSIT,h=d===cd.CAR||d===cd.BIKE||d===cd.TRANSIT,p=l&&cT(l.type,l.variantString),m=u&&cT(u.type,u.variantString),g=cT(i,r),y=cm(i);if(y.variants?.indexOf("direction")!==-1&&(p&&p.direction?g.direction=p.direction:m&&m.direction&&(g.direction=m.direction)),y.variants?.indexOf("parking-lane-orientation")!==-1&&(u&&h?l&&f||(g["parking-lane-orientation"]="left"):g["parking-lane-orientation"]="right"),"parklet"===i&&(l&&f?g.orientation="right":u&&h&&(g.orientation="left")),y.variants?.indexOf("turn-lane-orientation")!==-1&&(u&&h?l&&f||(g["turn-lane-orientation"]="left"):g["turn-lane-orientation"]="right"),"transit-shelter"===i&&(l&&c===cd.TRANSIT?g.orientation="right":u&&d===cd.TRANSIT&&(g.orientation="left")),y.variants?.indexOf("transit-shelter-elevation")!==-1&&("right"===g.orientation&&l&&"light-rail"===l.type?g["transit-shelter-elevation"]="light-rail":"left"===g.orientation&&u&&"light-rail"===u.type&&(g["transit-shelter-elevation"]="light-rail")),"brt-station"===i&&(g["brt-station-orientation"]="center",l&&c===cd.TRANSIT?g["brt-station-orientation"]="right":u&&d===cd.TRANSIT&&(g["brt-station-orientation"]="left")),"sidewalk-bike-rack"===i&&(l&&c!==cd.PEDESTRIAN?g.orientation="left":u&&d!==cd.PEDESTRIAN&&(g.orientation="right")),y.variants?.indexOf("lamp-orientation")!==-1&&(l&&u&&f&&h?g["lamp-orientation"]="both":l&&f?g["lamp-orientation"]="left":u&&h?g["lamp-orientation"]="right":l&&u?g["lamp-orientation"]="both":l?g["lamp-orientation"]="left":u?g["lamp-orientation"]="right":g["lamp-orientation"]="both"),e.variantString=cC(g),hy.getState().flags.COASTMIX_MODE.value){let t=Math.max(null===l?n.boundary.left.elevation??.15:l.slope.on&&l.slope.values.length>1?Math.max(...l.slope.values):l.elevation,null===u?n.boundary.right.elevation??.15:u.slope.on&&u.slope.values.length>1?Math.max(...u.slope.values):u.elevation);e.slope.on||(e.elevation=t,e.elevationChanged=!0)}}(n,r)),i}function pT(e,t){let{segmentBeforeEl:n,segmentAfterEl:r,draggedSegment:i}=h;if(n===i&&void 0===r)return void hy.dispatch(dW(i));let o={id:e.id??pw(),type:e.type,variantString:e.variantString,width:e.actualWidth,elevation:e.elevation,elevationChanged:e.elevationChanged,label:e.label,slope:e.slope};o.variant=e.variant??cT(o.type,o.variantString);let a=null!==r?r+1:n;t===px?(a=a<=i?a:a-1,hy.dispatch(cz(i,a,o))):hy.dispatch(cD(a,o)),hy.dispatch(dW(a))}let pC=0,pI=1,pP=2,pA=3;function pR(e,t,n,r){return n=pz(n,pL(t,r??hy.getState().street.units)),pF(),hy.dispatch(cH(e,n)),hy.dispatch(P0()),n}function pN(e,t,n=!1){let r=e??document.querySelector("#street-section-canvas"),i=t??document.querySelector("#street-section-outer"),o=Number.parseInt(r.style.marginLeft,10)||360,{remainingWidth:a}=hy.getState().street,s=Math.round(-a*cI/2);(!s||s<360)&&(s=360);let l=s-o;if(0===l)return!1;let u=i.scrollWidth-i.clientWidth,c=!n&&l<0&&(Math.abs(l)>i.scrollLeft||i.scrollLeft===u);return c||(r.style.marginLeft=s+25+"px",r.style.marginRight=s+25+"px"),!c}function pM(){AW=!1,pN(null,null,!1),hy.dispatch(P0()),hy.dispatch(dZ(0)),window.dispatchEvent(new window.CustomEvent("stmx:TEMP_slice_resize_end"))}function pD(e){return 1===e?.0762:.05}function pL(e,t){switch(e){case pC:case 4:case pA:return pD(t);case pI:case pP:return 1===t?.1524:.1;default:return pD(t)}}function pz(e,t){return e<.25?e=.25:e>120&&(e=120),e=cw(e=Math.round(e/t)*t,3)}function pF(){document.body.classList.add("immediate-segment-resize"),window.setTimeout(function(){document.body.classList.remove("immediate-segment-resize")},100)}function pB(e,t){let n=e.segments[t-1],r=e.segments[t+1];return[n?n.slope.on?n.slope.values[1]:n.elevation:e.boundary?.left.elevation??.15,r?r.slope.on?r.slope.values[0]:r.elevation:e.boundary?.right.elevation??.15]}function pU(e,t){let n,r=Math.abs(e[0]-e[1]),i=(r/t*100).toFixed(2);return 0!==r&&(n=Number((t/r).toFixed(2))),{slope:i,ratio:n}}function p$(e){return{slopeExceededBerm:void 0!==e&&e<3,slopeExceededPath:void 0!==e&&e<20}}var pH,pW,pV,pq,pK,pZ,pG,pY,pX,pJ,pQ,p0,p1,p2,p3="0123456789abcdef",p4="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",p5="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823
60066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",p6={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},p8=!0,p9="[DecimalError] ",p7=p9+"Invalid argument: ",me=p9+"Precision limit exceeded",mt=p9+"crypto unavailable",mn="[object Decimal]",mr=Math.floor,mi=Math.pow,mo=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ma=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,ms=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,ml=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,mu=p4.length-1,mc=p5.length-1,md={toStringTag:mn};function mf(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=mk(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=mk(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function mh(e,t,n){if(e!==~~e||e<t||e>n)throw Error(p7+e)}function mp(e,t,n,r){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=mi(10,7-t),s=e[i]%o|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(e[i+1]/o/100|0)==mi(10,t-2)-1||(s==o/2||0==s)&&(e[i+1]/o/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==mi(10,t-3)-1,a}function mm(e,t,n){for(var r,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;)o[i]*=t;
60for(o[0]+=p3.indexOf(e.charAt(a++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}md.absoluteValue=md.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),my(e)},md.ceil=function(){return my(new this.constructor(this),this.e+1,2)},md.clampedTo=md.clamp=function(e,t){var n=this.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(p7+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new n(this)},md.comparedTo=md.cmp=function(e){var t,n,r,i,o=this.d,a=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!o||!a)return s&&l?s!==l?s:o===a?0:!o^s<0?1:-1:NaN;if(!o[0]||!a[0])return o[0]?s:a[0]?-l:0;if(s!==l)return s;if(this.e!==e.e)return this.e>e.e^s<0?1:-1;for(t=0,n=(r=o.length)<(i=a.length)?r:i;t<n;++t)if(o[t]!==a[t])return o[t]>a[t]^s<0?1:-1;return r===i?0:r>i^s<0?1:-1},md.cosine=md.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;(r=t.d.length)<32?i=(1/mA(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10"),e.precision+=n,t=mP(e,1,t.times(i),new e(1));for(var o=n;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(r,mR(r,n)),r.precision=e,r.rounding=t,my(2==p2||3==p2?n.neg():n,e,t,!0)):new r(1):new r(NaN)},md.cubeRoot=md.cbrt=function(){var e,t,n,r,i,o,a,s,l,u,c=this.constructor;if(!this.isFinite()||this.isZero())return new c(this);for(p8=!1,(o=this.s*mi(this.s*this,1/3))&&Math.abs(o)!=1/0?r=new c(o.toString()):(n=mf(this.d),(o=((e=this.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=mi(n,1/3),e=mr((e+1)/3)-(e%3==(e<0?-1:2)),(r=new c(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=this.s),a=(e=c.precision)+3;;)if(r=mg((u=(l=(s=r).times(s).times(s)).plus(this)).plus(this).times(s),u.plus(l),a+2,1),mf(s.d).slice(0,a)===(n=mf(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(my(r,e+1,1),t=!r.times(r).times(r).eq(this));break}if(!i&&(my(s,e+1,0),s.times(s).times(s).eq(this))){r=s;break}a+=4,i=1}return p8=!0,my(r,e,c.rounding,t)},md.decimalPlaces=md.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-mr(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},md.dividedBy=md.div=function(e){return mg(this,new this.constructor(e))},md.dividedToIntegerBy=md.divToInt=function(e){var t=this.constructor;return my(mg(this,new t(e),0,1,1),t.precision,t.rounding)},md.equals=md.eq=function(e){return 0===this.cmp(e)},md.floor=function(){return my(new this.constructor(this),this.e+1,3)},md.greaterThan=md.gt=function(e){return this.cmp(e)>0},md.greaterThanOrEqualTo=md.gte=function(e){var t=this.cmp(e);return 1==t||0===t},md.hyperbolicCosine=md.cosh=function(){var e,t,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/mA(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=mP(a,1,o.times(t),new a(1),!0);for(var l,u=e,c=new a(8);u--;)l=o.times(o),o=s.minus(l.times(c.minus(l.times(c))));return my(o,a.precision=n,a.rounding=r,!0)},md.hyperbolicSine=md.sinh=function(){var e,t,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=mP(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=mP(o,2,i=i.times(1/mA(5,e)),i,!0);for(var a,s=new o(5),l=new o(16),u=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(u))))}return o.precision=t,o.rounding=n,my(i,t,n,!0)},md.hyperbolicTangent=md.tanh=function(){var e,t,n=this.constructor;return this.isFinite()?this.isZero()?new n(this):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,mg(this.sinh(),this.cosh(),n.precision=e,n.rounding=t)):new n(this.s)},md.inverseCosine=md.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,i=t.rounding;return -1!==n?0===n?e.isNeg()?mx(t,r,i):new t(0):new t(NaN):e.isZero()?mx(t,r+4,i).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=i,e.times(2))},md.inverseHyperbolicCosine=md.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,p8=!1,n=n.times(n).minus(1).sqrt().plus(n),p8=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},md.inverseHyperbolicSine=md.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,p8=!1,n=n.times(n).plus(1).sqrt().plus(n),p8=!0,r.precision=e,r.rounding=t,n.ln())},md.inverseHyperbolicTangent=md.atanh=function(){var e,t,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,Math.max(r=i.sd(),e)<-(2*i.e)-1)?my(new o(i),e,t,!0):(o.precision=n=r-i.e,i=mg(i.plus(1),new o(1).minus(i),n+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5)):new o(NaN)},md.inverseSine=md.asin=function(){var e,t,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==t)?0===t?((e=mx(o,n+4,r).times(.5)).s=i.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2))},md.inverseTangent=md.atan=function(){var e,t,n,r,i,o,a,s,l,u=this,c=u.constructor,d=c.precision,f=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);else if(u.abs().eq(1)&&d+4<=mc)return(a=mx(c,d+4,f).times(.25)).s=u.s,a}else{if(!u.s)return new c(NaN);if(d+4<=mc)return(a=mx(c,d+4,f).times(.5)).s=u.s,a}
60for(c.precision=s=d+10,c.rounding=1,e=n=Math.min(28,s/7+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(p8=!1,t=Math.ceil(s/7),r=1,l=u.times(u),a=new c(u),i=u;-1!==e;)if(i=i.times(l),o=a.minus(i.div(r+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(r+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return n&&(a=a.times(2<<n-1)),p8=!0,my(a,c.precision=d,c.rounding=f,!0)},md.isFinite=function(){return!!this.d},md.isInteger=md.isInt=function(){return!!this.d&&mr(this.e/7)>this.d.length-2},md.isNaN=function(){return!this.s},md.isNegative=md.isNeg=function(){return this.s<0},md.isPositive=md.isPos=function(){return this.s>0},md.isZero=function(){return!!this.d&&0===this.d[0]},md.lessThan=md.lt=function(e){return 0>this.cmp(e)},md.lessThanOrEqualTo=md.lte=function(e){return 1>this.cmp(e)},md.logarithm=md.log=function(e){var t,n,r,i,o,a,s,l=this.constructor,u=l.precision,c=l.rounding;if(null==e)e=new l(10),t=!0;else{if(n=(e=new l(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new l(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(t)if(n.length>1)i=!0;else{for(r=n[0];r%10==0;)r/=10;i=1!==r}if(p8=!1,mp((s=mg(o=mT(this,a=u+5),t?mw(l,a+10):mT(e,a),a,1)).d,r=u,c))do if(a+=10,s=mg(o=mT(this,a),t?mw(l,a+10):mT(e,a),a,1),!i){+mf(s.d).slice(r+1,r+15)+1==1e14&&(s=my(s,u+1,0));break}while(mp(s.d,r+=10,c))return p8=!0,my(s,u,c)},md.minus=md.sub=function(e){var t,n,r,i,o,a,s,l,u,c,d,f,h=this.constructor;if(e=new h(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new h(e.d||this.s!==e.s?this:NaN):e=new h(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(u=this.d,f=e.d,s=h.precision,l=h.rounding,!u[0]||!f[0]){if(f[0])e.s=-e.s;else{if(!u[0])return new h(3===l?-0:0);e=new h(this)}return p8?my(e,s,l):e}if(n=mr(e.e/7),c=mr(this.e/7),u=u.slice(),o=c-n){for((d=o<0)?(t=u,o=-o,a=f.length):(t=f,n=c,a=u.length),o>(r=Math.max(Math.ceil(s/7),a)+2)&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for((d=(r=u.length)<(a=f.length))&&(a=r),r=0;r<a;r++)if(u[r]!=f[r]){d=u[r]<f[r];break}o=0}for(d&&(t=u,u=f,f=t,e.s=-e.s),a=u.length,r=f.length-a;r>0;--r)u[a++]=0;for(r=f.length;r>o;){if(u[--r]<f[r]){for(i=r;i&&0===u[--i];)u[i]=1e7-1;--u[i],u[r]+=1e7}u[r]-=f[r]}for(;0===u[--a];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=mb(u,n),p8?my(e,s,l):e):new h(3===l?-0:0)},md.modulo=md.mod=function(e){var t,n=this.constructor;return(e=new n(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(p8=!1,9==n.modulo?(t=mg(this,e.abs(),0,3,1),t.s*=e.s):t=mg(this,e,0,n.modulo,1),t=t.times(e),p8=!0,this.minus(t)):my(new n(this),n.precision,n.rounding):new n(NaN)},md.naturalExponential=md.exp=function(){return mj(this)},md.naturalLogarithm=md.ln=function(){return mT(this)},md.negated=md.neg=function(){var e=new this.constructor(this);return e.s=-e.s,my(e)},md.plus=md.add=function(e){var t,n,r,i,o,a,s,l,u,c,d=this.constructor;if(e=new d(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new d(e.d||this.s===e.s?this:NaN)):e=new d(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(u=this.d,c=e.d,s=d.precision,l=d.rounding,!u[0]||!c[0])return c[0]||(e=new d(this)),p8?my(e,s,l):e;if(o=mr(this.e/7),r=mr(e.e/7),u=u.slice(),i=o-r){for(i<0?(n=u,i=-i,a=c.length):(n=c,r=o,a=u.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=u.length)-(i=c.length)<0&&(i=a,n=c,c=u,u=n),t=0;i;)t=(u[--i]=u[i]+c[i]+t)/1e7|0,u[i]%=1e7;for(t&&(u.unshift(t),++r),a=u.length;0==u[--a];)u.pop();return e.d=u,e.e=mb(u,r),p8?my(e,s,l):e},md.precision=md.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(p7+e);return this.d?(t=m_(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},md.round=function(){var e=this.constructor;return my(new e(this),this.e+1,e.rounding)},md.sine=md.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:mP(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=mP(e,2,t=t.times(1/mA(5,n)),t);for(var i,o=new e(5),a=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(r,mR(r,n)),r.precision=e,r.rounding=t,my(p2>2?n.neg():n,e,t,!0)):new r(NaN)},md.squareRoot=md.sqrt=function(){var e,t,n,r,i,o,a=this.d,s=this.e,l=this.s,u=this.constructor;if(1!==l||!a||!a[0])return new u(!l||l<0&&(!a||a[0])?NaN:a?this:1/0);for(p8=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=mf(a)).length+s)%2==0&&(t+="0"),l=Math.sqrt(t),s=mr((s+1)/2)-(s<0||s%2),r=new u(t=l==1/0?"5e"+s:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new u(l.toString()),n=(s=u.precision)+3;;)if(r=(o=r).plus(mg(this,o,n+2,1)).times(.5),mf(o.d).slice(0,n)===(t=mf(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(my(r,s+1,1),e=!r.times(r).eq(this));break}if(!i&&(my(o,s+1,0),o.times(o).eq(this))){r=o;break}n+=4,i=1}return p8=!0,my(r,s,u.rounding,e)},md.tangent=md.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=mg(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,my(2==p2||4==p2?n.neg():n,e,t,!0)):new r(NaN)},md.times=md.mul=function(e){var t,n,r,i,o,a,s,l,u,c=this.constructor,d=this.d,f=(e=new c(e)).d;
60if(e.s*=this.s,!d||!d[0]||!f||!f[0])return new c(!e.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:!d||!f?e.s/0:0*e.s);for(n=mr(this.e/7)+mr(e.e/7),(l=d.length)<(u=f.length)&&(o=d,d=f,f=o,a=l,l=u,u=a),o=[],r=a=l+u;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+f[r]*d[i-r-1]+t,o[i--]=s%1e7|0,t=s/1e7|0;o[i]=(o[i]+t)%1e7|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=mb(o,n),p8?my(e,c.precision,c.rounding):e},md.toBinary=function(e,t){return mN(this,2,e,t)},md.toDecimalPlaces=md.toDP=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(mh(e,0,1e9),void 0===t?t=r.rounding:mh(t,0,8),my(n,e+n.e+1,t))},md.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=mv(r,!0):(mh(e,0,1e9),void 0===t?t=i.rounding:mh(t,0,8),n=mv(r=my(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},md.toFixed=function(e,t){var n,r,i=this.constructor;return void 0===e?n=mv(this):(mh(e,0,1e9),void 0===t?t=i.rounding:mh(t,0,8),n=mv(r=my(new i(this),e+this.e+1,t),!1,e+r.e+1)),this.isNeg()&&!this.isZero()?"-"+n:n},md.toFraction=function(e){var t,n,r,i,o,a,s,l,u,c,d,f,h=this.d,p=this.constructor;if(!h)return new p(this);if(u=n=new p(1),r=l=new p(0),a=(o=(t=new p(r)).e=m_(h)-this.e-1)%7,t.d[0]=mi(10,a<0?7+a:a),null==e)e=o>0?t:u;else{if(!(s=new p(e)).isInt()||s.lt(u))throw Error(p7+s);e=s.gt(t)?o>0?t:u:s}for(p8=!1,s=new p(mf(h)),c=p.precision,p.precision=o=7*h.length*2;d=mg(s,t,0,1,1),1!=(i=n.plus(d.times(r))).cmp(e);)n=r,r=i,i=u,u=l.plus(d.times(i)),l=i,i=t,t=s.minus(d.times(i)),s=i;return i=mg(e.minus(n),r,0,1,1),l=l.plus(i.times(u)),n=n.plus(i.times(r)),l.s=u.s=this.s,f=1>mg(u,r,o,1).minus(this).abs().cmp(mg(l,n,o,1).minus(this).abs())?[u,r]:[l,n],p.precision=c,p8=!0,f},md.toHexadecimal=md.toHex=function(e,t){return mN(this,16,e,t)},md.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:mh(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(p8=!1,n=mg(n,e,0,t,1).times(e),p8=!0,my(n)):(e.s=n.s,n=e),n},md.toNumber=function(){return+this},md.toOctal=function(e,t){return mN(this,8,e,t)},md.toPower=md.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,u=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(mi(+s,u));if((s=new l(s)).eq(1))return s;if(r=l.precision,o=l.rounding,e.eq(1))return my(s,r,o);if((t=mr(e.e/7))>=e.d.length-1&&(n=u<0?-u:u)<=0x1fffffffffffff)return i=mS(l,s,n,r),e.s<0?new l(1).div(i):my(i,r,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(n=mi(+s,u))&&isFinite(n)?new l(n+"").e:mr(u*(Math.log("0."+mf(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(p8=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),(i=mj(e.times(mT(s,r+n)),r)).d&&mp((i=my(i,r+5,1)).d,r,o)&&(t=r+10,+mf((i=my(mj(e.times(mT(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=my(i,r+1,0))),i.s=a,p8=!0,l.rounding=o,my(i,r,o))},md.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=mv(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(mh(e,1,1e9),void 0===t?t=i.rounding:mh(t,0,8),n=mv(r=my(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},md.toSignificantDigits=md.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(mh(e,1,1e9),void 0===t?t=n.rounding:mh(t,0,8)),my(new n(this),e,t)},md.toString=function(){var e=this.constructor,t=mv(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},md.truncated=md.trunc=function(){return my(new this.constructor(this),this.e+1,1)},md.valueOf=md.toJSON=function(){var e=this.constructor,t=mv(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var mg=function(){function e(e,t,n){var r,i=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+i,e[o]=r%n|0,i=r/n|0;return i&&e.unshift(i),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]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a,s,l){var u,c,d,f,h,p,m,g,y,v,b,w,x,_,k,S,E,O,j,T,C=r.constructor,I=r.s==i.s?1:-1,P=r.d,A=i.d;
60if(!P||!P[0]||!A||!A[0])return new C(!r.s||!i.s||(P?A&&P[0]==A[0]:!A)?NaN:P&&0==P[0]||!A?0*I:I/0);for(l?(h=1,c=r.e-i.e):(l=1e7,h=7,c=mr(r.e/h)-mr(i.e/h)),j=A.length,E=P.length,v=(y=new C(I)).d=[],d=0;A[d]==(P[d]||0);d++);if(A[d]>(P[d]||0)&&c--,null==o?(_=o=C.precision,a=C.rounding):_=s?o+(r.e-i.e)+1:o,_<0)v.push(1),p=!0;else{if(_=_/h+2|0,d=0,1==j){for(f=0,A=A[0],_++;(d<E||f)&&_--;d++)k=f*l+(P[d]||0),v[d]=k/A|0,f=k%A|0;p=f||d<E}else{for((f=l/(A[0]+1)|0)>1&&(A=e(A,f,l),P=e(P,f,l),j=A.length,E=P.length),S=j,w=(b=P.slice(0,j)).length;w<j;)b[w++]=0;(T=A.slice()).unshift(0),O=A[0],A[1]>=l/2&&++O;do f=0,(u=t(A,b,j,w))<0?(x=b[0],j!=w&&(x=x*l+(b[1]||0)),(f=x/O|0)>1?(f>=l&&(f=l-1),g=(m=e(A,f,l)).length,w=b.length,1==(u=t(m,b,g,w))&&(f--,n(m,j<g?T:A,g,l))):(0==f&&(u=f=1),m=A.slice()),(g=m.length)<w&&m.unshift(0),n(b,m,w,l),-1==u&&(w=b.length,(u=t(A,b,j,w))<1&&(f++,n(b,j<w?T:A,w,l))),w=b.length):0===u&&(f++,b=[0]),v[d++]=f,u&&b[0]?b[w++]=P[S]||0:(b=[P[S]],w=1);while((S++<E||void 0!==b[0])&&_--)p=void 0!==b[0]}v[0]||v.shift()}if(1==h)y.e=c,p1=p;else{for(d=1,f=v[0];f>=10;f/=10)d++;y.e=d+c*h-1,my(y,s?o+y.e+1:o,a,p)}return y}}();function my(e,t,n,r){var i,o,a,s,l,u,c,d,f,h=e.constructor;r:if(null!=t){if(!(d=e.d))return e;for(i=1,s=d[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,l=(c=d[f=0])/mi(10,i-a-1)%10|0;else if((f=Math.ceil((o+1)/7))>=(s=d.length))if(r){for(;s++<=f;)d.push(0);c=l=0,i=1,o%=7,a=o-7+1}else break r;else{for(i=1,c=s=d[f];s>=10;s/=10)i++;o%=7,l=(a=o-7+i)<0?0:c/mi(10,i-a-1)%10|0}if(r=r||t<0||void 0!==d[f+1]||(a<0?c:c%mi(10,i-a-1)),u=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(o>0?a>0?c/mi(10,i-a):0:d[f-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=mi(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==o?(d.length=f,s=1,f--):(d.length=f+1,s=mi(10,7-o),d[f]=a>0?(c/mi(10,i-a)%mi(10,a)|0)*s:0),u)for(;;)if(0==f){for(o=1,a=d[0];a>=10;a/=10)o++;for(a=d[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,1e7==d[0]&&(d[0]=1));break}else{if(d[f]+=s,1e7!=d[f])break;d[f--]=0,s=1}for(o=d.length;0===d[--o];)d.pop()}return p8&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function mv(e,t,n){if(!e.isFinite())return mC(e);var r,i=e.e,o=mf(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+mk(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+mk(-i-1)+o,n&&(r=n-a)>0&&(o+=mk(r))):i>=a?(o+=mk(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+mk(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=mk(r))),o}function mb(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}
vendor: 5,571 bytes, line 60
60function mw(e,t,n){if(t>mu)throw p8=!0,n&&(e.precision=n),Error(me);return my(new e(p4),t,1,!0)}function mx(e,t,n){if(t>mc)throw Error(me);return my(new e(p5),t,n,!0)}function m_(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function mk(e){for(var t="";e--;)t+="0";return t}function mS(e,t,n,r){var i,o=new e(1),a=Math.ceil(r/7+4);for(p8=!1;;){if(n%2&&mM((o=o.times(t)).d,a)&&(i=!0),0===(n=mr(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}mM((t=t.times(t)).d,a)}return p8=!0,o}function mE(e){return 1&e.d[e.d.length-1]}function mO(e,t,n){for(var r,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((r=o.cmp(i))===n||0===r&&o.s===n)&&(o=i)}return o}function mj(e,t){var n,r,i,o,a,s,l,u=0,c=0,d=0,f=e.constructor,h=f.rounding,p=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(p8=!1,l=p):l=t,s=new f(.03125);e.e>-2;)e=e.times(s),d+=5;for(l+=r=Math.log(mi(2,d))/Math.LN10*2+5|0,n=o=a=new f(1),f.precision=l;;){if(o=my(o.times(e),l,1),n=n.times(++c),mf((s=a.plus(mg(o,n,l,1))).d).slice(0,l)===mf(a.d).slice(0,l)){for(i=d;i--;)a=my(a.times(a),l,1);if(null!=t)return f.precision=p,a;if(!(u<3&&mp(a.d,l-r,h,u)))return my(a,f.precision=p,h,p8=!0);f.precision=l+=10,n=o=s=new f(1),c=0,u++}a=s}}function mT(e,t){var n,r,i,o,a,s,l,u,c,d,f,h=1,p=e,m=p.d,g=p.constructor,y=g.rounding,v=g.precision;if(p.s<0||!m||!m[0]||!p.e&&1==m[0]&&1==m.length)return new g(m&&!m[0]?-1/0:1!=p.s?NaN:m?0:p);if(null==t?(p8=!1,c=v):c=t,g.precision=c+=10,r=(n=mf(m)).charAt(0),!(15e14>Math.abs(o=p.e)))return u=mw(g,c+2,v).times(o+""),p=mT(new g(r+"."+n.slice(1)),c-10).plus(u),g.precision=v,null==t?my(p,v,y,p8=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=mf((p=p.times(e)).d)).charAt(0),h++;for(o=p.e,r>1?(p=new g("0."+n),o++):p=new g(r+"."+n.slice(1)),d=p,l=a=p=mg(p.minus(1),p.plus(1),c,1),f=my(p.times(p),c,1),i=3;;){if(a=my(a.times(f),c,1),mf((u=l.plus(mg(a,new g(i),c,1))).d).slice(0,c)===mf(l.d).slice(0,c)){if(l=l.times(2),0!==o&&(l=l.plus(mw(g,c+2,v).times(o+""))),l=mg(l,new g(h),c,1),null!=t)return g.precision=v,l;if(!mp(l.d,c-10,y,s))return my(l,g.precision=v,y,p8=!0);g.precision=c+=10,u=a=p=mg(d.minus(1),d.plus(1),c,1),f=my(p.times(p),c,1),i=s=1}l=u,i+=2}}function mC(e){return String(e.s*e.s/0)}function mI(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";e.d.push(+t),p8&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function mP(e,t,n,r,i){var o,a,s,l,u=e.precision,c=Math.ceil(u/7);for(p8=!1,l=n.times(n),s=new e(r);;){if(a=mg(s.times(l),new e(t++*t++),u,1),s=i?r.plus(a):r.minus(a),r=mg(a.times(l),new e(t++*t++),u,1),void 0!==(a=s.plus(r)).d[c]){for(o=c;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return p8=!0,a.d.length=c+1,a}function mA(e,t){for(var n=e;--t;)n*=e;return n}function mR(e,t){var n,r=t.s<0,i=mx(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return p2=r?4:1,t;if((n=t.divToInt(i)).isZero())p2=r?3:2;else{if((t=t.minus(n.times(i))).lte(o))return p2=mE(n)?r?2:3:r?4:1,t;p2=mE(n)?r?1:4:r?3:2}return t.minus(i).abs()}function mN(e,t,n,r){var i,o,a,s,l,u,c,d,f,h=e.constructor,p=void 0!==n;if(p?(mh(n,1,1e9),void 0===r?r=h.rounding:mh(r,0,8)):(n=h.precision,r=h.rounding),e.isFinite()){for(a=(c=mv(e)).indexOf("."),p?(i=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):i=t,a>=0&&(c=c.replace(".",""),(f=new h(1)).e=c.length-a,f.d=mm(mv(f),10,i),f.e=f.d.length),o=l=(d=mm(c,10,i)).length;0==d[--l];)d.pop();if(d[0]){if(a<0?o--:((e=new h(e)).d=d,e.e=o,d=(e=mg(e,f,n,r,0,i)).d,o=e.e,u=p1),a=d[n],s=i/2,u=u||void 0!==d[n+1],u=r<4?(void 0!==a||u)&&(0===r||r===(e.s<0?3:2)):a>s||a===s&&(4===r||u||6===r&&1&d[n-1]||r===(e.s<0?8:7)),d.length=n,u)for(;++d[--n]>i-1;)d[n]=0,n||(++o,d.unshift(1));for(l=d.length;!d[l-1];--l);for(a=0,c="";a<l;a++)c+=p3.charAt(d[a]);if(p){if(l>1)if(16==t||8==t){for(a=16==t?4:3,--l;l%a;l++)c+="0";for(l=(d=mm(c,i,t)).length;!d[l-1];--l);for(a=1,c="1.";a<l;a++)c+=p3.charAt(d[a])}else c=c.charAt(0)+"."+c.slice(1);c=c+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)c="0"+c;c="0."+c}else if(++o>l)for(o-=l;o--;)c+="0";else o<l&&(c=c.slice(0,o)+"."+c.slice(o))}else c=p?"0p+0":"0";c=(16==t?"0x":2==t?"0b":8==t?"0o":"")+c}else c=mC(e);return e.s<0?"-"+c:c}function mM(e,t){if(e.length>t)return e.length=t,!0}function mD(e){return new this(e).abs()}function mL(e){return new this(e).acos()}function mz(e){return new this(e).acosh()}function mF(e,t){return new this(e).plus(t)}function mB(e){return new this(e).asin()}function mU(e){return new this(e).asinh()}function m$(e){return new this(e).atan()}function mH(e){return new this(e).atanh()}function mW(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,o=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?mx(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=mx(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(mg(e,t,o,1)),t=mx(this,o,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(mg(e,t,o,1)):(n=mx(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function mV(e){return new this(e).cbrt()}function mq(e){return my(e=new this(e),e.e+1,2)}
60function mK(e,t,n){return new this(e).clamp(t,n)}function mZ(e){if(!e||"object"!=typeof e)throw Error(p9+"Object expected");var t,n,r,i=!0===e.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(n=o[t],i&&(this[n]=p6[n]),void 0!==(r=e[n]))if(mr(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(p7+n+": "+r);if(n="crypto",i&&(this[n]=p6[n]),void 0!==(r=e[n]))if(!0===r||!1===r||0===r||1===r)if(r)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(mt);else this[n]=!1;else throw Error(p7+n+": "+r);return this}function mG(e){return new this(e).cos()}function mY(e){return new this(e).cosh()}function mX(e,t){return new this(e).div(t)}function mJ(e){return new this(e).exp()}function mQ(e){return my(e=new this(e),e.e+1,3)}function m0(){var e,t,n=new this(0);for(e=0,p8=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return p8=!0,new this(1/0);n=t}return p8=!0,n.sqrt()}function m1(e){return e instanceof gf||e&&e.toStringTag===mn||!1}function m2(e){return new this(e).ln()}function m3(e,t){return new this(e).log(t)}function m4(e){return new this(e).log(2)}function m5(e){return new this(e).log(10)}function m6(){return mO(this,arguments,-1)}function m8(){return mO(this,arguments,1)}function m9(e,t){return new this(e).mod(t)}function m7(e,t){return new this(e).mul(t)}function ge(e,t){return new this(e).pow(t)}function gt(e){var t,n,r,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:mh(e,1,1e9),r=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);o<r;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=r/4}else throw Error(mt);else for(;o<r;)s[o++]=1e7*Math.random()|0;for(r=s[--o],e%=7,r&&e&&(i=mi(10,7-e),s[o]=(r/i|0)*i);0===s[o];o--)s.pop();if(o<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=7)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function gn(e){return my(e=new this(e),e.e+1,this.rounding)}function gr(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function gi(e){return new this(e).sin()}function go(e){return new this(e).sinh()}function ga(e){return new this(e).sqrt()}function gs(e,t){return new this(e).sub(t)}function gl(){var e=0,t=arguments,n=new this(t[0]);for(p8=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return p8=!0,my(n,this.precision,this.rounding)}function gu(e){return new this(e).tan()}function gc(e){return new this(e).tanh()}function gd(e){return my(e=new this(e),e.e+1,1)}md[Symbol.for("nodejs.util.inspect.custom")]=md.toString,md[Symbol.toStringTag]="Decimal";var gf=md.constructor=function e(t){var n,r,i;function o(e){var t,n,r;if(!(this instanceof o))return new o(e);if(this.constructor=o,m1(e)){this.s=e.s,p8?!e.d||e.e>o.maxE?(this.e=NaN,this.d=null):e.e<o.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(r=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;p8?t>o.maxE?(this.e=NaN,this.d=null):t<o.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return mI(this,e.toString())}if("string"===r)return 45===(n=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===n&&(e=e.slice(1)),this.s=1),ml.test(e)?mI(this,e):function(e,t){var n,r,i,o,a,s,l,u,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),ml.test(t))return mI(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(ma.test(t))n=16,t=t.toLowerCase();else if(mo.test(t))n=2;else if(ms.test(t))n=8;else throw Error(p7+t);for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,r=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=mS(r,new r(n),o,2*o)),o=c=(u=mm(t,n,1e7)).length-1;0===u[o];--o)u.pop();return o<0?new r(0*e.s):(e.e=mb(u,c),e.d=u,p8=!1,a&&(e=mg(e,i,4*s)),l&&(e=e.times(54>Math.abs(l)?mi(2,l):gf.pow(2,l))),p8=!0,e)}(this,e);if("bigint"===r)return e<0?(e=-e,this.s=-1):this.s=1,mI(this,e.toString());throw Error(p7+e)}if(o.prototype=md,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=mZ,o.clone=e,o.isDecimal=m1,o.abs=mD,o.acos=mL,o.acosh=mz,o.add=mF,o.asin=mB,o.asinh=mU,o.atan=m$,o.atanh=mH,o.atan2=mW,o.cbrt=mV,o.ceil=mq,o.clamp=mK,o.cos=mG,o.cosh=mY,o.div=mX,o.exp=mJ,o.floor=mQ,o.hypot=m0,o.ln=m2,o.log=m3,o.log10=m5,o.log2=m4,o.max=m6,o.min=m8,o.mod=m9,o.mul=m7,o.pow=ge,o.random=gt,o.round=gn,o.sign=gr,o.sin=gi,o.sinh=go,o.sqrt=ga,o.sub=gs,o.sum=gl,o.tan=gu,o.tanh=gc,o.trunc=gd,void 0===t&&(t={}),t&&!0!==t.defaults)for(n=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(p6);function gh(e,t){return new gf(e).clampedTo(1===t?3.048:3,1===t?121.92:120).toNearest(pD(t)).toDecimalPlaces(3).toNumber()}p4=new gf(p4),p5=new gf(p5);let gp={};function gm(e,t={}){p=e,gp=t}function gg(){switch(b=!0,p){case 13:pm(13,!0);break;case 14:pm(14,!0);break;case 19:pm(24,!0);break;case 6:pm(1,!0);break;case 7:pm(2,!0);break;case 9:pm(5,!0);break;case 8:pm(4,!0);break;case 2:case 3:case 1:case 10:case 11:case 4:case 20:case 5:b=!1}}var gy={},gv="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==er?er:"u">typeof self?self:{};
60function gb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gw,gx,g_,gk,gS,gE={exports:{}},gO=gb((gw||(gw=1,gx=gE.exports,g_=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=r<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},gE.exports?gE.exports=g_():gx.urljoin=g_()),gE.exports));function gj(){return gS?gk:(gS=1,gk=TypeError)}var gT,gC,gI,gP,gA,gR,gN,gM,gD,gL,gz,gF,gB,gU,g$,gH,gW,gV,gq,gK,gZ,gG,gY,gX,gJ,gQ,g0,g1,g2,g3,g4,g5,g6,g8,g9,g7,ye,yt,yn,yr,yi,yo,ya,ys,yl,yu,yc,yd,yf,yh,yp,ym,yg,yy,yv,yb,yw,yx,y_,yk,yS,yE,yO,yj,yT,yC,yI,yP,yA,yR,yN,yM,yD,yL,yz,yF,yB,yU,y$,yH,yW,yV,yq,yK,yZ,yG,yY,yX,yJ=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}(Object.freeze({__proto__:null,default:{}}));function yQ(){if(gC)return gT;gC=1;var e="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&"function"==typeof t.get?t.get:null,r=e&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=i&&o&&"function"==typeof o.get?o.get:null,s=i&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,u="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,c="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,f=Object.prototype.toString,h=Function.prototype.toString,p=String.prototype.match,m=String.prototype.slice,g=String.prototype.replace,y=String.prototype.toUpperCase,v=String.prototype.toLowerCase,b=RegExp.prototype.test,w=Array.prototype.concat,x=Array.prototype.join,_=Array.prototype.slice,k=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||1)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),o=m.call(t,i.length+1);return g.call(i,n,"$&_")+"."+g.call(g.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(t,n,"$&_")}var A=yJ.custom,R=U(A)?A:null,N={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function D(e,t,n){var r=N[n.quoteStyle||t];return r+e+r}function z(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function F(e){return"[object Array]"===W(e)&&z(e)}function B(e){return"[object RegExp]"===W(e)&&z(e)}function U(e){if(j)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
60if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}gT=function e(t,i,o,f){var y=i||{};if(H(y,"quoteStyle")&&!H(N,y.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(H(y,"maxStringLength")&&("number"==typeof y.maxStringLength?y.maxStringLength<0&&y.maxStringLength!==1/0:null!==y.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var b=!H(y,"customInspect")||y.customInspect;if("boolean"!=typeof b&&"symbol"!==b)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(y,"indent")&&null!==y.indent&&"	"!==y.indent&&!(parseInt(y.indent,10)===y.indent&&y.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(y,"numericSeparator")&&"boolean"!=typeof y.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var k=y.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength;return e(m.call(t,0,n.maxStringLength),n)+("... "+r)+" more character"+(r>1?"s":"")}var i=M[n.quoteStyle||"single"];return i.lastIndex=0,D(g.call(g.call(t,i,"\\$1"),/[\x00-\x1f]/g,q),"single",n)}(t,y);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return k?P(t,E):E}if("bigint"==typeof t){var A=String(t)+"n";return k?P(t,A):A}var $=void 0===y.depth?5:y.depth;if(void 0===o&&(o=0),o>=$&&$>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var J=function(e,t){var n;if("	"===e.indent)n="	";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=x.call(Array(e.indent+1)," ")}return{base:n,prev:x.call(Array(t+1),n)}}(y,o);if(void 0===f)f=[];else if(V(f,t)>=0)return"[Circular]";function Q(t,n,r){if(n&&(f=_.call(f)).push(n),r){var i={depth:y.depth};return H(y,"quoteStyle")&&(i.quoteStyle=y.quoteStyle),e(t,i,o+1,f)}return e(t,y,o+1,f)}if("function"==typeof t&&!B(t)){var ee=function(e){if(e.name)return e.name;var t=p.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),et=X(t,Q);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(et.length>0?" { "+x.call(et,", ")+" }":"")}if(U(t)){var en=j?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||j?en:K(en)}if(t&&"object"==typeof t&&("u">typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var er,ei="<"+v.call(String(t.nodeName)),eo=t.attributes||[],ea=0;ea<eo.length;ea++)ei+=" "+eo[ea].name+"="+D((er=eo[ea].value,g.call(String(er),/"/g,"&quot;")),"double",y);return ei+=">",t.childNodes&&t.childNodes.length&&(ei+="..."),ei+="</"+v.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var es=X(t,Q);return J&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(es)?"["+Y(es,J)+"]":"[ "+x.call(es,", ")+" ]"}if("[object Error]"===W(t)&&z(t)){var el=X(t,Q);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===el.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(el,", ")+" }":"{ ["+String(t)+"] "+x.call(w.call("[cause]: "+Q(t.cause),el),", ")+" }"}if("object"==typeof t&&b){if(R&&"function"==typeof t[R]&&yJ)return yJ(t,{depth:$-o});if("symbol"!==b&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!n||!e||"object"!=typeof e)return!1;try{n.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eu=[];return r&&r.call(t,function(e,n){eu.push(Q(n,t,!0)+" => "+Q(e,t))}),G("Map",n.call(t),eu,J)}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{n.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ec=[];return s&&s.call(t,function(e){ec.push(Q(e,t))}),G("Set",a.call(t),ec,J)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{return c.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if("[object Number]"===W(t)&&z(t))return K(Q(Number(t)));if(function(e){if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}(t))return K(Q(S.call(t)));if("[object Boolean]"===W(t)&&z(t))return K(d.call(t));if("[object String]"===W(t)&&z(t))return K(Q(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if("u">typeof globalThis&&t===globalThis||void 0!==gv&&t===gv)return"{ [object globalThis] }";if(!("[object Date]"===W(t)&&z(t))&&!B(t)){var ed=X(t,Q),ef=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,eh=t instanceof Object?"":"null prototype",ep=!ef&&T&&Object(t)===t&&T in t?m.call(W(t),8,-1):eh?"Object":"",em=(ef||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ep||eh?"["+x.call(w.call([],ep||[],eh||[]),": ")+"] ":"");return 0===ed.length?em+"{}":J?em+"{"+Y(ed,J)+"}":em+"{ "+x.call(ed,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return $.call(e,t)}function W(e){return f.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}function q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+y.call(t.toString(16))}function K(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function G(e,t,n,r){return e+" ("+t+") {"+(r?Y(n,r):x.call(n,", "))+"}"}function Y(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+x.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=F(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=H(e,i)?t(e[i],e):""}var o,a="function"==typeof E?E(e):[];if(j){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)H(e,l)&&(n&&String(Number(l))===l&&l<e.length||j&&o["$"+l]instanceof Symbol||(b.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof E)for(var u=0;u<a.length;u++)C.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}return gT}function y0(){return gR?gA:(gR=1,gA=Object)}function y1(){if(yt)return ye;yt=1;var e=g7?g9:(g7=1,g9=Object.getOwnPropertyDescriptor);if(e)try{e([],"length")}catch(t){e=null}return ye=e}function y2(){if(yr)return yn;yr=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return yn=e}function y3(){return yu?yl:(yu=1,yl="u">typeof Reflect&&Reflect.getPrototypeOf||null)}function y4(){return yd?yc:(yd=1,yc=y0().getPrototypeOf||null)}function y5(){if(ym)return yp;ym=1;var e=function(){if(yh)return yf;yh=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};return yf=function(r){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=t(0,i.length-a.length),l=[],u=0;u<s;u++)l[u]="$"+u;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,n(a,arguments));return Object(e)===e?e:this}return i.apply(r,n(a,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}}();return yp=Function.prototype.bind||e}function y6(){return yy?yg:(yy=1,yg=Function.prototype.call)}function y8(){return yb?yv:(yb=1,yv=Function.prototype.apply)}function y9(){if(yE)return yS;yE=1;var e=y5(),t=gj(),n=y6(),r=function(){if(yk)return y_;yk=1;var e=y5(),t=y8(),n=y6();return y_=(yx?yw:(yx=1,yw="u">typeof Reflect&&Reflect&&Reflect.apply))||e.call(n,t)}();return yS=function(i){if(i.length<1||"function"!=typeof i[0])throw new t("a function is required");return r(e,n,i)}}function y7(){if(yR)return yA;yR=1;var e,t=y0(),n=gM?gN:(gM=1,gN=Error),r=gL?gD:(gL=1,gD=EvalError),i=gF?gz:(gF=1,gz=
60RangeError),o=gU?gB:(gU=1,gB=ReferenceError),a=gH?g$:(gH=1,g$=SyntaxError),s=gj(),l=gV?gW:(gV=1,gW=URIError),u=gK?gq:(gK=1,gq=Math.abs),c=gG?gZ:(gG=1,gZ=Math.floor),d=gX?gY:(gX=1,gY=Math.max),f=gQ?gJ:(gQ=1,gJ=Math.min),h=g1?g0:(g1=1,g0=Math.pow),p=g3?g2:(g3=1,g2=Math.round),m=function(){if(g8)return g6;g8=1;var e=(g5||(g5=1,g4=Number.isNaN||function(e){return e!=e}),g4);return g6=function(t){return e(t)||0===t?t:t<0?-1:1}}(),g=Function,y=function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(e){}},v=y1(),b=y2(),w=function(){throw new s},x=v?function(){try{return w}catch(e){try{return v(arguments,"callee").get}catch(e){return w}}}():w,_=(function(){if(ys)return ya;ys=1;var e="u">typeof Symbol&&Symbol,t=yo?yi:(yo=1,yi=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0});return ya=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}})()(),k=function(){if(yC)return yT;yC=1;var e=y3(),t=y4(),n=function(){if(yj)return yO;yj=1;var e,t=y9(),n=y1();try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!e&&n&&n(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return yO=r&&"function"==typeof r.get?t([r.get]):"function"==typeof o&&function(e){return o(null==e?e:i(e))}}();return yT=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),S=y4(),E=y3(),O=y8(),j=y6(),T={},C="u">typeof Uint8Array&&k?k(Uint8Array):e,I={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":_&&k?k([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"u"<typeof Atomics?e:Atomics,"%BigInt%":"u"<typeof BigInt?e:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":"u"<typeof Float16Array?e:Float16Array,"%Float32Array%":"u"<typeof Float32Array?e:Float32Array,"%Float64Array%":"u"<typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":T,"%Int8Array%":"u"<typeof Int8Array?e:Int8Array,"%Int16Array%":"u"<typeof Int16Array?e:Int16Array,"%Int32Array%":"u"<typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
60IteratorPrototype%":_&&k?k(k([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"u"<typeof Map?e:Map,"%MapIteratorPrototype%":"u">typeof Map&&_&&k?k((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?e:Promise,"%Proxy%":"u"<typeof Proxy?e:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":"u"<typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?e:Set,"%SetIteratorPrototype%":"u">typeof Set&&_&&k?k((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&k?k(""[Symbol.iterator]()):e,"%Symbol%":_?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":x,"%TypedArray%":C,"%TypeError%":s,"%Uint8Array%":"u"<typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?e:Uint32Array,"%URIError%":l,"%WeakMap%":"u"<typeof WeakMap?e:WeakMap,"%WeakRef%":"u"<typeof WeakRef?e:WeakRef,"%WeakSet%":"u"<typeof WeakSet?e:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":O,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":S,"%Math.abs%":u,"%Math.floor%":c,"%Math.max%":d,"%Math.min%":f,"%Math.pow%":h,"%Math.round%":p,"%Math.sign%":m,"%Reflect.getPrototypeOf%":E};if(k)try{null.error}catch(e){var P=k(k(e));I["%Error.prototype%"]=P}var A=function e(t){var n;if("%AsyncFunction%"===t)n=y("async function () {}");else if("%GeneratorFunction%"===t)n=y("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=y("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&k&&(n=k(i.prototype))}return I[t]=n,n},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=y5(),M=function(){if(yP)return yI;yP=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty;return yI=y5().call(e,t)}(),D=N.call(j,Array.prototype.concat),z=N.call(O,Array.prototype.splice),F=N.call(j,Str
vendor: 6,059 bytes, line 60
60ing.prototype.replace),B=N.call(j,String.prototype.slice),U=N.call(j,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,W=function(e,t){var n,r=e;if(M(R,r)&&(r="%"+(n=R[r])[0]+"%"),M(I,r)){var i=I[r];if(i===T&&(i=A(r)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new a("intrinsic "+e+" does not exist!")};return yA=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===U(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return F(e,$,function(e,t,n,i){r[r.length]=n?F(i,H,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=W("%"+r+"%",t),o=i.name,l=i.value,u=!1,c=i.alias;c&&(r=c[0],z(n,D([0,1],c)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],p=B(h,0,1),m=B(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new a("property names with quotes must have matching quotes");if("constructor"!==h&&f||(u=!0),M(I,o="%"+(r+="."+h)+"%"))l=I[o];else if(null!=l){if(!(h in l)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(v&&d+1>=n.length){var g=v(l,h);l=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else f=M(l,h),l=l[h];f&&!u&&(I[o]=l)}}return l}}function ve(){if(yM)return yN;yM=1;var e=y7(),t=y9(),n=t([e("%String.prototype.indexOf%")]);return yN=function(r,i){var o=e(r,!!i);return"function"==typeof o&&n(r,".prototype.")>-1?t([o]):o}}function vt(){if(yL)return yD;yL=1;var e=y7(),t=ve(),n=yQ(),r=gj(),i=e("%Map%",!0),o=t("Map.prototype.get",!0),a=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),u=t("Map.prototype.size",!0);return yD=!!i&&function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+n(e))},delete:function(t){if(e){var n=l(e,t);return 0===u(e)&&(e=void 0),n}return!1},get:function(t){if(e)return o(e,t)},has:function(t){return!!e&&s(e,t)},set:function(t,n){e||(e=new i),a(e,t,n)}};return t}}function vn(){if(yU)return yB;yU=1;var e=gj(),t=yQ(),n=function(){if(gP)return gI;gP=1;var e=yQ(),t=gj(),n=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};return gI=function(){var r,i={assert:function(n){if(!i.has(n))throw new t("Side channel does not contain "+e(n))},delete:function(e){var t=function(e,t){if(e)return n(e,t,!0)}(r,e);return t&&r&&!r.next&&(r=void 0),!!t},get:function(e){var t=r;if(t){var i=n(t,e);return i&&i.value}},has:function(e){var t;return!!(t=r)&&!!n(t,e)},set:function(e,t){var i,o;r||(r={next:void 0}),(o=n(i=r,e))?o.value=t:i.next={key:e,next:i.next,value:t}}};return i}}(),r=vt(),i=function(){if(yF)return yz;yF=1;var e=y7(),t=ve(),n=yQ(),r=vt(),i=gj(),o=e("%WeakMap%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),u=t("WeakMap.prototype.delete",!0);return yz=o?function(){var e,t,c={assert:function(e){if(!c.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(n){if(o&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(r&&t)return t.delete(n);return!1},get:function(n){return o&&n&&("object"==typeof n||"function"==typeof n)&&e?a(e,n):t&&t.get(n)},has:function(n){return o&&n&&("object"==typeof n||"function"==typeof n)&&e?l(e,n):!!t&&t.has(n)},set:function(n,i){o&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new o),s(e,n,i)):r&&(t||(t=r()),t.set(n,i))}};return c}:r}()||r||n;return yB=function(){var n,r={assert:function(n){if(!r.has(n))throw new e("Side channel does not contain "+(n&&Object(n)===n?"the given object key":t(n)))},delete:function(e){return!!n&&n.delete(e)},get:function(e){return n&&n.get(e)},has:function(e){return!!n&&n.has(e)},set:function(e,t){n||(n=i()),n.set(e,t)}};return r}}function vr(){if(yH)return y$;yH=1;var e=String.prototype.replace,t=/%20/g,n="RFC3986";return y$={default:n,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}}function vi(){if(yV)return yW;yV=1;var e=vr(),t=vn(),n=y2(),r=Object.prototype.hasOwnProperty,i=Array.isArray,o=t(),a=function(e,t){return o.set(e,t),e},s=function(e){return o.has(e)},l=function(e){return o.get(e)},u=function(e,t){o.set(e,t)},c=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),d=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},f=function(e,t,r){"__proto__"===t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};return yW={arrayToObject:d,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return f(e,n,t[n]),e},e)},combine:function(e,t,n,r,i){if(s(e)){if(i)throw RangeError("Array limit exceeded. Only "+n+" element"+(1===n?"":"s")+" allowed in an array.");var o=l(e)+1;return e[o]=t,u(e,o),e}var c=[].concat(e,t);if(c.length>n){if(i)throw RangeError("Array limit exceeded. Only "+n+" element"+(1===n?"":"s")+" allowed in an array.");return a(d(c,{plainObjects:r}),c.length-1)}return c},compact:function(e){for(var n=[{obj:{o:e},prop:"o"}],r=t(),o=0;o<n.length;++o)for(var a=n[o],s=a.obj[a.prop],l=Object.keys(s),u=0;u<l.length;++u){var c=l[u],d=s[c];"object"!=typeof d||null===d||r.has(d)||(n[n.length]={obj:s,prop:c},r.set(d,!0))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&(r[r.length]=n[o]);t.obj[t.prop]=r}}}(n),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");
vendor: 4,800 bytes, line 60
60if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(t,n,r,i,o){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=1024){var u=a.length>=1024?a.slice(l,l+1024):a;if(l+1024<a.length){var d=u.charCodeAt(u.length-1);d>=55296&&d<=56319&&(u=u.slice(0,-1),l-=1)}for(var f=[],h=0;h<u.length;++h){var p=u.charCodeAt(h);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===e.RFC1738&&(40===p||41===p)?f[f.length]=u.charAt(h):p<128?f[f.length]=c[p]:p<2048?f[f.length]=c[192|p>>6]+c[128|63&p]:p<55296||p>=57344?f[f.length]=c[224|p>>12]+c[128|p>>6&63]+c[128|63&p]:(h+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(h)),f[f.length]=c[240|p>>18]+c[128|p>>12&63]+c[128|p>>6&63]+c[128|63&p])}s+=f.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:s,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:a,maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(i(t)){var c=t.length;if(o&&"number"==typeof o.arrayLimit&&c>=o.arrayLimit){if(o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return a(d(t.concat(n),o),c)}t[c]=n}else{if(!t||"object"!=typeof t)return[t,n];if(s(t)){var h=l(t)+1;t[h]=n,u(t,h)}else{if(o&&o.strictMerge)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}}return t}if(!t||"object"!=typeof t){if(s(n)){for(var p=Object.keys(n),m=o&&o.plainObjects?{__proto__:null,0:t}:{0:t},g=0;g<p.length;g++)m[parseInt(p[g],10)+1]=n[p[g]];return a(m,l(n)+1)}var y=[t].concat(n);if(o&&"number"==typeof o.arrayLimit&&y.length>o.arrayLimit){if(o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return a(d(y,o),y.length-1)}return y}var v=t;if(i(t)&&!i(n)&&(v=d(t,o)),i(t)&&i(n)){if(n.forEach(function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t[t.length]=n}else t[i]=n}),o&&"number"==typeof o.arrayLimit&&t.length>o.arrayLimit){if(o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return a(d(t,o),t.length-1)}return t}return Object.keys(n).reduce(function(t,i){var c=n[i];if(r.call(t,i)?f(t,i,e(t[i],c,o)):f(t,i,c),s(n)&&!s(t)&&a(t,l(n)),s(t)){var d=parseInt(i,10);String(d)===i&&d>=0&&d>l(t)&&u(t,d)}return t},v)}}}function vo(){if(yX)return yY;yX=1;var e=function(){if(yK)return yq;yK=1;var e=vn(),t=vi(),n=vr(),r=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Array.isArray,a=Array.prototype.push,s=function(e,t){a.apply(e,o(t)?t:[t])},l=Date.prototype.toISOString,u=n.default,c={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:n.formatters[u],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d={},f=function n(r,i,a,l,u,f,h,p,m,g,y,v,b,w,x,_,k,S){for(var E=r,O=S,j=0,T=!1;void 0!==(O=O.get(d))&&!T;){var C=O.get(r);if(j+=1,void 0!==C){if(C===j)throw RangeError("Cyclic object value");T=!0}void 0===O.get(d)&&(j=0)}if("function"==typeof g?E=g(i,E):E instanceof Date?E=b(E):"comma"===a&&o(E)&&(E=t.maybeMap(E,function(e){return e instanceof Date?b(e):e})),null===E){if(f)return x(m&&!_?m(i,c.encoder,k,"key",w):i);E=""}if("string"==typeof(I=E)||"number"==typeof I||"boolean"==typeof I||"symbol"==typeof I||"bigint"==typeof I||t.isBuffer(E))return m?[x(_?i:m(i,c.encoder,k,"key",w))+"="+x(m(E,c.encoder,k,"value",w))]:[x(i)+"="+x(String(E))];var I,P,A=[];if(void 0===E)return A;if("comma"===a&&o(E))_&&m&&(E=t.maybeMap(E,function(e){return null==e?e:m(e)})),P=[{value:E.length>0?E.join(",")||null:void 0}];else if(o(g))P=g;else{var R=Object.keys(E);P=y?R.sort(y):R}var N=p?String(i).replace(/\./g,"%2E"):String(i),M=l&&o(E)&&1===E.length?N+"[]":N;if(u&&o(E)&&0===E.length)return M+"[]";for(var D=0;D<P.length;++D){var z=P[D],F="object"==typeof z&&z&&void 0!==z.value?z.value:E[z];
vendor: 9,504 bytes, line 60
60if(!h||null!==F){var B=v&&p?String(z).replace(/\./g,"%2E"):String(z),U=o(E)?"function"==typeof a?a(M,B):M:M+(v?"."+B:"["+B+"]");S.set(r,j);var $=e();$.set(d,S),s(A,n(F,U,a,l,u,f,h,p,"comma"===a&&_&&o(E)?null:m,g,y,v,b,w,x,_,k,$))}}return A};return yq=function(t,a){var l,u=t,d=function(e){if(!e)return c;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||c.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=n.default;if(void 0!==e.format){if(!r.call(n.formatters,e.format))throw TypeError("Unknown format option provided.");a=e.format}var s,l=n.formatters[a],u=c.filter;if(("function"==typeof e.filter||o(e.filter))&&(u=e.filter),s=e.arrayFormat in i?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":c.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||c.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:c.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:c.allowEmptyArrays,arrayFormat:s,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:c.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?c.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:c.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:c.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:c.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:c.encodeValuesOnly,filter:u,format:a,formatter:l,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:c.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:c.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:c.strictNullHandling}}(a);"function"==typeof d.filter?u=(0,d.filter)("",u):o(d.filter)&&(l=d.filter);var h=[];if("object"!=typeof u||null===u)return"";var p=i[d.arrayFormat],m="comma"===p&&d.commaRoundTrip;l||(l=Object.keys(u)),d.sort&&l.sort(d.sort);for(var g=e(),y=0;y<l.length;++y){var v=l[y];if(null!=v){var b=u[v];d.skipNulls&&null===b||s(h,f(b,v,p,m,d.allowEmptyArrays,d.strictNullHandling,d.skipNulls,d.encodeDotInKeys,d.encode?d.encoder:null,d.filter,d.sort,d.allowDots,d.serializeDate,d.format,d.formatter,d.encodeValuesOnly,d.charset,g))}}var w=h.join(d.delimiter),x=!0===d.addQueryPrefix?"?":"";return d.charsetSentinel&&("iso-8859-1"===d.charset?x+="utf8=%26%2310003%3B"+d.delimiter:x+="utf8=%E2%9C%93"+d.delimiter),w.length>0?x+w:""}}(),t=function(){if(yG)return yZ;yG=1;var e=vi(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(e,t,n,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(r&&t.throwOnLimitExceeded)for(var i=0,o=e.indexOf(",");o>-1;){if((i+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");o=e.indexOf(",",o+1)}return e.split(",")}if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},o=function(n,r,o,a){if(n){var s=function(e,n){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(n.depth<=0){if(!n.plainObjects&&t.call(Object.prototype,r)&&!n.allowPrototypes)return;return[r]}var i=[],o=r.indexOf("["),a=o>=0?r.slice(0,o):r;if(a){if(!n.plainObjects&&t.call(Object.prototype,a)&&!n.allowPrototypes)return;i[i.length]=a}for(var s=r.length,l=o,u=0;l>=0&&u<n.depth;){for(var c=1,d=l+1,f=-1;d<s&&f<0;){var h=r.charCodeAt(d);91===h?c+=1:93===h&&0==(c-=1)&&(f=d),d+=1}if(f<0)return i[i.length]="["+r.slice(l)+"]",i;var p=r.slice(l,f+1),m=p.slice(1,-1);if(!n.plainObjects&&t.call(Object.prototype,m)&&!n.allowPrototypes)return;i[i.length]=p,u+=1,l=r.indexOf("[",f+1)}if(l>=0){if(!0===n.strictDepth)throw RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");i[i.length]="["+r.slice(l)+"]"}return i}(n,o);if(s)return function(t,n,r,o){var a=0;if(t.length>0&&"[]"===t[t.length-1]){var s=t.slice(0,-1).join("");a=Array.isArray(n)&&n[s]?n[s].length:0}for(var l=o?n:i(n,r,a),u=t.length-1;u>=0;--u){var c,d=t[u];if("[]"===d&&r.parseArrays)c=e.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:e.combine([],l,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{c=r.plainObjects?{__proto__:null}:{};var f="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,h=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,p=parseInt(h,10),m=!isNaN(p)&&d!==h&&String(p)===h&&p>=0&&r.parseArrays;if(r.parseArrays||""!==h)if(m&&p<r.arrayLimit)(c=[])[p]=l;else{if(m&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");m?(c[p]=l,e.markOverflow(c,p)):"__proto__"!==h&&(c[h]=l)}else c={0:l}}l=c}return l}(s,r,o,a)}};return yZ=function(a,s){var l=function(t){if(!t)return r;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var n=void 0===t.charset?r.charset:t.charset,i=void 0===t.duplicates?r.duplicates:t.duplicates;if("combine"!==i&&"first"!==i&&"last"!==i)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||r.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:r.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:r.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:r.arrayLimit,charset:n,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:r.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:r.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:r.decoder,delimiter:"string"==typeof t.delimiter||e.isRegExp(t.delimiter)?t.delimiter:r.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:r.depth,duplicates:i,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:r.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:r.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:r.strictDepth,strictMerge:"boolean"==typeof t.strictMerge?!!t.strictMerge:r.strictMerge,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(s);if(""===a||null==a)return l.plainObjects?{__proto__:null}:{};for(var u="string"==typeof a?function(o,a){var s={__proto__:null},l=a.ignoreQueryPrefix?o.replace(/^\?/,""):o;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=a.parameterLimit===1/0?void 0:a.parameterLimit,c=l.split(a.delimiter,a.throwOnLimitExceeded&&void 0!==u?u+1:u);if(a.throwOnLimitExceeded&&void 0!==u&&c.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var d,f=-1,h=a.charset;if(a.charsetSentinel)for(d=0;d<c.length;++d)0===c[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===c[d]?h="utf-8":"utf8=%26%2310003%3B"===c[d]&&(h="iso-8859-1"),f=d,d=c.length);for(d=0;d<c.length;++d)if(d!==f){var p,m,g=c[d],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;if(-1===v?(p=a.decoder(g,r.decoder,h,"key"),m=a.strictNullHandling?null:""):null!==(p=a.decoder(g.slice(0,v),r.decoder,h,"key"))&&(m=e.maybeMap(i(g.slice(v+1),a,n(s[p])?s[p].length:0,-1===g.indexOf("[]=")),function(e){return a.decoder(e,r.decoder,h,"value")}
60)),m&&a.interpretNumericEntities&&"iso-8859-1"===h&&(m=String(m).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(m=n(m)?[m]:m),a.comma&&n(m)&&m.length>a.arrayLimit&&(m=e.combine([],m,a.arrayLimit,a.plainObjects,a.throwOnLimitExceeded)),null!==p){var b=t.call(s,p);b&&("combine"===a.duplicates||g.indexOf("[]=")>-1)?s[p]=e.combine(s[p],m,a.arrayLimit,a.plainObjects,a.throwOnLimitExceeded):b&&"last"!==a.duplicates||(s[p]=m)}}return s}(a,l):a,c=l.plainObjects?{__proto__:null}:{},d=Object.keys(u),f=0;f<d.length;++f){var h=d[f],p=o(h,u[h],l,"string"==typeof a);c=e.merge(c,p,l)}return!0===l.allowSparse?c:e.compact(c)}}();return yY={formats:vr(),parse:t,stringify:e}}var va=gb(vo());function vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vl(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=vf(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function vu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vu=function(){return!!e})()}function vc(e){return function(e){if(Array.isArray(e))return vs(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vf(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vd(e){return(vd="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})(e)}function vf(e,t){if(e){if("string"==typeof e)return vs(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vs(e,t):void 0}}var vh,vp,vm,vg,vy,vv,vb,vw,vx,v_,vk,vS={exports:{}},vE={exports:{}},vO={};function vj(){return vg||(vg=1,vO.type=function(e){return e.split(/ *; */).shift()},vO.params=function(e){var t,n={},r=vl(e.split(/ *; */));try{for(r.s();!(t=r.n()).done;){var i=t.value.split(/ *= */),o=i.shift(),a=i.shift();o&&a&&(n[o]=a)}}catch(e){r.e(e)}finally{r.f()}return n},vO.parseLinks=function(e){var t,n={},r=vl(e.split(/ *, */));try{for(r.s();!(t=r.n()).done;){var i=t.value.split(/ *; */),o=i[0].slice(1,-1);n[i[1].split(/ *= */)[1].slice(1,-1)]=o}}catch(e){r.e(e)}finally{r.f()}return n},vO.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e},vO.normalizeHostname=function(e){var t;return(function(e){if(Array.isArray(e))return e}(t=e.match(/^\[([^\]]+)\]$/)||[])||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,o,a=[],s=!0,l=!1;try{i=(t=t.call(e)).next,!1;for(;!(s=(n=i.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw r}}return a}}(t)||vf(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1]||e},vO.isObject=function(e){return null!==e&&"object"===vd(e)},vO.hasOwn=Object.hasOwn||function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},vO.mixin=function(e,t){for(var n in t)vO.hasOwn(t,n)&&(e[n]=t[n])},vO.isGzipOrDeflateEncoding=function(e){return new RegExp(/^\s*(?:deflate|gzip)\s*$/).test(e.headers["content-encoding"])},vO.isBrotliEncoding=function(e){return new RegExp(/^\s*(?:br)\s*$/).test(e.headers["content-encoding"])}),vO}var vT,vC,vI,vP=gb((vk||(vk=1,function(e,t){"u">typeof window?n=window:"u"<typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self;var n,r=(vh||(vh=1,function(){function e(t){if(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}}vE.exports=e,e.prototype.on=e.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},e.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},e.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},e.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},e.prototype.hasListeners=function(e){return!!this.listeners(e).length}}
60()),vE.exports),i=function(){if(vm)return vp;vm=1,vp=o,o.default=o,o.stable=l,o.stableStringify=l;var e="[...]",t="[Circular]",n=[],r=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(o,s,l,c){var d;void 0===c&&(c=i()),function n(r,i,o,s,l,u,c){var d;if(u+=1,"object"==typeof r&&null!==r){for(d=0;d<s.length;d++)if(s[d]===r)return void a(t,r,i,l);if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void a(e,r,i,l);if(s.push(r),Array.isArray(r))for(d=0;d<r.length;d++)n(r[d],d,d,s,r,u,c);else{var f=Object.keys(r);for(d=0;d<f.length;d++){var h=f[d];n(r[h],h,d,s,r,u,c)}}s.pop()}}(o,"",0,[],void 0,0,c);try{d=0===r.length?JSON.stringify(o,s,l):JSON.stringify(o,u(s),l)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var f=n.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return d}function a(e,t,i,o){var a=Object.getOwnPropertyDescriptor(o,i);void 0!==a.get?a.configurable?(Object.defineProperty(o,i,{value:e}),n.push([o,i,t,a])):r.push([t,i,e]):(o[i]=e,n.push([o,i,t]))}function s(e,t){return e<t?-1:+(e>t)}function l(o,l,c,d){void 0===d&&(d=i());var f,h=function r(i,o,l,u,c,d,f){var h;if(d+=1,"object"==typeof i&&null!==i){for(h=0;h<u.length;h++)if(u[h]===i)return void a(t,i,o,c);try{if("function"==typeof i.toJSON)return}catch(e){return}if(void 0!==f.depthLimit&&d>f.depthLimit||void 0!==f.edgesLimit&&l+1>f.edgesLimit)return void a(e,i,o,c);if(u.push(i),Array.isArray(i))for(h=0;h<i.length;h++)r(i[h],h,h,u,i,d,f);else{var p={},m=Object.keys(i).sort(s);for(h=0;h<m.length;h++){var g=m[h];r(i[g],g,h,u,i,d,f),p[g]=i[g]}if(void 0===c)return p;n.push([c,o,i]),c[o]=p}u.pop()}}(o,"",0,[],void 0,0,d)||o;try{f=0===r.length?JSON.stringify(h,l,c):JSON.stringify(h,u(l),c)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var p=n.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return f}function u(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(r.length>0)for(var i=0;i<r.length;i++){var o=r[i];if(o[1]===t&&o[0]===n){n=o[2],r.splice(i,1);break}}return e.call(this,t,n)}}return vp}(),o=vo(),a=function(){if(vv)return vy;vv=1;var e=vj(),t=e.isObject,n=e.hasOwn;function r(){}vy=r,r.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},r.prototype.parse=function(e){return this._parser=e,this},r.prototype.responseType=function(e){return this._responseType=e,this},r.prototype.serialize=function(e){return this._serializer=e,this},r.prototype.timeout=function(e){if(!e||"object"!==vd(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(n(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},r.prototype.retry=function(e,t){return 0!=arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var i=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),o=new Set([408,413,429,500,502,503,504,521,522,524]);return r.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}return!!(t&&t.status&&o.has(t.status)||e&&(e.code&&i.has(e.code)||e.timeout&&"ECONNABORTED"===e.code||e.crossDomain))||!1},r.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},r.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){r.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=Error("Aborted");
60e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),r.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},r.prototype.catch=function(e){return this.then(void 0,e)},r.prototype.use=function(e){return e(this),this},r.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},r.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},r.prototype.get=function(e){return this._header[e.toLowerCase()]},r.prototype.getHeader=r.prototype.get,r.prototype.set=function(e,r){if(t(e)){for(var i in e)n(e,i)&&this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=r,this.header[e]=r,this},r.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},r.prototype.field=function(e,r,i){if(null==e)throw Error(".field(name, val) name can not be empty");if(this._data)throw Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(t(e)){for(var o in e)n(e,o)&&this.field(o,e[o]);return this}if(Array.isArray(r)){for(var a in r)n(r,a)&&this.field(e,r[a]);return this}if(null==r)throw Error(".field(name, val) val can not be empty");return"boolean"==typeof r&&(r=String(r)),i?this._getFormData().append(e,r,i):this._getFormData().append(e,r),this},r.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},r.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},r.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},r.prototype.redirects=function(e){return this._maxRedirects=e,this},r.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(e){var r=t(e),i=this._header["content-type"];if(this._formData)throw Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(r&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(r&&t(this._data))for(var o in e){if("bigint"==typeof e[o]&&!e[o].toJSON)throw Error("Cannot serialize BigInt value to json");n(e,o)&&(this._data[o]=e[o])}else{if("bigint"==typeof e)throw Error("Cannot send value of type BigInt");"string"==typeof e?(i||this.type("form"),(i=this._header["content-type"])&&(i=i.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===i?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e}return!r||this._isHost(e)||i||this.type("json"),this},r.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},r.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},r.prototype._appendQueryString=function(){console.warn("Unsupported")},r.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},r.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))},vy}(),s=vj(),l=s.isObject,u=s.mixin,c=s.hasOwn,d=function(){if(vw)return vb;vw=1;var e=vj();function t(){}return vb=t,t.prototype.get=function(e){return this.header[e.toLowerCase()]},t.prototype._setHeaderProperties=function(t){var n=t["content-type"]||"";this.type=e.type(n);var r=e.params(n);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(this[i]=r[i]);this.links={};try{t.link&&(this.links=e.parseLinks(t.link))}catch(e){}},t.prototype._setStatusProperties=function(e){var t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e},vb}(),f=function(){if(v_)return vx;v_=1;for(var e,t,n=(e=function e(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._defaults=[]},t=[{key:"_setDefaults",value:function(e){var t,n=vl(this._defaults);try{for(n.s();!(t=n.n()).done;){var r=t.value;e[r.fn].apply(e,vc(r.args))}}catch(e){n.e(e)}finally{n.f()}}}],function(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,function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e),r=0,i=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];r<i.length;r++)!function(){var e=i[r];n.prototype[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}}();return vx=n}();function h(){}e.exports=function(e,n){return"function"==typeof n?new t.Request
60("GET",e).end(n):1==arguments.length?new t.Request("GET",e):new t.Request(e,n)};var p=t=e.exports;t.Request=w,p.getXHR=function(){if(n.XMLHttpRequest)return new n.XMLHttpRequest;throw Error("Browser-only version of superagent could not find XHR")};var m="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function g(e){if(!l(e))return e;var t=[];for(var n in e)c(e,n)&&function e(t,n,r){if(void 0!==r)if(null!==r)if(Array.isArray(r)){var i,o=vl(r);try{for(o.s();!(i=o.n()).done;)e(t,n,i.value)}catch(e){o.e(e)}finally{o.f()}}else if(l(r))for(var a in r)c(r,a)&&e(t,"".concat(n,"[").concat(a,"]"),r[a]);else t.push(encodeURI(n)+"="+encodeURIComponent(r));else t.push(encodeURI(n))}(t,n,e[n]);return t.join("&")}function y(e){for(var t,n,r={},i=e.split("&"),o=0,a=i.length;o<a;++o)-1===(n=(t=i[o]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function v(e){return/[/+]json($|[^-\w])/i.test(e)}function b(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,i,o=e.split(/\r?\n/),a={},s=0,l=o.length;s<l;++s)-1!==(t=(n=o[s]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),i=m(n.slice(t+1)),a[r]=i);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function w(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e,t=null,r=null;try{r=new b(n)}catch(e){return(t=Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=e.status||r.status,n.callback(e,r)):n.callback(null,r)})}p.serializeObject=g,p.parseString=y,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":function(e){return o.stringify(e,{indices:!1,strictNullHandling:!0})},"application/json":i},p.parse={"application/x-www-form-urlencoded":y,"application/json":JSON.parse},u(b.prototype,d.prototype),b.prototype._parseBody=function(e){var t=p.parse[this.type];
60return this.req._parser?this.req._parser(this,e):(!t&&v(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},b.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r=Error("cannot ".concat(t," ").concat(n," (").concat(this.status,")"));return r.status=this.status,r.method=t,r.url=n,r},p.Response=b,r(w.prototype),u(w.prototype,a.prototype),w.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},w.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},w.prototype.auth=function(e,t,n){1==arguments.length&&(t=""),"object"===vd(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var r=n.encoder?n.encoder:function(e){if("function"==typeof btoa)return btoa(e);throw Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,r)},w.prototype.query=function(e){return"string"!=typeof e&&(e=g(e)),e&&this._query.push(e),this},w.prototype.attach=function(e,t,n){if(t){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},w.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},w.prototype.crossDomainError=function(){var e=Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(e){return e&&"object"===vd(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},w.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.addEventListener("readystatechange",function(){var n,r=t.readyState;if(r>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===r){try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}});var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||p.serialize[i?i.split(";")[0]:""];!o&&v(i)&&(o=p.serialize["application/json"]),o&&(n=o(n))}for(var a in this.header)null!==this.header[a]&&c(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit
60("request",this),t.send(void 0===n?null:n)},p.agent=new Proxy(f,{apply:function(e,t,n){return function(e,t,n){if(vu())return Reflect.construct.apply(null,arguments);var r=[null];return r.push.apply(r,t),new(e.bind.apply(e,r))}(e,vc(n))}});for(var x=0,_=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];x<_.length;x++)!function(){var e=_[x];f.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}();function k(e,t,n){var r=p("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}f.prototype.del=f.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=k,p.delete=k,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}}(vS,vS.exports)),vS.exports)),vA={},vR=gb(function(){if(vT)return vA;vT=1,vA.byteLength=function(e){var t=o(e),n=t[0],r=t[1];return 3*(n+r)/4-r},vA.toByteArray=function(e){var r,i,a=o(e),s=a[0],l=a[1],u=new n(3*(s+l)/4-l),c=0,d=l>0?s-4:s;for(i=0;i<d;i+=4)r=t[e.charCodeAt(i)]<<18|t[e.charCodeAt(i+1)]<<12|t[e.charCodeAt(i+2)]<<6|t[e.charCodeAt(i+3)],u[c++]=r>>16&255,u[c++]=r>>8&255,u[c++]=255&r;return 2===l&&(r=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,u[c++]=255&r),1===l&&(r=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,u[c++]=r>>8&255,u[c++]=255&r),u},vA.fromByteArray=function(t){for(var n,r=t.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(t,n,r){for(var i,o=[],a=n;a<r;a+=3)o.push(e[(i=(t[a]<<16&0xff0000)+(t[a+1]<<8&65280)+(255&t[a+2]))>>18&63]+e[i>>12&63]+e[i>>6&63]+e[63&i]);return o.join("")}(t,a,a+16383>s?s:a+16383));return 1===i?o.push(e[(n=t[r-1])>>2]+e[n<<4&63]+"=="):2===i&&o.push(e[(n=(t[r-2]<<8)+t[r-1])>>10]+e[n>>4&63]+e[n<<2&63]+"="),o.join("")};for(var e=[],t=[],n="u">typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=r[i],t[r.charCodeAt(i)]=i;function o(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return -1===n&&(n=t),[n,n===t?0:4-n%4]}return t[45]=62,t[95]=63,vA}()),vN=gb(vI?vC:(vI=1,vC={raw:"10.2.1"})),vM=Object.prototype.toString;function vD(e,t,n,r){if(n="array"===n?"object":n,e&&vd(e[t])!==n)throw Error(r)}function vL(e,t,n){if(vd(e)!==t)throw Error(n)}function vz(e,t,n){if(-1===t.indexOf(e))throw Error(n)}var vF={check:function(e,t,n){if(t.optional&&!e||vL(e,t.type,t.message),"object"===t.type&&n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];n[o].optional&&!e[o]||n[o].condition&&!n[o].condition(e)||(vD(e,o,n[o].type,n[o].message),n[o].values&&vz(e[o],n[o].values,n[o].value_message))}},attribute:vD,variable:vL,value:vz,isArray:function(e){return this.supportsIsArray()?Array.isArray(e):"[object Array]"===vM.call(e)},supportsIsArray:function(){return null!=Array.isArray}};function vB(e){if(null==e)throw TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(t[s]=r[s])}}return t}function vU(e,t){return t.reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})}function v$(){var e=function(e){var t=[];for(var n in e)t.push(e[n]);return t}(arguments);return e.unshift({}),(Object.assign?Object.assign:vB).apply(void 0,e)}function vH(e,t){var n=v$(e);return e[t]&&(n[t]=e[t].trim()),n}var vW=function e(t,n){return"object"!==vd(t)||vF.isArray(t)||null===t?t:(n=n||[],Object.keys(t).reduce(function(r,i){return r[-1===n.indexOf(i)?function(e){for(var t,n="",r=0,i=!0,o=!0;r<e.length;)t=e.charCodeAt(r),(!o&&t>=65&&t<=90||!i&&t>=48&&t<=57)&&(n+="_"),n+=e[r].toLowerCase(),i=t>=48&&t<=57,o=t>=65&&t<=90,r++;return n}(i):i]=e(t[i]),r},{}))},vV=function(e,t){return Object.keys(e).reduce(function(n,r){return -1===t.indexOf(r)&&(n[r]=e[r]),n},{})},vq=function(e,t){return{base:t?vU(e,t):e,with:function(e,t){return e=t?vU(e,t):e,v$(this.base,e)}}},vK=function(e,t){var n=[];for(var r in e)-1===t.indexOf(r)&&n.push(r);return n},vZ=function(e){if(e){var t,n,r=(n=(t=e).match(/^(https?:|file:|chrome-extension:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/))&&{href:t,protocol:n[1],host:n[2],hostname:n[3],port:n[4],pathname:n[5],search:n[6],hash:n[7]};if(!r)return null;var i=r.protocol+"//"+r.hostname;return r.port&&(i+=":"+r.port),i}},vG=function e(t,n,r){"string"==typeof n&&(n=n.split("."));var i=n[0];t.hasOwnProperty(i)&&(1===n.length?t[i]=r:e(t[i],n.slice(1),r))};function vY(e){this.request=e,this.method=e.method,this.url=e.url,this.body=e._data,this.headers=e._header}function vX(e){this.request=e}function vJ(e){this._sendTelemetry=!1!==e._sendTelemetry||e._sendTelemetry,this._telemetryInfo=e._telemetryInfo||null,this._timesToRetryFailedRequests=e._timesToRetryFailedRequests,this.headers=e.headers||{},this._universalLoginPage=e.universalLoginPage}function vQ(){return window}
60vY.prototype.abort=function(){this.request.abort()},vY.prototype.getMethod=function(){return this.method},vY.prototype.getBody=function(){return this.body},vY.prototype.getUrl=function(){return this.url},vY.prototype.getHeaders=function(){return this.headers},vX.prototype.set=function(e,t){return this.request=this.request.set(e,t),this},vX.prototype.send=function(e){return this.request=this.request.send(["username","email","phoneNumber"].reduce(vH,e)),this},vX.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},vX.prototype.end=function(e){return this.request.end(e),new vY(this.request)},vJ.prototype.setCommonConfiguration=function(e,t){if(t=t||{},this._timesToRetryFailedRequests>0&&(e=e.retry(this._timesToRetryFailedRequests)),t.noHeaders)return e;var n=this.headers;e=e.set("Content-Type","application/json"),t.xRequestLanguage&&(e=e.set("X-Request-Language",t.xRequestLanguage));for(var r=Object.keys(this.headers),i=0;i<r.length;i++)e=e.set(r[i],n[r[i]]);return this._sendTelemetry&&(e=e.set("Auth0-Client",this.getTelemetryData())),e},vJ.prototype.getTelemetryData=function(){var e,t=this._universalLoginPage?"auth0.js-ulp":"auth0.js",n={name:t,version:vN.raw};return this._telemetryInfo&&((n=v$({},this._telemetryInfo)).env=v$({},this._telemetryInfo.env),n.env[t]=vN.raw),e=JSON.stringify(n),vR.fromByteArray(function(e){for(var t=Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e)).replace(/\+/g,"-").replace(/\//g,"_")},vJ.prototype.get=function(e,t){return new vX(this.setCommonConfiguration(vP.get(e),t))},vJ.prototype.post=function(e,t){return new vX(this.setCommonConfiguration(vP.post(e),t))},vJ.prototype.patch=function(e,t){return new vX(this.setCommonConfiguration(vP.patch(e),t))};var v0=function(e){vQ().location=e},v1=function(){var e=vQ().location,t=e.origin;return t||(t=vZ(e.href)),t};function v2(){}function v3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)"__proto__"!==r&&(e[r]=n[r])}return e}v2.prototype.getItem=function(){return null},v2.prototype.removeItem=function(){},v2.prototype.setItem=function(){};var v4=function e(t,n){function r(e,r,i){if("u">typeof document){"number"==typeof(i=v3({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(s in r||(r[s]=t.read(a,s)),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",v3({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,v3({},this.attributes,t))},withConverter:function(t){return e(v3({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function v5(e){return"_"+e+"_compat"}function v6(e){this._options=e||{}}function v8(e){this.disableWarnings=e.disableWarnings}function v9(e){if(this.warn=new v8({}),this.storage=new v6(e),!0===e.__tryLocalStorageFirst)try{var t=vQ().localStorage;t&&(this.storage=t)}catch(e){this.warn.warning(e),this.warn.warning("Can't use localStorage. Using CookieStorage instead.")}}function v7(e){this.handler=new v9(e)}function be(e){this.storage=new v7(e)}function bt(e,t){return{error:e,errorDescription:t}}v6.prototype.getItem=function(e){return v4.get(e)||v4.get(v5(e))},v6.prototype.removeItem=function(e){var t={};this._options.cookieDomain&&(t.domain=this._options.cookieDomain),v4.remove(e,t),v4.remove(v5(e),t)},v6.prototype.setItem=function(e,t,n){var r=v$({expires:1},n);if("https:"===vQ().location.protocol&&(r.secure=!0,r.sameSite="none",this._options.legacySameSiteCookie)){var i=vV(r,["sameSite"]);v4.set(v5(e),t,i)}this._options.cookieDomain&&(r.domain=this._options.cookieDomain),v4.set(e,t,r)},v8.prototype.warning=function(e){this.disableWarnings||console.warn(e)},v9.prototype.failover=function(){this.storage instanceof v2?this.warn.warning("DummyStorage: ignore failover"):this.storage instanceof v6?(this.warn.warning("CookieStorage: failing over DummyStorage"),this.storage=new v2):(this.warn.warning("LocalStorage: failing over CookieStorage"),this.storage=new v6)},v9.prototype.getItem=function(e){try{return this.storage.getItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.getItem(e)}},v9.prototype.removeItem=function(e){try{return this.storage.removeItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.removeItem(e)}},v9.prototype.setItem=function(e,t,n){try{return this.storage.setItem(e,t,n)}catch(r){return this.warn.warning(r),this.failover(),this.setItem(e,t,n)}},v7.prototype.getItem=function(e){var t=this.handler.getItem(e);try{return JSON.parse(t)}catch(e){return t}},v7.prototype.removeItem=function(e){return this.handler.removeItem(e)},v7.prototype.setItem=function(e,t,n){var r=JSON.stringify(t);return this.handler.setItem(e,r,n)},be.prototype.set=function(e,t){this.storage.setItem("auth0.ssodata",JSON.stringify({lastUsedConnection:e,lastUsedSub:t}))},be.prototype.get=function(){var e=this.storage.getItem("auth0.ssodata");if(e)return JSON.parse(e)};var bn=function(e){return bt("invalid_token",e)};function br(e,t){return(t=t||{}).ignoreCasing=!!t.ignoreCasing&&t.ignoreCasing,function(n,r){var i;return n||r?(!n&&r.err&&(n=r.err,r=null),!n&&r.error&&(n=r,r=null),n?(vG(i={original:n},"original.response.req._data.password","*****"),n.response&&n.response.statusCode&&(i.statusCode=n.response.statusCode),n.response&&n.response.statusText&&(i.statusText=n.response.statusText),n.response&&n.response.body&&(n=n.response.body),n.err&&(n=n.err),i.c
60ode=n.code||n.error||n.error_code||n.status||null,i.description=n.errorDescription||n.error_description||n.description||n.error||n.details||n.err||null,t.forceLegacyError&&(i.error=i.code,i.error_description=i.description),n.error_codes&&n.error_details&&(i.errorDetails={codes:n.error_codes,details:n.error_details}),n.name&&(i.name=n.name),n.policy&&(i.policy=n.policy),e(i)):r.type&&("text/html"===r.type||"text/plain"===r.type)?e(null,r.text):t.ignoreCasing?e(null,r.body||r):e(null,function e(t,n,r){return"object"!==vd(t)||vF.isArray(t)||null===t?t:(n=n||[],r=r||{},Object.keys(t).reduce(function(i,o){var a,s=-1===n.indexOf(o)?(a=o.split("_")).reduce(function(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)},a.shift()):o;return i[s]=e(t[s]||t[o],[],r),r.keepOriginal&&(i[o]=e(t[o],[],r)),i},{}))}(r.body||r,[],{keepOriginal:t.keepOriginalCasing}))):e(bt("generic_error","Something went wrong"))}}var bi=["realm","audience","otp","organization","client_id","client_secret","redirect_uri","scope","code","grant_type","username","password","refresh_token","assertion","client_assertion","client_assertion_type","code_verifier","subject_token","subject_token_type"],bo=["connection","connection_scope","auth0Client","owp","device","realm","organization","invitation","protocol","_csrf","_intstate","login_ticket","client_id","response_type","response_mode","redirect_uri","audience","scope","state","nonce","display","prompt","screen_hint","max_age","ui_locales","claims_locales","id_token_hint","login_hint","acr_values","claims","registration","request","request_uri","code_challenge","code_challenge_method","access_type","display"],ba=function(e,t){var n=vK(t,bo);return n.length>0&&e.warning("Following parameters are not allowed on the `/authorize` endpoint: ["+n.join(",")+"]"),t},bs="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==er?er:"u">typeof self?self:{};function bl(e){var t={exports:{}};return e(t,t.exports),t.exports}var bu=bl(function(e,t){e.exports=function(){function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,r=void 0,i=void 0,o=function(e,t){f[n]=e,f[n+1]=t,2===(n+=2)&&(i?i(h):v())},a="u">typeof window?window:void 0,s=a||{},l=s.MutationObserver||s.WebKitMutationObserver,u="u"<typeof self&&!1,c="u">typeof Uint8ClampedArray&&"u">typeof importScripts&&"u">typeof MessageChannel;function d(){var e=setTimeout;return function(){return e(h,1)}}var f=Array(1e3);function h(){for(var e=0;e<n;e+=2)(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0;n=0}var p,m,g,y,v=void 0;function b(e,t){var n=this,r=new this.constructor(_);void 0===r[x]&&R(r);var i=n._state;if(i){var a=arguments[i-1];o(function(){return P(i,r,a,n._result)})}else C(n,r,e,t);return r}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(_);return E(t,e),t}v=u?function(){return gy.nextTick(h)}:l?(m=0,g=new l(h),y=document.createTextNode(""),g.observe(y,{characterData:!0}),function(){y.data=m=++m%2}):c?((p=new MessageChannel).port1.onmessage=h,function(){return p.port2.postMessage(0)}):void 0===a?function(){try{var e=Function("return this")().require("vertx");return void 0!==(r=e.runOnLoop||e.runOnContext)?function(){r(h)}:d()}catch(e){return d()}}():d();var x=Math.random().toString(36).substring(2);function _(){}var k=void 0;function S(t,n,r){n.constructor===t.constructor&&r===b&&n.constructor.resolve===w?1===n._state?j(t,n._result):2===n._state?T(t,n._result):C(n,void 0,function(e){return E(t,e)},function(e){return T(t,e)}):void 0===r?j(t,n):e(r)?o(function(e){var t=!1,i=function(r,i){try{r.call(i,function(r){t||(t=!0,n!==r?E(e,r):j(e,r))},function(n){t||(t=!0,T(e,n))})}catch(e){return e}}(r,n);!t&&i&&(t=!0,T(e,i))},t):j(t,n)}function E(e,t){if(e===t)T(e,TypeError("You cannot resolve a promise with itself"));else if(n=typeof t,null===t||"object"!==n&&"function"!==n)j(e,t);else{var n,r=void 0;try{r=t.then}catch(t){return void T(e,t)}S(e,t,r)}}function O(e){e._onerror&&e._onerror(e._result),I(e)}function j(e,t){e._state===k&&(e._result=t,e._state=1,0!==e._subscribers.length&&o(I,e))}function T(e,t){e._state===k&&(e._state=2,e._result=t,o(O,e))}function C(e,t,n,r){var i=e._subscribers,a=i.length;e._onerror=null,i[a]=t,i[a+1]=n,i[a+2]=r,0===a&&e._state&&o(I,e)}function I(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a+n],(r=t[a])?P(n,r,i,o):i(o);e._subscribers.length=0}}function P(t,n,r,i){var o=e(r),a=void 0,s=void 0,l=!0;if(o){try{a=r(i)}catch(e){l=!1,s=e}if(n===a)return void T(n,TypeError("A promises callback cannot return that same promise."))}else a=i;n._state!==k||(o&&l?E(n,a):!1===l?T(n,s):1===t?j(n,a):2===t&&T(n,a))}var A=0;function R(e){e[x]=A++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(_),this.promise[x]||R(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&j(this.promise,this._result))):T(this.promise,Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===k&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===w){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===b&&e._state!==k)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===M){var s=new n(_);a?T(s,o):S(s,e,i),this._willSettleAt(s,t)}
60else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===k&&(this._remaining--,2===e?T(r,n):this._result[t]=n),0===this._remaining&&j(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;C(e,void 0,function(e){return n._settledAt(1,t,e)},function(e){return n._settledAt(2,t,e)})},e}(),M=function(){function t(e){this[x]=A++,this._result=this._state=void 0,this._subscribers=[],_!==e&&("function"!=typeof e&&function(){throw TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t(function(t){E(e,t)},function(t){T(e,t)})}catch(t){T(e,t)}}(this,e):function(){throw TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}):this.then(t,t)},t}();return M.prototype.then=b,M.all=function(e){return new N(this,e).promise},M.race=function(e){var n=this;return new n(t(e)?function(t,r){for(var i=e.length,o=0;o<i;o++)n.resolve(e[o]).then(t,r)}:function(e,t){return t(TypeError("You must pass an array to race."))})},M.resolve=w,M.reject=function(e){var t=new this(_);return T(t,e),t},M._setScheduler=function(e){i=e},M._setAsap=function(e){o=e},M._asap=o,M.polyfill=function(){var e=void 0;if(void 0!==bs)e=bs;else if("u">typeof self)e=self;else try{e=Function("return this")()}catch(e){throw Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=M},M.Promise=M,M}()}),bc={__proto__:null,default:{}},bd=bl(function(e,t){e.exports=function(e){if("u">typeof window&&window.crypto&&(t=window.crypto),"u">typeof self&&self.crypto&&(t=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"u">typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==bs&&bs.crypto&&(t=bs.crypto),!t)try{t=bc}catch(e){}var t,n=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},o=i.lib={},a=o.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(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)}},s=o.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++)t[r+o>>>2]|=(n[o>>>2]>>>24-o%4*8&255)<<24-(r+o)%4*8;else for(var a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new s.init(t,e)}}),l=i.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},c=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++)r.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},d=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new s.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 n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,l=o/(4*a),u=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*a,c=e.min(4*u,o);if(u){for(var d=0;d<u;d+=a)this._doProcessBlock(i,d);n=i.splice(0,u),r.sigBytes-=c}return new s.init(n,c)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=f.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.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,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=i.algo={};return i}(Math)}),bf=bl(function(e,t){(function(e){var t=bd.lib,n=t.WordArray,r=t.Hasher,i=bd.algo,o=[],a=[];function s(e){return 0x100000000*(e-(0|e))|0}for(var l=2,u=0;u<64;)(function(t){for(var n=e.sqrt(t),r=2;r<=n;
vendor: 5,254 bytes, line 60
60r++)if(!(t%r))return!1;return!0})(l)&&(u<8&&(o[u]=s(e.pow(l,.5))),a[u]=s(e.pow(l,1/3)),u++),l++;var c=[],d=i.SHA256=r.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],u=n[5],d=n[6],f=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],m=c[h-2];c[h]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+c[h-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+c[h-16]}var g=r&i^r&o^i&o,y=f+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&d)+a[h]+c[h];f=d,d=u,u=l,l=s+y|0,s=o,o=i,i=r,r=y+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/0x100000000),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});bd.SHA256=r._createHelper(d),bd.HmacSHA256=r._createHmacHelper(d)})(Math),e.exports=bd.SHA256}),bh=bl(function(e,t){var n;n=bd.lib.WordArray,bd.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(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,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,l=r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|l)<<24-o%4*8,o++}return n.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.exports=bd.enc.Base64}),bp=bl(function(e,t){e.exports=bd.enc.Hex}),bm=bl(function(e,t){(function(){function t(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):this.fromString(e,null==t&&"string"!=typeof e?256:t))}function n(){return new t(null)}var r,i="u">typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(t.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var l=32767&this[e],u=this[e++]>>15,c=s*l+u*a;i=((l=a*l+((32767&c)<<15)+n[r]+(0x3fffffff&i))>>>30)+(c>>>15)+s*u+(i>>>30),n[r++]=0x3fffffff&l}return i},o=30):i&&"Netscape"!=navigator.appName?(t.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/0x4000000),n[r++]=0x3ffffff&a}return i},o=26):(t.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],u=this[e++]>>14,c=s*l+u*a;i=((l=a*l+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*u,n[r++]=0xfffffff&l}return i},o=28),t.prototype.DB=o,t.prototype.DM=(1<<o)-1,t.prototype.DV=1<<o,t.prototype.FV=0x10000000000000,t.prototype.F1=52-o,t.prototype.F2=2*o-52;var o,a,s,l=[];for(a=48,s=0;s<=9;++s)l[a++]=s;for(a=97,s=10;s<36;++s)l[a++]=s;for(a=65,s=10;s<36;++s)l[a++]=s;function u(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function c(e,t){var n=l[e.charCodeAt(t)];return null==n?-1:n}function d(e){var t=n();return t.fromInt(e),t}function f(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function h(e){this.m=e}function p(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function m(e,t){return e&t}function g(e,t){return e|t}function y(e,t){return e^t}function v(e,t){return e&~t}function b(){}function w(e){return e}function x(e){this.r2=n(),this.q3=n(),t.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}h.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},h.prototype.revert=function(e){return e},h.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},h.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},h.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},p.prototype.convert=function(e){var r=n();return e.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),e.s<0&&r.compareTo(t.ZERO)>0&&this.m.subTo(r,r),r},p.prototype.revert=function(e){var t=n();return e.copyTo(t),this.reduce(t),t},p.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},p.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},t.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},t.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;
vendor: 4,779 bytes, line 60
60else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==r?255&e[i]:c(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&128&e[0]&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},t.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},t.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},t.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},t.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},t.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},t.prototype.divRemTo=function(e,r,i){var o=e.abs();if(!(o.t<=0)){var a=this.abs();if(a.t<o.t)return null!=r&&r.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=n());var s=n(),l=this.s,u=e.s,c=this.DB-f(o[o.t-1]);c>0?(o.lShiftTo(c,s),a.lShiftTo(c,i)):(o.copyTo(s),a.copyTo(i));var d=s.t,h=s[d-1];if(0!=h){var p=h*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),m=this.FV/p,g=(1<<this.F1)/p,y=1<<this.F2,v=i.t,b=v-d,w=null==r?n():r;for(s.dlShiftTo(b,w),i.compareTo(w)>=0&&(i[i.t++]=1,i.subTo(w,i)),t.ONE.dlShiftTo(d,w),w.subTo(s,s);s.t<d;)s[s.t++]=0;for(;--b>=0;){var x=i[--v]==h?this.DM:Math.floor(i[v]*m+(i[v-1]+y)*g);if((i[v]+=s.am(0,x,i,b,0,d))<x)for(s.dlShiftTo(b,w),i.subTo(w,i);i[v]<--x;)i.subTo(w,i)}null!=r&&(i.drShiftTo(d,r),l!=u&&t.ZERO.subTo(r,r)),i.t=d,i.clamp(),c>0&&i.rShiftTo(c,i),l<0&&t.ZERO.subTo(i,i)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,r){if(e>0xffffffff||e<1)return t.ONE;var i=n(),o=n(),a=r.convert(this),s=f(e)-1;for(a.copyTo(i);--s>=0;)if(r.sqrTo(i,o),(e&1<<s)>0)r.mulTo(o,a,i);else{var l=i;i=o,o=l}return r.revert(i)},t.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var t,n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=u(n));a>=0;)s<t?n=(this[a]&(1<<s)-1)<<t-s|this[--a]>>(s+=this.DB-t):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=u(n));return i?o:"0"},t.prototype.negate=function(){var e=n();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+f(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=n();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new h(t):new p(t),this.exp(e,n)},t.ZERO=d(0),t.ONE=d(1),b.prototype.convert=w,b.prototype.revert=w,b.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},b.prototype.sqrTo=function(e,t){e.squareTo(t)},x.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);
vendor: 6,927 bytes, line 60
60if(0>e.compareTo(this.m))return e;var t=n();return e.copyTo(t),this.reduce(t),t},x.prototype.revert=function(e){return e},x.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);0>e.compareTo(this.r2);)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},x.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},x.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var _,k,S,E=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],O=0x4000000/E[E.length-1];function j(){var e;e=(new Date).getTime(),k[S++]^=255&e,k[S++]^=e>>8&255,k[S++]^=e>>16&255,k[S++]^=e>>24&255,S>=A&&(S-=A)}if(t.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},t.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=d(r),o=n(),a=n(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(r+a.intValue()).toString(e).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(e)+s},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,l=0;l<e.length;++l){var u=c(e,l);u<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),g,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},t.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},t.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},t.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE),i=r.getLowestSetBit();if(i<=0)return!1;var o=r.shiftRight(i);(e=e+1>>1)>E.length&&(e=E.length);for(var a=n(),s=0;s<e;++s){a.fromInt(E[Math.floor(Math.random()*E.length)]);var l=a.modPow(o,this);if(0!=l.compareTo(t.ONE)&&0!=l.compareTo(r)){for(var u=1;u++<i&&0!=l.compareTo(r);)if(0==(l=l.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=l.compareTo(r))return!1}}return!0},t.prototype.clone=function(){var e=n();return this.copyTo(e),e},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return -1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?n=(this[e]&(1<<r)-1)<<8-r|this[--e]>>(r+=this.DB-8):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),128&n&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},t.prototype.equals=function(e){return 0==this.compareTo(e)},t.prototype.min=function(e){return 0>this.compareTo(e)?this:e},t.prototype.max=function(e){return this.compareTo(e)>0?this:e},t.prototype.and=function(e){var t=n();return this.bitwiseTo(e,m,t),t},t.prototype.or=function(e){var t=n();return this.bitwiseTo(e,g,t),t},t.prototype.xor=function(e){var t=n();return this.bitwiseTo(e,y,t),t},t.prototype.andNot=function(e){var t=n();return this.bitwiseTo(e,v,t),t},t.prototype.not=function(){for(var e=n(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},t.prototype.shiftLeft=function(e){var t=n();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},t.prototype.shiftRight=function(e){var t=n();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},t.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+function(e){if(0==e)return -1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),!(1&e)&&++t,t}(this[e]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=function(e){for(var t=0;0!=e;)e&=e-1,++t;return t}(this[n]^t);return e},t.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},t.prototype.setBit=function(e){return this.changeBit(e,g)},t.prototype.clearBit=function(e){return this.changeBit(e,v)}
vendor: 2,253 bytes, line 60
60,t.prototype.flipBit=function(e){return this.changeBit(e,y)},t.prototype.add=function(e){var t=n();return this.addTo(e,t),t},t.prototype.subtract=function(e){var t=n();return this.subTo(e,t),t},t.prototype.multiply=function(e){var t=n();return this.multiplyTo(e,t),t},t.prototype.divide=function(e){var t=n();return this.divRemTo(e,t,null),t},t.prototype.remainder=function(e){var t=n();return this.divRemTo(e,null,t),t},t.prototype.divideAndRemainder=function(e){var t=n(),r=n();return this.divRemTo(e,t,r),[t,r]},t.prototype.modPow=function(e,t){var r,i,o=e.bitLength(),a=d(1);if(o<=0)return a;r=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new h(t):t.isEven()?new x(t):new p(t);var s=[],l=3,u=r-1,c=(1<<r)-1;if(s[1]=i.convert(this),r>1){var m=n();for(i.sqrTo(s[1],m);l<=c;)s[l]=n(),i.mulTo(m,s[l-2],s[l]),l+=2}var g,y,v=e.t-1,b=!0,w=n();for(o=f(e[v])-1;v>=0;){for(o>=u?g=e[v]>>o-u&c:(g=(e[v]&(1<<o+1)-1)<<u-o,v>0&&(g|=e[v-1]>>this.DB+o-u)),l=r;!(1&g);)g>>=1,--l;if((o-=l)<0&&(o+=this.DB,--v),b)s[g].copyTo(a),b=!1;else{for(;l>1;)i.sqrTo(a,w),i.sqrTo(w,a),l-=2;l>0?i.sqrTo(a,w):(y=a,a=w,w=y),i.mulTo(w,s[g],a)}for(;v>=0&&!(e[v]&1<<o);)i.sqrTo(a,w),y=a,a=w,w=y,--o<0&&(o=this.DB-1,--v)}return i.revert(a)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),o=d(1),a=d(0),s=d(0),l=d(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),n&&s.subTo(o,s),l.subTo(a,l))}return 0!=i.compareTo(t.ONE)?t.ZERO:l.compareTo(e)>=0?l.subtract(e):0>l.signum()?(l.addTo(e,l),0>l.signum()?l.add(e):l):l},t.prototype.pow=function(e){return this.exp(e,new b)},t.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(0>t.compareTo(n)){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>
600&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=E[E.length-1]){for(t=0;t<E.length;++t)if(n[0]==E[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<E.length;){for(var r=E[t],i=t+1;i<E.length&&r<O;)r*=E[i++];for(r=n.modInt(r);t<i;)if(r%E[t++]==0)return!1}return n.millerRabin(e)},t.prototype.square=function(){var e=n();return this.squareTo(e),e},t.prototype.Barrett=x,null==k){if(k=[],S=0,"u">typeof window&&window.crypto){if(window.crypto.getRandomValues){var T=new Uint8Array(32);for(window.crypto.getRandomValues(T),r=0;r<32;++r)k[S++]=T[r]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var C=window.crypto.random(32);for(r=0;r<C.length;++r)k[S++]=255&C.charCodeAt(r)}}for(;S<A;)r=Math.floor(65536*Math.random()),k[S++]=r>>>8,k[S++]=255&r;S=0,j()}function I(){}function P(){this.i=0,this.j=0,this.S=[]}I.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=function(){if(null==_){for(j(),(_=new P).init(k),S=0;S<k.length;++S)k[S]=0;S=0}return _.next()}()},P.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)r=this.S[t],this.S[t]=this.S[n=n+this.S[t]+e[t%e.length]&255],this.S[n]=r;this.i=0,this.j=0},P.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var A=256;e.exports={default:t,BigInteger:t,SecureRandom:I}}).call(bs)}),bg={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},by={sha256:bf};function bv(e,t){if(this.n=null,this.e=0,!(null!=e&&null!=t&&e.length>0&&t.length>0))throw Error("Invalid key data");this.n=new bm.BigInteger(e,16),this.e=parseInt(t,16)}bv.prototype.verify=function(e,t){t=t.replace(/[^0-9a-f]|[\s\n]]/gi,"");var n=new bm.BigInteger(t,16);if(n.bitLength()>this.n.bitLength())throw Error("Signature does not match with the key modulus.");var r=function(e){for(var t in bg){var n=bg[t],r=n.length;if(e.substring(0,r)===n)return{alg:t,hash:e.substring(r)}}return[]}(n.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(0===r.length)return!1;if(!by.hasOwnProperty(r.alg))throw Error("Hashing algorithm is not supported.");var i=by[r.alg](e).toString();return r.hash===i};for(var bb=[],bw=[],bx="u">typeof Uint8Array?Uint8Array:Array,b_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bk=0;bk<64;++bk)bb[bk]=b_[bk],bw[b_.charCodeAt(bk)]=bk;bw[45]=62,bw[95]=63;var bS=function(e){var t,n,r=function(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return -1===n&&(n=t),[n,n===t?0:4-n%4]}(e),i=r[0],o=r[1],a=new bx(3*(i+o)/4-o),s=0,l=o>0?i-4:i;for(n=0;n<l;n+=4)t=bw[e.charCodeAt(n)]<<18|bw[e.charCodeAt(n+1)]<<12|bw[e.charCodeAt(n+2)]<<6|bw[e.charCodeAt(n+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===o&&(t=bw[e.charCodeAt(n)]<<2|bw[e.charCodeAt(n+1)]>>4,a[s++]=255&t),1===o&&(t=bw[e.charCodeAt(n)]<<10|bw[e.charCodeAt(n+1)]<<4|bw[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a};function bE(e){var t=e.length%4;return 0===t?e:e+Array(4-t+1).join("=")}function bO(e){return decodeURIComponent((function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t})(bS(e=bE(e).replace(/\-/g,"+").replace(/_/g,"/"))).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function bj(e){return function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);t+=2===r.length?r:"0"+r}return t}(bS(bE(e)))}var bT=bl(function(e){var t;t=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=i.replace(/[\/]+$/,r<e.length-1?"":"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=t():bs.urljoin=t()});function bC(e){if(e.ok)return e.json();var t=Error(e.statusText);return t.response=e,Promise.reject(t)}function bI(e){this.name="ConfigurationError",this.message=e||""}function bP(e){this.name="TokenValidationError",this.message=e||""}bI.prototype=Error.prototype,bP.prototype=Error.prototype;var bA=function(){function e(){}var t=e.prototype;return t.get=function(){return null},t.has=function(){return null},t.set=function(){return null},e}();bu.polyfill();var bR="RS256",bN=function(e){return"number"==typeof e},bM=function(){return new Date};function bD(e){var t=e||{};if(this.jwksCache=t.jwksCache||new bA,this.expectedAlg=t.expectedAlg||"RS256",this.issuer=t.issuer,this.audience=t.audie
vendor: 5,281 bytes, line 60
60nce,this.leeway=0===t.leeway?0:t.leeway||60,this.jwksURI=t.jwksURI,this.maxAge=t.maxAge,this.__clock="function"==typeof t.__clock?t.__clock:bM,this.leeway<0||this.leeway>300)throw new bI("The leeway should be positive and lower than five minutes.");if(bR!==this.expectedAlg)throw new bI('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+bR+'".')}function bL(e,t){this.plugins=t;for(var n=0;n<this.plugins.length;n++){if(this.plugins[n].version!==vN.raw){var r="";throw this.plugins[n].constructor&&this.plugins[n].constructor.name&&(r=this.plugins[n].constructor.name),Error("Plugin "+r+" version ("+this.plugins[n].version+") is not compatible with the SDK version ("+vN.raw+")")}this.plugins[n].setWebAuth(e)}}bD.prototype.verify=function(e,t,n){if(!n&&t&&"function"==typeof t&&(n=t,t=void 0),!e)return n(new bP("ID token is required but missing"),null);var r=this.decode(e);if(r instanceof Error)return n(new bP("ID token could not be decoded"),null);var i=r.encoded.header+"."+r.encoded.payload,o=bj(r.encoded.signature),a=r.header.alg,s=r.header.kid,l=r.payload.aud,u=r.payload.sub,c=r.payload.iss,d=r.payload.exp,f=r.payload.nbf,h=r.payload.iat,p=r.payload.azp,m=r.payload.auth_time,g=r.payload.nonce,y=this.__clock(),v=this;if(v.expectedAlg!==a)return n(new bP('Signature algorithm of "'+a+'" is not supported. Expected the ID token to be signed with "'+bR+'".'),null);this.getRsaVerifier(c,s,function(e,a){if(e)return n(e,null);if(!a.verify(i,o))return n(new bP("Invalid ID token signature."),null);if(!c||"string"!=typeof c)return n(new bP("Issuer (iss) claim must be a string present in the ID token"),null);if(v.issuer!==c)return n(new bP('Issuer (iss) claim mismatch in the ID token, expected "'+v.issuer+'", found "'+c+'"'),null);if(!u||"string"!=typeof u)return n(new bP("Subject (sub) claim must be a string present in the ID token"),null);if(!l||"string"!=typeof l&&!Array.isArray(l))return n(new bP("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(l)&&!l.includes(v.audience))return n(new bP('Audience (aud) claim mismatch in the ID token; expected "'+v.audience+'" but was not one of "'+l.join(", ")+'"'),null);if("string"==typeof l&&v.audience!==l)return n(new bP('Audience (aud) claim mismatch in the ID token; expected "'+v.audience+'" but found "'+l+'"'),null);if(t){if(!g||"string"!=typeof g)return n(new bP("Nonce (nonce) claim must be a string present in the ID token"),null);if(g!==t)return n(new bP('Nonce (nonce) claim value mismatch in the ID token; expected "'+t+'", found "'+g+'"'),null)}if(Array.isArray(l)&&l.length>1){if(!p||"string"!=typeof p)return n(new bP("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(p!==v.audience)return n(new bP('Authorized Party (azp) claim mismatch in the ID token; expected "'+v.audience+'", found "'+p+'"'),null)}if(!d||!bN(d))return n(new bP("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!h||!bN(h))return n(new bP("Issued At (iat) claim must be a number present in the ID token"),null);var s=d+v.leeway,b=new Date(0);if(b.setUTCSeconds(s),y>b)return n(new bP('Expiration Time (exp) claim error in the ID token; current time "'+y+'" is after expiration time "'+b+'"'),null);if(f&&bN(f)){var w=f-v.leeway,x=new Date(0);if(x.setUTCSeconds(w),y<x)return n(new bP('Not Before Time (nbf) claim error in the ID token; current time "'+y+'" is before the not before time "'+x+'"'),null)}if(v.maxAge){if(!m||!bN(m))return n(new bP("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var _=m+v.maxAge+v.leeway,k=new Date(0);if(k.setUTCSeconds(_),y>k)return n(new bP('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+y+'" is after last auth time at "'+k+'"'),null)}return n(null,r.payload)})},bD.prototype.getRsaVerifier=function(e,t,n){var r=this,i=e+t;Promise.resolve(this.jwksCache.has(i)).then(function(n){var o;return n?r.jwksCache.get(i):("undefined"==fetch?function(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})}:fetch)((o={jwksURI:r.jwksURI,iss:e,kid:t}).jwksURI||bT(o.iss,".well-known","jwks.json")).then(bC).then(function(e){var t,n,r,i=null;for(t=0;t<e.keys.length&&null===i;
60t++)(n=e.keys[t]).kid===o.kid&&(i=n);if(!i)throw Error('Could not find a public key for Key ID (kid) "'+o.kid+'"');return{modulus:bj((r=i).n),exp:bj(r.e)}}).catch(function(e){throw e})}).then(function(e){if(!e||!e.modulus||!e.exp)throw Error("Empty keyInfo in response");return Promise.resolve(r.jwksCache.set(i,e)).then(function(){n&&n(null,new bv(e.modulus,e.exp))})}).catch(function(e){n&&n(e)})},bD.prototype.decode=function(e){var t,n,r=e.split(".");if(3!==r.length)return new bP("Cannot decode a malformed JWT");try{t=JSON.parse(bO(r[0])),n=JSON.parse(bO(r[1]))}catch(e){return new bP("Token header or payload is not valid JSON")}return{header:t,payload:n,encoded:{header:r[0],payload:r[1],signature:r[2]}}},bD.prototype.validateAccessToken=function(e,t,n,r){if(this.expectedAlg!==t)return r(new bP('Signature algorithm of "'+t+'" is not supported. Expected "'+this.expectedAlg+'"'));var i,o=bf(e),a=bp.stringify(o),s=a.substring(0,a.length/2),l=bp.parse(s);return r((i={"+":"-","/":"_","=":""},bh.stringify(l).replace(/[+/=]/g,function(e){return i[e]})!==n?new bP("Invalid access_token"):null))},bL.prototype.get=function(e){for(var t=0;t<this.plugins.length;t++)if(this.plugins[t].supports(e))return this.plugins[t].init();return null};var bz=function(e){if(!e||e<=0)return"";var t=vQ().crypto||vQ().msCrypto;if(!t)return null;for(var n=[];n.length<e;)for(var r=new Uint8Array(e-n.length),i=t.getRandomValues(r),o=0;o<i.length&&n.length<e;o++)i[o]<195&&n.push("0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._~"[i[o]%65]);return n.join("")},bF=1/96,bB=1/48;function bU(e){var t=e.transaction||{};this.namespace=t.namespace||"com.auth0.auth.",this.keyLength=t.keyLength||32,this.stateExpiration=e.stateExpiration?e.stateExpiration/60/24:bB,this.storage=new v7(e),this.options=e}function b$(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout||6e4,this.timeoutCallback=e.timeoutCallback||null,this.eventListenerType=e.eventListenerType||"message",this.iframe=null,this.timeoutHandle=null,this._destroyTimeout=null,this.transientMessageEventListener=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator||{isValid:function(){return!0}},"function"!=typeof this.callback)throw Error("options.callback must be a function")}function bH(e){this.webAuth=e,this.warn=new v8(e.baseOptions)}function bW(e,t){this.webAuth=e,this.baseOptions=t,this.request=new vJ(t),this.webMessageHandler=new bH(e),this.storage=new v7(t)}function bV(e,t){return["co/verifier",encodeURIComponent(e),encodeURIComponent(t)].join("/")}function bq(e,t){this.webAuth=e,this.baseOptions=t,this.crossOriginAuthentication=new bW(e,this.baseOptions),this.warn=new v8({disableWarnings:!!t._disableDeprecationWarnings})}bU.prototype.process=function(e){if(!e.responseType)throw Error("responseType is required");var t=e.realm||e.connection,n=-1!==e.responseType.indexOf("id_token"),r=this.generateTransaction(e.appState,e.state,e.nonce,t,n,e.organization);return e.state||(e.state=r.state),n&&!e.nonce&&(e.nonce=r.nonce),e},bU.prototype.generateTransaction=function(e,t,n,r,i,o){if(t=t||bz(this.keyLength),n=n||(i?bz(this.keyLength):null),vQ().location.host!==this.options.domain){var a={nonce:n,appState:e,state:t,lastUsedConnection:r};o&&(a.organization=o),this.storage.setItem(this.namespace+t,a,{expires:this.stateExpiration})}return{state:t,nonce:n}},bU.prototype.getStoredTransaction=function(e){var t;return t=this.storage.getItem(this.namespace+e),this.clearTransaction(e),t},bU.prototype.clearTransaction=function(e){this.storage.removeItem(this.namespace+e)},b$.prototype.init=function(){var e=this,t=vQ();switch(this.iframe=t.document.createElement("iframe"),this.iframe.style.display="none",this.proxyEventListener=function(t){e.eventListener(t)},this.eventListenerType){case"message":this.eventSourceObject=t;break;case"load":this.eventSourceObject=this.iframe;break;default:throw Error("Unsupported event listener type: "+this.eventListenerType)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),t.document.body.appendChild(this.iframe),this.iframe.src=this.url,this.timeoutHandle=setTimeout(function(){e.timeoutHandler()},this.timeout)},b$.prototype.eventListener=function(e){var t={event:e,sourceObject:this.eventSourceObject};this.eventValidator.isValid(t)&&(this.destroy(),this.callback(t))},b$.prototype.timeoutHandler=function(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()},b$.prototype.destroy=function(){var e=this;clearTimeout(this.timeoutHandle),this._destroyTimeout=setTimeout(function(){e.eventSourceObject.removeEventListener(e.eventListenerType,e.proxyEventListener,!1),e.iframe.parentNode&&e.iframe.parentNode.removeChild(e.iframe)},0)},bH.prototype.run=function(e,t){var n,r,i=this;e.responseMode="web_message",e.prompt="none";var o=v1(),a=vZ(e.redirectUri);if(a&&o!==a)return t({error:"origin_mismatch",error_description:"The redirectUri's origin ("+a+") should match the window's origin ("+o+")."});n=this.webAuth.client.buildAuthorizeUrl(e),r=function(n,r){var o=n;if(!n&&r.event.data.response.error&&(o=r.event.data.response),!o){var a=r.event.data.response;return i.webAuth.validateAuthenticationResponse(e,a,t)}return"consent_required"===o.error&&"localhost"===vQ().location.hostname&&i.warn.warning("Consent Required. Consent can't be skipped on localhost. Read more here: https://auth0.com/docs/api-auth/user-consent#skipping-consent-for-first-party-clients"),i.webAuth.transactionManager.clearTransaction(o.state),t(vU(o,["error","error_description"]))},new b$({url:n,eventListenerType:"message",callback:function(e){r(null,e)},timeout:e.timeout,eventValidator:{isValid:function(t){return!(!t.event.data||"authorization_response"!==t.event.data.type||e.state!==t.event.data.response.state)}},timeoutCallback:function(){r({error:"timeout",error_description:"Timeout during executing web_message communication",state:e.state})}}).init()},bW.prototype.login=function(e,t){var n=this,r=gO(this.baseOptions.rootUrl,"/co/authenticate");e.username=e.username||e.email,delete e.email;var i={client_id:e.clientID||this.baseOptions.clientID,username:e.username};e.password&&(i.password=e.password),e.otp&&(i.otp=e.otp);var o=e.realm||this.baseOptions.realm;if(o){var a=e.credentialType||this.baseOptions.credentialType||"http://auth0.com/oauth/grant-type/password-realm";i.realm=o,i.credential_type=a}else i.credential_type="password";this.request.post(r).withCredentials().send(i).end(function(r,i){if(r){var o=r.response&&r.response.body||{error:"request_error",error_description:JSON.stringify(r)};return br(t,{forceLegacyError:!0})(o)}function a(){var r=!0===e.popup,o=vq(e=vV(e,["password","credentialType","otp","popup","onRedirecting"])).with({loginTicket:i.body.login_ticket}),a=bV(n.baseOptions.rootUrl,i.body.co_id);n.storage.setItem(a,i.body.co_verifier,{expires:bF}),r?n.webMessageHandler.run(o,br(t,{forceLegacyError:!0})):n.webAuth.authorize(o)}
vendor: 4,185 bytes, line 60
60"function"==typeof e.onRedirecting?e.onRedirecting(a):a()})},bW.prototype.callback=function(){var e=decodeURIComponent(function(e){var t=("&"+vQ().location.hash.substring(1)).split("&"+e+"=");if(2===t.length)return t.pop().split("&").shift()}("origin")),t=vQ(),n=this;t.addEventListener("message",function(e){if("co_verifier_request"===e.data.type){var t=bV(e.origin,e.data.request.id),r=function(e,t){try{var n=e.getItem(t);return e.removeItem(t),n||""}catch(e){return""}}(n.storage,t);e.source.postMessage({type:"co_verifier_response",response:{verifier:r}},e.origin)}}),t.parent.postMessage({type:"ready"},e)},bq.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,delete e.connection,this.crossOriginAuthentication.login(e,t)},bq.prototype.signupAndLogin=function(e,t){var n=this;return this.webAuth.client.dbConnection.signup(e,function(r){return r?t(r):(e.realm=e.realm||e.connection,delete e.connection,n.webAuth.login(e,function(e,n){return e?(e.errorInfo={error_code:"login_error",message:"Your account was created successfully, but we could not log you in automatically. Please try logging in with your new credentials."},t(e)):t(null,n)}))})};var bK,bZ={exports:{}},bG=gb((bK||(bK=1,R_=function(){var e="__winchan_relay_frame";function t(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1)}function n(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}function r(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}var i=function(){if("u"<typeof navigator)return!1;var e=-1,t=navigator.userAgent;return"Microsoft Internet Explorer"===navigator.appName?null!=RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)):t.indexOf("Trident")>-1&&null!==RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)),e>=8}();return"u">typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(o,a){if(!a)throw"missing required callback argument";o.url||(s="missing required 'url' parameter"),o.relay_url||(s="missing required 'relay_url' parameter"),s&&setTimeout(function(){a(s)},0),o.window_name||(o.window_name=null),o.window_features&&!function(){try{var e=navigator.userAgent;return -1!=e.indexOf("Fennec/")||-1!=e.indexOf("Firefox/")&&-1!=e.indexOf("Android")}catch(e){}return!1}()||(o.window_features=void 0);var s,l,u,c=o.origin||r(o.url);if(c!==r(o.relay_url))return setTimeout(function(){a("invalid arguments: origin of url and relay_url must match")},0);i&&((l=document.createElement("iframe")).setAttribute("src",o.relay_url),l.style.display="none",l.setAttribute("name",e),document.body.appendChild(l),u=l.contentWindow);var d=o.popup||window.open(o.url,o.window_name,o.window_features);o.popup&&(d.location.href=o.url),u||(u=d);var f=setInterval(function(){d&&d.closed&&(p(),a&&(a("User closed the popup window"),a=null))},500),h=JSON.stringify({a:"request",d:o.params});function p(){if(l&&document.body.removeChild(l),l=void 0,f&&(f=clearInterval(f)),n(window,"message",m),n(window,"unload",p),d)try{d.close()}catch(e){u.postMessage("die",c)}d=u=void 0}function m(e){if(e.origin===c){try{var t=JSON.parse(e.data)}catch(e){if(a)return a(e);throw e}"ready"===t.a?u.postMessage(h,c):"error"===t.a?(p(),a&&(a(t.d),a=null)):"response"===t.a&&(p(),a&&(a(null,t.d),a=null))}}return t(window,"unload",p),t(window,"message",m),{originalPopup:d,close:p,focus:function(){if(d)try{d.focus()}catch(e){}}}},onOpen:function(r){var o="*",a=i?function(){for(var t=window.opener.frames,n=t.length-1;n>=0;n--)try{if(t[n].location.protocol===window.location.protocol&&t[n].location.host===window.location.host&&t[n].name===e)return t[n]}catch(e){}}():window.opener;if(!a)throw"can't find relay frame";function s(e){e=JSON.stringify(e),i?a.doPost(e,o):a.postMessage(e,o)}function l(e){if("die"===e.data)try{window.close()}catch(e){}}t(i?a:window,"message",function e(t){var i;try{i=JSON.parse(t.data)}catch(e){}i&&"request"===i.a&&(n(window,"message",e),o=t.origin,r&&setTimeout(function(){r(o,i.d,function(e){r=void 0,s({a:"response",d:e})})}
60,0))}),t(i?a:window,"message",l);try{s({a:"ready"})}catch(e){t(a,"load",function(e){s({a:"ready"})})}var u=function(){try{n(i?a:window,"message",l)}catch(e){}r&&s({a:"error",d:"client closed window"}),r=void 0;try{window.close()}catch(e){}};return t(window,"unload",u),{detach:function(){n(window,"unload",u)}}}}:{open:function(e,t,n,r){setTimeout(function(){r("unsupported browser")},0)},onOpen:function(e){setTimeout(function(){e("unsupported browser")},0)}}}(),bZ.exports&&(bZ.exports=R_)),bZ.exports)),bY=function(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[-_a-zA-Z.0-9:]+)/.exec(e);return t?t[1]:e};function bX(){this._current_popup=null}function bJ(e,t){this.baseOptions=t,this.baseOptions.popupOrigin=t.popupOrigin,this.client=e.client,this.webAuth=e,this.transactionManager=new bU(this.baseOptions),this.crossOriginAuthentication=new bW(e,this.baseOptions),this.warn=new v8({disableWarnings:!!t._disableDeprecationWarnings})}function bQ(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout||6e4,this.handler=null,this.postMessageDataType=e.postMessageDataType||!1,this.postMessageOrigin=e.postMessageOrigin||vQ().location.origin||vQ().location.protocol+"//"+vQ().location.hostname+(vQ().location.port?":"+vQ().location.port:"")}function b0(e){this.baseOptions=e,this.request=new vJ(e),this.transactionManager=new bU(this.baseOptions)}function b1(e,t){this.baseOptions=t,this.client=e,this.baseOptions.universalLoginPage=!0,this.request=new vJ(this.baseOptions),this.warn=new v8({disableWarnings:!!t._disableDeprecationWarnings})}bX.prototype.calculatePosition=function(e){var t=e.width||500,n=e.height||600,r=vQ(),i=void 0!==r.screenX?r.screenX:r.screenLeft,o=void 0!==r.screenY?r.screenY:r.screenTop,a=void 0!==r.outerWidth?r.outerWidth:r.document.body.clientWidth,s=void 0!==r.outerHeight?r.outerHeight:r.document.body.clientHeight;return{width:t,height:n,left:e.left||i+(a-t)/2,top:e.top||o+(s-n)/2}},bX.prototype.preload=function(e){var t=this,n=vQ(),r=vq(this.calculatePosition(e.popupOptions||{})).with(e.popupOptions),i=e.url||"about:blank",o=va.stringify(r,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed||(this._current_popup=n.open(i,"auth0_signup_popup",o),this._current_popup.kill=function(){this.close(),t._current_popup=null}),this._current_popup},bX.prototype.load=function(e,t,n,r){var i=this,o=vq(this.calculatePosition(n.popupOptions||{})).with(n.popupOptions),a=vq({url:e,relay_url:t,window_features:va.stringify(o,{delimiter:",",encode:!1}),popup:this._current_popup}).with(n),s=bG.open(a,function(e,t){if(!e||"SyntaxError"!==e.name)return i._current_popup=null,r(e,t)});return s.focus(),s},bJ.prototype.buildPopupHandler=function(){var e=this.baseOptions.plugins.get("popup.getPopupHandler");return e?e.getPopupHandler():new bX},bJ.prototype.preload=function(e){e=e||{};var t=this.buildPopupHandler();return t.preload(e),t},bJ.prototype.getPopupHandler=function(e,t){return e.popupHandler?e.popupHandler:t?this.preload(e):this.buildPopupHandler()},bJ.prototype.callback=function(e){var t=this,n=vQ(),r=(e=e||{}).popupOrigin||this.baseOptions.popupOrigin||v1();n.opener?bG.onOpen(function(n,i,o){if(n!==r)return o({error:"origin_mismatch",error_description:"The popup's origin ("+n+") should match the `popupOrigin` parameter ("+r+")."});t.webAuth.parseHash(e||{},function(e,t){return o(e||t)})}):n.doPost=function(e){n.parent&&n.parent.postMessage(e,r)}},bJ.prototype.authorize=function(e,t){var n,r,i={},o=this.baseOptions.plugins.get("popup.authorize"),a=vq(this.baseOptions,["clientID","scope","domain","audience","tenant","responseType","redirectUri","_csrf","state","_intstate","nonce","organization","invitation"]).with(vV(e,["popupHandler"]));return vF.check(a,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=gO(this.baseOptions.rootUrl,"relay.html"),e.owp?a.owp=!0:(i.origin=bY(a.redirectUri),r=a.redirectUri),e.popupOptions&&(i.popupOptions=vU(e.popupOptions,["width","height","top","left"])),o&&(a=o.processParams(a)),(a=this.transactionManager.process(a)).scope=a.scope||"openid profile email",delete a.domain,n=this.client.buildAuthorizeUrl(a),this.getPopupHandler(e).load(n,r,i,br(t,{keepOriginalCasing:!0}))},bJ.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,e.popup=!0,e=vq(this.baseOptions,["redirectUri","responseType","state","nonce","timeout"]).with(vV(e,["popupHandler","connection"])),e=this.transactionManager.process(e),this.crossOriginAuthentication.login(e,t)},bJ.prototype.passwordlessVerify=function(e,t){var n=this;return this.client.passwordless.verify(vV(e,["popupHandler"]),function(r){if(r)return t(r);e.username=e.phoneNumber||e.email,e.password=e.verificationCode,delete e.email,delete e.phoneNumber,delete e.verificationCode,delete e.type,n.client.loginWithResourceOwner(e,t)})},bJ.prototype.signupAndLogin=function(e,t){var n=this;return this.client.dbConnection.signup(e,function(r){if(r)return t(r);n.loginWithCredentials(e,function(e,n){return e?(e.errorInfo={error_code:"login_error",message:"Your account was created successfully, but we could not log you in automatically. Please try logging in with your new credentials."},t(e)):t(null,n)})})},bQ.create=function(e){return new bQ(e)},bQ.prototype.login=function(e,t){this.handler=new b$({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:this.getCallbackHandler(t,e),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){t(null,"#error=timeout&error_description=Timeout+during+authentication+renew.")}}),this.handler.init()},bQ.prototype.getEventValidator=function(){var e=this;return{isValid:function(t){switch(t.event.type){case"message":return t.event.origin===e.postMessageOrigin&&t.event.source===e.handler.iframe.contentWindow&&(!1===e.postMessageDataType||t.event.data.type&&t.event.data.type===e.postMessageDataType);case"load":if("about:"===t.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},bQ.prototype.getCallbackHandler=function(e,t){return function(n){e(null,t?"object"===vd(n.event.data)&&n.event.data.hash?n.event.data.hash:n.event.data:n.sourceObject.contentWindow.location.hash)}},b0.prototype.login=function(e,t){var n,r;return n=gO(this.baseOptions.rootUrl,"usernamepassword","login"),e.username=e.username||e.email,e=vV(e,["email","onRedirecting"]),r=vq(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience"]).with(e),r=vW(r=this.transactionManager.process(r),["auth0Client"]),this.request.post(n).send(r).end(br(t))},b0.prototype.callback=function(e){var t,n=vQ().document;(t=n.createElement("div")).innerHTML=e,n.body.appendChild(t).children[0].submit()},b1.prototype.login=function(e,t){if(vQ().location.host!==this.baseOptions.domain)throw Error("This method is meant to be used only inside the Universal Login Page.");var n,r=vq(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return vF.check(r,{type:"object",message:"options parameter is not val
60id"},{responseType:{type:"string",message:"responseType option is required"}}),(n=new b0(this.baseOptions)).login(r,function(r,i){if(r)return t(r);function o(){n.callback(i)}if("function"==typeof e.onRedirecting)return e.onRedirecting(function(){o()});o()})},b1.prototype.signupAndLogin=function(e,t){var n=this;return n.client.client.dbConnection.signup(e,function(r){return r?t(r):n.login(e,function(e,n){return e?(e.errorInfo={error_code:"login_error",message:"Your account was created successfully, but we could not log you in automatically. Please try logging in with your new credentials."},t(e)):t(null,n)})})},b1.prototype.getSSOData=function(e,t){var n,r="";return"function"==typeof e&&(t=e,e=!1),vF.check(e,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),e&&(r="?"+va.stringify({ldaps:1,client_id:this.baseOptions.clientID})),n=gO(this.baseOptions.rootUrl,"user","ssodata",r),this.request.get(n,{noHeaders:!0}).withCredentials().end(br(t))};var b2=function(){},b3=b2,b4=b2,b5=!1,b6={DEFAULT:"default",SIGNUP:"signup",PASSWORDLESS:"passwordless",PASSWORD_RESET:"password_reset"},b8="recaptcha_v2",b9="recaptcha_enterprise",b7="hcaptcha",we="friendly_captcha",wt="arkose",wn="auth0_v2",wr={lang:"en",appearance:"always",successCallback:b2,templates:{auth0:function(e){return'<div class="captcha-challenge">\n  <img src="" />\n  <button type="button" class="captcha-reload">↺</button>\n</div>\n<input type="text" name="captcha"\n  class="form-control captcha-control"\n  placeholder="'+("code"===e.type?"Enter the code shown above":"Solve the formula shown above")+'" />'},recaptcha_v2:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},recaptcha_enterprise:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},hcaptcha:function(){return'<div class="hcaptcha" ></div><input type="hidden" name="captcha" />'},friendly_captcha:function(){return'<div class="friendly-captcha" ></div><input type="hidden" name="captcha" />'},arkose:function(){return'<div class="arkose" ></div><input type="hidden" name="captcha" />'},auth0_v2:function(){return'<div class="auth0_v2" ></div><input type="hidden" name="captcha" />'},error:function(){return'<div class="error" style="color: red;">Error getting the bot detection challenge. Please contact the system administrator.</div>'}}};function wi(e){switch(e){case b8:return window.grecaptcha;case b9:return window.grecaptcha.enterprise;case b7:return window.hcaptcha;case we:return window.friendlyChallenge;case wt:return window.arkose;case wn:return window.turnstile;default:throw Error("Unknown captcha provider")}}function wo(e,t){var n=window.document.createElement("script");for(var r in t)r.startsWith("data-")?n.dataset[r.replace("data-","")]=t[r]:n[r]=t[r];n.src=e,window.document.body.appendChild(n)}function wa(e){window.document.querySelectorAll('script[src="'+e+'"]').forEach(function(e){e.remove()})}var ws=function(e,t,n,r,i){function o(i){function a(e,t){var i,a,s,l;return e?(n.innerHTML=r.templates.error(e),b4(e)):null!=t&&t.required?(n.style.display="",void("auth0"===t.provider?(i=r,a=Object.assign({},t,{image:String(t.image||"").replace(/&/g,"&amp;").replace(/"/g,"&quot;")}),n.innerHTML=i.templates[t.provider](a),(s=n.querySelector(".captcha-challenge img"))&&s.setAttribute("src",t.image||""),(l=n.querySelector(".captcha-reload"))&&l.addEventListener("click",function(e){e.preventDefault(),o()}),b4()):t.provider!==b8&&t.provider!==b9&&t.provider!==b7&&t.provider!==we&&t.provider!==wt&&t.provider!==wn||function(e,t,n){var r,i=e.hasAttribute("data-wid")&&e.getAttribute("data-wid");function o(t){e.querySelector('input[name="captcha"]').value=t||""}if(n.provider===we&&window.auth0FCInstance)return o(),window.auth0FCInstance.reset();if(n.provider===wt&&wi(n.provider))return o(),wi(n.provider).reset();if(i)return o(),wi(n.provider).reset(i);switch(e.innerHTML=t.templates[n.provider](n),n.provider){case b9:case b8:r=".recaptcha";break;case b7:r=".hcaptcha";break;case we:r=".friendly-captcha";break;case wt:r=".arkose";break;case wn:r=".auth0_v2"}var a=e.querySelector(r);!function(e,t,n){var r=e.provider+"Callback_"+Math.floor(1000001*Math.random()),i={async:!0,defer:!0},o=function(e,t,n,r,i){switch(e){case b8:return"https://www.recaptcha.net/recaptcha/api.js?hl="+t+"&onload="+n;case b9:return"https://www.recaptcha.net/recaptcha/enterprise.js?render=explicit&hl="+t+"&onload="+n;case b7:return"https://js.hcaptcha.com/1/api.js?hl="+t+"&onload="+n;case we:return"https://cdn.jsdelivr.net/npm/[email protected]/widget.min.js";case wt:return"https://"+r+".arkoselabs.com/v2/"+i+"/api.js";case wn:return"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload="+n;default:throw Error("Unknown captcha provider")}}(e.provider,e.lang,r,e.clientSubdomain,e.siteKey);if(e.provider===wt||e.provider===wn){var a=0;i["data-callback"]=r,i.onerror=function(){a<3?(wa(o),wo(o,i),a++):(wa(o),b4(Error(e.provider+" failed to load")),n("BYPASS_CAPTCHA"))},window[r]=function(e){window.arkose=e,t(e)}}else window[r]=function(){delete window[r],t()},e.provider===we&&(i.onload=window[r]);wo(o,i)}({lang:t.lang,provider:n.provider,clientSubdomain:n.clientSubdomain,siteKey:n.siteKey},function(r){var s=wi(n.provider);if(n.provider===wt){var l=0,u=!1;r.setConfig({onReady:function(){u&&!b5||(b4(null,{triggerCaptcha:function(e){r.run(),b3=e}}),b5&&(b5=!1),u=!0)},onCompleted:function(e){o(e.token),b3()},onError:function(e){l<3?(o(),r.reset(),setTimeout(function(){r.run()}
vendor: 4,194 bytes, line 60
60,500),l++):(u||(b4(Error(e.error.error)),u=!0),o("BYPASS_CAPTCHA"))}})}else if(n.provider===we)window.auth0FCInstance=new s.WidgetInstance(a,{sitekey:n.siteKey,language:t.lang,doneCallback:function(e){o(e)},errorCallback:function(){o()}}),b4();else{var c={callback:function(e){o(e),n.provider===wn&&t.successCallback()},"expired-callback":function(){o()},"error-callback":function(){o()},sitekey:n.siteKey};n.provider===wn&&(l=0,c.language=t.lang,c.appearance=t.appearance,c.theme="light",c.retry="never",c["response-field"]=!1,c["error-callback"]=function(){return l<3?(o(),wi(n.provider).reset(i),l++):o("BYPASS_CAPTCHA"),!0}),i=s.render(a,c),e.setAttribute("data-wid",i),b4()}},o)}(n,r,t))):(n.style.display="none",n.innerHTML="",b4())}b4=i||b2,t===b6.PASSWORDLESS?e.passwordless.getChallenge(a):t===b6.PASSWORD_RESET?e.dbConnection.getPasswordResetChallenge(a):t===b6.SIGNUP?e.dbConnection.getSignupChallenge(a):e.getChallenge(a)}return r=vq(wr).with(r||{}),o(i),{reload:function(e){b5=!0,o(e)},getValue:function(){var e=n.querySelector('input[name="captcha"]');if(e)return e.value}}};function wl(){return new Date}function wu(e){vF.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},maxAge:{optional:!0,type:"number",message:"maxAge is not valid"},stateExpiration:{optional:!0,type:"number",message:"stateExpiration is not valid"},legacySameSiteCookie:{optional:!0,type:"boolean",message:"legacySameSiteCookie option is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),e.overrides&&vF.check(e.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=e,this.baseOptions.plugins=new bL(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=e._timesToRetryFailedRequests?parseInt(e._timesToRetryFailedRequests):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,!1!==e.legacySameSiteCookie&&(this.baseOptions.legacySameSiteCookie=!0),this.transactionManager=new bU(this.baseOptions),this.client=new wf(this.baseOptions),this.redirect=new bq(this,this.baseOptions),this.popup=new bJ(this,this.baseOptions),this.crossOriginAuthentication=new bW(this,this.baseOptions),this.webMessageHandler=new bH(this),this._universalLogin=new b1(this,this.baseOptions),this.ssodataStorage=new be(this.baseOptions)}function wc(e,t){this.baseOptions=t,this.request=e}function wd(e,t){this.baseOptions=t,this.request=e}function wf(e,t){2==arguments.length?this.auth0=e:t=e,vF.check(t,{type:"object",message:"options parameter is not val
60id"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl=this.baseOptions.domain&&0===this.baseOptions.domain.toLowerCase().indexOf("http")?this.baseOptions.domain:"https://"+this.baseOptions.domain,this.request=new vJ(this.baseOptions),this.passwordless=new wc(this.request,this.baseOptions),this.dbConnection=new wd(this.request,this.baseOptions),this.warn=new v8({disableWarnings:!!t._disableDeprecationWarnings}),this.ssodataStorage=new be(this.baseOptions)}function wh(e){vF.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},token:{type:"string",message:"token option is required"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=e,this.baseOptions.headers={Authorization:"Bearer "+this.baseOptions.token},this.request=new vJ(this.baseOptions),this.baseOptions.rootUrl=gO("https://"+this.baseOptions.domain,"api","v2")}function wp(){return new wu({domain:"streetmix.auth0.com",clientID:"3Cc1qWCw0Db1zWKb4bqVv4dDf1NH26qU",scope:"openid profile screen_name offline_access email"})}wu.prototype.parseHash=function(e,t){t||"function"!=typeof e?e=e||{}:(t=e,e={});var n,r,i=void 0===e.hash?vQ().location.hash:e.hash;if(i=i.replace(/^#?\/?/,""),(n=va.parse(i)).hasOwnProperty("error"))return r=bt(n.error,n.error_description),n.state&&(r.state=n.state),t(r);if(!n.hasOwnProperty("access_token")&&!n.hasOwnProperty("id_token")&&!n.hasOwnProperty("refresh_token"))return t(null,null);var o=(this.baseOptions.responseType||e.responseType||"").split(" ");return o.length>0&&-1!==o.indexOf("token")&&!n.hasOwnProperty("access_token")?t(bt("invalid_hash","response_type contains `token`, but the parsed hash does not contain an `access_token` property")):o.length>0&&-1!==o.indexOf("id_token")&&!n.hasOwnProperty("id_token")?t(bt("invalid_hash","response_type contains `id_token`, but the parsed hash does not contain an `id_token` property")):this.validateAuthenticationResponse(e,n,t)},wu.prototype.validateAuthenticationResponse=function(e,t,n){var r=this;e.__enableIdPInitiatedLogin=e.__enableIdPInitiatedLogin||e.__enableImpersonation;var i=t.state,o=this.transactionManager.getStoredTransaction(i),a=e.state||o&&o.state||null,s=a===i;if(!(!i&&!a&&e.__enableIdPInitiatedLogin)&&!s)return n({error:"invalid_token",errorDescription:"`state` does not match."});var l=e.nonce||o&&o.nonce||null,u=o&&o.organization,c=e.state||o&&o.appState||null,d=function(e,i){var a;return e?n(e):(o&&o.lastUsedConnection&&(i&&(a=i.sub),r.ssodataStorage.set(o.lastUsedConnection,a)),n(null,{accessToken:t.access_token||null,idToken:t.id_token||null,idTokenPayload:i||null,appState:c||null,refreshToken:t.refresh_token||null,state:t.state||null,expiresIn:t.expires_in?parseInt(t.expires_in,10):null,tokenType:t.token_type||null,scope:t.scope||null}))};return t.id_token?this.validateToken(t.id_token,l,function(e,n){if(!e){if(u)if(0===u.indexOf("org_")){if(!n.org_id)return d(bn("Organization Id (org_id) claim must be a string present in the ID token"));if(n.org_id!==u)return d(bn('Organization Id (org_id) claim value mismatch in the ID token; expected "'+u+'", found "'+n.org_id+'"'))}else{if(!n.org_name)return d(bn("Organization Name (org_name) claim must be a string present in the ID token"));if(n.org_name!==u.toLowerCase())return d(bn('Organization Name (org_name) claim value mismatch in the ID token; expected "'+u+'", found "'+n.org_name+'"'))}
60return t.access_token&&n.at_hash?(new bD).validateAccessToken(t.access_token,"RS256",n.at_hash,function(e){return e?d(bn(e.message)):d(null,n)}):d(null,n)}return d(e)}):d(null,null)},wu.prototype.validateToken=function(e,t,n){new bD({issuer:this.baseOptions.token_issuer,jwksURI:this.baseOptions.jwksURI,audience:this.baseOptions.clientID,leeway:this.baseOptions.leeway||60,maxAge:this.baseOptions.maxAge,__clock:this.baseOptions.__clock||wl}).verify(e,t,function(e,t){if(e)return n(bn(e.message));n(null,t)})},wu.prototype.renewAuth=function(e,t){var n=!!e.usePostMessage,r=e.postMessageDataType||!1,i=e.postMessageOrigin||vQ().origin,o=e.timeout,a=this,s=vq(this.baseOptions,["clientID","redirectUri","responseType","scope","audience","_csrf","state","_intstate","nonce"]).with(e);s.responseType=s.responseType||"token",s.responseMode=s.responseMode||"fragment",s=this.transactionManager.process(s),vF.check(s,{type:"object",message:"options parameter is not valid"}),vF.check(t,{type:"function",message:"cb parameter is not val
60id"}),s.prompt="none",s=vV(s,["usePostMessage","tenant","postMessageDataType","postMessageOrigin"]),bQ.create({authenticationUrl:this.client.buildAuthorizeUrl(s),postMessageDataType:r,postMessageOrigin:i,timeout:o}).login(n,function(e,n){if("object"===vd(n))return t(e,n);a.parseHash({hash:n},t)})},wu.prototype.checkSession=function(e,t){var n=vq(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return"code"===n.responseType?t({error:"error",error_description:"responseType can't be `code`"}):(e.nonce||(n=this.transactionManager.process(n)),n.redirectUri?(vF.check(n,{type:"object",message:"options parameter is not valid"}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),n=vV(n,["usePostMessage","tenant","postMessageDataType"]),void this.webMessageHandler.run(n,br(t,{forceLegacyError:!0,ignoreCasing:!0}))):t({error:"error",error_description:"redirectUri can't be empty"}))},wu.prototype.changePassword=function(e,t){return this.client.dbConnection.changePassword(e,t)},wu.prototype.passwordlessStart=function(e,t){var n=vq(this.baseOptions,["responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e.authParams);return e.authParams=this.transactionManager.process(n),this.client.passwordless.start(e,t)},wu.prototype.signup=function(e,t){return this.client.dbConnection.signup(e,t)},wu.prototype.authorize=function(e){var t=vq(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","organization","invitation"]).with(e);vF.check(t,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(t=this.transactionManager.process(t)).scope=t.scope||"openid profile email",v0(this.client.buildAuthorizeUrl(t))},wu.prototype.signupAndAuthorize=function(e,t){var n=this;return this.client.dbConnection.signup(vV(e,["popupHandler"]),function(r){if(r)return t(r);e.realm=e.connection,e.username||(e.username=e.email),n.client.login(e,t)})},wu.prototype.login=function(e,t){var n=vq(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting","organization","invitation"]).with(e);n=this.transactionManager.process(n),vQ().location.host===this.baseOptions.domain?(n.connection=n.realm,delete n.realm,this._universalLogin.login(n,t)):this.crossOriginAuthentication.login(n,t)},wu.prototype.passwordlessLogin=function(e,t){var n=vq(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);if(n=this.transactionManager.process(n),vQ().location.host===this.baseOptions.domain)this.passwordlessVerify(n,t);else{var r=v$({credentialType:"http://auth0.com/oauth/grant-type/passwordless/otp",realm:n.connection,username:n.email||n.phoneNumber,otp:n.verificationCode},vV(n,["connection","email","phoneNumber","verificationCode"]));this.crossOriginAuthentication.login(r,t)}},wu.prototype.crossOriginAuthenticationCallback=function(){this.crossOriginVerification()},wu.prototype.crossOriginVerification=function(){this.crossOriginAuthentication.callback()},wu.prototype.logout=function(e){v0(this.client.buildLogoutUrl(e))},wu.prototype.passwordlessVerify=function(e,t){var n=this,r=vq(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);return vF.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=this.transactionManager.process(r),this.client.passwordless.verify(r,function(i){if(i)return t(i);function o(){v0(n.client.passwordless.buildVerifyUrl(r))}if("function"==typeof e.onRedirecting)return e.onRedirecting(function(){o()});o()})},wu.prototype.renderCaptcha=function(e,t,n){return ws(this.client,b6.DEFAULT,e,t,n)},wu.prototype.renderSignupCaptcha=function(e,t,n){return ws(this.client,b6.SIGNUP,e,t,n)},wu.prototype.renderPasswordlessCaptcha=function(e,t,n){return ws(this.client,b6.PASSWORDLESS,e,t,n)},wu.prototype.renderPasswordResetCaptcha=function(e,t,n){return ws(this.client,b6.PASSWORD_RESET,e,t,n)},wu.prototype.customTokenExchange=function(e,t){return this.client.customTokenExchange(e,t)},wc.prototype.buildVerifyUrl=function(e){var t,n;return vF.check(e,{type:"object",message:"options parameter is not val
60id"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),t=vq(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","protocol","nonce"]).with(e),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=vW(t,["auth0Client"]),n=va.stringify(t),gO(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+n)},wc.prototype.start=function(e,t){vF.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(e){return"code"===e.send||!e.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(e){return"link"===e.send||!e.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),n=gO(this.baseOptions.rootUrl,"passwordless","start");var n,r,i=e.xRequestLanguage;return delete e.xRequestLanguage,(r=vq(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(e)).scope&&(r.authParams=r.authParams||{},r.authParams.scope=r.authParams.scope||r.scope),r.redirectUri&&(r.authParams=r.authParams||{},r.authParams.redirect_uri=r.authParams.redirectUri||r.redirectUri),r.responseType&&(r.authParams=r.authParams||{},r.authParams.response_type=r.authParams.responseType||r.responseType),delete r.redirectUri,delete r.responseType,delete r.scope,r=vW(r,["auth0Client","authParams"]),this.request.post(n,i?{xRequestLanguage:i}:void 0).send(r).end(br(t))},wc.prototype.verify=function(e,t){var n,r;return vF.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),r=vW(r=vU(e,["connection","verificationCode","phoneNumber","email","auth0Client","clientID"]),["auth0Client"]),n=gO(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(n).send(r).end(br(t))},wc.prototype.getChallenge=function(e){if(vF.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=gO(this.baseOptions.rootUrl,"passwordless","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(br(e,{ignoreCasing:!0}))},wd.prototype.signup=function(e,t){var n,r,i;return vF.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),n=gO(this.baseOptions.rootUrl,"dbconnections","signup"),i=(r=vq(this.baseOptions,["clientID","state"]).with(e)).user_metadata||r.userMetadata,r=vW(r=vV(r,["scope","userMetadata","user_metadata"]),["auth0Client"]),i&&(r.user_metadata=i),this.request.post(n).send(r).end(br(t))},wd.prototype.changePassword=function(e,t){var n,r;return vF.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}
60),vF.check(t,{type:"function",message:"cb parameter is not valid"}),n=gO(this.baseOptions.rootUrl,"dbconnections","change_password"),r=vW(r=vq(this.baseOptions,["clientID","state"]).with(e,["email","connection","captcha"]),["auth0Client"]),this.request.post(n).send(r).end(br(t))},wd.prototype.getPasswordResetChallenge=function(e){if(vF.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=gO(this.baseOptions.rootUrl,"dbconnections","change_password","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(br(e,{ignoreCasing:!0}))},wd.prototype.getSignupChallenge=function(e){if(vF.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=gO(this.baseOptions.rootUrl,"dbconnections","signup","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(br(e,{ignoreCasing:!0}))},wf.prototype.buildAuthorizeUrl=function(e){var t,n;return vF.check(e,{type:"object",message:"options parameter is not valid"}),t=vq(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(e),vF.check(t,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(e){return -1===e.responseType.indexOf("code")&&-1!==e.responseType.indexOf("id_token")}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t.connection_scope&&vF.isArray(t.connection_scope)&&(t.connection_scope=t.connection_scope.join(",")),t=vW(t=vV(t,["username","popupOptions","domain","tenant","timeout","appState"]),["auth0Client"]),t=ba(this.warn,t),n=va.stringify(t),gO(this.baseOptions.rootUrl,"authorize","?"+n)},wf.prototype.buildLogoutUrl=function(e){var t,n;return vF.check(e,{optional:!0,type:"object",message:"options parameter is not valid"}),t=vq(this.baseOptions,["clientID"]).with(e||{}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=vW(t,["auth0Client","returnTo"]),n=va.stringify(vV(t,["federated"])),e&&void 0!==e.federated&&!1!==e.federated&&"false"!==e.federated&&(n+="&federated"),gO(this.baseOptions.rootUrl,"v2","logout","?"+n)},wf.prototype.loginWithDefaultDirectory=function(e,t){return vF.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="password",this.oauthToken(e,t)},wf.prototype.login=function(e,t){return vF.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(e,t)},wf.prototype.oauthToken=function(e,t){var n,r,i,o;return vF.check(e,{type:"object",message:"options parameter is not valid"}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),n=gO(this.baseOptions.rootUrl,"oauth","token"),r=vq(this.baseOptions,["clientID","scope","audience"]).with(e),vF.check(r,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),r=vW(r,["auth0Client"]),i=this.warn,r="urn:ietf:params:oauth:grant-type:token-exchange"===(o=r).grant_type?o:vU(o,bi),this.request.post(n).send(r).end(br(t))},wf.prototype.loginWithResourceOwner=function(e,t){var n,r;return vF.check(e,{type:"object",message:"options parameter is not val
60id"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),n=gO(this.baseOptions.rootUrl,"oauth","ro"),(r=vW(r=vq(this.baseOptions,["clientID","scope"]).with(e,["username","password","scope","connection","device"]),["auth0Client"])).grant_type=r.grant_type||"password",this.request.post(n).send(r).end(br(t))},wf.prototype.getSSOData=function(e,t){if(this.auth0||(this.auth0=new wu(this.baseOptions)),vQ().location.host===this.baseOptions.domain)return this.auth0._universalLogin.getSSOData(e,t);"function"==typeof e&&(t=e),vF.check(t,{type:"function",message:"cb parameter is not valid"});var n=this.baseOptions.clientID,r=this.ssodataStorage.get()||{};this.auth0.checkSession({responseType:"token id_token",scope:"openid profile email",connection:r.lastUsedConnection,timeout:5e3},function(e,i){return e?"login_required"===e.error?t(null,{sso:!1}):("consent_required"===e.error&&(e.error_description="Consent required. When using `getSSOData`, the user has to be authenticated with the following scope: `openid profile email`."),t(e,{sso:!1})):r.lastUsedSub&&r.lastUsedSub!==i.idTokenPayload.sub?t(e,{sso:!1}):t(null,{lastUsedConnection:{name:r.lastUsedConnection},lastUsedUserID:i.idTokenPayload.sub,lastUsedUsername:i.idTokenPayload.email||i.idTokenPayload.name,lastUsedClientID:n,sessionClients:[n],sso:!0})})},wf.prototype.userInfo=function(e,t){var n;return vF.check(e,{type:"string",message:"accessToken parameter is not valid"}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),n=gO(this.baseOptions.rootUrl,"userinfo"),this.request.get(n).set("Authorization","Bearer "+e).end(br(t,{ignoreCasing:!0}))},wf.prototype.getChallenge=function(e){if(vF.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=gO(this.baseOptions.rootUrl,"usernamepassword","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(br(e,{ignoreCasing:!0}))},wf.prototype.delegation=function(e,t){var n,r;return vF.check(e,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),n=gO(this.baseOptions.rootUrl,"delegation"),r=vW(r=vq(this.baseOptions,["clientID"]).with(e),["auth0Client"]),this.request.post(n).send(r).end(br(t))},wf.prototype.getUserCountry=function(e){var t;return vF.check(e,{type:"function",message:"cb parameter is not valid"}),t=gO(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(t).end(br(e))},wf.prototype.customTokenExchange=function(e,t){return vF.check(e,{type:"object",message:"options parameter is not valid"},{subjectToken:{type:"string",message:"subjectToken option is required"},subjectTokenType:{type:"string",message:"subjectTokenType option is required"},audience:{optional:!0,type:"string",message:"audience option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},organization:{optional:!0,type:"string",message:"organization option is required"}}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),(e=vq({},[]).with(e)).grantType="urn:ietf:params:oauth:grant-type:token-exchange",this.oauthToken(e,t)},wh.prototype.getUser=function(e,t){var n;return vF.check(e,{type:"string",message:"userId parameter is not valid"}),vF.check(t,{type:"function",message:"cb parameter is not valid"}),n=gO(this.baseOptions.rootUrl,"users",e),this.request.get(n).end(br(t,{ignoreCasing:!0}))},wh.prototype.patchUserMetadata=function(e,t,n){var r;return vF.check(e,{type:"string",message:"userId parameter is not valid"}),vF.check(t,{type:"object",message:"userMetadata parameter is not valid"}),vF.check(n,{type:"function",message:"cb parameter is not valid"}),r=gO(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send({user_metadata:t}).end(br(n,{ignoreCasing:!0}))},wh.prototype.patchUserAttributes=function(e,t,n){var r;return vF.check(e,{type:"string",message:"userId parameter is not val
60id"}),vF.check(t,{type:"object",message:"user parameter is not valid"}),vF.check(n,{type:"function",message:"cb parameter is not valid"}),r=gO(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send(t).end(br(n,{ignoreCasing:!0}))},wh.prototype.linkUser=function(e,t,n){var r;return vF.check(e,{type:"string",message:"userId parameter is not valid"}),vF.check(t,{type:"string",message:"secondaryUserToken parameter is not valid"}),vF.check(n,{type:"function",message:"cb parameter is not valid"}),r=gO(this.baseOptions.rootUrl,"users",e,"identities"),this.request.post(r).send({link_with:t}).end(br(n,{ignoreCasing:!0}))};let wm=new URL("/services/auth0/sign-in-callback",window.location.origin).href;function wg(){window.location.reload()}function wy(){window.location.href="/"}function wv(e){e?window.location.replace(dv):window.location.href=dv}function wb(e,t){return{source:t,flags:e??{}}}function ww(e="load"){window.dispatchEvent(new window.CustomEvent("stmx:show_blocking_shield",{detail:{mode:e}}))}function wx(){window.dispatchEvent(new window.CustomEvent("stmx:hide_blocking_shield"))}let w_=null,wk=null,wS=null,wE=!1;function wO(e,t,n,r){ww(e),wE=!0,w_=t,wk=n,wS=r,wC()}function wj(e){wx(),null!==wk&&wk(e),wI()}function wT(){null!==wS&&function(e=!1){window.dispatchEvent(new window.CustomEvent("stmx:darken_blocking_shield",{detail:{showCancel:e}}))}(!0)}function wC(){null!==w_&&window.fetch(w_.url,w_).then(e=>{if(!e.ok)throw e;return e.json()}).then(wj).catch(wT)}function wI(){w_=null,wk=null,wS=null,wE=!1}let wP="(remix)",wA=!1,wR=!1;function wN(){let e,{readOnly:t}=hy.getState().app;if(t)return;wA=!1,wq()?A$(wV().userId):A$(null);let n=hy.getState().street;hy.dispatch(c0(n.id)),hy.dispatch(c1(0)),e=!!function(){let{stack:e,position:t}=hy.getState().history;if(null===t)return!1;let n=e[t];return!!n&&Object.prototype.hasOwnProperty.call(n,"name")}(),wR||e||wD(),wO("remix",{url:"/api/v1/streets",method:"POST",body:JSON.stringify(PK()),credentials:"include",headers:{"Content-Type":"application/json"}},wM)}function wM(e){wR||(wq()?hy.dispatch(dz({message:po("toast.remixing","Now editing a freshly-made duplicate of the original street. The duplicate has been put in your gallery.")})):hy.dispatch(dz({message:po("toast.remixing-sign-in","Now editing a freshly-made duplicate of the original street. Sign in to start your own gallery of streets."),component:"TOAST_SIGN_IN",duration:12e3}))),PZ(e.id,e.namespacedId),PW(!1)}function wD(){let e=hy.getState().street;if(e.name&&!e.name.endsWith(wP)){let t=`${e.name} ${wP}`;hy.dispatch(cG(t,!1))}}function wL(e,t,{signal:n,edges:r}={}){let i,o=null,a=null!=r&&r.includes("leading"),s=null==r||r.includes("trailing"),l=()=>{null!==o&&(e.apply(i,o),i=void 0,o=null)},u=null,c=()=>{null!=u&&clearTimeout(u),u=setTimeout(()=>{u=null,s&&l(),d()},t)},d=()=>{null!==u&&(clearTimeout(u),u=null),i=void 0,o=null},f=function(...e){if(n?.aborted)return;i=this,o=e;let t=null==u;c(),a&&t&&l()};return f.schedule=c,f.cancel=d,f.flush=()=>{l()},n?.addEventListener("abort",d,{once:!0}),f}let wz="settings";function wF(e){try{window.localStorage.setItem(wz,JSON.stringify(e))}catch(e){}!function(e){if(!wq()||hy.getState().errors.abortEverything)return;let t=wV()?.userId;void 0!==t&&ur(t,{data:e})}(e)}let wB="user_id",wU="login_token",w$="refresh_token",wH="sign-in";function wW(){hy.dispatch(uW("SIGN_IN"))}function wV(){return hy.getState().user.signInData}function wq(){return hy.getState().user.signedIn}function wK(){hy.dispatch(d7()),window.localStorage.removeItem(wH),wY()}function wZ(){wq()&&!window.localStorage[wH]?(gm(9),gg()):!wq()&&window.localStorage[wH]&&(gm(8),gg())}function wG(){let e=wV();e?window.localStorage.setItem(wH,JSON.stringify(e)):window.localStorage.removeItem(wH)}function wY(){h_.remove(wU),h_.remove(w$),h_.remove(wB)}async function wX(){let e=h_.get(wU),t=h_.get(w$),n=h_.get(wB);if(e&&n&&t)hy.dispatch(d9({token:e,refreshToken:t,userId:n,details:null})),wG();else if(window.localStorage[wH])return wK(),gm(19),gg(),!0;let r=wV();try{r?.token&&hS(r.token)}catch(e){var i;return r?.token&&(i=`Error parsing jwt token: ${r.token}`,tW().captureMessage(i,void 0,{captureContext:void 0})),wK(),gm(19),gg(),!0}let o=wb(JSON.parse(window.localStorage.getItem("flags")),"session"),a=[];if(r&&r.token&&r.userId){let e=hS(r.token),t=new Date,n=new Date(1e3*e.exp);n.setDate(n.getDate()-1),t>=n&&await wJ(r.refreshToken),a=await wQ(r.userId)}else hy.dispatch(d7());return!function(e,...t){let n=JSON.parse(JSON.stringify(e)),r=t.reduce((e,t)=>
60{let{source:n,flags:r}=t;for(let[t,i]of Object.entries(r)){let r=e[t];void 0!==r&&(r.value=i,r.source=n)}return e},n);hy.dispatch(u0(r))}(hy.getState().flags,...a,o),function(){let e={},t=wV();wq()&&t?.details&&(e=t.details.data);let n={};try{n=JSON.parse(window.localStorage.getItem(wz))??{}}catch(e){console.error(e)}let r=Object.assign({},n,e);2===r.units&&(r.units=0),4===p&&(r.lastStreetId=n.lastStreetId,r.lastStreetNamespacedId=n.lastStreetNamespacedId,r.lastStreetCreatorId=n.lastStreetCreatorId),hy.dispatch(uS({priorLastStreetId:r.lastStreetId})),hy.dispatch(dI(r));let i=hy.getState().street,o=p,a=h_.get("last_survey_url");if(a&&(h_.remove("last_survey_url"),4===o&&(window.location=a)),1===o||4===o||10===o||20===o||11===o){let e=hy.getState().settings;e.lastStreetId?(hy.dispatch(cJ({creatorId:e.lastStreetCreatorId,id:e.lastStreetId,namespacedId:e.lastStreetNamespacedId})),4!==o||i.creatorId||(wR=!0),20===o&&(hy.dispatch(dz({message:po("error.survey-finished","Survey complete. Congratulations and thank you!"),duration:1/0})),gm(1)),4===o&&gm(1)):hy.getState().flags.COASTMIX_MODE.value?gm(2,{type:"coastal_road"}):gm(2)}switch(o=p){case 5:case 1:case 10:case 11:PH();break;case 3:PB();break;case 2:PB(gp.type)}}(),!0}async function wJ(e){let t=JSON.stringify({token:e});try{let e=await window.fetch("/services/auth0/refresh-login-token",{method:"post",headers:{"Content-Type":"application/json"},body:t});if(!e.ok)throw e}catch(e){!function(e){if(401===e.status){w0(!0),pm(20,!0);return}503===e.status?pm(19,!0):hy.dispatch(d7())}(e)}}async function wQ(e){try{var t;let n=await un(e);if(200!==n.status)throw n;let{flags:r,roles:i=[]}=n.data,o=[...i.map(e=>wb(ei(d5)[e].flags,`role:${e}`)),wb(r,"user")];return t=n.data,hy.dispatch(ft(t)),wG(),o}catch(e){!function(e){if(401===e.status){w0(!0),hy.dispatch(dz({message:po("error.auth-expired","We automatically signed you out due to inactivity. Please sign in again."),component:"TOAST_SIGN_IN",duration:1/0}));return}503===e.status?pm(19,!0):hy.dispatch(d7())}(e)}return[]}async function w0(e=!1){hy.dispatch(dI({lastStreetId:null,lastStreetNamespacedId:null,lastStreetCreatorId:null}));try{let t=wV();if(!t)throw Error("Attempted sign out but user data already cleared");await ua(t.userId),e||(gm(7),gg())}catch(e){console.error(e),gm(7),gg()}wY(),window.localStorage.removeItem(wH)}var w1=Symbol("NOT_RESOLVED");function w2(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function w3(e,t){let n=void 0===t.finalize;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function w4(e,t){let n=void 0===t.finalize;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}var w5=w2("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>"string"==typeof e}),w6=["","~","null","Null","NULL"],w8=w2("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>-1!==w6.indexOf(e)?null:w1,identify:e=>null===e,represent:()=>"null"}),w9=w2("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>"null"===e||t&&""===e?null:w1,identify:e=>null===e,represent:()=>"null"}),w7=["","~","null","Null","NULL"],xe=w2("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>-1!==w7.indexOf(e)?null:w1,identify:e=>null===e,represent:()=>"null"}),xt=["true","True","TRUE"],xn=["false","False","FALSE"],xr=w2("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>-1!==xt.indexOf(e)||-1===xn.indexOf(e)&&w1,identify:e=>"[object Boolean]"===Object.prototype.toString.call(e),represent:e=>e?"true":"false"}),xi=["true"],xo=["false"],xa=w2("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>-1!==xi.indexOf(e)||-1===xo.indexOf(e)&&w1,identify:e=>"[object Boolean]"===Object.prototype.toString.call(e),represent:e=>e?"true":"false"}),xs=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],xl=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],xu=w2("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>-1!==xs.indexOf(e)||-1===xl.indexOf(e)&&w1,identify:e=>"[object Boolean]"===Object.prototype.toString.call(e),represent:e=>e?"true":"false"}),xc=RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),xd=RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),xf=w2("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:function(e,t){let n,r;if(t){if(!xd.test(e))return w1}else if(!xc.test(e))return w1;let i=(r=1,(("-"===(n=e)[0]||"+"===n[0])&&("-"===n[0]&&(r=-1),n=n.slice(1)),n.startsWith("0b"))?r*parseInt(n.slice(2),2):n.startsWith("0o")?r*parseInt(n.slice(2),8):n.startsWith("0x")?r*parseInt(n.slice(2),16):r*parseInt(n,10));return Number.isFinite(i)?i:w1},identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&0>e.toString(10).indexOf("e"),represent:e=>e.toString(10)}),xh=RegExp("^-?(?:0|[1-9][0-9]*)$"),xp=RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),xm=w2("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:function(e,t){let n,r;if(t){if(!xp.test(e))return w1}else if(!xh.test(e))return w1;let i=(r=1,(("-"===(n=e)[0]||"+"===n[0])&&("-"===n[0]&&(r=-1),n=n.slice(1)),n.startsWith("0b"))?r*parseInt(n.slice(2),2):n.startsWith("0o")?r*parseInt(n.slice(2),8):n.startsWith("0x")?r*parseInt(n.slice(2),16):r*parseInt(n,10));return Number.isFinite(i)?i:w1},identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&0>e.toString(10).indexOf("e"),represent:e=>e.toString(10)}),xg=RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$"),xy=w2("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:function(e){if(!xg.test(e))return w1;let t=function(e){let t=e.replace(/_/g,""),n=1;if(("-"===t[0]||"+"===t[0])&&("-"===t[0]&&(n=-1),t=t.slice(1)),t.startsWith("0b"))return n*parseInt(t.slice(2),2);if(t.startsWith("0x"))return n*parseInt(t.slice(2),16);if(t.includes(":")){let e=0;for(let n of t.split(":"))e=60*e+Number(n);return n*e}return"0"!==t&&"0"===t[0]?n*parseInt(t,8):n*parseInt(t,10)}(e);return Number.isFinite(t)?t:w1},identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&0>e.toString(10).indexOf("e"),represent:e=>e.toString(10)}),xv=RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),xb=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),xw=w2("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:function(e){if(!xv.test(e))return w1;let t=e.toLowerCase(),n="-"===t[0]?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),".inf"===t)return 1===n?1/0:-1/0;
60if(".nan"===t)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||xb.test(e)?r:w1},identify:e=>"number"==typeof e&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:function(e){if(isNaN(e))return".nan";if(e===1/0)return".inf";if(e===-1/0)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}}),xx=RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),x_=RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),xk=w2("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:function(e,t){if(t){if(!x_.test(e))return w1;let t=e.toLowerCase(),n="-"===t[0]?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),".inf"===t)return 1===n?1/0:-1/0;if(".nan"===t)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:w1}if(!xx.test(e))return w1;let n=Number(e);return Number.isFinite(n)?n:w1},identify:e=>"number"==typeof e&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:function(e){if(isNaN(e))return".nan";if(e===1/0)return".inf";if(e===-1/0)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}}),xS=RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),xE=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),xO=w2("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:function(e){if(!xS.test(e))return w1;let t=e.toLowerCase().replace(/_/g,""),n="-"===t[0]?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),".inf"===t)return 1===n?1/0:-1/0;if(".nan"===t)return NaN;let r=0;if(t.includes(":")){for(let e of t.split(":"))r=60*r+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||xE.test(e)?r:w1},identify:e=>"number"==typeof e&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:function(e){if(isNaN(e))return".nan";if(e===1/0)return".inf";if(e===-1/0)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}}),xj=w2("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>"<<"===e||t&&""===e?"<<":w1,identify:()=>!1}),xT=/^[A-Za-z0-9+/]*={0,2}$/,xC=w2("tag:yaml.org,2002:binary",{resolve:function(e){let t=e.replace(/\s/g,"");if(t.length%4!=0||!xT.test(t))return w1;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r},identify:e=>"[object Uint8Array]"===Object.prototype.toString.call(e),represent:function(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}}),xI=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),xP=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function xA(e,t,n,r=0,i=0,o=0,a=0){let s=new Date(Date.UTC(e,t,n,r,i,o,a));return s.setUTCFullYear(e,t,n),s}var xR=w2("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:function(e){let t=xI.exec(e);if(null===t&&(t=xP.exec(e)),null===t)return w1;let n=+t[1],r=t[2]-1,i=+t[3];if(!t[4]){let e=xA(n,r,i);return e.getUTCFullYear()!==n||e.getUTCMonth()!==r||e.getUTCDate()!==i?w1:e}let o=+t[4],a=+t[5],s=+t[6],l=0;if(o>23||a>59||s>59)return w1;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+="0";l=+e}let u=xA(n,r,i,o,a,s,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==r||u.getUTCDate()!==i)return w1;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return w1;let r=(60*e+n)*6e4;u.setTime(u.getTime()-("-"===t[9]?-r:r))}return u},identify:e=>e instanceof Date,represent:e=>e.toISOString()}),xN=w3("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function xM(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function xD(e,t){let n={};for(let r of t)void 0!==e[r]&&(n[r]=e[r]);return n}var xL=w3("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>
60{let n;if(t instanceof Map){if(1!==t.size)return"cannot resolve an ordered map item";n=t.keys().next().value}else{if(!xM(t))return"cannot resolve an ordered map item";let e=Object.keys(t);if(1!==e.length)return"cannot resolve an ordered map item";n=e[0]}return e.seen.has(n)?"duplicate key in ordered map":(e.seen.add(n),e.list.push(t),"")},finalize:e=>e.list,identify:()=>!1}),xz=w3("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return 1!==t.size?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if("[object Object]"!==Object.prototype.toString.call(t))return"cannot resolve a pairs item";let n=Object.keys(t);return 1!==n.length?"cannot resolve a pairs item":(e.push([n[0],t[n[0]]]),"")},identify:()=>!1}),xF=w4("tag:yaml.org,2002:map",{create:()=>({}),identify:xM,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(null!==t&&"object"==typeof t)return"object-based map does not support complex keys";let r=String(t);return"__proto__"===r?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,""},has:(e,t)=>(null===t||"object"!=typeof t)&&Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),xB=w4("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>null!==n?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null}),xU=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){const t=function(e){let t=[];for(let n of e){let e=t.length;for(let r=0;r<t.length;r++){let i=t[r];if(i.nodeKind===n.nodeKind&&i.tagName===n.tagName&&i.matchByTagPrefix===n.matchByTagPrefix){e=r;break}}t[e]=n}return t}(e),n=[],r={scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)},i={scalar:[],sequence:[],mapping:[]};for(const e of t){if("scalar"===e.nodeKind&&e.implicit){if(e.matchByTagPrefix)throw Error("Implicit scalar tags cannot match by tag prefix");n.push(e)}switch(e.nodeKind){case"scalar":e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case"sequence":e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case"mapping":e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}const o=n.filter(e=>null===e.implicitFirstChars),a=new Set;for(const e of n)if(null!==e.implicitFirstChars)for(const t of e.implicitFirstChars)a.add(t);const s=new Map;for(const e of a)s.set(e,n.filter(t=>null===t.implicitFirstChars||-1!==t.implicitFirstChars.indexOf(e)));const l=r.scalar["tag:yaml.org,2002:str"];if(!l)throw Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=o,this.defaultScalarTag=l,this.defaultSequenceTag=r.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=r.mapping["tag:yaml.org,2002:map"],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){for(let t of this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar){let n=t.resolve(e,!1,t.tagName);if(n!==w1)return{value:n,tag:t}}let t=this.defaultScalarTag;return{value:t.resolve(e,!1,t.tagName),tag:t}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},x$=new xU([w5,xN,xF]),xH=new xU([...x$.tags,w9,xa,xm,xk]),xW=new xU([...x$.tags,w8,xr,xf,xw]),xV=new xU([...x$.tags,xe,xu,xy,xO,xR,xj,xC,xL,xz,xB]).withTags({...xy,resolve:(e,t,n
60)=>{let r=xy.resolve(e,t,n);return r===w1?xf.resolve(e,t,n):r}},{...xO,resolve:(e,t,n)=>{let r=xO.resolve(e,t,n);return r===w1?xw.resolve(e,t,n):r}});function xq(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let e=0;e<t.length;e++){if(Array.isArray(t[e]))return null;"object"==typeof t[e]&&"[object Object]"===Object.prototype.toString.call(t[e])&&(t[e]="[object Object]")}return String(t)}return"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)?"[object Object]":String(e)}w4("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||xM(e),represent:e=>{if(e instanceof Map)return e;let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t}}),w4("tag:yaml.org,2002:map",{create:()=>({}),identify:xM,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=xq(t);return null===r?"nested arrays are not supported inside keys":("__proto__"===r?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,"")},has:(e,t)=>{let n=xq(t);return null!==n&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var xK={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function xZ(e,t,n,r,i){let o="",a="",s=Math.floor(i/2)-1;return r-t>s&&(t=r-s+(o=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function xG(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function xY(e,t){let n="";return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`
61
62${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var xX=class e extends Error{reason;mark;constructor(e,t){super(),this.name="YAMLException",this.reason=e,this.mark=t,this.message=xY(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${xY(this,e)}`}static throwAt(t,n,r,i=""){let o=0,a=0;for(let e=0;e<n;e++){let n=t.charCodeAt(e);10===n?(o++,a=e+1):13===n&&(o++,10===t.charCodeAt(e+1)&&e++,a=e+1)}let s={name:i,buffer:t,position:n,line:o,column:n-a};throw s.snippet=function(e){let t;if(!e.buffer)return null;let n={...xK,...void 0},r=/\r?\n|\r|\0/g,i=[0],o=[],a=-1;for(;t=r.exec(e.buffer);)o.push(t.index),i.push(t.index+t[0].length),e.position<=t.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);let s="",l=Math.min(e.line+n.linesAfter,o.length).toString().length,u=n.maxLength-(n.indent+l+3);for(let t=1;t<=n.linesBefore&&!(a-t<0);t++){let r=xZ(e.buffer,i[a-t],o[a-t],e.position-(i[a]-i[a-t]),u);s=`${" ".repeat(n.indent)}${xG((e.line-t+1).toString(),l)} | ${r.str}
63${s}`}let c=xZ(e.buffer,i[a],o[a],e.position,u);s+=`${" ".repeat(n.indent)}${xG((e.line+1).toString(),l)} | ${c.str}
64${"-".repeat(n.indent+l+3+c.pos)}^
65`;for(let t=1;t<=n.linesAfter&&!(a+t>=o.length);t++){let r=xZ(e.buffer,i[a+t],o[a+t],e.position-(i[a]-i[a+t]),u);s+=`${" ".repeat(n.indent)}${xG((e.line+t+1).toString(),l)} | ${r.str}
66`}return s.replace(/\n$/,"")}(s),new e(r,s)}};function xJ(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return"	";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1b";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var xQ=Array(256),x0=Array(256);for(let e=0;e<256;e++)xQ[e]=+!!xJ(e),x0[e]=xJ(e);function x1(e,t,n){let r=0;for(;t<n;){let n=e.charCodeAt(t);if(10===n)r++,t++;else if(13===n)r++,t++,10===e.charCodeAt(t)&&t++;else if(32===n||9===n)t++;else break}return{position:t,breaks:r}}function x2(e){return 1===e?" ":"\n".repeat(e-1)}function x3(e,t,n,r,i,o){let a=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,"\n"),l=""===s?[]:(s.endsWith("\n")?s.slice(0,-1):s).split("\n"),u="",c=!1,d=0,f=!1;for(let e of l){let t=0;for(;t<a&&32===e.charCodeAt(t);)t++;if(r<0||t>=e.length){d++;continue}let n=e.slice(a),i=n.charCodeAt(0);o?32===i||9===i?(f=!0,u+="\n".repeat(c?1+d:d)):f?(f=!1,u+="\n".repeat(d+1)):0===d?c&&(u+=" "):u+="\n".repeat(d):u+="\n".repeat(c?1+d:d),u+=n,c=!0,d=0}
66return 3===i?u+="\n".repeat(c?1+d:d):2!==i&&c&&(u+="\n"),u}var x4=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function x5(e,t){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));let n=e.indexOf("!",1),r=-1===n?"!":e.slice(0,n+1);return decodeURIComponent(t?.[r]??x4[r]??r)+decodeURIComponent(e.slice(r.length))}var x6={filename:"",schema:xW,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function x8(e,t){xX.throwAt(e.source,e.position,t,e.filename)}function x9(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof xX)throw n;xX.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function x7(e,t,n){let r=-1===t.tagStart?"":e.source.slice(t.tagStart,t.tagEnd);return""===r||"!"===r?n:x5(r,e.tagHandlers)}function _e(e){return"mapping"===e.nodeKind}function _t(e){e.totalMergeKeys++,-1!==e.maxTotalMergeKeys&&e.totalMergeKeys>e.maxTotalMergeKeys&&x8(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function _n(e,t,n,r){for(let i of(_t(e),r.keys(n))){if(_t(e),t.tag.has(t.value,i))continue;let o=t.tag.addPair(t.value,i,r.get(n,i));o&&x8(e,o),t.overridable??=new Set,t.overridable.add(i)}}function _r(e,t,n){let r=e.frames[e.frames.length-1];if("document"===r.kind)r.value=t,r.hasValue=!0;else if("sequence"===r.kind){_e(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&x8(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,function(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){var o=e,a=t,s=r,l=i;if(o.position=a.keyPosition,_e(l))_n(o,a,s,l);else if("sequence"===l.nodeKind&&Array.isArray(s))for(let e of(s.length>100&&x8(o,"abnormal merge sequence size"),s)){let t=o.nodeTags.get(e);t||x8(o,"cannot merge mappings; the provided source object is unacceptable"),_n(o,a,e,t)}else x8(o,"cannot merge mappings; the provided source object is unacceptable");return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&x8(e,"duplicated mapping key");let u=t.tag.addPair(t.value,n,r);u&&x8(e,u),t.overridable?.delete(n)}(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge="tag:yaml.org,2002:merge"===n.tagName}function _i(e,t,n,r,i){if(-1!==t.anchorStart){let o={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),o),o}return null}var _o=Object.prototype.hasOwnProperty,_a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_s=/[,\[\]{}]/,_l=/^(?:!|!!|![0-9A-Za-z-]+!)$/,_u=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,_c=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,_d=RegExp(`^(?:${_u})*$`),_f=RegExp(`^(?:${_c})+$`),_h=RegExp(`^(?:!(?:${_u})*|${_c}(?:${_u})*)$`),_p={filename:"",maxDepth:100};function _m(e,t,n,r,i,o,a){e.events.push({type:2,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:o,style:a})}function _g(e,t,n,r,i,o,a){e.events.push({type:3,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:o,style:a})}function _y(e,t){e.events.splice(t.eventsLength,0,{type:3,start:t.position,anchorStart:-1,anchorEnd:-1,tagStart:-1,tagEnd:-1,style:2})}function _v(e,t,n,r,i,o,a,s,l=1,u=-1,c=!1){e.events.push({type:4,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:o,tagEnd:a,style:s,chomping:l,indent:u,fast:c})}function _b(e){e.events.push({type:6})}function _w(e){_v(e,-1,-1,-1,-1,-1,-1,1)}function _x(){return{anchorStart:-1,anchorEnd:-1,tagStart:-1,tagEnd:-1}}function __(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function _k(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function _S(e,t){xX.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function _E(e){return 10===e||13===e}function _O(e){return 9===e||32===e}function _j(e){return _O(e)||_E(e)}function _T(e){return 0===e||_j(e)}function _C(e){return 44===e||91===e||93===e||123===e||125===e}function _I(e){10===e.input.charCodeAt(e.position)?e.position++:(e.position++,10===e.input.charCodeAt(e.position)&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}
66function _P(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||_j(e.input.charCodeAt(e.position-1));for(;0!==r;){for(;_O(r);)i=!0,9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&35===r)do r=e.input.charCodeAt(++e.position);while(!_E(r)&&0!==r)if(!_E(r))break;for(_I(e),n++,i=!0,r=e.input.charCodeAt(e.position);32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function _A(e,t=e.position){let n=e.input.charCodeAt(t);if((45===n||46===n)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return 0===n||_j(n)}return!1}function _R(e){e.position===e.lineStart&&65279===e.input.charCodeAt(e.position)&&(e.position++,e.lineStart=e.position)}function _N(e){if(e.position!==e.lineStart)return!1;if(_A(e))return!0;if(65279!==e.input.charCodeAt(e.position))return!1;let t=__(e);_R(e),_P(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(37===n||45===n&&_A(e));return _k(e,t),r}function _M(e){let t=e.input.charCodeAt(e.position);for(;0!==t&&!_E(t);)t=e.input.charCodeAt(++e.position)}function _D(e,t,n){_a.test(e.input.slice(t,n))&&_S(e,"the stream contains non-printable characters")}function _L(e,t){_P(e,!1),e.lineIndent<t&&_S(e,"deficient indentation")}function _z(e,t){let n=e.line;_P(e,!0),(e.line>n&&e.lineIndent<t||-1!==e.firstTabInLine&&e.lineIndent<t)&&_S(e,"deficient indentation")}function _F(e,t,n){if(-1!==e.firstTabInLine||45!==e.input.charCodeAt(e.position)||!_T(e.input.charCodeAt(e.position+1)))return!1;for(_m(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1);45===e.input.charCodeAt(e.position)&&_T(e.input.charCodeAt(e.position+1));){-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,_S(e,"tab characters must not be used in indentation"));let n=e.line;e.position++;let r=_P(e,!0)>0;if(-1!==e.firstTabInLine&&45===e.input.charCodeAt(e.position)&&_T(e.input.charCodeAt(e.position+1))&&_S(e,"bad indentation of a sequence entry"),r&&e.lineIndent<=t?_w(e):_U(e,t,3,!1,!0),_P(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&_S(e,"bad indentation of a sequence entry"),e.line===n&&45===e.input.charCodeAt(e.position)&&_T(e.input.charCodeAt(e.position+1))&&_S(e,"bad indentation of a sequence entry")}return _b(e),!0}function _B(e,t,n,r){let i=!1,o=!1,a=!1,s=!1;if(-1!==e.firstTabInLine)return!1;let l=e.input.charCodeAt(e.position);for(;0!==l;){i||-1===e.firstTabInLine||(e.position=e.firstTabInLine,_S(e,"tab characters must not be used in indentation"));let u=e.input.charCodeAt(e.position+1),c=e.line;if((63===l||58===l)&&_T(u))a||(_g(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1),a=!0),63===l?(i&&_w(e),o=!0,i=!0):(i||(_w(e),o=!0),i=!1),e.position+=1,s=!0;else{i&&(_w(e),i=!1);let t=__(e);if(!_U(e,n,2,!1,!0))break;if(e.line===c){for(l=e.input.charCodeAt(e.position);_O(l);)l=e.input.charCodeAt(++e.position);if(58===l){if(_T(l=e.input.charCodeAt(++e.position))||_S(e,"a whitespace character is expected after the key-value separator within a block mapping"),!a){for(_k(e,t),_g(e,t.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1),a=!0,_U(e,n,2,!1,!0),l=e.input.charCodeAt(e.position);_O(l);)l=e.input.charCodeAt(++e.position);e.position++}o=!0,i=!1,s=!1}else if(o)_S(e,"expected ':' after a mapping key");else{if(-1!==r.anchorStart||-1!==r.tagStart)return _k(e,t),!1;return!0}}else if(o)_S(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else{if(-1!==r.anchorStart||-1!==r.tagStart)return _k(e,t),!1;return!0}}if(_U(e,t,4,!0,s)&&(s=!1),!i&&s&&(_w(e),s=!1),_P(e,!0),l=e.input.charCodeAt(e.position),(e.line===c||e.lineIndent>t)&&0!==l)_S(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return!!o&&(i&&_w(e),a&&_b(e),!0)}function _U(e,t,n,r,i,o=!0){e.depth>=e.maxDepth&&_S(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let a=1,s=!1,l=!1,u=null,c=_x(),d=4===n||3===n,f=d,h=d;if(r&&_P(e,!0)&&(s=!0,a=e.lineIndent>t?1:e.lineIndent===t?0:-1),1===a)for(;;){let r=e.input.charCodeAt(e.position),i=__(e);if(s&&1!==a&&(33===r||38===r))break;
66if(s&&h&&(-1!==c.tagStart||-1!==c.anchorStart)&&(33===r||38===r)){let n=__(e),r=t+1;if(_B(e,e.position-e.lineStart,r,c)&&e.events[n.eventsLength]?.type===3)return e.depth--,!0;_k(e,n)}if(s&&(33===r&&-1!==c.tagStart||38===r&&-1!==c.anchorStart)||!function(e,t,n){let r;if(33!==e.input.charCodeAt(e.position))return!1;-1!==t.tagStart&&_S(e,"duplication of a tag property");let i=e.position,o=!1,a=!1,s="!",l=e.input.charCodeAt(++e.position);60===l?(o=!0,l=e.input.charCodeAt(++e.position)):33===l&&(a=!0,s="!!",l=e.input.charCodeAt(++e.position));let u=e.position;if(o){for(;0!==l&&62!==l;)l=e.input.charCodeAt(++e.position);62!==l&&_S(e,"unexpected end of the stream within a verbatim tag"),r=e.input.slice(u,e.position),e.position++}else{for(;0!==l&&!_j(l)&&!(n&&_C(l));)33===l&&(a?_S(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(u-1,e.position+1),_l.test(s)||_S(e,"named tag handle cannot contain such characters"),a=!0,u=e.position+1)),l=e.input.charCodeAt(++e.position);r=e.input.slice(u,e.position),_s.test(r)&&_S(e,"tag suffix cannot contain flow indicator characters")}return!r||(o?_d.test(r):_f.test(r))||_S(e,`tag name cannot contain such characters: ${r}`),o||"!"===s||"!!"===s||_o.call(e.tagHandlers,s)||_S(e,`undeclared tag handle "${s}"`),t.tagStart=i,t.tagEnd=e.position,!0}(e,c,1===n)&&!function(e,t){if(38!==e.input.charCodeAt(e.position))return!1;-1!==t.anchorStart&&_S(e,"duplication of an anchor property"),e.position++;let n=e.position;for(;0!==e.input.charCodeAt(e.position)&&!_j(e.input.charCodeAt(e.position))&&!_C(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&_S(e,"name of an anchor node must contain at least one character"),t.anchorStart=n,t.anchorEnd=e.position,!0}(e,c))break;null===u&&(u=i),_P(e,!0)?(s=!0,f=h,a=e.lineIndent>t?1:e.lineIndent===t?0:-1):f=!1}if(f&&(f=s||i),1===a||4===n){let r=1===n||2===n?t:t+1,i=e.position-e.lineStart;if(1===a)if(f&&(_F(e,i,c)||_B(e,i,r,c))||function(e,t,n){let r=e.input.charCodeAt(e.position),i=123===r,o=e.position,a=!0;if(91!==r&&123!==r)return!1;let s=i?125:93;for(i?_g(e,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2):_m(e,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2),e.position++;0!==e.input.charCodeAt(e.position);){_z(e,t);let n=e.input.charCodeAt(e.position);if(n===s)return e.position++,_b(e),!0;a?44===n&&_S(e,"expected the node content, but found ','"):_S(e,"missed comma between flow collection entries");let r=!1,o=!1;63===n&&_j(e.input.charCodeAt(e.position+1))&&(r=o=!0,e.position+=1,_z(e,t));let l=e.line,u=__(e),c=_U(e,t,1,!1,!0);_z(e,t),n=e.input.charCodeAt(e.position),(i||o||e.line===l)&&58===n?(r=!0,e.position++,_z(e,t),i||_y(e,u),c||_w(e),_U(e,t,1,!1,!0)||_w(e),_z(e,t),i||_b(e)):i&&r?(c||_w(e),_w(e)):i?_w(e):r&&(_y(e,u),c||_w(e),_w(e),_b(e)),44===(n=e.input.charCodeAt(e.position))?(a=!0,e.position++):a=!1}_S(e,"unexpected end of the stream within a flow collection")}(e,r,c))l=!0;else{let t=e.input.charCodeAt(e.position);if(null!==u&&o&&h&&!f&&124!==t&&62!==t){let t=__(e),n=u.position-u.lineStart;_k(e,u),_B(e,n,r,_x())&&e.events[t.eventsLength]?.type===3?l=!0:_k(e,t)}!l&&(d&&function(e,t,n){let r=e.input.charCodeAt(e.position),i=1,o=-1,a=!1;if(124!==r&&62!==r)return!1;for(e.position++;0!==e.input.charCodeAt(e.position);){let n=e.input.charCodeAt(e.position),r=n>=48&&n<=57?n-48:-1;if(43===n||45===n)1!==i&&_S(e,"repeat of a chomping mode identifier"),i=43===n?3:2,e.position++;else if(r>=0)0===r&&_S(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),a&&_S(e,"repeat of an indentation width identifier"),o=t+r-1,a=!0,e.position++;else break}let s=!1;for(;_O(e.input.charCodeAt(e.position));)s=!0,e.position++;s&&35===e.input.charCodeAt(e.position)&&_M(e),_E(e.input.charCodeAt(e.position))?_I(e):0!==e.input.charCodeAt(e.position)&&_S(e,"a line break is expected");let l=a?o:-1,u=0,c=e.position,d=e.position;for(;0!==e.input.charCodeAt(e.position);){let n=e.position,r=0;for(;32===e.input.charCodeAt(n+r);)r++;let i=e.input.charCodeAt(n+r);if(0===i){l>=0?r>l&&(d=n+r):r>0&&(d=n+r);break}if(_N(e))break;if(!a&&-1===l&&_E(i)&&(u=Math.max(u,r)),a||-1!==l||_E(i)||(9===i&&r<t&&(e.position=n+r,_S(e,"tab characters must not be used in indentation")),r<u&&(e.position=n+r,_S(e,"bad indentation of a mapping entry"))),-1===l&&0!==i&&!_E(i)&&r<t){e.lineIndent=r,e.position=n+r;break}a||0===i||_E(i)||-1!==l||(l=r);let o=-1===l?t+1:l;if(0!==i&&!_E(i)&&r<o){e.lineIndent=r,e.position=n+r;break}_M(e),d=e.position,_E(e.input.charCodeAt(e.position))&&(_I(e),d=e.position)}return _D(e,c,d),_v(e,c,d,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,124
66===r?4:5,i,l),!0}(e,r,c)||function(e,t,n){if(39!==e.input.charCodeAt(e.position))return!1;e.position++;let r=e.position,i=!0;for(;0!==e.input.charCodeAt(e.position);){let o=e.input.charCodeAt(e.position);if(39===o){if(39===e.input.charCodeAt(e.position+1)){i=!1,e.position+=2;continue}let t=e.position;return e.position++,_v(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2,1,-1,i),!0}_E(o)?(i=!1,_L(e,t)):e.position===e.lineStart&&_A(e)?_S(e,"unexpected end of the document within a single quoted scalar"):9!==o&&o<32?_S(e,"expected valid JSON character"):e.position++}_S(e,"unexpected end of the stream within a single quoted scalar")}(e,r,c)||function(e,t,n){if(34!==e.input.charCodeAt(e.position))return!1;e.position++;let r=e.position,i=!0;for(;0!==e.input.charCodeAt(e.position);){let o=e.input.charCodeAt(e.position);if(34===o){let t=e.position;return e.position++,_v(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,3,1,-1,i),!0}if(92===o){i=!1;let n=e.input.charCodeAt(++e.position);if(_E(n))_L(e,t);else if(48===n||97===n||98===n||116===n||9===n||110===n||118===n||102===n||114===n||101===n||32===n||34===n||47===n||92===n||78===n||95===n||76===n||80===n)e.position++;else{let t=120===n?2:117===n?4:8*(85===n);for(0===t&&_S(e,"unknown escape sequence");t-- >0;)e.position++,0>function(e){if(e>=48&&e<=57)return e-48;let t=32|e;return t>=97&&t<=102?t-97+10:-1}(e.input.charCodeAt(e.position))&&_S(e,"expected hexadecimal character");e.position++}}else _E(o)?(i=!1,_L(e,t)):e.position===e.lineStart&&_A(e)?_S(e,"unexpected end of the document within a double quoted scalar"):9!==o&&o<32?_S(e,"expected valid JSON character"):e.position++}_S(e,"unexpected end of the stream within a double quoted scalar")}(e,r,c)||function(e,t){var n;if(42!==e.input.charCodeAt(e.position))return!1;(-1!==t.anchorStart||-1!==t.tagStart)&&_S(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;0!==e.input.charCodeAt(e.position)&&!_j(e.input.charCodeAt(e.position))&&!_C(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&_S(e,"name of an alias node must contain at least one character"),n=e.position,e.events.push({type:5,anchorStart:r,anchorEnd:n}),!0}(e,c)||function(e,t,n,r){if(!function(e,t){let n=e.input.charCodeAt(e.position),r=1===t;if(0===n||_j(n)||35===n||38===n||42===n||33===n||124===n||62===n||39===n||34===n||37===n||64===n||96===n||r&&_C(n))return!1;if(63===n||45===n){let t=e.input.charCodeAt(e.position+1);if(_T(t)||r&&_C(t))return!1}return!0}(e,n))return!1;let i=e.position,o=e.position,a=e.input.charCodeAt(e.position),s=1===n,l=!1;for(;0!==a&&!_N(e);){if(58===a){let t=e.input.charCodeAt(e.position+1);if(_T(t)||s&&_C(t))break}else if(35===a){if(_j(e.input.charCodeAt(e.position-1)))break}else if(s&&_C(a))break;else if(_E(a)){let n=e.position,r=e.line,i=e.lineStart,o=e.lineIndent;if(_P(e,!1),e.lineIndent>=t){l=!0,a=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=o;break}_O(a)||(o=e.position+1),a=e.input.charCodeAt(++e.position)}return o!==i&&(_D(e,i,o),_v(e,i,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1,1,-1,!l),!0)}(e,r,n,c))&&(l=!0)}else 0===a&&(l=f&&_F(e,i,c))}return d=d&&!l,!l&&(-1!==c.anchorStart||-1!==c.tagStart||d)&&(_v(e,-1,-1,c.anchorStart,c.anchorEnd,c.tagStart,c.tagEnd,1),l=!0),e.depth--,l||-1!==c.anchorStart||-1!==c.tagStart}var _$={..._p,...x6};Symbol("INVALID"),Symbol("visit:break"),Symbol("visit:skip");var _H={applyQuoteFlowKeysOption:function(e){!e.presenterOptions.quoteFlowKeys||e.isKey&&e.flowOnly&&1===e.style&&(e.style=3)},doubleQuoteForInvisibles:function(e){1===e.style&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=3)},doubleQuoteWhitespaceOnly:function(e){1===e.style&&/^\s+$/.test(e.node.value)&&(e.style=3)},applyForceQuotesOption:function(e){!e.presenterOptions.forceQuotes||e.isKey||1!==e.style||(e.style=e.node.value.includes("\n")?3:_W(e))},tryLongOrMultilineAsBlock:function(e){if(1!==e.style||e.isKey)return;let t=e.node.value,n=-1!==t.indexOf("\n");if((16&e.allowedStylesMask)==0){n&&(e.style=3);return}let r=e.presenterOptions.lineWidth;if(-1===r){n&&(e.style=4);return}let i=Math.max(Math.min(r,40),r-e.shiftOfContent),o=0,a=!1;for(;o<=t.length;){let e=t.length,n=t.indexOf("\n",o);-1!==n&&(e=n);let r=t.slice(o,e);if(r.length>i&&" "!==r[0]&&/ [^ \t]/.test(r)&&(a=!0),-1===n)break;o=n+1}a?e.style=5:n&&(e.style=4)},quoteInvalidPlain:function(e){1===e.style&&(2&e.allowedStylesMask)==0&&(e.style=_W(e))},fallbackToDoubleQuoted:function(e){(e.allowedStylesMask&1<<e.style)==0&&(e.style=3)}};function _W(e){return"single"===e.presenterOptions.quoteStyle&&(4&e.allowedStylesMask)!=0?2:3}var _V="[ \\t]",_q="(?:(?!(?:[\\n\\r]|\\uFEFF))[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}])",_K=`(?:(?!${_V})${_q})`,_Z="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",_G="[-?:,\\[\\]{}#&*!|>'\"%@`]",_Y=`(?:(?![,\\[\\]{}])${_K})`,_X=`(?:(?:(?!${_G})${_K})|[?:-](?=${_K}))`,_J=`(?:(?:(?!${_G})${_K})|[?:-](?=${_Y}))`,_Q=`(?:(?:(?![:#])${_K})|:(?=${_K}))#*`,_0=`(?:(?:(?![:#])${_Y})|:(?=${_Y}))#*`,_1=`(?:${_V}*${_Q})*`,_2=`(?:${_V}*${_0})*`,_3=`${_X}#*${_1}`,_4=`${_J}#*${_2}`,_5=`\\n+${_Q}${_1}`,_6=`\\n+${_0}${_2}`,_8=`${_3}(?:${_5})*`,_9=`${_4}(?:${_6})*`;RegExp(`^(?:${_8})$`,"u"),RegExp(`^(?:${_9})$`,"u"),RegExp(`^(?:${_3})$`,"u"),RegExp(`^(?:${_4})$`,"u"),RegExp(`^(?:${_Z})*$`,"u"),RegExp(`^(?:${_Z}|\\n)*$`,"u"),RegExp(`^(?:${_q}|\\n)*$`,"u"),Object.keys(_H).map(e=>Reflect.get(_H,e));var _7=el("7qgcG");let ke=["US"],kt=!1,kn=["AI","AG","AU","BS","BD","BB","BM","BT","BW","BN","KY","CX","CC","CK","CY","DM","TL","FK","FJ","GD","GG","GY","HK","IN","ID","IE","IM","JM","JP","JE","KE","KI","LS","MO","MW","MY","MV","MT","MU","MS","MZ","NA","NR","NP","NZ","NU","NF","PK","PG","PN","SH","KN","LC","VC","WS","SC","SG","SB","ZA","LK","SR","SZ","TZ","TH","TK","TO","TT","TC","TV","UG","GB","VG","VI","ZM","ZW"];function kr(e){var t;let n,r;-1!==kn.indexOf(e)&&(kt=!0),hb.forceLeftHandTraffic&&(kt=!0),t=e,n=(r=hy.getState().settings.units)||+(-1!==ke.indexOf(t)),hy.dispatch(dP(n))}function ki(e){hy.getState().street.units!==e&&(hy.dispatch(c2(e)),AV())}let ko=10/3*.3048,ka=_7.union([_7.number(),_7.object({metric:_7.number(),imperial:_7.number()})]),ks=_7.object({variant:_7.string(),floors:_7.number().default(1),elevation:ka.default(.15)}),kl=_7.strictObject({width:ka,showAnalytics:_7.boolean().optional(),boundary:_7.object({left:ks,right:ks}),slices:_7.array(_7.object({type:_7.string(),variant:_7.record(_7.string(),_7.string()),width:ka,elevation:ka.optional(),label:_7.string().optional(),slope:_7.object({on:_7.boolean().optional(),values:_7.array(_7.union([_7.number(),ka]))}).optional()}))});async function ku(e){let t=await window.fetch(`/assets/data/templates/${e}.yaml`),n=function(e,t){let n=function(e,t={}){let n={..._$,...t},r=String(e),i=Object.keys(_p),o=Object.keys(x6);return function(e,t){let n={...x6,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anch
66ors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){let e=n.events[n.eventIndex++];switch(n.position="tagStart"in e&&-1!==e.tagStart?e.tagStart:"anchorStart"in e&&-1!==e.anchorStart?e.anchorStart:"valueStart"in e&&-1!==e.valueStart?e.valueStart:"start"in e?e.start:0,e.type){case 1:for(let t of(n.anchors=new Map,n.nodeTags=new Map,n.aliasCount=0,n.tagHandlers=Object.create(null),e.directives))"tag"===t.kind&&(n.tagHandlers[t.handle]=t.prefix);n.frames.push({kind:"document",position:n.position,value:void 0,hasValue:!1});break;case 4:{let{value:t,tag:r}=function(e,t){let n=function(e,t){if(-1===t.valueStart)return"";let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case 2:return function(e,t,n){let r="",i=t,o=t,a=t;for(;i<n;){let t=e.charCodeAt(i);if(39===t)r+=e.slice(o,i)+"'",i+=2,o=a=i;else if(10===t||13===t){r+=e.slice(o,a);let t=x1(e,i,n);r+=x2(t.breaks),i=o=a=t.position}else i++,32!==t&&9!==t&&(a=i)}return r+e.slice(o,n)}(e,n,r);case 3:return function(e,t,n){let r="",i=t,o=t,a=t;for(;i<n;){let t=e.charCodeAt(i);if(92===t){r+=e.slice(o,i),i++;let t=e.charCodeAt(i);if(10===t||13===t)i=x1(e,i,n).position;else if(t<256&&xQ[t])r+=x0[t],i++;else{var s,l;let n=120===t?2:117===t?4:8,o=0;for(;n>0;n--)i++,o=(o<<4)+((s=e.charCodeAt(i))>=48&&s<=57?s-48:(32|s)-97+10);r+=(l=o)<=65535?String.fromCharCode(l):String.fromCharCode((l-65536>>10)+55296,(l-65536&1023)+56320),i++}o=a=i}else if(10===t||13===t){r+=e.slice(o,a);let t=x1(e,i,n);r+=x2(t.breaks),i=o=a=t.position}else i++,32!==t&&9!==t&&(a=i)}return r+e.slice(o,n)}(e,n,r);case 4:return x3(e,n,r,t.indent,t.chomping,!1);case 5:return x3(e,n,r,t.indent,t.chomping,!0);default:return function(e,t,n){let r="",i=t,o=t,a=t;for(;i<n;){let t=e.charCodeAt(i);if(10===t||13===t){r+=e.slice(o,a);let t=x1(e,i,n);r+=x2(t.breaks),i=o=a=t.position}else i++,32!==t&&9!==t&&(a=i)}return r+e.slice(o,a)}(e,n,r)}}(e.source,t),r=-1===t.tagStart?"":e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(""!==r){if("!"===r)return{value:n,tag:i};let t=x5(r,e.tagHandlers),o=e.schema.lookupScalarTag(t);if(o){let r=o.resolve(n,!0,t);return r===w1&&x8(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:o}}let a=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(a){""!==n&&x8(e,`cannot resolve a node with !<${t}> explicit tag`);let r=a.create(t);return{value:a.carrierIsResult?r:x9(e,e.position,a,r),tag:a}}x8(e,`unknown scalar tag !<${t}>`)}return 1===t.style?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}(n,e);_i(n,e,t,r,!0),_r(n,t,r);break}case 2:{let t=x7(n,e,"tag:yaml.org,2002:seq"),r=n.schema.lookupSequenceTag(t);r||x8(n,`unknown sequence tag !<${t}>`);let i=r.create(t),o=_i(n,e,i,r,r.carrierIsResult);n.frames.push({kind:"sequence",position:n.position,value:i,tag:r,anchor:o,index:0});break}case 3:{let t=x7(n,e,"tag:yaml.org,2002:map"),r=n.schema.lookupMappingTag(t);r||x8(n,`unknown mapping tag !<${t}>`);let i=r.create(t),o=_i(n,e,i,r,r.carrierIsResult);n.frames.push({kind:"mapping",position:n.position,value:i,tag:r,anchor:o,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case 5:{-1!==n.maxAliases&&++n.aliasCount>n.maxAliases&&x8(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||x8(n,`unidentified alias "${t}"`),r.isValueFinal||x8(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),_r(n,r.value,r.tag);break}case 6:{let e=n.frames.pop();if("mapping"===e.kind&&e.hasKey&&(n.position=e.keyPosition,x8(n,"incomplete mapping pair in event stream")),"document"===e.kind)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:x9(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),_r(n,t,e.tag)}}}}return n.documents}(function(e,t){let n=e.length,r={..._p,...t,input:`${e}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf("\0");for(-1!==i&&xX.throwAt(e,i,"null byte is not allowed in input",r.filename);r.position<r.length&&(_R(r),_P(r,!0),!(r.position>=r.length));){let e=r.position;!function(e){var t;e.directives=[],e.tagHandlers=Object.create(null);let n=!1;for(_P(e,!0);function(e){if(e.lineIndent>0||37!==e.input.charCodeAt(e.position))return!1;e.position++;let t=e.position;for(;0!==e.input.charCodeAt(e.position)&&!_j(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(0===n.length&&_S(e,"directive name must not be less than one character in length");0!==e.input.charCodeAt(e.position)&&!_E(e.input.charCodeAt(e.position));){for(;_O(e.input.charCodeAt(e.position));)e.position++;if(35===e.input.charCodeAt(e.position)||_E(e.input.charCodeAt(e.position))||0===e.input.charCodeAt(e.position))break;let t=e.position;for(;0!==e.input.charCodeAt(e.position)&&!_j(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(_E(e.input.charCodeAt(e.position))&&_I(e),"YAML"===n){e.directives.some(e=>"yaml"===e.kind)&&_S(e,"duplication of %YAML directive"),1!==r.length&&_S(e,"YAML directive accepts exactly one argument");let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===t&&_S(e,"ill-formed argument of the YAML directive"),1!==parseInt(t[1],10)&&_S(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:r[0]})}else if("TAG"===n){2!==r.length&&_S(e,"TAG directive accepts exactly two arguments");let[t,n]=r;_l.test(t)||_S(e,"ill-formed tag handle (first argument) of the TAG directive"),_o.call(e.tagHandlers,t)&&_S(e,`there is a previously declared suffix for "${t}" tag handle`),_h.test(n)||_S(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[t]=n,e.directives.push({kind:"tag",handle:t,prefix:n})}return!0}(e);)n=!0,_P(e,!0);let r=!1,i=!1,o=!0;if(0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)&&_T(e.input.charCodeAt(e.position+3))){r=!0;let t=e.line;e.position+=3,_P(e,!0),o=e.line>t}else n&&_S(e,"directives end mark is expected");let a=e.events.length;if(!r&&e.position===e.lineStart&&46===e.input.charCodeAt(e.position)&&_A(e)){e.position+=3,_P(e,!0);return}if(t=r,e.events.push({type:1,explicitStart:t,explicitEnd:!1,directives:e.directives}),_U(e,e.lineIndent-1,4,!1,o,o)||_w(e),_P(e,!0),e.position===e.lineStart&&_A(e)&&(i=46===e.input.charCodeAt(e.position))){let t=e.line;e.position+=3,_P(e,!0),e.line===t&&e.position<e.length&&_S(e,"end of the stream or a document separator is expected")}let s=e.events[a];s?.type===1&&(s.explicitEnd=i),_b(e),i||!(e.position<e.length)||_N(e)||_S(e,"end of the stream or a document separator is expected")}(r),r.position===e&&_S(r,"can not read a document")}return r.events}(r,xD(n,i)),{...xD(n,o),source:r})}(e,t);if(0===n.length)throw new xX("expected a document, but the input is empty");if(1===n.length)return n[0];throw new xX("expected a single document in the stream, but found more")}(await t.text(),{schema:xH});return kl.parse(n)}async function kc(e,t){let n=t??hy.getState().settings.units,r=function(e,t){var n;let r,i,o,a=new Date().toISOString(),s=function(e,t){let n=[],r=kt;for(let i in e){let o=e[i],a={...pp(o),id:pw(),warnings:[!1],slope:function(e,t){if(void 0===e||void 0===e.values||0===e.values.length)return{on:!1,values:[]};let n=!1!==e.on,r=[];for(let n=0;n<e.values.length;n++){let i=e.values[n];if("number"==typeof i)if(1===t){let e=function(e,t,n){let r=1===n?4.8768:5;return e<0?e=0:e>r&&(e=r),e=cw(e=Math.round(e/t)*t,3)}(i*ko,pL(pC,t),t);r.push(e)}else r.push(i);else{let e=cO(i,t);r.push(e)}}return{on:n,values:r}}(o.slope,t)};if(r){for(let[e,t]of Object.entries(a.variant))if(e.includes("orientation")){let n=t.replace(/left/g,"__temp__").replace(/right/g,"left").replace(/__temp__/g,"right");a.variant[e]=n}}a.variantString=cC(a.variant);let s=cg(a.type,a.variantString);if(void 0===o.width)throw Error("template slice does not have a width defined");"number"==typeof o.width?1===t&&(a.width=pz(o.width*ko,pL(pC,t))):a.width=cO(o.width,t),a.elevation=cj(o.elevation??s.elevation,t),n.push(a)}return r&&n.reverse(),n}(e.slices,t),l=(n=e.boundary,i="number"!=typeof n.left.elevation?cO(n.left.elevation,t):n.left.elevation,o="number"!=typeof n.right.elevation?cO(n.right.elevation,t):n.right.elevation,{left:{id:pw(),...n.left,elevation:i},right:{id:pw(),...n.right,elevation:o}}),u=wq()&&wV()?.userId||null,{slices:c,width:d,...f}=e;if(void 0===d)throw Error("street template does not have a width defined");return r="number"==typeof d?1===t?d*ko:d:cO(d,t),{units:t,location:null,name:null,showAnalytics:!0,userUpdated:!1,editCount:0,skybox:"day",weather:null,schemaVersion:35,segments:s,updatedAt:a,clientUpdatedAt:a,creatorId:u,width:r,...f,boundary:l}}(await ku(e),n);hy.dispatch(cM(r)),wq()&&PG()}async function kd(){AW=!0,await kc("default"),Ar(),AW=!1,AU(),PW(!1)}function kf(e,t){let n=ci(e);return n.spriteId+(!0===n.sameOnBothSides?"":"-"+t)}function kh(e,t,n=1){let r,i=ci(e);if(i.hasFloors)r=(i.roofHeight+i.floorHeight*(n-1)+i.mainFloorHeight)*cI;else{let n=kf(e,t);r=pl.get(n).height/2.54}return r}var kp={},km=el("gj6Et"),kg=el("4gDjz"),ky=el("HLBv4"),kv=el("ktaoY"),kb=el("gBs5C"),kw=el("ktLSh"),kx={};function k_(e,t,n,r,i,o,a,s,l,u,c=!1){var d;let f,h,p,m,g=ci(n),y=kf(n,t),v=pl.get(y),b=kh(n,t,i),w=a-b*l-r*cI*l;!0===g.alignAtBaseline&&(w+=45*l),void 0!==g.offsetY&&(w+=g.offsetY*cI),!0===g.repeatHalf?(f=v.width/2.54/2,t===cA?(h=0,p=v.width/2):(h=v.width/2,m=0)):f=v.width/2.54;let x=0;if(t===cA&&(x=g.hasFloors?o-f:o%f-(f+f)),g.hasFloors){let t=v.height;P8(y,e,0,t-g.mainFloorHeight*cI*2.54,void 0,g.mainFloorHeight*cI,s+x*l,w+(b-g.mainFloorHeight*cI)*l,void 0,g.mainFloorHeight*cI,void 0,l,u);let n=ei(kp)(pw());for(let r=1;r<i;r++){let i=g.variantsCount??0,o=i>
660?Math.floor(n()*i)+1:0;P8(y,e,0,t-g.mainFloorHeight*cI*2.54-g.floorHeight*cI*o*2.54,void 0,g.floorHeight*cI,s+x*l,w+b*l-(g.mainFloorHeight+g.floorHeight*r)*cI*l,void 0,g.floorHeight*cI,void 0,l,u)}P8(y,e,0,t-g.mainFloorHeight*cI*2.54-g.floorHeight*cI*(g.variantsCount??0)*2.54-g.roofHeight*cI*2.54,void 0,g.roofHeight*cI,s+x*l,w+b*l-(g.mainFloorHeight+g.floorHeight*(i-1)+g.roofHeight)*cI*l,void 0,g.roofHeight*cI,void 0,l,u)}else{let t=Math.floor(o/f)+2;for(let n=0;n<t;n++)P8(y,e,0===n&&void 0!==m?m:n===t-1&&void 0!==p?p:h,void 0,f,void 0,s+(x+n*f)*l,w,f,void 0,void 0,l,u)}c&&((d=e).save(),d.globalCompositeOperation="source-atop",d.fillStyle="rgba(204, 163, 173, .9)",d.fillRect(0,0,d.canvas.width,d.canvas.height),d.restore())}function kk(){return(kk=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}).apply(null,arguments)}function kS(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}function kE(e,t){return(kE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kE(e,t)}
66function kj(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}!function(e,t,n){var r,i="random",o=n.pow(256,6),a=n.pow(2,52),s=2*a;function l(l,h,p){var m=[],g=d(function e(t,n){var r,i=[],o=typeof t;if(n&&"object"==o)for(r in t)try{i.push(e(t[r],n-1))}catch(e){}return i.length?i:"string"==o?t:t+"\0"}((h=!0==h?{entropy:!0}:h||{}).entropy?[l,f(t)]:null==l?function(){try{var n;return r&&(n=r.randomBytes)?n=n(256):(n=new Uint8Array(256),(e.crypto||e.msCrypto).getRandomValues(n)),f(n)}catch(n){var i=e.navigator,o=i&&i.plugins;return[+new Date,e,o,e.screen,f(t)]}}():l,3),m),y=new u(m),v=function(){for(var e=y.g(6),t=o,n=0;e<a;)e=(e+n)*256,t*=256,n=y.g(1);for(;e>=s;)e/=2,t/=2,n>>>=1;return(e+n)/t};return v.int32=function(){return 0|y.g(4)},v.quick=function(){return y.g(4)/0x100000000},v.double=v,d(f(y.S),t),(h.pass||p||function(e,t,r,o){return(o&&(o.S&&c(o,y),e.state=function(){return c(y,{})}),r)?(n[i]=e,t):e})(v,g,"global"in h?h.global:this==n,h.state)}function u(e){var t,n=e.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);i<256;)a[i]=i++;for(i=0;i<256;i++)a[i]=a[o=255&o+e[i%n]+(t=a[i])],a[o]=t;(r.g=function(e){for(var t,n=0,i=r.i,o=r.j,a=r.S;e--;)t=a[i=255&i+1],n=256*n+a[255&(a[i]=a[o=255&o+t])+(a[o]=t)];return r.i=i,r.j=o,n})(256)}function c(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function d(e,t){for(var n,r=e+"",i=0;i<r.length;)t[255&i]=255&(n^=19*t[255&i])+r.charCodeAt(i++);return f(t)}function f(e){return String.fromCharCode.apply(0,e)}if(d(n.random(),t),kx){kx=l;try{r=el("foUwZ")}catch(e){}}else"function"==typeof define&&define.amd?define(function(){return l}):n["seed"+i]=l}("u">typeof self?self:kx,[],Math),kx.alea=km,kx.xor128=kg,kx.xorwow=ky,kx.xorshift7=kv,kx.xor4096=kb,kx.tychei=kw,kp=kx;var ef=(el("8NFma"),el("8NFma"),el("8NFma")),kT=el("2pmb0"),ef=el("8NFma"),kC=ei(ef).createContext(null),kI=function(e){return e.scrollTop},kP="unmounted",kA="exited",kR="entering",kN="entered",kM="exiting",kD=function(e){function t(t,n){var r,i=e.call(this,t,n)||this,o=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?o?(r=kA,i.appearStatus=kR):r=kN:r=t.unmountOnExit||t.mountOnEnter?kP:kA,i.state={status:r},i.nextCallback=null,i}kO(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===kP?{status:kA}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==kR&&n!==kN&&(t=kR):(n===kR||n===kN)&&(t=kM)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===kR){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ei(kT).findDOMNode(this);n&&kI(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kA&&this.setState({status:kP})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ei(kT).findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;(e||n)&&1?(this.props.onEnter(o,a),this.safeSetState({status:kR},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:kN},function(){t.props.onEntered(o,a)})})})):this.safeSetState({status:kN},function(){t.props.onEntered(o)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ei(kT).findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:kM},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:kA},function(){e.props.onExited(r)})})})):this.safeSetState({status:kA},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ei(kT).findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===kP)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,kS(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return ei(ef).createElement(kC.Provider,{value:null},"function"==typeof n?n(e,r):ei(ef).cloneElement(ei(ef).Children.only(n),r))},t}(ei(ef).Component);function kL(){}kD.contextType=kC,kD.propTypes={},kD.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
66:!0,exit:!0,onEnter:kL,onEntering:kL,onEntered:kL,onExit:kL,onExiting:kL,onExited:kL},kD.UNMOUNTED=kP,kD.EXITED=kA,kD.ENTERING=kR,kD.ENTERED=kN,kD.EXITING=kM;var kz=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=kj(e.className,t):e.setAttribute("class",kj(e.className&&e.className.baseVal||"",t))})},kF=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.addClass(i,o?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r&&n?n+"-":"",o=r?""+i+e:n[e],a=r?o+"-active":n[e+"Active"],s=r?o+"-done":n[e+"Done"];return{baseClassName:o,activeClassName:a,doneClassName:s}},t}kO(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r,i=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(i+=" "+o),"active"===n&&e&&kI(e),i&&(this.appliedClasses[t][n]=i,r=i,e&&r&&r.split(" ").forEach(function(t){e.classList?e.classList.add(t):(e.classList?t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" "))||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&kz(e,r),i&&kz(e,i),o&&kz(e,o)},n.render=function(){var e=this.props,t=(e.classNames,kS(e,["classNames"]));return ei(ef).createElement(kD,kk({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ei(ef).Component);kF.defaultProps={classNames:""},kF.propTypes={};let kB=ej.withTypes(),kU=eC.withTypes();var ef=el("8NFma");let k$=e=>{let t=(0,ef.useRef)(null);return(0,ef.useEffect)(()=>{t.current=e}),t.current};var ef=el("8NFma");let kH=["top","right","bottom","left"],kW=Math.min,kV=Math.max,kq=Math.round,kK=Math.floor,kZ=e=>({x:e,y:e}),kG={left:"right",right:"left",bottom:"top",top:"bottom"};function kY(e,t){return"function"==typeof e?e(t):e}function kX(e){return e.split("-")[0]}function kJ(e){return e.split("-")[1]}function kQ(e){return"x"===e?"y":"x"}function k0(e){return"y"===e?"height":"width"}function k1(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function k2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let k3=["left","right"],k4=["right","left"],k5=["top","bottom"],k6=["bottom","top"];function k8(e){let t=kX(e);return kG[t]+e.slice(t.length)}function k9(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function k7(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Se(e,t,n){let r,{reference:i,floating:o}=e,a=k1(t),s=kQ(k1(t)),l=k0(s),u=kX(t),c=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,f=i[l]/2-o[l]/2;switch(u){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}let h=kJ(t);return h&&(r[s]+=f*("end"===h?1:-1)*(n&&"y"===a?-1:1)),r}async function St(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=kY(t,e),p=k9(h),m=s[f?"floating"===d?"reference":"floating":d],g=k7(await o.getClippingRect
vendor: 4,222 bytes, line 66
66({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=k7(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}let Sn=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:St},l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Se(u,r,l),f=r,h=0,p={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:y}=m,{x:v,y:b,data:w,reset:x}=await y({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=b?b:d,p[g]={...p[g],...w},x&&h<50&&(h++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:d}=Se(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};function Sr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Si(e){return kH.some(t=>e[t]>=0)}let So=new Set(["left","top"]);async function Sa(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=kX(n),s=kJ(n),l="y"===k1(n),u=So.has(a)?-1:1,c=o&&l?-1:1,d=kY(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}function Ss(){return"u">typeof window}function Sl(e){return Sd(e)?(e.nodeName||"").toLowerCase():"#document"}function Su(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Sc(e){var t;return null==(t=(Sd(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Sd(e){return!!Ss()&&(e instanceof Node||e instanceof Su(e).Node)}function Sf(e){return!!Ss()&&(e instanceof Element||e instanceof Su(e).Element)}function Sh(e){return!!Ss()&&(e instanceof HTMLElement||e instanceof Su(e).HTMLElement)}function Sp(e){return!(!Ss()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Su(e).ShadowRoot)}function Sm(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Sk(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function Sg(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let Sy=/transform|translate|scale|rotate|perspective|filter/,Sv=/paint|layout|strict|content/,Sb=e=>!!e&&"none"!==e;function Sw(e){let t=Sf(e)?Sk(e):e;return Sb(t.transform)||Sb(t.translate)||Sb(t.scale)||Sb(t.rotate)||Sb(t.perspective)||!Sx()&&(Sb(t.backdropFilter)||Sb(t.filter))||Sy.test(t.willChange||"")||Sv.test(t.contain||"")}function Sx(){return null==m&&(m="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),m}function S_(e){return/^(html|body|#document)$/.test(Sl(e))}function Sk(e){return Su(e).getComputedStyle(e)}function SS(e){return Sf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function SE(e){if("html"===Sl(e))return e;let t=e.assignedSlot||e.parentNode||Sp(e)&&e.host||Sc(e);return Sp(t)?t.host:t}function SO(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=SE(t);return S_(n)?(t.ownerDocument||t).body:Sh(n)&&Sm(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Su(i);if(!o)return t.concat(i,SO(i,[],n));{let e=Sj(a);
66return t.concat(a,a.visualViewport||[],Sm(i)?i:[],e&&n?SO(e):[])}}function Sj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ST(e){let t=Sk(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Sh(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=kq(n)!==o||kq(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function SC(e){return Sf(e)?e:e.contextElement}function SI(e){let t=SC(e);if(!Sh(t))return kZ(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ST(t),a=(o?kq(n.width):n.width)/r,s=(o?kq(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let SP=kZ(0);function SA(e){let t=Su(e);return Sx()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:SP}function SR(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=SC(e),s=kZ(1);t&&(r?Sf(r)&&(s=SI(r)):s=SI(e));let l=(void 0===(i=n)&&(i=!1),r&&i&&r===Su(a))?SA(a):kZ(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a&&r){let e=Su(a),t=Sf(r)?Su(r):r,n=e,i=Sj(n);for(;i&&t!==n;){let e=SI(i),t=i.getBoundingClientRect(),r=Sk(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,i=Sj(n=Su(i))}}return k7({width:d,height:f,x:u,y:c})}function SN(e,t){let n=SS(e).scrollLeft;return t?t.left+n:SR(Sc(e)).left+n}function SM(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-SN(e,n),y:n.top+t.scrollTop}}function SD(e,t,n){var r;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=Su(e),o=Sc(e),a=i.visualViewport,s=o.clientWidth,l=o.clientHeight,u=0,c=0;if(a){let e=!Sx()||"fixed"===t;r?e||(u=-a.offsetLeft,c=-a.offsetTop):(s=a.width,l=a.height,e&&(u=a.offsetLeft,c=a.offsetTop))}if(0>=SN(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),a="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;a<=25&&(s-=a)}return{width:s,height:l,x:u,y:c}}(e,n,t);else if("document"===t){let t,n,o,a,s,l;t=SS(r=Sc(e)),n=r.ownerDocument.body,o=kV(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),a=kV(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+SN(r),l=-t.scrollTop,"rtl"===Sk(n).direction&&(s+=kV(r.clientWidth,n.clientWidth)-o),i={width:o,height:a,x:s,y:l}}else if(Sf(t)){let e,r,o,a,s,l;r=(e=SR(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,a=SI(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,i={width:s,height:l,x:o*a.x,y:r*a.y}}else{let n=SA(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k7(i)}function SL(e){return"static"===Sk(e).position}function Sz(e,t){if(!Sh(e)||"fixed"===Sk(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Sc(e)===n&&(n=n.ownerDocument.body),n}function SF(e,t){var n;let r=Su(e);if(Sg(e))return r;if(!Sh(e)){let t=SE(e);for(;t&&!S_(t);){if(Sf(t)&&!SL(t))return t;t=SE(t)}return r}let i=Sz(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(Sl(n)))&&SL(i);)i=Sz(i,t);return i&&S_(i)&&SL(i)&&!Sw(i)?r:i||function(e){let t=SE(e);for(;Sh(t)&&!S_(t);){if(Sw(t))return t;if(Sg(t))break;t=SE(t)}return null}(e)||r}let SB=async function(e){let t=this.getOffsetParent||SF,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=Sh(t),i=Sc(t),o="fixed"===n,a=SR(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=kZ(0);if((r||!o)&&(("body"!==Sl(t)||Sm(i))&&(s=SS(t)),r)){let e=SR(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&i&&(l.x=SN(i));let u=!i||r||o?kZ(0):SM(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},SU={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=Sc(r),s=!!t&&Sg(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=kZ(1),c=kZ(0),d=Sh(r);
66if((d||!o)&&(("body"!==Sl(r)||Sm(a))&&(l=SS(r)),d)){let e=SR(r);u=SI(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||o?kZ(0):SM(a,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:Sc,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?Sg(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=SO(e,[],!1).filter(e=>Sf(e)&&"body"!==Sl(e)),i=null,o="fixed"===Sk(e).position,a=o?SE(e):e;for(;Sf(a)&&!S_(a);){let e=Sk(a),t=Sw(a),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==a),a=SE(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=SD(t,o[0],i),s=a.top,l=a.right,u=a.bottom,c=a.left;for(let e=1;e<o.length;e++){let n=SD(t,o[e],i);s=kV(n.top,s),l=kW(n.right,l),u=kW(n.bottom,u),c=kV(n.left,c)}return{width:l-c,height:u-s,x:c,y:s}},getOffsetParent:SF,getElementRects:SB,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=ST(e);return{width:t,height:n}},getScale:SI,isElement:Sf,isRTL:function(e){return"rtl"===Sk(e).direction}};function S$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SH(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=SC(e),d=o||a?[...c?SO(c):[],...t?SO(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n),a&&e.addEventListener("resize",n)});let f=c&&l?function(e,t,n){let r,i=null,o=Sc(e);function a(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}function s(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),a();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(n||t(),!f||!h)return;let p={rootMargin:-kK(d)+"px "+-kK(o.clientWidth-(c+f))+"px "+-kK(o.clientHeight-(d+h))+"px "+-kK(c)+"px",threshold:kV(0,kW(1,l))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(!S$(u,e.getBoundingClientRect()))return s();if(n!==l){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(g,p)}i.observe(e)}let l=Su(e),u=()=>s(n);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),a()}}(c,n,a):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),t&&p.observe(t));let m=u?SR(e):null;return u&&function t(){let r=SR(e);m&&!S$(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}let SW=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await Sa(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},SV=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=kY(e,t),c={x:n,y:r},d=await o.detectOverflow(t,u),f=k1(i),h=kQ(f),p=c[h],m=c[f],g=(e,t)=>kV(t+d["y"===e?"top":"left"],kW(t,t-d["y"===e?"bottom":"right"]));a&&(p=g(h,p)),s&&(m=g(f,m));let y=l.fn({...t,[h]:p,[f]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:a,[f]:s}}}}}},Sq=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=kY(e,t)||{};if(null==u)return{};let d=k9(c),f={x:n,y:r},h=kQ(k1(i)),p=k0(h),m=await a.getDimensions(u),g="y"===h,y=g?"clientHeight":"clientWidth",v=o.reference[p]+o.reference[h]-f[h]-o.floating[p],b=f[h]-o.reference[h],w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),x=w?w[y]:0;x&&await (null==a.isElement?void 0:a.isElement(w))||(x=s.floating[y]||o.floating[p]);let _=x/2-m[p]/2-1,k=kW(d[g?"top":"left"],_),S=kW(d[g?"bottom":"right"],_),E=x-m[p]-S,O=x/2-m[p]/2+(v/2-b/2),j=kV(k,kW(O,E)),T=!l.arrow&&null!=kJ(i)&&O!==j&&o.reference[p]/2-(O<k?k:S)-m[p]/2<0,C=T?O<k?O-k:O-E:0;return{[h]:f[h]+C,data:{[h]:j,centerOffset:O-j-C,...T&&{alignmentOffset:C}},reset:T}}});var ef=el("8NFma"),kT=el("2pmb0"),SK="u">typeof document?ef.useLayoutEffect:function(){};function SZ(e,t){let n,r,i;if(e===t)return!0;
66if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!SZ(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!SZ(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function SG(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function SY(e,t){let n=SG(e);return Math.round(t*n)/n}function SX(e){let t=ef.useRef(e);return SK(()=>{t.current=e}),t}function SJ(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=ef.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=ef.useState(r);SZ(f,r)||h(r);let[p,m]=ef.useState(null),[g,y]=ef.useState(null),v=ef.useCallback(e=>{e!==_.current&&(_.current=e,m(e))},[]),b=ef.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),w=o||p,x=a||g,_=ef.useRef(null),k=ef.useRef(null),S=ef.useRef(c),E=null!=l,O=SX(l),j=SX(i),T=SX(u),C=ef.useCallback(()=>{var e,r;let i,o,a;if(!_.current||!k.current)return;let s={placement:t,strategy:n,middleware:f};j.current&&(s.platform=j.current),(e=_.current,r=k.current,i=new Map,o=null!=s?s:{},a={...SU,...o.platform,_c:i},Sn(e,r,{...o,platform:a})).then(e=>{let t={...e,isPositioned:!1!==T.current};I.current&&!SZ(S.current,t)&&(S.current=t,kT.flushSync(()=>{d(t)}))})},[f,t,n,j,T]);SK(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let I=ef.useRef(!1);SK(()=>(I.current=!0,()=>{I.current=!1}),[]),SK(()=>{if(w&&(_.current=w),x&&(k.current=x),w&&x){if(O.current)return O.current(w,x,C);C()}},[w,x,C,O,E]);let P=ef.useMemo(()=>({reference:_,floating:k,setReference:v,setFloating:b}),[v,b]),A=ef.useMemo(()=>({reference:w,floating:x}),[w,x]),R=ef.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=SY(A.floating,c.x),r=SY(A.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...SG(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,A.floating,c.x,c.y]);return ef.useMemo(()=>({...c,update:C,refs:P,elements:A,floatingStyles:R}),[c,C,P,A,R])}let SQ=(e,t)=>{let n=SW(e);return{name:n.name,fn:n.fn,options:[e,t]}},S0=(e,t)=>{let n=SV(e);return{name:n.name,fn:n.fn,options:[e,t]}},S1=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,i,o,a,s,l,u;let c,d,f,{placement:h,middlewareData:p,rects:m,initialPlacement:g,platform:y,elements:v}=e,{mainAxis:b=!0,crossAxis:w=!0,fallbackPlacements:x,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...E}=kY(n,e);if(null!=(t=p.arrow)&&t.alignmentOffset)return{};let O=kX(h),j=k1(g),T=kX(g)===g,C=await (null==y.isRTL?void 0:y.isRTL(v.floating)),I=x||(T||!S?[k8(g)]:(c=k8(g),[k2(g),c,k2(c)])),P="none"!==k;!x&&P&&I.push(...(d=kJ(g),f=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?k4:k3;return t?k3:k4;case"left":case"right":return t?k5:k6;default:return[]}}(kX(g),"start"===k,C),d&&(f=f.map(e=>e+"-"+d),S&&(f=f.concat(f.map(k2)))),f));let A=[g,...I],R=await y.detectOverflow(e,E),N=[],M=(null==(r=p.flip)?void 0:r.overflows)||[];if(b&&N.push(R[O]),w){let e,t,n,r,i=(s=h,l=m,void 0===(u=C)&&(u=!1),e=kJ(s),n=k0(t=kQ(k1(s))),r="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[n]>l.floating[n]&&(r=k8(r)),[r,k8(r)]);N.push(R[i[0]],R[i[1]])}if(M=[...M,{placement:h,overflows:N}],!N.every(e=>e<=0)){let e=((null==(i=p.flip)?void 0:i.index)||0)+1,t=A[e];if(t&&("alignment"!==w||j===k1(t)||M.every(e=>k1(e.placement)!==j||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(_){case"bestFit":{let e=null==(a=M.filter(e=>{if(P){let t=k1(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
66e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=g}if(h!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}},S2=(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?Sq({element:n.current,padding:r}).fn(t):{}:n?Sq({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}};var ef=(el("8NFma"),el("8NFma")),S3='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',S4="u"<typeof Element,S5=S4?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,S6=!S4&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},S8=function e(t,n){void 0===n&&(n=!0);var r,i=null==t||null==(r=t.getAttribute)?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},S9=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},S7=function(e,t,n){if(S8(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(S3));return t&&S5.call(e,S3)&&r.unshift(e),r=r.filter(n)},Ee=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!S8(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:a,candidates:l})}else{S5.call(a,S3)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),c=!S8(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&c){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return i},Et=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},En=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||S9(e))&&!Et(e)?0:e.tabIndex},Er=function(e,t){var n=En(e);return n<0&&t&&!Et(e)?0:n},Ei=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Eo=function(e){return"INPUT"===e.tagName},Ea=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Es=function(e){if(!e.name)return!0;var t,n=e.form||S6(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=Ea(t,e.form);return!i||i===e},El=function(e){return Eo(e)&&"radio"===e.type&&!Es(e)},Eu=function(e){var t,n,r,i,o,a,s,l=e&&S6(e),u=null==(t=l)?void 0:t.host,c=!1;if(l&&l!==e)for(c=!!(null!=(n=u)&&null!=(r=n.ownerDocument)&&r.contains(u)||null!=e&&null!=(i=e.ownerDocument)&&i.contains(e));!c&&u;)c=!!(null!=(a=u=null==(o=l=S6(u))?void 0:o.host)&&null!=(s=a.ownerDocument)&&s.contains(u));return c},Ec=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Ed=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=S5.call(e,"details>summary:first-of-type")?e.parentElement:e;if(S5.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ec(e)}else{if("function"==typeof r){for(var o=e;e;){var a=e.parentElement,s=S6(e);if(a&&!a.shadowRoot&&!0===r(a))return Ec(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=o}if(Eu(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}
66,Ef=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!S5.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},Eh=function(e,t){return!(t.disabled||S8(t)||Eo(t)&&"hidden"===t.type||Ed(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||Ef(t))},Ep=function(e,t){return!(El(t)||0>En(t))&&!!Eh(e,t)},Em=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},Eg=function e(t){var n=[],r=[];return t.forEach(function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=Er(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})}),r.sort(Ei).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},Ey=function(e,t){return Eg((t=t||{}).getShadowRoot?Ee([e],t.includeContainer,{filter:Ep.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Em}):S7(e,t.includeContainer,Ep.bind(null,t)))};function Ev(){return/apple/i.test(navigator.vendor)}let Eb="data-floating-ui-focusable";function Ew(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Ex(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Sp(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function E_(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ek(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function ES(e){return(null==e?void 0:e.ownerDocument)||document}function EE(e){return Sh(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function EO(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...EO(e,t.id,n)])}function Ej(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var ET="u">typeof document?ef.useLayoutEffect:function(){};function EC(e){let t=ef.useRef(e);return ET(()=>{t.current=e}),t}let EI={...ef}.useInsertionEffect||(e=>e());function EP(e){let t=ef.useRef(()=>{});return EI(()=>{t.current=e}),ef.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}let EA=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ER(e,t){let n=Ey(e,EA()),r=n.length;if(0===r)return;let i=Ew(ES(e)),o=n.indexOf(i);return n[-1===o?1===t?0:r-1:o+t]}function EN(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ex(n,r)}function EM(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var kT=el("2pmb0");function ED(e){let t=ef.useRef(void 0),n=ef.useCallback(t=>{let n=e.map(e=>{if(null!=e){if("function"==typeof e){let n=e(t);return"function"==typeof n?n:()=>{e(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return ef.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}let EL="active",Ez="selected",EF={...ef},EB=!1,EU=0,E$=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+EU++,EH=EF.useId||function(){let[e,t]=ef.useState(()=>EB?E$():void 0);return ET(()=>{null==e&&t(E$())},[]),ef.useEffect(()=>{EB=!0},[]),e},EW=ef.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i,shift:o}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:f,style:{transform:h,...p}={},...m}=e,g=EH(),[y,v]=ef.useState(!1);if(ET(()=>{r&&"rtl"===Sk(r).direction&&v(!0)},[r]),!r)return null;let[b,w]=n.split("-"),x="top"===b||"bottom"===b,_=c;(x&&null!=o&&o.x||!x&&null!=o&&o.y)&&(_=null);
66let k=2*u,S=k/2,E=a/2*(-(l/8)+1),O=s/2*l/4,j=!!f,T=_&&"end"===w?"bottom":"top",C=_&&"end"===w?"right":"left";_&&y&&(C="end"===w?"left":"right");let I=(null==i?void 0:i.x)!=null?_||i.x:"",P=(null==i?void 0:i.y)!=null?_||i.y:"",A=f||"M0,0 H"+a+(" L"+(a-E))+","+(s-O)+(" Q"+a/2+","+s+" "+E)+","+(s-O)+" Z",R={top:j?"rotate(180deg)":"",left:j?"rotate(90deg)":"rotate(-90deg)",bottom:j?"":"rotate(180deg)",right:j?"rotate(-90deg)":"rotate(90deg)"}[b];return(0,ec.jsxs)("svg",{...m,"aria-hidden":!0,ref:t,width:j?a:a+k,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[C]:I,[T]:P,[b]:x||j?"100%":"calc(100% - "+k/2+"px)",transform:[R,h].filter(e=>!!e).join(" "),...p},children:[k>0&&(0,ec.jsx)("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:k+ +!f,d:A}),(0,ec.jsx)("path",{stroke:k&&!f?m.fill:"none",d:A}),(0,ec.jsx)("clipPath",{id:g,children:(0,ec.jsx)("rect",{x:-S,y:S*(j?-1:1),width:a+k,height:a})})]})});function EV(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}let Eq=ef.createContext(null),EK=ef.createContext(null),EZ=()=>{var e;return(null==(e=ef.useContext(Eq))?void 0:e.id)||null};function EG(e){let t=EH(),n=ef.useContext(EK),r=EZ(),i=e||r;return ET(()=>{if(!t)return;let e={id:t,parentId:i};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,i]),t}function EY(e){let{children:t,id:n}=e,r=EZ();return(0,ec.jsx)(Eq.Provider,{value:ef.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function EX(e){let{children:t}=e,n=ef.useRef([]),r=ef.useCallback(e=>{n.current=[...n.current,e]},[]),i=ef.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),[o]=ef.useState(()=>EV());return(0,ec.jsx)(EK.Provider,{value:ef.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:o}),[r,i,o]),children:t})}function EJ(e){return"data-floating-ui-"+e}function EQ(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let E0=EJ("safe-polygon");function E1(e,t,n){if(n&&!Ej(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function E2(e){return"function"==typeof e?e():e}function E3(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:u=null,mouseOnly:c=!1,restMs:d=0,move:f=!0}=t,h=ef.useContext(EK),p=EZ(),m=EC(u),g=EC(l),y=EC(n),v=EC(d),b=ef.useRef(),w=ef.useRef(-1),x=ef.useRef(),_=ef.useRef(-1),k=ef.useRef(!0),S=ef.useRef(!1),E=ef.useRef(()=>{}),O=ef.useRef(!1),j=EP(()=>{var e;let t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});ef.useEffect(()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{open:t}=e;t||(EQ(w),EQ(_),k.current=!0,O.current=!1)}},[s,o]),ef.useEffect(()=>{if(!s||!m.current||!n)return;function e(e){j()&&r(!1,e,"hover")}let t=ES(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,r,s,m,j]);let T=ef.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let i=E1(g.current,"close",b.current);i&&!x.current?(EQ(w),w.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(EQ(w),r(!1,e,n))},[g,r]),C=EP(()=>{E.current(),x.current=void 0}),I=EP(()=>{if(S.current){let e=ES(a.floating).body;e.style.pointerEvents="",e.removeAttribute(E0),S.current=!1}}),P=EP(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));ef.useEffect(()=>{if(s&&Sf(a.domReference)){let r=a.domReference,i=a.floating;return n&&r.addEventListener("mouseleave",o),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",o),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",u)),()=>{n&&r.removeEventListener("mouseleave",o),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",o),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",u))}}function e(e){if(EQ(w),k.current=!1,c&&!Ej(b.current)||E2(v.current)>0&&!E1(g.current,"open"))return;let t=E1(g.current,"open",b.current);t?w.current=window.setTimeout(()=>{y.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(P())return void I();E.current();let t=ES(a.floating);if(EQ(_),O.current=!1,m.current&&i.current.floatingContext){n||EQ(w),x.current=m.current({...i.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){I(),C(),P()||T(e,!0,"safe-polygon")}});let r=x.current;t.addEventListener("mousemove",r),E.current=()=>{t.removeEventListener("mousemove",r)};return}
66"touch"===b.current&&Ex(a.floating,e.relatedTarget)||T(e)}function o(e){P()||i.current.floatingContext&&(null==m.current||m.current({...i.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){I(),C(),P()||T(e)}})(e))}function l(){EQ(w)}function u(e){P()||T(e,!1)}},[a,s,e,c,f,T,C,I,r,n,y,h,g,m,i,P,v]),ET(()=>{var e,t;if(s&&n&&null!=(e=m.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&j()){S.current=!0;let e=a.floating;if(Sf(a.domReference)&&e){let n=ES(a.floating).body;n.setAttribute(E0,"");let r=a.domReference,i=null==h||null==(t=h.nodesRef.current.find(e=>e.id===p))||null==(t=t.context)?void 0:t.elements.floating;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,n,p,a,h,m,j]),ET(()=>{n||(b.current=void 0,O.current=!1,C(),I())},[n,C,I]),ef.useEffect(()=>()=>{C(),EQ(w),EQ(_),I()},[s,a.domReference,C,I]);let A=ef.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){k.current||y.current||r(!0,t,"hover")}c&&!Ej(b.current)||n||0===E2(v.current)||O.current&&e.movementX**2+e.movementY**2<2||(EQ(_),"touch"===b.current?i():(O.current=!0,_.current=window.setTimeout(i,E2(v.current))))}}},[c,r,n,y,v]);return ef.useMemo(()=>s?{reference:A}:{},[s,A])}let E4=()=>{},E5=ef.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:E4,setState:E4,isInstantPhase:!1});function E6(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=ef.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),a=ef.useRef(null),s=ef.useCallback(e=>{o({currentId:e})},[]);return ET(()=>{i.currentId?null===a.current?a.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),a.current=null)},[i.currentId,i.isInstantPhase]),(0,ec.jsx)(E5.Provider,{value:ef.useMemo(()=>({...i,setState:o,setCurrentId:s}),[i,s]),children:t})}function E8(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:o,enabled:a=!0}=t,s=null!=o?o:i,l=ef.useContext(E5),{currentId:u,setCurrentId:c,initialDelay:d,setState:f,timeoutMs:h}=l;return ET(()=>{!a||u&&(f({delay:{open:1,close:E1(d,"close")}}),u!==s&&r(!1))},[a,s,r,f,u,d]),ET(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(a&&u&&!n&&u===s){if(h){let t=window.setTimeout(e,h);return()=>{clearTimeout(t)}}e()}},[a,n,f,u,s,r,d,h]),ET(()=>{!a||c!==E4&&n&&c(s)},[a,n,c,s]),l}function E9(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Sp(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}let E7={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Oe=ef.forwardRef(function(e,t){let[n,r]=ef.useState();ET(()=>{Ev()&&r("button")},[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[EJ("focus-guard")]:"",style:E7};return(0,ec.jsx)("span",{...e,...i})}),Ot={clipPath:"inset(50%)",position:"fixed",top:0,left:0},On=ef.createContext(null),Or=EJ("portal");function Oi(e){let{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=function(e){void 0===e&&(e={});let{id:t,root:n}=e,r=EH(),i=Oo(),[o,a]=ef.useState(null),s=ef.useRef(null);return ET(()=>()=>{null==o||o.remove(),queueMicrotask(()=>{s.current=null})},[o]),ET(()=>{if(!r||s.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(Or,""),e.appendChild(n),s.current=n,a(n)},[t,r]),ET(()=>{if(null===n||!r||s.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!Sd(e)&&(e=e.current),e=e||document.body;let o=null;t&&((o=document.createElement("div")).id=t,e.appendChild(o));let l=document.createElement("div");l.id=r,l.setAttribute(Or,""),(e=o||e).appendChild(l),s.current=l,a(l)},[t,n,r,i]),o}({id:n,root:r}),[a,s]=ef.useState(null),l=ef.useRef(null),u=ef.useRef(null),c=ef.useRef(null),d=ef.useRef(null),f=null==a?void 0:a.modal,h=null==a?void 0:a.open,p=!!a&&!a.modal&&a.open&&i&&!!(r||o);return ef.useEffect(()=>{if(o&&i&&!f)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&EN(e)&&("focusin"===e.type?EM:function(e){Ey(e,EA()).forEac
66h(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(o)}},[o,i,f]),ef.useEffect(()=>{!o||h||EM(o)},[h,o]),(0,ec.jsxs)(On.Provider,{value:ef.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:o,setFocusManagerState:s}),[i,o]),children:[p&&o&&(0,ec.jsx)(Oe,{"data-type":"outside",ref:l,onFocus:e=>{var t,n;if(EN(e,o))null==(t=c.current)||t.focus();else{let e=ER(ES(n=a?a.domReference:null).body,-1)||n;null==e||e.focus()}}}),p&&o&&(0,ec.jsx)("span",{"aria-owns":o.id,style:Ot}),o&&kT.createPortal(t,o),p&&o&&(0,ec.jsx)(Oe,{"data-type":"outside",ref:u,onFocus:e=>{var t,n;if(EN(e,o))null==(t=d.current)||t.focus();else{let t=ER(ES(n=a?a.domReference:null).body,1)||n;null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}let Oo=()=>ef.useContext(On);function Oa(e){return Sh(e.target)&&"BUTTON"===e.target.tagName}let Os={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ol={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ou=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Oc(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:p}=t,m=ef.useContext(EK),g=EP("function"==typeof l?l:()=>!1),y="function"==typeof l?g:l,v=ef.useRef(!1),{escapeKey:b,outsidePress:w}=Ou(h),{escapeKey:x,outsidePress:_}=Ou(p),k=ef.useRef(!1),S=EP(e=>{var t;if(!n||!a||!s||"Escape"!==e.key||k.current)return;let i=null==(t=o.current.floatingContext)?void 0:t.nodeId,l=m?EO(m.nodesRef.current,i):[];if(!b&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),E=EP(e=>{var t;let n=()=>{var t;S(e),null==(t=E_(e))||t.removeEventListener("keydown",n)};null==(t=E_(e))||t.addEventListener("keydown",n)}),O=EP(e=>{var t;let n=o.current.insideReactTree;o.current.insideReactTree=!1;let a=v.current;if(v.current=!1,"click"===u&&a||n||"function"==typeof y&&!y(e))return;let s=E_(e),l="["+EJ("inert")+"]",c=ES(i.floating).querySelectorAll(l),d=Sf(s)?s:null;for(;d&&!S_(d);){let e=SE(d);if(S_(e)||!Sf(e))break;d=e}if(c.length&&Sf(s)&&!s.matches("html,body")&&!Ex(s,i.floating)&&Array.from(c).every(e=>!Ex(d,e)))return;if(Sh(s)&&C){let t=S_(s),n=Sk(s),r=/auto|scroll/,i=t||r.test(n.overflowX),o=t||r.test(n.overflowY),a=i&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,l=o&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,u="rtl"===n.direction,c=l&&(u?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=a&&e.offsetY>s.clientHeight;if(c||d)return}let f=null==(t=o.current.floatingContext)?void 0:t.nodeId,h=m&&EO(m.nodesRef.current,f).some(t=>{var n;return Ek(e,null==(n=t.context)?void 0:n.elements.floating)});if(Ek(e,i.floating)||Ek(e,i.domReference)||h)return;let p=m?EO(m.nodesRef.current,f):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),j=EP(e=>{var t;let n=()=>{var t;O(e),null==(t=E_(e))||t.removeEventListener(u,n)};null==(t=E_(e))||t.addEventListener(u,n)});ef.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=b,o.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),k.current=!0}function c(){e=window.setTimeout(()=>{k.current=!1},5*!!Sx())}let d=ES(i.floating);s&&(d.addEventListener("keydown",x?E:S,x),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",c)),y&&d.addEventListener(u,_?j:O,_);let h=[];return f&&(Sf(i.domReference)&&(h=SO(i.domReference)),Sf(i.floating)&&(h=h.concat(SO(i.floating))),!Sf(i.reference)&&i.reference&&i.reference.contextElement&&(h=h.concat(SO(i.reference.contextElement)))),(h=h.filter(e=>{var t;
66return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t)}),()=>{s&&(d.removeEventListener("keydown",x?E:S,x),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",c)),y&&d.removeEventListener(u,_?j:O,_),h.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[o,i,s,y,u,n,r,f,a,b,w,S,x,E,O,_,j]),ef.useEffect(()=>{o.current.insideReactTree=!1},[o,y,u]);let T=ef.useMemo(()=>({onKeyDown:S,...c&&{[Os[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[S,r,c,d]),C=ef.useMemo(()=>{function e(e){0===e.button&&(v.current=!0)}return{onKeyDown:S,onMouseDown:e,onMouseUp:e,[Ol[u]]:()=>{o.current.insideReactTree=!0}}},[S,u,o]);return ef.useMemo(()=>a?{reference:T,floating:C}:{},[a,T,C])}function Od(e){var t,n;let{elements:r,...i}=void 0===e?{}:e,{nodeId:o}=i,a=function(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=EH(),o=ef.useRef({}),[a]=ef.useState(()=>EV()),s=null!=EZ(),[l,u]=ef.useState(r.reference),c=EP((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),d=ef.useMemo(()=>({setPositionReference:u}),[]),f=ef.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return ef.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:f,events:a,floatingId:i,refs:d}),[t,c,f,a,i,d])}({...i,elements:{reference:null!=(t=null==r?void 0:r.reference)?t:null,floating:null!=(n=null==r?void 0:r.floating)?n:null}}),s=i.rootContext||a,l=s.elements,[u,c]=ef.useState(null),[d,f]=ef.useState(null),h=(null==l?void 0:l.domReference)||u,p=ef.useRef(null),m=ef.useContext(EK);ET(()=>{h&&(p.current=h)},[h]);let g=SJ({...i,elements:{...l,...d&&{reference:d}}}),y=ef.useCallback(e=>{let t=Sf(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),g.refs.setReference(t)},[g.refs]),v=ef.useCallback(e=>{(Sf(e)||null===e)&&(p.current=e,c(e)),(Sf(g.refs.reference.current)||null===g.refs.reference.current||null!==e&&!Sf(e))&&g.refs.setReference(e)},[g.refs]),b=ef.useMemo(()=>({...g.refs,setReference:v,setPositionReference:y,domReference:p}),[g.refs,v,y]),w=ef.useMemo(()=>({...g.elements,domReference:h}),[g.elements,h]),x=ef.useMemo(()=>({...g,...s,refs:b,elements:w,nodeId:o}),[g,b,w,o,s]);return ET(()=>{s.dataRef.current.floatingContext=x;let e=null==m?void 0:m.nodesRef.current.find(e=>e.id===o);e&&(e.context=x)}),ef.useMemo(()=>({...g,context:x,refs:b,elements:w}),[g,b,w,x])}function Of(){let e;return(null!=(e=navigator.userAgentData)&&e.platform?e.platform:navigator.platform).toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Ev()}function Oh(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,u=ef.useRef(!1),c=ef.useRef(-1),d=ef.useRef(!0);ef.useEffect(()=>{if(!s)return;let e=Su(a.domReference);function t(){!n&&Sh(a.domReference)&&a.domReference===Ew(ES(a.domReference))&&(u.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener("blur",t),Of()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",i,!0)),()=>{e.removeEventListener("blur",t),Of()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",i,!0))}},[a.domReference,n,s]),ef.useEffect(()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(u.current=!0)}},[i,s]),ef.useEffect(()=>()=>{EQ(c)},[]);let f=ef.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;let t=E_(e.nativeEvent);if(l&&Sf(t)){if(Of()&&!e.relatedTarget){if(!d.current&&!EE(t))return}else if(!function(e){let t;if(!e||((t=navigator.userAgentData)&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent).includes("jsdom/"))return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=Sf(t)&&t.hasAttribute(EJ("focus-guard"))&&"outside"===t.getAttribute("data-type");c.current=window.setTimeout(()=>{var e;let s=Ew(a.domReference?a.domReference.ownerDocument:document);!t&&s===a.domReference||Ex(null==(e=o.current.floatingContext)?void 0:e.refs.floating.current,s)||Ex(a.domReference,s)||i||r(!1,n,"focus")})}}),[o,a.domReference,r,l]);return ef.useMemo(()=>s?{reference:f}:{},[s,f])}function Op(e,t,n){let r=new Map,i="item"===n,o=e;if(i&&e){let{[EL]:t,[Ez]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...o,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
66(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(!(i&&[EL,Ez].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var a;null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)}}}else e[n]=o}),e),{})}}function Om(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=ef.useCallback(t=>Op(t,e,"reference"),t),o=ef.useCallback(t=>Op(t,e,"floating"),n),a=ef.useCallback(t=>Op(t,e,"item"),r);return ef.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}let Og=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]),Oy=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Ov(e,t){return"function"==typeof e?e(t):e}function Ob(e,t){void 0===t&&(t={});let{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,s=e.placement,l=s.split("-")[0],u=ef.useMemo(()=>({side:l,placement:s}),[l,s]),c="number"==typeof a,d=(c?a:a.open)||0,f=(c?a:a.close)||0,[h,p]=ef.useState(()=>({...Ov(o,u),...Ov(n,u)})),{isMounted:m,status:g}=function(e,t){void 0===t&&(t={});let{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=("number"==typeof i?i:i.close)||0,[a,s]=ef.useState("unmounted"),l=function(e,t){let[n,r]=ef.useState(e);return e&&!n&&r(!0),ef.useEffect(()=>{if(!e&&n){let e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,o);return l||"close"!==a||s("unmounted"),ET(()=>{if(r){if(n){s("initial");let e=requestAnimationFrame(()=>{kT.flushSync(()=>{s("open")})});return()=>{cancelAnimationFrame(e)}}s("close")}},[n,r]),{isMounted:l,status:a}}(e,{duration:a}),y=EC(n),v=EC(r),b=EC(i),w=EC(o);return ET(()=>{let e=Ov(y.current,u),t=Ov(b.current,u),n=Ov(w.current,u),r=Ov(v.current,u)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&p(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===g&&p({transitionProperty:Object.keys(r).map(Oy).join(","),transitionDuration:d+"ms",...n,...r}),"close"===g){let r=t||e;p({transitionProperty:Object.keys(r).map(Oy).join(","),transitionDuration:f+"ms",...n,...r})}},[f,b,y,v,w,d,g,u]),{isMounted:m,styles:h}}function Ow(e,t){let[n,r]=e,i=!1,o=t.length;for(let e=0,a=o-1;e<o;a=e++){let[o,s]=t[e]||[0,0],[l,u]=t[a]||[0,0];s>=r!=u>=r&&n<=(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}var ef=el("8NFma"),Ox={exports:{}},O_={},Ok=(RT||(RT=1,Ox.exports=function(){if(Rj)return O_;Rj=1;var e=Symbol.for("react.transitional.element");function t(t,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return{$$typeof:e,type:t,key:i,ref:void 0!==(n=r.ref)?n:null,props:r}}return O_.Fragment=Symbol.for("react.fragment"),O_.jsx=t,O_.jsxs=t,O_}()),Ox.exports);function OS(e){return e instanceof HTMLElement}function OE(e){return"function"==typeof e}function OO(e){return"string"==typeof e}function Oj(e){return void 0===e}class OT{on(e,t,n,r=!1){var i;return Oj(this.bindings)&&(this.bindings={}),Oj(this.bindings[e])&&(this.bindings[e]=[]),null==(i=this.bindings[e])||i.push({handler:t,ctx:n,once:r}),this}once(e,t,n){return this.on(e,t,n,!0)}off(e,t){var n;return Oj(this.bindings)||Oj(this.bindings[e])||(Oj(t)?delete this.bindings[e]:null==(n=this.bindings[e])||n.forEach((n,r)=>{var i;n.handler===t&&(null==(i=this.bindings[e])||i.splice(r,1))})),this}trigger(e,...t){var n;return!Oj(this.bindings)&&this.bindings[e]&&(null==(n=this.bindings[e])||n.forEach((n,r)=>{var i;let{ctx:o,handler:a,once:s}=n;a.apply(o||this,t),s&&(null==(i=this.bindings[e])||i.splice(r,1))})),this}}function OC(){return(OC=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}).apply(null,arguments)}function OI(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}let OP={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function OA(e,t){return t}function OR(e,t){return e.filter(e=>void 0!==e)}function ON(e){return"object"!=typeof e||null===e?0:Array.isArray(e)?2:!function(e){if(!OD.includes(Object.prototype.toString.call(e)))return!1;let{constructor:t}=e;if(void 0===t)return!0;let n=t.prototype;return!(null===n||"object"!=typeof n||!OD.includes(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}(e)?e instanceof Set?3:e instanceof Map?4:5:1}function OM(e){var t;let n=0,r=null==(t=e[0])?void 0:t[Symbol.iterator]();return{[Symbol.iterator]:()=>({next(){for(;;){var t;if(void 0===r)return{done:!0,value:void 0};let i=r.next();if(!0!==i.done)return{done:!1,value:i.value};n+=1,r=null==(t=e[n])?void 0:t[Symbol.iterator]()}}})}}(Rk=RC||(RC={}))[Rk.NOT=0]="NOT",Rk[Rk.RECORD=1]="RECORD",Rk[Rk.ARRAY=2]="ARRAY",Rk[Rk.SET=3]="SET",Rk[Rk.MAP=4]="MAP",Rk[Rk.OTHER=5]="OTHER";let OD=["[object Object]","[object Module]"],OL={mergeRecords:function(e,t,n){let r={};for(let i of function(e){let t=new Set;for(let n of e)for(let e of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(e);return t}(e)){let o=[];for(let t of e)"object"==typeof t&&Object.prototype.propertyIsEnumerable.call(t,i)&&o.push(t[i]);if(0===o.length)continue;let a=t.metaDataUpdater(n,{key:i,parents:e}),s=OF(o,t,a);s!==OP.skip&&("__proto__"===i?Object.defineProperty(r,i,{value:s,configurable:!0,enumerable:!0,writable:!0}):r[i]=s)}return r},mergeArrays:function(e){return e.flat()},mergeSets:function(e){return new Set(OM(e))},mergeMaps:function(e){return new Map(OM(e))},mergeOthers:function(e){return e.at(-1)}};function Oz(...e){return(function(e){var t,n,r;let i={defaultMergeFunctions:OL,mergeFunctions:OC({},OL,Object.fromEntries(Object.entries(e).filter(([e,t])=>Object.hasOwn(OL,e)).map(([e,t])=>!1===t?[e,OL.mergeOthers]:[e,t]))),metaDataUpdater:null!=(t=e.metaDataUpdater)?t:OA,deepmerge:o,useImplicitDefaultMerging:null!=(n=e.enableImplicitDefaultMerging)&&n,filterValues:!1===e.filterValues?void 0:null!=(r=e.filterValues)?r:OR,actions:OP};function o(...e){return OF(e,i,void 0)}return o}
66)({})(...e)}function OF(e,t,n){var r;let i=null!=(r=null==t.filterValues?void 0:t.filterValues(e,n))?r:e;if(0===i.length)return;if(1===i.length)return OB(i,t,n);let o=ON(i[0]);if(0!==o&&5!==o){for(let e=1;e<i.length;e++)if(ON(i[e])!==o)return OB(i,t,n)}switch(o){case 1:let a;return(a=t.mergeFunctions.mergeRecords(i,t,n))===OP.defaultMerge||t.useImplicitDefaultMerging&&void 0===a&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(i,t,n):a;case 2:let s;return(s=t.mergeFunctions.mergeArrays(i,t,n))===OP.defaultMerge||t.useImplicitDefaultMerging&&void 0===s&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(i):s;case 3:let l;return(l=t.mergeFunctions.mergeSets(i,t,n))===OP.defaultMerge||t.useImplicitDefaultMerging&&void 0===l&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(i):l;case 4:let u;return(u=t.mergeFunctions.mergeMaps(i,t,n))===OP.defaultMerge||t.useImplicitDefaultMerging&&void 0===u&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(i):u;default:return OB(i,t,n)}}function OB(e,t,n){let r=t.mergeFunctions.mergeOthers(e,t,n);return r===OP.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}function OU(e){let t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){let r=t[n],i=e[r];"constructor"!==r&&"function"==typeof i&&(e[r]=i.bind(e))}return e}function O$(e){return OO(e)&&""!==e?"-"!==e.charAt(e.length-1)?`${e}-`:e:""}function OH(e){return null==e||!e.element||!e.on}function OW(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})}let OV=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),Oq=Math.min,OK=Math.max,OZ=Math.round,OG=Math.floor,OY=e=>({x:e,y:e}),OX={left:"right",right:"left",bottom:"top",top:"bottom"},OJ={start:"end",end:"start"};function OQ(e,t){return"function"==typeof e?e(t):e}function O0(e){return e.split("-")[0]}function O1(e){return e.split("-")[1]}function O2(e){return"x"===e?"y":"x"}function O3(e){return"y"===e?"height":"width"}let O4=new Set(["top","bottom"]);function O5(e){return O4.has(O0(e))?"y":"x"}function O6(e,t,n){void 0===n&&(n=!1);let r=O1(e),i=O2(O5(e)),o=O3(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=jn(a)),[a,jn(a)]}function O8(e){return e.replace(/start|end/g,e=>OJ[e])}let O9=["left","right"],O7=["right","left"],je=["top","bottom"],jt=["bottom","top"];function jn(e){return e.replace(/left|right|bottom|top/g,e=>OX[e])}function jr(e){return"number"!=typeof e?OC({top:0,right:0,bottom:0,left:0},e):{top:e,right:e,bottom:e,left:e}}function ji(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}let jo=["crossAxis","alignment","allowedPlacements","autoAlignment"],ja=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],js=["mainAxis","crossAxis","limiter"];function jl(e,t,n){let r,{reference:i,floating:o}=e,a=O5(t),s=O2(O5(t)),l=O3(s),u=O0(t),c="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(O1(t)){case"start":r[s]-=h*(n&&c?-1:1);break;case"end":r[s]+=h*(n&&c?-1:1)}return r}async function ju(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=OQ(t,e),p=jr(h),m=s[f?"floating"===d?"reference":"floating":d],g=ji(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=ji(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}let jc=new Set(["left","top"]);
66function jd(){return"u">typeof window}function jf(e){return jm(e)?(e.nodeName||"").toLowerCase():"#document"}function jh(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function jp(e){var t;return null==(t=(jm(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function jm(e){return!!jd()&&(e instanceof Node||e instanceof jh(e).Node)}function jg(e){return!!jd()&&(e instanceof Element||e instanceof jh(e).Element)}function jy(e){return!!jd()&&(e instanceof HTMLElement||e instanceof jh(e).HTMLElement)}function jv(e){return!(!jd()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof jh(e).ShadowRoot)}let jb=new Set(["inline","contents"]);function jw(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=jP(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!jb.has(i)}let jx=new Set(["table","td","th"]),j_=[":popover-open",":modal"];function jk(e){return j_.some(t=>{try{return e.matches(t)}catch{return!1}})}let jS=["transform","translate","scale","rotate","perspective"],jE=["transform","translate","scale","rotate","perspective","filter"],jO=["paint","layout","strict","content"];function jj(e){let t=jT(),n=jg(e)?jP(e):e;return jS.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||jE.some(e=>(n.willChange||"").includes(e))||jO.some(e=>(n.contain||"").includes(e))}function jT(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}let jC=new Set(["html","body","#document"]);function jI(e){return jC.has(jf(e))}function jP(e){return jh(e).getComputedStyle(e)}function jA(e){return jg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jR(e){if("html"===jf(e))return e;let t=e.assignedSlot||e.parentNode||jv(e)&&e.host||jp(e);return jv(t)?t.host:t}function jN(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=jR(t);return jI(n)?t.ownerDocument?t.ownerDocument.body:t.body:jy(n)&&jw(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=jh(i);if(o){let e=jM(a);return t.concat(a,a.visualViewport||[],jw(i)?i:[],e&&n?jN(e):[])}return t.concat(i,jN(i,[],n))}function jM(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jD(e){let t=jP(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=jy(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=OZ(n)!==o||OZ(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function jL(e){return jg(e)?e:e.contextElement}function jz(e){let t=jL(e);if(!jy(t))return OY(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=jD(t),a=(o?OZ(n.width):n.width)/r,s=(o?OZ(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let jF=OY(0);function jB(e){let t=jh(e);return jT()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:jF}function jU(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=jL(e),s=OY(1);t&&(r?jg(r)&&(s=jz(r)):s=jz(e));let l=(void 0===(i=n)&&(i=!1),!(!r||i&&r!==jh(a))&&i)?jB(a):OY(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=jh(a),t=r&&jg(r)?jh(r):r,n=e,i=jM(n);for(;i&&r&&t!==n;){let e=jz(i),t=i.getBoundingClientRect(),r=jP(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,i=jM(n=jh(i))}}return ji({width:d,height:f,x:u,y:c})}function j$(e,t){let n=jA(e).scrollLeft;return t?t.left+n:jU(jp(e)).left+n}function jH(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-j$(e,n),y:n.top+t.scrollTop}}let jW=new Set(["absolute","fixed"]);function jV(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=jh(e),r=jp(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=jT();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=j$(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t){let t,n,o,a,s,l,u;r=jp(e),t=jp(r),n=jA(r),o=r.ownerDocument.body,a=OK(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=OK(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),l=-n.scrollLeft+j$(r),u=-n.scrollTop,"rtl"===jP(o).direction&&(l+=OK(t.clientWidth,o.clientWidth)-a),i={width:a,height:s,x:l,y:u}}else if(jg(t)){let e,r,o,a;r=(e=jU(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,a=jy(t)?jz(t):OY(1),i={width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:o*a.x,y:r*a.y}}else{let n=jB(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ji(i)}function jq(e){return"static"===jP(e).position}function jK(e,t){if(!jy(e)||"fixed"===jP(e).position)return null;if(t)return t(e);let n=e.offsetParent;return jp(e)===n&&(n=n.ownerDocument.body),n}function jZ(e,t){var n;let r=jh(e);if(jk(e))return r;if(!jy(e)){let t=jR(e);for(;t&&!jI(t);){if(jg(t)&&!jq(t))return t;t=jR(t)}return r}let i=jK(e,t);for(;i&&(n=i,jx.has(jf(n)))&&jq(i);)i=jK(i,t);return i&&jI(i)&&jq(i)&&!jj(i)?r:i||function(e){let t=jR(e);for(;jy(t)&&!jI(t);){if(jj(t))return t;if(jk(t))break;t=jR(t)}return null}(e)||r}let jG={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=jp(r),s=!!t&&jk(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=OY(1),c=OY(0),d=jy(r);
66if((d||!d&&!o)&&(("body"!==jf(r)||jw(a))&&(l=jA(r)),jy(r))){let e=jU(r);u=jz(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||o?OY(0):jH(a,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:jp,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?jk(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=jN(e,[],!1).filter(e=>jg(e)&&"body"!==jf(e)),i=null,o="fixed"===jP(e).position,a=o?jR(e):e;for(;jg(a)&&!jI(a);){let t=jP(a),n=jj(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&jW.has(i.position)||jw(a)&&!n&&function e(t,n){let r=jR(t);return!(r===n||!jg(r)||jI(r))&&("fixed"===jP(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=jR(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=jV(t,n,i);return e.top=OK(r.top,e.top),e.right=Oq(r.right,e.right),e.bottom=Oq(r.bottom,e.bottom),e.left=OK(r.left,e.left),e},jV(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:jZ,getElementRects:async function(e){let t=this.getOffsetParent||jZ,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=jy(t),i=jp(t),o="fixed"===n,a=jU(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=OY(0);if(r||!r&&!o)if(("body"!==jf(t)||jw(i))&&(s=jA(t)),r){let e=jU(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=j$(i));o&&!r&&i&&(l.x=j$(i));let u=!i||r||o?OY(0):jH(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=jD(e);return{width:t,height:n}},getScale:jz,isElement:jg,isRTL:function(e){return"rtl"===jP(e).direction}};function jY(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jX(e,t,...n){let r=document.createElement(e);return jQ(r,t),j0(r,n),r}function jJ(e,t,...n){let r=document.createElementNS("http://www.w3.org/2000/svg",e);return jQ(r,t),j0(r,n),r}function jQ(e,t){if(t)for(let[n,r]of Object.entries(t))null!=r&&!1!==r&&(n.startsWith("on")&&"function"==typeof r?e.addEventListener(n.slice(2).toLowerCase(),r):"disabled"===n&&!0===r?e.disabled=!0:e.setAttribute(n,String(r)))}function j0(e,t){for(let n of t)null!=n&&!1!==n&&e.append("string"==typeof n?document.createTextNode(n):n)}function j1(e,t){return OE(e)?e.call(t):e}class j2 extends OT{constructor(e,t={}){return super(),this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this._originalTabIndexes=void 0,this.classPrefix=void 0,this.el=void 0,this.shepherdElementComponent=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?O$(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,this._originalTabIndexes=new Map,OU(this),this._setOptions(t),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){this._teardownElements(),this.trigger("destroy")}_teardownElements(){this.cleanup&&this.cleanup(),this.cleanup=null,this.shepherdElementComponent&&(this.shepherdElementComponent.cleanup(),this.shepherdElementComponent=void 0),OS(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this._originalTabIndexes.clear()}getTour(){return this.tour}hide(){var e;null==(e=this.tour.modal)||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){return this._resolvedExtraHighlightElements=this.options.extraHighlights?this.options.extraHighlights.flatMap(e=>Array.from(document.querySelectorAll(e))):[],this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=function(e){let t=Object.assign({},e.options.attachTo||{});if(OE(t.element)&&(t.element=t.element.call(e)),OO(t.element)){try{t.element=document.querySelector(t.element)}catch{}t.element}return t}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}
66show(){return OE(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.el&&(this._teardownElements(),this._setupElements())}getElement(){return this.el}getTarget(){return this.target}_storeOriginalTabIndex(e){let t=e.getAttribute("tabindex");null!==t&&this._originalTabIndexes.set(e,t)}_restoreOriginalTabIndexes(){let e=this.target;e&&(this._originalTabIndexes.has(e)?e.setAttribute("tabindex",this._originalTabIndexes.get(e)):e.removeAttribute("tabindex"))}_createTooltipContent(){let e=`${this.id}-description`,t=`${this.id}-label`;return this.shepherdElementComponent=function(e){var t,n,r,i,o,a;let s,l,u,c,d,f,h,p,m,g,y,v,{classPrefix:b,descriptionId:w,labelId:x,step:_}=e,k=null!=(t=null==(n=_.options)||null==(n=n.cancelIcon)?void 0:n.enabled)&&t,S=null!=(r=null==(i=_.options)?void 0:i.title)&&r,E=e=>{let{tour:t}=_;switch(e.keyCode){case 9:var n,r,i,o,a;if((!l||0===l.length)&&f&&0===f.length){e.preventDefault();break}e.shiftKey?document.activeElement===d||null!=(n=document.activeElement)&&n.classList.contains("shepherd-element")?(e.preventDefault(),null==(r=c??h)||r.focus()):document.activeElement===u&&(e.preventDefault(),null==(o=h)||o.focus()):document.activeElement===h?(e.preventDefault(),null==(i=u??d)||i.focus()):document.activeElement===c&&(e.preventDefault(),null==(a=d)||a.focus());break;case 27:t.options.exitOnEsc&&(e.preventDefault(),e.stopPropagation(),_.cancel());break;case 37:t.options.keyboardNavigation&&(e.preventDefault(),e.stopPropagation(),t.back());break;case 39:t.options.keyboardNavigation&&(e.preventDefault(),e.stopPropagation(),t.next())}},O=jX("dialog",{"aria-describedby":Oj(_.options.text)?null:w,"aria-labelledby":_.options.title?x:null,class:["shepherd-element",k?"shepherd-has-cancel-icon":"",S?"shepherd-has-title":""].filter(Boolean).join(" "),[`data-${b}shepherd-step-id`]:_.id,onkeydown:E,open:"true"});if(_.options.arrow&&_.options.attachTo&&_.options.attachTo.element&&_.options.attachTo.on&&O.append(jX("div",{class:"shepherd-arrow","data-
66popper-arrow":""})),O.append((p=jX("div",{class:"shepherd-content"}),(!Oj(_.options.title)||_.options.cancelIcon&&_.options.cancelIcon.enabled)&&p.append((m=jX("header",{class:"shepherd-header"}),_.options.title&&m.append((o=_.options.title,(g=jX("h3",{id:x,class:"shepherd-title"})).innerHTML=OE(o)?o():o,g)),_.options.cancelIcon&&_.options.cancelIcon.enabled&&m.append((a=_.options.cancelIcon,jX("button",OC({},a.attrs||{},{"aria-label":a.label?a.label:"Close Tour",class:"shepherd-cancel-icon",onclick:e=>{e.preventDefault(),_.cancel()},type:"button"}),jX("span",{"aria-hidden":"true"},"×")))),m)),Oj(_.options.text)||p.append((y=jX("div",{class:"shepherd-text",id:w}),OE(v=_.options.text)&&(v=v.call(_)),OS(v)?y.appendChild(v):y.innerHTML=v,y)),Array.isArray(_.options.buttons)&&_.options.buttons.length&&p.append(function(e){let t=jX("footer",{class:"shepherd-footer"});if(e.options.buttons)for(let n of e.options.buttons)t.append(function(e,t){let n=e.action?e.action.bind(t.tour):null,r=!!e.disabled&&j1(e.disabled,t),i=e.label?j1(e.label,t):null,o=e.text?j1(e.text,t):null,a=jX("button",OC({},e.attrs||{},{"aria-label":i||null,class:`${e.classes||""} shepherd-button ${e.secondary?"shepherd-button-secondary":""}`,disabled:r||null,onclick:n,tabindex:"0",type:"button"}));return o&&(a.innerHTML=o),a}(n,e));return t}(_)),p)),OO(_.options.classes)){let e=_.options.classes.split(" ").filter(e=>!!e.length);e.length&&O.classList.add(...e)}let j='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]';d=(f=[...O.querySelectorAll(j)])[0],h=f[f.length-1];let T=_._getResolvedAttachToOptions();return null!=T&&T.element&&(s=T.element,_._storeOriginalTabIndex(s),s.tabIndex=0,u=(l=[s,...s.querySelectorAll(j)])[0],c=l[l.length-1],s.addEventListener("keydown",E)),{element:O,cleanup:()=>{var e;null==(e=s)||e.removeEventListener("keydown",E)}}}({classPrefix:this.classPrefix,descriptionId:e,labelId:t,step:this}),(this.tour.options.stepsContainer||document.body).append(this.shepherdElementComponent.element),this.shepherdElementComponent.element}_scrollTo(e){let{element:t}=this._getResolvedAttachToOptions();OE(this.options.scrollToHandler)?this.options.scrollToHandler(t):t instanceof Element&&"function"==typeof t.scrollIntoView&&t.scrollIntoView(e)}_getClassOptions(e){let t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=e.classes?e.classes:"",r=t&&t.classes?t.classes:"";return Array.from(new Set([...n.split(" "),...r.split(" ")])).join(" ").trim()}_setOptions(e={}){let t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;t=Oz({},t||{}),this.options=Object.assign({arrow:!0},t,e,{floatingUIOptions:Oz(t.floatingUIOptions||{},e.floatingUIOptions||{})});let{when:n}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${OW()}`,n&&Object.keys(n).forEach(e=>{this.on(e,n[e],this)})}_setupElements(){Oj(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function(e){let{event:t,selector:n}=e.options.advanceOn||{};if(t){let r=t=>{if(e.isOpen()){let r=e.el&&t.currentTarget===e.el;(!Oj(n)&&t.currentTarget.matches(n)||r)&&e.tour.next()}},i=null;if(!Oj(n)&&!(i=document.querySelector(n)))return;i?(i.addEventListener(t,r),e.on("destroy",()=>i.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}}(this),function(e){e.cleanup&&e.cleanup();let t=e._getResolvedAttachToOptions(),n=t.element,r=function(e,t){var n,r,i,o,a,s,l,u;let c={strategy:"absolute",middleware:[]},d=!!t.options.arrow&&!!t.el&&t.el.querySelector(".shepherd-arrow"),f=OH(e),h=null==(n=e.on)?void 0:n.includes("auto"),p=(null==e||null==(r=e.on)?void 0:r.includes("-start"))||(null==e||null==(i=e.on)?void 0:i.includes("-end"));if(!f){if(h?c.middleware.push({name:"autoPlacement",options:a={crossAxis:!0,alignment:p?null==e||null==(o=e.on)?void 0:o.split("-").pop():null},async fn(e){var t,n,r,i;let{rects:o,middlewareData:s,placement:l,platform:u,elements:c}=e,d=OQ(a,e),{crossAxis:f=!1,alignment:h,allowedPlacements:p=OV,autoAlignment:m=!0}=d,g=OI(d,jo),y=void 0!==h||p===OV?((i=h||null)?[...p.filter(e=>O1(e)===i),...p.filter(e=>O1(e)!==i)]:p.filter(e=>O0(e)===e)).filter(e=>!i||O1(e)===i||!!m&&O8(e)!==e):p,v=await u.detectOverflow(e,g),b=(null==(t=s.autoPlacement)?void 0:t.index)||0,w=y[b];if(null==w)return{};let x=O6(w,o,await (null==u.isRTL?void 0:u.isRTL(c.floating)));if(l!==w)return{reset:{placement:y[0]}};let _=[v[O0(w)],v[x[0]],v[x[1]]],k=[...(null==(n=s.autoPlacement)?void 0:n.overflows)||[],{placement:w,overflows:_}],S=y[b+1];if(S)return{data:{index:b+1,overflows:k},reset:{placement:S}};let E=k.map(e=>{let t=O1(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce((e,t)=>
66e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),O=(null==(r=E.filter(e=>e[2].slice(0,O1(e[0])?2:3).every(e=>e<=0))[0])?void 0:r[0])||E[0][0];return O!==l?{data:{index:b+1,overflows:k},reset:{placement:O}}:{}}}):c.middleware.push((void 0===s&&(s={}),{name:"flip",options:s,async fn(e){var t,n,r,i,o;let a,l,u,{placement:c,middlewareData:d,rects:f,initialPlacement:h,platform:p,elements:m}=e,g=OQ(s,e),{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:_=!0}=g,k=OI(g,ja);if(null!=(t=d.arrow)&&t.alignmentOffset)return{};let S=O0(c),E=O5(h),O=O0(h)===h,j=await (null==p.isRTL?void 0:p.isRTL(m.floating)),T=b||(O||!_?[jn(h)]:(a=jn(h),[O8(h),a,O8(a)])),C="none"!==x;!b&&C&&T.push(...(l=O1(h),u=function(e,t,n){switch(e){case"top":case"bottom":return n?t?O7:O9:t?O9:O7;case"left":case"right":return t?je:jt;default:return[]}}(O0(h),"start"===x,j),l&&(u=u.map(e=>e+"-"+l),_&&(u=u.concat(u.map(O8)))),u));let I=[h,...T],P=await p.detectOverflow(e,k),A=[],R=(null==(n=d.flip)?void 0:n.overflows)||[];if(y&&A.push(P[S]),v){let e=O6(c,f,j);A.push(P[e[0]],P[e[1]])}if(R=[...R,{placement:c,overflows:A}],!A.every(e=>e<=0)){let e=((null==(r=d.flip)?void 0:r.index)||0)+1,t=I[e];if(t&&("alignment"!==v||E===O5(t)||R.every(e=>O5(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:R},reset:{placement:t}};let n=null==(i=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(w){case"bestFit":{let e=null==(o=R.filter(e=>{if(C){let t=O5(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=h}if(c!==n)return{reset:{placement:n}}}return{}}})),c.middleware.push({name:"shift",options:u={limiter:(void 0===l&&(l={}),{options:l,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=OQ(l,e),c={x:t,y:n},d=O5(r),f=O2(d),h=c[f],p=c[d],m=OQ(a,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:OC({mainAxis:0,crossAxis:0},m);if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(u){var y,v;let e="y"===f?"width":"height",t=jc.has(O0(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=o.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),a=i.reference[d]+i.reference[e]+(t?0:(null==(v=o.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>a&&(p=a)}return{[f]:h,[d]:p}}}),crossAxis:!0},async fn(e){let{x:t,y:n,placement:r,platform:i}=e,o=OQ(u,e),{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=o,c=OI(o,js),d={x:t,y:n},f=await i.detectOverflow(e,c),h=O5(O0(r)),p=O2(h),m=d[p],g=d[h];if(a){let e="y"===p?"bottom":"right";m=OK(m+f["y"===p?"top":"left"],Oq(m,m-f[e]))}if(s){let e="y"===h?"bottom":"right";g=OK(g+f["y"===h?"top":"left"],Oq(g,g-f[e]))}let y=l.fn(OC({},e,{[p]:m,[h]:g}));return OC({},y,{data:{x:y.x-t,y:y.y-n,enabled:{[p]:a,[h]:s}}})}}),d){let e,n="object"==typeof t.options.arrow?t.options.arrow:{padding:4};c.middleware.push({name:"arrow",options:e={element:d,padding:p?n.padding:0},async fn(t){let{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=OQ(e,t)||{};if(null==u)return{};let d=jr(c),f={x:n,y:r},h=O2(O5(i)),p=O3(h),m=await a.getDimensions(u),g="y"===h,y=g?"clientHeight":"clientWidth",v=o.reference[p]+o.reference[h]-f[h]-o.floating[p],b=f[h]-o.reference[h],w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),x=w?w[y]:0;x&&await (null==a.isElement?void 0:a.isElement(w))||(x=s.floating[y]||o.floating[p]);let _=x/2-m[p]/2-1,k=Oq(d[g?"top":"left"],_),S=Oq(d[g?"bottom":"right"],_),E=x-m[p]-S,O=x/2-m[p]/2+(v/2-b/2),j=OK(k,Oq(O,E)),T=!l.arrow&&null!=O1(i)&&O!==j&&o.reference[p]/2-(O<k?k:S)-m[p]/2<0,C=T?O<k?O-k:O-E:0;return{[h]:f[h]+C,data:OC({[h]:j,centerOffset:O-j-C},T&&{alignmentOffset:C}),reset:T}}})}h||(c.placement=e.on)}return Oz(c,t.options.floatingUIOptions||{})}(t,e),i=OH(t);if(i){var o;n=document.body;let t=null==(o=e.shepherdElementComponent)?void 0:o.element;t?.classList.add("shepherd-centered")}e.cleanup=function(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=jL(e),c=i||o?[...u?jN(u):[],...jN(t)]:[];
66c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let d=u&&s?function(e,t){let n,r=null,i=jp(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;let p={rootMargin:-OG(d)+"px "+-OG(i.clientWidth-(c+f))+"px "+-OG(i.clientHeight-(d+h))+"px "+-OG(c)+"px",threshold:OK(0,Oq(1,l))||1},m=!0;function g(t){let r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||jY(u,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,OC({},p,{root:i.ownerDocument}))}catch{r=new IntersectionObserver(g,p)}r.observe(e)}(!0),o}(u,n):null,f,h=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let m=l?jU(e):null;return l&&function t(){let r=jU(e);m&&!jY(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),d?.(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}(n,e.el,()=>{var t,o;let a,s,l;e.el?(t=n,o=e.el,a=new Map,s=OC({platform:jG},r),l=OC({},s.platform,{_c:a}),(async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=jl(u,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){var m;let{name:o,fn:g}=s[n],{x:y,y:v,data:b,reset:w}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:u,platform:OC({},a,{detectOverflow:null!=(m=a.detectOverflow)?m:ju}),elements:{reference:e,floating:t}});c=y??c,d=v??d,h=OC({},h,{[o]:OC({},h[o],b)}),w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:d}=jl(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}})(t,o,OC({},s,{platform:l}))).then(({x:t,y:n,placement:r,middlewareData:o})=>(e.el&&(i?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${t}px`,top:`${n}px`}),e.el.dataset.popperPlacement=r,function(e,t){let n=e.querySelector(".shepherd-arrow");if(OS(n)&&t.arrow){let{x:e,y:r}=t.arrow;Object.assign(n.style,{left:null!=e?`${e}px`:"",top:null!=r?`${r}px`:""})}}(e.el,o)),e)).then(e=>new Promise(t=>{setTimeout(()=>t(e),300)})).then(e=>{null!=e&&e.el&&(e.el.tabIndex=0,e.el.focus({preventScroll:!0}))}):null==e.cleanup||e.cleanup()}),e.target=t.element}(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),null==(e=this.tour.modal)||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);let t=this.shepherdElementComponent.element,n=this.target||document.body,r=this._resolvedExtraHighlightElements;n.classList.add(`${this.classPrefix}shepherd-enabled`),n.classList.add(`${this.classPrefix}shepherd-target`),t.classList.add("shepherd-enabled"),r?.forEach(e=>{e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(e){let t=e.target,n=e._resolvedExtraHighlightElements;if(!t)return;let r=e.options.highlightClass;r&&(t.classList.add(r),n?.forEach(e=>e.classList.add(r))),t.classList.remove("shepherd-target-click-disabled"),n?.forEach(e=>e.classList.remove("shepherd-target-click-disabled")),!1===e.options.canClickTarget&&(t.classList.add("shepherd-target-click-disabled"),n?.forEach(e=>e.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){let e=this.target||document.body,t=this._resolvedExtraHighlightElements,n=this.options.highlightClass;
66n&&(e.classList.remove(n),t?.forEach(e=>e.classList.remove(n))),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),t?.forEach(e=>{e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}),this._restoreOriginalTabIndexes()}}let j3=new class extends OT{constructor(){super(),this.activeTour=void 0,OU(this)}},j4=typeof window>"u";j3.Step=j4?class{constructor(e){}}:j2,j3.Tour=j4?class{constructor(e,t){}}:class extends OT{constructor(e={}){return super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,OU(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),this.classPrefix=O$(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(e=>{this.on(e,t=>{(t=t||{}).tour=this,j3.trigger(e,t)})}),this._setTourID(e.id),this}addStep(e,t){let n=e;return n instanceof j2?n.tour=this:n=new j2(this,n),Oj(t)?this.steps.push(n):this.steps.splice(t,0,n),n}addSteps(e){return Array.isArray(e)&&e.forEach(e=>{this.addStep(e)}),this}back(){let e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){let e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";(OE(this.options.confirmCancel)?await this.options.confirmCancel():window.confirm(e))&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(t=>t.id===e)}getCurrentStep(){return this.currentStep}hide(){let e=this.getCurrentStep();if(e)return e.hide()}isActive(){return j3.activeTour===this}next(){let e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){let t=this.getCurrentStep();this.steps.some((t,n)=>{if(t.id===e)return t.isOpen()&&t.hide(),t.destroy(),this.steps.splice(n,1),!0}),t&&t.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,t=!0){let n=OO(e)?this.getById(e):this.steps[e];n&&(this._updateStateBeforeShow(),OE(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,t):(this.currentStep=n,this.trigger("show",{step:n,previous:this.currentStep}),n.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){let t=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(e=>e.destroy()),function(e){if(e){let{steps:t}=e;t.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&(OS(e.target)&&e.target.classList.remove("shepherd-target-click-disabled"),e._resolvedExtraHighlightElements&&e._resolvedExtraHighlightElements.forEach(e=>{OS(e)&&e.classList.remove("shepherd-target-click-disabled")}))})}}(this),this.trigger(e,{index:t}),j3.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),"cancel"!==e&&"complete"!==e||this.modal&&(this.modal.destroy(),this.modal=null),OS(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),j3.activeTour=this}setupModal(){let e=this.options.modalContainer||document.body;this.modal=function(e){let t,n=[{width:0,height:0,x:0,y:0,r:0}],r=jJ("path"),i=jJ("svg",{class:"shepherd-modal-overlay-container"},r);function o(){r.setAttribute("d",function(e){let t="",{innerWidth:n,innerHeight:r}=window;return e.forEach(e=>{let{width:n,height:r,x:i=0,y:o=0,r:a=0}=e,{topLeft:s=0,topRight:l=0,bottomRight:u=0,bottomLeft:c=0}="number"==typeof a?{topLeft:a,topRight:a,bottomRight:a,bottomLeft:a}:a;t+=`M${i+s},${o}a${s},${s},0,0,0-${s},${s}V`+(r+o-c)+`a${c},${c},0,0,0,${c},${c}H`+(n+i-u)+`a${u},${u},0,0,0,${u}-${u}V${o+l}a${l},${l},0,0,0-${l}-${l}Z`}),`M${n},${r}H0V0H${n}V${r}Z${t}`.replace(/\s/g,"")}(n))}function a(){n=[{width:0,height:0,x:0,y:0,r:0}],o()}function s(){i.classList.remove("shepherd-modal-is-visible"),f()}function l(){i.classList.add("shepherd-modal-is-visible")}function u(e=0,t=0,r=0,i=0,s,l,c){if(l){{let o=[l,...c||[]],a=[];for(let n of o){if(!n||o.indexOf(n)!==o.lastIndexOf(n))continue;let{y:l,height:u}=h(n,s),{x:c,width:d,left:f}=n.getBoundingClientRect();o.some(e=>{if(e===n)return!1;let t=e.getBoundingClientRect(),{y:r,height:i}=h(e,s);return c>=t.left&&c+d<=t.left+t.width&&l>=r&&l+u<=r+i})||a.push({width:d+2*e,height:u+2*e,x:(c||f)+r-e,y:l+i-e,r:t})}n=a}o()}else a()}function c(e){e.stopPropagation()}i.addEventListener("touchmove",c),o(),e.append(i);let d=e=>{e.preventDefault()};function f(){t&&(cancelAnimationFrame(t),t=void 0),window.removeEventListener("touchmove",d,{passive:!1})}function h(e,t){let n=e.getBoundingClientRect(),r=n.y||n.top,i=n.bottom||r+n.height;if(t){let e=t.getBoundingClientRect(),n=e.y||e.top,o=e.bottom||n+e.height;r=Math.max(r,n),i=Math.min(i,o)}return{y:r,height:Math.max(i-r,0)}}return{closeModalOpening:a,destroy:function(){f(),i.removeEventListener("touchmove",c),i.remove()},hide:s,positionModal:u,setupForStep:function(e){f(),e.tour.options.useModalOverlay?(function(e){let{modalOverlayOpeningPadding:n,modalOverlayOpeningRadius:r,modalOverlayOpeningXOffset:i=0,modalOverlayOpeningYOffset:o=0}=e.options,a=function(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;try{for(;n&&n!==window.top;){var r;let e=null==(r=n)?void 0:r.frameElement;if(e){let n=e.getBoundingClientRect();t.top+=n.top+e.scrollTop,t.left+=n.left+e.scrollLeft}n=n.parent}}catch{}return t}(e.target),s=function e(t){if(!t)return null;let n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==n&&"visible"!==n&&t.scrollHeight>=t.clientHeight?t:e(t.parentElement)}(e.target),l=()=>{t=void 0,u(n,r,i+a.left,o+a.top,s,e.target,e._resolvedExtraHighlightElements),t=requestAnimationFrame(l)};l(),window.addEventListener("touchmove",d,{passive:!1})}(e),l()):s()},show:l,getElement:function(){return i}}}(e)}_skipStep(e,t){let n=this.steps.indexOf(e),r=t?n+1:n-1;r<0?this.cancel():r>=this.steps.length?this.complete():this.show(r,t)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){let t=this.options.tourName||"tour",n=e||OW();this.id=`${t}--${n}`}};let j5=(0,ef.createContext)(void 0),j6=(j5.Consumer,()=>{let e=(0,ef.useContext)(j5);if(!e)throw Error("useShepherd must be used within a ShepherdJourneyProvider");let{Shepherd:t}=e;return t}),j8=({children:e})=>Ok.jsx(j5.Provider,{value:{Shepherd:j3},children:e});function j9(){document.body.focus()}var ef=el("8NFma");let j7={open:150,close:0};function Te({label:e,sublabel:t,placement:n="top",role:r="tooltip",children:i}){let[o,a]=(0,ef.useState)(!1),s=(0,ef.useRef)(null),l=EG(),{refs:u,floatingStyles:c,context:d}=Od({nodeId:l,open:o,onOpenChange:a,placement:n,whileElementsMounted:SH,middleware:[SQ(10),S1({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),S0({padding:5}),S2({element:s})]}),{delay:f,currentId:h,isInstantPhase:p}=E8(d),{getReferenceProps:m,getFloatingProps:g}=Om([E3(d,{delay:f}),Oh(d),Oc(d),function(e,t){var n,r;void 0===t&&(t={});let{open:i,elements:o,floatingId:a}=e,{enabled:s=!0,role:l="dialog"}=t,u=EH(),c=(null==(n=o.domReference)?void 0:n.id)||u,d=ef.useMemo(()=>{var e,t;return(null==(e=(t=o.floating)?t.hasAttribute(Eb)?t:t.querySelector("["+Eb+"]")||t:null)?void 0:e.id)||a},[o.floating,a]),f=null!=(r=Og.get(l))?r:l,h=null!=EZ(),p=ef.useMemo(()=>"tooltip"===f||"label"===l?{["aria-"+("label"===l?"labelledby":"describedby")]:i?d:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===f?"dialog":f,"aria-controls":i?d:void 0,..."listbox"===f&&{role:"combobox"},..."menu"===f&&{id:c},..."menu"===f&&h&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}},[f,d,h,i,c,l]),m=ef.useMemo(()=>
66{let e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===l?e:{...e,..."menu"===f&&{"aria-labelledby":c}}},[f,d,c,l]),g=ef.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:d+"-fui-option"}};switch(l){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,l]);return ef.useMemo(()=>s?{reference:p,floating:m,item:g}:{},[s,p,m,g])}(d,{role:r})]),{isMounted:y,styles:v}=Ob(d,{duration:p?{open:0,close:150*(h===d.floatingId)}:150,initial:({side:e})=>({opacity:0,transform:({top:"translateY(-8px)",bottom:"translateY(8px)",left:"translateX(-8px)",right:"translateX(8px)"})[e]})}),b=(0,ef.cloneElement)(i,m({ref:ED([u.setReference,i.props.ref]),...i.props}));return void 0===e?i:(0,ec.jsxs)(ec.Fragment,{children:[b,(0,ec.jsx)(EY,{id:l,children:y&&(0,ec.jsx)(Oi,{id:"floating-tooltip-container",children:(0,ec.jsx)("div",{ref:u.setFloating,style:c,...g(),children:(0,ec.jsxs)("div",{className:"tooltip",style:v,children:[(0,ec.jsx)("p",{className:"tooltip-label",children:e}),void 0!==t&&(0,ec.jsx)("p",{className:"tooltip-sublabel",children:t}),(0,ec.jsx)(EW,{className:"tooltip-arrow",ref:s,context:d})]})})})})]})}function Tt({children:e,...t}){return(0,ec.jsx)(E6,{delay:j7,timeoutMs:200,...t,children:e})}var ef=el("8NFma"),Tn=class e extends Error{constructor(t,n,r){const i=r?r instanceof Error?r:Error(String(r)):void 0;super(`[@formatjs/intl Error ${t}] ${n}
67${i?`
68${i.message}
69${i.stack}`:""}`),this.code=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}},Tr=class extends Tn{constructor(e,t){super("UNSUPPORTED_FORMATTER",e,t)}},Ti=class extends Tn{constructor(e,t){super("INVALID_CONFIG",e,t)}},To=class extends Tn{constructor(e,t){super("MISSING_DATA",e,t)}},Ta=class extends Tn{constructor(e,t,n){super("FORMAT_ERROR",`${e}
70Locale: ${t}
71`,n),this.locale=t}},Ts=class extends Ta{constructor(e,t,n,r){super(`${e}
72MessageID: ${n?.id}
73Default Message: ${n?.defaultMessage}
74Description: ${n?.description}
75`,t,r),this.descriptor=n,this.locale=t}},Tl=class extends Tn{constructor(e,t){super("MISSING_TRANSLATION",`Missing message: "${e.id}" for locale "${t}", using ${e.defaultMessage?`default message (${"string"==typeof e.defaultMessage?e.defaultMessage:e.defaultMessage.map(e=>e.value??JSON.stringify(e)).join()})`:"id"} as fallback.`),this.descriptor=e}};function Tu(e,t,n={}){return t.reduce((t,r)=>(r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t),{})}let Tc={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:e=>{},onWarn:e=>{}};function Td(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Tf(e){return{create:()=>({get:t=>e[t],set(t,n){e[t]=n}})}}function Th(e,t,n,r){let i,o=e&&e[t];if(o&&(i=o[n]),i)return i;r(new Tr(`No ${t} format named: ${n}`))}function Tp(e,t){return Object.keys(e).reduce((n,r)=>(n[r]={timeZone:t,...e[r]},n),{})}function Tm(e,t){return Object.keys({...e,...t}).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}function Tg(e,t){if(!t)return e;let n=pr.formats;return{...n,...e,date:Tm(Tp(n.date,t),Tp(e.date||{},t)),time:Tm(Tp(n.time,t),Tp(e.time||{},t))}}let Ty=({locale:e,formats:t,messages:n,defaultLocale:r,defaultFormats:i,fallbackOnEmptyString:o,onError:a,timeZone:s,defaultRichTextElements:l},u,c={id:""},d,f)=>{let{id:h,defaultMessage:p}=c;h||function(e,t,n=Error){if(!e)throw new n(t)}(!1,`[@formatjs/intl] An \`id\` must be provided to format a message. You can either:
761. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)
77or [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR
782. Configure your \`eslint\` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)
79to autofix this issue${function(e){let{defaultMessage:t}=e;try{return void 0!==t?`
80Default Message: ${"string"==typeof t?t:JSON.stringify(t)}`:`
81Message Descriptor: ${JSON.stringify(e)}`}catch{return""}}(c)}`);let m=String(h),g=n&&Object.prototype.hasOwnProperty.call(n,m)&&n[m];if(Array.isArray(g)&&1===g.length&&g[0].type===h$.literal)return g[0].value;if(d={...l,...d},t=Tg(t,s),i=Tg(i,s),!g){if(!1===o&&""===g)return g;if((!p||e&&e.toLowerCase()!==r.toLowerCase())&&a(new Tl(c,e)),p)try{return u.getMessageFormat(p,r,i,f).format(d)}catch(t){return a(new Ts(`Error formatting default message for: "${m}", rendering default message verbatim`,e,c,t)),"string"==typeof p?p:m}return m}try{return u.getMessageFormat(g,e,t,{formatters:u,...f}).format(d)}catch(t){a(new Ts(`Error formatting message: "${m}", using ${p?"default message":"id"} as fallback.`,e,c,t))}if(p)try{return u.getMessageFormat(p,r,i,f).format(d)}catch(t){a(new Ts(`Error formatting the default message for: "${m}", rendering message verbatim`,e,c,t))}return"string"==typeof g?g:"string"==typeof p?p:m},Tv=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Tb({locale:e,formats:t,onError:n,timeZone:r},i,o,a={}){let{format:s}=a,l=Tu(a,Tv,{...r&&{timeZone:r},...s&&Th(t,i,s,n)});return"time"!==i||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l={...l,hour:"numeric",minute:"numeric"}),o(e,l)}function Tw(e,t,n,r={}){let i="string"==typeof n?new Date(n||0):n;try{return Tb(e,"date",t,r).format(i)}catch(t){e.onError(new Ta("Error formatting date.",e.locale,t))}return String(i)}function Tx(e,t,n,r={}){let i="string"==typeof n?new Date(n||0):n;try{return Tb(e,"time",t,r).format(i)}catch(t){e.onError(new Ta("Error formatting time.",e.locale,t))}return String(i)}function T_(e,t,n,r,i={}){let o="string"==typeof n?new Date(n||0):n,a="string"==typeof r?new Date(r||0):r;try{return Tb(e,"dateTimeRange",t,i).formatRange(o,a)}catch(t){e.onError(new Ta("Error formatting date time range.",e.locale,t))}return String(o)}function Tk(e,t,n,r={}){let i="string"==typeof n?new Date(n||0):n;try{return Tb(e,"date",t,r).formatToParts(i)}catch(t){e.onError(new Ta("Error formatting date.",e.locale,t))}return[]}function TS(e,t,n,r={}){let i="string"==typeof n?new Date(n||0):n;try{return Tb(e,"time",t,r).formatToParts(i)}catch(t){e.onError(new Ta("Error formatting time.",e.locale,t))}return[]}let TE=["style","type","fallback","languageDisplay"];function TO({locale:e,onError:t},n,r,i){Intl.DisplayNames||t(new h8(`Intl.DisplayNames is not available in this environment.
82Try polyfilling it using "@formatjs/intl-displaynames"
83`,h6.MISSING_INTL_API));let o=Tu(i,TE);try{return n(e,o).of(r)}catch(n){t(new Ta("Error formatting display name.",e,n))}}let Tj=["type","style"],TT=Date.now();function TC(e,t,n,r={}){let i=TI(e,t,n,r).reduce((e,t)=>
83{let n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function TI({locale:e,onError:t},n,r,i={}){Intl.ListFormat||t(new h8(`Intl.ListFormat is not available in this environment.
84Try polyfilling it using "@formatjs/intl-listformat"
85`,h6.MISSING_INTL_API));let o=Tu(i,Tj);try{let t={},i=Array.from(r).map((e,n)=>{if("object"==typeof e&&null!==e){let r=`${TT}_${n}_${TT}`;return t[r]=e,r}return String(e)});return n(e,o).formatToParts(i).map(e=>"literal"===e.type?e:{...e,value:t[e.value]||e.value})}catch(n){t(new Ta("Error formatting list.",e,n))}return r}let TP=["type"];function TA({locale:e,onError:t},n,r,i={}){Intl.PluralRules||t(new h8(`Intl.PluralRules is not available in this environment.
86Try polyfilling it using "@formatjs/intl-pluralrules"
87`,h6.MISSING_INTL_API));let o=Tu(i,TP);try{return n(e,o).select(r)}catch(n){t(new Ta("Error formatting plural.",e,n))}return"other"}let TR=["numeric","style"];function TN(e,t,n,r,i={}){r||(r="second"),Intl.RelativeTimeFormat||e.onError(new h8(`Intl.RelativeTimeFormat is not available in this environment.
88Try polyfilling it using "@formatjs/intl-relativetimeformat"
89`,h6.MISSING_INTL_API));try{return(function({locale:e,formats:t,onError:n},r,i={}){let{format:o}=i;return r(e,Tu(i,TR,!!o&&Th(t,"relative",o,n)||{}))})(e,t,i).format(n,r)}catch(t){e.onError(new Ta("Error formatting relative time.",e.locale,t))}return String(n)}let TM=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function TD({locale:e,formats:t,onError:n},r,i={}){let{format:o}=i;return r(e,Tu(i,TM,o&&Th(t,"number",o,n)||{}))}function TL(e,t,n,r={}){try{return TD(e,t,r).format(n)}catch(t){e.onError(new Ta("Error formatting number.",e.locale,t))}return String(n)}function Tz(e,t,n,r={}){try{return TD(e,t,r).formatToParts(n)}catch(t){e.onError(new Ta("Error formatting number.",e.locale,t))}return[]}function TF(e){!function(e,t,n=Error){if(!e)throw new n(t)}(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}let TB={...Tc,textComponent:ef.Fragment},TU=e=>ef.Children.toArray(e).map((e,t)=>ef.isValidElement(e)?(0,ec.jsx)(ef.Fragment,{children:e},t):e);function T$(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}let TH=ef.createContext(null),TW=TH.Provider;function TV(){let e=ef.useContext(TH);return TF(e),e}var Tq=((RS=Tq||{}).formatDate="FormattedDate",RS.formatTime="FormattedTime",RS.formatNumber="FormattedNumber",RS.formatList="FormattedList",RS.formatDisplayName="FormattedDisplayName",RS),TK=((RE=TK||{}).formatDate="FormattedDateParts",RE.formatTime="FormattedTimeParts",RE.formatNumber="FormattedNumberParts",RE.formatList="FormattedListParts",RE);function TZ(e){let t=t=>{let n=TV(),{value:r,children:i,...o}=t,a="string"==typeof r?new Date(r||0):r;return i("formatDate"===e?n.formatDateToParts(a,o):n.formatTimeToParts(a,o))};return t.displayName=TK[e],t}function TG(e){let t=t=>{let n=TV(),{value:r,children:i,...o}=t,a=n[e](r,o);if("function"==typeof i)return i(a);let s=n.textComponent||ef.Fragment;return(0,ec.jsx)(s,{children:a})};return t.displayName=Tq[e],t}function TY(e){return e?Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=pt(r)?function(e){return r(TU(e))}:r,t},{}):e}let TX=(e,t,n,r,...i)=>{let o=Ty(e,t,n,TY(r),...i);return Array.isArray(o)?TU(o):o};function TJ(e){let{formatMessage:t,textComponent:n=ef.Fragment}=TV(),{id:r,description:i,defaultMessage:o,values:a,children:s,tagName:l=n,ignoreTag:u}=e,c=t({id:r,description:i,defaultMessage:o},a,{ignoreTag:u});return"function"==typeof s?s(Array.isArray(c)?c:[c]):l?(0,ec.jsx)(l,{children:c}):(0,ec.jsx)(ec.Fragment,{children:c})}TJ.displayName="FormattedMessage";let TQ=ef.memo(TJ,function(e,t){let{values:n,...r}=e,{values:i,...o}=t;return T$(i,n)&&T$(r,o)});function T0(e){var t;let n=ef.useRef(Td()),r=ef.useRef(void 0),i=ef.useRef(void 0),o={};for(let t in e)void 0!==e[t]&&(o[t]=e[t]);let a={locale:(t={...TB,...o}).locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements};return r.current&&T$(r.current,a)||(r.current=a,i.current=(({defaultRichTextElements:e,...t},n)=>{let r=TY(e),i=function(e,t){var n;let r=function(e=Td()){let t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=hE((...e)=>new Intl.DateTimeFormat(...e),{cache:Tf(e.dateTime),strategy:hP.variadic}),o=hE((...e)=>new Intl.NumberFormat(...e),{cache:Tf(e.number),strategy:hP.variadic}),a=hE((...e)=>new Intl.PluralRules(...e),{cache:Tf(e.pluralRules),strategy:hP.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:hE((e,t,n,r)=>new pr(e,t,n,{formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a},...r}),{cache:Tf(e.message),strategy:hP.variadic}),getRelativeTimeFormat:hE((...e)=>new t(...e),{cache:Tf(e.relativeTime),strategy:hP.variadic}),getPluralRules:a,getListFormat:hE((...e)=>new n(...e),{cache:Tf(e.list),strategy:hP.variadic}),getDisplayNames:hE((...e)=>new r(...e),{cache:Tf(e.displayNames),strategy:hP.variadic})}}(t),i={...Tc,...e},{locale:o,defaultLocale:a,onError:s}=i;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&s?s(new To(`Missing locale data for locale: "${o}" in Intl.NumberFormat. Using default locale: "${a}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&s&&s(new To(`Missing locale data for locale: "${o}" in Intl.DateTimeFormat. Using default locale: "${a}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):(s&&s(new Ti(`"locale" was not configured, using "${a}" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details`)),i.locale=i.defaultLocale||"en"),i.onWarn&&i.defaultRichTextElements&&"string"==typeof(n=i.messages||{})[Object.keys(n)[0]]&&i.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. 
90Please consider using "@formatjs/cli" to pre-compile your messages for performance.
91For more details see https://formatjs.github.io/docs/getting-started/message-distribution`),{...i,formatters:r,formatNumber:TL.bind(null,i,r.getNumberFormat),formatNumberToParts:Tz.bind(null,i,r.getNumberFormat),formatRelativeTime:TN.bind(null,i,r.getRelativeTimeFormat),formatDate:Tw.bind(null,i,r.getDateTimeFormat),formatDateToParts:Tk.bind(null,i,r.getDateTimeFormat),formatTime:Tx.bind(null,i,r.getDateTimeFormat),formatDateTimeRange:T_.bind(null,i,r.getDateTimeFormat),formatTimeToParts:TS.bind(null,i,r.getDateTimeFormat),formatPlural
91:TA.bind(null,i,r.getPluralRules),formatMessage:Ty.bind(null,i,r),$t:Ty.bind(null,i,r),formatList:TC.bind(null,i,r.getListFormat),formatListToParts:TI.bind(null,i,r.getListFormat),formatDisplayName:TO.bind(null,i,r.getDisplayNames)}}({...TB,...t,defaultRichTextElements:r},n),o={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:r};return{...i,formatMessage:TX.bind(null,o,i.formatters),$t:TX.bind(null,o,i.formatters)}})(a,n.current)),TF(i.current),(0,ec.jsx)(TW,{value:i.current,children:e.children})}TQ.displayName="MemoizedFormattedMessage",T0.displayName="IntlProvider";let T1=TG("formatDate"),T2=TG("formatTime");TG("formatNumber"),TG("formatList"),TG("formatDisplayName"),TZ("formatDate"),TZ("formatTime");var T3={};function T4(e){let t=["btn"],{primary:n,secondary:r,tertiary:i,className:o,...a}=e;if(n&&t.push("btn-primary"),r&&t.push("btn-secondary"),i&&t.push("btn-tertiary"),o&&t.push(o),"link"===a.type){let{ref:e,type:n,href:r,children:i,...o}=a;return(0,ec.jsx)("a",{ref:e,href:r,className:t.join(" "),...o,children:i})}let{ref:s,type:l="button",children:u,...c}=a;return(0,ec.jsx)("button",{ref:s,type:l,className:t.join(" "),...c,children:u})}T3={boundary:{waterfront:{id:"waterfront",title:"Waterfront",disableWithFlag:"COASTMIX_MODE"},waterfront2:{id:"waterfront",title:"Waterfront",enableWithFlag:"COASTMIX_MODE"},beach:{id:"beach",iconSet:"tabler",title:"Beach",enableWithFlag:"COASTMIX_MODE"},marsh:{id:"marsh",title:"Marsh",enableWithFlag:"COASTMIX_MODE"},water:{id:"water",title:"Water",enableWithFlag:"COASTMIX_MODE"},dock:{id:"dock",title:"Dock",enableWithFlag:"COASTMIX_MODE"},"fishing-boat":{id:"fishing-boat",title:"Fishing boat",enableWithFlag:"COASTMIX_MODE"},"cargo-ship":{id:"cargo-ship",title:"Cargo ship",enableWithFlag:"COASTMIX_MODE"},grass:{id:"grass",title:"Grass"},fence:{id:"fence",title:"Empty lot"},"parking-lot":{id:"car",title:"Parking lot"},residential:{id:"residential",title:"Home"},narrow:{id:"building-thin",title:"Narrow building"},wide:{id:"building-wide",title:"Wide building"},arcade:{id:"building-arcade",title:"Arcade building"},"compound-wall":{id:"compound-wall",title:"Compound wall",unlockCondition:"SIGN_IN"}},ground:{concrete:{id:"concrete",color:"#ff0000",title:"Concrete"},asphalt:{id:"asphalt",color:"#292a29",title:"Asphalt"}},direction:{inbound:{id:"direction-inbound",title:"Inbound"},outbound:{id:"direction-outbound",title:"Outbound"}},"bike-direction":{inbound:{id:"direction-inbound",title:"Inbound"},outbound:{id:"direction-outbound",title:"Outbound"},"twoway-left":{id:"direction-twoway-left",title:"Two-way (left-hand)",unlockCondition:"SIGN_IN"},"twoway-right":{id:"direction-twoway-right",title:"Two-way (right-hand)",unlockCondition:"SIGN_IN"}},"parking-lane-direction":{inbound:{id:"direction-inbound",title:"Inbound"},outbound:{id:"direction-outbound",title:"Outbound"},sideways:{id:"direction-both",title:"Perpendicular"},"angled-front-left":{id:"direction-down-left",title:"Angled"},"angled-front-right":{id:"direction-down-right",title:"Angled"},"angled-rear-left":{id:"direction-up-left",title:"Angled"},"angled-rear-right":{id:"direction-up-right",title:"Angled"}},"tree-type":{big:{id:"tree",title:"Tree"},"palm-tree":{id:"palm-tree",title:"Palm tree"}},"lamp-orientation":{left:{id:"direction-left",title:"Left"},both:{id:"direction-both",title:"Both"},right:{id:"direction-right",title:"Right"}},"lamp-type":{modern:{id:"lamp-modern",title:"Modern"},traditional:{id:"lamp-traditional-right",title:"Traditional"},pride:{id:"rainbow",title:"Modern with pride banner"}},"bench-orientation":{left:{id:"direction-left",title:"Left"},center:{id:"direction-both",title:"Center"},right:{id:"direction-right",title:"Right"}},"turn-lane-orientation":{left:{id:"turn-lane-left",title:"Left"},"left-straight":{id:"turn-lane-left-straight",title:"Left and straight"},straight:{id:"turn-lane-straight",title:"Straight"},"right-straight":{id:"turn-lane-right-straight",title:"Right and straight"},right:{id:"turn-lane-right",title:"Right"},both:{id:"turn-lane-both",title:"Both"},"left-right-straight":{id:"turn-lane-left-right-straight",title:"Left, right and straight"},shared:{id:"turn-lane-shared",title:"Shared"}},"divider-type":{median:{id:"median",title:"Median"}
91,"striped-buffer":{id:"buffer",title:"Striped buffer"},"planting-strip":{id:"grass",title:"Planting strip"},"planter-box":{id:"planter-box",title:"Planter box"},bush:{id:"bush",title:"Planting strip with a bush"},flowers:{id:"flowers",title:"Planting strip with flowers"},"big-tree":{id:"tree",title:"Planting strip with a tree"},"palm-tree":{id:"palm-tree",title:"Planting strip with a palm tree"},bollard:{id:"bollard",title:"Bollard"},dome:{id:"dome",title:"Traffic exclusion dome"}},"crosswalk-type":{"zebra-crossing":{id:"buffer",title:"Crosswalk"},"zebra-crossing-bike":{id:"buffer",title:"Bike crossing"}},orientation:{left:{id:"orientation-left",title:"Left"},right:{id:"orientation-right",title:"Right"}},"public-transit-asphalt":{regular:{id:"asphalt",color:"#292a29",title:"Asphalt"},colored:{id:"asphalt",color:"#9b1f22",title:"Red lane"},grass:{id:"grass",title:"Grass"}},"bus-asphalt":{regular:{id:"asphalt",color:"#292a29",title:"Asphalt"},colored:{id:"asphalt",color:"#9b1f22",title:"Red lane"},shared:{id:"sharrow",title:"Shared bus/bike lane"}},"bus-type":{typical:{id:"bus",title:"Typical bus"},"double-decker":{id:"double-decker-bus",title:"Double decker bus",unlockCondition:"SUBSCRIBE"},"av-shuttle":{id:"av-shuttle",title:"Autonomous shuttle",unlockCondition:"SUBSCRIBE"}},"brt-asphalt":{regular:{id:"asphalt",color:"#292a29",title:"Asphalt"},red:{id:"asphalt",color:"#9b1f22",title:"Red lane"}},"brt-station-orientation":{left:{id:"orientation-left",title:"Left"},right:{id:"orientation-right",title:"Right"},center:{id:"orientation-center",title:"Center"}},"bike-asphalt":{regular:{id:"asphalt",color:"#292a29",title:"Asphalt"},green:{id:"asphalt",color:"#2b6750",title:"Green lane"},red:{id:"asphalt",color:"#9b1f22",title:"Red lane"}},"transit-shelter-elevation":{"street-level":{id:"elevation-lower",title:"Street level"},"light-rail":{id:"elevation-higher",title:"Light rail platform"}},"bike-rack-elevation":{"sidewalk-parallel":{id:"direction-both",title:"Parallel parking, sidewalk level"}
91,sidewalk:{id:"elevation-higher",title:"Perpendicular parking, sidewalk level"},road:{id:"elevation-lower",title:"Perpendicular parking, road level"}},"car-type":{car:{id:"car",title:"Car"},"car-with-bus":{id:"car-with-bus",title:"Car with bus",unlockCondition:"SUBSCRIBE",unlockWithFlag:"VARIANT_MIXED_DRIVE_LANES_1"},"car-with-bike":{id:"car-with-bike",title:"Car with bike",unlockCondition:"SUBSCRIBE",unlockWithFlag:"VARIANT_MIXED_DRIVE_LANES_2"},sharrow:{id:"sharrow",title:"Sharrow"},truck:{id:"truck",title:"Truck"},microvan:{id:"microvan",title:"Microvan",unlockCondition:"SUBSCRIBE"},av:{id:"rideshare",title:"Autonomous vehicle",unlockCondition:"SIGN_IN"},"motorcycle-sidecar":{id:"motorcycle-sidecar",title:"Motorcycle with sidecar",unlockCondition:"SIGN_IN"},pedestrian:{id:"sidewalk-density-normal",title:"Pedestrian",unlockCondition:"SIGN_IN"}},"sidewalk-density":{dense:{id:"sidewalk-density-dense",title:"Dense"},normal:{id:"sidewalk-density-normal",title:"Normal"},sparse:{id:"sidewalk-density-sparse",title:"Sparse"},empty:{id:"",title:"Empty"}},"parking-lane-orientation":{left:{id:"orientation-left",title:"Left"},right:{id:"orientation-right",title:"Right"}},"wayfinding-type":{large:{id:"wayfinding-large",title:"Large"},medium:{id:"wayfinding-medium",title:"Medium"},small:{id:"wayfinding-small",title:"Small"}},"flex-type":{taxi:{id:"taxi",title:"Taxi"},rideshare:{id:"rideshare",title:"Rideshare"}},"waiting-area":{sparse:{id:"sidewalk-density-sparse",title:"Someone"},empty:{id:"",title:"No one"}},"scooter-elevation":{sidewalk:{id:"elevation-higher",title:"Sidewalk level"},road:{id:"elevation-lower",title:"Road level"}},"scooter-riders":{empty:{id:"",title:"No one"},sparse:{id:"sidewalk-density-sparse",title:"Someone"}},"magic-carpet-occupants":{aladdin:{id:"aladdin",title:"Aladdin"},jasmine:{id:"jasmine",title:"Jasmine"},"aladdin-jasmine":{id:"aladdin-jasmine",title:"Aladdin & Jasmine"},"jasmine-aladdin":{id:"jasmine-aladdin",title:"Jasmine & Aladdin"}},occupants:{empty:{id:"",title:"Empty"},occupied:{id:"sidewalk-density-normal",title:"Occupied"}},elevation:{sidewalk:{id:"elevation-higher",title:"Sidewalk level"},road:{id:"elevation-lower",title:"Street level"}},"universal-elevation":{sidewalk:{id:"elevation-higher",title:"Sidewalk level",unlockCondition:"SUBSCRIBE",unlockWithFlag:"ELEVATION_CONTROLS_UNLOCKED"},road:{id:"elevation-lower",title:"Street level",unlockCondition:"SUBSCRIBE",unlockWithFlag:"ELEVATION_CONTROLS_UNLOCKED"}},"temporary-barrier-type":{"traffic-cone":{id:"traffic-cone",title:"Traffic cone"},barricade:{id:"barricade",title:"Barricade"},"jersey-barrier-concrete":{id:"jersey-barrier",title:"Jersey barrier (concrete)"},"jersey-barrier-plastic":{id:"jersey-barrier",color:"#ef9c74",title:"Jersey barrier (plastic)"}},"drainage-sides":{slanted:{id:"drainage-slanted",title:"Slanted sides"},vertical:{id:"drainage-vertical",title:"Vertical sides"}},"bioswale-vegetation":{bush:{id:"bush",title:"Rain garden with bushes"},tree:{id:"tree",title:"Rain garden with trees"}},"brt-bus":{},"vendor-type":{handcart:{id:"vendor-handcart",title:"Vendor with hand cart"},table:{id:"vendor-table",title:"Vendor at table"},tarp:{id:"vendor-tarp",title:"Vendor on tarp on ground"},platform:{id:"vendor-platform",title:"Vendor at platform"}},"beach-type":{beach:{id:"beach-off",iconSet:"tabler",title:"Beach"},lounger:{id:"beach",iconSet:"tabler",title:"Beach lounger"}},"marsh-type":{marsh:{id:"marsh",title:"Marsh"}},"wall-height":{low:{id:"elevation-lower",title:"Low wall"},high:{id:"elevation-higher",title:"High wall"}},"guardrail-type":{default:{id:"bollard",title:"Guard rail"}},"slope-type":{grass:{id:"grass",title:"Grassy hill"},dune:{id:"marsh",title:"Sand dune"}}};var ef=el("8NFma"),T5={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let T6=(e,t,n,r)=>{let i=(0,ef.forwardRef)(({color:n="currentColor",size:i=24,stroke:o=2,title:a,className:s,children:l,...u},c)=>(0,ef.createElement)("svg",{ref:c,...T5[e],width:i,height:i,className:["tabler-icon",`tabler-icon-${t}`,s].join(" "),..."filled"===e?{fill:n}:{strokeWidth:o,stroke:n},...u},[a&&(0,ef.createElement)("title",{key:"svg-title"},a),...r.map(([e,t])=>(0,ef.createElement)(e,t)),...Array.isArray(l)?l:[l]]));return i.displayName=`${n}`,i},T8=T6("outline","arrow-autofit-content","ArrowAutofitContent",[["path",{d:"M6 4l-3 3l3 3",key:"svg-0"}],["path",{d:"M18 4l3 3l-3 3",key:"svg-1"}],["path",{d:"M4 16a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -2",key:"svg-2"}],["path",{d:"M10 7h-7",key:"svg-3"}],["path",{d:"M21 7h-7",key:"svg-4"}]]),T9=T6("outline","arrow-autofit-height","ArrowAutofitHeight",[["path",{d:"M12 20h-6a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h6",key:"svg-0"}],["path",{d:"M18 14v7",key:"svg-1"}],["path",{d:"M18 3v7",key:"svg-2"}],["path",{d:"M15 18l3 3l3 -3",key:"svg-3"}],["path",{d:"M15 6l3 -3l3 3",key:"svg-4"}]]),T7=T6("outline","arrow-back-up","ArrowBackUp",[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]]),Ce=T6("outline","arrow-forward-up","ArrowForwardUp",[["path",{d:"M15 14l4 -4l-4 -4",key:"svg-0"}],["path",{d:"M19 10h-11a4 4 0 1 0 0 8h1",key:"svg-1"}]]),Ct=T6("outline","beach","Beach",[["path",{d:"M17.553 16.75a7.5 7.5 0 0 0 -10.606 0",key:"svg-0"}],["path",{d:"M18 3.804a6 6 0 0 0 -8.196 2.196l10.392 6a6 6 0 0 0 -2.196 -8.196",key:"svg-1"}],["path",{d:"M16.732 10c1.658 -2.87 2.225 -5.644 1.268 -6.196c-.957 -.552 -3.075 1.326 -4.732 4.196",key:"svg-2"}],["path",{d:"M15 9l-3 5.196",key:"svg-3"}],["path",{d:"M3 19.25a2.4 2.4 0 0 1 1 -.25a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 1 .25",key:"svg-4"}]]),Cn=T6("outline","beach-off","BeachOff",[["path",{d:"M15.071 15.102a7.502 7.502 0 0 0 -8.124 1.648",key:"svg-0"}],["path",{d:"M10.27 6.269l9.926 5.731a6 6 0 0 0 -10.32 -6.123",key:"svg-1"}],["path",{d:"M16.732 10c1.658 -2.87 2.225 -5.644 1.268 -6.196c-.957 -.552 -3.075 1.326 -4.732 4.196",key:"svg-2"}],["path",{d:"M15 9l-.739 1.279",key:"svg-3"}],["path",{d:"M12.794 12.82l-.794 1.376",key:"svg-4"}],["path",{d:"M3 19.25a2.4 2.4 0 0 1 1 -.25a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 1.135 -.858",key:"svg-5"}],["path",{d:"M3 3l18 18",key:"svg-6"}]]),Cr=T6("outline","book-2","Book2",[["path",{d:"M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12",key:"svg-0"}],["path",{d:"M19 16h-12a2 2 0 0 0 -2 2",key:"svg-1"}],["path",{d:"M9 8h6",key:"svg-2"}
91]]),Ci=T6("outline","chart-bar","ChartBar",[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]]),Co=T6("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]),Ca=T6("outline","chevron-left","ChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]),Cs=T6("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]),Cl=T6("outline","clipboard","Clipboard",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2",key:"svg-1"}]]),Cu=T6("outline","clock-hour-4","ClockHour4",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 12l3 2",key:"svg-1"}],["path",{d:"M12 7v5",key:"svg-2"}]]),Cc=T6("outline","copy","Copy",[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]]),Cd=T6("outline","cube-spark","CubeSpark",[["path",{d:"M21 12v-4.01a1.98 1.98 0 0 0 -1 -1.717l-7 -4.008a2.02 2.02 0 0 0 -2 0l-7 4.008c-.619 .355 -1 1.01 -1 1.718v8.018c0 .709 .381 1.363 1 1.717l7 4.008c.62 .354 1.38 .354 2 0",key:"svg-0"}],["path",{d:"M12 22v-10",key:"svg-1"}],["path",{d:"M12 12l8.73 -5.04",key:"svg-2"}],["path",{d:"M3.27 6.96l8.73 5.04",key:"svg-3"}],["path",{d:"M19 22.5a4.75 4.75 0 0 1 3.5 -3.5a4.75 4.75 0 0 1 -3.5 -3.5a4.75 4.75 0 0 1 -3.5 3.5a4.75 4.75 0 0 1 3.5 3.5",key:"svg-4"}]]),Cf=T6("outline","download","Download",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]),Ch=T6("outline","edit","Edit",[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]]),Cp=T6("outline","external-link","ExternalLink",[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]]),Cm=T6("outline","flag","Flag",[["path",{d:"M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1 -7 0a5 5 0 0 0 -7 0v-9",key:"svg-0"}],["path",{d:"M5 21v-7",key:"svg-1"}]]),Cg=T6("outline","gift","Gift",[["path",{d:"M3 9a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1l0 -2",key:"svg-0"}],["path",{d:"M12 8l0 13",key:"svg-1"}],["path",{d:"M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7",key:"svg-2"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5",key:"svg-3"}]]),Cy=T6("outline","help","Help",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 17l0 .01",key:"svg-1"}],["path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4",key:"svg-2"}]]),Cv=T6("outline","info-circle","InfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]),Cb=T6("outline","keyboard","Keyboard",[["path",{d:"M2 8a2 2 0 0 1 2 -2h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2l0 -8",key:"svg-0"}],["path",{d:"M6 10l0 .01",key:"svg-1"}],["path",{d:"M10 10l0 .01",key:"svg-2"}],["path",{d:"M14 10l0 .01",key:"svg-3"}],["path",{d:"M18 10l0 .01",key:"svg-4"}],["path",{d:"M6 14l0 .01",key:"svg-5"}],["path",{d:"M18 14l0 .01",key:"svg-6"}],["path",{d:"M10 14l4 .01",key:"svg-7"}]]),Cw=T6("outline","language","Language",[["path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629",key:"svg-0"}],["path",{d:"M4 6.371h7",key:"svg-1"}],["path",{d:"M5 9c0 2.144 2.252 3.908 6 4",key:"svg-2"}
91],["path",{d:"M12 20l4 -9l4 9",key:"svg-3"}],["path",{d:"M19.1 18h-6.2",key:"svg-4"}],["path",{d:"M6.694 3l.793 .582",key:"svg-5"}]]),Cx=T6("outline","layout-grid-add","LayoutGridAdd",[["path",{d:"M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-0"}],["path",{d:"M14 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-1"}],["path",{d:"M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-2"}],["path",{d:"M14 17h6m-3 -3v6",key:"svg-3"}]]),C_=T6("outline","line-height","LineHeight",[["path",{d:"M3 8l3 -3l3 3",key:"svg-0"}],["path",{d:"M3 16l3 3l3 -3",key:"svg-1"}],["path",{d:"M6 5l0 14",key:"svg-2"}],["path",{d:"M13 6l7 0",key:"svg-3"}],["path",{d:"M13 12l7 0",key:"svg-4"}],["path",{d:"M13 18l7 0",key:"svg-5"}]]),Ck=T6("outline","link","Link",[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]]),CS=T6("outline","logout","Logout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]),CE=T6("outline","mail","Mail",[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10",key:"svg-0"}],["path",{d:"M3 7l9 6l9 -6",key:"svg-1"}]]),CO=T6("outline","map-pin","MapPin",[["path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0",key:"svg-1"}]]),Cj=T6("outline","pin","Pin",[["path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4",key:"svg-0"}],["path",{d:"M9 15l-4.5 4.5",key:"svg-1"}],["path",{d:"M14.5 4l5.5 5.5",key:"svg-2"}]]),CT=T6("filled","pin-filled","PinFilled",[["path",{d:"M15.113 3.21l.094 .083l5.5 5.5a1 1 0 0 1 -1.175 1.59l-3.172 3.171l-1.424 3.797a1 1 0 0 1 -.158 .277l-.07 .08l-1.5 1.5a1 1 0 0 1 -1.32 .082l-.095 -.083l-2.793 -2.792l-3.793 3.792a1 1 0 0 1 -1.497 -1.32l.083 -.094l3.792 -3.793l-2.792 -2.793a1 1 0 0 1 -.083 -1.32l.083 -.094l1.5 -1.5a1 1 0 0 1 .258 -.187l.098 -.042l3.796 -1.425l3.171 -3.17a1 1 0 0 1 1.497 -1.26z",key:"svg-0"}]]),CC=T6("outline","printer","Printer",[["path",{d:"M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2",key:"svg-0"}],["path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4",key:"svg-1"}],["path",{d:"M7 15a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2l0 -4",key:"svg-2"}]]),CI=T6("outline","ruler-measure","RulerMeasure",[["path",{d:"M19.875 12c.62
911 0 1.125 .512 1.125 1.143v5.714c0 .631 -.504 1.143 -1.125 1.143h-15.875a1 1 0 0 1 -1 -1v-5.857c0 -.631 .504 -1.143 1.125 -1.143h15.75",key:"svg-0"}],["path",{d:"M9 12v2",key:"svg-1"}],["path",{d:"M6 12v3",key:"svg-2"}],["path",{d:"M12 12v3",key:"svg-3"}],["path",{d:"M18 12v3",key:"svg-4"}],["path",{d:"M15 12v2",key:"svg-5"}],["path",{d:"M3 3v4",key:"svg-6"}],["path",{d:"M3 5h18",key:"svg-7"}],["path",{d:"M21 3v4",key:"svg-8"}]]),CP=T6("outline","sailboat","Sailboat",[["path",{d:"M2 20a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1",key:"svg-0"}],["path",{d:"M4 18l-1 -3h18l-1 3",key:"svg-1"}],["path",{d:"M11 12h7l-7 -9v9",key:"svg-2"}],["path",{d:"M8 7l-2 5",key:"svg-3"}]]),CA=T6("outline","search","Search",[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]),CR=T6("outline","settings","Settings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]]),CN=T6("outline","shopping-cart","ShoppingCart",[["path",{d:"M4 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M15 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M17 17h-11v-14h-2",key:"svg-2"}],["path",{d:"M6 5l14 1l-1 7h-13",key:"svg-3"}]]),CM=T6("outline","sign-right","SignRight",[["path",{d:"M8 21h4",key:"svg-0"}],["path",{d:"M10 21v-10",key:"svg-1"}],["path",{d:"M10 6v-3",key:"svg-2"}],["path",{d:"M6 6h10l2 2.5l-2 2.5h-10l0 -5",key:"svg-3"}]]),CD=T6("outline","snowflake","Snowflake",[["path",{d:"M10 4l2 1l2 -1",key:"svg-0"}],["path",{d:"M12 2v6.5l3 1.72",key:"svg-1"}],["path",{d:"M17.928 6.268l.134 2.232l1.866 1.232",key:"svg-2"}],["path",{d:"M20.66 7l-5.629 3.25l.01 3.458",key:"svg-3"}],["path",{d:"M19.928 14.268l-1.866 1.232l-.134 2.232",key:"svg-4"}],["path",{d:"M20.66 17l-5.629 -3.25l-2.99 1.738",key:"svg-5"}],["path",{d:"M14 20l-2 -1l-2 1",key:"svg-6"}],["path",{d:"M12 22v-6.5l-3 -1.72",key:"svg-7"}],["path",{d:"M6.072 17.732l-.134 -2.232l-1.866 -1.232",key:"svg-8"}],["path",{d:"M3.34 17l5.629 -3.25l-.01 -3.458",key:"svg-9"}],["path",{d:"M4.072 9.732l1.866 -1.232l.134 -2.232",key:"svg-10"}],["path",{d:"M3.34 7l5.629 3.25l2.99 -1.738",key:"svg-11"}]]),CL=T6("outline","star","Star",[["path",{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245",key:"svg-0"}]]),Cz=T6("outline","sun","Sun",[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]]),CF=T6("outline","sunset-2","Sunset2",[["path",{d:"M3 13h1",key:"svg-0"}],["path",{d:"M20 13h1",key:"svg-1"}],["path",{d:"M5.6 6.6l.7 .7",key:"svg-2"}],["path",{d:"M18.4 6.6l-.7 .7",key:"svg-3"}],["path",{d:"M8 13a4 4 0 1 1 8 0",key:"svg-4"}],["path",{d:"M3 17h18",key:"svg-5"}],["path",{d:"M7 20h5",key:"svg-6"}],["path",{d:"M16 20h1",key:"svg-7"}],["path",{d:"M12 5v-1",key:"svg-8"}]]),CB=T6("outline","trash","Trash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]),CU=T6("outline","umbrella","Umbrella",[["path",{d:"M4 12a8 8 0 0 1 16 0l-16 0",key:"svg-0"}],["path",{d:"M12 12v6a2 2 0 0 0 4 0",key:"svg-1"}]]),C$=T6("outline","user","User",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}
91]]),CH=T6("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);var ef=(el("8NFma"),el("8NFma")),CW={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},CV=ei(ef).createContext&&ei(ef).createContext(CW),Cq=["attr","size","title"];function CK(){return(CK=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}).apply(null,arguments)}function CZ(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 CG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CZ(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CY(e){return t=>ei(ef).createElement(CX,CK({attr:CG({},e.attr)},t),function e(t){return t&&t.map((t,n)=>ei(ef).createElement(t.tag,CG({key:n},t.attr),e(t.child)))}(e.child))}function CX(e){var t=t=>{var n,r=e.attr,i=e.size,o=e.title,a=function(e,t){if(null==e)return{};var n,r,i=function(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}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Cq),s=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),ei(ef).createElement("svg",CK({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:CG(CG({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&ei(ef).createElement("title",null,o),e.children)};return void 0!==CV?ei(ef).createElement(CV.Consumer,null,e=>t(e)):t(CW)}var CJ={};CJ=D("gsKEV");let CQ={"arrow-left":[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"},child:[]}]})(e)},"fa"],"arrow-right":[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"},child:[]}]})(e)},"fa"],beach:[Ct,"tabler"],"beach-off":[Cn,"tabler"],boat:[CP,"tabler"],book:[Cr,"tabler"],"building-height":[T9,"tabler"],cart:[CN,"tabler"],chart:[Ci,"tabler"],check:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"},child:[]}]})(e)},"fa"],"chevron-down":[Co,"tabler"],"chevron-left":[Ca,"tabler"],"chevron-right":[Cs,"tabler"],"clear-day":[Cz,"tabler"],clipboard:[Cl,"tabler"],close:[CH,"tabler"],copy:[Cc,"tabler"],cube:[Cd,"tabler"],download:[Cf,"tabler"],edit:[Ch,"tabler"],elevation:[C_,"tabler"],"external-link":[Cp,"tabler"],flag:[Cm,"tabler"],help:[Cy,"tabler"],info:[Cv,"tabler"],keyboard:[Cb,"tabler"],language:[Cw,"tabler"],link:[Ck,"tabler"],location:[CO,"tabler"],lock:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"},child:[]}]})(e)},"fa"],mail:[CE,"tabler"],minus:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"},child:[]}]})(e)},"fa"],"new-street":[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 18v-3h-2v3h-3v2h3v3h2v-3h3v-2zM18 4h2v9h-2zM4 4h2v16H4zM11 4h2v4h-2zM11 10h2v4h-2zM11 16h2v4h-2z"},child:[]}]})(e)},"md"],pin:[Cj,"tabler"],"pin-filled":[CT,"tabler"],plus:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"},child:[]}]})(e)},"fa"],print:[CC,"tabler"],rain:[CU,"tabler"],redo:[Ce,"tabler"],ruler:[CI,"tabler"],search:[CA,"tabler"],settings:[CR,"tabler"],"sign-out":[CS,"tabler"],"slice-width":[T8,"tabler"],snow:[CD,"tabler"],star:[CL,"tabler"],sun:[CF,"tabler"],template:[Cx,"tabler"],time:[Cu,"tabler"],"trail-sign":[CM,"tabler"],trash:[CB,"tabler"],undo:[T7,"tabler"],user:[C$,"tabler"],"whats-new":[Cg,"tabler"],bluesky:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"},child:[]}]})(e)},"fa"],discord:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109
91-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(e)},"fa"],facebook:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64h98.2V334.2H109.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H255V480H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"},child:[]}]})(e)},"fa"],github:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)},"fa"],instagram:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)},"fa"],mastodon:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433 179.11c0-97.2-63.71-125.7-63.71-125.7-62.52-28.7-228.56-28.4-290.48 0 0 0-63.72 28.5-63.72 125.7 0 115.7-6.6 259.4 105.63 289.1 40.51 10.7 75.32 13 103.33 11.4 50.81-2.8 79.32-18.1 79.32-18.1l-1.7-36.9s-36.31 11.4-77.12 10.1c-40.41-1.4-83-4.4-89.63-54a102.54 102.54 0 0 1-.9-13.9c85.63 20.9 158.65 9.1 178.75 6.7 56.12-6.7 105-41.3 111.23-72.9 9.8-49.8 9-121.5 9-121.5zm-75.12 125.2h-46.63v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.33V197c0-58.5-64-56.6-64-6.9v114.2H90.19c0-122.1-5.2-147.9 18.41-175 25.9-28.9 79.82-30.8 103.83 6.1l11.6 19.5 11.6-19.5c24.11-37.1 78.12-34.8 103.83-6.1 23.71 27.3 18.4 53 18.4 175z"},child:[]}]})(e)},"fa"],twitter:[function(e){return CY({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)},"fa"]};function C0({name:e,...t}){return"google"===e?(0,ec.jsx)("img",{src:ei(CJ),alt:"",...t}):function(e,t){let[n,r]=CQ[e];if("tabler"===r){let{size:r="16",stroke:i="1.75",...o}=t??{};return(0,ec.jsx)(n,{"data-icon":e,size:r,stroke:i,...o})}return(0,ec.jsx)(n,{"data-icon":e,...t})}(e,t)}function C1(e){let t,{set:n,selection:r,isSelected:i,onClick:o}=e,a=kU(e=>e.flags),s=kU(e=>e.user.signedIn),l=kU(e=>e.user.isSubscriber),u=TV(),c=ei(T3)[n][r];if(void 0===c)return null;if(void 0!==c.enableWithFlag){let e=a[c.enableWithFlag];if(!e?.value)return null}if(void 0!==c.disableWithFlag){let e=a[c.disableWithFlag];if(e?.value)return null}let d=u.formatMessage({id:`variant-icons.${n}|${r}`,defaultMessage:c.title}),f=!1;return void 0!==c.unlockCondition&&!(void 0!==c.unlockWithFlag&&a[c.unlockWithFlag]?.value)&&("SUBSCRIBE"===c.unlockCondition?l||(f=!0,t=u.formatMessage({id:"plus.locked.sub",defaultMessage:"Upgrade to Streetmix+ to use!‎"})):s||(f=!0,t=u.formatMessage({id:"plus.locked.user",defaultMessage:"Sign in to use!‎"}))),(0,ec.jsx)(Te,{label:d,sublabel:t,placement:"bottom",role:"label",children:(0,ec.jsxs)(T4,{className:i?"variant-selected":void 0,"aria-label":d,disabled:f,onClick:o,children:["tabler"===c.iconSet?(0,ec.jsx)(C0,{name:c.id,size:"30",stroke:"1.5",className:"tabler-icon"}):(0,ec.jsx)("svg",{xmlns:"http://www.w3.org/1999/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"icon",style:void 0!==c.color?{fill:c.color}
91:void 0,children:(0,ec.jsx)("use",{href:`#icon-${c.id}`})}),f&&(0,ec.jsx)(C0,{name:"lock"})]})})}function C2(e){let{type:t,position:n}=e,r=kU(e=>"boundary"===t?e.street.boundary[n].variant:e.street.segments[n].variantString),i=kU(e=>"slice"===t?e.street.segments[n]:null),o=kU(e=>e.flags.UNIVERSAL_ELEVATION_CONTROLS?.value??!1),a=kU(e=>e.flags.COASTMIX_MODE?.value??!1),s=kB(),l=[];if("boundary"===t)l=Object.keys(ei(T3).boundary);else{if(!i)return null;let{variants:e}=cm(i.type);l=e??[]}function u(e,o,a){return(0,ec.jsx)("div",{className:"popup-control-row popup-control-button-group",children:o.map(o=>{let l;return(0,ec.jsx)(C1,{set:e,selection:o,isSelected:(l=!1,"boundary"===t?l=o===r:i&&(l=o===cT(i.type,r)[e]),l),onClick:"boundary"===t?()=>{s(dn(n,o)),s(P0())}:()=>{s(cW(n,e,o)),s(P0())}},(a??e)+"."+o)})},a??e)}return l=l.filter(e=>""!==e),(o||a)&&(l=l.filter(e=>"elevation"!==e)),0===l.length?null:(0,ec.jsx)("div",{className:"variants",children:function(){if("boundary"!==t)return l.map(e=>u(e,Object.keys(ei(T3)[e])));if(!a)return u("boundary",l);{let e=l.filter(e=>ci(e).waterfront??!1),t=l.filter(e=>!ci(e).waterfront);return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("h4",{children:(0,ec.jsx)(TQ,{id:"boundary.group.land",defaultMessage:"Land"})}),u("boundary",t,"boundary1"),(0,ec.jsx)("h4",{children:(0,ec.jsx)(TQ,{id:"boundary.group.waterfront",defaultMessage:"Waterfront"})}),u("boundary",e,"boundary2")]})}}()})}let C3=[{text:"m",multiplier:1},{text:"м",multiplier:1},{text:"dm",multiplier:.1},{text:"cm",multiplier:.01},{text:"mm",multiplier:.001},{text:'"',multiplier:.3048/12},{text:"″",multiplier:.3048/12},{text:"in",multiplier:.3048/12},{text:"in.",multiplier:.3048/12},{text:"inch",multiplier:.3048/12},{text:"inches",multiplier:.3048/12},{text:"'",multiplier:.3048},{text:"′",multiplier:.3048},{text:"ft",multiplier:.3048},{text:"ft.",multiplier:.3048},{text:"feet",multiplier:.3048}],C4={".125":"⅛",".25":"¼",".375":"⅜",".5":"½",".625":"⅝",".75":"¾",".875":"⅞"};function C5(e,t){let n;for(let t in e=(e=e.replace(/ /g,"")).replace(/,/g,"."),C4)e.includes(C4[t])&&(e=e.replace(new RegExp(C4[t]),t));if(e.includes("'")&&e.length>e.indexOf("'")+1){let r=e.split("'");r[0]+="'",r[1].includes('"')||(r[1]+='"'),n=C6(r[0],t)+C6(r[1],t)}else n=C6(e,t);return n}function C6(e,t){e.includes("-")&&(e=e.replace(/-/g,""));let n=Number.parseFloat(e);if(!n)return 0;{let r=1,i=3;for(let n of(1===t&&(r=.3048,i=3),C3))if(e.match(RegExp("[\\d\\.]"+n.text+"$"))){r=n.multiplier;break}return cw(n*=r,i)}}var ef=el("8NFma");function C8(e){let{value:t,minValue:n,maxValue:r,inputValueFormatter:i=e=>(e??"").toString(),displayValueFormatter:o=e=>(e??"").toString(),onClickUp:a=()=>{},onClickDown:s=()=>{},onUpdatedValue:l=()=>{},disabled:u=!1,inputTooltip:c="Change value",upTooltip:d="Increment",downTooltip:f="Decrement",upTooltipSublabel:h,downTooltipSublabel:p,allowAutoUpdate:m=!1,className:g}=e,y=(0,ef.useRef)(null),v=(0,ef.useRef)(null),[b,w]=(0,ef.useState)(!1),[x,_]=(0,ef.useState)((t??"").toString()),[k,S]=(0,ef.useState)(""),E=wL(l,200);(0,ef.useEffect)(()=>{u||null===t?_(""):b?_(k):_((o(t)??"").toString())},[t,k,u,b,i,o]);let O=["up-down-input"];return g&&O.push(g),(0,ec.jsxs)("div",{className:O.join(" "),children:[(0,ec.jsx)(Te,{label:f,sublabel:p,placement:"bottom",role:"label",children:(0,ec.jsx)(T4,{className:"up-down-input-decrement","aria-label":f,onClick:function(e){s(e)},disabled:u||null!==t&&void 0!==n&&t<=n,children:(0,ec.jsx)(C0,{name:"minus"})})}),(0,ec.jsx)("input",{type:"text",className:"up-down-input-element",title:c,disabled:u,value:x,onChange:function(e){let t=e.target.value;S(t),m&&E(t)},onFocus:function(e){y.current=(t??"").toString(),S(null===t?"":i(t)),w(!0);let n=e.target;window.setTimeout(()=>{n.select()},10)},onBlur:function(e){w(!1),S(""),l(e.target.value)},onKeyDown:function(e){switch(e.key){case"Enter":l(e.target.value),v.current?.focus(),v.current?.select();break;case"Esc":case"Escape":v.current?.blur(),document.body.focus(),l(y.current??"",!0)}},ref:v}),(0,ec.jsx)(Te,{label:d,sublabel:h,placement:"bottom",role:"label",children:(0,ec.jsx)(T4,{className:"up-down-input-increment","aria-label":d,onClick:function(e){a(e)},disabled:u||null!==t&&void 0!==r&&t>=r,children:(0,ec.jsx)(C0,{name:"plus"})})})]})}function C9({position:e}){let t=kU(t=>t.street.segments[e].width),n=kU(e=>e.street.units),r=kU(e=>e.locale.locale),i=kB(),o=TV();return(0,ec.jsxs)("div",{className:"popup-control-row",children:[(0,ec.jsx)(Te,{label:o.formatMessage({id:"segments.controls.width",defaultMessage:"Width"}),placement:"left",role:"label",children:(0,ec.jsx)("span",{className:"popup-control-icon",children:(0,ec.jsx)(C0,{name:"slice-width",size:"30",stroke:"1.5"})})}),(0,ec.jsx)(C8,{value:t,minValue:.25,maxValue:120,inputValueFormatter:e=>1===n?ck(cS(e),n,r):ck(e,n,r),displayValueFormatter:e=>c_(e,n,r),onClickUp:t=>{i(P3(e,!0,t.shiftKey))},onClickDown:t=>{i(P3(e,!1,t.shiftKey))},onUpdatedValue:(t,r=!1)=>
91{if(r&&1===n)return void pR(e,4,Number(t),n);let i=C5(t,n);i&&pR(e,4,i,n)},inputTooltip:o.formatMessage({id:"tooltip.segment-width",defaultMessage:"Change width of the segment"}),upTooltip:o.formatMessage({id:"tooltip.increase-width",defaultMessage:"Increase width"}),downTooltip:o.formatMessage({id:"tooltip.decrease-width",defaultMessage:"Decrease width"}),upTooltipSublabel:o.formatMessage({id:"tooltip.width-tooltip-sublabel",defaultMessage:"(hold Shift for more precision)"}),downTooltipSublabel:o.formatMessage({id:"tooltip.width-tooltip-sublabel",defaultMessage:"(hold Shift for more precision)"})})]})}function C7({position:e}){let t=kU(e=>e.street.units),n=kU(e=>e.locale.locale),r=kU(t=>e===cA?t.street.boundary.left.variant:t.street.boundary.right.variant),i=kU(t=>e===cA?t.street.boundary.left.floors:t.street.boundary.right.floors),o=kB(),a=TV(),s=ci(r),l=s.hasFloors,u=!!s.hasFloors&&(s.showFloors??!0),c=u?a.formatMessage({id:"building.label",defaultMessage:"Building height"}):a.formatMessage({id:"building.label2",defaultMessage:"Height"}),d=u?a.formatMessage({id:"tooltip.building-height",defaultMessage:"Change the number of floors"}):a.formatMessage({id:"tooltip.height-input",defaultMessage:"Change height"}),f=u?a.formatMessage({id:"tooltip.add-floor",defaultMessage:"Add floor"}):a.formatMessage({id:"tooltip.height-raise",defaultMessage:"Raise height"}),h=u?a.formatMessage({id:"tooltip.remove-floor",defaultMessage:"Remove floor"}):a.formatMessage({id:"tooltip.height-lower",defaultMessage:"Lower height"});return(0,ec.jsxs)("div",{className:"popup-control-row",children:[(0,ec.jsx)(Te,{label:c,placement:"left",role:"label",children:(0,ec.jsx)("span",{className:"popup-control-icon",children:(0,ec.jsx)(C0,{name:"building-height",size:"30",stroke:"1.5"})})}),(0,ec.jsx)(C8,{disabled:!l,value:l?i:null,minValue:1,maxValue:20,displayValueFormatter:i=>{var o,s,l,c,d,f;let h,p,m;return!1===u?c_(.75+.25*i,t,n):(o=r,s=e,l=i,c=t,d=n,h=(f=a.formatMessage)({id:"building.floors-count",defaultMessage:"{count, plural, one {# floor} other {# floors}}"},{count:l}),p=(kh(o,s,l)-.15)/cI,0===c&&(p=cw(p,1)),m=c_(p,c,d),h+` (${m})`)},onClickUp:()=>{o(c7(e))},onClickDown:()=>{o(de(e))},onUpdatedValue:t=>{t&&o(dt(e,t))},inputTooltip:d,upTooltip:f,downTooltip:h,allowAutoUpdate:!0,className:"boundary-height-control"})]})}function Ie({position:e}){let t=kU(e=>e.street.units),n=kU(t=>e===cA?t.street.boundary.left.elevation:e===cR?t.street.boundary.right.elevation:t.street.segments[e].elevation),r=kB();function i(i,o){return(0,ec.jsx)(C1,{set:i,selection:o,isSelected:function(e){let t;switch(e){case"sidewalk":t=.15==+n.toFixed(2);break;case"road":t=0===n;break;default:t=!1}return t}(o),onClick:function(n){let i;switch(n){case"sidewalk":i=1===t?.1524:.15;break;case"road":i=0}return()=>{void 0!==i&&"number"==typeof e&&(r(cZ(e,{elevation:i,elevationChanged:!0})),r(P0()))}}(o)})}let o=TV().formatMessage({id:"segments.controls.elevation",defaultMessage:"Elevation"});return(0,ec.jsxs)("div",{className:"popup-control-row","data-tour-id":"elevation-control",children:[(0,ec.jsx)("div",{className:"popup-control-label",children:(0,ec.jsx)(Te,{label:o,placement:"left",role:"label",children:(0,ec.jsx)("span",{className:"popup-control-icon",children:(0,ec.jsx)(C0,{name:"elevation",size:"30",stroke:"1.5"})})})}),(0,ec.jsxs)("div",{className:"popup-control-button-group",children:[i("universal-elevation","sidewalk"),i("universal-elevation","road")]})]})}function It({position:e,elevation:t,units:n,seaLevel:r=!1}){let i=kU(e=>e.locale.locale),o=kB(),a=TV(),s=r?a.formatMessage({id:"tooltip.sea-level-input",defaultMessage:"Change sea level"}):a.formatMessage({id:"tooltip.ground-height-input",defaultMessage:"Change ground height"}),l=r?a.formatMessage({id:"tooltip.sea-level-raise",defaultMessage:"Raise sea level"}):a.formatMessage({id:"tooltip.ground-height-raise",defaultMessage:"Raise ground height"}),u=r?a.formatMessage({id:"tooltip.sea-level-lower",defaultMessage:"Lower sea level"}):a.formatMessage({id:"tooltip.ground-height-lower",defaultMessage:"Lower ground height"}),c=1===n?4.8768:5;return(0,ec.jsx)(C8,{value:t,minValue:0,maxValue:c,inputValueFormatter:e=>1===n?ck(cS(e),n,i):ck(e,n,i),displayValueFormatter:e=>c_(e,n,i),onClickUp:function(i){let a=i.shiftKey,s=1===n?a?.0762:.1524:a?.05:.15,l=1===n?4.8768:5,u=new gf(t).plus(s).clamp(0,l).toDecimalPlaces(3).toNumber();"number"==typeof e?o(cZ(e,{elevation:u,elevationChanged:!0})):r?o(c9(u)):o(c8(e,u)),o(P0())},onClickDown:function(i){let a=i.shiftKey,s=1===n?a?.0762:.1524:a?.05:.15,l=1===n?4.8768:5,u=new gf(t).minus(s).clamp(0,l).toDecimalPlaces(3).toNumber();"number"==typeof e?o(cZ(e,{elevation:u,elevationChanged:!0})):r?o(c9(u)):o(c8(e,u)),o(P0())},onUpdatedValue:t=>{let i,a=C5(t,n),s=1===n?4.8768:5;try{i=new gf(a).clamp(0,s).toDecimalPlaces(3).toNumber()}catch(e){if(e instanceof Error&&/DecimalError/.test(e.message))return;console.error(e);return}"number"==typeof e?o(cZ(e,{elevation:i,elevationChanged:!0})):r?o(c9(i)):o(c8(e,i)),o(P0())},inputTooltip:s,upTooltip:l,downTooltip:u,upTooltipSublabel:a.formatMessage({id:"tooltip.width-tooltip-sublabel",defaultMessage:"(hold Shift for more precision)"}),downTooltipSublabel:a.formatMessage({id:"tooltip.width-tooltip-sublabel",defaultMessage:"(hold Shift for more precision)"})})}var In={};In=D("gAsvz");var ef=(el("8NFma"),el("8NFma")),Ir=Object.defineProperty,Ii=(e,t)=>Ir(e,"name",{value:t,configurable:!0}),Io=!!("u">typeof window&&window.document&&window.document.createElement);function Ia(e,t,{checkForDefaultPrevented:n=!0}={}){return Ii(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function Is(e){if(!Io)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function Il(e){return"IFRAME"===e.tagName}Ii(Ia,"composeEventHandlers"),Ii(function(e){if(!Io)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),Ii(Is,"getOwnerDocument"),Ii(function e(t,n=!1){let{activeElement:r}=Is(t);if(!r?.nodeName)return null;if(Il(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=Is(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),Ii(Il,"isFrame");var ef=el("8NFma"),Iu=Object.defineProperty,Ic=(e,t)=>Iu(e,"name",{value:t,configurable:!0});function Id(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function If(...e){return t=>{let n=!1,r=e.map(e=>{let r=Id(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():Id(e[t],null)}}}}function Ih(...e){return ef.useCallback(If(...e),e)}Ic(Id,"setRef"),Ic(If,"composeRefs"),Ic(Ih,"useComposedRefs");
91var ef=el("8NFma"),Ip=Object.defineProperty,Im=(e,t)=>Ip(e,"name",{value:t,configurable:!0});function Ig(e,t=[]){let n=[];function r(t,r){let i=ef.createContext(r);i.displayName=t+"Context";let o=n.length;n=[...n,r];let a=Im(t=>{let{scope:n,children:r,...a}=t,s=n?.[e]?.[o]||i,l=ef.useMemo(()=>a,Object.values(a));return(0,ec.jsx)(s.Provider,{value:l,children:r})},"Provider");function s(n,a,l={}){let{optional:u=!1}=l,c=a?.[e]?.[o]||i,d=ef.useContext(c);if(d)return d;if(void 0!==r)return r;if(!u)throw Error(`\`${n}\` must be used within \`${t}\``)}return a.displayName=t+"Provider",Im(s,"useContext"),[a,s]}Im(r,"createContext");let i=Im(()=>{let t=n.map(e=>ef.createContext(e));return Im(function(n){let r=n?.[e]||t;return ef.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return i.scopeName=e,[r,Iy(i,...t)]}function Iy(...e){let t=e[0];if(1===e.length)return t;let n=Im(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Im(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return ef.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Im(function(e,t){let n=ef.createContext(t);n.displayName=e+"Context";let r=Im(e=>{let{children:t,...r}=e,i=ef.useMemo(()=>r,Object.values(r));return(0,ec.jsx)(n.Provider,{value:i,children:t})},"Provider");function i(r,o={}){let{optional:a=!1}=o,s=ef.useContext(n);if(s)return s;if(void 0!==t)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",Im(i,"useContext"),[r,i]},"createContext"),Im(Ig,"createContextScope"),Im(Iy,"composeContextScopes");var ef=(el("8NFma"),el("8NFma")),Iv=globalThis?.document?ef.useLayoutEffect:()=>{},ef=el("8NFma"),Ib=Object.defineProperty,Iw=ef[" useEffectEvent ".trim().toString()],Ix=ef[" useInsertionEffect ".trim().toString()];function I_(e){if("function"==typeof Iw)return Iw(e);let t=ef.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof Ix?Ix(()=>{t.current=e}):Iv(()=>{t.current=e}),ef.useMemo(()=>(...e)=>t.current?.(...e),[])}Ib(I_,"name",{value:"useEffectEvent",configurable:!0});var Ik=Object.defineProperty,IS=(e,t)=>Ik(e,"name",{value:t,configurable:!0}),IE=ef[" useInsertionEffect ".trim().toString()]||Iv;function IO({prop:e,defaultProp:t,onChange:n=IS(()=>{},"onChange"),caller:r}){let[i,o,a]=Ij({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:i;return[l,ef.useCallback(t=>{if(s){let n=IT(t)?t(e):t;n!==e&&a.current?.(n)}else o(t)},[s,e,o,a])]}function Ij({defaultProp:e,onChange:t}){let[n,r]=ef.useState(e),i=ef.useRef(n),o=ef.useRef(t);return IE(()=>{o.current=t},[t]),ef.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}function IT(e){return"function"==typeof e}IS(IO,"useControllableState"),IS(Ij,"useUncontrolledState"),IS(IT,"isFunction");var IC=Symbol("RADIX:SYNC_STATE");IS(function(e,t,n,r){let{prop:i,defaultProp:o,onChange:a,caller:s}=t,l=void 0!==i,u=I_(a),c=[{...n,state:o}];r&&c.push(r);let[d,f]=ef.useReducer((t,n)=>{if(n.type===IC)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...c),h=d.state,p=ef.useRef(h);ef.useEffect(()=>{p.current!==h&&(p.current=h,l||u(h))},[h,p,l]);let m=ef.useMemo(()=>void 0!==i?{...d,state:i}:d,[d,i]);return ef.useEffect(()=>{l&&!Object.is(i,d.state)&&f({type:IC,state:i})},[i,d.state,l]),[m,f]},"useControllableStateReducer");var ef=el("8NFma");function II(e){let[t,n]=ef.useState(void 0);return Iv(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(II,"name",{value:"useSize",configurable:!0});var ef=el("8NFma"),kT=el("2pmb0"),ef=el("8NFma"),IP=Object.defineProperty,IA=(e,t)=>IP(e,"name",{value:t,configurable:!0});
91function IR(e){let t=ef.forwardRef((t,n)=>{let{children:r,...i}=t,o=null,a=!1,s=[];IB(r)&&"function"==typeof IW&&(r=IW(r._payload)),ef.Children.forEach(r,e=>{if(Iz(e)){a=!0;let t="child"in e.props?e.props.child:e.props.children;IB(t)&&"function"==typeof IW&&(t=IW(t._payload)),o=IM(e,t),s.push(o?.props?.children)}else s.push(e)}),o?o=ef.cloneElement(o,void 0,s):!a&&1===ef.Children.count(r)&&ef.isValidElement(r)&&(o=r);let l=o?IL(o):void 0,u=Ih(n,l);if(!o){if(r||0===r)throw Error(a?IH(e):I$(e));return r}let c=ID(i,o.props??{});return o.type!==ef.Fragment&&(c.ref=n?u:l),ef.cloneElement(o,c)});return t.displayName=`${e}.Slot`,t}IA(IR,"createSlot");var IN=Symbol.for("radix.slottable");IA(function(e){let t=IA(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=IN,t},"createSlottable");var IM=IA((e,t)=>{if("child"in e.props){let t=e.props.child;return ef.isValidElement(t)?ef.cloneElement(t,void 0,e.props.children(t.props.children)):null}return ef.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function ID(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function IL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function Iz(e){return ef.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===IN}IA(ID,"mergeProps"),IA(IL,"getElementRef"),IA(Iz,"isSlottable");var IF=Symbol.for("react.lazy");function IB(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===IF&&"_payload"in e&&IU(e._payload)}function IU(e){return"object"==typeof e&&null!==e&&"then"in e}IA(IB,"isLazyComponent"),IA(IU,"isPromiseLike");var I$=IA(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),IH=IA(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),IW=ef[" use ".trim().toString()],IV=Object.defineProperty,Iq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=IR(`Primitive.${t}`),r=ef.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,ec.jsx)(i?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function IK(e,t){e&&kT.flushSync(()=>e.dispatchEvent(t))}IV(IK,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var IZ=Object.defineProperty,IG=(e,t)=>IZ(e,"name",{value:t,configurable:!0}),IY="Switch",[IX,IJ]=Ig(IY),[IQ,I0]=IX(IY);function I1(e){let{__scopeSwitch:t,checked:n,children:r,defaultChecked:i,disabled:o,form:a,name:s,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=e,[f,h]=IO({prop:n,defaultProp:i??!1,onChange:l,caller:IY}),[p,m]=ef.useState(null),[g,y]=ef.useState(null),v=ef.useRef(!1),[b,w]=ef.useReducer(e=>e+1,0),x=!p||!!a||!!p.closest("form"),_={checked:f,setChecked:h,disabled:o,control:p,setControl:m,name:s,form:a,value:c,hasConsumerStoppedPropagationRef:v,userInteractionCount:b,onUserInteraction:w,required:u,defaultChecked:i,isFormControl:x,bubbleInput:g,setBubbleInput:y};return(0,ec.jsx)(IQ,{scope:t,..._,children:I6(d)?d(_):r})}IG(I1,"SwitchProvider");var I2=ef.forwardRef(IG(function({__scopeSwitch:e,onClick:t,...n},r){let{control:i,form:o,value:a,disabled:s,checked:l,required:u,setControl:c,setChecked:d,hasConsumerStoppedPropagationRef:f,onUserInteraction:h,isFormControl:p,bubbleInput:m}=I0("SwitchTrigger",e),g=Ih(r,c),y=ef.useRef(l);return ef.useEffect(()=>{let e=o?i?.ownerDocument.getElementById(o):i?.form;if(e instanceof HTMLFormElement){let t=IG(()=>d(y.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[i,o,d]),(0,ec.jsx)(Iq.button,{type:"button",role:"switch","aria-checked":l,"aria-required":u,"data-state":I8(l),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:g,onClick:Ia(t,e=>{h(),d(e=>!e),m&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})}
91,"SwitchTrigger")),I3=ef.forwardRef(IG(function(e,t){let{__scopeSwitch:n,name:r,checked:i,defaultChecked:o,required:a,disabled:s,value:l,onCheckedChange:u,form:c,...d}=e;return(0,ec.jsx)(I1,{__scopeSwitch:n,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:u,name:r,form:c,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(I2,{...d,ref:t,__scopeSwitch:n}),e&&(0,ec.jsx)(I5,{__scopeSwitch:n})]})})},"Switch")),I4=ef.forwardRef(IG(function(e,t){let{__scopeSwitch:n,...r}=e,i=I0("SwitchThumb",n);return(0,ec.jsx)(Iq.span,{"data-state":I8(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})},"SwitchThumb")),I5=ef.forwardRef(IG(function({__scopeSwitch:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:o,userInteractionCount:a,checked:s,defaultChecked:l,required:u,disabled:c,name:d,value:f,form:h,bubbleInput:p,setBubbleInput:m}=I0("SwitchBubbleInput",e),g=Ih(r,m),y=II(i),v=ef.useRef(!1),b=ef.useRef(s),w=ef.useRef(a);ef.useEffect(()=>{if(!p)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=a!==w.current;w.current=a;let n=b.current!==s;b.current=s;let r=!(t&&o.current);if(n&&e){v.current=!t;let n=new Event("click",{bubbles:r});e.call(p,s),p.dispatchEvent(n),v.current=!1}},[p,s,o,a]);let x=ef.useRef(s);return(0,ec.jsx)(Iq.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??x.current,required:u,disabled:c,name:d,value:f,form:h,...n,tabIndex:-1,ref:g,onClick:Ia(t,e=>{v.current&&e.stopPropagation()}),style:{...n.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function I6(e){return"function"==typeof e}function I8(e){return e?"checked":"unchecked"}function I9(e){let{className:t,children:n,...r}=e,i=(0,ef.useId)(),o=["switch-root"];return void 0!==t&&o.push(t),(0,ec.jsxs)("div",{className:"switch-item",children:[(0,ec.jsx)(I3,{id:i,className:o.join(" "),...r,children:(0,ec.jsx)(I4,{className:"switch-thumb"})}),n&&(0,ec.jsx)("label",{htmlFor:i,children:n})]})}function I7({position:e,checked:t,disabled:n}){let r=kB(),i=TV(),o=i.formatMessage({id:"segments.controls.slope.label",defaultMessage:"Slope"}),a=i.formatMessage({id:"segments.controls.slope.switch-tooltip",defaultMessage:"Toggle slope"}),s=i.formatMessage({id:"segments.controls.slope.disabled-tooltip",defaultMessage:"This element cannot be sloped."});return(0,ec.jsxs)("div",{className:"popup-control-row","data-tour-id":"slope-control",children:[(0,ec.jsx)("div",{className:"popup-control-label",children:(0,ec.jsx)(Te,{label:o,placement:"left",role:"label",children:(0,ec.jsx)("span",{className:"popup-control-icon",children:(0,ec.jsx)("img",{src:ei(In),className:"tabler-icon"})})})}),(0,ec.jsx)("div",{style:{flexGrow:"1",display:"flex",justifyContent:"center"},children:(0,ec.jsx)(Te,{label:a,sublabel:n?s:void 0,placement:"bottom",role:"label",children:(0,ec.jsx)(I9,{onCheckedChange:function(t){r(cV(e,t)),r(P0())},checked:t,disabled:n,"aria-label":o})})})]})}IG(I6,"isFunction"),IG(I8,"getState");var Pe={};Pe=D("81EQX");var Pt={};function Pn({position:e,anchor:t,elevation:n,units:r}){let i=kU(e=>e.locale.locale),o=kB(),a=TV(),s=1===r?4.8768:5;return(0,ec.jsx)(C8,{value:n,minValue:0,maxValue:s,inputValueFormatter:e=>1===r?ck(cS(e),r,i):ck(e,r,i),displayValueFormatter:e=>c_(e,r,i),onClickUp:function(){let i=1===r?.1524:.15,a=1===r?4.8768:5;o(cq(e,t,new gf(n).plus(i).clamp(0,a).toDecimalPlaces(3).toNumber())),o(P0())},onClickDown:function(){let i=1===r?.1524:.15,a=1===r?4.8768:5;o(cq(e,t,new gf(n).minus(i).clamp(0,a).toDecimalPlaces(3).toNumber())),o(P0())},onUpdatedValue:n=>{let i,a=C5(n,r),s=1===r?4.8768:5;try{i=new gf(a).clamp(0,s).toDecimalPlaces(3).toNumber()}catch(e){if(e instanceof Error&&/DecimalError/.test(e.message))return;console.error(e);return}o(cq(e,t,i)),o(P0())},inputTooltip:a.formatMessage({id:"tooltip.ground-height-input",defaultMessage:"Change ground height"}),upTooltip:a.formatMessage({id:"tooltip.ground-height-raise",defaultMessage:"Raise ground height"}),downTooltip:a.formatMessage({id:"tooltip.ground-height-lower",defaultMessage:"Lower ground height"})})}function Pr({position:e}){let t=kU(e=>e.street.units),n=kU(t=>t.street.segments[e].slope),r=TV(),i=r.formatMessage({id:"segments.controls.slope.left-label",defaultMessage:"Left ground height"}),o=r.formatMessage({id:"segments.controls.slope.right-label",defaultMessage:"Right ground height"});return(0,ec.jsxs)("div",{className:"non-variant","data-tour-id":"slope-control-group",children:[(0,ec.jsxs)("div",{className:"popup-control-row",children:[(0,ec.jsx)(Te,{label:i,placement:"left",role:"label",children:(0,ec.jsx)("span",{className:"popup-control-icon",children:(0,ec.jsx)("img",{src:ei(Pe),className:"tabler-icon"})})}),(0,ec.jsx)(Pn,{anchor:0,position:e,elevation:n.values[0],units:t},e)]}),(0,ec.jsxs)("div",{className:"popup-control-row",children:[(0,ec.jsx)(Te,{label:o,placement:"left",role:"label",children:(0,ec.jsx)("span",{className:"popup-control-icon",children:(0,ec.jsx)("img",{src:ei(Pt),className:"tabler-icon"})})}),(0,ec.jsx)(Pn,{anchor:1,position:e,elevation:n.values[1],units:t},e)]})]})}function Pi({position:e}){let t=kU(e=>e.street.units),n=kU(t=>"number"==typeof e?t.street.segments[e].elevation:t.street.boundary[e].elevation),r=kU(t=>"number"==typeof e?t.street.segments[e]:null),i=kU(t=>"number"!=typeof e&&(ci(t.street.boundary[e].variant).waterfront??!1)),o=TV(),a=i?o.formatMessage({id:"segments.controls.sea-level",defaultMessage:"Sea level"}):o.formatMessage({id:"segments.controls.ground-height",defaultMessage:"Ground height"}),s=!1,l=!1;if(r){let e=cg(r.type,r.variantString);"unknown"in e||(s=(l="path"===e.slope||"berm"===e.slope)&&r.slope.on)}return(0,ec.jsxs)(ec.Fragment,{children:["number"==typeof e&&(0,ec.jsx)(I7,{position:e,checked:s,disabled:!l}),s?(0,ec.jsx)(Pr,{position:e}):(0,ec.jsxs)("div",{className:"popup-control-row","data-tour-id":"elevation-control",children:[(0,ec.jsx)("div",{className:"popup-control-label",children:(0,ec.jsx)(Te,{label:a,placement:"left",children:(0,ec.jsx)("span",{className:"popup-control-icon",children:(0,ec.jsx)(C0,{name:"elevation",size:"30",stroke:"1.5"})})})}),(0,ec.jsx)(It,{position:e,elevation:n,units:t,seaLevel:i})]})]})}function Po(e){let t,{type:n,position:r}=e,{locale:i,segmentInfo:o}=kU(e=>e.locale),a=kU(e=>e.flags.UNIVERSAL_ELEVATION_CONTROLS.value),s=kU(e=>e.flags.COASTMIX_MODE.value);switch(n){case"slice":t=(0,ec.jsx)(C9,{position:r});break;
91case"boundary":t=(0,ec.jsx)(C7,{position:r});break;default:t=null}return(0,ec.jsx)("div",{className:"popup-controls",children:(0,ec.jsxs)("div",{className:"popup-control-group",children:[(0,ec.jsx)(T0,{locale:i,messages:o,children:(0,ec.jsx)(C2,{type:n,position:r})}),(0,ec.jsxs)("div",{className:"non-variant",children:[t,"number"==typeof r&&a&&!s&&(0,ec.jsx)(Ie,{position:r}),s&&(0,ec.jsx)(Pi,{position:r})]})]})})}function Pa(e,t){let n=cm(e),r=t?cg(e,t):{},i=r.name??n.name,o=r.nameKey??n.nameKey;return po(`segments.${o}`,i,{ns:"segment-info"})}function Ps({label:e,type:t,handleClickEdit:n,isEditUnlocked:r}){let i=TV();return"boundary"===t?(0,ec.jsx)("h3",{className:"popup-label",children:e}):r?(0,ec.jsxs)("h3",{className:"popup-label popup-label-editable",onClick:n,"data-tour-id":"editable-label",children:[e,(0,ec.jsx)(C0,{name:"edit",size:"18",className:"popup-label-editable-icon"})]}):(0,ec.jsx)(Te,{label:i.formatMessage({id:"plus.locked.sub-edit",defaultMessage:"Upgrade to Streetmix+ to edit"}),children:(0,ec.jsxs)("h3",{className:"popup-label popup-label-editable","data-tour-id":"editable-label",children:[e,(0,ec.jsx)(C0,{name:"lock",className:"popup-label-editable-icon"})]})})}function Pl({slice:e}){let t=kB(),n=TV();return(0,ec.jsxs)(T4,{className:"popup-slice-remove",title:n.formatMessage({id:"tooltip.remove-segment",defaultMessage:"Remove segment"}),onClick:n=>{n.preventDefault(),n.shiftKey?t(P2()):t(P1(e))},children:[(0,ec.jsx)(C0,{name:"trash",size:"18",className:"remove-icon"}),(0,ec.jsx)(TQ,{id:"btn.remove",defaultMessage:"Remove"})]})}function Pu(e){let{type:t,position:n}=e,r=kU(e=>e.street),i=kU(e=>e.user.isSubscriber),o=kU(e=>e.flags.COASTMIX_MODE?.value??!1),a=function(e,t,n){if("slice"===t&&"number"==typeof n){let t=e.segments[n];return void 0!==t.label?t.label:Pa(t.type,t.variantString)}if("boundary"===t&&"number"!=typeof n){let t=e.boundary[n].variant;return po(`buildings.${t}.name`,ci(t).label,{ns:"segment-info"})}return""}(r,t,n);return(0,ec.jsxs)("header",{children:[(0,ec.jsx)(Ps,{label:a,type:t,handleClickEdit:()=>{if("slice"===t){let e=r.segments[n];!function(e,t){let n=t.label||Pa(t.type,t.variantString),r=window.prompt(po("prompt.segment-label","New segment label:"),n);if(null===r)return;let i=function(e){if(""!==(e=e.trim()))return e.length>50&&(e=e.substring(0,50)+"…"),e}(r);i!==n&&(hy.dispatch(cZ(e,{label:i})),hy.dispatch(P0()))}(n,e)}},isEditUnlocked:i||o}),"slice"===t&&(0,ec.jsx)(Pl,{slice:n})]})}function Pc({type:e,variantString:t,onMouseOver:n,onMouseOut:r}){let i=kB(),o=function(e,t){let n=cm(e),r=cg(e,t);if(!("unknown"in r))return r.description??n.description}(e,t);if(void 0===o||""===po(`descriptions.${o.key}.content`,void 0,{ns:"segment-info"}))return null;let a=po("segments.learn-more","Learn more"),s=po(`descriptions.${o.key}.prompt`,a,{ns:"segment-info"});return(0,ec.jsx)("div",{className:"description-prompt",onClick:function(){i(ce(o))},onMouseOver:n,onMouseOut:r,children:s})}Pt=D("7h9Aj");var Pd={};Pd=D("c6ObA");var Pf={};function Ph(e){let{segment:t}=e,n=[];if(void 0===t)return null;let r=t.warnings??[!1];return(r[4]&&n.push({type:"alert",message:(0,ec.jsx)(TQ,{id:"segments.warnings.dangerous",defaultMessage:"This is a dangerous existing condition."})}),r[1]&&n.push({type:"error",message:(0,ec.jsx)(TQ,{id:"segments.warnings.does-not-fit",defaultMessage:"This doesn’t fit within the street."})}),r[2]&&n.push({type:"error",message:(0,ec.jsx)(TQ,{id:"segments.warnings.not-wide",defaultMessage:"This may not be wide enough."})}),r[3]&&n.push({type:"error",message:(0,ec.jsx)(TQ,{id:"segments.warnings.too-wide",defaultMessage:"This may be too wide."})}),(r[5]||r[6])&&n.push({type:"error",message:(0,ec.jsx)(TQ,{id:"segments.warnings.slope-exceeded",defaultMessage:"This may be too steep."})}),n.length>0)?(0,ec.jsx)("div",{className:"popup-warnings",children:(0,ec.jsx)("ul",{children:n.map(e=>{let t;return t="alert"===e.type?(0,ec.jsx)("img",{src:ei(Pd),alt:""}):(0,ec.jsx)("img",{src:ei(Pf),alt:""}),(0,ec.jsxs)("li",{className:`popup-warning-${e.type}`,children:[t," ",e.message]},e.message.props.id)})})}):null}function Pp({position:e,setArrowHighlighted:t}){let n,r=kU(e=>e.street);return"number"==typeof e&&(n=r.segments[e]),(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(Ph,{segment:n}),n?.type!==void 0&&(0,ec.jsx)(Pc,{type:n.type,variantString:n.variantString,onMouseOver:function(){t(!0)},onMouseOut:function(){t(!1)}})]})}
91function Pm({setArrowHighlighted:e,...t}){let n=kB(),r=["popup-content"];return"boundary"===t.type&&r.push("popup-at-boundary"),(0,ec.jsx)("div",{className:r.join(" "),onMouseEnter:function(){n(u7(!0))},onMouseLeave:function(){n(u7(!1)),j9()},children:(0,ec.jsxs)(Tt,{children:[(0,ec.jsx)(Pu,{...t}),(0,ec.jsx)(Po,{...t}),(0,ec.jsx)(Pp,{setArrowHighlighted:e,...t})]})})}Pf=D("6hp9H");let Pg={open:0,close:150};function Py({isDragging:e,disabled:t=!1,children:n,...r}){let i=kU(e=>e.ui.activeSegment),o=kU(e=>"boundary"===r.type?e.street.boundary[r.position]:e.street.segments[r.position]),[a,s]=(0,ef.useState)(!1),[l,u]=(0,ef.useState)(!1),c=(0,ef.useRef)(null),d=EG(),f=j6();(0,ef.useEffect)(()=>{function e(){s(!1)}return window.addEventListener("stmx:dismiss_slice_popup",e),()=>window.removeEventListener("stmx:dismiss_slice_popup",e)},[]);let{refs:h,floatingStyles:p,context:m,middlewareData:g}=Od({nodeId:d,open:a&&!e&&!t,onOpenChange(e,t,n){f.activeTour&&i===r.position?s(!0):s(e)},placement:"top",whileElementsMounted:SH,middleware:[S0({crossAxis:!0,boundary:document.querySelector("#street-section-popup-boundary"),padding:{right:20,left:20}}),S2({element:c,padding:20})]}),{delay:y,currentId:v,isInstantPhase:b}=E8(m),{getReferenceProps:w,getFloatingProps:x}=Om([E3(m,{delay:y,mouseOnly:!0,handleClose:function(e){void 0===e&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},o=!1,a=null,s=null,l="u">typeof performance?performance.now():0,u=e=>{let{x:n,y:u,placement:c,elements:d,onClose:f,nodeId:h,tree:p}=e;return function(e){function m(){EQ(i),f()}if(EQ(i),!d.domReference||!d.floating||null==c||null==n||null==u)return;let{clientX:g,clientY:y}=e,v=[g,y],b="composedPath"in e?e.composedPath()[0]:e.target,w="mouseleave"===e.type,x=E9(d.floating,b),_=E9(d.domReference,b),k=d.domReference.getBoundingClientRect(),S=d.floating.getBoundingClientRect(),E=c.split("-")[0],O=n>S.right-S.width/2,j=u>S.bottom-S.height/2,T=v[0]>=k.x&&v[0]<=k.x+k.width&&v[1]>=k.y&&v[1]<=k.y+k.height,C=S.width>k.width,I=S.height>k.height,P=(C?k:S).left,A=(C?k:S).right,R=(I?k:S).top,N=(I?k:S).bottom;if(x&&(o=!0,!w))return;if(_&&(o=!1),_&&!w){o=!0;return}if(w&&Sf(e.relatedTarget)&&E9(d.floating,e.relatedTarget)||p&&function e(t,n,r){return void 0===r&&(r=!0),t.filter(e=>{var t;return e.parentId===n&&(!r||(null==(t=e.context)?void 0:t.open))}).flatMap(n=>[n,...e(t,n.id,r)])}(p.nodesRef.current,h).length)return;if("top"===E&&u>=k.bottom-1||"bottom"===E&&u<=k.top+1||"left"===E&&n>=k.right-1||"right"===E&&n<=k.left+1)return m();let M=[];switch(E){case"top":M=[[P,k.top+1],[P,S.bottom-1],[A,S.bottom-1],[A,k.top+1]];break;case"bottom":M=[[P,S.top+1],[P,k.bottom-1],[A,k.bottom-1],[A,S.top+1]];break;case"left":M=[[S.right-1,N],[S.right-1,R],[k.left+1,R],[k.left+1,N]];break;case"right":M=[[k.right-1,N],[k.right-1,R],[S.left+1,R],[S.left+1,N]]}if(!Ow([g,y],M)){if(o&&!T)return m();if(!w&&r){let t=function(e,t){let n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;let i=e-a,o=t-s,u=Math.sqrt(i*i+o*o);return a=e,s=t,l=n,u/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}Ow([g,y],function(e){let[n,r]=e;switch(E){case"top":{let e=[[S.left,O||C?S.bottom-t:S.top],[S.right,O?C?S.bottom-t:S.top:S.bottom-t]];return[[C?n+t/2:O?n+4*t:n-4*t,r+t+1],[C?n-t/2:O?n+4*t:n-4*t,r+t+1],...e]}case"bottom":{let e=[[S.left,O||C?S.top+t:S.bottom],[S.right,O?C?S.top+t:S.bottom:S.top+t]];return[[C?n+t/2:O?n+4*t:n-4*t,r-t],[C?n-t/2:O?n+4*t:n-4*t,r-t],...e]}case"left":return[[j||I?S.right-t:S.left,S.top],[j?I?S.right-t:S.left:S.right-t,S.bottom],[n+t+1,I?r+t/2:j?r+4*t:r-4*t],[n+t+1,I?r-t/2:j?r+4*t:r-4*t]];case"right":{let e=[[j||I?S.left+t:S.right,S.top],[j?I?S.left+t:S.right:S.left+t,S.bottom]];return[[n-t,I?r+t/2:j?r+4*t:r-4*t],[n-t,I?r-t/2:j?r+4*t:r-4*t],...e]}}}([n,u]))?!o&&r&&(i.current=window.setTimeout(m,40)):m()}}};return u.__options={blockPointerEvents:n},u}({blockPointerEvents:!0,buffer:25,requireIntent:!1})}),function(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0,stickIfOpen:d=!0}
91=t,f=ef.useRef(),h=ef.useRef(!1),p=ef.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){let t=f.current;0!==e.button||"click"===s||Ej(t,!0)&&u||(n&&l&&(!i.current.openEvent||!d||"mousedown"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):(e.preventDefault(),r(!0,e.nativeEvent,"click")))},onClick(e){let t=f.current;if("mousedown"===s&&f.current){f.current=void 0;return}Ej(t,!0)&&u||(n&&l&&(!i.current.openEvent||!d||"click"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,!(e.defaultPrevented||!c||Oa(e))&&(" "!==e.key||EE(o)||(e.preventDefault(),h.current=!0),Sh(e.target)&&"A"===e.target.tagName||"Enter"!==e.key||(n&&l?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!c||Oa(e)||EE(o))&&" "===e.key&&h.current&&(h.current=!1,n&&l?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}),[i,o,s,u,c,r,n,d,l]);return ef.useMemo(()=>a?{reference:p}:{},[a,p])}(m),Oh(m),Oc(m)]),_=g.arrow?.x??0,k=g.arrow?.y??0,S=_+16,E=k+16,{isMounted:O,styles:j}=Ob(m,{duration:b?{open:0,close:150*(v===m.floatingId)}:150,initial:({side:e})=>({opacity:0,transform:({top:"rotateX(-80deg)",bottom:"rotateX(80deg)",left:"rotateY(-80deg)",right:"rotateY(80deg)"})[e]}),common:({side:e})=>({transformOrigin:({top:`${S}px calc(100% + 16px)`,bottom:`${S}px -16px`,left:`calc(100% + 16px) ${E}px`,right:`-16px ${E}px`})[e]})}),T=(0,ef.cloneElement)(n,w({ref:ED([h.setReference,n.ref]),...n.props})),C=["popup-arrow"];return l&&C.push("highlight"),(0,ec.jsxs)(ec.Fragment,{children:[T,(0,ec.jsx)(EY,{id:d,children:O&&(0,ec.jsx)(Oi,{children:(0,ec.jsx)("div",{ref:h.setFloating,className:"floating-ui-wrapper",style:p,...x(),children:o&&(0,ec.jsxs)("div",{className:"popup-container",style:j,children:[(0,ec.jsx)(Pm,{setArrowHighlighted:u,...r}),(0,ec.jsx)(EW,{className:C.join(" "),width:32,height:16,ref:c,context:m})]})})})})]})}function Pv({children:e,...t}){return(0,ec.jsx)(E6,{delay:Pg,timeoutMs:500,...t,children:e})}function Pb(e,t,n,r,i,o,a){let s=e.offsetWidth;if(!n)return;let l=ci(n),u="number"==typeof l.overhangWidth?l.overhangWidth:0,c=kh(n,t,i),d=s+u,f=Math.min(2048,c+r*cI),h=document.createElement("canvas"),p=e.querySelector("canvas");h.width=d*a,h.height=(f+45)*a,h.style.width=d+"px",h.style.height=f+45+"px",p?e.replaceChild(h,p):e.appendChild(h);let m=h.getContext("2d");null!==m&&k_(m,t,n,r,i,d,f,0,1,a,o)}function Pw({position:e,width:t,updatePerspective:n}){let r=kU(e=>e.street),i=kU(e=>e.ui.activeSegment),o=kU(e=>e.app.readOnly),a=kU(e=>e.flags.EDIT_BOUNDARY_LEFT.value),s=kU(e=>e.flags.EDIT_BOUNDARY_RIGHT.value),l=kU(e=>e.system.devicePixelRatio),u=kB(),[c,d]=(0,ef.useState)(!0),[f,h]=(0,ef.useState)(!1),[p,m]=(0,ef.useState)(!1),g=(0,ef.useRef)(null),y=(0,ef.useRef)(null),v=(0,ef.useRef)(null),b=(0,ef.useRef)(null),w=!(!a&&"left"===e||!s&&"right"===e)&&!o,x=r.boundary[e].variant,_=r.boundary[e].floors,k=r.boundary[e].elevation,S=r.remainingWidth<0,{hasFloors:E,earthColor:O}=ci(x),j=k$({streetId:r.id,variant:x}),T=(0,ef.useCallback)(t=>{if(!w)return;let n="-"===t.key,r="+"===t.key||"Equal"===t.code;E&&(r?u(c7(e)):n&&u(de(e)))},[u,w,e,E]);function C(t){null===g.current||w&&(u(dW(e)),document.addEventListener("keydown",T))}function I(e){null===g.current||w&&(u(dW(null)),document.removeEventListener("keydown",T))}function P(){m(e=>!e),h(e=>!e),d(e=>!e)}function A(t,n,r,a,s){let l="old"===t,u={[e]:`-${a}px`,width:a+"px"},c={height:`${45+r*cI}px`};s&&(c.backgroundColor=s);let d=["street-section-boundary"];return d.push(`boundary-${e}`),l&&i===e&&d.push("active"),(0,ec.jsx)("div",{className:d.join(" "),style:u,ref:n,children:(0,ec.jsx)(Py,{type:"boundary",position:e,disabled:o,children:(0,ec.jsxs)("button",{children:[(0,ec.jsx)("section",{ref:e=>{(p||l)&&(p&&l?y.current=e:g.current=e)},onMouseEnter:C,onMouseLeave:I}),(0,ec.jsx)("div",{className:"active-bg"}),(0,ec.jsx)("div",{className:"boundary-earth",style:c})]})})})}return(0,ef.useEffect)(()=>{null!==g.current&&(j?.streetId===r.id&&j?.variant!==x?P():Pb(g.current,e,x,k,_,S,l))},[x,_,S,t,k]),(0,ef.useEffect)(()=>{null!==g.current&&(n(y.current),n(g.current),Pb(g.current,e,x,k,_,S,l))},[p]),(0,ef.useEffect)(()=>()=>{document.removeEventListener("keydown",T)},[T]),(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(kF,{in:c,classNames:"switching-away",timeout:250,unmountOnExit:!0,nodeRef:b,children:A("old",b,k,t,O)},"old-boundary"),(0,ec.jsx)(kF,{in:f,classNames:"switching-in",timeout:250,onEntered:P,unmountOnExit:!0,nodeRef:v,children:A("new",v,k,t,O)},"new-boundary")]})}let Px=12/.3048,P_="rgb(53, 45, 39)";var Pk={};async function PS(e,t){let n;if(void 0===as.find(t=>t.value===e)&&(e="en"),"segment-info"===t){let{default:t}=await import(`@streetmix/i18n/locales/${e}/segment-info.json`);n=t}else{let{default:t}=await import(`@streetmix/i18n/locales/${e}/main.json`);n=t}return n}async function PE(e,t,n,r,i,o,a){e.save();let s=void 0===globalThis.window?"Geist Sans":"Rubik Variable";e.lineWidth=.25*i,e.font=`normal 400 ${12*i}px ${s}`,e.textAlign="center",e.textBaseline="top",e.strokeStyle="black",e.fillStyle="black";let l=!0;for(let s of t.segments){let u=s.width*Px,c=r;l&&(c--,l=!1),PO(e,c,n+44,c,n+125,i);let d=r+u/2,f=c_(s.width,t.units,o);e.fillText(f,d*i,(n+60)*i);let h=s.label??await (a??PC)(s.type,s.variantString,o);e.measureText(h).width/i<=u-10&&e.fillText(h,d*i,(n+83)*i),r+=u}let u=r+1;
91PO(e,u,n+44,u,n+125,i),e.restore()}function PO(e,t,n,r,i,o){t*=o,n*=o,r*=o,i*=o,e.save(),e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke(),e.restore()}Pk=JSON.parse('{"sidewalk":{"name":"Sidewalk","nameKey":"sidewalk","owner":"PEDESTRIAN","zIndex":30,"coastmixPaletteOrder":20,"defaultWidth":{"metric":1.8,"imperial":6},"rules":{"minWidth":{"metric":1.8,"imperial":6},"slope":"path"},"defaultElevation":{"metric":0.15,"imperial":0.5},"enableElevation":true,"variants":["sidewalk-density"],"details":{"dense":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"vehicles":[{"id":"pedestrian","variants":{"density":"dense"}}]}},"normal":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"vehicles":[{"id":"pedestrian","variants":{"density":"normal"}}]}},"sparse":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"vehicles":[{"id":"pedestrian","variants":{"density":"sparse"}}]}},"empty":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}]}}}},"sidewalk-tree":{"name":"Sidewalk tree","nameKey":"sidewalk-tree","owner":"NATURE","zIndex":22,"coastmixPaletteOrder":21,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"path"},"variants":["tree-type"],"details":{"big":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"tree","variants":{"type":"big"}}]}},"palm-tree":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"tree","variants":{"type":"palm-tree"}}]}}}},"sidewalk-bike-rack":{"name":"Bike rack","nameKey":"bike-rack","owner":"BIKE","zIndex":23,"coastmixPaletteOrder":22,"defaultWidth":{"metric":1.5,"imperial":5},"rules":{"slope":"path"},"defaultVariant":"left|sidewalk","variants":["orientation","bike-rack-elevation"],"details":{"left|sidewalk-parallel":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["parallel","left"]}}]}},"right|sidewalk-parallel":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["parallel","right"]}}]}},"left|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["perpendicular","left"]}}]}},"right|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["perpendicular","right"]}}]}},"left|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["perpendicular","left"]}}]}},"right|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"bike-rack","variants":{"direction|orientation":["perpendicular","right"]}}]}}}},"sidewalk-bench":{"name":"Bench","nameKey":"bench","owner":"FURNITURE","zIndex":24,"coastmixPaletteOrder":23,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"path"},"variants":["bench-orientation"],"details":{"left":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bench","variants":{"orientation":"left"}}]}},"center":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bench","variants":{"orientation":"center"}}]}},"right":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bench","variants":{"orientation":"right"}}]}}}},"outdoor-dining":{"name":"Outdoor dining","nameKey":"outdoor-dining","owner":"FURNITURE","zIndex":24,"coastmixPaletteOrder":24,"defaultWidth":{"metric":2.4,"imperial":8},"rules":{"slope":"path"},"unlockCondition":"SIGN_IN","variants":["occupants","elevation"],"details":{"occupied|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"outdoor-dining","variants":{"occupants":"occupied"}}]}},"empty|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"outdoor-dining","variants":{"occupants":"empty"}}]}},"occupied|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"outdoor-dining","variants":{"occupants":"occupied"}}]}},"empty|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"outdoor-dining","variants":{"occupants":"empty"}}]}}}},"sidewalk-wayfinding":{"name":"Wayfinding sign","nameKey":"wayfinding-sign","owner":"FURNITURE","zIndex":21,"coastmixPaletteOrder":25,"defaultWidth":{"metric":1.2,"imperial":4},"description":{"key":"wayfinding-sign","image":"wayfinding-02.jpg"},"rules":{"slope":"path"},"variants":["wayfinding-type"],"details":{"large":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"wayfinding-sign","variants":{"type":"large"}}]}},"medium":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"wayfinding-sign","variants":{"type":"medium"}}]}},"small":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"wayfinding-sign","variants":{"type":"small"}}]}}}},"sidewalk-lamp":{"name":"Lamp","nameKey":"sidewalk-lamp","owner":"FURNITURE","zIndex":19,"coastmixPaletteOrder":26,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"path"},"defaultVariant":"both|traditional","variants":["lamp-orientation","lamp-type"],"details":{"right|modern":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","right"]}}]}},"both|modern":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","both"]}}]}},"left|modern":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","left"]}}]}},"right|traditional":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["traditional","right"]}}]}},"both|traditional":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["traditional","both"]}}]}},"left|traditional":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["traditional","left"]}}]}},"right|pride":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","right"]}}
91,{"id":"pride-banner","variants":{"orientation":"right"}}]}},"left|pride":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","left"]}},{"id":"pride-banner","variants":{"orientation":"left"}}]}},"both|pride":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"lamp","variants":{"type|orientation":["modern","both"]}},{"id":"pride-banner","variants":{"orientation":"both"}}]}}}},"utilities":{"name":"Utility pole","nameKey":"utility-pole","owner":"UTILITY","zIndex":10,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"berm"},"unlockCondition":"SIGN_IN","variants":["orientation"],"details":{"left":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"utility-pole","variants":{"orientation":"left"}}]}},"right":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"utility-pole","variants":{"orientation":"right"}}]}}}},"parklet":{"name":"Parklet","nameKey":"parklet","owner":"FURNITURE","zIndex":15,"defaultWidth":{"metric":2.4,"imperial":8},"description":{"key":"parklet","image":"parklets-01.jpg","imageCredit":"San Francisco Planning Department"},"rules":{"minWidth":{"metric":2.4,"imperial":8},"slope":"path"},"variants":["orientation"],"details":{"left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"parklet","variants":{"orientation":"left"}}]}},"right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"parklet","variants":{"orientation":"right"}}]}}}},"street-vendor":{"name":"Street vendor","nameKey":"street-vendor","owner":"PEDESTRIAN","zIndex":24,"defaultWidth":{"metric":1.2,"imperial":4},"rules":{"minWidth":{"metric":1.2,"imperial":4},"slope":"path"},"defaultElevation":{"metric":0.15,"imperial":0.5},"enableElevation":true,"unlockCondition":"SIGN_IN","defaultVariant":"table|concrete","variants":["vendor-type","ground"],"details":{"handcart|concrete":{"rules":{"minWidth":{"metric":0.9,"imperial":3}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"handcart"}}]}},"table|concrete":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"table"}}]}},"tarp|concrete":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"tarp"}}]}},"platform|concrete":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"platform"}}]}},"handcart|asphalt":{"rules":{"minWidth":{"metric":0.9,"imperial":3}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"handcart"}}]}},"table|asphalt":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"table"}}]}},"tarp|asphalt":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"tarp"}}]}},"platform|asphalt":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"street-vendor","variants":{"vendor-type":"platform"}}]}}}},"divider":{"name":"Buffer","nameKey":"divider","owner":"NATURE","zIndex":20,"coastmixPaletteOrder":2,"defaultWidth":{"metric":0.5,"imperial":2},"defaultVariant":"flowers","variants":["divider-type"],"details":{"planting-strip":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}]}},"planter-box":{"name":"Planter box","nameKey":"planter-box","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--stripes-diagonal"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"planter-box","variants":{"type":"default"}}]}},"median":{"name":"Median","nameKey":"median","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}]}},"striped-buffer":{"name":"Buffer","nameKey":"divider","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--stripes-diagonal"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}]}},"bush":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"planting-strip","variants":{"type":"bush"}}]}},"flowers":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"planting-strip","variants":{"type":"flowers"}}]}},"big-tree":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"tree","variants":{"type":"big"}}]}},"palm-tree":{"name":"Planting strip","nameKey":"planting-strip","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"tree","variants":{"type":"palm-tree"}}]}},"bollard":{"name":"Bollard","nameKey":"bollard","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--stripes-diagonal"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"bollard","variants":{"type":"default"}}]}},"dome":{"name":"Traffic exclusion dome","nameKey":"dome","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--stripes-diagonal"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"dome","variants":{"type":"default"}}]}}}},"crosswalk":{"name":"Crosswalk","nameKey":"crosswalk","defaultWidth":{"metric":3,"imperial":10},"defaultVariant":"zebra-crossing","defaultElevation":0,"enableElevation":true,"enableWithFlag":"SEGMENT_CROSSWALK","variants":["crosswalk-type"],"details":{"zebra-crossing":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--crosswalk-zebra"}]}},"zebra-crossing-bike":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--crosswalk-zebra-bike"}]}}}},"temporary":{"name":"Temporary barrier","nameKey":"temporary-barrier","zIndex":20,"defaultWidth":{"metric":0.5,"imperial":2},"defaultVariant":"traffic-cone","unlockCondition":"SIGN_IN","variants":["temporary-barrier-type"],"details":{"barricade":{"name":"Barricade","nameKey":"barricade","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"barricade","variants":{"type":"default"}}]}},"traffic-cone":{"name":"Traffic cone","nameKey":"traffic-cone","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"traffic-cone","variants":{"type":"default"}}]}},"jersey-barrier-concrete":{"name":"Jersey barrier","nameKey":"jersey-barrier","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"jersey-barrier","variants":{"material":"concrete"}}]}},"jersey-barrier-plastic":{"name":"Jersey barrier","nameKey":"jersey-barrier","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"objects":[{"id":"jersey-barrier","variants":{"material":"plastic"}}]}}}}
91,"drainage-channel":{"name":"Drainage channel","nameKey":"drainage-channel","owner":"DRAINAGE","coastmixPaletteOrder":50,"unlockWithFlag":"SEGMENT_DRAINAGE_CHANNEL_UNLOCKED","unlockCondition":"SUBSCRIBE","defaultWidth":{"metric":1,"imperial":3.25},"variants":["drainage-sides"],"details":{"slanted":{"components":{"lanes":[{"id":"drainage","variants":{"color":"regular"}}],"objects":[{"id":"open-drain","variants":{"drainage-sides":["slanted"]}}]},"offsetY":-50},"vertical":{"components":{"lanes":[{"id":"drainage","variants":{"color":"regular"}}],"objects":[{"id":"open-drain","variants":{"drainage-sides":["vertical"]}}]},"offsetY":-50}}},"bioswale":{"name":"Rain garden","nameKey":"rain-garden","owner":"DRAINAGE","enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":3,"unlockCondition":"SUBSCRIBE","description":{"key":"rain-garden","image":"bioswale-02.jpg","imageCredit":"Lou Huang"},"defaultWidth":{"metric":3,"imperial":10},"rules":{"minWidth":{"metric":2.45,"imperial":8}},"variants":["bioswale-vegetation"],"details":{"bush":{"components":{"lanes":[{"id":"earth","variants":{"type":"default"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"bioswale","variants":{"plants":["bush"],"sides":["slanted"]}}]},"offsetY":-50},"tree":{"components":{"lanes":[{"id":"earth","variants":{"type":"default"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}},{"id":"bioswale","variants":{"plants":["tree"],"sides":["slanted"]}}]},"offsetY":-50}}},"scooter":{"name":"Electric scooter","nameKey":"scooter","owner":"BIKE","zIndex":16,"defaultWidth":{"metric":1.5,"imperial":5},"rules":{"minWidth":{"metric":1.2,"imperial":4},"slope":"path"}
91,"variants":["direction","bike-asphalt"],"details":{"inbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"inbound"}}]}},"outbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"outbound"}}]}},"inbound|green":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"inbound"}}]}},"outbound|green":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"outbound"}}]}},"inbound|red":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"inbound"}}]}},"outbound|red":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"scooter","variants":{"direction":"outbound"}}]}}}},"scooter-drop-zone":{"name":"Scooter drop zone","nameKey":"scooter-drop-zone","owner":"FLEX","zIndex":21,"defaultWidth":{"metric":1.5,"imperial":5},"defaultVariant":"right|sidewalk|empty","variants":["orientation","scooter-elevation","scooter-riders"],"details":{"left|sidewalk|empty":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["empty","left"]}}]}},"right|sidewalk|empty":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["empty","right"]}}]}},"left|sidewalk|sparse":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["sparse","left"]}}]}},"right|sidewalk|sparse":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["sparse","right"]}}]}},"left|road|empty":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["empty","left"]}}]}},"right|road|empty":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["empty","right"]}}]}},"left|road|sparse":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["sparse","left"]}}]}},"right|road|sparse":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left-half"},{"id":"markings--lane-right-half"},{"id":"markings--lane-horiz"}],"vehicles":[{"id":"scooter","variants":{"riders|orientation":["sparse","right"]}}]}}}},"bike-lane":{"name":"Bike lane","nameKey":"bike-lane","owner":"BIKE","zIndex":16,"coastmixPaletteOrder":30,"defaultWidth":{"metric":1.8,"imperial":6},"description":{"key":"bike-lane","image":"bike-lane-02.jpg"},"rules":{"minWidth":{"metric":1.5,"imperial":5},"slope":"path"},"variants":["bike-direction","bike-asphalt","elevation"],"details":{"inbou
91nd|regular|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|regular|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|regular|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|regular|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|green|road":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|green|road":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|green|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|green|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|red|road":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|red|road":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|red|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|red|road":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|regular|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"black"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbou
91nd"]}}]}},"outbound|regular|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"black"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|regular|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"black"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|regular|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"black"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|green|sidewalk":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|green|sidewalk":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"green"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|green|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"green"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|green|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"green"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}},"inbound|red|sidewalk":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","inbound"]}}]}},"outbound|red|sidewalk":{"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-01","outbound"]}}]}},"twoway-left|red|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"red"}}],"markings":[{"id":"markings--twoway-left"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"-50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"50%"}]}},"twoway-right|red|sidewalk":{"name":"Two-way bike lane","nameKey":"twoway-bike-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"description":{"key":"colored-bike-lane","image":"bike-lane-colored-01.jpg"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"red"}}],"markings":[{"id":"markings--twoway-right"}],"vehicles":[{"id":"bike","variants":{"type|direction":["biker-02","inbound"]},"offsetX":"50%"},{"id":"bike","variants":{"type|direction":["biker-01","outbound"]},"offsetX":"-50%"}]}}}},"bikeshare":{"name":"Bikeshare station","nameKey":"bikeshare-station","owner":"FURNITURE","zIndex":21,"coastmixPaletteOrder":31,"defaultWidth":{"metric":2,"imperial":7},"rules":{"minWidth":{"metric":2.1,"imperial":7},"maxWidth":{"metric":3,"imperial":10}},"variants":["orientation","elevation"],"details":{"left|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"bikeshare","variants":{"orientation":"left"}}]}},"right|road":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"objects":[{"id":"bikeshare","variants":{"orientation":"right"}}]}},"left|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bikeshare","variants":{"orientation":"left"}}]}},"right|sidewalk":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"bikeshare","variants":{"orientation":"right"}}]}}}},"food-truck":{"name":"Food truck","nameKey":"foodtruck","owner":"CAR","zIndex":20,"coastmixPaletteOrder":32,"defaultWidth":{"metric":3,"imperial":10},"rules":{"minWidth":{"metric":3,"imperial":10}},"variants":["orientation"],"details":{"left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"food-truck","variants":{"orientation":"left"}}]}},"right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"food-truck","variants":{"orientation":"right"}}]}}}},"flex-zone":{"name":"Flex zone","nameKey":"flex-zone","owner":"FLEX","zIndex":15,"defaultWidth":{"metric":2,"imperial":7},"rules":{"minWidth":{"metric":2.1,"imperial":7},"maxWidth":{"metric":3,"imperial":10}},"variants":["flex-type","direction","orientation"],"details":{"taxi|inbou
91nd|left":{"name":"Taxi loading zone","nameKey":"taxi-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-right"}],"vehicles":[{"id":"taxi","variants":{"direction|orientation":["inbound","left"]}}]}},"taxi|inbound|right":{"name":"Taxi loading zone","nameKey":"taxi-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"}],"vehicles":[{"id":"taxi","variants":{"direction|orientation":["inbound","right"]}}]}},"taxi|outbound|left":{"name":"Taxi loading zone","nameKey":"taxi-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-right"}],"vehicles":[{"id":"taxi","variants":{"direction|orientation":["outbound","left"]}}]}},"taxi|outbound|right":{"name":"Taxi loading zone","nameKey":"taxi-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"}],"vehicles":[{"id":"taxi","variants":{"direction|orientation":["outbound","right"]}}]}},"rideshare|inbound|left":{"name":"Rideshare loading zone","nameKey":"rideshare-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-right"}],"vehicles":[{"id":"rideshare","variants":{"direction|orientation":["inbound","left"]}}]}},"rideshare|inbound|right":{"name":"Rideshare loading zone","nameKey":"rideshare-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"}],"vehicles":[{"id":"rideshare","variants":{"direction|orientation":["inbound","right"]}}]}},"rideshare|outbound|left":{"name":"Rideshare loading zone","nameKey":"rideshare-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-right"}],"vehicles":[{"id":"rideshare","variants":{"direction|orientation":["outbound","left"]}}]}},"rideshare|outbound|right":{"name":"Rideshare loading zone","nameKey":"rideshare-pick-up","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--lane-left"}],"vehicles":[{"id":"rideshare","variants":{"direction|orientation":["outbound","right"]}}]}}}},"flex-zone-curb":{"name":"Waiting area","nameKey":"flex-zone-curb","owner":"FLEX","zIndex":30,"defaultWidth":{"metric":1.2,"imperial":4},"variants":["waiting-area","orientation"],"details":{"sparse|left":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"pickup-sign","variants":{"orientation":"right"}},{"id":"person-waiting","variants":{"orientation":"right"}}]}},"sparse|right":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"pickup-sign","variants":{"orientation":"left"}},{"id":"person-waiting","variants":{"orientation":"left"}}]}},"empty|left":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"pickup-sign","variants":{"orientation":"right"}}]}},"empty|right":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"pickup-sign","variants":{"orientation":"left"}}]}}}},"parking-lane":{"name":"Parking lane","nameKey":"parking-lane","owner":"CAR","zIndex":13,"coastmixPaletteOrder":40,"defaultWidth":{"metric":2,"imperial":7},"rules":{"minWidth":{"metric":2.1,"imperial":7},"maxWidth":{"metric":3,"imperial":10},"slope":"path"},"variants":["parking-lane-direction","parking-lane-orientation"],"details":{"inbou
91nd|left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--parking-left"}],"vehicles":[{"id":"car","offsetX":-80,"variants":{"direction|orientation":["inbound","left"]}}]}},"inbound|right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--parking-right"}],"vehicles":[{"id":"car","offsetX":-80,"variants":{"direction|orientation":["inbound","right"]}}]}},"outbound|left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--parking-left"}],"vehicles":[{"id":"car","offsetX":-80,"variants":{"direction|orientation":["outbound","left"]}}]}},"outbound|right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--parking-right"}],"vehicles":[{"id":"car","offsetX":-80,"variants":{"direction|orientation":["outbound","right"]}}]}},"sideways|left":{"name":"Perpendicular parking","nameKey":"perpendicular-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":6,"imperial":20}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["sideways","left"]}}]}}
91,"sideways|right":{"name":"Perpendicular parking","nameKey":"perpendicular-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":6,"imperial":20}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["sideways","right"]}}]}},"angled-front-left|left":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-front-left","left"]}}]}},"angled-front-right|left":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-front-right","left"]}}]}},"angled-rear-left|left":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-rear-left","left"]}}]}},"angled-rear-right|left":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-rear-right","left"]}}]}},"angled-front-left|right":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-front-left","right"]}}]}},"angled-front-right|right":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-front-right","right"]}}]}},"angled-rear-left|right":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-rear-left","right"]}}]}},"angled-rear-right|right":{"name":"Angled parking","nameKey":"angled-parking","rules":{"minWidth":{"metric":4.2,"imperial":14},"maxWidth":{"metric":5.4,"imperial":18}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"car","variants":{"direction|orientation":["angled-rear-right","right"]}}]}}}},"drive-lane":{"name":"Drive lane","nameKey":"drive-lane","owner":"CAR","zIndex":14,"coastmixPaletteOrder":41,"defaultWidth":{"metric":3,"imperial":10},"rules":{"minWidth":{"metric":2.4,"imperial":8},"maxWidth":{"metric":3.6,"imperial":12},"slope":"path"}
91,"variants":["direction","car-type"],"details":{"inbound|car":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"car","variants":{"direction":"inbound"}}]}},"outbound|car":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"car","variants":{"direction":"outbound"}}]}},"inbound|car-with-bus":{"name":"Mixed-traffic drive lane","nameKey":"mixed-drive-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bus-alt","variants":{"direction":"inbound"}},{"id":"car","variants":{"direction":"inbound"}}]}},"outbound|car-with-bus":{"name":"Mixed-traffic drive lane","nameKey":"mixed-drive-lane","rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bus-alt","variants":{"direction":"outbound"}},{"id":"car","variants":{"direction":"outbound"}}]}},"inbound|car-with-bike":{"name":"Mixed-traffic drive lane","nameKey":"mixed-drive-lane","rules":{"dangerous":true},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"car","variants":{"direction":"inbound"}},{"id":"bike","offsetX":30,"variants":{"type|direction":["biker-02","inbound"]}}],"effects":[{"id":"biker-stress","offsetX":20,"variants":{"type":"sweat-drop"}}]}},"outbound|car-with-bike":{"name":"Mixed-traffic drive lane","nameKey":"mixed-drive-lane","rules":{"dangerous":true},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"car","variants":{"direction":"outbound"}},{"id":"bike","offsetX":-30,"variants":{"type|direction":["biker-02","outbound"]}}]}},"inbound|sharrow":{"name":"Sharrow","nameKey":"sharrow","rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"defaultWidth":{"metric":4.2,"imperial":14},"description":{"key":"sharrow","image":"sharrow-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-inbound"}],"vehicles":[{"id":"car","variants":{"direction":"inbound"}},{"id":"bike","variants":{"type|direction":["biker-02","inbound"]}}]}},"outbound|sharrow":{"name":"Sharrow","nameKey":"sharrow","rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"defaultWidth":{"metric":4.2,"imperial":14},"description":{"key":"sharrow","image":"sharrow-01.jpg"},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-outbound"}],"vehicles":[{"id":"car","variants":{"direction":"outbound"}},{"id":"bike","variants":{"type|direction":["biker-02","outbound"]}}]}},"inbound|bus":{"rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"inbound"}}]}},"outbound|bus":{"rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"outbound"}}]}},"inbound|truck":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"truck","variants":{"direction":"inbound"}}]}},"outbound|truck":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"truck","variants":{"direction":"outbound"}}]}},"inbound|microvan":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"microvan","variants":{"direction":"inbound"}}]}},"outbound|microvan":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"microvan","variants":{"direction":"outbound"}}]}},"inbound|av":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"av","variants":{"direction":"inbound"}}]}},"outbound|av":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"av","variants":{"direction":"outbound"}}]}},"inbound|motorcycle-sidecar":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"motorcycle-sidecar","variants":{"direction":"inbound"}}]}},"outbound|motorcycle-sidecar":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"motorcycle-sidecar","variants":{"direction":"outbound"}}]}},"inbound|pedestrian":{"name":"Pedestrian","nameKey":"pedestrian","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"pedestrian","variants":{"density":"normal"}}]}},"outbound|pedestrian":{"name":"Pedestrian","nameKey":"pedestrian","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"pedestrian","variants":{"density":"normal"}}]}}}},"turn-lane":{"name":"Turn lane","nameKey":"turn-lane","owner":"CAR","zIndex":13,"defaultWidth":{"metric":3,"imperial":10},"rules":{"minWidth":{"metric":2.7,"imperial":9},"maxWidth":{"metric":3.6,"imperial":12},"slope":"path"},"variants":["direction","turn-lane-orientation"],"details":{"inbou
91nd|left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","right"]}}]}},"inbound|left-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-straight-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","right"]}}]}},"inbound|straight":{"name":"No turn lane","nameKey":"turn-lane-straight","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound"}],"vehicles":[{"id":"car","variants":{"direction":"inbound"}}]}},"inbound|right-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--right-straight-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","left"]}}]}},"inbound|right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--right-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","left"]}}]}},"inbound|both":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--both-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","right"]}}]}},"inbound|left-right-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-right-straight-inbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["inbound","right"]}}]}},"inbound|shared":{"name":"Center turn lane","nameKey":"turn-lane-center","rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":4.8,"imperial":16}},"defaultWidth":{"metric":3.6,"imperial":12},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--shared-inbound"},{"id":"markings--center-lane-left"},{"id":"markings--center-lane-right"}]}},"outbound|left":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","left"]}}]}},"outbound|left-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-straight-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","left"]}}]}},"outbound|straight":{"name":"No turn lane","nameKey":"turn-lane-straight","components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound"}],"vehicles":[{"id":"car","variants":{"direction":"outbound"}}]}},"outbound|right-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--right-straight-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","right"]}}]}},"outbound|right":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--right-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","right"]}}]}},"outbound|both":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--both-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","left"]}}]}},"outbound|left-right-straight":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--left-right-straight-outbound"}],"vehicles":[{"id":"car","variants":{"direction|turn-orientation":["outbound","left"]}}]}},"outbound|shared":{"name":"Center turn lane","nameKey":"turn-lane-center","rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":4.8,"imperial":16}},"defaultWidth":{"metric":3.6,"imperial":12},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--shared-outbound"},{"id":"markings--center-lane-left"},{"id":"markings--center-lane-right"}]}}}},"bus-lane":{"name":"Bus lane","nameKey":"bus-lane","owner":"TRANSIT","zIndex":15,"coastmixPaletteOrder":42,"defaultWidth":{"metric":3.6,"imperial":12},"rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":3.9,"imperial":13},"slope":"path"},"variants":["direction","bus-asphalt","bus-type"],"details":{"inbou
91nd|regular|typical":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"inbound"}}]}},"outbound|regular|typical":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"outbound"}}]}},"inbound|colored|typical":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"inbound"}}]}},"outbound|colored|typical":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"bus","variants":{"direction":"outbound"}}]}},"inbound|shared|typical":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-inbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"bus","variants":{"direction":"inbound"}},{"id":"bike","offsetX":30,"variants":{"type|direction":["biker-02","inbound"]}}]}},"outbound|shared|typical":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-outbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"bus","variants":{"direction":"outbound"}},{"id":"bike","offsetX":-30,"variants":{"type|direction":["biker-02","outbound"]}}]}},"inbound|regular|double-decker":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"inbound"}}]}},"outbound|regular|double-decker":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"outbound"}}]}},"inbound|colored|double-decker":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"inbound"}}]}},"outbound|colored|double-decker":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"outbound"}}]}},"inbound|shared|double-decker":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-inbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"inbound"}},{"id":"bike","offsetX":30,"variants":{"type|direction":["biker-02","inbound"]}}]}},"outbound|shared|double-decker":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-outbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"double-decker-bus","variants":{"direction":"outbound"}},{"id":"bike","offsetX":-30,"variants":{"type|direction":["biker-02","outbound"]}}]}},"inbound|regular|av-shuttle":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"inbound"}}]}},"outbound|regular|av-shuttle":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"outbound"}}]}},"inbound|colored|av-shuttle":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"inbound"}}]}},"outbound|colored|av-shuttle":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"outbound"}}]}},"inbound|shared|av-shuttle":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--sharrow-inbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"inbound"}},{"id":"bike","offsetX":30,"variants":{"type|direction":["biker-02","inbound"]}}]}},"outbound|shared|av-shuttle":{"name":"Shared bus/bike lane","nameKey":"bus-lane-shared","defaultWidth":{"metric":4.2,"imperial":14},"rules":{"minWidth":{"metric":3.6,"imperial":12},"maxWidth":{"metric":4.2,"imperial":14}},"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}
91],"markings":[{"id":"markings--sharrow-outbound"},{"id":"markings--lane-left"},{"id":"markings--lane-right"}],"vehicles":[{"id":"av-shuttle","variants":{"direction":"outbound"}},{"id":"bike","offsetX":-30,"variants":{"type|direction":["biker-02","outbound"]}}]}}}},"streetcar":{"name":"Streetcar","nameKey":"streetcar","owner":"TRANSIT","zIndex":15,"coastmixPaletteOrder":43,"defaultWidth":{"metric":3.6,"imperial":12},"rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":4.2,"imperial":14},"slope":"path"},"variants":["direction","public-transit-asphalt"],"details":{"inbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--streetcar-track-01"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"streetcar","variants":{"direction":"inbound"}}]}},"outbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--streetcar-track-01"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"streetcar","variants":{"direction":"outbound"}}]}},"inbound|colored":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"streetcar","variants":{"direction":"inbound"}}]}},"outbound|colored":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"streetcar","variants":{"direction":"outbound"}}]}},"inbound|grass":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}],"vehicles":[{"id":"streetcar","variants":{"direction":"inbound"}}]}},"outbound|grass":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}],"vehicles":[{"id":"streetcar","variants":{"direction":"outbound"}}]}}}},"light-rail":{"name":"Light rail","nameKey":"light-rail","owner":"TRANSIT","zIndex":15,"coastmixPaletteOrder":44,"defaultWidth":{"metric":3.6,"imperial":12},"rules":{"minWidth":{"metric":3,"imperial":10},"maxWidth":{"metric":4.2,"imperial":14}},"variants":["direction","public-transit-asphalt"],"details":{"inbou
91nd|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"gray"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"inbound"}}]}},"outbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"gray"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"outbound"}}]}},"inbound|colored":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"inbound"}}]}},"outbound|colored":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"outbound"}}]}},"inbound|grass":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"inbound"}}]}},"outbound|grass":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"green"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}],"markings":[{"id":"markings--streetcar-track-02"},{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"light-rail","variants":{"direction":"outbound"}}]}}}},"transit-shelter":{"name":"Transit shelter","nameKey":"transit-shelter","owner":"TRANSIT","zIndex":20,"coastmixPaletteOrder":45,"defaultWidth":{"metric":2.7,"imperial":9},"defaultVariant":"right|street-level","rules":{"minWidth":{"metric":2.7,"imperial":9}},"variants":["orientation","transit-shelter-elevation"],"details":{"left|street-level":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"transit-shelter","variants":{"type|orientation":["transit-shelter-01","left"]}}]}},"right|street-level":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"transit-shelter","variants":{"type|orientation":["transit-shelter-01","right"]}}]}},"left|light-rail":{"description":{"key":"transit-shelter-elevated","image":"transit-station-elevated.jpg"},"rules":{"minWidth":{"metric":2.4,"imperial":8}},"components":{"lanes":[{"id":"raised-sidewalk","variants":{"type":"default"}}],"objects":[{"id":"transit-shelter","variants":{"type|orientation":["transit-shelter-02","left"]}}]}},"right|light-rail":{"description":{"key":"transit-shelter-elevated","image":"transit-station-elevated.jpg"},"rules":{"minWidth":{"metric":2.4,"imperial":8}},"components":{"lanes":[{"id":"raised-sidewalk","variants":{"type":"default"}}],"objects":[{"id":"transit-shelter","variants":{"type|orientation":["transit-shelter-02","right"]}}]}}}},"brt-station":{"name":"BRT station","nameKey":"brt-station","owner":"TRANSIT","zIndex":20,"coastmixPaletteOrder":46,"defaultWidth":{"metric":4,"imperial":13.5},"unlockCondition":"SIGN_IN","defaultVariant":"center","rules":{"minWidth":{"metric":4,"imperial":13.5},"slope":"off"},"variants":["brt-station-orientation"],"details":{"left":{"rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"brt-station","variants":{"orientation":["left"]}}]}},"right":{"rules":{"minWidth":{"metric":3,"imperial":10}},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"brt-station","variants":{"orientation":["right"]}}]}},"center":{"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"brt-station","variants":{"orientation":["center"]}}]}}}},"brt-lane":{"name":"Bus rapid transit lane","nameKey":"brt-lane","owner":"TRANSIT","zIndex":15,"coastmixPaletteOrder":47,"defaultWidth":{"metric":3.5,"imperial":11.667},"unlockCondition":"SIGN_IN","rules":{"minWidth":{"metric":3.4,"imperial":11.5},"maxWidth":{"metric":4,"imperial":13}}
91,"variants":["direction","brt-asphalt"],"details":{"inbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"brt-bus","variants":{"direction":"inbound"}}]}},"outbound|regular":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"brt-bus","variants":{"direction":"outbound"}}]}},"inbound|red":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-inbound-light"}],"vehicles":[{"id":"brt-bus","variants":{"direction":"inbound"}}]}},"outbound|red":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"red"}}],"markings":[{"id":"markings--straight-outbound-light"}],"vehicles":[{"id":"brt-bus","variants":{"direction":"outbound"}}]}}}},"train":{"name":"“Inception” train","nameKey":"inception-train","owner":"TRANSIT","zIndex":10,"defaultWidth":{"metric":4.2,"imperial":14},"enableWithFlag":"SEGMENT_INCEPTION_TRAIN","description":{"key":"inception-train","image":"train.jpg"},"rules":{"minWidth":{"metric":4.2,"imperial":14}},"variants":[""],"details":{"":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"train","variants":{"type":"default"}}]}}}},"magic-carpet":{"name":"Magic carpet","nameKey":"magic-carpet","defaultWidth":{"metric":3,"imperial":10},"rules":{"slope":"berm"},"unlockCondition":"SIGN_IN","defaultVariant":"jasmine-aladdin","variants":["magic-carpet-occupants"],"details":{"aladdin":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"magic-carpet","variants":{"magic-carpet-occupants":"aladdin"}}]}},"jasmine":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"magic-carpet","variants":{"magic-carpet-occupants":"jasmine"}}]}},"aladdin-jasmine":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"magic-carpet","variants":{"magic-carpet-occupants":"aladdin-jasmine"}}]}},"jasmine-aladdin":{"components":{"lanes":[{"id":"asphalt","variants":{"color":"regular"}}],"vehicles":[{"id":"magic-carpet","variants":{"magic-carpet-occupants":"jasmine-aladdin"}}]}}}},"beach":{"name":"Beach","nameKey":"beach","owner":"NATURE","defaultWidth":{"metric":1.2,"imperial":4},"rules":{"slope":"berm"},"defaultVariant":"lounger","enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":4,"variants":["beach-type"],"details":{"beach":{"components":{"lanes":[{"id":"beach","variants":{"type":"default"}}]}},"lounger":{"components":{"lanes":[{"id":"beach","variants":{"type":"default"}}],"objects":[{"id":"beach-lounger","variants":{"type":"default"},"offsetX":50}]}}}},"marsh":{"name":"Marsh","nameKey":"marsh","owner":"NATURE","defaultWidth":{"metric":1.2,"imperial":4},"description":{"key":"marsh","image":"marsh-01.jpg"},"rules":{"slope":"berm"},"defaultVariant":"marsh","enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":5,"variants":["marsh-type"],"details":{"marsh":{"components":{"lanes":[{"id":"earth","variants":{"type":"default"}}],"objects":[{"id":"marsh-grass","variants":{"type":"default"}}]}}}},"wall":{"name":"Wall","nameKey":"wall","owner":"WALL","zIndex":35,"defaultWidth":{"metric":0.75,"imperial":2.5},"defaultVariant":"low","enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":10,"variants":["wall-height"],"details":{"low":{"components":{"lanes":[{"id":"wall","variants":{"type":"default"}}],"objects":[{"id":"wall","variants":{"wall-height":"low"}}]}},"high":{"components":{"lanes":[{"id":"wall","variants":{"type":"default"}}],"objects":[{"id":"wall","variants":{"wall-height":"high"}}]}}}},"guardrail":{"name":"Guard rail","nameKey":"guardrail","defaultWidth":{"metric":0.25,"imperial":1},"enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":11,"variants":["guardrail-type"],"details":{"default":{"name":"Guard rail","nameKey":"guardrail","rules":{"slope":"berm"},"components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"guardrail","variants":{"type":"default"}}]}}}},"slope":{"name":"Slope","nameKey":"slope","defaultWidth":{"metric":2.4,"imperial":8},"defaultSlope":[{"metric":0.15,"imperial":0.5},{"metric":0.9,"imperial":3}],"rules":{"slope":"berm"},"enableWithFlag":"COASTMIX_MODE","coastmixPaletteOrder":1,"variants":["slope-type"],"details":{"grass":{"name":"Grassy hill","nameKey":"grass-hill","components":{"lanes":[{"id":"sidewalk","variants":{"color":"regular"}}],"objects":[{"id":"planting-strip","variants":{"type":"grass"}}]}},"dune":{"name":"Sand dune","nameKey":"sand-dune","components":{"lanes":[{"id":"beach","variants":{"type":"default"}}],"objects":[{"id":"marsh-grass","variants":{"type":"default"}}]}}}}}');let Pj={unknown:!0,name:"Unknown",owner:"NONE",zIndex:1,variants:[],details:{}},PT={unknown:!0,name:"Unknown",graphics:{center:"missing"}};
91async function PC(e,t,n){var r;let i=(r=e,ei(Pk)[r]??Pj),o=function(e,t){let n=ei(Pk)[e]?.details?.[t],{rules:r}=ei(Pk)[e]??Pj;if(n?.components===void 0)return PT;let{components:i,...o}=n;return function(e,t){let{rules:n,...r}=e;return Object.assign({},t,n,r)}(o,r)}(e,t),a=o.name??i.name,s=o.nameKey??i.nameKey;return(await PS(n,"segment-info")).segments[s]??a}var PI={};function PP(e){let t=e.map(e=>{if(Array.isArray(e)){let t,[n,r]=e;return void 0!==r&&(t=` ${100*r}%`),n+(t??"")}return e});return`linear-gradient(${t.join(", ")})`}function PA(e,t=!0){let n={},r=[];if(e.backgroundGradient&&r.push(PP(e.backgroundGradient)),t&&void 0!==e.backgroundImage)try{let t=function(e){let t=pl.get(e);if(void 0===t)throw Error("Asset not found: "+e);return`url('${t.src}') top/${t.width}px repeat`}(e.backgroundImage);r.push(t)}catch(e){console.error(e)}return void 0!==e.backgroundColor&&r.push(e.backgroundColor),n.background=r.join(", "),n}function PR(e){let t=ei(PI)[e];return void 0===t&&(t=ei(PI).day,e="day"),{...t,id:e,style:PA(t),iconStyle:PA(t,!1)}}async function PN(e,t,{width:n,height:r,dpi:i,multiplier:o,silhouette:a,transparentSky:s,labels:l,streetName:u,watermark:c=!0,locale:d="en"}){var f,h,p,m,g,y,v,b,w,x,_,k,S,E,O,j,T,C,I,P;let A,R,N,M,D,z,F,B,U,$,H,W,V,q,K,Z,G,Y,X=0;for(let e of t.segments)X+=e.width;let J=r-180*o;l&&(J-=PM*o);let Q=(n-X*cI*o)/2,ee=(n-t.width*cI*o)/2,et=J+135*o,en=et+20*o;s||(void 0!==(A=PR(t.skybox)).backgroundColor&&(k=e,S=n*i,E=en*i,O=A.backgroundColor,k.save(),k.fillStyle=O,k.fillRect(0,0,S,E),k.restore()),A.backgroundImage&&function(e,t,n,r,i,o){let a=pl.get(o);for(let o=0;o<Math.floor(n/a.height*i)+1;o++)for(let n=0;n<Math.floor(t/a.width*i)+1;n++)e.drawImage(a.img,0,0,a.width,a.height,n*a.width*r*i,o*a.height*r*i,a.width*r*i,a.height*r*i)}(e,n,r,i,o,A.backgroundImage),A.backgroundGradient&&function(e,t,n,r,i){let o=e.createLinearGradient(0,0,0,n*r),a=function(e){let t=e.map(e=>"string"==typeof e?[e]:[...e]);void 0===t[0][1]&&(t[0][1]=0),void 0===t[t.length-1][1]&&(t[t.length-1][1]=1);let n=t[0][1];for(let e=0;e<t.length;e++)if(void 0!==n){let r=t[e][1];if(void 0===r){let r=e;for(;void 0===t[r][1];)r++;let i=r-e+1,o=t[r][1];if(void 0!==o){let a=(o-n)/i;for(let i=e;i<r;i++)n=t[i][1]=n+a}}else n=r}return t}(i);for(let e=0;e<a.length;e++){let[t,n]=a[e];o.addColorStop(n,t)}e.save(),e.fillStyle=o,e.fillRect(0,0,t*r,n*r),e.restore()}(e,n,en,i,A.backgroundGradient),A.backgroundObjects&&(j=e,T=n,C=r,I=i,P=o,A.backgroundObjects.forEach(e=>{let{image:t,width:n,height:r,top:i,left:o}=e,a=pl.get(t).img;j.drawImage(a,(o*T-n/2)*I*P,(i*C-r/2)*I*P,n*I*P,r*I*P)})),function(e,t,n,r,i){e.save(),e.globalAlpha=i.cloudOpacity??1;let o=pl.get("/images/sky-front.svg"),a=pl.get("/images/sky-rear.svg"),s=n-o.height;for(let n=0;n<Math.floor(t/o.width)+1;n++)e.drawImage(o.img,0,0,o.width,o.height,n*o.width*r,s*r,o.width*r,o.height*r);let l=n-120-o.height;for(let n=0;n<Math.floor(t/a.width)+1;n++)e.drawImage(a.img,0,0,a.width,a.height,n*a.width*r,l*r,a.width*r,a.height*r);e.restore()}(e,n,et,i,A)),f=n/o,h=en/o,p=et/o,m=i*o,e.save(),e.fillStyle=P_,e.fillRect(0,h*m,f*m,25*m),R=0,N=0,M=t.boundary?.left,D=t.boundary?.right,z=ci(M?.variant??t.leftBuildingVariant),F=ci(D?.variant??t.rightBuildingVariant),M?.elevation>0&&(R=M.elevation*Px),D?.elevation>0&&(N=t.boundary.right.elevation*Px),z.earthColor&&(e.fillStyle=z.earthColor),e.fillRect(0,(p-R)*m,(f/2-t.width*Px/2)*m,h*m),F.earthColor?e.fillStyle=F.earthColor:e.fillStyle=P_,e.fillRect((f/2+t.width*Px/2)*m,(p-N)*m,f*m,h*m),e.restore(),B=ee/o,U=n/2-t.width*cI*o/2,$=t.boundary?.left.variant??t.leftBuildingVariant,H=t.boundary?.left.elevation??1,W=t.boundary?.left.floors??t.leftBuildingHeight,V=ci($),k_(e,"left",$,H,W,B,et,U-(B-("number"==typeof V.overhangWidth?V.overhangWidth:0))*o,o,i),q=n/2+t.width*cI*o/2,K=t.boundary?.right.variant??t.rightBuildingVariant,Z=t.boundary?.right.elevation??1,G=t.boundary?.right.floors??t.rightBuildingHeight,Y=ci(K),k_(e,"right",K,Z,G,B,et,q-("number"==typeof Y.overhangWidth?Y.overhangWidth:0)*o,o,i),function(e,t,n,r,i,o){let a=[];for(let e of t.segments){let t=cm(e.type);-1===a.indexOf(t.zIndex)&&a.push(t.zIndex)}for(let s of a){let a=o;for(let o=0;o<t.segments.length;o++){let l=t.segments[o];if(cm(l.type).zIndex===s){let t=P9(cg(l.type,l.variantString),l.width),o=l.id;Ae(e,l.type,l.variantString,l.width,a+t.left*cI*r,i,l.elevation,l.slope,o,r,n)}a+=l.width*cI*r}}}(e,t,i,o,et,Q),(l||a)&&(g=n/o,y=r/o,v=et/o,b=i*o,e.save(),e.fillStyle="rgb(216, 211, 203)",e.fillRect(0,(v+44)*b,g*b,(y-v-44)*b),e.restore(
91)),l&&d&&await PE(e,t,et/o,Q/o,i*o,d,(e,t)=>Pa(e,t)),a&&(w=n/o,x=r/o,_=i*o,e.save(),e.globalCompositeOperation="source-atop",e.fillStyle="rgb(240, 240, 240)",e.fillRect(0,0,w*_,x*_),e.restore()),u&&function(e,t,n,r){let i;(e.save(),void 0===globalThis.window)?(i="Overpass",e.letterSpacing=`${-.125*r}em`,"fontVariationSettings"in e&&(e.fontVariationSettings="'wght' 700")):(i="Overpass Variable",e.letterSpacing="-.025em"),e.font=`700 ${70*r}px ${i}`;let o=e.measureText(t).width/r,a=!1;for(;o>n-200;)t=t.substring(0,t.length-1),o=e.measureText(t).width/r,a=!0;a&&(t+="…",o=e.measureText(t).width/r),e.fillStyle="white";let s=n/2-(o/2+45),l=n/2+(o/2+45);e.fillRect(s*r,15*r,(l-s)*r,120*r),e.strokeStyle="black",e.lineWidth=5*r,e.strokeRect((s+10)*r,25*r,(l-s-20)*r,100*r);let u=void 0===globalThis.window?8:12;e.textAlign="center",e.textBaseline="middle",e.strokeStyle="transparent",e.fillStyle="black",e.fillText(t,n/2*r,(75+u)*r),e.restore()}(e,t.name??po("street.default-name","Unnamed St"),n/o,i*o),c&&function(e,t,n=!1){let r=po("export.watermark","Made with {streetmixWordmark}",{streetmixWordmark:"{streetmixWordmark}"}),i=n?pl.get("/images/wordmark_white.svg"):pl.get("/images/wordmark_black.svg"),o=r.replace(/{/g,"||{").replace(/}/g,"}||").split("||");e.textAlign="right",e.textBaseline="alphabetic",e.font=`normal 600 ${24*t}px Rubik Variable,sans-serif`,e.fillStyle=n?"#cccccc":"#333333";let a=e.canvas.width-15*t,s=e.canvas.height-15*t,l=i.width*t,u=i.height*t,c=a;for(let n=o.length-1;n>=0;n--){let r=o[n];if("{streetmixWordmark}"===r){let n=4*t,r=c-l-n,o=s-u+t;e.drawImage(i.img,r,o,l,u),c=r-n}else e.fillText(r,c,s),c-=e.measureText(r).width}}(e,i,!l)}PI=JSON.parse('{"day":{"name":"Day","backgroundColor":"#a9ccdb"},"twilight":{"name":"Twilight","backgroundGradient":[["#5583be",0],["#eebaa5",0.4],["#de7d8e",0.8]],"cloudOpacity":0.85},"sunset":{"name":"Sunset","enabled":false,"backgroundGradient":[["#020b1a"],["#3e5879"],["#9ba5ae"],["#dcb697"],["#fc7001"],["#dd723c"],["#ad4a28"],["#040308"]],"cloudOpacity":0.65},"dusk":{"name":"Dusk","backgroundGradient":[["#020b1a"],["#3e5879"],["#ec6127",0.5],["#ffbb65",0.7]],"cloudOpacity":0.5,"invertUITextColor":true},"sunrise":{"_comment":"Renamed to \'Dawn\'","enabled":false,"name":"Sunrise","backgroundGradient":["#a9ccdb","#b7d6fd","#fbce96",["#dd771e",0.9],"#58151a"]},"dawn":{"name":"Dawn","backgroundGradient":["#a9ccdb","#b7d6fd","#fbce96",["#dd771e",0.9],"#58151a"]},"night":{"name":"Night","iconImage":"sky--icon-night","backgroundImage":"sky--stars","_commentBackgroundColor":"Fall back to solid color in case image is broken","backgroundGradient":[["#01051600",0],["#01081777",0.33],["#031641",0.66],["#061c45",1]],"backgroundColor":"#000928","backgroundObjects":[{"image":"sky--moon","width":116,"height":116,"top":0.2,"left":0.8}],"cloudOpacity":0.2,"invertUITextColor":true},"supermoon":{"name":"Night","enabled":false,"iconImage":"sky--icon-night","backgroundImage":"sky--stars","backgroundGradient":[["#01051600",0],["#01081777",0.33],["#031641",0.66],["#061c45",1]],"backgroundColor":"#000928","backgroundObjects":[{"image":"sky--super-blood-wolf-moon","width":116,"height":116,"top":0.2,"left":0.8}],"cloudOpacity":0.2,"invertUITextColor":true},"karl":{"name":"Fog","backgroundColor":"#e2f0f2","foregroundGradient":[["rgba(255,255,255,0.85)",0],["rgba(192,192,192,0.5)",0.85],["transparent",1]]},"holodeck":{"name":"Holodeck","iconImage":"sky--icon-holodeck","backgroundColor":"#141414","backgroundImage":"sky--holodeck-grid","cloudOpacity":0,"invertUITextColor":true}}');let PM=65;async function PD(e,t,n,r,i=2,o=!0,a=null){let s=cI*e.width+720,l=Math.max(kh(e.boundary.left.variant,"left",e.boundary.left.floors),kh(e.boundary.right.variant,"right",e.boundary.right.floors));l<400&&(l=400),r&&l<550&&(l=550),l+=60,n&&(l+=PM);let u=document.createElement("canvas");u.width=s*i,u.height=l*i;let c=u.getContext("2d");if(!c)throw Error("Unable to create canvas rendering context");return await PN(c,e,{width:s,height:l,dpi:i,multiplier:1,silhouette:!1,transparentSky:t,labels:n,streetName:r,watermark:o,locale:a}),u}async function PL(e){try{await uh(e)}catch(e){console.error("Unable to delete street thumbnail.",e)}}let Pz=-1,PF=!1;async function PB(e=dg){try{await kc(e)}catch(e){console.log(e),P$();return}uc(PK()).then(PU).catch(P$)}function PU({data:e}){PZ(e.id,e.namespacedId),PW(!0)}function P$({response:e}){401===e.status?pm(24,!0):pm(7,!0)}async function PH(){let e=hy.getState().street;try{var t;t=(await uu(e.creatorId,e.namespacedId)).data,Pq(t,null,null,!0),function(e){b=e}(!0),Rg()}catch(n){let e,t;console.error(n),e=n.response.data,1===(t=p)||10===t||11===t?wv():404===e.status||410===e.status?(gm(6),gg()):pm(7,!0)}}function PW(e=!1){let{readOnly:t}=hy.getState().app;if(t)return;let n=PK();ud(hy.getState().street.id,n).then(()=>{PF=!1,e&&(function(e){b=e}(!0),Rg())})}async function PV(){var e,t;if(wE||PF||hy.getState().errors.abortEverything||wA)return;y=Date.now();let n=hy.getState().street.id;try{let t,r,i=await ul(n,{headers:{"x-streetmix-request-id":y}}),o=i.headers["x-streetmix-request-id"];if(y!==Number.parseInt(o,10))throw Error("1");e=i.data,t=new Date(hy.getState().street.clientUpdatedAt),r=new Date(e.clientUpdatedAt),t&&r>t&&(hy.dispatch(dz({method:"warning",message:po("toast.reloaded","Your street was reloaded from the server as it was modified elsewhere.")})),Pq(e,null,null,!1),AK(!1))}catch(e){if("1"===e.message)return;console.log(e),t=e.response,wq()&&(404===t.status||410===t.status)&&pm(6,!0)}}function Pq(e,t,n,r){var i;let o=function(e){if(!e.data)return void pm(21);let t=pp(e.data.street);return t.creatorId=e.creatorId,t.originalStreetId=e.originalStreetId,t.updatedAt=e.updatedAt,t.clientUpdatedAt=e.clientUpdatedAt,t.name=e.name,t.location=e.data.street.location,t.editCount=e.data.street.editCount,delete t.leftBuildingVariant,delete t.leftBuildingHeight,delete t.rightBuildingVariant,delete t.rightBuildingHeight,t}(e);((i=o).segments=i.segments.map(e=>(e.variant=cT(e.type,e.variantString),e.warnings=[!1],e)),hy.dispatch(cM(o)),hy.dispatch(d1()),!0===hy.getState().flags.COASTMIX_MODE.value&&void 0!==e.data.plugins.coastmix&&hy.dispatch(uP(e.data.plugins.coastmix)),t?PZ(t,n):PZ(e.id,e.namespacedId),r)&&((wA=(!wq()||o.creatorId!==wV()?.userId)&&!0)||PW())}function PK(){let e={street:Aq(hy.getState().street),plugins:{}};delete e.street.name,delete e.street.originalStreetId,delete e.street.updatedAt,delete e.street.clientUpdatedAt,delete e.street.creatorId,!0===hy.getState().flags.SAVE_UNDO.value&&(e.history=pp(hy.getState().history)),!0===hy.getState().flags.COASTMIX_MODE.value&&(e.plugins.coastmix=pp(hy.getState().coastmix));let t=hy.getState().street;return{name:t.name,originalStreetId:t.originalStreetId,data:e,clientUpdatedAt:t.clientUpdatedAt}}function PZ(e,t){hy.dispatch(cX(e,t)),PG()}function PG(){let e=hy.getState().street;hy.dispatch(dI({lastStreetId:e.id,lastStreetNamespacedId:e.namespacedId,lastStreetCreatorId:e.creatorId}))}function PY(){PF=!0,window.clearTimeout(Pz),wA?wN():Pz=window.setTimeout(function(){PW(!1)},500)}async function PX(){await kd()}function PJ(e){AW=!0;let t=hy.getState().street;Pq(e,t.id,t.namespacedId,!1);let n=hy.getState().app.priorLastStreetId;hy.dispatch(c0(n)),wD(),wq()?A$(wV().userId):A$(null),AH(),hy.dispatch(c1(0)),Ar(),AW=!1,AU(),PW(!1)}function PQ(e){return async t=>{await t(c3(e)),await t(P0())}}let P0=(e=!1)=>async(t,n)=>{let r,i,o,a,{street:s,coastmix:l}=n(),{seaLevelRise:u,stormSurge:c}=l,d=(r=new gf(s.width),i=function(e=[]){return e.map(e=>e.width).reduce((e,t)=>
91e.plus(t),new gf(0))}(s.segments),a=(o=r.minus(i)).abs().lt(.01)?new gf(0):o.toDecimalPlaces(3),{streetWidth:r,occupiedWidth:i,remainingWidth:a}),f=function(e,t,n){let{streetWidth:r,occupiedWidth:i,remainingWidth:o}=n,a=r.dividedBy(2).minus(i.dividedBy(2));return e.forEach(e=>{let n=cg(e.type,e.variantString);if(o.abs().gt(0)&&(a.lessThan(0)||a.plus(e.width).greaterThan(r))?e.warnings[1]=!0:e.warnings[1]=!1,void 0!==n.minWidth&&e.width<cO(n.minWidth,t.units)?e.warnings[2]=!0:e.warnings[2]=!1,n.maxWidth&&e.width>cO(n.maxWidth,t.units)?e.warnings[3]=!0:e.warnings[3]=!1,!0===n.dangerous?e.warnings[4]=!0:e.warnings[4]=!1,e.slope.on){let{ratio:t}=pU(e.slope.values,e.width),r=p$(t);"berm"===n.slope&&r.slopeExceededBerm?(e.warnings[5]=!0,e.warnings[6]=!0):"path"===n.slope&&r.slopeExceededPath?(e.warnings[5]=!1,e.warnings[6]=!0):(e.warnings[5]=!1,e.warnings[6]=!1)}else e.warnings[5]=!1,e.warnings[6]=!1;a=a.add(e.width)}),e}(s.segments.map((e,t)=>{let n;return n=e.slope.on&&0===e.slope.values.length?pB(s,t):e.slope.values,{...e,warnings:[!1],slope:{on:e.slope.on??!1,values:n}}}),s,d);await t(cF(f,d.occupiedWidth.toNumber(),d.remainingWidth.toNumber())),t(uL(function(e,t,n){let r=pv(t,n,e),{boundary:i,segments:o}=e,a=[null,null];return i.left.variant&&i.right.variant&&(ci(i.left.variant).waterfront&&(a[0]=pb(o,r,"left")),ci(i.right.variant).waterfront&&(a[1]=pb(o,r,"right"))),a}(s,u,c))),AV(e)},P1=e=>async t=>{await t(dY(!1)),await t(cL(e)),await t(P0()),await t(dW(null)),await t(u7(!1)),await t(dz({message:po("toast.segment-deleted","The segment has been removed."),component:"TOAST_UNDO"}))},P2=()=>async e=>
91{await e(dY(!0)),await e(c$()),await e(P0()),await e(dW(null)),await e(u7(!1)),await e(dz({message:po("toast.all-segments-deleted","All segments have been removed."),component:"TOAST_UNDO"}))},P3=(e,t,n,r=pI)=>async(i,o)=>{let a,s,l=o().street.units,u=o().street.segments[e].width,c=a=n?pL(pA,l):pL(r,l);t||(c=-c);let d=pz(u,a);s=u!==d&&(t&&d>u||!t&&d<u)?d:pz(u+c,a),pF(),await i(cH(e,s)),await i(P0())};function P4(e,t){let n=e.reduce((e,t)=>e+(t.weight??50),0),r=Math.floor(t()*n),i=0,o=0;for(let t=0;t<e.length;t++)if(r<(o+=e[t].weight??50)){i=t;break}return Object.assign({},e[i])}function P5(e,t,n,r,i=0,o,a,s,l,u=0,c=1,d=0,f=0,h,p){let m=e.map(e=>{if("string"==typeof e){let t=pl.get(e);return{id:e,width:t.width/cP}}return e}),g=function(e,t){if(0===e.length)return;let n=e[0],r=-1/0;for(let i=0;i<e.length;i++){let o=e[i],a=t(o,i,e);if(Number.isNaN(a))return o;a>r&&(r=a,n=o)}return n}(m,e=>e.width).width,[y,v]=function(e,t,n="9123984",r,i,o,a=0,s=0){let l,u=ei(kp)(n),c=[],d=0,f=null,h=0;for(;0===c.length||d<t-2*s;){let t;if(e.length>=4)do l=(t=P4(e,u)).id;while(l===f||0===c.length&&!0===t.disallowFirst)else l=(t=P4(e,u)).id;f=l,t.left=d,d+=h=t.width+r+u()*(i-r)+a,c.push(t)}let p=d-h,m=(o-c[0].width)/2,g=(o-c[c.length-1].width)/2,y=(t-p)/2;return 1===c.length?y+=m:y+=(m+g)/2,[c,y]}(m,n,l,u,c,g,d,f),b=ei(kp)(l);for(let e of y){let l=e.id;if(e.alts&&e.alts.length>0){let t=[l,...e.alts],n=Math.floor(b()*t.length);l=t[n]}let u=cy(l),c=pl.get(l),d=((e.left??0)-c.width/cP/2-(g-e.width)/2+v)*cI*h,f=h*cI*((c.height-i-(u.originY??e.originY??0))/cP);s.on?f+=At(s,n,d,c.width,h,n*cI,"scatter"):f+=a*cI*h,P8(l,t,void 0,void 0,void 0,void 0,r+d,o-f,void 0,void 0,void 0,h,p)}}var P6={};function P8(e,t,n=0,r=0,i,o,a,s,l,u,c=0,d=1,f){if(i<=0||o<=0||l<=0||u<=0)return;let h=hy.getState();f=f??h.system.devicePixelRatio??1;let p=h.flags.DEBUG_SEGMENT_CANVAS_RECTANGLES.value||!1,m=pl.get(e);i=void 0===i?m.width:2.54*i,o=void 0===o?m.height:2.54*o,l=void 0===l?m.width/2.54:l,u=void 0===u?m.height/2.54:u,l*=d*f,u*=d*f,a*=f,s*=f,t.save();let g=a+l/2,y=s+u/2;t.translate(g,y),t.rotate(c*Math.PI/180),t.translate(-g,-y),!0===p&&(t.fillStyle="rgba(0, 0, 0, 0.2)",t.fillRect(a,s,l,u)),t.drawImage(m.img,Math.round(n),Math.round(r),Math.round(i),Math.round(o),Math.round(a),Math.round(s),Math.ceil(l),Math.ceil(u)),t.restore()}function P9(e,t=0){let n,r,i=t*cP,o=i/2,a=o,s=o,l=e.graphics;if(l.center){let e=Array.isArray(l.center)?l.center:[l.center];for(let t=0;t<e.length;t++){let i=cy(e[t]),l=pl.get(i.id);l&&(n=o-l.width/2-(i.offsetX??0),r=o+l.width/2+(i.offsetX??0),n<a&&(a=n),r>s&&(s=r))}}if(l.left){let e=Array.isArray(l.left)?l.left:[l.left];for(let t=0;t<e.length;t++){let i=cy(e[t]),o=pl.get(i.id);o&&(n=i.offsetX??0,r=o.width+(i.offsetX??0),n<a&&(a=n),r>s&&(s=r))}}if(l.right){let e=Array.isArray(l.right)?l.right:[l.right];for(let t=0;t<e.length;t++){let o=cy(e[t]),l=pl.get(o.id);l&&(n=i-(o.offsetX??0)-l.width,r=i-(o.offsetX??0),n<a&&(a=n),r>s&&(s=r))}}if(l.ground&&(n=o-i/2,r=o+i/2,n<a&&(a=n),r>s&&(s=r)),l.quirks?.minWidth){let e=l.quirks.minWidth*cP;i<e&&(a=(i-e)/2,s=(e-i)/2+i)}return{left:a/cP,right:s/cP,center:o/cP}}function P7(e){return"string"==typeof e?[{id:e}]:Array.isArray(e)?e.map(e=>"string"==typeof e?{id:e}:e):[e]}P6=[{id:"people--people-01",name:"Nora",width:.5},{id:"people--people-02",width:.5},{id:"people--people-03",width:.5},{id:"people--people-04",width:.5},{id:"people--people-05",width:.5},{id:"people--people-06",width:.5},{id:"people--people-07",width:.5},{id:"people--people-08",width:.5},{id:"people--people-09",width:.5},{id:"people--people-10",width:.5},{id:"people--people-11",width:.5},{id:"people--people-12",width:.5},{id:"people--people-13",width:.5},{id:"people--people-14",width:.75},{id:"people--people-15",name:"Lou",width:.5},{id:"people--people-16",width:.75},{id:"people--people-17",width:.75},{id:"people--people-18",width:.75},{id:"people--people-19",width:.75,disallowFirst:!0},{id:"people--people-20",width:.75,disallowFirst:!0},{id:"people--people-21",width:.25},{id:"people--people-22",width:.25}
91,{id:"people--people-23",name:"Katie",width:.75},{id:"people--people-24",width:1.25},{id:"people--people-25",width:.5},{id:"people--people-26",width:.75},{id:"people--people-27",width:.5},{id:"people--people-28",width:1},{id:"people--people-29",width:1.25},{id:"people--people-30",width:.75},{id:"people--people-31",width:.5},{id:"people--johnny-01",name:"Johnny",alts:["people--johnny-02"],width:.75,disallowFirst:!0,weight:5},{id:"people--junebug-01",name:"Junebug",alts:["people--junebug-02","people--junebug-03"],width:.75,disallowFirst:!0,weight:5},{id:"people--bernie",width:.75,name:"Bernie",weight:1},{id:"people--people-32",width:.5,alts:["people--people-32-back"],tags:["beach"],weight:500},{id:"people--people-33",width:.5,alts:["people--people-33-back"],tags:["beach"],weight:500},{id:"people--people-34",width:.5,alts:["people--people-34-back"],tags:["beach"],weight:500},{id:"people--people-35",width:.5,alts:["people--people-35-back"],weight:500},{id:"people--people-36",width:.5,alts:["people--people-36-back"],tags:["beach"],weight:500},{id:"people--people-37",width:.5,alts:["people--people-37-back"],tags:["beach"],weight:500},{id:"people--people-38",width:.5,alts:["people--people-38-back"],tags:["beach"],weight:500},{id:"people--people-39",width:1.25,tags:["beach"],weight:100}];function Ae(e,t,n,r,i,o,a,s,l,u,c){let d=cg(t,n),f=d.graphics,h=r*cI,p=P9(d,r),m=p.left,g=f.quirks?.minWidth,y=d.offsetY??0,v=a*cI,b=o-y/2.54*u,w=s?{on:s.on,values:[...s.values??[]]}:{on:!1,values:[]};("off"===d.slope||void 0===d.slope)&&(w.on=!1,w.values=[]);let x=hy.getState().flags.COASTMIX_MODE.value;if(f.ground){let t=P7(f.ground);for(let n=0;n<t.length;n++){let r=cy(t[n]);pl.get(r.id)&&!function(e,t,n,r,i,o,a,s=1,l){let u;switch(a){case"ground--asphalt":u="#292b29";break;case"ground--asphalt-gray":u="#5c5e5f";break;case"ground--asphalt-red":u="#992025";break;case"ground--asphalt-green":u="#2e6550";break;case"ground--sand":u="#ecdbb1";break;case"ground--wall":u="#cead80";break;case"ground--earth":u="#352d27";break;default:u="#d8d3cb"}t*=s*l,n*=l;let c=r+45*s;e.save();let d=o.on?o.values[0]??i:i,f=o.on?o.values[1]??i:i,h=(d*cI+45)*s,p=(f*cI+45)*s;e.beginPath(),e.moveTo(n,c*l),e.lineTo(n,(c-h)*l),e.lineTo(n+t,(c-p)*l),e.lineTo(n+t,c*l),e.closePath(),e.clip(),e.fillStyle=u,e.fillRect(n,0,n+t,c*l),e.restore()}(e,h,i+(m<0?-m*cI*u:0),b,a,w,r.id,u,c)}}if(f.repeat){let t=P7(f.repeat);for(let n=0;n<t.length;n++){let o,a,s=cy(t[n]),l=pl.get(s.id);if(!l)continue;let d=l.width/cP*cI,f=t[n].padding??0,p=Math.floor((o=g&&r<g?g*cI-2*f*cI:h-2*f*cI)/d)+1;a=m<0?g&&r<g?0:-m*cI:0;let y=u*cI*((l.height-(s.originY??0)+(s.offsetY??0))/cP);w.on||(y+=u*v);let x=l.height/cP*cI,k=s.id.startsWith("ground--")?Math.ceil((e.canvas.height/c-b)/x):1;for(let t=0;t<p;t++){t===p-1&&(d=o-(p-1)*d);let n=f*cI*u+(a+t*(l.width/cP)*cI)*u;0===n&&(n=.01);let h=0;if(w.on){var _;let e=At(w,r,n,l.width,u,r*cI,"repeat"),t=8;"plants--grass"===s.id&&(t=10),"beach--surface"===s.id&&(t=6),"earth--surface"===s.id&&(t=6),y=e+t*u,h=-1*(_=w.values,180/Math.PI*Math.atan(An(_,r)))}for(let t=0;t<k;t++)P8(s.id,e,void 0,void 0,d,void 0,i+n,s.id.startsWith("ground--")?b+x*t:b-y,d,void 0,h,u,c)}}}if(f.left){let t=P7(f.left);for(let n=0;n<t.length;n++){let o,a=cy(t[n]),s=pl.get(a.id);if(!s)continue;o=g&&r<g?0:0+(-m+(a.offsetX??0)/cP)*cI*u;let l=u*cI*((s.height-(a.originY??0)+(a.offsetY??0))/cP);w.on?l+=At(w,r,o,s.width,u,h,"left"):l+=u*v,P8(a.id,e,void 0,void 0,void 0,void 0,i+o,b-l,void 0,void 0,void 0,u,c)}}if(f.right){let t=P7(f.right);for(let n=0;n<t.length;n++){let o,a=cy(t[n]),s=pl.get(a.id);if(!s)continue;o=g&&r<g?(g-s.width/cP)*cI*u:(-m+r-s.width/cP-(a.offsetX??0)/cP)*cI*u;let l=u*cI*((s.height-(a.originY??0)+(a.offsetY??0))/cP);w.on?l+=At(w,r,o,s.width,u,h,"right"):l+=u*v,P8(a.id,e,void 0,void 0,void 0,void 0,i+o,b-l,void 0,void 0,void 0,u,c)}}if(f.center){let t=P7(f.center);for(let n=0;n<t.length;n++){let o=cy(t[n]),a=pl.get(o.id);if(!a)continue;let s=p.center,l=o.offsetX&&"string"==typeof o.offsetX&&o.offsetX.endsWith("%"),d=l?0:o.offsetX??0,f=(s-a.width/cP/2-m-(l?Number.parseFloat(o.offsetX)/100*s:0)-d/cP)*cI*u,g=u*cI*((a.height-(o.originY??0)+(o.offsetY??0))/cP);w.on?g+=At(w,r,f,a.width,u,h,"center"):g+=u*v,P8(o.id,e,void 0,void 0,void 0,void 0,i+f,b-g,void 0,void 0,void 0,u,c)}}if(f.scatter){if("people"===f.scatter.pool){let t=(f.scatter.originY??f.scatter.originY+10)||10;P5(ei(P6).filter(e=>
91!!x||!e.tags?.includes("beach")),e,r,i-m*cI*u,t,b,a,w,l,f.scatter.minSpacing,f.scatter.maxSpacing,-.1,f.scatter.padding,u,c)}f.scatter.sprites&&P5(f.scatter.sprites,e,r,i-m*cI*u,0,b,a,w,l,f.scatter.minSpacing,f.scatter.maxSpacing,0,f.scatter.padding,u,c)}}function At(e,t,n,r,i,o,a){return(An(e.values,t)*(("scatter"===a||n>0?n+r/cP/2*cI*i:o/2)/o*t-0)+e.values[0])*cI*i}function An(e,t){let n=e[0],r=e[1];return t-0==0?1/0:(r-n)/(t-0)}function Ar(){hy.dispatch(P0())}function Ai(e){if("object"!=typeof e)return e;if(null===e)return null;if(Array.isArray(e))return e.map(Ai);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var t;let n=/^\/(.*)\/([gimyu]*)$/.exec(e.toString());if(!n)throw Error("Invalid RegExp");return new RegExp(null!=(t=n[1])?t:"",n[2])}let n={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=Ai(e[t]));return n}class Ao{setResult(e){return this.result=e,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(e,t){if(e.parent=this,void 0!==t&&(e.childName=t),e.root=this.root||this,e.options=e.options||this.options,this.children){let t;if(0===this.children.length)throw Error("Expected a non-empty array");(t=this.children)[t.length-1].next=e,this.children.push(e)}else this.children=[e],this.nextAfterChildren=this.next||null,this.next=e;return e.next=this,this}}var Aa=class extends Ao{constructor(e,t){super(),this.left=e,this.right=t,this.pipe="diff"}prepareDeltaResult(e){var t,n,r,i;if("object"==typeof e&&((null==(t=this.options)?void 0:t.omitRemovedValues)&&Array.isArray(e)&&e.length>1&&(2===e.length||0===e[2]||3===e[2])&&(e[0]=0),null==(n=this.options)?void 0:n.cloneDiffValues)){let t="function"==typeof(null==(r=this.options)?void 0:r.cloneDiffValues)?null==(i=this.options)?void 0:i.cloneDiffValues:Ai;"object"==typeof e[0]&&(e[0]=t(e[0])),"object"==typeof e[1]&&(e[1]=t(e[1]))}return e}setResult(e){return this.prepareDeltaResult(e),super.setResult(e)}},As=class extends Ao{constructor(e,t){super(),this.left=e,this.delta=t,this.pipe="patch"}},Al=class extends Ao{constructor(e){super(),this.delta=e,this.pipe="reverse"}},Au=class{constructor(e){this.name=e,this.filters=[]}process(e){if(!this.processor)throw Error("add this pipe to a processor before using it");let t=this.debug,n=this.filters.length;for(let r=0;r<n;r++){let n=this.filters[r];if(n&&(t&&this.log(`filter: ${n.filterName}`),n(e),"object"==typeof e&&e.exiting)){e.exiting=!1;break}}!e.next&&this.resultCheck&&this.resultCheck(e)}log(e){console.log(`[jsondiffpatch] ${this.name} pipe, ${e}`)}append(...e){return this.filters.push(...e),this}prepend(...e){return this.filters.unshift(...e),this}indexOf(e){if(!e)throw Error("a filter name is required");for(let t=0;t<this.filters.length;t++){let n=this.filters[t];if((null==n?void 0:n.filterName)===e)return t}throw Error(`filter not found: ${e}`)}list(){return this.filters.map(e=>e.filterName)}after(e,...t){let n=this.indexOf(e);return this.filters.splice(n+1,0,...t),this}before(e,...t){let n=this.indexOf(e);return this.filters.splice(n,0,...t),this}replace(e,...t){let n=this.indexOf(e);return this.filters.splice(n,1,...t),this}remove(e){let t=this.indexOf(e);return this.filters.splice(t,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(e){return!1===e?this.resultCheck=null:this.resultCheck||(this.resultCheck=e=>{if(!e.hasResult){console.log(e);let t=Error(`${this.name} failed`);throw t.noResult=!0,t}}),this}},Ac=class{constructor(e){this.selfOptions=e||{},this.pipes={}}options(e){return e&&(this.selfOptions=e),this.selfOptions}pipe(e,t){let n=t;if("string"==typeof e){if(void 0===n)return this.pipes[e];this.pipes[e]=n}if(e&&e.name){if((n=e).processor===this)return n;this.pipes[n.name]=n}if(!n)throw Error(`pipe is not defined: ${e}`);return n.processor=this,n}process(e,t){let n,r=e;r.options=this.options();let i=t||e.pipe||"default";for(;i;)void 0!==r.nextAfterChildren&&(r.next=r.nextAfterChildren,r.nextAfterChildren=null),"string"==typeof i&&(i=this.pipe(i)),i.process(r),n=i,i=null,r&&r.next&&(i=(r=r.next).pipe||n);return r.hasResult?r.result:void 0}};let Ad=(e,t,n,r)=>e[n]===t[r];function Af(e,t,n,r,i){let o=e[n],a=t[r];if(o===a)return!0;
91if("object"!=typeof o||"object"!=typeof a)return!1;let s=i.objectHash;if(!s)return i.matchByPosition&&n===r;i.hashCache1=i.hashCache1||[];let l=i.hashCache1[n];if(void 0===l&&(i.hashCache1[n]=l=s(o,n)),void 0===l)return!1;i.hashCache2=i.hashCache2||[];let u=i.hashCache2[r];return void 0===u&&(i.hashCache2[r]=u=s(a,r)),void 0!==u&&l===u}let Ah=function(e){var t,n,r,i,o,a,s;let l,u,c,d,f,h;if(!e.leftIsArray)return;let p={objectHash:null==(t=e.options)?void 0:t.objectHash,matchByPosition:null==(n=e.options)?void 0:n.matchByPosition},m=0,g=0,y=e.left,v=e.right,b=y.length,w=v.length;for(b>0&&w>0&&!p.objectHash&&"boolean"!=typeof p.matchByPosition&&(p.matchByPosition=!function(e,t,n,r){for(let i=0;i<n;i++){let n=e[i];for(let e=0;e<r;e++){let r=t[e];if(i!==e&&n===r)return!0}}return!1}(y,v,b,w));m<b&&m<w&&Af(y,v,m,m,p);)d=new Aa(y[l=m],v[l]),e.push(d,l),m++;for(;g+m<b&&g+m<w&&Af(y,v,b-1-g,w-1-g,p);)u=b-1-g,c=w-1-g,d=new Aa(y[u],v[c]),e.push(d,c),g++;if(m+g===b){if(b===w)return void e.setResult(void 0).exit();for(f=f||{_t:"a"},l=m;l<w-g;l++)f[l]=[v[l]],e.prepareDeltaResult(f[l]);return void e.setResult(f).exit()}if(m+g===w){for(f=f||{_t:"a"},l=m;l<b-g;l++){let t=`_${l}`;f[t]=[y[l],0,0],e.prepareDeltaResult(f[t])}e.setResult(f).exit();return}p.hashCache1=void 0,p.hashCache2=void 0;let x=y.slice(m,b-g),_=v.slice(m,w-g),k=((e,t,n,r)=>{let i=t.length,o=n.length,a={sequence:[],indices1:[],indices2:[]};for(;0!==i&&0!==o;){if(void 0===e.match)throw Error("LCS matrix match function is undefined");if(e.match(t,n,i-1,o-1,r))a.sequence.unshift(t[i-1]),a.indices1.unshift(i-1),a.indices2.unshift(o-1),--i,--o;else{let t=e[i];if(void 0===t)throw Error("LCS matrix row is undefined");let n=t[o-1];if(void 0===n)throw Error("LCS matrix value is undefined");let r=e[i-1];if(void 0===r)throw Error("LCS matrix row is undefined");let a=r[o];if(void 0===a)throw Error("LCS matrix value is undefined");n>a?--o:--i}}return a})(((e,t,n,r)=>{var i,o,a;let s,l,u=e.length,c=t.length,d=Array(u+1);for(s=0;s<u+1;s++){let e=Array(c+1);for(l=0;l<c+1;l++)e[l]=0;d[s]=e}for(s=1,d.match=n;s<u+1;s++){let u=d[s];if(void 0===u)throw Error("LCS matrix row is undefined");let f=d[s-1];if(void 0===f)throw Error("LCS matrix row is undefined");for(l=1;l<c+1;l++)n(e,t,s-1,l-1,r)?u[l]=(null!=(i=f[l-1])?i:0)+1:u[l]=Math.max(null!=(o=f[l])?o:0,null!=(a=u[l-1])?a:0)}return d})(a=x,s=_,Af||Ad,h=p||{}),a,s,h),S=[];for(f=f||{_t:"a"},l=m;l<b-g;l++)if(0>k.indices1.indexOf(l-m)){let t=`_${l}`;f[t]=[y[l],0,0],e.prepareDeltaResult(f[t]),S.push(l)}let E=!0;(null==(r=e.options)?void 0:r.arrays)&&!1===e.options.arrays.detectMove&&(E=!1);let O=!1;(null==(o=null==(i=e.options)?void 0:i.arrays)?void 0:o.includeValueOnMove)&&(O=!0);let j=S.length;for(l=m;l<w-g;l++){let t=k.indices2.indexOf(l-m);if(t<0){let t=!1;if(E&&j>0)for(let n=0;n<j;n++){let r=void 0===(u=S[n])?void 0:f[`_${u}`];if(void 0!==u&&r&&Af(x,_,u-m,l-m,p)){r.splice(1,2,l,3),r.splice(1,2,l,3),O||(r[0]=""),c=l,d=new Aa(y[u],v[c]),e.push(d,c),S.splice(n,1),t=!0;break}}t||(f[l]=[v[l]],e.prepareDeltaResult(f[l]))}else{if(void 0===k.indices1[t])throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${k.indices1}`);if(u=k.indices1[t]+m,void 0===k.indices2[t])throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${k.indices2}`);c=k.indices2[t]+m,d=new Aa(y[u],v[c]),e.push(d,c)}}e.setResult(f).exit()};Ah.filterName="arrays";let Ap=(e,t)=>e-t,Am=function(e){var t;let n,r,i;if(!e.nested)return;let o=e.delta;if("a"!==o._t)return;let a=e.left,s=[],l=[],u=[];for(n in o)if("_t"!==n)if("_"===n[0]){let e=n;if(void 0!==o[e]&&(0===o[e][2]||3===o[e][2]))s.push(Number.parseInt(n.slice(1),10));else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${null==(t=o[e])?void 0:t[2]}`)}else{let e=n;1===o[e].length?l.push({index:Number.parseInt(e,10),value:o[e][0]}):u.push({index:Number.parseInt(e,10),delta:o[e]})}for(n=(s=s.sort(Ap)).length-1;n>=0;n--){if(void 0===(r=s[n]))continue;let e=o[`_${r}`],t=a.splice(r,1)[0];(null==e?void 0:e[2])===3&&l.push({index:e[1],value:t})}let c=(l=l.sort((i="index",(e,t)=>e[i]-t[i]))).length;for(n=0;n<c;n++){let e=l[n];void 0!==e&&a.splice(e.index,0,e.value)}let d=u.length;if(d>0)for(n=0;n<d;n++){let t=u[n];if(void 0===t)continue;let r=new As(a[t.index],t.delta);e.push(r,t.index)}
91e.children?e.exit():e.setResult(a).exit()};Am.filterName="arrays";let Ag=function(e){if(!e||!e.children||"a"!==e.delta._t)return;let t=e.left,n=e.children.length;for(let r=0;r<n;r++){let n=e.children[r];void 0!==n&&(t[n.childName]=n.result)}e.setResult(t).exit()};Ag.filterName="arraysCollectChildren";let Ay=function(e){if(!e.nested){let t=e.delta;3===t[2]&&(e.newName=`_${t[1]}`,e.setResult([t[0],Number.parseInt(e.childName.substring(1),10),3]).exit());return}let t=e.delta;if("a"===t._t){for(let n in t){if("_t"===n)continue;let r=new Al(t[n]);e.push(r,n)}e.exit()}};Ay.filterName="arrays";let Av=(e,t,n)=>{if("string"==typeof t&&"_"===t[0])return Number.parseInt(t.substring(1),10);if(Array.isArray(n)&&0===n[2])return`_${t}`;let r=+t;for(let n in e){let i=e[n];if(Array.isArray(i))if(3===i[2]){let e=Number.parseInt(n.substring(1),10),o=i[1];if(o===+t)return e;e<=r&&o>r?r++:e>=r&&o<r&&r--}else 0===i[2]?Number.parseInt(n.substring(1),10)<=r&&r++:1===i.length&&Number.parseInt(n,10)<=r&&r--}return r},Ab=e=>{if(!e||!e.children)return;let t=e.delta;if("a"!==t._t)return;let n=e.children.length,r={_t:"a"};for(let i=0;i<n;i++){let n=e.children[i];if(void 0===n)continue;let o=n.newName;if(void 0===o){if(void 0===n.childName)throw Error("child.childName is undefined");o=Av(t,n.childName,n.result)}r[o]!==n.result&&(r[o]=n.result)}e.setResult(r).exit()};Ab.filterName="arraysCollectChildren";let Aw=function(e){e.left instanceof Date?(e.right instanceof Date?e.left.getTime()!==e.right.getTime()?e.setResult([e.left,e.right]):e.setResult(void 0):e.setResult([e.left,e.right]),e.exit()):e.right instanceof Date&&e.setResult([e.left,e.right]).exit()};Aw.filterName="dates";let Ax=new Set(["__proto__"]),A_=e=>{if(!e||!e.children)return;let t=e.children.length,n=e.result;for(let r=0;r<t;r++){let t=e.children[r];if(void 0!==t&&void 0!==t.result){if(n=n||{},void 0===t.childName)throw Error("diff child.childName is undefined");n[t.childName]=t.result}}n&&e.leftIsArray&&(n._t="a"),e.setResult(n).exit()};A_.filterName="collectChildren";let Ak=e=>{var t;if(e.leftIsArray||"object"!==e.leftType)return;let n=e.left,r=e.right,i=null==(t=e.options)?void 0:t.propertyFilter;for(let t in n){if(!Object.prototype.hasOwnProperty.call(n,t)||i&&!i(t,e))continue;let o=new Aa(n[t],r[t]);e.push(o,t)}for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&(!i||i(t,e))&&void 0===n[t]){let n=new Aa(void 0,r[t]);e.push(n,t)}e.children&&0!==e.children.length?e.exit():e.setResult(void 0).exit()};Ak.filterName="objects";let AS=function(e){if(!e.nested)return;let t=e.delta;if(t._t)return;let n=!1;for(let r in t){if(Ax.has(r)||!Object.prototype.hasOwnProperty.call(t,r))continue;let i=e.left,o=new As(null!==i&&"object"==typeof i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:void 0,t[r]);e.push(o,r),n=!0}n?e.exit():e.setResult(e.left).exit()};AS.filterName="objects";let AE=function(e){if(!e||!e.children||e.delta._t)return;if(null===e.left||"object"!=typeof e.left)return void e.setResult(e.left).exit();let t=e.left,n=e.children.length;for(let r=0;r<n;r++){let n=e.children[r];if(void 0===n)continue;let i=n.childName;Ax.has(i)||(Object.prototype.hasOwnProperty.call(e.left,i)&&void 0===n.result?delete t[i]:t[i]!==n.result&&(t[i]=n.result))}e.setResult(t).exit()};AE.filterName="collectChildren";let AO=function(e){if(!e.nested||e.delta._t)return;let t=e.delta,n=!1;for(let r in t){if(Ax.has(r)||!Object.prototype.hasOwnProperty.call(t,r))continue;let i=new Al(t[r]);e.push(i,r),n=!0}n?e.exit():e.setResult({}).exit()};AO.filterName="objects";let Aj=e=>{if(!e||!e.children||e.delta._t)return;let t=e.children.length,n={};for(let r=0;r<t;r++){let t=e.children[r];if(void 0===t)continue;let i=t.childName;Ax.has(i)||n[i]!==t.result&&(n[i]=t.result)}e.setResult(n).exit()};Aj.filterName="collectChildren";let AT=null;function AC(e,t){var n;if(!AT){let r;if(null==(n=null==e?void 0:e.textDiff)?void 0:n.diffMatchPatch)r=new e.textDiff.diffMatchPatch;else{if(!t)return null;let e=Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");throw e.diff_match_patch_not_found=!0,e}AT={diff:(e,t)=>r.patch_toText(r.patch_make(e,t)),patch:(e,t)=>{let n=r.patch_apply(r.patch_fromText(t),e);for(let e of n[1])if(!e){let e=Error("text patch failed");throw e.textPatchFailed=!0,e}return n[0]}}}return AT}let AI=function(e){var t,n;if("string"!==e.leftType)return;let r=e.left,i=e.right,o=(null==(n=null==(t=e.options)?void 0:t.textDiff)?void 0:n.minLength)||60;
91if(r.length<o||i.length<o)return void e.setResult([r,i]).exit();let a=AC(e.options);if(!a)return void e.setResult([r,i]).exit();let s=a.diff;e.setResult([s(r,i),0,2]).exit()};AI.filterName="texts";let AP=function(e){if(e.nested)return;let t=e.delta;if(2!==t[2])return;let n=AC(e.options,!0).patch;e.setResult(n(e.left,t[0])).exit()};AP.filterName="texts";let AA=function(e){if(e.nested)return;let t=e.delta;2!==t[2]||e.setResult([(e=>{var t,n,r;let i=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/,o=e.split("\n");for(let e=0;e<o.length;e++){let a=o[e];if(void 0===a)continue;let s=a.slice(0,1);if("@"===s){let t=i.exec(a);null!==t&&(o[e]=`@@ -${t[3]},${t[4]} +${t[1]},${t[2]} @@`)}else if("+"===s){if(o[e]=`-${null==(t=o[e])?void 0:t.slice(1)}`,(null==(n=o[e-1])?void 0:n.slice(0,1))==="+"){let t=o[e];o[e]=o[e-1],o[e-1]=t}}else"-"===s&&(o[e]=`+${null==(r=o[e])?void 0:r.slice(1)}`)}return o.join("\n")})(t[0]),0,2]).exit()};AA.filterName="texts";let AR=function(e){if(e.left===e.right)return void e.setResult(void 0).exit();if(void 0===e.left){if("function"==typeof e.right)throw Error("functions are not supported");e.setResult([e.right]).exit();return}
91if(void 0===e.right)return void e.setResult([e.left,0,0]).exit();if("function"==typeof e.left||"function"==typeof e.right)throw Error("functions are not supported");(e.leftType=null===e.left?"null":typeof e.left,e.rightType=null===e.right?"null":typeof e.right,e.leftType!==e.rightType||"boolean"===e.leftType||"number"===e.leftType||("object"===e.leftType&&(e.leftIsArray=Array.isArray(e.left)),"object"===e.rightType&&(e.rightIsArray=Array.isArray(e.right)),e.leftIsArray!==e.rightIsArray))?e.setResult([e.left,e.right]).exit():e.left instanceof RegExp&&(e.right instanceof RegExp?e.setResult([e.left.toString(),e.right.toString()]).exit():e.setResult([e.left,e.right]).exit())};AR.filterName="trivial";let AN=function(e){if(void 0===e.delta)return void e.setResult(e.left).exit();if(e.nested=!Array.isArray(e.delta),e.nested)return;let t=e.delta;if(1===t.length)return void e.setResult(t[0]).exit();if(2===t.length){if(e.left instanceof RegExp){let n=/^\/(.*)\/([gimyu]+)$/.exec(t[1]);if(null==n?void 0:n[1])return void e.setResult(new RegExp(n[1],n[2])).exit()}e.setResult(t[1]).exit();return}3===t.length&&0===t[2]&&e.setResult(void 0).exit()};AN.filterName="trivial";let AM=function(e){if(void 0===e.delta)return void e.setResult(e.delta).exit();if(e.nested=!Array.isArray(e.delta),e.nested)return;let t=e.delta;
911===t.length?e.setResult([t[0],0,0]).exit():2===t.length?e.setResult([t[1],t[0]]).exit():3===t.length&&0===t[2]&&e.setResult([t[0]]).exit()};function AD(e){if(e||(e=hy.getState()),!e)return!1;if(hy.getState().flags.COASTMIX_MODE.value)return!0;let t=e.user?.signedIn||!1,n=e.street?.creatorId||null,r=e.user?.signInData?.userId||null;return!!t&&!!n&&n===r||!n&&!t&&!wA}AM.filterName="trivial";let AL=new class{constructor(e){this.processor=new Ac(e),this.processor.pipe(new Au("diff").append(A_,AR,Aw,AI,Ak,Ah).shouldHaveResult()),this.processor.pipe(new Au("patch").append(AE,Ag,AN,AP,AS,Am).shouldHaveResult()),this.processor.pipe(new Au("reverse").append(Aj,Ab,AM,AA,AO,Ay).shouldHaveResult())}options(e){return this.processor.options(e)}diff(e,t){return this.processor.process(new Aa(e,t))}patch(e,t){return this.processor.process(new As(e,t))}reverse(e){return this.processor.process(new Al(e))}unpatch(e,t){return this.patch(e,this.reverse(t))}clone(e){return Ai(e)}}(void 0);function Az(e){let{position:t}=e.history;return null!==t&&t>=0&&AD(e)}function AF(e){let{stack:t,position:n}=e.history;return null!==n&&n>=-1&&n<t.length-1&&AD(e)}async function AB(e,t){let{history:n,street:r}=hy.getState(),{position:i,stack:o}=n;if(null===i||0===o.length)return;let a=function(e,t,n,r){let i=pp(r);if("undo"===e){let e=n[t];AL.unpatch(i,e)}else{let e=n[t+1];AL.patch(i,e)}return i}(e,t,o,r);if(a){AW=!0;try{await hy.dispatch(async e=>{await e(dY(!0)),await e(cM(a))}),pF(),AH(),AK(!0)}finally{AW=!1}}}function AU(){v=Aq(hy.getState().street)}function A$(e){hy.dispatch(cY(e)),PG()}function AH(){let e=new Date().toISOString();hy.dispatch(cQ(e))}let AW=!1;function AV(e=!1){if(AW||hy.getState().errors.abortEverything)return;let t=hy.getState().street,n=Aq(t);(JSON.stringify(n)!==JSON.stringify(v)||!0===e)&&(null!==t.editCount&&hy.dispatch(c1(t.editCount+1)),AH(),window.dispatchEvent(new window.CustomEvent("stmx:save_street")),function(e={},t){if(e.name!==t.name)return;let n=AL.diff(e,t);n&&hy.dispatch(d3(n))}(v,n),PY(),v=n)}function Aq(e){let t={schemaVersion:e.schemaVersion,showAnalytics:e.showAnalytics,capacitySource:e.capacitySource,width:e.width,name:e.name,id:e.id,namespacedId:e.namespacedId,creatorId:e.creatorId,originalStreetId:e.originalStreetId,units:e.units,location:e.location,userUpdated:e.userUpdated,skybox:e.skybox,weather:e.weather,boundary:e.boundary,segments:e.segments.map(e=>{let t={id:e.id,type:e.type,variantString:e.variantString,width:e.width,elevation:e.elevation,slope:e.slope.on?e.slope:{on:!1,values:[]},label:e.label};return!0===e.elevationChanged&&(t.elevationChanged=!0),t})};return null!==e.editCount&&(t.editCount=e.editCount),t}function AK(e=!0){AW=!0,Ar(),AW=!1,AU(),!0===e&&PY()}let AZ="coastmix"!==dk?"Streetmix":"Coastmix";function AG(e){let t=e.name??po("street.default-name","Unnamed St");return`${t} \u{2013} ${AZ}`}var AY={};self,AY=function(){"use strict";var e={933:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setBezierFunction=t.getCubicBezierTransition=void 0;let r=n(55);t.getCubicBezierTransition=(e=.25,t=.25,n=.75,r=.75)=>i=>{var o,a,s,l,u;let c,d,f,h,p,m,g,y,v,b;return o=i,a=e,s=t,l=n,u=r,d=0,f=0,h=0,p=0,m=0,g=0,y=e=>((d*e+f)*e+h)*e,v=e=>(3*d*e+2*f)*e+h,b=e=>e>=0?e:0-e,h=3*a,f=3*(l-a)-h,d=1-h-f,g=3*s,m=3*(u-s)-g,(((p=1-g-m)*(c=((e,t)=>{let n,r,i,o,a,s;for(i=e,s=0;s<8;s++){if(b(o=y(i)-e)<t)return i;if(1e-6>b(a=v(i)))break;i-=o/a}if(n=0,r=1,(i=e)<n)return n;if(i>r)return r;for(;n<r&&!(b((o=y(i))-e)<t);)e>o?n=i:r=i,i=.5*(r-n)+n;return i})(o,.005))+m)*c+g)*c},t.setBezierFunction=(e,n,i,o,a)=>{let s=(0,t.getCubicBezierTransition)(n,i,o,a);return s.displayName=e,s.x1=n,s.y1=i,s.x2=o,s.y2=a,r.Tweenable.easing[e]=s}},156:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};
91Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.standardEasingFunctions=t.setBezierFunction=t.Scene=t.interpolate=t.tween=t.Tweenable=t.shouldScheduleUpdate=t.processTweens=void 0;let o=n(55);Object.defineProperty(t,"processTweens",{enumerable:!0,get:function(){return o.processTweens}}),Object.defineProperty(t,"shouldScheduleUpdate",{enumerable:!0,get:function(){return o.shouldScheduleUpdate}}),Object.defineProperty(t,"Tweenable",{enumerable:!0,get:function(){return o.Tweenable}}),Object.defineProperty(t,"tween",{enumerable:!0,get:function(){return o.tween}});var a=n(243);Object.defineProperty(t,"interpolate",{enumerable:!0,get:function(){return a.interpolate}});var s=n(612);Object.defineProperty(t,"Scene",{enumerable:!0,get:function(){return s.Scene}});var l=n(933);Object.defineProperty(t,"setBezierFunction",{enumerable:!0,get:function(){return l.setBezierFunction}});var u=n(809);Object.defineProperty(t,"standardEasingFunctions",{enumerable:!0,get:function(){return u.standardEasingFunctions}}),i(n(613),t),t.VERSION=String("3.0.6")},243:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.interpolate=void 0;let r=n(55),i=new r.Tweenable,{filters:o}=r.Tweenable;t.interpolate=(e,t,n,a=r.Tweenable.easing.linear,s=0)=>{let l=Object.assign({},e),u=(0,r.composeEasingObject)(e,a);for(let n in i._filters.length=0,i.setState({}),i._currentState=l,i._originalState=e,i._targetState=t,i._easing=u,o)o[n].doesApply(i)&&i._filters.push(o[n]);i._applyFilter("tweenCreated"),i._applyFilter("beforeTween");let c=(0,r.tweenProps)(n,l,e,t,1,s,u);return i._applyFilter("afterTween"),c}},612:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Scene=void 0,t.Scene=class{constructor(...e){this._tweenables=[],e.forEach(this.add.bind(this))}get tweenables(){return[...this._tweenables]}get promises(){return this._tweenables.map(e=>e.then())}add(e){return this._tweenables.push(e),e}remove(e){let t=this._tweenables.indexOf(e);return t>-1&&this._tweenables.splice(t,1),e}empty(){return this.tweenables.map(this.remove.bind(this))}get isPlaying(){return this._tweenables.some(({isPlaying:e})=>e)}
91tween(){return this._tweenables.forEach(e=>e.tween()),this}pause(){return this._tweenables.forEach(e=>e.pause()),this}resume(){return this._tweenables.filter(({hasEnded:e})=>!e).forEach(e=>e.resume()),this}stop(e){return this._tweenables.forEach(t=>t.stop(e)),this}}},809:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.standardEasingFunctions=void 0,t.standardEasingFunctions=Object.freeze({linear:e=>e,easeInQuad:e=>Math.pow(e,2),easeOutQuad:e=>-(Math.pow(e-1,2)-1),easeInOutQuad:e=>(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2),easeInCubic:e=>Math.pow(e,3),easeOutCubic:e=>Math.pow(e-1,3)+1,easeInOutCubic:e=>(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2),easeInQuart:e=>Math.pow(e,4),easeOutQuart:e=>-(Math.pow(e-1,4)-1),easeInOutQuart:e=>(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2),easeInQuint:e=>Math.pow(e,5),easeOutQuint:e=>Math.pow(e-1,5)+1,easeInOutQuint:e=>(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2),easeInSine:e=>1-Math.cos(Math.PI/2*e),easeOutSine:e=>Math.sin(Math.PI/2*e),easeInOutSine:e=>-.5*(Math.cos(Math.PI*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e)),easeInCirc:e=>-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeOutBounce:e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack:e=>{let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},elastic:e=>-1*Math.pow(4,-8*e)*Math.sin(2*Math.PI*(6*e-1)/2)+1,swingFromTo:e=>{let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},swingFrom:e=>e*e*(2.70158*e-1.70158),swingTo:e=>(e-=1)*e*(2.70158*e+1.70158)+1,bounce:e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,bouncePast:e=>e<1/2.75?7.5625*e*e:e<2/2.75?2-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375),easeFromTo:e=>(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2),easeFrom:e=>Math.pow(e,4),easeTo:e=>Math.pow(e,.25)})},525:function(e,t,n){let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.afterTween=t.beforeTween=t.tweenCreated=t.doesApply=void 0;let o=n(613),a=/(\d|-|\.)/,s=/([^\-0-9.]+)/g,l=/[0-9.-]+/g,u=(r=l.source,i=/,\s*/.source,RegExp(`rgba?\\(${r}${i}${r}${i}${r}(${i}${r})?\\)`,"g")),c=/^.*\(/,d=/#([0-9]|[a-f]){3,6}/gi,f=(e,t)=>e.map((e,n)=>`_${t}_${n}`),h=e=>{let t=e.match(s);return t?(1===t.length||e.charAt(0).match(a))&&t.unshift(""):t=["",""],t.join("VAL")};function p(e){return parseInt(e,16)}let m=e=>`rgb(${(e=>{if(3===(e=e.replace(/#/,"")).length){let[t,n,r]=e.split("");e=t+t+n+n+r+r}return[p(e.substring(0,2)),p(e.substring(2,4)),p(e.substring(4,6))]})(e).join(",")})`,g=(e,t,n)=>{let r=t.match(e),i=t.replace(e,"VAL");return r&&r.forEach(e=>i=i.replace("VAL",n(e))),i},y=e=>{for(let t in e){let n=e[t];"string"==typeof n&&n.match(d)&&(e[t]=g(d,n,m))}},v=e=>{var t,n;let r=null!=(t=e.match(l))?t:[],i=r.slice(0,3).map(e=>Math.floor(Number(e))),o=null==(n=e.match(c))?void 0:n[0];if(3===r.length)return`${o}${i.join(",")})`;if(4===r.length)return`${o}${i.join(",")},${r[3]})`;throw Error(`Invalid rgbChunk: ${e}`)},b=e=>{var t;return null!=(t=e.match(l))?t:[]},w=(e,t)=>{let n={};return t.forEach(t=>{n[t]=e[t],delete e[t]}),n},x=(e,t)=>t.map(t=>Number(e[t])),_=(e,t)=>
91(t.forEach(t=>e=e.replace("VAL",String(+t.toFixed(4)))),e);t.doesApply=e=>{for(let t in e._currentState)if("string"==typeof e._currentState[t])return!0;return!1},t.tweenCreated=function(e){let{_currentState:t,_originalState:n,_targetState:r}=e;[t,n,r].forEach(y),e._tokenData=(e=>{var t;let n={};for(let r in e){let i=e[r];"string"==typeof i&&(n[r]={formatString:h(i),chunkNames:f(null==(t=b(i))?void 0:t.map(Number),r)})}return n})(t)},t.beforeTween=function(e){let{_currentState:t,_originalState:n,_targetState:r,_easing:i,_tokenData:a}=e;"function"!=typeof i&&a&&((e,t)=>{var n;for(let r in t){let{chunkNames:i}=t[r],a=e[r];if("string"==typeof a){let t=a.split(" "),r=t[t.length-1];for(let a=0;a<i.length;a++){let s=i[a],l=null!=(n=t[a])?n:r;(0,o.isEasingKey)(l)&&(e[s]=l)}}else i.forEach(t=>e[t]=a);delete e[r]}})(i,a),[t,n,r].forEach(e=>((e,t)=>{for(let n in t)b(String(e[n])).forEach((r,i)=>e[t[n].chunkNames[i]]=+r),delete e[n]})(e,null!=a?a:{}))},t.afterTween=function(e){let{_currentState:t,_originalState:n,_targetState:r,_easing:i,_tokenData:o}=e;[t,n,r].forEach(e=>((e,t)=>{for(let n in t){let{chunkNames:r,formatString:i}=t[n],o=_(i,x(w(e,r),r));e[n]=g(u,o,v)}})(e,null!=o?o:{})),"function"!=typeof i&&o&&((e,t)=>{for(let n in t){let{chunkNames:r}=t[n],i=e[r[0]];e[n]="string"==typeof i?r.map(t=>{let n=e[t];return delete e[t],n}).join(" "):i}})(i,o)}},55:function(e,t,n){let r,i;var o,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.shouldScheduleUpdate=t.tween=t.Tweenable=t.composeEasingObject=t.scheduleUpdate=t.processTweens=t.tweenProps=t.getListTail=t.getListHead=t.resetList=void 0;let u=n(809),c=n(933),d=n(613),f=l(n(525)),h="linear",p=1e3/60,m="u">typeof window?window:n.g,g="afterTween",y="beforeTween",v="string",b="function",w=m.requestAnimationFrame;w||(w="u"<typeof window?setTimeout:window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout);let x=()=>{},_=null,k=null;t.resetList=()=>{_=k=null},t.getListHead=()=>_,t.getListTail=()=>k,t.tweenProps=(e,t,n,r,i,o,a)=>{var s;let l,c,d=0,f=e<o?0:(e-o)/i;for(let e in t){if(typeof a===b)l=a;else{let t=a[e];l=typeof t===b?t:null!=(s=I.easing[t])?s:u.standardEasingFunctions.linear}d=l(f),c=n[e],t[e]=c+(r[e]-c)*d}return t};let S=(e,n)=>{var r;let i=null!=(r=e._timestamp)?r:0,o=e._currentState,a=e._delay;if(n<i+a)return;let s=e._duration,l=e._targetState,u=i+a+s,c=n>u?u:n;e._hasEnded=c>=u;let d=s-(u-c);if(e._hasEnded)return e._render(l,d,e._data),e.stop(!0);e._applyFilter(y),c<i+a?i=s=c=1:i+=a,(0,t.tweenProps)(c,o,e._originalState,l,s,i,e._easing),e._applyFilter(g),e._render(o,d,e._data)};t.processTweens=()=>{let e,t=I.now(),n=_;for(;n;)e=n._next,S(n,t),n=e};let{now:E}=Date,O,j=!1;t.scheduleUpdate=()=>{O=E(),j&&w.call(m,t.scheduleUpdate,p),(0,t.processTweens)()},t.composeEasingObject=(e,t=h,n={})=>{if(typeof t===v&&(0,d.isEasingKey)(t))return I.easing[t];if(Array.isArray(t))return(0,c.getCubicBezierTransition)(...t);if("object"==typeof n)if(typeof t===v||typeof t===b)for(let r in e)n[r]=t;else for(let r in e)n[r]=t[r]||h;return n};let T=e=>{r=null,i=null,e===_?(_=e._next)?_._previous=null:k=null:e===k?(k=e._previous)?k._next=null:_=null:(r=e._previous,i=e._next,r&&(r._next=i),i&&(i._previous=r)),e._previous=e._next=null},C=typeof Promise===b?Promise:null;class I{constructor(e={},t){this[o]="Promise",this._next=null,this._previous=null,this._config={},this._data={},this._delay=0,this._duration=500,this._filters=[],this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._originalState={},this._targetState={},this._start=x,this._render=x,this._promiseCtor=C,this._promise=null,this._isPlaying=!1,this._pausedAtTime=null,this._easing={},this._currentState=e||{},t&&this.setConfig(t)}_applyFilter(e){var t;for(let n=this._filters.length;n>0;n--){let r=this._filters[n-n];null==(t=r[e])||t.call(r,this)}}tween(e){return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=I.now(),this._start(this.state,this._data),this._delay&&this._render(this._currentState,0,this._data),this._resume(this._timestamp)}setConfig(e={}){var n;let r,{_config:i}=this;for(r in e)i[r]=e[r];let{promise:o=this._promiseCtor,start:a=x,finish:s,render:l=x}=i;this._data=i.data||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._delay=e.delay||0,this._start=a,this._render=l,this._duration=i.duration||500,this._promiseCtor=o,s&&(this._resolve=s);let{from:u,to:c={}}=e,{_currentState:d,_originalState:f,_targetState:h}=this;for(let e in u)d[e]=u[e];let p=!1;for(let e in d){let t=d[e];p||typeof t!==v||(p=!0),f[e]=t,h[e]=null!=(n=c[e])?n:t}if(this._easing=(0,t.composeEasingObject)(this._currentState,i.easing,this._easing),this._filters.length=0,p){for(let e in I.filters)I.filters[e].doesApply(this)&&this._filters.push(I.filters[e]);this._applyFilter("tweenCreated")}return this}then(e,t){if(!this._promiseCtor)throw Error("Promise implementation is unavailable");return this._promise=new this._promiseCtor((e,t)=>{this._resolve=e,this._reject=t}),this._promise.then(e,t)}catch(e){return this.then().catch(e)}finally(e){return this.then().finally(e)}get state(){return Object.assign({},this._currentState)}setState(e){this._currentState=e}pause(){return this._isPlaying&&(this._pausedAtTime=I.now(),this._isPlaying=!1,T(this)),this}resume(){return this._resume()}
91_resume(e=I.now()){if(null===this._timestamp)return this.tween();if(this._isPlaying&&this._promise)return this;this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0;let n=!!_;return null===_?_=this:(this._previous=k,k&&(k._next=this)),k=this,n||(0,t.shouldScheduleUpdate)(!0),this}seek(e){var t;e=Math.max(e,0);let n=I.now();return(null!=(t=this._timestamp)?t:0)+e===0||(this._timestamp=n-e,S(this,n)),this}stop(e=!1){var n;return this._isPlaying&&(this._isPlaying=!1,T(this),e&&(this._applyFilter(y),(0,t.tweenProps)(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),this._applyFilter(g),this._applyFilter("afterTweenEnd")),null==(n=this._resolve)||n.call(this,{data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null),this}cancel(e=!1){var t;let{_currentState:n,_data:r,_isPlaying:i}=this;return i?(null==(t=this._reject)||t.call(this,{data:r,state:n,tweenable:this}),this._resolve=null,this._reject=null,this.stop(e)):this}get isPlaying(){return this._isPlaying}get hasEnded(){return this._hasEnded}data(e=null){return e&&(this._data=Object.assign({},e)),this._data}dispose(){for(let e in this)delete this[e]}}t.Tweenable=I,o=Symbol.toStringTag,I.now=()=>(j||(O=E()),O),I.setScheduleFunction=e=>w=e,I.filters={token:f},I.easing=Object.create(u.standardEasingFunctions),t.tween=function(e={}){return new I({},{}).tween(e)},t.shouldScheduleUpdate=e=>{e&&j||(j=e,e&&(0,t.scheduleUpdate)())}},613:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isEasingKey=void 0;let r=n(55);t.isEasingKey=e=>e in r.Tweenable.easing}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n(156)}();var AX={};function AJ(e){if(null!=e)return ei(AX).extend({"|":"","%":"",$:""}),ei(AX)(e,{replacement:"-",remove:/[*+=~.,<>(){}'"!?:;@#$%^&*|\\/[\]]/g,lower:!0}).replace(/^[-]+|[-]+$/g,"")}function AQ(e,t,n){let r=Object.keys(t).reduce((t,n)=>(void 0!==e[n]?t[n]=e[n]:t[n]=0,t),{});(0,AY.tween)({from:r,to:t,duration:n,render:t=>Object.assign(e,t)})}function A0(e){let t="/";if(e.creatorId?(-1!==dx.indexOf("/"+e.creatorId)&&(t+="~"),t+=e.creatorId):t+="-",t+="/",t+=e.namespacedId,e.creatorId){let n=AJ(e.name);n&&(t+="/"+window.encodeURIComponent(n))}return t}function A1(e=!1,t=null){let n;n=e?"/"+(t||"gallery/"):A0(hy.getState().street);let r=new URLSearchParams(window.location.search);hb.forceLeftHandTraffic&&r.set("debug-force-left-hand-traffic","1"),hb.forceNonRetina&&r.set("debug-force-non-retina","1"),hb.forceReadOnly&&r.set("debug-force-read-only","1"),hb.forceOfflineMode&&r.set("debug-force-offline","1"),r.size>0&&(n+=`?${r.toString()}`),window.history.replaceState(null,"",n)}function A2(){let e=hy.getState();e.errors.abortEverything||e.gallery.visible||(PV(),hy.dispatch(dI({})))}(AX=(RO=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ"
91:"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ũ":"U","Å©":"u","Ū":"u","Å«":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Æ ":"O","Æ¡":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Î¥":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Ð¥":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ò¢":"NG","Ò£":"ng","Ò®":"UE","Ò¯":"ue","Ò°":"U","Ò±":"u","Òº":"H","Ò»":"h","Ә":"AE","ә":"ae","Ó¨":"OE","Ó©":"oe","Ô±":"A","Ô²":"B","Ô³":"G","Ô´":"D","Ôµ":"E","Ô¶":"Z","Ô·":"E\'","Ô¸":"Y\'","Ô¹":"T\'","Ôº":"JH","Ô»":"I","Ô¼":"L","Ô½":"X","Ô¾":"C\'","Ô¿":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","Ø¡":"a","Ø¢":"aa","Ø£":"a","ؤ":"u","Ø¥":"i","ئ":"e","ا":"a","ب":"b","Ø©":"h","ت":"t","Ø«":"th","ج":"j","Ø­":"h","Ø®":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","Ø´":"sh","ص":"s","ض":"dh","Ø·":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù¾":"p","چ":"ch","ژ":"zh","Ú©":"k","Ú¯":"g","ی":"y","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","á¹¢":"S","á¹£":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","á» ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","á»§":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","á»­":"u","á»®":"U","ữ":"u","á»°":"U","á»±":"u","Ỳ":"Y","ỳ":"y","á»´":"Y","ỵ":"y","á»¶":"Y","á»·":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","â
91‚§":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","ï·¼":"rial","ﻵ":"laa","ï»·":"laa","ﻹ":"lai","ï»»":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Ð¥":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","Ã¥":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","Ã¥":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","Ã¥":"aa","ä":"ae","ö":"oe"}}');function n(n,r){if("string"!=typeof n)throw Error("slugify: string argument expected");var i=t[(r="string"==typeof r?{replacement:r}:r||{}).locale]||{},o=void 0===r.replacement?"-":r.replacement,a=void 0===r.trim||r.trim,s=n.normalize().split("").reduce(function(t,n){var a=i[n];return void 0===a&&(a=e[n]),void 0===a&&(a=n),a===o&&(a=" "),t+a.replace(r.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return r.strict&&(s=s.replace(/[^A-Za-z0-9\s]/g,"")),a&&(s=s.trim()),s=s.replace(/\s+/g,o),r.lower&&(s=s.toLowerCase()),s}return n.extend=function(t){Object.assign(e,t)},n})()).default=RO();let A3=null;function A4(e){var t;hy.getState().street,t=e,ww(),A3=t,ul(t).then(e=>(wx(),e.data)).then(A5).catch(A6)}function A5(e){e.id===A3&&(AW=!0,hy.dispatch(uG()),Pq(e,null,null,!0),window.dispatchEvent(new window.CustomEvent("stmx:receive_gallery_street")),hy.dispatch(P0()),AW=!1,AU(),hy.getState().street,hy.dispatch(dc()))}function A6(e){console.log(e),pm(22,!1)}async function A8(e,t){try{let n=await A9(e,t);return n.streets.length&&(10===p||11===p)&&A4(n.streets[0].id),n}catch(e){throw e.response?.status===404&&(gm(6),gg()),e}}async function A9(e,t){return e?(await us(e,t)).data:(await up(t)).data}let A7=o5("gallery/openGallery",async({userId:e,page:t=1},{rejectWithValue:n})=>{A1(!0,e),(10===p||11===p)&&pm(3,!1);try{return await A8(e??"",t)}catch(e){if(e.response?.status===404)return n({killGallery:!0});throw e}}),Re=o5("gallery/fetchPage",async(e,{rejectWithValue:t,getState:n})=>{let r=n().gallery.userId;try{return await A9(r??"",e)}catch(n){if(n.response?.status===404)return t({userId:r,page:e});throw n}}),Rt=o5("gallery/closeGallery",async({instant:e=!1}={},{getState:t})=>(t().errors.abortEverything||A1(),A2(),gm(1),{instant:e}),{condition:(e,{getState:t})=>{let{visible:n}=t().gallery;if(!n)return!1}}),Rn=o5("history/handleUndo",async(e,{dispatch:t,getState:n})=>{let r=n(),{position:i}=r.history;Az(r)?(t(dQ()),await AB("undo",i)):t(dz({message:po("toast.no-undo","Nothing to undo."),duration:4e3}))}),Rr=o5("history/handleRedo",async(e,{dispatch:t,getState:n})=>{let r=n(),{position:i}=r.history;AF(r)?(t(d0()),await AB("redo",i)):t(dz({message:po("toast.no-redo","Nothing to redo."),duration:4e3}))}),Ri={},Ro=function(){},Ra=function(){return!0};function Rs(e,t,n){let r,i={shiftKey:!1,metaKey:!1,altKey:!1,onKeypress:Ro,condition:Ra,preventDefault:!0,stopPropagation:!1,requireFocusOnBody:!0,fireOnce:!1},o={};"object"==typeof t&&null!==t?o=t:"function"==typeof t&&(o={},r=t),void 0!==n&&(r=n);let a=Ru(e);for(let t in a)for(let n of a[t]){let a={...i,...n,originalCommands:e};("Esc"===t||"Escape"===t)&&(a.requireFocusOnBody=!1,a.stopPropagation=!0),"function"==typeof r&&(a.onKeypress=r);let s={...a,...o};void 0===Ri[t]&&(Ri[t]=[]),Ri[t].push(s)}}function Rl(e,t){let n=Ru(e);for(let e in n)for(let r of n[e]){let n=Ri[e],i=n&&n.length||0;if(0===i)break;for(;i--;){let o=n[i];
91if(o.onKeypress===t||void 0===t){let t=o.shiftKey===r.shiftKey||"optional"===o.shiftKey,n=o.altKey===r.altKey||"optional"===o.altKey,a=o.metaKey===r.metaKey||"optional"===o.metaKey;t&&n&&a&&Ri[e].splice(i,1)}}}}function Ru(e){let t={};for(let n of"string"==typeof e?[e]:e){let e=n.toLowerCase().replace(/(command|cmd|control|ctrl)/g,"meta").split(" "),r={shiftKey:!1,altKey:!1,metaKey:!1},i=e.indexOf("shift");i>-1&&(r.shiftKey=!0,e.splice(i,1));let o=e.indexOf("alt");o>-1&&(r.altKey=!0,e.splice(o,1));let a=e.indexOf("meta");a>-1&&(r.metaKey=!0,e.splice(a,1));let s=e[0];if(s){let e=[];for(let n of("string"==typeof s?e.push(s):Array.isArray(s)&&(e=s),e)){let e;switch(n){case"esc":e="escape";break;case"left":e="arrowleft";break;case"right":e="arrowright";break;default:e=n}r.key=e,void 0===t[e]&&(t[e]=[]),t[e].push(r)}}}return t}function Rc(e){let t=[],n=e.key;if(void 0===n)return;let r=Ri[n.toLowerCase()];if(r&&0!==r.length){for(let n of r)(n.shiftKey===e.shiftKey||"optional"===n.shiftKey)&&(n.altKey===e.altKey||"optional"===n.altKey)&&(n.metaKey===e.metaKey||n.metaKey===e.ctrlKey||"optional"===n.metaKey)&&t.push(n);for(let n of t){var i,o;i=n,o=e,i.condition?.()===!1||(!0!==i.requireFocusOnBody||!1!=(document.activeElement===document.body))&&(o&&i.preventDefault&&o.preventDefault(),o&&i.stopPropagation&&o.stopPropagation(),i.onKeypress&&i.onKeypress(o),!0===i.fireOnce&&Rl(i.originalCommands,i.onKeypress))}}}function Rd(e){switch(e.key){case"Esc":case"Escape":{let{draggingType:t}=hy.getState().ui;if(3!==t)return;pR(pk.sliceIndex,pC,pk.originalWidth),pM(),e.preventDefault()}}}function Rf(){hy.getState().system.offline||hy.dispatch(dz({component:"TOAST_NO_CONNECTION",method:"warning",duration:1/0}))}function Rh(){"hidden"!==document.visibilityState&&A2()}function Rp(e){if(function(){if(hy.getState().errors.abortEverything)return!1;let e=!1;return PF&&(e=!0),!!e&&(hy.getState().street,!0)}()){e.preventDefault();let t="Your changes have not been saved yet.";return e.returnValue=t,t}}async function Rm(){let e;e={},(hb.forceOfflineMode||!1)&&(e.offline=!0),hb.forceNonRetina&&(e.devicePixelRatio=1),hy.dispatch(dM(e)),AW=!0;let t=window.navigator.userLanguage||window.navigator.language;if(t&&kr(t=t.substring(0,2).toUpperCase()),Rs("ctrl s",function(){hy.dispatch(dz({message:po("toast.no-save","No need to save by hand; Streetmix automatically saves your street!")}))}),Rs("ctrl s",{preventDefault:!0,requireFocusOnBody:!1},()=>{}),Rs(["backspace","delete"],{preventDefault:!0,requireFocusOnBody:!0},()=>{}),Rs("shift f",()=>{wq()&&wV()?.details?.roles.includes(ei(d5).ADMIN.value)&&hy.dispatch(uW("FEATURE_FLAGS"))}),Rs("ctrl z",{preventDefault:!0,requireFocusOnBody:!0,shiftKey:!1},()=>{hy.dispatch(Rn())}),Rs(["shift ctrl z","ctrl y"],{preventDefault:!0,requireFocusOnBody:!0},()=>{hy.dispatch(Rr())}),window.addEventListener("keydown",Rc),hv(e=>({system:e.system,app:e.app}),e=>{document.body.classList.toggle("windows",e.system.windows),document.body.classList.toggle("safari",e.system.safari),document.body.classList.toggle("read-only",e.app.readOnly)}),window.dispatchEvent(new window.CustomEvent("stmx:init")),!function(){let e=new URL(window.location.href),t=e.pathname.replace(/\/+$/,""),n=t.split(/\//).filter(e=>""!==e);if("/"===t||""===t)gm(1);else if(t===dv){let t=new URLSearchParams(e.search),n=t.get("type");n===dy?gm(3,{type:n}):gm(2,{type:n??dg}),t.delete("type");let r=`${e.origin}${e.pathname}`;t.size>0&&(r+=`?${t.toString()}`),window.history.replaceState(null,"",r)}else if("/services/auth0/just-signed-in"===t)gm(4);else if(t===db)gm(11);else if(t===dw)gm(20);else if(1===n.length&&n[0])hy.dispatch(u6(n[0])),gm(10);else if(2===n.length&&"-"===n[0]&&n[1]){let e=Number.parseInt(n[1],10);Number.isInteger(e)?(hy.dispatch(cY(null)),hy.dispatch(cX(null,e)),gm(5)):gm(6)}else if(n.length>=2&&n[0]&&n[1]){let e=n[0],t=Number.parseInt(n[1],10);"~"===e.charAt(0)&&(e=e.slice(1)),hy.dispatch(cY(e)),Number.isInteger(t)?(hy.dispatch(cX(null,t)),gm(5)):(hy.dispatch(u6(n[0])),gm(10))}else gm(6)}(),gg(),hy.getState().errors.abortEverything)return;void 0!==document.monetization?(document.monetization.addEventListener("monetizationstart",e=>{console.log("monetization start!"),hy.dispatch(fe(!0)),hy.getState().user.signedIn?"true"===window.localStorage.getItem("wm-sign-in-notification")&&(hy.dispatch(dz({component:"TOAST_WEB_MONETIZATION_
91SUCCESS",duration:1e4})),window.localStorage.removeItem("wm-sign-in-notification")):(hy.dispatch(dz({component:"TOAST_WEB_MONETIZATION",duration:1/0})),window.localStorage.setItem("wm-sign-in-notification","true"))}),document.monetization.addEventListener("monetizationstop",e=>{console.log("monetization stop!"),hy.dispatch(fe(!1))}),document.monetization.addEventListener("monetizationpending",e=>{console.log("monetization pending!")})):(document.monetization=document.createElement("div"),document.monetization.state="stopped");let n=h_.get("btpToken");if("string"==typeof n)try{let e=hS(n);console.log(e),void 0!==e.iat&&console.log(`issued at ${new Date(1e3*e.iat).toString()}`),void 0!==e.exp&&console.log(`expires at ${new Date(1e3*e.exp).toString()}`),void 0!==document.coilMonetizationPolyfill&&document.coilMonetizationPolyfill.init({btpToken:n}),window.setInterval(function(){void 0!==document.coilMonetizationPolyfill&&document.coilMonetizationPolyfill.refreshBtpToken(n)},18e5)}catch(e){console.error("caught error doing token stuff",e)}let r=await hy.dispatch(d6());r?.payload?.countryCode&&kr(r.payload.countryCode),await Promise.all([pd(),pi()]),await wX(),Rg()}function Rg(){!hy.getState().errors.abortEverything&&b&&function(){3===p&&wO("load",{url:"/api/v1/streets/"+hy.getState().app.priorLastStreetId,method:"GET"},PJ,PX),hy.dispatch(P0()),AW=!1,AU(),hv(e=>JSON.stringify({boundary:e.street.boundary,name:e.street.name,location:e.street.location,skybox:e.street.skybox,weather:e.street.weather}),()=>{AV()}),hv(e=>e.flags,e=>{let t=Object.entries(e).filter(([,e])=>"session"===e.source).reduce((e,[t,n])=>(e[t]=n.value,e),{});window.localStorage.setItem("flags",JSON.stringify(t))}),hv(e=>e.settings,wL(wF,500)),Aq(hy.getState().street),hv(e=>JSON.stringify({editCount:e.street.editCount,id:e.street.id}),()=>{let e=Date.now()-g;e&&e>=18e5&&Aq(hy.getState().street)}),hv(e=>JSON.stringify({name:e.street.name,creatorId:e.street.creatorId,namespacedId:e.street.namespacedId}),e=>{var t;let n,r,i=JSON.parse(e);A1();r=null===i.creatorId||wq()&&wV()?.userId===i.creatorId?AG(i):(n=(t=i).name??po("street.default-name","Unnamed St"),`${n} (by ${t.creatorId}) \u{2013} ${AZ}`),document.title=r}),hv(e=>({...PR(e.street.skybox)}),e=>{document.body.classList.toggle("dark-skybox-invert-ui",!!e.invertUITextColor)}),hv(e=>e.ui.draggingType,e=>{switch(document.body.classList.remove("segment-move-dragging"),document.body.classList.remove("segment-resize-dragging"),e){case 3:document.body.classList.add("segment-resize-dragging");break;case 2:document.body.classList.add("segment-move-dragging")}}),window.addEventListener("storage",wZ),window.addEventListener("pointermove",pS),window.addEventListener("pointerup",pE),window.addEventListener("keydown",Rd),window.addEventListener("beforeunload",Rp),window.addEventListener("offline",Rf),window.addEventListener("stmx:api_max_connection",Rf),void 0!==document.hidden?document.addEventListener("visibilitychange",Rh,!1):window.addEventListener("focus",A2),console.log(`%c
92  ____  _    %cWelcome to%c   _             _      _
93 / ___|| |_ _ __ ___  ___| |_ _ __ ___ (_)_  _| |
94 \\___ \\| __| '__/ _ \\/ _ \\ __| '_ \` _ \\| \\ \\/ / |
95  ___) | |_| | |  __/  __/ |_| | | | | | |>  <|_|
96 |____/ \\__|_|  \\___|\\___|\\__|_| |_| |_|_/_/\\_(_)
97%c..:                                            :..
98..:    Contribute to our open-source code!     :..
99..:   https://github.com/streetmix/streetmix   :..
100%c..:                                            :..
101..:          Please sponsor our work!          :..
102..:    https://opencollective.com/streetmix    :..`,"font-family: monospace; color: green","font-family: monospace; color: gray","font-family: monospace; color: green","font-family: monospace; color: blue","font-family: monospace; color: red"),hy.dispatch(uj());let e=p;if(10===e?hy.dispatch(A7({userId:hy.getState().gallery.userId,instant:!0})):11===e&&hy.dispatch(A7({instant:!0})),wR&&wN(),5===e||1===e){let e,t=!1,n="settings-welcome-dismissed",r="whatsnew-last-timestamp",i=hy.getState(),o=i.flags.ALWAYS_DISPLAY_WHATS_NEW.value,a=i.flags.COASTMIX_MODE.value,s=i.locale.locale;window.localStorage[n]&&(e=JSON.parse(window.localStorage[n])),window.localStorage[r]?0x19f6129baf8>window.localStorage[r]&&(t=!0):t=!0,(e&&t&&"en"===s&&!a||o)&&(hy.dispatch(uW("WHATS_NEW")),window.localStorage[r]=0x19f6129baf8)}}()}var ef=(el("8NFma"),el("8NFma")),Ry=Object.defineProperty,Rv=(e,t)=>Ry(e,"name",{value:t,configurable:!0}),Rb=ef.createContext(void 0),Rw=Rv(e=>{let{dir:t,children:n}=e;return(0,ec.jsx)(Rb.Provider,{value:t,children:n})},"DirectionProvider");function Rx(e){let t=ef.useContext(Rb);return e||t||"ltr"}Rv(Rx,"useDirection");var R_,Rk,RS,RE,RO,Rj,RT,RC,RI,RP=e=>{throw TypeError(e)},RA=(e,t,n)=>t.has(e)||RP("Cannot "+n),RR=(e,t,n)=>(RA(e,t,"read from private field"),n?n.call(e):t.get(e)),RN=(e,t,n)=>t.has(e)?RP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),RM=(e,t,n,r)=>(RA(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),RD=class{constructor(){RN(this,RI),this.register=e=>{RR(this,RI).push(e)},this.unregister=e=>{for(;-1!==RR(this,RI).indexOf(e);)RR(this,RI).splice(RR(this,RI).indexOf(e),1)},this.backendChanged=e=>{for(let t of RR(this,RI))t.backendChanged(e)},RM(this,RI,[])}};RI=new WeakMap;var RL,Rz,RF,RB,RU,R$,RH,RW,RV,Rq,RK,RZ=class e{constructor(t,n,r){if(RN(this,RL),RN(this,Rz),RN(this,RF),RN(this,RB),RN(this,RU),RN(this,R$,(e,t,n)=>{if(!n.backend)throw Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(n)}`);let r=n.backend(e,t,n.options),i=n.id,o=!n.id&&r&&r.constructor;if(o&&(i=r.constructor.name),!i)throw Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(n)}
103        see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);
103if(o&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
104        This might be unsupported in the future, please specify 'id' explicitely for every backend.`),RR(this,RF)[i])throw Error(`You must specify a unique 'id' property in your Backend entry:
105        ${JSON.stringify(n)} (conflicts with: ${JSON.stringify(RR(this,RF)[i])})`);return{id:i,instance:r,preview:n.preview??!1,transition:n.transition,skipDispatchOnTransition:n.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(e.isSetUp)throw Error("Cannot have two MultiBackends at the same time.");e.isSetUp=!0,RR(this,RH).call(this,window),RR(this,RF)[RR(this,RL)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(e.isSetUp=!1,RR(this,RW).call(this,window),RR(this,RF)[RR(this,RL)].instance.teardown())},this.connectDragSource=(e,t,n)=>RR(this,RK).call(this,"connectDragSource",e,t,n),this.connectDragPreview=(e,t,n)=>RR(this,RK).call(this,"connectDragPreview",e,t,n),this.connectDropTarget=(e,t,n)=>RR(this,RK).call(this,"connectDropTarget",e,t,n),this.profile=()=>RR(this,RF)[RR(this,RL)].instance.profile(),this.previewEnabled=()=>RR(this,RF)[RR(this,RL)].preview,this.previewsList=()=>RR(this,Rz),this.backendsList=()=>RR(this,RB),RN(this,RH,e=>{for(let t of RR(this,RB))t.transition&&e.addEventListener(t.transition.event,RR(this,RV))}),RN(this,RW,e=>{for(let t of RR(this,RB))t.transition&&e.removeEventListener(t.transition.event,RR(this,RV))}),RN(this,RV,e=>{let t=RR(this,RL);if(RR(this,RB).some(t=>!!(t.id!==RR(this,RL)&&t.transition&&t.transition.check(e))&&(RM(this,RL,t.id),!0)),RR(this,RL)!==t){for(let[e,n]of(RR(this,RF)[t].instance.teardown(),Object.entries(RR(this,RU))))n.unsubscribe(),n.unsubscribe=RR(this,Rq).call(this,n.func,...n.args);RR(this,Rz).backendChanged(this);let n=RR(this,RF)[RR(this,RL)];if(n.instance.setup(),n.skipDispatchOnTransition)return;let r=new e.constructor(e.type,e);e.target?.dispatchEvent(r)}}),RN(this,Rq,(e,t,n,r)=>RR(this,RF)[RR(this,RL)].instance[e](t,n,r)),RN(this,RK,(e,t,n,r)=>{let i=`${e}_${t}`,o=RR(this,Rq).call(this,e,t,n,r);return RR(this,RU)[i]={func:e,args:[t,n,r],unsubscribe:o},()=>{RR(this,RU)[i].unsubscribe(),delete RR(this,RU)[i]}}),!r||!r.backends||r.backends.length<1)throw Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
106        see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);for(let e of(RM(this,Rz,new RD),RM(this,RF,{}),RM(this,RB,[]),r.backends)){let r=RR(this,R$).call(this,t,n,e);RR(this,RF)[r.id]=r,RR(this,RB).push(r)}RM(this,RL,RR(this,RB)[0].id),RM(this,RU,{})}};RL=new WeakMap,Rz=new WeakMap,RF=new WeakMap,RB=new WeakMap,RU=new WeakMap,R$=new WeakMap,RH=new WeakMap,RW=new WeakMap,RV=new WeakMap,Rq=new WeakMap,RK=new WeakMap,RZ.isSetUp=!1;var RG=(e,t,n)=>new RZ(e,t,n),RY=(e,t)=>({event:e,check:t}),RX=RY("touchstart",e=>null!==e.touches&&void 0!==e.touches),RJ=(RY("dragstart",e=>-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop")),RY("mousedown",e=>-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse")),RY("pointerdown",e=>"mouse"===e.pointerType)),ef=(el("8NFma"),el("8NFma"));let RQ=(0,ef.createContext)({dragDropManager:void 0});function R0(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 R1="function"==typeof Symbol&&Symbol.observable||"@@observable",R2=function(){return Math.random().toString(36).substring(7).split("").join(".")},R3={INIT:"@@redux/INIT"+R2(),REPLACE:"@@redux/REPLACE"+R2(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+R2()}};function R4(e,t,...n){0;if(!e){let e;if(void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;(e=Error(t.replace(/%s/g,function(){return n[r++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}function R5(e){return"object"==typeof e}let R6="dnd-core/INIT_COORDS",R8="dnd-core/BEGIN_DRAG",R9="dnd-core/PUBLISH_DRAG_SOURCE",R7="dnd-core/HOVER",Ne="dnd-core/DROP",Nt="dnd-core/END_DRAG";function Nn(e,t){return{type:R6,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}let Nr={type:R6,payload:{clientOffset:null,sourceClientOffset:null}};function Ni(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}class No{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){var e,t,n,r,i;let o=this,{dispatch:a}=this.store,s={beginDrag:(e=this,function(t=[],n={publishSource:!0}){var r,i,o;
106let{publishSource:a=!0,clientOffset:s,getSourceClientOffset:l}=n,u=e.getMonitor(),c=e.getRegistry();e.dispatch(Nn(s)),r=t,i=u,o=c,R4(!i.isDragging(),"Cannot call beginDrag while dragging."),r.forEach(function(e){R4(o.getSource(e),"Expected sourceIds to be registered.")});let d=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,u);if(null==d)return void e.dispatch(Nr);let f=null;if(s){if(!l)throw Error("getSourceClientOffset must be defined");R4("function"==typeof l,"When clientOffset is provided, getSourceClientOffset must be a function."),f=l(d)}e.dispatch(Nn(s,f));let h=c.getSource(d).beginDrag(u,d);if(null!=h)return R4(R5(h),"Item must be an object."),c.pinSource(d),{type:R8,payload:{itemType:c.getSourceType(d),item:h,sourceId:d,clientOffset:s||null,sourceClientOffset:f||null,isSourcePublic:!!a}}}),publishDragSource:(t=this,function(){if(t.getMonitor().isDragging())return{type:R9}}),hover:(n=this,function(e,{clientOffset:t}={}){var r,i,o;R4(Array.isArray(e),"Expected targetIds to be an array.");let a=e.slice(0),s=n.getMonitor(),l=n.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];Ni(t.getTargetType(i),n)||e.splice(r,1)}}(a,l,s.getItemType()),function(e,t,n){R4(t.isDragging(),"Cannot call hover while not dragging."),R4(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){let r=e[t];R4(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array."),R4(n.getTarget(r),"Expected targetIds to be registered.")}}(a,s,l),r=a,i=s,o=l,r.forEach(function(e){o.getTarget(e).hover(i,e)}),{type:R7,payload:{targetIds:a,clientOffset:t||null}}}),drop:(r=this,function(e={}){var t,n;let i,o=r.getMonitor(),a=r.getRegistry();R4((t=o).isDragging(),"Cannot call drop while not dragging."),R4(!t.didDrop(),"Cannot call drop twice during one drag operation."),((i=(n=o).getTargetIds().filter(n.canDropOnTarget,n)).reverse(),i).forEach((t,n)=>{var i,s,l,u,c;let d,f,h={type:Ne,payload:{dropResult:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e,(i=t,s=n,l=a,u=o,R4(void 0===(c=f=(d=l.getTarget(i))?d.drop(u,i):void 0)||R5(c),"Drop result must either be an object or undefined."),void 0===f&&(f=0===s?{}:u.getDropResult()),f))}};r.dispatch(h)})}),endDrag:(i=this,function(){let e=i.getMonitor(),t=i.getRegistry();R4(e.isDragging(),"Cannot call endDrag while not dragging.");let n=e.getSourceId();return null!=n&&(t.getSource(n,!0).endDrag(e,n),t.unpinSource()),{type:Nt}})};return Object.keys(s).reduce((e,t)=>{let n=s[t];return e[t]=(...e)=>{let t=n.apply(o,e);void 0!==t&&a(t)},e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function Na(e,t){return{x:e.x-t.x,y:e.y-t.y}}let Ns=[],Nl=[];Ns.__IS_NONE__=!0,Nl.__IS_ALL__=!0;class Nu{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;R4("function"==typeof e,"listener must be a function."),R4(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId,i=()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!function(e,t){return e!==Ns&&(e===Nl||void 0===t||t.filter(t=>e.indexOf(t)>-1).length>0)}(t.dirtyHandlerIds,n)||e()}finally{r=i}};return this.store.subscribe(i)}subscribeToOffsetChange(e){R4("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset,n=()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return R4(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return R4(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&Ni(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return R4(t,`Expected to find a valid source. sourceId=${e}`),!!this.isDragging()&&!!this.isSourcePublic()&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Ni(r,i))return!1;let o=this.getTargetIds();if(!o.length)return!1;let a=o.indexOf(e);return n?a===o.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}
106getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?Na({x:t.x+r.x,y:t.y+r.y},n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){let{clientOffset:t,initialClientOffset:n}=e;return t&&n?Na(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}let Nc=void 0!==er?er:self,Nd=Nc.MutationObserver||Nc.WebKitMutationObserver;function Nf(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}let Nh="function"==typeof Nd?function(e){let t=1,n=new Nd(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){r.data=t=-t}}:Nf;class Np{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}let Nm=new class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Nh(this.flush),this.requestErrorThrow=Nf(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Ng=new class{create(e){let t=this.freeTasks,n=t.length?t.pop():new Np(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Nm.registerPendingError),Ny="dnd-core/ADD_SOURCE",Nv="dnd-core/ADD_TARGET",Nb="dnd-core/REMOVE_SOURCE",Nw="dnd-core/REMOVE_TARGET";function Nx(e,t){t&&Array.isArray(e)?e.forEach(e=>Nx(e,!1)):R4("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}(z=Q||(Q={})).SOURCE="SOURCE",z.TARGET="TARGET";let N_=0;function Nk(e){switch(e[0]){case"S":return Q.SOURCE;case"T":return Q.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function NS(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r)return!1}class NE{addSource(e,t){Nx(e),R4("function"==typeof t.canDrag,"Expected canDrag to be a function."),R4("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),R4("function"==typeof t.endDrag,"Expected endDrag to be a function.");let n=this.addHandler(Q.SOURCE,e,t);return this.store.dispatch({type:Ny,payload:{sourceId:n}}),n}addTarget(e,t){Nx(e,!0),R4("function"==typeof t.canDrop,"Expected canDrop to be a function."),R4("function"==typeof t.hover,"Expected hover to be a function."),R4("function"==typeof t.drop,"Expected beginDrag to be a function.");let n=this.addHandler(Q.TARGET,e,t);return this.store.dispatch({type:Nv,payload:{targetId:n}}),n}containsHandler(e){return NS(this.dragSources,e)||NS(this.dropTargets,e)}getSource(e,t=!1){return R4(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return R4(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return R4(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return R4(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Nk(e)===Q.SOURCE}isTargetId(e){return Nk(e)===Q.TARGET}removeSource(e){var t;R4(this.getSource(e),"Expected an existing source."),this.store.dispatch({type:Nb,payload:{sourceId:e}}),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Nm.enqueueTask(Ng.create(t))}removeTarget(e){R4(this.getTarget(e),"Expected an existing target."),this.store.dispatch({type:Nw,payload:{targetId:e}}),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);R4(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){R4(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=function(e){let t=(N_++).toString();switch(e){case Q.SOURCE:return`S${t}`;case Q.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===Q.SOURCE?this.dragSources.set(r,n):e===Q.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}let NO={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}let NT={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function NC(e={},t){var n;return{dirtyHandlerIds:function(e=Ns,t){let n,r,i;switch(t.type){case R7:break;case Ny:case Nv:case Nw:case Nb:return Ns;default:return Nl}let{targetIds:o=[],prevTargetIds:a=[]}=t.payload,s=(n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)}
106,o.forEach(r),a.forEach(r),i=[],n.forEach((e,t)=>{1===e&&i.push(t)}),i);if(!(s.length>0||!function(e,t,n=(e,t)=>e===t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(o,a)))return Ns;let l=a[a.length-1],u=o[o.length-1];return l!==u&&(l&&s.push(l),u&&s.push(u)),s}(e.dirtyHandlerIds,{type:t.type,payload:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t.payload,{prevTargetIds:(n=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:n||null,e))})}),dragOffset:function(e=NO,t){let{payload:n}=t;switch(t.type){case R6:case R8:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case R7:var r,i;if(r=e.clientOffset,i=n.clientOffset,!r&&!i||r&&i&&r.x===i.x&&r.y===i.y)return e;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e,{clientOffset:n.clientOffset});case Nt:case Ne:return NO;default:return e}}(e.dragOffset,t),refCount:function(e=0,t){switch(t.type){case Ny:case Nv:return e+1;case Nb:case Nw:return e-1;default:return e}}(e.refCount,t),dragOperation:function(e=NT,t){let{payload:n}=t;switch(t.type){case R8:return Nj({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case R9:return Nj({},e,{isSourcePublic:!0});case R7:return Nj({},e,{targetIds:n.targetIds});case Nw:var r,i;if(-1===e.targetIds.indexOf(n.targetId))return e;return Nj({},e,{targetIds:(r=e.targetIds,i=n.targetId,r.filter(e=>e!==i))});case Ne:return Nj({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Nt:return Nj({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}(e.dragOperation,t),stateId:function(e=0){return e+1}(e.stateId)}}var ef=el("8NFma");let NI=0,NP=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var NA=(0,ef.memo)(function(e){var t,{children:n}=e;let[r,i]="manager"in(t=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,["children"]))?[{dragDropManager:t.manager},!1]:[function(e,t=NR(),n,r){return t[NP]||(t[NP]={dragDropManager:function(e,t,n={},r=!1){var i;let o,a=(i=r,o="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,function e(t,n,r){if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(R0(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw Error(R0(1));return r(e)(t,n)}if("function"!=typeof t)throw Error(R0(2));var i,o=t,a=n,s=[],l=s,u=!1;function c(){l===s&&(l=s.slice())}function d(){if(u)throw Error(R0(3));return a}function f(e){if("function"!=typeof e)throw Error(R0(4));if(u)throw Error(R0(5));var t=!0;return c(),l.push(e),function(){if(t){if(u)throw Error(R0(6));t=!1,c();var n=l.indexOf(e);l.splice(n,1),s=null}}}function h(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 Error(R0(7));if(void 0===e.type)throw Error(R0(8));if(u)throw Error(R0(9));try{u=!0,a=o(a,e)}finally{u=!1}for(var t=s=l,n=0;n<t.length;n++)(0,t[n])();return e}return h({type:R3.INIT}),(i={dispatch:h,subscribe:f,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw Error(R0(10));o=e,h({type:R3.REPLACE})}})[R1]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(R0(11));function t(){e.next&&e.next(d())}return t(),{unsubscribe:f(t)}}})[R1]=function(){return this},e},i}(NC,i&&o&&o({name:"dnd-core",instanceId:"dnd-core"}))),s=new Nu(a,new NE(a)),l=new No(a,s),u=e(l,t,n);return l.receiveBackend(u),l}(e,t,n,r)}),t[NP]}(t.backend,t.context,t.options,t.debugMode),!t.context];return(0,ef.useEffect)(()=>
106{if(i){let e=NR();return++NI,()=>{0==--NI&&(e[NP]=null)}}},[]),(0,ec.jsx)(RQ.Provider,{value:r,children:n})});function NR(){return void 0!==er?er:window}"use strict";var NN={};NN=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};var ef=(el("8NFma"),el("8NFma"));let NM="u">typeof window?ef.useLayoutEffect:ef.useEffect;function ND(e,t,n){let[r,i]=(0,ef.useState)(()=>t(e)),o=(0,ef.useCallback)(()=>{let o=t(e);!ei(NN)(r,o)&&(i(o),n&&n())},[r,e,n]);return NM(o),[r,o]}function NL(e,t,n){return function(e,t,n){let[r,i]=ND(e,t,n);return NM(function(){let t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}(t,e||(()=>({})),()=>n.reconnect())}function Nz(e,t){let n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,ef.useMemo)(()=>"function"==typeof e?e():e,n)}function NF(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;let o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<o.length;a++){let l=o[a];if(!s(l))return!1;let u=e[l],c=t[l];if(!1===(i=n?n.call(r,u,c,l):void 0)||void 0===i&&u!==c)return!1}return!0}function NB(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var ef=(el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"));function NU(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{let e=(e=null,t=null)=>{var n,i;let o;return(0,ef.isValidElement)(e)?(!function(e){if("string"==typeof e.type)return;let t=e.type.displayName||e.type.name||"the component";throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(e),n=e,i=t?e=>r(e,t):r,(R4("string"!=typeof(o=n.ref),"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),o)?(0,ef.cloneElement)(n,{ref:e=>{N$(o,e),N$(i,e)}}):(0,ef.cloneElement)(n,{ref:i})):(r(e,t),e)};t[n]=()=>e}}),t}function N$(e,t){"function"==typeof e?e(t):e.current=t}class NH{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e),t}reconnectDragPreview(e=!1){let t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!NF(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!NF(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=NU({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,NB(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,NB(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}function NW(){let{dragDropManager:e}=(0,ef.useContext)(RQ);return R4(null!=e,"Expected drag drop context"),e}var ef=(el("8NFma"),el("8NFma"));let NV=!1,Nq=!1;class NK{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){R4(!NV,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return NV=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{NV=!1}}isDragging(){if(!this.sourceId)return!1;R4(!Nq,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Nq=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Nq=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}
106getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var ef=el("8NFma");class NZ{beginDrag(){let e=this.spec,t=this.monitor,n=null;return null!=(n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{})?n:null}canDrag(){let e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){let n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function NG(e,t){var n,r;let i,o,a,s,l,u,c,d=Nz(e,t);R4(!d.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");let f=(i=NW(),(0,ef.useMemo)(()=>new NK(i),[i])),h=(n=d.options,r=d.previewOptions,o=NW(),NM(()=>(a.dragSourceOptions=n||null,a.reconnect(),()=>a.disconnectDragSource()),[a=(0,ef.useMemo)(()=>new NH(o.getBackend()),[o]),n]),NM(()=>(a.dragPreviewOptions=r||null,a.reconnect(),()=>a.disconnectDragPreview()),[a,r]),a);return s=NW(),l=(0,ef.useMemo)(()=>new NZ(d,f,h),[f,h]),(0,ef.useEffect)(()=>{l.spec=d},[d]),NM(function(){if(null!=c){let e,t,[n,r]=[t=(e=s.getRegistry()).addSource(c,u),()=>e.removeSource(t)];return f.receiveHandlerId(n),h.receiveHandlerId(n),r}},[s,f,h,u=l,c=(0,ef.useMemo)(()=>{let e=d.type;return R4(null!=e,"spec.type must be defined"),e},[d])]),[NL(d.collect,f,h),(0,ef.useMemo)(()=>h.hooks.dragSource(),[h]),(0,ef.useMemo)(()=>h.hooks.dragPreview(),[h])]}var ef=(el("8NFma"),el("8NFma"),el("8NFma"));class NY{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!NF(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=NU({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,NB(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var ef=el("8NFma");let NX=!1;class NJ{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;R4(!NX,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return NX=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{NX=!1}
106}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var ef=(el("8NFma"),el("8NFma"));class NQ{canDrop(){let e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function N0(e,t){var n;let r,i,o,a,s,l,u,c=Nz(e,t),d=(r=NW(),(0,ef.useMemo)(()=>new NJ(r),[r])),f=(n=c.options,i=NW(),o=(0,ef.useMemo)(()=>new NY(i.getBackend()),[i]),NM(()=>(o.dropTargetOptions=n||null,o.reconnect(),()=>o.disconnectDropTarget()),[n]),o);return a=NW(),s=(0,ef.useMemo)(()=>new NQ(c,d),[d]),(0,ef.useEffect)(()=>{s.spec=c},[c]),NM(function(){let e,t,[n,r]=[t=(e=a.getRegistry()).addTarget(u,l),()=>e.removeTarget(t)];return d.receiveHandlerId(n),f.receiveHandlerId(n),r},[a,d,l=s,f,(u=function(e){let{accept:t}=e;return(0,ef.useMemo)(()=>(R4(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(c)).map(e=>e.toString()).join("|")]),[NL(c.collect,d,f),(0,ef.useMemo)(()=>f.hooks.dropTarget(),[f])]}var ef=(el("8NFma"),el("8NFma"));function N1(e){let t=NW().getMonitor(),[n,r]=ND(t,e);return(0,ef.useEffect)(()=>t.subscribeToOffsetChange(r)),(0,ef.useEffect)(()=>t.subscribeToStateChange(r)),n}var N2=(0,ef.createContext)(void 0),kT=el("2pmb0"),N3=(0,ef.createContext)(null),N4=({portal:e,...t})=>{let[n,r]=(0,ef.useState)(null);return(0,ec.jsxs)(N3.Provider,{value:e??n,children:[(0,ec.jsx)(NA,{backend:RG,...t}),e?null:(0,ec.jsx)("div",{ref:r})]})};function N5(e){let t=null;return()=>(null==t&&(t=e()),t)}class N6{enter(e){var t,n;let r,i,o,a=this.entered.length,s=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=(t=this.entered.filter(s),n=[e],r=new Set,i=e=>
106r.add(e),t.forEach(i),n.forEach(i),o=[],r.forEach(e=>o.push(e)),o),0===a&&this.entered.length>0}leave(e){var t;let n=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),t.filter(t=>t!==e)),n>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class N8{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}var N9={};M(N9,"FILE",()=>N7),M(N9,"URL",()=>Me),M(N9,"TEXT",()=>Mt),M(N9,"HTML",()=>Mn);let N7="__NATIVE_FILE__",Me="__NATIVE_URL__",Mt="__NATIVE_TEXT__",Mn="__NATIVE_HTML__";function Mr(e,t,n){let r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}let Mi={[N7]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Mn]:{exposeProperties:{html:(e,t)=>
106Mr(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Me]:{exposeProperties:{urls:(e,t)=>Mr(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Mt]:{exposeProperties:{text:(e,t)=>Mr(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Mo(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys(Mi).filter(e=>{let n=Mi[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}let Ma=N5(()=>/firefox/i.test(navigator.userAgent)),Ms=N5(()=>!!window.safari);class Ml{interpolate(e){let t,{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this,s=n.length-1;if(e===n[s])return r[s];let l=0,u=a.length-1;for(;l<=u;){let i=n[t=Math.floor(.5*(l+u))];if(i<e)l=t+1;else{if(!(i>e))return r[t];u=t-1}}let c=e-n[s=Math.max(0,u)],d=c*c;return r[s]+i[s]*c+o[s]*d+a[s]*c*d}constructor(e,t){let n,r,i;const{length:o}=e,a=[];for(let e=0;e<o;e++)a.push(e);a.sort((t,n)=>e[t]<e[n]?-1:1);const s=[],l=[],u=[];for(let i=0;i<o-1;i++)n=e[i+1]-e[i],r=t[i+1]-t[i],l.push(n),s.push(r),u.push(r/n);const c=[u[0]];for(let e=0;e<l.length-1;e++){const t=u[e],r=u[e+1];if(t*r<=0)c.push(0);else{n=l[e];const i=l[e+1],o=n+i;c.push(3*o/((o+i)/t+(o+n)/r))}}c.push(u[u.length-1]);const d=[],f=[];for(let e=0;e<c.length-1;e++){i=u[e];const t=c[e],n=1/l[e],r=t+c[e+1]-i-i;d.push((i-t-r)*n),f.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=d,this.c3s=f}}function Mu(e){let t=1===e.nodeType?e:e.parentElement;if(!t)return null;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Mc(e){return{x:e.clientX,y:e.clientY}}class Md{get window(){return this.globalContext?this.globalContext:"u">typeof window?window:void 0}get document(){var e;return(null==(e=this.globalContext)?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null==(e=this.optionsArgs)?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}class Mh{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null==(e=this.dragStartSourceIds)?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null==(t=this.dragOverTargetIds)?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){let e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){let e=this.rootElement;if(void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;null==(t=this.window)||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);let r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){let n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){let e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Mf({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();
106return Mf({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(N9).some(t=>N9[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){let n=Mi[e];if(!n)throw Error(`native type ${e} has no configuration`);let r=new N8(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null==(e=this.rootElement)?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;null==(e=this.window)||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&Mu(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>!!(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{let e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"u">typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"u">typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;let{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;let n=Mc(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});let{dataTransfer:r}=e,i=Mo(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){let e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){let{anchorX:e,anchorY:o,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,i){var o;let a,s,l,u="IMG"===t.nodeName&&(Ma()||!(null==(o=document.documentElement)?void 0:o.contains(t))),c=Mu(u?e:t),d={x:n.x-c.x,y:n.y-c.y},{offsetWidth:f,offsetHeight:h}=e,{anchorX:p,anchorY:m}=r,{dragPreviewWidth:g,dragPreviewHeight:y}=(a=u?t.width:f,s=u?t.height:h,Ms()&&u&&(s/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:s}),{offsetX:v,offsetY:b}=i;return{x:0===v||v?v:new Ml([0,.5,1],[d.x,d.x/f*g,d.x+g-f]).interpolate(p),y:0===b||b?b:(l=new Ml([0,.5,1],[d.y,d.y/h
106*y,d.y+y-h]).interpolate(m),Ms()&&u&&(l+=(window.devicePixelRatio-1)*y),l)}}(t,i,n,{anchorX:e,anchorY:o},{offsetX:a,offsetY:s});r.setDragImage(i,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);let{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var t;null==(t=this.currentNativeSource)||t.loadDataTransfer(e.dataTransfer)}if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;let{dataTransfer:n}=e,r=Mo(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{let{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],!this.monitor.isDragging()||(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Mc(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var t;null==(t=this.currentNativeSource)||t.loadDataTransfer(e.dataTransfer)}},this.handleTopDragOver=e=>{let{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none");return}this.altKeyPressed=e.altKey,this.lastClientOffset=Mc(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var t;e.preventDefault(),null==(t=this.currentNativeSource)||t.loadDataTransfer(e.dataTransfer)}else Mo(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Mc(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{let t=e.target;"function"!=typeof t.dragDrop||"INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop())},this.options=new Md(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new N6(this.isNodeInDocument)}}(F=ee||(ee={})).mouse="mouse",F.touch="touch",F.keyboard="keyboard";class Mp{get delay(){var e;return null!=(e=this.args.delay)?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return null!=(e=this.args.ignoreContextMenu)&&e}get enableHoverOutsideTarget(){var e;return null!=(e=this.args.enableHoverOutsideTarget)&&e}get enableKeyboardEvents(){var e;return null!=(e=this.args.enableKeyboardEvents)&&e}get enableMouseEvents(){var e;return null!=(e=this.args.enableMouseEvents)&&e}get enableTouchEvents(){var e;return null==(e=this.args.enableTouchEvents)||e}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,t,n,r;return null!=(r=null!=(n=null==(e=this.args)?void 0:e.delayTouchStart)?n:null==(t=this.args)?void 0:t.delay)?r:0}get delayMouseStart(){var e,t,n,r;return null!=(r=null!=(n=null==(e=this.args)?void 0:e.delayMouseStart)?n:null==(t=this.args)?void 0:t.delay)?r:0}get window(){return this.context&&this.context.window?this.context.window:"u">typeof window?window:void 0}get document(){var e;return(null==(e=this.context)?void 0:e.document)?this.context.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null==(e=this.args)?void 0:e.rootElement)||this.document}constructor(e,t){this.args=e,this.context=t}}function Mm(e){return void 0===e.button||0===e.button}function Mg(e){return!!e.targetTouches}function My(e,t){return Mg(e)?1===e.targetTouches.length?My(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?My(e.touches[0]):void 0:{x:e.clientX,y:e.clientY}}let Mv=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get:()=>(e=!0,!0)}))}catch(e){}return e}
106)(),Mb={[ee.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[ee.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[ee.keyboard]:{keydown:"keydown"}};class Mw{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null==(e=this.dragOverTargetIds)?void 0:e.length)||0}}get document(){return this.options.document}setup(){let e=this.options.rootElement;e&&(R4(!Mw.isSetUp,"Cannot have two Touch backends at the same time."),Mw.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){let e=this.options.rootElement;e&&(Mw.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,t,n,r=!1){let i=Mv?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){let o=Mb[r][t];o&&e.addEventListener(o,n,i)})}removeEventListener(e,t,n,r=!1){let i=Mv?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){let o=Mb[r][t];o&&e.removeEventListener(o,n,i)})}connectDragSource(e,t){let n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(t,"start",n)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,t){let n=this.options.rootElement;if(!this.document||!n)return()=>{};let r=r=>{let i;if(!this.document||!n||!this.monitor.isDragging())return;switch(r.type){case Mb.mouse.move:i={x:r.clientX,y:r.clientY};break;case Mb.touch.move:var o,a;i={x:(null==(o=r.touches[0])?void 0:o.clientX)||0,y:(null==(a=r.touches[0])?void 0:a.clientY)||0}}let s=null!=i?this.document.elementFromPoint(i.x,i.y):void 0,l=s&&t.contains(s);if(s===t||l)return this.handleMove(r,e)};return this.addEventListener(this.document.body,"move",r),this.targetNodes.set(e,t),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",r))}}getTopMoveStartHandler(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}
106constructor(e,t,n){this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&function(e){let t=1===e.nodeType?e:e.parentElement;if(!t)return;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}(t)},this.handleTopMoveStartCapture=e=>{Mm(e)&&(this.moveStartSourceIds=[])},this.handleMoveStart=e=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=e=>{if(!Mm(e))return;let t=My(e);t&&(Mg(e)&&(this.lastTargetTouchFallback=e.targetTouches[0]),this._mouseClientOffset=t),this.waitingForDelay=!1},this.handleTopMoveStartDelay=e=>{if(!Mm(e))return;let t=e.type===Mb.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,e),t),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(e,t)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(t)},this.handleTopMove=e=>{var t,n;if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;let{moveStartSourceIds:r,dragOverTargetIds:i}=this,o=this.options.enableHoverOutsideTarget,a=My(e,this.lastTargetTouchFallback);if(!a)return;if(this._isScrolling||!this.monitor.isDragging()&&function(e,t,n,r,i){if(!i)return!1;let o=180*Math.atan2(r-t,n-e)/Math.PI+180;for(let e=0;e<i.length;++e){let t=i[e];if(t&&(null==t.start||o>=t.start)&&(null==t.end||o<=t.end))return!0}return!1}
106(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,a.x,a.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&r&&(t=this._mouseClientOffset.x||0,n=this._mouseClientOffset.y||0,Math.sqrt(Math.pow(Math.abs(a.x-t),2)+Math.pow(Math.abs(a.y-n),2))>(this.options.touchSlop?this.options.touchSlop:0))&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(r,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;let s=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(s),this.actions.publishDragSource(),e.cancelable&&e.preventDefault();let l=(i||[]).map(e=>this.targetNodes.get(e)).filter(e=>!!e),u=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(a.x,a.y,l):this.document.elementsFromPoint(a.x,a.y),c=[];for(let e in u){if(!u.hasOwnProperty(e))continue;let t=u[e];for(null!=t&&c.push(t);t;)(t=t.parentElement)&&-1===c.indexOf(t)&&c.push(t)}let d=c.filter(e=>l.indexOf(e)>-1).map(e=>this._getDropTargetId(e)).filter(e=>!!e).filter((e,t,n)=>n.indexOf(e)===t);if(o)for(let e in this.targetNodes){let t=this.targetNodes.get(e);if(s&&t&&t.contains(s)&&-1===d.indexOf(e)){d.unshift(e);break}}d.reverse(),this.actions.hover(d,{clientOffset:a})},this._getDropTargetId=e=>{let t=this.targetNodes.keys(),n=t.next();for(;!1===n.done;){let r=n.value;if(e===this.targetNodes.get(r))return r;n=t.next()}},this.handleTopMoveEndCapture=e=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,void 0===e.buttons||(1&e.buttons)==0){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}e.cancelable&&e.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=e=>{"Escape"===e.key&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new Mp(n,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(ee.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(ee.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(ee.keyboard)}}var Mx={backends:[{id:"html5",backend:function(e,t,n){return new Mh(e,t,n)},transition:RJ},{id:"touch",backend:function(e,t={},n={}){return new Mw(e,t,n)},options:{enableMouseEvents:!0},preview:!0,transition:RX}]},ef=el("8NFma"),M_={};M_=D("crc3R");var Mk={};Mk=D("amEMk");var MS={};MS=D("88f4t");var ME={};function MO(){let[e,t]=(0,ef.useState)(!1);return"coastmix"!==dk?null:(0,ec.jsxs)("div",{className:"boston-site-banner-container",children:[(0,ec.jsx)("input",{type:"checkbox",id:"boston-site-banner",className:"boston-site-banner-checkbox",onChange:function(e){t(e.target.checked)},checked:e}),(0,ec.jsx)("label",{htmlFor:"boston-site-banner",className:"boston-site-banner",children:(0,ec.jsxs)("div",{children:[(0,ec.jsx)("img",{className:"boston-site-banner-logo",src:ei(M_),alt:"Boston.gov",draggable:!1}),(0,ec.jsxs)("span",{className:"boston-site-banner-text",children:["An official website of the City of Boston."," ",(0,ec.jsxs)("span",{className:"boston-site-banner-button",children:[(0,ec.jsx)("span",{children:"Here's how you know"}),(0,ec.jsx)("img",{src:ei(Mk),draggable:!1,alt:""})]})]})]})}),(0,ec.jsx)("div",{className:"boston-site-banner-expansion",children:(0,ec.jsxs)("div",{children:[(0,ec.jsxs)("div",{className:"boston-site-banner-expansion-item",children:[(0,ec.jsx)("img",{src:ei(MS),className:"boston-site-banner-city-hall",draggable:!1,alt:""}),(0,ec.jsxs)("div",{className:"boston-site-banner-expansion-item-content",children:[(0,ec.jsx)("p",{children:"Official websites use .boston.gov"}),(0,ec.jsx)("p",{children:"A .boston.gov website belongs to an official government organization in the City of Boston."})]})]}),(0,ec.jsxs)("div",{className:"boston-site-banner-expansion-item",children:[(0,ec.jsx)("img",{src:ei(ME),className:"boston-site-banner-lock",draggable:!1,alt:""}),(0,ec.jsxs)("div",{className:"boston-site-banner-expansion-item-content",children:[(0,ec.jsx)("p",{children:"Secure .gov websites use HTTPS"}),(0,ec.jsxs)("p",{children:["A lock"," ",(0,ec.jsxs)("span",{"aria-hidden":"true",children:["(",(0,ec.jsx)("img",{src:ei(ME),className:"boston-site-banner-mini-lock",draggable:!1,alt:"Lock icon"}),")"]})," ","or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites."]})]})]})]})})]})}function Mj(){return(0,ec.jsx)("span",{className:"beta-tag",children:"BETA"})}ME=D("9Kwjx");var ef=(el("8NFma"),el("8NFma")),MT=Object.defineProperty;let MC=MV(),MI=e=>MU(e,MC),MP=MV();MI.write=e=>MU(e,MP);let MA=MV();MI.onStart=e=>MU(e,MA);let MR=MV();MI.onFrame=e=>MU(e,MR);let MN=MV();MI.onFinish=e=>MU(e,MN);let MM=[];MI.setTimeout=(e,t)=>{let n=MI.now()+t,r=()=>{let e=MM.findIndex(e=>e.cancel==r);~e&&MM.splice(e,1),MF-=!!~e},i={time:n,handler:e,cancel:r};return MM.splice(MD(n),0,i),MF+=1,M$(),i};let MD=e=>~(~MM.findIndex(t=>t.time>e)||~MM.length);MI.cancel=e=>{MA.delete(e),MR.delete(e),MN.delete(e),MC.delete(e),MP.delete(e)},MI.sync=e=>{MB=!0,MI.batchedUpdates(e),MB=!1},MI.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,MI.onStart(n)}return r.handler=e,r.cancel=()=>{MA.delete(n),t=null},r};let ML="u">typeof window?window.requestAnimationFrame:()=>{};MI.use=e=>ML=e,MI.now="u">typeof performance?()=>performance.now():Date.now,MI.batchedUpdates=e=>e(),MI.catch=console.error,MI.frameLoop="always",MI.advance=()=>{"demand"!==MI.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):MW()};let Mz=-1,MF=0,MB=!1;function MU(e,t){MB?(t.delete(e),e(0)):(t.add(e),M$())}function M$(){Mz<0&&(Mz=0,"demand"!==MI.frameLoop&&ML(MH))}function MH(){~Mz&&(ML(MH),MI.batchedUpdates(MW))}function MW(){let e=Mz,t=MD(Mz=MI.now());(t&&(Mq(MM.splice(0,t),e=>e.handler()),MF-=t),MF)?(MA.flush(),MC.flush(e?Math.min(64,Mz-e):16.667),MR.flush(),MP.flush(),MN.flush()):Mz=-1}function MV(){let e=new Set,t=e;return{add(n){MF+=+!(t!=e||e.has(n)),e.add(n)},delete:n=>(MF-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,MF-=t.size,Mq(t,t=>t(n)&&e.add(t)),MF+=e.size,t=e)}}}
106function Mq(e,t){e.forEach(e=>{try{t(e)}catch(e){MI.catch(e)}})}var ef=el("8NFma");function MK(){}let MZ={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function MG(e,t){if(MZ.arr(e)){if(!MZ.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}function MY(e,t,n){if(MZ.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}let MX=e=>MZ.und(e)?[]:MZ.arr(e)?e:[e];function MJ(e,t){if(e.size){let n=Array.from(e);e.clear(),n.forEach(t)}}let MQ=(e,...t)=>MJ(e,e=>e(...t)),M0=()=>"u"<typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);var M1=((e,t)=>{let n={};for(var r in e)MT(n,r,{get:e[r],enumerable:!0});return t||MT(n,Symbol.toStringTag,{value:"Module"}),n})({assign:()=>M5,colors:()=>M2,createStringInterpolator:()=>x,skipAnimation:()=>M3,to:()=>_,willAdvance:()=>M4});let M2=null,M3=!1,M4=MK,M5=e=>{e.to&&(_=e.to),e.now&&(MI.now=e.now),void 0!==e.colors&&(M2=e.colors),null!=e.skipAnimation&&(M3=e.skipAnimation),e.createStringInterpolator&&(x=e.createStringInterpolator),e.requestAnimationFrame&&MI.use(e.requestAnimationFrame),e.batchedUpdates&&(MI.batchedUpdates=e.batchedUpdates),e.willAdvance&&(M4=e.willAdvance),e.frameLoop&&(MI.frameLoop=e.frameLoop)},M6=new Set,M8=[],M9=[],M7=0,De={get idle(){return!M6.size&&!M8.length},start(e){M7>e.priority?(M6.add(e),MI.onStart(Dt)):(Dn(e),MI(Di))},advance:Di,sort(e){if(M7)MI.onFrame(()=>De.sort(e));else{let t=M8.indexOf(e);~t&&(M8.splice(t,1),Dr(e))}},clear(){M8=[],M6.clear()}};function Dt(){M6.forEach(Dn),M6.clear(),MI(Di)}function Dn(e){M8.includes(e)||Dr(e)}function Dr(e){var t,n;let r;M8.splice((t=M8,n=t=>t.priority>e.priority,(r=t.findIndex(n))<0?t.length:r),0,e)}function Di(e){let t=M9;for(let n=0;n<M8.length;n++){let r=M8[n];M7=r.priority,!r.idle&&(M4(r),r.advance(e),r.idle||t.push(r))}return M7=0,(M9=M8).length=0,(M8=t).length>0}let Do="[-+]?\\d*\\.?\\d+",Da="[-+]?\\d*\\.?\\d+%";function Ds(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let Dl=RegExp("rgb"+Ds(Do,Do,Do)),Du=RegExp("rgba"+Ds(Do,Do,Do,Do)),Dc=RegExp("hsl"+Ds(Do,Da,Da)),Dd=RegExp("hsla"+Ds(Do,Da,Da,Do)),Df=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Dh=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Dp=/^#([0-9a-fA-F]{6})$/,Dm=/^#([0-9a-fA-F]{8})$/;function Dg(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Dy(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*Dg(i,r,e+1/3))<<24|Math.round(255*Dg(i,r,e))<<16|Math.round(255*Dg(i,r,e-1/3))<<8}function Dv(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function Db(e){return(parseFloat(e)%360+360)%360/360}function Dw(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Dx(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function D_(e){let t,n="number"==typeof e?e>>>0===e&&e>=0&&e<=0xffffffff?e:null:(t=Dp.exec(e))?parseInt(t[1]+"ff",16)>>>0:M2&&void 0!==M2[e]?M2[e]:(t=Dl.exec(e))?(Dv(t[1])<<24|Dv(t[2])<<16|Dv(t[3])<<8|255)>>>0:(t=Du.exec(e))?(Dv(t[1])<<24|Dv(t[2])<<16|Dv(t[3])<<8|Dw(t[4]))>>>0:(t=Df.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Dm.exec(e))?parseInt(t[1],16)>>>0:(t=Dh.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Dc.exec(e))?(255|Dy(Db(t[1]),Dx(t[2]),Dx(t[3])))>>>0:(t=Dd.exec(e))?(Dy(Db(t[1]),Dx(t[2]),Dx(t[3]))|Dw(t[4]))>>>0:null;return null===n?e:(n=n||0,`rgba(${(0xff000000&n)>>>24}, ${(0xff0000&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`)}let Dk=(e,t,n)=>{if(MZ.fun(e))return e;if(MZ.arr(e))return Dk({range:e,output:t,extrapolate:n});if(MZ.str(e.output[0]))return x(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(u<t)if("identity"===a)return u;else"clamp"===a&&(u=t);if(u>n)if("identity"===s)return u;else"clamp"===s&&(u=n);return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}
106(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},DS=Symbol.for("FluidValue.get"),DE=Symbol.for("FluidValue.observers"),DO=e=>!!(e&&e[DS]),Dj=e=>e&&e[DS]?e[DS]():e,DT=e=>e[DE]||null;function DC(e,t){let n=e[DE];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var DI=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");DP(this,e)}};let DP=(e,t)=>DN(e,DS,t);function DA(e,t){if(e[DS]){let n=e[DE];n||DN(e,DE,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function DR(e,t){let n=e[DE];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[DE]=null,e.observerRemoved&&e.observerRemoved(r,t)}}let DN=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),DM=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,DD=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,DL=RegExp(`(${DM.source})(%|[a-z]+)`,"i"),Dz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,DF=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,DB=e=>{let[t,n]=DU(e);if(!t||M0())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&DF.test(n))return DB(n);else if(n)return n;return e},DU=e=>{let t=DF.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},D$=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,DH=e=>{k||(k=M2?RegExp(`(${Object.keys(M2).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>Dj(e).replace(DF,DB).replace(DD,D_).replace(k,D_)),n=t.map(e=>e.match(DM).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>Dk({...e,output:t})),i=e.range||[0,1],o=t[0].match(DM).map((e,n)=>{let r=t.map(e=>{let t=e.match(DM)[n],r=t.indexOf(".");return -1===r?0:t.length-r-1});return r.every(e=>e===r[0])&&r[0]>0?r[0]:null});return e=>{let n=i.indexOf(e);if(-1!==n)return t[n];let a=!DL.test(t[0])&&t.find(e=>DL.test(e))?.replace(DM,""),s=0;return t[0].replace(DM,()=>{let t=s++,n=r[t](e),i=o[t];return`${null!=i?n.toFixed(i):n}${a||""}`}).replace(Dz,D$)}},DW="react-spring: ",DV=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${DW}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},Dq=DV(console.warn),DK=DV(console.warn);function DZ(e){return MZ.str(e)&&("#"==e[0]||/\d/.test(e)||!M0()&&DF.test(e)||e in(M2||{}))}let DG=M0()?ef.useEffect:ef.useLayoutEffect;function DY(){let e,t=(0,ef.useState)()[1],n=(e=(0,ef.useRef)(!1),DG(()=>(e.current=!0,()=>{e.current=!1}),[]),e);return()=>{n.current&&t(Math.random())}}let DX=e=>(0,ef.useEffect)(e,DJ),DJ=[];function DQ(e){let t=(0,ef.useRef)(void 0);return(0,ef.useEffect)(()=>{t.current=e}),t.current}var ef=(el("8NFma"),el("8NFma"));let D0=Symbol.for("Animated:node"),D1=e=>e&&e[D0],D2=(e,t)=>Object.defineProperty(e,D0,{value:t,writable:!0,configurable:!0}),D3=e=>e&&e[D0]&&e[D0].getPayload();var D4=class{constructor(){D2(this,this)}getPayload(){return this.payload||[]}},D5=class e extends D4{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,MZ.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return MZ.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,MZ.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},D6=class e extends D5{constructor(e){super(0),this._string=null,this._toString=Dk({output:[e,e]})}static create(t){return new e(t)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(MZ.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Dk({output:[this.getValue(),e]})),this._value=0,super.reset()}};let D8={dependencies:null};var D9=class extends D4{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return MY(this.source,(n,r)=>
106{n&&n[D0]===n?t[r]=n.getValue(e):DO(n)?t[r]=Dj(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){let e;this.payload&&(e=this.payload,e.forEach(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return MY(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){let t;D8.dependencies&&DO(e)&&D8.dependencies.add(e);let n=D3(e);n&&(t=e=>this.add(e),n.forEach(t))}},D7=class e extends D9{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(Le)),!0)}};function Le(e){return(DZ(e)?D6:D5).create(e)}function Lt(e){let t=D1(e);return t?t.constructor:MZ.arr(e)?D7:DZ(e)?D6:D5}let Ln=(e,t)=>{let n=!MZ.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ef.forwardRef)((r,i)=>{var o,a;let s,l=(0,ef.useRef)(null),u=n&&(0,ef.useCallback)(e=>{var t,n;t=i,n=e,t&&(MZ.fun(t)?t(n):t.current=n),l.current=n},[i]),[c,d]=(o=r,a=t,D8.dependencies=s=new Set,o.style&&(o={...o,style:a.createAnimatedStyle(o.style)}),o=new D9(o),D8.dependencies=null,[o,s]),f=DY(),h=()=>{let e=l.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))&&f()},p=new Lr(h,d),m=(0,ef.useRef)(void 0);DG(()=>{let e;return m.current=p,e=e=>DA(e,p),d.forEach(e),()=>{if(m.current){let e;e=m.current.deps,e.forEach(e=>DR(e,m.current)),MI.cancel(m.current.update)}}}),(0,ef.useEffect)(h,[]),DX(()=>()=>{let e,t=m.current;e=t.deps,e.forEach(e=>DR(e,t))});let g=t.getComponentProps(c.getValue());return ef.createElement(e,{...g,ref:u})})};var Lr=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&MI.write(this.update)}};let Li=Symbol.for("AnimatedComponent"),Lo=e=>MZ.str(e)?e:e&&MZ.str(e.displayName)?e.displayName:MZ.fun(e)&&e.name||null;function La(e,...t){return MZ.fun(e)?e(...t):e}let Ls=(e,t)=>!0===e||!!(t&&e&&(MZ.fun(e)?e(t):MX(e).includes(t))),Ll=(e,t)=>MZ.obj(e)?t&&e[t]:e,Lu=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Lc=e=>e,Ld=(e,t=Lc)=>{let n=Lf;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);MZ.und(n)||(r[i]=n)}return r},Lf=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Lh={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Lp(e){let t=function(e){let t={},n=0;if(MY(e,(e,r)=>{!Lh[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return MY(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function Lm(e){let t=Dj(e);return MZ.arr(t)?t.map(Lm):DZ(t)?M1.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function Lg(e){for(let t in e)return!0;return!1}function Ly(e){return MZ.fun(e)||MZ.arr(e)&&MZ.obj(e[0])}function Lv(e,t){e.ref?.delete(e),t?.delete(e)}function Lb(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}let Lw={tension:180,friction:12},Lx={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1};var L_=class{constructor(){this.velocity=0,Object.assign(this,Lx)}};function Lk(e,t){if(MZ.und(t.decay)){let n=!MZ.und(t.tension)||!MZ.und(t.friction);!n&&MZ.und(t.frequency)&&MZ.und(t.damping)&&MZ.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}let LS=[];var LE=class{constructor(){this.changed=!1,this.values=LS,this.toValues=null,this.fromValues=LS,this.config=new L_,this.immediate=!1}};function LO(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=Ls(n.cancel??r?.cancel,t);if(c)h();else{MZ.und(n.pause)||(i.paused=Ls(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||Ls(e,t)),l=La(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-MI.now()}function f(){l>0&&!M1.skipAnimation?(i.delayed=!0,u=MI.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}let Lj=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?LI(e.get()):t.every(e=>e.noop)?LT(e.get()):LC(e.get(),t.every(e=>e.finished)),LT=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),LC=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),LI=e=>({value:e,cancelled:!0,finished:!1});function LP(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=Ld(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>
106(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&LI(r)||i!==n.asyncId&&LC(r,!1);if(t)throw e.result=t,c(e),e},m=0,g=(e,t)=>{let o=new LR,a=new LN;return(async()=>{p(o);let s=MZ.obj(e)?{...e}:{...t,to:e};if(s.parentId=i,MY(f,(e,t)=>{MZ.und(s[t])&&(s[t]=e)}),M1.skipAnimation){if(++m>1024)throw LA(n),a.result=LC(r,!1),c(a),a;return s.immediate=!0,await r.start(s)}let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};try{let t;t=MZ.arr(e)?(async e=>{for(let t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=LC(r.get(),!0,!1)}catch(e){if(e instanceof LR)d=e.result;else if(e instanceof LN)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return MZ.fun(a)&&MI.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function LA(e,t){MJ(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var LR=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},LN=class extends Error{constructor(){super("SkipAnimationSignal")}};let LM=1;var LD=class extends DI{constructor(...e){super(...e),this.id=LM++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=D1(this);return e&&e.getValue()}to(...e){return M1.to(this,e)}interpolate(...e){return Dq(`${DW}The "interpolate" function is deprecated in v9 (use "to" instead)`),M1.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){DC(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||De.sort(this),DC(this,{type:"priority",parent:this,priority:e})}};let LL=Symbol.for("SpringPhase"),Lz=e=>(1&e[LL])>0,LF=e=>(2&e[LL])>0,LB=e=>(4&e[LL])>0,LU=(e,t)=>t?e[LL]|=3:e[LL]&=-3,L$=(e,t)=>t?e[LL]|=4:e[LL]&=-5;var LH=class extends LD{constructor(e,t){if(super(),this.animation=new LE,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!MZ.und(e)||!MZ.und(t)){const n=MZ.obj(e)?{...e}:{...t,from:e};MZ.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(LF(this)||this._state.asyncTo)||LB(this)}get goal(){return Dj(this.animation.to)}get velocity(){let e=D1(this);return e instanceof D5?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return Lz(this)}get isAnimating(){return LF(this)}get isPaused(){return LB(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=D3(r.to);!a&&DO(r.to)&&(i=MX(Dj(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D6?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=MZ.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(MZ.und(o.duration))if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!MZ.und(r),h=i==u?s.v0>0:i<u,p=Math.ceil(e/1);for(let e=0;e<p&&!(!(Math.abs(t)>n)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*t)/o.mass;t+=+e,d+=+t}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),s.durationProgress=r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}
106a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=D1(this),l=s.getValue();if(t){let e=Dj(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return MI.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(LF(this)){let{to:e,config:t}=this.animation;MI.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return MZ.und(e)?(n=this.queue||[],this.queue=[]):n=[MZ.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>Lj(this,e))}stop(e){let{to:t}=this.animation;return MZ.und(t)||this._focus(this.get()),LA(this._state,e&&this._lastCallId),MI.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=MZ.obj(n)?n[t]:n)||Ly(n))&&(n=void 0),null==(r=MZ.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return!Lz(this)&&(e.reverse&&([n,r]=[r,n]),r=Dj(r),MZ.und(r)?D1(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Ld(e,(e,t)=>/^on/.test(t)?Ll(e,n):e)),LG(this,e,"onProps"),LY(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return LO(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{LB(this)||(L$(this,!0),MQ(o.pauseQueue),LY(this,"onPause",LC(this,LW(this,this.animation.to)),this))},resume:()=>{LB(this)&&(L$(this,!1),LF(this)&&this._resume(),MQ(o.resumeQueue),LY(this,"onResume",LC(this,LW(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=LV(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(LI(this));let r=!MZ.und(e.to),i=!MZ.und(e.from);if(r||i)if(!(t.callId>this._lastToId))return n(LI(this));else this._lastToId=t.callId;let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||MZ.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!MG(d,u);f&&(s.from=d),d=Dj(d);let h=!MG(c,l);h&&this._focus(c);let p=Ly(t.to),{config:m}=s,{decay:g,velocity:y}=m;(r||i)&&!m.decay&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(Lk(n={...n},t),t={...n,...t}),Lk(e,t),Object.assign(e,t),Lx)null==e[r]&&(e[r]=Lx[r]);let{frequency:r,damping:i}=e,{mass:o}=e;MZ.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,La(t.config,o),t.config!==a.config?La(a.config,o):void 0);let v=D1(this);if(!v||MZ.und(c))return n(LC(this,!0));let b=MZ.und(t.reset)?i&&!t.default:!MZ.und(d)&&Ls(t.reset,o),w=b?d:this.get(),x=Lm(c),_=MZ.num(x)||MZ.arr(x)||DZ(x),k=!p&&(!_||Ls(a.immediate||t.immediate,o));if(h){let e=Lt(c);if(e!==v.constructor)if(k)v=this._set(x);else throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`)}let S=v.constructor,E=DO(c),O=!1;if(!E){let e=b||!Lz(this)&&f;(h||e)&&(E=!(O=MG(Lm(w),x))),(MG(s.immediate,k)||k)&&MG(m.decay,g)&&MG(m.velocity,y)||(E=!0)}if(O&&LF(this)&&(s.changed&&!b?E=!0:E||this._stop(l)),!p&&((E||DO(l))&&(s.values=v.getPayload(),s.toValues=DO(c)?null:S==D6?[1]:MX(x)),s.immediate!=k&&(s.immediate=k,k||b||this._set(l)),E)){let e,{onRest:r}=s;e=e=>LG(this,t,e),LZ.forEach(e);let i=LC(this,LW(this,l));MQ(this._pendingCalls,i),this._pendingCalls.add(n),s.changed&&MI.batchedUpdates(()=>{s.changed=!b,r?.(i,this),b?La(a.onRest,i):s.onStart?.(i,this)})}b&&this._set(w),p?n(LP(t.to,t,this._state,this)):E?this._start():LF(this)&&!h?this._pendingCalls.add(n):n(LT(w))}_focus(e){let t=this.animation;e!==t.to&&(DT(this)&&this._detach(),t.to=e,DT(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;DO(t)&&(DA(t,this),t instanceof LD&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;DO(e)&&DR(e,this)}_set(e,t=!0){let n=Dj(e);if(!MZ.und(n)){let e=D1(this);if(!e||!MG(n,e.getValue())){let r=Lt(n);e&&e.constructor==r?e.setValue(n):D2(this,r.create(n)),e&&MI.batchedUpdates(()=>{this._onChange(n,t)})}}return D1(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,LY(this,"onStart",LC(this,LW(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),La(this.animation.onChange,e,this)),La(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;D1(this).reset(Dj(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),!LF(this)&&(LU(this,!0),LB(this)||this._resume())}_resume(){M1.skipAnimation?this.finish():De.start(this)}_stop(e,t){if(LF(this)){let n;LU(this,!1);let r=this.animation;
106n=r.values,n.forEach(e=>{e.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),DC(this,{type:"idle",parent:this});let i=t?LI(this.get()):LC(this.get(),LW(this,e??r.to));MQ(this._pendingCalls,i),r.changed=!1,LY(this,"onRest",i,this)}}};function LW(e,t){let n=Lm(t);return MG(Lm(e.get()),n)}function LV(e,t=e.loop,n=e.to){let r=La(t);if(r){let i=!0!==r&&Lp(r),o=(i||e).reverse,a=!i||i.reset;return Lq({...e,loop:t,default:!1,pause:void 0,to:!o||Ly(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Lq(e){let{to:t,from:n}=e=Lp(e),r=new Set;return MZ.obj(t)&&LK(t,r),MZ.obj(n)&&LK(n,r),e.keys=r.size?Array.from(r):null,e}function LK(e,t){MY(e,(e,n)=>null!=e&&t.add(n))}let LZ=["onStart","onRest","onChange","onPause","onResume"];function LG(e,t,n){e.animation[n]=t[n]!==Lu(t,n)?Ll(t[n],e.key):void 0}function LY(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}let LX=["onStart","onChange","onRest"],LJ=1;var LQ=class{constructor(e,t){this.id=LJ++,this.springs={},this.queue=[],this._lastAsyncId=0,this._lastLoopId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];MZ.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Lq(e)),this}start(e){let{queue:t}=this;return(e?t=MX(e).map(Lq):this.queue=[],this._flush)?this._flush(this,t):(L6(this,t),L0(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n,r=this.springs;n=MX(t),n.forEach(t=>r[t].stop(!!e))}else LA(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(MZ.und(e))this.start({pause:!0});else{let t,n=this.springs;t=MX(e),t.forEach(e=>n[e].pause())}return this}resume(e){if(MZ.und(e))this.start({pause:!1});else{let t,n=this.springs;t=MX(e),t.forEach(e=>n[e].resume())}return this}each(e){MY(this.springs,e)}onLoopReset(e){let t=this._onLoopReset??(this._onLoopReset=new Set);return t.add(e),()=>{t.delete(e)}}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,MJ(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&MJ(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,MJ(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}MI.onFrame(this._onFrame)}};function L0(e,t){return Promise.all(t.map(t=>L1(e,t))).then(t=>Lj(e,t))}async function L1(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=MZ.obj(t.default)&&t.default;a&&(t.loop=!1);let c=!n&&!t.parentId&&"loop"in t?++e._lastLoopId:n?t.loopId:e._lastLoopId;!1===i&&(t.to=null),!1===o&&(t.from=null);let d=MZ.arr(i)||MZ.fun(i)?i:void 0;if(d)t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0);else LX.forEach(n=>{let r=t[n];if(MZ.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let f=e._state;!f.paused===t.pause?(f.paused=t.pause,MQ(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let h=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),p=!0===t.cancel||!0===Lu(t,"cancel");(d||p&&f.asyncId)&&h.push(LO(++e._lastAsyncId,{props:t,state:f,actions:{pause:MK,resume:MK,start(t,n){p?(LA(f,e._lastAsyncId),n(LI(e))):(t.onRest=s,n(LP(d,t,f,e)))}}})),f.paused&&await new Promise(e=>{f.resumeQueue.add(e)});let m=Lj(e,await Promise.all(h));if(a&&m.finished&&!(n&&m.noop)&&c===e._lastLoopId){let n=LV(t,a,i);
106if(n)return n.loopId=c,e._onLoopReset?.forEach(e=>e()),L6(e,[n]),L1(e,n,!0)}return l&&MI.batchedUpdates(()=>l(m,e,e.item)),m}function L2(e,t){let n,r,i={...e.springs};return t&&(n=MX(t),r=e=>{MZ.und(e.keys)&&(e=Lq(e)),MZ.obj(e.to)||(e={...e,to:void 0}),L5(i,e,e=>L4(e))},n.forEach(r)),L3(e,i),i}function L3(e,t){MY(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,DA(t,e))})}function L4(e,t){let n=new LH;return n.key=e,t&&DA(n,t),n}function L5(e,t,n){let r;t.keys&&(r=t.keys,r.forEach(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function L6(e,t){t.forEach(t=>{L5(e.springs,t,t=>L4(t,e))})}let L8=ef.createContext({pause:!1,immediate:!1}),L9=()=>{let e=[],t=function(t){let r;DK(`${DW}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let i=[];return r=(e,r)=>{if(MZ.und(t))i.push(e.start());else{let o=n(t,e,r);o&&i.push(e.start(o))}},e.forEach(r),i};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){let t;return t=e=>e.pause(...arguments),e.forEach(t),this},t.resume=function(){let t;return t=e=>e.resume(...arguments),e.forEach(t),this},t.set=function(t){e.forEach((e,n)=>{let r=MZ.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n,r=[];return n=(e,n)=>{if(MZ.und(t))r.push(e.start());else{let i=this._getProps(t,e,n);i&&r.push(e.start(i))}},e.forEach(n),r},t.stop=function(){let t;return t=e=>e.stop(...arguments),e.forEach(t),this},t.update=function(t){let n;return n=(e,n)=>e.update(this._getProps(t,e,n)),e.forEach(n),this};let n=function(e,t,n){return MZ.fun(e)?e(n,t):e};return t._getProps=n,t};function L7(e,t){let n=MZ.fun(e),[[r],i]=function(e,t,n){let r=MZ.fun(t)&&t;r&&!n&&(n=[]);let i=(0,ef.useMemo)(()=>r||3==arguments.length?L9():void 0,[]),o=(0,ef.useRef)(0),a=DY(),s=(0,ef.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=L2(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{L3(e,n),s.queue.push(()=>{r(L0(e,t))}),a()}):L0(e,t)}}),[]),l=(0,ef.useRef)([...s.ctrls]),u=(0,ef.useRef)([]),c=(0,ef.useRef)([]);c.current=[];let d=DQ(e)||0;function f(e,n){for(let i=e;i<n;i++){let e=l.current[i]||(l.current[i]=new LQ(null,s.flush)),n=r?r(i,e):t[i];n&&(u.current[i]=function(e){let t=Lq(e);return MZ.und(t.default)&&(t.default=Ld(t)),t}(n))}}(0,ef.useMemo)(()=>{let t;t=l.current.slice(e,d),t.forEach(e=>{Lv(e,i),e.stop(!0)}),l.current.length=e,f(d,e)},[e]),(0,ef.useMemo)(()=>{f(0,Math.min(d,e))},n);let h=l.current.map((e,t)=>L2(e,u.current[t])),p=(0,ef.useContext)(L8),m=p!==DQ(p)&&Lg(p);DG(()=>{let e;o.current++,s.ctrls=l.current;let{queue:t}=s;t.length&&(s.queue=[],t.forEach(e=>e()));let n=u.current.length>0?u.current:c.current;e=l.current,e.forEach((e,t)=>{i?.add(e),m&&e.start({default:p});let r=n[t];r&&(Lb(e,r.ref),e.ref?e.queue.push({...r,default:MZ.obj(r.default)?{...r.default}:r.default}):e.start(r))}),u.current.length>0&&(c.current=u.current),u.current=[]}),DX(()=>()=>{let e;e=s.ctrls,e.forEach(e=>e.stop(!0))});let g=h.map(e=>({...e}));return i?[g,i]:g}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function ze(e,t,n){let r,i,o=MZ.fun(t)&&t,{reset:a,sort:s,trail:l=0,reverse:u=!1,expires:c=!0,exitBeforeEnter:d=!1,onDestroyed:f,ref:h,config:p}=o?o():t,m=(0,ef.useMemo)(()=>o||3==arguments.length?L9():void 0,[]),g=MX(e),y=[],v=(0,ef.useRef)(null),b=a?null:v.current;DG(()=>{v.current=y}),DX(()=>{let e;return e=e=>{m?.add(e.ctrl),e.ctrl.ref=m},y.forEach(e),()=>{let e;e=v.current,e.forEach(e=>{e.expired&&clearTimeout(e.expirationId),Lv(e.ctrl,m),e.ctrl.stop(!0)})}});let w=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):zt++})}return MZ.und(n)?e:MZ.fun(n)?e.map(n):MX(n)}(g,o?o():t,b),x=a&&v.current||[];DG(()=>{let e;return e=({ctrl:e,item:t,key:n})=>{Lv(e,m),La(f,t,n)},x.forEach(e)});let _=[];if(b&&b.forEach((e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=_[t]=w.indexOf(e.key))&&(y[t]=e)}),r=(e,t)=>{y[t]||(y[t]={key:w[t],item:e,phase:"mount",ctrl:new LQ},y[t].ctrl.item=e)},g.forEach(r),_.length){let e=-1,{leave:n}=o?o():t;_.forEach((t,r)=>{let i=b[r];~t?(e=y.indexOf(i),y[e]={...i,item:g[t]}):n&&y.splice(++e,0,i)})}MZ.fun(s)&&y.sort((e,t)=>
106s(e.item,t.item));let k=-l,S=[],E=DY(),O=Ld(t),j=new Map,T=(0,ef.useRef)(new Map),C=(0,ef.useRef)(!1);if(i=(e,n)=>{let r,i,a=e.key,s=e.phase,u=o?o():t,f=La(u.delay||0,a);if("mount"==s)r=u.enter,i="enter";else{let e=0>w.indexOf(a);if("leave"!=s)if(e)r=u.leave,i="leave";else{if(!(r=u.update))return;i="update"}else{if(e)return;r=u.enter,i="enter"}}if(r=La(r,e.item,n),!(r=MZ.obj(r)?Lp(r):{to:r}).config){let t=p||O.config;r.config=La(t,e.item,n,i)}k+=l;let m={...O,delay:f+k,ref:h,immediate:u.immediate,reset:!1,...r};if("enter"==i&&MZ.und(m.from)){let r=o?o():t;m.from=La(MZ.und(r.initial)||b?r.from:r.initial,e.item,n)}let{onResolve:g}=m;m.onResolve=e=>{La(g,e);let t=v.current,n=t.find(e=>e.key===a);if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){T.current.delete(n);let t=La(c,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=0x7fffffff&&(n.expirationId=setTimeout(E,r));return}}}e&&t.some(e=>e.expired)&&(d&&(C.current=!0),E())}};let y=L2(e.ctrl,m);S.push({payload:m,propsDelay:f}),"leave"===i&&d?T.current.set(e,{phase:i,springs:y,payload:m}):j.set(e,{phase:i,springs:y,payload:m})},y.forEach(i),u&&l){let e=S.length;S.forEach(({payload:t,propsDelay:n},r)=>{t.delay=n+(e-1-r)*l})}let I=(0,ef.useContext)(L8),P=I!==DQ(I)&&Lg(I);DG(()=>{P&&y.forEach(e=>{e.ctrl.start({default:I})})},[I]),j.forEach((e,t)=>{if(T.current.size){let e=y.findIndex(e=>e.key===t.key);y.splice(e,1)}}),DG(()=>{let e;e=T.current.size?T.current:j,e.forEach(({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,m?.add(r),P&&"enter"==e&&r.start({default:I}),t&&(Lb(r,t.ref),(r.ref||m)&&!C.current?r.update(t):(r.start(t),C.current&&(C.current=!1)))})},a?void 0:n);let A=e=>ef.createElement(ef.Fragment,null,y.map((t,n)=>{let r=j.get(t)||T.current.get(t),{springs:i}=r||t.ctrl,o=r?{...t,phase:r.phase}:t,a=e({...i},t.item,o,n),s=MZ.str(t.key)||MZ.num(t.key)?t.key:t.ctrl.id,l=ef.version<"19.0.0",u=a?.props??{},c=l?a?.ref:u?.ref;return a&&a.type?ef.createElement(a.type,{...u,key:s,ref:c}):a}));return m?[A,m]:A}let zt=1;var zn=class extends LD{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Dk(...t);const n=this._get();D2(this,Lt(n).create(n))}advance(e){let t=this._get();MG(t,this.get())||(D1(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&zi(this._active)&&zo(this)}_get(){let e=MZ.arr(this.source)?this.source.map(Dj):MX(Dj(this.source));return this.calc(...e)}_start(){if(this.idle&&!zi(this._active)){let e;this.idle=!1,e=D3(this),e.forEach(e=>{e.done=!1}),M1.skipAnimation?(MI.batchedUpdates(()=>this.advance()),zo(this)):De.start(this)}}_attach(){let e,t,n=1;e=MX(this.source),t=e=>{DO(e)&&DA(e,this),e instanceof LD&&(e.idle||this._active.add(e),n=Math.max(n,e.priority+1))},e.forEach(t),this.priority=n,this._start()}_detach(){let e,t;e=MX(this.source),t=e=>{DO(e)&&DR(e,this)},e.forEach(t),this._active.clear(),zo(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=MX(this.source).reduce((e,t)=>Math.max(e,(t instanceof LD?t.priority:0)+1),0))}};function zr(e){return!1!==e.idle}function zi(e){return!e.size||Array.from(e).every(zr)}function zo(e){if(!e.idle){let t;e.idle=!0,t=D3(e),t.forEach(e=>{e.done=!0}),DC(e,{type:"idle",parent:e})}}M1.assign({createStringInterpolator:DH,to:(e,t)=>new zn(e,t)}),De.advance;var kT=el("2pmb0");let za=/^--/,zs={},zl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zu=["Webkit","Ms","Moz","O"];zl=Object.keys(zl).reduce((e,t)=>
106(zu.forEach(n=>e[n+t.charAt(0).toUpperCase()+t.substring(1)]=e[t]),e),zl);let zc=/^(matrix3d|matrix|translate3d|translate[XYZ]?|scale3d|scale[XYZ]?|rotate3d|rotate[XYZ]?|skew[XY]?)$/,zd=/^(translate)/,zf=/^(rotate|skew)/,zh=(e,t)=>MZ.num(e)&&0!==e?e+t:e,zp=(e,t)=>MZ.arr(e)?e.every(e=>zp(e,t)):MZ.num(e)?e===t:parseFloat(e)===t;var zm=class extends D9{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>zh(e,"px")).join(",")})`,zp(e,0)])),MY(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(zc.test(t)){if(delete r[t],MZ.und(e))return;let n=zd.test(t)?"px":zf.test(t)?"deg":"";i.push(MX(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${zh(i,n)})`,zp(i,0)]:e=>[`${t}(${e.map(e=>zh(e,n)).join(",")})`,zp(e,+!!t.startsWith("scale"))])}}),i.length&&(r.transform=new zg(i,o)),super(r)}},zg=class extends DI{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e,t,n="",r=!0;return e=this.inputs,t=(e,t)=>{let i=Dj(e[0]),[o,a]=this.transforms[t](MZ.arr(i)?i:e.map(Dj));n+=" "+o,r=r&&a},e.forEach(t),r?"none":n}observerAdded(e){let t,n;1==e&&(t=this.inputs,n=e=>{let t;return t=e=>DO(e)&&DA(e,this),e.forEach(t)},t.forEach(n))}observerRemoved(e){let t,n;0==e&&(t=this.inputs,n=e=>{let t;return t=e=>DO(e)&&DR(e,this),e.forEach(t)},t.forEach(n))}eventObserved(e){"change"==e.type&&(this._value=null),DC(this,e)}};M1.assign({batchedUpdates:kT.unstable_batchedUpdates,createStringInterpolator:DH,colors:{transparent:0,aliceblue:0xf0f8ffff,antiquewhite:0xfaebd7ff,aqua:0xffffff,aquamarine:0x7fffd4ff,azure:0xf0ffffff,beige:0xf5f5dcff,bisque:0xffe4c4ff,black:255,blanchedalmond:0xffebcdff,blue:65535,blueviolet:0x8a2be2ff,brown:0xa52a2aff,burlywood:0xdeb887ff,burntsienna:0xea7e5dff,cadetblue:0x5f9ea0ff,chartreuse:0x7fff00ff,chocolate:0xd2691eff,coral:0xff7f50ff,cornflowerblue:0x6495edff,cornsilk:0xfff8dcff,crimson:0xdc143cff,cyan:0xffffff,darkblue:35839,darkcyan:9145343,darkgoldenrod:0xb8860bff,darkgray:0xa9a9a9ff,darkgreen:6553855,darkgrey:0xa9a9a9ff,darkkhaki:0xbdb76bff,darkmagenta:0x8b008bff,darkolivegreen:0x556b2fff,darkorange:0xff8c00ff,darkorchid:0x9932ccff,darkred:0x8b0000ff,darksalmon:0xe9967aff,darkseagreen:0x8fbc8fff,darkslateblue:0x483d8bff,darkslategray:0x2f4f4fff,darkslategrey:0x2f4f4fff,darkturquoise:0xced1ff,darkviolet:0x9400d3ff,deeppink:0xff1493ff,deepskyblue:0xbfffff,dimgray:0x696969ff,dimgrey:0x696969ff,dodgerblue:0x1e90ffff,firebrick:0xb22222ff,floralwhite:0xfffaf0ff,forestgreen:0x228b22ff,fuchsia:0xff00ffff,gainsboro:0xdcdcdcff,ghostwhite:0xf8f8ffff,gold:0xffd700ff,goldenrod:0xdaa520ff,gray:0x808080ff,green:8388863,greenyellow:0xadff2fff,grey:0x808080ff,honeydew:0xf0fff0ff,hotpink:0xff69b4ff,indianred:0xcd5c5cff,indigo:0x4b0082ff,ivory:0xfffff0ff,khaki:0xf0e68cff,lavender:0xe6e6faff,lavenderblush:0xfff0f5ff,lawngreen:0x7cfc00ff,lemonchiffon:0xfffacdff,lightblue:0xadd8e6ff,lightcoral:0xf08080ff,lightcyan:0xe0ffffff,lightgoldenrodyellow:0xfafad2ff,lightgray:0xd3d3d3ff,lightgreen:0x90ee90ff,lightgrey:0xd3d3d3ff,lightpink:0xffb6c1ff,lightsalmon:0xffa07aff,lightseagreen:0x20b2aaff,lightskyblue:0x87cefaff,lightslategray:0x778899ff,lightslategrey:0x778899ff,lightsteelblue:0xb0c4deff,lightyellow:0xffffe0ff,lime:0xff00ff,limegreen:0x32cd32ff,linen:0xfaf0e6ff,magenta:0xff00ffff,maroon:0x800000ff,mediumaquamarine:0x66cdaaff,mediumblue:52735,mediumorchid:0xba55d3ff,mediumpurple:0x9370dbff,mediumseagreen:0x3cb371ff,mediumslateblue:0x7b68eeff,mediumspringgreen:0xfa9aff,mediumturquoise:0x48d1ccff,mediumvioletred:0xc71585ff,midnightblue:0x191970ff,mintcream:0xf5fffaff,mistyrose:0xffe4e1ff,moccasin:0xffe4b5ff,navajowhite:0xffdeadff,navy:33023,oldlace:0xfdf5e6ff,olive:0x808000ff,olivedrab:0x6b8e23ff,orange:0xffa500ff,orangered:0xff4500ff,orchid:0xda70d6ff,palegoldenrod:0xeee8aaff,palegreen:0x98fb98ff,paleturquoise:0xafeeeeff,palevioletred:0xdb7093ff,papayawhip:0xffefd5ff,peachpuff:0xffdab9ff,peru:0xcd853fff,pink:0xffc0cbff,plum:0xdda0ddff,powderblue:0xb0e0e6ff,purple:0x800080ff,rebeccapurple:0x663399ff,red:0xff0000ff,rosybrown:0xbc8f8fff,royalblue:0x4169e1ff,saddlebrown:0x8b4513ff,salmon:0xfa8072ff,sandybrown:0xf4a460ff,seagreen:0x2e8b57ff,seashell:0xfff5eeff,sienna:0xa0522dff,silver:0xc0c0c0ff,skyblue:0x87ceebff,slateblue:0x6a5acdff,slategray:0x708090ff,slategrey:0x708090ff,snow:0xfffafaff,springgreen:0xff7fff,steelblue:0x4682b4ff,tan:0xd2b48cff,teal:8421631,thistle:0xd8bfd8ff,tomato:0xff6347ff,turquoise:0x40e0d0ff,violet:0xee82eeff,wheat:0xf5deb3ff,white:0xffffffff,whitesmoke:0xf5f5f5ff,yellow:0xffff00ff,yellowgreen:0x9acd32ff}});let zy=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new D9(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=Lo(e)||"Anonymous";return(e=MZ.str(e)?o[e]||(o[e]=Ln(e,i)):e[Li]||(e[Li]=Ln(e,i))).displayName=`Animated(${t})`,e};return MY(e,(t,n)=>{MZ.arr(e)&&(n=Lo(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute||!e.removeAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l,...u}=t,c=Object.values(u),d=Object.keys(u).map(t=>n||e.hasAttribute(t)?t:zs[t]||(zs[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let n in t.hasOwnProperty("children")&&(e.textContent=o),i)if(i.hasOwnProperty(n)){var f;let t=null==(f=i[n])||"boolean"==typeof f||""===f?"":"number"!=typeof f||0===f||za.test(n)||zl.hasOwnProperty(n)&&zl[n]?(""+f).trim():f+"px";za.test(n)?e.style.setProperty(n,t):e.style[n]=t}
106d.forEach((t,n)=>{let r=c[n];void 0!==r?e.setAttribute(t,r):e.removeAttribute(t)}),t.hasOwnProperty("className")&&(void 0!==r?e.className=r:e.removeAttribute("class")),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),t.hasOwnProperty("viewBox")&&(void 0!==l?e.setAttribute("viewBox",l):e.removeAttribute("viewBox"))},createAnimatedStyle:e=>new zm(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated;var ef=el("8NFma"),zv=el("fb0st"),kT=el("2pmb0");function zb(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function zw(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}function zx(e){return"number"==typeof e&&!isNaN(e)}function z_(e){return parseInt(e,10)}function zk(e,t,n){if(e[t])return Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var zS=["Moz","Webkit","O","ms"];function zE(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}var zO=function(e="transform"){var t,n;if("u"<typeof window)return"";let r=null==(n=null==(t=window.document)?void 0:t.documentElement)?void 0:n.style;if(!r||e in r)return"";for(let t=0;t<zS.length;t++)if(zE(e,zS[t])in r)return zS[t];return""}(),zj="";function zT(e,t,n){let r=e;do{if(function(e,t){var n;zj||(zj=null!=(n=zb(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return zw(e[t])}))?n:"");let r=e[zj];return!!zw(r)&&!!r.call(e,t)}(r,t))return!0;if(r===n)break;r=r.parentNode}while(r)return!1}function zC(e,t,n,r){if(!e)return;let i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function zI(e,t,n,r){if(!e)return;let i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function zP({x:e,y:t},n,r){let i=`translate(${e}${r},${t}${r})`;if(n){let e=`${"string"==typeof n.x?n.x:n.x+r}`,t=`${"string"==typeof n.y?n.y:n.y+r}`;i=`translate(${e}, ${t})`+i}return i}function zA(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{zR(e)}):zR(e)}function zR(e){if(e)try{var t,n;e.body&&(t=e.body,n="react-draggable-transparent-selection",t.classList?t.classList.remove(n):t.className=t.className.replace(RegExp(`(?:^|\\s)${n}(?!\\S)`,"g"),""));let r=e.selection;if(r)r.empty();else{let t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch{}}function zN(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function zM(e,t,n){var r,i;let o,a="number"==typeof t?e.targetTouches&&zb(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&zb(e.changedTouches,e=>t===e.identifier):null;if("number"==typeof t&&!a)return null;let s=zz(n),l=n.props.offsetParent||s.offsetParent||s.ownerDocument.body;return r=a||e,i=n.props.scale,o=l===l.ownerDocument.body?{left:0,top:0}:l.getBoundingClientRect(),{x:(r.clientX+l.scrollLeft-o.left)/i,y:(r.clientY+l.scrollTop-o.top)/i}}function zD(e,t,n){let r=!zx(e.lastX),i=zz(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function zL(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function zz(e){let t=e.findDOMNode();if(!t)throw Error("<DraggableCore>: Unmounted during event!");return t}var zF=function(){},zB={start:"touchstart",move:"touchmove",stop:"touchend"},zU={start:"mousedown",move:"mousemove",stop:"mouseup"},z$=zU,zH=class extends ef.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&("number"==typeof e.button&&0!==e.button||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!zT(e.target,this.props.handle,t)||this.props.cancel&&zT(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();let r=e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0;this.touchIdentifier=r;let i=zM(e,r,this);if(null==i)return;let{x:o,y:a}=i,s=zD(this,o,a);zF("DraggableCore: handleDragStart: %j",s),zF("calling",this.props.onStart),!1!==this.props.onStart(e,s)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&function(e,t){var n,r;if(!e)return;let i=e.getElementById("react-draggable-style-el");if(!i){(i=e.createElement("style")).type="text/css",i.id="react-draggable-style-el";let n=null!=t?t:"u">typeof __webpack_nonce__?__webpack_nonce__:void 0;n&&i.setAttribute("nonce",n),i.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",i.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(i)}e.body&&(n=e.body,r="react-draggable-transparent-selection",n.classList?n.classList.add(r):n.className.match(RegExp(`(?:^|\\s)${r}(?!\\S)`))||(n.className+=` ${r}`))}(n,this.props.nonce),this.dragging=!0,this.lastX=o,this.lastY=a,zC(n,z$.move,this.handleDrag),zC(n,z$.stop,this.handleDragStop))},this.handleDrag=e=>{let t=zM(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=zN(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=zD(this,n,r);if(zF("DraggableCore: handleDrag: %j",i),!1===this.props.onDrag(e,i)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let e=document.createEvent("MouseEvents");
106e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=zM(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=zN(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=zD(this,n,r);if(!1===this.props.onStop(e,i)||!1===this.mounted)return!1;let o=this.findDOMNode();o&&this.props.enableUserSelectHack&&zA(o.ownerDocument),zF("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,o&&(zF("DraggableCore: Removing handlers"),zI(o.ownerDocument,z$.move,this.handleDrag),zI(o.ownerDocument,z$.stop,this.handleDragStop))},this.onMouseDown=e=>(z$=zU,this.handleDragStart(e)),this.onMouseUp=e=>(z$=zU,this.handleDragStop(e)),this.onTouchStart=e=>(z$=zB,this.handleDragStart(e)),this.onTouchEnd=e=>(z$=zB,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&zC(e,zB.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;zI(t,zU.move,this.handleDrag),zI(t,zB.move,this.handleDrag),zI(t,zU.stop,this.handleDragStop),zI(t,zB.stop,this.handleDragStop),zI(e,zB.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&zA(t)}}findDOMNode(){var e;if(null==(e=this.props)?void 0:e.nodeRef)return this.props.nodeRef.current;let t=ei(kT);return"function"==typeof t.findDOMNode?t.findDOMNode(this):(zF("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return ef.cloneElement(ef.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};zH.displayName="DraggableCore",zH.propTypes={allowAnyClick:ei(zv).bool,allowMobileScroll:ei(zv).bool,children:ei(zv).node.isRequired,disabled:ei(zv).bool,enableUserSelectHack:ei(zv).bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:ei(zv).arrayOf(ei(zv).number),handle:ei(zv).string,cancel:ei(zv).string,nodeRef:ei(zv).object,nonce:ei(zv).string,onStart:ei(zv).func,onDrag:ei(zv).func,onStop:ei(zv).func,onMouseDown:ei(zv).func,scale:ei(zv).number,className:zk,style:zk,transform:zk},zH.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var zW=class extends ef.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(zF("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,zL(this,t)))return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;zF("Draggable: onDrag: %j",t);let n=zL(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,o]=function(e,t,n){var r;if(!e.props.bounds)return[t,n];let{bounds:i}=e.props;i="string"==typeof i?i:{left:(r=i).left,top:r.top,right:r.right,bottom:r.bottom};let o=zz(e);if("string"==typeof i){let e,t,n,r,a,s,l,u,c,{ownerDocument:d}=o,f=d.defaultView;if(!f)throw Error("Cannot resolve the owner window of the draggable node.");if(!((e="parent"===i?o.parentNode:o.getRootNode().querySelector(i))instanceof f.HTMLElement))throw Error('Bounds selector "'+i+'" could not find an element.');let h=f.getComputedStyle(o),p=f.getComputedStyle(e);i={left:-o.offsetLeft+z_(p.paddingLeft)+z_(h.marginLeft),top:-o.offsetTop+z_(p.paddingTop)+z_(h.marginTop),right:(t=e.clientWidth,t-=z_((n=e.ownerDocument.defaultView.getComputedStyle(e)).paddingLeft),(t-=z_(n.paddingRight))-(r=o.clientWidth,r+=z_((a=o.ownerDocument.defaultView.getComputedStyle(o)).borderLeftWidth),r+=z_(a.borderRightWidth))-o.offsetLeft+z_(p.paddingRight)-z_(h.marginRight)),bottom:(s=e.clientHeight,s-=z_((l=e.ownerDocument.defaultView.getComputedStyle(e)).paddingTop),(s-=z_(l.paddingBottom))-(u=o.clientHeight,u+=z_((c=o.ownerDocument.defaultView.getComputedStyle(o)).borderTopWidth),u+=z_(c.borderBottomWidth))-o.offsetTop+z_(p.paddingBottom)-z_(h.marginBottom))}}return zx(i.right)&&(t=Math.min(t,i.right)),zx(i.bottom)&&(n=Math.min(n,i.bottom)),zx(i.left)&&(t=Math.max(t,i.left)),zx(i.top)&&(n=Math.max(n,i.top)),[t,n]}(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||!1===this.props.onStop(e,zL(this,t)))return!1;zF("Draggable: onDragStop: %j",t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(zF("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if(null==(e=this.props)?void 0:e.nodeRef)return this.props.nodeRef.current;let t=ei(kT);return"function"==typeof t.findDOMNode?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:o,defaultClassNameDragged:a,position:s,positionOffset:l,scale:u,...c}=this.props,d={},f=null,h=!s||this.state.dragging,p=s||r,m={x:("both"===this.props.axis||"x"===this.props.axis)&&h?this.state.x:p.x,y:("both"===this.props.axis||"y"===this.props.axis)&&h?this.state.y:p.y};if(this.state.isElementSVG)f=zP(m,l,"");else{let e;e=zP(m,l,"px"),d={[zE("transform",zO)]:e}}let g=ef.Children.only(n),y=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}(g.props.className||"",i,{[o]:this.state.dragging,[a]:this.state.dragged});return ef.createElement(zH,{...c,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},ef.cloneElement(g,{className:y,style:{...g.props.style,...d},transform:f}))}};zW.displayName="Draggable",zW.propTypes={...zH.propTypes,axis:ei(zv).oneOf(["both","x","y","none"]),bounds:ei(zv).oneOfType([ei(zv).shape({left:ei(zv).number,right:ei(zv).number,top:ei(zv).number,bottom:ei(zv).number}),ei(zv).string,ei(zv).oneOf([!1])]),defaultClassName:ei(zv).string,defaultClassNameDragging:ei(zv).string,defaultClassNameDragged:ei(zv).string,defaultPosition:ei(zv).shape({x:ei(zv).number,y:ei(zv).number}),positionOffset:ei(zv).shape({x:ei(zv).oneOfType([ei(zv).number,ei(zv).string]),y:ei(zv).oneOfType([ei(zv).number,ei(zv).string])}),position:ei(zv).shape({x:ei(zv).number,y:ei(zv).number}),className:zk,style:zk,transform:zk}
106,zW.defaultProps={...zH.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var ef=el("8NFma");let zV=(0,ef.memo)(function({title:e,className:t="close",onClick:n,...r}){let i=TV().formatMessage({id:"btn.dismiss",defaultMessage:"Dismiss"});return(0,ec.jsx)("button",{className:t,onClick:n,title:e??i,...r,children:(0,ec.jsx)(C0,{name:"close"})})});function zq({icon:e,title:t,show:n,className:r,handleClose:i,children:o,...a}){let s=(0,ef.useRef)(null),[l,u]=(0,ef.useState)(a.position??{x:0,y:0}),c=(e,t)=>{u({x:t.x,y:t.y})},d=["floating-panel","floating-panel-container-outer"];return r&&d.push(r),ze(n,{from:{opacity:0,scale:.75,pointerEvents:"none"},enter:{opacity:1,scale:1,pointerEvents:"auto"},leave:{opacity:0,scale:.85,pointerEvents:"none"},config:{tension:300,friction:5,clamp:!0}})((n,r)=>r&&(0,ec.jsx)(zW,{bounds:"parent",handle:"header",cancel:".close",nodeRef:s,onDrag:c,...a,position:l,children:(0,ec.jsx)("div",{className:d.join(" "),ref:s,children:(0,ec.jsxs)(zy.div,{className:"floating-panel-container-inner",style:n,children:[(0,ec.jsxs)("header",{children:[(0,ec.jsxs)("h3",{children:[e&&(0,ec.jsx)(C0,{name:e}),t]}),(0,ec.jsx)(zV,{onClick:i})]}),(0,ec.jsx)("div",{className:"floating-panel-content",children:o})]})})}))}function zK(){let e,t=kU(e=>e.coastmix),n=kB(),r=TV(),{controlsVisible:i,seaLevelRise:o,floodDetails:a,stormSurge:s}=t;(0,ef.useEffect)(()=>{n(P0(!0))},[o,s,n]);let l=["flood-controls-message"];return 0===o&&!1===s?e=`\u{1F449} ${r.formatMessage({id:"tools.flooding.messages.start",defaultMessage:"Select a sea level rise target to visualize flooding."})}`:null===a[0]&&null===a[1]?e=`\u{1F449} ${r.formatMessage({id:"tools.flooding.messages.need-waterfront",defaultMessage:"Add a waterfront boundary to visualize flooding."})}`:a[0]?.flooded||a[1]?.flooded?(e=`\u{274C} ${r.formatMessage({id:"tools.flooding.messages.fail",defaultMessage:"This configuration does not address sea level rise!"})}`,l.push("flood-controls-warning")):(e=`\u{2705} ${r.formatMessage({id:"tools.flooding.messages.success",defaultMessage:"This configuration is addressing sea level rise!"})}`,l.push("flood-controls-success")),(0,ec.jsx)(zq,{icon:"boat",title:(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(TQ,{id:"tools.flooding.heading",defaultMessage:"Coastal flooding"}),(0,ec.jsx)(Mj,{})]}),show:i,className:"coastmix-controls",handleClose:function(){n(uN())},children:(0,ec.jsxs)("div",{className:"popup-controls flood-controls-content",children:[(0,ec.jsxs)("div",{className:"popup-control-group","data-tour-id":"sea-level-control",children:[(0,ec.jsx)("div",{className:"popup-control-label",children:(0,ec.jsx)(TQ,{id:"tools.sea-level.label",defaultMessage:"Sea level rise"})}),(0,ec.jsxs)("div",{children:[(0,ec.jsx)(T4,{className:`sea-level-button${0===o?" sea-level-selected":""}`,onClick:()=>{n(uD(0))},children:(0,ec.jsx)(TQ,{id:"tools.sea-level.current",defaultMessage:"Current"})}),(0,ec.jsx)(T4,{className:`sea-level-button${2030===o?" sea-level-selected":""}`,"data-tour-id":"2030-sea-level-rise",onClick:()=>{n(uD(2030))},children:"2030"}),(0,ec.jsx)(T4,{className:`sea-level-button${2050===o?" sea-level-selected":""}`,onClick:()=>{n(uD(2050))},children:"2050"}),(0,ec.jsx)(T4,{className:`sea-level-button${2070===o?" sea-level-selected":""}`,onClick:()=>{n(uD(2070))},children:"2070"})]})]}),(0,ec.jsxs)("div",{className:"popup-control-group","data-tour-id":"storm-surge-control",children:[(0,ec.jsx)("div",{className:"popup-control-label",children:(0,ec.jsx)(TQ,{id:"tools.storm-surge.label",defaultMessage:"Storm surge"})}),(0,ec.jsx)(I9,{onCheckedChange:function(e){n(uz(e))},checked:s})]}),(0,ec.jsx)("div",{className:l.join(" "),"data-tour-id":"flooding-message",children:e})]})})}let zZ=[cd.CAR,cd.BIKE,cd.TRANSIT,cd.BIKE,cd.UTILITY];function zG({details:e,remainingWidth:t}){if(null===e)return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("br",{}),"Not a waterfront"]});let n="number"==typeof e.distance?e.distance+t/2:e.distance,r="number"==typeof n?`${cS(n)} ft`:n,i=[];if(e.floodedTypes.length>0)for(let t=0;t<e.floodedTypes.length;t++){let n=e.floodedTypes[t];zZ.includes(n)?i.push((0,ec.jsx)("span",{style:{color:"red"},children:n},n)):i.push((0,ec.jsx)("span",{style:{color:"lightgreen"},children:n},n))}else i.push((0,ec.jsx)("span",{children:"none"},"none"));return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("br",{}),"Distance flooded: ",r,(0,ec.jsx)("br",{}),"Flooded areas:"," ",(0,ec.jsx)("span",{style:{textTransform:"lowercase"},children:i.map((e,t)=>[t>0&&", ",e])}),(0,ec.jsx)("br",{}),"Bad?"," ",e.flooded?(0,ec.jsx)("span",{style:{color:"red"},children:"yes"}):(0,ec.jsx)("span",{style:{color:"lightgreen"},children:"no"})]})}function zY({on:e}){let{remainingWidth:t}=kU(e=>e.street),{floodDetails:n}=kU(e=>e.coastmix),[r,i]=n;return e?(0,ec.jsxs)("div",{className:"flooding-debug-overlay",children:[(0,ec.jsx)("h2",{children:"Flooding debug"}),(0,ec.jsxs)("p",{children:["Left:",(0,ec.jsx)(zG,{details:r,remainingWidth:t})]}),(0,ec.jsxs)("p",{children:["Right:",(0,ec.jsx)(zG,{details:i,remainingWidth:t})]})]}):null}function zX(){return kU(e=>e.flags.COASTMIX_MODE.value)?(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(zY,{on:!1}),(0,ec.jsx)(zK,{})]}):null}function zJ({boundaryWidth:e,scrollPos:t}){let n=kU(e=>e.street),r=kU(e=>e.ui.draggingType),{seaLevelRise:i,stormSurge:o,floodDetails:a}=kU(e=>e.coastmix),[s,l]=a,u=k$(n.id)!==n.id,c=0,d=0;if((null!==s||null!==l)&&(0!==i||!1!==o)){c=45-4*(o?2:1);let e=pv(i,o,n);c+=e*cI,d=r?.2:.4}let f={height:`${c}px`,opacity:d,left:`-${e}px`,right:`-${e}px`};u&&(f.transition="none"),(0,ef.useEffect)(()=>{let e=document.querySelector(".weather-canvas");e&&(o?e.style.top=`-${c-45}px`:e.style.top="auto")},[o,c]);let h=["sea-level-waves"];if(o&&h.push("sea-level-surge"),u&&h.push("sea-level-animation-off"),s?.distance==="max"||l?.distance==="max"||r)return(0,ec.jsx)("div",{className:"sea-level-rise",style:f,children:(0,ec.jsx)("div",{className:h.join(" "),children:(0,ec.jsx)("div",{style:zQ(t)})})});let p=((s?.distance??0)+n.remainingWidth/2)*cI,m=((l?.distance??0)+n.remainingWidth/2)*cI;return(0,ec.jsxs)(ec.Fragment,{children:[null!==s&&(0,ec.jsx)("div",{className:"sea-level-rise sea-level-rise-left",style:{...f,width:`${e+p}px`,right:"auto"},children:(0,ec.jsx)("div",{className:h.join(" "),children:(0,ec.jsx)("div",{style:zQ(t)})})}),null!==l&&(0,ec.jsx)("div",{className:"sea-level-rise sea-level-rise-right",style:{...f,width:`${e+m}px`,left:"auto"},children:(0,ec.jsx)("div",{className:h.join(" "),children:(0,ec.jsx)("div",{style:zQ(t)})})})]})}function zQ(e){return{backgroundPosition:`-${.5*e}px 0`}}var ef=(el("8NFma"),el("8NFma"),el("8NFma"));function z0(e,t,n="ltr",r=!1){let i=function(e,t,n="ltr",r=!1){let i;if(e&&t){if("rtl"===n){let n=t.offsetLeft+t.offsetWidth;i=n-e.offsetWidth<0||r?0:n-e.offsetWidth}else{let n=e.parentNode,o=n?.offsetWidth;i=t.offsetLeft+e.offsetWidth>o||r?o-e.offsetWidth:t.offsetLeft}return{left:i,top:0}}}(e,t,n,r);e&&void 0!==i&&(e.style.left=i.left.toString()+"px",e.style.top=i.top.toString()+"px")}var z1=(0,ef.memo)(function({className:e="",isActive:t=!1,menuItemNode:n,alignOpposite:r,onShow:i=()=>void 0,onHide:o=()=>void 0,children:a,...s}){let l=(0,ef.useRef)(null),u=kU(e=>e.app.contentDirection),c=(0,ef.useCallback)(()=>{z0(l.current,n,u,r)},[n,u,r]);(0,ef.useEffect)(()=>(window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),(0,ef.useLayoutEffect)(()=>{t?(z0(l.current,n,u,r),i()):t||o()},[t,n,u,r,i,o]);let d=["menu"];return e&&d.push(e),(0,ec.jsx)(kF,{appear:!0,in:t,timeout:100,classNames:"menu-visible",mountOnEnter:!0,unmountOnExit:!0,nodeRef:l,children:(0,ec.jsx)("div",{role:"menu",className:d.join(" "),ref:l,...s,children:a})})});function z2({children:e,href:t,icon:n=!1,...r}){return kU(e=>e.system.offline)?(0,ec.jsx)(ec.Fragment,{children:e}):(0,ec.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",...r,children:[e,n&&(0,ec.jsx)(C0,{name:"external-link"})]})}function z3({href:e,className:t,children:n,...r}){let i=["menu-item"];return("string"==typeof t&&i.push(t),void 0!==e)?(0,ec.jsx)(z2,{href:e,icon:!0,className:i.join(" "),role:"menuitem",...r,children:n}):(0,ec.jsx)("button",{className:i.join(" "),role:"menuitem",...r,children:n})}function z4(e){let t=kB();return(0,ec.jsxs)(z1,{...e,children:[(0,ec.jsxs)(z3,{href:"https://strt.mx/discord",children:[(0,ec.jsx)(C0,{name:"discord",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.contact.discord",defaultMessage:"Join Discord chat"})]}),(0,ec.jsxs)(z3,{href:"https://github.com/streetmix/streetmix/",children:[(0,ec.jsx)(C0,{name:"github",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.contact.github",defaultMessage:"View source code on GitHub"})]}),(0,ec.jsxs)(z3,{onClick:()=>{t(uW("NEWSLETTER"))},children:[(0,ec.jsx)(C0,{name:"mail",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.contact.newsletter",defaultMessage:"Subscribe to our newsletter"})]})]})}var ef=(el("8NFma"),el("8NFma"));let z5={defaultStepOptions:{cancelIcon:{enabled:!0},floatingUIOptions:{middleware:[SW(10),SV({padding:10})]}},useModalOverlay:!0};function z6({children:e,steps:t}){let n=j6();return(0,ef.cloneElement)(e,{onClick:function(r){let i=new n.Tour({...z5});"function"==typeof t?i.addSteps(t()):i.addSteps(t),"function"==typeof e.props.onClick&&e.props.onClick(r),i.start()}})}function z8(e){return new Promise(t=>window.setTimeout(()=>t(e),e))}function z9(e,{timeoutMs:t=3e3,root:n=document}={}){let r=n.querySelector(e);return r?Promise.resolve(r):new Promise((r,i)=>{let o=window.setTimeout(()=>{a.disconnect(),i(Error(`Timed out waiting for element: ${e}`))},t),a=new MutationObserver(()=>{let t=n.querySelector(e);t&&(window.clearTimeout(o),a.disconnect(),r(t))});a.observe(n===document?document.documentElement:n,{childList:!0,subtree:!0})})}let z7={modalOverlayOpeningPadding:5,modalOverlayOpeningRadius:5},Fe={classes:"btn btn-primary",text:"Next",action(){this.next()}},Ft={classes:"btn btn-tertiary",text:"Back",action(){this.back()}},Fn=[{id:"coastmix-onboarding-01",title:"Open flooding controls",text:`<p>
106Coastmix provides controls to help visualize the
107       effect of sea level rise in the future.</p>
108       <p>Press this button to continue!</p>`,attachTo:{element:'[data-tour-id="flooding-controls-button"]',on:"top"},highlightClass:"tour-highlight",classes:"tour-medium-width",advanceOn:{event:"click",selector:'[data-tour-id="flooding-controls-button"]'},when:{show(){hy.dispatch(uA())}},...z7},{id:"coastmix-onboarding-02",title:"Sea level rise",text:`<p><strong>Sea level rise</strong> is the gradual increase in the
109      height of the world's oceans relative to land, due to melting glaciers
110      and thermal expansion from global warming.</p>
111      <p>As this happens, we must design for both near- and long-term flood
112      risk by strategically raising parts of a coastal area above sea level rise
113      projections. This target height is called the <strong>Design Flood
114      Elevation (DFE)</strong>.</p>
115      <p>In Coastmix, you can design for the current sea level or a future sea
116      level rise expected in 2030, 2050, and 2070.</p>`,attachTo:{element:'[data-tour-id="sea-level-control"]',on:"right"},highlightClass:"tour-highlight",floatingUIOptions:{middleware:[SQ({mainAxis:0,crossAxis:10})]},beforeShowPromise:async()=>{await z9(".coastmix-controls"),await z8(300)},buttons:[Ft,Fe],...z7},{id:"coastmix-onboarding-03",title:"Storm surge",text:`<p>A <strong>storm surge</strong> occurs during storms when strong
117      winds push water onto land along the coast, temporarily raising sea
118      levels above normal. This can cause significant flood damage, so it\u{2019}s
119      important to consider storm surges when we design ways to adapt to coastal
120      flooding.</p>
121      <p>In Coastmix, you can turn on storm surges to add more water height
122      on top of sea level rise projections.</p>`,attachTo:{element:'[data-tour-id="storm-surge-control"]',on:"right"},highlightClass:"tour-highlight",buttons:[Ft,{...Fe,action(){hy.dispatch(uN()),this.next()}}],...z7,modalOverlayOpeningYOffset:-1},{id:"coastmix-onboarding-05",title:"Select an element",text:"Select this element to access and change its properties.",attachTo:{element:'[data-slice-index="5"]',on:"bottom"},highlightClass:"tour-highlight",scrollTo:{behavior:"smooth",inline:"center",block:"end"}
122,advanceOn:{event:"click",selector:'[data-slice-index="5"]'},buttons:[Ft],...z7},{id:"coastmix-onboarding-06",title:"Raise ground height",text:`<p>Coastmix introduces new vertical elevation functionality where you
123      can raise or lower the ground height of an element.</p>
124      <p>When designing your waterfront, you can raise the ground height of
125      individual elements to reach the Design Flood Elevation. Use the plus and
126      minus buttons to adjust the height, or type in an amount. If sea level
127      rise is enabled, you can visualize the extent of flooding.</p>`,attachTo:{element:'[data-tour-id="elevation-control"]',on:"right"},highlightClass:"tour-highlight",beforeShowPromise:async()=>{await z9(".popup-container"),await z8(300)},buttons:[Ft,Fe],...z7},{id:"coastmix-onboarding-07",title:"Create a slope",text:`<p>While some coastal resilience strategies use vertical barriers,
128      like a seawall, you can also use a slope to reach the Design Flood
129      Elevation more gradually.</p>
130      <p>Some elements (but not all) can be sloped. And watch out for features
131      with very steep slopes: they might not be accessible!</p>`,attachTo:{element:'[data-tour-id="slope-control"]',on:"right"},highlightClass:"tour-highlight",buttons:[Ft,{...Fe,action(){window.dispatchEvent(new CustomEvent("stmx:dismiss_slice_popup")),hy.dispatch(uW("COASTMIX_TUTORIAL_COMPLETE")),this.complete()}}],...z7}];function Fr(){return Fn}function Fi({children:e}){return(0,ec.jsx)(z6,{steps:Fr,children:e})}function Fo({stepId:e,activeTour:t,select:n,shouldAdvance:r,onAdvance:i}){let o=!1,a=n=>!o&&!!t&&t.currentStep?.id===e&&!!r(n)&&(o=!0,i?i(t):t.next(),!0),s=()=>{};return s=hv(n,e=>{a(e)&&s()}),a(n(hy.getState()))&&s(),()=>{s()}}let Fa={modalOverlayOpeningPadding:5,modalOverlayOpeningRadius:5},Fs={classes:"btn btn-primary",text:"Next",action(){this.next()}},Fl={classes:"btn btn-tertiary",text:"Back",action(){this.back()}},Fu=()=>{hy.dispatch(Rt()),window.removeEventListener("stmx:receive_gallery_street",Fu)};function Fc(){S?.(),S=void 0}function Fd(){E?.(),E=void 0}let Ff=[{id:"coastmix-practice-01",title:"Coastmix practice scenario",text:`In this practice scenario, you will address 2030 sea level rise
132      with an optional storm surge.`,classes:"tour-dialog",buttons:[Fs],...Fa},{id:"coastmix-practice-02",title:"New waterfront",text:"To start, open the “New waterfront” menu.",attachTo:{element:"#menubar-new",on:"bottom"}
132,highlightClass:"tour-highlight",advanceOn:{event:"click",selector:"#menubar-new"},buttons:[Fl],...Fa},{id:"coastmix-practice-03",title:"Start from an example",text:"Select this to open a gallery of different waterfronts.",attachTo:{element:'[data-tour-id="new-street-examples"]',on:"left"},highlightClass:"tour-highlight",advanceOn:{event:"click",selector:'[data-tour-id="new-street-examples"]'},buttons:[Fl],beforeShowPromise:async()=>{await z8(300)}},{id:"coastmix-practice-04",title:"Select a template",text:"Select the “Harborwalk” template.",attachTo:{element:'[data-street-name="Harborwalk"]',on:"bottom"},highlightClass:"tour-highlight",advanceOn:{event:"click",selector:'[data-street-name="Harborwalk"]'},buttons:[{classes:"btn btn-tertiary",text:"Back",action(){hy.dispatch(Rt());let e=this.steps.indexOf(this.getCurrentStep());this.show(this.steps[e-2]?.id,!1)}}],beforeShowPromise:async()=>{await z9('[data-street-name="Harborwalk"]'),await z8(300)}},{id:"coastmix-practice-05",title:"You have a new harborwalk!",text:`<p>This is a typical cross-section of a harborwalk at sea level.</p>
133      <p>
134        Next, we'll raise the sea level to 2030 projected
135        height, and see how that affects our waterfront.
136      </p>`,classes:"tour-dialog",buttons:[Fs],when:{show:()=>{window.addEventListener("stmx:receive_gallery_street",Fu)}}},{id:"coastmix-practice-06",title:"Open flooding controls",text:"Select “Coastal flooding” to access and adjust flood features.",attachTo:{element:'[data-tour-id="flooding-controls-button"]',on:"top"},highlightClass:"tour-highlight",classes:"tour-medium-width",advanceOn:{event:"click",
136selector:'[data-tour-id="flooding-controls-button"]'}},{id:"coastmix-practice-07",title:"Choose sea level rise",text:"Next, select 2030 sea level rise.",attachTo:{element:'[data-tour-id="2030-sea-level-rise"]',on:"top"},highlightClass:"tour-highlight",advanceOn:{event:"click",selector:'[data-tour-id="2030-sea-level-rise"]'},buttons:[Fl],beforeShowPromise:async()=>{await z9(".coastmix-controls"),await z8(300)},...Fa},{id:"coastmix-practice-08",title:"Toggle storm surge",text:`For an extra challenge, you can turn on storm surge. This is totally
137      optional, though!`,attachTo:{element:'[data-tour-id="storm-surge-control"]',on:"top"},highlightClass:"tour-highlight",buttons:[Fl,Fs],...Fa,modalOverlayOpeningYOffset:-1},{id:"coastmix-practice-09",title:"Flooding!",text:`Oh no! You can see that our harborwalk environment is flooded.
138      There are many ways to protect against future sea level rise, but for
139      this scenario, we\u{2019}ll be building an elevated harborwalk with a sloped
140      berm.`,attachTo:{element:'[data-tour-id="flooding-message"]',on:"top"},highlightClass:"tour-highlight",buttons:[Fl,Fs]},{id:"coastmix-practice-10",title:"Select the harborwalk",text:"First, select the “Harborwalk” feature next to the water.",attachTo:{element:'[data-slice-label="Harborwalk"]',on:"bottom"}
140,highlightClass:"tour-highlight",advanceOn:{event:"click",selector:'[data-slice-label="Harborwalk"]'},buttons:[Fl],scrollTo:{behavior:"smooth",inline:"center",block:"end"},...Fa},{id:"coastmix-practice-11",title:"Raise the harborwalk",text:"Elevate the Harborwalk feature until it blocks the flood waters.",attachTo:{element:'[data-tour-id="elevation-control"]',on:"top"},highlightClass:"tour-highlight",buttons:[Fl],beforeShowPromise:async()=>{await z9(".popup-container"),await z8(300)},when:{show(){Fc(),S=Fo({stepId:"coastmix-practice-11",activeTour:this.tour??null,select:e=>e.coastmix,shouldAdvance:e=>{let{seaLevelRise:t,floodDetails:n}=e;return 0!==t&&(null!==n[0]||null!==n[1])&&n[0]?.distance!=="max"&&n[1]?.distance!=="max"}})},hide(){Fc()}},...Fa},{id:"coastmix-practice-12",title:"Nice!",text:`Sea level rise and storm surge
141      are now addressed by elevating the Harborwalk, but the public realm
142      behind it needs to be integrated into this new condition.`,buttons:[Fl,Fs],attachTo:{element:'[data-tour-id="flooding-message"]',on:"top"},highlightClass:"tour-highlight"},{id:"coastmix-practice-13",title:"Select the berm",text:"Click on the feature called Berm.”",attachTo:{element:'[data-slice-label="Berm"]',on:"bottom"},highlightClass:"tour-highlight",scrollTo:{behavior:"smooth",inline:"center",block:"end"}
142,advanceOn:{event:"click",selector:'[data-slice-label="Berm"]'},buttons:[Fl],...Fa},{id:"coastmix-practice-14",title:"Raise berm",text:"Raise the berm on the right side to meet the height of the harborwalk element.",attachTo:{element:'[data-tour-id="slope-control-group"]',on:"top"},highlightClass:"tour-highlight",buttons:[Fl],when:{show(){Fd(),E=Fo({stepId:"coastmix-practice-14",activeTour:this.tour??null,select:e=>{let t=e.ui.activeSegment;if("number"!=typeof t||t<0)return null;let n=e.street.segments[t];return n?{rightSlopeValue:n.slope.values[1],rightAdjacentElevation:pB(e.street,t)[1]}:null},shouldAdvance:e=>null!==e&&.001>=Math.abs(e.rightSlopeValue-e.rightAdjacentElevation)})},hide(){Fd()}},...Fa},{id:"coastmix-practice-16",title:"Scenario complete!",text:`<p>Congratulations &mdash; you did it!</p>
143      <p>
144        You've prepared for 2030 sea level rise, but can you prepare for
145        2050 and beyond? Now that you've learned the basics of Coastmix,
146        try changing the sea level rise projection year, or start with a
147        different coastal environment, and see what you can come up with!
148      </p>`,classes:"tour-dialog",buttons:[{classes:"btn btn-primary shepherd-btn-center",text:"Explore Coastmix",action(){this.complete()}}]}];function Fh({children:e}){return(0,ec.jsx)(z6,{steps:Ff,children:e})}function Fp(){return(0,ec.jsx)("div",{className:"menu-separator",role:"separator","aria-orientation":"horizontal"})}function Fm({icon:e,children:t}){return void 0!==e?(0,ec.jsx)("kbd",{className:"key key-icon",title:t,children:(0,ec.jsx)(C0,{name:e})}):(0,ec.jsx)("kbd",{className:"key",children:t})}let Fg=(0,ec.jsx)(Fm,{children:(0,ec.jsx)(TQ,{id:"key.shift",defaultMessage:"Shift"})});function Fy(){return(0,ec.jsxs)("div",{className:"keyboard-shortcuts",children:[(0,ec.jsx)(C0,{name:"keyboard",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.help.keyboard-label",defaultMessage:"Keyboard shortcuts:"}),(0,ec.jsx)("table",{children:(0,ec.jsxs)("tbody",{children:[(0,ec.jsxs)("tr",{children:[(0,ec.jsx)("td",{children:(0,ec.jsx)(Fm,{children:(0,ec.jsx)(TQ,{id:"key.backspace",defaultMessage:"Backspace"})})}),(0,ec.jsxs)("td",{children:[(0,ec.jsx)(TQ,{id:"menu.help.remove-instruction",defaultMessage:"Remove a segment you’re pointing at"}),(0,ec.jsx)("br",{}),(0,ec.jsx)(TQ,{id:"menu.help.remove-shift-instruction",defaultMessage:"(hold {shiftKey} to remove all)‎",values:{shiftKey:Fg}})]})]}),(0,ec.jsxs)("tr",{children:[(0,ec.jsxs)("td",{children:[(0,ec.jsx)(TQ,{id:"key.minus",defaultMessage:"Minus",children:e=>(0,ec.jsx)(Fm,{icon:"minus",children:e})}),(0,ec.jsx)(TQ,{id:"key.plus",defaultMessage:"Plus",children:e=>(0,ec.jsx)(Fm,{icon:"plus",children:e})})]}),(0,ec.jsxs)("td",{children:[(0,ec.jsx)(TQ,{id:"menu.help.change-instruction",defaultMessage:"Change width of a segment you’re pointing at"}),(0,ec.jsx)("br",{}),(0,ec.jsx)(TQ,{id:"menu.help.change-shift-instruction",defaultMessage:"(hold {shiftKey} for more precision)‎",values:{shiftKey:Fg}})]})]}),(0,ec.jsxs)("tr",{children:[(0,ec.jsx)("td",{children:(0,ec.jsxs)("span",{dir:"ltr",children:[(0,ec.jsx)(TQ,{id:"key.left-arrow",defaultMessage:"Left arrow",children:e=>(0,ec.jsx)(Fm,{icon:"arrow-left",children:e})}),(0,ec.jsx)(TQ,{id:"key.right-arrow",defaultMessage:"Right arrow",children:e=>(0,ec.jsx)(Fm,{icon:"arrow-right",children:e})})]})}),(0,ec.jsxs)("td",{children:[(0,ec.jsx)(TQ,{id:"menu.help.move-instruction",defaultMessage:"Move around the street"}),(0,ec.jsx)("br",{}),(0,ec.jsx)(TQ,{id:"menu.help.move-shift-instruction",defaultMessage:"(hold {shiftKey} to jump to edges)‎",values:{shiftKey:Fg}})]})]})]})})]})}function Fv(e){let t=kU(e=>e.system.offline),n=kU(e=>e.flags.COASTMIX_MODE?.value??!1),r=kB();return(0,ef.useEffect)(()=>(Rs("?",{shiftKey:"optional"},()=>r(uW("ABOUT"))),()=>{Rl("?",()=>r(uW("ABOUT")))})),(0,ec.jsxs)(z1,{...e,children:[(0,ec.jsxs)(z3,{onClick:()=>r(uW("ABOUT")),children:[(0,ec.jsx)(C0,{name:"info",className:"menu-item-icon"}),n?"About Coastmix…":(0,ec.jsx)(TQ,{id:"menu.item.about",defaultMessage:"About Streetmix…"})]}),!n&&(0,ec.jsxs)(z3,{onClick:()=>r(uW("WHATS_NEW")),children:[(0,ec.jsx)(C0,{name:"whats-new",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.item.whatsnew",defaultMessage:"What’s new?‎"})]}),!t&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsxs)(z3,{href:"https://docs.streetmix.net/user-guide/intro",children:[(0,ec.jsx)(C0,{name:"trail-sign",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.help.guidebook-link",defaultMessage:"Guidebook"})]}),n&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(Fi,{children:(0,ec.jsx)(z3,{onClick:()=>r(dp()),children:"Coastmix tutorial"})}),(0,ec.jsx)(Fh,{children:(0,ec.jsx)(z3,{onClick:()=>r(dp()),children:"Coastmix practice scenario"})})]}),!n&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(Fp,{}),(0,ec.jsxs)(z3,{href:"https://cottonbureau.com/people/streetmix",children:[(0,ec.jsx)(C0,{name:"cart",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.item.store",defaultMessage:"Store"})]})]})]}),(0,ec.jsx)(Fp,{}),(0,ec.jsx)(Fy,{})]})}var ef=el("8NFma"),Fb={};function Fw({userId:e=""}){let{data:t}=hg(e),n=(t?.profileImageUrl??"").endsWith(".jpg")?"image/jpeg":"image/png";return(0,ec.jsx)("span",{className:"avatar",children:(0,ec.jsx)("object",{type:n,data:t?.profileImageUrl,"aria-label":e,children:(0,ec.jsx)("img",{src:"/images/avatar.svg",alt:e})})})}function Fx(e){let t=kU(e=>e.user.signInData?.details),n=kU(e=>e.user.signedIn&&e.user.isSubscriber),r=kU(e=>e.system.offline),i=kB(),o=(0,ef.useCallback)(e=>{let n=t?.id!==void 0?`/${t.id}`:"";window.history.pushState({},"",n),i(A7({userId:t.id}))},[t?.id,i]),a=t?.roles?.includes(ei(d5).ADMIN.value)??!1;return(0,ec.jsxs)(z1,{...e,className:"identity-menu",children:[!r&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsxs)("div",{className:"identity-section",children:[(0,ec.jsxs)("div",{className:"identity-avatar-name",children:[(0,ec.jsx)("div",{className:"identity-avatar-name-left",children:(0,ec.jsx)(Fw,{userId:t?.id})}),(0,ec.jsxs)("div",{className:"identity-avatar-name-right",children:[(0,ec.jsx)("div",{className:"identity-avatar-display-name",children:t?.displayName??t?.id}),t?.displayName!==void 0&&(0,ec.jsx)("div",{className:"menu-item-subtext",children:t.id})]})]}),(0,ec.jsx)("div",{className:"identity-roles",children:(0,ec.jsxs)("ul",{children:[n&&(0,ec.jsxs)("li",{className:"role-badge-subscriber",children:[(0,ec.jsx)("img",{className:"subscriber-icon",src:ei(Fb),alt:""}),"Streetmix+‎"]}),a&&(0,ec.jsx)("li",{className:"role-badge-admin",children:"Admin"})]})})]}),(0,ec.jsx)(Fp,{}),(0,ec.jsxs)(z3,{onClick:o,children:[(0,ec.jsx)(C0,{name:"star",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.item.my-streets",defaultMessage:"My streets"})]})]}),(0,ec.jsxs)(z3,{onClick:()=>i(uW("SETTINGS")),children:[(0,ec.jsx)(C0,{name:"settings",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.item.settings",defaultMessage:"Settings"})]}),(0,ec.jsx)(Fp,{}),(0,ec.jsxs)(z3,{className:"menu-item menu-sign-out",onClick:function(){w0(!1)},children:[(0,ec.jsx)(C0,{name:"sign-out",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.item.sign-out",defaultMessage:"Sign out"})]})]})}function F_({size:e="normal"}){let t=["loading-spinner"];return"small"===e&&t.push("loading-spinner-small"),(0,ec.jsx)("div",{className:t.join(" ")})}function Fk(e){let t=kU(e=>e.locale.locale??"en"),n=kU(e=>e.locale.requestedLocale),r=kB(),i=pa(),o=ps(t);async function a(e){t!==e&&(await r(ux(e)),r(dp()))}return(0,ec.jsx)(z1,{...e,children:i.map(e=>{let t=e.value===o?"menu-item-selected":void 0;return(0,ec.jsxs)(z3,{className:t,onClick:()=>{a(e.value)},role:"menuitemradio","aria-checked":e.value===o,children:[e.value===n&&(0,ec.jsx)(F_,{size:"small"}),e.value===o&&(0,ec.jsx)(C0,{name:"check",className:"menu-item-icon"}),(0,ec.jsxs)("span",{children:[e.label,"‎"]}),(0,ec.jsx)("span",{className:"menu-item-subtext",children:(0,ec.jsx)(TQ,{id:e.key,defaultMessage:e.name})})]},e.value)})})}function FS({type:e}){let t=(0,ec.jsx)("a",{onClick:function(e){e.preventDefault(),wW()},children:(0,ec.jsx)(TQ,{defaultMessage:"Sign in",id:"menu.share.sign-in-twitter-link"})});return"share"===e?(0,ec.jsx)("div",{className:"share-sign-in-promo 
148sign-in-promo",children:(0,ec.jsx)(TQ,{id:"menu.share.sign-in-link",defaultMessage:"{signInLink} for nicer links to your streets and your personal street gallery.",values:{signInLink:t}})}):"template"===e?(0,ec.jsx)("div",{className:"template-sign-in-promo sign-in-promo",children:(0,ec.jsx)(TQ,{id:"menu.new-street.sign-in-link",defaultMessage:"{signInLink} for access to templates.",values:{signInLink:t}})}):void 0}function FE(e,t=!1){let n=`${dv}?type=${e}`+(t?"&tour=true":"");window.open(n,"_blank")}function FO(e){let t=kU(e=>e.flags.NEW_STREET_TEMPLATES.value??!1),n=kU(e=>e.flags.COASTMIX_MODE.value??!1),r=kU(e=>e.user),i=kB();return(0,ec.jsxs)(z1,{...e,children:[n&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsxs)(z3,{onClick:()=>{FE("empty_waterfront")},children:[(0,ec.jsx)(C0,{name:"new-street",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"coastmix.new-empty",defaultMessage:"New empty waterfront"}),(0,ec.jsx)(C0,{name:"external-link"})]}),(0,ec.jsx)(z3,{onClick:function(){i(A7({userId:"examples"}))},"data-tour-id":"new-street-examples",children:(0,ec.jsx)(TQ,{id:"coastmix.new-from-examples",defaultMessage:"From examples..."})}),(0,ec.jsx)(Fp,{})]}),!n&&(0,ec.jsxs)(ec.Fragment,{children:[" ",(0,ec.jsxs)(z3,{onClick:()=>{FE(dg)},children:[(0,ec.jsx)(C0,{name:"new-street",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.new-street.default",defaultMessage:"New example street"}),(0,ec.jsx)(C0,{name:"external-link"})]}),(0,ec.jsxs)(z3,{onClick:()=>{FE("empty")},children:[(0,ec.jsx)(TQ,{id:"menu.new-street.empty",defaultMessage:"New empty street"}),(0,ec.jsx)(C0,{name:"external-link"})]})]}),(0,ec.jsxs)(z3,{onClick:()=>{FE(dy)},children:[(0,ec.jsx)(C0,{name:"copy",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.new-street.copy",defaultMessage:"Make a copy"}),(0,ec.jsx)(C0,{name:"external-link"})]}),t&&!n&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(Fp,{}),(0,ec.jsxs)("div",{className:"dropdown-menu-label",role:"presentation",children:[(0,ec.jsx)(TQ,{id:"menu.new-street.templates-label",defaultMessage:"Street templates"}),(0,ec.jsx)(Mj,{})]}),(0,ec.jsxs)(z3,{disabled:!r.signedIn,onClick:()=>{FE("stroad")},children:[(0,ec.jsx)(TQ,{id:"menu.new-street.templates.stroad",defaultMessage:"Stroad"}),(0,ec.jsx)(C0,{name:"external-link"})]}),!r.signedIn&&(0,ec.jsx)(FS,{type:"template"})]})]})}Fb=D("8jM8X");var ef=(el("8NFma"),el("8NFma")),Fj=Object.create,FT=Object.defineProperty,FC=Object.getOwnPropertyDescriptor,FI=Object.getOwnPropertyNames,FP=Object.getPrototypeOf,FA=Object.prototype.hasOwnProperty,FR=((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of FI(t))FA.call(e,i)||i===n||FT(e,i,{get:()=>t[i],enumerable:!(r=FC(t,i))||r.enumerable});return e})(FT(null!=(N=(A={"node_modules/toggle-selection/index.js"(e,t){"use strict";t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}
148),t&&t.focus()}}}},function(){return R||(0,A[FI(A)[0]])((R={exports:{}}).exports,R),R.exports})())?Fj(FP(N)):{},"default",{value:N,enumerable:!0}),N).default;async function FN(e,t){if(!t.format&&!t.onCopy)return await navigator.clipboard.writeText(e),!0;var n,r,i=(n=t.format,(r={})["text/plain"]=new Blob([e],{type:"text/plain"}),n&&"text/plain"!==n&&(r[n]=new Blob([e],{type:n})),new ClipboardItem(r));return t.onCopy&&(i=t.onCopy(i)||i),await navigator.clipboard.write([i]),!0}async function FM(e,t={}){var n=t.debug||!1;if(window.isSecureContext&&navigator.clipboard)try{return await FN(e,t)}catch(e){n&&console.error("unable to copy using navigator.clipboard: ",e),n&&console.warn("falling back to execCommand")}else n&&!window.isSecureContext&&console.warn("copy-to-clipboard: navigator.clipboard requires a secure context (HTTPS/localhost). Falling back to execCommand.");try{return function(e,t){var n,r=FR(),i=document.createRange(),o=document.getSelection(),a=((n=document.createElement("span")).textContent=e,n.ariaHidden="true",n.style.all="unset",n.style.position="fixed",n.style.top="0",n.style.clip="rect(0, 0, 0, 0)",n.style.whiteSpace="pre",n.style.webkitUserSelect="text",n.style.MozUserSelect="text",n.style.msUserSelect="text",n.style.userSelect="text",n.addEventListener("copy",function(n){n.stopPropagation(),t.format&&(n.preventDefault(),n.clipboardData&&n.clipboardData.setData(t.format,e)),t.onCopy&&n.clipboardData&&t.onCopy(n.clipboardData)}),n),s=function(){let e=document.activeElement;for(;e;){if("DIALOG"===e.tagName&&e.open)return e;e=e.parentElement}return null}()||document.fullscreenElement||document.body,l=!1;try{if(s.appendChild(a),i.selectNodeContents(a),o.removeAllRanges(),o.addRange(i),!document.execCommand("copy"))throw Error("copy command was unsuccessful");l=!0}finally{"function"==typeof o.removeRange?o.removeRange(i):o.removeAllRanges(),s.removeChild(a),r()}return l}(e,t)}catch(a){if(n&&console.error("unable to copy using execCommand: ",a),n&&console.error("falling back to prompt"),t.fallbackToPrompt){var r,i,o=(r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",i=navigator.userAgentData?/mac/i.test(navigator.userAgentData.platform):/mac os x/i.test(navigator.userAgent),r.replace(/#{\s*key\s*}/g,(i?"⌘":"Ctrl")+"+C"));window.prompt(o,e)}}return!1}function FD({shareUrl:e,ref:t}){let[n,r]=(0,ef.useState)(!1),i=TV(),o=n?i.formatMessage({id:"menu.share.copy-success",defaultMessage:"Copied!"}):i.formatMessage({id:"menu.share.copy-to-clipboard",defaultMessage:"Copy to clipboard"});async function a(t){try{await FM(e),r(!0)}catch(e){console.error("clipboard copy error")}}function s(){n&&window.setTimeout(()=>{r(!1)},150)}return(0,ec.jsxs)("div",{className:"share-via-link-container",children:[(0,ec.jsx)(C0,{name:"link",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.share.link",defaultMessage:"Copy and paste this link to share:"}),(0,ec.jsxs)("div",{className:"share-via-link-form",children:[(0,ec.jsx)("input",{className:"share-via-link",type:"text",value:e,spellCheck:"false",ref:t,readOnly:!0}),(0,ec.jsx)(Te,{label:o,role:"label",children:(0,ec.jsx)(T4,{onClick:a,onBlur:s,onMouseLeave:s,children:(0,ec.jsx)(C0,{name:"clipboard",size:"16"})})})]})]})}function FL(){return(0,ec.jsxs)(z3,{href:`https://3dstreet.app/#${window.location.href}`,children:[(0,ec.jsx)(C0,{name:"cube",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.share.3dstreet",defaultMessage:"Open in 3DStreet"})]})}function Fz(){return(0,ec.jsxs)(z3,{href:`https://streetmeter.net/#${window.location.href}`,children:[(0,ec.jsx)(C0,{name:"chart",className:"menu-item-icon"}),"Open in Streetmeter ",(0,ec.jsx)(Mj,{})]})}function FF({shareText:e,shareUrl:t}){let n=kU(e=>e.street),r="https://www.facebook.com/dialog/feed?app_id="+encodeURIComponent("3839342012851678")+"&redirect_uri="+encodeURIComponent(t)+"&link="+encodeURIComponent(t)+"&name="+encodeURIComponent(AG(n))+"&description="+encodeURIComponent(e);return(0,ec.jsxs)(z3,{href:r,children:[(0,ec.jsx)(C0,{name:"facebook",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.share.facebook",defaultMessage:"Share using Facebook"})]})}let FB="share:mastodon-domain";function FU({shareText:e,shareUrl:t}){return(0,ec.jsxs)(z3,{onClick:()=>{!function(e,t){let n=window.prompt("Enter your Mastodon instance domain",window.localStorage.getItem(FB)??"mastodon.social");try{null!==n?window.localStorage.setItem(FB,n):window.localStorage.removeItem(FB)}catch(e){console.error(`Error writing to ${FB} on localStorage`)}if(null===n)return;let r="https://"+encodeURIComponent(n)+"/share?text="+encodeURIComponent(e)+"&url="+encodeURIComponent(t);window.open(r,"_blank")}(e,t)},children:[(0,ec.jsx)(C0,{name:"mastodon",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.share.mastodon",defaultMessage:"Share using Mastodon"}),(0,ec.jsx)(C0,{name:"external-link"})]})}function F$({shareText:e,shareUrl:t}){let n="https://twitter.com/intent/tweet?text="+encodeURIComponent(e)+"&url="+encodeURIComponent(t);return(0,ec.jsxs)(z3,{href:n,children:[(0,ec.jsx)(C0,{name:"twitter",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.share.twitter",defaultMessage:"Share using Twitter"})]})}function FH(){let e=kB();return(0,ec.jsxs)(z3,{onClick:function(t){t.preventDefault(),e(uE()),window.setTimeout(function(){window.print()},0)},children:[(0,ec.jsx)(C0,{name:"print",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.share.print",defaultMessage:"Print…"})]})}
148function FW(){let e=kB();return(0,ec.jsxs)(z3,{onClick:function(t){t.preventDefault(),e(uW("SAVE_AS_IMAGE"))},children:[(0,ec.jsx)(C0,{name:"download",className:"menu-item-icon"}),(0,ec.jsx)(TQ,{id:"menu.share.save",defaultMessage:"Save as image…"}),(0,ec.jsx)("span",{className:"menu-item-subtext",children:(0,ec.jsx)(TQ,{id:"menu.share.save-byline",defaultMessage:"For including in a report, blog, etc."})})]})}function FV(e){let t,n,r=kU(e=>e.system.offline),i=kU(e=>e.user),o=kU(e=>e.street),a=kU(e=>e.flags.COASTMIX_MODE?.value??!1),s=(0,ef.useRef)(null),l=TV(),u=(t=i.signedIn??!1,n=i.signInData?.userId??"","string"==typeof o.creatorId?t&&o.creatorId===n?"string"==typeof o.name?l.formatMessage({id:"menu.share.messages.my-street",defaultMessage:"Check out my street, {streetName}, on Streetmix!"},{streetName:o.name}):l.formatMessage({id:"menu.share.messages.my-street-unnamed",defaultMessage:"Check out my street on Streetmix!"}):"string"==typeof o.name?l.formatMessage({id:"menu.share.messages.someone-elses-street",defaultMessage:"Check out {streetName} by {streetCreator} on Streetmix!"},{streetName:o.name,streetCreator:`@${o.creatorId}`}):l.formatMessage({id:"menu.share.messages.someone-elses-street-unnamed",defaultMessage:"Check out this street by {streetCreator} on Streetmix!"},{streetCreator:`@${o.creatorId}`}):"string"==typeof o.name?l.formatMessage({id:"menu.share.messages.anonymous-creator-street",defaultMessage:"Check out {streetName} on Streetmix!"},{streetName:o.name}):l.formatMessage({id:"menu.share.messages.anonymous-creator-street-unnamed",defaultMessage:"Check out this street on Streetmix!"})),c=window.location.href;return(0,ec.jsxs)(z1,{onShow:function(){window.setTimeout(()=>{s.current&&(s.current.focus(),s.current.select())},200)},className:"share-menu",...e,children:[!r&&(0,ec.jsxs)(ec.Fragment,{children:[!i.signedIn&&(0,ec.jsx)(FS,{type:"share"}),(0,ec.jsx)(FD,{shareUrl:c,ref:s}),(0,ec.jsx)(Fp,{}),!a&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(FU,{shareText:u,shareUrl:c}),(0,ec.jsx)(F$,{shareText:u,shareUrl:c}),(0,ec.jsx)(FF,{shareText:u,shareUrl:c}),(0,ec.jsx)(Fp,{}),(0,ec.jsx)(FL,{}),(0,ec.jsx)(Fz,{}),(0,ec.jsx)(Fp,{})]})]}),(0,ec.jsx)(FH,{}),(0,ec.jsx)(FW,{})]})}var ef=el("8NFma"),Fq={};Fq=D("1o2rM");var FK={};FK=D("7vsiZ");var FZ={};FZ=D("jvnhX");var ef=(el("8NFma"),el("8NFma")),FG=Object.defineProperty,FY=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),FX=ef.forwardRef(FG(function(e,t){return(0,ec.jsx)(Iq.span,{...e,ref:t,style:{...FY,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0})),FJ=(0,Object.defineProperty)(({children:e,label:t})=>{let n=ef.Children.only(e);return(0,ec.jsxs)(ec.Fragment,{children:[ef.cloneElement(n,{"aria-hidden":"true",focusable:"false"}),(0,ec.jsx)(FX,{children:t})]})},"name",{value:"AccessibleIcon",configurable:!0});function FQ(e){return(0,ec.jsx)(FJ,{...e})}function F0({label:e,className:t}){let n=kU(e=>e.system.offline),r=["instance-badge"];t&&r.push(t);let i=function(e,t){if(void 0===t)if(e)return{label:"Demo",className:"instance-label-demo"};else switch(dk??"production"){case"development":return{label:"Dev",className:"instance-label-development"};case"staging":return{label:"Staging",className:"instance-label-staging"};case"sandbox":return{label:"Sandbox",className:"instance-label-sandbox"};default:return{}}return{label:t}}(n,e);return(void 0!==i.className&&r.push(i.className),void 0!==i.label)?(0,ec.jsx)("div",{className:r.join(" "),children:i.label}):null}function F1({translation:e="",label:t="",tooltip:n,children:r=(0,ec.jsx)(TQ,{id:e,defaultMessage:t}),...i}){let o=(0,ec.jsx)("li",{children:(0,ec.jsxs)("button",{className:"menu-trigger",...i,children:[r,(0,ec.jsx)(C0,{name:"chevron-down",size:"14",className:"menu-carat-down"})]})});return void 0!==n?(0,ec.jsx)(Te,{label:n,placement:"bottom",children:o}):o}function F2({onClick:e=()=>void 0}){return(0,ec.jsx)(T4,{primary:!0,className:"menu-sign-in",onClick:e,children:(0,ec.jsx)(TQ,{id:"menu.item.sign-in",defaultMessage:"Sign in"})})}function F3(){return(0,ec.jsxs)(T4,{tertiary:!0,className:"menu-upgrade",onClick:function(){window.open("https://docs.streetmix.net/user-guide/streetmix-plus","_blank")},children:[(0,ec.jsx)("img",{className:"menu-avatar-subscriber",src:ei(Fb),alt:"Streetmix+"}),(0,ec.jsx)(TQ,{id:"menu.item.streetmix-plus",defaultMessage:"Get Streetmix+‎"})]})}
148function F4({user:e,isSubscriber:t=!1,onClick:n}){let{formatMessage:r}=TV(),i=t?r({id:"users.roles.subscriber",defaultMessage:"Streetmix+ member"}):"";return(0,ec.jsxs)("button",{className:"menu-trigger menu-avatar",onClick:n,id:"menubar-identity",children:[(0,ec.jsx)(Fw,{userId:e.id}),t&&(0,ec.jsx)("img",{className:"menu-avatar-badge menu-avatar-subscriber",src:ei(Fb),alt:i,title:i})]})}function F5({onMenuDropdownClick:e}){let t=kU(e=>e.user.signInData?.details),n=kU(e=>e.user.signedIn&&e.user.isSubscriber),r=kU(e=>e.system.offline),i=kU(e=>e.flags.LOCALES_LEVEL_1.value||e.flags.LOCALES_LEVEL_2.value||e.flags.LOCALES_LEVEL_3.value),o=kU(e=>e.flags.COASTMIX_MODE?.value??!1),a=(0,ef.useRef)(null),s=(0,ef.useRef)(null),l=TV().formatMessage({id:"settings.language.label",defaultMessage:"Language"});function u(t){return n=>{let r=n.target.closest("button");null!==r&&e(t,r)}}function c(){let e=a.current?.getBoundingClientRect().left,t=s.current?.getBoundingClientRect().right;window.dispatchEvent(new CustomEvent("stmx:menu_bar_resized",{detail:{rightMenuBarLeftPos:e,leftMenuBarRightPos:t}}))}(0,ef.useEffect)(()=>(window.addEventListener("resize",c),window.addEventListener("stmx:streetnameplate_mounted",c),()=>{window.removeEventListener("resize",c),window.removeEventListener("stmx:streetnameplate_mounted",c)}));let d=o?ei(FK):ei(Fq);return(0,ec.jsxs)("nav",{className:"menu-bar",children:[(0,ec.jsxs)("ul",{className:"menu-bar-left",ref:s,children:[(0,ec.jsxs)("li",{className:"menu-bar-title",children:[(0,ec.jsx)("img",{src:d,alt:"Streetmix",className:"menu-bar-logo",draggable:!1}),(0,ec.jsx)("h1",{children:o?"Coastmix by Streetmix":"Streetmix"}),o&&(0,ec.jsx)("a",{href:"https://boston.gov/",target:"_blank",rel:"noopener",children:(0,ec.jsx)("img",{className:"menu-bar-boston-logo",src:ei(FZ),alt:"City of Boston",draggable:!1})})]}),(0,ec.jsx)(F1,{label:"Help",translation:"menu.item.help",id:"menubar-help",onClick:u("help")}),!r&&!o&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(F1,{label:"Contact",translation:"menu.item.contact",id:"menubar-contact",onClick:u("contact")}),!n&&(0,ec.jsx)("li",{children:(0,ec.jsx)(F3,{})})]})]}),(0,ec.jsxs)("ul",{className:"menu-bar-right",ref:a,children:[o?(0,ec.jsx)(F1,{label:"New waterfront",translation:"coastmix.new-waterfront-menu",id:"menubar-new",onClick:u("new")}):(0,ec.jsx)(F1,{label:"New street",translation:"menu.item.new-street",id:"menubar-new",onClick:u("new")}),(0,ec.jsx)(F1,{label:"Share",translation:"menu.item.share",id:"menubar-share",onClick:u("share")}),i&&(0,ec.jsx)(F1,{id:"menubar-locale",onClick:u("locale"),tooltip:l,children:(0,ec.jsx)(FQ,{label:l,children:(0,ec.jsx)(C0,{name:"language",size:"18"})})}),!r&&!o&&(t?(0,ec.jsx)("li",{children:(0,ec.jsx)(F4,{user:t,isSubscriber:n,onClick:u("identity")})}):(0,ec.jsx)("li",{children:(0,ec.jsx)(F2,{onClick:wW})}))]}),(0,ec.jsx)(F0,{})]})}function F6(){let e=kU(e=>e.menus.id),[t,n]=(0,ef.useState)(),r=kB();function i(e){null===e.target.closest(".menu, .menu-trigger")&&a()}function o(){document.hidden&&a()}function a(){r(dp()),n(void 0)}(0,ef.useEffect)(()=>(document.addEventListener("visibilitychange",o,!1),document.addEventListener("pointerdown",i),Rs("esc",a),()=>{document.removeEventListener("visibilitychange",o,!1),document.removeEventListener("pointerdown",i),Rl("esc",a)}),[]),(0,ef.useEffect)(()=>{null===e&&document.body.focus()},[e]);let s=["menus-container"];return e&&s.push("menus-active"),(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(F5,{onMenuDropdownClick:function(t,i){e===t?(n(void 0),r(dh(null))):(n(i),r(dh(t)))}}),(0,ec.jsxs)("div",{className:s.join(" "),children:[(0,ec.jsx)(Fv,{isActive:"help"===e,menuItemNode:t,"aria-labelledby":"menubar-help"}),(0,ec.jsx)(z4,{isActive:"contact"===e,menuItemNode:t,"aria-labelledby":"menubar-contact"}),(0,ec.jsx)(FO,{isActive:"new"===e,menuItemNode:t,"aria-labelledby":"menubar-new"}),(0,ec.jsx)(FV,{isActive:"share"===e,menuItemNode:t,"aria-labelledby":"menubar-share"}),(0,ec.jsx)(Fk,{isActive:"locale"===e,menuItemNode:t,"aria-labelledby":"menubar-locale"}),(0,ec.jsx)(Fx,{isActive:"identity"===e,menuItemNode:t,alignOpposite:!0,"aria-labelledby":"menubar-identity"})]})]})}var ef=(el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma")),F8=Object.defineProperty,F9=(e,t)=>F8(e,"name",{value:t,configurable:!0});function F7(e){let t=e+"CollectionProvider",[n,r]=Ig(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=F9(e=>{let{scope:t,children:n}=e,r=ef.useRef(null),o=ef.useRef(new Map).current;return(0,ec.jsx)(i,{scope:t,itemMap:o,collectionRef:r,children:n})},"CollectionProvider");a.displayName=t;
148let s=e+"CollectionSlot",l=IR(s),u=ef.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Ih(t,o(s,n).collectionRef);return(0,ec.jsx)(l,{ref:i,children:r})});u.displayName=s;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=IR(c),h=ef.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=ef.useRef(null),s=Ih(t,a),l=o(c,n);return ef.useEffect(()=>(l.itemMap.set(a,{ref:a,...i}),()=>void l.itemMap.delete(a))),(0,ec.jsx)(f,{[d]:"",ref:s,children:r})});function p(t){let n=o(e+"CollectionConsumer",t);return ef.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return h.displayName=c,F9(p,"useCollection"),[{Provider:a,Slot:u,ItemSlot:h},p,r]}F9(F7,"createCollection");var Be=new WeakMap,Bt=class e extends Map{static{F9(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],Be.set(this,!0)}set(e,t){return Be.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),o=this.#e.length,a=Bi(e),s=a>=0?a:o+a,l=s<0||s>=o?-1:s;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,n),this;let u=this.size+ +!i;a<0&&s++;let c=[...this.#e],d=!1;for(let e=s;e<u;e++)if(s===e){let o=c[e];c[e]===t&&(o=c[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=Bn(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=Bn(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Bn(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Bn(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=Br(e,t);return -1===n?void 0:e[n]}function Br(e,t){let n=e.length,r=Bi(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}function Bi(e){return e!=e||0===e?0:Math.trunc(e)}function Bo(e,t){if(e===t)return!0;
148if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function Ba(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Bs(e,t){return e[1].element&&t[1].element?Ba(e[1].element,t[1].element)?-1:1:0}function Bl(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}F9(Bn,"at"),F9(Br,"toSafeIndex"),F9(Bi,"toSafeInteger"),F9(function(e){let t=e+"CollectionProvider",[n,r]=Ig(t),[i,o]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Bt,setItemMap:F9(()=>void 0,"setItemMap")}),a=F9(({state:e,...t})=>e?(0,ec.jsx)(l,{...t,state:e}):(0,ec.jsx)(s,{...t}),"CollectionProvider");a.displayName=t;let s=F9(e=>{let t=m();return(0,ec.jsx)(l,{...e,state:t})},"CollectionInit");s.displayName=t+"Init";let l=F9(e=>{let{scope:t,children:n,state:r}=e,o=ef.useRef(null),[a,s]=ef.useState(null),l=Ih(o,s),[u,c]=r;return ef.useEffect(()=>{if(!a)return;let e=Bl(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),(0,ec.jsx)(i,{scope:t,itemMap:u,setItemMap:c,collectionRef:l,collectionRefObject:o,collectionElement:a,children:n})},"CollectionProviderImpl");l.displayName=t+"Impl";let u=e+"CollectionSlot",c=IR(u),d=ef.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Ih(t,o(u,n).collectionRef);return(0,ec.jsx)(c,{ref:i,children:r})});d.displayName=u;let f=e+"CollectionItemSlot",h=IR(f),p=ef.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=ef.useRef(null),[s,l]=ef.useState(null),u=Ih(t,a,l),{setItemMap:c}=o(f,n),d=ef.useRef(i);Bo(d.current,i)||(d.current=i);let p=d.current;return ef.useEffect(()=>(c(e=>s?e.has(s)?e.set(s,{...p,element:s}).toSorted(Bs):(e.set(s,{...p,element:s}),e.toSorted(Bs)):e),()=>{c(e=>s&&e.has(s)?(e.delete(s),new Bt(e)):e)}),[s,p,c]),(0,ec.jsx)(h,{"data-radix-collection-item":"",ref:u,children:r})});function m(){return ef.useState(new Bt)}function g(t){let{itemMap:n}=o(e+"CollectionConsumer",t);return n}return p.displayName=f,F9(m,"useInitCollection"),F9(g,"useCollection"),[{Provider:a,Slot:d,ItemSlot:p},{createCollectionScope:r,useCollection:g,useInitCollection:m}]},"createCollection"),F9(Bo,"shallowEqual"),F9(Ba,"isElementPreceding"),F9(Bs,"sortByDocumentPosition"),F9(Bl,"getChildListObserver");var ef=(el("8NFma"),el("8NFma"));function Bu(e){let t=ef.useRef(e);return ef.useEffect(()=>{t.current=e}),ef.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(Bu,"name",{value:"useCallbackRef",configurable:!0});var Bc=Object.defineProperty,Bd=(e,t)=>Bc(e,"name",{value:t,configurable:!0}),Bf="dismissableLayer.update",Bh=ef.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Bp=ef.forwardRef(Bd(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=ef.useContext(Bh),[d,f]=ef.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=ef.useState({}),m=Ih(t,f),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=y?g.indexOf(y):-1,b=d?g.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=v,_=ef.useRef(!1),k=Bg(e=>{o?.(e),s?.(e),e.defaultPrevented||l?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:_,dismissableSurfaces:c.dismissableSurfaces,shouldHandlePointerDownOutside:ef.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...c.branches].some(t=>t.contains(e));return x&&!t},[c.branches,x])}),S=By(e=>{if(r&&_.current)return;let t=e.target;![...c.branches].some(e=>e.contains(t))&&(a?.(e),s?.(e),e.defaultPrevented||l?.())},h),E=!!d&&b===g.length-1,O=Bu(e=>{"Escape"===e.key&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return ef.useEffect(()=>{if(E)return h.addEventListener("keydown",O,{capture:!0}),()=>h.removeEventListener("keydown",O,{capture:!0})},[h,E,O]),ef.useEffect(()=>{if(d)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(et=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Bv(),()=>
148{n&&(c.layersWithOutsidePointerEventsDisabled.delete(d),0===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=et))}},[d,h,n,c]),ef.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Bv())},[d,c]),ef.useEffect(()=>{let e=Bd(()=>p({}),"handleUpdate");return document.addEventListener(Bf,e),()=>document.removeEventListener(Bf,e)},[]),(0,ec.jsx)(Iq.div,{...u,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Ia(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ia(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ia(e.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));Bd(function(){let e=ef.useContext(Bh),[t,n]=ef.useState(null);return ef.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var Bm=Bd(()=>!0,"IS_TRUE");function Bg(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:o,shouldHandlePointerDownOutside:a=Bm}=t,s=Bu(e),l=ef.useRef(!1),u=ef.useRef(!1),c=ef.useRef(new Map),d=ef.useRef(()=>{});return ef.useEffect(()=>{function e(){u.current=!1,i.current=!1,c.current.clear()}function t(){return Array.from(c.current.values()).some(Boolean)}function f(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||c.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&d.current()},0)}function h(e){u.current&&c.current.set(e.type,!1)}Bd(e,"resetOutsideInteraction"),Bd(t,"isOutsideInteractionIntercepted"),Bd(f,"handleInteractionCapture"),Bd(h,"handleInteractionBubble");let p=Bd(o=>{if(o.target&&!l.current){let f=function(){n.removeEventListener("click",d.current);let r=t();e(),r||Bb("dismissableLayer.pointerDownOutside",s,h,{discrete:!0})};if(Bd(f,"handleAndDispatchPointerDownOutsideEvent"),!a(o.target)){n.removeEventListener("click",d.current),e(),l.current=!1;return}let h={originalEvent:o};u.current=!0,i.current=r&&0===o.button,c.current.clear(),r&&0===o.button?(n.removeEventListener("click",d.current),d.current=f,n.addEventListener("click",d.current,{once:!0})):f()}else n.removeEventListener("click",d.current),e();l.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of m)n.addEventListener(e,f,!0),n.addEventListener(e,h);let g=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(g),n.removeEventListener("pointerdown",p),n.removeEventListener("click",d.current),m))n.removeEventListener(e,f,!0),n.removeEventListener(e,h)}},[n,s,r,i,o,a]),{onPointerDownCapture:Bd(()=>l.current=!0,"onPointerDownCapture")}}function By(e,t=globalThis?.document){let n=Bu(e),r=ef.useRef(!1);return ef.useEffect(()=>{let e=Bd(e=>{e.target&&!r.current&&Bb("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:Bd(()=>r.current=!0,"onFocusCapture"),onBlurCapture:Bd(()=>r.current=!1,"onBlurCapture")}}function Bv(){let e=new CustomEvent(Bf);document.dispatchEvent(e)}function Bb(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?IK(i,o):i.dispatchEvent(o)}Bd(Bg,"usePointerDownOutside"),Bd(By,"useFocusOutside"),Bd(Bv,"dispatchUpdate"),Bd(Bb,"handleAndDispatchCustomEvent");var ef=el("8NFma"),Bw=Object.defineProperty,Bx=(e,t)=>Bw(e,"name",{value:t,configurable:!0}),B_=0,Bk=null;function BS(){ef.useEffect(()=>{Bk||(Bk={start:BE(),end:BE()});let{start:e,end:t}=Bk;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),B_++,()=>{1===B_&&(Bk?.start.remove(),Bk?.end.remove(),Bk=null),B_=Math.max(0,B_-1)}},[])}function BE(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
148style.position="fixed",e.style.pointerEvents="none",e}Bx(function(e){return BS(),e.children},"FocusGuards"),Bx(BS,"useFocusGuards"),Bx(BE,"createFocusGuard");var ef=el("8NFma"),BO=Object.defineProperty,Bj=(e,t)=>BO(e,"name",{value:t,configurable:!0}),BT="focusScope.autoFocusOnMount",BC="focusScope.autoFocusOnUnmount",BI={bubbles:!1,cancelable:!0},BP=ef.forwardRef(Bj(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=ef.useState(null),u=Bu(i),c=Bu(o),d=ef.useRef(null),f=Ih(t,l),h=ef.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ef.useEffect(()=>{if(r){let e=function(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Bz(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||Bz(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Bz(s)};Bj(e,"handleFocusIn"),Bj(t,"handleFocusOut"),Bj(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,h.paused]),ef.useEffect(()=>{if(s){BF.add(h);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(BT,BI);s.addEventListener(BT,u),s.dispatchEvent(t),t.defaultPrevented||(BA(B$(BN(s)),{select:!0}),document.activeElement===e&&Bz(s))}return()=>{s.removeEventListener(BT,u),setTimeout(()=>{let t=new CustomEvent(BC,BI);s.addEventListener(BC,c),s.dispatchEvent(t),t.defaultPrevented||Bz(e??document.body,{select:!0}),s.removeEventListener(BC,c),BF.remove(h)},0)}}},[s,u,c,h]);let p=ef.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=BR(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&Bz(o,{select:!0})):(e.preventDefault(),n&&Bz(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,ec.jsx)(Iq.div,{tabIndex:-1,...a,ref:f,onKeyDown:p})},"FocusScope"));function BA(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Bz(r,{select:t}),document.activeElement!==n)return}function BR(e){let t=BN(e);return[BM(t,e),BM(t.reverse(),e)]}function BN(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Bj(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function BM(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):BD(r,{upTo:t})))return r}function BD(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function BL(e){return e instanceof HTMLInputElement&&"select"in e}function Bz(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&BL(e)&&t&&e.select()}}Bj(BA,"focusFirst"),Bj(BR,"getTabbableEdges"),Bj(BN,"getTabbableCandidates"),Bj(BM,"findVisible"),Bj(BD,"isHidden"),Bj(BL,"isSelectableInput"),Bj(Bz,"focus");var BF=BB();function BB(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=BU(e,t)).unshift(t)},remove(t){e=BU(e,t),e[0]?.resume()}}}function BU(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function B$(e){return e.filter(e=>"A"!==e.tagName)}Bj(BB,"createFocusScopesStack"),Bj(BU,"arrayRemove"),Bj(B$,"removeLinks");var ef=el("8NFma"),BH=Object.defineProperty,BW=ef[" useId ".trim().toString()]||(()=>void 0),BV=0;function Bq(e){let[t,n]=ef.useState(BW());return Iv(()=>{e||n(e=>e??String(BV++))},[e]),e||(t?`radix-${t}`:"")}BH(Bq,"name",{value:"useId",configurable:!0});var ef=(el("8NFma"),el("8NFma")),BK=Object.defineProperty,BZ=ef.forwardRef(BK(function(e,t){let{children:n,width:r=10,height:i=5,...o}=e;return(0,ec.jsx)(Iq.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ec.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),BG=Object.defineProperty,BY=(e,t)=>BG(e,"name",{value:t,configurable:!0}),BX="Popper",[BJ,BQ]=Ig(BX),[B0,B1]=BJ(BX),B2=BY(e=>{let{__scopePopper:t,children:n}=e,[r,i]=ef.useState(null),[o,a]=ef.useState(void 0);return(0,ec.jsx)(B0,{scope:t,anchor:r,onAnchorChange:i,placementState:o,setPlacementState:a,children:n})},"Popper"),B3=ef.forwardRef(BY(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,o=B1("PopperAnchor",n),a=ef.useRef(null),s=o.onAnchorChange,l=Ih(t,ef.useCallback(e=>{a.current=e,e&&s(e)},[s])),u=ef.useRef(null);ef.useEffect(()=>{if(!r)return;let e=u.current;u.current=r.current,e!==u.current&&s(u.current)});let c=o.placementState&&Un(o.placementState),d=c?.[0],f=c?.[1];return r?null:(0,ec.jsx)(Iq.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:l})},"PopperAnchor")),B4="PopperContent",[B5,B6]=BJ(B4),B8=ef.forwardRef(BY(function(e,t){var n,r,i,o,a,s,l,u,c;let d,f,{__scopePopper:h,side:p="bottom",sideOffset:m=0,align:g="center",alignOffset:y=0,arrowPadding:v=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:_="partial",hideWhenDetached:k=!1,updatePositionStrategy:S="optimized",onPlaced:E,...O}=e,j=B1(B4,h),[T,C]=ef.useState(null),I=Ih(t,C),[P,A]=ef.useState(null),R=II(P),N=R?.width??0,M=R?.height??0,D="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},z=Array.isArray(w)?w:[w],F=z.length>0,B={padding:D,boundary:z.filter(Ue),altBoundary:F},{refs:U,floatingStyles:$,placement:H,isPositioned:W,middlewareData:V}=SJ({strategy:"fixed",placement:p+("center"!==g?"-"+g:""),whileElementsMounted:BY((...e)=>SH(...e,{animationFrame:"always"===S}),"whileElementsMounted"),elements:{reference:j.anchor},middleware:[SQ({mainAxis:m+M,alignmentAxis:y}),b&&S0({mainAxis:!0,crossAxis:!1,limiter:"partial"===_?{fn:(void 0===(i=n)&&(i={}),{options:i,fn(e){var t,n,r,o;let{x:a,y:s,placement:l,rects:u,middlewareData:c}=e,{offset:d=0,mainAxis:f=!0,crossAxis:h=!0}=kY(i,e),p={x:a,y:s},m=k1(l),g=kQ(m),y=p[g],v=p[m],b=kY(d,e),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(t=b.mainAxis)?t:0,crossAxis:null!=(n=b.crossAxis)?n:0};if(f){let e="y"===g?"height":"width",t=u.reference[g]-u.floating[e]+w.mainAxis,n=u.reference[g]+u.reference[e]-w.mainAxis;y<t?y=t:y>n&&(y=n)}if(h){let e="y"===g?"width":"height",t=So.has(kX(l)),n=u.reference[m]-u.floating[e]+(t&&(null==(r=c.offset)?void 0:r[m])||0)+(t?0:w.crossAxis),i=u.reference[m]+u.reference[e]+(t?0:(null==(o=c.offset)?void 0:o[m])||0)-(t?w.crossAxis:0);v<n?v=n:v>i&&(v=i)}return{[g]:y,[m]:v}}}).fn,options:[n,r]}:void 0,...B}),b&&S1({...B}),{name:(d={name:"size",options:s=o={...B,apply:BY(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)},"apply")},async fn(e){let t,n,{placement:r,rects:i,platform:o,elements:a}=e,{apply:l=()=>{},...u}=kY(s,e),c=await o.detectOverflow(e,u),d=kX(r),f=kJ(r),h="y"===k1(r),{width:p,height:m}=i.floating;"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let g=m-c.top-c.bottom,y=p-c.left-c.right,v=kW(m-c[t],g),b=kW(p-c[n],y),w=e.middlewareData.shift,x=!w,_=v,k=b;null!=w&&w.enabled.x&&(k=y),null!=w&&w.enabled.y&&(_=g),x&&!f&&(h?k=p-2*kV(c.left,c.right):_=m-2*kV(c.top,c.bottom)),await l({...e,availableWidth:k,availableHeight:_});let S=await o.getDimensions(a.floating);return p!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}).name,fn:d.fn,options:[o,a]},P&&S2({element:P,padding:v}),Ut({arrowWidth:N,arrowHeight:M}),k&&{name:(f={name:"hide",options:c=l={strategy:"referenceHidden",...B,boundary:F?B.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...i}=kY(c,e);switch(r){case"referenceHidden":{let r=Sr(await n.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Si(r)}}}case"escaped":{let r=Sr(await n.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:Si(r)}}}default:return{}}}}).name,fn:f.fn,options:[l,u]}]}),q=j.setPlacementState;Iv(()=>(q(H),()=>{q(void 0)}),[H,q]);let[K,Z]=Un(H),G=Bu(E);Iv(()=>{W&&G?.()},[W,G]);let Y=V.arrow?.x,X=V.arrow?.y,J=V.arrow?.centerOffset!==0,[Q,ee]=ef.useState();return Iv(()=>{T&&ee(window.getComputedStyle(T).zIndex)},[T]),(0,ec.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:W?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ec.jsx)(B5,{scope:h,placedSide:K,placedAlign:Z,onArrowChange:A,arrowX:Y,arrowY:X,shouldHideArrow:J,children:(0,ec.jsx)(Iq.div,{"data-side":K,"data-align":Z,...O,ref:I,style:{...O.style,animation:W?O.style?.animation:"none"}})})})},"PopperContent")),B9={top:"bottom",right:"left",bottom:"top",left:"r
148ight"},B7=ef.forwardRef(BY(function(e,t){let{__scopePopper:n,...r}=e,i=B6("PopperArrow",n),o=B9[i.placedSide];return(0,ec.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ec.jsx)(BZ,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function Ue(e){return null!==e}BY(Ue,"isNotNull");var Ut=BY(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,u]=Un(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+s/2,h="",p="";return"bottom"===l?(h=o?c:`${d}px`,p=`${-s}px`):"top"===l?(h=o?c:`${d}px`,p=`${r.floating.height+s}px`):"right"===l?(h=`${-s}px`,p=o?c:`${f}px`):"left"===l&&(h=`${r.floating.width+s}px`,p=o?c:`${f}px`),{data:{x:h,y:p}}}}),"transformOrigin");function Un(e){let[t,n="center"]=e.split("-");return[t,n]}BY(Un,"getSideAndAlignFromPlacement");var ef=el("8NFma"),kT=el("2pmb0"),Ur=Object.defineProperty,Ui=ef.forwardRef(Ur(function(e,t){let{container:n,...r}=e,[i,o]=ef.useState(!1);Iv(()=>o(!0),[]);let a=n||i&&globalThis?.document?.body;return a?kT.createPortal((0,ec.jsx)(Iq.div,{...r,ref:t}),a):null},"name",{value:"Portal",configurable:!0})),ef=el("8NFma"),Uo=Object.defineProperty,Ua=(e,t)=>Uo(e,"name",{value:t,configurable:!0});function Us(e,t){return ef.useReducer((e,n)=>t[e][n]??e,e)}Ua(Us,"useStateMachine");var Ul=Ua(e=>{let{present:t,children:n}=e,r=Uu(t),i="function"==typeof n?n({present:r.isPresent}):ef.Children.only(n),o=Ud(r.ref,Uh(i));return"function"==typeof n||r.isPresent?ef.cloneElement(i,{ref:o}):null},"Presence");function Uu(e){let[t,n]=ef.useState(),r=ef.useRef(null),i=ef.useRef(e),o=ef.useRef("none"),a=ef.useRef(void 0),[s,l]=Us(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ef.useEffect(()=>{"mounted"===s?(o.current=a.current??Uf(r.current),a.current=void 0):o.current="none"},[s]),Iv(()=>{let t=r.current,n=i.current;if(n!==e){let r=o.current,s=Uf(t);e?(a.current=s,l("MOUNT")):"none"===s||t?.display==="none"?l("UNMOUNT"):n&&r!==s?l("ANIMATION_OUT"):l("UNMOUNT"),i.current=e}},[e,l]),Iv(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,a=Ua(o=>{let a=Uf(r.current).includes(CSS.escape(o.animationName));if(o.target===t&&a&&(l("ANIMATION_END"),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),s=Ua(e=>{e.target===t&&(o.current=Uf(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:ef.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,a.current=Uf(t)}else r.current=null;n(e)},[])}}function Uc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ud(...e){let t=ef.useRef(e);return t.current=e,ef.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Uc(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];"function"==typeof t?t():Uc(n[e],null)}}},[])}function Uf(e){return e?.animationName||"none"}function Uh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}Ua(Uu,"usePresence"),Ua(Uc,"setRef"),Ua(Ud,"useStableComposedRefs"),Ua(Uf,"getAnimationName"),Ua(Uh,"getElementRef");var ef=(el("8NFma"),el("8NFma")),Up=Object.defineProperty,Um=(e,t)=>Up(e,"name",{value:t,configurable:!0}),Ug=!1;function Uy(){let[e,t]=ef.useState(Ug);return ef.useEffect(()=>{Ug||(Ug=!0,t(!0))},[]),e}Um(Uy,"useIsHydrated");var Uv=ef[" useSyncExternalStore ".trim().toString()];function Ub(){return()=>{}}function Uw(){return Uv(Ub,()=>!0,()=>!1)}Um(Ub,"subscribe"),Um(Uw,"useIsHydratedModern");var Ux="function"==typeof Uv?Uw:Uy,U_=Object.defineProperty,Uk=(e,t)=>U_(e,"name",{value:t,configurable:!0}),US="rovingFocusGroup.onEntryFocus",UE={bubbles:!1,cancelable:!0}
148,UO="RovingFocusGroup",[Uj,UT,UC]=F7(UO),[UI,UP]=Ig(UO,[UC]),[UA,UR]=UI(UO),UN=ef.forwardRef(Uk(function(e,t){return(0,ec.jsx)(Uj.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,ec.jsx)(Uj.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,ec.jsx)(UM,{...e,ref:t})})})},"RovingFocusGroup")),UM=ef.forwardRef(Uk(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=ef.useRef(null),h=Ih(t,f),p=Rx(o),[m,g]=IO({prop:a,defaultProp:s??null,onChange:l,caller:UO}),[y,v]=ef.useState(!1),b=Bu(u),w=UT(n),x=ef.useRef(!1),[_,k]=ef.useState(0);return ef.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(US,b),()=>e.removeEventListener(US,b)},[b]),(0,ec.jsx)(UA,{scope:n,orientation:r,dir:p,loop:i,currentTabStopId:m,onItemFocus:ef.useCallback(e=>g(e),[g]),onItemShiftTab:ef.useCallback(()=>v(!0),[]),onFocusableItemAdd:ef.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:ef.useCallback(()=>k(e=>e-1),[]),children:(0,ec.jsx)(Iq.div,{tabIndex:y||0===_?-1:0,"data-orientation":r,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:Ia(e.onMouseDown,()=>{x.current=!0}),onFocus:Ia(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!y){let t=new CustomEvent(US,UE);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=w().filter(e=>e.focusable);UB([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),c)}}x.current=!1}),onBlur:Ia(e.onBlur,()=>v(!1))})})},"RovingFocusGroupImpl")),UD=ef.forwardRef(Uk(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:a,...s}=e,l=Bq(),u=o||l,c=UR("RovingFocusGroupItem",n),d=c.currentTabStopId===u,f=UT(n),{onFocusableItemAdd:h,onFocusableItemRemove:p,currentTabStopId:m}=c,g=Ux();return Iv(()=>{if(g&&r)return h(),()=>p()},[g,r,h,p]),ef.useEffect(()=>{if(!g&&r)return h(),()=>p()}
148,[g,r,h,p]),(0,ec.jsx)(Uj.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:(0,ec.jsx)(Iq.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:Ia(e.onMouseDown,e=>{r?c.onItemFocus(u):e.preventDefault()}),onFocus:Ia(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Ia(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=UF(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=c.loop?UU(n,r+1):n.slice(r+1)}setTimeout(()=>UB(n))}}),children:"function"==typeof a?a({isCurrentTabStop:d,hasTabStop:null!=m}):a})})},"RovingFocusGroupItem")),UL={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Uz(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function UF(e,t,n){let r=Uz(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return UL[r]}function UB(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function UU(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Uk(Uz,"getDirectionAwareKey"),Uk(UF,"getFocusIntent"),Uk(UB,"focusFirst"),Uk(UU,"wrapArray");var U$=new WeakMap,UH=new WeakMap,UW={},UV=0,Uq=function(e){return e&&(e.host||Uq(e.parentNode))},UK=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=Uq(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});UW[n]||(UW[n]=new WeakMap);var o=UW[n],a=[],s=new Set,l=new Set(i),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(U$.get(e)||0)+1,u=(o.get(e)||0)+1;U$.set(e,l),o.set(e,u),a.push(e),1===l&&i&&UH.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),UV++,function(){a.forEach(function(e){var t=U$.get(e)-1,i=o.get(e)-1;U$.set(e,t),o.set(e,i),t||(UH.has(e)||e.removeAttribute(r),UH.delete(e)),i||e.removeAttribute(n)}),--UV||(U$=new WeakMap,U$=new WeakMap,UH=new WeakMap,UW={})}},UZ=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),UK(r,i,n,"aria-hidden")):function(){return null}},UG=function(){return(UG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function UY(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}"function"==typeof SuppressedError&&SuppressedError;var ef=(el("8NFma"),el("8NFma")),UX="right-scroll-bar-position",UJ="width-before-scroll-bar";function UQ(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ef=(el("8NFma"),el("8NFma")),U0="u">typeof window?ef.useLayoutEffect:ef.useEffect,U1=new WeakMap,U2=(void 0===B&&(B={}),(void 0===U&&(U=function(e){return e}),$=[],H=!1,W={read:function(){if(H)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return $.length?$[$.length-1]:null},useMedium:function(e){var t=U(e,H);return $.push(t),function(){$=$.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(H=!0;$.length;){var t=$;$=[],t.forEach(e)}$={push:function(t){return e(t)},filter:function(){return $}}},assignMedium:function(e){H=!0;var t=[];if($.length){var n=$;
148$=[],n.forEach(e),t=$}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),$={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),$}}}}).options=UG({async:!0,ssr:!1},B),W),U3=function(){},U4=ef.forwardRef(function(e,t){var n,r,i,o,a=ef.useRef(null),s=ef.useState({onScrollCapture:U3,onWheelCapture:U3,onTouchMoveCapture:U3}),l=s[0],u=s[1],c=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,y=e.noRelative,v=e.noIsolation,b=e.inert,w=e.allowPinchZoom,x=e.as,_=e.gapMode,k=UY(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[a,t],r=function(e){return n.forEach(function(t){return UQ(t,e)})},(i=(0,ef.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,U0(function(){var e=U1.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||UQ(e,null)}),r.forEach(function(e){t.has(e)||UQ(e,i)})}U1.set(o,n)},[n]),o),E=UG(UG({},k),l);return ef.createElement(ef.Fragment,null,p&&ef.createElement(g,{sideCar:U2,removeScrollBar:h,shards:m,noRelative:y,noIsolation:v,inert:b,setCallbacks:u,allowPinchZoom:!!w,lockRef:a,gapMode:_}),c?ef.cloneElement(ef.Children.only(d),UG(UG({},E),{ref:S})):ef.createElement(void 0===x?"div":x,UG({},E,{className:f,ref:S}),d))});U4.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},U4.classNames={fullWidth:UJ,zeroRight:UX};var ef=el("8NFma"),U5=function(e){var t=e.sideCar,n=UY(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return ef.createElement(r,UG({},n))};U5.isSideCarExport=!0;var ef=(el("8NFma"),el("8NFma"),el("8NFma")),U6=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=en||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,i;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},U8=function(){var e=U6();return function(t,n){ef.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},U9=function(){var e=U8();return function(t){return e(t.styles,t.dynamic),null}},U7={left:0,top:0,right:0,gap:0},$e=function(e){return parseInt(e||"",10)||0},$t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[$e(n),$e(r),$e(i)]},$n=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return U7;var t=$t(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$r=U9(),$i="data-scroll-locked",$o=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat($i,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(UX," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(UJ," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(UX," .").concat(UX," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(UJ," .").concat(UJ," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat($i,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},$a=function(){var e=parseInt(document.body.getAttribute($i)||"0",10);return isFinite(e)?e:0},$s=function(){ef.useEffect(function(){return document.body.setAttribute($i,($a()+1).toString()),function(){var e=$a()-1;e<=0?document.body.removeAttribute($i):document.body.setAttribute($i,e.toString())}},[])},$l=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;$s();var o=ef.useMemo(function(){return $n(i)},[i]);return ef.createElement($r,{styles:$o(o,!t,i,n?"":"!important")})},$u=!1;if("u">typeof window)try{var $c=Object.defineProperty({},"passive",{get:function(){return $u=!0,!0}});window.addEventListener("test",$c,$c),window.removeEventListener("test",$c,$c)}catch(e){$u=!1}var $d=!!$u&&{passive:!1},$f=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},$h=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),$p(e,r)){var i=$m(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},$p=function(e,t){return"v"===e?$f(t,"overflowY"):$f(t,"overflowX")},$m=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},$g=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;
148do{if(!l)break;var p=$m(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&$p(e,l)&&(f+=g,h+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l))return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(c=!0),c},$y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$v=function(e){return[e.deltaX,e.deltaY]},$b=function(e){return e&&"current"in e?e.current:e},$w=0,$x=[],$_=(V=function(e){var t=ef.useRef([]),n=ef.useRef([0,0]),r=ef.useRef(),i=ef.useState($w++)[0],o=ef.useState(U9)[0],a=ef.useRef(e);ef.useEffect(function(){a.current=e},[e]),ef.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map($b),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=ef.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=$y(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===c||h.contains(c)))return!1;var p=$h(d,c);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=$h(d,c)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var m=r.current||i;return $g(m,t,e,"h"===m?l:u,!0)},[]),l=ef.useCallback(function(e){if($x.length&&$x[$x.length-1]===o){var n="deltaY"in e?$v(e):$y(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map($b).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=ef.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=ef.useCallback(function(e){n.current=$y(e),r.current=void 0},[]),d=ef.useCallback(function(t){u(t.type,$v(t),t.target,s(t,e.lockRef.current))},[]),f=ef.useCallback(function(t){u(t.type,$y(t),t.target,s(t,e.lockRef.current))},[]);ef.useEffect(function(){return $x.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,$d),document.addEventListener("touchmove",l,$d),document.addEventListener("touchstart",c,$d),function(){$x=$x.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,$d),document.removeEventListener("touchmove",l,$d),document.removeEventListener("touchstart",c,$d)}},[]);var h=e.removeScrollBar,p=e.inert;return ef.createElement(ef.Fragment,null,p?ef.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?ef.createElement($l,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},U2.useMedium(V),U5),$k=ef.forwardRef(function(e,t){return ef.createElement(U4,UG({},e,{ref:t,sideCar:$_}))});$k.classNames=U4.classNames;var $S=Object.defineProperty,$E=(e,t)=>$S(e,"name",{value:t,configurable:!0}),$O=["Enter"," "],$j=["ArrowUp","PageDown","End"],$T=["ArrowDown","PageUp","Home",...$j],$C={ltr:[...$O,"ArrowRight"],rtl:[...$O,"ArrowLeft"]},$I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},$P="Menu",[$A,$R,$N]=F7($P),[$M,$D]=Ig($P,[$N,BQ,UP]),$L=BQ(),$z=UP(),[$F,$B]=$M($P),[$U,$$]=$M($P),$H=$E(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=$L(t),[l,u]=ef.useState(null),c=ef.useRef(!1),d=Bu(o),f=Rx(i);return ef.useEffect(()=>{let e=$E(()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},"handleKeyDown"),t=$E(()=>c.current=!1,"handlePointer");return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),ef.useEffect(()=>{if(!n)return;let e=$E(()=>d(!1),"handleBlur");return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,d]),(0,ec.jsx)(B2,{...s,children:(0,ec.jsx)($F,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:(0,ec.jsx)($U,{scope:t,onClose:ef.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a,children:r})})})},"Menu"),$W=ef.forwardRef($E(function(e,t){let{__scopeMenu:n,...r}=e,i=$L(n);return(0,ec.jsx)(B3,{...i,...r,ref:t})},"MenuAnchor")),$V="MenuPortal",[$q,$K]=$M($V,{forceMount:void 0}),$Z=$E(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=$B($V,t);return(0,ec.jsx)($q,{scope:t,forceMount:n,children:(0,ec.jsx)(Ul,{present:n||o.open,children:(0,ec.jsx)(Ui,{asChild:!0,container:i,children:r})})})},"MenuPortal"),$G="MenuContent",[$Y,$X]=$M($G),$J=ef.forwardRef($E(function(e,t){let n=$K($G,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=$B($G,e.__scopeMenu),a=$$($G,e.__scopeMenu);return(0,ec.jsx)($A.Provider,{scope:e.__scopeMenu,children:(0,ec.jsx)(Ul,{present:r||o.open,children:(0,ec.jsx)($A.Slot,{scope:e.__scopeMenu,children:a.modal?(0,ec.jsx)($Q,{...i,ref:t}):(0,ec.jsx)($0,{...i,ref:t})})})})},"MenuContent")),$Q=ef.forwardRef($E(function(e,t){let n=$B($G,e.__scopeMenu),r=ef.useRef(null),i=Ih(t,r);return ef.useEffect(()=>{let e=r.current;if(e)return UZ(e)},[]),(0,ec.jsx)($2,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ia(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentModal")),$0=ef.forwardRef($E(function(e,t){let n=$B($G,e.__scopeMenu);return(0,ec.jsx)($2,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentNonModal")),$1=IR("MenuContent.ScrollLock"),$2=ef.forwardRef($E(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:p,...m}=e,g=$B($G,n),y=$$($G,n),v=$L(n),b=$z(n),w=$R(n),[x,_]=ef.useState(null),k=ef.useRef(null),S=Ih(t,k,g.onContentChange),E=ef.useRef(0),O=ef.useRef(""),j=ef.useRef(0),T=ef.useRef(null),C=ef.useRef("right"),I=ef.useRef(0),P=p?$k:ef.Fragment,A=$E(e=>{let t=O.current+e,n=w().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,o=Hv(n.map(e=>e.textValue),t,i),a=n.find(e=>e.textValue===o)?.ref.current;a&&setTimeout(()=>a.focus())},"handleTypeaheadSearch");ef.useEffect(()=>()=>window.clearTimeout(E.current),[]),BS();let R=ef.useCallback(e=>C.current===T.current?.side&&Hw(e,T.current?.area),[]);return(0,ec.jsx)($Y,{scope:n,searchRef:O,onItemEnter:ef.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:ef.useCallback(e=>{R(e)||(k.current?.focus(),_(null))},[R]),onTriggerLeave:ef.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:j,onPointerGraceIntentChange:ef.useCallback(e=>{T.current=e},[]),children:(0,ec.jsx)(P,{...p?{as:$1,allowPinchZoom:!0}:void 0,children:(0,ec.jsx)(BP,{asChild:!0,trapped:i,onMountAutoFocus:Ia(o,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:(0,ec.jsx)(Bp,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:(0,ec.jsx)(UN,{asChild:!0,...b,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:_,onEntryFocus:Ia(l,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,ec.jsx)(B8,{role:"menu","aria-orientation":"vertical","data-state":Hh(g.open),"data-radix-menu-content":"",dir:y.dir,...v,...m,ref:S,style:{outline:"none",...m.style},onKeyDown:Ia(m.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
148y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&A(e.key));let i=k.current;if(e.target!==i||!$T.includes(e.key))return;e.preventDefault();let o=w().filter(e=>!e.disabled).map(e=>e.ref.current);$j.includes(e.key)&&o.reverse(),Hg(o)}),onBlur:Ia(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),O.current="")}),onPointerMove:Ia(e.onPointerMove,Hx(e=>{let t=e.target,n=I.current!==e.clientX;e.currentTarget.contains(t)&&n&&(C.current=e.clientX>I.current?"right":"left",I.current=e.clientX)}))})})})})})})},"MenuContentImpl")),$3=ef.forwardRef($E(function(e,t){let{__scopeMenu:n,...r}=e;return(0,ec.jsx)(Iq.div,{role:"group",...r,ref:t})},"MenuGroup")),$4=ef.forwardRef($E(function(e,t){let{__scopeMenu:n,...r}=e;return(0,ec.jsx)(Iq.div,{...r,ref:t})},"MenuLabel")),$5="MenuItem",$6="menu.itemSelect",$8=ef.forwardRef($E(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,o=ef.useRef(null),a=$$($5,e.__scopeMenu),s=$X($5,e.__scopeMenu),l=Ih(t,o),u=ef.useRef(!1),c=$E(()=>{let e=o.current;if(!n&&e){let t=new CustomEvent($6,{bubbles:!0,cancelable:!0});e.addEventListener($6,e=>r?.(e),{once:!0}),IK(e,t),t.defaultPrevented?u.current=!1:a.onClose()}},"handleSelect");return(0,ec.jsx)($9,{...i,ref:l,disabled:n,onClick:Ia(e.onClick,c),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:Ia(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:Ia(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(""===s.searchRef.current||" "!==e.key)&&$O.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},"MenuItem")),$9=ef.forwardRef($E(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=$X($5,n),s=$z(n),l=ef.useRef(null),u=Ih(t,l),[c,d]=ef.useState(!1),[f,h]=ef.useState("");return ef.useEffect(()=>{let e=l.current;e&&h((e.textContent??"").trim())},[o.children]),(0,ec.jsx)($A.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,ec.jsx)(UD,{asChild:!0,...s,focusable:!r,children:(0,ec.jsx)(Iq.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:u,onPointerMove:Ia(e.onPointerMove,Hx(e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ia(e.onPointerLeave,Hx(e=>a.onItemLeave(e))),onFocus:Ia(e.onFocus,()=>d(!0)),onBlur:Ia(e.onBlur,()=>d(!1))})})})},"MenuItemImpl")),[$7,He]=$M("MenuRadioGroup",{value:void 0,onValueChange:$E(()=>{},"onValueChange")}),Ht=ef.forwardRef($E(function(e,t){let{value:n,onValueChange:r,...i}=e,o=Bu(r);return(0,ec.jsx)($7,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,ec.jsx)($3,{...i,ref:t})})},"MenuRadioGroup")),Hn=ef.forwardRef($E(function(e,t){let{value:n,...r}=e,i=He("MenuRadioItem",e.__scopeMenu),o=n===i.value;return(0,ec.jsx)(Hi,{scope:e.__scopeMenu,checked:o,children:(0,ec.jsx)($8,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":Hm(o),onSelect:Ia(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),Hr="MenuItemIndicator",[Hi,Ho]=$M(Hr,{checked:!1}),Ha=ef.forwardRef($E(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,o=Ho(Hr,n);return(0,ec.jsx)(Ul,{present:r||Hp(o.checked)||!0===o.checked,children:(0,ec.jsx)(Iq.span,{...i,ref:t,"data-state":Hm(o.checked)})})},"MenuItemIndicator")),Hs=ef.forwardRef($E(function(e,t){let{__scopeMenu:n,...r}=e;return(0,ec.jsx)(Iq.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})},"MenuSeparator")),Hl=ef.forwardRef($E(function(e,t){let{__scopeMenu:n,...r}=e,i=$L(n);return(0,ec.jsx)(B7,{...i,...r,ref:t})},"MenuArrow")),Hu="MenuSub",[Hc,Hd]=$M(Hu),Hf=(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,o=$B(Hu,t),a=$L(t),[s,l]=ef.useState(null),[u,c]=ef.useState(null),d=Bu(i);return ef.useEffect(()=>(!1===o.open&&d(!1),()=>d(!1)),[o.open,d]),(0,ec.jsx)(B2,{...a,children:(0,ec.jsx)($F,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:c,children:(0,ec.jsx)(Hc,{scope:t,contentId:Bq(),triggerId:Bq(),trigger:s,onTriggerChange:l,children:n})})})},"MenuSubTrigger");function Hh(e){return e?"open":"closed"}function Hp(e){return"indeterminate"===e}function Hm(e){return Hp(e)?"indeterminate":e?"checked":"unchecked"}function Hg(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Hy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Hv(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,o=Hy(e,Math.max(i,0));1===r.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}function Hb(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,u=a.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}function Hw(e,t){return!!t&&Hb({x:e.clientX,y:e.clientY},t)}function Hx(e){return t=>
148"mouse"===t.pointerType?e(t):void 0}$E(Hh,"getOpenState"),$E(Hp,"isIndeterminate"),$E(Hm,"getCheckedState"),$E(Hg,"focusFirst"),$E(Hy,"wrapArray"),$E(Hv,"getNextMatch"),$E(Hb,"isPointInPolygon"),$E(Hw,"isPointerInGraceArea"),$E(Hx,"whenMouse");var H_=Object.defineProperty,Hk=(e,t)=>H_(e,"name",{value:t,configurable:!0}),HS="DropdownMenu",[HE,HO]=Ig(HS,[$D]),Hj=$D(),[HT,HC]=HE(HS),HI=Hk(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=Hj(t),u=ef.useRef(null),[c,d]=IO({prop:i,defaultProp:o??!1,onChange:a,caller:HS});return(0,ec.jsx)(HT,{scope:t,triggerId:Bq(),triggerRef:u,contentId:Bq(),open:c,onOpenChange:d,onOpenToggle:ef.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,ec.jsx)($H,{...l,open:c,onOpenChange:d,dir:r,modal:s,children:n})})},"DropdownMenu"),HP=ef.forwardRef(Hk(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=HC("DropdownMenuTrigger",n),a=Hj(n),s=Ih(t,o.triggerRef);return(0,ec.jsx)($W,{asChild:!0,...a,children:(0,ec.jsx)(Iq.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:s,onPointerDown:Ia(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:Ia(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})},"DropdownMenuTrigger")),HA=Hk(e=>{let{__scopeDropdownMenu:t,...n}=e,r=Hj(t);return(0,ec.jsx)($Z,{...r,...n})},"DropdownMenuPortal"),HR=ef.forwardRef(Hk(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=HC("DropdownMenuContent",n),o=Hj(n),a=ef.useRef(!1);return(0,ec.jsx)($J,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:Ia(e.onCloseAutoFocus,e=>{a.current||i.triggerRef.current?.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:Ia(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),HN=ef.forwardRef(Hk(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Hj(n);return(0,ec.jsx)($4,{...i,...r,ref:t})},"DropdownMenuLabel")),HM=ef.forwardRef(Hk(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Hj(n);return(0,ec.jsx)($8,{...i,...r,ref:t})},"DropdownMenuItem")),HD=ef.forwardRef(Hk(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Hj(n);return(0,ec.jsx)(Ht,{...i,...r,ref:t})},"DropdownMenuRadioGroup")),HL=ef.forwardRef(Hk(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Hj(n);return(0,ec.jsx)(Hn,{...i,...r,ref:t})},"DropdownMenuRadioItem")),Hz=ef.forwardRef(Hk(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Hj(n);return(0,ec.jsx)(Ha,{...i,...r,ref:t})},"DropdownMenuItemIndicator")),HF=ef.forwardRef(Hk(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Hj(n);return(0,ec.jsx)(Hs,{...i,...r,ref:t})},"DropdownMenuSeparator")),HB=ef.forwardRef(Hk(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Hj(n);return(0,ec.jsx)(Hl,{...i,...r,ref:t})},"DropdownMenuArrow"));function HU({className:e="",isEditable:t=!1,tooltip:n,sublabel:r,onClick:i=()=>{},icon:o,children:a,...s}){let l=["street-meta-item"];t||l.push("street-meta-item-plain"),e&&l.push(e);let u=(0,ec.jsxs)(ec.Fragment,{children:[void 0!==o&&(0,ec.jsx)("div",{className:"street-meta-icon",children:o}),(0,ec.jsx)("div",{className:"street-meta-content",children:a})]});return t?(0,ec.jsx)("div",{className:l.join(" "),children:(0,ec.jsx)(Te,{label:n,sublabel:r,placement:"bottom",children:(0,ec.jsx)("button",{onClick:function(e){e.preventDefault(),i(e)},"aria-label":n,...s,children:u})})}):(0,ec.jsx)("div",{className:l.join(" "),children:u})}let H$=[40,60,80].map(cE),HH=[12,18,24];function HW(){let e=kU(e=>e.street),t=kU(e=>!e.app.readOnly&&e.flags.EDIT_STREET_WIDTH.value),n=kU(e=>e.locale.locale),r=kB(),i=c_(e.width,e.units,n),o=TV(),a=o.formatMessage({id:"tooltip.street-width",defaultMessage:"Change width of the street"}),s="street-width";t&&(s+=" street-width-editable");let{units:l,occupiedWidth:u}=e,c=1===l?H$:HH;return(0,ec.jsxs)(HI,{children:[(0,ec.jsx)(HP,{asChild:!0,children:(0,ec.jsxs)(HU,{className:s,isEditable:t,icon:(0,ec.jsx)(C0,{name:"ruler"}),tooltip:a,children:[(0,ec.jsx)("span",{className:"underline",children:(0,ec.jsx)(TQ,{id:"width.label",defaultMessage:"{width} width",values:{width:i}})}),function({remainingWidth:e,units:t},n){let r=c_(Math.abs(e),t,n);return e>0?(0,ec.jsx)("span",{className:"street-width-under",children:(0,ec.jsx)(TQ,{id:"width.under",defaultMessage:"({width} room)",values:{width:r}})}):e<0?(0,ec.jsx)("span",{className:"street-width-over",children:(0,ec.jsx)(TQ,{id:"width.over",defaultMessage:"({width} over)",values:{width:r}})}):null}(e,n),t&&(0,ec.jsx)(C0,{name:"chevron-down",className:"menu-carat-down"})]})}),(0,ec.jsx)(HA,{children:(0,ec.jsxs)(HR,{className:"dropdown-menu-content",children:[(0,ec.jsx)(HN,{className:"dropdown-menu-label",children:(0,ec.jsx)(TQ,{id:"width.occupied",defaultMessage:"Occupied width"})}),(0,ec.jsx)(HM,{className:"dropdown-menu-item",disabled:!0,children:(0,ec.jsx)("span",{dir:1===l?"ltr":void 0,children:c_(u,l,n)})}),(0,ec.jsx)(HF,{className:"menu-separator"}),(0,ec.jsx)(HN,{className:"dropdown-menu-label",children:(0,ec.jsx)(TQ,{id:"width.building",defaultMessage:"Building-to-building width"})}),(0,ec.jsxs)(HD,{value:e.width.toString(),onValueChange:function(t){let n=Number.parseFloat(t);n!==e.width&&n&&r(PQ(n))},children:[(0,ec.jsx)(()=>c.map(e=>(0,ec.jsxs)(HL,{className:"dropdown-menu-radio-item",value:e.toString(),children:[(0,ec.jsx)(Hz,{className:"dropdown-menu-item-indicator",children:(0,ec.jsx)(C0,{name:"check"})}),c_(e,l,n)]},e)),{}),!c.includes(e.width)&&(0,ec.jsxs)(HL,{className:"dropdown-menu-radio-item",value:e.width.toString(),style:{marginTop:"1em"},children:[(0,ec.jsx)(Hz,{className:"dropdown-menu-item-indicator",children:(0,ec.jsx)(C0,{name:"check"})}),(0,ec.jsx)("span",{dir:1===l?"ltr":void 0,children:c_(e.width,l,n)})]})]}),(0,ec.jsx)(HM,{className:"dropdown-menu-item",onSelect:function(){let e=1===l?3.048:3,t=1===l?121.92:120,i=gh(u,l),a=o.formatMessage({id:"prompt.new-width",defaultMessage:"New street width (from {minWidth} to {maxWidth}):"},{minWidth:c_(e,l,n),maxWidth:c_(t,l,n)}),s=window.prompt(a,c_(i,l,n));null===s||""===s||r(PQ(gh(C5(s,l),l)))},children:(0,ec.jsx)(TQ,{id:"width.different",defaultMessage:"Different width…‎"})}),(0,ec.jsx)(HF,{className:"menu-separator"}),(0,ec.jsx)(HN,{className:"dropdown-menu-label",children:(0,ec.jsx)(TQ,{id:"width.units",defaultMessage:"Units"})}),(0,ec.jsxs)(HD,{value:l.toString(),onValueChange:function(e){let t=Number.parseFloat(e);0===t?ki(0):1===t&&ki(1)},children:[(0,ec.jsxs)(HL,{className:"dropdown-menu-radio-item",value:"
1480",children:[(0,ec.jsx)(Hz,{className:"dropdown-menu-item-indicator",children:(0,ec.jsx)(C0,{name:"check"})}),(0,ec.jsx)(TQ,{id:"width.metric",defaultMessage:"Metric"})]}),(0,ec.jsxs)(HL,{className:"dropdown-menu-radio-item",value:"1",children:[(0,ec.jsx)(Hz,{className:"dropdown-menu-item-indicator",children:(0,ec.jsx)(C0,{name:"check"})}),(0,ec.jsx)(TQ,{id:"width.imperial",defaultMessage:"U.S. customary / imperial"})]})]}),(0,ec.jsx)(HB,{className:"dropdown-menu-arrow"})]})})]})}function HV(){let e,t=kU(e=>e.street.creatorId),n=kU(e=>e.user.signedIn),r=kU(e=>e.user.signInData?.userId??""),{data:i}=hg(t),o=kB();return(null===t||n&&t===r?null===t&&(n||!AD())&&(e=(0,ec.jsx)(TQ,{id:"users.anonymous",defaultMessage:"Anonymous"})):e=(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(Fw,{userId:t}),(0,ec.jsx)("a",{href:"/"+t,onClick:function(e){e.preventDefault(),o(A7({userId:t}))},children:i?.displayName??t})]}),e)?(0,ec.jsx)(HU,{icon:(0,ec.jsx)(C0,{name:"user"}),children:(0,ec.jsx)(TQ,{id:"users.byline",defaultMessage:"by {user}",values:{user:e}})}):null}let Hq=Symbol.for("constructDateFrom");function HK(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Hq in e?e[Hq](t):e instanceof Date?new e.constructor(t):new Date(t)}function HZ(e){return HK(e,Date.now())}function HG(e,...t){let n=HK.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}function HY(e,t){let n=HK(t?.in||e,e);return n.setHours(0,0,0,0),n}function HX(e,t,n){let[r,i]=HG(n?.in,e,t);return+HY(r)==+HY(i)}function HJ({value:e,timezone:t}){let n=new Date,r=new Date(e),i=n.getTime()-r.getTime();if(i>=0){if(i<6e4)return(0,ec.jsx)("time",{dateTime:e,title:e,children:(0,ec.jsx)(TQ,{id:"datetime.seconds-ago",defaultMessage:"A few seconds ago"})});if(i<6e5)return(0,ec.jsx)("time",{dateTime:e,title:e,children:(0,ec.jsx)(TQ,{id:"datetime.minutes-ago",defaultMessage:"A few minutes ago"})})}return HX(HK(r,r),HZ(r))?(0,ec.jsx)(TQ,{id:"datetime.today",defaultMessage:"Today at {time}",values:{time:(0,ec.jsx)("time",{dateTime:e,title:e,children:(0,ec.jsx)(T2,{timeZone:t,value:e,hour:"numeric",minute:"numeric"})})}}):function(e){var t,n;let r;return HX(HK(e,e),(t=HZ(e),n=void 0,r=HK(n?.in||t,t),isNaN(-1)?HK(n?.in||t,NaN):(r.setDate(r.getDate()+-1),r)))}(r)?(0,ec.jsx)(TQ,{id:"datetime.yesterday",defaultMessage:"Yesterday at {time}",values:{time:(0,ec.jsx)("time",{dateTime:e,title:e,children:(0,ec.jsx)(T2,{timeZone:t,value:e,hour:"numeric",minute:"numeric"})})}}):function(e,t){let[n,r]=HG(void 0,e,t);return n.getFullYear()===r.getFullYear()}(HK(r,r),HZ(r))?(0,ec.jsx)("time",{dateTime:e,title:e,children:(0,ec.jsx)(T1,{value:e,timeZone:t,month:"long",day:"numeric"})}):(0,ec.jsx)("time",{dateTime:e,title:e,children:(0,ec.jsx)(T1,{value:e,timeZone:t,year:"numeric",month:"long",day:"numeric"})})}function HQ(){let e=kU(e=>e.street.updatedAt??e.street.clientUpdatedAt);if(void 0===e)return null;if(AD()&&new Date().getTime()-new Date(e).getTime()<6e3)return null;return(0,ec.jsx)(HU,{icon:(0,ec.jsx)(C0,{name:"time"}),children:(0,ec.jsx)("span",{children:(0,ec.jsx)(HJ,{value:e})})})}function H0(){let e=kU(e=>e.street),t=kU(e=>!e.app.readOnly&&e.flags.GEOTAG.value),n=kB(),r=TV();if(!t&&!e.location)return null;let i=null!==e.location?function(e){let{hierarchy:t}=e,n=(0,ec.jsx)(TQ,{id:"dialogs.geotag.unknown-location",defaultMessage:"Unknown location"}),r=t.locality??t.region??t.neighbourhood;return void 0!==r&&void 0!==t.country&&(r=r+", "+t.country),r??n}(e.location):(0,ec.jsx)(TQ,{id:"dialogs.geotag.add-location",defaultMessage:"Add location"}),o=r.formatMessage({id:"tooltip.geotag",defaultMessage:"Change location"});return(0,ec.jsx)(HU,{isEditable:t,tooltip:o,onClick:function(e){n(uW("GEOTAG"))},icon:(0,ec.jsx)(C0,{name:"location"}),children:(0,ec.jsx)("span",{className:"underline",children:i})})}var H1={};q=function e(){var t="u">typeof self?self:"u">typeof window?window:void 0!==t?t:{},n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,i={},o=0,a={};function s(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new h(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,n){var i=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<i){let t=this._config.newline;t||(o=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,o)),e=[...e.split(t).slice(i)].join(t)}this.isFirstChunk&&x(this._config.beforeFirstChunk)&&void 0!==(o=this._config.beforeFirstChunk(e))&&(e=o),this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e,o=(this._partialLine="",this._handle.parse(i,this._baseIndex,!this._finished));
vendor: 5,700 bytes, line 148
148if(!this._handle.paused()&&!this._handle.aborted()){if(e=o.meta.cursor,this._finished||(this._partialLine=i.substring(e-this._baseIndex),this._baseIndex=e),o&&o.data&&(this._rowCount+=o.data.length),i=this._finished||this._config.preview&&this._rowCount>=this._config.preview,r)t.postMessage({results:o,workerId:a.WORKER_ID,finished:i});else if(x(this._config.chunk)&&!n){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=o=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!i||!x(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),i||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){x(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)),t.ontimeout=w(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadTimeout&&!n&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,r,i=this._config.downloadRequestHeaders;for(r in i)t.setRequestHeader(r,i[r])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))},this._chunkTimeout=function(){this._chunkError("Request timed out after "+this._config.downloadTimeout+"ms")}}function c(e){(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var t,n,r="u">typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,i)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return t=(e=this._config.chunkSize)?(n=t.substring(0,e),t.substring(e)):(n=t,""),this._finished=!t,this.parseChunk(n)}}function f(e){l.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=w(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=w(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=w(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=w(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function h(e){var t,n,r,i,o=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,s=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,u=0,c=0,d=!1,f=!1,h=[],g={data:[],errors:[],meta:{}};function y(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function v(){if(g&&r&&(_("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!y(e)})),w()){if(g)if(Array.isArray(g.data[0])){for(var t,n=0;w()&&n<g.data.length;
vendor: 5,090 bytes, line 148
148n++)g.data[n].forEach(i);g.data.splice(0,1)}else g.data.forEach(i);function i(e){h.push(e)}}function l(t,n){for(var r=e.header?{}:[],i=0;i<t.length;i++){var a=i,l=t[i],l=((t,n)=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&((e=>{if(o.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(n)?parseFloat(n):s.test(n)?new Date(n):""===n?null:n):n)(a=e.header?i>=h.length?"__parsed_extra":h[i]:a,l=e.transform?e.transform(l,a):l);"__parsed_extra"===a?(r[a]=r[a]||[],r[a].push(l)):r[a]=l}return e.header&&(i>h.length?_("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+i,c+n):i<h.length&&_("FieldMismatch","TooFewFields","Too few fields: expected "+h.length+" fields but parsed "+i,c+n)),r}g&&(e.header||e.dynamicTyping||e.transform)&&(t=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(l),t=g.data.length):g.data=l(g.data,0),e.header&&g.meta&&(g.meta.fields=h),c+=t)}function w(){return e.header&&0===h.length}function _(e,t,n,r){e={type:e,code:t,message:n},void 0!==r&&(e.row=r),g.errors.push(e)}x(e.step)&&(i=e.step,e.step=function(t){g=t,w()?v():(v(),0!==g.data.length&&(u+=t.data.length,e.preview&&u>e.preview?n.abort():(g.data=g.data[0],i(g,l))))}),this.parse=function(i,o,s){var l=e.quoteChar||'"',l=(e.newline||(e.newline=this.guessLineEndings(i,l)),r=!1,e.delimiter?x(e.delimiter)&&(e.delimiter=e.delimiter(i),g.meta.delimiter=e.delimiter):((l=((t,n,r,i,o)=>{var s,l,u,c;o=o||[",","	","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var d=0;d<o.length;d++){for(var f,h=o[d],p=0,g=0,v=0,b=(u=void 0,new m({comments:i,delimiter:h,newline:n,preview:10}).parse(t)),w=0;w<b.data.length;w++)r&&y(b.data[w])?v++:(g+=f=b.data[w].length,void 0===u?u=f:0<f&&(p+=Math.abs(f-u),u=f));0<b.data.length&&(g/=b.data.length-v),1.99<g&&(void 0===l||p<l||p===l&&c<g)&&(l=p,s=h,c=g)}return{successful:!!(e.delimiter=s),bestDelimiter:s}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=l.bestDelimiter:(r=!0,e.delimiter=a.DefaultDelimiter),g.meta.delimiter=e.delimiter),b(e));return l.header=w(),e.preview&&e.header&&l.preview++,t=i,g=(n=new m(l)).parse(t,o,s),v(),d?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),t=x(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(d=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return f},this.abort=function(){f=!0,n.abort(),g.meta.aborted=!0,x(e.complete)&&e.complete(g),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(p(t)+"([^]*?)"+p(t),"gm"),n=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<n[0].length;if(1===n.length||e)return"\n";for(var r=0,i=0;i<n.length;i++)"\n"===n[i][0]&&r++;return r>=n.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t=(e=e||{}).delimiter,n=e.newline,r=e.comments,i=e.step,o=e.preview,l=e.fastMode,u=null,c=!1,d=null==e.quoteChar?'"':e.quoteChar,f=d;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<a.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<a.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var h=0,m=!1;this.parse=function(a,g,y){if("string"!=typeof a)throw Error("Input must be a string");var v=a.length,b=t.length,w=n.length,_=r.length,k=x(i),S=[],E=[],O=[],j=h=0;if(!a)return B();if(l||!1!==l&&-1===a.indexOf(d)){for(var T=a.split(n),C=0;C<T.length;C++){if(O=T[C],h+=O.length,C!==T.length-1)h+=n.length;else if(y)break;if(!r||O.substring(0,_)!==r){if(k){if(S=[],M(O.split(t)),U(),m)return B()}else M(O.split(t));if(o&&o<=C)return S=S.slice(0,o),B(!0)}}return B()}for(var I=a.indexOf(t,h),P=a.indexOf(n,h),A=RegExp(p(f)+p(d),"g"),R=a.indexOf(d,h);;)if(a[h]===d)for(R=h,h++;;){if(-1===(R=a.indexOf(d,R+1)))return y||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:S.length,index:h}),z();if(R===v-1)return z(a.substring(h,R).replace(A,d));if(d===f&&a[R+1]===f)R++;else if(d===f||0===R||a[R-1]!==f){-1!==I&&I<R+1&&(I=a.indexOf(t,R+1));var N=D(-1===(P=-1!==P&&P<R+1?a.indexOf(n,R+1):P)?I:Math.min(I,P));if(a.substr(R+1+N,b)===t){O.push(a.substring(h,R).replace(A,d)),a[h=R+1+N+b]!==d&&(R=a.indexOf(d,h)),I=a.indexOf(t,h),P=a.indexOf(n,h);break}if(N=D(P),a.substring(R+1+N,R+1+N+w)===n){if(O.push(a.substring(h,R).replace(A,d)),F(R+1+N+w),I=a.indexOf(t,h),R=a.indexOf(d,h),k&&(U(),m))return B();if(o&&S.length>=o)return B(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:S.length,index:h}),R++}}else if(r&&0===O.length&&a.substring(h,h+_)===r){if(-1===P)return B();h=P+w,P=a.indexOf(n,h),I=a.indexOf(t,h)}else if(-1!==I&&(I<P||-1===P))O.push(a.substring(h,I)),h=I+b,I=a.indexOf(t,h);else{if(-1===P)break;
vendor: 7,251 bytes, line 148
148if(O.push(a.substring(h,P)),F(P+w),k&&(U(),m))return B();if(o&&S.length>=o)return B(!0)}return z();function M(e){S.push(e),j=h}function D(e){return -1!==e&&(e=a.substring(R+1,e))&&""===e.trim()?e.length:0}function z(e){return y||(void 0===e&&(e=a.substring(h)),O.push(e),h=v,M(O),k&&U()),B()}function F(e){h=e,M(O),O=[],P=a.indexOf(n,h)}function B(r){if(e.header&&!g&&S.length&&!c){var i=S[0],o=Object.create(null),a=new Set(i);let t=!1;for(let n=0;n<i.length;n++){let r=s(i[n]);if(o[r=x(e.transformHeader)?e.transformHeader(r,n):r]){let e,s=o[r];for(;e=r+"_"+s,s++,a.has(e););a.add(e),i[n]=e,o[r]++,t=!0,(u=null===u?{}:u)[e]=r}else o[r]=1,i[n]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),c=!0}return{data:S,errors:E,meta:{delimiter:t,linebreak:n,aborted:m,truncated:!!r,cursor:j+(g||0),renamedHeaders:u}}}function U(){i(B()),S=[],E=[]}},this.abort=function(){m=!0},this.getCharIndex=function(){return h}}function g(e){var t=e.data,n=i[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){r=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(x(n.userStep)){for(var a=0;a<t.results.data.length&&(n.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},o),!r);a++);delete t.results}else x(n.userChunk)&&(n.userChunk(t.results,o,t.file),delete t.results)}t.finished&&!r&&y(t.workerId,t.results)}function y(e,t){var n=i[e];x(n.userComplete)&&n.userComplete(t),n.terminate(),delete i[e]}function v(){throw Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t,n=Array.isArray(e)?[]:{};for(t in e)n[t]=b(e[t]);return n}function w(e,t){return function(){e.apply(t,arguments)}}function x(e){return"function"==typeof e}return a.parse=function(n,r){var l,h,p,m=(r=r||{}).dynamicTyping||!1;if(x(m)&&(r.dynamicTypingFunction=m,m={}),r.dynamicTyping=m,r.transform=!!x(r.transform)&&r.transform,void 0!==r.downloadTimeout){var m=parseInt(r.downloadTimeout);if(isNaN(m))throw Error("Config downloadTimeout value ("+r.downloadTimeout+") not parsable by parseInt(val).");r.downloadTimeout=m}if(!r.worker||!a.WORKERS_SUPPORTED)return m=null,a.NODE_STREAM_INPUT,"string"==typeof n?(n=s(n),m=new(r.download?u:d)(r)):!0===n.readable&&x(n.read)&&x(n.on)?m=new f(r):(t.File&&n instanceof File||n instanceof Object)&&(m=new c(r)),m.stream(n);(m=!!a.WORKERS_SUPPORTED&&(h=t.URL||t.webkitURL||null,p=e.toString(),l=a.BLOB_URL||(a.BLOB_URL=h.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",p,")();"],{type:"text/javascript"}))),(l=new t.Worker(l)).onmessage=g,l.id=o++,i[l.id]=l)).userStep=r.step,m.userChunk=r.chunk,m.userComplete=r.complete,m.userError=r.error,r.step=x(r.step),r.chunk=x(r.chunk),r.complete=x(r.complete),r.error=x(r.error),delete r.worker,m.postMessage({input:n,config:r,workerId:m.id})},a.unparse=function(e,t){var n=!1,r=!0,i=",",o="\r\n",s='"',l=s+s,u=!1,c=null,d=!1,f=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(l=(s=t.quoteChar)+s),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+s),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),RegExp(p(s),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,u);if("object"==typeof e[0])return h(c||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||c),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],u);throw Error("Unable to serialize unrecognized input");function h(e,t,n){var a="",s=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),l=!Array.isArray(t[0]);if(s&&r){for(var u=0;u<e.length;u++)0<u&&(a+=i),a+=m(e[u],u);0<t.length&&(a+=o)}for(var c=0;c<t.length;c++){var d=(s?e:t[c]).length,f=!1,h=s?0===Object.keys(t[c]).length:0===t[c].length;if(n&&!s&&(f="greedy"===n?""===t[c].join("").trim():1===t[c].length&&0===t[c][0].length),"greedy"===n&&s){for(var p=[],g=0;g<d;g++){var y=l?e[g]:g;p.push(t[c][y])}f=""===p.join("").trim()}if(!f){for(var v=0;v<d;v++){0<v&&!h&&(a+=i);var b=s&&l?e[v]:v;a+=m(t[c][b],v)}c<t.length-1&&(!n||0<d&&!h)&&(a+=o)}}return a}function m(e,t){var r,o,u;return null==e?"":e.constructor===Date?isNaN(e.getTime())?"":e.toISOString():(u=!1,d&&"string"==typeof e&&d.test(e)&&(e="'"+e,u=!0),o=(r=e.toString()).replace(f,l),(u=u||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1})(o,a.BAD_DELIMITERS)||-1<o.indexOf(i)||-1<r.indexOf(s)||" "===o.charAt(0)||" "===o.charAt(o.length-1))?s+o+s:o)}},a.RECORD_SEP="\x1e",a.UNIT_SEP="\x1f",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!t.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=0xa00000,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=m,a.ParserHandle=h,a.NetworkStreamer=u,a.FileStreamer=c,a.StringStreamer=d,a.ReadableStreamStreamer=f,r&&(t.onmessage=function(e){e=e.data,void 0===a.WORKER_ID&&e&&(a.WORKER_ID=e.workerId),"string"==typeof e.input?t.postMessage({workerId:a.WORKER_ID,results:a.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=a.parse(e.input,e.config))&&t.postMessage({workerId:a.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(l.prototype)).constructor=u,(c.prototype=Object.create(l.prototype)).constructor=c,(d.prototype=Object.create(d.prototype)).constructor=d,(f.prototype=Object.create(l.prototype)).constructor=f,a},"function"==typeof define&&define.amd?define([],q):H1=q();var H2={};H2=JSON.parse('{"common":{"id":"common","__comment":"This is a special type of data source that cannot be selected on its own but provides common values that other data sources inherit from.","segments":{"magic-carpet":{"average":2,"potential":3}}},"giz":{"id":"giz","source_title":"Passenger capacity of different transport modes","source_author":"Transformative Urban Mobility Initiative (TUMI)","source_url":"https://www.transformative-mobility.org/publications/passenger-capacity-of-different-transport-modes","typical_lane_width":{"metric":3.5,"imperial":11.5},"segments":{"sidewalk":{"average":15000,"potential":15000}
148,"drive-lane":{"average":1500,"potential":2000,"variants":{"car-type:pedestrian":{"inherits":"sidewalk"}}},"bike-lane":{"average":12000,"potential":12000,"variants":{"bike-direction:twoway-left":{"average":24000,"potential":24000},"bike-direction:twoway-right":{"average":24000,"potential":24000}}},"scooter":{"inherits":"bike-lane"},"light-rail":{"average":18000,"potential":20000},"streetcar":{"inherits":"light-rail"},"bus-lane":{"average":5000,"potential":8000},"brt-lane":{"average":14000,"potential":24000}}},"nacto":{"id":"nacto","source_title":"Transit Street Design Guide (2016)","source_author":"NACTO","source_url":"https://nacto.org/publication/transit-street-design-guide/introduction/why/designing-move-people/","typical_lane_width":{"metric":3,"imperial":10},"segments":{"drive-lane":{"minimum":600,"potential":1600,"variants":{"car-type:pedestrian":{"inherits":"sidewalk"}}},"bus-lane":{"minimum":1000,"potential":2800},"bike-lane":{"average":3750,"variants":{"bike-direction:twoway-left":{"average":7500},"bike-direction:twoway-right":{"average":7500}}},"scooter":{"inherits":"bike-lane"},"brt-lane":{"minimum":4000,"potential":8000},"sidewalk":{"average":9000},"light-rail":{"average":10000,"potential":25000},"streetcar":{"inherits":"light-rail"}}},"vancouver":{"id":"vancouver","source_title":"People Moving Capacity: Vancouver Urban Transportation Modes (2017)","source_author":"City of Vancouver","source_url":"https://twitter.com/BrentToderian/status/953085021744611328","typical_lane_width":{"metric":3,"imperial":10},"segments":{"drive-lane":{"minimum":700,"average":850,"potential":1000,"variants":{"car-type:pedestrian":{"inherits":"sidewalk"}}},"bus-lane":{"minimum":1000,"average":1700,"potential":2000},"bike-lane":{"minimum":2000,"potential":3000,"variants":{"bike-direction:twoway-left":{"minimum":4000,"potential":6000},"bike-direction:twoway-right":{"minimum":4000,"potential":6000}}},"scooter":{"inherits":"bike-lane"},"brt-lane":{"minimum":3000,"average":3500,"potential":4000},"sidewalk":{"minimum":5000,"average":5500,"potential":6500},"light-rail":{"minimum":2000,"potential":2500},"streetcar":{"inherits":"light-rail"}}}}');let H3="common",H4=function(){let e={},t=ei(H2)[H3],n=function(e,t){let n={...e};for(let e=0;e<t.length;e++){let r=t[e];delete n[r]}return n}(ei(H2),[H3]),r=Object.keys(n);for(let i=0;i<r.length;i++){let o=r[i],a=n[o];e[o]={...a,segments:{...t.segments,...function e(t,n){let r={},i=n??t,o=Object.keys(t);for(let n=0;n<o.length;n++){let a,s=o[n],l=t[s];a=void 0!==l.inherits?{...i[l.inherits]}:{...l},l.variants&&(a.variants=e(l.variants,t)),r[s]=a}return r}(a.segments)}}}return e}();function H5(e="giz"){return H4[e]}function H6(e,t="giz"){let n=e.warnings??[!1],r=H5(t).segments[e.type];if(void 0!==r)return(r.variants&&void 0!==e.variant&&Object.entries(e.variant).forEach(e=>{let t=e.join(":");r.variants?.[t]&&(r=r.variants[t])}),n[1]||n[2]||n[6])?{average:0,potential:0}:{average:r.average??r.minimum??0,potential:r.potential??r.average??0}}function H8(e){let{segments:t,capacitySource:n}=e,r=t.map(e=>H6(e,n)),i=(e,t)=>e+t;return{average:r.map(e=>e?.average??0).reduce(i,0),potential:r.map(e=>e?.potential??0).reduce(i,0)}}function H9(e,t){let n=e.capacity?.average??0,r=t.capacity?.average??0,i=e.capacity?.potential??0,o=t.capacity?.potential??0;return n<r?-1:n>r?1:i<o?-1:+(i>o)}function H7(){let e=kU(e=>e.street),t=kU(e=>e.locale.locale),n=kB(),r=TV(),i=H8(e).average??0,o=r.formatMessage({id:"dialogs.analytics.heading",defaultMessage:"Analytics"});return i>0?(0,ec.jsx)(HU,{isEditable:!0,tooltip:o,onClick:()=>n(uW("ANALYTICS")),icon:(0,ec.jsx)(C0,{name:"chart"}),children:(0,ec.jsx)("span",{className:"underline",children:(0,ec.jsx)(TQ,{id:"capacity.ppl-per-hour",defaultMessage:"{capacity} people/hr",values:{capacity:cv(i,t)}})})}):null}function We(){let e=kU(e=>e.flags.ANALYTICS?.value??!1);return(0,ec.jsxs)("div",{className:"street-meta",children:[(0,ec.jsx)(HW,{}),e&&(0,ec.jsx)(H7,{}),(0,ec.jsx)(H0,{}),(0,ec.jsx)(HV,{}),(0,ec.jsx)(HQ,{})]})}var ef=el("8NFma");let Wt=(0,ef.memo)(function({name:e,as:t="div",ref:n,onClick:r=()=>{},editable:i=!1}){var o;let[a,s]=(0,ef.useState)(!1),l="span"===t?"span":"div";function u(){s(!0)}function c(){s(!1)}let d=(0,ec.jsxs)(ec.Fragment,{children:[i&&a&&(0,ec.jsx)(l,{className:"street-name-hover-prompt",children:(0,ec.jsx)(TQ,{id:"street.rename",defaultMessage:"Click to rename"})}),(0,ec.jsx)(l,{className:"street-name-text",children:(null===(o=e)?null:((o=o.trim()).length>50&&(o=o.substring(0,50)+"…"),o))??(0,ec.jsx)(TQ,{id:"street.default-name",defaultMessage:"Unnamed St"})})]});return"span"===t?(0,ec.jsx)("span",{className:"street-name",ref:n,onMouseEnter:u,onMouseLeave:c,onClick:r,children:d}):(0,ec.jsx)("div",{className:"street-name",ref:n,onMouseEnter:u,onMouseLeave:c,onClick:r,children:d})});function Wn(){let e=kU(e=>!e.ui.welcomePanelVisible),t=kU(e=>!e.app.readOnly&&e.flags.EDIT_STREET_NAME.value),n=kU(e=>e.street.name),r=kB(),i=TV(),o=(0,ef.useRef)(null),a=(0,ef.useRef)(null),[s,l]=(0,ef.useState)({}),[u,c]=(0,ef.useState)({left:0,width:0}),d=(0,ef.useCallback)(()=>{var e;if(null===o.current)return;let t=o.current.getBoundingClientRect(),n={left:t.left,width:t.width};a.current&&n.left===a.current.left&&n.width===a.current.width||(a.current=n,c({left:(e=n).left,width:e.width}))},[]),f=(0,ef.useCallback)(e=>{void 0!==e.detail&&l(e.detail)},[]);return(0,ef.useEffect)(()=>(window.addEventListener("resize",d),window.addEventListener("stmx:menu_bar_resized",f),window.dispatchEvent(new CustomEvent("stmx:streetnameplate_mounted")),()=>{window.removeEventListener("resize",d),window.removeEventListener("stmx:menu_bar_resized",f)}),[d,f]),(0,ef.useEffect)(()=>{d()},[n,d]),(0,ec.jsxs)("div",{className:function(){let t=["street-nameplate-container"],{leftMenuBarRightPos:n,rightMenuBarLeftPos:r}=s;return void 0!==n&&void 0!==r&&(u.left<n||u.left+u.width>r)&&t.push("move-down-for-menu"),e||t.push("hidden"),t.join(" ")}(),children:[(0,ec.jsx)(Wt,{editable:t,ref:o,name:n,onClick:function(){if(!t)return;let e=window.prompt(i.formatMessage({id:"prompt.new-street",defaultMessage:"New street name:"}),"string"==typeof n?n:i.formatMessage({id:"street.default-name",defaultMessage:"Unnamed St"}));null!==e&&r(cG(e,!0))}}),(0,ec.jsx)(We,{})]})}let Wr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wo={};function Wa(e,t){return((t||Wo).jsx?Wi:Wr).test(e)}let Ws=/[ \t\n\f\r]/g;function Wl(e){return""===e.replace(Ws,"")}class Wu{constructor(e,t){this.attribute=t,this.property=e}}Wu.prototype.attribute="",Wu.prototype.booleanish=!1,Wu.prototype.boolean=!1,Wu.prototype.commaOrSpaceSeparated=!1,Wu.prototype.commaSeparated=!1,Wu.prototype.defined=!1,Wu.prototype.mustUseProperty=!1,Wu.prototype.number=!1,Wu.prototype.overloadedBoolean=!1,Wu.prototype.property="",Wu.prototype.spaceSeparated=!1,Wu.prototype.space=void 0;var Wc={};M(Wc,"boolean",()=>Wf),M(Wc,"booleanish",()=>Wh),M(Wc,"overloadedBoolean",()=>Wp),M(Wc,"number",()=>Wm),M(Wc,"spaceSeparated",()=>Wg),M(Wc,"commaSeparated",()=>Wy),M(Wc,"commaOrSpaceSeparated",()=>Wv);let Wd=0,Wf=Wb(),Wh=Wb(),Wp=Wb(),Wm=Wb(),Wg=Wb(),Wy=Wb(),Wv=Wb();function Wb(){return 2**++Wd}let Ww=Object.keys(Wc);class Wx extends Wu{constructor(e,t,n,r){let i=-1;
148if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<Ww.length;){const e=Ww[i];!function(e,t,n){n&&(e[t]=n)}(this,Ww[i],(n&Wc[e])===Wc[e])}}}function W_(e){return e.toLowerCase()}Wx.prototype.defined=!0;let Wk=/[A-Z]/g,WS=/-[a-z]/g,WE=/^data[-\w.:]+$/i;function WO(e){return"-"+e.toLowerCase()}function Wj(e){return e.charAt(1).toUpperCase()}let WT={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class WC{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function WI(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new WC(n,r,t)}function WP(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new Wx(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[W_(r)]=r,n[W_(o.attribute)]=r}return new WC(t,n,e.space)}WC.prototype.normal={},WC.prototype.property={},WC.prototype.space=void 0;let WA=WP({properties:{ariaActiveDescendant:null,ariaAtomic:Wh,ariaAutoComplete:null,ariaBusy:Wh,ariaChecked:Wh,ariaColCount:Wm,ariaColIndex:Wm,ariaColSpan:Wm,ariaControls:Wg,ariaCurrent:null,ariaDescribedBy:Wg,ariaDetails:null,ariaDisabled:Wh,ariaDropEffect:Wg,ariaErrorMessage:null,ariaExpanded:Wh,ariaFlowTo:Wg,ariaGrabbed:Wh,ariaHasPopup:null,ariaHidden:Wh,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wg,ariaLevel:Wm,ariaLive:null,ariaModal:Wh,ariaMultiLine:Wh,ariaMultiSelectable:Wh,ariaOrientation:null,ariaOwns:Wg,ariaPlaceholder:null,ariaPosInSet:Wm,ariaPressed:Wh,ariaReadOnly:Wh,ariaRelevant:null,ariaRequired:Wh,ariaRoleDescription:Wg,ariaRowCount:Wm,ariaRowIndex:Wm,ariaRowSpan:Wm,ariaSelected:Wh,ariaSetSize:Wm,ariaSort:null,ariaValueMax:Wm,ariaValueMin:Wm,ariaValueNow:Wm,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function WR(e,t){return t in e?e[t]:t}function WN(e,t){return WR(e,t.toLowerCase())}"use strict";"use strict";let WM=WP({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wy,acceptCharset:Wg,accessKey:Wg,action:null,allow:null,allowFullScreen:Wf,allowPaymentRequest:Wf,allowUserMedia:Wf,alt:null,as:null,async:Wf,autoCapitalize:null,autoComplete:Wg,autoFocus:Wf,autoPlay:Wf,blocking:Wg,capture:null,charSet:null,checked:Wf,cite:null,className:Wg,cols:Wm,colSpan:null,content:null,contentEditable:Wh,controls:Wf,controlsList:Wg,coords:Wm|Wy,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Wf,defer:Wf,dir:null,dirName:null,disabled:Wf,download:Wp,draggable:Wh,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Wf,formTarget:null,headers:Wg,height:Wm,hidden:Wf,high:Wm,href:null,hrefLang:null,htmlFor:Wg,httpEquiv:Wg,id:null,imageSizes:null,imageSrcSet:null,inert:Wf,inputMode:null,integrity:null,is:null,isMap:Wf,itemId:null,itemProp:Wg,itemRef:Wg,itemScope:Wf,itemType:Wg,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Wf,low:Wm,manifest:null,max:null,maxLength:Wm,media:null,method:null,min:null,minLength:Wm,multiple:Wf,muted:Wf,name:null,nonce:null,noModule:Wf,noValidate:Wf,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Wf,optimum:Wm,pattern:null,ping:Wg,placeholder:null,playsInl
148ine:Wf,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Wf,referrerPolicy:null,rel:Wg,required:Wf,reversed:Wf,rows:Wm,rowSpan:Wm,sandbox:Wg,scope:null,scoped:Wf,seamless:Wf,selected:Wf,shadowRootClonable:Wf,shadowRootDelegatesFocus:Wf,shadowRootMode:null,shape:null,size:Wm,sizes:null,slot:null,span:Wm,spellCheck:Wh,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Wm,step:null,style:null,tabIndex:Wm,target:null,title:null,translate:null,type:null,typeMustMatch:Wf,useMap:null,value:Wh,width:Wm,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wg,axis:null,background:null,bgColor:null,border:Wm,borderColor:null,bottomMargin:Wm,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Wf,declare:Wf,event:null,face:null,frame:null,frameBorder:null,hSpace:Wm,leftMargin:Wm,link:null,longDesc:null,lowSrc:null,marginHeight:Wm,marginWidth:Wm,noResize:Wf,noHref:Wf,noShade:Wf,noWrap:Wf,object:null,profile:null,prompt:null,rev:null,rightMargin:Wm,rules:null,scheme:null,scrolling:Wh,standby:null,summary:null,text:null,topMargin:Wm,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Wm,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Wf,disableRemotePlayback:Wf,prefix:null,property:null,results:Wm,security:null,unselectable:null},space:"html",transform:WN}),WD=WP({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
148-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Wv,accentHeight:Wm,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Wm,amplitude:Wm,arabicForm:null,ascent:Wm,attributeName:null,attributeType:null,azimuth:Wm,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Wm,by:null,calcMode:null,capHeight:Wm,className:Wg,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Wm,diffuseConstant:Wm,direction:null,display:null,dur:null,divisor:Wm,dominantBaseline:null,download:Wf,dx:null,dy:null,edgeMode:null,editable:null,elevation:Wm,enableBackground:null,end:null,event:null,exponent:Wm,externalResourcesRequired:null,fill:null,fillOpacity:Wm,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wy,g2:Wy,glyphName:Wy,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Wm,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Wm,horizOriginX:Wm,horizOriginY:Wm,id:null,ideographic:Wm,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Wm,k:Wm,k1:Wm,k2:Wm,k3:Wm,k4:Wm,kernelMatrix:Wv,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Wm,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Wm,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
148Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Wm,overlineThickness:Wm,paintOrder:null,panose1:null,path:null,pathLength:Wm,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wg,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Wm,pointsAtY:Wm,pointsAtZ:Wm,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wv,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wv,rev:Wv,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wv,requiredFeatures:Wv,requiredFonts:Wv,requiredFormats:Wv,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Wm,specularExponent:Wm,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Wm,strikethroughThickness:Wm,string:null,stroke:null,strokeDashArray:Wv,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Wm,strokeOpacity:Wm,strokeWidth:null,style:null,surfaceScale:Wm,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wv,tabIndex:Wm,tableValues:null,target:null,targetX:Wm,targetY:Wm,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wv,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Wm,underlineThickness:Wm,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Wm,values:null,vAlphabetic:Wm,vMathematical:Wm,vectorEffect:null,vHanging:Wm,vIdeographic:Wm,version:null,vertAdvY:Wm,vertOriginX:Wm,vertOriginY:Wm,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Wm,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:WR}),WL=WP({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Wz=WP({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:WN}),WF=WP({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),WB=WI([WA,WM,WL,Wz,WF],"html"),WU=WI([WA,WD,WL,Wz,WF],"svg");var W$={},WH=(W$&&W$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(el("gOknb")),WW={};Object.defineProperty(WW,"__esModule",{value:!0}),WW.camelCase=void 0;var WV=/^--[a-zA-Z0-9_-]+$/,Wq=/-([a-z])/g,WK=/^[^-]+$/,WZ=/^-(webkit|moz|ms|o|khtml)-/,WG=/^-(ms)-/,WY=function(e,t){return t.toUpperCase()},WX=function(e,t){return"".concat(t,"-")};function WJ(e,t){var n={};return e&&"string"==typeof e&&(0,WH.default)(e,function(e,r){e&&r&&(n[(0,WW.camelCase)(e,t)]=r)}),n}WW.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||WK.test(n)||WV.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(WG,WX):e.replace(WZ,WX)).replace(Wq,WY))},WJ.default=WJ,W$=WJ;let WQ=W1("end"),W0=W1("start");function W1(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function W2(e){return e&&"object"==typeof e?"position"in e||"type"in e?W4(e.position):"start"in e||"end"in e?W4(e):"line"in e||"column"in e?W3(e):"":""}function W3(e){return W5(e&&e.line)+":"+W5(e&&e.column)}function W4(e){return W3(e&&e.start)+"-"+W3(e&&e.end)}function W5(e){return e&&"number"==typeof e?e:1}class W6 extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=W2(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}W6.prototype.file="",W6.prototype.name="",W6.prototype.reason="",W6.prototype.message="",W6.prototype.stack="",W6.prototype.column=void 0,W6.prototype.line=void 0,W6.prototype.ancestors=void 0,W6.prototype.cause=void 0,W6.prototype.fatal=void 0,W6.prototype.place=void 0,W6.prototype.ruleId=void 0,W6.prototype.source=void 0;let W8={}.hasOwnProperty,W9=new Map,W7=/[A-Z]/g,Ve=new Set(["table","tbody","thead","tfoot","tr"]),Vt=new Set(["td","th"]),Vn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Vr(e,t,n){var r,i,o,a,s,l,u,c,d;let f,h,p,m,g,y,v,b,w,x,_;return"element"===t.type?(r=e,i=t,o=n,h=f=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===f.space&&(r.schema=WU),r.ancestors.push(i),p=Vs(r,i.tagName,!1),m=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&W8.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=W_(t),r=t,i=Wu;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&WE.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(WS,Wj);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!WS.test(e)){let n=e.replace(Wk,WO);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Wx}
148return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return ei(W$)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new W6("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Vn+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)W8.call(e,t)&&(n[function(e){let t=e.replace(W7,Vu);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?WT[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,a]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&Vt.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),g=Va(r,i),Ve.has(i.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&Wl(e.value):Wl(e))})),Vi(r,m,p,i),Vo(m,g),r.ancestors.pop(),r.schema=f,r.create(i,p,m,o)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Vl(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(a=e,s=t,l=n,v=y=a.schema,"svg"===s.name&&"html"===y.space&&(a.schema=WU),a.ancestors.push(s),b=null===s.name?a.Fragment:Vs(a,s.name,!0),w=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Vl(e,t.position);else{let i,o=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else Vl(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(a,s),x=Va(a,s),Vi(a,w,b,s),Vo(w,x),a.ancestors.pop(),a.schema=y,a.create(s,b,w,l)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Vl(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,Vo(_={},Va(u,c)),u.create(c,u.Fragment,_,d)):"text"===t.type?t.value:void 0}function Vi(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Vo(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Va(e,t){let n=[],r=-1,i=e.passKeys?new Map:W9;for(;++r<t.children.length;){let o,a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let s=Vr(e,a,o);void 0!==s&&n.push(s)}return n}function Vs(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=Wa(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=Wa(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return W8.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Vl(e)}function Vl(e,t){let n=new W6("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Vn+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Vu(e){return"-"+e.toLowerCase()}let Vc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ef=el("8NFma");let Vd={};function Vf(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Vh(e.children,t,n)}
148return Array.isArray(e)?Vh(e,t,n):""}function Vh(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Vf(e[i],t,n);return r.join("")}let Vp=document.createElement("i");function Vm(e){let t="&"+e+";";Vp.innerHTML=t;let n=Vp.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function Vg(e,t,n,r){let i,o=e.length,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Vy(e,t){return e.length>0?(Vg(e,e.length,0,t),e):t}let Vv={}.hasOwnProperty;function Vb(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function Vw(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}V_(/[A-Za-z]/);let Vx=V_(/[\dA-Za-z]/);function V_(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Vk(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),a="";if(37===o&&Vx(e.charCodeAt(n+1))&&Vx(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function VS(e){return null!==e&&e<-2}function VE(e){return -2===e||-1===e||32===e}function VO(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Vj(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return VE(r)?(e.enter(n),function r(a){return VE(a)&&o++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}V_(/[#-'*+\--9=?A-Z^-~]/),V_(/\d/),V_(/[\dA-Fa-f]/),V_(/[!-/:-@[-`{-~]/),V_(/\p{P}|\p{S}/u),V_(/\s/),VO(/[A-Za-z]/),VO(/[\dA-Za-z]/),VO(/[#-'*+\--9=?A-Z^-~]/),VO(/\d/),VO(/[\dA-Fa-f]/),VO(/[!-/:-@[-`{-~]/),VO(/\p{P}|\p{S}/u),VO(/\s/);let VT={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vj(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return VS(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},VC={tokenize:function(e){let t,n,r,i=this,o=[],a=0;return s;function s(t){if(a<o.length){let n=o[a];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(a);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return Vg(i.events,o+1,0,i.events.slice(r)),i.events.length=s,u(e)}return s(e)}function u(n){if(a===o.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(VI,c,d)(n)}function c(e){return t&&y(),g(a),f(e)}function d(e){return i.parser.lazy[i.now().line]=a!==o.length,r=i.now().offset,p(e)}function f(t){return i.containerState={},e.attempt(VI,h,p)(t)}function h(e){return a++,o.push([i.currentConstruct,i.containerState]),f(e)}function p(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return VS(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,o){let s=i.sliceStream(e);if(o&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(a),o=s;o<i.events.length;)i.events[o][1].end={...n},o++;Vg(i.events,l+1,0,i.events.slice(s)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},VI={tokenize:function(e,t,n){return Vj(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},VP=VB(/[A-Za-z]/),VA=VB(/[\dA-Za-z]/),VR=VB(/[#-'*+\--9=?A-Z^-~]/),VN=VB(/\d/),VM=VB(/[\dA-Fa-f]/),VD=VB(/[!-/:-@[-`{-~]/);function VL(e){return null!==e&&e<-2}function Vz(e){return null!==e&&(e<0||32===e)}function VF(e){return -2===e||-1===e||32===e}function VB(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function VU(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return VF(r)?(e.enter(n),function r(a){return VF(a)&&o++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}VB(/\p{P}|\p{S}/u),VB(/\s/);let V$={partial:!0,tokenize:function(e,t,n){return function(t){return VF(t)?VU(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||VL(e)?t(e):n(e)}}};class VH{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&VW(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),VW(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),VW(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);VW(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);VW(this.left,t.reverse())}}}function VW(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function VV(e){let t,n,r,i,o,a,s,l={},u=-1,c=new VH(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],o=e.get(t)[2],a=t-1,s=[],l=i._tokenizer;!l&&(l=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],d={},f=-1,h=i,p=0,m=0,g=[0];for(;h;){for(;e.get(++a)[1]!==h;);s.push(a),!h._tokenizer&&(n=o.sliceStream(h),h.next||n.push(null),r&&l.defineSki
148p(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=h,h=h.next}for(h=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=s.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[p+c[f][0]]=p+c[f][1],p+=c[f][1]-c[f][0]-1;return d}(c,u)),u=l[u],s=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return Vg(e,0,1/0,c.slice(0)),!s}let Vq={resolve:function(e){return VV(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):VL(t)?e.check(VK,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},VK={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),VU(e,i,"linePrefix")};function i(i){if(null===i||VL(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},VZ={tokenize:function(e){let t=this,n=e.attempt(V$,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,Vj(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Vq,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},VG={resolveAll:VQ()},VY=VJ("string"),VX=VJ("text");function VJ(e){return{resolveAll:VQ("text"===e?V0:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function VQ(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function V0(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],o=t.sliceStream(i),a=o.length,s=-1,l=0;for(;a--;){let e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let o={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:i.start._bufferIndex+s,_index:i.start._index+a,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}var V1={};M(V1,"document",()=>qD),M(V1,"contentInitial",()=>qL),M(V1,"flowInitial",()=>qz),M(V1,"flow",()=>qF),M(V1,"string",()=>qB),M(V1,"text",()=>qU),M(V1,"insideSpan",()=>q$),M(V1,"attentionMarkers",()=>qH),M(V1,"disable",()=>qW),V4(/[A-Za-z]/),V4(/[\dA-Za-z]/),V4(/[#-'*+\--9=?A-Z^-~]/),V4(/\d/),V4(/[\dA-Fa-f]/),V4(/[!-/:-@[-`{-~]/);let V2=V4(/\p{P}|\p{S}/u),V3=V4(/\s/);function V4(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function V5(e){return null===e||null!==e&&(e<0||32===e)||V3(e)?1:V2(e)?2:void 0}function V6(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let V8={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
148n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};V9(d,-s),V9(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[n][1].end={...o.start},e[c][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Vy(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Vy(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=Vy(l,V6(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=Vy(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=Vy(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Vg(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=V5(i);return function(a){return n=a,e.enter("attentionSequence"),function a(s){if(s===n)return e.consume(s),a;let l=e.exit("attentionSequence"),u=V5(s),c=!u||2===u&&o||r.includes(s),d=!o||2===o&&u||r.includes(i);return l._open=!!(42===n?c:c&&(o||!d)),l._close=!!(42===n?d:d&&(u||!c)),t(s)}(a)}}};function V9(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let V7={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return VF(t)?VU(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(V7,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return VF(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},qe={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return VD(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},qt={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=VA,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=VM,u):(e.enter("characterReferenceValue"),r=7,i=VN,u(t))}function u(s){if(59===s&&a){let r=e.exit("characterReferenceValue");return i!==VA||Vm(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<r?(e.consume(s),u):n(s)}}},qn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},qr={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};
148function a(t){return e.enter("codeFencedFence"),VF(t)?VU(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=s?(e.exit("codeFencedFenceSequence"),VF(i)?VU(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||VL(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,s=0;return function(t){var o;let u;return o=t,a=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),VF(i)?VU(e,l,"whitespace")(i):l(i))}(o)};function l(o){return null===o||VL(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(qn,c,p)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||VL(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):VF(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),VU(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||VL(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||VL(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,p,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return a>0&&VF(t)?VU(e,h,"linePrefix",a+1)(t):h(t)}function h(t){return null===t||VL(t)?e.check(qn,c,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||VL(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}}},qi={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),VU(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):VL(n)?e.attempt(qo,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||VL(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},qo={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):VL(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):VU(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):VL(e)?i(e):n(e)}}};function qa(e){return null!==e&&(e<32||127===e)}function qs(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ql(e,t,n,r,i,o,a,s,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||qa(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||null!==t&&t<-2?n(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return!c&&(null===i||41===i||null!==i&&(i<0||32===i))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,p):41===i?(e.consume(i),c--,p):null===i||32===i||40===i||qa(i)?n(i):(e.consume(i),92===i?m:p)}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function qu(e){return null!==e&&e<-2}function qc(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function qd(e,t,n,r,i,o){let a,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(d){return l>999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):qu(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||qu(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=-2!==t&&-1!==t&&32!==t),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function qf(e){return null!==e&&e<-2}function qh(e){return -2===e||-1===e||32===e}function qp(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function qm(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){if(t===a)return e.exit(o),s(a);if(null===t)return n(t);if(qf(t)){var r,i;let n,o;return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r=l,i="linePrefix",n=1/0,o=0,function(t){return qh(t)?(e.enter(i),function t(a){return qh(a)&&o++<n?(e.consume(a),t):(e.exit(i),r(a))}(t)):r(t)}}return e.enter("chunkString",{contentType:"string"}),u(t)}function u(t){return t===a||null===t||qf(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function qg(e){return -2===e||-1===e||32===e}function qy(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function qv(e,t){let n;return function r(i){var o,a;if(null!==i&&i<-2)return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(qg(i)){let t,s;return(o=r,a=n?"linePrefix":"lineSuffix",t=1/0,s=0,function(n){return qg(n)?(e.enter(a),function n(r){return qg(r)&&s++<t?(e.consume(r),n):(e.exit(a),o(r))}(n)):o(n)})(i)}return t(i)}}qs(/[A-Za-z]/),qs(/[\dA-Za-z]/),qs(/[#-'*+\--9=?A-Z^-~]/),qs(/\d/),qs(/[\dA-Fa-f]/),qs(/[!-/:-@[-`{-~]/),qs(/\p{P}|\p{S}/u),qs(/\s/),qc(/[A-Za-z]/),qc(/[\dA-Za-z]/),qc(/[#-'*+\--9=?A-Z^-~]/),qc(/\d/),qc(/[\dA-Fa-f]/),qc(/[!-/:-@[-`{-~]/),qc(/\p{P}|\p{S}/u),qc(/\s/),qp(/[A-Za-z]/),qp(/[\dA-Za-z]/),qp(/[#-'*+\--9=?A-Z^-~]/),qp(/\d/),qp(/[\dA-Fa-f]/),qp(/[!-/:-@[-`{-~]/),qp(/\p{P}|\p{S}/u),qp(/\s/),qy(/[A-Za-z]/),qy(/[\dA-Za-z]/),qy(/[#-'*+\--9=?A-Z^-~]/),qy(/\d/),qy(/[\dA-Fa-f]/),qy(/[!-/:-@[-`{-~]/),qy(/\p{P}|\p{S}/u),qy(/\s/);let qb={partial:!0,tokenize:function(e,t,n){return function(t){return Vz(t)?qv(e,r)(t):n(t)};function r(t){return qm(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return VF(t)?VU(e,o,"whitespace")(t):o(t)}function o(e){return null===e||VL(e)?t(e):n(e)}}},qw=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qx=["pre","script","style","textarea"],q_={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(V$,t,n)}}},qk={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return VL(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},qS={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Vg(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return o=Vy(o=[["enter",l,t],["enter",u,t]],e.slice(r+1,r+s+3)),o=Vy(o,[["enter",c,t]]),o=Vy(o,V6(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=Vy(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=Vy(o,e.slice(i+1)),o=Vy(o,[["exit",l,t]]),Vg(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,o=this,a=o.events.length;for(;a--;)if(("labelImage"===o.events[a][1].type||"labelLink"===o.events[a][1].type)&&!o.events[a][1]._balanced){r=o.events[a][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes(Vw(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(qE,u,i?u:c)(t):91===t?e.attempt(qO,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(qj,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},qE={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Vz(t)?qv(e,i)(t):i(t)}function i(t){return 41===t?u(t):ql(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Vz(t)?qv(e,s)(t):u(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?qm(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return Vz(t)?qv(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},qO={tokenize:function(e,t,n){let r=this;return function(t){return qd.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Vw(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},qj={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},qT={name:"labelStartImage",resolveAll:qS.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},qC={name:"labelStartLink",resolveAll:qS.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},qI={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),VU(e,t,"linePrefix")}}},qP={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var a;return e.enter("thematicBreak"),r=a=o,function o(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),VF(n)?VU(e,o,"whitespace")(n):o(n))}
148(a)):i>=3&&(null===a||VL(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},qA={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(V$,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,VU(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!VF(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qN,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,VU(e,e.attempt(qA,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:VN(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(qP,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return VN(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(V$,r.interrupt?n:l,e.attempt(qR,c,u))}
148function l(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return VF(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},qR={partial:!0,tokenize:function(e,t,n){let r=this;return VU(e,function(e){let i=r.events[r.events.length-1];return!VF(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},qN={partial:!0,tokenize:function(e,t,n){let r=this;return VU(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},qM={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var a;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),VF(n)?VU(e,o,"lineSuffix")(n):o(n))}(a)):n(t)};function o(r){return null===r||VL(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},qD={42:qA,43:qA,45:qA,48:qA,49:qA,50:qA,51:qA,52:qA,53:qA,54:qA,55:qA,56:qA,57:qA,62:V7},qL={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,qd.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=Vw(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return Vz(t)?qv(e,s)(t):s(t)}function s(t){return ql(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(qb,u,u)(t)}function u(t){return VF(t)?VU(e,c,"whitespace")(t):c(t)}function c(o){return null===o||VL(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},qz={[-2]:qi,[-1]:qi,32:qi},qF={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Vg(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||Vz(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||VL(r)?(e.exit("atxHeading"),t(r)):VF(r)?VU(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||Vz(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:qP,45:[qM,qP],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,o,a,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,h):63===a?(e.consume(a),r=3,l.interrupt?t:A):VP(a)?(e.consume(a),o=String.fromCharCode(a),p):n(a)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,f):VP(i)?(e.consume(i),r=4,l.interrupt?t:A):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:A):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?l.interrupt?t:S:f:n(r)}function h(t){return VP(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}
148function p(a){if(null===a||47===a||62===a||Vz(a)){let s=47===a,u=o.toLowerCase();return!s&&!i&&qx.includes(u)?(r=1,l.interrupt?t(a):S(a)):qw.includes(o.toLowerCase())?(r=6,s)?(e.consume(a),m):l.interrupt?t(a):S(a):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?function t(n){return VF(n)?(e.consume(n),t):_(n)}(a):g(a))}return 45===a||VA(a)?(e.consume(a),o+=String.fromCharCode(a),p):n(a)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),_):58===t||95===t||VP(t)?(e.consume(t),y):VF(t)?(e.consume(t),g):_(t)}function y(t){return 45===t||46===t||58===t||95===t||VA(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):VF(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):VF(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||Vz(n)?v(n):(e.consume(n),t)}(t)}function w(t){return t===s?(e.consume(t),s=null,x):null===t||VL(t)?n(t):(e.consume(t),w)}function x(e){return 47===e||62===e||VF(e)?g(e):n(e)}function _(t){return 62===t?(e.consume(t),k):n(t)}function k(t){return null===t||VL(t)?S(t):VF(t)?(e.consume(t),k):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),C):62===t&&4===r?(e.consume(t),R):63===t&&3===r?(e.consume(t),A):93===t&&5===r?(e.consume(t),P):VL(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(q_,N,E)(t)):null===t||VL(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),S)}function E(t){return e.check(qk,O,N)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j}function j(t){return null===t||VL(t)?E(t):(e.enter("htmlFlowData"),S(t))}function T(t){return 45===t?(e.consume(t),A):S(t)}function C(t){return 47===t?(e.consume(t),o="",I):S(t)}function I(t){if(62===t){let n=o.toLowerCase();return qx.includes(n)?(e.consume(t),R):S(t)}return VP(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),I):S(t)}function P(t){return 93===t?(e.consume(t),A):S(t)}function A(t){return 62===t?(e.consume(t),R):45===t&&2===r?(e.consume(t),A):S(t)}function R(t){return null===t||VL(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),R)}function N(n){return e.exit("htmlFlow"),t(n)}}},61:qM,95:qP,96:qr,126:qr},qB={38:qt,92:qe},qU={[-5]:qI,[-4]:qI,[-3]:qI,33:qT,38:qt,42:V8,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return VP(t)?(e.consume(t),o):64===t?n(t):s(t)}function o(t){return 43===t||45===t||46===t||VA(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||VA(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||null!==r&&(r<32||127===r)?n(r):(e.consume(r),a)}function s(t){return 64===t?(e.consume(t),l):VR(t)?(e.consume(t),s):n(t)}function l(i){return VA(i)?function i(o){return 46===o?(e.consume(o),r=0,l):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||VA(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),v):VP(t)?(e.consume(t),_):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,h):VP(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):VL(t)?(o=c,I(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?C(e):45===e?d(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):VL(t)?(o=p,I(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?C(t):93===t?(e.consume(t),g):p(t)}function y(t){return null===t||62===t?C(t):VL(t)?(o=y,I(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):VL(t)?(o=v,I(t)):(e.consume(t),v)}function b(e){return 62===e?C(e):v(e)}function w(t){return VP(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||VA(t)?(e.consume(t),x):function t(n){return VL(n)?(o=t,I(n)):VF(n)?(e.consume(n),t):C(n)}(t)}function _(t){return 45===t||VA(t)?(e.consume(t),_):47===t||62===t||Vz(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),C):58===t||95===t||VP(t)?(e.consume(t),S):VL(t)?(o=k,I(t)):VF(t)?(e.consume(t),k):C(t)}function S(t){return 45===t||46===t||58===t||95===t||VA(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),E):VL(n)?(o=t,I(n)):VF(n)?(e.consume(n),t):k(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,O):VL(t)?(o=E,I(t)):VF(t)?(e.consume(t),E):(e.consume(t),j)}function O(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):VL(t)?(o=O,I(t)):(e.consume(t),O)}function j(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Vz(t)?k(t):(e.consume(t),j)}function T(e){return 47===e||62===e||Vz(e)?k(e):n(e)}function C(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return VF(t)?VU(e,A,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):A(t)}function A(t){return e.enter("htmlTextData"),o(t)}}}],91:qC,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return VL(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},qe],93:qS,95:V8,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;
148return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),a):96===l?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",s(a))}(l)):VL(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||VL(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),s)}}}},q$={null:[V8,VG]},qH={null:[42,95]},qW={null:[]},qV=/[\0\t\n\r]/g,qq=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qK(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return Vb(n.slice(t?2:1),t?16:10)}return Vm(n)||e}let qZ={}.hasOwnProperty;function qG(e){return{line:e.line,column:e.column,offset:e.offset}}function qY(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+W2({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+W2({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+W2({start:t.start,end:t.end})+") is still open")}function qX(e){let t=this;t.parser=function(n){var r,i;let o,a,s,l;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(p),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(h,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(p),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=Vb(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=Vm(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=qG(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vw(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(qq,qK),n.identifier=Vw(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=qG(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
148ype)&&(u.call(this,e),c.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vw(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(qZ.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:o,exit:s,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,o,a,s=t-1,l=-1,u=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];qZ.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||qY).call(a,void 0,e[0])}for(r.position={start:qG(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:qG(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:qG(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||qY).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+W2({start:e.start,end:e.end})+"): it’s not open");n.position.end=qG(e.end)}function l(){var e;return e=this.stack.pop(),Vf(e,"boolean"!=typeof Vd.includeImageAlt||Vd.includeImageAlt,"boolean"!=typeof Vd.includeHtml||Vd.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:qG(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=qG(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function p(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!VV(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(Vv.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){Vv.call(i,r)||(i[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Vg(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([V1,...(e||{}).extensions||[]]),content:n(VT),defined:[],document:n(VC),flow:n(VZ),lazy:{},string:n(VY),text:n(VX)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
148olumn:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],a=[],s=[],l={attempt:p(function(e,t){m(e,t.from)}),check:p(h),consume:function(e){VS(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:p(h,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o,a=e[r];if("string"==typeof a)o=a;else switch(a){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":"	";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(a)}n=-2===a,i.push(o)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(a=Vy(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==a[a.length-1])?[]:(m(t,0),u.events=V6(o,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,a)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[o].slice(0,a))}return n}(a,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function h(e,t){t.restore()}function p(e,t){return function(n,i,o){var a;let c,d,h,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?o:y(e[d])}function y(e){return function(n){let i,o,a,c,d;return(i=f(),o=u.previous,a=u.currentConstruct,c=u.events.length,d=Array.from(s),p={from:c,restore:function(){r=i,u.previous=o,u.currentConstruct=a,u.events.length=c,s=d,g()}},h=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,v,b)(n)}}function v(t){return e(h,p),i}function b(e){return(p.restore(),++d<c.length)?y(c[d]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Vg(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((a=1,s="",l=!0,function(e,t,n){let r,i,u,c,d,f=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,s="",l&&(65279===e.charCodeAt(0)&&u++,l=void 0);u<e.length;){if(qV.lastIndex=u,c=(r=qV.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){s=e.slice(u);break}if(10===d&&u===c&&o)f.push(-3),o=void 0;else switch(o&&(f.push(-5),o=void 0),u<c&&(f.push(e.slice(u,c)),a+=c-u),d){case 0:f.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),f.push(-2);a++<i;)f.push(-1);break;case 10:f.push(-4),a=1;break;default:o=!0,a=1}u=c+1}return n&&(o&&f.push(-5),s&&f.push(s),f.push(null)),f})(n,r,!0))))}}let qJ="object"==typeof self?self:globalThis,qQ=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[o,a]=e[i];switch(o){case 0:case -1:return n(a,i);case 1:{let e=n([],i);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(new qJ[e](t),i)}case 8:return n(BigInt(a),i);
148case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new qJ[o](a),i)})(0)},{toString:q0}={},{keys:q1}=Object,q2=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=q0.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},q3=([e,t])=>0===e&&("function"===t||"symbol"===t),q4=(e,{json:t,lossy:n}={})=>{var r,i,o;let a,s,l=[];return(r=!(t||n),i=!!t,o=new Map,a=(e,t)=>{let n=l.push(e)-1;return o.set(t,n),n},s=e=>{if(o.has(e))return o.get(e);let[t,n]=q2(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return a([-1],e)}return a([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),a([n,[...t]],e)}let r=[],i=a([t,r],e);for(let t of e)r.push(s(t));return i}case 2:{if(n)switch(n){case"BigInt":return a([n,e.toString()],e);case"Boolean":case"Number":case"String":return a([n,e.valueOf()],e)}if(i&&"toJSON"in e)return s(e.toJSON());let o=[],l=a([t,o],e);for(let t of q1(e))(r||!q3(q2(e[t])))&&o.push([s(t),s(e[t])]);return l}case 3:return a([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return a([t,{source:n,flags:r}],e)}case 5:{let n=[],i=a([t,n],e);for(let[t,i]of e)(r||!(q3(q2(t))||q3(q2(i))))&&n.push([s(t),s(i)]);return i}case 6:{let n=[],i=a([t,n],e);for(let t of e)(r||!q3(q2(t)))&&n.push(s(t));return i}}let{message:l}=e;return a([t,{name:n,message:l}],e)})(e),l};var q5="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?qQ(q4(e,t)):structuredClone(e):(e,t)=>qQ(q4(e,t));function q6(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function q8(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let q9=function(e){var t,n;if(null==e)return Ke;if("function"==typeof e)return q7(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=q9(e[n]);return q7(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,q7(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,q7(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function q7(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Ke(){return!0}let Kt=[];function Kn(e,t,n,r){var i,o,a;let s,l,u,c,d,f;"function"==typeof t&&"function"!=typeof n?(l=void 0,u=t,s=n):(l=t,u=n,s=r),i=l,o=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return u(e,r,n)},a=s,"function"==typeof i&&"function"!=typeof o?(a=o,o=i):c=i,d=q9(c),f=a?-1:1,(function e(t,n,r){let s=t&&"object"==typeof t?t:{};if("string"==typeof s.type){let e="string"==typeof s.tagName?s.tagName:"string"==typeof s.name?s.name:void 0;Object.defineProperty(l,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return l;function l(){var s;let l,u,c,h=Kt;if((!i||d(t,n,r[r.length-1]||void 0))&&!1===(h=Array.isArray(s=o(t,r))?s:"number"==typeof s?[!0,s]:null==s?Kt:[s])[0])return h;if("children"in t&&t.children&&t.children&&"skip"!==h[0])for(u=(a?t.children.length:-1)+f,c=r.concat(t);u>-1&&u<t.children.length;){if(!1===(l=e(t.children[u],u,c)())[0])return l;u="number"==typeof l[1]?l[1]:u+f}return h}})(e,void 0,[])()}function Kr(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function Ki(e){let t=e.spread;return null==t?e.children.length>1:t}function Ko(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let Ka={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
148,footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=Vk(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=a+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Kr(e,t);let i={src:Vk(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:Vk(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Kr(e,t);let i={href:Vk(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:Vk(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Ki(n[r])}return t}(n):Ki(t),o={},a=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=W0(t.children[1]),a=WQ(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}let o={type:"element",tagName:"table",properties:{}
148,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,s=-1,l=[];for(;++s<a;){let n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(Ko(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Ko(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Ks,yaml:Ks,definition:Ks,footnoteDefinition:Ks};function Ks(){}let Kl={}.hasOwnProperty,Ku={};function Kc(e,t){e.position&&(t.position=function(e){let t=W0(e),n=WQ(e);if(t&&n)return{start:t,end:n}}(e))}function Kd(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,q5(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Kf(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Kh(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Kp(e,t){let n,r,i,o,a=(n=t||Ku,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=Kh(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=Kh(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Kd,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Ka,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(Kl.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=q5(n);return r.children=o.all(e),r}return q5(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(Kl.call(n,"hProperties")||Kl.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(o,e,t)},options:n,patch:Kc,wrap:Kf},Kn(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o),s=a.one(e,void 0),l=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||q6,r=e.options.footnoteBackLabel||q8,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let o=e.all(i),a=String(i.identifier).toUpperCase(),u=Vk(a.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);let p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),s.push(p)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...q5(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)}
148,{type:"text",value:"\n"}]}}(a),u=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return l&&u.children.push({type:"text",value:"\n"},l),u}function Km(e,t){return e&&"run"in e?async function(n,r){let i=Kp(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Kp(n,{file:r,...e||t})}}function Kg(e){if(e)throw e}"use strict";var Ky={},Kv=Object.prototype.hasOwnProperty,Kb=Object.prototype.toString,Kw=Object.defineProperty,Kx=Object.getOwnPropertyDescriptor,K_=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Kb.call(e)},Kk=function(e){if(!e||"[object Object]"!==Kb.call(e))return!1;var t,n=Kv.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Kv.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Kv.call(e,t)},KS=function(e,t){Kw&&"__proto__"===t.name?Kw(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},KE=function(e,t){if("__proto__"===t){if(!Kv.call(e,t))return;else if(Kx)return Kx(e,t).value}return e[t]};function KO(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}Ky=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(t=arguments[l],null!=t)for(n in t)r=KE(s,n),s!==(i=KE(t,n))&&(c&&i&&(Kk(i)||(o=K_(i)))?(o?(o=!1,a=r&&K_(r)?r:[]):a=r&&Kk(r)?r:{},KS(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&KS(s,{name:n,newValue:i}));return s};let Kj=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');KP(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},KT=function(e){let t;if(KP(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},KC=function(e){let t;KP(e);let n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1)}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},KI=function(...e){var t;let n,r,i,o=-1;for(;++o<e.length;)KP(e[o]),e[o]&&(i=void 0===i?e[o]:i+"/"+e[o]);return void 0===i?".":(KP(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function KP(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function KA(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let KR=["history","path","basename","stem","extname","dirname"];class KN{constructor(e){let t,n;t=e?KA(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<KR.length;){const e=KR[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)KR.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Kj(this.path):void 0}
148set basename(e){KD(e,"basename"),KM(e,"basename"),this.path=KI(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?KT(this.path):void 0}set dirname(e){KL(this.basename,"dirname"),this.path=KI(e||"",this.basename)}get extname(){return"string"==typeof this.path?KC(this.path):void 0}set extname(e){if(KM(e,"extname"),KL(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=KI(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){KA(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!KA(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),KD(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Kj(this.path,this.extname):void 0}set stem(e){KD(e,"stem"),KM(e,"stem"),this.path=KI(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new W6(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function KM(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function KD(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function KL(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let Kz=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},KF={}.hasOwnProperty;class KB extends Kz{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(o,...a){let s=e[++n],l=-1;if(o)return void r(o);for(;++l<t.length;)(null===a[l]||void 0===a[l])&&(a[l]=t[l]);t=a,s?(function(e,t){let n;return function(...t){let o,a=e.length>t.length;a&&t.push(r);try{o=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new KB,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(ei(Ky)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(KW("data",this.frozen),this.namespace[e]=t,this):KF.call(this.namespace,e)&&this.namespace[e]||void 0:e?(KW("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=KK(e),n=this.parser||this.Parser;return K$("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),K$("process",this.parser||this.Parser),KH("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=KK(e),a=n.parse(o);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,function(e,t,r){var i,o;if(e||!t||!r)return s(e);let a=n.stringify(t,r);"string"==typeof(i=a)||(o=i)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?r.value=a:r.result=a,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),K$("processSync",this.parser||this.Parser),KH("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Kg(e),t=r}),Kq("processSync","process",n),t}
148run(e,t,n){KV(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){let a=KK(t);r.run(e,a,function(t,r,a){let s=r||e;t?o(t):i?i(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Kg(e),n=t,r=!0}),Kq("runSync","run",r),n}stringify(e,t){this.freeze();let n=KK(t),r=this.compiler||this.Compiler;return KH("stringify",r),KV(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(KW("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=ei(Ky)(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)a(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;a(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,a=n[i][1];KO(a)&&KO(r)&&(r=ei(Ky)(!0,a,r)),n[i]=[e,r,...o]}}}}let KU=new KB().freeze();function K$(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function KH(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function KW(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function KV(e){if(!KO(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function Kq(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function KK(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new KN(e)}let KZ=[],KG={allowDangerousHtml:!0},KY=/^(https?|ircs?|mailto|xmpp)$/i,KX=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function KJ(e){var t;let n,r,i,o,a,s=(n=(t=e).rehypePlugins||KZ,r=t.remarkPlugins||KZ,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...KG}:KG,KU().use(qX).use(r).use(Km,i).use(n)),l=(o=e.children||"",a=new KN,"string"==typeof o&&(a.value=o),a);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||KQ;for(let e of KX)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return Kn(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return a?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Vc)if(Object.hasOwn(Vc,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=Vc[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,o;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,a=function(e,t,i,o){let a=Array.isArray(i.children),s=W0(e);return r(t,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
148if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,a=function(e,t,n,r){let a=Array.isArray(n.children)?o:i;return r?a(t,n,r):a(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?WU:WB,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=Vr(l,e,void 0);return u&&"string"!=typeof u?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}(e,{Fragment:ec.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ec.jsx,jsxs:ec.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(l),l),e)}function KQ(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||KY.test(e.slice(0,t))?e:""}let K0=function(e){if(null==e)return K2;if("string"==typeof e){var t;return t=e,K1(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=K0(n[r]);return K1(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}if("function"==typeof e)return K1(e);throw Error("Expected function, string, or array as `test`")};function K1(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&"tagName"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function K2(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let K3=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,K4=/^[a-zA-Z]:\\/,K5=["http","https"],K6=["nofollow"],K8={};function K9(e){let t=e||K8,n=t.protocols||K5,r=K0(t.test);return function(e){Kn(e,"element",function(e,i,o){if("a"===e.tagName&&"string"==typeof e.properties.href&&r(e,i,o)){let r=e.properties.href;if(!function(e){if("string"!=typeof e)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!K4.test(e)&&K3.test(e)}(r)?r.startsWith("//"):n.includes(r.slice(0,r.indexOf(":")))){let n,r=K7(t.content,e),i=r&&!Array.isArray(r)?[r]:r,o=K7(t.rel,e)||K6,a="string"==typeof o?(n=String(o||"").trim())?n.split(/[ \t\n\r\f]+/g):[]:o,s=K7(t.target,e),l=K7(t.properties,e);if(l&&Object.assign(e.properties,q5(l)),a.length>0&&(e.properties.rel=[...a]),s&&(e.properties.target=s),i){let n=K7(t.contentProperties,e)||{};e.children.push({type:"element",tagName:"span",properties:q5(n),children:q5(i)})}}}})}}function K7(e,t){return"function"==typeof e?e(t):e}function Ze(){let e=kU(e=>e.infoBubble.descriptionVisible),t=kU(e=>e.infoBubble.descriptionData),n=kU(e=>e.system.offline),r=kU(e=>e.locale),i=kB();if(null===t)return null;let o=po(`descriptions.${t.key}.content`,void 0,{ns:"segment-info"}),a=po(`descriptions.${t.key}.imageAltText`,void 0,{ns:"segment-info"}),s=po(`descriptions.${t.key}.imageCaption`,void 0,{ns:"segment-info"}),l=["p","em","strong","ol","ul","li","blockquote","h1","img"];return n||l.push("a"),(0,ec.jsx)(zq,{icon:"book",title:(0,ec.jsx)(TQ,{id:"segments.learn-more",defaultMessage:"Learn more"}),show:e,className:"description-panel",handleClose:function(){i(ct())},children:(0,ec.jsx)(T0,{locale:r.locale,messages:r.segmentInfo,children:(0,ec.jsxs)("div",{className:"description-content",children:[t.image&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("img",{src:`/images/descriptions/${t.image}`,alt:a??s??"",draggable:!1}),t.imageCredit&&(0,ec.jsx)("div",{className:"description-image-credit",children:t.imageCredit})]}),(0,ec.jsxs)("div",{className:"description-text",children:[(0,ec.jsx)(KJ,{allowedElements:l,unwrapDisallowed:!0,rehypePlugins:[[K9,{rel:"noopener noreferrer",target:"_blank"}]],children:o}),s&&(0,ec.jsxs)("footer",{children:[(0,ec.jsx)(TQ,{id:"segments.description.photo-credit",defaultMessage:"Photo:"})," ",s]})]})]})})})}function Zt(e){return null===e?1:2*(void 0===e)}function Zn(e,t){let n=Zt(e),r=Zt(t);return n<r?-1:n>r?1:0!==n?0:e<t?-1:+(e>t)}function Zr(e){let{className:t,onScroll:n=()=>
148void 0,allowKeyboardScroll:r=!1,children:i,ref:o=null}=e,a=(0,ef.useRef)(null),s=(0,ef.useRef)(null),l=(0,ef.useRef)(null);function u(e){let t=a.current;if(null===t)return;let n=t.scrollLeft-(t.offsetWidth-150);AQ(t,{scrollLeft:n},300)}function c(e){let t=a.current;if(!t)return;let n=t.scrollLeft+(t.offsetWidth-150);AQ(t,{scrollLeft:n},300)}function d(){let e=a.current;if(!e)return;let t=window.getComputedStyle(e).direction,n="rtl"===t?l.current:s.current,r="rtl"===t?s.current:l.current;n&&(0===e.scrollLeft?(n.style.opacity="0",n.style.pointerEvents="none",n.setAttribute("hidden","true"),n.setAttribute("tabindex","-1")):(n.style.opacity="1",n.style.pointerEvents="auto",n.removeAttribute("hidden"),n.setAttribute("tabindex","0"))),r&&(Math.abs(e.scrollLeft)===e.scrollWidth-e.offsetWidth?(r.style.opacity="0",r.style.pointerEvents="none",r.setAttribute("hidden","true"),r.setAttribute("tabindex","-1")):(r.style.opacity="1",r.style.pointerEvents="auto",r.removeAttribute("hidden"),r.setAttribute("tabindex","0")))}(0,ef.useEffect)(()=>(window.addEventListener("resize",d),d(),()=>{window.removeEventListener("resize",d)})),(0,ef.useEffect)(()=>(r&&(Rs("left",u),Rs("right",c)),()=>{r&&(Rl("left",u),Rl("right",c))})),(0,ef.useLayoutEffect)(()=>{s.current&&(s.current.style.left="-15px"),l.current&&(l.current.style.right="-15px")});let f=void 0!==t?`${t}-scrollable-container`:"";return(0,ec.jsxs)("div",{className:f,ref:o,children:[(0,ec.jsx)(T4,{className:"scrollable scroll-left",onClick:u,ref:s,children:(0,ec.jsx)(C0,{name:"chevron-left",size:"24"})}),(0,ec.jsx)("div",{className:t,onScroll:function(e){d(),n(e)},ref:a,style:{overscrollBehaviorX:"contain"},children:i}),(0,ec.jsx)(T4,{className:"scrollable scroll-right",onClick:c,ref:l,children:(0,ec.jsx)(C0,{name:"chevron-right",size:"24"})})]})}var ef=(el("8NFma"),el("8NFma"));let Zi=(0,ef.memo)(function({connect:e,src:t}){return(0,ef.useEffect)(()=>{if("u"<typeof Image)return;let n=!1,r=new Image;return r.src=t,r.onload=()=>{e(r),n=!0},()=>{n&&e(null)}}),null}),Zo=(w||((w=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),w);function Za({dragPreview:e}){return(0,ec.jsx)(Zi,{connect:e,src:Zo.src})}function Zs({item:e}){let t,n,r=kU(e=>e.flags),i=kU(e=>e.user.signedIn),o=kU(e=>e.user.isSubscriber),a=TV(),[,s,l]=NG(()=>({type:p_,item:()=>{let t;hy.dispatch(dV({type:2}));let{units:n}=hy.getState().street,r=e.id,i=e.defaultVariant??Object.keys(e.details).shift();if(void 0===i)throw Error("variant string not found");if(void 0!==e.defaultElevation)t="number"!=typeof e.defaultElevation?cO(e.defaultElevation,n):e.defaultElevation;else{let e=cg(r,i);if("unknown"in e)throw Error("unknown variant");t="number"!=typeof e.elevation?cO(e.elevation,n):e.elevation}let o={on:!1,values:[]};if(void 0!==e.defaultSlope){o.on=!0;for(let t=0;t<e.defaultSlope.length;t++){let r=e.defaultSlope[t];"number"==typeof r?o.values.push(r):o.values.push(cO(r,n))}}return{id:pw(),type:r,variantString:i,actualWidth:cO(e.defaultWidth,n),elevation:t,slope:o}},end:(e,t)=>{hy.dispatch(dK());let n=h.withinCanvas;!t.didDrop()&&n&&pT(e,t.getItemType()),pO()},canDrag:e=>!hy.getState().app.readOnly})),u=(n=e.name,a.formatMessage({id:`segments.${e.nameKey}`,defaultMessage:n})),{unlockCondition:c}=e,d=["palette-item"],f=!1;c&&!(void 0!==e.unlockWithFlag&&r[e.unlockWithFlag]?.value)&&("SUBSCRIBE"===c?o||(d.push("palette-item-disabled"),f=!0,t=a.formatMessage({id:"plus.locked.sub",defaultMessage:"Upgrade to Streetmix+ to use!‎"})):i||(d.push("palette-item-disabled"),f=!0,t=a.formatMessage({id:"plus.locked.user",defaultMessage:"Sign in to use!‎"})));let p=pl.get(`thumbnails--${e.id}`)?.src??pl.get("thumbnails--missing")?.src;return(0,ec.jsxs)("li",{className:d.join(" "),ref:f?null:s,children:[(0,ec.jsx)(Te,{label:u,sublabel:t,children:(0,ec.jsx)("button",{children:(0,ec.jsx)("img",{className:"palette-item-image",src:p,draggable:!1,alt:u})})}),f&&(0,ec.jsx)(C0,{name:"lock"}),(0,ec.jsx)(Za,{dragPreview:l})]})}function Zl(){let e,t=kU(e=>e.flags),n=kU(e=>e.locale),r=Object.entries(ei(co)).map(cp).filter(e=>void 0===e.enableWithFlag||void 0!==e.enableWithFlag&&t[e.enableWithFlag]?.value);if(t.COASTMIX_MODE?.value){var i,o;i=["coastmixPaletteOrder"],o=["asc"],e=r.filter(e=>void 0!==e.coastmixPaletteOrder).slice().sort((e,t)=>
148{let n=o.length;for(let s=0;s<i.length;s++){var r,a;let l=n>s?o[s]:o[n-1],u=i[s],c="function"==typeof u,d=(r=c?u(e):e[u],a=c?u(t):t[u],"asc"===l?Zn(r,a):Zn(a,r));if(0!==d)return d}return 0})}else e=r;return(0,ec.jsx)(Tt,{children:(0,ec.jsx)(Zr,{className:"palette-items",children:(0,ec.jsx)(T0,{locale:n.locale,messages:n.segmentInfo,children:(0,ec.jsx)("ul",{children:e.map(e=>(0,ec.jsx)(Zs,{item:e},e.id))})})})})}function Zu(){let e=kU(e=>(e.ui.draggingState&&Number.isInteger(e.ui.draggingState.draggedSegment))??!1);return(0,ec.jsx)("div",{className:"palette-trashcan",hidden:!e,children:(0,ec.jsx)(TQ,{id:"palette.remove",defaultMessage:"Drag here to remove"})})}function Zc(){let e=ej(),t=TV().formatMessage({id:"tools.skybox.tooltip",defaultMessage:"Environment editor"});return(0,ec.jsx)(Te,{label:t,role:"label",children:(0,ec.jsx)(T4,{onClick:function(){e(dG())},"aria-label":t,children:(0,ec.jsx)(C0,{name:"sun",size:"24"})})})}function Zd(){let e=ej(),t=TV().formatMessage({id:"tools.flooding.tooltip",defaultMessage:"Coastal flooding controls"});return(0,ec.jsx)(Te,{label:t,role:"label",children:(0,ec.jsx)(T4,{onClick:function(){e(uM())},"aria-label":t,"data-tour-id":"flooding-controls-button",children:(0,ec.jsx)(C0,{name:"boat",size:"24"})})})}function Zf(){let e=kU(Az),t=kU(AF),n=kB(),r=TV(),i=r.formatMessage({id:"btn.undo",defaultMessage:"Undo"}),o=r.formatMessage({id:"btn.redo",defaultMessage:"Redo"});return(0,ec.jsxs)(Tt,{children:[(0,ec.jsx)(Te,{label:i,role:"label",children:(0,ec.jsx)(T4,{onClick:()=>{n(Rn())},disabled:!e,"aria-label":i,children:(0,ec.jsx)(C0,{name:"undo",size:"24"})})}),(0,ec.jsx)(Te,{label:o,role:"label",children:(0,ec.jsx)(T4,{onClick:()=>{n(Rr())},disabled:!t,"aria-label":o,children:(0,ec.jsx)(C0,{name:"redo",size:"24"})})})]})}function Zh(){let e=kU(e=>e.app.readOnly),t=kU(e=>e.flags.COASTMIX_MODE?.value??!1);return e?null:(0,ec.jsx)("div",{className:"palette-container-outer",children:(0,ec.jsxs)("div",{className:"palette-container",children:[(0,ec.jsxs)("div",{className:"palette-commands palette-commands-left",children:[(0,ec.jsx)(Zc,{}),t&&(0,ec.jsx)(Zd,{})]}),(0,ec.jsx)(Zl,{}),(0,ec.jsx)("div",{className:"palette-commands palette-commands-right",children:(0,ec.jsx)(Zf,{})}),(0,ec.jsx)(Zu,{})]})})}var ef=el("8NFma");class Zp extends ef.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t)}render(){if(this.state.hasError)if(void 0!==this.props.fallbackComponent)return this.props.fallbackComponent;else return(0,ec.jsx)("h1",{children:"Something went wrong."});return this.props.children}}var Zm={};Zm=D("69lc5");var Zg={};Zg=D("j4WqY");var Zy={};Zy=D("cbcwa");var Zv={};Zv=D("hnKde");var Zb={};Zb=D("3vunn");var Zw={};Zw=D("kqVwX");var Zx={};Zx=D("c4JLg");var Z_={};Z_=D("5altv");var Zk={};Zk=D("9MyrM");var ZS={};
148function ZE(){return(0,ec.jsxs)("div",{className:"about-coastmix-section",children:[(0,ec.jsxs)("header",{className:"about-coastmix-header",children:[(0,ec.jsxs)("div",{children:[(0,ec.jsx)("img",{src:ei(Zb),alt:"Coastmix (logo)",className:"about-coastmix-logo",draggable:!1}),(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.about.heading",defaultMessage:"About Coastmix."})})]}),(0,ec.jsx)("div",{children:(0,ec.jsx)(z2,{href:"https://www.boston.gov/departments/climate-resilience",children:(0,ec.jsx)("img",{src:ei(Zw),alt:"City of Boston Office of Climate Resilience",draggable:!1})})}),(0,ec.jsx)("div",{children:(0,ec.jsx)(z2,{href:"https://www.boston.gov/departments/emerging-technology",children:(0,ec.jsx)("img",{src:ei(Zx),alt:"City of Boston Office of Emerging Technology",style:{height:"56px"},draggable:!1})})})]}),(0,ec.jsxs)("div",{className:"dialog-content about-coastmix-content",children:[(0,ec.jsxs)("p",{children:["Coastmix is a project by"," ",(0,ec.jsx)("a",{href:"https://streetmix.net/",target:"_blank",rel:"noopener",children:"Streetmix"})," ","and the"," ",(0,ec.jsx)("a",{href:"https://boston.gov/",target:"_blank",rel:"noopener",children:"City of Boston"})," ","to design, visualize and share resilient coasts. Create your ideal waterfront, build coastal flood protection, and learn how climate change impacts your community."," ",(0,ec.jsx)("a",{href:"https://www.boston.gov/coastmix",target:"_blank",rel:"noopener",children:"Learn more."})]}),(0,ec.jsx)("h2",{children:"Project team"}),(0,ec.jsxs)("div",{className:"credits-team",children:[(0,ec.jsxs)("div",{className:"team-member",children:[(0,ec.jsx)("div",{className:"team-member-mugshot",style:{backgroundImage:`url(${ei(Z_)})`}}),(0,ec.jsx)("span",{className:"team-member-name",children:"Catherine McCandless"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Senior Project Manager"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Office of Climate Resilience"})]}),(0,ec.jsxs)("div",{className:"team-member",children:[(0,ec.jsx)("div",{className:"team-member-mugshot",style:{backgroundImage:"url('/images/team/katie.jpg')"}}),(0,ec.jsx)("span",{className:"team-member-name",children:"Katie Lewis"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Art Director"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Streetmix"})]}),(0,ec.jsxs)("div",{className:"team-member",children:[(0,ec.jsx)("div",{className:"team-member-mugshot",style:{backgroundImage:`url(${ei(Zk)})`}}),(0,ec.jsx)("span",{className:"team-member-name",children:"Kelly Sherman"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Project Manager"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Office of Climate Resilience"})]}),(0,ec.jsxs)("div",{className:"team-member",children:[(0,ec.jsx)("div",{className:"team-member-mugshot",style:{backgroundImage:"url('/images/team/lou.jpg')"}}),(0,ec.jsx)("span",{className:"team-member-name",children:"Lou Huang"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Project Lead"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Streetmix"})]}),(0,ec.jsxs)("div",{className:"team-member",children:[(0,ec.jsx)("div",{className:"team-member-mugshot",style:{backgroundImage:`url(${ei(ZS)})`}}),(0,ec.jsx)("span",{className:"team-member-name",children:"Michael Lawrence Evans"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Director"}),(0,ec.jsx)("span",{className:"team-member-title",children:"Office of Emerging Technology"})]})]}),(0,ec.jsx)("h2",{style:{marginBottom:0},children:"Special thanks to"}),(0,ec.jsxs)("div",{className:"credits-container",style:{marginTop:0},children:[(0,ec.jsxs)("div",{children:[(0,ec.jsx)("h3",{children:"City of Boston"}),(0,ec.jsxs)("ul",{children:[(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Alice Brown"}),", ",(0,ec.jsx)("i",{children:"Environment Department"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Benjamin Matusow"}),", ",(0,ec.jsx)("i",{children:"Planning Department"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Christopher Osgood"}),","," ",(0,ec.jsx)("i",{children:"Office of Climate Resilience"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Maddie Webster"}),","," ",(0,ec.jsx)("i",{children:"Transportation Department"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Marin Braco"}),", ",(0,ec.jsx)("i",{children:"Parks Department"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Nayeli Rodriguez"}),","," ",(0,ec.jsx)("i",{children:"Office of Climate Resilience"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Roua Atamaz Sibai"}),","," ",(0,ec.jsx)("i",{children:"Office of Emerging Technology"})]})]})]}),(0,ec.jsxs)("div",{children:[(0,ec.jsx)("h3",{children:"Partners"}),(0,ec.jsxs)("ul",{children:[(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Emma Gildesgame"}),", ",(0,ec.jsx)("i",{children:"The Nature Conservancy"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Joe Christo"}),", ",(0,ec.jsx)("i",{children:"Stone Living Lab"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Kalila Barnett"}),", ",(0,ec.jsx)("i",{children:"Barr Foundation"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Lindsey Butler"}),", ",(0,ec.jsx)("i",{children:"Green Ribbon Commission"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Nasser Brahim"}),","," ",(0,ec.jsx)("i",{children:"Mystic River Watershed Association"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Rebecca Herst"}),", ",(0,ec.jsx)("i",{children:"Green Ribbon Commission"})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)("strong",{children:"Rebecca Shoer"}),", ",(0,ec.jsx)("i",{children:"Boston Harbor Now"})]})]})]})]})]})]})}function ZO(e,t){(0,ef.useEffect)(()=>{let n=n=>{null===e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])}function Zj({children:e}){let t=(0,ef.useRef)(null),n=(0,ef.useRef)(null),[r,i]=(0,ef.useState)(!0),o=ej();function a(){i(!1)}return ZO(t,a),(0,ef.useEffect)(()=>(Rs("esc",a),()=>{Rl("esc",a)}),[]),(0,ec.jsx)(kF,{appear:!0,in:r,timeout:80,classNames:"dialog-transition",onExited:function(){o(uV())},nodeRef:n,children:(0,ec.jsxs)("div",{className:"dialog-box-container",ref:n,children:[(0,ec.jsx)("div",{className:"dialog-box-backdrop"}),(0,ec.jsx)("div",{className:"dialog-box-display-area",children:(0,ec.jsxs)("div",{className:"dialog-box",role:"dialog",ref:t,children:[(0,ec.jsx)(zV,{onClick:a}),e(a)]})})]})})}ZS=D("2qSqM");var ef=(el("8NFma"),el("8NFma"),el("8NFma"));function ZT(e){let{name:t,title:n,mugshotFile:r,url:i}=e,o={};r&&(o.backgroundImage=`url('/images/team/${r}')`);let a=void 0!==i?(0,ec.jsx)(z2,{href:i,children:t}):t;return(0,ec.jsxs)("div",{className:"team-member",children:[(0,ec.jsx)("div",{className:"team-member-mugshot",style:o}),(0,ec.jsx)("span",{className:"team-member-name",children:a}),(0,ec.jsx)("span",{className:"team-member-title",children:n})]})}var ZC={};function ZI(e,t){let n=e.name.toLowerCase(),r=t.name.toLowerCase();return n<r?-1:+(n>r)}
148ZC=JSON.parse('{"team":[{"name":"Lou Huang","title":"project lead","mugshotFile":"lou.jpg","url":"https://louhuang.com","active":true,"original":true},{"name":"Katie Lewis","title":"art director, illustrator","mugshotFile":"katie.jpg","url":"https://twitter.com/klizlewis","active":true,"original":true},{"name":"Anselm Bradford","title":"media production","mugshotFile":"anselm.jpg","url":"https://twitter.com/anselmbradford","active":false,"original":true},{"name":"Drew Dara-Abrams","title":"fullstack engineer","mugshotFile":"drew.jpg","url":"https://drew.dara-abrams.com","active":false},{"name":"Elizabeth Ferrao","title":"product manager","mugshotFile":"elizabeth.jpg","active":false},{"name":"Ezra Spier","title":"engineer, marketing","mugshotFile":"ezra.jpg","url":"https://yesezra.com/","active":false,"original":true},{"name":"Mandy Kong","mugshotFile":"mandy.jpg","title":"fullstack engineer","active":false},{"name":"Marc Hébert","title":"design anthropologist","mugshotFile":"marc.jpg","url":"https://www.linkedin.com/pub/marc-hebert/1/2bb/66","active":false,"original":true},{"name":"Marcin Wichary","title":"designer, project manager","mugshotFile":"marcin.jpg","url":"https://aresluna.org","active":false,"original":true},{"name":"Oluwaseun Omoyajowo","mugshotFile":"oluwaseun.jpg","title":"fullstack engineer","url":"https://twitter.com/oluwaseunOmoya","active":false},{"name":"Ryder Ross","mugshotFile":"ryder.jpg","title":"fullstack engineer","active":false},{"name":"Shaunak Kashyap","title":"backend engineer","mugshotFile":"shaunak.jpg","url":"https://twitter.com/shaunak","active":false,"original":true},{"name":"Shemar Dacosta","mugshotFile":"shemar.jpg","title":"frontend engineer","active":false},{"name":"Tomasz Magulski","mugshotFile":"tomasz.jpg","title":"engineer","active":false},{"name":"Trey Hahn","mugshotFile":"trey.jpg","title":"localization project manager","url":"https://www.linkedin.com/in/treyhahn/","active":false},{"name":"Whitman Schorn","mugshotFile":"whitman.jpg","title":"engineer","url":"https://whitmanschorn.com","active":false}],"contributors":{"additional-illustrations":["Brian Wamsley","Claudio Olivares Medina","Doneliza Joaquin","Enrico Ferreguti","Jon Reese","Peter Welte"],"additional-code":["Alex Ellis","Ali Idrees","André Lins","Annabel Church","Anton Panasenko","Andrew Gilbert","Ayush Rawal","Brendan Mortimer","Brewal Derouet","Cody Moss","Don McCurdy","Dwiki Arlan","Eric Sherman","Joe James-Rodriguez","Kieran Farr","Loris Sikora","Maciej Kus","Mila Frerichs","Paulius Kuzmickas","Radosław Miernik","Tanya Yakovleva","Tommi Vainikainen"],"additional-contributors":[["Aline Reynolds","writer and researcher"],["Amir Reavis-Bey","database migration"],["Patrick McDonnell","illustrations styleguide"],["Jeremy Lechtzin","legal counsel"],["Justine Braisted","branding"],["Lisa Ratner","user experience"],["Mebrak Tareke","communications"],["Nick Doiron","right-to-left localization"],["Wendy Fok","project manager"]],"special-thanks":["Adrian Mak","Jeff Speck","Molly King",["Billy Riggs","ReStreet"],["Michael Boswell","ReStreet"],["Pia Mancini","OpenCollective"],"Matt Hampel","Brandon Liu",["Debs Schrimmer","Lyft"],["Rob McPherson","Skip"],["Carlos Pardo","NUMO"],{"label":"Code for America","people":["Alex Tran","Andrew Hyder","Dave Guarino","Jen Pahlka","Mike Migurski","SaraT Mayer"]},{"label":"NEW INC","people":["Alex Darby","Julia Kaganskiy","Kelsa Trom","Michelle Carollo","Rasu Jilani","Stephanie Pereira"]},{"label":"Civic Hall","people":["Ellen Mendlow","Shaneka Ramdeen"]}]},"translators":{"am":["Gashaw Aberra","Carolyne Mimano"],"ar":["Diana M. Alhaj","Zakaria Shekhreet"],"ca":["Max Eritja","Ignasi Gustems"],"cs":["Jiří Podhorecký"],"zh":["Crystal Xing","Maggie Dong","Ricky Tsui","Summer Pan","Wen Jing Jiang"],"fi":["Aleksi Kinnunen"],"fr":["Denis Devillé","Jean-Louis Stanus","Philippe Provost"],"de":["Julia Tahedl","Martin Niegl","Max Maaß"],"id":["Fuad Alghaffary"],"it":["Enrico Ferreguti","Marco Scarselli"],"ja":["Hitomi Narakawa","Satoshi Iida"],"ko":["Sunha Park","Hanbyul Jo","Jaeheon Kim"],"nb-no":["Anders Hartmann","Børge A. Roum"],"pl":["Honorata Grzesikowska","Tomasz Magulski","Weronika Grzejszczak","Wojciech Patelka"],"pt-br":["Carlos Jimenez","Stephan Garcia",["Carolina Guido","Urb-i"],["Paulo Franco","Urb-i"],["Yuval Fogelson","Urb-i"]],"ru":["Artem Savin","Olya Arakhouskaya"],"es-419":["Lina Marcela Quiñones"],"es-es":["Pau Martí Talens"],"es-mx":["David Soto Padín","Paco Marquez","Patricio M. Ruiz Abrín"],"sv":["Jakob Fahlstedt","Dennis Haagensen"],"tr":["Hayrettin Günç","Hande Sığın"]}}');
148let ZP={advisors:"Advisors","additional-illustrations":"Additional illustrations","additional-code":"Additional code","additional-contributors":"Additional contributors","special-thanks":"Special thanks to",ar:"Arabic",ca:"Catalan",de:"German",en:"English",es:"Spanish","es-mx":"Spanish (Mexico)","es-419":"Spanish (Latin America)",fi:"Finnish",fr:"French",it:"Italian",ja:"Japanese",ko:"Korean","nb-no":"Norwegian Bokmål",pl:"Polish","pt-br":"Portuguese (Brazil)",ru:"Russian",sv:"Swedish",zh:"Chinese"};function ZA(){return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"credits.original-team-heading",defaultMessage:"Original project team"})}),(0,ec.jsx)("div",{className:"credits-team",children:ei(ZC).team.filter(e=>!0===e.original).sort(ZI).map(e=>(0,ef.createElement)(ZT,{...e,key:e.name}))}),(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"credits.core-contributors",defaultMessage:"Core contributors"})}),(0,ec.jsx)("div",{className:"credits-team",children:ei(ZC).team.filter(e=>!0!==e.original).sort(ZI).map(e=>(0,ef.createElement)(ZT,{...e,key:e.name}))}),(0,ec.jsxs)("div",{className:"credits-container",children:[(0,ec.jsx)("div",{className:"credits-credits-left",children:Object.entries(ei(ZC).contributors).map(([e,t])=>(0,ec.jsxs)(ef.Fragment,{children:[(0,ec.jsx)("h3",{children:(0,ec.jsx)(TQ,{id:`credits.${e}`,defaultMessage:ZP[e]})}),(0,ec.jsx)("ul",{children:t.sort().map(e=>Array.isArray(e)?(0,ec.jsxs)("li",{children:[e[0],", ",(0,ec.jsx)("i",{children:e[1]})]},e[0]):"string"==typeof e?(0,ec.jsx)("li",{children:e},e):(0,ec.jsxs)("li",{children:[(0,ec.jsx)("h4",{children:e.label}),(0,ec.jsx)("ul",{children:e.people.map(e=>(0,ec.jsx)("li",{children:e},e))})]},e.label))})]},e))}),(0,ec.jsxs)("div",{className:"credits-credits-right",children:[(0,ec.jsx)("h3",{children:(0,ec.jsx)(TQ,{id:"credits.translators",defaultMessage:"Translators"})}),(0,ec.jsx)("ul",{children:Object.entries(ei(ZC).translators).map(([e,t])=>(0,ec.jsxs)("li",{children:[(0,ec.jsx)("h4",{children:(0,ec.jsx)(TQ,{id:`i18n.lang.${e}`,defaultMessage:ZP[e]})}),(0,ec.jsx)("ul",{children:t.sort().map(e=>Array.isArray(e)?(0,ec.jsxs)("li",{children:[e[0],", ",(0,ec.jsx)("i",{children:e[1]})]},e[0]):(0,ec.jsx)("li",{children:e},e))})]},e))})]})]})]})}function ZR(){return(0,ec.jsxs)("ul",{className:"social-links",children:[(0,ec.jsx)("li",{children:(0,ec.jsx)("a",{href:"https://github.com/streetmix/",title:"GitHub",target:"_blank",rel:"noopener noreferrer",children:(0,ec.jsx)(C0,{name:"github",className:"social-github"})})}),(0,ec.jsx)("li",{children:(0,ec.jsx)("a",{href:"https://strt.mx/discord",title:"Discord",target:"_blank",rel:"noopener noreferrer",children:(0,ec.jsx)(C0,{name:"discord",className:"social-discord"})})}),(0,ec.jsx)("li",{children:(0,ec.jsx)("a",{href:"https://bsky.app/profile/streetmix.app",title:"Bluesky",target:"_blank",rel:"me noopener noreferrer",children:(0,ec.jsx)(C0,{name:"bluesky",className:"social-bluesky"})})}),(0,ec.jsx)("li",{children:(0,ec.jsx)("a",{href:"https://urbanists.social/@streetmix",title:"Mastodon",target:"_blank",rel:"me noopener noreferrer",children:(0,ec.jsx)(C0,{name:"mastodon",className:"social-mastodon"})})})]})}function ZN({locale:e}){return(0,ec.jsx)(TQ,{id:"dialogs.save.license",defaultMessage:"This Streetmix-created image may be reused anywhere, for any purpose, under the {licenseLink} license.",values:{licenseLink:(e=>{let{url:t,label:n}=(e=>{let t,n;switch(e){case"ar":t="https://creativecommons.org/licenses/by-sa/4.0/deed.ar",n="Creative Commons نَسب المُصنَّف - الترخيص بالمثل 4.0 دولي (CC BY-SA 4.0)";break;case"ca":t="https://creativecommons.org/licenses/by-sa/4.0/deed.ca",n="Reconeixement-CompartirIgual 4.0 Internacional (CC BY-SA 4.0)";break;case"de":t="https://creativecommons.org/licenses/by-sa/4.0/deed.de",n="Creative Commons Namensnennung - Share Alike 4.0 international (CC BY-SA 4.0)";break;case"es":case"es-MX":case"es-419":t="https://creativecommons.org/licenses/by-sa/4.0/deed.es",n="Creative Commons Atribución-CompartirIgual 4.0 Internacional (CC BY-SA 4.0)";break;case"fi":t="https://creativecommons.org/licenses/by-sa/4.0/deed.fi",n="Creative 
148Commons Nimeä-JaaSamoin 4.0 Kansainvälinen (CC BY-SA 4.0)";break;case"fr":t="https://creativecommons.org/licenses/by-sa/4.0/deed.fr",n="Creative Commons Attribution - Partage dans les Mêmes Conditions 4.0 International (CC BY-SA 4.0)";break;case"it":t="https://creativecommons.org/licenses/by-sa/4.0/deed.it",n="Attribuzione - Condividi allo stesso modo 4.0 Internazionale (CC BY-SA 4.0)";break;case"ja":t="https://creativecommons.org/licenses/by-sa/4.0/deed.ja",n="クリエイティブ・コモンズ 表示 - 継承 4.0 国際 (CC BY-SA 4.0)";break;case"ko":t="https://creativecommons.org/licenses/by-sa/4.0/deed.ko",n="저작자표시-동일조건변경허락 4.0 국제 (CC BY-SA 4.0)";break;case"pl":t="https://creativecommons.org/licenses/by-sa/4.0/deed.pl",n="Creative Commons Uznanie autorstwa-Na tych samych warunkach 4.0 Międzynarodowe (CC BY-SA 4.0)";break;case"pt":t="https://creativecommons.org/licenses/by-sa/4.0/deed.pt",n="Creative Commons Atribuição-CompartilhaIgual 4.0 Internacional (CC BY-SA 4.0)";break;case"pt-BR":t="https://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR",n="Creative Commons Atribuição-CompartilhaIgual 4.0 Internacional (CC BY-SA 4.0)";break;case"ru":t="https://creativecommons.org/licenses/by-sa/4.0/deed.ru",n="Creative Commons «Attribution-ShareAlike» («Атрибуция — На тех же условиях») 4.0 Всемирная (CC BY-SA 4.0)";break;case"sv":t="https://creativecommons.org/licenses/by-sa/4.0/deed.sv",n="Creative Commons Erkännande-DelaLika 4.0 Internationell (CC BY-SA 4.0)";break;case"zh":t="https://creativecommons.org/licenses/by-sa/4.0/deed.zh",n="Creative Commons 署名-相同方式共享 4.0 国际 (CC BY-SA 4.0)";break;case"zh-Hant":case"zh-TW":t="https://creativecommons.org/licenses/by-sa/4.0/deed.zh_TW",n="Creative Commons 姓名標示-相同方式分享 4.0 國際 (CC BY-SA 4.0)";break;default:t="https://creativecommons.org/licenses/by-sa/4.0/",n="Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)"}return{url:t,label:n}})(e);return(0,ec.jsxs)(z2,{href:t,children:[n,"‎"]})})(e)}})}function ZM(e){let{children:t,checked:n=!1,disabled:r=!1,value:i,onChange:o=()=>void 0,className:a="",...s}=e,[l,u]=(0,ef.useState)(n),c=(0,ef.useId)(),d=["checkbox-item"];return a&&d.push(a),(0,ec.jsxs)("div",{className:d.join(" "),...s,children:[(0,ec.jsx)("input",{type:"checkbox",id:c,checked:l,value:i,disabled:r,onChange:e=>{u(!l),o(e)}}),(0,ec.jsx)("label",{htmlFor:c,children:t}),(0,ec.jsx)(C0,{name:"check"})]})}var ef=(el("8NFma"),el("8NFma"),el("8NFma"));function ZD(){let e=kU(e=>e.street?.capacitySource??"giz"),t=kB(),[n,r]=(0,ef.useState)(e),i=Object.values(H4);return(0,ec.jsxs)("p",{children:[(0,ec.jsxs)("strong",{children:[(0,ec.jsx)(TQ,{id:"dialogs.analytics.capacity-data-source",defaultMessage:"Capacity data source"}),":‎"]})," ",(0,ec.jsx)("select",{className:"capacity-source-select",disabled:!AD(),value:n,onChange:function(e){let n;r(e.target.value),t((n=e.target.value,async e=>{await e(cU(n)),await e(P0())}))},children:i.map(({source_author:e,id:t})=>(0,ec.jsx)("option",{value:t,children:e},t))})]})}function ZL({average:e,potential:t,max:n}){let r={mass:1,tension:250,friction:40},i=L7({config:r,width:`${e/t*100}%`}),o=L7({config:r,width:`${t/n*65}%`});return(0,ec.jsxs)(zy.div,{className:"capacity-bars",style:o,children:[(0,ec.jsx)("div",{className:"capacity-bar capacity-bar-potential",style:{width:"100%"},children:" "}),(0,ec.jsx)(zy.div,{className:"capacity-bar capacity-bar-average",style:i,children:" "})]})}function Zz({locale:e,average:t,potential:n}){let r=t===n,i={maximumSignificantDigits:3};return(0,ec.jsx)(TQ,{id:r?"dialogs.analytics.segment-summary-single":"dialogs.analytics.segment-summary",defaultMessage:r?"{amount} people/hour":"{average} — {potential} people/hour",values:{amount:cv(t,e,i),average:cv(t,e,i),potential:cv(n,e,i)}})}function ZF({index:e,type:t,max:n,capacity:r}){let i,o=kU(e=>e.locale.locale),{average:a,potential:s}=r,l=Pa(t);if(0===a)return null;switch(t){case"magic-carpet":i=(0,ec.jsx)("img",{src:pl.get("vehicles--magic-carpet-jasmine").src,style:{width:"100%",marginTop:"-22%"}});break;
148case"drive-lane":i=(0,ec.jsx)("img",{src:pl.get("vehicles--car-inbound").src,style:{width:"100%",marginTop:"-10%"}});break;case"bike-lane":i=(0,ec.jsx)("img",{src:pl.get("bikes--biker-01-inbound").src,style:{width:"45%",marginTop:"0%"}});break;case"brt-lane":i=(0,ec.jsx)("img",{src:pl.get("transit--brt-bus-inbound").src,style:{width:"85%",marginTop:"-5%"}});break;case"sidewalk":i=(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("img",{src:pl.get("people--people-01").src}),(0,ec.jsx)("img",{src:pl.get("people--people-06").src,style:{marginLeft:"-40%"}})]});break;case"scooter":i=(0,ec.jsx)("img",{src:pl.get("scooters--scooter-inbound").src,style:{width:"38%",marginTop:"0%"}});break;case"light-rail":i=(0,ec.jsx)("img",{src:pl.get("transit--light-rail-inbound").src,style:{width:"65%",marginTop:"-15%"}});break;case"bus-lane":i=(0,ec.jsx)("img",{src:pl.get("transit--bus-inbound").src,style:{width:"90%",marginTop:"0%"}});break;case"streetcar":i=(0,ec.jsx)("img",{src:pl.get("transit--streetcar-inbound").src,style:{width:"80%",marginTop:"-15%"}})}return(0,ec.jsxs)("div",{className:"slice-analytics","data-color":e%4+1,children:[(0,ec.jsx)("div",{className:"capacity-icon",children:(0,ec.jsx)("div",{className:"capacity-icon-image",children:i})}),(0,ec.jsx)(ZL,{average:a,potential:s,max:n}),(0,ec.jsxs)("div",{className:"capacity-text",children:[(0,ec.jsx)("div",{className:"capacity-label",children:l}),(0,ec.jsx)("div",{className:"capacity-summary",children:(0,ec.jsx)(Zz,{average:a,potential:s,locale:o})})]})]})}var ZB={};!function(e){"use strict";function t(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}var n,r,i,o,a,s,l,u,c,d,f=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function h(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var p=0;function m(e){return"_leaflet_id"in e||(e._leaflet_id=++p),e._leaflet_id}function g(e,t,n){var r,i,o,a;return a=function(){r=!1,i&&(o.apply(n,i),i=!1)},o=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(a,t),r=!0)}}function y(e,t,n){var r=t[1],i=t[0],o=r-i;return e===r&&n?e:((e-i)%o+o)%o+i}function v(){return!1}function b(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function x(e){return w(e).split(/\s+/)}function _(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?f(e.options):{}),t)e.options[n]=t[n];return e.options}function k(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function E(e,t){return e.replace(S,function(e,n){var r=t[n];if(void 0===r)throw Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r})}var O=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function j(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return -1}var T="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function C(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var I=0;function P(e){var t=+new Date,n=Math.max(0,16-(t-I));return I=t+n,window.setTimeout(e,n)}var A=window.requestAnimationFrame||C("RequestAnimationFrame")||P,R=window.cancelAnimationFrame||C("CancelAnimationFrame")||C("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function N(e,t,n){if(!n||A!==P)return A.call(window,h(e,t));e.call(t)}function M(e){e&&R.call(window,e)}function D(){}D.extend=function(e){var n=function(){_(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=n.__super__=this.prototype,i=f(r);for(var o in i.constructor=n,n.prototype=i,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(n[o]=this[o]);return e.statics&&t(n,e.statics),e.includes&&(function(e){if("u">typeof L&&L&&L.Mixin){e=O(e)?e:[e];for(var t=0;t<e.length;
148t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",Error().stack)}}(e.includes),t.apply(null,[i].concat(e.includes))),t(i,e),delete i.statics,delete i.includes,i.options&&(i.options=r.options?f(r.options):{},t(i.options,e.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=i._initHooks.length;e<t;e++)i._initHooks[e].call(this)}},n},D.include=function(e){var n=this.prototype.options;return t(this.prototype,e),e.options&&(this.prototype.options=n,this.mergeOptions(e.options)),this},D.mergeOptions=function(e){return t(this.prototype.options,e),this},D.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var z={on:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t);else{e=x(e);for(var i=0,o=e.length;i<o;i++)this._on(e[i],t,n)}return this},off:function(e,t,n){if(arguments.length)if("object"==typeof e)for(var r in e)this._off(r,e[r],t);else{e=x(e);for(var i=1==arguments.length,o=0,a=e.length;o<a;o++)i?this._off(e[o]):this._off(e[o],t,n)}else delete this._events;return this},_on:function(e,t,n,r){if("function"!=typeof t)return void console.warn("wrong listener type: "+typeof t);if(!1===this._listens(e,t,n)){n===this&&(n=void 0);var i={fn:t,ctx:n};r&&(i.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(i)}},_off:function(e,t,n){if(this._events&&(r=this._events[e])){if(1==arguments.length){if(this._firingCount)for(i=0,o=r.length;i<o;i++)r[i].fn=v;delete this._events[e];return}if("function"!=typeof t)return void console.warn("wrong listener type: "+typeof t);var r,i,o,a=this._listens(e,t,n);if(!1!==a){var s=r[a];this._firingCount&&(s.fn=v,this._events[e]=r=r.slice()),r.splice(a,1)}}},fire:function(e,n,r){if(!this.listens(e,r))return this;var i=t({},n,{type:e,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var o=this._events[e];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a],u=l.fn;l.once&&this.off(e,u,l.ctx),u.call(l.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(e,t,n,r){"string"!=typeof e&&console.warn('"string" type argument expected');var i=t;"function"!=typeof t&&(r=!!t,i=void 0,n=void 0);var o=this._events&&this._events[e];if(o&&o.length&&!1!==this._listens(e,i,n))return!0;if(r){for(var a in this._eventParents)if(this._eventParents[a].listens(e,t,n,r))return!0}return!1},_listens:function(e,t,n){if(!this._events)return!1;var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(n=void 0);for(var i=0,o=r.length;i<o;i++)if(r[i].fn===t&&r[i].ctx===n)return i;return!1},once:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t,!0);else{e=x(e);for(var i=0,o=e.length;i<o;i++)this._on(e[i],t,n,!0)}return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[m(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[m(e)],this},_propagateEvent:function(e){for(var n in this._eventParents)this._eventParents[n].fire(e.type,t({layer:e.target,propagatedFrom:e.target},e),!0)}};z.addEventListener=z.on,z.removeEventListener=z.clearAllEventListeners=z.off,z.addOneTimeEventListener=z.once,z.fireEvent=z.fire,z.hasEventListeners=z.listens;var F=D.extend(z);function B(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var U=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function $(e,t,n){return e instanceof B?e:O(e)?new B(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new B(e.x,e.y):new B(e,t,n)}function H(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function W(e,t){return!e||e instanceof H?e:new H(e,t)}function V(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function q(e,t){return e instanceof V?e:new V(e,t)}function K(e,t,n){if(isNaN(e)||isNaN(t))throw Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function Z(e,t,n){return e instanceof K?e:O(e)&&"object"!=typeof e[0]?3===e.length?new K(e[0],e[1],e[2]):2===e.length?new K(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new K(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new K(e,t,n)}B.prototype={clone:function(){return new B(this.x,this.y)},add:function(e){return this.clone()._add($(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract($(e))}
vendor: 6,144 bytes, line 148
148,_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new B(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new B(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=U(this.x),this.y=U(this.y),this},distanceTo:function(e){var t=(e=$(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=$(e)).x===this.x&&e.y===this.y},contains:function(e){return Math.abs((e=$(e)).x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+b(this.x)+", "+b(this.y)+")"}},H.prototype={extend:function(e){var t,n;if(!e)return this;if(e instanceof B||"number"==typeof e[0]||"x"in e)t=n=$(e);else if(t=(e=W(e)).min,n=e.max,!t||!n)return this;return this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=t.clone(),this.max=n.clone()),this},getCenter:function(e){return $((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return $(this.min.x,this.max.y)},getTopRight:function(){return $(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"==typeof e[0]||e instanceof B?$(e):W(e))instanceof H?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=W(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>=t.x&&r.x<=n.x,a=i.y>=t.y&&r.y<=n.y;return o&&a},overlaps:function(e){e=W(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>t.x&&r.x<n.x,a=i.y>t.y&&r.y<n.y;return o&&a},isValid:function(){return!!(this.min&&this.max)},pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e,i=Math.abs(t.y-n.y)*e;return W($(t.x-r,t.y-i),$(n.x+r,n.y+i))},equals:function(e){return!!e&&(e=W(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight()))}},V.prototype={extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof K)t=e,n=e;else if(!(e instanceof V))return e?this.extend(Z(e)||q(e)):this;else if(t=e._southWest,n=e._northEast,!t||!n)return this;return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new K(t.lat,t.lng),this._northEast=new K(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new V(new K(t.lat-r,t.lng-i),new K(n.lat+r,n.lng+i))},getCenter:function(){return new K((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new K(this.getNorth(),this.getWest())},getSouthEast:function(){return new K(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"==typeof e[0]||e instanceof K||"lat"in e?Z(e):q(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof V?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=q(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>=t.lat&&r.lat<=n.lat,a=i.lng>=t.lng&&r.lng<=n.lng;return o&&a},overlaps:function(e){e=q(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>t.lat&&r.lat<n.lat,a=i.lng>t.lng&&r.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=q(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!!(this._southWest&&this._northEast)}},K.prototype={equals:function(e,t){return!!e&&(e=Z(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+b(this.lat,e)+", "+b(this.lng,e)+")"},distanceTo:function(e){return Y.distance(this,Z(e))},wrap:function(){return Y.wrapLatLng(this)},toBounds:function(e){var t=180*e/0x2637f09,n=t/Math.cos(Math.PI/180*this.lat);return q([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new K(this.lat,this.lng,this.alt)}};var G={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new H(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?y(e.lng,this.wrapLng,!0):e.lng;return new K(this.wrapLat?y(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(0===r&&0===i)return e;
148var o=e.getSouthWest(),a=e.getNorthEast();return new V(new K(o.lat-r,o.lng-i),new K(a.lat-r,a.lng-i))}},Y=t({},G,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,o=Math.sin((t.lat-e.lat)*n/2),a=Math.sin((t.lng-e.lng)*n/2),s=o*o+Math.cos(r)*Math.cos(i)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),X={R:6378137,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.sin(Math.max(Math.min(n,e.lat),-n)*t);return new B(this.R*e.lng*t,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(e){var t=180/Math.PI;return new K((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:new H([-(l=6378137*Math.PI),-l],[l,l])};function J(e,t,n,r){if(O(e)){this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3];return}this._a=e,this._b=t,this._c=n,this._d=r}function Q(e,t,n,r){return new J(e,t,n,r)}J.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return e.x=(t=t||1)*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new B((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var ee=t({},Y,{code:"EPSG:3857",projection:X,transformation:Q(u=.5/(Math.PI*X.R),.5,-u,.5)}),et=t({},ee,{code:"EPSG:900913"});function en(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function er(e,t){var n,r,i,o,a,s,l="";for(n=0,i=e.length;n<i;n++){for(r=0,o=(a=e[n]).length;r<o;r++)s=a[r],l+=(r?"L":"M")+s.x+" "+s.y;l+=t?eD.svg?"z":"x":""}return l||"M0 0"}var ei=document.documentElement.style,eo="ActiveXObject"in window,ea=eo&&!document.addEventListener,es="msLaunchUri"in navigator&&!("documentMode"in document),el=eM("webkit"),eu=eM("android"),ec=eM("android 2")||eM("android 3"),ed=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ef=eu&&eM("Google")&&ed<537&&!("AudioNode"in window),eh=!!window.opera,ep=!es&&eM("chrome"),em=eM("gecko")&&!el&&!eh&&!eo,eg=!ep&&eM("safari"),ey=eM("phantom"),ev="OTransition"in ei,eb=0===navigator.platform.indexOf("Win"),ew=eo&&"transition"in ei,ex="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ec,e_="MozPerspective"in ei,ek=!window.L_DISABLE_3D&&(ew||ex||e_)&&!ev&&!ey,eS="u">typeof orientation||eM("mobile"),eE=!window.PointerEvent&&window.MSPointerEvent,eO=!!(window.PointerEvent||eE),ej="ontouchstart"in window||!!window.TouchEvent,eT=!window.L_NO_TOUCH&&(ej||eO),eC=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,eI=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",v,t),window.removeEventListener("testPassiveEventSupport",v,t)}catch(e){}return e}(),eP=!!document.createElement("canvas").getContext,eA=!!(document.createElementNS&&en("svg").createSVGRect),eR=!!eA&&((c=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(c.firstChild&&c.firstChild.namespaceURI)),eN=!eA&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}();function eM(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var eD={ie:eo,ielt9:ea,edge:es,webkit:el,android:eu,android23:ec,androidStock:ef,opera:eh,chrome:ep,gecko:em,safari:eg,phantom:ey,opera12:ev,win:eb,ie3d:ew,webkit3d:ex,gecko3d:e_,any3d:ek,mobile:eS,mobileWebkit:eS&&el,mobileWebkit3d:eS&&ex,msPointer:eE,pointer:eO,touch:eT,touchNative:ej,mobileOpera:eS&&eh,mobileGecko:eS&&em,retina:eC,passiveEvents:eI,canvas:eP,svg:eA,vml:eN,inlineSvg:eR,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},eL=eD.msPointer?"MSPointerDown":"pointerdown",ez=eD.msPointer?"MSPointerMove":"pointermove",eF=eD.msPointer?"MSPointerUp":"pointerup",eB=eD.msPointer?"MSPointerCancel":"pointercancel",eU={touchstart:eL,touchmove:ez,touchend:eF,touchcancel:eB},e$={touchstart:function(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&t_(t),eZ(e,t)},touchmove:eZ,touchend:eZ,touchcancel:eZ},eH={},eW=!1;function eV(e){eH[e.pointerId]=e}function eq(e){eH[e.pointerId]&&(eH[e.pointerId]=e)}function eK(e){delete eH[e.pointerId]}function eZ(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],eH)t.touches.push(eH[n]);t.changedTouches=[t],e(t)}}var eG=tt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),eY=tt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),eX="webkitTransition"===eY||"OTransition"===eY?eY+"End":"transitionend";function eJ(e){return"string"==typeof e?document.getElementById(e):e}function eQ(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function e0(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function e1(e){var t=e.parentNode;t&&t.removeChild(e)}function e2(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function e3(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function e4(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function e5(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=e7(e);return n.length>0&&RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function e6(e,t){if(void 0!==e.classList)for(var n=x(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!e5(e,t)){var o=e7(e);e9(e,(o?o+" ":"")+t)}}function e8(e,t){void 0!==e.classList?e.classList.remove(t):e9(e,w((" "+e7(e)+" ").replace(" "+t+" "," ")))}function e9(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function e7(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function te(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&function(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(e){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}(e,t)}function tt(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function tn(e,t,n){var r=t||new B(0,0);e.style[eG]=(eD.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function tr(e,t){e._leaflet_pos=t,eD.any3d?tn(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function ti(e){return e._leaflet_pos||new B(0,0)}if("onselectstart"in document)n=function(){tf(window,"selectstart",t_)},r=function(){tp(window,"selectstart",t_)};else{var to=tt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);n=function(){if(to){var e=document.documentElement.style;i=e[to],e[to]="none"}},r=function(){to&&(document.documentElement.style[to]=i,i=void 0)}}function ta(){tf(window,"dragstart",t_)}function ts(){tp(window,"dragstart",t_)}function tl(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(tu(),o=e,a=e.style.outlineStyle,e.style.outlineStyle="none",tf(window,"keydown",tu))}function tu(){o&&(o.style.outlineStyle=a,o=void 0,a=void 0,tp(window,"keydown",tu))}function tc(e){do e=e.parentNode;while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body)return e}function td(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}function tf(e,t,n,r){if(t&&"object"==typeof t)for(var i in t)ty(e,i,t[i],n);else{t=x(t);for(var o=0,a=t.length;o<a;o++)ty(e,t[o],n,r)}return this}var th="_leaflet_events";function tp(e,t,n,r){if(1==arguments.length)tm(e),delete e[th];else if(t&&"object"==typeof t)for(var i in t)tv(e,i,t[i],n);else if(t=x(t),2==arguments.length)tm(e,function(e){return -1!==j(t,e)});else for(var o=0,a=t.length;o<a;o++)tv(e,t[o],n,r);return this}function tm(e,t){for(var n in e[th]){var r=n.split(/\d/)[0];(!t||t(r))&&tv(e,r,null,null,n)}}
148var tg={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ty(e,t,n,r){var i=t+m(n)+(r?"_"+m(r):"");if(e[th]&&e[th][i])return this;var o=function(t){return n.call(r||e,t||window.event)},a=o;!eD.touchNative&&eD.pointer&&0===t.indexOf("touch")?o=function(e,t,n){return("touchstart"===t&&(eW||(document.addEventListener(eL,eV,!0),document.addEventListener(ez,eq,!0),document.addEventListener(eF,eK,!0),document.addEventListener(eB,eK,!0),eW=!0)),e$[t])?(n=e$[t].bind(this,n),e.addEventListener(eU[t],n,!1),n):(console.warn("wrong event specified:",t),v)}(e,t,o):eD.touch&&"dblclick"===t?o=function(e,t){e.addEventListener("dblclick",t);var n,r=0;function i(e){if(1!==e.detail){n=e.detail;return}if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var i=tS(e);if(!i.some(function(e){return e instanceof HTMLLabelElement&&e.attributes.for})||i.some(function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement})){var o=Date.now();o-r<=200?2==++n&&t(function(e){var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;return e=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}(e)):n=1,r=o}}}return e.addEventListener("click",i),{dblclick:t,simDblclick:i}}(e,o):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(tg[t]||t,o,!!eD.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(o=function(t){tT(e,t=t||window.event)&&a(t)},e.addEventListener(tg[t],o,!1)):e.addEventListener(t,a,!1):e.attachEvent("on"+t,o),e[th]=e[th]||{},e[th][i]=o}function tv(e,t,n,r,i){i=i||t+m(n)+(r?"_"+m(r):"");var o=e[th]&&e[th][i];if(!o)return this;!eD.touchNative&&eD.pointer&&0===t.indexOf("touch")?eU[t]?e.removeEventListener(eU[t],o,!1):console.warn("wrong event specified:",t):eD.touch&&"dblclick"===t?(e.removeEventListener("dblclick",o.dblclick),e.removeEventListener("click",o.simDblclick)):"removeEventListener"in e?e.removeEventListener(tg[t]||t,o,!1):e.detachEvent("on"+t,o),e[th][i]=null}function tb(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function tw(e){return ty(e,"wheel",tb),this}function tx(e){return tf(e,"mousedown touchstart dblclick contextmenu",tb),e._leaflet_disable_click=!0,this}function t_(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function tk(e){return t_(e),tb(e),this}function tS(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}function tE(e,t){if(!t)return new B(e.clientX,e.clientY);var n=td(t),r=n.boundingClientRect;return new B((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var tO=eD.linux&&eD.chrome?window.devicePixelRatio:eD.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function tj(e){return eD.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/tO:e.deltaY&&1===e.deltaMode?-(20*e.deltaY):e.deltaY&&2===e.deltaMode?-(60*e.deltaY):e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&32765>Math.abs(e.detail)?-(20*e.detail):e.detail?-(60*(e.detail/32765)):0}function tT(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var tC=F.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=ti(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=N(this._animate,this),this._step()},_step:function(e){var t=new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),tr(this._el,n),this.fire("step")},_complete:function(){M(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),tI=F.extend({options:{crs:ee,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=_(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=h(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(Z(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=eY&&eD.any3d&&!eD.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),tf(this._proxy,eX,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 1,336 bytes, line 148
148,setView:function(e,n,r){return(n=void 0===n?this._zoom:this._limitZoom(n),e=this._limitCenter(Z(e),n,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=t({animate:r.animate},r.zoom),r.pan=t({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,n,r.zoom):this._tryAnimatedPan(e,r.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,n,r.pan&&r.pan.noMoveStart),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(eD.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(eD.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),o=(e instanceof B?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),a=this.containerPointToLatLng(i.add(o));return this.setView(a,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():q(e);var n=$(t.paddingTopLeft||t.padding||[0,0]),r=$(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if((i="number"==typeof t.maxZoom?Math.min(t.maxZoom,i):i)===1/0)return{center:e.getCenter(),zoom:i};
148var o=r.subtract(n).divideBy(2),a=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(a.add(s).divideBy(2).add(o),i),zoom:i}},fitBounds:function(e,t){if(!(e=q(e)).isValid())throw Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(e=$(e).round(),t=t||{},!e.x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new tC,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){e6(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!eD.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),o=this.getSize(),a=this._zoom;e=Z(e),t=void 0===t?a:t;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,t),u=i.distanceTo(r)||1;function c(e){var t=(l*l-s*s+(e?-1:1)*4.0658689599999995*u*u)/(2*(e?l:s)*2.0164*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function d(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}var h=c(0),p=Date.now(),m=(c(1)-h)/1.42,g=n.duration?1e3*n.duration:1e3*m*.8;function y(){var n,o=(Date.now()-p)/g,l=(1-Math.pow(1-o,1.5))*m;o<=1?(this._flyToFrame=N(y,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(s*(f(h)*(d(n=h+1.42*l)/f(n))-d(h))/2.0164/u)),a),this.get
vendor: 13,268 bytes, line 148
148ScaleZoom(s/(s*(f(h)/f(h+1.42*l))),a),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),y.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=q(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid())?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var t=this.options.minZoom;return(this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom))?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return(this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom))?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,q(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=$((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=$(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),o=this.project(e),a=this.getPixelBounds(),s=W([a.min.add(n),a.max.subtract(r)]),l=s.getSize();if(!s.contains(o)){this._enforcingBounds=!0;var u=o.subtract(s.getCenter()),c=s.extend(o).getSize().subtract(l);i.x+=u.x<0?-c.x:c.x,i.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),i=n.divideBy(2).round(),o=r.divideBy(2).round(),a=i.subtract(o);return a.x||a.y?(e.animate&&e.pan?this.panBy(a):(e.pan&&this._rawPanBy(a),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(h(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=h(this._handleGeolocationResponse,this),r=h(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,r,e):navigator.geolocation.getCurrentPosition(n,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new K(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var o={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"==typeof e.coords[a]&&(o[a]=e.coords[a]);this.fire("locationfound",o)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){var e;if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),e1(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(M(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)e1(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=e0("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return(this._checkIfLoaded(),this._lastCenter&&!this._moved())?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new V(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=q(e),n=$(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),u=W(this.project(s,r),this.project(a,r)).getSize(),c=eD.any3d?this.options.zoomSnap:1,d=l.x/u.x,f=l.y/u.y,h=t?Math.max(d,f):Math.min(d,f);return r=this.getScaleZoom(h,r),c&&(r=c/100*Math.round(r/(c/100)),r=t?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(i,Math.min(o,r))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new B(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new H(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(Z(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng($(e),t)},layerPointToLatLng:function(e){var t=$(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(Z(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(Z(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(q(e))},distance:function(e,t){return this.options.crs.distance(Z(e),Z(t))},containerPointToLayerPoint:function(e){return $(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return $(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint($(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(e)))},mouseEventToContainerPoint:function(e){return tE(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=eJ(e);if(t){if(t._leaflet_id)throw Error("Map container is already initialized.")}else throw Error("Map container not found.");tf(t,"scroll",this._onScroll,this),this._containerId=m(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&eD.any3d,e6(e,"leaflet-container"+(eD.touch?" leaflet-touch":"")+(eD.retina?" leaflet-retina":"")+(eD.ielt9?" leaflet-oldie":"")+(eD.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=eQ(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&"sticky"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),tr(this._mapPane,new B(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(e6(e.markerPane,"leaflet-zoom-hide"),e6(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t,n){tr(this._mapPane,new B(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire("zoom",n):((i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return M(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){tr(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[m(this._container)]=this;var t=e?tp:tf;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),eD.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){M(this._resizeRequest),this._resizeRequest=N(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,o=e.target||e.srcElement,a=!1;o;){if((n=this._targets[m(o)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(t,!0)&&(i&&!tT(o,e)||(r.push(n),i)))break;if(o===this._container)break;o=o.parentNode}return!r.length&&!a&&!i&&this.listens(t,!0)&&(r=[this]),r},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&tl(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,r){if("click"===e.type){var i=t({},e);i.type="preclick",this._fireDOMEvent(i,i.type,r)}var o=this._findEventTargets(e,n);if(r){for(var a=[],s=0;s<r.length;s++)r[s].listens(n,!0)&&a.push(r[s]);o=a.concat(o)}if(o.length){"contextmenu"===n&&t_(e);var l=o[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(s=0;s<o.length;s++)if(o[s].fire(n,u,!0),u.originalEvent._stopped||!1===o[s].options.bubblingMouseEvents&&-1!==j(this._mouseEvents,n))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return ti(this._mapPane)||new B(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);
148return W([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),o=new H(r.subtract(i),r.add(i)),a=this._getBoundsOffset(o,n,t);return 1>=Math.abs(a.x)&&1>=Math.abs(a.y)?e:this.unproject(r.add(a),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new H(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=W(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),o=r.max.subtract(e.max);return new B(this._rebound(i.x,-o.x),this._rebound(i.y,-o.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=eD.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){e8(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return(!0===(t&&t.animate)||!!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=e0("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(e){var t=this._proxy.style[eG];tn(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),t===this._proxy.style[eG]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){e1(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();tn(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return(!0===n.animate||!!this.getSize().contains(i))&&(N(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)},this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,e6(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(h(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&e8(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}}),tP=D.extend({options:{position:"topright"},initialize:function(e){_(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return e6(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(e1(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),tA=function(e){return new tP(e)};tI.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this}
vendor: 7,345 bytes, line 148
148,_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=e0("div",t+"control-container",this._container);function r(r,i){e[r+i]=e0("div",t+r+" "+t+i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)e1(this._controlCorners[e]);e1(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var tR=tP.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:+(r<n)}},initialize:function(e,t,n){for(var r in _(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tP.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(m(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){e6(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(e6(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):e8(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return e8(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=e0("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),tx(t),tw(t);var r=this._section=e0("section",e+"-list");n&&(this._map.on("click",this.collapse,this),tf(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var i=this._layersLink=e0("a",e+"-toggle",t);i.href="#",i.title="Layers",i.setAttribute("role","button"),tf(i,{keydown:function(e){13===e.keyCode&&this._expandSafely()},click:function(e){t_(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=e0("div",e+"-base",r),this._separator=e0("div",e+"-separator",r),this._overlaysList=e0("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&m(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(h(function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;e2(this._baseLayersList),e2(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=+!r.overlay;return this.options.hideSingleBase&&(e=e&&i>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(m(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n=document.createElement("div");return n.innerHTML='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",n.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+m(this),r),this._layerControlInputs.push(t),t.layerId=m(e.layer),tf(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;var o=document.createElement("span");return n.appendChild(o),o.appendChild(t),o.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])&&this._map.removeLayer(i[o]);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])||this._map.addLayer(r[o]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,tf(e,"click",t_),this.expand();var t=this;setTimeout(function(){tp(e,"click",t_),t._preventClick=!1})}}),tN=tP.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=e0("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var o=e0("a",n,r);return o.innerHTML=e,o.href="#",o.title=t,o.setAttribute("role","button"),o.setAttribute("aria-label",t),tx(o),tf(o,"click",tk),tf(o,"click",i,this),tf(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";e8(this._zoomInButton,t),e8(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMin
148Zoom())&&(e6(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(e6(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});tI.mergeOptions({zoomControl:!0}),tI.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new tN,this.addControl(this.zoomControl))});var tM=tP.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=e0("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=e0("div",t,n)),e.imperial&&(this._iScale=e0("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e);this._updateScale(this._mScale,t<1e3?t+" m":t/1e3+" km",t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),tD=tP.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(eD.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(e){_(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=e0("div","leaflet-control-attribution"),tx(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e&&(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update()),this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});tI.mergeOptions({attributionControl:!0}),tI.addInitHook(function(){this.options.attributionControl&&new tD().addTo(this)}),tP.Layers=tR,tP.Zoom=tN,tP.Scale=tM,tP.Attribution=tD,tA.layers=function(e,t,n){return new tR(e,t,n)},tA.zoom=function(e){return new tN(e)},tA.scale=function(e){return new tM(e)},tA.attribution=function(e){return new tD(e)};var tL=D.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});tL.addTo=function(e,t){return e.addHandler(t,this),this};var tz=eD.touch?"touchstart mousedown":"mousedown",tF=F.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){_(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n}
148,enable:function(){this._enabled||(tf(this._dragStartTarget,tz,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(tF._dragging===this&&this.finishDrag(!0),tp(this._dragStartTarget,tz,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(!(!this._enabled||(this._moved=!1,e5(this._element,"leaflet-zoom-anim")))){if(e.touches&&1!==e.touches.length){tF._dragging===this&&this.finishDrag();return}if(!tF._dragging&&!e.shiftKey&&(1===e.which||1===e.button||e.touches)&&(tF._dragging=this,this._preventOutline&&tl(this._element),ta(),n(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,r=tc(this._element);this._startPoint=new B(t.clientX,t.clientY),this._startPos=ti(this._element),this._parentScale=td(r);var i="mousedown"===e.type;tf(document,i?"mousemove":"touchmove",this._onMove,this),tf(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new B(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,t_(e),this._moved||(this.fire("dragstart"),this._moved=!0,e6(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),e6(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),tr(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){e8(document.body,"leaflet-dragging"),this._lastTarget&&(e8(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),tp(document,"mousemove touchmove",this._onMove,this),tp(document,"mouseup touchend touchcancel",this._onUp,this),ts(),r();var t=this._moved&&this._moving;this._moving=!1,tF._dragging=!1,t&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function tB(e,t,n){var r,i,o,a,s,l,u,c,d,f=[1,4,2,8];for(i=0,u=e.length;i<u;i++)e[i]._code=tK(e[i],t);for(a=0;a<4;a++){for(i=0,c=f[a],r=[],o=(u=e.length)-1;i<u;o=i++)s=e[i],l=e[o],s._code&c?l._code&c||((d=tq(l,s,c,t,n))._code=tK(d,t),r.push(d)):(l._code&c&&((d=tq(l,s,c,t,n))._code=tK(d,t),r.push(d)),r.push(s));e=r}return e}function tU(e,t){if(!e||0===e.length)throw Error("latlngs not passed");tG(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var n,r,i,o,a,s,l,u,c,d=Z([0,0]),f=q(e);
148f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(d=t$(e));var h=e.length,p=[];for(n=0;n<h;n++){var m=Z(e[n]);p.push(t.project(Z([m.lat-d.lat,m.lng-d.lng])))}for(n=0,s=l=u=0,r=h-1;n<h;r=n++)i=p[n],o=p[r],a=i.y*o.x-o.y*i.x,l+=(i.x+o.x)*a,u+=(i.y+o.y)*a,s+=3*a;c=0===s?p[0]:[l/s,u/s];var g=t.unproject($(c));return Z([g.lat+d.lat,g.lng+d.lng])}function t$(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var o=Z(e[i]);t+=o.lat,n+=o.lng,r++}return Z([t/r,n/r])}function tH(e,t){if(!t||!e.length)return e.slice();var n=t*t;return function(e,t){var n=e.length,r=new("u">typeof Uint8Array?Uint8Array:Array)(n);r[0]=r[n-1]=1,function e(t,n,r,i,o){var a,s,l,u=0;for(s=i+1;s<=o-1;s++)(l=tZ(t[s],t[i],t[o],!0))>u&&(a=s,u=l);u>r&&(n[a]=1,e(t,n,r,i,a),e(t,n,r,a,o))}(e,r,t,0,n-1);var i,o=[];for(i=0;i<n;i++)r[i]&&o.push(e[i]);return o}(e=function(e,t){for(var n=[e[0]],r=1,i=0,o=e.length;r<o;r++)(function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r})(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<o-1&&n.push(e[o-1]),n}(e,n),n)}function tW(e,t,n){return Math.sqrt(tZ(e,t,n,!0))}function tV(e,t,n,r,i){var o,a,l,u=r?s:tK(e,n),c=tK(t,n);for(s=c;;){if(!(u|c))return[e,t];if(u&c)return!1;l=tK(a=tq(e,t,o=u||c,n,i),n),o===u?(e=a,u=l):(t=a,c=l)}}function tq(e,t,n,r,i){var o,a,s=t.x-e.x,l=t.y-e.y,u=r.min,c=r.max;return 8&n?(o=e.x+s*(c.y-e.y)/l,a=c.y):4&n?(o=e.x+s*(u.y-e.y)/l,a=u.y):2&n?(o=c.x,a=e.y+l*(c.x-e.x)/s):1&n&&(o=u.x,a=e.y+l*(u.x-e.x)/s),new B(o,a,i)}function tK(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function tZ(e,t,n,r){var i,o=t.x,a=t.y,s=n.x-o,l=n.y-a,u=s*s+l*l;return u>0&&((i=((e.x-o)*s+(e.y-a)*l)/u)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=l*i)),s=e.x-o,l=e.y-a,r?s*s+l*l:new B(o,a)}function tG(e){return!O(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function tY(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),tG(e)}function tX(e,t){if(!e||0===e.length)throw Error("latlngs not passed");tG(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var n,r,i,o,a,s,l,u,c=Z([0,0]),d=q(e);
148d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(c=t$(e));var f=e.length,h=[];for(n=0;n<f;n++){var p=Z(e[n]);h.push(t.project(Z([p.lat-c.lat,p.lng-c.lng])))}for(n=0,r=0;n<f-1;n++)r+=h[n].distanceTo(h[n+1])/2;if(0===r)u=h[0];else for(n=0,o=0;n<f-1;n++)if(a=h[n],s=h[n+1],(o+=i=a.distanceTo(s))>r){l=(o-r)/i,u=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}var m=t.unproject($(u));return Z([m.lat+c.lat,m.lng+c.lng])}var tJ={project:function(e){return new B(e.lng,e.lat)},unproject:function(e){return new K(e.y,e.x)},bounds:new H([-180,-90],[180,90])},tQ={R:6378137,R_MINOR:6356752.314245179,bounds:new H([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),a=o*Math.sin(r);return r=-n*Math.log(Math.max(Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),o/2),1e-10)),new B(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,o=Math.sqrt(1-i*i),a=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(a),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)u=Math.PI/2-2*Math.atan(a*(t=Math.pow((1-(t=o*Math.sin(s)))/(1+t),o/2)))-s,s+=u;return new K(s*n,e.x*n/r)}},t0=t({},Y,{code:"EPSG:3395",projection:tQ,transformation:Q(d=.5/(Math.PI*tQ.R),.5,-d,.5)}),t1=t({},Y,{code:"EPSG:4326",projection:tJ,transformation:Q(1/180,1,-1/180,.5)}),t2=t({},G,{projection:tJ,transformation:Q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});G.Earth=Y,G.EPSG3395=t0,G.EPSG3857=ee,G.EPSG900913=et,G.EPSG4326=t1,G.Simple=t2;var t3=F.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[m(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[m(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",function(){t.off(n,this)},this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});tI.include({addLayer:function(e){if(!e._layerAdd)throw Error("The provided object is not a Layer.");var t=m(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=m(e);return this._layers[t]&&(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null),this},hasLayer:function(e){return m(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){e=e?O(e)?e:[e]:[];for(var t=0,n=e.length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[m(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=m(e);
vendor: 5,037 bytes, line 148
148this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=void 0===i.minZoom?e:Math.min(e,i.minZoom),t=void 0===i.maxZoom?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var t4=t3.extend({initialize:function(e,t){var n,r;if(_(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"==typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return m(e)}}),t5=t4.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),t4.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),t4.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new V;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),t6=D.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){_(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"==typeof r&&(r=[r,r]);var i=$(r),o=$("shadow"===t&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),o&&(e.style.marginLeft=-o.x+"px",e.style.marginTop=-o.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return eD.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}}),t8=t6.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!=typeof t8.imagePath&&(t8.imagePath=this._detectIconPath()),(this.options.imagePath||t8.imagePath)+t6.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=e0("div","leaflet-default-icon-path",document.body),t=eQ(e,"background-image")||eQ(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),t9=tL.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new tF(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),e6(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&e8(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved}
vendor: 5,352 bytes, line 148
148,_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,o=ti(t._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=W(a.min._subtract(s).add(i),a.max._subtract(s).subtract(i));if(!l.contains(o)){var u=$((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),tr(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=N(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(M(this._panRequest),this._panRequest=N(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=ti(t._icon),i=t._map.layerPointToLatLng(r);n&&tr(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){M(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),t7=t3.extend({options:{icon:new t8,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){_(this,t),this._latlng=Z(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=Z(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),e6(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&tf(n,"focus",this._panOnFocus,this);var i=e.icon.createShadow(this._shadow),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(e6(i,t),i.alt=""),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&tp(this._icon,"focus",this._panOnFocus,this),e1(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&e1(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&tr(this._icon,e),this._shadow&&tr(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(e6(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),t9)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new t9(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&te(this._icon,e),this._shadow&&te(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?$(t.iconSize):$(0,0),r=t.iconAnchor?$(t.iconAnchor):$(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),ne=t3.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,f
vendor: 13,428 bytes, line 148
148illRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return _(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),nt=ne.extend({options:{fill:!0,radius:10},initialize:function(e,t){_(this,t),this._latlng=Z(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=Z(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return ne.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new H(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),nn=nt.extend({initialize:function(e,n,r){if("number"==typeof n&&(n=t({},r,{radius:n})),_(this,n),this._latlng=Z(e),isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new V(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:ne.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===Y.distance){var i=Math.PI/180,o=this._mRadius/Y.R/i,a=n.project([t+o,e]),s=n.project([t-o,e]),l=a.add(s).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(o*i)-Math.sin(t*i)*Math.sin(u*i))/(Math.cos(t*i)*Math.cos(u*i)))/i;(isNaN(c)||0===c)&&(c=o/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-a.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}}),nr=ne.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){_(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,r=1/0,i=null,o=tZ,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],u=1,c=l.length;u<c;u++){var d=o(e,t=l[u-1],n=l[u],!0);d<r&&(r=d,i=o(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");return tX(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=Z(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new V,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return tG(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=tG(e),r=0,i=e.length;r<i;r++)n?(t[r]=Z(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new B(e,e);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var r,i,o=e[0]instanceof K,a=e.length;if(o){for(r=0,i=[];r<a;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<a;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip){this._parts=this._rings;return}var t,n,r,i,o,a,s,l=this._parts;for(t=0,r=0,i=this._rings.length;t<i;t++)for(n=0,o=(s=this._rings[t]).length;n<o-1;n++)(a=tV(s[n],s[n+1],e,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),(a[1]!==s[n+1]||n===o-2)&&(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=tH(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,o=this._parts.length;n<o;n++)for(r=0,i=(a=(s=this._parts[n]).length)-1;r<a;i=r++)if((t||0!==r)&&tW(e,s[i],s[r])<=l)return!0;return!1}});nr._flat=tY;var ni=nr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");return tU(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=nr.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof K&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){nr.prototype._setLatLngs.call(this,e),tG(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return tG(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new B(t,t);if(e=new H(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip){this._parts=this._rings;return}for(var r,i=0,o=this._rings.length;i<o;i++)(r=tB(this._rings[i],e,!0)).length&&this._parts.push(r)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,i,o,a,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,s=this._parts.length;i<s;i++)for(o=0,a=(l=(t=this._parts[i]).length)-1;o<l;a=o++)n=t[o],r=t[a],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(u=!u);return u||nr.prototype._containsPoint.call(this,e,!0)}}),no=t5.extend({initialize:function(e,t){_(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=O(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var o=this.options;if(o.filter&&!o.filter(e))return this;var a=na(e,o);return a?(a.feature=nh(e),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(e,a),this.addLayer(a)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=t({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});function na(e,t){var n,r,i,o="Feature"===e.type?e.geometry:e,a=o?o.coordinates:null,s=[],l=t&&t.pointToLayer,u=t&&t.coordsToLatLng||nl;if(!a&&!o)return null;switch(o.type){case"Point":return ns(l,e,n=u(a),t);case"MultiPoint":for(r=0,i=a.length;r<i;r++)n=u(a[r]),s.push(ns(l,e,n,t));return new t5(s);case"LineString":case"MultiLineString":return new nr(nu(a,+("LineString"!==o.type),u),t);case"Polygon":case"MultiPolygon":return new ni(nu(a,"Polygon"===o.type?1:2,u),t);case"GeometryCollection":for(r=0,i=o.geometries.length;r<i;r++){var c=na({geometry:o.geometries[r],type:"Feature",properties:e.properties},t);c&&s.push(c)}return new t5(s);case"FeatureCollection":for(r=0,i=o.features.length;r<i;r++){var d=na(o.features[r],t);d&&s.push(d)}return new t5(s);default:throw Error("Invalid GeoJSON object.")}}function ns(e,t,n,r){return e?e(t,n):new t7(n,r&&r.markersInheritOptions&&r)}function nl(e){return new K(e[1],e[0],e[2])}function nu(e,t,n){for(var r=[],i=0,o=e.length;i<o;i++)r.push(t?nu(e[i],t-1,n):(n||nl)(e[i]));return r}function nc(e,t){return void 0!==(e=Z(e)).alt?[b(e.lng,t),b(e.lat,t),b(e.alt,t)]:[b(e.lng,t),b(e.lat,t)]}function nd(e,t,n,r){for(var i=[],o=0,a=e.length;o<a;o++)i.push(t?nd(e[o],tG(e[o])?0:t-1,n,r):nc(e[o],r));return!t&&n&&i.length>0&&i.push(i[0].slice()),i}function nf(e,n){return e.feature?t({},e.feature,{geometry:n}):nh(n)}function nh(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var np={toGeoJSON:function(e){return nf(this,{type:"Point",coordinates:nc(this.getLatLng(),e)})}};function nm(e,t){return new no(e,t)}t7.include(np),nn.include(np),nt.include(np),nr.include({toGeoJSON:function(e){var t=!tG(this._latlngs),n=nd(this._latlngs,+!!t,!1,e);return nf(this,{type:(t?"Multi":"")+"LineString",coordinates:n})}}),ni.include({toGeoJSON:function(e){var t=!tG(this._latlngs),n=t&&!tG(this._latlngs[0]),r=nd(this._latlngs,n?2:+!!t,!0,e);return t||(r=[r]),nf(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),t4.include({toMultiPoint:function(e){var t=[];return this.eachLayer(function(n){t.push(n.toGeoJSON(e).geometry.coordinates)}),nf(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return(this.eachLayer(function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var o=nh(i);"FeatureCollection"===o.type?r.push.apply(r,o.features):r.push(o)}}}),n)?nf(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var ng=t3.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=q(t),_(this,n)},onAdd:function(){!this._image&&(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(e6(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){e1(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&e3(this._image),this},bringToBack:function(){return this._map&&e4(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=q(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:e0("img");if(e6(t,"leaflet-image-layer"),this._zoomAnimated&&e6(t,"leaflet-zoom-animated"),this.options.className&&e6(t,this.options.className),t.onselectstart=v,t.onmousemove=v,t.onload=h(this.fire,this,"load"),t.onerror=h(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=t.src;return}t.src=this._url,t.alt=this.options.alt},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;tn(this._image,n,t)},_reset:function(){var e=this._image,t=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();tr(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){te(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),ny=ng.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
vendor: 5,599 bytes, line 148
148ine:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:e0("video");if(e6(t,"leaflet-image-layer"),this._zoomAnimated&&e6(t,"leaflet-zoom-animated"),this.options.className&&e6(t,this.options.className),t.onselectstart=v,t.onmousemove=v,t.onloadeddata=h(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],i=0;i<n.length;i++)r.push(n[i].src);this._url=n.length>0?r:[t.src];return}O(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var a=e0("source");a.src=this._url[o],t.appendChild(a)}}}),nv=ng.extend({_initImage:function(){var e=this._image=this._url;e6(e,"leaflet-image-layer"),this._zoomAnimated&&e6(e,"leaflet-zoom-animated"),this.options.className&&e6(e,this.options.className),e.onselectstart=v,e.onmousemove=v}}),nb=t3.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,t){e&&(e instanceof K||O(e))?(this._latlng=Z(e),_(this,t)):(_(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},openOn:function(e){return e=arguments.length?e:this._source._map,e.hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&te(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&te(this._container,1),this.bringToFront(),this.options.interactive&&(e6(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(te(this._container,0),this._removeTimeout=setTimeout(h(e1,void 0,this._container),200)):e1(this._container),this.options.interactive&&(e8(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=Z(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&e3(this._container),this},bringToBack:function(){return this._map&&e4(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof t5){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else if(t.getBounds)e=t.getBounds().getCenter();else throw Error("Unable to get source layer LatLng.");return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=$(this.options.offset),n=this._getAnchor();this._zoomAnimated?tr(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});tI.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),t3.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(_(i,r),i._source=this):(i=t&&!r?t:new e(r,this)).setContent(n),i}});var nw=nb.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return e=arguments.length?e:this._source._map,!e.hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,nb.prototype.openOn.call(this,e)},onAdd:function(e){nb.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ne||this._source.on("preclick",tb))},onRemove:function(e){nb.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ne||this._source.off("preclick",tb))},getEvents:function(){var e=nb.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&
148(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=e0("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=e0("div",e+"-content-wrapper",t);if(this._contentNode=e0("div",e+"-content",n),tx(t),tw(this._contentNode),tf(t,"contextmenu",tb),this._tipContainer=e0("div",e+"-tip-container",t),this._tip=e0("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=e0("a",e+"-close-button",t);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',tf(r,"click",function(e){t_(e),this.close()},this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;t.width=(n=Math.max(n=Math.min(n,this.options.maxWidth),this.options.minWidth))+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,o="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",e6(e,o)):e8(e,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();tr(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,t=parseInt(eQ(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new B(this._containerLeft,-n-this._containerBottom);i._add(ti(this._container));var o=e.layerPointToContainerPoint(i),a=$(this.options.autoPanPadding),s=$(this.options.autoPanPaddingTopLeft||a),l=$(this.options.autoPanPaddingBottomRight||a),u=e.getSize(),c=0,d=0;o.x+r+l.x>u.x&&(c=o.x+r-u.x+l.x),o.x-c-s.x<0&&(c=o.x-s.x),o.y+n+l.y>u.y&&(d=o.y+n-u.y+l.y),o.y-d-s.y<0&&(d=o.y-s.y),(c||d)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([c,d]))}},_getAnchor:function(){return $(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});tI.mergeOptions({closePopupOnClick:!0}),tI.include({openPopup:function(e,t,n){return this._initOverlay(nw,e,t,n).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),t3.include({bindPopup:function(e,t){return this._popup=this._initOverlay(nw,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&(this instanceof t5||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){tk(e);var t=e.layer||e.target;if(this._popup._source===t&&!(t instanceof ne))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng));this._popup._source=t,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var nx=nb.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){nb.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){nb.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=nb.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=e0("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+m(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,o=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(e),s=this.options.direction,l=i.offsetWidth,u=i.offsetHeight,c=$(this.options.offset),d=this._getAnchor();
vendor: 21,323 bytes, line 148
148"top"===s?(t=l/2,n=u):"bottom"===s?(t=l/2,n=0):("center"===s?t=l/2:"right"===s?t=0:"left"===s?t=l:a.x<o.x?(s="right",t=0):(s="left",t=l+(c.x+d.x)*2),n=u/2),e=e.subtract($(t,n,!0)).add(c).add(d),e8(i,"leaflet-tooltip-right"),e8(i,"leaflet-tooltip-left"),e8(i,"leaflet-tooltip-top"),e8(i,"leaflet-tooltip-bottom"),e6(i,"leaflet-tooltip-"+s),tr(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&te(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return $(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});tI.include({openTooltip:function(e,t,n){return this._initOverlay(nx,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),t3.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(nx,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?t.add=this._openTooltip:(t.mouseover=this._openTooltip,t.mouseout=this.closeTooltip,t.click=this._openTooltip,this._map?this._addFocusListeners():t.add=this._addFocusListeners),this._tooltip.options.sticky&&(t.mousemove=this._moveTooltip),this[e?"off":"on"](t),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof t5||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&(tf(t,"focus",function(){this._tooltip._source=e,this.openTooltip()},this),tf(t,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var t=this;this._map.once("moveend",function(){t._openOnceFlag=!1,t._openTooltip(e)});return}this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)}},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var n_=t6.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(e2(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=$(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});t6.Default=t8;var nk=t3.extend({options:{tileSize:256,opacity:1,updateWhenIdle:eD.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){_(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),e1(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(e3(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(e4(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=g(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof B?e:new B(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,o=n.length;i<o;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!eD.ielt9){te(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var o=Math.min(1,(e-i.loaded)/200);te(i.el,o),o<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(M(this._fadeFrame),this._fadeFrame=N(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=e0("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(e1(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=e0("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),v(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)return void this._removeAllTiles();for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)e1(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),o=Math.floor(t/2),a=n-1,s=new B(+i,+o);s.z=+a;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),a>r&&this._retainParent(i,o,a,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var o=2*t;o<2*t+2;o++){var a=new B(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];if(l&&l.active){l.retain=!0;continue}l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(i,o,n+1,r)}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var o=this.options.updateWhenZooming&&i!==this._tileZoom;(!r||o)&&(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();eD.any3d?tn(e.el,i,r):tr(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),o=t.getSize().divideBy(2*r);return new H(i.subtract(o),i.add(o))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),o=i.getCenter(),a=[],s=this.options.keepBuffer,l=new H(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new B(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)return void this._setView(e,n);for(var d=i.min.y;d<=i.max.y;d++)for(var f=i.min.x;f<=i.max.x;f++){var h=new B(f,d);if(h.z=this._tileZoom,this._isValidTile(h)){var p=this._tiles[this._tileCoordsToKey(h)];p?p.current=!0:a.push(h)}}if(a.sort(function(e,t){return e.distanceTo(o)-t.distanceTo(o)}),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(f=0;f<a.length;f++)this._addTile(a[f],m);this._level.el.appendChild(m)}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return q(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new V(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new B(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(e1(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){e6(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=v,e.onmousemove=v,eD.ielt9&&this.options.opacity<1&&te(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),h(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&N(h(this._tileReady,this,e,null,i)),tr(i,n),this._tiles[r]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(te(n.el,0),M(this._fadeFrame),this._fadeFrame=N(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(e6(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),eD.ielt9||!this._map._fadeAnimated?N(this._pruneTiles,this):setTimeout(h(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new B(this._wrapX?y(e.x,this._wrapX):e.x,this._wrapY?y(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new H(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),nS=nk.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=_(this,t)).detectRetina&&eD.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?t.minZoom=Math.min(t.maxZoom,t.minZoom):t.maxZoom=Math.max(t.minZoom,t.maxZoom),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return tf(n,"load",h(this._tileOnLoad,this,t,n)),tf(n,"error",h(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(e),n},getTileUrl:function(e){var n={r:eD.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=r),n["-y"]=r}return E(this._url,t(n,this.options))},_tileOnLoad:function(e,t){eD.ielt9?setTimeout(h(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom,n=this.options.zoomReverse,r=this.options.zoomOffset;return n&&(e=t-e),e+r},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=v,t.onerror=v,!t.complete)){t.src=T;var n=this._tiles[e].coords;e1(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",T),nk.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==T))return nk.prototype._tileReady.call(this,e,t,n)}});function nE(e,t){return new nS(e,t)}var nO=nS.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var r=t({},this.defaultWmsParams);for(var i in n)i in this.options||(r[i]=n[i]);var o=(n=_(this,n)).detectRetina&&eD.retina?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,nS.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=W(n.project(t[0]),n.project(t[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===t1?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=nS.prototype.getTileUrl.call(this,e);return s+k(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,n){return t(this.wmsParams,e),n||this.redraw(),this}});nS.WMS=nO,nE.wms=function(e,t){return new nO(e,t)};var nj=t3.extend({options:{padding:.1},initialize:function(e){_(this,e),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),e6(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),o=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));eD.any3d?tn(this._container,o,n):tr(this._container,o)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new H(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),nT=nj.extend({options:{tolerance:0},getEvents:function(){var e=nj.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){nj.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");tf(e,"mousemove",this._onMouseMove,this),tf(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),tf(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){M(this._redrawRequest),delete this._ctx,e1(this._container),tp(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){nj.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=eD.retina?2:1;tr(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",eD.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){nj.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[m(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[m(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)}
vendor: 1,712 bytes, line 148
148,_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(isNaN(t=Number(r[n])))return;i.push(t)}e.options._dashArray=i}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||N(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,o,a=e._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,i=a[n].length;r<i;r++)o=a[n][r],l[r?"lineTo":"moveTo"](o.x,o.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(!(!this._drawing||e._empty())){var t=e._point,
vendor: 4,422 bytes, line 148
148n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(!(!this._map||this._map.dragging.moving())&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(e8(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(e6(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(h(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(!n)return;n.prev=r,r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e)}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(!r)return;r.next=n,n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e)}}});function nC(e){return eD.canvas?new nT(e):null}var nI=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),nP=eD.vml?nI:en,nA=nj.extend({_initContainer:function(){this._container=nP("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=nP("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){e1(this._container),tp(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){nj.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),tr(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=nP("path");e.options.className&&e6(t,e.options.className),e.options.interactive&&e6(t,"leaflet-interactive"),this._updateStyle(e),this._layers[m(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){e1(e._path),e.removeInteractiveTarget(e._path),delete this._layers[m(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,er(e._parts,t))}
vendor: 2,608 bytes, line 148
148,_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r=Math.max(Math.round(e._radiusY),1)||n,i="a"+n+","+r+" 0 1,0 ",o=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+i+2*n+",0 "+i+-(2*n)+",0 ";this._setPath(e,o)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){e3(e._path)},_bringToBack:function(e){e4(e._path)}});function nR(e){return eD.svg||eD.vml?new nA(e):null}eD.vml&&nA.include({_initContainer:function(){this._container=e0("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(nj.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=nI("shape");e6(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=nI("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[m(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;e1(t),e.removeInteractiveTarget(t),delete this._layers[m(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=nI("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=O(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=nI("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){e3(e._container)},_bringToBack:function(e){e4(e._container)}}),tI.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&nC(e)||nR(e)}});var nN=ni.extend({initialize:function(e,t){ni.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))}
vendor: 6,170 bytes, line 148
148,_boundsToLatLngs:function(e){return[(e=q(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});nA.create=nP,nA.pointsToPath=er,no.geometryToLayer=na,no.coordsToLatLng=nl,no.coordsToLatLngs=nu,no.latLngToCoords=nc,no.latLngsToCoords=nd,no.getFeature=nf,no.asFeature=nh,tI.mergeOptions({boxZoom:!0});var nM=tL.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){tf(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){tp(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){e1(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),n(),ta(),this._startPoint=this._map.mouseEventToContainerPoint(e),tf(document,{contextmenu:tk,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=e0("div","leaflet-zoom-box",this._container),e6(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new H(this._point,this._startPoint),n=t.getSize();tr(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(e1(this._box),e8(this._container,"leaflet-crosshair")),r(),ts(),tp(document,{contextmenu:tk,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(h(this._resetState,this),0);var t=new V(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});tI.addInitHook("addHandler","boxZoom",nM),tI.mergeOptions({doubleClickZoom:!0});var nD=tL.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});tI.addInitHook("addHandler","doubleClickZoom",nD),tI.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var nL=tL.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new tF(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}e6(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){e8(this._map._container,"leaflet-grab"),e8(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=q(this._map.options.maxBounds);this._offsetLimit=W(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,o=(r+t+n)%e-t-n,a=Math.abs(i+n)<Math.abs(o+n)?i:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=i.multiplyBy(a/o),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),d=u/(n.inertiaDeceleration*a),f=c.multiplyBy(-d/2).round();f.x||f.y?(f=t._limitOffset(f,t.options.maxBounds),N(function(){t.panBy(f,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}
vendor: 3,114 bytes, line 148
148)):t.fire("moveend")}}});tI.addInitHook("addHandler","dragging",nL),tI.mergeOptions({keyboard:!0,keyboardPanDelta:80});var nz=tL.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),tf(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),tp(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;t<n;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;t<n;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;t<n;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;t<n;t++)r[i.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;t<n;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;t<n;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){tf(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){tp(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!e.altKey&&!e.ctrlKey&&!e.metaKey){var t,n=e.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(t=this._panKeys[n],e.shiftKey&&(t=$(t).multiplyBy(3)),r.options.maxBounds&&(t=r._limitOffset($(t),r.options.maxBounds)),r.options.worldCopyJump){var i=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(t)));r.panTo(i)}else r.panBy(t)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}tk(e)}}});tI.addInitHook("addHandler","keyboard",nz),tI.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var nF=tL.extend({addHooks:function(){tf(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){tp(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=tj(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(h(this._performZoom,this),r),tk(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/M
vendor: 4,139 bytes, line 148
148ath.LN2,i=n?Math.ceil(r/n)*n:r,o=e._limitZoom(t+(this._delta>0?i:-i))-t;this._delta=0,this._startTime=null,o&&("center"===e.options.scrollWheelZoom?e.setZoom(t+o):e.setZoomAround(this._lastMousePos,t+o))}});tI.addInitHook("addHandler","scrollWheelZoom",nF),tI.mergeOptions({tapHold:eD.touchNative&&eD.safari&&eD.mobile,tapTolerance:15});var nB=tL.extend({addHooks:function(){tf(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){tp(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new B(t.clientX,t.clientY),this._holdTimeout=setTimeout(h(function(){this._cancel(),this._isTapValid()&&(tf(document,"touchend",t_),tf(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))},this),600),tf(document,"touchend touchcancel contextmenu",this._cancel,this),tf(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){tp(document,"touchend",t_),tp(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),tp(document,"touchend touchcancel contextmenu",this._cancel,this),tp(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new B(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});tI.addInitHook("addHandler","tapHold",nB),tI.mergeOptions({touchZoom:eD.touch,bounceAtZoomLimits:!0});var nU=tL.extend({addHooks:function(){e6(this._map._container,"leaflet-touch-zoom"),tf(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){e8(this._map._container,"leaflet-touch-zoom"),tp(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),tf(document,"touchmove",this._onTouchMove,this),tf(document,"touchend touchcancel",this._onTouchEnd,this),t_(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var o=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===o.x&&0===o.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),M(this._animRequest);var a=h(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=N(a,this,!0),t_(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,M(this._animRequest),tp(document,"touchmove",this._onTouchMove,this),tp(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});tI.addInitHook("addHandler","touchZoom",nU),tI.BoxZoom=nM,tI.DoubleClickZoom=nD,tI.Drag=nL,tI.Keyboard=nz,tI.ScrollWheelZoom=nF,tI.TapHold=nB,tI.TouchZoom=nU,e.Bounds=H,e.Browser=eD,e.CRS=G,e.Canvas=nT,e.Cir
148cle=nn,e.CircleMarker=nt,e.Class=D,e.Control=tP,e.DivIcon=n_,e.DivOverlay=nb,e.DomEvent={__proto__:null,on:tf,off:tp,stopPropagation:tb,disableScrollPropagation:tw,disableClickPropagation:tx,preventDefault:t_,stop:tk,getPropagationPath:tS,getMousePosition:tE,getWheelDelta:tj,isExternalTarget:tT,addListener:tf,removeListener:tp},e.DomUtil={__proto__:null,TRANSFORM:eG,TRANSITION:eY,TRANSITION_END:eX,get:eJ,getStyle:eQ,create:e0,remove:e1,empty:e2,toFront:e3,toBack:e4,hasClass:e5,addClass:e6,removeClass:e8,setClass:e9,getClass:e7,setOpacity:te,testProp:tt,setTransform:tn,setPosition:tr,getPosition:ti,get disableTextSelection(){return n},get enableTextSelection(){return r},disableImageDrag:ta,enableImageDrag:ts,preventOutline:tl,restoreOutline:tu,getSizedParentNode:tc,getScale:td},e.Draggable=tF,e.Evented=F,e.FeatureGroup=t5,e.GeoJSON=no,e.GridLayer=nk,e.Handler=tL,e.Icon=t6,e.ImageOverlay=ng,e.LatLng=K,e.LatLngBounds=V,e.Layer=t3,e.LayerGroup=t4,e.LineUtil={__proto__:null,simplify:tH,pointToSegmentDistance:tW,closestPointOnSegment:function(e,t,n){return tZ(e,t,n)},clipSegment:tV,_getEdgeIntersection:tq,_getBitCode:tK,_sqClosestPointOnSegment:tZ,isFlat:tG,_flat:tY,polylineCenter:tX},e.Map=tI,e.Marker=t7,e.Mixin={Events:z},e.Path=ne,e.Point=B,e.PolyUtil={__proto__:null,clipPolygon:tB,polygonCenter:tU,centroid:t$},e.Polygon=ni,e.Polyline=nr,e.Popup=nw,e.PosAnimation=tC,e.Projection={__proto__:null,LonLat:tJ,Mercator:tQ,SphericalMercator:X},e.Rectangle=nN,e.Renderer=nj,e.SVG=nA,e.SVGOverlay=nv,e.TileLayer=nS,e.Tooltip=nx,e.Transformation=J,e.Util={__proto__:null,extend:t,create:f,bind:h,get lastId(){return p},stamp:m,throttle:g,wrapNum:y,falseFn:v,formatNum:b,trim:w,splitWords:x,setOptions:_,getParamString:k,template:E,isArray:O,indexOf:j,emptyImageUrl:T,requestFn:A,cancelFn:R,requestAnimFrame:N,cancelAnimFrame:M},e.VideoOverlay=ny,e.bind=h,e.bounds=W,e.canvas=nC,e.circle=function(e,t,n){return new nn(e,t,n)},e.circleMarker=function(e,t){return new nt(e,t)},e.control=tA,e.divIcon=function(e){return new n_(e)},e.extend=t,e.featureGroup=function(e,t){return new t5(e,t)},e.geoJSON=nm,e.geoJson=nm,e.gridLayer=function(e){return new nk(e)},e.icon=function(e){return new t6(e)},e.imageOverlay=function(e,t,n){return new ng(e,t,n)},e.latLng=Z,e.latLngBounds=q,e.layerGroup=function(e,t){return new t4(e,t)},e.map=function(e,t){return new tI(e,t)},e.marker=function(e,t){return new t7(e,t)},e.point=$,e.polygon=function(e,t){return new ni(e,t)},e.polyline=function(e,t){return new nr(e,t)},e.popup=function(e,t){return new nw(e,t)},e.rectangle=function(e,t){return new nN(e,t)},e.setOptions=_,e.stamp=m,e.svg=nR,e.svgOverlay=function(e,t,n){return new nv(e,t,n)},e.tileLayer=nE,e.tooltip=function(e,t){return new nx(e,t)},e.transformation=Q,e.version="1.9.4",e.videoOverlay=function(e,t,n){return new ny(e,t,n)};var n$=window.L;e.noConflict=function(){return window.L=n$,this},window.L=e}(ZB);var ef=(el("8NFma"),el("8NFma")),kT=el("2pmb0"),ef=el("8NFma");let ZU=(0,ef.createContext)(null);function Z$(){let e=(0,ef.use)(ZU);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function ZH(e){return(0,ef.forwardRef)(function(t,n){let{instance:r}=e(t).current;return(0,ef.useImperativeHandle)(n,()=>r),null})}function ZW(e,t){let n=(0,ef.useRef)(t);(0,ef.useEffect)(function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function ZV(e,t){let n=(0,ef.useRef)(void 0);(0,ef.useEffect)(function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}},[e,t])}function Zq(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}:e}function ZK(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function ZZ(e,t){return null==t?function(t,n){let r=(0,ef.useRef)(void 0);return r.current||(r.current=e(t,n)),r}:function(n,r){let i=(0,ef.useRef)(void 0);i.current||(i.current=e(n,r));let o=(0,ef.useRef)(n),{instance:a}
148=i.current;return(0,ef.useEffect)(function(){o.current!==n&&(t(a,n,o.current),o.current=n)},[a,n,t]),i}}function ZG(e){return function(t){var n;let r=Z$(),i=e(Zq(t,r),r);return ZW(r.map,t.attribution),ZV(i.current,t.eventHandlers),n=i.current,(0,ef.useEffect)(function(){return(r.layerContainer??r.map).addLayer(n.instance),function(){r.layerContainer?.removeLayer(n.instance),r.map.removeLayer(n.instance)}},[r,n]),i}}var ef=(el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"));function ZY(e){var t;return ZH((t=ZZ(function(t,n){return ZK(e(t),n)}),function(e){let n=Z$(),r=t(e,n),{instance:i}=r.current,o=(0,ef.useRef)(e.position),{position:a}=e;return(0,ef.useEffect)(function(){return i.addTo(n.map),function(){i.remove()}},[n.map,i]),(0,ef.useEffect)(function(){null!=a&&a!==o.current&&(i.setPosition(a),o.current=a)},[i,a]),r}))}let ZX=ZY(function(e){return new ZB.Control.Attribution(e)});var ef=el("8NFma");let ZJ=(0,ef.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:l,zoom:u,...c},d){let[f]=(0,ef.useState)({className:i,id:o,style:s}),[h,p]=(0,ef.useState)(null),m=(0,ef.useRef)(void 0);(0,ef.useImperativeHandle)(d,()=>h?.map??null,[h]);let g=(0,ef.useCallback)(r=>{if(null!==r&&!m.current){let i=new(0,ZB.Map)(r,c);m.current=i,null!=n&&null!=u?i.setView(n,u):null!=e&&i.fitBounds(e,t),null!=l&&i.whenReady(l),p(Object.freeze({__version:1,map:i}))}},[]);(0,ef.useEffect)(()=>()=>{h?.map.remove()},[h]);let y=h?ei(ef).createElement(ZU,{value:h},r):a??null;return ei(ef).createElement("div",{...f,ref:g},y)}),ZQ=ZH(ZG(ZZ(function({url:e,...t},n){return ZK(new(0,ZB.TileLayer)(e,Zq(t,n)),n)},function(e,t,n){!function(e,t,n){let{opacity:r,zIndex:i}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=i&&i!==n.zIndex&&e.setZIndex(i)}(e,t,n);let{url:r}=t;null!=r&&r!==n.url&&e.setUrl(r)})));var ef=el("8NFma");let Z0=ZY(function(e){return new ZB.Control.Zoom(e)});function Z1(){return(0,ec.jsx)("div",{className:"geotag-error-banner",children:(0,ec.jsx)(TQ,{id:"dialogs.geotag.geotag-unavailable",defaultMessage:"Geocoding services are currently unavailable. You can view the map, but you won’t be able to change this street’s location."})})}"use strict";var ef=el("8NFma"),Z2={};Z2=function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(e),o=r(t),a=r(n);function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return(c=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}).apply(this,arguments)}let d=["getInputProps","highlightedIndex","inputValue"];class f extends i.default.Component{constructor(e){super(e),u(this,"handleInputValueChange",(e,t)=>{"function"==typeof this.props.handleInputValueChange&&this.props.handleInputValueChange(e,t),this.doAutocomplete(e)}),u(this,"doAutocomplete",e=>{let t=Date.now();(this.lastInputTimestamp=t,e)?(this.setState({pending:!0}),this.props.pelias.autocomplete.setSearchTerm(e).execute().then(e=>
148{t===this.lastInputTimestamp&&this.setState({pending:!1,results:e})}).catch(e=>{console.log(e),t===this.lastInputTimestamp&&this.setState({pending:!1,error:!0})})):this.setState({pending:!1,results:null})}),u(this,"doSearch",e=>{let t=Date.now();(this.lastInputTimestamp=t,e)?(this.setState({pending:!0}),this.props.pelias.search.setSearchTerm(e).execute().then(e=>{t===this.lastInputTimestamp&&this.setState({pending:!1,results:e})}).catch(e=>{console.log(e),t===this.lastInputTimestamp&&this.setState({pending:!1,error:!0})})):this.setState({pending:!1,results:null})}),u(this,"defaultItemToString",e=>e?e.properties.label:""),this.state={results:null,pending:!1,error:!1},this.lastInputTimestamp=Date.now()}render(){return i.default.createElement(a.default,c({onChange:this.handleChange,onInputValueChange:this.handleInputValueChange,itemToString:this.props.itemToString||this.defaultItemToString},this.props),e=>{let{getInputProps:t,highlightedIndex:n,inputValue:r}=e,i=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,d);return this.props.children(l(l({},i),{},{highlightedIndex:n,inputValue:r,getInputProps:e=>t(l(l({},e),{},{onKeyDown:t=>{e&&"function"==typeof e.onKeyDown&&e.onKeyDown(t),"Enter"===t.key&&null===n&&!0!==t.nativeEvent.preventDownshiftDefault&&this.doSearch(r)}})),doSearch:()=>{this.doSearch(r)},results:this.state.results,pending:this.state.pending,error:this.state.error}))})}}return u(f,"propTypes",{children:o.default.func.isRequired,pelias:o.default.shape({search:o.default.shape({setSearchTerm:o.default.func.isRequired,execute:o.default.func.isRequired}).isRequired,autocomplete:o.default.object.isRequired}).isRequired,itemToString:o.default.func}),f}(el("8NFma"),el("fb0st"),el("eXpYg"));var Z3={},Z4=Z3&&Z3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};function Z5({map:e,handleResults:t}){let n=(0,ef.useRef)(null),r=TV(),i=new(ei(Z3))({peliasUrl:`https://${dO}`,apiKey:dE}),o=e?.getCenter()??{lat:0,lng:0};return i.search.setBoundaryCircle({lat:o.lat,lon:o.lng,radius:10}),i.autocomplete.setFocusPoint({lat:o.lat,lon:o.lng}),(0,ec.jsx)(ei(Z2),{pelias:i,onChange:function(e){e&&(t(e.geometry.coordinates.toReversed(),e.properties),n.current?.focus())},children:({getInputProps:e,getMenuProps:t,getItemProps:i,clearSelection:o,inputValue:a,isOpen:s,results:l})=>(0,ec.jsxs)("div",{className:"geotag-input-form",children:[(0,ec.jsx)("input",{...e({className:"geotag-input",autoFocus:!0,ref:n,placeholder:r.formatMessage({id:"dialogs.geotag.search",defaultMessage:"Search for a location"})})}),a&&(0,ec.jsx)("span",{title:r.formatMessage({id:"dialogs.geotag.clear-search",defaultMessage:"Clear search"}),className:"geotag-input-clear",onClick:()=>{o(),n.current?.focus()},children:"×"}),s&&l?.features.length>0&&(0,ec.jsx)("div",{className:"geotag-suggestions-container",children:(0,ec.jsx)("ul",{...t({className:"geotag-suggestions-list"}),children:l.features.map((e,t)=>(function(e,t,n,r){let i=e.properties?.label,o=RegExp(`(${n})`,"gi"),a=i.split(o).map((e,t)=>e.toLowerCase()===n.toLowerCase()?(0,ec.jsx)("strong",{children:e},t):e),{key:s,...l}=r({className:"geotag-suggestion",key:e.properties?.gid,index:t,item:e});return(0,ec.jsx)("li",{...l,children:a},s)})(e,t,a,i))})})]})})}Object.defineProperty(Z3,"__esModule",{value:!0}),Z3.default=Z4(el("6bYwQ")).default;var ef=el("8NFma");let Z6=(K=ZG(ZZ(function({position:e,...t},n){var r;let i=new(0,ZB.Marker)(e,t);return ZK(i,(r={overlayContainer:i},Object.freeze({...n,...r})))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),(0,ef.forwardRef)(function(e,t){let{instance:n,context:r}=K(e).current;(0,ef.useImperativeHandle)(t,()=>n);let{children:i}=e;return null==i?null:ei(ef).createElement(ZU,{value:r},i)}));function Z8({position:e,geocodeAvailable:t,onDragStart:n,onDragEnd:r}){let i=(0,ef.useRef)(null),o=(0,ef.useMemo)(()=>({dragstart(e){null!==i.current&&n(e)},dragend(e){null!==i.current&&r(e)}}),[n,r]);return(0,ec.jsx)(Z6,{ref:i,position:e,draggable:t,eventHandlers:o})}var ef=el("8NFma");let Z9=(Z=function(e,t){return ZK(new(0,ZB.Popup)(e,t.overlayContainer),t)},G=function(e,t,{position:n},r){(0,ef.useEffect)(function(){let{instance:i}=e;function o(e){e.popup===i&&(i.update(),r(!0))}function a(e){e.popup===i&&r(!1)}return t.map.on({popupopen:o,popupclose:a}),null==t.overlayContainer?(null!=n&&i.setLatLng(n),i.openOn(t.map)):t.overlayContainer.bindPopup(i),function(){t.map.off({popupopen:o,popupclose:a}),t.overlayContainer?.unbindPopup(),t.map.removeLayer(i)}},[e,t,r,n])},Y=ZZ(Z),X=function(e,t){let n=Z$(),r=Y(Zq(e,n),n);return ZW(n.map,e.attribution),ZV(r.current,e.eventHandlers),G(r.current,n,e,t),r},(0,ef.forwardRef)(function(e,t){let[n,r]=(0,ef.useState)(!1),{instance:i}=X(e,r).current;(0,ef.useImperativeHandle)(t,()=>i),(0,ef.useEffect)(function(){n&&i.update()},[i,n,e.children]);let o=i._contentNode;return o?(0,kT.createPortal)(e.children,o):null})),Z7=[0,-30],Ge=({position:e,label:t,isEditable:n=!1,isClearable:r=!1,handleConfirm:i,handleClear:o})=>(0,ec.jsxs)(Z9,{position:e,offset:Z7,maxWidth:300,closeButton:!1,closeOnClick:!1,children:[(0,ec.jsx)("div",{className:"geotag-location-label",children:t}),n&&(r?(0,ec.jsx)("div",{children:(0,ec.jsx)(T4,{tertiary:!0,onClick:o,children:(0,ec.jsx)(TQ,{id:"dialogs.geotag.clear-location",defaultMessage:"Clear location"})})}):(0,ec.jsx)("div",{children:(0,ec.jsx)(T4,{primary:!0,onClick:i,children:(0,ec.jsx)(TQ,{id:"dialogs.geotag.confirm-location",defaultMessage:"Confirm location"})})}))]}),Gt=`https://${dO}/v1/reverse`,Gn=`${Gt}?api_key=${dE}`,Gr=`https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png?key=${dj}`,Gi=`https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}@2x.png?key=${dj}`,Go={lat:10.45,lng:-10.78};ei(ZB).Icon.Default.mergeOptions({iconRetinaUrl:"/images/marker-icon-2x.png",iconUrl:"/images/marker-icon.png",shadowUrl:"/images/marker-shadow.png"});var ef=el("8NFma"),Ga={};J=function(){"use strict";function e(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){o(r.response,t,n
148)},r.onerror=function(){console.error("could not download file")},r.send()}function t(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function n(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof er&&er.global===er?er:void 0,i=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(i,o,a){var s=r.URL||r.webkitURL,l=document.createElement("a");l.download=o=o||i.name||"download",l.rel="noopener","string"==typeof i?(l.href=i,l.origin===location.origin?n(l):t(l.href)?e(i,o,a):n(l,l.target="_blank")):(l.href=s.createObjectURL(i),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){n(l)},0))}:"msSaveOrOpenBlob"in navigator?function(r,i,o){if(i=i||r.name||"download","string"!=typeof r){var a;navigator.msSaveOrOpenBlob((void 0===(a=o)?a={autoBom:!1}:"object"!=typeof a&&(console.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r),i)}else if(t(r))e(r,i,o);else{var s=document.createElement("a");s.href=r,s.target="_blank",setTimeout(function(){n(s)})}}:function(t,n,o,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,o);var s="application/octet-stream"===t.type,l=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||i)&&"u">typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},c.readAsDataURL(t)}else{var d=r.URL||r.webkitURL,f=d.createObjectURL(t);a?a.location=f:location.href=f,a=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});r.saveAs=o.saveAs=o,Ga=o},"function"==typeof define&&define.amd?define([],J):J();var ef=(el("8NFma"),el("8NFma")),Gs=Object.defineProperty,Gl=(e,t)=>Gs(e,"name",{value:t,configurable:!0}),Gu="Popover",[Gc,Gd]=Ig(Gu,[BQ]),Gf=BQ(),[Gh,Gp]=Gc(Gu),Gm=Gl(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=Gf(t),l=ef.useRef(null),[u,c]=ef.useState(!1),[d,f]=IO({prop:r,defaultProp:i??!1,onChange:o,caller:Gu});return(0,ec.jsx)(B2,{...s,children:(0,ec.jsx)(Gh,{scope:t,contentId:Bq(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:ef.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:ef.useCallback(()=>c(!0),[]),onCustomAnchorRemove:ef.useCallback(()=>c(!1),[]),modal:a,children:n})})},"Popover"),Gg=ef.forwardRef(Gl(function(e,t){let{__scopePopover:n,...r}=e,i=Gp("PopoverTrigger",n),o=Gf(n),a=Ih(t,i.triggerRef),s=(0,ec.jsx)(Iq.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":GO(i.open),...r,ref:a,onClick:Ia(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,ec.jsx)(B3,{asChild:!0,...o,children:s})},"PopoverTrigger")),[Gy,Gv]=Gc("PopoverPortal",{forceMount:void 0}),Gb="PopoverContent",Gw=ef.forwardRef(Gl(function(e,t){let n=Gv(Gb,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=Gp(Gb,e.__scopePopover);return(0,ec.jsx)(Ul,{present:r||o.open,children:o.modal?(0,ec.jsx)(G_,{...i,ref:t}):(0,ec.jsx)(Gk,{...i,ref:t})})},"PopoverContent")),Gx=IR("PopoverContent.RemoveScroll"),G_=ef.forwardRef(Gl(function(e,t){let n=Gp(Gb,e.__scopePopover),r=ef.useRef(null),i=Ih(t,r),o=ef.useRef(!1);return ef.useEffect(()=>{let e=r.current;if(e)return UZ(e)},[]),(0,ec.jsx)($k,{as:Gx,allowPinchZoom:!0,children:(0,ec.jsx)(GS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ia(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ia(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;o.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:Ia(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),Gk=ef.forwardRef(Gl(function(e,t){let n=Gp(Gb,e.__scopePopover),r=ef.useRef(!1),i=ef.useRef(!1);return(0,ec.jsx)(GS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let o=t.target;n.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),GS=ef.forwardRef(Gl(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=Gp(Gb,n),h=Gf(n);return BS(),(0,ec.jsx)(BP,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,ec.jsx)(Bp,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,ec.jsx)(B8,{"data-state":GO(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),GE=ef.forwardRef(Gl(function(e,t){let{__scopePopover:n,...r}=e,i=Gf(n);return(0,ec.jsx)(B7,{...i,...r,ref:t})},"PopoverArrow"));function GO(e){return e?"open":"closed"}Gl(GO,"getState");let Gj=(0,ef.forwardRef)(({children:e,...t},n)=>(0,ec.jsxs)(Gw,{...t,ref:n,children:[e,(0,ec.jsx)(GE,{className:"popover-arrow"})]}));function GT({label:e,children:t}){let n=TV(),r=e??n.formatMessage({id:"settings.info-tooltip",defaultMessage:"Description"});return(0,ec.jsxs)(Gm,{children:[(0,ec.jsx)(Gg,{asChild:!0,children:(0,ec.jsx)("button",{className:"popover-trigger",children:(0,ec.jsx)(FQ,{label:r,children:(0,ec.jsx)(C0,{name:"info",size:"18"})})})}),(0,ec.jsx)(Gj,{side:"top",collisionPadding:10,arrowPadding:6,className:"popover-content",children:t})]})}Gj.displayName="PopoverContent";var ef=(el("8NFma"),el("8NFma"));function GC(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(GC,"name",{value:"clamp",configurable:!0});var ef=el("8NFma");function GI(e){let t=ef.useRef({value:e,previous:e});return ef.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(GI,"name",{value:"usePrevious",configurable:!0});var GP=Object.defineProperty,GA=(e,t)=>
148GP(e,"name",{value:t,configurable:!0}),GR=["PageUp","PageDown"],GN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],GM={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},GD="Slider",[GL,Gz,GF]=F7(GD),[GB,GU]=Ig(GD,[GF]),[G$,GH]=GB(GD),GW=ef.forwardRef(GA(function(e,t){let{name:n,min:r=0,max:i=100,step:o=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:c,onValueChange:d=GA(()=>{},"onValueChange"),onValueCommit:f=GA(()=>{},"onValueCommit"),inverted:h=!1,form:p,...m}=e,g=ef.useRef(new Set),y=ef.useRef(0),v=ef.useRef(!1),b="horizontal"===a,[w,x]=ef.useState(null),_=Ih(t,x),[k=[],S]=IO({prop:c,defaultProp:u,onChange:GA(e=>{let t=[...g.current];t[y.current]?.focus({preventScroll:!0,focusVisible:v.current}),v.current=!1,d(e)},"onChange")}),E=ef.useRef(k),O=ef.useRef(k);function j(e){let t=G7(k,e);I(e,t)}function T(e){I(e,y.current)}function C(){String(k)!==String(E.current)&&f(k)}function I(e,t,{commit:n}={commit:!1}){let a=Yi(o),s=GC(Yo(Math.round((e-r)/o)*o+r,a),[r,i]);S((e=[])=>{let r=G6(e,s,t);if(!Yn(r,l*o))return e;{y.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&f(r),t?r:e}})}return ef.useEffect(()=>{let e=p?w?.ownerDocument.getElementById(p):w?.closest("form");if(e instanceof HTMLFormElement){let t=GA(()=>S(O.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[w,p,S]),GA(j,"handleSlideStart"),GA(T,"handleSlideMove"),GA(C,"handleSlideEnd"),GA(I,"updateValues"),(0,ec.jsx)(G$,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:i,valueIndexToChangeRef:y,thumbs:g.current,values:k,orientation:a,form:p,children:(0,ec.jsx)(GL.Provider,{scope:e.__scopeSlider,children:(0,ec.jsx)(GL.Slot,{scope:e.__scopeSlider,children:(0,ec.jsx)(b?GK:GZ,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:_,onPointerDown:Ia(m.onPointerDown,()=>{s||(E.current=k,v.current=!1)}),min:r,max:i,inverted:h,onSlideStart:s?void 0:j,onSlideMove:s?void 0:T,onSlideEnd:s?void 0:C,onHomeKeyDown:()=>{s||(v.current=!0,I(r,0,{commit:!0}))},onEndKeyDown:()=>{s||(v.current=!0,I(i,k.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!s){v.current=!0;let n=GR.includes(e.key)||e.shiftKey&&GN.includes(e.key),i=y.current;I(Ya(k[i],{min:r,step:o,direction:t,multiplier:n?10:1}),i,{commit:!0})}}})})})})},"Slider")),[GV,Gq]=GB(GD,{startEdge:"left",endEdge:"right",size:"width",direction:1}),GK=ef.forwardRef(GA(function(e,t){let{min:n,max:r,dir:i,inverted:o,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...c}=e,[d,f]=ef.useState(null),h=Ih(t,f),p=ef.useRef(void 0),m=Rx(i),g="ltr"===m,y=g&&!o||!g&&o;function v(e){let t=p.current||d.getBoundingClientRect(),i=Yr([0,t.width],y?[n,r]:[r,n]);return p.current=t,i(e-t.left)}return GA(v,"getValueFromPointer"),(0,ec.jsx)(GV,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:(0,ec.jsx)(GG,{dir:m,"data-orientation":"horizontal",...c,ref:h,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=v(e.clientX);a?.(t)},onSlideMove:e=>{let t=v(e.clientX);s?.(t)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:e=>{let t=GM[y?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})},"SliderHorizontal")),GZ=ef.forwardRef(GA(function(e,t){let{min:n,max:r,inverted:i,onSlideStart:o,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...u}=e,c=ef.useRef(null),d=Ih(t,c),f=ef.useRef(void 0),h=!i;function p(e){let t=f.current||c.current.getBoundingClientRect(),i=Yr([0,t.height],h?[r,n]:[n,r]);return f.current=t,i(e-t.top)}return GA(p,"getValueFromPointer"),(0,ec.jsx)(GV,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:(0,ec.jsx)(GG,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=p(e.clientY);o?.(t)},onSlideMove:e=>{let t=p(e.clientY);a?.(t)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:e=>
148{let t=GM[h?"from-bottom":"from-top"].includes(e.key);l?.({event:e,direction:t?-1:1})}})})},"SliderVertical")),GG=ef.forwardRef(GA(function(e,t){let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:o,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...u}=e,c=GH(GD,n);return(0,ec.jsx)(Iq.span,{...u,ref:t,onKeyDown:Ia(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):GR.concat(GN).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:Ia(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):r(e)}),onPointerMove:Ia(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:Ia(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})})},"SliderImpl")),GY=ef.forwardRef(GA(function(e,t){let{__scopeSlider:n,...r}=e,i=GH("SliderTrack",n);return(0,ec.jsx)(Iq.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})},"SliderTrack")),GX="SliderRange",GJ=ef.forwardRef(GA(function(e,t){let{__scopeSlider:n,...r}=e,i=GH(GX,n),o=Gq(GX,n),a=Ih(t,ef.useRef(null)),s=i.values.length,l=i.values.map(e=>G8(e,i.min,i.max)),u=s>1?Math.min(...l):0,c=100-Math.max(...l);return(0,ec.jsx)(Iq.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:a,style:{...e.style,[o.startEdge]:u+"%",[o.endEdge]:c+"%"}})},"SliderRange")),[GQ,G0]=GB("SliderThumb");function G1(e){let{__scopeSlider:t,name:n,children:r,internal_do_not_use_render:i}=e,o=GH("SliderThumbProvider",t),a=Gz(t),[s,l]=ef.useState(null),u=ef.useMemo(()=>s?a().findIndex(e=>e.ref.current===s):-1,[a,s]),c=II(s),d=!s||!!o.form||!!s.closest("form"),f=o.values[u],h=n??(o.name?o.name+(o.values.length>1?"[]":""):void 0),p=void 0===f?0:G8(f,o.min,o.max);ef.useEffect(()=>{if(s)return o.thumbs.add(s),()=>{o.thumbs.delete(s)}},[s,o.thumbs]);let m={value:f,name:h,form:o.form,isFormControl:d,index:u,thumb:s,onThumbChange:l,percent:p,size:c};return(0,ec.jsx)(GQ,{scope:t,...m,children:Ys(i)?i(m):r})}GA(G1,"SliderThumbProvider");var G2="SliderThumbTrigger",G3=ef.forwardRef(GA(function(e,t){let{__scopeSlider:n,...r}=e,i=GH(G2,n),o=Gq(G2,n),{index:a,value:s,percent:l,size:u,onThumbChange:c}=G0(G2,n),d=Ih(t,c),f=G9(a,i.values.length),h=u?.[o.size],p=h?Ye(h,l,o.direction):0;return(0,ec.jsx)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[o.startEdge]:`calc(${l}% + ${p}px)`},children:(0,ec.jsx)(GL.ItemSlot,{scope:n,children:(0,ec.jsx)(Iq.span,{role:"slider","aria-label":e["aria-label"]||f,"aria-valuemin":i.min,"aria-valuenow":s,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...r,ref:d,style:void 0===s?{display:"none"}:e.style,onFocus:Ia(e.onFocus,()=>{i.valueIndexToChangeRef.current=a})})})})},"SliderThumbTrigger")),G4=ef.forwardRef(GA(function(e,t){let{__scopeSlider:n,name:r,...i}=e;return(0,ec.jsx)(G1,{__scopeSlider:n,name:r,internal_do_not_use_render:({index:e,isFormControl:r})=>(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(G3,{...i,ref:t,__scopeSlider:n}),r?(0,ec.jsx)(G5,{__scopeSlider:n},e):null]})})},"SliderThumb")),G5=ef.forwardRef(GA(function({__scopeSlider:e,...t},n){let{value:r,name:i,form:o}=G0("SliderBubbleInput",e),a=ef.useRef(null),s=Ih(a,n),l=GI(r);return ef.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(l!==r&&t){let n=new Event("input",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[l,r]),(0,ec.jsx)(Iq.input,{style:{display:"none"},name:i,form:o,...t,ref:s,defaultValue:r})},"SliderBubbleInput"));function G6(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function G8(e,t,n){return GC(100/(n-t)*(e-t),[0,100])}function G9(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}function G7(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function Ye(e,t,n){let r=e/2,i=Yr([0,50],[0,r]);return(r-i(t)*n)*n}function Yt(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Yn(e,t){return!(t>0)||Math.min(...Yt(e))>=t}function Yr(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Yi(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[e,n]=t.split("e"),r=e.split(".")[1]||"",i=Number(n);return Math.max(0,r.length-i)}let n=t.split(".")[1];return n?n.length:0}function Yo(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}function Ya(e,{min:t,step:n,direction:r,multiplier:i}){let o,a=Yi(n),s=(e-t)/n,l=Math.round(s);return o=Yo(l*n+t,a)===Yo(e,a)?l+i*r:r>0?Math.ceil(s):Math.floor(s),Yo(o*n+t,a)}function Ys(e){return"function"==typeof e}GA(G6,"getNextSortedValues"),GA(G8,"convertValueToPercentage"),GA(G9,"getLabel"),GA(G7,"getClosestValueIndex"),GA(Ye,"getThumbInBoundsOffset"),GA(Yt,"getStepsBetweenValues"),GA(Yn,"hasMinStepsBetweenValues"),GA(Yr,"linearScale"),GA(Yi,"getDecimalCount"),GA(Yo,"roundValue"),GA(Ya,"getNextStepValue"),GA(Ys,"isFunction");let Yl=(0,ef.forwardRef)(({value:e,defaultValue:t,className:n,...r},i)=>{let o=e??t??[],a=["slider-root"];return void 0!==n&&a.push(n),(0,ec.jsxs)(GW,{value:e,defaultValue:t,ref:i,className:a.join(" "),...r,children:[(0,ec.jsx)(GY,{className:"slider-track",children:(0,ec.jsx)(GJ,{className:"slider-range"})}),o.map((e,t)=>(0,ec.jsx)(G4,{className:"slider-thumb"},t))]})});function Yu({children:e}){return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsxs)("div",{className:"streetmix-plus-locked-banner",children:[(0,ec.jsx)(C0,{name:"lock"}),(0,ec.jsx)(TQ,{id:"plus.locked.label",defaultMessage:"Locked"})]}),e,(0,ec.jsx)("div",{className:"streetmix-plus-prompt",children:(0,ec.jsx)(T4,{onClick:function(e){e.preventDefault(),window.open("https://docs.streetmix.net/user-guide/streetmix-plus","_blank")},children:(0,ec.jsx)(TQ,{id:"plus.locked.action",defaultMessage:"Get Streetmix+‎"})})})]})}function Yc({scale:e,baseDimensions:t={},onChange:n=()=>{}}){let r=kU(e=>e.settings.units),i=kU(e=>e.flags.SAVE_AS_IMAGE_CUSTOM_DPI.value),{width:o=0,height:a=0}=t,s=["custom-scale-control"];i||s.push("custom-scale-disabled");
148let l=(0,ec.jsx)(TQ,{id:"dialogs.save.option-custom-scale.description",defaultMessage:"Download image up to 500% of original size."});return(0,ec.jsxs)("div",{className:"custom-scale",children:[(0,ec.jsxs)("div",{className:"custom-scale-label",children:[(0,ec.jsx)(TQ,{id:"dialogs.save.option-custom-scale",defaultMessage:"Custom scale"}),(0,ec.jsx)("span",{className:"custom-scale-popover",children:(0,ec.jsx)(GT,{children:i?l:(0,ec.jsx)(Yu,{children:l})})})]}),(0,ec.jsxs)("div",{className:s.join(" "),children:[(0,ec.jsx)(Yl,{id:"custom-scale",min:1,max:5,step:.25,value:[e],disabled:!i,onValueChange:function([e]){i&&n(Math.min(Math.max(1,e),5))}}),(0,ec.jsxs)("div",{className:`custom-scale-info ${i?"":"custom-scale-info-disabled"}`,children:[(0,ec.jsxs)("strong",{children:[100*e,"%"]})," — ",(0,ec.jsx)(TQ,{id:"dialogs.save.digital-size",defaultMessage:"Digital size"}),": ",Math.floor(o*e)," px ⨯ ",Math.floor(a*e)," px — ",(0,ec.jsx)(TQ,{id:"dialogs.save.print-size",defaultMessage:"Print size"}),":"," ",0===r?`${(o*e/300*2.54).toFixed(2)} cm \u{2A2F} ${(a*e/300*2.54).toFixed(2)} cm`:`${(o*e/300).toFixed(2)}\u{2033} \u{2A2F} ${(a*e/300).toFixed(2)}\u{2033}`," ","(300 dpi)"]})]})]})}function Yd(){let e=kU(e=>e.flags),t=kB();return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("h2",{children:"Feature flags"}),(0,ec.jsx)("p",{children:"Feature flags are administrator-level settings that can adjust or toggle Streetmix functionality. They can change at any time. Use at your own risk."}),(0,ec.jsx)("hr",{}),Object.entries(e).map(([n,r])=>{let i=r.defaultValue!==r.value;return(0,ec.jsx)("div",{className:"settings-item",children:(0,ec.jsx)(I9,{onCheckedChange:e=>{t(uQ({flag:n,value:e}))},checked:e[n].value,disabled:!1===r.enabled,children:(0,ec.jsx)("span",{className:i?"feature-flag-label-modified":"",children:r.label})})},n)})]})}Yl.displayName="Slider";var ef=(el("8NFma"),el("8NFma"),el("8NFma")),Yf=Object.defineProperty,Yh=(e,t)=>Yf(e,"name",{value:t,configurable:!0}),Yp="Radio",[Ym,Yg]=Ig(Yp),[Yy,Yv]=Ym(Yp);function Yb(e){let{__scopeRadio:t,checked:n=!1,children:r,disabled:i,form:o,name:a,onCheck:s,required:l,value:u="on",internal_do_not_use_render:c}=e,[d,f]=ef.useState(null),[h,p]=ef.useState(null),m=ef.useRef(!1),[g,y]=ef.useReducer(e=>e+1,0),v=!d||!!o||!!d.closest("form"),b={checked:n,disabled:i,required:l,name:a,form:o,value:u,control:d,setControl:f,hasConsumerStoppedPropagationRef:m,userInteractionCount:g,onUserInteraction:y,isFormControl:v,bubbleInput:h,setBubbleInput:p,onCheck:Yh(()=>s?.(),"onCheck")};return(0,ec.jsx)(Yy,{scope:t,...b,children:Yk(c)?c(b):r})}Yh(Yb,"RadioProvider");var Yw=ef.forwardRef(Yh(function({__scopeRadio:e,onClick:t,...n},r){let{checked:i,disabled:o,value:a,setControl:s,onCheck:l,hasConsumerStoppedPropagationRef:u,onUserInteraction:c,isFormControl:d,bubbleInput:f}=Yv("RadioTrigger",e),h=Ih(r,s);return(0,ec.jsx)(Iq.button,{type:"button",role:"radio","aria-checked":i,"data-state":YS(i),"data-disabled":o?"":void 0,disabled:o,value:a,...n,ref:h,onClick:Ia(t,e=>{i||(c(),l()),f&&d&&(u.current=e.isPropagationStopped(),u.current||e.stopPropagation())})})},"RadioTrigger")),Yx=ef.forwardRef(Yh(function(e,t){let{__scopeRadio:n,forceMount:r,...i}=e,o=Yv("RadioIndicator",n);return(0,ec.jsx)(Ul,{present:r||o.checked,children:(0,ec.jsx)(Iq.span,{"data-state":YS(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})},"RadioIndicator")),Y_=ef.forwardRef(Yh(function({__scopeRadio:e,onClick:t,...n},r){let{control:i,checked:o,required:a,disabled:s,name:l,value:u,form:c,bubbleInput:d,setBubbleInput:f,hasConsumerStoppedPropagationRef:h,userInteractionCount:p}=Yv("RadioBubbleInput",e),m=Ih(r,f),g=II(i),y=ef.useRef(!1),v=ef.useRef(o),b=ef.useRef(p);ef.useEffect(()=>{if(!d)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=p!==b.current;b.current=p;let n=v.current!==o;v.current=o;let r=!(t&&h.current);if(n&&e){y.current=!t;let n=new Event("click",{bubbles:r});e.call(d,o),d.dispatchEvent(n),y.current=!1}},[d,o,h,p]);let w=ef.useRef(o);return(0,ec.jsx)(Iq.input,{type:"radio","aria-hidden":!0,defaultChecked:w.current,required:a,disabled:s,name:l,value:u,form:c,...n,tabIndex:-1,ref:m,onClick:Ia(t,e=>{y.current&&e.stopPropagation()}),style:{...n.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function Yk(e){return"function"==typeof e}function YS(e){return e?"checked":"unchecked"}Yh(Yk,"isFunction"),Yh(YS,"getState");var YE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],YO="RadioGroup",[Yj,YT]=Ig(YO,[UP,Yg]),YC=UP(),YI=Yg(),[YP,YA]=Yj(YO),YR=ef.forwardRef(Yh(function(e,t){let{__scopeRadioGroup:n,name:r,form:i,defaultValue:o,value:a,required:s=!1,disabled:l=!1,orientation:u,dir:c,loop:d=!0,onValueChange:f,...h}=e,p=YC(n),m=Rx(c),[g,y]=IO({prop:a,defaultProp:o??null,onChange:f,caller:YO}),[v,b]=ef.useState(null),w=Ih(t,b),x=ef.useRef(g);return ef.useEffect(()=>{let e=i?v?.ownerDocument.getElementById(i):v?.closest("form");if(e instanceof HTMLFormElement){let t=Yh(()=>y(x.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[v,i,y]),(0,ec.jsx)(YP,{scope:n,name:r,form:i,required:s,disabled:l,value:g,onValueChange:y,children:(0,ec.jsx)(UN,{asChild:!0,...p,orientation:u,dir:m,loop:d,children:(0,ec.jsx)(Iq.div,{role:"radiogroup","aria-required":s,"aria-orientation":u,"data-disabled":l?"":void 0,dir:m,...h,ref:w})})})},"RadioGroup"));function YN(e){let{__scopeRadioGroup:t,value:n,disabled:r,children:i,internal_do_not_use_render:o}=e,a=YA("RadioGroupItemProvider",t),s=YI(t),l=a.disabled||r;return(0,ec.jsx)(Yb,{...s,checked:a.value===n,disabled:l,required:a.required,name:a.name,form:a.form,value:n,onCheck:()=>a.onValueChange(n),internal_do_not_use_render:o,children:i})}Yh(YN,"RadioGroupItemProvider");var YM=ef.forwardRef(Yh(function(e,t){let{__scopeRadioGroup:n,...r}=e,i=YC(n),o=YI(n),{checked:a,disabled:s}=Yv("RadioGroupItemTrigger",o.__scopeRadio),l=ef.useRef(null),u=Ih(t,l),c=ef.useRef(!1);return ef.useEffect(()=>{let e=Yh(e=>
148{YE.includes(e.key)&&(c.current=!0)},"handleKeyDown"),t=Yh(()=>c.current=!1,"handleKeyUp");return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,ec.jsx)(UD,{asChild:!0,...i,focusable:!s,active:a,children:(0,ec.jsx)(Yw,{...o,...r,ref:u,onKeyDown:Ia(r.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:Ia(r.onFocus,()=>{c.current&&l.current?.click()})})})},"RadioGroupItemTrigger")),YD=ef.forwardRef(Yh(function(e,t){let{__scopeRadioGroup:n,value:r,disabled:i,...o}=e;return(0,ec.jsx)(YN,{__scopeRadioGroup:n,value:r,disabled:i,internal_do_not_use_render:({isFormControl:e})=>(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(YM,{...o,ref:t,__scopeRadioGroup:n}),e&&(0,ec.jsx)(YL,{__scopeRadioGroup:n})]})})},"RadioGroupItem")),YL=ef.forwardRef(Yh(function(e,t){let{__scopeRadioGroup:n,...r}=e,i=YI(n);return(0,ec.jsx)(Y_,{...i,...r,ref:t})},"RadioGroupItemBubbleInput")),Yz=ef.forwardRef(Yh(function(e,t){let{__scopeRadioGroup:n,...r}=e,i=YI(n);return(0,ec.jsx)(Yx,{...i,...r,ref:t})},"RadioGroupIndicator"));function YF({value:e,label:t,sublabel:n="",disabled:r=!1,required:i=!1}){let o=(0,ef.useId)();return(0,ec.jsxs)("div",{className:"radio-group-item",children:[(0,ec.jsx)(YD,{className:"radio-group-radio",id:o,value:e,disabled:r,required:i,children:(0,ec.jsx)(Yz,{className:"radio-group-indicator"})}),(0,ec.jsxs)("label",{htmlFor:o,children:[(0,ec.jsx)("span",{className:"radio-group-label",children:t}),n&&(0,ec.jsx)("span",{className:"radio-group-sublabel",children:n})]})]})}var YB=function(e){let{className:t="",values:n,...r}=e,i=["radio-group-root"];return t&&i.push(t),(0,ec.jsx)(YR,{className:i.join(" "),...r,children:n.map((e,t)=>(0,ec.jsx)(YF,{...e},t))})};function YU(){return(0,ec.jsxs)("section",{children:[(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"settings.appearance.label",defaultMessage:"Appearance"})}),(0,ec.jsx)(Y$,{})]})}function Y$(){let e=kU(e=>e.settings.colorMode),t=kB(),n=TV();return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsxs)("h3",{children:[(0,ec.jsx)(TQ,{id:"settings.theme.label",defaultMessage:"Theme"}),(0,ec.jsx)(GT,{children:(0,ec.jsx)(TQ,{id:"settings.theme.description",defaultMessage:"Sets user interface color scheme."})})]}),(0,ec.jsx)(YB,{name:"color-mode",value:e,defaultValue:d_,onValueChange:function(e){t(dA(e))},values:[{value:d_,label:n.formatMessage({id:"settings.theme.light",defaultMessage:"Light theme"})},{value:"dark",label:n.formatMessage({id:"settings.theme.dark",defaultMessage:"Dark theme"})},{value:"auto",label:n.formatMessage({id:"settings.theme.system",defaultMessage:"Use system preference"})}]})]})}function YH(){let e=kU(e=>e.settings.units),t=kB(),n=TV();return(0,ec.jsxs)("section",{children:[(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"settings.units.label",defaultMessage:"Units"})}),(0,ec.jsx)(YB,{name:"units",value:0===e?"metric":"imperial",defaultValue:"metric",onValueChange:function(e){"metric"===e?t(dP(0)):t(dP(1))},values:[{value:"metric",label:n.formatMessage({id:"settings.units.metric",defaultMessage:"Metric (meters)"})},{value:"imperial",label:n.formatMessage({id:"settings.units.imperial",defaultMessage:"U.S. customary / imperial (feet and inches)"})}]})]})}function YW(){let e=kU(e=>e.flags);return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsxs)("section",{children:[(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"settings.general.label",defaultMessage:"General"})}),(0,ec.jsx)("hr",{})]}),(0,ec.jsx)(YH,{}),e.COLOR_MODE_TOGGLE.value&&(0,ec.jsx)(YU,{}),(0,ec.jsxs)("section",{children:[(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"settings.misc.label",defaultMessage:"Miscellaneous"})}),(0,ec.jsx)(YV,{})]})]})}function YV(){let e=kU(e=>e.flags.SILLY_CLOWNS),t=kB();return(0,ec.jsxs)("div",{className:"settings-item",children:[(0,ec.jsx)(I9,{onCheckedChange:function(e){t(uQ({flag:"SILLY_CLOWNS",value:e}))},checked:e.value,children:(0,ec.jsx)(TQ,{id:"settings.misc.silly-clowns",defaultMessage:"Silly clowns"})}),(0,ec.jsx)(GT,{children:(0,ec.jsx)(TQ,{id:"settings.misc.silly-clowns-description",defaultMessage:"Enables Easter eggs."})})]})}function Yq(){let e=kU(e=>e.locale.locale??"en"),t=kB(),n=TV(),r=pa(),i=ps(e);return(0,ec.jsxs)("section",{children:[(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"settings.language.label",defaultMessage:"Language"})}),(0,ec.jsx)("hr",{}),(0,ec.jsx)(YB,{name:"language",value:i,defaultValue:"en",onValueChange:function(e){t(ux(e))},values:r.map(e=>({value:e.value,label:e.label,sublabel:n.formatMessage({id:e.key,defaultMessage:e.name})}))})]})}var ef=el("8NFma");function YK(){let e=kU(e=>e.user.signInData?.details),[t,n]=(0,ef.useState)(e?.displayName??e?.id??""),[r,i]=(0,ef.useState)(!1),[o,a]=(0,ef.useState)(!1),[s,l]=(0,ef.useState)(!1),u=(0,ef.useRef)(null),c=(0,ef.useId)(),d=TV(),f=kB();async function h(){if(a(!0),void 0!==e)try{await ui(e.id,{displayName:t}),f(fn(t)),l(!1),window.setTimeout(()=>{i(!1),a(!1)},500)}catch(e){console.error("Profile settings error",e),window.setTimeout(()=>{l(!0),a(!1),u.current&&u.current.focus()},500)}}if(!e)return null;let p=[];return r&&!o&&t.length>=20&&p.push(d.formatMessage({id:"settings.profile.display-name-characters-remaining",defaultMessage:"Characters remaining: {currentNum} ({maxNum} maximum)"},{currentNum:30-t.length,maxNum:30})),s&&p.push(d.formatMessage({id:"settings.profile..display-name-error",defaultMessage:"Display name could not be saved"})),(0,ec.jsxs)("section",{children:[(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"settings.profile.label",defaultMessage:"Profile"})}),(0,ec.jsx)("hr",{}),(0,ec.jsxs)("div",{className:"profile-settings-item",children:[(0,ec.jsxs)("h3",{children:[(0,ec.jsx)(TQ,{id:"settings.profile.username",defaultMessage:"Username"}),(0,ec.jsx)(GT,{children:(0,ec.jsx)(TQ,{id:"settings.profile.username-description",defaultMessage:"Your username is a unique account identifier."})})]}),(0,ec.jsxs)("div",{className:"profile-settings-editable",children:[(0,ec.jsx)("p",{children:e.id}),(0,ec.jsx)("div",{className:"profile-settings-button",children:(0,ec.jsx)(T4,{disabled:!0,children:(0,ec.jsx)(TQ,{id:"bt
148n.edit",defaultMessage:"Edit"})})})]})]}),(0,ec.jsxs)("div",{className:"profile-settings-item",children:[(0,ec.jsxs)("h3",{children:[(0,ec.jsx)("label",{htmlFor:c,children:(0,ec.jsx)(TQ,{id:"settings.profile.display-name",defaultMessage:"Display name"})}),(0,ec.jsx)(GT,{children:(0,ec.jsx)(TQ,{id:"settings.profile.display-name-description",defaultMessage:"Your display name is how you appear to other users in Streetmix."})})]}),r?(0,ec.jsx)("div",{className:"profile-settings-editable",children:(0,ec.jsxs)("form",{onSubmit:function(e){e.preventDefault(),h()},children:[(0,ec.jsx)("p",{children:(0,ec.jsx)("input",{ref:u,id:c,type:"text",value:t,onChange:function(e){n(e.target.value)},disabled:o,maxLength:30})}),(0,ec.jsxs)("div",{className:"profile-settings-button",children:[(0,ec.jsxs)(T4,{onClick:h,primary:!0,disabled:o,children:[(0,ec.jsx)(TQ,{id:"btn.save",defaultMessage:"Save"}),o&&(0,ec.jsx)("div",{className:"profile-settings-pending",children:(0,ec.jsx)(F_,{size:"small"})})]}),(0,ec.jsx)(T4,{onClick:function(){i(!1),n(e?.displayName??e?.id??"")},tertiary:!0,disabled:o,children:(0,ec.jsx)(TQ,{id:"btn.cancel",defaultMessage:"Cancel"})})]})]})}):(0,ec.jsxs)("div",{className:"profile-settings-editable",children:[(0,ec.jsx)("p",{children:e.displayName||(0,ec.jsx)("span",{className:"profile-display-name-not-set",children:(0,ec.jsx)(TQ,{id:"settings.profile.display-name-not-set",defaultMessage:"You have not added a display name yet."})})}),(0,ec.jsx)("div",{className:"profile-settings-button",children:(0,ec.jsx)(T4,{onClick:function(){i(!0),window.setTimeout(()=>{u.current&&(u.current.focus(),t===e?.id&&u.current.select())},0)},children:(0,ec.jsx)(TQ,{id:"btn.edit",defaultMessage:"Edit"})})})]}),(0,ec.jsx)("div",{className:"profile-display-name-messages",children:p.map(e=>(0,ec.jsx)("p",{children:e},e))})]})]})}var ef=(el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma")),YZ=e=>e instanceof Date,YG=e=>null==e,YY=e=>!YG(e)&&!Array.isArray(e)&&"object"==typeof e&&!YZ(e);let YX=/[.[\]'"]/;var YJ=e=>e.split(YX).filter(Boolean),YQ="u">typeof window&&void 0!==window.HTMLElement&&"u">typeof document;function Y0(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e);let t="u">typeof FileList&&e instanceof FileList;if(YQ&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&e.constructor!==Object)return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Y0(e[t]));return r}let Y1="trigger",Y2="onChange",Y3="onSubmit",Y4="maxLength",Y5="minLength",Y6="pattern",Y8="required",Y9="validate",Y7="root",Xe=["__proto__","constructor","prototype"],Xt=/^\w*$/;var Xn=e=>void 0===e,Xr=(e,t,n)=>{if(!t||!YY(e))return n;let r=Xt.test(t)?[t]:YJ(t);if(r.some(e=>Xe.includes(e)))return n;let i=r.reduce((e,t)=>YG(e)?void 0:e[t],e);return Xn(i)||i===e?Xn(e[t])?n:e[t]:i},Xi=e=>"function"==typeof e,Xo=(e,t,n)=>{let r=-1,i=Xt.test(t)?[t]:YJ(t),o=i.length,a=o-1;for(;++r<o;){let t=i[r],o=n;if(r!==a){let n=e[t];o=YY(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(Xe.includes(t))return;e[t]=o,e=e[t]}};ei(ef).createContext(null).displayName="HookFormControlContext";let Xa=YQ?ei(ef).useLayoutEffect:ei(ef).useEffect;var Xs=e=>YG(e)||"object"!=typeof e;let Xl=(e,t)=>{let n;return 0===t.length&&!Array.isArray(e)&&!(YY(n=e.constructor&&e.constructor.prototype)&&n.hasOwnProperty("isPrototypeOf"))};function Xu(e,t,n=new WeakMap){if(e===t)return!0;if(Xs(e)||Xs(t))return Object.is(e,t);if(YZ(e)&&YZ(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(Xl(e,r)||Xl(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let o=n.get(e);if(o&&o.has(t))return!0;if(o)o.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if("ref"!==i){let e=t[i];if(YZ(r)&&YZ(e)||(YY(r)||Array.isArray(r))&&(YY(e)||Array.isArray(e))?!Xu(r,e,n):!Object.is(r,e))return!1}}return!0}var Xc=e=>"string"==typeof e,Xd=e=>({isOnSubmit:!e||e===Y3,isOnBlur:"onBlur"===e,isOnChange:e===Y2,isOnAll:"all"===e,isOnTouch:"onTouched"===e}
148),Xf=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&"."===e.charAt(n.length))return!0;return!1};let Xh=(e,t,n,r)=>{for(let i of n||Object.keys(e)){if("_f"===i)continue;let o=n?Xr(e,i):e[i];if(o){let{_f:e}=o;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)return!0;else if(e.ref&&t(e.ref,e.name)&&!r)return!0;else if(Xh(o,t))break}else if((YY(o)||Array.isArray(o))&&Xh(o,t))break}}};var Xp=(e,t,n)=>{let r=Xr(e,n),i=Array.isArray(r)?r:[];return Xo(i,Y7,t[n]),Xo(e,n,i),e},Xm=e=>YY(e)&&!Object.keys(e).length,Xg=e=>{if(!YQ)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Xy=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let Xv={value:!1,isValid:!1},Xb={value:!0,isValid:!0};var Xw=e=>{if(!Array.isArray(e))return Xv;if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}let t=e[0];return t&&t.checked&&!t.disabled?t.attributes&&"value"in t.attributes?Xn(t.value)||""===t.value?Xb:{value:t.value,isValid:!0}:Xb:Xv};let Xx={isValid:!1,value:null};var X_=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Xx):Xx;function Xk(e,t,n="validate"){if(Xc(e)||Array.isArray(e)&&e.every(Xc)||"boolean"==typeof e&&!e)return{type:n,message:Xc(e)?e:"",ref:t}}var XS=e=>!YY(e)||e instanceof RegExp?{value:e,message:""}:e,XE=async(e,t,n,r,i,o)=>{let{ref:a,refs:s,required:l,maxLength:u,minLength:c,min:d,max:f,pattern:h,validate:p,name:m,valueAsNumber:g,mount:y}=e._f,v=Xr(n,m);if(!y||t.has(m))return{};let b=s?s[0]:a,w=e=>{if(i&&b.reportValidity){let t="boolean"==typeof e?"":e||"";s?s.forEach(e=>e.setCustomValidity(t)):b.setCustomValidity(t),b.reportValidity()}},x={},_="radio"===a.type,k="checkbox"===a.type,S=(g||"file"===a.type)&&Xn(a.value)&&Xn(v)||Xg(a)&&""===a.value||""===v||Array.isArray(v)&&!v.length,E=Xy.bind(null,m,r,x),O=(e,t,n,r=Y4,i=Y5)=>{let o=e?t:n;x[m]={type:e?r:i,message:o,ref:a,...E(e?r:i,o)}};if(o?!Array.isArray(v)||!v.length:l&&(!(_||k)&&(S||YG(v))||"boolean"==typeof v&&!v||k&&!Xw(s).isValid||_&&!X_(s).isValid)){let{value:e,message:t}=Xc(l)?{value:!!l,message:l}:XS(l);if(e&&(x[m]={type:Y8,message:t,ref:b,...E(Y8,t)},!r))return w(t),x}if(!S&&(!YG(d)||!YG(f))){let e,t,n=XS(f),i=XS(d);if(YG(v)||YZ(v)||isNaN(v)){let r=a.valueAsDate||new Date(v),o=e=>new Date(new Date().toDateString()+" "+e),s="time"==a.type,l="week"==a.type;Xc(n.value)&&v&&(e=s?o(v)>o(n.value):l?v>n.value:r>new Date(n.value)),Xc(i.value)&&v&&(t=s?o(v)<o(i.value):l?v<i.value:r<new Date(i.value))}else{let r=a.valueAsNumber||(v?+v:v);YG(n.value)||(e=r>n.value),YG(i.value)||(t=r<i.value)}if((e||t)&&(O(!!e,n.message,i.message,"max","min"),!r))return w(x[m].message),x}if((u||c)&&!S&&(Xc(v)||o&&Array.isArray(v))){let e=XS(u),t=XS(c),n=!YG(e.value)&&v.length>+e.value,i=!YG(t.value)&&v.length<+t.value;if((n||i)&&(O(n,e.message,t.message),!r))return w(x[m].message),x}if(h&&!S&&Xc(v)){let{value:e,message:t}=XS(h);if(e instanceof RegExp&&!v.match(e)&&(x[m]={type:Y6,message:t,ref:a,...E(Y6,t)},!r))return w(t),x}if(p){if(Xi(p)){let e=Xk(await p(v,n),b);if(e&&(x[m]={...e,...E(Y9,e.message)},!r))return w(e.message),x}else if(YY(p)){let e={};for(let t in p){if(!Xm(e)&&!r)break;let i=Xk(await p[t](v,n),b,t);i&&(e={...i,...E(t,i.message)},w(i.message),r&&(x[m]=e))}if(!Xm(e)&&(x[m]={ref:b,...e},!r))return x}}let j=x[m];return w(!j||j.message),x},XO=e=>Array.isArray(e)?e:[e],Xj=e=>Array.isArray(e)?e.filter(Boolean):[];function XT(e,t){if(Xc(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:Xt.test(t)?[t]:YJ(t);if(n.some(e=>Xe.includes(String(e))))return e;let r=1===n.length?e:function(e,t){let n=t.length-1,r=0;for(;r<n;){if(YG(e)){e=void 0;break}e=e[t[r]],r++}return e}(e,n),i=n.length-1,o=n[i];return r&&delete r[o],0!==i&&(YY(r)&&Xm(r)||Array.isArray(r)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!Xn(e[t]))return!1;return!0}(r))&&XT(e,n.slice(0,-1)),e}ei(ef).createContext(null).displayName="HookFormContext";var XC=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};let XI=(e,t)=>null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,t);var XP=(e,t)=>
148{if(!t)return!1;let n=e;for(let r of Xt.test(t)?[t]:YJ(t)){if(!XI(n,r))return XI(e,t);n=n[r]}return!0},XA=e=>Xg(e)&&e.isConnected;function XR(e){return Array.isArray(e)||YY(e)}function XN(e){return Array.isArray(e)||YY(e)&&!(e=>{for(let t in e)if(Xi(e[t]))return!0;return!1})(e)}function XM(e){return!!(e&&"_f"in e)}function XD(e){return Array.isArray(e)?!e.some(e=>!Xn(e)):!Object.keys(e).length}function XL(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function Xz(e,t={},n){for(let r in e){let i=e[r],o=n&&n[r];!XN(i)||Array.isArray(i)&&XM(o)?Xn(i)||(t[r]=!0):(t[r]=Array.isArray(i)?[]:{},Xz(i,t[r],o),XD(t[r])&&XL(t,r))}return t}function XF(e,t,n,r){for(let i in n||(n=Xz(t,{},r)),e){let o=e[i],a=r&&r[i];!XN(o)||Array.isArray(o)&&XM(a)?Xu(o,t[i])?XL(n,i):n[i]=!0:(Xn(t)||Xs(n[i])?n[i]=Xz(o,Array.isArray(o)?[]:{},a):XF(o,YG(t)?{}:t[i],n[i],a),XD(n[i])&&XL(n,i))}return n}var XB=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Xn(e)?e:t?""===e?NaN:e?+e:e:n&&Xc(e)?new Date(e):r?r(e):e;function XU(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?X_(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?Xw(e.refs).value:XB(t.value,e)}var X$=e=>Xn(e)?e:e instanceof RegExp?e.source:YY(e)?e.value instanceof RegExp?e.value.source:e.value:e;let XH="AsyncFunction";var XW=e=>{if(!e||!e.validate)return!1;if(Xi(e.validate))return e.validate.constructor.name===XH;if(YY(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===XH)return!0}return!1};function XV(e,t,n){let r=Xr(e,n);if(r||Xt.test(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=Xr(t,r),a=Xr(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};if(a&&a.root&&a.root.type)return{name:`${r}.root`,error:a.root};i.pop()}return{name:n}}let Xq={mode:Y3,reValidateMode:Y2,shouldFocusError:!0},XK="form",XZ={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};var ef=el("8NFma");function XG(){return(0,ec.jsx)(Zj,{children:e=>(0,ec.jsxs)("div",{className:"dialog-error",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.error.heading",defaultMessage:"Oops!"})})}),(0,ec.jsx)("div",{className:"dialog-content",children:(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"dialogs.error.text",defaultMessage:"Something unexpected happened 😢. We’ve logged the error, but if you can remember what happened on the way here, <a>please tell us about it</a>. This could also be a temporary problem, so please try one more time.",values:{a:e=>(0,ec.jsx)(z2,{href:"https://github.com/streetmix/streetmix/issues/new",children:e})}})})}),(0,ec.jsx)("button",{className:"dialog-primary-action",onClick:e,children:(0,ec.jsx)(TQ,{id:"btn.close",defaultMessage:"Close"})})]})})}let XY={ABOUT:function(){let e=kU(e=>e.system.offline),t=kU(e=>e.flags.COASTMIX_MODE?.value??!1);return(0,ec.jsx)(Zj,{children:n=>(0,ec.jsxs)("div",{className:"about-dialog",children:[(0,ec.jsxs)("div",{className:"dialog-content dialog-content-bleed",children:[t&&(0,ec.jsx)(ZE,{}),(0,ec.jsxs)("header",{children:[(0,ec.jsx)("img",{src:ei(Fq),alt:"Streetmix (logo)",className:"about-dialog-logo",draggable:!1}),(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.about.heading",defaultMessage:"About Streetmix."})})]}),(0,ec.jsxs)("div",{className:"about-dialog-content",children:[(0,ec.jsxs)("div",{className:"about-dialog-left",children:[(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"dialogs.about.description",defaultMessage:"Design, remix, and share your street. Add bike paths, widen sidewalks or traffic lanes, learn how all of this can impact your community."})}),(0,ec.jsx)(ZR,{}),(0,ec.jsx)("h3",{children:(0,ec.jsx)(TQ,{id:"dialogs.about.stewards",defaultMessage:"Stewards"})}),(0,ec.jsxs)("ul",{className:"about-dialog-sponsors",children:[(0,ec.jsx)("li",{children:(0,ec.jsx)(z2,{href:"https://biffud.com/",children:(0,ec.jsx)("img",{src:ei(Zg),alt:"Bad Idea Factory",draggable:!1})})}),(0,ec.jsx)("li",{children:(0,ec.jsx)(z2,{href:"https://codeforamer
148ica.org/",children:(0,ec.jsx)("img",{src:ei(Zy),alt:"Code for America",draggable:!1})})})]}),(0,ec.jsx)("h3",{children:(0,ec.jsx)(TQ,{id:"dialogs.about.partners",defaultMessage:"Partners"})}),(0,ec.jsx)("ul",{className:"about-dialog-sponsors",children:(0,ec.jsx)("li",{children:(0,ec.jsx)(z2,{href:"https://numo.global/",children:(0,ec.jsx)("img",{src:ei(Zm),alt:"New Urban Mobility Alliance",draggable:!1})})})}),(0,ec.jsx)("h3",{children:(0,ec.jsx)(TQ,{id:"dialogs.about.sponsors",defaultMessage:"Sponsors"})}),(0,ec.jsx)("ul",{className:"about-dialog-sponsors",children:(0,ec.jsx)("li",{children:(0,ec.jsx)(z2,{href:"https://www.mozilla.org/en-US/moss/",children:(0,ec.jsx)("img",{src:ei(Zv),alt:"Mozilla Open Source Support",draggable:!1})})})}),!e&&(0,ec.jsxs)("p",{children:[(0,ec.jsx)("a",{href:"https://streetmix.net/terms-of-service/",target:"_blank",rel:"noopener noreferrer",children:(0,ec.jsx)(TQ,{id:"dialogs.about.tos-link",defaultMessage:"Terms of service"})}),(0,ec.jsx)("br",{}),(0,ec.jsx)("a",{href:"https://streetmix.net/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:(0,ec.jsx)(TQ,{id:"dialogs.about.privacy-link",defaultMessage:"Privacy policy"})})]})]}),(0,ec.jsxs)("div",{className:"about-dialog-right",children:[(0,ec.jsx)(ZA,{}),(0,ec.jsx)("div",{className:"credits-container",children:(0,ec.jsxs)("div",{children:[(0,ec.jsx)("h3",{children:(0,ec.jsx)(TQ,{id:"dialogs.about.acknowledgements",defaultMessage:"Acknowledgements"})}),(0,ec.jsxs)("ul",{children:[(0,ec.jsxs)("li",{children:[(0,ec.jsx)(TQ,{id:"dialogs.about.font-designed-by",defaultMessage:"{fontName} font designed by {fontAuthor}.",values:{fontName:(0,ec.jsx)(z2,{href:"https://manropefont.com/",children:"Manrope"}),fontAuthor:(0,ec.jsx)(z2,{href:"https://gent.media/",children:"Mikhail Shiranda"})}})," ",(0,ec.jsx)(TQ,{id:"dialogs.about.license-label",defaultMessage:"(<a>License</a>)",values:{a:e=>(0,ec.jsx)(z2,{href:"https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL",title:"SIL Open Font License, Version 1.1",children:e})}})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)(TQ,{id:"dialogs.about.font-designed-by",defaultMessage:"{fontName} font designed by {fontAuthor}.",values:{fontName:(0,ec.jsx)(z2,{href:"https://hubertfischer.com/work/type-rubik",children:"Rubik"}),fontAuthor:(0,ec.jsx)(z2,{href:"https://hubertfischer.com/",children:"Hubert & Fischer"})}})," ",(0,ec.jsx)(TQ,{id:"dialogs.about.license-label",defaultMessage:"(<a>License</a>)",values:{a:e=>(0,ec.jsx)(z2,{href:"https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL",title:"SIL Open Font License, Version 1.1",children:e})}})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)(TQ,{id:"dialogs.about.font-designed-by",defaultMessage:"{fontName} font designed by {fontAuthor}.",values:{fontName:(0,ec.jsx)(z2,{href:"https://delvefonts.com/fonts/overpass/",children:"Overpass"}),fontAuthor:(0,ec.jsx)(z2,{href:"https://delvefonts.com/",children:"Delve Fonts"})}})," ",(0,ec.jsx)(TQ,{id:"dialogs.about.license-label",defaultMessage:"(<a>License</a>)",values:{a:e=>(0,ec.jsx)(z2,{href:"https://github.com/RedHatOfficial/Overpass/blob/master/OFL.txt",title:"SIL Open Font License, Version 1.1",children:e})}})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)(TQ,{id:"dialogs.about.icons-by",defaultMessage:"Icons by {author}.",values:{author:(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(z2,{href:"https://tabler.io/icons",children:"Tabler"}),","," ",(0,ec.jsx)(z2,{href:"https://fontawesome.com/",children:"Font Awesome"})]})}})," ",(0,ec.jsx)(TQ,{id:"dialogs.about.license-label",defaultMessage:"(<a>License</a>)",values:{a:e=>(0,ec.jsx)(z2,{href:"https://fontawesome.com/license/free",title:"Creative Commons Share Alike License 4.0 (CC BY-SA 4.0)",children:e})}})]}),(0,ec.jsxs)("li",{children:[(0,ec.jsx)(TQ,{id:"dialogs.about.emoji-by",defaultMessage:"Emoji by {author}.",values:{author:(0,ec.jsx)(z2,{href:"https://openmoji.org/",children:"OpenMoji"})}})," ",(0,ec.jsx)(TQ,{id:"dialogs.about.license-label",defaultMessage:"(<a>License</a>)",values:{a:e=>(0,ec.jsx)(z2,{href:"https://creativecommons.org/licenses/by-sa/4.0/#",title:"Creative 
148Commons Share Alike License 4.0 (CC BY-SA 4.0)",children:e})}})]})]})]})})]})]})]}),(0,ec.jsx)("button",{className:"dialog-primary-action",onClick:n,children:(0,ec.jsx)(TQ,{id:"btn.close",defaultMessage:"Close"})})]})})},ANALYTICS:function(){let e,t=kU(e=>e.street),n=kU(e=>e.locale.locale),r=kB(),i=TV(),o=(0,ef.useRef)(0),[a,s]=(0,ef.useState)(t.showAnalytics),l=()=>{let e;s(!a),r((e=!a,async t=>{await t(cB(e)),await t(P0())}))},u=H5(t.capacitySource),c=H8(t),d={maximumSignificantDigits:3},f=(0,ec.jsx)(TQ,{id:"dialogs.analytics.street-summary",defaultMessage:"Your street has an estimated average traffic of {averageTotal} people per hour, and potential for up to {potentialTotal} people per hour.",values:{averageTotal:(0,ec.jsx)("b",{children:cv(c.average,n,d)}),potentialTotal:(0,ec.jsx)("b",{children:cv(c.potential,n,d)})}});e=1===t.units?`${u.typical_lane_width.imperial} ft`:`${u.typical_lane_width.metric} m`;let h=(0,ec.jsx)(TQ,{id:"dialogs.analytics.typical-lane-width",defaultMessage:"Capacity values are based on {laneWidth}-wide lanes.",values:{laneWidth:e}}),p=function(e){let{segments:t,capacitySource:n}=e,r=t.map(e=>{let t=H6(e,n);return void 0===t?null:{type:e.type,capacity:t}}).filter(e=>null!==e).reduce((e,{type:t,capacity:n})=>(e[t]=function(e={},t={}){return{average:(e.average??0)+(t.average??0),potential:(e.potential??0)+(t.potential??0)}}(e[t],n),e),{});return Object.keys(r).map(e=>({type:e,capacity:r[e]})).sort(H9)}(t);function m(){let e=t.name??i.formatMessage({id:"street.default-name",defaultMessage:"Unnamed St"});try{let t,n=(t=p.map(e=>({type:e.type,averageCapacity:e.capacity?.average??0,potentialCapacity:e.capacity?.potential??0})),ei(H1).unparse(t)),r=document.createElement("a"),i=new Blob(["\uFEFF",n]);r.href=URL.createObjectURL(i),r.download=`${e}_capacity.csv`,document.body.appendChild(r),r.click()}catch(e){console.error(e)}}return o.current=Math.max(o.current,...p.map(e=>e.capacity?.potential??0)),(0,ec.jsx)(Zj,{children:e=>(0,ec.jsxs)("div",{className:"analytics-dialog",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.analytics.heading",defaultMessage:"Analytics"})})}),(0,ec.jsxs)("div",{className:"dialog-content",children:[(0,ec.jsxs)("div",{className:"analytics-dialog-content",children:[(0,ec.jsxs)("p",{children:[f," ",h]}),p.map((e,t)=>(0,ec.jsx)(ZF,{index:t,max:o.current,type:e.type,capacity:e.capacity},t)),(0,ec.jsxs)("p",{children:[(0,ec.jsxs)("strong",{children:[(0,ec.jsx)(TQ,{id:"dialogs.analytics.source",defaultMessage:"Source"}),":"]})," ",void 0!==u.source_url?(0,ec.jsx)(z2,{href:u.source_url,children:u.source_title}):u.source_title,", ",u.source_author]})]}),(0,ec.jsx)("hr",{}),(0,ec.jsxs)("div",{className:"dialog-actions",children:[(0,ec.jsx)(ZD,{}),(0,ec.jsx)(ZM,{checked:a,onChange:l,disabled:!AD(),children:(0,ec.jsx)(TQ,{id:"dialogs.analytics.toggle-visible",defaultMessage:"Show capacity counts in segment labels"})}),!AD()&&(0,ec.jsxs)("p",{className:"analytics-settings-notice",children:[(0,ec.jsx)(C0,{name:"help"}),(0,ec.jsx)(TQ,{id:"dialogs.analytics.settings-notice",defaultMessage:"Street owners can change these settings."})]}),(0,ec.jsx)("br",{}),(0,ec.jsx)(T4,{primary:!0,onClick:m,children:(0,ec.jsx)(TQ,{id:"dialogs.analytics.export-csv",defaultMessage:"Export as CSV"})}),(0,ec.jsx)("footer",{children:(0,ec.jsx)(ZN,{locale:n})})]})]}),(0,ec.jsx)("button",{className:"dialog-primary-action",onClick:e,children:(0,ec.jsx)(TQ,{id:"btn.close",defaultMessage:"Close"})})]})})},FEATURE_FLAGS:function(){let e=kU(e=>e.flags),t=kB();return(0,ec.jsx)(Zj,{children:n=>(0,ec.jsxs)("div",{className:"feature-flag-dialog",dir:"ltr",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:"Feature flags"})}),(0,ec.jsx)("div",{className:"dialog-content",children:(0,ec.jsx)("ul",{children:Object.entries(e).map(([n,r])=>{let i=r.defaultValue!==r.value;return(0,ec.jsx)("li",{children:(0,ec.jsx)(ZM,{onChange:e=>{t(uQ({flag:n,value:e.target.checked}))},checked:e[n].value,disabled:!1===r.enabled,children:(0,ec.jsx)("span",{className:i?"feature-flag-label-modified":"",children:r.label})})},n)})})}),(0,ec.jsx)("button",{className:"dialog-primary-action",onClick:n,children:"Close"})]})})},GEOTAG:function(){let e=kU(e=>e.street),t=kU(e=>e.map.markerLocation),n=kU(e=>e.map.addressInformation),r=kU(e=>
148e.system.offline),i=function({street:e,markerLocation:t,addressInformation:n}){let r,i,o,a;return e.location?(r=e.location.latlng,i=18,o=e.location.latlng,a=e.location.label):t?(r=t,i=18,o=t,a=n?.label):(r=Go,i=2),{mapCenter:r,zoom:i,markerLocation:o,label:a}}({street:e,markerLocation:t,addressInformation:n}),[o,a]=(0,ef.useState)(i.markerLocation),[s,l]=(0,ef.useState)(i.label),[u,c]=(0,ef.useState)(!!i.markerLocation),[d,f]=(0,ef.useState)(!1),[h,p]=(0,ef.useState)(),m=kB(),g=TV(),y=!!dE&&!!dO&&!r,v=kU(e=>e.system.devicePixelRatio)>1?Gi:Gr;function b(){var n;let r,i=Z$().map;return d||i.locate(),n={async click(e){if(!y)return;let t=e.latlng;i.flyTo(t);let n=await _(t);S({lat:n.features[0].geometry.coordinates[1],lng:n.features[0].geometry.coordinates[0]},n.features[0].properties)},locationfound(n){d||(e.location||t||i.fitBounds(n.bounds),f(!0))}},r=Z$().map,(0,ef.useEffect)(function(){return r.on(n),function(){r.off(n)}},[r,n]),null}let w=e=>{c(!1)},x=async e=>{let t=e.target.getLatLng(),n=await _(t);S(t,n.features[0].properties)},_=e=>{let t=`${Gn}&point.lat=${e.lat}&point.lon=${e.lng}`;return window.fetch(t).then(e=>e.json())},k=(e,t)=>{t&&S({lat:e[0],lng:e[1]},t)};function S(e,t){c(!0),a(e),l(t?.label),m(du({markerLocation:e,addressInformation:t}))}return(0,ec.jsx)(Zj,{children:r=>{let a;return(0,ec.jsxs)("div",{className:"geotag-dialog",children:[y?(0,ec.jsx)("div",{className:"geotag-input-container",children:(0,ec.jsx)(Z5,{map:h,handleResults:k})}):(0,ec.jsx)(Z1,{}),(0,ec.jsxs)(ZJ,{center:i.mapCenter,zoomControl:!1,attributionControl:!1,zoom:i.zoom,ref:p,children:[(0,ec.jsx)(ZQ,{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener noreferrer">OpenStreetMap</a>, &copy; <a href="https://carto.com/attribution" target="_blank" rel="noopener noreferrer">CARTO</a>',url:v}),(0,ec.jsx)(Z0,{zoomInTitle:g.formatMessage({id:"dialogs.geotag.zoom-in",defaultMessage:"Zoom in"}),zoomOutTitle:g.formatMessage({id:"dialogs.geotag.zoom-out",defaultMessage:"Zoom out"})}),u&&o&&(0,ec.jsx)(Ge,{position:o,label:s,isEditable:y&&(AD()||!e.creatorId||!e.location),isClearable:y&&!!(a=e.location?.latlng)&&!!o&&a.lat===o.lat&&a.lng===o.lng,handleConfirm:e=>{let i;m(c5(i={latlng:t,wofId:n?.id,label:n?.label,hierarchy:{country:n?.country,region:n?.region,locality:n?.locality,neighbourhood:n?.neighbourhood,street:n?.street},geometryId:null,intersectionId:null})),m(cG(i.hierarchy.street??null,!1)),r()},handleClear:e=>{m(c6()),r()}}),o&&(0,ec.jsx)(Z8,{position:o,geocodeAvailable:y,onDragStart:w,onDragEnd:x}),(0,ec.jsx)(b,{}),(0,ec.jsx)(ZX,{prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps" target="_blank" rel="noopener noreferrer"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> Leaflet</a>'})]})]})}})},SAVE_AS_IMAGE:function(){let e=(0,ef.useRef)(null),[t,n]=(0,ef.useState)(1),[r,i]=(0,ef.useState)(!1),[o,a]=(0,ef.useState)(!1),[s,l]=(0,ef.useState)(),[u,c]=(0,ef.useState)(!1),[d,f]=(0,ef.useState)(),[h,p]=(0,ef.useState)({}),m=kU(e=>e.locale.locale),{saveAsImageTransparentSky:g,saveAsImageSegmentNamesAndWidths:y,saveAsImageStreetName:v}=kU(e=>e.settings),b=kU(e=>e.settings.saveAsImageWatermark||!e.user.isSubscriber),w=kU(e=>e.street),x=kU(e=>e.user.isSubscriber),_=TV(),k=kB(),S=kU(e=>e.flags.SAVE_AS_IMAGE_NEW_EXPORT_PIPELINE.value),[E,O]=(0,ef.useState)(S);function j(){let e=AJ(w.name);return void 0===e&&(e="street"),e+=".png"}(0,ef.useEffect)(()=>{!async function(){await F()}()},[]),(0,ef.useEffect)(()=>{i(!0),window.setTimeout(async()=>{await F()},100)},[g,y,v,b,E]),(0,ef.useEffect)(()=>{E&&(i(!0),window.setTimeout(async()=>{await F()},100))},[t,E]);let T=e=>{k(dI({saveAsImageTransparentSky:e.target.checked}))},C=e=>{k(dI({saveAsImageSegmentNamesAndWidths:e.target.checked}))},I=e=>{k(dI({saveAsImageStreetName:e.target.checked}))},P=e=>{k(dI({saveAsImageWatermark:e.target.checked}))},A=()=>{O(!E)},R=e=>{c(!1),n(e)},N=()=>{i(!1)},M=()=>{i(!1),l(_.formatMessage({id:"dialogs.save.error-preview",defaultMessage:"There was an error displaying a preview image."}))},D=n=>{if(n.preventDefault(),a(!0),E){let e=j();(0,Ga.saveAs)(`/api/v1/streets/${w.id}/image?transparentSky=${g}&labels=${y}&streetName=${v}&watermark=${b}&locale=${m}&scale=${t}&experimental=1`,e),window.setTimeout(()=>{a(!1)},0);return}try{z(t),e.current?.toBlob(e=>{if(e){let t=j();(0,Ga.saveAs)(e,t),window.setTimeout(()=>{a(!1)},0)}else throw Error()})}catch(e){a(!1),c(!0)}},z=async(t=1)=>{e.current=await PD(w,g,y,v,2*t,b,m)},F=async()=>
148{if(E)return void f(`/api/v1/streets/${w.id}/image?transparentSky=${g}&labels=${y}&streetName=${v}&watermark=${b}&locale=${m}&scale=${t}&experimental=1`);await z(1),p({width:e.current?.width,height:e.current?.height});try{e.current?.toBlob(e=>{if(e){let t=URL.createObjectURL(e);f(t),l(void 0)}else throw Error()})}catch(e){console.error(e),l(_.formatMessage({id:"dialogs.save.error-unavailable",defaultMessage:"Saving to image is not available on this browser."}))}};return(0,ec.jsx)(Zj,{children:()=>(0,ec.jsxs)("div",{className:"save-as-image-dialog",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.save.heading",defaultMessage:"Save as image"})})}),(0,ec.jsxs)("div",{className:"dialog-content",children:[(0,ec.jsxs)("div",{className:"save-as-image-options",children:[S&&(0,ec.jsx)("div",{style:{marginTop:0,marginBottom:"0.25em"},children:(0,ec.jsx)(ZM,{onChange:A,checked:E,children:"New export pipeline (WIP)"})}),(0,ec.jsx)(ZM,{onChange:C,checked:y,children:(0,ec.jsx)(TQ,{id:"dialogs.save.option-labels",defaultMessage:"Segment names and widths"})}),(0,ec.jsx)(ZM,{onChange:I,checked:v,children:(0,ec.jsx)(TQ,{id:"dialogs.save.option-name",defaultMessage:"Street name"})}),(0,ec.jsx)(ZM,{onChange:T,checked:g,children:(0,ec.jsx)(TQ,{id:"dialogs.save.option-sky",defaultMessage:"Transparent sky"})}),x?(0,ec.jsx)(ZM,{onChange:P,checked:b,children:(0,ec.jsx)(TQ,{id:"dialogs.save.option-watermark",defaultMessage:"Watermark"})}):(0,ec.jsx)(Te,{label:_.formatMessage({id:"plus.locked.sub",defaultMessage:"Upgrade to Streetmix+ to use!‎"}),children:(0,ec.jsxs)(ZM,{onChange:P,checked:b,disabled:!x,children:[(0,ec.jsx)(TQ,{id:"dialogs.save.option-watermark",defaultMessage:"Watermark"})," ",(0,ec.jsx)(C0,{name:"lock"})]})})]}),null!==w.weather&&(0,ec.jsxs)("div",{className:"save-as-image-weather-alert",children:[(0,ec.jsx)("img",{src:ei(Pd),alt:"",draggable:!1}),(0,ec.jsx)(TQ,{id:"dialogs.save.weather-not-exported",defaultMessage:"Weather effects will not be exported.‎"})]}),(0,ec.jsxs)("div",{className:"save-as-image-preview",children:[void 0===s&&(0,ec.jsxs)("div",{className:"save-as-image-preview-image",children:[(0,ec.jsx)("div",{className:"save-as-image-preview-loading",style:{display:r?"flex":"none"},children:(0,ec.jsx)(TQ,{id:"dialogs.save.loading",defaultMessage:"Loading…"})}),void 0!==d&&(0,ec.jsx)("img",{src:d,onLoad:N,onError:M,alt:_.formatMessage({id:"dialogs.save.preview-image-alt",defaultMessage:"Preview"})})]}),void 0!==s&&(0,ec.jsx)("div",{className:"save-as-image-preview-error",children:s})]}),(0,ec.jsx)(Yc,{scale:t,baseDimensions:h,onChange:R}),(0,ec.jsxs)("div",{className:"save-as-image-download",children:[u&&(0,ec.jsx)("span",{className:"save-as-image-too-large-error",children:(0,ec.jsx)(TQ,{id:"dialogs.save.error-too-large",defaultMessage:"This image is too big and we were not able to create it. Please try a smaller custom size."})}),void 0!==s||o?(0,ec.jsx)(T4,{primary:!0,disabled:!0,children:(0,ec.jsx)(TQ,{id:"dialogs.save.save-button",defaultMessage:"Save to your computer…"})}):(0,ec.jsx)(T4,{primary:!0,onClick:D,children:(0,ec.jsx)(TQ,{id:"dialogs.save.save-button",defaultMessage:"Save to your computer…"})})]})]}),(0,ec.jsx)("footer",{children:(0,ec.jsx)(ZN,{locale:m})})]})})},SETTINGS:function({category:e="profile"}){let t,n=kU(e=>e.user?.signInData?.details??{}),[r,i]=(0,ef.useState)(e),{roles:o=[]}=n,a=o.includes(ei(d5).ADMIN.value);switch(r){case"feature-flags":t=(0,ec.jsx)(Yd,{});break;case"general":t=(0,ec.jsx)(YW,{});break;case"language":t=(0,ec.jsx)(Yq,{});break;case"profile":t=(0,ec.jsx)(YK,{});break;case"units":t=(0,ec.jsx)(YH,{});break;default:t=(0,ec.jsx)("div",{children:"Not implemented"})}return(0,ec.jsx)(Zj,{children:e=>(0,ec.jsxs)("div",{className:"settings-dialog",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"settings.heading",defaultMessage:"Settings"})})}),(0,ec.jsx)("div",{className:"dialog-content dialog-content-bleed",children:(0,ec.jsxs)("div",{className:"settings-dialog-content",children:[(0,ec.jsx)("div",{className:"settings-dialog-left",children:(0,ec.jsxs)("ul",{children:[(0,ec.jsxs)("li",{onClick:()=>{i("profile")},className:"profile"===r?"settings-menu-active":"",children:[(0,ec.jsx)(C0,{name:"user",size:"18",className:"settings-menu-icon"}),(0,ec.jsx)(TQ,{id:"settings.profile.label",defaultMessage:"Profile"})]}),(0,ec.jsxs)("li",{onClick:()=>{i("general")},className:"general"===r?"settings-menu-active":"",children:[(0,ec.jsx)(C0,{name:"settings",size:"18",className:"settings-menu-icon"}),(0,ec.jsx)(TQ,{id:"settings.general.label",defaultMessage:"General"})]}),(0,ec.jsxs)("li",{onClick:()=>{i("language")},className:"language"===r?"settings-menu-active":"",children:[(0,ec.jsx)(C0,{name:"language",size:"18",className:"settings-menu-icon"}),(0,ec.jsx)(TQ,{id:"settings.language.label",defaultMessage:"Language"})]}),a&&(0,ec.jsxs)("li",{onClick:()=>{i("feature-flags")},className:"feature-flags"===r?"settings-menu-active":"",children:[(0,ec.jsx)(C0,{name:"flag",size:"18",className:"settings-menu-icon"}),"Feature flags"]})]})}),(0,ec.jsx)("div",{className:"settings-dialog-right",children:t})]})}),(0,ec.jsx)("button",{className:"dialog-primary-action",onClick:e,children:(0,ec.jsx)(TQ,{id:"bt
148n.close",defaultMessage:"Close"})})]})})},SIGN_IN:function(){let[e,t]=(0,ef.useState)(""),[n,r]=(0,ef.useState)(!1),[i,o]=(0,ef.useState)(!1),[a,s]=(0,ef.useState)(!1),[l,u]=(0,ef.useState)(!1),c=(0,ef.useRef)(null),d=(0,ef.useId)();function f(e){t(e.target.value)}function h(e){e.preventDefault(),u(!0),wp().authorize({responseType:"code",connection:"facebook",redirectUri:wm})}function p(e){e.preventDefault(),u(!0),wp().authorize({responseType:"code",connection:"google-oauth2",redirectUri:wm})}function m(e){e.preventDefault(),u(!0),wp().authorize({responseType:"code",connection:"twitter",redirectUri:wm})}function g(e){null!==e?console.error(e):(o(!1),r(!0),s(!1))}function y(e){e.preventDefault(),r(!1)}function v(t){t.preventDefault(),wp().passwordlessStart({send:"link",email:e,connection:"email",authParams:{redirectUri:wm,responseType:"code"}},(e,t)=>{g(e,t)}),o(!0)}function b(){return(0,ec.jsx)("p",{className:"sign-in-error-message",children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.email-invalid",defaultMessage:"Oops! That didn’t look like a valid email address. Please try again."})})}return((0,ef.useEffect)(()=>{c.current?.focus()},[]),i||l)?(0,ec.jsx)(function(){return(0,ec.jsx)(Zj,{children:()=>(0,ec.jsxs)("div",{className:"sign-in-dialog",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.loading-message",defaultMessage:"Signing you in…"})})}),(0,ec.jsx)("div",{className:"dialog-content sign-in-loading","aria-live":"polite","aria-busy":"true",children:(0,ec.jsx)(F_,{})})]})})},{}):n?(0,ec.jsx)(function(){return(0,ec.jsx)(Zj,{children:()=>(0,ec.jsxs)("div",{className:"sign-in-dialog",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.loading-message",defaultMessage:"Signing you in…"})})}),(0,ec.jsxs)("div",{className:"dialog-content sign-in-email-sent",children:[(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.sent-message-with-email",defaultMessage:"We’ve sent an email to {email}. Please follow the instructions there to continue signing in!",values:{email:(0,ec.jsx)("span",{className:"sign-in-email",children:e})}})}),(0,ec.jsxs)("p",{className:"sign-in-resend",children:[(0,ec.jsx)(TQ,{id:"dialogs.sign-in.email-unreceived",defaultMessage:"Didn’t receive it?"}),(0,ec.jsx)("br",{}),(0,ec.jsx)("a",{onClick:y,children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.resend-email",defaultMessage:"Resend email"})})]})]})]})})},{}):(0,ec.jsx)(Zj,{children:()=>(0,ec.jsxs)("div",{className:"sign-in-dialog",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.heading",defaultMessage:"Sign in / Sign up"})})}),(0,ec.jsxs)("div",{className:"dialog-content",children:[(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.description",defaultMessage:"Save your first design or sign in to access your past designs."})}),(0,ec.jsxs)("form",{onSubmit:v,children:[(0,ec.jsx)("label",{htmlFor:d,className:"sign-in-email-label",children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.email-label",defaultMessage:"Email"})}),(0,ec.jsx)("input",{type:"email",id:d,ref:c,value:e,className:"sign-in-input "+(a?"sign-in-input-error":""),name:"email",autoComplete:"email",spellCheck:!1,onChange:f,placeholder:"[email protected]",required:!0}),a&&(0,ec.jsx)(b,{}),(0,ec.jsx)("p",{className:"sign-in-email-password-note",children:(0,ec.jsx)("small",{children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.email-description",defaultMessage:"We’ll send you a link to sign in. No password is required."})})}),(0,ec.jsx)(T4,{type:"submit",primary:!0,className:"sign-in-button sign-in-email-button",children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.button.email",defaultMessage:"Continue with email"})})]}),(0,ec.jsxs)("div",{className:"sign-in-social-heading",children:[(0,ec.jsx)("hr",{}),(0,ec.jsx)("span",{children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.social-heading",defaultMessage:"or"})})]}),(0,ec.jsxs)(T4,{tertiary:!0,className:"sign-in-button sign-in-social-button sign-in-twitter-button",onClick:m,children:[(0,ec.jsx)(C0,{name:"twitter"}),(0,ec.jsx)(TQ,{id:"dialogs.sign-in.button.twitter",defaultMessage:"Continue with Twitter"})]}),(0,ec.jsxs)(T4,{tertiary:!0,className:"sign-in-button sign-in-social-button sign-in-google-button",onClick:p,children:[(0,ec.jsx)(C0,{name:"google"}),(0,ec.jsx)(TQ,{id:"dialogs.sign-in.button.google",defaultMessage:"Continue with Google"})]}),(0,ec.jsxs)(T4,{tertiary:!0,className:"sign-in-button sign-in-social-button sign-in-facebook-button",onClick:h,children:[(0,ec.jsx)(C0,{name:"facebook"}),(0,ec.jsx)(TQ,{id:"dialogs.sign-in.button.facebook",defaultMessage:"Continue with Facebook"})]})]}),(0,ec.jsx)("footer",{children:(0,ec.jsx)("p",{className:"sign-in-disclaimer",children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.tos",defaultMessage:"By clicking one of these buttons, I agree to the {tosLink} and {privacyLink}.",values:{tosLink:(0,ec.jsx)("a",{href:"/terms-of-service",target:"_blank",children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.tos-link-label",defaultMessage:"terms of service"})}),privacyLink:(0,ec.jsx)("a",{href:"/privacy-policy",target:"_blank",children:(0,ec.jsx)(TQ,{id:"dialogs.sign-in.privacy-link-label",defaultMessage:"privacy policy"})})}})})})]})})},WHATS_NEW:()=>{let e=kU(e=>e.locale.locale),[t,n]=(0,ef.useState)("LOADING"),[r,i]=(0,ef.useState)(""),[o,a]=(0,ef.useState)(!1);(0,ef.useEffect)(()=>
148{l()},[]);let s=e=>{e.target.scrollTop>30?a(!0):a(!1)};async function l(){try{let e=await uv();i(e.data),n("OK")}catch(e){n("ERROR"),console.error(e)}}return(0,ec.jsx)(Zj,{children:n=>(0,ec.jsxs)("div",{className:"whats-new-dialog",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.whatsnew.heading",defaultMessage:"What’s new in Streetmix?‎"})})}),!e.startsWith("en")&&(0,ec.jsx)("div",{className:"whats-new-language-banner",children:(0,ec.jsx)(TQ,{id:"dialogs.whatsnew.english-only",defaultMessage:"This information is provided in English only.‎"})}),(0,ec.jsxs)("div",{className:"dialog-content dialog-content-bleed",dir:"ltr",children:[(0,ec.jsxs)("div",{className:"whats-new-content",onScroll:s,children:["OK"===t&&(0,ec.jsx)(KJ,{allowedElements:["p","em","strong","ol","ul","li","blockquote","h1","h2","h3","a","img"],unwrapDisallowed:!0,urlTransform:e=>e.replace("/img/","/images/"),rehypePlugins:[[K9,{rel:"noopener noreferrer",target:"_blank"}]],children:r}),"LOADING"===t&&(0,ec.jsx)("div",{className:"whats-new-loading",children:(0,ec.jsx)(F_,{})}),"ERROR"===t&&(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"generic-error-description",defaultMessage:"We’re sorry – something went wrong."})})]}),(0,ec.jsx)("div",{className:`whats-new-scroll-shade${o?" visible":""}`})]}),(0,ec.jsx)("button",{className:"dialog-primary-action",onClick:n,children:(0,ec.jsx)(TQ,{id:"btn.close",defaultMessage:"Close"})})]})})},NEWSLETTER:function(){let{register:e,handleSubmit:t,setFocus:n}=function(e={}){let t,n,r,i,o=ei(ef).useRef(void 0),a=ei(ef).useRef(void 0),s=ei(ef).useRef(e.formControl),[l,u]=ei(ef).useState(()=>({...Y0(XZ),isLoading:Xi(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Xi(e.defaultValues)?void 0:e.defaultValues}));if(!o.current||e.formControl&&s.current!==e.formControl)if(s.current=e.formControl,e.formControl)o.current={...e.formControl,formState:l},e.defaultValues&&!Xi(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:t,...n}=function(e={}){let t={...Xq,...e},n={...Y0(XZ),isLoading:Xi(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(YY(t.defaultValues)||YY(t.values))&&Y0(t.defaultValues||t.values)||{},o=t.shouldUnregister?{}:Y0(i),a={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},l={},u={},c=0,d=Xd(t.mode),f=Xd(t.reValidateMode),h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...h},m={...p},g={array:XC(),state:XC()},y=0,v="all"===t.criteriaMode,b=(e,t)=>n=>{clearTimeout(u[e]),u[e]=setTimeout(t,n)},w=async e=>{if(!a.keepIsValid&&!t.disabled&&(p.isValid||m.isValid||e)){let e,i=++y;t.resolver?(e=Xm((await O()).errors),i===y&&x()):e=await C({fields:r,onlyCheckValid:!0,eventType:"valid"}),i===y&&e!==n.isValid&&g.state.next({isValid:e})}},x=(e,r)=>{!t.disabled&&(p.isValidating||p.validatingFields||m.isValidating||m.validatingFields)&&((e||s.mount).forEach(e=>{e&&(r?Xo(n.validatingFields,e,r):XT(n.validatingFields,e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Xm(n.validatingFields)}))},_=()=>{n.dirtyFields=XF(i,o,void 0,r)},k=(e,t)=>{Xo(n.errors,e,t),n.errors={...n.errors},g.state.next({errors:n.errors})},S=(t,l,u,c)=>{let d=Xr(r,t);if(d){if((e=>{let t=Xt.test(e)?[e]:YJ(e),n=o,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=YG(n)?n:n[i],r=YG(r)?r:r[i],null===n&&null!==r)return!0}return!1})(t)||(e=>{if(!a.actionArrayLengths.size)return!1;let t=Xt.test(e)?[e]:YJ(e),n=o,r="",i=-1,s=0;for(let e=0;e<t.length&&!YG(n);e++){let o=t[e];if(r=r?`${r}.${o}`:o,Array.isArray(n)&&+o>=n.length)return -1!==i&&(e!==i||+o<s);a.actionArrayLengths.has(r)&&(i=e+1,s=a.actionArrayLengths.get(r)),n=n[o]}return!1})(t))return;let r=Xn(Xr(o,t)),f=Xr(o,t,Xn(u)?Xr(i,t):u);Xn(f)||c&&c.defaultChecked||l?Xo(o,t,l?f:XU(d._f)):A(t,f),a.mount&&!a.action&&(w(),r&&n.isDirty&&(p.isDirty||m.isDirty)&&(I()||(n.isDirty=!1,g.state.next({...n}
148))),e.shouldUnregister&&r&&!Xn(Xr(o,t))&&Xf(t,s)&&(a.watch=!0))}},E=(e,a,s,l,u)=>{let c=!1,d=!1,f={name:e};if(!t.disabled||!0===l){if(!s||l){let t=Xu(Xr(i,e),a);if((p.isDirty||m.isDirty)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||I(),c=d!==f.isDirty),d=!!Xr(n.dirtyFields,e),t!==n.isDirty){var h=n.dirtyFields,y=XF(i,o,void 0,r);for(let e in h)e in y||delete h[e];Object.assign(h,y)}else t?XT(n.dirtyFields,e):Xo(n.dirtyFields,e,!0);f.dirtyFields=n.dirtyFields,c=c||(p.dirtyFields||m.dirtyFields)&&!t!==d}if(s){let t=Xr(n.touchedFields,e);t||(Xo(n.touchedFields,e,s),f.touchedFields=n.touchedFields,c=c||(p.touchedFields||m.touchedFields)&&t!==s)}c&&u&&g.state.next(f)}return c?f:{}},O=async e=>(x(e,!0),await t.resolver(o,t.context,((e,t,n,r)=>{let i={};for(let n of e){let e=Xr(t,n);e&&Xo(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),j=async e=>{let{errors:t}=await O(e);if(x(e),e){for(let r of e){let e=Xr(t,r);e?s.array.has(r)&&YY(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?Xp(n.errors,{[r]:e},r):Xo(n.errors,r,e):XT(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},T=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:o,formState:n,name:t,eventType:r});if(YY(i))for(let e in i){let t=i[e];t&&$(`${XK}.${e}`,{message:Xc(t.message)?t.message:"",type:t.type||Y9})}else Xc(i)||!i?$(XK,{message:i||"",type:Y9}):U(XK);return i}return!0},C=async({fields:r,onlyCheckValid:i,name:a,eventType:l,context:u={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(u.runRootValidation=!0,!await T({name:a,eventType:l}))&&(u.valid=!1,i))return u.valid;for(let a in r){let c=r[a];if(c){let{_f:r,...d}=c;if(r){let a=s.array.has(r.name),l=c._f&&XW(c._f),d=p.validatingFields||p.isValidating||m.validatingFields||m.isValidating;l&&d&&x([r.name],!0);let f=await XE(c,s.disabled,o,v,t.shouldUseNativeValidation&&!i,a);if(l&&d&&x([r.name]),f[r.name]&&(u.valid=!1,i)||(i||(Xr(f,r.name)?a?Xp(n.errors,f,r.name):Xo(n.errors,r.name,f[r.name]):XT(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}Xm(d)||await C({context:u,onlyCheckValid:i,fields:d,name:a,eventType:l})}}return u.valid},I=(e,t)=>(e&&t&&Xo(o,e,t),!Xu(a.mount?o:i,i)),P=(e,t,n)=>{var r,l;return r=s,l={...a.mount?o:Xn(t)||Xc(e)?i:t},Xc(e)?(n&&r.watch.add(e),Xr(l,e,t)):Array.isArray(e)?e.map(e=>(n&&r.watch.add(e),Xr(l,e,Xr(t,e)))):(n&&(r.watchAll=!0),l)},A=(e,t,n={},i=!1,a=!1,s=!1)=>{let l=Xr(r,e),u=t;if(l){let n=l._f;n&&(n.disabled||Xo(o,e,XB(t,n)),u=Xg(n.ref)&&YG(t)?"":t,"select-multiple"===n.ref.type?[...n.ref.options].forEach(e=>e.selected=u.includes(e.value)):n.refs?"checkbox"===n.ref.type?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(u)?e.checked=!!u.find(t=>t===e.value):e.checked=u===e.value||!!u)}):n.refs.forEach(e=>e.checked=e.value===u):"file"===n.ref.type?n.ref.value="":(n.ref.value=u,n.ref.type||a||s||g.state.next({name:e,values:i?o:Y0(o)})))}(n.shouldDirty||n.shouldTouch)&&E(e,u,n.shouldTouch,n.shouldDirty,!a),n.shouldValidate&&F(e,{delayError:n.delayError})},R=(e,t,n,i=!1,a=!1,l=!1)=>{for(let u in s.array.has(e)&&g.array.next({name:e,values:i?o:Y0(o)}),t){if(!t.hasOwnProperty(u))continue;let o=t[u],c=e+"."+u,d=Xr(r,c);(s.array.has(e)||YY(o)||d&&!d._f)&&!YZ(o)?R(c,o,n,i,a,l):A(c,o,n,i,a,l)}},N=(e,t,i,l,u=!1)=>{let c=Xr(r,e),d=s.array.has(e),f=l?t:Y0(t),h=Xu(Xr(o,e),f);if(h||Xo(o,e,f),d)g.array.next({name:e,values:l?o:Y0(o)}),(p.isDirty||p.dirtyFields||m.isDirty||m.dirtyFields)&&i.shouldDirty&&(_(),u||g.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:I(e,f)}));else{let t=Array.isArray(f)&&!f.length||Xm(f),n=!h&&!u;!c||c._f||YG(f)||t?A(e,f,i,l,u,n):R(e,f,i,l,u,n)}if(!h&&!u){let t=Xf(e,s),r=l?o:Y0(o);if(g.state.next({...t&&n,name:a.mount||t?e:void 0,values:r}),!d)for(let t of((e,t)=>{let n=t.split("."),r=[],i=n[0];for(let t=1;t<n.length;i+="."+n[t++])!isNaN(+n[t])&&e.has(i)&&r.push(`${i}.${n[t]}`);return r})(s.array,e))g.state.next({name:t,values:r})}},M=(e,t,n={})=>N(e,t,n,!1),D=async i=>{a.mount=!0;let h=i.target,y=h.name,_=!0,S=Xr(r,y),j=e=>{_=Number.isNaN(e)||YZ(e)&&isNaN(e.getTime())||Xu(e,Xr(o,y,e))};if(S){let a,B,U,$,H=h.type?XU(S._f):YY(a=i)&&a.target?"checkbox"===a.target.type?a.target.checked:"file"===a.target.type?a.target.files:a.target.value:a,W="blur"===i.type||"focusout"===i.type,V=!(($=S._f).mount&&($.required||!Xn($.required)&&!1!==$.required||!Xn($.min)||!Xn($.max)||!Xn($.maxLength)||!Xn($.minLength)||$.pattern||$.validate))&&!e.validate&&!t.resolver&&!Xr(n.errors,y)&&!S._f.deps,q=V||(I=W,P=Xr(n.touchedFields,y),A=n.isSubmitted,R=f,!(N=d).isOnAll&&(!A&&N.isOnTouch?!(P||I):(A?R.isOnBlur:N.isOnBlur)?!I:(A?!R.isOnChange:!N.isOnChange)||I)),K=Xf(y,s,W);if(Xo(o,y,Y0(H)),W){if(!h||!h.readOnly){S._f.onBlur&&S._f.onBlur(i);let e=l[y];e&&e(0)}}else S._f.onChange&&S._f.onChange(i);let Z=E(y,H,W),G=!Xm(Z)||K;if(W||g.state.next({name:y,type:i.type,...c?{values:Y0(o)}:{}}),q)return(!V||!n.isValid)&&(p.isValid||m.isValid)&&("onBlur"===t.mode?W&&w():W||w()),G&&g.state.next({name:y,...K?{}:Z});if(!t.resolver&&e.validate&&await T({name:y,eventType:i.type}),!W&&K&&g.state.next({...n}),t.resolver){let{errors:e}=await O([y]);if(x([y]),j(H),!_){Xm(Z)||g.state.next(Z);return}let t=XV(n.errors,r,y),i=XV(e,r,t.name||y);B=i.error,y=i.name,U=Xm(e)}else x([y],!0),B=(await XE(S,s.disabled,o,v,t.shouldUseNativeValidation))[y],x([y]),j(H),_&&(B?U=!1:(p.isValid||m.isValid)&&(U=await C({fields:r,onlyCheckValid:!0,name:y,eventType:i.type})));if(_){S._f.deps&&(!Array.isArray(S._f.deps)||S._f.deps.length>0)&&F(S._f.deps);var I,P,A,R,N,M=y,D=U,z=B;let e=Xr(n.errors,M),r=(p.isValid||m.isValid)&&"boolean"==typeof D&&n.isValid!==D;if(t.delayError&&z?(l[M]=b(M,()=>k(M,z)),l[M](t.delayError)):(clearTimeout(u[M]),delete l[M],z?Xo(n.errors,M,z):XT(n.errors,M),n.errors={...n.errors}),(z?!Xu(e,z):e)||!Xm(Z)||r){let e={...Z,...r&&"boolean"==typeof D?{isValid:D}:{},errors:n.errors,name:M};g.state.next(e)}}}},z=(e,t)=>{if(Xr(n.errors,t)&&e.focus)return e.focus(),1},F=async(e,i={})=>{let o,a,c=XO(e);
148if(t.resolver){let t=await j(Xn(e)?e:c);o=Xm(t),a=e?!c.some(e=>Xr(t,e)):o}else e?((a=(await Promise.all(c.map(async e=>{let t=Xr(r,e);return await C({fields:t&&t._f?{[e]:t}:t,eventType:Y1})}))).every(Boolean))||n.isValid)&&w():a=o=await C({fields:r,name:e,eventType:Y1});if(i.delayError&&t.delayError&&Xc(e)){let r=Xr(n.errors,e);r?(XT(n.errors,e),l[e]=b(e,()=>k(e,r)),l[e](t.delayError)):(clearTimeout(u[e]),delete l[e])}if(i.shouldTouch)for(let t of e?c:s.mount)s.array.has(t)||Xo(n.touchedFields,t,!0);return g.state.next({...!Xc(e)||(p.isValid||m.isValid)&&o!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:o}:{},...i.shouldTouch&&(p.touchedFields||m.touchedFields)?{touchedFields:n.touchedFields}:{},errors:n.errors}),i.shouldFocus&&!a&&Xh(r,z,e?c:s.mount),a},B=(e,t)=>{let r=t||n,i=Xr(r.errors,e);return{invalid:!!i,isDirty:!!Xr(r.dirtyFields,e),error:i,isValidating:!!Xr(n.validatingFields,e),isTouched:!!Xr(r.touchedFields,e)}},U=e=>{let t=e?XO(e):void 0;null==t||t.forEach(e=>XT(n.errors,e)),t?t.forEach(e=>{g.state.next({name:e,errors:n.errors})}):(n.errors={},g.state.next({errors:n.errors}))},$=(e,t,i)=>{let o=(Xr(r,e,{_f:{}})._f||{}).ref,{ref:a,message:s,type:l,...u}=Xr(n.errors,e)||{};Xo(n.errors,e,{...u,...t,ref:o}),g.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&o&&o.focus&&o.focus()},H=e=>{var t;let r=!!(null==(t=e.formState)?void 0:t.values);r&&c++;let{unsubscribe:a}=g.state.subscribe({next:t=>{var r,a;let s,l,u,c;if(s=e.name,l=t.name,u=e.exact,(!s||!l||s===l||XO(s).some(e=>e&&(u?e===l||e.startsWith(l+"."):e.startsWith(l)||l.startsWith(e))))&&(r=e.formState||p,a=e.reRenderRoot,X(t),!(c=Object.keys(t).filter(e=>"name"!==e)).length||a&&c.length>=Object.keys(r).length||c.find(e=>r[e]===(!a||"all")))){let r={...o};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!r)return a;let s=!1;return()=>{s||(s=!0,c--,a())}},W=(e,a={})=>{for(let l of e?XO(e):s.mount)s.mount.delete(l),s.array.delete(l),a.keepValue||(XT(r,l),XT(o,l)),a.keepError||XT(n.errors,l),a.keepDirty||XT(n.dirtyFields,l),a.keepTouched||XT(n.touchedFields,l),a.keepIsValidating||XT(n.validatingFields,l),t.shouldUnregister||a.keepDefaultValue||XT(i,l);c&&g.state.next({values:Y0(o)}),g.state.next({...n,...a.keepDirty?{}:{isDirty:I()}}),a.keepIsValid||w()},V=({disabled:e,name:t})=>{if("boolean"==typeof e&&a.mount||e||s.disabled.has(t)){let n=s.disabled.has(t);e?s.disabled.add(t):s.disabled.delete(t),!!e!==n&&a.mount&&!a.action&&w()}},q=(e,n={})=>{let o=Xr(r,e),l="boolean"==typeof n.disabled||"boolean"==typeof t.disabled,u=!s.registerName.has(e)&&o&&o._f&&!o._f.mount;return(Xo(r,e,{...o||{},_f:{...o&&o._f?o._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),o&&!u)?V({disabled:"boolean"==typeof n.disabled?n.disabled:t.disabled,name:e}):S(e,!0,n.value),{...l?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:X$(n.min),max:X$(n.max),minLength:X$(n.minLength),maxLength:X$(n.maxLength),pattern:X$(n.pattern)}:{},name:e,onChange:D,onBlur:D,ref:l=>{if(l){let t;s.registerName.add(e),q(e,n),s.registerName.delete(e),o=Xr(r,e);let a=Xn(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,u="radio"===(t=a).type||"checkbox"===t.type,c=o._f.refs||[];if(u?c.find(e=>e===a):a===o._f.ref)return;let d={...o._f};u?(d.refs=[...c.filter(XA),a,...Array.isArray(Xr(i,e))?[{}]:[]],d.ref={type:a.type,name:e}):(d.ref=a,delete d.refs),Xo(r,e,{_f:d}),S(e,!1,void 0,a)}else{let i;(o=Xr(r,e,{}))._f&&(o._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&(i=s.array,!e.split(".").some((e,t,n)=>!isNaN(Number(e))&&i.has(n.slice(0,t).join(".")))||!a.action)&&s.unMount.add(e)}}}},K=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Xh(r,z,s.mount),Z=(e,i)=>async a=>{let l,u;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let c=Y0(o);if(g.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await O();x(),n.errors=e,c=Y0(t)}else await C({fields:r,eventType:"submit"});if(s.disabled.size)for(let e of s.disabled)XT(c,e);if(XT(n.errors,Y7),Xm(n.errors)){g.state.next({errors:{}});try{l=await e(c,a)}catch(e){u=e}}else i&&await i({...n.errors},a),K(),setTimeout(K);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Xm(n.errors)&&!u,submitCount:n.submitCount+1,errors:n.errors}),u)throw u;return l},G=(e,l={})=>{let u=e?Y0(e):i,c=Y0(u),d=Xm(e),f=r;if(l.keepDefaultValues||(i=u),!l.keepValues){if(l.keepDirtyValues)for(let e of new Set([...s.mount,...function e(t,n,r="",i=[]){for(let o in t){let a=r?`${r}.${o}`:o,s=t[o];XR(s)&&XR(Xr(n,a))?e(s,n,a,i):i.push(a)}return i}(XF(i,o,void 0,f),n.dirtyFields)])){let t=Xr(n.dirtyFields,e),r=Xr(o,e),i=Xr(c,e);t&&!Xn(r)?Xo(c,e,r):t||Xn(i)||M(e,i)}else{if(YQ&&Xn(e))for(let e of s.mount){let t=Xr(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Xg(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(l.keepFieldsRef)for(let e of s.mount)M(e,Xr(c,e));else r={}}if(t.shouldUnregister){if(o=l.keepDefaultValues?Y0(i):{},l.keepFieldsRef)for(let e of s.mount)Xo(o,e,Xr(c,e))}else o=Y0(c);g.array.next({values:{...c}}),g.state.next({name:void 0,type:void 0,values:{...c}})}s={mount:l.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!p.isValid||!!l.keepIsValid||!!l.keepDirtyValues||!t.shouldUnregister&&!Xm(c),a.watch=!!t.shouldUnregister,a.keepIsValid=!!l.keepIsValid,a.action=!1,a.actionArrayLengths.clear(),l.keepErrors||(n.errors={}),g.state.next({submitCount:l.keepSubmitCount?n.submitCount:0,isDirty:!d&&(l.keepDirty?n.isDirty:l.keepValues?I():!!(l.keepDefaultValues&&!Xu(e,i
148))),isSubmitted:!!l.keepIsSubmitted&&n.isSubmitted,dirtyFields:d?{}:l.keepDirtyValues?l.keepDefaultValues&&o?XF(i,o,void 0,f):n.dirtyFields:l.keepDefaultValues&&e?XF(i,e,void 0,f):l.keepDirty?n.dirtyFields:{},touchedFields:l.keepTouched?n.touchedFields:{},errors:l.keepErrors?n.errors:{},isSubmitSuccessful:!!l.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:i})},Y=(e,n)=>G(Xi(e)?e(o):e,{...t.resetOptions,...n}),X=e=>{let{name:t,type:r,values:i,...o}=e;n={...n,...o}};g.state.subscribe({next:X});let J={control:{register:q,unregister:W,getFieldState:B,handleSubmit:Z,setError:$,_subscribe:H,_runSchema:O,_updateIsValidating:x,_focusError:K,_getWatch:P,_getDirty:I,_setValid:w,_setFieldArray:(e,i=[],s,l,u=!0,c=!0)=>{if(l&&s&&!t.disabled){a.action=!0;let t=Xr(r,e);if(a.actionArrayLengths.has(e)||a.actionArrayLengths.set(e,Array.isArray(t)?t.length:0),c&&Array.isArray(t)){let n=s(t,l.argA,l.argB);u&&Xo(r,e,n)}let o=Xr(n.errors,e);if(c&&Array.isArray(o)){var d;let t,r=o.root,i=s(o,l.argA,l.argB)||o;r&&(i.root=r),u&&Xo(n.errors,e,i),Xj(t=Xr(d=n.errors,e)).length||(null==t?void 0:t.root)||XT(d,e)}let f=Xr(n.touchedFields,e);if((p.touchedFields||m.touchedFields)&&c&&Array.isArray(f)){let t=s(f,l.argA,l.argB);u&&Xo(n.touchedFields,e,t)}(p.dirtyFields||m.dirtyFields)&&_(),g.state.next({name:e,isDirty:I(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Xo(o,e,i)},_setDisabledField:V,_setErrors:e=>{n.errors=e,g.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>Xj(Xr(a.mount?o:i,e,t.shouldUnregister?Xr(i,e,[]):[])),_reset:G,_resetDefaultValues:()=>Xi(t.defaultValues)&&t.defaultValues().then(e=>{Y(e,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of s.unMount){let t=Xr(r,e);t&&(t._f.refs?t._f.refs.every(e=>!XA(e)):!XA(t._f.ref))&&W(e)}s.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(g.state.next({disabled:e}),Xh(r,(t,n)=>{let i=Xr(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},_subjects:g,_proxyFormState:p,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(value){a=value},get _defaultValues(){return i},get _names(){return s},set _names(value){s=value},get _formState(){return n},get _options(){return t},set _options(value){d=Xd((t={...t,...value}).mode),f=Xd(t.reValidateMode)}},subscribe:e=>(a.mount=!0,m={...m,...e.formState},H({...e,formState:{...h,...e.formState}})),trigger:F,register:q,handleSubmit:Z,watch:(e,t)=>{if(Xi(e)){c++;let{unsubscribe:n}=g.state.subscribe({next:n=>"values"in n&&e(n.values||P(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,c--,n())}}}return P(e,t,!0)},setValue:M,setValues:(e,t={})=>{let r=Xi(e)?e(o):e;if(!Xu(o,r)){for(let e of(o={...o,...r},s.mount))XP(r,e)&&N(e,Xr(r,e),t,!0,!0);g.state.next({...n,name:void 0,type:void 0,...c?{values:o}:{}}),t.shouldValidate&&w()}},getValues:(e,t)=>{let r={...a.mount?o:i};return t&&(r=function e(t,n){let r={};for(let i in t)if(t.hasOwnProperty(i)){let o=t[i],a=n[i];if(o&&YY(o)&&a){let t=e(o,a);YY(t)&&(r[i]=t)}else t[i]&&(r[i]=a)}return r}(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),Xn(e)?r:Xc(e)?Xr(r,e):e.map(e=>Xr(r,e))},getErrors:e=>Xn(e)?{...n.errors}:Xc(e)?Xr(n.errors,e):e.map(e=>Xr(n.errors,e)),reset:Y,resetField:(e,t={})=>{Xr(r,e)&&(Xn(t.defaultValue)?M(e,Y0(Xr(i,e))):(M(e,t.defaultValue),Xo(i,e,Y0(t.defaultValue))),t.keepTouched||XT(n.touchedFields,e),t.keepDirty||(XT(n.dirtyFields,e),n.isDirty=t.defaultValue?I(e,Y0(Xr(i,e))):I()),t.keepError||(XT(n.errors,e),w()),g.state.next({...n}))},resetDefaultValues:(e,t={})=>{if(i=Y0(e),!t.keepDirty){let e=XF(i,o,void 0,r);n.dirtyFields=e,n.isDirty=!Xm(e)}t.keepIsValid||w(),g.state.next({...n,defaultValues:i})},clearErrors:U,unregister:W,setError:$,setFocus:(e,t={})=>{let n=Xr(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&Xi(e.select)&&e.select()})}},getFieldState:B};return{...J,formControl:J}}(e);o.current={...n,formState:l}}let c=o.current.control;c._options=e;let{resyncIfNeeded:d,snapshot:f}=(t=ei(ef).useRef(!1),n=ei(ef).useRef(!1),r=ei(ef).useRef(void 0),i=ei(ef).useRef(0),i.current++,!n.current,{resyncIfNeeded:ei(ef).useCallback((e,o,a)=>
148{if(e&&(t.current||n.current&&i.current>1)){let e=o();Xu(r.current,e)||a(e)}t.current=!0},[]),snapshot:ei(ef).useCallback((e,t)=>{e&&(r.current=Y0(t()))},[])});return Xa(()=>{let e=()=>({...c._formState,defaultValues:c._defaultValues});d(!0,e,u);let t=c._subscribe({formState:c._proxyFormState,callback:()=>u({...c._formState,defaultValues:c._defaultValues}),reRenderRoot:!0});return u(e=>({...e,isReady:!0})),c._formState.isReady=!0,()=>{t(),f(!0,e)}},[c,d,f]),ei(ef).useEffect(()=>c._disableForm(e.disabled),[c,e.disabled]),ei(ef).useEffect(()=>{e.mode&&(c._options.mode=e.mode),e.reValidateMode&&(c._options.reValidateMode=e.reValidateMode)},[c,e.mode,e.reValidateMode]),ei(ef).useEffect(()=>{e.errors&&(c._setErrors(e.errors),c._focusError())},[c,e.errors]),ei(ef).useEffect(()=>{e.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,e.shouldUnregister]),ei(ef).useEffect(()=>{if(c._proxyFormState.isDirty){let e=c._getDirty();e!==l.isDirty&&c._subjects.state.next({isDirty:e})}},[c,l.isDirty]),ei(ef).useEffect(()=>{var t;e.values&&!Xu(e.values,a.current)?(c._reset(e.values,{keepFieldsRef:!0,...c._options.resetOptions}),(null==(t=c._options.resetOptions)?void 0:t.keepIsValid)||c._setValid(),a.current=e.values,u(e=>({...e}))):c._resetDefaultValues()},[c,e.values]),ei(ef).useEffect(()=>{c._state.mount||(c._setValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),o.current.formState=ei(ef).useMemo(()=>((e,t,n,r=!0)=>{let i={};for(let o in e)Object.defineProperty(i,o,{get:()=>("all"!==t._proxyFormState[o]&&(t._proxyFormState[o]=!r||"all"),n&&(n[o]=!0),e[o])});return i})(l,c),[c,l]),o.current}({progressive:!0}),[r,i]=(0,ef.useState)("DEFAULT"),o=(0,ef.useId)();(0,ef.useEffect)(()=>{window.setTimeout(()=>{n("email")},0)},[n]);let a=async e=>{i("PENDING");let t=function(e){let t=[];for(let n in e){let r=encodeURIComponent(n),i=encodeURIComponent(e[n]);t.push(r+"="+i)}return t.join("&")}(e);try{let e=await window.fetch("https://buttondown.email/api/emails/embed-subscribe/streetmix",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});200===e.status?i("OK"):i("ERROR")}catch(e){i("ERROR")}};return(0,ec.jsx)(Zj,{children:n=>(0,ec.jsxs)("div",{className:"newsletter-dialog",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.newsletter.heading",defaultMessage:"Subscribe to our newsletter"})})}),(0,ec.jsxs)("div",{className:"dialog-content",children:[(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"dialogs.newsletter.description",defaultMessage:"We send occasional email updates through our newsletter, just several times a year. Sign up to ensure you don’t miss a thing!"})}),(0,ec.jsxs)("form",{onSubmit:t(a),children:[(0,ec.jsx)("label",{htmlFor:o,children:(0,ec.jsx)(TQ,{id:"dialogs.newsletter.email-label",defaultMessage:"Enter your email"})}),(0,ec.jsx)("input",{type:"email",id:o,placeholder:"[email protected]",autoComplete:"email",spellCheck:!1,...e("email",{required:!0})}),(0,ec.jsx)("input",{type:"hidden",value:"via app",...e("tag")}),(0,ec.jsx)("input",{type:"hidden",value:"1",...e("embed")}),"DEFAULT"===r&&(0,ec.jsx)("div",{className:"subscribe-buttons",children:(0,ec.jsx)(T4,{primary:!0,type:"submit",children:(0,ec.jsx)(TQ,{id:"dialogs.newsletter.subscribe",defaultMessage:"Subscribe"})})}),"PENDING"===r&&(0,ec.jsx)("div",{className:"subscribe-buttons",children:(0,ec.jsx)(T4,{disabled:!0,children:(0,ec.jsx)(TQ,{id:"dialogs.newsletter.subscribe-pending",defaultMessage:"Please wait..."})})}),"OK"===r&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"dialogs.newsletter.ok-message",defaultMessage:"<strong>Thank you! You’re almost subscribed.</strong> We’ve sent you an email to confirm your address. Click it and you’re in!",values:{strong:e=>(0,ec.jsx)("strong",{children:e})}})}),(0,ec.jsx)("div",{className:"subscribe-buttons",children:(0,ec.jsx)(T4,{onClick:n,children:(0,ec.jsx)(TQ,{id:"btn.close",defaultMessage:"Close"})})})]}),"ERROR"===r&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("p",{className:"subscribe-error",children:(0,ec.jsx)(TQ,{id:"dialogs.newsletter.error-message",defaultMessage:"Uh oh! Something went wrong with the subscription process. This might be a temporary system error. Please try again later!"})}),(0,ec.jsx)("div",{className:"subscribe-buttons",children:(0,ec.jsx)(T4,{primary:!0,type:"submit",children:(0,ec.jsx)(TQ,{id:"dialogs.newsletter.subscribe",defaultMessage:"Subscribe"})})})]})]})]})]})})},UPGRADE:function(){let e;kU(e=>e.user.signInData?.userId);let t=kU(e=>e.user.signInData?.details?.roles??[]),[n,r]=(0,ef.useState)(!1),[i,o]=(0,ef.useState)(),[a,s]=(0,ef.useState)();return e=t.includes(ei(d5).SUBSCRIBER_1.value)?(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"upgrade.hasTier1",defaultMessage:"Thanks for supporting Streetmix!"})}):n?(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"upgrade.loading",defaultMessage:"Loading..."})}):void 0!==i?(0,ec.jsxs)("p",{children:[(0,ec.jsx)(TQ,{id:"upgrade.error",defaultMessage:"We encountered an error:"}),i]}):void 0!==a?(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"upgrade.success",defaultMessage:"Thank y
148ou! Please refresh this page to see your upgrades."})}):(0,ec.jsx)(ec.Fragment,{children:(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"upgrade.body",defaultMessage:"Thank you for using Streetmix! For only $5/month, the Enthusiast Plan lets users support Streetmix while also gaining access to new experimental features. Plus your avatar gets a neat badge!"})})}),(0,ec.jsx)(Zj,{children:()=>(0,ec.jsxs)("div",{className:"upgrade-dialog",dir:"ltr",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"upgrade.title",defaultMessage:"Upgrade"})})}),e]})})},SENTIMENT_SURVEY:function(){return(0,ec.jsx)(Zj,{children:e=>(0,ec.jsxs)("div",{className:"sentiment-survey-about-dialog",children:[(0,ec.jsxs)("div",{className:"dialog-content",children:[(0,ec.jsx)("h3",{children:(0,ec.jsx)(TQ,{id:"sentiment.about-header",defaultMessage:"We want to understand how people feel about streets"})}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"sentiment.about-article.paragraph-1",defaultMessage:"Many streets are designed by civil engineers, but we believe that design should include everyone’s point of view. In partnership with the <a>New Urban Mobility Alliance</a> (NUMO), we’re conducting this one-question survey to do just that.",values:{a:e=>(0,ec.jsx)(z2,{href:"https://www.numo.global/",children:e})}})}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"sentiment.about-article.paragraph-2",defaultMessage:"We will analyze your responses so that we can infer which street characteristics will induce which feelings. In the future, we plan to incorporate these insights back into design recommendations for Streetmix users."})}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"sentiment.about-article.paragraph-3",defaultMessage:"You can only vote once per street, but you can encourage others to cast their own vote by sharing your streets or a random street with the link <a>https://streetmix.net/survey/</a>.",values:{a:e=>(0,ec.jsx)("a",{href:"https://streetmix.net/survey/",target:"_blank",rel:"noopener noreferrer",children:e})}})})]}),(0,ec.jsx)("button",{className:"dialog-primary-action",onClick:e,children:(0,ec.jsx)(TQ,{id:"btn.okay",defaultMessage:"Okay!"})})]})})},COASTMIX_TUTORIAL_COMPLETE:function(){return(0,ec.jsx)(Zj,{children:e=>(0,ec.jsxs)("div",{className:"dialog-coastmix-tutorial-complete",children:[(0,ec.jsx)("header",{children:(0,ec.jsx)("h2",{children:"Tutorial complete!"})}),(0,ec.jsxs)("div",{className:"dialog-content",children:[(0,ec.jsx)("p",{children:"Some common coastal resilience and waterfront adaptation strategies include seawalls, earthen berms, sandy dunes, and elevating buildings or infrastru
148cture, such as roads, walkways, and more. All of these strategies can block flooding from overtopping an area."}),(0,ec.jsx)("p",{children:"What do you want to do next?"}),(0,ec.jsxs)("p",{style:{display:"flex",margin:"0"},children:[(0,ec.jsx)(T4,{onClick:e,tertiary:!0,children:"Explore on my own"}),(0,ec.jsx)(Fh,{children:(0,ec.jsx)(T4,{onClick:e,primary:!0,children:"Practice scenario"})})]})]})]})})}};function XX(){let e=kU(e=>e.dialogs.name);if(null===e)return null;let t=XY[e];return(0,ec.jsx)(Zp,{fallbackComponent:(0,ec.jsx)(XG,{}),children:(0,ec.jsx)(t,{})})}function XJ({label:e,iconImage:t,iconStyle:n,isSelected:r=!1,isUnlocked:i=!1,onClick:o=()=>{},children:a}){let s=["sky-option-item"];r&&s.push("sky-option-selected");let l=!i&&!r;return(0,ec.jsx)(Te,{label:e,placement:"bottom",role:"label",children:(0,ec.jsxs)("button",{"aria-label":e,className:s.join(" "),style:n,onClick:function(e){o(e)},disabled:l,children:[l&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("div",{className:"sky-option-disabled-overlay"}),(0,ec.jsx)(C0,{name:"lock"})]}),a,void 0!==t&&(0,ec.jsx)("img",{src:pl.get(t)?.src,className:"sky-option-icon",alt:"",draggable:!1})]})})}function XQ({enabled:e}){let t=kU(e=>e.locale),n=kU(e=>e.street.skybox??"day"),r=kU(e=>e.flags.WEATHER_EFFECTS?.value??!1),i=kB(),o=TV(),a=Object.entries(ei(PI)).filter(([e,t])=>!1!==t.enabled).map(([e,t])=>PR(e));return(0,ec.jsxs)("div",{className:"sky-options-group",style:{marginTop:r?"0":void 0},children:[r&&(0,ec.jsx)("h4",{children:(0,ec.jsx)(TQ,{id:"tools.skybox.sky.heading",defaultMessage:"Sky"})}),(0,ec.jsx)(T0,{locale:t.locale,messages:t.segmentInfo,children:(0,ec.jsx)("div",{className:"sky-options",children:a.map(t=>{let{id:r,name:a,iconImage:s,iconStyle:l}=t,u=o.formatMessage({id:`skybox.${r}`,defaultMessage:a}),c=n===r||!n&&"day"===r;return(0,ec.jsx)(XJ,{label:u,iconImage:s,iconStyle:l,isSelected:c,isUnlocked:e,onClick:t=>{e&&i(dr(r))}},r)})})})]})}function X0({enabled:e}){let{weather:t}=kU(e=>e.street),n=kB(),r=TV();return(0,ec.jsxs)("div",{className:"sky-options-group",children:[(0,ec.jsx)("h4",{children:(0,ec.jsx)(TQ,{id:"tools.skybox.weather.heading",defaultMessage:"Weather"})}),(0,ec.jsxs)("div",{className:"sky-options",children:[(0,ec.jsx)(XJ,{label:r.formatMessage({id:"tools.skybox.weather.clear",defaultMessage:"Clear"}),isSelected:null===t,isUnlocked:!0,onClick:function(){n(di(null))},children:(0,ec.jsx)(C0,{name:"clear-day",size:"24"})}),(0,ec.jsx)(XJ,{label:r.formatMessage({id:"tools.skybox.weather.rain",defaultMessage:"Rain"}),isSelected:"rain"===t,isUnlocked:e,onClick:function(){e&&n(di("rain"))},children:(0,ec.jsx)(C0,{name:"rain",size:"24"})}),(0,ec.jsx)(XJ,{label:r.formatMessage({id:"tools.skybox.weather.snow",defaultMessage:"Snow"}),isSelected:"snow"===t,isUnlocked:e,onClick:function(){e&&n(di("snow"))},children:(0,ec.jsx)(C0,{name:"snow",size:"24"})})]})]})}function X1(){let e=kU(e=>e.ui.toolboxVisible??!1),t=kU(e=>e.user.isSubscriber??!1),n=kU(e=>e.flags.ENVIRONMENTS_UNLOCKED?.value??!1),r=kU(e=>e.flags.WEATHER_EFFECTS?.value??!1),i=kU(e=>e.flags.COASTMIX_MODE?.value??!1),o=kB(),a=t||n||i;return(0,ec.jsxs)(zq,{icon:"sun",title:(0,ec.jsx)(TQ,{id:"tools.skybox.heading",defaultMessage:"Environment"}),show:e,className:"sky-picker",handleClose:function(){o(dG())},children:[(0,ec.jsxs)(Tt,{children:[(0,ec.jsx)(XQ,{enabled:a}),r&&(0,ec.jsx)(X0,{enabled:a})]}),!a&&(0,ec.jsx)("div",{className:"sky-picker-upgrade",children:(0,ec.jsx)(Yu,{children:(0,ec.jsx)(TQ,{id:"plus.prompt.text",defaultMessage:"This feature is only available to Streetmix+ users.‎"})})})]})}function X2(){let e=kU(e=>e.gallery.userId),t=kB(),n=(0,ef.useCallback)(()=>{t(A7({userId:e}))},[e,t]);return(0,ec.jsxs)("div",{className:"gallery-error",children:[(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"gallery.fail",defaultMessage:"Failed to load the gallery."})}),(0,ec.jsx)(T4,{onClick:n,children:(0,ec.jsx)(TQ,{id:"btn.try-again",defaultMessage:"Try again"})})]})}function X3(){return(0,ec.jsx)("div",{className:"gallery-loading","aria-live":"polite","aria-busy":"true",children:(0,ec.jsxs)("div",{className:"gallery-loading-placeholders",children:[(0,ec.jsx)("div",{className:"gallery-loading-item"}),(0,ec.jsx)("div",{className:"gallery-loading-item"}),(0,ec.jsx)("div",{className:"gallery-loading-item"}),(0,ec.jsx)("div",{className:"gallery-loading-item"}),(0,ec.jsx)("div",{className:"gallery-loading-item"}),(0,ec.jsx)("div",{className:"gallery-loading-item"}),(0,ec.jsx)("div",{className:"gallery-loading-item"}),(0,ec.jsx)("div",{className:"gallery-loading-item"})]})})}function X4(e){let{street:t,showStreetOwner:n=!0,selected:r=!1,allowDelete:i=!1,doSelect:o,doDelete:a}=e,s=kU(e=>e.system.devicePixelRatio),{data:l}=hg(t.creatorId),[u,c]=(0,ef.useState)(!1),d=(0,ef.useRef)(null),f=TV();if((0,ef.useLayoutEffect)(()=>
148{if(null===d.current)return;let e=d.current.getContext("2d");if(null!==e)try{PN(e,t.data.street,{width:360,height:220,dpi:s,multiplier:.2,silhouette:!1,transparentSky:!1,labels:!1,streetName:!1,watermark:!1,locale:null})}catch(e){console.error(e),c(!0)}},[d,t,s]),void 0===t.data)return console.error("No street data!",t),null;let h=["gallery-street-item"];return r&&h.push("gallery-selected"),(0,ec.jsxs)("div",{className:h.join(" "),"data-street-name":t.name,children:[(0,ec.jsxs)("a",{href:A0(t),onClick:function(e){e.preventDefault(),e.shiftKey||e.ctrlKey||e.metaKey||o(t.id)},draggable:!1,children:[(0,ec.jsxs)("div",{className:"gallery-street-item-inner",children:[(0,ec.jsx)("div",{className:"gallery-street-item-canvas",children:u?(0,ec.jsx)("div",{className:"gallery-street-item-error",children:(0,ec.jsx)(TQ,{id:"gallery.thumbnail-error",defaultMessage:"Thumbnail image is not available."})}):(0,ec.jsx)("canvas",{width:180*s*2,height:110*s*2,ref:d})}),(0,ec.jsxs)("div",{className:"gallery-street-item-label",children:[n&&(0,ec.jsx)("div",{children:l?.displayName??t.creatorId??f.formatMessage({id:"users.anonymous",defaultMessage:"Anonymous"})}),(0,ec.jsx)("div",{className:"gallery-street-item-date",children:(0,ec.jsx)(HJ,{value:t.updatedAt})})]})]}),(0,ec.jsx)(Wt,{name:t.name})]}),i&&(0,ec.jsx)("button",{className:"gallery-street-item-delete",onClick:function(e){e.preventDefault(),e.stopPropagation();let n=f.formatMessage({id:"prompt.delete-street",defaultMessage:"Are you sure you want to permanently delete {streetName}? This cannot be undone."},{streetName:t.name??f.formatMessage({id:"street.default-name",defaultMessage:"Unnamed St"})});window.confirm(n)&&a(t.id)},title:f.formatMessage({id:"gallery.delete-street-tooltip",defaultMessage:"Delete street"}),children:(0,ec.jsx)(C0,{name:"trash"})})]})}function X5({user:e}){let t=kU(e=>e.gallery.streets),n=kU(e=>e.street.id??null),r=kU(e=>e.user.signedIn&&e.gallery.userId===e.user.signInData?.userId),i=kB(),o=(0,ef.useRef)(!0),[a,s]=(0,ef.useState)(n);function l(e){o.current=!1,s(e),A4(e)}function u(e){e===n&&(s(null),pm(3,!1)),uf(e),PL(e),hy.getState().settings.lastStreetId===e&&hy.dispatch(dI({lastStreetId:null,lastStreetCreatorId:null,lastStreetNamespacedId:null})),i(u5(e))}return(0,ef.useLayoutEffect)(()=>{if(void 0!==a){let e=document.querySelector(".gallery-selected");if(e){let t="nearest";!0===o.current&&(t="center",o.current=!1),e.scrollIntoView({behavior:"smooth",inline:t,block:"nearest"})}}},[a]),(0,ec.jsx)(Zr,{className:"streets",allowKeyboardScroll:!0,children:t.map(t=>(0,ec.jsx)(X4,{street:t,selected:a===t.id,doSelect:l,doDelete:u,showStreetOwner:!e||e?.id!==t.creatorId,allowDelete:r},t.id))})}function X6({isLoading:e}){let{contentDirection:t}=kU(e=>e.app),{streets:n,pagination:r}=kU(e=>e.gallery),i=kB(),o=TV(),{page:a,limit:s,total:l,hasNextPage:u,hasPreviousPage:c}=r,d=(a-1)*s+1,f=d+n.length-1;return r.totalPages<=1?(0,ec.jsx)(TQ,{id:"gallery.street-count",defaultMessage:"{count, plural, =0 {No streets yet} one {# street} other {# streets}}",values:{count:n.length}}):(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(TQ,{id:"gallery.pagination.count",defaultMessage:"{start}–{end} of {total} streets",values:{start:d,end:f,total:l}}),(0,ec.jsxs)(Tt,{children:[(0,ec.jsx)(Te,{label:o.formatMessage({id:"gallery.pagination.back",defaultMessage:"Previous page"}),children:(0,ec.jsx)(T4,{className:"gallery-pagination-button",disabled:!c,onClick:function(){c&&!e&&i(Re(a-1))},"aria-label":o.formatMessage({id:"gallery.pagination.back",defaultMessage:"Previous page"}),children:(0,ec.jsx)(C0,{name:"rtl"===t?"chevron-right":"chevron-left",size:"20"})})}),(0,ec.jsx)(Te,{label:o.formatMessage({id:"gallery.pagination.next",defaultMessage:"Next page"}),children:(0,ec.jsx)(T4,{className:"gallery-pagination-button",disabled:!u,onClick:function(){u&&!e&&i(Re(a+1))},"aria-label":o.formatMessage({id:"gallery.pagination.next",defaultMessage:"Next page"}),children:(0,ec.jsx)(C0,{name:"rtl"===t?"chevron-left":"chevron-right",size:"20"})})})]})]})}function X8(){let[e,t]=(0,ef.useState)(""),n=(0,ef.useRef)(null),r=TV();(0,ef.useEffect)(()=>{let t=window.setTimeout(()=>{console.log("Gallery search query:",e)},300);return()=>{window.clearTimeout(t)}},[e]);let i=r.formatMessage({id:"gallery.search.label",defaultMessage:"Find in streets"}),o=r.formatMessage({id:"gallery.search.clear",defaultMessage:"Clear"});return(0,ec.jsxs)("label",{className:"gallery-search-box",children:[(0,ec.jsx)(C0,{name:"search",size:"18","aria-hidden":"true"}),(0,ec.jsx)("input",{ref:n,type:"text","aria-label":i,placeholder:i,value:e,onCh
148ange:function(e){t(e.target.value)}}),(0,ec.jsx)("div",{className:"gallery-search-clear",children:e&&(0,ec.jsx)(Te,{label:o,children:(0,ec.jsx)("button",{type:"button","aria-label":o,onClick:function(){t(""),n.current?.focus()},children:(0,ec.jsx)(C0,{name:"close",size:"14"})})})})]})}function X9(){let e,{mode:t,userId:n}=kU(e=>e.gallery),r=kU(e=>e.flags.GALLERY_SEARCH.value??!1),{data:i,isError:o,isLoading:a}=hg(n);return e="loading"===t||a?(0,ec.jsx)(X3,{}):"error"===t||o?(0,ec.jsx)(X2,{}):"gallery"===t?(0,ec.jsx)(X5,{user:i}):null,(0,ec.jsxs)("div",{className:"gallery-panel",children:[(0,ec.jsxs)("div",{className:"gallery-header",children:[(0,ec.jsxs)("div",{className:"gallery-label",children:[i?.id!==void 0&&(0,ec.jsx)(Fw,{userId:i.id}),i?.displayName??i?.id??(0,ec.jsx)(TQ,{id:"gallery.all",defaultMessage:"All streets"})]}),r&&(0,ec.jsx)("div",{className:"gallery-search",children:(0,ec.jsx)(X8,{})}),(0,ec.jsx)("div",{className:"gallery-street-count",children:(0,ec.jsx)(X6,{isLoading:"loading"===t||a})})]}),(0,ec.jsx)("div",{className:"gallery-streets-container",children:e})]})}function X7({visible:e=!1,onClick:t}){return e?(0,ec.jsx)("div",{className:"gallery-shield","data-testid":"gallery-shield",onClick:t}):null}function Je(){let{visible:e,instant:t}=kU(e=>e.gallery),n=kB(),r=(0,ef.useCallback)(()=>{n(Rt())},[n]);return(0,ef.useEffect)(()=>(e?Rs("esc",r):Rl("esc",r),()=>{Rl("esc",r)}),[e,r]),(0,ef.useEffect)(()=>{e?(t&&document.body.classList.add("gallery-no-move-transition"),document.body.classList.add("gallery-visible"),t&&window.setTimeout(function(){document.body.classList.remove("gallery-no-move-transition")},0)):(t&&document.body.classList.add("gallery-no-move-transition"),document.body.classList.remove("gallery-visible"),t&&window.setTimeout(function(){document.body.classList.remove("gallery-no-move-transition")},0))},[e,t]),(0,ec.jsxs)("div",{className:"gallery-container","aria-hidden":!e,children:[(0,ec.jsx)(X9,{}),(0,ec.jsx)(X7,{visible:e,onClick:r})]})}var ef=(el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"));let Jt=(0,ef.memo)(function({actualWidth:e,type:t,variantString:n,randSeed:r,elevation:i,slope:o}){let[a,s]=(0,ef.useState)(!0),l=(0,ef.useRef)(null),u=kU(e=>e.system.devicePixelRatio),c=kU(e=>e.flags.DEBUG_SEGMENT_CANVAS_RECTANGLES.value);function d(a){let s=a.getContext("2d");s&&(s.clearRect(0,0,a.width,a.height),Ae(s,t,n,e,0,555,i,o,r,1,u))}(0,ef.useEffect)(()=>{l.current&&(d(l.current),window.setTimeout(()=>{l.current&&a&&(d(l.current),s(!1))},0))},[n,e,i,c,o]);let f=P9(cg(t,n),e),h=f.right-f.left,p=new gf(h>
148e?h:e).times(cI),m=p.times(u).round().toNumber(),g=600*u,y={width:p.round().toNumber(),height:600,left:new gf(f.left).times(cI).round().toNumber()};return(0,ec.jsx)("canvas",{className:"segment-image",ref:l,width:m,height:g,style:y})});function Jn(){let e=(0,ef.useRef)(null),{item:t,type:n,currentOffset:r,isDragging:i}=N1(e=>({item:e.getItem(),type:e.getItemType(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()})),o=k$(r);return(0,ef.useEffect)(()=>{if(i&&t&&"id"in t){let i,a=((i=null===r||null===o?0:r.x-o.x)>20?i=20:i<-20&&(i=-20),i);!function(e,t,n,r,i=0){if(null===r||null===e)return;let{x:o,y:a}=r;t===p_&&(o-=4*n.actualWidth,a+=-490),e.style.transform=`translate(${o}px, ${a}px) rotateZ(${i}deg)`}(e.current,n,t,r,a)}},[i,r,o,n,t]),(0,ec.jsx)("div",{className:"segment-drag-layer",children:i&&t&&"id"in t&&(0,ec.jsx)("div",{className:"floating segment",ref:e,children:(0,ec.jsx)(Jt,{randSeed:t.id,...t})})})}function Jr(e){let{item:t,setRef:n,handleClose:r,handleAction:i=()=>{},className:o,children:a}=e,{method:s,title:l,action:u}=t,c=["toast"];return void 0!==s&&c.push("toast-"+s),void 0!==o&&c.push(o),(0,ec.jsx)("div",{className:c.join(" "),ref:n,children:(0,ec.jsxs)("div",{className:"toast-content",children:[(0,ec.jsx)(zV,{onClick:r}),(0,ec.jsxs)("div",{className:"toast-body",children:[void 0!==l&&(0,ec.jsx)("h3",{children:l}),a??("message"in t&&(0,ec.jsx)("p",{className:"toast-message",children:t.message}))]}),void 0!==u&&(0,ec.jsx)("div",{className:"toast-action",children:(0,ec.jsx)("button",{onClick:i,children:u})})]})})}function Ji(e){let{item:t,setRef:n,handleClose:r}=e,i=kB(),o=TV();return(0,ec.jsx)(Jr,{setRef:n,handleClose:r,handleAction:function(e){i(Rn()),r(e)},item:{...t,action:t.action??o.formatMessage({id:"btn.undo",defaultMessage:"Undo"})}})}function Jo(e){let{item:t,setRef:n,handleClose:r}=e,i=TV();return(0,ec.jsx)(Jr,{setRef:n,handleClose:r,handleAction:function(e){wW(),r(e)},item:{...t,action:t.action??i.formatMessage({id:"menu.item.sign-in",defaultMessage:"Sign in"})}})}function Ja(e){let{item:t,setRef:n,handleClose:r}=e,i=TV();return(0,ef.useEffect)(()=>(window.addEventListener("online",r),()=>{window.removeEventListener("online",r)})),(0,ec.jsx)(Jr,{setRef:n,handleClose:r,handleAction:r,item:{...t,action:t.action??i.formatMessage({id:"btn.dismiss",defaultMessage:"Dismiss"})},children:(0,ec.jsx)(TQ,{id:"msg.no-connection",defaultMessage:"Streetmix is having trouble connecting to the Internet."})})}var ef=(el("8NFma"),el("8NFma"),el("8NFma")),Js={};function Jl(e){let{item:t,setRef:n,handleClose:r}=e,i=kU(e=>e.user.signedIn),o=TV();return(0,ef.useEffect)(()=>{i&&r()},[i,r]),(0,ef.useEffect)(()=>(document.monetization?.addEventListener("monetizationstop",r),()=>{document.monetization?.removeEventListener("monetizationstop",r)})),(0,ec.jsxs)(Jr,{setRef:n,handleClose:r,handleAction:function(e){wW(),r(e)},className:"toast-web-monetization",item:{...t,method:"success",action:o.formatMessage({id:"menu.item.sign-in",defaultMessage:"Sign in"})},children:[(0,ec.jsxs)("div",{className:"toast-icon-header",children:[(0,ec.jsx)("img",{src:ei(Js),alt:"Web Monetization icon",className:"wm-icon"}),(0,ec.jsx)("h3",{children:(0,ec.jsx)(TQ,{id:"plus.web-monetization.thanks",defaultMessage:"Thanks for your support!‎"})})]}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"plus.web-monetization.not-signed-in",defaultMessage:"Your browser is sending Web Monetization payments. Sign in now to access your Streetmix+ benefits!‎"})}),(0,ec.jsxs)("p",{children:[(0,ec.jsx)("strong",{children:"Deprecation warning:"})," The Coil plugin has been discontinued since February 2, 2023. We encourage all Coil plugin users to migrate to another service for Streetmix+ benefits.",(0,ec.jsx)(z2,{href:"https://strt.mx/plus#coil",children:"Learn more."})]})]})}function Ju(e){let{item:t,setRef:n,handleClose:r}=e,i=TV();return(0,ec.jsxs)(Jr,{setRef:n,handleClose:r,handleAction:function(e){window.open("https://docs.streetmix.net/user-guide/streetmix-plus","_blank"),r(e)},className:"toast-web-monetization",item:{...t,method:"success",action:i.formatMessage({id:"plus.web-monetization.learn-more",defaultMessage:"Learn more"})},children:[(0,ec.jsxs)("div",{className:"toast-icon-header",children:[(0,ec.jsx)("img",{src:ei(Js),alt:"Web Monetization icon",className:"wm-icon"}),(0,ec.jsx)("h3",{children:(0,ec.jsx)(TQ,{id:"plus.web-monetization.thanks",defaultMessage:"Thanks for your support!‎"})})]}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"plus.web-monetization.signed-in",defaultMessage:"Your Web Monetization subscription gives you full access to Streetmix+ benefits.‎"})}),(0,ec.jsxs)("p",{children:[(0,ec.jsx)("strong",{children:"Deprecation warning:"})," The Coil plugin has been discontinued since February 2, 2023. We encourage all Coil plugin users to migrate to another service for Streetmix+ benefits.",(0,ec.jsx)(z2,{href:"https://strt.mx/plus#coil",children:"Learn more."})]})]})}Js=D("9u707");let Jc={tension:488,friction:36,precision:.01};function Jd(){let[e]=(0,ef.useState)(()=>new WeakMap),[t]=(0,ef.useState)(()=>new WeakMap),n=kU(e=>e.toasts),r=kU(e=>e.app.contentDirection),i=kU(e=>e.flags.TOAST_LIFE_BAR?.value??!1),o=kB(),a=ze(n.length>=5?n.slice(n.length-5):n,{from:{opacity:0,height:0,x:"rtl"===r?-300:300,life:"100%"},keys:e=>
148e.timestamp,enter:n=>async(r,i)=>{t.set(n,i),await r({height:e.get(n).getBoundingClientRect().height+10}),await r({opacity:1,x:0}),await r({life:"0%"})},leave:[{opacity:0,x:"rtl"===r?-300:300},{height:0}],onRest:(e,t,n)=>{n&&o(dF(n.timestamp))},config:(e,t,n)=>t=>"enter"===n&&"life"===t?{duration:e.duration??6e3}:Jc});return(0,ec.jsx)("div",{className:"toast-container",children:a(({life:n,...r},o)=>{let a;function s(t){null!==t&&e.set(o,t)}function l(e){void 0!==e&&e.stopPropagation(),t.has(o)&&"0%"!==n.get()&&t.get(o)()}if("component"in o)switch(o.component){case"TOAST_UNDO":a=(0,ec.jsx)(Ji,{setRef:s,handleClose:l,item:o});break;case"TOAST_SIGN_IN":a=(0,ec.jsx)(Jo,{setRef:s,handleClose:l,item:o});break;case"TOAST_WEB_MONETIZATION":a=(0,ec.jsx)(Jl,{setRef:s,handleClose:l,item:o});break;case"TOAST_WEB_MONETIZATION_SUCCESS":a=(0,ec.jsx)(Ju,{setRef:s,handleClose:l,item:o});break;case"TOAST_NO_CONNECTION":a=(0,ec.jsx)(Ja,{setRef:s,handleClose:l,item:o})}else a=(0,ec.jsx)(Jr,{setRef:s,handleClose:l,item:o});return(0,ec.jsxs)(zy.div,{style:r,children:[a,i&&(0,ec.jsx)(zy.div,{className:"toast-lifebar",style:{right:n}})]})})})}function Jf({children:e}){return(0,ec.jsx)(j8,{children:e})}var ef=(el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"));function Jh({streetId:e}){let[t,n]=(0,ef.useState)(""),[r,i]=(0,ef.useState)(!1),[o,a]=(0,ef.useState)(!1),s=TV();async function l(){i(!0),await uy({id:e,comment:t}),window.setTimeout(()=>{a(!0)},1e3)}return(0,ec.jsxs)("div",{className:"sentiment-survey-done-comment",children:[(0,ec.jsx)("input",{type:"text",value:t,maxLength:280,onChange:e=>{n(e.target.value)},placeholder:s.formatMessage({id:"sentiment.comment.example",defaultMessage:"(for instance, “I liked the trees.”)"})}),o?(0,ec.jsx)(TQ,{id:"sentiment.comment.thanks",defaultMessage:"Got it!"}):r?(0,ec.jsx)(F_,{size:"small"}):(0,ec.jsx)(T4,{secondary:!0,onClick:l,children:(0,ec.jsx)(TQ,{id:"sentiment.comment.submit",defaultMessage:"Submit"})})]})}function Jp({label:e,imgSrc:t,className:n}){let r=TV().formatMessage({id:e.localizationKey,defaultMessage:e.defaultMessage});return(0,ec.jsx)("div",{className:`sentiment-icon ${n}`,children:(0,ec.jsx)("img",{src:t,draggable:"false",alt:r})})}var Jm={};Jm=D("euPyy");var Jg={};Jg=D("ewyxH");var Jy={};Jy=D("j5lsi");var Jv={};Jv=D("727pi");var Jb={};Jb=D("8vhAO");let Jw=[{score:-1,label:{localizationKey:"sentiment.answer.rating-1",defaultMessage:"Absolutely not"},imgSrc:ei(Jm),className:"sentiment-1"},{score:-.5,label:{localizationKey:"sentiment.answer.rating-2",defaultMessage:"Not very much"},imgSrc:ei(Jg),className:"sentiment-2"},{score:0,label:{localizationKey:"sentiment.answer.rating-3",defaultMessage:"It’s so-so"},imgSrc:ei(Jy),className:"sentiment-3"},{score:.5,label:{localizationKey:"sentiment.answer.rating-4",defaultMessage:"A little bit"},imgSrc:ei(Jv),className:"sentiment-4"},{score:1,label:{localizationKey:"sentiment.answer.rating-5",defaultMessage:"Quite a lot"},imgSrc:ei(Jb),className:"sentiment-5"}];function Jx({score:e,handleClose:t,streetId:n}){let r=(0,ef.useRef)(null);if((0,ef.useEffect)(()=>{void 0!==e&&window.setTimeout(()=>{r.current&&(r.current.classList.add("visible"),window.setTimeout(()=>{r.current&&r.current.querySelector("div")?.classList.add("visible")},600))},1200)},[e]),void 0===e)return null;let i=function(e){let t=Jw.find(t=>t.score===e);if(void 0===t)throw TypeError("Score data is undefined");return t}(e);return(0,ec.jsx)("div",{className:"sentiment-survey-done-container",ref:r,children:(0,ec.jsxs)("div",{className:"sentiment-survey-done-content",children:[(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"sentiment.thank-you",defaultMessage:"Thank you!"})}),(0,ec.jsxs)("div",{className:"sentiment-survey-done-text",children:[(0,ec.jsx)("div",{children:(0,ec.jsx)(Jp,{...i})}),(0,ec.jsxs)("div",{children:[(0,ec.jsx)("p",{children:(0,ec.jsx)("strong",{children:(0,ec.jsx)(TQ,{id:"sentiment.prompt.joyful",defaultMessage:"Would you say this street feels <em>joyful</em>?",values:{em:e=>(0,ec.jsx)("em",{children:e})}})})}),(0,ec.jsxs)("p",{children:[(0,ec.jsx)(TQ,{id:"sentiment.done.response",defaultMessage:"You responded {score}.",values:{score:(0,ec.jsx)("em",{children:(0,ec.jsx)(TQ,{id:i.label.localizationKey,defaultMessage:i.label.defaultMessage})})}})," ",(0,ec.jsx)(TQ,{id:"sentiment.comment.prompt",defaultMessage:"Tell us why:"})]}),(0,ec.jsx)(Jh,{streetId:n})]})]}),(0,ec.jsxs)("div",{className:"sentiment-survey-done-buttons",children:[(0,ec.jsx)(T4,{primary:!0,type:"link",href:"/survey",children:(0,ec.jsx)(TQ,{id:"sentiment.done.vote-another",defaultMessage:"Vote on another!"})}),(0,ec.jsx)(T4,{tertiary:!0,onClick:t,children:(0,ec.jsx)(TQ,{id:"sentiment.done.really-done",defaultMessage:"All done!"})})]})]})})}function J_({handleVote:e,selectedScore:t}){let n=TV();return(0,ec.jsx)(Tt,{children:Jw.map(r=>{let i=n.formatMessage({id:r.label.localizationKey,defaultMessage:r.label.defaultMessage});return(0,ec.jsx)(Te,{label:i,placement:"bottom",role:"label",children:(0,ec.jsx)("button",{className:["sentiment-button",t===r.score?"sentiment-selected":""].join(" ").trim(),onClick:()=>{e(r.score)},disabled:null!==t,children:(0,ec.jsx)(Jp,{...r})})},r.score)})})}function Jk({visible:e=!1,onClose:t=()=>{},handleVote:n,streetId:r}){let[i,o]=(0,ef.useState)(),a=kU(e=>e.user.signedIn),s=kB(),l=ze(e,{from:{y:-50,opacity:0}
148,enter:{y:0,opacity:1},leave:{y:-50,opacity:0},config:Lw}),u=["sentiment-survey-container"];function c(e){a&&(o(e),n(e))}function d(){s(uW("SENTIMENT_SURVEY"))}function f(){wW()}return e&&u.push("sentiment-survey-visible"),(0,ec.jsxs)("div",{className:u.join(" "),children:[(0,ec.jsx)("div",{className:"sentiment-survey-background"}),l((e,n)=>n&&(0,ec.jsxs)(zy.div,{className:"sentiment-survey-dialog",style:e,children:[(0,ec.jsx)(zV,{onClick:t}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"sentiment.prompt.intro",defaultMessage:"<strong>Pardon the interruption.</strong> We’d love your feedback on this street.",values:{strong:e=>(0,ec.jsx)("strong",{children:e})}})}),(0,ec.jsx)("h2",{children:(0,ec.jsx)(TQ,{id:"sentiment.prompt.joyful",defaultMessage:"Would you say this street feels <em>joyful</em>?",values:{em:e=>(0,ec.jsx)("em",{children:e})}})}),(0,ec.jsx)("sub",{children:a?(0,ec.jsx)(TQ,{id:"sentiment.prompt.choose-one",defaultMessage:"(choose one)"}):(0,ec.jsx)(TQ,{id:"sentiment.sign-in-prompt",defaultMessage:"Please sign in now to make your voice heard."})}),(0,ec.jsxs)("div",{className:"sentiment-survey-buttons",children:[(0,ec.jsx)(J_,{handleVote:c,selectedScore:i}),!a&&(0,ec.jsx)("div",{className:"sentiment-survey-sign-in-prompt",children:(0,ec.jsx)(T4,{primary:!0,onClick:f,children:(0,ec.jsx)(TQ,{id:"menu.item.sign-in",defaultMessage:"Sign in"})})})]}),(0,ec.jsx)("p",{className:"sentiment-survey-about-link",children:(0,ec.jsx)("button",{className:"link-like",onClick:d,children:(0,ec.jsx)(TQ,{id:"sentiment.about-link",defaultMessage:"Why am I seeing this?"})})}),(0,ec.jsx)(Jx,{score:i,handleClose:t,streetId:r})]}))]})}function JS(){let[e,t]=(0,ef.useState)(!1),[n,r]=(0,ef.useState)(!1),[i,o]=(0,ef.useState)(),a=kU(e=>e.street),s=kU(e=>e.flags.SENTIMENT_SURVEY?.value&&["en","es-419"].includes(e.locale.locale)&&e.user.signInData?.userId!==a.creatorId&&!e.gallery.visible&&null!==a.location&&a.editCount>10&&0===a.remainingWidth);async function l(e){try{let t=await ug({score:e,data:a,streetId:a.id});200===t.status&&o(t.data.ballot.id)}catch(e){console.error(e)}}return(0,ef.useEffect)(()=>{n||window.setTimeout(()=>{t(!0)},5e3)},[n]),s&&void 0!==i?(0,ec.jsx)(Jk,{visible:e,onClose:function(){r(!0),t(!1)},handleVote:l,streetId:i}):null}function JE(){let e=(0,ef.useRef)(null),t=(0,ef.useRef)(null),[n,r]=(0,ef.useState)(!1),i=kU(e=>e.settings),o=kU(e=>e.street),a=kU(e=>e.flags),s=kU(e=>e.history),l=kU(e=>e.user);function u(e){let t=e.target;"D"!==e.key||/input|textarea/i.test(t?.tagName)||r(!0)}function c(e){("Esc"===e.key||"Escape"===e.key)&&r(!1)}return((0,ef.useEffect)(()=>(window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)})),(0,ef.useEffect)(()=>(n?window.addEventListener("keydown",c):window.removeEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}),[n]),(0,ef.useLayoutEffect)(()=>{null!==t.current&&n&&(t.current.value=JSON.stringify({street:o,user:l,settings:i,flags:a,history:s},null,2),t.current.focus(),t.current.select(),window.setTimeout(()=>{t.current&&(t.current.scrollTop=0)},0))},[n,i,o,a,s,l]),(0,ef.useLayoutEffect)(()=>{n||j9()},[n]),ZO(e,()=>{r(!1)}),n)?(0,ec.jsx)("div",{className:"debug-container",children:(0,ec.jsxs)("div",{className:"debug-panel",ref:e,children:[(0,ec.jsx)("h2",{children:"Debug"}),(0,ec.jsx)("textarea",{readOnly:!0,wrap:"off",ref:t})]})}):null}function JO(){let e=(0,ef.useRef)(null),t=(0,ef.useRef)(-1),n=(0,ef.useRef)(-1),[r,i]=(0,ef.useState)(!1),[o,a]=(0,ef.useState)("load"),[s,l]=(0,ef.useState)(),[u,c]=(0,ef.useState)(!1),[d,f]=(0,ef.useState)(!1),[h,p]=(0,ef.useState)(!1),m=(0,ef.useCallback)(()=>{window.clearTimeout(t.current),window.clearTimeout(n.current)},[]),g=(0,ef.useCallback)(()=>{m(),i(!1),l(void 0),c(!1),f(!1),p(!1)},[m]),y=(0,ef.useCallback)(e=>{m(),i(!0),a(e.detail?.mode??"load"),t.current=window.setTimeout(()=>{f(!0)},800),n.current=window.setTimeout(()=>{l("too-slow")},1e4)},[m]),v=(0,ef.useCallback)(e=>{m(),i(!0),c(!0),l("try-again"),p(e.detail?.showCancel??!0)},[m]),b=(0,ef.useCallback)(e=>{l(void 0),p(!1),wC()},[]),w=(0,ef.useCallback)(e=>{g(),wS&&wS(),wI()},[g]);(0,ef.useEffect)(()=>(window.addEventListener("stmx:show_blocking_shield",y),window.addEventListener("stmx:darken_blocking_shield",v),window.addEventListener("stmx:hide_blocking_shield",g),()=>{window.removeEventListener("stmx:show_blocking_shield",y),window.removeEventListener("stmx:darken_blocking_shield",v),window.removeEventListener("stmx:hide_blocking_shield",g),m()}),[y,v,g,m]);let x=["blocking-shield"];return r||x.push("hidden"),u&&x.push("darken-immediately"),d&&x.push("darken"),(0,ec.jsxs)("div",{className:x.join(" "),ref:e,hidden:!r,children:[(0,ec.jsxs)("h1",{children:["load"===o&&(0,ec.jsx)(TQ,{id:"msg.loading",defaultMessage:"Loading…"}),"remix"===o&&(0,ec.jsx)(TQ,{id:"msg.remixing",defaultMessage:"Remixing…"})]}),"try-again"===s&&(0,ec.jsxs)("div",{className:"error-content",children:[(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"msg.no-connection",defaultMessage:"Streetmix is having trouble connecting to the Internet."})}),(0,ec.jsx)(T4,{primary:!0,onClick:b,children:(0,ec.jsx)(TQ,{id:"bt
148n.try-again",defaultMessage:"Try again"})}),h&&(0,ec.jsx)(T4,{onClick:w,children:(0,ec.jsx)(TQ,{id:"btn.cancel",defaultMessage:"Cancel"})})]}),"too-slow"===s&&(0,ec.jsxs)("div",{className:"error-content",children:[(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"msg.slow-connection-1",defaultMessage:"Streetmix wasn't able to connect to the Internet in awhile now."})}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"msg.slow-connection-2",defaultMessage:"You might want to reload the page and try again. Please note you might lose the latest change to the street. Sorry!"})}),(0,ec.jsx)(T4,{onClick:wg,children:(0,ec.jsx)(TQ,{id:"btn.reload",defaultMessage:"Reload"})})]})]})}function Jj(){let e,t=kU(e=>e.errors.errorType),n="",r="",i=(0,ec.jsx)(T4,{primary:!0,onClick:wy,children:(0,ec.jsx)(TQ,{id:"error.button.return",defaultMessage:"Return to Streetmix"})}),o=(0,ec.jsx)(T4,{primary:!0,onClick:wg,children:(0,ec.jsx)(TQ,{id:"error.button.reload",defaultMessage:"Reload the page"})}),a=(0,ec.jsx)(T4,{primary:!0,onClick:wv,children:(0,ec.jsx)(TQ,{id:"error.button.try-again",defaultMessage:"Try again"})}),s=(0,ec.jsx)(T4,{primary:!0,onClick:wW,children:(0,ec.jsx)(TQ,{id:"menu.item.sign-in",defaultMessage:"Sign in"})}),l=(0,ec.jsx)(TQ,{id:"error.please-try-again-contact-us",defaultMessage:"Please try again later. If you still need help, please <a>contact us</a>.",values:{a:e=>(0,ec.jsx)(z2,{href:"https://docs.streetmix.net/community",children:e})}}),u=(0,ec.jsx)("p",{className:"error-help-link",children:(0,ec.jsx)(z2,{href:"https://docs.streetmix.net/user-guide/support/troubleshooting",children:(0,ec.jsx)(TQ,{id:"error.
148need-help-link",defaultMessage:"Need help?"})})});switch(t){case 1:e=(0,ec.jsx)(TQ,{id:"error.page-not-found-title",defaultMessage:"Page not found."}),n=(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"error.page-not-found-description",defaultMessage:"Oh, boy. There is no page with this address!"})}),r=i;break;case 2:e=(0,ec.jsx)(TQ,{id:"error.sign-out-title",defaultMessage:"You are now signed out."}),r=i;break;case 3:e=(0,ec.jsx)(TQ,{id:"msg.no-street",defaultMessage:"No street selected."});break;case 22:e=(0,ec.jsx)(TQ,{id:"msg.having-trouble",defaultMessage:"Having trouble…"}),n=(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"error.gallery-street-failure-description",defaultMessage:"We’re having trouble loading this street."})});break;case 5:e=(0,ec.jsx)(TQ,{id:"error.reload-sign-out-title",defaultMessage:"You signed out in another window."}),n=(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"error.please-reload",defaultMessage:"Please reload this page to return to Streetmix."})}),r=o;break;case 4:e=(0,ec.jsx)(TQ,{id:"error.reload-sign-in-title",defaultMessage:"You signed in in another window."}),n=(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"error.please-reload",defaultMessage:"Please reload this page to return to Streetmix."})}),r=o;break;case 24:e=(0,ec.jsx)(TQ,{id:"error.auth-expired",defaultMessage:"We automatically signed you out due to inactivity."}),n=(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"error.sign-in-again",defaultMessage:"Please sign in again."})}),r=(0,ec.jsxs)(ec.Fragment,{children:[s," ",i]});break;case 6:e=(0,ec.jsx)(TQ,{id:"error.street-deleted-elsewhere-title",defaultMessage:"This street has been deleted elsewhere."}),n=(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"error.street-deleted-elsewhere-description",defaultMessage:"This street has been deleted in another browser."})}),r=i;break;case 7:e=(0,ec.jsx)(TQ,{id:"msg.having-trouble",defaultMessage:"Having trouble…"}),n=(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"msg.trouble-loading",defaultMessage:"We’re having trouble loading Streetmix."})}),r=(0,ec.jsxs)(ec.Fragment,{children:[a,u]});break;case 19:e=(0,ec.jsx)(TQ,{id:"msg.having-trouble",defaultMessage:"Having trouble…"}),n=(0,ec.jsxs)("p",{children:[(0,ec.jsx)(TQ,{id:"msg.trouble-loading",defaultMessage:"We’re having trouble loading Streetmix."}),(0,ec.jsx)("br",{}),(0,ec.jsx)(TQ,{id:"error.error-code",defaultMessage:"(Error {code}.)",values:{code:"15A"}})]}),r=(0,ec.jsxs)(ec.Fragment,{children:[a,u]});break;case 20:e=(0,ec.jsx)(TQ,{id:"msg.having-trouble",defaultMessage:"Having trouble…"}),n=(0,ec.jsxs)("p",{children:[(0,ec.jsx)(TQ,{id:"msg.trouble-loading",defaultMessage:"We’re having trouble loading Streetmix."}),(0,ec.jsx)("br",{}),(0,ec.jsx)(TQ,{id:"error.error-code",defaultMessage:"(Error {code}.)",values:{code:"RM1"}})]}),r=(0,ec.jsxs)(ec.Fragment,{children:[a,u]});break;case 21:e=(0,ec.jsx)(TQ,{id:"msg.having-trouble",defaultMessage:"Having trouble…"}),n=(0,ec.jsxs)("p",{children:[(0,ec.jsx)(TQ,{id:"msg.trouble-loading",defaultMessage:"We’re having trouble loading Streetmix."}),(0,ec.jsx)("br",{}),(0,ec.jsx)(TQ,{id:"error.error-code",defaultMessage:"(Error {code}.)",values:{code:"9B"}})]}),r=(0,ec.jsxs)(ec.Fragment,{children:[a,u]});break;case 14:e=(0,ec.jsx)(TQ,{id:"error.unsupported-browser-title",defaultMessage:"Streetmix doesn’t work on your browser."}),n=(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"error.unsupported-browser-description",defaultMessage:"Sorry about that. You might want to try <chrome_link>Chrome</chrome_link>, <firefox_link>Firefox</firefox_link>, <edge_link>Microsoft Edge</edge_link>, or Safari.",values:{chrome_link:e=>(0,ec.jsx)(z2,{href:"https://www.google.com/chrome",children:e}),firefox_link:e=>(0,ec.jsx)(z2,{href:"https://www.mozilla.org/firefox",children:e}),edge_link:e=>(0,ec.jsx)(z2,{href:"https://www.microsoft.com/en-us/windows/microsoft-edge",children:e})}})}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"error.unsupported-browser-internet-explorer",defaultMessage:"Are you on Internet Explorer? <a>Find out more.</a>",values:{a:e=>(0,ec.jsx)(z2,{href:"https://docs.streetmix.net/user-guide/support/faq#internet-explorer",children:e})}})}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"error.unsupported-browser-contact-us",defaultMessage:"If you think your browser should be supported, please <a>contact us</a>.",values:{a:e=>(0,ec.jsx)(z2,{href:"https://docs.streetmix.net/community",children:e})}})})]});break;default:e=(0,ec.jsx)(TQ,{id:"error.generic-error-title",defaultMessage:"Something went wrong."}),n=(0,ec.jsxs)("p",{children:[(0,ec.jsx)(TQ,{id:"error.generic-error-description",defaultMessage:"We’re sorry – something went wrong."})," ",l]}),r=i}return null!==t?(0,ec.jsx)("div",{id:"error",children:(0,ec.jsxs)("div",{className:"error-content",children:[3!==t&&(0,ec.jsx)("div",{className:"streetmix-logo"}),(0,ec.jsxs)("div",{className:"error-text",children:[(0,ec.jsx)("h1",{children:e}),n]}),r]})}):null}function JT(){let e=kU(({ui:e})=>e.resizeGuidesVisible),t=kU(({ui:e})=>e.activeSegment),n=kU(({street:e})=>null!==t?e.segments[t]:null),r=kU(({street:e})=>e.units),i=kU(({street:e})=>e.remainingWidth),o=(0,ef.useMemo)(()=>(function(e,t,n,r,i){let o;if(!e||null===t||null===n)return{};let a=cg(n.type,n.variantString),s=void 0!==a.minWidth?cO(a.minWidth,i):void 0,l=void 0!==a.maxWidth?cO(a.maxWidth,i):void 0,u=r+n.width,c=u>0&&(void 0===s&&u>=.25||void 0!==s&&u>=s)&&(void 0===l||u<=l),d=function(e){let t;if(e===cA)t=document.querySelectorAll(".street-section-boundary")[0];else if(e===cR)t=document.querySelectorAll(".street-section-boundary")[1];else{let n=document.getElementById("street-section-editable").querySelectorAll(".segment");t=n?.[e]}return t}(t),[f]=(o=new DOMMatrixReadOnly(window.getComputedStyle(d).transform),[d.offsetLeft+o.m41,d.offsetTop+o.m42]);return{style:{left:f+d.offsetWidth/2},minGuideStyle:JC(s),maxGuideStyle:c?JC(u):JC(l)}})(e,t,n,i,r),[e,t]);return e&&null!==n?(0,ec.jsxs)("div",{className:"resize-guides",style:o.style,children:[o.minGuideStyle&&(0,ec.jsxs)("div",{className:"resize-guide resize-guide-min",style:o.minGuideStyle,children:[(0,ec.jsxs)("div",{className:"resize-guide-min-before",children:["« ",(0,ec.jsx)(TQ,{id:"segments.resize.min",defaultMessage:"Min"})]}),(0,ec.jsxs)("div",{className:"resize-guide-min-after",children:[(0,ec.jsx)(TQ,{id:"segments.resize.min",defaultMessage:"Min"})," »"]})]}),o.maxGuideStyle&&(0,ec.jsxs)("div",{className:"resize-guide resize-guide-max",style:o.maxGuideStyle,children:[(0,ec.jsxs)("div",{className:"resize-guide-max-before",children:[(0,ec.jsx)(TQ,{id:"segments.resize.max",defaultMessage:"Max"})," »"]}),(0,ec.jsxs)("div",{className:"resize-guide-max-after",children:["« ",(0,ec.jsx)(TQ,{id:"segments.resize.max",defaultMessage:"Max"})]})]})]}):null}function JC(e){if("number"!=typeof e)return;let t=e*cI;return{width:`${t}px`,marginLeft:-t/2+"px"}}var ef=(el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma")),JI=(0,ef.memo)(function(e){let{value:t,units:n,locale:r}=e;return(0,ec.jsx)("span",{children:c_(t,n,r)})});function JP(e){let{label:t,locale:n,width:r,units:i,showCapacity:o=!1,capacity:a}=e,s=["segment-grid"];return 0===i?s.push("units-metric"):s.push("units-imperial"),(0,ec.jsxs)("div",{className:"segment-label-container",children:[(0,ec.jsx)("div",{className:s.join(" ")}),(0,ec.jsx)("div",{className:"segment-width",children:(0,ec.jsx)(JI,{value:r,units:i,locale:n})}),(0,ec.jsxs)("div",{className:"segment-label",children:[(0,ec.jsx)("p",{className:"segment-name",children:t}),o&&void 0!==a&&(0,ec.jsx)("p",{className:"segment-capacity",children:(0,ec.jsx)(TQ,{id:"capacity.ppl-per-hour",defaultMessage:"{capacity} people/hr",values:{capacity:cv(a,n)}})})]})]})}function JA({width:e,left:t}){let n=kU(e=>e.street.units),r=kU(e=>e.locale.locale);return e<=0?null:(0,ec.jsx)("div",{className:"segment segment-empty",style:{width:e*cI+"px",left:t*cI+"px"},children:(0,ec.jsx)(JP,{label:(0,ec.jsx)(TQ,{id:"section.empty",defaultMessage:"Empty space"}),width:e,units:n,locale:r})})}function JR(){let e=kU(e=>e.street.remainingWidth),t=kU(e=>e.street.occupiedWidth),n=[];if(e>0)if(0===t||void 0===t)n.push({width:e,left:0});else{let r=e/2;n.push({width:r,left:0},{width:r,left:r+t})}return n.map(({width:e,left:t},n)=>(0,ec.jsx)(JA,{width:e,left:t},n))}var ef=el("8NFma");class JN{#t;#n;#r;addListener(e){if("function"!=typeof e)throw Error("FrameTicker.addListener() requires a function reference passed in.");this.#r.push(e),this.#t||(this.#t=!0,this.#i())}clearListeners(){this.#r=[],this.#t=!1,this.#n=0}#i(){void 0!==window.requestAnimationFrame&&window.requestAnimationFrame(e=>this.#o(e))}#o(e){let t=e-this.#n;this.#n=e,t<0?t=33:t>68&&(t=68);for(let e=0,n=this.#r.length;e<n;e++)this.#r[e].call(window,t,t/16.67);this.#t&&this.#i()}constructor(){this.#t=!1,this.#n=0,this.#r=[]}}let JM=new JN,JD=[],JL=!1,Jz=null,JF=null,JB=0,JU=0,J$=window.devicePixelRatio??1;function JH(){return{x:Math.random()*JB,y:Math.random()*JU,radius:Math.ceil(2*Math.random()),color:"#d9d9d9",speed:+Math.random()+.5,sway:Math.random()-.25}}function JW(){JL&&(JF&&JF.clearRect(0,0,JB*J$,JU*J$),JD.forEach(e
148=>{e.y+=e.speed,e.x+=e.sway,e.y>JU&&Object.assign(e,JH()),JF&&(JF.beginPath(),JF.arc(e.x*J$,e.y*J$,e.radius*J$,0,2*Math.PI),JF.fillStyle=e.color,JF.fill(),JF.closePath())}))}function JV(){JM.clearListeners(),JF&&JF.clearRect(0,0,JB*J$,JU*J$),JL=!1,JD.length=0,window.removeEventListener("resize",Jq)}function Jq(){null!==Jz&&(JB=Jz.offsetWidth,JU=Jz.offsetHeight,Jz.width=JB*J$,Jz.height=JU*J$)}let JK=new JN,JZ=1,JG="128",JY="128",JX="128",JJ="0.33",JQ=!1,J0=null,J1=null,J2=0,J3=0,J4=window.devicePixelRatio??1,J5=0,J6=6,J8=6,J9="#000000",J7="#000000",Qe=[],Qt=[],Qn=[],Qr=[];function Qi(){for(let e=Qe.length-1;e>=0;e--)Qe.pop()?.recycle();for(let e=Qn.length-1;e>=0;e--)Qn.pop()?.recycle();null!==J0&&(J2=J0.offsetWidth,J3=J0.offsetHeight,J0.width=J2*J4,J0.height=J3*J4)}function Qo(e,t){let n=JZ*t;for(J5+=e*JZ;J5>J6;){J5-=J6;let e=Qt.pop()||new Qs;e.init();let t=Math.abs(J3/e.speed*J8),n=Math.random()*(J2+t);J8>0&&(n-=t),e.x=n,Qe.push(e)}for(let e=Qe.length-1;e>=0;e--){let t=Qe[e];t.y+=t.speed*t.z*n,t.x+=t.z*J8*n,t.y>J3&&t.splash(),(t.y>J3+Qs.height*t.z||J8<0&&t.x<J8||J8>0&&t.x>J2+J8)&&(t.recycle(),Qe.splice(e,1))}let r=Ql.max_speed;for(let e=Qn.length-1;e>=0;e--){let t=Qn[e];t.x+=t.speed_x*n,t.y+=t.speed_y*n,t.speed_y+=.3*n,t.speed_x+=J8/25*n,t.speed_x<-r?t.speed_x=-r:t.speed_x>r&&(t.speed_x=r),t.y>J3+t.radius&&(t.recycle(),Qn.splice(e,1))}!function(){if(null===J1)return;J1.clearRect(0,0,J2*J4,J3*J4),J1.beginPath();let e=Qs.height*J4;for(let t=Qe.length-1;t>=0;t--){let n=Qe[t],r=n.x*J4,i=n.y*J4;J1.moveTo(r,i),J1.lineTo(r-J8*n.z*J4*1.5,i-e*n.z)}J1.lineWidth=Qs.width*J4,J1.strokeStyle=J9,J1.stroke();for(let e=Qn.length-1;e>=0;e--){let t=Qn[e],n=t.x*J4-t.radius,r=t.y*J4-t.radius;J1.drawImage(t.canvas,n,r)}}()}function Qa(){J1&&J1.clearRect(0,0,J2*J4,J3*J4),JQ=!1,JK.clearListeners(),window.removeEventListener("resize",Qi)}class Qs{static{this.width=2}static{this.height=40}init(){this.y=-100*Math.random(),this.z=.5*Math.random()+.5,this.splashed=!1}recycle(){Qt.push(this)}splash(){if(!this.splashed){this.splashed=!0;for(let e=0;e<16;e++){let e=Qr.pop()??new Ql;Qn.push(e),e.init(this.x)}}}constructor(){this.x=0,this.y=0,this.z=0,this.speed=25,this.splashed=!1}}class Ql{static{this.max_speed=5}constructor(){if(this.x=0,this.y=0,this.radius=Math.round(2*Math.random()+1)*J4,this.speed_x=0,this.speed_y=0,this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),null===this.ctx)throw Error("Rain canvas could not be created");const e=2*this.radius;this.canvas.width=e,this.canvas.height=e;const t=this.ctx.createRadialGradient(this.radius,this.radius,1,this.radius,this.radius,this.radius);t.addColorStop(0,J9),t.addColorStop(1,J7),this.ctx.fillStyle=t,this.ctx.fillRect(0,0,e,e)}init(e){this.x=e,this.y=J3;let t=Math.random()*Math.PI-.5*Math.PI,n=Math.random()*Ql.max_speed;this.speed_x=Math.sin(t)*n,this.speed_y=-Math.cos(t)*n}recycle(){Qr.push(this)}}function Qu(){let e=(0,ef.useRef)(null),{weather:t}=kU(e=>e.street);return(0,ef.useEffect)(()=>{if("rain"===t&&e.current){var n=e.current;JQ||(JQ=!0,J1=(J0=n).getContext("2d"),JZ=.4*Math.random()+.8,J8=20*Math.random()-10,J6=5*Math.random()+3,J9="rgba("+JG+","+JY+","+JX+","+JJ+")",J7="rgba("+JG+","+JY+","+JX+",0)",Qi(),JK.addListener(Qo),window.addEventListener("resize",Qi))}else Qa();if("snow"===t&&e.current){var r=e.current;if(!JL){JL=!0,Jz=r,Jq(),window.addEventListener("resize",Jq),JF=Jz.getContext("2d");for(let e=0;e<300;e++)JD.push(JH());JM.addListener(JW)}}else JV();return()=>{Qa(),JV()}},[t]),(0,ec.jsx)("canvas",{className:"weather-canvas",ref:e})}function Qc(e){let{skybox:t}=e,n=ze(t,{from:{opacity:0}
148,enter:{opacity:1},leave:{opacity:0},config:{duration:500}});return(0,ec.jsx)("div",{className:"sky-background",children:n((e,t)=>(0,ec.jsx)(zy.div,{className:"sky-background-color",style:{...e,...PR(t).style}}))})}var ef=(el("8NFma"),el("8NFma"),el("8NFma"));function Qd(e,t){var n=Object.create(null);return e&&ef.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=t&&(0,ef.isValidElement)(e)?t(e):e}),n}function Qf(e,t,n){return null!=n[t]?n[t]:e.props[t]}var Qh=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Qp=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=r.handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}kO(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;
148return{children:t.firstRender?Qd(e.children,function(t){return(0,ef.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:Qf(t,"appear",e),enter:Qf(t,"enter",e),exit:Qf(t,"exit",e)})}):(Object.keys(r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(i,n=Qd(e.children))).forEach(function(t){var a=r[t];if((0,ef.isValidElement)(a)){var s=t in i,l=t in n,u=i[t],c=(0,ef.isValidElement)(u)&&!u.props.in;l&&(!s||c)?r[t]=(0,ef.cloneElement)(a,{onExited:o.bind(null,a),in:!0,exit:Qf(a,"exit",e),enter:Qf(a,"enter",e)}):l||!s||c?l&&s&&(0,ef.isValidElement)(u)&&(r[t]=(0,ef.cloneElement)(a,{onExited:o.bind(null,a),in:u.props.in,exit:Qf(a,"exit",e),enter:Qf(a,"enter",e)})):r[t]=(0,ef.cloneElement)(a,{in:!1})}}),r),firstRender:!1}},n.handleExited=function(e,t){var n=Qd(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=kk({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=kS(e,["component","childFactory"]),i=this.state.contextValue,o=Qh(this.state.children).map(n);return(delete r.appear,delete r.enter,delete r.exit,null===t)?ei(ef).createElement(kC.Provider,{value:i},o):ei(ef).createElement(kC.Provider,{value:i},ei(ef).createElement(t,r,o))},t}(ei(ef).Component);function Qm({objects:e=[]}){let t=(0,ef.useRef)({});return(0,ec.jsx)(Qp,{className:"sky-background-objects",children:e.map(e=>{let n=e.image,r=pl.get(n),i=(0,ef.createRef)();t.current[n]=i;let o={width:e.width,height:e.height,position:"absolute",left:`calc(${100*e.left}% - ${e.width/2}px)`,top:`calc(${100*e.top}% - ${e.height/2}px)`};return void 0!==r?(0,ec.jsx)(kF,{nodeRef:i,appear:!0,timeout:{enter:0,exit:500},classNames:"sky-background-object",children:(0,ec.jsx)("div",{ref:i,style:o,children:(0,ec.jsx)("img",{src:r.src,style:{width:"100%",height:"100%"}})})},e.image):(0,ec.jsx)(ef.Fragment,{},e.image)})})}function Qg(e){let{scrollPos:t=0}=e,n=kU(e=>e.street.skybox??"day"),r=kU(e=>e.flags.SKY_ANIMATED_CLOUDS?.value??!1),{cloudOpacity:i,foregroundGradient:o,backgroundObjects:a}=PR(n),s={...Qy(!0,t),opacity:i},l={...Qy(!1,t),opacity:i},u={};void 0!==o?(u.backgroundImage=PP(o),u.opacity=1):u.opacity=0;let c=["street-section-sky"];return r&&c.push("sky-animations"),(0,ec.jsxs)("section",{className:c.join(" "),children:[(0,ec.jsx)(Qc,{skybox:n}),(0,ec.jsx)(Qm,{objects:a}),(0,ec.jsx)("div",{className:"rear-clouds",style:l}),(0,ec.jsx)("div",{className:"front-clouds",style:s}),(0,ec.jsx)(Qu,{}),(0,ec.jsx)("div",{className:"sky-foreground",style:u})]})}function Qy(e,t){return{backgroundPosition:`-${t*(e?.5:.25)}px 0`}}Qp.propTypes={},Qp.defaultProps={component:"div",childFactory:function(e){return e}};var ef=el("8NFma");let Qv=(0,ef.memo)(function({scrollStreet:e,left:t=0,right:n=0}){let r=TV();function i(t){e(!0,t.shiftKey??!1)}function o(t){e(!1,t.shiftKey??!1)}(0,ef.useEffect)(()=>(Rs(["left","shift left"],i),Rs(["right","shift right"],o),()=>{Rl(["left","shift left"],i),Rl(["right","shift right"],o)}));let a=r.formatMessage({id:"tooltip.scroll-street-left",defaultMessage:"Scroll street left"}),s=r.formatMessage({id:"tooltip.scroll-street-right",defaultMessage:"Scroll street right"});return(0,ec.jsx)("div",{className:"street-scroll-indicators",children:(0,ec.jsxs)(Tt,{children:[t>0&&(0,ec.jsx)(Te,{label:a,role:"label",children:(0,ec.jsx)("button",{className:"street-scroll-indicator-left",onClick:i,"aria-label":a,children:Array(t+1).join("‹")})}),n>0&&(0,ec.jsx)(Te,{label:s,role:"label",children:(0,ec.jsx)("button",{className:"street-scroll-indicator-right",onClick:o,"aria-label":s,children:Array(n+1).join("›")})})]})})});function Qb({position:e,sliceIndex:t,width:n,show:r}){let[i,o]=(0,ef.useState)(!1),a=kU(e=>e.infoBubble.mouseInside),s=TV(),l=n<60?`${.5*n-35}px`:void 0,u=["resize-handle",`resize-handle-${e}`];r&&u.push("resize-handle-show"),i&&u.push("resize-handle-active");let c="left"===e?s.formatMessage({id:"segments.resize.left",defaultMessage:"Resize left"}):s.formatMessage({id:"segments.resize.right",defaultMessage:"Resize right"});function d(){o(!1)}return(0,ef.useEffect)(()=>(window.addEventListener("stmx:TEMP_slice_resize_end",d),()=>{window.removeEventListener("stmx:TEMP_slice_resize_end",d)})),(0,ec.jsx)("button",{className:u.join(" "),style:{display:a?"none":void 0,[e]:l},onPointerDown:function(e){e.preventDefault(),function(e,t){let n,r;if("touches"in e&&e.touches[0])n=e.touches[0].pageX,r=e.touches[0].pageY;else{if(!("pageX"in e))return;n=e.pageX,r=e.pageY}AW=!0;let i=e.target.closest(".resize-handle");hy.dispatch(dZ(3));let o=i.getBoundingClientRect();pk.sliceIndex=t,pk.right=i.classList.contains("resize-handle-right"),pk.mouseX=n,pk.mouseY=r,pk.elX=o.left,pk.elY=o.top,pk.originalX=pk.elX,pk.originalWidth=hy.getState().street.segments[t].width,pk.segmentEl=i.parentNode,pk.segmentEl.classList.add("hover"),window.setTimeout(function(){pk.segmentEl&&pk.segmentEl.classList.add("hover")},0)}(e.nativeEvent,t),o(!0)},"aria-label":c,"aria-hidden":!r&&!i,disabled:!r&&!i,tabIndex:r||i?0:-1,children:(0,ec.jsx)(C0,{name:`chevron-${e}`,size:"30"})})}function Qw(e){return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(Qb,{position:"left",...e}),(0,ec.jsx)(Qb,{position:"right",...e})]})}
148function Qx({slice:e}){if(!kU(e=>e.flags.DEBUG_SLICE_SLOPE.value))return null;let{slope:t,ratio:n}=pU(e.slope.values,e.width),r=p$(n),i={color:"green"};return r.slopeExceededPath&&(i.color="yellow"),r.slopeExceededBerm&&(i.color="red"),(0,ec.jsx)("div",{className:"test-slope-container",children:e.slope.on&&(0,ec.jsxs)("div",{className:"slope-debug",children:[(0,ec.jsxs)("p",{style:i,children:[t," %"]}),(0,ec.jsxs)("p",{style:i,children:[n??0,":1"]})]})})}function Q_(e){let{sliceIndex:t,segment:n,units:r,segmentLeft:i}=e,[o,a]=(0,ef.useState)(!1),[s,l]=(0,ef.useState)(n.variantString),u=kU(e=>e.street),c=kU(e=>e.flags.ANALYTICS.value&&e.street.showAnalytics),d=kU(e=>e.locale.locale),f=kU(e=>e.ui.activeSegment),p=kU(e=>e.app.readOnly),m=kU(e=>e.infoBubble.mouseInside),g=kB(),y=(0,ef.useRef)(null),v=(0,ef.useRef)(null),b=(0,ef.useRef)(null),w=(0,ef.useRef)(null),[,x]=N0({accept:[px,p_],hover(e,r){if(!r.canDrop()||!y.current)return;let i=e.sliceIndex,{left:o}=y.current.getBoundingClientRect(),a=Math.round(o+n.width*cI/2),s=r.getClientOffset()?.x;if(s)if(i===t)pj(i,null,e,r.getItemType());else{let{segments:n}=hy.getState().street;pj(s>a&&t!==n.length-1?t+1:t===n.length-1?null:t,s>a&&0!==t?t:0===t?null:t-1,e,r.getItemType())}}}),[_,k,S]=NG({type:px,item:()=>(hy.dispatch(dV({type:2,dragIndex:t})),{id:n.id,sliceIndex:t,variantString:n.variantString,type:n.type,label:n.label,actualWidth:n.width,elevation:n.elevation,slope:n.slope,elevationChanged:n.elevationChanged}),end(e,n){if(hy.dispatch(dK()),!n.didDrop()){let r=h.withinCanvas,i=n.getItemType();r?pT(e,i):i===px&&hy.dispatch(P1(t))}pO()},canDrag:e=>!hy.getState().app.readOnly,isDragging:e=>e.getItem().id===n.id,collect:e=>({isDragging:e.isDragging()})}),{isDragging:E}=_;k(x(v));let O=k$({segment:n,isDragging:E}),j=j6();(0,ef.useEffect)(()=>{null!==O&&O.segment.variantString!==n.variantString&&P(O.segment.variantString)},[n.variantString]);let T=(0,ef.useCallback)((e,t)=>{g(P3(e,!1,t,pI))},[g]),C=(0,ef.useCallback)((e,t)=>{g(P3(e,!0,t,pI))},[g]),I=(0,ef.useCallback)(e=>{if(!p&&!m)switch(e.key){case"-":case"_":if(e.metaKey||e.ctrlKey||e.altKey)return;e.preventDefault(),T(t,e.shiftKey);break;case"+":case"=":if(e.metaKey||e.ctrlKey||e.altKey)return;e.preventDefault(),C(t,e.shiftKey);break;case"Backspace":case"Delete":e.shiftKey?g(P2()):g(P1(t))}},[T,C,t,m,g,p]);function P(e){if(a(!o),o)l(n.variantString);else{if(void 0===e)throw Error("oldVariant should be defined");l(e)}}function A(e,t){return(0,ec.jsx)("div",{ref:t,style:{width:"100%",height:"100%"},children:(0,ec.jsx)(Jt,{actualWidth:n.width,type:n.type,variantString:"old"===e?s:n.variantString,randSeed:n.id,elevation:n.elevation,slope:n.slope})})}(0,ef.useEffect)(()=>()=>{document.removeEventListener("keydown",I)},[I]);let R=cm(n.type),N=n.label??Pa(n.type,n.variantString),M=H6(n,u.capacitySource)?.average,D=n.width*cI,z={width:D+"px",zIndex:R.zIndex,transform:`translateX(${i}px)`},F=["segment"],B=n.warnings??[!1];return E?F.push("dragged-out"):f===t&&F.push("active"),(B[1]||B[2]||B[3]||B[5]||B[6])&&F.push("warning"),B[1]&&F.push("outside"),(0,ec.jsxs)("div",{style:z,className:F.join(" "),"data-testid":"segment",ref:y,onMouseEnter:function(){p||(g(dW(t)),document.addEventListener("keydown",I))},onMouseLeave:function(){p||j.activeTour||(g(dW(null)),document.removeEventListener("keydown",I))},children:[(0,ec.jsx)(Py,{type:"slice",position:t,isDragging:E,disabled:p,children:(0,ec.jsxs)("button",{className:"slice-button","data-slice-index":t,"data-slice-left":i,"data-slice-label":N,children:[(0,ec.jsx)(JP,{label:N,width:n.width,units:r,locale:d,capacity:M,showCapacity:c}),(0,ec.jsxs)("div",{ref:v,className:"segment-canvas-container",children:[(0,ec.jsx)(kF,{in:!o,classNames:"switching-away",timeout:250,onExited:P,unmountOnExit:!0,nodeRef:b,children:A("old",b)},"old-variant"),(0,ec.jsx)(kF,{in:o,classNames:"switching-in",timeout:250,unmountOnExit:!0,nodeRef:w,children:A("new",w)},"new-variant")]}),(0,ec.jsx)(Qx,{slice:n}),(0,ec.jsx)("div",{className:"active-bg"}),(0,ec.jsx)(Za,{dragPreview:S})]})}),(0,ec.jsx)(Qw,{width:D,sliceIndex:t,show:f===t})]})}function Qk(e){let{resizeType:t,setBoundaryWidth:n,updatePerspective:r,draggingType:i,ref:o}=e,a=kU(e=>e.street),s=kU(e=>e.ui.immediateRemoval),l=kU(e=>e.ui.draggingState),u=(0,ef.useRef)(!1),c=(0,ef.useRef)({}),d=k$({resizeType:t,draggingType:i,street:a,draggingState:l}),[,f]=N0({accept:[px,p_],drop:(e,t)=>(pT(e,t.getItemType()),{withinCanvas:!0}),hover(e,t){if(t.canDrop()&&o.current&&t.isOver({shallow:!0})){let n=function(e,t){if(!t)return null;let{remainingWidth:n}
148=hy.getState().street,{left:r,right:i}=e.getBoundingClientRect(),o=n*cI/2;return t<r+o?"left":t>i-o?"right":null}(o.current,t.getClientOffset()?.x);if(!n)return;let{segments:r}=a,i="left"===n?null:r.length-1;pj("left"===n?0:null,i,e,t.getItemType())}}}),p=(0,ef.useCallback)(e=>{if(null===o.current)return;let t=function(e,t){let n,r,{remainingWidth:i}=hy.getState().street;if("touches"in e&&e.touches[0])n=e.touches[0].pageX,r=e.touches[0].pageY;else{if(!("x"in e))return!1;n=e.x,r=e.y}let{top:o,bottom:a,left:s,right:l}=t.getBoundingClientRect(),u=r>=o&&r<=a,c=n>=s&&n<=l;if(!c&&i<0){let e=i*cI/2;c=n>=s+e-40&&n<=l-e+40}let d=c&&u;return h&&(h.withinCanvas=d),d}(e,o.current);t?document.body.classList.remove("not-within-canvas"):document.body.classList.add("not-within-canvas"),u.current!==t&&(u.current=t)},[o]);function m(e){let{segments:t,remainingWidth:n}=a,r=0;for(let n=0;n<e;n++)r+=l.draggedSegment===n?0:t[n].width*cI;let i=n;return("number"==typeof l.draggedSegment&&(i+=t[l.draggedSegment].width),i=i*cI/2,null!==l.draggedSegment&&u.current)?(i-=40)+r+function(e,t){let{segmentBeforeEl:n,segmentAfterEl:r}=t,i=0;return null!==n&&e>=n&&(i+=40,null===r&&(i+=40)),null!==r&&e>r&&(i+=40,null===n&&(i+=40)),i}(e,l):i+r}(0,ef.useEffect)(()=>(window.addEventListener("dragover",p),window.addEventListener("touchmove",p),()=>{window.removeEventListener("dragover",p),window.removeEventListener("touchmove",p)}),[p]),(0,ef.useEffect)(()=>{null!==d&&(void 0!==t||3===d.draggingType&&void 0!==i)&&n(o.current)},[t,i,n,d,o]),(0,ef.useEffect)(()=>{(d?.street.id!==a.id||d?.street.width!==a.width)&&pF()},[a.id,a.width,d]);let g={width:a.width*cI+"px"};return(0,ec.jsx)("div",{id:"street-section-editable",style:g,ref:o,children:(0,ec.jsx)("div",{style:{width:"100%",height:"100%"},ref:f,children:(0,ec.jsx)(Qp,{component:null,enter:!1,childFactory:function(e){return(0,ef.cloneElement)(e,{exit:!s})},children:function(){let{segments:e,units:t}=a,n=a.id;return e.map((e,i)=>{let o=m(i),a=`${n}.${e.id}`,l=(0,ef.createRef)();return c.current[a]=l,(0,ec.jsx)(kF,{timeout:250,classNames:"slice-remove",exit:!s,onExit:()=>{null!==l.current&&function(e,t){let n=e.firstChild;if(null===n)return;let i=m(t);n.style.left=`${i}px`,r(n)}(l.current,i)},unmountOnExit:!0,nodeRef:l,children:(0,ec.jsx)("div",{ref:l,children:(0,ec.jsx)(Q_,{sliceIndex:i,segment:{...e},units:t,segmentLeft:o})})},a)})}()},a.id)})},a.id)}function QS(e,t){let n,r;if(null!==e){if(e.scrollWidth<=e.offsetWidth+1)n=0,r=0;else{let i=e.scrollLeft/(e.scrollWidth-e.offsetWidth),o=Math.max(Math.round(t/120*6),2);n=Math.round(o*i),i>0&&0===n&&(n=1),r=o-n}return{left:n,right:r}}}function QE(){let[e,t]=(0,ef.useState)({left:0,right:0}),[n,r]=(0,ef.useState)(0),[i,o]=(0,ef.useState)(),[a,s]=(0,ef.useState)(360),l=(0,ef.useRef)(null),u=(0,ef.useRef)(null),c=(0,ef.useRef)(null),d=kU(e=>e.street),f=kU(e=>e.ui.draggingType),h=kU(e=>e.flags.COASTMIX_MODE.value??!1),p=k$({boundaryWidth:a,resizeType:i,street:d}),m=(0,ef.useCallback)(()=>{if(!u.current)return;let e=window.innerWidth,t=d.width*cI,n=(e-t)/2-360;return n<0&&(n=0),u.current.style.width=t+"px",u.current.style.left=n+"px",2},[d.width]),g=(0,ef.useCallback)(()=>{window.requestAnimationFrame(()=>{let e=m(),n=QS(l.current,d.width);void 0!==e&&o(e),void 0!==n&&t(n)})},[m,d.width]);(0,ef.useEffect)(()=>(g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}),[g]),(0,ef.useEffect)(()=>{g()},[g,d.width]);let y=(0,ef.useCallback)(e=>{if(!l.current)return;let t=l.current.scrollLeft;void 0!==e?t+=e:t=(d.width*cI+2*a-window.innerWidth)/2,l.current.scrollLeft=t},[a,d.width]);function v(e,t){pN(u.current,l.current,t)&&o(e)}function b(){return l.current?.scrollLeft??0}function w(e){if(null===e)return;let t=-(e.getBoundingClientRect().left-window.innerWidth/2);e.style.perspectiveOrigin=t/2+"px 50%"}return(0,ef.useEffect)(()=>{if(p?.boundaryWidth!==a||p?.resizeType===2&&void 0!==i){let e=a-(p?.boundaryWidth??0);p?.resizeType===1||p?.resizeType===i?y(e):p?.resizeType===2&&(y(),v(1,!0))}},[a,i,y,p]),(0,ef.useEffect)(()=>{if(p?.street.occupiedWidth!==d.occupiedWidth&&3!==f){let e=d.id!==p?.street.id?2:1;v(e,2===e)}},[d,p,f]),(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsxs)("section",{id:"street-section-outer",onScroll:function(e){window.requestAnimationFrame(()=>{let e=QS(l.current,d.width);void 0!==e&&(t(e),r(b()))})},ref:l,children:[(0,ec.jsx)("section",{id:"street-section-inner",children:(0,ec.jsx)(Pv,{children:(0,ec.jsxs)("section",{id:"street-section-canvas",ref:u,children:[(0,ec.jsx)(Pw,{position:"left",width:a,updatePerspective:w}),(0,ec.jsx)(Qk,{resizeType:i,setBoundaryWidth:function(e){if(null===e)return;let t=e.getBoundingClientRect().left+b();t<360&&(t=360),s(t),o(void 0)},updatePerspective:w,draggingType:f,ref:c}),(0,ec.jsx)(Pw,{position:"right",width:a,updatePerspective:w}),(0,ec.jsx)(JT,{}),(0,ec.jsx)(JR,{}),h&&(0,ec.jsx)(zJ,{boundaryWidth:a,scrollPos:n}),(0,ec.jsx)("div",{className:"street-section-ground"})]})})}),(0,ec.jsx)("div",{id:"street-section-popup-boundary"})]}),(0,ec.jsx)(Qg,{scrollPos:n}
148),(0,ec.jsx)(Qv,{left:e.left,right:e.right,scrollStreet:function(e,t=!1){let n,r=l.current;r&&(n=e?t?0:r.scrollLeft-.5*r.offsetWidth:t?r.scrollWidth-r.offsetWidth:r.scrollLeft+.5*r.offsetWidth,AQ(r,{scrollLeft:n},300))}})]})}var ef=(el("8NFma"),el("8NFma"),el("8NFma"),el("8NFma")),kT=el("2pmb0");function QO(){let e=kU(e=>e.app.printing),t=kU(e=>e.street),n=kB(),[r,i]=(0,ef.useState)(null),[o,a]=(0,ef.useState)(null);return(0,ef.useEffect)(()=>{let e=()=>{(0,kT.flushSync)(()=>{n(uE())})},t=()=>{n(uO())};return window.addEventListener("beforeprint",e),window.addEventListener("afterprint",t),()=>{window.removeEventListener("beforeprint",e),window.removeEventListener("afterprint",t)}},[n]),(0,ef.useEffect)(()=>{let n=!1;async function r(){try{a(null);let e=await PD(t,!0,!0,!1);n||i(e.toDataURL("image/png"))}catch(e){n||a(`Could not load image. ${e}`)}}return e&&r(),()=>{n=!0}},[e,t]),(0,ec.jsxs)("div",{className:"print-container",children:[o&&(0,ec.jsx)("p",{children:o}),!o&&!r&&(0,ec.jsx)("p",{children:"Preparing print..."}),!o&&null!==r&&(0,ec.jsx)("img",{src:r})]})}var ef=el("8NFma");let Qj="settings-welcome-dismissed";function QT(){window.localStorage.setItem(Qj,"true")}function QC(){let e=kU(e=>e.street),{data:t}=hg(e.creatorId);return(0,ec.jsxs)("div",{className:"welcome-panel-content",children:[(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.welcome.heading",defaultMessage:"Welcome to Streetmix."})}),(0,ec.jsx)("p",{children:"string"==typeof e.creatorId?(0,ec.jsx)(TQ,{id:"dialogs.welcome.existing.intro",defaultMessage:"This is {streetName} made by {creator}.",values:{streetName:(0,ec.jsx)(Wt,{as:"span",name:e.name}),creator:(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(Fw,{userId:e.creatorId})," ",t?.displayName??e.creatorId]})}}):(0,ec.jsx)(TQ,{id:"dialogs.welcome.existing.intro-without-creator",defaultMessage:"This is {streetName}.",values:{streetName:(0,ec.jsx)(Wt,{as:"span",name:e.name})}})}),(0,ec.jsx)("div",{className:"welcome-panel-buttons",children:(0,ec.jsx)(TQ,{id:"dialogs.welcome.existing.instruct",defaultMessage:"Remix it by moving some segments around, or {startYourOwnStreet}.",values:{startYourOwnStreet:(0,ec.jsx)(T4,{onClick:function(){QT(),wv(!0)},children:(0,ec.jsx)(TQ,{id:"dialogs.welcome.existing.instruct-start-own-street",defaultMessage:"Start your own street"})})}})})]})}function QI(){return(0,ec.jsxs)("div",{className:"welcome-panel-content",children:[(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.welcome.heading",defaultMessage:"Welcome to Streetmix."})}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"dialogs.welcome.new.intro",defaultMessage:"Design, remix, and share your neighborhood street. Add trees or bike paths, widen sidewalks or traffic lanes, learn how your decisions can impact your community."})}),(0,ec.jsx)("p",{children:(0,ec.jsx)(TQ,{id:"dialogs.welcome.new.instruction",defaultMessage:"Start by moving some segments around."})})]})}function QP({handleDismiss:e}){return(0,ec.jsxs)("div",{className:"welcome-panel-content",children:[(0,ec.jsx)("h1",{children:(0,ec.jsx)(TQ,{id:"dialogs.new-street.heading",defaultMessage:"Here’s your new street."})}),(0,ec.jsx)("div",{className:"welcome-panel-buttons",children:(0,ec.jsx)(T4,{primary:!0,onClick:e,children:(0,ec.jsx)(TQ,{id:"dialogs.new-street.dismiss",defaultMessage:"Let’s go!‎"})})})]})}var QA={};function QR({handleDismiss:e}){return(0,ec.jsxs)("div",{className:"welcome-panel-content welcome-coastmix",children:[(0,ec.jsx)("h1",{children:"Welcome to Coastmix!"}),(0,ec.jsx)("img",{src:ei(QA),width:"480",alt:"Welcome to Coastmix!",draggable:!1}),(0,ec.jsx)("p",{children:"Climate change is causing sea level rise and more intense and frequent storms. Cities must adapt their waterfronts to prevent flooding and protect communities, buildings, infrastructure, and open spaces."}),(0,ec.jsxs)("p",{children:["Coastmix was built in partnership between the"," ",(0,ec.jsx)("a",{href:"https://boston.gov/",target:"_blank",rel:"noopener",children:"City of Boston"})," ","and the developers of"," ",(0,ec.jsx)("a",{href:"https://streetmix.net/",target:"_blank",rel:"noopener",children:"Streetmix"})," ","to teach coastal resilience planning, explore ways to prevent flooding, and design your own adaptation strategies."," ",(0,ec.jsx)("strong",{children:"Let’s get started!"})]}),(0,ec.jsxs)("div",{className:"welcome-panel-buttons",children:[(0,ec.jsx)(Fi,{children:(0,ec.jsx)(T4,{onClick:function(t){e(t)},primary:!0,children:"Take a quick tour"})}),(0,ec.jsx)(T4,{onClick:function(t){e(t)},tertiary:!0,children:"Skip"})]})]})}function QN({handleDismiss:e}){let t=j6();return(0,ef.useEffect)(()=>{"true"!==new URLSearchParams(window.location.search).get("tour")||t.activeTour||(new t.Tour({...z5,steps:Ff}).start(),e())},[t.Tour,t.activeTour,e]),(0,ec.jsxs)("div",{className:"welcome-panel-content",children:[(0,ec.jsx)("h1",{children:"Here’s your new waterfront."}),(0,ec.jsx)("div",{className:"welcome-panel-buttons",children:(0,ec.jsx)(T4,{primary:!0,onClick:e,children:(0,ec.jsx)(TQ,{id:"dialogs.new-street.dismiss",defaultMessage:"Let’s go!‎"})})})]})}function QM(){let e,t,n,r,i,{readOnly:o}=kU(e=>
148e.app),{welcomePanelVisible:a,welcomePanelDismissed:s}=kU(e=>e.ui),l=kU(e=>e.flags.COASTMIX_MODE?.value??!1),u=kB(),c=(t=0,n=p,i=null!==(r=window.localStorage.getItem(Qj))&&JSON.parse(r),l?i?(2===n||3===n)&&(t=4):t=5:2===n||3===n?t=wq()||i?1:2:i||(t=3),t),d=(0,ef.useCallback)(()=>{QT(),u(dH())},[u]);switch(c){case 2:e=(0,ec.jsx)(QI,{});break;case 3:e=(0,ec.jsx)(QC,{});break;case 1:e=(0,ec.jsx)(QP,{handleDismiss:d});break;case 4:e=(0,ec.jsx)(QN,{handleDismiss:d});break;case 5:e=(0,ec.jsx)(QR,{handleDismiss:d});break;default:e=null}return((0,ef.useEffect)(()=>{o||s||0===c?(o||s||null===e)&&u(d$(!1)):u(d$(!0))},[o,s,c,e,u]),(0,ef.useEffect)(()=>{if(a&&!l)return window.addEventListener("stmx:receive_gallery_street",d),window.addEventListener("stmx:save_street",d),Rs("esc",d),()=>{window.removeEventListener("stmx:receive_gallery_street",d),window.removeEventListener("stmx:save_street",d),Rl("esc",d)}},[a,l,d]),a)?(0,ec.jsx)("div",{className:"welcome-panel-container",children:(0,ec.jsxs)("div",{className:"welcome-panel",children:[(0,ec.jsx)(zV,{onClick:d}),e]})}):null}QA=D("dnGHA");var ef=(el("8NFma"),el("8NFma"));let QD={transition:"margin 250ms ease-out"};function QL({notification:e={}}){let t=kU(e=>e.locale),{display:n=!1,lede:r,text:i,link:o,linkText:a,localStorageKey:s}=e,l=n;void 0!==s&&!0===JSON.parse(window.localStorage.getItem(s)??"")&&(l=!1);let[u,c]=(0,ef.useState)(l),[d,f]=(0,ef.useState)(0),h=(0,ef.useRef)(null);return n&&(void 0!==r||void 0!==i||void 0!==o)&&"en"===t.locale?(0,ec.jsx)(kD,{in:u,timeout:250,onExited:()=>{try{void 0!==s&&(window.localStorage[s]=JSON.stringify(!0))}catch(e){}},unmountOnExit:!0,nodeRef:h,children:(0,ec.jsxs)("div",{className:"notification-bar",ref:h,style:{...QD,marginTop:`-${d}px`},children:[void 0!==r&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("strong",{className:"notification-bar-intro",children:r})," "]}),void 0!==i&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("span",{className:"notification-bar-text",children:i})," "]}),void 0!==o&&(0,ec.jsx)(z2,{href:o,className:"notification-bar-link",children:a??(0,ec.jsx)(TQ,{id:"msg.more-info",defaultMessage:"More info"})}),(0,ec.jsx)(zV,{onClick:()=>{null===h.current||(f(h.current.getBoundingClientRect().height),c(!1))}})]})}):null}var Qz={};function QF(){return(0,ec.jsx)(QL,{notification:ei(Qz)})}Qz=JSON.parse('{"display":false,"lede":"We stand with the Black community and against police brutality.","link":"https://blacklivesmatters.carrd.co/","linkText":"Learn about ways you can help.","_lede":"We’ve got swag!","_text":"And so can you. Streetmix t-shirts and hoodies are now available!","_link":"https://cottonbureau.com/people/streetmix","_linkText":"Take me to the store","_localStorageKey":"notification-store-dismissed"}');var ef=el("8NFma");function QB({isLoading:e=!0}){let t=(0,ef.useRef)(null),n="coastmix"===dk;(0,ef.useLayoutEffect)(()=>{let e=window.setTimeout(function(){let e=t.current;e&&(e.style.opacity="1",e.style.transform="translateY(0)",e.setAttribute("aria-hidden","false"))},1e4);return()=>{window.clearTimeout(e)}});let r=[];return e||r.push("hidden"),n&&r.push("coastmix-loader"),(0,ec.jsxs)("div",{id:"loading",className:r.join(" "),hidden:!e,children:[n&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("img",{className:"loading-boston-logo",src:ei(FZ),alt:"City of Boston",draggable:!1}),(0,ec.jsx)("p",{children:"presents"})]}),(0,ec.jsx)("div",{className:"streetmix-logo"}),(0,ec.jsx)("div",{className:"loading-spinner"}),(0,ec.jsxs)("div",{ref:t,className:"loading-stuck","aria-hidden":"true",children:[(0,ec.jsx)("strong",{children:"Not loading?"})," ",(0,ec.jsx)("a",{href:"https://docs.streetmix.net/user-guide/support/troubleshooting",target:"_blank",rel:"noopener noreferrer",children:"Troubleshooting tips"})]})]})}function QU(){if(kU(e=>e.user.isSubscriber)||void 0===dS)return null;let e={};try{e=JSON.parse(dS)}catch(e){console.log("Unable to parse sponsor banner configuration:",e)}let{lede:t,text:n,link:r,linkText:i}=e;return t||n||r?(0,ec.jsxs)("div",{className:"sponsor-banner",children:[(0,ec.jsx)("span",{className:"sponsor-title",children:"Sponsor"}),t&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("strong",{className:"notification-bar-intro",children:t})," "]}),n&&(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)("span",{className:"notification-bar-text",children:n})," "]}),r&&(0,ec.jsx)(z2,{href:r,className:"notification-bar-link",children:i??(0,ec.jsx)(TQ,{id:"msg.more-info",defaultMessage:"More info"})}),(0,ec.jsx)("span",{children:"."}),"   ",(0,ec.jsx)("span",{className:"sponsor-banner-misc",children:(0,ec.jsx)("a",{href:"https://about.streetmix.net/sponsorship/",target:"_blank",rel:"noopener noreferrer",children:"(What are sponsors?)"})})]}):null}async function Q$(e){if(!dT)return;if(O)return O;let t=await el("75B2O");return O=await t.default(dT,e)}("streetmix.net"===window.location.hostname||"www.streetmix.net"===window.location.hostname)&&function(e={}){var n,r;let i,o,a=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===eA.window||eA.nw)return!1;let e=eA.chrome||eA.browser;if(!e?.runtime?.id)return!1;let t=rd();return!(eA===eA.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(rF&&eF(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),s=null==e.defaultIntegrations?[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(n){t=nu(e,n.getOptions())},processEvent:(n,r,i)=>(t||(t=nu(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&tw(n,t)}(e,t.ignoreTransactions))return eD&&eV(`Event dropped due to being matched by \`ignoreTransactions\` option.
149Event: ${tk(e)}`),!0}else{var n,r,i;if(n=e,r=t.ignoreErrors,r?.length&&ns(n).some(e=>tw(e,r)))return eD&&eV(`Event dropped due to being matched by \`ignoreErrors\` option.
150Event: ${tk(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return eD&&eV(`Event dropped due to not having an error message, error type or stacktrace.
151Event: ${tk(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=nc(e);return!!n&&tw(n,t)}(e,t.denyUrls))return eD&&eV(`Event dropped due to being matched by \`denyUrls\` option.
152Event: ${tk(e)}.
153Url: ${nc(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=nc(e);return!n||tw(n,t)}(e,t.allowUrls))return eD&&eV(`Event dropped due to not being matched by \`allowUrls\` option.
154Event: ${tk(e)}.
155Url: ${nc(e)}`),!0}return!1}(n,t)?n:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n,r=te(this);try{na.has(tq())&&void 0!==r&&(n=r)}catch{}return e.apply(n??this,t)}}catch{}},setup(e){na.set(e,!0)}},{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=tW().getScopeData(),n=tV().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=ne(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute("gen_ai.conversation.id",r)}})}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&e8(eA,"setTimeout",rU),t.setInterval&&e8(eA,"setInterval",rU),t.requestAnimationFrame&&e8(eA,"requestAnimationFrame",r$),t.XMLHttpRequest&&"XMLHttpRequest"in eA&&e8(XMLHttpRequest.prototype,"send",rH);let e=t.eventTarget;
155e&&(Array.isArray(e)?e:rB).forEach(e=>{var n,r;let i;return n=e,r=t,i=eA[n]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&(e8(i,"addEventListener",function(e){return function(t,i,o){var a,s,l,u;try{a=i,"function"==typeof a.handleEvent&&(i.handleEvent=rh(i.handleEvent,{mechanism:{data:{handler:th(i),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&(s=this,l=t,u=i,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,u)),e.apply(this,[t,rh(i,{mechanism:{data:{handler:th(i),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),e8(i,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}})))})}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,o,a,s,l;let u,c;t.console&&(n=e,rb(u="console",function(e){var t;if(tq()!==n)return;let r={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log",message:tv(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else r.message=`Assertion failed: ${tv(e.args.slice(1)," ")||"console.assert"}`,r.data.arguments=e.args.slice(1);rg(r,{input:e.args,level:e.level})}),rw(u,rS)),t.dom&&(rb("dom",(r=e,i=t.dom,function(e){let t,n;if(tq()!==r)return;let o="object"==typeof i?i.serializeAttribute:void 0,a="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;a&&a>1024&&(rF&&eV(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{var s;let r=e.event,i=(s=r)&&s.target?r.target:r;t=rz(i,{keyAttrs:o,maxStringLength:a}),n=function(e,t=5){if(!eA.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),rg(l,{event:e.event,name:e.name,global:e.global})})),rw("dom",rI)),t.xhr&&(rb("xhr",(o=e,function(e){if(tq()!==o)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[rN];if(!t||!n||!r)return;let{method:i,url:a,status_code:s,body:l}=r,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},c={category:"xhr",data:{method:i,url:a,status_code:s},type:"http",level:rT(s)};o.emit("beforeOutgoingRequestBreadcrumb",c,u),rg(c,u)})),rw("xhr",rM)),t.fetch&&(a=e,rb(c="fetch",function(e){if(tq()!==a)return;let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};a.emit("beforeOutgoingRequestBreadcrumb",i,r),rg(i,r)}else{let r=e.response,i={...e.fetchData,status_code:r?.status},o={input:e.args,response:r,startTimestamp:t,endTimestamp:n},s={category:"fetch",data:i,type:"http",level:rT(i.status_code)};a.emit("beforeOutgoingRequestBreadcrumb",s,o),rg(s,o)}}),rw(c,()=>(function(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in eA))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(rE(eA.fetch))return!0;let e=!1,t=eA.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=rE(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){eD&&eV("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&e8(eA,"fetch",function(t){return function(...n){let r=Error(),{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:rj(t),method:rO(n,"method")?String(n.method).toUpperCase():e6(t)&&rO(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:rj(t),method:rO(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:i,url:o},startTimestamp:1e3*tT(),virtualError:r,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(e6(t))return new Headers(t.headers)}catch{}}(n)};return e||rx("fetch",{...a}),t.apply(eA,n).then(async t=>(e?e(t):rx("fetch",{...a,endTimestamp:1e3*tT(),response:t}),t),e=>{rx("fetch",{...a,endTimestamp:1e3*tT(),error:e}),eZ(e)&&void 0===e.stack&&(e.stack=r.stack,e9(e,"framesToPop",1));let t=tq(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&eZ(e)&&"TypeError"===e.name&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(a.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:e9(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})})(void 0,void 0))),t.history&&rA((s=e,function(e){if(tq()!==s)return;let t=e.from,n=e.to,r=rC(eA.location.href),i=t?rC(t):void 0,o=rC(n);i?.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),rg({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){tq()===l&&rg({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:tk(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;let i,o;t.onerror&&(n=e,rb(i="error",e=>{var t,r,i,o;let a,s,l,u,c,{stackParser:d,attachStacktrace:f}=rQ();if(tq()!==n||rf>0)return;let{msg:h,url:p,line:m,column:g,error:y}=e,v=(t=ri(d,y||h,void 0,f,!1),r=p,i=m,o=g,0===(c=(u=(l=(s=(a=t.exception=t.exception||{}).values=a.values||[])[0]=s[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[]).length&&c.push({colno:o,lineno:i,filename:function(e){if(eJ(e)&&0!==e.length)return e.startsWith("data:")?`<${function(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),o=e.indexOf(","),a="";if(t&&-1!==o){let t=e.slice(o+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?",base64":""}${a?`,${a}`:""}`}return e}(e,!1)}>`:e}(r)??rd(),function:"?",in_app:!0}),t);v.level="error",ra(v,{originalException:y,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),rw(i,rG),rJ("onerror")),t.onunhandledrejection&&(r=e,rb(o="unhandledrejection",e=>{var t;let{stackParser:n,attachStacktrace:i}=rQ();if(tq()!==r||rf>0)return;let o=function(e){if(e0(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(e),a=e0(o)?(t=o,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):ri(n,o,void 0,i,!0);a.level="error",ra(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),rw(o,rX),rJ("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,o){if(!i.exception?.values||!o||!eZ(o.originalException))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=function e(t,n,r,i,o,a,s,l){if(a.length>=r+1)return a;let u=[...a];if(eZ(i[o])){r1(s,l,i);let a=t(n,i[o]),c=u.length;r2(a,o,c,l),u=e(t,n,r,i[o],o,[a,...u],a,c)}
155return r0(i)&&i.errors.forEach((a,c)=>{if(eZ(a)){r1(s,l,i);let d=t(n,a),f=u.length;r2(d,`errors[${c}]`,f,l),u=e(t,n,r,a,o,[d,...u],d,f)}}),u}(e,t,r,o.originalException,n,i.exception.values,a,0))}(n7,i.getOptions().stackParser,n,t,e,r)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var t,n,r,o,a,s;let l,u,c,d;if(t=e,(n=i)&&(r=t,o=n,l=r.message,u=o.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&ni(r,o)&&nr(r,o)&&1||(a=t,s=n,c=no(s),d=no(a),c&&d&&c.type===d.type&&c.value===d.value&&ni(a,s)&&nr(a,s))))return eD&&eV("Event dropped due to being a duplicate of previously captured event."),null}catch{}return i=e}},{name:"HttpContext",preprocessEvent(e){if(!eA.navigator&&!eA.location&&!eA.document)return;let t=rp(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){let t=e.attributes?.[tY];if(!eA.navigator&&!eA.location&&!eA.document)return;let n=rp();rq(e,{"url.full":"http.client"!==t?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}},{name:"CultureContext",preprocessEvent(e){let t=rK();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=rK();t&&rq(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}},((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===eA.document){rF&&eV("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}rs({ignoreDuration:!0});let e=!1;(e=>{let t=eA.requestIdleCallback||eA.setTimeout;if(eA.document?.visibilityState==="hidden")e();else{var n;let r;n=e,r=!1,rW("visibilitychange",e=()=>{r||(n(),r=!0)},{once:!0,capture:!0}),rW("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),rV("visibilitychange",e,{capture:!0}),rV("pagehide",e,{capture:!0})})}})(()=>{e||(rc(),e=!0)});let n=tV(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&rc())}),"route"===t&&rA(({from:t,to:n})=>{t!==n&&(rs({ignoreDuration:!0}),rc(),e=!0)})}}})()]:e.defaultIntegrations,l={...e,enabled:!a&&e.enabled,stackParser:Array.isArray(n=e.stackParser||ie)?tc(...n):n,integrations:function(e){let t,n,r=e.defaultIntegrations||[],i=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...r,...i];else if("function"==typeof i){let e=i(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}({integrations:e.integrations,defaultIntegrations:s}),transport:e.transport||io};t=is,!0===l.debug&&(eD?eH():eF(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),tW().update(l.initialScope),r=o=new rm(l),tW().setClient(r),o.init()}({dsn:"https://[email protected]/82756",allowUrls:[/streetmix\.net/,/www\.streetmix\.net/]});let QH=document.getElementById("react-app");if(!QH)throw Error("no element to mount to");(0,ed.createRoot)(QH).render((0,ec.jsx)(function(e){let{children:t,context:n,serverState:r,store:i}=e,o=ef.useMemo(()=>{let e=function(e){let t,n=ep,r=0,i=!1;function o(){l.onStateChange&&l.onStateChange()}function a(){if(r++,!t){let r,i;t=e.subscribe(o),r=null,i=null,n={clear(){r=null,i=null},notify(){let e=r;for(;e;)e.callback(),e=e.next},get(){let e=[],t=r;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,n=i={callback:e,next:null,prev:i};return n.prev?n.prev.next=n:r=n,function(){t&&null!==r&&(t=!1,n.next?n.next.prev=n.prev:i=n.prev,n.prev?n.prev.next=n.next:r=n.next)}}}}}function s(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=ep)}let l={addNestedSub:function(e){a();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),s())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,a())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>n};return l}(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),a=ef.useMemo(()=>i.getState(),[i]);return ey(()=>{let{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==i.get
155State()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,a]),ef.createElement((n||e_).Provider,{value:o},t)},{store:hy,children:(0,ec.jsx)(function(){let[e,t]=(0,ef.useState)(!0),n=kU(e=>e.locale),r=kU(e=>e.app.contentDirection),i=kU(e=>e.app.everythingLoaded),o=kU(e=>e.settings.colorMode),a=kU(e=>e.flags.COASTMIX_MODE.value),s=kU(e=>e.user.isSubscriber);return(0,ef.useEffect)(()=>{(async()=>{t(!1),(a||s)&&await Q$()})()},[a,s]),(0,ef.useEffect)(()=>{document.querySelector("html").dataset.colorMode=o},[o]),(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(QB,{isLoading:e||!i}),!e&&i&&(0,ec.jsx)(EX,{children:(0,ec.jsx)(Rw,{dir:r,children:(0,ec.jsx)(T0,{locale:n.locale,messages:n.messages,children:(0,ec.jsx)(Jf,{children:(0,ec.jsxs)(N4,{options:Mx,context:window,children:[(0,ec.jsx)(QF,{}),(0,ec.jsx)(MO,{}),(0,ec.jsx)(JO,{}),(0,ec.jsx)(Jj,{}),(0,ec.jsx)(Je,{}),(0,ec.jsx)(XX,{}),(0,ec.jsx)(JE,{}),(0,ec.jsx)(QO,{}),(0,ec.jsxs)("div",{className:"main-screen",children:[(0,ec.jsx)(F6,{}),(0,ec.jsx)(Wn,{}),(0,ec.jsx)(Ze,{}),(0,ec.jsx)(QM,{}),(0,ec.jsx)(Zh,{}),(0,ec.jsx)(X1,{}),(0,ec.jsx)(Jn,{}),(0,ec.jsx)(QE,{}),(0,ec.jsx)(Jd,{}),(0,ec.jsx)(JS,{}),(0,ec.jsx)(zX,{})]}),(0,ec.jsx)(QU,{})]})})},n.locale)})})]})},{})})),Rm()})();
156//# sourceMappingURL=main.js.map
157
158//# debugId=fb994f74-94f4-5003-9ab4-d3d1843e1f5d

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.