PageSourceSearch

https://statewide-cwpp-storymap.base44.app/assets/index-DBgd2iA3.js

js statewide-cwpp-storymap.base44.app collected 2026-10-03 03:08:53 UTC 687,621 bytes, 365 lines download raw bytes

vendor: 6,466 bytes, lines 1-9
1var lx=Object.defineProperty;var Tg=e=>{throw TypeError(e)};var ux=(e,n,i)=>n in e?lx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var ut=(e,n,i)=>ux(e,typeof n!="symbol"?n+"":n,i),Jh=(e,n,i)=>n.has(e)||Tg("Cannot "+i);var U=(e,n,i)=>(Jh(e,n,"read from private field"),i?i.call(e):n.get(e)),Re=(e,n,i)=>n.has(e)?Tg("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,i),ge=(e,n,i,o)=>(Jh(e,n,"write to private field"),o?o.call(e,i):n.set(e,i),i),Ke=(e,n,i)=>(Jh(e,n,"access private method"),i);var Nc=(e,n,i,o)=>({set _(u){ge(e,n,u,i)},get _(){return U(e,n,o)}});function cx(e,n){for(var i=0;i<n.length;i++){const o=n[i];if(typeof o!="string"&&!Array.isArray(o)){for(const u in o)if(u!=="default"&&!(u in e)){const h=Object.getOwnPropertyDescriptor(o,u);h&&Object.defineProperty(e,u,h.get?h:{enumerable:!0,get:()=>o[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const h of u)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function i(u){const h={};return u.integrity&&(h.integrity=u.integrity),u.referrerPolicy&&(h.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?h.credentials="include":u.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(u){if(u.ep)return;u.ep=!0;const h=i(u);fetch(u.href,h)}})();function hd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ef={exports:{}},Nl={},tf={exports:{}},$e={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Ng;function dx(){if(Ng)return $e;Ng=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.iterator;function P(z){return z===null||typeof z!="object"?null:(z=S&&z[S]||z["@@iterator"],typeof z=="function"?z:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,T={};function N(z,ee,_e){this.props=z,this.context=ee,this.refs=T,this.updater=_e||O}N.prototype.isReactComponent={},N.prototype.setState=function(z,ee){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,ee,"setState")},N.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function R(){}R.prototype=N.prototype;function B(z,ee,_e){this.props=z,this.context=ee,this.refs=T,this.updater=_e||O}var M=B.prototype=new R;M.constructor=B,F(M,N.prototype),M.isPureReactComponent=!0;var j=Array.isArray,$=Object.prototype.hasOwnProperty,Q={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function q(z,ee,_e){var me,ce={},ne=null,Pe=null;if(ee!=null)for(me in ee.ref!==void 0&&(Pe=ee.ref),ee.key!==void 0&&(ne=""+ee.key),ee)$.call(ee,me)&&!G.hasOwnProperty(me)&&(ce[me]=ee[me]);var ze=arguments.length-2;if(ze===1)ce.children=_e;else if(1<ze){for(var Ae=Array(ze),yt=0;yt<ze;yt++)Ae[yt]=arguments[yt+2];ce.children=Ae}if(z&&z.defaultProps)for(me in ze=z.defaultProps,ze)ce[me]===void 0&&(ce[me]=ze[me]);return{$$typeof:e,type:z,key:ne,ref:Pe,props:ce,_owner:Q.current}}function ue(z,ee){return{$$typeof:e,type:z.type,key:ee,ref:z.ref,props:z.props,_owner:z._owner}}function ae(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function pe(z){var ee={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(_e){return ee[_e]})}var Oe=/\/+/g;function Ye(z,ee){return typeof z=="object"&&z!==null&&z.key!=null?pe(""+z.key):ee.toString(36)}function Fe(z,ee,_e,me,ce){var ne=typeof z;(ne==="undefined"||ne==="boolean")&&(z=null);var Pe=!1;if(z===null)Pe=!0;else switch(ne){case"string":case"number":Pe=!0;break;case"object":switch(z.$$typeof){case e:case n:Pe=!0}}if(Pe)return Pe=z,ce=ce(Pe),z=me===""?"."+Ye(Pe,0):me,j(ce)?(_e="",z!=null&&(_e=z.replace(Oe,"$&/")+"/"),Fe(ce,ee,_e,"",function(yt){return yt})):ce!=null&&(ae(ce)&&(ce=ue(ce,_e+(!ce.key||Pe&&Pe.key===ce.key?"":(""+ce.key).replace(Oe,"$&/")+"/")+z)),ee.push(ce)),1;if(Pe=0,me=me===""?".":me+":",j(z))for(var ze=0;ze<z.length;ze++){ne=z[ze];var Ae=me+Ye(ne,ze);Pe+=Fe(ne,ee,_e,Ae,ce)}else if(Ae=P(z),typeof Ae=="function")for(z=Ae.call(z),ze=0;!(ne=z.next()).done;)ne=ne.value,Ae=me+Ye(ne,ze++),Pe+=Fe(ne,ee,_e,Ae,ce);else if(ne==="object")throw ee=String(z),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.");return Pe}function et(z,ee,_e){if(z==null)return z;var me=[],ce=0;return Fe(z,me,"","",function(ne){return ee.call(_e,ne,ce++)}),me}function ye(z){if(z._status===-1){var ee=z._result;ee=ee(),ee.then(function(_e){(z._status===0||z._status===-1)&&(z._status=1,z._result=_e)},function(_e){(z._status===0||z._status===-1)&&(z._status=2,z._result=_e)}),z._status===-1&&(z._status=0,z._result=ee)}if(z._status===1)return z._result.default;throw z._result}var Be={current:null},te={transition:null},Se={ReactCurrentDispatcher:Be,ReactCurrentBatchConfig:te,ReactCurrentOwner:Q};function V(){throw Error("act(...) is not supported in production builds of React.")}return $e.Children={map:et,forEach:function(z,ee,_e){et(z,function(){ee.apply(this,arguments)},_e)},count:function(z){var ee=0;return et(z,function(){ee++}),ee},toArray:function(z){return et(z,function(ee){return ee})||[]},only:function(z){if(!ae(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},$e.Component=N,$e.Fragment=i,$e.Profiler=u,$e.PureComponent=B,$e.StrictMode=o,$e.Suspense=y,$e.__SECRET_INT
vendor: 5,220 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Se,$e.act=V,$e.cloneElement=function(z,ee,_e){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var me=F({},z.props),ce=z.key,ne=z.ref,Pe=z._owner;if(ee!=null){if(ee.ref!==void 0&&(ne=ee.ref,Pe=Q.current),ee.key!==void 0&&(ce=""+ee.key),z.type&&z.type.defaultProps)var ze=z.type.defaultProps;for(Ae in ee)$.call(ee,Ae)&&!G.hasOwnProperty(Ae)&&(me[Ae]=ee[Ae]===void 0&&ze!==void 0?ze[Ae]:ee[Ae])}var Ae=arguments.length-2;if(Ae===1)me.children=_e;else if(1<Ae){ze=Array(Ae);for(var yt=0;yt<Ae;yt++)ze[yt]=arguments[yt+2];me.children=ze}return{$$typeof:e,type:z.type,key:ce,ref:ne,props:me,_owner:Pe}},$e.createContext=function(z){return z={$$typeof:f,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:h,_context:z},z.Consumer=z},$e.createElement=q,$e.createFactory=function(z){var ee=q.bind(null,z);return ee.type=z,ee},$e.createRef=function(){return{current:null}},$e.forwardRef=function(z){return{$$typeof:p,render:z}},$e.isValidElement=ae,$e.lazy=function(z){return{$$typeof:b,_payload:{_status:-1,_result:z},_init:ye}},$e.memo=function(z,ee){return{$$typeof:x,type:z,compare:ee===void 0?null:ee}},$e.startTransition=function(z){var ee=te.transition;te.transition={};try{z()}finally{te.transition=ee}},$e.unstable_act=V,$e.useCallback=function(z,ee){return Be.current.useCallback(z,ee)},$e.useContext=function(z){return Be.current.useContext(z)},$e.useDebugValue=function(){},$e.useDeferredValue=function(z){return Be.current.useDeferredValue(z)},$e.useEffect=function(z,ee){return Be.current.useEffect(z,ee)},$e.useId=function(){return Be.current.useId()},$e.useImperativeHandle=function(z,ee,_e){return Be.current.useImperativeHandle(z,ee,_e)},$e.useInsertionEffect=function(z,ee){return Be.current.useInsertionEffect(z,ee)},$e.useLayoutEffect=function(z,ee){return Be.current.useLayoutEffect(z,ee)},$e.useMemo=function(z,ee){return Be.current.useMemo(z,ee)},$e.useReducer=function(z,ee,_e){return Be.current.useReducer(z,ee,_e)},$e.useRef=function(z){return Be.current.useRef(z)},$e.useState=function(z){return Be.current.useState(z)},$e.useSyncExternalStore=function(z,ee,_e){return Be.current.useSyncExternalStore(z,ee,_e)},$e.useTransition=function(){return Be.current.useTransition()},$e.version="18.3.1",$e}var Lg;function lp(){return Lg||(Lg=1,tf.exports=dx()),tf.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Rg;function hx(){if(Rg)return Nl;Rg=1;var e=lp(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,u=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function f(p,y,x){var b,S={},P=null,O=null;x!==void 0&&(P=""+x),y.key!==void 0&&(P=""+y.key),y.ref!==void 0&&(O=y.ref);for(b in y)o.call(y,b)&&!h.hasOwnProperty(b)&&(S[b]=y[b]);if(p&&p.defaultProps)for(b in y=p.defaultProps,y)S[b]===void 0&&(S[b]=y[b]);return{$$typeof:n,type:p,key:P,ref:O,props:S,_owner:u.current}}return Nl.Fragment=i,Nl.jsx=f,Nl.jsxs=f,Nl}var Og;function fx(){return Og||(Og=1,ef.exports=hx()),ef.exports}var v=fx(),k=lp();const nd=hd(k),fd=cx({__proto__:null,default:nd},[k]);var Lc={},nf={exports:{}},_n={},rf={exports:{}},sf={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Ag;function px(){return Ag||(Ag=1,(function(e){function n(te,Se){var V=te.length;te.push(Se);e:for(;0<V;){var z=V-1>>>1,ee=te[z];if(0<u(ee,Se))te[z]=Se,te[V]=ee,V=z;else break e}}function i(te){return te.length===0?null:te[0]}function o(te){if(te.length===0)return null;var Se=te[0],V=te.pop();if(V!==Se){te[0]=V;e:for(var z=0,ee=te.length,_e=ee>>>1;z<_e;){var me=2*(z+1)-1,ce=te[me],ne=me+1,Pe=te[ne];if(0>u(ce,V))ne<ee&&0>u(Pe,ce)?(te[z]=Pe,te[ne]=V,z=ne):(te[z]=ce,te[me]=V,z=me);else if(ne<ee&&0>u(Pe,V))te[z]=Pe,te[ne]=V,z=ne;else break e}}return Se}function u(te,Se){var V=te.sortIndex-Se.sortIndex;return V!==0?V:te.id-Se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;e.unstable_now=function(){return h.now()}}else{var f=Date,p=f.now();e.unstable_now=function(){return f.now()-p}}var y=[],x=[],b=1,S=null,P=3,O=!1,F=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(te){for(var Se=i(x);Se!==null;){if(Se.callback===null)o(x);else if(Se.startTime<=te)o(x),Se.sortIndex=Se.expirationTime,n(y,Se);else break;Se=i(x)}}function j(te){if(T=!1,M(te),!F)if(i(y)!==null)F=!0,ye($);else{var Se=i(x);Se!==null&&Be(j,Se.startTime-te)}}
vendor: 17,865 bytes, lines 25-37
25function $(te,Se){F=!1,T&&(T=!1,R(q),q=-1),O=!0;var V=P;try{for(M(Se),S=i(y);S!==null&&(!(S.expirationTime>Se)||te&&!pe());){var z=S.callback;if(typeof z=="function"){S.callback=null,P=S.priorityLevel;var ee=z(S.expirationTime<=Se);Se=e.unstable_now(),typeof ee=="function"?S.callback=ee:S===i(y)&&o(y),M(Se)}else o(y);S=i(y)}if(S!==null)var _e=!0;else{var me=i(x);me!==null&&Be(j,me.startTime-Se),_e=!1}return _e}finally{S=null,P=V,O=!1}}var Q=!1,G=null,q=-1,ue=5,ae=-1;function pe(){return!(e.unstable_now()-ae<ue)}function Oe(){if(G!==null){var te=e.unstable_now();ae=te;var Se=!0;try{Se=G(!0,te)}finally{Se?Ye():(Q=!1,G=null)}}else Q=!1}var Ye;if(typeof B=="function")Ye=function(){B(Oe)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,et=Fe.port2;Fe.port1.onmessage=Oe,Ye=function(){et.postMessage(null)}}else Ye=function(){N(Oe,0)};function ye(te){G=te,Q||(Q=!0,Ye())}function Be(te,Se){q=N(function(){te(e.unstable_now())},Se)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(te){te.callback=null},e.unstable_continueExecution=function(){F||O||(F=!0,ye($))},e.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<te?Math.floor(1e3/te):5},e.unstable_getCurrentPriorityLevel=function(){return P},e.unstable_getFirstCallbackNode=function(){return i(y)},e.unstable_next=function(te){switch(P){case 1:case 2:case 3:var Se=3;break;default:Se=P}var V=P;P=Se;try{return te()}finally{P=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(te,Se){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var V=P;P=te;try{return Se()}finally{P=V}},e.unstable_scheduleCallback=function(te,Se,V){var z=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?z+V:z):V=z,te){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=V+ee,te={id:b++,callback:Se,priorityLevel:te,startTime:V,expirationTime:ee,sortIndex:-1},V>z?(te.sortIndex=V,n(x,te),i(y)===null&&te===i(x)&&(T?(R(q),q=-1):T=!0,Be(j,V-z))):(te.sortIndex=ee,n(y,te),F||O||(F=!0,ye($))),te},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(te){var Se=P;return function(){var V=P;P=Se;try{return te.apply(this,arguments)}finally{P=V}}}})(sf)),sf}var jg;function mx(){return jg||(jg=1,rf.exports=px()),rf.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Mg;function gx(){if(Mg)return _n;Mg=1;var e=lp(),n=mx();function i(t){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,u={};function h(t,s){f(t,s),f(t+"Capture",s)}function f(t,s){for(u[t]=s,t=0;t<s.length;t++)o.add(s[t])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,x=/^[: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]*$/,b={},S={};function P(t){return y.call(S,t)?!0:y.call(b,t)?!1:x.test(t)?S[t]=!0:(b[t]=!0,!1)}function O(t,s,l,d){if(l!==null&&l.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function F(t,s,l,d){if(s===null||typeof s>"u"||O(t,s,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function T(t,s,l,d,g,_,E){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=l,this.propertyName=t,this.type=s,this.sanitizeURL=_,this.removeEmptyString=E}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){N[t]=new T(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var s=t[0];N[s]=new T(s,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){N[t]=new T(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){N[t]=new T(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){N[t]=new T(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){N[t]=new T(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){N[t]=new T(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){N[t]=new T(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){N[t]=new T(t,5,!1,t.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function B(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var s=t.replace(R,B);N[s]=new T(s,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var s=t.replace(R,B);N[s]=new T(s,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var s=t.replace(R,B);N[s]=new T(s,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){N[t]=new T(t,1,!1,t.toLowerCase(),null,!1,!1)}),N.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){N[t]=new T(t,1,!1,t.toLowerCase(),null,!0,!0)});function M(t,s,l,d){var g=N.hasOwnProperty(s)?N[s]:null;(g!==null?g.type!==0:d||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(F(s,l,g,d)&&(l=null),d||g===null?P(s)&&(l===null?t.removeAttribute(s):t.setAttribute(s,""+l)):g.mustUseProperty?t[g.propertyName]=l===null?g.type===3?!1:"":l:(s=g.attributeName,d=g.attributeNamespace,l===null?t.removeAttribute(s):(g=g.type,l=g===3||g===4&&l===!0?"":""+l,d?t.setAttributeNS(d,s,l):t.setAttribute(s,l))))}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.element"),Q=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),pe=Symbol.for("react.context"),Oe=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),Be=Symbol.for("react.offscreen"),te=Symbol.iterator;function Se(t){return t===null||typeof t!="object"?null:(t=te&&t[te]||t["@@iterator"],typeof t=="function"?t:null)}var V=Object.assign,z;function ee(t){if(z===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);z=s&&s[1]||""}return`
34`+z+t}var _e=!1;function me(t,s){if(!t||_e)return"";_e=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(J){var d=J}Reflect.construct(t,[],s)}else{try{s.call()}catch(J){d=J}t.call(s.prototype)}else{try{throw Error()}catch(J){d=J}t()}}catch(J){if(J&&d&&typeof J.stack=="string"){for(var g=J.stack.split(`
35`),_=d.stack.split(`
36`),E=g.length-1,A=_.length-1;1<=E&&0<=A&&g[E]!==_[A];)A--;for(;1<=E&&0<=A;E--,A--)if(g[E]!==_[A]){if(E!==1||A!==1)do if(E--,A--,0>A||g[E]!==_[A]){var D=`
37`+g[E].replace(" at new "," at ");return t.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",t.displayName)),D}while(1<=E&&0<=A);break}}}finally{_e=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?ee(t):""}function ce(t){switch(t.tag){case 5:return ee(t.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return t=me(t.type,!1),t;case 11:return t=me(t.type.render,!1),t;case 1:return t=me(t.type,!0),t;default:return""}}function ne(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case G:return"Fragment";case Q:return"Portal";case ue:return"Profiler";case q:return"StrictMode";case Ye:return"Suspense";case Fe:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case pe:return(t.displayName||"Context")+".Consumer";case ae:return(t._context.displayName||"Context")+".Provider";case Oe:var s=t.render;return t=t.displayName,t||(t=s.displayName||s.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case et:return s=t.displayName||null,s!==null?s:ne(t.type)||"Memo";case ye:s=t._payload,t=t._init;try{return ne(t(s))}catch{}}return null}function Pe(t){var s=t.type;switch(t.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=s.render,t=t.displayName||t.name||"",s.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ne(s);case 8:return s===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ze(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ae(t){var s=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function yt(t){var s=Ae(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,s),d=""+t[s];if(!t.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var g=l.get,_=l.set;return Object.defineProperty(t,s,{configurable:!0,get:function(){return g.call(this)},set:function(E){d=""+E,_.call(this,E)}}),Object.defineProperty(t,s,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(E){d=""+E},stopTracking:function(){t._valueTracker=null,delete t[s]}}}}function Wt(t){t._valueTracker||(t._valueTracker=yt(t))}function ft(t){if(!t)return!1;var s=t._valueTracker;if(!s)return!0;var l=s.getValue(),d="";return t&&(d=Ae(t)?t.checked?"true":"false":t.value),t=d,t!==l?(s.setValue(t),!0):!1}function nn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function dn(t,s){var l=s.checked;return V({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function rn(t,s){var l=s.defaultValue==null?"":s.defaultValue,d=s.checked!=null?s.checked:s.defaultChecked;l=ze(s.value!=null?s.value:l),t._wrapperState={initialChecked:d,initialValue:l,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Me(t,s){s=s.checked,s!=null&&M(t,"checked",s,!1)}function bt(t,s){Me(t,s);var l=ze(s.value),d=s.type;if(l!=null)d==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(d==="submit"||d==="reset"){t.removeAttribute("value");return}s.hasOwnProperty("value")?kn(t,s.type,l):s.hasOwnProperty("defaultValue")&&kn(t,s.type,ze(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(t.defaultChecked=!!s.defaultChecked)}function $t(t,s,l){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var d=s.type;if(!(d!=="submit"&&d!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+t._wrapperState.initialValue,l||s===t.value||(t.value=s),t.defaultValue=s}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function kn(t,s,l){(s!=="number"||nn(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var Jn=Array.isArray;function In(t,s,l,d){if(t=t.options,s){s={};for(var g=0;g<l.length;g++)s["$"+l[g]]=!0;for(l=0;l<t.length;l++)g=s.hasOwnProperty("$"+t[l].value),t[l].selected!==g&&(t[l].selected=g),g&&d&&(t[l].defaultSelected=!0)}else{for(l=""+ze(l),s=null,g=0;g<t.length;g++){if(t[g].value===l){t[g].selected=!0,d&&(t[g].defaultSelected=!0);return}s!==null||t[g].disabled||(s=t[g])}s!==null&&(s.selected=!0)}}function zn(t,s){if(s.dangerouslySetInnerHTML!=null)throw Error(i(91));return V({},s,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Aa(t,s){var l=s.value;if(l==null){if(l=s.children,s=s.defaultValue,l!=null){if(s!=null)throw Error(i(92));if(Jn(l)){if(1<l.length)throw Error(i(93));l=l[0]}s=l}s==null&&(s=""),l=s}t._wrapperState={initialValue:ze(l)}}function au(t,s){var l=ze(s.value),d=ze(s.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),s.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),d!=null&&(t.defaultValue=""+d)}function lu(t){var s=t.textContent;s===t._wrapperState.initialValue&&s!==""&&s!==null&&(t.value=s)}function fo(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function po(t,s){return t==null||t==="http://www.w3.org/1999/xhtml"?fo(s):t==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var hs,uu=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,l,d,g){MSApp.execUnsafeLocalFunction(function(){return t(s,l,d,g)})}:t})(function(t,s){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=s;else{for(hs=hs||document.createElement("div"),hs.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=hs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;s.firstChild;)t.appendChild(s.firstChild)}});function ci(t,s){if(s){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=s;return}}t.textContent=s}var di={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},Nd=["Webkit","ms","Moz","O"];Object.keys(di).forEach(function(t){Nd.forEach(function(s){s=s+t.charAt(0).toUpperCase()+t.substring(1),di[s]=di[t]})});function ja(t,s,l){return s==null||typeof s=="boolean"||s===""?"":l||typeof s!="number"||s===0||di.hasOwnProperty(t)&&di[t]?(""+s).trim():s+"px"}function mo(t,s){t=t.style;for(var l in s)if(s.hasOwnProperty(l)){var d=l.indexOf("--")===0,g=ja(l,s[l],d);l==="float"&&(l="cssFloat"),d?t.setProperty(l,g):t[l]=g}}var cu=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ma(t,s){if(s){if(cu[t]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(i(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(i(61))}if(s.style!=null&&typeof s.style!="object")throw Error(i(62))}}function Mr(t,s){if(t.indexOf("-")===-1)return typeof s.is=="str
37ing";switch(t){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 Ia=null;function za(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var go=null,Ir=null,zr=null;function du(t){if(t=Gr(t)){if(typeof go!="function")throw Error(i(280));var s=t.stateNode;s&&(s=Wo(s),go(t.stateNode,t.type,s))}}function hu(t){Ir?zr?zr.push(t):zr=[t]:Ir=t}function fu(){if(Ir){var t=Ir,s=zr;if(zr=Ir=null,du(t),s)for(t=0;t<s.length;t++)du(s[t])}}function pu(t,s){return t(s)}function mu(){}var Da=!1;function vo(t,s,l){if(Da)return t(s,l);Da=!0;try{return pu(t,s,l)}finally{Da=!1,(Ir!==null||zr!==null)&&(mu(),fu())}}function fs(t,s){var l=t.stateNode;if(l===null)return null;var d=Wo(l);if(d===null)return null;l=d[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(t=t.type,d=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!d;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(i(231,s,typeof l));return l}var Fa=!1;if(p)try{var ps={};Object.defineProperty(ps,"passive",{get:function(){Fa=!0}}),window.addEventListener("test",ps,ps),window.removeEventListener("test",ps,ps)}catch{Fa=!1}function Ld(t,s,l,d,g,_,E,A,D){var J=Array.prototype.slice.call(arguments,3);try{s.apply(l,J)}catch(se){this.onError(se)}}var qt=!1,Ee=null,ms=!1,yo=null,gu={onError:function(t){qt=!0,Ee=t}};function vu(t,s,l,d,g,_,E,A,D){qt=!1,Ee=null,Ld.apply(gu,arguments)}function Ba(t,s,l,d,g,_,E,A,D){if(vu.apply(this,arguments),qt){if(qt){var J=Ee;qt=!1,Ee=null}else throw Error(i(198));ms||(ms=!0,yo=J)}}function vr(t){var s=t,l=t;if(t.alternate)for(;s.return;)s=s.return;else{t=s;do s=t,(s.flags&4098)!==0&&(l=s.return),t=s.return;while(t)}return s.tag===3?l:null}function Dr(t){if(t.tag===13){var s=t.memoizedState;if(s===null&&(t=t.alternate,t!==null&&(s=t.memoizedState)),s!==null)return s.dehydrated}return null}function Ua(t){if(vr(t)!==t)throw Error(i(188))}function Rd(t){var s=t.alternate;if(!s){if(s=vr(t),s===null)throw Error(i(188));return s!==t?null:t}for(var l=t,d=s;;){var g=l.return;if(g===null)break;var _=g.alternate;if(_===null){if(d=g.return,d!==null){l=d;continue}break}if(g.child===_.child){for(_=g.child;_;){if(_===l)return Ua(g),t;if(_===d)return Ua(g),s;_=_.sibling}throw Error(i(188))}if(l.return!==d.return)l=g,d=_;else{for(var E=!1,A=g.child;A;){if(A===l){E=!0,l=g,d=_;break}if(A===d){E=!0,d=g,l=_;break}A=A.sibling}if(!E){for(A=_.child;A;){if(A===l){E=!0,l=_,d=g;break}if(A===d){E=!0,d=_,l=g;break}A=A.sibling}if(!E)throw Error(i(189))}}if(l.alternate!==d)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?t:s}function yu(t){return t=Rd(t),t!==null?_u(t):null}function _u(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var s=_u(t);if(s!==null)return s;t=t.sibling}return null}var wu=n.unstable_scheduleCallback,Ha=n.unstable_cancelCallback,Od=n.unstable_shouldYield,_o=n.unstable_requestPaint,pt=n.unstable_now,Ad=n.unstable_getCurrentPriorityLevel,Wa=n.unstable_ImmediatePriority,xu=n.unstable_UserBlockingPriority,wo=n.unstable_NormalPriority,$a=n.unstable_LowPriority,hi=n.unstable_IdlePriority,gs=null,En=null;function vs(t){if(En&&typeof En.onCommitFiberRoot=="function")try{En.onCommitFiberRoot(gs,t,void 0,(t.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:fi,ct=Math.log,xo=Math.LN2;function fi(t){return t>>>=0,t===0?32:31-(ct(t)/xo|0)|0}var er=64,pi=4194304;function De(t){switch(t&-t){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function at(t,s){var l=t.pendingLanes;if(l===0)return 0;var d=0,g=t.suspendedLanes,_=t.pingedLanes,E=l&268435455;if(E!==0){var A=E&~g;A!==0?d=De(A):(_&=E,_!==0&&(d=De(_)))}else E=l&~g,E!==0?d=De(E):_!==0&&(d=De(_));if(d===0)return 0;if(s!==0&&s!==d&&(s&g)===0&&(g=d&-d,_=s&-s,g>=_||g===16&&(_&4194240)!==0))return s;if((d&4)!==0&&(d|=l&16),s=t.entangledLanes,s!==0)for(t=t.entanglements,s&=d;0<s;)l=31-Ue(s),g=1<<l,d|=t[l],s&=~g;return d}function qa(t,s){switch(t){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bo(t,s){for(var l=t.suspendedLanes,d=t.pingedLanes,g=t.expirationTimes,_=t.pendingLanes;0<_;){var E=31-Ue(_),A=1<<E,D=g[E];D===-1?((A&l)===0||(A&d)!==0)&&(g[E]=qa(A,s)):D<=s&&(t.expiredLanes|=A),_&=~A}}function Vt(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function bu(){var t=er;return er<<=1,(er&4194240)===0&&(er=64),t}function mi(t){for(var s=[],l=0;31>l;l++)s.push(t);return s}function Cn(t,s,l){t.pendingLanes|=s,s!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,s=31-Ue(s),t[s]=l}function _t(t,s){var l=t.pendingLanes&~s;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=s,t.mutableReadLanes&=s,t.entangledLanes&=s,s=t.entanglements;var d=t.eventTimes;for(t=t.expirationTimes;0<l;){var g=31-Ue(l),_=1<<g;s[g]=0,d[g]=-1,t[g]=-1,l&=~_}}function tr(t,s){var l=t.entangledLanes|=s;for(t=t.entanglements;l;){var d=31-Ue(l),g=1<<d;g&s|t[d]&s&&(t[d]|=s),l&=~g}}var Ze=0;function gi(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var So,Fr,ko,Eo,ys,_s=!1,vi=[],Pn=null,nr=null,Dn=null,ws=new Map,je=new Map,Nt=[],st="mou
37sedown 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 submit".split(" ");function Va(t,s){switch(t){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":ws.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":je.delete(s.pointerId)}}function Br(t,s,l,d,g,_){return t===null||t.nativeEvent!==_?(t={blockedOn:s,domEventName:l,eventSystemFlags:d,nativeEvent:_,targetContainers:[g]},s!==null&&(s=Gr(s),s!==null&&Fr(s)),t):(t.eventSystemFlags|=d,s=t.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),t)}function Za(t,s,l,d,g){switch(s){case"focusin":return Pn=Br(Pn,t,s,l,d,g),!0;case"dragenter":return nr=Br(nr,t,s,l,d,g),!0;case"mouseover":return Dn=Br(Dn,t,s,l,d,g),!0;case"pointerover":var _=g.pointerId;return ws.set(_,Br(ws.get(_)||null,t,s,l,d,g)),!0;case"gotpointercapture":return _=g.pointerId,je.set(_,Br(je.get(_)||null,t,s,l,d,g)),!0}return!1}function Co(t){var s=Kr(t.target);if(s!==null){var l=vr(s);if(l!==null){if(s=l.tag,s===13){if(s=Dr(l),s!==null){t.blockedOn=s,ys(t.priority,function(){ko(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Fn(t){if(t.blockedOn!==null)return!1;for(var s=t.targetContainers;0<s.length;){var l=No(t.domEventName,t.eventSystemFlags,s[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var d=new l.constructor(l.type,l);Ia=d,l.target.dispatchEvent(d),Ia=null}else return s=Gr(l),s!==null&&Fr(s),t.blockedOn=l,!1;s.shift()}return!0}function Po(t,s,l){Fn(t)&&l.delete(s)}function xs(){_s=!1,Pn!==null&&Fn(Pn)&&(Pn=null),nr!==null&&Fn(nr)&&(nr=null),Dn!==null&&Fn(Dn)&&(Dn=null),ws.forEach(Po),je.forEach(Po)}function mt(t,s){t.blockedOn===s&&(t.blockedOn=null,_s||(_s=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,xs)))}function Tn(t){function s(g){return mt(g,t)}if(0<vi.length){mt(vi[0],t);for(var l=1;l<vi.length;l++){var d=vi[l];d.blockedOn===t&&(d.blockedOn=null)}}for(Pn!==null&&mt(Pn,t),nr!==null&&mt(nr,t),Dn!==null&&mt(Dn,t),ws.forEach(s),je.forEach(s),l=0;l<Nt.length;l++)d=Nt[l],d.blockedOn===t&&(d.blockedOn=null);for(;0<Nt.length&&(l=Nt[0],l.blockedOn===null);)Co(l),l.blockedOn===null&&Nt.shift()}var Ur=j.ReactCurrentBatchConfig,bs=!0;function jd(t,s,l,d){var g=Ze,_=Ur.transition;Ur.transition=null;try{Ze=1,Ss(t,s,l,d)}finally{Ze=g,Ur.transition=_}}function Su(t,s,l,d){var g=Ze,_=Ur.transition;Ur.transition=null;try{Ze=4,Ss(t,s,l,d)}finally{Ze=g,Ur.transition=_}}function Ss(t,s,l,d){if(bs){var g=No(t,s,l,d);if(g===null)r(t,s,d,To,l),Va(t,d);else if(Za(g,t,s,l,d))d.stopPropagation();else if(Va(t,d),s&4&&-1<st.indexOf(t)){for(;g!==null;){var _=Gr(g);if(_!==null&&So(_),_=No(t,s,l,d),_===null&&r(t,s,d,To,l),_===g)break;g=_}g!==null&&d.stopPropagation()}else r(t,s,d,null,l)}}var To=null;function No(t,s,l,d){if(To=null,t=za(d),t=Kr(t),t!==null)if(s=vr(t),s===null)t=null;else if(l=s.tag,l===13){if(t=Dr(s),t!==null)return t;t=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;t=null}else s!==t&&(t=null);return To=t,null}function qe(t){switch(t){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ad()){case Wa:return 1;case xu:return 4;case wo:case $a:return 16;case hi:return 536870912;default:return 16}default:return 16}}var yr=null,sn=null,_r=null;
vendor: 20,612 bytes, lines 37-38
37function Ka(){if(_r)return _r;var t,s=sn,l=s.length,d,g="value"in yr?yr.value:yr.textContent,_=g.length;for(t=0;t<l&&s[t]===g[t];t++);var E=l-t;for(d=1;d<=E&&s[l-d]===g[_-d];d++);return _r=g.slice(t,1<d?1-d:void 0)}function Lo(t){var s=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&s===13&&(t=13)):t=s,t===10&&(t=13),32<=t||t===13?t:0}function yi(){return!0}function ku(){return!1}function Zt(t){function s(l,d,g,_,E){this._reactName=l,this._targetInst=g,this.type=d,this.nativeEvent=_,this.target=E,this.currentTarget=null;for(var A in t)t.hasOwnProperty(A)&&(l=t[A],this[A]=l?l(_):_[A]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?yi:ku,this.isPropagationStopped=ku,this}return V(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=yi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=yi)},persist:function(){},isPersistent:yi}),s}var _i={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ga=Zt(_i),Hr=V({},_i,{view:0,detail:0}),Md=Zt(Hr),hn,Qa,wi,Nn=V({},Hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$r,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==wi&&(wi&&t.type==="mousemove"?(hn=t.screenX-wi.screenX,Qa=t.screenY-wi.screenY):Qa=hn=0,wi=t),hn)},movementY:function(t){return"movementY"in t?t.movementY:Qa}}),Ya=Zt(Nn),Eu=V({},Nn,{dataTransfer:0}),Xa=Zt(Eu),Id=V({},Hr,{relatedTarget:0}),Ro=Zt(Id),Cu=V({},_i,{animationName:0,elapsedTime:0,pseudoElement:0}),zd=Zt(Cu),Dd=V({},_i,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ja=Zt(Dd),Fd=V({},_i,{data:0}),el=Zt(Fd),Pu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Oo={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"},Wr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bd(t){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(t):(t=Wr[t])?!!s[t]:!1}function $r(){return Bd}var fn=V({},Hr,{key:function(t){if(t.key){var s=Pu[t.key]||t.key;if(s!=="Unidentified")return s}return t.type==="keypress"?(t=Lo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Oo[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$r,charCode:function(t){return t.type==="keypress"?Lo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Lo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Tu=Zt(fn),Nu=V({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lu=Zt(Nu),tl=V({},Hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$r}),nl=Zt(tl),Ud=V({},_i,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hd=Zt(Ud),Ru=V({},Nn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Wd=Zt(Ru),Ln=[9,13,27,32],wr=p&&"CompositionEvent"in window,ks=null;p&&"documentMode"in document&&(ks=document.documentMode);var rr=p&&"TextEvent"in window&&!ks,Ou=p&&(!wr||ks&&8<ks&&11>=ks),qr=" ",Au=!1;function xi(t,s){switch(t){case"keyup":return Ln.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rl(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ir=!1;function $d(t,s){switch(t){case"compositionend":return rl(s);case"keypress":return s.which!==32?null:(Au=!0,qr);case"textInput":return t=s.data,t===qr&&Au?null:t;default:return null}}function xr(t,s){if(ir)return t==="compositionend"||!wr&&xi(t,s)?(t=Ka(),_r=sn=yr=null,ir=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Ou&&s.locale!=="ko"?null:s.data;default:return null}}var Ao={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 ju(t){var s=t&&t.nodeName&&t.nodeName.toLowerCase();return s==="input"?!!Ao[t.type]:s==="textarea"}function jo(t,s,l,d){hu(d),s=c(s,"onChange"),0<s.length&&(l=new Ga("onChange","change",null,l,d),t.push({event:l,listeners:s}))}var Es=null,on=null;function qd(t){hl(t,0)}function sr(t){var s=Qr(t);if(ft(s))return t}function Vd(t,s){if(t==="change")return s}var Bn=!1;if(p){var bi;if(p){var Mo="oninput"in document;if(!Mo){var Io=document.createElement("div");Io.setAttribute("oninput","return;"),Mo=typeof Io.oninput=="function"}bi=Mo}else bi=!1;Bn=bi&&(!document.documentMode||9<document.documentMode)}function Cs(){Es&&(Es.detachEvent("onpropertychange",zo),on=Es=null)}function zo(t){if(t.propertyName==="value"&&sr(on)){var s=[];jo(s,on,t,za(t)),vo(qd,s)}}function Do(t,s,l){t==="focusin"?(Cs(),Es=s,on=l,Es.attachEvent("onpropertychange",zo)):t==="focusout"&&Cs()}function Si(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return sr(on)}function Fo(t,s){if(t==="click")return sr(s)}function il(t,s){if(t==="input"||t==="change")return sr(s)}function Mu(t,s){return t===s&&(t!==0||1/t===1/s)||t!==t&&s!==s}var Rn=typeof Object.is=="function"?Object.is:Mu;function br(t,s){if(Rn(t,s))return!0;if(typeof t!="object"||t===null||typeof s!="object"||s===null)return!1;var l=Object.keys(t),d=Object.keys(s);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var g=l[d];if(!y.call(s,g)||!Rn(t[g],s[g]))return!1}return!0}function Iu(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function sl(t,s){var l=Iu(t);t=0;for(var d;l;){if(l.nodeType===3){if(d=t+l.textContent.length,t<=s&&d>=s)return{node:l,offset:s-t};t=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Iu(l)}}function zu(t,s){return t&&s?t===s?!0:t&&t.nodeType===3?!1:s&&s.nodeType===3?zu(t,s.parentNode):"contains"in t?t.contains(s):t.compareDocumentPosition?!!(t.compareDocumentPosition(s)&16):!1:!1}function ol(){for(var t=window,s=nn();s instanceof t.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)t=s.contentWindow;else break;s=nn(t.document)}return s}function al(t){var s=t&&t.nodeName&&t.nodeName.toLowerCase();return s&&(s==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||s==="textarea"||t.contentEditable==="true")}function Un(t){var s=ol(),l=t.focusedElem,d=t.selectionRange;if(s!==l&&l&&l.ownerDocument&&zu(l.ownerDocument.documentElement,l)){if(d!==null&&al(l)){if(s=d.start,t=d.end,t===void 0&&(t=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(t,l.value.length);else if(t=(s=l.ownerDocument||document)&&s.defaultView||window,t.getSelection){t=t.getSelection();var g=l.textContent.length,_=Math.min(d.start,g);d=d.end===void 0?_:Math.min(d.end,g),!t.extend&&_>d&&(g=d,d=_,_=g),g=sl(l,_);var E=sl(l,d);g&&E&&(t.rangeCount!==1||t.anchorNode!==g.node||t.anchorOffset!==g.offset||t.focusNode!==E.node||t.focusOffset!==E.offset)&&(s=s.createRange(),s.setStart(g.node,g.offset),t.removeAllRanges(),_>d?(t.addRange(s),t.extend(E.node,E.offset)):(s.setEnd(E.node,E.offset),t.addRange(s)))}}for(s=[],t=l;t=t.parentNode;)t.nodeType===1&&s.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<s.length;l++)t=s[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Bo=p&&"documentMode"in document&&11>=document.documentMode,ki=null,Ei=null,Ps=null,Uo=!1;function Du(t,s,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Uo||ki==null||ki!==nn(d)||(d=ki,"selectionStart"in d&&al(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Ps&&br(Ps,d)||(Ps=d,d=c(Ei,"onSelect"),0<d.length&&(s=new Ga("onSelect","select",null,s,l),t.push({event:s,listeners:d}),s.target=ki)))}function Sr(t,s){var l={};return l[t.toLowerCase()]=s.toLowerCase(),l["Webkit"+t]="webkit"+s,l["Moz"+t]="moz"+s,l}var Ci={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},kr={},ll={};p&&(ll=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function Ts(t){if(kr[t])return kr[t];if(!Ci[t])return t;var s=Ci[t],l;for(l in s)if(s.hasOwnProperty(l)&&l in ll)return kr[t]=s[l];return t}var Fu=Ts("animationend"),Hn=Ts("animationiteration"),ul=Ts("animationstart"),cl=Ts("transitionend"),Pi=new Map,Bu="abort auxClick 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 On(t,s){Pi.set(t,s),h(s,[t])}for(var Vr=0;Vr<Bu.length;Vr++){var Ho=Bu[Vr],Uu=Ho.toLowerCase(),Zd=Ho[0].toUpperCase()+Ho.slice(1);On(Uu,"on"+Zd)}On(Fu,"onAnimationEnd"),On(Hn,"onAnimationIteration"),On(ul,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(cl,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ti="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(" "),Hu=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ti));function dl(t,s,l){var d=t.type||"unknown-event";t.currentTarget=l,Ba(d,s,void 0,t),t.currentTarget=null}function hl(t,s){s=(s&4)!==0;for(var l=0;l<t.length;l++){var d=t[l],g=d.event;d=d.listeners;e:{var _=void 0;if(s)for(var E=d.length-1;0<=E;E--){var A=d[E],D=A.instance,J=A.currentTarget;if(A=A.listener,D!==_&&g.isPropagationStopped())break e;dl(g,A,J),_=D}else for(E=0;E<d.length;E++){if(A=d[E],D=A.instance,J=A.currentTarget,A=A.listener,D!==_&&g.isPropagationStopped())break e;dl(g,A,J),_=D}}}if(ms)throw t=yo,ms=!1,yo=null,t}function ot(t,s){var l=s[Oi];l===void 0&&(l=s[Oi]=new Set);var d=t+"__bubble";l.has(d)||(Wu(s,t,2,!1),l.add(d))}function fl(t,s,l){var d=0;s&&(d|=4),Wu(l,t,d,s)}var Ns="_reactListening"+Math.random().toString(36).slice(2);function Ni(t){if(!t[Ns]){t[Ns]=!0,o.forEach(function(l){l!=="selectionchange"&&(Hu.has(l)||fl(l,!1,t),fl(l,!0,t))});var s=t.nodeType===9?t:t.ownerDocument;s===null||s[Ns]||(s[Ns]=!0,fl("selectionchange",!1,s))}}function Wu(t,s,l,d){switch(qe(s)){case 1:var g=jd;break;case 4:g=Su;break;default:g=Ss}l=g.bind(null,s,l,t),g=void 0,!Fa||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),d?g!==void 0?t.addEventListener(s,l,{capture:!0,passive:g}):t.addEventListener(s,l,!0):g!==void 0?t.addEventListener(s,l,{passive:g}):t.addEventListener(s,l,!1)}function r(t,s,l,d,g){var _=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var E=d.tag;if(E===3||E===4){var A=d.stateNode.containerInfo;if(A===g||A.nodeType===8&&A.parentNode===g)break;if(E===4)for(E=d.return;E!==null;){var D=E.tag;if((D===3||D===4)&&(D=E.stateNode.containerInfo,D===g||D.nodeType===8&&D.parentNode===g))return;E=E.return}for(;A!==null;){if(E=Kr(A),E===null)return;if(D=E.tag,D===5||D===6){d=_=E;continue e}A=A.parentNode}}d=d.return}vo(function(){var J=_,se=za(l),oe=[];e:{var ie=Pi.get(t);if(ie!==void 0){var fe=Ga,we=t;switch(t){case"keypress":if(Lo(l)===0)break e;case"keydown":case"keyup":fe=Tu;break;case"focusin":we="focus",fe=Ro;break;case"focusout":we="blur",fe=Ro;break;case"beforeblur":case"afterblur":fe=Ro;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=Ya;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=Xa;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=nl;break;case Fu:case Hn:case ul:fe=zd;break;case cl:fe=Hd;break;case"scroll":fe=Md;break;case"wheel":fe=Wd;break;case"copy":case"cut":case"paste":fe=Ja;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Lu}var ke=(s&4)!==0,St=!ke&&t==="scroll",K=ke?ie!==null?ie+"Capture":null:ie;ke=[];for(var H=J,Y;H!==null;){Y=H;var le=Y.stateNode;if(Y.tag===5&&le!==null&&(Y=le,K!==null&&(le=fs(H,K),le!=null&&ke.push(a(H,le,Y)))),St)break;H=H.return}0<ke.length&&(ie=new fe(ie,we,null,l,se),oe.push({event:ie,listeners:ke}))}}if((s&7)===0){e:{if(ie=t==="mouseover"||t==="pointerover",fe=t==="mouseout"||t==="pointerout",ie&&l!==Ia&&(we=l.relatedTarget||l.fromElement)&&(Kr(we)||we[tt]))break e;if((fe||ie)&&(ie=se.window===se?se:(ie=se.ownerDocument)?ie.defaultView||ie.parentWindow:window,fe?(we=l.relatedTarget||l.toElement,fe=J,we=we?Kr(we):null,we!==null&&(St=vr(we),we!==St||we.tag!==5&&we.tag!==6)&&(we=null)):(fe=null,we=J),fe!==we)){if(ke=Ya,le="onMouseLeave",K="onMouseEnter",H="mouse",(t==="pointerout"||t==="pointerover")&&(ke=Lu,le="onPointerLeave",K="onPointerEnter",H="pointer"),St=fe==null?ie:Qr(fe),Y=we==null?ie:Qr(we),ie=new ke(le,H+"leave",fe,l,se),ie.target=St,ie.relatedTarget=Y,le=null,Kr(se)===J&&(ke=new ke(K,H+"enter",we,l,se),ke.target=Y,ke.relatedTarget=St,le=ke),St=le,fe&&we)t:{for(ke=fe,K=we,H=0,Y=ke;Y;Y=m(Y))H++;for(Y=0,le=K;le;le=m(le))Y++;for(;0<H-Y;)ke=m(ke),H--;for(;0<Y-H;)K=m(K),Y--;for(;H--;){if(ke===K||K!==null&&ke===K.alternate)break t;ke=m(ke),K=m(K)}ke=null}else ke=null;fe!==null&&w(oe,ie,fe,ke,!1),we!==null&&St!==null&&w(oe,St,we,ke,!0)}}e:{if(ie=J?Qr(J):window,fe=ie.nodeName&&ie.nodeName.toLowerCase(),fe==="select"||fe==="input"&&ie.type==="file")var Ce=Vd;else if(ju(ie))if(Bn)Ce=il;else{Ce=Si;var Ne=Do}else(fe=ie.nodeName)&&fe.toLowerCase()==="input"&&(ie.type==="checkbox"||ie.type==="radio")&&(Ce=Fo);if(Ce&&(Ce=Ce(t,J))){jo(oe,Ce,l,se);break e}Ne&&Ne(t,ie,J),t==="focusout"&&(Ne=ie._wrapperState)&&Ne.controlled&&ie.type==="number"&&kn(ie,"number",ie.value)}switch(Ne=J?Qr(J):window,t){case"focusin":(ju(Ne)||Ne.contentEditable==="true")&&(ki=Ne,Ei=J,Ps=null);break;case"focusout":Ps=Ei=ki=null;break;case"mousedown":Uo=!0;break;case"contextmenu":case"mouseup":case"dragend":Uo=!1,Du(oe,l,se);break;case"selectionchange":if(Bo)break;case"keydown":case"keyup":Du(oe,l,se)}var Le;if(wr)e:{switch(t){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else ir?xi(t,l)&&(Ie="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Ie="onCompositionStart");Ie&&(Ou&&l.locale!=="ko"&&(ir||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&ir&&(Le=Ka()):(yr=se,sn="value"in yr?yr.value:yr.textContent,ir=!0)),Ne=c(J,Ie),0<Ne.length&&(Ie=new el(Ie,t,null,l,se),oe.push({event:Ie,listeners:Ne}),Le?Ie.data=Le:(Le=rl(l),Le!==null&&(Ie.data=Le)))),(Le=rr?$d(t,l):xr(t,l))&&(J=c(J,"onBeforeInput"),0<J.length&&(se=new el("onBeforeInput","beforeinput",null,l,se),oe.push({event:se,listeners:J}),se.data=Le))}hl(oe,s)})}function a(t,s,l){return{instance:t,listener:s,currentTarget:l}}function c(t,s){for(var l=s+"Capture",d=[];t!==null;){var g=t,_=g.stateNode;g.tag===5&&_!==null&&(g=_,_=fs(t,l),_!=null&&d.unshift(a(t,_,g)),_=fs(t,s),_!=null&&d.push(a(t,_,g))),t=t.return}return d}function m(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function w(t,s,l,d,g){for(var _=s._reactName,E=[];l!==null&&l!==d;){var A=l,D=A.alternate,J=A.stateNode;if(D!==null&&D===d)break;A.tag===5&&J!==null&&(A=J,g?(D=fs(l,_),D!=null&&E.unshift(a(l,D,A))):g||(D=fs(l,_),D!=null&&E.push(a(l,D,A)))),l=l.return}E.length!==0&&t.push({event:s,listeners:E})}var C=/\r\n?/g,I=/\u0000|\uFFFD/g;function Z(t){return(typeof t=="string"?t:""+t).replace(C,`
38`).replace(I,"")}function X(t,s,l){if(s=Z(s),Z(t)!==s&&l)throw Error(i(425))}function re(){}var he=null,Te=null;function He(t,s){return t==="textarea"||t==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Lt=typeof setTimeout=="function"?setTimeout:void 0,Et=typeof clearTimeout=="function"?clearTimeout:void 0,an=typeof Promise=="function"?Promise:void 0,Kt=typeof queueMicrotask=="function"?queueMicrotask:typeof an<"u"?function(t){return an.resolve(null).then(t).catch(Li)}:Lt;function Li(t){setTimeout(function(){throw t})}function pl(t,s){var l=s,d=0;do{var g=l.nextSibling;if(t.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"){if(d===0){t.removeChild(g),Tn(s);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=g}while(l);Tn(s)}function Er(t){for(;t!=null;t=t.nextSibling){var s=t.nodeType;if(s===1||s===3)break;if(s===8){if(s=t.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return t}function $u(t){t=t.previousSibling;for(var s=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return t;s--}else l==="/$"&&s++}t=t.previousSibling}return null}var Zr=Math.random().toString(36).slice(2),Wn="__reactFiber$"+Zr,Ri="__reactProps$"+Zr,tt="__reactContainer$"+Zr,Oi="__reactEvents$"+Zr,Kd="__reactListeners$"+Zr,Gd="__reactHandles$"+Zr;function Kr(t){var s=t[Wn];if(s)return s;for(var l=t.parentNode;l;){if(s=l[tt]||l[Wn]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(t=$u(t);t!==null;){if(l=t[Wn])return l;t=$u(t)}return s}t=l,l=t.parentNode}return null}function Gr(t){return t=t[Wn]||t[tt],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Qr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Wo(t){return t[Ri]||null}var Qd=[],$o=-1;function Ai(t){return{current:t}}function dt(t){0>$o||(t.current=Qd[$o],Qd[$o]=null,$o--)}function lt(t,s){$o++,Qd[$o]=t.current,t.current=s}var ji={},Gt=Ai(ji),pn=Ai(!1),Ls=ji;function qo(t,s){var l=t.type.contextTypes;if(!l)return ji;var d=t.stateNode;
vendor: 4,361 bytes, line 38
38if(d&&d.__reactInternalMemoizedUnmaskedChildContext===s)return d.__reactInternalMemoizedMaskedChildContext;var g={},_;for(_ in l)g[_]=s[_];return d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=g),g}function mn(t){return t=t.childContextTypes,t!=null}function qu(){dt(pn),dt(Gt)}function Qp(t,s,l){if(Gt.current!==ji)throw Error(i(168));lt(Gt,s),lt(pn,l)}function Yp(t,s,l){var d=t.stateNode;if(s=s.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var g in d)if(!(g in s))throw Error(i(108,Pe(t)||"Unknown",g));return V({},l,d)}function Vu(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ji,Ls=Gt.current,lt(Gt,t),lt(pn,pn.current),!0}function Xp(t,s,l){var d=t.stateNode;if(!d)throw Error(i(169));l?(t=Yp(t,s,Ls),d.__reactInternalMemoizedMergedChildContext=t,dt(pn),dt(Gt),lt(Gt,t)):dt(pn),lt(pn,l)}var Yr=null,Zu=!1,Yd=!1;function Jp(t){Yr===null?Yr=[t]:Yr.push(t)}function Pw(t){Zu=!0,Jp(t)}function Mi(){if(!Yd&&Yr!==null){Yd=!0;var t=0,s=Ze;try{var l=Yr;for(Ze=1;t<l.length;t++){var d=l[t];do d=d(!0);while(d!==null)}Yr=null,Zu=!1}catch(g){throw Yr!==null&&(Yr=Yr.slice(t+1)),wu(Wa,Mi),g}finally{Ze=s,Yd=!1}}return null}var Vo=[],Zo=0,Ku=null,Gu=0,$n=[],qn=0,Rs=null,Xr=1,Jr="";function Os(t,s){Vo[Zo++]=Gu,Vo[Zo++]=Ku,Ku=t,Gu=s}function em(t,s,l){$n[qn++]=Xr,$n[qn++]=Jr,$n[qn++]=Rs,Rs=t;var d=Xr;t=Jr;var g=32-Ue(d)-1;d&=~(1<<g),l+=1;var _=32-Ue(s)+g;if(30<_){var E=g-g%5;_=(d&(1<<E)-1).toString(32),d>>=E,g-=E,Xr=1<<32-Ue(s)+g|l<<g|d,Jr=_+t}else Xr=1<<_|l<<g|d,Jr=t}function Xd(t){t.return!==null&&(Os(t,1),em(t,1,0))}function Jd(t){for(;t===Ku;)Ku=Vo[--Zo],Vo[Zo]=null,Gu=Vo[--Zo],Vo[Zo]=null;for(;t===Rs;)Rs=$n[--qn],$n[qn]=null,Jr=$n[--qn],$n[qn]=null,Xr=$n[--qn],$n[qn]=null}var An=null,jn=null,ht=!1,or=null;function tm(t,s){var l=Gn(5,null,null,0);l.elementType="DELETED",l.stateNode=s,l.return=t,s=t.deletions,s===null?(t.deletions=[l],t.flags|=16):s.push(l)}function nm(t,s){switch(t.tag){case 5:var l=t.type;return s=s.nodeType!==1||l.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(t.stateNode=s,An=t,jn=Er(s.firstChild),!0):!1;case 6:return s=t.pendingProps===""||s.nodeType!==3?null:s,s!==null?(t.stateNode=s,An=t,jn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(l=Rs!==null?{id:Xr,overflow:Jr}:null,t.memoizedState={dehydrated:s,treeContext:l,retryLane:1073741824},l=Gn(18,null,null,0),l.stateNode=s,l.return=t,t.child=l,An=t,jn=null,!0):!1;default:return!1}}function eh(t){return(t.mode&1)!==0&&(t.flags&128)===0}function th(t){if(ht){var s=jn;if(s){var l=s;if(!nm(t,s)){if(eh(t))throw Error(i(418));s=Er(l.nextSibling);var d=An;s&&nm(t,s)?tm(d,l):(t.flags=t.flags&-4097|2,ht=!1,An=t)}}else{if(eh(t))throw Error(i(418));t.flags=t.flags&-4097|2,ht=!1,An=t}}}function rm(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;An=t}function Qu(t){if(t!==An)return!1;if(!ht)return rm(t),ht=!0,!1;var s;if((s=t.tag!==3)&&!(s=t.tag!==5)&&(s=t.type,s=s!=="head"&&s!=="body"&&!He(t.type,t.memoizedProps)),s&&(s=jn)){if(eh(t))throw im(),Error(i(418));for(;s;)tm(t,s),s=Er(s.nextSibling)}if(rm(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,s=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(s===0){jn=Er(t.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++}t=t.nextSibling}jn=null}}else jn=An?Er(t.stateNode.nextSibling):null;return!0}function im(){for(var t=jn;t;)t=Er(t.nextSibling)}function Ko(){jn=An=null,ht=!1}function nh(t){or===null?or=[t]:or.push(t)}var Tw=j.ReactCurrentBatchConfig;function ml(t,s,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var d=l.stateNode}if(!d)throw Error(i(147,t));var g=d,_=""+t;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===_?s.ref:(s=function(E){var A=g.refs;E===null?delete A[_]:A[_]=E},s._stringRef=_,s)}if(typeof t!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,t))}return t}function Yu(t,s){throw t=Object.prototype.toString.call(s),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":t))}function sm(t){var s=t._init;return s(t._payload)}function om(t){function s(K,H){if(t){var Y=K.deletions;
vendor: 11,896 bytes, line 38
38Y===null?(K.deletions=[H],K.flags|=16):Y.push(H)}}function l(K,H){if(!t)return null;for(;H!==null;)s(K,H),H=H.sibling;return null}function d(K,H){for(K=new Map;H!==null;)H.key!==null?K.set(H.key,H):K.set(H.index,H),H=H.sibling;return K}function g(K,H){return K=Wi(K,H),K.index=0,K.sibling=null,K}function _(K,H,Y){return K.index=Y,t?(Y=K.alternate,Y!==null?(Y=Y.index,Y<H?(K.flags|=2,H):Y):(K.flags|=2,H)):(K.flags|=1048576,H)}function E(K){return t&&K.alternate===null&&(K.flags|=2),K}function A(K,H,Y,le){return H===null||H.tag!==6?(H=Zh(Y,K.mode,le),H.return=K,H):(H=g(H,Y),H.return=K,H)}function D(K,H,Y,le){var Ce=Y.type;return Ce===G?se(K,H,Y.props.children,le,Y.key):H!==null&&(H.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===ye&&sm(Ce)===H.type)?(le=g(H,Y.props),le.ref=ml(K,H,Y),le.return=K,le):(le=xc(Y.type,Y.key,Y.props,null,K.mode,le),le.ref=ml(K,H,Y),le.return=K,le)}function J(K,H,Y,le){return H===null||H.tag!==4||H.stateNode.containerInfo!==Y.containerInfo||H.stateNode.implementation!==Y.implementation?(H=Kh(Y,K.mode,le),H.return=K,H):(H=g(H,Y.children||[]),H.return=K,H)}function se(K,H,Y,le,Ce){return H===null||H.tag!==7?(H=Bs(Y,K.mode,le,Ce),H.return=K,H):(H=g(H,Y),H.return=K,H)}function oe(K,H,Y){if(typeof H=="string"&&H!==""||typeof H=="number")return H=Zh(""+H,K.mode,Y),H.return=K,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case $:return Y=xc(H.type,H.key,H.props,null,K.mode,Y),Y.ref=ml(K,null,H),Y.return=K,Y;case Q:return H=Kh(H,K.mode,Y),H.return=K,H;case ye:var le=H._init;return oe(K,le(H._payload),Y)}if(Jn(H)||Se(H))return H=Bs(H,K.mode,Y,null),H.return=K,H;Yu(K,H)}return null}function ie(K,H,Y,le){var Ce=H!==null?H.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number")return Ce!==null?null:A(K,H,""+Y,le);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case $:return Y.key===Ce?D(K,H,Y,le):null;case Q:return Y.key===Ce?J(K,H,Y,le):null;case ye:return Ce=Y._init,ie(K,H,Ce(Y._payload),le)}if(Jn(Y)||Se(Y))return Ce!==null?null:se(K,H,Y,le,null);Yu(K,Y)}return null}function fe(K,H,Y,le,Ce){if(typeof le=="string"&&le!==""||typeof le=="number")return K=K.get(Y)||null,A(H,K,""+le,Ce);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case $:return K=K.get(le.key===null?Y:le.key)||null,D(H,K,le,Ce);case Q:return K=K.get(le.key===null?Y:le.key)||null,J(H,K,le,Ce);case ye:var Ne=le._init;return fe(K,H,Y,Ne(le._payload),Ce)}if(Jn(le)||Se(le))return K=K.get(Y)||null,se(H,K,le,Ce,null);Yu(H,le)}return null}function we(K,H,Y,le){for(var Ce=null,Ne=null,Le=H,Ie=H=0,It=null;Le!==null&&Ie<Y.length;Ie++){Le.index>Ie?(It=Le,Le=null):It=Le.sibling;var Je=ie(K,Le,Y[Ie],le);if(Je===null){Le===null&&(Le=It);break}t&&Le&&Je.alternate===null&&s(K,Le),H=_(Je,H,Ie),Ne===null?Ce=Je:Ne.sibling=Je,Ne=Je,Le=It}if(Ie===Y.length)return l(K,Le),ht&&Os(K,Ie),Ce;if(Le===null){for(;Ie<Y.length;Ie++)Le=oe(K,Y[Ie],le),Le!==null&&(H=_(Le,H,Ie),Ne===null?Ce=Le:Ne.sibling=Le,Ne=Le);return ht&&Os(K,Ie),Ce}for(Le=d(K,Le);Ie<Y.length;Ie++)It=fe(Le,K,Ie,Y[Ie],le),It!==null&&(t&&It.alternate!==null&&Le.delete(It.key===null?Ie:It.key),H=_(It,H,Ie),Ne===null?Ce=It:Ne.sibling=It,Ne=It);return t&&Le.forEach(function($i){return s(K,$i)}),ht&&Os(K,Ie),Ce}function ke(K,H,Y,le){var Ce=Se(Y);if(typeof Ce!="function")throw Error(i(150));if(Y=Ce.call(Y),Y==null)throw Error(i(151));for(var Ne=Ce=null,Le=H,Ie=H=0,It=null,Je=Y.next();Le!==null&&!Je.done;Ie++,Je=Y.next()){Le.index>Ie?(It=Le,Le=null):It=Le.sibling;var $i=ie(K,Le,Je.value,le);if($i===null){Le===null&&(Le=It);break}t&&Le&&$i.alternate===null&&s(K,Le),H=_($i,H,Ie),Ne===null?Ce=$i:Ne.sibling=$i,Ne=$i,Le=It}if(Je.done)return l(K,Le),ht&&Os(K,Ie),Ce;if(Le===null){for(;!Je.done;Ie++,Je=Y.next())Je=oe(K,Je.value,le),Je!==null&&(H=_(Je,H,Ie),Ne===null?Ce=Je:Ne.sibling=Je,Ne=Je);return ht&&Os(K,Ie),Ce}for(Le=d(K,Le);!Je.done;Ie++,Je=Y.next())Je=fe(Le,K,Ie,Je.value,le),Je!==null&&(t&&Je.alternate!==null&&Le.delete(Je.key===null?Ie:Je.key),H=_(Je,H,Ie),Ne===null?Ce=Je:Ne.sibling=Je,Ne=Je);return t&&Le.forEach(function(ax){return s(K,ax)}),ht&&Os(K,Ie),Ce}function St(K,H,Y,le){if(typeof Y=="object"&&Y!==null&&Y.type===G&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case $:e:{for(var Ce=Y.key,Ne=H;Ne!==null;){if(Ne.key===Ce){if(Ce=Y.type,Ce===G){if(Ne.tag===7){l(K,Ne.sibling),H=g(Ne,Y.props.children),H.return=K,K=H;break e}}else if(Ne.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===ye&&sm(Ce)===Ne.type){l(K,Ne.sibling),H=g(Ne,Y.props),H.ref=ml(K,Ne,Y),H.return=K,K=H;break e}l(K,Ne);break}else s(K,Ne);Ne=Ne.sibling}Y.type===G?(H=Bs(Y.props.children,K.mode,le,Y.key),H.return=K,K=H):(le=xc(Y.type,Y.key,Y.props,null,K.mode,le),le.ref=ml(K,H,Y),le.return=K,K=le)}return E(K);case Q:e:{for(Ne=Y.key;H!==null;){if(H.key===Ne)if(H.tag===4&&H.stateNode.containerInfo===Y.containerInfo&&H.stateNode.implementation===Y.implementation){l(K,H.sibling),H=g(H,Y.children||[]),H.return=K,K=H;break e}else{l(K,H);break}else s(K,H);H=H.sibling}H=Kh(Y,K.mode,le),H.return=K,K=H}return E(K);case ye:return Ne=Y._init,St(K,H,Ne(Y._payload),le)}if(Jn(Y))return we(K,H,Y,le);if(Se(Y))return ke(K,H,Y,le);Yu(K,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"?(Y=""+Y,H!==null&&H.tag===6?(l(K,H.sibling),H=g(H,Y),H.return=K,K=H):(l(K,H),H=Zh(Y,K.mode,le),H.return=K,K=H),E(K)):l(K,H)}return St}var Go=om(!0),am=om(!1),Xu=Ai(null),Ju=null,Qo=null,rh=null;function ih(){rh=Qo=Ju=null}function sh(t){var s=Xu.current;dt(Xu),t._currentValue=s}function oh(t,s,l){for(;t!==null;){var d=t.alternate;if((t.childLanes&s)!==s?(t.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),t===l)break;t=t.return}}function Yo(t,s){Ju=t,rh=Qo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&s)!==0&&(gn=!0),t.firstContext=null)}function Vn(t){var s=t._currentValue;if(rh!==t)if(t={context:t,memoizedValue:s,next:null},Qo===null){if(Ju===null)throw Error(i(308));Qo=t,Ju.dependencies={lanes:0,firstContext:t}}else Qo=Qo.next=t;return s}var As=null;function ah(t){As===null?As=[t]:As.push(t)}function lm(t,s,l,d){var g=s.interleaved;return g===null?(l.next=l,ah(s)):(l.next=g.next,g.next=l),s.interleaved=l,ei(t,d)}function ei(t,s){t.lanes|=s;var l=t.alternate;for(l!==null&&(l.lanes|=s),l=t,t=t.return;t!==null;)t.childLanes|=s,l=t.alternate,l!==null&&(l.childLanes|=s),l=t,t=t.return;return l.tag===3?l.stateNode:null}var Ii=!1;function lh(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function um(t,s){t=t.updateQueue,s.updateQueue===t&&(s.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function ti(t,s){return{eventTime:t,lane:s,tag:0,payload:null,callback:null,next:null}}function zi(t,s,l){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,(Xe&2)!==0){var g=d.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),d.pending=s,ei(t,l)}return g=d.interleaved,g===null?(s.next=s,ah(d)):(s.next=g.next,g.next=s),d.interleaved=s,ei(t,l)}function ec(t,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194240)!==0)){var d=s.lanes;d&=t.pendingLanes,l|=d,s.lanes=l,tr(t,l)}}function cm(t,s){var l=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var g=null,_=null;if(l=l.firstBaseUpdate,l!==null){do{var E={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};_===null?g=_=E:_=_.next=E,l=l.next}while(l!==null);_===null?g=_=s:_=_.next=s}else g=_=s;l={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:_,shared:d.shared,effects:d.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=s:t.next=s,l.lastBaseUpdate=s}function tc(t,s,l,d){var g=t.updateQueue;Ii=!1;var _=g.firstBaseUpdate,E=g.lastBaseUpdate,A=g.shared.pending;if(A!==null){g.shared.pending=null;var D=A,J=D.next;D.next=null,E===null?_=J:E.next=J,E=D;var se=t.alternate;se!==null&&(se=se.updateQueue,A=se.lastBaseUpdate,A!==E&&(A===null?se.firstBaseUpdate=J:A.next=J,se.lastBaseUpdate=D))}if(_!==null){var oe=g.baseState;E=0,se=J=D=null,A=_;do{var ie=A.lane,fe=A.eventTime;if((d&ie)===ie){se!==null&&(se=se.next={eventTime:fe,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var we=t,ke=A;switch(ie=s,fe=l,ke.tag){case 1:if(we=ke.payload,typeof we=="function"){oe=we.call(fe,oe,ie);break e}oe=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=ke.payload,ie=typeof we=="function"?we.call(fe,oe,ie):we,ie==null)break e;oe=V({},oe,ie);break e;case 2:Ii=!0}}A.callback!==null&&A.lane!==0&&(t.flags|=64,ie=g.effects,ie===null?g.effects=[A]:ie.push(A))}else fe={eventTime:fe,lane:ie,tag:A.tag,payload:A.payload,callback:A.callback,next:null},se===null?(J=se=fe,D=oe):se=se.next=fe,E|=ie;if(A=A.next,A===null){if(A=g.shared.pending,A===null)break;ie=A,A=ie.next,ie.next=null,g.lastBaseUpdate=ie,g.shared.pending=null}}while(!0);if(se===null&&(D=oe),g.baseState=D,g.firstBaseUpdate=J,g.lastBaseUpdate=se,s=g.shared.interleaved,s!==null){g=s;do E|=g.lane,g=g.next;while(g!==s)}else _===null&&(g.shared.lanes=0);Is|=E,t.lanes=E,t.memoizedState=oe}}function dm(t,s,l){if(t=s.effects,s.effects=null,t!==null)for(s=0;s<t.length;s++){var d=t[s],g=d.callback;if(g!==null){if(d.callback=null,d=l,typeof g!="function")throw Error(i(191,g));g.call(d)}}}var gl={},Cr=Ai(gl),vl=Ai(gl),yl=Ai(gl);function js(t){if(t===gl)throw Error(i(174));return t}function uh(t,s){switch(lt(yl,s),lt(vl,t),lt(Cr,gl),t=s.nodeType,t){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:po(null,"");break;default:t=t===8?s.parentNode:s,s=t.namespaceURI||null,t=t.tagName,s=po(s,t)}dt(Cr),lt(Cr,s)}function Xo(){dt(Cr),dt(vl),dt(yl)}function hm(t){js(yl.current);var s=js(Cr.current),l=po(s,t.type);s!==l&&(lt(vl,t),lt(Cr,l))}function ch(t){vl.current===t&&(dt(Cr),dt(vl))}var gt=Ai(0);function nc(t){for(var s=t;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var dh=[];function hh(){for(var t=0;t<dh.length;t++)dh[t]._workInProgressVersionPrimary=null;dh.length=0}var rc=j.ReactCurrentDispatcher,fh=j.ReactCurrentBatchConfig,Ms=0,vt=null,Rt=null,jt=null,ic=!1,_l=!1,wl=0,Nw=0;function Qt(){throw Error(i(321))}function ph(t,s){if(s===null)return!1;for(var l=0;l<s.length&&l<t.length;l++)if(!Rn(t[l],s[l]))return!1;return!0}function mh(t,s,l,d,g,_){if(Ms=_,vt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,rc.current=t===null||t.memoizedState===null?Aw:jw,t=l(d,g),_l){_=0;do{if(_l=!1,wl=0,25<=_)throw Error(i(301));_+=1,jt=Rt=null,s.updateQueue=null,rc.current=Mw,t=l(d,g)}while(_l)}if(rc.current=ac,s=Rt!==null&&Rt.next!==null,Ms=0,jt=Rt=vt=null,ic=!1,s)throw Error(i(300));return t}function gh(){var t=wl!==0;return wl=0,t}function Pr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?vt.memoizedState=jt=t:jt=jt.next=t,jt}function Zn(){if(Rt===null){var t=vt.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var s=jt===null?vt.memoizedState:jt.next;if(s!==null)jt=s,Rt=t;else{if(t===null)throw Error(i(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},jt===null?vt.memoizedState=jt=t:jt=jt.next=t}return jt}function xl(t,s){return typeof s=="function"?s(t):s}function vh(t){var s=Zn(),l=s.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var d=Rt,g=d.baseQueue,_=l.pending;if(_!==null){if(g!==null){var E=g.next;g.next=_.next,_.next=E}
vendor: 4,428 bytes, line 38
38d.baseQueue=g=_,l.pending=null}if(g!==null){_=g.next,d=d.baseState;var A=E=null,D=null,J=_;do{var se=J.lane;if((Ms&se)===se)D!==null&&(D=D.next={lane:0,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),d=J.hasEagerState?J.eagerState:t(d,J.action);else{var oe={lane:se,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null};D===null?(A=D=oe,E=d):D=D.next=oe,vt.lanes|=se,Is|=se}J=J.next}while(J!==null&&J!==_);D===null?E=d:D.next=A,Rn(d,s.memoizedState)||(gn=!0),s.memoizedState=d,s.baseState=E,s.baseQueue=D,l.lastRenderedState=d}if(t=l.interleaved,t!==null){g=t;do _=g.lane,vt.lanes|=_,Is|=_,g=g.next;while(g!==t)}else g===null&&(l.lanes=0);return[s.memoizedState,l.dispatch]}function yh(t){var s=Zn(),l=s.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var d=l.dispatch,g=l.pending,_=s.memoizedState;if(g!==null){l.pending=null;var E=g=g.next;do _=t(_,E.action),E=E.next;while(E!==g);Rn(_,s.memoizedState)||(gn=!0),s.memoizedState=_,s.baseQueue===null&&(s.baseState=_),l.lastRenderedState=_}return[_,d]}function fm(){}function pm(t,s){var l=vt,d=Zn(),g=s(),_=!Rn(d.memoizedState,g);if(_&&(d.memoizedState=g,gn=!0),d=d.queue,_h(vm.bind(null,l,d,t),[t]),d.getSnapshot!==s||_||jt!==null&&jt.memoizedState.tag&1){if(l.flags|=2048,bl(9,gm.bind(null,l,d,g,s),void 0,null),Mt===null)throw Error(i(349));(Ms&30)!==0||mm(l,s,g)}return g}function mm(t,s,l){t.flags|=16384,t={getSnapshot:s,value:l},s=vt.updateQueue,s===null?(s={lastEffect:null,stores:null},vt.updateQueue=s,s.stores=[t]):(l=s.stores,l===null?s.stores=[t]:l.push(t))}function gm(t,s,l,d){s.value=l,s.getSnapshot=d,ym(s)&&_m(t)}function vm(t,s,l){return l(function(){ym(s)&&_m(t)})}function ym(t){var s=t.getSnapshot;t=t.value;try{var l=s();return!Rn(t,l)}catch{return!0}}function _m(t){var s=ei(t,1);s!==null&&cr(s,t,1,-1)}function wm(t){var s=Pr();return typeof t=="function"&&(t=t()),s.memoizedState=s.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:t},s.queue=t,t=t.dispatch=Ow.bind(null,vt,t),[s.memoizedState,t]}function bl(t,s,l,d){return t={tag:t,create:s,destroy:l,deps:d,next:null},s=vt.updateQueue,s===null?(s={lastEffect:null,stores:null},vt.updateQueue=s,s.lastEffect=t.next=t):(l=s.lastEffect,l===null?s.lastEffect=t.next=t:(d=l.next,l.next=t,t.next=d,s.lastEffect=t)),t}function xm(){return Zn().memoizedState}function sc(t,s,l,d){var g=Pr();vt.flags|=t,g.memoizedState=bl(1|s,l,void 0,d===void 0?null:d)}function oc(t,s,l,d){var g=Zn();d=d===void 0?null:d;var _=void 0;if(Rt!==null){var E=Rt.memoizedState;if(_=E.destroy,d!==null&&ph(d,E.deps)){g.memoizedState=bl(s,l,_,d);return}}vt.flags|=t,g.memoizedState=bl(1|s,l,_,d)}function bm(t,s){return sc(8390656,8,t,s)}function _h(t,s){return oc(2048,8,t,s)}function Sm(t,s){return oc(4,2,t,s)}function km(t,s){return oc(4,4,t,s)}function Em(t,s){if(typeof s=="function")return t=t(),s(t),function(){s(null)};if(s!=null)return t=t(),s.current=t,function(){s.current=null}}function Cm(t,s,l){return l=l!=null?l.concat([t]):null,oc(4,4,Em.bind(null,s,t),l)}function wh(){}function Pm(t,s){var l=Zn();s=s===void 0?null:s;var d=l.memoizedState;return d!==null&&s!==null&&ph(s,d[1])?d[0]:(l.memoizedState=[t,s],t)}function Tm(t,s){var l=Zn();s=s===void 0?null:s;var d=l.memoizedState;return d!==null&&s!==null&&ph(s,d[1])?d[0]:(t=t(),l.memoizedState=[t,s],t)}function Nm(t,s,l){return(Ms&21)===0?(t.baseState&&(t.baseState=!1,gn=!0),t.memoizedState=l):(Rn(l,s)||(l=bu(),vt.lanes|=l,Is|=l,t.baseState=!0),s)}function Lw(t,s){var l=Ze;Ze=l!==0&&4>l?l:4,t(!0);var d=fh.transition;fh.transition={};try{t(!1),s()}finally{Ze=l,fh.transition=d}}function Lm(){return Zn().memoizedState}function Rw(t,s,l){var d=Ui(t);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},Rm(t))Om(s,l);else if(l=lm(t,s,l,d),l!==null){var g=un();cr(l,t,d,g),Am(l,s,d)}}function Ow(t,s,l){var d=Ui(t),g={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(Rm(t))Om(s,g);else{var _=t.alternate;if(t.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var E=s.lastRenderedState,A=_(E,l);if(g.hasEagerState=!0,g.eagerState=A,Rn(A,E)){var D=s.interleaved;D===null?(g.next=g,ah(s)):(g.next=D.next,D.next=g),s.interleaved=g;return}}catch{}finally{}l=lm(t,s,g,d),l!==null&&(g=un(),cr(l,t,d,g),Am(l,s,d))}}function Rm(t){var s=t.alternate;return t===vt||s!==null&&s===vt}
vendor: 8,439 bytes, lines 38-40
38function Om(t,s){_l=ic=!0;var l=t.pending;l===null?s.next=s:(s.next=l.next,l.next=s),t.pending=s}function Am(t,s,l){if((l&4194240)!==0){var d=s.lanes;d&=t.pendingLanes,l|=d,s.lanes=l,tr(t,l)}}var ac={readContext:Vn,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},Aw={readContext:Vn,useCallback:function(t,s){return Pr().memoizedState=[t,s===void 0?null:s],t},useContext:Vn,useEffect:bm,useImperativeHandle:function(t,s,l){return l=l!=null?l.concat([t]):null,sc(4194308,4,Em.bind(null,s,t),l)},useLayoutEffect:function(t,s){return sc(4194308,4,t,s)},useInsertionEffect:function(t,s){return sc(4,2,t,s)},useMemo:function(t,s){var l=Pr();return s=s===void 0?null:s,t=t(),l.memoizedState=[t,s],t},useReducer:function(t,s,l){var d=Pr();return s=l!==void 0?l(s):s,d.memoizedState=d.baseState=s,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},d.queue=t,t=t.dispatch=Rw.bind(null,vt,t),[d.memoizedState,t]},useRef:function(t){var s=Pr();return t={current:t},s.memoizedState=t},useState:wm,useDebugValue:wh,useDeferredValue:function(t){return Pr().memoizedState=t},useTransition:function(){var t=wm(!1),s=t[0];return t=Lw.bind(null,t[1]),Pr().memoizedState=t,[s,t]},useMutableSource:function(){},useSyncExternalStore:function(t,s,l){var d=vt,g=Pr();if(ht){if(l===void 0)throw Error(i(407));l=l()}else{if(l=s(),Mt===null)throw Error(i(349));(Ms&30)!==0||mm(d,s,l)}g.memoizedState=l;var _={value:l,getSnapshot:s};return g.queue=_,bm(vm.bind(null,d,_,t),[t]),d.flags|=2048,bl(9,gm.bind(null,d,_,l,s),void 0,null),l},useId:function(){var t=Pr(),s=Mt.identifierPrefix;if(ht){var l=Jr,d=Xr;l=(d&~(1<<32-Ue(d)-1)).toString(32)+l,s=":"+s+"R"+l,l=wl++,0<l&&(s+="H"+l.toString(32)),s+=":"}else l=Nw++,s=":"+s+"r"+l.toString(32)+":";return t.memoizedState=s},unstable_isNewReconciler:!1},jw={readContext:Vn,useCallback:Pm,useContext:Vn,useEffect:_h,useImperativeHandle:Cm,useInsertionEffect:Sm,useLayoutEffect:km,useMemo:Tm,useReducer:vh,useRef:xm,useState:function(){return vh(xl)},useDebugValue:wh,useDeferredValue:function(t){var s=Zn();return Nm(s,Rt.memoizedState,t)},useTransition:function(){var t=vh(xl)[0],s=Zn().memoizedState;return[t,s]},useMutableSource:fm,useSyncExternalStore:pm,useId:Lm,unstable_isNewReconciler:!1},Mw={readContext:Vn,useCallback:Pm,useContext:Vn,useEffect:_h,useImperativeHandle:Cm,useInsertionEffect:Sm,useLayoutEffect:km,useMemo:Tm,useReducer:yh,useRef:xm,useState:function(){return yh(xl)},useDebugValue:wh,useDeferredValue:function(t){var s=Zn();return Rt===null?s.memoizedState=t:Nm(s,Rt.memoizedState,t)},useTransition:function(){var t=yh(xl)[0],s=Zn().memoizedState;return[t,s]},useMutableSource:fm,useSyncExternalStore:pm,useId:Lm,unstable_isNewReconciler:!1};function ar(t,s){if(t&&t.defaultProps){s=V({},s),t=t.defaultProps;for(var l in t)s[l]===void 0&&(s[l]=t[l]);return s}return s}function xh(t,s,l,d){s=t.memoizedState,l=l(d,s),l=l==null?s:V({},s,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var lc={isMounted:function(t){return(t=t._reactInternals)?vr(t)===t:!1},enqueueSetState:function(t,s,l){t=t._reactInternals;var d=un(),g=Ui(t),_=ti(d,g);_.payload=s,l!=null&&(_.callback=l),s=zi(t,_,g),s!==null&&(cr(s,t,g,d),ec(s,t,g))},enqueueReplaceState:function(t,s,l){t=t._reactInternals;var d=un(),g=Ui(t),_=ti(d,g);_.tag=1,_.payload=s,l!=null&&(_.callback=l),s=zi(t,_,g),s!==null&&(cr(s,t,g,d),ec(s,t,g))},enqueueForceUpdate:function(t,s){t=t._reactInternals;var l=un(),d=Ui(t),g=ti(l,d);g.tag=2,s!=null&&(g.callback=s),s=zi(t,g,d),s!==null&&(cr(s,t,d,l),ec(s,t,d))}};function jm(t,s,l,d,g,_,E){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(d,_,E):s.prototype&&s.prototype.isPureReactComponent?!br(l,d)||!br(g,_):!0}function Mm(t,s,l){var d=!1,g=ji,_=s.contextType;return typeof _=="object"&&_!==null?_=Vn(_):(g=mn(s)?Ls:Gt.current,d=s.contextTypes,_=(d=d!=null)?qo(t,g):ji),s=new s(l,_),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=lc,t.stateNode=s,s._reactInternals=t,d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=g,t.__reactInternalMemoizedMaskedChildContext=_),s}function Im(t,s,l,d){t=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,d),s.state!==t&&lc.enqueueReplaceState(s,s.state,null)}function bh(t,s,l,d){var g=t.stateNode;g.props=l,g.state=t.memoizedState,g.refs={},lh(t);var _=s.contextType;typeof _=="object"&&_!==null?g.context=Vn(_):(_=mn(s)?Ls:Gt.current,g.context=qo(t,_)),g.state=t.memoizedState,_=s.getDerivedStateFromProps,typeof _=="function"&&(xh(t,s,_,l),g.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(s=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),s!==g.state&&lc.enqueueReplaceState(g,g.state,null),tc(t,l,g,d),g.state=t.memoizedState),typeof g.componentDidMount=="function"&&(t.flags|=4194308)}function Jo(t,s){try{var l="",d=s;do l+=ce(d),d=d.return;while(d);var g=l}catch(_){g=`
39Error generating stack: `+_.message+`
40`+_.stack}return{value:t,source:s,stack:g,digest:null}}function Sh(t,s,l){return{value:t,source:null,stack:l??null,digest:s??null}}function kh(t,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var Iw=typeof WeakMap=="function"?WeakMap:Map;function zm(t,s,l){l=ti(-1,l),l.tag=3,l.payload={element:null};var d=s.value;return l.callback=function(){mc||(mc=!0,Fh=d),kh(t,s)},l}function Dm(t,s,l){l=ti(-1,l),l.tag=3;var d=t.type.getDerivedStateFromError;if(typeof d=="function"){var g=s.value;l.payload=function(){return d(g)},l.callback=function(){kh(t,s)}}var _=t.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(l.callback=function(){kh(t,s),typeof d!="function"&&(Fi===null?Fi=new Set([this]):Fi.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})}),l}function Fm(t,s,l){var d=t.pingCache;if(d===null){d=t.pingCache=new Iw;var g=new Set;d.set(s,g)}else g=d.get(s),g===void 0&&(g=new Set,d.set(s,g));g.has(l)||(g.add(l),t=Qw.bind(null,t,s,l),s.then(t,t))}function Bm(t){do{var s;if((s=t.tag===13)&&(s=t.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return t;t=t.return}while(t!==null);return null}function Um(t,s,l,d,g){return(t.mode&1)===0?(t===s?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=ti(-1,1),s.tag=2,zi(l,s,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=g,t)}var zw=j.ReactCurrentOwner,gn=!1;function ln(t,s,l,d){s.child=t===null?am(s,null,l,d):Go(s,t.child,l,d)}function Hm(t,s,l,d,g){l=l.render;var _=s.ref;return Yo(s,g),d=mh(t,s,l,d,_,g),l=gh(),t!==null&&!gn?(s.updateQueue=t.updateQueue,s.flags&=-2053,t.lanes&=~g,ni(t,s,g)):(ht&&l&&Xd(s),s.flags|=1,ln(t,s,d,g),s.child)}function Wm(t,s,l,d,g){if(t===null){var _=l.type;return typeof _=="function"&&!Vh(_)&&_.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=_,$m(t,s,_,d,g)):(t=xc(l.type,null,d,s,s.mode,g),t.ref=s.ref,t.return=s,s.child=t)}if(_=t.child,(t.lanes&g)===0){var E=_.memoizedProps;if(l=l.compare,l=l!==null?l:br,l(E,d)&&t.ref===s.ref)return ni(t,s,g)}return s.flags|=1,t=Wi(_,d),t.ref=s.ref,t.return=s,s.child=t}function $m(t,s,l,d,g){if(t!==null){var _=t.memoizedProps;if(br(_,d)&&t.ref===s.ref)if(gn=!1,s.pendingProps=d=_,(t.lanes&g)!==0)(t.flags&131072)!==0&&(gn=!0);else return s.lanes=t.lanes,ni(t,s,g)}return Eh(t,s,l,d,g)}function qm(t,s,l){var d=s.pendingProps,g=d.children,_=t!==null?t.memoizedState:null;if(d.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},lt(ta,Mn),Mn|=l;else{if((l&1073741824)===0)return t=_!==null?_.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:t,cachePool:null,transitions:null},s.updateQueue=null,lt(ta,Mn),Mn|=t,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=_!==null?_.baseLanes:l,lt(ta,Mn),Mn|=d}
vendor: 13,930 bytes, line 40
40else _!==null?(d=_.baseLanes|l,s.memoizedState=null):d=l,lt(ta,Mn),Mn|=d;return ln(t,s,g,l),s.child}function Vm(t,s){var l=s.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function Eh(t,s,l,d,g){var _=mn(l)?Ls:Gt.current;return _=qo(s,_),Yo(s,g),l=mh(t,s,l,d,_,g),d=gh(),t!==null&&!gn?(s.updateQueue=t.updateQueue,s.flags&=-2053,t.lanes&=~g,ni(t,s,g)):(ht&&d&&Xd(s),s.flags|=1,ln(t,s,l,g),s.child)}function Zm(t,s,l,d,g){if(mn(l)){var _=!0;Vu(s)}else _=!1;if(Yo(s,g),s.stateNode===null)cc(t,s),Mm(s,l,d),bh(s,l,d,g),d=!0;else if(t===null){var E=s.stateNode,A=s.memoizedProps;E.props=A;var D=E.context,J=l.contextType;typeof J=="object"&&J!==null?J=Vn(J):(J=mn(l)?Ls:Gt.current,J=qo(s,J));var se=l.getDerivedStateFromProps,oe=typeof se=="function"||typeof E.getSnapshotBeforeUpdate=="function";oe||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(A!==d||D!==J)&&Im(s,E,d,J),Ii=!1;var ie=s.memoizedState;E.state=ie,tc(s,d,E,g),D=s.memoizedState,A!==d||ie!==D||pn.current||Ii?(typeof se=="function"&&(xh(s,l,se,d),D=s.memoizedState),(A=Ii||jm(s,l,A,d,ie,D,J))?(oe||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(s.flags|=4194308)):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=D),E.props=d,E.state=D,E.context=J,d=A):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{E=s.stateNode,um(t,s),A=s.memoizedProps,J=s.type===s.elementType?A:ar(s.type,A),E.props=J,oe=s.pendingProps,ie=E.context,D=l.contextType,typeof D=="object"&&D!==null?D=Vn(D):(D=mn(l)?Ls:Gt.current,D=qo(s,D));var fe=l.getDerivedStateFromProps;(se=typeof fe=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(A!==oe||ie!==D)&&Im(s,E,d,D),Ii=!1,ie=s.memoizedState,E.state=ie,tc(s,d,E,g);var we=s.memoizedState;A!==oe||ie!==we||pn.current||Ii?(typeof fe=="function"&&(xh(s,l,fe,d),we=s.memoizedState),(J=Ii||jm(s,l,J,d,ie,we,D)||!1)?(se||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,we,D),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,we,D)),typeof E.componentDidUpdate=="function"&&(s.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof E.componentDidUpdate!="function"||A===t.memoizedProps&&ie===t.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===t.memoizedProps&&ie===t.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=we),E.props=d,E.state=we,E.context=D,d=J):(typeof E.componentDidUpdate!="function"||A===t.memoizedProps&&ie===t.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===t.memoizedProps&&ie===t.memoizedState||(s.flags|=1024),d=!1)}return Ch(t,s,l,d,_,g)}function Ch(t,s,l,d,g,_){Vm(t,s);var E=(s.flags&128)!==0;if(!d&&!E)return g&&Xp(s,l,!1),ni(t,s,_);d=s.stateNode,zw.current=s;var A=E&&typeof l.getDerivedStateFromError!="function"?null:d.render();return s.flags|=1,t!==null&&E?(s.child=Go(s,t.child,null,_),s.child=Go(s,null,A,_)):ln(t,s,A,_),s.memoizedState=d.state,g&&Xp(s,l,!0),s.child}function Km(t){var s=t.stateNode;s.pendingContext?Qp(t,s.pendingContext,s.pendingContext!==s.context):s.context&&Qp(t,s.context,!1),uh(t,s.containerInfo)}function Gm(t,s,l,d,g){return Ko(),nh(g),s.flags|=256,ln(t,s,l,d),s.child}var Ph={dehydrated:null,treeContext:null,retryLane:0};function Th(t){return{baseLanes:t,cachePool:null,transitions:null}}function Qm(t,s,l){var d=s.pendingProps,g=gt.current,_=!1,E=(s.flags&128)!==0,A;if((A=E)||(A=t!==null&&t.memoizedState===null?!1:(g&2)!==0),A?(_=!0,s.flags&=-129):(t===null||t.memoizedState!==null)&&(g|=1),lt(gt,g&1),t===null)return th(s),t=s.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((s.mode&1)===0?s.lanes=1:t.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(E=d.children,t=d.fallback,_?(d=s.mode,_=s.child,E={mode:"hidden",children:E},(d&1)===0&&_!==null?(_.childLanes=0,_.pendingProps=E):_=bc(E,d,0,null),t=Bs(t,d,l,null),_.return=s,t.return=s,_.sibling=t,s.child=_,s.child.memoizedState=Th(l),s.memoizedState=Ph,t):Nh(s,E));if(g=t.memoizedState,g!==null&&(A=g.dehydrated,A!==null))return Dw(t,s,E,d,A,g,l);if(_){_=d.fallback,E=s.mode,g=t.child,A=g.sibling;var D={mode:"hidden",children:d.children};return(E&1)===0&&s.child!==g?(d=s.child,d.childLanes=0,d.pendingProps=D,s.deletions=null):(d=Wi(g,D),d.subtreeFlags=g.subtreeFlags&14680064),A!==null?_=Wi(A,_):(_=Bs(_,E,l,null),_.flags|=2),_.return=s,d.return=s,d.sibling=_,s.child=d,d=_,_=s.child,E=t.child.memoizedState,E=E===null?Th(l):{baseLanes:E.baseLanes|l,cachePool:null,transitions:E.transitions},_.memoizedState=E,_.childLanes=t.childLanes&~l,s.memoizedState=Ph,d}return _=t.child,t=_.sibling,d=Wi(_,{mode:"visible",children:d.children}),(s.mode&1)===0&&(d.lanes=l),d.return=s,d.sibling=null,t!==null&&(l=s.deletions,l===null?(s.deletions=[t],s.flags|=16):l.push(t)),s.child=d,s.memoizedState=null,d}function Nh(t,s){return s=bc({mode:"visible",children:s},t.mode,0,null),s.return=t,t.child=s}function uc(t,s,l,d){return d!==null&&nh(d),Go(s,t.child,null,l),t=Nh(s,s.pendingProps.children),t.flags|=2,s.memoizedState=null,t}function Dw(t,s,l,d,g,_,E){if(l)return s.flags&256?(s.flags&=-257,d=Sh(Error(i(422))),uc(t,s,E,d)):s.memoizedState!==null?(s.child=t.child,s.flags|=128,null):(_=d.fallback,g=s.mode,d=bc({mode:"visible",children:d.children},g,0,null),_=Bs(_,g,E,null),_.flags|=2,d.return=s,_.return=s,d.sibling=_,s.child=d,(s.mode&1)!==0&&Go(s,t.child,null,E),s.child.memoizedState=Th(E),s.memoizedState=Ph,_);if((s.mode&1)===0)return uc(t,s,E,null);if(g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var A=d.dgst;return d=A,_=Error(i(419)),d=Sh(_,d,void 0),uc(t,s,E,d)}if(A=(E&t.childLanes)!==0,gn||A){if(d=Mt,d!==null){switch(E&-E){case 4:g=2;break;case 16:g=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(d.suspendedLanes|E))!==0?0:g,g!==0&&g!==_.retryLane&&(_.retryLane=g,ei(t,g),cr(d,t,g,-1))}return qh(),d=Sh(Error(i(421))),uc(t,s,E,d)}return g.data==="$?"?(s.flags|=128,s.child=t.child,s=Yw.bind(null,t),g._reactRetry=s,null):(t=_.treeContext,jn=Er(g.nextSibling),An=s,ht=!0,or=null,t!==null&&($n[qn++]=Xr,$n[qn++]=Jr,$n[qn++]=Rs,Xr=t.id,Jr=t.overflow,Rs=s),s=Nh(s,d.children),s.flags|=4096,s)}function Ym(t,s,l){t.lanes|=s;var d=t.alternate;d!==null&&(d.lanes|=s),oh(t.return,s,l)}function Lh(t,s,l,d,g){var _=t.memoizedState;_===null?t.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:g}:(_.isBackwards=s,_.rendering=null,_.renderingStartTime=0,_.last=d,_.tail=l,_.tailMode=g)}function Xm(t,s,l){var d=s.pendingProps,g=d.revealOrder,_=d.tail;if(ln(t,s,d.children,l),d=gt.current,(d&2)!==0)d=d&1|2,s.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=s.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ym(t,l,s);else if(t.tag===19)Ym(t,l,s);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===s)break e;for(;t.sibling===null;){if(t.return===null||t.return===s)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}d&=1}if(lt(gt,d),(s.mode&1)===0)s.memoizedState=null;else switch(g){case"forwards":for(l=s.child,g=null;l!==null;)t=l.alternate,t!==null&&nc(t)===null&&(g=l),l=l.sibling;l=g,l===null?(g=s.child,s.child=null):(g=l.sibling,l.sibling=null),Lh(s,!1,g,l,_);break;case"backwards":for(l=null,g=s.child,s.child=null;g!==null;){if(t=g.alternate,t!==null&&nc(t)===null){s.child=g;break}t=g.sibling,g.sibling=l,l=g,g=t}Lh(s,!0,l,null,_);break;case"together":Lh(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function cc(t,s){(s.mode&1)===0&&t!==null&&(t.alternate=null,s.alternate=null,s.flags|=2)}function ni(t,s,l){if(t!==null&&(s.dependencies=t.dependencies),Is|=s.lanes,(l&s.childLanes)===0)return null;if(t!==null&&s.child!==t.child)throw Error(i(153));if(s.child!==null){for(t=s.child,l=Wi(t,t.pendingProps),s.child=l,l.return=s;t.sibling!==null;)t=t.sibling,l=l.sibling=Wi(t,t.pendingProps),l.return=s;l.sibling=null}return s.child}function Fw(t,s,l){switch(s.tag){case 3:Km(s),Ko();break;case 5:hm(s);break;case 1:mn(s.type)&&Vu(s);break;case 4:uh(s,s.stateNode.containerInfo);break;case 10:var d=s.type._context,g=s.memoizedProps.value;lt(Xu,d._currentValue),d._currentValue=g;break;case 13:if(d=s.memoizedState,d!==null)return d.dehydrated!==null?(lt(gt,gt.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?Qm(t,s,l):(lt(gt,gt.current&1),t=ni(t,s,l),t!==null?t.sibling:null);lt(gt,gt.current&1);break;case 19:if(d=(l&s.childLanes)!==0,(t.flags&128)!==0){if(d)return Xm(t,s,l);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),lt(gt,gt.current),d)break;return null;case 22:case 23:return s.lanes=0,qm(t,s,l)}return ni(t,s,l)}var Jm,Rh,eg,tg;Jm=function(t,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Rh=function(){},eg=function(t,s,l,d){var g=t.memoizedProps;if(g!==d){t=s.stateNode,js(Cr.current);var _=null;switch(l){case"input":g=dn(t,g),d=dn(t,d),_=[];break;case"select":g=V({},g,{value:void 0}),d=V({},d,{value:void 0}),_=[];break;case"textarea":g=zn(t,g),d=zn(t,d),_=[];break;default:typeof g.onClick!="function"&&typeof d.onClick=="function"&&(t.onclick=re)}Ma(l,d);var E;l=null;for(J in g)if(!d.hasOwnProperty(J)&&g.hasOwnProperty(J)&&g[J]!=null)if(J==="style"){var A=g[J];for(E in A)A.hasOwnProperty(E)&&(l||(l={}),l[E]="")}else J!=="dangerouslySetInnerHTML"&&J!=="children"&&J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&J!=="autoFocus"&&(u.hasOwnProperty(J)?_||(_=[]):(_=_||[]).push(J,null));for(J in d){var D=d[J];if(A=g!=null?g[J]:void 0,d.hasOwnProperty(J)&&D!==A&&(D!=null||A!=null))if(J==="style")if(A){for(E in A)!A.hasOwnProperty(E)||D&&D.hasOwnProperty(E)||(l||(l={}),l[E]="");for(E in D)D.hasOwnProperty(E)&&A[E]!==D[E]&&(l||(l={}),l[E]=D[E])}else l||(_||(_=[]),_.push(J,l)),l=D;else J==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,A=A?A.__html:void 0,D!=null&&A!==D&&(_=_||[]).push(J,D)):J==="children"?typeof D!="string"&&typeof D!="number"||(_=_||[]).push(J,""+D):J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&(u.hasOwnProperty(J)?(D!=null&&J==="onScroll"&&ot("scroll",t),_||A===D||(_=[])):(_=_||[]).push(J,D))}l&&(_=_||[]).push("style",l);var J=_;(s.updateQueue=J)&&(s.flags|=4)}},tg=function(t,s,l,d){l!==d&&(s.flags|=4)};function Sl(t,s){if(!ht)switch(t.tailMode){case"hidden":s=t.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?s||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}function Yt(t){var s=t.alternate!==null&&t.alternate.child===t.child,l=0,d=0;if(s)for(var g=t.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags&14680064,d|=g.flags&14680064,g.return=t,g=g.sibling;else for(g=t.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=t,g=g.sibling;return t.subtreeFlags|=d,t.childLanes=l,s}function Bw(t,s,l){var d=s.pendingProps;switch(Jd(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(s),null;case 1:return mn(s.type)&&qu(),Yt(s),null;case 3:return d=s.stateNode,Xo(),dt(pn),dt(Gt),hh(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(t===null||t.child===null)&&(Qu(s)?s.flags|=4:t===null||t.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,or!==null&&(Hh(or),or=null))),Rh(t,s),Yt(s),null;case 5:ch(s);var g=js(yl.current);if(l=s.type,t!==null&&s.stateNode!=null)eg(t,s,l,d,g),t.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!d){if(s.stateNode===null)throw Error(i(166));return Yt(s),null}if(t=js(Cr.current),Qu(s)){d=s.stateNode,l=s.type;var _=s.memoizedProps;switch(d[Wn]=s,d[Ri]=_,t=(s.mode&1)!==0,l){case"dialog":ot("cancel",d),ot("close",d);break;case"iframe":case"object":case"embed":ot("load",d);break;case"video":case"audio":for(g=0;g<Ti.length;g++)ot(Ti[g],d);break;case"source":ot("error",d);break;case"img":case"image":case"link":ot("error",d),ot("load",d);break;case"details":ot("toggle",d);break;case"input":rn(d,_),ot("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!_.multiple},ot("invalid",d);break;case"textarea":Aa(d,_),ot("invalid",d)}Ma(l,_),g=null;for(var E in _)if(_.hasOwnProperty(E)){var A=_[E];E==="children"?typeof A=="string"?d.textContent!==A&&(_.suppressHydrationWarning!==!0&&X(d.textContent,A,t),g=["children",A]):typeof A=="number"&&d.textContent!==""+A&&(_.suppressHydrationWarning!==!0&&X(d.textContent,A,t),g=["children",""+A]):u.hasOwnProperty(E)&&A!=null&&E==="onScroll"&&ot("scroll",d)}switch(l){case"input":Wt(d),$t(d,_,!0);break;case"textarea":Wt(d),lu(d);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(d.onclick=re)}d=g,s.updateQueue=d,d!==null&&(s.flags|=4)}else{E=g.nodeType===9?g:g.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=fo(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=E.createElement("div"),t.innerHTML="<script><\/script>
40",t=t.removeChild(t.firstChild)):typeof d.is=="string"?t=E.createElement(l,{is:d.is}):(t=E.createElement(l),l==="select"&&(E=t,d.multiple?E.multiple=!0:d.size&&(E.size=d.size))):t=E.createElementNS(t,l),t[Wn]=s,t[Ri]=d,Jm(t,s,!1,!1),s.stateNode=t;e:{switch(E=Mr(l,d),l){case"dialog":ot("cancel",t),ot("close",t),g=d;break;case"iframe":case"object":case"embed":ot("load",t),g=d;break;case"video":case"audio":for(g=0;g<Ti.length;g++)ot(Ti[g],t);g=d;break;case"source":ot("error",t),g=d;break;case"img":case"image":case"link":ot("error",t),ot("load",t),g=d;break;case"details":ot("toggle",t),g=d;break;case"input":rn(t,d),g=dn(t,d),ot("invalid",t);break;case"option":g=d;break;case"select":t._wrapperState={wasMultiple:!!d.multiple},g=V({},d,{value:void 0}),ot("invalid",t);break;case"textarea":Aa(t,d),g=zn(t,d),ot("invalid",t);break;default:g=d}Ma(l,g),A=g;for(_ in A)if(A.hasOwnProperty(_)){var D=A[_];_==="style"?mo(t,D):_==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,D!=null&&uu(t,D)):_==="children"?typeof D=="string"?(l!=="textarea"||D!=="")&&ci(t,D):typeof D=="number"&&ci(t,""+D):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(u.hasOwnProperty(_)?D!=null&&_==="onScroll"&&ot("scroll",t):D!=null&&M(t,_,D,E))}switch(l){case"input":Wt(t),$t(t,d,!1);break;case"textarea":Wt(t),lu(t);break;case"option":d.value!=null&&t.setAttribute("value",""+ze(d.value));break;case"select":t.multiple=!!d.multiple,_=d.value,_!=null?In(t,!!d.multiple,_,!1):d.defaultValue!=null&&In(t,!!d.multiple,d.defaultValue,!0);break;default:typeof g.onClick=="function"&&(t.onclick=re)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Yt(s),null;case 6:if(t&&s.stateNode!=null)tg(t,s,t.memoizedProps,d);else{if(typeof d!="string"&&s.stateNode===null)throw Error(i(166));if(l=js(yl.current),js(Cr.current),Qu(s)){if(d=s.stateNode,l=s.memoizedProps,d[Wn]=s,(_=d.nodeValue!==l)&&(t=An,t!==null))switch(t.tag){case 3:X(d.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&X(d.nodeValue,l,(t.mode&1)!==0)}_&&(s.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[Wn]=s,s.stateNode=d}return Yt(s),null;case 13:if(dt(gt),d=s.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(ht&&jn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)im(),Ko(),s.flags|=98560,_=!1;else if(_=Qu(s),d!==null&&d.dehydrated!==null){if(t===null){if(!_)throw Error(i(318));if(_=s.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(i(317));_[Wn]=s}else Ko(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Yt(s),_=!1}else or!==null&&(Hh(or),or=null),_=!0;if(!_)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(d=d!==null,d!==(t!==null&&t.memoizedState!==null)&&d&&(s.child.flags|=8192,(s.mode&1)!==0&&(t===null||(gt.current&1)!==0?Ot===0&&(Ot=3):qh())),s.updateQueue!==null&&(s.flags|=4),Yt(s),null);case 4:return Xo(),Rh(t,s),t===null&&Ni(s.stateNode.containerInfo),Yt(s),null;case 10:return sh(s.type._context),Yt(s),null;case 17:return mn(s.type)&&qu(),Yt(s),null;case 19:if(dt(gt),_=s.memoizedState,_===null)return Yt(s),null;if(d=(s.flags&128)!==0,E=_.rendering,E===null)if(d)Sl(_,!1);else{if(Ot!==0||t!==null&&(t.flags&128)!==0)for(t=s.child;t!==null;){if(E=nc(t),E!==null){for(s.flags|=128,Sl(_,!1),d=E.updateQueue,d!==null&&(s.updateQueue=d,s.flags|=4),s.subtreeFlags=0,d=l,l=s.child;l!==null;)_=l,t=d,_.flags&=14680066,E=_.alternate,E===null?(_.childLanes=0,_.lanes=t,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=E.childLanes,_.lanes=E.lanes,_.child=E.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=E.memoizedProps,_.memoizedState=E.memoizedState,_.updateQueue=E.updateQueue,_.type=E.type,t=E.dependencies,_.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return lt(gt,gt.current&1|2),s.child}t=t.sibling}_.tail!==null&&pt()>na&&(s.flags|=128,d=!0,Sl(_,!1),s.lanes=4194304)}else{if(!d)if(t=nc(E),t!==null){if(s.flags|=128,d=!0,l=t.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),Sl(_,!0),_.tail===null&&_.tailMode==="hidden"&&!E.alternate&&!ht)return Yt(s),null}else 2*pt()-_.renderingStartTime>na&&l!==1073741824&&(s.flags|=128,d=!0,Sl(_,!1),s.lanes=4194304);_.isBackwards?(E.sibling=s.child,s.child=E):(l=_.last,l!==null?l.sibling=E:s.child=E,_.last=E)}return _.tail!==null?(s=_.tail,_.rendering=s,_.tail=s.sibling,_.renderingStartTime=pt(),s.sibling=null,l=gt.current,lt(gt,d?l&1|2:l&1),s):(Yt(s),null);case 22:case 23:return $h(),d=s.memoizedState!==null,t!==null&&t.memoizedState!==null!==d&&(s.flags|=8192),d&&(s.mode&1)!==0?(Mn&1073741824)!==0&&(Yt(s),s.subtreeFlags&6&&(s.flags|=8192)):Yt(s),null;case 24:return null;case 25:return null}throw Error(i(156,s.tag))}function Uw(t,s){switch(Jd(s),s.tag){case 1:return mn(s.type)&&qu(),t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 3:return Xo(),dt(pn),dt(Gt),hh(),t=s.flags,(t&65536)!==0&&(t&128)===0?(s.flags=t&-65537|128,s):null;case 5:return ch(s),null;case 13:if(dt(gt),t=s.memoizedState,t!==null&&t.dehydrated!==null){if(s.alternate===null)throw Error(i(340));Ko()}return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 19:return dt(gt),null;case 4:return Xo(),null;case 10:return sh(s.type._context),null;case 22:case 23:return $h(),null;case 24:return null;default:return null}}var dc=!1,Xt=!1,Hw=typeof WeakSet=="function"?WeakSet:Set,ve=null;function ea(t,s){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){wt(t,s,d)}else l.current=null}function Oh(t,s,l){try{l()}catch(d){wt(t,s,d)}}var ng=!1;function Ww(t,s){if(he=bs,t=ol(),al(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var g=d.anchorOffset,_=d.focusNode;d=d.focusOffset;try{l.nodeType,_.nodeType}catch{l=null;break e}var E=0,A=-1,D=-1,J=0,se=0,oe=t,ie=null;t:for(;;){for(var fe;oe!==l||g!==0&&oe.nodeType!==3||(A=E+g),oe!==_||d!==0&&oe.nodeType!==3||(D=E+d),oe.nodeType===3&&(E+=oe.nodeValue.length),(fe=oe.firstChild)!==null;)ie=oe,oe=fe;for(;;){if(oe===t)break t;if(ie===l&&++J===g&&(A=E),ie===_&&++se===d&&(D=E),(fe=oe.nextSibling)!==null)break;oe=ie,ie=oe.parentNode}oe=fe}l=A===-1||D===-1?null:{start:A,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(Te={focusedElem:t,selectionRange:l},bs=!1,ve=s;ve!==null;)if(s=ve,t=s.child,(s.subtreeFlags&1028)!==0&&t!==null)t.return=s,ve=t;else for(;ve!==null;){s=ve;try{var we=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(we!==null){var ke=we.memoizedProps,St=we.memoizedState,K=s.stateNode,H=K.getSnapshotBeforeUpdate(s.elementType===s.type?ke:ar(s.type,ke),St);K.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var Y=s.stateNode.containerInfo;Y.nodeType===1?Y.textContent="":Y.nodeType===9&&Y.documentElement&&Y.removeChild(Y.documentElement);break;
vendor: 19,910 bytes, line 40
40case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(le){wt(s,s.return,le)}if(t=s.sibling,t!==null){t.return=s.return,ve=t;break}ve=s.return}return we=ng,ng=!1,we}function kl(t,s,l){var d=s.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var g=d=d.next;do{if((g.tag&t)===t){var _=g.destroy;g.destroy=void 0,_!==void 0&&Oh(s,l,_)}g=g.next}while(g!==d)}}function hc(t,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&t)===t){var d=l.create;l.destroy=d()}l=l.next}while(l!==s)}}function Ah(t){var s=t.ref;if(s!==null){var l=t.stateNode;switch(t.tag){case 5:t=l;break;default:t=l}typeof s=="function"?s(t):s.current=t}}function rg(t){var s=t.alternate;s!==null&&(t.alternate=null,rg(s)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(s=t.stateNode,s!==null&&(delete s[Wn],delete s[Ri],delete s[Oi],delete s[Kd],delete s[Gd])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function ig(t){return t.tag===5||t.tag===3||t.tag===4}function sg(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ig(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jh(t,s,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(t,s):l.insertBefore(t,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(t,l)):(s=l,s.appendChild(t)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=re));else if(d!==4&&(t=t.child,t!==null))for(jh(t,s,l),t=t.sibling;t!==null;)jh(t,s,l),t=t.sibling}function Mh(t,s,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,s?l.insertBefore(t,s):l.appendChild(t);else if(d!==4&&(t=t.child,t!==null))for(Mh(t,s,l),t=t.sibling;t!==null;)Mh(t,s,l),t=t.sibling}var Dt=null,lr=!1;function Di(t,s,l){for(l=l.child;l!==null;)og(t,s,l),l=l.sibling}function og(t,s,l){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(gs,l)}catch{}switch(l.tag){case 5:Xt||ea(l,s);case 6:var d=Dt,g=lr;Dt=null,Di(t,s,l),Dt=d,lr=g,Dt!==null&&(lr?(t=Dt,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):Dt.removeChild(l.stateNode));break;case 18:Dt!==null&&(lr?(t=Dt,l=l.stateNode,t.nodeType===8?pl(t.parentNode,l):t.nodeType===1&&pl(t,l),Tn(t)):pl(Dt,l.stateNode));break;case 4:d=Dt,g=lr,Dt=l.stateNode.containerInfo,lr=!0,Di(t,s,l),Dt=d,lr=g;break;case 0:case 11:case 14:case 15:if(!Xt&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){g=d=d.next;do{var _=g,E=_.destroy;_=_.tag,E!==void 0&&((_&2)!==0||(_&4)!==0)&&Oh(l,s,E),g=g.next}while(g!==d)}Di(t,s,l);break;case 1:if(!Xt&&(ea(l,s),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(A){wt(l,s,A)}Di(t,s,l);break;case 21:Di(t,s,l);break;case 22:l.mode&1?(Xt=(d=Xt)||l.memoizedState!==null,Di(t,s,l),Xt=d):Di(t,s,l);break;default:Di(t,s,l)}}function ag(t){var s=t.updateQueue;if(s!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new Hw),s.forEach(function(d){var g=Xw.bind(null,t,d);l.has(d)||(l.add(d),d.then(g,g))})}}function ur(t,s){var l=s.deletions;if(l!==null)for(var d=0;d<l.length;d++){var g=l[d];try{var _=t,E=s,A=E;e:for(;A!==null;){switch(A.tag){case 5:Dt=A.stateNode,lr=!1;break e;case 3:Dt=A.stateNode.containerInfo,lr=!0;break e;case 4:Dt=A.stateNode.containerInfo,lr=!0;break e}A=A.return}if(Dt===null)throw Error(i(160));og(_,E,g),Dt=null,lr=!1;var D=g.alternate;D!==null&&(D.return=null),g.return=null}catch(J){wt(g,s,J)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)lg(s,t),s=s.sibling}function lg(t,s){var l=t.alternate,d=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(ur(s,t),Tr(t),d&4){try{kl(3,t,t.return),hc(3,t)}catch(ke){wt(t,t.return,ke)}try{kl(5,t,t.return)}catch(ke){wt(t,t.return,ke)}}break;case 1:ur(s,t),Tr(t),d&512&&l!==null&&ea(l,l.return);break;case 5:if(ur(s,t),Tr(t),d&512&&l!==null&&ea(l,l.return),t.flags&32){var g=t.stateNode;try{ci(g,"")}catch(ke){wt(t,t.return,ke)}}if(d&4&&(g=t.stateNode,g!=null)){var _=t.memoizedProps,E=l!==null?l.memoizedProps:_,A=t.type,D=t.updateQueue;if(t.updateQueue=null,D!==null)try{A==="input"&&_.type==="radio"&&_.name!=null&&Me(g,_),Mr(A,E);var J=Mr(A,_);for(E=0;E<D.length;E+=2){var se=D[E],oe=D[E+1];se==="style"?mo(g,oe):se==="dangerouslySetInnerHTML"?uu(g,oe):se==="children"?ci(g,oe):M(g,se,oe,J)}switch(A){case"input":bt(g,_);break;case"textarea":au(g,_);break;case"select":var ie=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!_.multiple;var fe=_.value;fe!=null?In(g,!!_.multiple,fe,!1):ie!==!!_.multiple&&(_.defaultValue!=null?In(g,!!_.multiple,_.defaultValue,!0):In(g,!!_.multiple,_.multiple?[]:"",!1))}g[Ri]=_}catch(ke){wt(t,t.return,ke)}}break;case 6:if(ur(s,t),Tr(t),d&4){if(t.stateNode===null)throw Error(i(162));g=t.stateNode,_=t.memoizedProps;try{g.nodeValue=_}catch(ke){wt(t,t.return,ke)}}break;case 3:if(ur(s,t),Tr(t),d&4&&l!==null&&l.memoizedState.isDehydrated)try{Tn(s.containerInfo)}catch(ke){wt(t,t.return,ke)}break;case 4:ur(s,t),Tr(t);break;case 13:ur(s,t),Tr(t),g=t.child,g.flags&8192&&(_=g.memoizedState!==null,g.stateNode.isHidden=_,!_||g.alternate!==null&&g.alternate.memoizedState!==null||(Dh=pt())),d&4&&ag(t);break;case 22:if(se=l!==null&&l.memoizedState!==null,t.mode&1?(Xt=(J=Xt)||se,ur(s,t),Xt=J):ur(s,t),Tr(t),d&8192){if(J=t.memoizedState!==null,(t.stateNode.isHidden=J)&&!se&&(t.mode&1)!==0)for(ve=t,se=t.child;se!==null;){for(oe=ve=se;ve!==null;){switch(ie=ve,fe=ie.child,ie.tag){case 0:case 11:case 14:case 15:kl(4,ie,ie.return);break;case 1:ea(ie,ie.return);var we=ie.stateNode;if(typeof we.componentWillUnmount=="function"){d=ie,l=ie.return;try{s=d,we.props=s.memoizedProps,we.state=s.memoizedState,we.componentWillUnmount()}catch(ke){wt(d,l,ke)}}break;case 5:ea(ie,ie.return);break;case 22:if(ie.memoizedState!==null){dg(oe);continue}}fe!==null?(fe.return=ie,ve=fe):dg(oe)}se=se.sibling}e:for(se=null,oe=t;;){if(oe.tag===5){if(se===null){se=oe;try{g=oe.stateNode,J?(_=g.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(A=oe.stateNode,D=oe.memoizedProps.style,E=D!=null&&D.hasOwnProperty("display")?D.display:null,A.style.display=ja("display",E))}catch(ke){wt(t,t.return,ke)}}}else if(oe.tag===6){if(se===null)try{oe.stateNode.nodeValue=J?"":oe.memoizedProps}catch(ke){wt(t,t.return,ke)}}else if((oe.tag!==22&&oe.tag!==23||oe.memoizedState===null||oe===t)&&oe.child!==null){oe.child.return=oe,oe=oe.child;continue}if(oe===t)break e;for(;oe.sibling===null;){if(oe.return===null||oe.return===t)break e;se===oe&&(se=null),oe=oe.return}se===oe&&(se=null),oe.sibling.return=oe.return,oe=oe.sibling}}break;case 19:ur(s,t),Tr(t),d&4&&ag(t);break;case 21:break;default:ur(s,t),Tr(t)}}function Tr(t){var s=t.flags;if(s&2){try{e:{for(var l=t.return;l!==null;){if(ig(l)){var d=l;break e}l=l.return}throw Error(i(160))}switch(d.tag){case 5:var g=d.stateNode;d.flags&32&&(ci(g,""),d.flags&=-33);var _=sg(t);Mh(t,_,g);break;case 3:case 4:var E=d.stateNode.containerInfo,A=sg(t);jh(t,A,E);break;default:throw Error(i(161))}}catch(D){wt(t,t.return,D)}t.flags&=-3}s&4096&&(t.flags&=-4097)}function $w(t,s,l){ve=t,ug(t)}function ug(t,s,l){for(var d=(t.mode&1)!==0;ve!==null;){var g=ve,_=g.child;if(g.tag===22&&d){var E=g.memoizedState!==null||dc;if(!E){var A=g.alternate,D=A!==null&&A.memoizedState!==null||Xt;A=dc;var J=Xt;if(dc=E,(Xt=D)&&!J)for(ve=g;ve!==null;)E=ve,D=E.child,E.tag===22&&E.memoizedState!==null?hg(g):D!==null?(D.return=E,ve=D):hg(g);for(;_!==null;)ve=_,ug(_),_=_.sibling;ve=g,dc=A,Xt=J}cg(t)}else(g.subtreeFlags&8772)!==0&&_!==null?(_.return=g,ve=_):cg(t)}}function cg(t){for(;ve!==null;){var s=ve;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Xt||hc(5,s);break;case 1:var d=s.stateNode;if(s.flags&4&&!Xt)if(l===null)d.componentDidMount();else{var g=s.elementType===s.type?l.memoizedProps:ar(s.type,l.memoizedProps);d.componentDidUpdate(g,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var _=s.updateQueue;_!==null&&dm(s,_,d);break;case 3:var E=s.updateQueue;if(E!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}dm(s,E,l)}break;case 5:var A=s.stateNode;if(l===null&&s.flags&4){l=A;var D=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":D.autoFocus&&l.focus();break;case"img":D.src&&(l.src=D.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var J=s.alternate;if(J!==null){var se=J.memoizedState;if(se!==null){var oe=se.dehydrated;oe!==null&&Tn(oe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Xt||s.flags&512&&Ah(s)}catch(ie){wt(s,s.return,ie)}}if(s===t){ve=null;break}if(l=s.sibling,l!==null){l.return=s.return,ve=l;break}ve=s.return}}function dg(t){for(;ve!==null;){var s=ve;if(s===t){ve=null;break}var l=s.sibling;if(l!==null){l.return=s.return,ve=l;break}ve=s.return}}function hg(t){for(;ve!==null;){var s=ve;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{hc(4,s)}catch(D){wt(s,l,D)}break;case 1:var d=s.stateNode;if(typeof d.componentDidMount=="function"){var g=s.return;try{d.componentDidMount()}catch(D){wt(s,g,D)}}var _=s.return;try{Ah(s)}catch(D){wt(s,_,D)}break;case 5:var E=s.return;try{Ah(s)}catch(D){wt(s,E,D)}}}catch(D){wt(s,s.return,D)}if(s===t){ve=null;break}var A=s.sibling;if(A!==null){A.return=s.return,ve=A;break}ve=s.return}}var qw=Math.ceil,fc=j.ReactCurrentDispatcher,Ih=j.ReactCurrentOwner,Kn=j.ReactCurrentBatchConfig,Xe=0,Mt=null,Ct=null,Ft=0,Mn=0,ta=Ai(0),Ot=0,El=null,Is=0,pc=0,zh=0,Cl=null,vn=null,Dh=0,na=1/0,ri=null,mc=!1,Fh=null,Fi=null,gc=!1,Bi=null,vc=0,Pl=0,Bh=null,yc=-1,_c=0;function un(){return(Xe&6)!==0?pt():yc!==-1?yc:yc=pt()}function Ui(t){return(t.mode&1)===0?1:(Xe&2)!==0&&Ft!==0?Ft&-Ft:Tw.transition!==null?(_c===0&&(_c=bu()),_c):(t=Ze,t!==0||(t=window.event,t=t===void 0?16:qe(t.type)),t)}function cr(t,s,l,d){if(50<Pl)throw Pl=0,Bh=null,Error(i(185));Cn(t,l,d),((Xe&2)===0||t!==Mt)&&(t===Mt&&((Xe&2)===0&&(pc|=l),Ot===4&&Hi(t,Ft)),yn(t,d),l===1&&Xe===0&&(s.mode&1)===0&&(na=pt()+500,Zu&&Mi()))}function yn(t,s){var l=t.callbackNode;bo(t,s);var d=at(t,t===Mt?Ft:0);if(d===0)l!==null&&Ha(l),t.callbackNode=null,t.callbackPriority=0;else if(s=d&-d,t.callbackPriority!==s){if(l!=null&&Ha(l),s===1)t.tag===0?Pw(pg.bind(null,t)):Jp(pg.bind(null,t)),Kt(function(){(Xe&6)===0&&Mi()}),l=null;else{switch(gi(d)){case 1:l=Wa;break;case 4:l=xu;break;case 16:l=wo;break;case 536870912:l=hi;break;default:l=wo}l=bg(l,fg.bind(null,t))}t.callbackPriority=s,t.callbackNode=l}}function fg(t,s){if(yc=-1,_c=0,(Xe&6)!==0)throw Error(i(327));var l=t.callbackNode;if(ra()&&t.callbackNode!==l)return null;var d=at(t,t===Mt?Ft:0);if(d===0)return null;if((d&30)!==0||(d&t.expiredLanes)!==0||s)s=wc(t,d);else{s=d;var g=Xe;Xe|=2;var _=gg();(Mt!==t||Ft!==s)&&(ri=null,na=pt()+500,Ds(t,s));do try{Kw();break}catch(A){mg(t,A)}while(!0);ih(),fc.current=_,Xe=g,Ct!==null?s=0:(Mt=null,Ft=0,s=Ot)}if(s!==0){if(s===2&&(g=Vt(t),g!==0&&(d=g,s=Uh(t,g))),s===1)throw l=El,Ds(t,0),Hi(t,d),yn(t,pt()),l;if(s===6)Hi(t,d);else{if(g=t.current.alternate,(d&30)===0&&!Vw(g)&&(s=wc(t,d),s===2&&(_=Vt(t),_!==0&&(d=_,s=Uh(t,_))),s===1))throw l=El,Ds(t,0),Hi(t,d),yn(t,pt()),l;switch(t.finishedWork=g,t.finishedLanes=d,s){case 0:case 1:throw Error(i(345));case 2:Fs(t,vn,ri);break;case 3:if(Hi(t,d),(d&130023424)===d&&(s=Dh+500-pt(),10<s)){if(at(t,0)!==0)break;if(g=t.suspendedLanes,(g&d)!==d){un(),t.pingedLanes|=t.suspendedLanes&g;break}t.timeoutHandle=Lt(Fs.bind(null,t,vn,ri),s);break}Fs(t,vn,ri);break;case 4:if(Hi(t,d),(d&4194240)===d)break;for(s=t.eventTimes,g=-1;0<d;){var E=31-Ue(d);_=1<<E,E=s[E],E>g&&(g=E),d&=~_}if(d=g,d=pt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*qw(d/1960))-d,10<d){t.timeoutHandle=Lt(Fs.bind(null,t,vn,ri),d);break}Fs(t,vn,ri);break;case 5:Fs(t,vn,ri);break;default:throw Error(i(329))}}}return yn(t,pt()),t.callbackNode===l?fg.bind(null,t):null}function Uh(t,s){var l=Cl;return t.current.memoizedState.isDehydrated&&(Ds(t,s).flags|=256),t=wc(t,s),t!==2&&(s=vn,vn=l,s!==null&&Hh(s)),t}function Hh(t){vn===null?vn=t:vn.push.apply(vn,t)}function Vw(t){for(var s=t;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var g=l[d],_=g.getSnapshot;g=g.value;try{if(!Rn(_(),g))return!1}catch{return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Hi(t,s){for(s&=~zh,s&=~pc,t.suspendedLanes|=s,t.pingedLanes&=~s,t=t.expirationTimes;0<s;){var l=31-Ue(s),d=1<<l;t[l]=-1,s&=~d}}function pg(t){if((Xe&6)!==0)throw Error(i(327));ra();var s=at(t,0);if((s&1)===0)return yn(t,pt()),null;var l=wc(t,s);if(t.tag!==0&&l===2){var d=Vt(t);d!==0&&(s=d,l=Uh(t,d))}if(l===1)throw l=El,Ds(t,0),Hi(t,s),yn(t,pt()),l;if(l===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=s,Fs(t,vn,ri),yn(t,pt()),null}function Wh(t,s){var l=Xe;Xe|=1;try{return t(s)}finally{Xe=l,Xe===0&&(na=pt()+500,Zu&&Mi())}}function zs(t){Bi!==null&&Bi.tag===0&&(Xe&6)===0&&ra();var s=Xe;Xe|=1;var l=Kn.transition,d=Ze;try{if(Kn.transition=null,Ze=1,t)return t()}finally{Ze=d,Kn.transition=l,Xe=s,(Xe&6)===0&&Mi()}}function $h(){Mn=ta.current,dt(ta)}function Ds(t,s){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,Et(l)),Ct!==null)for(l=Ct.return;l!==null;){var d=l;switch(Jd(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&qu();break;case 3:Xo(),dt(pn),dt(Gt),hh();break;case 5:ch(d);break;case 4:Xo();break;case 13:dt(gt);break;case 19:dt(gt);break;case 10:sh(d.type._context);break;case 22:case 23:$h()}l=l.return}if(Mt=t,Ct=t=Wi(t.current,null),Ft=Mn=s,Ot=0,El=null,zh=pc=Is=0,vn=Cl=null,As!==null){for(s=0;s<As.length;s++)if(l=As[s],d=l.interleaved,d!==null){l.interleaved=null;var g=d.next,_=l.pending;if(_!==null){var E=_.next;_.next=g,d.next=E}l.pending=d}As=null}return t}function mg(t,s){do{var l=Ct;try{if(ih(),rc.current=ac,ic){for(var d=vt.memoizedState;d!==null;){var g=d.queue;g!==null&&(g.pending=null),d=d.next}ic=!1}if(Ms=0,jt=Rt=vt=null,_l=!1,wl=0,Ih.current=null,l===null||l.return===null){Ot=1,El=s,Ct=null;break}e:{var _=t,E=l.return,A=l,D=s;if(s=Ft,A.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){var J=D,se=A,oe=se.tag;if((se.mode&1)===0&&(oe===0||oe===11||oe===15)){var ie=se.alternate;ie?(se.updateQueue=ie.updateQueue,se.memoizedState=ie.memoizedState,se.lanes=ie.lanes):(se.updateQueue=null,se.memoizedState=null)}var fe=Bm(E);if(fe!==null){fe.flags&=-257,Um(fe,E,A,_,s),fe.mode&1&&Fm(_,J,s),s=fe,D=J;var we=s.updateQueue;if(we===null){var ke=new Set;ke.add(D),s.updateQueue=ke}else we.add(D);break e}else{if((s&1)===0){Fm(_,J,s),qh();break e}D=Error(i(426))}}else if(ht&&A.mode&1){var St=Bm(E);if(St!==null){(St.flags&65536)===0&&(St.flags|=256),Um(St,E,A,_,s),nh(Jo(D,A));break e}}_=D=Jo(D,A),Ot!==4&&(Ot=2),Cl===null?Cl=[_]:Cl.push(_),_=E;do{switch(_.tag){case 3:_.flags|=65536,s&=-s,_.lanes|=s;var K=zm(_,D,s);cm(_,K);break e;case 1:A=D;var H=_.type,Y=_.stateNode;if((_.flags&128)===0&&(typeof H.getDerivedStateFromError=="function"||Y!==null&&typeof Y.componentDidCatch=="function"&&(Fi===null||!Fi.has(Y)))){_.flags|=65536,s&=-s,_.lanes|=s;var le=Dm(_,A,s);cm(_,le);break e}}_=_.return}while(_!==null)}yg(l)}catch(Ce){s=Ce,Ct===l&&l!==null&&(Ct=l=l.return);continue}break}while(!0)}function gg(){var t=fc.current;return fc.current=ac,t===null?ac:t}function qh(){(Ot===0||Ot===3||Ot===2)&&(Ot=4),Mt===null||(Is&268435455)===0&&(pc&268435455)===0||Hi(Mt,Ft)}function wc(t,s){var l=Xe;Xe|=2;var d=gg();(Mt!==t||Ft!==s)&&(ri=null,Ds(t,s));do try{Zw();break}catch(g){mg(t,g)}while(!0);if(ih(),Xe=l,fc.current=d,Ct!==null)throw Error(i(261));return Mt=null,Ft=0,Ot}function Zw(){for(;Ct!==null;)vg(Ct)}function Kw(){for(;Ct!==null&&!Od();)vg(Ct)}function vg(t){var s=xg(t.alternate,t,Mn);t.memoizedProps=t.pendingProps,s===null?yg(t):Ct=s,Ih.current=null}function yg(t){var s=t;do{var l=s.alternate;if(t=s.return,(s.flags&32768)===0){if(l=Bw(l,s,Mn),l!==null){Ct=l;return}}else{if(l=Uw(l,s),l!==null){l.flags&=32767,Ct=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ot=6,Ct=null;return}}if(s=s.sibling,s!==null){Ct=s;return}Ct=s=t}while(s!==null);Ot===0&&(Ot=5)}function Fs(t,s,l){var d=Ze,g=Kn.transition;try{Kn.transition=null,Ze=1,Gw(t,s,l,d)}finally{Kn.transition=g,Ze=d}return null}function Gw(t,s,l,d){do ra();while(Bi!==null);if((Xe&6)!==0)throw Error(i(327));l=t.finishedWork;var g=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var _=l.lanes|l.childLanes;if(_t(t,_),t===Mt&&(Ct=Mt=null,Ft=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||gc||(gc=!0,bg(wo,function(){return ra(),null})),_=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||_){_=Kn.transition,Kn.transition=null;var E=Ze;Ze=1;var A=Xe;Xe|=4,Ih.current=null,Ww(t,l),lg(l,t),Un(Te),bs=!!he,Te=he=null,t.current=l,$w(l),_o(),Xe=A,Ze=E,Kn.transition=_}else t.current=l;if(gc&&(gc=!1,Bi=t,vc=g),_=t.pendingLanes,_===0&&(Fi=null),vs(l.stateNode),yn(t,pt()),s!==null)for(d=t.onRecoverableError,l=0;l<s.length;l++)g=s[l],d(g.value,{componentStack:g.stack,digest:g.digest});if(mc)throw mc=!1,t=Fh,Fh=null,t;return(vc&1)!==0&&t.tag!==0&&ra(),_=t.pendingLanes,(_&1)!==0?t===Bh?Pl++:(Pl=0,Bh=t):Pl=0,Mi(),null}function ra(){if(Bi!==null){var t=gi(vc),s=Kn.transition,l=Ze;try{if(Kn.transition=null,Ze=16>t?16:t,Bi===null)var d=!1;else{if(t=Bi,Bi=null,vc=0,(Xe&6)!==0)throw Error(i(331));var g=Xe;for(Xe|=4,ve=t.current;ve!==null;){var _=ve,E=_.child;if((ve.flags&16)!==0){var A=_.deletions;if(A!==null){for(var D=0;D<A.length;D++){var J=A[D];for(ve=J;ve!==null;){var se=ve;switch(se.tag){case 0:case 11:case 15:kl(8,se,_)}var oe=se.child;if(oe!==null)oe.return=se,ve=oe;else for(;ve!==null;){se=ve;var ie=se.sibling,fe=se.return;if(rg(se),se===J){ve=null;break}if(ie!==null){ie.return=fe,ve=ie;break}ve=fe}}}var we=_.alternate;if(we!==null){var ke=we.child;if(ke!==null){we.child=null;do{var St=ke.sibling;ke.sibling=null,ke=St}while(ke!==null)}}ve=_}}if((_.subtreeFlags&2064)!==0&&E!==null)E.return=_,ve=E;else e:for(;ve!==null;){if(_=ve,(_.flags&2048)!==0)switch(_.tag){case 0:case 11:case 15:kl(9,_,_.return)}var K=_.sibling;if(K!==null){K.return=_.return,ve=K;break e}ve=_.return}}var H=t.current;for(ve=H;ve!==null;){E=ve;var Y=E.child;if((E.subtreeFlags&2064)!==0&&Y!==null)Y.return=E,ve=Y;else e:for(E=H;ve!==null;){if(A=ve,(A.flags&2048)!==0)try{switch(A.tag){case 0:case 11:case 15:hc(9,A)}}catch(Ce){wt(A,A.return,Ce)}if(A===E){ve=null;break e}var le=A.sibling;if(le!==null){le.return=A.return,ve=le;break e}ve=A.return}}if(Xe=g,Mi(),En&&typeof En.onPostCommitFiberRoot=="function")try{En.onPostCommitFiberRoot(gs,t)}catch{}d=!0}return d}finally{Ze=l,Kn.transition=s}}return!1}function _g(t,s,l){s=Jo(l,s),s=zm(t,s,1),t=zi(t,s,1),s=un(),t!==null&&(Cn(t,1,s),yn(t,s))}function wt(t,s,l){if(t.tag===3)_g(t,t,l);else for(;s!==null;){if(s.tag===3){_g(s,t,l);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Fi===null||!Fi.has(d))){t=Jo(l,t),t=Dm(s,t,1),s=zi(s,t,1),t=un(),s!==null&&(Cn(s,1,t),yn(s,t));break}}s=s.return}}function Qw(t,s,l){var d=t.pingCache;d!==null&&d.delete(s),s=un(),t.pingedLanes|=t.suspendedLanes&l,Mt===t&&(Ft&l)===l&&(Ot===4||Ot===3&&(Ft&130023424)===Ft&&500>pt()-Dh?Ds(t,0):zh|=l),yn(t,s)}
vendor: 3,161 bytes, line 40
40function wg(t,s){s===0&&((t.mode&1)===0?s=1:(s=pi,pi<<=1,(pi&130023424)===0&&(pi=4194304)));var l=un();t=ei(t,s),t!==null&&(Cn(t,s,l),yn(t,l))}function Yw(t){var s=t.memoizedState,l=0;s!==null&&(l=s.retryLane),wg(t,l)}function Xw(t,s){var l=0;switch(t.tag){case 13:var d=t.stateNode,g=t.memoizedState;g!==null&&(l=g.retryLane);break;case 19:d=t.stateNode;break;default:throw Error(i(314))}d!==null&&d.delete(s),wg(t,l)}var xg;xg=function(t,s,l){if(t!==null)if(t.memoizedProps!==s.pendingProps||pn.current)gn=!0;else{if((t.lanes&l)===0&&(s.flags&128)===0)return gn=!1,Fw(t,s,l);gn=(t.flags&131072)!==0}else gn=!1,ht&&(s.flags&1048576)!==0&&em(s,Gu,s.index);switch(s.lanes=0,s.tag){case 2:var d=s.type;cc(t,s),t=s.pendingProps;var g=qo(s,Gt.current);Yo(s,l),g=mh(null,s,d,t,g,l);var _=gh();return s.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,mn(d)?(_=!0,Vu(s)):_=!1,s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,lh(s),g.updater=lc,s.stateNode=g,g._reactInternals=s,bh(s,d,t,l),s=Ch(null,s,d,!0,_,l)):(s.tag=0,ht&&_&&Xd(s),ln(null,s,g,l),s=s.child),s;case 16:d=s.elementType;e:{switch(cc(t,s),t=s.pendingProps,g=d._init,d=g(d._payload),s.type=d,g=s.tag=ex(d),t=ar(d,t),g){case 0:s=Eh(null,s,d,t,l);break e;case 1:s=Zm(null,s,d,t,l);break e;case 11:s=Hm(null,s,d,t,l);break e;case 14:s=Wm(null,s,d,ar(d.type,t),l);break e}throw Error(i(306,d,""))}return s;case 0:return d=s.type,g=s.pendingProps,g=s.elementType===d?g:ar(d,g),Eh(t,s,d,g,l);case 1:return d=s.type,g=s.pendingProps,g=s.elementType===d?g:ar(d,g),Zm(t,s,d,g,l);case 3:e:{if(Km(s),t===null)throw Error(i(387));d=s.pendingProps,_=s.memoizedState,g=_.element,um(t,s),tc(s,d,null,l);var E=s.memoizedState;if(d=E.element,_.isDehydrated)if(_={element:d,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},s.updateQueue.baseState=_,s.memoizedState=_,s.flags&256){g=Jo(Error(i(423)),s),s=Gm(t,s,d,l,g);break e}else if(d!==g){g=Jo(Error(i(424)),s),s=Gm(t,s,d,l,g);break e}else for(jn=Er(s.stateNode.containerInfo.firstChild),An=s,ht=!0,or=null,l=am(s,null,d,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ko(),d===g){s=ni(t,s,l);break e}ln(t,s,d,l)}s=s.child}return s;case 5:return hm(s),t===null&&th(s),d=s.type,g=s.pendingProps,_=t!==null?t.memoizedProps:null,E=g.children,He(d,g)?E=null:_!==null&&He(d,_)&&(s.flags|=32),Vm(t,s),ln(t,s,E,l),s.child;case 6:return t===null&&th(s),null;case 13:return Qm(t,s,l);case 4:return uh(s,s.stateNode.containerInfo),d=s.pendingProps,t===null?s.child=Go(s,null,d,l):ln(t,s,d,l),s.child;case 11:return d=s.type,g=s.pendingProps,g=s.elementType===d?g:ar(d,g),Hm(t,s,d,g,l);case 7:return ln(t,s,s.pendingProps,l),s.child;case 8:return ln(t,s,s.pendingProps.children,l),s.child;case 12:return ln(t,s,s.pendingProps.children,l),s.child;case 10:e:{if(d=s.type._context,g=s.pendingProps,_=s.memoizedProps,E=g.value,lt(Xu,d._currentValue),d._currentValue=E,_!==null)if(Rn(_.value,E)){if(_.children===g.children&&!pn.current){s=ni(t,s,l);break e}}else for(_=s.child,_!==null&&(_.return=s);_!==null;
vendor: 11,331 bytes, line 40
40){var A=_.dependencies;if(A!==null){E=_.child;for(var D=A.firstContext;D!==null;){if(D.context===d){if(_.tag===1){D=ti(-1,l&-l),D.tag=2;var J=_.updateQueue;if(J!==null){J=J.shared;var se=J.pending;se===null?D.next=D:(D.next=se.next,se.next=D),J.pending=D}}_.lanes|=l,D=_.alternate,D!==null&&(D.lanes|=l),oh(_.return,l,s),A.lanes|=l;break}D=D.next}}else if(_.tag===10)E=_.type===s.type?null:_.child;else if(_.tag===18){if(E=_.return,E===null)throw Error(i(341));E.lanes|=l,A=E.alternate,A!==null&&(A.lanes|=l),oh(E,l,s),E=_.sibling}else E=_.child;if(E!==null)E.return=_;else for(E=_;E!==null;){if(E===s){E=null;break}if(_=E.sibling,_!==null){_.return=E.return,E=_;break}E=E.return}_=E}ln(t,s,g.children,l),s=s.child}return s;case 9:return g=s.type,d=s.pendingProps.children,Yo(s,l),g=Vn(g),d=d(g),s.flags|=1,ln(t,s,d,l),s.child;case 14:return d=s.type,g=ar(d,s.pendingProps),g=ar(d.type,g),Wm(t,s,d,g,l);case 15:return $m(t,s,s.type,s.pendingProps,l);case 17:return d=s.type,g=s.pendingProps,g=s.elementType===d?g:ar(d,g),cc(t,s),s.tag=1,mn(d)?(t=!0,Vu(s)):t=!1,Yo(s,l),Mm(s,d,g),bh(s,d,g,l),Ch(null,s,d,!0,t,l);case 19:return Xm(t,s,l);case 22:return qm(t,s,l)}throw Error(i(156,s.tag))};function bg(t,s){return wu(t,s)}function Jw(t,s,l,d){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(t,s,l,d){return new Jw(t,s,l,d)}function Vh(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ex(t){if(typeof t=="function")return Vh(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Oe)return 11;if(t===et)return 14}return 2}function Wi(t,s){var l=t.alternate;return l===null?(l=Gn(t.tag,s,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=s,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,s=t.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function xc(t,s,l,d,g,_){var E=2;if(d=t,typeof t=="function")Vh(t)&&(E=1);else if(typeof t=="string")E=5;else e:switch(t){case G:return Bs(l.children,g,_,s);case q:E=8,g|=8;break;case ue:return t=Gn(12,l,s,g|2),t.elementType=ue,t.lanes=_,t;case Ye:return t=Gn(13,l,s,g),t.elementType=Ye,t.lanes=_,t;case Fe:return t=Gn(19,l,s,g),t.elementType=Fe,t.lanes=_,t;case Be:return bc(l,g,_,s);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ae:E=10;break e;case pe:E=9;break e;case Oe:E=11;break e;case et:E=14;break e;case ye:E=16,d=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return s=Gn(E,l,s,g),s.elementType=t,s.type=d,s.lanes=_,s}function Bs(t,s,l,d){return t=Gn(7,t,d,s),t.lanes=l,t}function bc(t,s,l,d){return t=Gn(22,t,d,s),t.elementType=Be,t.lanes=l,t.stateNode={isHidden:!1},t}function Zh(t,s,l){return t=Gn(6,t,null,s),t.lanes=l,t}function Kh(t,s,l){return s=Gn(4,t.children!==null?t.children:[],t.key,s),s.lanes=l,s.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},s}function tx(t,s,l,d,g){this.tag=s,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mi(0),this.expirationTimes=mi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mi(0),this.identifierPrefix=d,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function Gh(t,s,l,d,g,_,E,A,D){return t=new tx(t,s,l,A,D),s===1?(s=1,_===!0&&(s|=8)):s=0,_=Gn(3,null,null,s),t.current=_,_.stateNode=t,_.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},lh(_),t}function nx(t,s,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Q,key:d==null?null:""+d,children:t,containerInfo:s,implementation:l}}function Sg(t){if(!t)return ji;t=t._reactInternals;e:{if(vr(t)!==t||t.tag!==1)throw Error(i(170));var s=t;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(mn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(i(171))}if(t.tag===1){var l=t.type;if(mn(l))return Yp(t,l,s)}return s}function kg(t,s,l,d,g,_,E,A,D){return t=Gh(l,d,!0,t,g,_,E,A,D),t.context=Sg(null),l=t.current,d=un(),g=Ui(l),_=ti(d,g),_.callback=s??null,zi(l,_,g),t.current.lanes=g,Cn(t,g,d),yn(t,d),t}function Sc(t,s,l,d){var g=s.current,_=un(),E=Ui(g);return l=Sg(l),s.context===null?s.context=l:s.pendingContext=l,s=ti(_,E),s.payload={element:t},d=d===void 0?null:d,d!==null&&(s.callback=d),t=zi(g,s,E),t!==null&&(cr(t,g,E,_),ec(t,g,E)),E}function kc(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Eg(t,s){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<s?l:s}}function Qh(t,s){Eg(t,s),(t=t.alternate)&&Eg(t,s)}function rx(){return null}var Cg=typeof reportError=="function"?reportError:function(t){console.error(t)};function Yh(t){this._internalRoot=t}Ec.prototype.render=Yh.prototype.render=function(t){var s=this._internalRoot;if(s===null)throw Error(i(409));Sc(t,s,null,null)},Ec.prototype.unmount=Yh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var s=t.containerInfo;zs(function(){Sc(null,t,null,null)}),s[tt]=null}};function Ec(t){this._internalRoot=t}Ec.prototype.unstable_scheduleHydration=function(t){if(t){var s=Eo();t={blockedOn:null,target:t,priority:s};for(var l=0;l<Nt.length&&s!==0&&s<Nt[l].priority;l++);Nt.splice(l,0,t),l===0&&Co(t)}};function Xh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Cc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Pg(){}function ix(t,s,l,d,g){if(g){if(typeof d=="function"){var _=d;d=function(){var J=kc(E);_.call(J)}}var E=kg(s,d,t,0,null,!1,!1,"",Pg);return t._reactRootContainer=E,t[tt]=E.current,Ni(t.nodeType===8?t.parentNode:t),zs(),E}for(;g=t.lastChild;)t.removeChild(g);if(typeof d=="function"){var A=d;d=function(){var J=kc(D);A.call(J)}}var D=Gh(t,0,!1,null,null,!1,!1,"",Pg);return t._reactRootContainer=D,t[tt]=D.current,Ni(t.nodeType===8?t.parentNode:t),zs(function(){Sc(s,D,l,d)}),D}function Pc(t,s,l,d,g){var _=l._reactRootContainer;if(_){var E=_;if(typeof g=="function"){var A=g;g=function(){var D=kc(E);A.call(D)}}Sc(s,E,t,g)}else E=ix(l,s,t,g,d);return kc(E)}So=function(t){switch(t.tag){case 3:var s=t.stateNode;if(s.current.memoizedState.isDehydrated){var l=De(s.pendingLanes);l!==0&&(tr(s,l|1),yn(s,pt()),(Xe&6)===0&&(na=pt()+500,Mi()))}break;case 13:zs(function(){var d=ei(t,1);if(d!==null){var g=un();cr(d,t,1,g)}}),Qh(t,1)}},Fr=function(t){if(t.tag===13){var s=ei(t,134217728);if(s!==null){var l=un();cr(s,t,134217728,l)}Qh(t,134217728)}},ko=function(t){if(t.tag===13){var s=Ui(t),l=ei(t,s);if(l!==null){var d=un();cr(l,t,s,d)}Qh(t,s)}},Eo=function(){return Ze},ys=function(t,s){var l=Ze;try{return Ze=t,s()}finally{Ze=l}},go=function(t,s,l){switch(s){case"input":if(bt(t,l),s=l.name,l.type==="radio"&&s!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var d=l[s];if(d!==t&&d.form===t.form){var g=Wo(d);if(!g)throw Error(i(90));ft(d),bt(d,g)}}}break;case"textarea":au(t,l);break;case"select":s=l.value,s!=null&&In(t,!!l.multiple,s,!1)}},pu=Wh,mu=zs;var sx={usingClientEntryPoint:!1,Events:[Gr,Qr,Wo,hu,fu,Wh]},Tl={findFiberByHostInstance:Kr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ox={bundleType:Tl.bundleType,version:Tl.version,rendererPackageName:Tl.rendererPackageName,rendererConfig:Tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=yu(t),t===null?null:t.stateNode},findFiberByHostInstance:Tl.findFiberByHostInstance||rx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tc.isDisabled&&Tc.supportsFiber)try{gs=Tc.inject(ox),En=Tc}catch{}}return _n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sx,_n.createPortal=function(t,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xh(s))throw Error(i(200));return nx(t,s,null,l)},_n.createRoot=function(t,s){if(!Xh(t))throw Error(i(299));var l=!1,d="",g=Cg;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onRecoverableError!==void 0&&(g=s.onRecoverableError)),s=Gh(t,1,!1,null,null,l,!1,d,g),t[tt]=s.current,Ni(t.nodeType===8?t.parentNode:t),new Yh(s)},_n.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var s=t._reactInternals;if(s===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=yu(s),t=t===null?null:t.stateNode,t},_n.flushSync=function(t){return zs(t)},_n.hydrate=function(t,s,l){if(!Cc(s))throw Error(i(200));return Pc(null,t,s,!0,l)},_n.hydrateRoot=function(t,s,l){if(!Xh(t))throw Error(i(405));var d=l!=null&&l.hydratedSources||null,g=!1,_="",E=Cg;if(l!=null&&(l.unstable_strictMode===!0&&(g=!0),l.identifierPrefix!==void 0&&(_=l.identifierPrefix),l.onRecoverableError!==void 0&&(E=l.onRecoverableError)),s=kg(s,null,t,1,l??null,g,!1,_,E),t[tt]=s.current,Ni(t),d)for(t=0;t<d.length;t++)l=d[t],g=l._getVersion,g=g(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,g]:s.mutableSourceEagerHydrationData.push(l,g);return new Ec(s)},_n.render=function(t,s,l){if(!Cc(s))throw Error(i(200));return Pc(null,t,s,!1,l)},_n.unmountComponentAtNode=function(t){if(!Cc(t))throw Error(i(40));return t._reactRootContainer?(zs(function(){Pc(null,null,t,!1,function(){t._reactRootContainer=null,t[tt]=null})}),!0):!1},_n.unstable_batchedUpdates=Wh,_n.unstable_renderSubtreeIntoContainer=function(t,s,l,d){if(!Cc(l))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return Pc(t,s,l,!1,d)},_n.version="18.3.1-next-f1338f8080-20240426",_n}var Ig;function jy(){if(Ig)return nf.exports;Ig=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),nf.exports=gx(),nf.exports}var zg;function vx(){if(zg)return Lc;
40zg=1;var e=jy();return Lc.createRoot=e.createRoot,Lc.hydrateRoot=e.hydrateRoot,Lc}var yx=vx();const _x=hd(yx),wx=20,xx=1e6,li={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let of=0;function bx(){return of=(of+1)%Number.MAX_VALUE,of.toString()}const af=new Map,Dg=e=>{if(af.has(e))return;const n=setTimeout(()=>{af.delete(e),Fl({type:li.REMOVE_TOAST,toastId:e})},xx);af.set(e,n)},Sx=(e,n)=>{switch(n.type){case li.ADD_TOAST:return{...e,toasts:[n.toast,...e.toasts].slice(0,wx)};case li.UPDATE_TOAST:return{...e,toasts:e.toasts.map(i=>i.id===n.toast.id?{...i,...n.toast}:i)};case li.DISMISS_TOAST:{const{toastId:i}=n;return i?Dg(i):e.toasts.forEach(o=>{Dg(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===i||i===void 0?{...o,open:!1}:o)}}case li.REMOVE_TOAST:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==n.toastId)}}},$c=[];let qc={toasts:[]};function Fl(e){qc=Sx(qc,e),$c.forEach(n=>{n(qc)})}function kx({...e}){const n=bx(),i=u=>Fl({type:li.UPDATE_TOAST,toast:{...u,id:n}}),o=()=>Fl({type:li.DISMISS_TOAST,toastId:n});return Fl({type:li.ADD_TOAST,toast:{...e,id:n,open:!0,onOpenChange:u=>{u||o()}}}),{id:n,dismiss:o,update:i}}function Ca(){const[e,n]=k.useState(qc);return k.useEffect(()=>($c.push(n),()=>{const i=$c.indexOf(n);i>-1&&$c.splice(i,1)}),[e]),{...e,toast:kx,dismiss:i=>Fl({type:li.DISMISS_TOAST,toastId:i})}}function My(e){var n,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(n=0;n<u;n++)e[n]&&(i=My(e[n]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function Iy(){for(var e,n,i=0,o="",u=arguments.length;i<u;i++)(e=arguments[i])&&(n=My(e))&&(o&&(o+=" "),o+=n);return o}const Fg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Bg=Iy,up=(e,n)=>i=>{var o;if((n==null?void 0:n.variants)==null)return Bg(e,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:u,defaultVariants:h}=n,f=Object.keys(u).map(x=>{const b=i==null?void 0:i[x],S=h==null?void 0:h[x];if(b===null)return null;const P=Fg(b)||Fg(S);return u[x][P]}),p=i&&Object.entries(i).reduce((x,b)=>{let[S,P]=b;return P===void 0||(x[S]=P),x},{}),y=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((x,b)=>{let{class:S,className:P,...O}=b;return Object.entries(O).every(F=>{let[T,N]=F;return Array.isArray(N)?N.includes({...h,...p}[T]):{...h,...p}[T]===N})?[...x,S,P]:x},[]);return Bg(e,f,y,i==null?void 0:i.class,i==null?void 0:i.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const Ex=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zy=(...e)=>e.filter((n,i,o)=>!!n&&n.trim()!==""&&o.indexOf(n)===i).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var Cx={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"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const Px=k.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:u="",children:h,iconNode:f,...p},y)=>k.createElement("svg",{ref:y,...Cx,width:n,height:n,stroke:e,strokeWidth:o?Number(i)*24/Number(n):i,className:zy("lucide",u),...p},[...f.map(([x,b])=>k.createElement(x,b)),...Array.isArray(h)?h:[h]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Ve=(e,n)=>{const i=k.forwardRef(({className:o,...u},h)=>k.createElement(Px,{ref:h,iconNode:n,className:zy(`lucide-${Ex(e)}`,o),...u}));return i.displayName=`${e}`,i};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Tx=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Nx=Ve("ArrowLeft",Tx);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Lx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Rx=Ve("ArrowRight",Lx);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Ox=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ax=Ve("Check",Ox);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const jx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],pd=Ve("ChevronDown",jx);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const Mx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Dy=Ve("ChevronLeft",Mx);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Ix=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Fy=Ve("ChevronRight",Ix);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const zx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Dx=Ve("ChevronUp",zx);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Fx=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],By=Ve("CloudRain",Fx);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const Bx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Nf=Ve("ExternalLink",Bx);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const Ux=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Uy=Ve("FileText",Ux);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const Hx=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],cp=Ve("Flame",Hx);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Wx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],$x=Ve("Globe",Wx);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const qx=[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]],Vx=Ve("Images",qx);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const Zx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],io=Ve("LoaderCircle",Zx);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const Kx=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Gx=Ve("MapPin",Kx);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const Qx=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Hy=Ve("Map",Qx);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const Yx=[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],Ug=Ve("Maximize2",Yx);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const Xx=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Hg=Ve("Music",Xx);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Jx=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],dp=Ve("Pause",Jx);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const eb=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],tb=Ve("Pencil",eb);/**
161 * @license lucide-react v0.475.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const nb=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],hp=Ve("Play",nb);/**
166 * @license lucide-react v0.475.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const rb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],md=Ve("Plus",rb);/**
171 * @license lucide-react v0.475.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const ib=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],sb=Ve("RotateCcw",ib);/**
176 * @license lucide-react v0.475.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const ob=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],ab=Ve("Save",ob);
180/**
181 * @license lucide-react v0.475.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const lb=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ub=Ve("Settings",lb);/**
186 * @license lucide-react v0.475.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const cb=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],db=Ve("Shield",cb);/**
191 * @license lucide-react v0.475.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const hb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],fb=Ve("Square",hb);/**
196 * @license lucide-react v0.475.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const pb=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Wy=Ve("Star",pb);/**
201 * @license lucide-react v0.475.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const mb=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],fp=Ve("Trash2",mb);/**
206 * @license lucide-react v0.475.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const gb=[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]],pp=Ve("TreePine",gb);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const vb=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],Ul=Ve("Upload",vb);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const yb=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],_b=Ve("Volume2",yb);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const wb=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],xb=Ve("VolumeX",wb);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const bb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 9,201 bytes, lines 230-240
230],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],us=Ve("X",bb);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const Sb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],kb=Ve("ZoomIn",Sb);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const Eb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Cb=Ve("ZoomOut",Eb),Pb=(e,n)=>{const i=new Array(e.length+n.length);for(let o=0;o<e.length;o++)i[o]=e[o];for(let o=0;o<n.length;o++)i[e.length+o]=n[o];return i},Tb=(e,n)=>({classGroupId:e,validator:n}),$y=(e=new Map,n=null,i)=>({nextPart:e,validators:n,classGroupId:i}),rd="-",Wg=[],Nb="arbitrary..",Lb=e=>{const n=Ob(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return Rb(f);const p=f.split(rd),y=p[0]===""&&p.length>1?1:0;return qy(p,y,n)},getConflictingClassGroupIds:(f,p)=>{if(p){const y=o[f],x=i[f];return y?x?Pb(x,y):y:x||Wg}return i[f]||Wg}}},qy=(e,n,i)=>{if(e.length-n===0)return i.classGroupId;const u=e[n],h=i.nextPart.get(u);if(h){const x=qy(e,n+1,h);if(x)return x}const f=i.validators;if(f===null)return;const p=n===0?e.join(rd):e.slice(n).join(rd),y=f.length;for(let x=0;x<y;x++){const b=f[x];if(b.validator(p))return b.classGroupId}},Rb=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),i=n.indexOf(":"),o=n.slice(0,i);return o?Nb+o:void 0})(),Ob=e=>{const{theme:n,classGroups:i}=e;return Ab(i,n)},Ab=(e,n)=>{const i=$y();for(const o in e){const u=e[o];mp(u,i,o,n)}return i},mp=(e,n,i,o)=>{const u=e.length;for(let h=0;h<u;h++){const f=e[h];jb(f,n,i,o)}},jb=(e,n,i,o)=>{if(typeof e=="string"){Mb(e,n,i);return}if(typeof e=="function"){Ib(e,n,i,o);return}zb(e,n,i,o)},Mb=(e,n,i)=>{const o=e===""?n:Vy(n,e);o.classGroupId=i},Ib=(e,n,i,o)=>{if(Db(e)){mp(e(o),n,i,o);return}n.validators===null&&(n.validators=[]),n.validators.push(Tb(i,e))},zb=(e,n,i,o)=>{const u=Object.entries(e),h=u.length;for(let f=0;f<h;f++){const[p,y]=u[f];mp(y,Vy(n,p),i,o)}},Vy=(e,n)=>{let i=e;const o=n.split(rd),u=o.length;for(let h=0;h<u;h++){const f=o[h];let p=i.nextPart.get(f);p||(p=$y(),i.nextPart.set(f,p)),i=p}return i},Db=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Fb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,i=Object.create(null),o=Object.create(null);const u=(h,f)=>{i[h]=f,n++,n>e&&(n=0,o=i,i=Object.create(null))};return{get(h){let f=i[h];if(f!==void 0)return f;if((f=o[h])!==void 0)return u(h,f),f},set(h,f){h in i?i[h]=f:u(h,f)}}},Lf="!",$g=":",Bb=[],qg=(e,n,i,o,u)=>({modifiers:e,hasImportantModifier:n,baseClassName:i,maybePostfixModifierPosition:o,isExternal:u}),Ub=e=>{const{prefix:n,experimentalParseClassName:i}=e;let o=u=>{const h=[];let f=0,p=0,y=0,x;const b=u.length;for(let T=0;T<b;T++){const N=u[T];if(f===0&&p===0){if(N===$g){h.push(u.slice(y,T)),y=T+1;continue}if(N==="/"){x=T;continue}}N==="["?f++:N==="]"?f--:N==="("?p++:N===")"&&p--}const S=h.length===0?u:u.slice(y);let P=S,O=!1;S.endsWith(Lf)?(P=S.slice(0,-1),O=!0):S.startsWith(Lf)&&(P=S.slice(1),O=!0);const F=x&&x>y?x-y:void 0;return qg(h,O,P,F)};if(n){const u=n+$g,h=o;o=f=>f.startsWith(u)?h(f.slice(u.length)):qg(Bb,!1,f,void 0,!0)}if(i){const u=o;o=h=>i({className:h,parseClassName:u})}return o},Hb=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((i,o)=>{n.set(i,1e6+o)}),i=>{const o=[];let u=[];for(let h=0;h<i.length;h++){const f=i[h],p=f[0]==="[",y=n.has(f);p||y?(u.length>0&&(u.sort(),o.push(...u),u=[]),o.push(f)):u.push(f)}return u.length>0&&(u.sort(),o.push(...u)),o}},Wb=e=>({cache:Fb(e.cacheSize),parseClassName:Ub(e),sortModifiers:Hb(e),...Lb(e)}),$b=/\s+/,qb=(e,n)=>{const{parseClassName:i,getClassGroupId:o,getConflictingClassGroupIds:u,sortModifiers:h}=n,f=[],p=e.trim().split($b);let y="";for(let x=p.length-1;x>=0;x-=1){const b=p[x],{isExternal:S,modifiers:P,hasImportantModifier:O,baseClassName:F,maybePostfixModifierPosition:T}=i(b);if(S){y=b+(y.length>0?" "+y:y);continue}let N=!!T,R=o(N?F.substring(0,T):F);if(!R){if(!N){y=b+(y.length>0?" "+y:y);continue}if(R=o(F),!R){y=b+(y.length>0?" "+y:y);continue}N=!1}const B=P.length===0?"":P.length===1?P[0]:h(P).join(":"),M=O?B+Lf:B,j=M+R;if(f.indexOf(j)>-1)continue;f.push(j);const $=u(R,N);for(let Q=0;Q<$.length;++Q){const G=$[Q];f.push(M+G)}y=b+(y.length>0?" "+y:y)}return y},Vb=(...e)=>{let n=0,i,o,u="";for(;n<e.length;)(i=e[n++])&&(o=Zy(i))&&(u&&(u+=" "),u+=o);return u},Zy=e=>{if(typeof e=="string")return e;let n,i="";for(let o=0;o<e.length;o++)e[o]&&(n=Zy(e[o]))&&(i&&(i+=" "),i+=n);return i},Zb=(e,...n)=>{let i,o,u,h;const f=y=>{const x=n.reduce((b,S)=>S(b),e());return i=Wb(x),o=i.cache.get,u=i.cache.set,h=p,p(y)},p=y=>{const x=o(y);if(x)return x;const b=qb(y,i);return u(y,b),b};return h=f,(...y)=>h(Vb(...y))},Kb=[],At=e=>{const n=i=>i[e]||Kb;return n.isThemeGetter=!0,n},Ky=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Gb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,e1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qi=e=>Gb.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Vi=e=>!!e&&Number.isInteger(Number(e)),lf=e=>e.endsWith("%")&&We(e.slice(0,-1)),ii=e=>Qb.test(e),Qy=()=>!0,t1=e=>Yb.test(e)&&!Xb.test(e),gp=()=>!1,n1=e=>Jb.test(e),r1=e=>e1.test(e),i1=e=>!xe(e)&&!be(e),s1=e=>cs(e,Jy,gp),xe=e=>Ky.test(e),Us=e=>cs(e,e_,t1),Vg=e=>cs(e,f1,We),o1=e=>cs(e,n_,Qy),a1=e=>cs(e,t_,gp),Zg=e=>cs(e,Yy,gp),l1=e=>cs(e,Xy,r1),Rc=e=>cs(e,r_,n1),be=e=>Gy.test(e),Ll=e=>uo(e,e_),u1=e=>uo(e,t_),Kg=e=>uo(e,Yy),c1=e=>uo(e,Jy),d1=e=>uo(e,Xy),Oc=e=>uo(e,r_,!0),h1=e=>uo(e,n_,!0),cs=(e,n,i)=>{const o=Ky.exec(e);return o?o[1]?n(o[1]):i(o[2]):!1},uo=(e,n,i=!1)=>{const o=Gy.exec(e);return o?o[1]?n(o[1]):i:!1},Yy=e=>e==="position"||e==="percentage",Xy=e=>e==="image"||e==="url",Jy=e=>e==="length"||e==="size"||e==="bg-size",e_=e=>e==="length",f1=e=>e==="number",t_=e=>e==="family-name",n_=e=>e==="number"||e==="weight",r_=e=>e==="shadow",p1=()=>{const e=At("color"),n=At("font"),i=At("text"),o=At("font-weight"),u=At("tracking"),h=At("leading"),f=At("breakpoint"),p=At("container"),y=At("spacing"),x=At("radius"),b=At("shadow"),S=At("inset-shadow"),P=At("text-shadow"),O=At("drop-shadow"),F=At("blur"),T=At("perspective"),N=At("aspect"),R=At("ease"),B=At("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...j(),be,xe],Q=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],q=()=>[be,xe,y],ue=()=>[qi,"full","auto",...q()],ae=()=>[Vi,"none","subgrid",be,xe],pe=()=>["auto",{span:["full",Vi,be,xe]},Vi,be,xe],Oe=()=>[Vi,"auto",be,xe],Ye=()=>["auto","min","max","fr",be,xe],Fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],et=()=>["start","end","center","stretch","center-safe","end-safe"],ye=()=>["auto",...q()],Be=()=>[qi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],te=()=>[qi,"screen","full","dvw","lvw","svw","min","max","fit",...q()],Se=()=>[qi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...q()],V=()=>[e,be,xe],z=()=>[...j(),Kg,Zg,{position:[be,xe]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_e=()=>["auto","cover","contain",c1,s1,{size:[be,xe]}],me=()=>[lf,Ll,Us],ce=()=>["","none","full",x,be,xe],ne=()=>["",We,Ll,Us],Pe=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ae=()=>[We,lf,Kg,Zg],yt=()=>["","none",F,be,xe],Wt=()=>["none",We,be,xe],ft=()=>["none",We,be,xe],nn=()=>[We,be,xe],dn=()=>[qi,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ii],breakpoint:[ii],color:[Qy],container:[ii],"drop-shadow":[ii],ease:["in","out","in-out"],font:[i1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ii],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ii],shadow:[ii],spacing:["px",We],text:[ii],"text-shadow":[ii],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qi,xe,be,N]}
vendor: 6,150 bytes, line 240
240],container:["container"],columns:[{columns:[We,xe,be,p]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:$()}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ue()}],"inset-x":[{"inset-x":ue()}],"inset-y":[{"inset-y":ue()}],start:[{"inset-s":ue(),start:ue()}],end:[{"inset-e":ue(),end:ue()}],"inset-bs":[{"inset-bs":ue()}],"inset-be":[{"inset-be":ue()}],top:[{top:ue()}],right:[{right:ue()}],bottom:[{bottom:ue()}],left:[{left:ue()}],visibility:["visible","invisible","collapse"],z:[{z:[Vi,"auto",be,xe]}],basis:[{basis:[qi,"full","auto",p,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,qi,"auto","initial","none",xe]}],grow:[{grow:["",We,be,xe]}],shrink:[{shrink:["",We,be,xe]}],order:[{order:[Vi,"first","last","none",be,xe]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:pe()}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ye()}],"auto-rows":[{"auto-rows":Ye()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...Fe(),"normal"]}],"justify-items":[{"justify-items":[...et(),"normal"]}],"justify-self":[{"justify-self":["auto",...et()]}],"align-content":[{content:["normal",...Fe()]}],"align-items":[{items:[...et(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...et(),{baseline:["","last"]}]}],"place-content":[{"place-content":Fe()}],"place-items":[{"place-items":[...et(),"baseline"]}],"place-self":[{"place-self":["auto",...et()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pbs:[{pbs:q()}],pbe:[{pbe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:ye()}],mx:[{mx:ye()}],my:[{my:ye()}],ms:[{ms:ye()}],me:[{me:ye()}],mbs:[{mbs:ye()}],mbe:[{mbe:ye()}],mt:[{mt:ye()}],mr:[{mr:ye()}],mb:[{mb:ye()}],ml:[{ml:ye()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:Be()}],"inline-size":[{inline:["auto",...te()]}],"min-inline-size":[{"min-inline":["auto",...te()]}],"max-inline-size":[{"max-inline":["none",...te()]}],"block-size":[{block:["auto",...Se()]}],"min-block-size":[{"min-block":["auto",...Se()]}],"max-block-size":[{"max-block":["none",...Se()]}],w:[{w:[p,"screen",...Be()]}],"min-w":[{"min-w":[p,"screen","none",...Be()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...Be()]}],h:[{h:["screen","lh",...Be()]}],"min-h":[{"min-h":["screen","lh","none",...Be()]}],"max-h":[{"max-h":["screen","lh",...Be()]}],"font-size":[{text:["base",i,Ll,Us]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,h1,o1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",lf,xe]}],"font-family":[{font:[u1,a1,n]}],"font-features":[{"font-features":[xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,be,xe]}],"line-clamp":[{"line-clamp":[We,"none",be,Vg]}],leading:[{leading:[h,...q()]}],"list-image":[{"list-image":["none",be,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",be,Us]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[We,"auto",be,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:_e()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vi,be,xe],radial:["",be,xe],conic:[Vi,be,xe]},d1,l1]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:me()}
vendor: 7,404 bytes, line 240
240],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Pe(),"hidden","none"]}],"divide-style":[{divide:[...Pe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...Pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,be,xe]}],"outline-w":[{outline:["",We,Ll,Us]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",b,Oc,Rc]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",S,Oc,Rc]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[We,Us]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",P,Oc,Rc]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[We,be,xe]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[We]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ae()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":Ae()}],"mask-image-t-to-pos":[{"mask-t-to":Ae()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":Ae()}],"mask-image-r-to-pos":[{"mask-r-to":Ae()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":Ae()}],"mask-image-b-to-pos":[{"mask-b-to":Ae()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":Ae()}],"mask-image-l-to-pos":[{"mask-l-to":Ae()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":Ae()}],"mask-image-x-to-pos":[{"mask-x-to":Ae()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":Ae()}],"mask-image-y-to-pos":[{"mask-y-to":Ae()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[be,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ae()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[We]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ae()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:_e()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,xe]}],filter:[{filter:["","none",be,xe]}],blur:[{blur:yt()}],brightness:[{brightness:[We,be,xe]}],contrast:[{contrast:[We,be,xe]}],"drop-shadow":[{"drop-shadow":["","none",O,Oc,Rc]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",We,be,xe]}],"hue-rotate":[{"hue-rotate":[We,be,xe]}],invert:[{invert:["",We,be,xe]}],saturate:[{saturate:[We,be,xe]}],sepia:[{sepia:["",We,be,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",be,xe]}],"backdrop-blur":[{"backdrop-blur":yt()}],"backdrop-brightness":[{"backdrop-brightness":[We,be,xe]}],"backdrop-contrast":[{"backdrop-contrast":[We,be,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",We,be,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[We,be,xe]}],"backdrop-invert":[{"backdrop-invert":["",We,be,xe]}],"backdrop-opacity":[{"backdrop-opacity":[We,be,xe]}],"backdrop-saturate":[{"backdrop-saturate":[We,be,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",We,be,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[We,"initial",be,xe]}],ease:[{ease:["linear","initial",R,be,xe]}],delay:[{delay:[We,be,xe]}],animate:[{animate:["none",B,be,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,be,xe]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:Wt()}],"rotate-x":[{"rotate-x":Wt()}],"rotate-y":[{"rotate-y":Wt()}],"rotate-z":[{"rotate-z":Wt()}],scale:[{scale:ft()}],"scale-x":[{"scale-x":ft()}],"scale-y":[{"scale-y":ft()}],"scale-z":[{"scale-z":ft()}],"scale-3d":["scale-3d"],skew:[{skew:nn()}],"skew-x":[{"skew-x":nn()}],"skew-y":[{"skew-y":nn()}],transform:[{transform:[be,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}
vendor: 4,971 bytes, line 240
240],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mbs":[{"scroll-mbs":q()}],"scroll-mbe":[{"scroll-mbe":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pbs":[{"scroll-pbs":q()}],"scroll-pbe":[{"scroll-pbe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be,xe]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[We,Ll,Us,Vg]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},m1=Zb(p1);function Sn(...e){return m1(Iy(e))}const i_=k.forwardRef(({...e},n)=>v.jsx("div",{ref:n,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));
240i_.displayName="ToastProvider";const s_=k.forwardRef(({...e},n)=>v.jsx("div",{ref:n,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));s_.displayName="ToastViewport";const g1=up("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),o_=k.forwardRef(({className:e,variant:n,...i},o)=>v.jsx("div",{ref:o,className:Sn(g1({variant:n}),e),...i}));o_.displayName="Toast";const v1=k.forwardRef(({className:e,...n},i)=>v.jsx("div",{ref:i,className:Sn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));v1.displayName="ToastAction";const a_=k.forwardRef(({className:e,...n},i)=>v.jsx("button",{ref:i,className:Sn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...n,children:v.jsx(us,{className:"h-4 w-4"})}));a_.displayName="ToastClose";const l_=k.forwardRef(({className:e,...n},i)=>v.jsx("div",{ref:i,className:Sn("text-sm font-semibold",e),...n}));l_.displayName="ToastTitle";const u_=k.forwardRef(({className:e,...n},i)=>v.jsx("div",{ref:i,className:Sn("text-sm opacity-90",e),...n}));u_.displayName="ToastDescription";function y1(){const{toasts:e}=Ca();return v.jsxs(i_,{children:[e.map(function({id:n,title:i,description:o,action:u,...h}){return v.jsxs(o_,{...h,children:[v.jsxs("div",{className:"grid gap-1",children:[i&&v.jsx(l_,{children:i}),o&&v.jsx(u_,{children:o})]}),u,v.jsx(a_,{})]},n)}),v.jsx(s_,{})]})}var eu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_1={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},Gi,ap,Sy,w1=(Sy=class{constructor(){Re(this,Gi,_1);Re(this,ap,!1)}setTimeoutProvider(e){ge(this,Gi,e)}setTimeout(e,n){return U(this,Gi).setTimeout(e,n)}clearTimeout(e){U(this,Gi).clearTimeout(e)}setInterval(e,n){return U(this,Gi).setInterval(e,n)}clearInterval(e){U(this,Gi).clearInterval(e)}},Gi=new WeakMap,ap=new WeakMap,Sy),Vs=new w1;function x1(e){setTimeout(e,0)}var so=typeof window>"u"||"Deno"in globalThis;function xn(){}function b1(e,n){return typeof e=="function"?e(n):e}function Rf(e){return typeof e=="number"&&e>=0&&e!==1/0}function c_(e,n){return Math.max(e+(n||0)-Date.now(),0)}function ss(e,n){return typeof e=="function"?e(n):e}function Yn(e,n){return typeof e=="function"?e(n):e}function Gg(e,n){const{type:i="all",exact:o,fetchStatus:u,predicate:h,queryKey:f,stale:p}=e;if(f){if(o){if(n.queryHash!==vp(f,n.options))return!1}else if(!Wl(n.queryKey,f))return!1}if(i!=="all"){const y=n.isActive();if(i==="active"&&!y||i==="inactive"&&y)return!1}return!(typeof p=="boolean"&&n.isStale()!==p||u&&u!==n.state.fetchStatus||h&&!h(n))}function Qg(e,n){const{exact:i,status:o,predicate:u,mutationKey:h}=e;if(h){if(!n.options.mutationKey)return!1;if(i){if(Hl(n.options.mutationKey)!==Hl(h))return!1}else if(!Wl(n.options.mutationKey,h))return!1}return!(o&&n.state.status!==o||u&&!u(n))}function vp(e,n){return((n==null?void 0:n.queryKeyHashFn)||Hl)(e)}function Hl(e){return JSON.stringify(e,(n,i)=>Af(i)?Object.keys(i).sort().reduce((o,u)=>(o[u]=i[u],o),{}):i)}function Wl(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(i=>Wl(e[i],n[i])):!1}var S1=Object.prototype.hasOwnProperty;function d_(e,n,i=0){if(e===n)return e;if(i>500)return n;const o=Yg(e)&&Yg(n);if(!o&&!(Af(e)&&Af(n)))return n;const h=(o?e:Object.keys(e)).length,f=o?n:Object.keys(n),p=f.length,y=o?new Array(p):{};let x=0;for(let b=0;b<p;b++){const S=o?b:f[b],P=e[S],O=n[S];if(P===O){y[S]=P,(o?b<h:S1.call(e,S))&&x++;continue}if(P===null||O===null||typeof P!="object"||typeof O!="object"){y[S]=O;continue}const F=d_(P,O,i+1);y[S]=F,F===P&&x++}return h===p&&x===h?e:y}function Of(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(e[i]!==n[i])return!1;return!0}function Yg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Af(e){if(!Xg(e))return!1;const n=e.constructor;if(n===void 0)return!0;const i=n.prototype;return!(!Xg(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Xg(e){return Object.prototype.toString.call(e)==="[object Object]"}function k1(e){return new Promise(n=>{Vs.setTimeout(n,e)})}function jf(e,n,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,n):i.structuralSharing!==!1?d_(e,n):n}function E1(e,n,i=0){const o=[...e,n];return i&&o.length>i?o.slice(1):o}function C1(e,n,i=0){const o=[n,...e];return i&&o.length>i?o.slice(0,-1):o}var yp=Symbol();function h_(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===yp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function f_(e,n){return typeof e=="function"?e(...n):!!e}function P1(e,n,i){let o=!1,u;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(u??(u=n()),o||(o=!0,u.aborted?i():u.addEventListener("abort",i,{once:!0})),u)}),e}var Ks,Qi,da,ky,T1=(ky=class extends eu{constructor(){super();Re(this,Ks);Re(this,Qi);Re(this,da);ge(this,da,n=>{if(!so&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>
vendor: 5,463 bytes, line 240
240{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){U(this,Qi)||this.setEventListener(U(this,da))}onUnsubscribe(){var n;this.hasListeners()||((n=U(this,Qi))==null||n.call(this),ge(this,Qi,void 0))}setEventListener(n){var i;ge(this,da,n),(i=U(this,Qi))==null||i.call(this),ge(this,Qi,n(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(n){U(this,Ks)!==n&&(ge(this,Ks,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){var n;return typeof U(this,Ks)=="boolean"?U(this,Ks):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Ks=new WeakMap,Qi=new WeakMap,da=new WeakMap,ky),_p=new T1;function Mf(){let e,n;const i=new Promise((u,h)=>{e=u,n=h});i.status="pending",i.catch(()=>{});function o(u){Object.assign(i,u),delete i.resolve,delete i.reject}return i.resolve=u=>{o({status:"fulfilled",value:u}),e(u)},i.reject=u=>{o({status:"rejected",reason:u}),n(u)},i}var N1=x1;function L1(){let e=[],n=0,i=p=>{p()},o=p=>{p()},u=N1;const h=p=>{n?e.push(p):u(()=>{i(p)})},f=()=>{const p=e;e=[],p.length&&u(()=>{o(()=>{p.forEach(y=>{i(y)})})})};return{batch:p=>{let y;n++;try{y=p()}finally{n--,n||f()}return y},batchCalls:p=>(...y)=>{h(()=>{p(...y)})},schedule:h,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{o=p},setScheduler:p=>{u=p}}}var Ut=L1(),ha,Yi,fa,Ey,R1=(Ey=class extends eu{constructor(){super();Re(this,ha,!0);Re(this,Yi);Re(this,fa);ge(this,fa,n=>{if(!so&&window.addEventListener){const i=()=>n(!0),o=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",o)}}})}onSubscribe(){U(this,Yi)||this.setEventListener(U(this,fa))}onUnsubscribe(){var n;this.hasListeners()||((n=U(this,Yi))==null||n.call(this),ge(this,Yi,void 0))}setEventListener(n){var i;ge(this,fa,n),(i=U(this,Yi))==null||i.call(this),ge(this,Yi,n(this.setOnline.bind(this)))}setOnline(n){U(this,ha)!==n&&(ge(this,ha,n),this.listeners.forEach(o=>{o(n)}))}isOnline(){return U(this,ha)}},ha=new WeakMap,Yi=new WeakMap,fa=new WeakMap,Ey),id=new R1;function O1(e){return Math.min(1e3*2**e,3e4)}function p_(e){return(e??"online")==="online"?id.isOnline():!0}var If=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function m_(e){let n=!1,i=0,o;const u=Mf(),h=()=>u.status!=="pending",f=T=>{var N;if(!h()){const R=new If(T);P(R),(N=e.onCancel)==null||N.call(e,R)}},p=()=>{n=!0},y=()=>{n=!1},x=()=>_p.isFocused()&&(e.networkMode==="always"||id.isOnline())&&e.canRun(),b=()=>p_(e.networkMode)&&e.canRun(),S=T=>{h()||(o==null||o(),u.resolve(T))},P=T=>{h()||(o==null||o(),u.reject(T))},O=()=>new Promise(T=>{var N;o=R=>{(h()||x())&&T(R)},(N=e.onPause)==null||N.call(e)}).then(()=>{var T;o=void 0,h()||(T=e.onContinue)==null||T.call(e)}),F=()=>{if(h())return;let T;const N=i===0?e.initialPromise:void 0;try{T=N??e.fn()}catch(R){T=Promise.reject(R)}Promise.resolve(T).then(S).catch(R=>{var Q;if(h())return;const B=e.retry??(so?0:3),M=e.retryDelay??O1,j=typeof M=="function"?M(i,R):M,$=B===!0||typeof B=="number"&&i<B||typeof B=="function"&&B(i,R);if(n||!$){P(R);return}i++,(Q=e.onFail)==null||Q.call(e,i,R),k1(j).then(()=>x()?void 0:O()).then(()=>{n?P(R):F()})})};return{promise:u,status:()=>u.status,cancel:f,continue:()=>(o==null||o(),u),cancelRetry:p,continueRetry:y,canStart:b,start:()=>(b()?F():O().then(F),u)}}var Gs,Cy,g_=(Cy=class{constructor(){Re(this,Gs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rf(this.gcTime)&&ge(this,Gs,Vs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(so?1/0:300*1e3))}clearGcTimeout(){U(this,Gs)&&(Vs.clearTimeout(U(this,Gs)),ge(this,Gs,void 0))}},Gs=new WeakMap,Cy),Qs,pa,Qn,Ys,zt,Gl,Xs,dr,si,Py,A1=(Py=class extends g_{constructor(n){super();Re(this,dr);Re(this,Qs);Re(this,pa);Re(this,Qn);Re(this,Ys);Re(this,zt);Re(this,Gl);Re(this,Xs);ge(this,Xs,!1),ge(this,Gl,n.defaultOptions),this.setOptions(n.options),this.observers=[],ge(this,Ys,n.client),ge(this,Qn,U(this,Ys).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,ge(this,Qs,ev(this.options)),this.state=n.state??U(this,Qs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=U(this,zt))==null?void 0:n.promise}setOptions(n){if(this.options={...U(this,Gl),...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=ev(this.options);i.data!==void 0&&(this.setState(Jg(i.data,i.dataUpdatedAt)),ge(this,Qs,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Qn).remove(this)}setData(n,i){const o=jf(this.state.data,n,this.options);return Ke(this,dr,si).call(this,{data:o,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),o}setState(n,i){Ke(this,dr,si).call(this,{type:"setState",state:n,setStateOptions:i})}cancel(n){var o,u;const i=(o=U(this,zt))==null?void 0:o.promise;return(u=U(this,zt))==null||u.cancel(n),i?i.then(xn).catch(xn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(U(this,Qs))}isActive(){return this.observers.some(n=>Yn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yp||this.state.dataUpdateCount+this.state.errorUpdate
240Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ss(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!c_(this.state.dataUpdatedAt,n)}onFocus(){var i;const n=this.observers.find(o=>o.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(i=U(this,zt))==null||i.continue()}onOnline(){var i;const n=this.observers.find(o=>o.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(i=U(this,zt))==null||i.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),U(this,Qn).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(U(this,zt)&&(U(this,Xs)?U(this,zt).cancel({revert:!0}):U(this,zt).cancelRetry()),this.scheduleGc()),U(this,Qn).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ke(this,dr,si).call(this,{type:"invalidate"})}async fetch(n,i){var y,x,b,S,P,O,F,T,N,R,B,M;if(this.state.fetchStatus!=="idle"&&((y=U(this,zt))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(U(this,zt))return U(this,zt).continueRetry(),U(this,zt).promise}if(n&&this.setOptions(n),!this.options.queryFn){const j=this.observers.find($=>$.options.queryFn);j&&this.setOptions(j.options)}const o=new AbortController,u=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(ge(this,Xs,!0),o.signal)})},h=()=>{const j=h_(this.options,i),Q=(()=>{const G={client:U(this,Ys),queryKey:this.queryKey,meta:this.meta};return u(G),G})();return ge(this,Xs,!1),this.options.persister?this.options.persister(j,Q,this):j(Q)},p=(()=>{const j={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:U(this,Ys),state:this.state,fetchFn:h};return u(j),j})();(x=this.options.behavior)==null||x.onFetch(p,this),ge(this,pa,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=p.fetchOptions)==null?void 0:b.meta))&&Ke(this,dr,si).call(this,{type:"fetch",meta:(S=p.fetchOptions)==null?void 0:S.meta}),ge(this,zt,m_({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:j=>{j instanceof If&&j.revert&&this.setState({...U(this,pa),fetchStatus:"idle"}),o.abort()},onFail:(j,$)=>{Ke(this,dr,si).call(this,{type:"failed",failureCount:j,error:$})},onPause:()=>{Ke(this,dr,si).call(this,{type:"pause"})},onContinue:()=>{Ke(this,dr,si).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const j=await U(this,zt).start();if(j===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(j),(O=(P=U(this,Qn).config).onSuccess)==null||O.call(P,j,this),(T=(F=U(this,Qn).config).onSettled)==null||T.call(F,j,this.state.error,this),j}catch(j){if(j instanceof If){if(j.silent)return U(this,zt).promise;if(j.revert){if(this.state.data===void 0)throw j;return this.state.data}}throw Ke(this,dr,si).call(this,{type:"error",error:j}),(R=(N=U(this,Qn).config).onError)==null||R.call(N,j,this),(M=(B=U(this,Qn).config).onSettled)==null||M.call(B,this.state.data,j,this),j}finally{this.scheduleGc()}}},Qs=new WeakMap,pa=new WeakMap,Qn=new WeakMap,Ys=new WeakMap,zt=new WeakMap,Gl=new WeakMap,Xs=new WeakMap,dr=new WeakSet,si=function(n){const i=o=>{switch(n.type){case"failed":return{...o,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...v_(o.data,this.options),fetchMeta:n.meta??null};case"success":const u={...o,...Jg(n.data,n.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ge(this,pa,n.manual?u:void 0),u;case"error":const h=n.error;
vendor: 10,433 bytes, line 240
240return{...o,error:h,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...n.state}}};this.state=i(this.state),Ut.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),U(this,Qn).notify({query:this,type:"updated",action:n})})},Py);function v_(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:p_(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Jg(e,n){return{data:e,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ev(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,i=n!==void 0,o=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:i?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var wn,Ge,Ql,cn,Js,ma,oi,Xi,Yl,ga,va,eo,to,Ji,ya,rt,jl,zf,Df,Ff,Bf,Uf,Hf,Wf,y_,Ty,j1=(Ty=class extends eu{constructor(n,i){super();Re(this,rt);Re(this,wn);Re(this,Ge);Re(this,Ql);Re(this,cn);Re(this,Js);Re(this,ma);Re(this,oi);Re(this,Xi);Re(this,Yl);Re(this,ga);Re(this,va);Re(this,eo);Re(this,to);Re(this,Ji);Re(this,ya,new Set);this.options=i,ge(this,wn,n),ge(this,Xi,null),ge(this,oi,Mf()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(U(this,Ge).addObserver(this),tv(U(this,Ge),this.options)?Ke(this,rt,jl).call(this):this.updateResult(),Ke(this,rt,Bf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $f(U(this,Ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $f(U(this,Ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ke(this,rt,Uf).call(this),Ke(this,rt,Hf).call(this),U(this,Ge).removeObserver(this)}setOptions(n){const i=this.options,o=U(this,Ge);if(this.options=U(this,wn).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Yn(this.options.enabled,U(this,Ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ke(this,rt,Wf).call(this),U(this,Ge).setOptions(this.options),i._defaulted&&!Of(this.options,i)&&U(this,wn).getQueryCache().notify({type:"observerOptionsUpdated",query:U(this,Ge),observer:this});const u=this.hasListeners();u&&nv(U(this,Ge),o,this.options,i)&&Ke(this,rt,jl).call(this),this.updateResult(),u&&(U(this,Ge)!==o||Yn(this.options.enabled,U(this,Ge))!==Yn(i.enabled,U(this,Ge))||ss(this.options.staleTime,U(this,Ge))!==ss(i.staleTime,U(this,Ge)))&&Ke(this,rt,zf).call(this);const h=Ke(this,rt,Df).call(this);u&&(U(this,Ge)!==o||Yn(this.options.enabled,U(this,Ge))!==Yn(i.enabled,U(this,Ge))||h!==U(this,Ji))&&Ke(this,rt,Ff).call(this,h)}getOptimisticResult(n){const i=U(this,wn).getQueryCache().build(U(this,wn),n),o=this.createResult(i,n);return I1(this,o)&&(ge(this,cn,o),ge(this,ma,this.options),ge(this,Js,U(this,Ge).state)),o}getCurrentResult(){return U(this,cn)}trackResult(n,i){return new Proxy(n,{get:(o,u)=>(this.trackProp(u),i==null||i(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&U(this,oi).status==="pending"&&U(this,oi).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,u))})}trackProp(n){U(this,ya).add(n)}getCurrentQuery(){return U(this,Ge)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=U(this,wn).defaultQueryOptions(n),o=U(this,wn).getQueryCache().build(U(this,wn),i);return o.fetch().then(()=>this.createResult(o,i))}fetch(n){return Ke(this,rt,jl).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),U(this,cn)))}createResult(n,i){var ue;const o=U(this,Ge),u=this.options,h=U(this,cn),f=U(this,Js),p=U(this,ma),x=n!==o?n.state:U(this,Ql),{state:b}=n;let S={...b},P=!1,O;if(i._optimisticResults){const ae=this.hasListeners(),pe=!ae&&tv(n,i),Oe=ae&&nv(n,o,i,u);(pe||Oe)&&(S={...S,...v_(b.data,n.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:F,errorUpdatedAt:T,status:N}=S;O=S.data;let R=!1;if(i.placeholderData!==void 0&&O===void 0&&N==="pending"){let ae;h!=null&&h.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(ae=h.data,R=!0):ae=typeof i.placeholderData=="function"?i.placeholderData((ue=U(this,va))==null?void 0:ue.state.data,U(this,va)):i.placeholderData,ae!==void 0&&(N="success",O=jf(h==null?void 0:h.data,ae,i),P=!0)}if(i.select&&O!==void 0&&!R)if(h&&O===(f==null?void 0:f.data)&&i.select===U(this,Yl))O=U(this,ga);else try{ge(this,Yl,i.select),O=i.select(O),O=jf(h==null?void 0:h.data,O,i),ge(this,ga,O),ge(this,Xi,null)}catch(ae){ge(this,Xi,ae)}U(this,Xi)&&(F=U(this,Xi),O=U(this,ga),T=Date.now(),N="error");const B=S.fetchStatus==="fetching",M=N==="pending",j=N==="error",$=M&&B,Q=O!==void 0,q={status:N,fetchStatus:S.fetchStatus,isPending:M,isSuccess:N==="success",isError:j,isInitialLoading:$,isLoading:$,data:O,dataUpdatedAt:S.dataUpdatedAt,error:F,errorUpdatedAt:T,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>x.dataUpdateCount||S.errorUpdateCount>x.errorUpdateCount,isFetching:B,isRefetching:B&&!M,isLoadingError:j&&!Q,isPaused:S.fetchStatus==="paused",isPlaceholderData:P,isRefetchError:j&&Q,isStale:wp(n,i),refetch:this.refetch,promise:U(this,oi),isEnabled:Yn(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ae=q.data!==void 0,pe=q.status==="error"&&!ae,Oe=et=>{pe?et.reject(q.error):ae&&et.resolve(q.data)},Ye=()=>{const et=ge(this,oi,q.promise=Mf());Oe(et)},Fe=U(this,oi);switch(Fe.status){case"pending":n.queryHash===o.queryHash&&Oe(Fe);break;case"fulfilled":(pe||q.data!==Fe.value)&&Ye();break;case"rejected":(!pe||q.error!==Fe.reason)&&Ye();break}}return q}updateResult(){const n=U(this,cn),i=this.createResult(U(this,Ge),this.options);if(ge(this,Js,U(this,Ge).state),ge(this,ma,this.options),U(this,Js).data!==void 0&&ge(this,va,U(this,Ge)),Of(i,n))return;ge(this,cn,i);const o=()=>{if(!n)return!0;const{notifyOnChangeProps:u}=this.options,h=typeof u=="function"?u():u;if(h==="all"||!h&&!U(this,ya).size)return!0;const f=new Set(h??U(this,ya));return this.options.throwOnError&&f.add("error"),Object.keys(U(this,cn)).some(p=>{const y=p;return U(this,cn)[y]!==n[y]&&f.has(y)})};Ke(this,rt,y_).call(this,{listeners:o()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ke(this,rt,Bf).call(this)}},wn=new WeakMap,Ge=new WeakMap,Ql=new WeakMap,cn=new WeakMap,Js=new WeakMap,ma=new WeakMap,oi=new WeakMap,Xi=new WeakMap,Yl=new WeakMap,ga=new WeakMap,va=new WeakMap,eo=new WeakMap,to=new WeakMap,Ji=new WeakMap,ya=new WeakMap,rt=new WeakSet,jl=function(n){Ke(this,rt,Wf).call(this);let i=U(this,Ge).fetch(this.options,n);return n!=null&&n.throwOnError||(i=i.catch(xn)),i},zf=function(){Ke(this,rt,Uf).call(this);const n=ss(this.options.staleTime,U(this,Ge));if(so||U(this,cn).isStale||!Rf(n))return;const o=c_(U(this,cn).dataUpdatedAt,n)+1;ge(this,eo,Vs.setTimeout(()=>{U(this,cn).isStale||this.updateResult()},o))},Df=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(U(this,Ge)):this.options.refetchInterval)??!1},Ff=function(n){Ke(this,rt,Hf).call(this),ge(this,Ji,n),!(so||Yn(this.options.enabled,U(this,Ge))===!1||!Rf(U(this,Ji))||U(this,Ji)===0)&&ge(this,to,Vs.setInterval(()=>{(this.options.refetchIntervalInBackground||_p.isFocused())&&Ke(this,rt,jl).call(this)},U(this,Ji)))},Bf=function(){Ke(this,rt,zf).call(this),Ke(this,rt,Ff).call(this,Ke(this,rt,Df).call(this))},Uf=function(){U(this,eo)&&(Vs.clearTimeout(U(this,eo)),ge(this,eo,void 0))},Hf=function(){U(this,to)&&(Vs.clearInterval(U(this,to)),ge(this,to,void 0))},Wf=function(){const n=U(this,wn).getQueryCache().build(U(this,wn),this.options);if(n===U(this,Ge))return;const i=U(this,Ge);ge(this,Ge,n),ge(this,Ql,n.state),this.hasListeners()&&(i==null||i.removeObserver(this),n.addObserver(this))},y_=function(n){Ut.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(U(this,cn))}),U(this,wn).getQueryCache().notify({query:U(this,Ge),type:"observerResultsUpdated"})})},Ty);function M1(e,n){return Yn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function tv(e,n){return M1(e,n)||e.state.data!==void 0&&$f(e,n,n.refetchOnMount)}function $f(e,n,i){if(Yn(n.enabled,e)!==!1&&ss(n.staleTime,e)!=="static"){const o=typeof i=="function"?i(e):i;return o==="always"||o!==!1&&wp(e,n)}return!1}function nv(e,n,i,o){return(e!==n||Yn(o.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&wp(e,i)}function wp(e,n){return Yn(n.enabled,e)!==!1&&e.isStaleByTime(ss(n.staleTime,e))}function I1(e,n){return!Of(e.getCurrentResult(),n)}function rv(e){return{onFetch:(n,i)=>{var b,S,P,O,F;const o=n.options,u=(P=(S=(b=n.fetchOptions)==null?void 0:b.meta)==null?void 0:S.fetchMore)==null?void 0:P.direction,h=((O=n.state.data)==null?void 0:O.pages)||[],f=((F=n.state.data)==null?void 0:F.pageParams)||[];let p={pages:[],pageParams:[]},y=0;const x=async()=>{let T=!1;const N=M=>{P1(M,()=>n.signal,()=>T=!0)},R=h_(n.options,n.fetchOptions),B=async(M,j,$)=>{if(T)return Promise.reject();if(j==null&&M.pages.length)return Promise.resolve(M);const G=(()=>{const pe={client:n.client,queryKey:n.queryKey,pageParam:j,direction:$?"backward":"forward",meta:n.options.meta};return N(pe),pe})(),q=await R(G),{maxPages:ue}=n.options,ae=$?C1:E1;return{pages:ae(M.pages,q,ue),pageParams:ae(M.pageParams,j,ue)}};if(u&&h.length){const M=u==="backward",j=M?z1:iv,$={pages:h,pageParams:f},Q=j(o,$);p=await B($,Q,M)}else{const M=e??h.length;do{const j=y===0?f[0]??o.initialPageParam:iv(o,p);if(y>0&&j==null)break;p=await B(p,j),y++}while(y<M)}return p};n.options.persister?n.fetchFn=()=>{var T,N;return(N=(T=n.options).persister)==null?void 0:N.call(T,x,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},i)}:n.fetchFn=x}}}function iv(e,{pages:n,pageParams:i}
vendor: 5,221 bytes, line 240
240){const o=n.length-1;return n.length>0?e.getNextPageParam(n[o],n,i[o],i):void 0}function z1(e,{pages:n,pageParams:i}){var o;return n.length>0?(o=e.getPreviousPageParam)==null?void 0:o.call(e,n[0],n,i[0],i):void 0}var Xl,Nr,en,no,Lr,Zi,Ny,D1=(Ny=class extends g_{constructor(n){super();Re(this,Lr);Re(this,Xl);Re(this,Nr);Re(this,en);Re(this,no);ge(this,Xl,n.client),this.mutationId=n.mutationId,ge(this,en,n.mutationCache),ge(this,Nr,[]),this.state=n.state||F1(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){U(this,Nr).includes(n)||(U(this,Nr).push(n),this.clearGcTimeout(),U(this,en).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){ge(this,Nr,U(this,Nr).filter(i=>i!==n)),this.scheduleGc(),U(this,en).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){U(this,Nr).length||(this.state.status==="pending"?this.scheduleGc():U(this,en).remove(this))}continue(){var n;return((n=U(this,no))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var f,p,y,x,b,S,P,O,F,T,N,R,B,M,j,$,Q,G;const i=()=>{Ke(this,Lr,Zi).call(this,{type:"continue"})},o={client:U(this,Xl),meta:this.options.meta,mutationKey:this.options.mutationKey};ge(this,no,m_({fn:()=>this.options.mutationFn?this.options.mutationFn(n,o):Promise.reject(new Error("No mutationFn found")),onFail:(q,ue)=>{Ke(this,Lr,Zi).call(this,{type:"failed",failureCount:q,error:ue})},onPause:()=>{Ke(this,Lr,Zi).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,en).canRun(this)}));const u=this.state.status==="pending",h=!U(this,no).canStart();try{if(u)i();else{Ke(this,Lr,Zi).call(this,{type:"pending",variables:n,isPaused:h}),U(this,en).config.onMutate&&await U(this,en).config.onMutate(n,this,o);const ue=await((p=(f=this.options).onMutate)==null?void 0:p.call(f,n,o));ue!==this.state.context&&Ke(this,Lr,Zi).call(this,{type:"pending",context:ue,variables:n,isPaused:h})}const q=await U(this,no).start();return await((x=(y=U(this,en).config).onSuccess)==null?void 0:x.call(y,q,n,this.state.context,this,o)),await((S=(b=this.options).onSuccess)==null?void 0:S.call(b,q,n,this.state.context,o)),await((O=(P=U(this,en).config).onSettled)==null?void 0:O.call(P,q,null,this.state.variables,this.state.context,this,o)),await((T=(F=this.options).onSettled)==null?void 0:T.call(F,q,null,n,this.state.context,o)),Ke(this,Lr,Zi).call(this,{type:"success",data:q}),q}catch(q){try{await((R=(N=U(this,en).config).onError)==null?void 0:R.call(N,q,n,this.state.context,this,o))}catch(ue){Promise.reject(ue)}try{await((M=(B=this.options).onError)==null?void 0:M.call(B,q,n,this.state.context,o))}catch(ue){Promise.reject(ue)}try{await(($=(j=U(this,en).config).onSettled)==null?void 0:$.call(j,void 0,q,this.state.variables,this.state.context,this,o))}catch(ue){Promise.reject(ue)}try{await((G=(Q=this.options).onSettled)==null?void 0:G.call(Q,void 0,q,n,this.state.context,o))}catch(ue){Promise.reject(ue)}throw Ke(this,Lr,Zi).call(this,{type:"error",error:q}),q}finally{U(this,en).runNext(this)}}},Xl=new WeakMap,Nr=new WeakMap,en=new WeakMap,no=new WeakMap,Lr=new WeakSet,Zi=function(n){const i=o=>{switch(n.type){case"failed":return{...o,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...o,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:n.error,failureCount:o.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ut.batch(()=>{U(this,Nr).forEach(o=>{o.onMutationUpdate(n)}),U(this,en).notify({mutation:this,type:"updated",action:n})})},Ny);function F1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ai,hr,Jl,Ly,B1=(Ly=class extends eu{constructor(n={}){super();Re(this,ai);Re(this,hr);Re(this,Jl);this.config=n,ge(this,ai,new Set),ge(this,hr,new Map),ge(this,Jl,0)}build(n,i,o){const u=new D1({client:n,mutationCache:this,mutationId:++Nc(this,Jl)._,options:n.defaultMutationOptions(i),state:o});return this.add(u),u}add(n){U(this,ai).add(n);const i=Ac(n);if(typeof i=="string"){const o=U(this,hr).get(i);o?o.push(n):U(this,hr).set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(U(this,ai).delete(n)){const i=Ac(n);if(typeof i=="string"){const o=U(this,hr).get(i);if(o)if(o.length>1){const u=o.indexOf(n);u!==-1&&o.splice(u,1)}else o[0]===n&&U(this,hr).delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Ac(n);if(typeof i=="string"){const o=U(this,hr).get(i),u=o==null?void 0:o.find(h=>h.state.status==="pending");return!u||u===n}else return!0}runNext(n){var o;const i=Ac(n);if(typeof i=="string"){const u=(o=U(this,hr).get(i))==null?void 0:o.find(h=>
vendor: 4,582 bytes, line 240
240h!==n&&h.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ut.batch(()=>{U(this,ai).forEach(n=>{this.notify({type:"removed",mutation:n})}),U(this,ai).clear(),U(this,hr).clear()})}getAll(){return Array.from(U(this,ai))}find(n){const i={exact:!0,...n};return this.getAll().find(o=>Qg(i,o))}findAll(n={}){return this.getAll().filter(i=>Qg(n,i))}notify(n){Ut.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Ut.batch(()=>Promise.all(n.map(i=>i.continue().catch(xn))))}},ai=new WeakMap,hr=new WeakMap,Jl=new WeakMap,Ly);function Ac(e){var n;return(n=e.options.scope)==null?void 0:n.id}var Rr,Ry,U1=(Ry=class extends eu{constructor(n={}){super();Re(this,Rr);this.config=n,ge(this,Rr,new Map)}build(n,i,o){const u=i.queryKey,h=i.queryHash??vp(u,i);let f=this.get(h);return f||(f=new A1({client:n,queryKey:u,queryHash:h,options:n.defaultQueryOptions(i),state:o,defaultOptions:n.getQueryDefaults(u)}),this.add(f)),f}add(n){U(this,Rr).has(n.queryHash)||(U(this,Rr).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=U(this,Rr).get(n.queryHash);i&&(n.destroy(),i===n&&U(this,Rr).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ut.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return U(this,Rr).get(n)}getAll(){return[...U(this,Rr).values()]}find(n){const i={exact:!0,...n};return this.getAll().find(o=>Gg(i,o))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(o=>Gg(n,o)):i}notify(n){Ut.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Ut.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ut.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Rr=new WeakMap,Ry),xt,es,ts,_a,wa,ns,xa,ba,Oy,H1=(Oy=class{constructor(e={}){Re(this,xt);Re(this,es);Re(this,ts);Re(this,_a);Re(this,wa);Re(this,ns);Re(this,xa);Re(this,ba);ge(this,xt,e.queryCache||new U1),ge(this,es,e.mutationCache||new B1),ge(this,ts,e.defaultOptions||{}),ge(this,_a,new Map),ge(this,wa,new Map),ge(this,ns,0)}mount(){Nc(this,ns)._++,U(this,ns)===1&&(ge(this,xa,_p.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,xt).onFocus())})),ge(this,ba,id.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,xt).onOnline())})))}unmount(){var e,n;Nc(this,ns)._--,U(this,ns)===0&&((e=U(this,xa))==null||e.call(this),ge(this,xa,void 0),(n=U(this,ba))==null||n.call(this),ge(this,ba,void 0))}isFetching(e){return U(this,xt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return U(this,es).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=U(this,xt).get(n.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),i=U(this,xt).build(this,n),o=i.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(ss(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(o))}getQueriesData(e){return U(this,xt).findAll(e).map(({queryKey:n,state:i})=>{const o=i.data;return[n,o]})}setQueryData(e,n,i){const o=this.defaultQueryOptions({queryKey:e}),u=U(this,xt).get(o.queryHash),h=u==null?void 0:u.state.data,f=b1(n,h);if(f!==void 0)return U(this,xt).build(this,o).setData(f,{...i,manual:!0})}setQueriesData(e,n,i){return Ut.batch(()=>U(this,xt).findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,n,i)]))}getQueryState(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=U(this,xt).get(n.queryHash))==null?void 0:i.state}removeQueries(e){const n=U(this,xt);Ut.batch(()=>{n.findAll(e).forEach(i=>{n.remove(i)})})}resetQueries(e,n){const i=U(this,xt);return Ut.batch(()=>(i.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const i={revert:!0,...n},o=Ut.batch(()=>U(this,xt).findAll(e).map(u=>u.cancel(i)));return Promise.all(o).then(xn).catch(xn)}invalidateQueries(e,n={}){return Ut.batch(()=>(U(this,xt).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},n)))}refetchQueries(e,n={}){const i={...n,cancelRefetch:n.cancelRefetch??!0},o=Ut.batch(()=>U(this,xt).findAll(e).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let h=u.fetch(void 0,i);return i.throwOnError||(h=h.catch(xn)),u.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(xn)}fetchQuery(e){const n=this.defaultQueryOptions(e);
240n.retry===void 0&&(n.retry=!1);const i=U(this,xt).build(this,n);return i.isStaleByTime(ss(n.staleTime,i))?i.fetch(n):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xn).catch(xn)}fetchInfiniteQuery(e){return e.behavior=rv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xn).catch(xn)}ensureInfiniteQueryData(e){return e.behavior=rv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return id.isOnline()?U(this,es).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,xt)}getMutationCache(){return U(this,es)}getDefaultOptions(){return U(this,ts)}setDefaultOptions(e){ge(this,ts,e)}setQueryDefaults(e,n){U(this,_a).set(Hl(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...U(this,_a).values()],i={};return n.forEach(o=>{Wl(e,o.queryKey)&&Object.assign(i,o.defaultOptions)}),i}setMutationDefaults(e,n){U(this,wa).set(Hl(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...U(this,wa).values()],i={};return n.forEach(o=>{Wl(e,o.mutationKey)&&Object.assign(i,o.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const n={...U(this,ts).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=vp(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===yp&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...U(this,ts).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){U(this,xt).clear(),U(this,es).clear()}},xt=new WeakMap,es=new WeakMap,ts=new WeakMap,_a=new WeakMap,wa=new WeakMap,ns=new WeakMap,xa=new WeakMap,ba=new WeakMap,Oy),__=k.createContext(void 0),W1=e=>{const n=k.useContext(__);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},$1=({client:e,children:n})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(__.Provider,{value:e,children:n})),w_=k.createContext(!1),q1=()=>k.useContext(w_);w_.Provider;function V1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Z1=k.createContext(V1()),K1=()=>k.useContext(Z1),G1=(e,n,i)=>{const o=i!=null&&i.state.error&&typeof e.throwOnError=="function"?f_(e.throwOnError,[i.state.error,i]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||o)&&(n.isReset()||(e.retryOnMount=!1))},Q1=e=>{k.useEffect(()=>{e.clearReset()},[e])},Y1=({result:e,errorResetBoundary:n,throwOnError:i,query:o,suspense:u})=>e.isError&&!n.isReset()&&!e.isFetching&&o&&(u&&e.data===void 0||f_(i,[e.error,o])),X1=e=>{if(e.suspense){const i=u=>u==="static"?u:Math.max(u??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...u)=>i(o(...u)):i(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},J1=(e,n)=>e.isLoading&&e.isFetching&&!n,eS=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,sv=(e,n,i)=>n.fetchOptimistic(e).catch(()=>{i.clearReset()});function tS(e,n,i){var P,O,F,T;const o=q1(),u=K1(),h=W1(),f=h.defaultQueryOptions(e);(O=(P=h.getDefaultOptions().queries)==null?void 0:P._experimental_beforeQuery)==null||O.call(P,f);const p=h.getQueryCache().get(f.queryHash);f._optimisticResults=o?"isRestoring":"optimistic",X1(f),G1(f,u,p),Q1(u);const y=!h.getQueryCache().get(f.queryHash),[x]=k.useState(()=>new n(h,f)),b=x.getOptimisticResult(f),S=!o&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(N=>{const R=S?x.subscribe(Ut.batchCalls(N)):xn;return x.updateResult(),R},[x,S]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),k.useEffect(()=>{x.setOptions(f)},[f,x]),eS(f,b))throw sv(f,x,u);if(Y1({result:b,errorResetBoundary:u,throwOnError:f.throwOnError,query:p,suspense:f.suspense}))throw b.error;if((T=(F=h.getDefaultOptions().queries)==null?void 0:F._experimental_afterQuery)==null||T.call(F,f,b),f.experimental_prefetchInRender&&!so&&J1(b,o)){const N=y?sv(f,x,u):p==null?void 0:p.promise;N==null||N.catch(xn).finally(()=>{x.updateResult()})}return f.notifyOnChangeProps?b:x.trackResult(b)}function nS(e,n){return tS(e,j1)}const rS=new H1({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var xp=jy();
vendor: 12,508 bytes, lines 240-258
240const iS=hd(xp);/**
241 * @remix-run/router v1.23.2
242 *
243 * Copyright (c) Remix Software Inc.
244 *
245 * This source code is licensed under the MIT license found in the
246 * LICENSE.md file in the root directory of this source tree.
247 *
248 * @license MIT
249 */function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},$l.apply(this,arguments)}var rs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(rs||(rs={}));const ov="popstate";function sS(e){e===void 0&&(e={});function n(o,u){let{pathname:h,search:f,hash:p}=o.location;return qf("",{pathname:h,search:f,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function i(o,u){return typeof u=="string"?u:sd(u)}return aS(n,i,null,e)}function Tt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function bp(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function oS(){return Math.random().toString(36).substr(2,8)}function av(e,n){return{usr:e.state,key:e.key,idx:n}}function qf(e,n,i,o){return i===void 0&&(i=null),$l({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?Pa(n):n,{state:i,key:n&&n.key||o||oS()})}function sd(e){let{pathname:n="/",search:i="",hash:o=""}=e;return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Pa(e){let n={};if(e){let i=e.indexOf("#");i>=0&&(n.hash=e.substr(i),e=e.substr(0,i));let o=e.indexOf("?");o>=0&&(n.search=e.substr(o),e=e.substr(0,o)),e&&(n.pathname=e)}return n}function aS(e,n,i,o){o===void 0&&(o={});let{window:u=document.defaultView,v5Compat:h=!1}=o,f=u.history,p=rs.Pop,y=null,x=b();x==null&&(x=0,f.replaceState($l({},f.state,{idx:x}),""));function b(){return(f.state||{idx:null}).idx}function S(){p=rs.Pop;let N=b(),R=N==null?null:N-x;x=N,y&&y({action:p,location:T.location,delta:R})}function P(N,R){p=rs.Push;let B=qf(T.location,N,R);x=b()+1;let M=av(B,x),j=T.createHref(B);try{f.pushState(M,"",j)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;u.location.assign(j)}h&&y&&y({action:p,location:T.location,delta:1})}function O(N,R){p=rs.Replace;let B=qf(T.location,N,R);x=b();let M=av(B,x),j=T.createHref(B);f.replaceState(M,"",j),h&&y&&y({action:p,location:T.location,delta:0})}function F(N){let R=u.location.origin!=="null"?u.location.origin:u.location.href,B=typeof N=="string"?N:sd(N);return B=B.replace(/ $/,"%20"),Tt(R,"No window.location.(origin|href) available to create URL for href: "+B),new URL(B,R)}let T={get action(){return p},get location(){return e(u,f)},listen(N){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(ov,S),y=N,()=>{u.removeEventListener(ov,S),y=null}},createHref(N){return n(u,N)},createURL:F,encodeLocation(N){let R=F(N);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:P,replace:O,go(N){return f.go(N)}};return T}var lv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lv||(lv={}));function lS(e,n,i){return i===void 0&&(i="/"),uS(e,n,i)}function uS(e,n,i,o){let u=typeof n=="string"?Pa(n):n,h=Sp(u.pathname||"/",i);if(h==null)return null;let f=x_(e);cS(f);let p=null;for(let y=0;p==null&&y<f.length;++y){let x=bS(h);p=_S(f[y],x)}return p}function x_(e,n,i,o){n===void 0&&(n=[]),i===void 0&&(i=[]),o===void 0&&(o="");let u=(h,f,p)=>{let y={relativePath:p===void 0?h.path||"":p,caseSensitive:h.caseSensitive===!0,childrenIndex:f,route:h};y.relativePath.startsWith("/")&&(Tt(y.relativePath.startsWith(o),'Absolute route path "'+y.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),y.relativePath=y.relativePath.slice(o.length));let x=os([o,y.relativePath]),b=i.concat(y);h.children&&h.children.length>0&&(Tt(h.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+x+'".')),x_(h.children,n,b,x)),!(h.path==null&&!h.index)&&n.push({path:x,score:vS(x,h.index),routesMeta:b})};return e.forEach((h,f)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))u(h,f);else for(let y of b_(h.path))u(h,f,y)}),n}function b_(e){let n=e.split("/");if(n.length===0)return[];let[i,...o]=n,u=i.endsWith("?"),h=i.replace(/\?$/,"");if(o.length===0)return u?[h,""]:[h];let f=b_(o.join("/")),p=[];return p.push(...f.map(y=>y===""?h:[h,y].join("/"))),u&&p.push(...f),p.map(y=>e.startsWith("/")&&y===""?"/":y)}function cS(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:yS(n.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}const dS=/^:[\w-]+$/,hS=3,fS=2,pS=1,mS=10,gS=-2,uv=e=>e==="*";function vS(e,n){let i=e.split("/"),o=i.length;return i.some(uv)&&(o+=gS),n&&(o+=fS),i.filter(u=>!uv(u)).reduce((u,h)=>u+(dS.test(h)?hS:h===""?pS:mS),o)}function yS(e,n){return e.length===n.length&&e.slice(0,-1).every((o,u)=>o===n[u])?e[e.length-1]-n[n.length-1]:0}function _S(e,n,i){let{routesMeta:o}=e,u={},h="/",f=[];for(let p=0;p<o.length;++p){let y=o[p],x=p===o.length-1,b=h==="/"?n:n.slice(h.length)||"/",S=wS({path:y.relativePath,caseSensitive:y.caseSensitive,end:x},b),P=y.route;if(!S)return null;Object.assign(u,S.params),f.push({params:u,pathname:os([h,S.pathname]),pathnameBase:PS(os([h,S.pathnameBase])),route:P}),S.pathnameBase!=="/"&&(h=os([h,S.pathnameBase]))}return f}function wS(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,o]=xS(e.path,e.caseSensitive,e.end),u=n.match(i);if(!u)return null;let h=u[0],f=h.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:o.reduce((x,b,S)=>{let{paramName:P,isOptional:O}=b;if(P==="*"){let T=p[S]||"";f=h.slice(0,h.length-T.length).replace(/(.)\/+$/,"$1")}const F=p[S];return O&&!F?x[P]=void 0:x[P]=(F||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:f,pattern:e}}function xS(e,n,i){n===void 0&&(n=!1),i===void 0&&(i=!0),bp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let o=[],u="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,y)=>(o.push({paramName:p,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),u+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?u+="\\/*$":e!==""&&e!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,n?void 0:"i"),o]}function bS(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return bp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),e}}function Sp(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,o=e.charAt(i);return o&&o!=="/"?null:e.slice(i)||"/"}const SS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kS=e=>SS.test(e);function ES(e,n){n===void 0&&(n="/");let{pathname:i,search:o="",hash:u=""}=typeof e=="string"?Pa(e):e,h;if(i)if(kS(i))h=i;else{if(i.includes("//")){let f=i;i=i.replace(/\/\/+/g,"/"),bp(!1,"Pathnames cannot have embedded double slashes - normalizing "+(f+" -> "+i))}i.startsWith("/")?h=cv(i.substring(1),"/"):h=cv(i,n)}else h=n;return{pathname:h,search:TS(o),hash:NS(u)}}function cv(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(u=>{u===".."?i.length>1&&i.pop():u!=="."&&i.push(u)}),i.length>1?i.join("/"):"/"}function uf(e,n,i,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(o)+"].  Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function CS(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function S_(e,n){let i=CS(e);return n?i.map((o,u)=>u===i.length-1?o.pathname:o.pathnameBase):i.map(o=>o.pathnameBase)}function k_(e,n,i,o){o===void 0&&(o=!1);let u;typeof e=="string"?u=Pa(e):(u=$l({},e),Tt(!u.pathname||!u.pathname.includes("?"),uf("?","pathname","search",u)),Tt(!u.pathname||!u.pathname.includes("#"),uf("#","pathname","hash",u)),Tt(!u.search||!u.search.includes("#"),uf("#","search","hash",u)));let h=e===""||u.pathname==="",f=h?"/":u.pathname,p;if(f==null)p=i;else{let S=n.length-1;if(!o&&f.startsWith("..")){let P=f.split("/");for(;P[0]==="..";)P.shift(),S-=1;u.pathname=P.join("/")}p=S>=0?n[S]:"/"}let y=ES(u,p),x=f&&f!=="/"&&f.endsWith("/"),b=(h||f===".")&&i.endsWith("/");return!y.pathname.endsWith("/")&&(x||b)&&(y.pathname+="/"),y}const os=e=>e.join("/").replace(/\/\/+/g,"/"),PS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function LS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const E_=["post","put","patch","delete"];new Set(E_);const RS=["get",...E_];new Set(RS);/**
250 * React Router v6.30.3
251 *
252 * Copyright (c) Remix Software Inc.
253 *
254 * This source code is licensed under the MIT license found in the
255 * LICENSE.md file in the root directory of this source tree.
256 *
257 * @license MIT
258 */function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},ql.apply(this,arguments)}const kp=k.createContext(null),OS=k.createContext(null),co=k.createContext(null),tu=k.createContext(null),ds=k.createContext({outlet:null,matches:[],isDataRoute:!1}),C_=k.createContext(null);function AS(e,n){let{relative:i}=n===void 0?{}:n;nu()||Tt(!1);let{basename:o,navigator:u}=k.useContext(co),{hash:h,pathname:f,search:p}=T_(e,{relative:i}),y=f;return o!=="/"&&(y=f==="/"?o:os([o,f])),u.createHref({pathname:y,search:p,hash:h})}function nu(){return k.useContext(tu)!=null}function Ta(){return nu()||Tt(!1),k.useContext(tu).location}function jS(){return k.useContext(tu).navigationType}function P_(e){k.useContext(co).static||k.useLayoutEffect(e)}function Ep(){let{isDataRoute:e}=k.useContext(ds);return e?KS():MS()}function MS(){nu()||Tt(!1);let e=k.useContext(kp),{basename:n,future:i,navigator:o}=k.useContext(co),{matches:u}=k.useContext(ds),{pathname:h}=Ta(),f=JSON.stringify(S_(u,i.v7_relativeSplatPath)),p=k.useRef(!1);return P_(()=>{p.current=!0}),k.useCallback(function(x,b){if(b===void 0&&(b={}),!p.current)return;if(typeof x=="number"){o.go(x);return}let S=k_(x,JSON.parse(f),h,b.relative==="path");e==null&&n!=="/"&&(S.pathname=S.pathname==="/"?n:os([n,S.pathname])),(b.replace?o.replace:o.push)(S,b.state,b)},[n,o,f,h,e])}function IS(){let{matches:e}=k.useContext(ds),n=e[e.length-1];return n?n.params:{}}function T_(e,n){let{relative:i}=n===void 0?{}:n,{future:o}=k.useContext(co),{matches:u}=k.useContext(ds),{pathname:h}=Ta(),f=JSON.stringify(S_(u,o.v7_relativeSplatPath));return k.useMemo(()=>k_(e,JSON.parse(f),h,i==="path"),[e,f,h,i])}function zS(e,n){return DS(e,n)}function DS(e,n,i,o){nu()||Tt(!1);let{navigator:u}=k.useContext(co),{matches:h}=k.useContext(ds),f=h[h.length-1],p=f?f.params:{};f&&f.pathname;let y=f?f.pathnameBase:"/";f&&f.route;let x=Ta(),b;if(n){var S;let N=typeof n=="string"?Pa(n):n;y==="/"||(S=N.pathname)!=null&&S.startsWith(y)||Tt(!1),b=N}else b=x;let P=b.pathname||"/",O=P;if(y!=="/"){let N=y.replace(/^\//,"").split("/");O="/"+P.replace(/^\//,"").split("/").slice(N.length).join("/")}let F=lS(e,{pathname:O}),T=WS(F&&F.map(N=>Object.assign({},N,{params:Object.assign({},p,N.params),pathname:os([y,u.encodeLocation?u.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?y:os([y,u.encodeLocation?u.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),h,i,o);return n&&T?k.createElement(tu.Provider,{value:{location:ql({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:rs.Pop}},T):T}function FS(){let e=ZS(),n=LS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,u={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application 
258Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},n),i?k.createElement("pre",{style:u},i):null,null)}const BS=k.createElement(FS,null);class US extends k.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){console.error("React Router caught the following error during render",n,i)}render(){return this.state.error!==void 0?k.createElement(ds.Provider,{value:this.props.routeContext},k.createElement(C_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HS(e){let{routeContext:n,match:i,children:o}=e,u=k.useContext(kp);return u&&u.static&&u.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=i.route.id),k.createElement(ds.Provider,{value:n},o)}function WS(e,n,i,o){var u;if(n===void 0&&(n=[]),i===void 0&&(i=null),o===void 0&&(o=null),e==null){var h;if(!i)return null;if(i.errors)e=i.matches;else if((h=o)!=null&&h.v7_partialHydration&&n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let f=e,p=(u=i)==null?void 0:u.errors;if(p!=null){let b=f.findIndex(S=>S.route.id&&(p==null?void 0:p[S.route.id])!==void 0);b>=0||Tt(!1),f=f.slice(0,Math.min(f.length,b+1))}let y=!1,x=-1;if(i&&o&&o.v7_partialHydration)for(let b=0;b<f.length;b++){let S=f[b];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(x=b),S.route.id){let{loaderData:P,errors:O}=i,F=S.route.loader&&P[S.route.id]===void 0&&(!O||O[S.route.id]===void 0);if(S.route.lazy||F){y=!0,x>=0?f=f.slice(0,x+1):f=[f[0]];break}}}return f.reduceRight((b,S,P)=>{let O,F=!1,T=null,N=null;i&&(O=p&&S.route.id?p[S.route.id]:void 0,T=S.route.errorElement||BS,y&&(x<0&&P===0?(GS("route-fallback"),F=!0,N=null):x===P&&(F=!0,N=S.route.hydrateFallbackElement||null)));let R=n.concat(f.slice(0,P+1)),B=()=>{let M;return O?M=T:F?M=N:S.route.Component?M=k.createElement(S.route.Component,null):S.route.element?M=S.route.element:M=b,k.createElement(HS,{match:S,routeContext:{outlet:b,matches:R,isDataRoute:i!=null},children:M})};return i&&(S.route.ErrorBoundary||S.route.errorElement||P===0)?k.createElement(US,{location:i.location,revalidation:i.revalidation,component:T,error:O,children:B(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):B()},null)}var N_=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(N_||{}),L_=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(L_||{});function $S(e){let n=k.useContext(kp);return n||Tt(!1),n}function qS(e){let n=k.useContext(OS);return n||Tt(!1),n}function VS(e){let n=k.useContext(ds);return n||Tt(!1),n}function R_(e){let n=VS(),i=n.matches[n.matches.length-1];return i.route.id||Tt(!1),i.route.id}function ZS(){var e;let n=k.useContext(C_),i=qS(),o=R_();return n!==void 0?n:(e=i.errors)==null?void 0:e[o]}function KS(){let{router:e}=$S(N_.UseNavigateStable),n=R_(L_.UseNavigateStable),i=k.useRef(!1);return P_(()=>{i.current=!0}),k.useCallback(function(u,h){h===void 0&&(h={}),i.current&&(typeof u=="number"?e.navigate(u):e.navigate(u,ql({fromRouteId:n},h)))},[e,n])}const dv={};function GS(e,n,i){dv[e]||(dv[e]=!0)}function QS(e,n){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Vc(e){Tt(!1)}function YS(e){let{basename:n="/",children:i=null,location:o,navigationType:u=rs.Pop,navigator:h,static:f=!1,future:p}=e;nu()&&Tt(!1);let y=n.replace(/^\/*/,"/"),x=k.useMemo(()=>({basename:y,navigator:h,static:f,future:ql({v7_relativeSplatPath:!1},p)}),[y,p,h,f]);
258typeof o=="string"&&(o=Pa(o));let{pathname:b="/",search:S="",hash:P="",state:O=null,key:F="default"}=o,T=k.useMemo(()=>{let N=Sp(b,y);return N==null?null:{location:{pathname:N,search:S,hash:P,state:O,key:F},navigationType:u}},[y,b,S,P,O,F,u]);return T==null?null:k.createElement(co.Provider,{value:x},k.createElement(tu.Provider,{children:i,value:T}))}function XS(e){let{children:n,location:i}=e;return zS(Vf(n),i)}new Promise(()=>{});function Vf(e,n){n===void 0&&(n=[]);let i=[];return k.Children.forEach(e,(o,u)=>{if(!k.isValidElement(o))return;let h=[...n,u];if(o.type===k.Fragment){i.push.apply(i,Vf(o.props.children,h));return}o.type!==Vc&&Tt(!1),!o.props.index||!o.props.children||Tt(!1);let f={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(f.children=Vf(o.props.children,h)),i.push(f)}),i}/**
259 * React Router DOM v6.30.3
260 *
261 * Copyright (c) Remix Software Inc.
262 *
263 * This source code is licensed under the MIT license found in the
264 * LICENSE.md file in the root directory of this source tree.
265 *
266 * @license MIT
267 */function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Zf.apply(this,arguments)}function JS(e,n){if(e==null)return{};var i={},o=Object.keys(e),u,h;for(h=0;h<o.length;h++)u=o[h],!(n.indexOf(u)>=0)&&(i[u]=e[u]);return i}function ek(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tk(e,n){return e.button===0&&(!n||n==="_self")&&!ek(e)}const nk=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rk="6";try{window.__reactRouterVersion=rk}catch{}const ik="startTransition",hv=fd[ik];function sk(e){let{basename:n,children:i,future:o,window:u}=e,h=k.useRef();h.current==null&&(h.current=sS({window:u,v5Compat:!0}));let f=h.current,[p,y]=k.useState({action:f.action,location:f.location}),{v7_startTransition:x}=o||{},b=k.useCallback(S=>{x&&hv?hv(()=>y(S)):y(S)},[y,x]);return k.useLayoutEffect(()=>f.listen(b),[f,b]),k.useEffect(()=>QS(o),[o]),k.createElement(YS,{basename:n,children:i,location:p.location,navigationType:p.action,navigator:f,future:o})}const ok=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ak=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cp=k.forwardRef(function(n,i){let{onClick:o,relative:u,reloadDocument:h,replace:f,state:p,target:y,to:x,preventScrollReset:b,viewTransition:S}=n,P=JS(n,nk),{basename:O}=k.useContext(co),F,T=!1;if(typeof x=="string"&&ak.test(x)&&(F=x,ok))try{let M=new URL(window.location.href),j=x.startsWith("//")?new URL(M.protocol+x):new URL(x),$=Sp(j.pathname,O);j.origin===M.origin&&$!=null?x=$+j.search+j.hash:T=!0}catch{}let N=AS(x,{relative:u}),R=lk(x,{replace:f,state:p,target:y,preventScrollReset:b,relative:u,viewTransition:S});function B(M){o&&o(M),M.defaultPrevented||R(M)}return k.createElement("a",Zf({},P,{href:F||N,onClick:T||h?o:B,ref:i,target:y}))});var fv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(fv||(fv={}));var pv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(pv||(pv={}));function lk(e,n){let{target:i,replace:o,state:u,preventScrollReset:h,relative:f,viewTransition:p}=n===void 0?{}:n,y=Ep(),x=Ta(),b=T_(e,{relative:f});return k.useCallback(S=>{if(tk(S,i)){S.preventDefault();let P=o!==void 0?o:sd(x)===sd(b);y(e,{replace:P,state:u,preventScrollReset:h,relative:f,viewTransition:p})}},[x,y,b,o,u,i,e,h,f,p])}function O_(e,n){return function(){return e.apply(n,arguments)}}const{toString:uk}=Object.prototype,{getPrototypeOf:Sa}=Object,{iterator:ru,toStringTag:A_}=Symbol,od=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),Vl=(e,n)=>{let i=e;const o=[];for(;i!=null&&i!==Object.prototype;){if(o.indexOf(i)!==-1)return!1;if(o.push(i),od(i,n))return!0;
vendor: 9,249 bytes, lines 267-268
267i=Sa(i)}return!1},ck=(e,n)=>e!=null&&Vl(e,n)?e[n]:void 0,Pp=(e=>n=>{const i=uk.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),mr=e=>(e=e.toLowerCase(),n=>Pp(n)===e),gd=e=>n=>typeof n===e,{isArray:oo}=Array,ka=gd("undefined");function Na(e){return e!==null&&!ka(e)&&e.constructor!==null&&!ka(e.constructor)&&bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const j_=mr("ArrayBuffer");function dk(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&j_(e.buffer),n}const hk=gd("string"),bn=gd("function"),M_=gd("number"),La=e=>e!==null&&typeof e=="object",fk=e=>e===!0||e===!1,Zc=e=>{if(!La(e))return!1;const n=Sa(e);return(n===null||n===Object.prototype||Sa(n)===null)&&!Vl(e,A_)&&!Vl(e,ru)},pk=e=>{if(!La(e)||Na(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},mk=mr("Date"),gk=mr("File"),vk=e=>!!(e&&typeof e.uri<"u"),yk=e=>e&&typeof e.getParts<"u",_k=mr("Blob"),wk=mr("FileList"),xk=e=>La(e)&&bn(e.pipe);function bk(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const mv=bk(),gv=typeof mv.FormData<"u"?mv.FormData:void 0,Sk=e=>{if(!e)return!1;if(gv&&e instanceof gv)return!0;const n=Sa(e);if(!n||n===Object.prototype||!bn(e.append))return!1;const i=Pp(e);return i==="formdata"||i==="object"&&bn(e.toString)&&e.toString()==="[object FormData]"},kk=mr("URLSearchParams"),[Ek,Ck,Pk,Tk]=["ReadableStream","Request","Response","Headers"].map(mr),Nk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function iu(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let o,u;if(typeof e!="object"&&(e=[e]),oo(e))for(o=0,u=e.length;o<u;o++)n.call(null,e[o],o,e);else{if(Na(e))return;const h=i?Object.getOwnPropertyNames(e):Object.keys(e),f=h.length;let p;for(o=0;o<f;o++)p=h[o],n.call(null,e[p],p,e)}}function I_(e,n){if(Na(e))return null;n=n.toLowerCase();const i=Object.keys(e);let o=i.length,u;for(;o-- >0;)if(u=i[o],n===u.toLowerCase())return u;return null}const Zs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,z_=e=>!ka(e)&&e!==Zs;function Kf(...e){const{caseless:n,skipUndefined:i}=z_(this)&&this||{},o={},u=(h,f)=>{if(f==="__proto__"||f==="constructor"||f==="prototype")return;const p=n&&typeof f=="string"&&I_(o,f)||f,y=od(o,p)?o[p]:void 0;Zc(y)&&Zc(h)?o[p]=Kf(y,h):Zc(h)?o[p]=Kf({},h):oo(h)?o[p]=h.slice():(!i||!ka(h))&&(o[p]=h)};for(let h=0,f=e.length;h<f;h++){const p=e[h];if(!p||Na(p)||(iu(p,u),typeof p!="object"||oo(p)))continue;const y=Object.getOwnPropertySymbols(p);for(let x=0;x<y.length;x++){const b=y[x];Uk.call(p,b)&&u(p[b],b)}}return o}const Lk=(e,n,i,{allOwnKeys:o}={})=>(iu(n,(u,h)=>{i&&bn(u)?Object.defineProperty(e,h,{__proto__:null,value:O_(u,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,h,{__proto__:null,value:u,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),Rk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ok=(e,n,i,o)=>{e.prototype=Object.create(n.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:n.prototype}),i&&Object.assign(e.prototype,i)},Ak=(e,n,i,o)=>{let u,h,f;const p={};if(n=n||{},e==null)return n;do{for(u=Object.getOwnPropertyNames(e),h=u.length;h-- >0;)f=u[h],(!o||o(f,e,n))&&!p[f]&&(n[f]=e[f],p[f]=!0);e=i!==!1&&Sa(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},jk=(e,n,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=n.length;const o=e.indexOf(n,i);return o!==-1&&o===i},Mk=e=>{if(!e)return null;if(oo(e))return e;let n=e.length;if(!M_(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},Ik=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&Sa(Uint8Array)),zk=(e,n)=>{const o=(e&&e[ru]).call(e);let u;for(;(u=o.next())&&!u.done;){const h=u.value;n.call(e,h[0],h[1])}},Dk=(e,n)=>{let i;const o=[];for(;(i=e.exec(n))!==null;)o.push(i);return o},Fk=mr("HTMLFormElement"),Bk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,u){return o.toUpperCase()+u}),{propertyIsEnumerable:Uk}=Object.prototype,Hk=mr("RegExp"),D_=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),o={};iu(i,(u,h)=>{let f;(f=n(u,h,e))!==!1&&(o[h]=f||u)}),Object.defineProperties(e,o)},Wk=e=>{D_(e,(n,i)=>{if(bn(e)&&["arguments","caller","callee"].includes(i))return!1;const o=e[i];if(bn(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},$k=(e,n)=>{const i={},o=u=>{u.forEach(h=>{i[h]=!0})};return oo(e)?o(e):o(String(e).split(n)),i},qk=()=>{},Vk=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function Zk(e){return!!(e&&bn(e.append)&&e[A_]==="FormData"&&e[ru])}const Kk=e=>{const n=new WeakSet,i=o=>{if(La(o)){if(n.has(o))return;if(Na(o))return o;if(!("toJSON"in o)){n.add(o);const u=oo(o)?[]:{};return iu(o,(h,f)=>{const p=i(h);!ka(p)&&(u[f]=p)}),n.delete(o),u}}return o};return i(e)},Gk=mr("AsyncFunction"),Qk=e=>e&&(La(e)||bn(e))&&bn(e.then)&&bn(e.catch),F_=((e,n)=>e?setImmediate:n?((i,o)=>(Zs.addEventListener("message",({source:u,data:h})=>{u===Zs&&h===i&&o.length&&o.shift()()},!1),u=>{o.push(u),Zs.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",bn(Zs.postMessage)),Yk=typeof queueMicrotask<"u"?queueMicrotask.bind(Zs):typeof process<"u"&&process.nextTick||F_,B_=e=>e!=null&&bn(e[ru]),Xk=e=>e!=null&&Vl(e,ru)&&B_(e),W={isArray:oo,isArrayBuffer:j_,isBuffer:Na,isFormData:Sk,isArrayBufferView:dk,isString:hk,isNumber:M_,isBoolean:fk,isObject:La,isPlainObject:Zc,isEmptyObject:pk,isReadableStream:Ek,isRequest:Ck,isResponse:Pk,isHeaders:Tk,isUndefined:ka,isDate:mk,isFile:gk,isReactNativeBlob:vk,isReactNative:yk,isBlob:_k,isRegExp:Hk,isFunction:bn,isStream:xk,isURLSearchParams:kk,isTypedArray:Ik,isFileList:wk,forEach:iu,merge:Kf,extend:Lk,trim:Nk,stripBOM:Rk,inherits:Ok,toFlatObject:Ak,kindOf:Pp,kindOfTest:mr,endsWith:jk,toArray:Mk,forEachEntry:zk,matchAll:Dk,isHTMLForm:Fk,hasOwnProperty:od,hasOwnProp:od,hasOwnInPrototypeChain:Vl,getSafeProp:ck,reduceDescriptors:D_,freezeMethods:Wk,toObjectSet:$k,toCamelCase:Bk,noop:qk,toFiniteNumber:Vk,findKey:I_,global:Zs,isContextDefined:z_,isSpecCompliantForm:Zk,toJSONObject:Kk,isAsyncFn:Gk,isThenable:Qk,setImmediate:F_,asap:Yk,isIterable:B_,isSafeIterable:Xk},Jk=W.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"]),eE=e=>{const n={};let i,o,u;return e&&e.split(`
268`).forEach(function(f){u=f.indexOf(":"),i=f.substring(0,u).trim().toLowerCase(),o=f.substring(u+1).trim(),!(!i||n[i]&&Jk[i])&&(i==="set-cookie"?n[i]?n[i].push(o):n[i]=[o]:n[i]=n[i]?n[i]+", "+o:o)}),n};function tE(e){let n=0,i=e.length;for(;n<i;){const o=e.charCodeAt(n);if(o!==9&&o!==32)break;n+=1}for(;i>n;){const o=e.charCodeAt(i-1);if(o!==9&&o!==32)break;i-=1}return n===0&&i===e.length?e:e.slice(n,i)}const nE=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rE=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Tp(e,n){return W.isArray(e)?e.map(i=>Tp(i,n)):tE(String(e).replace(n,""))}const iE=e=>Tp(e,nE),sE=e=>Tp(e,rE);function U_(e){const n=Object.create(null);return W.forEach(e.toJSON(),(i,o)=>{n[o]=sE(i)}),n}const vv=Symbol("internals");function Rl(e){return e&&String(e).trim().toLowerCase()}function Kc(e){return e===!1||e==null?e:W.isArray(e)?e.map(Kc):iE(String(e))}function oE(e){const n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=i.exec(e);)n[o[1]]=o[2];return n}const aE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function cf(e,n,i,o,u){if(W.isFunction(o))return o.call(this,n,i);if(u&&(n=i),!!W.isString(n)){if(W.isString(o))return n.indexOf(o)!==-1;if(W.isRegExp(o))return o.test(n)}}function lE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,o)=>i.toUpperCase()+o)}function uE(e,n){const i=W.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+i,{__proto__:null,value:function(u,h,f){return this[o].call(this,n,u,h,f)},configurable:!0})})}let tn=class{constructor(n){n&&this.set(n)}set(n,i,o){const u=this;function h(p,y,x){const b=Rl(y);if(!b)return;const S=W.findKey(u,b);(!S||u[S]===void 0||x===!0||x===void 0&&u[S]!==!1)&&(u[S||y]=Kc(p))}const f=(p,y)=>W.forEach(p,(x,b)=>h(x,b,y));if(W.isPlainObject(n)||n instanceof this.constructor)f(n,i);else if(W.isString(n)&&(n=n.trim())&&!aE(n))f(eE(n),i);else if(W.isObject(n)&&W.isSafeIterable(n)){let p=Object.create(null),y,x;for(const b of n){if(!W.isArray(b))throw new TypeError("Object iterator must return a key-value pair");x=b[0],W.hasOwnProp(p,x)?(y=p[x],p[x]=W.isArray(y)?[...y,b[1]]:[y,b[1]]):p[x]=b[1]}f(p,i)}else n!=null&&h(i,n,o);return this}get(n,i){if(n=Rl(n),n){const o=W.findKey(this,n);if(o){const u=this[o];if(!i)return u;if(i===!0)return oE(u);if(W.isFunction(i))return i.call(this,u,o);if(W.isRegExp(i))return i.exec(u);throw new TypeError("parser must be boolean|regexp|function")}}}
vendor: 5,643 bytes, lines 268-269
268has(n,i){if(n=Rl(n),n){const o=W.findKey(this,n);return!!(o&&this[o]!==void 0&&(!i||cf(this,this[o],o,i)))}return!1}delete(n,i){const o=this;let u=!1;function h(f){if(f=Rl(f),f){const p=W.findKey(o,f);p&&(!i||cf(o,o[p],p,i))&&(delete o[p],u=!0)}}return W.isArray(n)?n.forEach(h):h(n),u}clear(n){const i=Object.keys(this);let o=i.length,u=!1;for(;o--;){const h=i[o];(!n||cf(this,this[h],h,n,!0))&&(delete this[h],u=!0)}return u}normalize(n){const i=this,o={};return W.forEach(this,(u,h)=>{const f=W.findKey(o,h);if(f){i[f]=Kc(u),delete i[h];return}const p=n?lE(h):String(h).trim();p!==h&&delete i[h],i[p]=Kc(u),o[p]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const i=Object.create(null);return W.forEach(this,(o,u)=>{o!=null&&o!==!1&&(i[u]=n&&W.isArray(o)?o.join(", "):o)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,i])=>n+": "+i).join(`
269`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...i){const o=new this(n);return i.forEach(u=>o.set(u)),o}static accessor(n){const o=(this[vv]=this[vv]={accessors:{}}).accessors,u=this.prototype;function h(f){const p=Rl(f);o[p]||(uE(u,f),o[p]=!0)}return W.isArray(n)?n.forEach(h):h(n),this}};tn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(tn.prototype,({value:e},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(o){this[i]=o}}});W.freezeMethods(tn);const cE="[REDACTED ****]";function dE(e){if(W.hasOwnProp(e,"toJSON"))return!0;let n=Object.getPrototypeOf(e);for(;n&&n!==Object.prototype;){if(W.hasOwnProp(n,"toJSON"))return!0;n=Object.getPrototypeOf(n)}return!1}function hE(e,n){const i=new Set(n.map(h=>String(h).toLowerCase())),o=[],u=h=>{if(h===null||typeof h!="object"||W.isBuffer(h))return h;if(o.indexOf(h)!==-1)return;h instanceof tn&&(h=h.toJSON()),o.push(h);let f;if(W.isArray(h))f=[],h.forEach((p,y)=>{const x=u(p);W.isUndefined(x)||(f[y]=x)});else{if(!W.isPlainObject(h)&&dE(h))return o.pop(),h;f=Object.create(null);for(const[p,y]of Object.entries(h)){const x=i.has(p.toLowerCase())?cE:u(y);W.isUndefined(x)||(f[p]=x)}}return o.pop(),f};return u(e)}let de=class H_ extends Error{static from(n,i,o,u,h,f){const p=new H_(n.message,i||n.code,o,u,h);return Object.defineProperty(p,"cause",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),p.name=n.name,n.status!=null&&p.status==null&&(p.status=n.status),f&&Object.assign(p,f),p}constructor(n,i,o,u,h){super(n),Object.defineProperty(this,"message",{__proto__:null,value:n,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),o&&(this.config=o),u&&(this.request=u),h&&(this.response=h,this.status=h.status)}toJSON(){const n=this.config,i=n&&W.hasOwnProp(n,"redact")?n.redact:void 0,o=W.isArray(i)&&i.length>0?hE(n,i):W.toJSONObject(n);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}}};de.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";de.ERR_BAD_OPTION="ERR_BAD_OPTION";de.ECONNABORTED="ECONNABORTED";de.ETIMEDOUT="ETIMEDOUT";de.ECONNREFUSED="ECONNREFUSED";de.ERR_NETWORK="ERR_NETWORK";de.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";de.ERR_DEPRECATED="ERR_DEPRECATED";de.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";de.ERR_BAD_REQUEST="ERR_BAD_REQUEST";de.ERR_CANCELED="ERR_CANCELED";de.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";de.ERR_INVALID_URL="ERR_INVALID_URL";de.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const fE=null,W_=100;function Gf(e){return W.isPlainObject(e)||W.isArray(e)}function $_(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function df(e,n,i){return e?e.concat(n).map(function(u,h){return u=$_(u),!i&&h?"["+u+"]":u}).join(i?".":""):n}function pE(e){return W.isArray(e)&&!e.some(Gf)}const mE=W.toFlatObject(W,{},null,function(n){return/^is[A-Z]/.test(n)});function vd(e,n,i){if(!W.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,i=W.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(B,M){return!W.isUndefined(M[B])});const o=i.metaTokens,u=i.visitor||F,h=i.dots,f=i.indexes,p=i.Blob||typeof Blob<"u"&&Blob,y=i.maxDepth===void 0?W_:i.maxDepth,x=p&&W.isSpecCompliantForm(n),b=[];if(!W.isFunction(u))throw new TypeError("visitor must be a function");function S(R){if(R===null)return"";if(W.isDate(R))return R.toISOString();if(W.isBoolean(R))return R.toString();if(!x&&W.isBlob(R))throw new de("Blob is not supported. Use a Buffer instead.");if(W.isArrayBuffer(R)||W.isTypedArray(R)){if(x&&typeof p=="function")return new p([R]);if(typeof Buffer<"u")return Buffer.from(R);throw new de("Blob is not supported. Use a Buffer instead.",de.ERR_NOT_SUPPORT)}return R}function P(R){if(R>y)throw new de("Object is too deeply nested ("+R+" levels). Max depth: "+y,de.ERR_FORM_DATA_DEPTH_EXCEEDED)}function O(R,B){if(y===1/0)return JSON.stringify(R);const M=[];return JSON.stringify(R,function($,Q){if(!W.isObject(Q))return Q;for(;M.length&&M[M.length-1]!==this;)M.pop();return M.push(Q),P(B+M.length-1),Q})}function F(R,B,M){let j=R;if(W.isReactNative(n)&&W.isReactNativeBlob(R))return n.append(df(M,B,h),S(R)),!1;if(R&&!M&&typeof R=="object"){if(W.endsWith(B,"{}"))B=o?B:B.slice(0,-2),R=O(R,1);else if(W.isArray(R)&&pE(R)||(W.isFileList(R)||W.endsWith(B,"[]"))&&(j=W.toArray(R)))return B=$_(B),j.forEac
vendor: 4,172 bytes, line 269
269h(function(Q,G){!(W.isUndefined(Q)||Q===null)&&n.append(f===!0?df([B],G,h):f===null?B:B+"[]",S(Q))}),!1}return Gf(R)?!0:(n.append(df(M,B,h),S(R)),!1)}const T=Object.assign(mE,{defaultVisitor:F,convertValue:S,isVisitable:Gf});function N(R,B,M=0){if(!W.isUndefined(R)){if(P(M),b.indexOf(R)!==-1)throw new Error("Circular reference detected in "+B.join("."));b.push(R),W.forEach(R,function($,Q){(!(W.isUndefined($)||$===null)&&u.call(n,$,W.isString(Q)?Q.trim():Q,B,T))===!0&&N($,B?B.concat(Q):[Q],M+1)}),b.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return N(e),n}function yv(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(o){return n[o]})}function Np(e,n){this._pairs=[],e&&vd(e,this,n)}const q_=Np.prototype;q_.append=function(n,i){this._pairs.push([n,i])};q_.toString=function(n){const i=n?o=>n.call(this,o,yv):yv;return this._pairs.map(function(u){return i(u[0])+"="+i(u[1])},"").join("&")};function gE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function V_(e,n,i){if(!n)return e;e=e||"";const o=W.isFunction(i)?{serialize:i}:i,u=W.getSafeProp(o,"encode")||gE,h=W.getSafeProp(o,"serialize");let f;if(h?f=h(n,o):f=W.isURLSearchParams(n)?n.toString():new Np(n,o).toString(u),f){const p=e.indexOf("#");p!==-1&&(e=e.slice(0,p)),e+=(e.indexOf("?")===-1?"?":"&")+f}return e}class _v{constructor(){this.handlers=[]}use(n,i,o){return this.handlers.push({fulfilled:n,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){W.forEach(this.handlers,function(o){o!==null&&n(o)})}}const Lp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},vE=typeof URLSearchParams<"u"?URLSearchParams:Np,yE=typeof FormData<"u"?FormData:null,_E=typeof Blob<"u"?Blob:null,wE={isBrowser:!0,classes:{URLSearchParams:vE,FormData:yE,Blob:_E},protocols:["http","https","file","blob","url","data"]},Rp=typeof window<"u"&&typeof document<"u",Qf=typeof navigator=="object"&&navigator||void 0,xE=Rp&&(!Qf||["ReactNative","NativeScript","NS"].indexOf(Qf.product)<0),bE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SE=Rp&&window.location.href||"http://localhost",kE=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Rp,hasStandardBrowserEnv:xE,hasStandardBrowserWebWorkerEnv:bE,navigator:Qf,origin:SE},Symbol.toStringTag,{value:"Module"})),Ht={...kE,...wE};function EE(e,n){return vd(e,new Ht.classes.URLSearchParams,{visitor:function(i,o,u,h){return Ht.isNode&&W.isBuffer(i)?(this.append(o,i.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...n})}const wv=W_;function Z_(e){if(e>wv)throw new de("FormData field is too deeply nested ("+e+" levels). Max depth: "+wv,de.ERR_FORM_DATA_DEPTH_EXCEEDED)}function CE(e){const n=[],i=/\w+|\[(\w*)]/g;let o;for(;(o=i.exec(e))!==null;)Z_(n.length),n.push(o[0]==="[]"?"":o[1]||o[0]);return n}function PE(e){const n={},i=Object.keys(e);let o;const u=i.length;let h;for(o=0;o<u;o++)h=i[o],n[h]=e[h];return n}function K_(e){function n(i,o,u,h){Z_(h);let f=i[h++];if(f==="__proto__")return!0;const p=Number.isFinite(+f),y=h>=i.length;return f=!f&&W.isArray(u)?u.length:f,y?(W.hasOwnProp(u,f)?u[f]=W.isArray(u[f])?u[f].concat(o):[u[f],o]:u[f]=o,!p):((!W.hasOwnProp(u,f)||!W.isObject(u[f]))&&(u[f]=[]),n(i,o,u[f],h)&&W.isArray(u[f])&&(u[f]=PE(u[f])),!p)}if(W.isFormData(e)&&W.isFunction(e.entries)){const i={};return W.forEachEntry(e,(o,u)=>{n(CE(o),u,i,0)}),i}return null}const ia=(e,n)=>e!=null&&W.hasOwnProp(e,n)?e[n]:void 0;function TE(e,n,i){if(W.isString(e))try{return(n||JSON.parse)(e),W.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(i||JSON.stringify)(e)}const su={transitional:Lp,adapter:["xhr","http","fetch"],transformRequest:[function(n,i){const o=i.getContentType()||"",u=o.indexOf("application/json")>-1,h=W.isObject(n);
vendor: 11,472 bytes, line 269
269if(h&&W.isHTMLForm(n)&&(n=new FormData(n)),W.isFormData(n))return u?JSON.stringify(K_(n)):n;if(W.isArrayBuffer(n)||W.isBuffer(n)||W.isStream(n)||W.isFile(n)||W.isBlob(n)||W.isReadableStream(n))return n;if(W.isArrayBufferView(n))return n.buffer;if(W.isURLSearchParams(n))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(h){const y=ia(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return EE(n,y).toString();if((p=W.isFileList(n))||o.indexOf("multipart/form-data")>-1){const x=ia(this,"env"),b=x&&x.FormData;return vd(p?{"files[]":n}:n,b&&new b,y)}}return h||u?(i.setContentType("application/json",!1),TE(n)):n}],transformResponse:[function(n){const i=ia(this,"transitional")||su.transitional,o=i&&i.forcedJSONParsing,u=ia(this,"responseType"),h=u==="json";if(W.isResponse(n)||W.isReadableStream(n))return n;if(n&&W.isString(n)&&(o&&!u||h)){const p=!(i&&i.silentJSONParsing)&&h;try{return JSON.parse(n,ia(this,"parseReviver"))}catch(y){if(p)throw y.name==="SyntaxError"?de.from(y,de.ERR_BAD_RESPONSE,this,null,ia(this,"response")):y}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch","query"],e=>{su.headers[e]={}});function hf(e,n){const i=this||su,o=n||i,u=tn.from(o.headers);let h=o.data;return W.forEach(e,function(p){h=p.call(i,h,u.normalize(),n?n.status:void 0)}),u.normalize(),h}function G_(e){return!!(e&&e.__CANCEL__)}let ou=class extends de{constructor(n,i,o){super(n??"canceled",de.ERR_CANCELED,i,o),this.name="CanceledError",this.__CANCEL__=!0}};function Q_(e,n,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?e(i):n(new de("Request failed with status code "+i.status,i.status>=400&&i.status<500?de.ERR_BAD_REQUEST:de.ERR_BAD_RESPONSE,i.config,i.request,i))}function NE(e){const n=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return n&&n[1]||""}function LE(e,n){e=e||10;const i=new Array(e),o=new Array(e);let u=0,h=0,f;return n=n!==void 0?n:1e3,function(y){const x=Date.now(),b=o[h];f||(f=x),i[u]=y,o[u]=x;let S=h,P=0;for(;S!==u;)P+=i[S++],S=S%e;if(u=(u+1)%e,u===h&&(h=(h+1)%e),x-f<n)return;const O=b&&x-b;return O?Math.round(P*1e3/O):void 0}}function RE(e,n){let i=0,o=1e3/n,u,h;const f=(x,b=Date.now())=>{i=b,u=null,h&&(clearTimeout(h),h=null),e(...x)};return[(...x)=>{const b=Date.now(),S=b-i;S>=o?f(x,b):(u=x,h||(h=setTimeout(()=>{h=null,f(u)},o-S)))},()=>u&&f(u)]}const ad=(e,n,i=3)=>{let o=0;const u=LE(50,250);return RE(h=>{if(!h||typeof h.loaded!="number")return;const f=h.loaded,p=h.lengthComputable?h.total:void 0,y=p!=null?Math.min(f,p):f,x=Math.max(0,y-o),b=u(x);o=Math.max(o,y);const S={loaded:y,total:p,progress:p?y/p:void 0,bytes:x,rate:b||void 0,estimated:b&&p?(p-y)/b:void 0,event:h,lengthComputable:p!=null,[n?"download":"upload"]:!0};e(S)},i)},xv=(e,n)=>{const i=e!=null;return[o=>n[0]({lengthComputable:i,total:e,loaded:o}),n[1]]},bv=e=>(...n)=>W.asap(()=>e(...n)),OE=Ht.hasStandardBrowserEnv?((e,n)=>i=>(i=new URL(i,Ht.origin),e.protocol===i.protocol&&e.host===i.host&&(n||e.port===i.port)))(new URL(Ht.origin),Ht.navigator&&/(msie|trident)/i.test(Ht.navigator.userAgent)):()=>!0,AE=Ht.hasStandardBrowserEnv?{write(e,n,i,o,u,h,f){if(typeof document>"u")return;const p=[`${e}=${encodeURIComponent(n)}`];W.isNumber(i)&&p.push(`expires=${new Date(i).toUTCString()}`),W.isString(o)&&p.push(`path=${o}`),W.isString(u)&&p.push(`domain=${u}`),h===!0&&p.push("secure"),W.isString(f)&&p.push(`SameSite=${f}`),document.cookie=p.join("; ")},read(e){if(typeof document>"u")return null;const n=document.cookie.split(";");for(let i=0;i<n.length;i++){const o=n[i].replace(/^\s+/,""),u=o.indexOf("=");if(u!==-1&&o.slice(0,u)===e)try{return decodeURIComponent(o.slice(u+1))}catch{return o.slice(u+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function jE(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ME(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}const IE=/^https?:(?!\/\/)/i,zE=/[\t\n\r]/g;function DE(e){let n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;return e.slice(n)}function FE(e){return DE(e).replace(zE,"")}function Sv(e,n){if(typeof e=="string"&&IE.test(FE(e)))throw new de('Invalid URL: missing "//" after protocol',de.ERR_INVALID_URL,n)}function Y_(e,n,i,o){Sv(n,o);let u=!jE(n);return e&&(u||i===!1)?(Sv(e,o),ME(e,n)):n}const kv=e=>e instanceof tn?{...e}:e;function ao(e,n){e=e||{},n=n||{};const i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function o(b,S,P,O){return W.isPlainObject(b)&&W.isPlainObject(S)?W.merge.call({caseless:O},b,S):W.isPlainObject(S)?W.merge({},S):W.isArray(S)?S.slice():S}function u(b,S,P,O){if(W.isUndefined(S)){if(!W.isUndefined(b))return o(void 0,b,P,O)}else return o(b,S,P,O)}function h(b,S){if(!W.isUndefined(S))return o(void 0,S)}function f(b,S){if(W.isUndefined(S)){if(!W.isUndefined(b))return o(void 0,b)}else return o(void 0,S)}function p(b){const S=W.hasOwnProp(n,"transitional")?n.transitional:void 0;if(!W.isUndefined(S))if(W.isPlainObject(S)){if(W.hasOwnProp(S,b))return S[b]}else return;const P=W.hasOwnProp(e,"transitional")?e.transitional:void 0;if(W.isPlainObject(P)&&W.hasOwnProp(P,b))return P[b]}function y(b,S,P){if(W.hasOwnProp(n,P))return o(b,S);if(W.hasOwnProp(e,P))return o(void 0,b)}const x={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,allowedSocketPaths:f,responseEncoding:f,validateStatus:y,headers:(b,S,P)=>u(kv(b),kv(S),P,!0)};return W.forEach(Object.keys({...e,...n}),function(S){if(S==="__proto__"||S==="constructor"||S==="prototype")return;const P=W.hasOwnProp(x,S)?x[S]:u,O=W.hasOwnProp(e,S)?e[S]:void 0,F=W.hasOwnProp(n,S)?n[S]:void 0,T=P(O,F,S);W.isUndefined(T)&&P!==y||(i[S]=T)}),W.hasOwnProp(n,"validateStatus")&&W.isUndefined(n.validateStatus)&&p("validateStatusUndefinedResolves")===!1&&(W.hasOwnProp(e,"validateStatus")?i.validateStatus=o(void 0,e.validateStatus):delete i.validateStatus),i}const BE=["content-type","content-length"];function UE(e,n,i){if(i!=="content-only"){e.set(n);return}Object.entries(n||{}).forEach(([o,u])=>{BE.includes(o.toLowerCase())&&e.set(o,u)})}const HE=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(n,i)=>String.fromCharCode(parseInt(i,16)));function X_(e){const n=ao({},e),i=P=>W.hasOwnProp(n,P)?n[P]:void 0,o=i("data");let u=i("withXSRFToken");const h=i("xsrfHeaderName"),f=i("xsrfCookieName");let p=i("headers");const y=i("auth"),x=i("baseURL"),b=i("allowAbsoluteUrls"),S=i("url");if(n.headers=p=tn.from(p),n.url=V_(Y_(x,S,b,n),i("params"),i("paramsSerializer")),y){const P=W.getSafeProp(y,"username")||"",O=W.getSafeProp(y,"password")||"";try{p.set("Authorization","Basic "+btoa(P+":"+(O?HE(O):"")))}catch(F){throw de.from(F,de.ERR_BAD_OPTION_VALUE,e)}}if(W.isFormData(o)&&(Ht.hasStandardBrowserEnv||Ht.hasStandardBrowserWebWorkerEnv||W.isReactNative(o)?p.setContentType(void 0):W.isFunction(o.getHeaders)&&UE(p,o.getHeaders(),i("formDataHeaderPolicy"))),Ht.hasStandardBrowserEnv&&(W.isFunction(u)&&(u=u(n)),u===!0||u==null&&OE(n.url))){const O=h&&f&&AE.read(f);O&&p.set(h,O)}return n}const WE=typeof XMLHttpRequest<"u",$E=WE&&function(e){return new Promise(function(i,o){const u=X_(e);let h=u.data;const f=tn.from(u.headers).normalize();let{responseType:p,onUploadProgress:y,onDownloadProgress:x}=u,b,S,P,O,F;function T(){O&&O(),F&&F(),u.cancelToken&&u.cancelToken.unsubscribe(b),u.signal&&u.signal.removeEventListener("abort",b)}let N=new XMLHttpRequest;N.open(u.method.toUpperCase(),u.url,!0),N.timeout=u.timeout;function R(){if(!N)return;const M=tn.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),$={data:!p||p==="text"||p==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:M,config:e,request:N};Q_(function(G){i(G),T()},function(G){o(G),T()},$),N=null}"onloadend"in N?N.onloadend=R:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.startsWith("file:"))||setTimeout(R)},N.onabort=function(){N&&(o(new de("Request aborted",de.ECONNABORTED,e,N)),T(),N=null)},N.onerror=function(j){const $=j&&j.message?j.message:"Network Error",Q=new de($,de.ERR_NETWORK,e,N);Q.event=j||null,o(Q),T(),N=null},N.ontimeout=function(){let j=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const $=u.transitional||Lp;u.timeoutErrorMessage&&(j=u.timeoutErrorMessage),o(new de(j,$.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,N)),T(),N=null},h===void 0&&f.setContentType(null),"setRequestHeader"in N&&W.forEach(U_(f),function(j,$){N.setRequestHeader($,j)}),W.isUndefined(u.withCredentials)||(N.withCredentials=!!u.withCredentials),p&&p!=="json"&&(N.responseType=u.responseType),x&&([P,F]=ad(x,!0),N.addEventListener("progress",P)),y&&N.upload&&([S,O]=ad(y),N.upload.addEventListener("progress",S),N.upload.addEventListener("loadend",O)),(u.cancelToken||u.signal)&&(b=M=>{N&&(o(!M||M.type?new ou(null,e,N):M),N.abort(),T(),N=null)},u.cancelToken&&u.cancelToken.subscribe(b),u.signal&&(u.signal.aborted?b():u.signal.addEventListener("abort",b)));const B=NE(u.url);if(B&&!Ht.protocols.includes(B)){o(new de("Unsupported protocol "+B+":",de.ERR_BAD_REQUEST,e)),T();return}N.send(h||null)})},qE=(e,n)=>{if(e=e?e.filter(Boolean):[],!n&&!e.length)return;const i=new AbortController;let o=!1;const u=function(y){if(!o){o=!0,f();const x=y instanceof Error?y:this.reason;i.abort(x instanceof de?x:new ou(x instanceof Error?x.message:x))}};let h=n&&setTimeout(()=>{h=null,u(new de(`timeout of ${n}ms exceeded`,de.ETIMEDOUT))},n);const f=()=>{e&&(h&&clearTimeout(h),h=null,e.forEach(y=>{y.unsubscribe?y.unsubscribe(u):y.removeEventListener("abort",u)}),e=null)};e.forEach(y=>y.addEventListener("abort",u,{once:!0}));const{signal:p}=i;return p.unsubscribe=()=>W.asap(f),p},VE=function*(e,n){let i=e.byteLength;if(i<n){yield e;return}let o=0,u;for(;o<i;)u=o+n,yield e.slice(o,u),o=u},ZE=async function*(e,n){for await(const i of KE(e))yield*VE(i,n)},KE=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:i,value:o}=await n.read();if(i)break;yield o}}finally{await n.cancel()}},Ev=(e,n,i,o)=>{const u=ZE(e,n);let h=0,f,p=y=>{f||(f=!0,o&&o(y))};return new ReadableStream({async pull(y){try{const{done:x,value:b}=await u.next();if(x){p(),y.close();return}let S=b.byteLength;if(i){let P=h+=S;i(P)}y.enqueue(new Uint8Array(b))}catch(x){throw p(x),x}},cancel(y){return p(y),u.return()}},{highWaterMark:2})},ld=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,GE=(e,n,i)=>n+2<i&&ld(e.charCodeAt(n+1))&&ld(e.charCodeAt(n+2));function QE(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const i=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(i)){let f=o.length;const p=o.length;for(let O=0;O<p;
vendor: 4,303 bytes, line 269
269O++)if(o.charCodeAt(O)===37&&O+2<p){const F=o.charCodeAt(O+1),T=o.charCodeAt(O+2);ld(F)&&ld(T)&&(f-=2,O+=2)}let y=0,x=p-1;const b=O=>O>=2&&o.charCodeAt(O-2)===37&&o.charCodeAt(O-1)===51&&(o.charCodeAt(O)===68||o.charCodeAt(O)===100);x>=0&&(o.charCodeAt(x)===61?(y++,x--):b(x)&&(y++,x-=3)),y===1&&x>=0&&(o.charCodeAt(x)===61||b(x))&&y++;const P=Math.floor(f/4)*3-(y||0);return P>0?P:0}let h=0;for(let f=0,p=o.length;f<p;f++){const y=o.charCodeAt(f);if(y===37&&GE(o,f,p))h+=1,f+=2;else if(y<128)h+=1;else if(y<2048)h+=2;else if(y>=55296&&y<=56319&&f+1<p){const x=o.charCodeAt(f+1);x>=56320&&x<=57343?(h+=4,f++):h+=3}else h+=3}return h}const Op="1.18.1",Cv=64*1024,{isFunction:jc}=W,YE=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(n,i)=>String.fromCharCode(parseInt(i,16))),Pv=e=>{if(!W.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Tv=(e,...n)=>{try{return!!e(...n)}catch{return!1}},XE=e=>{const n=e.indexOf("://");let i=e;return n!==-1&&(i=i.slice(n+3)),i.includes("@")||i.includes(":")},JE=e=>{const n=W.global!==void 0&&W.global!==null?W.global:globalThis,{ReadableStream:i,TextEncoder:o}=n;e=W.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e);const{fetch:u,Request:h,Response:f}=e,p=u?jc(u):typeof fetch=="function",y=jc(h),x=jc(f);if(!p)return!1;const b=p&&jc(i),S=p&&(typeof o=="function"?(R=>B=>R.encode(B))(new o):async R=>new Uint8Array(await new h(R).arrayBuffer())),P=y&&b&&Tv(()=>{let R=!1;const B=new h(Ht.origin,{body:new i,method:"POST",get duplex(){return R=!0,"half"}}),M=B.headers.has("Content-Type");return B.body!=null&&B.body.cancel(),R&&!M}),O=x&&b&&Tv(()=>W.isReadableStream(new f("").body)),F={stream:O&&(R=>R.body)};p&&["text","arrayBuffer","blob","formData","stream"].forEach(R=>{!F[R]&&(F[R]=(B,M)=>{let j=B&&B[R];if(j)return j.call(B);throw new de(`Response type '${R}' is not supported`,de.ERR_NOT_SUPPORT,M)})});const T=async R=>{if(R==null)return 0;if(W.isBlob(R))return R.size;if(W.isSpecCompliantForm(R))return(await new h(Ht.origin,{method:"POST",body:R}).arrayBuffer()).byteLength;if(W.isArrayBufferView(R)||W.isArrayBuffer(R))return R.byteLength;if(W.isURLSearchParams(R)&&(R=R+""),W.isString(R))return(await S(R)).byteLength},N=async(R,B)=>{const M=W.toFiniteNumber(R.getContentLength());return M??T(B)};return async R=>{let{url:B,method:M,data:j,signal:$,cancelToken:Q,timeout:G,onDownloadProgress:q,onUploadProgress:ue,responseType:ae,headers:pe,withCredentials:Oe="same-origin",fetchOptions:Ye,maxContentLength:Fe,maxBodyLength:et}=X_(R);const ye=W.isNumber(Fe)&&Fe>-1,Be=W.isNumber(et)&&et>-1,te=ne=>W.hasOwnProp(R,ne)?R[ne]:void 0;let Se=u||fetch;ae=ae?(ae+"").toLowerCase():"text";let V=qE([$,Q&&Q.toAbortSignal()],G),z=null;const ee=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let _e,me=null;const ce=()=>new de("Request body larger than maxBodyLength limit",de.ERR_BAD_REQUEST,R,z);try{let ne;const Pe=te("auth");if(Pe){const Me=W.getSafeProp(Pe,"username")||"",bt=W.getSafeProp(Pe,"password")||"";ne={username:Me,password:bt}}if(XE(B)){const Me=new URL(B,Ht.origin);if(!ne&&(Me.username||Me.password)){const bt=Pv(Me.username),$t=Pv(Me.password);ne={username:bt,password:$t}}(Me.username||Me.password)&&(Me.username="",Me.password="",B=Me.href)}if(ne&&(pe.delete("authorization"),pe.set("Authorization","Basic "+btoa(YE((ne.username||"")+":"+(ne.password||""))))),ye&&typeof B=="string"&&B.startsWith("data:")&&QE(B)>Fe)throw new de("maxContentLength size of "+Fe+" exceeded",de.ERR_BAD_RESPONSE,R,z);if(Be&&M!=="get"&&M!=="head"){const Me=await T(j);if(typeof Me=="number"&&isFinite(Me)&&(_e=Me,Me>et))throw ce()}const ze=Be&&(W.isReadableStream(j)||W.isStream(j)),Ae=(Me,bt,$t)=>Ev(Me,Cv,kn=>{if(Be&&kn>et)throw me=ce();bt&&bt(kn)},$t);if(P&&M!=="get"&&M!=="head"&&(ue||ze)){if(_e=_e??await N(pe,j),_e!==0||ze){let Me=new h(B,{method:"POST",body:j,duplex:"half"}),bt;if(W.isFormData(j)&&(bt=Me.headers.get("content-type"))&&pe.setContentType(bt),Me.body){const[$t,kn]=ue&&xv(_e,ad(bv(ue)))||[];j=Ae(Me.body,$t,kn)}}}else if(ze&&!y&&b&&M!=="get"&&M!=="head")j=Ae(j);else if(ze&&y&&!P&&M!=="get"&&M!=="head")throw new de("Stream request bodies are not supported by the current fetch implementation",de.ERR_NOT_SUPPORT,R,z);W.isString(Oe)||(Oe=Oe?"include":"omit");const yt=y&&"credentials"in h.prototype;
vendor: 5,345 bytes, lines 269-271
269if(W.isFormData(j)){const Me=pe.getContentType();Me&&/^multipart\/form-data/i.test(Me)&&!/boundary=/i.test(Me)&&pe.delete("content-type")}pe.set("User-Agent","axios/"+Op,!1);const Wt={...Ye,signal:V,method:M.toUpperCase(),headers:U_(pe.normalize()),body:j,duplex:"half",credentials:yt?Oe:void 0};z=y&&new h(B,Wt);let ft=await(y?Se(z,Ye):Se(B,Wt));const nn=tn.from(ft.headers);if(ye){const Me=W.toFiniteNumber(nn.getContentLength());if(Me!=null&&Me>Fe)throw new de("maxContentLength size of "+Fe+" exceeded",de.ERR_BAD_RESPONSE,R,z)}const dn=O&&(ae==="stream"||ae==="response");if(O&&ft.body&&(q||ye||dn&&ee)){const Me={};["status","statusText","headers"].forEach(zn=>{Me[zn]=ft[zn]});const bt=W.toFiniteNumber(nn.getContentLength()),[$t,kn]=q&&xv(bt,ad(bv(q),!0))||[];let Jn=0;const In=zn=>{if(ye&&(Jn=zn,Jn>Fe))throw new de("maxContentLength size of "+Fe+" exceeded",de.ERR_BAD_RESPONSE,R,z);$t&&$t(zn)};ft=new f(Ev(ft.body,Cv,In,()=>{kn&&kn(),ee&&ee()}),Me)}ae=ae||"text";let rn=await F[W.findKey(F,ae)||"text"](ft,R);if(ye&&!O&&!dn){let Me;if(rn!=null&&(typeof rn.byteLength=="number"?Me=rn.byteLength:typeof rn.size=="number"?Me=rn.size:typeof rn=="string"&&(Me=typeof o=="function"?new o().encode(rn).byteLength:rn.length)),typeof Me=="number"&&Me>Fe)throw new de("maxContentLength size of "+Fe+" exceeded",de.ERR_BAD_RESPONSE,R,z)}return!dn&&ee&&ee(),await new Promise((Me,bt)=>{Q_(Me,bt,{data:rn,headers:tn.from(ft.headers),status:ft.status,statusText:ft.statusText,config:R,request:z})})}catch(ne){if(ee&&ee(),V&&V.aborted&&V.reason instanceof de){const Pe=V.reason;throw Pe.config=R,z&&(Pe.request=z),ne!==Pe&&Object.defineProperty(Pe,"cause",{__proto__:null,value:ne,writable:!0,enumerable:!1,configurable:!0}),Pe}if(me)throw z&&!me.request&&(me.request=z),me;if(ne instanceof de)throw z&&!ne.request&&(ne.request=z),ne;if(ne&&ne.name==="TypeError"&&/Load failed|fetch/i.test(ne.message)){const Pe=new de("Network Error",de.ERR_NETWORK,R,z,ne&&ne.response);throw Object.defineProperty(Pe,"cause",{__proto__:null,value:ne.cause||ne,writable:!0,enumerable:!1,configurable:!0}),Pe}throw de.from(ne,ne&&ne.code,R,z,ne&&ne.response)}}},eC=new Map,J_=e=>{let n=e&&e.env||{};const{fetch:i,Request:o,Response:u}=n,h=[o,u,i];let f=h.length,p=f,y,x,b=eC;for(;p--;)y=h[p],x=b.get(y),x===void 0&&b.set(y,x=p?new Map:JE(n)),b=x;return x};J_();const Ap={http:fE,xhr:$E,fetch:{get:J_}};W.forEach(Ap,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:n})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:n})}});const Nv=e=>`- ${e}`,tC=e=>W.isFunction(e)||e===null||e===!1;function nC(e,n){e=W.isArray(e)?e:[e];const{length:i}=e;let o,u;const h={};for(let f=0;f<i;f++){o=e[f];let p;if(u=o,!tC(o)&&(u=Ap[(p=String(o)).toLowerCase()],u===void 0))throw new de(`Unknown adapter '${p}'`);if(u&&(W.isFunction(u)||(u=u.get(n))))break;h[p||"#"+f]=u}if(!u){const f=Object.entries(h).map(([y,x])=>`adapter ${y} `+(x===!1?"is not supported by the environment":"is not available in the build"));let p=i?f.length>1?`since :
270`+f.map(Nv).join(`
271`):" "+Nv(f[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+p,de.ERR_NOT_SUPPORT)}return u}const e0={getAdapter:nC,adapters:Ap};function ff(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ou(null,e)}function Lv(e){return ff(e),e.headers=tn.from(e.headers),e.data=hf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e0.getAdapter(e.adapter||su.adapter,e)(e).then(function(o){ff(e),e.response=o;try{o.data=hf.call(e,e.transformResponse,o)}finally{delete e.response}return o.headers=tn.from(o.headers),o},function(o){if(!G_(o)&&(ff(e),o&&o.response)){e.response=o.response;try{o.response.data=hf.call(e,e.transformResponse,o.response)}finally{delete e.response}o.response.headers=tn.from(o.response.headers)}return Promise.reject(o)})}const yd={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{yd[e]=function(o){return typeof o===e||"a"+(n<1?"n ":" ")+e}});const Rv={};yd.transitional=function(n,i,o){function u(h,f){return"[Axios v"+Op+"] Transitional option '"+h+"'"+f+(o?". "+o:"")}return(h,f,p)=>{if(n===!1)throw new de(u(f," has been removed"+(i?" in "+i:"")),de.ERR_DEPRECATED);return i&&!Rv[f]&&(Rv[f]=!0,console.warn(u(f," has been deprecated since v"+i+" and will be removed in the near future"))),n?n(h,f,p):!0}};yd.spelling=function(n){return(i,o)=>(console.warn(`${o} is likely a misspelling of ${n}`),!0)};function rC(e,n,i){if(typeof e!="object"||e===null)throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let u=o.length;for(;u-- >0;){const h=o[u],f=Object.prototype.hasOwnProperty.call(n,h)?n[h]:void 0;if(f){const p=e[h],y=p===void 0||f(p,h,e);if(y!==!0)throw new de("option "+h+" must be "+y,de.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new de("Unknown option "+h,de.ERR_BAD_OPTION)}}const Gc={assertOptions:rC,validators:yd},Jt=Gc.validators;let ro=class{constructor(n){this.defaults=n||{},this.interceptors={request:new _v,response:new _v}}async request(n,i){try{return await this._request(n,i)}catch(o){if(o instanceof Error){let u={};Error.captureStackTrace?Error.captureStackTrace(u):u=new Error;const h=(()=>
vendor: 3,918 bytes, lines 271-275
271{if(!u.stack)return"";const f=u.stack.indexOf(`
272`);return f===-1?"":u.stack.slice(f+1)})();try{if(!o.stack)o.stack=h;else if(h){const f=h.indexOf(`
273`),p=f===-1?-1:h.indexOf(`
274`,f+1),y=p===-1?"":h.slice(p+1);String(o.stack).endsWith(y)||(o.stack+=`
275`+h)}}catch{}}throw o}}_request(n,i){typeof n=="string"?(i=i||{},i.url=n):i=n||{},i=ao(this.defaults,i);const{transitional:o,paramsSerializer:u,headers:h}=i;o!==void 0&&Gc.assertOptions(o,{silentJSONParsing:Jt.transitional(Jt.boolean),forcedJSONParsing:Jt.transitional(Jt.boolean),clarifyTimeoutError:Jt.transitional(Jt.boolean),legacyInterceptorReqResOrdering:Jt.transitional(Jt.boolean),advertiseZstdAcceptEncoding:Jt.transitional(Jt.boolean),validateStatusUndefinedResolves:Jt.transitional(Jt.boolean)},!1),u!=null&&(W.isFunction(u)?i.paramsSerializer={serialize:u}:Gc.assertOptions(u,{encode:Jt.function,serialize:Jt.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Gc.assertOptions(i,{baseUrl:Jt.spelling("baseURL"),withXsrfToken:Jt.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let f=h&&W.merge(h.common,h[i.method]);h&&W.forEach(["delete","get","head","post","put","patch","query","common"],F=>{delete h[F]}),i.headers=tn.concat(f,h);const p=[];let y=!0;this.interceptors.request.forEach(function(T){if(typeof T.runWhen=="function"&&T.runWhen(i)===!1)return;y=y&&T.synchronous;const N=i.transitional||Lp;N&&N.legacyInterceptorReqResOrdering?p.unshift(T.fulfilled,T.rejected):p.push(T.fulfilled,T.rejected)});const x=[];this.interceptors.response.forEach(function(T){x.push(T.fulfilled,T.rejected)});let b,S=0,P;if(!y){const F=[Lv.bind(this),void 0];for(F.unshift(...p),F.push(...x),P=F.length,b=Promise.resolve(i);S<P;)b=b.then(F[S++],F[S++]);return b}P=p.length;let O=i;for(;S<P;){const F=p[S++],T=p[S++];try{O=F(O)}catch(N){T.call(this,N);break}}try{b=Lv.call(this,O)}catch(F){return Promise.reject(F)}for(S=0,P=x.length;S<P;)b=b.then(x[S++],x[S++]);return b}getUri(n){n=ao(this.defaults,n);const i=Y_(n.baseURL,n.url,n.allowAbsoluteUrls,n);return V_(i,n.params,n.paramsSerializer)}};W.forEach(["delete","get","head","options"],function(n){ro.prototype[n]=function(i,o){return this.request(ao(o||{},{method:n,url:i,data:o&&W.hasOwnProp(o,"data")?o.data:void 0}))}});W.forEach(["post","put","patch","query"],function(n){function i(o){return function(h,f,p){return this.request(ao(p||{},{method:n,headers:o?{"Content-Type":"multipart/form-data"}:{},url:h,data:f}))}}ro.prototype[n]=i(),n!=="query"&&(ro.prototype[n+"Form"]=i(!0))});let iC=class t0{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(h){i=h});const o=this;this.promise.then(u=>{if(!o._listeners)return;let h=o._listeners.length;for(;h-- >0;)o._listeners[h](u);o._listeners=null}),this.promise.then=u=>{let h;const f=new Promise(p=>{o.subscribe(p),h=p}).then(u);return f.cancel=function(){o.unsubscribe(h)},f},n(function(h,f,p){o.reason||(o.reason=new ou(h,f,p),i(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const n=new AbortController,i=o=>{n.abort(o)};return this.subscribe(i),n.signal.unsubscribe=()=>this.unsubscribe(i),n.signal}static source(){let n;return{token:new t0(function(u){n=u}),cancel:n}}};function sC(e){return function(i){return e.apply(null,i)}}function oC(e){return W.isObject(e)&&e.isAxiosError===!0}const Yf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
275alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Yf).forEach(([e,n])=>{Yf[n]=e});function n0(e){const n=new ro(e),i=O_(ro.prototype.request,n);return W.extend(i,ro.prototype,n,{allOwnKeys:!0}),W.extend(i,n,null,{allOwnKeys:!0}),i.create=function(u){return n0(ao(e,u))},i}const kt=n0(su);kt.Axios=ro;kt.CanceledError=ou;kt.CancelToken=iC;kt.isCancel=G_;kt.VERSION=Op;kt.toFormData=vd;kt.AxiosError=de;kt.Cancel=kt.CanceledError;kt.all=function(n){return Promise.all(n)};kt.spread=sC;kt.isAxiosError=oC;kt.mergeConfig=ao;kt.AxiosHeaders=tn;kt.formToJSON=e=>K_(W.isHTMLForm(e)?new FormData(e):e);kt.getAdapter=e0.getAdapter;kt.HttpStatusCode=Yf;kt.default=kt;const{Axios:RL,AxiosError:OL,CanceledError:AL,isCancel:jL,CancelToken:ML,VERSION:IL,all:zL,Cancel:DL,isAxiosError:FL,spread:BL,toFormData:UL,AxiosHeaders:HL,HttpStatusCode:WL,formToJSON:$L,getAdapter:qL,mergeConfig:VL,create:ZL}=kt,r0=typeof window>"u",Ov=!r0&&window.self!==window.top,aC=!r0&&typeof document>"u",i0=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Bt=[];for(let e=0;e<256;++e)Bt.push((e+256).toString(16).slice(1));function lC(e,n=0){return(Bt[e[n+0]]+Bt[e[n+1]]+Bt[e[n+2]]+Bt[e[n+3]]+"-"+Bt[e[n+4]]+Bt[e[n+5]]+"-"+Bt[e[n+6]]+Bt[e[n+7]]+"-"+Bt[e[n+8]]+Bt[e[n+9]]+"-"+Bt[e[n+10]]+Bt[e[n+11]]+Bt[e[n+12]]+Bt[e[n+13]]+Bt[e[n+14]]+Bt[e[n+15]]).toLowerCase()}let pf;const uC=new Uint8Array(16);function cC(){if(!pf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pf=crypto.getRandomValues.bind(crypto)}return pf(uC)}const dC=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Av={randomUUID:dC};function hC(e,n,i){var u;e=e||{};const o=e.random??((u=e.rng)==null?void 0:u.call(e))??cC();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,lC(o)}function fC(e,n,i){return Av.randomUUID&&!e?Av.randomUUID():hC(e)}const Ol=typeof window<"u"?window:{base44SharedInstances:{}};function pC(e,n){return Ol.base44SharedInstances||(Ol.base44SharedInstances={}),Ol.base44SharedInstances[e]||(Ol.base44SharedInstances[e]={instance:n()}),Ol.base44SharedInstances[e].instance}const mC="__user_heartbeat_event__",gC="__initialization_event__",vC="__session_duration_event__",jv="analytics-enable",Mv="base44_analytics_session_id",yC={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},_C="analytics",nt=pC(_C,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...yC,...PC()}})),wC=({axiosClient:e,serverUrl:n,appId:i,userAuthModule:o,enabled:u})=>{var h;const{maxQueueSize:f,throttleTime:p,batchSize:y}=nt.config;if(!u||!(!((h=nt.config)===null||h===void 0)&&h.enabled)||aC)return{track:()=>{},cleanup:()=>{}};let x;const b=`${n}/api/apps/${i}/analytics/track/batch`,S=async j=>{await e.request({method:"POST",url:`/apps/${i}/analytics/track/batch`,data:{events:j}})},P=j=>{try{const $=JSON.stringify({events:j}),Q=new Blob([$],{type:"application/json"});return typeof navigator>"u"||$.length>6e4||!navigator.sendBeacon(b,Q)}catch{return!1}},O=async(j,$={})=>
275{if(j.length===0)return;const Q=await CC(o),G=j.map(EC(Q));try{(!$.isBeacon||!P(G))&&await S(G)}catch{}},F=()=>{zv(O,{throttleTime:p,batchSize:y})},T=j=>{if(nt.requestsQueue.length>=f)return;const $=kC();nt.requestsQueue.push({...j,...$}),F()},N=()=>{zv(O,{throttleTime:p,batchSize:y}),x=Dv(T),bC()},R=()=>{Iv(),x==null||x(),SC(T);const j=nt.requestsQueue.splice(0);O(j,{isBeacon:!0})},B=()=>{typeof window>"u"||(document.visibilityState==="hidden"?R():document.visibilityState==="visible"&&N())},M=()=>{Iv(),x==null||x(),typeof window<"u"&&window.removeEventListener("visibilitychange",B)};return F(),x=Dv(T),xC(T),typeof window<"u"&&window.addEventListener("visibilitychange",B),{track:T,cleanup:M}};function Iv(){nt.isProcessing=!1}async function zv(e,n){if(nt.isProcessing)return;nt.isProcessing=!0;const{throttleTime:i=1e3,batchSize:o=30}=n??{};for(;nt.isProcessing&&nt.requestsQueue.length>0;){const u=nt.requestsQueue.splice(0,o);u.length&&await e(u),await new Promise(h=>setTimeout(h,i))}nt.isProcessing=!1}function Dv(e){var n;if(typeof window>"u"||nt.isHeartBeatProcessing||((n=nt.config.heartBeatInterval)!==null&&n!==void 0?n:0)<10)return()=>{};nt.isHeartBeatProcessing=!0;const i=setInterval(()=>{e({eventName:mC})},nt.config.heartBeatInterval);return()=>{clearInterval(i),nt.isHeartBeatProcessing=!1}}function xC(e){typeof window>"u"||nt.wasInitializationTracked||(nt.wasInitializationTracked=!0,e({eventName:gC,properties:{referrer:document==null?void 0:document.referrer}}))}function bC(){typeof window>"u"||nt.sessionStartTime!==null||(nt.sessionStartTime=new Date().toISOString())}function SC(e){if(typeof window>"u"||nt.sessionStartTime===null)return;const n=new Date().getTime()-new Date(nt.sessionStartTime).getTime();nt.sessionStartTime=null,e({eventName:vC,properties:{sessionDuration:n}})}function kC(){var e,n;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(n=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&n!==void 0?n:null}}function EC(e){return n=>({event_name:n.eventName,properties:n.properties,timestamp:n.timestamp,page_url:n.pageUrl,...e})}let Ml=null;function Fv(){nt.sessionContext=null,Ml=null}async function CC(e){if(!nt.sessionContext){if(!e.hasToken())return{user_id:null,session_id:ud()};if(!Ml){const o=ud();Ml=e.me().then(u=>({user_id:u.id,session_id:o})).catch(()=>({user_id:null,session_id:o}))}const n=Ml,i=await n;return Ml===n&&(nt.sessionContext=i),i}return nt.sessionContext}function PC(){if(typeof window>"u"||!window.location)return;const n=new URLSearchParams(window.location.search).get(jv);if(n==null||!n.length)return;const i=new URLSearchParams(window.location.search);i.delete(jv);const o=window.location.pathname+(i.toString()?"?"+i.toString():"");return window.history.replaceState({},"",o),{enabled:n==="true"}}function Bv(){var e;return(e=nt.fallbackSessionId)!==null&&e!==void 0?e:nt.fallbackSessionId=i0()}function ud(){if(typeof window>"u")return Bv();try{const e=localStorage.getItem(Mv);if(!e){const n=i0();return localStorage.setItem(Mv,n),n}return e}catch{return Bv()}}class TC extends Error{constructor(n,i,o,u,h){super(n),this.name="Base44Error",this.status=i,this.code=o,this.data=u,this.originalError=h}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function ua({baseURL:e,headers:n={},token:i,interceptResponses:o=!0,onError:u}){const h=kt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...n}});return i&&(h.defaults.headers.common.Authorization=`Bearer ${i}`),h.interceptors.request.use(f=>{typeof window<"u"&&(window.location&&f.headers.set("X-Origin-URL",window.location.href),f.headers.get("Authorization")||f.headers.set("X-Base44-Anonymous-Id",ud()));const p=fC();if(f.requestId=p,Ov)try{window.parent.postMessage({type:"api-request-start",requestId:p,data:{url:e+f.url,method:f.method,body:f.data instanceof FormData?"[FormData object]":f.data}},"*")}catch{}return f}),o&&h.interceptors.response.use(f=>{var p;const y=(p=f.config)===null||p===void 0?void 0:p.requestId;try{Ov&&y&&window.parent.postMessage({type:"api-request-end",requestId:y,data:{statusCode:f.
275status,response:f.data}},"*")}catch{}return f.data},f=>{var p,y,x,b,S,P,O,F,T,N,R,B,M,j,$;const Q=((y=(p=f.response)===null||p===void 0?void 0:p.data)===null||y===void 0?void 0:y.message)||((b=(x=f.response)===null||x===void 0?void 0:x.data)===null||b===void 0?void 0:b.detail)||f.message,G=new TC(Q,(S=f.response)===null||S===void 0?void 0:S.status,(B=(F=(O=(P=f.response)===null||P===void 0?void 0:P.data)===null||O===void 0?void 0:O.code)!==null&&F!==void 0?F:(R=(N=(T=f.response)===null||T===void 0?void 0:T.headers)===null||N===void 0?void 0:N.get)===null||R===void 0?void 0:R.call(N,"x-base44-connector-error"))!==null&&B!==void 0?B:(j=(M=f.response)===null||M===void 0?void 0:M.headers)===null||j===void 0?void 0:j["x-base44-connector-error"],($=f.response)===null||$===void 0?void 0:$.data,f);return u==null||u(G),Promise.reject(G)}),h}function Uv(e){const{axios:n,appId:i,getSocket:o}=e;return new Proxy({},{get(u,h){if(!(typeof h!="string"||h==="then"||h.startsWith("_")))return LC(n,i,h,o)}})}function NC(e){var n;try{const i=JSON.parse(e);return{type:i.type,data:i.data,id:i.id||((n=i.data)===null||n===void 0?void 0:n.id),timestamp:i.timestamp||new Date().toISOString()}}catch(i){return console.warn("[Base44 SDK] Failed to parse realtime message:",i),null}}function LC(e,n,i,o){const u=`/apps/${n}/entities/${i}`;return{async list(h,f,p,y){const x={};return h&&(x.sort=h),f&&(x.limit=f),p&&(x.skip=p),y&&(x.fields=Array.isArray(y)?y.join(","):y),e.get(u,{params:x})},async filter(h,f,p,y,x){const b={q:JSON.stringify(h)};return f&&(b.sort=f),p&&(b.limit=p),y&&(b.skip=y),x&&(b.fields=Array.isArray(x)?x.join(","):x),e.get(u,{params:b})},async get(h){return e.get(`${u}/${h}`)},async create(h){return e.post(u,h)},async update(h,f){return e.put(`${u}/${h}`,f)},async delete(h){return e.delete(`${u}/${h}`)},async deleteMany(h){return e.delete(u,{data:h})},async bulkCreate(h){return e.post(`${u}/bulk`,h)},async updateMany(h,f){return e.patch(`${u}/update-many`,{query:h,data:f})},async bulkUpdate(h){return e.put(`${u}/bulk`,h)},async importEntities(h){const f=new FormData;return f.append("file",h,h.name),e.post(`${u}/import`,f,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(h){const f=`entities:${n}:${i}`;return o().subscribeToRoom(f,{update_model:x=>{var b;const S=NC(x.data);if(S){S.type!=="delete"&&(!((b=S.data)===null||b===void 0)&&b._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${i}#${S.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${i}.get("${S.id}")\` to fetch the full record.`);try{h(S)}catch(P){console.error("[Base44 SDK] Subscription callback error:",P)}}}})}}}function RC(e,n){return{async call(i,o,u){if(!(i!=null&&i.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(o!=null&&o.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:h,queryParams:f,...p}=u??{},y={...p,...h&&{path_params:h},...f&&{query_params:f}};return await e.post(`/apps/${n}/integrations/custom/${i}/${o}`,y)}}}function Hv(e,n){const i=RC(e,n);return new Proxy({},{get(o,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return u==="custom"?i:new Proxy({},{get(h,f){if(!(typeof f!="string"||f==="then"||f.startsWith("_")))return async p=>{if(typeof p=="string")throw new Error(`Integration ${f} must receive an object with named parameters, received: ${p}`);let y,x;return p instanceof FormData||p&&Object.values(p).some(b=>b instanceof File)?(y=new FormData,Object.keys(p).forEach(b=>{p[b]instanceof File?y.append(b,p[b],p[b].name):typeof p[b]=="object"&&p[b]!==null?y.append(b,JSON.stringify(p[b])):y.append(b,p[b])}),x="multipart/form-data"):(y=p,x="application/json"),u==="Core"?e.post(`/apps/${n}/integration-endpoints/Core/${f}`,y||p,{headers:{"Content-Type":x}}):e.post(`/apps/${n}/integration-endpoints/installable/${u}/integration-endpoints/${f}`,y||p,{headers:{"Content-Type":x}})}}})}})}function OC(){return typeof window>"u"?!1:window!==window.parent}function AC(e,n,i){const h=Math.round(window.screenX+(window.outerWidth-500)/2),f=Math.round(window.screenY+(window.outerHeight-600)/2),p=window.open(e,"base44_auth",`width=500,height=600,left=${h},top=${f},resizable=yes,scrollbars=yes`);if(!p)return;const y=()=>{window.removeEventListener("message",x),clearInterval(b),p.closed||p.close()},x=S=>{var P;if(S.origin!==i||S.source!==p||!(!((P=S.data)===null||P===void 0)&&P.access_token))return;y();
275const O=new URL(n),{access_token:F,is_new_user:T}=S.data;O.searchParams.set("access_token",F),T!=null&&O.searchParams.set("is_new_user",String(T)),window.location.href=O.toString()},b=setInterval(()=>{p.closed&&y()},500);window.addEventListener("message",x)}function jC(e,n,i,o){let u=null;const h=()=>{u=null};let f=!!o.token;return{hasToken(){return f},async me(){const p=u??e.get(`/apps/${i}/entities/User/me`).finally(()=>{u===p&&(u=null)});return u=p,p},async updateMe(p){return e.put(`/apps/${i}/entities/User/me`,p)},redirectToLogin(p){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const y=p?new URL(p,window.location.origin).toString():window.location.href,x=`${o.appBaseUrl}/login?from_url=${encodeURIComponent(y)}`;window.location.href=x},loginWithProvider(p,y="/"){const x=new URL(y,window.location.origin).toString(),b=`app_id=${i}&from_url=${encodeURIComponent(x)}`;let S;p==="sso"?S=`/apps/${i}/auth/sso/login`:S=`/apps/auth${p==="google"?"":`/${p}`}/login`;const P=`${o.appBaseUrl}/api${S}?${b}`;if(OC()){const O=`${P}&popup_origin=${encodeURIComponent(window.location.origin)}`;return AC(O,x,window.location.origin)}window.location.href=P},logout(p){if(delete e.defaults.headers.common.Authorization,h(),Fv(),f=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(b){console.error("Failed to remove token from localStorage:",b)}const y=p||window.location.href,x=`${o.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(y)}`;window.location.href=x}},setToken(p,y=!0){if(p&&(h(),Fv(),f=!0,e.defaults.headers.common.Authorization=`Bearer ${p}`,n.defaults.headers.common.Authorization=`Bearer ${p}`,y&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",p),window.localStorage.setItem("token",p)}catch(x){console.error("Failed to save token to localStorage:",x)}},async loginViaEmailPassword(p,y,x){var b;try{const S=await e.post(`/apps/${i}/auth/login`,{email:p,password:y,...x&&{turnstile_token:x}}),{access_token:P,user:O}=S;return P&&this.setToken(P),{access_token:P,user:O}}catch(S){throw((b=S.response)===null||b===void 0?void 0:b.status)===401&&await this.logout(),S}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(p,y){return e.post(`/apps/${i}/users/invite-user`,{user_email:p,role:y})},register(p){return e.post(`/apps/${i}/auth/register`,p)},verifyOtp({email:p,otpCode:y}){return e.post(`/apps/${i}/auth/verify-otp`,{email:p,otp_code:y})},resendOtp(p){return e.post(`/apps/${i}/auth/resend-otp`,{email:p})},resetPasswordRequest(p){return e.post(`/apps/${i}/auth/reset-password-request`,{email:p})},resetPassword({resetToken:p,newPassword:y}){return e.post(`/apps/${i}/auth/reset-password`,{reset_token:p,new_password:y})},changePassword({userId:p,currentPassword:y,newPassword:x}){return e.post(`/apps/${i}/auth/change-password`,{user_id:p,current_password:y,new_password:x})}}}function MC(e,n){return{async getAccessToken(i){const o=`/apps/${n}/auth/sso/accesstoken/${i}`;return e.get(o)},async getIdToken(i){const o=`/apps/${n}/auth/sso/idtoken/${i}`;return e.get(o)}}}const IC=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);function zC(e,n){return{async getAccessToken(i){if(!i||typeof i!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${n}/external-auth/tokens/${encodeURIComponent(i)}`)).access_token},async getConnection(i){var o;if(!i||typeof i!="string")throw new Error("Integration type is required and must be a string");const h=await e.get(`/apps/${n}/external-auth/tokens/${encodeURIComponent(i)}`);return{accessToken:h.access_token,connectionConfig:(o=h.connection_config)!==null&&o!==void 0?o:null}},async getWorkspaceConnection(i){var o;if(!i||typeof i!="string")throw new Error("Connector ID is required and must be a string");const h=await e.get(`/apps/${n}/external-auth/tokens/connectors/${encodeURIComponent(i)}`);return{accessToken:h.access_token,connectionConfig:(o=h.connection_config)!==null&&o!==void 0?o:null}}
275,async getCurrentAppUserAccessToken(i){if(!i||typeof i!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${n}/app-user-auth/connectors/${encodeURIComponent(i)}/token`)).access_token},async getCurrentAppUserConnection(i){var o;if(!i||typeof i!="string")throw new Error("Connector ID is required and must be a string");const h=await e.get(`/apps/${n}/app-user-auth/connectors/${encodeURIComponent(i)}/token`);return{accessToken:h.access_token,connectionConfig:(o=h.connection_config)!==null&&o!==void 0?o:null}},async callApi(i,o){return s0(i,"Integration type"),DC(e,`/apps/${n}/connectors/${encodeURIComponent(i)}/call`,o)}}}function s0(e,n){if(!e||typeof e!="string")throw new Error(`${n} is required and must be a string`)}async function DC(e,n,i){var o,u,h,f,p,y,x,b,S;if(!i||typeof i!="object")throw new Error("Request is required and must be an object");s0(i.path,"Request path");const P=(o=i.method)!==null&&o!==void 0?o:"GET";if(!IC.has(P))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const F=await e.post(n,{method:P,...i.host==null?{}:{host:i.host},path:i.path,query:(u=i.query)!==null&&u!==void 0?u:{},headers:(h=i.headers)!==null&&h!==void 0?h:{},body:(f=i.body)!==null&&f!==void 0?f:null});return{success:F.success,phase:F.phase,status:(p=F.status_code)!==null&&p!==void 0?p:null,data:F.data,dataBase64:(y=F.data_base64)!==null&&y!==void 0?y:null,contentType:(x=F.content_type)!==null&&x!==void 0?x:null,headers:(b=F.headers)!==null&&b!==void 0?b:{},creditsCharged:(S=F.credits_charged)!==null&&S!==void 0?S:0}}function FC(e,n){return{async connectAppUser(i){if(!i||typeof i!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${n}/app-user-auth/connectors/${encodeURIComponent(i)}/initiate`)).redirect_url},async disconnectAppUser(i){if(!i||typeof i!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${n}/app-user-auth/connectors/${encodeURIComponent(i)}`)}}}function is(e={}){const{storageKey:n="base44_access_token",paramName:i="access_token",saveToStorage:o=!0,removeFromUrl:u=!0}=e;let h=null;if(typeof window<"u"&&window.location)try{const f=new URLSearchParams(window.location.search);if(h=f.get(i),h){if(o&&BC(h,{storageKey:n}),u){f.delete(i);const p=`${window.location.pathname}${f.toString()?`?${f.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,p)}return h}}catch(f){console.error("Error retrieving token from URL:",f)}if(typeof window<"u"&&window.localStorage)try{return h=window.localStorage.getItem(n),h}catch(f){console.error("Error retrieving token from local storage:",f)}return null}function BC(e,n){const{storageKey:i="base44_access_token"}=n;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(i,e),window.localStorage.setItem("token",e),!0}catch(o){return console.error("Error saving token to local storage:",o),!1}}function Wv(e,n,i){const o=(h,f)=>h?`${String(h).replace(/\/$/,"")}${f}`:f,u=h=>{const f=new Headers;if(i!=null&&i.getAuthHeaders){const p=i.getAuthHeaders();Object.entries(p).forEach(([y,x])=>{x!=null&&f.set(y,String(x))})}return h&&new Headers(h).forEach((p,y)=>{f.set(y,p)}),f};return{async invoke(h,f){if(typeof f=="string")throw new Error(`Function ${h} must receive an object with named parameters, received: ${f}`);let p,y;return f instanceof FormData||f&&Object.values(f).some(x=>x instanceof File)?(p=new FormData,Object.keys(f).forEach(x=>{f[x]instanceof File?p.append(x,f[x],f[x].name):typeof f[x]=="object"&&f[x]!==null?p.append(x,JSON.stringify(f[x])):p.append(x,f[x])}),y="multipart/form-data"):(p=f,y="application/json"),e.post(`/apps/${n}/functions/${h}`,p||f,{headers:{"Content-Type":y}})},async fetch(h,f={}){const y=`/functions${h.startsWith("/")?h:`/${h}`}`,x=u(f.headers),b={...f,headers:x};return await fetch(o(i==null?void 0:i.baseURL,y),b)}}}function $v({axios:e,getSocket:n,appId:i,serverUrl:o,token:u}){const h=`/apps/${i}/agents`,f={},p=()=>e.get(`${h}/conversations`),y=T=>e.get(`${h}/conversations/${T}`);return{getConversations:p,getConversation:y,listConversations:T=>e.get(`${h}/conversations`,{params:T}),createConversation:T=>e.post(`${h}
275/conversations`,T),addMessage:async(T,N)=>e.post(`${h}/conversations/v2/${T.id}/messages`,N),subscribeToConversation:(T,N)=>{const R=`/agent-conversations/${T}`,B=n(),M=y(T).then(j=>(f[T]=j,j));return B.subscribeToRoom(R,{connect:()=>{},update_model:async({data:j})=>{const $=JSON.parse(j);if($._message){await M;const Q=$._message,G=f[T];if(G){const q=G.messages||[],ue=q.findIndex(pe=>pe.id===Q.id),ae=ue!==-1?q.map((pe,Oe)=>Oe===ue?Q:pe):[...q,Q];f[T]={...G,messages:ae},N==null||N(f[T])}}}})},getWhatsAppConnectURL:T=>{const N=`${o}/api/apps/${i}/agents/${encodeURIComponent(T)}/whatsapp`,R=u??is();return R?`${N}?token=${R}`:N},getTelegramConnectURL:T=>{const N=`${o}/api/apps/${i}/agents/${encodeURIComponent(T)}/telegram`,R=u??is();return R?`${N}?token=${R}`:N}}}function qv({serverUrl:e,token:n,appId:i}){return{connection:()=>{var u;return{baseURL:`${e}/api/apps/${i}/ai/openai/v1`,token:(u=n??is())!==null&&u!==void 0?u:""}}}}function Vv(e,n){const i=`/app-logs/${n}`;return{async logUserInApp(o){await e.post(`${i}/log-user-in-app/${o}`)},async fetchLogs(o={}){return await e.get(i,{params:o})},async getStats(o={}){return await e.get(`${i}/stats`,{params:o})}}}function UC(e,n){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${n}`)}}}function HC(e,n){return{async inviteUser(i,o){if(o!=="user"&&o!=="admin")throw new Error(`Invalid role: "${o}". Role must be either "user" or "admin".`);return await e.post(`/apps/${n}/runtime/users/invite-user`,{user_email:i,role:o})}}}const jr=Object.create(null);jr.open="0";jr.close="1";jr.ping="2";jr.pong="3";jr.message="4";jr.upgrade="5";jr.noop="6";const Qc=Object.create(null);Object.keys(jr).forEach(e=>{Qc[jr[e]]=e});const Xf={type:"error",data:"parser error"},o0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",a0=typeof ArrayBuffer=="function",l0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,jp=({type:e,data:n},i,o)=>o0&&n instanceof Blob?i?o(n):Zv(n,o):a0&&(n instanceof ArrayBuffer||l0(n))?i?o(n):Zv(new Blob([n]),o):o(jr[e]+(n||"")),Zv=(e,n)=>{const i=new FileReader;return i.onload=function(){const o=i.result.split(",")[1];n("b"+(o||""))},i.readAsDataURL(e)};function Kv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let mf;function WC(e,n){if(o0&&e.data instanceof Blob)return e.data.arrayBuffer().then(Kv).then(n);if(a0&&(e.data instanceof ArrayBuffer||l0(e.data)))return n(Kv(e.data));jp(e,!1,i=>{mf||(mf=new TextEncoder),n(mf.encode(i))})}const Gv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Il=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Gv.length;e++)Il[Gv.charCodeAt(e)]=e;const $C=e=>{let n=e.length*.75,i=e.length,o,u=0,h,f,p,y;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const x=new ArrayBuffer(n),b=new Uint8Array(x);for(o=0;o<i;o+=4)h=Il[e.charCodeAt(o)],f=Il[e.charCodeAt(o+1)],p=Il[e.charCodeAt(o+2)],y=Il[e.charCodeAt(o+3)],b[u++]=h<<2|f>>4,b[u++]=(f&15)<<4|p>>2,b[u++]=(p&3)<<6|y&63;return x},qC=typeof ArrayBuffer=="function",Mp=(e,n)=>{if(typeof e!="string")return{type:"message",data:u0(e,n)};const i=e.charAt(0);return i==="b"?{type:"message",data:VC(e.substring(1),n)}:Qc[i]?e.length>1?{type:Qc[i],data:e.substring(1)}:{type:Qc[i]}:Xf},VC=(e,n)=>{if(qC){const i=$C(e);return u0(i,n)}else return{base64:!0,data:e}},u0=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},c0="�",ZC=(e,n)=>{const i=e.length,o=new Array(i);let u=0;e.forEach((h,f)=>{jp(h,!1,p=>{o[f]=p,++u===i&&n(o.join(c0))})})},KC=(e,n)=>{const i=e.split(c0),o=[];for(let u=0;u<i.length;u++){const h=Mp(i[u],n);if(o.push(h),h.type==="error")break}return o};function GC(){return new TransformStream({transform(e,n){WC(e,i=>{const o=i.length;let u;if(o<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,o);else if(o<65536){u=new Uint8Array(3);const h=new DataView(u.buffer);h.setUint8(0,126),h.setUint16(1,o)}else{u=new Uint8Array(9);const h=new DataView(u.buffer);h.setUint8(0,127),h.setBigUint64(1,BigInt(o))}e.data&&typeof e.data!="string"&&(u[0]|=128),n.enqueue(u),n.enqueue(i)})}})}let gf;function Mc(e){return e.reduce((n,i)=>n+i.length,0)}function Ic(e,n){if(e[0].length===n)return e.shift();const i=new Uint8Array(n);let o=0;for(let u=0;u<n;u++)i[u]=e[0][o++],o===e[0].length&&(e.shift(),o=0);return e.length&&o<e[0].length&&(e[0]=e[0].slice(o)),i}function QC(e,n){gf||(gf=new TextDecoder);const i=[];let o=0,u=-1,h=!1;return new TransformStream({transform(f,p){for(i.push(f);;){if(o===0){if(Mc(i)<1)break;const y=Ic(i,1);h=(y[0]&128)===128,u=y[0]&127,u<126?o=3:u===126?o=1:o=2}else if(o===1){if(Mc(i)<2)break;const y=Ic(i,2);u=new DataView(y.buffer,y.byteOffset,y.length).getUint16(0),o=3}else if(o===2){if(Mc(i)<8)break;const y=Ic(i,8),x=new DataView(y.buffer,y.byteOffset,y.length),b=x.getUint32(0);if(b>Math.pow(2,21)-1){p.enqueue(Xf);break}u=b*Math.pow(2,32)+x.getUint32(4),o=3}else{if(Mc(i)<u)break;const y=Ic(i,u);p.enqueue(Mp(h?y:gf.decode(y),n)),o=0}if(u===0||u>e){p.enqueue(Xf);break}}}})}const d0=4;function Pt(e){if(e)return YC(e)}function YC(e){for(var n in Pt.prototype)e[n]=Pt.prototype[n];return e}Pt.prototype.on=Pt.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this};Pt.prototype.once=function(e,n){function i(){this.off(e,i),n.apply(this,arguments)}return i.fn=n,this.on(e,i),this};Pt.prototype.off=Pt.prototype.removeListener=Pt.prototype.removeAllListeners=Pt.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+e];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var o,u=0;u<i.length;u++)if(o=i[u],o===n||o.fn===n){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+e],this};Pt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),i=this._callbacks["$"+e],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(i){i=i.slice(0);for(var o=0,u=i.length;o<u;++o)i[o].apply(this,n)}return this};Pt.prototype.emitReserved=Pt.prototype.emit;Pt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Pt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const _d=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,i)=>i(n,0),Xn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),XC="arraybuffer";function h0(e,...n){return n.reduce((i,o)=>(e.hasOwnProperty(o)&&(i[o]=e[o]),i),{})}const JC=Xn.setTimeout,eP=Xn.clearTimeout;function wd(e,n){n.useNativeTimers?(e.setTimeoutFn=JC.bind(Xn),e.clearTimeoutFn=eP.bind(Xn)):(e.setTimeoutFn=Xn.setTimeout.bind(Xn),e.clearTimeoutFn=Xn.clearTimeout.bind(Xn))}const tP=1.33;function nP(e){return typeof e=="string"?rP(e):Math.ceil((e.byteLength||e.size)*tP)}function rP(e){let n=0,i=0;for(let o=0,u=e.length;o<u;o++)n=e.charCodeAt(o),n<128?i+=1:n<2048?i+=2:n<55296||n>=57344?i+=3:(o++,i+=4);return i}function f0(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function iP(e){let n="";for(let i in e)e.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n}function sP(e){let n={},i=e.split("&");for(let o=0,u=i.length;o<u;o++){let h=i[o].split("=");n[decodeURIComponent(h[0])]=decodeURIComponent(h[1])}return n}
vendor: 6,199 bytes, line 275
275class oP extends Error{constructor(n,i,o){super(n),this.description=i,this.context=o,this.type="TransportError"}}class Ip extends Pt{constructor(n){super(),this.writable=!1,wd(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,i,o){return super.emitReserved("error",new oP(n,i,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const i=Mp(n,this.socket.binaryType);this.onPacket(i)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,i={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const i=iP(n);return i.length?"?"+i:""}}class aP extends Ip{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const i=()=>{this.readyState="paused",n()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||i()})),this.writable||(o++,this.once("drain",function(){--o||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const i=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};KC(n,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,ZC(n,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=f0()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(n,i)}}let p0=!1;try{p0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const lP=p0;function uP(){}class cP extends aP{constructor(n){if(super(n),typeof location<"u"){const i=location.protocol==="https:";let o=location.port;o||(o=i?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||o!==n.port}}doWrite(n,i){const o=this.request({method:"POST",data:n});o.on("success",i),o.on("error",(u,h)=>{this.onError("xhr post error",u,h)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(i,o)=>{this.onError("xhr poll error",i,o)}),this.pollXhr=n}}class Ar extends Pt{constructor(n,i,o){super(),this.createRequest=n,wd(this,o),this._opts=o,this._method=o.method||"GET",this._uri=i,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var n;const i=h0(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const o=this._xhr=this.createRequest(i);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&o.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var u;o.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Ar.requestsCount++,Ar.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=uP,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ar.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ar.requestsCount=0;Ar.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Qv);else if(typeof addEventListener=="function"){const e="onpagehide"in Xn?"pagehide":"unload";addEventListener(e,Qv,!1)}}function Qv(){for(let e in Ar.requests)Ar.requests.hasOwnProperty(e)&&Ar.requests[e].abort()}const dP=(function(){const e=m0({xdomain:!1});return e&&e.responseType!==null})();class hP extends cP{constructor(n){super(n);const i=n&&n.forceBase64;this.supportsBinary=dP&&!i}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new Ar(m0,this.uri(),n)}}function m0(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||lP))return new XMLHttpRequest}catch{}if(!n)try{return new Xn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const g0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class fP extends Ip{get name(){return"websocket"}doOpen(){const n=this.uri(),i=this.opts.protocols,o=g0?{}:h0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,i,o)}catch(u){return this.emitReserved("error",u)}
vendor: 17,830 bytes, line 275
275this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const o=n[i],u=i===n.length-1;jp(o,this.supportsBinary,h=>{try{this.doWrite(o,h)}catch{}u&&_d(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=f0()),this.supportsBinary||(i.b64=1),this.createUri(n,i)}}const vf=Xn.WebSocket||Xn.MozWebSocket;class pP extends fP{createSocket(n,i,o){return g0?new vf(n,i,o):i?new vf(n,i):new vf(n)}doWrite(n,i){this.ws.send(i)}}class mP extends Ip{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const i=QC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=n.readable.pipeThrough(i).getReader(),u=GC();u.readable.pipeTo(n.writable),this._writer=u.writable.getWriter();const h=()=>{o.read().then(({done:p,value:y})=>{p||(this.onPacket(y),h())}).catch(p=>{})};h();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const o=n[i],u=i===n.length-1;this._writer.write(o).then(()=>{u&&_d(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const gP={websocket:pP,webtransport:mP,polling:hP},vP=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yP=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Jf(e){if(e.length>8e3)throw"URI too long";const n=e,i=e.indexOf("["),o=e.indexOf("]");i!=-1&&o!=-1&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));let u=vP.exec(e||""),h={},f=14;for(;f--;)h[yP[f]]=u[f]||"";return i!=-1&&o!=-1&&(h.source=n,h.host=h.host.substring(1,h.host.length-1).replace(/;/g,":"),h.authority=h.authority.replace("[","").replace("]","").replace(/;/g,":"),h.ipv6uri=!0),h.pathNames=_P(h,h.path),h.queryKey=wP(h,h.query),h}function _P(e,n){const i=/\/{2,9}/g,o=n.replace(i,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&o.splice(0,1),n.slice(-1)=="/"&&o.splice(o.length-1,1),o}function wP(e,n){const i={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,u,h){u&&(i[u]=h)}),i}const ep=typeof addEventListener=="function"&&typeof removeEventListener=="function",Yc=[];ep&&addEventListener("offline",()=>{Yc.forEach(e=>e())},!1);class as extends Pt{constructor(n,i){if(super(),this.binaryType=XC,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(i=n,n=null),n){const o=Jf(n);i.hostname=o.host,i.secure=o.protocol==="https"||o.protocol==="wss",i.port=o.port,o.query&&(i.query=o.query)}else i.host&&(i.hostname=Jf(i.host).host);wd(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(o=>{const u=o.prototype.name;this.transports.push(u),this._transportsByName[u]=o}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=sP(this.opts.query)),ep&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Yc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const i=Object.assign({},this.opts.query);i.EIO=d0,i.transport=n,this.id&&(i.sid=this.id);const o=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&as.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(n);i.open(),this.setTransport(i)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",as.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=n.data,this._onError(i);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let o=0;o<this.writeBuffer.length;o++){const u=this.writeBuffer[o].data;if(u&&(i+=nP(u)),o>0&&i>this._maxPayload)return this.writeBuffer.slice(0,o);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,_d(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,i,o){return this._sendPacket("message",n,i,o),this}send(n,i,o){return this._sendPacket("message",n,i,o),this}_sendPacket(n,i,o,u){if(typeof i=="function"&&(u=i,i=void 0),typeof o=="function"&&(u=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;const h={type:n,data:i,options:o};this.emitReserved("packetCreate",h),this.writeBuffer.push(h),u&&this.once("flush",u),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),n()},o=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?o():n()}):this.upgrading?o():n()),this}_onError(n){if(as.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ep&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const o=Yc.indexOf(this._offlineEventListener);o!==-1&&Yc.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,i),this.writeBuffer=[],this._prevBufferLen=0}}}as.protocol=d0;class xP extends as{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let i=this.createTransport(n),o=!1;as.priorWebsocketSuccess=!1;const u=()=>{o||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!o)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;as.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const P=new Error("probe error");P.transport=i.name,this.emitReserved("upgradeError",P)}}))};function h(){o||(o=!0,b(),i.close(),i=null)}const f=S=>{const P=new Error("probe error: "+S);P.transport=i.name,h(),this.emitReserved("upgradeError",P)};function p(){f("transport closed")}function y(){f("socket closed")}function x(S){i&&S.name!==i.name&&h()}const b=()=>{i.removeListener("open",u),i.removeListener("error",f),i.removeListener("close",p),this.off("close",y),this.off("upgrading",x)};i.once("open",u),i.once("error",f),i.once("close",p),this.once("close",y),this.once("upgrading",x),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{o||i.open()},200):i.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const i=[];for(let o=0;o<n.length;o++)~this.transports.indexOf(n[o])&&i.push(n[o]);return i}}let bP=class extends xP{constructor(n,i={}){const o=typeof n=="object"?n:i;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(u=>gP[u]).filter(u=>!!u)),super(n,o)}};function SP(e,n="",i){let o=e;i=i||typeof location<"u"&&location,e==null&&(e=i.protocol+"//"+i.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=i.protocol+e:e=i.host+e),/^(https?|wss?):\/\//.test(e)||(typeof i<"u"?e=i.protocol+"//"+e:e="https://"+e),o=Jf(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const h=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+h+":"+o.port+n,o.href=o.protocol+"://"+h+(i&&i.port===o.port?"":":"+o.port),o}const kP=typeof ArrayBuffer=="function",EP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,v0=Object.prototype.toString,CP=typeof Blob=="function"||typeof Blob<"u"&&v0.call(Blob)==="[object BlobConstructor]",PP=typeof File=="function"||typeof File<"u"&&v0.call(File)==="[object FileConstructor]";function zp(e){return kP&&(e instanceof ArrayBuffer||EP(e))||CP&&e instanceof Blob||PP&&e instanceof File}function Xc(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,o=e.length;i<o;i++)if(Xc(e[i]))return!0;return!1}if(zp(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Xc(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Xc(e[i]))return!0;return!1}function TP(e){const n=[],i=e.data,o=e;return o.data=tp(i,n),o.attachments=n.length,{packet:o,buffers:n}}function tp(e,n){if(!e)return e;if(zp(e)){const i={_placeholder:!0,num:n.length};return n.push(e),i}else if(Array.isArray(e)){const i=new Array(e.length);for(let o=0;o<e.length;o++)i[o]=tp(e[o],n);return i}else if(typeof e=="object"&&!(e instanceof Date)){const i={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=tp(e[o],n));return i}return e}function NP(e,n){return e.data=np(e.data,n),delete e.attachments,e}function np(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let i=0;i<e.length;i++)e[i]=np(e[i],n);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=np(e[i],n));return e}const LP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Qe;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Qe||(Qe={}));class RP{constructor(n){this.replacer=n}encode(n){return(n.type===Qe.EVENT||n.type===Qe.ACK)&&Xc(n)?this.encodeAsBinary({type:n.type===Qe.EVENT?Qe.BINARY_EVENT:Qe.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let i=""+n.type;return(n.type===Qe.BINARY_EVENT||n.type===Qe.BINARY_ACK)&&(i+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(i+=n.nsp+","),n.id!=null&&(i+=n.id),n.data!=null&&(i+=JSON.stringify(n.data,this.replacer)),i}encodeAsBinary(n){const i=TP(n),o=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(o),u}}class Dp extends Pt{constructor(n){super(),this.reviver=n}add(n){let i;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(n);const o=i.type===Qe.BINARY_EVENT;o||i.type===Qe.BINARY_ACK?(i.type=o?Qe.EVENT:Qe.ACK,this.reconstructor=new OP(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(zp(n)||n.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(n),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let i=0;const o={type:Number(n.charAt(0))};if(Qe[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===Qe.BINARY_EVENT||o.type===Qe.BINARY_ACK){const h=i+1;for(;n.charAt(++i)!=="-"&&i!=n.length;);const f=n.substring(h,i);if(f!=Number(f)||n.charAt(i)!=="-")throw new Error("Illegal attachments");o.attachments=Number(f)}if(n.charAt(i+1)==="/"){const h=i+1;for(;++i&&!(n.charAt(i)===","||i===n.length););o.nsp=n.substring(h,i)}else o.nsp="/";const u=n.charAt(i+1);if(u!==""&&Number(u)==u){const h=i+1;for(;++i;){const f=n.charAt(i);if(f==null||Number(f)!=f){--i;break}if(i===n.length)break}o.id=Number(n.substring(h,i+1))}if(n.charAt(++i)){const h=this.tryParse(n.substr(i));if(Dp.isPayloadValid(o.type,h))o.data=h;else throw new Error("invalid payload")}return o}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,i){switch(n){case Qe.CONNECT:return Yv(i);case Qe.DISCONNECT:return i===void 0;case Qe.CONNECT_ERROR:return typeof i=="string"||Yv(i);case Qe.EVENT:case Qe.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&LP.indexOf(i[0])===-1);case Qe.ACK:case Qe.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class OP{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const i=NP(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Yv(e){return Object.prototype.toString.call(e)==="[object Object]"}const AP=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Dp,Encoder:RP,get PacketType(){return Qe}},Symbol.toStringTag,{value:"Module"}));function fr(e,n,i){return e.on(n,i),function(){e.off(n,i)}}const jP=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class y0 extends Pt{constructor(n,i,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=i,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[fr(n,"open",this.onopen.bind(this)),fr(n,"packet",this.onpacket.b
vendor: 2,660 bytes, line 275
275ind(this)),fr(n,"error",this.onerror.bind(this)),fr(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...i){var o,u,h;if(jP.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(i.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const f={type:Qe.EVENT,data:i};if(f.options={},f.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const b=this.ids++,S=i.pop();this._registerAckCallback(b,S),f.id=b}const p=(u=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||u===void 0?void 0:u.writable,y=this.connected&&!(!((h=this.io.engine)===null||h===void 0)&&h._hasPingExpired());return this.flags.volatile&&!p||(y?(this.notifyOutgoingListeners(f),this.packet(f)):this.sendBuffer.push(f)),this.flags={},this}_registerAckCallback(n,i){var o;const u=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(u===void 0){this.acks[n]=i;return}const h=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===n&&this.sendBuffer.splice(p,1);i.call(this,new Error("operation has timed out"))},u),f=(...p)=>{this.io.clearTimeoutFn(h),i.apply(this,p)};f.withError=!0,this.acks[n]=f}emitWithAck(n,...i){return new Promise((o,u)=>{const h=(f,p)=>f?u(f):o(p);h.withError=!0,i.push(h),this.emit(n,...i)})}_addToQueue(n){let i;typeof n[n.length-1]=="function"&&(i=n.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((u,...h)=>(this._queue[0],u!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...h)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!n||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:Qe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,i),this._clearAcks()}
vendor: 6,669 bytes, line 275
275_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(o=>String(o.id)===n)){const o=this.acks[n];delete this.acks[n],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case Qe.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Qe.EVENT:case Qe.BINARY_EVENT:this.onevent(n);break;case Qe.ACK:case Qe.BINARY_ACK:this.onack(n);break;case Qe.DISCONNECT:this.ondisconnect();break;case Qe.CONNECT_ERROR:this.destroy();const o=new Error(n.data.message);o.data=n.data.data,this.emitReserved("connect_error",o);break}}onevent(n){const i=n.data||[];n.id!=null&&i.push(this.ack(n.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const o of i)o.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const i=this;let o=!1;return function(...u){o||(o=!0,i.packet({type:Qe.ACK,id:n,data:u}))}}onack(n){const i=this.acks[n.id];typeof i=="function"&&(delete this.acks[n.id],i.withError&&n.data.unshift(null),i.apply(this,n.data))}onconnect(n,i){this.id=n,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Qe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const i=this._anyListeners;for(let o=0;o<i.length;o++)if(n===i[o])return i.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const i=this._anyOutgoingListeners;for(let o=0;o<i.length;o++)if(n===i[o])return i.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const o of i)o.apply(this,n.data)}}}function Ra(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ra.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),i=Math.floor(n*this.jitter*e);e=(Math.floor(n*10)&1)==0?e-i:e+i}return Math.min(e,this.max)|0};Ra.prototype.reset=function(){this.attempts=0};Ra.prototype.setMin=function(e){this.ms=e};Ra.prototype.setMax=function(e){this.max=e};Ra.prototype.setJitter=function(e){this.jitter=e};class rp extends Pt{constructor(n,i){var o;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(i=n,n=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,wd(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((o=i.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new Ra({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=n;const u=i.parser||AP;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var i;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(i=this.backoff)===null||i===void 0||i.setMin(n),this)}randomizationFactor(n){var i;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(i=this.backoff)===null||i===void 0||i.setJitter(n),this)}reconnectionDelayMax(n){var i;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(i=this.backoff)===null||i===void 0||i.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new bP(this.uri,this.opts);const i=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;const u=fr(i,"open",function(){o.onopen(),n&&n()}),h=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),n?n(p):this.maybeReconnectOnOpen()},f=fr(i,"error",h);if(this._timeout!==!1){const p=this._timeout,y=this.setTimeoutFn(()=>{u(),h(new Error("timeout")),i.close()},p);this.opts.autoUnref&&y.unref(),this.subs.push(()=>{this.clearTimeoutFn(y)})}return this.subs.push(u),this.subs.push(f),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(fr(n,"ping",this.onping.bind(this)),fr(n,"data",this.ondata.bind(this)),fr(n,"error",this.onerror.bind(this)),fr(n,"close",this.onclose.bind(this)),fr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(i){this.onclose("parse error",i)}}ondecoded(n){_d(()=>
275{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,i){let o=this.nsps[n];return o?this._autoConnect&&!o.active&&o.connect():(o=new y0(this,n,i),this.nsps[n]=o),o}_destroy(n){const i=Object.keys(this.nsps);for(const o of i)if(this.nsps[o].active)return;this._close()}_packet(n){const i=this.encoder.encode(n);for(let o=0;o<i.length;o++)this.engine.write(i[o],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,i){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const o=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(u=>{u?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",u)):n.onreconnect()}))},i);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const Al={};function Jc(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const i=SP(e,n.path||"/socket.io"),o=i.source,u=i.id,h=i.path,f=Al[u]&&h in Al[u].nsps,p=n.forceNew||n["force new connection"]||n.multiplex===!1||f;let y;return p?y=new rp(o,n):(Al[u]||(Al[u]=new rp(o,n)),y=Al[u]),i.query&&!n.query&&(n.query=i.queryKey),y.socket(i.path,n)}Object.assign(Jc,{Manager:rp,Socket:y0,io:Jc,connect:Jc});const MP=250;function Xv(e,n){var i;const o=(i=e.token)!==null&&i!==void 0?i:is(),u={app_id:e.appId,token:o};o||(u.anonymous_id=ud());const h=Jc(e.serverUrl,{path:e.mountPath,transports:e.transports,query:u});return h.on("connect",async()=>{var f;return console.log("connect",h.id),(f=n.connect)===null||f===void 0?void 0:f.call(n)}),h.on("update_model",async f=>{var p;return(p=n.update_model)===null||p===void 0?void 0:p.call(n,f)}),h.on("error",async f=>{var p;return(p=n.error)===null||p===void 0?void 0:p.call(n,f)}),h.on("connect_error",async f=>{var p;return console.error("connect_error",f),(p=n.error)===null||p===void 0?void 0:p.call(n,f)}),h}function IP({config:e}){let n={...e};const i={},o={},u={connect:async()=>{const R=[];
275Object.keys(i).forEach(B=>{const M=P(B);M.length!==0&&(x(B),M.forEach(({connect:j})=>{const $=async()=>j==null?void 0:j();R.push($())}))}),await Promise.all(R)},update_model:async R=>{const M=P(R.room).map(j=>{var $;return($=j.update_model)===null||$===void 0?void 0:$.call(j,R)});await Promise.all(M)},error:async R=>{console.error("error",R);const B=Object.values(i).flat().map(M=>{var j;return(j=M.error)===null||j===void 0?void 0:j.call(M,R)});await Promise.all(B)}};let h=Xv(e,u);function f(){p()}function p(){F(),h&&h.disconnect()}function y(R){f(),n={...n,...R},h=Xv(n,u)}function x(R){h.emit("join",R)}function b(R){h.emit("leave",R)}async function S(R,B){var M;const j=JSON.stringify(B);return(M=u.update_model)===null||M===void 0?void 0:M.call(u,{room:R,data:j})}function P(R){var B;return(B=i[R])!==null&&B!==void 0?B:[]}function O(R){const B=o[R];B&&(clearTimeout(B),delete o[R])}function F(){Object.keys(o).forEach(R=>{var B,M;clearTimeout(o[R]),delete o[R],((M=(B=i[R])===null||B===void 0?void 0:B.length)!==null&&M!==void 0?M:0)===0&&delete i[R]})}function T(R){O(R),o[R]=setTimeout(()=>{var B,M;delete o[R],!(((M=(B=i[R])===null||B===void 0?void 0:B.length)!==null&&M!==void 0?M:0)>0)&&(b(R),delete i[R])},MP)}return{socket:h,subscribeToRoom:(R,B)=>{i[R]?O(R):(x(R),i[R]=[]),i[R].push(B);let M=!1;return()=>{var j,$;M||(M=!0,i[R]=($=(j=i[R])===null||j===void 0?void 0:j.filter(Q=>Q!==B))!==null&&$!==void 0?$:[],i[R].length===0&&T(R))}},updateConfig:y,updateModel:S,disconnect:p}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
276  PartySocket requires a global 'EventTarget' class to be available!
277  You can polyfill this global by adding this to your code before any partysocket imports: 
278  
279  \`\`\`
280  import 'partysocket/event-target-polyfill';
281  \`\`\`
282  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
283`);var _0=class extends Event{constructor(n,i){super("error",i);ut(this,"message");ut(this,"error");this.message=n.message,this.error=n}},w0=class extends Event{constructor(n=1e3,i="",o){super("close",o);ut(this,"code");ut(this,"reason");ut(this,"wasClean",!0);this.code=n,this.reason=i}},yf={Event,ErrorEvent:_0,CloseEvent:w0};function zP(e,n){if(!e)throw new Error(n)}function DP(e){return new e.constructor(e.type,e)}function FP(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new w0(e.code||1999,e.reason||"unknown reason",e):"error"in e?new _0(e.error,e):new Event(e.type,e)}var Ay,BP=typeof process<"u"&&typeof((Ay=process.versions)==null?void 0:Ay.node)<"u"&&typeof document>"u",zc=BP?FP:DP,Hs={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Jv=!1,UP=class Ws extends EventTarget{constructor(i,o,u={}){super();ut(this,"_ws");ut(this,"_retryCount",-1);ut(this,"_uptimeTimeout");ut(this,"_connectTimeout");ut(this,"_shouldReconnect",!0);ut(this,"_connectLock",!1);ut(this,"_binaryType","blob");ut(this,"_closeCalled",!1);ut(this,"_messageQueue",[]);ut(this,"_url");ut(this,"_protocols");ut(this,"_options");ut(this,"onclose",null);ut(this,"onerror",null);ut(this,"onmessage",null);ut(this,"onopen",null);ut(this,"_handleOpen",i=>{this._debug("open event");const{minUptime:o=Hs.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),o),zP(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(u=>{var h;return(h=this._ws)==null?void 0:h.send(u)}),this._messageQueue=[],this.onopen&&this.onopen(i),this.dispatchEvent(zc(i))});ut(this,"_handleMessage",i=>{this._debug("message event"),this.onmessage&&this.onmessage(i),this.dispatchEvent(zc(i))});ut(this,"_handleError",i=>{this._debug("error event",i.message),this._disconnect(void 0,i.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(i),this._debug("exec error listeners"),this.dispatchEvent(zc(i)),this._connect()});ut(this,"_handleClose",i=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(i),this.dispatchEvent(zc(i))});this._url=i,this._protocols=o,this._options=u,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return Ws.CONNECTING}get OPEN(){return Ws.OPEN}get CLOSING(){return Ws.CLOSING}get CLOSED(){return Ws.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(i){this._binaryType=i,this._ws&&(this._ws.binaryType=i)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((o,u)=>(typeof u=="string"?o+=u.length:u instanceof Blob?o+=u.size:o+=u.byteLength,o),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?Ws.CLOSED:Ws.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(i=1e3,o){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(i,o)}reconnect(i,o){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(i,o),this._connect())}send(i){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",
283i),this._ws.send(i);else{const{maxEnqueuedMessages:o=Hs.maxEnqueuedMessages}=this._options;this._messageQueue.length<o&&(this._debug("enqueue",i),this._messageQueue.push(i))}}_debug(...i){this._options.debug&&console.log.apply(console,["RWS>",...i])}_getNextDelay(){const{reconnectionDelayGrowFactor:i=Hs.reconnectionDelayGrowFactor,minReconnectionDelay:o=Hs.minReconnectionDelay,maxReconnectionDelay:u=Hs.maxReconnectionDelay}=this._options;let h=0;return this._retryCount>0&&(h=o*Math.pow(i,this._retryCount-1),h>u&&(h=u)),this._debug("next delay",h),h}_wait(){return new Promise(i=>{setTimeout(i,this._getNextDelay())})}_getNextProtocols(i){if(!i)return Promise.resolve(null);if(typeof i=="string"||Array.isArray(i))return Promise.resolve(i);if(typeof i=="function"){const o=i();if(!o)return Promise.resolve(null);if(typeof o=="string"||Array.isArray(o))return Promise.resolve(o);if(o.then)return o}throw Error("Invalid protocols")}_getNextUrl(i){if(typeof i=="string")return Promise.resolve(i);if(typeof i=="function"){const o=i();if(typeof o=="string")return Promise.resolve(o);if(o.then)return o}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
283const{maxRetries:i=Hs.maxRetries,connectionTimeout:o=Hs.connectionTimeout}=this._options;if(this._retryCount>=i){this._debug("max retries reached",this._retryCount,">=",i);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([u,h])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!Jv&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
284
285For example, if you're using node.js, run \`npm install ws\`, and then in your code:
286
287import PartySocket from 'partysocket';
288import WS from 'ws';
289
290const partysocket = new PartySocket({
291  host: "127.0.0.1:1999",
292  room: "test-room",
293  WebSocket: WS
294});
295
296`),Jv=!0);const f=this._options.WebSocket||WebSocket;this._debug("connect",{url:u,protocols:h}),this._ws=h?new f(u,h):new f(u),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),o)}).catch(u=>{this._connectLock=!1,this._handleError(new yf.ErrorEvent(Error(u.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new yf.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(i=1e3,o){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(i,o),this._handleClose(new yf.CloseEvent(i,o,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
297 * Reconnecting WebSocket
298 * by Pedro Ladaria <[email protected]>
299 * https://github.com/pladaria/reconnecting-websocket
300 * License MIT
301 */const HP=1e3,WP=3e3,$P=new Set([405,409,422,503]),qP=new Set([400,403,404]);function VP(e){const n=e&&typeof e=="object"?e.status:void 0;return typeof n=="number"?n:void 0}function ZP(e){return e instanceof Error?e:new Error(String(e))}class KP{constructor(n,i,o,u,h){var f;this.onClose=h,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(f=u==null?void 0:u.id)!==null&&f!==void 0?f:crypto.randomUUID();let p=o.transport==="proxy";const y=async()=>{var P;if(this.closed)throw new Error("Actor connection is closed");if(!p)try{const{websocket_url:O,token:F}=await o.mintConnectionToken(n,i,this.id),T=O.includes("?")?"&":"?";return`${O}${T}token=${encodeURIComponent(F)}`}catch(O){const F=VP(O);if(!(o.transport!=="direct"&&F!==void 0&&$P.has(F))){F!==void 0&&qP.has(F)&&this.close();try{(P=o.onMintError)===null||P===void 0||P.call(o,ZP(O))}catch{}throw O}p=!0}return QP(o.host,n,i,this.id,o.appId,o.getAuthToken(),o.functionsVersion)},x=new UP(y);this.ws=x;let b=Date.now();const S=()=>{b=Date.now()};x.addEventListener("open",S),x.addEventListener("message",P=>{S();let O;try{O=JSON.parse(P.data)}catch{return}if((O&&typeof O=="object"?O.type:void 0)!=="__pong")for(const T of this.listeners)T(O)}),this.heartbeat=setInterval(()=>{if(Date.now()-b>WP){S(),x.readyState===x.OPEN&&x.reconnect();return}try{x.send(JSON.stringify({type:"__ping"}))}catch{}},HP)}subscribe(n){return this.listeners.add(n),{unsubscribe:()=>{this.listeners.delete(n)}}}send(n){this.closed||this.ws.send(JSON.stringify(n))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function GP(e,n,i,o){let u=null;return{connect(h){if(u)return u;const f=new KP(e,n,i,h,()=>{o.delete(f),u===f&&(u=null)});return u=f,o.add(f),f}}}function QP(e,n,i,o,u,h,f){let p=e.replace(/^(http|https|ws|wss):\/\//,"");p.endsWith("/")&&(p=p.slice(0,-1));const y=p.startsWith("localhost:")||p.startsWith("127.0.0.1:")||p.startsWith("192.168.")||p.startsWith("10.")||p.startsWith("172.")&&p.split(".")[1]>="16"&&p.split(".")[1]<="31"||p.startsWith("[::ffff:7f00:1]:"),x=new URLSearchParams([["_pk",o],["app_id",u],["handler",n]]);return h&&x.append("token",h),f&&x.append("fv",f),`${y?"ws":"wss"}://${p}/parties/${n}/${i}?${x}`}function YP(e,n){return e&&!e.startsWith("/")?e:n??e}function XP(e){const n=new Set;return{module:new Proxy({},{get(o,u){if(!(typeof u!="string"||u==="then"))return h=>GP(u,h,e,n)}}),closeAll:()=>{for(const o of[...n])o.close()}}}function JP(e){var n,i,o,u;const{serverUrl:h="https://base44.app",appId:f,analytics:p,token:y,serviceToken:x,requiresAuth:b=!1,appBaseUrl:S,options:P,functionsVersion:O,headers:F}=e,T=typeof S=="string"?S:"",N={serverUrl:h,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:f,token:y};let R=null;const B=()=>(R||(R=IP({config:N})),R),M={...F,"X-App-Id":String(f)},j=O?{...M,"Base44-Functions-Version":O}:M,$=ua({baseURL:`${h}/api`,headers:M,token:y,onError:P==null?void 0:P.onError}),Q=ua({baseURL:`${h}/api`,headers:j,token:y,interceptResponses:!1,onError:P==null?void 0:P.onError}),G={...M,...y?{"on-behalf-of":`Bearer ${y}`}:{}},q=ua({baseURL:`${h}/api`,headers:G,token:x,onError:P==null?void 0:P.onError}),ue=ua({baseURL:`${h}/api`,headers:j,token:x,interceptResponses:!1}),ae=ua({baseURL:`${h}/api`,headers:M}),pe=jC($,Q,f,{appBaseUrl:T,token:y});if(typeof window<"u"){const ye=y||is();ye&&pe.setToken(ye)}const Oe=XP({appId:f,host:YP(h,typeof window<"u"?(n=window.location)===null||n===void 0?void 0:n.origin:void 0),functionsVersion:O,getAuthToken:()=>y||is(),mintConnectionToken:async(ye,Be,te)=>{const Se=y||is();return await ae.post(`/apps/${f}/actors/${encodeURIComponent(ye)}/connection-token`,{room:Be,connection_id:te},{headers:{...Se?{Authorization:`Bearer ${Se}`}:{},...O?{"Base44-Functions-Version":O}:{}}})},transport:P==null?void 0:P.actorsTransport,onMintError:P==null?void 0:P.onError}),Ye={entities:Uv({axios:$,appId:f,getSocket:B}),integrations:Hv($,f),connectors:FC($,f),auth:pe,functions:Wv(Q,f,{getAuthHeaders:()=>{const ye={},Be=y||is();return Be&&(ye.Authorization=`Bearer ${Be}`),ye},baseURL:(i=Q.defaults)===null||i===void 0?void 0:i.baseURL}
301),agents:$v({axios:$,getSocket:B,appId:f,serverUrl:h,token:y}),aiGateway:qv({serverUrl:h,token:y,appId:f}),appLogs:Vv($,f),app:UC($,f),users:HC($,f),analytics:wC({axiosClient:$,serverUrl:h,appId:f,userAuthModule:pe,enabled:(o=p==null?void 0:p.enabled)!==null&&o!==void 0?o:!0}),actors:Oe.module,cleanup:()=>{Ye.analytics.cleanup(),Oe.closeAll(),R&&R.disconnect()}},Fe={entities:Uv({axios:q,appId:f,getSocket:B}),integrations:Hv(q,f),sso:MC(q,f),connectors:zC(q,f),functions:Wv(ue,f,{getAuthHeaders:()=>{const ye={};return x&&(ye.Authorization=`Bearer ${x}`),ye},baseURL:(u=ue.defaults)===null||u===void 0?void 0:u.baseURL}),agents:$v({axios:q,getSocket:B,appId:f,serverUrl:h,token:y}),aiGateway:qv({serverUrl:h,token:x,appId:f}),appLogs:Vv(q,f),cleanup:()=>{R&&R.disconnect()}};return b&&typeof window<"u"&&setTimeout(async()=>{try{await Ye.auth.isAuthenticated()||Ye.auth.redirectToLogin(window.location.href)}catch(ye){console.error("Authentication check failed:",ye),Ye.auth.redirectToLogin(window.location.href)}},0),{...Ye,setToken(ye){Ye.auth.setToken(ye),R&&R.updateConfig({token:ye}),N.token=ye},getConfig(){return{serverUrl:h,appId:f,requiresAuth:b}},get asServiceRole(){if(!x)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Fe}}}const x0=typeof window>"u",e2=x0?{localStorage:new Map}:window,Bl=e2.localStorage,t2=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),sa=(e,{defaultValue:n=void 0,removeFromUrl:i=!1}={})=>{if(x0)return n;const o=`base44_${t2(e)}`,u=new URLSearchParams(window.location.search),h=u.get(e);if(i){u.delete(e);const p=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,p)}if(h)return Bl.setItem(o,h),h;if(n)return Bl.setItem(o,n),n;const f=Bl.getItem(o);return f||null},n2=()=>(sa("clear_access_token")==="true"&&(Bl.removeItem("base44_access_token"),Bl.removeItem("token")),{appId:sa("app_id",{defaultValue:"6a3a011d5c6c187b9523d0f6"}),token:sa("access_token",{removeFromUrl:!0}),fromUrl:sa("from_url",{defaultValue:window.location.href}),functionsVersion:sa("functions_version",{defaultValue:"prod"}),appBaseUrl:sa("app_base_url",{defaultValue:void 0})}),zl={...n2()},{appId:r2,token:i2,functionsVersion:s2,appBaseUrl:o2}=zl,it=JP({appId:r2,token:i2,functionsVersion:s2,serverUrl:"",requiresAuth:!1,appBaseUrl:o2});function a2({}){var u;const n=Ta().pathname.substring(1),{data:i,isFetched:o}=nS({queryKey:["user"],queryFn:async()=>{try{return{user:await it.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return v.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:v.jsx("div",{className:"max-w-md w-full",children:v.jsxs("div",{className:"text-center space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),v.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),v.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",v.jsxs("span",{className:"font-medium text-slate-700",children:['"',n,'"']})," could not be found in this application."]})]}),o&&i.isAuthenticated&&((u=i.user)==null?void 0:u.role)==="admin"&&v.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:v.jsxs("div",{className:"flex items-start space-x-3",children:[v.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),v.jsxs("div",{className:"text-left space-y-1",children:[v.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),v.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),v.jsx("div",{className:"pt-6",children:v.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[v.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const b0=k.createContext(),l2=({children:e})=>{const[n,i]=k.useState(null),[o,u]=k.useState(!1),[h,f]=k.useState(!0),[p,y]=k.useState(!0),[x,b]=k.useState(null),[S,P]=k.useState(!1),[O,F]=k.useState(null);k.useEffect(()=>{T()},[]);const T=async()=>{var M,j;try{y(!0),b(null);
301const $=ua({baseURL:"/api/apps/public",headers:{"X-App-Id":zl.appId},token:zl.token,interceptResponses:!0});try{const Q=await $.get(`/prod/public-settings/by-id/${zl.appId}`);F(Q),zl.token?await N():(f(!1),u(!1),P(!0)),y(!1)}catch(Q){if(console.error("App state check failed:",Q),Q.status===403&&((j=(M=Q.data)==null?void 0:M.extra_data)!=null&&j.reason)){const G=Q.data.extra_data.reason;b(G==="auth_required"?{type:"auth_required",message:"Authentication required"}:G==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:G,message:Q.message})}else b({type:"unknown",message:Q.message||"Failed to load app"});y(!1),f(!1)}}catch($){console.error("Unexpected error:",$),b({type:"unknown",message:$.message||"An unexpected error occurred"}),y(!1),f(!1)}},N=async()=>{try{f(!0);const M=await it.auth.me();i(M),u(!0),f(!1),P(!0)}catch(M){console.error("User auth check failed:",M),f(!1),u(!1),P(!0),(M.status===401||M.status===403)&&b({type:"auth_required",message:"Authentication required"})}},R=(M=!0)=>{i(null),u(!1),M?it.auth.logout(window.location.href):it.auth.logout()},B=()=>{it.auth.redirectToLogin(window.location.href)};return v.jsx(b0.Provider,{value:{user:n,isAuthenticated:o,isLoadingAuth:h,isLoadingPublicSettings:p,authError:x,appPublicSettings:O,authChecked:S,logout:R,navigateToLogin:B,checkUserAuth:N,checkAppState:T},children:e})},S0=()=>{const e=k.useContext(b0);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},u2=()=>v.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:v.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:v.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),v.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),v.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),v.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[v.jsx("p",{children:"If you believe this is an error, you can:"}),v.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[v.jsx("li",{children:"Verify you are logged in with the correct account"}),v.jsx("li",{children:"Contact the app administrator for access"}),v.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),c2=e=>{const n=e.slice(1);try{return decodeURIComponent(n)}catch{return n}};function d2(){const{pathname:e,hash:n}=Ta(),i=jS();return k.useEffect(()=>{if(i!=="POP"){if(n){const o=c2(n),u=window.setTimeout(()=>{var h;(h=document.getElementById(o))==null||h.scrollIntoView({behavior:"smooth"})},50);return()=>window.clearTimeout(u)}window.scrollTo({top:0,left:0,behavior:"instant"})}},[e,n,i]),null}function Fp(){const{user:e,isAuthenticated:n}=S0(),[i,o]=k.useState(!1);return k.useEffect(()=>{o(!!(n&&e&&e.role==="admin"))},[e,n]),i}const h2=5e3;function f2({section:e,onSectionUpdate:n}){var B;const i=M=>{var $;const j=[];return M!=null&&M.background_url&&j.push(M.background_url),($=M==null?void 0:M.gallery_urls)!=null&&$.length&&M.gallery_urls.forEach(Q=>{Q!==M.background_url&&j.push(Q)}),j.length===0&&j.push(null),j},o=Fp(),[u,h]=k.useState(()=>i(e)),[f,p]=k.useState(0),[y,x]=k.useState(!1),[b,S]=k.useState(!1),[P,O]=k.useState(!1),F=k.useRef(null);k.useEffect(()=>{h(i(e)),p(0)},[e==null?void 0:e.id]),k.useEffect(()=>{if(!(u.length<=1||P))return F.current=setInterval(()=>{p(M=>(M+1)%u.length)},h2),()=>clearInterval(F.current)},[u.length,P]);const T=M=>{clearInterval(F.current),p(j=>(j+M+u.length)%u.length)},N=async M=>{const j=Array.from(M.target.files);if(j.length){S(!0);try{const $=await Promise.all(j.map(ue=>it.integrations.Core.UploadFile({file:ue}).then(ae=>ae.file_url))),G=[...e.gallery_urls||[],...$],q=e.background_url||$[0];await it.entities.StorySection.update(e.id,{background_url:q,gallery_urls:G}),n==null||n()}finally{S(!1)}}},R=async M=>{const $=(e.gallery_urls||[]).filter(G=>G!==M),Q=M===e.background_url?$[0]||null:e.background_url;await it.entities.StorySection.update(e.id,{background_url:Q,gallery_urls:$}),n==null||n()};return u[f],v.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden",children:[u.map((M,j)=>v.jsx("div",{className:"absolute inset-0 transition-opacity duration-1000",style:{opacity:j===f?1:0,zIndex:0},children:M?v.jsx("img",{src:M,alt:"",className:"w-full h-full object-cover"}):v.jsx("div",{className:"w-full h-full bg-gradient-to-br from-emerald-900 via-emerald-800 to-amber-900"})},M||"gradient")),u.length>1&&v.jsxs(v.Fragment,{children:[v.jsx("button",{onClick:()=>T(-1),className:"absolute left-4 top-1/2 -translate-y-1/2 z-20 bg-black/30 hover:bg-black/50 text-white rounded-full p-2 transition-colors",children:v.jsx(Dy,{size:24})}),v.jsx("button",{onClick:()=>T(1),className:"absolute right-4 top-1/2 -translate-y-1/2 z-20 bg-black/30 hover:bg-black/50 text-white rounded-full p-2 transition-colors",children:v.jsx(Fy,{size:24})})]}),u.length>1&&v.jsx("div",{className:"absolute bottom-20 left-1/2 -translate-x-1/2 z-20 flex gap-2",children:u.map((M,j)=>v.jsx("button",{onClick:()=>{clearInterval(F.current),p(j)},className:`w-2.5 h-2.5 rounded-full transition-all ${j===f?"bg-white scale-125":"bg-white/40"}`},j))}),u.length>1&&v.jsx("button",{onClick:()=>O(M=>!M),className:"absolute top-4 left-4 z-30 bg-black/40 hover:bg-black/60 text-white rounded-full p-2.5 transition-colors",children:P?v.jsx(hp,{size:18}):v.jsx(dp,{size:18})}),n&&o&&v.jsxs("button",{onClick:()=>x(M=>!M),className:"absolute top-4 right-4 z-30 bg-black/40 hover:bg-black/60 text-white text-xs font-medium px-3 py-1.5 rounded-full flex items-center gap-1.5 transition-colors",children:[v.jsx(Ul,{size:12}),"Manage Slides"]}),y&&v.jsxs("div",{className:"absolute top-14 right-4 z-30 bg-white rounded-xl shadow-2xl p-4 w-72",children:[v.jsxs("div",{className:"flex items-center justify-between mb-3",children:[v.jsx("span",{className:"font-semibold text-sm text-gray-800",children:"Slideshow Photos"}),v.jsx("button",{onClick:()=>x(!1),className:"text-gray-400 hover:text-gray-600",children:v.jsx(us,{size:16})})]}),v.jsxs("div",{className:"space-y-2 max-h-56 overflow-y-auto mb-3",children:[u.filter(Boolean).map((M,j)=>v.jsxs("div",{className:"flex items-center gap-2 group",children:[v.jsx("img",{src:M,alt:"",className:"w-14 h-10 object-cover rounded shadow-sm flex-shrink-0"}),v.jsxs("span",{className:"text-xs text-gray-500 truncate flex-1",children:["Photo ",j+1]}),v.jsx("button",{onClick:()=>R(M),className:"text-red-400 hover:text-red-600 opacity-0 group-hover:opacity-100 transition-opacity",children:v.jsx(fp,{size:14})})]},M)),u.filter(Boolean).length===0&&v.jsx("p",{className:"text-xs text-gray-400 text-center py-3",children:"No photos yet"})]}),v.jsxs("label",{className:`flex items-center justify-center gap-2 w-full py-2 rounded-lg border-2 border-dashed cursor-pointer text-sm font-medium transition-colors ${b?"border-gray-200 text-gray-300":"border-amber-300 text-amber-600 hover:bg-amber-50"}`,children:[v.jsx(md,{size:15}),b?"Uploading…":"Add Photos",v.jsx("input",{type:"file",accept:"image/*",multiple:!0,className:"hidden",onChange:N,disabled:b})]})]}),v.jsxs("div",{className:"relative z-10 text-center px-6 max-w-4xl mx-auto",children:[v.jsxs("div",{className:"inline-flex items-center gap-2 bg-black/40 backdrop-blur-md border border-white/15 rounded-full px-4 py-1.5 mb-6",children:[v.jsx("div",{className:"w-2 h-2 bg-amber-400 rounded-full animate-pulse"}),v.jsx("span",{className:"text-white/90 text-xs font-semibold tracking-[0.2em] uppercase",children:"Community Wildfire Protection Plans"})]}),v.jsx("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-heading font-extrabold leading-[1.05] mb-8 tracking-tight",style:{color:"#fff",textShadow:"0 2px 20px rgba(0,0,0,0.6), 0 0 2px rgba(0,0,0,0.8)"},children:e.title}),e.subtitle&&v.jsx("p",{className:"text-xl md:text-2xl mb-6 max-w-3xl mx-auto leading-snug font-medium text-white italic",style:{textShadow:"0 1px 8px rgba(0,0,0,0.7)"}
301,children:e.subtitle}),e.body&&v.jsx("p",{className:"text-base md:text-lg max-w-2xl mx-auto leading-relaxed mb-12 font-normal text-white/95 bg-black/35 backdrop-blur-md border-l-4 border-amber-400 px-6 py-4 rounded-r-lg text-left",children:e.body}),v.jsx("div",{className:"flex flex-wrap justify-center gap-3 mb-10",children:(B=e.highlights)==null?void 0:B.map((M,j)=>v.jsx("span",{className:"bg-white/10 backdrop-blur-sm border border-white/10 text-white/90 text-sm px-4 py-2 rounded-lg",children:M},j))}),v.jsxs("div",{className:"max-w-3xl mx-auto",children:[v.jsx("p",{className:"text-white/70 text-xs font-semibold uppercase tracking-[0.2em] mb-3 text-center",children:"Plan Signatories"}),v.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[v.jsx("a",{href:"https://www.hawaiicounty.gov/departments/fire",target:"_blank",rel:"noopener noreferrer",className:"bg-white/10 backdrop-blur-sm border border-white/15 hover:bg-white/25 hover:border-white/40 text-white/90 text-sm px-4 py-2 rounded-lg transition-colors",children:"Hawaiʻi County Fire Department"}),v.jsx("a",{href:"https://www.mauicounty.gov/1464/Fire-Operations",target:"_blank",rel:"noopener noreferrer",className:"bg-white/10 backdrop-blur-sm border border-white/15 hover:bg-white/25 hover:border-white/40 text-white/90 text-sm px-4 py-2 rounded-lg transition-colors",children:"Maui County Fire Department"}),v.jsx("a",{href:"https://www.kauai.gov/Government/Departments-Agencies/Fire-Department",target:"_blank",rel:"noopener noreferrer",className:"bg-white/10 backdrop-blur-sm border border-white/15 hover:bg-white/25 hover:border-white/40 text-white/90 text-sm px-4 py-2 rounded-lg transition-colors",children:"Kauaʻi County Fire Department"}),v.jsx("a",{href:"https://fire.honolulu.gov/",target:"_blank",rel:"noopener noreferrer",className:"bg-white/10 backdrop-blur-sm border border-white/15 hover:bg-white/25 hover:border-white/40 text-white/90 text-sm px-4 py-2 rounded-lg transition-colors",children:"Honolulu Fire Department"}),v.jsx("a",{href:"https://hawaii-county-civil-defense-agency-hawaiicountygis.hub.arcgis.com/",target:"_blank",rel:"noopener noreferrer",className:"bg-white/10 backdrop-blur-sm border border-white/15 hover:bg-white/25 hover:border-white/40 text-white/90 text-sm px-4 py-2 rounded-lg transition-colors",children:"Hawaiʻi County Civil Defense Agency"}),v.jsx("a",{href:"https://dlnr.hawaii.gov/",target:"_blank",rel:"noopener noreferrer",className:"bg-white/10 backdrop-blur-sm border border-white/15 hover:bg-white/25 hover:border-white/40 text-white/90 text-sm px-4 py-2 rounded-lg transition-colors",children:"Hawaiʻi Department of Land and Natural Resources"})]})]})]}),v.jsx("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 z-10 animate-bounce",children:v.jsx(pd,{className:"text-white/50",size:32})})]})}const ey=[cp,pp,db];function p2({section:e,onImageClick:n}){return v.jsx("section",{className:"py-20 md:py-32 bg-white",children:v.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[v.jsxs("div",{className:"text-center mb-16",children:[v.jsx("p",{className:"text-amber-700 font-medium text-sm tracking-wider uppercase mb-3",children:e.cwpp_region||"Overview"}),v.jsx("h2",{className:"text-3xl md:text-5xl font-heading font-bold text-gray-900 mb-6 leading-tight",children:e.title}),e.subtitle&&v.jsxs("p",{className:"text-lg text-amber-800 font-medium italic max-w-3xl mx-auto",children:['"',e.subtitle,'"']})]}),v.jsx("div",{className:"prose prose-lg prose-gray max-w-none mb-12",children:v.jsx("p",{className:"text-gray-700 leading-relaxed text-lg",children:e.body})}),e.image_url&&v.jsx("div",{className:"mb-12 cursor-pointer group",onClick:()=>n(e.image_url,e.title),children:v.jsx("img",{src:e.image_url,alt:e.title,className:"w-full rounded-2xl shadow-xl group-hover:shadow-2xl transition-shadow duration-300"})}),e.highlights&&e.highlights.length>0&&v.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:e.highlights.map((i,o)=>{const u=ey[o%ey.length];return v.jsxs("div",{className:"bg-amber-50 border border-amber-100 rounded-xl p-6",children:[v.jsx(u,{className:"text-amber-700 mb-3",size:24}),v.jsx("p",{className:"text-gray-800 font-medium",children:i})]},o)})})]})})}const ty={"Hawaiʻi Island":{card:"bg-red-50 border-red-200 hover:border-red-400",accent:"text-red-800"},Maui:{card:"bg-pink-50 border-pink-200 hover:border-pink-400",accent:"text-pink-800"},Oʻahu:{card:"bg-blue-50 border-blue-200 hover:border-blue-400",accent:"text-blue-800"},Kauaʻi:{card:"bg-emerald-50 border-emerald-200 hover:border-emerald-400",accent:"text-emerald-800"},Molokaʻi:{card:"bg-violet-50 border-violet-200 hover:border-violet-400",accent:"text-violet-800"},Lānaʻi:{card:"bg-teal-50 border-teal-200 hover:border-teal-400",accent:"text-teal-800"}};function m2({sections:e,island:n}){const i=ty[n]||ty["Hawaiʻi Island"],o=e.filter(u=>u.island===n&&u.section_type==="region");return v.jsx("section",{className:"py-16 md:py-24 bg-gray-50",children:v.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[v.jsxs("div",{className:"mb-10 text-center",children:[v.jsxs("h2",{className:"text-3xl md:text-4xl font-heading font-bold text-gray-900 mb-3",children:[n," Communities"]}),v.jsx("p",{className:"text-gray-500",children:"Select a community to view its W
301ildfire Protection Plan."})]}),v.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5",children:o.map(u=>v.jsxs(Cp,{to:`/community/${u.id}`,className:`group rounded-xl border ${i.card} p-6 transition-all hover:shadow-lg`,children:[v.jsxs("div",{className:"flex items-start justify-between gap-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gx,{size:18,className:`flex-shrink-0 ${i.accent}`}),v.jsx("h3",{className:`text-lg font-semibold ${i.accent}`,children:u.cwpp_region||u.title})]}),v.jsx(Rx,{size:18,className:"opacity-0 group-hover:opacity-100 transition-opacity text-gray-400"})]}),u.subtitle&&v.jsx("p",{className:"text-sm text-gray-500 mt-2 line-clamp-2",children:u.subtitle})]},u.id))})]})})}function k0(e,n){const i=k.useRef(n);k.useEffect(function(){n!==i.current&&e.attributionControl!=null&&(i.current!=null&&e.attributionControl.removeAttribution(i.current),n!=null&&e.attributionControl.addAttribution(n)),i.current=n},[e,n])}const g2=1;function v2(e){return Object.freeze({__version:g2,map:e})}function E0(e,n){return Object.freeze({...e,...n})}const C0=k.createContext(null),P0=C0.Provider;function xd(){const e=k.useContext(C0);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function T0(e){function n(i,o){const{instance:u,context:h}=e(i).current;return k.useImperativeHandle(o,()=>u),i.children==null?null:nd.createElement(P0,{value:h},i.children)}return k.forwardRef(n)}function y2(e){function n(i,o){const[u,h]=k.useState(!1),{instance:f}=e(i,h).current;k.useImperativeHandle(o,()=>f),k.useEffect(function(){u&&f.update()},[f,u,i.children]);const p=f._contentNode;return p?xp.createPortal(i.children,p):null}return k.forwardRef(n)}function _2(e){function n(i,o){const{instance:u}=e(i).current;return k.useImperativeHandle(o,()=>u),null}return k.forwardRef(n)}function Bp(e,n){const i=k.useRef();k.useEffect(function(){return n!=null&&e.instance.on(n),i.current=n,function(){i.current!=null&&e.instance.off(i.current),i.current=null}},[e,n])}function bd(e,n){const i=e.pane??n.pane;return i?{...e,pane:i}:e}function w2(e,n){return function(o,u){const h=xd(),f=e(bd(o,h),h);return k0(h.map,o.attribution),Bp(f.current,o.eventHandlers),n(f.current,h,o,u),f}}var Dl={exports:{}};/* @preserve
302 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
303 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
304 */var x2=Dl.exports,ny;function b2(){return ny||(ny=1,(function(e,n){(function(i,o){o(n)})(x2,(function(i){var o="1.9.4";function u(r){var a,c,m,w;for(c=1,m=arguments.length;c<m;c++){w=arguments[c];for(a in w)r[a]=w[a]}return r}var h=Object.create||(function(){function r(){}return function(a){return r.prototype=a,new r}})();function f(r,a){var c=Array.prototype.slice;if(r.bind)return r.bind.apply(r,c.call(arguments,1));var m=c.call(arguments,2);return function(){return r.apply(a,m.length?m.concat(c.call(arguments)):arguments)}}var p=0;function y(r){return"_leaflet_id"in r||(r._leaflet_id=++p),r._leaflet_id}function x(r,a,c){var m,w,C,I;return I=function(){m=!1,w&&(C.apply(c,w),w=!1)},C=function(){m?w=arguments:(r.apply(c,arguments),setTimeout(I,a),m=!0)},C}function b(r,a,c){var m=a[1],w=a[0],C=m-w;return r===m&&c?r:((r-w)%C+C)%C+w}function S(){return!1}function P(r,a){if(a===!1)return r;var c=Math.pow(10,a===void 0?6:a);return Math.round(r*c)/c}function O(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function F(r){return O(r).split(/\s+/)}function T(r,a){Object.prototype.hasOwnProperty.call(r,"options")||(r.options=r.options?h(r.options):{});for(var c in a)r.options[c]=a[c];return r.options}function N(r,a,c){var m=[];for(var w in r)m.push(encodeURIComponent(c?w.toUpperCase():w)+"="+encodeURIComponent(r[w]));return(!a||a.indexOf("?")===-1?"?":"&")+m.join("&")}var R=/\{ *([\w_ -]+) *\}/g;function B(r,a){return r.replace(R,function(c,m){var w=a[m];if(w===void 0)throw new Error("No value provided for variable "+c);return typeof w=="function"&&(w=w(a)),w})}var M=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function j(r,a){for(var c=0;c<r.length;c++)if(r[c]===a)return c;return-1}var $="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Q(r){return window["webkit"+r]||window["moz"+r]||window["ms"+r]}var G=0;function q(r){var a=+new Date,c=Math.max(0,16-(a-G));return G=a+c,window.setTimeout(r,c)}var ue=window.requestAnimationFrame||Q("RequestAnimationFrame")||q,ae=window.cancelAnimationFrame||Q("
304CancelAnimationFrame")||Q("CancelRequestAnimationFrame")||function(r){window.clearTimeout(r)};function pe(r,a,c){if(c&&ue===q)r.call(a);else return ue.call(window,f(r,a))}function Oe(r){r&&ae.call(window,r)}var Ye={__proto__:null,extend:u,create:h,bind:f,get lastId(){return p},stamp:y,throttle:x,wrapNum:b,falseFn:S,formatNum:P,trim:O,splitWords:F,setOptions:T,getParamString:N,template:B,isArray:M,indexOf:j,emptyImageUrl:$,requestFn:ue,cancelFn:ae,requestAnimFrame:pe,cancelAnimFrame:Oe};function Fe(){}Fe.extend=function(r){var a=function(){T(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},c=a.__super__=this.prototype,m=h(c);m.constructor=a,a.prototype=m;for(var w in this)Object.prototype.hasOwnProperty.call(this,w)&&w!=="prototype"&&w!=="__super__"&&(a[w]=this[w]);return r.statics&&u(a,r.statics),r.includes&&(et(r.includes),u.apply(null,[m].concat(r.includes))),u(m,r),delete m.statics,delete m.includes,m.options&&(m.options=c.options?h(c.options):{},u(m.options,r.options)),m._initHooks=[],m.callInitHooks=function(){if(!this._initHooksCalled){c.callInitHooks&&c.callInitHooks.call(this),this._initHooksCalled=!0;for(var C=0,I=m._initHooks.length;C<I;C++)m._initHooks[C].call(this)}},a},Fe.include=function(r){var a=this.prototype.options;return u(this.prototype,r),r.options&&(this.prototype.options=a,this.mergeOptions(r.options)),this},Fe.mergeOptions=function(r){return u(this.prototype.options,r),this},Fe.addInitHook=function(r){var a=Array.prototype.slice.call(arguments,1),c=typeof r=="function"?r:function(){this[r].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(c),this};function et(r){if(!(typeof L>"u"||!L||!L.Mixin)){r=M(r)?r:[r];for(var a=0;a<r.length;
304a++)r[a]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ye={on:function(r,a,c){if(typeof r=="object")for(var m in r)this._on(m,r[m],a);else{r=F(r);for(var w=0,C=r.length;w<C;w++)this._on(r[w],a,c)}return this},off:function(r,a,c){if(!arguments.length)delete this._events;else if(typeof r=="object")for(var m in r)this._off(m,r[m],a);else{r=F(r);for(var w=arguments.length===1,C=0,I=r.length;C<I;C++)w?this._off(r[C]):this._off(r[C],a,c)}return this},_on:function(r,a,c,m){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(r,a,c)===!1){c===this&&(c=void 0);var w={fn:a,ctx:c};m&&(w.once=!0),this._events=this._events||{},this._events[r]=this._events[r]||[],this._events[r].push(w)}},_off:function(r,a,c){var m,w,C;if(this._events&&(m=this._events[r],!!m)){if(arguments.length===1){if(this._firingCount)for(w=0,C=m.length;w<C;w++)m[w].fn=S;delete this._events[r];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var I=this._listens(r,a,c);if(I!==!1){var Z=m[I];this._firingCount&&(Z.fn=S,this._events[r]=m=m.slice()),m.splice(I,1)}}},fire:function(r,a,c){if(!this.listens(r,c))return this;var m=u({},a,{type:r,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var w=this._events[r];if(w){this._firingCount=this._firingCount+1||1;for(var C=0,I=w.length;C<I;C++){var Z=w[C],X=Z.fn;Z.once&&this.off(r,X,Z.ctx),X.call(Z.ctx||this,m)}this._firingCount--}}return c&&this._propagateEvent(m),this},listens:function(r,a,c,m){typeof r!="string"&&console.warn('"string" type argument expected');var w=a;typeof a!="function"&&(m=!!a,w=void 0,c=void 0);var C=this._events&&this._events[r];if(C&&C.length&&this._listens(r,w,c)!==!1)return!0;if(m){for(var I in this._eventParents)if(this._eventParents[I].listens(r,a,c,m))return!0}return!1},_listens:function(r,a,c){if(!this._events)return!1;var m=this._events[r]||[];if(!a)return!!m.length;c===this&&(c=void 0);for(var w=0,C=m.length;w<C;w++)if(m[w].fn===a&&m[w].ctx===c)return w;return!1},once:function(r,a,c){if(typeof r=="object")for(var m in r)this._on(m,r[m],a,!0);else{r=F(r);for(var w=0,C=r.length;w<C;w++)this._on(r[w],a,c,!0)}return this},addEventParent:function(r){return this._eventParents=this._eventParents||{},this._eventParents[y(r)]=r,this},removeEventParent:function(r){return this._eventParents&&delete this._eventParents[y(r)],this},_propagateEvent:function(r){for(var a in this._eventParents)this._eventParents[a].fire(r.type,u({layer:r.target,propagatedFrom:r.target},r),!0)}};ye.addEventListener=ye.on,ye.removeEventListener=ye.clearAllEventListeners=ye.off,ye.addOneTimeEventListener=ye.once,ye.fireEvent=ye.f
304ire,ye.hasEventListeners=ye.listens;var Be=Fe.extend(ye);function te(r,a,c){this.x=c?Math.round(r):r,this.y=c?Math.round(a):a}var Se=Math.trunc||function(r){return r>0?Math.floor(r):Math.ceil(r)};te.prototype={clone:function(){return new te(this.x,this.y)},add:function(r){return this.clone()._add(V(r))},_add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.clone()._subtract(V(r))},_subtract:function(r){return this.x-=r.x,this.y-=r.y,this},divideBy:function(r){return this.clone()._divideBy(r)},_divideBy:function(r){return this.x/=r,this.y/=r,this},multiplyBy:function(r){return this.clone()._multiplyBy(r)},_multiplyBy:function(r){return this.x*=r,this.y*=r,this},scaleBy:function(r){return new te(this.x*r.x,this.y*r.y)},unscaleBy:function(r){return new te(this.x/r.x,this.y/r.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=Se(this.x),this.y=Se(this.y),this},distanceTo:function(r){r=V(r);var a=r.x-this.x,c=r.y-this.y;return Math.sqrt(a*a+c*c)},equals:function(r){return r=V(r),r.x===this.x&&r.y===this.y},contains:function(r){return r=V(r),Math.abs(r.x)<=Math.abs(this.x)&&Math.abs(r.y)<=Math.abs(this.y)},toString:function(){return"Point("+P(this.x)+", "+P(this.y)+")"}};function V(r,a,c){return r instanceof te?r:M(r)?new te(r[0],r[1]):r==null?r:typeof r=="object"&&"x"in r&&"y"in r?new te(r.x,r.y):new te(r,a,c)}function z(r,a){if(r)for(var c=a?[r,a]:r,m=0,w=c.length;m<w;m++)this.extend(c[m])}z.prototype={extend:function(r){var a,c;if(!r)return this;if(r instanceof te||typeof r[0]=="number"||"x"in r)a=c=V(r);else if(r=ee(r),a=r.min,c=r.max,!a||!c)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=c.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(c.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(c.y,this.max.y)),this},getCenter:function(r){return V((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,r)},getBottomLeft:function(){return V(this.min.x,this.max.y)},getTopRight:function(){return V(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(r){var a,c;return typeof r[0]=="number"||r instanceof te?r=V(r):r=ee(r),r instanceof z?(a=r.min,c=r.max):a=c=r,a.x>=this.min.x&&c.x<=this.max.x&&a.y>=this.min.y&&c.y<=this.max.y},intersects:function(r){r=ee(r);var a=this.min,c=this.max,m=r.min,w=r.max,C=w.x>=a.x&&m.x<=c.x,I=w.y>=a.y&&m.y<=c.y;return C&&I},overlaps:function(r){r=ee(r);var a=this.min,c=this.max,m=r.min,w=r.max,C=w.x>a.x&&m.x<c.x,I=w.y>a.y&&m.y<c.y;return C&&I},isValid:function(){return!!(this.min&&this.max)},pad:function(r){var a=this.min,c=this.max,m=Math.abs(a.x-c.x)*r,w=Math.abs(a.y-c.y)*r;return ee(V(a.x-m,a.y-w),V(c.x+m,c.y+w))},equals:function(r){return r?(r=ee(r),this.min.equals(r.getTopLeft())&&this.max.equals(r.getBottomRight())):!1}};function ee(r,a){return!r||r instanceof z?r:new z(r,a)}function _e(r,a){if(r)for(var c=a?[r,a]:r,m=0,w=c.length;m<w;m++)this.extend(c[m])}_e.prototype={extend:function(r){var a=this._southWest,c=this._northEast,m,w;if(r instanceof ce)m=r,w=r;else if(r instanceof _e){if(m=r._southWest,w=r._northEast,!m||!w)return this}else return r?this.extend(ne(r)||me(r)):this;return!a&&!c?(this._southWest=new ce(m.lat,m.lng),this._northEast=new ce(w.lat,w.lng)):(a.lat=Math.min(m.lat,a.lat),a.lng=Math.min(m.lng,a.lng),c.lat=Math.max(w.lat,c.lat),c.lng=Math.max(w.lng,c.lng)),this},pad:function(r){var a=this._southWest,c=this._northEast,m=Math.abs(a.lat-c.lat)*r,w=Math.abs(a.lng-c.lng)*r;return new _e(new ce(a.lat-m,a.lng-w),new ce(c.lat+m,c.lng+w))},getCenter:function(){return new ce((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 ce(this.getNorth(),this.getWest())},getSouthEast:function(){return new ce(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
304,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(r){typeof r[0]=="number"||r instanceof ce||"lat"in r?r=ne(r):r=me(r);var a=this._southWest,c=this._northEast,m,w;return r instanceof _e?(m=r.getSouthWest(),w=r.getNorthEast()):m=w=r,m.lat>=a.lat&&w.lat<=c.lat&&m.lng>=a.lng&&w.lng<=c.lng},intersects:function(r){r=me(r);var a=this._southWest,c=this._northEast,m=r.getSouthWest(),w=r.getNorthEast(),C=w.lat>=a.lat&&m.lat<=c.lat,I=w.lng>=a.lng&&m.lng<=c.lng;return C&&I},overlaps:function(r){r=me(r);var a=this._southWest,c=this._northEast,m=r.getSouthWest(),w=r.getNorthEast(),C=w.lat>a.lat&&m.lat<c.lat,I=w.lng>a.lng&&m.lng<c.lng;return C&&I},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(r,a){return r?(r=me(r),this._southWest.equals(r.getSouthWest(),a)&&this._northEast.equals(r.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function me(r,a){return r instanceof _e?r:new _e(r,a)}function ce(r,a,c){if(isNaN(r)||isNaN(a))throw new Error("Invalid LatLng object: ("+r+", "+a+")");this.lat=+r,this.lng=+a,c!==void 0&&(this.alt=+c)}ce.prototype={equals:function(r,a){if(!r)return!1;r=ne(r);var c=Math.max(Math.abs(this.lat-r.lat),Math.abs(this.lng-r.lng));return c<=(a===void 0?1e-9:a)},toString:function(r){return"LatLng("+P(this.lat,r)+", "+P(this.lng,r)+")"},distanceTo:function(r){return ze.distance(this,ne(r))},wrap:function(){return ze.wrapLatLng(this)},toBounds:function(r){var a=180*r/40075017,c=a/Math.cos(Math.PI/180*this.lat);return me([this.lat-a,this.lng-c],[this.lat+a,this.lng+c])},clone:function(){return new ce(this.lat,this.lng,this.alt)}};function ne(r,a,c){return r instanceof ce?r:M(r)&&typeof r[0]!="object"?r.length===3?new ce(r[0],r[1],r[2]):r.length===2?new ce(r[0],r[1]):null:r==null?r:typeof r=="object"&&"lat"in r?new ce(r.lat,"lng"in r?r.lng:r.lon,r.alt):a===void 0?null:new ce(r,a,c)}var Pe={latLngToPoint:function(r,a){var c=this.projection.project(r),m=this.scale(a);return this.transformation._transform(c,m)},pointToLatLng:function(r,a){var c=this.scale(a),m=this.transformation.untransform(r,c);return this.projection.unproject(m)},project:function(r){return this.projection.project(r)},unproject:function(r){return this.projection.unproject(r)},scale:function(r){return 256*Math.pow(2,r)},zoom:function(r){return Math.log(r/256)/Math.LN2},getProjectedBounds:function(r){if(this.infinite)return null;var a=this.projection.bounds,c=this.scale(r),m=this.transformation.transform(a.min,c),w=this.transformation.transform(a.max,c);return new z(m,w)},infinite:!1,wrapLatLng:function(r){var a=this.wrapLng?b(r.lng,this.wrapLng,!0):r.lng,c=this.wrapLat?b(r.lat,this.wrapLat,!0):r.lat,m=r.alt;return new ce(c,a,m)},wrapLatLngBounds:function(r){var a=r.getCenter(),c=this.wrapLatLng(a),m=a.lat-c.lat,w=a.lng-c.lng;if(m===0&&w===0)return r;
304var C=r.getSouthWest(),I=r.getNorthEast(),Z=new ce(C.lat-m,C.lng-w),X=new ce(I.lat-m,I.lng-w);return new _e(Z,X)}},ze=u({},Pe,{wrapLng:[-180,180],R:6371e3,distance:function(r,a){var c=Math.PI/180,m=r.lat*c,w=a.lat*c,C=Math.sin((a.lat-r.lat)*c/2),I=Math.sin((a.lng-r.lng)*c/2),Z=C*C+Math.cos(m)*Math.cos(w)*I*I,X=2*Math.atan2(Math.sqrt(Z),Math.sqrt(1-Z));return this.R*X}}),Ae=6378137,yt={R:Ae,MAX_LATITUDE:85.0511287798,project:function(r){var a=Math.PI/180,c=this.MAX_LATITUDE,m=Math.max(Math.min(c,r.lat),-c),w=Math.sin(m*a);return new te(this.R*r.lng*a,this.R*Math.log((1+w)/(1-w))/2)},unproject:function(r){var a=180/Math.PI;return new ce((2*Math.atan(Math.exp(r.y/this.R))-Math.PI/2)*a,r.x*a/this.R)},bounds:(function(){var r=Ae*Math.PI;return new z([-r,-r],[r,r])})()};function Wt(r,a,c,m){if(M(r)){this._a=r[0],this._b=r[1],this._c=r[2],this._d=r[3];return}this._a=r,this._b=a,this._c=c,this._d=m}Wt.prototype={transform:function(r,a){return this._transform(r.clone(),a)},_transform:function(r,a){return a=a||1,r.x=a*(this._a*r.x+this._b),r.y=a*(this._c*r.y+this._d),r},untransform:function(r,a){return a=a||1,new te((r.x/a-this._b)/this._a,(r.y/a-this._d)/this._c)}};function ft(r,a,c,m){return new Wt(r,a,c,m)}var nn=u({},ze,{code:"EPSG:3857",projection:yt,transformation:(function(){var r=.5/(Math.PI*yt.R);return ft(r,.5,-r,.5)})()}),dn=u({},nn,{code:"EPSG:900913"});function rn(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Me(r,a){var c="",m,w,C,I,Z,X;for(m=0,C=r.length;m<C;m++){for(Z=r[m],w=0,I=Z.length;w<I;w++)X=Z[w],c+=(w?"L":"M")+X.x+" "+X.y;c+=a?Ee.svg?"z":"x":""}return c||"M0 0"}var bt=document.documentElement.style,$t="ActiveXObject"in window,kn=$t&&!document.addEventListener,Jn="msLaunchUri"in navigator&&!("documentMode"in document),In=qt("webkit"),zn=qt("android"),Aa=qt("android 2")||qt("android 3"),au=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),lu=zn&&qt("Google")&&au<537&&!("AudioNode"in window),fo=!!window.opera,po=!Jn&&qt("chrome"),hs=qt("gecko")&&!In&&!fo&&!$t,uu=!po&&qt("safari"),ci=qt("phantom"),di="OTransition"in bt,Nd=navigator.platform.indexOf("Win")===0,ja=$t&&"transition"in bt,mo="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Aa,cu="MozPerspective"in bt,Ma=!window.L_DISABLE_3D&&(ja||mo||cu)&&!di&&!ci,Mr=typeof orientation<"u"||qt("mobile"),Ia=Mr&&In,za=Mr&&mo,go=!window.PointerEvent&&window.MSPointerEvent,Ir=!!(window.PointerEvent||go),zr="ontouchstart"in window||!!window.TouchEvent,du=!window.L_NO_TOUCH&&(zr||Ir),hu=Mr&&fo,fu=Mr&&hs,pu=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,mu=(function(){var r=!1;try{var a=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassiveEventSupport",S,a),window.removeEventListener("testPassiveEventSupport",S,a)}catch{}return r})(),Da=(function(){return!!document.createElement("canvas").getContext})(),vo=!!(document.createElementNS&&rn("svg").createSVGRect),fs=!!vo&&(function(){var r=document.createElement("div");return r.innerHTML="<svg/>",(r.firstChild&&r.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),Fa=!vo&&(function(){try{var r=document.createElement("div");r.innerHTML='<v:shape adj="1"/>';var a=r.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}})(),ps=navigator.platform.indexOf("Mac")===0,Ld=navigator.platform.indexOf("Linux")===0;function qt(r){return navigator.userAgent.toLowerCase().indexOf(r)>=0}var Ee={ie:$t,ielt9:kn,edge:Jn,webkit:In,android:zn,android23:Aa,androidStock:lu,opera:fo,chrome:po,gecko:hs,safari:uu,phantom:ci,opera12:di,win:Nd,ie3d:ja,webkit3d:mo,gecko3d:cu,any3d:Ma,mobile:Mr,mobileWebkit:Ia,mobileWebkit3d:za,msPointer:go,pointer:Ir,touch:du,touchNative:zr,mobileOpera:hu,mobileGecko:fu,retina:pu,passiveEvents:mu,canvas:Da,svg:vo,vml:Fa,inlineSvg:fs,mac:ps,linux:Ld},ms=Ee.msPointer?"MSPointerDown":"pointerdown",yo=Ee.msPointer?"MSPointerMove":"pointermove",gu=Ee.msPointer?"MSPointerUp":"pointerup",vu=Ee.msPointer?"MSPointerCancel":"pointercancel",Ba={touchstart:ms,touchmove:yo,touchend:gu,touchcancel:vu},vr={touchstart:pt,touchmove:_o,touchend:_o,touchcancel:_o},Dr={},Ua=!1;function Rd(r,a,c){return a==="touchstart"&&Od(),vr[a]?(c=vr[a].bind(this,c),r.addEventListener(Ba[a],c,!1),c):(console.warn("wrong event specified:",a),S)}function yu(r,a,c){if(!Ba[a]){console.warn("wrong event specified:",a);return}r.removeEventListener(Ba[a],c,!1)}function _u(r){Dr[r.pointerId]=r}function wu(r){Dr[r.pointerId]&&(Dr[r.pointerId]=r)}function Ha(r){delete Dr[r.pointerId]}function Od(){Ua||(document.addEventListener(ms,_u,!0),document.addEventListener(yo,wu,!0),document.addEventListener(gu,Ha,!0),document.addEventListener(vu,Ha,!0),Ua=!0)}
304function _o(r,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var c in Dr)a.touches.push(Dr[c]);a.changedTouches=[a],r(a)}}function pt(r,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&mt(a),_o(r,a)}function Ad(r){var a={},c,m;for(m in r)c=r[m],a[m]=c&&c.bind?c.bind(r):c;return r=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var Wa=200;function xu(r,a){r.addEventListener("dblclick",a);var c=0,m;function w(C){if(C.detail!==1){m=C.detail;return}if(!(C.pointerType==="mouse"||C.sourceCapabilities&&!C.sourceCapabilities.firesTouchEvents)){var I=Ur(C);if(!(I.some(function(X){return X instanceof HTMLLabelElement&&X.attributes.for})&&!I.some(function(X){return X instanceof HTMLInputElement||X instanceof HTMLSelectElement}))){var Z=Date.now();Z-c<=Wa?(m++,m===2&&a(Ad(C))):m=1,c=Z}}}return r.addEventListener("click",w),{dblclick:a,simDblclick:w}}function wo(r,a){r.removeEventListener("dblclick",a.dblclick),r.removeEventListener("click",a.simDblclick)}var $a=mi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),hi=mi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),gs=hi==="webkitTransition"||hi==="OTransition"?hi+"End":"transitionend";function En(r){return typeof r=="string"?document.getElementById(r):r}function vs(r,a){var c=r.style[a]||r.currentStyle&&r.currentStyle[a];if((!c||c==="auto")&&document.defaultView){var m=document.defaultView.getComputedStyle(r,null);c=m?m[a]:null}return c==="auto"?null:c}function Ue(r,a,c){var m=document.createElement(r);return m.className=a||"",c&&c.appendChild(m),m}function ct(r){var a=r.parentNode;a&&a.removeChild(r)}function xo(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function fi(r){var a=r.parentNode;a&&a.lastChild!==r&&a.appendChild(r)}function er(r){var a=r.parentNode;a&&a.firstChild!==r&&a.insertBefore(r,a.firstChild)}function pi(r,a){if(r.classList!==void 0)return r.classList.contains(a);var c=bo(r);return c.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(c)}function De(r,a){if(r.classList!==void 0)for(var c=F(a),m=0,w=c.length;m<w;m++)r.classList.add(c[m]);else if(!pi(r,a)){var C=bo(r);qa(r,(C?C+" ":"")+a)}}function at(r,a){r.classList!==void 0?r.classList.remove(a):qa(r,O((" "+bo(r)+" ").replace(" "+a+" "," ")))}function qa(r,a){r.className.baseVal===void 0?r.className=a:r.className.baseVal=a}function bo(r){return r.correspondingElement&&(r=r.correspondingElement),r.className.baseVal===void 0?r.className:r.className.baseVal}function Vt(r,a){"opacity"in r.style?r.style.opacity=a:"filter"in r.style&&bu(r,a)}function bu(r,a){var c=!1,m="DXImageTransform.Microsoft.Alpha";try{c=r.filters.item(m)}catch{if(a===1)return}a=Math.round(a*100),c?(c.Enabled=a!==100,c.Opacity=a):r.style.filter+=" progid:"+m+"(opacity="+a+")"}function mi(r){for(var a=document.documentElement.style,c=0;c<r.length;c++)if(r[c]in a)return r[c];return!1}function Cn(r,a,c){var m=a||new te(0,0);r.style[$a]=(Ee.ie3d?"translate("+m.x+"px,"+m.y+"px)":"translate3d("+m.x+"px,"+m.y+"px,0)")+(c?" scale("+c+")":"")}function _t(r,a){r._leaflet_pos=a,Ee.any3d?Cn(r,a):(r.style.left=a.x+"px",r.style.top=a.y+"px")}function tr(r){return r._leaflet_pos||new te(0,0)}var Ze,gi,So;if("onselectstart"in document)Ze=function(){je(window,"selectstart",mt)},gi=function(){st(window,"selectstart",mt)};else{var Fr=mi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ze=function(){if(Fr){var r=document.documentElement.style;So=r[Fr],r[Fr]="none"}},gi=function(){Fr&&(document.documentElement.style[Fr]=So,So=void 0)}}function ko(){je(window,"dragstart",mt)}function Eo(){st(window,"dragstart",mt)}var ys,_s;function vi(r){for(;r.tabIndex===-1;)r=r.parentNode;r.style&&(Pn(),ys=r,_s=r.style.outlineStyle,r.style.outlineStyle="none",je(window,"keydown",Pn))}function Pn(){ys&&(ys.style.outlineStyle=_s,ys=void 0,_s=void 0,st(window,"keydown",Pn))}function nr(r){do r=r.parentNode;while((!r.offsetWidth||!r.offsetHeight)&&r!==document.body);return r}function Dn(r){var a=r.getBoundingClientRect();return{x:a.width/r.offsetWidth||1,y:a.height/r.offsetHeight||1,boundingClientRect:a}}var ws={__proto__:null,TRANSFORM:$a,TRANSITION:hi,TRANSITION_END:gs,get:En,getStyle:vs,create:Ue,remove:ct,empty:xo,toFront:fi,toBack:er,hasClass:pi,addClass:De,removeClass:at,setClass:qa,getClass:bo,setOpacity:Vt,testProp:mi,setTransform:Cn,setPosition:_t,getPosition:tr,get disableTextSelection(){return Ze},get enableTextSelection(){return gi},disableImageDrag:ko,enableImageDrag:Eo,preventOutline:vi,restoreOutline:Pn,getSizedParentNode:nr,getScale:Dn};function je(r,a,c,m){if(a&&typeof a=="object")for(var w in a)Za(r,
304w,a[w],c);else{a=F(a);for(var C=0,I=a.length;C<I;C++)Za(r,a[C],c,m)}return this}var Nt="_leaflet_events";function st(r,a,c,m){if(arguments.length===1)Va(r),delete r[Nt];else if(a&&typeof a=="object")for(var w in a)Co(r,w,a[w],c);else if(a=F(a),arguments.length===2)Va(r,function(Z){return j(a,Z)!==-1});else for(var C=0,I=a.length;C<I;C++)Co(r,a[C],c,m);return this}function Va(r,a){for(var c in r[Nt]){var m=c.split(/\d/)[0];(!a||a(m))&&Co(r,m,null,null,c)}}var Br={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Za(r,a,c,m){var w=a+y(c)+(m?"_"+y(m):"");if(r[Nt]&&r[Nt][w])return this;var C=function(Z){return c.call(m||r,Z||window.event)},I=C;!Ee.touchNative&&Ee.pointer&&a.indexOf("touch")===0?C=Rd(r,a,C):Ee.touch&&a==="dblclick"?C=xu(r,C):"addEventListener"in r?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?r.addEventListener(Br[a]||a,C,Ee.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(C=function(Z){Z=Z||window.event,Ss(r,Z)&&I(Z)},r.addEventListener(Br[a],C,!1)):r.addEventListener(a,I,!1):r.attachEvent("on"+a,C),r[Nt]=r[Nt]||{},r[Nt][w]=C}function Co(r,a,c,m,w){w=w||a+y(c)+(m?"_"+y(m):"");var C=r[Nt]&&r[Nt][w];if(!C)return this;!Ee.touchNative&&Ee.pointer&&a.indexOf("touch")===0?yu(r,a,C):Ee.touch&&a==="dblclick"?wo(r,C):"removeEventListener"in r?r.removeEventListener(Br[a]||a,C,!1):r.detachEvent("on"+a,C),r[Nt][w]=null}function Fn(r){return r.stopPropagation?r.stopPropagation():r.originalEvent?r.originalEvent._stopped=!0:r.cancelBubble=!0,this}function Po(r){return Za(r,"wheel",Fn),this}function xs(r){return je(r,"mousedown touchstart dblclick contextmenu",Fn),r._leaflet_disable_click=!0,this}function mt(r){return r.preventDefault?r.preventDefault():r.returnValue=!1,this}function Tn(r){return mt(r),Fn(r),this}function Ur(r){if(r.composedPath)return r.composedPath();for(var a=[],c=r.target;c;)a.push(c),c=c.parentNode;return a}function bs(r,a){if(!a)return new te(r.clientX,r.clientY);var c=Dn(a),m=c.boundingClientRect;return new te((r.clientX-m.left)/c.x-a.clientLeft,(r.clientY-m.top)/c.y-a.clientTop)}var jd=Ee.linux&&Ee.chrome?window.devicePixelRatio:Ee.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Su(r){return Ee.edge?r.wheelDeltaY/2:r.deltaY&&r.deltaMode===0?-r.deltaY/jd:r.deltaY&&r.deltaMode===1?-r.deltaY*20:r.deltaY&&r.deltaMode===2?-r.deltaY*60:r.deltaX||r.deltaZ?0:r.wheelDelta?(r.wheelDeltaY||r.wheelDelta)/2:r.detail&&Math.abs(r.detail)<32765?-r.detail*20:r.detail?r.detail/-32765*60:0}function Ss(r,a){var c=a.relatedTarget;if(!c)return!0;try{for(;c&&c!==r;)c=c.parentNode}catch{return!1}return c!==r}var To={__proto__:null,on:je,off:st,stopPropagation:Fn,disableScrollPropagation:Po,disableClickPropagation:xs,preventDefault:mt,stop:Tn,getPropagationPath:Ur,getMousePosition:bs,getWheelDelta:Su,isExternalTarget:Ss,addListener:je,removeListener:st},No=Be.extend({run:function(r,a,c,m){this.stop(),this._el=r,this._inProgress=!0,this._duration=c||.25,this._easeOutPower=1/Math.max(m||.5,.2),this._startPos=tr(r),this._offset=a.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=pe(this._animate,this),this._step()},_step:function(r){var a=+new Date-this._startTime,c=this._duration*1e3;a<c?this._runFrame(this._easeOut(a/c),r):(this._runFrame(1),this._complete())},_runFrame:function(r,a){var c=this._startPos.add(this._offset.multiplyBy(r));a&&c._round(),_t(this._el,c),this.fire("step")},_complete:function(){Oe(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(r){return 1-Math.pow(1-r,this._easeOutPower)}}),qe=Be.extend({options:{crs:nn,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(r,a){a=T(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(r),this._initLayout(),this._onResize=f(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(ne(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=hi&&Ee.any3d&&!Ee.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),je(this._proxy,gs,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 1,355 bytes, line 304
304,setView:function(r,a,c){if(a=a===void 0?this._zoom:this._limitZoom(a),r=this._limitCenter(ne(r),a,this.options.maxBounds),c=c||{},this._stop(),this._loaded&&!c.reset&&c!==!0){c.animate!==void 0&&(c.zoom=u({animate:c.animate},c.zoom),c.pan=u({animate:c.animate,duration:c.duration},c.pan));var m=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(r,a,c.zoom):this._tryAnimatedPan(r,c.pan);if(m)return clearTimeout(this._sizeTimer),this}return this._resetView(r,a,c.pan&&c.pan.noMoveStart),this},setZoom:function(r,a){return this._loaded?this.setView(this.getCenter(),r,{zoom:a}):(this._zoom=r,this)},zoomIn:function(r,a){return r=r||(Ee.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+r,a)},zoomOut:function(r,a){return r=r||(Ee.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-r,a)},setZoomAround:function(r,a,c){var m=this.getZoomScale(a),w=this.getSize().divideBy(2),C=r instanceof te?r:this.latLngToContainerPoint(r),I=C.subtract(w).multiplyBy(1-1/m),Z=this.containerPointToLatLng(w.add(I));return this.setView(Z,a,{zoom:c})},_getBoundsCenterZoom:function(r,a){a=a||{},r=r.getBounds?r.getBounds():me(r);var c=V(a.paddingTopLeft||a.padding||[0,0]),m=V(a.paddingBottomRight||a.padding||[0,0]),w=this.getBoundsZoom(r,!1,c.add(m));if(w=typeof a.maxZoom=="number"?Math.min(a.maxZoom,w):w,w===1/0)return{center:r.getCenter(),zoom:w};
304var C=m.subtract(c).divideBy(2),I=this.project(r.getSouthWest(),w),Z=this.project(r.getNorthEast(),w),X=this.unproject(I.add(Z).divideBy(2).add(C),w);return{center:X,zoom:w}},fitBounds:function(r,a){if(r=me(r),!r.isValid())throw new Error("Bounds are not valid.");var c=this._getBoundsCenterZoom(r,a);return this.setView(c.center,c.zoom,a)},fitWorld:function(r){return this.fitBounds([[-90,-180],[90,180]],r)},panTo:function(r,a){return this.setView(r,this._zoom,{pan:a})},panBy:function(r,a){if(r=V(r).round(),a=a||{},!r.x&&!r.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(r))return this._resetView(this.unproject(this.project(this.getCenter()).add(r)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new No,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){De(this._mapPane,"leaflet-pan-anim");var c=this._getMapPanePos().subtract(r).round();this._panAnim.run(this._mapPane,c,a.duration||.25,a.easeLinearity)}else this._rawPanBy(r),this.fire("move").fire("moveend");return this},flyTo:function(r,a,c){if(c=c||{},c.animate===!1||!Ee.any3d)return this.setView(r,a,c);this._stop();var m=this.project(this.getCenter()),w=this.project(r),C=this.getSize(),I=this._zoom;r=ne(r),a=a===void 0?I:a;var Z=Math.max(C.x,C.y),X=Z*this.getZoomScale(I,a),re=w.distanceTo(m)||1,he=1.42,Te=he*he;function He(tt){var Oi=tt?-1:1,Kd=tt?X:Z,Gd=X*X-Z*Z+Oi*Te*Te*re*re,Kr=2*Kd*Te*re,Gr=Gd/Kr,Qr=Math.sqrt(Gr*Gr+1)-Gr,Wo=Qr<1e-9?-18:Math.log(Qr);return Wo}function Lt(tt){return(Math.exp(tt)-Math.exp(-tt))/2}function Et(tt){return(Math.exp(tt)+Math.exp(-tt))/2}function an(tt){return Lt(tt)/Et(tt)}var Kt=He(0);function Li(tt){return Z*(Et(Kt)/Et(Kt+he*tt))}function pl(tt){return Z*(Et(Kt)*an(Kt+he*tt)-Lt(Kt))/Te}function Er(tt){return 1-Math.pow(1-tt,1.5)}var $u=Date.now(),Zr=(He(1)-Kt)/he,Wn=c.duration?1e3*c.duration:1e3*Zr*.8;function Ri(){var tt=(Date.now()-$u)/Wn,Oi=Er(tt)*Zr;tt<=1?(this._flyToFrame=pe(Ri,this),this._move(this.unproject(m.add(w.subtract(m).multiplyBy(pl(Oi)/re)),I),this.get
vendor: 2,285 bytes, line 304
304ScaleZoom(Z/Li(Oi),I),{flyTo:!0})):this._move(r,a)._moveEnd(!0)}return this._moveStart(!0,c.noMoveStart),Ri.call(this),this},flyToBounds:function(r,a){var c=this._getBoundsCenterZoom(r,a);return this.flyTo(c.center,c.zoom,a)},setMaxBounds:function(r){return r=me(r),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),r.isValid()?(this.options.maxBounds=r,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(r){var a=this.options.minZoom;return this.options.minZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(r):this},setMaxZoom:function(r){var a=this.options.maxZoom;return this.options.maxZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(r):this},panInsideBounds:function(r,a){this._enforcingBounds=!0;var c=this.getCenter(),m=this._limitCenter(c,this._zoom,me(r));return c.equals(m)||this.panTo(m,a),this._enforcingBounds=!1,this},panInside:function(r,a){a=a||{};var c=V(a.paddingTopLeft||a.padding||[0,0]),m=V(a.paddingBottomRight||a.padding||[0,0]),w=this.project(this.getCenter()),C=this.project(r),I=this.getPixelBounds(),Z=ee([I.min.add(c),I.max.subtract(m)]),X=Z.getSize();if(!Z.contains(C)){this._enforcingBounds=!0;var re=C.subtract(Z.getCenter()),he=Z.extend(C).getSize().subtract(X);w.x+=re.x<0?-he.x:he.x,w.y+=re.y<0?-he.y:he.y,this.panTo(this.unproject(w),a),this._enforcingBounds=!1}return this},invalidateSize:function(r){if(!this._loaded)return this;r=u({animate:!1,pan:!0},r===!0?{animate:!0}:r);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var c=this.getSize(),m=a.divideBy(2).round(),w=c.divideBy(2).round(),C=m.subtract(w);return!C.x&&!C.y?this:(r.animate&&r.pan?this.panBy(C):(r.pan&&this._rawPanBy(C),this.fire("move"),r.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(f(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:c}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(r){if(r=this._locateOptions=u({timeout:1e4,watch:!1}
304,r),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=f(this._handleGeolocationResponse,this),c=f(this._handleGeolocationError,this);return r.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,c,r):navigator.geolocation.getCurrentPosition(a,c,r),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(r){if(this._container._leaflet_id){var a=r.code,c=r.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+c+"."})}},_handleGeolocationResponse:function(r){if(this._container._leaflet_id){var a=r.coords.latitude,c=r.coords.longitude,m=new ce(a,c),w=m.toBounds(r.coords.accuracy*2),C=this._locateOptions;if(C.setView){var I=this.getBoundsZoom(w);this.setView(m,C.maxZoom?Math.min(I,C.maxZoom):I)}var Z={latlng:m,bounds:w,timestamp:r.timestamp};for(var X in r.coords)typeof r.coords[X]=="number"&&(Z[X]=r.coords[X]);this.fire("locationfound",Z)}},addHandler:function(r,a){if(!a)return this;var c=this[r]=new a(this);return this._handlers.push(c),this.options[r]&&c.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ct(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Oe(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var r;for(r in this._layers)this._layers[r].remove();for(r in this._panes)ct(this._panes[r]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(r,a){var c="leaflet-pane"+(r?" leaflet-"+r.replace("Pane","")+"-pane":""),m=Ue("div",c,a||this._mapPane);return r&&(this._panes[r]=m),m},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var r=this.getPixelBounds(),a=this.unproject(r.getBottomLeft()),c=this.unproject(r.getTopRight());return new _e(a,c)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(r,a,c){r=me(r),c=V(c||[0,0]);var m=this.getZoom()||0,w=this.getMinZoom(),C=this.getMaxZoom(),I=r.getNorthWest(),Z=r.getSouthEast(),X=this.getSize().subtract(c),re=ee(this.project(Z,m),this.project(I,m)).getSize(),he=Ee.any3d?this.options.zoomSnap:1,Te=X.x/re.x,He=X.y/re.y,Lt=a?Math.max(Te,He):Math.min(Te,He);return m=this.getScaleZoom(Lt,m),he&&(m=Math.round(m/(he/100))*(he/100),m=a?Math.ceil(m/he)*he:Math.floor(m/he)*he),Math.max(w,Math.min(C,m))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new te(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(r,a){var c=this._getTopLeftPoint(r,a);return new z(c,c.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(r){return this.options.crs.getProjectedBounds(r===void 0?this.getZoom():r)},getPane:function(r){return typeof r=="string"?this._panes[r]:r},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(r,a){var c=this.options.crs;
304return a=a===void 0?this._zoom:a,c.scale(r)/c.scale(a)},getScaleZoom:function(r,a){var c=this.options.crs;a=a===void 0?this._zoom:a;var m=c.zoom(r*c.scale(a));return isNaN(m)?1/0:m},project:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(ne(r),a)},unproject:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(V(r),a)},layerPointToLatLng:function(r){var a=V(r).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(r){var a=this.project(ne(r))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(r){return this.options.crs.wrapLatLng(ne(r))},wrapLatLngBounds:function(r){return this.options.crs.wrapLatLngBounds(me(r))},distance:function(r,a){return this.options.crs.distance(ne(r),ne(a))},containerPointToLayerPoint:function(r){return V(r).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(r){return V(r).add(this._getMapPanePos())},containerPointToLatLng:function(r){var a=this.containerPointToLayerPoint(V(r));
304return this.layerPointToLatLng(a)},latLngToContainerPoint:function(r){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ne(r)))},mouseEventToContainerPoint:function(r){return bs(r,this._container)},mouseEventToLayerPoint:function(r){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(r))},mouseEventToLatLng:function(r){return this.layerPointToLatLng(this.mouseEventToLayerPoint(r))},_initContainer:function(r){var a=this._container=En(r);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");je(a,"scroll",this._onScroll,this),this._containerId=y(a)},_initLayout:function(){var r=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ee.any3d,De(r,"leaflet-container"+(Ee.touch?" leaflet-touch":"")+(Ee.retina?" leaflet-retina":"")+(Ee.ielt9?" leaflet-oldie":"")+(Ee.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=vs(r,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(r.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var r=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),_t(this._mapPane,new te(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(De(r.markerPane,"leaflet-zoom-hide"),De(r.shadowPane,"leaflet-zoom-hide"))},_resetView:function(r,a,c){_t(this._mapPane,new te(0,0));var m=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var w=this._zoom!==a;this._moveStart(w,c)._move(r,a)._moveEnd(w),this.fire("viewreset"),m&&this.fire("load")},_moveStart:function(r,a){return r&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(r,a,c,m){a===void 0&&(a=this._zoom);var w=this._zoom!==a;return this._zoom=a,this._lastCenter=r,this._pixelOrigin=this._getNewPixelOrigin(r),m?c&&c.pinch&&this.fire("zoom",c):((w||c&&c.pinch)&&this.fire("zoom",c),this.fire("move",c)),this},_moveEnd:function(r){return r&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Oe(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(r){_t(this._mapPane,this._getMapPanePos().subtract(r))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(r){this._targets={},this._targets[y(this._container)]=this;var a=r?st:je;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),Ee.any3d&&this.options.transform3DLimit&&(r?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Oe(this._resizeRequest),this._resizeRequest=pe(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var r=this._getMapPanePos();Math.max(Math.abs(r.x),Math.abs(r.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(r,a){for(var c=[],m,w=a==="mouseout"||a==="mouseover",C=r.target||r.srcElement,I=!1;C;){if(m=this._targets[y(C)],m&&(a==="click"||a==="preclick")&&this._draggableMoved(m)){I=!0;break}if(m&&m.listens(a,!0)&&(w&&!Ss(C,r)||(c.push(m),w))||C===this._container)break;C=C.parentNode}return!c.length&&!I&&!w&&this.listens(a,!0)&&(c=[this]),c},_isClickDisabled:function(r){for(;r&&r!==this._container;){if(r._leaflet_disable_click)return!0;r=r.parentNode}},_handleDOMEvent:function(r){var a=r.target||r.srcElement;if(!(!this._loaded||a._leaflet_disable_events||r.type==="click"&&this._isClickDisabled(a))){var c=r.type;c==="mousedown"&&vi(a),this._fireDOMEvent(r,c)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(r,a,c){if(r.type==="click"){var m=u({},r);m.type="preclick",this._fireDOMEvent(m,m.type,c)}var w=this._findEventTargets(r,a);if(c){for(var C=[],I=0;I<c.length;I++)c[I].listens(a,!0)&&C.push(c[I]);w=C.concat(w)}if(w.length){a==="contextmenu"&&mt(r);var Z=w[0],X={originalEvent:r};
304if(r.type!=="keypress"&&r.type!=="keydown"&&r.type!=="keyup"){var re=Z.getLatLng&&(!Z._radius||Z._radius<=10);X.containerPoint=re?this.latLngToContainerPoint(Z.getLatLng()):this.mouseEventToContainerPoint(r),X.layerPoint=this.containerPointToLayerPoint(X.containerPoint),X.latlng=re?Z.getLatLng():this.layerPointToLatLng(X.layerPoint)}for(I=0;I<w.length;I++)if(w[I].fire(a,X,!0),X.originalEvent._stopped||w[I].options.bubblingMouseEvents===!1&&j(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(r){return r=r.dragging&&r.dragging.enabled()?r:this,r.dragging&&r.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var r=0,a=this._handlers.length;r<a;r++)this._handlers[r].disable()},whenReady:function(r,a){return this._loaded?r.call(a||this,{target:this}):this.on("load",r,a),this},_getMapPanePos:function(){return tr(this._mapPane)||new te(0,0)},_moved:function(){var r=this._getMapPanePos();return r&&!r.equals([0,0])},_getTopLeftPoint:function(r,a){var c=r&&a!==void 0?this._getNewPixelOrigin(r,a):this.getPixelOrigin();return c.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(r,a){var c=this.getSize()._divideBy(2);return this.project(r,a)._subtract(c)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(r,a,c){var m=this._getNewPixelOrigin(c,a);return this.project(r,a)._subtract(m)},_latLngBoundsToNewLayerBounds:function(r,a,c){var m=this._getNewPixelOrigin(c,a);
vendor: 14,318 bytes, line 304
304return ee([this.project(r.getSouthWest(),a)._subtract(m),this.project(r.getNorthWest(),a)._subtract(m),this.project(r.getSouthEast(),a)._subtract(m),this.project(r.getNorthEast(),a)._subtract(m)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(r){return this.latLngToLayerPoint(r).subtract(this._getCenterLayerPoint())},_limitCenter:function(r,a,c){if(!c)return r;var m=this.project(r,a),w=this.getSize().divideBy(2),C=new z(m.subtract(w),m.add(w)),I=this._getBoundsOffset(C,c,a);return Math.abs(I.x)<=1&&Math.abs(I.y)<=1?r:this.unproject(m.add(I),a)},_limitOffset:function(r,a){if(!a)return r;var c=this.getPixelBounds(),m=new z(c.min.add(r),c.max.add(r));return r.add(this._getBoundsOffset(m,a))},_getBoundsOffset:function(r,a,c){var m=ee(this.project(a.getNorthEast(),c),this.project(a.getSouthWest(),c)),w=m.min.subtract(r.min),C=m.max.subtract(r.max),I=this._rebound(w.x,-C.x),Z=this._rebound(w.y,-C.y);return new te(I,Z)},_rebound:function(r,a){return r+a>0?Math.round(r-a)/2:Math.max(0,Math.ceil(r))-Math.max(0,Math.floor(a))},_limitZoom:function(r){var a=this.getMinZoom(),c=this.getMaxZoom(),m=Ee.any3d?this.options.zoomSnap:1;return m&&(r=Math.round(r/m)*m),Math.max(a,Math.min(c,r))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){at(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(r,a){var c=this._getCenterOffset(r)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(c)?!1:(this.panBy(c,a),!0)},_createAnimProxy:function(){var r=this._proxy=Ue("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(r),this.on("zoomanim",function(a){var c=$a,m=this._proxy.style[c];Cn(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),m===this._proxy.style[c]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ct(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var r=this.getCenter(),a=this.getZoom();Cn(this._proxy,this.project(r,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(r){this._animatingZoom&&r.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(r,a,c){if(this._animatingZoom)return!0;if(c=c||{},!this._zoomAnimated||c.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var m=this.getZoomScale(a),w=this._getCenterOffset(r)._divideBy(1-1/m);return c.animate!==!0&&!this.getSize().contains(w)?!1:(pe(function(){this._moveStart(!0,c.noMoveStart||!1)._animateZoom(r,a,!0)},this),!0)},_animateZoom:function(r,a,c,m){this._mapPane&&(c&&(this._animatingZoom=!0,this._animateToCenter=r,this._animateToZoom=a,De(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:r,zoom:a,noUpdate:m}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(f(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&at(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function yr(r,a){return new qe(r,a)}var sn=Fe.extend({options:{position:"topright"},initialize:function(r){T(this,r)},getPosition:function(){return this.options.position},setPosition:function(r){var a=this._map;return a&&a.removeControl(this),this.options.position=r,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(r){this.remove(),this._map=r;var a=this._container=this.onAdd(r),c=this.getPosition(),m=r._controlCorners[c];return De(a,"leaflet-control"),c.indexOf("bottom")!==-1?m.insertBefore(a,m.firstChild):m.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ct(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(r){this._map&&r&&r.screenX>0&&r.screenY>0&&this._map.getContainer().focus()}}),_r=function(r){return new sn(r)};qe.include({addControl:function(r){return r.addTo(this),this},removeControl:function(r){return r.remove(),this},_initControlPos:function(){var r=this._controlCorners={},a="leaflet-",c=this._controlContainer=Ue("div",a+"control-container",this._container);function m(w,C){var I=a+w+" "+a+C;r[w+C]=Ue("div",I,c)}m("top","left"),m("top","right"),m("bottom","left"),m("bottom","right")},_clearControlPos:function(){for(var r in this._controlCorners)ct(this._controlCorners[r]);ct(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ka=sn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(r,a,c,m){return c<m?-1:m<c?1:0}},initialize:function(r,a,c){T(this,c),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var m in r)this._addLayer(r[m],m);for(m in a)this._addLayer(a[m],m,!0)},onAdd:function(r){this._initLayout(),this._update(),this._map=r,r.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(r){return sn.prototype.addTo.call(this,r),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var r=0;r<this._layers.length;r++)this._layers[r].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(r,a){return this._addLayer(r,a),this._map?this._update():this},addOverlay:function(r,a){return this._addLayer(r,a,!0),this._map?this._update():this},removeLayer:function(r){r.off("add remove",this._onLayerChange,this);var a=this._getLayer(y(r));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){De(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var r=this._map.getSize().y-(this._container.offsetTop+50);return r<this._section.clientHeight?(De(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=r+"px"):at(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return at(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var r="leaflet-control-layers",a=this._container=Ue("div",r),c=this.options.collapsed;a.setAttribute("aria-haspopup",!0),xs(a),Po(a);var m=this._section=Ue("section",r+"-list");c&&(this._map.on("click",this.collapse,this),je(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var w=this._layersLink=Ue("a",r+"-toggle",a);w.href="#",w.title="Layers",w.setAttribute("role","button"),je(w,{keydown:function(C){C.keyCode===13&&this._expandSafely()},click:function(C){mt(C),this._expandSafely()}},this),c||this.expand(),this._baseLayersList=Ue("div",r+"-base",m),this._separator=Ue("div",r+"-separator",m),this._overlaysList=Ue("div",r+"-overlays",m),a.appendChild(m)},_getLayer:function(r){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&y(this._layers[a].layer)===r)return this._layers[a]},_addLayer:function(r,a,c){this._map&&r.on("add remove",this._onLayerChange,this),this._layers.push({layer:r,name:a,overlay:c}),this.options.sortLayers&&this._layers.sort(f(function(m,w){return this.options.sortFunction(m.layer,w.layer,m.name,w.name)},this)),this.options.autoZIndex&&r.setZIndex&&(this._lastZIndex++,r.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;xo(this._baseLayersList),xo(this._overlaysList),this._layerControlInputs=[];var r,a,c,m,w=0;for(c=0;c<this._layers.length;c++)m=this._layers[c],this._addItem(m),a=a||m.overlay,r=r||!m.overlay,w+=m.overlay?0:1;return this.options.hideSingleBase&&(r=r&&w>1,this._baseLayersList.style.display=r?"":"none"),this._separator.style.display=a&&r?"":"none",this},_onLayerChange:function(r){this._handlingClick||this._update();var a=this._getLayer(y(r.target)),c=a.overlay?r.type==="add"?"overlayadd":"overlayremove":r.type==="add"?"baselayerchange":null;c&&this._map.fire(c,a)},_createRadioElement:function(r,a){var c='<input type="radio" class="leaflet-control-layers-selector" name="'+r+'"'+(a?' checked="checked"':"")+"/>",m=document.createElement("div");return m.innerHTML=c,m.firstChild},_addItem:function(r){var a=document.createElement("label"),c=this._map.hasLayer(r.layer),m;r.overlay?(m=document.createElement("input"),m.type="checkbox",m.className="leaflet-control-layers-selector",m.defaultChecked=c):m=this._createRadioElement("leaflet-base-layers_"+y(this),c),this._layerControlInputs.push(m),m.layerId=y(r.layer),je(m,"click",this._onInputClick,this);var w=document.createElement("span");w.innerHTML=" "+r.name;var C=document.createElement("span");a.appendChild(C),C.appendChild(m),C.appendChild(w);var I=r.overlay?this._overlaysList:this._baseLayersList;return I.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var r=this._layerControlInputs,a,c,m=[],w=[];this._handlingClick=!0;for(var C=r.length-1;C>=0;C--)a=r[C],c=this._getLayer(a.layerId).layer,a.checked?m.push(c):a.checked||w.push(c);for(C=0;C<w.length;C++)this._map.hasLayer(w[C])&&this._map.removeLayer(w[C]);for(C=0;C<m.length;C++)this._map.hasLayer(m[C])||this._map.addLayer(m[C]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var r=this._layerControlInputs,a,c,m=this._map.getZoom(),w=r.length-1;w>=0;w--)a=r[w],c=this._getLayer(a.layerId).layer,a.disabled=c.options.minZoom!==void 0&&m<c.options.minZoom||c.options.maxZoom!==void 0&&m>c.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var r=this._section;this._preventClick=!0,je(r,"click",mt),this.expand();var a=this;setTimeout(function(){st(r,"click",mt),a._preventClick=!1})}}),Lo=function(r,a,c){return new Ka(r,a,c)},yi=sn.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(r){var a="leaflet-control-zoom",c=Ue("div",a+" leaflet-bar"),m=this.options;return this._zoomInButton=this._createButton(m.zoomInText,m.zoomInTitle,a+"-in",c,this._zoomIn),this._zoomOutButton=this._createButton(m.zoomOutText,m.zoomOutTitle,a+"-out",c,this._zoomOut),this._updateDisabled(),r.on("zoomend zoomlevelschange",this._updateDisabled,this),c},onRemove:function(r){r.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(r){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(r.shiftKey?3:1))},_zoomOut:function(r){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(r.shiftKey?3:1))},_createButton:function(r,a,c,m,w){var C=Ue("a",c,m);return C.innerHTML=r,C.href="#",C.title=a,C.setAttribute("role","button"),C.setAttribute("aria-label",a),xs(C),je(C,"click",Tn),je(C,"click",w,this),je(C,"click",this._refocusOnMap,this),C},_updateDisabled:function(){var r=this._map,a="leaflet-disabled";at(this._zoomInButton,a),at(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||r._zoom===r.getMinZoom())&&(De(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||r._zoom===r.getMaxZoom())&&(De(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});qe.mergeOptions({zoomControl:!0}),qe.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new yi,this.addControl(this.zoomControl))});var ku=function(r){return new yi(r)},Zt=sn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(r){var a="leaflet-control-scale",c=Ue("div",a),m=this.options;return this._addScales(m,a+"-line",c),r.on(m.updateWhenIdle?"moveend":"move",this._update,this),r.whenReady(this._update,this),c},onRemove:function(r){r.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(r,a,c){r.metric&&(this._mScale=Ue("div",a,c)),r.imperial&&(this._iScale=Ue("div",a,c))},_update:function(){var r=this._map,a=r.getSize().y/2,c=r.distance(r.containerPointToLatLng([0,a]),r.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(c)},_updateScales:function(r){this.options.metric&&r&&this._updateMetric(r),this.options.imperial&&r&&this._updateImperial(r)},_updateMetric:function(r){var a=this._getRoundNum(r),c=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,c,a/r)},_updateImperial:function(r){var a=r*3.2808399,c,m,w;a>5280?(c=a/5280,m=this._getRoundNum(c),this._updateScale(this._iScale,m+" mi",m/c)):(w=this._getRoundNum(a),this._updateScale(this._iScale,w+" ft",w/a))},_updateScale:function(r,a,c){r.style.width=Math.round(this.options.maxWidth*c)+"px",r.innerHTML=a},_getRoundNum:function(r){var a=Math.pow(10,(Math.floor(r)+"").length-1),c=r/a;return c=c>=10?10:c>=5?5:c>=3?3:c>=2?2:1,a*c}}),_i=function(r){return new Zt(r)},Ga='<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>',Hr=sn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ee.inlineSvg?Ga+" ":"")+"Leaflet</a>"},initialize:function(r){T(this,r),this._attributions={}}
304,onAdd:function(r){r.attributionControl=this,this._container=Ue("div","leaflet-control-attribution"),xs(this._container);for(var a in r._layers)r._layers[a].getAttribution&&this.addAttribution(r._layers[a].getAttribution());return this._update(),r.on("layeradd",this._addAttribution,this),this._container},onRemove:function(r){r.off("layeradd",this._addAttribution,this)},_addAttribution:function(r){r.layer.getAttribution&&(this.addAttribution(r.layer.getAttribution()),r.layer.once("remove",function(){this.removeAttribution(r.layer.getAttribution())},this))},setPrefix:function(r){return this.options.prefix=r,this._update(),this},addAttribution:function(r){return r?(this._attributions[r]||(this._attributions[r]=0),this._attributions[r]++,this._update(),this):this},removeAttribution:function(r){return r?(this._attributions[r]&&(this._attributions[r]--,this._update()),this):this},_update:function(){if(this._map){var r=[];for(var a in this._attributions)this._attributions[a]&&r.push(a);var c=[];this.options.prefix&&c.push(this.options.prefix),r.length&&c.push(r.join(", ")),this._container.innerHTML=c.join(' <span aria-hidden="true">|</span> ')}}});qe.mergeOptions({attributionControl:!0}),qe.addInitHook(function(){this.options.attributionControl&&new Hr().addTo(this)});var Md=function(r){return new Hr(r)};sn.Layers=Ka,sn.Zoom=yi,sn.Scale=Zt,sn.Attribution=Hr,_r.layers=Lo,_r.zoom=ku,_r.scale=_i,_r.attribution=Md;var hn=Fe.extend({initialize:function(r){this._map=r},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});hn.addTo=function(r,a){return r.addHandler(a,this),this};var Qa={Events:ye},wi=Ee.touch?"touchstart mousedown":"mousedown",Nn=Be.extend({options:{clickTolerance:3},initialize:function(r,a,c,m){T(this,m),this._element=r,this._dragStartTarget=a||r,this._preventOutline=c},enable:function(){this._enabled||(je(this._dragStartTarget,wi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Nn._dragging===this&&this.finishDrag(!0),st(this._dragStartTarget,wi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(r){if(this._enabled&&(this._moved=!1,!pi(this._element,"leaflet-zoom-anim"))){if(r.touches&&r.touches.length!==1){Nn._dragging===this&&this.finishDrag();return}if(!(Nn._dragging||r.shiftKey||r.which!==1&&r.button!==1&&!r.touches)&&(Nn._dragging=this,this._preventOutline&&vi(this._element),ko(),Ze(),!this._moving)){this.fire("down");var a=r.touches?r.touches[0]:r,c=nr(this._element);this._startPoint=new te(a.clientX,a.clientY),this._startPos=tr(this._element),this._parentScale=Dn(c);var m=r.type==="mousedown";je(document,m?"mousemove":"touchmove",this._onMove,this),je(document,m?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(r){if(this._enabled){if(r.touches&&r.touches.length>1){this._moved=!0;return}var a=r.touches&&r.touches.length===1?r.touches[0]:r,c=new te(a.clientX,a.clientY)._subtract(this._startPoint);!c.x&&!c.y||Math.abs(c.x)+Math.abs(c.y)<this.options.clickTolerance||(c.x/=this._parentScale.x,c.y/=this._parentScale.y,mt(r),this._moved||(this.fire("dragstart"),this._moved=!0,De(document.body,"leaflet-dragging"),this._lastTarget=r.target||r.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),De(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(c),this._moving=!0,this._lastEvent=r,this._updatePosition())}},_updatePosition:function(){var r={originalEvent:this._lastEvent};this.fire("predrag",r),_t(this._element,this._newPos),this.fire("drag",r)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(r){at(document.body,"leaflet-dragging"),this._lastTarget&&(at(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),st(document,"mousemove touchmove",this._onMove,this),st(document,"mouseup touchend touchcancel",this._onUp,this),Eo(),gi();var a=this._moved&&this._moving;this._moving=!1,Nn._dragging=!1,a&&this.fire("dragend",{noInertia:r,distance:this._newPos.distanceTo(this._startPos)})}});function Ya(r,a,c){var m,w=[1,4,2,8],C,I,Z,X,re,he,Te,He;for(C=0,he=r.length;C<he;C++)r[C]._code=Wr(r[C],a);for(Z=0;Z<4;Z++){for(Te=w[Z],m=[],C=0,he=r.length,I=he-1;C<he;I=C++)X=r[C],re=r[I],X._code&Te?re._code&Te||(He=Oo(re,X,Te,a,c),He._co
304de=Wr(He,a),m.push(He)):(re._code&Te&&(He=Oo(re,X,Te,a,c),He._code=Wr(He,a),m.push(He)),m.push(X));r=m}return r}function Eu(r,a){var c,m,w,C,I,Z,X,re,he;if(!r||r.length===0)throw new Error("latlngs not passed");fn(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var Te=ne([0,0]),He=me(r),Lt=He.getNorthWest().distanceTo(He.getSouthWest())*He.getNorthEast().distanceTo(He.getNorthWest());Lt<1700&&(Te=Xa(r));var Et=r.length,an=[];for(c=0;c<Et;c++){var Kt=ne(r[c]);an.push(a.project(ne([Kt.lat-Te.lat,Kt.lng-Te.lng])))}for(Z=X=re=0,c=0,m=Et-1;c<Et;m=c++)w=an[c],C=an[m],I=w.y*C.x-C.y*w.x,X+=(w.x+C.x)*I,re+=(w.y+C.y)*I,Z+=I*3;Z===0?he=an[0]:he=[X/Z,re/Z];var Li=a.unproject(V(he));return ne([Li.lat+Te.lat,Li.lng+Te.lng])}function Xa(r){for(var a=0,c=0,m=0,w=0;w<r.length;w++){var C=ne(r[w]);a+=C.lat,c+=C.lng,m++}return ne([a/m,c/m])}var Id={__proto__:null,clipPolygon:Ya,polygonCenter:Eu,centroid:Xa};function Ro(r,a){if(!a||!r.length)return r.slice();var c=a*a;return r=Fd(r,c),r=Dd(r,c),r}function Cu(r,a,c){return Math.sqrt($r(r,a,c,!0))}function zd(r,a,c){return $r(r,a,c)}function Dd(r,a){var c=r.length,m=typeof Uint8Array<"u"?Uint8Array:Array,w=new m(c);w[0]=w[c-1]=1,Ja(r,w,a,0,c-1);var C,I=[];for(C=0;C<c;C++)w[C]&&I.push(r[C]);return I}function Ja(r,a,c,m,w){var C=0,I,Z,X;for(Z=m+1;Z<=w-1;Z++)X=$r(r[Z],r[m],r[w],!0),X>C&&(I=Z,C=X);C>c&&(a[I]=1,Ja(r,a,c,m,I),Ja(r,a,c,I,w))}function Fd(r,a){for(var c=[r[0]],m=1,w=0,C=r.length;m<C;m++)Bd(r[m],r[w])>a&&(c.push(r[m]),w=m);return w<C-1&&c.push(r[C-1]),c}var el;function Pu(r,a,c,m,w){var C=m?el:Wr(r,c),I=Wr(a,c),Z,X,re;for(el=I;;){if(!(C|I))return[r,a];if(C&I)return!1;Z=C||I,X=Oo(r,a,Z,c,w),re=Wr(X,c),Z===C?(r=X,C=re):(a=X,I=re)}}function Oo(r,a,c,m,w){var C=a.x-r.x,I=a.y-r.y,Z=m.min,X=m.max,re,he;return c&8?(re=r.x+C*(X.y-r.y)/I,he=X.y):c&4?(re=r.x+C*(Z.y-r.y)/I,he=Z.y):c&2?(re=X.x,he=r.y+I*(X.x-r.x)/C):c&1&&(re=Z.x,he=r.y+I*(Z.x-r.x)/C),new te(re,he,w)}function Wr(r,a){var c=0;return r.x<a.min.x?c|=1:r.x>a.max.x&&(c|=2),r.y<a.min.y?c|=4:r.y>a.max.y&&(c|=8),c}function Bd(r,a){var c=a.x-r.x,m=a.y-r.y;return c*c+m*m}function $r(r,a,c,m){var w=a.x,C=a.y,I=c.x-w,Z=c.y-C,X=I*I+Z*Z,re;return X>0&&(re=((r.x-w)*I+(r.y-C)*Z)/X,re>1?(w=c.x,C=c.y):re>0&&(w+=I*re,C+=Z*re)),I=r.x-w,Z=r.y-C,m?I*I+Z*Z:new te(w,C)}function fn(r){return!M(r[0])||typeof r[0][0]!="object"&&typeof r[0][0]<"u"}function Tu(r){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),fn(r)}function Nu(r,a){var c,m,w,C,I,Z,X,re;if(!r||r.length===0)throw new Error("latlngs not passed");fn(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var he=ne([0,0]),Te=me(r),He=Te.getNorthWest().distanceTo(Te.getSouthWest
304())*Te.getNorthEast().distanceTo(Te.getNorthWest());He<1700&&(he=Xa(r));var Lt=r.length,Et=[];for(c=0;c<Lt;c++){var an=ne(r[c]);Et.push(a.project(ne([an.lat-he.lat,an.lng-he.lng])))}for(c=0,m=0;c<Lt-1;c++)m+=Et[c].distanceTo(Et[c+1])/2;if(m===0)re=Et[0];else for(c=0,C=0;c<Lt-1;c++)if(I=Et[c],Z=Et[c+1],w=I.distanceTo(Z),C+=w,C>m){X=(C-m)/w,re=[Z.x-X*(Z.x-I.x),Z.y-X*(Z.y-I.y)];break}var Kt=a.unproject(V(re));return ne([Kt.lat+he.lat,Kt.lng+he.lng])}var Lu={__proto__:null,simplify:Ro,pointToSegmentDistance:Cu,closestPointOnSegment:zd,clipSegment:Pu,_getEdgeIntersection:Oo,_getBitCode:Wr,_sqClosestPointOnSegment:$r,isFlat:fn,_flat:Tu,polylineCenter:Nu},tl={project:function(r){return new te(r.lng,r.lat)},unproject:function(r){return new ce(r.y,r.x)},bounds:new z([-180,-90],[180,90])},nl={R:6378137,R_MINOR:6356752314245179e-9,bounds:new z([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(r){var a=Math.PI/180,c=this.R,m=r.lat*a,w=this.R_MINOR/c,C=Math.sqrt(1-w*w),I=C*Math.sin(m),Z=Math.tan(Math.PI/4-m/2)/Math.pow((1-I)/(1+I),C/2);return m=-c*Math.log(Math.max(Z,1e-10)),new te(r.lng*a*c,m)},unproject:function(r){for(var a=180/Math.PI,c=this.R,m=this.R_MINOR/c,w=Math.sqrt(1-m*m),C=Math.exp(-r.y/c),I=Math.PI/2-2*Math.atan(C),Z=0,X=.1,re;Z<15&&Math.abs(X)>1e-7;Z++)re=w*Math.sin(I),re=Math.pow((1-re)/(1+re),w/2),X=Math.PI/2-2*Math.atan(C*re)-I,I+=X;return new ce(I*a,r.x*a/c)}},Ud={__proto__:null,LonLat:tl,Mercator:nl,SphericalMercator:yt},Hd=u({},ze,{code:"EPSG:3395",projection:nl,transformation:(function(){var r=.5/(Math.PI*nl.R);return ft(r,.5,-r,.5)})()}),Ru=u({},ze,{code:"EPSG:4326",projection:tl,transformation:ft(1/180,1,-1/180,.5)}),Wd=u({},Pe,{projection:tl,transformation:ft(1,0,-1,0),scale:function(r){return Math.pow(2,r)},zoom:function(r){return Math.log(r)/Math.LN2},distance:function(r,a){var c=a.lng-r.lng,m=a.lat-r.lat;return Math.sqrt(c*c+m*m)},infinite:!0});Pe.Earth=ze,Pe.EPSG3395=Hd,Pe.EPSG3857=nn,Pe.EPSG900913=dn,Pe.EPSG4326=Ru,Pe.Simple=Wd;var Ln=Be.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(r){return r.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(r){return r&&r.removeLayer(this),this},getPane:function(r){return this._map.getPane(r?this.options[r]||r:this.options.pane)},addInteractiveTarget:function(r){return this._map._targets[y(r)]=this,this},removeInteractiveTarget:function(r){return delete this._map._targets[y(r)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(r){var a=r.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var c=this.getEvents();a.on(c,this),this.once("remove",function(){a.off(c,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});qe.include({addLayer:function(r){if(!r._layerAdd)throw new Error("The provided object is not a Layer.");var a=y(r);return this._layers[a]?this:(this._layers[a]=r,r._mapToAdd=this,r.beforeAdd&&r.beforeAdd(this),this.whenReady(r._layerAdd,r),this)},removeLayer:function(r){var a=y(r);return this._layers[a]?(this._loaded&&r.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:r}),r.fire("remove")),r._map=r._mapToAdd=null,this):this},hasLayer:function(r){return y(r)in this._layers},eachLayer:function(r,a){for(var c in this._layers)r.call(a,this._layers[c]);return this},_addLayers:function(r){r=r?M(r)?r:[r]:[];for(var a=0,c=r.length;a<c;a++)this.addLayer(r[a])},_addZoomLimit:function(r){(!isNaN(r.options.maxZoom)||!isNaN(r.options.minZoom))&&(this._zoomBoundLayers[y(r)]=r,this._updateZoomLevels())},_removeZoomLimit:function(r){var a=y(r);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var r=1/0,a=-1/0,c=this._getZoomSpan();for(var m in this._zoomBoundLayers){var w=this._zoomBoundLayers[m].options;r=w.minZoom===void 0?r:Math.min(r,w.minZoom),a=w.maxZoom===void 0?a:Math.max(a,w.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=r===1/0?void 0:r,c!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
vendor: 13,017 bytes, line 304
304om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var wr=Ln.extend({initialize:function(r,a){T(this,a),this._layers={};var c,m;if(r)for(c=0,m=r.length;c<m;c++)this.addLayer(r[c])},addLayer:function(r){var a=this.getLayerId(r);return this._layers[a]=r,this._map&&this._map.addLayer(r),this},removeLayer:function(r){var a=r in this._layers?r:this.getLayerId(r);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(r){var a=typeof r=="number"?r:this.getLayerId(r);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(r){var a=Array.prototype.slice.call(arguments,1),c,m;for(c in this._layers)m=this._layers[c],m[r]&&m[r].apply(m,a);return this},onAdd:function(r){this.eachLayer(r.addLayer,r)},onRemove:function(r){this.eachLayer(r.removeLayer,r)},eachLayer:function(r,a){for(var c in this._layers)r.call(a,this._layers[c]);return this},getLayer:function(r){return this._layers[r]},getLayers:function(){var r=[];return this.eachLayer(r.push,r),r},setZIndex:function(r){return this.invoke("setZIndex",r)},getLayerId:function(r){return y(r)}}),ks=function(r,a){return new wr(r,a)},rr=wr.extend({addLayer:function(r){return this.hasLayer(r)?this:(r.addEventParent(this),wr.prototype.addLayer.call(this,r),this.fire("layeradd",{layer:r}))},removeLayer:function(r){return this.hasLayer(r)?(r in this._layers&&(r=this._layers[r]),r.removeEventParent(this),wr.prototype.removeLayer.call(this,r),this.fire("layerremove",{layer:r})):this},setStyle:function(r){return this.invoke("setStyle",r)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var r=new _e;for(var a in this._layers){var c=this._layers[a];r.extend(c.getBounds?c.getBounds():c.getLatLng())}return r}}),Ou=function(r,a){return new rr(r,a)},qr=Fe.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(r){T(this,r)},createIcon:function(r){return this._createIcon("icon",r)},createShadow:function(r){return this._createIcon("shadow",r)},_createIcon:function(r,a){var c=this._getIconUrl(r);if(!c){if(r==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var m=this._createImg(c,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(m,r),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),m},_setIconStyles:function(r,a){var c=this.options,m=c[a+"Size"];typeof m=="number"&&(m=[m,m]);var w=V(m),C=V(a==="shadow"&&c.shadowAnchor||c.iconAnchor||w&&w.divideBy(2,!0));r.className="leaflet-marker-"+a+" "+(c.className||""),C&&(r.style.marginLeft=-C.x+"px",r.style.marginTop=-C.y+"px"),w&&(r.style.width=w.x+"px",r.style.height=w.y+"px")},_createImg:function(r,a){return a=a||document.createElement("img"),a.src=r,a},_getIconUrl:function(r){return Ee.retina&&this.options[r+"RetinaUrl"]||this.options[r+"Url"]}});function Au(r){return new qr(r)}var xi=qr.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(r){return typeof xi.imagePath!="string"&&(xi.imagePath=this._detectIconPath()),(this.options.imagePath||xi.imagePath)+qr.prototype._getIconUrl.call(this,r)},_stripUrl:function(r){var a=function(c,m,w){var C=m.exec(c);return C&&C[w]};return r=a(r,/^url\((['"])?(.+)\1\)$/,2),r&&a(r,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var r=Ue("div","leaflet-default-icon-path",document.body),a=vs(r,"background-image")||vs(r,"backgroundImage");if(document.body.removeChild(r),a=this._stripUrl(a),a)return a;var c=document.querySelector('link[href$="leaflet.css"]');return c?c.href.substring(0,c.href.length-11-1):""}}),rl=hn.extend({initialize:function(r){this._marker=r},addHooks:function(){var r=this._marker._icon;this._draggable||(this._draggable=new Nn(r,r,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),De(r,"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&&at(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(r){var a=this._marker,c=a._map,m=this._marker.options.autoPanSpeed,w=this._marker.options.autoPanPadding,C=tr(a._icon),I=c.getPixelBounds(),Z=c.getPixelOrigin(),X=ee(I.min._subtract(Z).add(w),I.max._subtract(Z).subtract(w));if(!X.contains(C)){var re=V((Math.max(X.max.x,C.x)-X.max.x)/(I.max.x-X.max.x)-(Math.min(X.min.x,C.x)-X.min.x)/(I.min.x-X.min.x),(Math.max(X.max.y,C.y)-X.max.y)/(I.max.y-X.max.y)-(Math.min(X.min.y,C.y)-X.min.y)/(I.min.y-X.min.y)).multiplyBy(m);c.panBy(re,{animate:!1}),this._draggable._newPos._add(re),this._draggable._startPos._add(re),_t(a._icon,this._draggable._newPos),this._onDrag(r),this._panRequest=pe(this._adjustPan.bind(this,r))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(r){this._marker.options.autoPan&&(Oe(this._panRequest),this._panRequest=pe(this._adjustPan.bind(this,r)))},_onDrag:function(r){var a=this._marker,c=a._shadow,m=tr(a._icon),w=a._map.layerPointToLatLng(m);c&&_t(c,m),a._latlng=w,r.latlng=w,r.oldLatLng=this._oldLatLng,a.fire("move",r).fire("drag",r)},_onDragEnd:function(r){Oe(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",r)}}),ir=Ln.extend({options:{icon:new xi,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(r,a){T(this,a),this._latlng=ne(r)},onAdd:function(r){this._zoomAnimated=this._zoomAnimated&&r.options.markerZoomAnimation,this._zoomAnimated&&r.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(r){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&r.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(r){var a=this._latlng;return this._latlng=ne(r),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(r){return this.options.zIndexOffset=r,this.update()},getIcon:function(){return this.options.icon},setIcon:function(r){return this.options.icon=r,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 r=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(r)}return this},_initIcon:function(){var r=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),c=r.icon.createIcon(this._icon),m=!1;c!==this._icon&&(this._icon&&this._removeIcon(),m=!0,r.title&&(c.title=r.title),c.tagName==="IMG"&&(c.alt=r.alt||"")),De(c,a),r.keyboard&&(c.tabIndex="0",c.setAttribute("role","button")),this._icon=c,r.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&je(c,"focus",this._panOnFocus,this);var w=r.icon.createShadow(this._shadow),C=!1;w!==this._shadow&&(this._removeShadow(),C=!0),w&&(De(w,a),w.alt=""),this._shadow=w,r.opacity<1&&this._updateOpacity(),m&&this.getPane().appendChild(this._icon),this._initInteraction(),w&&C&&this.getPane(r.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&st(this._icon,"focus",this._panOnFocus,this),ct(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ct(this._shadow),this._shadow=null},_setPos:function(r){this._icon&&_t(this._icon,r),this._shadow&&_t(this._shadow,r),this._zIndex=r.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(r){this._icon&&(this._icon.style.zIndex=this._zIndex+r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(De(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),rl)){var r=this.options.draggable;this.dragging&&(r=this.dragging.enabled(),this.dragging.disable()),this.dragging=new rl(this),r&&this.dragging.enable()}},setOpacity:function(r){return this.options.opacity=r,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var r=this.options.opacity;this._icon&&Vt(this._icon,r),this._shadow&&Vt(this._shadow,r)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var r=this._map;if(r){var a=this.options.icon.options,c=a.iconSize?V(a.iconSize):V(0,0),m=a.iconAnchor?V(a.iconAnchor):V(0,0);r.panInside(this._latlng,{paddingTopLeft:m,paddingBottomRight:c.subtract(m)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function $d(r,a){return new ir(r,a)}var xr=Ln.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(r){this._renderer=r.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(r){return T(this,r),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&r&&Object.prototype.hasOwnProperty.call(r,"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)}}),Ao=xr.extend({options:{fill:!0,radius:10},initialize:function(r,a){T(this,a),this._latlng=ne(r),this._radius=this.options.radius},setLatLng:function(r){var a=this._latlng;return this._latlng=ne(r),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(r){return this.options.radius=this._radius=r,this.redraw()},getRadius:function(){return this._radius},setStyle:function(r){var a=r&&r.radius||this._radius;return xr.prototype.setStyle.call(this,r),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var r=this._radius,a=this._radiusY||r,c=this._clickTolerance(),m=[r+c,a+c];this._pxBounds=new z(this._point.subtract(m),this._point.add(m))},_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(r){return r.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ju(r,a){return new Ao(r,a)}var jo=Ao.extend({initialize:function(r,a,c){if(typeof a=="number"&&(a=u({},c,{radius:a})),T(this,a),this._latlng=ne(r),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(r){return this._mRadius=r,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var r=[this._radius,this._radiusY||this._radius];return new _e(this._map.layerPointToLatLng(this._point.subtract(r)),this._map.layerPointToLatLng(this._point.add(r)))},setStyle:xr.prototype.setStyle,_project:function(){var r=this._latlng.lng,a=this._latlng.lat,c=this._map,m=c.options.crs;if(m.distance===ze.distance){var w=Math.PI/180,C=this._mRadius/ze.R/w,I=c.project([a+C,r]),Z=c.project([a-C,r]),X=I.add(Z).divideBy(2),re=c.unproject(X).lat,he=Math.acos((Math.cos(C*w)-Math.sin(a*w)*Math.sin(re*w))/(Math.cos(a*w)*Math.cos(re*w))
304)/w;(isNaN(he)||he===0)&&(he=C/Math.cos(Math.PI/180*a)),this._point=X.subtract(c.getPixelOrigin()),this._radius=isNaN(he)?0:X.x-c.project([re,r-he]).x,this._radiusY=X.y-I.y}else{var Te=m.unproject(m.project(this._latlng).subtract([this._mRadius,0]));this._point=c.latLngToLayerPoint(this._latlng),this._radius=this._point.x-c.latLngToLayerPoint(Te).x}this._updateBounds()}});function Es(r,a,c){return new jo(r,a,c)}var on=xr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(r,a){T(this,a),this._setLatLngs(r)},getLatLngs:function(){return this._latlngs},setLatLngs:function(r){return this._setLatLngs(r),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(r){for(var a=1/0,c=null,m=$r,w,C,I=0,Z=this._parts.length;I<Z;I++)for(var X=this._parts[I],re=1,he=X.length;re<he;re++){w=X[re-1],C=X[re];var Te=m(r,w,C,!0);Te<a&&(a=Te,c=m(r,w,C))}return c&&(c.distance=Math.sqrt(a)),c},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Nu(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(r,a){return a=a||this._defaultShape(),r=ne(r),a.push(r),this._bounds.extend(r),this.redraw()},_setLatLngs:function(r){this._bounds=new _e,this._latlngs=this._convertLatLngs(r)},_defaultShape:function(){return fn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(r){for(var a=[],c=fn(r),m=0,w=r.length;m<w;m++)c?(a[m]=ne(r[m]),this._bounds.extend(a[m])):a[m]=this._convertLatLngs(r[m]);return a},_project:function(){var r=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,r),this._bounds.isValid()&&r.isValid()&&(this._rawPxBounds=r,this._updateBounds())},_updateBounds:function(){var r=this._clickTolerance(),a=new te(r,r);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(r,a,c){var m=r[0]instanceof ce,w=r.length,C,I;if(m){for(I=[],C=0;C<w;C++)I[C]=this._map.latLngToLayerPoint(r[C]),c.extend(I[C]);a.push(I)}else for(C=0;C<w;C++)this._projectLatlngs(r[C],a,c)},_clipPoints:function(){var r=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,c,m,w,C,I,Z,X;for(c=0,w=0,C=this._rings.length;c<C;c++)for(X=this._rings[c],m=0,I=X.length;m<I-1;m++)Z=Pu(X[m],X[m+1],r,m,!0),Z&&(a[w]=a[w]||[],a[w].push(Z[0]),(Z[1]!==X[m+1]||m===I-2)&&(a[w].push(Z[1]),w++))}},_simplifyPoints:function(){for(var r=this._parts,a=this.options.smoothFactor,c=0,m=r.length;c<m;c++)r[c]=Ro(r[c],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(r,a){var c,m,w,C,I,Z,X=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(c=0,C=this._parts.length;c<C;c++)for(Z=this._parts[c],m=0,I=Z.length,w=I-1;m<I;w=m++)if(!(!a&&m===0)&&Cu(r,Z[w],Z[m])<=X)return!0;return!1}});function qd(r,a){return new on(r,a)}on._flat=Tu;var sr=on.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
304,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Eu(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(r){var a=on.prototype._convertLatLngs.call(this,r),c=a.length;return c>=2&&a[0]instanceof ce&&a[0].equals(a[c-1])&&a.pop(),a},_setLatLngs:function(r){on.prototype._setLatLngs.call(this,r),fn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return fn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var r=this._renderer._bounds,a=this.options.weight,c=new te(a,a);if(r=new z(r.min.subtract(c),r.max.add(c)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}for(var m=0,w=this._rings.length,C;m<w;m++)C=Ya(this._rings[m],r,!0),C.length&&this._parts.push(C)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(r){var a=!1,c,m,w,C,I,Z,X,re;if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(C=0,X=this._parts.length;C<X;C++)for(c=this._parts[C],I=0,re=c.length,Z=re-1;I<re;Z=I++)m=c[I],w=c[Z],m.y>r.y!=w.y>r.y&&r.x<(w.x-m.x)*(r.y-m.y)/(w.y-m.y)+m.x&&(a=!a);return a||on.prototype._containsPoint.call(this,r,!0)}});function Vd(r,a){return new sr(r,a)}var Bn=rr.extend({initialize:function(r,a){T(this,a),this._layers={},r&&this.addData(r)},addData:function(r){var a=M(r)?r:r.features,c,m,w;if(a){for(c=0,m=a.length;c<m;c++)w=a[c],(w.geometries||w.geometry||w.features||w.coordinates)&&this.addData(w);return this}var C=this.options;if(C.filter&&!C.filter(r))return this;var I=bi(r,C);return I?(I.feature=Fo(r),I.defaultOptions=I.options,this.resetStyle(I),C.onEachFeature&&C.onEachFeature(r,I),this.addLayer(I)):this},resetStyle:function(r){return r===void 0?this.eachLayer(this.resetStyle,this):(r.options=u({},r.defaultOptions),this._setLayerStyle(r,this.options.style),this)},setStyle:function(r){return this.eachLayer(function(a){this._setLayerStyle(a,r)},this)},_setLayerStyle:function(r,a){r.setStyle&&(typeof a=="function"&&(a=a(r.feature)),r.setStyle(a))}});function bi(r,a){var c=r.type==="Feature"?r.geometry:r,m=c?c.coordinates:null,w=[],C=a&&a.pointToLayer,I=a&&a.coordsToLatLng||Io,Z,X,re,he;if(!m&&!c)return null;switch(c.type){case"Point":return Z=I(m),Mo(C,r,Z,a);case"MultiPoint":for(re=0,he=m.length;re<he;re++)Z=I(m[re]),w.push(Mo(C,r,Z,a));return new rr(w);case"LineString":case"MultiLineString":return X=Cs(m,c.type==="LineString"?0:1,I),new on(X,a);case"Polygon":case"MultiPolygon":return X=Cs(m,c.type==="Polygon"?1:2,I),new sr(X,a);case"GeometryCollection":for(re=0,he=c.geometries.length;re<he;re++){var Te=bi({geometry:c.geometries[re],type:"Feature",properties:r.properties},a);Te&&w.push(Te)}return new rr(w);case"FeatureCollection":for(re=0,he=c.features.length;re<he;re++){var He=bi(c.features[re],a);He&&w.push(He)}return new rr(w);default:throw new Error("Invalid GeoJSON object.")}}function Mo(r,a,c,m){return r?r(a,c):new ir(c,m&&m.markersInheritOptions&&m)}function Io(r){return new ce(r[1],r[0],r[2])}function Cs(r,a,c){for(var m=[],w=0,C=r.length,I;w<C;w++)I=a?Cs(r[w],a-1,c):(c||Io)(r[w]),m.push(I);return m}function zo(r,a){return r=ne(r),r.alt!==void 0?[P(r.lng,a),P(r.lat,a),P(r.alt,a)]:[P(r.lng,a),P(r.lat,a)]}function Do(r,a,c,m){for(var w=[],C=0,I=r.length;C<I;C++)w.push(a?Do(r[C],fn(r[C])?0:a-1,c,m):zo(r[C],m));return!a&&c&&w.length>0&&w.push(w[0].slice()),w}function Si(r,a){return r.feature?u({},r.feature,{geometry:a}):Fo(a)}function Fo(r){return r.type==="Feature"||r.type==="FeatureCollection"?r:{type:"Feature",properties:{},geometry:r}}var il={toGeoJSON:function(r){return Si(this,{type:"Point",coordinates:zo(this.getLatLng(),r)})}};ir.include(il),jo.include(il),Ao.include(il),on.include({toGeoJSON:function(r){var a=!fn(this._latlngs),c=Do(this._latlngs,a?1:0,!1,r);return Si(this,{type:(a?"Multi":"")+"LineString",coordinates:c})}}),sr.include({toGeoJSON:function(r){var a=!fn(this._latlngs),c=a&&!fn(this._latlngs[0]),m=Do(this._latlngs,c?2:a?1:0,!0,r);return a||(m=[m]),Si(this,{type:(c?"Multi":"")+"Polygon",coordinates:m})}}),wr.include({toMultiPoint:function(r){var a=[];return this.eachLayer(function(c){a.push(c.toGeoJSON(r).geometry.coordinates)}),Si(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(r){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(r);var c=a==="GeometryCollection",m=[];return this.eachLayer(function(w){if(w.toGeoJSON){var C=w.toGeoJSON(r);if(c)m.push(C.geometry);else{var I=Fo(C);I.type==="FeatureCollection"?m.push.apply(m,I.features):m.push(I)}}}),c?Si(this,{geometries:m,type:"GeometryCollection"}):{type:"FeatureCollection",features:m}}});function Mu(r,a){return new Bn(r,a)}var Rn=Mu,br=Ln.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(r,a,c){this._url=r,this._bounds=me(a),T(this,c)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(De(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ct(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(r){return this.options.opacity=r,this._image&&this._updateOpacity(),this},setStyle:function(r){return r.opacity&&this.setOpacity(r.opacity),this},bringToFront:function(){return this._map&&fi(this._image),this},bringToBack:function(){return this._map&&er(this._image),this},setUrl:function(r){return this._url=r,this._image&&(this._image.src=r),this},setBounds:function(r){return this._bounds=me(r),this._map&&this._reset(),this},getEvents:function(){var r={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var r=this._url.tagName==="IMG",a=this._image=r?this._url:Ue("img");if(De(a,"leaflet-image-layer"),this._zoomAnimated&&De(a,"leaflet-zoom-animated"),this.options.className&&De(a,this.options.className),a.onselectstart=S,a.onmousemove=S,a.onload=f(this.fire,this,"load"),a.onerror=f(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),r){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(r){var a=this._map.getZoomScale(r.zoom),c=this._map._latLngBoundsToNewLayerBounds(this._bounds,r.zoom,r.center).min;Cn(this._image,c,a)},_reset:function(){var r=this._image,a=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),c=a.getSize();_t(r,a.min),r.style.width=c.x+"px",r.style.height=c.y+"px"},_updateOpacity:function(){Vt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var r=this.options.errorOverlayUrl;r&&this._url!==r&&(this._url=r,this._image.src=r)},getCenter:function(){return this._bounds.getCenter()}}),Iu=function(r,a,c){return new br(r,a,c)},sl=br.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
vendor: 5,696 bytes, line 304
304ine:!0},_initImage:function(){var r=this._url.tagName==="VIDEO",a=this._image=r?this._url:Ue("video");if(De(a,"leaflet-image-layer"),this._zoomAnimated&&De(a,"leaflet-zoom-animated"),this.options.className&&De(a,this.options.className),a.onselectstart=S,a.onmousemove=S,a.onloadeddata=f(this.fire,this,"load"),r){for(var c=a.getElementsByTagName("source"),m=[],w=0;w<c.length;w++)m.push(c[w].src);this._url=c.length>0?m:[a.src];return}M(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var C=0;C<this._url.length;C++){var I=Ue("source");I.src=this._url[C],a.appendChild(I)}}});function zu(r,a,c){return new sl(r,a,c)}var ol=br.extend({_initImage:function(){var r=this._image=this._url;De(r,"leaflet-image-layer"),this._zoomAnimated&&De(r,"leaflet-zoom-animated"),this.options.className&&De(r,this.options.className),r.onselectstart=S,r.onmousemove=S}});function al(r,a,c){return new ol(r,a,c)}var Un=Ln.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(r,a){r&&(r instanceof ce||M(r))?(this._latlng=ne(r),T(this,a)):(T(this,r),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(r){return r=arguments.length?r:this._source._map,r.hasLayer(this)||r.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(r){return this._map?this.close():(arguments.length?this._source=r:r=this._source,this._prepareOpen(),this.openOn(r._map)),this},onAdd:function(r){this._zoomAnimated=r._zoomAnimated,this._container||this._initLayout(),r._fadeAnimated&&Vt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),r._fadeAnimated&&Vt(this._container,1),this.bringToFront(),this.options.interactive&&(De(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(r){r._fadeAnimated?(Vt(this._container,0),this._removeTimeout=setTimeout(f(ct,void 0,this._container),200)):ct(this._container),this.options.interactive&&(at(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(r){return this._latlng=ne(r),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(r){return this._content=r,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 r={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&fi(this._container),this},bringToBack:function(){return this._map&&er(this._container),this},_prepareOpen:function(r){var a=this._source;if(!a._map)return!1;if(a instanceof rr){a=null;var c=this._source._layers;for(var m in c)if(c[m]._map){a=c[m];break}if(!a)return!1;this._source=a}if(!r)if(a.getCenter)r=a.getCenter();else if(a.getLatLng)r=a.getLatLng();else if(a.getBounds)r=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(r),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var r=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof a=="string")r.innerHTML=a;else{for(;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var r=this._map.latLngToLayerPoint(this._latlng),a=V(this.options.offset),c=this._getAnchor();this._zoomAnimated?_t(this._container,r.add(c)):a=a.add(r).add(c);var m=this._containerBottom=-a.y,w=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=m+"px",this._container.style.left=w+"px"}},_getAnchor:function(){return[0,0]}});qe.include({_initOverlay:function(r,a,c,m){var w=a;return w instanceof r||(w=new r(m).setContent(a)),c&&w.setLatLng(c),w}}),Ln.include({_initOverlay:function(r,a,c,m){var w=c;return w instanceof r?(T(w,m),w._source=this):(w=a&&!m?a:new r(m,this),w.setContent(c)),w}});var Bo=Un.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(r){return r=arguments.length?r:this._source._map,!r.hasLayer(this)&&r._popup&&r._popup.options.autoClose&&r.removeLayer(r._popup),r._popup=this,Un.prototype.openOn.call(this,r)},onAdd:function(r){Un.prototype.onAdd.call(this,r),r.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof xr||this._source.on("preclick",Fn))},onRemove:function(r){Un.prototype.onRemove.call(this,r),r.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof xr||this._source.off("preclick",Fn))},getEvents:function(){var r=Un.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(r.preclick=this.close),this.options.keepInView&&
304(r.moveend=this._adjustPan),r},_initLayout:function(){var r="leaflet-popup",a=this._container=Ue("div",r+" "+(this.options.className||"")+" leaflet-zoom-animated"),c=this._wrapper=Ue("div",r+"-content-wrapper",a);if(this._contentNode=Ue("div",r+"-content",c),xs(a),Po(this._contentNode),je(a,"contextmenu",Fn),this._tipContainer=Ue("div",r+"-tip-container",a),this._tip=Ue("div",r+"-tip",this._tipContainer),this.options.closeButton){var m=this._closeButton=Ue("a",r+"-close-button",a);m.setAttribute("role","button"),m.setAttribute("aria-label","Close popup"),m.href="#close",m.innerHTML='<span aria-hidden="true">&#215;</span>',je(m,"click",function(w){mt(w),this.close()},this)}},_updateLayout:function(){var r=this._contentNode,a=r.style;a.width="",a.whiteSpace="nowrap";var c=r.offsetWidth;c=Math.min(c,this.options.maxWidth),c=Math.max(c,this.options.minWidth),a.width=c+1+"px",a.whiteSpace="",a.height="";var m=r.offsetHeight,w=this.options.maxHeight,C="leaflet-popup-scrolled";w&&m>w?(a.height=w+"px",De(r,C)):at(r,C),this._containerWidth=this._container.offsetWidth},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center),c=this._getAnchor();_t(this._container,a.add(c))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var r=this._map,a=parseInt(vs(this._container,"marginBottom"),10)||0,c=this._container.offsetHeight+a,m=this._containerWidth,w=new te(this._containerLeft,-c-this._containerBottom);w._add(tr(this._container));var C=r.layerPointToContainerPoint(w),I=V(this.options.autoPanPadding),Z=V(this.options.autoPanPaddingTopLeft||I),X=V(this.options.autoPanPaddingBottomRight||I),re=r.getSize(),he=0,Te=0;C.x+m+X.x>re.x&&(he=C.x+m-re.x+X.x),C.x-he-Z.x<0&&(he=C.x-Z.x),C.y+c+X.y>re.y&&(Te=C.y+c-re.y+X.y),C.y-Te-Z.y<0&&(Te=C.y-Z.y),(he||Te)&&(this.options.keepInView&&(this._autopanning=!0),r.fire("autopanstart").panBy([he,Te]))}},_getAnchor:function(){return V(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),ki=function(r,a){return new Bo(r,a)};qe.mergeOptions({closePopupOnClick:!0}),qe.include({openPopup:function(r,a,c){return this._initOverlay(Bo,r,a,c).openOn(this),this},closePopup:function(r){return r=arguments.length?r:this._popup,r&&r.close(),this}}),Ln.include({bindPopup:function(r,a){return this._popup=this._initOverlay(Bo,this._popup,r,a),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(r){return this._popup&&(this instanceof rr||(this._popup._source=this),this._popup._prepareOpen(r||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():!1},setPopupContent:function(r){return this._popup&&this._popup.setContent(r),this},getPopup:function(){return this._popup},_openPopup:function(r){if(!(!this._popup||!this._map)){Tn(r);var a=r.layer||r.target;if(this._popup._source===a&&!(a instanceof xr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(r.latlng);return}this._popup._source=a,this.openPopup(r.latlng)}},_movePopup:function(r){this._popup.setLatLng(r.latlng)},_onKeyPress:function(r){r.originalEvent.keyCode===13&&this._openPopup(r)}});var Ei=Un.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(r){Un.prototype.onAdd.call(this,r),this.setOpacity(this.options.opacity),r.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(r){Un.prototype.onRemove.call(this,r),r.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var r=Un.prototype.getEvents.call(this);return this.options.permanent||(r.preclick=this.close),r},_initLayout:function(){var r="leaflet-tooltip",a=r+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ue("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+y(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(r){var a,c,m=this._map,w=this._container,C=m.latLngToContainerPoint(m.getCenter()),I=m.layerPointToContainerPoint(r),Z=this.options.direction,X=w.offsetWidth,re=w.offsetHeight,he=V(this.options.offset),Te=this._getAnchor();Z==="top"?(a=X/2,c=re):Z==="bottom"?(a=X/2,c=0):Z==="center"?(a=X/2,c=re/2):Z==="right"?(a=0,c=re/2):Z==="left"?
vendor: 8,802 bytes, line 304
304(a=X,c=re/2):I.x<C.x?(Z="right",a=0,c=re/2):(Z="left",a=X+(he.x+Te.x)*2,c=re/2),r=r.subtract(V(a,c,!0)).add(he).add(Te),at(w,"leaflet-tooltip-right"),at(w,"leaflet-tooltip-left"),at(w,"leaflet-tooltip-top"),at(w,"leaflet-tooltip-bottom"),De(w,"leaflet-tooltip-"+Z),_t(w,r)},_updatePosition:function(){var r=this._map.latLngToLayerPoint(this._latlng);this._setPosition(r)},setOpacity:function(r){this.options.opacity=r,this._container&&Vt(this._container,r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center);this._setPosition(a)},_getAnchor:function(){return V(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ps=function(r,a){return new Ei(r,a)};qe.include({openTooltip:function(r,a,c){return this._initOverlay(Ei,r,a,c).openOn(this),this},closeTooltip:function(r){return r.close(),this}}),Ln.include({bindTooltip:function(r,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ei,this._tooltip,r,a),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(r){if(!(!r&&this._tooltipHandlersAdded)){var a=r?"off":"on",c={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?c.add=this._openTooltip:(c.mouseover=this._openTooltip,c.mouseout=this.closeTooltip,c.click=this._openTooltip,this._map?this._addFocusListeners():c.add=this._addFocusListeners),this._tooltip.options.sticky&&(c.mousemove=this._moveTooltip),this[a](c),this._tooltipHandlersAdded=!r}},openTooltip:function(r){return this._tooltip&&(this instanceof rr||(this._tooltip._source=this),this._tooltip._prepareOpen(r)&&(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(r){return this._tooltip&&this._tooltip.setContent(r),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&(je(a,"focus",function(){this._tooltip._source=r,this.openTooltip()},this),je(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(r){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(r)});return}this._tooltip._source=r.layer||r.target,this.openTooltip(this._tooltip.options.sticky?r.latlng:void 0)}},_moveTooltip:function(r){var a=r.latlng,c,m;this._tooltip.options.sticky&&r.originalEvent&&(c=this._map.mouseEventToContainerPoint(r.originalEvent),m=this._map.containerPointToLayerPoint(c),a=this._map.layerPointToLatLng(m)),this._tooltip.setLatLng(a)}});var Uo=qr.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(r){var a=r&&r.tagName==="DIV"?r:document.createElement("div"),c=this.options;if(c.html instanceof Element?(xo(a),a.appendChild(c.html)):a.innerHTML=c.html!==!1?c.html:"",c.bgPos){var m=V(c.bgPos);a.style.backgroundPosition=-m.x+"px "+-m.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function Du(r){return new Uo(r)}qr.Default=xi;var Sr=Ln.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ee.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(r){T(this,r)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(r){r._addZoomLimit(this)},onRemove:function(r){this._removeAllTiles(),ct(this._container),r._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(fi(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(er(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(r){return this.options.opacity=r,this._updateOpacity(),this},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var r=this._clampZoom(this._map.getZoom());r!==this._tileZoom&&(this._tileZoom=r,this._updateLevels()),this._update()}return this},getEvents:function(){var r={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=x(this._onMoveEnd,this.options.updateInterval,this)),r.move=this._onMove),this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},createTile:function(){return document.createElement("div")},getTileSize:function(){var r=this.options.tileSize;return r instanceof te?r:new te(r,r)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(r){for(var a=this.getPane().children,c=-r(-1/0,1/0),m=0,w=a.length,C;m<w;m++)C=a[m].style.zIndex,a[m]!==this._container&&C&&(c=r(c,+C));isFinite(c)&&(this.options.zIndex=c+r(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ee.ielt9){Vt(this._container,this.options.opacity);var r=+new Date,a=!1,c=!1;for(var m in this._tiles){var w=this._tiles[m];if(!(!w.current||!w.loaded)){var C=Math.min(1,(r-w.loaded)/200);Vt(w.el,C),C<1?a=!0:(w.active?c=!0:this._onOpaqueTile(w),w.active=!0)}}c&&!this._noPrune&&this._pruneTiles(),a&&(Oe(this._fadeFrame),this._fadeFrame=pe(this._updateOpacity,this))}},_onOpaqueTile:S,_initContainer:function(){this._container||(this._container=Ue("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var r=this._tileZoom,a=this.options.maxZoom;if(r!==void 0){for(var c in this._levels)c=Number(c),this._levels[c].el.children.length||c===r?(this._levels[c].el.style.zIndex=a-Math.abs(r-c),this._onUpdateLevel(c)):(ct(this._levels[c].el),this._removeTilesAtZoom(c),this._onRemoveLevel(c),delete this._levels[c]);var m=this._levels[r],w=this._map;return m||(m=this._levels[r]={},m.el=Ue("div","leaflet-tile-container leaflet-zoom-animated",this._container),m.el.style.zIndex=a,m.origin=w.project(w.unproject(w.getPixelOrigin()),r).round(),m.zoom=r,this._setZoomTransform(m,w.getCenter(),w.getZoom()),S(m.el.offsetWidth),this._onCreateLevel(m)),this._level=m,m}},_onUpdateLevel:S,_onRemoveLevel:S,_onCreateLevel:S,_pruneTiles:function(){if(this._map){var r,a,c=this._map.getZoom();if(c>this.options.maxZoom||c<this.options.minZoom){this._removeAllTiles();return}for(r in this._tiles)a=this._tiles[r],a.retain=a.current;for(r in this._tiles)if(a=this._tiles[r],a.current&&!a.active){var m=a.coords;this._retainParent(m.x,m.y,m.z,m.z-5)||this._retainChildren(m.x,m.y,m.z,m.z+2)}for(r in this._tiles)this._tiles[r].retain||this._removeTile(r)}},_removeTilesAtZoom:function(r){for(var a in this._tiles)this._tiles[a].coords.z===r&&this._removeTile(a)},_removeAllTiles:function(){for(var r in this._tiles)this._removeTile(r)},_invalidateAll:function(){for(var r in this._levels)ct(this._levels[r].el),this._onRemoveLevel(Number(r)),delete this._levels[r];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(r,a,c,m){var w=Math.floor(r/2),C=Math.floor(a/2),I=c-1,Z=new te(+w,+C);Z.z=+I;var X=this._tileCoordsToKey(Z),re=this._tiles[X];return re&&re.active?(re.retain=!0,!0):(re&&re.loaded&&(re.retain=!0),I>m?this._retainParent(w,C,I,m):!1)},_retainChildren:function(r,a,c,m){for(var w=2*r;w<2*r+2;w++)for(var C=2*a;C<2*a+2;C++){var I=new te(w,C);I.z=c+1;var Z=this._tileCoordsToKey(I),X=this._tiles[Z];if(X&&X.active){X.retain=!0;continue}else X&&X.loaded&&(X.retain=!0);c+1<m&&this._retainChildren(w,C,c+1,m)}},_resetView:function(r){var a=r&&(r.pinch||r.flyTo);
vendor: 9,130 bytes, line 304
304this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(r){this._setView(r.center,r.zoom,!0,r.noUpdate)},_clampZoom:function(r){var a=this.options;return a.minNativeZoom!==void 0&&r<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<r?a.maxNativeZoom:r},_setView:function(r,a,c,m){var w=Math.round(a);this.options.maxZoom!==void 0&&w>this.options.maxZoom||this.options.minZoom!==void 0&&w<this.options.minZoom?w=void 0:w=this._clampZoom(w);var C=this.options.updateWhenZooming&&w!==this._tileZoom;(!m||C)&&(this._tileZoom=w,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),w!==void 0&&this._update(r),c||this._pruneTiles(),this._noPrune=!!c),this._setZoomTransforms(r,a)},_setZoomTransforms:function(r,a){for(var c in this._levels)this._setZoomTransform(this._levels[c],r,a)},_setZoomTransform:function(r,a,c){var m=this._map.getZoomScale(c,r.zoom),w=r.origin.multiplyBy(m).subtract(this._map._getNewPixelOrigin(a,c)).round();Ee.any3d?Cn(r.el,w,m):_t(r.el,w)},_resetGrid:function(){var r=this._map,a=r.options.crs,c=this._tileSize=this.getTileSize(),m=this._tileZoom,w=this._map.getPixelWorldBounds(this._tileZoom);w&&(this._globalTileRange=this._pxBoundsToTileRange(w)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(r.project([0,a.wrapLng[0]],m).x/c.x),Math.ceil(r.project([0,a.wrapLng[1]],m).x/c.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(r.project([a.wrapLat[0],0],m).y/c.x),Math.ceil(r.project([a.wrapLat[1],0],m).y/c.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(r){var a=this._map,c=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),m=a.getZoomScale(c,this._tileZoom),w=a.project(r,this._tileZoom).floor(),C=a.getSize().divideBy(m*2);return new z(w.subtract(C),w.add(C))},_update:function(r){var a=this._map;if(a){var c=this._clampZoom(a.getZoom());if(r===void 0&&(r=a.getCenter()),this._tileZoom!==void 0){var m=this._getTiledPixelBounds(r),w=this._pxBoundsToTileRange(m),C=w.getCenter(),I=[],Z=this.options.keepBuffer,X=new z(w.getBottomLeft().subtract([Z,-Z]),w.getTopRight().add([Z,-Z]));if(!(isFinite(w.min.x)&&isFinite(w.min.y)&&isFinite(w.max.x)&&isFinite(w.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var re in this._tiles){var he=this._tiles[re].coords;(he.z!==this._tileZoom||!X.contains(new te(he.x,he.y)))&&(this._tiles[re].current=!1)}if(Math.abs(c-this._tileZoom)>1){this._setView(r,c);return}for(var Te=w.min.y;Te<=w.max.y;Te++)for(var He=w.min.x;He<=w.max.x;He++){var Lt=new te(He,Te);if(Lt.z=this._tileZoom,!!this._isValidTile(Lt)){var Et=this._tiles[this._tileCoordsToKey(Lt)];Et?Et.current=!0:I.push(Lt)}}if(I.sort(function(Kt,Li){return Kt.distanceTo(C)-Li.distanceTo(C)}),I.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var an=document.createDocumentFragment();for(He=0;He<I.length;He++)this._addTile(I[He],an);this._level.el.appendChild(an)}}}},_isValidTile:function(r){var a=this._map.options.crs;if(!a.infinite){var c=this._globalTileRange;if(!a.wrapLng&&(r.x<c.min.x||r.x>c.max.x)||!a.wrapLat&&(r.y<c.min.y||r.y>c.max.y))return!1}if(!this.options.bounds)return!0;var m=this._tileCoordsToBounds(r);return me(this.options.bounds).overlaps(m)},_keyToBounds:function(r){return this._tileCoordsToBounds(this._keyToTileCoords(r))},_tileCoordsToNwSe:function(r){var a=this._map,c=this.getTileSize(),m=r.scaleBy(c),w=m.add(c),C=a.unproject(m,r.z),I=a.unproject(w,r.z);return[C,I]},_tileCoordsToBounds:function(r){var a=this._tileCoordsToNwSe(r),c=new _e(a[0],a[1]);return this.options.noWrap||(c=this._map.wrapLatLngBounds(c)),c},_tileCoordsToKey:function(r){return r.x+":"+r.y+":"+r.z},_keyToTileCoords:function(r){var a=r.split(":"),c=new te(+a[0],+a[1]);return c.z=+a[2],c},_removeTile:function(r){var a=this._tiles[r];a&&(ct(a.el),delete this._tiles[r],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(r)}))},_initTile:function(r){De(r,"leaflet-tile");var a=this.getTileSize();r.style.width=a.x+"px",r.style.height=a.y+"px",r.onselectstart=S,r.onmousemove=S,Ee.ielt9&&this.options.opacity<1&&Vt(r,this.options.opacity)},_addTile:function(r,a){var c=this._getTilePos(r),m=this._tileCoordsToKey(r),w=this.createTile(this._wrapCoords(r),f(this._tileReady,this,r));this._initTile(w),this.createTile.length<2&&pe(f(this._tileReady,this,r,null,w)),_t(w,c),this._tiles[m]={el:w,coords:r,current:!0},a.appendChild(w),this.fire("tileloadstart",{tile:w,coords:r})},_tileReady:function(r,a,c){a&&this.fire("tileerror",{error:a,tile:c,coords:r});var m=this._tileCoordsToKey(r);c=this._tiles[m],c&&(c.loaded=+new Date,this._map._fadeAnimated?(Vt(c.el,0),Oe(this._fadeFrame),this._fadeFrame=pe(this._updateOpacity,this)):(c.active=!0,this._pruneTiles()),a||(De(c.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:c.el,coords:r})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ee.ielt9||!this._map._fadeAnimated?pe(this._pruneTiles,this):setTimeout(f(this._pruneTiles,this),250)))},_getTilePos:function(r){return r.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(r){var a=new te(this._wrapX?b(r.x,this._wrapX):r.x,this._wrapY?b(r.y,this._wrapY):r.y);return a.z=r.z,a},_pxBoundsToTileRange:function(r){var a=this.getTileSize();return new z(r.min.unscaleBy(a).floor(),r.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var r in this._tiles)if(!this._tiles[r].loaded)return!1;return!0}});function Ci(r){return new Sr(r)}var kr=Sr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(r,a){this._url=r,a=T(this,a),a.detectRetina&&Ee.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(r,a){return this._url===r&&a===void 0&&(a=!0),this._url=r,a||this.redraw(),this},createTile:function(r,a){var c=document.createElement("img");return je(c,"load",f(this._tileOnLoad,this,a,c)),je(c,"error",f(this._tileOnError,this,a,c)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(c.referrerPolicy=this.options.referrerPolicy),c.alt="",c.src=this.getTileUrl(r),c},getTileUrl:function(r){var a={r:Ee.retina?"@2x":"",s:this._getSubdomain(r),x:r.x,y:r.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var c=this._globalTileRange.max.y-r.y;this.options.tms&&(a.y=c),a["-y"]=c}return B(this._url,u(a,this.options))},_tileOnLoad:function(r,a){Ee.ielt9?setTimeout(f(r,this,null,a),0):r(null,a)},_tileOnError:function(r,a,c){var m=this.options.errorTileUrl;m&&a.getAttribute("src")!==m&&(a.src=m),r(c,a)},_onTileRemove:function(r){r.tile.onload=null},_getZoomForUrl:function(){var r=this._tileZoom,a=this.options.maxZoom,c=this.options.zoomReverse,m=this.options.zoomOffset;return c&&(r=a-r),r+m},_getSubdomain:function(r){var a=Math.abs(r.x+r.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var r,a;for(r in this._tiles)if(this._tiles[r].coords.z!==this._tileZoom&&(a=this._tiles[r].el,a.onload=S,a.onerror=S,!a.complete)){a.src=$;var c=this._tiles[r].coords;ct(a),delete this._tiles[r],this.fire("tileabort",{tile:a,coords:c})}},_removeTile:function(r){var a=this._tiles[r];if(a)return a.el.setAttribute("src",$),Sr.prototype._removeTile.call(this,r)},_tileReady:function(r,a,c){if(!(!this._map||c&&c.getAttribute("src")===$))return Sr.prototype._tileReady.call(this,r,a,c)}});function ll(r,a){return new kr(r,a)}var Ts=kr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(r,a){this._url=r;var c=u({},this.defaultWmsParams);for(var m in a)m in this.options||(c[m]=a[m]);a=T(this,a);var w=a.detectRetina&&Ee.retina?2:1,C=this.getTileSize();c.width=C.x*w,c.height=C.y*w,this.wmsParams=c},onAdd:function(r){this._crs=this.options.crs||r.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,kr.prototype.onAdd.call(this,r)},getTileUrl:function(r){var a=this._tileCoordsToNwSe(r),c=this._crs,m=ee(c.project(a[0]),c.project(a[1])),w=m.min,C=m.max,I=(this._wmsVersion>=1.3&&this._crs===Ru?[w.y,w.x,C.y,C.x]:[w.x,w.y,C.x,C.y]).join(","),Z=kr.prototype.getTileUrl.call(this,r);return Z+N(this.wmsParams,Z,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+I},setParams:function(r,a){return u(this.wmsParams,r),a||this.redraw(),this}});function Fu(r,a){return new Ts(r,a)}
vendor: 4,601 bytes, line 304
304kr.WMS=Ts,ll.wms=Fu;var Hn=Ln.extend({options:{padding:.1},initialize:function(r){T(this,r),y(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),De(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 r={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(r.zoomanim=this._onAnimZoom),r},_onAnimZoom:function(r){this._updateTransform(r.center,r.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(r,a){var c=this._map.getZoomScale(a,this._zoom),m=this._map.getSize().multiplyBy(.5+this.options.padding),w=this._map.project(this._center,a),C=m.multiplyBy(-c).add(w).subtract(this._map._getNewPixelOrigin(r,a));Ee.any3d?Cn(this._container,C,c):_t(this._container,C)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var r in this._layers)this._layers[r]._reset()},_onZoomEnd:function(){for(var r in this._layers)this._layers[r]._project()},_updatePaths:function(){for(var r in this._layers)this._layers[r]._update()},_update:function(){var r=this.options.padding,a=this._map.getSize(),c=this._map.containerPointToLayerPoint(a.multiplyBy(-r)).round();this._bounds=new z(c,c.add(a.multiplyBy(1+r*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ul=Hn.extend({options:{tolerance:0},getEvents:function(){var r=Hn.prototype.getEvents.call(this);return r.viewprereset=this._onViewPreReset,r},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Hn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var r=this._container=document.createElement("canvas");je(r,"mousemove",this._onMouseMove,this),je(r,"click dblclick mousedown mouseup contextmenu",this._onClick,this),je(r,"mouseout",this._handleMouseOut,this),r._leaflet_disable_events=!0,this._ctx=r.getContext("2d")},_destroyContainer:function(){Oe(this._redrawRequest),delete this._ctx,ct(this._container),st(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var r;this._redrawBounds=null;for(var a in this._layers)r=this._layers[a],r._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Hn.prototype._update.call(this);var r=this._bounds,a=this._container,c=r.getSize(),m=Ee.retina?2:1;_t(a,r.min),a.width=m*c.x,a.height=m*c.y,a.style.width=c.x+"px",a.style.height=c.y+"px",Ee.retina&&this._ctx.scale(2,2),this._ctx.translate(-r.min.x,-r.min.y),this.fire("update")}},_reset:function(){Hn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(r){this._updateDashArray(r),this._layers[y(r)]=r;var a=r._order={layer:r,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(r){this._requestRedraw(r)},_removePath:function(r){var a=r._order,c=a.next,m=a.prev;c?c.prev=m:this._drawLast=m,m?m.next=c:this._drawFirst=c,delete r._order,delete this._layers[y(r)],this._requestRedraw(r)},_updatePath:function(r){this._extendRedrawBounds(r),r._project(),r._update(),this._requestRedraw(r)},_updateStyle:function(r){this._updateDashArray(r),this._requestRedraw(r)},_updateDashArray:function(r){if(typeof r.options.dashArray=="string"){var a=r.options.dashArray.split(/[, ]+/),c=[],m,w;for(w=0;w<a.length;w++){if(m=Number(a[w]),isNaN(m))return;c.push(m)}r.options._dashArray=c}else r.options._dashArray=r.options.dashArray},_requestRedraw:function(r){this._map&&(this._extendRedrawBounds(r),this._redrawRequest=this._redrawRequest||pe(this._redraw,this))},_extendRedrawBounds:function(r){if(r._pxBounds){var a=(r.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(r._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(r._pxBounds.max.add([a,a]))}},_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 r=this._redrawBounds;if(r){var a=r.getSize();this._ctx.clearRect(r.min.x,r.min.y,a.x,a.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(
304)},_draw:function(){var r,a=this._redrawBounds;if(this._ctx.save(),a){var c=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,c.x,c.y),this._ctx.clip()}this._drawing=!0;for(var m=this._drawFirst;m;m=m.next)r=m.layer,(!a||r._pxBounds&&r._pxBounds.intersects(a))&&r._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(r,a){if(this._drawing){var c,m,w,C,I=r._parts,Z=I.length,X=this._ctx;if(Z){for(X.beginPath(),c=0;c<Z;c++){for(m=0,w=I[c].length;m<w;m++)C=I[c][m],X[m?"lineTo":"moveTo"](C.x,C.y);a&&X.closePath()}this._fillStroke(X,r)}}},_updateCircle:function(r){if(!(!this._drawing||r._empty())){var a=r._point,c=this._ctx,m=Math.max(Math.round(r._radius),1),w=(Math.max(Math.round(r._radiusY),1)||m)/m;w!==1&&(c.save(),c.scale(1,w)),c.beginPath(),c.arc(a.x,a.y/w,m,0,Math.PI*2,!1),w!==1&&c.restore(),this._fillStroke(c,r)}},_fillStroke:function(r,a){var c=a.options;c.fill&&(r.globalAlpha=c.fillOpacity,r.fillStyle=c.fillColor||c.color,r.fill(c.fillRule||"evenodd")),c.stroke&&c.weight!==0&&(r.setLineDash&&r.setLineDash(a.options&&a.options._dashArray||[]),r.globalAlpha=c.opacity,r.lineWidth=c.weight,r.strokeStyle=c.color,r.lineCap=c.lineCap,r.lineJoin=c.lineJoin,r.stroke())},_onClick:function(r){for(var a=this._map.mouseEventToLayerPoint(r),c,m,w=this._drawFirst;w;w=w.next)c=w.layer,c.options.interactive&&c._containsPoint(a)&&(!(r.type==="click"||r.type==="preclick")||!this._map._draggableMoved(c))&&(m=c);this._fireEvent(m?[m]:!1,r)},_onMouseMove:function(r){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(r);this._handleMouseHover(r,a)}},_handleMouseOut:function(r){var a=this._hoveredLayer;a&&(at(this._container,"leaflet-interactive"),this._fireEvent([a],r,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(r,a){if(!this._mouseHoverThrottled){for(var c,m,w=this._drawFirst;w;w=w.next)c=w.layer,c.options.interactive&&c._containsPoint(a)&&(m=c);m!==this._hoveredLayer&&(this._handleMouseOut(r),m&&(De(this._container,"leaflet-interactive"),this._fireEvent([m],r,"mouseover"),this._hoveredLayer=m)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,r),this._mouseHoverThrottled=!0,setTimeout(f(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(r,a,c){this._map._fireDOMEvent(a,c||a.type,r)},_bringToFront:function(r){var a=r._order;if(a){var c=a.next,m=a.prev;if(c)c.prev=m;else return;m?m.next=c:c&&(this._drawFirst=c),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(r)}},_bringToBack:function(r){var a=r._order;if(a){var c=a.next,m=a.prev;if(m)m.next=c;else return;c?c.prev=m:m&&(this._drawLast=m),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(r)}}});function cl(r){return Ee.canvas?new ul(r):null}var Pi=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(r){return document.createElement("<lvml:"+r+' class="lvml">')}}catch{}return function(r){return document.createElement("<"+r+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Bu={_initContainer:function(){this._container=Ue("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Hn.prototype._update.call(this),this.fire("update"))},_initPath:function(r){var a=r._container=Pi("shape");De(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",r._path=Pi("path"),a.appendChild(r._path),this._updateStyle(r),this._layers[y(r)]=r},_addPath:function(r){var a=r._container;this._container.appendChild(a),r.options.interactive&&r.addInteractiveTarget(a)},_removePath:function(r){var a=r._container;ct(a),r.removeInteractiveTarget(a),delete this._layers[y(r)]},_updateStyle:function(r){var a=r._stroke,c=r._fill,m=r.options,w=r._container;w.stroked=!!m.stroke,w.filled=!!m.fill,m.stroke?(a||(a=r._stroke=Pi("stroke")),w.appendChild(a),a.weight=m.weight+"px",a.color=m.color,a.opacity=m.opacity,m.dashArray?a.dashStyle=M(m.dashArray)?m.dashArray.join(" "):m.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=m.lineCap.replace("butt","flat"),a.joinstyle=m.lineJoin):a&&(w.removeChild(a),r._stroke=null),m.fill?(c||(c=r._fill=Pi("fill")),w.appendChild(c),c.color=m.fillColor||m.color,c.opacity=m.fillOpacity):c&&(w.removeChild(c),r._fill=null)},_updateCircle:function(r){var a=r._point.round(),c=Math.round(r._radius),m=Math.round(r._radiusY||c);this._setPath(r,r._empty()?"M0 0":"AL "+a.x+","+a.y+" "+c+","+m+" 0,"+65535*360)},_setPath:function(r,a){r._path.v=a},_bringToFront:function(r){fi(r._container)},_bringToBack:function(r){er(r._container)}}
vendor: 3,010 bytes, line 304
304,On=Ee.vml?Pi:rn,Vr=Hn.extend({_initContainer:function(){this._container=On("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=On("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ct(this._container),st(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Hn.prototype._update.call(this);var r=this._bounds,a=r.getSize(),c=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,c.setAttribute("width",a.x),c.setAttribute("height",a.y)),_t(c,r.min),c.setAttribute("viewBox",[r.min.x,r.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(r){var a=r._path=On("path");r.options.className&&De(a,r.options.className),r.options.interactive&&De(a,"leaflet-interactive"),this._updateStyle(r),this._layers[y(r)]=r},_addPath:function(r){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(r._path),r.addInteractiveTarget(r._path)},_removePath:function(r){ct(r._path),r.removeInteractiveTarget(r._path),delete this._layers[y(r)]},_updatePath:function(r){r._project(),r._update()},_updateStyle:function(r){var a=r._path,c=r.options;a&&(c.stroke?(a.setAttribute("stroke",c.color),a.setAttribute("stroke-opacity",c.opacity),a.setAttribute("stroke-width",c.weight),a.setAttribute("stroke-linecap",c.lineCap),a.setAttribute("stroke-linejoin",c.lineJoin),c.dashArray?a.setAttribute("stroke-dasharray",c.dashArray):a.removeAttribute("stroke-dasharray"),c.dashOffset?a.setAttribute("stroke-dashoffset",c.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),c.fill?(a.setAttribute("fill",c.fillColor||c.color),a.setAttribute("fill-opacity",c.fillOpacity),a.setAttribute("fill-rule",c.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(r,a){this._setPath(r,Me(r._parts,a))},_updateCircle:function(r){var a=r._point,c=Math.max(Math.round(r._radius),1),m=Math.max(Math.round(r._radiusY),1)||c,w="a"+c+","+m+" 0 1,0 ",C=r._empty()?"M0 0":"M"+(a.x-c)+","+a.y+w+c*2+",0 "+w+-c*2+",0 ";this._setPath(r,C)},_setPath:function(r,a){r._path.setAttribute("d",a)},_bringToFront:function(r){fi(r._path)},_bringToBack:function(r){er(r._path)}});Ee.vml&&Vr.include(Bu);function Ho(r){return Ee.svg||Ee.vml?new Vr(r):null}qe.include({getRenderer:function(r){var a=r.options.renderer||this._getPaneRenderer(r.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(r){if(r==="overlayPane"||r===void 0)return!1;var a=this._paneRenderers[r];return a===void 0&&(a=this._createRenderer({pane:r}),this._paneRenderers[r]=a),a},_createRenderer:function(r){return this.options.preferCanvas&&cl(r)||Ho(r)}});var Uu=sr.extend({initialize:function(r,a){sr.prototype.initialize.call(this,this._boundsToLatLngs(r),a)},setBounds:function(r){return this.setLatLngs(this._boundsToLatLngs(r))}
vendor: 14,103 bytes, line 304
304,_boundsToLatLngs:function(r){return r=me(r),[r.getSouthWest(),r.getNorthWest(),r.getNorthEast(),r.getSouthEast()]}});function Zd(r,a){return new Uu(r,a)}Vr.create=On,Vr.pointsToPath=Me,Bn.geometryToLayer=bi,Bn.coordsToLatLng=Io,Bn.coordsToLatLngs=Cs,Bn.latLngToCoords=zo,Bn.latLngsToCoords=Do,Bn.getFeature=Si,Bn.asFeature=Fo,qe.mergeOptions({boxZoom:!0});var Ti=hn.extend({initialize:function(r){this._map=r,this._container=r._container,this._pane=r._panes.overlayPane,this._resetStateTimeout=0,r.on("unload",this._destroy,this)},addHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){st(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ct(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(r){if(!r.shiftKey||r.which!==1&&r.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ze(),ko(),this._startPoint=this._map.mouseEventToContainerPoint(r),je(document,{contextmenu:Tn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(r){this._moved||(this._moved=!0,this._box=Ue("div","leaflet-zoom-box",this._container),De(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(r);var a=new z(this._point,this._startPoint),c=a.getSize();_t(this._box,a.min),this._box.style.width=c.x+"px",this._box.style.height=c.y+"px"},_finish:function(){this._moved&&(ct(this._box),at(this._container,"leaflet-crosshair")),gi(),Eo(),st(document,{contextmenu:Tn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(r){if(!(r.which!==1&&r.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(f(this._resetState,this),0);var a=new _e(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(r){r.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});qe.addInitHook("addHandler","boxZoom",Ti),qe.mergeOptions({doubleClickZoom:!0});var Hu=hn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(r){var a=this._map,c=a.getZoom(),m=a.options.zoomDelta,w=r.originalEvent.shiftKey?c-m:c+m;a.options.doubleClickZoom==="center"?a.setZoom(w):a.setZoomAround(r.containerPoint,w)}});qe.addInitHook("addHandler","doubleClickZoom",Hu),qe.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var dl=hn.extend({addHooks:function(){if(!this._draggable){var r=this._map;this._draggable=new Nn(r._mapPane,r._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),r.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),r.on("zoomend",this._onZoomEnd,this),r.whenReady(this._onZoomEnd,this))}De(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){at(this._map._container,"leaflet-grab"),at(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 r=this._map;if(r._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=me(this._map.options.maxBounds);this._offsetLimit=ee(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;r.fire("movestart").fire("dragstart"),r.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(r){if(this._map.options.inertia){var a=this._lastTime=+new Date,c=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(c),this._times.push(a),this._prunePositions(a)}this._map.fire("move",r).fire("drag",r)},_prunePositions:function(r){for(;this._positions.length>1&&r-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var r=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(r).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(r,a){return r-(r-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var r=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;r.x<a.min.x&&(r.x=this._viscousLimit(r.x,a.min.x)),r.y<a.min.y&&(r.y=this._viscousLimit(r.y,a.min.y)),r.x>a.max.x&&(r.x=this._viscousLimit(r.x,a.max.x)),r.y>a.max.y&&(r.y=this._viscousLimit(r.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(r)}},_onPreDragWrap:function(){var r=this._worldWidth,a=Math.round(r/2),c=this._initialWorldOffset,m=this._draggable._newPos.x,w=(m-a+c)%r+a-c,C=(m+a+c)%r-a-c,I=Math.abs(w+c)<Math.abs(C+c)?w:C;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=I},_onDragEnd:function(r){var a=this._map,c=a.options,m=!c.inertia||r.noInertia||this._times.length<2;if(a.fire("dragend",r),m)a.fire("moveend");else{this._prunePositions(+new Date);var w=this._lastPos.subtract(this._positions[0]),C=(this._lastTime-this._times[0])/1e3,I=c.easeLinearity,Z=w.multiplyBy(I/C),X=Z.distanceTo([0,0]),re=Math.min(c.inertiaMaxSpeed,X),he=Z.multiplyBy(re/X),Te=re/(c.inertiaDeceleration*I),He=he.multiplyBy(-Te/2).round();!He.x&&!He.y?a.fire("moveend"):(He=a._limitOffset(He,a.options.maxBounds),pe(function(){a.panBy(He,{duration:Te,easeLinearity:I,noMoveStart:!0,animate:!0})}))}}});qe.addInitHook("addHandler","dragging",dl),qe.mergeOptions({keyboard:!0,keyboardPanDelta:80});var hl=hn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(r){this._map=r,this._setPanDelta(r.options.keyboardPanDelta),this._setZoomDelta(r.options.zoomDelta)},addHooks:function(){var r=this._map._container;r.tabIndex<=0&&(r.tabIndex="0"),je(r,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),st(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 r=document.body,a=document.documentElement,c=r.scrollTop||a.scrollTop,m=r.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(m,c)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(r){var a=this._panKeys={},c=this.keyCodes,m,w;for(m=0,w=c.left.length;m<w;m++)a[c.left[m]]=[-1*r,0];for(m=0,w=c.right.length;m<w;m++)a[c.right[m]]=[r,0];for(m=0,w=c.down.length;m<w;m++)a[c.down[m]]=[0,r];for(m=0,w=c.up.length;m<w;m++)a[c.up[m]]=[0,-1*r]},_setZoomDelta:function(r){var a=this._zoomKeys={},c=this.keyCodes,m,w;for(m=0,w=c.zoomIn.length;m<w;m++)a[c.zoomIn[m]]=r;for(m=0,w=c.zoomOut.length;m<w;m++)a[c.zoomOut[m]]=-r},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){st(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(r){if(!(r.altKey||r.ctrlKey||r.metaKey)){var a=r.keyCode,c=this._map,m;if(a in this._panKeys){if(!c._panAnim||!c._panAnim._inProgress)if(m=this._panKeys[a],r.shiftKey&&(m=V(m).multiplyBy(3)),c.options.maxBounds&&(m=c._limitOffset(V(m),c.options.maxBounds)),c.options.worldCopyJump){var w=c.wrapLatLng(c.unproject(c.project(c.getCenter()).add(m)));c.panTo(w)}else c.panBy(m)}else if(a in this._zoomKeys)c.setZoom(c.getZoom()+(r.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&c._popup&&c._popup.options.closeOnEscapeKey)c.closePopup();else return;Tn(r)}}});qe.addInitHook("addHandler","keyboard",hl),qe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ot=hn.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){st(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(r){var a=Su(r),c=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(r),this._startTime||(this._startTime=+new Date);var m=Math.max(c-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(f(this._performZoom,this),m),Tn(r)},_performZoom:function(){var r=this._map,a=r.getZoom(),c=this._map.options.zoomSnap||0;r._stop();var m=this._delta/(this._map.options.wheelPxPerZoomLevel*4),w=4*Math.log(2/(1+Math.exp(-Math.abs(m))))/Math.LN2,C=c?Math.ceil(w/c)*c:w,I=r._limitZoom(a+(this._delta>0?C:-C))-a;this._delta=0,this._startTime=null,I&&(r.options.scrollWheelZoom==="center"?r.setZoom(a+I):r.setZoomAround(this._lastMousePos,a+I))}});qe.addInitHook("addHandler","scrollWheelZoom",ot);var fl=600;qe.mergeOptions({tapHold:Ee.touchNative&&Ee.safari&&Ee.mobile,tapTolerance:15});var Ns=hn.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){st(this._map._container,"touchstart",this._onDown,this)},_onDown:function(r){if(clearTimeout(this._holdTimeout),r.touches.length===1){var a=r.touches[0];this._startPos=this._newPos=new te(a.clientX,a.clientY),this._holdTimeout=setTimeout(f(function(){this._cancel(),this._isTapValid()&&(je(document,"touchend",mt),je(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),fl),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function r(){st(document,"touchend",mt),st(document,"touchend touchcancel",r)},_cancel:function(){clearTimeout(this._holdTimeout),st(document,"touchend touchcancel contextmenu",this._cancel,this),st(document,"touchmove",this._onMove,this)},_onMove:function(r){var a=r.touches[0];this._newPos=new te(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(r,a){var c=new MouseEvent(r,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});c._simulated=!0,a.target.dispatchEvent(c)}});qe.addInitHook("addHandler","tapHold",Ns),qe.mergeOptions({touchZoom:Ee.touch,bounceAtZoomLimits:!0});var Ni=hn.extend({addHooks:function(){De(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){at(this._map._container,"leaflet-touch-zoom"),st(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(r){var a=this._map;if(!(!r.touches||r.touches.length!==2||a._animatingZoom||this._zooming)){var c=a.mouseEventToContainerPoint(r.touches[0]),m=a.mouseEventToContainerPoint(r.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(c.add(m)._divideBy(2))),this._startDist=c.distanceTo(m),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),mt(r)}},_onTouchMove:function(r){if(!(!r.touches||r.touches.length!==2||!this._zooming)){var a=this._map,c=a.mouseEventToContainerPoint(r.touches[0]),m=a.mouseEventToContainerPoint(r.touches[1]),w=c.distanceTo(m)/this._startDist;if(this._zoom=a.getScaleZoom(w,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&w<1||this._zoom>a.getMaxZoom()&&w>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,w===1)return}else{var C=c._add(m)._divideBy(2)._subtract(this._centerPoint);if(w===1&&C.x===0&&C.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(C),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),Oe(this._animRequest);var I=f(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=pe(I,this,!0),mt(r)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Oe(this._animRequest),st(document,"touchmove",this._onTouchMove,this),st(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))}});qe.addInitHook("addHandler","touchZoom",Ni),qe.BoxZoom=Ti,qe.DoubleClickZoom=Hu,qe.Drag=dl,qe.Keyboard=hl,qe.ScrollWheelZoom=ot,qe.TapHold=Ns,qe.TouchZoom=Ni,i.Bounds=z,i.Browser=Ee,i.CRS=Pe,i.Canvas=ul,i.Circle=jo,i.CircleMarker=Ao,i.Class=Fe,i.Control=sn,i.DivIcon=Uo,i.DivOverlay=Un,i.DomEvent=To,i.DomUtil=ws,i.Draggable=Nn,i.Evented=Be,i.FeatureGroup=rr,i.GeoJSON=Bn,i.GridLayer=Sr,i.Handler=hn,i.Icon=qr,i.ImageOverlay=br,i.LatLng=ce,i.LatLngBounds=_e,i.Layer=Ln,i.LayerGroup=wr,i.LineUtil=Lu,i.Map=qe,i.Marker=ir,i.Mixin=Qa,i.Path=xr,i.Point=te,i.PolyUtil=Id,i.Polygon=sr,i.Polyline=on,i.Popup=Bo,i.PosAnimation=No,i.Projection=Ud,i.Rectangle=Uu,i.Renderer=Hn,i.SVG=Vr,i.SVGOverlay=ol,i.TileLayer=kr,i.Tooltip=Ei,i.Transformation=Wt,i.Util=Ye,i.VideoOverlay=sl,i.bind=f,i.bounds=ee,
304i.canvas=cl,i.circle=Es,i.circleMarker=ju,i.control=_r,i.divIcon=Du,i.extend=u,i.featureGroup=Ou,i.geoJSON=Mu,i.geoJson=Rn,i.gridLayer=Ci,i.icon=Au,i.imageOverlay=Iu,i.latLng=ne,i.latLngBounds=me,i.layerGroup=ks,i.map=yr,i.marker=$d,i.point=V,i.polygon=Vd,i.polyline=qd,i.popup=ki,i.rectangle=Zd,i.setOptions=T,i.stamp=y,i.svg=Ho,i.svgOverlay=al,i.tileLayer=ll,i.tooltip=Ps,i.transformation=ft,i.version=o,i.videoOverlay=zu;var Wu=window.L;i.noConflict=function(){return window.L=Wu,this},window.L=i}))})(Dl,Dl.exports)),Dl.exports}var Oa=b2();const Up=hd(Oa);function Sd(e,n,i){return Object.freeze({instance:e,context:n,container:i})}function kd(e,n){return n==null?function(o,u){const h=k.useRef();return h.current||(h.current=e(o,u)),h}:function(o,u){const h=k.useRef();h.current||(h.current=e(o,u));const f=k.useRef(o),{instance:p}=h.current;return k.useEffect(function(){f.current!==o&&(n(p,o,f.current),f.current=o)},[p,o,u]),h}}function N0(e,n){k.useEffect(function(){return(n.layerContainer??n.map).addLayer(e.instance),function(){var h;(h=n.layerContainer)==null||h.removeLayer(e.instance),n.map.removeLayer(e.instance)}},[n,e])}function L0(e){return function(i){const o=xd(),u=e(bd(i,o),o);return k0(o.map,i.attribution),Bp(u.current,i.eventHandlers),N0(u.current,o),u}}function S2(e,n){const i=k.useRef();k.useEffect(function(){if(n.pathOptions!==i.current){const u=n.pathOptions??{};e.instance.setStyle(u),i.current=u}},[e,n])}function k2(e){return function(i){const o=xd(),u=e(bd(i,o),o);return Bp(u.current,i.eventHandlers),N0(u.current,o),S2(u.current,i),u}}function E2(e,n){const i=kd(e,n),o=L0(i);return T0(o)}function C2(e,n){const i=kd(e),o=w2(i,n);return y2(o)}function P2(e,n){const i=kd(e,n),o=k2(i);return T0(o)}function T2(e,n){const i=kd(e,n),o=L0(i);return _2(o)}function N2(e,n,i){const{opacity:o,zIndex:u}=n;o!=null&&o!==i.opacity&&e.setOpacity(o),u!=null&&u!==i.zIndex&&e.setZIndex(u)}function L2(){return xd().map}const R0=P2(function({data:n,...i},o){const u=new Oa.GeoJSON(n,i);return Sd(u,E0(o,{overlayContainer:u}))},function(n,i,o){i.style!==o.style&&(i.style==null?n.resetStyle():n.setStyle(i.style))});function ip(){return ip=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},ip.apply(this,arguments)}function R2({bounds:e,boundsOptions:n,center:i,children:o,className:u,id:h,placeholder:f,style:p,whenReady:y,zoom:x,...b},S){const[P]=k.useState({className:u,id:h,style:p}),[O,F]=k.useState(null);k.useImperativeHandle(S,()=>(O==null?void 0:O.map)??null,[O]);const T=k.useCallback(R=>{if(R!==null&&O===null){const B=new Oa.Map(R,b);i!=null&&x!=null?B.setView(i,x):e!=null&&B.fitBounds(e,n),y!=null&&B.whenReady(y),F(v2(B))}},[]);k.useEffect(()=>()=>{O==null||O.map.remove()},[O]);const N=O?nd.createElement(P0,{value:O},o):f??null;return nd.createElement("div",ip({},P,{ref:T}),N)}const O0=k.forwardRef(R2),A0=E2(function({position:n,...i},o){const u=new Oa.Marker(n,i);return Sd(u,E0(o,{overlayContainer:u}))},function(n,i,o){i.position!==o.position&&n.setLatLng(i.position),i.icon!=null&&i.icon!==o.icon&&n.setIcon(i.icon),i.zIndexOffset!=null&&i.zIndexOffset!==o.zIndexOffset&&n.setZIndexOffset(i.zIndexOffset),i.opacity!=null&&i.opacity!==o.opacity&&n.setOpacity(i.opacity),n.dragging!=null&&i.draggable!==o.draggable&&(i.draggable===!0?n.dragging.enable():n.dragging.disable())}),j0=C2(function(n,i){const o=new Oa.Popup(n,i.overlayContainer);return Sd(o,i)},function(n,i,{position:o},u){k.useEffect(function(){const{instance:f}=n;function p(x){x.popup===f&&(f.update(),u(!0))}function y(x){x.popup===f&&u(!1)}return i.map.on({popupopen:p,popupclose:y}),i.overlayContainer==null?(o!=null&&f.setLatLng(o),f.openOn(i.map)):i.overlayContainer.bindPopup(f),function(){var b;i.map.off({popupopen:p,popupclose:y}),(b=i.overlayContainer)==null||b.unbindPopup(),i.map.removeLayer(f)}},[n,i,u,o])}),M0=T2(function({url:n,...i},o){const u=new Oa.TileLayer(n,bd(i,o));return Sd(u,o)},function(n,i,o){N2(n,i,o);const{url:u}=i;u!=null&&u!==o.url&&n.setUrl(u)}),O2={Kaʻū:{dx:-80,dy:30},"North & South Kohala":{dx:-90,dy:-10},Hāmākua:{dx:70,dy:-30},"North Kona":{dx:-90,dy:10},"South Kona":{dx:-90,dy:20},Puna:{dx:90,dy:30},Hilo:{dx:90,dy:20},"Western Maui":{dx:-110,dy:-10},"South Maui":{dx:-110,dy:20},"Upcountry Maui":{dx:80,dy:-20},"Leeward Haleakalā":{dx:90,dy:20},Lānaʻi:{dx:-70,dy:30},Molokaʻi:{dx:0,dy:-50},"North Shore":{dx:0,dy:-60},"East Honolulu":{dx:90,dy:0},"Western Oʻahu":{dx:-110,dy:0},"Central Oʻahu":{dx:0,dy:-70},"Windward Oʻahu":{dx:110,dy:-10},Kauaʻi:{dx:-80,dy:-20}},ry={Kaʻū:"Ka'u","North & South Kohala":"North & South Kohala",Hāmākua:"Hamakua","North Kona":"North Kona","South Kona":"South Kona",Puna:"Puna",Hilo:"Hilo","Upcountry Maui":"Upcountry Maui","Leeward Haleakalā":"Leeward Haleakala","South Maui":"South Maui","Western Maui":"West Maui",Molokaʻi:"Moloka'i",Lānaʻi:"Lana'i","North Shore":"North Shore","East Honolulu":"East Honolulu","Western Oʻahu":"Western O'ahu","Central Oʻahu":"Central O'ahu","Windward Oʻahu":"Windward O'ahu",Kauaʻi:"Kaua'i"},Ea={established:{color:"#0f6e6c",weight:1.5,fillColor:"#1b8e8b",fillOpacity:.55},updateInProcess:{color:"#6c6db8",weight:1.5,fillColor:"#9e9fd8",fillOpacity:.55}};function I0(e){return(e.properties.Status||"").toLowerCase().includes("in process")?"updateInProcess":"established"}function Dc(e){const n=e._statusKey||"established",i=Ea[n]||Ea.established;e.setStyle({color:i.color,weight:i.weight,fillColor:i.fillColor,fillOpacity:i.fillOpacity})}const A2=e=>Ea[I0(e)]||Ea.established,iy={color:"#ff6b00",weight:3,fillColor:"#ff6b00",fillOpacity:.45},j2={color:"#00d4ff",weight:5,fillColor:"#00d4ff",fillOpacity:.35};function _f(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[\u02bb\u2018\u2019']/g,"'").replace(/;/g,"'").toLowerCase().trim()}function M2({focusRegion:e}){const n=L2();return k.useEffect(()=>{e&&e.lat&&e.lng&&n.flyTo([e.lat,e.lng],e.zoom||11,{duration:1.2})},[e,n]),null}function I2(e){const n=O2[e]||{dx:0,dy:-40},{dx:i,dy:o}=n,u=120,h=70,f=u,p=h,y=f+i,x=p+o,b=u*2+Math.abs(i),S=h*2+Math.abs(o),P=y-(i>=0?0:80),O=x-12,F=encodeURIComponent(e),T=`
305    <div style="position:relative;width:${b}px;height:${S}px;overflow:visible;pointer-events:none;">
306      <svg style="position:absolute;top:0;left:0;overflow:visible;pointer-events:none;" width="${b}" height="${S}">
307        <line x1="${f}" y1="${p}" x2="${y}" y2="${x}" stroke="#1a1a1a" stroke-width="1"/>
308        <circle cx="${f}" cy="${p}" r="3" fill="#1a1a1a"/>
309      </svg>
310      <div
311        onmouseenter="window.__cwppHover('${F}',true)"
312        onmouseleave="window.__cwppHover('${F}',false)"
313        style="position:absolute;
313left:${P}px;top:${O}px;
314          background:rgba(20,20,20,0.85);color:#fff;font-size:10px;font-weight:600;
315          padding:2px 7px;border-radius:4px;letter-spacing:0.03em;white-space:nowrap;
316          box-shadow:0 1px 4px rgba(0,0,0,0.4);cursor:pointer;pointer-events:auto;">${e}</div>
317    </div>`;return Up.divIcon({html:T,className:"",iconAnchor:[f,p],popupAnchor:[i/2,o/2-10]})}const z2="https://services6.arcgis.com/7hTZShp5nVZINCvl/arcgis/rest/services/CWPP_2026/FeatureServer/0/query?where=1%3D1&outFields=*&f=geojson&outSR=4326";function D2({sections:e,onRegionClick:n,focusRegion:i,onSeeSelectedPlan:o}){const u=e.filter(b=>b.section_type==="region"&&b.map_center_lat),[h,f]=k.useState(null),p=k.useRef({}),y=k.useRef(null);k.useEffect(()=>{fetch(z2).then(b=>b.json()).then(f).catch(()=>{})},[]),k.useEffect(()=>(window.__cwppHover=(b,S)=>{if(y.current&&(Dc(y.current),y.current=null),S){const P=decodeURIComponent(b),O=ry[P]||P,F=_f(O),T=p.current[F];T&&(T.setStyle(iy),T.bringToFront(),y.current=T)}},()=>{delete window.__cwppHover}),[]),k.useEffect(()=>{if(!i||(y.current&&(Dc(y.current),y.current=null),i.reset)||!i.region)return;const b=ry[i.region]||i.region,S=p.current[_f(b)];S&&(S.setStyle(j2),S.bringToFront(),y.current=S)},[i]);const x=k.useCallback((b,S)=>{const P=b.properties.CWPPregion||"",O=b.properties.Island||"",F=b.properties.Status||"",T=b.properties.Acres,N=I0(b);p.current[_f(P)]=S,S._statusKey=N,S.setStyle(Ea[N]||Ea.established),S.bindPopup(`<div style="min-width:150px">
318         <strong style="font-size:13px">${P}</strong>
319         <div style="font-size:11px;color:#6b7280;margin:2px 0 6px">${O}${T?` &middot; ${Number(T).toLocaleString()} acres`:""}</div>
320         <div style="font-size:11px;font-weight:600;color:${N==="updateInProcess"?"#6c6db8":"#0f6e6c"}">${F}</div>
321       </div>`),S.on("mouseover",()=>{y.current&&y.current!==S&&Dc(y.current),y.current=S,S.setStyle(iy),S.bringToFront()}),S.on("mouseout",()=>{y.current===S&&(Dc(S),y.current=null)})},[]);return v.jsx("section",{className:"py-8 bg-gray-900",children:v.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[v.jsxs("div",{className:"text-center mb-6",children:[v.jsxs("div",{className:"inline-flex items-center gap-2 mb-3",children:[v.jsx("span",{className:"h-px w-8 bg-gradient-to-r from-transparent to-amber-400"}),v.jsx("p",{className:"text-amber-400 font-semibold text-[11px] tracking-[0.25em] uppercase",children:"Explore the Islands"}),v.jsx("span",{className:"h-px w-8 bg-gradient-to-l from-transparent to-amber-400"})]}),v.jsxs("h2",{className:"text-2xl md:text-3xl font-heading font-bold text-white mb-2 tracking-tight",children:["19 CWPP Regions ",v.jsx("span",{className:"text-amber-400",children:"Across Hawaiʻi"})]}),v.jsx("p",{className:"text-gray-300 max-w-2xl mx-auto font-medium text-sm leading-relaxed",children:"Click any marker to navigate to that region's wildfire protection plan details."})]}),v.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-2xl border border-gray-700 h-[400px] md:h-[480px]",children:[v.jsxs(O0,{center:[20.5,-157],zoom:7,className:"w-full h-full",scrollWheelZoom:!0,children:[v.jsx(M0,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),v.jsx(M2,{focusRegion:i}),h&&v.jsx(R0,{data:h,style:A2,onEachFeature:x}),u.map(b=>{const S=b.cwpp_region||b.title;return v.jsx(A0,{position:[b.map_center_lat,b.map_center_lng],icon:I2(S),children:v.jsx(j0,{children:v.jsxs("div",{className:"p-1",children:[v.jsx("strong",{className:"text-sm",children:b.cwpp_region}),v.jsx("p",{className:"text-xs text-gray-500 mb-2",children:b.island}),v.jsx("button",{onClick:()=>n(b.id),className:"text-xs text-blue-600 hover:underline font-medium",children:"Read more →"})]})})},b.id)})]}),v.jsxs("div",{className:"absolute bottom-4 left-4 z-[1000] bg-white/95 backdrop-blur-sm rounded-lg shadow-lg border border-gray-200 p-3 w-[200px]",children:[v.jsx("p",{className:"text-[11px] font-bold text-gray-700 mb-2 uppercase tracking-wide",children:"CWPP Status"}),v.jsxs("ul",{className:"space-y-1.5",children:[v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"w-3.5 h-3.5 rounded-sm border border-gray-300 flex-shrink-0",style:{background:"#1b8e8b"}}),v.jsx("span",{className:"text-[10.5px] text-gray-700 leading-tight",children:"Current (Completed)"})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"w-3.5 h-3.5 rounded-sm border border-gray-300 flex-shrink-0",style:{background:"#9e9fd8"}}),v.jsx("span",{className:"text-[10.5px] text-gray-700 leading-tight",children:"In Process"})]})]})]}),(i==null?void 0:i.region)&&!i.reset&&o&&v.jsx("button",{onClick:o,className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-[1000] bg-amber-500 hover:bg-amber-400 text-gray-900 font-semibold text-sm px-5 py-2.5 rounded-full shadow-xl flex items-center gap-2 transition-colors",children:"See Selected Plan"})]})]})})}const F2=[{name:"Kaʻū CWPP",island:"Hawaiʻi Island",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/6799a479f2853a1d68195b66/1738122374890/FINAL+HI-Kau_CWPP_Dec2024.pdf"},{name:"Northwest Hawaiʻi CWPP",island:"Hawaiʻi Island",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/6799a1f38b0b2b6c9b340571/1738121738199/FINAL+HI-Northwest+Hawaii_CWPP_Dec2024.pdf"},{name:"Hāmākua CWPP",island:"Hawaiʻi Island",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/6799a5a423e0a54ccdd9e5bd/1738122668724/FINAL+HI-Hamakua_CWPP_Dec2024_SIGNED-compressed.pdf"},{name:"North Kona CWPP",island:"Hawaiʻi Island",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/6799a3353279b30474b3a41a/1738122088037/FINAL+HI-North+Kona_CWPP_Dec2024.pdf"},{name:"South Kona CWPP",island:"Hawaiʻi Island",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/6799a0c7bffc4c5497d9511e/1738121432261/FINAL+HI-South+Kona_CWPP_Dec2024.pdf"},{name:"Upcountry Maui CWPP",island:"Maui",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/67a1609ec57c831e830e46aa/1738629353799/FINA
321L+M-Upcountry+Maui_CWPP_Dec2024_R1+%28002%29.pdf"},{name:"Leeward Haleakalā CWPP",island:"Maui",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/67a1649810a5f375508425ef/1738630353690/FINAL+M-Leeward+Haleakala_CWPP_Dec2024_R1.pdf"},{name:"South Maui CWPP",island:"Maui",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/67a14ea0f81c9e296670f65d/1738624745050/FINAL+M-South+Maui_CWPP_Dec2024_R1.pdf"},{name:"Western Maui CWPP",island:"Maui",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/67a1631615eb07127b1a3e73/1738629979921/FINAL+M-Western+Maui_CWPP_Dec2024_R1_SIGNED-compressed.pdf"},{name:"North Shore Oʻahu CWPP",island:"Oʻahu",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/67999eb9af902a401bee4d42/1738120948765/FINAL+HNL-North+Shore_CWPP_Dec2024_R1_SIGNED-compressed.pdf"},{name:"East Honolulu CWPP",island:"Oʻahu",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/67999fd28ca06513a56420ee/1738121179909/FINAL+HNL-East+Honolulu+CWPP_+Dec2024_SIGNED-compressed.pdf"},{name:"Western Oʻahu CWPP",island:"Oʻahu",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/67999c5a42b09b37abe2904d/1738120340224/FINAL+HNL-Western+Oahu_CWPP_Dec2024_R1+SKH_SIGNED-compressed.pdf"},{name:"Kauaʻi CWPP",island:"Kauaʻi",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/67999ac909758159af1d68f7/1738119942771/FINAL+K-Kauai_CWPP_Dec2024_SIGNED-compressed.pdf"},{name:"Molokaʻi CWPP",island:"Molokaʻi",url:"https://static1.squarespace.com/static/660b500392aae13704d0e302/t/67a152514142e552d14dcf78/1738625674948/FINAL+M-Molokai_CWPP_Dec2024_R1.pdf"}],B2={"Hawaiʻi Island":"border-red-200 bg-red-50 hover:bg-red-100",Maui:"border-pink-200 bg-pink-50 hover:bg-pink-100",Oʻahu:"border-blue-200 bg-blue-50 hover:bg-blue-100",Kauaʻi:"border-emerald-200 bg-emerald-50 hover:bg-emerald-100",Molokaʻi:"border-violet-200 bg-violet-50 hover:bg-violet-100"};function U2(){return v.jsx("section",{className:"py-20 md:py-32 bg-gray-50",children:v.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[v.jsxs("div",{className:"text-center mb-16",children:[v.jsx("p",{className:"text-amber-700 font-medium text-sm tracking-wider uppercase mb-3",children:"Source Documents"}),v.jsx("h2",{className:"text-3xl md:text-5xl font-heading font-bold text-gray-900 mb-4",children:"Access the Full CWPP Plans"}),v.jsx("p",{className:"text-gray-500 max-w-2xl mx-auto",children:"Download or view the complete Community Wildfire Protection Plan documents for each region."})]}),v.jsx("div",{className:"grid sm:grid-cols-2 gap-4 mb-12",children:F2.map((e,n)=>v.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-4 p-4 rounded-xl border transition-all duration-200 ${B2[e.island]||"border-gray-200 bg-white hover:bg-gray-50"}`,children:[v.jsx(Uy,{className:"text-gray-600 flex-shrink-0",size:20}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("p",{className:"font-medium text-gray-900 text-sm truncate",children:e.name}),v.jsx("p",{className:"text-xs text-gray-500",children:e.island})]}),v.jsx(Nf,{className:"text-gray-400 flex-shrink-0",size:16})]},n))}),v.jsxs("div",{className:"text-center",children:[v.jsxs("a",{href:"https://www.hwmo.org/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 bg-emerald-800 hover:bg-emerald-700 text-white font-semibold px-8 py-4 rounded-xl shadow-lg hover:shadow-xl transition-all duration-200 text-lg",children:[v.jsx($x,{size:22}),"Visit HWMO.org",v.jsx(Nf,{size:18})]}),v.jsx("p",{className:"text-gray-400 text-sm mt-4",children:"Hawaiʻi Wildfire Management Organization"})]})]})})}const H2=[{name:"Overview",color:"bg-amber-500"},{name:"Hawaiʻi Island",color:"bg-red-500"},{name:"Maui",color:"bg-pink-500"},{name:"Molokaʻi",color:"bg-violet-500"},{name:"Lānaʻi",color:"bg-teal-500"},{name:"Oʻahu",color:"bg-blue-500"},{name:"Kauaʻi",color:"bg-emerald-500"}];function W2({activeIsland:e,onIslandClick:n,sections:i}){const[o,u]=k.useState(null),h=k.useMemo(()=>{const p={};return i.filter(y=>y.section_type==="region").forEach(y=>{(p[y.island]=p[y.island]||[]).push(y)}
321),Object.values(p).forEach(y=>y.sort((x,b)=>(x.order||0)-(b.order||0))),p},[i]),f=o&&o!=="Overview"?h[o]||[]:[];return v.jsx("nav",{className:"sticky top-0 z-40 bg-white/90 backdrop-blur-md border-b border-gray-100 shadow-sm",children:v.jsxs("div",{onMouseLeave:()=>u(null),children:[v.jsx("div",{className:"max-w-6xl mx-auto px-4",children:v.jsxs("div",{className:"flex items-center gap-1 overflow-x-auto py-3 scrollbar-hide",children:[v.jsx(Hy,{className:"text-gray-400 mr-2 flex-shrink-0",size:18}),H2.map(p=>{const y=i.filter(S=>S.island===p.name&&S.section_type==="region").length,x=e===p.name,b=p.name!=="Overview"&&y>0;return v.jsx("div",{onMouseEnter:()=>u(b?p.name:null),className:"relative flex-shrink-0",children:v.jsxs("button",{onClick:()=>n(p.name),className:`flex items-center gap-2 px-3 py-1.5 rounded-full text-sm font-medium whitespace-nowrap transition-all duration-200 ${x?"bg-gray-900 text-white":"text-gray-500 hover:text-gray-900 hover:bg-gray-100"}`,children:[v.jsx("div",{className:`w-2 h-2 rounded-full ${p.color}`}),p.name,y>0&&v.jsxs("span",{className:`text-xs ${x?"text-gray-300":"text-gray-400"}`,children:["(",y,")"]}),b&&v.jsx(pd,{size:12,className:`opacity-50 transition-transform ${o===p.name?"rotate-180":""}`})]})},p.name)})]})}),f.length>0&&v.jsx("div",{className:"border-t border-gray-100 bg-white shadow-lg",children:v.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-3",children:[v.jsxs("p",{className:"text-xs font-semibold uppercase tracking-wider text-gray-400 mb-2",children:[o," Communities"]}),v.jsx("div",{className:"flex flex-wrap gap-2",children:f.map(p=>v.jsx(Cp,{to:`/community/${p.id}`,onClick:()=>u(null),className:"text-sm px-3 py-1.5 rounded-lg border border-gray-200 text-gray-700 hover:bg-gray-900 hover:text-white hover:border-gray-900 transition-all",children:p.cwpp_region||p.title},p.id))})]})})]})})}function z0({src:e,alt:n,onClose:i}){const[o,u]=k.useState(1),[h,f]=k.useState({x:0,y:0}),[p,y]=k.useState(!1),x=k.useRef({x:0,y:0}),b=k.useRef({x:0,y:0}),S=()=>u(B=>Math.min(B+.5,5)),P=()=>u(B=>Math.max(B-.5,.5)),O=()=>{u(1),f({x:0,y:0})},F=k.useCallback(B=>{B.preventDefault(),u(M=>Math.min(Math.max(M+(B.deltaY>0?-.2:.2),.5),5))},[]),T=B=>{y(!0),x.current={x:B.clientX,y:B.clientY},b.current={...h},B.currentTarget.setPointerCapture(B.pointerId)},N=B=>{p&&f({x:b.current.x+(B.clientX-x.current.x),y:b.current.y+(B.clientY-x.current.y)})},R=()=>y(!1);return k.useEffect(()=>{const B=M=>{M.key==="Escape"&&i()};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[i]),v.jsxs("div",{className:"fixed inset-0 z-50 bg-black/90 flex flex-col",children:[v.jsxs("div",{className:"flex items-center justify-between p-4",children:[v.jsx("p",{className:"text-white/70 text-sm truncate max-w-[60%]",children:n}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{onClick:P,className:"p-2 rounded-full bg-white/10 hover:bg-white/20 text-white transition",children:v.jsx(Cb,{size:20})}),v.jsxs("span",{className:"text-white/70 text-sm min-w-[48px] text-center",children:[Math.round(o*100),"%"]}),v.jsx("button",{onClick:S,className:"p-2 rounded-full bg-white/10 hover:bg-white/20 text-white transition",children:v.jsx(kb,{size:20})}),v.jsx("button",{onClick:O,className:"p-2 rounded-full bg-white/10 hover:bg-white/20 text-white transition",children:v.jsx(sb,{size:20})}),v.jsx("button",{onClick:i,className:"p-2 rounded-full bg-white/10 hover:bg-white/20 text-white transition ml-2",children:v.jsx(us,{size:20})})]})]}),v.jsx("div",{className:"flex-1 overflow-hidden cursor-grab active:cursor-grabbing",onWheel:F,onPointerDown:T,onPointerMove:N,onPointerUp:R,children:v.jsx("div",{className:"w-full h-full flex items-center justify-center",children:v.jsx("img",{src:e,alt:n,className:"max-w-none select-none",style:{transform:`translate(${h.x}px, ${h.y}px) scale(${o})`,transition:p?"none":"transform 0.2s ease"},draggable:!1})})})]})}function sy(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Ed(...e){return n=>{let i=!1;const o=e.map(u=>{const h=sy(u,n);return!i&&typeof h=="function"&&(i=!0),h});if(i)return()=>{for(let u=0;u<o.length;u++){const h=o[u];typeof h=="function"?h():sy(e[u],null)}}}}function ho(...e){return k.useCallback(Ed(...e),e)}var $2=Symbol.for("react.lazy"),cd=fd[" use ".trim().toString()];function q2(e){return typeof e=="object"&&e!==null&&"then"in e}function D0(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===$2&&"_payload"in e&&q2(e._payload)}function F0(e){const n=Z2(e),i=k.forwardRef((o,u)=>{let{children:h,...f}=o;D0(h)&&typeof cd=="function"&&(h=cd(h._payload));const p=k.Children.toArray(h),y=p.find(G2);
vendor: 18,636 bytes, line 321
321if(y){const x=y.props.children,b=p.map(S=>S===y?k.Children.count(x)>1?k.Children.only(null):k.isValidElement(x)?x.props.children:null:S);return v.jsx(n,{...f,ref:u,children:k.isValidElement(x)?k.cloneElement(x,void 0,b):null})}return v.jsx(n,{...f,ref:u,children:h})});return i.displayName=`${e}.Slot`,i}var V2=F0("Slot");function Z2(e){const n=k.forwardRef((i,o)=>{let{children:u,...h}=i;if(D0(u)&&typeof cd=="function"&&(u=cd(u._payload)),k.isValidElement(u)){const f=Y2(u),p=Q2(h,u.props);return u.type!==k.Fragment&&(p.ref=o?Ed(o,f):f),k.cloneElement(u,p)}return k.Children.count(u)>1?k.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var K2=Symbol("radix.slottable");function G2(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===K2}function Q2(e,n){const i={...n};for(const o in n){const u=e[o],h=n[o];/^on[A-Z]/.test(o)?u&&h?i[o]=(...p)=>{const y=h(...p);return u(...p),y}:u&&(i[o]=u):o==="style"?i[o]={...u,...h}:o==="className"&&(i[o]=[u,h].filter(Boolean).join(" "))}return{...e,...i}}function Y2(e){var o,u;let n=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}const X2=up("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),pr=k.forwardRef(({className:e,variant:n,size:i,asChild:o=!1,...u},h)=>{const f=o?V2:"button";return v.jsx(f,{className:Sn(X2({variant:n,size:i,className:e})),ref:h,...u})});pr.displayName="Button";const qs=k.forwardRef(({className:e,type:n,...i},o)=>v.jsx("input",{type:n,className:Sn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...i}));qs.displayName="Input";const B0=k.forwardRef(({className:e,...n},i)=>v.jsx("textarea",{className:Sn("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:i,...n}));B0.displayName="Textarea";var J2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],eT=J2.reduce((e,n)=>{const i=F0(`Primitive.${n}`),o=k.forwardRef((u,h)=>{const{asChild:f,...p}=u,y=f?i:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(y,{...p,ref:h})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{}),tT="Label",U0=k.forwardRef((e,n)=>v.jsx(eT.label,{...e,ref:n,onMouseDown:i=>{var u;i.target.closest("button, input, select, textarea")||((u=e.onMouseDown)==null||u.call(e,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));U0.displayName=tT;var H0=U0;const nT=up("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),$s=k.forwardRef(({className:e,...n},i)=>v.jsx(H0,{ref:i,className:Sn(nT(),e),...n}));$s.displayName=H0.displayName;function ls(e,n,{checkForDefaultPrevented:i=!0}={}){return function(u){if(e==null||e(u),i===!1||!u.defaultPrevented)return n==null?void 0:n(u)}}function rT(e,n){const i=k.createContext(n),o=h=>{const{children:f,...p}=h,y=k.useMemo(()=>p,Object.values(p));return v.jsx(i.Provider,{value:y,children:f})};o.displayName=e+"Provider";function u(h){const f=k.useContext(i);if(f)return f;if(n!==void 0)return n;throw new Error(`\`${h}\` must be used within \`${e}\``)}return[o,u]}function iT(e,n=[]){let i=[];function o(h,f){const p=k.createContext(f),y=i.length;i=[...i,f];const x=S=>{var R;const{scope:P,children:O,...F}=S,T=((R=P==null?void 0:P[e])==null?void 0:R[y])||p,N=k.useMemo(()=>F,Object.values(F));return v.jsx(T.Provider,{value:N,children:O})};x.displayName=h+"Provider";function b(S,P){var T;const O=((T=P==null?void 0:P[e])==null?void 0:T[y])||p,F=k.useContext(O);if(F)return F;if(f!==void 0)return f;throw new Error(`\`${S}\` must be used within \`${h}\``)}return[x,b]}const u=()=>{const h=i.map(f=>k.createContext(f));return function(p){const y=(p==null?void 0:p[e])||h;return k.useMemo(()=>({[`__scope${e}`]:{...p,[e]:y}}),[p,y])}};return u.scopeName=e,[o,sT(u,...n)]}function sT(...e){const n=e[0];if(e.length===1)return n;const i=()=>{const o=e.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(h){const f=o.reduce((p,{useScope:y,scopeName:x})=>{const S=y(h)[`__scope${x}`];return{...p,...S}},{});return k.useMemo(()=>({[`__scope${n.scopeName}`]:f}),[f])}};return i.scopeName=n.scopeName,i}var Zl=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},oT=fd[" useId ".trim().toString()]||(()=>{}),aT=0;function wf(e){const[n,i]=k.useState(oT());return Zl(()=>{i(o=>o??String(aT++))},[e]),e||(n?`radix-${n}`:"")}var lT=fd[" useInsertionEffect ".trim().toString()]||Zl;function uT({prop:e,defaultProp:n,onChange:i=()=>{},caller:o}){const[u,h,f]=cT({defaultProp:n,onChange:i}),p=e!==void 0,y=p?e:u;{const b=k.useRef(e!==void 0);k.useEffect(()=>{const S=b.current;S!==p&&console.warn(`${o} is changing from ${S?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=p},[p,o])}const x=k.useCallback(b=>{var S;if(p){const P=dT(b)?b(e):b;P!==e&&((S=f.current)==null||S.call(f,P))}else h(b)},[p,e,h,f]);return[y,x]}function cT({defaultProp:e,onChange:n}){const[i,o]=k.useState(e),u=k.useRef(i),h=k.useRef(n);return lT(()=>{h.current=n},[n]),k.useEffect(()=>{var f;u.current!==i&&((f=h.current)==null||f.call(h,i),u.current=i)},[i,u]),[i,o,h]}function dT(e){return typeof e=="function"}function hT(e){const n=fT(e),i=k.forwardRef((o,u)=>{const{children:h,...f}=o,p=k.Children.toArray(h),y=p.find(mT);if(y){const x=y.props.children,b=p.map(S=>S===y?k.Children.count(x)>1?k.Children.only(null):k.isValidElement(x)?x.props.children:null:S);return v.jsx(n,{...f,ref:u,children:k.isValidElement(x)?k.cloneElement(x,void 0,b):null})}return v.jsx(n,{...f,ref:u,children:h})});return i.displayName=`${e}.Slot`,i}function fT(e){const n=k.forwardRef((i,o)=>{const{children:u,...h}=i;if(k.isValidElement(u)){const f=vT(u),p=gT(h,u.props);return u.type!==k.Fragment&&(p.ref=o?Ed(o,f):f),k.cloneElement(u,p)}return k.Children.count(u)>1?k.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var pT=Symbol("radix.slottable");function mT(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pT}function gT(e,n){const i={...n};for(const o in n){const u=e[o],h=n[o];/^on[A-Z]/.test(o)?u&&h?i[o]=(...p)=>{const y=h(...p);return u(...p),y}:u&&(i[o]=u):o==="style"?i[o]={...u,...h}:o==="className"&&(i[o]=[u,h].filter(Boolean).join(" "))}return{...e,...i}}function vT(e){var o,u;let n=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var yT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ui=yT.reduce((e,n)=>{const i=hT(`Primitive.${n}`),o=k.forwardRef((u,h)=>{const{asChild:f,...p}=u,y=f?i:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(y,{...p,ref:h})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});function _T(e,n){e&&xp.flushSync(()=>e.dispatchEvent(n))}function Kl(e){const n=k.useRef(e);return k.useEffect(()=>{n.current=e}),k.useMemo(()=>(...i)=>{var o;return(o=n.current)==null?void 0:o.call(n,...i)},[])}function wT(e,n=globalThis==null?void 0:globalThis.document){const i=Kl(e);k.useEffect(()=>{const o=u=>{u.key==="Escape"&&i(u)};return n.addEventListener("keydown",o,{capture:!0}),()=>n.removeEventListener("keydown",o,{capture:!0})},[i,n])}var xT="DismissableLayer",sp="dismissableLayer.update",bT="dismissableLayer.pointerDownOutside",ST="dismissableLayer.focusOutside",oy,W0=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$0=k.forwardRef((e,n)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:h,onInteractOutside:f,onDismiss:p,...y}=e,x=k.useContext(W0),[b,S]=k.useState(null),P=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,O]=k.useState({}),F=ho(n,G=>S(G)),T=Array.from(x.layers),[N]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),R=T.indexOf(N),B=b?T.indexOf(b):-1,M=x.layersWithOutsidePointerEventsDisabled.size>0,j=B>=R,$=CT(G=>{const q=G.target,ue=[...x.branches].some(ae=>ae.contains(q));!j||ue||(u==null||u(G),f==null||f(G),G.defaultPrevented||p==null||p())},P),Q=PT(G=>{const q=G.target;[...x.branches].some(ae=>ae.contains(q))||(h==null||h(G),f==null||f(G),G.defaultPrevented||p==null||p())},P);return wT(G=>{B===x.layers.size-1&&(o==null||o(G),!G.defaultPrevented&&p&&(G.preventDefault(),p()))},P),k.useEffect(()=>{if(b)return i&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(oy=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(b)),x.layers.add(b),ay(),()=>{i&&x.layersWithOutsidePointerEventsDisabled.size===1&&(P.body.style.pointerEvents=oy)}},[b,P,i,x]),k.useEffect(()=>()=>{b&&(x.layers.delete(b),x.layersWithOutsidePointerEventsDisabled.delete(b),ay())},[b,x]),k.useEffect(()=>{const G=()=>O({});return document.addEventListener(sp,G),()=>document.removeEventListener(sp,G)},[]),v.jsx(ui.div,{...y,ref:F,style:{pointerEvents:M?j?"auto":"none":void 0,...e.style},onFocusCapture:ls(e.onFocusCapture,Q.onFocusCapture),onBlurCapture:ls(e.onBlurCapture,Q.onBlurCapture),onPointerDownCapture:ls(e.onPointerDownCapture,$.onPointerDownCapture)})});$0.displayName=xT;var kT="DismissableLayerBranch",ET=k.forwardRef((e,n)=>{const i=k.useContext(W0),o=k.useRef(null),u=ho(n,o);return k.useEffect(()=>{const h=o.current;if(h)return i.branches.add(h),()=>{i.branches.delete(h)}},[i.branches]),v.jsx(ui.div,{...e,ref:u})});ET.displayName=kT;function CT(e,n=globalThis==null?void 0:globalThis.document){const i=Kl(e),o=k.useRef(!1),u=k.useRef(()=>{});return k.useEffect(()=>{const h=p=>{if(p.target&&!o.current){let y=function(){q0(bT,i,x,{discrete:!0})};const x={originalEvent:p};p.pointerType==="touch"?(n.removeEventListener("click",u.current),u.current=y,n.addEventListener("click",u.current,{once:!0})):y()}else n.removeEventListener("click",u.current);o.current=!1},f=window.setTimeout(()=>{n.addEventListener("pointerdown",h)},0);return()=>{window.clearTimeout(f),n.removeEventListener("pointerdown",h),n.removeEventListener("click",u.current)}},[n,i]),{onPointerDownCapture:()=>o.current=!0}}function PT(e,n=globalThis==null?void 0:globalThis.document){const i=Kl(e),o=k.useRef(!1);return k.useEffect(()=>{const u=h=>{h.target&&!o.current&&q0(ST,i,{originalEvent:h},{discrete:!1})};return n.addEventListener("focusin",u),()=>n.removeEventListener("focusin",u)},[n,i]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function ay(){const e=new CustomEvent(sp);document.dispatchEvent(e)}function q0(e,n,i,{discrete:o}){const u=i.originalEvent.target,h=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});n&&u.addEventListener(e,n,{once:!0}),o?_T(u,h):u.dispatchEvent(h)}var xf="focusScope.autoFocusOnMount",bf="focusScope.autoFocusOnUnmount",ly={bubbles:!1,cancelable:!0},TT="FocusScope",V0=k.forwardRef((e,n)=>{const{loop:i=!1,trapped:o=!1,onMountAutoFocus:u,onUnmountAutoFocus:h,...f}=e,[p,y]=k.useState(null),x=Kl(u),b=Kl(h),S=k.useRef(null),P=ho(n,T=>y(T)),O=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(o){let T=function(M){if(O.paused||!p)return;const j=M.target;p.contains(j)?S.current=j:Ki(S.current,{select:!0})},N=function(M){if(O.paused||!p)return;const j=M.relatedTarget;j!==null&&(p.contains(j)||Ki(S.current,{select:!0}))},R=function(M){if(document.activeElement===document.body)for(const $ of M)$.removedNodes.length>0&&Ki(p)};document.addEventListener("focusin",T),document.addEventListener("focusout",N);const B=new MutationObserver(R);return p&&B.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",N),B.disconnect()}}},[o,p,O.paused]),k.useEffect(()=>{if(p){cy.add(O);const T=document.activeElement;if(!p.contains(T)){const R=new CustomEvent(xf,ly);p.addEventListener(xf,x),p.dispatchEvent(R),R.defaultPrevented||(NT(jT(Z0(p)),{select:!0}),document.activeElement===T&&Ki(p))}return()=>{p.removeEventListener(xf,x),setTimeout(()=>{const R=new CustomEvent(bf,ly);p.addEventListener(bf,b),p.dispatchEvent(R),R.defaultPrevented||Ki(T??document.body,{select:!0}),p.removeEventListener(bf,b),cy.remove(O)},0)}}},[p,x,b,O]);const F=k.useCallback(T=>{if(!i&&!o||O.paused)return;const N=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,R=document.activeElement;if(N&&R){const B=T.currentTarget,[M,j]=LT(B);M&&j?!T.shiftKey&&R===j?(T.preventDefault(),i&&Ki(M,{select:!0})):T.shiftKey&&R===M&&(T.preventDefault(),i&&Ki(j,{select:!0})):R===B&&T.preventDefault()}},[i,o,O.paused]);return v.jsx(ui.div,{tabIndex:-1,...f,ref:P,onKeyDown:F})});V0.displayName=TT;function NT(e,{select:n=!1}={}){const i=document.activeElement;for(const o of e)if(Ki(o,{select:n}),document.activeElement!==i)return}function LT(e){const n=Z0(e),i=uy(n,e),o=uy(n.reverse(),e);return[i,o]}function Z0(e){const n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const u=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||u?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)n.push(i.currentNode);return n}function uy(e,n){for(const i of e)if(!RT(i,{upTo:n}))return i}function RT(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function OT(e){return e instanceof HTMLInputElement&&"select"in e}function Ki(e,{select:n=!1}={}){if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&OT(e)&&n&&e.select()}}var cy=AT();function AT(){let e=[];return{add(n){const i=e[0];n!==i&&(i==null||i.pause()),e=dy(e,n),e.unshift(n)},remove(n){var i;e=dy(e,n),(i=e[0])==null||i.resume()}}}function dy(e,n){const i=[...e],o=i.indexOf(n);return o!==-1&&i.splice(o,1),i}function jT(e){return e.filter(n=>n.tagName!=="A")}var MT="Portal",K0=k.forwardRef((e,n)=>{var p;const{container:i,...o}=e,[u,h]=k.useState(!1);Zl(()=>h(!0),[]);const f=i||u&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?iS.createPortal(v.jsx(ui.div,{...o,ref:n}),f):null});K0.displayName=MT;function IT(e,n){return k.useReducer((i,o)=>n[i][o]??i,e)}var Cd=e=>{const{present:n,children:i}=e,o=zT(n),u=typeof i=="function"?i({present:o.isPresent}):k.Children.only(i),h=ho(o.ref,DT(u));return typeof i=="function"||o.isPresent?k.cloneElement(u,{ref:h}):null};Cd.displayName="Presence";function zT(e){const[n,i]=k.useState(),o=k.useRef(null),u=k.useRef(e),h=k.useRef("none"),f=e?"mounted":"unmounted",[p,y]=IT(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const x=Fc(o.current);h.current=p==="mounted"?x:"none"},[p]),Zl(()=>{const x=o.current,b=u.current;if(b!==e){const P=h.current,O=Fc(x);e?y("MOUNT"):O==="none"||(x==null?void 0:x.display)==="none"?y("UNMOUNT"):y(b&&P!==O?"ANIMATION_OUT":"UNMOUNT"),u.current=e}},[e,y]),Zl(()=>{if(n){let x;const b=n.ownerDocument.defaultView??window,S=O=>{const T=Fc(o.current).includes(CSS.escape(O.animationName));if(O.target===n&&T&&(y("ANIMATION_END"),!u.current)){const N=n.style.animationFillMode;n.style.animationFillMode="forwards",x=b.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=N)})}},P=O=>{O.target===n&&(h.current=Fc(o.current))};return n.addEventListener("animationstart",P),n.addEventListener("animationcancel",S),n.addEventListener("animationend",S),()=>{b.clearTimeout(x),n.removeEventListener("animationstart",P),n.removeEventListener("animationcancel",S),n.removeEventListener("animationend",S)}}else y("ANIMATION_END")},[n,y]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:k.useCallback(x=>{o.current=x?getComputedStyle(x):null,i(x)},[])}}function Fc(e){return(e==null?void 0:e.animationName)||"none"}function DT(e){var o,u;let n=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var Sf=0;function FT(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hy()),document.body.insertAdjacentElement("beforeend",e[1]??hy()),Sf++,()=>{Sf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Sf--}},[])}function hy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,651 bytes, lines 321-336
321style.position="fixed",e.style.pointerEvents="none",e}var Or=function(){return Or=Object.assign||function(n){for(var i,o=1,u=arguments.length;o<u;o++){i=arguments[o];for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&(n[h]=i[h])}return n},Or.apply(this,arguments)};function G0(e,n){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(i[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(e);u<o.length;u++)n.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(e,o[u])&&(i[o[u]]=e[o[u]]);return i}function BT(e,n,i){if(i||arguments.length===2)for(var o=0,u=n.length,h;o<u;o++)(h||!(o in n))&&(h||(h=Array.prototype.slice.call(n,0,o)),h[o]=n[o]);return e.concat(h||Array.prototype.slice.call(n))}var ed="right-scroll-bar-position",td="width-before-scroll-bar",UT="with-scroll-bars-hidden",HT="--removed-body-scroll-bar-size";function kf(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function WT(e,n){var i=k.useState(function(){return{value:e,callback:n,facade:{get current(){return i.value},set current(o){var u=i.value;u!==o&&(i.value=o,i.callback(o,u))}}}})[0];return i.callback=n,i.facade}var $T=typeof window<"u"?k.useLayoutEffect:k.useEffect,fy=new WeakMap;function qT(e,n){var i=WT(null,function(o){return e.forEach(function(u){return kf(u,o)})});return $T(function(){var o=fy.get(i);if(o){var u=new Set(o),h=new Set(e),f=i.current;u.forEach(function(p){h.has(p)||kf(p,null)}),h.forEach(function(p){u.has(p)||kf(p,f)})}fy.set(i,e)},[e]),i}function VT(e){return e}function ZT(e,n){n===void 0&&(n=VT);var i=[],o=!1,u={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(h){var f=n(h,o);return i.push(f),function(){i=i.filter(function(p){return p!==f})}},assignSyncMedium:function(h){for(o=!0;i.length;){var f=i;i=[],f.forEach(h)}i={push:function(p){return h(p)},filter:function(){return i}}},assignMedium:function(h){o=!0;var f=[];if(i.length){var p=i;i=[],p.forEach(h),f=i}var y=function(){var b=f;f=[],b.forEach(h)},x=function(){return Promise.resolve().then(y)};x(),i={push:function(b){f.push(b),x()},filter:function(b){return f=f.filter(b),i}}}};return u}function KT(e){e===void 0&&(e={});var n=ZT(null);return n.options=Or({async:!0,ssr:!1},e),n}var Q0=function(e){var n=e.sideCar,i=G0(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return k.createElement(o,Or({},i))};Q0.isSideCarExport=!0;function GT(e,n){return e.useMedium(n),Q0}var Y0=KT(),Ef=function(){},Pd=k.forwardRef(function(e,n){var i=k.useRef(null),o=k.useState({onScrollCapture:Ef,onWheelCapture:Ef,onTouchMoveCapture:Ef}),u=o[0],h=o[1],f=e.forwardProps,p=e.children,y=e.className,x=e.removeScrollBar,b=e.enabled,S=e.shards,P=e.sideCar,O=e.noRelative,F=e.noIsolation,T=e.inert,N=e.allowPinchZoom,R=e.as,B=R===void 0?"div":R,M=e.gapMode,j=G0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=P,Q=qT([i,n]),G=Or(Or({},j),u);return k.createElement(k.Fragment,null,b&&k.createElement($,{sideCar:Y0,removeScrollBar:x,shards:S,noRelative:O,noIsolation:F,inert:T,setCallbacks:h,allowPinchZoom:!!N,lockRef:i,gapMode:M}),f?k.cloneElement(k.Children.only(p),Or(Or({},G),{ref:Q})):k.createElement(B,Or({},G,{className:y,ref:Q}),p))});Pd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pd.classNames={fullWidth:td,zeroRight:ed};var QT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=QT();return n&&e.setAttribute("nonce",n),e}function XT(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function JT(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var eN=function(){var e=0,n=null;return{add:function(i){e==0&&(n=YT())&&(XT(n,i),JT(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},tN=function(){var e=eN();return function(n,i){k.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&i])}},X0=function(){var e=tN(),n=function(i){var o=i.styles,u=i.dynamic;return e(o,u),null};return n},nN={left:0,top:0,right:0,gap:0},Cf=function(e){return parseInt(e||"",10)||0},rN=function(e){var n=window.getComputedStyle(document.body),i=n[e==="padding"?"paddingLeft":"marginLeft"],o=n[e==="padding"?"paddingTop":"marginTop"],u=n[e==="padding"?"paddingRight":"marginRight"];return[Cf(i),Cf(o),Cf(u)]},iN=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nN;var n=rN(e),i=document.documentElement.clientWidth,o=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,o-i+n[2]-n[0])}},sN=X0(),ca="data-scroll-locked",oN=function(e,n,i,o){var u=e.left,h=e.top,f=e.right,p=e.gap;return i===void 0&&(i="margin"),`
322  .`.concat(UT,` {
323   overflow: hidden `).concat(o,`;
324   padding-right: `).concat(p,"px ").concat(o,`;
325  }
326  body[`).concat(ca,`] {
327    overflow: hidden `).concat(o,`;
328    overscroll-behavior: contain;
329    `).concat([n&&"position: relative ".concat(o,";"),i==="margin"&&`
330    padding-left: `.concat(u,`px;
331    padding-top: `).concat(h,`px;
332    padding-right: `).concat(f,`px;
333    margin-left:0;
334    margin-top:0;
335    margin-right: `).concat(p,"px ").concat(o,`;
336    `),i==="padding"&&"padding-right: ".concat(p,"px ").concat(o,";
336")].filter(Boolean).join(""),`
337  }
338  
339  .`).concat(ed,` {
340    right: `).concat(p,"px ").concat(o,`;
341  }
342  
343  .`).concat(td,` {
344    margin-right: `).concat(p,"px ").concat(o,`;
345  }
346  
347  .`).concat(ed," .").concat(ed,` {
348    right: 0 `).concat(o,`;
349  }
350  
351  .`).concat(td," .").concat(td,` {
352    margin-right: 0 `).concat(o,`;
353  }
354  
355  body[`).concat(ca,`] {
356    `).concat(HT,": ").concat(p,`px;
357  }
358`)},py=function(){var e=parseInt(document.body.getAttribute(ca)||"0",10);return isFinite(e)?e:0},aN=function(){k.useEffect(function(){return document.body.setAttribute(ca,(py()+1).toString()),function(){var e=py()-1;e<=0?document.body.removeAttribute(ca):document.body.setAttribute(ca,e.toString())}},[])},lN=function(e){var n=e.noRelative,i=e.noImportant,o=e.gapMode,u=o===void 0?"margin":o;aN();var h=k.useMemo(function(){return iN(u)},[u]);return k.createElement(sN,{styles:oN(h,!n,u,i?"":"!important")})},op=!1;if(typeof window<"u")try{var Bc=Object.defineProperty({},"passive",{get:function(){return op=!0,!0}});window.addEventListener("test",Bc,Bc),window.removeEventListener("test",Bc,Bc)}catch{op=!1}var oa=op?{passive:!1}:!1,uN=function(e){return e.tagName==="TEXTAREA"},J0=function(e,n){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[n]!=="hidden"&&!(i.overflowY===i.overflowX&&!uN(e)&&i[n]==="visible")},cN=function(e){return J0(e,"overflowY")},dN=function(e){return J0(e,"overflowX")},my=function(e,n){var i=n.ownerDocument,o=n;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var u=ew(e,o);if(u){var h=tw(e,o),f=h[1],p=h[2];if(f>p)return!0}o=o.parentNode}while(o&&o!==i.body);return!1},hN=function(e){var n=e.scrollTop,i=e.scrollHeight,o=e.clientHeight;return[n,i,o]},fN=function(e){var n=e.scrollLeft,i=e.scrollWidth,o=e.clientWidth;return[n,i,o]},ew=function(e,n){return e==="v"?cN(n):dN(n)},tw=function(e,n){return e==="v"?hN(n):fN(n)},pN=function(e,n){return e==="h"&&n==="rtl"?-1:1},mN=function(e,n,i,o,u){var h=pN(e,window.getComputedStyle(n).direction),f=h*o,p=i.target,y=n.contains(p),x=!1,b=f>0,S=0,P=0;do{if(!p)break;var O=tw(e,p),F=O[0],T=O[1],N=O[2],R=T-N-h*F;(F||R)&&ew(e,p)&&(S+=R,P+=F);var B=p.parentNode;p=B&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE?B.host:B}while(!y&&p!==document.body||y&&(n.contains(p)||n===p));return(b&&Math.abs(S)<1||!b&&Math.abs(P)<1)&&(x=!0),x},Uc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gy=function(e){return[e.deltaX,e.deltaY]},vy=function(e){return e&&"current"in e?e.current:e},gN=function(e,n){return e[0]===n[0]&&e[1]===n[1]},vN=function(e){return`
359  .block-interactivity-`.concat(e,` {pointer-events: none;}
360  .allow-interactivity-`).concat(e,` {pointer-events: all;}
361`)},yN=0,aa=[];function _N(e){var n=k.useRef([]),i=k.useRef([0,0]),o=k.useRef(),u=k.useState(yN++)[0],h=k.useState(X0)[0],f=k.useRef(e);k.useEffect(function(){f.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var T=BT([e.lockRef.current],(e.shards||[]).map(vy),!0).filter(Boolean);return T.forEach(function(N){return N.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),T.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var p=k.useCallback(function(T,N){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!f.current.allowPinchZoom;var R=Uc(T),B=i.current,M="deltaX"in T?T.deltaX:B[0]-R[0],j="deltaY"in T?T.deltaY:B[1]-R[1],$,Q=T.target,G=Math.abs(M)>Math.abs(j)?"h":"v";if("touches"in T&&G==="h"&&Q.type==="range")return!1;var q=window.getSelection(),ue=q&&q.anchorNode,ae=ue?ue===Q||ue.contains(Q):!1;if(ae)return!1;var pe=my(G,Q);if(!pe)return!0;if(pe?$=G:($=G==="v"?"h":"v",pe=my(G,Q)),!pe)return!1;if(!o.current&&"changedTouches"in T&&(M||j)&&(o.current=$),!$)return!0;var Oe=o.current||$;return mN(Oe,N,T,Oe==="h"?M:j)},[]),y=k.useCallback(function(T){var N=T;if(!(!aa.length||aa[aa.length-1]!==h)){var R="deltaY"in N?gy(N):Uc(N),B=n.current.filter(function($){return $.name===N.type&&($.target===N.target||N.target===$.shadowParent)&&gN($.delta,R)})[0];if(B&&B.should){N.cancelable&&N.preventDefault();return}
vendor: 10,385 bytes, lines 361-365
361if(!B){var M=(f.current.shards||[]).map(vy).filter(Boolean).filter(function($){return $.contains(N.target)}),j=M.length>0?p(N,M[0]):!f.current.noIsolation;j&&N.cancelable&&N.preventDefault()}}},[]),x=k.useCallback(function(T,N,R,B){var M={name:T,delta:N,target:R,should:B,shadowParent:wN(R)};n.current.push(M),setTimeout(function(){n.current=n.current.filter(function(j){return j!==M})},1)},[]),b=k.useCallback(function(T){i.current=Uc(T),o.current=void 0},[]),S=k.useCallback(function(T){x(T.type,gy(T),T.target,p(T,e.lockRef.current))},[]),P=k.useCallback(function(T){x(T.type,Uc(T),T.target,p(T,e.lockRef.current))},[]);k.useEffect(function(){return aa.push(h),e.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:P}),document.addEventListener("wheel",y,oa),document.addEventListener("touchmove",y,oa),document.addEventListener("touchstart",b,oa),function(){aa=aa.filter(function(T){return T!==h}),document.removeEventListener("wheel",y,oa),document.removeEventListener("touchmove",y,oa),document.removeEventListener("touchstart",b,oa)}},[]);var O=e.removeScrollBar,F=e.inert;return k.createElement(k.Fragment,null,F?k.createElement(h,{styles:vN(u)}):null,O?k.createElement(lN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wN(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const xN=GT(Y0,_N);var nw=k.forwardRef(function(e,n){return k.createElement(Pd,Or({},e,{ref:n,sideCar:xN}))});nw.classNames=Pd.classNames;var bN=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},la=new WeakMap,Hc=new WeakMap,Wc={},Pf=0,rw=function(e){return e&&(e.host||rw(e.parentNode))},SN=function(e,n){return n.map(function(i){if(e.contains(i))return i;var o=rw(i);return o&&e.contains(o)?o:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},kN=function(e,n,i,o){var u=SN(n,Array.isArray(e)?e:[e]);Wc[i]||(Wc[i]=new WeakMap);var h=Wc[i],f=[],p=new Set,y=new Set(u),x=function(S){!S||p.has(S)||(p.add(S),x(S.parentNode))};u.forEach(x);var b=function(S){!S||y.has(S)||Array.prototype.forEach.call(S.children,function(P){if(p.has(P))b(P);else try{var O=P.getAttribute(o),F=O!==null&&O!=="false",T=(la.get(P)||0)+1,N=(h.get(P)||0)+1;la.set(P,T),h.set(P,N),f.push(P),T===1&&F&&Hc.set(P,!0),N===1&&P.setAttribute(i,"true"),F||P.setAttribute(o,"true")}catch(R){console.error("aria-hidden: cannot operate on ",P,R)}})};return b(n),p.clear(),Pf++,function(){f.forEach(function(S){var P=la.get(S)-1,O=h.get(S)-1;la.set(S,P),h.set(S,O),P||(Hc.has(S)||S.removeAttribute(o),Hc.delete(S)),O||S.removeAttribute(i)}),Pf--,Pf||(la=new WeakMap,la=new WeakMap,Hc=new WeakMap,Wc={})}},EN=function(e,n,i){i===void 0&&(i="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),u=bN(e);return u?(o.push.apply(o,Array.from(u.querySelectorAll("[aria-live], script"))),kN(o,u,i,"aria-hidden")):function(){return null}};function CN(e){const n=PN(e),i=k.forwardRef((o,u)=>{const{children:h,...f}=o,p=k.Children.toArray(h),y=p.find(NN);if(y){const x=y.props.children,b=p.map(S=>S===y?k.Children.count(x)>1?k.Children.only(null):k.isValidElement(x)?x.props.children:null:S);return v.jsx(n,{...f,ref:u,children:k.isValidElement(x)?k.cloneElement(x,void 0,b):null})}return v.jsx(n,{...f,ref:u,children:h})});return i.displayName=`${e}.Slot`,i}function PN(e){const n=k.forwardRef((i,o)=>{const{children:u,...h}=i;if(k.isValidElement(u)){const f=RN(u),p=LN(h,u.props);return u.type!==k.Fragment&&(p.ref=o?Ed(o,f):f),k.cloneElement(u,p)}return k.Children.count(u)>1?k.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var TN=Symbol("radix.slottable");function NN(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===TN}function LN(e,n){const i={...n};for(const o in n){const u=e[o],h=n[o];/^on[A-Z]/.test(o)?u&&h?i[o]=(...p)=>{const y=h(...p);return u(...p),y}:u&&(i[o]=u):o==="style"?i[o]={...u,...h}:o==="className"&&(i[o]=[u,h].filter(Boolean).join(" "))}return{...e,...i}}function RN(e){var o,u;let n=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var Td="Dialog",[iw]=iT(Td),[ON,gr]=iw(Td),sw=e=>{const{__scopeDialog:n,children:i,open:o,defaultOpen:u,onOpenChange:h,modal:f=!0}=e,p=k.useRef(null),y=k.useRef(null),[x,b]=uT({prop:o,defaultProp:u??!1,onChange:h,caller:Td});return v.jsx(ON,{scope:n,triggerRef:p,contentRef:y,contentId:wf(),titleId:wf(),descriptionId:wf(),open:x,onOpenChange:b,onOpenToggle:k.useCallback(()=>b(S=>!S),[b]),modal:f,children:i})};sw.displayName=Td;var ow="DialogTrigger",AN=k.forwardRef((e,n)=>{const{__scopeDialog:i,...o}=e,u=gr(ow,i),h=ho(n,u.triggerRef);return v.jsx(ui.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":$p(u.open),...o,ref:h,onClick:ls(e.onClick,u.onOpenToggle)})});AN.displayName=ow;var Hp="DialogPortal",[jN,aw]=iw(Hp,{forceMount:void 0}),lw=e=>{const{__scopeDialog:n,forceMount:i,children:o,container:u}=e,h=gr(Hp,n);return v.jsx(jN,{scope:n,forceMount:i,children:k.Children.map(o,f=>v.jsx(Cd,{present:i||h.open,children:v.jsx(K0,{asChild:!0,container:u,children:f})}))})};lw.displayName=Hp;var dd="DialogOverlay",uw=k.forwardRef((e,n)=>{const i=aw(dd,e.__scopeDialog),{forceMount:o=i.forceMount,...u}=e,h=gr(dd,e.__scopeDialog);return h.modal?v.jsx(Cd,{present:o||h.open,children:v.jsx(IN,{...u,ref:n})}):null});uw.displayName=dd;var MN=CN("DialogOverlay.RemoveScroll"),IN=k.forwardRef((e,n)=>{const{__scopeDialog:i,...o}=e,u=gr(dd,i);return v.jsx(nw,{as:MN,allowPinchZoom:!0,shards:[u.contentRef],children:v.jsx(ui.div,{"data-state":$p(u.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),lo="DialogContent",cw=k.forwardRef((e,n)=>{const i=aw(lo,e.__scopeDialog),{forceMount:o=i.forceMount,...u}=e,h=gr(lo,e.__scopeDialog);return v.jsx(Cd,{present:o||h.open,children:h.modal?v.jsx(zN,{...u,ref:n}):v.jsx(DN,{...u,ref:n})})});cw.displayName=lo;var zN=k.forwardRef((e,n)=>{const i=gr(lo,e.__scopeDialog),o=k.useRef(null),u=ho(n,i.contentRef,o);return k.useEffect(()=>{const h=o.current;if(h)return EN(h)},[]),v.jsx(dw,{...e,ref:u,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ls(e.onCloseAutoFocus,h=>{var f;h.preventDefault(),(f=i.triggerRef.current)==null||f.focus()}),onPointerDownOutside:ls(e.onPointerDownOutside,h=>{const f=h.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0;(f.button===2||p)&&h.preventDefault()}),onFocusOutside:ls(e.onFocusOutside,h=>h.preventDefault())})}),DN=k.forwardRef((e,n)=>{const i=gr(lo,e.__scopeDialog),o=k.useRef(!1),u=k.useRef(!1);return v.jsx(dw,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:h=>{var f,p;(f=e.onCloseAutoFocus)==null||f.call(e,h),h.defaultPrevented||(o.current||(p=i.triggerRef.current)==null||p.focus(),h.preventDefault()),o.current=!1,u.current=!1},onInteractOutside:h=>{var y,x;(y=e.onInteractOutside)==null||y.call(e,h),h.defaultPrevented||(o.current=!0,h.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const f=h.target;((x=i.triggerRef.current)==null?void 0:x.contains(f))&&h.preventDefault(),h.detail.originalEvent.type==="focusin"&&u.current&&h.preventDefault()}})}),dw=k.forwardRef((e,n)=>{const{__scopeDialog:i,trapFocus:o,onOpenAutoFocus:u,onCloseAutoFocus:h,...f}=e,p=gr(lo,i),y=k.useRef(null),x=ho(n,y);return FT(),v.jsxs(v.Fragment,{children:[v.jsx(V0,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:u,onUnmountAutoFocus:h,children:v.jsx($0,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":$p(p.open),...f,ref:x,onDismiss:()=>p.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(FN,{titleId:p.titleId}),v.jsx(UN,{contentRef:y,descriptionId:p.descriptionId})]})]})}),Wp="DialogTitle",hw=k.forwardRef((e,n)=>{const{__scopeDialog:i,...o}=e,u=gr(Wp,i);return v.jsx(ui.h2,{id:u.titleId,...o,ref:n})});hw.displayName=Wp;var fw="DialogDescription",pw=k.forwardRef((e,n)=>{const{__scopeDialog:i,...o}=e,u=gr(fw,i);return v.jsx(ui.p,{id:u.descriptionId,...o,ref:n})});pw.displayName=fw;var mw="DialogClose",gw=k.forwardRef((e,n)=>{const{__scopeDialog:i,...o}=e,u=gr(mw,i);return v.jsx(ui.button,{type:"button",...o,ref:n,onClick:ls(e.onClick,()=>u.onOpenChange(!1))})});gw.displayName=mw;function $p(e){return e?"open":"closed"}var vw="DialogTitleWarning",[GL,yw]=rT(vw,{contentName:lo,titleName:Wp,docsSlug:"dialog"}),FN=({titleId:e})=>{const n=yw(vw),i=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
362
363If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
364
365For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(i))},[i,e]),null},BN="DialogDescriptionWarning",UN=({contentRef:e,descriptionId:n})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${yw(BN).contentName}}.`;return k.useEffect(()=>{var h;const u=(h=e.current)==null?void 0:h.getAttribute("aria-describedby");n&&u&&(document.getElementById(n)||console.warn(o))},[o,e,n]),null},HN=sw,WN=lw,_w=uw,ww=cw,xw=hw,bw=pw,$N=gw;const Sw=HN,qN=WN,kw=k.forwardRef(({className:e,...n},i)=>v.jsx(_w,{ref:i,className:Sn("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));kw.displayName=_w.displayName;const qp=k.forwardRef(({className:e,children:n,...i},o)=>v.jsxs(qN,{children:[v.jsx(kw,{}),v.jsxs(ww,{ref:o,className:Sn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
365nded-lg",e),...i,children:[n,v.jsxs($N,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[v.jsx(us,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));qp.displayName=ww.displayName;const Vp=({className:e,...n})=>v.jsx("div",{className:Sn("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});Vp.displayName="DialogHeader";const Zp=k.forwardRef(({className:e,...n},i)=>v.jsx(xw,{ref:i,className:Sn("text-lg font-semibold leading-none tracking-tight",e),...n}));Zp.displayName=xw.displayName;const VN=k.forwardRef(({className:e,...n},i)=>v.jsx(bw,{ref:i,className:Sn("text-sm text-muted-foreground",e),...n}));VN.displayName=bw.displayName;const ZN=[{key:"theme_weather_images",label:"Weather & Climate Images"},{key:"theme_fire_risk_images",label:"Fire Risk & History Images"},{key:"theme_land_cover_images",label:"Land Cover & Topography Images"},{key:"theme_priority_projects_images",label:"Priority Projects Images"}],KN=[{url:"https://images.unsplash.com/photo-1504608524841-42584120d1cc?w=800&q=80",caption:"Drought-parched leeward landscape during dry season"},{url:"https://images.unsplash.com/photo-1534088568595-a066f410bcda?w=800&q=80",caption:"Trade wind clouds building over Hawaiian peaks"},{url:"https://images.unsplash.com/photo-1561553543-e4c7b608b98d?w=800&q=80",caption:"Arid coastal zone typical of leeward CWPP regions"}],GN=[{url:"https://images.unsplash.com/photo-1473445730015-841f29a9490b?w=800&q=80",caption:"Wildfire burning through dry Hawaiian scrubland"},{url:"https://images.unsplash.com/photo-1602491453631-e2a5ad90a131?w=800&q=80",caption:"Aerial view of WUI community surrounded by fire-prone terrain"},{url:"https://images.unsplash.com/photo-1563514227147-6d2ff665a6a0?w=800&q=80",caption:"Fire scar landscape showing extent of recent burn"}],QN=[{url:"https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?w=800&q=80",caption:"Dense Guinea grass savanna — primary fire carrier in Hawaiʻi"},{url:"https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=800&q=80",caption:"Volcanic slopes and steep topography that accelerate fire spread"},{url:"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=800&q=80",caption:"Native forest under threat from encroaching invasive grasses"}],YN=[{url:"https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?w=800&q=80",caption:"Community fuel break installation along WUI perimeter"},{url:"https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=800&q=80",caption:"Defensible space clearing around residential structures"},{url:"https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=800&q=80",caption:"Community preparedness training and evacuation planning"}];function XN(e,n){return e[n]&&e[n].length>0?e[n]:n==="theme_weather_images"?KN:n==="theme_fire_risk_images"?GN:n==="theme_land_cover_images"?QN:n==="theme_priority_projects_images"?YN:[]}function JN({section:e,field:n,label:i,onSaved:o}){const[u,h]=k.useState(()=>XN(e,n)),[f,p]=k.useState(!1),{toast:y}=Ca(),x=()=>{const O=document.createElement("input");O.type="file",O.accept="image/*",O.multiple=!0,O.onchange=async F=>{const T=Array.from(F.target.files);p(!0);try{const N=[];for(const R of T){const{file_url:B}=await it.integrations.Core.UploadFile({file:R});N.push({url:B,caption:R.name.replace(/\.[^.]+$/,"")})}h(R=>[...R,...N])}catch{y({title:"Upload failed",variant:"destructive"})}p(!1)},O.click()},b=O=>h(F=>F.filter((T,N)=>N!==O)),S=(O,F)=>h(T=>T.map((N,R)=>R===O?{...N,caption:F}:N)),P=async()=>{try{await it.entities.StorySection.update(e.id,{[n]:u}),y({title:`${i} saved`}),o()}catch{y({title:"Save failed",variant:"destructive"})}};return v.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 space-y-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("p",{className:"text-sm font-semibold text-gray-700",children:i}),v.jsxs("div",{className:"flex gap-2",children:[v.jsxs(pr,{size:"sm",variant:"outline",onClick:x,disabled:f,className:"gap-1 text-xs",children:[f?v.jsx(io,{size:13,className:"animate-spin"}):v.jsx(md,{size:13})," Add"]}),v.jsx(pr,{size:"sm",onClick:P,className:"gap-1 text-xs",children:"Save"})]})]}),v.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[u.map((O,F)=>v.jsxs("div",{className:"relative group",children:[v.jsx("img",{src:O.url,alt:O.caption,className:"w-full aspect-video object-cover rounded-lg"}),v.jsx("button",{onClick:()=>b(F),className:"absolute top-1 right-1 bg-black/60 text-white rounded-full p-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:v.jsx(us,{size:12})}),v.jsx(qs,{value:O.caption||"",onChange:T=>S(F,T.target.value),placeholder:"Caption…",className:"mt-1 text-xs h-7 px-2"})]},F)),u.length===0&&v.jsx("p",{className:"col-span-3 text-xs text-gray-400 text-center py-4",children:"No images yet — click Add to upload"})]})]})}function eL({section:e,onSaved:n}){const[i,o]=k.useState(e.gallery_urls||[]),[u,h]=k.useState(!1),{toast:f}=Ca(),p=()=>{const b=document.createElement("input");b.type="file",b.accept="image/*",b.multiple=!0,b.onchange=async S=>{const P=Array.from(S.target.files);h(!0);try{const O=[];for(const F of P){const{file_url:T}=await it.integrations.Core.UploadFile({file:F});O.push(T)}o(F=>[...F,...O])}catch{f({title:"Upload failed",variant:"destructive"})}h(!1)},b.click()},y=b=>o(S=>S.filter((P,O)=>O!==b)),x=async()=>{try{await it.entities.StorySection.update(e.id,{gallery_urls:i}),f({title:"Gallery saved"}),n()}catch{f({title:"Save failed",variant:"destructive"})}};return v.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 space-y-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("p",{className:"text-sm font-semibold text-gray-700",children:"Section Gallery Images"}),v.jsxs("div",{className:"flex gap-2",children:[v.jsxs(pr,{size:"sm",variant:"outline",onClick:p,disabled:u,className:"gap-1 text-xs",children:[u?v.jsx(io,{size:13,className:"animate-spin"}):v.jsx(md,{size:13})," Add"]}),v.jsx(pr,{size:"sm",onClick:x,className:"gap-1 text-xs",children:"Save"})]})]}),v.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[i.map((b,S)=>v.jsxs("div",{className:"relative group",children:[v.jsx("img",{src:b,alt:"",className:"w-full aspect-video object-cover rounded-lg"}),v.jsx("button",{onClick:()=>y(S),className:"absolute top-1 right-1 bg-black/60 text-white rounded-full p-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:v.jsx(us,{size:12})})]},S)),i.length===0&&v.jsx("p",{className:"col-span-3 text-xs text-gray-400 text-center py-4",children:"No gallery images yet"})]})]})}function tL({section:e,onUpdate:n,sections:i=[]}){const[o,u]=k.useState(!1),h=i.filter(S=>S.section_type==="region"),f=e&&e.section_type==="region"?e:h[0],[p,y]=k.useState(null),x=p||f,b=()=>{y(f||null),u(!0)};return h.length===0?null:v.jsxs(v.Fragment,{children:[v.jsxs(pr,{onClick:b,size:"sm",variant:"outline",className:"rounded-full shadow-lg gap-2 bg-white",children:[v.jsx(Vx,{size:16})," Manage Images"]}),v.jsx(Sw,{open:o,onOpenChange:u,children:v.jsxs(qp,{className:"max-w-2xl max-h-[88vh] overflow-y-auto",children:[v.jsx(Vp,{children:v.jsx(Zp,{children:"Image Manager"})}),v.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:h.map(S=>v.jsx("button",{onClick:()=>y(S),className:`text-xs px-3 py-1 rounded-full border transition-colors ${(x==null?void 0:x.id)===S.id?"bg-gray-900 text-white border-gray-900":"bg-white text-gray-700 border-gray-300 hover:border-gray-500"}`,children:S.cwpp_region||S.title},S.id))}
365),x&&v.jsxs("div",{className:"space-y-4 mt-4",children:[v.jsx("p",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wide",children:x.cwpp_region||x.title}),ZN.map(({key:S,label:P})=>v.jsx(JN,{section:x,field:S,label:P,onSaved:n},S+x.id)),v.jsx(eL,{section:x,onSaved:n})]})]})})]})}function Ew({section:e,onUpdate:n,sections:i=[]}){var M;const o=Fp(),[u,h]=k.useState(!1),[f,p]=k.useState({}),[y,x]=k.useState(!1),[b,S]=k.useState(!1),[P,O]=k.useState(null),{toast:F}=Ca();if(!o)return null;const T=P||e,N=j=>{const $=j||T;$&&(O($),p({title:$.title||"",subtitle:$.subtitle||"",body:$.body||"",image_url:$.image_url||"",background_url:$.background_url||"",map_embed_url:$.map_embed_url||""}),h(!0))},R=async j=>{const $=document.createElement("input");$.type="file",$.accept="image/*",$.onchange=async Q=>{const G=Q.target.files[0];if(G){x(!0);try{const{file_url:q}=await it.integrations.Core.UploadFile({file:G});p(ue=>({...ue,[j]:q})),F({title:"Image uploaded",description:"Don't forget to save!"})}catch{F({title:"Upload failed",variant:"destructive"})}x(!1)}},$.click()},B=async()=>{const j=P||e;try{const $={};f.title!==j.title&&($.title=f.title),f.subtitle!==j.subtitle&&($.subtitle=f.subtitle),f.body!==j.body&&($.body=f.body),f.image_url!==(j.image_url||"")&&($.image_url=f.image_url),f.background_url!==(j.background_url||"")&&($.background_url=f.background_url),f.map_embed_url!==(j.map_embed_url||"")&&($.map_embed_url=f.map_embed_url),Object.keys($).length>0&&(await it.entities.StorySection.update(j.id,$),n(),F({title:"Section updated"})),h(!1)}catch{F({title:"Save failed",variant:"destructive"})}};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"fixed bottom-20 right-6 z-50 flex flex-col gap-2 items-end",children:[v.jsxs("div",{className:"flex items-center gap-1 shadow-lg",children:[v.jsxs(pr,{onClick:()=>N(),size:"sm",disabled:!T,className:"rounded-l-full rounded-r-none bg-gray-900 hover:bg-gray-800 gap-2 pr-3",children:[v.jsx(ub,{size:16})," ",T?`Edit: ${T.title}`:"No section selected"]}),v.jsxs("div",{className:"relative",children:[v.jsx(pr,{size:"sm",onClick:()=>S(j=>!j),className:"rounded-r-full rounded-l-none bg-gray-700 hover:bg-gray-600 px-2 border-l border-gray-600",children:v.jsx(pd,{size:14})}),b&&v.jsxs("div",{className:"absolute bottom-full right-0 mb-1 w-64 bg-white rounded-xl shadow-2xl border border-gray-200 overflow-hidden max-h-80 overflow-y-auto",children:[v.jsx("div",{className:"p-2 bg-gray-50 border-b text-xs font-semibold text-gray-500 uppercase tracking-wider",children:"Select Section to Edit"}),i.map(j=>v.jsxs("button",{onClick:()=>{N(j),S(!1)},className:"w-full text-left px-3 py-2 text-sm hover:bg-amber-50 hover:text-amber-800 transition-colors border-b border-gray-50 last:border-0",children:[v.jsx("div",{className:"font-medium truncate",children:j.title}),v.jsx("div",{className:"text-xs text-gray-400",children:j.island||j.section_type})]},j.id))]})]})]}),v.jsx(tL,{section:T,onUpdate:n,sections:i})]}),v.jsx(Sw,{open:u,onOpenChange:h,children:v.jsxs(qp,{className:"max-w-lg max-h-[85vh] overflow-y-auto",children:[v.jsx(Vp,{children:v.jsxs(Zp,{children:["Edit: ",(M=P||e)==null?void 0:M.title]})}),v.jsxs("div",{className:"space-y-4 mt-4",children:[v.jsxs("div",{children:[v.jsx($s,{children:"Title"}),v.jsx(qs,{value:f.title,onChange:j=>p($=>({...$,title:j.target.value}))})]}),v.jsxs("div",{children:[v.jsx($s,{children:"Subtitle"}),v.jsx(qs,{value:f.subtitle,onChange:j=>p($=>({...$,subtitle:j.target.value}))})]}),v.jsxs("div",{children:[v.jsx($s,{children:"Body Text"}),v.jsx(B0,{rows:6,value:f.body,onChange:j=>p($=>({...$,body:j.target.value}))})]}),v.jsxs("div",{children:[v.jsx($s,{children:"Primary Image"}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx(qs,{value:f.image_url,onChange:j=>p($=>({...$,image_url:j.target.value})),placeholder:"URL or upload",className:"flex-1"}),v.jsx(pr,{variant:"outline",size:"sm",onClick:()=>R("image_url"),disabled:y,children:v.jsx(Ul,{size:14})})]}),f.image_url&&v.jsx("img",{src:f.image_url,alt:"",className:"mt-2 h-24 rounded object-cover"})]}
365),v.jsxs("div",{children:[v.jsx($s,{children:"Background Image"}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx(qs,{value:f.background_url,onChange:j=>p($=>({...$,background_url:j.target.value})),placeholder:"URL or upload",className:"flex-1"}),v.jsx(pr,{variant:"outline",size:"sm",onClick:()=>R("background_url"),disabled:y,children:v.jsx(Ul,{size:14})})]}),f.background_url&&v.jsx("img",{src:f.background_url,alt:"",className:"mt-2 h-24 rounded object-cover"})]}),v.jsxs("div",{children:[v.jsx($s,{children:"Embed Map URL (iframe)"}),v.jsx(qs,{value:f.map_embed_url,onChange:j=>p($=>({...$,map_embed_url:j.target.value})),placeholder:"https://..."})]}),v.jsxs(pr,{onClick:B,className:"w-full gap-2",children:[v.jsx(ab,{size:16})," Save Changes"]})]})]})})]})}function Kp({images:e,index:n,onClose:i,onNav:o}){k.useEffect(()=>{const h=f=>{f.key==="Escape"&&i(),f.key==="ArrowLeft"&&o(-1),f.key==="ArrowRight"&&o(1)};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[i,o]);const u=e[n];return v.jsxs("div",{className:"fixed inset-0 z-[9999] bg-black/95 flex items-center justify-center",onClick:i,children:[v.jsx("button",{onClick:i,className:"absolute top-4 right-4 text-white/70 hover:text-white z-10",children:v.jsx(us,{size:28})}),e.length>1&&v.jsxs(v.Fragment,{children:[v.jsx("button",{onClick:h=>{h.stopPropagation(),o(-1)},className:"absolute left-4 top-1/2 -translate-y-1/2 text-white/70 hover:text-white bg-black/40 rounded-full p-2",children:v.jsx(Dy,{size:28})}),v.jsx("button",{onClick:h=>{h.stopPropagation(),o(1)},className:"absolute right-4 top-1/2 -translate-y-1/2 text-white/70 hover:text-white bg-black/40 rounded-full p-2",children:v.jsx(Fy,{size:28})})]}),v.jsxs("div",{className:"max-w-5xl max-h-[90vh] flex flex-col items-center px-16",onClick:h=>h.stopPropagation(),children:[v.jsx("img",{src:u.url,alt:u.caption,className:"max-h-[78vh] max-w-full object-contain rounded-lg shadow-2xl"}),u.caption&&v.jsx("p",{className:"text-white/70 text-sm mt-4 text-center max-w-xl",children:u.caption}),e.length>1&&v.jsxs("p",{className:"text-white/40 text-xs mt-2",children:[n+1," / ",e.length]})]})]})}function Gp({images:e,interval:n=5e3,onOpen:i,className:o="",backgroundImage:u}){const[h,f]=k.useState(0),[p,y]=k.useState(!1),x=k.useRef(null);if(k.useEffect(()=>{if(!(!e||e.length<=1||p))return x.current=setInterval(()=>{f(b=>(b+1)%e.length)},n),()=>clearInterval(x.current)},[e,n,p]),!e||e.length===0)return null;if(e.length===1){const b=e[0];return v.jsxs("div",{className:`relative group overflow-hidden rounded-lg shadow-sm ${u?"":"bg-black"} ${o}`,children:[u&&v.jsxs(v.Fragment,{children:[v.jsx("img",{src:u,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),v.jsx("div",{className:"absolute inset-0 bg-white/50"})]}),v.jsx("img",{src:b.url,alt:b.caption||"",className:"relative w-full h-full object-contain"}),i&&v.jsx("button",{onClick:S=>{S.stopPropagation(),i(0)},className:"absolute top-2 right-2 z-10 bg-black/40 hover:bg-black/60 text-white rounded-full p-2 opacity-0 group-hover:opacity-100 transition-opacity",children:v.jsx(Ug,{size:14})})]})}return v.jsxs("div",{className:`relative cursor-pointer group overflow-hidden rounded-lg shadow-sm hover:shadow-md transition-shadow ${u?"":"bg-black"} ${o}`,onClick:()=>y(b=>!b),children:[u&&v.jsxs(v.Fragment,{children:[v.jsx("img",{src:u,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),v.jsx("div",{className:"absolute inset-0 bg-white/50"})]}),e.map((b,S)=>v.jsx("img",{src:b.url,alt:b.caption||"",className:"absolute inset-0 w-full h-full object-contain transition-opacity duration-1000",style:{opacity:S===h?1:0}},S)),v.jsx("div",{className:"absolute bottom-2 left-1/2 -translate-x-1/2 flex gap-1.5 z-10",onClick:b=>b.stopPropagation(),children:e.map((b,S)=>v.jsx("button",{onClick:()=>f(S),className:`h-1.5 rounded-full transition-all duration-300 ${S===h?"bg-white w-4":"bg-white/50 w-1.5"}`},S))}),v.jsx("button",{onClick:b=>{b.stopPropagation(),y(S=>!S)},className:"absolute top-2 left-2 z-10 bg-black/40 hover:bg-black/60 text-white rounded-full p-2 transition-colors",children:p?v.jsx(hp,{size:16}):v.jsx(dp,{size:16})}),i&&v.jsx("button",{onClick:b=>{b.stopPropagation(),i(h)},className:"absolute top-2 right-2 z-10 bg-black/40 hover:bg-black/60 text-white rounded-full p-2 opacity-0 group-hover:opacity-100 transition-opacity",children:v.jsx(Ug,{size:14})}),p&&v.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:v.jsx("span",{className:"bg-black/40 text-white text-xs font-medium px-3 py-1.5 rounded-full",children:"Paused — click to play"})})]})}const nL="https://media.base44.com/images/public/6a3a011d5c6c187b9523d0f6/b058397b0_IMG_2025.JPG",rL="https://media.base44.com/images/public/6a3a011d5c6c187b9523d0f6/4e5ae3800_IMGP4310.jpg",iL="https://media.base44.com/images/public/6a3a011d5c6c187b9523d0f6/ac9fcccac_IMGP0474.JPG",sL={weather:nL,fire_risk:rL,land_cover:iL},Tf=[{key:"weather",icon:By,label:"Weather & Climate",color:"sky",bg:"bg-sky-50",border:"border-sky-200",accent:"text-sky-800",activeBg:"bg-sky-700",dot:"bg-sky-500",headline:"Hawaiʻi's Fire-Prone Climate",body:"Hawaiʻi's fire risk is fundamentally shaped by climate. The state experiences a distinct dry season (May–October) driven by the North Pacific High, which suppresses rainfall and fans strong trade winds. During El Niño years, drought conditions intensify statewide. The leeward sides of all islands—where the majority of CWPP planning areas are located—receive less than 20 inches of rain per year, creating bone-dry fuel conditions that persist for months. Foehn-effect winds, known locally as Kona winds, bring hot, dry, downslope airflow that dramatically elevates fire danger within hours.",highlights:["Dry season runs May–October, coinciding with peak fire activity","Leeward zones receive fewer than 20 inches of annual rainfall","El Niño events intensify drought and extend the fire season","Kona winds deliver hot, dry, downslope conditions that accelerate fire spread","Trade wind inversions trap smoke and increase health hazards for c
365oastal communities"],defaultImages:[{url:"https://images.unsplash.com/photo-1504608524841-42584120d1cc?w=800&q=80",caption:"Drought-parched leeward landscape during dry season"},{url:"https://images.unsplash.com/photo-1534088568595-a066f410bcda?w=800&q=80",caption:"Trade wind clouds building over Hawaiian peaks"},{url:"https://images.unsplash.com/photo-1561553543-e4c7b608b98d?w=800&q=80",caption:"Arid coastal zone typical of leeward CWPP regions"},{url:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&q=80",caption:"Sun-baked hillside during peak fire danger season"}]},{key:"fire_risk",icon:cp,label:"Fire Risk & Fire History",color:"orange",bg:"bg-orange-50",border:"border-orange-200",accent:"text-orange-800",activeBg:"bg-orange-700",dot:"bg-orange-500",headline:"A Legacy of Wildfire Across the Islands",body:"Wildfire is not a natural part of Hawaiʻi's ecosystem—it is almost entirely a human-driven phenomenon. Across all 14 CWPP regions, fire history data reveals recurring ignitions concentrated in wildland-urban interface (WUI) zones, with the majority caused by human activities: escaped campfires, arson, downed power lines, and agricultural burning. Since 2000, hundreds of thousands of acres have burned statewide. The 2023 Maui fires—the deadliest U.S. wildfire disaster in over a century—demonstrated the catastrophic potential when fire-prone conditions, invasive grasses, and aging infrastructure converge. Fire risk assessments across all CWPP regions classify large portions of the WUI as High or Very High hazard, with steep slopes, dry fuels, and limited access roads compounding the danger.",highlights:["Majority of wildfires caused by human activity: arson, power lines, escaped burns","WUI communities across all islands rated High to Very High fire hazard","2023 Lāhainā fire: deadliest U.S. wildfire disaster in over 100 years","Recurring ignitions documented in the same high-risk corridors across decades","Steep terrain and limited road access impede firefighter response times"],defaultImages:[{url:"https://images.unsplash.com/photo-1473445730015-841f29a9490b?w=800&q=80",caption:"Wildfire burning through dry Hawaiian scrubland"},{url:"https://images.unsplash.com/photo-1602491453631-e2a5ad90a131?w=800&q=80",caption:"Aerial view of WUI community surrounded by fire-prone terrain"},{url:"https://images.unsplash.com/photo-1563514227147-6d2ff665a6a0?w=800&q=80",caption:"Fire scar landscape showing extent of recent burn"},{url:"https://images.unsplash.com/photo-1568454537842-d933259bb258?w=800&q=80",caption:"Firefighters working a WUI incident in steep terrain"}]},{key:"land_cover",icon:pp,label:"Land Cover & Topography",color:"emerald",bg:"bg-emerald-50",border:"border-emerald-200",accent:"text-emerald-800",activeBg:"bg-emerald-700",dot:"bg-emerald-500",headline:"Invasive Grasses & Volcanic Terrain",body:"The conversion of native dryland forests and shrublands to non-native grasses is the single greatest driver of expanded wildfire risk in Hawaiʻi. Species such as Guinea grass, buffelgrass, molasses grass, and broomsedge form continuous, fast-curing fuel beds that carry fire across landscapes that historically would not have burned. On Hawaiʻi Island alone, 65% of dryland forest ecosystems have been lost—primarily to fire carried by these invasive grasses. Topography amplifies the threat: the islands' volcanic origins produce steep, broken terrain with narrow valleys that channel winds and accelerate fire runs. Slopes above 30% are common in many CWPP planning areas, dramatically increasing rates of spread. The interface between residential development and these landscapes defines the WUI where people and fire meet.",highlights:["Guinea grass, buffelgrass, and molasses grass dominate leeward fire landscapes","65% of Hawaiʻi Island dryland forest lost primarily due to fire spread by invasive grasses","Continuous grass fuel beds connect ignition points to WUI communities","Volcanic slopes above 30% grade funnel wind and dramatically increase fire spread rates","Loss of native vegetation reduces watershed function and increases erosion after fire"],defaultImages:[{url:"https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?w=800&q=80",caption:"Dense Guinea grass savanna — primary carrier of wildfire in Hawaiʻi"},{url:"https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=800&q=80",caption:"Volcanic slopes and steep topography that accelerate fire spread"},{url:"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=800&q=80",caption:"Native ʻōhiʻa forest under threat from encroaching invasive grasses"},{url:"https://images.unsplash.com/photo-1518173946687-a4c8892bbd9f?w=800&q=80",caption:"Lava field and dry shrubland typical of leeward WUI terrain"}
365]}],yy={sky:{tab:"hover:bg-sky-50 hover:text-sky-800 border-sky-200",active:"bg-sky-700 text-white border-sky-700",dot:"bg-sky-500",highlight:"bg-sky-50 border-sky-200"},orange:{tab:"hover:bg-orange-50 hover:text-orange-800 border-orange-200",active:"bg-orange-700 text-white border-orange-700",dot:"bg-orange-500",highlight:"bg-orange-50 border-orange-200"},emerald:{tab:"hover:bg-emerald-50 hover:text-emerald-800 border-emerald-200",active:"bg-emerald-700 text-white border-emerald-700",dot:"bg-emerald-500",highlight:"bg-emerald-50 border-emerald-200"}};function oL({img:e,themeAccent:n,onReplace:i,onDelete:o,onEditCaption:u,uploading:h}){const[f,p]=k.useState(!1),[y,x]=k.useState(e.caption||""),b=()=>{u(y),p(!1)};return v.jsxs("div",{className:"relative group rounded-lg overflow-hidden aspect-video shadow-sm",children:[v.jsx("img",{src:e.url,alt:e.caption,className:"w-full h-full object-cover"}),v.jsxs("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex flex-col items-center justify-center gap-2",children:[v.jsxs("button",{onClick:i,disabled:h,className:"flex items-center gap-1 bg-white text-gray-800 text-xs font-medium px-3 py-1.5 rounded-full hover:bg-gray-100 transition-colors",children:[v.jsx(Ul,{size:12})," Replace"]}),v.jsxs("button",{onClick:o,disabled:h,className:"flex items-center gap-1 bg-red-500 text-white text-xs font-medium px-3 py-1.5 rounded-full hover:bg-red-600 transition-colors",children:[v.jsx(fp,{size:12})," Delete"]}),v.jsxs("button",{onClick:()=>p(!0),className:"flex items-center gap-1 bg-white/80 text-gray-800 text-xs font-medium px-3 py-1.5 rounded-full hover:bg-white transition-colors",children:[v.jsx(tb,{size:12})," Caption"]})]}),f&&v.jsxs("div",{className:"absolute inset-0 bg-black/80 flex flex-col items-center justify-center p-3 gap-2",children:[v.jsx("input",{autoFocus:!0,value:y,onChange:S=>x(S.target.value),className:"w-full text-xs rounded px-2 py-1.5 bg-white text-gray-900",placeholder:"Image caption..."}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("button",{onClick:b,className:"bg-green-500 text-white p-1.5 rounded-full",children:v.jsx(Ax,{size:12})}),v.jsx("button",{onClick:()=>p(!1),className:"bg-gray-500 text-white p-1.5 rounded-full",children:v.jsx(us,{size:12})})]})]})]})}function aL(){const[e,n]=k.useState("weather"),[i,o]=k.useState(null),[u,h]=k.useState({}),[f,p]=k.useState(!1),[y,x]=k.useState(!1),b=Fp(),{toast:S}=Ca(),P=Tf.find(Q=>Q.key===e),O=P.icon,F=yy[P.color],T=async()=>{try{const Q=await it.entities.ThemeSectionImages.list("order",200),G={weather:[],fire_risk:[],land_cover:[]};Q.forEach(q=>{G[q.theme_key]&&G[q.theme_key].push(q)}),h(G)}catch(Q){console.error(Q)}};k.useEffect(()=>{T()},[]);const R=(Q=>{const G=u[Q];return G&&G.length>0?G.map(q=>({id:q.id,url:q.url,caption:q.caption||""})):Tf.find(q=>q.key===Q).defaultImages.map(q=>({...q,id:null}))})(e),B=async(Q,G=null)=>{var q;p(!0);try{const{file_url:ue}=await it.integrations.Core.UploadFile({file:Q});if(G)await it.entities.ThemeSectionImages.update(G,{url:ue});else{const ae=((q=u[e])==null?void 0:q.length)||0;await it.entities.ThemeSectionImages.create({theme_key:e,url:ue,caption:"",order:ae})}await T(),S({title:"Image saved"})}catch{S({title:"Upload failed",variant:"destructive"})}p(!1)},M=(Q=null)=>{const G=document.createElement("input");G.type="file",G.accept="image/*",G.onchange=q=>{q.target.files[0]&&B(q.target.files[0],Q)},G.click()},j=async Q=>{if(!Q.id){const G=P.defaultImages.filter(q=>q.url!==Q.url);p(!0);try{for(let q=0;q<G.length;q++)await it.entities.ThemeSectionImages.create({theme_key:e,url:G[q].url,caption:G[q].caption,order:q});await T(),S({title:"Image removed"})}catch{S({title:"Failed",variant:"destructive"})}p(!1);return}try{await it.entities.ThemeSectionImages.delete(Q.id),await T(),S({title:"Image deleted"})}catch{S({title:"Delete failed",variant:"destructive"})}},$=async(Q,G)=>{if(!Q.id){const q=P.defaultImages.map(ue=>ue.url===Q.url?{...ue,caption:G}:ue);p(!0);try{for(let ue=0;ue<q.length;ue++)await it.entities.ThemeSectionImages.create({theme_key:e,url:q[ue].url,caption:q[ue].caption,order:ue});await T()}catch{}p(!1);return}try{await it.entities.ThemeSectionImages.update(Q.id,{caption:G}),await T()}catch{}};return v.jsxs("section",{className:"py-20 md:py-28 bg-gray-900",children:[v.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[v.jsxs("div",{className:"text-center mb-14",children:[v.jsx("p",{className:"text-amber-400 font-medium text-sm tracking-wider up
365percase mb-3",children:"Drivers of Risk"}),v.jsx("h2",{className:"text-3xl md:text-5xl font-heading font-bold text-white mb-4",children:"Understanding Wildfire in Hawaiʻi"}),v.jsx("p",{className:"text-gray-400 max-w-2xl mx-auto",children:"The CWPPs across all islands converge on three interconnected themes that shape wildfire risk statewide."})]}),v.jsx("div",{className:"flex flex-col sm:flex-row gap-3 mb-10",children:Tf.map(Q=>{const G=Q.icon,q=e===Q.key,ue=yy[Q.color];return v.jsxs("button",{onClick:()=>n(Q.key),className:`flex-1 flex items-center gap-3 px-5 py-4 rounded-xl border font-medium text-sm transition-all duration-200 ${q?`${ue.active}`:"bg-white/5 border-white/10 text-white/60 hover:bg-white/10 hover:text-white"}`,children:[v.jsx(G,{size:18}),Q.label]},Q.key)})}),v.jsxs("div",{className:"bg-white rounded-2xl shadow-xl overflow-hidden",children:[v.jsxs("div",{className:`p-6 md:p-8 border-b ${P.bg} ${P.border}`,children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[v.jsx("div",{className:`p-2 rounded-lg ${P.activeBg}`,children:v.jsx(O,{className:"text-white",size:20})}),v.jsx("span",{className:`text-sm font-semibold uppercase tracking-wider ${P.accent}`,children:P.label})]}),b&&v.jsx("button",{onClick:()=>x(Q=>!Q),className:`text-xs px-3 py-1.5 rounded-full border font-medium transition-colors ${y?"bg-gray-900 text-white border-gray-900":"bg-white text-gray-600 border-gray-300 hover:border-gray-500"}`,children:y?"Done Editing":"Edit Images"})]}),v.jsx("h3",{className:"text-2xl md:text-3xl font-heading font-bold text-gray-900",children:P.headline})]}),v.jsxs("div",{className:"p-6 md:p-8",children:[v.jsx("p",{className:"text-gray-700 leading-relaxed text-base md:text-lg mb-8",children:P.body}),v.jsxs("div",{className:"mb-8",children:[v.jsx("p",{className:`text-xs font-semibold uppercase tracking-wider ${P.accent} mb-3`,children:"Photo Gallery"}),y?v.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[R.map((Q,G)=>v.jsx(oL,{img:Q,themeAccent:P.accent,uploading:f,onReplace:()=>M(Q.id),onDelete:()=>j(Q),onEditCaption:q=>$(Q,q)},Q.id||Q.url)),v.jsxs("button",{onClick:()=>M(null),disabled:f,className:"aspect-video rounded-lg border-2 border-dashed border-gray-300 flex flex-col items-center justify-center gap-1 text-gray-400 hover:border-gray-400 hover:text-gray-500 transition-colors",children:[v.jsx(md,{size:20}),v.jsx("span",{className:"text-xs",children:"Add Image"})]})]}):v.jsx("div",{className:"aspect-video rounded-lg overflow-hidden",children:v.jsx(Gp,{images:R,interval:5e3,className:"w-full h-full",backgroundImage:sL[e],onOpen:Q=>o({images:R,index:Q})})}),f&&v.jsx("p",{className:"text-xs text-gray-400 mt-2",children:"Uploading..."})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("p",{className:`text-xs font-semibold uppercase tracking-wider ${P.accent} mb-4`,children:"Key Findings Across All Regions"}),P.highlights.map((Q,G)=>v.jsxs("div",{className:`flex items-start gap-3 p-3 rounded-lg border ${F.highlight}`,children:[v.jsx("div",{className:`w-2 h-2 rounded-full ${F.dot} mt-1.5 flex-shrink-0`}),v.jsx("p",{className:"text-gray-800 text-sm",children:Q})]},G))]})]})]})]}),i&&v.jsx(Kp,{images:i.images,index:i.index,onClose:()=>o(null),onNav:Q=>o(G=>({...G,index:(G.index+Q+G.images.length)%G.images.length}))})]})}function lL({onClick:e}){return v.jsxs("button",{onClick:e,className:"fixed right-4 bottom-24 z-40 bg-amber-500 hover:bg-amber-400 text-gray-900 font-semibold text-sm px-4 py-2.5 rounded-full shadow-2xl flex items-center gap-2 transition-colors",title:"Back to interactive map",children:[v.jsx(Hy,{size:18}),v.jsx("span",{className:"hidden sm:inline",children:"Interactive Map"})]})}function Cw(){const[e,n]=k.useState([]),[i,o]=k.useState(null),[u,h]=k.useState(!1),[f,p]=k.useState(.25),[y,x]=k.useState(!1),[b,S]=k.useState(!1),[P,O]=k.useState(!1),[F,T]=k.useState(!0),N=k.useRef(null),{toast:R}=Ca(),B=k.useCallback(async()=>{try{const ae=await it.entities.AudioTrack.list("order",100);n(ae),ae.length>0&&!i&&o(ae[0])}catch(ae){console.error(ae)}T(!1)},[i]);k.useEffect(()=>{B()},[B]),k.useEffect(()=>{N.current&&(N.current.volume=y?0:f)},[f,y]);const M=()=>{!i||!N.current||N.current.play().then(()=>h(!0)).catch(()=>h(!1))},j=()=>{N.current&&(N.current.pause(),h(!1))},$=()=>{N.current&&(N.current.pause(),N.current.currentTime=0,h(!1))},Q=ae=>{o(ae),h(!1),setTimeout(()=>{N.current&&N.current.play().then(()=>h(!0)).catch(()=>h(!1))},50)},G=async ae=>{O(!0);try{const{file_url:pe}=await it.integrations.Core.UploadFile({file:ae}),Oe=ae.name.replace(/\.[^/.]+$/,""),Ye=e.length,Fe=await it.entities.AudioTrack.create({name:Oe,file_url:pe,order:Ye});await B(),o(Fe),R({title:"Track added"})}catch{R({title:"Upload failed",variant:"destructive"})}O(!1)},q=()=>{const ae=document.createElement("input");ae.type="file",ae.accept="audio/*",ae.onchange=pe=>{pe.target.files[0]&&G(pe.target.files[0])},ae.click()},ue=async ae=>{try{await it.entities.AudioTrack.delete(ae.id),i&&i.id===ae.id&&($(),o(null)),await B(),R({title:"Track removed"})}catch{R({title:"Delete failed",variant:"destructive"})}};return v.jsxs("div",{className:"fixed bottom-4 right-4 z-[200] flex flex-col items-end gap-2",children:[b&&v.jsxs("div",{className:"w-72 rounded-2xl bg-gray-900/95 backdrop-blur-md border border-white/10 shadow-2xl overflow-hidden",children:[v.jsx("div",{className:"max-h-64 overflow-y-auto scrollbar-hide p-2",children:F?v.jsx("div",{className:"flex items-center justify-center py-6",children:v.jsx(io,{className:"animate-spin text-white/50",size:18})}):e.length===0?v.jsx("p",{className:"text-white/40 text-xs text-center py-6",children:"No tracks yet. Upload one below."}):e.map(ae=>v.jsxs("div",{className:`flex items-center gap-2 px-2 py-2 rounded-lg cursor-pointer transition-colors ${i&&i.id===ae.id?"bg-amber-500/20":"hover:bg-white/10"}`,onClick:()=>Q(ae),children:[v.jsx(Hg,{size:14,className:i&&i.id===ae.id?"text-amber-400":"text-white/50"}),v.jsx("span",{className:`flex-1 text-xs truncate ${i&&i.id===ae.id?"text-amber-300 font-medium":"text-white/80"}`,children:ae.name}),v.jsx("button",{onClick:pe=>{pe.stopPropagation(),ue(ae)},className:"text-white/30 hover:text-red-400 transition-colors",children:v.jsx(fp,{size:13})})]},ae.id))}),v.jsx("div",{className:"border-t border-white/10 p-2",children:v.jsxs("button",{onClick:q,disabled:P,className:"w-full flex items-center justify-center gap-2 text-xs font-medium text-white/80 bg-white/10 hover:bg-white/20 rounded-lg py-2 transition-colors disabled:opacity-50",children:[P?v.jsx(io,{className:"animate-spin",size:13}):v.jsx(Ul,{size:13}),P?"Uploading...":"Upload Track"]})})]}),v.jsxs("div",{className:"flex items-center gap-1 rounded-full bg-gray-900/95 backdrop-blur-md border border-white/10 shadow-2xl pl-3 pr-2 py-2",children:[v.jsx("button",{onClick:()=>S(ae=>!ae),className:"text-white/70 hover:text-white transition-colors",title:b?"Hide tracks":"Show tracks",children:b?v.jsx(pd,{size:16}):v.jsx(Dx,{size:16})}),v.jsx("div",{className:"w-px h-5 bg-white/10"}),v.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 max-w-[120px]",children:[v.jsx(Hg,{size:14,className:"text-amber-400 flex-shrink-0"}),v.jsx("span",{className:"text-xs text-white/70 truncate",children:i?i.name:"No track"})]}),v.jsx("div",{className:"w-px h-5 bg-white/10"}),u?v.jsx("button",{onClick:j,className:"p-1.5 rounded-full bg-amber-500 text-gray-900 hover:bg-amber-400 transition-colors",title:"Pause",children:v.jsx(dp,{size:14})}):v.jsx("button",{onClick:M,disabled:!i,className:"p-1.5 rounded-full bg-amber-500 text-gray-900 hover:bg-amber-400 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",title:"Play",children:v.jsx(hp,{size:14})}),v.jsx("button",{onClick:$,disabled:!i,className:"p-1.5 rounded-full text-white/70 hover:text-white hover:bg-white/10 transition-colors disabled:opacity-40",title:"Stop",children:v.jsx(fb,{size:14})}),v.jsxs("div",{className:"flex items-center gap-1.5 pl-1",children:[v.jsx("button",{onClick:()=>x(ae=>!ae),className:"text-white/70 hover:text-white transition-colors",title:y?"Unmute":"Mute",children:y||f===0?v.jsx(xb,{size:15}):v.jsx(_b,{size:15})}
365),v.jsx("input",{type:"range",min:0,max:1,step:.01,value:y?0:f,onChange:ae=>{p(parseFloat(ae.target.value)),x(!1)},className:"w-16 h-1 accent-amber-400 cursor-pointer",title:"Volume"})]})]}),v.jsx("audio",{ref:N,src:i==null?void 0:i.file_url,onEnded:()=>h(!1),onPause:()=>{N.current&&!N.current.ended&&h(!1)}})]})}function uL(){const[e,n]=k.useState([]),[i,o]=k.useState(!0),[u,h]=k.useState(null),[f,p]=k.useState("Overview"),[y,x]=k.useState(null),[b,S]=k.useState(null),P=k.useRef({}),O=k.useRef(null),F=Ep(),T=k.useCallback(async()=>{try{const G=await it.entities.StorySection.list("order",100);n(G),G.length>0&&x(G[0])}catch(G){console.error(G)}o(!1)},[]);k.useEffect(()=>{T()},[T]),k.useEffect(()=>{const G=new IntersectionObserver(q=>{q.forEach(ue=>{if(ue.isIntersecting){const ae=ue.target.dataset.sectionId,pe=e.find(Oe=>Oe.id===ae);pe&&x(pe)}})},{threshold:.3});return Object.values(P.current).forEach(q=>{q&&G.observe(q)}),()=>G.disconnect()},[e,f]);const N=(G,q)=>h({src:G,alt:q}),R=G=>{p(G),G==="Overview"&&S({lat:20.5,lng:-157,zoom:7,ts:Date.now(),reset:!0})},B=G=>{F(`/community/${G}`)},M=()=>{if(!(b!=null&&b.region))return;const G=e.find(q=>q.cwpp_region===b.region&&q.section_type==="region");G&&F(`/community/${G.id}`)},j=()=>{var G;(G=O.current)==null||G.scrollIntoView({behavior:"smooth"})};if(i)return v.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-gray-900",children:v.jsxs("div",{className:"text-center",children:[v.jsx(io,{className:"animate-spin text-amber-400 mx-auto mb-4",size:40}),v.jsx("p",{className:"text-white/60 text-sm",children:"Loading Story Map..."})]})});const $=e.find(G=>G.section_type==="hero"),Q=e.filter(G=>G.section_type==="intro");return v.jsxs("div",{className:"min-h-screen pb-16",children:[$&&v.jsx("div",{ref:G=>P.current[$.id]=G,"data-section-id":$.id,children:v.jsx(f2,{section:$,onSectionUpdate:T})}),v.jsx(W2,{activeIsland:f,onIslandClick:R,sections:e}),v.jsx("div",{ref:O,children:v.jsx(D2,{sections:e,onRegionClick:B,focusRegion:b,onSeeSelectedPlan:M})}),f==="Overview"?v.jsxs(v.Fragment,{children:[Q.map(G=>v.jsx("div",{ref:q=>P.current[G.id]=q,"data-section-id":G.id,children:v.jsx(p2,{section:G,onImageClick:N})},G.id)),v.jsx(aL,{})]}):v.jsx(m2,{sections:e,island:f}),v.jsx(U2,{}),u&&v.jsx(z0,{src:u.src,alt:u.alt,onClose:()=>h(null)}),v.jsx(Ew,{section:y,onUpdate:T,sections:e}),v.jsx(lL,{onClick:j}),v.jsx(Cw,{}),v.jsx("footer",{className:"bg-gray-900 py-6 text-center",children:v.jsx("p",{className:"text-xs text-gray-400 px-6",children:"Photos provided by Hawaii Wildfire Management Organization and Clay T. from the University of Hawaii at Manoa. All Rights Reserved."})})]})}const _y=e=>(e||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[Ê»']/g,"").replace(/[^a-z0-9]/g,""),cL=e=>{if(e==null||e==="")return null;const n=Number(e);return!isNaN(n)&&String(e).trim()!==""?"$"+n.toLocaleString():String(e)},dL=[{key:"project_description",label:"Project Description"}
365,{key:"project_background",label:"Project Background"},{key:"lead_organization",label:"Lead Organization"},{key:"partner_organizations",label:"Partner Organizations"},{key:"funding_needed",label:"Funding Needed/Cost",format:cL},{key:"funding_description",label:"Funding Description"}];function hL({cwppRegion:e}){const[n,i]=k.useState([]),[o,u]=k.useState(!0);k.useEffect(()=>{let p=!1;return(async()=>{try{const y=await it.entities.PriorityProject.list("cwpp",500);p||i(y)}catch(y){console.error("Failed to load priority projects",y)}finally{p||u(!1)}})(),()=>{p=!0}},[]);const h=_y(e),f=n.filter(p=>_y(p.cwpp)===h);return o?v.jsxs("div",{className:"flex items-center justify-center py-8 text-violet-700",children:[v.jsx(io,{className:"animate-spin mr-2",size:16}),v.jsx("span",{className:"text-sm",children:"Loading priority projects…"})]}):f.length===0?v.jsx("p",{className:"text-gray-500 italic text-sm mb-4",children:"No priority projects listed for this community yet."}):v.jsx("div",{className:"space-y-4 mb-4",children:f.map((p,y)=>v.jsxs("div",{className:"bg-white/70 rounded-xl border border-violet-200 p-4 shadow-sm",children:[v.jsxs("div",{className:"flex items-start gap-2 mb-3",children:[v.jsx("div",{className:"p-1.5 rounded-md bg-violet-700 flex-shrink-0 mt-0.5",children:v.jsx(Wy,{className:"text-white",size:12})}),v.jsx("h4",{className:"font-semibold text-gray-900 text-sm leading-snug",children:p.project_name})]}),v.jsx("ul",{className:"space-y-2 ml-1",children:dL.map(({key:x,label:b,format:S})=>{const P=p[x],O=S?S(P):P;return O==null||O===""?null:v.jsxs("li",{className:"flex text-sm leading-relaxed",children:[v.jsx("span",{className:"text-violet-500 mr-2 flex-shrink-0",children:"•"}),v.jsxs("span",{children:[v.jsxs("span",{className:"font-semibold text-violet-800",children:[b,":"]})," ",v.jsx("span",{className:"text-gray-700",children:O})]})]},x)})})]},p.id||y))})}const fL="https://media.base44.com/images/public/6a3a011d5c6c187b9523d0f6/b058397b0_IMG_2025.JPG",pL="https://media.base44.com/images/public/6a3a011d5c6c187b9523d0f6/4e5ae3800_IMGP4310.jpg",mL="https://media.base44.com/images/public/6a3a011d5c6c187b9523d0f6/ac9fcccac_IMGP0474.JPG",gL="https://media.base44.com/images/public/6a3a011d5c6c187b9523d0f6/2e3d0b8ce_IMGP7540.JPG",wy={weather:fL,fire_risk:pL,land_cover:mL,priority_projects:gL},vL={Kaʻū:{weather:"Kaʻū experiences the most diverse climate range on Hawaiʻi Island, from arid coastal zones receiving under 15 inches of rain annually to the cool uplands of Kīlauea plateau. The leeward lowlands are persistently dry from May through October, and northeast trade winds funnel along the Kaʻū coast creating sustained drying conditions. The presence of Kīlauea volcano adds volcanic emissions (vog) that affect air quality during and after fires.",fire_risk:"Kaʻū has a well-documented fire history concentrated along the coast and lower slopes where human-caused ignitions are most frequent. Hawaiian Ocean View Estates and the surrounding rural lands have experienced multiple fires in the past decade. The Kaʻū CWPP notes that invasive grasses along roadsides act as ignition corridors connecting neighborhoods to larger wildland areas. Limited emergency access roads in some subdivisions pose significant evacuation challenges.",land_cover:"The lower elevation leeward lands of Kaʻū are dominated by buffelgrass, Guinea grass, and dry shrublands that carry fire readily during the dry season. Upslope, the transition zone between native ʻōhiʻa forest and grassland is particularly vulnerable. The Ka'ū Forest Reserve borders WUI communities, and fire encroachment threatens listed species habitat. Steep coastal cliffs and lava fields complicate access for suppression resources.",priority_projects:"The Kaʻū CWPP identifies three top priority projects: (1) establishment of fuel break corridors along key access roads in Hawaiian Ocean View Estates to create defensible space buffers between residential lots and surrounding wildlands; (2) installation of emergency water storage and hydrant systems in subdivisions lacking municipal water infrastru
365cture; and (3) development of community evacuation plans with designated refuge points given the limited secondary road network serving rural residents."},"Northwest Hawaiʻi":{weather:"The northwest coast of Hawaiʻi Island is one of the driest zones in the state. Kohala and Waimea area communities on the lee side of Kohala Mountain receive under 12 inches of rainfall per year. Strong afternoon trades and katabatic drainage winds accelerate drying of fine fuels. The Pohakuloa plateau at 6,500 feet elevation experiences an entirely different but also fire-prone climate during drought years.",fire_risk:"Northwest Hawaiʻi has seen some of the largest fires on the island, with the military's Pohakuloa Training Area recording extensive burns. The WUI communities of Waikoloa Village, Puako, and Kawaihae face recurring fire threats from surrounding grasslands. The CWPP identifies the Māmalahoa Highway corridor as a high-frequency ignition zone from vehicle sparks and discarded materials.",land_cover:"Vast Guinea grass savannas dominate the leeward slopes from sea level to approximately 3,000 feet, replacing what was once native dry forest. At higher elevations on the slopes of Mauna Kea, native dryland shrubland persists but is under pressure from invasive species. The flat to gently rolling terrain of the Kohala co
365ast allows fires to spread rapidly over large areas with few natural firebreaks.",priority_projects:"Priority projects for Northwest Hawaiʻi include: (1) a coordinated fuel management program across the Māmalahoa Highway corridor targeting Guinea grass reduction along a 20-mile stretch; (2) establishment of a community-based early detection and rapid response network connecting Waikoloa Village, Puako, and Kawaihae with shared communication protocols; and (3) a vegetation conversion pilot program replacing Guinea grass monocultures with fire-resistant native dryland plantings on private and state parcels above Kawaihae."},Hāmākua:{weather:"Hāmākua lies on the windward northeast coast of Hawaiʻi Island and is generally wetter than leeward regions, yet its upper elevation grasslands and gulch systems dry rapidly during trade wind interruptions. The upper Hāmākua forest belt receives 100+ inches of rain but is increasingly affected by drought stress due to climate change. Fog drip from cloud forests provides critical moisture, but seasonal dry spells still create fire conditions in the intermediate elevation zone.",fire_risk:"Although historically considered lower risk than leeward areas, Hāmākua has seen a significant increase in fire incidents over the last two decades as invasive grass cover expands upslope. The area's deeply incised gulches channel wind and create conditions for rapid fire escalation. Rural residential lots interspersed with tall grass vegetation represent a growing WUI challenge. The CWPP documents multiple fires in the Honokaa and Paʻauilo areas.",land_cover:"Former sugar plantation lands across Hāmākua are now dominated by non-native grasses, especially broomsedge and molasses grass at mid-elevations. Steep pali (cliffs) between valley floors create dramatic topographic breaks. Remnant native forest patches in gulch interiors are surrounded by fire-prone grasslands, making them vulnerable to encroachment. Abandoned agricultural infrastructure complicates vegetation management.",priority_projects:"The Hāmākua CWPP prioritizes: (1) a gulch-edge fuel treatment program targeting the interface between residential lots in Honokaa and Paʻauilo and adjacent grass-dominated gulch systems; (2) a community outreach and voluntary defensible space program engaging rural landowners along the Māmalahoa Highway belt; and (3) coordination with the State Division of Forestry and Wildlife to restore native vegetation in former plantation areas to reduce long-term fire fuel loads."},"North Kona":{weather:"North Kona is characterized by its extremely arid leeward climate—Kailua-Kona receives about 25 inches of rain per year but the surrounding slopes receive far less. Afternoon upslope winds build daily during the dry season, transporting potential fire up steep volcanic slopes toward residential communities. The region periodically experiences Kona wind events (southerly flow) that bring hot, dry, gusty conditions critical for fire behavior.",fire_risk:"North Kona has one of the highest fire occurrence rates on Hawaiʻi Island. The CWPP documents numerous fires along the Queen Kaʻahumanu Highway corridor and in the Honalo–Kainaliu residential belt. Rapid residential expansion into fire-prone grassland increases WUI exp
365osure annually. Historical records show fires burning repeatedly in the same high-risk areas, suggesting that without mitigation, risk escalates with each fire cycle that promotes more flammable non-native grasses.",land_cover:"The slopes above Kailua-Kona are blanketed by Guinea grass and Natal redtop, two highly flammable non-native grasses that cure quickly in the dry season. Native dryland forest fragments persist at higher elevations but are isolated. Lava fields provide some natural firebreaks, but vegetated corridors in ʻaʻā and pāhoehoe substrate carry fire between subdivisions. Topographic features include steep escarpments that accelerate fire spread.",priority_projects:"North Kona's highest priority projects are: (1) a strategic fuel break network along the Queen Kaʻahumanu Highway corridor designed to interrupt fire spread pathways from the highway into adjacent residential areas; (2) a mandatory defensible space inspection and compliance program targeting the Honalo–Kainaliu belt where residential density and fire risk overlap most severely; and (3) upgrade of the water delivery infrastructure at key staging areas to improve suppression capability during rapidly spreading fires."},"South Kona":{weather:"South Kona receives more rainfall than North Kona due to its slightly more windward exposure, but leeward slopes below 2,000 feet remain fire-prone from May–October. The region's coffee farms sit at an elevation band that receives seasonal fog and moderate rainfall, creating a patchwork of moisture levels. Below the coffee belt, dry conditions persist along the coast, while upper slopes have wetter, cooler microclimates.",fire_risk:"South Kona's fire history includes recurring burns in the dry coastal zone and at mid-elevations where the forest transitions to grassland. The CWPP notes that the stretch of Highway 11 through South Kona is a primary ignition corridor. Narrow, winding rural roads limit evacuation options, and fire spread is accelerated by the combination of dry grasses, steep slopes, and afternoon upslope winds.",land_cover:"The lower slopes of South Kona are covered with Guinea grass and other non-native grasses. The mid-elevation coffee and macadamia nut agricultural zone provides some fuel modification but is also vulnerable to fire spread from surrounding grasslands. Native dryland forest in the South Kona Forest Reserve is fragmented and surrounded by invasive vegetation. The entire coastline features steep sea cliffs.",priority_projects:"South Kona's priority projects focus on: (1) a Highway 11 roadside fuel management program reducing ignitible vegetation along the corridor and creating buffer zones at key community access points; (2) development of secondary evacuation route options in consultation with landowners to improve egress for rural communities with single-road access; and (3) a collaborative agricultural community fire preparedness program engaging coffee and macadamia farmers in defensible space practices and coordinated burn notification systems."},"Upcountry Maui":{weather:"Upcountry Maui sits at elevations of 2,000–4,000 feet on the slopes of Haleakalā, where temperatures are cooler but dry season conditions still produce significant fire risk. The area experiences strong afternoon winds that funnel up the mountain and fan fires. Rainfall ranges from 20 to 60 inches depending on elevation and aspect, creating a heterogeneous fire environment. Winter storms occasionally bring moisture, but summer dry spells can last for months.",fire_risk:"Upcountry Maui communities—Makawao, Kula, and Pukalani—are surrounded by fire-prone grasslands and have experienced multiple significant fires. The CWPP identifies the interface between residential properties and adjacent ranchlands and grasslands as the primary fire risk zone. Human-caused ignitions, including agricultural burns that escape and vehicle sparks, are the leading cause of fires in the region.",land_cover:"Upcountry Maui features a complex mosaic of native shrubland, introduced grasslands, ranchland pastures, and suburban development. At lower elevations, Natal redtop and Guinea grass dominate the landscape. Native ʻōhiʻa and pūkiawe shrublands persist at higher elevations and within the Haleakalā National Park boundaries. The transition between these vegetation types represents significant fire risk areas.",priority_projects:"Upcountry Maui's priority projects include: (1) a ranch-residential interface fuel management program engaging large landholders in Kula and Makawao to establish strategic fuel breaks along property boundaries adjacent to neighborhoods; (2) a burn permit enforcement and education campaign targeting agricultural burning practices, specifically timing restrictions during high-wind periods; and (3) a community preparedness program for Makawao, Kula, and Pukalani residents including structure hardening workshops and go-bag/evacuation drill events."},"Leeward Haleakalā":{weather:"The leeward slopes of Haleakalā below 5,000 feet are among the driest on Maui, with some areas receiving fewer than 10 inches of rain per year. The rain shadow effect from Haleakalā creates persistent drought conditions across Kanaio, Kahikinui, and Kaupō. Strong downslope winds are common, accelerating fire spread down steep terrain toward the coast.",fire_risk:"Leeward Haleakalā has extensive fire history across its large, sparsely populated landscape. Fires here often burn unchallenged over vast areas due to limited road access and remote terrain. The CWPP identifies the highway corridors as ignition sources and notes that military activities at Kanaio have historically caused fires. Large fires here threaten native dryland forest remnants that are some of the most ecologically significant in the state.",land_cover:"This region contains some of the last remaining native dryland and mesic forests in Hawaiʻi, including significant stands within the Kahikinui and Kanaio Natural Area Reserves. However, these forests are surrounded by a matrix of invasive grasses and shrubs that facilitate fire spread. The steep terrain and rocky volcanic substrate create complex fuel patterns and challenging access for fire suppression.",priority_projects:"Priority projects for Leeward Haleakalā are conservation-focused: (1) establishment of perimeter fuel breaks around the Kahikinui and Kanaio Natural Area Reserves to protect irreplaceable native dryland forest from catastrophic fire; (2) access road improvements and water source development at strategic locations to enable effective suppression response in remote terrain; and (3) a cross-agency coordination framework between DLNR, Maui County Fire, the military, and Nature Conservancy to align prescribed fire, suppression, and restoration activities across land ownership boundaries."},"South Maui":{weather:"South Maui, encompassing Kīhei, Wailea, and Mākena, is one of the driest regions in the state, receiving an average of just 10–15 inches of rain per year. Strong afternoon trade winds and channeling through the isthmus between Haleakalā and the West Maui Mountains create persistent drying conditions. The dry season effectively spans 9 months in this region.",fire_risk:"South Maui has experienced significant fire events in recent years driven by expanding development into dry coastal scrubland. The CWPP identifies the exp
365anding WUI between Kīhei subdivisions and dry hillside vegetation as a high priority risk zone. Human-caused ignitions from roadway activities and off-road vehicles are common. The rapid pace of residential and resort development increases ignition risk.",land_cover:"The landscape of South Maui is dominated by dry coastal scrub, invasive kiawe (mesquite) thickets, and non-native grasses. Native coastal vegetation persists in small patches but is overwhelmed by invasive species. Kiawe creates a unique fire hazard—it is a prolific seed producer that forms dense thickets and burns with intense heat. The relatively flat terrain of the Kīhei coastal plain allows fires to spread rapidly.",priority_projects:"South Maui's CWPP identifies these priority actions: (1) a kiawe removal and fuel modification program along the Kīhei hillside interface targeting the most densely populated sections of the WUI; (2) enhanced off-road vehicle enforcement and monitoring in undeveloped parcels adjacent to residential areas to reduce ignition frequency; and (3) developer-required fire-wise landscaping standards for new construction projects within the WUI, reducing structure ignitability at the point of development."},"Western Maui":{weather:"Western Maui includes both the arid leeward zone around Lāhainā (8–15 inches of rain/year) and the wetter windward slopes above Wailuku. The Lāhainā coast is notorious for its strong kona wind events, when dry, hot southwesterly winds exceed 60 mph and create extreme fire conditions. The 2023 Lāhainā fire was ignited and driven by precisely these winds, combined with months of drought.",fire_risk:"Western Maui now carries the defining fire event in Hawaiian history. The August 8, 2023 Lāhainā wildfire killed 102 people, destroyed over 2,200 structures, and burned through the historic town in under 2 hours under kona wind conditions. The CWPP documents years of prior smaller fires along the same corridors. Risk factors include overhead utility lines, dense invasive grasses along roadsides, narrow evacuation routes, and aging infrastructure.",land_cover:"The slopes above Lāhainā town are covered in Guinea grass and other non-native grasses that formed a continuous fuel bed from upper agricultural lands to the edges of residential neighborhoods. The loss of former sugarcane cultivation without replacement vegetation management created these conditions over decades. Topography funnels wind directly into developed areas. Reducing fuel loads in this interface is identified as the highest priority action in the Western Maui CWPP.",priority_projects:"Following the 2023 disaster, Western Maui's CWPP identifies urgent priority actions: (1) immediate and sustained fuel treatment of the upslope grasslands above rebuilt and recovering Lāhainā, establishing a defensible perimeter before the next kona wind season; (2) undergrounding or hardening of utility infrastructure along the primary ignition corridor to eliminate power line–
365caused fire starts; and (3) complete redesign and implementation of the community evacuation plan, including secondary egress routes, community notification systems, and regular evacuation drills with full resident participation."},Molokaʻi:{weather:"Molokaʻi has a dramatic rainfall gradient from the extremely wet northeast coast (over 200 inches/year) to the arid southwest, which receives fewer than 15 inches. The West Molokaʻi plains and central plateau experience persistent dry and windy conditions throughout the year. Strong trades accelerate fuel drying and fire spread across the open grassland landscape.",fire_risk:"Molokaʻi has experienced large fires across its western plains and central plateau repeatedly, with some of the highest per-area burn rates in the state. The sparsely populated nature of the island means fires often go undetected until they have grown large. The Molokaʻi Fire Task Force—a multi-agency partnership including The Nature Conservancy, DLNR, and Molokaʻi Ranch—was established specifically to address the island's chronic fire problem.",land_cover:"The western plateau of Molokaʻi is dominated by dense stands of non-native grasses, primarily Guinea grass and buffelgrass. Former pineapple plantation lands have been converted to these grasses following agricultural abandonment. The northwest coast contains critically important native dryland forest within the Moʻomomi Nature Area Reserve, which is highly vulnerable to fire spread from the surrounding grassland matrix. The Pālāʻau State Park forest on the north central plateau is also at risk.",priority_projects:"Molokaʻi's CWPP priority projects are: (1) expansion of the Molokaʻi Fire Task Force'
365s landscape-scale fuel treatment program on the west plateau, targeting a 5,000-acre Guinea grass conversion zone using herbicide and alternative land use; (2) establishment of a remote camera and community spotter network to enable early detection of fires in the sparsely monitored interior; and (3) buffer zone creation around the Moʻomomi Nature Area Reserve using native dryland plantings to interrupt the grassland fuel continuity threatening the reserve's coastal forest."},"North Shore":{weather:"The North Shore of Oʻahu is primarily windward-facing, receiving moderate to high rainfall, yet significant pockets of fire-prone terrain exist on leeward-facing ridges and the inland valleys. Trade wind channeling through the Koʻolau Range creates localized drying effects. Summer months see reduced rainfall and extended dry spells that elevate fire risk in grassland and shrubland zones.",fire_risk:"The North Shore CWPP documents repeated fires along major highway corridors (H-2, Kamehameha Highway), on ridgelines above communities like Waialua and Haleʻiwa, and in the agricultural lands of the central Oʻahu plain edge. Agricultural activities—burning of crop residue and irrigation failures—are leading ignition sources. Community events at beaches and parks represent additional ignition risk points.",land_cover:"The North Shore landscape includes a mix of former plantation agricultural land now dominated by Guinea grass and other non-natives, native dry forest remnants on ridges, and coastal shrublands. Former pineapple fields inland are particularly prone to large grass fires. The Poamoho and Kawailoa forest areas represent important native biodiversity that must be protected from encroaching fire.",priority_projects:"North Shore CWPP priorities include: (1) highway corridor fuel management along Kamehameha Highway and H-2, reducing roadside grass loads and creating treated buffers at key community entry points; (2) an agricultural landowner engagement program promoting fire-safe field management practices including timing of burns, irrigation maintenance, and buffer strip maintenance; and (3) protection of the Poamoho and Kawailoa native forests through perimeter fuel treatments and coordination with landowners managing adjacent agricultural lands."},"East Honolulu":{weather:"East Honolulu sits in the rain shadow of the Koʻolau Range, creating drier conditions than the windward coast. Communities from Kaimukī to Hawaiʻi Kai experience a pronounced dry season from June through October. Afternoon sea breezes give way to katabatic drainage winds at night, and the steep valley walls channel and accelerate wind, increasing fire spread potential during dry months.",fire_risk:"East Honolulu has experienced multiple significant fires in the past decade, particularly in the steep-walled valleys above Hawaiʻi Kai and the Diamond Head–Kaimukī ridge systems. The CWPP documents high human-caused ignition density related to the large urban population and extensive recreational use of adjacent open spaces. Slopes above 30% adjacent to residential neighborhoods present the highest risk, with limited access for suppression.",land_cover:"The open slopes and ridges above East Honolulu communities are dominated by non-native grasses and shrubs, including strawberry guava and Christmas berry, which form dense, fire-prone thickets. Native dry forest remnants persist in small, isolated patches on steeper slopes. The juxtaposition of densely built residential neighborhoods against steep vegetated hillsides defines the WUI character of this planning area.",priority_projects:"East Honolulu's CWPP priority projects are urban-interface focused: (1) a hillside fuel break program targeting the ridgelines and upper valley walls above Hawaiʻi Kai and Kaimukī, establishing treated corridors that stop fire before it reaches residential streets; (2) a community education and home hardening initiative emphasizing ember-resistant vents, fire-safe landscaping within 30 feet of structures, and deck/fence material upgrades; and (3) enhanced recreational trail management including firebreak maintenance along popular hiking routes that serve as ignition vectors during high-use summer months."},"Western Oʻahu":{weather:"Western Oʻahu is the driest region on the island, with areas near ʻEwa and Kapolei receiving 15–25 inches of rain annually. The lee position relative to the Waiʻanae Range creates persistent drying conditions. Channeled trade winds through the Waiʻanae valleys regularly exceed 30 mph during summer months, dramatically accelerating potential fire spread. The Waiʻanae coast is subject to Foehn-type warming when flow reverses.",fire_risk:"Western Oʻahu has one of the highest fire occurrence rates in the state, with the Waiʻanae Range foothills and the Ewa plain experiencing multiple large fires annually. The CWPP documents that the expanding suburban development of ʻEwa, Kapolei, and the Hoʻ
365opili communities is rapidly increasing WUI exposure. Transportation corridors (H-1, Farrington Highway) are primary ignition zones. Honolulu Fire Department response times are extended by traffic and distance in this rapidly growing area.",land_cover:"The lower slopes of the Waiʻanae Range are covered by dense Guinea grass, kiawe thickets, and dry shrubland. The Waiʻanae Range itself contains some of the best remaining native dryland forest on Oʻahu, including stands within the Honouliuli and Palikea Natural Area Reserves. The juxtaposition of this critically important native biodiversity against rapidly expanding development and highly flammable non-native grasslands is one of the most pressing conservation-fire interface challenges in Hawaiʻi.",priority_projects:"Western Oʻahu's CWPP identifies three critical priorities: (1) a Waiʻanae Range foothill fuel break system protecting the boundary between new suburban development in ʻEwa and Kapolei and the fire-prone foothills, coordinated across multiple landowners including the State and private developers; (2) increased fire station capacity and equipment pre-positioning in the rapidly growing westside to reduce response time gaps in expanding WUI zones; and (3) a conservation easement and fuel treatment program around the Honouliuli and Palikea Natural Area Reserves to protect these irreplaceable native forest remnants from the expanding fire threat."},Kauaʻi:{weather:"Kauaʻi has the most dramatic rainfall gradient of any island, from the wettest spot on earth at Waialeale (over 400 inches/year) to the Māhāʻulepū coast and Waimea Canyon region receiving under 20 inches. Fire-prone areas are concentrated in the south and southwest, particularly the Waimea and Hanapēpē corridors. Strong trade winds on the south shore and afternoon heating in the Waimea Canyon create ideal fire spread conditions during dry months.",fire_risk:"Kauaʻi's fire history is concentrated in the dry south shore between Poipu and Waimea, and in the former agricultural lands of the westside. The CWPP identifies recurring fires in the Hanapēpē and ʻEleʻele areas, driven by grasses in abandoned cane fields. The expanding resort and residential development around Poipu and Līhuʻe is increasing WUI exposure annually. Burning of post-harvest residue from remaining agriculture remains a significant ignition source.",land_cover:"The south and westside of Kauaʻi feature expansive Guinea grass savannas on former sugar plantation lands. The Waimea Canyon area contains native dry forest remnants alongside invasive grasslands. The Na Pali Coast, while receiving more rainfall, has steep inaccessible terrain that makes fire suppression nearly impossible. Former sugarcane fields represent the greatest opportunity for fuel management through targeted vegetation conversion.",priority_projects:"Kauaʻi's CWPP priorities center on former agricultural land: (1) a former cane field vegetation conversion program on the westside, partnering with landowners to replace Guinea grass monocultures with productive, fire-resistant land uses including pasture improvements and native restoration; (2) a south shore resort-community preparedness program engaging hotels, resorts, and HOAs in the Poipu-Koloa corridor in coordinated evacuation planning and landscape fire-safety standards; and (3) improved coordination with remaining agriculture operations on burn timing and notification to reduce escaped agricultural fire incidents in the Hanapēpē and Waimea corridors."}},xy=[{key:"weather",icon:By,label:"Weather & Climate",color:"sky",activeBg:"bg-sky-700",bg:"bg-sky-50",border:"border-sky-200",accent:"text-sky-800",dot:"bg-sky-500"},{key:"fire_risk",icon:cp,label:"Fire Risk & History",color:"orange",activeBg:"bg-orange-700",bg:"bg-orange-50",border:"border-orange-200",accent:"text-orange-800",dot:"bg-orange-500"},{key:"land_cover",icon:pp,label:"Land Cover & Topography",color:"emerald",activeBg:"bg-emerald-700",bg:"bg-emerald-50",border:"border-emerald-200",accent:"text-emerald-800",dot:"bg-emerald-500"},{key:"priority_projects",icon:Wy,label:"Priority Projects",color:"violet",activeBg:"bg-violet-700",bg:"bg-violet-50",border:"border-violet-200",accent:"text-violet-800",dot:"bg-violet-500"}],yL={weather:[{url:"https://images.unsplash.com/photo-1504608524841-42584120d1cc?w=800&q=80",caption:"Drought-parched leeward landscape during dry season"},{url:"https://images.unsplash.com/photo-1534088568595-a066f410bcda?w=800&q=80",caption:"Trade wind clouds building over Hawaiian peaks"},{url:"https://images.unsplash.com/photo-1561553543-e4c7b608b98d?
365w=800&q=80",caption:"Arid coastal zone typical of leeward CWPP regions"}],fire_risk:[{url:"https://images.unsplash.com/photo-1473445730015-841f29a9490b?w=800&q=80",caption:"Wildfire burning through dry Hawaiian scrubland"},{url:"https://images.unsplash.com/photo-1602491453631-e2a5ad90a131?w=800&q=80",caption:"Aerial view of WUI community surrounded by fire-prone terrain"},{url:"https://images.unsplash.com/photo-1563514227147-6d2ff665a6a0?w=800&q=80",caption:"Fire scar landscape showing extent of recent burn"}],land_cover:[{url:"https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?w=800&q=80",caption:"Dense Guinea grass savanna — primary fire carrier in Hawaiʻi"},{url:"https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=800&q=80",caption:"Volcanic slopes and steep topography that accelerate fire spread"},{url:"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=800&q=80",caption:"Native forest under threat from encroaching invasive grasses"}],priority_projects:[{url:"https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?w=800&q=80",caption:"Community fuel break installation along WUI perimeter"},{url:"https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=800&q=80",caption:"Defensible space clearing around residential structures"},{url:"https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=800&q=80",caption:"Community preparedness training and evacuation planning"}]};function _L({cwppRegion:e,section:n}){const[i,o]=k.useState("weather"),[u,h]=k.useState(null),f=vL[e];if(!f)return null;const p=xy.find(P=>P.key===i),y=p.icon,x=f[i],b=i==="weather"?"theme_weather_images":i==="fire_risk"?"theme_fire_risk_images":i==="land_cover"?"theme_land_cover_images":i==="priority_projects"?"theme_priority_projects_images":null,S=b&&n&&n[b]&&n[b].length>0?n[b]:yL[i];return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mt-10 border border-gray-200 rounded-2xl overflow-hidden",children:[v.jsx("div",{className:"flex border-b border-gray-200 bg-gray-50",children:xy.map(P=>{const O=P.icon,F=i===P.key;return v.jsxs("button",{onClick:()=>o(P.key),className:`flex-1 flex items-center justify-center gap-2 py-3 px-2 text-xs sm:text-sm font-medium transition-all border-b-2 ${F?`${P.accent} border-current bg-white`:"text-gray-500 border-transparent hover:text-gray-700 hover:bg-white"}`,children:[v.jsx(O,{size:15}),v.jsx("span",{className:"hidden sm:inline",children:P.label}),v.jsx("span",{className:"sm:hidden",children:P.label.split(" ")[0]})]},P.key)})}),v.jsxs("div",{className:`p-5 md:p-6 ${p.bg}`,children:[v.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[v.jsx("div",{className:`p-1.5 rounded-md ${p.activeBg}`,children:v.jsx(y,{className:"text-white",size:14})}),v.jsx("span",{className:`text-xs font-semibold uppercase tracking-wider ${p.accent}`,children:p.label})]}),i==="priority_projects"?v.jsxs("div",{className:"relative rounded-xl overflow-hidden",children:[v.jsx("img",{src:wy.priority_projects,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),v.jsx("div",{className:"absolute inset-0 bg-white/50"}),v.jsx("div",{className:"relative z-10 p-4 md:p-6",children:v.jsx(hL,{cwppRegion:e})})]}):v.jsxs(v.Fragment,{children:[v.jsx("p",{className:"text-gray-700 leading-relaxed text-sm mb-4",children:x}),v.jsx("div",{className:"mt-4 aspect-video",children:v.jsx(Gp,{images:S,interval:5e3,className:"w-full h-full",backgroundImage:wy[i],onOpen:P=>h({images:S,index:P})})})]})]})]}),u&&v.jsx(Kp,{images:u.images,index:u.index,onClose:()=>h(null),onNav:P=>h(O=>({...O,index:(O.index+P+O.images.length)%O.images.length}))})]})}const wL="https://services6.arcgis.com/7hTZShp5nVZINCvl/arcgis/rest/services/CWPP_2025/FeatureServer/0/query?where=1%3D1&outFields=*&f=geojson&outSR=4326",xL={color:"#e85d04",weight:1.5,fillColor:"#e85d04",fillOpacity:.2};function bL(){const[e,n]=k.useState(null);return k.useEffect(()=>{fetch(wL).then(i=>i.json()).then(n).catch(()=>{})},[]),e?v.jsx(R0,{data:e,style:xL}):null}delete Up.Icon.Default.prototype._getIconUrl;Up.Icon.Default.mergeOptions({iconRetinaUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/images/marker-icon-2x.png",iconUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/images/marker-icon.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/images/marker-shadow.png"});const by={"Hawaiʻi Island":{bg:"bg-red-50",border:"border-red-200",accent:"text-red-800",badge:"bg-red-100 text-red-800",dot:"bg-red-500"},Maui:{bg:"bg-pink-50",border:"border-pink-200",accent:"text-pink-800",badge:"bg-pink-100 text-pink-800",dot:"bg-pink-500"},Oʻahu:{bg:"bg-blue-50",border:"border-blue-200",accent:"text-blue-800",badge:"bg-blue-100 text-blue-800",dot:"bg-blue-500"},Kauaʻi:{bg:"bg-emerald-50",border:"border-emerald-200",accent:"text-emerald-800",badge:"bg-emerald-100 text-emerald-800",dot:"bg-emerald-500"},Molokaʻi:{bg:"bg-violet-50",border:"border-violet-200",accent:"text-violet-800",badge:"bg-violet-100 text-violet-800",dot:"bg-violet-500"}};function SL({section:e,index:n,onImageClick:i}){const o=by[e.island]||by["Hawaiʻi Island"],u=n%2===0,h=e.map_center_lat&&e.map_center_lng,[f,p]=k.useState(null),y=(e.gallery_urls||[]).map((x,b)=>({url:x,caption:`${e.title} – Image ${b+1}`}));return v.jsx("section",{className:`py-16 md:py-24 ${u?"bg-white":"bg-gray-50"}`,children:v.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[v.jsxs("div",{className:"mb-10",children:[v.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[v.jsx("div",{className:`w-3 h-3 rounded-full ${o.dot}`}),v.jsx("span",{className:`text-sm font-medium tracking-wider up
365percase ${o.accent}`,children:e.island})]}),v.jsx("h2",{className:"text-3xl md:text-4xl font-heading font-bold text-gray-900 mb-3",children:e.title}),v.jsx("p",{className:"text-gray-500 text-sm",children:e.subtitle})]}),v.jsxs("div",{className:`grid ${h?"lg:grid-cols-2":"grid-cols-1"} gap-10`,children:[v.jsxs("div",{children:[v.jsx("div",{className:"prose prose-gray max-w-none mb-8",children:v.jsx("p",{className:"text-gray-700 leading-relaxed",children:e.body})}),e.highlights&&e.highlights.length>0&&v.jsx("div",{className:"space-y-3 mb-8",children:e.highlights.map((x,b)=>v.jsxs("div",{className:`flex items-start gap-3 p-3 rounded-lg ${o.bg} ${o.border} border`,children:[v.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${o.dot} mt-2 flex-shrink-0`}),v.jsx("p",{className:"text-gray-800 text-sm",children:x})]},b))}),e.image_url&&v.jsxs("div",{className:"cursor-pointer group",onClick:()=>i(e.image_url,e.title),children:[v.jsx("img",{src:e.image_url,alt:e.title,className:"w-full rounded-xl shadow-lg group-hover:shadow-xl transition-all duration-300 group-hover:scale-[1.01]"}),v.jsx("p",{className:"text-xs text-gray-400 mt-2 text-center",children:"Click to view full size"})]}),e.source_doc_url&&v.jsxs("a",{href:e.source_doc_url,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center gap-2 mt-6 text-sm font-medium ${o.accent} hover:underline`,children:[v.jsx(Uy,{size:16}),"View Full CWPP Document",v.jsx(Nf,{size:14})]})]}),h&&v.jsx("div",{className:"rounded-xl overflow-hidden shadow-lg border border-gray-200 h-[400px] lg:h-full lg:min-h-[450px]",children:v.jsxs(O0,{center:[e.map_center_lat,e.map_center_lng],zoom:e.map_zoom||10,className:"w-full h-full",scrollWheelZoom:!1,children:[v.jsx(M0,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),v.jsx(bL,{}),v.jsx(A0,{position:[e.map_center_lat,e.map_center_lng],children:v.jsxs(j0,{children:[v.jsx("strong",{children:e.cwpp_region}),v.jsx("br",{}),e.island]})})]})})]}),e.map_embed_url&&v.jsx("div",{className:"mt-10 rounded-xl overflow-hidden shadow-lg border border-gray-200",children:v.jsx("iframe",{src:e.map_embed_url,title:`${e.title} Interactive Map`,className:"w-full h-[500px]",frameBorder:"0",allowFullScreen:!0})}),v.jsx(_L,{cwppRegion:e.cwpp_region,section:e}),e.gallery_urls&&e.gallery_urls.length>0&&v.jsxs("div",{className:"mt-10",children:[v.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-gray-500 mb-3",children:"Photo Gallery"}),v.jsx("div",{className:"aspect-video max-w-2xl",children:v.jsx(Gp,{images:y,interval:5e3,className:"w-full h-full",onOpen:x=>p({images:y,index:x})})})]}),f&&v.jsx(Kp,{images:f.images,index:f.index,onClose:()=>p(null),onNav:x=>p(b=>({...b,index:(b.index+x+b.images.length)%b.images.length}))})]})})}function kL(){const{id:e}=IS(),n=Ep(),[i,o]=k.useState(null),[u,h]=k.useState(!0),[f,p]=k.useState(null),y=k.useCallback(async()=>{h(!0);try{const x=await it.entities.StorySection.get(e);o(x)}catch(x){console.error(x),o(null)}h(!1)},[e]);return k.useEffect(()=>{y()},[y]),u?v.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-gray-900",children:v.jsx(io,{className:"animate-spin text-amber-400",size:40})}):i?v.jsxs("div",{className:"min-h-screen pb-16",children:[v.jsx("div",{className:"sticky top-0 z-40 bg-white/90 backdrop-blur-md border-b border-gray-100",children:v.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-3 flex items-center justify-between",children:[v.jsxs("button",{onClick:()=>n("/"),className:"inline-flex items-center gap-2 text-sm font-medium text-gray-700 hover:text-gray-900",children:[v.jsx(Nx,{size:16}),"Back to Story Map"]}),v.jsx("span",{className:"text-sm text-gray-400 truncate",children:i.island})]})}),v.jsx(SL,{section:i,index:0,onImageClick:(x,b)=>p({src:x,alt:b})}),f&&v.jsx(z0,{src:f.src,alt:f.alt,onClose:()=>p(null)}),v.jsx(Ew,{section:i,onUpdate:y,sections:[i]}),v.jsx(Cw,{})]}):v.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4",children:[v.jsx("p",{className:"text-gray-500",children:"Community plan not found."}),v.jsx(Cp,{to:"/",className:"text-amber-600 hover:underline",children:"Back to story map"})]})}const EL=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:n,authError:i,navigateToLogin:o}=S0();if(n||e)return v.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:v.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(i){if(i.type==="user_not_registered")return v.jsx(u2,{});if(i.type==="auth_required")return o(),null}return v.jsxs(XS,{children:[v.jsx(Vc,{path:"/",element:v.jsx(uL,{})}),v.jsx(Vc,{path:"/community/:id",element:v.jsx(kL,{})}),v.jsx(Vc,{path:"*",element:v.jsx(a2,{})})]})};function CL(){return v.jsx(l2,{children:v.jsxs($1,{client:rS,children:[v.jsxs(sk,{children:[v.jsx(d2,{}),v.jsx(EL,{})]}),v.jsx(y1,{})]})})}_x.createRoot(document.getElementById("root")).render(v.jsx(CL,{}));

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.