vendor: 6,757 bytes, lines 1-9
1var tce=e=>{throw TypeError(e)};var TK=(e,t,r)=>t.has(e)||tce("Cannot "+r);var ke=(e,t,r)=>(TK(e,t,"read from private field"),r?r.call(e):t.get(e)),Bt=(e,t,r)=>t.has(e)?tce("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xt=(e,t,r,n)=>(TK(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),cr=(e,t,r)=>(TK(e,t,"access private method"),r);var B4=(e,t,r,n)=>({set _(a){xt(e,t,a,r)},get _(){return ke(e,t,n)}});function VPe(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(n,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=r(a);fetch(a.href,s)}})();var fa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WPe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Xve={exports:{}},FV={},Zve={exports:{}},gr={};/** 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 j_=Symbol.for("react.element"),GPe=Symbol.for("react.portal"),KPe=Symbol.for("react.fragment"),YPe=Symbol.for("react.strict_mode"),XPe=Symbol.for("react.profiler"),ZPe=Symbol.for("react.provider"),QPe=Symbol.for("react.context"),JPe=Symbol.for("react.forward_ref"),e7e=Symbol.for("react.suspense"),t7e=Symbol.for("react.memo"),r7e=Symbol.for("react.lazy"),rce=Symbol.iterator;function n7e(e){return e===null||typeof e!="object"?null:(e=rce&&e[rce]||e["@@iterator"],typeof e=="function"?e:null)}var Qve={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jve=Object.assign,exe={};function nv(e,t,r){this.props=e,this.context=t,this.refs=exe,this.updater=r||Qve}nv.prototype.isReactComponent={};nv.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};nv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function txe(){}txe.prototype=nv.prototype;function Tne(e,t,r){this.props=e,this.context=t,this.refs=exe,this.updater=r||Qve}var Ane=Tne.prototype=new txe;Ane.constructor=Tne;Jve(Ane,nv.prototype);Ane.isPureReactComponent=!0;var nce=Array.isArray,rxe=Object.prototype.hasOwnProperty,Mne={current:null},nxe={key:!0,ref:!0,__self:!0,__source:!0};function axe(e,t,r){var n,a={},s=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)rxe.call(t,n)&&!nxe.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)a[n]===void 0&&(a[n]=l[n]);return{$$typeof:j_,type:e,key:s,ref:o,props:a,_owner:Mne.current}}function a7e(e,t){return{$$typeof:j_,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ine(e){return typeof e=="object"&&e!==null&&e.$$typeof===j_}function i7e(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var ace=/\/+/g;function AK(e,t){return typeof e=="object"&&e!==null&&e.key!=null?i7e(""+e.key):t.toString(36)}function gS(e,t,r,n,a){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case j_:case GPe:o=!0}}if(o)return o=e,a=a(o),e=n===""?"."+AK(o,0):n,nce(a)?(r="",e!=null&&(r=e.replace(ace,"$&/")+"/"),gS(a,t,r,"",function(u){return u})):a!=null&&(Ine(a)&&(a=a7e(a,r+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(ace,"$&/")+"/")+e)),t.push(a)),1;if(o=0,n=n===""?".":n+":",nce(e))for(var l=0;l<e.length;l++){s=e[l];var c=n+AK(s,l);o+=gS(s,t,r,c,a)}else if(c=n7e(e),typeof c=="function")for(e=c.call(e),l=0;!(s=e.next()).done;)s=s.value,c=n+AK(s,l++),o+=gS(s,t,r,c,a);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function z4(e,t,r){if(e==null)return e;var n=[],a=0;return gS(e,n,"","",function(s){return t.call(r,s,a++)}),n}function s7e(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Zi={current:null},yS={transition:null},o7e={ReactCurrentDispatcher:Zi,ReactCurrentBatchConfig:yS,ReactCurrentOwner:Mne};function ixe(){throw Error("act(...) is not supported in production builds of React.")}gr.Children={map:z4,forEach:function(e,t,r){z4(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return z4(e,function(){t++}),t},toArray:function(e){return z4(e,function(t){return t})||[]},only:function(e){if(!Ine(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};gr.Component=nv;gr.Fragment=KPe;gr.Profiler=XPe;gr.PureComponent=Tne;gr.StrictMode=YPe;gr.Suspense=e7e;
vendor: 8,145 bytes, lines 9-33
9gr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o7e;gr.act=ixe;gr.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Jve({},e.props),a=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Mne.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)rxe.call(t,c)&&!nxe.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:j_,type:e.type,key:a,ref:s,props:n,_owner:o}};gr.createContext=function(e){return e={$$typeof:QPe,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ZPe,_context:e},e.Consumer=e};gr.createElement=axe;gr.createFactory=function(e){var t=axe.bind(null,e);return t.type=e,t};gr.createRef=function(){return{current:null}};gr.forwardRef=function(e){return{$$typeof:JPe,render:e}};gr.isValidElement=Ine;gr.lazy=function(e){return{$$typeof:r7e,_payload:{_status:-1,_result:e},_init:s7e}};gr.memo=function(e,t){return{$$typeof:t7e,type:e,compare:t===void 0?null:t}};gr.startTransition=function(e){var t=yS.transition;yS.transition={};try{e()}finally{yS.transition=t}};gr.unstable_act=ixe;gr.useCallback=function(e,t){return Zi.current.useCallback(e,t)};gr.useContext=function(e){return Zi.current.useContext(e)};gr.useDebugValue=function(){};gr.useDeferredValue=function(e){return Zi.current.useDeferredValue(e)};gr.useEffect=function(e,t){return Zi.current.useEffect(e,t)};gr.useId=function(){return Zi.current.useId()};gr.useImperativeHandle=function(e,t,r){return Zi.current.useImperativeHandle(e,t,r)};gr.useInsertionEffect=function(e,t){return Zi.current.useInsertionEffect(e,t)};gr.useLayoutEffect=function(e,t){return Zi.current.useLayoutEffect(e,t)};gr.useMemo=function(e,t){return Zi.current.useMemo(e,t)};gr.useReducer=function(e,t,r){return Zi.current.useReducer(e,t,r)};gr.useRef=function(e){return Zi.current.useRef(e)};gr.useState=function(e){return Zi.current.useState(e)};gr.useSyncExternalStore=function(e,t,r){return Zi.current.useSyncExternalStore(e,t,r)};gr.useTransition=function(){return Zi.current.useTransition()};gr.version="18.3.1";Zve.exports=gr;var k=Zve.exports;const ce=jr(k),Pne=VPe({__proto__:null,default:ce},[k]);/** 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 l7e=k,c7e=Symbol.for("react.element"),u7e=Symbol.for("react.fragment"),d7e=Object.prototype.hasOwnProperty,h7e=l7e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f7e={key:!0,ref:!0,__self:!0,__source:!0};function sxe(e,t,r){var n,a={},s=null,o=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)d7e.call(t,n)&&!f7e.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:c7e,type:e,key:s,ref:o,props:a,_owner:h7e.current}}FV.Fragment=u7e;FV.jsx=sxe;FV.jsxs=sxe;Xve.exports=FV;var i=Xve.exports,oxe={exports:{}},Ys={},lxe={exports:{}},cxe={};/** 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 */(function(e){function t(ee,Z){var V=ee.length;ee.push(Z);e:for(;0<V;){var ne=V-1>>>1,P=ee[ne];if(0<a(P,Z))ee[ne]=Z,ee[V]=P,V=ne;else break e}}function r(ee){return ee.length===0?null:ee[0]}function n(ee){if(ee.length===0)return null;var Z=ee[0],V=ee.pop();if(V!==Z){ee[0]=V;e:for(var ne=0,P=ee.length,R=P>>>1;ne<R;){var H=2*(ne+1)-1,re=ee[H],ae=H+1,D=ee[ae];if(0>a(re,V))ae<P&&0>a(D,re)?(ee[ne]=D,ee[ae]=V,ne=ae):(ee[ne]=re,ee[H]=V,ne=H);else if(ae<P&&0>a(D,V))ee[ne]=D,ee[ae]=V,ne=ae;else break e}}return Z}function a(ee,Z){var V=ee.sortIndex-Z.sortIndex;return V!==0?V:ee.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,y=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,g=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 x(ee){for(var Z=r(u);Z!==null;){if(Z.callback===null)n(u);else if(Z.startTime<=ee)n(u),Z.sortIndex=Z.expirationTime,t(c,Z);else break;Z=r(u)}}function _(ee){if(m=!1,x(ee),!y)if(r(c)!==null)y=!0,Y(w);else{var Z=r(u);Z!==null&&W(_,Z.startTime-ee)}}function w(ee,Z){y=!1,m&&(m=!1,g(C),C=-1),p=!0;var V=f;try{for(x(Z),h=r(c);h!==null&&(!(h.expirationTime>Z)||ee&&!$());){var ne=h.callback;if(typeof ne=="function"){h.callback=null,f=h.priorityLevel;var P=ne(h.expirationTime<=Z);Z=e.unstable_now(),typeof P=="function"?h.callback=P:h===r(c)&&n(c),x(Z)}else n(c);h=r(c)}if(h!==null)var R=!0;else{var H=r(u);H!==null&&W(_,H.startTime-Z),R=!1}return R}finally{h=null,f=V,p=!1}}var j=!1,E=null,C=-1,N=5,A=-1;function $(){return!(e.unstable_now()-A<N)}function T(){if(E!==null){var ee=e.unstable_now();A=ee;var Z=!0;try{Z=E(!0,ee)}finally{Z?F():(j=!1,E=null)}}else j=!1}var F;if(typeof b=="function")F=function(){b(T)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,z=M.port2;M.port1.onmessage=T,F=function(){z.postMessage(null)}}else F=function(){v(T,0)};function Y(ee){E=ee,j||(j=!0,F())}function W(ee,Z){C=v(function(){ee(e.unstable_now())},Z)}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(ee){ee.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,Y(w))},e.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<ee?Math.floor(1e3/ee):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(ee){switch(f){case 1:case 2:case 3:var Z=3;break;default:Z=f}var V=f;f=Z;try{return ee()}finally{f=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ee,Z){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var V=f;f=ee;try{return Z()}finally{f=V}},e.unstable_scheduleCallback=function(ee,Z,V){var ne=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ne+V:ne):V=ne,ee){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=V+P,ee={id:d++,callback:Z,priorityLevel:ee,startTime:V,expirationTime:P,sortIndex:-1},V>ne?(ee.sortIndex=V,t(u,ee),r(c)===null&&ee===r(u)&&(m?(g(C),C=-1):m=!0,W(_,V-ne))):(ee.sortIndex=P,t(c,ee),y||p||(y=!0,Y(w))),ee},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(ee){var Z=f;return function(){var V=f;f=Z;try{return ee.apply(this,arguments)}finally{f=V}}}})(cxe);lxe.exports=cxe;var p7e=lxe.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 m7e=k,Ks=p7e;function Qe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var uxe=new Set,Gw={};
vendor: 4,957 bytes, line 33
33function F0(e,t){i2(e,t),i2(e+"Capture",t)}function i2(e,t){for(Gw[e]=t,e=0;e<t.length;e++)uxe.add(t[e])}var bu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ZQ=Object.prototype.hasOwnProperty,g7e=/^[: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]*$/,ice={},sce={};function y7e(e){return ZQ.call(sce,e)?!0:ZQ.call(ice,e)?!1:g7e.test(e)?sce[e]=!0:(ice[e]=!0,!1)}function v7e(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function x7e(e,t,r,n){if(t===null||typeof t>"u"||v7e(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Qi(e,t,r,n,a,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var fi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fi[e]=new Qi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fi[t]=new Qi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fi[e]=new Qi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fi[e]=new Qi(e,2,!1,e,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(e){fi[e]=new Qi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fi[e]=new Qi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fi[e]=new Qi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fi[e]=new Qi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fi[e]=new Qi(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lne=/[\-:]([a-z])/g;function One(e){return e[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(e){var t=e.replace(Lne,One);fi[t]=new Qi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Lne,One);fi[t]=new Qi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Lne,One);fi[t]=new Qi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fi[e]=new Qi(e,1,!1,e.toLowerCase(),null,!1,!1)});fi.xlinkHref=new Qi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fi[e]=new Qi(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rne(e,t,r,n){var a=fi.hasOwnProperty(t)?fi[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(x7e(t,r,a,n)&&(r=null),n||a===null?y7e(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r
vendor: 19,583 bytes, lines 33-37
33===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Pu=m7e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U4=Symbol.for("react.element"),qg=Symbol.for("react.portal"),Hg=Symbol.for("react.fragment"),Dne=Symbol.for("react.strict_mode"),QQ=Symbol.for("react.profiler"),dxe=Symbol.for("react.provider"),hxe=Symbol.for("react.context"),Fne=Symbol.for("react.forward_ref"),JQ=Symbol.for("react.suspense"),eJ=Symbol.for("react.suspense_list"),$ne=Symbol.for("react.memo"),ld=Symbol.for("react.lazy"),fxe=Symbol.for("react.offscreen"),oce=Symbol.iterator;function px(e){return e===null||typeof e!="object"?null:(e=oce&&e[oce]||e["@@iterator"],typeof e=="function"?e:null)}var Ln=Object.assign,MK;function cb(e){if(MK===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);MK=t&&t[1]||""}return` 34`+MK+e}var IK=!1;function PK(e,t){if(!e||IK)return"";IK=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var a=u.stack.split(` 35`),s=n.stack.split(` 36`),o=a.length-1,l=s.length-1;1<=o&&0<=l&&a[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||a[o]!==s[l]){var c=` 37`+a[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{IK=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?cb(e):""}function b7e(e){switch(e.tag){case 5:return cb(e.type);case 16:return cb("Lazy");case 13:return cb("Suspense");case 19:return cb("SuspenseList");case 0:case 2:case 15:return e=PK(e.type,!1),e;case 11:return e=PK(e.type.render,!1),e;case 1:return e=PK(e.type,!0),e;default:return""}}function tJ(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Hg:return"Fragment";case qg:return"Portal";case QQ:return"Profiler";case Dne:return"StrictMode";case JQ:return"Suspense";case eJ:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hxe:return(e.displayName||"Context")+".Consumer";case dxe:return(e._context.displayName||"Context")+".Provider";case Fne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $ne:return t=e.displayName||null,t!==null?t:tJ(e.type)||"Memo";case ld:t=e._payload,e=e._init;try{return tJ(e(t))}catch{}}return null}function w7e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tJ(t);case 8:return t===Dne?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function nh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pxe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k7e(e){var t=pxe(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function q4(e){e._valueTracker||(e._valueTracker=k7e(e))}function mxe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=pxe(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function lq(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rJ(e,t){var r=t.checked;return Ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function lce(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=nh(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gxe(e,t){t=t.checked,t!=null&&Rne(e,"checked",t,!1)}function nJ(e,t){gxe(e,t);var r=nh(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?aJ(e,t.type,r):t.hasOwnProperty("defaultValue")&&aJ(e,t.type,nh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cce(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function aJ(e,t,r){(t!=="number"||lq(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ub=Array.isArray;function ly(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+nh(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function iJ(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Qe(91));return Ln({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function uce(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Qe(92));if(ub(r)){if(1<r.length)throw Error(Qe(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:nh(r)}}function yxe(e,t){var r=nh(t.value),n=nh(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function dce(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vxe(e){switch(e){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 sJ(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vxe(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var H4,xxe=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(H4=H4||document.createElement("div"),H4.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=H4.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kw(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ab={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},_7e=["Webkit","ms","Moz","O"];Object.keys(Ab).forEach(function(e){_7e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ab[t]=Ab[e]})});function bxe(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ab.hasOwnProperty(e)&&Ab[e]?(""+t).trim():t+"px"}function wxe(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=bxe(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var S7e=Ln({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 oJ(e,t){if(t){if(S7e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Qe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Qe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Qe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Qe(62))}}function lJ(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cJ=null;function Bne(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uJ=null,cy=null,uy=null;function hce(e){if(e=N_(e)){if(typeof uJ!="function")throw Error(Qe(280));var t=e.stateNode;t&&(t=qV(t),uJ(e.stateNode,e.type,t))}}function kxe(e){cy?uy?uy.push(e):uy=[e]:cy=e}function _xe(){if(cy){var e=cy,t=uy;if(uy=cy=null,hce(e),t)for(e=0;e<t.length;e++)hce(t[e])}}function Sxe(e,t){return e(t)}function jxe(){}var LK=!1;function Exe(e,t,r){if(LK)return e(t,r);LK=!0;try{return Sxe(e,t,r)}finally{LK=!1,(cy!==null||uy!==null)&&(jxe(),_xe())}}function Yw(e,t){var r=e.stateNode;if(r===null)return null;var n=qV(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Qe(231,t,typeof r));return r}var dJ=!1;if(bu)try{var mx={};Object.defineProperty(mx,"passive",{get:function(){dJ=!0}}),window.addEventListener("test",mx,mx),window.removeEventListener("test",mx,mx)}catch{dJ=!1}function j7e(e,t,r,n,a,s,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var Mb=!1,cq=null,uq=!1,hJ=null,E7e={onError:function(e){Mb=!0,cq=e}};function C7e(e,t,r,n,a,s,o,l,c){Mb=!1,cq=null,j7e.apply(E7e,arguments)}function N7e(e,t,r,n,a,s,o,l,c){if(C7e.apply(this,arguments),Mb){if(Mb){var u=cq;Mb=!1,cq=null}else throw Error(Qe(198));uq||(uq=!0,hJ=u)}}function $0(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Cxe(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fce(e){if($0(e)!==e)throw Error(Qe(188))}function T7e(e){var t=e.alternate;if(!t){if(t=$0(e),t===null)throw Error(Qe(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var s=a.alternate;if(s===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===r)return fce(a),e;if(s===n)return fce(a),t;s=s.sibling}throw Error(Qe(188))}if(r.return!==n.return)r=a,n=s;else{for(var o=!1,l=a.child;l;){if(l===r){o=!0,r=a,n=s;break}if(l===n){o=!0,n=a,r=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===r){o=!0,r=s,n=a;break}if(l===n){o=!0,n=s,r=a;break}l=l.sibling}if(!o)throw Error(Qe(189))}}if(r.alternate!==n)throw Error(Qe(190))}if(r.tag!==3)throw Error(Qe(188));return r.stateNode.current===r?e:t}function Nxe(e){return e=T7e(e),e!==null?Txe(e):null}function Txe(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Txe(e);if(t!==null)return t;e=e.sibling}return null}var Axe=Ks.unstable_scheduleCallback,pce=Ks.unstable_cancelCallback,A7e=Ks.unstable_shouldYield,M7e=Ks.unstable_requestPaint,Xn=Ks.unstable_now,I7e=Ks.unstable_getCurrentPriorityLevel,zne=Ks.unstable_ImmediatePriority,Mxe=Ks.unstable_UserBlockingPriority,dq=Ks.unstable_NormalPriority,P7e=Ks.unstable_LowPriority,Ixe=Ks.unstable_IdlePriority,$V=null,nc=null;function L7e(e){if(nc&&typeof nc.onCommitFiberRoot=="function")try{nc.onCommitFiberRoot($V,e,void 0,(e.current.flags&128)===128)}catch{}}var gl=Math.clz32?Math.clz32:D7e,O7e=Math.log,R7e=Math.LN2;function D7e(e){return e>>>=0,e===0?32:31-(O7e(e)/R7e|0)|0}var V4=64,W4=4194304;function db(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function hq(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~a;l!==0?n=db(l):(s&=o,s!==0&&(n=db(s)))}else o=r&~a,o!==0?n=db(o):s!==0&&(n=db(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,s=t&-t,a>=s||a===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-gl(t),a=1<<r,n|=e[r],t&=~a;return n}function F7e(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 $7e(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-gl(s),l=1<<o,c=a[o];c===-1?(!(l&r)||l&n)&&(a[o]=F7e(l,t)):c<=t&&(e.expiredLanes|=l),s&=~l}}function fJ(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Pxe(){var e=V4;return V4<<=1,!(V4&4194240)&&(V4=64),e}function OK(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function E_(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gl(t),e[t]=r}function B7e(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-gl(r),s=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~s}}function Une(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-gl(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var Yr=0;function Lxe(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Oxe,qne,Rxe,Dxe,Fxe,pJ=!1,G4=[],Od=null,Rd=null,Dd=null,Xw=new Map,Zw=new Map,pd=[],z7e="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mce(e,t){switch(e){case"focusin":case"focusout":Od=null;break;case"dragenter":case"dragleave":Rd=null;break;case"mouseover":case"mouseout":Dd=null;break;case"pointerover":case"pointerout":Xw.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zw.delete(t.pointerId)}}function gx(e,t,r,n,a,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[a]},t!==null&&(t=N_(t),t!==null&&qne(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function U7e(e,t,r,n,a){switch(t){case"focusin":return Od=gx(Od,e,t,r,n,a),!0;case"dragenter":return Rd=gx(Rd,e,t,r,n,a),!0;case"mouseover":return Dd=gx(Dd,e,t,r,n,a),!0;case"pointerover":var s=a.pointerId;return Xw.set(s,gx(Xw.get(s)||null,e,t,r,n,a)),!0;case"gotpointercapture":return s=a.pointerId,Zw.set(s,gx(Zw.get(s)||null,e,t,r,n,a)),!0}return!1}function $xe(e){var t=A1(e.target);if(t!==null){var r=$0(t);if(r!==null){if(t=r.tag,t===13){if(t=Cxe(r),t!==null){e.blockedOn=t,Fxe(e.priority,function(){Rxe(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vS(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=mJ(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);cJ=n,r.target.dispatchEvent(n),cJ=null}else return t=N_(r),t!==null&&qne(t),e.blockedOn=r,!1;t.shift()}return!0}function gce(e,t,r){vS(e)&&r.delete(t)}function q7e(){pJ=!1,Od!==null&&vS(Od)&&(Od=null),Rd!==null&&vS(Rd)&&(Rd=null),Dd!==null&&vS(Dd)&&(Dd=null),Xw.forEach(gce),Zw.forEach(gce)}function yx(e,t){e.blockedOn===t&&(e.blockedOn=null,pJ||(pJ=!0,Ks.unstable_scheduleCallback(Ks.unstable_NormalPriority,q7e)))}function Qw(e){function t(a){return yx(a,e)}if(0<G4.length){yx(G4[0],e);for(var r=1;r<G4.length;r++){var n=G4[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Od!==null&&yx(Od,e),Rd!==null&&yx(Rd,e),Dd!==null&&yx(Dd,e),Xw.forEach(t),Zw.forEach(t),r=0;r<pd.length;r++)n=pd[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<pd.length&&(r=pd[0],r.blockedOn===null);)$xe(r),r.blockedOn===null&&pd.shift()}var dy=Pu.ReactCurrentBatchConfig,fq=!0;function H7e(e,t,r,n){var a=Yr,s=dy.transition;dy.transition=null;try{Yr=1,Hne(e,t,r,n)}finally{Yr=a,dy.transition=s}}function V7e(e,t,r,n){var a=Yr,s=dy.transition;dy.transition=null;try{Yr=4,Hne(e,t,r,n)}finally{Yr=a,dy.transition=s}}function Hne(e,t,r,n){if(fq){var a=mJ(e,t,r,n);if(a===null)VK(e,t,n,pq,r),mce(e,n);else if(U7e(a,e,t,r,n))n.stopPropagation();else if(mce(e,n),t&4&&-1<z7e.indexOf(e)){for(;a!==null;){var s=N_(a);if(s!==null&&Oxe(s),s=mJ(e,t,r,n),s===null&&VK(e,t,n,pq,r),s===a)break;a=s}a!==null&&n.stopPropagation()}else VK(e,t,n,null,r)}}var pq=null;function mJ(e,t,r,n){if(pq=null,e=Bne(n),e=A1(e),e!==null)if(t=$0(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Cxe(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return pq=e,null}
vendor: 10,527 bytes, line 37
37function Bxe(e){switch(e){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(I7e()){case zne:return 1;case Mxe:return 4;case dq:case P7e:return 16;case Ixe:return 536870912;default:return 16}default:return 16}}var Nd=null,Vne=null,xS=null;function zxe(){if(xS)return xS;var e,t=Vne,r=t.length,n,a="value"in Nd?Nd.value:Nd.textContent,s=a.length;for(e=0;e<r&&t[e]===a[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===a[s-n];n++);return xS=a.slice(e,1<n?1-n:void 0)}function bS(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function K4(){return!0}function yce(){return!1}function Xs(e){function t(r,n,a,s,o){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?K4:yce,this.isPropagationStopped=yce,this}return Ln(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=K4)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=K4)},persist:function(){},isPersistent:K4}),t}var av={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wne=Xs(av),C_=Ln({},av,{view:0,detail:0}),W7e=Xs(C_),RK,DK,vx,BV=Ln({},C_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gne,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vx&&(vx&&e.type==="mousemove"?(RK=e.screenX-vx.screenX,DK=e.screenY-vx.screenY):DK=RK=0,vx=e),RK)},movementY:function(e){return"movementY"in e?e.movementY:DK}}),vce=Xs(BV),G7e=Ln({},BV,{dataTransfer:0}),K7e=Xs(G7e),Y7e=Ln({},C_,{relatedTarget:0}),FK=Xs(Y7e),X7e=Ln({},av,{animationName:0,elapsedTime:0,pseudoElement:0}),Z7e=Xs(X7e),Q7e=Ln({},av,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),J7e=Xs(Q7e),eLe=Ln({},av,{data:0}),xce=Xs(eLe),tLe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rLe={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"},nLe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aLe(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nLe[e])?!!t[e]:!1}function Gne(){return aLe}var iLe=Ln({},C_,{key:function(e){if(e.key){var t=tLe[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bS(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rLe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gne,charCode:function(e){return e.type==="keypress"?bS(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bS(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sLe=Xs(iLe),oLe=Ln({},BV,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bce=Xs(oLe),lLe=Ln({},C_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gne}),cLe=Xs(lLe),uLe=Ln({},av,{propertyName:0,elapsedTime:0,pseudoElement:0}),dLe=Xs(uLe),hLe=Ln({},BV,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fLe=Xs(hLe),pLe=[9,13,27,32],Kne=bu&&"CompositionEvent"in window,Ib=null;bu&&"documentMode"in document&&(Ib=document.documentMode);var mLe=bu&&"TextEvent"in window&&!Ib,Uxe=bu&&(!Kne||Ib&&8<Ib&&11>=Ib),wce=" ",kce=!1;function qxe(e,t){switch(e){case"keyup":return pLe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hxe(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vg=!1;function gLe(e,t){switch(e){case"compositionend":return Hxe(t);case"keypress":return t.which!==32?null:(kce=!0,wce);case"textInput":return e=t.data,e===wce&&kce?null:e;default:return null}}function yLe(e,t){if(Vg)return e==="compositionend"||!Kne&&qxe(e,t)?(e=zxe(),xS=Vne=Nd=null,Vg=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Uxe&&t.locale!=="ko"?null:t.data;default:return null}}var vLe={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 _ce(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vLe[e.type]:t==="textarea"}function Vxe(e,t,r,n){kxe(n),t=mq(t,"onChange"),0<t.length&&(r=new Wne("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Pb=null,Jw=null;function xLe(e){rbe(e,0)}function zV(e){var t=Kg(e);if(mxe(t))return e}function bLe(e,t){if(e==="change")return t}var Wxe=!1;if(bu){var $K;if(bu){var BK="oninput"in document;if(!BK){var Sce=document.createElement("div");Sce.setAttribute("oninput","return;"),BK=typeof Sce.oninput=="function"}$K=BK}else $K=!1;Wxe=$K&&(!document.documentMode||9<document.documentMode)}function jce(){Pb&&(Pb.detachEvent("onpropertychange",Gxe),Jw=Pb=null)}function Gxe(e){if(e.propertyName==="value"&&zV(Jw)){var t=[];Vxe(t,Jw,e,Bne(e)),Exe(xLe,t)}}function wLe(e,t,r){e==="focusin"?(jce(),Pb=t,Jw=r,Pb.attachEvent("onpropertychange",Gxe)):e==="focusout"&&jce()}function kLe(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zV(Jw)}function _Le(e,t){if(e==="click")return zV(t)}function SLe(e,t){if(e==="input"||e==="change")return zV(t)}function jLe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _l=typeof Object.is=="function"?Object.is:jLe;function ek(e,t){if(_l(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!ZQ.call(t,a)||!_l(e[a],t[a]))return!1}return!0}function Ece(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cce(e,t){var r=Ece(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ece(r)}}function Kxe(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kxe(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yxe(){for(var e=window,t=lq();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=lq(e.document)}return t}function Yne(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ELe(e){var t=Yxe(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Kxe(r.ownerDocument.documentElement,r)){if(n!==null&&Yne(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,s=Math.min(n.start,a);n=n.end===void 0?s:Math.min(n.end,a),!e.extend&&s>n&&(a=n,n=s,s=a),a=Cce(r,s);var o=Cce(r,n);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var CLe=bu&&"documentMode"in document&&11>=document.documentMode,Wg=null,gJ=null,Lb=null,yJ=!1;function Nce(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yJ||Wg==null||Wg!==lq(n)||(n=Wg,"selectionStart"in n&&Yne(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,419 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),Lb&&ek(Lb,n)||(Lb=n,n=mq(gJ,"onSelect"),0<n.length&&(t=new Wne("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Wg)))}function Y4(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Gg={animationend:Y4("Animation","AnimationEnd"),animationiteration:Y4("Animation","AnimationIteration"),animationstart:Y4("Animation","AnimationStart"),transitionend:Y4("Transition","TransitionEnd")},zK={},Xxe={};bu&&(Xxe=document.createElement("div").style,"AnimationEvent"in window||(delete Gg.animationend.animation,delete Gg.animationiteration.animation,delete Gg.animationstart.animation),"TransitionEvent"in window||delete Gg.transitionend.transition);function UV(e){if(zK[e])return zK[e];if(!Gg[e])return e;var t=Gg[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Xxe)return zK[e]=t[r];return e}var Zxe=UV("animationend"),Qxe=UV("animationiteration"),Jxe=UV("animationstart"),ebe=UV("transitionend"),tbe=new Map,Tce="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 hh(e,t){tbe.set(e,t),F0(t,[e])}for(var UK=0;UK<Tce.length;UK++){var qK=Tce[UK],NLe=qK.toLowerCase(),TLe=qK[0].toUpperCase()+qK.slice(1);hh(NLe,"on"+TLe)}hh(Zxe,"onAnimationEnd");hh(Qxe,"onAnimationIteration");hh(Jxe,"onAnimationStart");hh("dblclick","onDoubleClick");hh("focusin","onFocus");hh("focusout","onBlur");hh(ebe,"onTransitionEnd");i2("onMouseEnter",["mouseout","mouseover"]);i2("onMouseLeave",["mouseout","mouseover"]);i2("onPointerEnter",["pointerout","pointerover"]);i2("onPointerLeave",["pointerout","pointerover"]);F0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));F0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));F0("onBeforeInput",["compositionend","keypress","textInput","paste"]);F0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));F0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));F0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hb="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(" "),ALe=new Set("cancel close invalid load scroll toggle".split(" ").concat(hb));function Ace(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,N7e(n,t,void 0,e),e.currentTarget=null}function rbe(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==s&&a.isPropagationStopped())break e;Ace(a,l,u),s=c}else for(o=0;o<n.length;o++){if(l=n[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==s&&a.isPropagationStopped())break e;Ace(a,l,u),s=c}}}if(uq)throw e=hJ,uq=!1,hJ=null,e}function gn(e,t){var r=t[kJ];r===void 0&&(r=t[kJ]=new Set);var n=e+"__bubble";r.has(n)||(nbe(t,e,2,!1),r.add(n))}function HK(e,t,r){var n=0;t&&(n|=4),nbe(r,e,n,t)}var X4="_reactListening"+Math.random().toString(36).slice(2);function tk(e){if(!e[X4]){e[X4]=!0,uxe.forEach(function(r){r!=="selectionchange"&&(ALe.has(r)||HK(r,!1,e),HK(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[X4]||(t[X4]=!0,HK("selectionchange",!1,t))}}function nbe(e,t,r,n){switch(Bxe(t)){case 1:var a=H7e;break;case 4:a=V7e;break;default:a=Hne}r=a.bind(null,t,r,e),a=void 0,!dJ||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function VK(e,t,r,n,a){var s=n;
vendor: 2,927 bytes, line 37
37if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(o===4)for(o=n.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;o=o.return}for(;l!==null;){if(o=A1(l),o===null)return;if(c=o.tag,c===5||c===6){n=s=o;continue e}l=l.parentNode}}n=n.return}Exe(function(){var u=s,d=Bne(r),h=[];e:{var f=tbe.get(e);if(f!==void 0){var p=Wne,y=e;switch(e){case"keypress":if(bS(r)===0)break e;case"keydown":case"keyup":p=sLe;break;case"focusin":y="focus",p=FK;break;case"focusout":y="blur",p=FK;break;case"beforeblur":case"afterblur":p=FK;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=vce;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=K7e;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=cLe;break;case Zxe:case Qxe:case Jxe:p=Z7e;break;case ebe:p=dLe;break;case"scroll":p=W7e;break;case"wheel":p=fLe;break;case"copy":case"cut":case"paste":p=J7e;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=bce}var m=(t&4)!==0,v=!m&&e==="scroll",g=m?f!==null?f+"Capture":null:f;m=[];for(var b=u,x;b!==null;){x=b;var _=x.stateNode;if(x.tag===5&&_!==null&&(x=_,g!==null&&(_=Yw(b,g),_!=null&&m.push(rk(b,_,x)))),v)break;b=b.return}0<m.length&&(f=new p(f,y,null,r,d),h.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&r!==cJ&&(y=r.relatedTarget||r.fromElement)&&(A1(y)||y[wu]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(y=r.relatedTarget||r.toElement,p=u,y=y?A1(y):null,y!==null&&(v=$0(y),y!==v||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=u),p!==y)){if(m=vce,_="onMouseLeave",g="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(m=bce,_="onPointerLeave",g="onPointerEnter",b="pointer"),v=p==null?f:Kg(p),x=y==null?f:Kg(y),f=new m(_,b+"leave",p,r,d),f.target=v,f.relatedTarget=x,_=null,A1(d)===u&&(m=new m(g,b+"enter",y,r,d),m.target=x,m.relatedTarget=v,_=m),v=_,p&&y)t:{for(m=p,g=y,b=0,x=m;x;x=hg(x))b++;for(x=0,_=g;_;_=hg(_))x++;for(;0<b-x;)m=hg(m),b--;for(;0<x-b;)g=hg(g),x--;for(;b--;){if(m===g||g!==null&&m===g.alternate)break t;m=hg(m),g=hg(g)}m=null}else m=null;p!==null&&Mce(h,f,p,m,!1),y!==null&&v!==null&&Mce(h,v,y,m,!0)}}e:{if(f=u?Kg(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var w=bLe;else if(_ce(f))if(Wxe)w=SLe;else{w=kLe;var j=wLe}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=_Le);
vendor: 4,360 bytes, lines 37-38
37if(w&&(w=w(e,u))){Vxe(h,w,r,d);break e}j&&j(e,f,u),e==="focusout"&&(j=f._wrapperState)&&j.controlled&&f.type==="number"&&aJ(f,"number",f.value)}switch(j=u?Kg(u):window,e){case"focusin":(_ce(j)||j.contentEditable==="true")&&(Wg=j,gJ=u,Lb=null);break;case"focusout":Lb=gJ=Wg=null;break;case"mousedown":yJ=!0;break;case"contextmenu":case"mouseup":case"dragend":yJ=!1,Nce(h,r,d);break;case"selectionchange":if(CLe)break;case"keydown":case"keyup":Nce(h,r,d)}var E;if(Kne)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Vg?qxe(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(Uxe&&r.locale!=="ko"&&(Vg||C!=="onCompositionStart"?C==="onCompositionEnd"&&Vg&&(E=zxe()):(Nd=d,Vne="value"in Nd?Nd.value:Nd.textContent,Vg=!0)),j=mq(u,C),0<j.length&&(C=new xce(C,e,null,r,d),h.push({event:C,listeners:j}),E?C.data=E:(E=Hxe(r),E!==null&&(C.data=E)))),(E=mLe?gLe(e,r):yLe(e,r))&&(u=mq(u,"onBeforeInput"),0<u.length&&(d=new xce("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:u}),d.data=E))}rbe(h,t)})}function rk(e,t,r){return{instance:e,listener:t,currentTarget:r}}function mq(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,s=a.stateNode;a.tag===5&&s!==null&&(a=s,s=Yw(e,r),s!=null&&n.unshift(rk(e,s,a)),s=Yw(e,t),s!=null&&n.push(rk(e,s,a))),e=e.return}return n}function hg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mce(e,t,r,n,a){for(var s=t._reactName,o=[];r!==null&&r!==n;){var l=r,c=l.alternate,u=l.stateNode;if(c!==null&&c===n)break;l.tag===5&&u!==null&&(l=u,a?(c=Yw(r,s),c!=null&&o.unshift(rk(r,c,l))):a||(c=Yw(r,s),c!=null&&o.push(rk(r,c,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var MLe=/\r\n?/g,ILe=/\u0000|\uFFFD/g;function Ice(e){return(typeof e=="string"?e:""+e).replace(MLe,` 38`).replace(ILe,"")}function Z4(e,t,r){if(t=Ice(t),Ice(e)!==t&&r)throw Error(Qe(425))}function gq(){}var vJ=null,xJ=null;function bJ(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wJ=typeof setTimeout=="function"?setTimeout:void 0,PLe=typeof clearTimeout=="function"?clearTimeout:void 0,Pce=typeof Promise=="function"?Promise:void 0,LLe=typeof queueMicrotask=="function"?queueMicrotask:typeof Pce<"u"?function(e){return Pce.resolve(null).then(e).catch(OLe)}:wJ;function OLe(e){setTimeout(function(){throw e})}function WK(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),Qw(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);Qw(t)}function Fd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Lce(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var iv=Math.random().toString(36).slice(2),Gl="__reactFiber$"+iv,nk="__reactProps$"+iv,wu="__reactContainer$"+iv,kJ="__reactEvents$"+iv,RLe="__reactListeners$"+iv,DLe="__reactHandles$"+iv;function A1(e){var t=e[Gl];if(t)return t;for(var r=e.parentNode;r;){if(t=r[wu]||r[Gl]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Lce(e);e!==null;){if(r=e[Gl])return r;e=Lce(e)}return t}e=r,r=e.parentNode}return null}function N_(e){return e=e[Gl]||e[wu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kg(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Qe(33))}function qV(e){return e[nk]||null}var _J=[],Yg=-1;function fh(e){return{current:e}}function kn(e){0>Yg||(e.current=_J[Yg],_J[Yg]=null,Yg--)}function dn(e,t){Yg++,_J[Yg]=e.current,e.current=t}var ah={},Ai=fh(ah),ys=fh(!1),m0=ah;function s2(e,t){var r=e.type.contextTypes;if(!r)return ah;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},s;for(s in r)a[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a
vendor: 4,316 bytes, line 38
38),a}function vs(e){return e=e.childContextTypes,e!=null}function yq(){kn(ys),kn(Ai)}function Oce(e,t,r){if(Ai.current!==ah)throw Error(Qe(168));dn(Ai,t),dn(ys,r)}function abe(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Qe(108,w7e(e)||"Unknown",a));return Ln({},r,n)}function vq(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ah,m0=Ai.current,dn(Ai,e),dn(ys,ys.current),!0}function Rce(e,t,r){var n=e.stateNode;if(!n)throw Error(Qe(169));r?(e=abe(e,t,m0),n.__reactInternalMemoizedMergedChildContext=e,kn(ys),kn(Ai),dn(Ai,e)):kn(ys),dn(ys,r)}var Gc=null,HV=!1,GK=!1;function ibe(e){Gc===null?Gc=[e]:Gc.push(e)}function FLe(e){HV=!0,ibe(e)}function ph(){if(!GK&&Gc!==null){GK=!0;var e=0,t=Yr;try{var r=Gc;for(Yr=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Gc=null,HV=!1}catch(a){throw Gc!==null&&(Gc=Gc.slice(e+1)),Axe(zne,ph),a}finally{Yr=t,GK=!1}}return null}var Xg=[],Zg=0,xq=null,bq=0,lo=[],co=0,g0=null,ru=1,nu="";function tf(e,t){Xg[Zg++]=bq,Xg[Zg++]=xq,xq=e,bq=t}function sbe(e,t,r){lo[co++]=ru,lo[co++]=nu,lo[co++]=g0,g0=e;var n=ru;e=nu;var a=32-gl(n)-1;n&=~(1<<a),r+=1;var s=32-gl(t)+a;if(30<s){var o=a-a%5;s=(n&(1<<o)-1).toString(32),n>>=o,a-=o,ru=1<<32-gl(t)+a|r<<a|n,nu=s+e}else ru=1<<s|r<<a|n,nu=e}function Xne(e){e.return!==null&&(tf(e,1),sbe(e,1,0))}function Zne(e){for(;e===xq;)xq=Xg[--Zg],Xg[Zg]=null,bq=Xg[--Zg],Xg[Zg]=null;for(;e===g0;)g0=lo[--co],lo[co]=null,nu=lo[--co],lo[co]=null,ru=lo[--co],lo[co]=null}var Hs=null,Us=null,En=!1,el=null;function obe(e,t){var r=fo(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Dce(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Hs=e,Us=Fd(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Hs=e,Us=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=g0!==null?{id:ru,overflow:nu}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=fo(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Hs=e,Us=null,!0):!1;default:return!1}}function SJ(e){return(e.mode&1)!==0&&(e.flags&128)===0}function jJ(e){if(En){var t=Us;if(t){var r=t;if(!Dce(e,t)){if(SJ(e))throw Error(Qe(418));t=Fd(r.nextSibling);var n=Hs;t&&Dce(e,t)?obe(n,r):(e.flags=e.flags&-4097|2,En=!1,Hs=e)}}else{if(SJ(e))throw Error(Qe(418));e.flags=e.flags&-4097|2,En=!1,Hs=e}}}function Fce(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Hs=e}function Q4(e){if(e!==Hs)return!1;if(!En)return Fce(e),En=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bJ(e.type,e.memoizedProps)),t&&(t=Us)){if(SJ(e))throw lbe(),Error(Qe(418));for(;t;)obe(e,t),t=Fd(t.nextSibling)}if(Fce(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Qe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Us=Fd(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Us=null}}else Us=Hs?Fd(e.stateNode.nextSibling):null;return!0}function lbe(){for(var e=Us;e;)e=Fd(e.nextSibling)}function o2(){Us=Hs=null,En=!1}function Qne(e){el===null?el=[e]:el.push(e)}var $Le=Pu.ReactCurrentBatchConfig;function xx(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Qe(309));var n=r.stateNode}if(!n)throw Error(Qe(147,e));var a=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=a.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(Qe(284));if(!r._owner)throw Error(Qe(290,e))}return e}function J4(e,t){throw e=Object.prototype.toString.call(t),Error(Qe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $ce(e){var t=e._init;return t(e._payload)}function cbe(e){function t(g,b){if(e){var x=g.deletions;x===null?(g.deletions=[b],g.flags|=16):x.push(b)}}function r(g,b){if(!e)return null;for(;b!==null;)t(g,b),b=b.sibling;return null}function n(g,b){for(g=new Map;b!==null;
vendor: 4,705 bytes, line 38
38)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function a(g,b){return g=Ud(g,b),g.index=0,g.sibling=null,g}function s(g,b,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<b?(g.flags|=2,b):x):(g.flags|=2,b)):(g.flags|=1048576,b)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,b,x,_){return b===null||b.tag!==6?(b=eY(x,g.mode,_),b.return=g,b):(b=a(b,x),b.return=g,b)}function c(g,b,x,_){var w=x.type;return w===Hg?d(g,b,x.props.children,_,x.key):b!==null&&(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ld&&$ce(w)===b.type)?(_=a(b,x.props),_.ref=xx(g,b,x),_.return=g,_):(_=CS(x.type,x.key,x.props,null,g.mode,_),_.ref=xx(g,b,x),_.return=g,_)}function u(g,b,x,_){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=tY(x,g.mode,_),b.return=g,b):(b=a(b,x.children||[]),b.return=g,b)}function d(g,b,x,_,w){return b===null||b.tag!==7?(b=J1(x,g.mode,_,w),b.return=g,b):(b=a(b,x),b.return=g,b)}function h(g,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=eY(""+b,g.mode,x),b.return=g,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case U4:return x=CS(b.type,b.key,b.props,null,g.mode,x),x.ref=xx(g,null,b),x.return=g,x;case qg:return b=tY(b,g.mode,x),b.return=g,b;case ld:var _=b._init;return h(g,_(b._payload),x)}if(ub(b)||px(b))return b=J1(b,g.mode,x,null),b.return=g,b;J4(g,b)}return null}function f(g,b,x,_){var w=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:l(g,b,""+x,_);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case U4:return x.key===w?c(g,b,x,_):null;case qg:return x.key===w?u(g,b,x,_):null;case ld:return w=x._init,f(g,b,w(x._payload),_)}if(ub(x)||px(x))return w!==null?null:d(g,b,x,_,null);J4(g,x)}return null}function p(g,b,x,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return g=g.get(x)||null,l(b,g,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case U4:return g=g.get(_.key===null?x:_.key)||null,c(b,g,_,w);case qg:return g=g.get(_.key===null?x:_.key)||null,u(b,g,_,w);case ld:var j=_._init;return p(g,b,x,j(_._payload),w)}if(ub(_)||px(_))return g=g.get(x)||null,d(b,g,_,w,null);J4(b,_)}return null}function y(g,b,x,_){for(var w=null,j=null,E=b,C=b=0,N=null;E!==null&&C<x.length;C++){E.index>C?(N=E,E=null):N=E.sibling;var A=f(g,E,x[C],_);if(A===null){E===null&&(E=N);break}e&&E&&A.alternate===null&&t(g,E),b=s(A,b,C),j===null?w=A:j.sibling=A,j=A,E=N}if(C===x.length)return r(g,E),En&&tf(g,C),w;if(E===null){for(;C<x.length;C++)E=h(g,x[C],_),E!==null&&(b=s(E,b,C),j===null?w=E:j.sibling=E,j=E);return En&&tf(g,C),w}for(E=n(g,E);C<x.length;C++)N=p(E,g,C,x[C],_),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?C:N.key),b=s(N,b,C),j===null?w=N:j.sibling=N,j=N);return e&&E.forEach(function($){return t(g,$)}),En&&tf(g,C),w}function m(g,b,x,_){var w=px(x);if(typeof w!="function")throw Error(Qe(150));if(x=w.call(x),x==null)throw Error(Qe(151));for(var j=w=null,E=b,C=b=0,N=null,A=x.next();E!==null&&!A.done;C++,A=x.next()){E.index>C?(N=E,E=null):N=E.sibling;var $=f(g,E,A.value,_);if($===null){E===null&&(E=N);break}e&&E&&$.alternate===null&&t(g,E),b=s($,b,C),j===null?w=$:j.sibling=$,j=$,E=N}if(A.done)return r(g,E),En&&tf(g,C),w;if(E===null){for(;!A.done;C++,A=x.next())A=h(g,A.value,_),A!==null&&(b=s(A,b,C),j===null?w=A:j.sibling=A,j=A);return En&&tf(g,C),w}for(E=n(g,E);!A.done;C++,A=x.next())A=p(E,g,C,A.value,_),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?C:A.key),b=s(A,b,C),j===null?w=A:j.sibling=A,j=A);return e&&E.forEach(function(T){return t(g,T)}),En&&tf(g,C),w}function v(g,b,x,_){if(typeof x=="object"&&x!==null&&x.type===Hg&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case U4:e:{for(var w=x.key,j=b;j!==null;){if(j.key===w){if(w=x.type,w===Hg){if(j.tag===7){r(g,j.sibling),b=a(j,x.props.children),b.return=g,g=b;break e}}else if(j.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ld&&$ce(w)===j.type){r(g,j.sibling),b=a(j,x.props),b.ref=xx(g,j,x),b.return=g,g=b;break e}r(g,j);break}else t(g,j);j=j.sibling}x.type===Hg?(b=J1(x.props.children,g.mode,_,x.key),b.return=g,g=b):(_=CS(x.type,x.key,x.props,null,g.mode,_),_.ref=xx(g,b,x),_.return=g,g=_)}return o(g);case qg:e:{for(j=x.key;b!==null;){if(b.key===j)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){r(g,b.sibling),b=a(b,x.children||[]),b.return=g,g=b;break e}else{r(g,b);break}else t(g,b);b=b.sibling}b=tY(x,g.mode,_),b.return=g,g=b}return o(g);case ld:return j=x._init,v(g,b,j(x._payload),_)}if(ub(x))return y(g,b,x,_);if(px(x))return m(g,b,x,_);J4(g,x)}
vendor: 5,509 bytes, line 38
38return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(r(g,b.sibling),b=a(b,x),b.return=g,g=b):(r(g,b),b=eY(x,g.mode,_),b.return=g,g=b),o(g)):r(g,b)}return v}var l2=cbe(!0),ube=cbe(!1),wq=fh(null),kq=null,Qg=null,Jne=null;function eae(){Jne=Qg=kq=null}function tae(e){var t=wq.current;kn(wq),e._currentValue=t}function EJ(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function hy(e,t){kq=e,Jne=Qg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(fs=!0),e.firstContext=null)}function wo(e){var t=e._currentValue;if(Jne!==e)if(e={context:e,memoizedValue:t,next:null},Qg===null){if(kq===null)throw Error(Qe(308));Qg=e,kq.dependencies={lanes:0,firstContext:e}}else Qg=Qg.next=e;return t}var M1=null;function rae(e){M1===null?M1=[e]:M1.push(e)}function dbe(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,rae(t)):(r.next=a.next,a.next=r),t.interleaved=r,ku(e,n)}function ku(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var cd=!1;function nae(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hbe(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $d(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ar&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,ku(e,r)}return a=n.interleaved,a===null?(t.next=t,rae(n)):(t.next=a.next,a.next=t),n.interleaved=t,ku(e,r)}function wS(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Une(e,r)}}function Bce(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?a=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?a=s=t:s=s.next=t}else a=s=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function _q(e,t,r,n){var a=e.updateQueue;cd=!1;var s=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?s=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(s!==null){var h=a.baseState;o=0,d=u=c=null,l=s;do{var f=l.lane,p=l.eventTime;if((n&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,m=l;switch(f=t,p=r,m.tag){case 1:if(y=m.payload,typeof y=="function"){h=y.call(p,h,f);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,f=typeof y=="function"?y.call(p,h,f):y,f==null)break e;h=Ln({},h,f);break e;case 2:cd=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=a.effects,f===null?a.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=h):d=d.next=p,o|=f;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;f=l,l=f.next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}while(!0);if(d===null&&(c=h),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else s===null&&(a.shared.lanes=0);v0|=o,e.lanes=o,e.memoizedState=h}}function zce(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(Qe(191,a));a.call(n)}}}var T_={},ac=fh(T_),ak=fh(T_),ik=fh(T_);function I1(e){if(e===T_)throw Error(Qe(174));return e}function aae(e,t){switch(dn(ik,t),dn(ak,e),dn(ac,T_),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sJ(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sJ(t,e)}kn(ac),dn(ac,t)}function c2(){kn(ac),kn(ak),kn(ik)}function fbe(e){I1(ik.current);var t=I1(ac.current),r=sJ(t,e.type);t!==r&&(dn(ak,e),dn(ac,r))}function iae(e){ak.current===e&&(kn(ac),kn(ak))}var Mn=fh(0);function Sq(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var KK=[];function sae(){for(var e=0;e<KK.length;e++)KK[e]._workInProgressVersionPrimary=null;KK.length=0}var kS=Pu.ReactCurrentDispatcher,YK=Pu.ReactCurrentBatchConfig,y0=0,Pn=null,Ma=null,Ka=null,jq=!1,Ob=!1,sk=0,BLe=0;function mi(){throw Error(Qe(321))}function oae(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!_l(e[r],t[r]))return!1;return!0}
vendor: 5,064 bytes, line 38
38function lae(e,t,r,n,a,s){if(y0=s,Pn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,kS.current=e===null||e.memoizedState===null?HLe:VLe,e=r(n,a),Ob){s=0;do{if(Ob=!1,sk=0,25<=s)throw Error(Qe(301));s+=1,Ka=Ma=null,t.updateQueue=null,kS.current=WLe,e=r(n,a)}while(Ob)}if(kS.current=Eq,t=Ma!==null&&Ma.next!==null,y0=0,Ka=Ma=Pn=null,jq=!1,t)throw Error(Qe(300));return e}function cae(){var e=sk!==0;return sk=0,e}function Dl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ka===null?Pn.memoizedState=Ka=e:Ka=Ka.next=e,Ka}function ko(){if(Ma===null){var e=Pn.alternate;e=e!==null?e.memoizedState:null}else e=Ma.next;var t=Ka===null?Pn.memoizedState:Ka.next;if(t!==null)Ka=t,Ma=e;else{if(e===null)throw Error(Qe(310));Ma=e,e={memoizedState:Ma.memoizedState,baseState:Ma.baseState,baseQueue:Ma.baseQueue,queue:Ma.queue,next:null},Ka===null?Pn.memoizedState=Ka=e:Ka=Ka.next=e}return Ka}function ok(e,t){return typeof t=="function"?t(e):t}function XK(e){var t=ko(),r=t.queue;if(r===null)throw Error(Qe(311));r.lastRenderedReducer=e;var n=Ma,a=n.baseQueue,s=r.pending;if(s!==null){if(a!==null){var o=a.next;a.next=s.next,s.next=o}n.baseQueue=a=s,r.pending=null}if(a!==null){s=a.next,n=n.baseState;var l=o=null,c=null,u=s;do{var d=u.lane;if((y0&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,o=n):c=c.next=h,Pn.lanes|=d,v0|=d}u=u.next}while(u!==null&&u!==s);c===null?o=n:c.next=l,_l(n,t.memoizedState)||(fs=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do s=a.lane,Pn.lanes|=s,v0|=s,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ZK(e){var t=ko(),r=t.queue;if(r===null)throw Error(Qe(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,s=t.memoizedState;if(a!==null){r.pending=null;var o=a=a.next;do s=e(s,o.action),o=o.next;while(o!==a);_l(s,t.memoizedState)||(fs=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function pbe(){}function mbe(e,t){var r=Pn,n=ko(),a=t(),s=!_l(n.memoizedState,a);if(s&&(n.memoizedState=a,fs=!0),n=n.queue,uae(vbe.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Ka!==null&&Ka.memoizedState.tag&1){if(r.flags|=2048,lk(9,ybe.bind(null,r,n,a,t),void 0,null),Ja===null)throw Error(Qe(349));y0&30||gbe(r,t,a)}return a}function gbe(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Pn.updateQueue,t===null?(t={lastEffect:null,stores:null},Pn.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function ybe(e,t,r,n){t.value=r,t.getSnapshot=n,xbe(t)&&bbe(e)}function vbe(e,t,r){return r(function(){xbe(t)&&bbe(e)})}function xbe(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!_l(e,r)}catch{return!0}}function bbe(e){var t=ku(e,1);t!==null&&yl(t,e,1,-1)}function Uce(e){var t=Dl();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ok,lastRenderedState:e},t.queue=e,e=e.dispatch=qLe.bind(null,Pn,e),[t.memoizedState,e]}function lk(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Pn.updateQueue,t===null?(t={lastEffect:null,stores:null},Pn.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function wbe(){return ko().memoizedState}function _S(e,t,r,n){var a=Dl();Pn.flags|=e,a.memoizedState=lk(1|t,r,void 0,n===void 0?null:n)}function VV(e,t,r,n){var a=ko();n=n===void 0?null:n;var s=void 0;if(Ma!==null){var o=Ma.memoizedState;if(s=o.destroy,n!==null&&oae(n,o.deps)){a.memoizedState=lk(t,r,s,n);return}}Pn.flags|=e,a.memoizedState=lk(1|t,r,s,n)}function qce(e,t){return _S(8390656,8,e,t)}function uae(e,t){return VV(2048,8,e,t)}function kbe(e,t){return VV(4,2,e,t)}function _be(e,t){return VV(4,4,e,t)}function Sbe(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jbe(e,t,r){return r=r!=null?r.concat([e]):null,VV(4,4,Sbe.bind(null,t,e),r)}function dae(){}function Ebe(e,t){var r=ko();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&oae(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Cbe(e,t){var r=ko();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&oae(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Nbe(e,t,r){return y0&21?(_l(r,t)||(r=Pxe(),Pn.lanes|=r,v0|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,fs=!0),e.memoizedState=r)}function zLe(e,t){var r=Yr;Yr=r!==0&&4>r?r:4,e(!0);var n=YK.transition;YK.transition={};try{e(!1),t()}finally{Yr=r,YK.transition=n}}function Tbe(){return ko().memoizedState}function ULe(e,t,r){var n=zd(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Abe(e))Mbe(t,r);else if(r=dbe(e,t,r,n),r!==null){var a=Yi();
vendor: 9,241 bytes, lines 38-40
38yl(r,e,n,a),Ibe(r,t,n)}}function qLe(e,t,r){var n=zd(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Abe(e))Mbe(t,a);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,r);if(a.hasEagerState=!0,a.eagerState=l,_l(l,o)){var c=t.interleaved;c===null?(a.next=a,rae(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=dbe(e,t,a,n),r!==null&&(a=Yi(),yl(r,e,n,a),Ibe(r,t,n))}}function Abe(e){var t=e.alternate;return e===Pn||t!==null&&t===Pn}function Mbe(e,t){Ob=jq=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ibe(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Une(e,r)}}var Eq={readContext:wo,useCallback:mi,useContext:mi,useEffect:mi,useImperativeHandle:mi,useInsertionEffect:mi,useLayoutEffect:mi,useMemo:mi,useReducer:mi,useRef:mi,useState:mi,useDebugValue:mi,useDeferredValue:mi,useTransition:mi,useMutableSource:mi,useSyncExternalStore:mi,useId:mi,unstable_isNewReconciler:!1},HLe={readContext:wo,useCallback:function(e,t){return Dl().memoizedState=[e,t===void 0?null:t],e},useContext:wo,useEffect:qce,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_S(4194308,4,Sbe.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _S(4194308,4,e,t)},useInsertionEffect:function(e,t){return _S(4,2,e,t)},useMemo:function(e,t){var r=Dl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Dl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ULe.bind(null,Pn,e),[n.memoizedState,e]},useRef:function(e){var t=Dl();return e={current:e},t.memoizedState=e},useState:Uce,useDebugValue:dae,useDeferredValue:function(e){return Dl().memoizedState=e},useTransition:function(){var e=Uce(!1),t=e[0];return e=zLe.bind(null,e[1]),Dl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Pn,a=Dl();if(En){if(r===void 0)throw Error(Qe(407));r=r()}else{if(r=t(),Ja===null)throw Error(Qe(349));y0&30||gbe(n,t,r)}a.memoizedState=r;var s={value:r,getSnapshot:t};return a.queue=s,qce(vbe.bind(null,n,s,e),[e]),n.flags|=2048,lk(9,ybe.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Dl(),t=Ja.identifierPrefix;if(En){var r=nu,n=ru;r=(n&~(1<<32-gl(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=sk++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=BLe++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VLe={readContext:wo,useCallback:Ebe,useContext:wo,useEffect:uae,useImperativeHandle:jbe,useInsertionEffect:kbe,useLayoutEffect:_be,useMemo:Cbe,useReducer:XK,useRef:wbe,useState:function(){return XK(ok)},useDebugValue:dae,useDeferredValue:function(e){var t=ko();return Nbe(t,Ma.memoizedState,e)},useTransition:function(){var e=XK(ok)[0],t=ko().memoizedState;return[e,t]},useMutableSource:pbe,useSyncExternalStore:mbe,useId:Tbe,unstable_isNewReconciler:!1},WLe={readContext:wo,useCallback:Ebe,useContext:wo,useEffect:uae,useImperativeHandle:jbe,useInsertionEffect:kbe,useLayoutEffect:_be,useMemo:Cbe,useReducer:ZK,useRef:wbe,useState:function(){return ZK(ok)},useDebugValue:dae,useDeferredValue:function(e){var t=ko();return Ma===null?t.memoizedState=e:Nbe(t,Ma.memoizedState,e)},useTransition:function(){var e=ZK(ok)[0],t=ko().memoizedState;return[e,t]},useMutableSource:pbe,useSyncExternalStore:mbe,useId:Tbe,unstable_isNewReconciler:!1};function Go(e,t){if(e&&e.defaultProps){t=Ln({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function CJ(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ln({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var WV={isMounted:function(e){return(e=e._reactInternals)?$0(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Yi(),a=zd(e),s=uu(n,a);s.payload=t,r!=null&&(s.callback=r),t=$d(e,s,a),t!==null&&(yl(t,e,a,n),wS(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Yi(),a=zd(e),s=uu(n,a);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=$d(e,s,a),t!==null&&(yl(t,e,a,n),wS(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Yi(),n=zd(e),a=uu(r,n);a.tag=2,t!=null&&(a.callback=t),t=$d(e,a,n),t!==null&&(yl(t,e,n,r),wS(t,e,n))}};function Hce(e,t,r,n,a,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!ek(r,n)||!ek(a,s):!0}function Pbe(e,t,r){var n=!1,a=ah,s=t.contextType;return typeof s=="object"&&s!==null?s=wo(s):(a=vs(t)?m0:Ai.current,n=t.contextTypes,s=(n=n!=null)?s2(e,a):ah),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=WV,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=s),t}function Vce(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&WV.enqueueReplaceState(t,t.state,null)}function NJ(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},nae(e);var s=t.contextType;typeof s=="object"&&s!==null?a.context=wo(s):(s=vs(t)?m0:Ai.current,a.context=s2(e,s)),a.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(CJ(e,t,s,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&WV.enqueueReplaceState(a,a.state,null),_q(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function u2(e,t){try{var r="",n=t;do r+=b7e(n),n=n.return;while(n);var a=r}catch(s){a=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:a,digest:null}}function QK(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function TJ(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var GLe=typeof WeakMap=="function"?WeakMap:Map;function Lbe(e,t,r){r=uu(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Nq||(Nq=!0,$J=n),TJ(e,t)},r}function Obe(e,t,r){r=uu(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){TJ(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){TJ(e,t),typeof n!="function"&&(Bd===null?Bd=new Set([this]):Bd.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Wce(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new GLe;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=o9e.bind(null,e,t,r),t.then(e,e))}function Gce(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Kce(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=uu(-1,1),t.tag=2,$d(r,t,1))),r.lanes|=1),e)}var KLe=Pu.ReactCurrentOwner,fs=!1;function Ui(e,t,r,n){t.child=e===null?ube(t,null,r,n):l2(t,e.child,r,n)}function Yce(e,t,r,n,a){r=r.render;var s=t.ref;return hy(t,a),n=lae(e,t,r,n,s,a),r=cae(),e!==null&&!fs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,_u(e,t,a)):(En&&r&&Xne(t),t.flags|=1,Ui(e,t,n,a),t.child)}function Xce(e,t,r,n,a){if(e===null){var s=r.type;return typeof s=="function"&&!xae(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,Rbe(e,t,s,n,a)):(e=CS(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&a)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:ek,r(o,n)&&e.ref===t.ref)return _u(e,t,a)}return t.flags|=1,e=Ud(s,n),e.ref=t.ref,e.return=t,t.child=e}function Rbe(e,t,r,n,a){if(e!==null){var s=e.memoizedProps;if(ek(s,n)&&e.ref===t.ref)if(fs=!1,t.pendingProps=n=s,(e.lanes&a)!==0)e.flags&131072&&(fs=!0);else return t.lanes=e.lanes,_u(e,t,a)}return AJ(e,t,r,n,a)}function Dbe(e,t,r){var n=t.pendingProps,a=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},dn(ey,Os),Os|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,dn(ey,Os),Os|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,dn(ey,Os),Os|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,dn(ey,Os),Os|=n;return Ui(e,t,a,r),t.child}function Fbe(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,734 bytes, line 40
40function AJ(e,t,r,n,a){var s=vs(r)?m0:Ai.current;return s=s2(t,s),hy(t,a),r=lae(e,t,r,n,s,a),n=cae(),e!==null&&!fs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,_u(e,t,a)):(En&&n&&Xne(t),t.flags|=1,Ui(e,t,r,a),t.child)}function Zce(e,t,r,n,a){if(vs(r)){var s=!0;vq(t)}else s=!1;if(hy(t,a),t.stateNode===null)SS(e,t),Pbe(t,r,n),NJ(t,r,n,a),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=wo(u):(u=vs(r)?m0:Ai.current,u=s2(t,u));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||c!==u)&&Vce(t,o,n,u),cd=!1;var f=t.memoizedState;o.state=f,_q(t,n,o,a),c=t.memoizedState,l!==n||f!==c||ys.current||cd?(typeof d=="function"&&(CJ(t,r,d,n),c=t.memoizedState),(l=cd||Hce(t,r,l,n,f,c,u))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),o.props=n,o.state=c,o.context=u,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,hbe(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Go(t.type,l),o.props=u,h=t.pendingProps,f=o.context,c=r.contextType,typeof c=="object"&&c!==null?c=wo(c):(c=vs(r)?m0:Ai.current,c=s2(t,c));var p=r.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==c)&&Vce(t,o,n,c),cd=!1,f=t.memoizedState,o.state=f,_q(t,n,o,a);var y=t.memoizedState;l!==h||f!==y||ys.current||cd?(typeof p=="function"&&(CJ(t,r,p,n),y=t.memoizedState),(u=cd||Hce(t,r,u,n,f,y,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,y,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,y,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=y),o.props=n,o.state=y,o.context=c,n=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return MJ(e,t,r,n,s,a)}function MJ(e,t,r,n,a,s){Fbe(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return a&&Rce(t,r,!1),_u(e,t,s);n=t.stateNode,KLe.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=l2(t,e.child,null,s),t.child=l2(t,null,l,s)):Ui(e,t,l,s),t.memoizedState=n.state,a&&Rce(t,r,!0),t.child}function $be(e){var t=e.stateNode;t.pendingContext?Oce(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Oce(e,t.context,!1),aae(e,t.containerInfo)}function Qce(e,t,r,n,a){return o2(),Qne(a),t.flags|=256,Ui(e,t,r,n),t.child}var IJ={dehydrated:null,treeContext:null,retryLane:0};function PJ(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bbe(e,t,r){var n=t.pendingProps,a=Mn.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),dn(Mn,a&1),e===null)return jJ(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,s?(n=t.mode,s=t.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=YV(o,n,0,null),e=J1(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=PJ(r),t.memoizedState=IJ,e):hae(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return YLe(e,t,o,n,l,a,r);if(s){s=n.fallback,o=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:n.children};return!(o&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=Ud(a,c),n.subtreeFlags=a.subtreeFlags&14680064),l!==null?s=Ud(l,s):(s=J1(s,o,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,o=e.child.memoizedState,o=o===null?PJ(r):{base
vendor: 8,957 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=IJ,n}return s=e.child,e=s.sibling,n=Ud(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function hae(e,t){return t=YV({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function e3(e,t,r,n){return n!==null&&Qne(n),l2(t,e.child,null,r),e=hae(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function YLe(e,t,r,n,a,s,o){if(r)return t.flags&256?(t.flags&=-257,n=QK(Error(Qe(422))),e3(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,a=t.mode,n=YV({mode:"visible",children:n.children},a,0,null),s=J1(s,a,o,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&l2(t,e.child,null,o),t.child.memoizedState=PJ(o),t.memoizedState=IJ,s);if(!(t.mode&1))return e3(e,t,o,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,s=Error(Qe(419)),n=QK(s,n,void 0),e3(e,t,o,n)}if(l=(o&e.childLanes)!==0,fs||l){if(n=Ja,n!==null){switch(o&-o){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|o)?0:a,a!==0&&a!==s.retryLane&&(s.retryLane=a,ku(e,a),yl(n,e,a,-1))}return vae(),n=QK(Error(Qe(421))),e3(e,t,o,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=l9e.bind(null,e),a._reactRetry=t,null):(e=s.treeContext,Us=Fd(a.nextSibling),Hs=t,En=!0,el=null,e!==null&&(lo[co++]=ru,lo[co++]=nu,lo[co++]=g0,ru=e.id,nu=e.overflow,g0=t),t=hae(t,n.children),t.flags|=4096,t)}function Jce(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),EJ(e.return,t,r)}function JK(e,t,r,n,a){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=a)}function zbe(e,t,r){var n=t.pendingProps,a=n.revealOrder,s=n.tail;if(Ui(e,t,n.children,r),n=Mn.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jce(e,r,t);else if(e.tag===19)Jce(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(dn(Mn,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Sq(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),JK(t,!1,a,r,s);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Sq(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}JK(t,!0,r,null,s);break;case"together":JK(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function SS(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _u(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),v0|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Qe(153));if(t.child!==null){for(e=t.child,r=Ud(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ud(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function XLe(e,t,r){switch(t.tag){case 3:$be(t),o2();break;case 5:fbe(t);break;case 1:vs(t.type)&&vq(t);break;case 4:aae(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;dn(wq,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(dn(Mn,Mn.current&1),t.flags|=128,null):r&t.child.childLanes?Bbe(e,t,r):(dn(Mn,Mn.current&1),e=_u(e,t,r),e!==null?e.sibling:null);dn(Mn,Mn.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return zbe(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),dn(Mn,Mn.current),n)break;return null;case 22:case 23:return t.lanes=0,Dbe(e,t,r)}return _u(e,t,r)}var Ube,LJ,qbe,Hbe;Ube=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};LJ=function(){};qbe=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,I1(ac.current);var s=null;switch(r){case"input":a=rJ(e,a),n=rJ(e,n),s=[];break;case"select":a=Ln({},a,{value:void 0}),n=Ln({},n,{value:void 0}),s=[];break;case"textarea":a=iJ(e,a),n=iJ(e,n),s=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=gq)}oJ(r,n);var o;r=null;for(u in a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Gw.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in n){var c=n[u];if(l=a!=null?a[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(s||(s=[]),s.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Gw.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&gn("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}r&&(s=s||[]).push("style",r);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Hbe=function(e,t,r,n){r!==n&&(t.flags|=4)};function bx(e,t){if(!En)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function gi(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function ZLe(e,t,r){var n=t.pendingProps;switch(Zne(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gi(t),null;case 1:return vs(t.type)&&yq(),gi(t),null;case 3:return n=t.stateNode,c2(),kn(ys),kn(Ai),sae(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Q4(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,el!==null&&(UJ(el),el=null))),LJ(e,t),gi(t),null;case 5:iae(t);var a=I1(ik.current);if(r=t.type,e!==null&&t.stateNode!=null)qbe(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Qe(166));return gi(t),null}if(e=I1(ac.current),Q4(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[Gl]=t,n[nk]=s,e=(t.mode&1)!==0,r){case"dialog":gn("cancel",n),gn("close",n);break;case"iframe":case"object":case"embed":gn("load",n);break;case"video":case"audio":for(a=0;a<hb.length;a++)gn(hb[a],n);break;case"source":gn("error",n);break;case"img":case"image":case"link":gn("error",n),gn("load",n);break;case"details":gn("toggle",n);break;case"input":lce(n,s),gn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},gn("invalid",n);break;case"textarea":uce(n,s),gn("invalid",n)}oJ(r,s),a=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?n.textContent!==l&&(s.suppressHydrationWarning!==!0&&Z4(n.textContent,l,e),a=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Z4(n.textContent,l,e),a=["children",""+l]):Gw.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&gn("scroll",n)}switch(r){case"input":q4(n),cce(n,s,!0);break;case"textarea":q4(n),dce(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=gq)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vxe(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Gl]=t,e[nk]=n,Ube(e,t,!1,!1),t.stateNode=e;e:{switch(o=lJ(r,n),r){case"dialog":gn("cancel",e),gn("close",e),a=n;break;case"iframe":case"object":case"embed":gn("load",e),a=n;break;case"video":case"audio":for(a=0;a<hb.length;a++)gn(hb[a],e);a=n;break;case"source":gn("error",e),a=n;break;case"img":case"image":case"link":gn("error",e),gn("load",e),a=n;break;case"details":gn("toggle",e),a=n;break;case"input":lce(e,n),a=rJ(e,n),gn("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=Ln({},n,{value:void 0}),gn("invalid",e);break;case"textarea":uce(e,n),a=iJ(e,n),gn("invalid",e);break;default:a=n}oJ(r,a),l=a;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?wxe(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&xxe(e,c)):s==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Kw(e,c):typeof c=="number"&&Kw(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Gw.hasOwnProperty(s)?c!=null&&s==="onScroll"&&gn("scroll",e):c!=null&&Rne(e,s,c,o))}switch(r){case"input":q4(e),cce(e,n,!1);break;case"textarea":q4(e),dce(e);break;case"option":n.value!=null&&e.setAttribute("value",""+nh(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?ly(e,!!n.multiple,s,!1):n.defaultValue!=null&&ly(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=gq)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return gi(t),null;case 6:if(e&&t.stateNode!=null)Hbe(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Qe(166));if(r=I1(ik.current),I1(ac.current),Q4(t)){if(n=t.stateNode,r=t.memoizedProps,n[Gl]=t,(s=n.nodeValue!==r)&&(e=Hs,e!==null))switch(e.tag){case 3:Z4(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Z4(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Gl]=t,t.stateNode=n}return gi(t),null;case 13:if(kn(Mn),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(En&&Us!==null&&t.mode&1&&!(t.flags&128))lbe(),o2(),t.flags|=98560,s=!1;else if(s=Q4(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(Qe(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Qe(317));s[Gl]=t}else o2(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gi(t),s=!1}else el!==null&&(UJ(el),el=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Mn.current&1?La===0&&(La=3):vae())),t.updateQueue!==null&&(t.flags|=4),gi(t),null);case 4:return c2(),LJ(e,t),e===null&&tk(t.stateNode.containerInfo),gi(t),null;case 10:return tae(t.type._context),gi(t),null;case 17:return vs(t.type)&&yq(),gi(t),null;case 19:if(kn(Mn),s=t.memoizedState,s===null)return gi(t),null;if(n=(t.flags&128)!==0,o=s.rendering,o===null)if(n)bx(s,!1);else{if(La!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Sq(e),o!==null){for(t.flags|=128,bx(s,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return dn(Mn,Mn.current&1|2),t.child}e=e.sibling}s.tail!==null&&Xn()>d2&&(t.flags|=128,n=!0,bx(s,!1),t.lanes=4194304)}else{if(!n)if(e=Sq(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),bx(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!En)return gi(t),null}else 2*Xn()-s.renderingStartTime>d2&&r!==1073741824&&(t.flags|=128,n=!0,bx(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Xn(),t.sibling=null,r=Mn.current,dn(Mn,n?r&1|2:r&1),t):(gi(t),null);case 22:case 23:return yae(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Os&1073741824&&(gi(t),t.subtreeFlags&6&&(t.flags|=8192)):gi(t),null;case 24:return null;case 25:return null}throw Error(Qe(156,t.tag))}function QLe(e,t){switch(Zne(t),t.tag){case 1:return vs(t.type)&&yq(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 27,162 bytes, line 40
40case 3:return c2(),kn(ys),kn(Ai),sae(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iae(t),null;case 13:if(kn(Mn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Qe(340));o2()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return kn(Mn),null;case 4:return c2(),null;case 10:return tae(t.type._context),null;case 22:case 23:return yae(),null;case 24:return null;default:return null}}var t3=!1,_i=!1,JLe=typeof WeakSet=="function"?WeakSet:Set,Et=null;function Jg(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){qn(e,t,n)}else r.current=null}function OJ(e,t,r){try{r()}catch(n){qn(e,t,n)}}var eue=!1;function e9e(e,t){if(vJ=fq,e=Yxe(),Yne(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==r||a!==0&&h.nodeType!==3||(l=o+a),h!==s||n!==0&&h.nodeType!==3||(c=o+n),h.nodeType===3&&(o+=h.nodeValue.length),(p=h.firstChild)!==null;)f=h,h=p;for(;;){if(h===e)break t;if(f===r&&++u===a&&(l=o),f===s&&++d===n&&(c=o),(p=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=p}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(xJ={focusedElem:e,selectionRange:r},fq=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){t=Et;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,v=y.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Go(t.type,m),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Qe(163))}}catch(_){qn(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Et=e;break}Et=t.return}return y=eue,eue=!1,y}function Rb(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var s=a.destroy;a.destroy=void 0,s!==void 0&&OJ(t,r,s)}a=a.next}while(a!==n)}}function GV(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function RJ(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Vbe(e){var t=e.alternate;t!==null&&(e.alternate=null,Vbe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gl],delete t[nk],delete t[kJ],delete t[RLe],delete t[DLe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wbe(e){return e.tag===5||e.tag===3||e.tag===4}function tue(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wbe(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function DJ(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=gq));else if(n!==4&&(e=e.child,e!==null))for(DJ(e,t,r),e=e.sibling;e!==null;)DJ(e,t,r),e=e.sibling}function FJ(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(FJ(e,t,r),e=e.sibling;e!==null;)FJ(e,t,r),e=e.sibling}var ai=null,Zo=!1;function Gu(e,t,r){for(r=r.child;r!==null;)Gbe(e,t,r),r=r.sibling}function Gbe(e,t,r){if(nc&&typeof nc.onCommitFiberUnmount=="function")try{nc.onCommitFiberUnmount($V,r)}catch{}switch(r.tag){case 5:_i||Jg(r,t);case 6:var n=ai,a=Zo;ai=null,Gu(e,t,r),ai=n,Zo=a,ai!==null&&(Zo?(e=ai,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ai.removeChild(r.stateNode));break;case 18:ai!==null&&(Zo?(e=ai,r=r.stateNode,e.nodeType===8?WK(e.parentNode,r):e.nodeType===1&&WK(e,r),Qw(e)):WK(ai,r.stateNode));break;case 4:n=ai,a=Zo,ai=r.stateNode.containerInfo,Zo=!0,Gu(e,t,r),ai=n,Zo=a;break;case 0:case 11:case 14:case 15:if(!_i&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var s=a,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&OJ(r,t,o),a=a.next}while(a!==n)}Gu(e,t,r);break;case 1:if(!_i&&(Jg(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){qn(r,t,l)}Gu(e,t,r);break;case 21:Gu(e,t,r);break;case 22:r.mode&1?(_i=(n=_i)||r.memoizedState!==null,Gu(e,t,r),_i=n):Gu(e,t,r);break;default:Gu(e,t,r)}}function rue(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new JLe),t.forEach(function(n){var a=c9e.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Do(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:ai=l.stateNode,Zo=!1;break e;case 3:ai=l.stateNode.containerInfo,Zo=!0;break e;case 4:ai=l.stateNode.containerInfo,Zo=!0;break e}l=l.return}if(ai===null)throw Error(Qe(160));Gbe(s,o,a),ai=null,Zo=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(u){qn(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Kbe(t,e),t=t.sibling}function Kbe(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Do(t,e),Ml(e),n&4){try{Rb(3,e,e.return),GV(3,e)}catch(m){qn(e,e.return,m)}try{Rb(5,e,e.return)}catch(m){qn(e,e.return,m)}}break;case 1:Do(t,e),Ml(e),n&512&&r!==null&&Jg(r,r.return);break;case 5:if(Do(t,e),Ml(e),n&512&&r!==null&&Jg(r,r.return),e.flags&32){var a=e.stateNode;try{Kw(a,"")}catch(m){qn(e,e.return,m)}}if(n&4&&(a=e.stateNode,a!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&gxe(a,s),lJ(l,o);var u=lJ(l,s);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];d==="style"?wxe(a,h):d==="dangerouslySetInnerHTML"?xxe(a,h):d==="children"?Kw(a,h):Rne(a,d,h,u)}switch(l){case"input":nJ(a,s);break;case"textarea":yxe(a,s);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?ly(a,!!s.multiple,p,!1):f!==!!s.multiple&&(s.defaultValue!=null?ly(a,!!s.multiple,s.defaultValue,!0):ly(a,!!s.multiple,s.multiple?[]:"",!1))}a[nk]=s}catch(m){qn(e,e.return,m)}}break;case 6:if(Do(t,e),Ml(e),n&4){if(e.stateNode===null)throw Error(Qe(162));a=e.stateNode,s=e.memoizedProps;try{a.nodeValue=s}catch(m){qn(e,e.return,m)}}break;case 3:if(Do(t,e),Ml(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Qw(t.containerInfo)}catch(m){qn(e,e.return,m)}break;case 4:Do(t,e),Ml(e);break;case 13:Do(t,e),Ml(e),a=e.child,a.flags&8192&&(s=a.memoizedState!==null,a.stateNode.isHidden=s,!s||a.alternate!==null&&a.alternate.memoizedState!==null||(mae=Xn())),n&4&&rue(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(_i=(u=_i)||d,Do(t,e),_i=u):Do(t,e),Ml(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Et=e,d=e.child;d!==null;){for(h=Et=d;Et!==null;){switch(f=Et,p=f.child,f.tag){case 0:case 11:case 14:case 15:Rb(4,f,f.return);break;case 1:Jg(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){qn(n,r,m)}}break;case 5:Jg(f,f.return);break;case 22:if(f.memoizedState!==null){aue(h);continue}}p!==null?(p.return=f,Et=p):aue(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{a=h.stateNode,u?(s=a.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=bxe("display",o))}catch(m){qn(e,e.return,m)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){qn(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Do(t,e),Ml(e),n&4&&rue(e);break;case 21:break;default:Do(t,e),Ml(e)}}function Ml(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Wbe(r)){var n=r;break e}r=r.return}throw Error(Qe(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(Kw(a,""),n.flags&=-33);var s=tue(e);FJ(e,s,a);break;case 3:case 4:var o=n.stateNode.containerInfo,l=tue(e);DJ(e,l,o);break;default:throw Error(Qe(161))}}catch(c){qn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function t9e(e,t,r){Et=e,Ybe(e)}function Ybe(e,t,r){for(var n=(e.mode&1)!==0;Et!==null;){var a=Et,s=a.child;if(a.tag===22&&n){var o=a.memoizedState!==null||t3;if(!o){var l=a.alternate,c=l!==null&&l.memoizedState!==null||_i;l=t3;var u=_i;if(t3=o,(_i=c)&&!u)for(Et=a;Et!==null;)o=Et,c=o.child,o.tag===22&&o.memoizedState!==null?iue(a):c!==null?(c.return=o,Et=c):iue(a);for(;s!==null;)Et=s,Ybe(s),s=s.sibling;Et=a,t3=l,_i=u}nue(e)}else a.subtreeFlags&8772&&s!==null?(s.return=a,Et=s):nue(e)}}function nue(e){for(;Et!==null;){var t=Et;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_i||GV(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!_i)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Go(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&zce(t,s,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}zce(t,o,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Qw(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Qe(163))}_i||t.flags&512&&RJ(t)}catch(f){qn(t,t.return,f)}}if(t===e){Et=null;break}if(r=t.sibling,r!==null){r.return=t.return,Et=r;break}Et=t.return}}function aue(e){for(;Et!==null;){var t=Et;if(t===e){Et=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Et=r;break}Et=t.return}}function iue(e){for(;Et!==null;){var t=Et;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{GV(4,t)}catch(c){qn(t,r,c)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(c){qn(t,a,c)}}var s=t.return;try{RJ(t)}catch(c){qn(t,s,c)}break;case 5:var o=t.return;try{RJ(t)}catch(c){qn(t,o,c)}}}catch(c){qn(t,t.return,c)}if(t===e){Et=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Et=l;break}Et=t.return}}var r9e=Math.ceil,Cq=Pu.ReactCurrentDispatcher,fae=Pu.ReactCurrentOwner,mo=Pu.ReactCurrentBatchConfig,Ar=0,Ja=null,da=null,di=0,Os=0,ey=fh(0),La=0,ck=null,v0=0,KV=0,pae=0,Db=null,us=null,mae=0,d2=1/0,Uc=null,Nq=!1,$J=null,Bd=null,r3=!1,Td=null,Tq=0,Fb=0,BJ=null,jS=-1,ES=0;function Yi(){return Ar&6?Xn():jS!==-1?jS:jS=Xn()}function zd(e){return e.mode&1?Ar&2&&di!==0?di&-di:$Le.transition!==null?(ES===0&&(ES=Pxe()),ES):(e=Yr,e!==0||(e=window.event,e=e===void 0?16:Bxe(e.type)),e):1}function yl(e,t,r,n){if(50<Fb)throw Fb=0,BJ=null,Error(Qe(185));E_(e,r,n),(!(Ar&2)||e!==Ja)&&(e===Ja&&(!(Ar&2)&&(KV|=r),La===4&&md(e,di)),xs(e,n),r===1&&Ar===0&&!(t.mode&1)&&(d2=Xn()+500,HV&&ph()))}function xs(e,t){var r=e.callbackNode;$7e(e,t);var n=hq(e,e===Ja?di:0);if(n===0)r!==null&&pce(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&pce(r),t===1)e.tag===0?FLe(sue.bind(null,e)):ibe(sue.bind(null,e)),LLe(function(){!(Ar&6)&&ph()}),r=null;else{switch(Lxe(n)){case 1:r=zne;break;case 4:r=Mxe;break;case 16:r=dq;break;case 536870912:r=Ixe;break;default:r=dq}r=nwe(r,Xbe.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Xbe(e,t){if(jS=-1,ES=0,Ar&6)throw Error(Qe(327));var r=e.callbackNode;if(fy()&&e.callbackNode!==r)return null;var n=hq(e,e===Ja?di:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Aq(e,n);else{t=n;var a=Ar;Ar|=2;var s=Qbe();(Ja!==e||di!==t)&&(Uc=null,d2=Xn()+500,Q1(e,t));do try{i9e();break}catch(l){Zbe(e,l)}while(!0);eae(),Cq.current=s,Ar=a,da!==null?t=0:(Ja=null,di=0,t=La)}if(t!==0){if(t===2&&(a=fJ(e),a!==0&&(n=a,t=zJ(e,a))),t===1)throw r=ck,Q1(e,0),md(e,n),xs(e,Xn()),r;if(t===6)md(e,n);else{if(a=e.current.alternate,!(n&30)&&!n9e(a)&&(t=Aq(e,n),t===2&&(s=fJ(e),s!==0&&(n=s,t=zJ(e,s))),t===1))throw r=ck,Q1(e,0),md(e,n),xs(e,Xn()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(Qe(345));case 2:rf(e,us,Uc);break;case 3:if(md(e,n),(n&130023424)===n&&(t=mae+500-Xn(),10<t)){if(hq(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Yi(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=wJ(rf.bind(null,e,us,Uc),t);break}rf(e,us,Uc);break;case 4:if(md(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var o=31-gl(n);s=1<<o,o=t[o],o>a&&(a=o),n&=~s}if(n=a,n=Xn()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*r9e(n/1960))-n,10<n){e.timeoutHandle=wJ(rf.bind(null,e,us,Uc),n);break}rf(e,us,Uc);break;case 5:rf(e,us,Uc);break;default:throw Error(Qe(329))}}}return xs(e,Xn()),e.callbackNode===r?Xbe.bind(null,e):null}function zJ(e,t){var r=Db;return e.current.memoizedState.isDehydrated&&(Q1(e,t).flags|=256),e=Aq(e,t),e!==2&&(t=us,us=r,t!==null&&UJ(t)),e}function UJ(e){us===null?us=e:us.push.apply(us,e)}function n9e(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],s=a.getSnapshot;a=a.value;try{if(!_l(s(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function md(e,t){for(t&=~pae,t&=~KV,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-gl(t),n=1<<r;e[r]=-1,t&=~n}}function sue(e){if(Ar&6)throw Error(Qe(327));fy();var t=hq(e,0);if(!(t&1))return xs(e,Xn()),null;var r=Aq(e,t);if(e.tag!==0&&r===2){var n=fJ(e);n!==0&&(t=n,r=zJ(e,n))}if(r===1)throw r=ck,Q1(e,0),md(e,t),xs(e,Xn()),r;if(r===6)throw Error(Qe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rf(e,us,Uc),xs(e,Xn()),null}function gae(e,t){var r=Ar;Ar|=1;try{return e(t)}finally{Ar=r,Ar===0&&(d2=Xn()+500,HV&&ph())}}function x0(e){Td!==null&&Td.tag===0&&!(Ar&6)&&fy();var t=Ar;Ar|=1;var r=mo.transition,n=Yr;try{if(mo.transition=null,Yr=1,e)return e()}finally{Yr=n,mo.transition=r,Ar=t,!(Ar&6)&&ph()}}function yae(){Os=ey.current,kn(ey)}function Q1(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,PLe(r)),da!==null)for(r=da.return;r!==null;){var n=r;switch(Zne(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&yq();break;case 3:c2(),kn(ys),kn(Ai),sae();break;case 5:iae(n);break;case 4:c2();break;case 13:kn(Mn);break;case 19:kn(Mn);break;case 10:tae(n.type._context);break;case 22:case 23:yae()}r=r.return}if(Ja=e,da=e=Ud(e.current,null),di=Os=t,La=0,ck=null,pae=KV=v0=0,us=Db=null,M1!==null){for(t=0;t<M1.length;t++)if(r=M1[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=a,n.next=o}r.pending=n}M1=null}return e}function Zbe(e,t){do{var r=da;try{if(eae(),kS.current=Eq,jq){for(var n=Pn.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}jq=!1}if(y0=0,Ka=Ma=Pn=null,Ob=!1,sk=0,fae.current=null,r===null||r.return===null){La=1,ck=t,da=null;break}e:{var s=e,o=r.return,l=r,c=t;if(t=di,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Gce(o);if(p!==null){p.flags&=-257,Kce(p,o,l,s,t),p.mode&1&&Wce(s,u,t),t=p,c=u;var y=t.updateQueue;if(y===null){var m=new Set;m.add(c),t.updateQueue=m}else y.add(c);break e}else{if(!(t&1)){Wce(s,u,t),vae();break e}c=Error(Qe(426))}}else if(En&&l.mode&1){var v=Gce(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),Kce(v,o,l,s,t),Qne(u2(c,l));break e}}s=c=u2(c,l),La!==4&&(La=2),Db===null?Db=[s]:Db.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=Lbe(s,c,t);Bce(s,g);break e;case 1:l=c;var b=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Bd===null||!Bd.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var _=Obe(s,l,t);Bce(s,_);break e}}s=s.return}while(s!==null)}ewe(r)}catch(w){t=w,da===r&&r!==null&&(da=r=r.return);continue}break}while(!0)}function Qbe(){var e=Cq.current;return Cq.current=Eq,e===null?Eq:e}function vae(){(La===0||La===3||La===2)&&(La=4),Ja===null||!(v0&268435455)&&!(KV&268435455)||md(Ja,di)}function Aq(e,t){var r=Ar;Ar|=2;var n=Qbe();(Ja!==e||di!==t)&&(Uc=null,Q1(e,t));do try{a9e();break}catch(a){Zbe(e,a)}while(!0);if(eae(),Ar=r,Cq.current=n,da!==null)throw Error(Qe(261));return Ja=null,di=0,La}function a9e(){for(;da!==null;)Jbe(da)}function i9e(){for(;da!==null&&!A7e();)Jbe(da)}function Jbe(e){var t=rwe(e.alternate,e,Os);e.memoizedProps=e.pendingProps,t===null?ewe(e):da=t,fae.current=null}function ewe(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=QLe(r,t),r!==null){r.flags&=32767,da=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{La=6,da=null;return}}else if(r=ZLe(r,t,Os),r!==null){da=r;return}if(t=t.sibling,t!==null){da=t;return}da=t=e}while(t!==null);La===0&&(La=5)}function rf(e,t,r){var n=Yr,a=mo.transition;try{mo.transition=null,Yr=1,s9e(e,t,r,n)}finally{mo.transition=a,Yr=n}return null}function s9e(e,t,r,n){do fy();while(Td!==null);if(Ar&6)throw Error(Qe(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Qe(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(B7e(e,s),e===Ja&&(da=Ja=null,di=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||r3||(r3=!0,nwe(dq,function(){return fy(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=mo.transition,mo.transition=null;var o=Yr;Yr=1;var l=Ar;Ar|=4,fae.current=null,e9e(e,r),Kbe(r,e),ELe(xJ),fq=!!vJ,xJ=vJ=null,e.current=r,t9e(r),M7e(),Ar=l,Yr=o,mo.transition=s}else e.current=r;if(r3&&(r3=!1,Td=e,Tq=a),s=e.pendingLanes,s===0&&(Bd=null),L7e(r.stateNode),xs(e,Xn()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(Nq)throw Nq=!1,e=$J,$J=null,e;return Tq&1&&e.tag!==0&&fy(),s=e.pendingLanes,s&1?e===BJ?Fb++:(Fb=0,BJ=e):Fb=0,ph(),null}function fy(){if(Td!==null){var e=Lxe(Tq),t=mo.transition,r=Yr;try{if(mo.transition=null,Yr=16>e?16:e,Td===null)var n=!1;else{if(e=Td,Td=null,Tq=0,Ar&6)throw Error(Qe(331));var a=Ar;for(Ar|=4,Et=e.current;Et!==null;){var s=Et,o=s.child;if(Et.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(Et=u;Et!==null;){var d=Et;switch(d.tag){case 0:case 11:case 15:Rb(8,d,s)}var h=d.child;if(h!==null)h.return=d,Et=h;else for(;Et!==null;){d=Et;var f=d.sibling,p=d.return;if(Vbe(d),d===u){Et=null;break}if(f!==null){f.return=p,Et=f;break}Et=p}}}var y=s.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(m!==null)}}Et=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,Et=o;else e:for(;Et!==null;){if(s=Et,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Rb(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,Et=g;break e}Et=s.return}}var b=e.current;for(Et=b;Et!==null;){o=Et;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,Et=x;else e:for(o=b;Et!==null;){if(l=Et,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:GV(9,l)}}catch(w){qn(l,l.return,w)}if(l===o){Et=null;break e}var _=l.sibling;if(_!==null){_.return=l.return,Et=_;break e}Et=l.return}}if(Ar=a,ph(),nc&&typeof nc.onPostCommitFiberRoot=="function")try{nc.onPostCommitFiberRoot($V,e)}catch{}n=!0}return n}finally{Yr=r,mo.transition=t}}return!1}function oue(e,t,r){t=u2(r,t),t=Lbe(e,t,1),e=$d(e,t,1),t=Yi(),e!==null&&(E_(e,1,t),xs(e,t))}function qn(e,t,r){if(e.tag===3)oue(e,e,r);else for(;t!==null;){if(t.tag===3){oue(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Bd===null||!Bd.has(n))){e=u2(r,e),e=Obe(t,e,1),t=$d(t,e,1),e=Yi(),t!==null&&(E_(t,1,e),xs(t,e));break}}t=t.return}}function o9e(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Yi(),e.pingedLanes|=e.suspendedLanes&r,Ja===e&&(di&r)===r&&(La===4||La===3&&(di&130023424)===di&&500>Xn()-mae?Q1(e,0):pae|=r),xs(e,t)}function twe(e,t){t===0&&(e.mode&1?(t=W4,W4<<=1,!(W4&130023424)&&(W4=4194304)):t=1);var r=Yi();e=ku(e,t),e!==null&&(E_(e,t,r),xs(e,r))}function l9e(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),twe(e,r)}function c9e(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Qe(314))}n!==null&&n.delete(t),twe(e,r)}var rwe;rwe=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ys.current)fs=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return fs=!1,XLe(e,t,r);fs=!!(e.flags&131072)}else fs=!1,En&&t.flags&1048576&&sbe(t,bq,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;SS(e,t),e=t.pendingProps;var a=s2(t,Ai.current);hy(t,r),a=lae(null,t,n,e,a,r);var s=cae();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vs(n)?(s=!0,vq(t)):s=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,nae(t),a.updater=WV,t.stateNode=a,a._reactInternals=t,NJ(t,n,e,r),t=MJ(null,t,n,!0,s,r)):(t.tag=0,En&&s&&Xne(t),Ui(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(SS(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=d9e(n),e=Go(n,e),a){case 0:t=AJ(null,t,n,e,r);break e;case 1:t=Zce(null,t,n,e,r);break e;case 11:t=Yce(null,t,n,e,r);break e;case 14:t=Xce(null,t,n,Go(n.type,e),r);break e}throw Error(Qe(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Go(n,a),AJ(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Go(n,a),Zce(e,t,n,a,r);case 3:e:{if($be(t),e===null)throw Error(Qe(387));n=t.pendingProps,s=t.memoizedState,a=s.element,hbe(e,t),_q(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){a=u2(Error(Qe(423)),t),t=Qce(e,t,n,r,a);break e}else if(n!==a){a=u2(Error(Qe(424)),t),t=Qce(e,t,n,r,a);break e}else for(Us=Fd(t.stateNode.containerInfo.firstChild),Hs=t,En=!0,el=null,r=ube(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(o2(),n===a){t=_u(e,t,r);break e}Ui(e,t,n,r)}t=t.child}return t;case 5:return fbe(t),e===null&&jJ(t),n=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,o=a.children,bJ(n,a)?o=null:s!==null&&bJ(n,s)&&(t.flags|=32),Fbe(e,t),Ui(e,t,o,r),t.child;case 6:return e===null&&jJ(t),null;case 13:return Bbe(e,t,r);case 4:return aae(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=l2(t,null,n,r):Ui(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Go(n,a),Yce(e,t,n,a,r);case 7:return Ui(e,t,t.pendingProps,r),t.child;case 8:return Ui(e,t,t.pendingProps.children,r),t.child;case 12:return Ui(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value,dn(wq,n._currentValue),n._currentValue=o,s!==null)if(_l(s.value,o)){if(s.children===a.children&&!ys.current){t=_u(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(s.tag===1){c=uu(-1,r&-r),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=r,c=s.alternate,c!==null&&(c.lanes|=r),EJ(s.return,r,t),l.lanes|=r;break}c=c.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(Qe(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),EJ(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ui(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,hy(t,r),a=wo(a),n=n(a),t.flags|=1,Ui(e,t,n,r),t.child;case 14:return n=t.type,a=Go(n,t.pendingProps),a=Go(n.type,a),Xce(e,t,n,a,r);case 15:return Rbe(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Go(n,a),SS(e,t),t.tag=1,vs(n)?(e=!0,vq(t)):e=!1,hy(t,r),Pbe(t,n,a),NJ(t,n,a,r),MJ(null,t,n,!0,e,r);case 19:return zbe(e,t,r);case 22:return Dbe(e,t,r)}throw Error(Qe(156,t.tag))};function nwe(e,t){return Axe(e,t)}function u9e(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fo(e,t,r,n){return new u9e(e,t,r,n)}function xae(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d9e(e){if(typeof e=="function")return xae(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fne)return 11;if(e===$ne)return 14}return 2}function Ud(e,t){var r=e.alternate;return r===null?(r=fo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.depen
vendor: 9,033 bytes, line 40
40dencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function CS(e,t,r,n,a,s){var o=2;if(n=e,typeof e=="function")xae(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Hg:return J1(r.children,a,s,t);case Dne:o=8,a|=8;break;case QQ:return e=fo(12,r,t,a|2),e.elementType=QQ,e.lanes=s,e;case JQ:return e=fo(13,r,t,a),e.elementType=JQ,e.lanes=s,e;case eJ:return e=fo(19,r,t,a),e.elementType=eJ,e.lanes=s,e;case fxe:return YV(r,a,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dxe:o=10;break e;case hxe:o=9;break e;case Fne:o=11;break e;case $ne:o=14;break e;case ld:o=16,n=null;break e}throw Error(Qe(130,e==null?e:typeof e,""))}return t=fo(o,r,t,a),t.elementType=e,t.type=n,t.lanes=s,t}function J1(e,t,r,n){return e=fo(7,e,n,t),e.lanes=r,e}function YV(e,t,r,n){return e=fo(22,e,n,t),e.elementType=fxe,e.lanes=r,e.stateNode={isHidden:!1},e}function eY(e,t,r){return e=fo(6,e,null,t),e.lanes=r,e}function tY(e,t,r){return t=fo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function h9e(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OK(0),this.expirationTimes=OK(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OK(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function bae(e,t,r,n,a,s,o,l,c){return e=new h9e(e,t,r,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=fo(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nae(s),e}function f9e(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qg,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function awe(e){if(!e)return ah;e=e._reactInternals;e:{if($0(e)!==e||e.tag!==1)throw Error(Qe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(vs(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Qe(171))}if(e.tag===1){var r=e.type;if(vs(r))return abe(e,r,t)}return t}function iwe(e,t,r,n,a,s,o,l,c){return e=bae(r,n,!0,e,a,s,o,l,c),e.context=awe(null),r=e.current,n=Yi(),a=zd(r),s=uu(n,a),s.callback=t??null,$d(r,s,a),e.current.lanes=a,E_(e,a,n),xs(e,n),e}function XV(e,t,r,n){var a=t.current,s=Yi(),o=zd(a);return r=awe(r),t.context===null?t.context=r:t.pendingContext=r,t=uu(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=$d(a,t,o),e!==null&&(yl(e,a,o,s),wS(e,a,o)),o}function Mq(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function lue(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function wae(e,t){lue(e,t),(e=e.alternate)&&lue(e,t)}function p9e(){return null}var swe=typeof reportError=="function"?reportError:function(e){console.error(e)};function kae(e){this._internalRoot=e}ZV.prototype.render=kae.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Qe(409));XV(e,t,null,null)};ZV.prototype.unmount=kae.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;x0(function(){XV(null,e,null,null)}),t[wu]=null}};function ZV(e){this._internalRoot=e}ZV.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dxe();e={blockedOn:null,target:e,priority:t};for(var r=0;r<pd.length&&t!==0&&t<pd[r].priority;r++);pd.splice(r,0,e),r===0&&$xe(e)}};function _ae(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function QV(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function cue(){}function m9e(e,t,r,n,a){if(a){if(typeof n=="function"){var s=n;n=function(){var u=Mq(o);s.call(u)}}var o=iwe(t,n,e,0,null,!1,!1,"",cue);return e._reactRootContainer=o,e[wu]=o.current,tk(e.nodeType===8?e.parentNode:e),x0(),o}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var l=n;n=function(){var u=Mq(c);l.call(u)}}var c=bae(e,0,!1,null,null,!1,!1,"",cue);return e._reactRootContainer=c,e[wu]=c.current,tk(e.nodeType===8?e.parentNode:e),x0(function(){XV(t,c,r,n)}),c}function JV(e,t,r,n,a){var s=r._reactRootContainer;if(s){var o=s;if(typeof a=="function"){var l=a;a=function(){var c=Mq(o);l.call(c)}}XV(t,o,e,a)}else o=m9e(r,t,e,a,n);return Mq(o)}Oxe=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=db(t.pendingLanes);r!==0&&(Une(t,r|1),xs(t,Xn()),!(Ar&6)&&(d2=Xn()+500,ph()))}break;case 13:x0(function(){var n=ku(e,1);if(n!==null){var a=Yi();yl(n,e,1,a)}}),wae(e,1)}};qne=function(e){if(e.tag===13){var t=ku(e,134217728);if(t!==null){var r=Yi();yl(t,e,134217728,r)}wae(e,134217728)}};Rxe=function(e){if(e.tag===13){var t=zd(e),r=ku(e,t);if(r!==null){var n=Yi();yl(r,e,t,n)}wae(e,t)}};Dxe=function(){return Yr};Fxe=function(e,t){var r=Yr;try{return Yr=e,t()}finally{Yr=r}};uJ=function(e,t,r){switch(t){case"input":if(nJ(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=qV(n);if(!a)throw Error(Qe(90));mxe(n),nJ(n,a)}}}break;case"textarea":yxe(e,r);break;case"select":t=r.value,t!=null&&ly(e,!!r.multiple,t,!1)}};Sxe=gae;jxe=x0;var g9e={usingClientEntryPoint:!1,Events:[N_,Kg,qV,kxe,_xe,gae]},wx={findFiberByHostInstance:A1,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},y9e={bundleType:wx.bundleType,version:wx.version,rendererPackageName:wx.rendererPackageName,rendererConfig:wx.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pu.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Nxe(e),e===null?null:e.stateNode},findFiberByHostInstance:wx.findFiberByHostInstance||p9e,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 n3=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n3.isDisabled&&n3.supportsFiber)try{$V=n3.inject(y9e),nc=n3}catch{}}Ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g9e;Ys.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_ae(t))throw Error(Qe(200));return f9e(e,t,null,r)};Ys.createRoot=function(e,t){if(!_ae(e))throw Error(Qe(299));var r=!1,n="",a=swe;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=bae(e,1,!1,null,null,r,!1,n,a),e[wu]=t.current,tk(e.nodeType===8?e.parentNode:e),new kae(t)};Ys.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Qe(188)):(e=Object.keys(e).join(","),Error(Qe(268,e)));return e=Nxe(t),e=e===null?null:e.stateNode,e};Ys.flushSync=function(e){return x0(e)};Ys.hydrate=function(e,t,r){if(!QV(t))throw Error(Qe(200));return JV(null,e,t,!0,r)};Ys.hydrateRoot=function(e,t,r){if(!_ae(e))throw Error(Qe(405));var n=r!=null&&r.hydratedSources||null,a=!1,s="",o=swe;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=iwe(t,null,e,1,r??null,a,!1,s,o),e[wu]=t.current,tk(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new ZV(t)};Ys.render=function(e,t,r){if(!QV(t))throw Error(Qe(200));return JV(null,e,t,!1,r)};Ys.unmountComponentAtNode=function(e){if(!QV(e))throw Error(Qe(40));return e._reactRootContainer?(x0(function(){JV(null,null,e,!1,function(){e._reactRootContainer=null,e[wu]=null})}),!0):!1};Ys.unstable_batchedUpdates=gae;Ys.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!QV(r))throw Error(Qe(200));if(e==null||e._reactInternals===void 0)throw Error(Qe(38));return JV(e,t,r,!1,n)};Ys.version="18.3.1-next-f1338f8080-20240426";function owe(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(owe)}catch(e){console.error(e)}}
40owe(),oxe.exports=Ys;var B0=oxe.exports;const lwe=jr(B0);var cwe,uue=B0;cwe=uue.createRoot,uue.hydrateRoot;const v9e=1,x9e=1e6;let rY=0;function b9e(){return rY=(rY+1)%Number.MAX_SAFE_INTEGER,rY.toString()}const nY=new Map,due=e=>{if(nY.has(e))return;const t=setTimeout(()=>{nY.delete(e),$b({type:"REMOVE_TOAST",toastId:e})},x9e);nY.set(e,t)},w9e=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,v9e)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?due(r):e.toasts.forEach(n=>{due(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},NS=[];let TS={toasts:[]};function $b(e){TS=w9e(TS,e),NS.forEach(t=>{t(TS)})}function Lr({...e}){const t=b9e(),r=a=>$b({type:"UPDATE_TOAST",toast:{...a,id:t}}),n=()=>$b({type:"DISMISS_TOAST",toastId:t});return $b({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||n()}}}),{id:t,dismiss:n,update:r}}function Xt(){const[e,t]=k.useState(TS);return k.useEffect(()=>(NS.push(t),()=>{const r=NS.indexOf(t);r>-1&&NS.splice(r,1)}),[e]),{...e,toast:Lr,dismiss:r=>$b({type:"DISMISS_TOAST",toastId:r})}}function Xe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function hue(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Su(...e){return t=>{let r=!1;const n=e.map(a=>{const s=hue(a,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let a=0;a<n.length;a++){const s=n[a];typeof s=="function"?s():hue(e[a],null)}}}}function Vt(...e){return k.useCallback(Su(...e),e)}function k9e(e,t){const r=k.createContext(t),n=s=>{const{children:o,...l}=s,c=k.useMemo(()=>l,Object.values(l));return i.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function a(s){const o=k.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,a]}function xa(e,t=[]){let r=[];function n(s,o){const l=k.createContext(o),c=r.length;r=[...r,o];const u=h=>{var g;const{scope:f,children:p,...y}=h,m=((g=f==null?void 0:f[e])==null?void 0:g[c])||l,v=k.useMemo(()=>y,Object.values(y));return i.jsx(m.Provider,{value:v,children:p})};u.displayName=s+"Provider";function d(h,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[c])||l,y=k.useContext(p);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,d]}const a=()=>{const s=r.map(o=>k.createContext(o));return function(l){const c=(l==null?void 0:l[e])||s;return k.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[n,_9e(a,...t)]}function _9e(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(s){const o=n.reduce((l,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...l,...h}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function ih(e){const t=S9e(e),r=k.forwardRef((n,a)=>{const{children:s,...o}=n,l=k.Children.toArray(s),c=l.find(j9e);if(c){const u=c.props.children,d=l.map(h=>h===c?k.Children.count(u)>1?k.Children.only(null):k.isValidElement(u)?u.props.children:null:h);return i.jsx(t,{...o,ref:a,children:k.isValidElement(u)?k.cloneElement(u,void 0,d):null})}return i.jsx(t,{...o,ref:a,children:s})});return r.displayName=`${e}.Slot`,r}var Sae=ih("Slot");function S9e(e){const t=k.forwardRef((r,n)=>{const{children:a,...s}=r;if(k.isValidElement(a)){const o=C9e(a),l=E9e(s,a.props);return a.type!==k.Fragment&&(l.ref=n?Su(n,o):o),k.cloneElement(a,l)}return k.Children.count(a)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uwe=Symbol("radix.slottable");function dwe(e){const t=({children:r})=>i.jsx(i.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=uwe,t}function j9e(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uwe}function E9e(e,t){const r={...t};for(const n in t){const a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?r[n]=(...l)=>{const c=s(...l);return a(...l),c}:a&&(r[n]=a):n==="style"?r[n]={...a,...s}
vendor: 9,369 bytes, line 40
40:n==="className"&&(r[n]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}function C9e(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function A_(e){const t=e+"CollectionProvider",[r,n]=xa(t),[a,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:v,children:g}=m,b=ce.useRef(null),x=ce.useRef(new Map).current;return i.jsx(a,{scope:v,itemMap:x,collectionRef:b,children:g})};o.displayName=t;const l=e+"CollectionSlot",c=ih(l),u=ce.forwardRef((m,v)=>{const{scope:g,children:b}=m,x=s(l,g),_=Vt(v,x.collectionRef);return i.jsx(c,{ref:_,children:b})});u.displayName=l;const d=e+"CollectionItemSlot",h="data-radix-collection-item",f=ih(d),p=ce.forwardRef((m,v)=>{const{scope:g,children:b,...x}=m,_=ce.useRef(null),w=Vt(v,_),j=s(d,g);return ce.useEffect(()=>(j.itemMap.set(_,{ref:_,...x}),()=>void j.itemMap.delete(_))),i.jsx(f,{[h]:"",ref:w,children:b})});p.displayName=d;function y(m){const v=s(e+"CollectionConsumer",m);return ce.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((j,E)=>x.indexOf(j.ref.current)-x.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:u,ItemSlot:p},y,n]}var N9e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dt=N9e.reduce((e,t)=>{const r=ih(`Primitive.${t}`),n=k.forwardRef((a,s)=>{const{asChild:o,...l}=a,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(c,{...l,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function jae(e,t){e&&B0.flushSync(()=>e.dispatchEvent(t))}function Qn(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function T9e(e,t=globalThis==null?void 0:globalThis.document){const r=Qn(e);k.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var A9e="DismissableLayer",qJ="dismissableLayer.update",M9e="dismissableLayer.pointerDownOutside",I9e="dismissableLayer.focusOutside",fue,hwe=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z0=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...c}=e,u=k.useContext(hwe),[d,h]=k.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=k.useState({}),y=Vt(t,E=>h(E)),m=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),b=d?m.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,_=b>=g,w=L9e(E=>{const C=E.target,N=[...u.branches].some(A=>A.contains(C));!_||N||(a==null||a(E),o==null||o(E),E.defaultPrevented||l==null||l())},f),j=O9e(E=>{const C=E.target;[...u.branches].some(A=>A.contains(C))||(s==null||s(E),o==null||o(E),E.defaultPrevented||l==null||l())},f);return T9e(E=>{b===u.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},f),k.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fue=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),pue(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=fue)}},[d,f,r,u]),k.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),pue())},[d,u]),k.useEffect(()=>{const E=()=>p({});return document.addEventListener(qJ,E),()=>document.removeEventListener(qJ,E)},[]),i.jsx(dt.div,{...c,ref:y,style:{pointerEvents:x?_?"auto":"none":void 0,...e.style},onFocusCapture:Xe(e.onFocusCapture,j.onFocusCapture),onBlurCapture:Xe(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:Xe(e.onPointerDownCapture,w.onPointerDownCapture)})});z0.displayName=A9e;var P9e="DismissableLayerBranch",fwe=k.forwardRef((e,t)=>{const r=k.useContext(hwe),n=k.useRef(null),a=Vt(t,n);return k.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),i.jsx(dt.div,{...e,ref:a})});fwe.displayName=P9e;function L9e(e,t=globalThis==null?void 0:globalThis.document){const r=Qn(e),n=k.useRef(!1),a=k.useRef(()=>{});return k.useEffect(()=>{const s=l=>{if(l.target&&!n.current){let c=function(){pwe(M9e,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function O9e(e,t=globalThis==null?void 0:globalThis.document){const r=Qn(e),n=k.useRef(!1);return k.useEffect(()=>{const a=s=>{s.target&&!n.current&&pwe(I9e,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function pue(){const e=new CustomEvent(qJ);document.dispatchEvent(e)}function pwe(e,t,r,{discrete:n}){const a=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?jae(a,s):a.dispatchEvent(s)}var R9e=z0,D9e=fwe,za=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},F9e="Portal",sv=k.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[a,s]=k.useState(!1);za(()=>s(!0),[]);const o=r||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?lwe.createPortal(i.jsx(dt.div,{...n,ref:t}),o):null});sv.displayName=F9e;function $9e(e,t){return k.useReducer((r,n)=>t[r][n]??r,e)}var ba=e=>{const{present:t,children:r}=e,n=B9e(t),a=typeof r=="function"?r({present:n.isPresent}):k.Children.only(r),s=Vt(n.ref,z9e(a));return typeof r=="function"||n.isPresent?k.cloneElement(a,{ref:s}):null};ba.displayName="Presence";function B9e(e){const[t,r]=k.useState(),n=k.useRef(null),a=k.useRef(e),s=k.useRef("none"),o=e?"mounted":"unmounted",[l,c]=$9e(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const u=a3(n.current);s.current=l==="mounted"?u:"none"},[l]),za(()=>{const u=n.current,d=a.current;if(d!==e){const f=s.current,p=a3(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),za(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=p=>{const m=a3(n.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},f=p=>{p.target===t&&(s.current=a3(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:k.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function a3(e){return(e==null?void 0:e.animationName)||"none"}function z9e(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var U9e=Pne[" useInsertionEffect ".trim().toString()]||za;function ks({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[a,s,o]=q9e({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:a;{const d=k.useRef(e!==void 0);k.useEffect(()=>{const h=d.current;h!==l&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${l?"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.`),d.current=l},[l,n])}const u=k.useCallback(d=>{var h;if(l){const f=H9e(d)?d(e):d;f!==e&&((h=o.current)==null||h.call(o,f))}else s(d)},[l,e,s,o]);return[c,u]}function q9e({defaultProp:e,onChange:t}){const[r,n]=k.useState(e),a=k.useRef(r),s=k.useRef(t);return U9e(()=>{s.current=t},[t]),k.useEffect(()=>{var o;a.current!==r&&((o=s.current)==null||o.call(s,r),a.current=r)},[r,a]),[r,n,s]}function H9e(e){return typeof e=="function"}var mwe=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),V9e="VisuallyHidden",eW=k.forwardRef((e,t)=>
40i.jsx(dt.span,{...e,ref:t,style:{...mwe,...e.style}}));eW.displayName=V9e;var W9e=eW,Eae="ToastProvider",[Cae,G9e,K9e]=A_("Toast"),[gwe,aWt]=xa("Toast",[K9e]),[Y9e,tW]=gwe(Eae),ywe=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:o}=e,[l,c]=k.useState(null),[u,d]=k.useState(0),h=k.useRef(!1),f=k.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Eae}\`. Expected non-empty \`string\`.`),i.jsx(Cae.Provider,{scope:t,children:i.jsx(Y9e,{scope:t,label:r,duration:n,swipeDirection:a,swipeThreshold:s,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:k.useCallback(()=>d(p=>p+1),[]),onToastRemove:k.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};ywe.displayName=Eae;var vwe="ToastViewport",X9e=["F8"],HJ="toast.viewportPause",VJ="toast.viewportResume",xwe=k.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=X9e,label:a="Notifications ({hotkey})",...s}=e,o=tW(vwe,r),l=G9e(r),c=k.useRef(null),u=k.useRef(null),d=k.useRef(null),h=k.useRef(null),f=Vt(t,h,o.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;k.useEffect(()=>{const v=g=>{var x;n.length!==0&&n.every(_=>g[_]||g.code===_)&&((x=h.current)==null||x.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[n]),k.useEffect(()=>{const v=c.current,g=h.current;if(y&&v&&g){const b=()=>{if(!o.isClosePausedRef.current){const j=new CustomEvent(HJ);g.dispatchEvent(j),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const j=new CustomEvent(VJ);g.dispatchEvent(j),o.isClosePausedRef.current=!1}},_=j=>{!v.contains(j.relatedTarget)&&x()},w=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",b),v.addEventListener("focusout",_),v.addEventListener("pointermove",b),v.addEventListener("pointerleave",w),window.addEventListener("blur",b),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",b),v.removeEventListener("focusout",_),v.removeEventListener("pointermove",b),v.removeEventListener("pointerleave",w),window.removeEventListener("blur",b),window.removeEventListener("focus",x)}}},[y,o.isClosePausedRef]);const m=k.useCallback(({tabbingDirection:v})=>{const b=l().map(x=>{const _=x.ref.current,w=[_,...cOe(_)];return v==="forwards"?w:w.reverse()});return(v==="forwards"?b.reverse():b).flat()},[l]);return k.useEffect(()=>{const v=h.current;if(v){const g=b=>{var w,j,E;const x=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!x){const C=document.activeElement,N=b.shiftKey;if(b.target===v&&N){(w=u.current)==null||w.focus();return}const T=m({tabbingDirection:N?"backwards":"forwards"}),F=T.findIndex(M=>M===C);aY(T.slice(F+1))?b.preventDefault():N?(j=u.current)==null||j.focus():(E=d.current)==null||E.focus()}};return v.addEventListener("keydown",g),()=>v.removeEventListener("keydown",g)}},[l,m]),i.jsxs(D9e,{ref:c,role:"region","aria-label":a.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&i.jsx(WJ,{ref:u,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"forwards"});aY(v)}}),i.jsx(Cae.Slot,{scope:r,children:i.jsx(dt.ol,{tabIndex:-1,...s,ref:f})}),y&&i.jsx(WJ,{ref:d,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"backwards"});aY(v)}})]})});xwe.displayName=vwe;var bwe="ToastFocusProxy",WJ=k.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,s=tW(bwe,r);return i.jsx(eW,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(l))&&n()}})});WJ.displayName=bwe;var M_="Toast",Z9e="toast.swipeStart",Q9e="toast.swipeMove",J9e="toast.swipeCancel",eOe="toast.swipeEnd",wwe=k.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:s,...o}=e,[l,c]=ks({prop:n,defaultProp:a??!0,onChange:s,caller:M_});return i.jsx(ba,{present:r||l,children:i.jsx(nOe,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:Qn(e.onPause),onResume:Qn(e.onResume),onSwipeStart:Xe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Xe(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Xe(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Xe(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});wwe.displayName=M_;var[tOe,rOe]=gwe(M_,{onClose(){}}),nOe=k.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:a,open:s,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...y}=e,m=tW(M_,r),[v,g]=k.useState(null),b=Vt(t,M=>g(M)),x=k.useRef(null),_=k.useRef(null),w=a||m.duration,j=k.useRef(0),E=k.useRef(w),C=k.useRef(0),{onToastAdd:N,onToastRemove:A}=m,$=Qn(()=>{var z;(v==null?void 0:v.contains(document.activeElement))&&((z=m.viewport)==null||z.focus()),o()}),T=k.useCallback(M=>{!M||M===1/0||(window.clearTimeout(C.current),j.current=new Date().getTime(),C.current=window.setTimeout($,M))},[$]);k.useEffect(()=>{const M=m.viewport;if(M){const z=()=>{T(E.current),u==null||u()},Y=()=>{const W=new Date().getTime()-j.current;E.current=E.current-W,window.clearTimeout(C.current),c==null||c()};return M.addEventListener(HJ,Y),M.addEventListener(VJ,z),()=>{M.removeEventListener(HJ,Y),M.removeEventListener(VJ,z)}}},[m.viewport,w,c,u,T]),k.useEffect(()=>{s&&!m.isClosePausedRef.current&&T(w)},[s,w,m.isClosePausedRef,T]),k.useEffect(()=>(N(),()=>A()),[N,A]);const F=k.useMemo(()=>v?Nwe(v):null,[v]);return m.viewport?i.jsxs(i.Fragment,{children:[F&&i.jsx(aOe,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:F}),i.jsx(tOe,{scope:r,onClose:$,children:B0.createPortal(i.jsx(Cae.ItemSlot,{scope:r,children:i.jsx(R9e,{asChild:!0,onEscapeKeyDown:Xe(l,()=>{m.isFocusedToastEscapeKeyDownRef.current||$(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:i.jsx(dt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Xe(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:Xe(e.onPointerDown,M=>{M.button===0&&(x.current={x:M.clientX,y:M.clientY})}),onPointerMove:Xe(e.onPointerMove,M=>{if(!x.current)return;const z=M.clientX-x.current.x,Y=M.clientY-x.current.y,W=!!_.current,ee=["left","right"].includes(m.swipeDirection),Z=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,V=ee?Z(0,z):0,ne=ee?0:Z(0,Y),P=M.pointerType==="touch"?10:2,R={x:V,y:ne},H={originalEvent:M,delta:R};W?(_.current=R,i3(Q9e,h,H,{discrete:!1})):mue(R,m.swipeDirection,P)?(_.current=R,i3(Z9e,d,H,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(z)>P||Math.abs(Y)>P)&&(x.current=null)}),onPointerUp:Xe(e.onPointerUp,M=>{const z=_.current,Y=M.target;if(Y.hasPointerCapture(M.pointerId)&&Y.releasePointerCapture(M.pointerId),_.current=null,x.current=null,z){const W=M.currentTarget,ee={originalEvent:M,delta:z};mue(z,m.swipeDirection,m.swipeThreshold)?i3(eOe,p,ee,{discrete:!0}):i3(J9e,f,ee,{discrete:!0}),W.addEventListener("click",Z=>Z.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),aOe=e=>{const{__scopeToast:t,children:r,...n}=e,a=tW(M_,t),[s,o]=k.useState(!1),[l,c]=k.useState(!1);return oOe(()=>o(!0)),k.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:i.jsx(sv,{asChild:!0,children:i.jsx(eW,{...n,children:s&&i.jsxs(i.Fragment,{children:[a.label," ",r]})})})},iOe="ToastTitle",kwe=k.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return i.jsx(dt.div,{...n,ref:t})});kwe.displayName=iOe;var sOe="ToastDescription",_we=k.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return i.jsx(dt.div,{...n,ref:t})});_we.displayName=sOe;var Swe="ToastAction",jwe=k.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?i.jsx(Cwe,{altText:r,asChild:!0,children:i.jsx(Nae,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Swe}\`. Expected non-empty \`string\`.`),null)});jwe.displayName=Swe;var Ewe="ToastClose",Nae=k.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,a=rOe(Ewe,r);return i.jsx(Cwe,{asChild:!0,children:i.jsx(dt.button,{type:"button",...n,ref:t,onClick:Xe(e.onClick,a.onClose)})})});Nae.displayName=Ewe;var Cwe=k.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...a}=e;return i.jsx(dt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:t})});function Nwe(e){const t=[];
vendor: 5,879 bytes, lines 40-85
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),lOe(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!a)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Nwe(n))}}),t}function i3(e,t,r,{discrete:n}){const a=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?jae(a,s):a.dispatchEvent(s)}var mue=(e,t,r=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),s=n>a;return t==="left"||t==="right"?s&&n>r:!s&&a>r};function oOe(e=()=>{}){const t=Qn(e);za(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function lOe(e){return e.nodeType===e.ELEMENT_NODE}function cOe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function aY(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var uOe=ywe,Twe=xwe,Awe=wwe,Mwe=kwe,Iwe=_we,Pwe=jwe,Lwe=Nae;function Owe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Owe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Mr(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Owe(e))&&(n&&(n+=" "),n+=t);return n}const gue=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,yue=Mr,ov=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return yue(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:s}=t,o=Object.keys(a).map(u=>{const d=r==null?void 0:r[u],h=s==null?void 0:s[u];if(d===null)return null;const f=gue(d)||gue(h);return a[u][f]}),l=r&&Object.entries(r).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:h,className:f,...p}=d;return Object.entries(p).every(y=>{let[m,v]=y;return Array.isArray(v)?v.includes({...s,...l}[m]):{...s,...l}[m]===v})?[...u,h,f]:u},[]);return yue(e,o,c,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.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 dOe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rwe=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.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 hOe={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.462.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 Dwe=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:s,iconNode:o,...l},c)=>k.createElement("svg",{ref:c,...hOe,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Rwe("lucide",a),...l},[...o.map(([u,d])=>k.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** 56 * @license lucide-react v0.462.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 S=(e,t)=>{const r=k.forwardRef(({className:n,...a},s)=>k.createElement(Dwe,{ref:s,iconNode:t,className:Rwe(`lucide-${dOe(e)}`,n),...a}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.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 AS=S("AArrowDown",[["path",{d:"M3.5 13h6",key:"p1my2r"}],["path",{d:"m2 16 4.5-9 4.5 9",key:"ndf0b3"}],["path",{d:"M18 7v9",key:"pknjwm"}],["path",{d:"m14 12 4 4 4-4",key:"buelq4"}]]);/** 66 * @license lucide-react v0.462.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 MS=S("AArrowUp",[["path",{d:"M3.5 13h6",key:"p1my2r"}],["path",{d:"m2 16 4.5-9 4.5 9",key:"ndf0b3"}],["path",{d:"M18 16V7",key:"ty0viw"}],["path",{d:"m14 11 4-4 4 4",key:"1pu57t"}]]);/** 71 * @license lucide-react v0.462.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 Bb=S("ALargeSmall",[["path",{d:"M21 14h-5",key:"1vh23k"}],["path",{d:"M16 16v-3.5a2.5 2.5 0 0 1 5 0V16",key:"1wh10o"}],["path",{d:"M4.5 13h6",key:"dfilno"}],["path",{d:"m3 16 4.5-9 4.5 9",key:"2dxa0e"}]]);/** 76 * @license lucide-react v0.462.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 IS=S("Accessibility",[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-6 1",key:"r0i19z"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5",key:"9ptxx2"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6",key:"10kmtu"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6",key:"2qq6rc"}]]);/** 81 * @license lucide-react v0.462.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 PS=S("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
85-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 86 * @license lucide-react v0.462.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 LS=S("AirVent",[["path",{d:"M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"larmp2"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"M18.3 17.7a2.5 2.5 0 0 1-3.16 3.83 2.53 2.53 0 0 1-1.14-2V12",key:"1bo8pg"}],["path",{d:"M6.6 15.6A2 2 0 1 0 10 17v-5",key:"t9h90c"}]]);/** 91 * @license lucide-react v0.462.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 OS=S("Airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]);/** 96 * @license lucide-react v0.462.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 nf=S("AlarmClockCheck",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]]);/** 101 * @license lucide-react v0.462.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 af=S("AlarmClockMinus",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}],["path",{d:"M9 13h6",key:"1uhe8q"}]]);/** 106 * @license lucide-react v0.462.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 RS=S("AlarmClockOff",[["path",{d:"M6.87 6.87a8 8 0 1 0 11.26 11.26",key:"3on8tj"}],["path",{d:"M19.9 14.25a8 8 0 0 0-9.15-9.15",key:"15ghsc"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.26 18.67 4 21",key:"yzmioq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 4 2 6",key:"1ycko6"}]]);/** 111 * @license lucide-react v0.462.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 sf=S("AlarmClockPlus",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}]]);/** 116 * @license lucide-react v0.462.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 DS=S("AlarmClock",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]);/** 121 * @license lucide-react v0.462.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 FS=S("AlarmSmoke",[["path",{d:"M11 21c0-2.5 2-2.5 2-5",key:"1sicvv"}],["path",{d:"M16 21c0-2.5 2-2.5 2-5",key:"1o3eny"}],["path",{d:"m19 8-.8 3a1.25 1.25 0 0 1-1.2 1H7a1.25 1.25 0 0 1-1.2-1L5 8",key:"1bvca4"}],["path",{d:"M21 3a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a1 1 0 0 1 1-1z",key:"x3qr1j"}],["path",{d:"M6 21c0-2.5 2-2.5 2-5",key:"i3w1gp"}]]);/** 126 * @license lucide-react v0.462.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 $S=S("Album",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["polyline",{points:"11 3 11 11 14 8 17 11 17 3",key:"1wcwz3"}]]);/** 131 * @license lucide-react v0.462.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 BS=S("AlignCenterHorizontal",[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4",key:"11f1s0"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4",key:"t14dx9"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1",key:"1w07xs"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1",key:"1apec2"}]]);/** 136 * @license lucide-react v0.462.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 zS=S("AlignCenterVertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]]);/** 141 * @license lucide-react v0.462.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 US=S("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/** 146 * @license lucide-react v0.462.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 qS=S("AlignEndHorizontal",[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]]);/** 151 * @license lucide-react v0.462.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 HS=S("AlignEndVertical",[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]]);/** 156 * @license lucide-react v0.462.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 VS=S("AlignHorizontalDistributeCenter",[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M17 22v-5",key:"4b6g73"}],["path",{d:"M17 7V2",key:"hnrr36"}],["path",{d:"M7 22v-3",key:"1r4jpn"}],["path",{d:"M7 5V2",key:"liy1u9"}]]);/** 161 * @license lucide-react v0.462.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 WS=S("AlignHorizontalDistributeEnd",[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M10 2v20",key:"uyc634"}],["path",{d:"M20 2v20",key:"1tx262"}]]);/** 166 * @license lucide-react v0.462.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 GS=S("AlignHorizontalDistributeStart",[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M4 2v20",key:"gtpd5x"}],["path",{d:"M14 2v20",key:"tg6bpw"}
170]]);/** 171 * @license lucide-react v0.462.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 KS=S("AlignHorizontalJustifyCenter",[["rect",{width:"6",height:"14",x:"2",y:"5",rx:"2",key:"dy24zr"}],["rect",{width:"6",height:"10",x:"16",y:"7",rx:"2",key:"13zkjt"}],["path",{d:"M12 2v20",key:"t6zp3m"}]]);/** 176 * @license lucide-react v0.462.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 YS=S("AlignHorizontalJustifyEnd",[["rect",{width:"6",height:"14",x:"2",y:"5",rx:"2",key:"dy24zr"}],["rect",{width:"6",height:"10",x:"12",y:"7",rx:"2",key:"1ht384"}],["path",{d:"M22 2v20",key:"40qfg1"}]]);/** 181 * @license lucide-react v0.462.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 XS=S("AlignHorizontalJustifyStart",[["rect",{width:"6",height:"14",x:"6",y:"5",rx:"2",key:"hsirpf"}],["rect",{width:"6",height:"10",x:"16",y:"7",rx:"2",key:"13zkjt"}],["path",{d:"M2 2v20",key:"1ivd8o"}]]);/** 186 * @license lucide-react v0.462.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 ZS=S("AlignHorizontalSpaceAround",[["rect",{width:"6",height:"10",x:"9",y:"7",rx:"2",key:"yn7j0q"}],["path",{d:"M4 22V2",key:"tsjzd3"}],["path",{d:"M20 22V2",key:"1bnhr8"}]]);/** 191 * @license lucide-react v0.462.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 QS=S("AlignHorizontalSpaceBetween",[["rect",{width:"6",height:"14",x:"3",y:"5",rx:"2",key:"j77dae"}],["rect",{width:"6",height:"10",x:"15",y:"7",rx:"2",key:"bq30hj"}],["path",{d:"M3 2v20",key:"1d2pfg"}],["path",{d:"M21 2v20",key:"p059bm"}]]);/** 196 * @license lucide-react v0.462.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 JS=S("AlignJustify",[["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M3 6h18",key:"d0wm0j"}]]);/** 201 * @license lucide-react v0.462.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 ej=S("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/** 206 * @license lucide-react v0.462.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 tj=S("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/** 211 * @license lucide-react v0.462.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 rj=S("AlignStartHorizontal",[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]]);/** 216 * @license lucide-react v0.462.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 nj=S("AlignStartVertical",[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]]);/** 221 * @license lucide-react v0.462.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 aj=S("AlignVerticalDistributeCenter",[["path",{d:"M22 17h-3",key:"1lwga1"}],["path",{d:"M22 7h-5",key:"o2endc"}],["path",{d:"M5 17H2",key:"1gx9xc"}],["path",{d:"M7 7H2",key:"6bq26l"}],["rect",{x:"5",y:"14",width:"14",height:"6",rx:"2",key:"1qrzuf"}],["rect",{x:"7",y:"4",width:"10",height:"6",rx:"2",key:"we8e9z"}]]);/** 226 * @license lucide-react v0.462.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 ij=S("AlignVerticalDistributeEnd",[["rect",{width:"14",height:"6",x:"5",y:"14",rx:"2",key:"jmoj9s"}],["rect",{width:"10",height:"6",x:"7",y:"4",rx:"2",key:"aza5on"}],["path",{d:"M2 20h20",key:"owomy5"}],["path",{d:"M2 10h20",key:"1ir3d8"}]]);/** 231 * @license lucide-react v0.462.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 sj=S("AlignVerticalDistributeStart",[["rect",{width:"14",height:"6",x:"5",y:"14",rx:"2",key:"jmoj9s"}],["rect",{width:"10",height:"6",x:"7",y:"4",rx:"2",key:"aza5on"}],["path",{d:"M2 14h20",key:"myj16y"}],["path",{d:"M2 4h20",key:"mda7wb"}]]);/** 236 * @license lucide-react v0.462.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 oj=S("AlignVerticalJustifyCenter",[["rect",{width:"14",height:"6",x:"5",y:"16",rx:"2",key:"1i8z2d"}],["rect",{width:"10",height:"6",x:"7",y:"2",rx:"2",key:"ypihtt"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 241 * @license lucide-react v0.462.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const lj=S("AlignVerticalJustifyEnd",[["rect",{width:"14",height:"6",x:"5",y:"12",rx:"2",key:"4l4tp2"}],["rect",{width:"10",height:"6",x:"7",y:"2",rx:"2",key:"ypihtt"}],["path",{d:"M2 22h20",key:"272qi7"}]]);/** 246 * @license lucide-react v0.462.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const cj=S("AlignVerticalJustifyStart",[["rect",{width:"14",height:"6",x:"5",y:"16",rx:"2",key:"1i8z2d"}],["rect",{width:"10",height:"6",x:"7",y:"6",rx:"2",key:"13squh"}],["path",{d:"M2 2h20",key:"1ennik"}]]);/** 251 * @license lucide-react v0.462.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const uj=S("AlignVerticalSpaceAround",[["rect",{width:"10",height:"6",x:"7",y:"9",rx:"2",key:"b1zbii"}],["path",{d:"M22 20H2",key:"1p1f7z"}],["path",{d:"M22 4H2",key:"1b7qnq"}]]);/** 256 * @license lucide-react v0.462.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const dj=S("AlignVerticalSpaceBetween",[["rect",{width:"14",height:"6",x:"5",y:"15",rx:"2",key:"1w91an"}],["rect",{width:"10",height:"6",x:"7",y:"3",rx:"2",key:"17wqzy"}],["path",{d:"M2 21h20",key:"1nyx9w"}],["path",{d:"M2 3h20",key:"91anmk"}]]);/** 261 * @license lucide-react v0.462.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const hj=S("Ambulance",[["path",{d:"M10 10H6",key:"1bsnug"}],["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.28a1 1 0 0 0-.684-.948l-1.923-.641a1 1 0 0 1-.578-.502l-1.539-3.076A1 1 0 0 0 16.382 8H14",key:"lrkjwd"}],["path",{d:"M8 8v4",key:"1fwk8c"}],["path",{d:"M9 18h6",key:"x1upvd"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/** 266 * @license lucide-react v0.462.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const fj=S("Ampersand",[["path",{d:"M17.5 12c0 4.4-3.6 8-8 8A4.5 4.5 0 0 1 5 15.5c0-6 8-4 8-8.5a3 3 0 1 0-6 0c0 3 2.5 8.5 12 13",key:"1o9ehi"}],["path",{d:"M16 12h3",key:"4uvgyw"}]]);/** 271 * @license lucide-react v0.462.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const pj=S("Ampersands",[["path",{d:"M10 17c-5-3-7-7-7-9a2 2 0 0 1 4 0c0 2.5-5 2.5-5 6 0 1.7 1.3 3 3 3 2.8 0 5-2.2 5-5",key:"12lh1k"}],["path",{d:"M22 17c-5-3-7-7-7-9a2 2 0 0 1 4 0c0 2.5-5 2.5-5 6 0 1.7 1.3 3 3 3 2.8 0 5-2.2 5-5",key:"173c68"}]]);/** 276 * @license lucide-react v0.462.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const mj=S("Amphora",[["path",{d:"M10 2v5.632c0 .424-.272.795-.653.982A6 6 0 0 0 6 14c.006 4 3 7 5 8",ke
280y:"1h8rid"}],["path",{d:"M10 5H8a2 2 0 0 0 0 4h.68",key:"3ezsi6"}],["path",{d:"M14 2v5.632c0 .424.272.795.652.982A6 6 0 0 1 18 14c0 4-3 7-5 8",key:"yt6q09"}],["path",{d:"M14 5h2a2 2 0 0 1 0 4h-.68",key:"8f95yk"}],["path",{d:"M18 22H6",key:"mg6kv4"}],["path",{d:"M9 2h6",key:"1jrp98"}]]);/** 281 * @license lucide-react v0.462.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const gj=S("Anchor",[["path",{d:"M12 22V8",key:"qkxhtm"}],["path",{d:"M5 12H2a10 10 0 0 0 20 0h-3",key:"1hv3nh"}],["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}]]);/** 286 * @license lucide-react v0.462.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const yj=S("Angry",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["path",{d:"M7.5 8 10 9",key:"olxxln"}],["path",{d:"m14 9 2.5-1",key:"1j6cij"}],["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}]]);/** 291 * @license lucide-react v0.462.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const vj=S("Annoyed",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 15h8",key:"45n4r"}],["path",{d:"M8 9h2",key:"1g203m"}],["path",{d:"M14 9h2",key:"116p9w"}]]);/** 296 * @license lucide-react v0.462.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const xj=S("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/** 301 * @license lucide-react v0.462.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const bj=S("Anvil",[["path",{d:"M7 10H6a4 4 0 0 1-4-4 1 1 0 0 1 1-1h4",key:"1hjpb6"}],["path",{d:"M7 5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1 7 7 0 0 1-7 7H8a1 1 0 0 1-1-1z",key:"1qn45f"}],["path",{d:"M9 12v5",key:"3anwtq"}],["path",{d:"M15 12v5",key:"5xh3zn"}],["path",{d:"M5 20a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3 1 1 0 0 1-1 1H6a1 1 0 0 1-1-1",key:"1fi4x8"}]]);/** 306 * @license lucide-react v0.462.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const wj=S("Aperture",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m14.31 8 5.74 9.94",key:"1y6ab4"}],["path",{d:"M9.69 8h11.48",key:"1wxppr"}],["path",{d:"m7.38 12 5.74-9.94",key:"1grp0k"}],["path",{d:"M9.69 16 3.95 6.06",key:"libnyf"}],["path",{d:"M14.31 16H2.83",key:"x5fava"}],["path",{d:"m16.62 12-5.74 9.94",key:"1vwawt"}]]);/** 311 * @license lucide-react v0.462.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const kj=S("AppWindowMac",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M14 8h.01",key:"1primd"}]]);/** 316 * @license lucide-react v0.462.0 - ISC 317 * 318 * This source code is licensed under the ISC license. 319 * See the LICENSE file in the root directory of this source tree. 320 */const _j=S("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/** 321 * @license lucide-react v0.462.0 - ISC 322 * 323 * This source code is licensed under the ISC license. 324 * See the LICENSE file in the root directory of this source tree. 325 */const Sj=S("Apple",[["path",{d:"M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z",key:"3s7exb"}],["path",{d:"M10 2c1 .5 2 2 2 5",key:"fcco2y"}]]);/** 326 * @license lucide-react v0.462.0 - ISC 327 * 328 * This source code is licensed under the ISC license. 329 * See the LICENSE file in the root directory of this source tree. 330 */const jj=S("ArchiveRestore",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]]);/** 331 * @license lucide-react v0.462.0 - ISC 332 * 333 * This source code is licensed under the ISC license. 334 * See the LICENSE file in the root directory of this source tree. 335 */const Ej=S("ArchiveX",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"m9.5 17 5-5",key:"nakeu6"}],["path",{d:"m9.5 12 5 5",key:"1hccrj"}]]);/** 336 * @license lucide-react v0.462.0 - ISC 337 * 338 * This source code is licensed under the ISC license. 339 * See the LICENSE file in the root directory of this source tree. 340 */const Cj=S("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** 341 * @license lucide-react v0.462.0 - ISC 342 * 343 * This source code is licensed under the ISC license. 344 * See the LICENSE file in the root directory of this source tree. 345 */const Nj=S("Armchair",[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]);/** 346 * @license lucide-react v0.462.0 - ISC 347 * 348 * This source code is licensed under the ISC license. 349 * See the LICENSE file in the root directory of this source tree. 350 */const Tj=S("ArrowBigDownDash",[["path",{d:"M15 5H9",key:"1tp3ed"}],["path",{d:"M15 9v3h4l-7 7-7-7h4V9z",key:"ncdc4b"}]]);/** 351 * @license lucide-react v0.462.0 - ISC 352 * 353 * This source code is licensed under the ISC license. 354 * See the LICENSE file in the root directory of this source tree. 355 */const Aj=S("ArrowBigDown",[["path",{d:"M15 6v6h4l-7 7-7-7h4V6h6z",key:"1thax2"}]]);/** 356 * @license lucide-react v0.462.0 - ISC 357 * 358 * This source code is licensed under the ISC license. 359 * See the LICENSE file in the root directory of this source tree. 360 */const Mj=S("ArrowBigLeftDash",[["path",{d:"M19 15V9",key:"1hci5f"}],["path",{d:"M15 15h-3v4l-7-7 7-7v4h3v6z",key:"16tjna"}]]);/** 361 * @license lucide-react v0.462.0 - ISC 362 * 363 * This source code is licensed under the ISC license. 364 * See the LICENSE file in the root directory of this source tree. 365 */const Ij=S("ArrowBigLeft",[["path",{d:"M18 15h-6v4l-7-7 7-7v4h6v6z",key:"lbrdak"}]]);/** 366 * @license lucide-react v0.462.0 - ISC 367 * 368 * This source code is licensed under the ISC license. 369 * See the LICENSE file in the root directory of this source tree. 370 */const Pj=S("ArrowBigRightDash",[["path",{d:"M5 9v6",key:"158jrl"}],["path",{d:"M9 9h3V5l7 7-7 7v-4H9V9z",key:"1sg2xn"}]]);/** 371 * @license lucide-react v0.462.0 - ISC 372 * 373 * This source code is licensed under the ISC license. 374 * See the LICENSE file in the root directory of this source tree.
375 */const Lj=S("ArrowBigRight",[["path",{d:"M6 9h6V5l7 7-7 7v-4H6V9z",key:"7fvt9c"}]]);/** 376 * @license lucide-react v0.462.0 - ISC 377 * 378 * This source code is licensed under the ISC license. 379 * See the LICENSE file in the root directory of this source tree. 380 */const Oj=S("ArrowBigUpDash",[["path",{d:"M9 19h6",key:"456am0"}],["path",{d:"M9 15v-3H5l7-7 7 7h-4v3H9z",key:"1r2uve"}]]);/** 381 * @license lucide-react v0.462.0 - ISC 382 * 383 * This source code is licensed under the ISC license. 384 * See the LICENSE file in the root directory of this source tree. 385 */const Rj=S("ArrowBigUp",[["path",{d:"M9 18v-6H5l7-7 7 7h-4v6H9z",key:"1x06kx"}]]);/** 386 * @license lucide-react v0.462.0 - ISC 387 * 388 * This source code is licensed under the ISC license. 389 * See the LICENSE file in the root directory of this source tree. 390 */const Dj=S("ArrowDown01",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["rect",{x:"15",y:"4",width:"4",height:"6",ry:"2",key:"1bwicg"}],["path",{d:"M17 20v-6h-2",key:"1qp1so"}],["path",{d:"M15 20h4",key:"1j968p"}]]);/** 391 * @license lucide-react v0.462.0 - ISC 392 * 393 * This source code is licensed under the ISC license. 394 * See the LICENSE file in the root directory of this source tree. 395 */const Fj=S("ArrowDown10",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]]);/** 396 * @license lucide-react v0.462.0 - ISC 397 * 398 * This source code is licensed under the ISC license. 399 * See the LICENSE file in the root directory of this source tree. 400 */const of=S("ArrowDownAZ",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]);/** 401 * @license lucide-react v0.462.0 - ISC 402 * 403 * This source code is licensed under the ISC license. 404 * See the LICENSE file in the root directory of this source tree. 405 */const $j=S("ArrowDownFromLine",[["path",{d:"M19 3H5",key:"1236rx"}],["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m6 15 6 6 6-6",key:"h15q88"}]]);/** 406 * @license lucide-react v0.462.0 - ISC 407 * 408 * This source code is licensed under the ISC license. 409 * See the LICENSE file in the root directory of this source tree. 410 */const Bj=S("ArrowDownLeft",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]);/** 411 * @license lucide-react v0.462.0 - ISC 412 * 413 * This source code is licensed under the ISC license. 414 * See the LICENSE file in the root directory of this source tree. 415 */const zj=S("ArrowDownNarrowWide",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h4",key:"6d7r33"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h10",key:"1438ji"}]]);/** 416 * @license lucide-react v0.462.0 - ISC 417 * 418 * This source code is licensed under the ISC license. 419 * See the LICENSE file in the root directory of this source tree. 420 */const Uj=S("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/** 421 * @license lucide-react v0.462.0 - ISC 422 * 423 * This source code is licensed under the ISC license. 424 * See the LICENSE file in the root directory of this source tree. 425 */const qj=S("ArrowDownToDot",[["path",{d:"M12 2v14",key:"jyx4ut"}],["path",{d:"m19 9-7 7-7-7",key:"1oe3oy"}],["circle",{cx:"12",cy:"21",r:"1",key:"o0uj5v"}]]);/** 426 * @license lucide-react v0.462.0 - ISC 427 * 428 * This source code is licensed under the ISC license. 429 * See the LICENSE file in the root directory of this source tree. 430 */const Hj=S("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/** 431 * @license lucide-react v0.462.0 - ISC 432 * 433 * This source code is licensed under the ISC license. 434 * See the LICENSE file in the root directory of this source tree. 435 */const Vj=S("ArrowDownUp",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]]);/** 436 * @license lucide-react v0.462.0 - ISC 437 * 438 * This source code is licensed under the ISC license. 439 * See the LICENSE file in the root directory of this source tree. 440 */const lf=S("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}
440],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);/** 441 * @license lucide-react v0.462.0 - ISC 442 * 443 * This source code is licensed under the ISC license. 444 * See the LICENSE file in the root directory of this source tree. 445 */const cf=S("ArrowDownZA",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]]);/** 446 * @license lucide-react v0.462.0 - ISC 447 * 448 * This source code is licensed under the ISC license. 449 * See the LICENSE file in the root directory of this source tree. 450 */const zb=S("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 451 * @license lucide-react v0.462.0 - ISC 452 * 453 * This source code is licensed under the ISC license. 454 * See the LICENSE file in the root directory of this source tree. 455 */const Wj=S("ArrowLeftFromLine",[["path",{d:"m9 6-6 6 6 6",key:"7v63n9"}],["path",{d:"M3 12h14",key:"13k4hi"}],["path",{d:"M21 19V5",key:"b4bplr"}]]);/** 456 * @license lucide-react v0.462.0 - ISC 457 * 458 * This source code is licensed under the ISC license. 459 * See the LICENSE file in the root directory of this source tree. 460 */const Gj=S("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/** 461 * @license lucide-react v0.462.0 - ISC 462 * 463 * This source code is licensed under the ISC license. 464 * See the LICENSE file in the root directory of this source tree. 465 */const Kj=S("ArrowLeftToLine",[["path",{d:"M3 19V5",key:"rwsyhb"}],["path",{d:"m13 6-6 6 6 6",key:"1yhaz7"}],["path",{d:"M7 12h14",key:"uoisry"}]]);/** 466 * @license lucide-react v0.462.0 - ISC 467 * 468 * This source code is licensed under the ISC license. 469 * See the LICENSE file in the root directory of this source tree. 470 */const ea=S("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 471 * @license lucide-react v0.462.0 - ISC 472 * 473 * This source code is licensed under the ISC license. 474 * See the LICENSE file in the root directory of this source tree. 475 */const Yj=S("ArrowRightFromLine",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]]);/** 476 * @license lucide-react v0.462.0 - ISC 477 * 478 * This source code is licensed under the ISC license. 479 * See the LICENSE file in the root directory of this source tree. 480 */const Xj=S("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/** 481 * @license lucide-react v0.462.0 - ISC 482 * 483 * This source code is licensed under the ISC license. 484 * See the LICENSE file in the root directory of this source tree. 485 */const Zj=S("ArrowRightToLine",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]);/** 486 * @license lucide-react v0.462.0 - ISC 487 * 488 * This source code is licensed under the ISC license. 489 * See the LICENSE file in the root directory of this source tree. 490 */const du=S("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 491 * @license lucide-react v0.462.0 - ISC 492 * 493 * This source code is licensed under the ISC license. 494 * See the LICENSE file in the root directory of this source tree. 495 */const Qj=S("ArrowUp01",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["rect",{x:"15",y:"4",width:"4",height:"6",ry:"2",key:"1bwicg"}],["path",{d:"M17 20v-6h-2",key:"1qp1so"}],["path",{d:"M15 20h4",key:"1j968p"}]]);/** 496 * @license lucide-react v0.462.0 - ISC 497 * 498 * This source code is licensed under the ISC license. 499 * See the LICENSE file in the root directory of this source tree. 500 */const Jj=S("ArrowUp10",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]]);/** 501 * @license lucide-react v0.462.0 - ISC 502 * 503 * This source code is licensed under the ISC license. 504 * See the LICENSE file in the root directory of this source tree. 505 */const uf=S("ArrowUpAZ",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]);/** 506 * @license lucide-react v0.462.0 - ISC 507 * 508 * This source code is licensed under the ISC license. 509 * See the LICENSE file in the root directory of this source tree. 510 */const e5=S("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/** 511 * @license lucide-react v0.462.0 - ISC 512 * 513 * This source code is licensed under the ISC license. 514 * See the LICENSE file in the root directory of this source tree. 515 */const t5=S("ArrowUpFromDot",[["path",{d:"m5 9 7-7 7 7",key:"1hw5ic"}],["path",{d:"M12 16V2",key:"ywoabb"}],["circle",{cx:"12",cy:"21",r:"1",key:"o0uj5v"}]]);/** 516 * @license lucide-react v0.462.0 - ISC 517 * 518 * This source code is licensed under the ISC license. 519 * See the LICENSE file in the root directory of this source tree. 520 */const r5=S("ArrowUpFromLine",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 521 * @license lucide-react v0.462.0 - ISC 522 * 523 * This source code is licensed under the ISC license. 524 * See the LICENSE file in the root directory of this source tree. 525 */const n5=S("ArrowUpLeft",[["path",{d:"M7 17V7h10",key:"11bw93"}],["path",{d:"M17 17 7 7",key:"2786uv"}]]);/** 526 * @license lucide-react v0.462.0 - ISC 527 * 528 * This source code is licensed under the ISC license. 529 * See the LICENSE file in the root directory of this source tree. 530 */const df=S("ArrowUpNarrowWide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]);/** 531 * @license lucide-react v0.462.0 - ISC 532 * 533 * This source code is licensed under the ISC license. 534 * See the LICENSE file in the root directory of this source tree. 535 */const a5=S("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 536 * @license lucide-react v0.462.0 - ISC 537 * 538 * This source code is licensed under the ISC license. 539 * See the LICENSE file in the root directory of this source tree. 540 */const i5=S("ArrowUpToLine",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]]);/** 541 * @license lucide-react v0.462.0 - ISC 542 * 543 * This source code is licensed under the ISC license. 544 * See the LICENSE file in the root directory of this source tree. 545 */const s5=S("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]);/** 546 * @license lucide-react v0.462.0 - ISC 547 * 548 * This source code is licensed under the ISC license. 549 * See the LICENSE file in the root directory of this source tree. 550 */const hf=S("ArrowUpZA",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]]);/** 551 * @license lucide-react v0.462.0 - ISC 552 * 553 * This source code is licensed under the ISC license. 554 * See the LICENSE file in the root directory of this source tree. 555 */const Ub=S("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 556 * @license lucide-react v0.462.0 - ISC 557 * 558 * This source code is licensed under the ISC license. 559 * See the LICENSE file in the root directory of this source tree. 560 */const o5=S("ArrowsUpFromLine",[["path",{d:"m4 6 3-3 3 3",key:"9aidw8"}],["path",{d:"M7 17V3",key:"19qxw1"}],["path",{d:"m14 6 3-3 3 3",key:"6iy689"}],["path",{d:"M17 17V3",key:"o0fmgi"}],["path",{d:"M4 21h16",key:"1h09gz"}]]);/** 561 * @license lucide-react v0.462.0 - ISC 562 * 563 * This source code is licensed under the ISC license. 564 * See the LICENSE file in the root directory of this source tree. 565 */const l5=S("Asterisk",[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]]);/** 566 * @license lucide-react v0.462.0 - ISC 567 * 568 * This source code is licensed under the ISC license. 569 * See the LICENSE file in the root directory of this source tree. 570 */const c5=S("AtSign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]);/** 571 * @license lucide-react v0.462.0 - ISC 572 * 573 * This source code is licensed under the ISC license. 574 * See the LICENSE file in the root directory of this source tree. 575 */const u5=S("Atom",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]]);/** 576 * @license lucide-react v0.462.0 - ISC 577 * 578 * This source code is licensed under the ISC license. 579 * See the LICENSE file in the root directory of this source tree. 580 */const d5=S("AudioLines",[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]);/** 581 * @license lucide-react v0.462.0 - ISC 582 * 583 * This source code is licensed under the ISC license. 584 * See the LICENSE file in the root directory of this source tree. 585 */const h5=S("AudioWaveform",[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",ke
585y:"57tc96"}]]);/** 586 * @license lucide-react v0.462.0 - ISC 587 * 588 * This source code is licensed under the ISC license. 589 * See the LICENSE file in the root directory of this source tree. 590 */const f5=S("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 591 * @license lucide-react v0.462.0 - ISC 592 * 593 * This source code is licensed under the ISC license. 594 * See the LICENSE file in the root directory of this source tree. 595 */const p5=S("Axe",[["path",{d:"m14 12-8.5 8.5a2.12 2.12 0 1 1-3-3L11 9",key:"csbz4o"}],["path",{d:"M15 13 9 7l4-4 6 6h3a8 8 0 0 1-7 7z",key:"113wfo"}]]);/** 596 * @license lucide-react v0.462.0 - ISC 597 * 598 * This source code is licensed under the ISC license. 599 * See the LICENSE file in the root directory of this source tree. 600 */const ff=S("Axis3d",[["path",{d:"M4 4v16h16",key:"1s015l"}],["path",{d:"m4 20 7-7",key:"17qe9y"}]]);/** 601 * @license lucide-react v0.462.0 - ISC 602 * 603 * This source code is licensed under the ISC license. 604 * See the LICENSE file in the root directory of this source tree. 605 */const qb=S("Baby",[["path",{d:"M9 12h.01",key:"157uk2"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"5yv0yz"}]]);/** 606 * @license lucide-react v0.462.0 - ISC 607 * 608 * This source code is licensed under the ISC license. 609 * See the LICENSE file in the root directory of this source tree. 610 */const m5=S("Backpack",[["path",{d:"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1ol0lm"}],["path",{d:"M8 10h8",key:"c7uz4u"}],["path",{d:"M8 18h8",key:"1no2b1"}],["path",{d:"M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6",key:"1fr6do"}],["path",{d:"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2",key:"donm21"}]]);/** 611 * @license lucide-react v0.462.0 - ISC 612 * 613 * This source code is licensed under the ISC license. 614 * See the LICENSE file in the root directory of this source tree. 615 */const g5=S("BadgeAlert",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 616 * @license lucide-react v0.462.0 - ISC 617 * 618 * This source code is licensed under the ISC license. 619 * See the LICENSE file in the root directory of this source tree. 620 */const y5=S("BadgeCent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M12 7v10",key:"jspqdw"}],["path",{d:"M15.4 10a4 4 0 1 0 0 4",key:"2eqtx8"}]]);/** 621 * @license lucide-react v0.462.0 - ISC 622 * 623 * This source code is licensed under the ISC license. 624 * See the LICENSE file in the root directory of this source tree. 625 */const pf=S("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 626 * @license lucide-react v0.462.0 - ISC 627 * 628 * This source code is licensed under the ISC license. 629 * See the LICENSE file in the root directory of this source tree. 630 */const v5=S("BadgeDollarSign",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/** 631 * @license lucide-react v0.462.0 - ISC 632 * 633 * This source code is licensed under the ISC license. 634 * See the LICENSE file in the root directory of this source tree. 635 */const x5=S("BadgeEuro",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M7 12h5",key:"gblrwe"}],["path",{d:"M15 9.4a4 4 0 1 0 0 5.2",key:"1makmb"}]]);/** 636 * @license lucide-react v0.462.0 - ISC 637 * 638 * This source code is licensed under the ISC license. 639 * See the LICENSE file in the root directory of this source tree. 640 */const b5=S("BadgeHelp",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["line",{x1:"12",x2:"12.01",y1:"17",y2:"17",key:"io3f8k"}]]);/** 641 * @license lucide-react v0.462.0 - ISC 642 * 643 * This source code is licensed under the ISC license. 644 * See the LICENSE file in the root directory of this source tree. 645 */const w5=S("BadgeIndianRupee",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M8 8h8",key:"1bis0t"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m13 17-5-1h1a4 4 0 0 0 0-8",key:"nu2bwa"}]]);/** 646 * @license lucide-react v0.462.0 - ISC 647 * 648 * This source code is licensed under the ISC license. 649 * See the LICENSE file in the root directory of this source tree. 650 */const k5=S("BadgeInfo",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"16",y2:"12",key:"1y1yb1"}],["line",{x1:"12",x2:"12.01",y1:"8",y2:"8",key:"110wyk"}]]);/** 651 * @license lucide-react v0.462.0 - ISC 652 * 653 * This source code is licensed under the ISC license. 654 * See the LICENSE file in the root directory of this source tree. 655 */const _5=S("BadgeJapaneseYen",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 8 3 3v7",key:"17yadx"}],["path",{d:"m12 11 3-3",key:"p4cfq1"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M9 16h6",key:"8wimt3"}]]);/** 656 * @license lucide-react v0.462.0 - ISC 657 * 658 * This source code is licensed under the ISC license. 659 * See the LICENSE file in the root directory of this source tree. 660 */const S5=S("BadgeMinus",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 661 * @license lucide-react v0.462.0 - ISC 662 * 663 * This source code is licensed under the ISC license. 664 * See the LICENSE file in the root directory of this source tree. 665 */const j5=S("BadgePercent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]]);/** 666 * @license lucide-react v0.462.0 - ISC 667 * 668 * This source code is licensed under the ISC license. 669 * See the LICENSE file in the root directory of this source tree. 670 */const E5=S("BadgePlus",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"8",y2:"16",key:"10p56q"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 671 * @license lucide-react v0.462.0 - ISC 672 * 673 * This source code is licensed under the ISC license. 674 * See the LICENSE file in the root directory of this source tree. 675 */const C5=S("BadgePoundSterling",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M8 12h4",key:"qz6y1c"}],["path",{d:"M10 16V9.5a2.5 2.5 0 0 1 5 0",key:"3mlbjk"}],["path",{d:"M8 16h7",key:"sbedsn"}]]);/** 676 * @license lucide-react v0.462.0 - ISC 677 * 678 * This source code is licensed under the ISC license. 679 * See the LICENSE file in the root directory of this source tree. 680 */const N5=S("BadgeRussianRuble",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M9 16h5",key:"1syiyw"}
680],["path",{d:"M9 12h5a2 2 0 1 0 0-4h-3v9",key:"1ge9c1"}]]);/** 681 * @license lucide-react v0.462.0 - ISC 682 * 683 * This source code is licensed under the ISC license. 684 * See the LICENSE file in the root directory of this source tree. 685 */const T5=S("BadgeSwissFranc",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M11 17V8h4",key:"1bfq6y"}],["path",{d:"M11 12h3",key:"2eqnfz"}],["path",{d:"M9 16h4",key:"1skf3a"}]]);/** 686 * @license lucide-react v0.462.0 - ISC 687 * 688 * This source code is licensed under the ISC license. 689 * See the LICENSE file in the root directory of this source tree. 690 */const A5=S("BadgeX",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]]);/** 691 * @license lucide-react v0.462.0 - ISC 692 * 693 * This source code is licensed under the ISC license. 694 * See the LICENSE file in the root directory of this source tree. 695 */const M5=S("Badge",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}]]);/** 696 * @license lucide-react v0.462.0 - ISC 697 * 698 * This source code is licensed under the ISC license. 699 * See the LICENSE file in the root directory of this source tree. 700 */const I5=S("BaggageClaim",[["path",{d:"M22 18H6a2 2 0 0 1-2-2V7a2 2 0 0 0-2-2",key:"4irg2o"}],["path",{d:"M17 14V4a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v10",key:"14fcyx"}],["rect",{width:"13",height:"8",x:"8",y:"6",rx:"1",key:"o6oiis"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"9",cy:"20",r:"2",key:"e5v82j"}]]);/** 701 * @license lucide-react v0.462.0 - ISC 702 * 703 * This source code is licensed under the ISC license. 704 * See the LICENSE file in the root directory of this source tree. 705 */const P5=S("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/** 706 * @license lucide-react v0.462.0 - ISC 707 * 708 * This source code is licensed under the ISC license. 709 * See the LICENSE file in the root directory of this source tree. 710 */const L5=S("Banana",[["path",{d:"M4 13c3.5-2 8-2 10 2a5.5 5.5 0 0 1 8 5",key:"1cscit"}],["path",{d:"M5.15 17.89c5.52-1.52 8.65-6.89 7-12C11.55 4 11.5 2 13 2c3.22 0 5 5.5 5 8 0 6.5-4.2 12-10.49 12C5.11 22 2 22 2 20c0-1.5 1.14-1.55 3.15-2.11Z",key:"1y1nbv"}]]);/** 711 * @license lucide-react v0.462.0 - ISC 712 * 713 * This source code is licensed under the ISC license. 714 * See the LICENSE file in the root directory of this source tree. 715 */const O5=S("Bandage",[["path",{d:"M10 10.01h.01",key:"1e9xi7"}],["path",{d:"M10 14.01h.01",key:"ac23bv"}],["path",{d:"M14 10.01h.01",key:"2wfrvf"}],["path",{d:"M14 14.01h.01",key:"8tw8yn"}],["path",{d:"M18 6v11.5",key:"dkbidh"}],["path",{d:"M6 6v12",key:"vkc79e"}],["rect",{x:"2",y:"6",width:"20",height:"12",rx:"2",key:"1wpnh2"}]]);/** 716 * @license lucide-react v0.462.0 - ISC 717 * 718 * This source code is licensed under the ISC license. 719 * See the LICENSE file in the root directory of this source tree. 720 */const R5=S("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/** 721 * @license lucide-react v0.462.0 - ISC 722 * 723 * This source code is licensed under the ISC license. 724 * See the LICENSE file in the root directory of this source tree. 725 */const D5=S("Barcode",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M8 5v14",key:"1ybrkv"}],["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"M17 5v14",key:"ycjyhj"}],["path",{d:"M21 5v14",key:"nzette"}]]);/** 726 * @license lucide-react v0.462.0 - ISC 727 * 728 * This source code is licensed under the ISC license. 729 * See the LICENSE file in the root directory of this source tree. 730 */const F5=S("Baseline",[["path",{d:"M4 20h16",key:"14thso"}],["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/** 731 * @license lucide-react v0.462.0 - ISC 732 * 733 * This source code is licensed under the ISC license. 734 * See the LICENSE file in the root directory of this source tree. 735 */const $5=S("Bath",[["path",{d:"M10 4 8 6",key:"1rru8s"}],["path",{d:"M17 19v2",key:"ts1sot"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M7 19v2",key:"12npes"}],["path",{d:"M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",key:"14ym8i"}]]);/** 736 * @license lucide-react v0.462.0 - ISC 737 * 738 * This source code is licensed under the ISC license. 739 * See the LICENSE file in the root directory of this source tree. 740 */const B5=S("BatteryCharging",[["path",{d:"M15 7h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2",key:"1sdynx"}],["path",{d:"M6 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h1",key:"1gkd3k"}],["path",{d:"m11 7-3 5h4l-3 5",key:"b4a64w"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/** 741 * @license lucide-react v0.462.0 - ISC 742 * 743 * This source code is licensed under the ISC license. 744 * See the LICENSE file in the root directory of this source tree. 745 */const z5=S("BatteryFull",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}],["line",{x1:"6",x2:"6",y1:"11",y2:"13",key:"1wd6dw"}],["line",{x1:"10",x2:"10",y1:"11",y2:"13",key:"haxvl5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"13",key:"c6fn6x"}]]);/** 746 * @license lucide-react v0.462.0 - ISC 747 * 748 * This source code is licensed under the ISC license. 749 * See the LICENSE file in the root directory of this source tree.
750 */const U5=S("BatteryLow",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}],["line",{x1:"6",x2:"6",y1:"11",y2:"13",key:"1wd6dw"}]]);/** 751 * @license lucide-react v0.462.0 - ISC 752 * 753 * This source code is licensed under the ISC license. 754 * See the LICENSE file in the root directory of this source tree. 755 */const q5=S("BatteryMedium",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}],["line",{x1:"6",x2:"6",y1:"11",y2:"13",key:"1wd6dw"}],["line",{x1:"10",x2:"10",y1:"11",y2:"13",key:"haxvl5"}]]);/** 756 * @license lucide-react v0.462.0 - ISC 757 * 758 * This source code is licensed under the ISC license. 759 * See the LICENSE file in the root directory of this source tree. 760 */const H5=S("BatteryWarning",[["path",{d:"M10 17h.01",key:"nbq80n"}],["path",{d:"M10 7v6",key:"nne03l"}],["path",{d:"M14 7h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2",key:"1x5o8m"}],["path",{d:"M22 11v2",key:"1wo06k"}],["path",{d:"M6 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"1mdjgh"}]]);/** 761 * @license lucide-react v0.462.0 - ISC 762 * 763 * This source code is licensed under the ISC license. 764 * See the LICENSE file in the root directory of this source tree. 765 */const V5=S("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/** 766 * @license lucide-react v0.462.0 - ISC 767 * 768 * This source code is licensed under the ISC license. 769 * See the LICENSE file in the root directory of this source tree. 770 */const W5=S("Beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]);/** 771 * @license lucide-react v0.462.0 - ISC 772 * 773 * This source code is licensed under the ISC license. 774 * See the LICENSE file in the root directory of this source tree. 775 */const G5=S("BeanOff",[["path",{d:"M9 9c-.64.64-1.521.954-2.402 1.165A6 6 0 0 0 8 22a13.96 13.96 0 0 0 9.9-4.1",key:"bq3udt"}],["path",{d:"M10.75 5.093A6 6 0 0 1 22 8c0 2.411-.61 4.68-1.683 6.66",key:"17ccse"}],["path",{d:"M5.341 10.62a4 4 0 0 0 6.487 1.208M10.62 5.341a4.015 4.015 0 0 1 2.039 2.04",key:"18zqgq"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 776 * @license lucide-react v0.462.0 - ISC 777 * 778 * This source code is licensed under the ISC license. 779 * See the LICENSE file in the root directory of this source tree. 780 */const K5=S("Bean",[["path",{d:"M10.165 6.598C9.954 7.478 9.64 8.36 9 9c-.64.64-1.521.954-2.402 1.165A6 6 0 0 0 8 22c7.732 0 14-6.268 14-14a6 6 0 0 0-11.835-1.402Z",key:"1tvzk7"}],["path",{d:"M5.341 10.62a4 4 0 1 0 5.279-5.28",key:"2cyri2"}]]);/** 781 * @license lucide-react v0.462.0 - ISC 782 * 783 * This source code is licensed under the ISC license. 784 * See the LICENSE file in the root directory of this source tree. 785 */const Y5=S("BedDouble",[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]]);/** 786 * @license lucide-react v0.462.0 - ISC 787 * 788 * This source code is licensed under the ISC license. 789 * See the LICENSE file in the root directory of this source tree. 790 */const X5=S("BedSingle",[["path",{d:"M3 20v-8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8",key:"1wm6mi"}],["path",{d:"M5 10V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4",key:"4k93s5"}],["path",{d:"M3 18h18",key:"1h113x"}]]);/** 791 * @license lucide-react v0.462.0 - ISC 792 * 793 * This source code is licensed under the ISC license. 794 * See the LICENSE file in the root directory of this source tree. 795 */const Z5=S("Bed",[["path",{d:"M2 4v16",key:"vw9hq8"}],["path",{d:"M2 8h18a2 2 0 0 1 2 2v10",key:"1dgv2r"}],["path",{d:"M2 17h20",key:"18nfp3"}],["path",{d:"M6 8v9",key:"1yriud"}]]);/** 796 * @license lucide-react v0.462.0 - ISC 797 * 798 * This source code is licensed under the ISC license. 799 * See the LICENSE file in the root directory of this source tree. 800 */const Q5=S("Beef",[["circle",{cx:"12.5",cy:"8.5",r:"2.5",key:"9738u8"}],["path",{d:"M12.5 2a6.5 6.5 0 0 0-6.22 4.6c-1.1 3.13-.78 3.9-3.18 6.08A3 3 0 0 0 5 18c4 0 8.4-1.8 11.4-4.3A6.5 6.5 0 0 0 12.5 2Z",key:"o0f6za"}],["path",{d:"m18.5 6 2.19 4.5a6.48 6.48 0 0 1 .31 2 6.49 6.49 0 0 1-2.6 5.2C15.4 20.2 11 22 7 22a3 3 0 0 1-2.68-1.66L2.4 16.5",key:"k7p6i0"}]]);/** 801 * @license lucide-react v0.462.0 - ISC 802 * 803 * This source code is licensed under the ISC license. 804 * See the LICENSE file in the root directory of this source tree. 805 */const J5=S("BeerOff",[["path",{d:"M13 13v5",key:"igwfh0"}],["path",{d:"M17 11.47V8",key:"16yw0g"}],["path",{d:"M17 11h1a3 3 0 0 1 2.745 4.211",key:"1xbt65"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-3",key:"c55o3e"}],["path",{d:"M7.536 7.535C6.766 7.649 6.154 8 5.5 8a2.5 2.5 0 0 1-1.768-4.268",key:"1ydug7"}
805],["path",{d:"M8.727 3.204C9.306 2.767 9.885 2 11 2c1.56 0 2 1.5 3 1.5s1.72-.5 2.5-.5a1 1 0 1 1 0 5c-.78 0-1.5-.5-2.5-.5a3.149 3.149 0 0 0-.842.12",key:"q81o7q"}],["path",{d:"M9 14.6V18",key:"20ek98"}]]);/** 806 * @license lucide-react v0.462.0 - ISC 807 * 808 * This source code is licensed under the ISC license. 809 * See the LICENSE file in the root directory of this source tree. 810 */const e6=S("Beer",[["path",{d:"M17 11h1a3 3 0 0 1 0 6h-1",key:"1yp76v"}],["path",{d:"M9 12v6",key:"1u1cab"}],["path",{d:"M13 12v6",key:"1sugkk"}],["path",{d:"M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z",key:"1510fo"}],["path",{d:"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"19jb7n"}]]);/** 811 * @license lucide-react v0.462.0 - ISC 812 * 813 * This source code is licensed under the ISC license. 814 * See the LICENSE file in the root directory of this source tree. 815 */const t6=S("BellDot",[["path",{d:"M19.4 14.9C20.2 16.4 21 17 21 17H3s3-2 3-9c0-3.3 2.7-6 6-6 .7 0 1.3.1 1.9.3",key:"xcehk"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["circle",{cx:"18",cy:"8",r:"3",key:"1g0gzu"}]]);/** 816 * @license lucide-react v0.462.0 - ISC 817 * 818 * This source code is licensed under the ISC license. 819 * See the LICENSE file in the root directory of this source tree. 820 */const r6=S("BellElectric",[["path",{d:"M18.8 4A6.3 8.7 0 0 1 20 9",key:"xve1fh"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["circle",{cx:"9",cy:"9",r:"7",key:"p2h5vp"}],["rect",{width:"10",height:"6",x:"4",y:"16",rx:"2",key:"17f3te"}],["path",{d:"M14 19c3 0 4.6-1.6 4.6-1.6",key:"n7odp6"}],["circle",{cx:"20",cy:"16",r:"2",key:"1v9bxh"}]]);/** 821 * @license lucide-react v0.462.0 - ISC 822 * 823 * This source code is licensed under the ISC license. 824 * See the LICENSE file in the root directory of this source tree. 825 */const n6=S("BellMinus",[["path",{d:"M18.4 12c.8 3.8 2.6 5 2.6 5H3s3-2 3-9c0-3.3 2.7-6 6-6 1.8 0 3.4.8 4.5 2",key:"eck70s"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"M15 8h6",key:"8ybuxh"}]]);/** 826 * @license lucide-react v0.462.0 - ISC 827 * 828 * This source code is licensed under the ISC license. 829 * See the LICENSE file in the root directory of this source tree. 830 */const a6=S("BellOff",[["path",{d:"M8.7 3A6 6 0 0 1 18 8a21.3 21.3 0 0 0 .6 5",key:"o7mx20"}],["path",{d:"M17 17H3s3-2 3-9a4.67 4.67 0 0 1 .3-1.7",key:"16f1lm"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 831 * @license lucide-react v0.462.0 - ISC 832 * 833 * This source code is licensed under the ISC license. 834 * See the LICENSE file in the root directory of this source tree. 835 */const i6=S("BellPlus",[["path",{d:"M19.3 14.8C20.1 16.4 21 17 21 17H3s3-2 3-9c0-3.3 2.7-6 6-6 1 0 1.9.2 2.8.7",key:"guizqy"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"M15 8h6",key:"8ybuxh"}],["path",{d:"M18 5v6",key:"g5ayrv"}]]);/** 836 * @license lucide-react v0.462.0 - ISC 837 * 838 * This source code is licensed under the ISC license. 839 * See the LICENSE file in the root directory of this source tree. 840 */const s6=S("BellRing",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}]]);/** 841 * @license lucide-react v0.462.0 - ISC 842 * 843 * This source code is licensed under the ISC license. 844 * See the LICENSE file in the root directory of this source tree. 845 */const o6=S("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 846 * @license lucide-react v0.462.0 - ISC 847 * 848 * This source code is licensed under the ISC license. 849 * See the LICENSE file in the root directory of this source tree. 850 */const mf=S("BetweenHorizontalEnd",[["rect",{width:"13",height:"7",x:"3",y:"3",rx:"1",key:"11xb64"}],["path",{d:"m22 15-3-3 3-3",key:"26chmm"}],["rect",{width:"13",height:"7",x:"3",y:"14",rx:"1",key:"k6ky7n"}]]);/** 851 * @license lucide-react v0.462.0 - ISC 852 * 853 * This source code is licensed under the ISC license. 854 * See the LICENSE file in the root directory of this source tree. 855 */const gf=S("BetweenHorizontalStart",[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]]);/** 856 * @license lucide-react v0.462.0 - ISC 857 * 858 * This source code is licensed under the ISC license. 859 * See the LICENSE file in the root directory of this source tree. 860 */const l6=S("BetweenVerticalEnd",[["rect",{width:"7",height:"13",x:"3",y:"3",rx:"1",key:"1fdu0f"}],["path",{d:"m9 22 3-3 3 3",key:"17z65a"}],["rect",{width:"7",height:"13",x:"14",y:"3",rx:"1",key:"1squn4"}]]);/** 861 * @license lucide-react v0.462.0 - ISC 862 * 863 * This source code is licensed under the ISC license. 864 * See the LICENSE file in the root directory of this source tree. 865 */const c6=S("BetweenVerticalStart",[["rect",{width:"7",height:"13",x:"3",y:"8",rx:"1",key:"1fjrkv"}],["path",{d:"m15 2-3 3-3-3",key:"1uh6eb"}],["rect",{width:"7",height:"13",x:"14",y:"8",rx:"1",key:"w3fjg8"}]]);/** 866 * @license lucide-react v0.462.0 - ISC 867 * 868 * This source code is licensed under the ISC license. 869 * See the LICENSE file in the root directory of this source tree. 870 */const u6=S("BicepsFlexed",[["path",{d:"M12.409 13.017A5 5 0 0 1 22 15c0 3.866-4 7-9 7-4.077 0-8.153-.82-10.371-2.462-.426-.316-.631-.832-.62-1.362C2.118 12.723 2.627 2 10 2a3 3 0 0 1 3 3 2 2 0 0 1-2 2c-1.105 0-1.64-.444-2-1",key:"1pmlyh"}],["path",{d:"M15 14a5 5 0 0 0-7.584 2",key:"5rb254"}],["path",{d:"M9.964 6.825C8.019 7.977 9.5 13 8 15",key:"kbvsx9"}]]);/** 871 * @license lucide-react v0.462.0 - ISC 872 * 873 * This source code is licensed under the ISC license. 874 * See the LICENSE file in the root directory of this source tree. 875 */const d6=S("Bike",[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]]);/** 876 * @license lucide-react v0.462.0 - ISC 877 * 878 * This source code is licensed under the ISC license. 879 * See the LICENSE file in the root directory of this source tree. 880 */const h6=S("Binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]);/** 881 * @license lucide-react v0.462.0 - ISC 882 * 883 * This source code is licensed under the ISC license. 884 * See the LICENSE file in the root directory of this source tree. 885 */const f6=S("Binoculars",[["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M19 7V4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3",key:"3apit1"}],["path",{d:"M20 21a2 2 0 0 0 2-2v-3.851c0-1.39-2-2.962-2-4.829V8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v11a2 2 0 0 0 2 2z",key:"rhpgnw"}],["path",{d:"M 22 16 L 2 16",key:"14lkq7"}],["path",{d:"M4 21a2 2 0 0 1-2-2v-3.851c0-1.39 2-2.962 2-4.829V8a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v11a2 2 0 0 1-2 2z",key:"104b3k"}],["path",{d:"M9 7V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3",key:"14fczp"}]]);/** 886 * @license lucide-react v0.462.0 - ISC 887 * 888 * This source code is licensed under the ISC license. 889 * See the LICENSE file in the root directory of this source tree. 890 */const p6=S("Biohazard",[["circle",{cx:"12",cy:"11.9",r:"2",key:"e8h31w"}],["path",{d:"M6.7 3.4c-.9 2.5 0 5.2 2.2 6.7C6.5 9 3.7 9.6 2 11.6",key:"17bolr"}],["path",{d:"m8.9 10.1 1.4.8",key:"15ezny"}],["path",{d:"M17.3 3.4c.9 2.5 0 5.2-2.2 6.7 2.4-1.2 5.2-.6 6.9 1.5",key:"wtwa5u"}
890],["path",{d:"m15.1 10.1-1.4.8",key:"1r0b28"}],["path",{d:"M16.7 20.8c-2.6-.4-4.6-2.6-4.7-5.3-.2 2.6-2.1 4.8-4.7 5.2",key:"m7qszh"}],["path",{d:"M12 13.9v1.6",key:"zfyyim"}],["path",{d:"M13.5 5.4c-1-.2-2-.2-3 0",key:"1bi9q0"}],["path",{d:"M17 16.4c.7-.7 1.2-1.6 1.5-2.5",key:"1rhjqw"}],["path",{d:"M5.5 13.9c.3.9.8 1.8 1.5 2.5",key:"8gsud3"}]]);/** 891 * @license lucide-react v0.462.0 - ISC 892 * 893 * This source code is licensed under the ISC license. 894 * See the LICENSE file in the root directory of this source tree. 895 */const m6=S("Bird",[["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20",key:"oj1oa8"}],["path",{d:"m20 7 2 .5-2 .5",key:"12nv4d"}],["path",{d:"M10 18v3",key:"1yea0a"}],["path",{d:"M14 17.75V21",key:"1pymcb"}],["path",{d:"M7 18a6 6 0 0 0 3.84-10.61",key:"1npnn0"}]]);/** 896 * @license lucide-react v0.462.0 - ISC 897 * 898 * This source code is licensed under the ISC license. 899 * See the LICENSE file in the root directory of this source tree. 900 */const g6=S("Bitcoin",[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]]);/** 901 * @license lucide-react v0.462.0 - ISC 902 * 903 * This source code is licensed under the ISC license. 904 * See the LICENSE file in the root directory of this source tree. 905 */const y6=S("Blend",[["circle",{cx:"9",cy:"9",r:"7",key:"p2h5vp"}],["circle",{cx:"15",cy:"15",r:"7",key:"19ennj"}]]);/** 906 * @license lucide-react v0.462.0 - ISC 907 * 908 * This source code is licensed under the ISC license. 909 * See the LICENSE file in the root directory of this source tree. 910 */const v6=S("Blinds",[["path",{d:"M3 3h18",key:"o7r712"}],["path",{d:"M20 7H8",key:"gd2fo2"}],["path",{d:"M20 11H8",key:"1ynp89"}],["path",{d:"M10 19h10",key:"19hjk5"}],["path",{d:"M8 15h12",key:"1yqzne"}],["path",{d:"M4 3v14",key:"fggqzn"}],["circle",{cx:"4",cy:"19",r:"2",key:"p3m9r0"}]]);/** 911 * @license lucide-react v0.462.0 - ISC 912 * 913 * This source code is licensed under the ISC license. 914 * See the LICENSE file in the root directory of this source tree. 915 */const x6=S("Blocks",[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]]);/** 916 * @license lucide-react v0.462.0 - ISC 917 * 918 * This source code is licensed under the ISC license. 919 * See the LICENSE file in the root directory of this source tree. 920 */const b6=S("BluetoothConnected",[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}],["line",{x1:"18",x2:"21",y1:"12",y2:"12",key:"1rsjjs"}],["line",{x1:"3",x2:"6",y1:"12",y2:"12",key:"11yl8c"}]]);/** 921 * @license lucide-react v0.462.0 - ISC 922 * 923 * This source code is licensed under the ISC license. 924 * See the LICENSE file in the root directory of this source tree. 925 */const w6=S("BluetoothOff",[["path",{d:"m17 17-5 5V12l-5 5",key:"v5aci6"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M14.5 9.5 17 7l-5-5v4.5",key:"1kddfz"}]]);/** 926 * @license lucide-react v0.462.0 - ISC 927 * 928 * This source code is licensed under the ISC license. 929 * See the LICENSE file in the root directory of this source tree. 930 */const k6=S("BluetoothSearching",[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}],["path",{d:"M20.83 14.83a4 4 0 0 0 0-5.66",key:"k8tn1j"}],["path",{d:"M18 12h.01",key:"yjnet6"}]]);/** 931 * @license lucide-react v0.462.0 - ISC 932 * 933 * This source code is licensed under the ISC license. 934 * See the LICENSE file in the root directory of this source tree. 935 */const _6=S("Bluetooth",[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]]);/** 936 * @license lucide-react v0.462.0 - ISC 937 * 938 * This source code is licensed under the ISC license. 939 * See the LICENSE file in the root directory of this source tree. 940 */const S6=S("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/** 941 * @license lucide-react v0.462.0 - ISC 942 * 943 * This source code is licensed under the ISC license. 944 * See the LICENSE file in the root directory of this source tree. 945 */const j6=S("Bolt",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/** 946 * @license lucide-react v0.462.0 - ISC 947 * 948 * This source code is licensed under the ISC license. 949 * See the LICENSE file in the root directory of this source tree.
950 */const E6=S("Bomb",[["circle",{cx:"11",cy:"13",r:"9",key:"hd149"}],["path",{d:"M14.35 4.65 16.3 2.7a2.41 2.41 0 0 1 3.4 0l1.6 1.6a2.4 2.4 0 0 1 0 3.4l-1.95 1.95",key:"jp4j1b"}],["path",{d:"m22 2-1.5 1.5",key:"ay92ug"}]]);/** 951 * @license lucide-react v0.462.0 - ISC 952 * 953 * This source code is licensed under the ISC license. 954 * See the LICENSE file in the root directory of this source tree. 955 */const C6=S("Bone",[["path",{d:"M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z",key:"w610uw"}]]);/** 956 * @license lucide-react v0.462.0 - ISC 957 * 958 * This source code is licensed under the ISC license. 959 * See the LICENSE file in the root directory of this source tree. 960 */const Hb=S("BookA",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m8 13 4-7 4 7",key:"4rari8"}],["path",{d:"M9.1 11h5.7",key:"1gkovt"}]]);/** 961 * @license lucide-react v0.462.0 - ISC 962 * 963 * This source code is licensed under the ISC license. 964 * See the LICENSE file in the root directory of this source tree. 965 */const N6=S("BookAudio",[["path",{d:"M12 6v7",key:"1f6ttz"}],["path",{d:"M16 8v3",key:"gejaml"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 8v3",key:"1qzp49"}]]);/** 966 * @license lucide-react v0.462.0 - ISC 967 * 968 * This source code is licensed under the ISC license. 969 * See the LICENSE file in the root directory of this source tree. 970 */const Vb=S("BookCheck",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m9 9.5 2 2 4-4",key:"1dth82"}]]);/** 971 * @license lucide-react v0.462.0 - ISC 972 * 973 * This source code is licensed under the ISC license. 974 * See the LICENSE file in the root directory of this source tree. 975 */const T6=S("BookCopy",[["path",{d:"M2 16V4a2 2 0 0 1 2-2h11",key:"spzkk5"}],["path",{d:"M22 18H11a2 2 0 1 0 0 4h10.5a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5H11a2 2 0 0 0-2 2v12",key:"1wz07i"}],["path",{d:"M5 14H4a2 2 0 1 0 0 4h1",key:"16gqf9"}]]);/** 976 * @license lucide-react v0.462.0 - ISC 977 * 978 * This source code is licensed under the ISC license. 979 * See the LICENSE file in the root directory of this source tree. 980 */const yf=S("BookDashed",[["path",{d:"M12 17h2",key:"13u4lk"}],["path",{d:"M12 22h2",key:"kn7ki6"}],["path",{d:"M12 2h2",key:"cvn524"}],["path",{d:"M18 22h1a1 1 0 0 0 1-1",key:"w6gbqz"}],["path",{d:"M18 2h1a1 1 0 0 1 1 1v1",key:"1vpra5"}],["path",{d:"M20 15v2h-2",key:"fph276"}],["path",{d:"M20 8v3",key:"deu0bs"}],["path",{d:"M4 11V9",key:"v3xsx8"}],["path",{d:"M4 19.5V15",key:"6gr39e"}],["path",{d:"M4 5v-.5A2.5 2.5 0 0 1 6.5 2H8",key:"wywhs9"}],["path",{d:"M8 22H6.5a1 1 0 0 1 0-5H8",key:"1cu73q"}]]);/** 981 * @license lucide-react v0.462.0 - ISC 982 * 983 * This source code is licensed under the ISC license. 984 * See the LICENSE file in the root directory of this source tree. 985 */const A6=S("BookDown",[["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m9 10 3 3 3-3",key:"zt5b4y"}]]);/** 986 * @license lucide-react v0.462.0 - ISC 987 * 988 * This source code is licensed under the ISC license. 989 * See the LICENSE file in the root directory of this source tree. 990 */const M6=S("BookHeadphones",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 12v-2a4 4 0 0 1 8 0v2",key:"1vsqkj"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]]);/** 991 * @license lucide-react v0.462.0 - ISC 992 * 993 * This source code is licensed under the ISC license. 994 * See the LICENSE file in the root directory of this source tree. 995 */const I6=S("BookHeart",[["path",{d:"M16 8.2A2.22 2.22 0 0 0 13.8 6c-.8 0-1.4.3-1.8.9-.4-.6-1-.9-1.8-.9A2.22 2.22 0 0 0 8 8.2c0 .6.3 1.2.7 1.6A226.652 226.652 0 0 0 12 13a404 404 0 0 0 3.3-3.1 2.413 2.413 0 0 0 .7-1.7",key:"1t75a8"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 996 * @license lucide-react v0.462.0 - ISC 997 * 998 * This source code is licensed under the ISC license. 999 * See the LICENSE file in the root directory of this source tree. 1000 */const P6=S("BookImage",[["path",{d:"m20 13.7-2.1-2.1a2 2 0 0 0-2.8 0L9.7 17",key:"q6ojf0"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["circle",{cx:"10",cy:"8",r:"2",key:"2qkj4p"}]]);/** 1001 * @license lucide-react v0.462.0 - ISC 1002 * 1003 * This source code is licensed under the ISC license. 1004 * See the LICENSE file in the root directory of this source tree. 1005 */const L6=S("BookKey",[["path",{d:"m19 3 1 1",key:"ze14oc"}],["path",{d:"m20 2-4.5 4.5",key:"1sppr8"}],["path",{d:"M20 8v13a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"1ocbpn"}
1005],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H14",key:"1gfsgw"}],["circle",{cx:"14",cy:"8",r:"2",key:"u49eql"}]]);/** 1006 * @license lucide-react v0.462.0 - ISC 1007 * 1008 * This source code is licensed under the ISC license. 1009 * See the LICENSE file in the root directory of this source tree. 1010 */const O6=S("BookLock",[["path",{d:"M18 6V4a2 2 0 1 0-4 0v2",key:"1aquzs"}],["path",{d:"M20 15v6a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"1rkj32"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H10",key:"18wgow"}],["rect",{x:"12",y:"6",width:"8",height:"5",rx:"1",key:"73l30o"}]]);/** 1011 * @license lucide-react v0.462.0 - ISC 1012 * 1013 * This source code is licensed under the ISC license. 1014 * See the LICENSE file in the root directory of this source tree. 1015 */const R6=S("BookMarked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 1016 * @license lucide-react v0.462.0 - ISC 1017 * 1018 * This source code is licensed under the ISC license. 1019 * See the LICENSE file in the root directory of this source tree. 1020 */const D6=S("BookMinus",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/** 1021 * @license lucide-react v0.462.0 - ISC 1022 * 1023 * This source code is licensed under the ISC license. 1024 * See the LICENSE file in the root directory of this source tree. 1025 */const F6=S("BookOpenCheck",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** 1026 * @license lucide-react v0.462.0 - ISC 1027 * 1028 * This source code is licensed under the ISC license. 1029 * See the LICENSE file in the root directory of this source tree. 1030 */const $6=S("BookOpenText",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]]);/** 1031 * @license lucide-react v0.462.0 - ISC 1032 * 1033 * This source code is licensed under the ISC license. 1034 * See the LICENSE file in the root directory of this source tree. 1035 */const xr=S("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 1036 * @license lucide-react v0.462.0 - ISC 1037 * 1038 * This source code is licensed under the ISC license. 1039 * See the LICENSE file in the root directory of this source tree. 1040 */const B6=S("BookPlus",[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/** 1041 * @license lucide-react v0.462.0 - ISC 1042 * 1043 * This source code is licensed under the ISC license. 1044 * See the LICENSE file in the root directory of this source tree. 1045 */const z6=S("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]);/** 1046 * @license lucide-react v0.462.0 - ISC 1047 * 1048 * This source code is licensed under the ISC license. 1049 * See the LICENSE file in the root directory of this source tree. 1050 */const U6=S("BookType",[["path",{d:"M10 13h4",key:"ytezjc"}],["path",{d:"M12 6v7",key:"1f6ttz"}],["path",{d:"M16 8V6H8v2",key:"x8j6u4"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 1051 * @license lucide-react v0.462.0 - ISC 1052 * 1053 * This source code is licensed under the ISC license. 1054 * See the LICENSE file in the root directory of this source tree. 1055 */const q6=S("BookUp2",[["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M18 2h1a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"161d7n"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2",key:"1lorq7"}],["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]);/** 1056 * @license lucide-react v0.462.0 - ISC 1057 * 1058 * This source code is licensed under the ISC license. 1059 * See the LICENSE file in the root directory of this source tree. 1060 */const H6=S("BookUp",[["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}]]);/** 1061 * @license lucide-react v0.462.0 - ISC 1062 * 1063 * This source code is licensed under the ISC license. 1064 * See the LICENSE file in the root directory of this source tree. 1065 */const V6=S("BookUser",[["path",{d:"M15 13a3 3 0 1 0-6 0",key:"10j68g"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}]]);/** 1066 * @license lucide-react v0.462.0 - ISC 1067 * 1068 * This source code is licensed under the ISC license. 1069 * See the LICENSE file in the root directory of this source tree. 1070 */const W6=S("BookX",[["path",{d:"m14.5 7-5 5",key:"dy991v"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m9.5 7 5 5",key:"s45iea"}]]);/** 1071 * @license lucide-react v0.462.0 - ISC 1072 * 1073 * This source code is licensed under the ISC license. 1074 * See the LICENSE file in the root directory of this source tree. 1075 */const hu=S("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 1076 * @license lucide-react v0.462.0 - ISC 1077 * 1078 * This source code is licensed under the ISC license. 1079 * See the LICENSE file in the root directory of this source tree. 1080 */const G6=S("BookmarkCheck",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]]);/** 1081 * @license lucide-react v0.462.0 - ISC 1082 * 1083 * This source code is licensed under the ISC license. 1084 * See the LICENSE file in the root directory of this source tree. 1085 */const K6=S("BookmarkMinus",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]]);/** 1086 * @license lucide-react v0.462.0 - ISC 1087 * 1088 * This source code is licensed under the ISC license. 1089 * See the LICENSE file in the root directory of this source tree. 1090 */const Y6=S("BookmarkPlus",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]]);/** 1091 * @license lucide-react v0.462.0 - ISC 1092 * 1093 * This source code is licensed under the ISC license. 1094 * See the LICENSE file in the root directory of this source tree. 1095 */const X6=S("BookmarkX",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m14.5 7.5-5 5",key:"3lb6iw"}],["path",{d:"m9.5 7.5 5 5",key:"ko136h"}]]);/** 1096 * @license lucide-react v0.462.0 - ISC 1097 * 1098 * This source code is licensed under the ISC license. 1099 * See the LICENSE file in the root directory of this source tree. 1100 */const Z6=S("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/** 1101 * @license lucide-react v0.462.0 - ISC 1102 * 1103 * This source code is licensed under the ISC license. 1104 * See the LICENSE file in the root directory of this source tree. 1105 */const Q6=S("BoomBox",[["path",{d:"M4 9V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"vvzvr1"}],["path",{d:"M8 8v1",key:"xcqmfk"}],["path",{d:"M12 8v1",key:"1rj8u4"}],["path",{d:"M16 8v1",key:"1q12zr"}],["rect",{width:"20",height:"12",x:"2",y:"9",rx:"2",key:"igpb89"}],["circle",{cx:"8",cy:"15",r:"2",key:"fa4a8s"}],["circle",{cx:"16",cy:"15",r:"2",key:"14c3ya"}]]);/** 1106 * @license lucide-react v0.462.0 - ISC 1107 * 1108 * This source code is licensed under the ISC license. 1109 * See the LICENSE file in the root directory of this source tree. 1110 */const J6=S("BotMessageSquare",[["path",{d:"M12 6V2H8",key:"1155em"}],["path",{d:"m8 18-4 4V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2Z",key:"w2lp3e"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M9 11v2",key:"1ueba0"}],["path",{d:"M15 11v2",key:"i11awn"}],["path",{d:"M20 12h2",key:"1q8mjw"}]]);/** 1111 * @license lucide-react v0.462.0 - ISC 1112 * 1113 * This source code is licensed under the ISC license. 1114 * See the LICENSE file in the root directory of this source tree. 1115 */const eE=S("BotOff",[["path",{d:"M13.67 8H18a2 2 0 0 1 2 2v4.33",key:"7az073"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M22 22 2 2",key:"1r8tn9"}],["path",{d:"M8 8H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 1.414-.586",key:"s09a7a"}],["path",{d:"M9 13v2",key:"rq6x2g"}],["path",{d:"M9.67 4H12v2.33",key:"110xot"}]]);/** 1116 * @license lucide-react v0.462.0 - ISC 1117 * 1118 * This source code is licensed under the ISC license. 1119 * See the LICENSE file in the root directory of this source tree. 1120 */const Wb=S("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** 1121 * @license lucide-react v0.462.0 - ISC 1122 * 1123 * This source code is licensed under the ISC license. 1124 * See the LICENSE file in the root directory of this source tree. 1125 */const tE=S("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/** 1126 * @license lucide-react v0.462.0 - ISC 1127 * 1128 * This source code is licensed under the ISC license. 1129 * See the LICENSE file in the root directory of this source tree. 1130 */const rE=S("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** 1131 * @license lucide-react v0.462.0 - ISC 1132 * 1133 * This source code is licensed under the ISC license. 1134 * See the LICENSE file in the root directory of this source tree. 1135 */const vf=S("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/** 1136 * @license lucide-react v0.462.0 - ISC 1137 * 1138 * This source code is licensed under the ISC license. 1139 * See the LICENSE file in the root directory of this source tree. 1140 */const nE=S("Brackets",[["path",{d:"M16 3h3v18h-3",key:"1yor1f"}],["path",{d:"M8 21H5V3h3",key:"1qrfwo"}]]);/** 1141 * @license lucide-react v0.462.0 - ISC 1142 * 1143 * This source code is licensed under the ISC license. 1144 * See the LICENSE file in the root directory of this source tree. 1145 */const aE=S("BrainCircuit",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}
1145],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]]);/** 1146 * @license lucide-react v0.462.0 - ISC 1147 * 1148 * This source code is licensed under the ISC license. 1149 * See the LICENSE file in the root directory of this source tree. 1150 */const iE=S("BrainCog",[["path",{d:"M12 5a3 3 0 1 0-5.997.142 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588 4 4 0 0 0 7.636 2.106 3.2 3.2 0 0 0 .164-.546c.028-.13.306-.13.335 0a3.2 3.2 0 0 0 .163.546 4 4 0 0 0 7.636-2.106 4 4 0 0 0 .556-6.588 4 4 0 0 0-2.526-5.77A3 3 0 1 0 12 5",key:"1kgmhc"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m15.7 10.4-.9.4",key:"ayzo6p"}],["path",{d:"m9.2 13.2-.9.4",key:"1uzb3g"}],["path",{d:"m13.6 15.7-.4-.9",key:"11ifqf"}],["path",{d:"m10.8 9.2-.4-.9",key:"1pmk2v"}],["path",{d:"m15.7 13.5-.9-.4",key:"7ng02m"}],["path",{d:"m9.2 10.9-.9-.4",key:"1x66zd"}],["path",{d:"m10.5 15.7.4-.9",key:"3js94g"}],["path",{d:"m13.1 9.2.4-.9",key:"18n7mc"}]]);/** 1151 * @license lucide-react v0.462.0 - ISC 1152 * 1153 * This source code is licensed under the ISC license. 1154 * See the LICENSE file in the root directory of this source tree. 1155 */const sE=S("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 1156 * @license lucide-react v0.462.0 - ISC 1157 * 1158 * This source code is licensed under the ISC license. 1159 * See the LICENSE file in the root directory of this source tree. 1160 */const oE=S("BrickWall",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]]);/** 1161 * @license lucide-react v0.462.0 - ISC 1162 * 1163 * This source code is licensed under the ISC license. 1164 * See the LICENSE file in the root directory of this source tree. 1165 */const lE=S("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 1166 * @license lucide-react v0.462.0 - ISC 1167 * 1168 * This source code is licensed under the ISC license. 1169 * See the LICENSE file in the root directory of this source tree. 1170 */const cE=S("BriefcaseConveyorBelt",[["path",{d:"M10 20v2",key:"1n8e1g"}],["path",{d:"M14 20v2",key:"1lq872"}],["path",{d:"M18 20v2",key:"10uadw"}],["path",{d:"M21 20H3",key:"kdqkdp"}],["path",{d:"M6 20v2",key:"a9bc87"}],["path",{d:"M8 16V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v12",key:"17n9tx"}],["rect",{x:"4",y:"6",width:"16",height:"10",rx:"2",key:"1097i5"}]]);/** 1171 * @license lucide-react v0.462.0 - ISC 1172 * 1173 * This source code is licensed under the ISC license. 1174 * See the LICENSE file in the root directory of this source tree. 1175 */const uE=S("BriefcaseMedical",[["path",{d:"M12 11v4",key:"a6ujw6"}],["path",{d:"M14 13h-4",key:"1pl8zg"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M18 6v14",key:"1mu4gy"}],["path",{d:"M6 6v14",key:"1s15cj"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 1176 * @license lucide-react v0.462.0 - ISC 1177 * 1178 * This source code is licensed under the ISC license. 1179 * See the LICENSE file in the root directory of this source tree. 1180 */const dE=S("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 1181 * @license lucide-react v0.462.0 - ISC 1182 * 1183 * This source code is licensed under the ISC license. 1184 * See the LICENSE file in the root directory of this source tree.
1185 */const hE=S("BringToFront",[["rect",{x:"8",y:"8",width:"8",height:"8",rx:"2",key:"yj20xf"}],["path",{d:"M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2",key:"1ltk23"}],["path",{d:"M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2",key:"1q24h9"}]]);/** 1186 * @license lucide-react v0.462.0 - ISC 1187 * 1188 * This source code is licensed under the ISC license. 1189 * See the LICENSE file in the root directory of this source tree. 1190 */const fE=S("Brush",[["path",{d:"m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08",key:"1styjt"}],["path",{d:"M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z",key:"z0l1mu"}]]);/** 1191 * @license lucide-react v0.462.0 - ISC 1192 * 1193 * This source code is licensed under the ISC license. 1194 * See the LICENSE file in the root directory of this source tree. 1195 */const pE=S("BugOff",[["path",{d:"M15 7.13V6a3 3 0 0 0-5.14-2.1L8 2",key:"vl8zik"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M22 13h-4v-2a4 4 0 0 0-4-4h-1.3",key:"1ou0bd"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M7.7 7.7A4 4 0 0 0 6 11v3a6 6 0 0 0 11.13 3.13",key:"1njkjs"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}]]);/** 1196 * @license lucide-react v0.462.0 - ISC 1197 * 1198 * This source code is licensed under the ISC license. 1199 * See the LICENSE file in the root directory of this source tree. 1200 */const mE=S("BugPlay",[["path",{d:"M12.765 21.522a.5.5 0 0 1-.765-.424v-8.196a.5.5 0 0 1 .765-.424l5.878 3.674a1 1 0 0 1 0 1.696z",key:"17shqo"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M18 11a4 4 0 0 0-4-4h-4a4 4 0 0 0-4 4v3a6.1 6.1 0 0 0 2 4.5",key:"1tjixy"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}]]);/** 1201 * @license lucide-react v0.462.0 - ISC 1202 * 1203 * This source code is licensed under the ISC license. 1204 * See the LICENSE file in the root directory of this source tree. 1205 */const gE=S("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);/** 1206 * @license lucide-react v0.462.0 - ISC 1207 * 1208 * This source code is licensed under the ISC license. 1209 * See the LICENSE file in the root directory of this source tree. 1210 */const yE=S("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 1211 * @license lucide-react v0.462.0 - ISC 1212 * 1213 * This source code is licensed under the ISC license. 1214 * See the LICENSE file in the root directory of this source tree. 1215 */const vE=S("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/** 1216 * @license lucide-react v0.462.0 - ISC 1217 * 1218 * This source code is licensed under the ISC license. 1219 * See the LICENSE file in the root directory of this source tree. 1220 */const xE=S("BusFront",[["path",{d:"M4 6 2 7",key:"1mqr15"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"m22 7-2-1",key:"1umjhc"}],["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M6 19v2",key:"1loha6"}],["path",{d:"M18 21v-2",key:"sqyl04"}]]);/** 1221 * @license lucide-react v0.462.0 - ISC 1222 * 1223 * This source code is licensed under the ISC license. 1224 * See the LICENSE file in the root directory of this source tree. 1225 */const bE=S("Bus",[["path",{d:"M8 6v6",key:"18i7km"}],["path",{d:"M15 6v6",key:"1sg6z9"}],["path",{d:"M2 12h19.6",key:"de5uta"}
1225],["path",{d:"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3",key:"1wwztk"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}],["path",{d:"M9 18h5",key:"lrx6i"}],["circle",{cx:"16",cy:"18",r:"2",key:"1v4tcr"}]]);/** 1226 * @license lucide-react v0.462.0 - ISC 1227 * 1228 * This source code is licensed under the ISC license. 1229 * See the LICENSE file in the root directory of this source tree. 1230 */const wE=S("CableCar",[["path",{d:"M10 3h.01",key:"lbucoy"}],["path",{d:"M14 2h.01",key:"1k8aa1"}],["path",{d:"m2 9 20-5",key:"1kz0j5"}],["path",{d:"M12 12V6.5",key:"1vbrij"}],["rect",{width:"16",height:"10",x:"4",y:"12",rx:"3",key:"if91er"}],["path",{d:"M9 12v5",key:"3anwtq"}],["path",{d:"M15 12v5",key:"5xh3zn"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/** 1231 * @license lucide-react v0.462.0 - ISC 1232 * 1233 * This source code is licensed under the ISC license. 1234 * See the LICENSE file in the root directory of this source tree. 1235 */const kE=S("Cable",[["path",{d:"M17 21v-2a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1",key:"10bnsj"}],["path",{d:"M19 15V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V9",key:"1eqmu1"}],["path",{d:"M21 21v-2h-4",key:"14zm7j"}],["path",{d:"M3 5h4V3",key:"z442eg"}],["path",{d:"M7 5a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1V3",key:"ebdjd7"}]]);/** 1236 * @license lucide-react v0.462.0 - ISC 1237 * 1238 * This source code is licensed under the ISC license. 1239 * See the LICENSE file in the root directory of this source tree. 1240 */const _E=S("CakeSlice",[["circle",{cx:"9",cy:"7",r:"2",key:"1305pl"}],["path",{d:"M7.2 7.9 3 11v9c0 .6.4 1 1 1h16c.6 0 1-.4 1-1v-9c0-2-3-6-7-8l-3.6 2.6",key:"xle13f"}],["path",{d:"M16 13H3",key:"1wpj08"}],["path",{d:"M16 17H3",key:"3lvfcd"}]]);/** 1241 * @license lucide-react v0.462.0 - ISC 1242 * 1243 * This source code is licensed under the ISC license. 1244 * See the LICENSE file in the root directory of this source tree. 1245 */const SE=S("Cake",[["path",{d:"M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8",key:"1w3rig"}],["path",{d:"M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1",key:"n2jgmb"}],["path",{d:"M2 21h20",key:"1nyx9w"}],["path",{d:"M7 8v3",key:"1qtyvj"}],["path",{d:"M12 8v3",key:"hwp4zt"}],["path",{d:"M17 8v3",key:"1i6e5u"}],["path",{d:"M7 4h.01",key:"1bh4kh"}],["path",{d:"M12 4h.01",key:"1ujb9j"}],["path",{d:"M17 4h.01",key:"1upcoc"}]]);/** 1246 * @license lucide-react v0.462.0 - ISC 1247 * 1248 * This source code is licensed under the ISC license. 1249 * See the LICENSE file in the root directory of this source tree. 1250 */const jE=S("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/** 1251 * @license lucide-react v0.462.0 - ISC 1252 * 1253 * This source code is licensed under the ISC license. 1254 * See the LICENSE file in the root directory of this source tree. 1255 */const EE=S("Calendar1",[["path",{d:"M11 14h1v4",key:"fy54vd"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]);/** 1256 * @license lucide-react v0.462.0 - ISC 1257 * 1258 * This source code is licensed under the ISC license. 1259 * See the LICENSE file in the root directory of this source tree. 1260 */const CE=S("CalendarArrowDown",[["path",{d:"m14 18 4 4 4-4",key:"1waygx"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M18 14v8",key:"irew45"}],["path",{d:"M21 11.354V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.343",key:"bse4f3"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]]);/** 1261 * @license lucide-react v0.462.0 - ISC 1262 * 1263 * This source code is licensed under the ISC license. 1264 * See the LICENSE file in the root directory of this source tree. 1265 */const NE=S("CalendarArrowUp",[["path",{d:"m14 18 4-4 4 4",key:"ftkppy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M18 22v-8",key:"su0gjh"}],["path",{d:"M21 11.343V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9",key:"1exg90"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]]);/** 1266 * @license lucide-react v0.462.0 - ISC 1267 * 1268 * This source code is licensed under the ISC license. 1269 * See the LICENSE file in the root directory of this source tree. 1270 */const TE=S("CalendarCheck2",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 14V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"bce9hv"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m16 20 2 2 4-4",key:"13tcca"}]]);/** 1271 * @license lucide-react v0.462.0 - ISC 1272 * 1273 * This source code is licensed under the ISC license. 1274 * See the LICENSE file in the root directory of this source tree. 1275 */const AE=S("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);/** 1276 * @license lucide-react v0.462.0 - ISC 1277 * 1278 * This source code is licensed under the ISC license. 1279 * See the LICENSE file in the root directory of this source tree. 1280 */const Gb=S("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}
1280],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/** 1281 * @license lucide-react v0.462.0 - ISC 1282 * 1283 * This source code is licensed under the ISC license. 1284 * See the LICENSE file in the root directory of this source tree. 1285 */const ME=S("CalendarCog",[["path",{d:"m15.2 16.9-.9-.4",key:"1r0w5f"}],["path",{d:"m15.2 19.1-.9.4",key:"j188fs"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"m16.9 15.2-.4-.9",key:"699xu"}],["path",{d:"m16.9 20.8-.4.9",key:"dfjc4z"}],["path",{d:"m19.5 14.3-.4.9",key:"1eb35c"}],["path",{d:"m19.5 21.7-.4-.9",key:"1tonu5"}],["path",{d:"M21 10.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"11kmuh"}],["path",{d:"m21.7 16.5-.9.4",key:"1knoei"}],["path",{d:"m21.7 19.5-.9-.4",key:"q4dx6b"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]]);/** 1286 * @license lucide-react v0.462.0 - ISC 1287 * 1288 * This source code is licensed under the ISC license. 1289 * See the LICENSE file in the root directory of this source tree. 1290 */const IE=S("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 1291 * @license lucide-react v0.462.0 - ISC 1292 * 1293 * This source code is licensed under the ISC license. 1294 * See the LICENSE file in the root directory of this source tree. 1295 */const PE=S("CalendarFold",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 17V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11Z",key:"kg77oy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M15 22v-4a2 2 0 0 1 2-2h4",key:"1gnbqr"}]]);/** 1296 * @license lucide-react v0.462.0 - ISC 1297 * 1298 * This source code is licensed under the ISC license. 1299 * See the LICENSE file in the root directory of this source tree. 1300 */const LE=S("CalendarHeart",[["path",{d:"M3 10h18V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7",key:"136lmk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21.29 14.7a2.43 2.43 0 0 0-2.65-.52c-.3.12-.57.3-.8.53l-.34.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L17.5 22l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z",key:"1t7hil"}]]);/** 1301 * @license lucide-react v0.462.0 - ISC 1302 * 1303 * This source code is licensed under the ISC license. 1304 * See the LICENSE file in the root directory of this source tree. 1305 */const OE=S("CalendarMinus2",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M10 16h4",key:"17e571"}]]);/** 1306 * @license lucide-react v0.462.0 - ISC 1307 * 1308 * This source code is licensed under the ISC license. 1309 * See the LICENSE file in the root directory of this source tree. 1310 */const RE=S("CalendarMinus",[["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 15V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5",key:"1scpom"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]]);/** 1311 * @license lucide-react v0.462.0 - ISC 1312 * 1313 * This source code is licensed under the ISC license. 1314 * See the LICENSE file in the root directory of this source tree. 1315 */const DE=S("CalendarOff",[["path",{d:"M4.2 4.2A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18",key:"16swn3"}],["path",{d:"M21 15.5V6a2 2 0 0 0-2-2H9.5",key:"yhw86o"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h7",key:"1wap6i"}],["path",{d:"M21 10h-5.5",key:"quycpq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 1316 * @license lucide-react v0.462.0 - ISC 1317 * 1318 * This source code is licensed under the ISC license. 1319 * See the LICENSE file in the root directory of this source tree. 1320 */const FE=S("CalendarPlus2",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M10 16h4",key:"17e571"}],["path",{d:"M12 14v4",key:"1thi36"}]]);/** 1321 * @license lucide-react v0.462.0 - ISC 1322 * 1323 * This source code is licensed under the ISC license. 1324 * See the LICENSE file in the root directory of this source tree. 1325 */const $E=S("CalendarPlus",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}]]);/** 1326 * @license lucide-react v0.462.0 - ISC 1327 * 1328 * This source code is licensed under the ISC license. 1329 * See the LICENSE file in the root directory of this source tree.
1330 */const BE=S("CalendarRange",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]]);/** 1331 * @license lucide-react v0.462.0 - ISC 1332 * 1333 * This source code is licensed under the ISC license. 1334 * See the LICENSE file in the root directory of this source tree. 1335 */const zE=S("CalendarSearch",[["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 11.75V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.25",key:"1jrsq6"}],["path",{d:"m22 22-1.875-1.875",key:"13zax7"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]]);/** 1336 * @license lucide-react v0.462.0 - ISC 1337 * 1338 * This source code is licensed under the ISC license. 1339 * See the LICENSE file in the root directory of this source tree. 1340 */const UE=S("CalendarSync",[["path",{d:"M11 10v4h4",key:"172dkj"}],["path",{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"vu0qm5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"1qgeyt"}],["path",{d:"M21 22v-4h-4",key:"hrummi"}],["path",{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3",key:"mctw84"}],["path",{d:"M3 10h4",key:"1el30a"}],["path",{d:"M8 2v4",key:"1cmpym"}]]);/** 1341 * @license lucide-react v0.462.0 - ISC 1342 * 1343 * This source code is licensed under the ISC license. 1344 * See the LICENSE file in the root directory of this source tree. 1345 */const qE=S("CalendarX2",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m17 22 5-5",key:"1k6ppv"}],["path",{d:"m17 17 5 5",key:"p7ous7"}]]);/** 1346 * @license lucide-react v0.462.0 - ISC 1347 * 1348 * This source code is licensed under the ISC license. 1349 * See the LICENSE file in the root directory of this source tree. 1350 */const HE=S("CalendarX",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m14 14-4 4",key:"rymu2i"}],["path",{d:"m10 14 4 4",key:"3sz06r"}]]);/** 1351 * @license lucide-react v0.462.0 - ISC 1352 * 1353 * This source code is licensed under the ISC license. 1354 * See the LICENSE file in the root directory of this source tree. 1355 */const ic=S("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 1356 * @license lucide-react v0.462.0 - ISC 1357 * 1358 * This source code is licensed under the ISC license. 1359 * See the LICENSE file in the root directory of this source tree. 1360 */const VE=S("CameraOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16",key:"qmtpty"}],["path",{d:"M9.5 4h5L17 7h3a2 2 0 0 1 2 2v7.5",key:"1ufyfc"}],["path",{d:"M14.121 15.121A3 3 0 1 1 9.88 10.88",key:"11zox6"}]]);/** 1361 * @license lucide-react v0.462.0 - ISC 1362 * 1363 * This source code is licensed under the ISC license. 1364 * See the LICENSE file in the root directory of this source tree. 1365 */const WE=S("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 1366 * @license lucide-react v0.462.0 - ISC 1367 * 1368 * This source code is licensed under the ISC license. 1369 * See the LICENSE file in the root directory of this source tree. 1370 */const GE=S("CandyCane",[["path",{d:"M5.7 21a2 2 0 0 1-3.5-2l8.6-14a6 6 0 0 1 10.4 6 2 2 0 1 1-3.464-2 2 2 0 1 0-3.464-2Z",key:"isaq8g"}],["path",{d:"M17.75 7 15 2.1",key:"12x7e8"}],["path",{d:"M10.9 4.8 13 9",key:"100a87"}],["path",{d:"m7.9 9.7 2 4.4",key:"ntfhaj"}],["path",{d:"M4.9 14.7 7 18.9",key:"1x43jy"}]]);/** 1371 * @license lucide-react v0.462.0 - ISC 1372 * 1373 * This source code is licensed under the ISC license. 1374 * See the LICENSE file in the root directory of this source tree. 1375 */const KE=S("CandyOff",[["path",{d:"m8.5 8.5-1 1a4.95 4.95 0 0 0 7 7l1-1",key:"1ff4ui"}],["path",{d:"M11.843 6.187A4.947 4.947 0 0 1 16.5 7.5a4.947 4.947 0 0 1 1.313 4.657",key:"1sbrv4"}],["path",{d:"M14 16.5V14",key:"1maf8j"}],["path",{d:"M14 6.5v1.843",key:"1a6u6t"}],["path",{d:"M10 10v7.5",key:"80pj65"}],["path",{d:"m16 7 1-5 1.367.683A3 3 0 0 0 19.708 3H21v1.292a3 3 0 0 0 .317 1.341L22 7l-5 1",key:"11a9mt"}],["path",{d:"m8 17-1 5-1.367-.683A3 3 0 0 0 4.292 21H3v-1.292a3 3 0 0 0-.317-1.341L2 17l5-1",key:"3mjmon"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 1376 * @license lucide-react v0.462.0 - ISC 1377 * 1378 * This source code is licensed under the ISC license. 1379 * See the LICENSE file in the root directory of this source tree. 1380 */const YE=S("Candy",[["path",{d:"m9.5 7.5-2 2a4.95 4.95 0 1 0 7 7l2-2a4.95 4.95 0 1 0-7-7Z",key:"ue6khb"}],["path",{d:"M14 6.5v10",key:"5xnk7c"}],["path",{d:"M10 7.5v10",key:"1uew51"}],["path",{d:"m16 7 1-5 1.37.68A3 3 0 0 0 19.7 3H21v1.3c0 .46.1.92.32 1.33L22 7l-5 1",key:"b9cp6k"}],["path",{d:"m8 17-1 5-1.37-.68A3 3 0 0 0 4.3 21H3v-1.3a3 3 0 0 0-.32-1.33L2 17l5-1",key:"5lney8"}]]);/** 1381 * @license lucide-react v0.462.0 - ISC 1382 * 1383 * This source code is licensed under the ISC license. 1384 * See the LICENSE file in the root directory of this source tree. 1385 */const XE=S("Cannabis",[["path",{d:"M12 22v-4",key:"1utk9m"}],["path",{d:"M7 12c-1.5 0-4.5 1.5-5 3 3.5 1.5 6 1 6 1-1.5 1.5-2 3.5-2 5 2.5 0 4.5-1.5 6-3 1.5 1.5 3.5 3 6 3 0-1.5-.5-3.5-2-5 0 0 2.5.5 6-1-.5-1.5-3.5-3-5-3 1.5-1 4-4 4-6-2.5 0-5.5 1.5-7 3 0-2.5-.5-5-2-7-1.5 2-2 4.5-2 7-1.5-1.5-4.5-3-7-3 0 2 2.5 5 4 6",key:"1mezod"}]]);/** 1386 * @license lucide-react v0.462.0 - ISC 1387 * 1388 * This source code is licensed under the ISC license. 1389 * See the LICENSE file in the root directory of this source tree. 1390 */const ZE=S("CaptionsOff",[["path",{d:"M10.5 5H19a2 2 0 0 1 2 2v8.5",key:"jqtk4d"}],["path",{d:"M17 11h-.5",key:"1961ue"}
1390],["path",{d:"M19 19H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2",key:"1keqsi"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M7 11h4",key:"1o1z6v"}],["path",{d:"M7 15h2.5",key:"1ina1g"}]]);/** 1391 * @license lucide-react v0.462.0 - ISC 1392 * 1393 * This source code is licensed under the ISC license. 1394 * See the LICENSE file in the root directory of this source tree. 1395 */const xf=S("Captions",[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]]);/** 1396 * @license lucide-react v0.462.0 - ISC 1397 * 1398 * This source code is licensed under the ISC license. 1399 * See the LICENSE file in the root directory of this source tree. 1400 */const QE=S("CarFront",[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]);/** 1401 * @license lucide-react v0.462.0 - ISC 1402 * 1403 * This source code is licensed under the ISC license. 1404 * See the LICENSE file in the root directory of this source tree. 1405 */const JE=S("CarTaxiFront",[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]);/** 1406 * @license lucide-react v0.462.0 - ISC 1407 * 1408 * This source code is licensed under the ISC license. 1409 * See the LICENSE file in the root directory of this source tree. 1410 */const eC=S("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/** 1411 * @license lucide-react v0.462.0 - ISC 1412 * 1413 * This source code is licensed under the ISC license. 1414 * See the LICENSE file in the root directory of this source tree. 1415 */const tC=S("Caravan",[["path",{d:"M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2",key:"19jm3t"}],["path",{d:"M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2",key:"13hakp"}],["path",{d:"M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9",key:"1crci8"}],["circle",{cx:"8",cy:"19",r:"2",key:"t8fc5s"}]]);/** 1416 * @license lucide-react v0.462.0 - ISC 1417 * 1418 * This source code is licensed under the ISC license. 1419 * See the LICENSE file in the root directory of this source tree. 1420 */const rC=S("Carrot",[["path",{d:"M2.27 21.7s9.87-3.5 12.73-6.36a4.5 4.5 0 0 0-6.36-6.37C5.77 11.84 2.27 21.7 2.27 21.7zM8.64 14l-2.05-2.04M15.34 15l-2.46-2.46",key:"rfqxbe"}],["path",{d:"M22 9s-1.33-2-3.5-2C16.86 7 15 9 15 9s1.33 2 3.5 2S22 9 22 9z",key:"6b25w4"}],["path",{d:"M15 2s-2 1.33-2 3.5S15 9 15 9s2-1.84 2-3.5C17 3.33 15 2 15 2z",key:"fn65lo"}]]);/** 1421 * @license lucide-react v0.462.0 - ISC 1422 * 1423 * This source code is licensed under the ISC license. 1424 * See the LICENSE file in the root directory of this source tree. 1425 */const nC=S("CaseLower",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}]]);/** 1426 * @license lucide-react v0.462.0 - ISC 1427 * 1428 * This source code is licensed under the ISC license. 1429 * See the LICENSE file in the root directory of this source tree. 1430 */const aC=S("CaseSensitive",[["path",{d:"m3 15 4-8 4 8",key:"1vwr6u"}],["path",{d:"M4 13h6",key:"1r9ots"}],["circle",{cx:"18",cy:"12",r:"3",key:"1kchzo"}],["path",{d:"M21 9v6",key:"anns31"}]]);/** 1431 * @license lucide-react v0.462.0 - ISC 1432 * 1433 * This source code is licensed under the ISC license. 1434 * See the LICENSE file in the root directory of this source tree. 1435 */const iC=S("CaseUpper",[["path",{d:"m3 15 4-8 4 8",key:"1vwr6u"}],["path",{d:"M4 13h6",key:"1r9ots"}],["path",{d:"M15 11h4.5a2 2 0 0 1 0 4H15V7h4a2 2 0 0 1 0 4",key:"1sqfas"}]]);/** 1436 * @license lucide-react v0.462.0 - ISC 1437 * 1438 * This source code is licensed under the ISC license. 1439 * See the LICENSE file in the root directory of this source tree. 1440 */const sC=S("CassetteTape",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["circle",{cx:"8",cy:"10",r:"2",key:"1xl4ub"}],["path",{d:"M8 12h8",key:"1wcyev"}],["circle",{cx:"16",cy:"10",r:"2",key:"r14t7q"}],["path",{d:"m6 20 .7-2.9A1.4 1.4 0 0 1 8.1 16h7.8a1.4 1.4 0 0 1 1.4 1l.7 3",key:"l01ucn"}]]);/** 1441 * @license lucide-react v0.462.0 - ISC 1442 * 1443 * This source code is licensed under the ISC license. 1444 * See the LICENSE file in the root directory of this source tree. 1445 */const oC=S("Cast",[["path",{d:"M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6",key:"3zrzxg"}],["path",{d:"M2 12a9 9 0 0 1 8 8",key:"g6cvee"}],["path",{d:"M2 16a5 5 0 0 1 4 4",key:"1y1dii"}],["line",{x1:"2",x2:"2.01",y1:"20",y2:"20",key:"xu2jvo"}]]);/** 1446 * @license lucide-react v0.462.0 - ISC 1447 * 1448 * This source code is licensed under the ISC license. 1449 * See the LICENSE file in the root directory of this source tree. 1450 */const lC=S("Castle",[["path",{d:"M22 20v-9H2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2Z",key:"109fe4"}],["path",{d:"M18 11V4H6v7",key:"mon5oj"}],["path",{d:"M15 22v-4a3 3 0 0 0-3-3a3 3 0 0 0-3 3v4",key:"1k4jtn"}],["path",{d:"M22 11V9",key:"3zbp94"}],["path",{d:"M2 11V9",key:"1x5rnq"}],["path",{d:"M6 4V2",key:"1rsq15"}],["path",{d:"M18 4V2",key:"1jsdo1"}
1450],["path",{d:"M10 4V2",key:"75d9ly"}],["path",{d:"M14 4V2",key:"8nj3z6"}]]);/** 1451 * @license lucide-react v0.462.0 - ISC 1452 * 1453 * This source code is licensed under the ISC license. 1454 * See the LICENSE file in the root directory of this source tree. 1455 */const cC=S("Cat",[["path",{d:"M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z",key:"x6xyqk"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M11.25 16.25h1.5L12 17l-.75-.75Z",key:"12kq1m"}]]);/** 1456 * @license lucide-react v0.462.0 - ISC 1457 * 1458 * This source code is licensed under the ISC license. 1459 * See the LICENSE file in the root directory of this source tree. 1460 */const uC=S("Cctv",[["path",{d:"M16.75 12h3.632a1 1 0 0 1 .894 1.447l-2.034 4.069a1 1 0 0 1-1.708.134l-2.124-2.97",key:"ir91b5"}],["path",{d:"M17.106 9.053a1 1 0 0 1 .447 1.341l-3.106 6.211a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.92 2.92 0 0 1 3.92-1.3z",key:"jlp8i1"}],["path",{d:"M2 19h3.76a2 2 0 0 0 1.8-1.1L9 15",key:"19bib8"}],["path",{d:"M2 21v-4",key:"l40lih"}],["path",{d:"M7 9h.01",key:"19b3jx"}]]);/** 1461 * @license lucide-react v0.462.0 - ISC 1462 * 1463 * This source code is licensed under the ISC license. 1464 * See the LICENSE file in the root directory of this source tree. 1465 */const bf=S("ChartArea",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]);/** 1466 * @license lucide-react v0.462.0 - ISC 1467 * 1468 * This source code is licensed under the ISC license. 1469 * See the LICENSE file in the root directory of this source tree. 1470 */const wf=S("ChartBarBig",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"7",y:"13",width:"9",height:"4",rx:"1",key:"1iip1u"}],["rect",{x:"7",y:"5",width:"12",height:"4",rx:"1",key:"1anskk"}]]);/** 1471 * @license lucide-react v0.462.0 - ISC 1472 * 1473 * This source code is licensed under the ISC license. 1474 * See the LICENSE file in the root directory of this source tree. 1475 */const dC=S("ChartBarDecreasing",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11h8",key:"1feolt"}],["path",{d:"M7 16h3",key:"ur6vzw"}],["path",{d:"M7 6h12",key:"sz5b0d"}]]);/** 1476 * @license lucide-react v0.462.0 - ISC 1477 * 1478 * This source code is licensed under the ISC license. 1479 * See the LICENSE file in the root directory of this source tree. 1480 */const hC=S("ChartBarIncreasing",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11h8",key:"1feolt"}],["path",{d:"M7 16h12",key:"wsnu98"}],["path",{d:"M7 6h3",key:"w9rmul"}]]);/** 1481 * @license lucide-react v0.462.0 - ISC 1482 * 1483 * This source code is licensed under the ISC license. 1484 * See the LICENSE file in the root directory of this source tree. 1485 */const fC=S("ChartBarStacked",[["path",{d:"M11 13v4",key:"vyy2rb"}],["path",{d:"M15 5v4",key:"1gx88a"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"7",y:"13",width:"9",height:"4",rx:"1",key:"1iip1u"}],["rect",{x:"7",y:"5",width:"12",height:"4",rx:"1",key:"1anskk"}]]);/** 1486 * @license lucide-react v0.462.0 - ISC 1487 * 1488 * This source code is licensed under the ISC license. 1489 * See the LICENSE file in the root directory of this source tree. 1490 */const kf=S("ChartBar",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]]);/** 1491 * @license lucide-react v0.462.0 - ISC 1492 * 1493 * This source code is licensed under the ISC license. 1494 * See the LICENSE file in the root directory of this source tree. 1495 */const _f=S("ChartCandlestick",[["path",{d:"M9 5v4",key:"14uxtq"}],["rect",{width:"4",height:"6",x:"7",y:"9",rx:"1",key:"f4fvz0"}],["path",{d:"M9 15v2",key:"r5rk32"}],["path",{d:"M17 3v2",key:"1l2re6"}],["rect",{width:"4",height:"8",x:"15",y:"5",rx:"1",key:"z38je5"}],["path",{d:"M17 13v3",key:"5l0wba"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}]]);/** 1496 * @license lucide-react v0.462.0 - ISC 1497 * 1498 * This source code is licensed under the ISC license. 1499 * See the LICENSE file in the root directory of this source tree. 1500 */const Sf=S("ChartColumnBig",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]]);/** 1501 * @license lucide-react v0.462.0 - ISC 1502 * 1503 * This source code is licensed under the ISC license. 1504 * See the LICENSE file in the root directory of this source tree. 1505 */const pC=S("ChartColumnDecreasing",[["path",{d:"M13 17V9",key:"1fwyjl"}],["path",{d:"M18 17v-3",key:"1sqioe"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M8 17V5",key:"1wzmnc"}]]);/** 1506 * @license lucide-react v0.462.0 - ISC 1507 * 1508 * This source code is licensed under the ISC license. 1509 * See the LICENSE file in the root directory of this source tree. 1510 */const jf=S("ChartColumnIncreasing",[["path",{d:"M13 17V9",key:"1fwyjl"}],["path",{d:"M18 17V5",key:"sfb6ij"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 1511 * @license lucide-react v0.462.0 - ISC 1512 * 1513 * This source code is licensed under the ISC license. 1514 * See the LICENSE file in the root directory of this source tree. 1515 */const mC=S("ChartColumnStacked",[["path",{d:"M11 13H7",key:"t0o9gq"}],["path",{d:"M19 9h-4",key:"rera1j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]]);/** 1516 * @license lucide-react v0.462.0 - ISC 1517 * 1518 * This source code is licensed under the ISC license. 1519 * See the LICENSE file in the root directory of this source tree.
1520 */const Kc=S("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 1521 * @license lucide-react v0.462.0 - ISC 1522 * 1523 * This source code is licensed under the ISC license. 1524 * See the LICENSE file in the root directory of this source tree. 1525 */const gC=S("ChartGantt",[["path",{d:"M10 6h8",key:"zvc2xc"}],["path",{d:"M12 16h6",key:"yi5mkt"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M8 11h7",key:"wz2hg0"}]]);/** 1526 * @license lucide-react v0.462.0 - ISC 1527 * 1528 * This source code is licensed under the ISC license. 1529 * See the LICENSE file in the root directory of this source tree. 1530 */const Ef=S("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 1531 * @license lucide-react v0.462.0 - ISC 1532 * 1533 * This source code is licensed under the ISC license. 1534 * See the LICENSE file in the root directory of this source tree. 1535 */const yC=S("ChartNetwork",[["path",{d:"m13.11 7.664 1.78 2.672",key:"go2gg9"}],["path",{d:"m14.162 12.788-3.324 1.424",key:"11x848"}],["path",{d:"m20 4-6.06 1.515",key:"1wxxh7"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["circle",{cx:"12",cy:"6",r:"2",key:"1jj5th"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}],["circle",{cx:"9",cy:"15",r:"2",key:"lf2ghp"}]]);/** 1536 * @license lucide-react v0.462.0 - ISC 1537 * 1538 * This source code is licensed under the ISC license. 1539 * See the LICENSE file in the root directory of this source tree. 1540 */const vC=S("ChartNoAxesColumnDecreasing",[["path",{d:"M12 20V10",key:"g8npz5"}],["path",{d:"M18 20v-4",key:"8uic4z"}],["path",{d:"M6 20V4",key:"1w1bmo"}]]);/** 1541 * @license lucide-react v0.462.0 - ISC 1542 * 1543 * This source code is licensed under the ISC license. 1544 * See the LICENSE file in the root directory of this source tree. 1545 */const Cf=S("ChartNoAxesColumnIncreasing",[["line",{x1:"12",x2:"12",y1:"20",y2:"10",key:"1vz5eb"}],["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}
1545],["line",{x1:"6",x2:"6",y1:"20",y2:"16",key:"hq0ia6"}]]);/** 1546 * @license lucide-react v0.462.0 - ISC 1547 * 1548 * This source code is licensed under the ISC license. 1549 * See the LICENSE file in the root directory of this source tree. 1550 */const Nf=S("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/** 1551 * @license lucide-react v0.462.0 - ISC 1552 * 1553 * This source code is licensed under the ISC license. 1554 * See the LICENSE file in the root directory of this source tree. 1555 */const xC=S("ChartNoAxesCombined",[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14v7",key:"1g90b9"}],["path",{d:"M20 10v11",key:"1iqoj0"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18v3",key:"1yp0dc"}],["path",{d:"M8 14v7",key:"n3cwzv"}]]);/** 1556 * @license lucide-react v0.462.0 - ISC 1557 * 1558 * This source code is licensed under the ISC license. 1559 * See the LICENSE file in the root directory of this source tree. 1560 */const Tf=S("ChartNoAxesGantt",[["path",{d:"M8 6h10",key:"9lnwnk"}],["path",{d:"M6 12h9",key:"1g9pqf"}],["path",{d:"M11 18h7",key:"c8dzvl"}]]);/** 1561 * @license lucide-react v0.462.0 - ISC 1562 * 1563 * This source code is licensed under the ISC license. 1564 * See the LICENSE file in the root directory of this source tree. 1565 */const Af=S("ChartPie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/** 1566 * @license lucide-react v0.462.0 - ISC 1567 * 1568 * This source code is licensed under the ISC license. 1569 * See the LICENSE file in the root directory of this source tree. 1570 */const Mf=S("ChartScatter",[["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["circle",{cx:"18.5",cy:"5.5",r:".5",fill:"currentColor",key:"lysivs"}],["circle",{cx:"11.5",cy:"11.5",r:".5",fill:"currentColor",key:"byv1b8"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["circle",{cx:"17.5",cy:"14.5",r:".5",fill:"currentColor",key:"1gjh6j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}]]);/** 1571 * @license lucide-react v0.462.0 - ISC 1572 * 1573 * This source code is licensed under the ISC license. 1574 * See the LICENSE file in the root directory of this source tree. 1575 */const bC=S("ChartSpline",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]]);/** 1576 * @license lucide-react v0.462.0 - ISC 1577 * 1578 * This source code is licensed under the ISC license. 1579 * See the LICENSE file in the root directory of this source tree. 1580 */const wC=S("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/** 1581 * @license lucide-react v0.462.0 - ISC 1582 * 1583 * This source code is licensed under the ISC license. 1584 * See the LICENSE file in the root directory of this source tree. 1585 */const _r=S("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 1586 * @license lucide-react v0.462.0 - ISC 1587 * 1588 * This source code is licensed under the ISC license. 1589 * See the LICENSE file in the root directory of this source tree. 1590 */const kC=S("ChefHat",[["path",{d:"M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z",key:"1qvrer"}],["path",{d:"M6 17h12",key:"1jwigz"}]]);/** 1591 * @license lucide-react v0.462.0 - ISC 1592 * 1593 * This source code is licensed under the ISC license. 1594 * See the LICENSE file in the root directory of this source tree. 1595 */const _C=S("Cherry",[["path",{d:"M2 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z",key:"cvxqlc"}],["path",{d:"M12 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z",key:"1ostrc"}],["path",{d:"M7 14c3.22-2.91 4.29-8.75 5-12 1.66 2.38 4.94 9 5 12",key:"hqx58h"}],["path",{d:"M22 9c-4.29 0-7.14-2.33-10-7 5.71 0 10 4.67 10 7Z",key:"eykp1o"}]]);/** 1596 * @license lucide-react v0.462.0 - ISC 1597 * 1598 * This source code is licensed under the ISC license. 1599 * See the LICENSE file in the root directory of this source tree. 1600 */const sc=S("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 1601 * @license lucide-react v0.462.0 - ISC 1602 * 1603 * This source code is licensed under the ISC license. 1604 * See the LICENSE file in the root directory of this source tree. 1605 */const SC=S("ChevronFirst",[["path",{d:"m17 18-6-6 6-6",key:"1yerx2"}],["path",{d:"M7 6v12",key:"1p53r6"}]]);/** 1606 * @license lucide-react v0.462.0 - ISC 1607 * 1608 * This source code is licensed under the ISC license. 1609 * See the LICENSE file in the root directory of this source tree. 1610 */const jC=S("ChevronLast",[["path",{d:"m7 18 6-6-6-6",key:"lwmzdw"}],["path",{d:"M17 6v12",key:"1o0aio"}]]);/** 1611 * @license lucide-react v0.462.0 - ISC 1612 * 1613 * This source code is licensed under the ISC license. 1614 * See the LICENSE file in the root directory of this source tree. 1615 */const fu=S("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 1616 * @license lucide-react v0.462.0 - ISC 1617 * 1618 * This source code is licensed under the ISC license. 1619 * See the LICENSE file in the root directory of this source tree. 1620 */const Vs=S("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 1621 * @license lucide-react v0.462.0 - ISC 1622 * 1623 * This source code is licensed under the ISC license. 1624 * See the LICENSE file in the root directory of this source tree. 1625 */const Kb=S("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 1626 * @license lucide-react v0.462.0 - ISC 1627 * 1628 * This source code is licensed under the ISC license. 1629 * See the LICENSE file in the root directory of this source tree. 1630 */const EC=S("ChevronsDownUp",[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]]);/** 1631 * @license lucide-react v0.462.0 - ISC 1632 * 1633 * This source code is licensed under the ISC license. 1634 * See the LICENSE file in the root directory of this source tree.
1635 */const CC=S("ChevronsDown",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]);/** 1636 * @license lucide-react v0.462.0 - ISC 1637 * 1638 * This source code is licensed under the ISC license. 1639 * See the LICENSE file in the root directory of this source tree. 1640 */const NC=S("ChevronsLeftRightEllipsis",[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]]);/** 1641 * @license lucide-react v0.462.0 - ISC 1642 * 1643 * This source code is licensed under the ISC license. 1644 * See the LICENSE file in the root directory of this source tree. 1645 */const TC=S("ChevronsLeftRight",[["path",{d:"m9 7-5 5 5 5",key:"j5w590"}],["path",{d:"m15 7 5 5-5 5",key:"1bl6da"}]]);/** 1646 * @license lucide-react v0.462.0 - ISC 1647 * 1648 * This source code is licensed under the ISC license. 1649 * See the LICENSE file in the root directory of this source tree. 1650 */const AC=S("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);/** 1651 * @license lucide-react v0.462.0 - ISC 1652 * 1653 * This source code is licensed under the ISC license. 1654 * See the LICENSE file in the root directory of this source tree. 1655 */const MC=S("ChevronsRightLeft",[["path",{d:"m20 17-5-5 5-5",key:"30x0n2"}],["path",{d:"m4 17 5-5-5-5",key:"16spf4"}]]);/** 1656 * @license lucide-react v0.462.0 - ISC 1657 * 1658 * This source code is licensed under the ISC license. 1659 * See the LICENSE file in the root directory of this source tree. 1660 */const IC=S("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);/** 1661 * @license lucide-react v0.462.0 - ISC 1662 * 1663 * This source code is licensed under the ISC license. 1664 * See the LICENSE file in the root directory of this source tree. 1665 */const py=S("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/** 1666 * @license lucide-react v0.462.0 - ISC 1667 * 1668 * This source code is licensed under the ISC license. 1669 * See the LICENSE file in the root directory of this source tree. 1670 */const PC=S("ChevronsUp",[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]]);/** 1671 * @license lucide-react v0.462.0 - ISC 1672 * 1673 * This source code is licensed under the ISC license. 1674 * See the LICENSE file in the root directory of this source tree. 1675 */const LC=S("Chrome",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["line",{x1:"21.17",x2:"12",y1:"8",y2:"8",key:"a0cw5f"}],["line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14",key:"1kftof"}],["line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14",key:"1ymyh8"}]]);/** 1676 * @license lucide-react v0.462.0 - ISC 1677 * 1678 * This source code is licensed under the ISC license. 1679 * See the LICENSE file in the root directory of this source tree. 1680 */const OC=S("Church",[["path",{d:"M10 9h4",key:"u4k05v"}],["path",{d:"M12 7v5",key:"ma6bk"}],["path",{d:"M14 22v-4a2 2 0 0 0-4 0v4",key:"1pdhuj"}],["path",{d:"M18 22V5.618a1 1 0 0 0-.553-.894l-4.553-2.277a2 2 0 0 0-1.788 0L6.553 4.724A1 1 0 0 0 6 5.618V22",key:"1rkokr"}],["path",{d:"m18 7 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.618a1 1 0 0 1 .553-.894L6 7",key:"1w6esw"}]]);/** 1681 * @license lucide-react v0.462.0 - ISC 1682 * 1683 * This source code is licensed under the ISC license. 1684 * See the LICENSE file in the root directory of this source tree. 1685 */const RC=S("CigaretteOff",[["path",{d:"M12 12H3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h13",key:"1gdiyg"}],["path",{d:"M18 8c0-2.5-2-2.5-2-5",key:"1il607"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M21 12a1 1 0 0 1 1 1v2a1 1 0 0 1-.5.866",key:"166zjj"}],["path",{d:"M22 8c0-2.5-2-2.5-2-5",key:"1gah44"}],["path",{d:"M7 12v4",key:"jqww69"}]]);/** 1686 * @license lucide-react v0.462.0 - ISC 1687 * 1688 * This source code is licensed under the ISC license. 1689 * See the LICENSE file in the root directory of this source tree. 1690 */const DC=S("Cigarette",[["path",{d:"M17 12H3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14",key:"1mb5g1"}],["path",{d:"M18 8c0-2.5-2-2.5-2-5",key:"1il607"}],["path",{d:"M21 16a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"1yl5r7"}],["path",{d:"M22 8c0-2.5-2-2.5-2-5",key:"1gah44"}],["path",{d:"M7 12v4",key:"jqww69"}]]);/** 1691 * @license lucide-react v0.462.0 - ISC 1692 * 1693 * This source code is licensed under the ISC license. 1694 * See the LICENSE file in the root directory of this source tree. 1695 */const Ya=S("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 1696 * @license lucide-react v0.462.0 - ISC 1697 * 1698 * This source code is licensed under the ISC license. 1699 * See the LICENSE file in the root directory of this source tree. 1700 */const If=S("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]]);/** 1701 * @license lucide-react v0.462.0 - ISC 1702 * 1703 * This source code is licensed under the ISC license. 1704 * See the LICENSE file in the root directory of this source tree. 1705 */const Pf=S("CircleArrowLeft",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 12H8",key:"1fr5h0"}
1705],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}]]);/** 1706 * @license lucide-react v0.462.0 - ISC 1707 * 1708 * This source code is licensed under the ISC license. 1709 * See the LICENSE file in the root directory of this source tree. 1710 */const Lf=S("CircleArrowOutDownLeft",[["path",{d:"M2 12a10 10 0 1 1 10 10",key:"1yn6ov"}],["path",{d:"m2 22 10-10",key:"28ilpk"}],["path",{d:"M8 22H2v-6",key:"sulq54"}]]);/** 1711 * @license lucide-react v0.462.0 - ISC 1712 * 1713 * This source code is licensed under the ISC license. 1714 * See the LICENSE file in the root directory of this source tree. 1715 */const Of=S("CircleArrowOutDownRight",[["path",{d:"M12 22a10 10 0 1 1 10-10",key:"130bv5"}],["path",{d:"M22 22 12 12",key:"131aw7"}],["path",{d:"M22 16v6h-6",key:"1gvm70"}]]);/** 1716 * @license lucide-react v0.462.0 - ISC 1717 * 1718 * This source code is licensed under the ISC license. 1719 * See the LICENSE file in the root directory of this source tree. 1720 */const Rf=S("CircleArrowOutUpLeft",[["path",{d:"M2 8V2h6",key:"hiwtdz"}],["path",{d:"m2 2 10 10",key:"1oh8rs"}],["path",{d:"M12 2A10 10 0 1 1 2 12",key:"rrk4fa"}]]);/** 1721 * @license lucide-react v0.462.0 - ISC 1722 * 1723 * This source code is licensed under the ISC license. 1724 * See the LICENSE file in the root directory of this source tree. 1725 */const Df=S("CircleArrowOutUpRight",[["path",{d:"M22 12A10 10 0 1 1 12 2",key:"1fm58d"}],["path",{d:"M22 2 12 12",key:"yg2myt"}],["path",{d:"M16 2h6v6",key:"zan5cs"}]]);/** 1726 * @license lucide-react v0.462.0 - ISC 1727 * 1728 * This source code is licensed under the ISC license. 1729 * See the LICENSE file in the root directory of this source tree. 1730 */const Ff=S("CircleArrowRight",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]);/** 1731 * @license lucide-react v0.462.0 - ISC 1732 * 1733 * This source code is licensed under the ISC license. 1734 * See the LICENSE file in the root directory of this source tree. 1735 */const $f=S("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/** 1736 * @license lucide-react v0.462.0 - ISC 1737 * 1738 * This source code is licensed under the ISC license. 1739 * See the LICENSE file in the root directory of this source tree. 1740 */const Vi=S("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 1741 * @license lucide-react v0.462.0 - ISC 1742 * 1743 * This source code is licensed under the ISC license. 1744 * See the LICENSE file in the root directory of this source tree. 1745 */const Si=S("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 1746 * @license lucide-react v0.462.0 - ISC 1747 * 1748 * This source code is licensed under the ISC license. 1749 * See the LICENSE file in the root directory of this source tree. 1750 */const Bf=S("CircleChevronDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]);/** 1751 * @license lucide-react v0.462.0 - ISC 1752 * 1753 * This source code is licensed under the ISC license. 1754 * See the LICENSE file in the root directory of this source tree. 1755 */const zf=S("CircleChevronLeft",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m14 16-4-4 4-4",key:"ojs7w8"}]]);/** 1756 * @license lucide-react v0.462.0 - ISC 1757 * 1758 * This source code is licensed under the ISC license. 1759 * See the LICENSE file in the root directory of this source tree. 1760 */const Uf=S("CircleChevronRight",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]);/** 1761 * @license lucide-react v0.462.0 - ISC 1762 * 1763 * This source code is licensed under the ISC license. 1764 * See the LICENSE file in the root directory of this source tree. 1765 */const qf=S("CircleChevronUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m8 14 4-4 4 4",key:"fy2ptz"}]]);/** 1766 * @license lucide-react v0.462.0 - ISC 1767 * 1768 * This source code is licensed under the ISC license. 1769 * See the LICENSE file in the root directory of this source tree. 1770 */const FC=S("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/** 1771 * @license lucide-react v0.462.0 - ISC 1772 * 1773 * This source code is licensed under the ISC license. 1774 * See the LICENSE file in the root directory of this source tree. 1775 */const Hf=S("CircleDivide",[["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}],["line",{x1:"12",x2:"12",y1:"16",y2:"16",key:"aqc6ln"}],["line",{x1:"12",x2:"12",y1:"8",y2:"8",key:"1mkcni"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 1776 * @license lucide-react v0.462.0 - ISC 1777 * 1778 * This source code is licensed under the ISC license. 1779 * See the LICENSE file in the root directory of this source tree. 1780 */const $C=S("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/** 1781 * @license lucide-react v0.462.0 - ISC 1782 * 1783 * This source code is licensed under the ISC license. 1784 * See the LICENSE file in the root directory of this source tree. 1785 */const BC=S("CircleDotDashed",[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}
1785],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/** 1786 * @license lucide-react v0.462.0 - ISC 1787 * 1788 * This source code is licensed under the ISC license. 1789 * See the LICENSE file in the root directory of this source tree. 1790 */const zC=S("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/** 1791 * @license lucide-react v0.462.0 - ISC 1792 * 1793 * This source code is licensed under the ISC license. 1794 * See the LICENSE file in the root directory of this source tree. 1795 */const UC=S("CircleEllipsis",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]);/** 1796 * @license lucide-react v0.462.0 - ISC 1797 * 1798 * This source code is licensed under the ISC license. 1799 * See the LICENSE file in the root directory of this source tree. 1800 */const qC=S("CircleEqual",[["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 1801 * @license lucide-react v0.462.0 - ISC 1802 * 1803 * This source code is licensed under the ISC license. 1804 * See the LICENSE file in the root directory of this source tree. 1805 */const HC=S("CircleFadingArrowUp",[["path",{d:"M12 2a10 10 0 0 1 7.38 16.75",key:"175t95"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}],["path",{d:"M2.5 8.875a10 10 0 0 0-.5 3",key:"1vce0s"}],["path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4",key:"o3fkw4"}],["path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857",key:"1szpfk"}],["path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38",key:"9yhvd4"}]]);/** 1806 * @license lucide-react v0.462.0 - ISC 1807 * 1808 * This source code is licensed under the ISC license. 1809 * See the LICENSE file in the root directory of this source tree. 1810 */const VC=S("CircleFadingPlus",[["path",{d:"M12 2a10 10 0 0 1 7.38 16.75",key:"175t95"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M2.5 8.875a10 10 0 0 0-.5 3",key:"1vce0s"}],["path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4",key:"o3fkw4"}],["path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857",key:"1szpfk"}],["path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38",key:"9yhvd4"}]]);/** 1811 * @license lucide-react v0.462.0 - ISC 1812 * 1813 * This source code is licensed under the ISC license. 1814 * See the LICENSE file in the root directory of this source tree. 1815 */const Vf=S("CircleGauge",[["path",{d:"M15.6 2.7a10 10 0 1 0 5.7 5.7",key:"1e0p6d"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M13.4 10.6 19 5",key:"1kr7tw"}]]);/** 1816 * @license lucide-react v0.462.0 - ISC 1817 * 1818 * This source code is licensed under the ISC license. 1819 * See the LICENSE file in the root directory of this source tree. 1820 */const tl=S("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 1821 * @license lucide-react v0.462.0 - ISC 1822 * 1823 * This source code is licensed under the ISC license. 1824 * See the LICENSE file in the root directory of this source tree. 1825 */const Wf=S("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/** 1826 * @license lucide-react v0.462.0 - ISC 1827 * 1828 * This source code is licensed under the ISC license. 1829 * See the LICENSE file in the root directory of this source tree. 1830 */const WC=S("CircleOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]]);/** 1831 * @license lucide-react v0.462.0 - ISC 1832 * 1833 * This source code is licensed under the ISC license. 1834 * See the LICENSE file in the root directory of this source tree. 1835 */const Gf=S("CircleParkingOff",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m5 5 14 14",key:"11anup"}],["path",{d:"M13 13a3 3 0 1 0 0-6H9v2",key:"uoagbd"}],["path",{d:"M9 17v-2.34",key:"a9qo08"}]]);/** 1836 * @license lucide-react v0.462.0 - ISC 1837 * 1838 * This source code is licensed under the ISC license. 1839 * See the LICENSE file in the root directory of this source tree. 1840 */const Kf=S("CircleParking",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9 17V7h4a3 3 0 0 1 0 6H9",key:"1dfk2c"}]]);/** 1841 * @license lucide-react v0.462.0 - ISC 1842 * 1843 * This source code is licensed under the ISC license. 1844 * See the LICENSE file in the root directory of this source tree. 1845 */const Yf=S("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]);/** 1846 * @license lucide-react v0.462.0 - ISC 1847 * 1848 * This source code is licensed under the ISC license. 1849 * See the LICENSE file in the root directory of this source tree. 1850 */const Xf=S("CirclePercent",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]]);/** 1851 * @license lucide-react v0.462.0 - ISC 1852 * 1853 * This source code is licensed under the ISC license. 1854 * See the LICENSE file in the root directory of this source tree. 1855 */const Zf=S("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/** 1856 * @license lucide-react v0.462.0 - ISC 1857 * 1858 * This source code is licensed under the ISC license. 1859 * See the LICENSE file in the root directory of this source tree. 1860 */const Yc=S("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/** 1861 * @license lucide-react v0.462.0 - ISC 1862 * 1863 * This source code is licensed under the ISC license. 1864 * See the LICENSE file in the root directory of this source tree. 1865 */const Qf=S("CirclePower",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 1866 * @license lucide-react v0.462.0 - ISC 1867 * 1868 * This source code is licensed under the ISC license. 1869 * See the LICENSE file in the root directory of this source tree. 1870 */const Jf=S("CircleSlash2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}]]);/** 1871 * @license lucide-react v0.462.0 - ISC 1872 * 1873 * This source code is licensed under the ISC license. 1874 * See the LICENSE file in the root directory of this source tree. 1875 */const GC=S("CircleSlash",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]);/** 1876 * @license lucide-react v0.462.0 - ISC 1877 * 1878 * This source code is licensed under the ISC license. 1879 * See the LICENSE file in the root directory of this source tree. 1880 */const ep=S("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/** 1881 * @license lucide-react v0.462.0 - ISC 1882 * 1883 * This source code is licensed under the ISC license. 1884 * See the LICENSE file in the root directory of this source tree. 1885 */const tp=S("CircleUserRound",[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 1886 * @license lucide-react v0.462.0 - ISC 1887 * 1888 * This source code is licensed under the ISC license. 1889 * See the LICENSE file in the root directory of this source tree. 1890 */const rp=S("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/** 1891 * @license lucide-react v0.462.0 - ISC 1892 * 1893 * This source code is licensed under the ISC license. 1894 * See the LICENSE file in the root directory of this source tree. 1895 */const li=S("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 1896 * @license lucide-react v0.462.0 - ISC 1897 * 1898 * This source code is licensed under the ISC license. 1899 * See the LICENSE file in the root directory of this source tree. 1900 */const e0=S("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 1901 * @license lucide-react v0.462.0 - ISC 1902 * 1903 * This source code is licensed under the ISC license. 1904 * See the LICENSE file in the root directory of this source tree.
1905 */const KC=S("CircuitBoard",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]]);/** 1906 * @license lucide-react v0.462.0 - ISC 1907 * 1908 * This source code is licensed under the ISC license. 1909 * See the LICENSE file in the root directory of this source tree. 1910 */const YC=S("Citrus",[["path",{d:"M21.66 17.67a1.08 1.08 0 0 1-.04 1.6A12 12 0 0 1 4.73 2.38a1.1 1.1 0 0 1 1.61-.04z",key:"4ite01"}],["path",{d:"M19.65 15.66A8 8 0 0 1 8.35 4.34",key:"1gxipu"}],["path",{d:"m14 10-5.5 5.5",key:"92pfem"}],["path",{d:"M14 17.85V10H6.15",key:"xqmtsk"}]]);/** 1911 * @license lucide-react v0.462.0 - ISC 1912 * 1913 * This source code is licensed under the ISC license. 1914 * See the LICENSE file in the root directory of this source tree. 1915 */const XC=S("Clapperboard",[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]]);/** 1916 * @license lucide-react v0.462.0 - ISC 1917 * 1918 * This source code is licensed under the ISC license. 1919 * See the LICENSE file in the root directory of this source tree. 1920 */const ZC=S("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 1921 * @license lucide-react v0.462.0 - ISC 1922 * 1923 * This source code is licensed under the ISC license. 1924 * See the LICENSE file in the root directory of this source tree. 1925 */const QC=S("ClipboardCopy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);/** 1926 * @license lucide-react v0.462.0 - ISC 1927 * 1928 * This source code is licensed under the ISC license. 1929 * See the LICENSE file in the root directory of this source tree. 1930 */const JC=S("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 1931 * @license lucide-react v0.462.0 - ISC 1932 * 1933 * This source code is licensed under the ISC license. 1934 * See the LICENSE file in the root directory of this source tree. 1935 */const eN=S("ClipboardMinus",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M9 14h6",key:"159ibu"}]]);/** 1936 * @license lucide-react v0.462.0 - ISC 1937 * 1938 * This source code is licensed under the ISC license. 1939 * See the LICENSE file in the root directory of this source tree. 1940 */const Yb=S("ClipboardPaste",[["path",{d:"M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z",key:"1pp7kr"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10",key:"2ik1ml"}],["path",{d:"m17 10 4 4-4 4",key:"vp2hj1"}]]);/** 1941 * @license lucide-react v0.462.0 - ISC 1942 * 1943 * This source code is licensed under the ISC license. 1944 * See the LICENSE file in the root directory of this source tree. 1945 */const np=S("ClipboardPenLine",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",key:"1oijnt"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.5",key:"1but9f"}],["path",{d:"M16 4h2a2 2 0 0 1 1.73 1",key:"1p8n7l"}],["path",{d:"M8 18h1",key:"13wk12"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}]]);/** 1946 * @license lucide-react v0.462.0 - ISC 1947 * 1948 * This source code is licensed under the ISC license. 1949 * See the LICENSE file in the root directory of this source tree.
1950 */const ap=S("ClipboardPen",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",key:"1oijnt"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5.5",key:"cereej"}],["path",{d:"M4 13.5V6a2 2 0 0 1 2-2h2",key:"5ua5vh"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);/** 1951 * @license lucide-react v0.462.0 - ISC 1952 * 1953 * This source code is licensed under the ISC license. 1954 * See the LICENSE file in the root directory of this source tree. 1955 */const tN=S("ClipboardPlus",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M9 14h6",key:"159ibu"}],["path",{d:"M12 17v-6",key:"1y8rbf"}]]);/** 1956 * @license lucide-react v0.462.0 - ISC 1957 * 1958 * This source code is licensed under the ISC license. 1959 * See the LICENSE file in the root directory of this source tree. 1960 */const rN=S("ClipboardType",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M9 12v-1h6v1",key:"iehl6m"}],["path",{d:"M11 17h2",key:"12w5me"}],["path",{d:"M12 11v6",key:"1bwqyc"}]]);/** 1961 * @license lucide-react v0.462.0 - ISC 1962 * 1963 * This source code is licensed under the ISC license. 1964 * See the LICENSE file in the root directory of this source tree. 1965 */const nN=S("ClipboardX",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m15 11-6 6",key:"1toa9n"}],["path",{d:"m9 11 6 6",key:"wlibny"}]]);/** 1966 * @license lucide-react v0.462.0 - ISC 1967 * 1968 * This source code is licensed under the ISC license. 1969 * See the LICENSE file in the root directory of this source tree. 1970 */const aN=S("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);/** 1971 * @license lucide-react v0.462.0 - ISC 1972 * 1973 * This source code is licensed under the ISC license. 1974 * See the LICENSE file in the root directory of this source tree. 1975 */const iN=S("Clock1",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 14.5 8",key:"12zbmj"}]]);/** 1976 * @license lucide-react v0.462.0 - ISC 1977 * 1978 * This source code is licensed under the ISC license. 1979 * See the LICENSE file in the root directory of this source tree. 1980 */const sN=S("Clock10",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 8 10",key:"atfzqc"}]]);/** 1981 * @license lucide-react v0.462.0 - ISC 1982 * 1983 * This source code is licensed under the ISC license. 1984 * See the LICENSE file in the root directory of this source tree. 1985 */const oN=S("Clock11",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 9.5 8",key:"l5bg6f"}]]);/** 1986 * @license lucide-react v0.462.0 - ISC 1987 * 1988 * This source code is licensed under the ISC license. 1989 * See the LICENSE file in the root directory of this source tree. 1990 */const lN=S("Clock12",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12",key:"1fub01"}]]);/** 1991 * @license lucide-react v0.462.0 - ISC 1992 * 1993 * This source code is licensed under the ISC license. 1994 * See the LICENSE file in the root directory of this source tree. 1995 */const cN=S("Clock2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 10",key:"1g230d"}]]);/** 1996 * @license lucide-react v0.462.0 - ISC 1997 * 1998 * This source code is licensed under the ISC license. 1999 * See the LICENSE file in the root directory of this source tree. 2000 */const uN=S("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/** 2001 * @license lucide-react v0.462.0 - ISC 2002 * 2003 * This source code is licensed under the ISC license. 2004 * See the LICENSE file in the root directory of this source tree. 2005 */const dN=S("Clock4",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 2006 * @license lucide-react v0.462.0 - ISC 2007 * 2008 * This source code is licensed under the ISC license. 2009 * See the LICENSE file in the root directory of this source tree.
2010 */const hN=S("Clock5",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 14.5 16",key:"1pcbox"}]]);/** 2011 * @license lucide-react v0.462.0 - ISC 2012 * 2013 * This source code is licensed under the ISC license. 2014 * See the LICENSE file in the root directory of this source tree. 2015 */const fN=S("Clock6",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 12 16.5",key:"hb2qv6"}]]);/** 2016 * @license lucide-react v0.462.0 - ISC 2017 * 2018 * This source code is licensed under the ISC license. 2019 * See the LICENSE file in the root directory of this source tree. 2020 */const pN=S("Clock7",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 9.5 16",key:"ka3394"}]]);/** 2021 * @license lucide-react v0.462.0 - ISC 2022 * 2023 * This source code is licensed under the ISC license. 2024 * See the LICENSE file in the root directory of this source tree. 2025 */const mN=S("Clock8",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 8 14",key:"tmc9b4"}]]);/** 2026 * @license lucide-react v0.462.0 - ISC 2027 * 2028 * This source code is licensed under the ISC license. 2029 * See the LICENSE file in the root directory of this source tree. 2030 */const gN=S("Clock9",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 7.5 12",key:"1k60p0"}]]);/** 2031 * @license lucide-react v0.462.0 - ISC 2032 * 2033 * This source code is licensed under the ISC license. 2034 * See the LICENSE file in the root directory of this source tree. 2035 */const yN=S("ClockAlert",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["path",{d:"M16 21.16a10 10 0 1 1 5-13.516",key:"cxo92l"}],["path",{d:"M20 11.5v6",key:"2ei3xq"}],["path",{d:"M20 21.5h.01",key:"1r2dzp"}]]);/** 2036 * @license lucide-react v0.462.0 - ISC 2037 * 2038 * This source code is licensed under the ISC license. 2039 * See the LICENSE file in the root directory of this source tree. 2040 */const vN=S("ClockArrowDown",[["path",{d:"M12.338 21.994A10 10 0 1 1 21.925 13.227",key:"1i7shu"}],["path",{d:"M12 6v6l2 1",key:"19cm8n"}],["path",{d:"m14 18 4 4 4-4",key:"1waygx"}],["path",{d:"M18 14v8",key:"irew45"}]]);/** 2041 * @license lucide-react v0.462.0 - ISC 2042 * 2043 * This source code is licensed under the ISC license. 2044 * See the LICENSE file in the root directory of this source tree. 2045 */const xN=S("ClockArrowUp",[["path",{d:"M13.228 21.925A10 10 0 1 1 21.994 12.338",key:"1fzlyi"}],["path",{d:"M12 6v6l1.562.781",key:"1ujuk9"}],["path",{d:"m14 18 4-4 4 4",key:"ftkppy"}],["path",{d:"M18 22v-8",key:"su0gjh"}]]);/** 2046 * @license lucide-react v0.462.0 - ISC 2047 * 2048 * This source code is licensed under the ISC license. 2049 * See the LICENSE file in the root directory of this source tree. 2050 */const Da=S("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 2051 * @license lucide-react v0.462.0 - ISC 2052 * 2053 * This source code is licensed under the ISC license. 2054 * See the LICENSE file in the root directory of this source tree. 2055 */const bN=S("CloudAlert",[["path",{d:"M12 12v4",key:"tww15h"}],["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M17 18h.5a1 1 0 0 0 0-9h-1.79A7 7 0 1 0 7 17.708",key:"xsb5ju"}]]);/** 2056 * @license lucide-react v0.462.0 - ISC 2057 * 2058 * This source code is licensed under the ISC license. 2059 * See the LICENSE file in the root directory of this source tree. 2060 */const wN=S("CloudCog",[["circle",{cx:"12",cy:"17",r:"3",key:"1spfwm"}],["path",{d:"M4.2 15.1A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2",key:"zaobp"}],["path",{d:"m15.7 18.4-.9-.3",key:"4qxpbn"}],["path",{d:"m9.2 15.9-.9-.3",key:"17q7o2"}],["path",{d:"m10.6 20.7.3-.9",key:"1pf4s2"}],["path",{d:"m13.1 14.2.3-.9",key:"1mnuqm"}],["path",{d:"m13.6 20.7-.4-1",key:"1jpd1m"}],["path",{d:"m10.8 14.3-.4-1",key:"17ugyy"}],["path",{d:"m8.3 18.6 1-.4",key:"s42vdx"}],["path",{d:"m14.7 15.8 1-.4",key:"2wizun"}]]);/** 2061 * @license lucide-react v0.462.0 - ISC 2062 * 2063 * This source code is licensed under the ISC license. 2064 * See the LICENSE file in the root directory of this source tree. 2065 */const ip=S("CloudDownload",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]);/** 2066 * @license lucide-react v0.462.0 - ISC 2067 * 2068 * This source code is licensed under the ISC license. 2069 * See the LICENSE file in the root directory of this source tree. 2070 */const kN=S("CloudDrizzle",[["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:"M8 19v1",key:"1dk2by"}],["path",{d:"M8 14v1",key:"84yxot"}],["path",{d:"M16 19v1",key:"v220m7"}],["path",{d:"M16 14v1",key:"g12gj6"}],["path",{d:"M12 21v1",key:"q8vafk"}],["path",{d:"M12 16v1",key:"1mx6rx"}]]);/** 2071 * @license lucide-react v0.462.0 - ISC 2072 * 2073 * This source code is licensed under the ISC license. 2074 * See the LICENSE file in the root directory of this source tree. 2075 */const _N=S("CloudFog",[["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 17H7",key:"pygtm1"}],["path",{d:"M17 21H9",key:"1u2q02"}]]);/** 2076 * @license lucide-react v0.462.0 - ISC 2077 * 2078 * This source code is licensed under the ISC license. 2079 * See the LICENSE file in the root directory of this source tree. 2080 */const SN=S("CloudHail",[["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 14v2",key:"a1is7l"}],["path",{d:"M8 14v2",key:"1e9m6t"}],["path",{d:"M16 20h.01",key:"xwek51"}],["path",{d:"M8 20h.01",key:"1vjney"}],["path",{d:"M12 16v2",key:"z66u1j"}],["path",{d:"M12 22h.01",key:"1urd7a"}]]);/** 2081 * @license lucide-react v0.462.0 - ISC 2082 * 2083 * This source code is licensed under the ISC license. 2084 * See the LICENSE file in the root directory of this source tree. 2085 */const jN=S("CloudLightning",[["path",{d:"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",key:"1cez44"}],["path",{d:"m13 12-3 5h4l-3 5",key:"1t22er"}]]);/** 2086 * @license lucide-react v0.462.0 - ISC 2087 * 2088 * This source code is licensed under the ISC license. 2089 * See the LICENSE file in the root directory of this source tree. 2090 */const EN=S("CloudMoonRain",[["path",{d:"M10.188 8.5A6 6 0 0 1 16 4a1 1 0 0 0 6 6 6 6 0 0 1-3 5.197",key:"erj67n"}],["path",{d:"M11 20v2",key:"174qtz"}],["path",{d:"M3 20a5 5 0 1 1 8.9-4H13a3 3 0 0 1 2 5.24",key:"1qmrp3"}],["path",{d:"M7 19v2",key:"12npes"}]]);/** 2091 * @license lucide-react v0.462.0 - ISC 2092 * 2093 * This source code is licensed under the ISC license. 2094 * See the LICENSE file in the root directory of this source tree. 2095 */const CN=S("CloudMoon",[["path",{d:"M10.188 8.5A6 6 0 0 1 16 4a1 1 0 0 0 6 6 6 6 0 0 1-3 5.197",key:"erj67n"}],["path",{d:"M13 16a3 3 0 1 1 0 6H7a5 5 0 1 1 4.9-6Z",key:"p44pc9"}]]);/** 2096 * @license lucide-react v0.462.0 - ISC 2097 * 2098 * This source code is licensed under the ISC license. 2099 * See the LICENSE file in the root directory of this source tree. 2100 */const NN=S("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);/** 2101 * @license lucide-react v0.462.0 - ISC 2102 * 2103 * This source code is licensed under the ISC license. 2104 * See the LICENSE file in the root directory of this source tree. 2105 */const TN=S("CloudRainWind",[["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:"m9.2 22 3-7",key:"sb5f6j"}],["path",{d:"m9 13-3 7",key:"500co5"}],["path",{d:"m17 13-3 7",key:"8t2fiy"}]]);/** 2106 * @license lucide-react v0.462.0 - ISC 2107 * 2108 * This source code is licensed under the ISC license. 2109 * See the LICENSE file in the root directory of this source tree. 2110 */const AN=S("CloudRain",[["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"}]]);/** 2111 * @license lucide-react v0.462.0 - ISC 2112 * 2113 * This source code is licensed under the ISC license. 2114 * See the LICENSE file in the root directory of this source tree. 2115 */const MN=S("CloudSnow",[["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:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]]);/** 2116 * @license lucide-react v0.462.0 - ISC 2117 * 2118 * This source code is licensed under the ISC license. 2119 * See the LICENSE file in the root directory of this source tree. 2120 */const IN=S("CloudSunRain",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M3 20a5 5 0 1 1 8.9-4H13a3 3 0 0 1 2 5.24",key:"1qmrp3"}],["path",{d:"M11 20v2",key:"174qtz"}],["path",{d:"M7 19v2",key:"12npes"}]]);/** 2121 * @license lucide-react v0.462.0 - ISC 2122 * 2123 * This source code is licensed under the ISC license. 2124 * See the LICENSE file in the root directory of this source tree. 2125 */const PN=S("CloudSun",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}
2125],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]]);/** 2126 * @license lucide-react v0.462.0 - ISC 2127 * 2128 * This source code is licensed under the ISC license. 2129 * See the LICENSE file in the root directory of this source tree. 2130 */const sp=S("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["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:"m8 17 4-4 4 4",key:"1quai1"}]]);/** 2131 * @license lucide-react v0.462.0 - ISC 2132 * 2133 * This source code is licensed under the ISC license. 2134 * See the LICENSE file in the root directory of this source tree. 2135 */const LN=S("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** 2136 * @license lucide-react v0.462.0 - ISC 2137 * 2138 * This source code is licensed under the ISC license. 2139 * See the LICENSE file in the root directory of this source tree. 2140 */const ON=S("Cloudy",[["path",{d:"M17.5 21H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"gqqjvc"}],["path",{d:"M22 10a3 3 0 0 0-3-3h-2.207a5.502 5.502 0 0 0-10.702.5",key:"1p2s76"}]]);/** 2141 * @license lucide-react v0.462.0 - ISC 2142 * 2143 * This source code is licensed under the ISC license. 2144 * See the LICENSE file in the root directory of this source tree. 2145 */const RN=S("Clover",[["path",{d:"M16.17 7.83 2 22",key:"t58vo8"}],["path",{d:"M4.02 12a2.827 2.827 0 1 1 3.81-4.17A2.827 2.827 0 1 1 12 4.02a2.827 2.827 0 1 1 4.17 3.81A2.827 2.827 0 1 1 19.98 12a2.827 2.827 0 1 1-3.81 4.17A2.827 2.827 0 1 1 12 19.98a2.827 2.827 0 1 1-4.17-3.81A1 1 0 1 1 4 12",key:"17k36q"}],["path",{d:"m7.83 7.83 8.34 8.34",key:"1d7sxk"}]]);/** 2146 * @license lucide-react v0.462.0 - ISC 2147 * 2148 * This source code is licensed under the ISC license. 2149 * See the LICENSE file in the root directory of this source tree. 2150 */const DN=S("Club",[["path",{d:"M17.28 9.05a5.5 5.5 0 1 0-10.56 0A5.5 5.5 0 1 0 12 17.66a5.5 5.5 0 1 0 5.28-8.6Z",key:"27yuqz"}],["path",{d:"M12 17.66L12 22",key:"ogfahf"}]]);/** 2151 * @license lucide-react v0.462.0 - ISC 2152 * 2153 * This source code is licensed under the ISC license. 2154 * See the LICENSE file in the root directory of this source tree. 2155 */const op=S("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/** 2156 * @license lucide-react v0.462.0 - ISC 2157 * 2158 * This source code is licensed under the ISC license. 2159 * See the LICENSE file in the root directory of this source tree. 2160 */const FN=S("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** 2161 * @license lucide-react v0.462.0 - ISC 2162 * 2163 * This source code is licensed under the ISC license. 2164 * See the LICENSE file in the root directory of this source tree. 2165 */const $N=S("Codepen",[["polygon",{points:"12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2",key:"srzb37"}],["line",{x1:"12",x2:"12",y1:"22",y2:"15.5",key:"1t73f2"}],["polyline",{points:"22 8.5 12 15.5 2 8.5",key:"ajlxae"}],["polyline",{points:"2 15.5 12 8.5 22 15.5",key:"susrui"}],["line",{x1:"12",x2:"12",y1:"2",y2:"8.5",key:"2cldga"}]]);/** 2166 * @license lucide-react v0.462.0 - ISC 2167 * 2168 * This source code is licensed under the ISC license. 2169 * See the LICENSE file in the root directory of this source tree. 2170 */const BN=S("Codesandbox",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["polyline",{points:"7.5 4.21 12 6.81 16.5 4.21",key:"fabo96"}],["polyline",{points:"7.5 19.79 7.5 14.6 3 12",key:"z377f1"}],["polyline",{points:"21 12 16.5 14.6 16.5 19.79",key:"9nrev1"}],["polyline",{points:"3.27 6.96 12 12.01 20.73 6.96",key:"1180pa"}],["line",{x1:"12",x2:"12",y1:"22.08",y2:"12",key:"3z3uq6"}]]);/** 2171 * @license lucide-react v0.462.0 - ISC 2172 * 2173 * This source code is licensed under the ISC license. 2174 * See the LICENSE file in the root directory of this source tree. 2175 */const zN=S("Coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);/** 2176 * @license lucide-react v0.462.0 - ISC 2177 * 2178 * This source code is licensed under the ISC license. 2179 * See the LICENSE file in the root directory of this source tree. 2180 */const UN=S("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}
2180],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/** 2181 * @license lucide-react v0.462.0 - ISC 2182 * 2183 * This source code is licensed under the ISC license. 2184 * See the LICENSE file in the root directory of this source tree. 2185 */const qN=S("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/** 2186 * @license lucide-react v0.462.0 - ISC 2187 * 2188 * This source code is licensed under the ISC license. 2189 * See the LICENSE file in the root directory of this source tree. 2190 */const lp=S("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/** 2191 * @license lucide-react v0.462.0 - ISC 2192 * 2193 * This source code is licensed under the ISC license. 2194 * See the LICENSE file in the root directory of this source tree. 2195 */const cp=S("Columns3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/** 2196 * @license lucide-react v0.462.0 - ISC 2197 * 2198 * This source code is licensed under the ISC license. 2199 * See the LICENSE file in the root directory of this source tree. 2200 */const HN=S("Columns4",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7.5 3v18",key:"w0wo6v"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M16.5 3v18",key:"10tjh1"}]]);/** 2201 * @license lucide-react v0.462.0 - ISC 2202 * 2203 * This source code is licensed under the ISC license. 2204 * See the LICENSE file in the root directory of this source tree. 2205 */const VN=S("Combine",[["path",{d:"M10 18H5a3 3 0 0 1-3-3v-1",key:"ru65g8"}],["path",{d:"M14 2a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2",key:"e30een"}],["path",{d:"M20 2a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2",key:"2ahx8o"}],["path",{d:"m7 21 3-3-3-3",key:"127cv2"}],["rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",key:"1b0bso"}],["rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",key:"1x09vl"}]]);/** 2206 * @license lucide-react v0.462.0 - ISC 2207 * 2208 * This source code is licensed under the ISC license. 2209 * See the LICENSE file in the root directory of this source tree. 2210 */const WN=S("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/** 2211 * @license lucide-react v0.462.0 - ISC 2212 * 2213 * This source code is licensed under the ISC license. 2214 * See the LICENSE file in the root directory of this source tree. 2215 */const GN=S("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 2216 * @license lucide-react v0.462.0 - ISC 2217 * 2218 * This source code is licensed under the ISC license. 2219 * See the LICENSE file in the root directory of this source tree. 2220 */const KN=S("Component",[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]]);/** 2221 * @license lucide-react v0.462.0 - ISC 2222 * 2223 * This source code is licensed under the ISC license. 2224 * See the LICENSE file in the root directory of this source tree. 2225 */const YN=S("Computer",[["rect",{width:"14",height:"8",x:"5",y:"2",rx:"2",key:"wc9tft"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h2",key:"rwmk9e"}],["path",{d:"M12 18h6",key:"aqd8w3"}]]);/** 2226 * @license lucide-react v0.462.0 - ISC 2227 * 2228 * This source code is licensed under the ISC license. 2229 * See the LICENSE file in the root directory of this source tree. 2230 */const XN=S("ConciergeBell",[["path",{d:"M3 20a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1Z",key:"1pvr1r"}],["path",{d:"M20 16a8 8 0 1 0-16 0",key:"1pa543"}],["path",{d:"M12 4v4",key:"1bq03y"}],["path",{d:"M10 4h4",key:"1xpv9s"}]]);/** 2231 * @license lucide-react v0.462.0 - ISC 2232 * 2233 * This source code is licensed under the ISC license. 2234 * See the LICENSE file in the root directory of this source tree.
2235 */const ZN=S("Cone",[["path",{d:"m20.9 18.55-8-15.98a1 1 0 0 0-1.8 0l-8 15.98",key:"53pte7"}],["ellipse",{cx:"12",cy:"19",rx:"9",ry:"3",key:"1ji25f"}]]);/** 2236 * @license lucide-react v0.462.0 - ISC 2237 * 2238 * This source code is licensed under the ISC license. 2239 * See the LICENSE file in the root directory of this source tree. 2240 */const QN=S("Construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]);/** 2241 * @license lucide-react v0.462.0 - ISC 2242 * 2243 * This source code is licensed under the ISC license. 2244 * See the LICENSE file in the root directory of this source tree. 2245 */const up=S("ContactRound",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M17.915 22a6 6 0 0 0-12 0",key:"suqz9p"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]);/** 2246 * @license lucide-react v0.462.0 - ISC 2247 * 2248 * This source code is licensed under the ISC license. 2249 * See the LICENSE file in the root directory of this source tree. 2250 */const JN=S("Contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]);/** 2251 * @license lucide-react v0.462.0 - ISC 2252 * 2253 * This source code is licensed under the ISC license. 2254 * See the LICENSE file in the root directory of this source tree. 2255 */const e8=S("Container",[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]]);/** 2256 * @license lucide-react v0.462.0 - ISC 2257 * 2258 * This source code is licensed under the ISC license. 2259 * See the LICENSE file in the root directory of this source tree. 2260 */const t8=S("Contrast",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 18a6 6 0 0 0 0-12v12z",key:"j4l70d"}]]);/** 2261 * @license lucide-react v0.462.0 - ISC 2262 * 2263 * This source code is licensed under the ISC license. 2264 * See the LICENSE file in the root directory of this source tree. 2265 */const r8=S("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/** 2266 * @license lucide-react v0.462.0 - ISC 2267 * 2268 * This source code is licensed under the ISC license. 2269 * See the LICENSE file in the root directory of this source tree. 2270 */const n8=S("CookingPot",[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"u0tga0"}],["path",{d:"m4 8 16-4",key:"16g0ng"}],["path",{d:"m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8",key:"12cejc"}]]);/** 2271 * @license lucide-react v0.462.0 - ISC 2272 * 2273 * This source code is licensed under the ISC license. 2274 * See the LICENSE file in the root directory of this source tree. 2275 */const a8=S("CopyCheck",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 2276 * @license lucide-react v0.462.0 - ISC 2277 * 2278 * This source code is licensed under the ISC license. 2279 * See the LICENSE file in the root directory of this source tree. 2280 */const i8=S("CopyMinus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 2281 * @license lucide-react v0.462.0 - ISC 2282 * 2283 * This source code is licensed under the ISC license. 2284 * See the LICENSE file in the root directory of this source tree. 2285 */const s8=S("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 2286 * @license lucide-react v0.462.0 - ISC 2287 * 2288 * This source code is licensed under the ISC license. 2289 * See the LICENSE file in the root directory of this source tree. 2290 */const o8=S("CopySlash",[["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 2291 * @license lucide-react v0.462.0 - ISC 2292 * 2293 * This source code is licensed under the ISC license. 2294 * See the LICENSE file in the root directory of this source tree. 2295 */const l8=S("CopyX",[["line",{x1:"12",x2:"18",y1:"12",y2:"18",key:"1rg63v"}],["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 2296 * @license lucide-react v0.462.0 - ISC 2297 * 2298 * This source code is licensed under the ISC license. 2299 * See the LICENSE file in the root directory of this source tree.
2300 */const t0=S("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 2301 * @license lucide-react v0.462.0 - ISC 2302 * 2303 * This source code is licensed under the ISC license. 2304 * See the LICENSE file in the root directory of this source tree. 2305 */const c8=S("Copyleft",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.17 14.83a4 4 0 1 0 0-5.66",key:"1sveal"}]]);/** 2306 * @license lucide-react v0.462.0 - ISC 2307 * 2308 * This source code is licensed under the ISC license. 2309 * See the LICENSE file in the root directory of this source tree. 2310 */const u8=S("Copyright",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M14.83 14.83a4 4 0 1 1 0-5.66",key:"1i56pz"}]]);/** 2311 * @license lucide-react v0.462.0 - ISC 2312 * 2313 * This source code is licensed under the ISC license. 2314 * See the LICENSE file in the root directory of this source tree. 2315 */const d8=S("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);/** 2316 * @license lucide-react v0.462.0 - ISC 2317 * 2318 * This source code is licensed under the ISC license. 2319 * See the LICENSE file in the root directory of this source tree. 2320 */const h8=S("CornerDownRight",[["polyline",{points:"15 10 20 15 15 20",key:"1q7qjw"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]);/** 2321 * @license lucide-react v0.462.0 - ISC 2322 * 2323 * This source code is licensed under the ISC license. 2324 * See the LICENSE file in the root directory of this source tree. 2325 */const f8=S("CornerLeftDown",[["polyline",{points:"14 15 9 20 4 15",key:"nkc4i"}],["path",{d:"M20 4h-7a4 4 0 0 0-4 4v12",key:"nbpdq2"}]]);/** 2326 * @license lucide-react v0.462.0 - ISC 2327 * 2328 * This source code is licensed under the ISC license. 2329 * See the LICENSE file in the root directory of this source tree. 2330 */const p8=S("CornerLeftUp",[["polyline",{points:"14 9 9 4 4 9",key:"m9oyvo"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]);/** 2331 * @license lucide-react v0.462.0 - ISC 2332 * 2333 * This source code is licensed under the ISC license. 2334 * See the LICENSE file in the root directory of this source tree. 2335 */const m8=S("CornerRightDown",[["polyline",{points:"10 15 15 20 20 15",key:"axus6l"}],["path",{d:"M4 4h7a4 4 0 0 1 4 4v12",key:"wcbgct"}]]);/** 2336 * @license lucide-react v0.462.0 - ISC 2337 * 2338 * This source code is licensed under the ISC license. 2339 * See the LICENSE file in the root directory of this source tree. 2340 */const g8=S("CornerRightUp",[["polyline",{points:"10 9 15 4 20 9",key:"1lr6px"}],["path",{d:"M4 20h7a4 4 0 0 0 4-4V4",key:"1plgdj"}]]);/** 2341 * @license lucide-react v0.462.0 - ISC 2342 * 2343 * This source code is licensed under the ISC license. 2344 * See the LICENSE file in the root directory of this source tree. 2345 */const y8=S("CornerUpLeft",[["polyline",{points:"9 14 4 9 9 4",key:"881910"}],["path",{d:"M20 20v-7a4 4 0 0 0-4-4H4",key:"1nkjon"}]]);/** 2346 * @license lucide-react v0.462.0 - ISC 2347 * 2348 * This source code is licensed under the ISC license. 2349 * See the LICENSE file in the root directory of this source tree. 2350 */const v8=S("CornerUpRight",[["polyline",{points:"15 14 20 9 15 4",key:"1tbx3s"}],["path",{d:"M4 20v-7a4 4 0 0 1 4-4h12",key:"1lu4f8"}]]);/** 2351 * @license lucide-react v0.462.0 - ISC 2352 * 2353 * This source code is licensed under the ISC license. 2354 * See the LICENSE file in the root directory of this source tree. 2355 */const x8=S("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
2355],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** 2356 * @license lucide-react v0.462.0 - ISC 2357 * 2358 * This source code is licensed under the ISC license. 2359 * See the LICENSE file in the root directory of this source tree. 2360 */const b8=S("CreativeCommons",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M10 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1",key:"1ss3eq"}],["path",{d:"M17 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1",key:"1od56t"}]]);/** 2361 * @license lucide-react v0.462.0 - ISC 2362 * 2363 * This source code is licensed under the ISC license. 2364 * See the LICENSE file in the root directory of this source tree. 2365 */const bs=S("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 2366 * @license lucide-react v0.462.0 - ISC 2367 * 2368 * This source code is licensed under the ISC license. 2369 * See the LICENSE file in the root directory of this source tree. 2370 */const w8=S("Croissant",[["path",{d:"m4.6 13.11 5.79-3.21c1.89-1.05 4.79 1.78 3.71 3.71l-3.22 5.81C8.8 23.16.79 15.23 4.6 13.11Z",key:"1ozxlb"}],["path",{d:"m10.5 9.5-1-2.29C9.2 6.48 8.8 6 8 6H4.5C2.79 6 2 6.5 2 8.5a7.71 7.71 0 0 0 2 4.83",key:"ffuyb5"}],["path",{d:"M8 6c0-1.55.24-4-2-4-2 0-2.5 2.17-2.5 4",key:"osnpzi"}],["path",{d:"m14.5 13.5 2.29 1c.73.3 1.21.7 1.21 1.5v3.5c0 1.71-.5 2.5-2.5 2.5a7.71 7.71 0 0 1-4.83-2",key:"1vubaw"}],["path",{d:"M18 16c1.55 0 4-.24 4 2 0 2-2.17 2.5-4 2.5",key:"wxr772"}]]);/** 2371 * @license lucide-react v0.462.0 - ISC 2372 * 2373 * This source code is licensed under the ISC license. 2374 * See the LICENSE file in the root directory of this source tree. 2375 */const k8=S("Crop",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]);/** 2376 * @license lucide-react v0.462.0 - ISC 2377 * 2378 * This source code is licensed under the ISC license. 2379 * See the LICENSE file in the root directory of this source tree. 2380 */const _8=S("Cross",[["path",{d:"M4 9a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h4a1 1 0 0 1 1 1v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a1 1 0 0 1 1-1h4a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-4a1 1 0 0 1-1-1V4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4a1 1 0 0 1-1 1z",key:"1xbrqy"}]]);/** 2381 * @license lucide-react v0.462.0 - ISC 2382 * 2383 * This source code is licensed under the ISC license. 2384 * See the LICENSE file in the root directory of this source tree. 2385 */const S8=S("Crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** 2386 * @license lucide-react v0.462.0 - ISC 2387 * 2388 * This source code is licensed under the ISC license. 2389 * See the LICENSE file in the root directory of this source tree. 2390 */const my=S("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 2391 * @license lucide-react v0.462.0 - ISC 2392 * 2393 * This source code is licensed under the ISC license. 2394 * See the LICENSE file in the root directory of this source tree. 2395 */const j8=S("Cuboid",[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]]);/** 2396 * @license lucide-react v0.462.0 - ISC 2397 * 2398 * This source code is licensed under the ISC license. 2399 * See the LICENSE file in the root directory of this source tree. 2400 */const E8=S("CupSoda",[["path",{d:"m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8",key:"8166m8"}],["path",{d:"M5 8h14",key:"pcz4l3"}],["path",{d:"M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0",key:"yjz344"}
2400],["path",{d:"m12 8 1-6h2",key:"3ybfa4"}]]);/** 2401 * @license lucide-react v0.462.0 - ISC 2402 * 2403 * This source code is licensed under the ISC license. 2404 * See the LICENSE file in the root directory of this source tree. 2405 */const C8=S("Currency",[["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}],["line",{x1:"3",x2:"6",y1:"3",y2:"6",key:"1jkytn"}],["line",{x1:"21",x2:"18",y1:"3",y2:"6",key:"14zfjt"}],["line",{x1:"3",x2:"6",y1:"21",y2:"18",key:"iusuec"}],["line",{x1:"21",x2:"18",y1:"21",y2:"18",key:"yj2dd7"}]]);/** 2406 * @license lucide-react v0.462.0 - ISC 2407 * 2408 * This source code is licensed under the ISC license. 2409 * See the LICENSE file in the root directory of this source tree. 2410 */const N8=S("Cylinder",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5v14a9 3 0 0 0 18 0V5",key:"aqi0yr"}]]);/** 2411 * @license lucide-react v0.462.0 - ISC 2412 * 2413 * This source code is licensed under the ISC license. 2414 * See the LICENSE file in the root directory of this source tree. 2415 */const T8=S("Dam",[["path",{d:"M11 11.31c1.17.56 1.54 1.69 3.5 1.69 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"157kva"}],["path",{d:"M11.75 18c.35.5 1.45 1 2.75 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"d7q6m6"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M7 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1L10 4a1 1 0 0 0-1-1z",key:"pr6s65"}]]);/** 2416 * @license lucide-react v0.462.0 - ISC 2417 * 2418 * This source code is licensed under the ISC license. 2419 * See the LICENSE file in the root directory of this source tree. 2420 */const A8=S("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]]);/** 2421 * @license lucide-react v0.462.0 - ISC 2422 * 2423 * This source code is licensed under the ISC license. 2424 * See the LICENSE file in the root directory of this source tree. 2425 */const M8=S("DatabaseZap",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]]);/** 2426 * @license lucide-react v0.462.0 - ISC 2427 * 2428 * This source code is licensed under the ISC license. 2429 * See the LICENSE file in the root directory of this source tree. 2430 */const I8=S("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 2431 * @license lucide-react v0.462.0 - ISC 2432 * 2433 * This source code is licensed under the ISC license. 2434 * See the LICENSE file in the root directory of this source tree. 2435 */const P8=S("Delete",[["path",{d:"M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",key:"1yo7s0"}],["path",{d:"m12 9 6 6",key:"anjzzh"}],["path",{d:"m18 9-6 6",key:"1fp51s"}]]);/** 2436 * @license lucide-react v0.462.0 - ISC 2437 * 2438 * This source code is licensed under the ISC license. 2439 * See the LICENSE file in the root directory of this source tree. 2440 */const L8=S("Dessert",[["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["path",{d:"M10.2 3.2C5.5 4 2 8.1 2 13a2 2 0 0 0 4 0v-1a2 2 0 0 1 4 0v4a2 2 0 0 0 4 0v-4a2 2 0 0 1 4 0v1a2 2 0 0 0 4 0c0-4.9-3.5-9-8.2-9.8",key:"lfo06j"}],["path",{d:"M3.2 14.8a9 9 0 0 0 17.6 0",key:"12xarc"}]]);/** 2441 * @license lucide-react v0.462.0 - ISC 2442 * 2443 * This source code is licensed under the ISC license. 2444 * See the LICENSE file in the root directory of this source tree. 2445 */const O8=S("Diameter",[["circle",{cx:"19",cy:"19",r:"2",key:"17f5cg"}],["circle",{cx:"5",cy:"5",r:"2",key:"1gwv83"}],["path",{d:"M6.48 3.66a10 10 0 0 1 13.86 13.86",key:"xr8kdq"}],["path",{d:"m6.41 6.41 11.18 11.18",key:"uhpjw7"}],["path",{d:"M3.66 6.48a10 10 0 0 0 13.86 13.86",key:"cldpwv"}]]);/** 2446 * @license lucide-react v0.462.0 - ISC 2447 * 2448 * This source code is licensed under the ISC license. 2449 * See the LICENSE file in the root directory of this source tree. 2450 */const R8=S("DiamondMinus",[["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",ke
2450y:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/** 2451 * @license lucide-react v0.462.0 - ISC 2452 * 2453 * This source code is licensed under the ISC license. 2454 * See the LICENSE file in the root directory of this source tree. 2455 */const dp=S("DiamondPercent",[["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0Z",key:"1tpxz2"}],["path",{d:"M9.2 9.2h.01",key:"1b7bvt"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"M14.7 14.8h.01",key:"17nsh4"}]]);/** 2456 * @license lucide-react v0.462.0 - ISC 2457 * 2458 * This source code is licensed under the ISC license. 2459 * See the LICENSE file in the root directory of this source tree. 2460 */const D8=S("DiamondPlus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/** 2461 * @license lucide-react v0.462.0 - ISC 2462 * 2463 * This source code is licensed under the ISC license. 2464 * See the LICENSE file in the root directory of this source tree. 2465 */const F8=S("Diamond",[["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z",key:"1f1r0c"}]]);/** 2466 * @license lucide-react v0.462.0 - ISC 2467 * 2468 * This source code is licensed under the ISC license. 2469 * See the LICENSE file in the root directory of this source tree. 2470 */const $8=S("Dice1",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]);/** 2471 * @license lucide-react v0.462.0 - ISC 2472 * 2473 * This source code is licensed under the ISC license. 2474 * See the LICENSE file in the root directory of this source tree. 2475 */const B8=S("Dice2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M15 9h.01",key:"x1ddxp"}],["path",{d:"M9 15h.01",key:"fzyn71"}]]);/** 2476 * @license lucide-react v0.462.0 - ISC 2477 * 2478 * This source code is licensed under the ISC license. 2479 * See the LICENSE file in the root directory of this source tree. 2480 */const z8=S("Dice3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 2481 * @license lucide-react v0.462.0 - ISC 2482 * 2483 * This source code is licensed under the ISC license. 2484 * See the LICENSE file in the root directory of this source tree. 2485 */const U8=S("Dice4",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 16h.01",key:"18s6g9"}],["path",{d:"M16 16h.01",key:"1f9h7w"}]]);/** 2486 * @license lucide-react v0.462.0 - ISC 2487 * 2488 * This source code is licensed under the ISC license. 2489 * See the LICENSE file in the root directory of this source tree. 2490 */const q8=S("Dice5",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 16h.01",key:"18s6g9"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]);/** 2491 * @license lucide-react v0.462.0 - ISC 2492 * 2493 * This source code is licensed under the ISC license. 2494 * See the LICENSE file in the root directory of this source tree. 2495 */const H8=S("Dice6",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 2496 * @license lucide-react v0.462.0 - ISC 2497 * 2498 * This source code is licensed under the ISC license. 2499 * See the LICENSE file in the root directory of this source tree. 2500 */const V8=S("Dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]);/** 2501 * @license lucide-react v0.462.0 - ISC 2502 * 2503 * This source code is licensed under the ISC license. 2504 * See the LICENSE file in the root directory of this source tree. 2505 */const W8=S("Diff",[["path",{d:"M12 3v14",key:"7cf3v8"}
2505],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 2506 * @license lucide-react v0.462.0 - ISC 2507 * 2508 * This source code is licensed under the ISC license. 2509 * See the LICENSE file in the root directory of this source tree. 2510 */const G8=S("Disc2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]);/** 2511 * @license lucide-react v0.462.0 - ISC 2512 * 2513 * This source code is licensed under the ISC license. 2514 * See the LICENSE file in the root directory of this source tree. 2515 */const K8=S("Disc3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]]);/** 2516 * @license lucide-react v0.462.0 - ISC 2517 * 2518 * This source code is licensed under the ISC license. 2519 * See the LICENSE file in the root directory of this source tree. 2520 */const Y8=S("DiscAlbum",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"12",r:"5",key:"nd82uf"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]);/** 2521 * @license lucide-react v0.462.0 - ISC 2522 * 2523 * This source code is licensed under the ISC license. 2524 * See the LICENSE file in the root directory of this source tree. 2525 */const X8=S("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 2526 * @license lucide-react v0.462.0 - ISC 2527 * 2528 * This source code is licensed under the ISC license. 2529 * See the LICENSE file in the root directory of this source tree. 2530 */const Z8=S("Divide",[["circle",{cx:"12",cy:"6",r:"1",key:"1bh7o1"}],["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["circle",{cx:"12",cy:"18",r:"1",key:"lqb9t5"}]]);/** 2531 * @license lucide-react v0.462.0 - ISC 2532 * 2533 * This source code is licensed under the ISC license. 2534 * See the LICENSE file in the root directory of this source tree. 2535 */const Q8=S("DnaOff",[["path",{d:"M15 2c-1.35 1.5-2.092 3-2.5 4.5L14 8",key:"1bivrr"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c3.333-3 6.667-3 10-3",key:"nxix30"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M22 9c-1.5 1.35-3 2.092-4.5 2.5l-1-1",key:"18cutr"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.35-1.5 2.092-3 2.5-4.5L10 16",key:"rlvei3"}]]);/** 2536 * @license lucide-react v0.462.0 - ISC 2537 * 2538 * This source code is licensed under the ISC license. 2539 * See the LICENSE file in the root directory of this source tree. 2540 */const J8=S("Dna",[["path",{d:"m10 16 1.5 1.5",key:"11lckj"}],["path",{d:"m14 8-1.5-1.5",key:"1ohn8i"}],["path",{d:"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993",key:"80uv8i"}],["path",{d:"m16.5 10.5 1 1",key:"696xn5"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c6.667-6 13.333 0 20-6",key:"1pyr53"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.798-1.998 2.518-3.995 2.807-5.993",key:"q3hbxp"}]]);/** 2541 * @license lucide-react v0.462.0 - ISC 2542 * 2543 * This source code is licensed under the ISC license. 2544 * See the LICENSE file in the root directory of this source tree. 2545 */const eT=S("Dock",[["path",{d:"M2 8h20",key:"d11cs7"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M6 16h12",key:"u522kt"}]]);/** 2546 * @license lucide-react v0.462.0 - ISC 2547 * 2548 * This source code is licensed under the ISC license. 2549 * See the LICENSE file in the root directory of this source tree. 2550 */const tT=S("Dog",[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]]);/** 2551 * @license lucide-react v0.462.0 - ISC 2552 * 2553 * This source code is licensed under the ISC license. 2554 * See the LICENSE file in the root directory of this source tree. 2555 */const gy=S("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 2556 * @license lucide-react v0.462.0 - ISC 2557 * 2558 * This source code is licensed under the ISC license. 2559 * See the LICENSE file in the root directory of this source tree. 2560 */const rT=S("Donut",[["path",{d:"M20.5 10a2.5 2.5 0 0 1-2.4-3H18a2.95 2.95 0 0 1-2.6-4.4 10 10 0 1 0 6.3 7.1c-.3.2-.8.3-1.2.3",ke
2560y:"19sr3x"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 2561 * @license lucide-react v0.462.0 - ISC 2562 * 2563 * This source code is licensed under the ISC license. 2564 * See the LICENSE file in the root directory of this source tree. 2565 */const nT=S("DoorClosed",[["path",{d:"M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14",key:"36qu9e"}],["path",{d:"M2 20h20",key:"owomy5"}],["path",{d:"M14 12v.01",key:"xfcn54"}]]);/** 2566 * @license lucide-react v0.462.0 - ISC 2567 * 2568 * This source code is licensed under the ISC license. 2569 * See the LICENSE file in the root directory of this source tree. 2570 */const aT=S("DoorOpen",[["path",{d:"M13 4h3a2 2 0 0 1 2 2v14",key:"hrm0s9"}],["path",{d:"M2 20h3",key:"1gaodv"}],["path",{d:"M13 20h9",key:"s90cdi"}],["path",{d:"M10 12v.01",key:"vx6srw"}],["path",{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z",key:"199qr4"}]]);/** 2571 * @license lucide-react v0.462.0 - ISC 2572 * 2573 * This source code is licensed under the ISC license. 2574 * See the LICENSE file in the root directory of this source tree. 2575 */const iT=S("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/** 2576 * @license lucide-react v0.462.0 - ISC 2577 * 2578 * This source code is licensed under the ISC license. 2579 * See the LICENSE file in the root directory of this source tree. 2580 */const sT=S("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 2581 * @license lucide-react v0.462.0 - ISC 2582 * 2583 * This source code is licensed under the ISC license. 2584 * See the LICENSE file in the root directory of this source tree. 2585 */const oT=S("DraftingCompass",[["path",{d:"m12.99 6.74 1.93 3.44",key:"iwagvd"}],["path",{d:"M19.136 12a10 10 0 0 1-14.271 0",key:"ppmlo4"}],["path",{d:"m21 21-2.16-3.84",key:"vylbct"}],["path",{d:"m3 21 8.02-14.26",key:"1ssaw4"}],["circle",{cx:"12",cy:"5",r:"2",key:"f1ur92"}]]);/** 2586 * @license lucide-react v0.462.0 - ISC 2587 * 2588 * This source code is licensed under the ISC license. 2589 * See the LICENSE file in the root directory of this source tree. 2590 */const lT=S("Drama",[["path",{d:"M10 11h.01",key:"d2at3l"}],["path",{d:"M14 6h.01",key:"k028ub"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6.5 13.1h.01",key:"1748ia"}],["path",{d:"M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3",key:"172yzv"}],["path",{d:"M17.4 9.9c-.8.8-2 .8-2.8 0",key:"1obv0w"}],["path",{d:"M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7",key:"rqjl8i"}],["path",{d:"M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4",key:"1mr6wy"}]]);/** 2591 * @license lucide-react v0.462.0 - ISC 2592 * 2593 * This source code is licensed under the ISC license. 2594 * See the LICENSE file in the root directory of this source tree. 2595 */const cT=S("Dribbble",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M19.13 5.09C15.22 9.14 10 10.44 2.25 10.94",key:"hpej1"}],["path",{d:"M21.75 12.84c-6.62-1.41-12.14 1-16.38 6.32",key:"1tr44o"}],["path",{d:"M8.56 2.75c4.37 6 6 9.42 8 17.72",key:"kbh691"}]]);/** 2596 * @license lucide-react v0.462.0 - ISC 2597 * 2598 * This source code is licensed under the ISC license. 2599 * See the LICENSE file in the root directory of this source tree. 2600 */const uT=S("Drill",[["path",{d:"M10 18a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a3 3 0 0 1-3-3 1 1 0 0 1 1-1z",key:"ioqxb1"}],["path",{d:"M13 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1l-.81 3.242a1 1 0 0 1-.97.758H8",key:"1rs59n"}],["path",{d:"M14 4h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-3",key:"105ega"}],["path",{d:"M18 6h4",key:"66u95g"}],["path",{d:"m5 10-2 8",key:"xt2lic"}],["path",{d:"m7 18 2-8",key:"1bzku2"}]]);/** 2601 * @license lucide-react v0.462.0 - ISC 2602 * 2603 * This source code is licensed under the ISC license. 2604 * See the LICENSE file in the root directory of this source tree. 2605 */const dT=S("Droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);/** 2606 * @license lucide-react v0.462.0 - ISC 2607 * 2608 * This source code is licensed under the ISC license. 2609 * See the LICENSE file in the root directory of this source tree. 2610 */const hT=S("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",ke
2610y:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/** 2611 * @license lucide-react v0.462.0 - ISC 2612 * 2613 * This source code is licensed under the ISC license. 2614 * See the LICENSE file in the root directory of this source tree. 2615 */const fT=S("Drum",[["path",{d:"m2 2 8 8",key:"1v6059"}],["path",{d:"m22 2-8 8",key:"173r8a"}],["ellipse",{cx:"12",cy:"9",rx:"10",ry:"5",key:"liohsx"}],["path",{d:"M7 13.4v7.9",key:"1yi6u9"}],["path",{d:"M12 14v8",key:"1tn2tj"}],["path",{d:"M17 13.4v7.9",key:"eqz2v3"}],["path",{d:"M2 9v8a10 5 0 0 0 20 0V9",key:"1750ul"}]]);/** 2616 * @license lucide-react v0.462.0 - ISC 2617 * 2618 * This source code is licensed under the ISC license. 2619 * See the LICENSE file in the root directory of this source tree. 2620 */const pT=S("Drumstick",[["path",{d:"M15.4 15.63a7.875 6 135 1 1 6.23-6.23 4.5 3.43 135 0 0-6.23 6.23",key:"1dtqwm"}],["path",{d:"m8.29 12.71-2.6 2.6a2.5 2.5 0 1 0-1.65 4.65A2.5 2.5 0 1 0 8.7 18.3l2.59-2.59",key:"1oq1fw"}]]);/** 2621 * @license lucide-react v0.462.0 - ISC 2622 * 2623 * This source code is licensed under the ISC license. 2624 * See the LICENSE file in the root directory of this source tree. 2625 */const mT=S("Dumbbell",[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]]);/** 2626 * @license lucide-react v0.462.0 - ISC 2627 * 2628 * This source code is licensed under the ISC license. 2629 * See the LICENSE file in the root directory of this source tree. 2630 */const gT=S("EarOff",[["path",{d:"M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46",key:"1qngmn"}],["path",{d:"M6 8.5c0-.75.13-1.47.36-2.14",key:"b06bma"}],["path",{d:"M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76",key:"g10hsz"}],["path",{d:"M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18",key:"ygzou7"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 2631 * @license lucide-react v0.462.0 - ISC 2632 * 2633 * This source code is licensed under the ISC license. 2634 * See the LICENSE file in the root directory of this source tree. 2635 */const yT=S("Ear",[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]]);/** 2636 * @license lucide-react v0.462.0 - ISC 2637 * 2638 * This source code is licensed under the ISC license. 2639 * See the LICENSE file in the root directory of this source tree. 2640 */const vT=S("EarthLock",[["path",{d:"M7 3.34V5a3 3 0 0 0 3 3",key:"w732o8"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2 2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"f02343"}],["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M12 2a10 10 0 1 0 9.54 13",key:"zjsr6q"}],["path",{d:"M20 6V4a2 2 0 1 0-4 0v2",key:"1of5e8"}],["rect",{width:"8",height:"5",x:"14",y:"6",rx:"1",key:"1fmf51"}]]);/** 2641 * @license lucide-react v0.462.0 - ISC 2642 * 2643 * This source code is licensed under the ISC license. 2644 * See the LICENSE file in the root directory of this source tree. 2645 */const hp=S("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 2646 * @license lucide-react v0.462.0 - ISC 2647 * 2648 * This source code is licensed under the ISC license. 2649 * See the LICENSE file in the root directory of this source tree. 2650 */const xT=S("Eclipse",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a7 7 0 1 0 10 10",key:"1yuj32"}]]);/** 2651 * @license lucide-react v0.462.0 - ISC 2652 * 2653 * This source code is licensed under the ISC license. 2654 * See the LICENSE file in the root directory of this source tree. 2655 */const bT=S("EggFried",[["circle",{cx:"11.5",cy:"12.5",r:"3.5",key:"1cl1mi"}],["path",{d:"M3 8c0-3.5 2.5-6 6.5-6 5 0 4.83 3 7.5 5s5 2 5 6c0 4.5-2.5 6.5-7 6.5-2.5 0-2.5 2.5-6 2.5s-7-2-7-5.5c0-3 1.5-3 1.5-5C3.5 10 3 9 3 8Z",key:"165ef9"}]]);/** 2656 * @license lucide-react v0.462.0 - ISC 2657 * 2658 * This source code is licensed under the ISC license. 2659 * See the LICENSE file in the root directory of this source tree. 2660 */const wT=S("EggOff",[["path",{d:"M6.399 6.399C5.362 8.157 4.65 10.189 4.5 12c-.37 4.43 1.27 9.95 7.5 10 3.256-.026 5.259-1.547 6.375-3.625",key:"6et380"}],["path",{d:"M19.532 13.875A14.07 14.07 0 0 0 19.5 12c-.36-4.34-3.95-9.96-7.5-10-1.04.012-2.082.502-3.046 1.297",key:"gcdc3f"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 2661 * @license lucide-react v0.462.0 - ISC 2662 * 2663 * This source code is licensed under the ISC license. 2664 * See the LICENSE file in the root directory of this source tree. 2665 */const kT=S("Egg",[["path",{d:"M12 22c6.23-.05 7.87-5.57 7.5-10-.36-4.34-3.95-9.96-7.5-10-3.55.04-7.14 5.66-7.5 10-.37 4.43 1.27 9.95 7.5 10z",key:"1c39pg"}]]);/** 2666 * @license lucide-react v0.462.0 - ISC 2667 * 2668 * This source code is licensed under the ISC license. 2669 * See the LICENSE file in the root directory of this source tree. 2670 */const fp=S("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/** 2671 * @license lucide-react v0.462.0 - ISC 2672 * 2673 * This source code is licensed under the ISC license. 2674 * See the LICENSE file in the root directory of this source tree. 2675 */const Xc=S("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** 2676 * @license lucide-react v0.462.0 - ISC 2677 * 2678 * This source code is licensed under the ISC license. 2679 * See the LICENSE file in the root directory of this source tree. 2680 */const _T=S("EqualApproximately",[["path",{d:"M5 15a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0",key:"yrdkhy"}],["path",{d:"M5 9a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0",key:"gzkvyz"}]]);/** 2681 * @license lucide-react v0.462.0 - ISC 2682 * 2683 * This source code is licensed under the ISC license. 2684 * See the LICENSE file in the root directory of this source tree. 2685 */const ST=S("EqualNot",[["line",{x1:"5",x2:"19",y1:"9",y2:"9",key:"1nwqeh"}],["line",{x1:"5",x2:"19",y1:"15",y2:"15",key:"g8yjpy"}],["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}]]);/** 2686 * @license lucide-react v0.462.0 - ISC 2687 * 2688 * This source code is licensed under the ISC license. 2689 * See the LICENSE file in the root directory of this source tree. 2690 */const jT=S("Equal",[["line",{x1:"5",x2:"19",y1:"9",y2:"9",key:"1nwqeh"}],["line",{x1:"5",x2:"19",y1:"15",y2:"15",key:"g8yjpy"}]]);/** 2691 * @license lucide-react v0.462.0 - ISC 2692 * 2693 * This source code is licensed under the ISC license. 2694 * See the LICENSE file in the root directory of this source tree. 2695 */const ET=S("Eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]);/** 2696 * @license lucide-react v0.462.0 - ISC 2697 * 2698 * This source code is licensed under the ISC license. 2699 * See the LICENSE file in the root directory of this source tree. 2700 */const CT=S("EthernetPort",[["path",{d:"m15 20 3-3h2a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2l3 3z",key:"rbahqx"}],["path",{d:"M6 8v1",key:"1636ez"}],["path",{d:"M10 8v1",key:"1talb4"}],["path",{d:"M14 8v1",key:"1rsfgr"}],["path",{d:"M18 8v1",key:"gnkwox"}]]);/** 2701 * @license lucide-react v0.462.0 - ISC 2702 * 2703 * This source code is licensed under the ISC license. 2704 * See the LICENSE file in the root directory of this source tree. 2705 */const NT=S("Euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]]);/** 2706 * @license lucide-react v0.462.0 - ISC 2707 * 2708 * This source code is licensed under the ISC license. 2709 * See the LICENSE file in the root directory of this source tree. 2710 */const TT=S("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/** 2711 * @license lucide-react v0.462.0 - ISC 2712 * 2713 * This source code is licensed under the ISC license. 2714 * See the LICENSE file in the root directory of this source tree.
2715 */const oc=S("ExternalLink",[["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"}]]);/** 2716 * @license lucide-react v0.462.0 - ISC 2717 * 2718 * This source code is licensed under the ISC license. 2719 * See the LICENSE file in the root directory of this source tree. 2720 */const AT=S("EyeClosed",[["path",{d:"m15 18-.722-3.25",key:"1j64jw"}],["path",{d:"M2 8a10.645 10.645 0 0 0 20 0",key:"1e7gxb"}],["path",{d:"m20 15-1.726-2.05",key:"1cnuld"}],["path",{d:"m4 15 1.726-2.05",key:"1dsqqd"}],["path",{d:"m9 18 .722-3.25",key:"ypw2yx"}]]);/** 2721 * @license lucide-react v0.462.0 - ISC 2722 * 2723 * This source code is licensed under the ISC license. 2724 * See the LICENSE file in the root directory of this source tree. 2725 */const MT=S("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 2726 * @license lucide-react v0.462.0 - ISC 2727 * 2728 * This source code is licensed under the ISC license. 2729 * See the LICENSE file in the root directory of this source tree. 2730 */const Qa=S("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 2731 * @license lucide-react v0.462.0 - ISC 2732 * 2733 * This source code is licensed under the ISC license. 2734 * See the LICENSE file in the root directory of this source tree. 2735 */const Xb=S("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 2736 * @license lucide-react v0.462.0 - ISC 2737 * 2738 * This source code is licensed under the ISC license. 2739 * See the LICENSE file in the root directory of this source tree. 2740 */const IT=S("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]]);/** 2741 * @license lucide-react v0.462.0 - ISC 2742 * 2743 * This source code is licensed under the ISC license. 2744 * See the LICENSE file in the root directory of this source tree. 2745 */const PT=S("Fan",[["path",{d:"M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z",key:"484a7f"}],["path",{d:"M12 12v.01",key:"u5ubse"}]]);/** 2746 * @license lucide-react v0.462.0 - ISC 2747 * 2748 * This source code is licensed under the ISC license. 2749 * See the LICENSE file in the root directory of this source tree. 2750 */const LT=S("FastForward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]);/** 2751 * @license lucide-react v0.462.0 - ISC 2752 * 2753 * This source code is licensed under the ISC license. 2754 * See the LICENSE file in the root directory of this source tree. 2755 */const OT=S("Feather",[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]]);/** 2756 * @license lucide-react v0.462.0 - ISC 2757 * 2758 * This source code is licensed under the ISC license. 2759 * See the LICENSE file in the root directory of this source tree. 2760 */const RT=S("Fence",[["path",{d:"M4 3 2 5v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z",key:"1n2rgs"}],["path",{d:"M6 8h4",key:"utf9t1"}],["path",{d:"M6 18h4",key:"12yh4b"}],["path",{d:"m12 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z",key:"3ha7mj"}],["path",{d:"M14 8h4",key:"1r8wg2"}],["path",{d:"M14 18h4",key:"1t3kbu"}],["path",{d:"m20 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z",key:"dfd4e2"}]]);/** 2761 * @license lucide-react v0.462.0 - ISC 2762 * 2763 * This source code is licensed under the ISC license. 2764 * See the LICENSE file in the root directory of this source tree. 2765 */const DT=S("FerrisWheel",[["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m6.8 15-3.5 2",key:"hjy98k"}],["path",{d:"m20.7 7-3.5 2",key:"f08gto"}
2765],["path",{d:"M6.8 9 3.3 7",key:"1aevh4"}],["path",{d:"m20.7 17-3.5-2",key:"1liqo3"}],["path",{d:"m9 22 3-8 3 8",key:"wees03"}],["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M18 18.7a9 9 0 1 0-12 0",key:"dhzg4g"}]]);/** 2766 * @license lucide-react v0.462.0 - ISC 2767 * 2768 * This source code is licensed under the ISC license. 2769 * See the LICENSE file in the root directory of this source tree. 2770 */const FT=S("Figma",[["path",{d:"M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z",key:"1340ok"}],["path",{d:"M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z",key:"1hz3m3"}],["path",{d:"M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z",key:"1oz8n2"}],["path",{d:"M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z",key:"1ff65i"}],["path",{d:"M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z",key:"pdip6e"}]]);/** 2771 * @license lucide-react v0.462.0 - ISC 2772 * 2773 * This source code is licensed under the ISC license. 2774 * See the LICENSE file in the root directory of this source tree. 2775 */const $T=S("FileArchive",[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]]);/** 2776 * @license lucide-react v0.462.0 - ISC 2777 * 2778 * This source code is licensed under the ISC license. 2779 * See the LICENSE file in the root directory of this source tree. 2780 */const BT=S("FileAudio2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"3",cy:"17",r:"1",key:"vo6nti"}],["path",{d:"M2 17v-3a4 4 0 0 1 8 0v3",key:"1ggdre"}],["circle",{cx:"9",cy:"17",r:"1",key:"bc1fq4"}]]);/** 2781 * @license lucide-react v0.462.0 - ISC 2782 * 2783 * This source code is licensed under the ISC license. 2784 * See the LICENSE file in the root directory of this source tree. 2785 */const zT=S("FileAudio",[["path",{d:"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"rslqgf"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0",key:"9f7x3i"}]]);/** 2786 * @license lucide-react v0.462.0 - ISC 2787 * 2788 * This source code is licensed under the ISC license. 2789 * See the LICENSE file in the root directory of this source tree. 2790 */const pp=S("FileAxis3d",[["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:"m8 18 4-4",key:"12zab0"}],["path",{d:"M8 10v8h8",key:"tlaukw"}]]);/** 2791 * @license lucide-react v0.462.0 - ISC 2792 * 2793 * This source code is licensed under the ISC license. 2794 * See the LICENSE file in the root directory of this source tree. 2795 */const UT=S("FileBadge2",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14 12.5 1 5.5-3-1-3 1 1-5.5",key:"14xlky"}]]);/** 2796 * @license lucide-react v0.462.0 - ISC 2797 * 2798 * This source code is licensed under the ISC license. 2799 * See the LICENSE file in the root directory of this source tree. 2800 */const qT=S("FileBadge",[["path",{d:"M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"12ixgl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M5 17a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",key:"u0c8gj"}],["path",{d:"M7 16.5 8 22l-3-1-3 1 1-5.5",key:"5gm2nr"}]]);/** 2801 * @license lucide-react v0.462.0 - ISC 2802 * 2803 * This source code is licensed under the ISC license. 2804 * See the LICENSE file in the root directory of this source tree. 2805 */const HT=S("FileBox",[["path",{d:"M14.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"16lz6z"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 13.1a2 2 0 0 0-1 1.76v3.24a2 2 0 0 0 .97 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01Z",key:"99pj1s"}],["path",{d:"M7 17v5",key:"1yj1jh"}
2805],["path",{d:"M11.7 14.2 7 17l-4.7-2.8",key:"1yk8tc"}]]);/** 2806 * @license lucide-react v0.462.0 - ISC 2807 * 2808 * This source code is licensed under the ISC license. 2809 * See the LICENSE file in the root directory of this source tree. 2810 */const mp=S("FileChartColumnIncreasing",[["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:"M8 18v-2",key:"qcmpov"}],["path",{d:"M12 18v-4",key:"q1q25u"}],["path",{d:"M16 18v-6",key:"15y0np"}]]);/** 2811 * @license lucide-react v0.462.0 - ISC 2812 * 2813 * This source code is licensed under the ISC license. 2814 * See the LICENSE file in the root directory of this source tree. 2815 */const gp=S("FileChartColumn",[["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:"M8 18v-1",key:"zg0ygc"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"M16 18v-3",key:"j5jt4h"}]]);/** 2816 * @license lucide-react v0.462.0 - ISC 2817 * 2818 * This source code is licensed under the ISC license. 2819 * See the LICENSE file in the root directory of this source tree. 2820 */const yp=S("FileChartLine",[["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:"m16 13-3.5 3.5-2-2L8 17",key:"zz7yod"}]]);/** 2821 * @license lucide-react v0.462.0 - ISC 2822 * 2823 * This source code is licensed under the ISC license. 2824 * See the LICENSE file in the root directory of this source tree. 2825 */const vp=S("FileChartPie",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3.5",key:"13ddob"}],["path",{d:"M4.017 11.512a6 6 0 1 0 8.466 8.475",key:"s6vs5t"}],["path",{d:"M9 16a1 1 0 0 1-1-1v-4c0-.552.45-1.008.995-.917a6 6 0 0 1 4.922 4.922c.091.544-.365.995-.917.995z",key:"1dl6s6"}]]);/** 2826 * @license lucide-react v0.462.0 - ISC 2827 * 2828 * This source code is licensed under the ISC license. 2829 * See the LICENSE file in the root directory of this source tree. 2830 */const VT=S("FileCheck2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]]);/** 2831 * @license lucide-react v0.462.0 - ISC 2832 * 2833 * This source code is licensed under the ISC license. 2834 * See the LICENSE file in the root directory of this source tree. 2835 */const WT=S("FileCheck",[["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:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** 2836 * @license lucide-react v0.462.0 - ISC 2837 * 2838 * This source code is licensed under the ISC license. 2839 * See the LICENSE file in the root directory of this source tree. 2840 */const GT=S("FileClock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"37hlfg"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);/** 2841 * @license lucide-react v0.462.0 - ISC 2842 * 2843 * This source code is licensed under the ISC license. 2844 * See the LICENSE file in the root directory of this source tree. 2845 */const KT=S("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/** 2846 * @license lucide-react v0.462.0 - ISC 2847 * 2848 * This source code is licensed under the ISC license. 2849 * See the LICENSE file in the root directory of this source tree. 2850 */const yy=S("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/** 2851 * @license lucide-react v0.462.0 - ISC 2852 * 2853 * This source code is licensed under the ISC license. 2854 * See the LICENSE file in the root directory of this source tree. 2855 */const xp=S("FileCog",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3.2 12.9-.9-.4",key:"1i3dj5"}],["path",{d:"m3.2 15.1-.9.4",key:"1fvgj0"}],["path",{d:"M4.677 21.5a2 2 0 0 0 1.313.5H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2.5",key:"1yo3oz"}],["path",{d:"m4.9 11.2-.4-.9",key:"otmhb9"}],["path",{d:"m4.9 16.8-.4.9",key:"1b8z07"}],["path",{d:"m7.5 10.3-.4.9",key:"11k65u"}],["path",{d:"m7.5 17.7-.4-.9",key:"431x55"}],["path",{d:"m9.7 12.5-.9.4",key:"87sjan"}],["path",{d:"m9.7 15.5-.9-.4",key:"khqm91"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}]]);/** 2856 * @license lucide-react v0.462.0 - ISC 2857 * 2858 * This source code is licensed under the ISC license. 2859 * See the LICENSE file in the root directory of this source tree. 2860 */const YT=S("FileDiff",[["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:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);/** 2861 * @license lucide-react v0.462.0 - ISC 2862 * 2863 * This source code is licensed under the ISC license. 2864 * See the LICENSE file in the root directory of this source tree. 2865 */const XT=S("FileDigit",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"4",height:"6",x:"2",y:"12",rx:"2",key:"jm304g"}],["path",{d:"M10 12h2v6",key:"12zw74"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 2866 * @license lucide-react v0.462.0 - ISC 2867 * 2868 * This source code is licensed under the ISC license. 2869 * See the LICENSE file in the root directory of this source tree. 2870 */const vy=S("FileDown",[["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:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/** 2871 * @license lucide-react v0.462.0 - ISC 2872 * 2873 * This source code is licensed under the ISC license. 2874 * See the LICENSE file in the root directory of this source tree. 2875 */const ZT=S("FileHeart",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10.29 10.7a2.43 2.43 0 0 0-2.66-.52c-.29.12-.56.3-.78.53l-.35.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L6.5 18l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z",key:"1c1fso"}]]);/** 2876 * @license lucide-react v0.462.0 - ISC 2877 * 2878 * This source code is licensed under the ISC license. 2879 * See the LICENSE file in the root directory of this source tree. 2880 */const QT=S("FileImage",[["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"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/** 2881 * @license lucide-react v0.462.0 - ISC 2882 * 2883 * This source code is licensed under the ISC license. 2884 * See the LICENSE file in the root directory of this source tree. 2885 */const JT=S("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/** 2886 * @license lucide-react v0.462.0 - ISC 2887 * 2888 * This source code is licensed under the ISC license. 2889 * See the LICENSE file in the root directory of this source tree. 2890 */const eA=S("FileJson2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"fq0c9t"}],["path",{d:"M8 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"4gibmv"}]]);/** 2891 * @license lucide-react v0.462.0 - ISC 2892 * 2893 * This source code is licensed under the ISC license. 2894 * See the LICENSE file in the root directory of this source tree. 2895 */const tA=S("FileJson",[["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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/** 2896 * @license lucide-react v0.462.0 - ISC 2897 * 2898 * This source code is licensed under the ISC license. 2899 * See the LICENSE file in the root directory of this source tree.
2900 */const rA=S("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]]);/** 2901 * @license lucide-react v0.462.0 - ISC 2902 * 2903 * This source code is licensed under the ISC license. 2904 * See the LICENSE file in the root directory of this source tree. 2905 */const nA=S("FileKey",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["circle",{cx:"10",cy:"16",r:"2",key:"4ckbqe"}],["path",{d:"m16 10-4.5 4.5",key:"7p3ebg"}],["path",{d:"m15 11 1 1",key:"1bsyx3"}]]);/** 2906 * @license lucide-react v0.462.0 - ISC 2907 * 2908 * This source code is licensed under the ISC license. 2909 * See the LICENSE file in the root directory of this source tree. 2910 */const aA=S("FileLock2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v1",key:"jmtmu2"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"5",x:"2",y:"13",rx:"1",key:"10y5wo"}],["path",{d:"M8 13v-2a2 2 0 1 0-4 0v2",key:"1pdxzg"}]]);/** 2911 * @license lucide-react v0.462.0 - ISC 2912 * 2913 * This source code is licensed under the ISC license. 2914 * See the LICENSE file in the root directory of this source tree. 2915 */const iA=S("FileLock",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["rect",{width:"8",height:"6",x:"8",y:"12",rx:"1",key:"3yr8at"}],["path",{d:"M10 12v-2a2 2 0 1 1 4 0v2",key:"j4i8d"}]]);/** 2916 * @license lucide-react v0.462.0 - ISC 2917 * 2918 * This source code is licensed under the ISC license. 2919 * See the LICENSE file in the root directory of this source tree. 2920 */const sA=S("FileMinus2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}]]);/** 2921 * @license lucide-react v0.462.0 - ISC 2922 * 2923 * This source code is licensed under the ISC license. 2924 * See the LICENSE file in the root directory of this source tree. 2925 */const oA=S("FileMinus",[["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:"M9 15h6",key:"cctwl0"}]]);/** 2926 * @license lucide-react v0.462.0 - ISC 2927 * 2928 * This source code is licensed under the ISC license. 2929 * See the LICENSE file in the root directory of this source tree. 2930 */const lA=S("FileMusic",[["path",{d:"M10.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v8.4",key:"1d3kfm"}],["path",{d:"M8 18v-7.7L16 9v7",key:"1oie6o"}],["circle",{cx:"14",cy:"16",r:"2",key:"1bzzi3"}],["circle",{cx:"6",cy:"18",r:"2",key:"1fncim"}]]);/** 2931 * @license lucide-react v0.462.0 - ISC 2932 * 2933 * This source code is licensed under the ISC license. 2934 * See the LICENSE file in the root directory of this source tree. 2935 */const cA=S("FileOutput",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 7V4a2 2 0 0 1 2-2 2 2 0 0 0-2 2",key:"1vk7w2"}],["path",{d:"M4.063 20.999a2 2 0 0 0 2 1L18 22a2 2 0 0 0 2-2V7l-5-5H6",key:"1jink5"}],["path",{d:"m5 11-3 3",key:"1dgrs4"}],["path",{d:"m5 17-3-3h10",key:"1mvvaf"}]]);/** 2936 * @license lucide-react v0.462.0 - ISC 2937 * 2938 * This source code is licensed under the ISC license. 2939 * See the LICENSE file in the root directory of this source tree. 2940 */const bp=S("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/** 2941 * @license lucide-react v0.462.0 - ISC 2942 * 2943 * This source code is licensed under the ISC license. 2944 * See the LICENSE file in the root directory of this source tree. 2945 */const wp=S("FilePen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);/** 2946 * @license lucide-react v0.462.0 - ISC 2947 * 2948 * This source code is licensed under the ISC license. 2949 * See the LICENSE file in the root directory of this source tree. 2950 */const uA=S("FilePlus2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]);/** 2951 * @license lucide-react v0.462.0 - ISC 2952 * 2953 * This source code is licensed under the ISC license. 2954 * See the LICENSE file in the root directory of this source tree. 2955 */const dA=S("FilePlus",[["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:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/** 2956 * @license lucide-react v0.462.0 - ISC 2957 * 2958 * This source code is licensed under the ISC license. 2959 * See the LICENSE file in the root directory of this source tree. 2960 */const hA=S("FileQuestion",[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",ke
2960y:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]]);/** 2961 * @license lucide-react v0.462.0 - ISC 2962 * 2963 * This source code is licensed under the ISC license. 2964 * See the LICENSE file in the root directory of this source tree. 2965 */const fA=S("FileScan",[["path",{d:"M20 10V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4",key:"1rdf37"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M16 14a2 2 0 0 0-2 2",key:"ceaadl"}],["path",{d:"M20 14a2 2 0 0 1 2 2",key:"1ny6zw"}],["path",{d:"M20 22a2 2 0 0 0 2-2",key:"1l9q4k"}],["path",{d:"M16 22a2 2 0 0 1-2-2",key:"1wqh5n"}]]);/** 2966 * @license lucide-react v0.462.0 - ISC 2967 * 2968 * This source code is licensed under the ISC license. 2969 * See the LICENSE file in the root directory of this source tree. 2970 */const pA=S("FileSearch2",[["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"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]);/** 2971 * @license lucide-react v0.462.0 - ISC 2972 * 2973 * This source code is licensed under the ISC license. 2974 * See the LICENSE file in the root directory of this source tree. 2975 */const mA=S("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/** 2976 * @license lucide-react v0.462.0 - ISC 2977 * 2978 * This source code is licensed under the ISC license. 2979 * See the LICENSE file in the root directory of this source tree. 2980 */const gA=S("FileSliders",[["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:"M8 12h8",key:"1wcyev"}],["path",{d:"M10 11v2",key:"1s651w"}],["path",{d:"M8 17h8",key:"wh5c61"}],["path",{d:"M14 16v2",key:"12fp5e"}]]);/** 2981 * @license lucide-react v0.462.0 - ISC 2982 * 2983 * This source code is licensed under the ISC license. 2984 * See the LICENSE file in the root directory of this source tree. 2985 */const yA=S("FileSpreadsheet",[["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:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** 2986 * @license lucide-react v0.462.0 - ISC 2987 * 2988 * This source code is licensed under the ISC license. 2989 * See the LICENSE file in the root directory of this source tree. 2990 */const vA=S("FileStack",[["path",{d:"M21 7h-3a2 2 0 0 1-2-2V2",key:"9rb54x"}],["path",{d:"M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17Z",key:"1059l0"}],["path",{d:"M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15",key:"16874u"}],["path",{d:"M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11",key:"k2ox98"}]]);/** 2991 * @license lucide-react v0.462.0 - ISC 2992 * 2993 * This source code is licensed under the ISC license. 2994 * See the LICENSE file in the root directory of this source tree. 2995 */const xA=S("FileSymlink",[["path",{d:"m10 18 3-3-3-3",key:"18f6ys"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 11V4a2 2 0 0 1 2-2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7",key:"50q2rw"}]]);/** 2996 * @license lucide-react v0.462.0 - ISC 2997 * 2998 * This source code is licensed under the ISC license. 2999 * See the LICENSE file in the root directory of this source tree. 3000 */const bA=S("FileTerminal",[["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:"m8 16 2-2-2-2",key:"10vzyd"}],["path",{d:"M12 18h4",key:"1wd2n7"}]]);/** 3001 * @license lucide-react v0.462.0 - ISC 3002 * 3003 * This source code is licensed under the ISC license. 3004 * See the LICENSE file in the root directory of this source tree. 3005 */const Ti=S("FileText",[["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"}]]);/** 3006 * @license lucide-react v0.462.0 - ISC 3007 * 3008 * This source code is licensed under the ISC license. 3009 * See the LICENSE file in the root directory of this source tree. 3010 */const wA=S("FileType2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 13v-1h6v1",key:"1dh9dg"}],["path",{d:"M5 12v6",key:"150t9c"}],["path",{d:"M4 18h2",key:"1xrofg"}]]);/** 3011 * @license lucide-react v0.462.0 - ISC 3012 * 3013 * This source code is licensed under the ISC license. 3014 * See the LICENSE file in the root directory of this source tree. 3015 */const kA=S("FileType",[["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:"M9 13v-1h6v1",key:"1bb014"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M11 18h2",key:"12mj7e"}]]);/** 3016 * @license lucide-react v0.462.0 - ISC 3017 * 3018 * This source code is licensed under the ISC license. 3019 * See the LICENSE file in the root directory of this source tree. 3020 */const _A=S("FileUp",[["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:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]);/** 3021 * @license lucide-react v0.462.0 - ISC 3022 * 3023 * This source code is licensed under the ISC license. 3024 * See the LICENSE file in the root directory of this source tree. 3025 */const SA=S("FileUser",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 18a3 3 0 1 0-6 0",key:"16awa0"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",ke
3025y:"1mlx9k"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]);/** 3026 * @license lucide-react v0.462.0 - ISC 3027 * 3028 * This source code is licensed under the ISC license. 3029 * See the LICENSE file in the root directory of this source tree. 3030 */const jA=S("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);/** 3031 * @license lucide-react v0.462.0 - ISC 3032 * 3033 * This source code is licensed under the ISC license. 3034 * See the LICENSE file in the root directory of this source tree. 3035 */const EA=S("FileVideo",[["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 11 5 3-5 3v-6Z",key:"7ntvm4"}]]);/** 3036 * @license lucide-react v0.462.0 - ISC 3037 * 3038 * This source code is licensed under the ISC license. 3039 * See the LICENSE file in the root directory of this source tree. 3040 */const CA=S("FileVolume2",[["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:"M8 15h.01",key:"a7atzg"}],["path",{d:"M11.5 13.5a2.5 2.5 0 0 1 0 3",key:"1fccat"}],["path",{d:"M15 12a5 5 0 0 1 0 6",key:"ps46cm"}]]);/** 3041 * @license lucide-react v0.462.0 - ISC 3042 * 3043 * This source code is licensed under the ISC license. 3044 * See the LICENSE file in the root directory of this source tree. 3045 */const NA=S("FileVolume",[["path",{d:"M11 11a5 5 0 0 1 0 6",key:"193qb2"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 6.765V4a2 2 0 0 1 2-2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-.93-.23",key:"ifyjnl"}],["path",{d:"M7 10.51a.5.5 0 0 0-.826-.38l-1.893 1.628A1 1 0 0 1 3.63 12H2.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h1.129a1 1 0 0 1 .652.242l1.893 1.63a.5.5 0 0 0 .826-.38z",key:"mk8rxu"}]]);/** 3046 * @license lucide-react v0.462.0 - ISC 3047 * 3048 * This source code is licensed under the ISC license. 3049 * See the LICENSE file in the root directory of this source tree. 3050 */const TA=S("FileWarning",[["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:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 3051 * @license lucide-react v0.462.0 - ISC 3052 * 3053 * This source code is licensed under the ISC license. 3054 * See the LICENSE file in the root directory of this source tree. 3055 */const AA=S("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]]);/** 3056 * @license lucide-react v0.462.0 - ISC 3057 * 3058 * This source code is licensed under the ISC license. 3059 * See the LICENSE file in the root directory of this source tree. 3060 */const MA=S("FileX",[["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:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]);/** 3061 * @license lucide-react v0.462.0 - ISC 3062 * 3063 * This source code is licensed under the ISC license. 3064 * See the LICENSE file in the root directory of this source tree. 3065 */const IA=S("File",[["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"}]]);/** 3066 * @license lucide-react v0.462.0 - ISC 3067 * 3068 * This source code is licensed under the ISC license. 3069 * See the LICENSE file in the root directory of this source tree. 3070 */const PA=S("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]);/** 3071 * @license lucide-react v0.462.0 - ISC 3072 * 3073 * This source code is licensed under the ISC license. 3074 * See the LICENSE file in the root directory of this source tree. 3075 */const LA=S("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/** 3076 * @license lucide-react v0.462.0 - ISC 3077 * 3078 * This source code is licensed under the ISC license. 3079 * See the LICENSE file in the root directory of this source tree. 3080 */const OA=S("FilterX",[["path",{d:"M13.013 3H2l8 9.46V19l4 2v-8.54l.9-1.055",key:"1fi1da"}],["path",{d:"m22 3-5 5",key:"12jva0"}],["path",{d:"m17 3 5 5",key:"k36vhe"}]]);/** 3081 * @license lucide-react v0.462.0 - ISC 3082 * 3083 * This source code is licensed under the ISC license. 3084 * See the LICENSE file in the root directory of this source tree. 3085 */const RA=S("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 3086 * @license lucide-react v0.462.0 - ISC 3087 * 3088 * This source code is licensed under the ISC license. 3089 * See the LICENSE file in the root directory of this source tree. 3090 */const DA=S("Fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}
3090],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]]);/** 3091 * @license lucide-react v0.462.0 - ISC 3092 * 3093 * This source code is licensed under the ISC license. 3094 * See the LICENSE file in the root directory of this source tree. 3095 */const FA=S("FireExtinguisher",[["path",{d:"M15 6.5V3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3.5",key:"sqyvz"}],["path",{d:"M9 18h8",key:"i7pszb"}],["path",{d:"M18 3h-3",key:"7idoqj"}],["path",{d:"M11 3a6 6 0 0 0-6 6v11",key:"1v5je3"}],["path",{d:"M5 13h4",key:"svpcxo"}],["path",{d:"M17 10a4 4 0 0 0-8 0v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2Z",key:"vsjego"}]]);/** 3096 * @license lucide-react v0.462.0 - ISC 3097 * 3098 * This source code is licensed under the ISC license. 3099 * See the LICENSE file in the root directory of this source tree. 3100 */const $A=S("FishOff",[["path",{d:"M18 12.47v.03m0-.5v.47m-.475 5.056A6.744 6.744 0 0 1 15 18c-3.56 0-7.56-2.53-8.5-6 .348-1.28 1.114-2.433 2.121-3.38m3.444-2.088A8.802 8.802 0 0 1 15 6c3.56 0 6.06 2.54 7 6-.309 1.14-.786 2.177-1.413 3.058",key:"1j1hse"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33m7.48-4.372A9.77 9.77 0 0 1 16 6.07m0 11.86a9.77 9.77 0 0 1-1.728-3.618",key:"1q46z8"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98M8.53 3h5.27a2 2 0 0 1 1.98 1.67l.23 1.4M2 2l20 20",key:"1407gh"}]]);/** 3101 * @license lucide-react v0.462.0 - ISC 3102 * 3103 * This source code is licensed under the ISC license. 3104 * See the LICENSE file in the root directory of this source tree. 3105 */const BA=S("FishSymbol",[["path",{d:"M2 16s9-15 20-4C11 23 2 8 2 8",key:"h4oh4o"}]]);/** 3106 * @license lucide-react v0.462.0 - ISC 3107 * 3108 * This source code is licensed under the ISC license. 3109 * See the LICENSE file in the root directory of this source tree. 3110 */const zA=S("Fish",[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]]);/** 3111 * @license lucide-react v0.462.0 - ISC 3112 * 3113 * This source code is licensed under the ISC license. 3114 * See the LICENSE file in the root directory of this source tree. 3115 */const UA=S("FlagOff",[["path",{d:"M8 2c3 0 5 2 8 2s4-1 4-1v11",key:"9rwyz9"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M4 15s1-1 4-1 5 2 8 2",key:"1myooe"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 3116 * @license lucide-react v0.462.0 - ISC 3117 * 3118 * This source code is licensed under the ISC license. 3119 * See the LICENSE file in the root directory of this source tree. 3120 */const qA=S("FlagTriangleLeft",[["path",{d:"M17 22V2L7 7l10 5",key:"1rmf0r"}]]);/** 3121 * @license lucide-react v0.462.0 - ISC 3122 * 3123 * This source code is licensed under the ISC license. 3124 * See the LICENSE file in the root directory of this source tree. 3125 */const HA=S("FlagTriangleRight",[["path",{d:"M7 22V2l10 5-10 5",key:"17n18y"}]]);/** 3126 * @license lucide-react v0.462.0 - ISC 3127 * 3128 * This source code is licensed under the ISC license. 3129 * See the LICENSE file in the root directory of this source tree. 3130 */const VA=S("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);/** 3131 * @license lucide-react v0.462.0 - ISC 3132 * 3133 * This source code is licensed under the ISC license. 3134 * See the LICENSE file in the root directory of this source tree. 3135 */const WA=S("FlameKindling",[["path",{d:"M12 2c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 17 10a5 5 0 1 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C8 4.5 11 2 12 2Z",key:"1ir223"}],["path",{d:"m5 22 14-4",key:"1brv4h"}],["path",{d:"m5 18 14 4",key:"lgyyje"}]]);/** 3136 * @license lucide-react v0.462.0 - ISC 3137 * 3138 * This source code is licensed under the ISC license. 3139 * See the LICENSE file in the root directory of this source tree. 3140 */const GA=S("Flame",[["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"}]]);/** 3141 * @license lucide-react v0.462.0 - ISC 3142 * 3143 * This source code is licensed under the ISC license. 3144 * See the LICENSE file in the root directory of this source tree. 3145 */const KA=S("FlashlightOff",[["path",{d:"M16 16v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V10c0-2-2-2-2-4",key:"1r120k"}],["path",{d:"M7 2h11v4c0 2-2 2-2 4v1",key:"dz1920"}],["line",{x1:"11",x2:"18",y1:"6",y2:"6",key:"bi1vpe"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 3146 * @license lucide-react v0.462.0 - ISC 3147 * 3148 * This source code is licensed under the ISC license. 3149 * See the LICENSE file in the root directory of this source tree. 3150 */const YA=S("Flashlight",[["path",{d:"M18 6c0 2-2 2-2 4v10a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V10c0-2-2-2-2-4V2h12z",key:"1orkel"}],["line",{x1:"6",x2:"18",y1:"6",y2:"6",key:"1z11jq"}],["line",{x1:"12",x2:"12",y1:"12",y2:"12",key:"1f4yc1"}]]);/** 3151 * @license lucide-react v0.462.0 - ISC 3152 * 3153 * This source code is licensed under the ISC license. 3154 * See the LICENSE file in the root directory of this source tree. 3155 */const XA=S("FlaskConicalOff",[["path",{d:"M10 10 4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-1.272-2.542",key:"59ek9y"}],["path",{d:"M10 2v2.343",key:"15t272"}],["path",{d:"M14 2v6.343",key:"sxr80q"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h9",key:"t5njau"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 3156 * @license lucide-react v0.462.0 - ISC 3157 * 3158 * This source code is licensed under the ISC license. 3159 * See the LICENSE file in the root directory of this source tree. 3160 */const ZA=S("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/** 3161 * @license lucide-react v0.462.0 - ISC 3162 * 3163 * This source code is licensed under the ISC license. 3164 * See the LICENSE file in the root directory of this source tree. 3165 */const QA=S("FlaskRound",[["path",{d:"M10 2v7.31",key:"5d1hyh"}],["path",{d:"M14 9.3V1.99",key:"14k4l0"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14 9.3a6.5 6.5 0 1 1-4 0",key:"1r8fvy"}],["path",{d:"M5.52 16h12.96",key:"46hh1i"}]]);/** 3166 * @license lucide-react v0.462.0 - ISC 3167 * 3168 * This source code is licensed under the ISC license. 3169 * See the LICENSE file in the root directory of this source tree. 3170 */const JA=S("FlipHorizontal2",[["path",{d:"m3 7 5 5-5 5V7",key:"couhi7"}],["path",{d:"m21 7-5 5 5 5V7",key:"6ouia7"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]]);/** 3171 * @license lucide-react v0.462.0 - ISC 3172 * 3173 * This source code is licensed under the ISC license. 3174 * See the LICENSE file in the root directory of this source tree. 3175 */const eM=S("FlipHorizontal",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]]);/** 3176 * @license lucide-react v0.462.0 - ISC 3177 * 3178 * This source code is licensed under the ISC license. 3179 * See the LICENSE file in the root directory of this source tree. 3180 */const tM=S("FlipVertical2",[["path",{d:"m17 3-5 5-5-5h10",key:"1ftt6x"}],["path",{d:"m17 21-5-5-5 5h10",key:"1m0wmu"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}
3180],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]]);/** 3181 * @license lucide-react v0.462.0 - ISC 3182 * 3183 * This source code is licensed under the ISC license. 3184 * See the LICENSE file in the root directory of this source tree. 3185 */const rM=S("FlipVertical",[["path",{d:"M21 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v3",key:"14bfxa"}],["path",{d:"M21 16v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3",key:"14rx03"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]]);/** 3186 * @license lucide-react v0.462.0 - ISC 3187 * 3188 * This source code is licensed under the ISC license. 3189 * See the LICENSE file in the root directory of this source tree. 3190 */const nM=S("Flower2",[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]]);/** 3191 * @license lucide-react v0.462.0 - ISC 3192 * 3193 * This source code is licensed under the ISC license. 3194 * See the LICENSE file in the root directory of this source tree. 3195 */const aM=S("Flower",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5",key:"14wa3c"}],["path",{d:"M12 7.5V9",key:"1oy5b0"}],["path",{d:"M7.5 12H9",key:"eltsq1"}],["path",{d:"M16.5 12H15",key:"vk5kw4"}],["path",{d:"M12 16.5V15",key:"k7eayi"}],["path",{d:"m8 8 1.88 1.88",key:"nxy4qf"}],["path",{d:"M14.12 9.88 16 8",key:"1lst6k"}],["path",{d:"m8 16 1.88-1.88",key:"h2eex1"}],["path",{d:"M14.12 14.12 16 16",key:"uqkrx3"}]]);/** 3196 * @license lucide-react v0.462.0 - ISC 3197 * 3198 * This source code is licensed under the ISC license. 3199 * See the LICENSE file in the root directory of this source tree. 3200 */const Zb=S("Focus",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/** 3201 * @license lucide-react v0.462.0 - ISC 3202 * 3203 * This source code is licensed under the ISC license. 3204 * See the LICENSE file in the root directory of this source tree. 3205 */const iM=S("FoldHorizontal",[["path",{d:"M2 12h6",key:"1wqiqv"}],["path",{d:"M22 12h-6",key:"1eg9hc"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m19 9-3 3 3 3",key:"12ol22"}],["path",{d:"m5 15 3-3-3-3",key:"1kdhjc"}]]);/** 3206 * @license lucide-react v0.462.0 - ISC 3207 * 3208 * This source code is licensed under the ISC license. 3209 * See the LICENSE file in the root directory of this source tree. 3210 */const sM=S("FoldVertical",[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3-3-3 3",key:"e37ymu"}],["path",{d:"m15 5-3 3-3-3",key:"19d6lf"}]]);/** 3211 * @license lucide-react v0.462.0 - ISC 3212 * 3213 * This source code is licensed under the ISC license. 3214 * See the LICENSE file in the root directory of this source tree. 3215 */const oM=S("FolderArchive",[["circle",{cx:"15",cy:"19",r:"2",key:"u2pros"}],["path",{d:"M20.9 19.8A2 2 0 0 0 22 18V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h5.1",key:"1jj40k"}],["path",{d:"M15 11v-1",key:"cntcp"}],["path",{d:"M15 17v-2",key:"1279jj"}]]);/** 3216 * @license lucide-react v0.462.0 - ISC 3217 * 3218 * This source code is licensed under the ISC license. 3219 * See the LICENSE file in the root directory of this source tree. 3220 */const lM=S("FolderCheck",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}
3220],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]]);/** 3221 * @license lucide-react v0.462.0 - ISC 3222 * 3223 * This source code is licensed under the ISC license. 3224 * See the LICENSE file in the root directory of this source tree. 3225 */const cM=S("FolderClock",[["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}],["path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2",key:"1urifu"}],["path",{d:"M16 14v2l1 1",key:"xth2jh"}]]);/** 3226 * @license lucide-react v0.462.0 - ISC 3227 * 3228 * This source code is licensed under the ISC license. 3229 * See the LICENSE file in the root directory of this source tree. 3230 */const uM=S("FolderClosed",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M2 10h20",key:"1ir3d8"}]]);/** 3231 * @license lucide-react v0.462.0 - ISC 3232 * 3233 * This source code is licensed under the ISC license. 3234 * See the LICENSE file in the root directory of this source tree. 3235 */const dM=S("FolderCode",[["path",{d:"M10 10.5 8 13l2 2.5",key:"m4t9c1"}],["path",{d:"m14 10.5 2 2.5-2 2.5",key:"14w2eb"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z",key:"1u1bxd"}]]);/** 3236 * @license lucide-react v0.462.0 - ISC 3237 * 3238 * This source code is licensed under the ISC license. 3239 * See the LICENSE file in the root directory of this source tree. 3240 */const kp=S("FolderCog",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v3.3",key:"1k8050"}],["path",{d:"m21.7 19.4-.9-.3",key:"1qgwi9"}],["path",{d:"m15.2 16.9-.9-.3",key:"1t7mvx"}],["path",{d:"m16.6 21.7.3-.9",key:"1j67ps"}],["path",{d:"m19.1 15.2.3-.9",key:"18r7jp"}],["path",{d:"m19.6 21.7-.4-1",key:"z2vh2"}],["path",{d:"m16.8 15.3-.4-1",key:"1ei7r6"}],["path",{d:"m14.3 19.6 1-.4",key:"11sv9r"}],["path",{d:"m20.7 16.8 1-.4",key:"19m87a"}]]);/** 3241 * @license lucide-react v0.462.0 - ISC 3242 * 3243 * This source code is licensed under the ISC license. 3244 * See the LICENSE file in the root directory of this source tree. 3245 */const hM=S("FolderDot",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["circle",{cx:"12",cy:"13",r:"1",key:"49l61u"}]]);/** 3246 * @license lucide-react v0.462.0 - ISC 3247 * 3248 * This source code is licensed under the ISC license. 3249 * See the LICENSE file in the root directory of this source tree. 3250 */const fM=S("FolderDown",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m15 13-3 3-3-3",key:"6j2sf0"}]]);/** 3251 * @license lucide-react v0.462.0 - ISC 3252 * 3253 * This source code is licensed under the ISC license. 3254 * See the LICENSE file in the root directory of this source tree. 3255 */const pM=S("FolderGit2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);/** 3256 * @license lucide-react v0.462.0 - ISC 3257 * 3258 * This source code is licensed under the ISC license. 3259 * See the LICENSE file in the root directory of this source tree. 3260 */const mM=S("FolderGit",[["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M14 13h3",key:"1dgedf"}],["path",{d:"M7 13h3",key:"1pygq7"}]]);/** 3261 * @license lucide-react v0.462.0 - ISC 3262 * 3263 * This source code is licensed under the ISC license. 3264 * See the LICENSE file in the root directory of this source tree. 3265 */const gM=S("FolderHeart",[["path",{d:"M11 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v1.5",key:"6hud8k"}],["path",{d:"M13.9 17.45c-1.2-1.2-1.14-2.8-.2-3.73a2.43 2.43 0 0 1 3.44 0l.36.34.34-.34a2.43 2.43 0 0 1 3.45-.
326501c.95.95 1 2.53-.2 3.74L17.5 21Z",key:"wpff58"}]]);/** 3266 * @license lucide-react v0.462.0 - ISC 3267 * 3268 * This source code is licensed under the ISC license. 3269 * See the LICENSE file in the root directory of this source tree. 3270 */const yM=S("FolderInput",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]);/** 3271 * @license lucide-react v0.462.0 - ISC 3272 * 3273 * This source code is licensed under the ISC license. 3274 * See the LICENSE file in the root directory of this source tree. 3275 */const vM=S("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);/** 3276 * @license lucide-react v0.462.0 - ISC 3277 * 3278 * This source code is licensed under the ISC license. 3279 * See the LICENSE file in the root directory of this source tree. 3280 */const xM=S("FolderKey",[["circle",{cx:"16",cy:"20",r:"2",key:"1vifvg"}],["path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2",key:"3hgo9p"}],["path",{d:"m22 14-4.5 4.5",key:"1ef6z8"}],["path",{d:"m21 15 1 1",key:"1ejcpy"}]]);/** 3281 * @license lucide-react v0.462.0 - ISC 3282 * 3283 * This source code is licensed under the ISC license. 3284 * See the LICENSE file in the root directory of this source tree. 3285 */const bM=S("FolderLock",[["rect",{width:"8",height:"5",x:"14",y:"17",rx:"1",key:"19aais"}],["path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5",key:"1w6v7t"}],["path",{d:"M20 17v-2a2 2 0 1 0-4 0v2",key:"pwaxnr"}]]);/** 3286 * @license lucide-react v0.462.0 - ISC 3287 * 3288 * This source code is licensed under the ISC license. 3289 * See the LICENSE file in the root directory of this source tree. 3290 */const wM=S("FolderMinus",[["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** 3291 * @license lucide-react v0.462.0 - ISC 3292 * 3293 * This source code is licensed under the ISC license. 3294 * See the LICENSE file in the root directory of this source tree. 3295 */const kM=S("FolderOpenDot",[["path",{d:"m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2",key:"1nmvlm"}],["circle",{cx:"14",cy:"15",r:"1",key:"1gm4qj"}]]);/** 3296 * @license lucide-react v0.462.0 - ISC 3297 * 3298 * This source code is licensed under the ISC license. 3299 * See the LICENSE file in the root directory of this source tree. 3300 */const _M=S("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** 3301 * @license lucide-react v0.462.0 - ISC 3302 * 3303 * This source code is licensed under the ISC license. 3304 * See the LICENSE file in the root directory of this source tree. 3305 */const SM=S("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]]);/** 3306 * @license lucide-react v0.462.0 - ISC 3307 * 3308 * This source code is licensed under the ISC license. 3309 * See the LICENSE file in the root directory of this source tree. 3310 */const _p=S("FolderPen",[["path",{d:"M2 11.5V5a2 2 0 0 1 2-2h3.9c.7 0 1.3.3 1.7.9l.8 1.2c.4.6 1 .9 1.7.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.5",key:"a8xqs0"}],["path",{d:"M11.378 13.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1saktj"}]]);/** 3311 * @license lucide-react v0.462.0 - ISC 3312 * 3313 * This source code is licensed under the ISC license. 3314 * See the LICENSE file in the root directory of this source tree. 3315 */const jM=S("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}
3315]]);/** 3316 * @license lucide-react v0.462.0 - ISC 3317 * 3318 * This source code is licensed under the ISC license. 3319 * See the LICENSE file in the root directory of this source tree. 3320 */const EM=S("FolderRoot",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}],["path",{d:"M12 15v5",key:"11xva1"}]]);/** 3321 * @license lucide-react v0.462.0 - ISC 3322 * 3323 * This source code is licensed under the ISC license. 3324 * See the LICENSE file in the root directory of this source tree. 3325 */const CM=S("FolderSearch2",[["circle",{cx:"11.5",cy:"12.5",r:"2.5",key:"1ea5ju"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M13.3 14.3 15 16",key:"1y4v1n"}]]);/** 3326 * @license lucide-react v0.462.0 - ISC 3327 * 3328 * This source code is licensed under the ISC license. 3329 * See the LICENSE file in the root directory of this source tree. 3330 */const NM=S("FolderSearch",[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]);/** 3331 * @license lucide-react v0.462.0 - ISC 3332 * 3333 * This source code is licensed under the ISC license. 3334 * See the LICENSE file in the root directory of this source tree. 3335 */const TM=S("FolderSymlink",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7",key:"x1c07l"}],["path",{d:"m8 16 3-3-3-3",key:"rlqrt1"}]]);/** 3336 * @license lucide-react v0.462.0 - ISC 3337 * 3338 * This source code is licensed under the ISC license. 3339 * See the LICENSE file in the root directory of this source tree. 3340 */const AM=S("FolderSync",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5",key:"1dkoa9"}],["path",{d:"M12 10v4h4",key:"1czhmt"}],["path",{d:"m12 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"lvuxfi"}],["path",{d:"M22 22v-4h-4",key:"1ewp4q"}],["path",{d:"m22 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"14ync0"}]]);/** 3341 * @license lucide-react v0.462.0 - ISC 3342 * 3343 * This source code is licensed under the ISC license. 3344 * See the LICENSE file in the root directory of this source tree. 3345 */const Qb=S("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/** 3346 * @license lucide-react v0.462.0 - ISC 3347 * 3348 * This source code is licensed under the ISC license. 3349 * See the LICENSE file in the root directory of this source tree. 3350 */const MM=S("FolderUp",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]);/** 3351 * @license lucide-react v0.462.0 - ISC 3352 * 3353 * This source code is licensed under the ISC license. 3354 * See the LICENSE file in the root directory of this source tree. 3355 */const IM=S("FolderX",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"m9.5 10.5 5 5",key:"ra9qjz"}],["path",{d:"m14.5 10.5-5 5",key:"l2rkpq"}]]);/** 3356 * @license lucide-react v0.462.0 - ISC 3357 * 3358 * This source code is licensed under the ISC license. 3359 * See the LICENSE file in the root directory of this source tree. 3360 */const PM=S("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** 3361 * @license lucide-react v0.462.0 - ISC 3362 * 3363 * This source code is licensed under the ISC license. 3364 * See the LICENSE file in the root directory of this source tree. 3365 */const LM=S("Folders",[["path",{d:"M20 17a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3.9a2 2 0 0 1-1.69-.9l-.81-1.2a2 2 0 0 0-1.67-.9H8a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2Z",key:"4u7rpt"}],["path",{d:"M2 8v11a2 2 0 0 0 2 2h14",key:"1eicx1"}]]);/** 3366 * @license lucide-react v0.462.0 - ISC 3367 * 3368 * This source code is licensed under the ISC license. 3369 * See the LICENSE file in the root directory of this source tree. 3370 */const OM=S("Footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]);/** 3371 * @license lucide-react v0.462.0 - ISC 3372 * 3373 * This source code is licensed under the ISC license. 3374 * See the LICENSE file in the root directory of this source tree. 3375 */const RM=S("Forklift",[["path",{d:"M12 12H5a2 2 0 0 0-2 2v5",key:"7zsz91"}],["circle",{cx:"13",cy:"19",r:"2",key:"wjnkru"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M8 19h3m5-17v17h6M6 12V7c0-1.1.9-2 2-2h3l5 5",key:"13bk1p"}]]);/** 3376 * @license lucide-react v0.462.0 - ISC 3377 * 3378 * This source code is licensed under the ISC license. 3379 * See the LICENSE file in the root directory of this source tree. 3380 */const DM=S("Forward",[["polyline",{points:"15 17 20 12 15 7",key:"1w3sku"}],["path",{d:"M4 18v-2a4 4 0 0 1 4-4h12",key:"jmiej9"}]]);/** 3381 * @license lucide-react v0.462.0 - ISC 3382 * 3383 * This source code is licensed under the ISC license. 3384 * See the LICENSE file in the root directory of this source tree. 3385 */const FM=S("Frame",[["line",{x1:"22",x2:"2",y1:"6",y2:"6",key:"15w7dq"}],["line",{x1:"22",x2:"2",y1:"18",y2:"18",key:"1ip48p"}],["line",{x1:"6",x2:"6",y1:"2",y2:"22",key:"a2lnyx"}],["line",{x1:"18",x2:"18",y1:"2",y2:"22",key:"8vb6jd"}]]);/** 3386 * @license lucide-react v0.462.0 - ISC 3387 * 3388 * This source code is licensed under the ISC license. 3389 * See the LICENSE file in the root directory of this source tree. 3390 */const $M=S("Framer",[["path",{d:"M5 16V9h14V2H5l14 14h-7m-7 0 7 7v-7m-7 0h7",key:"1a2nng"}]]);/** 3391 * @license lucide-react v0.462.0 - ISC 3392 * 3393 * This source code is licensed under the ISC license. 3394 * See the LICENSE file in the root directory of this source tree. 3395 */const BM=S("Frown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/** 3396 * @license lucide-react v0.462.0 - ISC 3397 * 3398 * This source code is licensed under the ISC license. 3399 * See the LICENSE file in the root directory of this source tree. 3400 */const zM=S("Fuel",[["line",{x1:"3",x2:"15",y1:"22",y2:"22",key:"xegly4"}],["line",{x1:"4",x2:"14",y1:"9",y2:"9",key:"xcnuvu"}],["path",{d:"M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18",key:"16j0yd"}],["path",{d:"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5",key:"7cu91f"}]]);/** 3401 * @license lucide-react v0.462.0 - ISC 3402 * 3403 * This source code is licensed under the ISC license. 3404 * See the LICENSE file in the root directory of this source tree. 3405 */const UM=S("Fullscreen",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["rect",{width:"10",height:"8",x:"7",y:"8",rx:"1",key:"vys8me"}]]);/** 3406 * @license lucide-react v0.462.0 - ISC 3407 * 3408 * This source code is licensed under the ISC license. 3409 * See the LICENSE file in the root directory of this source tree. 3410 */const qM=S("GalleryHorizontalEnd",[["path",{d:"M2 7v10",key:"a2pl2d"}],["path",{d:"M6 5v14",key:"1kq3d7"}],["rect",{width:"12",height:"18",x:"10",y:"3",rx:"2",key:"13i7bc"}]]);/** 3411 * @license lucide-react v0.462.0 - ISC 3412 * 3413 * This source code is licensed under the ISC license. 3414 * See the LICENSE file in the root directory of this source tree. 3415 */const HM=S("GalleryHorizontal",[["path",{d:"M2 3v18",key:"pzttux"}],["rect",{width:"12",height:"18",x:"6",y:"3",rx:"2",key:"btr8bg"}],["path",{d:"M22 3v18",key:"6jf3v"}]]);/** 3416 * @license lucide-react v0.462.0 - ISC 3417 * 3418 * This source code is licensed under the ISC license. 3419 * See the LICENSE file in the root directory of this source tree. 3420 */const VM=S("GalleryThumbnails",[["rect",{width:"18",height:"14",x:"3",y:"3",rx:"2",key:"74y24f"}],["path",{d:"M4 21h1",key:"16zlid"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M19 21h1",key:"edywat"}]]);/** 3421 * @license lucide-react v0.462.0 - ISC 3422 * 3423 * This source code is licensed under the ISC license. 3424 * See the LICENSE file in the root directory of this source tree. 3425 */const WM=S("GalleryVerticalEnd",[["path",{d:"M7 2h10",key:"nczekb"}],["path",{d:"M5 6h14",key:"u2x4p"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}]]);/** 3426 * @license lucide-react v0.462.0 - ISC 3427 * 3428 * This source code is licensed under the ISC license. 3429 * See the LICENSE file in the root directory of this source tree. 3430 */const GM=S("GalleryVertical",[["path",{d:"M3 2h18",key:"15qxfx"}],["rect",{width:"18",height:"12",x:"3",y:"6",rx:"2",key:"1439r6"}],["path",{d:"M3 22h18",key:"8prr45"}]]);/** 3431 * @license lucide-react v0.462.0 - ISC 3432 * 3433 * This source code is licensed under the ISC license. 3434 * See the LICENSE file in the root directory of this source tree. 3435 */const KM=S("Gamepad2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);/** 3436 * @license lucide-react v0.462.0 - ISC 3437 * 3438 * This source code is licensed under the ISC license. 3439 * See the LICENSE file in the root directory of this source tree. 3440 */const YM=S("Gamepad",[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]]);/** 3441 * @license lucide-react v0.462.0 - ISC 3442 * 3443 * This source code is licensed under the ISC license. 3444 * See the LICENSE file in the root directory of this source tree. 3445 */const XM=S("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 3446 * @license lucide-react v0.462.0 - ISC 3447 * 3448 * This source code is licensed under the ISC license. 3449 * See the LICENSE file in the root directory of this source tree. 3450 */const ZM=S("Gavel",[["path",{d:"m14.5 12.5-8 8a2.119 2.119 0 1 1-3-3l8-8",key:"15492f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m9 7 8 8",key:"5jnvq1"}],["path",{d:"m21 11-8-8",key:"z4y7zo"}]]);/** 3451 * @license lucide-react v0.462.0 - ISC 3452 * 3453 * This source code is licensed under the ISC license. 3454 * See the LICENSE file in the root directory of this source tree. 3455 */const QM=S("Gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);/** 3456 * @license lucide-react v0.462.0 - ISC 3457 * 3458 * This source code is licensed under the ISC license. 3459 * See the LICENSE file in the root directory of this source tree. 3460 */const JM=S("Ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]]);/** 3461 * @license lucide-react v0.462.0 - ISC 3462 * 3463 * This source code is licensed under the ISC license. 3464 * See the LICENSE file in the root directory of this source tree. 3465 */const r0=S("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 3466 * @license lucide-react v0.462.0 - ISC 3467 * 3468 * This source code is licensed under the ISC license. 3469 * See the LICENSE file in the root directory of this source tree.
3470 */const eI=S("GitBranchPlus",[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]]);/** 3471 * @license lucide-react v0.462.0 - ISC 3472 * 3473 * This source code is licensed under the ISC license. 3474 * See the LICENSE file in the root directory of this source tree. 3475 */const tI=S("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** 3476 * @license lucide-react v0.462.0 - ISC 3477 * 3478 * This source code is licensed under the ISC license. 3479 * See the LICENSE file in the root directory of this source tree. 3480 */const Sp=S("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/** 3481 * @license lucide-react v0.462.0 - ISC 3482 * 3483 * This source code is licensed under the ISC license. 3484 * See the LICENSE file in the root directory of this source tree. 3485 */const rI=S("GitCommitVertical",[["path",{d:"M12 3v6",key:"1holv5"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M12 15v6",key:"a9ows0"}]]);/** 3486 * @license lucide-react v0.462.0 - ISC 3487 * 3488 * This source code is licensed under the ISC license. 3489 * See the LICENSE file in the root directory of this source tree. 3490 */const nI=S("GitCompareArrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);/** 3491 * @license lucide-react v0.462.0 - ISC 3492 * 3493 * This source code is licensed under the ISC license. 3494 * See the LICENSE file in the root directory of this source tree. 3495 */const aI=S("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/** 3496 * @license lucide-react v0.462.0 - ISC 3497 * 3498 * This source code is licensed under the ISC license. 3499 * See the LICENSE file in the root directory of this source tree. 3500 */const iI=S("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);/** 3501 * @license lucide-react v0.462.0 - ISC 3502 * 3503 * This source code is licensed under the ISC license. 3504 * See the LICENSE file in the root directory of this source tree. 3505 */const sI=S("GitGraph",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v6",key:"158jrl"}],["circle",{cx:"5",cy:"18",r:"3",key:"104gr9"}],["path",{d:"M12 3v18",key:"108xh3"}],["circle",{cx:"19",cy:"6",r:"3",key:"108a5v"}],["path",{d:"M16 15.7A9 9 0 0 0 19 9",key:"1e3vqb"}]]);/** 3506 * @license lucide-react v0.462.0 - ISC 3507 * 3508 * This source code is licensed under the ISC license. 3509 * See the LICENSE file in the root directory of this source tree. 3510 */const oI=S("GitMerge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);/** 3511 * @license lucide-react v0.462.0 - ISC 3512 * 3513 * This source code is licensed under the ISC license. 3514 * See the LICENSE file in the root directory of this source tree. 3515 */const lI=S("GitPullRequestArrow",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v12",key:"ih889a"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}]]);/** 3516 * @license lucide-react v0.462.0 - ISC 3517 * 3518 * This source code is licensed under the ISC license. 3519 * See the LICENSE file in the root directory of this source tree. 3520 */const cI=S("GitPullRequestClosed",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}
3520],["path",{d:"M6 9v12",key:"1sc30k"}],["path",{d:"m21 3-6 6",key:"16nqsk"}],["path",{d:"m21 9-6-6",key:"9j17rh"}],["path",{d:"M18 11.5V15",key:"65xf6f"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]]);/** 3521 * @license lucide-react v0.462.0 - ISC 3522 * 3523 * This source code is licensed under the ISC license. 3524 * See the LICENSE file in the root directory of this source tree. 3525 */const uI=S("GitPullRequestCreateArrow",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v12",key:"ih889a"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v3",key:"1rbwk6"}],["path",{d:"M19 15v6",key:"10aioa"}],["path",{d:"M22 18h-6",key:"1d5gi5"}]]);/** 3526 * @license lucide-react v0.462.0 - ISC 3527 * 3528 * This source code is licensed under the ISC license. 3529 * See the LICENSE file in the root directory of this source tree. 3530 */const dI=S("GitPullRequestCreate",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 9v12",key:"1sc30k"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v3",key:"1jb6z3"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]]);/** 3531 * @license lucide-react v0.462.0 - ISC 3532 * 3533 * This source code is licensed under the ISC license. 3534 * See the LICENSE file in the root directory of this source tree. 3535 */const hI=S("GitPullRequestDraft",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M18 6V5",key:"1oao2s"}],["path",{d:"M18 11v-1",key:"11c8tz"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);/** 3536 * @license lucide-react v0.462.0 - ISC 3537 * 3538 * This source code is licensed under the ISC license. 3539 * See the LICENSE file in the root directory of this source tree. 3540 */const fI=S("GitPullRequest",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);/** 3541 * @license lucide-react v0.462.0 - ISC 3542 * 3543 * This source code is licensed under the ISC license. 3544 * See the LICENSE file in the root directory of this source tree. 3545 */const pI=S("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** 3546 * @license lucide-react v0.462.0 - ISC 3547 * 3548 * This source code is licensed under the ISC license. 3549 * See the LICENSE file in the root directory of this source tree. 3550 */const mI=S("Gitlab",[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]]);/** 3551 * @license lucide-react v0.462.0 - ISC 3552 * 3553 * This source code is licensed under the ISC license. 3554 * See the LICENSE file in the root directory of this source tree. 3555 */const gI=S("GlassWater",[["path",{d:"M5.116 4.104A1 1 0 0 1 6.11 3h11.78a1 1 0 0 1 .994 1.105L17.19 20.21A2 2 0 0 1 15.2 22H8.8a2 2 0 0 1-2-1.79z",key:"p55z4y"}],["path",{d:"M6 12a5 5 0 0 1 6 0 5 5 0 0 0 6 0",key:"mjntcy"}]]);/** 3556 * @license lucide-react v0.462.0 - ISC 3557 * 3558 * This source code is licensed under the ISC license. 3559 * See the LICENSE file in the root directory of this source tree. 3560 */const yI=S("Glasses",[["circle",{cx:"6",cy:"15",r:"4",key:"vux9w4"}],["circle",{cx:"18",cy:"15",r:"4",key:"18o8ve"}],["path",{d:"M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2",key:"1ag4bs"}],["path",{d:"M2.5 13 5 7c.7-1.3 1.4-2 3-2",key:"1hm1gs"}],["path",{d:"M21.5 13 19 7c-.7-1.3-1.5-2-3-2",key:"1r31ai"}]]);/** 3561 * @license lucide-react v0.462.0 - ISC 3562 * 3563 * This source code is licensed under the ISC license. 3564 * See the LICENSE file in the root directory of this source tree. 3565 */const vI=S("GlobeLock",[["path",{d:"M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13",key:"qkt0x6"}],["path",{d:"M2 12h8.5",key:"ovaggd"}],["path",{d:"M20 6V4a2 2 0 1 0-4 0v2",key:"1of5e8"}
3565],["rect",{width:"8",height:"5",x:"14",y:"6",rx:"1",key:"1fmf51"}]]);/** 3566 * @license lucide-react v0.462.0 - ISC 3567 * 3568 * This source code is licensed under the ISC license. 3569 * See the LICENSE file in the root directory of this source tree. 3570 */const xI=S("Globe",[["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"}]]);/** 3571 * @license lucide-react v0.462.0 - ISC 3572 * 3573 * This source code is licensed under the ISC license. 3574 * See the LICENSE file in the root directory of this source tree. 3575 */const bI=S("Goal",[["path",{d:"M12 13V2l8 4-8 4",key:"5wlwwj"}],["path",{d:"M20.561 10.222a9 9 0 1 1-12.55-5.29",key:"1c0wjv"}],["path",{d:"M8.002 9.997a5 5 0 1 0 8.9 2.02",key:"gb1g7m"}]]);/** 3576 * @license lucide-react v0.462.0 - ISC 3577 * 3578 * This source code is licensed under the ISC license. 3579 * See the LICENSE file in the root directory of this source tree. 3580 */const wI=S("Grab",[["path",{d:"M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4",key:"edstyy"}],["path",{d:"M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"19wdwo"}],["path",{d:"M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5",key:"1lugqo"}],["path",{d:"M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1hbeus"}],["path",{d:"M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0",key:"1etffm"}]]);/** 3581 * @license lucide-react v0.462.0 - ISC 3582 * 3583 * This source code is licensed under the ISC license. 3584 * See the LICENSE file in the root directory of this source tree. 3585 */const Jb=S("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 3586 * @license lucide-react v0.462.0 - ISC 3587 * 3588 * This source code is licensed under the ISC license. 3589 * See the LICENSE file in the root directory of this source tree. 3590 */const kI=S("Grape",[["path",{d:"M22 5V2l-5.89 5.89",key:"1eenpo"}],["circle",{cx:"16.6",cy:"15.89",r:"3",key:"xjtalx"}],["circle",{cx:"8.11",cy:"7.4",r:"3",key:"u2fv6i"}],["circle",{cx:"12.35",cy:"11.65",r:"3",key:"i6i8g7"}],["circle",{cx:"13.91",cy:"5.85",r:"3",key:"6ye0dv"}],["circle",{cx:"18.15",cy:"10.09",r:"3",key:"snx9no"}],["circle",{cx:"6.56",cy:"13.2",r:"3",key:"17x4xg"}],["circle",{cx:"10.8",cy:"17.44",r:"3",key:"1hogw9"}],["circle",{cx:"5",cy:"19",r:"3",key:"1sn6vo"}]]);/** 3591 * @license lucide-react v0.462.0 - ISC 3592 * 3593 * This source code is licensed under the ISC license. 3594 * See the LICENSE file in the root directory of this source tree. 3595 */const _I=S("Grid2x2Check",[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]);/** 3596 * @license lucide-react v0.462.0 - ISC 3597 * 3598 * This source code is licensed under the ISC license. 3599 * See the LICENSE file in the root directory of this source tree. 3600 */const jp=S("Grid2x2Plus",[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 22v-6",key:"qhmiwi"}]]);/** 3601 * @license lucide-react v0.462.0 - ISC 3602 * 3603 * This source code is licensed under the ISC license. 3604 * See the LICENSE file in the root directory of this source tree. 3605 */const SI=S("Grid2x2X",[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"m16 16 5 5",key:"8tpb07"}],["path",{d:"m16 21 5-5",key:"193jll"}]]);/** 3606 * @license lucide-react v0.462.0 - ISC 3607 * 3608 * This source code is licensed under the ISC license. 3609 * See the LICENSE file in the root directory of this source tree. 3610 */const Ep=S("Grid2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);/** 3611 * @license lucide-react v0.462.0 - ISC 3612 * 3613 * This source code is licensed under the ISC license. 3614 * See the LICENSE file in the root directory of this source tree. 3615 */const Ll=S("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/** 3616 * @license lucide-react v0.462.0 - ISC 3617 * 3618 * This source code is licensed under the ISC license. 3619 * See the LICENSE file in the root directory of this source tree. 3620 */const jI=S("GripHorizontal",[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]);/** 3621 * @license lucide-react v0.462.0 - ISC 3622 * 3623 * This source code is licensed under the ISC license. 3624 * See the LICENSE file in the root directory of this source tree. 3625 */const EI=S("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/** 3626 * @license lucide-react v0.462.0 - ISC 3627 * 3628 * This source code is licensed under the ISC license. 3629 * See the LICENSE file in the root directory of this source tree. 3630 */const CI=S("Grip",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"19",cy:"5",r:"1",key:"w8mnmm"}],["circle",{cx:"5",cy:"5",r:"1",key:"lttvr7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}],["circle",{cx:"19",cy:"19",r:"1",key:"shf9b7"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]);/** 3631 * @license lucide-react v0.462.0 - ISC 3632 * 3633 * This source code is licensed under the ISC license. 3634 * See the LICENSE file in the root directory of this source tree. 3635 */const NI=S("Group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]);/** 3636 * @license lucide-react v0.462.0 - ISC 3637 * 3638 * This source code is licensed under the ISC license. 3639 * See the LICENSE file in the root directory of this source tree. 3640 */const TI=S("Guitar",[["path",{d:"m11.9 12.1 4.514-4.514",key:"109xqo"}],["path",{d:"M20.1 2.3a1 1 0 0 0-1.4 0l-1.114 1.114A2 2 0 0 0 17 4.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 17.828 7h1.344a2 2 0 0 0 1.414-.586L21.7 5.3a1 1 0 0 0 0-1.4z",key:"txyc8t"}],["path",{d:"m6 16 2 2",key:"16qmzd"}],["path",{d:"M8.2 9.9C8.7 8.8 9.8 8 11 8c2.8 0 5 2.2 5 5 0 1.2-.8 2.3-1.9 2.8l-.9.4A2 2 0 0 0 12 18a4 4 0 0 1-4 4c-3.3 0-6-2.7-6-6a4 4 0 0 1 4-4 2 2 0 0 0 1.8-1.2z",key:"1u8q3z"}],["circle",{cx:"11.5",cy:"12.5",r:".5",fill:"currentColor",key:"16onso"}]]);/** 3641 * @license lucide-react v0.462.0 - ISC 3642 * 3643 * This source code is licensed under the ISC license. 3644 * See the LICENSE file in the root directory of this source tree. 3645 */const AI=S("Ham",[["path",{d:"M13.144 21.144A7.274 10.445 45 1 0 2.856 10.856",key:"1k1t7q"}],["path",{d:"M13.144 21.144A7.274 4.365 45 0 0 2.856 10.856a7.274 4.365 45 0 0 10.288 10.288",key:"153t1g"}],["path",{d:"M16.565 10.435 18.6 8.4a2.501 2.501 0 1 0 1.65-4.65 2.5 2.5 0 1 0-4.66 1.66l-2.024 2.025",key:"gzrt0n"}],["path",{d:"m8.5 16.5-1-1",key:"otr954"}]]);/** 3646 * @license lucide-react v0.462.0 - ISC 3647 * 3648 * This source code is licensed under the ISC license. 3649 * See the LICENSE file in the root directory of this source tree. 3650 */const MI=S("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/** 3651 * @license lucide-react v0.462.0 - ISC 3652 * 3653 * This source code is licensed under the ISC license. 3654 * See the LICENSE file in the root directory of this source tree. 3655 */const II=S("HandCoins",[["path",{d:"M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17",key:"geh8rc"}],["path",{d:"m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"1fto5m"}],["path",{d:"m2 16 6 6",key:"1pfhp9"}],["circle",{cx:"16",cy:"9",r:"2.9",key:"1n0dlu"}],["circle",{cx:"6",cy:"5",r:"3",key:"151irh"}]]);/** 3656 * @license lucide-react v0.462.0 - ISC 3657 * 3658 * This source code is licensed under the ISC license. 3659 * See the LICENSE file in the root directory of this source tree. 3660 */const PI=S("HandHeart",[["path",{d:"M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16",key:"1ifwr1"}],["path",{d:"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"17abbs"}],["path",{d:"m2 15 6 6",key:"10dquu"}],["path",{d:"M19.5 8.5c.7-.7 1.5-1.6 1.5-2.7A2.73 2.73 0 0 0 16 4a2.78 2.78 0 0 0-5 1.8c0 1.2.8 2 1.5 2.8L16 12Z",key:"1h3036"}]]);/** 3661 * @license lucide-react v0.462.0 - ISC 3662 * 3663 * This source code is licensed under the ISC license. 3664 * See the LICENSE file in the root directory of this source tree. 3665 */const Cp=S("HandHelping",[["path",{d:"M11 12h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 14",key:"1j4xps"}],["path",{d:"m7 18 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"uospg8"}],["path",{d:"m2 13 6 6",key:"16e5sb"}]]);/** 3666 * @license lucide-react v0.462.0 - ISC 3667 * 3668 * This source code is licensed under the ISC license. 3669 * See the LICENSE file in the root directory of this source tree. 3670 */const LI=S("HandMetal",[["path",{d:"M18 12.5V10a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4",key:"wc6myp"}],["path",{d:"M14 11V9a2 2 0 1 0-4 0v2",key:"94qvcw"}],["path",{d:"M10 10.5V5a2 2 0 1 0-4 0v9",key:"m1ah89"}],["path",{d:"m7 15-1.76-1.76a2 2 0 0 0-2.83 2.82l3.6 3.6C7.5 21.14 9.2 22 12 22h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v5",key:"t1skq1"}]]);/** 3671 * @license lucide-react v0.462.0 - ISC 3672 * 3673 * This source code is licensed under the ISC license. 3674 * See the LICENSE file in the root directory of this source tree.
3675 */const OI=S("HandPlatter",[["path",{d:"M12 3V2",key:"ar7q03"}],["path",{d:"m15.4 17.4 3.2-2.8a2 2 0 1 1 2.8 2.9l-3.6 3.3c-.7.8-1.7 1.2-2.8 1.2h-4c-1.1 0-2.1-.4-2.8-1.2l-1.302-1.464A1 1 0 0 0 6.151 19H5",key:"n2g93r"}],["path",{d:"M2 14h12a2 2 0 0 1 0 4h-2",key:"1o2jem"}],["path",{d:"M4 10h16",key:"img6z1"}],["path",{d:"M5 10a7 7 0 0 1 14 0",key:"1ega1o"}],["path",{d:"M5 14v6a1 1 0 0 1-1 1H2",key:"1hescx"}]]);/** 3676 * @license lucide-react v0.462.0 - ISC 3677 * 3678 * This source code is licensed under the ISC license. 3679 * See the LICENSE file in the root directory of this source tree. 3680 */const RI=S("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);/** 3681 * @license lucide-react v0.462.0 - ISC 3682 * 3683 * This source code is licensed under the ISC license. 3684 * See the LICENSE file in the root directory of this source tree. 3685 */const DI=S("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** 3686 * @license lucide-react v0.462.0 - ISC 3687 * 3688 * This source code is licensed under the ISC license. 3689 * See the LICENSE file in the root directory of this source tree. 3690 */const FI=S("HardDriveDownload",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]);/** 3691 * @license lucide-react v0.462.0 - ISC 3692 * 3693 * This source code is licensed under the ISC license. 3694 * See the LICENSE file in the root directory of this source tree. 3695 */const $I=S("HardDriveUpload",[["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M12 2v8",key:"1q4o3n"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]);/** 3696 * @license lucide-react v0.462.0 - ISC 3697 * 3698 * This source code is licensed under the ISC license. 3699 * See the LICENSE file in the root directory of this source tree. 3700 */const BI=S("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/** 3701 * @license lucide-react v0.462.0 - ISC 3702 * 3703 * This source code is licensed under the ISC license. 3704 * See the LICENSE file in the root directory of this source tree. 3705 */const zI=S("HardHat",[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]]);/** 3706 * @license lucide-react v0.462.0 - ISC 3707 * 3708 * This source code is licensed under the ISC license. 3709 * See the LICENSE file in the root directory of this source tree. 3710 */const UI=S("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/** 3711 * @license lucide-react v0.462.0 - ISC 3712 * 3713 * This source code is licensed under the ISC license. 3714 * See the LICENSE file in the root directory of this source tree. 3715 */const qI=S("Haze",[["path",{d:"m5.2 6.2 1.4 1.4",key:"17imol"}],["path",{d:"M2 13h2",key:"13gyu8"}],["path",{d:"M20 13h2",key:"16rner"}],["path",{d:"m17.4 7.6 1.4-1.4",key:"t4xlah"}],["path",{d:"M22 17H2",key:"1gtaj3"}],["path",{d:"M22 21H2",key:"1gy6en"}],["path",{d:"M16 13a4 4 0 0 0-8 0",key:"1dyczq"}
3715],["path",{d:"M12 5V2.5",key:"1vytko"}]]);/** 3716 * @license lucide-react v0.462.0 - ISC 3717 * 3718 * This source code is licensed under the ISC license. 3719 * See the LICENSE file in the root directory of this source tree. 3720 */const HI=S("HdmiPort",[["path",{d:"M22 9a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1l2 2h12l2-2h1a1 1 0 0 0 1-1Z",key:"2128wb"}],["path",{d:"M7.5 12h9",key:"1t0ckc"}]]);/** 3721 * @license lucide-react v0.462.0 - ISC 3722 * 3723 * This source code is licensed under the ISC license. 3724 * See the LICENSE file in the root directory of this source tree. 3725 */const VI=S("Heading1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]);/** 3726 * @license lucide-react v0.462.0 - ISC 3727 * 3728 * This source code is licensed under the ISC license. 3729 * See the LICENSE file in the root directory of this source tree. 3730 */const WI=S("Heading2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]);/** 3731 * @license lucide-react v0.462.0 - ISC 3732 * 3733 * This source code is licensed under the ISC license. 3734 * See the LICENSE file in the root directory of this source tree. 3735 */const GI=S("Heading3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]);/** 3736 * @license lucide-react v0.462.0 - ISC 3737 * 3738 * This source code is licensed under the ISC license. 3739 * See the LICENSE file in the root directory of this source tree. 3740 */const KI=S("Heading4",[["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 10v3a1 1 0 0 0 1 1h3",key:"tj5zdr"}],["path",{d:"M21 10v8",key:"1kdml4"}],["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}]]);/** 3741 * @license lucide-react v0.462.0 - ISC 3742 * 3743 * This source code is licensed under the ISC license. 3744 * See the LICENSE file in the root directory of this source tree. 3745 */const YI=S("Heading5",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 13v-3h4",key:"1nvgqp"}],["path",{d:"M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17",key:"2nebdn"}]]);/** 3746 * @license lucide-react v0.462.0 - ISC 3747 * 3748 * This source code is licensed under the ISC license. 3749 * See the LICENSE file in the root directory of this source tree. 3750 */const XI=S("Heading6",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["circle",{cx:"19",cy:"16",r:"2",key:"15mx69"}],["path",{d:"M20 10c-2 2-3 3.5-3 6",key:"f35dl0"}]]);/** 3751 * @license lucide-react v0.462.0 - ISC 3752 * 3753 * This source code is licensed under the ISC license. 3754 * See the LICENSE file in the root directory of this source tree. 3755 */const ZI=S("Heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]);/** 3756 * @license lucide-react v0.462.0 - ISC 3757 * 3758 * This source code is licensed under the ISC license. 3759 * See the LICENSE file in the root directory of this source tree. 3760 */const QI=S("HeadphoneOff",[["path",{d:"M21 14h-1.343",key:"1jdnxi"}],["path",{d:"M9.128 3.47A9 9 0 0 1 21 12v3.343",key:"6kipu2"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20.414 20.414A2 2 0 0 1 19 21h-1a2 2 0 0 1-2-2v-3",key:"9x50f4"}],["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 2.636-6.364",key:"1bkxnm"}]]);/** 3761 * @license lucide-react v0.462.0 - ISC 3762 * 3763 * This source code is licensed under the ISC license. 3764 * See the LICENSE file in the root directory of this source tree. 3765 */const JI=S("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 3766 * @license lucide-react v0.462.0 - ISC 3767 * 3768 * This source code is licensed under the ISC license. 3769 * See the LICENSE file in the root directory of this source tree. 3770 */const eP=S("Headset",[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]]);/** 3771 * @license lucide-react v0.462.0 - ISC 3772 * 3773 * This source code is licensed under the ISC license. 3774 * See the LICENSE file in the root directory of this source tree. 3775 */const tP=S("HeartCrack",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"m12 13-1-1 2-2-3-3 2-2",key:"xjdxli"}]]);/** 3776 * @license lucide-react v0.462.0 - ISC 3777 * 3778 * This source code is licensed under the ISC license. 3779 * See the LICENSE file in the root directory of this source tree. 3780 */const rP=S("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]]);/** 3781 * @license lucide-react v0.462.0 - ISC 3782 * 3783 * This source code is licensed under the ISC license. 3784 * See the LICENSE file in the root directory of this source tree. 3785 */const nP=S("HeartOff",[["line",{x1:"2",y1:"2",x2:"22",y2:"22",key:"1w4vcy"}],["path",{d:"M16.5 16.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5a5.5 5.5 0 0 1 2.14-4.35",key:"3mpagl"}],["path",{d:"M8.76 3.1c1.15.22 2.13.78 3.24 1.9 1.5-1.5 2.74-2 4.5-2A5.5 5.5 0 0 1 22 8.5c0 2.12-1.3 3.78-2.67 5.17",key:"1gh3v3"}]]);/** 3786 * @license lucide-react v0.462.0 - ISC 3787 * 3788 * This source code is licensed under the ISC license. 3789 * See the LICENSE file in the root directory of this source tree. 3790 */const aP=S("HeartPulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]);/** 3791 * @license lucide-react v0.462.0 - ISC 3792 * 3793 * This source code is licensed under the ISC license. 3794 * See the LICENSE file in the root directory of this source tree. 3795 */const qd=S("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 3796 * @license lucide-react v0.462.0 - ISC 3797 * 3798 * This source code is licensed under the ISC license. 3799 * See the LICENSE file in the root directory of this source tree.
3800 */const iP=S("Heater",[["path",{d:"M11 8c2-3-2-3 0-6",key:"1ldv5m"}],["path",{d:"M15.5 8c2-3-2-3 0-6",key:"1otqoz"}],["path",{d:"M6 10h.01",key:"1lbq93"}],["path",{d:"M6 14h.01",key:"zudwn7"}],["path",{d:"M10 16v-4",key:"1c25yv"}],["path",{d:"M14 16v-4",key:"1dkbt8"}],["path",{d:"M18 16v-4",key:"1yg9me"}],["path",{d:"M20 6a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3",key:"1ubg90"}],["path",{d:"M5 20v2",key:"1abpe8"}],["path",{d:"M19 20v2",key:"kqn6ft"}]]);/** 3801 * @license lucide-react v0.462.0 - ISC 3802 * 3803 * This source code is licensed under the ISC license. 3804 * See the LICENSE file in the root directory of this source tree. 3805 */const sP=S("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);/** 3806 * @license lucide-react v0.462.0 - ISC 3807 * 3808 * This source code is licensed under the ISC license. 3809 * See the LICENSE file in the root directory of this source tree. 3810 */const oP=S("Highlighter",[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]]);/** 3811 * @license lucide-react v0.462.0 - ISC 3812 * 3813 * This source code is licensed under the ISC license. 3814 * See the LICENSE file in the root directory of this source tree. 3815 */const lP=S("History",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** 3816 * @license lucide-react v0.462.0 - ISC 3817 * 3818 * This source code is licensed under the ISC license. 3819 * See the LICENSE file in the root directory of this source tree. 3820 */const cP=S("HopOff",[["path",{d:"M10.82 16.12c1.69.6 3.91.79 5.18.85.28.01.53-.09.7-.27",key:"qyzcap"}],["path",{d:"M11.14 20.57c.52.24 2.44 1.12 4.08 1.37.46.06.86-.25.9-.71.12-1.52-.3-3.43-.5-4.28",key:"y078lb"}],["path",{d:"M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .7-.26",key:"1utre3"}],["path",{d:"M17.99 5.52a20.83 20.83 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-1.17.1-2.5.02-3.9-.25",key:"17o9hm"}],["path",{d:"M20.57 11.14c.24.52 1.12 2.44 1.37 4.08.04.3-.08.59-.31.75",key:"1d1n4p"}],["path",{d:"M4.93 4.93a10 10 0 0 0-.67 13.4c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.85.85 0 0 0 .48-.24",key:"9uv3tt"}],["path",{d:"M5.52 17.99c1.05.95 2.91 2.42 4.5 3.15a.8.8 0 0 0 1.13-.68c.2-2.34-.33-5.3-1.57-8.28",key:"1292wz"}],["path",{d:"M8.35 2.68a10 10 0 0 1 9.98 1.58c.43.35.4.96-.12 1.17-1.5.6-4.3.98-6.07 1.05",key:"7ozu9p"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 3821 * @license lucide-react v0.462.0 - ISC 3822 * 3823 * This source code is licensed under the ISC license. 3824 * See the LICENSE file in the root directory of this source tree. 3825 */const uP=S("Hop",[["path",{d:"M10.82 16.12c1.69.6 3.91.79 5.18.85.55.03 1-.42.97-.97-.06-1.27-.26-3.5-.85-5.18",key:"18lxf1"}],["path",{d:"M11.5 6.5c1.64 0 5-.38 6.71-1.07.52-.2.55-.82.12-1.17A10 10 0 0 0 4.26 18.33c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.88.88 0 0 0 .73-.74c.3-2.14-.15-3.5-.61-4.88",key:"vtfxrw"}],["path",{d:"M15.62 16.95c.2.85.62 2.76.5 4.28a.77.77 0 0 1-.9.7 16.64 16.64 0 0 1-4.08-1.36",key:"13hl71"}],["path",{d:"M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .96-.96 17.68 17.68 0 0 0-.9-4.87",key:"1sl8oj"}],["path",{d:"M16.94 15.62c.86.2 2.77.62 4.29.5a.77.77 0 0 0 .7-.9 16.64 16.64 0 0 0-1.36-4.08",key:"19c6kt"}],["path",{d:"M17.99 5.52a20.82 20.82 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-2.33.2-5.3-.32-8.27-1.57",key:"85ghs3"}],["path",{d:"M4.93 4.93 3 3a.7.7 0 0 1 0-1",key:"x087yj"}],["path",{d:"M9.58 12.18c1.24 2.98 1.77 5.95 1.57 8.28a.8.8 0 0 1-1.13.68 20.82 20.82 0 0 1-4.5-3.15",key:"11xdqo"}]]);/** 3826 * @license lucide-react v0.462.0 - ISC 3827 * 3828 * This source code is licensed under the ISC license. 3829 * See the LICENSE file in the root directory of this source tree. 3830 */const dP=S("Hospital",[["path",{d:"M12 6v4",key:"16clxf"}],["path",{d:"M14 14h-4",key:"esezmu"}],["path",{d:"M14 18h-4",key:"16mqa2"}],["path",{d:"M14 8h-4",key:"z8ypaz"}],["path",{d:"M18 12h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2",key:"b1k337"}],["path",{d:"M18 22V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v18",key:"16g51d"}]]);/** 3831 * @license lucide-react v0.462.0 - ISC 3832 * 3833 * This source code is licensed under the ISC license. 3834 * See the LICENSE file in the root directory of this source tree. 3835 */const hP=S("Hotel",[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]);/** 3836 * @license lucide-react v0.462.0 - ISC 3837 * 3838 * This source code is licensed under the ISC license. 3839 * See the LICENSE file in the root directory of this source tree. 3840 */const fP=S("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/** 3841 * @license lucide-react v0.462.0 - ISC 3842 * 3843 * This source code is licensed under the ISC license. 3844 * See the LICENSE file in the root directory of this source tree. 3845 */const pP=S("HousePlug",[["path",{d:"M10 12V8.964",key:"1vll13"}],["path",{d:"M14 12V8.964",key:"1x3qvg"}],["path",{d:"M15 12a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-2a1 1 0 0 1 1-1z",key:"ppykja"}],["path",{d:"M8.5 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-2",key:"1gvg2z"}]]);/** 3846 * @license lucide-react v0.462.0 - ISC 3847 * 3848 * This source code is licensed under the ISC license. 3849 * See the LICENSE file in the root directory of this source tree. 3850 */const mP=S("HousePlus",[["path",{d:"M13.22 2.416a2 2 0 0 0-2.511.057l-7 5.999A2 2 0 0 0 3 10v9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7.354",key:"5phn05"}],["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M15 6h6",key:"1jlkvy"}],["path",{d:"M18 3v6",key:"x1uolp"}]]);/** 3851 * @license lucide-react v0.462.0 - ISC 3852 * 3853 * This source code is licensed under the ISC license. 3854 * See the LICENSE file in the root directory of this source tree. 3855 */const Np=S("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 3856 * @license lucide-react v0.462.0 - ISC 3857 * 3858 * This source code is licensed under the ISC license. 3859 * See the LICENSE file in the root directory of this source tree. 3860 */const Tp=S("IceCreamBowl",[["path",{d:"M12 17c5 0 8-2.69 8-6H4c0 3.31 3 6 8 6m-4 4h8m-4-3v3M5.14 11a3.5 3.5 0 1 1 6.71 0",key:"1uxfcu"}],["path",{d:"M12.14 11a3.5 3.5 0 1 1 6.71 0",key:"4k3m1s"}],["path",{d:"M15.5 6.5a3.5 3.5 0 1 0-7 0",key:"zmuahr"}]]);/** 3861 * @license lucide-react v0.462.0 - ISC 3862 * 3863 * This source code is licensed under the ISC license. 3864 * See the LICENSE file in the root directory of this source tree. 3865 */const Ap=S("IceCreamCone",[["path",{d:"m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11",key:"1v6356"}],["path",{d:"M17 7A5 5 0 0 0 7 7",key:"151p3v"}],["path",{d:"M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4",key:"1sdaij"}]]);/** 3866 * @license lucide-react v0.462.0 - ISC 3867 * 3868 * This source code is licensed under the ISC license. 3869 * See the LICENSE file in the root directory of this source tree. 3870 */const gP=S("IdCard",[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]);/** 3871 * @license lucide-react v0.462.0 - ISC 3872 * 3873 * This source code is licensed under the ISC license. 3874 * See the LICENSE file in the root directory of this source tree. 3875 */const yP=S("ImageDown",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/** 3876 * @license lucide-react v0.462.0 - ISC 3877 * 3878 * This source code is licensed under the ISC license. 3879 * See the LICENSE file in the root directory of this source tree. 3880 */const vP=S("ImageMinus",[["path",{d:"M21 9v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"m87ecr"}],["line",{x1:"16",x2:"22",y1:"5",y2:"5",key:"ez7e4s"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 3881 * @license lucide-react v0.462.0 - ISC 3882 * 3883 * This source code is licensed under the ISC license. 3884 * See the LICENSE file in the root directory of this source tree. 3885 */const ew=S("ImageOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]);/** 3886 * @license lucide-react v0.462.0 - ISC 3887 * 3888 * This source code is licensed under the ISC license. 3889 * See the LICENSE file in the root directory of this source tree. 3890 */const xP=S("ImagePlay",[["path",{d:"m11 16-5 5",key:"j5f7ct"}],["path",{d:"M11 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6.5",key:"7s81lt"}],["path",{d:"M15.765 22a.5.5 0 0 1-.765-.424V13.38a.5.5 0 0 1 .765-.424l5.878 3.674a1 1 0 0 1 0 1.696z",key:"1omb6s"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/** 3891 * @license lucide-react v0.462.0 - ISC 3892 * 3893 * This source code is licensed under the ISC license. 3894 * See the LICENSE file in the root directory of this source tree. 3895 */const tw=S("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/** 3896 * @license lucide-react v0.462.0 - ISC 3897 * 3898 * This source code is licensed under the ISC license. 3899 * See the LICENSE file in the root directory of this source tree. 3900 */const bP=S("ImageUp",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19.5 3-3 3 3",key:"9vmjn0"}],["path",{d:"M17 22v-5.5",key:"1aa6fl"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/** 3901 * @license lucide-react v0.462.0 - ISC 3902 * 3903 * This source code is licensed under the ISC license. 3904 * See the LICENSE file in the root directory of this source tree. 3905 */const wP=S("ImageUpscale",[["path",{d:"M16 3h5v5",key:"1806ms"}
3905],["path",{d:"M17 21h2a2 2 0 0 0 2-2",key:"130fy9"}],["path",{d:"M21 12v3",key:"1wzk3p"}],["path",{d:"m21 3-5 5",key:"1g5oa7"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2",key:"kk3yz1"}],["path",{d:"m5 21 4.144-4.144a1.21 1.21 0 0 1 1.712 0L13 19",key:"fyekpt"}],["path",{d:"M9 3h3",key:"d52fa"}],["rect",{x:"3",y:"11",width:"10",height:"10",rx:"1",key:"1wpmix"}]]);/** 3906 * @license lucide-react v0.462.0 - ISC 3907 * 3908 * This source code is licensed under the ISC license. 3909 * See the LICENSE file in the root directory of this source tree. 3910 */const lc=S("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 3911 * @license lucide-react v0.462.0 - ISC 3912 * 3913 * This source code is licensed under the ISC license. 3914 * See the LICENSE file in the root directory of this source tree. 3915 */const kP=S("Images",[["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"}]]);/** 3916 * @license lucide-react v0.462.0 - ISC 3917 * 3918 * This source code is licensed under the ISC license. 3919 * See the LICENSE file in the root directory of this source tree. 3920 */const xy=S("Import",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m8 11 4 4 4-4",key:"1dohi6"}],["path",{d:"M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4",key:"1ywtjm"}]]);/** 3921 * @license lucide-react v0.462.0 - ISC 3922 * 3923 * This source code is licensed under the ISC license. 3924 * See the LICENSE file in the root directory of this source tree. 3925 */const _P=S("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** 3926 * @license lucide-react v0.462.0 - ISC 3927 * 3928 * This source code is licensed under the ISC license. 3929 * See the LICENSE file in the root directory of this source tree. 3930 */const Mp=S("IndentDecrease",[["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 18H11",key:"4wu86t"}],["path",{d:"M21 6H11",key:"6dy1d6"}],["path",{d:"m7 8-4 4 4 4",key:"o5hrat"}]]);/** 3931 * @license lucide-react v0.462.0 - ISC 3932 * 3933 * This source code is licensed under the ISC license. 3934 * See the LICENSE file in the root directory of this source tree. 3935 */const Ip=S("IndentIncrease",[["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 18H11",key:"4wu86t"}],["path",{d:"M21 6H11",key:"6dy1d6"}],["path",{d:"m3 8 4 4-4 4",key:"1a3j6y"}]]);/** 3936 * @license lucide-react v0.462.0 - ISC 3937 * 3938 * This source code is licensed under the ISC license. 3939 * See the LICENSE file in the root directory of this source tree. 3940 */const SP=S("IndianRupee",[["path",{d:"M6 3h12",key:"ggurg9"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"m6 13 8.5 8",key:"u1kupk"}],["path",{d:"M6 13h3",key:"wdp6ag"}],["path",{d:"M9 13c6.667 0 6.667-10 0-10",key:"1nkvk2"}]]);/** 3941 * @license lucide-react v0.462.0 - ISC 3942 * 3943 * This source code is licensed under the ISC license. 3944 * See the LICENSE file in the root directory of this source tree. 3945 */const jP=S("Infinity",[["path",{d:"M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z",key:"1z0uae"}]]);/** 3946 * @license lucide-react v0.462.0 - ISC 3947 * 3948 * This source code is licensed under the ISC license. 3949 * See the LICENSE file in the root directory of this source tree. 3950 */const EP=S("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 3951 * @license lucide-react v0.462.0 - ISC 3952 * 3953 * This source code is licensed under the ISC license. 3954 * See the LICENSE file in the root directory of this source tree. 3955 */const CP=S("InspectionPanel",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 7h.01",key:"7u93v4"}],["path",{d:"M17 7h.01",key:"14a9sn"}],["path",{d:"M7 17h.01",key:"19xn7k"}],["path",{d:"M17 17h.01",key:"1sd3ek"}]]);/** 3956 * @license lucide-react v0.462.0 - ISC 3957 * 3958 * This source code is licensed under the ISC license. 3959 * See the LICENSE file in the root directory of this source tree. 3960 */const rw=S("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 3961 * @license lucide-react v0.462.0 - ISC 3962 * 3963 * This source code is licensed under the ISC license. 3964 * See the LICENSE file in the root directory of this source tree. 3965 */const NP=S("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/** 3966 * @license lucide-react v0.462.0 - ISC 3967 * 3968 * This source code is licensed under the ISC license. 3969 * See the LICENSE file in the root directory of this source tree. 3970 */const TP=S("IterationCcw",[["path",{d:"M20 10c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8h8",key:"4znkd0"}],["polyline",{points:"16 14 20 18 16 22",key:"11njsm"}]]);/** 3971 * @license lucide-react v0.462.0 - ISC 3972 * 3973 * This source code is licensed under the ISC license. 3974 * See the LICENSE file in the root directory of this source tree. 3975 */const AP=S("IterationCw",[["path",{d:"M4 10c0-4.4 3.6-8 8-8s8 3.6 8 8-3.6 8-8 8H4",ke
3975y:"tuf4su"}],["polyline",{points:"8 22 4 18 8 14",key:"evkj9s"}]]);/** 3976 * @license lucide-react v0.462.0 - ISC 3977 * 3978 * This source code is licensed under the ISC license. 3979 * See the LICENSE file in the root directory of this source tree. 3980 */const MP=S("JapaneseYen",[["path",{d:"M12 9.5V21m0-11.5L6 3m6 6.5L18 3",key:"2ej80x"}],["path",{d:"M6 15h12",key:"1hwgt5"}],["path",{d:"M6 11h12",key:"wf4gp6"}]]);/** 3981 * @license lucide-react v0.462.0 - ISC 3982 * 3983 * This source code is licensed under the ISC license. 3984 * See the LICENSE file in the root directory of this source tree. 3985 */const IP=S("Joystick",[["path",{d:"M21 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2Z",key:"jg2n2t"}],["path",{d:"M6 15v-2",key:"gd6mvg"}],["path",{d:"M12 15V9",key:"8c7uyn"}],["circle",{cx:"12",cy:"6",r:"3",key:"1gm2ql"}]]);/** 3986 * @license lucide-react v0.462.0 - ISC 3987 * 3988 * This source code is licensed under the ISC license. 3989 * See the LICENSE file in the root directory of this source tree. 3990 */const PP=S("Kanban",[["path",{d:"M6 5v11",key:"mdvv1e"}],["path",{d:"M12 5v6",key:"14ar3b"}],["path",{d:"M18 5v14",key:"7ji314"}]]);/** 3991 * @license lucide-react v0.462.0 - ISC 3992 * 3993 * This source code is licensed under the ISC license. 3994 * See the LICENSE file in the root directory of this source tree. 3995 */const LP=S("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** 3996 * @license lucide-react v0.462.0 - ISC 3997 * 3998 * This source code is licensed under the ISC license. 3999 * See the LICENSE file in the root directory of this source tree. 4000 */const OP=S("KeySquare",[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]]);/** 4001 * @license lucide-react v0.462.0 - ISC 4002 * 4003 * This source code is licensed under the ISC license. 4004 * See the LICENSE file in the root directory of this source tree. 4005 */const RP=S("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/** 4006 * @license lucide-react v0.462.0 - ISC 4007 * 4008 * This source code is licensed under the ISC license. 4009 * See the LICENSE file in the root directory of this source tree. 4010 */const DP=S("KeyboardMusic",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M6 8h4",key:"utf9t1"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M6 12v4",key:"dy92yo"}],["path",{d:"M10 12v4",key:"1fxnav"}],["path",{d:"M14 12v4",key:"1hft58"}],["path",{d:"M18 12v4",key:"tjjnbz"}]]);/** 4011 * @license lucide-react v0.462.0 - ISC 4012 * 4013 * This source code is licensed under the ISC license. 4014 * See the LICENSE file in the root directory of this source tree. 4015 */const FP=S("KeyboardOff",[["path",{d:"M 20 4 A2 2 0 0 1 22 6",key:"1g1fkt"}],["path",{d:"M 22 6 L 22 16.41",key:"1qjg3w"}],["path",{d:"M 7 16 L 16 16",key:"n0yqwb"}],["path",{d:"M 9.69 4 L 20 4",key:"kbpcgx"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2",key:"s23sx2"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M8 12h.01",key:"czm47f"}]]);/** 4016 * @license lucide-react v0.462.0 - ISC 4017 * 4018 * This source code is licensed under the ISC license. 4019 * See the LICENSE file in the root directory of this source tree. 4020 */const $P=S("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);/** 4021 * @license lucide-react v0.462.0 - ISC 4022 * 4023 * This source code is licensed under the ISC license. 4024 * See the LICENSE file in the root directory of this source tree. 4025 */const BP=S("LampCeiling",[["path",{d:"M12 2v5",key:"nd4vlx"}],["path",{d:"M6 7h12l4 9H2l4-9Z",key:"123d64"}],["path",{d:"M9.17 16a3 3 0 1 0 5.66 0",key:"1061mw"}]]);/** 4026 * @license lucide-react v0.462.0 - ISC 4027 * 4028 * This source code is licensed under the ISC license. 4029 * See the LICENSE file in the root directory of this source tree. 4030 */const zP=S("LampDesk",[["path",{d:"m14 5-3 3 2 7 8-8-7-2Z",key:"1b0msb"}],["path",{d:"m14 5-3 3-3-3 3-3 3 3Z",key:"1uemms"}],["path",{d:"M9.5 6.5 4 12l3 6",key:"1bx08v"}],["path",{d:"M3 22v-2c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v2H3Z",key:"wap775"}]]);/** 4031 * @license lucide-react v0.462.0 - ISC 4032 * 4033 * This source code is licensed under the ISC license. 4034 * See the LICENSE file in the root directory of this source tree. 4035 */const UP=S("LampFloor",[["path",{d:"M9 2h6l3 7H6l3-7Z",key:"wcx6mj"}],["path",{d:"M12 9v13",key:"3n1su1"}],["path",{d:"M9 22h6",key:"1rlq3v"}]]);/** 4036 * @license lucide-react v0.462.0 - ISC 4037 * 4038 * This source code is licensed under the ISC license. 4039 * See the LICENSE file in the root directory of this source tree. 4040 */const qP=S("LampWallDown",[["path",{d:"M11 13h6l3 7H8l3-7Z",key:"9n3qlo"}],["path",{d:"M14 13V8a2 2 0 0 0-2-2H8",key:"1hu4hb"}],["path",{d:"M4 9h2a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H4v6Z",key:"s053bc"}]]);/** 4041 * @license lucide-react v0.462.0 - ISC 4042 * 4043 * This source code is licensed under the ISC license. 4044 * See the LICENSE file in the root directory of this source tree. 4045 */const HP=S("LampWallUp",[["path",{d:"M11 4h6l3 7H8l3-7Z",key:"11x1ee"}],["path",{d:"M14 11v5a2 2 0 0 1-2 2H8",key:"eutp5o"}],["path",{d:"M4 15h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H4v-6Z",key:"1iuthr"}]]);/** 4046 * @license lucide-react v0.462.0 - ISC 4047 * 4048 * This source code is licensed under the ISC license. 4049 * See the LICENSE file in the root directory of this source tree. 4050 */const VP=S("Lamp",[["path",{d:"M8 2h8l4 10H4L8 2Z",key:"9dma5w"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M8 22v-2c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v2H8Z",key:"mwf4oh"}]]);/** 4051 * @license lucide-react v0.462.0 - ISC 4052 * 4053 * This source code is licensed under the ISC license. 4054 * See the LICENSE file in the root directory of this source tree. 4055 */const WP=S("LandPlot",[["path",{d:"m12 8 6-3-6-3v10",key:"mvpnpy"}],["path",{d:"m8 11.99-5.5 3.14a1 1 0 0 0 0 1.74l8.5 4.86a2 2 0 0 0 2 0l8.5-4.86a1 1 0 0 0 0-1.74L16 12",key:"ek95tt"}],["path",{d:"m6.49 12.85 11.02 6.3",key:"1kt42w"}],["path",{d:"M17.51 12.85 6.5 19.15",key:"v55bdg"}]]);/** 4056 * @license lucide-react v0.462.0 - ISC 4057 * 4058 * This source code is licensed under the ISC license. 4059 * See the LICENSE file in the root directory of this source tree. 4060 */const GP=S("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/** 4061 * @license lucide-react v0.462.0 - ISC 4062 * 4063 * This source code is licensed under the ISC license. 4064 * See the LICENSE file in the root directory of this source tree. 4065 */const KP=S("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/** 4066 * @license lucide-react v0.462.0 - ISC 4067 * 4068 * This source code is licensed under the ISC license. 4069 * See the LICENSE file in the root directory of this source tree. 4070 */const YP=S("LaptopMinimalCheck",[["path",{d:"M2 20h20",key:"owomy5"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}],["rect",{x:"3",y:"4",width:"18",height:"12",rx:"2",key:"8ur36m"}]]);/** 4071 * @license lucide-react v0.462.0 - ISC 4072 * 4073 * This source code is licensed under the ISC license. 4074 * See the LICENSE file in the root directory of this source tree. 4075 */const Pp=S("LaptopMinimal",[["rect",{width:"18",height:"12",x:"3",y:"4",rx:"2",ry:"2",key:"1qhy41"}],["line",{x1:"2",x2:"22",y1:"20",y2:"20",key:"ni3hll"}]]);/** 4076 * @license lucide-react v0.462.0 - ISC 4077 * 4078 * This source code is licensed under the ISC license. 4079 * See the LICENSE file in the root directory of this source tree. 4080 */const XP=S("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/** 4081 * @license lucide-react v0.462.0 - ISC 4082 * 4083 * This source code is licensed under the ISC license. 4084 * See the LICENSE file in the root directory of this source tree. 4085 */const ZP=S("LassoSelect",[["path",{d:"M7 22a5 5 0 0 1-2-4",key:"umushi"}],["path",{d:"M7 16.93c.96.43 1.96.74 2.99.91",key:"ybbtv3"}],["path",{d:"M3.34 14A6.8 6.8 0 0 1 2 10c0-4.42 4.48-8 10-8s10 3.58 10 8a7.19 7.19 0 0 1-.33 2",key:"gt5e1w"}],["path",{d:"M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",key:"bq3ynw"}],["path",{d:"M14.33 22h-.09a.35.35 0 0 1-.24-.32v-10a.34.34 0 0 1 .33-.34c.08 0 .15.03.21.08l7.34 6a.33.33 0 0 1-.21.59h-4.49l-2.57 3.85a.35.35 0 0 1-.28.14z",key:"72q637"}]]);/** 4086 * @license lucide-react v0.462.0 - ISC 4087 * 4088 * This source code is licensed under the ISC license. 4089 * See the LICENSE file in the root directory of this source tree. 4090 */const QP=S("Lasso",[["path",{d:"M7 22a5 5 0 0 1-2-4",key:"umushi"}],["path",{d:"M3.3 14A6.8 6.8 0 0 1 2 10c0-4.4 4.5-8 10-8s10 3.6 10 8-4.5 8-10 8a12 12 0 0 1-5-1",key:"146dds"}],["path",{d:"M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",key:"bq3ynw"}]]);/** 4091 * @license lucide-react v0.462.0 - ISC 4092 * 4093 * This source code is licensed under the ISC license. 4094 * See the LICENSE file in the root directory of this source tree. 4095 */const JP=S("Laugh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z",key:"b2q4dd"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/** 4096 * @license lucide-react v0.462.0 - ISC 4097 * 4098 * This source code is licensed under the ISC license. 4099 * See the LICENSE file in the root directory of this source tree. 4100 */const e7=S("Layers2",[["path",{d:"m16.02 12 5.48 3.13a1 1 0 0 1 0 1.74L13 21.74a2 2 0 0 1-2 0l-8.5-4.87a1 1 0 0 1 0-1.74L7.98 12",ke
4100y:"1cuww1"}],["path",{d:"M13 13.74a2 2 0 0 1-2 0L2.5 8.87a1 1 0 0 1 0-1.74L11 2.26a2 2 0 0 1 2 0l8.5 4.87a1 1 0 0 1 0 1.74Z",key:"pdlvxu"}]]);/** 4101 * @license lucide-react v0.462.0 - ISC 4102 * 4103 * This source code is licensed under the ISC license. 4104 * See the LICENSE file in the root directory of this source tree. 4105 */const t7=S("Layers3",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m6.08 9.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59",key:"1e5n1m"}],["path",{d:"m6.08 14.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59",key:"1iwflc"}]]);/** 4106 * @license lucide-react v0.462.0 - ISC 4107 * 4108 * This source code is licensed under the ISC license. 4109 * See the LICENSE file in the root directory of this source tree. 4110 */const r7=S("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 4111 * @license lucide-react v0.462.0 - ISC 4112 * 4113 * This source code is licensed under the ISC license. 4114 * See the LICENSE file in the root directory of this source tree. 4115 */const n7=S("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 4116 * @license lucide-react v0.462.0 - ISC 4117 * 4118 * This source code is licensed under the ISC license. 4119 * See the LICENSE file in the root directory of this source tree. 4120 */const a7=S("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 4121 * @license lucide-react v0.462.0 - ISC 4122 * 4123 * This source code is licensed under the ISC license. 4124 * See the LICENSE file in the root directory of this source tree. 4125 */const i7=S("LayoutList",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]);/** 4126 * @license lucide-react v0.462.0 - ISC 4127 * 4128 * This source code is licensed under the ISC license. 4129 * See the LICENSE file in the root directory of this source tree. 4130 */const s7=S("LayoutPanelLeft",[["rect",{width:"7",height:"18",x:"3",y:"3",rx:"1",key:"2obqm"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]]);/** 4131 * @license lucide-react v0.462.0 - ISC 4132 * 4133 * This source code is licensed under the ISC license. 4134 * See the LICENSE file in the root directory of this source tree. 4135 */const o7=S("LayoutPanelTop",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]]);/** 4136 * @license lucide-react v0.462.0 - ISC 4137 * 4138 * This source code is licensed under the ISC license. 4139 * See the LICENSE file in the root directory of this source tree. 4140 */const l7=S("LayoutTemplate",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);/** 4141 * @license lucide-react v0.462.0 - ISC 4142 * 4143 * This source code is licensed under the ISC license. 4144 * See the LICENSE file in the root directory of this source tree. 4145 */const c7=S("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/** 4146 * @license lucide-react v0.462.0 - ISC 4147 * 4148 * This source code is licensed under the ISC license. 4149 * See the LICENSE file in the root directory of this source tree. 4150 */const u7=S("LeafyGreen",[["path",{d:"M2 22c1.25-.987 2.27-1.975 3.9-2.2a5.56 5.56 0 0 1 3.8 1.5 4 4 0 0 0 6.187-2.353 3.5 3.5 0 0 0 3.69-5.116A3.5 3.5 0 0 0 20.95 8 3.5 3.5 0 1 0 16 3.05a3.5 3.5 0 0 0-5.831 1.373 3.5 3.5 0 0 0-5.116 3.69 4 4 0 0 0-2.348 6.155C3.499 15.42 4.409 16.712 4.2 18.1 3.926 19.743 3.014 20.732 2 22",key:"1134nt"}],["path",{d:"M2 22 17 7",key:"1q7jp2"}]]);/** 4151 * @license lucide-react v0.462.0 - ISC 4152 * 4153 * This source code is licensed under the ISC license. 4154 * See the LICENSE file in the root directory of this source tree. 4155 */const d7=S("Lectern",[["path",{d:"M16 12h3a2 2 0 0 0 1.902-1.38l1.056-3.333A1 1 0 0 0 21 6H3a1 1 0 0 0-.958 1.287l1.056 3.334A2 2 0 0 0 5 12h3",key:"13jjxg"}],["path",{d:"M18 6V3a1 1 0 0 0-1-1h-3",key:"1550fe"}
4155],["rect",{width:"8",height:"12",x:"8",y:"10",rx:"1",key:"qmu8b6"}]]);/** 4156 * @license lucide-react v0.462.0 - ISC 4157 * 4158 * This source code is licensed under the ISC license. 4159 * See the LICENSE file in the root directory of this source tree. 4160 */const h7=S("LetterText",[["path",{d:"M15 12h6",key:"upa0zy"}],["path",{d:"M15 6h6",key:"1jlkvy"}],["path",{d:"m3 13 3.553-7.724a.5.5 0 0 1 .894 0L11 13",key:"blevx4"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M4 11h6",key:"olkgv1"}]]);/** 4161 * @license lucide-react v0.462.0 - ISC 4162 * 4163 * This source code is licensed under the ISC license. 4164 * See the LICENSE file in the root directory of this source tree. 4165 */const f7=S("LibraryBig",[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]]);/** 4166 * @license lucide-react v0.462.0 - ISC 4167 * 4168 * This source code is licensed under the ISC license. 4169 * See the LICENSE file in the root directory of this source tree. 4170 */const nw=S("Library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);/** 4171 * @license lucide-react v0.462.0 - ISC 4172 * 4173 * This source code is licensed under the ISC license. 4174 * See the LICENSE file in the root directory of this source tree. 4175 */const p7=S("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/** 4176 * @license lucide-react v0.462.0 - ISC 4177 * 4178 * This source code is licensed under the ISC license. 4179 * See the LICENSE file in the root directory of this source tree. 4180 */const m7=S("Ligature",[["path",{d:"M8 20V8c0-2.2 1.8-4 4-4 1.5 0 2.8.8 3.5 2",key:"1rtphz"}],["path",{d:"M6 12h4",key:"a4o3ry"}],["path",{d:"M14 12h2v8",key:"c1fccl"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 20h4",key:"lzx1xo"}]]);/** 4181 * @license lucide-react v0.462.0 - ISC 4182 * 4183 * This source code is licensed under the ISC license. 4184 * See the LICENSE file in the root directory of this source tree. 4185 */const g7=S("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 4186 * @license lucide-react v0.462.0 - ISC 4187 * 4188 * This source code is licensed under the ISC license. 4189 * See the LICENSE file in the root directory of this source tree. 4190 */const aw=S("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 4191 * @license lucide-react v0.462.0 - ISC 4192 * 4193 * This source code is licensed under the ISC license. 4194 * See the LICENSE file in the root directory of this source tree. 4195 */const y7=S("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 4196 * @license lucide-react v0.462.0 - ISC 4197 * 4198 * This source code is licensed under the ISC license. 4199 * See the LICENSE file in the root directory of this source tree. 4200 */const by=S("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 4201 * @license lucide-react v0.462.0 - ISC 4202 * 4203 * This source code is licensed under the ISC license. 4204 * See the LICENSE file in the root directory of this source tree. 4205 */const v7=S("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** 4206 * @license lucide-react v0.462.0 - ISC 4207 * 4208 * This source code is licensed under the ISC license. 4209 * See the LICENSE file in the root directory of this source tree. 4210 */const x7=S("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 4211 * @license lucide-react v0.462.0 - ISC 4212 * 4213 * This source code is licensed under the ISC license. 4214 * See the LICENSE file in the root directory of this source tree. 4215 */const b7=S("ListCheck",[["path",{d:"M11 18H3",key:"n3j2dh"}],["path",{d:"m15 18 2 2 4-4",key:"1szwhi"}],["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 6H3",key:"1wxfjs"}]]);/** 4216 * @license lucide-react v0.462.0 - ISC 4217 * 4218 * This source code is licensed under the ISC license. 4219 * See the LICENSE file in the root directory of this source tree. 4220 */const iw=S("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** 4221 * @license lucide-react v0.462.0 - ISC 4222 * 4223 * This source code is licensed under the ISC license. 4224 * See the LICENSE file in the root directory of this source tree. 4225 */const w7=S("ListCollapse",[["path",{d:"m3 10 2.5-2.5L3 5",key:"i6eama"}],["path",{d:"m3 19 2.5-2.5L3 14",key:"w2gmor"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}]]);/** 4226 * @license lucide-react v0.462.0 - ISC 4227 * 4228 * This source code is licensed under the ISC license. 4229 * See the LICENSE file in the root directory of this source tree. 4230 */const k7=S("ListEnd",[["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M10 18H3",key:"13769t"}],["path",{d:"M21 6v10a2 2 0 0 1-2 2h-5",key:"ilrcs8"}],["path",{d:"m16 16-2 2 2 2",key:"kkc6pm"}]]);/** 4231 * @license lucide-react v0.462.0 - ISC 4232 * 4233 * This source code is licensed under the ISC license. 4234 * See the LICENSE file in the root directory of this source tree. 4235 */const _7=S("ListFilter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 4236 * @license lucide-react v0.462.0 - ISC 4237 * 4238 * This source code is licensed under the ISC license. 4239 * See the LICENSE file in the root directory of this source tree. 4240 */const S7=S("ListMinus",[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M21 12h-6",key:"bt1uis"}]]);/** 4241 * @license lucide-react v0.462.0 - ISC 4242 * 4243 * This source code is licensed under the ISC license. 4244 * See the LICENSE file in the root directory of this source tree. 4245 */const j7=S("ListMusic",[["path",{d:"M21 15V6",key:"h1cx4g"}],["path",{d:"M18.5 18a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",key:"8saifv"}],["path",{d:"M12 12H3",key:"18klou"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M12 18H3",key:"11ftsu"}]]);/** 4246 * @license lucide-react v0.462.0 - ISC 4247 * 4248 * This source code is licensed under the ISC license. 4249 * See the LICENSE file in the root directory of this source tree. 4250 */const E7=S("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/** 4251 * @license lucide-react v0.462.0 - ISC 4252 * 4253 * This source code is licensed under the ISC license. 4254 * See the LICENSE file in the root directory of this source tree. 4255 */const C7=S("ListPlus",[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]]);/** 4256 * @license lucide-react v0.462.0 - ISC 4257 * 4258 * This source code is licensed under the ISC license. 4259 * See the LICENSE file in the root directory of this source tree. 4260 */const N7=S("ListRestart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]);/** 4261 * @license lucide-react v0.462.0 - ISC 4262 * 4263 * This source code is licensed under the ISC license. 4264 * See the LICENSE file in the root directory of this source tree. 4265 */const T7=S("ListStart",[["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M10 6H3",key:"lf8lx7"}],["path",{d:"M21 18V8a2 2 0 0 0-2-2h-5",key:"1hghli"}],["path",{d:"m16 8-2-2 2-2",key:"160uvd"}]]);/** 4266 * @license lucide-react v0.462.0 - ISC 4267 * 4268 * This source code is licensed under the ISC license. 4269 * See the LICENSE file in the root directory of this source tree. 4270 */const A7=S("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** 4271 * @license lucide-react v0.462.0 - ISC 4272 * 4273 * This source code is licensed under the ISC license. 4274 * See the LICENSE file in the root directory of this source tree. 4275 */const M7=S("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]);/** 4276 * @license lucide-react v0.462.0 - ISC 4277 * 4278 * This source code is licensed under the ISC license. 4279 * See the LICENSE file in the root directory of this source tree. 4280 */const I7=S("ListVideo",[["path",{d:"M12 12H3",key:"18klou"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M12 18H3",key:"11ftsu"}],["path",{d:"m16 12 5 3-5 3v-6Z",key:"zpskkp"}]]);/** 4281 * @license lucide-react v0.462.0 - ISC 4282 * 4283 * This source code is licensed under the ISC license. 4284 * See the LICENSE file in the root directory of this source tree. 4285 */const P7=S("ListX",[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"m19 10-4 4",key:"1tz659"}],["path",{d:"m15 10 4 4",key:"1n7nei"}]]);/** 4286 * @license lucide-react v0.462.0 - ISC 4287 * 4288 * This source code is licensed under the ISC license. 4289 * See the LICENSE file in the root directory of this source tree. 4290 */const L7=S("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/** 4291 * @license lucide-react v0.462.0 - ISC 4292 * 4293 * This source code is licensed under the ISC license. 4294 * See the LICENSE file in the root directory of this source tree.
4295 */const Me=S("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 4296 * @license lucide-react v0.462.0 - ISC 4297 * 4298 * This source code is licensed under the ISC license. 4299 * See the LICENSE file in the root directory of this source tree. 4300 */const O7=S("LoaderPinwheel",[["path",{d:"M22 12a1 1 0 0 1-10 0 1 1 0 0 0-10 0",key:"1lzz15"}],["path",{d:"M7 20.7a1 1 0 1 1 5-8.7 1 1 0 1 0 5-8.6",key:"1gnrpi"}],["path",{d:"M7 3.3a1 1 0 1 1 5 8.6 1 1 0 1 0 5 8.6",key:"u9yy5q"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 4301 * @license lucide-react v0.462.0 - ISC 4302 * 4303 * This source code is licensed under the ISC license. 4304 * See the LICENSE file in the root directory of this source tree. 4305 */const R7=S("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/** 4306 * @license lucide-react v0.462.0 - ISC 4307 * 4308 * This source code is licensed under the ISC license. 4309 * See the LICENSE file in the root directory of this source tree. 4310 */const D7=S("LocateFixed",[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 4311 * @license lucide-react v0.462.0 - ISC 4312 * 4313 * This source code is licensed under the ISC license. 4314 * See the LICENSE file in the root directory of this source tree. 4315 */const F7=S("LocateOff",[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["path",{d:"M7.11 7.11C5.83 8.39 5 10.1 5 12c0 3.87 3.13 7 7 7 1.9 0 3.61-.83 4.89-2.11",key:"1oh7ia"}],["path",{d:"M18.71 13.96c.19-.63.29-1.29.29-1.96 0-3.87-3.13-7-7-7-.67 0-1.33.1-1.96.29",key:"3qdecy"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 4316 * @license lucide-react v0.462.0 - ISC 4317 * 4318 * This source code is licensed under the ISC license. 4319 * See the LICENSE file in the root directory of this source tree. 4320 */const $7=S("Locate",[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}]]);/** 4321 * @license lucide-react v0.462.0 - ISC 4322 * 4323 * This source code is licensed under the ISC license. 4324 * See the LICENSE file in the root directory of this source tree. 4325 */const Lp=S("LockKeyholeOpen",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]]);/** 4326 * @license lucide-react v0.462.0 - ISC 4327 * 4328 * This source code is licensed under the ISC license. 4329 * See the LICENSE file in the root directory of this source tree. 4330 */const B7=S("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/** 4331 * @license lucide-react v0.462.0 - ISC 4332 * 4333 * This source code is licensed under the ISC license. 4334 * See the LICENSE file in the root directory of this source tree. 4335 */const Op=S("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/** 4336 * @license lucide-react v0.462.0 - ISC 4337 * 4338 * This source code is licensed under the ISC license. 4339 * See the LICENSE file in the root directory of this source tree. 4340 */const Hd=S("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 4341 * @license lucide-react v0.462.0 - ISC 4342 * 4343 * This source code is licensed under the ISC license. 4344 * See the LICENSE file in the root directory of this source tree. 4345 */const z7=S("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",ke
4345y:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** 4346 * @license lucide-react v0.462.0 - ISC 4347 * 4348 * This source code is licensed under the ISC license. 4349 * See the LICENSE file in the root directory of this source tree. 4350 */const sw=S("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 4351 * @license lucide-react v0.462.0 - ISC 4352 * 4353 * This source code is licensed under the ISC license. 4354 * See the LICENSE file in the root directory of this source tree. 4355 */const U7=S("Logs",[["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M3 18h1",key:"1eiwyy"}],["path",{d:"M3 6h1",key:"rgxa97"}],["path",{d:"M8 12h1",key:"1con00"}],["path",{d:"M8 18h1",key:"13wk12"}],["path",{d:"M8 6h1",key:"tn6mkg"}]]);/** 4356 * @license lucide-react v0.462.0 - ISC 4357 * 4358 * This source code is licensed under the ISC license. 4359 * See the LICENSE file in the root directory of this source tree. 4360 */const q7=S("Lollipop",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}],["path",{d:"M11 11a2 2 0 0 0 4 0 4 4 0 0 0-8 0 6 6 0 0 0 12 0",key:"107gwy"}]]);/** 4361 * @license lucide-react v0.462.0 - ISC 4362 * 4363 * This source code is licensed under the ISC license. 4364 * See the LICENSE file in the root directory of this source tree. 4365 */const H7=S("Luggage",[["path",{d:"M6 20a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2",key:"1m57jg"}],["path",{d:"M8 18V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v14",key:"1l99gc"}],["path",{d:"M10 20h4",key:"ni2waw"}],["circle",{cx:"16",cy:"20",r:"2",key:"1vifvg"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]]);/** 4366 * @license lucide-react v0.462.0 - ISC 4367 * 4368 * This source code is licensed under the ISC license. 4369 * See the LICENSE file in the root directory of this source tree. 4370 */const V7=S("Magnet",[["path",{d:"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15",key:"1i3lhw"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}],["path",{d:"m12 15 4 4",key:"lnac28"}]]);/** 4371 * @license lucide-react v0.462.0 - ISC 4372 * 4373 * This source code is licensed under the ISC license. 4374 * See the LICENSE file in the root directory of this source tree. 4375 */const W7=S("MailCheck",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]);/** 4376 * @license lucide-react v0.462.0 - ISC 4377 * 4378 * This source code is licensed under the ISC license. 4379 * See the LICENSE file in the root directory of this source tree. 4380 */const G7=S("MailMinus",[["path",{d:"M22 15V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"fuxbkv"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M16 19h6",key:"xwg31i"}]]);/** 4381 * @license lucide-react v0.462.0 - ISC 4382 * 4383 * This source code is licensed under the ISC license. 4384 * See the LICENSE file in the root directory of this source tree. 4385 */const K7=S("MailOpen",[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]]);/** 4386 * @license lucide-react v0.462.0 - ISC 4387 * 4388 * This source code is licensed under the ISC license. 4389 * See the LICENSE file in the root directory of this source tree. 4390 */const Y7=S("MailPlus",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M16 19h6",key:"xwg31i"}]]);/** 4391 * @license lucide-react v0.462.0 - ISC 4392 * 4393 * This source code is licensed under the ISC license. 4394 * See the LICENSE file in the root directory of this source tree. 4395 */const X7=S("MailQuestion",[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M18 15.28c.2-.4.5-.8.9-1a2.1 2.1 0 0 1 2.6.4c.3.4.5.8.5 1.3 0 1.3-2 2-2 2",key:"7z9rxb"}],["path",{d:"M20 22v.01",key:"12bgn6"}]]);/** 4396 * @license lucide-react v0.462.0 - ISC 4397 * 4398 * This source code is licensed under the ISC license. 4399 * See the LICENSE file in the root directory of this source tree. 4400 */const Z7=S("MailSearch",[["path",{d:"M22 12.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h7.5",key:"w80f2v"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",key:"8lzu5m"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.5-1.5",key:"1x83k4"}]]);/** 4401 * @license lucide-react v0.462.0 - ISC 4402 * 4403 * This source code is licensed under the ISC license. 4404 * See the LICENSE file in the root directory of this source tree. 4405 */const Q7=S("MailWarning",[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M20 14v4",key:"1hm744"}],["path",{d:"M20 22v.01",key:"12bgn6"}]]);/** 4406 * @license lucide-react v0.462.0 - ISC 4407 * 4408 * This source code is licensed under the ISC license. 4409 * See the LICENSE file in the root directory of this source tree. 4410 */const J7=S("MailX",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h9",key:"1j9vog"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m17 17 4 4",key:"1b3523"}],["path",{d:"m21 17-4 4",key:"uinynz"}]]);/** 4411 * @license lucide-react v0.462.0 - ISC 4412 * 4413 * This source code is licensed under the ISC license. 4414 * See the LICENSE file in the root directory of this source tree. 4415 */const Vd=S("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 4416 * @license lucide-react v0.462.0 - ISC 4417 * 4418 * This source code is licensed under the ISC license. 4419 * See the LICENSE file in the root directory of this source tree. 4420 */const eL=S("Mailbox",[["path",{d:"M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.2 0 4 1.8 4 4v8Z",key:"1lbycx"}],["polyline",{points:"15,9 18,9 18,11",key:"1pm9c0"}
4420],["path",{d:"M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2",key:"15i455"}],["line",{x1:"6",x2:"7",y1:"10",y2:"10",key:"1e2scm"}]]);/** 4421 * @license lucide-react v0.462.0 - ISC 4422 * 4423 * This source code is licensed under the ISC license. 4424 * See the LICENSE file in the root directory of this source tree. 4425 */const tL=S("Mails",[["rect",{width:"16",height:"13",x:"6",y:"4",rx:"2",key:"1drq3f"}],["path",{d:"m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7",key:"xn252p"}],["path",{d:"M2 8v11c0 1.1.9 2 2 2h14",key:"n13cji"}]]);/** 4426 * @license lucide-react v0.462.0 - ISC 4427 * 4428 * This source code is licensed under the ISC license. 4429 * See the LICENSE file in the root directory of this source tree. 4430 */const rL=S("MapPinCheckInside",[["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"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]]);/** 4431 * @license lucide-react v0.462.0 - ISC 4432 * 4433 * This source code is licensed under the ISC license. 4434 * See the LICENSE file in the root directory of this source tree. 4435 */const nL=S("MapPinCheck",[["path",{d:"M19.43 12.935c.357-.967.57-1.955.57-2.935a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32.197 32.197 0 0 0 .813-.728",key:"1dq61d"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"m16 18 2 2 4-4",key:"1mkfmb"}]]);/** 4436 * @license lucide-react v0.462.0 - ISC 4437 * 4438 * This source code is licensed under the ISC license. 4439 * See the LICENSE file in the root directory of this source tree. 4440 */const aL=S("MapPinHouse",[["path",{d:"M15 22a1 1 0 0 1-1-1v-4a1 1 0 0 1 .445-.832l3-2a1 1 0 0 1 1.11 0l3 2A1 1 0 0 1 22 17v4a1 1 0 0 1-1 1z",key:"1p1rcz"}],["path",{d:"M18 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 .601.2",key:"mcbcs9"}],["path",{d:"M18 22v-3",key:"1t1ugv"}],["circle",{cx:"10",cy:"10",r:"3",key:"1ns7v1"}]]);/** 4441 * @license lucide-react v0.462.0 - ISC 4442 * 4443 * This source code is licensed under the ISC license. 4444 * See the LICENSE file in the root directory of this source tree. 4445 */const iL=S("MapPinMinusInside",[["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"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/** 4446 * @license lucide-react v0.462.0 - ISC 4447 * 4448 * This source code is licensed under the ISC license. 4449 * See the LICENSE file in the root directory of this source tree. 4450 */const sL=S("MapPinMinus",[["path",{d:"M18.977 14C19.6 12.701 20 11.343 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738",key:"11uxia"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M16 18h6",key:"987eiv"}]]);/** 4451 * @license lucide-react v0.462.0 - ISC 4452 * 4453 * This source code is licensed under the ISC license. 4454 * See the LICENSE file in the root directory of this source tree. 4455 */const oL=S("MapPinOff",[["path",{d:"M12.75 7.09a3 3 0 0 1 2.16 2.16",key:"1d4wjd"}],["path",{d:"M17.072 17.072c-1.634 2.17-3.527 3.912-4.471 4.727a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 1.432-4.568",key:"12yil7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.475 2.818A8 8 0 0 1 20 10c0 1.183-.31 2.377-.81 3.533",key:"lhrkcz"}],["path",{d:"M9.13 9.13a3 3 0 0 0 3.74 3.74",key:"13wojd"}]]);/** 4456 * @license lucide-react v0.462.0 - ISC 4457 * 4458 * This source code is licensed under the ISC license. 4459 * See the LICENSE file in the root directory of this source tree. 4460 */const lL=S("MapPinPlusInside",[["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"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/** 4461 * @license lucide-react v0.462.0 - ISC 4462 * 4463 * This source code is licensed under the ISC license. 4464 * See the LICENSE file in the root directory of this source tree. 4465 */const cL=S("MapPinPlus",[["path",{d:"M19.914 11.105A7.298 7.298 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738",key:"fcdtly"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M16 18h6",key:"987eiv"}],["path",{d:"M19 15v6",key:"10aioa"}]]);/** 4466 * @license lucide-react v0.462.0 - ISC 4467 * 4468 * This source code is licensed under the ISC license. 4469 * See the LICENSE file in the root directory of this source tree. 4470 */const uL=S("MapPinXInside",[["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"}],["path",{d:"m14.5 7.5-5 5",key:"3lb6iw"}],["path",{d:"m9.5 7.5 5 5",key:"ko136h"}]]);/** 4471 * @license lucide-react v0.462.0 - ISC 4472 * 4473 * This source code is licensed under the ISC license. 4474 * See the LICENSE file in the root directory of this source tree. 4475 */const dL=S("MapPinX",[["path",{d:"M19.752 11.901A7.78 7.78 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 19 19 0 0 0 .09-.077",key:"y0ewhp"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"m21.5 15.5-5 5",key:"11iqnx"}],["path",{d:"m21.5 20.5-5-5",key:"1bylgx"}]]);/** 4476 * @license lucide-react v0.462.0 - ISC 4477 * 4478 * This source code is licensed under the ISC license. 4479 * See the LICENSE file in the root directory of this source tree. 4480 */const wy=S("MapPin",[["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"}]]);/** 4481 * @license lucide-react v0.462.0 - ISC 4482 * 4483 * This source code is licensed under the ISC license. 4484 * See the LICENSE file in the root directory of this source tree. 4485 */const hL=S("MapPinned",[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]]);/** 4486 * @license lucide-react v0.462.0 - ISC 4487 * 4488 * This source code is licensed under the ISC license. 4489 * See the LICENSE file in the root directory of this source tree. 4490 */const fL=S("Map",[["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"}]]);/** 4491 * @license lucide-react v0.462.0 - ISC 4492 * 4493 * This source code is licensed under the ISC license. 4494 * See the LICENSE file in the root directory of this source tree. 4495 */const pL=S("Martini",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]]);/** 4496 * @license lucide-react v0.462.0 - ISC 4497 * 4498 * This source code is licensed under the ISC license. 4499 * See the LICENSE file in the root directory of this source tree. 4500 */const mL=S("Maximize2",[["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"}]]);/** 4501 * @license lucide-react v0.462.0 - ISC 4502 * 4503 * This source code is licensed under the ISC license. 4504 * See the LICENSE file in the root directory of this source tree. 4505 */const gL=S("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/** 4506 * @license lucide-react v0.462.0 - ISC 4507 * 4508 * This source code is licensed under the ISC license. 4509 * See the LICENSE file in the root directory of this source tree. 4510 */const yL=S("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]);/** 4511 * @license lucide-react v0.462.0 - ISC 4512 * 4513 * This source code is licensed under the ISC license. 4514 * See the LICENSE file in the root directory of this source tree. 4515 */const vL=S("MegaphoneOff",[["path",{d:"M9.26 9.26 3 11v3l14.14 3.14",key:"3429n"}],["path",{d:"M21 15.34V6l-7.31 2.03",key:"4o1dh8"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 4516 * @license lucide-react v0.462.0 - ISC 4517 * 4518 * This source code is licensed under the ISC license. 4519 * See the LICENSE file in the root directory of this source tree. 4520 */const xL=S("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 4521 * @license lucide-react v0.462.0 - ISC 4522 * 4523 * This source code is licensed under the ISC license. 4524 * See the LICENSE file in the root directory of this source tree. 4525 */const bL=S("Meh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/** 4526 * @license lucide-react v0.462.0 - ISC 4527 * 4528 * This source code is licensed under the ISC license. 4529 * See the LICENSE file in the root directory of this source tree. 4530 */const wL=S("MemoryStick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]);/** 4531 * @license lucide-react v0.462.0 - ISC 4532 * 4533 * This source code is licensed under the ISC license. 4534 * See the LICENSE file in the root directory of this source tree. 4535 */const ow=S("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 4536 * @license lucide-react v0.462.0 - ISC 4537 * 4538 * This source code is licensed under the ISC license. 4539 * See the LICENSE file in the root directory of this source tree. 4540 */const kL=S("Merge",[["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22",key:"1hyw0i"}],["path",{d:"m20 22-5-5",key:"1m27yz"}]]);/** 4541 * @license lucide-react v0.462.0 - ISC 4542 * 4543 * This source code is licensed under the ISC license. 4544 * See the LICENSE file in the root directory of this source tree. 4545 */const _L=S("MessageCircleCode",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22z",key:"k85zhp"}]]);/** 4546 * @license lucide-react v0.462.0 - ISC 4547 * 4548 * This source code is licensed under the ISC license. 4549 * See the LICENSE file in the root directory of this source tree. 4550 */const SL=S("MessageCircleDashed",[["path",{d:"M13.5 3.1c-.5 0-1-.1-1.5-.
45501s-1 .1-1.5.1",key:"16ll65"}],["path",{d:"M19.3 6.8a10.45 10.45 0 0 0-2.1-2.1",key:"1nq77a"}],["path",{d:"M20.9 13.5c.1-.5.1-1 .1-1.5s-.1-1-.1-1.5",key:"1sf7wn"}],["path",{d:"M17.2 19.3a10.45 10.45 0 0 0 2.1-2.1",key:"x1hs5g"}],["path",{d:"M10.5 20.9c.5.1 1 .1 1.5.1s1-.1 1.5-.1",key:"19m18z"}],["path",{d:"M3.5 17.5 2 22l4.5-1.5",key:"1f36qi"}],["path",{d:"M3.1 10.5c0 .5-.1 1-.1 1.5s.1 1 .1 1.5",key:"1vz3ju"}],["path",{d:"M6.8 4.7a10.45 10.45 0 0 0-2.1 2.1",key:"19f9do"}]]);/** 4551 * @license lucide-react v0.462.0 - ISC 4552 * 4553 * This source code is licensed under the ISC license. 4554 * See the LICENSE file in the root directory of this source tree. 4555 */const lw=S("MessageCircleHeart",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M15.8 9.2a2.5 2.5 0 0 0-3.5 0l-.3.4-.35-.3a2.42 2.42 0 1 0-3.2 3.6l3.6 3.5 3.6-3.5c1.2-1.2 1.1-2.7.2-3.7",key:"43lnbm"}]]);/** 4556 * @license lucide-react v0.462.0 - ISC 4557 * 4558 * This source code is licensed under the ISC license. 4559 * See the LICENSE file in the root directory of this source tree. 4560 */const jL=S("MessageCircleMore",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]]);/** 4561 * @license lucide-react v0.462.0 - ISC 4562 * 4563 * This source code is licensed under the ISC license. 4564 * See the LICENSE file in the root directory of this source tree. 4565 */const EL=S("MessageCircleOff",[["path",{d:"M20.5 14.9A9 9 0 0 0 9.1 3.5",key:"1iebmn"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.6 5.6C3 8.3 2.2 12.5 4 16l-2 6 6-2c3.4 1.8 7.6 1.1 10.3-1.7",key:"1ov8ce"}]]);/** 4566 * @license lucide-react v0.462.0 - ISC 4567 * 4568 * This source code is licensed under the ISC license. 4569 * See the LICENSE file in the root directory of this source tree. 4570 */const CL=S("MessageCirclePlus",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/** 4571 * @license lucide-react v0.462.0 - ISC 4572 * 4573 * This source code is licensed under the ISC license. 4574 * See the LICENSE file in the root directory of this source tree. 4575 */const NL=S("MessageCircleQuestion",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 4576 * @license lucide-react v0.462.0 - ISC 4577 * 4578 * This source code is licensed under the ISC license. 4579 * See the LICENSE file in the root directory of this source tree. 4580 */const TL=S("MessageCircleReply",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}],["path",{d:"M7 12h7a2 2 0 0 1 2 2v1",key:"1gheu4"}]]);/** 4581 * @license lucide-react v0.462.0 - ISC 4582 * 4583 * This source code is licensed under the ISC license. 4584 * See the LICENSE file in the root directory of this source tree. 4585 */const AL=S("MessageCircleWarning",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 4586 * @license lucide-react v0.462.0 - ISC 4587 * 4588 * This source code is licensed under the ISC license. 4589 * See the LICENSE file in the root directory of this source tree. 4590 */const ML=S("MessageCircleX",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 4591 * @license lucide-react v0.462.0 - ISC 4592 * 4593 * This source code is licensed under the ISC license. 4594 * See the LICENSE file in the root directory of this source tree. 4595 */const ky=S("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 4596 * @license lucide-react v0.462.0 - ISC 4597 * 4598 * This source code is licensed under the ISC license. 4599 * See the LICENSE file in the root directory of this source tree. 4600 */const IL=S("MessageSquareCode",[["path",{d:"M10 7.5 8 10l2 2.5",key:"xb17xw"}],["path",{d:"m14 7.5 2 2.5-2 2.5",key:"5rap1v"}],["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 4601 * @license lucide-react v0.462.0 - ISC 4602 * 4603 * This source code is licensed under the ISC license. 4604 * See the LICENSE file in the root directory of this source tree. 4605 */const PL=S("MessageSquareDashed",[["path",{d:"M10 17H7l-4 4v-7",key:"1r71xu"}],["path",{d:"M14 17h1",key:"nufu4t"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 14v1a2 2 0 0 1-2 2",key:"29akq3"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M9 3h1",key:"1yesri"}]]);/** 4606 * @license lucide-react v0.462.0 - ISC 4607 * 4608 * This source code is licensed under the ISC license. 4609 * See the LICENSE file in the root directory of this source tree. 4610 */const LL=S("MessageSquareDiff",[["path",{d:"m5 19-2 2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2",key:"1xuzuj"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);/** 4611 * @license lucide-react v0.462.0 - ISC 4612 * 4613 * This source code is licensed under the ISC license. 4614 * See the LICENSE file in the root directory of this source tree. 4615 */const OL=S("MessageSquareDot",[["path",{d:"M11.7 3H5a2 2 0 0 0-2 2v16l4-4h12a2 2 0 0 0 2-2v-2.7",key:"uodpkb"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]]);/** 4616 * @license lucide-react v0.462.0 - ISC 4617 * 4618 * This source code is licensed under the ISC license. 4619 * See the LICENSE file in the root directory of this source tree. 4620 */const RL=S("MessageSquareHeart",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M14.8 7.5a1.84 1.84 0 0 0-2.6 0l-.2.3-.3-.3a1.84 1.84 0 1 0-2.4 2.8L12 13l2.7-2.7c.9-.9.8-2.1.1-2.8",ke
4620y:"1blaws"}]]);/** 4621 * @license lucide-react v0.462.0 - ISC 4622 * 4623 * This source code is licensed under the ISC license. 4624 * See the LICENSE file in the root directory of this source tree. 4625 */const DL=S("MessageSquareLock",[["path",{d:"M19 15v-2a2 2 0 1 0-4 0v2",key:"h3d1vz"}],["path",{d:"M9 17H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3.5",key:"xsnnhn"}],["rect",{x:"13",y:"15",width:"8",height:"5",rx:"1",key:"1ccwuk"}]]);/** 4626 * @license lucide-react v0.462.0 - ISC 4627 * 4628 * This source code is licensed under the ISC license. 4629 * See the LICENSE file in the root directory of this source tree. 4630 */const FL=S("MessageSquareMore",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M16 10h.01",key:"1m94wz"}]]);/** 4631 * @license lucide-react v0.462.0 - ISC 4632 * 4633 * This source code is licensed under the ISC license. 4634 * See the LICENSE file in the root directory of this source tree. 4635 */const $L=S("MessageSquareOff",[["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M3.6 3.6c-.4.3-.6.8-.6 1.4v16l4-4h10",key:"pwpm4a"}]]);/** 4636 * @license lucide-react v0.462.0 - ISC 4637 * 4638 * This source code is licensed under the ISC license. 4639 * See the LICENSE file in the root directory of this source tree. 4640 */const BL=S("MessageSquarePlus",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/** 4641 * @license lucide-react v0.462.0 - ISC 4642 * 4643 * This source code is licensed under the ISC license. 4644 * See the LICENSE file in the root directory of this source tree. 4645 */const zL=S("MessageSquareQuote",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M8 12a2 2 0 0 0 2-2V8H8",key:"1jfesj"}],["path",{d:"M14 12a2 2 0 0 0 2-2V8h-2",key:"1dq9mh"}]]);/** 4646 * @license lucide-react v0.462.0 - ISC 4647 * 4648 * This source code is licensed under the ISC license. 4649 * See the LICENSE file in the root directory of this source tree. 4650 */const UL=S("MessageSquareReply",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"m10 7-3 3 3 3",key:"1eugdv"}],["path",{d:"M17 13v-1a2 2 0 0 0-2-2H7",key:"ernfh3"}]]);/** 4651 * @license lucide-react v0.462.0 - ISC 4652 * 4653 * This source code is licensed under the ISC license. 4654 * See the LICENSE file in the root directory of this source tree. 4655 */const qL=S("MessageSquareShare",[["path",{d:"M21 12v3a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h7",key:"tqtdkg"}],["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"m16 8 5-5",key:"15mbrl"}]]);/** 4656 * @license lucide-react v0.462.0 - ISC 4657 * 4658 * This source code is licensed under the ISC license. 4659 * See the LICENSE file in the root directory of this source tree. 4660 */const HL=S("MessageSquareText",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);/** 4661 * @license lucide-react v0.462.0 - ISC 4662 * 4663 * This source code is licensed under the ISC license. 4664 * See the LICENSE file in the root directory of this source tree. 4665 */const VL=S("MessageSquareWarning",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v2",key:"stiyo7"}],["path",{d:"M12 13h.01",key:"y0uutt"}]]);/** 4666 * @license lucide-react v0.462.0 - ISC 4667 * 4668 * This source code is licensed under the ISC license. 4669 * See the LICENSE file in the root directory of this source tree. 4670 */const WL=S("MessageSquareX",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"m14.5 7.5-5 5",key:"3lb6iw"}],["path",{d:"m9.5 7.5 5 5",key:"ko136h"}]]);/** 4671 * @license lucide-react v0.462.0 - ISC 4672 * 4673 * This source code is licensed under the ISC license. 4674 * See the LICENSE file in the root directory of this source tree. 4675 */const Fa=S("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 4676 * @license lucide-react v0.462.0 - ISC 4677 * 4678 * This source code is licensed under the ISC license. 4679 * See the LICENSE file in the root directory of this source tree. 4680 */const GL=S("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]);/** 4681 * @license lucide-react v0.462.0 - ISC 4682 * 4683 * This source code is licensed under the ISC license. 4684 * See the LICENSE file in the root directory of this source tree. 4685 */const KL=S("MicOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 4686 * @license lucide-react v0.462.0 - ISC 4687 * 4688 * This source code is licensed under the ISC license. 4689 * See the LICENSE file in the root directory of this source tree. 4690 */const Rp=S("MicVocal",[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]]);/** 4691 * @license lucide-react v0.462.0 - ISC 4692 * 4693 * This source code is licensed under the ISC license. 4694 * See the LICENSE file in the root directory of this source tree. 4695 */const YL=S("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 4696 * @license lucide-react v0.462.0 - ISC 4697 * 4698 * This source code is licensed under the ISC license. 4699 * See the LICENSE file in the root directory of this source tree. 4700 */const XL=S("Microchip",[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]]);/** 4701 * @license lucide-react v0.462.0 - ISC 4702 * 4703 * This source code is licensed under the ISC license. 4704 * See the LICENSE file in the root directory of this source tree. 4705 */const ZL=S("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}
4705],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]);/** 4706 * @license lucide-react v0.462.0 - ISC 4707 * 4708 * This source code is licensed under the ISC license. 4709 * See the LICENSE file in the root directory of this source tree. 4710 */const QL=S("Microwave",[["rect",{width:"20",height:"15",x:"2",y:"4",rx:"2",key:"2no95f"}],["rect",{width:"8",height:"7",x:"6",y:"8",rx:"1",key:"zh9wx"}],["path",{d:"M18 8v7",key:"o5zi4n"}],["path",{d:"M6 19v2",key:"1loha6"}],["path",{d:"M18 19v2",key:"1dawf0"}]]);/** 4711 * @license lucide-react v0.462.0 - ISC 4712 * 4713 * This source code is licensed under the ISC license. 4714 * See the LICENSE file in the root directory of this source tree. 4715 */const JL=S("Milestone",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z",key:"1btarq"}]]);/** 4716 * @license lucide-react v0.462.0 - ISC 4717 * 4718 * This source code is licensed under the ISC license. 4719 * See the LICENSE file in the root directory of this source tree. 4720 */const e9=S("MilkOff",[["path",{d:"M8 2h8",key:"1ssgc1"}],["path",{d:"M9 2v1.343M15 2v2.789a4 4 0 0 0 .672 2.219l.656.984a4 4 0 0 1 .672 2.22v1.131M7.8 7.8l-.128.192A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-3",key:"y0ejgx"}],["path",{d:"M7 15a6.47 6.47 0 0 1 5 0 6.472 6.472 0 0 0 3.435.435",key:"iaxqsy"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 4721 * @license lucide-react v0.462.0 - ISC 4722 * 4723 * This source code is licensed under the ISC license. 4724 * See the LICENSE file in the root directory of this source tree. 4725 */const t9=S("Milk",[["path",{d:"M8 2h8",key:"1ssgc1"}],["path",{d:"M9 2v2.789a4 4 0 0 1-.672 2.219l-.656.984A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-9.789a4 4 0 0 0-.672-2.219l-.656-.984A4 4 0 0 1 15 4.788V2",key:"qtp12x"}],["path",{d:"M7 15a6.472 6.472 0 0 1 5 0 6.47 6.47 0 0 0 5 0",key:"ygeh44"}]]);/** 4726 * @license lucide-react v0.462.0 - ISC 4727 * 4728 * This source code is licensed under the ISC license. 4729 * See the LICENSE file in the root directory of this source tree. 4730 */const r9=S("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 4731 * @license lucide-react v0.462.0 - ISC 4732 * 4733 * This source code is licensed under the ISC license. 4734 * See the LICENSE file in the root directory of this source tree. 4735 */const n9=S("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);/** 4736 * @license lucide-react v0.462.0 - ISC 4737 * 4738 * This source code is licensed under the ISC license. 4739 * See the LICENSE file in the root directory of this source tree. 4740 */const n0=S("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 4741 * @license lucide-react v0.462.0 - ISC 4742 * 4743 * This source code is licensed under the ISC license. 4744 * See the LICENSE file in the root directory of this source tree. 4745 */const a9=S("MonitorCheck",[["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/** 4746 * @license lucide-react v0.462.0 - ISC 4747 * 4748 * This source code is licensed under the ISC license. 4749 * See the LICENSE file in the root directory of this source tree. 4750 */const i9=S("MonitorCog",[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m15.2 4.9-.9-.4",key:"12wd2u"}],["path",{d:"m15.2 7.1-.9.4",key:"1r2vl7"}],["path",{d:"m16.9 3.2-.4-.9",key:"3zbo91"}],["path",{d:"m16.9 8.8-.4.9",key:"1qr2dn"}],["path",{d:"m19.5 2.3-.4.9",key:"1rjrkq"}],["path",{d:"m19.5 9.7-.4-.9",key:"heryx5"}],["path",{d:"m21.7 4.5-.9.4",key:"17fqt1"}],["path",{d:"m21.7 7.5-.9-.4",key:"14zyni"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]]);/** 4751 * @license lucide-react v0.462.0 - ISC 4752 * 4753 * This source code is licensed under the ISC license. 4754 * See the LICENSE file in the root directory of this source tree. 4755 */const s9=S("MonitorDot",[["circle",{cx:"19",cy:"6",r:"3",key:"108a5v"}],["path",{d:"M22 12v3a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9",key:"1fet9y"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/** 4756 * @license lucide-react v0.462.0 - ISC 4757 * 4758 * This source code is licensed under the ISC license. 4759 * See the LICENSE file in the root directory of this source tree. 4760 */const o9=S("MonitorDown",[["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"m15 10-3 3-3-3",key:"lzhmyn"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/** 4761 * @license lucide-react v0.462.0 - ISC 4762 * 4763 * This source code is licensed under the ISC license. 4764 * See the LICENSE file in the root directory of this source tree. 4765 */const l9=S("MonitorOff",[["path",{d:"M17 17H4a2 2 0 0 1-2-2V5c0-1.5 1-2 1-2",key:"k0q8oc"}],["path",{d:"M22 15V5a2 2 0 0 0-2-2H9",key:"cp1ac0"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 4766 * @license lucide-react v0.462.0 - ISC 4767 * 4768 * This source code is licensed under the ISC license. 4769 * See the LICENSE file in the root directory of this source tree. 4770 */const c9=S("MonitorPause",[["path",{d:"M10 13V7",key:"1u13u9"}],["path",{d:"M14 13V7",key:"1vj9om"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/** 4771 * @license lucide-react v0.462.0 - ISC 4772 * 4773 * This source code is licensed under the ISC license. 4774 * See the LICENSE file in the root directory of this source tree. 4775 */const u9=S("MonitorPlay",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]);/** 4776 * @license lucide-react v0.462.0 - ISC 4777 * 4778 * This source code is licensed under the ISC license. 4779 * See the LICENSE file in the root directory of this source tree. 4780 */const d9=S("MonitorSmartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]]);/** 4781 * @license lucide-react v0.462.0 - ISC 4782 * 4783 * This source code is licensed under the ISC license. 4784 * See the LICENSE file in the root directory of this source tree. 4785 */const h9=S("MonitorSpeaker",[["path",{d:"M5.5 20H8",key:"1k40s5"}],["path",{d:"M17 9h.01",key:"1j24nn"}],["rect",{width:"10",height:"16",x:"12",y:"4",rx:"2",key:"ixliua"}],["path",{d:"M8 6H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h4",key:"1mp6e1"}],["circle",{cx:"17",cy:"15",r:"1",key:"tqvash"}]]);/** 4786 * @license lucide-react v0.462.0 - ISC 4787 * 4788 * This source code is licensed under the ISC license. 4789 * See the LICENSE file in the root directory of this source tree. 4790 */const f9=S("MonitorStop",[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}],["rect",{x:"9",y:"7",width:"6",height:"6",rx:"1",key:"5m2oou"}]]);/** 4791 * @license lucide-react v0.462.0 - ISC 4792 * 4793 * This source code is licensed under the ISC license. 4794 * See the LICENSE file in the root directory of this source tree. 4795 */const p9=S("MonitorUp",[["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}],["path",{d:"M12 13V7",key:"h0r20n"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/** 4796 * @license lucide-react v0.462.0 - ISC 4797 * 4798 * This source code is licensed under the ISC license. 4799 * See the LICENSE file in the root directory of this source tree. 4800 */const m9=S("MonitorX",[["path",{d:"m14.5 12.5-5-5",key:"1jahn5"}],["path",{d:"m9.5 12.5 5-5",key:"1k2t7b"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/** 4801 * @license lucide-react v0.462.0 - ISC 4802 * 4803 * This source code is licensed under the ISC license. 4804 * See the LICENSE file in the root directory of this source tree. 4805 */const g9=S("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 4806 * @license lucide-react v0.462.0 - ISC 4807 * 4808 * This source code is licensed under the ISC license. 4809 * See the LICENSE file in the root directory of this source tree. 4810 */const y9=S("MoonStar",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]]);/** 4811 * @license lucide-react v0.462.0 - ISC 4812 * 4813 * This source code is licensed under the ISC license. 4814 * See the LICENSE file in the root directory of this source tree. 4815 */const v9=S("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** 4816 * @license lucide-react v0.462.0 - ISC 4817 * 4818 * This source code is licensed under the ISC license. 4819 * See the LICENSE file in the root directory of this source tree. 4820 */const x9=S("MountainSnow",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}],["path",{d:"M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19",key:"1pvmmp"}]]);/** 4821 * @license lucide-react v0.462.0 - ISC 4822 * 4823 * This source code is licensed under the ISC license. 4824 * See the LICENSE file in the root directory of this source tree. 4825 */const b9=S("Mountain",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]]);/** 4826 * @license lucide-react v0.462.0 - ISC 4827 * 4828 * This source code is licensed under the ISC license. 4829 * See the LICENSE file in the root directory of this source tree. 4830 */const w9=S("MouseOff",[["path",{d:"M12 6v.343",key:"1gyhex"}],["path",{d:"M18.218 18.218A7 7 0 0 1 5 15V9a7 7 0 0 1 .782-3.218",key:"ukzz01"}
4830],["path",{d:"M19 13.343V9A7 7 0 0 0 8.56 2.902",key:"104jy9"}],["path",{d:"M22 22 2 2",key:"1r8tn9"}]]);/** 4831 * @license lucide-react v0.462.0 - ISC 4832 * 4833 * This source code is licensed under the ISC license. 4834 * See the LICENSE file in the root directory of this source tree. 4835 */const k9=S("MousePointer2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);/** 4836 * @license lucide-react v0.462.0 - ISC 4837 * 4838 * This source code is licensed under the ISC license. 4839 * See the LICENSE file in the root directory of this source tree. 4840 */const _9=S("MousePointerBan",[["path",{d:"M2.034 2.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.944L8.204 7.545a1 1 0 0 0-.66.66l-1.066 3.443a.5.5 0 0 1-.944.033z",key:"11pp1i"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}],["path",{d:"m11.8 11.8 8.4 8.4",key:"oogvdj"}]]);/** 4841 * @license lucide-react v0.462.0 - ISC 4842 * 4843 * This source code is licensed under the ISC license. 4844 * See the LICENSE file in the root directory of this source tree. 4845 */const S9=S("MousePointerClick",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]]);/** 4846 * @license lucide-react v0.462.0 - ISC 4847 * 4848 * This source code is licensed under the ISC license. 4849 * See the LICENSE file in the root directory of this source tree. 4850 */const j9=S("MousePointer",[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",key:"277e5u"}]]);/** 4851 * @license lucide-react v0.462.0 - ISC 4852 * 4853 * This source code is licensed under the ISC license. 4854 * See the LICENSE file in the root directory of this source tree. 4855 */const E9=S("Mouse",[["rect",{x:"5",y:"2",width:"14",height:"20",rx:"7",key:"11ol66"}],["path",{d:"M12 6v4",key:"16clxf"}]]);/** 4856 * @license lucide-react v0.462.0 - ISC 4857 * 4858 * This source code is licensed under the ISC license. 4859 * See the LICENSE file in the root directory of this source tree. 4860 */const Dp=S("Move3d",[["path",{d:"M5 3v16h16",key:"1mqmf9"}],["path",{d:"m5 19 6-6",key:"jh6hbb"}],["path",{d:"m2 6 3-3 3 3",key:"tkyvxa"}],["path",{d:"m18 16 3 3-3 3",key:"1d4glt"}]]);/** 4861 * @license lucide-react v0.462.0 - ISC 4862 * 4863 * This source code is licensed under the ISC license. 4864 * See the LICENSE file in the root directory of this source tree. 4865 */const C9=S("MoveDiagonal2",[["path",{d:"M19 13v6h-6",key:"1hxl6d"}],["path",{d:"M5 11V5h6",key:"12e2xe"}],["path",{d:"m5 5 14 14",key:"11anup"}]]);/** 4866 * @license lucide-react v0.462.0 - ISC 4867 * 4868 * This source code is licensed under the ISC license. 4869 * See the LICENSE file in the root directory of this source tree. 4870 */const N9=S("MoveDiagonal",[["path",{d:"M11 19H5v-6",key:"8awifj"}],["path",{d:"M13 5h6v6",key:"7voy1q"}],["path",{d:"M19 5 5 19",key:"wwaj1z"}]]);/** 4871 * @license lucide-react v0.462.0 - ISC 4872 * 4873 * This source code is licensed under the ISC license. 4874 * See the LICENSE file in the root directory of this source tree. 4875 */const T9=S("MoveDownLeft",[["path",{d:"M11 19H5V13",key:"1akmht"}],["path",{d:"M19 5L5 19",key:"72u4yj"}]]);/** 4876 * @license lucide-react v0.462.0 - ISC 4877 * 4878 * This source code is licensed under the ISC license. 4879 * See the LICENSE file in the root directory of this source tree. 4880 */const A9=S("MoveDownRight",[["path",{d:"M19 13V19H13",key:"10vkzq"}],["path",{d:"M5 5L19 19",key:"5zm2fv"}]]);/** 4881 * @license lucide-react v0.462.0 - ISC 4882 * 4883 * This source code is licensed under the ISC license. 4884 * See the LICENSE file in the root directory of this source tree. 4885 */const M9=S("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);/** 4886 * @license lucide-react v0.462.0 - ISC 4887 * 4888 * This source code is licensed under the ISC license. 4889 * See the LICENSE file in the root directory of this source tree. 4890 */const I9=S("MoveHorizontal",[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}]]);/** 4891 * @license lucide-react v0.462.0 - ISC 4892 * 4893 * This source code is licensed under the ISC license. 4894 * See the LICENSE file in the root directory of this source tree. 4895 */const P9=S("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);/** 4896 * @license lucide-react v0.462.0 - ISC 4897 * 4898 * This source code is licensed under the ISC license. 4899 * See the LICENSE file in the root directory of this source tree. 4900 */const L9=S("MoveRight",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);/** 4901 * @license lucide-react v0.462.0 - ISC 4902 * 4903 * This source code is licensed under the ISC license. 4904 * See the LICENSE file in the root directory of this source tree. 4905 */const O9=S("MoveUpLeft",[["path",{d:"M5 11V5H11",key:"3q78g9"}],["path",{d:"M5 5L19 19",key:"5zm2fv"}]]);/** 4906 * @license lucide-react v0.462.0 - ISC 4907 * 4908 * This source code is licensed under the ISC license. 4909 * See the LICENSE file in the root directory of this source tree. 4910 */const R9=S("MoveUpRight",[["path",{d:"M13 5H19V11",key:"1n1gyv"}],["path",{d:"M19 5L5 19",key:"72u4yj"}]]);/** 4911 * @license lucide-react v0.462.0 - ISC 4912 * 4913 * This source code is licensed under the ISC license. 4914 * See the LICENSE file in the root directory of this source tree. 4915 */const D9=S("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);/** 4916 * @license lucide-react v0.462.0 - ISC 4917 * 4918 * This source code is licensed under the ISC license. 4919 * See the LICENSE file in the root directory of this source tree. 4920 */const F9=S("MoveVertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]]);/** 4921 * @license lucide-react v0.462.0 - ISC 4922 * 4923 * This source code is licensed under the ISC license. 4924 * See the LICENSE file in the root directory of this source tree. 4925 */const $9=S("Move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]);/** 4926 * @license lucide-react v0.462.0 - ISC 4927 * 4928 * This source code is licensed under the ISC license. 4929 * See the LICENSE file in the root directory of this source tree. 4930 */const B9=S("Music2",[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]]);/** 4931 * @license lucide-react v0.462.0 - ISC 4932 * 4933 * This source code is licensed under the ISC license. 4934 * See the LICENSE file in the root directory of this source tree. 4935 */const z9=S("Music3",[["circle",{cx:"12",cy:"18",r:"4",key:"m3r9ws"}],["path",{d:"M16 18V2",key:"40x2m5"}]]);/** 4936 * @license lucide-react v0.462.0 - ISC 4937 * 4938 * This source code is licensed under the ISC license. 4939 * See the LICENSE file in the root directory of this source tree. 4940 */const U9=S("Music4",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["path",{d:"m9 9 12-2",key:"1e64n2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** 4941 * @license lucide-react v0.462.0 - ISC 4942 * 4943 * This source code is licensed under the ISC license. 4944 * See the LICENSE file in the root directory of this source tree. 4945 */const q9=S("Music",[["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"}]]);/** 4946 * @license lucide-react v0.462.0 - ISC 4947 * 4948 * This source code is licensed under the ISC license. 4949 * See the LICENSE file in the root directory of this source tree. 4950 */const H9=S("Navigation2Off",[["path",{d:"M9.31 9.31 5 21l7-4 7 4-1.17-3.17",key:"qoq2o2"}],["path",{d:"M14.53 8.88 12 2l-1.17 3.17",key:"k3sjzy"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 4951 * @license lucide-react v0.462.0 - ISC 4952 * 4953 * This source code is licensed under the ISC license. 4954 * See the LICENSE file in the root directory of this source tree. 4955 */const V9=S("Navigation2",[["polygon",{points:"12 2 19 21 12 17 5 21 12 2",key:"x8c0qg"}]]);/** 4956 * @license lucide-react v0.462.0 - ISC 4957 * 4958 * This source code is licensed under the ISC license. 4959 * See the LICENSE file in the root directory of this source tree. 4960 */const W9=S("NavigationOff",[["path",{d:"M8.43 8.43 3 11l8 2 2 8 2.57-5.43",key:"1vdtb7"}],["path",{d:"M17.39 11.73 22 2l-9.73 4.61",key:"tya3r6"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 4961 * @license lucide-react v0.462.0 - ISC 4962 * 4963 * This source code is licensed under the ISC license. 4964 * See the LICENSE file in the root directory of this source tree. 4965 */const G9=S("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);/** 4966 * @license lucide-react v0.462.0 - ISC 4967 * 4968 * This source code is licensed under the ISC license. 4969 * See the LICENSE file in the root directory of this source tree. 4970 */const K9=S("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** 4971 * @license lucide-react v0.462.0 - ISC 4972 * 4973 * This source code is licensed under the ISC license. 4974 * See the LICENSE file in the root directory of this source tree.
4975 */const Y9=S("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/** 4976 * @license lucide-react v0.462.0 - ISC 4977 * 4978 * This source code is licensed under the ISC license. 4979 * See the LICENSE file in the root directory of this source tree. 4980 */const X9=S("Nfc",[["path",{d:"M6 8.32a7.43 7.43 0 0 1 0 7.36",key:"9iaqei"}],["path",{d:"M9.46 6.21a11.76 11.76 0 0 1 0 11.58",key:"1yha7l"}],["path",{d:"M12.91 4.1a15.91 15.91 0 0 1 .01 15.8",key:"4iu2gk"}],["path",{d:"M16.37 2a20.16 20.16 0 0 1 0 20",key:"sap9u2"}]]);/** 4981 * @license lucide-react v0.462.0 - ISC 4982 * 4983 * This source code is licensed under the ISC license. 4984 * See the LICENSE file in the root directory of this source tree. 4985 */const Z9=S("NotebookPen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]]);/** 4986 * @license lucide-react v0.462.0 - ISC 4987 * 4988 * This source code is licensed under the ISC license. 4989 * See the LICENSE file in the root directory of this source tree. 4990 */const Q9=S("NotebookTabs",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M15 2v20",key:"dcj49h"}],["path",{d:"M15 7h5",key:"1xj5lc"}],["path",{d:"M15 12h5",key:"w5shd9"}],["path",{d:"M15 17h5",key:"1qaofu"}]]);/** 4991 * @license lucide-react v0.462.0 - ISC 4992 * 4993 * This source code is licensed under the ISC license. 4994 * See the LICENSE file in the root directory of this source tree. 4995 */const J9=S("NotebookText",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M9.5 8h5",key:"11mslq"}],["path",{d:"M9.5 12H16",key:"ktog6x"}],["path",{d:"M9.5 16H14",key:"p1seyn"}]]);/** 4996 * @license lucide-react v0.462.0 - ISC 4997 * 4998 * This source code is licensed under the ISC license. 4999 * See the LICENSE file in the root directory of this source tree. 5000 */const eO=S("Notebook",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]]);/** 5001 * @license lucide-react v0.462.0 - ISC 5002 * 5003 * This source code is licensed under the ISC license. 5004 * See the LICENSE file in the root directory of this source tree. 5005 */const tO=S("NotepadTextDashed",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"j91f56"}],["path",{d:"M20 12v2",key:"w8o0tu"}],["path",{d:"M20 18v2a2 2 0 0 1-2 2h-1",key:"1c9ggx"}],["path",{d:"M13 22h-2",key:"191ugt"}],["path",{d:"M7 22H6a2 2 0 0 1-2-2v-2",key:"1rt9px"}],["path",{d:"M4 14v-2",key:"1v0sqh"}],["path",{d:"M4 8V6a2 2 0 0 1 2-2h2",key:"1mwabg"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]]);/** 5006 * @license lucide-react v0.462.0 - ISC 5007 * 5008 * This source code is licensed under the ISC license. 5009 * See the LICENSE file in the root directory of this source tree. 5010 */const rO=S("NotepadText",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"16",height:"18",x:"4",y:"4",rx:"2",key:"1u9h20"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]]);/** 5011 * @license lucide-react v0.462.0 - ISC 5012 * 5013 * This source code is licensed under the ISC license. 5014 * See the LICENSE file in the root directory of this source tree. 5015 */const nO=S("NutOff",[["path",{d:"M12 4V2",key:"1k5q1u"}],["path",{d:"M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592a7.01 7.01 0 0 0 4.125-2.939",key:"1xcvy9"}],["path",{d:"M19 10v3.343",key:"163tfc"}],["path",{d:"M12 12c-1.349-.573-1.905-1.005-2.5-2-.546.902-1.048 1.353-2.5 2-1.018-.644-1.46-1.08-2-2-1.028.71-1.69.918-3 1 1.081-1.048 1.757-2.03 2-3 .194-.776.84-1.551 1.79-2.21m11.654 5.997c.887-.457 1.28-.891 1.556-1.787 1.032.916 1.683 1.157 3 1-1.297-1.036-1.758-2.03-2-3-.5-2-4-4-8-4-.74 0-1.461.068-2.15.192",key:"17914v"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 5016 * @license lucide-react v0.462.0 - ISC 5017 * 5018 * This source code is licensed under the ISC license. 5019 * See the LICENSE file in the root directory of this source tree. 5020 */const aO=S("Nut",[["path",{d:"M12 4V2",key:"1k5q1u"}],["path",{d:"M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592A7.003 7.003 0 0 0 19 14v-4",key:"1tgyif"}],["path",{d:"M12 4C8 4 4.5 6 4 8c-.243.97-.919 1.952-2 3 1.31-.082 1.972-.29 3-1 .54.92.982 1.356 2 2 1.452-.647 1.954-1.098 2.5-2 .595.995 1.151 1.427 2.5 2 1.31-.621 1.862-1.058 2.5-2 .629.977 1.162 1.423 2.5 2 1.209-.548 1.68-.967 2-2 1.032.916 1.683 1.157 3 1-1.297-1.036-1.758-2.03-2-3-.5-2-4-4-8-4Z",key:"tnsqj"}]]);/** 5021 * @license lucide-react v0.462.0 - ISC 5022 * 5023 * This source code is licensed under the ISC license. 5024 * See the LICENSE file in the root directory of this source tree. 5025 */const Fp=S("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);/** 5026 * @license lucide-react v0.462.0 - ISC 5027 * 5028 * This source code is licensed under the ISC license. 5029 * See the LICENSE file in the root directory of this source tree. 5030 */const iO=S("OctagonMinus",[["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/** 5031 * @license lucide-react v0.462.0 - ISC 5032 * 5033 * This source code is licensed under the ISC license. 5034 * See the LICENSE file in the root directory of this source tree. 5035 */const $p=S("OctagonPause",[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]]);/** 5036 * @license lucide-react v0.462.0 - ISC 5037 * 5038 * This source code is licensed under the ISC license. 5039 * See the LICENSE file in the root directory of this source tree. 5040 */const Bp=S("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 5041 * @license lucide-react v0.462.0 - ISC 5042 * 5043 * This source code is licensed under the ISC license. 5044 * See the LICENSE file in the root directory of this source tree. 5045 */const sO=S("Octagon",[["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]]);/** 5046 * @license lucide-react v0.462.0 - ISC 5047 * 5048 * This source code is licensed under the ISC license. 5049 * See the LICENSE file in the root directory of this source tree. 5050 */const oO=S("Omega",[["path",{d:"M3 20h4.5a.5.5 0 0 0 .5-.5v-.282a.52.52 0 0 0-.247-.437 8 8 0 1 1 8.494-.001.52.52 0 0 0-.247.438v.282a.5.5 0 0 0 .5.5H21",key:"1x94xo"}]]);/** 5051 * @license lucide-react v0.462.0 - ISC 5052 * 5053 * This source code is licensed under the ISC license. 5054 * See the LICENSE file in the root directory of this source tree. 5055 */const lO=S("Option",[["path",{d:"M3 3h6l6 18h6",key:"ph9rgk"}],["path",{d:"M14 3h7",key:"16f0ms"}]]);/** 5056 * @license lucide-react v0.462.0 - ISC 5057 * 5058 * This source code is licensed under the ISC license. 5059 * See the LICENSE file in the root directory of this source tree. 5060 */const cO=S("Orbit",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M10.4 21.9a10 10 0 0 0 9.941-15.416",key:"eohfx2"}],["path",{d:"M13.5 2.1a10 10 0 0 0-9.841 15.416",key:"19pvbm"}]]);/** 5061 * @license lucide-react v0.462.0 - ISC 5062 * 5063 * This source code is licensed under the ISC license. 5064 * See the LICENSE file in the root directory of this source tree. 5065 */const uO=S("Origami",[["path",{d:"M12 12V4a1 1 0 0 1 1-1h6.297a1 1 0 0 1 .651 1.759l-4.696 4.025",key:"1bx4vc"}],["path",{d:"m12 21-7.414-7.414A2 2 0 0 1 4 12.172V6.415a1.002 1.002 0 0 1 1.707-.707L20 20.009",key:"1h3km6"}
5065],["path",{d:"m12.214 3.381 8.414 14.966a1 1 0 0 1-.167 1.199l-1.168 1.163a1 1 0 0 1-.706.291H6.351a1 1 0 0 1-.625-.219L3.25 18.8a1 1 0 0 1 .631-1.781l4.165.027",key:"1hj4wg"}]]);/** 5066 * @license lucide-react v0.462.0 - ISC 5067 * 5068 * This source code is licensed under the ISC license. 5069 * See the LICENSE file in the root directory of this source tree. 5070 */const dO=S("Package2",[["path",{d:"M3 9h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9Z",key:"1ront0"}],["path",{d:"m3 9 2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9",key:"19h2x1"}],["path",{d:"M12 3v6",key:"1holv5"}]]);/** 5071 * @license lucide-react v0.462.0 - ISC 5072 * 5073 * This source code is licensed under the ISC license. 5074 * See the LICENSE file in the root directory of this source tree. 5075 */const hO=S("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/** 5076 * @license lucide-react v0.462.0 - ISC 5077 * 5078 * This source code is licensed under the ISC license. 5079 * See the LICENSE file in the root directory of this source tree. 5080 */const fO=S("PackageMinus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/** 5081 * @license lucide-react v0.462.0 - ISC 5082 * 5083 * This source code is licensed under the ISC license. 5084 * See the LICENSE file in the root directory of this source tree. 5085 */const pO=S("PackageOpen",[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]]);/** 5086 * @license lucide-react v0.462.0 - ISC 5087 * 5088 * This source code is licensed under the ISC license. 5089 * See the LICENSE file in the root directory of this source tree. 5090 */const mO=S("PackagePlus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/** 5091 * @license lucide-react v0.462.0 - ISC 5092 * 5093 * This source code is licensed under the ISC license. 5094 * See the LICENSE file in the root directory of this source tree. 5095 */const gO=S("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]);/** 5096 * @license lucide-react v0.462.0 - ISC 5097 * 5098 * This source code is licensed under the ISC license. 5099 * See the LICENSE file in the root directory of this source tree. 5100 */const yO=S("PackageX",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]);/** 5101 * @license lucide-react v0.462.0 - ISC 5102 * 5103 * This source code is licensed under the ISC license. 5104 * See the LICENSE file in the root directory of this source tree. 5105 */const vl=S("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 5106 * @license lucide-react v0.462.0 - ISC 5107 * 5108 * This source code is licensed under the ISC license. 5109 * See the LICENSE file in the root directory of this source tree. 5110 */const vO=S("PaintBucket",[["path",{d:"m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z",key:"irua1i"}],["path",{d:"m5 2 5 5",key:"1lls2c"}],["path",{d:"M2 13h15",key:"1hkzvu"}],["path",{d:"M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z",key:"xk76lq"}]]);/** 5111 * @license lucide-react v0.462.0 - ISC 5112 * 5113 * This source code is licensed under the ISC license. 5114 * See the LICENSE file in the root directory of this source tree. 5115 */const xO=S("PaintRoller",[["rect",{width:"16",height:"6",x:"2",y:"2",rx:"2",key:"jcyz7m"}],["path",{d:"M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2",key:"1b9h7c"}],["rect",{width:"4",height:"6",x:"8",y:"16",rx:"1",key:"d6e7yl"}]]);/** 5116 * @license lucide-react v0.462.0 - ISC 5117 * 5118 * This source code is licensed under the ISC license. 5119 * See the LICENSE file in the root directory of this source tree. 5120 */const zp=S("PaintbrushVertical",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v4",key:"qmzblu"}],["path",{d:"M17 2a1 1 0 0 1 1 1v9H6V3a1 1 0 0 1 1-1z",key:"ycvu00"}],["path",{d:"M6 12a1 1 0 0 0-1 1v1a2 2 0 0 0 2 2h2a1 1 0 0 1 1 1v2.9a2 2 0 1 0 4 0V17a1 1 0 0 1 1-1h2a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1",key:"iw4wnp"}]]);/** 5121 * @license lucide-react v0.462.0 - ISC 5122 * 5123 * This source code is licensed under the ISC license. 5124 * See the LICENSE file in the root directory of this source tree. 5125 */const bO=S("Paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",ke
5125y:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);/** 5126 * @license lucide-react v0.462.0 - ISC 5127 * 5128 * This source code is licensed under the ISC license. 5129 * See the LICENSE file in the root directory of this source tree. 5130 */const _y=S("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 5131 * @license lucide-react v0.462.0 - ISC 5132 * 5133 * This source code is licensed under the ISC license. 5134 * See the LICENSE file in the root directory of this source tree. 5135 */const wO=S("PanelBottomClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"m15 8-3 3-3-3",key:"1oxy1z"}]]);/** 5136 * @license lucide-react v0.462.0 - ISC 5137 * 5138 * This source code is licensed under the ISC license. 5139 * See the LICENSE file in the root directory of this source tree. 5140 */const Up=S("PanelBottomDashed",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M14 15h1",key:"171nev"}],["path",{d:"M19 15h2",key:"1vnucp"}],["path",{d:"M3 15h2",key:"8bym0q"}],["path",{d:"M9 15h1",key:"1tg3ks"}]]);/** 5141 * @license lucide-react v0.462.0 - ISC 5142 * 5143 * This source code is licensed under the ISC license. 5144 * See the LICENSE file in the root directory of this source tree. 5145 */const kO=S("PanelBottomOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}]]);/** 5146 * @license lucide-react v0.462.0 - ISC 5147 * 5148 * This source code is licensed under the ISC license. 5149 * See the LICENSE file in the root directory of this source tree. 5150 */const _O=S("PanelBottom",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/** 5151 * @license lucide-react v0.462.0 - ISC 5152 * 5153 * This source code is licensed under the ISC license. 5154 * See the LICENSE file in the root directory of this source tree. 5155 */const qp=S("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/** 5156 * @license lucide-react v0.462.0 - ISC 5157 * 5158 * This source code is licensed under the ISC license. 5159 * See the LICENSE file in the root directory of this source tree. 5160 */const Hp=S("PanelLeftDashed",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 14v1",key:"askpd8"}],["path",{d:"M9 19v2",key:"16tejx"}],["path",{d:"M9 3v2",key:"1noubl"}],["path",{d:"M9 9v1",key:"19ebxg"}]]);/** 5161 * @license lucide-react v0.462.0 - ISC 5162 * 5163 * This source code is licensed under the ISC license. 5164 * See the LICENSE file in the root directory of this source tree. 5165 */const Vp=S("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/** 5166 * @license lucide-react v0.462.0 - ISC 5167 * 5168 * This source code is licensed under the ISC license. 5169 * See the LICENSE file in the root directory of this source tree. 5170 */const Wp=S("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** 5171 * @license lucide-react v0.462.0 - ISC 5172 * 5173 * This source code is licensed under the ISC license. 5174 * See the LICENSE file in the root directory of this source tree. 5175 */const SO=S("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]);/** 5176 * @license lucide-react v0.462.0 - ISC 5177 * 5178 * This source code is licensed under the ISC license. 5179 * See the LICENSE file in the root directory of this source tree.
5180 */const Gp=S("PanelRightDashed",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 14v1",key:"ilsfch"}],["path",{d:"M15 19v2",key:"1fst2f"}],["path",{d:"M15 3v2",key:"z204g4"}],["path",{d:"M15 9v1",key:"z2a8b1"}]]);/** 5181 * @license lucide-react v0.462.0 - ISC 5182 * 5183 * This source code is licensed under the ISC license. 5184 * See the LICENSE file in the root directory of this source tree. 5185 */const jO=S("PanelRightOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]);/** 5186 * @license lucide-react v0.462.0 - ISC 5187 * 5188 * This source code is licensed under the ISC license. 5189 * See the LICENSE file in the root directory of this source tree. 5190 */const EO=S("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/** 5191 * @license lucide-react v0.462.0 - ISC 5192 * 5193 * This source code is licensed under the ISC license. 5194 * See the LICENSE file in the root directory of this source tree. 5195 */const CO=S("PanelTopClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 16 3-3 3 3",key:"1idcnm"}]]);/** 5196 * @license lucide-react v0.462.0 - ISC 5197 * 5198 * This source code is licensed under the ISC license. 5199 * See the LICENSE file in the root directory of this source tree. 5200 */const Kp=S("PanelTopDashed",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M14 9h1",key:"l0svgy"}],["path",{d:"M19 9h2",key:"te2zfg"}],["path",{d:"M3 9h2",key:"1h4ldw"}],["path",{d:"M9 9h1",key:"15jzuz"}]]);/** 5201 * @license lucide-react v0.462.0 - ISC 5202 * 5203 * This source code is licensed under the ISC license. 5204 * See the LICENSE file in the root directory of this source tree. 5205 */const NO=S("PanelTopOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m15 14-3 3-3-3",key:"g215vf"}]]);/** 5206 * @license lucide-react v0.462.0 - ISC 5207 * 5208 * This source code is licensed under the ISC license. 5209 * See the LICENSE file in the root directory of this source tree. 5210 */const TO=S("PanelTop",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]]);/** 5211 * @license lucide-react v0.462.0 - ISC 5212 * 5213 * This source code is licensed under the ISC license. 5214 * See the LICENSE file in the root directory of this source tree. 5215 */const AO=S("PanelsLeftBottom",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M9 15h12",key:"5ijen5"}]]);/** 5216 * @license lucide-react v0.462.0 - ISC 5217 * 5218 * This source code is licensed under the ISC license. 5219 * See the LICENSE file in the root directory of this source tree. 5220 */const MO=S("PanelsRightBottom",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h12",key:"1wkqb3"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/** 5221 * @license lucide-react v0.462.0 - ISC 5222 * 5223 * This source code is licensed under the ISC license. 5224 * See the LICENSE file in the root directory of this source tree. 5225 */const Yp=S("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/** 5226 * @license lucide-react v0.462.0 - ISC 5227 * 5228 * This source code is licensed under the ISC license. 5229 * See the LICENSE file in the root directory of this source tree. 5230 */const IO=S("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/** 5231 * @license lucide-react v0.462.0 - ISC 5232 * 5233 * This source code is licensed under the ISC license. 5234 * See the LICENSE file in the root directory of this source tree. 5235 */const PO=S("Parentheses",[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}]]);/** 5236 * @license lucide-react v0.462.0 - ISC 5237 * 5238 * This source code is licensed under the ISC license. 5239 * See the LICENSE file in the root directory of this source tree. 5240 */const LO=S("ParkingMeter",[["path",{d:"M11 15h2",key:"199qp6"}],["path",{d:"M12 12v3",key:"158kv8"}],["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15.282 19a1 1 0 0 0 .948-.68l2.37-6.988a7 7 0 1 0-13.2 0l2.37 6.988a1 1 0 0 0 .948.68z",key:"1jofit"}],["path",{d:"M9 9a3 3 0 1 1 6 0",key:"jdoeu8"}]]);/** 5241 * @license lucide-react v0.462.0 - ISC 5242 * 5243 * This source code is licensed under the ISC license. 5244 * See the LICENSE file in the root directory of this source tree. 5245 */const OO=S("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/** 5246 * @license lucide-react v0.462.0 - ISC 5247 * 5248 * This source code is licensed under the ISC license. 5249 * See the LICENSE file in the root directory of this source tree. 5250 */const Sy=S("Pause",[["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"}]]);/** 5251 * @license lucide-react v0.462.0 - ISC 5252 * 5253 * This source code is licensed under the ISC license. 5254 * See the LICENSE file in the root directory of this source tree. 5255 */const RO=S("PawPrint",[["circle",{cx:"11",cy:"4",r:"2",key:"vol9p0"}],["circle",{cx:"18",cy:"8",r:"2",key:"17gozi"}],["circle",{cx:"20",cy:"16",r:"2",key:"1v9bxh"}],["path",{d:"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z",key:"1ydw1z"}]]);/** 5256 * @license lucide-react v0.462.0 - ISC 5257 * 5258 * This source code is licensed under the ISC license. 5259 * See the LICENSE file in the root directory of this source tree. 5260 */const DO=S("PcCase",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",key:"1uq1d7"}],["path",{d:"M15 14h.01",key:"1kp3bh"}],["path",{d:"M9 6h6",key:"dgm16u"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/** 5261 * @license lucide-react v0.462.0 - ISC 5262 * 5263 * This source code is licensed under the ISC license. 5264 * See the LICENSE file in the root directory of this source tree. 5265 */const ud=S("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/** 5266 * @license lucide-react v0.462.0 - ISC 5267 * 5268 * This source code is licensed under the ISC license. 5269 * See the LICENSE file in the root directory of this source tree. 5270 */const FO=S("PenOff",[["path",{d:"m10 10-6.157 6.162a2 2 0 0 0-.5.833l-1.322 4.36a.5.5 0 0 0 .622.624l4.358-1.323a2 2 0 0 0 .83-.5L14 13.982",key:"bjo8r8"}],["path",{d:"m12.829 7.172 4.359-4.346a1 1 0 1 1 3.986 3.986l-4.353 4.353",key:"16h5ne"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 5271 * @license lucide-react v0.462.0 - ISC 5272 * 5273 * This source code is licensed under the ISC license. 5274 * See the LICENSE file in the root directory of this source tree. 5275 */const $O=S("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);/** 5276 * @license lucide-react v0.462.0 - ISC 5277 * 5278 * This source code is licensed under the ISC license. 5279 * See the LICENSE file in the root directory of this source tree. 5280 */const dd=S("Pen",[["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"}]]);/** 5281 * @license lucide-react v0.462.0 - ISC 5282 * 5283 * This source code is licensed under the ISC license. 5284 * See the LICENSE file in the root directory of this source tree. 5285 */const BO=S("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]]);/** 5286 * @license lucide-react v0.462.0 - ISC 5287 * 5288 * This source code is licensed under the ISC license. 5289 * See the LICENSE file in the root directory of this source tree. 5290 */const zO=S("PencilOff",[["path",{d:"m10 10-6.157 6.162a2 2 0 0 0-.5.833l-1.322 4.36a.5.5 0 0 0 .622.624l4.358-1.323a2 2 0 0 0 .83-.5L14 13.982",key:"bjo8r8"}],["path",{d:"m12.829 7.172 4.359-4.346a1 1 0 1 1 3.986 3.986l-4.353 4.353",key:"16h5ne"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 5291 * @license lucide-react v0.462.0 - ISC 5292 * 5293 * This source code is licensed under the ISC license. 5294 * See the LICENSE file in the root directory of this source tree. 5295 */const UO=S("PencilRuler",[["path",{d:"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13",key:"orapub"}
5295],["path",{d:"m8 6 2-2",key:"115y1s"}],["path",{d:"m18 16 2-2",key:"ee94s4"}],["path",{d:"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17",key:"cfq27r"}],["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"}]]);/** 5296 * @license lucide-react v0.462.0 - ISC 5297 * 5298 * This source code is licensed under the ISC license. 5299 * See the LICENSE file in the root directory of this source tree. 5300 */const cc=S("Pencil",[["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"}]]);/** 5301 * @license lucide-react v0.462.0 - ISC 5302 * 5303 * This source code is licensed under the ISC license. 5304 * See the LICENSE file in the root directory of this source tree. 5305 */const qO=S("Pentagon",[["path",{d:"M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z",key:"2hea0t"}]]);/** 5306 * @license lucide-react v0.462.0 - ISC 5307 * 5308 * This source code is licensed under the ISC license. 5309 * See the LICENSE file in the root directory of this source tree. 5310 */const HO=S("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/** 5311 * @license lucide-react v0.462.0 - ISC 5312 * 5313 * This source code is licensed under the ISC license. 5314 * See the LICENSE file in the root directory of this source tree. 5315 */const VO=S("PersonStanding",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]]);/** 5316 * @license lucide-react v0.462.0 - ISC 5317 * 5318 * This source code is licensed under the ISC license. 5319 * See the LICENSE file in the root directory of this source tree. 5320 */const WO=S("PhilippinePeso",[["path",{d:"M20 11H4",key:"6ut86h"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"M7 21V4a1 1 0 0 1 1-1h4a1 1 0 0 1 0 12H7",key:"1ana5r"}]]);/** 5321 * @license lucide-react v0.462.0 - ISC 5322 * 5323 * This source code is licensed under the ISC license. 5324 * See the LICENSE file in the root directory of this source tree. 5325 */const GO=S("PhoneCall",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]]);/** 5326 * @license lucide-react v0.462.0 - ISC 5327 * 5328 * This source code is licensed under the ISC license. 5329 * See the LICENSE file in the root directory of this source tree. 5330 */const KO=S("PhoneForwarded",[["polyline",{points:"18 2 22 6 18 10",key:"6vjanh"}],["line",{x1:"14",x2:"22",y1:"6",y2:"6",key:"1jsywh"}],["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 5331 * @license lucide-react v0.462.0 - ISC 5332 * 5333 * This source code is licensed under the ISC license. 5334 * See the LICENSE file in the root directory of this source tree. 5335 */const YO=S("PhoneIncoming",[["polyline",{points:"16 2 16 8 22 8",key:"1ygljm"}],["line",{x1:"22",x2:"16",y1:"2",y2:"8",key:"1xzwqn"}],["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 5336 * @license lucide-react v0.462.0 - ISC 5337 * 5338 * This source code is licensed under the ISC license. 5339 * See the LICENSE file in the root directory of this source tree. 5340 */const XO=S("PhoneMissed",[["line",{x1:"22",x2:"16",y1:"2",y2:"8",key:"1xzwqn"}],["line",{x1:"16",x2:"22",y1:"2",y2:"8",key:"13zxdn"}],["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 5341 * @license lucide-react v0.462.0 - ISC 5342 * 5343 * This source code is licensed under the ISC license. 5344 * See the LICENSE file in the root directory of this source tree. 5345 */const ZO=S("PhoneOff",[["path",{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m
5345-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91",key:"z86iuo"}],["line",{x1:"22",x2:"2",y1:"2",y2:"22",key:"11kh81"}]]);/** 5346 * @license lucide-react v0.462.0 - ISC 5347 * 5348 * This source code is licensed under the ISC license. 5349 * See the LICENSE file in the root directory of this source tree. 5350 */const QO=S("PhoneOutgoing",[["polyline",{points:"22 8 22 2 16 2",key:"1g204g"}],["line",{x1:"16",x2:"22",y1:"8",y2:"2",key:"1ggias"}],["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 5351 * @license lucide-react v0.462.0 - ISC 5352 * 5353 * This source code is licensed under the ISC license. 5354 * See the LICENSE file in the root directory of this source tree. 5355 */const JO=S("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 5356 * @license lucide-react v0.462.0 - ISC 5357 * 5358 * This source code is licensed under the ISC license. 5359 * See the LICENSE file in the root directory of this source tree. 5360 */const eR=S("Pi",[["line",{x1:"9",x2:"9",y1:"4",y2:"20",key:"ovs5a5"}],["path",{d:"M4 7c0-1.7 1.3-3 3-3h13",key:"10pag4"}],["path",{d:"M18 20c-1.7 0-3-1.3-3-3V4",key:"1gaosr"}]]);/** 5361 * @license lucide-react v0.462.0 - ISC 5362 * 5363 * This source code is licensed under the ISC license. 5364 * See the LICENSE file in the root directory of this source tree. 5365 */const tR=S("Piano",[["path",{d:"M18.5 8c-1.4 0-2.6-.8-3.2-2A6.87 6.87 0 0 0 2 9v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-8.5C22 9.6 20.4 8 18.5 8",key:"lag0yf"}],["path",{d:"M2 14h20",key:"myj16y"}],["path",{d:"M6 14v4",key:"9ng0ue"}],["path",{d:"M10 14v4",key:"1v8uk5"}],["path",{d:"M14 14v4",key:"1tqops"}],["path",{d:"M18 14v4",key:"18uqwm"}]]);/** 5366 * @license lucide-react v0.462.0 - ISC 5367 * 5368 * This source code is licensed under the ISC license. 5369 * See the LICENSE file in the root directory of this source tree. 5370 */const rR=S("Pickaxe",[["path",{d:"M14.531 12.469 6.619 20.38a1 1 0 1 1-3-3l7.912-7.912",key:"we99rg"}],["path",{d:"M15.686 4.314A12.5 12.5 0 0 0 5.461 2.958 1 1 0 0 0 5.58 4.71a22 22 0 0 1 6.318 3.393",key:"1w6hck"}],["path",{d:"M17.7 3.7a1 1 0 0 0-1.4 0l-4.6 4.6a1 1 0 0 0 0 1.4l2.6 2.6a1 1 0 0 0 1.4 0l4.6-4.6a1 1 0 0 0 0-1.4z",key:"15hgfx"}],["path",{d:"M19.686 8.314a12.501 12.501 0 0 1 1.356 10.225 1 1 0 0 1-1.751-.119 22 22 0 0 0-3.393-6.319",key:"452b4h"}]]);/** 5371 * @license lucide-react v0.462.0 - ISC 5372 * 5373 * This source code is licensed under the ISC license. 5374 * See the LICENSE file in the root directory of this source tree. 5375 */const nR=S("PictureInPicture2",[["path",{d:"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4",key:"daa4of"}],["rect",{width:"10",height:"7",x:"12",y:"13",rx:"2",key:"1nb8gs"}]]);/** 5376 * @license lucide-react v0.462.0 - ISC 5377 * 5378 * This source code is licensed under the ISC license. 5379 * See the LICENSE file in the root directory of this source tree. 5380 */const aR=S("PictureInPicture",[["path",{d:"M8 4.5v5H3m-1-6 6 6m13 0v-3c0-1.16-.84-2-2-2h-7m-9 9v2c0 1.05.95 2 2 2h3",key:"bcd8fb"}],["rect",{width:"10",height:"7",x:"12",y:"13.5",ry:"2",key:"136fx3"}]]);/** 5381 * @license lucide-react v0.462.0 - ISC 5382 * 5383 * This source code is licensed under the ISC license. 5384 * See the LICENSE file in the root directory of this source tree. 5385 */const iR=S("PiggyBank",[["path",{d:"M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1.5-1-2V5z",key:"1ivx2i"}],["path",{d:"M2 9v1c0 1.1.9 2 2 2h1",key:"nm575m"}],["path",{d:"M16 11h.01",key:"xkw8gn"}]]);/** 5386 * @license lucide-react v0.462.0 - ISC 5387 * 5388 * This source code is licensed under the ISC license. 5389 * See the LICENSE file in the root directory of this source tree. 5390 */const sR=S("PilcrowLeft",[["path",{d:"M14 3v11",key:"mlfb7b"}],["path",{d:"M14 9h-3a3 3 0 0 1 0-6h9",key:"1ulc19"}],["path",{d:"M18 3v11",key:"1phi0r"}],["path",{d:"M22 18H2l4-4",key:"yt65j9"}],["path",{d:"m6 22-4-4",key:"6jgyf5"}]]);/** 5391 * @license lucide-react v0.462.0 - ISC 5392 * 5393 * This source code is licensed under the ISC license. 5394 * See the LICENSE file in the root directory of this source tree. 5395 */const oR=S("PilcrowRight",[["path",{d:"M10 3v11",key:"o3l5kj"}],["path",{d:"M10 9H7a1 1 0 0 1 0-6h8",key:"1wb1nc"}],["path",{d:"M14 3v11",key:"mlfb7b"}],["path",{d:"m18 14 4 4H2",key:"4r8io1"}],["path",{d:"m22 18-4 4",key:"1hjjrd"}]]);/** 5396 * @license lucide-react v0.462.0 - ISC 5397 * 5398 * This source code is licensed under the ISC license. 5399 * See the LICENSE file in the root directory of this source tree. 5400 */const lR=S("Pilcrow",[["path",{d:"M13 4v16",key:"8vvj80"}],["path",{d:"M17 4v16",key:"7dpous"}],["path",{d:"M19 4H9.5a4.5 4.5 0 0 0 0 9H13",key:"sh4n9v"}]]);/** 5401 * @license lucide-react v0.462.0 - ISC 5402 * 5403 * This source code is licensed under the ISC license. 5404 * See the LICENSE file in the root directory of this source tree. 5405 */const cR=S("PillBottle",[["path",{d:"M18 11h-4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h4",key:"17ldeb"}],["path",{d:"M6 7v13a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7",key:"nc37y6"}],["rect",{width:"16",height:"5",x:"4",y:"2",rx:"1",key:"3jeezo"}]]);/** 5406 * @license lucide-react v0.462.0 - ISC 5407 * 5408 * This source code is licensed under the ISC license. 5409 * See the LICENSE file in the root directory of this source tree. 5410 */const uR=S("Pill",[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]]);/** 5411 * @license lucide-react v0.462.0 - ISC 5412 * 5413 * This source code is licensed under the ISC license. 5414 * See the LICENSE file in the root directory of this source tree. 5415 */const dR=S("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);/** 5416 * @license lucide-react v0.462.0 - ISC 5417 * 5418 * This source code is licensed under the ISC license. 5419 * See the LICENSE file in the root directory of this source tree. 5420 */const hR=S("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7
5420a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);/** 5421 * @license lucide-react v0.462.0 - ISC 5422 * 5423 * This source code is licensed under the ISC license. 5424 * See the LICENSE file in the root directory of this source tree. 5425 */const fR=S("Pipette",[["path",{d:"m2 22 1-1h3l9-9",key:"1sre89"}],["path",{d:"M3 21v-3l9-9",key:"hpe2y6"}],["path",{d:"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z",key:"196du1"}]]);/** 5426 * @license lucide-react v0.462.0 - ISC 5427 * 5428 * This source code is licensed under the ISC license. 5429 * See the LICENSE file in the root directory of this source tree. 5430 */const pR=S("Pizza",[["path",{d:"m12 14-1 1",key:"11onhr"}],["path",{d:"m13.75 18.25-1.25 1.42",key:"1yisr3"}],["path",{d:"M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12",key:"1qtqk6"}],["path",{d:"M18.8 9.3a1 1 0 0 0 2.1 7.7",key:"fbbbr2"}],["path",{d:"M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",key:"1hyfdd"}]]);/** 5431 * @license lucide-react v0.462.0 - ISC 5432 * 5433 * This source code is licensed under the ISC license. 5434 * See the LICENSE file in the root directory of this source tree. 5435 */const mR=S("PlaneLanding",[["path",{d:"M2 22h20",key:"272qi7"}],["path",{d:"M3.77 10.77 2 9l2-4.5 1.1.55c.55.28.9.84.9 1.45s.35 1.17.9 1.45L8 8.5l3-6 1.05.53a2 2 0 0 1 1.09 1.52l.72 5.4a2 2 0 0 0 1.09 1.52l4.4 2.2c.42.22.78.55 1.01.96l.6 1.03c.49.88-.06 1.98-1.06 2.1l-1.18.15c-.47.06-.95-.02-1.37-.24L4.29 11.15a2 2 0 0 1-.52-.38Z",key:"1ma21e"}]]);/** 5436 * @license lucide-react v0.462.0 - ISC 5437 * 5438 * This source code is licensed under the ISC license. 5439 * See the LICENSE file in the root directory of this source tree. 5440 */const gR=S("PlaneTakeoff",[["path",{d:"M2 22h20",key:"272qi7"}],["path",{d:"M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z",key:"fkigj9"}]]);/** 5441 * @license lucide-react v0.462.0 - ISC 5442 * 5443 * This source code is licensed under the ISC license. 5444 * See the LICENSE file in the root directory of this source tree. 5445 */const yR=S("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/** 5446 * @license lucide-react v0.462.0 - ISC 5447 * 5448 * This source code is licensed under the ISC license. 5449 * See the LICENSE file in the root directory of this source tree. 5450 */const a0=S("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 5451 * @license lucide-react v0.462.0 - ISC 5452 * 5453 * This source code is licensed under the ISC license. 5454 * See the LICENSE file in the root directory of this source tree. 5455 */const vR=S("Plug2",[["path",{d:"M9 2v6",key:"17ngun"}],["path",{d:"M15 2v6",key:"s7yy2p"}],["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M5 8h14",key:"pcz4l3"}],["path",{d:"M6 11V8h12v3a6 6 0 1 1-12 0Z",key:"wtfw2c"}]]);/** 5456 * @license lucide-react v0.462.0 - ISC 5457 * 5458 * This source code is licensed under the ISC license. 5459 * See the LICENSE file in the root directory of this source tree. 5460 */const Xp=S("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/** 5461 * @license lucide-react v0.462.0 - ISC 5462 * 5463 * This source code is licensed under the ISC license. 5464 * See the LICENSE file in the root directory of this source tree. 5465 */const xR=S("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/** 5466 * @license lucide-react v0.462.0 - ISC 5467 * 5468 * This source code is licensed under the ISC license. 5469 * See the LICENSE file in the root directory of this source tree. 5470 */const uc=S("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 5471 * @license lucide-react v0.462.0 - ISC 5472 * 5473 * This source code is licensed under the ISC license. 5474 * See the LICENSE file in the root directory of this source tree. 5475 */const bR=S("PocketKnife",[["path",{d:"M3 2v1c0 1 2 1 2 2S3 6 3 7s2 1 2 2-2 1-2 2 2 1 2 2",key:"19w3oe"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M20.83 8.83a4 4 0 0 0-5.66-5.66l-12 12a4 4 0 1 0 5.66 5.66Z",key:"6fykxj"}],["path",{d:"M18 11.66V22a4 4 0 0 0 4-4V6",key:"1utzek"}]]);/** 5476 * @license lucide-react v0.462.0 - ISC 5477 * 5478 * This source code is licensed under the ISC license. 5479 * See the LICENSE file in the root directory of this source tree. 5480 */const wR=S("Pocket",[["path",{d:"M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z",key:"1mz881"}],["polyline",{points:"8 10 12 14 16 10",key:"w4mbv5"}]]);/** 5481 * @license lucide-react v0.462.0 - ISC 5482 * 5483 * This source code is licensed under the ISC license. 5484 * See the LICENSE file in the root directory of this source tree. 5485 */const kR=S("Podcast",[["path",{d:"M16.85 18.58a9 9 0 1 0-9.7 0",key:"d71mpg"}],["path",{d:"M8 14a5 5 0 1 1 8 0",key:"fc81rn"}],["circle",{cx:"12",cy:"11",r:"1",key:"1gvufo"}],["path",{d:"M13 17a1 1 0 1 0-2 0l.5 4.5a.5.5 0 1 0 1 0Z",key:"za5kbj"}]]);/** 5486 * @license lucide-react v0.462.0 - ISC 5487 * 5488 * This source code is licensed under the ISC license. 5489 * See the LICENSE file in the root directory of this source tree. 5490 */const _R=S("PointerOff",[["path",{d:"M10 4.5V4a2 2 0 0 0-2.41-1.957",key:"jsi14n"}],["path",{d:"M13.9 8.4a2 2 0 0 0-1.26-1.295",key:"hirc7f"}],["path",{d:"M21.7 16.2A8 8 0 0 0 22 14v-3a2 2 0 1 0-4 0v-1a2 2 0 0 0-3.63-1.158",key:"1jxb2e"}],["path",{d:"m7 15-1.8-1.8a2 2 0 0 0-2.79 2.86L6 19.7a7.74 7.74 0 0 0 6 2.3h2a8 8 0 0 0 5.657-2.343",key:"10r7hm"}],["path",{d:"M6 6v8",key:"tv5xkp"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 5491 * @license lucide-react v0.462.0 - ISC 5492 * 5493 * This source code is licensed under the ISC license. 5494 * See the LICENSE file in the root directory of this source tree. 5495 */const SR=S("Pointer",[["path",{d:"M22 14a8 8 0 0 1-8 8",key:"56vcr3"}],["path",{d:"M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1agjmk"}],["path",{d:"M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1",key:"wdbh2u"}],["path",{d:"M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10",key:"1ibuk9"}],["path",{d:"M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"g6ys72"}]]);/** 5496 * @license lucide-react v0.462.0 - ISC 5497 * 5498 * This source code is licensed under the ISC license. 5499 * See the LICENSE file in the root directory of this source tree. 5500 */const jR=S("Popcorn",[["path",{d:"M18 8a2 2 0 0 0 0-4 2 2 0 0 0-4 0 2 2
55000 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0 0 4",key:"10td1f"}],["path",{d:"M10 22 9 8",key:"yjptiv"}],["path",{d:"m14 22 1-14",key:"8jwc8b"}],["path",{d:"M20 8c.5 0 .9.4.8 1l-2.6 12c-.1.5-.7 1-1.2 1H7c-.6 0-1.1-.4-1.2-1L3.2 9c-.1-.6.3-1 .8-1Z",key:"1qo33t"}]]);/** 5501 * @license lucide-react v0.462.0 - ISC 5502 * 5503 * This source code is licensed under the ISC license. 5504 * See the LICENSE file in the root directory of this source tree. 5505 */const ER=S("Popsicle",[["path",{d:"M18.6 14.4c.8-.8.8-2 0-2.8l-8.1-8.1a4.95 4.95 0 1 0-7.1 7.1l8.1 8.1c.9.7 2.1.7 2.9-.1Z",key:"1o68ps"}],["path",{d:"m22 22-5.5-5.5",key:"17o70y"}]]);/** 5506 * @license lucide-react v0.462.0 - ISC 5507 * 5508 * This source code is licensed under the ISC license. 5509 * See the LICENSE file in the root directory of this source tree. 5510 */const CR=S("PoundSterling",[["path",{d:"M18 7c0-5.333-8-5.333-8 0",key:"1prm2n"}],["path",{d:"M10 7v14",key:"18tmcs"}],["path",{d:"M6 21h12",key:"4dkmi1"}],["path",{d:"M6 13h10",key:"ybwr4a"}]]);/** 5511 * @license lucide-react v0.462.0 - ISC 5512 * 5513 * This source code is licensed under the ISC license. 5514 * See the LICENSE file in the root directory of this source tree. 5515 */const NR=S("PowerOff",[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 5516 * @license lucide-react v0.462.0 - ISC 5517 * 5518 * This source code is licensed under the ISC license. 5519 * See the LICENSE file in the root directory of this source tree. 5520 */const TR=S("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/** 5521 * @license lucide-react v0.462.0 - ISC 5522 * 5523 * This source code is licensed under the ISC license. 5524 * See the LICENSE file in the root directory of this source tree. 5525 */const AR=S("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);/** 5526 * @license lucide-react v0.462.0 - ISC 5527 * 5528 * This source code is licensed under the ISC license. 5529 * See the LICENSE file in the root directory of this source tree. 5530 */const MR=S("PrinterCheck",[["path",{d:"M13.5 22H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v.5",key:"qeb09x"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v2",key:"1md90i"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}]]);/** 5531 * @license lucide-react v0.462.0 - ISC 5532 * 5533 * This source code is licensed under the ISC license. 5534 * See the LICENSE file in the root directory of this source tree. 5535 */const Wd=S("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/** 5536 * @license lucide-react v0.462.0 - ISC 5537 * 5538 * This source code is licensed under the ISC license. 5539 * See the LICENSE file in the root directory of this source tree. 5540 */const IR=S("Projector",[["path",{d:"M5 7 3 5",key:"1yys58"}],["path",{d:"M9 6V3",key:"1ptz9u"}],["path",{d:"m13 7 2-2",key:"1w3vmq"}],["circle",{cx:"9",cy:"13",r:"3",key:"1mma13"}],["path",{d:"M11.83 12H20a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h2.17",key:"2frwzc"}],["path",{d:"M16 16h2",key:"dnq2od"}]]);/** 5541 * @license lucide-react v0.462.0 - ISC 5542 * 5543 * This source code is licensed under the ISC license. 5544 * See the LICENSE file in the root directory of this source tree. 5545 */const PR=S("Proportions",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M12 9v11",key:"1fnkrn"}],["path",{d:"M2 9h13a2 2 0 0 1 2 2v9",key:"11z3ex"}]]);/** 5546 * @license lucide-react v0.462.0 - ISC 5547 * 5548 * This source code is licensed under the ISC license. 5549 * See the LICENSE file in the root directory of this source tree. 5550 */const LR=S("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/** 5551 * @license lucide-react v0.462.0 - ISC 5552 * 5553 * This source code is licensed under the ISC license. 5554 * See the LICENSE file in the root directory of this source tree. 5555 */const OR=S("Pyramid",[["path",{d:"M2.5 16.88a1 1 0 0 1-.32-1.43l9-13.02a1 1 0 0 1 1.64 0l9 13.01a1 1 0 0 1-.32 1.44l-8.51 4.86a2 2 0 0 1-1.98 0Z",key:"aenxs0"}],["path",{d:"M12 2v20",key:"t6zp3m"}]]);/** 5556 * @license lucide-react v0.462.0 - ISC 5557 * 5558 * This source code is licensed under the ISC license. 5559 * See the LICENSE file in the root directory of this source tree. 5560 */const RR=S("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/** 5561 * @license lucide-react v0.462.0 - ISC 5562 * 5563 * This source code is licensed under the ISC license. 5564 * See the LICENSE file in the root directory of this source tree. 5565 */const cw=S("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 5566 * @license lucide-react v0.462.0 - ISC 5567 * 5568 * This source code is licensed under the ISC license. 5569 * See the LICENSE file in the root directory of this source tree. 5570 */const DR=S("Rabbit",[["path",{d:"M13 16a3 3 0 0 1 2.24 5",key:"1epib5"}],["path",{d:"M18 12h.01",key:"yjnet6"}],["path",{d:"M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3",key:"ue9ozu"}
5570],["path",{d:"M20 8.54V4a2 2 0 1 0-4 0v3",key:"49iql8"}],["path",{d:"M7.612 12.524a3 3 0 1 0-1.6 4.3",key:"1e33i0"}]]);/** 5571 * @license lucide-react v0.462.0 - ISC 5572 * 5573 * This source code is licensed under the ISC license. 5574 * See the LICENSE file in the root directory of this source tree. 5575 */const FR=S("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/** 5576 * @license lucide-react v0.462.0 - ISC 5577 * 5578 * This source code is licensed under the ISC license. 5579 * See the LICENSE file in the root directory of this source tree. 5580 */const $R=S("Radiation",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7.5 4.2c-.3-.5-.9-.7-1.3-.4C3.9 5.5 2.3 8.1 2 11c-.1.5.4 1 1 1h5c0-1.5.8-2.8 2-3.4-1.1-1.9-2-3.5-2.5-4.4z",key:"wy49g3"}],["path",{d:"M21 12c.6 0 1-.4 1-1-.3-2.9-1.8-5.5-4.1-7.1-.4-.3-1.1-.2-1.3.3-.6.9-1.5 2.5-2.6 4.3 1.2.7 2 2 2 3.5h5z",key:"vklnvr"}],["path",{d:"M7.5 19.8c-.3.5-.1 1.1.4 1.3 2.6 1.2 5.6 1.2 8.2 0 .5-.2.7-.8.4-1.3-.5-.9-1.4-2.5-2.5-4.3-1.2.7-2.8.7-4 0-1.1 1.8-2 3.4-2.5 4.3z",key:"wkdf1o"}]]);/** 5581 * @license lucide-react v0.462.0 - ISC 5582 * 5583 * This source code is licensed under the ISC license. 5584 * See the LICENSE file in the root directory of this source tree. 5585 */const BR=S("Radical",[["path",{d:"M3 12h3.28a1 1 0 0 1 .948.684l2.298 7.934a.5.5 0 0 0 .96-.044L13.82 4.771A1 1 0 0 1 14.792 4H21",key:"1mqj8i"}]]);/** 5586 * @license lucide-react v0.462.0 - ISC 5587 * 5588 * This source code is licensed under the ISC license. 5589 * See the LICENSE file in the root directory of this source tree. 5590 */const zR=S("RadioReceiver",[["path",{d:"M5 16v2",key:"g5qcv5"}],["path",{d:"M19 16v2",key:"1gbaio"}],["rect",{width:"20",height:"8",x:"2",y:"8",rx:"2",key:"vjsjur"}],["path",{d:"M18 12h.01",key:"yjnet6"}]]);/** 5591 * @license lucide-react v0.462.0 - ISC 5592 * 5593 * This source code is licensed under the ISC license. 5594 * See the LICENSE file in the root directory of this source tree. 5595 */const UR=S("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]]);/** 5596 * @license lucide-react v0.462.0 - ISC 5597 * 5598 * This source code is licensed under the ISC license. 5599 * See the LICENSE file in the root directory of this source tree. 5600 */const qR=S("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** 5601 * @license lucide-react v0.462.0 - ISC 5602 * 5603 * This source code is licensed under the ISC license. 5604 * See the LICENSE file in the root directory of this source tree. 5605 */const HR=S("Radius",[["path",{d:"M20.34 17.52a10 10 0 1 0-2.82 2.82",key:"fydyku"}],["circle",{cx:"19",cy:"19",r:"2",key:"17f5cg"}],["path",{d:"m13.41 13.41 4.18 4.18",key:"1gqbwc"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 5606 * @license lucide-react v0.462.0 - ISC 5607 * 5608 * This source code is licensed under the ISC license. 5609 * See the LICENSE file in the root directory of this source tree. 5610 */const VR=S("RailSymbol",[["path",{d:"M5 15h14",key:"m0yey3"}],["path",{d:"M5 9h14",key:"7tsvo6"}],["path",{d:"m14 20-5-5 6-6-5-5",key:"1jo42i"}]]);/** 5611 * @license lucide-react v0.462.0 - ISC 5612 * 5613 * This source code is licensed under the ISC license. 5614 * See the LICENSE file in the root directory of this source tree. 5615 */const WR=S("Rainbow",[["path",{d:"M22 17a10 10 0 0 0-20 0",key:"ozegv"}],["path",{d:"M6 17a6 6 0 0 1 12 0",key:"5giftw"}],["path",{d:"M10 17a2 2 0 0 1 4 0",key:"gnsikk"}]]);/** 5616 * @license lucide-react v0.462.0 - ISC 5617 * 5618 * This source code is licensed under the ISC license. 5619 * See the LICENSE file in the root directory of this source tree. 5620 */const GR=S("Rat",[["path",{d:"M17 5c0-1.7-1.3-3-3-3s-3 1.3-3 3c0 .8.3 1.5.8 2H11c-3.9 0-7 3.1-7 7c0 2.2 1.8 4 4 4",key:"1wq71c"}],["path",{d:"M16.8 3.9c.3-.3.6-.5 1-.7 1.5-.6 3.3.1 3.9 1.6.6 1.5-.1 3.3-1.6 3.9l1.6 2.8c.2.3.2.7.2 1-.2.8-.9 1.2-1.7 1.1 0 0-1.6-.3-2.7-.6H17c-1.7 0-3 1.3-3 3",key:"1crdmb"}],["path",{d:"M13.2 18a3 3 0 0 0-2.2-5",key:"1ol3lk"}],["path",{d:"M13 22H4a2 2 0 0 1 0-4h12",key:"bt3f23"}],["path",{d:"M16 9h.01",key:"1bdo4e"}]]);/** 5621 * @license lucide-react v0.462.0 - ISC 5622 * 5623 * This source code is licensed under the ISC license. 5624 * See the LICENSE file in the root directory of this source tree. 5625 */const KR=S("Ratio",[["rect",{width:"12",height:"20",x:"6",y:"2",rx:"2",key:"1oxtiu"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]]);/** 5626 * @license lucide-react v0.462.0 - ISC 5627 * 5628 * This source code is licensed under the ISC license. 5629 * See the LICENSE file in the root directory of this source tree. 5630 */const YR=S("ReceiptCent",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M12 6.5v11",key:"ecfhkf"}],["path",{d:"M15 9.4a4 4 0 1 0 0 5.2",key:"1makmb"}]]);/** 5631 * @license lucide-react v0.462.0 - ISC 5632 * 5633 * This source code is licensed under the ISC license. 5634 * See the LICENSE file in the root directory of this source tree. 5635 */const XR=S("ReceiptEuro",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 12h5",key:"1g6qi8"}],["path",{d:"M16 9.5a4 4 0 1 0 0 5.2",key:"b2px4r"}]]);/** 5636 * @license lucide-react v0.462.0 - ISC 5637 * 5638 * This source code is licensed under the ISC license. 5639 * See the LICENSE file in the root directory of this source tree. 5640 */const ZR=S("ReceiptIndianRupee",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 7h8",key:"i86dvs"}],["path",{d:"M12 17.5 8 15h1a4 4 0 0 0 0-8",key:"grpkl4"}],["path",{d:"M8 11h8",key:"vwpz6n"}]]);/** 5641 * @license lucide-react v0.462.0 - ISC 5642 * 5643 * This source code is licensed under the ISC license. 5644 * See the LICENSE file in the root directory of this source tree. 5645 */const QR=S("ReceiptJapaneseYen",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"m12 10 3-3",key:"1mc12w"}],["path",{d:"m9 7 3 3v7.5",key:"39i0xv"}],["path",{d:"M9 11h6",key:"1fldmi"}],["path",{d:"M9 15h6",key:"cctwl0"}]]);/** 5646 * @license lucide-react v0.462.0 - ISC 5647 * 5648 * This source code is licensed under the ISC license. 5649 * See the LICENSE file in the root directory of this source tree. 5650 */const JR=S("ReceiptPoundSterling",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 13h5",key:"1k9z8w"}],["path",{d:"M10 17V9.5a2.5 2.5 0 0 1 5 0",key:"1dzgp0"}],["path",{d:"M8 17h7",key:"8mjdqu"}]]);/** 5651 * @license lucide-react v0.462.0 - ISC 5652 * 5653 * This source code is licensed under the ISC license. 5654 * See the LICENSE file in the root directory of this source tree. 5655 */const eD=S("ReceiptRussianRuble",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M8 15h5",key:"vxg57a"}],["path",{d:"M8 11h5a2 2 0 1 0 0-4h-3v10",key:"1usi5u"}]]);/** 5656 * @license lucide-react v0.462.0 - ISC 5657 * 5658 * This source code is licensed under the ISC license. 5659 * See the LICENSE file in the root directory of this source tree. 5660 */const tD=S("ReceiptSwissFranc",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M10 17V7h5",key:"k7jq18"}],["path",{d:"M10 11h4",key:"1i0mka"}],["path",{d:"M8 15h5",key:"vxg57a"}]]);/** 5661 * @license lucide-react v0.462.0 - ISC 5662 * 5663 * This source code is licensed under the ISC license. 5664 * See the LICENSE file in the root directory of this source tree. 5665 */const rD=S("ReceiptText",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}
5665],["path",{d:"M13 16H8",key:"wsln4y"}]]);/** 5666 * @license lucide-react v0.462.0 - ISC 5667 * 5668 * This source code is licensed under the ISC license. 5669 * See the LICENSE file in the root directory of this source tree. 5670 */const nD=S("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);/** 5671 * @license lucide-react v0.462.0 - ISC 5672 * 5673 * This source code is licensed under the ISC license. 5674 * See the LICENSE file in the root directory of this source tree. 5675 */const Zp=S("RectangleEllipsis",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]);/** 5676 * @license lucide-react v0.462.0 - ISC 5677 * 5678 * This source code is licensed under the ISC license. 5679 * See the LICENSE file in the root directory of this source tree. 5680 */const aD=S("RectangleHorizontal",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]]);/** 5681 * @license lucide-react v0.462.0 - ISC 5682 * 5683 * This source code is licensed under the ISC license. 5684 * See the LICENSE file in the root directory of this source tree. 5685 */const iD=S("RectangleVertical",[["rect",{width:"12",height:"20",x:"6",y:"2",rx:"2",key:"1oxtiu"}]]);/** 5686 * @license lucide-react v0.462.0 - ISC 5687 * 5688 * This source code is licensed under the ISC license. 5689 * See the LICENSE file in the root directory of this source tree. 5690 */const sD=S("Recycle",[["path",{d:"M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5",key:"x6z5xu"}],["path",{d:"M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12",key:"1x4zh5"}],["path",{d:"m14 16-3 3 3 3",key:"f6jyew"}],["path",{d:"M8.293 13.596 7.196 9.5 3.1 10.598",key:"wf1obh"}],["path",{d:"m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843",key:"9tzpgr"}],["path",{d:"m13.378 9.633 4.096 1.098 1.097-4.096",key:"1oe83g"}]]);/** 5691 * @license lucide-react v0.462.0 - ISC 5692 * 5693 * This source code is licensed under the ISC license. 5694 * See the LICENSE file in the root directory of this source tree. 5695 */const oD=S("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/** 5696 * @license lucide-react v0.462.0 - ISC 5697 * 5698 * This source code is licensed under the ISC license. 5699 * See the LICENSE file in the root directory of this source tree. 5700 */const lD=S("RedoDot",[["circle",{cx:"12",cy:"17",r:"1",key:"1ixnty"}],["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]]);/** 5701 * @license lucide-react v0.462.0 - ISC 5702 * 5703 * This source code is licensed under the ISC license. 5704 * See the LICENSE file in the root directory of this source tree. 5705 */const cD=S("Redo",[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]]);/** 5706 * @license lucide-react v0.462.0 - ISC 5707 * 5708 * This source code is licensed under the ISC license. 5709 * See the LICENSE file in the root directory of this source tree. 5710 */const uD=S("RefreshCcwDot",[["path",{d:"M3 2v6h6",key:"18ldww"}],["path",{d:"M21 12A9 9 0 0 0 6 5.3L3 8",key:"1pbrqz"}],["path",{d:"M21 22v-6h-6",key:"usdfbe"}],["path",{d:"M3 12a9 9 0 0 0 15 6.7l3-2.7",key:"1hosoe"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/** 5711 * @license lucide-react v0.462.0 - ISC 5712 * 5713 * This source code is licensed under the ISC license. 5714 * See the LICENSE file in the root directory of this source tree. 5715 */const dD=S("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/** 5716 * @license lucide-react v0.462.0 - ISC 5717 * 5718 * This source code is licensed under the ISC license. 5719 * See the LICENSE file in the root directory of this source tree. 5720 */const hD=S("RefreshCwOff",[["path",{d:"M21 8L18.74 5.74A9.75 9.75 0 0 0 12 3C11 3 10.03 3.16 9.13 3.47",key:"1krf6h"}],["path",{d:"M8 16H3v5",key:"1cv678"}],["path",{d:"M3 12C3 9.51 4 7.26 5.64 5.64",key:"ruvoct"}],["path",{d:"m3 16 2.26 2.26A9.75 9.75 0 0 0 12 21c2.49 0 4.74-1 6.36-2.64",key:"19q130"}],["path",{d:"M21 12c0 1-.16 1.97-.47 2.87",key:"4w8emr"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M22 22 2 2",key:"1r8tn9"}]]);/** 5721 * @license lucide-react v0.462.0 - ISC 5722 * 5723 * This source code is licensed under the ISC license. 5724 * See the LICENSE file in the root directory of this source tree. 5725 */const Vn=S("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 5726 * @license lucide-react v0.462.0 - ISC 5727 * 5728 * This source code is licensed under the ISC license. 5729 * See the LICENSE file in the root directory of this source tree. 5730 */const fD=S("Refrigerator",[["path",{d:"M5 6a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6Z",key:"fpq118"}
5730],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M15 7v6",key:"1nx30x"}]]);/** 5731 * @license lucide-react v0.462.0 - ISC 5732 * 5733 * This source code is licensed under the ISC license. 5734 * See the LICENSE file in the root directory of this source tree. 5735 */const pD=S("Regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]);/** 5736 * @license lucide-react v0.462.0 - ISC 5737 * 5738 * This source code is licensed under the ISC license. 5739 * See the LICENSE file in the root directory of this source tree. 5740 */const mD=S("RemoveFormatting",[["path",{d:"M4 7V4h16v3",key:"9msm58"}],["path",{d:"M5 20h6",key:"1h6pxn"}],["path",{d:"M13 4 8 20",key:"kqq6aj"}],["path",{d:"m15 15 5 5",key:"me55sn"}],["path",{d:"m20 15-5 5",key:"11p7ol"}]]);/** 5741 * @license lucide-react v0.462.0 - ISC 5742 * 5743 * This source code is licensed under the ISC license. 5744 * See the LICENSE file in the root directory of this source tree. 5745 */const gD=S("Repeat1",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}],["path",{d:"M11 10h1v4",key:"70cz1p"}]]);/** 5746 * @license lucide-react v0.462.0 - ISC 5747 * 5748 * This source code is licensed under the ISC license. 5749 * See the LICENSE file in the root directory of this source tree. 5750 */const yD=S("Repeat2",[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]]);/** 5751 * @license lucide-react v0.462.0 - ISC 5752 * 5753 * This source code is licensed under the ISC license. 5754 * See the LICENSE file in the root directory of this source tree. 5755 */const uw=S("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/** 5756 * @license lucide-react v0.462.0 - ISC 5757 * 5758 * This source code is licensed under the ISC license. 5759 * See the LICENSE file in the root directory of this source tree. 5760 */const vD=S("ReplaceAll",[["path",{d:"M14 14a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2",key:"1yyzbs"}],["path",{d:"M14 4a2 2 0 0 1 2-2",key:"1w2hp7"}],["path",{d:"M16 10a2 2 0 0 1-2-2",key:"shjach"}],["path",{d:"M20 14a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2",key:"zfj4xr"}],["path",{d:"M20 2a2 2 0 0 1 2 2",key:"188mtx"}],["path",{d:"M22 8a2 2 0 0 1-2 2",key:"ddf4tu"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a 3 3 0 0 1 3-3h1",key:"1ageje"}],["rect",{x:"2",y:"14",width:"8",height:"8",rx:"2",key:"4rksxw"}]]);/** 5761 * @license lucide-react v0.462.0 - ISC 5762 * 5763 * This source code is licensed under the ISC license. 5764 * See the LICENSE file in the root directory of this source tree. 5765 */const xD=S("Replace",[["path",{d:"M14 4a2 2 0 0 1 2-2",key:"1w2hp7"}],["path",{d:"M16 10a2 2 0 0 1-2-2",key:"shjach"}],["path",{d:"M20 2a2 2 0 0 1 2 2",key:"188mtx"}],["path",{d:"M22 8a2 2 0 0 1-2 2",key:"ddf4tu"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a3 3 0 0 1 3-3h1",key:"3y3t5z"}],["rect",{x:"2",y:"14",width:"8",height:"8",rx:"2",key:"4rksxw"}]]);/** 5766 * @license lucide-react v0.462.0 - ISC 5767 * 5768 * This source code is licensed under the ISC license. 5769 * See the LICENSE file in the root directory of this source tree. 5770 */const bD=S("ReplyAll",[["polyline",{points:"7 17 2 12 7 7",key:"t83bqg"}],["polyline",{points:"12 17 7 12 12 7",key:"1g4ajm"}],["path",{d:"M22 18v-2a4 4 0 0 0-4-4H7",key:"1fcyog"}]]);/** 5771 * @license lucide-react v0.462.0 - ISC 5772 * 5773 * This source code is licensed under the ISC license. 5774 * See the LICENSE file in the root directory of this source tree. 5775 */const wD=S("Reply",[["polyline",{points:"9 17 4 12 9 7",key:"hvgpf2"}],["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}]]);/** 5776 * @license lucide-react v0.462.0 - ISC 5777 * 5778 * This source code is licensed under the ISC license. 5779 * See the LICENSE file in the root directory of this source tree. 5780 */const kD=S("Rewind",[["polygon",{points:"11 19 2 12 11 5 11 19",key:"14yba5"}],["polygon",{points:"22 19 13 12 22 5 22 19",key:"1pi1cj"}]]);/** 5781 * @license lucide-react v0.462.0 - ISC 5782 * 5783 * This source code is licensed under the ISC license. 5784 * See the LICENSE file in the root directory of this source tree. 5785 */const _D=S("Ribbon",[["path",{d:"M12 11.22C11 9.997 10 9 10 8a2 2 0 0 1 4 0c0 1-.998 2.002-2.01 3.22",key:"1rnhq3"}],["path",{d:"m12 18 2.57-3.5",key:"116vt7"}],["path",{d:"M6.243 9.016a7 7 0 0 1 11.507-.009",key:"10dq0b"}],["path",{d:"M9.35 14.53 12 11.22",key:"tdsyp2"}],["path",{d:"M9.35 14.53C7.728 12.246 6 10.221 6 7a6 5 0 0 1 12 0c-.005 3.22-1.778 5.235-3.43 7.5l3.557 4.527a1 1 0 0 1-.203 1.43l-1.894 1.36a1 1 0 0 1-1.384-.215L12 18l-2.679 3.593a1 1 0 0 1-1.39.213l-1.865-1.353a1 1 0 0 1-.203-1.422z",key:"nmifey"}]]);/** 5786 * @license lucide-react v0.462.0 - ISC 5787 * 5788 * This source code is licensed under the ISC license. 5789 * See the LICENSE file in the root directory of this source tree. 5790 */const SD=S("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
5790kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 5791 * @license lucide-react v0.462.0 - ISC 5792 * 5793 * This source code is licensed under the ISC license. 5794 * See the LICENSE file in the root directory of this source tree. 5795 */const jD=S("RockingChair",[["polyline",{points:"3.5 2 6.5 12.5 18 12.5",key:"y3iy52"}],["line",{x1:"9.5",x2:"5.5",y1:"12.5",y2:"20",key:"19vg5i"}],["line",{x1:"15",x2:"18.5",y1:"12.5",y2:"20",key:"1inpmv"}],["path",{d:"M2.75 18a13 13 0 0 0 18.5 0",key:"1nquas"}]]);/** 5796 * @license lucide-react v0.462.0 - ISC 5797 * 5798 * This source code is licensed under the ISC license. 5799 * See the LICENSE file in the root directory of this source tree. 5800 */const ED=S("RollerCoaster",[["path",{d:"M6 19V5",key:"1r845m"}],["path",{d:"M10 19V6.8",key:"9j2tfs"}],["path",{d:"M14 19v-7.8",key:"10s8qv"}],["path",{d:"M18 5v4",key:"1tajlv"}],["path",{d:"M18 19v-6",key:"ielfq3"}],["path",{d:"M22 19V9",key:"158nzp"}],["path",{d:"M2 19V9a4 4 0 0 1 4-4c2 0 4 1.33 6 4s4 4 6 4a4 4 0 1 0-3-6.65",key:"1930oh"}]]);/** 5801 * @license lucide-react v0.462.0 - ISC 5802 * 5803 * This source code is licensed under the ISC license. 5804 * See the LICENSE file in the root directory of this source tree. 5805 */const Qp=S("Rotate3d",[["path",{d:"M16.466 7.5C15.643 4.237 13.952 2 12 2 9.239 2 7 6.477 7 12s2.239 10 5 10c.342 0 .677-.069 1-.2",key:"10n0gc"}],["path",{d:"m15.194 13.707 3.814 1.86-1.86 3.814",key:"16shm9"}],["path",{d:"M19 15.57c-1.804.885-4.274 1.43-7 1.43-5.523 0-10-2.239-10-5s4.477-5 10-5c4.838 0 8.873 1.718 9.8 4",key:"1lxi77"}]]);/** 5806 * @license lucide-react v0.462.0 - ISC 5807 * 5808 * This source code is licensed under the ISC license. 5809 * See the LICENSE file in the root directory of this source tree. 5810 */const CD=S("RotateCcwSquare",[["path",{d:"M20 9V7a2 2 0 0 0-2-2h-6",key:"19z8uc"}],["path",{d:"m15 2-3 3 3 3",key:"177bxs"}],["path",{d:"M20 13v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2",key:"d36hnl"}]]);/** 5811 * @license lucide-react v0.462.0 - ISC 5812 * 5813 * This source code is licensed under the ISC license. 5814 * See the LICENSE file in the root directory of this source tree. 5815 */const jy=S("RotateCcw",[["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"}]]);/** 5816 * @license lucide-react v0.462.0 - ISC 5817 * 5818 * This source code is licensed under the ISC license. 5819 * See the LICENSE file in the root directory of this source tree. 5820 */const ND=S("RotateCwSquare",[["path",{d:"M12 5H6a2 2 0 0 0-2 2v3",key:"l96uqu"}],["path",{d:"m9 8 3-3-3-3",key:"1gzgc3"}],["path",{d:"M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2",key:"1w2k5h"}]]);/** 5821 * @license lucide-react v0.462.0 - ISC 5822 * 5823 * This source code is licensed under the ISC license. 5824 * See the LICENSE file in the root directory of this source tree. 5825 */const TD=S("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/** 5826 * @license lucide-react v0.462.0 - ISC 5827 * 5828 * This source code is licensed under the ISC license. 5829 * See the LICENSE file in the root directory of this source tree. 5830 */const AD=S("RouteOff",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5c.4 0 .9-.1 1.3-.2",key:"1effex"}],["path",{d:"M5.2 5.2A3.5 3.53 0 0 0 6.5 12H12",key:"k9y2ds"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M21 15.3a3.5 3.5 0 0 0-3.3-3.3",key:"11nlu2"}],["path",{d:"M15 5h-4.3",key:"6537je"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/** 5831 * @license lucide-react v0.462.0 - ISC 5832 * 5833 * This source code is licensed under the ISC license. 5834 * See the LICENSE file in the root directory of this source tree. 5835 */const MD=S("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/** 5836 * @license lucide-react v0.462.0 - ISC 5837 * 5838 * This source code is licensed under the ISC license. 5839 * See the LICENSE file in the root directory of this source tree. 5840 */const ID=S("Router",[["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6.01 18H6",key:"19vcac"}],["path",{d:"M10.01 18H10",key:"uamcmx"}],["path",{d:"M15 10v4",key:"qjz1xs"}],["path",{d:"M17.84 7.17a4 4 0 0 0-5.66 0",key:"1rif40"}],["path",{d:"M20.66 4.34a8 8 0 0 0-11.31 0",key:"6a5xfq"}]]);/** 5841 * @license lucide-react v0.462.0 - ISC 5842 * 5843 * This source code is licensed under the ISC license. 5844 * See the LICENSE file in the root directory of this source tree. 5845 */const Jp=S("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);/** 5846 * @license lucide-react v0.462.0 - ISC 5847 * 5848 * This source code is licensed under the ISC license. 5849 * See the LICENSE file in the root directory of this source tree. 5850 */const em=S("Rows3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}
5850],["path",{d:"M21 15H3",key:"9uk58r"}]]);/** 5851 * @license lucide-react v0.462.0 - ISC 5852 * 5853 * This source code is licensed under the ISC license. 5854 * See the LICENSE file in the root directory of this source tree. 5855 */const PD=S("Rows4",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 7.5H3",key:"1hm9pq"}],["path",{d:"M21 12H3",key:"2avoz0"}],["path",{d:"M21 16.5H3",key:"n7jzkj"}]]);/** 5856 * @license lucide-react v0.462.0 - ISC 5857 * 5858 * This source code is licensed under the ISC license. 5859 * See the LICENSE file in the root directory of this source tree. 5860 */const LD=S("Rss",[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]);/** 5861 * @license lucide-react v0.462.0 - ISC 5862 * 5863 * This source code is licensed under the ISC license. 5864 * See the LICENSE file in the root directory of this source tree. 5865 */const OD=S("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/** 5866 * @license lucide-react v0.462.0 - ISC 5867 * 5868 * This source code is licensed under the ISC license. 5869 * See the LICENSE file in the root directory of this source tree. 5870 */const RD=S("RussianRuble",[["path",{d:"M6 11h8a4 4 0 0 0 0-8H9v18",key:"18ai8t"}],["path",{d:"M6 15h8",key:"1y8f6l"}]]);/** 5871 * @license lucide-react v0.462.0 - ISC 5872 * 5873 * This source code is licensed under the ISC license. 5874 * See the LICENSE file in the root directory of this source tree. 5875 */const DD=S("Sailboat",[["path",{d:"M22 18H2a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4Z",key:"1404fh"}],["path",{d:"M21 14 10 2 3 14h18Z",key:"1nzg7v"}],["path",{d:"M10 2v16",key:"1labyt"}]]);/** 5876 * @license lucide-react v0.462.0 - ISC 5877 * 5878 * This source code is licensed under the ISC license. 5879 * See the LICENSE file in the root directory of this source tree. 5880 */const FD=S("Salad",[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]]);/** 5881 * @license lucide-react v0.462.0 - ISC 5882 * 5883 * This source code is licensed under the ISC license. 5884 * See the LICENSE file in the root directory of this source tree. 5885 */const $D=S("Sandwich",[["path",{d:"m2.37 11.223 8.372-6.777a2 2 0 0 1 2.516 0l8.371 6.777",key:"f1wd0e"}],["path",{d:"M21 15a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-5.25",key:"1pfu07"}],["path",{d:"M3 15a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9",key:"1oq9qw"}],["path",{d:"m6.67 15 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2",key:"1fnwu5"}],["rect",{width:"20",height:"4",x:"2",y:"11",rx:"1",key:"itshg"}]]);/** 5886 * @license lucide-react v0.462.0 - ISC 5887 * 5888 * This source code is licensed under the ISC license. 5889 * See the LICENSE file in the root directory of this source tree. 5890 */const BD=S("SatelliteDish",[["path",{d:"M4 10a7.31 7.31 0 0 0 10 10Z",key:"1fzpp3"}],["path",{d:"m9 15 3-3",key:"88sc13"}],["path",{d:"M17 13a6 6 0 0 0-6-6",key:"15cc6u"}],["path",{d:"M21 13A10 10 0 0 0 11 3",key:"11nf8s"}]]);/** 5891 * @license lucide-react v0.462.0 - ISC 5892 * 5893 * This source code is licensed under the ISC license. 5894 * See the LICENSE file in the root directory of this source tree. 5895 */const zD=S("Satellite",[["path",{d:"M13 7 9 3 5 7l4 4",key:"vyckw6"}],["path",{d:"m17 11 4 4-4 4-4-4",key:"rchckc"}],["path",{d:"m8 12 4 4 6-6-4-4Z",key:"1sshf7"}],["path",{d:"m16 8 3-3",key:"x428zp"}],["path",{d:"M9 21a6 6 0 0 0-6-6",key:"1iajcf"}]]);/** 5896 * @license lucide-react v0.462.0 - ISC 5897 * 5898 * This source code is licensed under the ISC license. 5899 * See the LICENSE file in the root directory of this source tree. 5900 */const UD=S("SaveAll",[["path",{d:"M10 2v3a1 1 0 0 0 1 1h5",key:"1xspal"}],["path",{d:"M18 18v-6a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6",key:"1ra60u"}],["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"M8 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9.172a2 2 0 0 1 1.414.586l2.828 2.828A2 2 0 0 1 22 6.828V16a2 2 0 0 1-2.01 2z",key:"1yve0x"}]]);/** 5901 * @license lucide-react v0.462.0 - ISC 5902 * 5903 * This source code is licensed under the ISC license. 5904 * See the LICENSE file in the root directory of this source tree. 5905 */const qD=S("SaveOff",[["path",{d:"M13 13H8a1 1 0 0 0-1 1v7",key:"h8g396"}],["path",{d:"M14 8h1",key:"1lfen6"}],["path",{d:"M17 21v-4",key:"1yknxs"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M20.41 20.41A2 2 0 0 1 19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 .59-1.41",key:"1t4vdl"}],["path",{d:"M29.5 11.5s5 5 4 5",key:"zzn4i6"}],["path",{d:"M9 3h6.2a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V15",key:"24cby9"}]]);/** 5906 * @license lucide-react v0.462.0 - ISC 5907 * 5908 * This source code is licensed under the ISC license. 5909 * See the LICENSE file in the root directory of this source tree. 5910 */const HD=S("Save",[["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"}]]);/** 5911 * @license lucide-react v0.462.0 - ISC 5912 * 5913 * This source code is licensed under the ISC license. 5914 * See the LICENSE file in the root directory of this source tree. 5915 */const tm=S("Scale3d",[["path",{d:"M5 7v11a1 1 0 0 0 1 1h11",key:"13dt1j"}],["path",{d:"M5.293 18.707 11 13",key:"ezgbsx"}],["circle",{cx:"19",cy:"19",r:"2",key:"17f5cg"}],["circle",{cx:"5",cy:"5",r:"2",key:"1gwv83"}]]);/** 5916 * @license lucide-react v0.462.0 - ISC 5917 * 5918 * This source code is licensed under the ISC license. 5919 * See the LICENSE file in the root directory of this source tree. 5920 */const VD=S("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}
5920],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/** 5921 * @license lucide-react v0.462.0 - ISC 5922 * 5923 * This source code is licensed under the ISC license. 5924 * See the LICENSE file in the root directory of this source tree. 5925 */const WD=S("Scaling",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M14 15H9v-5",key:"pi4jk9"}],["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M21 3 9 15",key:"15kdhq"}]]);/** 5926 * @license lucide-react v0.462.0 - ISC 5927 * 5928 * This source code is licensed under the ISC license. 5929 * See the LICENSE file in the root directory of this source tree. 5930 */const GD=S("ScanBarcode",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 7v10",key:"23sfjj"}],["path",{d:"M12 7v10",key:"jspqdw"}],["path",{d:"M17 7v10",key:"578dap"}]]);/** 5931 * @license lucide-react v0.462.0 - ISC 5932 * 5933 * This source code is licensed under the ISC license. 5934 * See the LICENSE file in the root directory of this source tree. 5935 */const KD=S("ScanEye",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]);/** 5936 * @license lucide-react v0.462.0 - ISC 5937 * 5938 * This source code is licensed under the ISC license. 5939 * See the LICENSE file in the root directory of this source tree. 5940 */const YD=S("ScanFace",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 9h.01",key:"x1ddxp"}]]);/** 5941 * @license lucide-react v0.462.0 - ISC 5942 * 5943 * This source code is licensed under the ISC license. 5944 * See the LICENSE file in the root directory of this source tree. 5945 */const XD=S("ScanLine",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]]);/** 5946 * @license lucide-react v0.462.0 - ISC 5947 * 5948 * This source code is licensed under the ISC license. 5949 * See the LICENSE file in the root directory of this source tree. 5950 */const ZD=S("ScanQrCode",[["path",{d:"M17 12v4a1 1 0 0 1-1 1h-4",key:"uk4fdo"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M17 8V7",key:"q2g9wo"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M7 17h.01",key:"19xn7k"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["rect",{x:"7",y:"7",width:"5",height:"5",rx:"1",key:"m9kyts"}]]);/** 5951 * @license lucide-react v0.462.0 - ISC 5952 * 5953 * This source code is licensed under the ISC license. 5954 * See the LICENSE file in the root directory of this source tree. 5955 */const QD=S("ScanSearch",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);/** 5956 * @license lucide-react v0.462.0 - ISC 5957 * 5958 * This source code is licensed under the ISC license. 5959 * See the LICENSE file in the root directory of this source tree. 5960 */const JD=S("ScanText",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]]);/** 5961 * @license lucide-react v0.462.0 - ISC 5962 * 5963 * This source code is licensed under the ISC license. 5964 * See the LICENSE file in the root directory of this source tree. 5965 */const eF=S("Scan",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/** 5966 * @license lucide-react v0.462.0 - ISC 5967 * 5968 * This source code is licensed under the ISC license. 5969 * See the LICENSE file in the root directory of this source tree. 5970 */const tF=S("School",[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2ml
5970k"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]]);/** 5971 * @license lucide-react v0.462.0 - ISC 5972 * 5973 * This source code is licensed under the ISC license. 5974 * See the LICENSE file in the root directory of this source tree. 5975 */const rF=S("ScissorsLineDashed",[["path",{d:"M5.42 9.42 8 12",key:"12pkuq"}],["circle",{cx:"4",cy:"8",r:"2",key:"107mxr"}],["path",{d:"m14 6-8.58 8.58",key:"gvzu5l"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"M10.8 14.8 14 18",key:"ax7m9r"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]]);/** 5976 * @license lucide-react v0.462.0 - ISC 5977 * 5978 * This source code is licensed under the ISC license. 5979 * See the LICENSE file in the root directory of this source tree. 5980 */const nF=S("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/** 5981 * @license lucide-react v0.462.0 - ISC 5982 * 5983 * This source code is licensed under the ISC license. 5984 * See the LICENSE file in the root directory of this source tree. 5985 */const aF=S("ScreenShareOff",[["path",{d:"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3",key:"i8wdob"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m22 3-5 5",key:"12jva0"}],["path",{d:"m17 3 5 5",key:"k36vhe"}]]);/** 5986 * @license lucide-react v0.462.0 - ISC 5987 * 5988 * This source code is licensed under the ISC license. 5989 * See the LICENSE file in the root directory of this source tree. 5990 */const iF=S("ScreenShare",[["path",{d:"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3",key:"i8wdob"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m17 8 5-5",key:"fqif7o"}],["path",{d:"M17 3h5v5",key:"1o3tu8"}]]);/** 5991 * @license lucide-react v0.462.0 - ISC 5992 * 5993 * This source code is licensed under the ISC license. 5994 * See the LICENSE file in the root directory of this source tree. 5995 */const sF=S("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** 5996 * @license lucide-react v0.462.0 - ISC 5997 * 5998 * This source code is licensed under the ISC license. 5999 * See the LICENSE file in the root directory of this source tree. 6000 */const oF=S("Scroll",[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** 6001 * @license lucide-react v0.462.0 - ISC 6002 * 6003 * This source code is licensed under the ISC license. 6004 * See the LICENSE file in the root directory of this source tree. 6005 */const lF=S("SearchCheck",[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 6006 * @license lucide-react v0.462.0 - ISC 6007 * 6008 * This source code is licensed under the ISC license. 6009 * See the LICENSE file in the root directory of this source tree. 6010 */const cF=S("SearchCode",[["path",{d:"m13 13.5 2-2.5-2-2.5",key:"1rvxrh"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}],["path",{d:"M9 8.5 7 11l2 2.5",key:"6ffwbx"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/** 6011 * @license lucide-react v0.462.0 - ISC 6012 * 6013 * This source code is licensed under the ISC license. 6014 * See the LICENSE file in the root directory of this source tree. 6015 */const uF=S("SearchSlash",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 6016 * @license lucide-react v0.462.0 - ISC 6017 * 6018 * This source code is licensed under the ISC license. 6019 * See the LICENSE file in the root directory of this source tree. 6020 */const dF=S("SearchX",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 6021 * @license lucide-react v0.462.0 - ISC 6022 * 6023 * This source code is licensed under the ISC license. 6024 * See the LICENSE file in the root directory of this source tree. 6025 */const go=S("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 6026 * @license lucide-react v0.462.0 - ISC 6027 * 6028 * This source code is licensed under the ISC license. 6029 * See the LICENSE file in the root directory of this source tree. 6030 */const hF=S("Section",[["path",{d:"M16 5a4 3 0 0 0-8 0c0 4 8 3 8 7a4 3 0 0 1-8 0",key:"vqan6v"}],["path",{d:"M8 19a4 3 0 0 0 8 0c0-4-8-3-8-7a4 3 0 0 1 8 0",key:"wdjd8o"}]]);/** 6031 * @license lucide-react v0.462.0 - ISC 6032 * 6033 * This source code is licensed under the ISC license. 6034 * See the LICENSE file in the root directory of this source tree. 6035 */const rm=S("SendHorizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/** 6036 * @license lucide-react v0.462.0 - ISC 6037 * 6038 * This source code is licensed under the ISC license. 6039 * See the LICENSE file in the root directory of this source tree.
6040 */const fF=S("SendToBack",[["rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",key:"1b0bso"}],["rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",key:"1x09vl"}],["path",{d:"M7 14v1a2 2 0 0 0 2 2h1",key:"pao6x6"}],["path",{d:"M14 7h1a2 2 0 0 1 2 2v1",key:"19tdru"}]]);/** 6041 * @license lucide-react v0.462.0 - ISC 6042 * 6043 * This source code is licensed under the ISC license. 6044 * See the LICENSE file in the root directory of this source tree. 6045 */const Gd=S("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 6046 * @license lucide-react v0.462.0 - ISC 6047 * 6048 * This source code is licensed under the ISC license. 6049 * See the LICENSE file in the root directory of this source tree. 6050 */const pF=S("SeparatorHorizontal",[["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["polyline",{points:"8 8 12 4 16 8",key:"zo8t4w"}],["polyline",{points:"16 16 12 20 8 16",key:"1oyrid"}]]);/** 6051 * @license lucide-react v0.462.0 - ISC 6052 * 6053 * This source code is licensed under the ISC license. 6054 * See the LICENSE file in the root directory of this source tree. 6055 */const mF=S("SeparatorVertical",[["line",{x1:"12",x2:"12",y1:"3",y2:"21",key:"1efggb"}],["polyline",{points:"8 8 4 12 8 16",key:"bnfmv4"}],["polyline",{points:"16 16 20 12 16 8",key:"u90052"}]]);/** 6056 * @license lucide-react v0.462.0 - ISC 6057 * 6058 * This source code is licensed under the ISC license. 6059 * See the LICENSE file in the root directory of this source tree. 6060 */const gF=S("ServerCog",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m15.7 13.4-.9-.3",key:"1jwmzr"}],["path",{d:"m9.2 10.9-.9-.3",key:"qapnim"}],["path",{d:"m10.6 15.7.3-.9",key:"quwk0k"}],["path",{d:"m13.6 15.7-.4-1",key:"cb9xp7"}],["path",{d:"m10.8 9.3-.4-1",key:"1uaiz5"}],["path",{d:"m8.3 13.6 1-.4",key:"s6srou"}],["path",{d:"m14.7 10.8 1-.4",key:"4d31cq"}],["path",{d:"m13.4 8.3-.3.9",key:"1bm987"}]]);/** 6061 * @license lucide-react v0.462.0 - ISC 6062 * 6063 * This source code is licensed under the ISC license. 6064 * See the LICENSE file in the root directory of this source tree. 6065 */const yF=S("ServerCrash",[["path",{d:"M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2",key:"4b9dqc"}],["path",{d:"M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2",key:"22nnkd"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m13 6-4 6h6l-4 6",key:"14hqih"}]]);/** 6066 * @license lucide-react v0.462.0 - ISC 6067 * 6068 * This source code is licensed under the ISC license. 6069 * See the LICENSE file in the root directory of this source tree. 6070 */const vF=S("ServerOff",[["path",{d:"M7 2h13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-5",key:"bt2siv"}],["path",{d:"M10 10 2.5 2.5C2 2 2 2.5 2 5v3a2 2 0 0 0 2 2h6z",key:"1hjrv1"}],["path",{d:"M22 17v-1a2 2 0 0 0-2-2h-1",key:"1iynyr"}],["path",{d:"M4 14a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16.5l1-.5.5.5-8-8H4z",key:"161ggg"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 6071 * @license lucide-react v0.462.0 - ISC 6072 * 6073 * This source code is licensed under the ISC license. 6074 * See the LICENSE file in the root directory of this source tree. 6075 */const xF=S("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** 6076 * @license lucide-react v0.462.0 - ISC 6077 * 6078 * This source code is licensed under the ISC license. 6079 * See the LICENSE file in the root directory of this source tree. 6080 */const bF=S("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** 6081 * @license lucide-react v0.462.0 - ISC 6082 * 6083 * This source code is licensed under the ISC license. 6084 * See the LICENSE file in the root directory of this source tree. 6085 */const dw=S("Settings",[["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"}]]);/** 6086 * @license lucide-react v0.462.0 - ISC 6087 * 6088 * This source code is licensed under the ISC license. 6089 * See the LICENSE file in the root directory of this source tree. 6090 */const wF=S("Shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);/** 6091 * @license lucide-react v0.462.0 - ISC 6092 * 6093 * This source code is licensed under the ISC license. 6094 * See the LICENSE file in the root directory of this source tree. 6095 */const Ey=S("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 6096 * @license lucide-react v0.462.0 - ISC 6097 * 6098 * This source code is licensed under the ISC license. 6099 * See the LICENSE file in the root directory of this source tree. 6100 */const kF=S("Share",[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["polyline",{points:"16 6 12 2 8 6",key:"m901s6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15",key:"1p0rca"}]]);/** 6101 * @license lucide-react v0.462.0 - ISC 6102 * 6103 * This source code is licensed under the ISC license. 6104 * See the LICENSE file in the root directory of this source tree. 6105 */const _F=S("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]);/** 6106 * @license lucide-react v0.462.0 - ISC 6107 * 6108 * This source code is licensed under the ISC license. 6109 * See the LICENSE file in the root directory of this source tree. 6110 */const SF=S("Shell",[["path",{d:"M14 11a2 2 0 1 1-4 0 4 4 0 0 1 8 0 6 6 0 0 1-12 0 8 8 0 0 1 16 0 10 10 0 1 1-20 0 11.93 11.93 0 0 1 2.42-7.22 2 2 0 1 1 3.16 2.44",key:"1cn552"}]]);/** 6111 * @license lucide-react v0.462.0 - ISC 6112 * 6113 * This source code is licensed under the ISC license. 6114 * See the LICENSE file in the root directory of this source tree. 6115 */const jF=S("ShieldAlert",[["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",ke
6115y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 6116 * @license lucide-react v0.462.0 - ISC 6117 * 6118 * This source code is licensed under the ISC license. 6119 * See the LICENSE file in the root directory of this source tree. 6120 */const EF=S("ShieldBan",[["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"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]]);/** 6121 * @license lucide-react v0.462.0 - ISC 6122 * 6123 * This source code is licensed under the ISC license. 6124 * See the LICENSE file in the root directory of this source tree. 6125 */const CF=S("ShieldCheck",[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 6126 * @license lucide-react v0.462.0 - ISC 6127 * 6128 * This source code is licensed under the ISC license. 6129 * See the LICENSE file in the root directory of this source tree. 6130 */const NF=S("ShieldEllipsis",[["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"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]]);/** 6131 * @license lucide-react v0.462.0 - ISC 6132 * 6133 * This source code is licensed under the ISC license. 6134 * See the LICENSE file in the root directory of this source tree. 6135 */const TF=S("ShieldHalf",[["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"}],["path",{d:"M12 22V2",key:"zs6s6o"}]]);/** 6136 * @license lucide-react v0.462.0 - ISC 6137 * 6138 * This source code is licensed under the ISC license. 6139 * See the LICENSE file in the root directory of this source tree. 6140 */const AF=S("ShieldMinus",[["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"}],["path",{d:"M9 12h6",key:"1c52cq"}]]);/** 6141 * @license lucide-react v0.462.0 - ISC 6142 * 6143 * This source code is licensed under the ISC license. 6144 * See the LICENSE file in the root directory of this source tree. 6145 */const MF=S("ShieldOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]);/** 6146 * @license lucide-react v0.462.0 - ISC 6147 * 6148 * This source code is licensed under the ISC license. 6149 * See the LICENSE file in the root directory of this source tree. 6150 */const IF=S("ShieldPlus",[["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"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M12 9v6",key:"199k2o"}]]);/** 6151 * @license lucide-react v0.462.0 - ISC 6152 * 6153 * This source code is licensed under the ISC license. 6154 * See the LICENSE file in the root directory of this source tree. 6155 */const PF=S("ShieldQuestion",[["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"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 6156 * @license lucide-react v0.462.0 - ISC 6157 * 6158 * This source code is licensed under the ISC license. 6159 * See the LICENSE file in the root directory of this source tree. 6160 */const nm=S("ShieldX",[["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",ke
6160y:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]);/** 6161 * @license lucide-react v0.462.0 - ISC 6162 * 6163 * This source code is licensed under the ISC license. 6164 * See the LICENSE file in the root directory of this source tree. 6165 */const i0=S("Shield",[["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"}]]);/** 6166 * @license lucide-react v0.462.0 - ISC 6167 * 6168 * This source code is licensed under the ISC license. 6169 * See the LICENSE file in the root directory of this source tree. 6170 */const LF=S("ShipWheel",[["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}],["path",{d:"M12 2v7.5",key:"1e5rl5"}],["path",{d:"m19 5-5.23 5.23",key:"1ezxxf"}],["path",{d:"M22 12h-7.5",key:"le1719"}],["path",{d:"m19 19-5.23-5.23",key:"p3fmgn"}],["path",{d:"M12 14.5V22",key:"dgcmos"}],["path",{d:"M10.23 13.77 5 19",key:"qwopd4"}],["path",{d:"M9.5 12H2",key:"r7bup8"}],["path",{d:"M10.23 10.23 5 5",key:"k2y7lj"}],["circle",{cx:"12",cy:"12",r:"2.5",key:"ix0uyj"}]]);/** 6171 * @license lucide-react v0.462.0 - ISC 6172 * 6173 * This source code is licensed under the ISC license. 6174 * See the LICENSE file in the root directory of this source tree.
6175 */const OF=S("Ship",[["path",{d:"M12 10.189V14",key:"1p8cqu"}],["path",{d:"M12 2v3",key:"qbqxhf"}],["path",{d:"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6",key:"qpkstq"}],["path",{d:"M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76",key:"7tigtc"}],["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1924j5"}]]);/** 6176 * @license lucide-react v0.462.0 - ISC 6177 * 6178 * This source code is licensed under the ISC license. 6179 * See the LICENSE file in the root directory of this source tree. 6180 */const RF=S("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);/** 6181 * @license lucide-react v0.462.0 - ISC 6182 * 6183 * This source code is licensed under the ISC license. 6184 * See the LICENSE file in the root directory of this source tree. 6185 */const hw=S("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/** 6186 * @license lucide-react v0.462.0 - ISC 6187 * 6188 * This source code is licensed under the ISC license. 6189 * See the LICENSE file in the root directory of this source tree. 6190 */const DF=S("ShoppingBasket",[["path",{d:"m15 11-1 9",key:"5wnq3a"}],["path",{d:"m19 11-4-7",key:"cnml18"}],["path",{d:"M2 11h20",key:"3eubbj"}],["path",{d:"m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4",key:"yiazzp"}],["path",{d:"M4.5 15.5h15",key:"13mye1"}],["path",{d:"m5 11 4-7",key:"116ra9"}],["path",{d:"m9 11 1 9",key:"1ojof7"}]]);/** 6191 * @license lucide-react v0.462.0 - ISC 6192 * 6193 * This source code is licensed under the ISC license. 6194 * See the LICENSE file in the root directory of this source tree. 6195 */const FF=S("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 6196 * @license lucide-react v0.462.0 - ISC 6197 * 6198 * This source code is licensed under the ISC license. 6199 * See the LICENSE file in the root directory of this source tree. 6200 */const $F=S("Shovel",[["path",{d:"M2 22v-5l5-5 5 5-5 5z",key:"1fh25c"}],["path",{d:"M9.5 14.5 16 8",key:"1smz5x"}],["path",{d:"m17 2 5 5-.5.5a3.53 3.53 0 0 1-5 0s0 0 0 0a3.53 3.53 0 0 1 0-5L17 2",key:"1q8uv5"}]]);/** 6201 * @license lucide-react v0.462.0 - ISC 6202 * 6203 * This source code is licensed under the ISC license. 6204 * See the LICENSE file in the root directory of this source tree. 6205 */const BF=S("ShowerHead",[["path",{d:"m4 4 2.5 2.5",key:"uv2vmf"}],["path",{d:"M13.5 6.5a4.95 4.95 0 0 0-7 7",key:"frdkwv"}],["path",{d:"M15 5 5 15",key:"1ag8rq"}],["path",{d:"M14 17v.01",key:"eokfpp"}],["path",{d:"M10 16v.01",key:"14uyyl"}],["path",{d:"M13 13v.01",key:"1v1k97"}],["path",{d:"M16 10v.01",key:"5169yg"}],["path",{d:"M11 20v.01",key:"cj92p8"}],["path",{d:"M17 14v.01",key:"11cswd"}],["path",{d:"M20 11v.01",key:"19e0od"}]]);/** 6206 * @license lucide-react v0.462.0 - ISC 6207 * 6208 * This source code is licensed under the ISC license. 6209 * See the LICENSE file in the root directory of this source tree. 6210 */const zF=S("Shrink",[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]]);/** 6211 * @license lucide-react v0.462.0 - ISC 6212 * 6213 * This source code is licensed under the ISC license. 6214 * See the LICENSE file in the root directory of this source tree. 6215 */const UF=S("Shrub",[["path",{d:"M12 22v-7l-2-2",key:"eqv9mc"}],["path",{d:"M17 8v.8A6 6 0 0 1 13.8 20H10A6.5 6.5 0 0 1 7 8a5 5 0 0 1 10 0Z",key:"ubcgy"}],["path",{d:"m14 14-2 2",key:"847xa2"}]]);/** 6216 * @license lucide-react v0.462.0 - ISC 6217 * 6218 * This source code is licensed under the ISC license. 6219 * See the LICENSE file in the root directory of this source tree. 6220 */const qF=S("Shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]);/** 6221 * @license lucide-react v0.462.0 - ISC 6222 * 6223 * This source code is licensed under the ISC license. 6224 * See the LICENSE file in the root directory of this source tree. 6225 */const HF=S("Sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",ke
6225y:"wuwx1p"}]]);/** 6226 * @license lucide-react v0.462.0 - ISC 6227 * 6228 * This source code is licensed under the ISC license. 6229 * See the LICENSE file in the root directory of this source tree. 6230 */const VF=S("SignalHigh",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}]]);/** 6231 * @license lucide-react v0.462.0 - ISC 6232 * 6233 * This source code is licensed under the ISC license. 6234 * See the LICENSE file in the root directory of this source tree. 6235 */const WF=S("SignalLow",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}]]);/** 6236 * @license lucide-react v0.462.0 - ISC 6237 * 6238 * This source code is licensed under the ISC license. 6239 * See the LICENSE file in the root directory of this source tree. 6240 */const GF=S("SignalMedium",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}]]);/** 6241 * @license lucide-react v0.462.0 - ISC 6242 * 6243 * This source code is licensed under the ISC license. 6244 * See the LICENSE file in the root directory of this source tree. 6245 */const KF=S("SignalZero",[["path",{d:"M2 20h.01",key:"4haj6o"}]]);/** 6246 * @license lucide-react v0.462.0 - ISC 6247 * 6248 * This source code is licensed under the ISC license. 6249 * See the LICENSE file in the root directory of this source tree. 6250 */const YF=S("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/** 6251 * @license lucide-react v0.462.0 - ISC 6252 * 6253 * This source code is licensed under the ISC license. 6254 * See the LICENSE file in the root directory of this source tree. 6255 */const XF=S("Signature",[["path",{d:"m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284",key:"y32ogt"}],["path",{d:"M3 21h18",key:"itz85i"}]]);/** 6256 * @license lucide-react v0.462.0 - ISC 6257 * 6258 * This source code is licensed under the ISC license. 6259 * See the LICENSE file in the root directory of this source tree. 6260 */const ZF=S("SignpostBig",[["path",{d:"M10 9H4L2 7l2-2h6",key:"1hq7x2"}],["path",{d:"M14 5h6l2 2-2 2h-6",key:"bv62ej"}],["path",{d:"M10 22V4a2 2 0 1 1 4 0v18",key:"eqpcf2"}],["path",{d:"M8 22h8",key:"rmew8v"}]]);/** 6261 * @license lucide-react v0.462.0 - ISC 6262 * 6263 * This source code is licensed under the ISC license. 6264 * See the LICENSE file in the root directory of this source tree. 6265 */const QF=S("Signpost",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M18 6a2 2 0 0 1 1.387.56l2.307 2.22a1 1 0 0 1 0 1.44l-2.307 2.22A2 2 0 0 1 18 13H6a2 2 0 0 1-1.387-.56l-2.306-2.22a1 1 0 0 1 0-1.44l2.306-2.22A2 2 0 0 1 6 6z",key:"gqqp9m"}]]);/** 6266 * @license lucide-react v0.462.0 - ISC 6267 * 6268 * This source code is licensed under the ISC license. 6269 * See the LICENSE file in the root directory of this source tree. 6270 */const JF=S("Siren",[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]]);/** 6271 * @license lucide-react v0.462.0 - ISC 6272 * 6273 * This source code is licensed under the ISC license. 6274 * See the LICENSE file in the root directory of this source tree. 6275 */const e$=S("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);/** 6276 * @license lucide-react v0.462.0 - ISC 6277 * 6278 * This source code is licensed under the ISC license. 6279 * See the LICENSE file in the root directory of this source tree. 6280 */const fw=S("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/** 6281 * @license lucide-react v0.462.0 - ISC 6282 * 6283 * This source code is licensed under the ISC license. 6284 * See the LICENSE file in the root directory of this source tree. 6285 */const t$=S("Skull",[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",ke
6285y:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]]);/** 6286 * @license lucide-react v0.462.0 - ISC 6287 * 6288 * This source code is licensed under the ISC license. 6289 * See the LICENSE file in the root directory of this source tree. 6290 */const r$=S("Slack",[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]]);/** 6291 * @license lucide-react v0.462.0 - ISC 6292 * 6293 * This source code is licensed under the ISC license. 6294 * See the LICENSE file in the root directory of this source tree. 6295 */const n$=S("Slash",[["path",{d:"M22 2 2 22",key:"y4kqgn"}]]);/** 6296 * @license lucide-react v0.462.0 - ISC 6297 * 6298 * This source code is licensed under the ISC license. 6299 * See the LICENSE file in the root directory of this source tree. 6300 */const a$=S("Slice",[["path",{d:"M11 16.586V19a1 1 0 0 1-1 1H2L18.37 3.63a1 1 0 1 1 3 3l-9.663 9.663a1 1 0 0 1-1.414 0L8 14",key:"1sllp5"}]]);/** 6301 * @license lucide-react v0.462.0 - ISC 6302 * 6303 * This source code is licensed under the ISC license. 6304 * See the LICENSE file in the root directory of this source tree. 6305 */const pw=S("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/** 6306 * @license lucide-react v0.462.0 - ISC 6307 * 6308 * This source code is licensed under the ISC license. 6309 * See the LICENSE file in the root directory of this source tree. 6310 */const am=S("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/** 6311 * @license lucide-react v0.462.0 - ISC 6312 * 6313 * This source code is licensed under the ISC license. 6314 * See the LICENSE file in the root directory of this source tree. 6315 */const i$=S("SmartphoneCharging",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12.667 8 10 12h4l-2.667 4",key:"h9lk2d"}]]);/** 6316 * @license lucide-react v0.462.0 - ISC 6317 * 6318 * This source code is licensed under the ISC license. 6319 * See the LICENSE file in the root directory of this source tree. 6320 */const s$=S("SmartphoneNfc",[["rect",{width:"7",height:"12",x:"2",y:"6",rx:"1",key:"5nje8w"}],["path",{d:"M13 8.32a7.43 7.43 0 0 1 0 7.36",key:"1g306n"}],["path",{d:"M16.46 6.21a11.76 11.76 0 0 1 0 11.58",key:"uqvjvo"}],["path",{d:"M19.91 4.1a15.91 15.91 0 0 1 .01 15.8",key:"ujntz3"}]]);/** 6321 * @license lucide-react v0.462.0 - ISC 6322 * 6323 * This source code is licensed under the ISC license. 6324 * See the LICENSE file in the root directory of this source tree. 6325 */const o$=S("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 6326 * @license lucide-react v0.462.0 - ISC 6327 * 6328 * This source code is licensed under the ISC license. 6329 * See the LICENSE file in the root directory of this source tree. 6330 */const l$=S("SmilePlus",[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}
6330],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]]);/** 6331 * @license lucide-react v0.462.0 - ISC 6332 * 6333 * This source code is licensed under the ISC license. 6334 * See the LICENSE file in the root directory of this source tree. 6335 */const mw=S("Smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/** 6336 * @license lucide-react v0.462.0 - ISC 6337 * 6338 * This source code is licensed under the ISC license. 6339 * See the LICENSE file in the root directory of this source tree. 6340 */const c$=S("Snail",[["path",{d:"M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0",key:"hneq2s"}],["circle",{cx:"10",cy:"13",r:"8",key:"194lz3"}],["path",{d:"M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6",key:"ixqyt7"}],["path",{d:"M18 3 19.1 5.2",key:"9tjm43"}],["path",{d:"M22 3 20.9 5.2",key:"j3odrs"}]]);/** 6341 * @license lucide-react v0.462.0 - ISC 6342 * 6343 * This source code is licensed under the ISC license. 6344 * See the LICENSE file in the root directory of this source tree. 6345 */const u$=S("Snowflake",[["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"m20 16-4-4 4-4",key:"rquw4f"}],["path",{d:"m4 8 4 4-4 4",key:"12s3z9"}],["path",{d:"m16 4-4 4-4-4",key:"1tumq1"}],["path",{d:"m8 20 4-4 4 4",key:"9p200w"}]]);/** 6346 * @license lucide-react v0.462.0 - ISC 6347 * 6348 * This source code is licensed under the ISC license. 6349 * See the LICENSE file in the root directory of this source tree. 6350 */const d$=S("Sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"xacw8m"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]]);/** 6351 * @license lucide-react v0.462.0 - ISC 6352 * 6353 * This source code is licensed under the ISC license. 6354 * See the LICENSE file in the root directory of this source tree. 6355 */const h$=S("Soup",[["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M19.5 12 22 6",key:"shfsr5"}],["path",{d:"M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62",key:"rpc6vp"}],["path",{d:"M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62",key:"1lf63m"}],["path",{d:"M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62",key:"97tijn"}]]);/** 6356 * @license lucide-react v0.462.0 - ISC 6357 * 6358 * This source code is licensed under the ISC license. 6359 * See the LICENSE file in the root directory of this source tree. 6360 */const f$=S("Space",[["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]);/** 6361 * @license lucide-react v0.462.0 - ISC 6362 * 6363 * This source code is licensed under the ISC license. 6364 * See the LICENSE file in the root directory of this source tree. 6365 */const p$=S("Spade",[["path",{d:"M5 9c-1.5 1.5-3 3.2-3 5.5A5.5 5.5 0 0 0 7.5 20c1.8 0 3-.5 4.5-2 1.5 1.5 2.7 2 4.5 2a5.5 5.5 0 0 0 5.5-5.5c0-2.3-1.5-4-3-5.5l-7-7-7 7Z",key:"40bo9n"}],["path",{d:"M12 18v4",key:"jadmvz"}]]);/** 6366 * @license lucide-react v0.462.0 - ISC 6367 * 6368 * This source code is licensed under the ISC license. 6369 * See the LICENSE file in the root directory of this source tree. 6370 */const m$=S("Sparkle",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}]]);/** 6371 * @license lucide-react v0.462.0 - ISC 6372 * 6373 * This source code is licensed under the ISC license. 6374 * See the LICENSE file in the root directory of this source tree. 6375 */const Qt=S("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 6376 * @license lucide-react v0.462.0 - ISC 6377 * 6378 * This source code is licensed under the ISC license. 6379 * See the LICENSE file in the root directory of this source tree. 6380 */const g$=S("Speaker",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["circle",{cx:"12",cy:"14",r:"4",key:"1jruaj"}],["path",{d:"M12 14h.01",key:"1etili"}]]);/** 6381 * @license lucide-react v0.462.0 - ISC 6382 * 6383 * This source code is licensed under the ISC license. 6384 * See the LICENSE file in the root directory of this source tree. 6385 */const y$=S("Speech",[["path",{d:"M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1 .029 2.758L2 20",key:"11atix"}],["path",{d:"M19.8 17.8a7.5 7.5 0 0 0 .003-10.603",key:"yol142"}],["path",{d:"M17 15a3.5 3.5 0 0 0-.025-4.975",key:"ssbmkc"}]]);/** 6386 * @license lucide-react v0.462.0 - ISC 6387 * 6388 * This source code is licensed under the ISC license. 6389 * See the LICENSE file in the root directory of this source tree. 6390 */const v$=S("SpellCheck2",[["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M4 21c1.1 0 1.1-1 2.3-1s1.1 1 2.3 1c1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1",key:"8mdmtu"}]]);/** 6391 * @license lucide-react v0.462.0 - ISC 6392 * 6393 * This source code is licensed under the ISC license. 6394 * See the LICENSE file in the root directory of this source tree. 6395 */const x$=S("SpellCheck",[["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m16 20 2 2 4-4",key:"13tcca"}]]);/** 6396 * @license lucide-react v0.462.0 - ISC 6397 * 6398 * This source code is licensed under the ISC license. 6399 * See the LICENSE file in the root directory of this source tree.
6400 */const b$=S("Spline",[["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M5 17A12 12 0 0 1 17 5",key:"1okkup"}]]);/** 6401 * @license lucide-react v0.462.0 - ISC 6402 * 6403 * This source code is licensed under the ISC license. 6404 * See the LICENSE file in the root directory of this source tree. 6405 */const w$=S("Split",[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]]);/** 6406 * @license lucide-react v0.462.0 - ISC 6407 * 6408 * This source code is licensed under the ISC license. 6409 * See the LICENSE file in the root directory of this source tree. 6410 */const k$=S("SprayCan",[["path",{d:"M3 3h.01",key:"159qn6"}],["path",{d:"M7 5h.01",key:"1hq22a"}],["path",{d:"M11 7h.01",key:"1osv80"}],["path",{d:"M3 7h.01",key:"1xzrh3"}],["path",{d:"M7 9h.01",key:"19b3jx"}],["path",{d:"M3 11h.01",key:"1eifu7"}],["rect",{width:"4",height:"4",x:"15",y:"5",key:"mri9e4"}],["path",{d:"m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2",key:"aib6hk"}],["path",{d:"m13 14 8-2",key:"1d7bmk"}],["path",{d:"m13 19 8-2",key:"1y2vml"}]]);/** 6411 * @license lucide-react v0.462.0 - ISC 6412 * 6413 * This source code is licensed under the ISC license. 6414 * See the LICENSE file in the root directory of this source tree. 6415 */const _$=S("Sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]]);/** 6416 * @license lucide-react v0.462.0 - ISC 6417 * 6418 * This source code is licensed under the ISC license. 6419 * See the LICENSE file in the root directory of this source tree. 6420 */const im=S("SquareActivity",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M17 12h-2l-2 5-2-10-2 5H7",key:"15hlnc"}]]);/** 6421 * @license lucide-react v0.462.0 - ISC 6422 * 6423 * This source code is licensed under the ISC license. 6424 * See the LICENSE file in the root directory of this source tree. 6425 */const sm=S("SquareArrowDownLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m16 8-8 8",key:"166keh"}],["path",{d:"M16 16H8V8",key:"1w2ppm"}]]);/** 6426 * @license lucide-react v0.462.0 - ISC 6427 * 6428 * This source code is licensed under the ISC license. 6429 * See the LICENSE file in the root directory of this source tree. 6430 */const om=S("SquareArrowDownRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m8 8 8 8",key:"1imecy"}],["path",{d:"M16 8v8H8",key:"1lbpgo"}]]);/** 6431 * @license lucide-react v0.462.0 - ISC 6432 * 6433 * This source code is licensed under the ISC license. 6434 * See the LICENSE file in the root directory of this source tree. 6435 */const lm=S("SquareArrowDown",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]]);/** 6436 * @license lucide-react v0.462.0 - ISC 6437 * 6438 * This source code is licensed under the ISC license. 6439 * See the LICENSE file in the root directory of this source tree. 6440 */const cm=S("SquareArrowLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}],["path",{d:"M16 12H8",key:"1fr5h0"}]]);/** 6441 * @license lucide-react v0.462.0 - ISC 6442 * 6443 * This source code is licensed under the ISC license. 6444 * See the LICENSE file in the root directory of this source tree. 6445 */const um=S("SquareArrowOutDownLeft",[["path",{d:"M13 21h6a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6",key:"14qz4y"}],["path",{d:"m3 21 9-9",key:"1jfql5"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);/** 6446 * @license lucide-react v0.462.0 - ISC 6447 * 6448 * This source code is licensed under the ISC license. 6449 * See the LICENSE file in the root directory of this source tree. 6450 */const dm=S("SquareArrowOutDownRight",[["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}],["path",{d:"m21 21-9-9",key:"1et2py"}],["path",{d:"M21 15v6h-6",key:"1jko0i"}
6450]]);/** 6451 * @license lucide-react v0.462.0 - ISC 6452 * 6453 * This source code is licensed under the ISC license. 6454 * See the LICENSE file in the root directory of this source tree. 6455 */const hm=S("SquareArrowOutUpLeft",[["path",{d:"M13 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6",key:"14mv1t"}],["path",{d:"m3 3 9 9",key:"rks13r"}],["path",{d:"M3 9V3h6",key:"ira0h2"}]]);/** 6456 * @license lucide-react v0.462.0 - ISC 6457 * 6458 * This source code is licensed under the ISC license. 6459 * See the LICENSE file in the root directory of this source tree. 6460 */const fm=S("SquareArrowOutUpRight",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]);/** 6461 * @license lucide-react v0.462.0 - ISC 6462 * 6463 * This source code is licensed under the ISC license. 6464 * See the LICENSE file in the root directory of this source tree. 6465 */const pm=S("SquareArrowRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]);/** 6466 * @license lucide-react v0.462.0 - ISC 6467 * 6468 * This source code is licensed under the ISC license. 6469 * See the LICENSE file in the root directory of this source tree. 6470 */const mm=S("SquareArrowUpLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8h8",key:"19xb1h"}],["path",{d:"M16 16 8 8",key:"1qdy8n"}]]);/** 6471 * @license lucide-react v0.462.0 - ISC 6472 * 6473 * This source code is licensed under the ISC license. 6474 * See the LICENSE file in the root directory of this source tree. 6475 */const gm=S("SquareArrowUpRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 8h8v8",key:"b65dnt"}],["path",{d:"m8 16 8-8",key:"13b9ih"}]]);/** 6476 * @license lucide-react v0.462.0 - ISC 6477 * 6478 * This source code is licensed under the ISC license. 6479 * See the LICENSE file in the root directory of this source tree. 6480 */const ym=S("SquareArrowUp",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/** 6481 * @license lucide-react v0.462.0 - ISC 6482 * 6483 * This source code is licensed under the ISC license. 6484 * See the LICENSE file in the root directory of this source tree. 6485 */const vm=S("SquareAsterisk",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8.5 14 7-4",key:"12hpby"}],["path",{d:"m8.5 10 7 4",key:"wwy2dy"}]]);/** 6486 * @license lucide-react v0.462.0 - ISC 6487 * 6488 * This source code is licensed under the ISC license. 6489 * See the LICENSE file in the root directory of this source tree. 6490 */const xm=S("SquareBottomDashedScissors",[["path",{d:"M4 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2",key:"1vzg26"}],["path",{d:"M10 22H8",key:"euku7a"}],["path",{d:"M16 22h-2",key:"18d249"}],["circle",{cx:"8",cy:"8",r:"2",key:"14cg06"}],["path",{d:"M9.414 9.414 12 12",key:"qz4lzr"}],["path",{d:"M14.8 14.8 18 18",key:"11flf1"}],["circle",{cx:"8",cy:"16",r:"2",key:"1acxsx"}],["path",{d:"m18 6-8.586 8.586",key:"11kzk1"}]]);/** 6491 * @license lucide-react v0.462.0 - ISC 6492 * 6493 * This source code is licensed under the ISC license. 6494 * See the LICENSE file in the root directory of this source tree. 6495 */const Ol=S("SquareChartGantt",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]]);/** 6496 * @license lucide-react v0.462.0 - ISC 6497 * 6498 * This source code is licensed under the ISC license. 6499 * See the LICENSE file in the root directory of this source tree. 6500 */const bm=S("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 6501 * @license lucide-react v0.462.0 - ISC 6502 * 6503 * This source code is licensed under the ISC license. 6504 * See the LICENSE file in the root directory of this source tree. 6505 */const wm=S("SquareCheck",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 6506 * @license lucide-react v0.462.0 - ISC 6507 * 6508 * This source code is licensed under the ISC license. 6509 * See the LICENSE file in the root directory of this source tree.
6510 */const km=S("SquareChevronDown",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]);/** 6511 * @license lucide-react v0.462.0 - ISC 6512 * 6513 * This source code is licensed under the ISC license. 6514 * See the LICENSE file in the root directory of this source tree. 6515 */const _m=S("SquareChevronLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m14 16-4-4 4-4",key:"ojs7w8"}]]);/** 6516 * @license lucide-react v0.462.0 - ISC 6517 * 6518 * This source code is licensed under the ISC license. 6519 * See the LICENSE file in the root directory of this source tree. 6520 */const Sm=S("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]);/** 6521 * @license lucide-react v0.462.0 - ISC 6522 * 6523 * This source code is licensed under the ISC license. 6524 * See the LICENSE file in the root directory of this source tree. 6525 */const jm=S("SquareChevronUp",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m8 14 4-4 4 4",key:"fy2ptz"}]]);/** 6526 * @license lucide-react v0.462.0 - ISC 6527 * 6528 * This source code is licensed under the ISC license. 6529 * See the LICENSE file in the root directory of this source tree. 6530 */const Em=S("SquareCode",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 6531 * @license lucide-react v0.462.0 - ISC 6532 * 6533 * This source code is licensed under the ISC license. 6534 * See the LICENSE file in the root directory of this source tree. 6535 */const S$=S("SquareDashedBottomCode",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}]]);/** 6536 * @license lucide-react v0.462.0 - ISC 6537 * 6538 * This source code is licensed under the ISC license. 6539 * See the LICENSE file in the root directory of this source tree. 6540 */const j$=S("SquareDashedBottom",[["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 21h1",key:"v9vybs"}]]);/** 6541 * @license lucide-react v0.462.0 - ISC 6542 * 6543 * This source code is licensed under the ISC license. 6544 * See the LICENSE file in the root directory of this source tree. 6545 */const Cm=S("SquareDashedKanban",[["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M21 14v1",key:"169vum"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M3 9v1",key:"1r0deq"}]]);/** 6546 * @license lucide-react v0.462.0 - ISC 6547 * 6548 * This source code is licensed under the ISC license. 6549 * See the LICENSE file in the root directory of this source tree. 6550 */const Nm=S("SquareDashedMousePointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]]);/** 6551 * @license lucide-react v0.462.0 - ISC 6552 * 6553 * This source code is licensed under the ISC license. 6554 * See the LICENSE file in the root directory of this source tree. 6555 */const Tm=S("SquareDashed",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]]);/** 6556 * @license lucide-react v0.462.0 - ISC 6557 * 6558 * This source code is licensed under the ISC license. 6559 * See the LICENSE file in the root directory of this source tree. 6560 */const Am=S("SquareDivide",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}],["line",{x1:"12",x2:"12",y1:"16",y2:"16",key:"aqc6ln"}],["line",{x1:"12",x2:"12",y1:"8",y2:"8",key:"1mkcni"}]]);/** 6561 * @license lucide-react v0.462.0 - ISC 6562 * 6563 * This source code is licensed under the ISC license. 6564 * See the LICENSE file in the root directory of this source tree. 6565 */const Mm=S("SquareDot",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/** 6566 * @license lucide-react v0.462.0 - ISC 6567 * 6568 * This source code is licensed under the ISC license. 6569 * See the LICENSE file in the root directory of this source tree. 6570 */const Im=S("SquareEqual",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]);/** 6571 * @license lucide-react v0.462.0 - ISC 6572 * 6573 * This source code is licensed under the ISC license. 6574 * See the LICENSE file in the root directory of this source tree.
6575 */const Pm=S("SquareFunction",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]]);/** 6576 * @license lucide-react v0.462.0 - ISC 6577 * 6578 * This source code is licensed under the ISC license. 6579 * See the LICENSE file in the root directory of this source tree. 6580 */const Lm=S("SquareKanban",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}]]);/** 6581 * @license lucide-react v0.462.0 - ISC 6582 * 6583 * This source code is licensed under the ISC license. 6584 * See the LICENSE file in the root directory of this source tree. 6585 */const Om=S("SquareLibrary",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 7v10",key:"d5nglc"}],["path",{d:"M11 7v10",key:"pptsnr"}],["path",{d:"m15 7 2 10",key:"1m7qm5"}]]);/** 6586 * @license lucide-react v0.462.0 - ISC 6587 * 6588 * This source code is licensed under the ISC license. 6589 * See the LICENSE file in the root directory of this source tree. 6590 */const Rm=S("SquareM",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]);/** 6591 * @license lucide-react v0.462.0 - ISC 6592 * 6593 * This source code is licensed under the ISC license. 6594 * See the LICENSE file in the root directory of this source tree. 6595 */const Dm=S("SquareMenu",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 8h10",key:"1jw688"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/** 6596 * @license lucide-react v0.462.0 - ISC 6597 * 6598 * This source code is licensed under the ISC license. 6599 * See the LICENSE file in the root directory of this source tree. 6600 */const Fm=S("SquareMinus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/** 6601 * @license lucide-react v0.462.0 - ISC 6602 * 6603 * This source code is licensed under the ISC license. 6604 * See the LICENSE file in the root directory of this source tree. 6605 */const $m=S("SquareMousePointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]]);/** 6606 * @license lucide-react v0.462.0 - ISC 6607 * 6608 * This source code is licensed under the ISC license. 6609 * See the LICENSE file in the root directory of this source tree. 6610 */const Bm=S("SquareParkingOff",[["path",{d:"M3.6 3.6A2 2 0 0 1 5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-.59 1.41",key:"9l1ft6"}],["path",{d:"M3 8.7V19a2 2 0 0 0 2 2h10.3",key:"17knke"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M13 13a3 3 0 1 0 0-6H9v2",key:"uoagbd"}],["path",{d:"M9 17v-2.3",key:"1jxgo2"}]]);/** 6611 * @license lucide-react v0.462.0 - ISC 6612 * 6613 * This source code is licensed under the ISC license. 6614 * See the LICENSE file in the root directory of this source tree. 6615 */const zm=S("SquareParking",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 17V7h4a3 3 0 0 1 0 6H9",key:"1dfk2c"}]]);/** 6616 * @license lucide-react v0.462.0 - ISC 6617 * 6618 * This source code is licensed under the ISC license. 6619 * See the LICENSE file in the root directory of this source tree. 6620 */const ii=S("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/** 6621 * @license lucide-react v0.462.0 - ISC 6622 * 6623 * This source code is licensed under the ISC license. 6624 * See the LICENSE file in the root directory of this source tree. 6625 */const Um=S("SquarePercent",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]]);/** 6626 * @license lucide-react v0.462.0 - ISC 6627 * 6628 * This source code is licensed under the ISC license. 6629 * See the LICENSE file in the root directory of this source tree. 6630 */const qm=S("SquarePi",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 7h10",key:"udp07y"}],["path",{d:"M10 7v10",key:"i1d9ee"}],["path",{d:"M16 17a2 2 0 0 1-2-2V7",key:"ftwdc7"}]]);/** 6631 * @license lucide-react v0.462.0 - ISC 6632 * 6633 * This source code is licensed under the ISC license. 6634 * See the LICENSE file in the root directory of this source tree.
6635 */const Hm=S("SquarePilcrow",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 12H9.5a2.5 2.5 0 0 1 0-5H17",key:"1l9586"}],["path",{d:"M12 7v10",key:"jspqdw"}],["path",{d:"M16 7v10",key:"lavkr4"}]]);/** 6636 * @license lucide-react v0.462.0 - ISC 6637 * 6638 * This source code is licensed under the ISC license. 6639 * See the LICENSE file in the root directory of this source tree. 6640 */const Vm=S("SquarePlay",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 8 6 4-6 4Z",key:"f1r3lt"}]]);/** 6641 * @license lucide-react v0.462.0 - ISC 6642 * 6643 * This source code is licensed under the ISC license. 6644 * See the LICENSE file in the root directory of this source tree. 6645 */const Wm=S("SquarePlus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/** 6646 * @license lucide-react v0.462.0 - ISC 6647 * 6648 * This source code is licensed under the ISC license. 6649 * See the LICENSE file in the root directory of this source tree. 6650 */const Gm=S("SquarePower",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);/** 6651 * @license lucide-react v0.462.0 - ISC 6652 * 6653 * This source code is licensed under the ISC license. 6654 * See the LICENSE file in the root directory of this source tree. 6655 */const E$=S("SquareRadical",[["path",{d:"M7 12h2l2 5 2-10h4",key:"1fxv6h"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);/** 6656 * @license lucide-react v0.462.0 - ISC 6657 * 6658 * This source code is licensed under the ISC license. 6659 * See the LICENSE file in the root directory of this source tree. 6660 */const Km=S("SquareScissors",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"2",key:"1btzen"}],["circle",{cx:"8",cy:"8",r:"2",key:"14cg06"}],["path",{d:"M9.414 9.414 12 12",key:"qz4lzr"}],["path",{d:"M14.8 14.8 18 18",key:"11flf1"}],["circle",{cx:"8",cy:"16",r:"2",key:"1acxsx"}],["path",{d:"m18 6-8.586 8.586",key:"11kzk1"}]]);/** 6661 * @license lucide-react v0.462.0 - ISC 6662 * 6663 * This source code is licensed under the ISC license. 6664 * See the LICENSE file in the root directory of this source tree. 6665 */const Ym=S("SquareSigma",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M16 8.9V7H8l4 5-4 5h8v-1.9",key:"9nih0i"}]]);/** 6666 * @license lucide-react v0.462.0 - ISC 6667 * 6668 * This source code is licensed under the ISC license. 6669 * See the LICENSE file in the root directory of this source tree. 6670 */const Xm=S("SquareSlash",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]);/** 6671 * @license lucide-react v0.462.0 - ISC 6672 * 6673 * This source code is licensed under the ISC license. 6674 * See the LICENSE file in the root directory of this source tree. 6675 */const Zm=S("SquareSplitHorizontal",[["path",{d:"M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3",key:"lubmu8"}],["path",{d:"M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3",key:"1ag34g"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/** 6676 * @license lucide-react v0.462.0 - ISC 6677 * 6678 * This source code is licensed under the ISC license. 6679 * See the LICENSE file in the root directory of this source tree. 6680 */const Qm=S("SquareSplitVertical",[["path",{d:"M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3",key:"1pi83i"}],["path",{d:"M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3",key:"ido5k7"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/** 6681 * @license lucide-react v0.462.0 - ISC 6682 * 6683 * This source code is licensed under the ISC license. 6684 * See the LICENSE file in the root directory of this source tree. 6685 */const C$=S("SquareSquare",[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);/** 6686 * @license lucide-react v0.462.0 - ISC 6687 * 6688 * This source code is licensed under the ISC license. 6689 * See the LICENSE file in the root directory of this source tree. 6690 */const N$=S("SquareStack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}
6690],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]);/** 6691 * @license lucide-react v0.462.0 - ISC 6692 * 6693 * This source code is licensed under the ISC license. 6694 * See the LICENSE file in the root directory of this source tree. 6695 */const Jm=S("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/** 6696 * @license lucide-react v0.462.0 - ISC 6697 * 6698 * This source code is licensed under the ISC license. 6699 * See the LICENSE file in the root directory of this source tree. 6700 */const e1=S("SquareUserRound",[["path",{d:"M18 21a6 6 0 0 0-12 0",key:"kaz2du"}],["circle",{cx:"12",cy:"11",r:"4",key:"1gt34v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 6701 * @license lucide-react v0.462.0 - ISC 6702 * 6703 * This source code is licensed under the ISC license. 6704 * See the LICENSE file in the root directory of this source tree. 6705 */const t1=S("SquareUser",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 21v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1m6ac2"}]]);/** 6706 * @license lucide-react v0.462.0 - ISC 6707 * 6708 * This source code is licensed under the ISC license. 6709 * See the LICENSE file in the root directory of this source tree. 6710 */const r1=S("SquareX",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 6711 * @license lucide-react v0.462.0 - ISC 6712 * 6713 * This source code is licensed under the ISC license. 6714 * See the LICENSE file in the root directory of this source tree. 6715 */const T$=S("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 6716 * @license lucide-react v0.462.0 - ISC 6717 * 6718 * This source code is licensed under the ISC license. 6719 * See the LICENSE file in the root directory of this source tree. 6720 */const A$=S("Squircle",[["path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9",key:"garfkc"}]]);/** 6721 * @license lucide-react v0.462.0 - ISC 6722 * 6723 * This source code is licensed under the ISC license. 6724 * See the LICENSE file in the root directory of this source tree. 6725 */const M$=S("Squirrel",[["path",{d:"M15.236 22a3 3 0 0 0-2.2-5",key:"21bitc"}],["path",{d:"M16 20a3 3 0 0 1 3-3h1a2 2 0 0 0 2-2v-2a4 4 0 0 0-4-4V4",key:"oh0fg0"}],["path",{d:"M18 13h.01",key:"9veqaj"}],["path",{d:"M18 6a4 4 0 0 0-4 4 7 7 0 0 0-7 7c0-5 4-5 4-10.5a4.5 4.5 0 1 0-9 0 2.5 2.5 0 0 0 5 0C7 10 3 11 3 17c0 2.8 2.2 5 5 5h10",key:"980v8a"}]]);/** 6726 * @license lucide-react v0.462.0 - ISC 6727 * 6728 * This source code is licensed under the ISC license. 6729 * See the LICENSE file in the root directory of this source tree. 6730 */const I$=S("Stamp",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z",key:"1sy9ra"}],["path",{d:"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-3-3c-1.66 0-3 1-3 3s1 2 1 3.5V13",key:"cnxgux"}]]);/** 6731 * @license lucide-react v0.462.0 - ISC 6732 * 6733 * This source code is licensed under the ISC license. 6734 * See the LICENSE file in the root directory of this source tree. 6735 */const P$=S("StarHalf",[["path",{d:"M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2",key:"2ksp49"}]]);/** 6736 * @license lucide-react v0.462.0 - ISC 6737 * 6738 * This source code is licensed under the ISC license. 6739 * See the LICENSE file in the root directory of this source tree. 6740 */const L$=S("StarOff",[["path",{d:"M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43",ke
6740y:"16m0ql"}],["path",{d:"M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91",key:"1vt8nq"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 6741 * @license lucide-react v0.462.0 - ISC 6742 * 6743 * This source code is licensed under the ISC license. 6744 * See the LICENSE file in the root directory of this source tree. 6745 */const Oa=S("Star",[["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"}]]);/** 6746 * @license lucide-react v0.462.0 - ISC 6747 * 6748 * This source code is licensed under the ISC license. 6749 * See the LICENSE file in the root directory of this source tree. 6750 */const O$=S("StepBack",[["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["polygon",{points:"14,20 4,12 14,4",key:"ypakod"}]]);/** 6751 * @license lucide-react v0.462.0 - ISC 6752 * 6753 * This source code is licensed under the ISC license. 6754 * See the LICENSE file in the root directory of this source tree. 6755 */const R$=S("StepForward",[["line",{x1:"6",x2:"6",y1:"4",y2:"20",key:"fy8qot"}],["polygon",{points:"10,4 20,12 10,20",key:"1mc1pf"}]]);/** 6756 * @license lucide-react v0.462.0 - ISC 6757 * 6758 * This source code is licensed under the ISC license. 6759 * See the LICENSE file in the root directory of this source tree. 6760 */const D$=S("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/** 6761 * @license lucide-react v0.462.0 - ISC 6762 * 6763 * This source code is licensed under the ISC license. 6764 * See the LICENSE file in the root directory of this source tree. 6765 */const F$=S("Sticker",[["path",{d:"M15.5 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V8.5L15.5 3Z",key:"1wis1t"}],["path",{d:"M14 3v4a2 2 0 0 0 2 2h4",key:"36rjfy"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M10 16s.8 1 2 1c1.3 0 2-1 2-1",key:"1vvgv3"}]]);/** 6766 * @license lucide-react v0.462.0 - ISC 6767 * 6768 * This source code is licensed under the ISC license. 6769 * See the LICENSE file in the root directory of this source tree. 6770 */const $$=S("StickyNote",[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]]);/** 6771 * @license lucide-react v0.462.0 - ISC 6772 * 6773 * This source code is licensed under the ISC license. 6774 * See the LICENSE file in the root directory of this source tree. 6775 */const B$=S("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/** 6776 * @license lucide-react v0.462.0 - ISC 6777 * 6778 * This source code is licensed under the ISC license. 6779 * See the LICENSE file in the root directory of this source tree. 6780 */const z$=S("StretchHorizontal",[["rect",{width:"20",height:"6",x:"2",y:"4",rx:"2",key:"qdearl"}],["rect",{width:"20",height:"6",x:"2",y:"14",rx:"2",key:"1xrn6j"}]]);/** 6781 * @license lucide-react v0.462.0 - ISC 6782 * 6783 * This source code is licensed under the ISC license. 6784 * See the LICENSE file in the root directory of this source tree. 6785 */const U$=S("StretchVertical",[["rect",{width:"6",height:"20",x:"4",y:"2",rx:"2",key:"19qu7m"}],["rect",{width:"6",height:"20",x:"14",y:"2",rx:"2",key:"24v0nk"}]]);/** 6786 * @license lucide-react v0.462.0 - ISC 6787 * 6788 * This source code is licensed under the ISC license. 6789 * See the LICENSE file in the root directory of this source tree. 6790 */const q$=S("Strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/** 6791 * @license lucide-react v0.462.0 - ISC 6792 * 6793 * This source code is licensed under the ISC license. 6794 * See the LICENSE file in the root directory of this source tree. 6795 */const H$=S("Subscript",[["path",{d:"m4 5 8 8",key:"1eunvl"}],["path",{d:"m12 5-8 8",key:"1ah0jp"}],["path",{d:"M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",key:"e8ta8j"}]]);/** 6796 * @license lucide-react v0.462.0 - ISC 6797 * 6798 * This source code is licensed under the ISC license. 6799 * See the LICENSE file in the root directory of this source tree. 6800 */const V$=S("SunDim",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 4h.01",key:"1ujb9j"}],["path",{d:"M20 12h.01",key:"1ykeid"}],["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M4 12h.01",key:"158zrr"}],["path",{d:"M17.657 6.343h.01",key:"31pqzk"}],["path",{d:"M17.657 17.657h.01",key:"jehnf4"}],["path",{d:"M6.343 17.657h.01",key:"gdk6ow"}],["path",{d:"M6.343 6.343h.01",key:"1uurf0"}]]);/** 6801 * @license lucide-react v0.462.0 - ISC 6802 * 6803 * This source code is licensed under the ISC license. 6804 * See the LICENSE file in the root directory of this source tree. 6805 */const W$=S("SunMedium",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]]);/** 6806 * @license lucide-react v0.462.0 - ISC 6807 * 6808 * This source code is licensed under the ISC license. 6809 * See the LICENSE file in the root directory of this source tree.
6810 */const G$=S("SunMoon",[["path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4",key:"1fu5g2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.9 4.9 1.4 1.4",key:"b9915j"}],["path",{d:"m17.7 17.7 1.4 1.4",key:"qc3ed3"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.3 17.7-1.4 1.4",key:"5gca6"}],["path",{d:"m19.1 4.9-1.4 1.4",key:"wpu9u6"}]]);/** 6811 * @license lucide-react v0.462.0 - ISC 6812 * 6813 * This source code is licensed under the ISC license. 6814 * See the LICENSE file in the root directory of this source tree. 6815 */const K$=S("SunSnow",[["path",{d:"M10 9a3 3 0 1 0 0 6",key:"6zmtdl"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M14 21V3",key:"1llu3z"}],["path",{d:"M10 4V3",key:"pkzwkn"}],["path",{d:"M10 21v-1",key:"1u8rkd"}],["path",{d:"m3.64 18.36.7-.7",key:"105rm9"}],["path",{d:"m4.34 6.34-.7-.7",key:"d3unjp"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 4-3 3",key:"15jcng"}],["path",{d:"m14 17 3 3",key:"6tlq38"}],["path",{d:"m21 15-3-3 3-3",key:"1nlnje"}]]);/** 6816 * @license lucide-react v0.462.0 - ISC 6817 * 6818 * This source code is licensed under the ISC license. 6819 * See the LICENSE file in the root directory of this source tree. 6820 */const Y$=S("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** 6821 * @license lucide-react v0.462.0 - ISC 6822 * 6823 * This source code is licensed under the ISC license. 6824 * See the LICENSE file in the root directory of this source tree. 6825 */const X$=S("Sunrise",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]]);/** 6826 * @license lucide-react v0.462.0 - ISC 6827 * 6828 * This source code is licensed under the ISC license. 6829 * See the LICENSE file in the root directory of this source tree. 6830 */const Z$=S("Sunset",[["path",{d:"M12 10V2",key:"16sf7g"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]]);/** 6831 * @license lucide-react v0.462.0 - ISC 6832 * 6833 * This source code is licensed under the ISC license. 6834 * See the LICENSE file in the root directory of this source tree. 6835 */const Q$=S("Superscript",[["path",{d:"m4 19 8-8",key:"hr47gm"}],["path",{d:"m12 19-8-8",key:"1dhhmo"}],["path",{d:"M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",key:"1dfcux"}]]);/** 6836 * @license lucide-react v0.462.0 - ISC 6837 * 6838 * This source code is licensed under the ISC license. 6839 * See the LICENSE file in the root directory of this source tree. 6840 */const J$=S("SwatchBook",[["path",{d:"M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z",key:"1ldrpk"}],["path",{d:"M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7",key:"11i5po"}],["path",{d:"M 7 17h.01",key:"1euzgo"}],["path",{d:"m11 8 2.3-2.3a2.4 2.4 0 0 1 3.404.004L18.6 7.6a2.4 2.4 0 0 1 .026 3.434L9.9 19.8",key:"o2gii7"}]]);/** 6841 * @license lucide-react v0.462.0 - ISC 6842 * 6843 * This source code is licensed under the ISC license. 6844 * See the LICENSE file in the root directory of this source tree. 6845 */const eB=S("SwissFranc",[["path",{d:"M10 21V3h8",key:"br2l0g"}],["path",{d:"M6 16h9",key:"2py0wn"}],["path",{d:"M10 9.5h7",key:"13dmhz"}]]);/** 6846 * @license lucide-react v0.462.0 - ISC 6847 * 6848 * This source code is licensed under the ISC license. 6849 * See the LICENSE file in the root directory of this source tree. 6850 */const tB=S("SwitchCamera",[["path",{d:"M11 19H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5",key:"mtk2lu"}],["path",{d:"M13 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-5",key:"120jsl"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m18 22-3-3 3-3",key:"kgdoj7"}],["path",{d:"m6 2 3 3-3 3",key:"1fnbkv"}]]);/** 6851 * @license lucide-react v0.462.0 - ISC 6852 * 6853 * This source code is licensed under the ISC license. 6854 * See the LICENSE file in the root directory of this source tree. 6855 */const rB=S("Sword",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}]]);/** 6856 * @license lucide-react v0.462.0 - ISC 6857 * 6858 * This source code is licensed under the ISC license. 6859 * See the LICENSE file in the root directory of this source tree. 6860 */const nB=S("Swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]);/** 6861 * @license lucide-react v0.462.0 - ISC 6862 * 6863 * This source code is licensed under the ISC license. 6864 * See the LICENSE file in the root directory of this source tree. 6865 */const aB=S("Syringe",[["path",{d:"m18 2 4 4",key:"22kx64"}],["path",{d:"m17 7 3-3",key:"1w1zoj"}],["path",{d:"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5",key:"1exhtz"}],["path",{d:"m9 11 4 4",key:"rovt3i"}],["path",{d:"m5 19-3 3",key:"59f2uf"}],["path",{d:"m14 4 6 6",key:"yqp9t2"}]]);/** 6866 * @license lucide-react v0.462.0 - ISC 6867 * 6868 * This source code is licensed under the ISC license. 6869 * See the LICENSE file in the root directory of this source tree. 6870 */const iB=S("Table2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]);/** 6871 * @license lucide-react v0.462.0 - ISC 6872 * 6873 * This source code is licensed under the ISC license. 6874 * See the LICENSE file in the root directory of this source tree. 6875 */const sB=S("TableCellsMerge",[["path",{d:"M12 21v-6",key:"lihzve"}],["path",{d:"M12 9V3",key:"da5inc"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 6876 * @license lucide-react v0.462.0 - ISC 6877 * 6878 * This source code is licensed under the ISC license. 6879 * See the LICENSE file in the root directory of this source tree. 6880 */const oB=S("TableCellsSplit",[["path",{d:"M12 15V9",key:"8c7uyn"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 6881 * @license lucide-react v0.462.0 - ISC 6882 * 6883 * This source code is licensed under the ISC license. 6884 * See the LICENSE file in the root directory of this source tree. 6885 */const lB=S("TableColumnsSplit",[["path",{d:"M14 14v2",key:"w2a1xv"}],["path",{d:"M14 20v2",key:"1lq872"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M14 8v2",key:"i67w9a"}],["path",{d:"M2 15h8",key:"82wtch"}],["path",{d:"M2 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2",key:"up0l64"}],["path",{d:"M2 9h8",key:"yelfik"}],["path",{d:"M22 15h-4",key:"1es58f"}],["path",{d:"M22 3h-2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2",key:"pdjoqf"}],["path",{d:"M22 9h-4",key:"1luja7"}],["path",{d:"M5 3v18",key:"14hmio"}]]);/** 6886 * @license lucide-react v0.462.0 - ISC 6887 * 6888 * This source code is licensed under the ISC license. 6889 * See the LICENSE file in the root directory of this source tree. 6890 */const cB=S("TableOfContents",[["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M21 12h.01",key:"msek7k"}],["path",{d:"M21 18h.01",key:"1e8rq1"}],["path",{d:"M21 6h.01",key:"1koanj"}]]);/** 6891 * @license lucide-react v0.462.0 - ISC 6892 * 6893 * This source code is licensed under the ISC license. 6894 * See the LICENSE file in the root directory of this source tree. 6895 */const uB=S("TableProperties",[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}
6895],["path",{d:"M21 15H3",key:"9uk58r"}]]);/** 6896 * @license lucide-react v0.462.0 - ISC 6897 * 6898 * This source code is licensed under the ISC license. 6899 * See the LICENSE file in the root directory of this source tree. 6900 */const dB=S("TableRowsSplit",[["path",{d:"M14 10h2",key:"1lstlu"}],["path",{d:"M15 22v-8",key:"1fwwgm"}],["path",{d:"M15 2v4",key:"1044rn"}],["path",{d:"M2 10h2",key:"1r8dkt"}],["path",{d:"M20 10h2",key:"1ug425"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"M3 22v-6a2 2 135 0 1 2-2h14a2 2 45 0 1 2 2v6",key:"ibqhof"}],["path",{d:"M3 2v2a2 2 45 0 0 2 2h14a2 2 135 0 0 2-2V2",key:"1uenja"}],["path",{d:"M8 10h2",key:"66od0"}],["path",{d:"M9 22v-8",key:"fmnu31"}],["path",{d:"M9 2v4",key:"j1yeou"}]]);/** 6901 * @license lucide-react v0.462.0 - ISC 6902 * 6903 * This source code is licensed under the ISC license. 6904 * See the LICENSE file in the root directory of this source tree. 6905 */const hB=S("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/** 6906 * @license lucide-react v0.462.0 - ISC 6907 * 6908 * This source code is licensed under the ISC license. 6909 * See the LICENSE file in the root directory of this source tree. 6910 */const fB=S("TabletSmartphone",[["rect",{width:"10",height:"14",x:"3",y:"8",rx:"2",key:"1vrsiq"}],["path",{d:"M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4",key:"1j4zmg"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/** 6911 * @license lucide-react v0.462.0 - ISC 6912 * 6913 * This source code is licensed under the ISC license. 6914 * See the LICENSE file in the root directory of this source tree. 6915 */const pB=S("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/** 6916 * @license lucide-react v0.462.0 - ISC 6917 * 6918 * This source code is licensed under the ISC license. 6919 * See the LICENSE file in the root directory of this source tree. 6920 */const mB=S("Tablets",[["circle",{cx:"7",cy:"7",r:"5",key:"x29byf"}],["circle",{cx:"17",cy:"17",r:"5",key:"1op1d2"}],["path",{d:"M12 17h10",key:"ls21zv"}],["path",{d:"m3.46 10.54 7.08-7.08",key:"1rehiu"}]]);/** 6921 * @license lucide-react v0.462.0 - ISC 6922 * 6923 * This source code is licensed under the ISC license. 6924 * See the LICENSE file in the root directory of this source tree. 6925 */const s0=S("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 6926 * @license lucide-react v0.462.0 - ISC 6927 * 6928 * This source code is licensed under the ISC license. 6929 * See the LICENSE file in the root directory of this source tree. 6930 */const gB=S("Tags",[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]]);/** 6931 * @license lucide-react v0.462.0 - ISC 6932 * 6933 * This source code is licensed under the ISC license. 6934 * See the LICENSE file in the root directory of this source tree. 6935 */const yB=S("Tally1",[["path",{d:"M4 4v16",key:"6qkkli"}]]);/** 6936 * @license lucide-react v0.462.0 - ISC 6937 * 6938 * This source code is licensed under the ISC license. 6939 * See the LICENSE file in the root directory of this source tree. 6940 */const vB=S("Tally2",[["path",{d:"M4 4v16",key:"6qkkli"}],["path",{d:"M9 4v16",key:"81ygyz"}]]);/** 6941 * @license lucide-react v0.462.0 - ISC 6942 * 6943 * This source code is licensed under the ISC license. 6944 * See the LICENSE file in the root directory of this source tree. 6945 */const xB=S("Tally3",[["path",{d:"M4 4v16",key:"6qkkli"}],["path",{d:"M9 4v16",key:"81ygyz"}],["path",{d:"M14 4v16",key:"12vmem"}]]);/** 6946 * @license lucide-react v0.462.0 - ISC 6947 * 6948 * This source code is licensed under the ISC license. 6949 * See the LICENSE file in the root directory of this source tree. 6950 */const bB=S("Tally4",[["path",{d:"M4 4v16",key:"6qkkli"}],["path",{d:"M9 4v16",key:"81ygyz"}],["path",{d:"M14 4v16",key:"12vmem"}],["path",{d:"M19 4v16",key:"8ij5ei"}]]);/** 6951 * @license lucide-react v0.462.0 - ISC 6952 * 6953 * This source code is licensed under the ISC license. 6954 * See the LICENSE file in the root directory of this source tree. 6955 */const wB=S("Tally5",[["path",{d:"M4 4v16",key:"6qkkli"}],["path",{d:"M9 4v16",key:"81ygyz"}],["path",{d:"M14 4v16",key:"12vmem"}],["path",{d:"M19 4v16",key:"8ij5ei"}],["path",{d:"M22 6 2 18",key:"h9moai"}]]);/** 6956 * @license lucide-react v0.462.0 - ISC 6957 * 6958 * This source code is licensed under the ISC license. 6959 * See the LICENSE file in the root directory of this source tree. 6960 */const kB=S("Tangent",[["circle",{cx:"17",cy:"4",r:"2",key:"y5j2s2"}],["path",{d:"M15.59 5.41 5.41 15.59",key:"l0vprr"}],["circle",{cx:"4",cy:"17",r:"2",key:"9p4efm"}],["path",{d:"M12 22s-4-9-1.5-11.5S22 12 22 12",key:"1twk4o"}]]);/** 6961 * @license lucide-react v0.462.0 - ISC 6962 * 6963 * This source code is licensed under the ISC license. 6964 * See the LICENSE file in the root directory of this source tree. 6965 */const _B=S("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 6966 * @license lucide-react v0.462.0 - ISC 6967 * 6968 * This source code is licensed under the ISC license. 6969 * See the LICENSE file in the root directory of this source tree. 6970 */const SB=S("Telescope",[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}
6970],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]);/** 6971 * @license lucide-react v0.462.0 - ISC 6972 * 6973 * This source code is licensed under the ISC license. 6974 * See the LICENSE file in the root directory of this source tree. 6975 */const jB=S("TentTree",[["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}],["path",{d:"m14 5 3-3 3 3",key:"1sorif"}],["path",{d:"m14 10 3-3 3 3",key:"1jyi9h"}],["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M17 14H7l-5 8h20Z",key:"13ar7p"}],["path",{d:"M8 14v8",key:"1ghmqk"}],["path",{d:"m9 14 5 8",key:"13pgi6"}]]);/** 6976 * @license lucide-react v0.462.0 - ISC 6977 * 6978 * This source code is licensed under the ISC license. 6979 * See the LICENSE file in the root directory of this source tree. 6980 */const EB=S("Tent",[["path",{d:"M3.5 21 14 3",key:"1szst5"}],["path",{d:"M20.5 21 10 3",key:"1310c3"}],["path",{d:"M15.5 21 12 15l-3.5 6",key:"1ddtfw"}],["path",{d:"M2 21h20",key:"1nyx9w"}]]);/** 6981 * @license lucide-react v0.462.0 - ISC 6982 * 6983 * This source code is licensed under the ISC license. 6984 * See the LICENSE file in the root directory of this source tree. 6985 */const CB=S("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** 6986 * @license lucide-react v0.462.0 - ISC 6987 * 6988 * This source code is licensed under the ISC license. 6989 * See the LICENSE file in the root directory of this source tree. 6990 */const n1=S("TestTubeDiagonal",[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]]);/** 6991 * @license lucide-react v0.462.0 - ISC 6992 * 6993 * This source code is licensed under the ISC license. 6994 * See the LICENSE file in the root directory of this source tree. 6995 */const NB=S("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);/** 6996 * @license lucide-react v0.462.0 - ISC 6997 * 6998 * This source code is licensed under the ISC license. 6999 * See the LICENSE file in the root directory of this source tree. 7000 */const TB=S("TestTubes",[["path",{d:"M9 2v17.5A2.5 2.5 0 0 1 6.5 22A2.5 2.5 0 0 1 4 19.5V2",key:"1hjrqt"}],["path",{d:"M20 2v17.5a2.5 2.5 0 0 1-2.5 2.5a2.5 2.5 0 0 1-2.5-2.5V2",key:"16lc8n"}],["path",{d:"M3 2h7",key:"7s29d5"}],["path",{d:"M14 2h7",key:"7sicin"}],["path",{d:"M9 16H4",key:"1bfye3"}],["path",{d:"M20 16h-5",key:"ddnjpe"}]]);/** 7001 * @license lucide-react v0.462.0 - ISC 7002 * 7003 * This source code is licensed under the ISC license. 7004 * See the LICENSE file in the root directory of this source tree. 7005 */const AB=S("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]);/** 7006 * @license lucide-react v0.462.0 - ISC 7007 * 7008 * This source code is licensed under the ISC license. 7009 * See the LICENSE file in the root directory of this source tree. 7010 */const MB=S("TextCursor",[["path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1",key:"uvaxm9"}],["path",{d:"M7 22h1a4 4 0 0 0 4-4v-1",key:"11xy8d"}],["path",{d:"M7 2h1a4 4 0 0 1 4 4v1",key:"1uw06m"}]]);/** 7011 * @license lucide-react v0.462.0 - ISC 7012 * 7013 * This source code is licensed under the ISC license. 7014 * See the LICENSE file in the root directory of this source tree. 7015 */const IB=S("TextQuote",[["path",{d:"M17 6H3",key:"16j9eg"}],["path",{d:"M21 12H8",key:"scolzb"}],["path",{d:"M21 18H8",key:"1wfozv"}],["path",{d:"M3 12v6",key:"fv4c87"}]]);/** 7016 * @license lucide-react v0.462.0 - ISC 7017 * 7018 * This source code is licensed under the ISC license. 7019 * See the LICENSE file in the root directory of this source tree. 7020 */const PB=S("TextSearch",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 18H3",key:"13769t"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]);/** 7021 * @license lucide-react v0.462.0 - ISC 7022 * 7023 * This source code is licensed under the ISC license. 7024 * See the LICENSE file in the root directory of this source tree. 7025 */const a1=S("TextSelect",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}],["line",{x1:"7",x2:"15",y1:"8",y2:"8",key:"1758g8"}],["line",{x1:"7",x2:"17",y1:"12",y2:"12",key:"197423"}],["line",{x1:"7",x2:"13",y1:"16",y2:"16",key:"37cgm6"}]]);/** 7026 * @license lucide-react v0.462.0 - ISC 7027 * 7028 * This source code is licensed under the ISC license. 7029 * See the LICENSE file in the root directory of this source tree. 7030 */const LB=S("Text",[["path",{d:"M17 6.1H3",key:"wptmhv"}],["path",{d:"M21 12.1H3",key:"1j38uz"}],["path",{d:"M15.1 18H3",key:"1nb16a"}]]);/** 7031 * @license lucide-react v0.462.0 - ISC 7032 * 7033 * This source code is licensed under the ISC license. 7034 * See the LICENSE file in the root directory of this source tree. 7035 */const OB=S("Theater",[["path",{d:"M2 10s3-3 3-8",key:"3xiif0"}],["path",{d:"M22 10s-3-3-3-8",key:"ioaa5q"}
7035],["path",{d:"M10 2c0 4.4-3.6 8-8 8",key:"16fkpi"}],["path",{d:"M14 2c0 4.4 3.6 8 8 8",key:"b9eulq"}],["path",{d:"M2 10s2 2 2 5",key:"1au1lb"}],["path",{d:"M22 10s-2 2-2 5",key:"qi2y5e"}],["path",{d:"M8 15h8",key:"45n4r"}],["path",{d:"M2 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"1vsc2m"}],["path",{d:"M14 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"hrha4u"}]]);/** 7036 * @license lucide-react v0.462.0 - ISC 7037 * 7038 * This source code is licensed under the ISC license. 7039 * See the LICENSE file in the root directory of this source tree. 7040 */const RB=S("ThermometerSnowflake",[["path",{d:"M2 12h10",key:"19562f"}],["path",{d:"M9 4v16",key:"81ygyz"}],["path",{d:"m3 9 3 3-3 3",key:"1sas0l"}],["path",{d:"M12 6 9 9 6 6",key:"pfrgxu"}],["path",{d:"m6 18 3-3 1.5 1.5",key:"1e277p"}],["path",{d:"M20 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"iof6y5"}]]);/** 7041 * @license lucide-react v0.462.0 - ISC 7042 * 7043 * This source code is licensed under the ISC license. 7044 * See the LICENSE file in the root directory of this source tree. 7045 */const DB=S("ThermometerSun",[["path",{d:"M12 9a4 4 0 0 0-2 7.5",key:"1jvsq6"}],["path",{d:"M12 3v2",key:"1w22ol"}],["path",{d:"m6.6 18.4-1.4 1.4",key:"w2yidj"}],["path",{d:"M20 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"iof6y5"}],["path",{d:"M4 13H2",key:"118le4"}],["path",{d:"M6.34 7.34 4.93 5.93",key:"1brd51"}]]);/** 7046 * @license lucide-react v0.462.0 - ISC 7047 * 7048 * This source code is licensed under the ISC license. 7049 * See the LICENSE file in the root directory of this source tree. 7050 */const FB=S("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);/** 7051 * @license lucide-react v0.462.0 - ISC 7052 * 7053 * This source code is licensed under the ISC license. 7054 * See the LICENSE file in the root directory of this source tree. 7055 */const gw=S("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/** 7056 * @license lucide-react v0.462.0 - ISC 7057 * 7058 * This source code is licensed under the ISC license. 7059 * See the LICENSE file in the root directory of this source tree. 7060 */const yw=S("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/** 7061 * @license lucide-react v0.462.0 - ISC 7062 * 7063 * This source code is licensed under the ISC license. 7064 * See the LICENSE file in the root directory of this source tree. 7065 */const $B=S("TicketCheck",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 7066 * @license lucide-react v0.462.0 - ISC 7067 * 7068 * This source code is licensed under the ISC license. 7069 * See the LICENSE file in the root directory of this source tree. 7070 */const BB=S("TicketMinus",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M9 12h6",key:"1c52cq"}]]);/** 7071 * @license lucide-react v0.462.0 - ISC 7072 * 7073 * This source code is licensed under the ISC license. 7074 * See the LICENSE file in the root directory of this source tree. 7075 */const zB=S("TicketPercent",[["path",{d:"M2 9a3 3 0 1 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 1 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"1l48ns"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]]);/** 7076 * @license lucide-react v0.462.0 - ISC 7077 * 7078 * This source code is licensed under the ISC license. 7079 * See the LICENSE file in the root directory of this source tree. 7080 */const UB=S("TicketPlus",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M12 9v6",key:"199k2o"}]]);/** 7081 * @license lucide-react v0.462.0 - ISC 7082 * 7083 * This source code is licensed under the ISC license. 7084 * See the LICENSE file in the root directory of this source tree. 7085 */const qB=S("TicketSlash",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9.5 14.5 5-5",key:"qviqfa"}]]);/** 7086 * @license lucide-react v0.462.0 - ISC 7087 * 7088 * This source code is licensed under the ISC license. 7089 * See the LICENSE file in the root directory of this source tree. 7090 */const HB=S("TicketX",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9.5 14.5 5-5",key:"qviqfa"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]);/** 7091 * @license lucide-react v0.462.0 - ISC 7092 * 7093 * This source code is licensed under the ISC license. 7094 * See the LICENSE file in the root directory of this source tree. 7095 */const VB=S("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/** 7096 * @license lucide-react v0.462.0 - ISC 7097 * 7098 * This source code is licensed under the ISC license. 7099 * See the LICENSE file in the root directory of this source tree. 7100 */const WB=S("TicketsPlane",[["path",{d:"M10.5 17h1.227a2 2 0 0 0 1.345-.52L18 12",key:"16muxl"}],["path",{d:"m12 13.5 3.75.5",key:"1i9qhk"}
7100],["path",{d:"m4.5 8 10.58-5.06a1 1 0 0 1 1.342.488L18.5 8",key:"12lg5p"}],["path",{d:"M6 10V8",key:"1y41hn"}],["path",{d:"M6 14v1",key:"cao2tf"}],["path",{d:"M6 19v2",key:"1loha6"}],["rect",{x:"2",y:"8",width:"20",height:"13",rx:"2",key:"p3bz5l"}]]);/** 7101 * @license lucide-react v0.462.0 - ISC 7102 * 7103 * This source code is licensed under the ISC license. 7104 * See the LICENSE file in the root directory of this source tree. 7105 */const GB=S("Tickets",[["path",{d:"m4.5 8 10.58-5.06a1 1 0 0 1 1.342.488L18.5 8",key:"12lg5p"}],["path",{d:"M6 10V8",key:"1y41hn"}],["path",{d:"M6 14v1",key:"cao2tf"}],["path",{d:"M6 19v2",key:"1loha6"}],["rect",{x:"2",y:"8",width:"20",height:"13",rx:"2",key:"p3bz5l"}]]);/** 7106 * @license lucide-react v0.462.0 - ISC 7107 * 7108 * This source code is licensed under the ISC license. 7109 * See the LICENSE file in the root directory of this source tree. 7110 */const KB=S("TimerOff",[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M4.6 11a8 8 0 0 0 1.7 8.7 8 8 0 0 0 8.7 1.7",key:"10he05"}],["path",{d:"M7.4 7.4a8 8 0 0 1 10.3 1 8 8 0 0 1 .9 10.2",key:"15f7sh"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M12 12v-2",key:"fwoke6"}]]);/** 7111 * @license lucide-react v0.462.0 - ISC 7112 * 7113 * This source code is licensed under the ISC license. 7114 * See the LICENSE file in the root directory of this source tree. 7115 */const YB=S("TimerReset",[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]]);/** 7116 * @license lucide-react v0.462.0 - ISC 7117 * 7118 * This source code is licensed under the ISC license. 7119 * See the LICENSE file in the root directory of this source tree. 7120 */const XB=S("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/** 7121 * @license lucide-react v0.462.0 - ISC 7122 * 7123 * This source code is licensed under the ISC license. 7124 * See the LICENSE file in the root directory of this source tree. 7125 */const ZB=S("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/** 7126 * @license lucide-react v0.462.0 - ISC 7127 * 7128 * This source code is licensed under the ISC license. 7129 * See the LICENSE file in the root directory of this source tree. 7130 */const QB=S("ToggleRight",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]]);/** 7131 * @license lucide-react v0.462.0 - ISC 7132 * 7133 * This source code is licensed under the ISC license. 7134 * See the LICENSE file in the root directory of this source tree. 7135 */const JB=S("Toilet",[["path",{d:"M7 12h13a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-.598a.5.5 0 0 0-.424.765l1.544 2.47a.5.5 0 0 1-.424.765H5.402a.5.5 0 0 1-.424-.765L7 18",key:"kc4kqr"}],["path",{d:"M8 18a5 5 0 0 1-5-5V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8",key:"1tqs57"}]]);/** 7136 * @license lucide-react v0.462.0 - ISC 7137 * 7138 * This source code is licensed under the ISC license. 7139 * See the LICENSE file in the root directory of this source tree. 7140 */const ez=S("Tornado",[["path",{d:"M21 4H3",key:"1hwok0"}],["path",{d:"M18 8H6",key:"41n648"}],["path",{d:"M19 12H9",key:"1g4lpz"}],["path",{d:"M16 16h-6",key:"1j5d54"}],["path",{d:"M11 20H9",key:"39obr8"}]]);/** 7141 * @license lucide-react v0.462.0 - ISC 7142 * 7143 * This source code is licensed under the ISC license. 7144 * See the LICENSE file in the root directory of this source tree. 7145 */const tz=S("Torus",[["ellipse",{cx:"12",cy:"11",rx:"3",ry:"2",key:"1b2qxu"}],["ellipse",{cx:"12",cy:"12.5",rx:"10",ry:"8.5",key:"h8emeu"}]]);/** 7146 * @license lucide-react v0.462.0 - ISC 7147 * 7148 * This source code is licensed under the ISC license. 7149 * See the LICENSE file in the root directory of this source tree. 7150 */const rz=S("TouchpadOff",[["path",{d:"M4 4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16",key:"lnt0bk"}],["path",{d:"M2 14h12",key:"d8icqz"}],["path",{d:"M22 14h-2",key:"jrx26d"}],["path",{d:"M12 20v-6",key:"1rm09r"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M22 16V6a2 2 0 0 0-2-2H10",key:"11y8e4"}]]);/** 7151 * @license lucide-react v0.462.0 - ISC 7152 * 7153 * This source code is licensed under the ISC license. 7154 * See the LICENSE file in the root directory of this source tree. 7155 */const nz=S("Touchpad",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M2 14h20",key:"myj16y"}],["path",{d:"M12 20v-6",key:"1rm09r"}]]);/** 7156 * @license lucide-react v0.462.0 - ISC 7157 * 7158 * This source code is licensed under the ISC license. 7159 * See the LICENSE file in the root directory of this source tree. 7160 */const az=S("TowerControl",[["path",{d:"M18.2 12.27 20 6H4l1.8 6.27a1 1 0 0 0 .95.73h10.5a1 1 0 0 0 .96-.73Z",key:"1pledb"}],["path",{d:"M8 13v9",key:"hmv0ci"}],["path",{d:"M16 22v-9",key:"ylnf1u"}],["path",{d:"m9 6 1 7",key:"dpdgam"}],["path",{d:"m15 6-1 7",key:"ls7zgu"}],["path",{d:"M12 6V2",key:"1pj48d"}],["path",{d:"M13 2h-2",key:"mj6ths"}]]);/** 7161 * @license lucide-react v0.462.0 - ISC 7162 * 7163 * This source code is licensed under the ISC license. 7164 * See the LICENSE file in the root directory of this source tree.
7165 */const iz=S("ToyBrick",[["rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",key:"158fvp"}],["path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",key:"s0042v"}],["path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",key:"9wmeh2"}]]);/** 7166 * @license lucide-react v0.462.0 - ISC 7167 * 7168 * This source code is licensed under the ISC license. 7169 * See the LICENSE file in the root directory of this source tree. 7170 */const sz=S("Tractor",[["path",{d:"m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20",key:"she1j9"}],["path",{d:"M16 18h-5",key:"bq60fd"}],["path",{d:"M18 5a1 1 0 0 0-1 1v5.573",key:"1kv8ia"}],["path",{d:"M3 4h8.129a1 1 0 0 1 .99.863L13 11.246",key:"1q1ert"}],["path",{d:"M4 11V4",key:"9ft8pt"}],["path",{d:"M7 15h.01",key:"k5ht0j"}],["path",{d:"M8 10.1V4",key:"1jgyzo"}],["circle",{cx:"18",cy:"18",r:"2",key:"1emm8v"}],["circle",{cx:"7",cy:"15",r:"5",key:"ddtuc"}]]);/** 7171 * @license lucide-react v0.462.0 - ISC 7172 * 7173 * This source code is licensed under the ISC license. 7174 * See the LICENSE file in the root directory of this source tree. 7175 */const oz=S("TrafficCone",[["path",{d:"M9.3 6.2a4.55 4.55 0 0 0 5.4 0",key:"flyxqv"}],["path",{d:"M7.9 10.7c.9.8 2.4 1.3 4.1 1.3s3.2-.5 4.1-1.3",key:"1nlxxg"}],["path",{d:"M13.9 3.5a1.93 1.93 0 0 0-3.8-.1l-3 10c-.1.2-.1.4-.1.6 0 1.7 2.2 3 5 3s5-1.3 5-3c0-.2 0-.4-.1-.5Z",key:"vz7x1l"}],["path",{d:"m7.5 12.2-4.7 2.7c-.5.3-.8.7-.8 1.1s.3.8.8 1.1l7.6 4.5c.9.5 2.1.5 3 0l7.6-4.5c.7-.3 1-.7 1-1.1s-.3-.8-.8-1.1l-4.7-2.8",key:"1xfzlw"}]]);/** 7176 * @license lucide-react v0.462.0 - ISC 7177 * 7178 * This source code is licensed under the ISC license. 7179 * See the LICENSE file in the root directory of this source tree. 7180 */const lz=S("TrainFrontTunnel",[["path",{d:"M2 22V12a10 10 0 1 1 20 0v10",key:"o0fyp0"}],["path",{d:"M15 6.8v1.4a3 2.8 0 1 1-6 0V6.8",key:"m8q3n9"}],["path",{d:"M10 15h.01",key:"44in9x"}],["path",{d:"M14 15h.01",key:"5mohn5"}],["path",{d:"M10 19a4 4 0 0 1-4-4v-3a6 6 0 1 1 12 0v3a4 4 0 0 1-4 4Z",key:"hckbmu"}],["path",{d:"m9 19-2 3",key:"iij7hm"}],["path",{d:"m15 19 2 3",key:"npx8sa"}]]);/** 7181 * @license lucide-react v0.462.0 - ISC 7182 * 7183 * This source code is licensed under the ISC license. 7184 * See the LICENSE file in the root directory of this source tree. 7185 */const cz=S("TrainFront",[["path",{d:"M8 3.1V7a4 4 0 0 0 8 0V3.1",key:"1v71zp"}],["path",{d:"m9 15-1-1",key:"1yrq24"}],["path",{d:"m15 15 1-1",key:"1t0d6s"}],["path",{d:"M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z",key:"1p0hjs"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m16 19 2 3",key:"xo31yx"}]]);/** 7186 * @license lucide-react v0.462.0 - ISC 7187 * 7188 * This source code is licensed under the ISC license. 7189 * See the LICENSE file in the root directory of this source tree. 7190 */const uz=S("TrainTrack",[["path",{d:"M2 17 17 2",key:"18b09t"}],["path",{d:"m2 14 8 8",key:"1gv9hu"}],["path",{d:"m5 11 8 8",key:"189pqp"}],["path",{d:"m8 8 8 8",key:"1imecy"}],["path",{d:"m11 5 8 8",key:"ummqn6"}],["path",{d:"m14 2 8 8",key:"1vk7dn"}],["path",{d:"M7 22 22 7",key:"15mb1i"}]]);/** 7191 * @license lucide-react v0.462.0 - ISC 7192 * 7193 * This source code is licensed under the ISC license. 7194 * See the LICENSE file in the root directory of this source tree. 7195 */const i1=S("TramFront",[["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m18 22-2-3",key:"1p0ohu"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M16 15h.01",key:"rnfrdf"}]]);/** 7196 * @license lucide-react v0.462.0 - ISC 7197 * 7198 * This source code is licensed under the ISC license. 7199 * See the LICENSE file in the root directory of this source tree. 7200 */const ws=S("Trash2",[["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"}]]);/** 7201 * @license lucide-react v0.462.0 - ISC 7202 * 7203 * This source code is licensed under the ISC license. 7204 * See the LICENSE file in the root directory of this source tree.
7205 */const dz=S("Trash",[["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"}]]);/** 7206 * @license lucide-react v0.462.0 - ISC 7207 * 7208 * This source code is licensed under the ISC license. 7209 * See the LICENSE file in the root directory of this source tree. 7210 */const hz=S("TreeDeciduous",[["path",{d:"M8 19a4 4 0 0 1-2.24-7.32A3.5 3.5 0 0 1 9 6.03V6a3 3 0 1 1 6 0v.04a3.5 3.5 0 0 1 3.24 5.65A4 4 0 0 1 16 19Z",key:"oadzkq"}],["path",{d:"M12 19v3",key:"npa21l"}]]);/** 7211 * @license lucide-react v0.462.0 - ISC 7212 * 7213 * This source code is licensed under the ISC license. 7214 * See the LICENSE file in the root directory of this source tree. 7215 */const s1=S("TreePalm",[["path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4",key:"foxbe7"}],["path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3",key:"18arnh"}],["path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35",key:"ywahnh"}],["path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14",key:"ft0feo"}]]);/** 7216 * @license lucide-react v0.462.0 - ISC 7217 * 7218 * This source code is licensed under the ISC license. 7219 * See the LICENSE file in the root directory of this source tree. 7220 */const fz=S("TreePine",[["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"}]]);/** 7221 * @license lucide-react v0.462.0 - ISC 7222 * 7223 * This source code is licensed under the ISC license. 7224 * See the LICENSE file in the root directory of this source tree. 7225 */const pz=S("Trees",[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"1l6gj6"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]]);/** 7226 * @license lucide-react v0.462.0 - ISC 7227 * 7228 * This source code is licensed under the ISC license. 7229 * See the LICENSE file in the root directory of this source tree. 7230 */const mz=S("Trello",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["rect",{width:"3",height:"9",x:"7",y:"7",key:"14n3xi"}],["rect",{width:"3",height:"5",x:"14",y:"7",key:"s4azjd"}]]);/** 7231 * @license lucide-react v0.462.0 - ISC 7232 * 7233 * This source code is licensed under the ISC license. 7234 * See the LICENSE file in the root directory of this source tree. 7235 */const Cy=S("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 7236 * @license lucide-react v0.462.0 - ISC 7237 * 7238 * This source code is licensed under the ISC license. 7239 * See the LICENSE file in the root directory of this source tree. 7240 */const gz=S("TrendingUpDown",[["path",{d:"M14.828 14.828 21 21",key:"ar5fw7"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"m21 3-9 9-4-4-6 6",key:"1h02xo"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}]]);/** 7241 * @license lucide-react v0.462.0 - ISC 7242 * 7243 * This source code is licensed under the ISC license. 7244 * See the LICENSE file in the root directory of this source tree. 7245 */const Ny=S("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 7246 * @license lucide-react v0.462.0 - ISC 7247 * 7248 * This source code is licensed under the ISC license. 7249 * See the LICENSE file in the root directory of this source tree. 7250 */const Fs=S("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 7251 * @license lucide-react v0.462.0 - ISC 7252 * 7253 * This source code is licensed under the ISC license. 7254 * See the LICENSE file in the root directory of this source tree. 7255 */const yz=S("TriangleRight",[["path",{d:"M22 18a2 2 0 0 1-2 2H3c-1.1 0-1.3-.6-.4-1.3L20.4 4.3c.9-.7 1.6-.4 1.6.7Z",key:"183wce"}]]);/** 7256 * @license lucide-react v0.462.0 - ISC 7257 * 7258 * This source code is licensed under the ISC license. 7259 * See the LICENSE file in the root directory of this source tree. 7260 */const vz=S("Triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]);/** 7261 * @license lucide-react v0.462.0 - ISC 7262 * 7263 * This source code is licensed under the ISC license. 7264 * See the LICENSE file in the root directory of this source tree. 7265 */const xz=S("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
7265],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 7266 * @license lucide-react v0.462.0 - ISC 7267 * 7268 * This source code is licensed under the ISC license. 7269 * See the LICENSE file in the root directory of this source tree. 7270 */const Ty=S("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/** 7271 * @license lucide-react v0.462.0 - ISC 7272 * 7273 * This source code is licensed under the ISC license. 7274 * See the LICENSE file in the root directory of this source tree. 7275 */const bz=S("Turtle",[["path",{d:"m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z",key:"1lbbv7"}],["path",{d:"M4.82 7.9 8 10",key:"m9wose"}],["path",{d:"M15.18 7.9 12 10",key:"p8dp2u"}],["path",{d:"M16.93 10H20a2 2 0 0 1 0 4H2",key:"12nsm7"}]]);/** 7276 * @license lucide-react v0.462.0 - ISC 7277 * 7278 * This source code is licensed under the ISC license. 7279 * See the LICENSE file in the root directory of this source tree. 7280 */const wz=S("TvMinimalPlay",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]]);/** 7281 * @license lucide-react v0.462.0 - ISC 7282 * 7283 * This source code is licensed under the ISC license. 7284 * See the LICENSE file in the root directory of this source tree. 7285 */const o1=S("TvMinimal",[["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]]);/** 7286 * @license lucide-react v0.462.0 - ISC 7287 * 7288 * This source code is licensed under the ISC license. 7289 * See the LICENSE file in the root directory of this source tree. 7290 */const kz=S("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/** 7291 * @license lucide-react v0.462.0 - ISC 7292 * 7293 * This source code is licensed under the ISC license. 7294 * See the LICENSE file in the root directory of this source tree. 7295 */const _z=S("Twitch",[["path",{d:"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7",key:"c0yzno"}]]);/** 7296 * @license lucide-react v0.462.0 - ISC 7297 * 7298 * This source code is licensed under the ISC license. 7299 * See the LICENSE file in the root directory of this source tree. 7300 */const Sz=S("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** 7301 * @license lucide-react v0.462.0 - ISC 7302 * 7303 * This source code is licensed under the ISC license. 7304 * See the LICENSE file in the root directory of this source tree. 7305 */const jz=S("TypeOutline",[["path",{d:"M14 16.5a.5.5 0 0 0 .5.5h.5a2 2 0 0 1 0 4H9a2 2 0 0 1 0-4h.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8a2 2 0 0 1-4 0V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a2 2 0 0 1-4 0v-.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z",key:"1reda3"}]]);/** 7306 * @license lucide-react v0.462.0 - ISC 7307 * 7308 * This source code is licensed under the ISC license. 7309 * See the LICENSE file in the root directory of this source tree. 7310 */const vw=S("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/** 7311 * @license lucide-react v0.462.0 - ISC 7312 * 7313 * This source code is licensed under the ISC license. 7314 * See the LICENSE file in the root directory of this source tree. 7315 */const Ez=S("UmbrellaOff",[["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"M15.5 21a1.85 1.85 0 0 1-3.5-1v-8H2a10 10 0 0 1 3.428-6.575",key:"eki10q"}],["path",{d:"M17.5 12H22A10 10 0 0 0 9.004 3.455",key:"n2ayka"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 7316 * @license lucide-react v0.462.0 - ISC 7317 * 7318 * This source code is licensed under the ISC license. 7319 * See the LICENSE file in the root directory of this source tree. 7320 */const Cz=S("Umbrella",[["path",{d:"M22 12a10.06 10.06 1 0 0-20 0Z",key:"1teyop"}],["path",{d:"M12 12v8a2 2 0 0 0 4 0",key:"ulpmoc"}],["path",{d:"M12 2v1",key:"11qlp1"}]]);/** 7321 * @license lucide-react v0.462.0 - ISC 7322 * 7323 * This source code is licensed under the ISC license. 7324 * See the LICENSE file in the root directory of this source tree. 7325 */const Nz=S("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",ke
7325y:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/** 7326 * @license lucide-react v0.462.0 - ISC 7327 * 7328 * This source code is licensed under the ISC license. 7329 * See the LICENSE file in the root directory of this source tree. 7330 */const Tz=S("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/** 7331 * @license lucide-react v0.462.0 - ISC 7332 * 7333 * This source code is licensed under the ISC license. 7334 * See the LICENSE file in the root directory of this source tree. 7335 */const Az=S("UndoDot",[["path",{d:"M21 17a9 9 0 0 0-15-6.7L3 13",key:"8mp6z9"}],["path",{d:"M3 7v6h6",key:"1v2h90"}],["circle",{cx:"12",cy:"17",r:"1",key:"1ixnty"}]]);/** 7336 * @license lucide-react v0.462.0 - ISC 7337 * 7338 * This source code is licensed under the ISC license. 7339 * See the LICENSE file in the root directory of this source tree. 7340 */const Mz=S("Undo",[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]]);/** 7341 * @license lucide-react v0.462.0 - ISC 7342 * 7343 * This source code is licensed under the ISC license. 7344 * See the LICENSE file in the root directory of this source tree. 7345 */const Iz=S("UnfoldHorizontal",[["path",{d:"M16 12h6",key:"15xry1"}],["path",{d:"M8 12H2",key:"1jqql6"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m19 15 3-3-3-3",key:"wjy7rq"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}]]);/** 7346 * @license lucide-react v0.462.0 - ISC 7347 * 7348 * This source code is licensed under the ISC license. 7349 * See the LICENSE file in the root directory of this source tree. 7350 */const Pz=S("UnfoldVertical",[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]]);/** 7351 * @license lucide-react v0.462.0 - ISC 7352 * 7353 * This source code is licensed under the ISC license. 7354 * See the LICENSE file in the root directory of this source tree. 7355 */const Lz=S("Ungroup",[["rect",{width:"8",height:"6",x:"5",y:"4",rx:"1",key:"nzclkv"}],["rect",{width:"8",height:"6",x:"11",y:"14",rx:"1",key:"4tytwb"}]]);/** 7356 * @license lucide-react v0.462.0 - ISC 7357 * 7358 * This source code is licensed under the ISC license. 7359 * See the LICENSE file in the root directory of this source tree. 7360 */const l1=S("University",[["circle",{cx:"12",cy:"10",r:"1",key:"1gnqs8"}],["path",{d:"M22 20V8h-4l-6-4-6 4H2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2",key:"1qj5sn"}],["path",{d:"M6 17v.01",key:"roodi6"}],["path",{d:"M6 13v.01",key:"67c122"}],["path",{d:"M18 17v.01",key:"12ktxm"}],["path",{d:"M18 13v.01",key:"tn1rt1"}],["path",{d:"M14 22v-5a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5",key:"11g7fi"}]]);/** 7361 * @license lucide-react v0.462.0 - ISC 7362 * 7363 * This source code is licensed under the ISC license. 7364 * See the LICENSE file in the root directory of this source tree. 7365 */const Oz=S("Unlink2",[["path",{d:"M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2",key:"1re2ne"}]]);/** 7366 * @license lucide-react v0.462.0 - ISC 7367 * 7368 * This source code is licensed under the ISC license. 7369 * See the LICENSE file in the root directory of this source tree. 7370 */const Rz=S("Unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]);/** 7371 * @license lucide-react v0.462.0 - ISC 7372 * 7373 * This source code is licensed under the ISC license. 7374 * See the LICENSE file in the root directory of this source tree. 7375 */const Dz=S("Unplug",[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]);/** 7376 * @license lucide-react v0.462.0 - ISC 7377 * 7378 * This source code is licensed under the ISC license. 7379 * See the LICENSE file in the root directory of this source tree. 7380 */const xw=S("Upload",[["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"}]]);/** 7381 * @license lucide-react v0.462.0 - ISC 7382 * 7383 * This source code is licensed under the ISC license. 7384 * See the LICENSE file in the root directory of this source tree. 7385 */const Fz=S("Usb",[["circle",{cx:"10",cy:"7",r:"1",key:"dypaad"}],["circle",{cx:"4",cy:"20",r:"1",key:"22iqad"}],["path",{d:"M4.7 19.3 19 5",key:"1enqfc"}],["path",{d:"m21 3-3 1 2 2Z",key:"d3ov82"}],["path",{d:"M9.26 7.68 5 12l2 5",key:"1esawj"}],["path",{d:"m10 14 5 2 3.5-3.5",key:"v8oal5"}],["path",{d:"m18 12 1-1 1 1-1 1Z",key:"1bh22v"}]]);/** 7386 * @license lucide-react v0.462.0 - ISC 7387 * 7388 * This source code is licensed under the ISC license. 7389 * See the LICENSE file in the root directory of this source tree. 7390 */const $z=S("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}
7390],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 7391 * @license lucide-react v0.462.0 - ISC 7392 * 7393 * This source code is licensed under the ISC license. 7394 * See the LICENSE file in the root directory of this source tree. 7395 */const Bz=S("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);/** 7396 * @license lucide-react v0.462.0 - ISC 7397 * 7398 * This source code is licensed under the ISC license. 7399 * See the LICENSE file in the root directory of this source tree. 7400 */const o0=S("UserMinus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 7401 * @license lucide-react v0.462.0 - ISC 7402 * 7403 * This source code is licensed under the ISC license. 7404 * See the LICENSE file in the root directory of this source tree. 7405 */const bw=S("UserPen",[["path",{d:"M11.5 15H7a4 4 0 0 0-4 4v2",key:"15lzij"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]]);/** 7406 * @license lucide-react v0.462.0 - ISC 7407 * 7408 * This source code is licensed under the ISC license. 7409 * See the LICENSE file in the root directory of this source tree. 7410 */const zz=S("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 7411 * @license lucide-react v0.462.0 - ISC 7412 * 7413 * This source code is licensed under the ISC license. 7414 * See the LICENSE file in the root directory of this source tree. 7415 */const c1=S("UserRoundCheck",[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]);/** 7416 * @license lucide-react v0.462.0 - ISC 7417 * 7418 * This source code is licensed under the ISC license. 7419 * See the LICENSE file in the root directory of this source tree. 7420 */const u1=S("UserRoundCog",[["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m19.5 14.3-.4.9",key:"1eb35c"}],["path",{d:"m16.9 20.8-.4.9",key:"dfjc4z"}],["path",{d:"m21.7 19.5-.9-.4",key:"q4dx6b"}],["path",{d:"m15.2 16.9-.9-.4",key:"1r0w5f"}],["path",{d:"m21.7 16.5-.9.4",key:"1knoei"}],["path",{d:"m15.2 19.1-.9.4",key:"j188fs"}],["path",{d:"m19.5 21.7-.4-.9",key:"1tonu5"}],["path",{d:"m16.9 15.2-.4-.9",key:"699xu"}]]);/** 7421 * @license lucide-react v0.462.0 - ISC 7422 * 7423 * This source code is licensed under the ISC license. 7424 * See the LICENSE file in the root directory of this source tree. 7425 */const d1=S("UserRoundMinus",[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 19h-6",key:"vcuq98"}]]);/** 7426 * @license lucide-react v0.462.0 - ISC 7427 * 7428 * This source code is licensed under the ISC license. 7429 * See the LICENSE file in the root directory of this source tree. 7430 */const Uz=S("UserRoundPen",[["path",{d:"M2 21a8 8 0 0 1 10.821-7.487",key:"1c8h7z"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}]]);/** 7431 * @license lucide-react v0.462.0 - ISC 7432 * 7433 * This source code is licensed under the ISC license. 7434 * See the LICENSE file in the root directory of this source tree. 7435 */const h1=S("UserRoundPlus",[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M22 19h-6",key:"vcuq98"}]]);/** 7436 * @license lucide-react v0.462.0 - ISC 7437 * 7438 * This source code is licensed under the ISC license. 7439 * See the LICENSE file in the root directory of this source tree. 7440 */const qz=S("UserRoundSearch",[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}
7440],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]]);/** 7441 * @license lucide-react v0.462.0 - ISC 7442 * 7443 * This source code is licensed under the ISC license. 7444 * See the LICENSE file in the root directory of this source tree. 7445 */const f1=S("UserRoundX",[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]]);/** 7446 * @license lucide-react v0.462.0 - ISC 7447 * 7448 * This source code is licensed under the ISC license. 7449 * See the LICENSE file in the root directory of this source tree. 7450 */const p1=S("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/** 7451 * @license lucide-react v0.462.0 - ISC 7452 * 7453 * This source code is licensed under the ISC license. 7454 * See the LICENSE file in the root directory of this source tree. 7455 */const Hz=S("UserSearch",[["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}],["path",{d:"M10.3 15H7a4 4 0 0 0-4 4v2",key:"3bnktk"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}]]);/** 7456 * @license lucide-react v0.462.0 - ISC 7457 * 7458 * This source code is licensed under the ISC license. 7459 * See the LICENSE file in the root directory of this source tree. 7460 */const Vz=S("UserX",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]);/** 7461 * @license lucide-react v0.462.0 - ISC 7462 * 7463 * This source code is licensed under the ISC license. 7464 * See the LICENSE file in the root directory of this source tree. 7465 */const xl=S("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 7466 * @license lucide-react v0.462.0 - ISC 7467 * 7468 * This source code is licensed under the ISC license. 7469 * See the LICENSE file in the root directory of this source tree. 7470 */const m1=S("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/** 7471 * @license lucide-react v0.462.0 - ISC 7472 * 7473 * This source code is licensed under the ISC license. 7474 * See the LICENSE file in the root directory of this source tree. 7475 */const Xi=S("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 7476 * @license lucide-react v0.462.0 - ISC 7477 * 7478 * This source code is licensed under the ISC license. 7479 * See the LICENSE file in the root directory of this source tree. 7480 */const g1=S("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/** 7481 * @license lucide-react v0.462.0 - ISC 7482 * 7483 * This source code is licensed under the ISC license. 7484 * See the LICENSE file in the root directory of this source tree. 7485 */const y1=S("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);/** 7486 * @license lucide-react v0.462.0 - ISC 7487 * 7488 * This source code is licensed under the ISC license. 7489 * See the LICENSE file in the root directory of this source tree. 7490 */const Wz=S("UtilityPole",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M3 3v2",key:"9imdir"}],["path",{d:"M7 3v2",key:"n0os7"}],["path",{d:"M17 3v2",key:"1l2re6"}],["path",{d:"M21 3v2",key:"1duuac"}],["path",{d:"m19 5-7 7-7-7",key:"133zxf"}]]);/** 7491 * @license lucide-react v0.462.0 - ISC 7492 * 7493 * This source code is licensed under the ISC license. 7494 * See the LICENSE file in the root directory of this source tree. 7495 */const Gz=S("Variable",[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]]);/** 7496 * @license lucide-react v0.462.0 - ISC 7497 * 7498 * This source code is licensed under the ISC license. 7499 * See the LICENSE file in the root directory of this source tree. 7500 */const Kz=S("Vault",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["path",{d:"m7.9 7.9 2.7 2.7",key:"hpeyl3"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}],["path",{d:"m13.4 10.6 2.7-2.7",key:"264c1n"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["path",{d:"m7.9 16.1 2.7-2.7",key:"p81g5e"}],["circle",{cx:"16.5",cy:"16.5",r:".5",fill:"currentColor",key:"fubopw"}],["path",{d:"m13.4 13.4 2.7 2.7",key:"abhel3"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 7501 * @license lucide-react v0.462.0 - ISC 7502 * 7503 * This source code is licensed under the ISC license. 7504 * See the LICENSE file in the root directory of this source tree. 7505 */const Yz=S("Vegan",[["path",{d:"M16 8q6 0 6-6-6 0-6 6",key:"qsyyc4"}],["path",{d:"M17.41 3.59a10 10 0 1 0 3 3",key:"41m9h7"}],["path",{d:"M2 2a26.6 26.6 0 0 1 10 20c.9-6.82 1.5-9.5 4-14",ke
7505y:"qiv7li"}]]);/** 7506 * @license lucide-react v0.462.0 - ISC 7507 * 7508 * This source code is licensed under the ISC license. 7509 * See the LICENSE file in the root directory of this source tree. 7510 */const Xz=S("VenetianMask",[["path",{d:"M18 11c-1.5 0-2.5.5-3 2",key:"1fod00"}],["path",{d:"M4 6a2 2 0 0 0-2 2v4a5 5 0 0 0 5 5 8 8 0 0 1 5 2 8 8 0 0 1 5-2 5 5 0 0 0 5-5V8a2 2 0 0 0-2-2h-3a8 8 0 0 0-5 2 8 8 0 0 0-5-2z",key:"d70hit"}],["path",{d:"M6 11c1.5 0 2.5.5 3 2",key:"136fht"}]]);/** 7511 * @license lucide-react v0.462.0 - ISC 7512 * 7513 * This source code is licensed under the ISC license. 7514 * See the LICENSE file in the root directory of this source tree. 7515 */const Zz=S("VibrateOff",[["path",{d:"m2 8 2 2-2 2 2 2-2 2",key:"sv1b1"}],["path",{d:"m22 8-2 2 2 2-2 2 2 2",key:"101i4y"}],["path",{d:"M8 8v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2",key:"1hbad5"}],["path",{d:"M16 10.34V6c0-.55-.45-1-1-1h-4.34",key:"1x5tf0"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 7516 * @license lucide-react v0.462.0 - ISC 7517 * 7518 * This source code is licensed under the ISC license. 7519 * See the LICENSE file in the root directory of this source tree. 7520 */const Qz=S("Vibrate",[["path",{d:"m2 8 2 2-2 2 2 2-2 2",key:"sv1b1"}],["path",{d:"m22 8-2 2 2 2-2 2 2 2",key:"101i4y"}],["rect",{width:"8",height:"14",x:"8",y:"5",rx:"1",key:"1oyrl4"}]]);/** 7521 * @license lucide-react v0.462.0 - ISC 7522 * 7523 * This source code is licensed under the ISC license. 7524 * See the LICENSE file in the root directory of this source tree. 7525 */const Jz=S("VideoOff",[["path",{d:"M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196",key:"w8jjjt"}],["path",{d:"M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2",key:"1xawa7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 7526 * @license lucide-react v0.462.0 - ISC 7527 * 7528 * This source code is licensed under the ISC license. 7529 * See the LICENSE file in the root directory of this source tree. 7530 */const eU=S("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** 7531 * @license lucide-react v0.462.0 - ISC 7532 * 7533 * This source code is licensed under the ISC license. 7534 * See the LICENSE file in the root directory of this source tree. 7535 */const tU=S("Videotape",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M2 8h20",key:"d11cs7"}],["circle",{cx:"8",cy:"14",r:"2",key:"1k2qr5"}],["path",{d:"M8 12h8",key:"1wcyev"}],["circle",{cx:"16",cy:"14",r:"2",key:"14k7lr"}]]);/** 7536 * @license lucide-react v0.462.0 - ISC 7537 * 7538 * This source code is licensed under the ISC license. 7539 * See the LICENSE file in the root directory of this source tree. 7540 */const rU=S("View",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]);/** 7541 * @license lucide-react v0.462.0 - ISC 7542 * 7543 * This source code is licensed under the ISC license. 7544 * See the LICENSE file in the root directory of this source tree. 7545 */const nU=S("Voicemail",[["circle",{cx:"6",cy:"12",r:"4",key:"1ehtga"}],["circle",{cx:"18",cy:"12",r:"4",key:"4vafl8"}],["line",{x1:"6",x2:"18",y1:"16",y2:"16",key:"pmt8us"}]]);/** 7546 * @license lucide-react v0.462.0 - ISC 7547 * 7548 * This source code is licensed under the ISC license. 7549 * See the LICENSE file in the root directory of this source tree. 7550 */const aU=S("Volleyball",[["path",{d:"M11.1 7.1a16.55 16.55 0 0 1 10.9 4",key:"2880wi"}],["path",{d:"M12 12a12.6 12.6 0 0 1-8.7 5",key:"113sja"}],["path",{d:"M16.8 13.6a16.55 16.55 0 0 1-9 7.5",key:"1qmsgl"}],["path",{d:"M20.7 17a12.8 12.8 0 0 0-8.7-5 13.3 13.3 0 0 1 0-10",key:"1bmeqp"}],["path",{d:"M6.3 3.8a16.55 16.55 0 0 0 1.9 11.5",key:"iekzv9"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 7551 * @license lucide-react v0.462.0 - ISC 7552 * 7553 * This source code is licensed under the ISC license. 7554 * See the LICENSE file in the root directory of this source tree. 7555 */const iU=S("Volume1",[["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"}]]);/** 7556 * @license lucide-react v0.462.0 - ISC 7557 * 7558 * This source code is licensed under the ISC license. 7559 * See the LICENSE file in the root directory of this source tree. 7560 */const sU=S("Volume2",[["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"}]]);/** 7561 * @license lucide-react v0.462.0 - ISC 7562 * 7563 * This source code is licensed under the ISC license. 7564 * See the LICENSE file in the root directory of this source tree. 7565 */const oU=S("VolumeOff",[["path",{d:"M16 9a5 5 0 0 1 .95 2.293",key:"1fgyg8"}],["path",{d:"M19.364 5.636a9 9 0 0 1 1.889 9.96",key:"l3zxae"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"m7 7-.587.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.298V11",key:"1gbwow"}],["path",{d:"M9.828 4.172A.686.686 0 0 1 11 4.657v.686",key:"s2je0y"}]]);/** 7566 * @license lucide-react v0.462.0 - ISC 7567 * 7568 * This source code is licensed under the ISC license. 7569 * See the LICENSE file in the root directory of this source tree. 7570 */const lU=S("VolumeX",[["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"}]]);/** 7571 * @license lucide-react v0.462.0 - ISC 7572 * 7573 * This source code is licensed under the ISC license. 7574 * See the LICENSE file in the root directory of this source tree. 7575 */const cU=S("Volume",[["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"}]]);/** 7576 * @license lucide-react v0.462.0 - ISC 7577 * 7578 * This source code is licensed under the ISC license. 7579 * See the LICENSE file in the root directory of this source tree. 7580 */const uU=S("Vote",[["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}],["path",{d:"M5 7c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v12H5V7Z",key:"1ezoue"}],["path",{d:"M22 19H2",key:"nuriw5"}]]);/** 7581 * @license lucide-react v0.462.0 - ISC 7582 * 7583 * This source code is licensed under the ISC license. 7584 * See the LICENSE file in the root directory of this source tree.
7585 */const dU=S("WalletCards",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]]);/** 7586 * @license lucide-react v0.462.0 - ISC 7587 * 7588 * This source code is licensed under the ISC license. 7589 * See the LICENSE file in the root directory of this source tree. 7590 */const v1=S("WalletMinimal",[["path",{d:"M17 14h.01",key:"7oqj8z"}],["path",{d:"M7 7h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14",key:"u1rqew"}]]);/** 7591 * @license lucide-react v0.462.0 - ISC 7592 * 7593 * This source code is licensed under the ISC license. 7594 * See the LICENSE file in the root directory of this source tree. 7595 */const hU=S("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** 7596 * @license lucide-react v0.462.0 - ISC 7597 * 7598 * This source code is licensed under the ISC license. 7599 * See the LICENSE file in the root directory of this source tree. 7600 */const fU=S("Wallpaper",[["circle",{cx:"8",cy:"9",r:"2",key:"gjzl9d"}],["path",{d:"m9 17 6.1-6.1a2 2 0 0 1 2.81.01L22 15V5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2",key:"69xh40"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}]]);/** 7601 * @license lucide-react v0.462.0 - ISC 7602 * 7603 * This source code is licensed under the ISC license. 7604 * See the LICENSE file in the root directory of this source tree. 7605 */const x1=S("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** 7606 * @license lucide-react v0.462.0 - ISC 7607 * 7608 * This source code is licensed under the ISC license. 7609 * See the LICENSE file in the root directory of this source tree. 7610 */const pU=S("Wand",[["path",{d:"M15 4V2",key:"z1p9b7"}],["path",{d:"M15 16v-2",key:"px0unx"}],["path",{d:"M8 9h2",key:"1g203m"}],["path",{d:"M20 9h2",key:"19tzq7"}
7610],["path",{d:"M17.8 11.8 19 13",key:"yihg8r"}],["path",{d:"M15 9h.01",key:"x1ddxp"}],["path",{d:"M17.8 6.2 19 5",key:"fd4us0"}],["path",{d:"m3 21 9-9",key:"1jfql5"}],["path",{d:"M12.2 6.2 11 5",key:"i3da3b"}]]);/** 7611 * @license lucide-react v0.462.0 - ISC 7612 * 7613 * This source code is licensed under the ISC license. 7614 * See the LICENSE file in the root directory of this source tree. 7615 */const mU=S("Warehouse",[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]]);/** 7616 * @license lucide-react v0.462.0 - ISC 7617 * 7618 * This source code is licensed under the ISC license. 7619 * See the LICENSE file in the root directory of this source tree. 7620 */const gU=S("WashingMachine",[["path",{d:"M3 6h3",key:"155dbl"}],["path",{d:"M17 6h.01",key:"e2y6kg"}],["rect",{width:"18",height:"20",x:"3",y:"2",rx:"2",key:"od3kk9"}],["circle",{cx:"12",cy:"13",r:"5",key:"nlbqau"}],["path",{d:"M12 18a2.5 2.5 0 0 0 0-5 2.5 2.5 0 0 1 0-5",key:"17lach"}]]);/** 7621 * @license lucide-react v0.462.0 - ISC 7622 * 7623 * This source code is licensed under the ISC license. 7624 * See the LICENSE file in the root directory of this source tree. 7625 */const yU=S("Watch",[["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["polyline",{points:"12 10 12 12 13 13",key:"19dquz"}],["path",{d:"m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05",key:"18k57s"}],["path",{d:"m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05",key:"16ny36"}]]);/** 7626 * @license lucide-react v0.462.0 - ISC 7627 * 7628 * This source code is licensed under the ISC license. 7629 * See the LICENSE file in the root directory of this source tree. 7630 */const vU=S("Waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]);/** 7631 * @license lucide-react v0.462.0 - ISC 7632 * 7633 * This source code is licensed under the ISC license. 7634 * See the LICENSE file in the root directory of this source tree. 7635 */const xU=S("Waypoints",[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]]);/** 7636 * @license lucide-react v0.462.0 - ISC 7637 * 7638 * This source code is licensed under the ISC license. 7639 * See the LICENSE file in the root directory of this source tree. 7640 */const bU=S("Webcam",[["circle",{cx:"12",cy:"10",r:"8",key:"1gshiw"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 22h10",key:"10w4w3"}],["path",{d:"M12 22v-4",key:"1utk9m"}]]);/** 7641 * @license lucide-react v0.462.0 - ISC 7642 * 7643 * This source code is licensed under the ISC license. 7644 * See the LICENSE file in the root directory of this source tree. 7645 */const wU=S("WebhookOff",[["path",{d:"M17 17h-5c-1.09-.02-1.94.92-2.5 1.9A3 3 0 1 1 2.57 15",key:"1tvl6x"}],["path",{d:"M9 3.4a4 4 0 0 1 6.52.66",key:"q04jfq"}],["path",{d:"m6 17 3.1-5.8a2.5 2.5 0 0 0 .057-2.05",key:"azowf0"}],["path",{d:"M20.3 20.3a4 4 0 0 1-2.3.7",key:"5joiws"}],["path",{d:"M18.6 13a4 4 0 0 1 3.357 3.414",key:"cangb8"}],["path",{d:"m12 6 .6 1",key:"tpjl1n"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 7646 * @license lucide-react v0.462.0 - ISC 7647 * 7648 * This source code is licensed under the ISC license. 7649 * See the LICENSE file in the root directory of this source tree. 7650 */const kU=S("Webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);/** 7651 * @license lucide-react v0.462.0 - ISC 7652 * 7653 * This source code is licensed under the ISC license. 7654 * See the LICENSE file in the root directory of this source tree. 7655 */const _U=S("Weight",[["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}],["path",{d:"M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z",key:"56o5sh"}]]);/** 7656 * @license lucide-react v0.462.0 - ISC 7657 * 7658 * This source code is licensed under the ISC license. 7659 * See the LICENSE file in the root directory of this source tree. 7660 */const SU=S("WheatOff",[["path",{d:"m2 22 10-10",key:"28ilpk"}],["path",{d:"m16 8-1.17 1.17",key:"1qqm82"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"m8 8-.53.53a3.5 3.5 0 0 0 0 4.94L9 15l1.53-1.53c.55-.55.88-1.25.98-1.97",key:"4wz8re"}],["path",{d:"M10.91 5.26c.15-.26.34-.51.56-.73L13 3l1.53 1.53a3.5 3.5 0 0 1 .28 4.62",key:"rves66"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"m16 16-.53.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.49 3.49 0 0 1 1.97-.98",key:"ak46r"}],["path",{d:"M18.74 13.09c.26-.15.51-.34.73-.56L21 11l-1.53-1.53a3.5 3.5 0 0 0-4.62-.28",key:"1tw520"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 7661 * @license lucide-react v0.462.0 - ISC 7662 * 7663 * This source code is licensed under the ISC license. 7664 * See the LICENSE file in the root directory of this source tree. 7665 */const jU=S("Wheat",[["path",{d:"M2 22 16 8",key:"60hf96"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1sdzmb"}],["path",{d:"M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"eoatbi"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"2m8kc5"}],["path",{d:"M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"vex3ng"}]]);/** 7666 * @license lucide-react v0.462.0 - ISC 7667 * 7668 * This source code is licensed under the ISC license. 7669 * See the LICENSE file in the root directory of this source tree. 7670 */const EU=S("WholeWord",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]);/** 7671 * @license lucide-react v0.462.0 - ISC 7672 * 7673 * This source code is licensed under the ISC license. 7674 * See the LICENSE file in the root directory of this source tree. 7675 */const CU=S("WifiHigh",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/** 7676 * @license lucide-react v0.462.0 - ISC 7677 * 7678 * This source code is licensed under the ISC license. 7679 * See the LICENSE file in the root directory of this source tree. 7680 */const NU=S("WifiLow",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/** 7681 * @license lucide-react v0.462.0 - ISC 7682 * 7683 * This source code is licensed under the ISC license. 7684 * See the LICENSE file in the root directory of this source tree. 7685 */const TU=S("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}
7685],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 7686 * @license lucide-react v0.462.0 - ISC 7687 * 7688 * This source code is licensed under the ISC license. 7689 * See the LICENSE file in the root directory of this source tree. 7690 */const AU=S("WifiZero",[["path",{d:"M12 20h.01",key:"zekei9"}]]);/** 7691 * @license lucide-react v0.462.0 - ISC 7692 * 7693 * This source code is licensed under the ISC license. 7694 * See the LICENSE file in the root directory of this source tree. 7695 */const MU=S("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/** 7696 * @license lucide-react v0.462.0 - ISC 7697 * 7698 * This source code is licensed under the ISC license. 7699 * See the LICENSE file in the root directory of this source tree. 7700 */const IU=S("WindArrowDown",[["path",{d:"M10 2v8",key:"d4bbey"}],["path",{d:"M12.8 21.6A2 2 0 1 0 14 18H2",key:"19kp1d"}],["path",{d:"M17.5 10a2.5 2.5 0 1 1 2 4H2",key:"19kpjc"}],["path",{d:"m6 6 4 4 4-4",key:"k13n16"}]]);/** 7701 * @license lucide-react v0.462.0 - ISC 7702 * 7703 * This source code is licensed under the ISC license. 7704 * See the LICENSE file in the root directory of this source tree. 7705 */const PU=S("Wind",[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]]);/** 7706 * @license lucide-react v0.462.0 - ISC 7707 * 7708 * This source code is licensed under the ISC license. 7709 * See the LICENSE file in the root directory of this source tree. 7710 */const LU=S("WineOff",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h3m7 0h-1.343",key:"v48bem"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M7.307 7.307A12.33 12.33 0 0 0 7 10a5 5 0 0 0 7.391 4.391M8.638 2.981C8.75 2.668 8.872 2.34 9 2h6c1.5 4 2 6 2 8 0 .407-.05.809-.145 1.198",key:"1ymjlu"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 7711 * @license lucide-react v0.462.0 - ISC 7712 * 7713 * This source code is licensed under the ISC license. 7714 * See the LICENSE file in the root directory of this source tree. 7715 */const OU=S("Wine",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z",key:"10ffi3"}]]);/** 7716 * @license lucide-react v0.462.0 - ISC 7717 * 7718 * This source code is licensed under the ISC license. 7719 * See the LICENSE file in the root directory of this source tree. 7720 */const RU=S("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/** 7721 * @license lucide-react v0.462.0 - ISC 7722 * 7723 * This source code is licensed under the ISC license. 7724 * See the LICENSE file in the root directory of this source tree. 7725 */const DU=S("Worm",[["path",{d:"m19 12-1.5 3",key:"9bcu4o"}],["path",{d:"M19.63 18.81 22 20",key:"121v98"}],["path",{d:"M6.47 8.23a1.68 1.68 0 0 1 2.44 1.93l-.64 2.08a6.76 6.76 0 0 0 10.16 7.67l.42-.27a1 1 0 1 0-2.73-4.21l-.42.27a1.76 1.76 0 0 1-2.63-1.99l.64-2.08A6.66 6.66 0 0 0 3.94 3.9l-.7.4a1 1 0 1 0 2.55 4.34z",key:"1tij6q"}]]);/** 7726 * @license lucide-react v0.462.0 - ISC 7727 * 7728 * This source code is licensed under the ISC license. 7729 * See the LICENSE file in the root directory of this source tree. 7730 */const FU=S("WrapText",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["path",{d:"M3 12h15a3 3 0 1 1 0 6h-4",key:"1cl7v7"}],["polyline",{points:"16 16 14 18 16 20",key:"1jznyi"}],["line",{x1:"3",x2:"10",y1:"18",y2:"18",key:"1h33wv"}]]);/** 7731 * @license lucide-react v0.462.0 - ISC 7732 * 7733 * This source code is licensed under the ISC license. 7734 * See the LICENSE file in the root directory of this source tree. 7735 */const Ay=S("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 7736 * @license lucide-react v0.462.0 - ISC 7737 * 7738 * This source code is licensed under the ISC license. 7739 * See the LICENSE file in the root directory of this source tree. 7740 */const hi=S("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
7740],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 7741 * @license lucide-react v0.462.0 - ISC 7742 * 7743 * This source code is licensed under the ISC license. 7744 * See the LICENSE file in the root directory of this source tree. 7745 */const ww=S("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);/** 7746 * @license lucide-react v0.462.0 - ISC 7747 * 7748 * This source code is licensed under the ISC license. 7749 * See the LICENSE file in the root directory of this source tree. 7750 */const $U=S("ZapOff",[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317",key:"193nxd"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773",key:"27a7lr"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643",key:"1e0qe9"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 7751 * @license lucide-react v0.462.0 - ISC 7752 * 7753 * This source code is licensed under the ISC license. 7754 * See the LICENSE file in the root directory of this source tree. 7755 */const kw=S("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);/** 7756 * @license lucide-react v0.462.0 - ISC 7757 * 7758 * This source code is licensed under the ISC license. 7759 * See the LICENSE file in the root directory of this source tree. 7760 */const BU=S("ZoomIn",[["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"}]]);/** 7761 * @license lucide-react v0.462.0 - ISC 7762 * 7763 * This source code is licensed under the ISC license. 7764 * See the LICENSE file in the root directory of this source tree. 7765 */const zU=S("ZoomOut",[["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"}]]);/** 7766 * @license lucide-react v0.462.0 - ISC 7767 * 7768 * This source code is licensed under the ISC license. 7769 * See the LICENSE file in the root directory of this source tree. 7770 */const fOe=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:AS,AArrowUp:MS,ALargeSmall:Bb,Accessibility:IS,Activity:PS,AirVent:LS,Airplay:OS,AlarmClock:DS,AlarmClockCheck:nf,AlarmClockMinus:af,AlarmClockOff:RS,AlarmClockPlus:sf,AlarmSmoke:FS,Album:$S,AlignCenter:US,AlignCenterHorizontal:BS,AlignCenterVertical:zS,AlignEndHorizontal:qS,AlignEndVertical:HS,AlignHorizontalDistributeCenter:VS,AlignHorizontalDistributeEnd:WS,AlignHorizontalDistributeStart:GS,AlignHorizontalJustifyCenter:KS,AlignHorizontalJustifyEnd:YS,AlignHorizontalJustifyStart:XS,AlignHorizontalSpaceAround:ZS,AlignHorizontalSpaceBetween:QS,AlignJustify:JS,AlignLeft:ej,AlignRight:tj,AlignStartHorizontal:rj,AlignStartVertical:nj,AlignVerticalDistributeCenter:aj,AlignVerticalDistributeEnd:ij,AlignVerticalDistributeStart:sj,AlignVerticalJustifyCenter:oj,AlignVerticalJustifyEnd:lj,AlignVerticalJustifyStart:cj,AlignVerticalSpaceAround:uj,AlignVerticalSpaceBetween:dj,Ambulance:hj,Ampersand:fj,Ampersands:pj,Amphora:mj,Anchor:gj,Angry:yj,Annoyed:vj,Antenna:xj,Anvil:bj,Aperture:wj,AppWindow:_j,AppWindowMac:kj,Apple:Sj,Archive:Cj,ArchiveRestore:jj,ArchiveX:Ej,Armchair:Nj,ArrowBigDown:Aj,ArrowBigDownDash:Tj,ArrowBigLeft:Ij,ArrowBigLeftDash:Mj,ArrowBigRight:Lj,ArrowBigRightDash:Pj,ArrowBigUp:Rj,ArrowBigUpDash:Oj,ArrowDown:zb,ArrowDown01:Dj,ArrowDown10:Fj,ArrowDownAZ:of,ArrowDownFromLine:$j,ArrowDownLeft:Bj,ArrowDownNarrowWide:zj,ArrowDownRight:Uj,ArrowDownToDot:qj,ArrowDownToLine:Hj,ArrowDownUp:Vj,ArrowDownWideNarrow:lf,ArrowDownZA:cf,ArrowLeft:ea,ArrowLeftFromLine:Wj,ArrowLeftRight:Gj,ArrowLeftToLine:Kj,ArrowRight:du,ArrowRightFromLine:Yj,ArrowRightLeft:Xj,ArrowRightToLine:Zj,ArrowUp:Ub,ArrowUp01:Qj,ArrowUp10:Jj,ArrowUpAZ:uf,ArrowUpDown:e5,ArrowUpFromDot:t5,ArrowUpFromLine:r5,ArrowUpLeft:n5,ArrowUpNarrowWide:df,ArrowUpRight:a5,ArrowUpToLine:i5,ArrowUpWideNarrow:s5,ArrowUpZA:hf,ArrowsUpFromLine:o5,Asterisk:l5,AtSign:c5,Atom:u5,AudioLines:d5,AudioWaveform:h5,Award:f5,Axe:p5,Axis3d:ff,Baby:qb,Backpack:m5,Badge:M5,BadgeAlert:g5,BadgeCent:y5,BadgeCheck:pf,BadgeDollarSign:v5,BadgeEuro:x5,BadgeHelp:b5,BadgeIndianRupee:w5,BadgeInfo:k5,BadgeJapaneseYen:_5,BadgeMinus:S5,BadgePercent:j5,BadgePlus:E5,BadgePoundSterling:C5,BadgeRussianRuble:N5,BadgeSwissFranc:T5,BadgeX:A5,BaggageClaim:I5,Ban:P5,Banana:L5,Bandage:O5,Banknote:R5,Barcode:D5,Baseline:F5,Bath:$5,Battery:V5,BatteryCharging:B5,BatteryFull:z5,BatteryLow:U5,BatteryMedium:q5,BatteryWarning:H5,Beaker:W5,Bean:K5,BeanOff:G5,Bed:Z5,BedDouble:Y5,BedSingle:X5,Beef:Q5,Beer:e6,BeerOff:J5,Bell:o6,BellDot:t6,BellElectric:r6,BellMinus:n6,BellOff:a6,BellPlus:i6,BellRing:s6,BetweenHorizontalEnd:mf,BetweenHorizontalStart:gf,BetweenVerticalEnd:l6,BetweenVerticalStart:c6,BicepsFlexed:u6,Bike:d6,Binary:h6,Binoculars:f6,Biohazard:p6,Bird:m6,Bitcoin:g6,Blend:y6,Blinds:v6,Blocks:x6,Bluetooth:_6,BluetoothConnected:b6,BluetoothOff:w6,BluetoothSearching:k6,Bold:S6,Bolt:j6,Bomb:E6,Bone:C6,Book:hu,BookA:Hb,BookAudio:N6,BookCheck:Vb,BookCopy:T6,BookDashed:yf,BookDown:A6,BookHeadphones:M6,BookHeart:I6,BookImage:P6,BookKey:L6,BookLock:O6,BookMarked:R6,BookMinus:D6,BookOpen:xr,BookOpenCheck:F6,BookOpenText:$6,BookPlus:B6,BookText:z6,BookType:U6,BookUp:H6,BookUp2:q6,BookUser:V6,BookX:W6,Bookmark:Z6,BookmarkCheck:G6,BookmarkMinus:K6,BookmarkPlus:Y6,BookmarkX:X6,BoomBox:Q6,Bot:Wb,BotMessageSquare:J6,BotOff
7770:eE,Box:tE,Boxes:rE,Braces:vf,Brackets:nE,Brain:sE,BrainCircuit:aE,BrainCog:iE,BrickWall:oE,Briefcase:dE,BriefcaseBusiness:lE,BriefcaseConveyorBelt:cE,BriefcaseMedical:uE,BringToFront:hE,Brush:fE,Bug:gE,BugOff:pE,BugPlay:mE,Building:vE,Building2:yE,Bus:bE,BusFront:xE,Cable:kE,CableCar:wE,Cake:SE,CakeSlice:_E,Calculator:jE,Calendar:ic,Calendar1:EE,CalendarArrowDown:CE,CalendarArrowUp:NE,CalendarCheck:AE,CalendarCheck2:TE,CalendarClock:Gb,CalendarCog:ME,CalendarDays:IE,CalendarFold:PE,CalendarHeart:LE,CalendarMinus:RE,CalendarMinus2:OE,CalendarOff:DE,CalendarPlus:$E,CalendarPlus2:FE,CalendarRange:BE,CalendarSearch:zE,CalendarSync:UE,CalendarX:HE,CalendarX2:qE,Camera:WE,CameraOff:VE,Candy:YE,CandyCane:GE,CandyOff:KE,Cannabis:XE,Captions:xf,CaptionsOff:ZE,Car:eC,CarFront:QE,CarTaxiFront:JE,Caravan:tC,Carrot:rC,CaseLower:nC,CaseSensitive:aC,CaseUpper:iC,CassetteTape:sC,Cast:oC,Castle:lC,Cat:cC,Cctv:uC,ChartArea:bf,ChartBar:kf,ChartBarBig:wf,ChartBarDecreasing:dC,ChartBarIncreasing:hC,ChartBarStacked:fC,ChartCandlestick:_f,ChartColumn:Kc,ChartColumnBig:Sf,ChartColumnDecreasing:pC,ChartColumnIncreasing:jf,ChartColumnStacked:mC,ChartGantt:gC,ChartLine:Ef,ChartNetwork:yC,ChartNoAxesColumn:Nf,ChartNoAxesColumnDecreasing:vC,ChartNoAxesColumnIncreasing:Cf,ChartNoAxesCombined:xC,ChartNoAxesGantt:Tf,ChartPie:Af,ChartScatter:Mf,ChartSpline:bC,Check:_r,CheckCheck:wC,ChefHat:kC,Cherry:_C,ChevronDown:sc,ChevronFirst:SC,ChevronLast:jC,ChevronLeft:fu,ChevronRight:Vs,ChevronUp:Kb,ChevronsDown:CC,ChevronsDownUp:EC,ChevronsLeft:AC,ChevronsLeftRight:TC,ChevronsLeftRightEllipsis:NC,ChevronsRight:IC,ChevronsRightLeft:MC,ChevronsUp:PC,ChevronsUpDown:py,Chrome:LC,Church:OC,Cigarette:DC,CigaretteOff:RC,Circle:e0,CircleAlert:Ya,CircleArrowDown:If,CircleArrowLeft:Pf,CircleArrowOutDownLeft:Lf,CircleArrowOutDownRight:Of,CircleArrowOutUpLeft:Rf,CircleArrowOutUpRight:Df,CircleArrowRight:Ff,CircleArrowUp:$f,CircleCheck:Si,CircleCheckBig:Vi,CircleChevronDown:Bf,CircleChevronLeft:zf,CircleChevronRight:Uf,CircleChevronUp:qf,CircleDashed:FC,CircleDivide:Hf,CircleDollarSign:$C,CircleDot:zC,CircleDotDashed:BC,CircleEllipsis:UC,CircleEqual:qC,CircleFadingArrowUp:HC,CircleFadingPlus:VC,CircleGauge:Vf,CircleHelp:tl,CircleMinus:Wf,CircleOff:WC,CircleParking:Kf,CircleParkingOff:Gf,CirclePause:Yf,CirclePercent:Xf,CirclePlay:Zf,CirclePlus:Yc,CirclePower:Qf,CircleSlash:GC,CircleSlash2:Jf,CircleStop:ep,CircleUser:rp,CircleUserRound:tp,CircleX:li,CircuitBoard:KC,Citrus:YC,Clapperboard:XC,Clipboard:aN,ClipboardCheck:ZC,ClipboardCopy:QC,ClipboardList:JC,ClipboardMinus:eN,ClipboardPaste:Yb,ClipboardPen:ap,ClipboardPenLine:np,ClipboardPlus:tN,ClipboardType:rN,ClipboardX:nN,Clock:Da,Clock1:iN,Clock10:sN,Clock11:oN,Clock12:lN,Clock2:cN,Clock3:uN,Clock4:dN,Clock5:hN,Clock6:fN,Clock7:pN,Clock8:mN,Clock9:gN,ClockAlert:yN,ClockArrowDown:vN,ClockArrowUp:xN,Cloud:LN,CloudAlert:bN,CloudCog:wN,CloudDownload:ip,CloudDrizzle:kN,CloudFog:_N,CloudHail:SN,CloudLightning:jN,CloudMoon:CN,CloudMoonRain:EN,CloudOff:NN,CloudRain:AN,CloudRainWind:TN,CloudSnow:MN,CloudSun:PN,CloudSunRain:IN,CloudUpload:sp,Cloudy:ON,Clover:RN,Club:DN,Code:FN,CodeXml:op,Codepen:$N,Codesandbox:BN,Coffee:zN,Cog:UN,Coins:qN,Columns2:lp,Columns3:cp,Columns4:HN,Combine:VN,Command:WN,Compass:GN,Component:KN,Computer:YN,ConciergeBell:XN,Cone:ZN,Construction:QN,Contact:JN,ContactRound:up,Container:e8,Contrast:t8,Cookie:r8,CookingPot:n8,Copy:t0,CopyCheck:a8,CopyMinus:i8,CopyPlus:s8,CopySlash:o8,CopyX:l8,Copyleft:c8,Copyright:u8,CornerDownLeft:d8,CornerDownRight:h8,CornerLeftDown:f8,CornerLeftUp:p8,CornerRightDown:m8,CornerRightUp:g8,CornerUpLeft:y8,CornerUpRight:v8,Cpu:x8,CreativeCommons:b8,CreditCard:bs,Croissant:w8,Crop:k8,Cross:_8,Crosshair:S8,Crown:my,Cuboid:j8,CupSoda:E8,Currency:C8,Cylinder:N8,Dam:T8,Database:I8,DatabaseBackup:A8,DatabaseZap:M8,Delete:P8,Dessert:L8,Diameter:O8,Diamond:F8,DiamondMinus:R8,DiamondPercent:dp,DiamondPlus:D8,Dice1:$8,Dice2:B8,Dice3:z8,Dice4:U8,Dice5:q8,Dice6:H8,Dices:V8,Diff:W8,Disc:X8,Disc2:G8,Disc3:K8,DiscAlbum:Y8,Divide:Z8,Dna:J8,DnaOff:Q8,Dock:eT,Dog:tT,DollarSign:gy,Donut:rT,DoorClosed:nT,DoorOpen:aT,Dot:iT,Download:sT,DraftingCompass:oT,Drama:lT,Dribbble:cT,Drill:uT,Droplet:dT,Droplets:hT,Drum:fT,Drumstick:pT,Dumbbell:mT,Ear:yT,EarOff:gT,Earth:hp,EarthLock:vT,Eclipse:xT,Egg:kT,EggFried:bT,EggOff:wT,Ellipsis:Xc,EllipsisVertical:fp,Equal:jT,EqualApproximately:_T,EqualNot:ST,Eraser:ET,EthernetPort:CT,Euro:NT,Expand:TT,ExternalLink:oc,Eye:Qa,EyeClosed:AT,EyeOff:MT,Facebook:Xb,Factory:IT,Fan:PT,FastForward:LT,Feather:OT,Fence:RT,FerrisWheel:DT,Figma:FT,File:IA,FileArchive:$T,FileAudio:zT,FileAudio2:BT,FileAxis3d:pp,FileBadge:qT,FileBadge2:UT,FileBox:HT,FileChartColumn:gp,FileChartColumnIncreasing:mp,FileChartLine:yp,FileChartPie:vp,FileCheck:WT,FileCheck2:VT,FileClock:GT,FileCode:yy,FileCode2:KT,FileCog:xp,FileDiff:YT,FileDigit:XT,FileDown:vy,FileHeart:ZT,FileImage:QT,FileInput:JT,FileJson:tA,FileJson2:eA,FileKey:nA,FileKey2:rA,FileLock:iA,FileLock2:aA,FileMinus:oA,FileMinus2:sA,FileMusic:lA,FileOutput:cA,FilePen:wp,FilePenLine:bp,FilePlus:dA,FilePlus2:uA,FileQuestion:hA,FileScan:fA,FileSearch:mA,FileSearch2:pA,FileSliders:gA,FileSpreadsheet:yA,FileStack:vA,FileSymlink:xA,FileTerminal:bA,FileText:Ti,FileType:kA,FileType2:wA,FileUp:_A,FileUser:SA,FileVideo:EA,File
7770Video2:jA,FileVolume:NA,FileVolume2:CA,FileWarning:TA,FileX:MA,FileX2:AA,Files:PA,Film:LA,Filter:RA,FilterX:OA,Fingerprint:DA,FireExtinguisher:FA,Fish:zA,FishOff:$A,FishSymbol:BA,Flag:VA,FlagOff:UA,FlagTriangleLeft:qA,FlagTriangleRight:HA,Flame:GA,FlameKindling:WA,Flashlight:YA,FlashlightOff:KA,FlaskConical:ZA,FlaskConicalOff:XA,FlaskRound:QA,FlipHorizontal:eM,FlipHorizontal2:JA,FlipVertical:rM,FlipVertical2:tM,Flower:aM,Flower2:nM,Focus:Zb,FoldHorizontal:iM,FoldVertical:sM,Folder:PM,FolderArchive:oM,FolderCheck:lM,FolderClock:cM,FolderClosed:uM,FolderCode:dM,FolderCog:kp,FolderDot:hM,FolderDown:fM,FolderGit:mM,FolderGit2:pM,FolderHeart:gM,FolderInput:yM,FolderKanban:vM,FolderKey:xM,FolderLock:bM,FolderMinus:wM,FolderOpen:_M,FolderOpenDot:kM,FolderOutput:SM,FolderPen:_p,FolderPlus:jM,FolderRoot:EM,FolderSearch:NM,FolderSearch2:CM,FolderSymlink:TM,FolderSync:AM,FolderTree:Qb,FolderUp:MM,FolderX:IM,Folders:LM,Footprints:OM,Forklift:RM,Forward:DM,Frame:FM,Framer:$M,Frown:BM,Fuel:zM,Fullscreen:UM,GalleryHorizontal:HM,GalleryHorizontalEnd:qM,GalleryThumbnails:VM,GalleryVertical:GM,GalleryVerticalEnd:WM,Gamepad:YM,Gamepad2:KM,Gauge:XM,Gavel:ZM,Gem:QM,Ghost:JM,Gift:r0,GitBranch:tI,GitBranchPlus:eI,GitCommitHorizontal:Sp,GitCommitVertical:rI,GitCompare:aI,GitCompareArrows:nI,GitFork:iI,GitGraph:sI,GitMerge:oI,GitPullRequest:fI,GitPullRequestArrow:lI,GitPullRequestClosed:cI,GitPullRequestCreate:dI,GitPullRequestCreateArrow:uI,GitPullRequestDraft:hI,Github:pI,Gitlab:mI,GlassWater:gI,Glasses:yI,Globe:xI,GlobeLock:vI,Goal:bI,Grab:wI,GraduationCap:Jb,Grape:kI,Grid2x2:Ep,Grid2x2Check:_I,Grid2x2Plus:jp,Grid2x2X:SI,Grid3x3:Ll,Grip:CI,GripHorizontal:jI,GripVertical:EI,Group:NI,Guitar:TI,Ham:AI,Hammer:MI,Hand:RI,HandCoins:II,HandHeart:PI,HandHelping:Cp,HandMetal:LI,HandPlatter:OI,Handshake:DI,HardDrive:BI,HardDriveDownload:FI,HardDriveUpload:$I,HardHat:zI,Hash:UI,Haze:qI,HdmiPort:HI,Heading:ZI,Heading1:VI,Heading2:WI,Heading3:GI,Heading4:KI,Heading5:YI,Heading6:XI,HeadphoneOff:QI,Headphones:JI,Headset:eP,Heart:qd,HeartCrack:tP,HeartHandshake:rP,HeartOff:nP,HeartPulse:aP,Heater:iP,Hexagon:sP,Highlighter:oP,History:lP,Hop:uP,HopOff:cP,Hospital:dP,Hotel:hP,Hourglass:fP,House:Np,HousePlug:pP,HousePlus:mP,IceCreamBowl:Tp,IceCreamCone:Ap,IdCard:gP,Image:lc,ImageDown:yP,ImageMinus:vP,ImageOff:ew,ImagePlay:xP,ImagePlus:tw,ImageUp:bP,ImageUpscale:wP,Images:kP,Import:xy,Inbox:_P,IndentDecrease:Mp,IndentIncrease:Ip,IndianRupee:SP,Infinity:jP,Info:EP,InspectionPanel:CP,Instagram:rw,Italic:NP,IterationCcw:TP,IterationCw:AP,JapaneseYen:MP,Joystick:IP,Kanban:PP,Key:RP,KeyRound:LP,KeySquare:OP,Keyboard:$P,KeyboardMusic:DP,KeyboardOff:FP,Lamp:VP,LampCeiling:BP,LampDesk:zP,LampFloor:UP,LampWallDown:qP,LampWallUp:HP,LandPlot:WP,Landmark:GP,Languages:KP,Laptop:XP,LaptopMinimal:Pp,LaptopMinimalCheck:YP,Lasso:QP,LassoSelect:ZP,Laugh:JP,Layers:r7,Layers2:e7,Layers3:t7,LayoutDashboard:n7,LayoutGrid:a7,LayoutList:i7,LayoutPanelLeft:s7,LayoutPanelTop:o7,LayoutTemplate:l7,Leaf:c7,LeafyGreen:u7,Lectern:d7,LetterText:h7,Library:nw,LibraryBig:f7,LifeBuoy:p7,Ligature:m7,Lightbulb:aw,LightbulbOff:g7,Link:v7,Link2:by,Link2Off:y7,Linkedin:x7,List:L7,ListCheck:b7,ListChecks:iw,ListCollapse:w7,ListEnd:k7,ListFilter:_7,ListMinus:S7,ListMusic:j7,ListOrdered:E7,ListPlus:C7,ListRestart:N7,ListStart:T7,ListTodo:A7,ListTree:M7,ListVideo:I7,ListX:P7,Loader:R7,LoaderCircle:Me,LoaderPinwheel:O7,Locate:$7,LocateFixed:D7,LocateOff:F7,Lock:Hd,LockKeyhole:B7,LockKeyholeOpen:Lp,LockOpen:Op,LogIn:z7,LogOut:sw,Logs:U7,Lollipop:q7,Luggage:H7,Magnet:V7,Mail:Vd,MailCheck:W7,MailMinus:G7,MailOpen:K7,MailPlus:Y7,MailQuestion:X7,MailSearch:Z7,MailWarning:Q7,MailX:J7,Mailbox:eL,Mails:tL,Map:fL,MapPin:wy,MapPinCheck:nL,MapPinCheckInside:rL,MapPinHouse:aL,MapPinMinus:sL,MapPinMinusInside:iL,MapPinOff:oL,MapPinPlus:cL,MapPinPlusInside:lL,MapPinX:dL,MapPinXInside:uL,MapPinned:hL,Martini:pL,Maximize:gL,Maximize2:mL,Medal:yL,Megaphone:xL,MegaphoneOff:vL,Meh:bL,MemoryStick:wL,Menu:ow,Merge:kL,MessageCircle:ky,MessageCircleCode:_L,MessageCircleDashed:SL,MessageCircleHeart:lw,MessageCircleMore:jL,MessageCircleOff:EL,MessageCirclePlus:CL,MessageCircleQuestion:NL,MessageCircleReply:TL,MessageCircleWarning:AL,MessageCircleX:ML,MessageSquare:Fa,MessageSquareCode:IL,MessageSquareDashed:PL,MessageSquareDiff:LL,MessageSquareDot:OL,MessageSquareHeart:RL,MessageSquareLock:DL,MessageSquareMore:FL,MessageSquareOff:$L,MessageSquarePlus:BL,MessageSquareQuote:zL,MessageSquareReply:UL,MessageSquareShare:qL,MessageSquareText:HL,MessageSquareWarning:VL,MessageSquareX:WL,MessagesSquare:GL,Mic:YL,MicOff:KL,MicVocal:Rp,Microchip:XL,Microscope:ZL,Microwave:QL,Milestone:JL,Milk:t9,MilkOff:e9,Minim
7770ize:n9,Minimize2:r9,Minus:n0,Monitor:g9,MonitorCheck:a9,MonitorCog:i9,MonitorDot:s9,MonitorDown:o9,MonitorOff:l9,MonitorPause:c9,MonitorPlay:u9,MonitorSmartphone:d9,MonitorSpeaker:h9,MonitorStop:f9,MonitorUp:p9,MonitorX:m9,Moon:v9,MoonStar:y9,Mountain:b9,MountainSnow:x9,Mouse:E9,MouseOff:w9,MousePointer:j9,MousePointer2:k9,MousePointerBan:_9,MousePointerClick:S9,Move:$9,Move3d:Dp,MoveDiagonal:N9,MoveDiagonal2:C9,MoveDown:M9,MoveDownLeft:T9,MoveDownRight:A9,MoveHorizontal:I9,MoveLeft:P9,MoveRight:L9,MoveUp:D9,MoveUpLeft:O9,MoveUpRight:R9,MoveVertical:F9,Music:q9,Music2:B9,Music3:z9,Music4:U9,Navigation:G9,Navigation2:V9,Navigation2Off:H9,NavigationOff:W9,Network:K9,Newspaper:Y9,Nfc:X9,Notebook:eO,NotebookPen:Z9,NotebookTabs:Q9,NotebookText:J9,NotepadText:rO,NotepadTextDashed:tO,Nut:aO,NutOff:nO,Octagon:sO,OctagonAlert:Fp,OctagonMinus:iO,OctagonPause:$p,OctagonX:Bp,Omega:oO,Option:lO,Orbit:cO,Origami:uO,Package:vl,Package2:dO,PackageCheck:hO,PackageMinus:fO,PackageOpen:pO,PackagePlus:mO,PackageSearch:gO,PackageX:yO,PaintBucket:vO,PaintRoller:xO,Paintbrush:bO,PaintbrushVertical:zp,Palette:_y,PanelBottom:_O,PanelBottomClose:wO,PanelBottomDashed:Up,PanelBottomOpen:kO,PanelLeft:Wp,PanelLeftClose:qp,PanelLeftDashed:Hp,PanelLeftOpen:Vp,PanelRight:EO,PanelRightClose:SO,PanelRightDashed:Gp,PanelRightOpen:jO,PanelTop:TO,PanelTopClose:CO,PanelTopDashed:Kp,PanelTopOpen:NO,PanelsLeftBottom:AO,PanelsRightBottom:MO,PanelsTopLeft:Yp,Paperclip:IO,Parentheses:PO,ParkingMeter:LO,PartyPopper:OO,Pause:Sy,PawPrint:RO,PcCase:DO,Pen:dd,PenLine:ud,PenOff:FO,PenTool:$O,Pencil:cc,PencilLine:BO,PencilOff:zO,PencilRuler:UO,Pentagon:qO,Percent:HO,PersonStanding:VO,PhilippinePeso:WO,Phone:JO,PhoneCall:GO,PhoneForwarded:KO,PhoneIncoming:YO,PhoneMissed:XO,PhoneOff:ZO,PhoneOutgoing:QO,Pi:eR,Piano:tR,Pickaxe:rR,PictureInPicture:aR,PictureInPicture2:nR,PiggyBank:iR,Pilcrow:lR,PilcrowLeft:sR,PilcrowRight:oR,Pill:uR,PillBottle:cR,Pin:hR,PinOff:dR,Pipette:fR,Pizza:pR,Plane:yR,PlaneLanding:mR,PlaneTakeoff:gR,Play:a0,Plug:xR,Plug2:vR,PlugZap:Xp,Plus:uc,Pocket:wR,PocketKnife:bR,Podcast:kR,Pointer:SR,PointerOff:_R,Popcorn:jR,Popsicle:ER,PoundSterling:CR,Power:TR,PowerOff:NR,Presentation:AR,Printer:Wd,PrinterCheck:MR,Projector:IR,Proportions:PR,Puzzle:LR,Pyramid:OR,QrCode:RR,Quote:cw,Rabbit:DR,Radar:FR,Radiation:$R,Radical:BR,Radio:qR,RadioReceiver:zR,RadioTower:UR,Radius:HR,RailSymbol:VR,Rainbow:WR,Rat:GR,Ratio:KR,Receipt:nD,ReceiptCent:YR,ReceiptEuro:XR,ReceiptIndianRupee:ZR,ReceiptJapaneseYen:QR,ReceiptPoundSterling:JR,ReceiptRussianRuble:eD,ReceiptSwissFranc:tD,ReceiptText:rD,RectangleEllipsis:Zp,RectangleHorizontal:aD,RectangleVertical:iD,Recycle:sD,Redo:cD,Redo2:oD,RedoDot:lD,RefreshCcw:dD,RefreshCcwDot:uD,RefreshCw:Vn,RefreshCwOff:hD,Refrigerator:fD,Regex:pD,RemoveFormatting:mD,Repeat:uw,Repeat1:gD,Repeat2:yD,Replace:xD,ReplaceAll:vD,Reply:wD,ReplyAll:bD,Rewind:kD,Ribbon:_D,Rocket:SD,RockingChair:jD,RollerCoaster:ED,Rotate3d:Qp,RotateCcw:jy,RotateCcwSquare:CD,RotateCw:TD,RotateCwSquare:ND,Route:MD,RouteOff:AD,Router:ID,Rows2:Jp,Rows3:em,Rows4:PD,Rss:LD,Ruler:OD,RussianRuble:RD,Sailboat:DD,Salad:FD,Sandwich:$D,Satellite:zD,SatelliteDish:BD,Save:HD,SaveAll:UD,SaveOff:qD,Scale:VD,Scale3d:tm,Scaling:WD,Scan:eF,ScanBarcode:GD,ScanEye:KD,ScanFace:YD,ScanLine:XD,ScanQrCode:ZD,ScanSearch:QD,ScanText:JD,School:tF,Scissors:nF,ScissorsLineDashed:rF,ScreenShare:iF,ScreenShareOff:aF,Scroll:oF,ScrollText:sF,Search:go,SearchCheck:lF,SearchCode:cF,SearchSlash:uF,SearchX:dF,Section:hF,Send:Gd,SendHorizontal:rm,SendToBack:fF,SeparatorHorizontal:pF,SeparatorVertical:mF,Server:xF,ServerCog:gF,ServerCrash:yF,ServerOff:vF,Settings:dw,Settings2:bF,Shapes:wF,Share:kF,Share2:Ey,Sheet:_F,Shell:SF,Shield:i0,ShieldAlert:jF,ShieldBan:EF,ShieldCheck:CF,ShieldEllipsis:NF,ShieldHalf:TF,ShieldMinus:AF,ShieldOff:MF,ShieldPlus:IF,ShieldQuestion:PF,ShieldX:nm,Ship:OF,ShipWheel:LF,Shirt:RF,ShoppingBag:hw,ShoppingBasket:DF,ShoppingCart:FF,Shovel:$F,ShowerHead:BF,Shrink:zF,Shrub:UF,Shuffle:qF,Sigma:HF,Signal:YF,SignalHigh:VF,SignalLow:WF,SignalMedium:GF,SignalZero:KF,Signature:XF,Signpost:QF,SignpostBig:ZF,Siren:JF,SkipBack:e$,SkipForward:fw,Skull:t$,Slack:r$,Slash:n$,Slice:a$,SlidersHorizontal:pw,SlidersVertical:am,Smartphone:o$,SmartphoneCharging:i$,SmartphoneNfc:s$,Smile:mw,SmilePlus:l$,Snail:c$,Snowflake:u$,Sofa:d$,Soup:h$,Space:f$,Spade:p$,Sparkle:m$,Sparkles:Qt,Speaker:g$,Speech:y$,SpellCheck:x$,SpellCheck2:v$,Spline:b$,Split:w$,SprayCan:k$,Sprout:_$,Square:T$,SquareActivity:im,SquareArrowDown:lm,SquareArrowDownLeft:sm,SquareArrowDownRight:om,SquareArrowLeft:cm,SquareArrowOutDownLeft:um,SquareArrowOutDownRight:dm,SquareArrowOutUpLeft:hm,SquareArrowOutUpRight:fm,SquareArrowRight:pm,SquareArrowUp:ym,SquareArrowUpLeft:mm,SquareArrowUpRight:gm,SquareAsterisk:vm,SquareBottomDashedScissors:xm,SquareChartGantt:Ol,SquareCheck:wm,SquareCheckBig:bm,SquareChevronDown:km,SquareChevronLeft:_m,SquareChevronRight:Sm,SquareChevronUp:jm,SquareCode:Em,SquareDashed:Tm,SquareDashedBottom:j$,SquareDashedBottomCode:S$,SquareDashedKanban:Cm,SquareDashedMousePointer:Nm,SquareDivide:Am,SquareDot:Mm,SquareEqual:Im,SquareFunction:Pm,SquareKanban:Lm,SquareLibrary:Om,SquareM:Rm,SquareMenu:Dm,SquareMinus:
7770Fm,SquareMousePointer:$m,SquareParking:zm,SquareParkingOff:Bm,SquarePen:ii,SquarePercent:Um,SquarePi:qm,SquarePilcrow:Hm,SquarePlay:Vm,SquarePlus:Wm,SquarePower:Gm,SquareRadical:E$,SquareScissors:Km,SquareSigma:Ym,SquareSlash:Xm,SquareSplitHorizontal:Zm,SquareSplitVertical:Qm,SquareSquare:C$,SquareStack:N$,SquareTerminal:Jm,SquareUser:t1,SquareUserRound:e1,SquareX:r1,Squircle:A$,Squirrel:M$,Stamp:I$,Star:Oa,StarHalf:P$,StarOff:L$,StepBack:O$,StepForward:R$,Stethoscope:D$,Sticker:F$,StickyNote:$$,Store:B$,StretchHorizontal:z$,StretchVertical:U$,Strikethrough:q$,Subscript:H$,Sun:Y$,SunDim:V$,SunMedium:W$,SunMoon:G$,SunSnow:K$,Sunrise:X$,Sunset:Z$,Superscript:Q$,SwatchBook:J$,SwissFranc:eB,SwitchCamera:tB,Sword:rB,Swords:nB,Syringe:aB,Table:hB,Table2:iB,TableCellsMerge:sB,TableCellsSplit:oB,TableColumnsSplit:lB,TableOfContents:cB,TableProperties:uB,TableRowsSplit:dB,Tablet:pB,TabletSmartphone:fB,Tablets:mB,Tag:s0,Tags:gB,Tally1:yB,Tally2:vB,Tally3:xB,Tally4:bB,Tally5:wB,Tangent:kB,Target:_B,Telescope:SB,Tent:EB,TentTree:jB,Terminal:CB,TestTube:NB,TestTubeDiagonal:n1,TestTubes:TB,Text:LB,TextCursor:MB,TextCursorInput:AB,TextQuote:IB,TextSearch:PB,TextSelect:a1,Theater:OB,Thermometer:FB,ThermometerSnowflake:RB,ThermometerSun:DB,ThumbsDown:gw,ThumbsUp:yw,Ticket:VB,TicketCheck:$B,TicketMinus:BB,TicketPercent:zB,TicketPlus:UB,TicketSlash:qB,TicketX:HB,Tickets:GB,TicketsPlane:WB,Timer:XB,TimerOff:KB,TimerReset:YB,ToggleLeft:ZB,ToggleRight:QB,Toilet:JB,Tornado:ez,Torus:tz,Touchpad:nz,TouchpadOff:rz,TowerControl:az,ToyBrick:iz,Tractor:sz,TrafficCone:oz,TrainFront:cz,TrainFrontTunnel:lz,TrainTrack:uz,TramFront:i1,Trash:dz,Trash2:ws,TreeDeciduous:hz,TreePalm:s1,TreePine:fz,Trees:pz,Trello:mz,TrendingDown:Cy,TrendingUp:Ny,TrendingUpDown:gz,Triangle:vz,TriangleAlert:Fs,TriangleRight:yz,Trophy:xz,Truck:Ty,Turtle:bz,Tv:kz,TvMinimal:o1,TvMinimalPlay:wz,Twitch:_z,Twitter:Sz,Type:vw,TypeOutline:jz,Umbrella:Cz,UmbrellaOff:Ez,Underline:Nz,Undo:Mz,Undo2:Tz,UndoDot:Az,UnfoldHorizontal:Iz,UnfoldVertical:Pz,Ungroup:Lz,University:l1,Unlink:Rz,Unlink2:Oz,Unplug:Dz,Upload:xw,Usb:Fz,User:xl,UserCheck:$z,UserCog:Bz,UserMinus:o0,UserPen:bw,UserPlus:zz,UserRound:p1,UserRoundCheck:c1,UserRoundCog:u1,UserRoundMinus:d1,UserRoundPen:Uz,UserRoundPlus:h1,UserRoundSearch:qz,UserRoundX:f1,UserSearch:Hz,UserX:Vz,Users:Xi,UsersRound:m1,Utensils:y1,UtensilsCrossed:g1,UtilityPole:Wz,Variable:Gz,Vault:Kz,Vegan:Yz,VenetianMask:Xz,Vibrate:Qz,VibrateOff:Zz,Video:eU,VideoOff:Jz,Videotape:tU,View:rU,Voicemail:nU,Volleyball:aU,Volume:cU,Volume1:iU,Volume2:sU,VolumeOff:oU,VolumeX:lU,Vote:uU,Wallet:hU,WalletCards:dU,WalletMinimal:v1,Wallpaper:fU,Wand:pU,WandSparkles:x1,Warehouse:mU,WashingMachine:gU,Watch:yU,Waves:vU,Waypoints:xU,Webcam:bU,Webhook:kU,WebhookOff:wU,Weight:_U,Wheat:jU,WheatOff:SU,WholeWord:EU,Wifi:MU,WifiHigh:CU,WifiLow:NU,WifiOff:TU,WifiZero:AU,Wind:PU,WindArrowDown:IU,Wine:OU,WineOff:LU,Workflow:RU,Worm:DU,WrapText:FU,Wrench:Ay,X:hi,Youtube:ww,Zap:kw,ZapOff:$U,ZoomIn:BU,ZoomOut:zU},Symbol.toStringTag,{value:"Module"}));/** 7771 * @license lucide-react v0.462.0 - ISC 7772 * 7773 * This source code is licensed under the ISC license. 7774 * See the LICENSE file in the root directory of this source tree. 7775 */const Fwe=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:AS,AArrowDownIcon:AS,AArrowUp:MS,AArrowUpIcon:MS,ALargeSmall:Bb,ALargeSmallIcon:Bb,Accessibility:IS,AccessibilityIcon:IS,Activity:PS,ActivityIcon:PS,ActivitySquare:im,ActivitySquareIcon:im,AirVent:LS,AirVentIcon:LS,Airplay:OS,AirplayIcon:OS,AlarmCheck:nf,AlarmCheckIcon:nf,AlarmClock:DS,AlarmClockCheck:nf,AlarmClockCheckIcon:nf,AlarmClockIcon:DS,AlarmClockMinus:af,AlarmClockMinusIcon:af,AlarmClockOff:RS,AlarmClockOffIcon:RS,AlarmClockPlus:sf,AlarmClockPlusIcon:sf,AlarmMinus:af,AlarmMinusIcon:af,AlarmPlus:sf,AlarmPlusIcon:sf,AlarmSmoke:FS,AlarmSmokeIcon:FS,Album:$S,AlbumIcon:$S,AlertCircle:Ya,AlertCircleIcon:Ya,AlertOctagon:Fp,AlertOctagonIcon:Fp,AlertTriangle:Fs,AlertTriangleIcon:Fs,AlignCenter:US,AlignCenterHorizontal:BS,AlignCenterHorizontalIcon:BS,AlignCenterIcon:US,AlignCenterVertical:zS,AlignCenterVerticalIcon:zS,AlignEndHorizontal:qS,AlignEndHorizontalIcon:qS,AlignEndVertical:HS,AlignEndVerticalIcon:HS,AlignHorizontalDistributeCenter:VS,AlignHorizontalDistributeCenterIcon:VS,AlignHorizontalDistributeEnd:WS,AlignHorizontalDistributeEndIcon:WS,AlignHorizontalDistributeStart:GS,AlignHorizontalDistributeStartIcon:GS,AlignHorizontalJustifyCenter:KS,AlignHorizontalJustifyCenterIcon:KS,AlignHorizontalJustifyEnd:YS,AlignHorizontalJustifyEndIcon:YS,AlignHorizontalJustifyStart:XS,AlignHorizontalJustifyStartIcon:XS,AlignHorizontalSpaceAround:ZS,AlignHorizontalSpaceAroundIcon:ZS,AlignHorizontalSpaceBetween:QS,AlignHorizontalSpaceBetweenIcon:QS,AlignJustify:JS,AlignJustifyIcon:JS,AlignLeft:ej,AlignLeftIcon:ej,AlignRight:tj,AlignRightIcon:tj,AlignStartHorizontal:rj,AlignStartHorizontalIcon:rj,AlignStartVertical:nj,AlignStartVerticalIcon:nj,AlignVerticalDistributeCenter:aj,AlignVerticalDistributeCenterIcon:aj,AlignVerticalDistributeEnd:ij,AlignVerticalDistributeEndIcon:ij,AlignVerticalDistributeStart:sj,AlignVerticalDistributeStartIcon:sj,AlignVerticalJustifyCenter:oj,AlignVerticalJustifyCenterIcon:oj,AlignVerticalJustifyEnd:lj,AlignVerticalJustifyEndIcon:lj,AlignVerticalJustifyStart:cj,AlignVerticalJustifyStartIcon:cj,AlignVerticalSpaceAround:uj,AlignVerticalSpaceAroundIcon:uj,AlignVerticalSpaceBetween:dj,AlignVerticalSpaceBetweenIcon:dj,Ambulance:hj,AmbulanceIcon:hj,Ampersand:fj,AmpersandIcon:fj,Ampersands:pj,AmpersandsIcon:pj,Amphora:mj,AmphoraIcon:mj,Anchor:gj,AnchorIcon:gj,Angry:yj,AngryIcon:yj,Annoyed:vj,AnnoyedIcon:vj,Antenna:xj,AntennaIcon:xj,Anvil:bj,AnvilIcon:bj,Aperture:wj,ApertureIcon:wj,AppWindow:_j,AppWindowIcon:_j,AppWindowMac:kj,AppWindowMacIcon:kj,Apple:Sj,AppleIcon:Sj,Archive:Cj,ArchiveIcon:Cj,ArchiveRestore:jj,ArchiveRestoreIcon:jj,ArchiveX:Ej,ArchiveXIcon:Ej,AreaChart:bf,AreaChartIcon:bf,Armchair:Nj,ArmchairIcon:Nj,ArrowBigDown:Aj,ArrowBigDownDash:Tj,ArrowBigDownDashIcon:Tj,ArrowBigDownIcon:Aj,ArrowBigLeft:Ij,ArrowBigLeftDash:Mj,ArrowBigLeftDashIcon:Mj,ArrowBigLeftIcon:Ij,ArrowBigRight:Lj,ArrowBigRightDash:Pj,ArrowBigRightDashIcon:Pj,ArrowBigRightIcon:Lj,ArrowBigUp:Rj,ArrowBigUpDash:Oj,ArrowBigUpDashIcon:Oj,ArrowBigUpIcon:Rj,ArrowDown:zb,ArrowDown01:Dj,ArrowDown01Icon:Dj,ArrowDown10:Fj,ArrowDown10Icon:Fj,ArrowDownAZ:of,ArrowDownAZIcon:of,ArrowDownAz:of,ArrowDownAzIcon:of,ArrowDownCircle:If,ArrowDownCircleIcon:If,ArrowDownFromLine:$j,ArrowDownFromLineIcon:$j,ArrowDownIcon:zb,ArrowDownLeft:Bj,ArrowDownLeftFromCircle:Lf,ArrowDownLeftFromCircleIcon:Lf,ArrowDownLeftFromSquare:um,ArrowDownLeftFromSquareIcon:um,ArrowDownLeftIcon:Bj,ArrowDownLeftSquare:sm,ArrowDownLeftSquareIcon:sm,ArrowDownNarrowWide:zj,ArrowDownNarrowWideIcon:zj,ArrowDownRight:Uj,ArrowDownRightFromCircle:Of,ArrowDownRightFromCircleIcon:Of,ArrowDownRightFromSquare:dm,ArrowDownRightFromSquareIcon:dm,ArrowDownRightIcon:Uj,ArrowDownRightSquare:om,ArrowDownRightSquareIcon:om,ArrowDownSquare:lm,ArrowDownSquareIcon:lm,ArrowDownToDot:qj,ArrowDownToDotIcon:qj,ArrowDownToLine:Hj,ArrowDownToLineIcon:Hj,ArrowDownUp:Vj,ArrowDownUpIcon:Vj,ArrowDownWideNarrow:lf,ArrowDownWideNarrowIcon:lf,ArrowDownZA:cf,ArrowDownZAIcon:cf,ArrowDownZa:cf,ArrowDownZaIcon:cf,ArrowLeft:ea,ArrowLeftCircle:Pf,ArrowLeftCircleIcon:Pf,ArrowLeftFromLine:Wj,ArrowLeftFromLineIcon:Wj,ArrowLeftIcon:ea,ArrowLeftRight:Gj,ArrowLeftRightIcon:Gj,ArrowLeftSquare:cm,ArrowLeftSquareIcon:cm,ArrowLeftToLine:Kj,ArrowLeftToLineIcon:Kj,ArrowRight:du,ArrowRightCircle:Ff,ArrowRightCircleIcon:Ff,ArrowRightFromLine:Yj,ArrowRightFromLineIcon:Yj,ArrowRightIcon:du,ArrowRightLeft:Xj,ArrowRightLeftIcon:Xj,ArrowRightSquare:pm,ArrowRightSquareIcon:pm,ArrowRightToLine:Zj,ArrowRightToLineIcon:Zj,ArrowUp:Ub,ArrowUp01:Qj,ArrowUp01Icon:Qj,ArrowUp10:Jj,ArrowUp10Icon:Jj,ArrowUpAZ:uf,ArrowUpAZIcon:uf,ArrowUpAz:uf,ArrowUpAzIcon:uf,ArrowUpCircle:$f,ArrowUpCircleIcon:$f,ArrowUpDown:e5,ArrowUpDownIcon:e5,ArrowUpFromDot:t5,ArrowUpFromDotIcon:t5,ArrowUpFromLine:r5,ArrowUpFromLineIcon:r5,ArrowUpIcon:Ub,ArrowUpLeft:n5,ArrowUpLeftFromCircle:Rf,ArrowUpLeftFromCircleIcon:Rf,ArrowUpLeftFromSquare:hm,ArrowUpLeftFromSquareIcon:hm,ArrowUpLeftIcon:n5,ArrowUpLeftSquare:mm,ArrowUpLeftSquareIcon:mm,ArrowUpNarrowWide:df,ArrowUpNarrowWideIcon:df,ArrowUpRight:a5,ArrowUpRightFromCircle:Df,ArrowUpRightFromCircleIcon:Df,ArrowUpRightFromSquare:fm,ArrowUpRightFromSquareIcon:fm,ArrowUpRightIcon:a5,ArrowUpRightSquare:gm,ArrowUpRightSquareIcon:gm,ArrowUpSquare:ym,ArrowUpSquareIcon:ym,ArrowUpToLine:i5,ArrowUpToLineIcon:i5,ArrowUpWideNarrow:s5,ArrowUpWideNarrowIcon:s5,ArrowUpZA:hf,ArrowUpZAIcon:hf,ArrowUpZa:hf,ArrowUpZaIcon:hf,ArrowsUpFromLine:o5,ArrowsUpFromLineIcon:o5,Asterisk:l5,AsteriskIcon:l5,AsteriskSquare:vm,AsteriskSquareIcon:vm,AtSign:c5,AtSignIcon:c5,Atom:u5,AtomIcon:u5,AudioLines:d5,AudioLinesIcon:d5,AudioWaveform:h5,AudioWaveformIcon:h5,Award:f5,AwardIcon:f5,Axe:p5,AxeIcon:p5,Axis3D:ff,Axis3DIcon:ff,Axis3d:ff,Axis3dIcon:ff,Baby:qb,BabyIcon:qb,Backpack:m5,BackpackIcon:m5,Badge:M5,BadgeAlert:g5,BadgeAlertIcon:g5,BadgeCent:y5,BadgeCentIcon:y5,BadgeCheck:pf,BadgeCheckIcon:pf,BadgeDollarSign:v5,BadgeDollarSignIcon:v5,BadgeEuro:x5,BadgeEuroIcon:x5,BadgeHelp:b5,BadgeHelpIcon:b5,BadgeIcon:M5,BadgeIndianRupee:w5,BadgeIndianRupeeIcon:w5,BadgeInfo:k5,BadgeInfoIcon:k5,BadgeJapaneseYen:_5,BadgeJapaneseYenIcon:_5,BadgeMinus:S5,BadgeMinusIcon:S5,BadgePercent:j5,BadgePercentIcon:j5,BadgePlus:E5,BadgePlusIcon:E5,BadgePoundSterling:C5,BadgePoundSterlingIcon:C5,BadgeRussianRuble:N5,BadgeRussianRubleIcon:N5,BadgeSwissFranc:T5,BadgeSwissFrancIcon:T5,BadgeX:A5,BadgeXIcon:A5,BaggageClaim:I5,BaggageClaimIcon:I5,Ban:P5,BanIcon:P5,Banana:L5,BananaIcon:L5,Bandage:O5,BandageIcon:O5,Banknote:R5,BanknoteIcon:R5,BarChart:Cf,BarChart2:Nf,BarChart2Icon:Nf,BarChart3:Kc,BarChart3Icon:Kc,BarChart4:jf,BarChart4Icon:jf,BarChartBig:Sf,BarChartBigIcon:Sf,BarChartHorizontal:kf,BarChartHorizontalBig:wf,BarChartHorizontalBigIcon:wf,BarChartHorizontalIcon:kf,BarChartIcon:Cf,Barcode:D5,BarcodeIcon:D5,Baseline:F5,BaselineIcon:F5,Bath:$5,BathIcon:$5,Battery:V5,BatteryCharging:B5,BatteryChargingIcon:B5,BatteryFull:z5,BatteryFullIcon:z5,BatteryIcon:V5,BatteryLow:U5,BatteryLowIcon:U5,BatteryMedium:q5,BatteryMediumIcon:q5,BatteryWarning:H5,BatteryWarningIcon:H5,Beaker:W5,BeakerIcon:W5,Bean:K5,BeanIcon:K5,BeanOff:G5,BeanOffIcon:G5,Bed:Z5,BedDouble:Y5,BedDoubleIcon:Y5,BedIcon:Z5,BedSingle:X5,BedSingleIcon:X5,Beef:Q5,BeefIcon:Q5,Beer:e6,BeerIcon:e6,BeerOff:J5,BeerOffIcon:J5,Bell:o6,BellDot:t6,BellDotIcon:t6,BellElectric:r6,BellElectricIcon:r6,BellIcon:o6,BellMinus:n6,BellMinusIcon:n6,BellOff:a6,BellOffIcon:a6,BellPlus:i6,BellPlusIcon:i6,BellRing:s6,BellRingIcon:s6,BetweenHorizonalEnd:mf,BetweenHorizonalEndIcon:mf,BetweenHorizonalStart:gf,BetweenHorizonalStartIcon:gf,BetweenHorizontalEnd:mf,BetweenHorizontalEndIcon:mf,BetweenHorizontalStart:gf,BetweenHorizontalStartIcon:gf,BetweenVerticalEnd:l6,BetweenVerticalEndIcon:l6,Bet
7775weenVerticalStart:c6,BetweenVerticalStartIcon:c6,BicepsFlexed:u6,BicepsFlexedIcon:u6,Bike:d6,BikeIcon:d6,Binary:h6,BinaryIcon:h6,Binoculars:f6,BinocularsIcon:f6,Biohazard:p6,BiohazardIcon:p6,Bird:m6,BirdIcon:m6,Bitcoin:g6,BitcoinIcon:g6,Blend:y6,BlendIcon:y6,Blinds:v6,BlindsIcon:v6,Blocks:x6,BlocksIcon:x6,Bluetooth:_6,BluetoothConnected:b6,BluetoothConnectedIcon:b6,BluetoothIcon:_6,BluetoothOff:w6,BluetoothOffIcon:w6,BluetoothSearching:k6,BluetoothSearchingIcon:k6,Bold:S6,BoldIcon:S6,Bolt:j6,BoltIcon:j6,Bomb:E6,BombIcon:E6,Bone:C6,BoneIcon:C6,Book:hu,BookA:Hb,BookAIcon:Hb,BookAudio:N6,BookAudioIcon:N6,BookCheck:Vb,BookCheckIcon:Vb,BookCopy:T6,BookCopyIcon:T6,BookDashed:yf,BookDashedIcon:yf,BookDown:A6,BookDownIcon:A6,BookHeadphones:M6,BookHeadphonesIcon:M6,BookHeart:I6,BookHeartIcon:I6,BookIcon:hu,BookImage:P6,BookImageIcon:P6,BookKey:L6,BookKeyIcon:L6,BookLock:O6,BookLockIcon:O6,BookMarked:R6,BookMarkedIcon:R6,BookMinus:D6,BookMinusIcon:D6,BookOpen:xr,BookOpenCheck:F6,BookOpenCheckIcon:F6,BookOpenIcon:xr,BookOpenText:$6,BookOpenTextIcon:$6,BookPlus:B6,BookPlusIcon:B6,BookTemplate:yf,BookTemplateIcon:yf,BookText:z6,BookTextIcon:z6,BookType:U6,BookTypeIcon:U6,BookUp:H6,BookUp2:q6,BookUp2Icon:q6,BookUpIcon:H6,BookUser:V6,BookUserIcon:V6,BookX:W6,BookXIcon:W6,Bookmark:Z6,BookmarkCheck:G6,BookmarkCheckIcon:G6,BookmarkIcon:Z6,BookmarkMinus:K6,BookmarkMinusIcon:K6,BookmarkPlus:Y6,BookmarkPlusIcon:Y6,BookmarkX:X6,BookmarkXIcon:X6,BoomBox:Q6,BoomBoxIcon:Q6,Bot:Wb,BotIcon:Wb,BotMessageSquare:J6,BotMessageSquareIcon:J6,BotOff:eE,BotOffIcon:eE,Box:tE,BoxIcon:tE,BoxSelect:Tm,BoxSelectIcon:Tm,Boxes:rE,BoxesIcon:rE,Braces:vf,BracesIcon:vf,Brackets:nE,BracketsIcon:nE,Brain:sE,BrainCircuit:aE,BrainCircuitIcon:aE,BrainCog:iE,BrainCogIcon:iE,BrainIcon:sE,BrickWall:oE,BrickWallIcon:oE,Briefcase:dE,BriefcaseBusiness:lE,BriefcaseBusinessIcon:lE,BriefcaseConveyorBelt:cE,BriefcaseConveyorBeltIcon:cE,BriefcaseIcon:dE,BriefcaseMedical:uE,BriefcaseMedicalIcon:uE,BringToFront:hE,BringToFrontIcon:hE,Brush:fE,BrushIcon:fE,Bug:gE,BugIcon:gE,BugOff:pE,BugOffIcon:pE,BugPlay:mE,BugPlayIcon:mE,Building:vE,Building2:yE,Building2Icon:yE,BuildingIcon:vE,Bus:bE,BusFront:xE,BusFrontIcon:xE,BusIcon:bE,Cable:kE,CableCar:wE,CableCarIcon:wE,CableIcon:kE,Cake:SE,CakeIcon:SE,CakeSlice:_E,CakeSliceIcon:_E,Calculator:jE,CalculatorIcon:jE,Calendar:ic,Calendar1:EE,Calendar1Icon:EE,CalendarArrowDown:CE,CalendarArrowDownIcon:CE,CalendarArrowUp:NE,CalendarArrowUpIcon:NE,CalendarCheck:AE,CalendarCheck2:TE,CalendarCheck2Icon:TE,CalendarCheckIcon:AE,CalendarClock:Gb,CalendarClockIcon:Gb,CalendarCog:ME,CalendarCogIcon:ME,CalendarDays:IE,CalendarDaysIcon:IE,CalendarFold:PE,CalendarFoldIcon:PE,CalendarHeart:LE,CalendarHeartIcon:LE,CalendarIcon:ic,CalendarMinus:RE,CalendarMinus2:OE,CalendarMinus2Icon:OE,CalendarMinusIcon:RE,CalendarOff:DE,CalendarOffIcon:DE,CalendarPlus:$E,CalendarPlus2:FE,CalendarPlus2Icon:FE,CalendarPlusIcon:$E,CalendarRange:BE,CalendarRangeIcon:BE,CalendarSearch:zE,CalendarSearchIcon:zE,CalendarSync:UE,CalendarSyncIcon:UE,CalendarX:HE,CalendarX2:qE,CalendarX2Icon:qE,CalendarXIcon:HE,Camera:WE,CameraIcon:WE,CameraOff:VE,CameraOffIcon:VE,CandlestickChart:_f,CandlestickChartIcon:_f,Candy:YE,CandyCane:GE,CandyCaneIcon:GE,CandyIcon:YE,CandyOff:KE,CandyOffIcon:KE,Cannabis:XE,CannabisIcon:XE,Captions:xf,CaptionsIcon:xf,CaptionsOff:ZE,CaptionsOffIcon:ZE,Car:eC,CarFront:QE,CarFrontIcon:QE,CarIcon:eC,CarTaxiFront:JE,CarTaxiFrontIcon:JE,Caravan:tC,CaravanIcon:tC,Carrot:rC,CarrotIcon:rC,CaseLower:nC,CaseLowerIcon:nC,CaseSensitive:aC,CaseSensitiveIcon:aC,CaseUpper:iC,CaseUpperIcon:iC,CassetteTape:sC,CassetteTapeIcon:sC,Cast:oC,CastIcon:oC,Castle:lC,CastleIcon:lC,Cat:cC,CatIcon:cC,Cctv:uC,CctvIcon:uC,ChartArea:bf,ChartAreaIcon:bf,ChartBar:kf,ChartBarBig:wf,ChartBarBigIcon:wf,ChartBarDecreasing:dC,ChartBarDecreasingIcon:dC,ChartBarIcon:kf,ChartBarIncreasing:hC,ChartBarIncreasingIcon:hC,ChartBarStacked:fC,ChartBarStackedIcon:fC,ChartCandlestick:_f,ChartCandlestickIcon:_f,ChartColumn:Kc,ChartColumnBig:Sf,ChartColumnBigIcon:Sf,ChartColumnDecreasing:pC,ChartColumnDecreasingIcon:pC,ChartColumnIcon:Kc,ChartColumnIncreasing:jf,ChartColumnIncreasingIcon:jf,ChartColumnStacked:mC,ChartColumnStackedIcon:mC,ChartGantt:gC,ChartGanttIcon:gC,ChartLine:Ef,ChartLineIcon:Ef,ChartNetwork:yC,ChartNetworkIcon:yC,ChartNoAxesColumn:Nf,ChartNoAxesColumnDecreasing:vC,ChartNoAxesColumnDecreasingIcon:vC,ChartNoAxesColumnIcon:Nf,ChartNoAxesColumnIncreasing:Cf,ChartNoAxesColumnIncreasingIcon:Cf,ChartNoAxesCombined:xC,ChartNoAxesCombinedIcon:xC,ChartNoAxesGantt:Tf,Chart
7775NoAxesGanttIcon:Tf,ChartPie:Af,ChartPieIcon:Af,ChartScatter:Mf,ChartScatterIcon:Mf,ChartSpline:bC,ChartSplineIcon:bC,Check:_r,CheckCheck:wC,CheckCheckIcon:wC,CheckCircle:Vi,CheckCircle2:Si,CheckCircle2Icon:Si,CheckCircleIcon:Vi,CheckIcon:_r,CheckSquare:bm,CheckSquare2:wm,CheckSquare2Icon:wm,CheckSquareIcon:bm,ChefHat:kC,ChefHatIcon:kC,Cherry:_C,CherryIcon:_C,ChevronDown:sc,ChevronDownCircle:Bf,ChevronDownCircleIcon:Bf,ChevronDownIcon:sc,ChevronDownSquare:km,ChevronDownSquareIcon:km,ChevronFirst:SC,ChevronFirstIcon:SC,ChevronLast:jC,ChevronLastIcon:jC,ChevronLeft:fu,ChevronLeftCircle:zf,ChevronLeftCircleIcon:zf,ChevronLeftIcon:fu,ChevronLeftSquare:_m,ChevronLeftSquareIcon:_m,ChevronRight:Vs,ChevronRightCircle:Uf,ChevronRightCircleIcon:Uf,ChevronRightIcon:Vs,ChevronRightSquare:Sm,ChevronRightSquareIcon:Sm,ChevronUp:Kb,ChevronUpCircle:qf,ChevronUpCircleIcon:qf,ChevronUpIcon:Kb,ChevronUpSquare:jm,ChevronUpSquareIcon:jm,ChevronsDown:CC,ChevronsDownIcon:CC,ChevronsDownUp:EC,ChevronsDownUpIcon:EC,ChevronsLeft:AC,ChevronsLeftIcon:AC,ChevronsLeftRight:TC,ChevronsLeftRightEllipsis:NC,ChevronsLeftRightEllipsisIcon:NC,ChevronsLeftRightIcon:TC,ChevronsRight:IC,ChevronsRightIcon:IC,ChevronsRightLeft:MC,ChevronsRightLeftIcon:MC,ChevronsUp:PC,ChevronsUpDown:py,ChevronsUpDownIcon:py,ChevronsUpIcon:PC,Chrome:LC,ChromeIcon:LC,Church:OC,ChurchIcon:OC,Cigarette:DC,CigaretteIcon:DC,CigaretteOff:RC,CigaretteOffIcon:RC,Circle:e0,CircleAlert:Ya,CircleAlertIcon:Ya,CircleArrowDown:If,CircleArrowDownIcon:If,CircleArrowLeft:Pf,CircleArrowLeftIcon:Pf,CircleArrowOutDownLeft:Lf,CircleArrowOutDownLeftIcon:Lf,Cir
7775cleArrowOutDownRight:Of,CircleArrowOutDownRightIcon:Of,CircleArrowOutUpLeft:Rf,CircleArrowOutUpLeftIcon:Rf,CircleArrowOutUpRight:Df,CircleArrowOutUpRightIcon:Df,CircleArrowRight:Ff,CircleArrowRightIcon:Ff,CircleArrowUp:$f,CircleArrowUpIcon:$f,CircleCheck:Si,CircleCheckBig:Vi,CircleCheckBigIcon:Vi,CircleCheckIcon:Si,CircleChevronDown:Bf,CircleChevronDownIcon:Bf,CircleChevronLeft:zf,CircleChevronLeftIcon:zf,CircleChevronRight:Uf,CircleChevronRightIcon:Uf,CircleChevronUp:qf,CircleChevronUpIcon:qf,CircleDashed:FC,CircleDashedIcon:FC,CircleDivide:Hf,CircleDivideIcon:Hf,CircleDollarSign:$C,CircleDollarSignIcon:$C,CircleDot:zC,CircleDotDashed:BC,CircleDotDashedIcon:BC,CircleDotIcon:zC,CircleEllipsis:UC,CircleEllipsisIcon:UC,CircleEqual:qC,CircleEqualIcon:qC,CircleFadingArrowUp:HC,CircleFadingArrowUpIcon:HC,CircleFadingPlus:VC,CircleFadingPlusIcon:VC,CircleGauge:Vf,CircleGaugeIcon:Vf,CircleHelp:tl,CircleHelpIcon:tl,CircleIcon:e0,CircleMinus:Wf,CircleMinusIcon:Wf,CircleOff:WC,CircleOffIcon:WC,CircleParking:Kf,CircleParkingIcon:Kf,CircleParkingOff:Gf,CircleParkingOffIcon:Gf,CirclePause:Yf,CirclePauseIcon:Yf,CirclePercent:Xf,CirclePercentIcon:Xf,CirclePlay:Zf,CirclePlayIcon:Zf,CirclePlus:Yc,CirclePlusIcon:Yc,CirclePower:Qf,CirclePowerIcon:Qf,CircleSlash:GC,CircleSlash2:Jf,CircleSlash2Icon:Jf,CircleSlashIcon:GC,CircleSlashed:Jf,CircleSlashedIcon:Jf,CircleStop:ep,CircleStopIcon:ep,CircleUser:rp,CircleUserIcon:rp,CircleUserRound:tp,CircleUserRoundIcon:tp,CircleX:li,CircleXIcon:li,CircuitBoard:KC,CircuitBoardIcon:KC,Citrus:YC,CitrusIcon:YC,Clapperboard:XC,ClapperboardIcon:XC,Clipboard:aN,ClipboardCheck:ZC,ClipboardCheckIcon:ZC,ClipboardCopy:QC,ClipboardCopyIcon:QC,ClipboardEdit:ap,ClipboardEditIcon:ap,ClipboardIcon:aN,ClipboardList:JC,ClipboardListIcon:JC,ClipboardMinus:eN,ClipboardMinusIcon:eN,ClipboardPaste:Yb,ClipboardPasteIcon:Yb,ClipboardPen:ap,ClipboardPenIcon:ap,ClipboardPenLine:np,ClipboardPenLineIcon:np,ClipboardPlus:tN,ClipboardPlusIcon:tN,ClipboardSignature:np,ClipboardSignatureIcon:np,ClipboardType:rN,ClipboardTypeIcon:rN,ClipboardX:nN,ClipboardXIcon:nN,Clock:Da,Clock1:iN,Clock10:sN,Clock10Icon:sN,Clock11:oN,Clock11Icon:oN,Clock12:lN,Clock12Icon:lN,Clock1Icon:iN,Clock2:cN,Clock2Icon:cN,Clock3:uN,Clock3Icon:uN,Clock4:dN,Clock4Icon:dN,Clock5:hN,Clock5Icon:hN,Clock6:fN,Clock6Icon:fN,Clock7:pN,Clock7Icon:pN,Clock8:mN,Clock8Icon:mN,Clock9:gN,Clock9Icon:gN,ClockAlert:yN,ClockAlertIcon:yN,ClockArrowDown:vN,ClockArrowDownIcon:vN,ClockArrowUp:xN,ClockArrowUpIcon:xN,ClockIcon:Da,Cloud:LN,CloudAlert:bN,CloudAlertIcon:bN,CloudCog:wN,CloudCogIcon:wN,CloudDownload:ip,CloudDownloadIcon:ip,CloudDrizzle:kN,CloudDrizzleIcon:kN,CloudFog:_N,CloudFogIcon:_N,CloudHail:SN,CloudHailIcon:SN,CloudIcon:LN,CloudLightning:jN,CloudLightningIcon:jN,CloudMoon:CN,CloudMoonIcon:CN,CloudMoonRain:EN,CloudMoonRainIcon:EN,CloudOff:NN,CloudOffIcon:NN,CloudRain:AN,CloudRainIcon:AN,CloudRainWind:TN,CloudRainWindIcon:TN,CloudSnow:MN,CloudSnowIcon:MN,CloudSun:PN,CloudSunIcon:PN,CloudSunRain:IN,CloudSunRainIcon:IN,CloudUpload:sp,CloudUploadIcon:sp,Cloudy:ON,CloudyIcon:ON,Clover:RN,CloverIcon:RN,Club:DN,ClubIcon:DN,Code:FN,Code2:op,Code2Icon:op,CodeIcon:FN,CodeSquare:Em,CodeSquareIcon:Em,CodeXml:op,CodeXmlIcon:op,Codepen:$N,CodepenIcon:$N,Codesandbox:BN,CodesandboxIcon:BN,Coffee:zN,CoffeeIcon:zN,Cog:UN,CogIcon:UN,Coins:qN,CoinsIcon:qN,Columns:lp,Columns2:lp,Columns2Icon:lp,Columns3:cp,Columns3Icon:cp,Columns4:HN,Columns4Icon:HN,ColumnsIcon:lp,Combine:VN,CombineIcon:VN,Command:WN,CommandIcon:WN,Compass:GN,CompassIcon:GN,Component:KN,ComponentIcon:KN,Computer:YN,ComputerIcon:YN,ConciergeBell:XN,ConciergeBellIcon:XN,Cone:ZN,ConeIcon:ZN,Construction:QN,ConstructionIcon:QN,Contact:JN,Contact2:up,Contact2Icon:up,ContactIcon:JN,ContactRound:up,ContactRoundIcon:up,Container:e8,ContainerIcon:e8,Contrast:t8,ContrastIcon:t8,Cookie:r8,CookieIcon:r8,CookingPot:n8,CookingPotIcon:n8,Copy:t0,CopyCheck:a8,CopyCheckIcon:a8,CopyIcon:t0,CopyMinus:i8,CopyMinusIcon:i8,CopyPlus:s8,CopyPlusIcon:s8,CopySlash:o8,CopySlashIcon:o8,CopyX:l8,CopyXIcon:l8,Copyleft:c8,CopyleftIcon:c8,Copyright:u8,CopyrightIcon:u8,CornerDownLeft:d8,CornerDownLeftIcon:d8,CornerDownRight:h8,CornerDownRightIcon:h8,CornerLeftDown:f8,CornerLeftDownIcon:f8,CornerLeftUp:p8,CornerLeftUpIcon:p8,CornerRightDown:m8,CornerRightDownIcon:m8,CornerRightUp:g8,CornerRightUpIcon:g8,CornerUpLeft:y8,CornerUpLeftIcon:y8,CornerUpRight:v8,CornerUpRightIcon:v8,Cpu:x8,CpuIcon:x8,CreativeCommons:b8,CreativeCommonsIcon:b8,CreditCard:bs,CreditCardIcon:bs,Croissant:w8,CroissantIcon:w8,Crop:k8,CropIcon:k8,Cross:_8,CrossIcon:_8,Crosshair:S8,CrosshairIcon:S8,Crown:my,CrownIcon:my,Cuboid:j8,CuboidIcon:j8,CupSoda:E8,CupSodaIcon:E8,CurlyBraces:vf,CurlyBracesIcon:vf,Currency:C8,CurrencyIcon:C8,Cylinder:N8,CylinderIcon:N8,Dam:T8,DamIcon:T8,Database:I8,DatabaseBackup:A8,DatabaseBackupIcon:A8,DatabaseIcon:I8,DatabaseZap:M8,DatabaseZapIcon:M8,Delete:P8,DeleteIcon:P8,Dessert:L8,DessertIcon:L8,Diameter:O8,DiameterIcon:O8,Diamond:F8,DiamondIcon:F8,DiamondMinus:R8,DiamondMinusIcon:R8,DiamondPercent:dp,DiamondPercentIcon:dp,DiamondPlus:D8,DiamondPlusIcon:D8,Dice1:$8,Dice1Icon:$8,Dice2:B8,Dice2Icon:B8,Dice3:z8,Dice3Icon:z8,Dice4:U8,Dice4Icon:U8,Dice5:q8,Dice5Icon:q8,Dice6:H8,Dice6Icon:H8,Dices:V8,DicesIcon:V8,Diff:W8,DiffIcon:W8,Disc:X8,Disc2:G8,Disc2Icon:G8,Disc3:K8,Disc3Icon:K8,DiscAlbum:Y8,DiscAlbumIcon:Y8,DiscIcon:X8,Divide:Z8,DivideCircle:Hf,DivideCircleIcon:Hf,DivideIcon:Z8,DivideSquare:Am,DivideSquareIcon:Am,Dna:J8,DnaIcon:J8,DnaOff:Q8,DnaOffIcon:Q8,Dock:eT,DockIcon:eT,Dog:tT,DogIcon:tT,DollarSign:gy,DollarSignIcon:gy,Donut:rT,DonutIcon:rT,DoorClosed:nT,DoorClosedIcon:nT,DoorOpen:aT,DoorOpenIcon:aT,Dot:iT,DotIcon:iT,DotSquare:Mm,DotSquareIcon:Mm,Download:sT,DownloadCloud:ip,DownloadCloudIcon:ip,DownloadIcon:sT,DraftingCompass:oT,DraftingCompassIcon:oT,Drama:lT,DramaIcon:lT,Dribbble:cT,DribbbleIcon:cT,Drill:uT,DrillIcon:uT,Droplet:dT,DropletIcon:dT,Droplets:hT,DropletsIcon:hT,Drum:fT,DrumIcon:fT,Drumstick:pT,DrumstickIcon:pT,Dumbbell:mT,DumbbellIcon:mT,Ear:yT,EarIcon:yT,EarOff:gT,EarOffIcon:gT,Earth:hp,EarthIcon:hp,EarthLock:vT,EarthLockIcon:vT,Eclipse:xT,EclipseIcon:xT,Edit:ii,Edit2:dd,Edit2Icon:dd,Edit3:ud,Edit3Icon:ud,EditIcon:ii,Egg:kT,EggFried:bT,EggFriedIcon:bT,EggIcon:kT,EggOff:wT,EggOffIcon:wT,Ellipsis:Xc,EllipsisIcon:Xc,EllipsisVertical:fp,EllipsisVerticalIcon:fp,Equal:jT,EqualApproximately:_T,EqualApproximatelyIcon:_T,EqualIcon:jT,EqualNot:ST,EqualNotIcon:ST,EqualSquare:Im,EqualSquareIcon:Im,Eraser:ET,EraserIcon:ET,EthernetPort:CT,EthernetPortIcon:CT,Euro:NT,EuroIcon:NT,Expand:TT,ExpandIcon:TT,ExternalLink:oc,ExternalLinkIcon:oc,Eye:Qa,EyeClosed:AT,EyeClosedIcon:AT,EyeIcon:Qa,EyeOff:MT,EyeOffIcon:MT,Facebook:Xb,FacebookIcon:Xb,Factory:IT,FactoryIcon:IT,Fan:PT,FanIcon:PT,FastForward:LT,FastForwardIcon:LT,Feather:OT,FeatherIcon:OT,Fence:RT,FenceIcon:RT,FerrisWheel:DT,FerrisWheelIcon:DT,Figma:FT,FigmaIcon:FT,File:IA,FileArchive:$T,FileArchiveIcon:$T,FileAudio:zT,FileAudio2:BT,FileAudio2Icon:BT,FileAudioIcon:zT,FileAxis3D:pp,FileAxis3DIcon:pp,FileAxis3d:pp,FileAxis3dIcon:pp,FileBadge:qT,FileBadge2:UT,FileBadge2Icon:UT,FileBadgeIcon:qT,FileBarChart:mp,FileBarChart2:gp,FileBarChart2Icon:gp,FileBarChartIcon:mp,FileBox:HT,FileBoxIcon:HT,FileChartColumn:gp,FileChartColumnIcon:gp,FileChartColumnIncreasing:mp,FileChartColumnIncreasingIcon:mp,FileChartLine:yp,FileChartLineIcon:yp,FileChartPie:vp,FileChartPieIcon:vp,FileCheck:WT,FileCheck2:VT,FileCheck2Icon:VT,FileCheckIcon:WT,FileClock:GT,FileClockIcon:GT,FileCode:yy,FileCode2:KT,FileCode2Icon:KT,FileCodeIcon:yy,FileCog:xp,FileCog2:xp,FileCog2Icon:xp,FileCogIcon:xp,FileDiff:YT,FileDiffIcon:YT,FileDigit:XT,FileDigitIcon:XT,FileDown:vy,FileDownIcon:vy,FileEdit:wp,FileEditIcon:wp,FileHeart:ZT,FileHeartIcon:ZT,FileIcon:IA,FileImage:QT,FileImageIcon:QT,FileInput:JT,FileInputIcon:JT,FileJson:tA,FileJson2:eA,FileJson2Icon:eA,FileJsonIcon:tA,FileKey:nA,FileKey2:rA,FileKey2Icon:rA,FileKeyIcon:nA,FileLineChart:yp,FileLineChartIcon:yp,FileLock:iA,FileLock2:aA,FileLock2Icon:aA,FileLockIcon:iA,FileMinus:oA,FileMinus2:sA,FileMinus2Icon:sA,FileMinusIcon:oA,FileMusic:lA,FileMusicIcon:lA,FileOutput:cA,FileOutputIcon:cA,FilePen:wp,FilePenIcon:wp,FilePenLine:bp,FilePenLineIcon:bp,FilePieChart:vp,FilePieChartIcon:vp,FilePlus:dA,FilePlus2:uA,FilePlus2Icon:uA,FilePlusIcon:dA,FileQuestion:hA,FileQuestionIcon:hA,FileScan:fA,FileScanIcon:fA,FileSearch:mA,FileSearch2:pA,FileSearch2Icon:pA,FileSearchIcon:mA,FileSignature:bp,FileSignatureIcon:bp,FileSliders:gA,FileSlidersIcon:gA,FileSpreadsheet:yA,FileSpreadsheetIcon:yA,FileStack:vA,FileStackIcon:vA,FileSymlink:xA,FileSymlinkIcon:xA,FileTerminal:bA,FileTerminalIcon:bA,FileText:Ti,FileTextIcon:Ti,FileType:kA,FileType2:wA,FileType2Icon:wA,FileTypeIcon:kA,FileUp:_A,FileUpIcon:_A,FileUser:SA,FileUserIcon:SA,File
7775Video:EA,FileVideo2:jA,FileVideo2Icon:jA,FileVideoIcon:EA,FileVolume:NA,FileVolume2:CA,FileVolume2Icon:CA,FileVolumeIcon:NA,FileWarning:TA,FileWarningIcon:TA,FileX:MA,FileX2:AA,FileX2Icon:AA,FileXIcon:MA,Files:PA,FilesIcon:PA,Film:LA,FilmIcon:LA,Filter:RA,FilterIcon:RA,FilterX:OA,FilterXIcon:OA,Fingerprint:DA,FingerprintIcon:DA,FireExtinguisher:FA,FireExtinguisherIcon:FA,Fish:zA,FishIcon:zA,FishOff:$A,FishOffIcon:$A,FishSymbol:BA,FishSymbolIcon:BA,Flag:VA,FlagIcon:VA,FlagOff:UA,FlagOffIcon:UA,FlagTriangleLeft:qA,FlagTriangleLeftIcon:qA,FlagTriangleRight:HA,FlagTriangleRightIcon:HA,Flame:GA,FlameIcon:GA,FlameKindling:WA,FlameKindlingIcon:WA,Flashlight:YA,FlashlightIcon:YA,FlashlightOff:KA,FlashlightOffIcon:KA,FlaskConical:ZA,FlaskConicalIcon:ZA,FlaskConicalOff:XA,FlaskConicalOffIcon:XA,FlaskRound:QA,FlaskRoundIcon:QA,FlipHorizontal:eM,FlipHorizontal2:JA,FlipHorizontal2Icon:JA,FlipHorizontalIcon:eM,FlipVertical:rM,FlipVertical2:tM,FlipVertical2Icon:tM,FlipVerticalIcon:rM,Flower:aM,Flower2:nM,Flower2Icon:nM,FlowerIcon:aM,Focus:Zb,FocusIcon:Zb,FoldHorizontal:iM,FoldHorizontalIcon:iM,FoldVertical:sM,FoldVerticalIcon:sM,Folder:PM,FolderArchive:oM,FolderArchiveIcon:oM,FolderCheck:lM,FolderCheckIcon:lM,FolderClock:cM,FolderClockIcon:cM,FolderClosed:uM,FolderClosedIcon:uM,FolderCode:dM,FolderCodeIcon:dM,FolderCog:kp,FolderCog2:kp,FolderCog2Icon:kp,FolderCogIcon:kp,FolderDot:hM,FolderDotIcon:hM,FolderDown:fM,FolderDownIcon:fM,FolderEdit:_p,FolderEditIcon:_p,FolderGit:mM,FolderGit2:pM,FolderGit2Icon:pM,FolderGitIcon:mM,FolderHeart:gM,FolderHeartIcon:gM,FolderIcon:PM,FolderInput:yM,FolderInputIcon:yM,FolderKanban:vM,FolderKanbanIcon:vM,FolderKey:xM,FolderKeyIcon:xM,FolderLock:bM,FolderLockIcon:bM,FolderMinus:wM,FolderMinusIcon:wM,FolderOpen:_M,FolderOpenDot:kM,FolderOpenDotIcon:kM,FolderOpenIcon:_M,FolderOutput:SM,FolderOutputIcon:SM,FolderPen:_p,FolderPenIcon:_p,FolderPlus:jM,FolderPlusIcon:jM,FolderRoot:EM,FolderRootIcon:EM,FolderSearch:NM,FolderSearch2:CM,FolderSearch2Icon:CM,FolderSearchIcon:NM,FolderSymlink:TM,FolderSymlinkIcon:TM,FolderSync:AM,FolderSyncIcon:AM,FolderTree:Qb,FolderTreeIcon:Qb,FolderUp:MM,FolderUpIcon:MM,FolderX:IM,FolderXIcon:IM,Folders:LM,FoldersIcon:LM,Footprints:OM,FootprintsIcon:OM,ForkKnife:y1,ForkKnifeCrossed:g1,ForkKnifeCrossedIcon:g1,ForkKnifeIcon:y1,Forklift:RM,ForkliftIcon:RM,FormInput:Zp,FormInputIcon:Zp,Forward:DM,ForwardIcon:DM,Frame:FM,FrameIcon:FM,Framer:$M,FramerIcon:$M,Frown:BM,FrownIcon:BM,Fuel:zM,FuelIcon:zM,Fullscreen:UM,FullscreenIcon:UM,FunctionSquare:Pm,FunctionSquareIcon:Pm,GalleryHorizontal:HM,GalleryHorizontalEnd:qM,GalleryHorizontalEndIcon:qM,GalleryHorizontalIcon:HM,GalleryThumbnails:VM,GalleryThumbnailsIcon:VM,GalleryVertical:GM,GalleryVerticalEnd:WM,GalleryVerticalEndIcon:WM,GalleryVerticalIcon:GM,Gamepad:YM,Gamepad2:KM,Gamepad2Icon:KM,GamepadIcon:YM,GanttChart:Tf,GanttChartIcon:Tf,GanttChartSquare:Ol,GanttChartSquareIcon:Ol,Gauge:XM,GaugeCircle:Vf,GaugeCircleIcon:Vf,GaugeIcon:XM,Gavel:ZM,GavelIcon:ZM,Gem:QM,GemIcon:QM,Ghost:JM,GhostIcon:JM,Gift:r0,GiftIcon:r0,GitBranch:tI,GitBranchIcon:tI,GitBranchPlus:eI,GitBranchPlusIcon:eI,GitCommit:Sp,GitCommitHorizontal:Sp,GitCommitHorizontalIcon:Sp,GitCommitIcon:Sp,GitCommitVertical:rI,GitCommitVerticalIcon:rI,GitCompare:aI,GitCompareArrows:nI,GitCompareArrowsIcon:nI,GitCompareIcon:aI,GitFork:iI,GitForkIcon:iI,GitGraph:sI,GitGraphIcon:sI,GitMerge:oI,GitMergeIcon:oI,GitPullRequest:fI,GitPullRequestArrow:lI,GitPullRequestArrowIcon:lI,GitPullRequestClosed:cI,GitPullRequestClosedIcon:cI,GitPullRequestCreate:dI,GitPullRequestCreateArrow:uI,GitPullRequestCreateArrowIcon:uI,GitPullRequestCreateIcon:dI,GitPullRequestDraft:hI,GitPullRequestDraftIcon:hI,GitPullRequestIcon:fI,Github:pI,GithubIcon:pI,Gitlab:mI,GitlabIcon:mI,GlassWater:gI,GlassWaterIcon:gI,Glasses:yI,GlassesIcon:yI,Globe:xI,Globe2:hp,Globe2Icon:hp,GlobeIcon:xI,GlobeLock:vI,GlobeLockIcon:vI,Goal:bI,GoalIcon:bI,Grab:wI,GrabIcon:wI,GraduationCap:Jb,GraduationCapIcon:Jb,Grape:kI,GrapeIcon:kI,Grid:Ll,Grid2X2:Ep,Grid2X2Icon:Ep,Grid2X2Plus:jp,Grid2X2PlusIcon:jp,Grid2x2:Ep,Grid2x2Check:_I,Grid2x2CheckIcon:_I,Grid2x2Icon:Ep,Grid2x2Plus:jp,Grid2x2PlusIcon:jp,Grid2x2X:SI,Grid2x2XIcon:SI,Grid3X3:Ll,Grid3X3Icon:Ll,Grid3x3:Ll,Grid3x3Icon:Ll,GridIcon:Ll,Grip:CI,GripHorizontal:jI,GripHorizontalIcon:jI,GripIcon:CI,GripVertical:EI,GripVerticalIcon:EI,Group:NI,GroupIcon:NI,Guitar:TI,GuitarIcon:TI,Ham:AI,HamIcon:AI,Hammer:MI,HammerIcon:MI,Hand:RI,HandCoins:II,HandCoinsIcon:II,HandHeart:PI,HandHeartIcon:PI,HandHelping:Cp,HandHelpingIcon:Cp,HandIcon:RI,HandMetal:LI,HandMetalIcon:LI,HandPlatter:OI,HandPlatterIcon:OI,Handshake:DI,HandshakeIcon:DI,HardDrive:BI,HardDriveDownload:FI,HardDriveDownloadIcon:FI,HardDriveIcon:BI,HardDriveUpload:$I,HardDriveUploadIcon:$I,HardHat:zI,HardHatIcon:zI,Hash:UI,HashIcon:UI,Haze:qI,HazeIcon:qI,HdmiPort:HI,HdmiPortIcon:HI,Heading:ZI,Heading1:VI,Heading1Icon:VI,Heading2:WI,Heading2Icon:WI,Heading3:GI,Heading3Icon:GI,Heading4:KI,Heading4Icon:KI,Heading5:YI,Heading5Icon:YI,Heading6:XI,Heading6Icon:XI,HeadingIcon:ZI,HeadphoneOff:QI,HeadphoneOffIcon:QI,Headphones:JI,HeadphonesIcon:JI,Headset:eP,HeadsetIcon:eP,Heart:qd,HeartCrack:tP,HeartCrackIcon:tP,HeartHandshake:rP,HeartHandshakeIcon:rP,HeartIcon:qd,HeartOff:nP,HeartOffIcon:nP,HeartPulse:aP,HeartPulseIcon:aP,Heater:iP,HeaterIcon:iP,HelpCircle:tl,HelpCircleIcon:tl,HelpingHand:Cp,HelpingHandIcon:Cp,Hexagon:sP,HexagonIcon:sP,Highlighter:oP,HighlighterIcon:oP,History:lP,HistoryIcon:lP,Home:Np,HomeIcon:Np,Hop:uP,HopIcon:uP,HopOff:cP,HopOffIcon:cP,Hospital:dP,HospitalIcon:dP,Hotel:hP,HotelIcon:hP,Hourglass:fP,HourglassIcon:fP,House:Np,HouseIcon:Np,HousePlug:pP,HousePlugIcon:pP,HousePlus:mP,HousePlusIcon:mP,IceCream:Ap,IceCream2:Tp,IceCream2Icon:Tp,IceCreamBowl:Tp,IceCreamBowlIcon:Tp,IceCreamCone:Ap,IceCreamConeIcon:Ap,IceCreamIcon:Ap,Icon:Dwe,IdCard:gP,IdCardIcon:gP,Image:lc,ImageDown:yP,ImageDownIcon:yP,ImageIcon:lc,ImageMinus:vP,ImageMinusIcon:vP,ImageOff:ew,ImageOffIcon:ew,ImagePlay:xP,ImagePlayIcon:xP,ImagePlus:tw,ImagePlusIcon:tw,ImageUp:bP,ImageUp
7775Icon:bP,ImageUpscale:wP,ImageUpscaleIcon:wP,Images:kP,ImagesIcon:kP,Import:xy,ImportIcon:xy,Inbox:_P,InboxIcon:_P,Indent:Ip,IndentDecrease:Mp,IndentDecreaseIcon:Mp,IndentIcon:Ip,IndentIncrease:Ip,IndentIncreaseIcon:Ip,IndianRupee:SP,IndianRupeeIcon:SP,Infinity:jP,InfinityIcon:jP,Info:EP,InfoIcon:EP,Inspect:$m,InspectIcon:$m,InspectionPanel:CP,InspectionPanelIcon:CP,Instagram:rw,InstagramIcon:rw,Italic:NP,ItalicIcon:NP,IterationCcw:TP,IterationCcwIcon:TP,IterationCw:AP,IterationCwIcon:AP,JapaneseYen:MP,JapaneseYenIcon:MP,Joystick:IP,JoystickIcon:IP,Kanban:PP,KanbanIcon:PP,KanbanSquare:Lm,KanbanSquareDashed:Cm,KanbanSquareDashedIcon:Cm,KanbanSquareIcon:Lm,Key:RP,KeyIcon:RP,KeyRound:LP,KeyRoundIcon:LP,KeySquare:OP,KeySquareIcon:OP,Keyboard:$P,KeyboardIcon:$P,KeyboardMusic:DP,KeyboardMusicIcon:DP,KeyboardOff:FP,KeyboardOffIcon:FP,Lamp:VP,LampCeiling:BP,LampCeilingIcon:BP,LampDesk:zP,LampDeskIcon:zP,LampFloor:UP,LampFloorIcon:UP,LampIcon:VP,LampWallDown:qP,LampWallDownIcon:qP,LampWallUp:HP,LampWallUpIcon:HP,LandPlot:WP,LandPlotIcon:WP,Landmark:GP,LandmarkIcon:GP,Languages:KP,LanguagesIcon:KP,Laptop:XP,Laptop2:Pp,Laptop2Icon:Pp,LaptopIcon:XP,LaptopMinimal:Pp,LaptopMinimalCheck:YP,LaptopMinimalCheckIcon:YP,LaptopMinimalIcon:Pp,Lasso:QP,LassoIcon:QP,LassoSelect:ZP,LassoSelectIcon:ZP,Laugh:JP,LaughIcon:JP,Layers:r7,Layers2:e7,Layers2Icon:e7,Layers3:t7,Layers3Icon:t7,LayersIcon:r7,Layout:Yp,LayoutDashboard:n7,LayoutDashboardIcon:n7,LayoutGrid:a7,LayoutGridIcon:a7,LayoutIcon:Yp,LayoutList:i7,LayoutListIcon:i7,LayoutPanelLeft:s7,LayoutPanelLeftIcon:s7,LayoutPanelTop:o7,LayoutPanelTopIcon:o7,LayoutTemplate:l7,LayoutTemplateIcon:l7,Leaf:c7,LeafIcon:c7,LeafyGreen:u7,LeafyGreenIcon:u7,Lectern:d7,LecternIcon:d7,LetterText:h7,LetterTextIcon:h7,Library:nw,LibraryBig:f7,LibraryBigIcon:f7,LibraryIcon:nw,LibrarySquare:Om,LibrarySquareIcon:Om,LifeBuoy:p7,LifeBuoyIcon:p7,Ligature:m7,LigatureIcon:m7,Lightbulb:aw,LightbulbIcon:aw,LightbulbOff:g7,LightbulbOffIcon:g7,LineChart:Ef,LineChartIcon:Ef,Link:v7,Link2:by,Link2Icon:by,Link2Off:y7,Link2OffIcon:y7,LinkIcon:v7,Linkedin:x7,LinkedinIcon:x7,List:L7,ListCheck:b7,ListCheckIcon:b7,ListChecks:iw,ListChecksIcon:iw,ListCollapse:w7,ListCollapseIcon:w7,ListEnd:k7,ListEndIcon:k7,ListFilter:_7,ListFilterIcon:_7,ListIcon:L7,ListMinus:S7,ListMinusIcon:S7,ListMusic:j7,ListMusicIcon:j7,ListOrdered:E7,ListOrderedIcon:E7,ListPlus:C7,ListPlusIcon:C7,ListRestart:N7,ListRestartIcon:N7,ListStart:T7,ListStartIcon:T7,ListTodo:A7,ListTodoIcon:A7,ListTree:M7,ListTreeIcon:M7,ListVideo:I7,ListVideoIcon:I7,ListX:P7,ListXIcon:P7,Loader:R7,Loader2:Me,Loader2Icon:Me,LoaderCircle:Me,LoaderCircleIcon:Me,LoaderIcon:R7,LoaderPinwheel:O7,LoaderPinwheelIcon:O7,Locate:$7,LocateFixed:D7,LocateFixedIcon:D7,LocateIcon:$7,LocateOff:F7,LocateOffIcon:F7,Lock:Hd,LockIcon:Hd,LockKeyhole:B7,LockKeyholeIcon:B7,LockKeyholeOpen:Lp,LockKeyholeOpenIcon:Lp,LockOpen:Op,LockOpenIcon:Op,LogIn:z7,LogInIcon:z7,LogOut:sw,LogOutIcon:sw,Logs:U7,LogsIcon:U7,Lollipop:q7,LollipopIcon:q7,LucideAArrowDown:AS,LucideAArrowUp:MS,LucideALargeSmall:Bb,LucideAccessibility:IS,LucideActivity:PS,LucideActivitySquare:im,LucideAirVent:LS,LucideAirplay:OS,LucideAlarmCheck:nf,LucideAlarmClock:DS,LucideAlarmClockCheck:nf,LucideAlarmClockMinus:af,LucideAlarmClockOff:RS,LucideAlarmClockPlus:sf,LucideAlarmMinus:af,LucideAlarmPlus:sf,LucideAlarmSmoke:FS,LucideAlbum:$S,LucideAlertCircle:Ya,LucideAlertOctagon:Fp,LucideAlertTriangle:Fs,LucideAlignCenter:US,LucideAlignCenterHorizontal:BS,LucideAlignCenterVertical:zS,LucideAlignEndHorizontal:qS,LucideAlignEndVertical:HS,LucideAlignHorizontalDistributeCenter:VS,LucideAlignHorizontalDistributeEnd:WS,LucideAlignHorizontalDistributeStart:GS,LucideAlignHorizontalJustifyCenter:KS,LucideAlignHorizontalJustifyEnd:YS,LucideAlignHorizontalJustifyStart:XS,LucideAlignHorizontalSpaceAround:ZS,LucideAlignHorizontalSpaceBetween:QS,LucideAlignJustify:JS,LucideAlignLeft:ej,LucideAlignRight:tj,LucideAlignStartHorizontal:rj,LucideAlignStartVertical:nj,LucideAlignVerticalDistributeCenter:aj,LucideAlignVerticalDistributeEnd:ij,LucideAlignVerticalDistributeStart:sj,LucideAlignVerticalJustifyCenter:oj,LucideAlignVerticalJustifyEnd:lj,LucideAlignVerticalJustifyStart:cj,LucideAlignVerticalSpaceAround:uj,LucideAlignVerticalSpaceBetween:dj,LucideAmbulance:hj,LucideAmpersand:fj,LucideAmpersands:pj,LucideAmphora:mj,LucideAnchor:gj,LucideAngry:yj,LucideAnnoyed:vj,LucideAntenna:xj,LucideAnvil:bj,LucideAperture:wj,LucideAppWindow:_j,LucideAppWindowMac:kj,LucideApple:Sj,LucideArchive:Cj,LucideArchiveRestore:jj,LucideArchiveX:Ej,LucideAreaChart:bf,LucideArmchair:Nj,LucideArrowBigDown:Aj,LucideArrowBigDownDash:Tj,LucideArrowBigLeft:Ij,LucideArrowBigLeftDash:Mj,LucideArrowBigRight:Lj,LucideArrowBigRightDash:Pj,LucideArrowBigUp:Rj,LucideArrowBigUpDash:Oj,LucideArrowDown:zb,LucideArrowDown01:Dj,LucideArrowDown10:Fj,LucideArrowDownAZ:of,LucideArrowDownAz:of,LucideArrowDownCircle:If,LucideArrowDownFromLine:$j,LucideArrowDownLeft:Bj,LucideArrowDownLeftFromCircle:Lf,LucideArrowDownLeftFromSquare:um,LucideArrowDownLeftSquare:sm,LucideArrowDownNarrowWide:zj,LucideArrowDownRight:Uj,LucideArrowDownRightFromCircle:Of,LucideArrowDownRightFromSquare:dm,LucideArrowDownRightSquare:om,LucideArrowDownSquare:lm,LucideArrowDownToDot:qj,LucideArrowDownToLine:Hj,LucideArrowDownUp:Vj,LucideArrowDownWideNarrow:lf,LucideArrowDownZA:cf,LucideArrowDownZa:cf,LucideArrowLeft:ea,LucideArrowLeftCircle:Pf,LucideArrowLeftFromLine:Wj,LucideArrowLeftRight:Gj,LucideArrowLeftSquare:cm,LucideArrowLeftToLine:Kj,LucideArrowRight:du,LucideArrowRightCircle:Ff,LucideArrowRightFromLine:Yj,LucideArrowRightLeft:Xj,LucideArrowRightSquare:pm,LucideArrowRightToLine:Zj,LucideArrowUp:Ub,LucideArrowUp01:Qj,LucideArrowUp10:Jj,LucideArrowUpAZ:uf,LucideArrowUpAz:uf,LucideArrowUpCircle:$f,LucideArrowUpDown:e5,LucideArrowUpFromDot:t5,LucideArrowUpFromLine:r5,LucideArrowUpLeft:n5,LucideArrowUpLeftFromCircle:Rf,LucideArrowUpLeftFromSquare:hm,LucideArrowUpLeftSquare:mm,LucideArrowUpNarrowWide:df,LucideArrowUpRight:a5,LucideArrowUpRightFromCircle:Df,LucideArrowUpRightFromSquare:fm,LucideArrowUpRightSquare:gm,LucideArrowUpSquare:ym,LucideArrowUpToLine:i5,LucideArrowUpWideNarrow:s5,LucideArrowUpZA:hf,LucideArrowUpZa:hf,LucideArrowsUpFromLine:o5,LucideAsterisk:l5,LucideAsteriskSquare:vm,LucideAtSign:c5,LucideAtom:u5,LucideAudioLines:d5,LucideAudioWaveform:h5,LucideAward:f5,LucideAxe:p5,LucideAxis3D:ff,LucideAxis3d:ff,LucideBaby:qb,LucideBackpack:m5,LucideBadge:M5,LucideBadgeAlert:g5,LucideBadgeCent:y5,LucideBadgeCheck:pf,LucideBadgeDollarSign:v5,LucideBadgeEuro:x5,LucideBadgeHelp:b5,LucideBadgeIndianRupee:w5,LucideBadgeInfo:k5,LucideBadgeJapaneseYen:_5,LucideBadgeMinus:S5,LucideBadgePercent:j5,LucideBadgePlus:E5,LucideBadgePoundSterling:C5,LucideBadgeRussianRuble:N5,LucideBadgeSwissFranc:T5,LucideBadgeX:A5,LucideBaggageClaim:I5,LucideBan:P5,LucideBanana:L5,LucideBandage:O5,LucideBanknote:R5,LucideBarChart:Cf,LucideBarChart2:Nf,LucideBarChart3:Kc,LucideBarChart4:jf,LucideBarChartBig:Sf,LucideBarChartHorizontal:kf,LucideBarChartHorizontalBig:wf,LucideBarcode:D5,LucideBaseline:F5,LucideBath:$5,LucideBattery:V5,LucideBatteryCharging:B5,LucideBatteryFull:z5,LucideBatteryLow:U5,LucideBatteryMedium:q5,LucideBatteryWarning:H5,LucideBeaker:W5,LucideBean:K5,LucideBeanOff:G5,LucideBed:Z5,LucideBedDouble:Y5,LucideBedSingle:X5,LucideBeef:Q5,LucideBeer:e6,LucideBeerOff:J5,LucideBell:o6,LucideBellDot:t6,LucideBellElectric:r6,LucideBellMinus:n6,LucideBellOff:a6,LucideBellPlus:i6,LucideBellRing:s6,LucideBetweenHorizonalEnd:mf,LucideBetweenHorizonalStart:gf,LucideBetweenHorizontalEnd:mf,LucideBetweenHorizontalStart:gf,LucideBetweenVerticalEnd:l6,LucideBetweenVerticalStart:c6,LucideBicepsFlexed:u6,LucideBike:d6,LucideBinary:h6,LucideBinoculars:f6,LucideBiohazard:p6,LucideBird:m6,LucideBitcoin:g6,LucideBlend:y6,LucideBlinds:v6,LucideBlocks:x6,LucideBluetooth:_6,LucideBluetoothConnected:b6,LucideBluetoothOff:w6,LucideBluetoothSearching:k6,LucideBold:S6,LucideBolt:j6,LucideBomb:E6,LucideBone:C6,LucideBook:hu,LucideBookA:Hb,LucideBookAudio:N6,LucideBookCheck:Vb,LucideBookCopy:T6,LucideBookDashed:yf,LucideBookDown:A6,LucideBookHeadphones:M6,LucideBookHeart:I6,LucideBookImage:P6,LucideBookKey:L6,LucideBookLock:O6,LucideBookMarked:R6,LucideBookMinus:D6,LucideBookOpen:xr,LucideBookOpenCheck:F6,LucideBookOpenText:$6,LucideBookPlus:B6,LucideBookTemplate:yf,LucideBookText:z6,LucideBookType:U6,LucideBookUp:H6,LucideBookUp2:q6,LucideBookUser:V6,LucideBookX:W6,LucideBookmark:Z6,LucideBookmarkCheck:G6,LucideBookmarkMinus:K6,LucideBookmarkPlus:Y6,LucideBookmarkX:X6,LucideBoomBox:Q6,LucideBot:Wb,LucideBotMessageSquare:J6,LucideBotOff:eE,LucideBox:tE,LucideBoxSelect:Tm,LucideBoxes:rE,LucideBraces:vf,LucideBrackets:nE,LucideBrain:sE,LucideBrainCircuit:aE,LucideBrainCog:iE,LucideBrickWall:oE,LucideBriefcase:
7775dE,LucideBriefcaseBusiness:lE,LucideBriefcaseConveyorBelt:cE,LucideBriefcaseMedical:uE,LucideBringToFront:hE,LucideBrush:fE,LucideBug:gE,LucideBugOff:pE,LucideBugPlay:mE,LucideBuilding:vE,LucideBuilding2:yE,LucideBus:bE,LucideBusFront:xE,LucideCable:kE,LucideCableCar:wE,LucideCake:SE,LucideCakeSlice:_E,LucideCalculator:jE,LucideCalendar:ic,LucideCalendar1:EE,LucideCalendarArrowDown:CE,LucideCalendarArrowUp:NE,LucideCalendarCheck:AE,LucideCalendarCheck2:TE,LucideCalendarClock:Gb,LucideCalendarCog:ME,LucideCalendarDays:IE,LucideCalendarFold:PE,LucideCalendarHeart:LE,LucideCalendarMinus:RE,LucideCalendarMinus2:OE,LucideCalendarOff:DE,LucideCalendarPlus:$E,LucideCalendarPlus2:FE,LucideCalendarRange:BE,LucideCalendarSearch:zE,LucideCalendarSync:UE,LucideCalendarX:HE,LucideCalendarX2:qE,LucideCamera:WE,LucideCameraOff:VE,LucideCandlestickChart:_f,LucideCandy:YE,LucideCandyCane:GE,LucideCandyOff:KE,LucideCannabis:XE,LucideCaptions:xf,LucideCaptionsOff:ZE,LucideCar:eC,LucideCarFront:QE,LucideCarTaxiFront:JE,LucideCaravan:tC,LucideCarrot:rC,LucideCaseLower:nC,LucideCaseSensitive:aC,LucideCaseUpper:iC,LucideCassetteTape:sC,LucideCast:oC,LucideCastle:lC,LucideCat:cC,LucideCctv:uC,LucideChartArea:bf,LucideChartBar:kf,LucideChartBarBig:wf,LucideChartBarDecreasing:dC,LucideChartBarIncreasing:hC,LucideChartBarStacked:fC,LucideChartCandlestick:_f,LucideChartColumn:Kc,LucideChartColumnBig:Sf,LucideChartColumnDecreasing:pC,LucideChartColumnIncreasing:jf,LucideChartColumnStacked:mC,LucideChartGantt:gC,LucideChartLine:Ef,LucideChartNetwork:yC,LucideChartNoAxesColumn:Nf,LucideChartNoAxesColumnDecreasing:vC,LucideChartNoAxesColumnIncreasing:Cf,LucideChartNoAxesCombined:xC,LucideChartNoAxesGantt:Tf,LucideChartPie:Af,LucideChartScatter:Mf,LucideChartSpline:bC,LucideCheck:_r,LucideCheckCheck:wC,LucideCheckCircle:Vi,LucideCheckCircle2:Si,LucideCheckSquare:bm,LucideCheckSquare2:wm,LucideChefHat:kC,LucideCherry:_C,LucideChevronDown:sc,LucideChevronDownCircle:Bf,LucideChevronDownSquare:km,LucideChevronFirst:SC,LucideChevronLast:jC,LucideChevronLeft:fu,LucideChevronLeftCircle:zf,LucideChevronLeftSquare:_m,LucideChevronRight:Vs,LucideChevronRightCircle:Uf,LucideChevronRightSquare:Sm,LucideChevronUp:Kb,LucideChevronUpCircle:qf,LucideChevronUpSquare:jm,LucideChevronsDown:CC,LucideChevronsDownUp:EC,LucideChevronsLeft:AC,LucideChevronsLeftRight:TC,LucideChevronsLeftRightEllipsis:NC,LucideChevronsRight:IC,LucideChevronsRightLeft:MC,LucideChevronsUp:PC,LucideChevronsUpDown:py,LucideChrome:LC,LucideChurch:OC,LucideCigarette:DC,LucideCigaretteOff:RC,LucideCircle:e0,LucideCircleAlert:Ya,LucideCircleArrowDown:If,LucideCircleArrowLeft:Pf,LucideCircleArrowOutDownLeft:Lf,LucideCircleArrowOutDownRight:Of,LucideCircleArrowOutUpLeft:Rf,LucideCircleArrowOutUpRight:Df,LucideCircleArrowRight:Ff,LucideCircleArrowUp:$f,LucideCircleCheck:Si,LucideCircleCheckBig:Vi,LucideCircleChevronDown:Bf,LucideCircleChevronLeft:zf,LucideCircleChevronRight:Uf,LucideCircleChevronUp:qf,LucideCircleDashed:FC,LucideCircleDivide:Hf,LucideCircleDollarSign:$C,LucideCircleDot:zC,LucideCircleDotDashed:BC,LucideCircleEllipsis:UC,LucideCircleEqual:qC,LucideCircleFadingArrowUp:HC,LucideCircleFadingPlus:VC,LucideCircleGauge:Vf,LucideCircleHelp:tl,LucideCircleMinus:Wf,LucideCircleOff:WC,LucideCircleParking:Kf,LucideCircleParkingOff:Gf,LucideCirclePause:Yf,LucideCirclePercent:Xf,LucideCirclePlay:Zf,LucideCirclePlus:Yc,LucideCirclePower:Qf,LucideCircleSlash:GC,LucideCircleSlash2:Jf,LucideCircleSlashed:Jf,LucideCircleStop:ep,LucideCircleUser:rp,LucideCircleUserRound:tp,LucideCircleX:li,LucideCircuitBoard:KC,LucideCitrus:YC,LucideClapperboard:XC,LucideClipboard:aN,LucideClipboardCheck:ZC,LucideClipboardCopy:QC,LucideClipboardEdit:ap,LucideClipboardList:JC,LucideClipboardMinus:eN,LucideClipboardPaste:Yb,LucideClipboardPen:ap,LucideClipboardPenLine:np,LucideClipboardPlus:tN,LucideClipboardSignature:np,LucideClipboardType:rN,LucideClipboardX:nN,LucideClock:Da,LucideClock1:iN,LucideClock10:sN,LucideClock11:oN,LucideClock12:lN,LucideClock2:cN,LucideClock3:uN,LucideClock4:dN,LucideClock5:hN,LucideClock6:fN,LucideClock7:pN,LucideClock8:mN,LucideClock9:gN,LucideClockAlert:yN,LucideClockArrowDown:vN,LucideClockArrowUp:xN,LucideCloud:LN,LucideCloudAlert:bN,LucideCloudCog:wN,LucideCloudDownload:ip,LucideCloudDrizzle:kN,LucideCloudFog:_N,LucideCloudHail:SN,LucideCloudLightning:jN,LucideCloudMoon:CN,LucideCloudMoonRain:EN,LucideCloudOff:NN,LucideCloudRain:AN,LucideCloudRainWind:TN,LucideCloudSnow:MN,LucideCloudSun:PN,LucideCloudSunRain:IN,LucideCloudUpload:sp,LucideCloudy:ON,LucideClover:RN,LucideClub:DN,LucideCode:FN,LucideCode2:op,LucideCodeSquare:Em,LucideCodeXml:op,LucideCodepen:$N,LucideCodesandbox:BN,LucideCoffee:zN,LucideCog:UN,LucideCoins:qN,LucideColumns:lp,LucideColumns2:lp,LucideColumns3:cp,LucideColumns4:HN,LucideCombine:VN,LucideCommand:WN,LucideCompass:GN,LucideComponent:KN,LucideComputer:YN,LucideConciergeBell:XN,LucideCone:ZN,LucideConstruction:QN,LucideContact:JN,LucideContact2:up,LucideContactRound:up,LucideContainer:e8,LucideContrast:t8,LucideCookie:r8,LucideCookingPot:n8,LucideCopy:t0,LucideCopyCheck:a8,LucideCopyMinus:i8,LucideCopyPlus:s8,LucideCopySlash:o8,LucideCopyX:l8,LucideCopyleft:c8,LucideCopyright:u8,LucideCornerDownLeft:d8,LucideCornerDownRight:h8,LucideCornerLeftDown:f8,LucideCornerLeftUp:p8,LucideCornerRightDown:m8,LucideCornerRightUp:g8,LucideCornerUpLeft:y8,LucideCornerUpRight:v8,LucideCpu:x8,LucideCreativeCommons:b8,LucideCredit
7775Card:bs,LucideCroissant:w8,LucideCrop:k8,LucideCross:_8,LucideCrosshair:S8,LucideCrown:my,LucideCuboid:j8,LucideCupSoda:E8,LucideCurlyBraces:vf,LucideCurrency:C8,LucideCylinder:N8,LucideDam:T8,LucideDatabase:I8,LucideDatabaseBackup:A8,LucideDatabaseZap:M8,LucideDelete:P8,LucideDessert:L8,LucideDiameter:O8,LucideDiamond:F8,LucideDiamondMinus:R8,LucideDiamondPercent:dp,LucideDiamondPlus:D8,LucideDice1:$8,LucideDice2:B8,LucideDice3:z8,LucideDice4:U8,LucideDice5:q8,LucideDice6:H8,LucideDices:V8,LucideDiff:W8,LucideDisc:X8,LucideDisc2:G8,LucideDisc3:K8,LucideDiscAlbum:Y8,LucideDivide:Z8,LucideDivideCircle:Hf,LucideDivideSquare:Am,LucideDna:J8,LucideDnaOff:Q8,LucideDock:eT,LucideDog:tT,LucideDollarSign:gy,LucideDonut:rT,LucideDoorClosed:nT,LucideDoorOpen:aT,LucideDot:iT,LucideDotSquare:Mm,LucideDownload:sT,LucideDownloadCloud:ip,LucideDraftingCompass:oT,LucideDrama:lT,LucideDribbble:cT,LucideDrill:uT,LucideDroplet:dT,LucideDroplets:hT,LucideDrum:fT,LucideDrumstick:pT,LucideDumbbell:mT,LucideEar:yT,LucideEarOff:gT,LucideEarth:hp,LucideEarthLock:vT,LucideEclipse:xT,LucideEdit:ii,LucideEdit2:dd,LucideEdit3:ud,LucideEgg:kT,LucideEggFried:bT,LucideEggOff:wT,LucideEllipsis:Xc,LucideEllipsisVertical:fp,LucideEqual:jT,LucideEqualApproximately:_T,LucideEqualNot:ST,LucideEqualSquare:Im,LucideEraser:ET,LucideEthernetPort:CT,LucideEuro:NT,LucideExpand:TT,LucideExternalLink:oc,LucideEye:Qa,LucideEyeClosed:AT,LucideEyeOff:MT,LucideFacebook:Xb,LucideFactory:IT,LucideFan:PT,LucideFastForward:LT,LucideFeather:OT,LucideFence:RT,LucideFerrisWheel:DT,LucideFigma:FT,LucideFile:IA,LucideFileArchive:$T,LucideFileAudio:zT,LucideFileAudio2:BT,LucideFileAxis3D:pp,LucideFileAxis3d:pp,LucideFileBadge:qT,LucideFileBadge2:UT,LucideFileBarChart:mp,LucideFileBarChart2:gp,LucideFileBox:HT,LucideFileChartColumn:gp,LucideFileChartColumnIncreasing:mp,LucideFileChartLine:yp,LucideFileChartPie:vp,LucideFileCheck:WT,LucideFileCheck2:VT,LucideFileClock:GT,LucideFileCode:yy,LucideFileCode2:KT,LucideFileCog:xp,LucideFileCog2:xp,LucideFileDiff:YT,LucideFileDigit:XT,LucideFileDown:vy,LucideFileEdit:wp,LucideFileHeart:ZT,LucideFileImage:QT,LucideFileInput:JT,LucideFileJson:tA,LucideFileJson2:eA,LucideFileKey:nA,LucideFileKey2:rA,LucideFileLineChart:yp,LucideFileLock:iA,LucideFileLock2:aA,LucideFileMinus:oA,LucideFileMinus2:sA,LucideFileMusic:lA,LucideFileOutput:cA,LucideFilePen:wp,LucideFilePenLine:bp,LucideFilePieChart:vp,LucideFilePlus:dA,LucideFilePlus2:uA,LucideFileQuestion:hA,LucideFileScan:fA,LucideFileSearch:mA,LucideFileSearch2:pA,LucideFileSignature:bp,LucideFileSliders:gA,LucideFileSpreadsheet:yA,LucideFileStack:vA,LucideFileSymlink:xA,LucideFileTerminal:bA,LucideFileText:Ti,LucideFileType:kA,LucideFileType2:wA,LucideFileUp:_A,LucideFileUser:SA,LucideFileVideo:EA,LucideFileVideo2:jA,LucideFileVolume:NA,LucideFileVolume2:CA,LucideFileWarning:TA,LucideFileX:MA,LucideFileX2:AA,LucideFiles:PA,LucideFilm:LA,LucideFilter:RA,LucideFilterX:OA,LucideFingerprint:DA,LucideFireExtinguisher:FA,LucideFish:zA,LucideFishOff:$A,LucideFishSymbol:BA,LucideFlag:VA,LucideFlagOff:UA,LucideFlagTriangleLeft:qA,LucideFlagTriangleRight:HA,LucideFlame:GA,LucideFlameKindling:WA,LucideFlashlight:YA,LucideFlashlightOff:KA,LucideFlaskConical:ZA,LucideFlaskConicalOff:XA,LucideFlaskRound:QA,LucideFlipHorizontal:eM,LucideFlipHorizontal2:JA,LucideFlipVertical:rM,LucideFlipVertical2:tM,LucideFlower:aM,LucideFlower2:nM,LucideFocus:Zb,LucideFoldHorizontal:iM,LucideFoldVertical:sM,LucideFolder:PM,LucideFolderArchive:oM,LucideFolderCheck:lM,LucideFolderClock:cM,LucideFolderClosed:uM,LucideFolderCode:dM,LucideFolderCog:kp,LucideFolderCog2:kp,LucideFolderDot:hM,LucideFolderDown:fM,LucideFolderEdit:_p,LucideFolderGit:mM,LucideFolderGit2:pM,LucideFolderHeart:gM,LucideFolderInput:yM,LucideFolderKanban:vM,LucideFolderKey:xM,LucideFolderLock:bM,LucideFolderMinus:wM,LucideFolderOpen:_M,LucideFolderOpenDot:kM,LucideFolderOutput:SM,LucideFolderPen:_p,LucideFolderPlus:jM,LucideFolderRoot:EM,LucideFolderSearch:NM,LucideFolderSearch2:CM,LucideFolderSymlink:TM,LucideFolderSync:AM,LucideFolderTree:Qb,LucideFolderUp:MM,LucideFolderX:IM,LucideFolders:LM,LucideFootprints:OM,LucideForkKnife:y1,LucideForkKnifeCrossed:g1,LucideForklift:RM,LucideFormInput:Zp,LucideForward:DM,LucideFrame:FM,LucideFramer:$M,LucideFrown:BM,LucideFuel:zM,LucideFullscreen:UM,LucideFunctionSquare:Pm,LucideGalleryHorizontal:HM,LucideGalleryHorizontalEnd:qM,LucideGalleryThumbnails:VM,LucideGalleryVertical:GM,LucideGalleryVerticalEnd:WM,LucideGamepad:YM,LucideGamepad2:KM,LucideGanttChart:Tf,LucideGanttChartSquare:Ol,LucideGauge:XM,LucideGaugeCircle:Vf,LucideGavel:ZM,LucideGem:QM,LucideGhost:JM,LucideGift:r0,LucideGitBranch:tI,LucideGitBranchPlus:eI,LucideGitCommit:Sp,LucideGitCommitHorizontal:Sp,LucideGitCommitVertical:rI,LucideGitCompare:aI,LucideGitCompareArrows:nI,LucideGitFork:iI,LucideGitGraph:sI,LucideGitMerge:oI,LucideGitPullRequest:fI,LucideGitPullRequestArrow:lI,LucideGitPullRequestClosed:cI,LucideGitPullRequestCreate:dI,LucideGitPullRequestCreateArrow:uI,LucideGitPullRequestDraft:hI,LucideGithub:pI,LucideGitlab:mI,LucideGlassWater:gI,LucideGlasses:yI,LucideGlobe:xI,LucideGlobe2:hp,LucideGlobeLock:vI,LucideGoal:bI,LucideGrab:wI,LucideGraduationCap:Jb,LucideGrape:kI,LucideGrid:Ll,LucideGrid2X2:Ep,LucideGrid2X2Plus:jp,LucideGrid2x2:Ep,LucideGrid2x2Check:_I,LucideGrid2x2Plus:jp,LucideGrid2x2X:SI,LucideGrid3X3:Ll,LucideGrid3x3:Ll,LucideGrip:CI,LucideGripHorizontal:jI,LucideGripVertical:EI,LucideGroup:NI,LucideGuitar:TI,LucideHam:AI,LucideHammer
7775:MI,LucideHand:RI,LucideHandCoins:II,LucideHandHeart:PI,LucideHandHelping:Cp,LucideHandMetal:LI,LucideHandPlatter:OI,LucideHandshake:DI,LucideHardDrive:BI,LucideHardDriveDownload:FI,LucideHardDriveUpload:$I,LucideHardHat:zI,LucideHash:UI,LucideHaze:qI,LucideHdmiPort:HI,LucideHeading:ZI,LucideHeading1:VI,LucideHeading2:WI,LucideHeading3:GI,LucideHeading4:KI,LucideHeading5:YI,LucideHeading6:XI,LucideHeadphoneOff:QI,LucideHeadphones:JI,LucideHeadset:eP,LucideHeart:qd,LucideHeartCrack:tP,LucideHeartHandshake:rP,LucideHeartOff:nP,LucideHeartPulse:aP,LucideHeater:iP,LucideHelpCircle:tl,LucideHelpingHand:Cp,LucideHexagon:sP,LucideHighlighter:oP,LucideHistory:lP,LucideHome:Np,LucideHop:uP,LucideHopOff:cP,LucideHospital:dP,LucideHotel:hP,LucideHourglass:fP,LucideHouse:Np,LucideHousePlug:pP,LucideHousePlus:mP,LucideIceCream:Ap,LucideIceCream2:Tp,LucideIceCreamBowl:Tp,LucideIceCreamCone:Ap,LucideIdCard:gP,LucideImage:lc,LucideImageDown:yP,LucideImageMinus:vP,LucideImageOff:ew,LucideImagePlay:xP,LucideImagePlus:tw,LucideImageUp:bP,LucideImageUpscale:wP,LucideImages:kP,LucideImport:xy,LucideInbox:_P,LucideIndent:Ip,LucideIndentDecrease:Mp,LucideIndentIncrease:Ip,LucideIndianRupee:SP,LucideInfinity:jP,LucideInfo:EP,LucideInspect:$m,LucideInspectionPanel:CP,LucideInstagram:rw,LucideItalic:NP,LucideIterationCcw:TP,LucideIterationCw:AP,LucideJapaneseYen:MP,LucideJoystick:IP,LucideKanban:PP,LucideKanbanSquare:Lm,LucideKanbanSquareDashed:Cm,LucideKey:RP,LucideKeyRound:LP,LucideKeySquare:OP,LucideKeyboard:$P,LucideKeyboardMusic:DP,LucideKeyboardOff:FP,LucideLamp:VP,LucideLampCeiling:BP,LucideLampDesk:zP,LucideLampFloor:UP,LucideLampWallDown:qP,LucideLampWallUp:HP,LucideLandPlot:WP,LucideLandmark:GP,LucideLanguages:KP,LucideLaptop:XP,LucideLaptop2:Pp,LucideLaptopMinimal:Pp,LucideLaptopMinimalCheck:YP,LucideLasso:QP,LucideLassoSelect:ZP,LucideLaugh:JP,LucideLayers:r7,LucideLayers2:e7,LucideLayers3:t7,LucideLayout:Yp,LucideLayoutDashboard:n7,LucideLayoutGrid:a7,LucideLayoutList:i7,LucideLayoutPanelLeft:s7,LucideLayoutPanelTop:o7,LucideLayoutTemplate:l7,LucideLeaf:c7,LucideLeafyGreen:u7,LucideLectern:d7,LucideLetterText:h7,LucideLibrary:nw,LucideLibraryBig:f7,LucideLibrarySquare:Om,LucideLifeBuoy:p7,LucideLigature:m7,LucideLightbulb:aw,LucideLightbulbOff:g7,LucideLineChart:Ef,LucideLink:v7,LucideLink2:by,LucideLink2Off:y7,LucideLinkedin:x7,LucideList:L7,LucideListCheck:b7,LucideListChecks:iw,LucideListCollapse:w7,LucideListEnd:k7,LucideListFilter:_7,LucideListMinus:S7,LucideListMusic:j7,LucideListOrdered:E7,LucideListPlus:C7,LucideListRestart:N7,LucideListStart:T7,LucideListTodo:A7,LucideListTree:M7,LucideListVideo:I7,LucideListX:P7,LucideLoader:R7,LucideLoader2:Me,LucideLoaderCircle:Me,LucideLoaderPinwheel:O7,LucideLocate:$7,LucideLocateFixed:D7,LucideLocateOff:F7,LucideLock:Hd,LucideLockKeyhole:B7,LucideLockKeyholeOpen:Lp,LucideLockOpen:Op,LucideLogIn:z7,LucideLogOut:sw,LucideLogs:U7,LucideLollipop:q7,LucideLuggage:H7,LucideMSquare:Rm,LucideMagnet:V7,LucideMail:Vd,LucideMailCheck:W7,LucideMailMinus:G7,LucideMailOpen:K7,LucideMailPlus:Y7,LucideMailQuestion:X7,LucideMailSearch:Z7,LucideMailWarning:Q7,LucideMailX:J7,LucideMailbox:eL,LucideMails:tL,LucideMap:fL,LucideMapPin:wy,LucideMapPinCheck:nL,LucideMapPinCheckInside:rL,LucideMapPinHouse:aL,LucideMapPinMinus:sL,LucideMapPinMinusInside:iL,LucideMapPinOff:oL,LucideMapPinPlus:cL,LucideMapPinPlusInside:lL,LucideMapPinX:dL,LucideMapPinXInside:uL,LucideMapPinned:hL,LucideMartini:pL,LucideMaximize:gL,LucideMaximize2:mL,LucideMedal:yL,LucideMegaphone:xL,LucideMegaphoneOff:vL,LucideMeh:bL,LucideMemoryStick:wL,LucideMenu:ow,LucideMenuSquare:Dm,LucideMerge:kL,LucideMessageCircle:ky,LucideMessageCircleCode:_L,LucideMessageCircleDashed:SL,LucideMessageCircleHeart:lw,LucideMessageCircleMore:jL,LucideMessageCircleOff:EL,LucideMessageCirclePlus:CL,LucideMessageCircleQuestion:NL,LucideMessageCircleReply:TL,LucideMessageCircleWarning:AL,LucideMessageCircleX:ML,LucideMessageSquare:Fa,LucideMessageSquareCode:IL,LucideMessageSquareDashed:PL,LucideMessageSquareDiff:LL,LucideMessageSquareDot:OL,LucideMessageSquareHeart:RL,LucideMessageSquareLock:DL,LucideMessageSquareMore:FL,LucideMessageSquareOff:$L,LucideMessageSquarePlus:BL,LucideMessageSquareQuote:zL,LucideMessageSquareReply:UL,LucideMessageSquareShare:qL,LucideMessageSquareText:HL,LucideMessageSquareWarning:VL,LucideMessageSquareX:WL,LucideMessagesSquare:GL,LucideMic:YL,LucideMic2:Rp,LucideMicOff:KL,LucideMicVocal:Rp,LucideMicrochip:XL,LucideMicroscope:ZL,LucideMicrowave:QL,LucideMilestone:JL,LucideMilk:t9,LucideMilkOff:e9,LucideMinimize:n9,LucideMinimize2:r9,LucideMinus:n0,LucideMinusCircle:Wf,LucideMinusSquare:Fm,LucideMonitor:g9,LucideMonitorCheck:a9,LucideMonitorCog:i9,LucideMonitorDot:s9,LucideMonitorDown:o9,LucideMonitorOff:l9,LucideMonitorPause:c9,LucideMonitorPlay:u9,LucideMonitorSmartphone:d9,LucideMonitorSpeaker:h9,LucideMonitorStop:f9,LucideMonitorUp:p9,LucideMonitorX:m9,
7775LucideMoon:v9,LucideMoonStar:y9,LucideMoreHorizontal:Xc,LucideMoreVertical:fp,LucideMountain:b9,LucideMountainSnow:x9,LucideMouse:E9,LucideMouseOff:w9,LucideMousePointer:j9,LucideMousePointer2:k9,LucideMousePointerBan:_9,LucideMousePointerClick:S9,LucideMousePointerSquareDashed:Nm,LucideMove:$9,LucideMove3D:Dp,LucideMove3d:Dp,LucideMoveDiagonal:N9,LucideMoveDiagonal2:C9,LucideMoveDown:M9,LucideMoveDownLeft:T9,LucideMoveDownRight:A9,LucideMoveHorizontal:I9,LucideMoveLeft:P9,LucideMoveRight:L9,LucideMoveUp:D9,LucideMoveUpLeft:O9,LucideMoveUpRight:R9,LucideMoveVertical:F9,LucideMusic:q9,LucideMusic2:B9,LucideMusic3:z9,LucideMusic4:U9,LucideNavigation:G9,LucideNavigation2:V9,LucideNavigation2Off:H9,LucideNavigationOff:W9,LucideNetwork:K9,LucideNewspaper:Y9,LucideNfc:X9,LucideNotebook:eO,LucideNotebookPen:Z9,LucideNotebookTabs:Q9,LucideNotebookText:J9,LucideNotepadText:rO,LucideNotepadTextDashed:tO,LucideNut:aO,LucideNutOff:nO,LucideOctagon:sO,LucideOctagonAlert:Fp,LucideOctagonMinus:iO,LucideOctagonPause:$p,LucideOctagonX:Bp,LucideOmega:oO,LucideOption:lO,LucideOrbit:cO,LucideOrigami:uO,LucideOutdent:Mp,LucidePackage:vl,LucidePackage2:dO,LucidePackageCheck:hO,LucidePackageMinus:fO,LucidePackageOpen:pO,LucidePackagePlus:mO,LucidePackageSearch:gO,LucidePackageX:yO,LucidePaintBucket:vO,LucidePaintRoller:xO,LucidePaintbrush:bO,LucidePaintbrush2:zp,LucidePaintbrushVertical:zp,LucidePalette:_y,LucidePalmtree:s1,LucidePanelBottom:_O,LucidePanelBottomClose:wO,LucidePanelBottomDashed:Up,LucidePanelBottomInactive:Up,LucidePanelBottomOpen:kO,LucidePanelLeft:Wp,LucidePanelLeftClose:qp,LucidePanelLeftDashed:Hp,LucidePanelLeftInactive:Hp,LucidePanelLeftOpen:Vp,LucidePanelRight:EO,LucidePanelRightClose:SO,LucidePanelRightDashed:Gp,LucidePanelRightInactive:Gp,LucidePanelRightOpen:jO,LucidePanelTop:TO,LucidePanelTopClose:CO,LucidePanelTopDashed:Kp,LucidePanelTopInactive:Kp,LucidePanelTopOpen:NO,LucidePanelsLeftBottom:AO,LucidePanelsLeftRight:cp,LucidePanelsRightBottom:MO,LucidePanelsTopBottom:em,LucidePanelsTopLeft:Yp,LucidePaperclip:IO,LucideParentheses:PO,LucideParkingCircle:Kf,LucideParkingCircleOff:Gf,LucideParkingMeter:LO,LucideParkingSquare:zm,LucideParkingSquareOff:Bm,LucidePartyPopper:OO,LucidePause:Sy,LucidePauseCircle:Yf,LucidePauseOctagon:$p,LucidePawPrint:RO,LucidePcCase:DO,LucidePen:dd,LucidePenBox:ii,LucidePenLine:ud,LucidePenOff:FO,LucidePenSquare:ii,LucidePenTool:$O,LucidePencil:cc,LucidePencilLine:BO,LucidePencilOff:zO,LucidePencilRuler:UO,LucidePentagon:qO,LucidePercent:HO,LucidePercentCircle:Xf,LucidePercentDiamond:dp,LucidePercentSquare:Um,LucidePersonStanding:VO,LucidePhilippinePeso:WO,LucidePhone:JO,LucidePhoneCall:GO,LucidePhoneForwarded:KO,LucidePhoneIncoming:YO,LucidePhoneMissed:XO,LucidePhoneOff:ZO,LucidePhoneOutgoing:QO,LucidePi:eR,LucidePiSquare:qm,LucidePiano:tR,LucidePickaxe:rR,LucidePictureInPicture:aR,LucidePictureInPicture2:nR,LucidePieChart:Af,LucidePiggyBank:iR,LucidePilcrow:lR,LucidePilcrowLeft:sR,LucidePilcrowRight:oR,LucidePilcrowSquare:Hm,LucidePill:uR,LucidePillBottle:cR,LucidePin:hR,LucidePinOff:dR,LucidePipette:fR,LucidePizza:pR,LucidePlane:yR,LucidePlaneLanding:mR,LucidePlaneTakeoff:gR,LucidePlay:a0,LucidePlayCircle:Zf,LucidePlaySquare:Vm,LucidePlug:xR,LucidePlug2:vR,LucidePlugZap:Xp,LucidePlugZap2:Xp,LucidePlus:uc,LucidePlusCircle:Yc,LucidePlusSquare:Wm,LucidePocket:wR,LucidePocketKnife:bR,LucidePodcast:kR,LucidePointer:SR,LucidePointerOff:_R,LucidePopcorn:jR,LucidePopsicle:ER,LucidePoundSterling:CR,LucidePower:TR,LucidePowerCircle:Qf,LucidePowerOff:NR,LucidePowerSquare:Gm,LucidePresentation:AR,LucidePrinter:Wd,LucidePrinterCheck:MR,LucideProjector:IR,LucideProportions:PR,LucidePuzzle:LR,LucidePyramid:OR,LucideQrCode:RR,LucideQuote:cw,LucideRabbit:DR,LucideRadar:FR,LucideRadiation:$R,LucideRadical:BR,LucideRadio:qR,LucideRadioReceiver:zR,LucideRadioTower:UR,LucideRadius:HR,LucideRailSymbol:VR,LucideRainbow:WR,LucideRat:GR,LucideRatio:KR,LucideReceipt:nD,LucideReceiptCent:YR,LucideReceiptEuro:XR,LucideReceiptIndianRupee:ZR,LucideReceiptJapaneseYen:QR,LucideReceiptPoundSterling:JR,LucideReceiptRussianRuble:eD,LucideReceiptSwissFranc:tD,LucideReceiptText:rD,LucideRectangleEllipsis:Zp,LucideRectangleHorizontal:aD,LucideRectangleVertical:iD,LucideRecycle:sD,LucideRedo:cD,LucideRedo2:oD,LucideRedoDot:lD,LucideRefreshCcw:dD,LucideRefreshCcwDot:uD,LucideRefreshCw:Vn,LucideRefreshCwOff:hD,LucideRefrigerator:fD,LucideRegex:pD,LucideRemoveFormatting:mD,LucideRepeat:uw,LucideRepeat1:gD,LucideRepeat2:yD,LucideReplace:xD,LucideReplaceAll:vD,LucideReply:wD,LucideReplyAll:bD,LucideRewind:kD,LucideRibbon:_D,LucideRocket:SD,LucideRockingChair:jD,LucideRollerCoaster:ED,LucideRotate3D:Qp,LucideRotate3d:Qp,LucideRotateCcw:jy,LucideRotateCcwSquare:CD,LucideRotateCw:TD,LucideRotateCwSquare:ND,LucideRoute:MD,LucideRouteOff:AD,LucideRouter:ID,LucideRows:Jp,LucideRows2:Jp,LucideRows3:em,LucideRows4:PD,LucideRss:LD,LucideRuler:OD,LucideRussianRuble:RD,LucideSailboat:DD,LucideSalad:FD,LucideSandwich:$D,LucideSatellite:zD,LucideSatelliteDish:BD,LucideSave:HD,LucideSaveAll:UD,LucideSaveOff:qD,LucideScale:VD,LucideScale3D:tm,LucideScale3d:tm,LucideScaling:WD,LucideScan:eF,LucideScanBarcode:GD,LucideScanEye:KD,LucideScanFace:YD,LucideScanLine:XD,LucideScanQrCode:ZD,LucideScanSearch:QD,LucideScanText:JD,LucideScatterChart:Mf,LucideSchool:tF,LucideSchool2:l1,LucideScissors:nF,LucideScissorsLineDashed:rF,LucideScissorsSquare:Km,LucideScissorsSquareDashedBottom:xm,LucideScreenShare:iF,LucideScreenShareOff:aF,LucideScroll:oF,LucideScrollText:sF,LucideSearch:go,LucideSearchCheck:lF,LucideSearchCode:cF,LucideSearchSlash:uF,LucideSearchX:dF,LucideSection:hF,LucideSend:Gd,LucideSendHorizonal:rm,LucideSendHorizontal:rm,LucideSendToBack:fF,LucideSeparatorHorizontal:pF,LucideSeparatorVertical:mF,LucideServer:xF,LucideServerCog:gF,LucideServerCrash:yF,LucideServerOff:vF,LucideSettings:dw,LucideSettings2:bF,LucideShapes:wF,LucideShare:kF,LucideShare2:Ey,LucideSheet:_F,LucideShell:S
7775F,LucideShield:i0,LucideShieldAlert:jF,LucideShieldBan:EF,LucideShieldCheck:CF,LucideShieldClose:nm,LucideShieldEllipsis:NF,LucideShieldHalf:TF,LucideShieldMinus:AF,LucideShieldOff:MF,LucideShieldPlus:IF,LucideShieldQuestion:PF,LucideShieldX:nm,LucideShip:OF,LucideShipWheel:LF,LucideShirt:RF,LucideShoppingBag:hw,LucideShoppingBasket:DF,LucideShoppingCart:FF,LucideShovel:$F,LucideShowerHead:BF,LucideShrink:zF,LucideShrub:UF,LucideShuffle:qF,LucideSidebar:Wp,LucideSidebarClose:qp,LucideSidebarOpen:Vp,LucideSigma:HF,LucideSigmaSquare:Ym,LucideSignal:YF,LucideSignalHigh:VF,LucideSignalLow:WF,LucideSignalMedium:GF,LucideSignalZero:KF,LucideSignature:XF,LucideSignpost:QF,LucideSignpostBig:ZF,LucideSiren:JF,LucideSkipBack:e$,LucideSkipForward:fw,LucideSkull:t$,LucideSlack:r$,LucideSlash:n$,LucideSlashSquare:Xm,LucideSlice:a$,LucideSliders:am,LucideSlidersHorizontal:pw,LucideSlidersVertical:am,LucideSmartphone:o$,LucideSmartphoneCharging:i$,LucideSmartphoneNfc:s$,LucideSmile:mw,LucideSmilePlus:l$,LucideSnail:c$,LucideSnowflake:u$,LucideSofa:d$,LucideSortAsc:df,LucideSortDesc:lf,LucideSoup:h$,LucideSpace:f$,LucideSpade:p$,LucideSparkle:m$,LucideSparkles:Qt,LucideSpeaker:g$,LucideSpeech:y$,LucideSpellCheck:x$,LucideSpellCheck2:v$,LucideSpline:b$,LucideSplit:w$,LucideSplitSquareHorizontal:Zm,LucideSplitSquareVertical:Qm,LucideSprayCan:k$,LucideSprout:_$,LucideSquare:T$,LucideSquareActivity:im,LucideSquareArrowDown:lm,LucideSquareArrowDownLeft:sm,LucideSquareArrowDownRight:om,LucideSquareArrowLeft:cm,LucideSquareArrowOutDownLeft:um,LucideSquareArrowOutDownRight:dm,LucideSquareArrowOutUpLeft:hm,LucideSquareArrowOutUpRight:fm,LucideSquareArrowRight:pm,LucideSquareArrowUp:ym,LucideSquareArrowUpLeft:mm,LucideSquareArrowUpRight:gm,LucideSquareAsterisk:vm,LucideSquareBottomDashedScissors:xm,LucideSquareChartGantt:Ol,LucideSquareCheck:wm,LucideSquareCheckBig:bm,LucideSquareChevronDown:km,LucideSquareChevronLeft:_m,LucideSquareChevronRight:Sm,LucideSquareChevronUp:jm,LucideSquareCode:Em,LucideSquareDashed:Tm,LucideSquareDashedBottom:j$,LucideSquareDashedBottomCode:S$,LucideSquareDashedKanban:Cm,LucideSquareDashedMousePointer:Nm,LucideSquareDivide:Am,LucideSquareDot:Mm,LucideSquareEqual:Im,LucideSquareFunction:Pm,LucideSquareGanttChart:Ol,LucideSquareKanban:Lm,LucideSquareLibrary:Om,LucideSquareM:Rm,LucideSquareMenu:Dm,LucideSquareMinus:Fm,LucideSquareMousePointer:$m,LucideSquareParking:zm,LucideSquareParkingOff:Bm,LucideSquarePen:ii,LucideSquarePercent:Um,LucideSquarePi:qm,LucideSquarePilcrow:Hm,LucideSquarePlay:Vm,LucideSquarePlus:Wm,LucideSquarePower:Gm,LucideSquareRadical:E$,LucideSquareScissors:Km,LucideSquareSigma:Ym,LucideSquareSlash:Xm,LucideSquareSplitHorizontal:Zm,LucideSquareSplitVertical:Qm,LucideSquareSquare:C$,LucideSquareStack:N$,LucideSquareTerminal:Jm,LucideSquareUser:t1,LucideSquareUserRound:e1,LucideSquareX:r1,LucideSquircle:A$,LucideSquirrel:M$,LucideStamp:I$,LucideStar:Oa,LucideStarHalf:P$,LucideStarOff:L$,LucideStars:Qt,LucideStepBack:O$,LucideStepForward:R$,LucideStethoscope:D$,LucideSticker:F$,LucideStickyNote:$$,LucideStopCircle:ep,LucideStore:B$,LucideStretchHorizontal:z$,LucideStretchVertical:U$,LucideStrikethrough:q$,LucideSubscript:H$,LucideSubtitles:xf,LucideSun:Y$,LucideSunDim:V$,LucideSunMedium:W$,LucideSunMoon:G$,LucideSunSnow:K$,LucideSunrise:X$,LucideSunset:Z$,LucideSuperscript:Q$,LucideSwatchBook:J$,LucideSwissFranc:eB,LucideSwitchCamera:tB,LucideSword:rB,LucideSwords:nB,LucideSyringe:aB,LucideTable:hB,LucideTable2:iB,LucideTableCellsMerge:sB,LucideTableCellsSplit:oB,LucideTableColumnsSplit:lB,LucideTableOfContents:cB,LucideTableProperties:uB,LucideTableRowsSplit:dB,LucideTablet:pB,LucideTabletSmartphone:fB,LucideTablets:mB,LucideTag:s0,LucideTags:gB,LucideTally1:yB,LucideTally2:vB,LucideTally3:xB,LucideTally4:bB,LucideTally5:wB,LucideTangent:kB,LucideTarget:_B,LucideTelescope:SB,LucideTent:EB,LucideTentTree:jB,LucideTerminal:CB,LucideTerminalSquare:Jm,LucideTestTube:NB,LucideTestTube2:n1,LucideTestTubeDiagonal:n1,LucideTestTubes:TB,LucideText:LB,LucideTextCursor:MB,LucideTextCursorInput:AB,LucideTextQuote:IB,LucideTextSearch:PB,LucideTextSelect:a1,LucideTextSelection:a1,LucideTheater:OB,LucideThermometer:FB,LucideThermometerSnowflake:RB,LucideThermometerSun:DB,LucideThumbsDown:gw,LucideThumbsUp:yw,LucideTicket:VB,LucideTicketCheck:$B,LucideTicketMinus:BB,LucideTicketPercent:zB,LucideTicketPlus:UB,LucideTicketSlash:qB,LucideTicketX:HB,LucideTickets:GB,LucideTicketsPlane:WB,LucideTimer:XB,LucideTimerOff:KB,LucideTimerReset:YB,LucideToggleLeft:ZB,LucideToggleRight:QB,LucideToilet:JB,LucideTornado:ez,LucideTorus:tz,LucideTouchpad:nz,LucideTouchpadOff:rz,LucideTowerControl:az,LucideToyBrick:iz,LucideTractor:sz,LucideTrafficCone:oz,LucideTrain:i1,LucideTrainFront:cz,LucideTrainFrontTunnel:lz,LucideTrainTrack:uz,LucideTramFront:i1,LucideTrash:dz,LucideTrash2:ws,LucideTreeDeciduous:hz,LucideTreePalm:s1,LucideTreePine:fz,LucideTrees:pz,LucideTrello:mz,LucideTrendingDown:Cy,LucideTrendingUp:Ny,LucideTrendingUpDown:gz,LucideTriangle:vz,LucideTriangleAlert:Fs,LucideTriangleRight:yz,LucideTrophy:xz,LucideTruck:Ty,LucideTurtle:bz,LucideTv:kz,LucideTv2:o1,LucideTvMinimal:o1,LucideTvMinimalPlay:wz,LucideTwitch:_z,LucideTwitter:Sz,LucideType:vw,LucideTypeOutline:jz,LucideUmbrella:Cz,LucideUmbrellaOff:Ez,LucideUnderline:Nz,LucideUndo:Mz,LucideUndo2:Tz,LucideUndoDot:Az,LucideUnfoldHorizontal:Iz,LucideUnfoldVertical:Pz,LucideUngroup:Lz,LucideUniversity:l1,LucideUnlink:Rz,LucideUnlink2:Oz,LucideUnlock:Op,LucideUnlockKeyhole:Lp,LucideUnplug:Dz,LucideUpload:xw,LucideUploadCloud:s
7775p,LucideUsb:Fz,LucideUser:xl,LucideUser2:p1,LucideUserCheck:$z,LucideUserCheck2:c1,LucideUserCircle:rp,LucideUserCircle2:tp,LucideUserCog:Bz,LucideUserCog2:u1,LucideUserMinus:o0,LucideUserMinus2:d1,LucideUserPen:bw,LucideUserPlus:zz,LucideUserPlus2:h1,LucideUserRound:p1,LucideUserRoundCheck:c1,LucideUserRoundCog:u1,LucideUserRoundMinus:d1,LucideUserRoundPen:Uz,LucideUserRoundPlus:h1,LucideUserRoundSearch:qz,LucideUserRoundX:f1,LucideUserSearch:Hz,LucideUserSquare:t1,LucideUserSquare2:e1,LucideUserX:Vz,LucideUserX2:f1,LucideUsers:Xi,LucideUsers2:m1,LucideUsersRound:m1,LucideUtensils:y1,LucideUtensilsCrossed:g1,LucideUtilityPole:Wz,LucideVariable:Gz,LucideVault:Kz,LucideVegan:Yz,LucideVenetianMask:Xz,LucideVerified:pf,LucideVibrate:Qz,LucideVibrateOff:Zz,LucideVideo:eU,LucideVideoOff:Jz,LucideVideotape:tU,LucideView:rU,LucideVoicemail:nU,LucideVolleyball:aU,LucideVolume:cU,LucideVolume1:iU,LucideVolume2:sU,LucideVolumeOff:oU,LucideVolumeX:lU,LucideVote:uU,LucideWallet:hU,LucideWallet2:v1,LucideWalletCards:dU,LucideWalletMinimal:v1,LucideWallpaper:fU,LucideWand:pU,LucideWand2:x1,LucideWandSparkles:x1,LucideWarehouse:mU,LucideWashingMachine:gU,LucideWatch:yU,LucideWaves:vU,LucideWaypoints:xU,LucideWebcam:bU,LucideWebhook:kU,LucideWebhookOff:wU,LucideWeight:_U,LucideWheat:jU,LucideWheatOff:SU,LucideWholeWord:EU,LucideWifi:MU,LucideWifiHigh:CU,LucideWifiLow:NU,LucideWifiOff:TU,LucideWifiZero:AU,LucideWind:PU,LucideWindArrowDown:IU,LucideWine:OU,LucideWineOff:LU,LucideWorkflow:RU,LucideWorm:DU,LucideWrapText:FU,LucideWrench:Ay,LucideX:hi,LucideXCircle:li,LucideXOctagon:Bp,LucideXSquare:r1,LucideYoutube:ww,LucideZap:kw,LucideZapOff:$U,LucideZoomIn:BU,LucideZoomOut:zU,Luggage:H7,LuggageIcon:H7,MSquare:Rm,MSquareIcon:Rm,Magnet:V7,MagnetIcon:V7,Mail:Vd,MailCheck:W7,MailCheckIcon:W7,MailIcon:Vd,MailMinus:G7,MailMinusIcon:G7,MailOpen:K7,MailOpenIcon:K7,MailPlus:Y7,MailPlusIcon:Y7,MailQuestion:X7,MailQuestionIcon:X7,MailSearch:Z7,MailSearchIcon:Z7,MailWarning:Q7,MailWarningIcon:Q7,MailX:J7,MailXIcon:J7,Mailbox:eL,MailboxIcon:eL,Mails:tL,MailsIcon:tL,Map:fL,MapIcon:fL,MapPin:wy,MapPinCheck:nL,MapPinCheckIcon:nL,MapPinCheckInside:rL,MapPinCheckInsideIcon:rL,MapPinHouse:aL,MapPinHouseIcon:aL,MapPinIcon:wy,MapPinMinus:sL,MapPinMinusIcon:sL,MapPinMinusInside:iL,MapPinMinusInsideIcon:iL,MapPinOff:oL,MapPinOffIcon:oL,MapPinPlus:cL,MapPinPlusIcon:cL,MapPinPlusInside:lL,MapPinPlusInsideIcon:lL,MapPinX:dL,MapPinXIcon:dL,MapPinXInside:uL,MapPinXInsideIcon:uL,MapPinned:hL,MapPinnedIcon:hL,Martini:pL,MartiniIcon:pL,Maximize:gL,Maximize2:mL,Maximize2Icon:mL,MaximizeIcon:gL,Medal:yL,MedalIcon:yL,Megaphone:xL,MegaphoneIcon:xL,MegaphoneOff:vL,MegaphoneOffIcon:vL,Meh:bL,MehIcon:bL,MemoryStick:wL,MemoryStickIcon:wL,Menu:ow,MenuIcon:ow,MenuSquare:Dm,MenuSquareIcon:Dm,Merge:kL,MergeIcon:kL,MessageCircle:ky,MessageCircleCode:_L,MessageCircleCodeIcon:_L,MessageCircleDashed:SL,MessageCircleDashedIcon:SL,MessageCircleHeart:lw,MessageCircleHeartIcon:lw,MessageCircleIcon:ky,MessageCircleMore:jL,MessageCircleMoreIcon:jL,MessageCircleOff:EL,MessageCircleOffIcon:EL,MessageCirclePlus:CL,MessageCirclePlusIcon:CL,MessageCircleQuestion:NL,MessageCircleQuestionIcon:NL,MessageCircleReply:TL,MessageCircleReplyIcon:TL,MessageCircleWarning:AL,MessageCircleWarningIcon:AL,MessageCircleX:ML,MessageCircleXIcon:ML,MessageSquare:Fa,MessageSquareCode:IL,MessageSquareCodeIcon:IL,MessageSquareDashed:PL,MessageSquareDashedIcon:PL,MessageSquareDiff:LL,MessageSquareDiffIcon:LL,MessageSquareDot:OL,MessageSquareDotIcon:OL,MessageSquareHeart:RL,MessageSquareHeartIcon:RL,MessageSquareIcon:Fa,MessageSquareLock:DL,MessageSquareLockIcon:DL,MessageSquareMore:FL,MessageSquareMoreIcon:FL,MessageSquareOff:$L,MessageSquareOffIcon:$L,MessageSquarePlus:BL,MessageSquarePlusIcon:BL,MessageSquareQuote:zL,MessageSquareQuoteIcon:zL,MessageSquareReply:UL,MessageSquareReplyIcon:UL,MessageSquareShare:qL,MessageSquareShareIcon:qL,MessageSquareText:HL,MessageSquareTextIcon:HL,MessageSquareWarning:VL,MessageSquareWarningIcon:VL,MessageSquareX:WL,MessageSquareXIcon:WL,MessagesSquare:GL,MessagesSquareIcon:GL,Mic:YL,Mic2:Rp,Mic2Icon:Rp,MicIcon:YL,MicOff:KL,MicOffIcon:KL,MicVocal:Rp,MicVocalIcon:Rp,Microchip:XL,MicrochipIcon:XL,Microscope:ZL,MicroscopeIcon:ZL,Microwave:QL,MicrowaveIcon:QL,Milestone:JL,MilestoneIcon:JL,Milk:t9,MilkIcon:t9,MilkOff:e9,MilkOffIcon:e9,Minim
7775ize:n9,Minimize2:r9,Minimize2Icon:r9,MinimizeIcon:n9,Minus:n0,MinusCircle:Wf,MinusCircleIcon:Wf,MinusIcon:n0,MinusSquare:Fm,MinusSquareIcon:Fm,Monitor:g9,MonitorCheck:a9,MonitorCheckIcon:a9,MonitorCog:i9,MonitorCogIcon:i9,MonitorDot:s9,MonitorDotIcon:s9,MonitorDown:o9,MonitorDownIcon:o9,MonitorIcon:g9,MonitorOff:l9,MonitorOffIcon:l9,MonitorPause:c9,MonitorPauseIcon:c9,MonitorPlay:u9,MonitorPlayIcon:u9,MonitorSmartphone:d9,MonitorSmartphoneIcon:d9,MonitorSpeaker:h9,MonitorSpeakerIcon:h9,MonitorStop:f9,MonitorStopIcon:f9,MonitorUp:p9,MonitorUpIcon:p9,MonitorX:m9,MonitorXIcon:m9,Moon:v9,MoonIcon:v9,MoonStar:y9,MoonStarIcon:y9,MoreHorizontal:Xc,MoreHorizontalIcon:Xc,MoreVertical:fp,MoreVerticalIcon:fp,Mountain:b9,MountainIcon:b9,MountainSnow:x9,MountainSnowIcon:x9,Mouse:E9,MouseIcon:E9,MouseOff:w9,MouseOffIcon:w9,MousePointer:j9,MousePointer2:k9,MousePointer2Icon:k9,MousePointerBan:_9,MousePointerBanIcon:_9,MousePointerClick:S9,MousePointerClickIcon:S9,MousePointerIcon:j9,MousePointerSquareDashed:Nm,MousePointerSquareDashedIcon:Nm,Move:$9,Move3D:Dp,Move3DIcon:Dp,Move3d:Dp,Move3dIcon:Dp,MoveDiagonal:N9,MoveDiagonal2:C9,MoveDiagonal2Icon:C9,MoveDiagonalIcon:N9,MoveDown:M9,MoveDownIcon:M9,MoveDownLeft:T9,MoveDownLeftIcon:T9,MoveDownRight:A9,MoveDownRightIcon:A9,MoveHorizontal:I9,MoveHorizontalIcon:I9,MoveIcon:$9,MoveLeft:P9,MoveLeftIcon:P9,MoveRight:L9,MoveRightIcon:L9,MoveUp:D9,MoveUpIcon:D9,MoveUpLeft:O9,MoveUpLeftIcon:O9,MoveUpRight:R9,MoveUpRightIcon:R9,MoveVertical:F9,MoveVerticalIcon:F9,Music:q9,Music2:B9,Music2Icon:B9,Music3:z9,Music3Icon:z9,Music4:U9,Music4Icon:U9,MusicIcon:q9,Navigation:G9,Navigation2:V9,Navigation2Icon:V9,Navigation2Off:H9,Navigation2OffIcon:H9,NavigationIcon:G9,NavigationOff:W9,NavigationOffIcon:W9,Network:K9,NetworkIcon:K9,Newspaper:Y9,NewspaperIcon:Y9,Nfc:X9,NfcIcon:X9,Notebook:eO,NotebookIcon:eO,NotebookPen:Z9,NotebookPenIcon:Z9,NotebookTabs:Q9,NotebookTabsIcon:Q9,NotebookText:J9,NotebookTextIcon:J9,NotepadText:rO,NotepadTextDashed:tO,NotepadTextDashedIcon:tO,NotepadTextIcon:rO,Nut:aO,NutIcon:aO,NutOff:nO,NutOffIcon:nO,Octagon:sO,OctagonAlert:Fp,OctagonAlertIcon:Fp,OctagonIcon:sO,OctagonMinus:iO,OctagonMinusIcon:iO,OctagonPause:$p,OctagonPauseIcon:$p,OctagonX:Bp,OctagonXIcon:Bp,Omega:oO,OmegaIcon:oO,Option:lO,OptionIcon:lO,Orbit:cO,OrbitIcon:cO,Origami:uO,OrigamiIcon:uO,Outdent:Mp,OutdentIcon:Mp,Package:vl,Package2:dO,Package2Icon:dO,PackageCheck:hO,PackageCheckIcon:hO,PackageIcon:vl,PackageMinus:fO,PackageMinusIcon:fO,PackageOpen:pO,PackageOpenIcon:pO,PackagePlus:mO,PackagePlusIcon:mO,PackageSearch:gO,PackageSearchIcon:gO,PackageX:yO,PackageXIcon:yO,PaintBucket:vO,PaintBucketIcon:vO,PaintRoller:xO,PaintRollerIcon:xO,Paintbrush:bO,Paintbrush2:zp,Paintbrush2Icon:zp,PaintbrushIcon:bO,PaintbrushVertical:zp,PaintbrushVerticalIcon:zp,Palette:_y,PaletteIcon:_y,Palmtree:s1,PalmtreeIcon:s1,PanelBottom:_O,PanelBottomClose:wO,PanelBottomCloseIcon:wO,PanelBottomDashed:Up,PanelBottomDashedIcon:Up,PanelBottomIcon:_O,PanelBottomInactive:Up,PanelBottomInactiveIcon:Up,PanelBottomOpen:kO,PanelBottomOpenIcon:kO,PanelLeft:Wp,PanelLeftClose:qp,PanelLeftCloseIcon:qp,PanelLeftDashed:Hp,PanelLeftDashedIcon:Hp,PanelLeftIcon:Wp,PanelLeftInactive:Hp,PanelLeftInactiveIcon:Hp,PanelLeftOpen:Vp,PanelLeftOpenIcon:Vp,PanelRight:EO,PanelRightClose:SO,PanelRightCloseIcon:SO,PanelRightDashed:Gp,PanelRightDashedIcon:Gp,PanelRightIcon:EO,PanelRightInactive:Gp,PanelRightInactiveIcon:Gp,PanelRightOpen:jO,PanelRightOpenIcon:jO,PanelTop:TO,PanelTopClose:CO,PanelTopCloseIcon:CO,PanelTopDashed:Kp,PanelTopDashedIcon:Kp,PanelTopIcon:TO,PanelTopInactive:Kp,PanelTopInactiveIcon:Kp,PanelTopOpen:NO,PanelTopOpenIcon:NO,PanelsLeftBottom:AO,PanelsLeftBottomIcon:AO,PanelsLeftRight:cp,PanelsLeftRightIcon:cp,PanelsRightBottom:MO,PanelsRightBottomIcon:MO,PanelsTopBottom:em,PanelsTopBottomIcon:em,PanelsTopLeft:Yp,PanelsTopLeftIcon:Yp,Paperclip:IO,PaperclipIcon:IO,Parentheses:PO,ParenthesesIcon:PO,ParkingCircle:Kf,ParkingCircleIcon:Kf,ParkingCircleOff:Gf,ParkingCircleOffIcon:Gf,ParkingMeter:LO,ParkingMeterIcon:LO,ParkingSquare:zm,ParkingSquareIcon:zm,ParkingSquareOff:Bm,ParkingSquareOffIcon:Bm,PartyPopper:OO,PartyPopperIcon:OO,Pause:Sy,PauseCircle:Yf,PauseCircleIcon:Yf,PauseIcon:Sy,PauseOctagon:$p,PauseOctagonIcon:$p,PawPrint:RO,PawPrintIcon:RO,PcCase:DO,PcCaseIcon:DO,Pen:dd,PenBox:ii,PenBoxIcon:ii,PenIcon:dd,PenLine:ud,PenLineIcon:ud,PenOff:FO,PenOffIcon:FO,PenSquare:ii,PenSquareIcon:ii,PenTool:$O,PenToolIcon:$O,Pencil:cc,PencilIcon:cc,PencilLine:BO,PencilLineIcon:BO,PencilOff:zO,PencilOffIcon:zO,PencilRuler:UO,PencilRulerIcon:UO,Pentagon:qO,PentagonIcon:qO,Percent:HO,PercentCircle:Xf,PercentCircleIcon:Xf,PercentDiamond:dp,PercentDiamondIcon:dp,PercentIcon:HO,PercentSquare:Um,PercentSquareIcon:Um,PersonStanding:VO,PersonStandingIcon:VO,PhilippinePeso:WO,PhilippinePesoIcon:WO,Phone:JO,PhoneCall:GO,PhoneCallIcon:GO,PhoneForwarded:KO,PhoneForwardedIcon:KO,PhoneIcon:JO,PhoneIncoming:YO,PhoneIncomingIcon:YO,PhoneMissed:XO,PhoneMissedIcon:XO,PhoneOff:ZO,PhoneOffIcon:ZO,PhoneOutgoing:QO,PhoneOutgoingIcon:QO,Pi:eR,PiIcon:eR,PiSquare:qm,PiSquareIcon:qm,Piano:tR,PianoIcon:tR,Pickaxe:rR,PickaxeIcon:rR,PictureInPicture:aR,PictureInPicture2:nR,PictureInPicture2Icon:nR,PictureInPictureIcon:aR,PieChart:Af,PieChartIcon:Af,PiggyBank:iR,PiggyBankIcon:iR,Pilcrow:lR,PilcrowIcon:lR,PilcrowLeft:sR,PilcrowLeftIcon:sR,PilcrowRight:oR,PilcrowRightIcon:oR,PilcrowSquare:Hm,PilcrowSquareIcon:Hm,Pill:uR,PillBottle:cR,PillBottleIcon:cR,PillIcon:uR,Pin:hR,PinIcon:hR,PinOff:dR,PinOffIcon:dR,Pipette:fR,PipetteIcon:fR,Pizza:pR,PizzaIcon:pR,Plane:yR,PlaneIcon:yR,PlaneLanding:mR,PlaneLandingIcon:mR,PlaneTakeoff:gR,PlaneTakeoffIcon:gR,Play:a0,PlayCircle:Zf,PlayCircleIcon:Zf,PlayIcon:a0,PlaySquare:Vm,PlaySquareIcon:Vm,Plug:xR,Plug2:vR,Plug2Icon:vR,PlugIcon:xR,PlugZap:Xp,PlugZap2:Xp,PlugZap2Icon:Xp,PlugZapIcon:Xp,Plus:uc,PlusCircle:Yc,PlusCircleIcon:Yc,PlusIcon:uc,PlusSquare:Wm,PlusSquareIcon:Wm,Pocket:wR,PocketIcon:wR,PocketKnife:bR,PocketKnifeIcon:bR,Podcast:kR,PodcastIcon:kR,Pointer:SR,PointerIcon:SR,PointerOff:_R,PointerOffIcon:_R,Popcorn:jR,PopcornIcon:jR,Popsicle:ER,PopsicleIcon:ER,PoundSterling:CR,PoundSterlingIcon:CR,Power:TR,PowerCircle:Qf,PowerCircleIcon:Qf,PowerIcon:TR,PowerOff:NR,PowerOffIcon:NR,PowerSquare:Gm,PowerSquareIcon:Gm,Presentation:AR,PresentationIcon:AR,Printer:Wd,PrinterCheck:MR,PrinterCheckIcon:MR,PrinterIcon:Wd,Projector:IR,ProjectorIcon:IR,Proportions:PR,ProportionsIcon:PR,Puzzle:LR,PuzzleIcon:LR,Pyramid:OR,PyramidIcon:OR,QrCode:RR,QrCodeIcon:RR,Quote:cw,QuoteIcon:cw,Rabbit:DR,RabbitIcon:DR,Radar:FR,RadarIcon:FR,Radiation:$R,RadiationIcon:$R,Radical:BR,RadicalIcon:BR,Radio:qR,RadioIcon:qR,RadioReceiver:zR,RadioReceiverIcon:zR,RadioTower:UR,RadioTowerIcon:UR,Radius:HR,RadiusIcon:HR,RailSymbol
7775:VR,RailSymbolIcon:VR,Rainbow:WR,RainbowIcon:WR,Rat:GR,RatIcon:GR,Ratio:KR,RatioIcon:KR,Receipt:nD,ReceiptCent:YR,ReceiptCentIcon:YR,ReceiptEuro:XR,ReceiptEuroIcon:XR,ReceiptIcon:nD,ReceiptIndianRupee:ZR,ReceiptIndianRupeeIcon:ZR,ReceiptJapaneseYen:QR,ReceiptJapaneseYenIcon:QR,ReceiptPoundSterling:JR,ReceiptPoundSterlingIcon:JR,ReceiptRussianRuble:eD,ReceiptRussianRubleIcon:eD,ReceiptSwissFranc:tD,ReceiptSwissFrancIcon:tD,ReceiptText:rD,ReceiptTextIcon:rD,RectangleEllipsis:Zp,RectangleEllipsisIcon:Zp,RectangleHorizontal:aD,RectangleHorizontalIcon:aD,RectangleVertical:iD,RectangleVerticalIcon:iD,Recycle:sD,RecycleIcon:sD,Redo:cD,Redo2:oD,Redo2Icon:oD,RedoDot:lD,RedoDotIcon:lD,RedoIcon:cD,RefreshCcw:dD,RefreshCcwDot:uD,RefreshCcwDotIcon:uD,RefreshCcwIcon:dD,RefreshCw:Vn,RefreshCwIcon:Vn,RefreshCwOff:hD,RefreshCwOffIcon:hD,Refrigerator:fD,RefrigeratorIcon:fD,Regex:pD,RegexIcon:pD,RemoveFormatting:mD,RemoveFormattingIcon:mD,Repeat:uw,Repeat1:gD,Repeat1Icon:gD,Repeat2:yD,Repeat2Icon:yD,RepeatIcon:uw,Replace:xD,ReplaceAll:vD,ReplaceAllIcon:vD,ReplaceIcon:xD,Reply:wD,ReplyAll:bD,ReplyAllIcon:bD,ReplyIcon:wD,Rewind:kD,RewindIcon:kD,Ribbon:_D,RibbonIcon:_D,Rocket:SD,RocketIcon:SD,RockingChair:jD,RockingChairIcon:jD,RollerCoaster:ED,RollerCoasterIcon:ED,Rotate3D:Qp,Rotate3DIcon:Qp,Rotate3d:Qp,Rotate3dIcon:Qp,RotateCcw:jy,RotateCcwIcon:jy,RotateCcwSquare:CD,RotateCcwSquareIcon:CD,RotateCw:TD,RotateCwIcon:TD,RotateCwSquare:ND,RotateCwSquareIcon:ND,Route:MD,RouteIcon:MD,RouteOff:AD,RouteOffIcon:AD,Router:ID,RouterIcon:ID,Rows:Jp,Rows2:Jp,Rows2Icon:Jp,Rows3:em,Rows3Icon:em,Rows4:PD,Rows4Icon:PD,RowsIcon:Jp,Rss:LD,RssIcon:LD,Ruler:OD,RulerIcon:OD,RussianRuble:RD,RussianRubleIcon:RD,Sailboat:DD,SailboatIcon:DD,Salad:FD,SaladIcon:FD,Sandwich:$D,SandwichIcon:$D,Satellite:zD,SatelliteDish:BD,SatelliteDishIcon:BD,SatelliteIcon:zD,Save:HD,SaveAll:UD,SaveAllIcon:UD,SaveIcon:HD,SaveOff:qD,SaveOffIcon:qD,Scale:VD,Scale3D:tm,Scale3DIcon:tm,Scale3d:tm,Scale3dIcon:tm,ScaleIcon:VD,Scaling:WD,ScalingIcon:WD,Scan:eF,ScanBarcode:GD,ScanBarcodeIcon:GD,ScanEye:KD,ScanEyeIcon:KD,ScanFace:YD,ScanFaceIcon:YD,ScanIcon:eF,ScanLine:XD,ScanLineIcon:XD,ScanQrCode:ZD,ScanQrCodeIcon:ZD,ScanSearch:QD,ScanSearchIcon:QD,ScanText:JD,ScanTextIcon:JD,ScatterChart:Mf,ScatterChartIcon:Mf,School:tF,School2:l1,School2Icon:l1,SchoolIcon:tF,Scissors:nF,ScissorsIcon:nF,ScissorsLineDashed:rF,ScissorsLineDashedIcon:rF,ScissorsSquare:Km,ScissorsSquareDashedBottom:xm,ScissorsSquareDashedBottomIcon:xm,ScissorsSquareIcon:Km,ScreenShare:iF,ScreenShareIcon:iF,ScreenShareOff:aF,ScreenShareOffIcon:aF,Scroll:oF,ScrollIcon:oF,ScrollText:sF,ScrollTextIcon:sF,Search:go,SearchCheck:lF,SearchCheckIcon:lF,SearchCode:cF,SearchCodeIcon:cF,SearchIcon:go,SearchSlash:uF,SearchSlashIcon:uF,SearchX:dF,SearchXIcon:dF,Section:hF,SectionIcon:hF,Send:Gd,SendHorizonal:rm,SendHorizonalIcon:rm,SendHorizontal:rm,SendHorizontalIcon:rm,SendIcon:Gd,SendToBack:fF,SendToBackIcon:fF,SeparatorHorizontal:pF,SeparatorHorizontalIcon:pF,SeparatorVertical:mF,SeparatorVerticalIcon:mF,Server:xF,ServerCog:gF,ServerCogIcon:gF,ServerCrash:yF,ServerCrashIcon:yF,ServerIcon:xF,ServerOff:vF,ServerOffIcon:vF,Settings:dw,Settings2:bF,Settings2Icon:bF,SettingsIcon:dw,Shapes:wF,ShapesIcon:wF,Share:kF,Share2:Ey,Share2Icon:Ey,ShareIcon:kF,Sheet:_F,SheetIcon:_F,Shell:SF,ShellIcon:SF,Shield:i0,ShieldAlert:jF,ShieldAlertIcon:jF,ShieldBan:EF,ShieldBanIcon:EF,ShieldCheck:CF,ShieldCheckIcon:CF,ShieldClose:nm,ShieldCloseIcon:nm,ShieldEllipsis:NF,ShieldEllipsisIcon:NF,ShieldHalf:TF,ShieldHalfIcon:TF,ShieldIcon:i0,ShieldMinus:AF,ShieldMinusIcon:AF,ShieldOff:MF,ShieldOffIcon:MF,ShieldPlus:IF,ShieldPlusIcon:IF,ShieldQuestion:PF,ShieldQuestionIcon:PF,ShieldX:nm,ShieldXIcon:nm,Ship:OF,ShipIcon:OF,ShipWheel:LF,ShipWheelIcon:LF,Shirt:RF,ShirtIcon:RF,ShoppingBag:hw,ShoppingBagIcon:hw,ShoppingBasket:DF,ShoppingBasketIcon:DF,ShoppingCart:FF,ShoppingCartIcon:FF,Shovel:$F,ShovelIcon:$F,ShowerHead:BF,ShowerHeadIcon:BF,Shrink:zF,ShrinkIcon:zF,Shrub:UF,ShrubIcon:UF,Shuffle:qF,ShuffleIcon:qF,Sidebar:Wp,SidebarClose:qp,SidebarCloseIcon:qp,SidebarIcon:Wp,SidebarOpen:Vp,SidebarOpenIcon:Vp,Sigma:HF,SigmaIcon:HF,SigmaSquare:Ym,SigmaSquareIcon:Ym,Signal:YF,SignalHigh:VF,SignalHighIcon:VF,SignalIcon:YF,SignalLow:WF,SignalLowIcon:WF,SignalMedium:GF,SignalMediumIcon:GF,SignalZero:KF,SignalZeroIcon:KF,Signature:XF,SignatureIcon:XF,Signpost:QF,SignpostBig:ZF,SignpostBigIcon:ZF,SignpostIcon:QF,Siren:JF,SirenIcon:JF,SkipBack:e$,SkipBackIcon:e$,SkipForward:fw,SkipForwardIcon:fw,Skull:t$,SkullIcon:t$,Slack:r$,SlackIcon:r$,Slash:n$,SlashIcon:n$,SlashSquare:Xm,SlashSquareIcon:Xm,Slice:a$,SliceIcon:a$,Sliders:am,SlidersHorizontal:pw,SlidersHorizontalIcon:pw,SlidersIcon:am,SlidersVertical:am,SlidersVerticalIcon:am,Smartphone:o$,SmartphoneCharging:i$,SmartphoneChargingIcon:i$,SmartphoneIcon:o$,SmartphoneNfc:s$,SmartphoneNfcIcon:s$,Smile:mw,SmileIcon:mw,SmilePlus:l$,SmilePlusIcon:l$,Snail:c$,SnailIcon:c$,Snowflake:u$,SnowflakeIcon:u$,Sofa:d$,SofaIcon:d$,SortAsc:df,SortAscIcon:df,SortDesc:lf,SortDescIcon:lf,Soup:h$,SoupIcon:h$,Space:f$,SpaceIcon:f$,Spade:p$,SpadeIcon:p$,Sparkle:m$,SparkleIcon:m$,Sparkles:Qt,SparklesIcon:Qt,Speaker:g$,SpeakerIcon:g$,Speech:y$,SpeechIcon:y$,SpellCheck:x$,SpellCheck2:v$,Spell
7775Check2Icon:v$,SpellCheckIcon:x$,Spline:b$,SplineIcon:b$,Split:w$,SplitIcon:w$,SplitSquareHorizontal:Zm,SplitSquareHorizontalIcon:Zm,SplitSquareVertical:Qm,SplitSquareVerticalIcon:Qm,SprayCan:k$,SprayCanIcon:k$,Sprout:_$,SproutIcon:_$,Square:T$,SquareActivity:im,SquareActivityIcon:im,SquareArrowDown:lm,SquareArrowDownIcon:lm,SquareArrowDownLeft:sm,SquareArrowDownLeftIcon:sm,SquareArrowDownRight:om,SquareArrowDownRightIcon:om,SquareArrowLeft:cm,SquareArrowLeftIcon:cm,SquareArrowOutDownLeft:um,SquareArrowOutDownLeftIcon:um,SquareArrowOutDownRight:dm,SquareArrowOutDownRightIcon:dm,SquareArrowOutUpLeft:hm,SquareArrowOutUpLeftIcon:hm,SquareArrowOutUpRight:fm,SquareArrowOutUpRightIcon:fm,SquareArrowRight:pm,SquareArrowRightIcon:pm,SquareArrowUp:ym,SquareArrowUpIcon:ym,SquareArrowUpLeft:mm,SquareArrowUpLeftIcon:mm,SquareArrowUpRight:gm,SquareArrowUpRightIcon:gm,SquareAsterisk:vm,SquareAsteriskIcon:vm,SquareBottomDashedScissors:xm,SquareBottomDashedScissorsIcon:xm,SquareChartGantt:Ol,SquareChartGanttIcon:Ol,SquareCheck:wm,SquareCheckBig:bm,SquareCheckBigIcon:bm,SquareCheckIcon:wm,SquareChevronDown:km,SquareChevronDownIcon:km,SquareChevronLeft:_m,SquareChevronLeftIcon:_m,SquareChevronRight:Sm,SquareChevronRightIcon:Sm,SquareChevronUp:jm,SquareChevronUpIcon:jm,SquareCode:Em,SquareCodeIcon:Em,SquareDashed:Tm,SquareDashedBottom:j$,SquareDashedBottomCode:S$,SquareDashedBottomCodeIcon:S$,SquareDashedBottomIcon:j$,SquareDashedIcon:Tm,SquareDashedKanban:Cm,SquareDashedKanbanIcon:Cm,SquareDashedMousePointer:Nm,SquareDashedMousePointerIcon:Nm,SquareDivide:Am,SquareDivideIcon:Am,SquareDot:Mm,SquareDotIcon:Mm,SquareEqual:Im,SquareEqualIcon:Im,SquareFunction:Pm,SquareFunctionIcon:Pm,SquareGanttChart:Ol,SquareGanttChartIcon:Ol,SquareIcon:T$,SquareKanban:Lm,SquareKanbanIcon:Lm,SquareLibrary:Om,SquareLibraryIcon:Om,SquareM:Rm,SquareMIcon:Rm,SquareMenu:Dm,SquareMenuIcon:Dm,SquareMinus:Fm,SquareMinusIcon:Fm,SquareMousePointer:$m,SquareMousePointerIcon:$m,SquareParking:zm,SquareParkingIcon:zm,SquareParkingOff:Bm,SquareParkingOffIcon:Bm,SquarePen:ii,SquarePenIcon:ii,SquarePercent:Um,SquarePercentIcon:Um,SquarePi:qm,SquarePiIcon:qm,SquarePilcrow:Hm,SquarePilcrowIcon:Hm,SquarePlay:Vm,SquarePlayIcon:Vm,SquarePlus:Wm,SquarePlusIcon:Wm,SquarePower:Gm,SquarePowerIcon:Gm,SquareRadical:E$,SquareRadicalIcon:E$,SquareScissors:Km,SquareScissorsIcon:Km,SquareSigma:Ym,SquareSigmaIcon:Ym,SquareSlash:Xm,SquareSlashIcon:Xm,SquareSplitHorizontal:Zm,SquareSplitHorizontalIcon:Zm,SquareSplitVertical:Qm,SquareSplitVerticalIcon:Qm,SquareSquare:C$,SquareSquareIcon:C$,SquareStack:N$,SquareStackIcon:N$,SquareTerminal:Jm,SquareTerminalIcon:Jm,SquareUser:t1,SquareUserIcon:t1,SquareUserRound:e1,SquareUserRoundIcon:e1,SquareX:r1,SquareXIcon:r1,Squircle:A$,SquircleIcon:A$,Squirrel:M$,SquirrelIcon:M$,Stamp:I$,StampIcon:I$,Star:Oa,StarHalf:P$,StarHalfIcon:P$,StarIcon:Oa,StarOff:L$,StarOffIcon:L$,Stars:Qt,StarsIcon:Qt,StepBack:O$,StepBackIcon:O$,StepForward:R$,StepForwardIcon:R$,Stethoscope:D$,StethoscopeIcon:D$,Sticker:F$,StickerIcon:F$,StickyNote:$$,StickyNoteIcon:$$,StopCircle:ep,StopCircleIcon:ep,Store:B$,StoreIcon:B$,StretchHorizontal:z$,StretchHorizontalIcon:z$,StretchVertical:U$,StretchVerticalIcon:U$,Strikethrough:q$,StrikethroughIcon:q$,Subscript:H$,SubscriptIcon:H$,Subtitles:xf,SubtitlesIcon:xf,Sun:Y$,SunDim:V$,SunDimIcon:V$,SunIcon:Y$,SunMedium:W$,SunMediumIcon:W$,SunMoon:G$,
7775SunMoonIcon:G$,SunSnow:K$,SunSnowIcon:K$,Sunrise:X$,SunriseIcon:X$,Sunset:Z$,SunsetIcon:Z$,Superscript:Q$,SuperscriptIcon:Q$,SwatchBook:J$,SwatchBookIcon:J$,SwissFranc:eB,SwissFrancIcon:eB,SwitchCamera:tB,SwitchCameraIcon:tB,Sword:rB,SwordIcon:rB,Swords:nB,SwordsIcon:nB,Syringe:aB,SyringeIcon:aB,Table:hB,Table2:iB,Table2Icon:iB,TableCellsMerge:sB,TableCellsMergeIcon:sB,TableCellsSplit:oB,TableCellsSplitIcon:oB,TableColumnsSplit:lB,TableColumnsSplitIcon:lB,TableIcon:hB,TableOfContents:cB,TableOfContentsIcon:cB,TableProperties:uB,TablePropertiesIcon:uB,TableRowsSplit:dB,TableRowsSplitIcon:dB,Tablet:pB,TabletIcon:pB,TabletSmartphone:fB,TabletSmartphoneIcon:fB,Tablets:mB,TabletsIcon:mB,Tag:s0,TagIcon:s0,Tags:gB,TagsIcon:gB,Tally1:yB,Tally1Icon:yB,Tally2:vB,Tally2Icon:vB,Tally3:xB,Tally3Icon:xB,Tally4:bB,Tally4Icon:bB,Tally5:wB,Tally5Icon:wB,Tangent:kB,TangentIcon:kB,Target:_B,TargetIcon:_B,Telescope:SB,TelescopeIcon:SB,Tent:EB,TentIcon:EB,TentTree:jB,TentTreeIcon:jB,Terminal:CB,TerminalIcon:CB,TerminalSquare:Jm,TerminalSquareIcon:Jm,TestTube:NB,TestTube2:n1,TestTube2Icon:n1,TestTubeDiagonal:n1,TestTubeDiagonalIcon:n1,TestTubeIcon:NB,TestTubes:TB,TestTubesIcon:TB,Text:LB,TextCursor:MB,TextCursorIcon:MB,TextCursorInput:AB,TextCursorInputIcon:AB,TextIcon:LB,TextQuote:IB,TextQuoteIcon:IB,TextSearch:PB,TextSearchIcon:PB,TextSelect:a1,TextSelectIcon:a1,TextSelection:a1,TextSelectionIcon:a1,Theater:OB,TheaterIcon:OB,Thermometer:FB,ThermometerIcon:FB,ThermometerSnowflake:RB,ThermometerSnowflakeIcon:RB,ThermometerSun:DB,ThermometerSunIcon:DB,ThumbsDown:gw,ThumbsDownIcon:gw,ThumbsUp:yw,ThumbsUpIcon:yw,Ticket:VB,TicketCheck:$B,TicketCheckIcon:$B,TicketIcon:VB,TicketMinus:BB,TicketMinusIcon:BB,TicketPercent:zB,TicketPercentIcon:zB,TicketPlus:UB,TicketPlusIcon:UB,TicketSlash:qB,TicketSlashIcon:qB,TicketX:HB,TicketXIcon:HB,Tickets:GB,TicketsIcon:GB,TicketsPlane:WB,TicketsPlaneIcon:WB,Timer:XB,TimerIcon:XB,TimerOff:KB,TimerOffIcon:KB,TimerReset:YB,TimerResetIcon:YB,ToggleLeft:ZB,ToggleLeftIcon:ZB,ToggleRight:QB,ToggleRightIcon:QB,Toilet:JB,ToiletIcon:JB,Tornado:ez,TornadoIcon:ez,Torus:tz,TorusIcon:tz,Touchpad:nz,TouchpadIcon:nz,TouchpadOff:rz,TouchpadOffIcon:rz,TowerControl:az,TowerControlIcon:az,ToyBrick:iz,ToyBrickIcon:iz,Tractor:sz,TractorIcon:sz,TrafficCone:oz,TrafficConeIcon:oz,Train:i1,TrainFront:cz,TrainFrontIcon:cz,TrainFrontTunnel:lz,TrainFrontTunnelIcon:lz,TrainIcon:i1,TrainTrack:uz,TrainTrackIcon:uz,TramFront:i1,TramFrontIcon:i1,Trash:dz,Trash2:ws,Trash2Icon:ws,TrashIcon:dz,TreeDeciduous:hz,TreeDeciduousIcon:hz,TreePalm:s1,TreePalmIcon:s1,TreePine:fz,TreePineIcon:fz,Trees:pz,TreesIcon:pz,Trello:mz,TrelloIcon:mz,TrendingDown:Cy,TrendingDownIcon:Cy,TrendingUp:Ny,TrendingUpDown:gz,TrendingUpDownIcon:gz,TrendingUpIcon:Ny,Triangle:vz,TriangleAlert:Fs,TriangleAlertIcon:Fs,TriangleIcon:vz,TriangleRight:yz,TriangleRightIcon:yz,Trophy:xz,TrophyIcon:xz,Truck:Ty,TruckIcon:Ty,Turtle:bz,TurtleIcon:bz,Tv:kz,Tv2:o1,Tv2Icon:o1,TvIcon:kz,TvMinimal:o1,TvMinimalIcon:o1,TvMinimalPlay:wz,TvMinimalPlayIcon:wz,Twitch:_z,TwitchIcon:_z,Twitter:Sz,TwitterIcon:Sz,Type:vw,TypeIcon:vw,TypeOutline:jz,TypeOutlineIcon:jz,Umbrella:Cz,UmbrellaIcon:Cz,UmbrellaOff:Ez,UmbrellaOffIcon:Ez,Underline:Nz,UnderlineIcon:Nz,Undo:Mz,Undo2:Tz,Undo2Icon:Tz,UndoDot:Az,UndoDotIcon:Az,UndoIcon:Mz,UnfoldHorizontal:Iz,UnfoldHorizontalIcon:Iz,UnfoldVertical:Pz,UnfoldVerticalIcon:Pz,Ungroup:Lz,UngroupIcon:Lz,University:l1,UniversityIcon:l1,Unlink:Rz,Unlink2:Oz,Unlink2Icon:Oz,UnlinkIcon:Rz,Unlock:Op,UnlockIcon:Op,UnlockKeyhole:Lp,UnlockKeyholeIcon:Lp,Unplug:Dz,UnplugIcon:Dz,Upload:xw,UploadCloud:sp,UploadCloudIcon:sp,UploadIcon:xw,Usb:Fz,UsbIcon:Fz,User:xl,User2:p1,User2Icon:p1,UserCheck:$z,UserCheck2:c1,UserCheck2Icon:c1,UserCheckIcon:$z,UserCircle:rp,UserCircle2:tp,UserCircle2Icon:tp,UserCircleIcon:rp,UserCog:Bz,UserCog2:u1,UserCog2Icon:u1,UserCogIcon:Bz,UserIcon:xl,UserMinus:o0,UserMinus2:d1,UserMinus2Icon:d1,UserMinusIcon:o0,UserPen:bw,UserPenIcon:bw,UserPlus:zz,UserPlus2:h1,UserPlus2Icon:h1,UserPlusIcon:zz,UserRound:p1,UserRoundCheck:c1,UserRoundCheckIcon:c1,UserRoundCog:u1,UserRoundCogIcon:u1,UserRoundIcon:p1,UserRoundMinus:d1,UserRoundMinusIcon:d1,UserRoundPen:Uz,UserRoundPenIcon:Uz,UserRoundPlus:h1,UserRoundPlusIcon:h1,UserRoundSearch:qz,UserRoundSearchIcon:qz,UserRoundX:f1,UserRoundXIcon:f1,UserSearch:Hz,UserSearchIcon:Hz,UserSquare:t1,UserSquare2:e1,UserSquare2Icon:e1,UserSquareIcon:t1,UserX:Vz,UserX2:f1,UserX2Icon:f1,UserXIcon:Vz,Users:Xi,Users2:m1,Users2Icon:m1,UsersIcon:Xi,UsersRound:m1,UsersRoundIcon:m1,Utensils:y1,UtensilsCrossed:g1,UtensilsCrossedIcon:g1,UtensilsIcon:y1,UtilityPole:Wz,UtilityPoleIcon:Wz,Variable:Gz,VariableIcon:Gz,Vault:Kz,VaultIcon:Kz,Vegan:Yz,VeganIcon:Yz,VenetianMask:Xz,VenetianMaskIcon:Xz,Verified:pf,VerifiedIcon:pf,Vibrate:Qz,VibrateIcon:Qz,VibrateOff:Zz,VibrateOffIcon:Zz,Video:eU,VideoIcon:eU,VideoOff:Jz,VideoOffIcon:Jz,Videotape:tU,VideotapeIcon:tU,View:rU,ViewIcon:rU,Voicemail:nU,VoicemailIcon:nU,Volleyball:aU,VolleyballIcon:aU,Volume:cU,Volume1:iU,Volume1Icon:iU,Volume2:sU,Volume2Icon:sU,
vendor: 9,497 bytes, line 7775
7775VolumeIcon:cU,VolumeOff:oU,VolumeOffIcon:oU,VolumeX:lU,VolumeXIcon:lU,Vote:uU,VoteIcon:uU,Wallet:hU,Wallet2:v1,Wallet2Icon:v1,WalletCards:dU,WalletCardsIcon:dU,WalletIcon:hU,WalletMinimal:v1,WalletMinimalIcon:v1,Wallpaper:fU,WallpaperIcon:fU,Wand:pU,Wand2:x1,Wand2Icon:x1,WandIcon:pU,WandSparkles:x1,WandSparklesIcon:x1,Warehouse:mU,WarehouseIcon:mU,WashingMachine:gU,WashingMachineIcon:gU,Watch:yU,WatchIcon:yU,Waves:vU,WavesIcon:vU,Waypoints:xU,WaypointsIcon:xU,Webcam:bU,WebcamIcon:bU,Webhook:kU,WebhookIcon:kU,WebhookOff:wU,WebhookOffIcon:wU,Weight:_U,WeightIcon:_U,Wheat:jU,WheatIcon:jU,WheatOff:SU,WheatOffIcon:SU,WholeWord:EU,WholeWordIcon:EU,Wifi:MU,WifiHigh:CU,WifiHighIcon:CU,WifiIcon:MU,WifiLow:NU,WifiLowIcon:NU,WifiOff:TU,WifiOffIcon:TU,WifiZero:AU,WifiZeroIcon:AU,Wind:PU,WindArrowDown:IU,WindArrowDownIcon:IU,WindIcon:PU,Wine:OU,WineIcon:OU,WineOff:LU,WineOffIcon:LU,Workflow:RU,WorkflowIcon:RU,Worm:DU,WormIcon:DU,WrapText:FU,WrapTextIcon:FU,Wrench:Ay,WrenchIcon:Ay,X:hi,XCircle:li,XCircleIcon:li,XIcon:hi,XOctagon:Bp,XOctagonIcon:Bp,XSquare:r1,XSquareIcon:r1,Youtube:ww,YoutubeIcon:ww,Zap:kw,ZapIcon:kw,ZapOff:$U,ZapOffIcon:$U,ZoomIn:BU,ZoomInIcon:BU,ZoomOut:zU,ZoomOutIcon:zU,createLucideIcon:S,icons:fOe},Symbol.toStringTag,{value:"Module"})),Tae="-",pOe=e=>{const t=gOe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(Tae);return l[0]===""&&l.length!==1&&l.shift(),$we(l,t)||mOe(o)},getConflictingClassGroupIds:(o,l)=>{const c=r[o]||[];return l&&n[o]?[...c,...n[o]]:c}}},$we=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?$we(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(Tae);return(o=t.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},vue=/^\[(.+)\]$/,mOe=e=>{if(vue.test(e)){const t=vue.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},gOe=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return vOe(Object.entries(e.classGroups),r).forEach(([s,o])=>{GJ(o,n,s,t)}),n},GJ=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:xue(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(yOe(a)){GJ(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,o])=>{GJ(o,xue(t,s),r,n)})})},xue=(e,t)=>{let r=e;return t.split(Tae).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},yOe=e=>e.isThemeGetter,vOe=(e,t)=>t?e.map(([r,n])=>{const a=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,l])=>[t+o,l])):s);return[r,a]}):e,xOe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(s,o)=>{r.set(s,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let o=r.get(s);if(o!==void 0)return o;if((o=n.get(s))!==void 0)return a(s,o),o},set(s,o){r.has(s)?r.set(s,o):a(s,o)}}},Bwe="!",bOe=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],s=t.length,o=l=>{const c=[];let u=0,d=0,h;for(let v=0;v<l.length;v++){let g=l[v];if(u===0){if(g===a&&(n||l.slice(v,v+s)===t)){c.push(l.slice(d,v)),d=v+s;continue}if(g==="/"){h=v;continue}}g==="["?u++:g==="]"&&u--}const f=c.length===0?l:l.substring(d),p=f.startsWith(Bwe),y=p?f.substring(1):f,m=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}};return r?l=>r({className:l,parseClassName:o}):o},wOe=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},kOe=e=>({cache:xOe(e.cacheSize),parseClassName:bOe(e),...pOe(e)}),_Oe=/\s+/,SOe=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,s=[],o=e.trim().split(_Oe);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}=r(u);let y=!!p,m=n(y?f.substring(0,p):f);if(!m){if(!y){l=u+(l.length>0?" "+l:l);continue}if(m=n(f),!m){l=u+(l.length>0?" "+l:l);continue}y=!1}const v=wOe(d).join(":"),g=h?v+Bwe:v,b=g+m;if(s.includes(b))continue;s.push(b);const x=a(m,y);for(let _=0;_<x.length;++_){const w=x[_];s.push(g+w)}l=u+(l.length>0?" "+l:l)}return l};function jOe(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=zwe(t))&&(n&&(n+=" "),n+=r);return n}const zwe=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=zwe(e[n]))&&(r&&(r+=" "),r+=t);return r};function EOe(e,...t){let r,n,a,s=o;function o(c){const u=t.reduce((d,h)=>h(d),e());return r=kOe(u),n=r.cache.get,a=r.cache.set,s=l,l(c)}function l(c){const u=n(c);if(u)return u;const d=SOe(c,r);return a(c,d),d}return function(){return s(jOe.apply(null,arguments))}}const mn=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Uwe=/^\[(?:([a-z-]+):)?(.+)\]$/i,COe=/^\d+\/\d+$/,NOe=new Set(["px","full","screen"]),TOe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,AOe=/\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$/,MOe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,IOe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,POe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lc=e=>My(e)||NOe.has(e)||COe.test(e),Ku=e=>lv(e,"length",zOe),My=e=>!!e&&!Number.isNaN(Number(e)),iY=e=>lv(e,"number",My),kx=e=>!!e&&Number.isInteger(Number(e)),LOe=e=>e.endsWith("%")&&My(e.slice(0,-1)),ir=e=>Uwe.test(e),Yu=e=>TOe.test(e),OOe=new Set(["length","size","percentage"]),ROe=e=>lv(e,OOe,qwe),DOe=e=>lv(e,"position",qwe),FOe=new Set(["image","url"]),$Oe=e=>lv(e,FOe,qOe),BOe=e=>lv(e,"",UOe),_x=()=>!0,lv=(e,t,r)=>{const n=Uwe.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},zOe=e=>AOe.test(e)&&!MOe.test(e),qwe=()=>!1,UOe=e=>IOe.test(e),qOe=e=>POe.test(e),HOe=()=>{const e=mn("colors"),t=mn("spacing"),r=mn("blur"),n=mn("brightness"),a=mn("borderColor"),s=mn("borderRadius"),o=mn("borderSpacing"),l=mn("borderWidth"),c=mn("contrast"),u=mn("grayscale"),d=mn("hueRotate"),h=mn("invert"),f=mn("gap"),p=mn("gradientColorStops"),y=mn("gradientColorStopPositions"),m=mn("inset"),v=mn("margin"),g=mn("opacity"),b=mn("padding"),x=mn("saturate"),_=mn("scale"),w=mn("sepia"),j=mn("skew"),E=mn("space"),C=mn("translate"),N=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",ir,t],T=()=>[ir,t],F=()=>["",Lc,Ku],M=()=>["auto",My,ir],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",ir],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[My,ir];return{cacheSize:500,separator:":",theme:{colors:[_x],spacing:[Lc,Ku],blur:["none","",Yu,ir],brightness:ne(),borderColor:[e],borderRadius:["none","","full",Yu,ir],borderSpacing:T(),borderWidth:F(),contrast:ne(),grayscale:Z(),hueRotate:ne(),invert:Z(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[LOe,Ku],inset:$(),margin:$(),opacity:ne(),padding:T(),saturate:ne(),scale:ne(),sepia:Z(),skew:ne(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",ir]}],container:["container"],columns:[{columns:[Yu]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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"],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:[...z(),ir]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kx,ir]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ir]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",kx,ir]}],"grid-cols":[{"grid-cols":[_x]}],"col-start-end":[{col:["auto",{span:["full",kx,ir]},ir]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[_x]}],"row-start-end":[{row:["auto",{span:[kx,ir]},ir]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}
vendor: 9,257 bytes, line 7775
7775],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ir]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ir]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ir,t]}],"min-w":[{"min-w":[ir,t,"min","max","fit"]}],"max-w":[{"max-w":[ir,t,"none","full","min","max","fit","prose",{screen:[Yu]},Yu]}],h:[{h:[ir,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ir,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ir,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ir,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Yu,Ku]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",iY]}],"font-family":[{font:[_x]}],"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:["tighter","tight","normal","wide","wider","widest",ir]}],"line-clamp":[{"line-clamp":["none",My,iY]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lc,ir]}],"list-image":[{"list-image":["none",ir]}],"list-style-type":[{list:["none","disc","decimal",ir]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lc,Ku]}],"underline-offset":[{"underline-offset":["auto",Lc,ir]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ir]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ir]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),DOe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ROe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$Oe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:Y()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Lc,ir]}],"outline-w":[{outline:[Lc,Ku]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Lc,Ku]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yu,BOe]}],"shadow-color":[{shadow:[_x]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Yu,ir]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ir]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",ir]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",ir]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[kx,ir]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ir]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",ir]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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"]}
vendor: 4,669 bytes, line 7775
7775],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",ir]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Lc,Ku,iY]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},VOe=EOe(HOe);function De(...e){return VOe(Mr(e))}const WOe=uOe,Hwe=k.forwardRef(({className:e,...t},r)=>i.jsx(Twe,{ref:r,className:De("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),...t}));Hwe.displayName=Twe.displayName;const GOe=ov("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"}}),Vwe=k.forwardRef(({className:e,variant:t,...r},n)=>i.jsx(Awe,{ref:n,className:De(GOe({variant:t}),e),...r}));Vwe.displayName=Awe.displayName;const KOe=k.forwardRef(({className:e,...t},r)=>i.jsx(Pwe,{ref:r,className:De("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));KOe.displayName=Pwe.displayName;const Wwe=k.forwardRef(({className:e,...t},r)=>i.jsx(Lwe,{ref:r,className:De("absolute right-2 top-2 rounded-md p-1 text-foreground
7775/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:i.jsx(hi,{className:"h-4 w-4"})}));Wwe.displayName=Lwe.displayName;const Gwe=k.forwardRef(({className:e,...t},r)=>i.jsx(Mwe,{ref:r,className:De("text-sm font-semibold",e),...t}));Gwe.displayName=Mwe.displayName;const Kwe=k.forwardRef(({className:e,...t},r)=>i.jsx(Iwe,{ref:r,className:De("text-sm opacity-90",e),...t}));Kwe.displayName=Iwe.displayName;function YOe(){const{toasts:e}=Xt();return i.jsxs(WOe,{children:[e.map(function({id:t,title:r,description:n,action:a,...s}){return i.jsxs(Vwe,{...s,children:[i.jsxs("div",{className:"grid gap-1",children:[r&&i.jsx(Gwe,{children:r}),n&&i.jsx(Kwe,{children:n})]}),a,i.jsx(Wwe,{})]},t)}),i.jsx(Hwe,{})]})}var bue=["light","dark"],XOe="(prefers-color-scheme: dark)",ZOe=k.createContext(void 0),QOe={setTheme:e=>{},themes:[]},JOe=()=>{var e;return(e=k.useContext(ZOe))!=null?e:QOe};k.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:s,value:o,attrs:l,nonce:c})=>{let u=s==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=a?bue.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(y,m=!1,v=!0)=>{let g=o?o[y]:y,b=m?y+"|| ''":`'${g}'`,x="";return a&&v&&!m&&bue.includes(y)&&(x+=`d.style.colorScheme = '${y}';`),r==="class"?m||g?x+=`c.add(${b})`:x+="null":g&&(x+=`d[s](n,${b})`),x},p=e?`!function(){${d}${f(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${XOe}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(s,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${h}}catch(t){}}();`;return k.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var eRe=e=>{switch(e){case"success":return nRe;case"info":return iRe;case"warning":return aRe;case"error":return sRe;default:return null}},tRe=Array(12).fill(0),rRe=({visible:e,className:t})=>ce.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ce.createElement("div",{className:"sonner-spinner"},tRe.map((r,n)=>ce.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),nRe=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ce.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),aRe=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ce.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),iRe=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ce.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),sRe=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ce.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),oRe=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ce.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ce.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),lRe=()=>{let[e,t]=ce.useState(document.hidden);return ce.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},KJ=1,cRe=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>
7775{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;let{message:n,...a}=t,s=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:KJ++,o=this.toasts.find(c=>c.id===s),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...t,id:s,title:n}),{...c,...t,id:s,dismissible:l,title:n}):c):this.addToast({title:n,...a,dismissible:l,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:t,dismiss:!0})),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let a=t instanceof Promise?t:t(),s=n!==void 0,o,l=a.then(async u=>{if(o=["resolve",u],ce.isValidElement(u))s=!1,this.create({id:n,type:"default",message:u});else if(dRe(u)&&!u.ok){s=!1;let d=typeof r.error=="function"?await r.error(`HTTP error! status: ${u.status}`):r.error,h=typeof r.description=="function"?await r.description(`HTTP error! status: ${u.status}`):r.description;this.create({id:n,type:"error",message:d,description:h})}else if(r.success!==void 0){s=!1;let d=typeof r.success=="function"?await r.success(u):r.success,h=typeof r.description=="function"?await r.description(u):r.description;this.create({id:n,type:"success",message:d,description:h})}}).catch(async u=>{if(o=["reject",u],r.error!==void 0){s=!1;let d=typeof r.error=="function"?await r.error(u):r.error,h=typeof r.description=="function"?await r.description(u):r.description;this.create({id:n,type:"error",message:d,description:h})}}).finally(()=>{var u;s&&(this.dismiss(n),n=void 0),(u=r.finally)==null||u.call(r)}),c=()=>new Promise((u,d)=>l.then(()=>o[0]==="reject"?d(o[1]):u(o[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(t,r)=>{let n=(r==null?void 0:r.id)||KJ++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ls=new cRe,uRe=(e,t)=>{let r=(t==null?void 0:t.id)||KJ++;return ls.addToast({title:e,...t,id:r}),r},dRe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",hRe=uRe,fRe=()=>ls.toasts,pRe=()=>ls.getActiveToasts(),Ct=Object.assign(hRe,{success:ls.success,info:ls.info,warning:ls.warning,error:ls.error,custom:ls.custom,message:ls.message,promise:ls.promise,dismiss:ls.dismiss,loading:ls.loading},{getHistory:fRe,getToasts:pRe});function mRe(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}mRe(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
7775left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
7775:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
7775--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 7776`);function s3(e){return e.label!==void 0}var gRe=3,yRe="32px",vRe="16px",wue=4e3,xRe=356,bRe=14,wRe=20,kRe=200;function Fo(...e){return e.filter(Boolean).join(" ")}function _Re(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var SRe=e=>{var t,r,n,a,s,o,l,c,u,d,h;let{invert:f,toast:p,unstyled:y,interacting:m,setHeights:v,visibleToasts:g,heights:b,index:x,toasts:_,expanded:w,removeToast:j,defaultRichColors:E,closeButton:C,style:N,cancelButtonStyle:A,actionButtonStyle:$,className:T="",descriptionClassName:F="",duration:M,position:z,gap:Y,loadingIcon:W,expandByDefault:ee,classNames:Z,icons:V,
vendor: 4,575 bytes, line 7776
7776closeButtonAriaLabel:ne="Close toast",pauseWhenPageIsHidden:P}=e,[R,H]=ce.useState(null),[re,ae]=ce.useState(null),[D,U]=ce.useState(!1),[se,te]=ce.useState(!1),[Q,K]=ce.useState(!1),[ue,B]=ce.useState(!1),[pe,G]=ce.useState(!1),[I,L]=ce.useState(0),[q,X]=ce.useState(0),ie=ce.useRef(p.duration||M||wue),J=ce.useRef(null),fe=ce.useRef(null),ve=x===0,ge=x+1<=g,de=p.type,ye=p.dismissible!==!1,_e=p.className||"",Fe=p.descriptionClassName||"",ht=ce.useMemo(()=>b.findIndex(tt=>tt.toastId===p.id)||0,[b,p.id]),_t=ce.useMemo(()=>{var tt;return(tt=p.closeButton)!=null?tt:C},[p.closeButton,C]),xe=ce.useMemo(()=>p.duration||M||wue,[p.duration,M]),je=ce.useRef(0),ut=ce.useRef(0),Ot=ce.useRef(0),lt=ce.useRef(null),[et,It]=z.split("-"),wr=ce.useMemo(()=>b.reduce((tt,$e,At)=>At>=ht?tt:tt+$e.height,0),[b,ht]),rr=lRe(),Oe=p.invert||f,rt=de==="loading";ut.current=ce.useMemo(()=>ht*Y+wr,[ht,wr]),ce.useEffect(()=>{ie.current=xe},[xe]),ce.useEffect(()=>{U(!0)},[]),ce.useEffect(()=>{let tt=fe.current;if(tt){let $e=tt.getBoundingClientRect().height;return X($e),v(At=>[{toastId:p.id,height:$e,position:p.position},...At]),()=>v(At=>At.filter(at=>at.toastId!==p.id))}},[v,p.id]),ce.useLayoutEffect(()=>{if(!D)return;let tt=fe.current,$e=tt.style.height;tt.style.height="auto";let At=tt.getBoundingClientRect().height;tt.style.height=$e,X(At),v(at=>at.find(Zt=>Zt.toastId===p.id)?at.map(Zt=>Zt.toastId===p.id?{...Zt,height:At}:Zt):[{toastId:p.id,height:At,position:p.position},...at])},[D,p.title,p.description,v,p.id]);let nt=ce.useCallback(()=>{te(!0),L(ut.current),v(tt=>tt.filter($e=>$e.toastId!==p.id)),setTimeout(()=>{j(p)},kRe)},[p,j,v,ut]);ce.useEffect(()=>{if(p.promise&&de==="loading"||p.duration===1/0||p.type==="loading")return;let tt;return w||m||P&&rr?(()=>{if(Ot.current<je.current){let $e=new Date().getTime()-je.current;ie.current=ie.current-$e}Ot.current=new Date().getTime()})():ie.current!==1/0&&(je.current=new Date().getTime(),tt=setTimeout(()=>{var $e;($e=p.onAutoClose)==null||$e.call(p,p),nt()},ie.current)),()=>clearTimeout(tt)},[w,m,p,de,P,rr,nt]),ce.useEffect(()=>{p.delete&&nt()},[nt,p.delete]);function yt(){var tt,$e,At;return V!=null&&V.loading?ce.createElement("div",{className:Fo(Z==null?void 0:Z.loader,(tt=p==null?void 0:p.classNames)==null?void 0:tt.loader,"sonner-loader"),"data-visible":de==="loading"},V.loading):W?ce.createElement("div",{className:Fo(Z==null?void 0:Z.loader,($e=p==null?void 0:p.classNames)==null?void 0:$e.loader,"sonner-loader"),"data-visible":de==="loading"},W):ce.createElement(rRe,{className:Fo(Z==null?void 0:Z.loader,(At=p==null?void 0:p.classNames)==null?void 0:At.loader),visible:de==="loading"})}return ce.createElement("li",{tabIndex:0,ref:fe,className:Fo(T,_e,Z==null?void 0:Z.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,Z==null?void 0:Z.default,Z==null?void 0:Z[de],(r=p==null?void 0:p.classNames)==null?void 0:r[de]),"data-sonner-toast":"","data-rich-colors":(n=p.richColors)!=null?n:E,"data-styled":!(p.jsx||p.unstyled||y),"data-mounted":D,"data-promise":!!p.promise,"data-swiped":pe,"data-removed":se,"data-visible":ge,"data-y-position":et,"data-x-position":It,"data-index":x,"data-front":ve,"data-swiping":Q,"data-dismissible":ye,"data-type":de,"data-invert":Oe,"data-swipe-out":ue,"data-swipe-direction":re,"data-expanded":!!(w||ee&&D),style:{"--index":x,"--toasts-before":x,"--z-index":_.length-x,"--offset":`${se?I:ut.current}px`,"--initial-height":ee?"auto":`${q}px`,...N,...p.style},onDragEnd:()=>{K(!1),H(null),lt.current=null},onPointerDown:tt=>{rt||!ye||(J.current=new Date,L(ut.current),tt.target.setPointerCapture(tt.pointerId),tt.target.tagName!=="BUTTON"&&(K(!0),lt.current={x:tt.clientX,y:tt.clientY}))},onPointerUp:()=>{var tt,$e,At,at;if(ue||!ye)return;lt.current=null;let Zt=Number(((tt=fe.current)==null?void 0:tt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Kt=Number((($e=fe.current)==null?void 0:$e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),$r=new Date().getTime()-((At=J.current)==null?void 0:At.getTime()),ar=R==="x"?Zt:Kt,_a=Math.abs(ar)/$r;if(Math.abs(ar)>=wRe||_a>.11){L(ut.current),(at=p.onDismiss)==null||at.call(p,p),ae(R==="x"?Zt>0?"right":"left":Kt>0?"down":"up"),nt(),B(!0),G(!1);return}K(!1),H(null)},onPointerMove:tt=>{var $e,At,at,Zt;if(!lt.current||!ye||(($e=window.getSelection())==null?void 0:$e.toString().length)>0)return;let Kt=tt.clientY-lt.current.y,$r=tt.clientX-lt.current.x,ar=(At=e.swipeDirections)!=null?At:_Re(z);!R&&(Math.abs($r)>1||Math.abs(Kt)>1)&&H(Math.abs($r)>Math.abs(Kt)?"x":"y");let _a={x:0,y:0};
7776R==="y"?(ar.includes("top")||ar.includes("bottom"))&&(ar.includes("top")&&Kt<0||ar.includes("bottom")&&Kt>0)&&(_a.y=Kt):R==="x"&&(ar.includes("left")||ar.includes("right"))&&(ar.includes("left")&&$r<0||ar.includes("right")&&$r>0)&&(_a.x=$r),(Math.abs(_a.x)>0||Math.abs(_a.y)>0)&&G(!0),(at=fe.current)==null||at.style.setProperty("--swipe-amount-x",`${_a.x}px`),(Zt=fe.current)==null||Zt.style.setProperty("--swipe-amount-y",`${_a.y}px`)}},_t&&!p.jsx?ce.createElement("button",{"aria-label":ne,"data-disabled":rt,"data-close-button":!0,onClick:rt||!ye?()=>{}:()=>{var tt;nt(),(tt=p.onDismiss)==null||tt.call(p,p)},className:Fo(Z==null?void 0:Z.closeButton,(a=p==null?void 0:p.classNames)==null?void 0:a.closeButton)},(s=V==null?void 0:V.close)!=null?s:oRe):null,p.jsx||k.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:ce.createElement(ce.Fragment,null,de||p.icon||p.promise?ce.createElement("div",{"data-icon":"",className:Fo(Z==null?void 0:Z.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||yt():null,p.type!=="loading"?p.icon||(V==null?void 0:V[de])||eRe(de):null):null,ce.createElement("div",{"data-content":"",className:Fo(Z==null?void 0:Z.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},ce.createElement("div",{"data-title":"",className:Fo(Z==null?void 0:Z.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},typeof p.title=="function"?p.title():p.title),p.description?ce.createElement("div",{"data-description":"",className:Fo(F,Fe,Z==null?void 0:Z.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),k.isValidElement(p.cancel)?p.cancel:p.cancel&&s3(p.cancel)?ce.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||A,onClick:tt=>{var $e,At;s3(p.cancel)&&ye&&((At=($e=p.cancel).onClick)==null||At.call($e,tt),nt())},className:Fo(Z==null?void 0:Z.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,k.isValidElement(p.action)?p.action:p.action&&s3(p.action)?ce.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||$,onClick:tt=>{var $e,At;s3(p.action)&&((At=($e=p.action).onClick)==null||At.call($e,tt),!tt.defaultPrevented&&nt())},className:Fo(Z==null?void 0:Z.actionButton,(h=p==null?void 0:p.classNames)==null?void 0:h.actionButton)},p.action.label):null))};function kue(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function jRe(e,t){let r={};return[e,t].forEach((n,a)=>{let s=a===1,o=s?"--mobile-offset":"--offset",l=s?vRe:yRe;function c(u){["top","right","bottom","left"].forEach(d=>{r[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${o}-${u}`]=l:r[`${o}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):c(l)}),r}var ERe=k.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:o,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:f,style:p,visibleToasts:y=gRe,toastOptions:m,dir:v=kue(),gap:g=bRe,loadingIcon:b,icons:x,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:w}=e,[j,E]=ce.useState([]),C=ce.useMemo(()=>Array.from(new Set([n].concat(j.filter(P=>P.position).map(P=>P.position)))),[j,n]),[N,A]=ce.useState([]),[$,T]=ce.useState(!1),[F,M]=ce.useState(!1),[z,Y]=ce.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=ce.useRef(null),ee=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=ce.useRef(null),V=ce.useRef(!1),ne=ce.useCallback(P=>{E(R=>{var H;return(H=R.find(re=>re.id===P.id))!=null&&H.delete||ls.dismiss(P.id),R.filter(({id:re})=>re!==P.id)})},[]);return ce.useEffect(()=>ls.subscribe(P=>{if(P.dismiss){E(R=>R.map(H=>H.id===P.id?{...H,delete:!0}:H));return}setTimeout(()=>{lwe.flushSync(()=>{E(R=>{let H=R.findIndex(re=>re.id===P.id);return H!==-1?[...R.slice(0,H),{...R[H],...P},...R.slice(H+1)]:[P,...R]})})})}),[]),ce.useEffect(()=>{if(d!=="system"){Y(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;let P=window.matchMedia("(prefers-color-scheme: dark)");try{P.addEventListener("change",({matches:R})=>{Y(R?"dark":"light")})}catch{P.addListener(({matches:H})=>{try{Y(H?"dark":"light")}catch(re){console.error(re)}})}},[d]),ce.useEffect(()=>{j.length<=1&&T(!1)},[j]),ce.useEffect(()=>{let P=R=>{var H,re;a.every(ae=>R[ae]||R.code===ae)&&(T(!0),(H=W.current)==null||H.focus()),R.code==="Escape"&&(document.activeElement===W.current||(re=W.current)!=null&&re.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[a]),ce.useEffect(()=>{if(W.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,V.current=!1)}},[W.current]),ce.createElement("section",{ref:t,"aria-label":`${_} ${ee}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((P,R)=>{var H;let[re,ae]=P.split("-");return j.length?ce.createElement("ol",{key:P,dir:v==="auto"?kue():v,tabIndex:-1,ref:W,className:l,"data-sonner-toaster":!0,"data-theme":z,"data-y-position":re,"data-lifted":$&&j.length>1&&!s,"data-x-position":ae,style:{"--front-toast-height":`${((H=N[0])==null?void 0:H.height)||0}px`,"--width":`${xRe}px`,"--gap":`${g}px`,...p,...jRe(c,u)},onBlur:D=>{V.current&&!D.currentTarget.contains(D.relatedTarget)&&(V.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||V.current||(V.current=!0,Z.current=D.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{F||T(!1)},onDragEnd:()=>T(!1),onPointerDown:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},j.filter(D=>!D.position&&R===0||D.position===P).map((D,U)=>{var se,te;return ce.createElement(SRe,{key:D.id,icons:x,index:U,toast:D,defaultRichColors:h,duration:(se=m==null?void 0:m.duration)!=null?se:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:r,visibleToasts:y,closeButton:(te=m==null?void 0:m.closeButton)!=null?te:o,interacting:F,position:P,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:ne,toasts:j.filter(Q=>Q.position==D.position),heights:N.filter(Q=>Q.position==D.position),setHeights:A,expandByDefault:s,gap:g,loadingIcon:b,expanded:$,pauseWhenPageIsHidden:w,swipeDirections:e.swipeDirections})})):null}))});const CRe=({...e})=>{const{theme:t="system"}=JOe();return i.jsx(ERe,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var NRe=Pne[" useId ".trim().toString()]||(()=>{}),TRe=0;function $a(e){const[t,r]=k.useState(NRe());return za(()=>{r(n=>n??String(TRe++))},[e]),t?`radix-${t}`:""}const ARe=["top","right","bottom","left"],sh=Math.min,$s=Math.max,Iq=Math.round,o3=Math.floor,dc=e=>({x:e,y:e}
vendor: 10,531 bytes, line 7776
7776),MRe={left:"right",right:"left",bottom:"top",top:"bottom"},IRe={start:"end",end:"start"};function YJ(e,t,r){return $s(e,sh(t,r))}function ju(e,t){return typeof e=="function"?e(t):e}function Eu(e){return e.split("-")[0]}function cv(e){return e.split("-")[1]}function Aae(e){return e==="x"?"y":"x"}function Mae(e){return e==="y"?"height":"width"}const PRe=new Set(["top","bottom"]);function Yl(e){return PRe.has(Eu(e))?"y":"x"}function Iae(e){return Aae(Yl(e))}function LRe(e,t,r){r===void 0&&(r=!1);const n=cv(e),a=Iae(e),s=Mae(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Pq(o)),[o,Pq(o)]}function ORe(e){const t=Pq(e);return[XJ(e),t,XJ(t)]}function XJ(e){return e.replace(/start|end/g,t=>IRe[t])}const _ue=["left","right"],Sue=["right","left"],RRe=["top","bottom"],DRe=["bottom","top"];function FRe(e,t,r){switch(e){case"top":case"bottom":return r?t?Sue:_ue:t?_ue:Sue;case"left":case"right":return t?RRe:DRe;default:return[]}}function $Re(e,t,r,n){const a=cv(e);let s=FRe(Eu(e),r==="start",n);return a&&(s=s.map(o=>o+"-"+a),t&&(s=s.concat(s.map(XJ)))),s}function Pq(e){return e.replace(/left|right|bottom|top/g,t=>MRe[t])}function BRe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ywe(e){return typeof e!="number"?BRe(e):{top:e,right:e,bottom:e,left:e}}function Lq(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function jue(e,t,r){let{reference:n,floating:a}=e;const s=Yl(t),o=Iae(t),l=Mae(o),c=Eu(t),u=s==="y",d=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,f=n[l]/2-a[l]/2;let p;switch(c){case"top":p={x:d,y:n.y-a.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:h};break;case"left":p={x:n.x-a.width,y:h};break;default:p={x:n.x,y:n.y}}switch(cv(t)){case"start":p[o]-=f*(r&&u?-1:1);break;case"end":p[o]+=f*(r&&u?-1:1);break}return p}const zRe=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:o}=r,l=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:h}=jue(u,n,c),f=n,p={},y=0;for(let m=0;m<l.length;m++){const{name:v,fn:g}=l[m],{x:b,y:x,data:_,reset:w}=await g({x:d,y:h,initialPlacement:n,placement:f,strategy:a,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=b??d,h=x??h,p={...p,[v]:{...p[v],..._}},w&&y<=50&&(y++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(u=w.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):w.rects),{x:d,y:h}=jue(u,f,c)),m=-1)}return{x:d,y:h,placement:f,strategy:a,middlewareData:p}};async function uk(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:s,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=ju(t,e),y=Ywe(p),v=l[f?h==="floating"?"reference":"floating":h],g=Lq(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),b=h==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),_=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},w=Lq(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:x,strategy:c}):b);return{top:(g.top-w.top+y.top)/_.y,bottom:(w.bottom-g.bottom+y.bottom)/_.y,left:(g.left-w.left+y.left)/_.x,right:(w.right-g.right+y.right)/_.x}}const URe=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:s,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=ju(e,t)||{};if(u==null)return{};const h=Ywe(d),f={x:r,y:n},p=Iae(a),y=Mae(p),m=await o.getDimensions(u),v=p==="y",g=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",_=s.reference[y]+s.reference[p]-f[p]-s.floating[y],w=f[p]-s.reference[p],j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let E=j?j[x]:0;(!E||!await(o.isElement==null?void 0:o.isElement(j)))&&(E=l.floating[x]||s.floating[y]);const C=_/2-w/2,N=E/2-m[y]/2-1,A=sh(h[g],N),$=sh(h[b],N),T=A,F=E-m[y]-$,M=E/2-m[y]/2+C,z=YJ(T,M,F),Y=!c.arrow&&cv(a)!=null&&M!==z&&s.reference[y]/2-(M<T?A:$)-m[y]/2<0,W=Y?M<T?M-T:M-F:0;return{[p]:f[p]+W,data:{[p]:z,centerOffset:M-z-W,...Y&&{alignmentOffset:W}},reset:Y}}}),qRe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:s,rects:o,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,...v}=ju(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const g=Eu(a),b=Yl(l),x=Eu(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),w=f||(x||!m?[Pq(l)]:ORe(l)),j=y!=="none";!f&&j&&w.push(...$Re(l,m,y,_));const E=[l,...w],C=await uk(t,v),N=[];let A=((n=s.flip)==null?void 0:n.overflows)||[];if(d&&N.push(C[g]),h){const M=LRe(a,o,_);N.push(C[M[0]],C[M[1]])}if(A=[...A,{placement:a,overflows:N}],!N.every(M=>M<=0)){var $,T;const M=((($=s.flip)==null?void 0:$.index)||0)+1,z=E[M];if(z&&(!(h==="alignment"?b!==Yl(z):!1)||A.every(ee=>ee.overflows[0]>0&&Yl(ee.placement)===b)))return{data:{index:M,overflows:A},reset:{placement:z}};let Y=(T=A.filter(W=>W.overflows[0]<=0).sort((W,ee)=>W.overflows[1]-ee.overflows[1])[0])==null?void 0:T.placement;if(!Y)switch(p){case"bestFit":{var F;const W=(F=A.filter(ee=>{if(j){const Z=Yl(ee.placement);return Z===b||Z==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(Z=>Z>0).reduce((Z,V)=>Z+V,0)]).sort((ee,Z)=>ee[1]-Z[1])[0])==null?void 0:F[0];W&&(Y=W);break}case"initialPlacement":Y=l;break}if(a!==Y)return{reset:{placement:Y}}}return{}}}};function Eue(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cue(e){return ARe.some(t=>e[t]>=0)}const HRe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=ju(e,t);switch(n){case"referenceHidden":{const s=await uk(t,{...a,elementContext:"reference"}),o=Eue(s,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Cue(o)}}}case"escaped":{const s=await uk(t,{...a,altBoundary:!0}),o=Eue(s,r.floating);return{data:{escapedOffsets:o,escaped:Cue(o)}}}default:return{}}}}},Xwe=new Set(["left","top"]);async function VRe(e,t){const{placement:r,platform:n,elements:a}=e,s=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=Eu(r),l=cv(r),c=Yl(r)==="y",u=Xwe.has(o)?-1:1,d=s&&c?-1:1,h=ju(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),c?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const WRe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:s,placement:o,middlewareData:l}=t,c=await VRe(t,e);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+c.x,y:s+c.y,data:{...c,placement:o}}}}},GRe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:g,y:b}=v;return{x:g,y:b}}},...c}=ju(e,t),u={x:r,y:n},d=await uk(t,c),h=Yl(Eu(a)),f=Aae(h);let p=u[f],y=u[h];if(s){const v=f==="y"?"top":"left",g=f==="y"?"bottom":"right",b=p+d[v],x=p-d[g];p=YJ(b,p,x)}if(o){const v=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=y+d[v],x=y-d[g];y=YJ(b,y,x)}const m=l.fn({...t,[f]:p,[h]:y});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[f]:s,[h]:o}}}}}},KRe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:s,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=ju(e,t),d={x:r,y:n},h=Yl(a),f=Aae(h);let p=d[f],y=d[h];const m=ju(l,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const x=f==="y"?"height":"width",_=s.reference[f]-s.floating[x]+v.mainAxis,w=s.reference[f]+s.reference[x]-v.mainAxis;p<_?p=_:p>w&&(p=w)}if(u){var g,b;const x=f==="y"?"width":"height",_=Xwe.has(Eu(a)),w=s.reference[h]-s.floating[x]+(_&&((g=o.offset)==null?void 0:g[h])||0)+(_?0:v.crossAxis),j=s.reference[h]+s.reference[x]+(_?0:((b=o.offset)==null?void 0:b[h])||0)-(_?v.crossAxis:0);y<w?y=w:y>j&&(y=j)}return{[f]:p,[h]:y}}}},YRe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:s,platform:o,elements:l}=t,{apply:c=()=>{},...u}=ju(e,t),d=await uk(t,u),h=Eu(a),f=cv(a),p=Yl(a)==="y",{width:y,height:m}=s.floating;let v,g;h==="top"||h==="bottom"?(v=h,g=f===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(g=h,v=f==="end"?"top":"bottom");const b=m-d.top-d.bottom,x=y-d.left-d.right,_=sh(m-d[v],b),w=sh(y-d[g],x),j=!t.middlewareData.shift;let E=_,C=w;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=b),j&&!f){const A=$s(d.left,0),$=$s(d.right,0),T=$s(d.top,0),F=$s(d.bottom,0);p?C=y-2*(A!==0||$!==0?A+$:$s(d.left,d.right)):E=m-2*(T!==0||F!==0?T+F:$s(d.top,d.bottom))}await c({...t,availableWidth:C,availableHeight:E});const N=await o.getDimensions(l.floating);return y!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function rW(){return typeof window<"u"}function uv(e){return Zwe(e)?(e.nodeName||"").toLowerCase():"#document"}function Ws(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bc(e){var t;return(t=(Zwe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zwe(e){return rW()?e instanceof Node||e instanceof Ws(e).Node:!1}function Sl(e){return rW()?e instanceof Element||e instanceof Ws(e).Element:!1}function mc(e){return rW()?e instanceof HTMLElement||e instanceof Ws(e).HTMLElement:!1}function Nue(e){return!rW()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ws(e).ShadowRoot}const XRe=new Set(["inline","contents"]);function I_(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=jl(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!XRe.has(a)}const ZRe=new Set(["table","td","th"]);
vendor: 4,061 bytes, line 7776
7776function QRe(e){return ZRe.has(uv(e))}const JRe=[":popover-open",":modal"];function nW(e){return JRe.some(t=>{try{return e.matches(t)}catch{return!1}})}const eDe=["transform","translate","scale","rotate","perspective"],tDe=["transform","translate","scale","rotate","perspective","filter"],rDe=["paint","layout","strict","content"];function Pae(e){const t=Lae(),r=Sl(e)?jl(e):e;return eDe.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||tDe.some(n=>(r.willChange||"").includes(n))||rDe.some(n=>(r.contain||"").includes(n))}function nDe(e){let t=oh(e);for(;mc(t)&&!h2(t);){if(Pae(t))return t;if(nW(t))return null;t=oh(t)}return null}function Lae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aDe=new Set(["html","body","#document"]);function h2(e){return aDe.has(uv(e))}function jl(e){return Ws(e).getComputedStyle(e)}function aW(e){return Sl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oh(e){if(uv(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nue(e)&&e.host||bc(e);return Nue(t)?t.host:t}function Qwe(e){const t=oh(e);return h2(t)?e.ownerDocument?e.ownerDocument.body:e.body:mc(t)&&I_(t)?t:Qwe(t)}function dk(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=Qwe(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),o=Ws(a);if(s){const l=ZJ(o);return t.concat(o,o.visualViewport||[],I_(a)?a:[],l&&r?dk(l):[])}return t.concat(a,dk(a,[],r))}function ZJ(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jwe(e){const t=jl(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=mc(e),s=a?e.offsetWidth:r,o=a?e.offsetHeight:n,l=Iq(r)!==s||Iq(n)!==o;return l&&(r=s,n=o),{width:r,height:n,$:l}}function Oae(e){return Sl(e)?e:e.contextElement}function Iy(e){const t=Oae(e);if(!mc(t))return dc(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:s}=Jwe(t);let o=(s?Iq(r.width):r.width)/n,l=(s?Iq(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const iDe=dc(0);function eke(e){const t=Ws(e);return!Lae()||!t.visualViewport?iDe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sDe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ws(e)?!1:t}function b0(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),s=Oae(e);let o=dc(1);t&&(n?Sl(n)&&(o=Iy(n)):o=Iy(e));const l=sDe(s,r,n)?eke(s):dc(0);let c=(a.left+l.x)/o.x,u=(a.top+l.y)/o.y,d=a.width/o.x,h=a.height/o.y;if(s){const f=Ws(s),p=n&&Sl(n)?Ws(n):n;let y=f,m=ZJ(y);for(;m&&n&&p!==y;){const v=Iy(m),g=m.getBoundingClientRect(),b=jl(m),x=g.left+(m.clientLeft+parseFloat(b.paddingLeft))*v.x,_=g.top+(m.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,h*=v.y,c+=x,u+=_,y=Ws(m),m=ZJ(y)}}return Lq({width:d,height:h,x:c,y:u})}function Rae(e,t){const r=aW(e).scrollLeft;return t?t.left+r:b0(bc(e)).left+r}function tke(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-(r?0:Rae(e,n)),s=n.top+t.scrollTop;return{x:a,y:s}}function oDe(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const s=a==="fixed",o=bc(n),l=t?nW(t.floating):!1;if(n===o||l&&s)return r;let c={scrollLeft:0,scrollTop:0},u=dc(1);const d=dc(0),h=mc(n);if((h||!h&&!s)&&((uv(n)!=="body"||I_(o))&&(c=aW(n)),mc(n))){const p=b0(n);u=Iy(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}const f=o&&!h&&!s?tke(o,c,!0):dc(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:r.y*u.y-c.scrollTop*u.y+d.y+f.y}}function lDe(e){return Array.from(e.getClientRects())}function cDe(e){const t=bc(e),r=aW(e),n=e.ownerDocument.body,a=$s(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=$s(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Rae(e);const l=-r.scrollTop;return jl(n).direction==="rtl"&&(o+=$s(t.clientWidth,n.clientWidth)-a),{width:a,height:s,x:o,y:l}}
vendor: 4,921 bytes, line 7776
7776function uDe(e,t){const r=Ws(e),n=bc(e),a=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,l=0,c=0;if(a){s=a.width,o=a.height;const u=Lae();(!u||u&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:s,height:o,x:l,y:c}}const dDe=new Set(["absolute","fixed"]);function hDe(e,t){const r=b0(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,s=mc(e)?Iy(e):dc(1),o=e.clientWidth*s.x,l=e.clientHeight*s.y,c=a*s.x,u=n*s.y;return{width:o,height:l,x:c,y:u}}function Tue(e,t,r){let n;if(t==="viewport")n=uDe(e,r);else if(t==="document")n=cDe(bc(e));else if(Sl(t))n=hDe(t,r);else{const a=eke(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Lq(n)}function rke(e,t){const r=oh(e);return r===t||!Sl(r)||h2(r)?!1:jl(r).position==="fixed"||rke(r,t)}function fDe(e,t){const r=t.get(e);if(r)return r;let n=dk(e,[],!1).filter(l=>Sl(l)&&uv(l)!=="body"),a=null;const s=jl(e).position==="fixed";let o=s?oh(e):e;for(;Sl(o)&&!h2(o);){const l=jl(o),c=Pae(o);!c&&l.position==="fixed"&&(a=null),(s?!c&&!a:!c&&l.position==="static"&&!!a&&dDe.has(a.position)||I_(o)&&!c&&rke(e,o))?n=n.filter(d=>d!==o):a=l,o=oh(o)}return t.set(e,n),n}function pDe(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?nW(t)?[]:fDe(t,this._c):[].concat(r),n],l=o[0],c=o.reduce((u,d)=>{const h=Tue(t,d,a);return u.top=$s(h.top,u.top),u.right=sh(h.right,u.right),u.bottom=sh(h.bottom,u.bottom),u.left=$s(h.left,u.left),u},Tue(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function mDe(e){const{width:t,height:r}=Jwe(e);return{width:t,height:r}}function gDe(e,t,r){const n=mc(t),a=bc(t),s=r==="fixed",o=b0(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=dc(0);function u(){c.x=Rae(a)}if(n||!n&&!s)if((uv(t)!=="body"||I_(a))&&(l=aW(t)),n){const p=b0(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else a&&u();s&&!n&&a&&u();const d=a&&!n&&!s?tke(a,l):dc(0),h=o.left+l.scrollLeft-c.x-d.x,f=o.top+l.scrollTop-c.y-d.y;return{x:h,y:f,width:o.width,height:o.height}}function sY(e){return jl(e).position==="static"}function Aue(e,t){if(!mc(e)||jl(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return bc(e)===r&&(r=r.ownerDocument.body),r}function nke(e,t){const r=Ws(e);if(nW(e))return r;if(!mc(e)){let a=oh(e);for(;a&&!h2(a);){if(Sl(a)&&!sY(a))return a;a=oh(a)}return r}let n=Aue(e,t);for(;n&&QRe(n)&&sY(n);)n=Aue(n,t);return n&&h2(n)&&sY(n)&&!Pae(n)?r:n||nDe(e)||r}const yDe=async function(e){const t=this.getOffsetParent||nke,r=this.getDimensions,n=await r(e.floating);return{reference:gDe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function vDe(e){return jl(e).direction==="rtl"}const xDe={convertOffsetParentRelativeRectToViewportRelativeRect:oDe,getDocumentElement:bc,getClippingRect:pDe,getOffsetParent:nke,getElementRects:yDe,getClientRects:lDe,getDimensions:mDe,getScale:Iy,isElement:Sl,isRTL:vDe};function ake(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bDe(e,t){let r=null,n;const a=bc(e);function s(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:h,width:f,height:p}=u;if(l||t(),!f||!p)return;const y=o3(h),m=o3(a.clientWidth-(d+f)),v=o3(a.clientHeight-(h+p)),g=o3(d),x={rootMargin:-y+"px "+-m+"px "+-v+"px "+-g+"px",threshold:$s(0,sh(1,c))||1};let _=!0;function w(j){const E=j[0].intersectionRatio;if(E!==c){if(!_)return o();E?o(!1,E):n=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!ake(u,e.getBoundingClientRect())&&o(),_=!1}try{r=new IntersectionObserver(w,{...x,root:a.ownerDocument})}catch{r=new IntersectionObserver(w,x)}r.observe(e)}return o(!0),s}function wDe(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Oae(e),d=a||s?[...u?dk(u):[],...dk(t)]:[];d.forEach(g=>{a&&g.addEventListener("scroll",r,{passive:!0}),s&&g.addEventListener("resize",r)});const h=u&&l?bDe(u,r):null;let f=-1,p=null;o&&(p=new ResizeObserver(g=>{let[b]=g;b&&b.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),r()}),u&&!c&&p.observe(u),p.observe(t));let y,m=c?b0(e):null;c&&v();function v(){const g=b0(e);m&&!ake(m,g)&&r(),m=g,y=requestAnimationFrame(v)}return r(),()=>{var g;d.forEach(b=>{a&&b.removeEventListener("scroll",r),s&&b.removeEventListener("resize",r)}),h==null||h(),(g=p)==null||g.disconnect(),p=null,c&&cancelAnimationFrame(y)}}const kDe=WRe,_De=GRe,SDe=qRe,jDe=YRe,EDe=HRe,Mue=URe,CDe=KRe,NDe=(e,t,r)=>{const n=new Map,a={platform:xDe,...r},s={...a.platform,_c:n};return zRe(e,t,{...a,platform:s})};var TDe=typeof document<"u",ADe=function(){},UU=TDe?k.useLayoutEffect:ADe;function Oq(e,t){if(e===t)return!0;
vendor: 3,280 bytes, line 7776
7776if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Oq(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const s=a[n];if(!(s==="_owner"&&e.$$typeof)&&!Oq(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ike(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Iue(e,t){const r=ike(e);return Math.round(t*r)/r}function oY(e){const t=k.useRef(e);return UU(()=>{t.current=e}),t}function MDe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:s,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=k.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=k.useState(n);Oq(f,n)||p(n);const[y,m]=k.useState(null),[v,g]=k.useState(null),b=k.useCallback(ee=>{ee!==j.current&&(j.current=ee,m(ee))},[]),x=k.useCallback(ee=>{ee!==E.current&&(E.current=ee,g(ee))},[]),_=s||y,w=o||v,j=k.useRef(null),E=k.useRef(null),C=k.useRef(d),N=c!=null,A=oY(c),$=oY(a),T=oY(u),F=k.useCallback(()=>{if(!j.current||!E.current)return;const ee={placement:t,strategy:r,middleware:f};$.current&&(ee.platform=$.current),NDe(j.current,E.current,ee).then(Z=>{const V={...Z,isPositioned:T.current!==!1};M.current&&!Oq(C.current,V)&&(C.current=V,B0.flushSync(()=>{h(V)}))})},[f,t,r,$,T]);UU(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,h(ee=>({...ee,isPositioned:!1})))},[u]);const M=k.useRef(!1);UU(()=>(M.current=!0,()=>{M.current=!1}),[]),UU(()=>{if(_&&(j.current=_),w&&(E.current=w),_&&w){if(A.current)return A.current(_,w,F);F()}},[_,w,F,A,N]);const z=k.useMemo(()=>({reference:j,floating:E,setReference:b,setFloating:x}),[b,x]),Y=k.useMemo(()=>({reference:_,floating:w}),[_,w]),W=k.useMemo(()=>{const ee={position:r,left:0,top:0};if(!Y.floating)return ee;const Z=Iue(Y.floating,d.x),V=Iue(Y.floating,d.y);return l?{...ee,transform:"translate("+Z+"px, "+V+"px)",...ike(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Z,top:V}},[r,l,Y.floating,d.x,d.y]);return k.useMemo(()=>({...d,update:F,refs:z,elements:Y,floatingStyles:W}),[d,F,z,Y,W])}const IDe=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Mue({element:n.current,padding:a}).fn(r):{}:n?Mue({element:n,padding:a}).fn(r):{}}}},PDe=(e,t)=>({...kDe(e),options:[e,t]}),LDe=(e,t)=>({..._De(e),options:[e,t]}),ODe=(e,t)=>({...CDe(e),options:[e,t]}),RDe=(e,t)=>({...SDe(e),options:[e,t]}),DDe=(e,t)=>({...jDe(e),options:[e,t]}),FDe=(e,t)=>({...EDe(e),options:[e,t]}),$De=(e,t)=>({...IDe(e),options:[e,t]});var BDe="Arrow",ske=k.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...s}=e;return i.jsx(dt.svg,{...s,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});ske.displayName=BDe;var zDe=ske;function iW(e){const[t,r]=k.useState(void 0);return za(()=>
vendor: 4,725 bytes, line 7776
7776{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let o,l;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;r({width:o,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Dae="Popper",[oke,mh]=xa(Dae),[UDe,lke]=oke(Dae),cke=e=>{const{__scopePopper:t,children:r}=e,[n,a]=k.useState(null);return i.jsx(UDe,{scope:t,anchor:n,onAnchorChange:a,children:r})};cke.displayName=Dae;var uke="PopperAnchor",dke=k.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,s=lke(uke,r),o=k.useRef(null),l=Vt(t,o);return k.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:i.jsx(dt.div,{...a,ref:l})});dke.displayName=uke;var Fae="PopperContent",[qDe,HDe]=oke(Fae),hke=k.forwardRef((e,t)=>{var D,U,se,te,Q,K;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:s="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:y,...m}=e,v=lke(Fae,r),[g,b]=k.useState(null),x=Vt(t,ue=>b(ue)),[_,w]=k.useState(null),j=iW(_),E=(j==null?void 0:j.width)??0,C=(j==null?void 0:j.height)??0,N=n+(s!=="center"?"-"+s:""),A=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],T=$.length>0,F={padding:A,boundary:$.filter(WDe),altBoundary:T},{refs:M,floatingStyles:z,placement:Y,isPositioned:W,middlewareData:ee}=MDe({strategy:"fixed",placement:N,whileElementsMounted:(...ue)=>wDe(...ue,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[PDe({mainAxis:a+C,alignmentAxis:o}),c&&LDe({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?ODe():void 0,...F}),c&&RDe({...F}),DDe({...F,apply:({elements:ue,rects:B,availableWidth:pe,availableHeight:G})=>{const{width:I,height:L}=B.reference,q=ue.floating.style;q.setProperty("--radix-popper-available-width",`${pe}px`),q.setProperty("--radix-popper-available-height",`${G}px`),q.setProperty("--radix-popper-anchor-width",`${I}px`),q.setProperty("--radix-popper-anchor-height",`${L}px`)}}),_&&$De({element:_,padding:l}),GDe({arrowWidth:E,arrowHeight:C}),f&&FDe({strategy:"referenceHidden",...F})]}),[Z,V]=mke(Y),ne=Qn(y);za(()=>{W&&(ne==null||ne())},[W,ne]);const P=(D=ee.arrow)==null?void 0:D.x,R=(U=ee.arrow)==null?void 0:U.y,H=((se=ee.arrow)==null?void 0:se.centerOffset)!==0,[re,ae]=k.useState();return za(()=>{g&&ae(window.getComputedStyle(g).zIndex)},[g]),i.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:W?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[(te=ee.transformOrigin)==null?void 0:te.x,(Q=ee.transformOrigin)==null?void 0:Q.y].join(" "),...((K=ee.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(qDe,{scope:r,placedSide:Z,onArrowChange:w,arrowX:P,arrowY:R,shouldHideArrow:H,children:i.jsx(dt.div,{"data-side":Z,"data-align":V,...m,ref:x,style:{...m.style,animation:W?void 0:"none"}})})})});hke.displayName=Fae;var fke="PopperArrow",VDe={top:"bottom",right:"left",bottom:"top",left:"right"},pke=k.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,s=HDe(fke,n),o=VDe[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(zDe,{...a,ref:r,style:{...a.style,display:"block"}})})});pke.displayName=fke;function WDe(e){return e!==null}var GDe=e=>({name:"transformOrigin",options:e,fn(t){var v,g,b;const{placement:r,rects:n,middlewareData:a}=t,o=((v=a.arrow)==null?void 0:v.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=mke(r),h={start:"0%",center:"50%",end:"100%"}[d],f=(((g=a.arrow)==null?void 0:g.x)??0)+l/2,p=(((b=a.arrow)==null?void 0:b.y)??0)+c/2;let y="",m="";return u==="bottom"?(y=o?h:`${f}px`,m=`${-c}px`):u==="top"?(y=o?h:`${f}px`,m=`${n.floating.height+c}px`):u==="right"?(y=`${-c}px`,m=o?h:`${p}px`):u==="left"&&(y=`${n.floating.width+c}px`,m=o?h:`${p}px`),{data:{x:y,y:m}}}});function mke(e){const[t,r="center"]=e.split("-");return[t,r]}var $ae=cke,P_=dke,sW=hke,oW=pke,[lW,sWt]=xa("Tooltip",[mh]),Bae=mh(),gke="TooltipProvider",KDe=700,Pue="tooltip.open",[YDe,yke]=lW(gke),vke=e=>
vendor: 4,298 bytes, line 7776
7776{const{__scopeTooltip:t,delayDuration:r=KDe,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:s}=e,o=k.useRef(!0),l=k.useRef(!1),c=k.useRef(0);return k.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),i.jsx(YDe,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:k.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:k.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:k.useCallback(u=>{l.current=u},[]),disableHoverableContent:a,children:s})};vke.displayName=gke;var xke="Tooltip",[oWt,cW]=lW(xke),QJ="TooltipTrigger",XDe=k.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=cW(QJ,r),s=yke(QJ,r),o=Bae(r),l=k.useRef(null),c=Vt(t,l,a.onTriggerChange),u=k.useRef(!1),d=k.useRef(!1),h=k.useCallback(()=>u.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),i.jsx(P_,{asChild:!0,...o,children:i.jsx(dt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:c,onPointerMove:Xe(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:Xe(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:Xe(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Xe(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:Xe(e.onBlur,a.onClose),onClick:Xe(e.onClick,a.onClose)})})});XDe.displayName=QJ;var ZDe="TooltipPortal",[lWt,QDe]=lW(ZDe,{forceMount:void 0}),f2="TooltipContent",bke=k.forwardRef((e,t)=>{const r=QDe(f2,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...s}=e,o=cW(f2,e.__scopeTooltip);return i.jsx(ba,{present:n||o.open,children:o.disableHoverableContent?i.jsx(wke,{side:a,...s,ref:t}):i.jsx(JDe,{side:a,...s,ref:t})})}),JDe=k.forwardRef((e,t)=>{const r=cW(f2,e.__scopeTooltip),n=yke(f2,e.__scopeTooltip),a=k.useRef(null),s=Vt(t,a),[o,l]=k.useState(null),{trigger:c,onClose:u}=r,d=a.current,{onPointerInTransitChange:h}=n,f=k.useCallback(()=>{l(null),h(!1)},[h]),p=k.useCallback((y,m)=>{const v=y.currentTarget,g={x:y.clientX,y:y.clientY},b=aFe(g,v.getBoundingClientRect()),x=iFe(g,b),_=sFe(m.getBoundingClientRect()),w=lFe([...x,..._]);l(w),h(!0)},[h]);return k.useEffect(()=>()=>f(),[f]),k.useEffect(()=>{if(c&&d){const y=v=>p(v,d),m=v=>p(v,c);return c.addEventListener("pointerleave",y),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",m)}}},[c,d,p,f]),k.useEffect(()=>{if(o){const y=m=>{const v=m.target,g={x:m.clientX,y:m.clientY},b=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),x=!oFe(g,o);b?f():x&&(f(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,d,o,u,f]),i.jsx(wke,{...e,ref:s})}),[eFe,tFe]=lW(xke,{isInside:!1}),rFe=dwe("TooltipContent"),wke=k.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:o,...l}=e,c=cW(f2,r),u=Bae(r),{onClose:d}=c;return k.useEffect(()=>(document.addEventListener(Pue,d),()=>document.removeEventListener(Pue,d)),[d]),k.useEffect(()=>{if(c.trigger){const h=f=>{const p=f.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),i.jsx(z0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:i.jsxs(sW,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i.jsx(rFe,{children:n}),i.jsx(eFe,{scope:r,isInside:!0,children:i.jsx(W9e,{id:c.contentId,role:"tooltip",children:a||n})})]})})});bke.displayName=f2;var kke="TooltipArrow",nFe=k.forwardRef((e,t)=>
7776{const{__scopeTooltip:r,...n}=e,a=Bae(r);return tFe(kke,r).isInside?null:i.jsx(oW,{...a,...n,ref:t})});nFe.displayName=kke;function aFe(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,a,s)){case s:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function iFe(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function sFe(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function oFe(e,t){const{x:r,y:n}=e;let a=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const l=t[s],c=t[o],u=l.x,d=l.y,h=c.x,f=c.y;d>n!=f>n&&r<(h-u)*(n-d)/(f-d)+u&&(a=!a)}return a}function lFe(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),cFe(t)}function cFe(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(a.y-o.y)>=(s.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const s=r[r.length-1],o=r[r.length-2];if((s.x-o.x)*(a.y-o.y)>=(s.y-o.y)*(a.x-o.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var uFe=vke,_ke=bke;const dFe=uFe,hFe=k.forwardRef(({className:e,sideOffset:t=4,...r},n)=>i.jsx(_ke,{ref:n,sideOffset:t,className:De("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));hFe.displayName=_ke.displayName;var dv=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(){}},w0=typeof window>"u"||"Deno"in globalThis;function qi(){}function fFe(e,t){return typeof e=="function"?e(t):e}function JJ(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ske(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Kd(e,t){return typeof e=="function"?e(t):e}function oo(e,t){return typeof e=="function"?e(t):e}function Lue(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:s,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==zae(o,t.options))return!1}else if(!hk(t.queryKey,o))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||s&&!s(t))}function Oue(e,t){const{exact:r,status:n,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(k0(t.options.mutationKey)!==k0(s))return!1}else if(!hk(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function zae(e,t){return((t==null?void 0:t.queryKeyHashFn)||k0)(e)}function k0(e){return JSON.stringify(e,(t,r)=>eee(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function hk(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>hk(e[r],t[r])):!1}function jke(e,t){if(e===t)return e;const r=Rue(e)&&Rue(t);if(r||eee(e)&&eee(t)){const n=r?e:Object.keys(e),a=n.length,s=r?t:Object.keys(t),o=s.length,l=r?[]:{},c=new Set(n);let u=0;for(let d=0;d<o;d++){const h=r?d:s[d];(!r&&c.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,u++):(l[h]=jke(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&u++)}return a===o&&u===a?e:l}return t}function Rq(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Rue(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function eee(e){if(!Due(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Due(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Due(e){return Object.prototype.toString.call(e)==="[object Object]"}function pFe(e){return new Promise(t=>{setTimeout(t,e)})}function tee(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?jke(e,t):t}function mFe(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function gFe(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Uae=Symbol();function Eke(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Uae?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Cke(e,t){return typeof e=="function"?e(...t):!!e}var q1,vd,Gy,Bve,yFe=(Bve=class extends dv{constructor(){super();Bt(this,q1);Bt(this,vd);Bt(this,Gy);xt(this,Gy,t=>{if(!w0&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ke(this,vd)||this.setEventListener(ke(this,Gy))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,vd))==null||t.call(this),xt(this,vd,void 0))}setEventListener(t){var r;xt(this,Gy,t),(r=ke(this,vd))==null||r.call(this),xt(this,vd,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){ke(this,q1)!==t&&(xt(this,q1,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,977 bytes, line 7776
7776this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof ke(this,q1)=="boolean"?ke(this,q1):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},q1=new WeakMap,vd=new WeakMap,Gy=new WeakMap,Bve),qae=new yFe,Ky,xd,Yy,zve,vFe=(zve=class extends dv{constructor(){super();Bt(this,Ky,!0);Bt(this,xd);Bt(this,Yy);xt(this,Yy,t=>{if(!w0&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){ke(this,xd)||this.setEventListener(ke(this,Yy))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,xd))==null||t.call(this),xt(this,xd,void 0))}setEventListener(t){var r;xt(this,Yy,t),(r=ke(this,xd))==null||r.call(this),xt(this,xd,t(this.setOnline.bind(this)))}setOnline(t){ke(this,Ky)!==t&&(xt(this,Ky,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return ke(this,Ky)}},Ky=new WeakMap,xd=new WeakMap,Yy=new WeakMap,zve),Dq=new vFe;function ree(){let e,t;const r=new Promise((a,s)=>{e=a,t=s});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function xFe(e){return Math.min(1e3*2**e,3e4)}function Nke(e){return(e??"online")==="online"?Dq.isOnline():!0}var Tke=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function lY(e){return e instanceof Tke}function Ake(e){let t=!1,r=0,n=!1,a;const s=ree(),o=m=>{var v;n||(f(new Tke(m)),(v=e.abort)==null||v.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>qae.isFocused()&&(e.networkMode==="always"||Dq.isOnline())&&e.canRun(),d=()=>Nke(e.networkMode)&&e.canRun(),h=m=>{var v;n||(n=!0,(v=e.onSuccess)==null||v.call(e,m),a==null||a(),s.resolve(m))},f=m=>{var v;n||(n=!0,(v=e.onError)==null||v.call(e,m),a==null||a(),s.reject(m))},p=()=>new Promise(m=>{var v;a=g=>{(n||u())&&m(g)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;a=void 0,n||(m=e.onContinue)==null||m.call(e)}),y=()=>{if(n)return;let m;const v=r===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(h).catch(g=>{var j;if(n)return;const b=e.retry??(w0?0:3),x=e.retryDelay??xFe,_=typeof x=="function"?x(r,g):x,w=b===!0||typeof b=="number"&&r<b||typeof b=="function"&&b(r,g);if(t||!w){f(g);return}r++,(j=e.onFail)==null||j.call(e,r,g),pFe(_).then(()=>u()?void 0:p()).then(()=>{t?f(g):y()})})};return{promise:s,cancel:o,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?y():p().then(y),s)}}var bFe=e=>setTimeout(e,0);function wFe(){let e=[],t=0,r=l=>{l()},n=l=>{l()},a=bFe;const s=l=>{t?e.push(l):a(()=>{r(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{s(()=>{l(...c)})},schedule:s,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{a=l}}}var Ia=wFe(),H1,Uve,Mke=(Uve=class{constructor(){Bt(this,H1)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),JJ(this.gcTime)&&xt(this,H1,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(w0?1/0:5*60*1e3))}clearGcTimeout(){ke(this,H1)&&(clearTimeout(ke(this,H1)),xt(this,H1,void 0))}},H1=new WeakMap,Uve),Xy,V1,so,W1,vi,w_,G1,Yo,zc,qve,kFe=(qve=class extends Mke{constructor(t){super();Bt(this,Yo);Bt(this,Xy);Bt(this,V1);Bt(this,so);Bt(this,W1);Bt(this,vi);Bt(this,w_);Bt(this,G1);xt(this,G1,!1),xt(this,w_,t.defaultOptions),this.setOptions(t.options),this.observers=[],xt(this,W1,t.client),xt(this,so,ke(this,W1).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,xt(this,Xy,_Fe(this.options)),this.state=t.state??ke(this,Xy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ke(this,vi))==null?void 0:t.promise}setOptions(t){this.options={...ke(this,w_),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ke(this,so).remove(this)}setData(t,r){const n=tee(this.state.data,t,this.options);return cr(this,Yo,zc).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){cr(this,Yo,zc).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=ke(this,vi))==null?void 0:n.promise;return(a=ke(this,vi))==null||a.cancel(t),r?r.then(qi).catch(qi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ke(this,Xy))}isActive(){return this.observers.some(t=>oo(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Uae||this.state.dataUpdateCount+this.state.errorUpdate
7776Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Kd(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ske(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=ke(this,vi))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=ke(this,vi))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ke(this,so).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(ke(this,vi)&&(ke(this,G1)?ke(this,vi).cancel({revert:!0}):ke(this,vi).cancelRetry()),this.scheduleGc()),ke(this,so).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||cr(this,Yo,zc).call(this,{type:"invalidate"})}fetch(t,r){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(ke(this,vi))return ke(this,vi).continueRetry(),ke(this,vi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(xt(this,G1,!0),n.signal)})},s=()=>{const f=Eke(this.options,r),y=(()=>{const m={client:ke(this,W1),queryKey:this.queryKey,meta:this.meta};return a(m),m})();return xt(this,G1,!1),this.options.persister?this.options.persister(f,y,this):f(y)},l=(()=>{const f={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:ke(this,W1),state:this.state,fetchFn:s};return a(f),f})();(u=this.options.behavior)==null||u.onFetch(l,this),xt(this,V1,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&cr(this,Yo,zc).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var p,y,m,v;lY(f)&&f.silent||cr(this,Yo,zc).call(this,{type:"error",error:f}),lY(f)||((y=(p=ke(this,so).config).onError)==null||y.call(p,f,this),(v=(m=ke(this,so).config).onSettled)==null||v.call(m,this.state.data,f,this)),this.scheduleGc()};return xt(this,vi,Ake({initialPromise:r==null?void 0:r.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,y,m,v;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){c(g);return}(y=(p=ke(this,so).config).onSuccess)==null||y.call(p,f,this),(v=(m=ke(this,so).config).onSettled)==null||v.call(m,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,p)=>{cr(this,Yo,zc).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{cr(this,Yo,zc).call(this,{type:"pause"})},onContinue:()=>{cr(this,Yo,zc).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),ke(this,vi).start()}},Xy=new WeakMap,V1=new WeakMap,so=new WeakMap,W1=new WeakMap,vi=new WeakMap,w_=new WeakMap,G1=new WeakMap,Yo=new WeakSet,zc=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Ike(n.data,this.options),fetchMeta:t.meta??null};case"success":return xt(this,V1,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return lY(a)&&a.revert&&ke(this,V1)?{...ke(this,V1),fetchStatus:"idle"}
vendor: 5,147 bytes, line 7776
7776:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ia.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),ke(this,so).notify({query:this,type:"updated",action:t})})},qve);function Ike(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Nke(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _Fe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ql,Hve,SFe=(Hve=class extends dv{constructor(t={}){super();Bt(this,ql);this.config=t,xt(this,ql,new Map)}build(t,r,n){const a=r.queryKey,s=r.queryHash??zae(a,r);let o=this.get(s);return o||(o=new kFe({client:t,queryKey:a,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){ke(this,ql).has(t.queryHash)||(ke(this,ql).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=ke(this,ql).get(t.queryHash);r&&(t.destroy(),r===t&&ke(this,ql).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ia.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ke(this,ql).get(t)}getAll(){return[...ke(this,ql).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Lue(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Lue(t,n)):r}notify(t){Ia.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ia.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ia.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ql=new WeakMap,Hve),Hl,Bi,K1,Vl,td,Vve,jFe=(Vve=class extends Mke{constructor(t){super();Bt(this,Vl);Bt(this,Hl);Bt(this,Bi);Bt(this,K1);this.mutationId=t.mutationId,xt(this,Bi,t.mutationCache),xt(this,Hl,[]),this.state=t.state||Pke(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ke(this,Hl).includes(t)||(ke(this,Hl).push(t),this.clearGcTimeout(),ke(this,Bi).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){xt(this,Hl,ke(this,Hl).filter(r=>r!==t)),this.scheduleGc(),ke(this,Bi).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ke(this,Hl).length||(this.state.status==="pending"?this.scheduleGc():ke(this,Bi).remove(this))}continue(){var t;return((t=ke(this,K1))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,l,c,u,d,h,f,p,y,m,v,g,b,x,_,w,j,E,C;const r=()=>{cr(this,Vl,td).call(this,{type:"continue"})};xt(this,K1,Ake({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,A)=>{cr(this,Vl,td).call(this,{type:"failed",failureCount:N,error:A})},onPause:()=>{cr(this,Vl,td).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ke(this,Bi).canRun(this)}));const n=this.state.status==="pending",a=!ke(this,K1).canStart();try{if(n)r();else{cr(this,Vl,td).call(this,{type:"pending",variables:t,isPaused:a}),await((o=(s=ke(this,Bi).config).onMutate)==null?void 0:o.call(s,t,this));const A=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));A!==this.state.context&&cr(this,Vl,td).call(this,{type:"pending",context:A,variables:t,isPaused:a})}const N=await ke(this,K1).start();return await((d=(u=ke(this,Bi).config).onSuccess)==null?void 0:d.call(u,N,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,N,t,this.state.context)),await((y=(p=ke(this,Bi).config).onSettled)==null?void 0:y.call(p,N,null,this.state.variables,this.state.context,this)),await((v=(m=this.options).onSettled)==null?void 0:v.call(m,N,null,t,this.state.context)),cr(this,Vl,td).call(this,{type:"success",data:N}),N}catch(N){try{throw await((b=(g=ke(this,Bi).config).onError)==null?void 0:b.call(g,N,t,this.state.context,this)),await((_=(x=this.options).onError)==null?void 0:_.call(x,N,t,this.state.context)),await((j=(w=ke(this,Bi).config).onSettled)==null?void 0:j.call(w,void 0,N,this.state.variables,this.state.context,this)),await((C=(E=this.options).onSettled)==null?void 0:C.call(E,void 0,N,t,this.state.context)),N}finally{cr(this,Vl,td).call(this,{type:"error",error:N})}}finally{ke(this,Bi).runNext(this)}}},Hl=new WeakMap,Bi=new WeakMap,K1=new WeakMap,Vl=new WeakSet,td=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
7776case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ia.batch(()=>{ke(this,Hl).forEach(n=>{n.onMutationUpdate(t)}),ke(this,Bi).notify({mutation:this,type:"updated",action:t})})},Vve);function Pke(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Zc,Xo,k_,Wve,EFe=(Wve=class extends dv{constructor(t={}){super();Bt(this,Zc);Bt(this,Xo);Bt(this,k_);this.config=t,xt(this,Zc,new Set),xt(this,Xo,new Map),xt(this,k_,0)}build(t,r,n){const a=new jFe({mutationCache:this,mutationId:++B4(this,k_)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){ke(this,Zc).add(t);const r=l3(t);if(typeof r=="string"){const n=ke(this,Xo).get(r);n?n.push(t):ke(this,Xo).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ke(this,Zc).delete(t)){const r=l3(t);if(typeof r=="string"){const n=ke(this,Xo).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&ke(this,Xo).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=l3(t);if(typeof r=="string"){const n=ke(this,Xo).get(r),a=n==null?void 0:n.find(s=>s.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=l3(t);if(typeof r=="string"){const a=(n=ke(this,Xo).get(r))==null?void 0:n.find(s=>s!==t&&s.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ia.batch(()=>{ke(this,Zc).forEach(t=>{this.notify({type:"removed",mutation:t})}),ke(this,Zc).clear(),ke(this,Xo).clear()})}getAll(){return Array.from(ke(this,Zc))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Oue(r,n))}findAll(t={}){return this.getAll().filter(r=>Oue(t,r))}notify(t){Ia.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 15,806 bytes, line 7776
7776r.state.isPaused);return Ia.batch(()=>Promise.all(t.map(r=>r.continue().catch(qi))))}},Zc=new WeakMap,Xo=new WeakMap,k_=new WeakMap,Wve);function l3(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Fue(e){return{onFetch:(t,r)=>{var d,h,f,p,y;const n=t.options,a=(f=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let m=!1;const v=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=Eke(t.options,t.fetchOptions),b=async(x,_,w)=>{if(m)return Promise.reject();if(_==null&&x.pages.length)return Promise.resolve(x);const E=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:_,direction:w?"backward":"forward",meta:t.options.meta};return v($),$})(),C=await g(E),{maxPages:N}=t.options,A=w?gFe:mFe;return{pages:A(x.pages,C,N),pageParams:A(x.pageParams,_,N)}};if(a&&s.length){const x=a==="backward",_=x?CFe:$ue,w={pages:s,pageParams:o},j=_(n,w);l=await b(w,j,x)}else{const x=e??s.length;do{const _=c===0?o[0]??n.initialPageParam:$ue(n,l);if(c>0&&_==null)break;l=await b(l,_),c++}while(c<x)}return l};t.options.persister?t.fetchFn=()=>{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function $ue(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function CFe(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Bn,bd,wd,Zy,Qy,kd,Jy,e2,Gve,NFe=(Gve=class{constructor(e={}){Bt(this,Bn);Bt(this,bd);Bt(this,wd);Bt(this,Zy);Bt(this,Qy);Bt(this,kd);Bt(this,Jy);Bt(this,e2);xt(this,Bn,e.queryCache||new SFe),xt(this,bd,e.mutationCache||new EFe),xt(this,wd,e.defaultOptions||{}),xt(this,Zy,new Map),xt(this,Qy,new Map),xt(this,kd,0)}mount(){B4(this,kd)._++,ke(this,kd)===1&&(xt(this,Jy,qae.subscribe(async e=>{e&&(await this.resumePausedMutations(),ke(this,Bn).onFocus())})),xt(this,e2,Dq.subscribe(async e=>{e&&(await this.resumePausedMutations(),ke(this,Bn).onOnline())})))}unmount(){var e,t;B4(this,kd)._--,ke(this,kd)===0&&((e=ke(this,Jy))==null||e.call(this),xt(this,Jy,void 0),(t=ke(this,e2))==null||t.call(this),xt(this,e2,void 0))}isFetching(e){return ke(this,Bn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ke(this,bd).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ke(this,Bn).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=ke(this,Bn).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Kd(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return ke(this,Bn).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=ke(this,Bn).get(n.queryHash),s=a==null?void 0:a.state.data,o=fFe(t,s);if(o!==void 0)return ke(this,Bn).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Ia.batch(()=>ke(this,Bn).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ke(this,Bn).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=ke(this,Bn);Ia.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=ke(this,Bn);return Ia.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ia.batch(()=>ke(this,Bn).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(qi).catch(qi)}invalidateQueries(e,t={}){return Ia.batch(()=>(ke(this,Bn).findAll(e).forEach(r=>{r.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"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Ia.batch(()=>ke(this,Bn).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,r);return r.throwOnError||(s=s.catch(qi)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(qi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=ke(this,Bn).build(this,t);return r.isStaleByTime(Kd(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qi).catch(qi)}fetchInfiniteQuery(e){return e.behavior=Fue(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qi).catch(qi)}ensureInfiniteQueryData(e){return e.behavior=Fue(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dq.isOnline()?ke(this,bd).resumePausedMutations():Promise.resolve()}getQueryCache(){return ke(this,Bn)}getMutationCache(){return ke(this,bd)}getDefaultOptions(){return ke(this,wd)}setDefaultOptions(e){xt(this,wd,e)}setQueryDefaults(e,t){ke(this,Zy).set(k0(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ke(this,Zy).values()],r={};return t.forEach(n=>{hk(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){ke(this,Qy).set(k0(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ke(this,Qy).values()],r={};return t.forEach(n=>{hk(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ke(this,wd).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=zae(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Uae&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ke(this,wd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ke(this,Bn).clear(),ke(this,bd).clear()}},Bn=new WeakMap,bd=new WeakMap,wd=new WeakMap,Zy=new WeakMap,Qy=new WeakMap,kd=new WeakMap,Jy=new WeakMap,e2=new WeakMap,Gve),is,kr,__,zi,Y1,t2,_d,Sd,S_,r2,n2,X1,Z1,jd,a2,zr,fb,nee,aee,iee,see,oee,lee,cee,Lke,Kve,TFe=(Kve=class extends dv{constructor(t,r){super();Bt(this,zr);Bt(this,is);Bt(this,kr);Bt(this,__);Bt(this,zi);Bt(this,Y1);Bt(this,t2);Bt(this,_d);Bt(this,Sd);Bt(this,S_);Bt(this,r2);Bt(this,n2);Bt(this,X1);Bt(this,Z1);Bt(this,jd);Bt(this,a2,new Set);this.options=r,xt(this,is,t),xt(this,Sd,null),xt(this,_d,ree()),this.options.experimental_prefetchInRender||ke(this,_d).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ke(this,kr).addObserver(this),Bue(ke(this,kr),this.options)?cr(this,zr,fb).call(this):this.updateResult(),cr(this,zr,see).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return uee(ke(this,kr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return uee(ke(this,kr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,cr(this,zr,oee).call(this),cr(this,zr,lee).call(this),ke(this,kr).removeObserver(this)}setOptions(t){const r=this.options,n=ke(this,kr);if(this.options=ke(this,is).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof oo(this.options.enabled,ke(this,kr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");cr(this,zr,cee).call(this),ke(this,kr).setOptions(this.options),r._defaulted&&!Rq(this.options,r)&&ke(this,is).getQueryCache().notify({type:"observerOptionsUpdated",query:ke(this,kr),observer:this});const a=this.hasListeners();a&&zue(ke(this,kr),n,this.options,r)&&cr(this,zr,fb).call(this),this.updateResult(),a&&(ke(this,kr)!==n||oo(this.options.enabled,ke(this,kr))!==oo(r.enabled,ke(this,kr))||Kd(this.options.staleTime,ke(this,kr))!==Kd(r.staleTime,ke(this,kr)))&&cr(this,zr,nee).call(this);const s=cr(this,zr,aee).call(this);a&&(ke(this,kr)!==n||oo(this.options.enabled,ke(this,kr))!==oo(r.enabled,ke(this,kr))||s!==ke(this,jd))&&cr(this,zr,iee).call(this,s)}getOptimisticResult(t){const r=ke(this,is).getQueryCache().build(ke(this,is),t),n=this.createResult(r,t);return MFe(this,n)&&(xt(this,zi,n),xt(this,t2,this.options),xt(this,Y1,ke(this,kr).state)),n}getCurrentResult(){return ke(this,zi)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(t){ke(this,a2).add(t)}getCurrentQuery(){return ke(this,kr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=ke(this,is).defaultQueryOptions(t),n=ke(this,is).getQueryCache().build(ke(this,is),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return cr(this,zr,fb).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ke(this,zi)))}createResult(t,r){var N;const n=ke(this,kr),a=this.options,s=ke(this,zi),o=ke(this,Y1),l=ke(this,t2),u=t!==n?t.state:ke(this,__),{state:d}=t;let h={...d},f=!1,p;if(r._optimisticResults){const A=this.hasListeners(),$=!A&&Bue(t,r),T=A&&zue(t,n,r,a);($||T)&&(h={...h,...Ike(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:y,errorUpdatedAt:m,status:v}=h;p=h.data;let g=!1;if(r.placeholderData!==void 0&&p===void 0&&v==="pending"){let A;s!=null&&s.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData)?(A=s.data,g=!0):A=typeof r.placeholderData=="function"?r.placeholderData((N=ke(this,n2))==null?void 0:N.state.data,ke(this,n2)):r.placeholderData,A!==void 0&&(v="success",p=tee(s==null?void 0:s.data,A,r),f=!0)}if(r.select&&p!==void 0&&!g)if(s&&p===(o==null?void 0:o.data)&&r.select===ke(this,S_))p=ke(this,r2);else try{xt(this,S_,r.select),p=r.select(p),p=tee(s==null?void 0:s.data,p,r),xt(this,r2,p),xt(this,Sd,null)}catch(A){xt(this,Sd,A)}ke(this,Sd)&&(y=ke(this,Sd),p=ke(this,r2),m=Date.now(),v="error");const b=h.fetchStatus==="fetching",x=v==="pending",_=v==="error",w=x&&b,j=p!==void 0,C={status:v,fetchStatus:h.fetchStatus,isPending:x,isSuccess:v==="success",isError:_,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:h.dataUpdatedAt,error:y,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:_&&!j,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:_&&j,isStale:Hae(t,r),refetch:this.refetch,promise:ke(this,_d),isEnabled:oo(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const A=F=>{C.status==="error"?F.reject(C.error):C.data!==void 0&&F.resolve(C.data)},$=()=>{const F=xt(this,_d,C.promise=ree());A(F)},T=ke(this,_d);switch(T.status){case"pending":t.queryHash===n.queryHash&&A(T);break;case"fulfilled":(C.status==="error"||C.data!==T.value)&&$();break;case"rejected":(C.status!=="error"||C.error!==T.reason)&&$();break}}return C}updateResult(){const t=ke(this,zi),r=this.createResult(ke(this,kr),this.options);if(xt(this,Y1,ke(this,kr).state),xt(this,t2,this.options),ke(this,Y1).data!==void 0&&xt(this,n2,ke(this,kr)),Rq(r,t))return;xt(this,zi,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!ke(this,a2).size)return!0;const o=new Set(s??ke(this,a2));return this.options.throwOnError&&o.add("error"),Object.keys(ke(this,zi)).some(l=>{const c=l;return ke(this,zi)[c]!==t[c]&&o.has(c)})};cr(this,zr,Lke).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&cr(this,zr,see).call(this)}},is=new WeakMap,kr=new WeakMap,__=new WeakMap,zi=new WeakMap,Y1=new WeakMap,t2=new WeakMap,_d=new WeakMap,Sd=new WeakMap,S_=new WeakMap,r2=new WeakMap,n2=new WeakMap,X1=new WeakMap,Z1=new WeakMap,jd=new WeakMap,a2=new WeakMap,zr=new WeakSet,fb=function(t){cr(this,zr,cee).call(this);let r=ke(this,kr).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(qi)),r},nee=function(){cr(this,zr,oee).call(this);const t=Kd(this.options.staleTime,ke(this,kr));if(w0||ke(this,zi).isStale||!JJ(t))return;const n=Ske(ke(this,zi).dataUpdatedAt,t)+1;xt(this,X1,setTimeout(()=>{ke(this,zi).isStale||this.updateResult()},n))},aee=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ke(this,kr)):this.options.refetchInterval)??!1},iee=function(t){cr(this,zr,lee).call(this),xt(this,jd,t),!(w0||oo(this.options.enabled,ke(this,kr))===!1||!JJ(ke(this,jd))||ke(this,jd)===0)&&xt(this,Z1,setInterval(()=>{(this.options.refetchIntervalInBackground||qae.isFocused())&&cr(this,zr,fb).call(this)},ke(this,jd)))},see=function(){cr(this,zr,nee).call(this),cr(this,zr,iee).call(this,cr(this,zr,aee).call(this))},oee=function(){ke(this,X1)&&(clearTimeout(ke(this,X1)),xt(this,X1,void 0))},lee=function(){ke(this,Z1)&&(clearInterval(ke(this,Z1)),xt(this,Z1,void 0))},cee=function(){const t=ke(this,is).getQueryCache().build(ke(this,is),this.options);if(t===ke(this,kr))return;const r=ke(this,kr);xt(this,kr,t),xt(this,__,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Lke=function(t){Ia.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(ke(this,zi))}),ke(this,is).getQueryCache().notify({query:ke(this,kr),type:"observerResultsUpdated"})})},Kve);function AFe(e,t){return oo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Bue(e,t){return AFe(e,t)||e.state.data!==void 0&&uee(e,t,t.refetchOnMount)}function uee(e,t,r){if(oo(t.enabled,e)!==!1&&Kd(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Hae(e,t)}return!1}function zue(e,t,r,n){return(e!==t||oo(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Hae(e,r)}function Hae(e,t){return oo(t.enabled,e)!==!1&&e.isStaleByTime(Kd(t.staleTime,e))}function MFe(e,t){return!Rq(e.getCurrentResult(),t)}var Ed,Cd,ss,Qc,xu,qU,dee,Yve,IFe=(Yve=class extends dv{constructor(r,n){super();Bt(this,xu);Bt(this,Ed);Bt(this,Cd);Bt(this,ss);Bt(this,Qc);xt(this,Ed,r),this.setOptions(n),this.bindMethods(),cr(this,xu,qU).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=ke(this,Ed).defaultMutationOptions(r),Rq(this.options,n)||ke(this,Ed).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ke(this,ss),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&k0(n.mutationKey)!==k0(this.options.mutationKey)?this.reset():((a=ke(this,ss))==null?void 0:a.state.status)==="pending"&&ke(this,ss).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=ke(this,ss))==null||r.removeObserver(this)}onMutationUpdate(r){cr(this,xu,qU).call(this),cr(this,xu,dee).call(this,r)}getCurrentResult(){return ke(this,Cd)}reset(){var r;(r=ke(this,ss))==null||r.removeObserver(this),xt(this,ss,void 0),cr(this,xu,qU).call(this),cr(this,xu,dee).call(this)}mutate(r,n){var a;return xt(this,Qc,n),(a=ke(this,ss))==null||a.removeObserver(this),xt(this,ss,ke(this,Ed).getMutationCache().build(ke(this,Ed),this.options)),ke(this,ss).addObserver(this),
7776ke(this,ss).execute(r)}},Ed=new WeakMap,Cd=new WeakMap,ss=new WeakMap,Qc=new WeakMap,xu=new WeakSet,qU=function(){var n;const r=((n=ke(this,ss))==null?void 0:n.state)??Pke();xt(this,Cd,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},dee=function(r){Ia.batch(()=>{var n,a,s,o,l,c,u,d;if(ke(this,Qc)&&this.hasListeners()){const h=ke(this,Cd).variables,f=ke(this,Cd).context;(r==null?void 0:r.type)==="success"?((a=(n=ke(this,Qc)).onSuccess)==null||a.call(n,r.data,h,f),(o=(s=ke(this,Qc)).onSettled)==null||o.call(s,r.data,null,h,f)):(r==null?void 0:r.type)==="error"&&((c=(l=ke(this,Qc)).onError)==null||c.call(l,r.error,h,f),(d=(u=ke(this,Qc)).onSettled)==null||d.call(u,void 0,r.error,h,f))}this.listeners.forEach(h=>{h(ke(this,Cd))})})},Yve),Oke=k.createContext(void 0),El=e=>{const t=k.useContext(Oke);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PFe=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),i.jsx(Oke.Provider,{value:e,children:t})),Rke=k.createContext(!1),LFe=()=>k.useContext(Rke);Rke.Provider;function OFe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var RFe=k.createContext(OFe()),DFe=()=>k.useContext(RFe),FFe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},$Fe=e=>{k.useEffect(()=>{e.clearReset()},[e])},BFe=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||Cke(r,[e.error,n])),zFe=e=>{if(e.suspense){const t=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>t(r(...n)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},UFe=(e,t)=>e.isLoading&&e.isFetching&&!t,qFe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Uue=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function HFe(e,t,r){var h,f,p,y,m;const n=LFe(),a=DFe(),s=El(),o=s.defaultQueryOptions(e);(f=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||f.call(h,o),o._optimisticResults=n?"isRestoring":"optimistic",zFe(o),FFe(o,a),$Fe(a);const l=!s.getQueryCache().get(o.queryHash),[c]=k.useState(()=>new t(s,o)),u=c.getOptimisticResult(o),d=!n&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(v=>{const g=d?c.subscribe(Ia.batchCalls(v)):qi;return c.updateResult(),g},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),k.useEffect(()=>{c.setOptions(o)},[o,c]),qFe(o,u))throw Uue(o,c,a);if(BFe({result:u,errorResetBoundary:a,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw u.error;if((y=(p=s.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||y.call(p,o,u),o.experimental_prefetchInRender&&!w0&&UFe(u,n)){const v=l?Uue(o,c,a):(m=s.getQueryCache().get(o.queryHash))==null?void 0:m.promise;v==null||v.catch(qi).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?u:c.trackResult(u)}function ei(e,t){return HFe(e,TFe)}function rl(e,t){const r=El(),[n]=k.useState(()=>new IFe(r,e));k.useEffect(()=>{n.setOptions(e)},[n,e]);const a=k.useSyncExternalStore(k.useCallback(o=>n.subscribe(Ia.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=k.useCallback((o,l)=>{n.mutate(o,l).catch(qi)},[n]);if(a.error&&Cke(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}/** 7777 * @remix-run/router v1.23.0 7778 * 7779 * Copyright (c) Remix Software Inc. 7780 * 7781 * This source code is licensed under the MIT license found in the 7782 * LICENSE.md file in the root directory of this source tree. 7783 * 7784 * @license MIT 7785 */function fk(){return fk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fk.apply(this,arguments)}var Ad;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ad||(Ad={}));const que="popstate";function VFe(e){e===void 0&&(e={});function t(n,a){let{pathname:s,search:o,hash:l}=n.location;return hee("",{pathname:s,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
vendor: 4,679 bytes, line 7785
7785function r(n,a){return typeof a=="string"?a:Fq(a)}return GFe(t,r,null,e)}function ta(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dke(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WFe(){return Math.random().toString(36).substr(2,8)}function Hue(e,t){return{usr:e.state,key:e.key,idx:t}}function hee(e,t,r,n){return r===void 0&&(r=null),fk({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hv(t):t,{state:r,key:t&&t.key||n||WFe()})}function Fq(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function hv(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function GFe(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:s=!1}=n,o=a.history,l=Ad.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(fk({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){l=Ad.Pop;let v=d(),g=v==null?null:v-u;u=v,c&&c({action:l,location:m.location,delta:g})}function f(v,g){l=Ad.Push;let b=hee(m.location,v,g);u=d()+1;let x=Hue(b,u),_=m.createHref(b);try{o.pushState(x,"",_)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(_)}s&&c&&c({action:l,location:m.location,delta:1})}function p(v,g){l=Ad.Replace;let b=hee(m.location,v,g);u=d();let x=Hue(b,u),_=m.createHref(b);o.replaceState(x,"",_),s&&c&&c({action:l,location:m.location,delta:0})}function y(v){let g=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof v=="string"?v:Fq(v);return b=b.replace(/ $/,"%20"),ta(g,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,g)}let m={get action(){return l},get location(){return e(a,o)},listen(v){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(que,h),c=v,()=>{a.removeEventListener(que,h),c=null}},createHref(v){return t(a,v)},createURL:y,encodeLocation(v){let g=y(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(v){return o.go(v)}};return m}var Vue;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vue||(Vue={}));function KFe(e,t,r){return r===void 0&&(r="/"),YFe(e,t,r,!1)}function YFe(e,t,r,n){let a=typeof t=="string"?hv(t):t,s=Vae(a.pathname||"/",r);if(s==null)return null;let o=Fke(e);XFe(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=o$e(s);l=i$e(o[c],u,n)}return l}function Fke(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(s,o,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};c.relativePath.startsWith("/")&&(ta(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=Yd([n,c.relativePath]),d=r.concat(c);s.children&&s.children.length>0&&(ta(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Fke(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:n$e(u,s.index),routesMeta:d})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))a(s,o);else for(let c of $ke(s.path))a(s,o,c)}),t}function $ke(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return a?[s,""]:[s];let o=$ke(n.join("/")),l=[];return l.push(...o.map(c=>c===""?s:[s,c].join("/"))),a&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function XFe(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:a$e(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const ZFe=/^:[\w-]+$/,QFe=3,JFe=2,e$e=1,t$e=10,r$e=-2,Wue=e=>e==="*";function n$e(e,t){let r=e.split("/"),n=r.length;return r.some(Wue)&&(n+=r$e),t&&(n+=JFe),r.filter(a=>!Wue(a)).reduce((a,s)=>a+(ZFe.test(s)?QFe:s===""?e$e:t$e),n)}function a$e(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function i$e(e,t,r){let{routesMeta:n}=e,a={},s="/",o=[];for(let l=0;l<n.length;++l){let c=n[l],u=l===n.length-1,d=s==="/"?t:t.slice(s.length)||"/",h=Gue({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!h&&u&&r&&!n[n.length-1].route.index&&(h=Gue({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;
vendor: 9,323 bytes, lines 7785-7794
7785Object.assign(a,h.params),o.push({params:a,pathname:Yd([s,h.pathname]),pathnameBase:d$e(Yd([s,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(s=Yd([s,h.pathnameBase]))}return o}function Gue(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=s$e(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let s=a[0],o=s.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((u,d,h)=>{let{paramName:f,isOptional:p}=d;if(f==="*"){let m=l[h]||"";o=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const y=l[h];return p&&!y?u[f]=void 0:u[f]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function s$e(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Dke(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 n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function o$e(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dke(!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 ("+t+").")),e}}function Vae(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function l$e(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?hv(e):e;return{pathname:r?r.startsWith("/")?r:c$e(r,t):t,search:h$e(n),hash:f$e(a)}}function c$e(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function cY(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function u$e(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Wae(e,t){let r=u$e(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Gae(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=hv(e):(a=fk({},e),ta(!a.pathname||!a.pathname.includes("?"),cY("?","pathname","search",a)),ta(!a.pathname||!a.pathname.includes("#"),cY("#","pathname","hash",a)),ta(!a.search||!a.search.includes("#"),cY("#","search","hash",a)));let s=e===""||a.pathname==="",o=s?"/":a.pathname,l;if(o==null)l=r;else{let h=t.length-1;if(!n&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;a.pathname=f.join("/")}l=h>=0?t[h]:"/"}let c=l$e(a,l),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Yd=e=>e.join("/").replace(/\/\/+/g,"/"),d$e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),h$e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,f$e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function p$e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Bke=["post","put","patch","delete"];new Set(Bke);const m$e=["get",...Bke];new Set(m$e);/** 7786 * React Router v6.30.1 7787 * 7788 * Copyright (c) Remix Software Inc. 7789 * 7790 * This source code is licensed under the MIT license found in the 7791 * LICENSE.md file in the root directory of this source tree. 7792 * 7793 * @license MIT 7794 */function pk(){return pk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pk.apply(this,arguments)}const Kae=k.createContext(null),g$e=k.createContext(null),gh=k.createContext(null),uW=k.createContext(null),Lu=k.createContext({outlet:null,matches:[],isDataRoute:!1}),zke=k.createContext(null);function y$e(e,t){let{relative:r}=t===void 0?{}:t;fv()||ta(!1);let{basename:n,navigator:a}=k.useContext(gh),{hash:s,pathname:o,search:l}=qke(e,{relative:r}),c=o;return n!=="/"&&(c=o==="/"?n:Yd([n,o])),a.createHref({pathname:c,search:l,hash:s})}function fv(){return k.useContext(uW)!=null}function wa(){return fv()||ta(!1),k.useContext(uW).location}function Uke(e){k.useContext(gh).static||k.useLayoutEffect(e)}function wt(){let{isDataRoute:e}=k.useContext(Lu);return e?A$e():v$e()}function v$e(){fv()||ta(!1);let e=k.useContext(Kae),{basename:t,future:r,navigator:n}=k.useContext(gh),{matches:a}=k.useContext(Lu),{pathname:s}=wa(),o=JSON.stringify(Wae(a,r.v7_relativeSplatPath)),l=k.useRef(!1);return Uke(()=>{l.current=!0}),k.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let h=Gae(u,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Yd([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,o,s,e])}function Ou(){let{matches:e}=k.useContext(Lu),t=e[e.length-1];return t?t.params:{}}function qke(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=k.useContext(gh),{matches:a}=k.useContext(Lu),{pathname:s}=wa(),o=JSON.stringify(Wae(a,n.v7_relativeSplatPath));return k.useMemo(()=>Gae(e,JSON.parse(o),s,r==="path"),[e,o,s,r])}function x$e(e,t){return b$e(e,t)}function b$e(e,t,r,n){fv()||ta(!1);let{navigator:a}=k.useContext(gh),{matches:s}=k.useContext(Lu),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=wa(),d;if(t){var h;let v=typeof t=="string"?hv(t):t;c==="/"||(h=v.pathname)!=null&&h.startsWith(c)||ta(!1),d=v}else d=u;let f=d.pathname||"/",p=f;if(c!=="/"){let v=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let y=KFe(e,{pathname:p}),m=j$e(y&&y.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Yd([c,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:Yd([c,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),s,r,n);return t&&m?k.createElement(uW.Provider,{value:{location:pk({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ad.Pop}},m):m}function w$e(){let e=T$e(),t=p$e(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),r?k.createElement("pre",{style:a},r):null,null)}const k$e=k.createElement(w$e,null);class _$e extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?k.createElement(Lu.Provider,{value:this.props.routeContext},k.createElement(zke.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function S$e(e){let{routeContext:t,match:r,children:n}=e,a=k.useContext(Kae);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),k.createElement(Lu.Provider,{value:t},n)}function j$e(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,l=(a=r)==null?void 0:a.errors;if(l!=null){let d=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||ta(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:p}=r,y=h.route.loader&&f[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||y){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,f)=>{let p,y=!1,m=null,v=null;r&&(p=l&&h.route.id?l[h.route.id]:void 0,m=h.route.errorElement||k$e,c&&(u<0&&f===0?(y=!0,v=null):u===f&&(y=!0,v=h.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,f+1)),b=()=>{let x;return p?x=m:y?x=v:h.route.Component?x=k.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,k.createElement(S$e,{match:h,routeC
7794ontext:{outlet:d,matches:g,isDataRoute:r!=null},children:x})};return r&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?k.createElement(_$e,{location:r.location,revalidation:r.revalidation,component:m,error:p,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}var Hke=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Hke||{}),$q=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}($q||{});function E$e(e){let t=k.useContext(Kae);return t||ta(!1),t}function C$e(e){let t=k.useContext(g$e);return t||ta(!1),t}function N$e(e){let t=k.useContext(Lu);return t||ta(!1),t}function Vke(e){let t=N$e(),r=t.matches[t.matches.length-1];return r.route.id||ta(!1),r.route.id}function T$e(){var e;let t=k.useContext(zke),r=C$e($q.UseRouteError),n=Vke($q.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function A$e(){let{router:e}=E$e(Hke.UseNavigateStable),t=Vke($q.UseNavigateStable),r=k.useRef(!1);return Uke(()=>{r.current=!0}),k.useCallback(function(a,s){s===void 0&&(s={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,pk({fromRouteId:t},s)))},[e,t])}function M$e(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ty(e){let{to:t,replace:r,state:n,relative:a}=e;fv()||ta(!1);let{future:s,static:o}=k.useContext(gh),{matches:l}=k.useContext(Lu),{pathname:c}=wa(),u=wt(),d=Gae(t,Wae(l,s.v7_relativeSplatPath),c,a==="path"),h=JSON.stringify(d);return k.useEffect(()=>u(JSON.parse(h),{replace:r,state:n,relative:a}),[u,h,a,r,n]),null}function Ze(e){ta(!1)}function I$e(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Ad.Pop,navigator:s,static:o=!1,future:l}=e;fv()&&ta(!1);let c=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:c,navigator:s,static:o,future:pk({v7_relativeSplatPath:!1},l)}),[c,l,s,o]);typeof n=="string"&&(n=hv(n));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:y="default"}=n,m=k.useMemo(()=>{let v=Vae(d,c);return v==null?null:{location:{pathname:v,search:h,hash:f,state:p,key:y},navigationType:a}},[c,d,h,f,p,y,a]);return m==null?null:k.createElement(gh.Provider,{value:u},k.createElement(uW.Provider,{children:r,value:m}))}function P$e(e){let{children:t,location:r}=e;return x$e(fee(t),r)}new Promise(()=>{});function fee(e,t){t===void 0&&(t=[]);let r=[];return k.Children.forEach(e,(n,a)=>{if(!k.isValidElement(n))return;let s=[...t,a];if(n.type===k.Fragment){r.push.apply(r,fee(n.props.children,s));return}n.type!==Ze&&ta(!1),!n.props.index||!n.props.children||ta(!1);let o={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=fee(n.props.children,s)),r.push(o)}),r}/** 7795 * React Router DOM v6.30.1 7796 * 7797 * Copyright (c) Remix Software Inc. 7798 * 7799 * This source code is licensed under the MIT license found in the 7800 * LICENSE.md file in the root directory of this source tree. 7801 * 7802 * @license MIT 7803 */function pee(){return pee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pee.apply(this,arguments)}function L$e(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s<n.length;s++)a=n[s],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function O$e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function R$e(e,t){return e.button===0&&(!t||t==="_self")&&!O$e(e)}function mee(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function D$e(e,t){let r=mee(e);return t&&t.forEach((n,a)=>
7803{r.has(a)||t.getAll(a).forEach(s=>{r.append(a,s)})}),r}const F$e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],$$e="6";try{window.__reactRouterVersion=$$e}catch{}const B$e="startTransition",Kue=Pne[B$e];function z$e(e){let{basename:t,children:r,future:n,window:a}=e,s=k.useRef();s.current==null&&(s.current=VFe({window:a,v5Compat:!0}));let o=s.current,[l,c]=k.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},d=k.useCallback(h=>{u&&Kue?Kue(()=>c(h)):c(h)},[c,u]);return k.useLayoutEffect(()=>o.listen(d),[o,d]),k.useEffect(()=>M$e(n),[n]),k.createElement(I$e,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}const U$e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",q$e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,or=k.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:s,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}=t,f=L$e(t,F$e),{basename:p}=k.useContext(gh),y,m=!1;if(typeof u=="string"&&q$e.test(u)&&(y=u,U$e))try{let x=new URL(window.location.href),_=u.startsWith("//")?new URL(x.protocol+u):new URL(u),w=Vae(_.pathname,p);_.origin===x.origin&&w!=null?u=w+_.search+_.hash:m=!0}catch{}let v=y$e(u,{relative:a}),g=H$e(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:a,viewTransition:h});function b(x){n&&n(x),x.defaultPrevented||g(x)}return k.createElement("a",pee({},f,{href:y||v,onClick:m||s?n:b,ref:r,target:c}))});var Yue;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Yue||(Yue={}));var Xue;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Xue||(Xue={}));function H$e(e,t){let{target:r,replace:n,state:a,preventScrollReset:s,relative:o,viewTransition:l}=t===void 0?{}:t,c=wt(),u=wa(),d=qke(e,{relative:o});return k.useCallback(h=>{if(R$e(h,r)){h.preventDefault();let f=n!==void 0?n:Fq(u)===Fq(d);c(e,{replace:f,state:a,preventScrollReset:s,relative:o,viewTransition:l})}},[u,c,d,n,a,r,e,s,o,l])}function ka(e){let t=k.useRef(mee(e)),r=k.useRef(!1),n=wa(),a=k.useMemo(()=>D$e(n.search,r.current?null:t.current),[n.search]),s=wt(),o=k.useCallback((l,c)=>{const u=mee(typeof l=="function"?l(a):l);r.current=!0,s("?"+u,c)},[s,a]);return[a,o]}const Wke=k.createContext(void 0),V$e=({children:e})=>{const[t,r]=k.useState(null),[n,a]=k.useState(null),[s,o]=k.useState(null),[l,c]=k.useState(null),[u,d]=k.useState(null),[h,f]=k.useState(null),[p,y]=k.useState(null),[m,v]=k.useState(0),[g,b]=k.useState(0),[x,_]=k.useState(!1),[w,j]=k.useState(null),E="kibbi_book_club_flow",C=24*60*60*1e3,[N,A]=k.useState(()=>{const V=localStorage.getItem(E);if(!V)return{active:!1,targetId:null};try{const{ts:ne,targetId:P}=JSON.parse(V);return Date.now()-ne>C?(localStorage.removeItem(E),{active:!1,targetId:null}):{active:!0,targetId:P||null}}catch{return localStorage.removeItem(E),{active:!1,targetId:null}}}),$=N.active,T=N.targetId,F=k.useCallback(V=>{A(V?{active:!0,targetId:null}:{active:!1,targetId:null}),V?localStorage.setItem(E,JSON.stringify({ts:Date.now()})):localStorage.removeItem(E)},[]),M=k.useRef(t),z=k.useRef(N);z.current=N;const Y=k.useCallback(V=>{const ne=M.current;M.current=V,r(V);const P=z.current,R=!P.active&&(()=>{try{const ae=localStorage.getItem(E);if(!ae)return!1;const D=JSON.parse(ae);return!D.targetId&&Date.now()-D.ts<C}catch{return!1}})(),H=P.active||R,re=P.targetId;if(V&&!ne&&H&&!re){const ae={ts:Date.now(),targetId:V};localStorage.setItem(E,JSON.stringify(ae)),A({active:!0,targetId:V})}},[]),W=k.useRef(null),ee=k.useCallback((V,ne)=>{if(W.current===V){console.log("[StoryContext] Already tracking job, skipping restart:",V);return}console.log("[StoryContext] Starting job tracking:",V),W.current=V,f(V),y(ne),v(0),b(0),_(!0),j(Date.now())},[]),Z=k.useCallback(()=>{console.log("[StoryContext] Stopping job tracking"),W.current=null,f(null),y(null),v(0),b(0),_(!1),j(null)},[]);return i.jsx(Wke.Provider,{value:{storyId:t,setStoryId:Y,ageRange:n,setAgeRange:a,language:s,setLanguage:o,readingLevel:l,setReadingLevel:c,illustrationStyle:u,setIllustrationStyle:d,activeJobId:h,setActiveJobId:f,activeJobStoryId:p,setActiveJobStoryId:y,jobProgress:m,setJobProgress:v,jobStage:g,setJobStage:b,isGenerating:x,setIsGenerating:_,jobStartTime:w,setJobStartTime:j,startJobTracking:ee,stopJobTracking:Z,bookClubFlow:$,setBookClubFlow:F,bookClubTargetId:T},children:e})},Zs=()=>{const e=k.useContext(Wke);if(e===void 0)throw new Error("useStory must be used within a StoryProvi
7803der");return e},W$e="modulepreload",G$e=function(e){return"/"+e},Zue={},L_=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(r.map(c=>{if(c=G$e(c),c in Zue)return;Zue[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":W$e,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return a.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})},K$e=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>L_(async()=>{const{default:n}=await Promise.resolve().then(()=>pv);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)};class Yae extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class Que extends Yae{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Jue extends Yae{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class ede extends Yae{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var gee;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(gee||(gee={}));var Y$e=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};class X$e{constructor(t,{headers:r={},customFetch:n,region:a=gee.Any}={}){this.url=t,this.headers=r,this.region=a,this.fetch=K$e(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return Y$e(this,arguments,void 0,function*(r,n={}){var a;try{const{headers:s,method:o,body:l,signal:c}=n;let u={},{region:d}=n;d||(d=this.region);const h=new URL(`${this.url}/${r}`);d&&d!=="any"&&(u["x-region"]=d,h.searchParams.set("forceFunctionRegion",d));let f;l&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&l instanceof Blob||l instanceof ArrayBuffer?(u["Content-Type"]="application/octet-stream",f=l):typeof l=="string"?(u["Content-Type"]="text/plain",f=l):typeof FormData<"u"&&l instanceof FormData?f=l:(u["Content-Type"]="application/json",f=JSON.stringify(l)));const p=yield this.fetch(h.toString(),{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},u),this.headers),s),body:f,signal:c}).catch(g=>{throw g.name==="AbortError"?g:new Que(g)}),y=p.headers.get("x-relay-error");if(y&&y==="true")throw new Jue(p);if(!p.ok)throw new ede(p);let m=((a=p.headers.get("Content-Type"))!==null&&a!==void 0?a:"text/plain").split(";")[0].trim(),v;return m==="application/json"?v=yield p.json():m==="application/octet-stream"?v=yield p.blob():m==="text/event-stream"?v=p:m==="multipart/form-data"?v=yield p.formData():v=yield p.text(),{data:v,error:null,response:p}}catch(s){return s instanceof Error&&s.name==="AbortError"?{data:null,error:new Que(s)}:{data:null,error:s,response:s instanceof ede||s instanceof Jue?s.context:void 0}}})}}var ds={},Xae={},dW={},O_={},hW={},fW={},Z$e=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},p2=Z$e();
7803const Q$e=p2.fetch,Gke=p2.fetch.bind(p2),Kke=p2.Headers,J$e=p2.Request,eBe=p2.Response,pv=Object.freeze(Object.defineProperty({__proto__:null,Headers:Kke,Request:J$e,Response:eBe,default:Gke,fetch:Q$e},Symbol.toStringTag,{value:"Module"})),tBe=WPe(pv);var pW={};Object.defineProperty(pW,"__esModule",{value:!0});let rBe=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}};pW.default=rBe;var Yke=fa&&fa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fW,"__esModule",{value:!0});const nBe=Yke(tBe),aBe=Yke(pW);let iBe=class{constructor(t){var r,n;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(r=t.shouldThrowOnError)!==null&&r!==void 0?r:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=nBe.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,r){return this.headers=new Headers(this.headers),this.headers.set(t,r),this}then(t,r){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let a=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var o,l,c,u;let d=null,h=null,f=null,p=s.status,y=s.statusText;if(s.ok){if(this.method!=="HEAD"){const b=await s.text();b===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?h=b:h=JSON.parse(b))}const v=(l=this.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),g=(c=s.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");v&&g&&g.length>1&&(f=parseInt(g[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(h)&&(h.length>1?(d={code:"PGRST116",details:`Results contain ${h.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},h=null,f=null,p=406,y="Not Acceptable"):h.length===1?h=h[0]:h=null)}else{const v=await s.text();try{d=JSON.parse(v),Array.isArray(d)&&s.status===404&&(h=[],d=null,p=200,y="OK")}catch{s.status===404&&v===""?(p=204,y="No Content"):d={message:v}}if(d&&this.isMaybeSingle&&(!((u=d==null?void 0:d.details)===null||u===void 0)&&u.includes("0 rows"))&&(d=null,p=200,y="OK"),d&&this.shouldThrowOnError)throw new aBe.default(d)}return{error:d,data:h,count:f,status:p,statusText:y}});return this.shouldThrowOnError||(a=a.catch(s=>{var o,l,c;return{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(l=s==null?void 0:s.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(c=s==null?void 0:s.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),a.then(t,r)}returns(){return this}overrideTypes(){return this}};fW.default=iBe;var sBe=fa&&fa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
7803Object.defineProperty(hW,"__esModule",{value:!0});const oBe=sBe(fW);let lBe=class extends oBe.default{select(t){let r=!1;const n=(t??"*").split("").map(a=>/\s/.test(a)&&!r?"":(a==='"'&&(r=!r),a)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:r=!0,nullsFirst:n,foreignTable:a,referencedTable:s=a}={}){const o=s?`${s}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${t}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:r,referencedTable:n=r}={}){const a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(a,`${t}`),this}range(t,r,{foreignTable:n,referencedTable:a=n}={}){const s=typeof a>"u"?"offset":`${a}.offset`,o=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(o,`${r-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:t=!1,verbose:r=!1,settings:n=!1,buffers:a=!1,wal:s=!1,format:o="text"}={}){var l;const c=[t?"analyze":null,r?"verbose":null,n?"settings":null,a?"buffers":null,s?"wal":null].filter(Boolean).join("|"),u=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${u}"; options=${c};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};hW.default=lBe;var cBe=fa&&fa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(O_,"__esModule",{value:!0});const uBe=cBe(hW);let dBe=class extends uBe.default{eq(t,r){return this.url.searchParams.append(t,`eq.${r}`),this}neq(t,r){return this.url.searchParams.append(t,`neq.${r}`),this}gt(t,r){return this.url.searchParams.append(t,`gt.${r}`),this}gte(t,r){return this.url.searchParams.append(t,`gte.${r}`),this}lt(t,r){return this.url.searchParams.append(t,`lt.${r}`),this}lte(t,r){return this.url.searchParams.append(t,`lte.${r}`),this}like(t,r){return this.url.searchParams.append(t,`like.${r}`),this}likeAllOf(t,r){return this.url.searchParams.append(t,`like(all).{${r.join(",")}}`),this}likeAnyOf(t,r){return this.url.searchParams.append(t,`like(any).{${r.join(",")}}`),this}ilike(t,r){return this.url.searchParams.append(t,`ilike.${r}`),this}ilikeAllOf(t,r){return this.url.searchParams.append(t,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(t,r){return this.url.searchParams.append(t,`ilike(any).{${r.join(",")}}`),this}is(t,r){return this.url.searchParams.append(t,`is.${r}`),this}in(t,r){const n=Array.from(new Set(r)).map(a=>typeof a=="string"&&new RegExp("[,()]").test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}contains(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cs.{${r.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(r)}`),this}containedBy(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cd.{${r.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(r)}`),this}rangeGt(t,r){return this.url.searchParams.append(t,`sr.${r}`),this}rangeGte(t,r){return this.url.searchParams.append(t,`nxl.${r}`),this}rangeLt(t,r){return this.url.searchParams.append(t,`sl.${r}`),this}rangeLte(t,r){return this.url.searchParams.append(t,`nxr.${r}`),this}rangeAdjacent(t,r){return this.url.searchParams.append(t,`adj.${r}`),this}overlaps(t,r){return typeof r=="string"?this.url.searchParams.append(t,`ov.${r}`):this.url.searchParams.append(t,`ov.{${r.join(",")}}`),this}textSearch(t,r,{config:n,type:a}={}){let s="";a==="plain"?s="pl":a==="phrase"?s="ph":a==="websearch"&&(s="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${s}fts${o}.${r}`),this}match(t){return Object.entries(t).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(t,r,n){return this.url.searchParams.append(t,`not.${r}.${n}`),this}or(t,{foreignTable:r,referencedTable:n=r}={}){const a=n?`${n}.or`:"or";return this.url.searchParams.append(a,`(${t})`),this}filter(t,r,n){return this.url.searchParams.append(t,`${r}.${n}`),this}};O_.default=dBe;
7803var hBe=fa&&fa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dW,"__esModule",{value:!0});const Sx=hBe(O_);let fBe=class{constructor(t,{headers:r={},schema:n,fetch:a}){this.url=t,this.headers=new Headers(r),this.schema=n,this.fetch=a}select(t,r){const{head:n=!1,count:a}=r??{},s=n?"HEAD":"GET";let o=!1;const l=(t??"*").split("").map(c=>/\s/.test(c)&&!o?"":(c==='"'&&(o=!o),c)).join("");return this.url.searchParams.set("select",l),a&&this.headers.append("Prefer",`count=${a}`),new Sx.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:r,defaultToNull:n=!0}={}){var a;const s="POST";if(r&&this.headers.append("Prefer",`count=${r}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const o=t.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(o.length>0){const l=[...new Set(o)].map(c=>`"${c}"`);this.url.searchParams.set("columns",l.join(","))}}return new Sx.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}upsert(t,{onConflict:r,ignoreDuplicates:n=!1,count:a,defaultToNull:s=!0}={}){var o;const l="POST";if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),r!==void 0&&this.url.searchParams.set("on_conflict",r),a&&this.headers.append("Prefer",`count=${a}`),s||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const c=t.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new Sx.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(t,{count:r}={}){var n;const a="PATCH";return r&&this.headers.append("Prefer",`count=${r}`),new Sx.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:t}={}){var r;const n="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new Sx.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}};dW.default=fBe;var Xke=fa&&fa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xae,"__esModule",{value:!0});const pBe=Xke(dW),mBe=Xke(O_);let gBe=class Zke{constructor(t,{headers:r={},schema:n,fetch:a}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=a}from(t){const r=new URL(`${this.url}/${t}`);return new pBe.default(r,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Zke(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:a=!1,count:s}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let u;n||a?(l=n?"HEAD":"GET",Object.entries(r).filter(([h,f])=>f!==void 0).map(([h,f])=>[h,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([h,f])=>{c.searchParams.append(h,f)})):(l="POST",u=r);const d=new Headers(this.headers);return s&&d.set("Prefer",`count=${s}`),new mBe.default({method:l,url:c,headers:d,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};Xae.default=gBe;var mv=fa&&fa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ds,"__esModule",{value:!0});ds.PostgrestError=ds.PostgrestBuilder=ds.PostgrestTransformBuilder=ds.PostgrestFilterBuilder=ds.PostgrestQueryBuilder=ds.PostgrestClient=void 0;const Qke=mv(Xae);ds.PostgrestClient=Qke.default;const Jke=mv(dW);ds.PostgrestQueryBuilder=Jke.default;const e_e=mv(O_);ds.PostgrestFilterBuilder=e_e.default;const t_e=mv(hW);ds.PostgrestTransformBuilder=t_e.default;const r_e=mv(fW);ds.PostgrestBuilder=r_e.default;const n_e=mv(pW);ds.PostgrestError=n_e.default;var yBe=ds.default={PostgrestClient:Qke.default,PostgrestQueryBuilder:Jke.default,PostgrestFilterBuilder:e_e.default,PostgrestTransformBuilder:t_e.default,PostgrestBuilder:r_e.default,PostgrestError:n_e.default};const{PostgrestClient:vBe,PostgrestQueryBuilder:mWt,PostgrestFilterBuilder:gWt,PostgrestTransformBuilder:yWt,PostgrestBuilder:vWt,PostgrestError:xWt}=yBe;class xBe{static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,a=parseInt(n.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 7804import ws from "ws" 7805new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 7806 7807Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}
7807const bBe="2.75.1",wBe=`realtime-js/${bBe}`,kBe="1.0.0",yee=1e4,_Be=1e3,SBe=100;var _w;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(_w||(_w={}));var Ta;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Ta||(Ta={}));var Qo;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Qo||(Qo={}));var vee;(function(e){e.websocket="websocket"})(vee||(vee={}));var E1;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(E1||(E1={}));class jBe{constructor(){this.HEADER_LENGTH=1}decode(t,r){return t.constructor===ArrayBuffer?r(this._binaryDecode(t)):r(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const r=new DataView(t),n=new TextDecoder;return this._decodeBroadcast(t,r,n)}_decodeBroadcast(t,r,n){const a=r.getUint8(1),s=r.getUint8(2);let o=this.HEADER_LENGTH+2;const l=n.decode(t.slice(o,o+a));o=o+a;const c=n.decode(t.slice(o,o+s));o=o+s;const u=JSON.parse(n.decode(t.slice(o,t.byteLength)));return{ref:null,topic:l,event:c,payload:u}}}class a_e{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var on;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(on||(on={}));const tde=(e,t,r={})=>{var n;const a=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((s,o)=>(s[o]=EBe(o,e,t,a),s),{}):{}},EBe=(e,t,r,n)=>{const a=t.find(l=>
vendor: 4,574 bytes, line 7807
7807l.name===e),s=a==null?void 0:a.type,o=r[e];return s&&!n.includes(s)?i_e(s,o):xee(o)},i_e=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return ABe(t,r)}switch(e){case on.bool:return CBe(t);case on.float4:case on.float8:case on.int2:case on.int4:case on.int8:case on.numeric:case on.oid:return NBe(t);case on.json:case on.jsonb:return TBe(t);case on.timestamp:return MBe(t);case on.abstime:case on.date:case on.daterange:case on.int4range:case on.int8range:case on.money:case on.reltime:case on.text:case on.time:case on.timestamptz:case on.timetz:case on.tsrange:case on.tstzrange:return xee(t);default:return xee(t)}},xee=e=>e,CBe=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},NBe=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},TBe=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},ABe=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let s;const o=e.slice(1,r);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(l=>i_e(t,l))}return e},MBe=e=>typeof e=="string"?e.replace(" ","T"):e,s_e=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class uY{constructor(t,r,n={},a=yee){this.channel=t,this.event=r,this.payload=n,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var rde;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(rde||(rde={}));class Sw{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},a=>{const{onJoin:s,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Sw.syncState(this.state,a,s,o),this.pendingDiffs.forEach(c=>{this.state=Sw.syncDiff(this.state,c,s,o)}),this.pendingDiffs=[],l()}),this.channel._on(n.diff,{},a=>{const{onJoin:s,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=Sw.syncDiff(this.state,a,s,o),l())}),this.onJoin((a,s,o)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:s,newPresences:o})}),this.onLeave((a,s,o)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,a){const s=this.cloneDeep(t),o=this.transformState(r),l={},c={};return this.map(s,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const h=s[u];if(h){const f=d.map(v=>v.presence_ref),p=h.map(v=>v.presence_ref),y=d.filter(v=>p.indexOf(v.presence_ref)<0),m=h.filter(v=>f.indexOf(v.presence_ref)<0);y.length>0&&(l[u]=y),m.length>0&&(c[u]=m)}else l[u]=d}),this.syncDiff(s,{joins:l,leaves:c},n,a)}static syncDiff(t,r,n,a){const{joins:s,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),a||(a=()=>{}),this.map(s,(l,c)=>{var u;
7807const d=(u=t[l])!==null&&u!==void 0?u:[];if(t[l]=this.cloneDeep(c),d.length>0){const h=t[l].map(p=>p.presence_ref),f=d.filter(p=>h.indexOf(p.presence_ref)<0);t[l].unshift(...f)}n(l,d,c)}),this.map(o,(l,c)=>{let u=t[l];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),t[l]=u,a(l,u,c),u.length===0&&delete t[l]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const a=t[n];return"metas"in a?r[n]=a.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):r[n]=a,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var nde;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(nde||(nde={}));var jw;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(jw||(jw={}));var qc;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(qc||(qc={}));class Zae{constructor(t,r={config:{}},n){var a,s;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Ta.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new uY(this,Qo.join,this.params,this.timeout),this.rejoinTimer=new a_e(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ta.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ta.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ta.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ta.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ta.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Qo.reply,{},(o,l)=>{this._trigger(this._replyEventName(l),o)}),this.presence=new Sw(this),this.broadcastEndpointURL=s_e(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((s=(a=this.params.config)===null||a===void 0?void 0:a.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,a,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Ta.closed){const{config:{broadcast:o,presence:l,private:c}}=this.params,u=(a=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(p=>p.filter))!==null&&a!==void 0?a:[],d=!!this.bindings[jw.PRESENCE]&&this.bindings[jw.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,h={},f={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t(qc.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t(qc.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:p})=>{var y;if(this.socket.setAuth(),p===void 0){t==null||t(qc.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,v=(y=m==null?void 0:m.length)!==null&&y!==void 0?y:0,g=[];for(let b=0;b<v;b++){const x=m[b],{filter:{event:_,schema:w,table:j,filter:E}}=x,C=p&&p[b];if(C&&C.event===_&&C.schema===w&&C.table===j&&C.filter===E)g.push(Object.assign(Object.assign({},x),{id:C.id}));else{this.unsubscribe(),this.state=Ta.errored,t==null||t(qc.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,t&&t(qc.SUBSCRIBED);return}}).receive("error",p=>{this.state=Ta.errored,t==null||t(qc.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(qc.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===Ta.joined&&t===jw.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,r,n)}async send(t,r={}){var n,a;if(!this._canPush()&&t.type==="broadcast"){const{event:s,payload:o}=t,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((a=u.body)===null||a===void 0?void 0:a.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,l,c;const u=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}
7807unsubscribe(t=this.timeout){this.state=Ta.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Qo.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(a=>{n=new uY(this,Qo.leave,{},t),n.receive("ok",()=>{r(),a("ok")}).receive("timeout",()=>{r(),a("timed out")}).receive("error",()=>{a("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ta.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const a=new AbortController,s=setTimeout(()=>a.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:a.signal}));return clearTimeout(s),o}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new uY(this,t,r,n);return this._canPush()?a.send():this._addToPushBuffer(a),a}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>SBe){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var a,s;const o=t.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=Qo;if(n&&[l,c,u,d].indexOf(o)>=0&&n!==this._joinRef())return;let f=this._onMessage(o,r,n);if(r&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(p=>{var y,m,v;return((y=p.filter)===null||y===void 0?void 0:y.event)==="*"||((v=(m=p.filter)===null||m===void 0?void 0:m.event)===null||v===void 0?void 0:v.toLocaleLowerCase())===o}).map(p=>p.callback(f,n)):(s=this.bindings[o])===null||s===void 0||s.filter(p=>{var y,m,v,g,b,x;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const _=p.id,w=(y=p.filter)===null||y===void 0?void 0:y.event;return _&&((m=r.ids)===null||m===void 0?void 0:m.includes(_))&&(w==="*"||(w==null?void 0:w.toLocaleLowerCase())===((v=r.data)===null||v===void 0?void 0:v.type.toLocaleLowerCase()))}else{const _=(b=(g=p==null?void 0:p.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase();return _==="*"||_===((x=r==null?void 0:r.event)===null||x===void 0?void 0:x.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof f=="object"&&"ids"in f){const y=f.data,{schema:m,table:v,commit_timestamp:g,type:b,errors:x}=y;f=Object.assign(Object.assign({},{schema:m,table:v,commit_timestamp:g,eventType:b,new:{},old:{},errors:x}),this._getPayloadRecords(y))}p.callback(f,n)})}_isClosed(){return this.state===Ta.closed}_isJoined(){return this.state===Ta.joined}_isJoining(){return this.state===Ta.joining}_isLeaving(){return this.state===Ta.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const a=t.toLocaleLowerCase(),s={type:a,filter:r,callback:n};return this.bindings[a]?this.bindings[a].push(s):this.bindings[a]=[s],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(a=>{var s;return!(((s=a.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===n&&Zae.isEqual(a.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Qo.close,{},t)}_onError(t){this._on(Qo.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ta.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=tde(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=tde(t.columns,t.old_record)),r}}const dY=()=>{},c3={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},IBe=[1e3,2e3,5e3,1e4],PBe=1e4,LBe=` 7808 addEventListener("message", (e) => { 7809 if (e.data.event === "start") { 7810 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 7811 } 7812 });`;class OBe{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=yee,this.transport=null,this.heartbeatIntervalMs=c3.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=dY,this.ref=0,this.reconnectTimer=null,this.logger=
7812dY,this.conn=null,this.sendBuffer=[],this.serializer=new jBe,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=a=>{let s;return a?s=a:typeof fetch>"u"?s=(...o)=>L_(async()=>{const{default:l}=await Promise.resolve().then(()=>pv);return{default:l}},void 0).then(({default:l})=>l(...o)).catch(l=>{throw new Error(`Failed to load @supabase/node-fetch: ${l.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):s=fetch,(...o)=>s(...o)},!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${vee.websocket}`,this.httpEndpoint=s_e(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=xBe.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r} 7813 7814To use Realtime in Node.js, you need to provide a WebSocket implementation: 7815 7816Option 1: Use Node.js 22+ which has native WebSocket support 7817Option 2: Install and provide the "ws" package: 7818 7819 npm install ws 7820 7821 import ws from "ws" 7822 const client = new RealtimeClient(url, { 7823 ...options, 7824 transport: ws 7825 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:kBe}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},t?this.conn.close(t,r??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case _w.connecting:return E1.Connecting;case _w.open:return E1.Open;case _w.closing:return E1.Closing;default:return E1.Closed}}isConnected(){return this.connectionState()===E1.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,a=this.getChannels().find(s=>s.topic===n);if(a)return a;{const s=new Zae(`realtime:${t}`,r,this);return this.channels.push(s),s}}push(t){const{topic:r,event:n,payload:a,ref:s}=t,o=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${r} ${n} (${s})`,a),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(_Be,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
7825heduleTimeout()},c3.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:a,payload:s,ref:o}=r,l=o?`(${o})`:"",c=s.status||"";this.log("receive",`${c} ${n} ${a} ${l}`.trim(),s),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(a,s,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
7825heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Qo.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",a=new URLSearchParams(r);return`${t}${n}${a}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([LBe],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r;t?r=t:this.accessToken?r=await this.accessToken():r=this.accessTokenValue,this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const a={access_token:r,version:wBe};r&&n.updateJoinPayload(a),n.joinedOnce&&n._isJoined()&&n._push(Qo.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(r=>{this.log("error",`error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(a){this.log("error",`error in ${t} callback`,a)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new a_e(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},c3.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,a,s,o,l,c,u,d;if(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:yee,this.heartbeatIntervalMs=(a=t==null?void 0:t.heartbeatIntervalMs)!==null&&a!==void 0?a:c3.HEARTBEAT_INTERVAL,this.worker=(s=t==null?void 0:t.worker)!==null&&s!==void 0?s:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=t==null?void 0:t.heartbeatCallback)!==null&&l!==void 0?l:dY,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:h=>IBe[h-1]||PBe,this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(h,f)=>f(JSON.stringify(h)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class Qae extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function ca(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class RBe extends Qae{constructor(t,r,n){super(t),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class bee extends Qae{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}var DBe=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const o_e=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>L_(async()=>{const{default:n}=await Promise.resolve().then(()=>pv);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},FBe=()=>DBe(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield L_(()=>Promise.resolve().then(()=>pv),void 0)).Response:Response}),wee=e=>{if(Array.isArray(e))return e.map(r=>wee(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const a=r.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[a]=wee(n)}),t},$Be=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
7825return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var U0=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const hY=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),BBe=(e,t,r)=>U0(void 0,void 0,void 0,function*(){const n=yield FBe();e instanceof n&&!(r!=null&&r.noResolveJson)?e.json().then(a=>{const s=e.status||500,o=(a==null?void 0:a.statusCode)||s+"";t(new RBe(hY(a),s,o))}).catch(a=>{t(new bee(hY(a),a))}):t(new bee(hY(e),e))}),zBe=(e,t,r,n)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?a:($Be(n)?(a.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),a.body=JSON.stringify(n)):a.body=n,t!=null&&t.duplex&&(a.duplex=t.duplex),Object.assign(Object.assign({},a),r))};function R_(e,t,r,n,a,s){return U0(this,void 0,void 0,function*(){return new Promise((o,l)=>{e(r,zBe(t,n,a,s)).then(c=>{if(!c.ok)throw c;return n!=null&&n.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>BBe(c,l,n))})})}function Bq(e,t,r,n){return U0(this,void 0,void 0,function*(){return R_(e,"GET",t,r,n)})}function Fl(e,t,r,n,a){return U0(this,void 0,void 0,function*(){return R_(e,"POST",t,n,a,r)})}function kee(e,t,r,n,a){return U0(this,void 0,void 0,function*(){return R_(e,"PUT",t,n,a,r)})}function UBe(e,t,r,n){return U0(this,void 0,void 0,function*(){return R_(e,"HEAD",t,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function l_e(e,t,r,n,a){return U0(this,void 0,void 0,function*(){return R_(e,"DELETE",t,n,a,r)})}var qBe=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};class HBe{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r}then(t,r){return this.execute().then(t,r)}execute(){return qBe(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(ca(t))return{data:null,error:t};throw t}})}}var VBe=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})},c_e;class WBe{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r,this[c_e]="BlobDownloadBuilder",this.promise=null}asStream(){return new HBe(this.downloadFn,this.shouldThrowOnError)}then(t,r){return this.getPromise().then(t,r)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return VBe(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(ca(t))return{data:null,error:t};throw t}})}}c_e=Symbol.toStringTag;var es=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const GBe={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},ade={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class KBe{constructor(t,r={},n,a){this.shouldThrowOnError=!1,this.url=t,this.headers=r,this.bucketId=n,this.fetch=o_e(a)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,r,n,a){return es(this,void 0,void 0,function*(){try{let s;const o=Object.assign(Object.assign({},ade),a);let l=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),c&&s.append("metadata",this.encodeMetadata(c)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.append("cacheControl",o.cacheControl),c&&s.append("metadata",this.encodeMetadata(c))):(s=n,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),a!=null&&a.headers&&(l=Object.assign(Object.assign({},l),a.headers));const u=this._removeEmptyFolders(r),d=this._getFinalPath(u),h=yield(t=="PUT"?kee:Fl)(this.fetch,`${this.url}/object/${d}`,s,Object.assign({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:h.Id,fullPath:h.Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(ca(s))return{data:null,error:s};throw s}})}upload(t,r,n){return es(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,a){return es(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(t),o=this._getFinalPath(s),l=new URL(this.url+`/object/upload/sign/${o}`);l.searchParams.set("token",r);try{let c;const u=Object.assign({upsert:ade.upsert},a),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.append("cacheControl",u.cacheControl)):(c=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const h=yield kee(this.fetch,l.toString(),c,{headers:d});return{data:{path:s,fullPath:h.Key},error:null}}catch(c){if(this.shouldThrowOnError)throw c;if(ca(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(t,r){return es(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const a=Object.assign({},this.headers);r!=null&&r.upsert&&(a["x-upsert"]="true");const s=yield Fl(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:a}),o=new URL(this.url+s.url),l=o.searchParams.get("token");if(!l)throw new Qae("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:l},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ca(n))return{data:null,error:n};throw n}})}update(t,r,n){return es(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r,n){return es(this,void 0,void 0,function*(){try{return{data:yield Fl(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;
7825if(ca(a))return{data:null,error:a};throw a}})}copy(t,r,n){return es(this,void 0,void 0,function*(){try{return{data:{path:(yield Fl(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ca(a))return{data:null,error:a};throw a}})}createSignedUrl(t,r,n){return es(this,void 0,void 0,function*(){try{let a=this._getFinalPath(t),s=yield Fl(this.fetch,`${this.url}/object/sign/${a}`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${o}`)},{data:s,error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ca(a))return{data:null,error:a};throw a}})}createSignedUrls(t,r,n){return es(this,void 0,void 0,function*(){try{const a=yield Fl(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:t},{headers:this.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:a.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${s}`):null})),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ca(a))return{data:null,error:a};throw a}})}download(t,r){const a=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),o=s?`?${s}`:"",l=this._getFinalPath(t),c=()=>Bq(this.fetch,`${this.url}/${a}/${l}${o}`,{headers:this.headers,noResolveJson:!0});return new WBe(c,this.shouldThrowOnError)}info(t){return es(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{const n=yield Bq(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:wee(n),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ca(n))return{data:null,error:n};throw n}})}exists(t){return es(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{return yield UBe(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ca(n)&&n instanceof bee){const a=n.originalError;if([400,404].includes(a==null?void 0:a.status))return{data:!1,error:n}}throw n}})}getPublicUrl(t,r){const n=this._getFinalPath(t),a=[],s=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";s!==""&&a.push(s);const l=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});c!==""&&a.push(c);let u=a.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${n}${u}`)}}}remove(t){return es(this,void 0,void 0,function*(){try{return{data:yield l_e(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ca(r))return{data:null,error:r};throw r}})}list(t,r,n){return es(this,void 0,void 0,function*(){try{const a=Object.assign(Object.assign(Object.assign({},GBe),r),{prefix:t||""});return{data:yield Fl(this.fetch,`${this.url}/object/list/${this.bucketId}`,a,{headers:this.headers},n),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ca(a))return{data:null,error:a};throw a}})}listV2(t,r){return es(this,void 0,void 0,function*(){try{const n=Object.assign({},t);return{data:yield Fl(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ca(n))return{data:null,error:n};throw n}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const r=[];return t.width&&r.push(`width=${t.width}`),t.height&&r.push(`height=${t.height}`),t.resize&&r.push(`resize=${t.resize}`),t.format&&r.push(`format=${t.format}`),t.quality&&r.push(`quality=${t.quality}`),r.join("&")}}const YBe="2.75.1",XBe={"X-Client-Info":`storage-js/${YBe}`};var fg=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};class ZBe{constructor(t,r={},n,a){this.shouldThrowOnError=!1;const s=new URL(t);a!=null&&a.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({}
7825,XBe),r),this.fetch=o_e(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return fg(this,void 0,void 0,function*(){try{return{data:yield Bq(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(ca(t))return{data:null,error:t};throw t}})}getBucket(t){return fg(this,void 0,void 0,function*(){try{return{data:yield Bq(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ca(r))return{data:null,error:r};throw r}})}createBucket(t){return fg(this,arguments,void 0,function*(r,n={public:!1}){try{return{data:yield Fl(this.fetch,`${this.url}/bucket`,{id:r,name:r,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(ca(a))return{data:null,error:a};throw a}})}updateBucket(t,r){return fg(this,void 0,void 0,function*(){try{return{data:yield kee(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(ca(n))return{data:null,error:n};throw n}})}emptyBucket(t){return fg(this,void 0,void 0,function*(){try{return{data:yield Fl(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ca(r))return{data:null,error:r};throw r}})}deleteBucket(t){return fg(this,void 0,void 0,function*(){try{return{data:yield l_e(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(ca(r))return{data:null,error:r};throw r}})}}class QBe extends ZBe{constructor(t,r={},n,a){super(t,r,n,a)}from(t){return new KBe(this.url,this.headers,t,this.fetch)}}const JBe="2.75.1";let pb="";typeof Deno<"u"?pb="deno":typeof document<"u"?pb="web":typeof navigator<"u"&&navigator.product==="ReactNative"?pb="react-native":pb="node";const eze={"X-Client-Info":`supabase-js-${pb}/${JBe}`},tze={headers:eze},rze={schema:"public"},nze={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},aze={};var ize=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const sze=e=>{let t;return e?t=e:typeof fetch>"u"?t=Gke:t=fetch,(...r)=>t(...r)},oze=()=>typeof Headers>"u"?Kke:Headers,lze=(e,t,r)=>{const n=sze(r),a=oze();return(s,o)=>ize(void 0,void 0,void 0,function*(){var l;const c=(l=yield t())!==null&&l!==void 0?l:e;let u=new a(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),n(s,Object.assign(Object.assign({},o),{headers:u}))})};var cze=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};function uze(e){return e.endsWith("/")?e:e+"/"}function dze(e,t){var r,n;const{db:a,auth:s,realtime:o,global:l}=e,{db:c,auth:u,realtime:d,global:h}=t,f={db:Object.assign(Object.assign({},c),a),auth:Object.assign(Object.assign({},u),s),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},h),l),{headers:Object.assign(Object.assign({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=l==null?void 0:l.headers)!==null&&n!==void 0?n:{})}),accessToken:()=>cze(this,void 0,void 0,function*(){return""})};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function hze(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(uze(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const u_e="2.75.1",Rg=30*1e3,_ee=3,fY=_ee*Rg,fze="http://localhost:9999",pze="supabase.auth.token",mze={"X-Client-Info":`gotrue-js/${u_e}`},See="X-Supabase-Api-Version",d_e={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},gze=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,yze=10*60*1e3;
7825class mk extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function zt(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class vze extends mk{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function xze(e){return zt(e)&&e.name==="AuthApiError"}class C1 extends mk{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class yh extends mk{constructor(t,r,n,a){super(t,n,a),this.name=r,this.status=n}}class rd extends yh{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function bze(e){return zt(e)&&e.name==="AuthSessionMissingError"}class pg extends yh{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class u3 extends yh{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class d3 extends yh{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function wze(e){return zt(e)&&e.name==="AuthImplicitGrantRedirectError"}class ide extends yh{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class jee extends yh{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function pY(e){return zt(e)&&e.name==="AuthRetryableFetchError"}class sde extends yh{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class Eee extends yh{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const zq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),ode=` 7826\r=`.split(""),kze=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<ode.length;t+=1)e[ode[t].charCodeAt(0)]=-2;for(let t=0;t<zq.length;t+=1)e[zq[t].charCodeAt(0)]=t;return e})();function lde(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(zq[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(zq[n]),t.queuedBits-=6}}function h_e(e,t,r){const n=kze[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function cde(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},s=o=>{jze(o,n,r)};for(let o=0;o<e.length;o+=1)h_e(e.charCodeAt(o),a,s);return t.join("")}function _ze(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Sze(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const a=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|a)+65536,r+=1}_ze(n,t)}}function jze(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Py(e){const t=[],r={queue:0,queuedBits:0},n=a=>{t.push(a)};for(let a=0;a<e.length;a+=1)h_e(e.charCodeAt(a),r,n);return new Uint8Array(t)}function Eze(e){const t=[];return Sze(e,r=>t.push(r)),new Uint8Array(t)}function P1(e){const t=[],r={queue:0,queuedBits:0},n=a=>{t.push(a)};return e.forEach(a=>lde(a,r,n)),lde(null,r,n),t.join("")}function Cze(e){return Math.round(Date.now()/1e3)+e}function Nze(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Ps=()=>typeof window<"u"&&typeof document<"u",Uh={tested:!1,writable:!1},f_e=()=>{if(!Ps())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Uh.tested)return Uh.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Uh.tested=!0,Uh.writable=!0}catch{Uh.tested=!0,Uh.writable=!1}return Uh.writable};function Tze(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
7826h((a,s)=>{t[s]=a})}catch{}return r.searchParams.forEach((n,a)=>{t[a]=n}),t}const p_e=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>L_(async()=>{const{default:n}=await Promise.resolve().then(()=>pv);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},Aze=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Dg=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},qh=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Xu=async(e,t)=>{await e.removeItem(t)};class mW{constructor(){this.promise=new mW.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}mW.promiseConstructor=Promise;function mY(e){const t=e.split(".");if(t.length!==3)throw new Eee("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!gze.test(t[n]))throw new Eee("JWT not in base64url format");return{header:JSON.parse(cde(t[0])),payload:JSON.parse(cde(t[1])),signature:Py(t[2]),raw:{header:t[0],payload:t[1]}}}async function Mze(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Ize(e,t){return new Promise((n,a)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){n(o);return}}catch(o){if(!t(s,o)){a(o);return}}})()})}function Pze(e){return("0"+e.toString(16)).substr(-2)}function Lze(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let a="";for(let s=0;s<56;s++)a+=r.charAt(Math.floor(Math.random()*n));return a}return crypto.getRandomValues(t),Array.from(t,Pze).join("")}async function Oze(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),a=new Uint8Array(n);return Array.from(a).map(s=>String.fromCharCode(s)).join("")}async function Rze(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await Oze(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function mg(e,t,r=!1){const n=Lze();let a=n;r&&(a+="/PASSWORD_RECOVERY"),await Dg(e,`${t}-code-verifier`,a);const s=await Rze(n);return[s,n===s?"plain":"s256"]}const Dze=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Fze(e){const t=e.headers.get(See);if(!t||!t.match(Dze))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function $ze(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function Bze(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const zze=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function gg(e){if(!zze.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function gY(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function ude(e){return JSON.parse(JSON.stringify(e))}var Uze=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const b1=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),qze=[502,503,504];async function dde(e){var t;if(!Aze(e))throw new jee(b1(e),0);if(qze.includes(e.status))throw new jee(b1(e),e.status);let r;try{r=await e.json()}catch(s){throw new C1(b1(s),s)}let n;const a=Fze(e);if(a&&a.getTime()>=d_e["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new sde(b1(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new rd}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((s,o)=>
7826s&&typeof o=="string",!0))throw new sde(b1(r),e.status,r.weak_password.reasons);throw new vze(b1(r),e.status||500,n)}const Hze=(e,t,r,n)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),a.body=JSON.stringify(n),Object.assign(Object.assign({},a),r))};async function tr(e,t,r,n){var a;const s=Object.assign({},n==null?void 0:n.headers);s[See]||(s[See]=d_e["2024-01-01"].name),n!=null&&n.jwt&&(s.Authorization=`Bearer ${n.jwt}`);const o=(a=n==null?void 0:n.query)!==null&&a!==void 0?a:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await Vze(e,t,r+l,{headers:s,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function Vze(e,t,r,n,a,s){const o=Hze(t,n,a,s);let l;try{l=await e(r,Object.assign({},o))}catch(c){throw console.error(c),new jee(b1(c),0)}if(l.ok||await dde(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(c){await dde(c)}}function zo(e){var t;let r=null;Kze(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=Cze(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function hde(e){const t=zo(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function gd(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function Wze(e){return{data:e,error:null}}function Gze(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:a,verification_type:s}=e,o=Uze(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:r,hashed_token:n,redirect_to:a,verification_type:s},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function fde(e){return e}function Kze(e){return e.access_token&&e.refresh_token&&e.expires_in}const yY=["global","local","others"];var Yze=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};class Xze{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=p_e(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=yY[0]){if(yY.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${yY.join(", ")}`);try{return await tr(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(zt(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await tr(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:gd})}catch(n){if(zt(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=Yze(t,["options"]),a=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(a.new_email=n==null?void 0:n.newEmail,delete a.newEmail),await tr(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:a,headers:this.headers,xform:Gze,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(zt(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await tr(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:gd})}catch(r){if(zt(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,a,s,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await tr(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(a=t==null?void 0:t.perPage)===null||a===void 0?void 0:a.toString())!==null&&s!==void 0?s:""},xform:fde});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>
78260&&(p.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(y.split(";")[1].split("=")[1]);u[`${v}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(zt(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){gg(t);try{return await tr(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:gd})}catch(r){if(zt(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){gg(t);try{return await tr(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:gd})}catch(n){if(zt(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){gg(t);try{return await tr(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:gd})}catch(n){if(zt(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){gg(t.userId);try{const{data:r,error:n}=await tr(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:r,error:n}}catch(r){if(zt(r))return{data:null,error:r};throw r}}async _deleteFactor(t){gg(t.userId),gg(t.id);try{return{data:await tr(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(zt(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,a,s,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await tr(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(a=t==null?void 0:t.perPage)===null||a===void 0?void 0:a.toString())!==null&&s!==void 0?s:""},xform:fde});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>0&&(p.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(y.split(";")[1].split("=")[1]);u[`${v}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(zt(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await tr(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(zt(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await tr(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(zt(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await tr(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(zt(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await tr(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(zt(r))return{data:null,error:r};throw r}}}function pde(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const yg={debug:!!(globalThis&&f_e()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class m_e extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Zze extends m_e{}async function Qze(e,t,r){yg.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),yg.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async a=>{if(a){yg.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,a.name);try{return await r()}finally{yg.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,a.name)}}else{if(t===0)throw yg.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Zze(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(yg.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function Jze(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function g_e(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
7826" is invalid.`);return e.toLowerCase()}function eUe(e){return parseInt(e,16)}function tUe(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function rUe(e){var t;const{chainId:r,domain:n,expirationTime:a,issuedAt:s=new Date,nonce:o,notBefore:l,requestId:c,resources:u,scheme:d,uri:h,version:f}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 7827`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=g_e(e.address),y=d?`${d}://${n}`:n,m=e.statement?`${e.statement} 7828`:"",v=`${y} wants you to sign in with your Ethereum account: 7829${p} 7830 7831${m}`;let g=`URI: ${h} 7832Version: ${f} 7833Chain ID: ${r}${o?` 7834Nonce: ${o}`:""} 7835Issued At: ${s.toISOString()}`;if(a&&(g+=` 7836Expiration Time: ${a.toISOString()}`),l&&(g+=` 7837Not Before: ${l.toISOString()}`),c&&(g+=` 7838Request ID: ${c}`),u){let b=` 7839Resources:`;for(const x of u){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);b+=` 7840- ${x}`}g+=b}return`${v} 7841${g}`}
7841class la extends Error{constructor({message:t,code:r,cause:n,name:a}){var s;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(s=a??(n instanceof Error?n.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=r}}class Uq extends la{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function nUe({error:e,options:t}){var r,n,a;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new la({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=s.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new la({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=s.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new la({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((a=s.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new la({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new la({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new la({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new la({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new la({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(v_e(o)){if(s.rp.id!==o)return new la({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new la({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new la({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new la({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new la({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function aUe({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new la({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new la({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(v_e(n)){if(r.rpId!==n)return new la({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new la({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new la({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new la({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}var y_e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};class iUe{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const sUe=new iUe;function oUe(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,a=y_e(e,["challenge","user","excludeCredentials"]),s=Py(t).buffer,o=Object.assign(Object.assign({}
7841,r),{id:Py(r.id).buffer}),l=Object.assign(Object.assign({},a),{challenge:s,user:o});if(n&&n.length>0){l.excludeCredentials=new Array(n.length);for(let c=0;c<n.length;c++){const u=n[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:Py(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function lUe(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=y_e(e,["challenge","allowCredentials"]),a=Py(t).buffer,s=Object.assign(Object.assign({},n),{challenge:a});if(r&&r.length>0){s.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const l=r[o];s.allowCredentials[o]=Object.assign(Object.assign({},l),{id:Py(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return s}function cUe(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:P1(new Uint8Array(e.response.attestationObject)),clientDataJSON:P1(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function uUe(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),a=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:P1(new Uint8Array(a.authenticatorData)),clientDataJSON:P1(new Uint8Array(a.clientDataJSON)),signature:P1(new Uint8Array(a.signature)),userHandle:a.userHandle?P1(new Uint8Array(a.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function v_e(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function mde(){var e,t;return!!(Ps()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function dUe(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Uq("Browser returned unexpected credential type",t)}:{data:null,error:new Uq("Empty credential response",t)}}catch(t){return{data:null,error:nUe({error:t,options:e})}}}async function hUe(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Uq("Browser returned unexpected credential type",t)}:{data:null,error:new Uq("Empty credential response",t)}}catch(t){return{data:null,error:aUe({error:t,options:e})}}}const fUe={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"none"},pUe={userVerification:"preferred",hints:["security-key"]};function qq(...e){const t=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),r=a=>a instanceof ArrayBuffer||ArrayBuffer.isView(a),n={};for(const a of e)if(a)for(const s in a){const o=a[s];if(o!==void 0)if(Array.isArray(o))n[s]=o;else if(r(o))n[s]=o;else if(t(o)){const l=n[s];t(l)?n[s]=qq(l,o):n[s]=qq(o)}else n[s]=o}return n}function mUe(e,t){return qq(fUe,e,t||{})}function gUe(e,t){return qq(pUe,e,t||{})}class yUe{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:a},s){try{const{data:o,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!o)return{data:null,error:l};const c=a??sUe.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:u}=o.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${n}`),u.displayName||(u.displayName=u.name)}
7841switch(o.webauthn.type){case"create":{const u=mUe(o.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:d,error:h}=await dUe({publicKey:u,signal:c});return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const u=gUe(o.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:d,error:h}=await hUe(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(o){return zt(o)?{data:null,error:o}:{data:null,error:new C1("Unexpected error in challenge",o)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:a}},s){if(!r)return{data:null,error:new mk("rpId is required for WebAuthn authentication")};try{if(!mde())return{data:null,error:new C1("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:a},{request:s});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:c.type,rpId:r,rpOrigins:n,credential_response:c.credential_response}})}catch(o){return zt(o)?{data:null,error:o}:{data:null,error:new C1("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:a},s){if(!r)return{data:null,error:new mk("rpId is required for WebAuthn registration")};try{if(!mde())return{data:null,error:new C1("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(d=>{var h;return(h=d.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:a},{create:s});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:r,rpOrigins:n,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(o){return zt(o)?{data:null,error:o}:{data:null,error:new C1("Unexpected error in register",o)}}}}Jze();const vUe={url:fze,storageKey:pze,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:mze,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function gde(e,t,r){return await r()}const vg={};class gk{get jwks(){var t,r;return(r=(t=vg[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){vg[this.storageKey]=Object.assign(Object.assign({},vg[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=vg[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){vg[this.storageKey]=Object.assign(Object.assign({},vg[this.storageKey]),{cachedAt:t})}constructor(t){var r,n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=gk.nextInstanceID,gk.nextInstanceID+=1,this.instanceID>0&&Ps()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const a=Object.assign(Object.assign({},vUe),t);if(this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.persistSession=a.persistSession,this.storageKey=a.storageKey,this.autoRefreshToken=a.autoRefreshToken,this.admin=new Xze({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=p_e(a.fetch),this.lock=a.lock||gde,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,a.lock?this.lock=a.lock:Ps()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=Qze:this.lock=gde,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new yUe(this)},this.persistSession?(a.storage?this.storage=a.storage:f_e()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=pde(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=pde(this.memoryStorage)),Ps()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${u_e}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const r=Tze(window.location.href);let n="none";if(this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce"),Ps()&&this.detectSessionInUrl&&n!=="none"){const{data:a,error:s}=await this._getSessionFromURL(r,n);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),wze(s)){const c=(t=s.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:o,redirectType:l}=a;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return zt(r)?{error:r}:{error:new C1("Unexpected error during initialization",r)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,a;try{const s=await tr(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(a=t==null?void 0:t.options)===null||a===void 0?void 0:a.captchaToken}},xform:zo}),{data:o,error:l}=s;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(s){if(zt(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(t){var r,n,a;try{let s;if("email"in t){const{email:d,password:h,options:f}=t;let p=null,y=null;this.flowType==="pkce"&&([p,y]=await mg(this.storage,this.storageKey)),s=await tr(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:y},xform:zo})}else if("phone"in t){const{phone:d,password:h,options:f}=t;s=await tr(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},channel:(a=f==null?void 0:f.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:zo})}else throw new u3("You must provide either an email or phone number and a password");const{data:o,error:l}=s;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(s){if(zt(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(t){try{let r;if("email"in t){const{email:s,password:o,options:l}=t;r=await tr(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:hde})}else if("phone"in t){const{phone:s,password:o,options:l}=t;r=await tr(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:hde})}else throw new u3("You must provide either an email or phone number and a password");const{data:n,error:a}=r;return a?{data:{user:null,session:null},error:a}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new pg}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:a})}catch(r){if(zt(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(t){var r,n,a,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(a=t.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,a,s,o,l,c,u,d,h,f;let p,y;if("message"in t)p=t.message,y=t.signature;else{const{chain:m,wallet:v,statement:g,options:b}=t;let x;if(Ps())if(typeof v=="object")x=v;else{const N=window;if("ethereum"in N&&typeof N.ethereum=="object"&&"request"in N.ethereum&&typeof N.ethereum.request=="function")x=N.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=v}const _=new URL((r=b==null?void 0:b.url)!==null&&r!==void 0?r:window.location.href),w=await x.request({method:"eth_requestAccounts"}).then(N=>N).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!w||w.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const j=g_e(w[0]);let E=(n=b==null?void 0:b.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!E){const N=await x.request({method:"eth_chainId"});E=eUe(N)}const C={domain:_.host,address:j,statement:g,uri:_.href,version:"1",chainId:E,nonce:(a=b==null?void 0:b.signInWithEthereum)===null||a===void 0?void 0:a.nonce,issuedAt:(o=(s=b==null?void 0:b.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=b==null?void 0:b.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=b==null?void 0:b.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=b==null?void 0:b.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=b==null?void 0:b.signInWithEthereum)===null||d===void 0?void 0:d.resources};p=rUe(C),y=await x.request({method:"personal_sign",params:[tUe(p),j]})}try{const{data:m,error:v}=await tr(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:y}
7841,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:zo});if(v)throw v;return!m||!m.session||!m.user?{data:{user:null,session:null},error:new pg}:(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),{data:Object.assign({},m),error:v})}catch(m){if(zt(m))return{data:{user:null,session:null},error:m};throw m}}async signInWithSolana(t){var r,n,a,s,o,l,c,u,d,h,f,p;let y,m;if("message"in t)y=t.message,m=t.signature;else{const{chain:v,wallet:g,statement:b,options:x}=t;let _;if(Ps())if(typeof g=="object")_=g;else{const j=window;if("solana"in j&&typeof j.solana=="object"&&("signIn"in j.solana&&typeof j.solana.signIn=="function"||"signMessage"in j.solana&&typeof j.solana.signMessage=="function"))_=j.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=g}const w=new URL((r=x==null?void 0:x.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const j=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:w.host,uri:w.href}),b?{statement:b}:null));let E;if(Array.isArray(j)&&j[0]&&typeof j[0]=="object")E=j[0];else if(j&&typeof j=="object"&&"signedMessage"in j&&"signature"in j)E=j;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)y=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),m=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${w.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...b?["",b,""]:[""],"Version: 1",`URI: ${w.href}`,`Issued At: ${(a=(n=x==null?void 0:x.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&a!==void 0?a:new Date().toISOString()}`,...!((s=x==null?void 0:x.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((o=x==null?void 0:x.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((l=x==null?void 0:x.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((c=x==null?void 0:x.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((u=x==null?void 0:x.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((h=(d=x==null?void 0:x.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...x.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(` 7842`);const j=await _.signMessage(new TextEncoder().encode(y),"utf8");if(!j||!(j instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=j}}try{const{data:v,error:g}=await tr(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:P1(m)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:zo});if(g)throw g;return!v||!v.session||!v.user?{data:{user:null,session:null},error:new pg}:(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),{data:Object.assign({},v),error:g})}catch(v){if(zt(v))return{data:{user:null,session:null},error:v};throw v}}async _exchangeCodeForSession(t){const r=await qh(this.storage,`${this.storageKey}-code-verifier`),[n,a]=(r??"").split("/");try{const{data:s,error:o}=await tr(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:zo});if(await Xu(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new pg}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:a??null}),error:o})}catch(s){if(zt(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(t){try{const{options:r,provider:n,token:a,access_token:s,nonce:o}=t,l=await tr(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:a,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:zo}),{data:c,error:u}=l;return u?{data:{user:null,session:null},error:u}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new pg}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:u})}catch(r){if(zt(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(t){var r,n,a,s,o;try{if("email"in t){const{email:l,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await mg(this.storage,this.storageKey));const{error:h}=await tr(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:h}}if("phone"in t){const{phone:l,options:c}=t,{data:u,error:d}=await tr(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(a=c==null?void 0:c.data)!==null&&a!==void 0?a:{},create_user:(s=c==null?void 0:c.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d}}throw new u3("You must provide either an email or phone number.")}catch(l){if(zt(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(t){var r,n;try{let a,s;"options"in t&&(a=(r=t.options)===null||r===void 0?void 0:r.redirectTo,s=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:l}=await tr(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:a,xform:zo});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(a){if(zt(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithSSO(t){var r,n,a;try{let s=null,o=null;return this.flowType==="pkce"&&([s,o]=await mg(this.storage,this.storageKey)),await tr(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((a=t==null?void 0:t.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:o}),headers:this.headers,xform:Wze})}catch(s){if(zt(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new rd;const{error:a}=await tr(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:a}})}catch(t){if(zt(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:a,options:s}=t,{error:o}=await tr(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:a,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:n,type:a,options:s}=t,{data:o,error:l}=await tr(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:a,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l}}throw new u3("You must provide either an email or phone number and a type")}catch(r){if(zt(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await qh(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
7842id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<fY:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await qh(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=gY()}if(this.storage.isServer&&t.user){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(c,u,d)=>(!o&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,u,d))})}return{data:{session:t},error:null}}const{data:a,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{session:null},error:s}:{data:{session:a},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await tr(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:gd}):await this._useSession(async r=>{var n,a,s;const{data:o,error:l}=r;if(l)throw l;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new rd}:await tr(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(a=o.session)===null||a===void 0?void 0:a.access_token)!==null&&s!==void 0?s:void 0,xform:gd})})}catch(r){if(zt(r))return bze(r)&&(await this._removeSession(),await Xu(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:a,error:s}=n;if(s)throw s;if(!a.session)throw new rd;const o=a.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await mg(this.storage,this.storageKey));const{data:u,error:d}=await tr(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:gd});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(n){if(zt(n))return{data:{user:null},error:n};throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new rd;const r=Date.now()/1e3;let n=r,a=!0,s=null;const{payload:o}=mY(t.access_token);if(o.exp&&(n=o.exp,a=n<=r),a){const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!l)return{data:{user:null,session:null},error:null};s=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)throw c;s={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(r){if(zt(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:l}=r;if(l)throw l;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new rd;const{data:a,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{user:null,session:null},error:s}:a?{data:{user:a.user,session:a},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(zt(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(t,r){try{if(!Ps())throw new d3("No browser detected.");
7842if(t.error||t.error_description||t.error_code)throw new d3(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new ide("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new d3("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new ide("No code detected.");const{data:b,error:x}=await this._exchangeCodeForSession(t.code);if(x)throw x;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:b.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:a,access_token:s,refresh_token:o,expires_in:l,expires_at:c,token_type:u}=t;if(!s||!l||!o||!u)throw new d3("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let f=d+h;c&&(f=parseInt(c));const p=f-d;p*1e3<=Rg&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${h}s`);const y=f-h;d-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,f,d):d-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,f,d);const{data:m,error:v}=await this._getUser(s);if(v)throw v;const g={provider_token:n,provider_refresh_token:a,access_token:s,expires_in:h,expires_at:f,refresh_token:o,token_type:u,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:t.type},error:null}}catch(n){if(zt(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await qh(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:a,error:s}=r;if(s)return{error:s};const o=(n=a.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(xze(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return t!=="others"&&(await this._removeSession(),await Xu(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const r=Nze(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,a;try{const{data:{session:s},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((a=this.stateChangeEmitters.get(t))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,r={}){let n=null,a=null;this.flowType==="pkce"&&([n,a]=await mg(this.storage,this.storageKey,!0));try{return await tr(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:a,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(s){if(zt(s))return{data:null,error:s};throw s}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(r){if(zt(r))return{data:null,error:r};throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:a}=await this._useSession(async s=>{var o,l,c,u,d;const{data:h,error:f}=s;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await tr(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(a)throw a;return Ps()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:t.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(zt(n))return{data:{provider:t.provider,url:null},error:n};throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:a,data:{session:s}}=r;if(a)throw a;const{options:o,provider:l,token:c,access_token:u,nonce:d}=t,h=await tr(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=s==null?void 0:s.access_token)!==null&&n!==void 0?n:void 0,body:{provider:l,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:zo}),{data:f,error:p}=h;return p?{data:{user:null,session:null},error:p}:!f||!f.session||!f.user?{data:{user:null,session:null},error:new pg}:(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),{data:f,error:p})}catch(a){if(zt(a))return{data:{user:null,session:null},error:a};throw a}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,a;const{data:s,error:o}=r;if(o)throw o;
7842return await tr(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(a=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&a!==void 0?a:void 0})})}catch(r){if(zt(r))return{data:null,error:r};throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await Ize(async a=>(a>0&&await Mze(200*Math.pow(2,a-1)),this._debug(r,"refreshing attempt",a),await tr(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:zo})),(a,s)=>{const o=200*Math.pow(2,a);return s&&pY(s)&&Date.now()+o-n<Rg})}catch(n){if(this._debug(r,"error",n),zt(n))return{data:{session:null,user:null},error:n};throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Ps()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const a=await qh(this.storage,this.storageKey);if(a&&this.userStorage){let o=await qh(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:a.user},await Dg(this.userStorage,this.storageKey+"-user",o)),a.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:gY()}else if(a&&!a.user&&!a.user){const o=await qh(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(a.user=o.user,await Xu(this.storage,this.storageKey+"-user"),await Dg(this.storage,this.storageKey,a)):a.user=gY()}if(this._debug(n,"session from storage",a),!this._isValidSession(a)){this._debug(n,"session is not valid"),a!==null&&await this._removeSession();return}const s=((r=a.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<fY;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${fY}s`),s){if(this.autoRefreshToken&&a.refresh_token){const{error:o}=await this._callRefreshToken(a.refresh_token);o&&(console.error(o),pY(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(a.user&&a.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(a.access_token);!l&&(o!=null&&o.user)?(a.user=o.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",a)}catch(a){this._debug(n,"error",a),console.error(a);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new rd;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const a=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(a,"begin");try{this.refreshingDeferred=new mW;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new rd;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const l={data:s.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(s){if(this._debug(a,"error",s),zt(s)){const o={data:null,error:s};return pY(s)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(s),s}finally{this.refreshingDeferred=null,this._debug(a,"end")}}async _notifyAllSubscribers(t,r,n=!0){const a=`#_notifyAllSubscribers(${t})`;this._debug(a,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,r)}catch(c){s.push(c)}});if(await Promise.all(o),s.length>0){for(let l=0;l<s.length;l+=1)console.error(s[l]);throw s[0]}}finally{this._debug(a,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Dg(this.userStorage,this.storageKey+"-user",{user:r.user});const a=Object.assign({},r);delete a.user;const s=ude(a);await Dg(this.storage,this.storageKey,s)}else{const a=ude(r);await Dg(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),await Xu(this.storage,this.storageKey),await Xu(this.storage,this.storageKey+"-code-verifier"),await Xu(this.storage,this.storageKey+"-user"),this.userStorage&&await Xu(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ps()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
7842catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Rg);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((n.expires_at*1e3-t)/Rg);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${Rg}ms, refresh threshold is ${_ee} ticks`),a<=_ee&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof m_e)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ps()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const a=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&a.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&a.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[s,o]=await mg(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});a.push(l.toString())}if(n!=null&&n.queryParams){const s=new URLSearchParams(n.queryParams);a.push(s.toString())}return n!=null&&n.skipBrowserRedirect&&a.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${a.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:a,error:s}=r;return s?{data:null,error:s}:await tr(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(zt(r))return{data:null,error:r};throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,a;const{data:s,error:o}=r;if(o)return{data:null,error:o};const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:u}=await tr(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&c.type==="totp"&&(!((a=c==null?void 0:c.totp)===null||a===void 0)&&a.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(r){if(zt(r))return{data:null,error:r};throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:s}=r;if(s)return{data:null,error:s};const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?cUe(t.webauthn.credential_response):uUe(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:c}=await tr(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return c?{data:null,error:c}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),{data:l,error:c})})}catch(r){if(zt(r))return{data:null,error:r};throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:s}=r;if(s)return{data:null,error:s};const o=await tr(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:l}=o;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:oUe(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:lUe(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(zt(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?{data:null,error:n}:await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const a={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])a.all.push(s),s.status==="verified"&&a[s.factor_type].push(s);return{data:a,error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var r,n;const{data:{session:a},error:s}=t;if(s)return{data:null,error:s};if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=mY(a.access_token);let l=null;o.aal&&(l=o.aal);let c=l;((n=(r=a.user.factors)===null||r===void 0?void 0:r.filter(h=>h.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(c="aal2");const d=o.amr||[];return{data:{currentLevel:l,nextLevel:c,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(l=>l.kid===t);if(n)return n;const a=Date.now();if(n=this.jwks.keys.find(l=>l.kid===t),n&&this.jwks_cached_at+yze>a)return n;const{data:s,error:o}=await tr(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=a,n=s.keys.find(l=>l.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:p,error:y}
7842=await this.getSession();if(y||!p.session)return{data:null,error:y};n=p.session.access_token}const{header:a,payload:s,signature:o,raw:{header:l,payload:c}}=mY(n);r!=null&&r.allowExpired||$ze(s.exp);const u=!a.alg||a.alg.startsWith("HS")||!a.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(a.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:p}=await this.getUser(n);if(p)throw p;return{data:{claims:s,header:a,signature:o},error:null}}const d=Bze(a.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,Eze(`${l}.${c}`)))throw new Eee("Invalid JWT signature");return{data:{claims:s,header:a,signature:o},error:null}}catch(n){if(zt(n))return{data:null,error:n};throw n}}}gk.nextInstanceID=0;const xUe=gk;class bUe extends xUe{constructor(t){super(t)}}var wUe=function(e,t,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};class kUe{constructor(t,r,n){var a,s,o;this.supabaseUrl=t,this.supabaseKey=r;const l=hze(t);if(!r)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const c=`sb-${l.hostname.split(".")[0]}-auth-token`,u={db:rze,realtime:aze,auth:Object.assign(Object.assign({},nze),{storageKey:c}),global:tze},d=dze(n??{},u);this.storageKey=(a=d.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(s=d.global.headers)!==null&&s!==void 0?s:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(h,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=d.auth)!==null&&o!==void 0?o:{},this.headers,d.global.fetch),this.fetch=lze(r,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new vBe(new URL("rest/v1",l).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new QBe(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new X$e(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,r={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,r,n)}channel(t,r={config:{}}){return this.realtime.channel(t,r)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){return wUe(this,void 0,void 0,function*(){var t,r;if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(t=n.session)===null||t===void 0?void 0:t.access_token)!==null&&r!==void 0?r:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:a,userStorage:s,storageKey:o,flowType:l,lock:c,debug:u},d,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new bUe({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),d),storageKey:o,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:a,userStorage:s,flowType:l,lock:c,debug:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new OBe(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(t,r,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const _Ue=(e,t,r)=>new kUe(e,t,r);function SUe(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}SUe()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
7842ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const jUe="https://lzszruyujsdpxlwctvlq.supabase.co",EUe="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imx6c3pydXl1anNkcHhsd2N0dmxxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODY1MzkzMTEsImV4cCI6MjEwMjExNTMxMX0.VFzb_KxS4jUJovrg3ge4Edg21pN3PEK9EEJzd3KL0Nk",oe=_Ue(jUe,EUe,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),CUe="Session expired. Please log in again.";async function x_e(){try{await oe.auth.signOut({scope:"local"})}catch{}}async function b_e(){const{data:{session:e}}=await oe.auth.getSession();if(!e)return{session:null,user:null};const{data:t,error:r}=await oe.auth.getUser();if(r||!t.user)return console.warn("[authSession] Cached session is invalid, clearing locally.",r),await x_e(),{session:null,user:null};const{data:{session:n}}=await oe.auth.getSession();return{session:n??e,user:t.user}}async function w_e(){const{session:e}=await b_e();return(e==null?void 0:e.access_token)??null}const NUe=async e=>{var t;console.log("[useSubscription] Fetching subscription data for user:",e);try{const{data:r,error:n}=await oe.from("profiles").select("*").eq("id",e).maybeSingle();if(n)throw n;if(!r)throw new Error("Profile not found. Please try refreshing the page.");const a=()=>
7842({subscriptionStatus:{subscribed:!1,product_id:null,subscription_end:null,cancel_at_period_end:!1,free_sample_used:r.free_sample_used??!1,free_samples_count:r.free_samples_count??0,included_story_available:!1},profile:r}),s=await w_e();if(!s)return console.warn("[useSubscription] No valid auth token available for subscription check"),a();const{data:o,error:l}=await oe.functions.invoke("check-subscription",{headers:{Authorization:`Bearer ${s}`}});if(l){console.warn("[useSubscription] Error calling check-subscription:",l);const u=((t=l.message)==null?void 0:t.toLowerCase())||"";if(u.includes("authentication failed")||u.includes("401")||u.includes("session")||u.includes("jwt")||u.includes("unauthorized"))return console.log("[useSubscription] Authentication error detected - clearing stale local session"),await x_e(),a();throw l}const c={subscribed:o.subscribed,product_id:o.product_id,subscription_end:o.current_period_end,cancel_at_period_end:o.cancel_at_period_end??!1,free_sample_used:o.free_sample_used??!1,free_samples_count:o.free_samples_count??r.free_samples_count??0,included_story_available:o.included_story_available??!1,paymentFailedAt:o.payment_failed_at??null,hasActiveBookClub:o.hasActiveBookClub??!1};return console.log("[useSubscription] Subscription data fetched:",o),{subscriptionStatus:c,profile:r}}catch(r){throw console.error("[useSubscription] Error fetching data:",r),r}},TUe=e=>{var s,o;const t=El(),r=ei({queryKey:["subscription",e==null?void 0:e.id],queryFn:()=>NUe(e.id),enabled:!!e,staleTime:15*60*1e3,gcTime:30*60*1e3,refetchOnMount:!0,refetchOnWindowFocus:!1,refetchOnReconnect:!0,retry:2,retryDelay:1e3}),n=async(l=!1)=>{e&&(l?(console.log("[useSubscription] Force refreshing subscription"),await t.invalidateQueries({queryKey:["subscription",e.id]}),await t.refetchQueries({queryKey:["subscription",e.id]})):(console.log("[useSubscription] Normal refresh (respects cache)"),await t.refetchQueries({queryKey:["subscription",e.id]})))},a=()=>{console.log("[useSubscription] Clearing subscription cache"),t.removeQueries({queryKey:["subscription"]})};return{subscriptionStatus:((s=r.data)==null?void 0:s.subscriptionStatus)??null,profile:((o=r.data)==null?void 0:o.profile)??null,isLoading:r.isLoading,isError:r.isError,error:r.error,refresh:n,clear:a}};function AUe(){if(typeof window>"u")return;const e="3857225287878331";if(window.fbq)return;const t=[],r=function(...s){r.callMethod?r.callMethod(...s):t.push(s)};r.queue=t,r.loaded=!0,r.version="2.0",r.push=r,window.fbq=r,window._fbq=r;const n=document.createElement("script");n.async=!0,n.src="https://connect.facebook.net/en_US/fbevents.js";const a=document.getElementsByTagName("script")[0];a!=null&&a.parentNode?a.parentNode.insertBefore(n,a):document.head.appendChild(n),window.fbq("init",e),window.fbq("track","PageView")}function Jae(e,t,r){typeof window>"u"||!window.fbq||(r?window.fbq("track",e,t??{},{eventID:r}):window.fbq("track",e,t??{}))}const MUe=6e4,IUe=1e4;function PUe(e,t=Date.now()){var s;if(!(e!=null&&e.created_at))return!1;const r=new Date(e.created_at).getTime();if(Number.isNaN(r))return!1;const n=t-r;if(n<-IUe||n>MUe)return!1;const a=(s=e.app_metadata)==null?void 0:s.provider;return!(!a||a==="email")}function LUe(e){if(!(e!=null&&e.user))return!1;const t=e.user.identities;return Array.isArray(t)&&t.length>0}const k_e="meta:oauth_signup_fired:";function OUe(e){return typeof window>"u"?!1:sessionStorage.getItem(k_e+e)==="1"}function RUe(e){typeof window>"u"||sessionStorage.setItem(k_e+e,"1")}const DUe=10,FUe=500;let yde=null,Cee=0;function $Ue(e){const t=e==null?void 0:e.email;!e||!t||yde===t||(yde=t,Cee+=1,__e(t,e.id,BUe(e.user_metadata),0,Cee))}function BUe(e){const t=e??{},r=typeof t.first_name=="string"?t.first_name.trim():"";return r||(typeof t.full_name=="string"?t.full_name:typeof t.name=="string"?t.name:"").trim().split(/\s+/)[0]||null}function __e(e,t,r,n,a){if(a!==Cee)return;const s=window,o=s.barua??s.concierge;if(o!=null&&o.identify){r?o.identify(e,t,{first_name:r}):o.identify(e,t);return}n<DUe&&setTimeout(()=>__e(e,t,r,n+1,a),FUe)}const _0=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid","gbraid","wbraid"],HU="kibbi_attribution",zUe=30*24*60*60*1e3,UUe=["code","token","token_hash","access_token","refresh_token","authorization_id"];function h3(e){if(!e)return e;try{const t=new URL(e);for(const r of UUe)t.searchParams.delete(r);return t.hash="",t.toString()}catch{return e}}function eie(){try{const e=localStorage.getItem(HU);if(!e)return null;const t=JSON.parse(e);if(!t||typeof t!="object"||!t.captured_at)return localStorage.removeItem(HU),null;const r=new Date(t.captured_at).getTime();return!Number.isFinite(r)||Date.now()-r>zUe?(localStorage.removeItem(HU),null):{...t,params:t.params??{}}}catch{return null}}function vde(e){try{return localStorage.setItem(HU,JSON.stringify(e)),!0}catch{return!1}}function tie(){const e={};try{for(const t of _0){const r=sessionStorage.getItem(t);r&&(e[t]=r)}}catch{}return e}function qUe(){try{for(const e of _0)sessionStorage.removeItem(e)}catch{}}function HUe(){if(typeof window>"u")return;const e=new URLSearchParams(window.location.search);if(_0.some(r=>e.has(r))){const r={};for(const a of _0){const s=e.get(a);s&&(r[a]=s)}const n=vde({params:r,landing_page:h3(window.location.href),referrer:h3(document.referrer),captured_at:new Date().toISOString()});if(qUe(),!n)try{for(const[a,s]of Object.entries(r))sessionStorage.setItem(a,s)}catch{}return}eie()||vde({params:tie(),landing_page:h3(window.location.href),referrer:h3(document.referrer),captured_at:new Date().toISOString()})}function VUe(){const e=eie();return e?e.params:tie()}function WUe(e){if(typeof window>"u")return e;const t=new URLSearchParams,r=VUe();
7842for(const o of _0){const l=r[o];l&&t.set(o,l)}const n=new URLSearchParams(window.location.search);for(const o of _0){const l=n.get(o);l&&t.set(o,l)}const a=t.toString();if(!a)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${a}`}function rie(){if(typeof window>"u")return null;const e=eie();if(e){const n={...e.params};return e.landing_page&&(n.initial_landing_page=e.landing_page),e.referrer&&(n.initial_referrer=e.referrer),n.attribution_captured_at=e.captured_at,navigator!=null&&navigator.userAgent&&(n.signup_user_agent=navigator.userAgent),n}const t=tie();if(Object.keys(t).length===0)return null;const r={...t};return navigator!=null&&navigator.userAgent&&(r.signup_user_agent=navigator.userAgent),r}const GUe=10*60*1e3;function KUe(e){var r;if(!(e!=null&&e.created_at)||(r=e.user_metadata)!=null&&r.attribution)return!1;const t=new Date(e.created_at).getTime();return Number.isFinite(t)?Date.now()-t<GUe:!1}function YUe(e){const t={};if(!e)return t;for(const r of _0){const n=e[r];n&&(t[r]=n,t[`$initial_${r}`]=n)}if(e.initial_landing_page&&(t.initial_landing_page=e.initial_landing_page,t.$initial_current_url=e.initial_landing_page),e.initial_referrer){t.initial_referrer=e.initial_referrer,t.$initial_referrer=e.initial_referrer;try{t.$initial_referring_domain=new URL(e.initial_referrer).host}catch{}}return e.attribution_captured_at&&(t.attribution_captured_at=e.attribution_captured_at),t}const xde=new Set;function XUe(e){if(xde.has(e.id)||!KUe(e))return;const t=rie();t&&(xde.add(e.id),oe.auth.updateUser({data:{attribution:t}}).catch(r=>{console.warn("AuthContext: Failed to backfill signup attribution:",r)}))}const S_e=k.createContext(void 0);function ZUe({children:e}){const[t,r]=k.useState(null),[n,a]=k.useState(null),[s,o]=k.useState(!0),[l,c]=k.useState(!1),u=k.useRef(0),{subscriptionStatus:d,profile:h,isLoading:f,refresh:p,clear:y}=TUe(t);k.useEffect(()=>{console.log("AuthContext: Setting up auth listener");let _=!0;const w=(N,A=(N==null?void 0:N.user)??null,$=!1)=>{a(N),r(A),o(!1),c($)},j=async N=>{var A;if(!(!_||N!==u.current))try{const $=await b_e();if(!_||N!==u.current||$.session&&$.session.user.id!==((A=$.user)==null?void 0:A.id))return;w($.session,$.user,!0),$.session||y(),$.user&&(XUe($.user),$Ue($.user))}catch($){if(!_||N!==u.current)return;console.warn("AuthContext: Session verification failed",$),w(null,null,!0),y()}},{data:{subscription:E}}=oe.auth.onAuthStateChange((N,A)=>{var T,F;if(!_)return;const $=++u.current;if(N==="INITIAL_SESSION"){w(A),setTimeout(()=>{j($)},0);return}if(console.log("AuthContext: Auth state changed",{event:N,hasSession:!!A,user:(T=A==null?void 0:A.user)==null?void 0:T.id}),w(A,(A==null?void 0:A.user)??null,!A),A&&setTimeout(()=>{j($)},0),N==="SIGNED_IN"&&(A!=null&&A.user)){const M=new Date(A.user.created_at);new Date().getTime()-M.getTime()<1e4&&setTimeout(()=>{oe.functions.invoke("add-user-to-loops",{body:{email:A.user.email,userId:A.user.id,operation:"create",signedUpAt:A.user.created_at,source:"signup"}}).then(()=>{console.log("OAuth user added to Loops:",A.user.email)}).catch(W=>{console.warn("Failed to add OAuth user to Loops:",W)})},0),PUe(A.user)&&!OUe(A.user.id)&&(Jae("CompleteRegistration",{content_name:"Kibbi signup",method:(F=A.user.app_metadata)==null?void 0:F.provider},`signup-${A.user.id}`),RUe(A.user.id)),setTimeout(()=>{p(!1).catch(W=>{console.warn("AuthContext: Failed to refresh subscription after SIGNED_IN",W)})},0)}N==="SIGNED_OUT"&&(y(),w(null,null,!0))}),C=u.current;return setTimeout(()=>{j(C)},0),()=>{_=!1,u.current+=1,E.unsubscribe()}},[]);const x={user:t,session:n,loading:s,authVerified:l,subscriptionStatus:d,profile:h,subscriptionLoading:f,signUp:async(_,w)=>{var $;const j=`${window.location.origin}/app/story-mode`,E=rie(),{error:C,data:N}=await oe.auth.signUp({email:_,password:w,options:{emailRedirectTo:j,...E?{data:{attribution:E}}:{}}}),A=!C&&LUe(N);if(A&&N.user)try{await oe.functions.invoke("add-user-to-loops",{body:{email:N.user.email,userId:N.user.id,operation:"create",signedUpAt:new Date().toISOString(),source:"signup"}}),console.log("User added to Loops:",N.user.email)}catch(T){console.warn("Failed to add user to Loops:",T)}return{error:C,isNewSignup:A,newUserId:A?(($=N.user)==null?void 0:$.id)??null:null}},signIn:async(_,w)=>{const{error:j}=await oe.auth.signInWithPassword({email:_,password:w});return{error:j}}
7842,signInWithGoogle:async()=>{const w=new URLSearchParams(window.location.search).get("redirect"),j=w&&w.startsWith("/")&&!w.startsWith("//")?w:null,E=j?`${window.location.origin}${j}`:`${window.location.origin}/signup`,{error:C}=await oe.auth.signInWithOAuth({provider:"google",options:{redirectTo:E,queryParams:{access_type:"offline",prompt:"consent"}}});return{error:C}},signOut:async()=>{u.current+=1,c(!1);try{window.posthog&&window.posthog.reset()}catch(_){console.warn("PostHog reset failed during signOut:",_)}try{await Promise.race([oe.auth.signOut(),new Promise((_,w)=>setTimeout(()=>w(new Error("signOut timeout")),3e3))])}catch(_){console.warn("signOut network call failed or timed out, clearing locally:",_);try{await Promise.race([oe.auth.signOut({scope:"local"}),new Promise((w,j)=>setTimeout(()=>j(new Error("local signOut timeout")),1e3))])}catch(w){console.warn("Local signOut also failed:",w)}}finally{a(null),r(null),c(!0),y()}},refreshSubscription:p};return i.jsx(S_e.Provider,{value:x,children:e})}function er(){const e=k.useContext(S_e);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}const j_e=k.createContext(void 0),QUe=({children:e})=>{const[t,r]=k.useState(!1),n=()=>r(!0),a=()=>r(!1);return i.jsx(j_e.Provider,{value:{isOpen:t,openChatbot:n,closeChatbot:a},children:e})},E_e=()=>{const e=k.useContext(j_e);if(!e)throw new Error("useChatbot must be used within ChatbotProvider");return e};var Te=typeof window<"u"?window:void 0,ps=typeof globalThis<"u"?globalThis:Te,C_e=Array.prototype,bde=C_e.forEach,wde=C_e.indexOf,qs=ps==null?void 0:ps.navigator,vt=ps==null?void 0:ps.document,hs=ps==null?void 0:ps.location,Nee=ps==null?void 0:ps.fetch,Tee=ps!=null&&ps.XMLHttpRequest&&"withCredentials"in new ps.XMLHttpRequest?ps.XMLHttpRequest:void 0,kde=ps==null?void 0:ps.AbortController,cs=qs==null?void 0:qs.userAgent,Gt=Te??{},Hc={DEBUG:!1,LIB_VERSION:"1.281.0"};function _de(e,t,r,n,a,s,o){try{var l=e[s](o),c=l.value}catch(u){return void r(u)}l.done?t(c):Promise.resolve(c).then(n,a)}function Sde(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var s=e.apply(t,r);function o(c){_de(s,n,a,o,l,"next",c)}function l(c){_de(s,n,a,o,l,"throw",c)}o(void 0)})}}function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mt.apply(null,arguments)}function N_e(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var JUe=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function pr(e,t){return e.indexOf(t)!==-1}var gW=function(e){return e.trim()},Aee=function(e){return e.replace(/^\$/,"")},eqe=Array.isArray,T_e=Object.prototype,A_e=T_e.hasOwnProperty,yW=T_e.toString,bn=eqe||function(e){return yW.call(e)==="[object Array]"},Xd=e=>typeof e=="function",ji=e=>e===Object(e)&&!bn(e),ry=e=>{if(ji(e)){for(var t in e)if(A_e.call(e,t))return!1;return!0}return!1},gt=e=>e===void 0,Pa=e=>yW.call(e)=="[object String]",Mee=e=>Pa(e)&&e.trim().length===0,Ru=e=>e===null,xn=e=>gt(e)||Ru(e),gc=e=>yW.call(e)=="[object Number]",Zd=e=>yW.call(e)==="[object Boolean]",tqe=e=>e instanceof FormData,rqe=e=>pr(JUe,e);function Iee(e){return e===null||typeof e!="object"}function Hq(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function M_e(e){return!gt(Event)&&function(t,r){try{return t instanceof r}catch{return!1}}(e,Event)}var nqe=[!0,"true",1,"1","yes"],vY=e=>pr(nqe,e),aqe=[!1,"false",0,"0","no"];function Xl(e,t,r,n,a){return t>r&&(n.warn("min cannot be greater than max."),t=r),gc(e)?e>r?(n.warn(" cannot be greater than max: "+r+". Using max value instead."),r):e<t?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+a),Xl(a||r,t,r,n))}class iqe{constructor(t){this.t={},this.i=t.i,this.o=Xl(t.bucketSize,0,100,t.h),this.m=Xl(t.refillRate,0,this.o,t.h),this.S=Xl(t.refillInterval,0,864e5,t.h)}$(t,r){var n=r-t.lastAccess,a=Math.floor(n/this.S);if(a>0){var s=a*this.m;t.tokens=Math.min(t.tokens+s,this.o),t.lastAccess=t.lastAccess+a*this.S}}consumeRateLimit(t){var r,n=Date.now(),a=String(t),s=this.t[a];return s?this.$(s,n):(s={tokens:this.o,lastAccess:n},this.t[a]=s),s.tokens===0||(s.tokens--,s.tokens===0&&((r=this.i)==null||r.call(this,t)),s.tokens===0)}stop(){this.t={}}}var f3,jde,xY,sqe=e=>e instanceof Error;function oqe(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return xY&&r.length===jde||(jde=r.length,xY=r.reduce((n,a)=>{f3||(f3={});var s=f3[a];if(s)n[s[0]]=s[1];else for(var o=e(a),l=o.length-1;l>=0;l--){var c=o[l],u=c==null?void 0:c.filename,d=t[a];if(u&&d){n[u]=d,f3[a]=[u,d];break}}return n},{})),xY}}var m2="?";function Pee(e,t,r,n){var a={platform:"web:javascript",filename:e,function:t==="<anonymous>"?m2:t,in_app:!0};return gt(r)||(a.lineno=r),gt(n)||(a.colno=n),a}var I_e=(e,t)=>
vendor: 86,566 bytes, lines 7842-7845
7842{var r=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return r||n?[e.indexOf("@")!==-1?e.split("@")[0]:m2,r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},lqe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,cqe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,uqe=/\((\S*)(?::(\d+))(?::(\d+))\)/,dqe=e=>{var t=lqe.exec(e);if(t){var[,r,n,a]=t;return Pee(r,m2,+n,+a)}var s=cqe.exec(e);if(s){if(s[2]&&s[2].indexOf("eval")===0){var o=uqe.exec(s[2]);o&&(s[2]=o[1],s[3]=o[2],s[4]=o[3])}var[l,c]=I_e(s[1]||m2,s[2]);return Pee(c,l,s[3]?+s[3]:void 0,s[4]?+s[4]:void 0)}},hqe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fqe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,pqe=e=>{var t=hqe.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var r=fqe.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}var n=t[3],a=t[1]||m2;return[a,n]=I_e(a,n),Pee(n,a,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Ede=/\(error: (.*)\)/,Cde=50;function mqe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n,a){a===void 0&&(a=0);for(var s=[],o=n.split(` 7843`),l=a;l<o.length;l++){var c=o[l];if(!(c.length>1024)){var u=Ede.test(c)?c.replace(Ede,"$1"):c;if(!u.match(/\S*Error: /)){for(var d of t){var h=d(u);if(h){s.push(h);break}}if(s.length>=Cde)break}}}return function(f){if(!f.length)return[];var p=Array.from(f);return p.reverse(),p.slice(0,Cde).map(y=>{return Mt({},y,{filename:y.filename||(m=p,m[m.length-1]||{}).filename,function:y.function||m2});var m})}(s)}}class gqe{constructor(t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n=[]),this.coercers=t,this.modifiers=n,this.stackParser=mqe(...r)}buildFromUnknown(t,r){r===void 0&&(r={});var n=r&&r.mechanism||{handled:!0,type:"generic"},a=this.buildCoercingContext(n,r,0).apply(t),s=this.buildParsingContext(),o=this.parseStacktrace(a,s);return{$exception_list:this.convertToExceptionList(o,n),$exception_level:"error"}}modifyFrames(t){var r=this;return Sde(function*(){for(var n of t)n.stacktrace&&n.stacktrace.frames&&bn(n.stacktrace.frames)&&(n.stacktrace.frames=yield r.applyModifiers(n.stacktrace.frames));return t})()}coerceFallback(t){var r;return{type:"Error",value:"Unknown error",stack:(r=t.syntheticException)==null?void 0:r.stack,synthetic:!0}}parseStacktrace(t,r){var n,a;return t.cause!=null&&(n=this.parseStacktrace(t.cause,r)),t.stack!=""&&t.stack!=null&&(a=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?1:0),r.chunkIdMap)),Mt({},t,{cause:n,stack:a})}applyChunkIds(t,r){return t.map(n=>(n.filename&&r&&(n.chunk_id=r[n.filename]),n))}applyCoercers(t,r){for(var n of this.coercers)if(n.match(t))return n.coerce(t,r);return this.coerceFallback(r)}applyModifiers(t){var r=this;return Sde(function*(){var n=t;for(var a of r.modifiers)n=yield a(n);return n})()}convertToExceptionList(t,r){var n,a,s,o={type:t.type,value:t.value,mechanism:{type:(n=r.type)!==null&&n!==void 0?n:"generic",handled:(a=r.handled)===null||a===void 0||a,synthetic:(s=t.synthetic)!==null&&s!==void 0&&s}};t.stack&&(o.stacktrace={type:"raw",frames:t.stack});var l=[o];return t.cause!=null&&l.push(...this.convertToExceptionList(t.cause,Mt({},r,{handled:!0}))),l}buildParsingContext(){return{chunkIdMap:oqe(this.stackParser)}}buildCoercingContext(t,r,n){n===void 0&&(n=0);var a=(s,o)=>{if(o<=4){var l=this.buildCoercingContext(t,r,o);return this.applyCoercers(s,l)}};return Mt({},r,{syntheticException:n==0?r.syntheticException:void 0,mechanism:t,apply:s=>a(s,n),next:s=>a(s,n+1)})}}class yqe{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,r){var n=Pa(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:n?t.stack:void 0,cause:t.cause?r.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var r=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?r+": "+t.message:r}isDOMException(t){return Hq(t,"DOMException")}isDOMError(t){return Hq(t,"DOMError")}}class vqe{match(t){return(r=>r instanceof Error)(t)}coerce(t,r){return{type:this.getType(t),value:this.getMessage(t,r),stack:this.getStack(t),cause:t.cause?r.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,r){var n=t.message;return n.error&&typeof n.error.message=="string"?String(n.error.message):String(n)}getStack(t){return t.stacktrace||t.stack||void 0}}class xqe{constructor(){}match(t){return Hq(t,"ErrorEvent")&&t.error!=null}coerce(t,r){var n,a=r.apply(t.error);return a||{type:"ErrorEvent",value:t.message,stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}}var bqe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class wqe{match(t){return typeof t=="string"}coerce(t,r){var n,[a,s]=this.getInfos(t);return{type:a??"Error",value:s??t,stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(t){var r="Error",n=t,a=t.match(bqe);return a&&(r=a[1],n=a[2]),[r,n]}}var kqe=["fatal","error","warning","log","info","debug"];function P_e(e,t){t===void 0&&(t=40);var r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var n=r.length;n>0;n--){var a=r.slice(0,n).join(", ");if(!(a.length>t))return n===r.length||a.length<=t?a:a.slice(0,t)+"..."}return""}class _qe{match(t){return typeof t=="object"&&t!==null}coerce(t,r){var n,a=this.getErrorPropertyFromObject(t);return a?r.apply(a):{type:this.getType(t),value:this.getValue(t),stack:(n=r.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return M_e(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var r="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(r+=" with message: '"+t.message+"'"),r}if("message"in t&&typeof t.message=="string")return t.message;var n=this.getObjectClassName(t);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+P_e(t)}isSeverityLevel(t){return Pa(t)&&!Mee(t)&&kqe.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=t[r];if(sqe(n))return n}}getObjectClassName(t){try{var r=Object.getPrototypeOf(t);return r?r.constructor.name:void 0}catch{return}}}class Sqe{match(t){return M_e(t)}coerce(t,r){var n,a=t.constructor.name;return{type:a,value:a+" captured as exception with keys: "+P_e(t),stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class jqe{match(t){return Iee(t)}coerce(t,r){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class Eqe{match(t){return Hq(t,"PromiseRejectionEvent")}coerce(t,r){var n,a=this.getUnhandledRejectionReason(t);return Iee(a)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(a),stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}:r.apply(a)}getUnhandledRejectionReason(t){if(Iee(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var L_e=e=>{var t={k:function(r){if(Te&&(Hc.DEBUG||Gt.POSTHOG_DEBUG)&&!gt(Te.console)&&Te.console){for(var n=("__rrweb_original__"in Te.console[r])?Te.console[r].__rrweb_original__:Te.console[r],a=arguments.length,s=new Array(a>1?a-1:0),o=1;o<a;o++)s[o-1]=arguments[o];n(e,...s)}},info:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];t.k("log",...n)},warn:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];t.k("warn",...n)},error:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];t.k("error",...n)},critical:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];console.error(e,...n)},uninitializedWarning:r=>{t.error("You must initialize PostHog before calling "+r)},createLogger:r=>L_e(e+" "+r)};return t},St=L_e("[PostHog.js]"),ti=St.createLogger,Cqe=ti("[ExternalScriptsLoader]"),Nde=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return Cqe.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var n=vt==null?void 0:vt.querySelectorAll("script");if(n){for(var a,s=function(){if(n[o].src===t){var c=n[o];return c.__posthog_loading_callback_fired?{v:r()}:(c.addEventListener("load",u=>{c.__posthog_loading_callback_fired=!0,r(void 0,u)}),c.onerror=u=>r(u),{v:void 0})}},o=0;o<n.length;o++)if(a=s())return a.v}var l=()=>{if(!vt)return r("document not found");var c=vt.createElement("script");if(c.type="text/javascript",c.crossOrigin="anonymous",c.src=t,c.onload=h=>{c.__posthog_loading_callback_fired=!0,r(void 0,h)},c.onerror=h=>r(h),e.config.prepare_external_dependency_script&&(c=e.config.prepare_external_dependency_script(c)),!c)return r("prepare_external_dependency_script returned null");var u,d=vt.querySelectorAll("body > script");d.length>0?(u=d[0].parentNode)==null||u.insertBefore(c,d[0]):vt.body.appendChild(c)};vt!=null&&vt.body?l():vt==null||vt.addEventListener("DOMContentLoaded",l)};Gt.__PosthogExtensions__=Gt.__PosthogExtensions__||{},Gt.__PosthogExtensions__.loadExternalDependency=(e,t,r)=>{var n="/static/"+t+".js?v="+e.version;if(t==="remote-config"&&(n="/array/"+e.config.token+"/config.js"),t==="toolbar"){var a=3e5;n=n+"&t="+Math.floor(Date.now()/a)*a}var s=e.requestRouter.endpointFor("assets",n);Nde(e,s,r)},Gt.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);Nde(e,n,r)};var Vq={};function Qd(e,t,r){if(bn(e)){if(bde&&e.forEach===bde)e.forEach(t,r);else if("length"in e&&e.length===+e.length){for(var n=0,a=e.length;n<a;n++)if(n in e&&t.call(r,e[n],n)===Vq)return}}}function un(e,t,r){if(!xn(e)){if(bn(e))return Qd(e,t,r);if(tqe(e)){for(var n of e.entries())if(t.call(r,n[1],n[0])===Vq)return}else for(var a in e)if(A_e.call(e,a)&&t.call(r,e[a],a)===Vq)return}}var Yn=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Qd(r,function(a){for(var s in a)a[s]!==void 0&&(e[s]=a[s])}),e},gv=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Qd(r,function(a){Qd(a,function(s){e.push(s)})}),e};function VU(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}var Tde=function(e){try{return e()}catch{return}},Nqe=function(e){return function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}catch(a){St.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),St.critical(a)}}},nie=function(e){var t={};return un(e,function(r,n){(Pa(r)&&r.length>0||gc(r))&&(t[n]=r)}),t};function Tqe(e,t){return r=e,n=s=>Pa(s)&&!Ru(t)?s.slice(0,t):s,a=new Set,function s(o,l){return o!==Object(o)?n?n(o,l):o:a.has(o)?void 0:(a.add(o),bn(o)?(c=[],Qd(o,u=>{c.push(s(u))})):(c={},un(o,(u,d)=>{a.has(u)||(c[d]=s(u,d))})),c);var c}(r);var r,n,a}var Aqe=["herokuapp.com","vercel.app","netlify.app"];function Mqe(e){var t=e==null?void 0:e.hostname;if(!Pa(t))return!1;var r=t.split(".").slice(-2).join(".");for(var n of Aqe)if(r===n)return!1;return!0}function O_e(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function ha(e,t,r,n){var{capture:a=!1,passive:s=!0}=n??{};e==null||e.addEventListener(t,r,{capture:a,passive:s})}var R_e="$people_distinct_id",mb="__alias",gb="__timers",Ade="$autocapture_disabled_server_side",Lee="$heatmaps_enabled_server_side",Mde="$exception_capture_enabled_server_side",Oee="$error_tracking_suppression_rules",Ide="$error_tracking_capture_extension_exceptions",Pde="$web_vitals_enabled_server_side",D_e="$dead_clicks_enabled_server_side",Lde="$web_vitals_allowed_metrics",bY="$session_recording_remote_config",Wq="$sesid",F_e="$session_is_sampled",ny="$enabled_feature_flags",yb="$early_access_features",Ree="$feature_flag_details",vb="$stored_person_properties",w1="$stored_group_properties",Dee="$surveys",p3="$surveys_activated",Gq="$flag_call_reported",Vc="$user_state",Fee="$client_session_props",$ee="$capture_rate_limit",Bee="$initial_campaign_params",zee="$initial_referrer_info",Kq="$initial_person_info",Yq="$epp",$_e="__POSTHOG_TOOLBAR__",jx="$posthog_cookieless",Iqe=[R_e,mb,"__cmpns",gb,"$session_recording_enabled_server_side",Lee,Wq,ny,Oee,Vc,yb,Ree,w1,vb,Dee,Gq,Fee,$ee,Bee,zee,Yq,Kq];function Ode(e){return e instanceof Element&&(e.id===$_e||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function vW(e){return!!e&&e.nodeType===1}function Jd(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function B_e(e){return!!e&&e.nodeType===3}function z_e(e){return!!e&&e.nodeType===11}function aie(e){return e?gW(e).split(/\s+/):[]}function Rde(e){var t=Te==null?void 0:Te.location.href;return!!(t&&e&&e.some(r=>t.match(r)))}function Xq(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return aie(t)}function U_e(e){return xn(e)?null:gW(e).split(/(\s+)/).filter(t=>yk(t)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function xW(e){var t="";return Uee(e)&&!G_e(e)&&e.childNodes&&e.childNodes.length&&un(e.childNodes,function(r){var n;B_e(r)&&r.textContent&&(t+=(n=U_e(r.textContent))!==null&&n!==void 0?n:"")}),gW(t)}function q_e(e){return gt(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var iie=["a","button","form","input","select","textarea","label"];function H_e(e,t){if(gt(t))return!0;var r,n=function(s){if(t.some(o=>s.matches(o)))return{v:!0}};for(var a of e)if(r=n(a))return r.v;return!1}function V_e(e){var t=e.parentNode;return!(!t||!vW(t))&&t}var Dde=[".ph-no-rageclick",".ph-no-capture"],sie=e=>!e||Jd(e,"html")||!vW(e),W_e=(e,t)=>{if(!Te||sie(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],a=e;a.parentNode&&!Jd(a,"body");)if(z_e(a.parentNode))n.push(a.parentNode.host),a=a.parentNode.host;else{var s=V_e(a);if(!s)break;if(t||iie.indexOf(s.tagName.toLowerCase())>-1)r=!0;else{var o=Te.getComputedStyle(s);o&&o.getPropertyValue("cursor")==="pointer"&&(r=!0)}n.push(s),a=s}return{parentIsUsefulElement:r,targetElementList:n}};function Pqe(e,t,r,n,a){var s,o,l,c;if(r===void 0&&(r=void 0),!Te||sie(e)||(s=r)!=null&&s.url_allowlist&&!Rde(r.url_allowlist)||(o=r)!=null&&o.url_ignorelist&&Rde(r.url_ignorelist))return!1;if((l=r)!=null&&l.dom_event_allowlist){var u=r.dom_event_allowlist;if(u&&!u.some(y=>t.type===y))return!1}var{parentIsUsefulElement:d,targetElementList:h}=W_e(e,n);if(!function(y,m){var v=m==null?void 0:m.element_allowlist;if(gt(v))return!0;var g,b=function(_){if(v.some(w=>_.tagName.toLowerCase()===w))return{v:!0}};for(var x of y)if(g=b(x))return g.v;return!1}(h,r)||!H_e(h,(c=r)==null?void 0:c.css_selector_allowlist))return!1;var f=Te.getComputedStyle(e);if(f&&f.getPropertyValue("cursor")==="pointer"&&t.type==="click")return!0;var p=e.tagName.toLowerCase();switch(p){case"html":return!1;case"form":return(a||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(a||["change","click"]).indexOf(t.type)>=0;default:return d?(a||["click"]).indexOf(t.type)>=0:(a||["click"]).indexOf(t.type)>=0&&(iie.indexOf(p)>-1||e.getAttribute("contenteditable")==="true")}}function Uee(e){for(var t=e;t.parentNode&&!Jd(t,"body");t=t.parentNode){var r=Xq(t);if(pr(r,"ph-sensitive")||pr(r,"ph-no-capture"))return!1}if(pr(Xq(e),"ph-include"))return!0;var n=e.type||"";if(Pa(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var a=e.name||e.id||"";return!(Pa(a)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g,"")))}function G_e(e){return!!(Jd(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Jd(e,"select")||Jd(e,"textarea")||e.getAttribute("contenteditable")==="true")}var K_e="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Lqe=new RegExp("^(?:"+K_e+")$"),Oqe=new RegExp(K_e),Y_e="\\d{3}-?\\d{2}-?\\d{4}",Rqe=new RegExp("^("+Y_e+")$"),Dqe=new RegExp("("+Y_e+")");function yk(e,t){return t===void 0&&(t=!0),!(xn(e)||Pa(e)&&(e=gW(e),(t?Lqe:Oqe).test((e||"").replace(/[- ]/g,""))||(t?Rqe:Dqe).test(e)))}function X_e(e){var t=xW(e);return yk(t=(t+" "+Z_e(e)).trim())?t:""}function Z_e(e){var t="";return e&&e.childNodes&&e.childNodes.length&&un(e.childNodes,function(r){var n;if(r&&((n=r.tagName)==null?void 0:n.toLowerCase())==="span")try{var a=xW(r);t=(t+" "+a).trim(),r.childNodes&&r.childNodes.length&&(t=(t+" "+Z_e(r)).trim())}catch(s){St.error("[AutoCapture]",s)}}),t}function Fqe(e){return function(t){var r=t.map(n=>{var a,s,o="";if(n.tag_name&&(o+=n.tag_name),n.attr_class)for(var l of(n.attr_class.sort(),n.attr_class))o+="."+l.replace(/"/g,"");var c=Mt({},n.text?{text:n.text}:{},{"nth-child":(a=n.nth_child)!==null&&a!==void 0?a:0,"nth-of-type":(s=n.nth_of_type)!==null&&s!==void 0?s:0},n.href?{href:n.href}:{},n.attr_id?{attr_id:n.attr_id}:{},n.attributes),u={};return VU(c).sort((d,h)=>{var[f]=d,[p]=h;return f.localeCompare(p)}).forEach(d=>{var[h,f]=d;return u[Fde(h.toString())]=Fde(f.toString())}),o+=":",o+=VU(u).map(d=>{var[h,f]=d;return h+'="'+f+'"'}).join("")});return r.join(";")}(function(t){return t.map(r=>{var n,a,s={text:(n=r.$el_text)==null?void 0:n.slice(0,400),tag_name:r.tag_name,href:(a=r.attr__href)==null?void 0:a.slice(0,2048),attr_class:$qe(r),attr_id:r.attr__id,nth_child:r.nth_child,nth_of_type:r.nth_of_type,attributes:{}};return VU(r).filter(o=>{var[l]=o;return l.indexOf("attr__")===0}).forEach(o=>{var[l,c]=o;return s.attributes[l]=c}),s})}(e))}function Fde(e){return e.replace(/"|\\"/g,'\\"')}function $qe(e){var t=e.attr__class;return t?bn(t)?t:aie(t):void 0}class Q_e{constructor(){this.clicks=[]}isRageClick(t,r,n){var a=this.clicks[this.clicks.length-1];if(a&&Math.abs(t-a.x)+Math.abs(r-a.y)<30&&n-a.timestamp<1e3){if(this.clicks.push({x:t,y:r,timestamp:n}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:r,timestamp:n}];return!1}}var wY="$copy_autocapture",Jc=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),Zq=e=>{var t=vt==null?void 0:vt.createElement("a");return gt(t)?null:(t.href=e,t)},Bqe=function(e,t){var r,n;t===void 0&&(t="&");var a=[];return un(e,function(s,o){gt(s)||gt(o)||o==="undefined"||(r=encodeURIComponent((l=>l instanceof File)(s)?s.name:s.toString()),n=encodeURIComponent(o),a[a.length]=n+"="+r)}),a.join(t)},Qq=function(e,t){for(var r,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),a=0;a<n.length;a++){var s=n[a].split("=");if(s[0]===t){r=s;break}}if(!bn(r)||r.length<2)return"";var o=r[1];try{o=decodeURIComponent(o)}catch{St.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},D_=function(e,t,r){if(!e||!t||!t.length)return e;for(var n=e.split("#"),a=n[0]||"",s=n[1],o=a.split("?"),l=o[1],c=o[0],u=(l||"").split("&"),d=[],h=0;h<u.length;h++){var f=u[h].split("=");bn(f)&&(t.includes(f[0])?d.push(f[0]+"="+r):d.push(u[h]))}var p=c;return l!=null&&(p+="?"+d.join("&")),s!=null&&(p+="#"+s),p},Jq=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},$de=ti("[AutoCapture]");function kY(e,t){return t.length>e?t.slice(0,e)+"...":t}function zqe(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!vW(t));return t}function Uqe(e,t,r,n){var a=e.tagName.toLowerCase(),s={tag_name:a};iie.indexOf(a)>-1&&!r&&(a.toLowerCase()==="a"||a.toLowerCase()==="button"?s.$el_text=kY(1024,X_e(e)):s.$el_text=kY(1024,xW(e)));var o=Xq(e);o.length>0&&(s.classes=o.filter(function(d){return d!==""})),un(e.attributes,function(d){var h;if((!G_e(e)||["name","id","class","aria-label"].indexOf(d.name)!==-1)&&(n==null||!n.includes(d.name))&&!t&&yk(d.value)&&(h=d.name,!Pa(h)||h.substring(0,10)!=="_ngcontent"&&h.substring(0,7)!=="_nghost")){var f=d.value;d.name==="class"&&(f=aie(f).join(" ")),s["attr__"+d.name]=kY(1024,f)}});for(var l=1,c=1,u=e;u=zqe(u);)l++,u.tagName===e.tagName&&c++;return s.nth_child=l,s.nth_of_type=c,s}function qqe(e,t){for(var r,n,{e:a,maskAllElementAttributes:s,maskAllText:o,elementAttributeIgnoreList:l,elementsChainAsString:c}=t,u=[e],d=e;d.parentNode&&!Jd(d,"body");)z_e(d.parentNode)?(u.push(d.parentNode.host),d=d.parentNode.host):(u.push(d.parentNode),d=d.parentNode);var h,f=[],p={},y=!1,m=!1;if(un(u,_=>{var w=Uee(_);_.tagName.toLowerCase()==="a"&&(y=_.getAttribute("href"),y=w&&y&&yk(y)&&y),pr(Xq(_),"ph-no-capture")&&(m=!0),f.push(Uqe(_,s,o,l));var j=function(E){if(!Uee(E))return{};var C={};return un(E.attributes,function(N){if(N.name&&N.name.indexOf("data-ph-capture-attribute")===0){var A=N.name.replace("data-ph-capture-attribute-",""),$=N.value;A&&$&&yk($)&&(C[A]=$)}}),C}(_);Yn(p,j)}),m)return{props:{},explicitNoCapture:m};if(o||(e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?f[0].$el_text=X_e(e):f[0].$el_text=xW(e)),y){var v,g;f[0].attr__href=y;var b=(v=Zq(y))==null?void 0:v.host,x=Te==null||(g=Te.location)==null?void 0:g.host;b&&x&&b!==x&&(h=y)}return{props:Yn({$event_type:a.type,$ce_version:1},c?{}:{$elements:f},{$elements_chain:Fqe(f)},(r=f[0])!=null&&r.$el_text?{$el_text:(n=f[0])==null?void 0:n.$el_text}:{},h&&a.type==="click"?{$external_click_url:h}:{},p)}}let Hqe=class{constructor(t){this.P=!1,this.T=null,this.rageclicks=new Q_e,this.R=!1,this.instance=t,this.I=null}get C(){var t,r,n=ji(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(t=n.url_allowlist)==null?void 0:t.map(a=>new RegExp(a)),n.url_ignorelist=(r=n.url_ignorelist)==null?void 0:r.map(a=>new RegExp(a)),n}O(){if(this.isBrowserSupported()){if(Te&&vt){var t=n=>{n=n||(Te==null?void 0:Te.event);try{this.F(n)}catch(a){$de.error("Failed to capture event",a)}};if(ha(vt,"submit",t,{capture:!0}),ha(vt,"change",t,{capture:!0}),ha(vt,"click",t,{capture:!0}),this.C.capture_copied_text){var r=n=>{n=n||(Te==null?void 0:Te.event),this.F(n,wY)};ha(vt,"copy",r,{capture:!0}),ha(vt,"cut",r,{capture:!0})}}}else $de.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.O(),this.P=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.R=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Ade]:!!t.autocapture_opt_out}),this.T=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.I=t}getElementSelectors(t){var r,n=[];return(r=this.I)==null||r.forEach(a=>{var s=vt==null?void 0:vt.querySelectorAll(a);s==null||s.forEach(o=>{t===o&&n.push(a)})}),n}get isEnabled(){var t,r,n=(t=this.instance.persistence)==null?void 0:t.props[Ade],a=this.T;if(Ru(a)&&!Zd(n)&&!this.instance.M())return!1;var s=(r=this.T)!==null&&r!==void 0?r:!!n;return!!this.instance.config.autocapture&&!s}F(t,r){if(r===void 0&&(r="$autocapture"),this.isEnabled){var n,a=q_e(t);B_e(a)&&(a=a.parentNode||null),r==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&function(f,p){if(!Te||sie(f))return!1;var y,m;if((y=Zd(p)?!!p&&Dde:(m=p==null?void 0:p.css_selector_ignorelist)!==null&&m!==void 0?m:Dde)===!1)return!1;var{targetElementList:v}=W_e(f,!1);return!H_e(v,y)}(a,this.instance.config.rageclick)&&this.F(t,"$rageclick");var s=r===wY;if(a&&Pqe(a,t,this.C,s,s?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:l}=qqe(a,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.C.element_attribute_ignorelist,elementsChainAsString:this.R});if(l)return!1;var c=this.getElementSelectors(a);if(c&&c.length>0&&(o.$element_selectors=c),r===wY){var u,d=U_e(Te==null||(u=Te.getSelection())==null?void 0:u.toString()),h=t.type||"clipboard";if(!d)return!1;o.$selected_content=d,o.$copy_type=h}return this.instance.capture(r,o),!0}}}isBrowserSupported(){return Xd(vt==null?void 0:vt.querySelectorAll)}};Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return gc(e)&&isFinite(e)&&Math.floor(e)===e});var Bde="0123456789abcdef";let Vqe=class qee{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,r,n,a){if(!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||!Number.isInteger(a)||t<0||r<0||n<0||a<0||t>0xffffffffffff||r>4095||n>1073741823||a>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=t/Math.pow(2,40),s[1]=t/Math.pow(2,32),s[2]=t/Math.pow(2,24),s[3]=t/Math.pow(2,16),s[4]=t/Math.pow(2,8),s[5]=t,s[6]=112|r>>>8,s[7]=r,s[8]=128|n>>>24,s[9]=n>>>16,s[10]=n>>>8,s[11]=n,s[12]=a>>>24,s[13]=a>>>16,s[14]=a>>>8,s[15]=a,new qee(s)}toString(){for(var t="",r=0;r<this.bytes.length;r++)t=t+Bde.charAt(this.bytes[r]>>>4)+Bde.charAt(15&this.bytes[r]),r!==3&&r!==5&&r!==7&&r!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new qee(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var r=0;r<16;r++){var n=this.bytes[r]-t.bytes[r];if(n!==0)return Math.sign(n)}return 0}};class Wqe{constructor(){this.A=0,this.D=0,this.j=new Gqe}generate(){var t=this.generateOrAbort();if(gt(t)){this.A=0;var r=this.generateOrAbort();if(gt(r))throw new Error("Could not generate UUID after timestamp reset");return r}return t}generateOrAbort(){var t=Date.now();if(t>this.A)this.A=t,this.L();else{if(!(t+1e4>this.A))return;this.D++,this.D>4398046511103&&(this.A++,this.L())}return Vqe.fromFieldsV7(this.A,Math.trunc(this.D/Math.pow(2,30)),this.D&Math.pow(2,30)-1,this.j.nextUint32())}L(){this.D=1024*this.j.nextUint32()+(1023&this.j.nextUint32())}}var zde,J_e=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};Te&&!gt(Te.crypto)&&crypto.getRandomValues&&(J_e=e=>crypto.getRandomValues(e));let Gqe=class{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(J_e(this.N),this.U=0),this.N[this.U++]}};var Md=()=>Kqe().toString(),Kqe=()=>(zde||(zde=new Wqe)).generate(),Ex="",Yqe=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function Xqe(e,t){if(t){var r=function(a,s){if(s===void 0&&(s=vt),Ex)return Ex;if(!s||["localhost","127.0.0.1"].includes(a))return"";for(var o=a.split("."),l=Math.min(o.length,8),c="dmn_chk_"+Md();!Ex&&l--;){var u=o.slice(l).join("."),d=c+"=1;domain=."+u+";path=/";s.cookie=d+";max-age=3",s.cookie.includes(c)&&(s.cookie=d+";max-age=0",Ex=u)}return Ex}(e);if(!r){var n=(a=>{var s=a.match(Yqe);return s?s[0]:""})(e);n!==r&&St.info("Warning: cookie subdomain discovery mismatch",n,r),r=n}return r?"; domain=."+r:""}return""}var hc={H:()=>!!vt,B:function(e){St.error("cookieStore error: "+e)},q:function(e){if(vt){try{for(var t=e+"=",r=vt.cookie.split(";").filter(s=>s.length),n=0;n<r.length;n++){for(var a=r[n];a.charAt(0)==" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return decodeURIComponent(a.substring(t.length,a.length))}}catch{}return null}},W:function(e){var t;try{t=JSON.parse(hc.q(e))||{}}catch{}return t},G:function(e,t,r,n,a){if(vt)try{var s="",o="",l=Xqe(vt.location.hostname,n);if(r){var c=new Date;c.setTime(c.getTime()+24*r*60*60*1e3),s="; expires="+c.toUTCString()}a&&(o="; secure");var u=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+l+o;return u.length>3686.4&&St.warn("cookieStore warning: large cookie, len="+u.length),vt.cookie=u,u}catch{return}},V:function(e,t){if(vt!=null&&vt.cookie)try{hc.G(e,"",-1,t)}catch{return}}},_Y=null,In={H:function(){if(!Ru(_Y))return _Y;var e=!0;if(gt(Te))e=!1;else try{var t="__mplssupport__";In.G(t,"xyz"),In.q(t)!=='"xyz"'&&(e=!1),In.V(t)}catch{e=!1}return e||St.error("localStorage unsupported; falling back to cookie store"),_Y=e,e},B:function(e){St.error("localStorage error: "+e)},q:function(e){try{return Te==null?void 0:Te.localStorage.getItem(e)}catch(t){In.B(t)}return null},W:function(e){try{return JSON.parse(In.q(e))||{}}catch{}return null},G:function(e,t){try{Te==null||Te.localStorage.setItem(e,JSON.stringify(t))}catch(r){In.B(r)}},V:function(e){try{Te==null||Te.localStorage.removeItem(e)}catch(t){In.B(t)}}},Zqe=["distinct_id",Wq,F_e,Yq,Kq],m3=Mt({},In,{W:function(e){try{var t={};try{t=hc.W(e)||{}}catch{}var r=Yn(t,JSON.parse(In.q(e)||"{}"));return In.G(e,r),r}catch{}return null},G:function(e,t,r,n,a,s){try{In.G(e,t,void 0,void 0,s);var o={};Zqe.forEach(l=>{t[l]&&(o[l]=t[l])}),Object.keys(o).length&&hc.G(e,o,r,n,a,s)}catch(l){In.B(l)}},V:function(e,t){try{Te==null||Te.localStorage.removeItem(e),hc.V(e,t)}catch(r){In.B(r)}}}),g3={},Qqe={H:function(){return!0},B:function(e){St.error("memoryStorage error: "+e)},q:function(e){return g3[e]||null},W:function(e){return g3[e]||null},G:function(e,t){g3[e]=t},V:function(e){delete g3[e]}},Hh=null,oi={H:function(){if(!Ru(Hh))return Hh;if(Hh=!0,gt(Te))Hh=!1;else try{var e="__support__";oi.G(e,"xyz"),oi.q(e)!=='"xyz"'&&(Hh=!1),oi.V(e)}catch{Hh=!1}return Hh},B:function(e){St.error("sessionStorage error: ",e)},q:function(e){try{return Te==null?void 0:Te.sessionStorage.getItem(e)}catch(t){oi.B(t)}return null},W:function(e){try{return JSON.parse(oi.q(e))||null}catch{}return null},G:function(e,t){try{Te==null||Te.sessionStorage.setItem(e,JSON.stringify(t))}catch(r){oi.B(r)}},V:function(e){try{Te==null||Te.sessionStorage.removeItem(e)}catch(t){oi.B(t)}}},Wc=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class Jqe{constructor(t){this._instance=t}get C(){return this._instance.config}get consent(){return this.J()?Wc.DENIED:this.K}isOptedOut(){return this.C.cookieless_mode==="always"||this.consent===Wc.DENIED||this.consent===Wc.PENDING&&(this.C.opt_out_capturing_by_default||this.C.cookieless_mode==="on_reject")}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===Wc.DENIED}optInOut(t){this.Y.G(this.X,t?1:0,this.C.cookie_expiration,this.C.cross_subdomain_cookie,this.C.secure_cookie)}reset(){this.Y.V(this.X,this.C.cross_subdomain_cookie)}get X(){var{token:t,opt_out_capturing_cookie_prefix:r,consent_persistence_name:n}=this._instance.config;return n||(r?r+t:"__ph_opt_in_out_"+t)}get K(){var t=this.Y.q(this.X);return vY(t)?Wc.GRANTED:pr(aqe,t)?Wc.DENIED:Wc.PENDING}get Y(){if(!this.Z){var t=this.C.opt_out_capturing_persistence_type;this.Z=t==="localStorage"?In:hc;var r=t==="localStorage"?hc:In;r.q(this.X)&&(this.Z.q(this.X)||this.optInOut(vY(r.q(this.X))),r.V(this.X,this.C.cross_subdomain_cookie))}return this.Z}J(){return!!this.C.respect_dnt&&!!O_e([qs==null?void 0:qs.doNotTrack,qs==null?void 0:qs.msDoNotTrack,Gt.doNotTrack],t=>vY(t))}}var y3=ti("[Dead Clicks]"),eHe=()=>!0,tHe=e=>{var t,r=!((t=e.instance.persistence)==null||!t.get_property(D_e)),n=e.instance.config.capture_dead_clicks;return Zd(n)?n:r};class e4e{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(t,r,n){this.instance=t,this.isEnabled=r,this.onCapture=n,this.startIfEnabled()}onRemoteConfig(t){this.instance.persistence&&this.instance.persistence.register({[D_e]:t==null?void 0:t.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(t){var r,n;(r=Gt.__PosthogExtensions__)!=null&&r.initDeadClicksAutocapture&&t(),(n=Gt.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",a=>{a?y3.error("failed to load script",a):t()})}et(){var t;if(vt){if(!this.tt&&(t=Gt.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var r=ji(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};r.__onCapture=this.onCapture,this.tt=Gt.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,r),this.tt.start(vt),y3.info("starting...")}}else y3.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,y3.info("stopping..."))}}var Cx=ti("[ExceptionAutocapture]");class rHe{constructor(t){var r,n,a;this.rt=()=>{var s;if(Te&&this.isEnabled&&(s=Gt.__PosthogExtensions__)!=null&&s.errorWrappingFunctions){var o=Gt.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=Gt.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=Gt.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.C.capture_unhandled_errors&&(this.st=o(this.captureException.bind(this))),!this.nt&&this.C.capture_unhandled_rejections&&(this.nt=l(this.captureException.bind(this))),!this.ot&&this.C.capture_console_errors&&(this.ot=c(this.captureException.bind(this)))}catch(u){Cx.error("failed to start",u),this.lt()}}},this._instance=t,this.ut=!((r=this._instance.persistence)==null||!r.props[Mde]),this.C=this.ht(),this.dt=new iqe({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(a=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&a!==void 0?a:10,refillInterval:1e4,h:Cx}),this.startIfEnabled()}ht(){var t=this._instance.config.capture_exceptions,r={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return ji(t)?r=Mt({},r,t):(gt(t)?this.ut:t)&&(r=Mt({},r,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),r}get isEnabled(){return this.C.capture_console_errors||this.C.capture_unhandled_errors||this.C.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(Cx.info("enabled"),this.it(this.rt))}it(t){var r,n;(r=Gt.__PosthogExtensions__)!=null&&r.errorWrappingFunctions&&t(),(n=Gt.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",a=>{if(a)return Cx.error("failed to load script",a);t()})}lt(){var t,r,n;(t=this.st)==null||t.call(this),this.st=void 0,(r=this.nt)==null||r.call(this),this.nt=void 0,(n=this.ot)==null||n.call(this),this.ot=void 0}onRemoteConfig(t){var r=t.autocaptureExceptions;this.ut=!!r||!1,this.C=this.ht(),this._instance.persistence&&this._instance.persistence.register({[Mde]:this.ut}),this.startIfEnabled()}captureException(t){var r,n,a=(r=t==null||(n=t.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&r!==void 0?r:"Exception";this.dt.consumeRateLimit(a)?Cx.info("Skipping exception capture because of client rate limiting.",{exception:a}):this._instance.exceptions.sendExceptionEvent(t)}}function Ude(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],a=r(n);return Xd(a)&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}class nHe{constructor(t){var r;this._instance=t,this.vt=(Te==null||(r=Te.location)==null?void 0:r.pathname)||""}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(St.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,St.info("History API monitoring stopped")}monitorHistoryChanges(){var t,r;if(Te&&Te.history){var n=this;(t=Te.history.pushState)!=null&&t.__posthog_wrapped__||Ude(Te.history,"pushState",a=>function(s,o,l){a.call(this,s,o,l),n.ft("pushState")}),(r=Te.history.replaceState)!=null&&r.__posthog_wrapped__||Ude(Te.history,"replaceState",a=>function(s,o,l){a.call(this,s,o,l),n.ft("replaceState")}),this.gt()}}ft(t){try{var r,n=Te==null||(r=Te.location)==null?void 0:r.pathname;if(!n)return;n!==this.vt&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:t}),this.vt=n}catch(a){St.error("Error capturing "+t+" pageview",a)}}gt(){if(!this.ct){var t=()=>{this.ft("popstate")};ha(Te,"popstate",t),this.ct=()=>{Te&&Te.removeEventListener("popstate",t)}}}}var SY=ti("[SegmentIntegration]");function aHe(e,t){var r=e.config.segment;if(!r)return t();(function(n,a){var s=n.config.segment;if(!s)return a();var o=c=>{var u=()=>c.anonymousId()||Md();n.config.get_device_id=u,c.id()&&(n.register({distinct_id:c.id(),$device_id:u()}),n.persistence.set_property(Vc,"identified")),a()},l=s.user();"then"in l&&Xd(l.then)?l.then(c=>o(c)):o(l)})(e,()=>{r.register((n=>{Promise&&Promise.resolve||SY.warn("This browser does not have Promise support, and can not use the segment integration");var a=(s,o)=>{if(!o)return s;s.event.userId||s.event.anonymousId===n.get_distinct_id()||(SY.info("No userId set, resetting PostHog"),n.reset()),s.event.userId&&s.event.userId!==n.get_distinct_id()&&(SY.info("UserId set, identifying with PostHog"),n.identify(s.event.userId));var l=n.calculateEventProperties(o,s.event.properties);return s.event.properties=Object.assign({},l,s.event.properties),s};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:s=>a(s,s.event.event),page:s=>a(s,"$pageview"),identify:s=>a(s,"$identify"),screen:s=>a(s,"$screen")}})(e)).then(()=>{t()})})}var t4e="posthog-js";function r4e(e,t){var{organization:r,projectId:n,prefix:a,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=t===void 0?{}:t;return l=>{var c,u,d,h,f;if(!(s==="*"||s.includes(l.level))||!e.__loaded)return l;l.tags||(l.tags={});var p=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());l.tags["PostHog Person URL"]=p,e.sessionRecordingStarted()&&(l.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var y=((c=l.exception)==null?void 0:c.values)||[],m=y.map(g=>Mt({},g,{stacktrace:g.stacktrace?Mt({},g.stacktrace,{type:"raw",frames:(g.stacktrace.frames||[]).map(b=>Mt({},b,{platform:"web:javascript"}))}):void 0})),v={$exception_message:((u=y[0])==null?void 0:u.value)||l.message,$exception_type:(d=y[0])==null?void 0:d.type,$exception_level:l.level,$exception_list:m,$sentry_event_id:l.event_id,$sentry_exception:l.exception,$sentry_exception_message:((h=y[0])==null?void 0:h.value)||l.message,$sentry_exception_type:(f=y[0])==null?void 0:f.type,$sentry_tags:l.tags};return r&&n&&(v.$sentry_url=(a||"https://sentry.io/organizations/")+r+"/issues/?project="+n+"&query="+l.event_id),o&&e.exceptions.sendExceptionEvent(v),l}}class iHe{constructor(t,r,n,a,s,o){this.name=t4e,this.setupOnce=function(l){l(r4e(t,{organization:r,projectId:n,prefix:a,severityAllowList:s,sendExceptionsToPostHog:o==null||o}))}}}var sHe=Te!=null&&Te.location?Jq(Te.location.hash,"__posthog")||Jq(location.hash,"state"):null,qde="_postHogToolbarParams",Hde=ti("[Toolbar]"),nd=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(nd||{});class oHe{constructor(t){this.instance=t}_t(t){Gt.ph_toolbar_state=t}yt(){var t;return(t=Gt.ph_toolbar_state)!==null&&t!==void 0?t:nd.UNINITIALIZED}maybeLoadToolbar(t,r,n){if(t===void 0&&(t=void 0),r===void 0&&(r=void 0),n===void 0&&(n=void 0),!Te||!vt)return!1;t=t??Te.location,n=n??Te.history;try{if(!r){try{Te.localStorage.setItem("test","test"),Te.localStorage.removeItem("test")}catch{return!1}r=Te==null?void 0:Te.localStorage}var a,s=sHe||Jq(t.hash,"__posthog")||Jq(t.hash,"state"),o=s?Tde(()=>JSON.parse(atob(decodeURIComponent(s))))||Tde(()=>JSON.parse(decodeURIComponent(s))):null;return o&&o.action==="ph_authorize"?((a=o).source="url",a&&Object.keys(a).length>0&&(o.desiredHash?t.hash=o.desiredHash:n?n.replaceState(n.state,"",t.pathname+t.search):t.hash="")):((a=JSON.parse(r.getItem(qde)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token)&&(this.loadToolbar(a),!0)}catch{return!1}}bt(t){var r=Gt.ph_load_toolbar||Gt.ph_load_editor;!xn(r)&&Xd(r)?r(t,this.instance):Hde.warn("No toolbar load function found")}loadToolbar(t){var r=!(vt==null||!vt.getElementById($_e));if(!Te||r)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Mt({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(Te.localStorage.setItem(qde,JSON.stringify(Mt({},a,{source:void 0}))),this.yt()===nd.LOADED)this.bt(a);else if(this.yt()===nd.UNINITIALIZED){var s;this._t(nd.LOADING),(s=Gt.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"toolbar",o=>{if(o)return Hde.error("[Toolbar] Failed to load",o),void this._t(nd.UNINITIALIZED);this._t(nd.LOADED),this.bt(a)}),ha(Te,"turbolinks:load",()=>{this._t(nd.UNINITIALIZED),this.loadToolbar(a)})}return!0}wt(t){return this.loadToolbar(t)}maybeLoadEditor(t,r,n){return t===void 0&&(t=void 0),r===void 0&&(r=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(t,r,n)}}var lHe=ti("[TracingHeaders]");class cHe{constructor(t){this.xt=void 0,this.St=void 0,this.rt=()=>{var r,n;gt(this.xt)&&((r=Gt.__PosthogExtensions__)==null||(r=r.tracingHeadersPatchFns)==null||r._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),gt(this.St)&&((n=Gt.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}it(t){var r,n;(r=Gt.__PosthogExtensions__)!=null&&r.tracingHeadersPatchFns&&t(),(n=Gt.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",a=>{if(a)return lHe.error("failed to load script",a);t()})}startIfEnabledOrStop(){var t,r;this._instance.config.__add_tracing_headers?this.it(this.rt):((t=this.xt)==null||t.call(this),(r=this.St)==null||r.call(this),this.xt=void 0,this.St=void 0)}}var yo="Mobile",eH="iOS",Zl="Android",vk="Tablet",n4e=Zl+" "+vk,a4e="iPad",i4e="Apple",s4e=i4e+" Watch",xk="Safari",g2="BlackBerry",o4e="Samsung",l4e=o4e+"Browser",c4e=o4e+" Internet",S0="Chrome",uHe=S0+" OS",u4e=S0+" "+eH,oie="Internet Explorer",d4e=oie+" "+yo,lie="Opera",dHe=lie+" Mini",cie="Edge",h4e="Microsoft "+cie,Ly="Firefox",f4e=Ly+" "+eH,bk="Nintendo",wk="PlayStation",Oy="Xbox",p4e=Zl+" "+yo,m4e=yo+" "+xk,xb="Windows",Hee=xb+" Phone",Vde="Nokia",Vee="Ouya",g4e="Generic",hHe=g4e+" "+yo.toLowerCase(),y4e=g4e+" "+vk.toLowerCase(),Wee="Konqueror",Fi="(\\d+(\\.\\d+)?)",jY=new RegExp("Version/"+Fi),fHe=new RegExp(Oy,"i"),pHe=new RegExp(wk+" \\w+","i"),mHe=new RegExp(bk+" \\w+","i"),uie=new RegExp(g2+"|PlayBook|BB10","i"),gHe={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},yHe=(e,t)=>t&&pr(t,i4e)||function(r){return pr(r,xk)&&!pr(r,S0)&&!pr(r,Zl)}(e),v4e=function(e,t){return t=t||"",pr(e," OPR/")&&pr(e,"Mini")?dHe:pr(e," OPR/")?lie:uie.test(e)?g2:pr(e,"IE"+yo)||pr(e,"WPDesktop")?d4e:pr(e,l4e)?c4e:pr(e,cie)||pr(e,"Edg/")?h4e:pr(e,"FBIOS")?"Facebook "+yo:pr(e,"UCWEB")||pr(e,"UCBrowser")?"UC Browser":pr(e,"CriOS")?u4e:pr(e,"CrMo")||pr(e,S0)?S0:pr(e,Zl)&&pr(e,xk)?p4e:pr(e,"FxiOS")?f4e:pr(e.toLowerCase(),Wee.toLowerCase())?Wee:yHe(e,t)?pr(e,yo)?m4e:xk:pr(e,Ly)?Ly:pr(e,"MSIE")||pr(e,"Trident/")?oie:pr(e,"Gecko")?Ly:""},vHe={[d4e]:[new RegExp("rv:"+Fi)],[h4e]:[new RegExp(cie+"?\\/"+Fi)],[S0]:[new RegExp("("+S0+"|CrMo)\\/"+Fi)],[u4e]:[new RegExp("CriOS\\/"+Fi)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Fi)],[xk]:[jY],[m4e]:[jY],[lie]:[new RegExp("(Opera|OPR)\\/"+Fi)],[Ly]:[new RegExp(Ly+"\\/"+Fi)],[f4e]:[new RegExp("FxiOS\\/"+Fi)],[Wee]:[new RegExp("Konqueror[:/]?"+Fi,"i")],[g2]:[new RegExp(g2+" "+Fi),jY],[p4e]:[new RegExp("android\\s"+Fi,"i")],[c4e]:[new RegExp(l4e+"\\/"+Fi)],[oie]:[new RegExp("(rv:|MSIE )"+Fi)],Mozilla:[new RegExp("rv:"+Fi)]},xHe=function(e,t){var r=v4e(e,t),n=vHe[r];if(gt(n))return null;for(var a=0;a<n.length;a++){var s=n[a],o=e.match(s);if(o)return parseFloat(o[o.length-2])}return null},Wde=[[new RegExp(Oy+"; "+Oy+" (.*?)[);]","i"),e=>[Oy,e&&e[1]||""]],[new RegExp(bk,"i"),[bk,""]],[new RegExp(wk,"i"),[wk,""]],[uie,[g2,""]],[new RegExp(xb,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Hee,""];if(new RegExp(yo).test(t)&&!/IEMobile\b/.test(t))return[xb+" "+yo,""];var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=r[1],a=gHe[n]||"";return/arm/i.test(t)&&(a="RT"),[xb,a]}return[xb,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[eH,t.join(".")]}return[eH,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=gt(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Zl+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Zl+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[Zl,t.join(".")]}return[Zl,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var r=[e[1],e[2],e[3]||"0"];t[1]=r.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[uHe,""]],[/Linux|debian/i,["Linux",""]]],Gde=function(e){return mHe.test(e)?bk:pHe.test(e)?wk:fHe.test(e)?Oy:new RegExp(Vee,"i").test(e)?Vee:new RegExp("("+Hee+"|WPDesktop)","i").test(e)?Hee:/iPad/.test(e)?a4e:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?s4e:uie.test(e)?g2:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(Vde,"i").test(e)?Vde:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(yo).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Zl:n4e:Zl:new RegExp("(pda|"+yo+")","i").test(e)?hHe:new RegExp(vk,"i").test(e)&&!new RegExp(vk+" pc","i").test(e)?y4e:""},v3="https?://(.*)",yv=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],bHe=gv(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],yv),F_="<masked>",wHe=["li_fat_id"];function x4e(e,t,r){if(!vt)return{};var n,a=t?gv([],yv,r||[]):[],s=b4e(D_(vt.URL,a,F_),e),o=(n={},un(wHe,function(l){var c=hc.q(l);n[l]=c||null}),n);return Yn(o,s)}function b4e(e,t){var r=bHe.concat(t||[]),n={};return un(r,function(a){var s=Qq(e,a);n[a]=s||null}),n}function w4e(e){var t=function(s){return s?s.search(v3+"google.([^/?]*)")===0?"google":s.search(v3+"bing.com")===0?"bing":s.search(v3+"yahoo.com")===0?"yahoo":s.search(v3+"duckduckgo.com")===0?"duckduckgo":null:null}(e),r=t!="yahoo"?"q":"p",n={};if(!Ru(t)){n.$search_engine=t;var a=vt?Qq(vt.referrer,r):"";a.length&&(n.ph_keyword=a)}return n}function Kde(){return navigator.language||navigator.userLanguage}function k4e(){return(vt==null?void 0:vt.referrer)||"$direct"}function _4e(e,t){var r=e?gv([],yv,t||[]):[],n=hs==null?void 0:hs.href.substring(0,1e3);return{r:k4e().substring(0,1e3),u:n?D_(n,r,F_):void 0}}function S4e(e){var t,{r,u:n}=e,a={$referrer:r,$referring_domain:r==null?void 0:r=="$direct"?"$direct":(t=Zq(r))==null?void 0:t.host};if(n){a.$current_url=n;var s=Zq(n);a.$host=s==null?void 0:s.host,a.$pathname=s==null?void 0:s.pathname;var o=b4e(n);Yn(a,o)}if(r){var l=w4e(r);Yn(a,l)}return a}function j4e(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function kHe(){try{return new Date().getTimezoneOffset()}catch{return}}function _He(e,t){if(!cs)return{};var r,n,a,s=e?gv([],yv,t||[]):[],[o,l]=function(c){for(var u=0;u<Wde.length;u++){var[d,h]=Wde[u],f=d.exec(c),p=f&&(Xd(h)?h(f,c):h);if(p)return p}return["",""]}(cs);return Yn(nie({$os:o,$os_version:l,$browser:v4e(cs,navigator.vendor),$device:Gde(cs),$device_type:(n=cs,a=Gde(n),a===a4e||a===n4e||a==="Kobo"||a==="Kindle Fire"||a===y4e?vk:a===bk||a===Oy||a===wk||a===Vee?"Console":a===s4e?"Wearable":a?yo:"Desktop"),$timezone:j4e(),$timezone_offset:kHe()}),{$current_url:D_(hs==null?void 0:hs.href,s,F_),$host:hs==null?void 0:hs.host,$pathname:hs==null?void 0:hs.pathname,$raw_user_agent:cs.length>1e3?cs.substring(0,997)+"...":cs,$browser_version:xHe(cs,navigator.vendor),$browser_language:Kde(),$browser_language_prefix:(r=Kde(),typeof r=="string"?r.split("-")[0]:void 0),$screen_height:Te==null?void 0:Te.screen.height,$screen_width:Te==null?void 0:Te.screen.width,$viewport_height:Te==null?void 0:Te.innerHeight,$viewport_width:Te==null?void 0:Te.innerWidth,$lib:"web",$lib_version:Hc.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var Zu=ti("[Web Vitals]"),Yde=9e5;class SHe{constructor(t){var r;this.Et=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.$t=()=>{clearTimeout(this.kt),this.N.metrics.length!==0&&(this._instance.capture("$web_vitals",this.N.metrics.reduce((n,a)=>Mt({},n,{["$web_vitals_"+a.name+"_event"]:Mt({},a),["$web_vitals_"+a.name+"_value"]:a.value}),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Pt=n=>{var a,s=(a=this._instance.sessionManager)==null?void 0:a.checkAndGetSessionAndWindowId(!0);if(gt(s))Zu.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.Tt();gt(o)||(xn(n==null?void 0:n.name)||xn(n==null?void 0:n.value)?Zu.error("Invalid metric received",n):this.Rt&&n.value>=this.Rt?Zu.error("Ignoring metric with value >= "+this.Rt,n):(this.N.url!==o&&(this.$t(),this.kt=setTimeout(this.$t,this.flushToCaptureTimeoutMs)),gt(this.N.url)&&(this.N.url=o),this.N.firstMetricTimestamp=gt(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0),this.N.metrics.push(Mt({},n,{$current_url:o,$session_id:s.sessionId,$window_id:s.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.$t()))}},this.rt=()=>{var n,a,s,o,l=Gt.__PosthogExtensions__;gt(l)||gt(l.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:a,onFCP:s,onINP:o}=l.postHogWebVitalsCallbacks),n&&a&&s&&o?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.Pt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&a(this.Pt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&s(this.Pt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&o(this.Pt.bind(this)),this.P=!0):Zu.error("web vitals callbacks not loaded - not starting")},this._instance=t,this.Et=!((r=this._instance.persistence)==null||!r.props[Pde]),this.startIfEnabled()}get allowedMetrics(){var t,r,n=ji(this._instance.config.capture_performance)?(t=this._instance.config.capture_performance)==null?void 0:t.web_vitals_allowed_metrics:void 0;return gt(n)?((r=this._instance.persistence)==null?void 0:r.props[Lde])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(ji(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Rt(){var t=ji(this._instance.config.capture_performance)&&gc(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:Yde;return 0<t&&t<=6e4?Yde:t}get isEnabled(){var t=hs==null?void 0:hs.protocol;if(t!=="http:"&&t!=="https:")return Zu.info("Web Vitals are disabled on non-http/https protocols"),!1;var r=ji(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:Zd(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return Zd(r)?r:this.Et}startIfEnabled(){this.isEnabled&&!this.P&&(Zu.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(t){var r=ji(t.capturePerformance)&&!!t.capturePerformance.web_vitals,n=ji(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Pde]:r}),this._instance.persistence.register({[Lde]:n})),this.Et=r,this.startIfEnabled()}it(t){var r,n;(r=Gt.__PosthogExtensions__)!=null&&r.postHogWebVitalsCallbacks&&t(),(n=Gt.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"web-vitals",a=>{a?Zu.error("failed to load script",a):t()})}Tt(){var t=Te?Te.location.href:void 0;if(t){var r=this._instance.config.mask_personal_data_properties,n=this._instance.config.custom_personal_data_properties,a=r?gv([],yv,n||[]):[];return D_(t,a,F_)}Zu.error("Could not determine current URL")}}var jHe=ti("[Heatmaps]");function Xde(e){return ji(e)&&"clientX"in e&&"clientY"in e&&gc(e.clientX)&&gc(e.clientY)}class EHe{constructor(t){var r;this.rageclicks=new Q_e,this.Et=!1,this.P=!1,this.It=null,this.instance=t,this.Et=!((r=this.instance.persistence)==null||!r.props[Lee])}get flushIntervalMilliseconds(){var t=5e3;return ji(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(t=this.instance.config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return gt(this.instance.config.capture_heatmaps)?gt(this.instance.config.enable_heatmaps)?this.Et:this.instance.config.enable_heatmaps:this.instance.config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.P)return;jHe.info("starting..."),this.Ct(),this.Ot()}else{var t;clearInterval((t=this.It)!==null&&t!==void 0?t:void 0),this.Ft(),this.getAndClearBuffer()}}onRemoteConfig(t){var r=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Lee]:r}),this.Et=r,this.startIfEnabled()}getAndClearBuffer(){var t=this.N;return this.N=void 0,t}Mt(t){this.At(t.originalEvent,"deadclick")}Ot(){this.It&&clearInterval(this.It),this.It=function(t){return(t==null?void 0:t.visibilityState)==="visible"}(vt)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}Ct(){Te&&vt&&(this.jt=this.Dt.bind(this),ha(Te,"beforeunload",this.jt),this.Lt=t=>this.At(t||(Te==null?void 0:Te.event)),ha(vt,"click",this.Lt,{capture:!0}),this.Nt=t=>this.Ut(t||(Te==null?void 0:Te.event)),ha(vt,"mousemove",this.Nt,{capture:!0}),this.zt=new e4e(this.instance,eHe,this.Mt.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ot.bind(this),ha(vt,"visibilitychange",this.Ht),this.P=!0)}Ft(){var t;Te&&vt&&(this.jt&&Te.removeEventListener("beforeunload",this.jt),this.Lt&&vt.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&vt.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&vt.removeEventListener("visibilitychange",this.Ht),clearTimeout(this.Bt),(t=this.zt)==null||t.stop(),this.P=!1)}qt(t,r){var n=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),o=function(l,c,u){for(var d=l;d&&vW(d)&&!Jd(d,"body");){if(d===u)return!1;if(pr(c,Te==null?void 0:Te.getComputedStyle(d).position))return!0;d=V_e(d)}return!1}(q_e(t),["fixed","sticky"],s);return{x:t.clientX+(o?0:a),y:t.clientY+(o?0:n),target_fixed:o,type:r}}At(t,r){var n;if(r===void 0&&(r="click"),!Ode(t.target)&&Xde(t)){var a=this.qt(t,r);(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Wt(Mt({},a,{type:"rageclick"})),this.Wt(a)}}Ut(t){!Ode(t.target)&&Xde(t)&&(clearTimeout(this.Bt),this.Bt=setTimeout(()=>{this.Wt(this.qt(t,"mousemove"))},500))}Wt(t){if(Te){var r=Te.location.href,n=this.instance.config.mask_personal_data_properties,a=this.instance.config.custom_personal_data_properties,s=n?gv([],yv,a||[]):[],o=D_(r,s,F_);this.N=this.N||{},this.N[o]||(this.N[o]=[]),this.N[o].push(t)}}Dt(){this.N&&!ry(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class CHe{constructor(t){this._instance=t}doPageView(t,r){var n,a=this.Gt(t,r);return this.Vt={pathname:(n=Te==null?void 0:Te.location.pathname)!==null&&n!==void 0?n:"",pageViewId:r,timestamp:t},this._instance.scrollManager.resetContext(),a}doPageLeave(t){var r;return this.Gt(t,(r=this.Vt)==null?void 0:r.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.Vt)==null?void 0:t.pageViewId}}Gt(t,r){var n=this.Vt;if(!n)return{$pageview_id:r};var a={$pageview_id:r,$prev_pageview_id:n.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:l,maxScrollY:c,maxContentHeight:u,lastContentY:d,maxContentY:h}=s;if(!(gt(o)||gt(l)||gt(c)||gt(u)||gt(d)||gt(h))){o=Math.ceil(o),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u),d=Math.ceil(d),h=Math.ceil(h);var f=o<=1?1:Xl(l/o,0,1,St),p=o<=1?1:Xl(c/o,0,1,St),y=u<=1?1:Xl(d/u,0,1,St),m=u<=1?1:Xl(h/u,0,1,St);a=Yn(a,{$prev_pageview_last_scroll:l,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:c,$prev_pageview_max_scroll_percentage:p,$prev_pageview_last_content:d,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:m})}}return n.pathname&&(a.$prev_pageview_pathname=n.pathname),n.timestamp&&(a.$prev_pageview_duration=(t.getTime()-n.timestamp.getTime())/1e3),a}}var vo=Uint8Array,ms=Uint16Array,y2=Uint32Array,die=new vo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),hie=new vo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Zde=new vo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),E4e=function(e,t){for(var r=new ms(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var a=new y2(r[30]);for(n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)a[s]=s-r[n]<<5|n;return[r,a]},C4e=E4e(die,2),NHe=C4e[0],Gee=C4e[1];NHe[28]=258,Gee[258]=28;for(var Qde=E4e(hie,0)[1],N4e=new ms(32768),wn=0;wn<32768;++wn){var Vh=(43690&wn)>>>1|(21845&wn)<<1;Vh=(61680&(Vh=(52428&Vh)>>>2|(13107&Vh)<<2))>>>4|(3855&Vh)<<4,N4e[wn]=((65280&Vh)>>>8|(255&Vh)<<8)>>>1}var Ew=function(e,t,r){for(var n=e.length,a=0,s=new ms(t);a<n;++a)++s[e[a]-1];var o,l=new ms(t);for(a=0;a<t;++a)l[a]=l[a-1]+s[a-1]<<1;for(o=new ms(n),a=0;a<n;++a)o[a]=N4e[l[e[a]-1]++]>>>15-e[a];return o},j0=new vo(288);for(wn=0;wn<144;++wn)j0[wn]=8;for(wn=144;wn<256;++wn)j0[wn]=9;for(wn=256;wn<280;++wn)j0[wn]=7;for(wn=280;wn<288;++wn)j0[wn]=8;var tH=new vo(32);for(wn=0;wn<32;++wn)tH[wn]=5;var THe=Ew(j0,9),AHe=Ew(tH,5),T4e=function(e){return(e/8>>0)+(7&e&&1)},A4e=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var n=new(e instanceof ms?ms:e instanceof y2?y2:vo)(r-t);return n.set(e.subarray(t,r)),n},Oc=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},Nx=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},EY=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var a=r.length,s=r.slice();if(!a)return[new vo(0),0];if(a==1){var o=new vo(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(w,j){return w.f-j.f}),r.push({s:-1,f:25001});var l=r[0],c=r[1],u=0,d=1,h=2;for(r[0]={s:-1,f:l.f+c.f,l,r:c};d!=a-1;)l=r[r[u].f<r[h].f?u++:h++],c=r[u!=d&&r[u].f<r[h].f?u++:h++],r[d++]={s:-1,f:l.f+c.f,l,r:c};var f=s[0].s;for(n=1;n<a;++n)s[n].s>f&&(f=s[n].s);var p=new ms(f+1),y=Kee(r[d-1],p,0);if(y>t){n=0;var m=0,v=y-t,g=1<<v;for(s.sort(function(w,j){return p[j.s]-p[w.s]||w.f-j.f});n<a;++n){var b=s[n].s;if(!(p[b]>t))break;m+=g-(1<<y-p[b]),p[b]=t}for(m>>>=v;m>0;){var x=s[n].s;p[x]<t?m-=1<<t-p[x]++-1:++n}for(;n>=0&&m;--n){var _=s[n].s;p[_]==t&&(--p[_],++m)}y=t}return[new vo(p),y]},Kee=function(e,t,r){return e.s==-1?Math.max(Kee(e.l,t,r+1),Kee(e.r,t,r+1)):t[e.s]=r},Jde=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new ms(++t),n=0,a=e[0],s=1,o=function(c){r[n++]=c},l=1;l<=t;++l)if(e[l]==a&&l!=t)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=e[l]}return[r.subarray(0,n),t]},Tx=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},Yee=function(e,t,r){var n=r.length,a=T4e(t+2);e[a]=255&n,e[a+1]=n>>>8,e[a+2]=255^e[a],e[a+3]=255^e[a+1];for(var s=0;s<n;++s)e[a+s+4]=r[s];return 8*(a+4+n)},ehe=function(e,t,r,n,a,s,o,l,c,u,d){Oc(t,d++,r),++a[256];for(var h=EY(a,15),f=h[0],p=h[1],y=EY(s,15),m=y[0],v=y[1],g=Jde(f),b=g[0],x=g[1],_=Jde(m),w=_[0],j=_[1],E=new ms(19),C=0;C<b.length;++C)E[31&b[C]]++;for(C=0;C<w.length;++C)E[31&w[C]]++;for(var N=EY(E,7),A=N[0],$=N[1],T=19;T>4&&!A[Zde[T-1]];--T);var F,M,z,Y,W=u+5<<3,ee=Tx(a,j0)+Tx(s,tH)+o,Z=Tx(a,f)+Tx(s,m)+o+14+3*T+Tx(E,A)+(2*E[16]+3*E[17]+7*E[18]);if(W<=ee&&W<=Z)return Yee(t,d,e.subarray(c,c+u));if(Oc(t,d,1+(Z<ee)),d+=2,Z<ee){F=Ew(f,p),M=f,z=Ew(m,v),Y=m;var V=Ew(A,$);for(Oc(t,d,x-257),Oc(t,d+5,j-1),Oc(t,d+10,T-4),d+=14,C=0;C<T;++C)Oc(t,d+3*C,A[Zde[C]]);d+=3*T;for(var ne=[b,w],P=0;P<2;++P){var R=ne[P];for(C=0;C<R.length;++C){var H=31&R[C];Oc(t,d,V[H]),d+=A[H],H>15&&(Oc(t,d,R[C]>>>5&127),d+=R[C]>>>12)}}}else F=THe,M=j0,z=AHe,Y=tH;for(C=0;C<l;++C)if(n[C]>255){H=n[C]>>>18&31,Nx(t,d,F[H+257]),d+=M[H+257],H>7&&(Oc(t,d,n[C]>>>23&31),d+=die[H]);var re=31&n[C];Nx(t,d,z[re]),d+=Y[re],re>3&&(Nx(t,d,n[C]>>>5&8191),d+=hie[re])}else Nx(t,d,F[n[C]]),d+=M[n[C]];return Nx(t,d,F[256]),d+M[256]},MHe=new y2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),IHe=function(){for(var e=new y2(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),PHe=function(e,t,r,n,a){return function(s,o,l,c,u,d){var h=s.length,f=new vo(c+h+5*(1+Math.floor(h/7e3))+u),p=f.subarray(c,f.length-u),y=0;if(!o||h<8)for(var m=0;m<=h;m+=65535){var v=m+65535;v<h?y=Yee(p,y,s.subarray(m,v)):(p[m]=d,y=Yee(p,y,s.subarray(m,h)))}else{for(var g=MHe[o-1],b=g>>>13,x=8191&g,_=(1<<l)-1,w=new ms(32768),j=new ms(_+1),E=Math.ceil(l/3),C=2*E,N=function(I){return(s[I]^s[I+1]<<E^s[I+2]<<C)&_},A=new y2(25e3),$=new ms(288),T=new ms(32),F=0,M=0,z=(m=0,0),Y=0,W=0;m<h;++m){var ee=N(m),Z=32767&m,V=j[ee];if(w[Z]=V,j[ee]=Z,Y<=m){var ne=h-m;if((F>7e3||z>24576)&&ne>423){y=ehe(s,p,0,A,$,T,M,z,W,m-W,y),z=F=M=0,W=m;for(var P=0;P<286;++P)$[P]=0;for(P=0;P<30;++P)T[P]=0}var R=2,H=0,re=x,ae=Z-V&32767;if(ne>2&&ee==N(m-ae))for(var D=Math.min(b,ne)-1,U=Math.min(32767,m),se=Math.min(258,ne);ae<=U&&--re&&Z!=V;){if(s[m+R]==s[m+R-ae]){for(var te=0;te<se&&s[m+te]==s[m+te-ae];++te);if(te>R){if(R=te,H=ae,te>D)break;var Q=Math.min(ae,te-2),K=0;for(P=0;P<Q;++P){var ue=m-ae+P+32768&32767,B=ue-w[ue]+32768&32767;B>K&&(K=B,V=ue)}}}ae+=(Z=V)-(V=w[Z])+32768&32767}if(H){A[z++]=268435456|Gee[R]<<18|Qde[H];var pe=31&Gee[R],G=31&Qde[H];M+=die[pe]+hie[G],++$[257+pe],++T[G],Y=m+R,++F}else A[z++]=s[m],++$[s[m]]}}y=ehe(s,p,d,A,$,T,M,z,W,m-W,y)}return A4e(f,0,c+T4e(y)+u)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r,n,!0)},CY=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function LHe(e,t){t===void 0&&(t={});var r=function(){var l=4294967295;return{p:function(c){for(var u=l,d=0;d<c.length;++d)u=IHe[255&u^c[d]]^u>>>8;l=u},d:function(){return 4294967295^l}}}(),n=e.length;r.p(e);var a,s=PHe(e,t,10+((a=t).filename&&a.filename.length+1||0),8),o=s.length;return function(l,c){var u=c.filename;if(l[0]=31,l[1]=139,l[2]=8,l[8]=c.level<2?4:c.level==9?2:0,l[9]=3,c.mtime!=0&&CY(l,4,Math.floor(new Date(c.mtime||Date.now())/1e3)),u){l[3]=8;for(var d=0;d<=u.length;++d)l[d+10]=u.charCodeAt(d)}}(s,t),CY(s,o-8,r.d()),CY(s,o-4,n),s}var OHe=function(e){var t,r,n,a,s="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,` 7844`).replace(/\r/g,` 7845`)).length,a=0;a<n;a++){var o=e.charCodeAt(a),l=null;o<128?r++:l=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),Ru(l)||(r>t&&(s+=e.substring(t,r)),s+=l,t=r=a+1)}return r>t&&(s+=e.substring(t,e.length)),s},RHe=!!Tee||!!Nee,the="text/plain",rH=function(e,t,r){var n;r===void 0&&(r=!0);var[a,s]=e.split("?"),o=Mt({},t),l=(n=s==null?void 0:s.split("&").map(u=>{var d,[h,f]=u.split("="),p=r&&(d=o[h])!==null&&d!==void 0?d:f;return delete o[h],h+"="+p}))!==null&&n!==void 0?n:[],c=Bqe(o);return c&&l.push(c),a+"?"+l.join("&")},bb=(e,t)=>JSON.stringify(e,(r,n)=>typeof n=="bigint"?n.toString():n,t),NY=e=>{var{data:t,compression:r}=e;if(t){if(r===Jc.GZipJS){var n=LHe(function(c,u){var d=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var h=new vo(c.length+(c.length>>>1)),f=0,p=function(g){h[f++]=g},y=0;y<d;++y){if(f+5>h.length){var m=new vo(f+8+(d-y<<1));m.set(h),h=m}var v=c.charCodeAt(y);v<128||u?p(v):v<2048?(p(192|v>>>6),p(128|63&v)):v>55295&&v<57344?(p(240|(v=65536+(1047552&v)|1023&c.charCodeAt(++y))>>>18),p(128|v>>>12&63),p(128|v>>>6&63),p(128|63&v)):(p(224|v>>>12),p(128|v>>>6&63),p(128|63&v))}return A4e(h,0,f)}(bb(t)),{mtime:0}),a=new Blob([n],{type:the});return{contentType:the,body:a,estimatedSize:a.size}}if(r===Jc.Base64){var s=function(c){var u,d,h,f,p,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",m=0,v=0,g="",b=[];if(!c)return c;c=OHe(c);do u=(p=c.charCodeAt(m++)<<16|c.charCodeAt(m++)<<8|c.charCodeAt(m++))>>18&63,d=p>>12&63,h=p>>6&63,f=63&p,b[v++]=y.charAt(u)+y.charAt(d)+y.charAt(h)+y.charAt(f);while(m<c.length);switch(g=b.join(""),c.length%3){case 1:g=g.slice(0,-2)+"==";break;case 2:g=g.slice(0,-1)+"="}return g}(bb(t)),o=(c=>"data="+encodeURIComponent(typeof c=="string"?c:bb(c)))(s);return{contentType:"application/x-www-form-urlencoded",body:o,estimatedSize:new Blob([o]).size}}var l=bb(t);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},WU=[];Nee&&WU.push({transport:"fetch",method:e=>{var t,r,{contentType:n,body:a,estimatedSize:s}=(t=NY(e))!==null&&t!==void 0?t:{},o=new Headers;un(e.headers,function(d,h){o.append(h,d)}),n&&o.append("Content-Type",n);var l=e.url,c=null;if(kde){var u=new kde;c={signal:u.signal,timeout:setTimeout(()=>u.abort(),e.timeout)}}Nee(l,Mt({method:(e==null?void 0:e.method)||"GET",headers:o,keepalive:e.method==="POST"&&(s||0)<52428.8,body:a,signal:(r=c)==null?void 0:r.signal},e.fetchOptions)).then(d=>d.text().then(h=>{var f={statusCode:d.status,text:h};if(d.status===200)try{f.json=JSON.parse(h)}catch(p){St.error(p)}e.callback==null||e.callback(f)})).catch(d=>{St.error(d),e.callback==null||e.callback({statusCode:0,text:d})}).finally(()=>c?clearTimeout(c.timeout):null)}}),Tee&&WU.push({transport:"XHR",method:e=>{var t,r=new Tee;r.open(e.method||"GET",e.url,!0);var{contentType:n,body:a}=(t=NY(e))!==null&&t!==void 0?t:{};un(e.headers,function(s,o){r.setRequestHeader(o,s)}),n&&r.setRequestHeader("Content-Type",n),e.timeout&&(r.timeout=e.timeout),e.disableXHRCredentials||(r.withCredentials=!0),r.onreadystatechange=()=>{if(r.readyState===4){var s={statusCode:r.status,text:r.responseText};if(r.status===200)try{s.json=JSON.parse(r.responseText)}catch{}e.callback==null||e.callback(s)}},r.send(a)}}),qs!=null&&qs.sendBeacon&&WU.push({transport:"sendBeacon",method:e=>{var t=rH(e.url,{beacon:"1"});try{var r,{contentType:n,body:a}=(r=NY(e))!==null&&r!==void 0?r:{},s=typeof a=="string"?new Blob([a],{type:n}):a;qs.sendBeacon(t,s)}catch{}}});var v2=function(e,t){if(!function(r){try{new RegExp(r)}catch{return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function rhe(e,t,r){return bb({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var M4e={exact:(e,t)=>t.some(r=>e.some(n=>r===n)),is_not:(e,t)=>t.every(r=>e.every(n=>r!==n)),regex:(e,t)=>t.some(r=>e.some(n=>v2(r,n))),not_regex:(e,t)=>t.every(r=>e.every(n=>!v2(r,n))),icontains:(e,t)=>t.map(x3).some(r=>e.map(x3).some(n=>r.includes(n))),not_icontains:(e,t)=>t.map(x3).every(r=>e.map(x3).every(n=>!r.includes(n)))},x3=e=>e.toLowerCase(),TY=ti("[Error tracking]");class DHe{constructor(t){var r,n;this.Jt=[],this.Kt=new gqe([new yqe,new Eqe,new xqe,new vqe,new Sqe,new _qe,new wqe,new jqe],[dqe,pqe]),this._instance=t,this.Jt=(r=(n=this._instance.persistence)==null?void 0:n.get_property(Oee))!==null&&r!==void 0?r:[]}onRemoteConfig(t){var r,n,a,s=(r=(n=t.errorTracking)==null?void 0:n.suppressionRules)!==null&&r!==void 0?r:[],o=(a=t.errorTracking)==null?void 0:a.captureExtensionExceptions;this.Jt=s,this._instance.persistence&&this._instance.persistence.register({[Oee]:this.Jt,[Ide]:o})}get Yt(){var t,r=!!this._instance.get_property(Ide),n=this._instance.config.error_tracking.captureExtensionExceptions;return(t=n??r)!==null&&t!==void 0&&t}buildProperties(t,r){return this.Kt.buildFromUnknown(t,{syntheticException:r==null?void 0:r.syntheticException,mechanism:{handled:r==null?void 0:r.handled}})}sendExceptionEvent(t){var r=t.$exception_list;if(this.Xt(r)){if(this.Qt(r))return void TY.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(r))return void TY.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(r))return void TY.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent"})}Qt(t){if(t.length===0)return!1;var r=t.reduce((n,a)=>{var{type:s,value:o}=a;return Pa(s)&&s.length>0&&n.$exception_types.push(s),Pa(o)&&o.length>0&&n.$exception_values.push(o),n},{$exception_types:[],$exception_values:[]});return this.Jt.some(n=>{var a=n.values.map(s=>{var o,l=M4e[s.operator],c=bn(s.value)?s.value:[s.value],u=(o=r[s.key])!==null&&o!==void 0?o:[];return c.length>0&&l(c,u)});return n.type==="OR"?a.some(Boolean):a.every(Boolean)})}Zt(t){return t.flatMap(r=>{var n,a;return(n=(a=r.stacktrace)==null?void 0:a.frames)!==null&&n!==void 0?n:[]}).some(r=>r.filename&&r.filename.startsWith("chrome-extension://"))}ti(t){if(t.length>0){var r,n,a,s,o=(r=(n=t[0].stacktrace)==null?void 0:n.frames)!==null&&r!==void 0?r:[],l=o[o.length-1];return(a=l==null||(s=l.filename)==null?void 0:s.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Xt(t){return!xn(t)&&bn(t)}}var Uo=ti("[FeatureFlags]"),AY="$active_feature_flags",xg="$override_feature_flags",nhe="$feature_flag_payloads",Ax="$override_feature_flag_payloads",ahe="$feature_flag_request_id",ihe=e=>{var t={};for(var[r,n]of VU(e||{}))n&&(t[r]=n);return t},FHe=e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map(r=>{var n;return[r,(n=t[r].variant)!==null&&n!==void 0?n:t[r].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter(r=>t[r].enabled).filter(r=>{var n;return(n=t[r].metadata)==null?void 0:n.payload}).map(r=>{var n;return[r,(n=t[r].metadata)==null?void 0:n.payload]}))):Uo.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e},$He=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class BHe{constructor(t){this.ii=!1,this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this._instance=t,this.featureFlagEventHandlers=[]}li(){var t=this._instance.config.evaluation_environments;return t!=null&&t.length?t.filter(r=>{var n=r&&typeof r=="string"&&r.trim().length>0;return n||Uo.error("Invalid evaluation environment found:",r,"Expected non-empty string"),n}):[]}ui(){return this.li().length>0}flags(){if(this._instance.config.__preview_remote_config)this.oi=!0;else{var t=!this.hi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.di({disableFlags:t})}}get hasLoadedFlags(){return this.ei}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this._instance.get_property(Ree),r=this._instance.get_property(xg),n=this._instance.get_property(Ax);if(!n&&!r)return t||{};var a=Yn({},t||{}),s=[...new Set([...Object.keys(n||{}),...Object.keys(r||{})])];for(var o of s){var l,c,u=a[o],d=r==null?void 0:r[o],h=gt(d)?(l=u==null?void 0:u.enabled)!==null&&l!==void 0&&l:!!d,f=gt(d)?u.variant:typeof d=="string"?d:void 0,p=n==null?void 0:n[o],y=Mt({},u,{enabled:h,variant:h?f??(u==null?void 0:u.variant):void 0});h!==(u==null?void 0:u.enabled)&&(y.original_enabled=u==null?void 0:u.enabled),f!==(u==null?void 0:u.variant)&&(y.original_variant=u==null?void 0:u.variant),p&&(y.metadata=Mt({},u==null?void 0:u.metadata,{payload:p,original_payload:u==null||(c=u.metadata)==null?void 0:c.payload})),a[o]=y}return this.ii||(Uo.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:n,finalDetails:a}),this.ii=!0),a}getFlagVariants(){var t=this._instance.get_property(ny),r=this._instance.get_property(xg);if(!r)return t||{};for(var n=Yn({},t),a=Object.keys(r),s=0;s<a.length;s++)n[a[s]]=r[a[s]];return this.ii||(Uo.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:r,finalFlags:n}),this.ii=!0),n}getFlagPayloads(){var t=this._instance.get_property(nhe),r=this._instance.get_property(Ax);if(!r)return t||{};for(var n=Yn({},t||{}),a=Object.keys(r),s=0;s<a.length;s++)n[a[s]]=r[a[s]];return this.ii||(Uo.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:r,finalPayloads:n}),this.ii=!0),n}reloadFeatureFlags(){this.si||this._instance.config.advanced_disable_feature_flags||this.hi||(this.hi=setTimeout(()=>{this.di()},5))}vi(){clearTimeout(this.hi),this.hi=void 0}ensureFlagsLoaded(){this.ei||this.ri||this.hi||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.si=t}di(t){var r;if(this.vi(),!this._instance.M())if(this.ri)this.ni=!0;else{var n={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Mt({},((r=this._instance.persistence)==null?void 0:r.get_initial_props())||{},this._instance.get_property(vb)||{}),group_properties:this._instance.get_property(w1)};(t!=null&&t.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.ui()&&(n.evaluation_environments=this.li());var a=this._instance.config.__preview_remote_config,s=a?"/flags/?v=2":"/flags/?v=2&config=true",o=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",l=this._instance.requestRouter.endpointFor("api",s+o);a&&(n.timezone=j4e()),this.ri=!0,this._instance.ci({method:"POST",url:l,data:n,compression:this._instance.config.disable_compression?void 0:Jc.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:c=>{var u,d,h=!0;if(c.statusCode===200&&(this.ni||(this.$anon_distinct_id=void 0),h=!1),this.ri=!1,this.oi||(this.oi=!0,this._instance.fi((d=c.json)!==null&&d!==void 0?d:{})),!n.disable_flags||this.ni)if(this.ai=!h,c.json&&(u=c.json.quotaLimited)!=null&&u.includes($He.FeatureFlags))Uo.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var f;n.disable_flags||this.receivedFeatureFlags((f=c.json)!==null&&f!==void 0?f:{},h),this.ni&&(this.ni=!1,this.di())}}})}}getFeatureFlag(t,r){if(r===void 0&&(r={}),this.ei||this.getFlags()&&this.getFlags().length>0){var n=this.getFlagVariants()[t],a=""+n,s=this._instance.get_property(ahe)||void 0,o=this._instance.get_property(Gq)||{};if((r.send_event||!("send_event"in r))&&(!(t in o)||!o[t].includes(a))){var l,c,u,d,h,f,p,y,m;bn(o[t])?o[t].push(a):o[t]=[a],(l=this._instance.persistence)==null||l.register({[Gq]:o});var v=this.getFeatureFlagDetails(t),g={$feature_flag:t,$feature_flag_response:n,$feature_flag_payload:this.getFeatureFlagPayload(t)||null,$feature_flag_request_id:s,$feature_flag_bootstrapped_response:((c=this._instance.config.bootstrap)==null||(c=c.featureFlags)==null?void 0:c[t])||null,$feature_flag_bootstrapped_payload:((u=this._instance.config.bootstrap)==null||(u=u.featureFlagPayloads)==null?void 0:u[t])||null,$used_bootstrap_value:!this.ai};gt(v==null||(d=v.metadata)==null?void 0:d.version)||(g.$feature_flag_version=v.metadata.version);var b,x=(h=v==null||(f=v.reason)==null?void 0:f.description)!==null&&h!==void 0?h:v==null||(p=v.reason)==null?void 0:p.code;x&&(g.$feature_flag_reason=x),v!=null&&(y=v.metadata)!=null&&y.id&&(g.$feature_flag_id=v.metadata.id),gt(v==null?void 0:v.original_variant)&>(v==null?void 0:v.original_enabled)||(g.$feature_flag_original_response=gt(v.original_variant)?v.original_enabled:v.original_variant),v!=null&&(m=v.metadata)!=null&&m.original_payload&&(g.$feature_flag_original_payload=v==null||(b=v.metadata)==null?void 0:b.original_payload),this._instance.capture("$feature_flag_called",g)}return n}Uo.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){return this.getFlagPayloads()[t]}getRemoteConfigPayload(t,r){var n=this._instance.config.token,a={distinct_id:this._instance.get_distinct_id(),token:n};this.ui()&&(a.evaluation_environments=this.li()),this._instance.ci({method:"POST",url:this._instance.requestRouter.endpointFor("api","/flags/?v=2&config=true"),data:a,compression:this._instance.config.disable_compression?void 0:Jc.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:s=>{var o,l=(o=s.json)==null?void 0:o.featureFlagPayloads;r((l==null?void 0:l[t])||void 0)}})}isFeatureEnabled(t,r){if(r===void 0&&(r={}),this.ei||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(t,r);return gt(n)?void 0:!!n}Uo.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(r=>r!==t)}receivedFeatureFlags(t,r){if(this._instance.persistence){this.ei=!0;var n=this.getFlagVariants(),a=this.getFlagPayloads(),s=this.getFlagsWithDetails();(function(o,l,c,u,d){c===void 0&&(c={}),u===void 0&&(u={}),d===void 0&&(d={});var h=FHe(o),f=h.flags,p=h.featureFlags,y=h.featureFlagPayloads;if(p){var m=o.requestId;if(bn(p)){Uo.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var v={};if(p)for(var g=0;g<p.length;g++)v[p[g]]=!0;l&&l.register({[AY]:p,[ny]:v})}else{var b=p,x=y,_=f;o.errorsWhileComputingFlags&&(b=Mt({},c,b),x=Mt({},u,x),_=Mt({},d,_)),l&&l.register(Mt({[AY]:Object.keys(ihe(b)),[ny]:b||{},[nhe]:x||{},[Ree]:_||{}},m?{[ahe]:m}:{}))}}})(t,this._instance.persistence,n,a,s),this.pi(r)}}override(t,r){r===void 0&&(r=!1),Uo.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:r})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this._instance.persistence)return Uo.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this._instance.persistence.unregister(xg),this._instance.persistence.unregister(Ax),void this.pi();if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var r,n=t;if(this.ii=!!((r=n.suppressWarning)!==null&&r!==void 0&&r),"flags"in n){if(n.flags===!1)this._instance.persistence.unregister(xg);else if(n.flags)if(bn(n.flags)){for(var a={},s=0;s<n.flags.length;s++)a[n.flags[s]]=!0;this._instance.persistence.register({[xg]:a})}else this._instance.persistence.register({[xg]:n.flags})}return"payloads"in n&&(n.payloads===!1?this._instance.persistence.unregister(Ax):n.payloads&&this._instance.persistence.register({[Ax]:n.payloads})),void this.pi()}this.pi()}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.ei){var{flags:r,flagVariants:n}=this.gi();t(r,n)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,r,n){var a,s=(this._instance.get_property(yb)||[]).find(u=>u.flagKey===t),o={["$feature_enrollment/"+t]:r},l={$feature_flag:t,$feature_enrollment:r,$set:o};s&&(l.$early_access_feature_name=s.name),n&&(l.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(o,!1);var c=Mt({},this.getFlagVariants(),{[t]:r});(a=this._instance.persistence)==null||a.register({[AY]:Object.keys(ihe(c)),[ny]:c}),this.pi()}getEarlyAccessFeatures(t,r,n){r===void 0&&(r=!1);var a=this._instance.get_property(yb),s=n?"&"+n.map(o=>"stage="+o).join("&"):"";if(a&&!r)return t(a);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+s),method:"GET",callback:o=>{var l,c;if(o.json){var u=o.json.earlyAccessFeatures;return(l=this._instance.persistence)==null||l.unregister(yb),(c=this._instance.persistence)==null||c.register({[yb]:u}),t(u)}}})}gi(){var t=this.getFlags(),r=this.getFlagVariants();return{flags:t.filter(n=>r[n]),flagVariants:Object.keys(r).filter(n=>r[n]).reduce((n,a)=>(n[a]=r[a],n),{})}}pi(t){var{flags:r,flagVariants:n}=this.gi();this.featureFlagEventHandlers.forEach(a=>a(r,n,{errorsLoading:t}))}setPersonPropertiesForFlags(t,r){r===void 0&&(r=!0);var n=this._instance.get_property(vb)||{};this._instance.register({[vb]:Mt({},n,t)}),r&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(vb)}setGroupPropertiesForFlags(t,r){r===void 0&&(r=!0);var n=this._instance.get_property(w1)||{};Object.keys(n).length!==0&&Object.keys(n).forEach(a=>{n[a]=Mt({},n[a],t[a]),delete t[a]}),this._instance.register({[w1]:Mt({},n,t)}),r&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var r=this._instance.get_property(w1)||{};this._instance.register({[w1]:Mt({},r,{[t]:{}})})}else this._instance.unregister(w1)}reset(){this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this.$anon_distinct_id=void 0,this.vi(),this.ii=!1}}var zHe=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class MY{constructor(t,r){this.C=t,this.props={},this.mi=!1,this.yi=(n=>{var a="";return n.token&&(a=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+a+"_posthog"})(t),this.Y=this.bi(t),this.load(),t.debug&&St.info("Persistence loaded",t.persistence,Mt({},this.props)),this.update_config(t,t,r),this.save()}isDisabled(){return!!this.wi}bi(t){zHe.indexOf(t.persistence.toLowerCase())===-1&&(St.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var r=t.persistence.toLowerCase();return r==="localstorage"&&In.H()?In:r==="localstorage+cookie"&&m3.H()?m3:r==="sessionstorage"&&oi.H()?oi:r==="memory"?Qqe:r==="cookie"?hc:m3.H()?m3:hc}properties(){var t={};return un(this.props,function(r,n){if(n===ny&&ji(r))for(var a=Object.keys(r),s=0;s<a.length;s++)t["$feature/"+a[s]]=r[a[s]];else l=n,c=!1,(Ru(o=Iqe)?c:wde&&o.indexOf===wde?o.indexOf(l)!=-1:(un(o,function(u){if(c||(c=u===l))return Vq}),c))||(t[n]=r);var o,l,c}),t}load(){if(!this.wi){var t=this.Y.W(this.yi);t&&(this.props=Yn({},t))}}save(){this.wi||this.Y.G(this.yi,this.props,this.xi,this.Si,this.Ei,this.C.debug)}remove(){this.Y.V(this.yi,!1),this.Y.V(this.yi,!0)}clear(){this.remove(),this.props={}}register_once(t,r,n){if(ji(t)){gt(r)&&(r="None"),this.xi=gt(n)?this.$i:n;var a=!1;if(un(t,(s,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==r||(this.props[o]=s,a=!0)}),a)return this.save(),!0}return!1}register(t,r){if(ji(t)){this.xi=gt(r)?this.$i:r;var n=!1;if(un(t,(a,s)=>{t.hasOwnProperty(s)&&this.props[s]!==a&&(this.props[s]=a,n=!0)}),n)return this.save(),!0}return!1}unregister(t){t in this.props&&(delete this.props[t],this.save())}update_campaign_params(){if(!this.mi){var t=x4e(this.C.custom_campaign_params,this.C.mask_personal_data_properties,this.C.custom_personal_data_properties);ry(nie(t))||this.register(t),this.mi=!0}}update_search_keyword(){var t;this.register((t=vt==null?void 0:vt.referrer)?w4e(t):{})}update_referrer_info(){var t;this.register_once({$referrer:k4e(),$referring_domain:vt!=null&&vt.referrer&&((t=Zq(vt.referrer))==null?void 0:t.host)||"$direct"},void 0)}set_initial_person_info(){this.props[Bee]||this.props[zee]||this.register_once({[Kq]:_4e(this.C.mask_personal_data_properties,this.C.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};un([zee,Bee],o=>{var l=this.props[o];l&&un(l,function(c,u){t["$initial_"+Aee(u)]=c})});var r,n,a=this.props[Kq];if(a){var s=(r=S4e(a),n={},un(r,function(o,l){n["$initial_"+Aee(l)]=o}),n);Yn(t,s)}return t}safe_merge(t){return un(this.props,function(r,n){n in t||(t[n]=r)}),t}update_config(t,r,n){if(this.$i=this.xi=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!n),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==r.persistence){var a=this.bi(t),s=this.props;this.clear(),this.Y=a,this.props=s,this.save()}}set_disabled(t){this.wi=t,this.wi?this.remove():this.save()}set_cross_subdomain(t){t!==this.Si&&(this.Si=t,this.remove(),this.save())}set_secure(t){t!==this.Ei&&(this.Ei=t,this.remove(),this.save())}set_event_timer(t,r){var n=this.props[gb]||{};n[t]=r,this.props[gb]=n,this.save()}remove_event_timer(t){var r=(this.props[gb]||{})[t];return gt(r)||(delete this.props[gb][t],this.save()),r}get_property(t){return this.props[t]}set_property(t,r){this.props[t]=r,this.save()}}(function(e){return e.Button="button",e.Tab="tab",e.Selector="selector",e})({});(function(e){return e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger",e})({});var IY=function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e}({});(function(e){return e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link",e})({});(function(e){return e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question",e})({});(function(e){return e.Once="once",e.Recurring="recurring",e.Always="always",e})({});var GU=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),she=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_
7845START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e}({}),I4e=function(e){return e.Popover="popover",e.Inline="inline",e}({});class fie{constructor(){this.ki={},this.ki={}}on(t,r){return this.ki[t]||(this.ki[t]=[]),this.ki[t].push(r),()=>{this.ki[t]=this.ki[t].filter(n=>n!==r)}}emit(t,r){for(var n of this.ki[t]||[])n(r);for(var a of this.ki["*"]||[])a(t,r)}}class N1{constructor(t){this.Pi=new fie,this.Ti=(r,n)=>this.Ri(r,n)&&this.Ii(r,n)&&this.Ci(r,n),this.Ri=(r,n)=>n==null||!n.event||(r==null?void 0:r.event)===(n==null?void 0:n.event),this._instance=t,this.Oi=new Set,this.Fi=new Set}init(){var t;if(!gt((t=this._instance)==null?void 0:t.Mi)){var r;(r=this._instance)==null||r.Mi((n,a)=>{this.on(n,a)})}}register(t){var r,n;if(!gt((r=this._instance)==null?void 0:r.Mi)&&(t.forEach(o=>{var l,c;(l=this.Fi)==null||l.add(o),(c=o.steps)==null||c.forEach(u=>{var d;(d=this.Oi)==null||d.add((u==null?void 0:u.event)||"")})}),(n=this._instance)!=null&&n.autocapture)){var a,s=new Set;t.forEach(o=>{var l;(l=o.steps)==null||l.forEach(c=>{c!=null&&c.selector&&s.add(c==null?void 0:c.selector)})}),(a=this._instance)==null||a.autocapture.setElementSelectors(s)}}on(t,r){var n;r!=null&&t.length!=0&&(this.Oi.has(t)||this.Oi.has(r==null?void 0:r.event))&&this.Fi&&((n=this.Fi)==null?void 0:n.size)>0&&this.Fi.forEach(a=>{this.Ai(r,a)&&this.Pi.emit("actionCaptured",a.name)})}Di(t){this.onAction("actionCaptured",r=>t(r))}Ai(t,r){if((r==null?void 0:r.steps)==null)return!1;for(var n of r.steps)if(this.Ti(t,n))return!0;return!1}onAction(t,r){return this.Pi.on(t,r)}Ii(t,r){if(r!=null&&r.url){var n,a=t==null||(n=t.properties)==null?void 0:n.$current_url;if(!a||typeof a!="string"||!N1.ji(a,r==null?void 0:r.url,(r==null?void 0:r.url_matching)||"contains"))return!1}return!0}static ji(t,r,n){switch(n){case"regex":return!!Te&&v2(t,r);case"exact":return r===t;case"contains":var a=N1.Li(r).replace(/_/g,".").replace(/%/g,".*");return v2(t,a);default:return!1}}static Li(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Ci(t,r){if((r!=null&&r.href||r!=null&&r.tag_name||r!=null&&r.text)&&!this.Ni(t).some(s=>!(r!=null&&r.href&&!N1.ji(s.href||"",r==null?void 0:r.href,(r==null?void 0:r.href_matching)||"exact"))&&(r==null||!r.tag_name||s.tag_name===(r==null?void 0:r.tag_name))&&!(r!=null&&r.text&&!N1.ji(s.text||"",r==null?void 0:r.text,(r==null?void 0:r.text_matching)||"exact")&&!N1.ji(s.$el_text||"",r==null?void 0:r.text,(r==null?void 0:r.text_matching)||"exact"))))return!1;if(r!=null&&r.selector){var n,a=t==null||(n=t.properties)==null?void 0:n.$element_selectors;if(!a||!a.includes(r==null?void 0:r.selector))return!1}return!0}Ni(t){return(t==null?void 0:t.properties.$elements)==null?[]:t==null?void 0:t.properties.$elements}}var en=ti("[Surveys]"),Xee="seenSurvey_",UHe=(e,t)=>{var r="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(r="$survey_"+t+"/"+e.id+"/"+e.current_iteration),r},ohe=e=>{var t=""+Xee+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+Xee+e.id+"_"+e.current_iteration),t},qHe=[IY.Popover,IY.Widget,IY.API],HHe={ignoreConditions:!1,ignoreDelay:!1,displayType:I4e.Popover};class VHe{constructor(t){this._instance=t,this.Ui=new Map,this.zi=new Map}register(t){var r;gt((r=this._instance)==null?void 0:r.Mi)||(this.Hi(t),this.Bi(t))}Bi(t){var r=t.filter(n=>{var a,s;return((a=n.conditions)==null?void 0:a.actions)&&((s=n.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0});r.length!==0&&(this.qi==null&&(this.qi=new N1(this._instance),this.qi.init(),this.qi.Di(n=>{this.onAction(n)})),r.forEach(n=>{var a,s,o,l,c;n.conditions&&(a=n.conditions)!=null&&a.actions&&(s=n.conditions)!=null&&(s=s.actions)!=null&&s.values&&((o=n.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((l=this.qi)==null||l.register(n.conditions.actions.values),(c=n.conditions)==null||(c=c.actions)==null||(c=c.values)==null||c.forEac
7845h(u=>{if(u&&u.name){var d=this.zi.get(u.name);d&&d.push(n.id),this.zi.set(u.name,d||[n.id])}}))}))}Hi(t){var r;t.filter(n=>{var a,s;return((a=n.conditions)==null?void 0:a.events)&&((s=n.conditions)==null||(s=s.events)==null||(s=s.values)==null?void 0:s.length)>0}).length!==0&&((r=this._instance)==null||r.Mi((n,a)=>{this.onEvent(n,a)}),t.forEach(n=>{var a;(a=n.conditions)==null||(a=a.events)==null||(a=a.values)==null||a.forEach(s=>{if(s&&s.name){var o=this.Ui.get(s.name);o&&o.push(n.id),this.Ui.set(s.name,o||[n.id])}})}))}onEvent(t,r){var n,a,s=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[p3])||[];if(GU.SHOWN===t&&r&&s.length>0){var o;en.info("survey event matched, removing survey from activated surveys",{event:t,eventPayload:r,existingActivatedSurveys:s});var l=r==null||(o=r.properties)==null?void 0:o.$survey_id;if(l){var c=s.indexOf(l);c>=0&&(s.splice(c,1),this.Wi(s))}}else if(this.Ui.has(t)){en.info("survey event name matched",{event:t,eventPayload:r,surveys:this.Ui.get(t)});var u=[];(a=this._instance)==null||a.getSurveys(h=>{u=h.filter(f=>{var p;return(p=this.Ui.get(t))==null?void 0:p.includes(f.id)})});var d=u.filter(h=>{var f,p=(f=h.conditions)==null||(f=f.events)==null||(f=f.values)==null?void 0:f.find(y=>y.name===t);return!!p&&(!p.propertyFilters||Object.entries(p.propertyFilters).every(y=>{var m,[v,g]=y,b=r==null||(m=r.properties)==null?void 0:m[v];if(gt(b)||Ru(b))return!1;var x=[String(b)],_=M4e[g.operator];return _?_(g.values,x):(en.warn("Unknown property comparison operator: "+g.operator),!1)}))});this.Wi(s.concat(d.map(h=>h.id)||[]))}}onAction(t){var r,n=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[p3])||[];this.zi.has(t)&&this.Wi(n.concat(this.zi.get(t)||[]))}Wi(t){var r;en.info("updating activated surveys",{activatedSurveys:t}),(r=this._instance)==null||(r=r.persistence)==null||r.register({[p3]:[...new Set(t)]})}getSurveys(){var t,r=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[p3];return r||[]}getEventToSurveys(){return this.Ui}Gi(){return this.qi}}class WHe{constructor(t){this.Vi=void 0,this._surveyManager=null,this.Ji=!1,this.Ki=!1,this.Yi=[],this._instance=t,this._surveyEventReceiver=null}onRemoteConfig(t){if(!this._instance.config.disable_surveys){var r=t.surveys;if(xn(r))return en.warn("Flags not loaded yet. Not loading surveys.");var n=bn(r);this.Vi=n?r.length>0:r,en.info("flags response received, isSurveysEnabled: "+this.Vi),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);(n!=null&&n.startsWith(Xee)||n!=null&&n.startsWith("inProgressSurvey_"))&&t.push(n)}t.forEach(a=>localStorage.removeItem(a))}loadIfEnabled(){if(!this._surveyManager)if(this.Ki)en.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)en.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())en.info("Not loading surveys in cookieless mode without consent.");else{var t=Gt==null?void 0:Gt.__PosthogExtensions__;if(t){if(!gt(this.Vi)||this._instance.config.advanced_enable_surveys){var r=this.Vi||this._instance.config.advanced_enable_surveys;this.Ki=!0;try{var n=t.generateSurveys;if(n)return void this.Xi(n,r);var a=t.loadExternalDependency;if(!a)return void this.Qi("PostHog loadExternalDependency extension not found.");a(this._instance,"surveys",s=>{s||!t.generateSurveys?this.Qi("Could not load surveys script",s):this.Xi(t.generateSurveys,r)})}catch(s){throw this.Qi("Error initializing surveys",s),s}finally{this.Ki=!1}}}else en.error("PostHog Extensions not found.")}}Xi(t,r){this._surveyManager=t(this._instance,r),this._surveyEventReceiver=new VHe(this._instance),en.info("Surveys loaded successfully"),this.Zi({isLoaded:!0})}Qi(t,r){en.error(t,r),this.Zi({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.Yi.push(t),this._surveyManager&&this.Zi({isLoaded:!0}),()=>{this.Yi=this.Yi.filter(r=>r!==t)}}getSurveys(t,r){if(r===void 0&&(r=!1),this._instance.config.disable_surveys)return en.info("Disabled. Not loading surveys."),t([]);var n=this._instance.get_property(Dee);if(n&&!r)return t(n,{isLoaded:!0});if(this.Ji)return t([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.Ji=!0,this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:a=>{var s;this.Ji=!1;var o=a.statusCode;if(o!==200||!a.json){var l="Surveys API could not be loaded, status: "+o;return en.error(l),t([],{isLoaded:!1,error:l})}var c,u=a.json.surveys||[],d=u.filter(h=>function(f){return!(!f.start_date||f.end_date)}
vendor: 18,281 bytes, line 7845
7845(h)&&(function(f){var p;return!((p=f.conditions)==null||(p=p.events)==null||(p=p.values)==null||!p.length)}(h)||function(f){var p;return!((p=f.conditions)==null||(p=p.actions)==null||(p=p.values)==null||!p.length)}(h)));return d.length>0&&((c=this._surveyEventReceiver)==null||c.register(d)),(s=this._instance.persistence)==null||s.register({[Dee]:u}),t(u,{isLoaded:!0})}})}catch(a){throw this.Ji=!1,a}}Zi(t){for(var r of this.Yi)try{if(!t.isLoaded)return r([],t);this.getSurveys(r)}catch(n){en.error("Error in survey callback",n)}}getActiveMatchingSurveys(t,r){if(r===void 0&&(r=!1),!xn(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,r);en.warn("init was not called")}te(t){var r=null;return this.getSurveys(n=>{var a;r=(a=n.find(s=>s.id===t))!==null&&a!==void 0?a:null}),r}ie(t){if(xn(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var r=typeof t=="string"?this.te(t):t;return r?this._surveyManager.checkSurveyEligibility(r):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(xn(this._surveyManager))return en.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var r=this.ie(t);return{visible:r.eligible,disabledReason:r.reason}}canRenderSurveyAsync(t,r){return xn(this._surveyManager)?(en.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(n=>{this.getSurveys(a=>{var s,o=(s=a.find(c=>c.id===t))!==null&&s!==void 0?s:null;if(o){var l=this.ie(o);n({visible:l.eligible,disabledReason:l.reason})}else n({visible:!1,disabledReason:"Survey not found"})},r)})}renderSurvey(t,r){var n;if(xn(this._surveyManager))en.warn("init was not called");else{var a=typeof t=="string"?this.te(t):t;if(a!=null&&a.id)if(qHe.includes(a.type)){var s=vt==null?void 0:vt.querySelector(r);if(s)return(n=a.appearance)!=null&&n.surveyPopupDelaySeconds?(en.info("Rendering survey "+a.id+" with delay of "+a.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var o,l;en.info("Rendering survey "+a.id+" with delay of "+((o=a.appearance)==null?void 0:o.surveyPopupDelaySeconds)+" seconds"),(l=this._surveyManager)==null||l.renderSurvey(a,s),en.info("Survey "+a.id+" rendered")},1e3*a.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(a,s);en.warn("Survey element not found")}else en.warn("Surveys of type "+a.type+" cannot be rendered in the app");else en.warn("Survey not found")}}displaySurvey(t,r){var n;if(xn(this._surveyManager))en.warn("init was not called");else{var a=this.te(t);if(a){var s=a;if((n=a.appearance)!=null&&n.surveyPopupDelaySeconds&&r.ignoreDelay&&(s=Mt({},a,{appearance:Mt({},a.appearance,{surveyPopupDelaySeconds:0})})),r.ignoreConditions===!1){var o=this.canRenderSurvey(a);if(!o.visible)return void en.warn("Survey is not eligible to be displayed: ",o.disabledReason)}r.displayType!==I4e.Inline?this._surveyManager.handlePopoverSurvey(s):this.renderSurvey(s,r.selector)}else en.warn("Survey not found")}}}var lhe=ti("[RateLimiter]");class GHe{constructor(t){var r,n;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=a=>{var s=a.text;if(s&&s.length)try{(JSON.parse(s).quota_limited||[]).forEach(o=>{lhe.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4})}catch(o){return void lhe.warn('could not rate limit - continuing. Error: "'+(o==null?void 0:o.message)+'"',{text:s})}},this.instance=t,this.captureEventsPerSecond=((r=t.config.rate_limiting)==null?void 0:r.events_per_second)||10,this.captureEventsBurstLimit=Math.max(((n=t.config.rate_limiting)==null?void 0:n.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(t){var r,n,a;t===void 0&&(t=!1);var s=new Date().getTime(),o=(r=(n=this.instance.persistence)==null?void 0:n.get_property($ee))!==null&&r!==void 0?r:{tokens:this.captureEventsBurstLimit,last:s};o.tokens+=(s-o.last)/1e3*this.captureEventsPerSecond,o.last=s,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var l=o.tokens<1;return l||t||(o.tokens=Math.max(0,o.tokens-1)),!l||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=l,(a=this.instance.persistence)==null||a.set_property($ee,o),{isRateLimited:l,remainingTokens:o.tokens}}isServerRateLimited(t){var r=this.serverLimits[t||"events"]||!1;return r!==!1&&new Date().getTime()<r}}var Wh=ti("[RemoteConfig]");class KHe{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=Gt._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}ee(t){var r,n;(r=Gt.__PosthogExtensions__)!=null&&r.loadExternalDependency?(n=Gt.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"remote-config",()=>t(this.remoteConfig)):(Wh.error("PostHog Extensions not found. Cannot load remote config."),t())}re(t){this._instance.ci({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:r=>{t(r.json)}})}load(){try{if(this.remoteConfig)return Wh.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.M())return void Wh.warn("Remote config is disabled. Falling back to local config.");this.ee(t=>{if(!t)return Wh.info("No config found after loading remote JS config. Falling back to JSON."),void this.re(r=>{this.fi(r)});this.fi(t)})}catch(t){Wh.error("Error loading remote config",t)}}fi(t){t?this._instance.config.__preview_remote_config?(this._instance.fi(t),t.hasFeatureFlags!==!1&&this._instance.featureFlags.ensureFlagsLoaded()):Wh.info("__preview_remote_config is disabled. Logging config instead",t):Wh.error("Failed to fetch remote config from PostHog.")}}var Zee=3e3;class YHe{constructor(t,r){this.se=!0,this.ne=[],this.oe=Xl((r==null?void 0:r.flush_interval_ms)||Zee,250,5e3,St.createLogger("flush interval"),Zee),this.ae=t}enqueue(t){this.ne.push(t),this.le||this.ue()}unload(){this.he();var t=this.ne.length>0?this.de():{},r=Object.values(t);[...r.filter(n=>n.url.indexOf("/e")===0),...r.filter(n=>n.url.indexOf("/e")!==0)].map(n=>{this.ae(Mt({},n,{transport:"sendBeacon"}))})}enable(){this.se=!1,this.ue()}ue(){var t=this;this.se||(this.le=setTimeout(()=>{if(this.he(),this.ne.length>0){var r=this.de(),n=function(){var s=r[a],o=new Date().getTime();s.data&&bn(s.data)&&un(s.data,l=>{l.offset=Math.abs(l.timestamp-o),delete l.timestamp}),t.ae(s)};for(var a in r)n()}},this.oe))}he(){clearTimeout(this.le),this.le=void 0}de(){var t={};return un(this.ne,r=>{var n,a=r,s=(a?a.batchKey:null)||a.url;gt(t[s])&&(t[s]=Mt({},a,{data:[]})),(n=t[s].data)==null||n.push(a.data)}),this.ne=[],t}}var XHe=["retriesPerformedSoFar"];class ZHe{constructor(t){this.ve=!1,this.ce=3e3,this.ne=[],this._instance=t,this.ne=[],this.fe=!0,!gt(Te)&&"onLine"in Te.navigator&&(this.fe=Te.navigator.onLine,this.pe=()=>{this.fe=!0,this.Dt()},this.ge=()=>{this.fe=!1},ha(Te,"online",this.pe),ha(Te,"offline",this.ge))}get length(){return this.ne.length}retriableRequest(t){var{retriesPerformedSoFar:r}=t,n=N_e(t,XHe);gc(r)&&r>0&&(n.url=rH(n.url,{retry_count:r})),this._instance.ci(Mt({},n,{callback:a=>{a.statusCode!==200&&(a.statusCode<400||a.statusCode>=500)&&(r??0)<10?this._e(Mt({retriesPerformedSoFar:r},n)):n.callback==null||n.callback(a)}}))}_e(t){var r=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=r+1;var n=function(o){var l=3e3*Math.pow(2,o),c=l/2,u=Math.min(18e5,l),d=(Math.random()-.5)*(u-c);return Math.ceil(u+d)}(r),a=Date.now()+n;this.ne.push({retryAt:a,requestOptions:t});var s="Enqueued failed request for retry in "+n;navigator.onLine||(s+=" (Browser is offline)"),St.warn(s),this.ve||(this.ve=!0,this.me())}me(){if(this.ye&&clearTimeout(this.ye),this.ne.length===0)return this.ve=!1,void(this.ye=void 0);this.ye=setTimeout(()=>{this.fe&&this.ne.length>0&&this.Dt(),this.me()},this.ce)}Dt(){var t=Date.now(),r=[],n=this.ne.filter(s=>s.retryAt<t||(r.push(s),!1));if(this.ne=r,n.length>0)for(var{requestOptions:a}of n)this.retriableRequest(a)}unload(){for(var{requestOptions:t}of(this.ye&&(clearTimeout(this.ye),this.ye=void 0),this.ve=!1,gt(Te)||(this.pe&&(Te.removeEventListener("online",this.pe),this.pe=void 0),this.ge&&(Te.removeEventListener("offline",this.ge),this.ge=void 0)),this.ne))try{this._instance.ci(Mt({},t,{transport:"sendBeacon"}))}catch(r){St.error(r)}this.ne=[]}}class QHe{constructor(t){this.be=()=>{var r,n,a,s;this.we||(this.we={});var o=this.scrollElement(),l=this.scrollY(),c=o?Math.max(0,o.scrollHeight-o.clientHeight):0,u=l+((o==null?void 0:o.clientHeight)||0),d=(o==null?void 0:o.scrollHeight)||0;this.we.lastScrollY=Math.ceil(l),this.we.maxScrollY=Math.max(l,(r=this.we.maxScrollY)!==null&&r!==void 0?r:0),this.we.maxScrollHeight=Math.max(c,(n=this.we.maxScrollHeight)!==null&&n!==void 0?n:0),this.we.lastContentY=u,this.we.maxContentY=Math.max(u,(a=this.we.maxContentY)!==null&&a!==void 0?a:0),this.we.maxContentHeight=Math.max(d,(s=this.we.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=t}getContext(){return this.we}resetContext(){var t=this.we;return setTimeout(this.be,0),t}startMeasuringScrollPosition(){ha(Te,"scroll",this.be,{capture:!0}),ha(Te,"scrollend",this.be,{capture:!0}),ha(Te,"resize",this.be)}scrollElement(){if(!this._instance.config.scroll_root_selector)return Te==null?void 0:Te.document.documentElement;var t=bn(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var r of t){var n=Te==null?void 0:Te.document.querySelector(r);if(n)return n}}scrollY(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollTop||0}return Te&&(Te.scrollY||Te.pageYOffset||Te.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollLeft||0}return Te&&(Te.scrollX||Te.pageXOffset||Te.document.documentElement.scrollLeft)||0}}var JHe=e=>_4e(e==null?void 0:e.config.mask_personal_data_properties,e==null?void 0:e.config.custom_personal_data_properties);class che{constructor(t,r,n,a){this.xe=s=>{var o=this.Se();if(!o||o.sessionId!==s){var l={sessionId:s,props:this.Ee(this._instance)};this.$e.register({[Fee]:l})}},this._instance=t,this.ke=r,this.$e=n,this.Ee=a||JHe,this.ke.onSessionId(this.xe)}Se(){return this.$e.props[Fee]}getSetOnceProps(){var t,r=(t=this.Se())==null?void 0:t.props;return r?"r"in r?S4e(r):{$referring_domain:r.referringDomain,$pathname:r.initialPathName,utm_source:r.utm_source,utm_campaign:r.utm_campaign,utm_medium:r.utm_medium,utm_content:r.utm_content,utm_term:r.utm_term}:{}}getSessionProps(){var t={};return un(nie(this.getSetOnceProps()),(r,n)=>{n==="$current_url"&&(n="url"),t["$session_entry_"+Aee(n)]=r}),t}}var PY=ti("[SessionId]");class uhe{on(t,r){return this.Pe.on(t,r)}constructor(t,r,n){var a;if(this.Te=[],this.Re=void 0,this.Pe=new fie,this.Ie=(d,h)=>Math.abs(d-h)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode==="always")throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.C=t.config,this.$e=t.persistence,this.Ce=void 0,this.Oe=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fe=r||Md,this.Me=n||Md;var s=this.C.persistence_name||this.C.token,o=this.C.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*Xl(o,60,36e3,PY.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ae(),this.De="ph_"+s+"_window_id",this.je="ph_"+s+"_primary_window_exists",this.Le()){var l=oi.W(this.De),c=oi.W(this.je);l&&!c?this.Ce=l:oi.V(this.De),oi.G(this.je,!0)}if((a=this.C.bootstrap)!=null&&a.sessionID)try{var u=(d=>{var h=d.replace(/-/g,"");if(h.length!==32)throw new Error("Not a valid UUID");if(h[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(h.substring(0,12),16)})(this.C.bootstrap.sessionID);this.Ne(this.C.bootstrap.sessionID,new Date().getTime(),u)}catch(d){PY.error("Invalid sessionID in bootstrap",d)}this.Ue()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return gt(this.Te)&&(this.Te=[]),this.Te.push(t),this.Oe&&t(this.Oe,this.Ce),()=>{this.Te=this.Te.filter(r=>r!==t)}}Le(){return this.C.persistence!=="memory"&&!this.$e.wi&&oi.H()}ze(t){t!==this.Ce&&(this.Ce=t,this.Le()&&oi.G(this.De,t))}He(){return this.Ce?this.Ce:this.Le()?oi.W(this.De):null}Ne(t,r,n){t===this.Oe&&r===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=r,this.Oe=t,this.$e.register({[Wq]:[r,t,n]}))}Be(){if(this.Oe&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.Oe,this._sessionStartTimestamp];var t=this.$e.props[Wq];return bn(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.Ne(null,null,null)}destroy(){clearTimeout(this.qe),this.qe=void 0,this.Re&&Te&&(Te.removeEventListener("beforeunload",this.Re,{capture:!1}),this.Re=void 0),this.Te=[]}Ue(){this.Re=()=>{this.Le()&&oi.V(this.je)},ha(Te,"beforeunload",this.Re,{capture:!1})}checkAndGetSessionAndWindowId(t,r){if(t===void 0&&(t=!1),r===void 0&&(r=null),this.C.cookieless_mode==="always")throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=r||new Date().getTime(),[a,s,o]=this.Be(),l=this.He(),c=gc(o)&&o>0&&Math.abs(n-o)>864e5,u=!1,d=!s,h=!t&&this.Ie(n,a);d||h||c?(s=this.Fe(),l=this.Me(),PY.info("new session ID generated",{sessionId:s,windowId:l,changeReason:{noSessionId:d,activityTimeout:h,sessionPastMaximumLength:c}}),o=n,u=!0):l||(l=this.Me(),u=!0);var f=a===0||!t||c?n:a,p=o===0?new Date().getTime():o;return this.ze(l),this.Ne(s,f,p),t||this.Ae(),u&&this.Te.forEach(y=>y(s,l,u?{noSessionId:d,activityTimeout:h,sessionPastMaximumLength:c}:void 0)),{sessionId:s,windowId:l,sessionStartTimestamp:p,changeReason:u?{noSessionId:d,activityTimeout:h,sessionPastMaximumLength:c}:void 0,lastActivityTimestamp:a}}Ae(){clearTimeout(this.qe),this.qe=setTimeout(()=>{var[t]=this.Be();if(this.Ie(new Date().getTime(),t)){var r=this.Oe;this.resetSessionId(),this.Pe.emit("forcedIdleReset",{idleSessionId:r})}},1.1*this.sessionTimeoutMs)}}var eVe=["$set_once","$set"],Qu=ti("[SiteApps]");class tVe{constructor(t){this._instance=t,this.We=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Ge(t,r){if(r){var n=this.globalsForEvent(r);this.We.push(n),this.We.length>1e3&&(this.We=this.We.slice(10))}}get siteAppLoaders(){var t;return(t=Gt._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}init(){if(this.isEnabled){var t=this._instance.Mi(this.Ge.bind(this));this.Ve=()=>{t(),this.We=[],this.Ve=void 0}}}globalsForEvent(t){var r,n,a,s,o,l,c;if(!t)throw new Error("Event payload is required");var u={},d=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[f,p]of Object.entries(h))u[f]={id:d[f],type:f,properties:p};var{$set_once:y,$set:m}=t;return{event:Mt({},N_e(t,eVe),{properties:Mt({},t.properties,m?{$set:Mt({},(r=(n=t.properties)==null?void 0:n.$set)!==null&&r!==void 0?r:{},m)}:{},y?{$set_once:Mt({},(a=(s=t.properties)==null?void 0:s.$set_once)!==null&&a!==void 0?a:{},y)}:{}),elements_chain:(o=(l=t.properties)==null?void 0:l.$elements_chain)!==null&&o!==void 0?o:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}setupSiteApp(t){var r=this.apps[t.id],n=()=>{var l;!r.errored&&this.We.length&&(Qu.info("Processing "+this.We.length+" events for site app with id "+t.id),this.We.forEach(c=>r.processEvent==null?void 0:r.processEvent(c)),r.processedBuffer=!0),Object.values(this.apps).every(c=>c.processedBuffer||c.errored)&&((l=this.Ve)==null||l.call(this))},a=!1,s=l=>{r.errored=!l,r.loaded=!0,Qu.info("Site app with id "+t.id+" "+(l?"loaded":"errored")),a&&n()};try{var{processEvent:o}=t.init({posthog:this._instance,callback:l=>{s(l)}});o&&(r.processEvent=o),a=!0}catch(l){Qu.error("Error while initializing PostHog app with config id "+t.id,l),s(!1)}if(a&&r.loaded)try{n()}catch(l){Qu.error("Error while processing buffered events PostHog app with config id "+t.id,l),r.errored=!0}}Je(){var t=this.siteAppLoaders||[];for(var r of t)this.apps[r.id]={id:r.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of t)this.setupSiteApp(n)}Ke(t){if(Object.keys(this.apps).length!==0){var r=this.globalsForEvent(t);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(r)}catch(a){Qu.error("Error while processing event "+t.event+" for site app "+n.id,a)}}}onRemoteConfig(t){var r,n,a,s=this;if((r=this.siteAppLoaders)!=null&&r.length)return this.isEnabled?(this.Je(),void this._instance.on("eventCaptured",u=>this.Ke(u))):void Qu.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.Ve)==null||n.call(this),(a=t.siteApps)!=null&&a.length)if(this.isEnabled){var o=function(u){var d;Gt["__$$ph_site_app_"+u]=s._instance,(d=Gt.__PosthogExtensions__)==null||d.loadSiteApp==null||d.loadSiteApp(s._instance,c,h=>{if(h)return Qu.error("Error while initializing PostHog app with config id "+u,h)})};for(var{id:l,url:c}of t.siteApps)o(l)}else Qu.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var rVe=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hub
7845spot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],dhe=function(e,t){if(!e)return!1;var r=e.toLowerCase();return rVe.concat(t||[]).some(n=>{var a=n.toLowerCase();return r.indexOf(a)!==-1})},P4e=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&dhe(r,t))return!0;try{var n=e==null?void 0:e.userAgentData;if(n!=null&&n.brands&&n.brands.some(a=>dhe(a==null?void 0:a.brand,t)))return!0}catch{}return!!e.webdriver},wb=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),hhe="i.posthog.com";class nVe{constructor(t){this.Ye={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get uiHost(){var t,r=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return r||(r=this.apiHost.replace("."+hhe,".posthog.com")),r==="https://app.posthog.com"?"https://us.posthog.com":r}get region(){return this.Ye[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=wb.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=wb.EU:this.Ye[this.apiHost]=wb.CUSTOM),this.Ye[this.apiHost]}endpointFor(t,r){if(r===void 0&&(r=""),r&&(r=r[0]==="/"?r:"/"+r),t==="ui")return this.uiHost+r;if(this.region===wb.CUSTOM)return this.apiHost+r;var n=hhe+r;switch(t){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var aVe={icontains:(e,t)=>!!Te&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!Te&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!Te&&v2(t.href,e),not_regex:(e,t)=>!!Te&&!v2(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class yi{constructor(t){var r=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(n){n===void 0&&(n=!1),r.getWebExperiments(a=>{yi.Xe("retrieved web experiments from the server"),r.Qe=new Map,a.forEach(s=>{if(s.feature_flag_key){var o;r.Qe&&(yi.Xe("setting flag key ",s.feature_flag_key," to web experiment ",s),(o=r.Qe)==null||o.set(s.feature_flag_key,s));var l=r._instance.getFeatureFlag(s.feature_flag_key);Pa(l)&&s.variants[l]&&r.Ze(s.name,l,s.variants[l].transforms)}else if(s.variants)for(var c in s.variants){var u=s.variants[c];yi.tr(u)&&r.Ze(s.name,c,u.transforms)}})},n)},this._instance=t,this._instance.onFeatureFlags(n=>{this.onFeatureFlags(n)})}onFeatureFlags(t){if(this._is_bot())yi.Xe("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(xn(this.Qe))return this.Qe=new Map,this.loadIfEnabled(),void this.previewWebExperiment();yi.Xe("applying feature flags",t),t.forEach(r=>{var n;if(this.Qe&&(n=this.Qe)!=null&&n.has(r)){var a,s=this._instance.getFeatureFlag(r),o=(a=this.Qe)==null?void 0:a.get(r);s&&o!=null&&o.variants[s]&&this.Ze(o.name,s,o.variants[s].transforms)}})}}previewWebExperiment(){var t=yi.getWindowLocation();if(t!=null&&t.search){var r=Qq(t==null?void 0:t.search,"__experiment_id"),n=Qq(t==null?void 0:t.search,"__experiment_variant");r&&n&&(yi.Xe("previewing web experiments "+r+" && "+n),this.getWebExperiments(a=>{this.ir(parseInt(r),n,a)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,r,n){if(this._instance.config.disable_web_experiments&&!n)return t([]);var a=this._instance.get_property("$web_experiments");if(a&&!r)return t(a);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:s=>{if(s.statusCode!==200||!s.json)return t([]);var o=s.json.experiments||[];return t(o)}})}ir(t,r,n){var a=n.filter(s=>s.id===t);a&&a.length>0&&(yi.Xe("Previewing web experiment ["+a[0].name+"] with variant ["+r+"]"),this.Ze(a[0].name,r,a[0].variants[r].transforms))}static tr(t){return!xn(t.conditions)&&yi.er(t)&&yi.rr(t)}static er(t){var r;if(xn(t.conditions)||xn((r=t.conditions)==null?void 0:r.url))return!0;var n,a,s,o=yi.getWindowLocation();return!!o&&((n=t.conditions)==null||!n.url||aVe[(a=(s=t.conditions)==null?void 0:s.urlMatchType)!==null&&a!==void 0?a:"icontains"](t.conditions.url,o))}
vendor: 33,326 bytes, line 7845
7845static getWindowLocation(){return Te==null?void 0:Te.location}static rr(t){var r;if(xn(t.conditions)||xn((r=t.conditions)==null?void 0:r.utm))return!0;var n=x4e();if(n.utm_source){var a,s,o,l,c,u,d,h,f=(a=t.conditions)==null||(a=a.utm)==null||!a.utm_campaign||((s=t.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==n.utm_campaign,p=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_source||((l=t.conditions)==null||(l=l.utm)==null?void 0:l.utm_source)==n.utm_source,y=(c=t.conditions)==null||(c=c.utm)==null||!c.utm_medium||((u=t.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==n.utm_medium,m=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_term||((h=t.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==n.utm_term;return f&&y&&m&&p}return!1}static Xe(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];St.info("[WebExperiments] "+t,n)}Ze(t,r,n){this._is_bot()?yi.Xe("Refusing to render web experiment since the viewer is a likely bot"):r!=="control"?n.forEach(a=>{if(a.selector){var s;yi.Xe("applying transform of variant "+r+" for experiment "+t+" ",a);var o=(s=document)==null?void 0:s.querySelectorAll(a.selector);o==null||o.forEach(l=>{var c=l;a.html&&(c.innerHTML=a.html),a.css&&c.setAttribute("style",a.css)})}}):yi.Xe("Control variants leave the page unmodified.")}_is_bot(){return qs&&this._instance?P4e(qs,this._instance.config.custom_blocked_useragents):void 0}}var iVe=ti("[PostHog ExternalIntegrations]"),sVe={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class oVe{constructor(t){this._instance=t}it(t,r){var n;(n=Gt.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,t,a=>{if(a)return iVe.error("failed to load script",a);r()})}startIfEnabledOrStop(){var t=this,r=function(o){var l,c,u;!a||(l=Gt.__PosthogExtensions__)!=null&&(l=l.integrations)!=null&&l[o]||t.it(sVe[o],()=>{var d;(d=Gt.__PosthogExtensions__)==null||(d=d.integrations)==null||(d=d[o])==null||d.start(t._instance)}),!a&&(c=Gt.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[o]&&((u=Gt.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[o])==null||u.stop())};for(var[n,a]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;r(n)}}}var Qee="[SessionRecording]",Mx=ti(Qee);class fhe{get started(){var t;return!((t=this.sr)==null||!t.isStarted)}get status(){return this.sr?this.sr.status:this.nr&&!this.ar?"disabled":"lazy_loading"}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.nr=!1,this.lr=void 0,this._instance=t,!this._instance.sessionManager)throw Mx.error("started without valid sessionManager"),new Error(Qee+" started without valid sessionManager. This is a bug.");if(this._instance.config.cookieless_mode==="always")throw new Error(Qee+' cannot be used with cookieless_mode="always"')}get ar(){var t,r=!((t=this._instance.get_property(bY))==null||!t.enabled),n=!this._instance.config.disable_session_recording,a=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return Te&&r&&n&&!a}startIfEnabledOrStop(t){var r;if(!this.ar||(r=this.sr)==null||!r.isStarted){var n=!gt(Object.assign)&&!gt(Array.from);this.ar&&n?(this.ur(t),Mx.info("starting")):this.stopRecording()}}ur(t){var r,n,a;this.ar&&(Gt!=null&&(r=Gt.__PosthogExtensions__)!=null&&(r=r.rrweb)!=null&&r.record&&(n=Gt.__PosthogExtensions__)!=null&&n.initSessionRecording?this.hr(t):(a=Gt.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.dr,s=>{if(s)return Mx.error("could not load recorder",s);this.hr(t)}))}stopRecording(){var t,r;(t=this.lr)==null||t.call(this),this.lr=void 0,(r=this.sr)==null||r.stop()}vr(){var t;(t=this._instance.persistence)==null||t.unregister(F_e)}cr(t){if(this._instance.persistence){var r,n,a=this._instance.persistence,s=()=>{var o=t.sessionRecording===!1?void 0:t.sessionRecording,l=o==null?void 0:o.sampleRate,c=xn(l)?null:parseFloat(l);xn(c)&&this.vr();var u=o==null?void 0:o.minimumDurationMilliseconds;a.register({[bY]:Mt({enabled:!!o},o,{networkPayloadCapture:Mt({capturePerformance:t.capturePerformance},o==null?void 0:o.networkPayloadCapture),canvasRecording:{enabled:o==null?void 0:o.recordCanvas,fps:o==null?void 0:o.canvasFps,quality:o==null?void 0:o.canvasQuality},sampleRate:c,minimumDurationMilliseconds:gt(u)?null:u,endpoint:o==null?void 0:o.endpoint,triggerMatchType:o==null?void 0:o.triggerMatchType,masking:o==null?void 0:o.masking,urlTriggers:o==null?void 0:o.urlTriggers})})};s(),(r=this.lr)==null||r.call(this),this.lr=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(s)}}onRemoteConfig(t){"sessionRecording"in t?t.sessionRecording!==!1?(this.cr(t),this.nr=!0,this.startIfEnabledOrStop()):this.nr=!0:Mx.info("skipping remote config with no sessionRecording",t)}log(t,r){var n;r===void 0&&(r="log"),(n=this.sr)!=null&&n.log?this.sr.log(t,r):Mx.warn("log called before recorder was ready")}get dr(){var t,r,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(bY);return(n==null||(r=n.scriptConfig)==null?void 0:r.script)||"lazy-recorder"}hr(t){var r,n;if((r=Gt.__PosthogExtensions__)==null||!r.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.sr||(this.sr=(n=Gt.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.sr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.sr.start(t)}onRRwebEmit(t){var r;(r=this.sr)==null||r.onRRwebEmit==null||r.onRRwebEmit(t)}overrideLinkedFlag(){var t;(t=this.sr)==null||t.overrideLinkedFlag()}overrideSampling(){var t;(t=this.sr)==null||t.overrideSampling()}overrideTrigger(t){var r;(r=this.sr)==null||r.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.sr)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,r){var n;return!((n=this.sr)==null||!n.tryAddCustomEvent(t,r))}}var Cw={},Jee=()=>{},Fg="posthog",L4e=!RHe&&(cs==null?void 0:cs.indexOf("MSIE"))===-1&&(cs==null?void 0:cs.indexOf("Mozilla"))===-1,phe=e=>{var t;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:Mqe(vt==null?void 0:vt.location),persistence:"localStorage+cookie",persistence_name:"",loaded:Jee,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:e!=="2025-05-24"||"history_change",capture_pageleave:"if_capture_pageview",defaults:e??"unset",debug:hs&&Pa(hs==null?void 0:hs.search)&&hs.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(Te==null||(t=Te.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:r=>{var n="Bad HTTP status: "+r.statusCode+" "+r.text;St.error(n)},get_device_id:r=>r,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:Zee},error_tracking:{},_onCapture:Jee,__preview_eager_load_replay:!1}},mhe=e=>{var t={};gt(e.process_person)||(t.person_profiles=e.process_person),gt(e.xhr_headers)||(t.request_headers=e.xhr_headers),gt(e.cookie_name)||(t.persistence_name=e.cookie_name),gt(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),gt(e.store_google)||(t.save_campaign_params=e.store_google),gt(e.verbose)||(t.debug=e.verbose);var r=Yn({},t,e);return bn(e.property_blacklist)&&(gt(e.property_denylist)?r.property_denylist=e.property_blacklist:bn(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:St.error("Invalid value for property_denylist config: "+e.property_denylist)),r};class lVe{constructor(){this.__forceAllowLocalhost=!1}get pr(){return this.__forceAllowLocalhost}set pr(t){St.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class bW{get decideEndpointWasHit(){var t,r;return(t=(r=this.featureFlags)==null?void 0:r.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,r;return(t=(r=this.featureFlags)==null?void 0:r.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){this.webPerformance=new lVe,this.gr=!1,this.version=Hc.LIB_VERSION,this._r=new fie,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=phe(),this.SentryIntegration=iHe,this.sentryIntegration=t=>function(r,n){var a=r4e(r,n);return{name:t4e,processEvent:s=>a(s)}}(this,t),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.mr=!1,this.yr=null,this.br=null,this.wr=null,this.featureFlags=new BHe(this),this.toolbar=new oHe(this),this.scrollManager=new QHe(this),this.pageViewManager=new CHe(this),this.surveys=new WHe(this),this.experiments=new yi(this),this.exceptions=new DHe(this),this.rateLimiter=new GHe(this),this.requestRouter=new nVe(this),this.consent=new Jqe(this),this.externalIntegrations=new oVe(this),this.people={set:(t,r,n)=>{var a=Pa(t)?{[t]:r}:t;this.setPersonProperties(a),n==null||n({})},set_once:(t,r,n)=>{var a=Pa(t)?{[t]:r}:t;this.setPersonProperties(void 0,a),n==null||n({})}},this.on("eventCaptured",t=>St.info('send "'+(t==null?void 0:t.event)+'"',t))}init(t,r,n){if(n&&n!==Fg){var a,s=(a=Cw[n])!==null&&a!==void 0?a:new bW;return s._init(t,r,n),Cw[n]=s,Cw[Fg][n]=s,s}return this._init(t,r,n)}_init(t,r,n){var a,s;if(r===void 0&&(r={}),gt(t)||Mee(t))return St.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},r.debug=this.Sr(r.debug),this.Er=r,this.$r=[],r.person_profiles&&(this.br=r.person_profiles),this.set_config(Yn({},phe(r.defaults),mhe(r),{name:n,token:t})),this.config.on_xhr_error&&St.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=r.disable_compression?void 0:Jc.GZipJS;var o=this.kr();this.persistence=new MY(this.config,o),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new MY(Mt({},this.config,{persistence:"sessionStorage"}),o);var l=Mt({},this.persistence.props),c=Mt({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Pr=new YHe(x=>this.Tr(x),this.config.request_queue_config),this.Rr=new ZHe(this),this.__request_queue=[];var u=this.config.cookieless_mode==="always"||this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut();if(u||(this.sessionManager=new uhe(this),this.sessionPropsManager=new che(this,this.sessionManager,this.persistence)),new cHe(this).startIfEnabledOrStop(),this.siteApps=new tVe(this),(a=this.siteApps)==null||a.init(),u||(this.sessionRecording=new fhe(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new Hqe(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new EHe(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new SHe(this),this.exceptionObserver=new rHe(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new e4e(this,tHe),this.deadClicksAutocapture.startIfEnabled(),this.historyAutocapture=new nHe(this),this.historyAutocapture.startIfEnabled(),Hc.DEBUG=Hc.DEBUG||this.config.debug,Hc.DEBUG&&St.info("Starting in debug mode",{this:this,config:r,thisC:Mt({},this.config),p:l,s:c}),((s=r.bootstrap)==null?void 0:s.distinctID)!==void 0){var d,h,f=this.config.get_device_id(Md()),p=(d=r.bootstrap)!=null&&d.isIdentifiedID?f:r.bootstrap.distinctID;this.persistence.set_property(Vc,(h=r.bootstrap)!=null&&h.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:r.bootstrap.distinctID,$device_id:p})}if(this.Ir()){var y,m,v=Object.keys(((y=r.bootstrap)==null?void 0:y.featureFlags)||{}).filter(x=>{var _;return!((_=r.bootstrap)==null||(_=_.featureFlags)==null||!_[x])}).reduce((x,_)=>{var w;return x[_]=((w=r.bootstrap)==null||(w=w.featureFlags)==null?void 0:w[_])||!1,x},{}),g=Object.keys(((m=r.bootstrap)==null?void 0:m.featureFlagPayloads)||{}).filter(x=>v[x]).reduce((x,_)=>{var w,j;return(w=r.bootstrap)!=null&&(w=w.featureFlagPayloads)!=null&&w[_]&&(x[_]=(j=r.bootstrap)==null||(j=j.featureFlagPayloads)==null?void 0:j[_]),x},{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:g})}if(u)this.register_once({distinct_id:jx,$device_id:null},"");else if(!this.get_distinct_id()){var b=this.config.get_device_id(Md());this.register_once({distinct_id:b,$device_id:b},""),this.persistence.set_property(Vc,"anonymous")}return ha(Te,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),r.segment?aHe(this,()=>this.Cr()):this.Cr(),Xd(this.config._onCapture)&&this.config._onCapture!==Jee&&(St.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",x=>this.config._onCapture(x.event,x))),this.config.ip&&St.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}fi(t){var r,n,a,s,o,l,c,u;if(!vt||!vt.body)return St.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.fi(t)},500);this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=pr(t.supportedCompression,Jc.GZipJS)?Jc.GZipJS:pr(t.supportedCompression,Jc.Base64)?Jc.Base64:void 0),(r=t.analytics)!=null&&r.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.br?this.br:"identified_only"}),(n=this.siteApps)==null||n.onRemoteConfig(t),(a=this.sessionRecording)==null||a.onRemoteConfig(t),(s=this.autocapture)==null||s.onRemoteConfig(t),(o=this.heatmaps)==null||o.onRemoteConfig(t),this.surveys.onRemoteConfig(t),(l=this.webVitalsAutocapture)==null||l.onRemoteConfig(t),(c=this.exceptionObserver)==null||c.onRemoteConfig(t),this.exceptions.onRemoteConfig(t),(u=this.deadClicksAutocapture)==null||u.onRemoteConfig(t)}Cr(){try{this.config.loaded(this)}catch(t){St.critical("`loaded` function failed",t)}this.Or(),this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.config.cookieless_mode==="always")&&this.Fr()},1),new KHe(this).load(),this.featureFlags.flags()}Or(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Pr)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Qd(this.__request_queue,t=>this.Tr(t)),this.__request_queue=[],this.Or()}_handle_unload(){var t,r;this.config.request_batching?(this.Mr()&&this.capture("$pageleave"),(t=this.Pr)==null||t.unload(),(r=this.Rr)==null||r.unload()):this.Mr()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ci(t){this.__loaded&&(L4e?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=rH(t.url,{ip:this.config.ip?1:0}),t.headers=Mt({},this.config.request_headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(r=>{var n,a,s,o=Mt({},r);o.timeout=o.timeout||6e4,o.url=rH(o.url,{_:new Date().getTime().toString(),ver:Hc.LIB_VERSION,compression:o.compression});var l=(n=o.transport)!==null&&n!==void 0?n:"fetch",c=WU.filter(d=>!o.disableTransport||!d.transport||!o.disableTransport.includes(d.transport)),u=(a=(s=O_e(c,d=>d.transport===l))==null?void 0:s.method)!==null&&a!==void 0?a:c[0].method;if(!u)throw new Error("No available transport method");u(o)})(Mt({},t,{callback:r=>{var n,a;this.rateLimiter.checkForLimiting(r),r.statusCode>=400&&((n=(a=this.config).on_request_error)==null||n.call(a,r)),t.callback==null||t.callback(r)}}))))}Tr(t){this.Rr?this.Rr.retriableRequest(t):this.ci(t)}_execute_array(t){var r,n=[],a=[],s=[];Qd(t,l=>{l&&(r=l[0],bn(r)?s.push(l):Xd(l)?l.call(this):bn(l)&&r==="alias"?n.push(l):bn(l)&&r.indexOf("capture")!==-1&&Xd(this[r])?s.push(l):a.push(l))});var o=function(l,c){Qd(l,function(u){if(bn(u[0])){var d=c;un(u,function(h){d=d[h[0]].apply(d,h.slice(1))})}else this[u[0]].apply(this,u.slice(1))},c)};o(n,this),o(a,this),o(s,this)}Ir(){var t,r;return((t=this.config.bootstrap)==null?void 0:t.featureFlags)&&Object.keys((r=this.config.bootstrap)==null?void 0:r.featureFlags).length>0||!1}push(t){this._execute_array([t])}capture(t,r,n){var a;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Pr){if(this.is_capturing())if(!gt(t)&&Pa(t)){if(this.config.opt_out_useragent_filter||!this._is_bot()){var s=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(s==null||!s.isRateLimited){r!=null&&r.$current_url&&!Pa(r==null?void 0:r.$current_url)&&(St.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),r==null||delete r.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var o=new Date,l=(n==null?void 0:n.timestamp)||o,c=Md(),u={uuid:c,event:t,properties:this.calculateEventProperties(t,r||{},l,c)};s&&(u.properties.$lib_rate_limit_remaining_tokens=s.remainingTokens),n!=null&&n.$set&&(u.$set=n==null?void 0:n.$set);var d,h=this.Ar(n==null?void 0:n.$set_once);if(h&&(u.$set_once=h),(u=Tqe(u,n!=null&&n._noTruncate?null:this.config.properties_string_max_length)).timestamp=l,gt(n==null?void 0:n.timestamp)||(u.properties.$event_time_override_provided=!0,u.properties.$event_time_override_system_time=o),t===GU.DISMISSED||t===GU.SENT){var f=r==null?void 0:r[she.SURVEY_ID],p=r==null?void 0:r[she.SURVEY_ITERATION];d={id:f,current_iteration:p},localStorage.getItem(ohe(d))||localStorage.setItem(ohe(d),"true"),u.$set=Mt({},u.$set,{[UHe({id:f,current_iteration:p},t===GU.SENT?"responded":"dismissed")]:!0})}var y=Mt({},u.properties.$set,u.$set);if(ry(y)||this.setPersonPropertiesForFlags(y),!xn(this.config.before_send)){var m=this.Dr(u);if(!m)return;u=m}this._r.emit("eventCaptured",u);var v={method:"POST",url:(a=n==null?void 0:n._url)!==null&&a!==void 0?a:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:u,compression:"best-available",batchKey:n==null?void 0:n._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Tr(v):this.Pr.enqueue(v),u}St.critical("This capture call is ignored due to client rate limiting.")}}else St.error("No event name provided to posthog.capture")}else St.uninitializedWarning("posthog.capture")}Mi(t){return this.on("eventCaptured",r=>t(r.event,r))}calculateEventProperties(t,r,n,a,s){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return r;var o=s?void 0:this.persistence.remove_event_timer(t),l=Mt({},r);if(l.token=this.config.token,l.$config_defaults=this.config.defaults,(this.config.cookieless_mode=="always"||this.config.cookieless_mode=="on_reject"&&this.consent.isExplicitlyOptedOut())&&(l.$cookieless_mode=!0),t==="$snapshot"){var c=Mt({},this.persistence.properties(),this.sessionPersistence.properties());return l.distinct_id=c.distinct_id,(!Pa(l.distinct_id)&&!gc(l.distinct_id)||Mee(l.distinct_id))&&St.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),l}var u,d=_He(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:h,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(s,n.getTime());l.$session_id=h,l.$window_id=f}this.sessionPropsManager&&Yn(l,this.sessionPropsManager.getSessionProps());try{var p;this.sessionRecording&&Yn(l,this.sessionRecording.sdkDebugProperties),l.$sdk_debug_retry_queue_size=(p=this.Rr)==null?void 0:p.length}catch(g){l.$sdk_debug_error_capturing_properties=String(g)}if(this.requestRouter.region===wb.CUSTOM&&(l.$lib_custom_api_host=this.config.api_host),u=t!=="$pageview"||s?t!=="$pageleave"||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,a),l=Yn(l,u),t==="$pageview"&&vt&&(l.title=vt.title),!gt(o)){var y=n.getTime()-o;l.$duration=parseFloat((y/1e3).toFixed(3))}cs&&this.config.opt_out_useragent_filter&&(l.$browser_type=this._is_bot()?"bot":"browser"),(l=Yn({},d,this.persistence.properties(),this.sessionPersistence.properties(),l)).$is_identified=this._isIdentified(),bn(this.config.property_denylist)?un(this.config.property_denylist,function(g){delete l[g]}):St.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var m=this.config.sanitize_properties;m&&(St.error("sanitize_properties is deprecated. Use before_send instead"),l=m(l,t));var v=this.jr();return l.$process_person_profile=v,v&&!s&&this.Lr("_calculate_event_properties"),l}Ar(t){var r;if(!this.persistence||!this.jr()||this.gr)return t;var n=this.persistence.get_initial_props(),a=(r=this.sessionPropsManager)==null?void 0:r.getSetOnceProps(),s=Yn({},n,a||{},t||{}),o=this.config.sanitize_properties;return o&&(St.error("sanitize_properties is deprecated. Use before_send instead"),s=o(s,"$set_once")),this.gr=!0,ry(s)?void 0:s}register(t,r){var n;(n=this.persistence)==null||n.register(t,r)}register_once(t,r,n){var a;(a=this.persistence)==null||a.register_once(t,r,n)}register_for_session(t){var r;(r=this.sessionPersistence)==null||r.register(t)}unregister(t){var r;(r=this.persistence)==null||r.unregister(t)}unregister_for_session(t){var r;(r=this.sessionPersistence)==null||r.unregister(t)}Nr(t,r){this.register({[t]:r})}getFeatureFlag(t,r){return this.featureFlags.getFeatureFlag(t,r)}getFeatureFlagPayload(t){var r=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(r)}catch{return r}}isFeatureEnabled(t,r){return this.featureFlags.isFeatureEnabled(t,r)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(t,r,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,r,n)}getEarlyAccessFeatures(t,r,n){return r===void 0&&(r=!1),this.featureFlags.getEarlyAccessFeatures(t,r,n)}on(t,r){return this._r.on(t,r)}onFeatureFlags(t){return this.featureFlags.onFeatureFlags(t)}onSurveysLoaded(t){return this.surveys.onSurveysLoaded(t)}onSessionId(t){var r,n;return(r=(n=this.sessionManager)==null?void 0:n.onSessionId(t))!==null&&r!==void 0?r:()=>{}}getSurveys(t,r){r===void 0&&(r=!1),this.surveys.getSurveys(t,r)}getActiveMatchingSurveys(t,r){r===void 0&&(r=!1),this.surveys.getActiveMatchingSurveys(t,r)}renderSurvey(t,r){this.surveys.renderSurvey(t,r)}displaySurvey(t,r){r===void 0&&(r=HHe),this.surveys.displaySurvey(t,r)}canRenderSurvey(t){return this.surveys.canRenderSurvey(t)}canRenderSurveyAsync(t,r){return r===void 0&&(r=!1),this.surveys.canRenderSurveyAsync(t,r)}identify(t,r,n){if(!this.__loaded||!this.persistence)return St.uninitializedWarning("posthog.identify");if(gc(t)&&(t=t.toString(),St.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),t)if(["distinct_id","distinctid"].includes(t.toLowerCase()))St.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(t!==jx){if(this.Lr("posthog.identify")){var a=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var s=a;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}t!==a&&t!==this.get_property(mb)&&(this.unregister(mb),this.register({distinct_id:t}));var o=(this.persistence.get_property(Vc)||"anonymous")==="anonymous";t!==a&&o?(this.persistence.set_property(Vc,"identified"),this.setPersonPropertiesForFlags(Mt({},n||{},r||{}),!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:a},{$set:r||{},$set_once:n||{}}),this.wr=rhe(t,r,n),this.featureFlags.setAnonymousDistinctId(a)):(r||n)&&this.setPersonProperties(r,n),t!==a&&(this.reloadFeatureFlags(),this.unregister(Gq))}}else St.critical('The string "'+jx+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else St.error("Unique user id has not been set in posthog.identify")}setPersonProperties(t,r){if((t||r)&&this.Lr("posthog.setPersonProperties")){var n=rhe(this.get_distinct_id(),t,r);this.wr!==n?(this.setPersonPropertiesForFlags(Mt({},r||{},t||{})),this.capture("$set",{$set:t||{},$set_once:r||{}}),this.wr=n):St.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,r,n){if(t&&r){if(this.Lr("posthog.group")){var a=this.getGroups();a[t]!==r&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Mt({},a,{[t]:r})}),n&&(this.capture("$groupidentify",{$group_type:t,$group_key:r,$group_set:n}),this.setGroupPropertiesForFlags({[t]:n})),a[t]===r||n||this.reloadFeatureFlags()}}else St.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,r){r===void 0&&(r=!0),this.featureFlags.setPersonPropertiesForFlags(t,r)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,r){r===void 0&&(r=!0),this.Lr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(t,r)}resetGroupPropertiesForFlags(t){this.featureFlags.resetGroupPropertiesForFlags(t)}reset(t){var r,n,a,s;if(St.info("reset"),!this.__loaded)return St.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),(r=this.persistence)==null||r.clear(),(n=this.sessionPersistence)==null||n.clear(),this.surveys.reset(),this.featureFlags.reset(),(a=this.persistence)==null||a.set_property(Vc,"anonymous"),(s=this.sessionManager)==null||s.resetSessionId(),this.wr=null,this.config.cookieless_mode==="always")this.register_once({distinct_id:jx,$device_id:null},"");else{var l=this.config.get_device_id(Md());this.register_once({distinct_id:l,$device_id:t?l:o},"")}this.register({$last_posthog_reset:new Date().toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,r;return(t=(r=this.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:r,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),a=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+r);if(t!=null&&t.withTimestamp&&n){var s,o=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!n)return a;a+="?t="+Math.max(Math.floor((new Date().getTime()-n)/1e3)-o,0)}return a}alias(t,r){return t===this.get_property(R_e)?(St.critical("Attempting to create alias for existing People user - aborting."),-2):this.Lr("posthog.alias")?(gt(r)&&(r=this.get_distinct_id()),t!==r?(this.Nr(mb,t),this.capture("$create_alias",{alias:t,distinct_id:r})):(St.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var r=Mt({},this.config);if(ji(t)){var n,a,s,o,l;Yn(this.config,mhe(t));var c=this.kr();(n=this.persistence)==null||n.update_config(this.config,r,c),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new MY(Mt({},this.config,{persistence:"sessionStorage"}),c);var u=this.Sr(this.config.debug);Zd(u)&&(this.config.debug=u),Zd(this.config.debug)&&(this.config.debug?(Hc.DEBUG=!0,In.H()&&In.G("ph_debug","true"),St.info("set_config",{config:t,oldConfig:r,newConfig:Mt({},this.config)})):(Hc.DEBUG=!1,In.H()&&In.V("ph_debug"))),(a=this.sessionRecording)==null||a.startIfEnabledOrStop(),(s=this.autocapture)==null||s.startIfEnabled(),(o=this.heatmaps)==null||o.startIfEnabled(),this.surveys.loadIfEnabled(),this.Ur(),(l=this.externalIntegrations)==null||l.startIfEnabledOrStop()}}startSessionRecording(t){var r=t===!0,n={sampling:r||!(t==null||!t.sampling),linked_flag:r||!(t==null||!t.linked_flag),url_trigger:r||!(t==null||!t.url_trigger),event_trigger:r||!(t==null||!t.event_trigger)};if(Object.values(n).some(Boolean)){var a,s,o,l,c;(a=this.sessionManager)==null||a.checkAndGetSessionAndWindowId(),n.sampling&&((s=this.sessionRecording)==null||s.overrideSampling()),n.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),n.url_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("url")),n.event_trigger&&((c=this.sessionRecording)==null||c.overrideTrigger("event"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,r){var n=new Error("PostHog syntheticException"),a=this.exceptions.buildProperties(t,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(Mt({},a,r))}loadToolbar(t){return this.toolbar.loadToolbar(t)}get_property(t){var r;return(r=this.persistence)==null?void 0:r.props[t]}getSessionProperty(t){var r;return(r=this.sessionPersistence)==null?void 0:r.props[t]}toString(){var t,r=(t=this.config.name)!==null&&t!==void 0?t:Fg;return r!==Fg&&(r=Fg+"."+r),r}_isIdentified(){var t,r;return((t=this.persistence)==null?void 0:t.get_property(Vc))==="identified"||((r=this.sessionPersistence)==null?void 0:r.get_property(Vc))==="identified"}jr(){var t,r;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&ry(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[mb])&&((r=this.persistence)==null||(r=r.props)==null||!r[Yq]))}Mr(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.jr()||this.Lr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Lr(t){return this.config.person_profiles==="never"?(St.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Nr(Yq,!0),!0)}kr(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut(),r=this.config.opt_out_persistence_by_default||this.config.cookieless_mode==="on_reject";return this.config.disable_persistence||t&&!!r}Ur(){var t,r,n,a,s=this.kr();return((t=this.persistence)==null?void 0:t.wi)!==s&&((n=this.persistence)==null||n.set_disabled(s)),((r=this.sessionPersistence)==null?void 0:r.wi)!==s&&((a=this.sessionPersistence)==null||a.set_disabled(s)),s}opt_in_capturing(t){if(this.config.cookieless_mode!=="always"){var r,n;this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),(r=this.sessionManager)==null||r.destroy(),this.sessionManager=new uhe(this),this.persistence&&(this.sessionPropsManager=new che(this,this.sessionManager,this.persistence)),this.sessionRecording=new fhe(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.Ur(),this.Or(),this.config.cookieless_mode=="on_reject"&&this.surveys.loadIfEnabled(),(gt(t==null?void 0:t.captureEventName)||t!=null&&t.captureEventName)&&this.capture((n=t==null?void 0:t.captureEventName)!==null&&n!==void 0?n:"$opt_in",t==null?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Fr()}
7845else St.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var t,r;this.config.cookieless_mode!=="always"?(this.config.cookieless_mode==="on_reject"&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Ur(),this.config.cookieless_mode==="on_reject"&&(this.register({distinct_id:jx,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(r=this.sessionRecording)==null||r.stopRecording(),this.sessionRecording=void 0,this.Fr())):St.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===Wc.GRANTED?"granted":t===Wc.DENIED?"denied":"pending"}is_capturing(){return this.config.cookieless_mode==="always"||(this.config.cookieless_mode==="on_reject"?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Ur()}_is_bot(){return qs?P4e(qs,this.config.custom_blocked_useragents):void 0}Fr(){vt&&(vt.visibilityState==="visible"?this.mr||(this.mr=!0,this.capture("$pageview",{title:vt.title},{send_instantly:!0}),this.yr&&(vt.removeEventListener("visibilitychange",this.yr),this.yr=null)):this.yr||(this.yr=this.Fr.bind(this),ha(vt,"visibilitychange",this.yr)))}debug(t){t===!1?(Te==null||Te.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(Te==null||Te.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}M(){var t,r,n,a,s,o,l,c=this.Er||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(St.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",a=!1,s=St,o=(r="advanced_disable_flags")in(t=c)&&!gt(t[r]),l=n in t&&!gt(t[n]),o?t[r]:l?(s&&s.warn("Config field '"+n+"' is deprecated. Please use '"+r+"' instead. The old field will be removed in a future major version."),t[n]):a)}Dr(t){if(xn(this.config.before_send))return t;var r=bn(this.config.before_send)?this.config.before_send:[this.config.before_send],n=t;for(var a of r){if(n=a(n),xn(n)){var s="Event '"+t.event+"' was rejected in beforeSend function";return rqe(t.event)?St.warn(s+". This can cause unexpected behavior."):St.info(s),null}n.properties&&!ry(n.properties)||St.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var t;return(t=this.pageViewManager.Vt)==null?void 0:t.pageViewId}captureTraceFeedback(t,r){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:r})}captureTraceMetric(t,r,n){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:r,$ai_metric_value:String(n)})}Sr(t){var r=Zd(t)&&!t,n=In.H()&&In.q("ph_debug")==="true";return!r&&(!!n||t)}}(function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=Nqe(e.prototype[t[r]])})(bW,["identify"]);var ghe,Ko=(ghe=Cw[Fg]=new bW,function(){function e(){e.done||(e.done=!0,L4e=!1,un(Cw,function(t){t._dom_loaded()}))}vt!=null&&vt.addEventListener?vt.readyState==="complete"?e():ha(vt,"DOMContentLoaded",e,{capture:!1}):Te&&St.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),ghe);const cVe=["/admin","/import-blog","/auto-categorize","/auto-link-posts","/update-authors","/fix-blog-content","/delete-post","/update-blog-links","/update-page-prompt"],yhe=e=>!cVe.some(t=>e.startsWith(t));function O4e(e){for(let t=0;t<5;t++)try{const r=decodeURIComponent(e);if(r===e)return e;e=r}catch{return null}return null}function uVe(e){const t=O4e(e);return t===null||/shared\/story\/|[?&#](?:[^=&#]*(?:token|secret|password)[^=&#]*|code|api_key)=|#|(?:https?:)?\/\/[^/\s]*@/i.test(t)}function ete(e){const t=/^https?:\/\//i.test(e),r=e.startsWith("//"),n=/^(?:\/|\.\.?\/|\?|#|shared\/story\/)/i.test(e);
7845if(!t&&!n)return e;try{const a=new URL(e,"https://analytics.invalid/");if(!["http:","https:"].includes(a.protocol))return e;a.hash="",a.username="",a.password="";for(const[o,l]of Array.from(a.searchParams.entries()))(/(?:token|secret|password|^code$|^api_key$)/i.test(o)||uVe(l))&&a.searchParams.delete(o);const s=O4e(a.pathname);return s===null?a.pathname="/[redacted]":/\/shared\/story\//i.test(s)&&(a.pathname=s.replace(/(\/shared\/story\/)[^/]+/i,"$1[redacted]")),t?a.toString():r?a.toString().replace(/^https?:/,""):e.startsWith("#")?"":e.startsWith("?")?a.search:a.pathname+a.search}catch{return e}}function tte(e){return e instanceof Date?e:typeof e=="string"?ete(e):Array.isArray(e)?e.map(tte):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,tte(r)])):e}const vhe=new Set;function rte(e,t){var r;if(!t.storyId||!t.userId||!((r=window.posthog)!=null&&r.capture)||e==="story_generation_accepted"&&!t.jobId)return!1;try{return window.posthog.capture(e,{story_id:t.storyId,distinct_id:t.userId,funnel_version:1,source:"questionnaire",...t.jobId?{job_id:t.jobId}:{}}),!0}catch{return!1}}function dVe(e){var r;if(!e.storyId||!e.userId||!e.isOwner||e.isAdmin||e.isPublicViewer||!e.isSample||!e.showingBook||!((r=window.posthog)!=null&&r.capture))return;const t=`${e.userId}:${e.storyId}`;if(!vhe.has(t))try{window.posthog.capture("free_sample_viewed",{story_id:e.storyId,distinct_id:e.userId,funnel_version:1}),vhe.add(t)}catch{}}const hVe=30*60*1e3;let b3=!1,LY=!1;const fVe=({children:e})=>{var d;const t=wa(),{user:r,loading:n,authVerified:a}=er(),s=k.useRef(null),o=k.useRef(null),l=yhe(t.pathname),c=(d=r==null?void 0:r.user_metadata)==null?void 0:d.attribution,u=c?JSON.stringify(c):"";return k.useLayoutEffect(()=>(LY=a&&!n,()=>{LY=!1}),[a,n]),k.useLayoutEffect(()=>{!l||b3||n||!a||(Ko.init("phc_JIxR0p2ZDX6XHpLfdxmQmS4RRGQoBBzrtv9ppe3hLNP",{api_host:"https://eu.i.posthog.com",person_profiles:"identified_only",capture_pageview:!1,autocapture:{url_ignorelist:[".*/blog/.*"]},before_send:h=>{if(!h||!LY||!yhe(window.location.pathname))return null;const f=tte(h),p=f.properties.distinct_id;return f.event==="signup_completed"&&f.properties.funnel_version===1&&typeof p=="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(p)&&(f.uuid=p),f},session_recording:{maskNetworkRequestFn:h=>({...h,url:ete(h.url)})}}),window.posthog=Ko,b3=!0)},[l,n,a]),k.useLayoutEffect(()=>{if(!l||!b3||n||!a)return;const h=Ko.get_property("$user_id")||s.current;if(r!=null&&r.id){h&&h!==r.id&&Ko.reset();const f=new Date(r.created_at),p=Date.now()-f.getTime()<hVe,y=c??(p?rie():null);Ko.identify(r.id,{email:r.email||"",created_at:r.created_at},YUe(y)),s.current=r.id,Number.isFinite(f.getTime())&&Ko.capture("signup_completed",{funnel_version:1},{timestamp:f})}else h&&(Ko.reset(),s.current=null)},[r==null?void 0:r.id,r==null?void 0:r.email,r==null?void 0:r.created_at,l,n,a,u]),k.useEffect(()=>{if(!l||!b3){o.current=null;return}if(n||!a||o.current===t.pathname)return;const h=new URL(window.location.href);h.search="",h.hash="",Ko.capture("$pageview",{$current_url:ete(h.toString()),$pathname:t.pathname}),o.current=t.pathname},[t.pathname,l,n,a]),e},wW=ov("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 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 hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),le=k.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...a},s)=>{const o=n?Sae:"button";return i.jsx(o,{className:De(wW({variant:t,size:r,className:e})),ref:s,...a})});le.displayName="Button";const pVe=6e4,mVe=3e4,gVe=5e3,yVe=1e4,vVe=9e4,xVe=5*6e4,xhe="kibbi.app-update.reload",bVe=()=>window.location.reload(),R4e=k.createContext(()=>{});function wVe(e,t){const r=k.useContext(R4e),{key:n}=wa(),a=k.useRef(Symbol("update-boundary"));k.useLayoutEffect(()=>{r(a.current,{routeKey:n,ready:e,beforeReload:t})},[r,n,e,t]),k.useLayoutEffect(()=>{const s=a.current;return()=>r(s,null)},[r])}function kVe({children:e,enabled:t=!0,buildId:r="6ac13b6f93bad20008823ad4",reload:n=bVe}){const[a,s]=k.useState(null),{key:o}=wa(),l=k.useRef(null),c=k.useRef(Date.now()),u=k.useRef(0),d=k.useRef(!1),h=k.useRef({routeKey:o,reload:n});k.useLayoutEffect(()=>{h.current.routeKey!==o&&(c.current=Date.now()),h.current={routeKey:o,reload:n}},[o,n]);const f=k.useCallback((p,y)=>{var m,v;y?(y.ready&&(!((m=l.current)!=null&&m.ready)||l.current.routeKey!==y.routeKey)&&
7845(c.current=Date.now()),l.current={owner:p,...y}):((v=l.current)==null?void 0:v.owner)===p&&(l.current=null)},[]);return k.useEffect(()=>{if(!t)return;const p=()=>{c.current=Date.now()},y=["pointerdown","keydown","input","scroll","pageshow","focus"];for(const m of y)window.addEventListener(m,p,{capture:!0,passive:!0});return document.addEventListener("visibilitychange",p),()=>{for(const m of y)window.removeEventListener(m,p,!0);document.removeEventListener("visibilitychange",p)}},[t]),k.useEffect(()=>{if(!t||!r)return;let p=!1,y=null,m=-1/0;const v=async()=>{var j;if(document.visibilityState!=="visible"||y||Date.now()-m<mVe)return;m=Date.now();const x=new AbortController;y=x;const _=window.setTimeout(()=>x.abort(),gVe);let w=!1;try{const E=await fetch("/app-version.json",{cache:"no-store",redirect:"error",signal:x.signal});if(!E.ok||!((j=E.headers.get("content-type"))!=null&&j.includes("application/json")))return;const C=await E.json();if(p||x.signal.aborted)return;const N=C&&typeof C=="object"&&"id"in C?C.id:null;w=typeof N=="string"&&/^[a-zA-Z0-9_-]{1,80}$/.test(N),u.current=w?Date.now():0,s(w&&N!==r?N:null)}catch{}finally{w||(u.current=0),window.clearTimeout(_),y=null}},g=()=>{v()};v();const b=window.setInterval(g,pVe);return window.addEventListener("pageshow",g),window.addEventListener("online",g),window.addEventListener("focus",g),document.addEventListener("visibilitychange",g),()=>{p=!0,y==null||y.abort(),window.clearInterval(b),window.removeEventListener("pageshow",g),window.removeEventListener("online",g),window.removeEventListener("focus",g),document.removeEventListener("visibilitychange",g)}},[t,r]),k.useEffect(()=>{if(!t||!a)return;const p=window.setInterval(()=>{const y=Date.now(),m=l.current;if(!(d.current||!(m!=null&&m.ready)||m.routeKey!==h.current.routeKey||document.visibilityState!=="visible"||!navigator.onLine||y-c.current<yVe||!u.current||y-u.current>vVe||document.querySelector('[role="dialog"], [role="alertdialog"], input, textarea, select, [contenteditable="true"]')))try{const v=JSON.parse(sessionStorage.getItem(xhe)||"null");if(v&&(v.from===r||typeof v.at!="number"||y-v.at<xVe)||!m.beforeReload())return;sessionStorage.setItem(xhe,JSON.stringify({from:r,to:a,at:y})),d.current=!0,h.current.reload()}catch{}},1e3);return()=>window.clearInterval(p)},[a,t,r]),i.jsxs(R4e.Provider,{value:f,children:[a&&i.jsxs("aside",{role:"status","data-testid":"app-update-notice",className:"relative z-40 flex flex-wrap items-center justify-center gap-2 border-b bg-background px-4 py-2 text-sm",children:[i.jsx("span",{children:"An update is ready. Save your work before refreshing."}),i.jsx(le,{variant:"outline",size:"sm",onClick:()=>{var p;window.confirm("Refreshing will discard unsaved changes. Finish any payment first. Refresh now?")&&((p=l.current)==null||p.beforeReload(),n())},children:"Refresh"})]}),e]})}var D4e={exports:{}},_Ve="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",SVe=_Ve,jVe=SVe;function F4e(){}function $4e(){}$4e.resetWarningCache=F4e;var EVe=function(){function e(n,a,s,o,l,c){if(c!==jVe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:$4e,resetWarningCache:F4e};return r.PropTypes=r,r};D4e.exports=EVe();var CVe=D4e.exports;const st=jr(CVe);function NVe(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var B4e=k,TVe=NVe(B4e);function bhe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AVe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var MVe=!!(typeof window<"u"&&window.document&&window.document.createElement);function IVe(e,t,r){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");
7845if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(a){return a.displayName||a.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var o=[],l;function c(){l=e(o.map(function(d){return d.props})),u.canUseDOM?t(l):r&&(l=r(l))}var u=function(d){AVe(h,d);function h(){return d.apply(this,arguments)||this}h.peek=function(){return l},h.rewind=function(){if(h.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,o=[],y};var f=h.prototype;return f.UNSAFE_componentWillMount=function(){o.push(this),c()},f.componentDidUpdate=function(){c()},f.componentWillUnmount=function(){var y=o.indexOf(this);o.splice(y,1),c()},f.render=function(){return TVe.createElement(s,this.props)},h}(B4e.PureComponent);return bhe(u,"displayName","SideEffect("+n(s)+")"),bhe(u,"canUseDOM",MVe),u}}var PVe=IVe;const LVe=jr(PVe);var OVe=typeof Element<"u",RVe=typeof Map=="function",DVe=typeof Set=="function",FVe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function KU(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!KU(e[n],t[n]))return!1;return!0}var s;if(RVe&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!KU(n.value[1],t.get(n.value[0])))return!1;return!0}if(DVe&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(FVe&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(OVe&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!KU(e[a[n]],t[a[n]]))return!1;return!0}return e!==e&&t!==t}var $Ve=function(t,r){try{return KU(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const BVe=jr($Ve);/* 7846object-assign 7847(c) Sindre Sorhus 7848@license MIT
7849*/var whe=Object.getOwnPropertySymbols,zVe=Object.prototype.hasOwnProperty,UVe=Object.prototype.propertyIsEnumerable;function qVe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function HVe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(s){a[s]=s}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var VVe=HVe()?Object.assign:function(e,t){for(var r,n=qVe(e),a,s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var o in r)zVe.call(r,o)&&(n[o]=r[o]);if(whe){a=whe(r);for(var l=0;l<a.length;l++)UVe.call(r,a[l])&&(n[a[l]]=r[a[l]])}}return n};const WVe=jr(VVe);var l0={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},nr={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(nr).map(function(e){return nr[e]});var jn={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},nH={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},kk={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},GVe=Object.keys(nH).reduce(function(e,t){return e[nH[t]]=t,e},{}),KVe=[nr.NOSCRIPT,nr.SCRIPT,nr.STYLE],ol="data-react-helmet",YVe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XVe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ZVe=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),rs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},QVe=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},khe=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},JVe=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},nte=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},eWe=function(t){var r=Ry(t,nr.TITLE),n=Ry(t,kk.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var a=Ry(t,kk.DEFAULT_TITLE);return r||a||void 0},tWe=function(t){return Ry(t,kk.ON_CHANGE_CLIENT_STATE)||function(){}},OY=function(t,r){return r.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,a){return rs({},n,a)},{})},rWe=function(t,r){return r.filter(function(n){return typeof n[nr.BASE]<"u"}).map(function(n){return n[nr.BASE]}).reverse().reduce(function(n,a){if(!n.length)for(var s=Object.keys(a),o=0;o<s.length;o++){var l=s[o],c=l.toLowerCase();if(t.indexOf(c)!==-1&&a[c])return n.concat(a)}return n},[])},Ix=function(t,r,n){var a={};return n.filter(function(s){return Array.isArray(s[t])?!0:(typeof s[t]<"u"&&sWe("Helmet: "+t+' should be of type "Array". Instead found type "'+YVe(s[t])+'"'),!1)}).map(function(s){return s[t]}).reverse().reduce(function(s,o){var l={};o.filter(function(f){for(var p=void 0,y=Object.keys(f),m=0;m<y.length;m++){var v=y[m],g=v.toLowerCase();r.indexOf(g)!==-1&&!(p===jn.REL&&f[p].toLowerCase()==="canonical")&&!(g===jn.REL&&f[g].toLowerCase()==="stylesheet")&&(p=g),r.indexOf(v)!==-1&&(v===jn.INNER_HTML||v===jn.CSS_TEXT||v===jn.ITEM_PROP)&&(p=v)}if(!p||!f[p])return!1;var b=f[p].toLowerCase();return a[p]||(a[p]={}),l[p]||(l[p]={}),a[p][b]?!1:(l[p][b]=!0,!0)}
7849).reverse().forEach(function(f){return s.push(f)});for(var c=Object.keys(l),u=0;u<c.length;u++){var d=c[u],h=WVe({},a[d],l[d]);a[d]=h}return s},[]).reverse()},Ry=function(t,r){for(var n=t.length-1;n>=0;n--){var a=t[n];if(a.hasOwnProperty(r))return a[r]}return null},nWe=function(t){return{baseTag:rWe([jn.HREF,jn.TARGET],t),bodyAttributes:OY(l0.BODY,t),defer:Ry(t,kk.DEFER),encode:Ry(t,kk.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:OY(l0.HTML,t),linkTags:Ix(nr.LINK,[jn.REL,jn.HREF],t),metaTags:Ix(nr.META,[jn.NAME,jn.CHARSET,jn.HTTPEQUIV,jn.PROPERTY,jn.ITEM_PROP],t),noscriptTags:Ix(nr.NOSCRIPT,[jn.INNER_HTML],t),onChangeClientState:tWe(t),scriptTags:Ix(nr.SCRIPT,[jn.SRC,jn.INNER_HTML],t),styleTags:Ix(nr.STYLE,[jn.CSS_TEXT],t),title:eWe(t),titleAttributes:OY(l0.TITLE,t)}},ate=function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout(function(){ate(t)},0)}}(),_he=function(t){return clearTimeout(t)},aWe=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ate:global.requestAnimationFrame||ate,iWe=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||_he:global.cancelAnimationFrame||_he,sWe=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Px=null,oWe=function(t){Px&&iWe(Px),t.defer?Px=aWe(function(){She(t,function(){Px=null})}):(She(t),Px=null)},She=function(t,r){var n=t.baseTag,a=t.bodyAttributes,s=t.htmlAttributes,o=t.linkTags,l=t.metaTags,c=t.noscriptTags,u=t.onChangeClientState,d=t.scriptTags,h=t.styleTags,f=t.title,p=t.titleAttributes;ite(nr.BODY,a),ite(nr.HTML,s),lWe(f,p);var y={baseTag:bg(nr.BASE,n),linkTags:bg(nr.LINK,o),metaTags:bg(nr.META,l),noscriptTags:bg(nr.NOSCRIPT,c),scriptTags:bg(nr.SCRIPT,d),styleTags:bg(nr.STYLE,h)},m={},v={};Object.keys(y).forEach(function(g){var b=y[g],x=b.newTags,_=b.oldTags;x.length&&(m[g]=x),_.length&&(v[g]=y[g].oldTags)}),r&&r(),u(t,m,v)},z4e=function(t){return Array.isArray(t)?t.join(""):t},lWe=function(t,r){typeof t<"u"&&document.title!==t&&(document.title=z4e(t)),ite(nr.TITLE,r)},ite=function(t,r){var n=document.getElementsByTagName(t)[0];if(n){for(var a=n.getAttribute(ol),s=a?a.split(","):[],o=[].concat(s),l=Object.keys(r),c=0;c<l.length;c++){var u=l[c],d=r[u]||"";n.getAttribute(u)!==d&&n.setAttribute(u,d),s.indexOf(u)===-1&&s.push(u);var h=o.indexOf(u);h!==-1&&o.splice(h,1)}for(var f=o.length-1;f>=0;f--)n.removeAttribute(o[f]);s.length===o.length?n.removeAttribute(ol):n.getAttribute(ol)!==l.join(",")&&n.setAttribute(ol,l.join(","))}},bg=function(t,r){var n=document.head||document.querySelector(nr.HEAD),a=n.querySelectorAll(t+"["+ol+"]"),s=Array.prototype.slice.call(a),o=[],l=void 0;return r&&r.length&&r.forEach(function(c){var u=document.createElement(t);for(var d in c)if(c.hasOwnProperty(d))if(d===jn.INNER_HTML)u.innerHTML=c.innerHTML;else if(d===jn.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=c.cssText:u.appendChild(document.createTextNode(c.cssText));else{var h=typeof c[d]>"u"?"":c[d];u.setAttribute(d,h)}u.setAttribute(ol,"true"),s.some(function(f,p){return l=p,u.isEqualNode(f)})?s.splice(l,1):o.push(u)}),s.forEach(function(c){return c.parentNode.removeChild(c)}),o.forEach(function(c){return n.appendChild(c)}),{oldTags:s,newTags:o}},U4e=function(t){return Object.keys(t).reduce(function(r,n){var a=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return r?r+" "+a:a},"")},cWe=function(t,r,n,a){var s=U4e(n),o=z4e(r);return s?"<"+t+" "+ol+'="true" '+s+">"+nte(o,a)+"</"+t+">":"<"+t+" "+ol+'="true">'+nte(o,a)+"</"+t+">"},uWe=function(t,r,n){return r.reduce(function(a,s){var o=Object.keys(s).filter(function(u){return!(u===jn.INNER_HTML||u===jn.CSS_TEXT)}).reduce(function(u,d){var h=typeof s[d]>"u"?d:d+'="'+nte(s[d],n)+'"';return u?u+" "+h:h},""),l=s.innerHTML||s.cssText||"",c=KVe.indexOf(t)===-1;return a+"<"+t+" "+ol+'="true" '+o+(c?"/>":">"+l+"</"+t+">")},"")},q4e=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,a){return n[nH[a]||a]=t[a],n},r)},dWe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,a){return n[GVe[a]||a]=t[a],n},r)},hWe=function(t,r,n){var a,s=(a={key:r},a[ol]=!0,a),o=q4e(n,s);return[ce.createElement(nr.TITLE,o,r)]},fWe=function(t,r){return r.map(function(n,a){var s,o=(s={key:a},s[ol]=!0,s);
7849return Object.keys(n).forEach(function(l){var c=nH[l]||l;if(c===jn.INNER_HTML||c===jn.CSS_TEXT){var u=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:u}}else o[c]=n[l]}),ce.createElement(t,o)})},Rc=function(t,r,n){switch(t){case nr.TITLE:return{toComponent:function(){return hWe(t,r.title,r.titleAttributes)},toString:function(){return cWe(t,r.title,r.titleAttributes,n)}};case l0.BODY:case l0.HTML:return{toComponent:function(){return q4e(r)},toString:function(){return U4e(r)}};default:return{toComponent:function(){return fWe(t,r)},toString:function(){return uWe(t,r,n)}}}},H4e=function(t){var r=t.baseTag,n=t.bodyAttributes,a=t.encode,s=t.htmlAttributes,o=t.linkTags,l=t.metaTags,c=t.noscriptTags,u=t.scriptTags,d=t.styleTags,h=t.title,f=h===void 0?"":h,p=t.titleAttributes;return{base:Rc(nr.BASE,r,a),bodyAttributes:Rc(l0.BODY,n,a),htmlAttributes:Rc(l0.HTML,s,a),link:Rc(nr.LINK,o,a),meta:Rc(nr.META,l,a),noscript:Rc(nr.NOSCRIPT,c,a),script:Rc(nr.SCRIPT,u,a),style:Rc(nr.STYLE,d,a),title:Rc(nr.TITLE,{title:f,titleAttributes:p},a)}},pWe=function(t){var r,n;return n=r=function(a){QVe(s,a);function s(){return XVe(this,s),JVe(this,a.apply(this,arguments))}return s.prototype.shouldComponentUpdate=function(l){return!BVe(this.props,l)},s.prototype.mapNestedChildrenToProps=function(l,c){if(!c)return null;switch(l.type){case nr.SCRIPT:case nr.NOSCRIPT:return{innerHTML:c};case nr.STYLE:return{cssText:c}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},s.prototype.flattenArrayTypeChildren=function(l){var c,u=l.child,d=l.arrayTypeChildren,h=l.newChildProps,f=l.nestedChildren;return rs({},d,(c={},c[u.type]=[].concat(d[u.type]||[],[rs({},h,this.mapNestedChildrenToProps(u,f))]),c))},s.prototype.mapObjectTypeChildren=function(l){var c,u,d=l.child,h=l.newProps,f=l.newChildProps,p=l.nestedChildren;switch(d.type){case nr.TITLE:return rs({},h,(c={},c[d.type]=p,c.titleAttributes=rs({},f),c));case nr.BODY:return rs({},h,{bodyAttributes:rs({},f)});case nr.HTML:return rs({},h,{htmlAttributes:rs({},f)})}return rs({},h,(u={},u[d.type]=rs({},f),u))},s.prototype.mapArrayTypeChildrenToProps=function(l,c){var u=rs({},c);return Object.keys(l).forEach(function(d){var h;u=rs({},u,(h={},h[d]=l[d],h))}),u}
7849,s.prototype.warnOnInvalidChildren=function(l,c){return!0},s.prototype.mapChildrenToProps=function(l,c){var u=this,d={};return ce.Children.forEach(l,function(h){if(!(!h||!h.props)){var f=h.props,p=f.children,y=khe(f,["children"]),m=dWe(y);switch(u.warnOnInvalidChildren(h,p),h.type){case nr.LINK:case nr.META:case nr.NOSCRIPT:case nr.SCRIPT:case nr.STYLE:d=u.flattenArrayTypeChildren({child:h,arrayTypeChildren:d,newChildProps:m,nestedChildren:p});break;default:c=u.mapObjectTypeChildren({child:h,newProps:c,newChildProps:m,nestedChildren:p});break}}}),c=this.mapArrayTypeChildrenToProps(d,c),c},s.prototype.render=function(){var l=this.props,c=l.children,u=khe(l,["children"]),d=rs({},u);return c&&(d=this.mapChildrenToProps(c,d)),ce.createElement(t,d)},ZVe(s,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),s}(ce.Component),r.propTypes={base:st.object,bodyAttributes:st.object,children:st.oneOfType([st.arrayOf(st.node),st.node]),defaultTitle:st.string,defer:st.bool,encodeSpecialCharacters:st.bool,htmlAttributes:st.object,link:st.arrayOf(st.object),meta:st.arrayOf(st.object),noscript:st.arrayOf(st.object),onChangeClientState:st.func,script:st.arrayOf(st.object),style:st.arrayOf(st.object),title:st.string,titleAttributes:st.object,titleTemplate:st.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=t.peek,r.rewind=function(){var a=t.rewind();return a||(a=H4e({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),a},n},mWe=function(){return null},gWe=LVe(nWe,oWe,H4e)(mWe),qt=pWe(gWe);qt.renderStatic=qt.rewind;const va="/assets/kibbi-logo-KjMrR9ge.png";var RY="focusScope.autoFocusOnMount",DY="focusScope.autoFocusOnUnmount",jhe={bubbles:!1,cancelable:!0},yWe="FocusScope",$_=k.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...o}=e,[l,c]=k.useState(null),u=Qn(a),d=Qn(s),h=k.useRef(null),f=Vt(t,m=>c(m)),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(n){let m=function(x){if(p.paused||!l)return;const _=x.target;l.contains(_)?h.current=_:ad(h.current,{select:!0})},v=function(x){if(p.paused||!l)return;const _=x.relatedTarget;_!==null&&(l.contains(_)||ad(h.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const w of x)w.removedNodes.length>0&&ad(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const b=new MutationObserver(g);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),b.disconnect()}}},[n,l,p.paused]),k.useEffect(()=>{if(l){Che.add(p);const m=document.activeElement;if(!l.contains(m)){const g=new CustomEvent(RY,jhe);l.addEventListener(RY,u),l.dispatchEvent(g),g.defaultPrevented||(vWe(_We(V4e(l)),{select:!0}),document.activeElement===m&&ad(l))}return()=>{l.removeEventListener(RY,u),setTimeout(()=>{const g=new CustomEvent(DY,jhe);l.addEventListener(DY,d),l.dispatchEvent(g),g.defaultPrevented||ad(m??document.body,{select:!0}),l.removeEventListener(DY,d),Che.remove(p)},0)}}},[l,u,d,p]);const y=k.useCallback(m=>{if(!r&&!n||p.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(v&&g){const b=m.currentTarget,[x,_]=xWe(b);x&&_?!m.shiftKey&&g===_?(m.preventDefault(),r&&ad(x,{select:!0})):m.shiftKey&&g===x&&(m.preventDefault(),r&&ad(_,{select:!0})):g===b&&m.preventDefault()}},[r,n,p.paused]);return i.jsx(dt.div,{tabIndex:-1,...o,ref:f,onKeyDown:y})});$_.displayName=yWe;function vWe(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ad(n,{select:t}),document.activeElement!==r)return}function xWe(e){const t=V4e(e),r=Ehe(t,e),n=Ehe(t.reverse(),e);return[r,n]}function V4e(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ehe(e,t){for(const r of e)if(!bWe(r,{upTo:t}))return r}function bWe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wWe(e){return e instanceof HTMLInputElement&&"select"in e}function ad(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&wWe(e)&&t&&e.select()}}var Che=kWe();function kWe(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Nhe(e,t),e.unshift(t)},remove(t){var r;e=Nhe(e,t),(r=e[0])==null||r.resume()}}}function Nhe(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function _We(e){return e.filter(t=>t.tagName!=="A")}var FY=0;function kW(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??The()),document.body.insertAdjacentElement("beforeend",e[1]??The()),FY++,()=>{FY===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),FY--}},[])}function The(){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,700 bytes, lines 7849-7864
7849style.position="fixed",e.style.pointerEvents="none",e}var Kl=function(){return Kl=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Kl.apply(this,arguments)};function W4e(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function SWe(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,s;n<a;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var YU="right-scroll-bar-position",XU="width-before-scroll-bar",jWe="with-scroll-bars-hidden",EWe="--removed-body-scroll-bar-size";function $Y(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CWe(e,t){var r=k.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var NWe=typeof window<"u"?k.useLayoutEffect:k.useEffect,Ahe=new WeakMap;function TWe(e,t){var r=CWe(null,function(n){return e.forEach(function(a){return $Y(a,n)})});return NWe(function(){var n=Ahe.get(r);if(n){var a=new Set(n),s=new Set(e),o=r.current;a.forEach(function(l){s.has(l)||$Y(l,null)}),s.forEach(function(l){a.has(l)||$Y(l,o)})}Ahe.set(r,e)},[e]),r}function AWe(e){return e}function MWe(e,t){t===void 0&&(t=AWe);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var o=t(s,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(s){for(n=!0;r.length;){var o=r;r=[],o.forEach(s)}r={push:function(l){return s(l)},filter:function(){return r}}},assignMedium:function(s){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(s),o=r}var c=function(){var d=o;o=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),r}}}};return a}function IWe(e){e===void 0&&(e={});var t=MWe(null);return t.options=Kl({async:!0,ssr:!1},e),t}var G4e=function(e){var t=e.sideCar,r=W4e(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return k.createElement(n,Kl({},r))};G4e.isSideCarExport=!0;function PWe(e,t){return e.useMedium(t),G4e}var K4e=IWe(),BY=function(){},_W=k.forwardRef(function(e,t){var r=k.useRef(null),n=k.useState({onScrollCapture:BY,onWheelCapture:BY,onTouchMoveCapture:BY}),a=n[0],s=n[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noRelative,y=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,x=e.gapMode,_=W4e(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,j=TWe([r,t]),E=Kl(Kl({},_),a);return k.createElement(k.Fragment,null,d&&k.createElement(w,{sideCar:K4e,removeScrollBar:u,shards:h,noRelative:p,noIsolation:y,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:r,gapMode:x}),o?k.cloneElement(k.Children.only(l),Kl(Kl({},E),{ref:j})):k.createElement(b,Kl({},E,{className:c,ref:j}),l))});_W.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_W.classNames={fullWidth:XU,zeroRight:YU};var LWe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function OWe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=LWe();return t&&e.setAttribute("nonce",t),e}function RWe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function DWe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var FWe=function(){var e=0,t=null;return{add:function(r){e==0&&(t=OWe())&&(RWe(t,r),DWe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$We=function(){var e=FWe();return function(t,r){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Y4e=function(){var e=$We(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},BWe={left:0,top:0,right:0,gap:0},zY=function(e){return parseInt(e||"",10)||0},zWe=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[zY(r),zY(n),zY(a)]},UWe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return BWe;var t=zWe(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},qWe=Y4e(),Dy="data-scroll-locked",HWe=function(e,t,r,n){var a=e.left,s=e.top,o=e.right,l=e.gap;return r===void 0&&(r="margin"),` 7850 .`.concat(jWe,` { 7851 overflow: hidden `).concat(n,`; 7852 padding-right: `).concat(l,"px ").concat(n,`; 7853 } 7854 body[`).concat(Dy,`] { 7855 overflow: hidden `).concat(n,`; 7856 overscroll-behavior: contain; 7857 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 7858 padding-left: `.concat(a,`px; 7859 padding-top: `).concat(s,`px; 7860 padding-right: `).concat(o,`px; 7861 margin-left:0; 7862 margin-top:0; 7863 margin-right: `).concat(l,"px ").concat(n,`; 7864 `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
7864")].filter(Boolean).join(""),` 7865 } 7866 7867 .`).concat(YU,` { 7868 right: `).concat(l,"px ").concat(n,`; 7869 } 7870 7871 .`).concat(XU,` { 7872 margin-right: `).concat(l,"px ").concat(n,`; 7873 } 7874 7875 .`).concat(YU," .").concat(YU,` { 7876 right: 0 `).concat(n,`; 7877 } 7878 7879 .`).concat(XU," .").concat(XU,` { 7880 margin-right: 0 `).concat(n,`; 7881 } 7882 7883 body[`).concat(Dy,`] { 7884 `).concat(EWe,": ").concat(l,`px; 7885 } 7886`)},Mhe=function(){var e=parseInt(document.body.getAttribute(Dy)||"0",10);return isFinite(e)?e:0},VWe=function(){k.useEffect(function(){return document.body.setAttribute(Dy,(Mhe()+1).toString()),function(){var e=Mhe()-1;e<=0?document.body.removeAttribute(Dy):document.body.setAttribute(Dy,e.toString())}},[])},WWe=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;VWe();var s=k.useMemo(function(){return UWe(a)},[a]);return k.createElement(qWe,{styles:HWe(s,!t,a,r?"":"!important")})},ste=!1;if(typeof window<"u")try{var w3=Object.defineProperty({},"passive",{get:function(){return ste=!0,!0}});window.addEventListener("test",w3,w3),window.removeEventListener("test",w3,w3)}catch{ste=!1}var wg=ste?{passive:!1}:!1,GWe=function(e){return e.tagName==="TEXTAREA"},X4e=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!GWe(e)&&r[t]==="visible")},KWe=function(e){return X4e(e,"overflowY")},YWe=function(e){return X4e(e,"overflowX")},Ihe=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=Z4e(e,n);if(a){var s=Q4e(e,n),o=s[1],l=s[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},XWe=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},ZWe=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Z4e=function(e,t){return e==="v"?KWe(t):YWe(t)},Q4e=function(e,t){return e==="v"?XWe(t):ZWe(t)},QWe=function(e,t){return e==="h"&&t==="rtl"?-1:1},JWe=function(e,t,r,n,a){var s=QWe(e,window.getComputedStyle(t).direction),o=s*n,l=r.target,c=t.contains(l),u=!1,d=o>0,h=0,f=0;do{if(!l)break;var p=Q4e(e,l),y=p[0],m=p[1],v=p[2],g=m-v-s*y;(y||g)&&Z4e(e,l)&&(h+=g,f+=y);var b=l.parentNode;l=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(h)<1||!a)||!d&&(Math.abs(f)<1||!a))&&(u=!0),u},k3=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Phe=function(e){return[e.deltaX,e.deltaY]},Lhe=function(e){return e&&"current"in e?e.current:e},eGe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tGe=function(e){return` 7887 .block-interactivity-`.concat(e,` {pointer-events: none;} 7888 .allow-interactivity-`).concat(e,` {pointer-events: all;} 7889`)},rGe=0,kg=[];function nGe(e){var t=k.useRef([]),r=k.useRef([0,0]),n=k.useRef(),a=k.useState(rGe++)[0],s=k.useState(Y4e)[0],o=k.useRef(e);k.useEffect(function(){o.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var m=SWe([e.lockRef.current],(e.shards||[]).map(Lhe),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=k.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var g=k3(m),b=r.current,x="deltaX"in m?m.deltaX:b[0]-g[0],_="deltaY"in m?m.deltaY:b[1]-g[1],w,j=m.target,E=Math.abs(x)>Math.abs(_)?"h":"v";if("touches"in m&&E==="h"&&j.type==="range")return!1;var C=Ihe(E,j);if(!C)return!0;if(C?w=E:(w=E==="v"?"h":"v",C=Ihe(E,j)),!C)return!1;if(!n.current&&"changedTouches"in m&&(x||_)&&(n.current=w),!w)return!0;var N=n.current||w;return JWe(N,v,m,N==="h"?x:_,!0)},[]),c=k.useCallback(function(m){var v=m;if(!(!kg.length||kg[kg.length-1]!==s)){var g="deltaY"in v?Phe(v):k3(v),b=t.current.filter(function(w){return w.name===v.type&&(w.target===v.target||v.target===w.shadowParent)&&eGe(w.delta,g)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}
vendor: 4,120 bytes, line 7889
7889if(!b){var x=(o.current.shards||[]).map(Lhe).filter(Boolean).filter(function(w){return w.contains(v.target)}),_=x.length>0?l(v,x[0]):!o.current.noIsolation;_&&v.cancelable&&v.preventDefault()}}},[]),u=k.useCallback(function(m,v,g,b){var x={name:m,delta:v,target:g,should:b,shadowParent:aGe(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(_){return _!==x})},1)},[]),d=k.useCallback(function(m){r.current=k3(m),n.current=void 0},[]),h=k.useCallback(function(m){u(m.type,Phe(m),m.target,l(m,e.lockRef.current))},[]),f=k.useCallback(function(m){u(m.type,k3(m),m.target,l(m,e.lockRef.current))},[]);k.useEffect(function(){return kg.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,wg),document.addEventListener("touchmove",c,wg),document.addEventListener("touchstart",d,wg),function(){kg=kg.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,wg),document.removeEventListener("touchmove",c,wg),document.removeEventListener("touchstart",d,wg)}},[]);var p=e.removeScrollBar,y=e.inert;return k.createElement(k.Fragment,null,y?k.createElement(s,{styles:tGe(a)}):null,p?k.createElement(WWe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function aGe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const iGe=PWe(K4e,nGe);var B_=k.forwardRef(function(e,t){return k.createElement(_W,Kl({},e,{ref:t,sideCar:iGe}))});B_.classNames=_W.classNames;var sGe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_g=new WeakMap,_3=new WeakMap,S3={},UY=0,J4e=function(e){return e&&(e.host||J4e(e.parentNode))},oGe=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=J4e(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},lGe=function(e,t,r,n){var a=oGe(t,Array.isArray(e)?e:[e]);S3[r]||(S3[r]=new WeakMap);var s=S3[r],o=[],l=new Set,c=new Set(a),u=function(h){!h||l.has(h)||(l.add(h),u(h.parentNode))};a.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))d(f);else try{var p=f.getAttribute(n),y=p!==null&&p!=="false",m=(_g.get(f)||0)+1,v=(s.get(f)||0)+1;_g.set(f,m),s.set(f,v),o.push(f),m===1&&y&&_3.set(f,!0),v===1&&f.setAttribute(r,"true"),y||f.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",f,g)}})};return d(t),l.clear(),UY++,function(){o.forEach(function(h){var f=_g.get(h)-1,p=s.get(h)-1;_g.set(h,f),s.set(h,p),f||(_3.has(h)||h.removeAttribute(n),_3.delete(h)),p||h.removeAttribute(r)}),UY--,UY||(_g=new WeakMap,_g=new WeakMap,_3=new WeakMap,S3={})}},SW=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=sGe(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),lGe(n,a,r,"aria-hidden")):function(){return null}},jW="Dialog",[e3e,t3e]=xa(jW),[cGe,Cl]=e3e(jW),r3e=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:s,modal:o=!0}=e,l=k.useRef(null),c=k.useRef(null),[u,d]=ks({prop:n,defaultProp:a??!1,onChange:s,caller:jW});return i.jsx(cGe,{scope:t,triggerRef:l,contentRef:c,contentId:$a(),titleId:$a(),descriptionId:$a(),open:u,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(h=>!h),[d]),modal:o,children:r})};r3e.displayName=jW;var n3e="DialogTrigger",a3e=k.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Cl(n3e,r),s=Vt(t,a.triggerRef);return i.jsx(dt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":gie(a.open),...n,ref:s,onClick:Xe(e.onClick,a.onOpenToggle)})});a3e.displayName=n3e;var pie="DialogPortal",[uGe,i3e]=e3e(pie,{forceMount:void 0}),s3e=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,s=Cl(pie,t);return i.jsx(uGe,{scope:t,forceMount:r,children:k.Children.map(n,o=>i.jsx(ba,{present:r||s.open,children:i.jsx(sv,{asChild:!0,container:a,children:o})}))})};s3e.displayName=pie;var aH="DialogOverlay",o3e=k.forwardRef((e,t)=>
vendor: 5,305 bytes, lines 7889-7893
7889{const r=i3e(aH,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,s=Cl(aH,e.__scopeDialog);return s.modal?i.jsx(ba,{present:n||s.open,children:i.jsx(hGe,{...a,ref:t})}):null});o3e.displayName=aH;var dGe=ih("DialogOverlay.RemoveScroll"),hGe=k.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Cl(aH,r);return i.jsx(B_,{as:dGe,allowPinchZoom:!0,shards:[a.contentRef],children:i.jsx(dt.div,{"data-state":gie(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),E0="DialogContent",l3e=k.forwardRef((e,t)=>{const r=i3e(E0,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,s=Cl(E0,e.__scopeDialog);return i.jsx(ba,{present:n||s.open,children:s.modal?i.jsx(fGe,{...a,ref:t}):i.jsx(pGe,{...a,ref:t})})});l3e.displayName=E0;var fGe=k.forwardRef((e,t)=>{const r=Cl(E0,e.__scopeDialog),n=k.useRef(null),a=Vt(t,r.contentRef,n);return k.useEffect(()=>{const s=n.current;if(s)return SW(s)},[]),i.jsx(c3e,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xe(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Xe(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:Xe(e.onFocusOutside,s=>s.preventDefault())})}),pGe=k.forwardRef((e,t)=>{const r=Cl(E0,e.__scopeDialog),n=k.useRef(!1),a=k.useRef(!1);return i.jsx(c3e,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),s.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=s.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),c3e=k.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:s,...o}=e,l=Cl(E0,r),c=k.useRef(null),u=Vt(t,c);return kW(),i.jsxs(i.Fragment,{children:[i.jsx($_,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:s,children:i.jsx(z0,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":gie(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(gGe,{titleId:l.titleId}),i.jsx(vGe,{contentRef:c,descriptionId:l.descriptionId})]})]})}),mie="DialogTitle",u3e=k.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Cl(mie,r);return i.jsx(dt.h2,{id:a.titleId,...n,ref:t})});u3e.displayName=mie;var d3e="DialogDescription",h3e=k.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Cl(d3e,r);return i.jsx(dt.p,{id:a.descriptionId,...n,ref:t})});h3e.displayName=d3e;var f3e="DialogClose",p3e=k.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Cl(f3e,r);return i.jsx(dt.button,{type:"button",...n,ref:t,onClick:Xe(e.onClick,()=>a.onOpenChange(!1))})});p3e.displayName=f3e;function gie(e){return e?"open":"closed"}var m3e="DialogTitleWarning",[mGe,g3e]=k9e(m3e,{contentName:E0,titleName:mie,docsSlug:"dialog"}),gGe=({titleId:e})=>{const t=g3e(m3e),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 7890 7891If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 7892 7893For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},yGe="DialogDescriptionWarning",vGe=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${g3e(yGe).contentName}}.`;return k.useEffect(()=>{var s;const a=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},EW=r3e,yie=a3e,CW=s3e,vv=o3e,xv=l3e,z_=u3e,U_=h3e,NW=p3e;const vie=EW,y3e=yie,xGe=CW,v3e=k.forwardRef(({className:e,...t},r)=>i.jsx(vv,{className:De("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),...t,ref:r}));v3e.displayName=vv.displayName;const bGe=ov("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),TW=k.forwardRef(({side:e="right",className:t,children:r,...n},a)=>i.jsxs(xGe,{children:[i.jsx(v3e,{}),i.jsxs(xv,{ref:a,className:De(bGe({side:e}),t),...n,children:[r,i.jsxs(NW,{className:"absolute right-4 top-4 roun
7893ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[i.jsx(hi,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));TW.displayName=xv.displayName;const xie=({className:e,...t})=>i.jsx("div",{className:De("flex flex-col space-y-2 text-center sm:text-left",e),...t});xie.displayName="SheetHeader";const bie=k.forwardRef(({className:e,...t},r)=>i.jsx(z_,{ref:r,className:De("text-lg font-semibold text-foreground",e),...t}));bie.displayName=z_.displayName;const wGe=k.forwardRef(({className:e,...t},r)=>i.jsx(U_,{ref:r,className:De("text-sm text-muted-foreground",e),...t}));wGe.displayName=U_.displayName;var kGe=k.createContext(void 0);function q0(e){const t=k.useContext(kGe);return e||t||"ltr"}var qY="rovingFocusGroup.onEntryFocus",_Ge={bubbles:!1,cancelable:!0},q_="RovingFocusGroup",[ote,x3e,SGe]=A_(q_),[jGe,bv]=xa(q_,[SGe]),[EGe,CGe]=jGe(q_),b3e=k.forwardRef((e,t)=>i.jsx(ote.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(ote.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(NGe,{...e,ref:t})})}));b3e.displayName=q_;var NGe=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=e,f=k.useRef(null),p=Vt(t,f),y=q0(s),[m,v]=ks({prop:o,defaultProp:l??null,onChange:c,caller:q_}),[g,b]=k.useState(!1),x=Qn(u),_=x3e(r),w=k.useRef(!1),[j,E]=k.useState(0);return k.useEffect(()=>{const C=f.current;if(C)return C.addEventListener(qY,x),()=>C.removeEventListener(qY,x)},[x]),i.jsx(EGe,{scope:r,orientation:n,dir:y,loop:a,currentTabStopId:m,onItemFocus:k.useCallback(C=>v(C),[v]),onItemShiftTab:k.useCallback(()=>b(!0),[]),onFocusableItemAdd:k.useCallback(()=>E(C=>C+1),[]),onFocusableItemRemove:k.useCallback(()=>E(C=>C-1),[]),children:i.jsx(dt.div,{tabIndex:g||j===0?-1:0,"data-orientation":n,...h,ref:p,style:{outline:"none",...e.style},onMouseDown:Xe(e.onMouseDown,()=>{w.current=!0}),onFocus:Xe(e.onFocus,C=>{const N=!w.current;if(C.target===C.currentTarget&&N&&!g){const A=new CustomEvent(qY,_Ge);if(C.currentTarget.dispatchEvent(A),!A.defaultPrevented){const $=_().filter(Y=>Y.focusable),T=$.find(Y=>Y.active),F=$.find(Y=>Y.id===m),z=[T,F,...$].filter(Boolean).map(Y=>Y.ref.current);_3e(z,d)}}w.current=!1}),onBlur:Xe(e.onBlur,()=>b(!1))})})}),w3e="RovingFocusGroupItem",k3e=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:s,children:o,...l}=e,c=$a(),u=s||c,d=CGe(w3e,r),h=d.currentTabStopId===u,f=x3e(r),{onFocusableItemAdd:p,onFocusableItemRemove:y,currentTabStopId:m}=d;return k.useEffect(()=>{if(n)return p(),()=>y()},[n,p,y]),i.jsx(ote.ItemSlot,{scope:r,id:u,focusable:n,active:a,children:i.jsx(dt.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:Xe(e.onMouseDown,v=>{n?d.onItemFocus(u):v.preventDefault()}),onFocus:Xe(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:Xe(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){d.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const g=MGe(v,d.orientation,d.dir);if(g!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=f().filter(_=>_.focusable).map(_=>_.ref.current);if(g==="last")x.reverse();else if(g==="prev"||g==="next"){g==="prev"&&x.reverse();const _=x.indexOf(v.currentTarget);x=d.loop?IGe(x,_+1):x.slice(_+1)}setTimeout(()=>_3e(x))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:m!=null}):o})})});k3e.displayName=w3e;var TGe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function AGe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function MGe(e,t,r){const n=AGe(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return TGe[n]}function _3e(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function IGe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var wie=b3e,kie=k3e,lte=["Enter"," "],PGe=["ArrowDown","PageUp","Home"],S3e=["ArrowUp","PageDown","End"],LGe=[...PGe,...S3e],OGe={ltr:[...lte,"ArrowRight"],rtl:[...lte,"ArrowLeft"]},RGe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},H_="Menu",[_k,DGe,FGe]=A_(H_),[H0,j3e]=xa(H_,[FGe,mh,bv]),AW=mh(),E3e=bv(),[$Ge,V0]=H0(H_),[BGe,V_]=H0(H_),C3e=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:s,modal:o=!0}=e,l=AW(t),[c,u]=k.useState(null),d=k.useRef(!1),h=Qn(s),f=q0(a);return k.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),i.jsx($ae,{...l,children:i.jsx($Ge,{scope:t,open:r,onOpenChange:h,content:c,onContentChange:u,children:i.jsx(BGe,{scope:t,onClose:k.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:f,modal:o,children:n})})})};C3e.displayName=H_;var zGe="MenuAnchor",_ie=k.forwardRef((e,t)=>
vendor: 15,463 bytes, line 7893
7893{const{__scopeMenu:r,...n}=e,a=AW(r);return i.jsx(P_,{...a,...n,ref:t})});_ie.displayName=zGe;var Sie="MenuPortal",[UGe,N3e]=H0(Sie,{forceMount:void 0}),T3e=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,s=V0(Sie,t);return i.jsx(UGe,{scope:t,forceMount:r,children:i.jsx(ba,{present:r||s.open,children:i.jsx(sv,{asChild:!0,container:a,children:n})})})};T3e.displayName=Sie;var xo="MenuContent",[qGe,jie]=H0(xo),A3e=k.forwardRef((e,t)=>{const r=N3e(xo,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,s=V0(xo,e.__scopeMenu),o=V_(xo,e.__scopeMenu);return i.jsx(_k.Provider,{scope:e.__scopeMenu,children:i.jsx(ba,{present:n||s.open,children:i.jsx(_k.Slot,{scope:e.__scopeMenu,children:o.modal?i.jsx(HGe,{...a,ref:t}):i.jsx(VGe,{...a,ref:t})})})})}),HGe=k.forwardRef((e,t)=>{const r=V0(xo,e.__scopeMenu),n=k.useRef(null),a=Vt(t,n);return k.useEffect(()=>{const s=n.current;if(s)return SW(s)},[]),i.jsx(Eie,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Xe(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),VGe=k.forwardRef((e,t)=>{const r=V0(xo,e.__scopeMenu);return i.jsx(Eie,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),WGe=ih("MenuContent.ScrollLock"),Eie=k.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:p,disableOutsideScroll:y,...m}=e,v=V0(xo,r),g=V_(xo,r),b=AW(r),x=E3e(r),_=DGe(r),[w,j]=k.useState(null),E=k.useRef(null),C=Vt(t,E,v.onContentChange),N=k.useRef(0),A=k.useRef(""),$=k.useRef(0),T=k.useRef(null),F=k.useRef("right"),M=k.useRef(0),z=y?B_:k.Fragment,Y=y?{as:WGe,allowPinchZoom:!0}:void 0,W=Z=>{var D,U;const V=A.current+Z,ne=_().filter(se=>!se.disabled),P=document.activeElement,R=(D=ne.find(se=>se.ref.current===P))==null?void 0:D.textValue,H=ne.map(se=>se.textValue),re=aKe(H,V,R),ae=(U=ne.find(se=>se.textValue===re))==null?void 0:U.ref.current;(function se(te){A.current=te,window.clearTimeout(N.current),te!==""&&(N.current=window.setTimeout(()=>se(""),1e3))})(V),ae&&setTimeout(()=>ae.focus())};k.useEffect(()=>()=>window.clearTimeout(N.current),[]),kW();const ee=k.useCallback(Z=>{var ne,P;return F.current===((ne=T.current)==null?void 0:ne.side)&&sKe(Z,(P=T.current)==null?void 0:P.area)},[]);return i.jsx(qGe,{scope:r,searchRef:A,onItemEnter:k.useCallback(Z=>{ee(Z)&&Z.preventDefault()},[ee]),onItemLeave:k.useCallback(Z=>{var V;ee(Z)||((V=E.current)==null||V.focus(),j(null))},[ee]),onTriggerLeave:k.useCallback(Z=>{ee(Z)&&Z.preventDefault()},[ee]),pointerGraceTimerRef:$,onPointerGraceIntentChange:k.useCallback(Z=>{T.current=Z},[]),children:i.jsx(z,{...Y,children:i.jsx($_,{asChild:!0,trapped:a,onMountAutoFocus:Xe(s,Z=>{var V;Z.preventDefault(),(V=E.current)==null||V.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:i.jsx(z0,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:p,children:i.jsx(wie,{asChild:!0,...x,dir:g.dir,orientation:"vertical",loop:n,currentTabStopId:w,onCurrentTabStopIdChange:j,onEntryFocus:Xe(c,Z=>{g.isUsingKeyboardRef.current||Z.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(sW,{role:"menu","aria-orientation":"vertical","data-state":W3e(v.open),"data-radix-menu-content":"",dir:g.dir,...b,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:Xe(m.onKeyDown,Z=>{const ne=Z.target.closest("[data-radix-menu-content]")===Z.currentTarget,P=Z.ctrlKey||Z.altKey||Z.metaKey,R=Z.key.length===1;ne&&(Z.key==="Tab"&&Z.preventDefault(),!P&&R&&W(Z.key));const H=E.current;if(Z.target!==H||!LGe.includes(Z.key))return;Z.preventDefault();const ae=_().filter(D=>!D.disabled).map(D=>D.ref.current);S3e.includes(Z.key)&&ae.reverse(),rKe(ae)}),onBlur:Xe(e.onBlur,Z=>{Z.currentTarget.contains(Z.target)||(window.clearTimeout(N.current),A.current="")}),onPointerMove:Xe(e.onPointerMove,Sk(Z=>{const V=Z.target,ne=M.current!==Z.clientX;if(Z.currentTarget.contains(V)&&ne){const P=Z.clientX>M.current?"right":"left";F.current=P,M.current=Z.clientX}}))})})})})})})});A3e.displayName=xo;var GGe="MenuGroup",Cie=k.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return i.jsx(dt.div,{role:"group",...n,ref:t})});Cie.displayName=GGe;var KGe="MenuLabel",M3e=k.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return i.jsx(dt.div,{...n,ref:t})});M3e.displayName=KGe;var iH="MenuItem",Ohe="menu.itemSelect",MW=k.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...a}=e,s=k.useRef(null),o=V_(iH,e.__scopeMenu),l=jie(iH,e.__scopeMenu),c=Vt(t,s),u=k.useRef(!1),d=()=>{const h=s.current;if(!r&&h){const f=new CustomEvent(Ohe,{bubbles:!0,cancelable:!0});h.addEventListener(Ohe,p=>n==null?void 0:n(p),{once:!0}),jae(h,f),f.defaultPrevented?u.current=!1:o.onClose()}};return i.jsx(I3e,{...a,ref:c,disabled:r,onClick:Xe(e.onClick,d),onPointerDown:h=>{var f;(f=e.onPointerDown)==null||f.call(e,h),u.current=!0},onPointerUp:Xe(e.onPointerUp,h=>{var f;u.current||(f=h.currentTarget)==null||f.click()}),onKeyDown:Xe(e.onKeyDown,h=>{const f=l.searchRef.current!=="";r||f&&h.key===" "||lte.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});MW.displayName=iH;var I3e=k.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...s}=e,o=jie(iH,r),l=E3e(r),c=k.useRef(null),u=Vt(t,c),[d,h]=k.useState(!1),[f,p]=k.useState("");return k.useEffect(()=>{const y=c.current;y&&p((y.textContent??"").trim())},[s.children]),i.jsx(_k.ItemSlot,{scope:r,disabled:n,textValue:a??f,children:i.jsx(kie,{asChild:!0,...l,focusable:!n,children:i.jsx(dt.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...s,ref:u,onPointerMove:Xe(e.onPointerMove,Sk(y=>{n?o.onItemLeave(y):(o.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Xe(e.onPointerLeave,Sk(y=>o.onItemLeave(y))),onFocus:Xe(e.onFocus,()=>h(!0)),onBlur:Xe(e.onBlur,()=>h(!1))})})})}),YGe="MenuCheckboxItem",P3e=k.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return i.jsx(F3e,{scope:e.__scopeMenu,checked:r,children:i.jsx(MW,{role:"menuitemcheckbox","aria-checked":sH(r)?"mixed":r,...a,ref:t,"data-state":Tie(r),onSelect:Xe(a.onSelect,()=>n==null?void 0:n(sH(r)?!0:!r),{checkForDefaultPrevented:!1})})})});P3e.displayName=YGe;var L3e="MenuRadioGroup",[XGe,ZGe]=H0(L3e,{value:void 0,onValueChange:()=>{}}),O3e=k.forwardRef((e,t)=>{const{value:r,onValueChange:n,...a}=e,s=Qn(n);return i.jsx(XGe,{scope:e.__scopeMenu,value:r,onValueChange:s,children:i.jsx(Cie,{...a,ref:t})})});O3e.displayName=L3e;var R3e="MenuRadioItem",D3e=k.forwardRef((e,t)=>{const{value:r,...n}=e,a=ZGe(R3e,e.__scopeMenu),s=r===a.value;return i.jsx(F3e,{scope:e.__scopeMenu,checked:s,children:i.jsx(MW,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":Tie(s),onSelect:Xe(n.onSelect,()=>{var o;return(o=a.onValueChange)==null?void 0:o.call(a,r)},{checkForDefaultPrevented:!1})})})});D3e.displayName=R3e;var Nie="MenuItemIndicator",[F3e,QGe]=H0(Nie,{checked:!1}),$3e=k.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,s=QGe(Nie,r);return i.jsx(ba,{present:n||sH(s.checked)||s.checked===!0,children:i.jsx(dt.span,{...a,ref:t,"data-state":Tie(s.checked)})})});$3e.displayName=Nie;var JGe="MenuSeparator",B3e=k.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return i.jsx(dt.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});B3e.displayName=JGe;var eKe="MenuArrow",z3e=k.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,a=AW(r);return i.jsx(oW,{...a,...n,ref:t})});z3e.displayName=eKe;var tKe="MenuSub",[kWt,U3e]=H0(tKe),kb="MenuSubTrigger",q3e=k.forwardRef((e,t)=>{const r=V0(kb,e.__scopeMenu),n=V_(kb,e.__scopeMenu),a=U3e(kb,e.__scopeMenu),s=jie(kb,e.__scopeMenu),o=k.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=s,u={__scopeMenu:e.__scopeMenu},d=k.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return k.useEffect(()=>d,[d]),k.useEffect(()=>{const h=l.current;return()=>{window.clearTimeout(h),c(null)}},[l,c]),i.jsx(_ie,{asChild:!0,...u,children:i.jsx(I3e,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":W3e(r.open),...e,ref:Su(t,a.onTriggerChange),onClick:h=>{var f;(f=e.onClick)==null||f.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Xe(e.onPointerMove,Sk(h=>{s.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!r.open&&!o.current&&(s.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:Xe(e.onPointerLeave,Sk(h=>{var p,y;d();const f=(p=r.content)==null?void 0:p.getBoundingClientRect();if(f){const m=(y=r.content)==null?void 0:y.dataset.side,v=m==="right",g=v?-5:5,b=f[v?"left":"right"],x=f[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+g,y:h.clientY},{x:b,y:f.top},{x,y:f.top},{x,y:f.bottom},{x:b,y:f.bottom}],side:m}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Xe(e.onKeyDown,h=>{var p;const f=s.searchRef.current!=="";e.disabled||f&&h.key===" "||OGe[n.dir].includes(h.key)&&(r.onOpenChange(!0),(p=r.content)==null||p.focus(),h.preventDefault())})})})});q3e.displayName=kb;var H3e="MenuSubContent",V3e=k.forwardRef((e,t)=>{const r=N3e(xo,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,s=V0(xo,e.__scopeMenu),o=V_(xo,e.__scopeMenu),l=U3e(H3e,e.__scopeMenu),c=k.useRef(null),u=Vt(t,c);return i.jsx(_k.Provider,{scope:e.__scopeMenu,children:i.jsx(ba,{present:n||s.open,children:i.jsx(_k.Slot,{scope:e.__scopeMenu,children:i.jsx(Eie,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;o.isUsingKeyboardRef.current&&((h=c.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:Xe(e.onFocusOutside,d=>{d.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Xe(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:Xe(e.onKeyDown,d=>{var p;const h=d.currentTarget.contains(d.target),f=RGe[o.dir].includes(d.key);h&&f&&(s.onOpenChange(!1),(p=l.trigger)==null||p.focus(),d.preventDefault())})})})})})});V3e.displayName=H3e;function W3e(e){return e?"open":"closed"}function sH(e){return e==="indeterminate"}function Tie(e){return sH(e)?"indeterminate":e?"checked":"unchecked"}function rKe(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function nKe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function aKe(e,t,r){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let o=nKe(e,Math.max(s,0));a.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.toLowerCase().startsWith(a.toLowerCase()));return c!==r?c:void 0}function iKe(e,t){const{x:r,y:n}=e;let a=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const l=t[s],c=t[o],u=l.x,d=l.y,h=c.x,f=c.y;d>n!=f>n&&r<(h-u)*(n-d)/(f-d)+u&&(a=!a)}return a}function sKe(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return iKe(r,t)}function Sk(e){return t=>t.pointerType==="mouse"?e(t):void 0}var oKe=C3e,lKe=_ie,cKe=T3e,uKe=A3e,dKe=Cie,hKe=M3e,fKe=MW,pKe=P3e,mKe=O3e,gKe=D3e,yKe=$3e,vKe=B3e,xKe=z3e,bKe=q3e,wKe=V3e,IW="DropdownMenu",[kKe,_Wt]=xa(IW,[j3e]),Ji=j3e(),[_Ke,G3e]=kKe(IW),K3e=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:s,onOpenChange:o,modal:l=!0}=e,c=Ji(t),u=k.useRef(null),[d,h]=ks({prop:a,defaultProp:s??!1,onChange:o,caller:IW});return i.jsx(_Ke,{scope:t,triggerId:$a(),triggerRef:u,contentId:$a(),open:d,onOpenChange:h,onOpenToggle:k.useCallback(()=>h(f=>!f),[h]),modal:l,children:i.jsx(oKe,{...c,open:d,onOpenChange:h,dir:n,modal:l,children:r})})};K3e.displayName=IW;var Y3e="DropdownMenuTrigger",X3e=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=G3e(Y3e,r),o=Ji(r);return i.jsx(lKe,{asChild:!0,...o,children:i.jsx(dt.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:Su(t,s.triggerRef),onPointerDown:Xe(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:Xe(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});X3e.displayName=Y3e;var SKe="DropdownMenuPortal",Z3e=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Ji(t);return i.jsx(cKe,{...n,...r})};Z3e.displayName=SKe;var Q3e="DropdownMenuContent",J3e=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=G3e(Q3e,r),s=Ji(r),o=k.useRef(!1);return i.jsx(uKe,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...n,ref:t,onCloseAutoFocus:Xe(e.onCloseAutoFocus,l=>{var c;o.current||(c=a.triggerRef.current)==null||c.focus(),o.current=!1,l.preventDefault()}),onInteractOutside:Xe(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!a.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});J3e.displayName=Q3e;var jKe="DropdownMenuGroup",EKe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(dKe,{...a,...n,ref:t})});EKe.displayName=jKe;var CKe="DropdownMenuLabel",eSe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(hKe,{...a,...n,ref:t})});eSe.displayName=CKe;var NKe="DropdownMenuItem",tSe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(fKe,{...a,...n,ref:t})});tSe.displayName=NKe;var TKe="DropdownMenuCheckboxItem",rSe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(pKe,{...a,...n,ref:t})});rSe.displayName=TKe;var AKe="DropdownMenuRadioGroup",MKe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(mKe,{...a,...n,ref:t})});MKe.displayName=AKe;var IKe="DropdownMenuRadioItem",nSe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(gKe,{...a,...n,ref:t})});nSe.displayName=IKe;var PKe="DropdownMenuItemIndicator",aSe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(yKe,{...a,...n,ref:t})});aSe.displayName=PKe;var LKe="DropdownMenuSeparator",iSe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(vKe,{...a,...n,ref:t})});iSe.displayName=LKe;var OKe="DropdownMenuArrow",RKe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(xKe,{...a,...n,ref:t})});RKe.displayName=OKe;var DKe="DropdownMenuSubTrigger",sSe=k.forwardRef((e,t)=>
7893{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(bKe,{...a,...n,ref:t})});sSe.displayName=DKe;var FKe="DropdownMenuSubContent",oSe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=Ji(r);return i.jsx(wKe,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});oSe.displayName=FKe;var $Ke=K3e,BKe=X3e,zKe=Z3e,lSe=J3e,cSe=eSe,uSe=tSe,dSe=rSe,hSe=nSe,fSe=aSe,pSe=iSe,mSe=sSe,gSe=oSe;const jk=$Ke,Ek=BKe,UKe=k.forwardRef(({className:e,inset:t,children:r,...n},a)=>i.jsxs(mSe,{ref:a,className:De("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[r,i.jsx(Vs,{className:"ml-auto h-4 w-4"})]}));UKe.displayName=mSe.displayName;const qKe=k.forwardRef(({className:e,...t},r)=>i.jsx(gSe,{ref:r,className:De("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));qKe.displayName=gSe.displayName;const x2=k.forwardRef(({className:e,sideOffset:t=4,...r},n)=>i.jsx(zKe,{children:i.jsx(lSe,{ref:n,sideOffset:t,className:De("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));x2.displayName=lSe.displayName;const ua=k.forwardRef(({className:e,inset:t,...r},n)=>i.jsx(uSe,{ref:n,className:De("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...r}));ua.displayName=uSe.displayName;const HKe=k.forwardRef(({className:e,children:t,checked:r,...n},a)=>i.jsxs(dSe,{ref:a,className:De("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:r,...n,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(fSe,{children:i.jsx(_r,{className:"h-4 w-4"})})}),t]}));HKe.displayName=dSe.displayName;const VKe=k.forwardRef(({className:e,children:t,...r},n)=>i.jsxs(hSe,{ref:n,className:De("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(fSe,{children:i.jsx(e0,{className:"h-2 w-2 fill-current"})})}),t]}));VKe.displayName=hSe.displayName;const cte=k.forwardRef(({className:e,inset:t,...r},n)=>i.jsx(cSe,{ref:n,className:De("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));cte.displayName=cSe.displayName;const Ck=k.forwardRef(({className:e,...t},r)=>i.jsx(pSe,{ref:r,className:De("-mx-1 my-1 h-px bg-muted",e),...t}));Ck.displayName=pSe.displayName;function Du(){const[e]=k.useState(()=>WUe("/signup"));return e}const WKe="2026-04-02T00:00:00Z";function W_(){const{user:e,loading:t}=er(),[r,n]=k.useState({isLegacyUser:!1,hasLibraryAccess:!1,hasDashboardAccess:!1,homeRoute:"/library",loading:!0});return k.useEffect(()=>{if(t)return;if(!e){n({isLegacyUser:!1,hasLibraryAccess:!1,hasDashboardAccess:!1,homeRoute:"/library",loading:!1});return}(async()=>{const{data:s}=await oe.from("user_roles").select("role").eq("user_id",e.id).eq("role","admin").maybeSingle();if(s){n({isLegacyUser:!1,hasLibraryAccess:!0,hasDashboardAccess:!0,homeRoute:"/dashboard",loading:!1});return}const{data:o}=await oe.from("book_club_subscriptions").select("id").eq("user_id",e.id).eq("status","active").limit(1).maybeSingle(),l=!!o,{data:c}=await oe.from("profiles").select("created_at, membership_active, current_period_end").eq("id",e.id).single();if(!c){n({isLegacyUser:!1,hasLibraryAccess:!1,hasDashboardAccess:l,homeRoute:l?"/dashboard":"/library",loading:!1});return}if(!(new Date(c.created_at)<new Date(WKe))){n({isLegacyUser:!1,hasLibraryAccess:!0,hasDashboardAccess:l,homeRoute:l?"/dashboard":"/library",loading:!1});return}n({isLegacyUser:!0,hasLibraryAccess:!0,hasDashboardAccess:l,homeRoute:l?"/dashboard":"/library",loading:!1})})()},[e,t]),r}const lr=()=>{const[e,t]=k.useState(!1);k.useState(!1);const{user:r,signOut:n}=er(),a=wt(),s=Du(),{hasDashboardAccess:o}=W_(),l=async()=>{try{await n(),a("/")}catch(c){console.error("Error signing out:",c),a("/")}};return i.jsx("nav",{role:"navigation","aria-label":"Main navigation",className:"fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:i.jsx("div",{className:"container mx-auto max-w-6xl px-4 md:px-6 py-2 md:py-3",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("a",{href:r?"/library":"/",className:"flex items-center",children:i.jsx("img",{src:va,alt:"Kibbi - AI-powered fiction book creation",className:"h-10",width:"81",height:"40",loading:"eager"})}),i.jsxs("div",{className:"hidden md:flex items-center gap-8 ml-12",children:[i.jsxs(jk,{children:[i.jsxs(Ek,{className:"flex items-center gap-1 text-base hover:text-primary transition-colors focus:outline-none",children:["Products",i.jsx(sc,{className:"h-4 w-4","aria-hidden":"true"})]}
7893),i.jsxs(x2,{align:"start",className:"w-72 bg-background border border-border shadow-lg z-50",children:[i.jsx(ua,{asChild:!0,children:i.jsx("a",{href:"/personalized-books-for-kids",className:"cursor-pointer",children:"Personalized Books for Kids"})}),i.jsx(ua,{asChild:!0,children:i.jsx("a",{href:"/ai-illustration-for-childrens-books",className:"cursor-pointer",children:"AI Illustration for Children's Books"})})]})]}),i.jsx("a",{href:"/pricing",className:"text-base hover:text-primary transition-colors",children:"Pricing"}),i.jsx("a",{href:"/free-kids-stories",className:"text-base hover:text-primary transition-colors",children:"Example Stories"}),i.jsx("a",{href:"/research",className:"text-base hover:text-primary transition-colors",children:"Research"})]}),i.jsx("div",{className:"hidden md:flex items-center gap-8 ml-auto",children:r?i.jsxs(i.Fragment,{children:[o&&i.jsx(le,{variant:"outline",size:"lg",className:"font-medium rounded-full px-6 text-base border-2",onClick:()=>a("/dashboard"),children:"Dashboard"}),i.jsxs(jk,{children:[i.jsx(Ek,{asChild:!0,children:i.jsx(le,{variant:"ghost",size:"icon",className:"rounded-full",children:i.jsx(xl,{className:"h-5 w-5"})})}),i.jsxs(x2,{align:"end",className:"w-48 bg-background border border-border shadow-lg z-50",children:[i.jsx(ua,{onClick:()=>a("/orders"),children:"Orders"}),i.jsx(ua,{onClick:()=>a("/profile"),children:"Profile"}),i.jsx(ua,{onClick:()=>a("/billing"),children:"Billing"}),i.jsx(ua,{onClick:()=>a("/help"),children:"Help Center"}),i.jsx(ua,{onClick:l,children:"Logout"})]})]})]}):i.jsxs(i.Fragment,{children:[i.jsx("a",{href:"/login",className:"text-base hover:text-primary transition-colors border-2 border-foreground rounded-full px-6 py-2 -mr-4",children:"Login"}),i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-6 text-base",asChild:!0,children:i.jsx("a",{href:s,children:"Try it for free"})})]})}),i.jsxs(vie,{open:e,onOpenChange:t,children:[i.jsx(y3e,{asChild:!0,className:"md:hidden",children:i.jsxs(le,{variant:"ghost",className:"gap-2",children:[i.jsx(ow,{className:"h-6 w-6"}),i.jsx("span",{children:"Menu"})]})}),i.jsx(TW,{side:"right",className:"w-[300px] sm:w-[400px]",children:i.jsxs("div",{className:"flex flex-col gap-6 mt-8",children:[i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx("span",{className:"text-sm uppercase tracking-wide text-foreground/60",children:"Products"}),i.jsx("a",{href:"/personalized-books-for-kids",className:"text-lg hover:text-primary transition-colors pl-4",onClick:()=>t(!1),children:"Personalized Books for Kids"}),i.jsx("a",{href:"/ai-illustration-for-childrens-books",className:"text-lg hover:text-primary transition-colors pl-4",onClick:()=>t(!1),children:"AI Illustration for Children's Books"})]}),i.jsx("a",{href:"/pricing",className:"text-lg hover:text-primary transition-colors",onClick:()=>t(!1),children:"Pricing"}),i.jsx("a",{href:"/free-kids-stories",className:"text-lg hover:text-primary transition-colors",onClick:()=>t(!1),children:"Example Stories"}),i.jsx("a",{href:"/research",className:"text-lg hover:text-primary transition-colors",onClick:()=>t(!1),children:"Research"}),i.jsx("div",{className:"flex flex-col gap-4 mt-4 pt-4 border-t border-border",children:r?i.jsxs(i.Fragment,{children:[i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full w-full",onClick:()=>{t(!1),a("/library")},children:"My Library"}),i.jsx("a",{href:"/orders",className:"text-center text-lg hover:text-primary transition-colors",onClick:()=>t(!1),children:"Orders"}),i.jsx("a",{href:"/profile",className:"text-center text-lg hover:text-primary transition-colors",onClick:()=>t(!1),children:"Profile"}),i.jsx("a",{href:"/billing",className:"text-center text-lg hover:text-primary transition-colors",onClick:()=>t(!1),children:"Billing"}),i.jsx("a",{href:"/help",className:"text-center text-lg hover:text-primary transition-colors",onClick:()=>t(!1),children:"Help Center"}),i.jsx(le,{variant:"outline",size:"lg",className:"rounded-full w-full",onClick:()=>{t(!1),l()},children:"Logout"})]}):i.jsxs(i.Fragment,{children:[i.jsx("a",{href:"/login",className:"text-center border-2 border-foreground rounded-full px-6 py-3",onClick:()=>t(!1),children:"Login"}),i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full w-full",asChild:!0,children:i.jsx("a",{href:s,onClick:()=>t(!1),children:"Try it for free"})})]})})]})})]})]})})})},Ie=k.forwardRef(({className:e,...t},r)=>i.jsx("div",{ref:r,className:De("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
7893Ie.displayName="Card";const ze=k.forwardRef(({className:e,...t},r)=>i.jsx("div",{ref:r,className:De("flex flex-col space-y-1.5 p-6",e),...t}));ze.displayName="CardHeader";const Ke=k.forwardRef(({className:e,...t},r)=>i.jsx("h3",{ref:r,className:De("text-2xl font-semibold leading-none tracking-tight",e),...t}));Ke.displayName="CardTitle";const Rt=k.forwardRef(({className:e,...t},r)=>i.jsx("p",{ref:r,className:De("text-sm text-muted-foreground",e),...t}));Rt.displayName="CardDescription";const qe=k.forwardRef(({className:e,...t},r)=>i.jsx("div",{ref:r,className:De("p-6 pt-0",e),...t}));qe.displayName="CardContent";const ySe=k.forwardRef(({className:e,...t},r)=>i.jsx("div",{ref:r,className:De("flex items-center p-6 pt-0",e),...t}));ySe.displayName="CardFooter";function vr({className:e,...t}){return i.jsx("div",{className:De("animate-pulse rounded-md bg-muted",e),...t})}const au=24,oH="id, story_title, cover_image_url, cover_image_thumbnail_url, share_token, is_public, admin_approved_public";async function GKe(e){const{data:t,error:r}=await oe.from("landing_page_book_collections").select(`use_default, landing_page_books(position, story_id, story:stories(${oH}))`).eq("page_path",e).order("position",{referencedTable:"landing_page_books"}).limit(au,{referencedTable:"landing_page_books"}).maybeSingle();if(r)throw r;return{useDefault:(t==null?void 0:t.use_default)??!0,selected:(t==null?void 0:t.use_default)===!1?t.landing_page_books.map(n=>({storyId:n.story_id,book:n.story})):[]}}async function KKe(e,t){const r=t*au;let n=oe.from("stories").select(oH).eq("is_public",!0).eq("admin_approved_public",!0).not("share_token","is",null).neq("share_token","").order("story_title").order("id").range(r,r+au);e.trim()&&(n=n.ilike("story_title",`%${e.trim().replace(/[\\%_]/g,"\\$&")}%`));const{data:a,error:s}=await n;if(s)throw s;return{books:(a??[]).slice(0,au),hasMore:((a==null?void 0:a.length)??0)>au}}async function YKe(e,t){const{error:r}=await oe.rpc("save_landing_page_books",{p_page_path:e,p_story_ids:t});if(r)throw r}const ute=e=>e.is_public===!0&&e.admin_approved_public===!0&&!!e.share_token,vSe=e=>e==="/"||e==="/personalized-books-for-kids";function xSe(e){var n;const t=e.cover_image_thumbnail_url||e.cover_image_url;if(!(t!=null&&t.includes("/sign/")))return t;const r=(n=t.match(/story-illustrations\/([^?]+)/))==null?void 0:n[1];return r?oe.storage.from("story-illustrations").getPublicUrl(r).data.publicUrl:t}async function XKe(e){const{data:t,error:r}=await oe.from("landing_page_book_collections").select(`use_default, landing_page_books(position, story:stories!inner(${oH}))`).eq("page_path",e).eq("landing_page_books.story.is_public",!0).eq("landing_page_books.story.admin_approved_public",!0).not("landing_page_books.story.share_token","is",null).neq("landing_page_books.story.share_token","").order("position",{referencedTable:"landing_page_books"}).limit(au,{referencedTable:"landing_page_books"}).maybeSingle();if(r)throw r;if(t&&!t.use_default)return t.landing_page_books.map(a=>a.story).filter(ute);if(!vSe(e))return[];const n=await oe.from("stories").select(oH).eq("is_public",!0).eq("admin_approved_public",!0).not("share_token","is",null).neq("share_token","").order("shared_at",{ascending:!1}).order("id").limit(au);if(n.error)throw n.error;return n.data??[]}const wv=({pagePath:e,className:t=""})=>{const[r,n]=k.useState(null),a=k.useRef(null),[s,o]=k.useState({previous:!1,next:!1}),l=k.useCallback(()=>{const u=a.current;u&&o({previous:u.scrollLeft>1,next:u.scrollLeft+u.clientWidth<u.scrollWidth-1})},[]);if(k.useLayoutEffect(()=>(l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)),[r,l]),k.useEffect(()=>{let u=!0;return n(null),XKe(e).then(d=>{u&&n({path:e,books:d})}).catch(d=>{console.error("Error loading landing-page books:",d),u&&n({path:e,books:[]})}),()=>{u=!1}},[e]),!r||r.path!==e)return i.jsx("div",{className:`flex gap-4 overflow-hidden ${t}`,"aria-label":"Loading example books",children:[1,2,3].map(u=>i.jsx(vr,{className:"w-[180px] md:w-[220px] aspect-[2/3] rounded-2xl shrink-0"},u))});if(r.books.length===0)return null;const c=u=>{const d=a.current;d&&d.scrollBy({left:u*d.clientWidth*.8,behavior:"auto"})};return i.jsxs("section",{className:`text-center ${t}`,"aria-label":"Example books","data-testid":"landing-page-books",children:[i.jsx("h2",{className:"font-crimson text-[32px] font-semibold mb-4",children:"Read example stories"}
7893),i.jsx("p",{className:"text-lg text-foreground/80 max-w-3xl mx-auto mb-8 leading-relaxed",children:"Open a book to read the story and explore its illustrations."}),(s.previous||s.next)&&i.jsxs("div",{className:"mb-4 flex justify-end gap-2",children:[i.jsxs(le,{variant:"outline",size:"sm",disabled:!s.previous,onClick:()=>c(-1),"aria-label":"Show previous books",children:[i.jsx(fu,{"aria-hidden":"true",className:"w-4 h-4 mr-1"})," Previous"]}),i.jsxs(le,{variant:"outline",size:"sm",disabled:!s.next,onClick:()=>c(1),"aria-label":"Show next books",children:["Next ",i.jsx(Vs,{"aria-hidden":"true",className:"w-4 h-4 ml-1"})]})]}),i.jsx("div",{ref:a,"data-testid":"book-carousel-viewport",className:"overflow-x-auto p-1 pb-4",onScroll:l,onFocusCapture:u=>{var d,h;(h=(d=u.target).scrollIntoView)==null||h.call(d,{block:"nearest",inline:"nearest",behavior:"auto"})},children:i.jsx("div",{"data-testid":"book-carousel-track",className:"flex gap-4 w-max min-w-full justify-center",children:r.books.map(u=>{const d=xSe(u);return i.jsx(or,{to:`/shared/story/${u.share_token}`,target:"_blank",rel:"noopener noreferrer","aria-label":`Read ${u.story_title}`,className:"group shrink-0 w-[180px] md:w-[220px] rounded-lg focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary","data-testid":`example-book-${u.id}`,children:i.jsxs(Ie,{className:"relative overflow-hidden shadow-lg bg-transparent border-0 p-0",children:[d?i.jsx("img",{src:d,alt:u.story_title,className:"w-full aspect-[2/3] object-cover rounded-lg",loading:"lazy",decoding:"async",width:"220",height:"330"}):i.jsx("div",{className:"w-full aspect-[2/3] bg-muted rounded-lg flex items-center justify-center p-4",children:u.story_title}),i.jsx("span",{className:"absolute inset-0 bg-black/60 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 transition-opacity flex items-center justify-center rounded-lg text-white font-medium",children:"Read story"})]})},u.id)})})})]})},ZKe="/assets/bookshelf-family-reading-sB4VdfIF.jpg",QKe=()=>i.jsx("section",{className:"py-20","aria-labelledby":"print-editions-heading",children:i.jsx("div",{className:"container mx-auto max-w-6xl px-1 md:px-6",children:i.jsx("div",{className:"bg-card rounded-3xl p-3 md:p-12 shadow-sm border border-border",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[i.jsxs("div",{className:"text-left",children:[i.jsx("h2",{id:"print-editions-heading",className:"font-crimson text-3xl font-semibold mb-4",children:"A bookshelf that grows with themâone story at a time"}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed",children:"If you like the story you can order a physical copy, professionally printed and shipped to your door. The kind of books they'll pull off the shelf themselvesâand bring to you at bedtime."})]}),i.jsx("div",{className:"relative flex justify-center",children:i.jsx("img",{src:ZKe,alt:"Mother reading a Kibbi storybook with her two children on the sofa, with printed hardcover editions on the table",width:"1024",height:"1536",className:"rounded-2xl shadow-lg w-3/4",loading:"lazy"})})]})})})}),G_=()=>{const{data:e,isLoading:t}=ei({queryKey:["average-rating"],queryFn:async()=>{const{data:r,error:n}=await oe.rpc("get_average_story_rating");return n||!r||r.length===0?{averageRating:null,totalReviews:0}:{averageRating:r[0].average_rating,totalReviews:Number(r[0].total_reviews)}},staleTime:18e5});return{averageRating:(e==null?void 0:e.averageRating)??null,totalReviews:(e==null?void 0:e.totalReviews)??0,isLoading:t}},bSe="/assets/hero-boy-jumping-BCYOjikQ.mp4",lH="/assets/hero-boy-jumping-poster-BQAelncZ.jpg",wSe="(prefers-reduced-motion: reduce)",JKe=e=>{var r;const t=(r=window.matchMedia)==null?void 0:r.call(window,wSe);return t?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):()=>{}},eYe=()=>{var e;return((e=window.matchMedia)==null?void 0:e.call(window,wSe).matches)??!1},tYe=()=>k.useSyncExternalStore(JKe,eYe,()=>!1),rYe=()=>{const{averageRating:e,totalReviews:t,isLoading:r}=G_();return r||e==null||t===0?null:i.jsxs("div",{className:"flex items-center gap-2 mt-3 text-sm text-foreground
7893/80",children:[i.jsx("div",{className:"flex items-center",children:[1,2,3,4,5].map(n=>i.jsx(Oa,{className:`w-4 h-4 ${n<=Math.round(e)?"fill-yellow-400 text-yellow-400":"text-muted-foreground/40"}`},n))}),i.jsx("span",{className:"font-medium",children:e.toFixed(1)}),i.jsx("span",{className:"text-foreground/60",children:"Average rating"})]})},kSe=({pagePath:e="/",headline:t="Create a children's book about anything in minutes with AI. Starring your kid.",subheadline:r="Create a story around your child's interests in minutes. Kibbi matches each book to their age and reading stage, so it feels personal, fun, and easy to love. Read online tonight or print a keepsake when it matters."}={})=>{const n=tYe(),a=k.useRef(null),[s,o]=k.useState(!1);k.useEffect(()=>{n&&o(!1)},[n]);const l=()=>{const c=a.current;c&&(c.paused?c.play():c.pause())};return i.jsx("section",{className:"pt-40 pb-20 px-6","aria-labelledby":"hero-heading",children:i.jsxs("div",{className:"container mx-auto max-w-7xl",children:[i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center mb-32",children:[i.jsxs("div",{className:"text-left",children:[i.jsx("h1",{id:"hero-heading",className:"font-crimson text-[28px] md:text-[40px] font-semibold mb-6 leading-tight",children:t}),i.jsx("p",{className:"text-[18px] text-foreground/80 mb-10 leading-relaxed",children:r}),i.jsxs("div",{className:"text-center md:text-left",children:[i.jsx("div",{className:"flex flex-col sm:flex-row gap-3 sm:items-center",children:i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-8 py-6 text-[16px]",asChild:!0,children:i.jsx("a",{href:"/signup",children:"Try it for free"})})}),i.jsx("p",{className:"text-xs md:text-sm text-foreground/70 mt-3",children:"No credit card required"}),i.jsx(rYe,{})]})]}),i.jsx("div",{className:"flex justify-center md:justify-end",children:i.jsxs("figure",{className:"w-full max-w-[460px]",children:[n?i.jsx("img",{src:lH,alt:"Boy jumping with excitement while holding his printed Kibbi storybook",width:"720",height:"900",className:"w-full h-auto rounded-2xl shadow-lg",fetchPriority:"high"}):i.jsxs("div",{className:"relative",children:[i.jsx("video",{ref:a,"data-testid":"hero-video",src:bSe,poster:lH,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata",onPlay:()=>o(!0),onPause:()=>o(!1),width:"720",height:"900","aria-label":"Boy jumping with excitement while holding his printed Kibbi storybook",className:"w-full h-auto rounded-2xl shadow-lg"}),i.jsx("button",{type:"button",onClick:l,"aria-label":s?"Pause video":"Play video",className:"absolute bottom-3 right-3 rounded-full bg-black/50 hover:bg-black/70 text-white p-2.5 backdrop-blur-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white",children:s?i.jsx(Sy,{className:"w-4 h-4","aria-hidden":"true"}):i.jsx(a0,{className:"w-4 h-4","aria-hidden":"true"})})]}),i.jsx("figcaption",{className:"mt-4 text-center","data-testid":"hero-testimonial",children:i.jsxs("blockquote",{className:"text-sm text-foreground/80 leading-relaxed text-balance",children:[i.jsx("span",{className:"inline-flex items-center align-[-2px] mr-1.5","aria-label":"Rated 5 out of 5 stars",children:[1,2,3,4,5].map(c=>i.jsx(Oa,{className:"w-4 h-4 fill-yellow-400 text-yellow-400","aria-hidden":"true"},c))}),'"We and Michael loved the story! The print quality was great too."',i.jsx("span",{className:"text-foreground/60",children:" â Michelle"})]})})]})})]}),i.jsxs("div",{className:"text-center",children:[i.jsx(wv,{pagePath:e}),i.jsx(QKe,{})]})]})})},Aie=({headline:e="Books made for your child",subheadline:t="Every book is written and illustrated around your childâs world â their name, their characters, their interests, their reading level. No two books are the same."})=>i.jsx("section",{className:"py-20 px-6","aria-labelledby":"features-heading",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsx("h2",{id:"features-heading",className:"font-crimson text-4xl md:text-5xl font-semibold text-center mb-6",children:e}
7893),i.jsx("p",{className:"text-[18px] text-center text-foreground/80 mb-16 max-w-3xl mx-auto",children:t}),i.jsx("div",{className:"bg-card rounded-3xl p-8 md:p-12 shadow-sm border border-border",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"font-crimson text-3xl font-semibold mb-4",children:"Built for families, not blank-canvas creators."}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed",children:"Kibbi is designed to make children's storybooks feel personal without making parents do all the creative work. Add the details that matter, let Kibbi shape the story around your child's stage, and read digitally now or print the stories worth keeping."})]}),i.jsx("div",{className:"relative",children:i.jsx("img",{src:"/images/story-creation-interface-optimized.png",alt:"Kibbi story creation interface showing guided questions",className:"rounded-2xl shadow-lg w-full",width:"820",height:"882",loading:"lazy"})})]})})]})}),C0=[{key:"watercolor-pastel",name:"Watercolor Pastel",description:"Soft watercolor washes with vibrant pastel colors â perfect for calming bedtime stories"},{key:"whimsical-sketch",name:"Whimsical Sketch",description:"Loose sketchy style with playful proportions and light color fills â perfect for lively stories"},{key:"vintage-storybook",name:"Vintage Storybook",description:"Classic storybook style with warm tones and nostalgic charm"},{key:"3d-family-film",name:"3D Family Film",description:"Stylized 3D animation with soft textures and warm cinematic lighting"},{key:"stylized-vector",name:"Stylized Vector",description:"Flat shapes with soft pastel colors and geometric layout â clean and modern"},{key:"graphic",name:"Graphic",description:"Modern adventure storybook style with expressive faces and dynamic posing"},{key:"comic",name:"Comic",description:"Clean bold-outline comic style with flat bright colors â a modern graphic-novel look for adventurous stories"},{key:"anime",name:"Anime",description:"Soft cel-shaded anime style with bright colors and expressive eyes"}],_Se="/assets/style-watercolor-pastel-1Z_-3pHG.jpg",SSe="/assets/style-whimsical-sketch-kiYHCv6q.jpg",jSe="/assets/style-vintage-storybook-BzAvrJ68.jpg",ESe="/assets/style-3d-family-film-ByzIvx0P.jpg",CSe="/assets/style-stylized-vector-BUTEIjyg.jpg",NSe="/assets/style-graphic-CnS1vE3o.jpg",TSe="/assets/style-mid-century-modern-CrUt-2er.jpg",ASe="/assets/style-anime-BrfJRdah.jpg",MSe="/assets/style-comic-CA4FinMs.jpg",nYe={"watercolor-pastel":_Se,"whimsical-sketch":SSe,"vintage-storybook":jSe,"3d-family-film":ESe,"stylized-vector":CSe,graphic:NSe,"mid-century-modern":TSe,anime:ASe,comic:MSe},kv=()=>i.jsx("section",{className:"py-20 px-6",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsx("h2",{className:"font-crimson text-4xl md:text-5xl font-semibold text-center mb-6",children:"Choose Your Illustration Style"}),i.jsx("p",{className:"text-[18px] text-center text-foreground/80 mb-16 max-w-3xl mx-auto",children:"Select the visual style for your story's illustrations. Each style brings its own charm to your child's book."}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6",children:C0.map(e=>i.jsxs("div",{className:"group bg-card rounded-2xl overflow-hidden border border-border shadow-sm hover:shadow-md transition-all duration-300",children:[i.jsx("div",{className:"aspect-[2/3] overflow-hidden",children:i.jsx("img",{src:nYe[e.key],alt:`${e.name} illustration style example`,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy"})}),i.jsxs("div",{className:"p-4",children:[i.jsx("h3",{className:"font-semibold text-foreground mb-1",children:e.name}),i.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:e.description})]})]},e.key))})]})}),W0=()=>{const e=[{name:"Kaja S.",image:"/images/testimonial-kaja-optimized.jpg",quote:"I love how easy it was to create a story, and my kid has already read the same story 5 times!",rating:5},{name:"Dana M.",image:"/images/testimonial-dana-optimized.jpg",quote:"The story turned out just as I had envisioned, they were great and I really liked that I could always edit my own input before it created the story.",rating:5},{name:"Eddie K.",image:"/images/testimonial-eddie-optimized.jpg",quote:"My son was amazed to hear his own story come to life! It was so easy to create, and now it's his favorite part of the day.",rating:5}],t={"@context":"https://schema.org","@type":"Product",name:"Kibbi AI Children's Books",aggregateRating:{"@type":"AggregateRating",ratingValue:"4.9",reviewCount:"127"},review:e.map(r=>({"@type":"Review",author:{"@type":"Person",name:r.name},reviewRating:{"@type":"Rating",ratingValue:r.rating},reviewBody:r.quote}))};return i.jsxs(i.Fragment,{children:[i.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)}),i.jsx("section",{className:"py-20 px-6","aria-labelledby":"testimonials-heading",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsx("h2",{id:"testimonials-heading",className:"font-crimson text-4xl md:text-5xl font-semibold text-center mb-16",children:"What users are saying"}),i.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:e.map((r,n)=>i.jsxs("div",{className:"bg-card rounded-3xl p-8 shadow-sm border border-border",children:[i.jsx("img",{src:r.image,alt:`${r.name} testimonial photo`,className:"w-20 h-20 rounded-full object-cover mb-4",width:"80",height:"80",loading:"lazy"}),i.jsx("h3",{className:"font-semibold text-lg mb-3",children:r.name}
7893),i.jsxs("p",{className:"text-[18px] text-foreground/80 leading-relaxed",children:['"',r.quote,'"']})]},n))})]})})]})},aYe="/assets/book-preview-Fk5VDS_Q.jpg",ISe="/assets/illustration-showcase-1-jcrryv_a.jpg",PSe="/assets/illustration-showcase-2-DqIB0GpH.jpg",LSe="/assets/illustration-showcase-3-BkW-aHn9.jpg",iYe="price_1SQNccACvtIVItsaLdkpBB8v",sYe=899,oYe=999,lYe="price_1SQNccACvtIVItsavuya92wX",cYe=7900,uYe=8900,dYe="prod_SwtXEqvFYQQdbZ",hYe="price_1S0zkcACvtIVItsaZKnTgG5k",fYe=899,pYe="prod_UOoZJxrIHHRw7w",mYe=999,gYe="price_1TPzkAACvtIVItsaengpccLs",yYe="price_1TQ0r1ACvtIVItsaJaCb2Vcc",vYe="price_1TQ0wjACvtIVItsan5iqj2R5",xYe=oYe,bYe=uYe,wYe=mYe,kYe=pYe,Gi={MEMBERSHIP:{product_id:"prod_TN7sgyxJVjUc95",name:"Kibbi Club",monthly:{price_id:gYe,amount:xYe,interval:"month"},monthly_legacy:{price_id:iYe,amount:sYe,interval:"month"},annual:{price_id:yYe,amount:bYe,interval:"year"},annual_legacy:{price_id:lYe,amount:cYe,interval:"year"}},STORY_OVERAGE:{product_id:kYe,price_id:vYe,amount:wYe,name:"Additional Story"},STORY_OVERAGE_LEGACY:{product_id:dYe,price_id:hYe,amount:fYe,name:"Additional Story"},IMAGE_EDIT:{product_id:"prod_TcExjLSup9bscF",price_id:"price_1Sf0T7ACvtIVItsaWhicTJRd",amount:50,name:"Image Edit"},BOOK_CLUB:{product_id:"prod_UFnS0DGJ18hZk5",tiers:{paperback:{price_id:"price_1TM2m3ACvtIVItsaJsCSbvsL",base_amount:1699,label:"$16.99"},hardcover:{price_id:"price_1THHrsACvtIVItsaDROLlmUx",base_amount:2999,label:"$29.99"}},name:"Kibbi Book Club",interval:"month"}},Br=`$${(Gi.STORY_OVERAGE.amount/100).toFixed(2)}`;function _Ye(e){return Gi.BOOK_CLUB.tiers[e].base_amount}const K_=()=>{const{averageRating:e}=G_(),t=e!==null&&e>=4,r=Du();return i.jsx("section",{className:"py-20 px-6","aria-labelledby":"product-showcase-heading",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("div",{className:"text-center mb-12",children:[i.jsx("h2",{id:"product-showcase-heading",className:"font-crimson text-4xl md:text-5xl font-semibold mb-6",children:"See what you get"}),i.jsx("p",{className:"text-[18px] text-foreground/80 max-w-3xl mx-auto mb-8",children:"Every Kibbi story is written for your child, illustrated, and ready to read on any device. When you want a keepsake, order it as a paperback or hardcover. Here's what to expect."}),i.jsxs("div",{className:"text-center",children:[i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-8",asChild:!0,children:i.jsx("a",{href:r,children:"Try it for free"})}),i.jsxs("p",{className:"text-sm text-foreground/70 mt-3",children:[Br," per story, starring your child. Print any story for $14.99 (paperback) or $24.99 (hardcover)"]}),t&&i.jsxs("p",{className:"flex items-center justify-center gap-1.5 text-sm text-foreground/70 mt-2",children:[i.jsx(Oa,{className:"h-4 w-4 text-yellow-500 fill-yellow-500"}),"Our stories have an average rating of ",e.toFixed(1)," â
"]})]})]}),i.jsxs("div",{className:"space-y-8 mt-20",children:[i.jsx("div",{className:"bg-card rounded-3xl p-8 md:p-12 shadow-sm border border-border",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"font-crimson text-3xl font-semibold mb-4",children:"See your book before you buy"}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed mb-4",children:"Set up your characters, pick a topic, and we'll create a free preview â cover and first pages."}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed",children:"Like what you see? Buy the full book, and order a printed copy whenever you want one."})]}),i.jsx("div",{className:"relative",children:i.jsx("img",{src:aYe,alt:"Kibbi book preview showing custom cover and story content",className:"rounded-2xl shadow-lg w-full",width:"1920",height:"1082",loading:"lazy"})})]})}),i.jsx("div",{className:"bg-card rounded-3xl p-8 md:p-12 shadow-sm border border-border",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"font-crimson text-3xl font-semibold mb-4",children:"Stories that support early reading"}
7893),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed",children:"Every Kibbi book is designed to support early literacy. Clear language, gentle repetition, and clean typography that helps little eyes follow along. Each book matches your child's reading level â from read-alouds to independent readers."})]}),i.jsx("div",{className:"relative bg-background rounded-2xl shadow-lg p-8 md:p-12 border-2 border-border",children:i.jsx("div",{className:"font-lexend font-normal text-lg md:text-xl leading-relaxed text-foreground whitespace-pre-line",children:"Rori can see."})})]})}),i.jsx("div",{className:"bg-card rounded-3xl p-8 md:p-12 shadow-sm border border-border",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"font-crimson text-3xl font-semibold mb-4",children:"Build a series with the same characters"}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed mb-4",children:"Your child's favorite characters come back in every new book. Same look, same personality â new adventures every month."}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed",children:"It's like having your own picture book series, starring the characters your child already loves."})]}),i.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[i.jsx("img",{src:ISe,alt:"Recurring storybook character in different scene",className:"rounded-xl shadow-md w-full aspect-square object-cover",width:"400",height:"400",loading:"lazy"}),i.jsx("img",{src:PSe,alt:"Same character in a new adventure setting",className:"rounded-xl shadow-md w-full aspect-square object-cover",width:"400",height:"400",loading:"lazy"}),i.jsx("img",{src:LSe,alt:"Character series showing consistent illustration style",className:"rounded-xl shadow-md w-full aspect-square object-cover",width:"400",height:"400",loading:"lazy"})]})]})})]})]})})},SYe=[{icon:Fa,number:"1",title:"Set Up Your Characters",description:"Add your child's name, pick how they look, and create any friends or sidekicks. Your characters come back in every book."},{icon:_y,number:"2",title:"Pick Your Settings",description:"Choose a topic, illustration style, age, and reading level. We'll use these every month unless you change them."},{icon:Qt,number:"3",title:"We Create and Ship Your Book",description:"We write and illustrate a complete hardcover and ship it to your door. A new one, every month."},{icon:xr,number:"4",title:"Read It Together",description:"A new book on the shelf every month. Read it together or let them explore on their own."}],_v=({headline:e="How Kibbi Book Club Works",subheadline:t="A new book, every month â hereâs how it happens",steps:r=SYe})=>i.jsx("section",{className:"py-20 px-6 bg-muted/30","aria-labelledby":"how-it-works-heading",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsx("h2",{id:"how-it-works-heading",className:"font-crimson text-4xl md:text-5xl font-semibold text-center mb-6",children:e}),i.jsx("p",{className:"text-[18px] text-center text-foreground/80 mb-16 max-w-3xl mx-auto",children:t}),i.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:r.map((n,a)=>{const s=n.icon;return i.jsxs("article",{className:"text-center",children:[i.jsx("div",{className:"mb-4 flex justify-center",children:i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"w-20 h-20 rounded-full bg-primary/10 flex items-center justify-center",children:i.jsx(s,{className:"w-10 h-10 text-primary"})}),i.jsx("div",{className:"absolute -top-2 -right-2 w-8 h-8 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold text-sm",children:n.number})]})}),i.jsx("h3",{className:"font-crimson text-2xl font-semibold mb-3",children:n.title}),i.jsx("p",{className:"text-[16px] text-foreground/80 leading-relaxed",children:n.description})]},a)})})]})});var PW="Collapsible",[jYe,OSe]=xa(PW),[EYe,Mie]=jYe(PW),RSe=k.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:s,onOpenChange:o,...l}=e,[c,u]=ks({prop:n,defaultProp:a??!1,onChange:o,caller:PW});return i.jsx(EYe,{scope:r,disabled:s,contentId:$a(),open:c,onOpenToggle:k.useCallback(()=>u(d=>!d),[u]),children:i.jsx(dt.div,{"data-state":Pie(c),"data-disabled":s?"":void 0,...l,ref:t})})});RSe.displayName=PW;var DSe="CollapsibleTrigger",FSe=k.forwardRef((e,t)=>
vendor: 4,255 bytes, line 7893
7893{const{__scopeCollapsible:r,...n}=e,a=Mie(DSe,r);return i.jsx(dt.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Pie(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:t,onClick:Xe(e.onClick,a.onOpenToggle)})});FSe.displayName=DSe;var Iie="CollapsibleContent",$Se=k.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=Mie(Iie,e.__scopeCollapsible);return i.jsx(ba,{present:r||a.open,children:({present:s})=>i.jsx(CYe,{...n,ref:t,present:s})})});$Se.displayName=Iie;var CYe=k.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:a,...s}=e,o=Mie(Iie,r),[l,c]=k.useState(n),u=k.useRef(null),d=Vt(t,u),h=k.useRef(0),f=h.current,p=k.useRef(0),y=p.current,m=o.open||l,v=k.useRef(m),g=k.useRef(void 0);return k.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),za(()=>{const b=u.current;if(b){g.current=g.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const x=b.getBoundingClientRect();h.current=x.height,p.current=x.width,v.current||(b.style.transitionDuration=g.current.transitionDuration,b.style.animationName=g.current.animationName),c(n)}},[o.open,n]),i.jsx(dt.div,{"data-state":Pie(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!m,...s,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:m&&a})});function Pie(e){return e?"open":"closed"}var NYe=RSe,TYe=FSe,AYe=$Se,Nl="Accordion",MYe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Lie,IYe,PYe]=A_(Nl),[LW,SWt]=xa(Nl,[PYe,OSe]),Oie=OSe(),BSe=ce.forwardRef((e,t)=>{const{type:r,...n}=e,a=n,s=n;return i.jsx(Lie.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?i.jsx(DYe,{...s,ref:t}):i.jsx(RYe,{...a,ref:t})})});BSe.displayName=Nl;var[zSe,LYe]=LW(Nl),[USe,OYe]=LW(Nl,{collapsible:!1}),RYe=ce.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},collapsible:s=!1,...o}=e,[l,c]=ks({prop:r,defaultProp:n??"",onChange:a,caller:Nl});return i.jsx(zSe,{scope:e.__scopeAccordion,value:ce.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:ce.useCallback(()=>s&&c(""),[s,c]),children:i.jsx(USe,{scope:e.__scopeAccordion,collapsible:s,children:i.jsx(qSe,{...o,ref:t})})})}),DYe=ce.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...s}=e,[o,l]=ks({prop:r,defaultProp:n??[],onChange:a,caller:Nl}),c=ce.useCallback(d=>l((h=[])=>[...h,d]),[l]),u=ce.useCallback(d=>l((h=[])=>h.filter(f=>f!==d)),[l]);return i.jsx(zSe,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:i.jsx(USe,{scope:e.__scopeAccordion,collapsible:!0,children:i.jsx(qSe,{...s,ref:t})})})}),[FYe,OW]=LW(Nl),qSe=ce.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:a,orientation:s="vertical",...o}=e,l=ce.useRef(null),c=Vt(l,t),u=IYe(r),h=q0(a)==="ltr",f=Xe(e.onKeyDown,p=>{var C;if(!MYe.includes(p.key))return;const y=p.target,m=u().filter(N=>{var A;return!((A=N.ref.current)!=null&&A.disabled)}),v=m.findIndex(N=>N.ref.current===y),g=m.length;if(v===-1)return;p.preventDefault();let b=v;const x=0,_=g-1,w=()=>{b=v+1,b>_&&(b=x)},j=()=>{b=v-1,b<x&&(b=_)};switch(p.key){case"Home":b=x;break;case"End":b=_;break;case"ArrowRight":s==="horizontal"&&(h?w():j());break;case"ArrowDown":s==="vertical"&&w();break;case"ArrowLeft":s==="horizontal"&&(h?j():w());break;case"ArrowUp":s==="vertical"&&j();break}const E=b%g;(C=m[E].ref.current)==null||C.focus()});return i.jsx(FYe,{scope:r,disabled:n,direction:a,orientation:s,children:i.jsx(Lie.Slot,{scope:r,children:i.jsx(dt.div,{...o,"data-orientation":s,ref:c,onKeyDown:n?void 0:f})})})}),cH="AccordionItem",[$Ye,Rie]=LW(cH),HSe=ce.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...a}=e,s=OW(cH,r),o=LYe(cH,r),l=Oie(r),c=$a(),u=n&&o.value.includes(n)||!1,d=s.disabled||e.disabled;return i.jsx($Ye,{scope:r,open:u,disabled:d,triggerId:c,children:i.jsx(NYe,{"data-orientation":s.orientation,"data-state":XSe(u),...l,...a,ref:t,disabled:d,open:u,onOpenChange:h=>{h?o.onItemOpen(n):o.onItemClose(n)}})})});HSe.displayName=cH;var VSe="AccordionHeader",WSe=ce.forwardRef((e,t)=>
7893{const{__scopeAccordion:r,...n}=e,a=OW(Nl,r),s=Rie(VSe,r);return i.jsx(dt.h3,{"data-orientation":a.orientation,"data-state":XSe(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:t})});WSe.displayName=VSe;var dte="AccordionTrigger",GSe=ce.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=OW(Nl,r),s=Rie(dte,r),o=OYe(dte,r),l=Oie(r);return i.jsx(Lie.ItemSlot,{scope:r,children:i.jsx(TYe,{"aria-disabled":s.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId,...l,...n,ref:t})})});GSe.displayName=dte;var KSe="AccordionContent",YSe=ce.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=OW(Nl,r),s=Rie(KSe,r),o=Oie(r);return i.jsx(AYe,{role:"region","aria-labelledby":s.triggerId,"data-orientation":a.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});YSe.displayName=KSe;function XSe(e){return e?"open":"closed"}var BYe=BSe,zYe=HSe,UYe=WSe,ZSe=GSe,QSe=YSe;const Sv=BYe,bi=k.forwardRef(({className:e,...t},r)=>i.jsx(zYe,{ref:r,className:De("border-b",e),...t}));bi.displayName="AccordionItem";const wi=k.forwardRef(({className:e,children:t,...r},n)=>i.jsx(UYe,{className:"flex",children:i.jsxs(ZSe,{ref:n,className:De("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,i.jsx(sc,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));wi.displayName=ZSe.displayName;const ki=k.forwardRef(({className:e,children:t,...r},n)=>i.jsx(QSe,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:i.jsx("div",{className:De("pb-4 pt-0",e),children:t})}));ki.displayName=QSe.displayName;const qYe=[{question:"How does Kibbi work?",answer:"You set up your child's characters and pick a topic each month. We create a personalized children's story you can read on Kibbi anytime. Want a keepsake? Order any story as a paperback or hardcover â pay only when you do."},{question:"What ages is it for?",answer:"Kibbi books are designed for ages 0â9. Each book is matched to your child's reading level: read-alouds for the youngest, learning-to-read for the middle, and independent reading for older kids."},{question:"Can I pick the topic?",answer:"Yes. Each month you can choose any topic â animals, space, feelings, a new sibling, anything. Or let us pick one for you."},{question:"Do my child's characters stay the same?",answer:"Yes. You set up your characters once and they appear in every book. You can update them anytime."},{question:"Can I change settings between books?",answer:"Yes. Your preferences carry over each month by default, but you can update anything before the next book â topic, characters, illustration style, age, and reading level."},{question:"How much does it cost?",answer:`${Br} per story, one time. Preview it free and pay only if you want the whole book. If you want a printed keepsake, paperback is $14.99 and hardcover is $24.99 per book, plus shipping and handling, shown before you pay.`},{question:"When can I order a print?",answer:"Anytime after a story is generated. Choose paperback ($14.99) or hardcover ($24.99) and we'll print and ship it. Shipping and handling are shown in full before you pay."},{question:"Can I cancel anytime?",answer:"Yes. No commitment, no fees. Cancel from your account whenever you want."},{question:"Are the stories educational?",answer:"Every book is designed to support early literacy. We use clear language, age-appropriate vocabulary, and gentle repetition. Stories can cover emotions, problem-solving, and real-world topics your child is navigating."}],jv=({headline:e="Frequently Asked Questions",subheadline:t="Everything you need to know about Kibbi Book Club",faqs:r=qYe}={})=>i.jsx("section",{className:"py-20 px-6 bg-background","aria-labelledby":"homepage-faq-heading",children:i.jsxs("div",{className:"container mx-auto max-w-4xl",children:[i.jsx("h2",{id:"homepage-faq-heading",className:"font-crimson text-4xl md:text-5xl font-semibold text-center mb-4",children:e}
7893),i.jsx("p",{className:"text-[18px] text-center text-foreground/80 mb-12 max-w-2xl mx-auto",children:t}),i.jsx(Sv,{type:"single",collapsible:!0,className:"w-full space-y-4",children:r.map((n,a)=>i.jsxs(bi,{value:`item-${a}`,className:"border border-border rounded-lg px-6 bg-card",children:[i.jsx(wi,{className:"text-left text-lg font-semibold hover:no-underline py-4",children:n.question}),i.jsx(ki,{className:"text-[16px] text-foreground/80 leading-relaxed pb-4",children:n.answer})]},a))})]})}),HYe=["A new story starring your child, up to 20 pages","Your child's characters in every book","Matched to your child's age and reading level","Illustrated cover to cover","Read on Kibbi anytime, on any device","Edit text anytime. Each purchased story includes 4 image edits, cover included, then $0.50 each","Preview free, pay only if you love it"],VYe=["Professionally printed paperback ($14.99) or hardcover ($24.99)","7Ã10 inches, 300 DPI archival-quality pages","Order any story you've created â pay only when you want a keepsake","Shipped to your door, shipping and handling shown before you pay","Available in over 20 languages","Perfect for birthdays, holidays, and milestone gifts"],G0=()=>{const e=Du();return i.jsx("section",{id:"pricing",className:"py-20 px-6",children:i.jsxs("div",{className:"container mx-auto max-w-5xl",children:[i.jsxs("div",{className:"text-center mb-12",children:[i.jsx("h2",{className:"font-crimson text-4xl md:text-5xl font-semibold mb-6",children:"A story about your child. A keepsake whenever you want one."}),i.jsxs("p",{className:"text-[18px] text-foreground/80 max-w-2xl mx-auto",children:["Create a story built around your child for ",Br,". Order any story as a paperback or hardcover keepsake â pay only when you want it."]})]}),i.jsxs("div",{className:"grid md:grid-cols-2 gap-6 md:gap-8 items-stretch",children:[i.jsxs("div",{className:"bg-card rounded-3xl p-6 md:px-8 md:py-10 shadow-lg border-2 border-primary/20 relative flex flex-col",children:[i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:"Your Child's Story"}),i.jsxs("div",{className:"flex items-baseline gap-2 mb-1",children:[i.jsx("span",{className:"font-crimson text-4xl md:text-5xl font-bold",children:Br}),i.jsx("span",{className:"text-sm text-foreground/70",children:"per story"})]}),i.jsx("p",{className:"text-sm text-foreground/70",children:"One-time. No subscription."})]}),i.jsx("ul",{className:"space-y-4 mb-8 flex-1",children:HYe.map((t,r)=>i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx(_r,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-base text-foreground/80 leading-relaxed",children:t})]},r))}),i.jsx(le,{size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full text-sm md:text-base",asChild:!0,children:i.jsx("a",{href:e,children:"Try it for free"})})]}),i.jsxs("div",{className:"bg-card rounded-3xl p-6 md:px-8 md:py-10 shadow-lg border-2 border-primary relative flex flex-col",children:[i.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-primary text-foreground text-xs font-semibold uppercase tracking-wide px-3 py-1 rounded-full",children:"Keepsake"}),i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:"Hardcover Keepsake"}),i.jsxs("div",{className:"flex items-baseline gap-2 mb-1",children:[i.jsx("span",{className:"font-crimson text-4xl md:text-5xl font-bold",children:"$24.99"}),i.jsx("span",{className:"text-sm text-foreground/70",children:"per hardcover"})]}),i.jsx("p",{className:"text-sm text-foreground/70",children:"Or paperback from $14.99 â order anytime, no commitment"})]}),i.jsx("ul",{className:"space-y-4 mb-8 flex-1",children:VYe.map((t,r)=>i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx(_r,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-base text-foreground/80 leading-relaxed",children:t})]},r))}),i.jsx(le,{size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full text-sm md:text-base",asChild:!0,children:i.jsx("a",{href:e,children:"Try it for free"})})]})]}
7893),i.jsx("p",{className:"text-center text-sm text-foreground/70 mt-8",children:"Order print after you've created a story â every Kibbi book can be turned into a paperback or hardcover keepsake."})]})})},Rl=[];async function JSe(e,t=1,r=10){const n=(t-1)*r,a=n+r-1;try{if(e){const{data:h}=await oe.from("blog_categories").select("id").eq("slug",e).single();if(!h){console.error("Category not found:",e);const w=Rl.filter(j=>{var E;return(E=j.categories)==null?void 0:E.some(C=>C.slug===e)});return{posts:w,total:w.length}}const{data:f,error:p,count:y}=await oe.from("blog_post_categories").select(` 7894 post_id, 7895 blog_posts!inner(*) 7896 `,{count:"exact"}).eq("category_id",h.id).order("blog_posts(published_at)",{ascending:!1}).range(n,a);if(p){console.error("Error fetching filtered blog posts:",p);const w=Rl.filter(j=>{var E;return(E=j.categories)==null?void 0:E.some(C=>C.slug===e)});return{posts:w,total:w.length}}const m=(f||[]).map(w=>w.blog_posts.id),{data:v}=await oe.from("blog_post_categories").select(` 7897 post_id, 7898 blog_categories(id, name, slug, description) 7899 `).in("post_id",m),g=new Map;(v||[]).forEach(w=>{const j=w.post_id;g.has(j)||g.set(j,[]),g.get(j).push(w.blog_categories)});const b=(f||[]).map(w=>({...w.blog_posts,categories:g.get(w.blog_posts.id)||[]})),x=Rl.filter(w=>{var j;return(j=w.categories)==null?void 0:j.some(E=>E.slug===e)});return{posts:[...x,...b].sort((w,j)=>new Date(j.published_at).getTime()-new Date(w.published_at).getTime()),total:(y||0)+x.length}}const{data:s,error:o,count:l}=await oe.from("blog_posts").select(` 7900 *, 7901 blog_post_categories( 7902 blog_categories(id, name, slug, description) 7903 ) 7904 `,{count:"exact"}).order("published_at",{ascending:!1}).range(n,a);if(o)return console.error("Error fetching blog posts:",o),{posts:Rl,total:Rl.length};const c=(s||[]).map(h=>{var f;return{...h,categories:((f=h.blog_post_categories)==null?void 0:f.map(p=>p.blog_categories).filter(Boolean))||[]}});return{posts:[...Rl,...c].sort((h,f)=>new Date(f.published_at).getTime()-new Date(h.published_at).getTime()),total:(l||0)+Rl.length}}catch(s){return console.error("Error in getAllBlogPosts:",s),{posts:e?[]:Rl,total:Rl.length}}}async function WYe(e){var r;const t=Rl.find(n=>n.slug===e);if(t)return t;try{const{data:n,error:a}=await oe.from("blog_posts").select(` 7905 *, 7906 blog_post_categories( 7907 blog_categories(id, name, slug, description) 7908 ) 7909 `).eq("slug",e).single();return a?(console.error("Error fetching blog post:",a),null):{...n,categories:((r=n.blog_post_categories)==null?void 0:r.map(s=>s.blog_categories).filter(Boolean))||[]}}catch(n){return console.error("Error in getBlogPostBySlug:",n),null}}async function GYe(){try{const{data:e,error:t}=await oe.from("blog_categories").select("*").order("name");return t?(console.error("Error fetching categories:",t),[]):e||[]}catch(e){return console.error("Error in getAllCategories:",e),[]}}function Nk({name:e,slug:t,clickable:r=!0,active:n=!1,className:a}){const s=De("inline-block px-3 py-1 rounded-full border-2 border-foreground bg-transparent text-sm font-medium transition-colors",r&&"hover:bg-foreground hover:text-background cursor-pointer",n&&"bg-foreground text-background",a);return r?i.jsx(or,{to:`/blog?category=${t}`,className:s,children:e}):i.jsx("span",{className:s,children:e})}const uH=!1,eje=()=>{const[e,t]=k.useState([]),[r,n]=k.useState(!0);return k.useEffect(()=>{async function a(){const s=await JSe(void 0,1,3);t(s.posts),n(!1)}a()},[]),i.jsx("section",{className:"py-20 px-6",children:i.jsxs("div",{className:"container mx-auto max-w-5xl",children:[i.jsxs("div",{className:"flex items-center justify-between mb-12",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"font-crimson text-4xl md:text-5xl font-semibold mb-4",children:"What's new?"}),i.jsx("p",{className:"text-[18px] text-foreground/80 max-w-3xl",children:"Tips, ideas, and inspiration for storytellers of all agesâexploring the power of imagination, creativity, and language. Whether you're raising curious kids or writing your first novel, we're here to help you turn ideas into unforgettable stories."})]}),i.jsx(le,{asChild:!0,variant:"outline",size:"lg",className:"hidden md:flex rounded-full border-2",children:i.jsx(or,{to:"/blog",children:"View Blog"})})]}),i.jsx("div",{className:"space-y-8",children:r?i.jsx(i.Fragment,{children:[1,2,3].map(a=>i.jsxs("div",{className:"border-b border-border pb-8 last:border-0 animate-pulse",children:[i.jsx("div",{className:"h-8 bg-muted rounded w-3/4 mb-3"}),i.jsx("div",{className:"h-4 bg-muted rounded w-full mb-2"}),i.jsx("div",{className:"h-4 bg-muted rounded w-5/6 mb-3"}),i.jsx("div",{className:"h-4 bg-muted rounded w-1/4"})]},a))}):e.length===0?i.jsx("p",{className:"text-center text-muted-foreground py-8",children:"No blog posts yet. Check back soon!"}):e.map(a=>i.jsx("div",{className:"border-b border-border pb-8 last:border-0",children:i.jsxs(or,{to:`/post/${a.slug}`,className:"block",children:[i.jsx("h3",{className:"font-crimson text-2xl font-semibold mb-3 hover:text-primary transition-colors",children:a.title}
7909),a.excerpt&&i.jsx("p",{className:"text-[18px] text-foreground/80 mb-3 leading-relaxed",children:a.excerpt}),a.categories&&a.categories.length>0&&i.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:a.categories.map(s=>i.jsx(Nk,{name:s.name,slug:s.slug},s.id))}),uH,i.jsx(le,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full border-2",children:i.jsxs("span",{className:"flex items-center",children:["Read post",i.jsx(du,{className:"ml-2 h-4 w-4"})]})})]})},a.id))})]})})},br=({ctaHeading:e,ctaSubheading:t,hideCTA:r}={})=>{const{averageRating:n}=G_(),a=n!==null&&n>=4,s=Du(),o="Want a brand-new story starring your kid?",l="Make their first book today and read the opening pages in minutes.",c=e||o,u=t||l;return i.jsxs("footer",{className:"bg-background border-t border-border",children:[!r&&i.jsx("div",{className:"py-20 px-6",children:i.jsxs("div",{className:"container mx-auto max-w-6xl text-center",children:[i.jsx("h2",{className:"font-crimson text-3xl md:text-4xl font-semibold mb-6 max-w-xl mx-auto",children:c}),i.jsx("p",{className:"text-[18px] text-foreground/80 mb-10 max-w-2xl mx-auto",children:u}),i.jsxs("div",{children:[i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-8 mb-3 text-base",asChild:!0,children:i.jsx("a",{href:s,children:"Try it for free"})}),i.jsx("p",{className:"text-sm text-foreground/70",children:"Try it for free, no credit card required"}),a&&i.jsxs("p",{className:"flex items-center justify-center gap-1.5 text-sm text-foreground/70 mt-2 mb-12",children:[i.jsx(Oa,{className:"h-4 w-4 text-yellow-500 fill-yellow-500"}),"Our stories have an average rating of ",n.toFixed(1)," â
"]}),!a&&i.jsx("div",{className:"mb-12"})]})]})}),i.jsx("div",{className:"border-t border-border py-12 px-6",children:i.jsx("div",{className:"container mx-auto max-w-6xl",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-start",children:[i.jsxs("div",{children:[i.jsx("a",{href:"/",className:"inline-block mb-6",children:i.jsx("img",{src:va,alt:"Kibbi",className:"h-8",width:"81",height:"40"})}),i.jsxs("div",{className:"flex gap-4",children:[i.jsx("a",{href:"https://www.facebook.com/profile.php?id=61571902596223",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:i.jsx(Xb,{className:"w-5 h-5"})}),i.jsx("a",{href:"https://www.instagram.com/kibbi.ai/",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:i.jsx(rw,{className:"w-5 h-5"})}),i.jsx("a",{href:"https://x.com/kibbiai",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:i.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),i.jsx("a",{href:"https://www.youtube.com/channel/UCmDy_65Cg7IBUZRYZQcj8Cw",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:i.jsx(ww,{className:"w-5 h-5"})})]})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold mb-4",children:"Resources"}),i.jsxs("ul",{className:"space-y-3",children:[i.jsx("li",{children:i.jsx("a",{href:"/blog",className:"text-foreground/80 hover:text-foreground transition-colors",children:"Blog"})}),i.jsx("li",{children:i.jsx("a",{href:"/guides",className:"text-foreground/80 hover:text-foreground transition-colors",children:"Guides & Comparisons"})}),i.jsx("li",{children:i.jsx("a",{href:"/help",className:"text-foreground/80 hover:text-foreground transition-colors",children:"Help Center"})}),i.jsx("li",{children:i.jsx("a",{href:"/pricing",className:"text-foreground/80 hover:text-foreground transition-colors",children:"Pricing"})}),i.jsx("li",{children:i.jsx("a",{href:"/terms-of-service",className:"text-foreground/80 hover:text-foreground transition-colors",children:"Terms & Conditions"})}),i.jsx("li",{children:i.jsx("a",{href:"/privacy-policy",className:"text-foreground
7909/80 hover:text-foreground transition-colors",children:"Privacy Policy"})}),i.jsx("li",{children:i.jsx("a",{href:"/about",className:"text-foreground/80 hover:text-foreground transition-colors",children:"About"})}),i.jsx("li",{children:i.jsx("a",{href:"/contact",className:"text-foreground/80 hover:text-foreground transition-colors",children:"Contact Us"})})]})]})]})})})]})},KYe=[{icon:Fa,number:"1",title:"Tell Kibbi who the story is for",description:"Add your child's name, age, reading stage, and a few details they will recognize."},{icon:Qt,number:"2",title:"Pick the story idea",description:"Choose anything from dinosaurs and space adventures to starting school, bedtime worries, or a favorite stuffed animal."},{icon:xr,number:"3",title:"See the story come together",description:"Kibbi builds a personalized storybook matched to your child's stage, with illustrations made for the story."},{icon:Wd,number:"4",title:"Read tonight or print the keepsake",description:"Enjoy the story on any device, then order a paperback or hardcover when it becomes one worth keeping."}],Rhe=[{question:"How long does it take to make a story?",answer:"Just a few minutes to set up your child's details and story idea, then Kibbi creates the book for you."},{question:"Do I need to know how to write?",answer:"No. Kibbi is designed for parents and caregivers, not professional writers. You bring the idea and your child's details, and Kibbi handles the story structure and illustrations."},{question:"What ages is Kibbi for?",answer:"Kibbi supports children across early reading stages, from toddlers through early readers. Stories are matched to your child's age and reading level."},{question:"Can I pick the topic?",answer:"Yes. You can create stories about anything from bedtime and big feelings to dinosaurs, space, starting school, and favorite animals."},{question:"Can I order a real printed copy?",answer:"Yes. You can read digitally first, then order the stories you want as paperback or hardcover keepsakes."},{question:"How much does it cost?",answer:`Each personalized story is ${Br}, one time. Preview it free and pay only if you love it. Printed keepsakes are optional and priced separately.`}],YYe=()=>{const{user:e,loading:t}=er(),r=wt();if(k.useEffect(()=>{!t&&e&&r("/library",{replace:!0})},[e,t,r]),t||e)return null;const n={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://kibbi.ai"}]},a={"@context":"https://schema.org","@type":"SoftwareApplication",name:"Kibbi",applicationCategory:"EducationalApplication",operatingSystem:"Web",offers:{"@type":"Offer",price:"9.99",priceCurrency:"USD"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.9",reviewCount:"127"},description:"Personalized storybook platform for children ages 0-9, with age-matched reading and optional printed keepsakes."},s={"@context":"https://schema.org","@type":"FAQPage",mainEntity:Rhe.map(c=>({"@type":"Question",name:c.question,acceptedAnswer:{"@type":"Answer",text:c.answer}}))},o={"@context":"https://schema.org","@type":"Organization",name:"Kibbi",url:"https://kibbi.ai",logo:"https://kibbi.ai/kibbi-logo.png",description:"Personalized storybooks for kids, with age-matched reading and optional printed keepsakes.",sameAs:["https://kibbi.ai"]},l={"@context":"https://schema.org","@type":"WebSite",name:"Kibbi.ai",url:"https://kibbi.ai",description:"Create personalized storybooks matched to your child's age and reading stage. Read online tonight or print a keepsake.",publisher:{"@type":"Organization",name:"Kibbi"}};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Personalized Storybooks for Kids | Kibbi"}),i.jsx("meta",{name:"description",content:"Create personalized storybooks matched to your child's age and reading stage. Read online tonight or print a keepsake. Try it for free, no credit card required."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/"}),i.jsx("meta",{property:"og:title",content:"Personalized Storybooks for Kids | Kibbi"}),i.jsx("meta",{property:"og:description",content:"Create personalized storybooks matched to your child's age and reading stage. Read online tonight or print a keepsake."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}
7909),i.jsx("meta",{property:"og:image:width",content:"1200"}),i.jsx("meta",{property:"og:image:height",content:"630"}),i.jsx("meta",{property:"og:image:alt",content:"Kibbi personalized storybooks for kids"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:"Personalized Storybooks for Kids | Kibbi"}),i.jsx("meta",{name:"twitter:description",content:"Create personalized storybooks matched to your child's age and reading stage. Read online tonight or print a keepsake."}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("meta",{name:"twitter:image:alt",content:"Kibbi personalized storybooks for kids"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(a)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(s)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(o)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(l)})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{role:"main",children:[i.jsx(kSe,{headline:"Create a children's book about anything in minutes with AI. Starring your kid.",subheadline:"Create a story around your child's interests in minutes. Kibbi matches each book to their age and reading stage, so it feels personal, fun, and easy to love. Read online tonight or print a keepsake when it matters."}),i.jsx(_v,{headline:"From idea to storytime in minutes",subheadline:"Tell Kibbi who the story is for, pick a story idea, and read it tonight or print it later.",steps:KYe}),i.jsx(Aie,{headline:"More personal than a generic story generator",subheadline:"Kibbi is built for children's books from the start â with guided setup, age-matched reading, and stories worth reading now or printing later."}),i.jsx(kv,{}),i.jsx(W0,{}),i.jsx(K_,{}),i.jsx(G0,{}),i.jsx(jv,{headline:"Frequently Asked Questions",subheadline:"Everything you need to know before you make your first story.",faqs:Rhe}),i.jsx(eje,{})]}),i.jsx(br,{})]})]})},Dhe=[{question:"How do personalized books for kids work?",answer:"Personalized books for kids allow you to add your child's name and customize characters to look like them. Our AI creates a unique story featuring your child as the main character, complete with beautiful illustrations. Simply describe your child, choose a theme, and we'll generate a custom storybook in minutes."},{question:"What age range are personalized books for kids suitable for?",answer:"Our personalized books for kids are designed for ages 0-9, with age-appropriate content, vocabulary, and themes tailored to each developmental stage. Whether you need a simple board book style for toddlers or chapter-style stories for older kids, we adapt the complexity to match your child's reading level."},{question:"Can I customize the characters in personalized books?",answer:"Yes! You can describe your child's appearance including hair color, eye color, skin tone, and favorite outfit. You can also choose from various illustration styles like watercolor, cartoon, or vintage storybook. Every detail can be customized to create books with your child's name and likeness."},{question:"Are personalized books for kids good gifts?",answer:"Absolutely! Personalized books make perfect birthday gifts, holiday presents, and special occasion keepsakes. Children love seeing themselves as the hero of their own story. These custom children's books become treasured mementos that families keep for years."},{question:"How long does it take to get a printed personalized book?",answer:"Your story and illustrations are generated in minutes. Once you order, your printed paperback or hardcover takes 6-8 business days to produce, plus shipping time for the carrier you pick at checkout. You can preview the digital version on Kibbi while you wait for the printed keepsake to arrive."},{question:"What printed formats are available?",answer:"Every story can be ordered as a paperback ($14.99) or a hardcover ($24.99) keepsake, professionally printed at 7x10 inches with 300 DPI for crisp, beautiful pages. Shipping and handling are shown in full before you pay. Subscribers can also read the digital version on Kibbi anytime."}],XYe=()=>{const e={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://kibbi.ai"},{"@type":"ListItem",position:2,name:"Personalized Books for Kids",item:"https://kibbi.ai/personalized-books-for-kids"}]},t={"@context":"https://schema.org","@type":"Product",name:"Personalized Books for Kids",description:"Personalized children's storybooks featuring your child as the main character, with age-matched reading and optional paperback or hardcover keepsakes.",brand:{"@type":"Brand",name:"Kibbi"},offers:[{"@type":"Offer",name:"Hardcover personalized book",price:"24.99",priceCurrency:"USD",availability:"https://schema.org/InStock",url:"https://kibbi.ai/pricing"},{"@type":"Offer",name:"Paperback personalized book",price:"14.99",priceCurrency:"USD",availability:"https://schema.org/InStock",url:"https://kibbi.ai/pricing"},{"@type":"Offer",name:"Kibbi Club â monthly subscription (digital + print upsell)",price:"9.99",priceCurrency:"USD",availability:"https://schema.org/InStock",url:"https://kibbi.ai/pricing"}],aggregateRating:{"@type":"AggregateRating",ratingValue:"4.9",reviewCount:"127"}},r={"@context":"https://schema.org","@type":"FAQPage",mainEntity:Dhe.map(s=>
7909({"@type":"Question",name:s.question,acceptedAnswer:{"@type":"Answer",text:s.answer}}))},n={"@context":"https://schema.org","@type":"Organization",name:"Kibbi",url:"https://kibbi.ai",logo:"https://kibbi.ai/kibbi-logo.png",description:"Personalized storybooks for kids, with age-matched reading and optional paperback or hardcover keepsakes.",sameAs:["https://kibbi.ai"]},a={"@context":"https://schema.org","@type":"WebSite",name:"Kibbi.ai",url:"https://kibbi.ai/personalized-books-for-kids",description:"Personalized storybooks for kids featuring your child as the main character, matched to their age and reading stage with optional keepsake printing.",publisher:{"@type":"Organization",name:"Kibbi"}};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Personalized Storybooks for Kids | Kibbi"}),i.jsx("meta",{name:"description",content:"Create personalized storybooks matched to your child's age and reading stage. Read online tonight or print a keepsake they will want to revisit."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/personalized-books-for-kids"}),i.jsx("meta",{property:"og:title",content:"Personalized Storybooks for Kids | Kibbi"}),i.jsx("meta",{property:"og:description",content:"Create personalized storybooks matched to your child's age and reading stage. Read online tonight or print a keepsake they will want to revisit."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/personalized-books-for-kids"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("meta",{property:"og:image:width",content:"1200"}),i.jsx("meta",{property:"og:image:height",content:"630"}),i.jsx("meta",{property:"og:image:alt",content:"Kibbi personalized storybooks for kids"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:"Personalized Storybooks for Kids | Kibbi"}),i.jsx("meta",{name:"twitter:description",content:"Create personalized storybooks matched to your child's age and reading stage. Read online tonight or print a keepsake they will want to revisit."}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("meta",{name:"twitter:image:alt",content:"Kibbi personalized storybooks for kids"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(e)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(r)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(a)})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{role:"main",children:[i.jsx(kSe,{pagePath:"/personalized-books-for-kids",headline:"Personalized storybooks that feel made for your child",subheadline:"Create a story around your child's interests, big moments, or favorite routines in minutes. Kibbi matches each book to their age and reading stage, so it feels personal, fun, and easy to love. Read online tonight or print a keepsake when it matters."}),i.jsx(_v,{headline:"How to Create Personalized Books for Kids in 4 Steps",subheadline:"From your child's name and interests to a finished story you can read tonight or print later â here's how Kibbi makes personalized books for kids."}),i.jsx(Aie,{headline:"Personalized Books for Kids, Made Around Your Child",subheadline:"Every personalized children's book is written and illustrated around your child â their name, their characters, their interests, their reading level. No two books are the same."}),i.jsx(kv,{}),i.jsx(W0,{}),i.jsx(K_,{}),i.jsx(G0,{}),i.jsx(jv,{headline:"Personalized Books for Kids â Frequently Asked Questions",subheadline:"Everything to know about creating, printing, and gifting personalized children's books with Kibbi.",faqs:Dhe}),i.jsx(eje,{})]}),i.jsx(br,{})]})]})},ZYe=[{icon:Yb,number:"1",title:"Paste Your Story",description:"Copy your story into Kibbi. Works with any text from 500 to 20,000 characters, in 20+ languages."},{icon:iw,number:"2",title:"Review Pages",description:"Kibbi splits your story into pages. Adjust the breaks, merge or split, or rewrite a line â you stay in control."},{icon:Xi,number:"3",title:"Customize Characters",description:"We identify your characters and write visual descriptions. Edit them so every illustration matches your vision."}
7909,{icon:_y,number:"4",title:"Choose a Style",description:"Pick from 10+ illustration styles â from gouache to vintage storybook to bold cartoon â and we illustrate every page."}],Fhe=[{question:"What story formats work best?",answer:"Plain text works best â paste it directly from a Word doc, Google Doc, Notes app, or anywhere else. Stories between 500 and 20,000 characters work well. Kibbi handles English plus 20+ other languages."},{question:"Can I edit the pages after Kibbi splits them?",answer:"Yes. After Kibbi splits your story into pages, you can adjust page breaks, merge or split pages, or rewrite specific lines before any illustrations are generated. You stay in control of how the story flows."},{question:"What if the AI gets my character wrong?",answer:"You'll see Kibbi's character descriptions before any illustrations are generated. If a character's hair, age, outfit, or species is off, just edit the description â Kibbi uses your edits in every illustration so the character stays consistent throughout the book."},{question:"Can I use a story I wrote years ago?",answer:"Yes. Old handwritten tales, classroom stories, manuscripts you set aside â paste them in and Kibbi will illustrate them just as if you wrote them today."},{question:"What about stories from ChatGPT or other AI?",answer:"Totally fine. Many users write a first draft with ChatGPT or Claude and then bring it to Kibbi for illustration. Your words stay exactly as you pasted them."},{question:"How long should my story be?",answer:"Stories between 500 and 20,000 characters work well â roughly half a page to about eight typed pages. Shorter stories become picture books; longer ones become longer illustrated chapter-style books."},{question:"Do I keep the copyright to my story?",answer:"Yes. You retain full copyright over your story text, and the illustrations Kibbi generates for your book are yours to print, gift, and share."},{question:"Can I print my illustrated book?",answer:"Yes. Download a print-ready PDF as soon as your book is generated, or order a paperback ($14.99) or hardcover ($24.99) printed by Kibbi and shipped to your door."}],QYe=[{image:ISe,alt:"Hand-drawn watercolor illustration of a small squirrel character in a yellow t-shirt looking at a plate of carrot slices on the grass",title:"Beautiful illustrations",description:"Stunning, hand-drawn style artwork that brings your story to life with warmth and charm."},{image:PSe,alt:"Three storybook characters â a squirrel, a bunny, and a turtle â in the same scene with consistent design across pages",title:"Consistent characters",description:"Your characters look the same on every page â same clothes, colors, and features throughout the book."},{image:LSe,alt:"High-resolution close-up illustration of a squirrel character with full cheeks, showing print-ready detail and texture",title:"Print-ready quality",description:"Every image is upscaled to high resolution, ready to print as a real book or upload to Amazon KDP."}],JYe=[{icon:qd,title:"Parents & grandparents",description:"Handwritten bedtime tales passed down through generations deserve to become real books."},{icon:Jb,title:"Teachers & educators",description:"Classroom stories, reading exercises, and educational tales â give them the illustrations they deserve."},{icon:ud,title:"Writers & storytellers",description:"Unpublished manuscripts, first drafts, or finished works â see your vision come to life."},{icon:Wb,title:"AI story creators",description:"Used ChatGPT or Claude to write a story? Paste it here and we'll handle the illustrations."}],eXe=[{icon:xr,title:"Custom cover",description:"A beautiful cover featuring your title, author name, and style-matched artwork."},{icon:Qt,title:"Page-by-page illustrations",description:"Every page gets a unique illustration that brings your words to life."},{icon:Ti,title:"Print-ready files",description:"Download high-quality PDFs or order professional paperback and hardcover editions."}],tXe=()=>{const e={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://kibbi.ai"},{"@type":"ListItem",position:2,name:"AI Illustration for Children's Books",item:"https://kibbi.ai/ai-illustration-for-childrens-books"}]},t={"@context":"https://schema.org","@type":"SoftwareApplication",name:"Kibbi â AI Illustration for Children's Books",applicationCategory:"DesignApplication",operatingSystem:"Web",description:"Paste your children's story and Kibbi creates print-ready AI illustrations with consistent characters across every page.",offers:{"@type":"Offer",price:"9.99",priceCurrency:"USD"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.9",reviewCount:"127"}},r={"@context":"https://schema.org","@type":"FAQPage",mainEntity:Fhe.map(a=>
7909({"@type":"Question",name:a.question,acceptedAnswer:{"@type":"Answer",text:a.answer}}))},n={"@context":"https://schema.org","@type":"WebSite",name:"Kibbi.ai",url:"https://kibbi.ai/ai-illustration-for-childrens-books",description:"AI illustration for children's books â paste your story and get consistent, print-ready illustrations on every page.",publisher:{"@type":"Organization",name:"Kibbi"}};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"AI Illustration for Children's Books | Paste Your Story | Kibbi.ai"}),i.jsx("meta",{name:"description",content:"Paste your children's story and Kibbi creates AI illustrations with consistent characters on every page. Print-ready PDF, perfect for Amazon KDP or printed at home."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/ai-illustration-for-childrens-books"}),i.jsx("meta",{property:"og:title",content:"AI Illustration for Children's Books â Paste Your Story"}),i.jsx("meta",{property:"og:description",content:"Paste your children's story and Kibbi creates AI illustrations with consistent characters on every page. Print-ready PDF, perfect for Amazon KDP or printed at home."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/ai-illustration-for-childrens-books"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("meta",{property:"og:image:width",content:"1200"}),i.jsx("meta",{property:"og:image:height",content:"630"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:"AI Illustration for Children's Books â Paste Your Story"}),i.jsx("meta",{name:"twitter:description",content:"Paste your children's story and Kibbi creates AI illustrations with consistent characters on every page."}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(e)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(r)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{role:"main",children:[i.jsx("section",{className:"pt-28 md:pt-32 pb-6 md:pb-8 px-6 text-center","aria-labelledby":"ai-illustration-hero-heading",children:i.jsxs("div",{className:"container mx-auto max-w-3xl",children:[i.jsx("h1",{id:"ai-illustration-hero-heading",className:"font-crimson text-[32px] md:text-[48px] font-semibold leading-tight mb-6",children:"Illustrate your children's story with AI, in minutes"}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed mb-8 max-w-2xl mx-auto",children:"Already have a children's story? Paste it in, and Kibbi creates stunning custom illustrations with consistent characters for every page. Download a print-ready PDF, ready for Amazon KDP or printed at home."}),i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-8 py-6 text-[16px]",asChild:!0,children:i.jsx("a",{href:"/signup",children:"Try it for free"})}),i.jsx("p",{className:"text-xs md:text-sm text-foreground/70 mt-3",children:"Try it for free, no credit card required"})]})}),i.jsx("section",{className:"pt-2 pb-12 md:pb-16 px-6","aria-labelledby":"ai-illustration-features-heading",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsx("h2",{id:"ai-illustration-features-heading",className:"sr-only",children:"AI illustration features"}),i.jsx("div",{className:"grid md:grid-cols-3 gap-6 md:gap-8",children:QYe.map((a,s)=>i.jsxs("article",{className:"bg-card rounded-3xl shadow-sm border border-border overflow-hidden text-center",children:[i.jsx("div",{className:"aspect-[4/3] overflow-hidden bg-background",children:i.jsx("img",{src:a.image,alt:a.alt,className:"w-full h-full object-contain",loading:"lazy"})}),i.jsxs("div",{className:"px-6 pt-5 pb-7",children:[i.jsx("h3",{className:"font-crimson text-xl md:text-2xl font-semibold mb-2",children:a.title}
7909),i.jsx("p",{className:"text-[15px] text-foreground/80 leading-relaxed",children:a.description})]})]},s))})]})}),i.jsx("section",{className:"py-20 px-6","aria-labelledby":"ai-illustration-audiences-heading",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h2",{id:"ai-illustration-audiences-heading",className:"font-crimson text-4xl md:text-5xl font-semibold mb-6",children:"AI illustration for every kind of children's book author"}),i.jsx("p",{className:"text-[18px] text-foreground/80 max-w-3xl mx-auto leading-relaxed",children:"Whether you wrote it by hand, typed it up, or used AI â your children's story deserves beautiful illustrations."})]}),i.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:JYe.map((a,s)=>{const o=a.icon;return i.jsxs("article",{className:"bg-card rounded-3xl p-6 shadow-sm border border-border",children:[i.jsx("div",{className:"mb-4",children:i.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:i.jsx(o,{className:"w-6 h-6 text-primary"})})}),i.jsx("h3",{className:"font-crimson text-xl font-semibold mb-2",children:a.title}),i.jsx("p",{className:"text-[15px] text-foreground/80 leading-relaxed",children:a.description})]},s)})})]})}),i.jsx(_v,{headline:"From your story to an illustrated book in 4 steps",subheadline:"Your words stay exactly as you wrote them â Kibbi just adds the visual layer.",steps:ZYe}),i.jsx(kv,{}),i.jsx("section",{className:"py-20 px-6 bg-muted/30","aria-labelledby":"ai-illustration-complete-book-heading",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h2",{id:"ai-illustration-complete-book-heading",className:"font-crimson text-4xl md:text-5xl font-semibold mb-6",children:"A complete illustrated book â not just a few images"}),i.jsx("p",{className:"text-[18px] text-foreground/80 max-w-3xl mx-auto leading-relaxed",children:"Everything you need to share your AI-illustrated children's book with the world."})]}),i.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:eXe.map((a,s)=>{const o=a.icon;return i.jsxs("article",{className:"bg-card rounded-3xl p-8 shadow-sm border border-border text-center",children:[i.jsx("div",{className:"mb-4 flex justify-center",children:i.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:i.jsx(o,{className:"w-8 h-8 text-primary"})})}),i.jsx("h3",{className:"font-crimson text-2xl font-semibold mb-3",children:a.title}),i.jsx("p",{className:"text-[16px] text-foreground/80 leading-relaxed",children:a.description})]},s)})})]})}),i.jsx(W0,{}),i.jsx(G0,{}),i.jsx(jv,{headline:"AI illustration for children's books â frequently asked questions",subheadline:"Everything you need to know about pasting your story and turning it into an illustrated book.",faqs:Fhe}),i.jsx("section",{className:"py-24 px-6 bg-muted/30","aria-labelledby":"ai-illustration-final-cta-heading",children:i.jsxs("div",{className:"container mx-auto max-w-3xl text-center",children:[i.jsx("h2",{id:"ai-illustration-final-cta-heading",className:"font-crimson text-4xl md:text-5xl font-semibold mb-6",children:"Your story deserves to be a real book"}),i.jsx("p",{className:"text-[18px] text-foreground/80 mb-10 leading-relaxed",children:"Paste your children's story today and see the first pages illustrated for free. No credit card required."}),i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-8 py-6 text-[16px]",asChild:!0,children:i.jsx("a",{href:"/signup",children:"Try it for free"})})]})})]}),i.jsx(br,{})]})]})},rXe=["A personalized story starring your child, up to 20 pages","Your child's characters in every book","Matched to your child's age and reading level","Illustrated cover to cover","Read on Kibbi anytime, on any device","Edit text anytime. Each purchased story includes 4 image edits, cover included, then $0.50 each","Print any story in paperback ($14.99) or hardcover ($24.99) â pay only when you want it","Preview free, pay only if you love it"],nXe=["Professionally printed paperback","7Ã10 inches, 300 DPI archival-quality pages","Order any story you've created","Shipping and handling shown before you pay","Ships worldwide","No commitment â pay only when you order"],aXe=["Premium hardcover keepsake","7Ã10 inches, 300 DPI archival-quality pages","Order any story you've created","Shipping and handling shown before you pay","Perfect for birthdays, holidays, milestones","No commitment â pay only when you order"],iXe=()=>{const{user:e,subscriptionStatus:t,subscriptionLoading:r}=er(),n=t!=null&&t.subscribed?"#":e?"/app/story-mode":"/signup",a={"@context":"https://schema.org","@type":"Product",name:"Kibbi Stories",description:`A personalized children's story matched to your child's age and reading level, ${Br} per story. Read digitally, or order paperback ($14.99) or hardcover ($24.99) prints when you want a keepsake.`,brand:{"@type":"Brand",name:"Kibbi"},offers:[{"@type":"Offer",name:"Personalized story (one-off)",price:(Gi.STORY_OVERAGE.amount/100).toFixed(2),priceCurrency:"USD",availability:"https://schema.org/InStock",url:"https://kibbi.ai/pricing",priceValidUntil:"2027-12-31"}
7909,{"@type":"Offer",name:"Paperback print (one-off)",price:"14.99",priceCurrency:"USD",availability:"https://schema.org/InStock",url:"https://kibbi.ai/pricing"},{"@type":"Offer",name:"Hardcover print (one-off)",price:"24.99",priceCurrency:"USD",availability:"https://schema.org/InStock",url:"https://kibbi.ai/pricing"}]},s={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How does the free preview work?",acceptedAnswer:{"@type":"Answer",text:"You see the cover and opening pages of your personalized book free, before paying anything. No credit card needed."}},{"@type":"Question",name:"What payment methods do you accept?",acceptedAnswer:{"@type":"Answer",text:"We accept all major credit and debit cards. Payment is processed securely through Stripe."}},{"@type":"Question",name:"How does pricing work?",acceptedAnswer:{"@type":"Answer",text:`Each personalized story is ${Br}, one time. Preview it free and pay only if you want the whole book. Printed copies are optional: paperback is $14.99 and hardcover is $24.99, plus shipping and handling, shown before you pay.`}},{"@type":"Question",name:"Do I have to order a printed copy?",acceptedAnswer:{"@type":"Answer",text:"No. Printing is optional. Order any story whenever you want a keepsake."}},{"@type":"Question",name:"How long does shipping take?",acceptedAnswer:{"@type":"Answer",text:"Print orders ship worldwide. Production takes 6-8 business days, plus carrier shipping time â typically a few days within the US and 10-20 business days internationally."}},{"@type":"Question",name:"Can I customize each book?",acceptedAnswer:{"@type":"Answer",text:"Yes â set the topic, characters, and illustration style for each story."}},{"@type":"Question",name:"Is this a subscription?",acceptedAnswer:{"@type":"Answer",text:`No. You pay ${Br} per story, only when you buy one. There is nothing to cancel.`}}]};return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:`Personalized Children's Stories for ${Br} | Kibbi`}),i.jsx("meta",{name:"description",content:`Create a personalized children's story and pay ${Br} only if you love it. Preview free. Print any story as paperback ($14.99) or hardcover ($24.99).`}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/pricing"}),i.jsx("meta",{property:"og:title",content:`Personalized Children's Stories for ${Br}`}),i.jsx("meta",{property:"og:description",content:`A story starring your child, ${Br} each. Read on Kibbi, print when you want a keepsake.`}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/pricing"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("meta",{property:"og:image:width",content:"1200"}),i.jsx("meta",{property:"og:image:height",content:"630"}),i.jsx("meta",{property:"og:image:alt",content:"Kibbi Club - Personalized children's stories"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(a)}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(s)})]}),i.jsx(lr,{}),i.jsxs("main",{className:"pt-24",children:[i.jsx("section",{className:"py-20 px-6 bg-secondary/30",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("div",{className:"text-center mb-12",children:[i.jsxs("h1",{className:"font-crimson text-4xl md:text-5xl font-semibold mb-6",children:["A story starring your child. Just ",Br,"."]}),i.jsx("p",{className:"text-[18px] text-foreground/80 max-w-2xl mx-auto",children:"A personalized children's story matched to your child's age. Preview it free, pay only if you love it, and print it whenever you want."}),!r&&(t==null?void 0:t.subscribed)&&i.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 mt-6 bg-primary/10 text-primary rounded-full border border-primary/20",children:[i.jsx(_r,{className:"h-4 w-4"}),i.jsx("span",{className:"font-medium",children:"You have an active subscription"})]})]}),i.jsxs("div",{className:"grid md:grid-cols-3 gap-6 md:gap-8 items-stretch",children:[i.jsxs("div",{"data-testid":"pricing-digital-card",className:"bg-card rounded-3xl p-6 md:px-8 md:py-10 shadow-lg border-2 border-primary/20 relative flex flex-col",children:[i.jsxs("div",{className:"mb-6",children:[i.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Personalized Story"}),i.jsxs("div",{className:"flex items-baseline gap-2 mb-1",children:[i.jsx("span",{className:"font-crimson text-4xl md:text-5xl font-bold",children:Br}
7909),i.jsx("span",{className:"text-sm text-foreground/70",children:"per story"})]}),i.jsx("p",{className:"text-sm text-foreground/70",children:"One-time. No subscription."})]}),i.jsx("ul",{className:"space-y-4 mb-8 flex-1",children:rXe.map((o,l)=>i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx(_r,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-base text-foreground/80 leading-relaxed",children:o})]},l))}),i.jsx(le,{size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full text-sm md:text-base",asChild:!0,disabled:t==null?void 0:t.subscribed,"data-testid":"pricing-digital-cta",children:i.jsx("a",{href:n,children:t!=null&&t.subscribed?"Included with your membership":"Try it for free"})})]}),i.jsxs("div",{"data-testid":"pricing-paperback-card",className:"bg-card rounded-3xl p-6 md:px-8 md:py-10 shadow-lg border-2 border-primary/20 relative flex flex-col",children:[i.jsxs("div",{className:"mb-6",children:[i.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Paperback Keepsake"}),i.jsxs("div",{className:"flex items-baseline gap-2 mb-1",children:[i.jsx("span",{className:"font-crimson text-4xl md:text-5xl font-bold",children:"$14.99"}),i.jsx("span",{className:"text-sm text-foreground/70",children:"per book"})]}),i.jsx("p",{className:"text-sm text-foreground/70",children:"Plus shipping and handling"})]}),i.jsx("ul",{className:"space-y-4 mb-8 flex-1",children:nXe.map((o,l)=>i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx(_r,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-base text-foreground/80 leading-relaxed",children:o})]},l))}),i.jsx(le,{size:"lg",variant:"outline",className:"w-full font-medium rounded-full text-sm md:text-base",asChild:!0,children:i.jsx("a",{href:n,children:"Create a story to print"})})]}),i.jsxs("div",{"data-testid":"pricing-hardcover-card",className:"bg-card rounded-3xl p-6 md:px-8 md:py-10 shadow-lg border-2 border-primary relative flex flex-col",children:[i.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-primary text-foreground text-xs font-semibold uppercase tracking-wide px-3 py-1 rounded-full",children:"Keepsake"}),i.jsxs("div",{className:"mb-6",children:[i.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Hardcover Keepsake"}),i.jsxs("div",{className:"flex items-baseline gap-2 mb-1",children:[i.jsx("span",{className:"font-crimson text-4xl md:text-5xl font-bold",children:"$24.99"}),i.jsx("span",{className:"text-sm text-foreground/70",children:"per book"})]}),i.jsx("p",{className:"text-sm text-foreground/70",children:"Plus shipping and handling"})]}),i.jsx("ul",{className:"space-y-4 mb-8 flex-1",children:aXe.map((o,l)=>i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx(_r,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-base text-foreground/80 leading-relaxed",children:o})]},l))}),i.jsx(le,{size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full text-sm md:text-base",asChild:!0,children:i.jsx("a",{href:n,children:"Create a story to print"})})]})]}),i.jsxs("p",{className:"text-center text-sm text-foreground/70 mt-8",children:["Create a story, preview it free, and buy it for ",Br,". Order any story as a paperback or hardcover keepsake whenever you want."]})]})}),i.jsx("section",{className:"py-20 px-6 bg-secondary/30",children:i.jsxs("div",{className:"container mx-auto max-w-3xl",children:[i.jsx("h2",{className:"font-crimson text-3xl md:text-4xl font-semibold text-center mb-12",children:"Frequently Asked Questions"}),i.jsxs(Sv,{type:"single",collapsible:!0,className:"w-full space-y-4",children:[i.jsxs(bi,{value:"item-1",className:"bg-card rounded-lg px-6 border border-border",children:[i.jsx(wi,{className:"text-left text-base font-medium hover:no-underline",children:"How does the free preview work?"}),i.jsx(ki,{className:"text-foreground/80",children:"You see the cover and opening pages of your personalized book free, before paying anything. No credit card needed."})]}),i.jsxs(bi,{value:"item-2",className:"bg-card rounded-lg px-6 border border-border",children:[i.jsx(wi,{className:"text-left text-base font-medium hover:no-underline",children:"How does pricing work?"}
7909),i.jsxs(ki,{className:"text-foreground/80",children:["Each personalized story is ",Br,", one time. Preview it free and pay only if you want the whole book. Printed copies are optional: paperback is $14.99 and hardcover is $24.99, plus shipping and handling, shown before you pay."]})]}),i.jsxs(bi,{value:"item-3",className:"bg-card rounded-lg px-6 border border-border",children:[i.jsx(wi,{className:"text-left text-base font-medium hover:no-underline",children:"Do I have to order a printed copy?"}),i.jsx(ki,{className:"text-foreground/80",children:"No. Printing is optional. Order any story whenever you want a keepsake."})]}),i.jsxs(bi,{value:"item-4",className:"bg-card rounded-lg px-6 border border-border",children:[i.jsx(wi,{className:"text-left text-base font-medium hover:no-underline",children:"Can I customize each book?"}),i.jsx(ki,{className:"text-foreground/80",children:"Yes! You can set the topic, characters, and illustration style for each story."})]}),i.jsxs(bi,{value:"item-5",className:"bg-card rounded-lg px-6 border border-border",children:[i.jsx(wi,{className:"text-left text-base font-medium hover:no-underline",children:"How long does shipping take?"}),i.jsx(ki,{className:"text-foreground/80",children:"Print orders ship worldwide. Production takes 6-8 business days, plus carrier shipping time â typically a few days within the US and 10-20 business days internationally."})]}),i.jsxs(bi,{value:"item-6",className:"bg-card rounded-lg px-6 border border-border",children:[i.jsx(wi,{className:"text-left text-base font-medium hover:no-underline",children:"What payment methods do you accept?"}),i.jsx(ki,{className:"text-foreground/80",children:"We accept all major credit and debit cards. Payment is processed securely through Stripe."})]}),i.jsxs(bi,{value:"item-7",className:"bg-card rounded-lg px-6 border border-border",children:[i.jsx(wi,{className:"text-left text-base font-medium hover:no-underline",children:"Is this a subscription?"}),i.jsxs(ki,{className:"text-foreground/80",children:["No. You pay ",Br," per story, only when you buy one. There is nothing to cancel."]})]})]})]})})]}),i.jsx(br,{})]})},tje="/assets/hero-reading-DzTXqLDc.jpg",sXe=()=>i.jsx("section",{className:"pt-32 pb-20 px-6 bg-gradient-to-b from-background to-secondary/20",children:i.jsx("div",{className:"container mx-auto max-w-7xl",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[i.jsxs("div",{className:"space-y-6",children:[i.jsx("h1",{className:"font-crimson text-4xl md:text-5xl font-semibold text-foreground",children:"Children stories built on early-literacy research "}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed",children:"Kibbi creates personalized children's books that match your child's age and reading level. Every story uses clear language, simple layouts, and early-literacy research so reading feels comfortable and fun â not overwhelming."}),i.jsxs("div",{className:"space-y-4",children:[i.jsx(le,{size:"lg",className:"rounded-full px-8",asChild:!0,children:i.jsx("a",{href:"/signup",children:"Try it for free"})}),i.jsx("p",{className:"text-xs md:text-sm text-muted-foreground",children:"No credit card required."})]})]}),i.jsx("div",{className:"relative",children:i.jsx("img",{src:tje,alt:"Parent and child reading together on a couch",className:"rounded-3xl shadow-2xl w-full"})})]})})}),oXe=()=>{const e=[{icon:Zb,label:"Keeps attention"},{icon:Vb,label:"Right level for your child"},{icon:lw,label:"Supports parents"}];return i.jsx("section",{className:"py-20 px-6",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("div",{className:"text-center space-y-6 mb-16",children:[i.jsx("h2",{className:"font-crimson text-3xl md:text-4xl font-semibold text-foreground",children:"Why Parents Choose Kibbi"}),i.jsxs("p",{className:"text-[18px] text-foreground/80 leading-relaxed max-w-3xl mx-auto",children:["Kids meet a lot of distractions. They see long pages, tricky words, and stories that don't match what they care about. Parents want reading to feel easier and more enjoyable â but finding the right book takes time.",i.jsx("br",{}),i.jsx("br",{}),"Kibbi makes it simple. Every story is made for your child's stage, interests, and confidence level."]})]}),i.jsx("div",{className:"grid md:grid-cols-3 gap-8 md:gap-12",children:e.map((t,r)=>{const n=t.icon;return i.jsxs("div",{className:"flex flex-col items-center text-center space-y-4",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:i.jsx(n,{className:"w-8 h-8 text-primary"})}),i.jsx("p",{className:"text-base font-medium text-foreground",children:t.label})]},r)})})]})})},lXe=()=>{const e=[{icon:vw,text:"Short, decodable words kids can sound out"},{icon:Qa,text:"Key sight words repeated for recognition"},{icon:n0,text:"One idea per sentence"}
7909,{icon:uw,text:"Predictable phrasing that builds rhythm"},{icon:Bb,text:"Lexend font makes words easier to track"},{icon:tw,text:"Pictures that support decoding, not replace it"}];return i.jsx("section",{className:"py-20 px-6 bg-secondary/20",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("div",{className:"text-center space-y-6 mb-16",children:[i.jsx("h2",{className:"font-crimson text-3xl md:text-4xl font-semibold text-foreground",children:"Readable by Design"}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed max-w-3xl mx-auto",children:"Kibbi stories use small, research-backed choices that help kids read with confidence. Each page is clear, calm, and easy to follow."})]}),i.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map((t,r)=>{const n=t.icon;return i.jsxs("div",{className:"bg-card rounded-xl p-6 border border-border shadow-sm space-y-4",children:[i.jsx(n,{className:"w-8 h-8 text-primary"}),i.jsx("p",{className:"text-base text-foreground/80",children:t.text})]},r)})})]})})},cXe=()=>{const e=[{icon:qb,title:"Ages 0â2: Early Language & Bonding",description:"Short, rhythmic lines and simple pictures help little ones enjoy sounds and early words. These stories are made for cozy read-aloud moments.",exampleText:`Mira pats the puppy. 7910 7911Soft fur. Warm nose. 7912 7913The puppy wags and wags.`},{icon:Hb,title:"Ages 3â5: First Steps into Reading",description:"Pages stay short and clear. Kids see decodable words, gentle patterns, and familiar sight words. Each page focuses on one idea with a matching illustration, so children can read with success and confidence.",exampleText:`Liam looks at the door. 7914 7915He sees the rain. 7916 7917"I can jump!" he says. 7918 7919He puts on his boots.`},{icon:xr,title:"Ages 6â9: Independent Reading Confidence",description:'Stories feel "big" but stay readable. Short paragraphs, supportive vocabulary, and clean layouts help kids follow along without getting stuck. Dialogue and action keep the story moving.',exampleText:`Maya stopped at the edge of the forest. The path ahead looked dark and twisty. 7920 7921"Are you scared?" asked Leo. 7922 7923"A little," Maya said. "But we can do this together." 7924 7925They stepped forward, side by side.`}];return i.jsx("section",{className:"py-20 px-6",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("div",{className:"text-center space-y-6 mb-16",children:[i.jsx("h2",{className:"font-crimson text-3xl md:text-4xl font-semibold text-foreground",children:"Stories Made for Each Stage"}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed max-w-3xl mx-auto",children:"Kibbi adapts vocabulary, pacing, and layout so every child reads at a level that feels just right."})]}),i.jsx("div",{className:"space-y-8",children:e.map((t,r)=>{const n=t.icon;return i.jsx("div",{className:"bg-card rounded-3xl p-8 md:p-12 shadow-sm border border-border",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:i.jsx(n,{className:"w-6 h-6 text-primary"})}),i.jsx("h3",{className:"font-crimson text-2xl font-semibold text-foreground",children:t.title}),i.jsx("p",{className:"text-base text-foreground/80 leading-relaxed",children:t.description})]}),i.jsx("div",{className:"relative bg-background rounded-2xl shadow-lg p-8 md:p-12 border-2 border-border",children:i.jsx("div",{className:"font-lexend font-normal text-lg md:text-xl leading-relaxed text-foreground whitespace-pre-line",children:t.exampleText})})]})},r)})})]})})},uXe=()=>i.jsx("section",{className:"py-20 px-6 bg-secondary/20",children:i.jsx("div",{className:"container mx-auto max-w-4xl",children:i.jsxs("div",{className:"text-center space-y-12",children:[i.jsxs("div",{className:"space-y-6",children:[i.jsx("h2",{className:"font-crimson text-3xl md:text-4xl font-semibold text-foreground",children:"Stories Kids Remember"}),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed",children:"Kibbi stories fit everyday life â friendship, small challenges, funny moments, and brave choices. The language stays simple, the feelings stay clear, and kids understand what's happening from page to page."})]}),i.jsxs("div",{className:"flex justify-center items-center gap-12",children:[i.jsx(mw,{className:"w-16 h-16 text-primary"}),i.jsx(Xi,{className:"w-16 h-16 text-primary"}),i.jsx(go,{className:"w-16 h-16 text-primary"})]})]})})}),dXe=()=>i.jsx("section",{className:"py-20 px-6 bg-secondary/20",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("div",{className:"text-center space-y-6 mb-12",children:[i.jsx("h2",{className:"font-crimson text-3xl md:text-4xl font-semibold text-foreground",children:"Not Another Screen They Get Glued To"}
7925),i.jsx("p",{className:"text-[18px] text-foreground/80 leading-relaxed max-w-3xl mx-auto",children:"We get it â kids already spend enough time on devices. That's why every Kibbi story can become a real book your child can hold, flip through, and read anywhere. No screens. No distractions. Just a story that's theirs."})]}),i.jsx("div",{className:"max-w-lg mx-auto mb-12",children:i.jsxs("div",{className:"bg-card rounded-xl p-8 border border-border space-y-4",children:[i.jsx("div",{className:"bg-primary/10 w-16 h-16 rounded-full flex items-center justify-center mb-4",children:i.jsx(hu,{className:"w-8 h-8 text-primary"})}),i.jsx("h3",{className:"font-crimson text-2xl font-semibold text-foreground",children:"Premium Printed Editions"}),i.jsx("p",{className:"text-[16px] text-foreground/80 leading-relaxed",children:"Order professionally printed paperback ($14.99) or hardcover ($24.99) editions. Shipped worldwide, with shipping and handling shown before you pay. Perfect for gifts and keepsakes."}),i.jsx(le,{variant:"outline",className:"mt-4",asChild:!0,children:i.jsx("a",{href:"/pricing",children:"See Print Options"})})]})})]})}),hXe=()=>{const e={"@context":"https://schema.org","@graph":[{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://kibbi.ai"},{"@type":"ListItem",position:2,name:"Research",item:"https://kibbi.ai/research"}]},{"@type":"Organization",name:"Kibbi",url:"https://kibbi.ai",logo:"https://kibbi.ai/favicon.png",description:"Create personalized children's books using research-backed design for early literacy"},{"@type":"WebPage",name:"Early Reading Research & Design | Kibbi",description:"Kibbi stories use research-backed design for early literacy. Learn how we adapt vocabulary, pacing, and layout to help kids read with confidence.",url:"https://kibbi.ai/research"}]};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Early Reading Research & Design | Kibbi"}),i.jsx("meta",{name:"description",content:"Kibbi stories use research-backed design for early literacy. Learn how we adapt vocabulary, pacing, and layout to help kids read with confidence."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/research"}),i.jsx("meta",{property:"og:title",content:"Early Reading Research & Design | Kibbi"}),i.jsx("meta",{property:"og:description",content:"Kibbi stories use research-backed design for early literacy. Learn how we adapt vocabulary, pacing, and layout to help kids read with confidence."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/research"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(e)})]}),i.jsx(lr,{}),i.jsxs("main",{children:[i.jsx(sXe,{}),i.jsx(oXe,{}),i.jsx(lXe,{}),i.jsx(cXe,{}),i.jsx(uXe,{}),i.jsx(dXe,{})]}),i.jsx(br,{})]})};function fXe(){const[e,t]=k.useState([]),[r,n]=k.useState([]),[a,s]=k.useState(!0),[o,l]=k.useState(0),[c]=ka(),u=c.get("category"),d=parseInt(c.get("page")||"1",10),h=10;k.useEffect(()=>{async function g(){const[b,x]=await Promise.all([JSe(u||void 0,d,h),GYe()]);t(b.posts),l(b.total),n(x),s(!1)}g()},[u,d]);const f=r.find(g=>g.slug===u),p=Math.ceil(o/h),y={"@context":"https://schema.org","@type":"CollectionPage",name:u?`${(f==null?void 0:f.name)||"Category"} | Kibbi Blog`:"Kibbi Blog",description:u?`Browse ${(f==null?void 0:f.name)||"category"} articles on Kibbi`:"Explore expert tips, creative ideas, and smart tools for storytelling at every levelâfrom nurturing early literacy to crafting full-length fiction with AI.",url:`https://kibbi.ai/blog${u?`?category=${u}`:""}`,publisher:{"@type":"Organization",name:"Kibbi"}},m=u?`${(f==null?void 0:f.name)||"Category"} | Kibbi Blog`:"Storytelling Tips & AI Writing Resources | Kibbi Blog",v=u?`https://kibbi.ai/blog?category=${u}`:"https://kibbi.ai/blog";return i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:m}),i.jsx("meta",{name:"description",content:"Explore expert tips, creative ideas, and smart tools for storytelling at every levelâfrom nurturing early literacy to crafting full-length fiction with AI."}),i.jsx("link",{rel:"canonical",href:v}),d>1&&i.jsx("meta",{name:"robots",content:"noindex, follow"}),d>1&&i.jsx("link",{rel:"prev",href:`https://kibbi.ai/blog${u?`?category=${u}`:""}${d>2?`${u?"&":"?"}page=${d-1}`:""}`}),d<p&&i.jsx("link",{rel:"next",href:`https://kibbi.ai/blog?${u?`category=${u}&`:""}page=${d+1}`}),i.jsx("meta",{property:"og:title",content:"Storytelling Tips & AI Writing Resources"}),i.jsx("meta",{property:"og:description",content:"Explore expert tips, creative ideas, and smart tools for storytelling at every levelâfrom nurturing early literacy to crafting full-length fiction with AI."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/blog"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/story-creation-interface.png"}
7925),i.jsx("meta",{property:"og:image:width",content:"1200"}),i.jsx("meta",{property:"og:image:height",content:"630"}),i.jsx("meta",{property:"og:image:alt",content:"Kibbi Blog - Storytelling tips and AI writing resources"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(y)})]}),i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 pt-32 pb-16",children:i.jsxs("div",{className:"max-w-4xl mx-auto",children:[i.jsx("h1",{className:"font-crimson text-4xl mb-4",children:"Kibbi Blog"}),i.jsx("p",{className:"text-muted-foreground mb-8",children:"Explore expert tips, creative ideas, and smart tools for storytelling at every levelâfrom nurturing early literacy to crafting full-length fiction with AI. The Kibbi.ai blog is for parents, writers, and anyone who loves stories."}),i.jsxs("div",{className:"flex flex-wrap gap-2 mb-12",children:[i.jsx(or,{to:"/blog",className:`inline-block px-3 py-1 rounded-full border-2 border-foreground transition-colors ${u?"bg-transparent hover:bg-foreground hover:text-background":"bg-foreground text-background"}`,children:"All"}),r.map(g=>i.jsx(Nk,{name:g.name,slug:g.slug,active:u===g.slug},g.id))]}),a?i.jsx("div",{className:"space-y-6",children:[1,2,3].map(g=>i.jsxs(Ie,{className:"animate-pulse",children:[i.jsxs(ze,{children:[i.jsx("div",{className:"h-6 bg-muted rounded w-3/4 mb-2"}),i.jsx("div",{className:"h-4 bg-muted rounded w-1/2"})]}),i.jsxs(qe,{children:[i.jsx("div",{className:"h-4 bg-muted rounded w-full mb-2"}),i.jsx("div",{className:"h-4 bg-muted rounded w-5/6"})]})]},g))}):e.length===0?i.jsx(Ie,{children:i.jsx(qe,{className:"pt-6",children:i.jsx("p",{className:"text-center text-muted-foreground",children:"No blog posts yet. Check back soon!"})})}):i.jsx("div",{className:"space-y-6",children:e.map(g=>i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{className:"text-2xl hover:text-primary transition-colors",children:i.jsx(or,{to:`/post/${g.slug}`,children:g.title})}),i.jsxs(Rt,{children:[g.author&&`By ${g.author}`,uH]})]}),i.jsxs(qe,{className:"space-y-3",children:[g.excerpt&&i.jsx("p",{className:"text-muted-foreground",children:g.excerpt}),g.categories&&g.categories.length>0&&i.jsx("div",{className:"flex flex-wrap gap-2",children:g.categories.map(b=>i.jsx(Nk,{name:b.name,slug:b.slug},b.id))})]}),i.jsx(ySe,{children:i.jsx(le,{asChild:!0,variant:"ghost",children:i.jsx(or,{to:`/post/${g.slug}`,children:"Read more â"})})})]},g.id))}),!a&&o>h&&i.jsxs("div",{className:"flex justify-center items-center gap-2 mt-8",children:[i.jsx(le,{variant:"outline",asChild:!0,disabled:d===1,children:i.jsx(or,{to:`/blog${u?`?category=${u}`:""}${d>2?`${u?"&":"?"}page=${d-1}`:""}`,children:"Previous"})}),i.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",d," of ",p]}),i.jsx(le,{variant:"outline",asChild:!0,disabled:d>=p,children:i.jsx(or,{to:`/blog?${u?`category=${u}&`:""}page=${d+1}`,children:"Next"})})]})]})}),i.jsx(br,{})]})}function pXe({content:e}){const[t,r]=k.useState([]);if(k.useEffect(()=>{const a=[],s=new Set,o=u=>{const d=u.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/<[^>]+>/g,"").trim();if(!d)return;const h=d.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-");s.has(h)||(s.add(h),a.push({id:h,text:d,level:2}))};e.split(` 7926`).forEach(u=>{const d=u.match(/^##\s+(.+)$/);d&&o(d[1])});const l=/<h2\b[^>]*>([\s\S]*?)<\/h2>/gi;let c;for(;(c=l.exec(e))!==null;)o(c[1]);r(a)},[e]),t.length===0)return null;const n=a=>{const s=document.getElementById(a);s&&s.scrollIntoView({behavior:"smooth",block:"start"})};return i.jsxs(Ie,{className:"mb-8 sticky top-24",children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"Table of Contents"})}),i.jsx(qe,{children:i.jsx("nav",{"aria-label":"Table of contents",children:i.jsx("ul",{className:"space-y-2",children:t.map(a=>i.jsx("li",{children:i.jsx("button",{onClick:()=>n(a.id),className:"text-sm text-muted-foreground hover:text-primary transition-colors text-left w-full",children:a.text})},a.id))})})})]})}function $he(e){const t=[],r=String(e||"");let n=r.indexOf(","),a=0,s=!1;for(;!s;){n===-1&&(n=r.length,s=!0);const o=r.slice(a,n).trim();(o||!s)&&t.push(o),a=n+1,n=r.indexOf(",",a)}return t}function rje(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const mXe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gXe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yXe={};function Bhe(e,t){return(yXe.jsx?gXe:mXe).test(e)}const vXe=/[ \t\n\f\r]/g;function xXe(e){return typeof e=="object"?e.type==="text"?zhe(e.value):!1:zhe(e)}function zhe(e){return e.replace(vXe,"")===""}class Y_{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Y_.prototype.normal={};Y_.prototype.property={};Y_.prototype.space=void 0;function nje(e,t){const r={},n={};for(const a of e)Object.assign(r,a.property),Object.assign(n,a.normal);return new Y_(r,n,t)}function Tk(e){return e.toLowerCase()}class Ss{constructor(t,r){this.attribute=r,this.property=t}}Ss.prototype.attribute="";Ss.prototype.booleanish=!1;Ss.prototype.boolean=!1;Ss.prototype.commaOrSpaceSeparated=!1;Ss.prototype.commaSeparated=!1;Ss.prototype.defined=!1;Ss.prototype.mustUseProperty=!1;Ss.prototype.number=!1;Ss.prototype.overloadedBoolean=!1;Ss.prototype.property="";Ss.prototype.spaceSeparated=!1;Ss.prototype.space=void 0;let bXe=0;const sr=K0(),sa=K0(),hte=K0(),Je=K0(),ln=K0(),Fy=K0(),Is=K0();function K0(){return 2**++bXe}const fte=Object.freeze(Object.defineProperty({__proto__:null,boolean:sr,booleanish:sa,commaOrSpaceSeparated:Is,commaSeparated:Fy,number:Je,overloadedBoolean:hte,spaceSeparated:ln},Symbol.toStringTag,{value:"Module"})),HY=Object.keys(fte);class Die extends Ss{constructor(t,r,n,a){let s=-1;if(super(t,r),Uhe(this,"space",a),typeof n=="number")for(;++s<HY.length;){const o=HY[s];Uhe(this,HY[s],(n&fte[o])===fte[o])}}}Die.prototype.defined=!0;function Uhe(e,t,r){r&&(e[t]=r)}function Ev(e){const t={},r={};for(const[n,a]of Object.entries(e.properties)){const s=new Die(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),t[n]=s,r[Tk(n)]=n,r[Tk(s.attribute)]=n}return new Y_(t,r,e.space)}const aje=Ev({properties:{ariaActiveDescendant:null,ariaAtomic:sa,ariaAutoComplete:null,ariaBusy:sa,ariaChecked:sa,ariaColCount:Je,ariaColIndex:Je,ariaColSpan:Je,ariaControl
vendor: 5,442 bytes, line 7926
7926s:ln,ariaCurrent:null,ariaDescribedBy:ln,ariaDetails:null,ariaDisabled:sa,ariaDropEffect:ln,ariaErrorMessage:null,ariaExpanded:sa,ariaFlowTo:ln,ariaGrabbed:sa,ariaHasPopup:null,ariaHidden:sa,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ln,ariaLevel:Je,ariaLive:null,ariaModal:sa,ariaMultiLine:sa,ariaMultiSelectable:sa,ariaOrientation:null,ariaOwns:ln,ariaPlaceholder:null,ariaPosInSet:Je,ariaPressed:sa,ariaReadOnly:sa,ariaRelevant:null,ariaRequired:sa,ariaRoleDescription:ln,ariaRowCount:Je,ariaRowIndex:Je,ariaRowSpan:Je,ariaSelected:sa,ariaSetSize:Je,ariaSort:null,ariaValueMax:Je,ariaValueMin:Je,ariaValueNow:Je,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ije(e,t){return t in e?e[t]:t}function sje(e,t){return ije(e,t.toLowerCase())}const wXe=Ev({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fy,acceptCharset:ln,accessKey:ln,action:null,allow:null,allowFullScreen:sr,allowPaymentRequest:sr,allowUserMedia:sr,alt:null,as:null,async:sr,autoCapitalize:null,autoComplete:ln,autoFocus:sr,autoPlay:sr,blocking:ln,capture:null,charSet:null,checked:sr,cite:null,className:ln,cols:Je,colSpan:null,content:null,contentEditable:sa,controls:sr,controlsList:ln,coords:Je|Fy,crossOrigin:null,data:null,dateTime:null,decoding:null,default:sr,defer:sr,dir:null,dirName:null,disabled:sr,download:hte,draggable:sa,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:sr,formTarget:null,headers:ln,height:Je,hidden:hte,high:Je,href:null,hrefLang:null,htmlFor:ln,httpEquiv:ln,id:null,imageSizes:null,imageSrcSet:null,inert:sr,inputMode:null,integrity:null,is:null,isMap:sr,itemId:null,itemProp:ln,itemRef:ln,itemScope:sr,itemType:ln,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:sr,low:Je,manifest:null,max:null,maxLength:Je,media:null,method:null,min:null,minLength:Je,multiple:sr,muted:sr,name:null,nonce:null,noModule:sr,noValidate:sr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:sr,optimum:Je,pattern:null,ping:ln,placeholder:null,playsInline:sr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:sr,referrerPolicy:null,rel:ln,required:sr,reversed:sr,rows:Je,rowSpan:Je,sandbox:ln,scope:null,scoped:sr,seamless:sr,selected:sr,shadowRootClonable:sr,shadowRootDelegatesFocus:sr,shadowRootMode:null,shape:null,size:Je,sizes:null,slot:null,span:Je,spellCheck:sa,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Je,step:null,style:null,tabIndex:Je,target:null,title:null,translate:null,type:null,typeMustMatch:sr,useMap:null,value:sa,width:Je,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ln,axis:null,background:null,bgColor:null,border:Je,borderColor:null,bottomMargin:Je,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:sr,declare:sr,event:null,face:null,frame:null,frameBorder:null,hSpace:Je,leftMargin:Je,link:null,longDesc:null,lowSrc:null,marginHeight:Je,marginWidth:Je,noResize:sr,noHref:sr,noShade:sr,noWrap:sr,object:null,profile:null,prompt:null,rev:null,rightMargin:Je,rules:null,scheme:null,scrolling:sa,standby:null,summary:null,text:null,topMargin:Je,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Je,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:sr,disableRemotePlayback:sr,prefix:null,property:null,results:Je,security:null,unselectable:null},space:"html",transform:sje}),kXe=Ev({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
7926dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Is,accentHeight:Je,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Je,amplitude:Je,arabicForm:null,ascent:Je,attributeName:null,attributeType:null,azimuth:Je,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Je,by:null,calcMode:null,capHeight:Je,className:ln,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
7926dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Je,diffuseConstant:Je,direction:null,display:null,dur:null,divisor:Je,dominantBaseline:null,download:sr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Je,enableBackground:null,end:null,event:null,exponent:Je,externalResourcesRequired:null,fill:null,fillOpacity:Je,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fy,g2:Fy,glyphName:Fy,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Je,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Je,horizOriginX:Je,horizOriginY:Je,id:null,ideographic:Je,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Je,k:Je,k1:Je,k2:Je,k3:Je,k4:Je,kernelMatrix:Is,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Je,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Je,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Je,overlineThickness:Je,paintOrder:null,panose1:null,path:null,pathLength:Je,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ln,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Je,pointsAtY:Je,pointsAtZ:Je,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Is,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Is,rev:Is,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Is,requiredFeatures:Is,requiredFonts:Is,requiredFormats:Is,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Je,specularExponent:Je,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Je,strikethroughThickness:Je,string:null,stroke:null,strokeDashArray:Is,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Je,strokeOpacity:Je,strokeWidth:null,style:null,surfaceScale:Je,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Is,tabIndex:Je,tableValues:null,target:null,targetX:Je,targetY:Je,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Is,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Je,underlineThickness:Je,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Je,values:null,vAlphabetic:Je,vMathematical:Je,vectorEffect:null,vHanging:Je,vIdeographic:Je,ver
vendor: 4,432 bytes, lines 7926-7927
7926sion:null,vertAdvY:Je,vertOriginX:Je,vertOriginY:Je,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Je,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ije}),oje=Ev({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),lje=Ev({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sje}),cje=Ev({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_Xe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},SXe=/[A-Z]/g,qhe=/-[a-z]/g,jXe=/^data[-\w.:]+$/i;function RW(e,t){const r=Tk(t);let n=t,a=Ss;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&jXe.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(qhe,CXe);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!qhe.test(s)){let o=s.replace(SXe,EXe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Die}return new a(n,t)}function EXe(e){return"-"+e.toLowerCase()}function CXe(e){return e.charAt(1).toUpperCase()}const X_=nje([aje,wXe,oje,lje,cje],"html"),vh=nje([aje,kXe,oje,lje,cje],"svg");function Hhe(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function uje(e){return e.join(" ").trim()}var Fie={},Vhe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NXe=/\n/g,TXe=/^\s*/,AXe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,MXe=/^:\s*/,IXe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,PXe=/^[;\s]*/,LXe=/^\s+|\s+$/g,OXe=` 7927`,Whe="/",Ghe="*",T1="",RXe="comment",DXe="declaration",FXe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function a(y){var m=y.match(NXe);m&&(r+=m.length);var v=y.lastIndexOf(OXe);n=~v?y.length-v:n+y.length}function s(){var y={line:r,column:n};return function(m){return m.position=new o(y),u(),m}}function o(y){this.start=y,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function l(y){var m=new Error(t.source+":"+r+":"+n+": "+y);if(m.reason=y,m.filename=t.source,m.line=r,m.column=n,m.source=e,!t.silent)throw m}function c(y){var m=y.exec(e);if(m){var v=m[0];return a(v),e=e.slice(v.length),m}}function u(){c(TXe)}function d(y){var m;for(y=y||[];m=h();)m!==!1&&y.push(m);return y}function h(){var y=s();if(!(Whe!=e.charAt(0)||Ghe!=e.charAt(1))){for(var m=2;T1!=e.charAt(m)&&(Ghe!=e.charAt(m)||Whe!=e.charAt(m+1));)++m;if(m+=2,T1===e.charAt(m-1))return l("End of comment missing");var v=e.slice(2,m-2);return n+=2,a(v),e=e.slice(m),n+=2,y({type:RXe,comment:v})}}function f(){var y=s(),m=c(AXe);if(m){if(h(),!c(MXe))return l("property missing ':'");var v=c(IXe),g=y({type:DXe,property:Khe(m[0].replace(Vhe,T1)),value:v?Khe(v[0].replace(Vhe,T1)):T1});return c(PXe),g}}function p(){var y=[];d(y);for(var m;m=f();)m!==!1&&(y.push(m),d(y));return y}return u(),p()};function Khe(e){return e?e.replace(LXe,T1):T1}var $Xe=fa&&fa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fie,"__esModule",{value:!0});Fie.default=zXe;var BXe=$Xe(FXe);function zXe(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,BXe.default)(e),a=typeof t=="function";return n.forEach(function(s){if(s.type==="declaration"){var o=s.property,l=s.value;a?t(o,l,s):l&&(r=r||{},r[o]=l)}}),r}var DW={};Object.defineProperty(DW,"__esModule",{value:!0});DW.camelCase=void 0;var UXe=/^--[a-zA-Z0-9_-]+$/,qXe=/-([a-z])/g,HXe=/^[^-]+$/,VXe=/^-(webkit|moz|ms|o|khtml)-/,WXe=/^-(ms)-/,GXe=function(e){return!e||HXe.test(e)||UXe.test(e)},KXe=function(e,t){return t.toUpperCase()},Yhe=function(e,t){return"".concat(t,"-")},YXe=function(e,t){return t===void 0&&(t={}),GXe(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(WXe,Yhe):e=e.replace(VXe,Yhe),e.replace(qXe,KXe))};DW.camelCase=YXe;
vendor: 2,879 bytes, line 7927
7927var XXe=fa&&fa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ZXe=XXe(Fie),QXe=DW;function pte(e,t){var r={};return!e||typeof e!="string"||(0,ZXe.default)(e,function(n,a){n&&a&&(r[(0,QXe.camelCase)(n,t)]=a)}),r}pte.default=pte;var JXe=pte;const eZe=jr(JXe),FW=dje("end"),wc=dje("start");function dje(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function tZe(e){const t=wc(e),r=FW(e);if(t&&r)return{start:t,end:r}}function Nw(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Xhe(e.position):"start"in e||"end"in e?Xhe(e):"line"in e||"column"in e?mte(e):""}function mte(e){return Zhe(e&&e.line)+":"+Zhe(e&&e.column)}function Xhe(e){return mte(e&&e.start)+"-"+mte(e&&e.end)}function Zhe(e){return e&&typeof e=="number"?e:1}class Mi extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let a="",s={},o=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?a=t:!s.cause&&t&&(o=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof n=="string"){const c=n.indexOf(":");c===-1?s.ruleId=n:(s.source=n.slice(0,c),s.ruleId=n.slice(c+1))}if(!s.place&&s.ancestors&&s.ancestors){const c=s.ancestors[s.ancestors.length-1];c&&(s.place=c.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=l?l.line:void 0,this.name=Nw(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Mi.prototype.file="";Mi.prototype.name="";Mi.prototype.reason="";Mi.prototype.message="";Mi.prototype.stack="";Mi.prototype.column=void 0;Mi.prototype.line=void 0;Mi.prototype.ancestors=void 0;Mi.prototype.cause=void 0;Mi.prototype.fatal=void 0;Mi.prototype.place=void 0;Mi.prototype.ruleId=void 0;Mi.prototype.source=void 0;const $ie={}.hasOwnProperty,rZe=new Map,nZe=/[A-Z]/g,aZe=new Set(["table","tbody","thead","tfoot","tr"]),iZe=new Set(["td","th"]),hje="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sZe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=pZe(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 7,577 bytes, line 7927
7927if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=fZe(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?vh:X_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=fje(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function fje(e,t,r){if(t.type==="element")return oZe(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return lZe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return uZe(e,t,r);if(t.type==="mdxjsEsm")return cZe(e,t);if(t.type==="root")return dZe(e,t,r);if(t.type==="text")return hZe(e,t)}function oZe(e,t,r){const n=e.schema;let a=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=vh,e.schema=a),e.ancestors.push(t);const s=mje(e,t.tagName,!1),o=mZe(e,t);let l=zie(e,t);return aZe.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!xXe(c):!0})),pje(e,o,s,t),Bie(o,l),e.ancestors.pop(),e.schema=n,e.create(t,s,o,r)}function lZe(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ak(e,t.position)}function cZe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ak(e,t.position)}function uZe(e,t,r){const n=e.schema;let a=n;t.name==="svg"&&n.space==="html"&&(a=vh,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:mje(e,t.name,!0),o=gZe(e,t),l=zie(e,t);return pje(e,o,s,t),Bie(o,l),e.ancestors.pop(),e.schema=n,e.create(t,s,o,r)}function dZe(e,t,r){const n={};return Bie(n,zie(e,t)),e.create(t,e.Fragment,n,r)}function hZe(e,t){return t.value}function pje(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function Bie(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function fZe(e,t,r){return n;function n(a,s,o,l){const u=Array.isArray(o.children)?r:t;return l?u(s,o,l):u(s,o)}}function pZe(e,t){return r;function r(n,a,s,o){const l=Array.isArray(s.children),c=wc(n);return t(a,s,o,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function mZe(e,t){const r={};let n,a;for(a in t.properties)if(a!=="children"&&$ie.call(t.properties,a)){const s=yZe(e,a,t.properties[a]);if(s){const[o,l]=s;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&iZe.has(t.tagName)?n=l:r[o]=l}}if(n){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function gZe(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const s=n.data.estree.body[0];s.type;const o=s.expression;o.type;const l=o.properties[0];l.type,Object.assign(r,e.evaluater.evaluateExpression(l.argument))}else Ak(e,t.position);else{const a=n.name;let s;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const l=n.value.data.estree.body[0];l.type,s=e.evaluater.evaluateExpression(l.expression)}else Ak(e,t.position);else s=n.value===null?!0:n.value;r[a]=s}return r}function zie(e,t){const r=[];let n=-1;const a=e.passKeys?new Map:rZe;for(;++n<t.children.length;){const s=t.children[n];let o;if(e.passKeys){const c=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(c){const u=a.get(c)||0;o=c+"-"+u,a.set(c,u+1)}}const l=fje(e,s,o);l!==void 0&&r.push(l)}return r}function yZe(e,t,r){const n=RW(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?rje(r):uje(r)),n.property==="style"){let a=typeof r=="object"?r:vZe(e,String(r));return e.stylePropertyNameCase==="css"&&(a=xZe(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&n.space?_Xe[n.property]||n.property:n.attribute,r]}}function vZe(e,t){try{return eZe(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,a=new Mi("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=hje+"#cannot-parse-style-attribute",a}}function mje(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,o;for(;++s<a.length;){const l=Bhe(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(s&&l.type==="Literal"),optional:!1}:l}n=o}else n=Bhe(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const a=n.value;return $ie.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(n);Ak(e)}function Ak(e,t){const r=new Mi("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=hje+"#cannot-handle-mdx-estrees-without-createevaluater",r}function xZe(e){const t={};let r;for(r in e)$ie.call(e,r)&&(t[bZe(r)]=e[r]);return t}function bZe(e){let t=e.replace(nZe,wZe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function wZe(e){return"-"+e.toLowerCase()}const VY={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},kZe={};function Uie(e,t){const r=kZe,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return gje(e,n,a)}function gje(e,t,r){if(_Ze(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qhe(e.children,t,r)}return Array.isArray(e)?Qhe(e,t,r):""}function Qhe(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=gje(e[a],t,r);return n.join("")}function _Ze(e){return!!(e&&typeof e=="object")}const Jhe=document.createElement("i");function qie(e){const t="&"+e+";";Jhe.innerHTML=t;const r=Jhe.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Gs(e,t,r,n){const a=e.length;let s=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);s<n.length;)o=n.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function uo(e,t){return e.length>0?(Gs(e,e.length,0,t),e):t}const efe={}.hasOwnProperty;function yje(e){const t={};let r=-1;for(;++r<e.length;)SZe(t,e[r]);return t}function SZe(e,t){let r;for(r in t){const a=(efe.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let o;if(s)for(o in s){efe.call(a,o)||(a[o]=[]);const l=s[o];jZe(a[o],Array.isArray(l)?l:l?[l]:[])}}}function jZe(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Gs(e,0,0,n)}function vje(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function bl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wi=xh(/[A-Za-z]/),Ni=xh(/[\dA-Za-z]/),EZe=xh(/[#-'*+\--9=?A-Z^-~]/);function dH(e){return e!==null&&(e<32||e===127)}
vendor: 9,743 bytes, line 7927
7927const gte=xh(/\d/),CZe=xh(/[\dA-Fa-f]/),NZe=xh(/[!-/:-@[-`{-~]/);function Ut(e){return e!==null&&e<-2}function sn(e){return e!==null&&(e<0||e===32)}function mr(e){return e===-2||e===-1||e===32}const $W=xh(new RegExp("\\p{P}|\\p{S}","u")),N0=xh(/\s/);function xh(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Cv(e){const t=[];let r=-1,n=0,a=0;for(;++r<e.length;){const s=e.charCodeAt(r);let o="";if(s===37&&Ni(e.charCodeAt(r+1))&&Ni(e.charCodeAt(r+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const l=e.charCodeAt(r+1);s<56320&&l>56319&&l<57344?(o=String.fromCharCode(s,l),a=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+a+1,o=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}function Sr(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(c){return mr(c)?(e.enter(r),l(c)):t(c)}function l(c){return mr(c)&&s++<a?(e.consume(c),l):(e.exit(r),t(c))}}const TZe={tokenize:AZe};function AZe(e){const t=e.attempt(this.parser.constructs.contentInitial,n,a);let r;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Sr(e,t,"linePrefix")}function a(l){return e.enter("paragraph"),s(l)}function s(l){const c=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=c),r=c,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Ut(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),o)}}const MZe={tokenize:IZe},tfe={tokenize:PZe};function IZe(e){const t=this,r=[];let n=0,a,s,o;return l;function l(x){if(n<r.length){const _=r[n];return t.containerState=_[1],e.attempt(_[0].continuation,c,u)(x)}return u(x)}function c(x){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const _=t.events.length;let w=_,j;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){j=t.events[w][1].end;break}g(n);let E=_;for(;E<t.events.length;)t.events[E][1].end={...j},E++;return Gs(t.events,w+1,0,t.events.slice(_)),t.events.length=E,u(x)}return l(x)}function u(x){if(n===r.length){if(!a)return f(x);if(a.currentConstruct&&a.currentConstruct.concrete)return y(x);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(tfe,d,h)(x)}function d(x){return a&&b(),g(n),f(x)}function h(x){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,y(x)}function f(x){return t.containerState={},e.attempt(tfe,p,y)(x)}function p(x){return n++,r.push([t.currentConstruct,t.containerState]),f(x)}function y(x){if(x===null){a&&b(),g(0),e.consume(x);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),m(x)}function m(x){if(x===null){v(e.exit("chunkFlow"),!0),g(0),e.consume(x);return}return Ut(x)?(e.consume(x),v(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(x),m)}function v(x,_){const w=t.sliceStream(x);if(_&&w.push(null),x.previous=s,s&&(s.next=x),s=x,a.defineSkip(x.start),a.write(w),t.parser.lazy[x.start.line]){let j=a.events.length;for(;j--;)if(a.events[j][1].start.offset<o&&(!a.events[j][1].end||a.events[j][1].end.offset>o))return;const E=t.events.length;let C=E,N,A;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(N){A=t.events[C][1].end;break}N=!0}for(g(n),j=E;j<t.events.length;)t.events[j][1].end={...A},j++;Gs(t.events,C+1,0,t.events.slice(E)),t.events.length=j}}function g(x){let _=r.length;for(;_-- >x;){const w=r[_];t.containerState=w[1],w[0].exit.call(t,e)}r.length=x}function b(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function PZe(e,t,r){return Sr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function b2(e){if(e===null||sn(e)||N0(e))return 1;if($W(e))return 2}function BW(e,t,r){const n=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!n.includes(s)&&(t=s(t,r),n.push(s))}return t}const yte={name:"attention",resolveAll:LZe,tokenize:OZe};function LZe(e,t){let r=-1,n,a,s,o,l,c,u,d;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;c=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const h={...e[n][1].end},f={...e[r][1].start};rfe(h,-c),rfe(f,c),o={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:f},s={type:c>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},a={type:c>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[n][1].end={...o.start},e[r][1].start={...l.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=uo(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=uo(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",s,t]]),u=uo(u,BW(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=uo(u,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(d=2,u=uo(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,Gs(e,n-1,r-n+3,u),r=n+u.length-d-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function OZe(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=b2(n);let s;return o;function o(c){return s=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===s)return e.consume(c),l;const u=e.exit("attentionSequence"),d=b2(c),h=!d||d===2&&a||r.includes(c),f=!a||a===2&&d||r.includes(n);return u._open=!!(s===42?h:h&&(a||!f)),u._close=!!(s===42?f:f&&(d||!h)),t(c)}}function rfe(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const RZe={name:"autolink",tokenize:DZe};function DZe(e,t,r){let n=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(p){return Wi(p)?(e.consume(p),o):p===64?r(p):u(p)}function o(p){return p===43||p===45||p===46||Ni(p)?(n=1,l(p)):u(p)}function l(p){return p===58?(e.consume(p),n=0,c):(p===43||p===45||p===46||Ni(p))&&n++<32?(e.consume(p),l):(n=0,u(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||dH(p)?r(p):(e.consume(p),c)}function u(p){return p===64?(e.consume(p),d):EZe(p)?(e.consume(p),u):r(p)}function d(p){return Ni(p)?h(p):r(p)}function h(p){return p===46?(e.consume(p),n=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Ni(p))&&n++<63){const y=p===45?f:h;return e.consume(p),y}return r(p)}}const Z_={partial:!0,tokenize:FZe};function FZe(e,t,r){return n;function n(s){return mr(s)?Sr(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||Ut(s)?t(s):r(s)}}const xje={continuation:{tokenize:BZe},exit:zZe,name:"blockQuote",tokenize:$Ze};function $Ze(e,t,r){const n=this;return a;function a(o){if(o===62){const l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return r(o)}function s(o){return mr(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function BZe(e,t,r){const n=this;return a;function a(o){return mr(o)?Sr(e,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(xje,t,r)(o)}}function zZe(e){e.exit("blockQuote")}const bje={name:"characterEscape",tokenize:UZe};function UZe(e,t,r){return n;function n(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return NZe(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const wje={name:"characterReference",tokenize:qZe};function qZe(e,t,r){const n=this;let a=0,s,o;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,o=Ni,d(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=CZe,d):(e.enter("characterReferenceValue"),s=7,o=gte,d(h))}function d(h){if(h===59&&a){const f=e.exit("characterReferenceValue");return o===Ni&&!qie(n.sliceSerialize(f))?r(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&a++<s?(e.consume(h),d):r(h)}}const nfe={partial:!0,tokenize:VZe},afe={concrete:!0,name:"codeFenced",tokenize:HZe};function HZe(e,t,r){const n=this,a={partial:!0,tokenize:w};let s=0,o=0,l;return c;function c(j){return u(j)}function u(j){const E=n.events[n.events.length-1];return s=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,l=j,e.enter("co
7927deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(j)}function d(j){return j===l?(o++,e.consume(j),d):o<3?r(j):(e.exit("codeFencedFenceSequence"),mr(j)?Sr(e,h,"whitespace")(j):h(j))}function h(j){return j===null||Ut(j)?(e.exit("codeFencedFence"),n.interrupt?t(j):e.check(nfe,m,_)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(j))}function f(j){return j===null||Ut(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(j)):mr(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Sr(e,p,"whitespace")(j)):j===96&&j===l?r(j):(e.consume(j),f)}function p(j){return j===null||Ut(j)?h(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(j))}function y(j){return j===null||Ut(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(j)):j===96&&j===l?r(j):(e.consume(j),y)}function m(j){return e.attempt(a,_,v)(j)}function v(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),g}function g(j){return s>0&&mr(j)?Sr(e,b,"linePrefix",s+1)(j):b(j)}function b(j){return j===null||Ut(j)?e.check(nfe,m,_)(j):(e.enter("codeFlowValue"),x(j))}function x(j){return j===null||Ut(j)?(e.exit("codeFlowValue"),b(j)):(e.consume(j),x)}function _(j){return e.exit("codeFenced"),t(j)}function w(j,E,C){let N=0;return A;function A(z){return j.enter("lineEnding"),j.consume(z),j.exit("lineEnding"),$}function $(z){return j.enter("codeFencedFence"),mr(z)?Sr(j,T,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):T(z)}function T(z){return z===l?(j.enter("codeFencedFenceSequence"),F(z)):C(z)}function F(z){return z===l?(N++,j.consume(z),F):N>=o?(j.exit("codeFencedFenceSequence"),mr(z)?Sr(j,M,"whitespace")(z):M(z)):C(z)}function M(z){return z===null||Ut(z)?(j.exit("codeFencedFence"),E(z)):C(z)}}}function VZe(e,t,r){const n=this;return a;function a(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const WY={name:"codeIndented",tokenize:GZe},WZe={partial:!0,tokenize:KZe};function GZe(e,t,r){const n=this;return a;function a(u){return e.enter("codeIndented"),Sr(e,s,"linePrefix",5)(u)}function s(u){const d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?c(u):Ut(u)?e.attempt(WZe,o,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||Ut(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),t(u)}}function KZe(e,t,r){const n=this;return a;function a(o){return n.parser.lazy[n.now().line]?r(o):Ut(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):Sr(e,s,"linePrefix",5)(o)}function s(o){const l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):Ut(o)?a(o):r(o)}}const YZe={name:"codeText",previous:ZZe,resolve:XZe,tokenize:QZe};function XZe(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function ZZe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function QZe(e,t,r){let n=0,a,s;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),n++,l):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(s=e.enter("codeTextSequence"),a=0,d(h)):Ut(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||Ut(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),u)}function d(h){return h===96?(e.consume(h),a++,d):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",u(h))}}class JZe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const a=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&Lx(this.left,n),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Lx(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Lx(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Lx(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Lx(this.left,r.reverse())}}}function Lx(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function kje(e){const t={};let r=-1,n,a,s,o,l,c,u;const d=new JZe(e);for(;++r<d.length;){for(;r in t;)r=t[r];if(n=d.get(r),r&&n[1].type==="chunkFlow"&&d.get(r-1)[1].type==="listItemPrefix"&&(c=n[1]._tokenizer.events,s=0,s<c.length&&c[s][1].type==="lineEndingBlank"&&(s+=2),s<c.length&&c[s][1].type==="content"))for(;++s<c.length&&c[s][1].type!=="content";)c[s][1].type==="chunkText"&&(c[s][1]._isInFirstContentOfListItem=!0,s++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,eQe(d,r)),r=t[r],u=!0);else if(n[1]._container){for(s=r,a=void 0;s--;)if(o=d.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(n[1].end={...d.get(a)[1].start},l=d.slice(a,r),l.unshift(n),d.splice(a,r-a+1,l))}}return Gs(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function eQe(e,t){const r=e.get(t)[1],n=e.get(t)[2];let a=t-1;const s=[];let o=r._tokenizer;o||(o=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,c=[],u={};let d,h,f=-1,p=r,y=0,m=0;const v=[m];for(;p;){for(;e.get(++a)[1]!==p;);s.push(a),p._tokenizer||(d=n.sliceStream(p),p.next||d.push(null),h&&o.defineSki
vendor: 18,662 bytes, line 7927
7927p(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=r;++f<l.length;)l[f][0]==="exit"&&l[f-1][0]==="enter"&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(m=f+1,v.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),f=v.length;f--;){const g=l.slice(v[f],v[f+1]),b=s.pop();c.push([b,b+g.length-1]),e.splice(b,2,g)}for(c.reverse(),f=-1;++f<c.length;)u[y+c[f][0]]=y+c[f][1],y+=c[f][1]-c[f][0]-1;return u}const tQe={resolve:nQe,tokenize:aQe},rQe={partial:!0,tokenize:iQe};function nQe(e){return kje(e),e}function aQe(e,t){let r;return n;function n(l){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(l)}function a(l){return l===null?s(l):Ut(l)?e.check(rQe,o,s)(l):(e.consume(l),a)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function iQe(e,t,r){const n=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Sr(e,s,"linePrefix")}function s(o){if(o===null||Ut(o))return r(o);const l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function _je(e,t,r,n,a,s,o,l,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return h;function h(g){return g===60?(e.enter(n),e.enter(a),e.enter(s),e.consume(g),e.exit(s),f):g===null||g===32||g===41||dH(g)?r(g):(e.enter(n),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(g))}function f(g){return g===62?(e.enter(s),e.consume(g),e.exit(s),e.exit(a),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(l),f(g)):g===null||g===60||Ut(g)?r(g):(e.consume(g),g===92?y:p)}function y(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function m(g){return!d&&(g===null||g===41||sn(g))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(n),t(g)):d<u&&g===40?(e.consume(g),d++,m):g===41?(e.consume(g),d--,m):g===null||g===32||g===40||dH(g)?r(g):(e.consume(g),g===92?v:m)}function v(g){return g===40||g===41||g===92?(e.consume(g),m):m(g)}}function Sje(e,t,r,n,a,s){const o=this;let l=0,c;return u;function u(p){return e.enter(n),e.enter(a),e.consume(p),e.exit(a),e.enter(s),d}function d(p){return l>999||p===null||p===91||p===93&&!c||p===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?r(p):p===93?(e.exit(s),e.enter(a),e.consume(p),e.exit(a),e.exit(n),t):Ut(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||Ut(p)||l++>999?(e.exit("chunkString"),d(p)):(e.consume(p),c||(c=!mr(p)),p===92?f:h)}function f(p){return p===91||p===92||p===93?(e.consume(p),l++,h):h(p)}}function jje(e,t,r,n,a,s){let o;return l;function l(f){return f===34||f===39||f===40?(e.enter(n),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,c):r(f)}function c(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(n),t):(e.enter(s),u(f))}function u(f){return f===o?(e.exit(s),c(o)):f===null?r(f):Ut(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Sr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===o||f===null||Ut(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?h:d)}function h(f){return f===o||f===92?(e.consume(f),d):d(f)}}function Tw(e,t){let r;return n;function n(a){return Ut(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):mr(a)?Sr(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const sQe={name:"definition",tokenize:lQe},oQe={partial:!0,tokenize:cQe};function lQe(e,t,r){const n=this;let a;return s;function s(p){return e.enter("definition"),o(p)}function o(p){return Sje.call(n,e,l,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return a=bl(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):r(p)}function c(p){return sn(p)?Tw(e,u)(p):u(p)}function u(p){return _je(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(oQe,h,h)(p)}function h(p){return mr(p)?Sr(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Ut(p)?(e.exit("definition"),n.parser.defined.push(a),t(p)):r(p)}}function cQe(e,t,r){return n;function n(l){return sn(l)?Tw(e,a)(l):r(l)}function a(l){return jje(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return mr(l)?Sr(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Ut(l)?t(l):r(l)}}const uQe={name:"hardBreakEscape",tokenize:dQe};function dQe(e,t,r){return n;function n(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return Ut(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const hQe={name:"headingAtx",resolve:fQe,tokenize:pQe};function fQe(e,t){let r=e.length-2,n=3,a,s;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(a={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},s={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Gs(e,n,r-n+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]])),e}function pQe(e,t,r){let n=0;return a;function a(d){return e.enter("atxHeading"),s(d)}function s(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&n++<6?(e.consume(d),o):d===null||sn(d)?(e.exit("atxHeadingSequence"),l(d)):r(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||Ut(d)?(e.exit("atxHeading"),t(d)):mr(d)?Sr(e,l,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||sn(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),u)}}const mQe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ife=["pre","script","style","textarea"],gQe={concrete:!0,name:"htmlFlow",resolveTo:xQe,tokenize:bQe},yQe={partial:!0,tokenize:kQe},vQe={partial:!0,tokenize:wQe};function xQe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function bQe(e,t,r){const n=this;let a,s,o,l,c;return u;function u(R){return d(R)}function d(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),h}function h(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),s=!0,m):R===63?(e.consume(R),a=3,n.interrupt?t:V):Wi(R)?(e.consume(R),o=String.fromCharCode(R),v):r(R)}function f(R){return R===45?(e.consume(R),a=2,p):R===91?(e.consume(R),a=5,l=0,y):Wi(R)?(e.consume(R),a=4,n.interrupt?t:V):r(R)}function p(R){return R===45?(e.consume(R),n.interrupt?t:V):r(R)}function y(R){const H="CDATA[";return R===H.charCodeAt(l++)?(e.consume(R),l===H.length?n.interrupt?t:T:y):r(R)}function m(R){return Wi(R)?(e.consume(R),o=String.fromCharCode(R),v):r(R)}function v(R){if(R===null||R===47||R===62||sn(R)){const H=R===47,re=o.toLowerCase();return!H&&!s&&ife.includes(re)?(a=1,n.interrupt?t(R):T(R)):mQe.includes(o.toLowerCase())?(a=6,H?(e.consume(R),g):n.interrupt?t(R):T(R)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(R):s?b(R):x(R))}return R===45||Ni(R)?(e.consume(R),o+=String.fromCharCode(R),v):r(R)}function g(R){return R===62?(e.consume(R),n.interrupt?t:T):r(R)}function b(R){return mr(R)?(e.consume(R),b):A(R)}function x(R){return R===47?(e.consume(R),A):R===58||R===95||Wi(R)?(e.consume(R),_):mr(R)?(e.consume(R),x):A(R)}function _(R){return R===45||R===46||R===58||R===95||Ni(R)?(e.consume(R),_):w(R)}function w(R){return R===61?(e.consume(R),j):mr(R)?(e.consume(R),w):x(R)}function j(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),c=R,E):mr(R)?(e.consume(R),j):C(R)}function E(R){return R===c?(e.consume(R),c=null,N):R===null||Ut(R)?r(R):(e.consume(R),E)}function C(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||sn(R)?w(R):(e.consume(R),C)}function N(R){return R===47||R===62||mr(R)?x(R):r(R)}function A(R){return R===62?(e.consume(R),$):r(R)}function $(R){return R===null||Ut(R)?T(R):mr(R)?(e.consume(R),$):r(R)}function T(R){return R===45&&a===2?(e.consume(R),Y):R===60&&a===1?(e.consume(R),W):R===62&&a===4?(e.consume(R),ne):R===63&&a===3?(e.consume(R),V):R===93&&a===5?(e.consume(R),Z):Ut(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(yQe,P,F)(R)):R===null||Ut(R)?(e.exit("htmlFlowData"),F(R)):(e.consume(R),T)}function F(R){return e.check(vQe,M,P)(R)}function M(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),z}function z(R){return R===null||Ut(R)?F(R):(e.enter("htmlFlowData"),T(R))}function Y(R){return R===45?(e.consume(R),V):T(R)}function W(R){return R===47?(e.consume(R),o="",ee):T(R)}function ee(R){if(R===62){const H=o.toLowerCase();return ife.includes(H)?(e.consume(R),ne):T(R)}return Wi(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),ee):T(R)}function Z(R){return R===93?(e.consume(R),V):T(R)}function V(R){return R===62?(e.consume(R),ne):R===45&&a===2?(e.consume(R),V):T(R)}function ne(R){return R===null||Ut(R)?(e.exit("htmlFlowData"),P(R)):(e.consume(R),ne)}function P(R){return e.exit("htmlFlow"),t(R)}}function wQe(e,t,r){const n=this;return a;function a(o){return Ut(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):r(o)}function s(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function kQe(e,t,r){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Z_,t,r)}}const _Qe={name:"htmlText",tokenize:SQe};function SQe(e,t,r){const n=this;let a,s,o;return l;function l(V){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(V),c}function c(V){return V===33?(e.consume(V),u):V===47?(e.consume(V),w):V===63?(e.consume(V),x):Wi(V)?(e.consume(V),C):r(V)}function u(V){return V===45?(e.consume(V),d):V===91?(e.consume(V),s=0,y):Wi(V)?(e.consume(V),b):r(V)}function d(V){return V===45?(e.consume(V),p):r(V)}function h(V){return V===null?r(V):V===45?(e.consume(V),f):Ut(V)?(o=h,W(V)):(e.consume(V),h)}function f(V){return V===45?(e.consume(V),p):h(V)}function p(V){return V===62?Y(V):V===45?f(V):h(V)}function y(V){const ne="CDATA[";return V===ne.charCodeAt(s++)?(e.consume(V),s===ne.length?m:y):r(V)}function m(V){return V===null?r(V):V===93?(e.consume(V),v):Ut(V)?(o=m,W(V)):(e.consume(V),m)}function v(V){return V===93?(e.consume(V),g):m(V)}function g(V){return V===62?Y(V):V===93?(e.consume(V),g):m(V)}function b(V){return V===null||V===62?Y(V):Ut(V)?(o=b,W(V)):(e.consume(V),b)}function x(V){return V===null?r(V):V===63?(e.consume(V),_):Ut(V)?(o=x,W(V)):(e.consume(V),x)}function _(V){return V===62?Y(V):x(V)}function w(V){return Wi(V)?(e.consume(V),j):r(V)}function j(V){return V===45||Ni(V)?(e.consume(V),j):E(V)}function E(V){return Ut(V)?(o=E,W(V)):mr(V)?(e.consume(V),E):Y(V)}function C(V){return V===45||Ni(V)?(e.consume(V),C):V===47||V===62||sn(V)?N(V):r(V)}function N(V){return V===47?(e.consume(V),Y):V===58||V===95||Wi(V)?(e.consume(V),A):Ut(V)?(o=N,W(V)):mr(V)?(e.consume(V),N):Y(V)}function A(V){return V===45||V===46||V===58||V===95||Ni(V)?(e.consume(V),A):$(V)}function $(V){return V===61?(e.consume(V),T):Ut(V)?(o=$,W(V)):mr(V)?(e.consume(V),$):N(V)}function T(V){return V===null||V===60||V===61||V===62||V===96?r(V):V===34||V===39?(e.consume(V),a=V,F):Ut(V)?(o=T,W(V)):mr(V)?(e.consume(V),T):(e.consume(V),M)}function F(V){return V===a?(e.consume(V),a=void 0,z):V===null?r(V):Ut(V)?(o=F,W(V)):(e.consume(V),F)}function M(V){return V===null||V===34||V===39||V===60||V===61||V===96?r(V):V===47||V===62||sn(V)?N(V):(e.consume(V),M)}function z(V){return V===47||V===62||sn(V)?N(V):r(V)}function Y(V){return V===62?(e.consume(V),e.exit("htmlTextData"),e.exit("htmlText"),t):r(V)}function W(V){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),ee}function ee(V){return mr(V)?Sr(e,Z,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):Z(V)}function Z(V){return e.enter("htmlTextData"),o(V)}}const Hie={name:"labelEnd",resolveAll:NQe,resolveTo:TQe,tokenize:AQe},jQe={tokenize:MQe},EQe={tokenize:IQe},CQe={tokenize:PQe};function NQe(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const a=n.type==="labelImage"?4:2;n.type="data",t+=a}}return e.length!==r.length&&Gs(e,0,e.length,r),e}function TQe(e,t){let r=e.length,n=0,a,s,o,l;for(;r--;)if(a=e[r][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=r,a.type!=="labelLink")){n=2;break}}else a.type==="labelEnd"&&(o=r);const c={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[s+n+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",c,t],["enter",u,t]],l=uo(l,e.slice(s+1,s+n+3)),l=uo(l,[["enter",d,t]]),l=uo(l,BW(t.parser.constructs.insideSpan.null,e.slice(s+n+4,o-3),t)),l=uo(l,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),l=uo(l,e.slice(o+1)),l=uo(l,[["exit",c,t]]),Gs(e,s,e.length,l),e}function AQe(e,t,r){const n=this;let a=n.events.length,s,o;for(;a--;)if((n.events[a][1].type==="labelImage"||n.events[a][1].type==="labelLink")&&!n.events[a][1]._balanced){s=n.events[a][1];break}return l;function l(f){return s?s._inactive?h(f):(o=n.parser.defined.includes(bl(n.sliceSerialize({start:s.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),c):r(f)}function c(f){return f===40?e.attempt(jQe,d,o?d:h)(f):f===91?e.attempt(EQe,d,o?u:h)(f):o?d(f):h(f)}function u(f){return e.attempt(CQe,d,h)(f)}function d(f){return t(f)}function h(f){return s._balanced=!0,r(f)}}function MQe(e,t,r){return n;function n(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return sn(h)?Tw(e,s)(h):s(h)}function s(h){return h===41?d(h):_je(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return sn(h)?Tw(e,c)(h):d(h)}function l(h){return r(h)}function c(h){return h===34||h===39||h===40?jje(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function u(h){return sn(h)?Tw(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):r(h)}}function IQe(e,t,r){const n=this;return a;function a(l){return Sje.call(n,e,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return n.parser.defined.includes(bl(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):r(l)}function o(l){return r(l)}}function PQe(e,t,r){return n;function n(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const LQe={name:"labelStartImage",resolveAll:Hie.resolveAll,tokenize:OQe};function OQe(e,t,r){const n=this;return a;function a(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):r(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):t(l)}}const RQe={name:"labelStartLink",resolveAll:Hie.resolveAll,tokenize:DQe};function DQe(e,t,r){const n=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const GY={name:"lineEnding",tokenize:FQe};function FQe(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Sr(e,t,"linePrefix")}}const ZU={name:"thematicBreak",tokenize:$Qe};function $Qe(e,t,r){let n=0,a;return s;function s(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,l(u)}function l(u){return u===a?(e.enter("thematicBreakSequence"),c(u)):n>=3&&(u===null||Ut(u))?(e.exit("thematicBreak"),t(u)):r(u)}function c(u){return u===a?(e.consume(u),n++,c):(e.exit("thematicBreakSequence"),mr(u)?Sr(e,l,"whitespace")(u):l(u))}}const ns={continuation:{tokenize:qQe},exit:VQe,name:"list",tokenize:UQe},BQe={partial:!0,tokenize:WQe},zQe={partial:!0,tokenize:HQe};function UQe(e,t,r){const n=this,a=n.events[n.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return l;function l(p){const y=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:gte(p)){if(n.containerState.type||(n.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ZU,r,u)(p):u(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return r(p)}function c(p){return gte(p)&&++o<10?(e.consume(p),c):(!n.interrupt||o<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):r(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(Z_,n.interrupt?r:d,e.attempt(BQe,f,h))}
vendor: 5,427 bytes, line 7927
7927function d(p){return n.containerState.initialBlankLine=!0,s++,f(p)}function h(p){return mr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):r(p)}function f(p){return n.containerState.size=s+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function qQe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Z_,a,s);function a(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Sr(e,t,"listItemIndent",n.containerState.size+1)(l)}function s(l){return n.containerState.furtherBlankLines||!mr(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(zQe,t,o)(l))}function o(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,Sr(e,e.attempt(ns,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function HQe(e,t,r){const n=this;return Sr(e,a,"listItemIndent",n.containerState.size+1);function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(s):r(s)}}function VQe(e){e.exit(this.containerState.type)}function WQe(e,t,r){const n=this;return Sr(e,a,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const o=n.events[n.events.length-1];return!mr(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const sfe={name:"setextUnderline",resolveTo:GQe,tokenize:KQe};function GQe(e,t){let r=e.length,n,a,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",o,t]),e.splice(s+1,0,["exit",e[n][1],t]),e[n][1].end={...e[s][1].end}):e[n][1]=o,e.push(["exit",o,t]),e}function KQe(e,t,r){const n=this;let a;return s;function s(u){let d=n.events.length,h;for(;d--;)if(n.events[d][1].type!=="lineEnding"&&n.events[d][1].type!=="linePrefix"&&n.events[d][1].type!=="content"){h=n.events[d][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||h)?(e.enter("setextHeadingLine"),a=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),mr(u)?Sr(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||Ut(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const YQe={tokenize:XQe};function XQe(e){const t=this,r=e.attempt(Z_,n,e.attempt(this.parser.constructs.flowInitial,a,Sr(e,e.attempt(this.parser.constructs.flow,a,e.attempt(tQe,a)),"linePrefix")));return r;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const ZQe={resolveAll:Cje()},QQe=Eje("string"),JQe=Eje("text");function Eje(e){return{resolveAll:Cje(e==="text"?eJe:void 0),tokenize:t};function t(r){const n=this,a=this.parser.constructs[e],s=r.attempt(a,o,l);return o;function o(d){return u(d)?s(d):l(d)}function l(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),c}function c(d){return u(d)?(r.exit("data"),s(d)):(r.consume(d),c)}function u(d){if(d===null)return!0;const h=a[d];let f=-1;if(h)for(;++f<h.length;){const p=h[f];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function Cje(e){return t;function t(r,n){let a=-1,s;for(;++a<=r.length;)s===void 0?r[a]&&r[a][1].type==="data"&&(s=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==s+2&&(r[s][1].end=r[a-1][1].end,r.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(r,n):r}}function eJe(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],a=t.sliceStream(n);let s=a.length,o=-1,l=0,c;for(;s--;){const u=a[s];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(u===-2)c=!0,l++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const u={type:r===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:n.start._bufferIndex+o,_index:n.start._index+s,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const tJe={42:ns,43:ns,45:ns,48:ns,49:ns,50:ns,51:ns,52:ns,53:ns,54:ns,55:ns,56:ns,57:ns,62:xje},rJe={91:sQe},nJe={[-2]:WY,[-1]:WY,32:WY},aJe={35:hQe,42:ZU,45:[sfe,ZU],60:gQe,61:sfe,95:ZU,96:afe,126:afe},iJe={38:wje,92:bje},sJe={[-5]:GY,[-4]:GY,[-3]:GY,33:LQe,38:wje,42:yte,60:[RZe,_Qe],91:RQe,92:[uQe,bje],93:Hie,95:yte,96:YZe},oJe={null:[yte,ZQe]},lJe={null:[42,95]},cJe={null:[]},uJe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:lJe,contentInitial:rJe,disable:cJe,document:tJe,flow:aJe,flowInitial:nJe,insideSpan:oJe,string:iJe,text:sJe},Symbol.toStringTag,{value:"Module"}));function dJe(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,c
vendor: 19,326 bytes, lines 7927-7933
7927olumn:r&&r.column||1,offset:r&&r.offset||0};const a={},s=[];let o=[],l=[];const c={attempt:E(w),check:E(j),consume:b,enter:x,exit:_,interrupt:E(j,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:y,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:h};let d=t.tokenize.call(u,c);return t.resolveAll&&s.push(t),u;function h($){return o=uo(o,$),v(),o[o.length-1]!==null?[]:(C(t,0),u.events=BW(s,u.events,u),u.events)}function f($,T){return fJe(p($),T)}function p($){return hJe(o,$)}function y(){const{_bufferIndex:$,_index:T,line:F,column:M,offset:z}=n;return{_bufferIndex:$,_index:T,line:F,column:M,offset:z}}function m($){a[$.line]=$.column,A()}function v(){let $;for(;n._index<o.length;){const T=o[n._index];if(typeof T=="string")for($=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===$&&n._bufferIndex<T.length;)g(T.charCodeAt(n._bufferIndex));else g(T)}}function g($){d=d($)}function b($){Ut($)?(n.line++,n.column=1,n.offset+=$===-3?2:1,A()):$!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=$}function x($,T){const F=T||{};return F.type=$,F.start=y(),u.events.push(["enter",F,u]),l.push(F),F}function _($){const T=l.pop();return T.end=y(),u.events.push(["exit",T,u]),T}function w($,T){C($,T.from)}function j($,T){T.restore()}function E($,T){return F;function F(M,z,Y){let W,ee,Z,V;return Array.isArray(M)?P(M):"tokenize"in M?P([M]):ne(M);function ne(ae){return D;function D(U){const se=U!==null&&ae[U],te=U!==null&&ae.null,Q=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(te)?te:te?[te]:[]];return P(Q)(U)}}function P(ae){return W=ae,ee=0,ae.length===0?Y:R(ae[ee])}function R(ae){return D;function D(U){return V=N(),Z=ae,ae.partial||(u.currentConstruct=ae),ae.name&&u.parser.constructs.disable.null.includes(ae.name)?re():ae.tokenize.call(T?Object.assign(Object.create(u),T):u,c,H,re)(U)}}function H(ae){return $(Z,V),z}function re(ae){return V.restore(),++ee<W.length?R(W[ee]):Y}}}function C($,T){$.resolveAll&&!s.includes($)&&s.push($),$.resolve&&Gs(u.events,T,u.events.length-T,$.resolve(u.events.slice(T),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function N(){const $=y(),T=u.previous,F=u.currentConstruct,M=u.events.length,z=Array.from(l);return{from:M,restore:Y};function Y(){n=$,u.previous=T,u.currentConstruct=F,u.events.length=M,l=z,A()}}function A(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}function hJe(e,t){const r=t.start._index,n=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let o;if(r===a)o=[e[r].slice(n,s)];else{if(o=e.slice(r,a),n>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(n):o.shift()}s>0&&o.push(e[a].slice(0,s))}return o}function fJe(e,t){let r=-1;const n=[];let a;for(;++r<e.length;){const s=e[r];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=` 7928`;break}case-3:{o=`\r 7929`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(s)}a=s===-2,n.push(o)}return n.join("")}function pJe(e){const n={constructs:yje([uJe,...(e||{}).extensions||[]]),content:a(TZe),defined:[],document:a(MZe),flow:a(YQe),lazy:{},string:a(QQe),text:a(JQe)};return n;function a(s){return o;function o(l){return dJe(n,s,l)}}}function mJe(e){for(;!kje(e););return e}const ofe=/[\0\t\n\r]/g;function gJe(){let e=1,t="",r=!0,n;return a;function a(s,o,l){const c=[];let u,d,h,f,p;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),h=0,t="",r&&(s.charCodeAt(0)===65279&&h++,r=void 0);h<s.length;){if(ofe.lastIndex=h,u=ofe.exec(s),f=u&&u.index!==void 0?u.index:s.length,p=s.charCodeAt(f),!u){t=s.slice(h);break}if(p===10&&h===f&&n)c.push(-3),n=void 0;else switch(n&&(c.push(-5),n=void 0),h<f&&(c.push(s.slice(h,f)),e+=f-h),p){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:n=!0,e=1}h=f+1}return l&&(n&&c.push(-5),t&&c.push(t),c.push(null)),c}}const yJe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vJe(e){return e.replace(yJe,xJe)}function xJe(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),s=a===120||a===88;return vje(r.slice(s?2:1),s?16:10)}return qie(r)||e}const Nje={}.hasOwnProperty;function bJe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),wJe(r)(mJe(pJe(r).document().write(gJe()(e,t,!0))))}function wJe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(q),autolinkProtocol:N,autolinkEmail:N,atxHeading:s(pe),blockQuote:s(te),characterEscape:N,characterReference:N,codeFenced:s(Q),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(Q,o),codeText:s(K,o),codeTextData:N,data:N,codeFlowValue:N,definition:s(ue),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(B),hardBreakEscape:s(G),hardBreakTrailing:s(G),htmlFlow:s(I,o),htmlFlowData:N,htmlText:s(I,o),htmlTextData:N,image:s(L),label:o,link:s(q),listItem:s(ie),listItemValue:f,listOrdered:s(X,h),listUnordered:s(X),paragraph:s(J),reference:R,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(pe),strong:s(fe),thematicBreak:s(ge)},exit:{atxHeading:c(),atxHeadingSequence:w,autolink:c(),autolinkEmail:se,autolinkProtocol:U,blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:ae,characterReference:D,codeFenced:c(v),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:A,codeIndented:c(g),codeText:c(z),codeTextData:A,data:A,definition:c(),definitionDestinationString:_,definitionLabelString:b,definitionTitleString:x,emphasis:c(),hardBreakEscape:c(T),hardBreakTrailing:c(T),htmlFlow:c(F),htmlFlowData:A,htmlText:c(M),htmlTextData:A,image:c(W),label:Z,labelText:ee,lineEnding:$,link:c(Y),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:H,resourceDestinationString:V,resourceTitleString:ne,resource:P,setextHeading:c(C),setextHeadingLineSequence:E,setextHeadingText:j,strong:c(),thematicBreak:c()}};Tje(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(de){let ye={type:"root",children:[]};const _e={stack:[ye],tokenStack:[],config:t,enter:l,exit:u,buffer:o,resume:d,data:r},Fe=[];let ht=-1;for(;++ht<de.length;)if(de[ht][1].type==="listOrdered"||de[ht][1].type==="listUnordered")if(de[ht][0]==="enter")Fe.push(ht);else{const _t=Fe.pop();ht=a(de,_t,ht)}for(ht=-1;++ht<de.length;){const _t=t[de[ht][0]];Nje.call(_t,de[ht][1].type)&&_t[de[ht][1].type].call(Object.assign({sliceSerialize:de[ht][2].sliceSerialize},_e),de[ht][1])}if(_e.tokenStack.length>0){const _t=_e.tokenStack[_e.tokenStack.length-1];(_t[1]||lfe).call(_e,void 0,_t[0])}for(ye.position={start:Ju(de.length>0?de[0][1].start:{line:1,column:1,offset:0}),end:Ju(de.length>0?de[de.length-2][1].end:{line:1,column:1,offset:0})},ht=-1;++ht<t.transforms.length;)ye=t.transforms[ht](ye)||ye;return ye}function a(de,ye,_e){let Fe=ye-1,ht=-1,_t=!1,xe,je,ut,Ot;for(;++Fe<=_e;){const lt=de[Fe];switch(lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{lt[0]==="enter"?ht++:ht--,Ot=void 0;break}case"lineEndingBlank":{lt[0]==="enter"&&(xe&&!Ot&&!ht&&!ut&&(ut=Fe),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!ht&<[0]==="enter"&<[1].type==="listItemPrefix"||ht===-1&<[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(xe){let et=Fe;for(je=void 0;et--;){const It=de[et];if(It[1].type==="lineEnding"||It[1].type==="lineEndingBlank"){if(It[0]==="exit")continue;je&&(de[je][1].type="lineEndingBlank",_t=!0),It[1].type="lineEnding",je=et}else if(!(It[1].type==="linePrefix"||It[1].type==="blockQuotePrefix"||It[1].type==="blockQuotePrefixWhitespace"||It[1].type==="blockQuoteMarker"||It[1].type==="listItemIndent"))break}ut&&(!je||ut<je)&&(xe._spread=!0),xe.end=Object.assign({},je?de[je][1].start:lt[1].end),de.splice(je||Fe,0,["exit",xe,lt[2]]),Fe++,_e++}if(lt[1].type==="listItemPrefix"){const et={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0};xe=et,de.splice(Fe,0,["enter",et,lt[2]]),Fe++,_e++,ut=void 0,Ot=!0}}}return de[ye][1]._spread=_t,_e}function s(de,ye){return _e;function _e(Fe){l.call(this,de(Fe),Fe),ye&&ye.call(this,Fe)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(de,ye,_e){this.stack[this.stack.length-1].children.push(de),this.stack.push(de),this.tokenStack.push([ye,_e||void 0]),de.position={start:Ju(ye.start),end:void 0}}function c(de){return ye;function ye(_e){de&&de.call(this,_e),u.call(this,_e)}}function u(de,ye){const _e=this.stack.pop(),Fe=this.tokenStack.pop();if(Fe)Fe[0].type!==de.type&&(ye?ye.call(this,de,Fe[0]):(Fe[1]||lfe).call(this,de,Fe[0]));else throw new Error("Cannot close `"+de.type+"` ("+Nw({start:de.start,end:de.end})+"): itâs not open");_e.position.end=Ju(de.end)}function d(){return Uie(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(de){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(de),10),this.data.expectingFirstListItemValue=void 0}}function p(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=de}function y(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=de}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de.replace(/(\r?\n|\r)$/g,"")}function b(de){const ye=this.resume(),_e=this.stack[this.stack.length-1];_e.label=ye,_e.identifier=bl(this.sliceSerialize(de)).toLowerCase()}function x(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.title=de}function _(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.url=de}function w(de){const ye=this.stack[this.stack.length-1];if(!ye.depth){const _e=this.sliceSerialize(de).length;ye.depth=_e}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function E(de){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(de).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function N(de){const _e=this.stack[this.stack.length-1].children;let Fe=_e[_e.length-1];(!Fe||Fe.type!=="text")&&(Fe=ve(),Fe.position={start:Ju(de.start),end:void 0},_e.push(Fe)),this.stack.push(Fe)}function A(de){const ye=this.stack.pop();ye.value+=this.sliceSerialize(de),ye.position.end=Ju(de.end)}function $(de){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const _e=ye.children[ye.children.length-1];_e.position.end=Ju(de.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(N.call(this,de),A.call(this,de))}function T(){this.data.atHardBreak=!0}function F(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de}function M(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de}function z(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de}function Y(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ye,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function W(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ye,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function ee(de){const ye=this.sliceSerialize(de),_e=this.stack[this.stack.length-2];_e.label=vJe(ye),_e.identifier=bl(ye).toLowerCase()}function Z(){const de=this.stack[this.stack.length-1],ye=this.resume(),_e=this.stack[this.stack.length-1];if(this.data.inReference=!0,_e.type==="link"){const Fe=de.children;_e.children=Fe}else _e.alt=ye}function V(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.url=de}function ne(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.title=de}function P(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function H(de){const ye=this.resume(),_e=this.stack[this.stack.length-1];_e.label=ye,_e.identifier=bl(this.sliceSerialize(de)).toLowerCase(),this.data.referenceType="full"}function re(de){this.data.characterReferenceType=de.type}function ae(de){const ye=this.sliceSerialize(de),_e=this.data.characterReferenceType;let Fe;_e?(Fe=vje(ye,_e==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Fe=qie(ye);const ht=this.stack[this.stack.length-1];ht.value+=Fe}function D(de){const ye=this.stack.pop();ye.position.end=Ju(de.end)}function U(de){A.call(this,de);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(de)}function se(de){A.call(this,de);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(de)}function te(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function ue(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function B(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function G(){return{type:"break"}}function I(){return{type:"html",value:""}}function L(){return{type:"image",title:null,url:"",alt:null}}function q(){return{type:"link",title:null,url:"",children:[]}}function X(de){return{type:"list",ordered:de.type==="listOrdered",start:null,spread:de._spread,children:[]}}function ie(de){return{type:"listItem",spread:de._spread,checked:null,children:[]}}function J(){return{type:"paragraph",children:[]}}function fe(){return{type:"strong",children:[]}}function ve(){return{type:"text",value:""}}function ge(){return{type:"thematicBreak"}}}function Ju(e){return{line:e.line,column:e.column,offset:e.offset}}function Tje(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Tje(e,n):kJe(e,n)}}function kJe(e,t){let r;for(r in t)if(Nje.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function lfe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Nw({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Nw({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Nw({start:t.start,end:t.end})+") is still open")}function _Je(e){const t=this;t.parser=r;function r(n){return bJe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function SJe(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function jJe(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:` 7930`}]}function EJe(e,t){const r=t.value?t.value+` 7931`:"",n={};t.lang&&(n.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function CJe(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function NJe(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function TJe(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),a=Cv(n.toLowerCase()),s=e.footnoteOrder.indexOf(n);let o,l=e.footnoteCounts.get(n);l===void 0?(l=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=s+1,l+=1,e.footnoteCounts.set(n,l);const c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function AJe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function MJe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Aje(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=n:a.push({type:"text",value:n}),a}function IJe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Aje(e,t);const a={src:Cv(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(a.title=n.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function PJe(e,t){const r={src:Cv(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function LJe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function OJe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Aje(e,t);const a={href:Cv(n.url||"")};n.title!==null&&n.title!==void 0&&(a.title=n.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function RJe(e,t){const r={href:Cv(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DJe(e,t,r){const n=e.all(t),a=r?FJe(r):Mje(t),s={},o=[];if(typeof t.checked=="boolean"){const d=n[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},n.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l<n.length;){const d=n[l];(a||l!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:` 7932`}),d.type==="element"&&d.tagName==="p"&&!a?o.push(...d.children):o.push(d)}const c=n[n.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:` 7933`});const u={type:"element",tagName:"li",properties:s,children:o};
vendor: 4,637 bytes, line 7933
7933return e.patch(t,u),e.applyData(t,u)}function FJe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Mje(r[n])}return t}function Mje(e){const t=e.spread;return t??e.children.length>1}function $Je(e,t){const r={},n=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<n.length;){const o=n[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)}function BJe(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zJe(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function UJe(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qJe(e,t){const r=e.all(t),n=r.shift(),a=[];if(n){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],o),a.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},l=wc(t.children[1]),c=FW(t.children[t.children.length-1]);l&&c&&(o.position={start:l,end:c}),a.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function HJe(e,t,r){const n=r?r.children:void 0,s=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,l=o?o.length:t.children.length;let c=-1;const u=[];for(;++c<l;){const h=t.children[c],f={},p=o?o[c]:void 0;p&&(f.align=p);let y={type:"element",tagName:s,properties:f,children:[]};h&&(y.children=e.all(h),e.patch(h,y),y=e.applyData(h,y)),u.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function VJe(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const cfe=9,ufe=32;function WJe(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),a=0;const s=[];for(;n;)s.push(dfe(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return s.push(dfe(t.slice(a),a>0,!1)),s.join("")}function dfe(e,t,r){let n=0,a=e.length;if(t){let s=e.codePointAt(n);for(;s===cfe||s===ufe;)n++,s=e.codePointAt(n)}if(r){let s=e.codePointAt(a-1);for(;s===cfe||s===ufe;)a--,s=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}function GJe(e,t){const r={type:"text",value:WJe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function KJe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const YJe={blockquote:SJe,break:jJe,code:EJe,delete:CJe,emphasis:NJe,footnoteReference:TJe,heading:AJe,html:MJe,imageReference:IJe,image:PJe,inlineCode:LJe,linkReference:OJe,link:RJe,listItem:DJe,list:$Je,paragraph:BJe,root:zJe,strong:UJe,table:qJe,tableCell:VJe,tableRow:HJe,text:GJe,thematicBreak:KJe,toml:j3,yaml:j3,definition:j3,footnoteDefinition:j3};function j3(){}const Ije=-1,zW=0,Aw=1,hH=2,Vie=3,Wie=4,Gie=5,Kie=6,Pje=7,Lje=8,hfe=typeof self=="object"?self:globalThis,XJe=(e,t)=>{const r=(a,s)=>(e.set(s,a),a),n=a=>{if(e.has(a))return e.get(a);const[s,o]=t[a];switch(s){case zW:case Ije:return r(o,a);case Aw:{const l=r([],a);for(const c of o)l.push(n(c));return l}case hH:{const l=r({},a);for(const[c,u]of o)l[n(c)]=n(u);return l}case Vie:return r(new Date(o),a);case Wie:{const{source:l,flags:c}=o;return r(new RegExp(l,c),a)}case Gie:{const l=r(new Map,a);for(const[c,u]of o)l.set(n(c),n(u));return l}case Kie:{const l=r(new Set,a);for(const c of o)l.add(n(c));return l}case Pje:{const{name:l,message:c}=o;return r(new hfe[l](c),a)}case Lje:return r(BigInt(o),a);case"BigInt":return r(Object(BigInt(o)),a);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return r(new DataView(l),o)}}return r(new hfe[s](o),a)};return n},ffe=e=>XJe(new Map,e)(0),Sg="",{toString:ZJe}={},{keys:QJe}=Object,Ox=e=>{const t=typeof e;if(t!=="object"||!e)return[zW,t];const r=ZJe.call(e).slice(8,-1);switch(r){case"Array":return[Aw,Sg];case"Object":return[hH,Sg];case"Date":return[Vie,Sg];case"RegExp":return[Wie,Sg];case"Map":return[Gie,Sg];case"Set":return[Kie,Sg];case"DataView":return[Aw,r]}return r.includes("Array")?[Aw,r]:r.includes("Error")?[Pje,r]:[hH,r]},E3=([e,t])=>e===zW&&(t==="function"||t==="symbol"),JJe=(e,t,r,n)=>{const a=(o,l)=>{const c=n.push(o)-1;return r.set(l,c),c},s=o=>
vendor: 4,241 bytes, lines 7933-7935
7933{if(r.has(o))return r.get(o);let[l,c]=Ox(o);switch(l){case zW:{let d=o;switch(c){case"bigint":l=Lje,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return a([Ije],o)}return a([l,d],o)}case Aw:{if(c){let f=o;return c==="DataView"?f=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(o)),a([c,[...f]],o)}const d=[],h=a([l,d],o);for(const f of o)d.push(s(f));return h}case hH:{if(c)switch(c){case"BigInt":return a([c,o.toString()],o);case"Boolean":case"Number":case"String":return a([c,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const d=[],h=a([l,d],o);for(const f of QJe(o))(e||!E3(Ox(o[f])))&&d.push([s(f),s(o[f])]);return h}case Vie:return a([l,o.toISOString()],o);case Wie:{const{source:d,flags:h}=o;return a([l,{source:d,flags:h}],o)}case Gie:{const d=[],h=a([l,d],o);for(const[f,p]of o)(e||!(E3(Ox(f))||E3(Ox(p))))&&d.push([s(f),s(p)]);return h}case Kie:{const d=[],h=a([l,d],o);for(const f of o)(e||!E3(Ox(f)))&&d.push(s(f));return h}}const{message:u}=o;return a([l,{name:c,message:u}],o)};return s},pfe=(e,{json:t,lossy:r}={})=>{const n=[];return JJe(!(t||r),!!t,new Map,n)(e),n},w2=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ffe(pfe(e,t)):structuredClone(e):(e,t)=>ffe(pfe(e,t));function eet(e,t){const r=[{type:"text",value:"â©"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function tet(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ret(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||eet,n=e.options.footnoteBackLabel||tet,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),h=String(u.identifier).toUpperCase(),f=Cv(h.toLowerCase());let p=0;const y=[],m=e.footnoteCounts.get(h);for(;m!==void 0&&++p<=m;){y.length>0&&y.push({type:"text",value:" "});let b=typeof r=="string"?r:r(c,p);typeof b=="string"&&(b={type:"text",value:b}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(c,p),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=d[d.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const b=v.children[v.children.length-1];b&&b.type==="text"?b.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...y)}else d.push(...y);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,g),l.push(g)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...w2(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` 7934`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 7935`}]}}const UW=function(e){if(e==null)return set;if(typeof e=="function")return qW(e);if(typeof e=="object")return Array.isArray(e)?net(e):aet(e);if(typeof e=="string")return iet(e);throw new Error("Expected function, string, or object as test")};function net(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=UW(e[r]);return qW(n);function n(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function aet(e){const t=e;return qW(r);function r(n){const a=n;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function iet(e){return qW(t);function t(r){return r&&r.type===e}}function qW(e){return t;function t(r,n,a){return!!(oet(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function set(){return!0}function oet(e){return e!==null&&typeof e=="object"&&"type"in e}const Oje=[],cet=!0,vte=!1,uet="skip";function Rje(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const s=UW(a),o=n?-1:1;l(e,void 0,[])();function l(c,u,d){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const p=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;
vendor: 19,155 bytes, lines 7935-7939
7935Object.defineProperty(f,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Oje,y,m,v;if((!t||s(c,u,d[d.length-1]||void 0))&&(p=det(r(c,d)),p[0]===vte))return p;if("children"in c&&c.children){const g=c;if(g.children&&p[0]!==uet)for(m=(n?g.children.length:-1)+o,v=d.concat(g);m>-1&&m<g.children.length;){const b=g.children[m];if(y=l(b,m,v)(),y[0]===vte)return y;m=typeof y[1]=="number"?y[1]:m+o}}return p}}}function det(e){return Array.isArray(e)?e:typeof e=="number"?[cet,e]:e==null?Oje:[e]}function HW(e,t,r,n){let a,s,o;typeof t=="function"&&typeof r!="function"?(s=void 0,o=t,a=r):(s=t,o=r,a=n),Rje(e,s,l,a);function l(c,u){const d=u[u.length-1],h=d?d.children.indexOf(c):void 0;return o(c,h,d)}}const xte={}.hasOwnProperty,het={};function fet(e,t){const r=t||het,n=new Map,a=new Map,s=new Map,o={...YJe,...r.handlers},l={all:u,applyData:met,definitionById:n,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:o,one:c,options:r,patch:pet,wrap:yet};return HW(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const h=d.type==="definition"?n:a,f=String(d.identifier).toUpperCase();h.has(f)||h.set(f,d)}}),l;function c(d,h){const f=d.type,p=l.handlers[f];if(xte.call(l.handlers,f)&&p)return p(l,d,h);if(l.options.passThrough&&l.options.passThrough.includes(f)){if("children"in d){const{children:m,...v}=d,g=w2(v);return g.children=l.all(d),g}return w2(d)}return(l.options.unknownHandler||get)(l,d,h)}function u(d){const h=[];if("children"in d){const f=d.children;let p=-1;for(;++p<f.length;){const y=l.one(f[p],d);if(y){if(p&&f[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=mfe(y.value)),!Array.isArray(y)&&y.type==="element")){const m=y.children[0];m&&m.type==="text"&&(m.value=mfe(m.value))}Array.isArray(y)?h.push(...y):h.push(y)}}}return h}}function pet(e,t){e.position&&(t.position=tZe(e))}function met(e,t){let r=t;if(e&&e.data){const n=e.data.hName,a=e.data.hChildren,s=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const o="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:o}}r.type==="element"&&s&&Object.assign(r.properties,w2(s)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function get(e,t){const r=t.data||{},n="value"in t&&!(xte.call(r,"hProperties")||xte.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yet(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:` 7936`});++n<e.length;)n&&r.push({type:"text",value:` 7937`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:` 7938`}),r}function mfe(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function gfe(e,t){const r=fet(e,t),n=r.one(e,void 0),a=ret(r),s=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return a&&s.children.push({type:"text",value:` 7939`},a),s}function vet(e,t){return e&&"run"in e?async function(r,n){const a=gfe(r,{file:n,...t});await e.run(a,n)}:function(r,n){return gfe(r,{file:n,...e||t})}}function yfe(e){if(e)throw e}var QU=Object.prototype.hasOwnProperty,Dje=Object.prototype.toString,vfe=Object.defineProperty,xfe=Object.getOwnPropertyDescriptor,bfe=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Dje.call(t)==="[object Array]"},wfe=function(t){if(!t||Dje.call(t)!=="[object Object]")return!1;var r=QU.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&QU.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var a;for(a in t);return typeof a>"u"||QU.call(t,a)},kfe=function(t,r){vfe&&r.name==="__proto__"?vfe(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},_fe=function(t,r){if(r==="__proto__")if(QU.call(t,r)){if(xfe)return xfe(t,r).value}else return;return t[r]},xet=function e(){var t,r,n,a,s,o,l=arguments[0],c=1,u=arguments.length,d=!1;for(typeof l=="boolean"&&(d=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(t=arguments[c],t!=null)for(r in t)n=_fe(l,r),a=_fe(t,r),l!==a&&(d&&a&&(wfe(a)||(s=bfe(a)))?(s?(s=!1,o=n&&bfe(n)?n:[]):o=n&&wfe(n)?n:{},kfe(l,{name:r,newValue:e(d,o,a)})):typeof a<"u"&&kfe(l,{name:r,newValue:a}));return l};const KY=jr(xet);function bte(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bet(){const e=[],t={run:r,use:n};return t;function r(...a){let s=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...a);function l(c,...u){const d=e[++s];let h=-1;if(c){o(c);return}for(;++h<a.length;)(u[h]===null||u[h]===void 0)&&(u[h]=a[h]);a=u,d?wet(d,l)(...u):o(null,...u)}}function n(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function wet(e,t){let r;return n;function n(...o){const l=e.length>o.length;let c;l&&o.push(a);try{c=e.apply(this,o)}catch(u){const d=u;if(l&&r)throw d;return a(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(s,a):c instanceof Error?a(c):s(c))}function a(o,...l){r||(r=!0,t(o,...l))}function s(o){a(null,o)}}const $l={basename:ket,dirname:_et,extname:jet,join:Eet,sep:"/"};function ket(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Q_(e);let r=0,n=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){r=a+1;break}}else n<0&&(s=!0,n=a+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){r=a+1;break}}else o<0&&(s=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(n=a):(l=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function _et(e){if(Q_(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function jet(e){Q_(e);let t=e.length,r=-1,n=0,a=-1,s=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),l===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||r<0||s===0||s===1&&a===r-1&&a===n+1?"":e.slice(a,r)}function Eet(...e){let t=-1,r;for(;++t<e.length;)Q_(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Cet(r)}function Cet(e){Q_(e);const t=e.codePointAt(0)===47;let r=Net(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Net(e,t){let r="",n=0,a=-1,s=0,o=-1,l,c;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(a===o-1||s===1))if(a!==o-1&&s===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(c=r.lastIndexOf("/"),c!==r.length-1){c<0?(r="",n=0):(r=r.slice(0,c),n=r.length-1-r.lastIndexOf("/")),a=o,s=0;continue}}else if(r.length>0){r="",n=0,a=o,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(a+1,o):r=e.slice(a+1,o),n=o-a-1;a=o,s=0}else l===46&&s>-1?s++:s=-1}return r}function Q_(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Tet={cwd:Aet};function Aet(){return"/"}function wte(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Met(e){if(typeof e=="string")e=new URL(e);else if(!wte(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Iet(e)}function Iet(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const YY=["history","path","basename","stem","extname","dirname"];class Fje{constructor(t){let r;t?wte(t)?r={path:t}:typeof t=="string"||Pet(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Tet.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<YY.length;){const s=YY[n];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let a;for(a in r)YY.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?$l.basename(this.path):void 0}set basename(t){ZY(t,"basename"),XY(t,"basename"),this.path=$l.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?$l.dirname(this.path):void 0}set dirname(t){Sfe(this.basename,"dirname"),this.path=$l.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?$l.extname(this.path):void 0}set extname(t){if(XY(t,"extname"),Sfe(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=$l.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){wte(t)&&(t=Met(t)),ZY(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?$l.basename(this.path,this.extname):void 0}set stem(t){ZY(t,"stem"),XY(t,"stem"),this.path=$l.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const a=this.message(t,r,n);throw a.fatal=!0,a}info(t,r,n){const a=this.message(t,r,n);return a.fatal=void 0,a}message(t,r,n){const a=new Mi(t,r,n);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function XY(e,t){if(e&&e.includes($l.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+$l.sep+"`")}function ZY(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Sfe(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Pet(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Let=function(e){const n=this.constructor.prototype,a=n[e],s=function(){return a.apply(s,arguments)};return Object.setPrototypeOf(s,n),s},Oet={}.hasOwnProperty;class Yie extends Let{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=bet()}copy(){const t=new Yie;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(KY(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(eX("data",this.frozen),this.namespace[t]=r,this):Oet.call(this.namespace,t)&&this.namespace[t]||void 0:t?(eX("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const a=r.call(t,...n);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=C3(t),n=this.parser||this.Parser;return QY("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),QY("process",this.parser||this.Parser),JY("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(s,o){const l=C3(t),c=n.parse(l);n.run(c,l,function(d,h,f){if(d||!h||!f)return u(d);const p=h,y=n.stringify(p,f);Fet(y)?f.value=y:f.result=y,u(d,f)});function u(d,h){d||!h?o(d):s?s(h):r(void 0,h)}}}processSync(t){let r=!1,n;return this.freeze(),QY("processSync",this.parser||this.Parser),JY("processSync",this.compiler||this.Compiler),this.process(t,a),Efe("processSync","process",r),n;function a(s,o){r=!0,yfe(s),n=o}}run(t,r,n){jfe(t),this.freeze();const a=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?s(void 0,n):new Promise(s);function s(o,l){const c=C3(r);a.run(t,c,u);function u(d,h,f){const p=h||t;d?l(d):o?o(p):n(void 0,p,f)}}}runSync(t,r){let n=!1,a;return this.run(t,r,s),Efe("runSync","run",n),a;function s(o,l){yfe(o),a=l,n=!0}}stringify(t,r){this.freeze();const n=C3(r),a=this.compiler||this.Compiler;return JY("stringify",a),jfe(t),a(t,n)}use(t,...r){const n=this.attachers,a=this.namespace;if(eX("use",this.frozen),t!=null)if(typeof t=="function")c(t,r);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...h]=u;c(d,h)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(a.settings=KY(!0,a.settings,u.settings))}function l(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const h=u[d];s(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let h=-1,f=-1;for(;++h<n.length;)if(n[h][0]===u){f=h;break}if(f===-1)n.push([u,...d]);else if(d.length>0){let[p,...y]=d;const m=n[f][1];bte(m)&&bte(p)&&(p=KY(!0,m,p)),n[f]=[u,p,...y]}}}}const Ret=new Yie().freeze();function QY(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function JY(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function eX(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jfe(e){if(!bte(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Efe(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function C3(e){return Det(e)?e:new Fje(e)}function Det(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Fet(e){return typeof e=="string"||$et(e)}function $et(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bet="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Cfe=[],Nfe={allowDangerousHtml:!0},zet=/^(https?|ircs?|mailto|xmpp)$/i,Uet=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $je(e){const t=qet(e),r=Het(e);return Vet(t.runSync(t.parse(r),r),e)}function qet(e){const t=e.rehypePlugins||Cfe,r=e.remarkPlugins||Cfe,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Nfe}:Nfe;return Ret().use(_Je).use(r).use(vet,n).use(t)}function Het(e){const t=e.children||"",r=new Fje;return typeof t=="string"&&(r.value=t),r}function Vet(e,t){const r=t.allowedElements,n=t.allowElement,a=t.components,s=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||Wet;for(const d of Uet)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+Bet+d.id,void 0);return HW(e,u),sZe(e,{Fragment:i.Fragment,components:a,ignoreInvalidStyle:!0,jsx:i.jsx,jsxs:i.jsxs,passKeys:!0,passNode:!0});function u(d,h,f){if(d.type==="raw"&&f&&typeof h=="number")return o?f.children.splice(h,1):f.children[h]={type:"text",value:d.value},h;if(d.type==="element"){let p;for(p in VY)if(Object.hasOwn(VY,p)&&Object.hasOwn(d.properties,p)){const y=d.properties[p],m=VY[p];(m===null||m.includes(d.tagName))&&(d.properties[p]=c(String(y||""),p,d))}}if(d.type==="element"){let p=r?!r.includes(d.tagName):s?s.includes(d.tagName):!1;if(!p&&n&&typeof h=="number"&&(p=!n(d,h,f)),p&&f&&typeof h=="number")return l&&d.children?f.children.splice(h,1,...d.children):f.children.splice(h,1),h}}}function Wet(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||n!==-1&&t>n||zet.test(e.slice(0,t))?e:""}function Tfe(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,a=r.indexOf(t);for(;a!==-1;)n++,a=r.indexOf(t,a+t.length);return n}function Get(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ket(e,t,r){const a=UW((r||{}).ignore||[]),s=Yet(t);let o=-1;for(;++o<s.length;)Rje(e,"text",l);function l(u,d){let h=-1,f;for(;++h<d.length;){const p=d[h],y=f?f.children:void 0;if(a(p,y?y.indexOf(p):void 0,f))return;f=p}if(f)return c(u,d)}function c(u,d){const h=d[d.length-1],f=s[o][0],p=s[o][1];let y=0;const v=h.children.indexOf(u);let g=!1,b=[];f.lastIndex=0;let x=f.exec(u.value);for(;x;){const _=x.index,w={index:x.index,input:x.input,stack:[...d,u]};let j=p(...x,w);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?f.lastIndex=_+1:(y!==_&&b.push({type:"text",value:u.value.slice(y,_)}),Array.isArray(j)?b.push(...j):j&&b.push(j),y=_+x[0].length,g=!0),!f.global)break;x=f.exec(u.value)}return g?(y<u.value.length&&b.push({type:"text",value:u.value.slice(y)}),h.children.splice(v,1,...b)):b=[u],v+b.length}}function Yet(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const a=r[n];t.push([Xet(a[0]),Zet(a[1])])}return t}function Xet(e){return typeof e=="string"?new RegExp(Get(e),"g"):e}function Zet(e){return typeof e=="function"?e:function(){return e}}const tX="phrasing",rX=["autolink","link","image","label"];
vendor: 5,034 bytes, lines 7939-7940
7939function Qet(){return{transforms:[itt],enter:{literalAutolink:ett,literalAutolinkEmail:nX,literalAutolinkHttp:nX,literalAutolinkWww:nX},exit:{literalAutolink:att,literalAutolinkEmail:ntt,literalAutolinkHttp:ttt,literalAutolinkWww:rtt}}}function Jet(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:tX,notInConstruct:rX},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:tX,notInConstruct:rX},{character:":",before:"[ps]",after:"\\/",inConstruct:tX,notInConstruct:rX}]}}function ett(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nX(e){this.config.enter.autolinkProtocol.call(this,e)}function ttt(e){this.config.exit.autolinkProtocol.call(this,e)}function rtt(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ntt(e){this.config.exit.autolinkEmail.call(this,e)}function att(e){this.exit(e)}function itt(e){Ket(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,stt],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ott]],{ignore:["link","linkReference"]})}function stt(e,t,r,n,a){let s="";if(!Bje(a)||(/^w/i.test(t)&&(r=t+r,t="",s="http://"),!ltt(r)))return!1;const o=ctt(r+n);if(!o[0])return!1;const l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function ott(e,t,r,n){return!Bje(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function ltt(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ctt(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const a=Tfe(e,"(");let s=Tfe(e,")");for(;n!==-1&&a>s;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),s++;return[e,r]}function Bje(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||N0(r)||$W(r))&&(!t||r!==47)}zje.peek=vtt;function utt(){this.buffer()}function dtt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function htt(){this.buffer()}function ftt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ptt(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=bl(this.sliceSerialize(e)).toLowerCase(),r.label=t}function mtt(e){this.exit(e)}function gtt(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=bl(this.sliceSerialize(e)).toLowerCase(),r.label=t}function ytt(e){this.exit(e)}function vtt(){return"["}function zje(e,t,r,n){const a=r.createTracker(n);let s=a.move("[^");const o=r.enter("footnoteReference"),l=r.enter("reference");return s+=a.move(r.safe(r.associationId(e),{after:"]",before:s})),l(),o(),s+=a.move("]"),s}function xtt(){return{enter:{gfmFootnoteCallString:utt,gfmFootnoteCall:dtt,gfmFootnoteDefinitionLabelString:htt,gfmFootnoteDefinition:ftt},exit:{gfmFootnoteCallString:ptt,gfmFootnoteCall:mtt,gfmFootnoteDefinitionLabelString:gtt,gfmFootnoteDefinition:ytt}}}function btt(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:zje},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,a,s,o){const l=s.createTracker(o);let c=l.move("[^");const u=s.enter("footnoteDefinition"),d=s.enter("label");return c+=l.move(s.safe(s.associationId(n),{before:c,after:"]"})),d(),c+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),c+=l.move((t?` 7940`:" ")+s.indentLines(s.containerFlow(n,l.current()),t?Uje:wtt))),u(),c}}function wtt(e,t,r){return t===0?e:Uje(e,t,r)}function Uje(e,t,r){return(r?"":" ")+e}const ktt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qje.peek=Ctt;function _tt(){return{canContainEols:["delete"],enter:{strikethrough:jtt},exit:{strikethrough:Ett}}}function Stt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ktt}],handlers:{delete:qje}}}function jtt(e){this.enter({type:"delete",children:[]},e)}function Ett(e){this.exit(e)}function qje(e,t,r,n){const a=r.createTracker(n),s=r.enter("strikethrough");let o=a.move("~~");return o+=r.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),s(),o}function Ctt(){return"~"}function Ntt(e){return e.length}function Ttt(e,t){const r=t||{},n=(r.align||[]).concat(),a=r.stringLength||Ntt,s=[],o=[],l=[],c=[];let u=0,d=-1;for(;++d<e.length;){const m=[],v=[];let g=-1;for(e[d].length>u&&(u=e[d].length);++g<e[d].length;){const b=Att(e[d][g]);if(r.alignDelimiters!==!1){const x=a(b);v[g]=x,(c[g]===void 0||x>c[g])&&(c[g]=x)}m.push(b)}o[d]=m,l[d]=v}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<u;)s[h]=Afe(n[h]);else{const m=Afe(n);for(;++h<u;)s[h]=m}h=-1;const f=[],p=[];for(;++h<u;){const m=s[h];let v="",g="";m===99?(v=":",g=":"):m===108?v=":":m===114&&(g=":");
vendor: 7,447 bytes, lines 7940-7952
7940let b=r.alignDelimiters===!1?1:Math.max(1,c[h]-v.length-g.length);const x=v+"-".repeat(b)+g;r.alignDelimiters!==!1&&(b=v.length+b+g.length,b>c[h]&&(c[h]=b),p[h]=b),f[h]=x}o.splice(1,0,f),l.splice(1,0,p),d=-1;const y=[];for(;++d<o.length;){const m=o[d],v=l[d];h=-1;const g=[];for(;++h<u;){const b=m[h]||"";let x="",_="";if(r.alignDelimiters!==!1){const w=c[h]-(v[h]||0),j=s[h];j===114?x=" ".repeat(w):j===99?w%2?(x=" ".repeat(w/2+.5),_=" ".repeat(w/2-.5)):(x=" ".repeat(w/2),_=x):_=" ".repeat(w)}r.delimiterStart!==!1&&!h&&g.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&b==="")&&(r.delimiterStart!==!1||h)&&g.push(" "),r.alignDelimiters!==!1&&g.push(x),g.push(b),r.alignDelimiters!==!1&&g.push(_),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||h!==u-1)&&g.push("|")}y.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return y.join(` 7941`)}function Att(e){return e==null?"":String(e)}function Afe(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Mfe={}.hasOwnProperty;function Hje(e,t){const r=t||{};function n(a,...s){let o=n.invalid;const l=n.handlers;if(a&&Mfe.call(a,e)){const c=String(a[e]);o=Mfe.call(l,c)?l[c]:n.unknown}if(o)return o.call(this,a,...s)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}function Mtt(e,t,r,n){const a=r.enter("blockquote"),s=r.createTracker(n);s.move("> "),s.shift(2);const o=r.indentLines(r.containerFlow(e,s.current()),Itt);return a(),o}function Itt(e,t,r){return">"+(r?"":" ")+e}function Ptt(e,t){return Ife(e,t.inConstruct,!0)&&!Ife(e,t.notInConstruct,!1)}function Ife(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Pfe(e,t,r,n){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===` 7942`&&Ptt(r.stack,r.unsafe[a]))return/[ \t]/.test(n.before)?"":" ";return`\\ 7943`}function Ltt(e,t){const r=String(e);let n=r.indexOf(t),a=n,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===a?++s>o&&(o=s):s=1,a=n+t.length,n=r.indexOf(t,a);return o}function Ott(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Rtt(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Dtt(e,t,r,n){const a=Rtt(r),s=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(Ott(e,r)){const h=r.enter("codeIndented"),f=r.indentLines(s,Ftt);return h(),f}const l=r.createTracker(n),c=a.repeat(Math.max(Ltt(s,a)+1,3)),u=r.enter("codeFenced");let d=l.move(c);if(e.lang){const h=r.enter(`codeFencedLang${o}`);d+=l.move(r.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=r.enter(`codeFencedMeta${o}`);d+=l.move(" "),d+=l.move(r.safe(e.meta,{before:d,after:` 7944`,encode:["`"],...l.current()})),h()}return d+=l.move(` 7945`),s&&(d+=l.move(s+` 7946`)),d+=l.move(c),u(),d}function Ftt(e,t,r){return(r?"":" ")+e}function Xie(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function $tt(e,t,r,n){const a=Xie(r),s=a==='"'?"Quote":"Apostrophe",o=r.enter("definition");let l=r.enter("label");const c=r.createTracker(n);let u=c.move("[");return u+=c.move(r.safe(r.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(r.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=r.enter("destinationRaw"),u+=c.move(r.safe(e.url,{before:u,after:e.title?" ":` 7947`,...c.current()}))),l(),e.title&&(l=r.enter(`title${s}`),u+=c.move(" "+a),u+=c.move(r.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),l()),o(),u}function Btt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Mk(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fH(e,t,r){const n=b2(e),a=b2(t);return n===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Vje.peek=ztt;function Vje(e,t,r,n){const a=Btt(r),s=r.enter("emphasis"),o=r.createTracker(n),l=o.move(a);let c=o.move(r.containerPhrasing(e,{after:a,before:l,...o.current()}));const u=c.charCodeAt(0),d=fH(n.before.charCodeAt(n.before.length-1),u,a);d.inside&&(c=Mk(u)+c.slice(1));const h=c.charCodeAt(c.length-1),f=fH(n.after.charCodeAt(0),h,a);f.inside&&(c=c.slice(0,-1)+Mk(h));const p=o.move(a);return s(),r.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},l+c+p}function ztt(e,t,r){return r.options.emphasis||"*"}function Utt(e,t){let r=!1;return HW(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,vte}),!!((!e.depth||e.depth<3)&&Uie(e)&&(t.options.setext||r))}function qtt(e,t,r,n){const a=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(n);if(Utt(e,r)){const d=r.enter("headingSetext"),h=r.enter("phrasing"),f=r.containerPhrasing(e,{...s.current(),before:` 7948`,after:` 7949`});return h(),d(),f+` 7950`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(` 7951`))+1))}const o="#".repeat(a),l=r.enter("headingAtx"),c=r.enter("phrasing");s.move(o+" ");let u=r.containerPhrasing(e,{before:"# ",after:` 7952`,...s.current()});return/^[\t ]/.test(u)&&(u=Mk(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,r.options.closeAtx&&(u+=" "+o),c(),l(),u}Wje.peek=Htt;function Wje(e){return e.value||""}function Htt(){return"<"}Gje.peek=Vtt;function Gje(e,t,r,n){const a=Xie(r),s=a==='"'?"Quote":"Apostrophe",o=r.enter("image");let l=r.enter("label");const c=r.createTracker(n);let u=c.move("![");return u+=c.move(r.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(r.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=r.enter("destinationRaw"),u+=c.move(r.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=r.enter(`title${s}`),u+=c.move(" "+a),u+=c.move(r.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),l()),u+=c.move(")"),o(),u}function Vtt(){return"!"}Kje.peek=Wtt;function Kje(e,t,r,n){const a=e.referenceType,s=r.enter("imageReference");let o=r.enter("label");const l=r.createTracker(n);let c=l.move("![");const u=r.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const d=r.stack;r.stack=[],o=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...l.current()});return o(),r.stack=d,s(),a==="full"||!u||u!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Wtt(){return"!"}Yje.peek=Gtt;function Yje(e,t,r){let n=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(n);)a+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++s<r.unsafe.length;){const o=r.unsafe[s],l=r.compilePattern(o);let c;if(o.atBreak)for(;c=l.exec(n);){let u=c.index;
vendor: 5,501 bytes, line 7952
7952n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(c.index+1)}}return a+n+a}function Gtt(){return"`"}function Xje(e,t){const r=Uie(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Zje.peek=Ktt;function Zje(e,t,r,n){const a=Xie(r),s=a==='"'?"Quote":"Apostrophe",o=r.createTracker(n);let l,c;if(Xje(e,r)){const d=r.stack;r.stack=[],l=r.enter("autolink");let h=o.move("<");return h+=o.move(r.containerPhrasing(e,{before:h,after:">",...o.current()})),h+=o.move(">"),l(),r.stack=d,h}l=r.enter("link"),c=r.enter("label");let u=o.move("[");return u+=o.move(r.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(c=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=r.enter(`title${s}`),u+=o.move(" "+a),u+=o.move(r.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),c()),u+=o.move(")"),l(),u}function Ktt(e,t,r){return Xje(e,r)?"<":"["}Qje.peek=Ytt;function Qje(e,t,r,n){const a=e.referenceType,s=r.enter("linkReference");let o=r.enter("label");const l=r.createTracker(n);let c=l.move("[");const u=r.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const d=r.stack;r.stack=[],o=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...l.current()});return o(),r.stack=d,s(),a==="full"||!u||u!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Ytt(){return"["}function Zie(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Xtt(e){const t=Zie(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Ztt(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Jje(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Qtt(e,t,r,n){const a=r.enter("list"),s=r.bulletCurrent;let o=e.ordered?Ztt(r):Zie(r);const l=e.ordered?o==="."?")":".":Xtt(r);let c=t&&r.bulletLastUsed?o===r.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(c=!0),Jje(r)===o&&d){let h=-1;for(;++h<e.children.length;){const f=e.children[h];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=l),r.bulletCurrent=o;const u=r.containerFlow(e,n);return r.bulletLastUsed=o,r.bulletCurrent=s,a(),u}function Jtt(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ert(e,t,r,n){const a=Jtt(r);let s=r.bulletCurrent||Zie(r);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=r.createTracker(n);l.move(s+" ".repeat(o-s.length)),l.shift(o);const c=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),d);return c(),u;function d(h,f,p){return f?(p?"":" ".repeat(o))+h:(p?s:s+" ".repeat(o-s.length))+h}}function trt(e,t,r,n){const a=r.enter("paragraph"),s=r.enter("phrasing"),o=r.containerPhrasing(e,n);return s(),a(),o}const rrt=UW(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function nrt(e,t,r,n){return(e.children.some(function(o){return rrt(o)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function art(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}e5e.peek=irt;function e5e(e,t,r,n){const a=art(r),s=r.enter("strong"),o=r.createTracker(n),l=o.move(a+a);let c=o.move(r.containerPhrasing(e,{after:a,before:l,...o.current()}));const u=c.charCodeAt(0),d=fH(n.before.charCodeAt(n.before.length-1),u,a);d.inside&&(c=Mk(u)+c.slice(1));const h=c.charCodeAt(c.length-1),f=fH(n.after.charCodeAt(0),h,a);f.inside&&(c=c.slice(0,-1)+Mk(h));const p=o.move(a+a);return s(),r.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},l+c+p}function irt(e,t,r){return r.options.strong||"*"}
vendor: 4,105 bytes, lines 7952-7954
7952function srt(e,t,r,n){return r.safe(e.value,n)}function ort(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function lrt(e,t,r){const n=(Jje(r)+(r.options.ruleSpaces?" ":"")).repeat(ort(r));return r.options.ruleSpaces?n.slice(0,-1):n}const t5e={blockquote:Mtt,break:Pfe,code:Dtt,definition:$tt,emphasis:Vje,hardBreak:Pfe,heading:qtt,html:Wje,image:Gje,imageReference:Kje,inlineCode:Yje,link:Zje,linkReference:Qje,list:Qtt,listItem:ert,paragraph:trt,root:nrt,strong:e5e,text:srt,thematicBreak:lrt};function crt(){return{enter:{table:urt,tableData:Lfe,tableHeader:Lfe,tableRow:hrt},exit:{codeText:frt,table:drt,tableData:aX,tableHeader:aX,tableRow:aX}}}function urt(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function drt(e){this.exit(e),this.data.inTable=void 0}function hrt(e){this.enter({type:"tableRow",children:[]},e)}function aX(e){this.exit(e)}function Lfe(e){this.enter({type:"tableCell",children:[]},e)}function frt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,prt));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function prt(e,t){return t==="|"?t:e}function mrt(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,a=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 7953`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:l}};function o(p,y,m,v){return u(d(p,m,v),p.align)}function l(p,y,m,v){const g=h(p,m,v),b=u([g]);return b.slice(0,b.indexOf(` 7954`))}function c(p,y,m,v){const g=m.enter("tableCell"),b=m.enter("phrasing"),x=m.containerPhrasing(p,{...v,before:s,after:s});return b(),g(),x}function u(p,y){return Ttt(p,{align:y,alignDelimiters:n,padding:r,stringLength:a})}function d(p,y,m){const v=p.children;let g=-1;const b=[],x=y.enter("table");for(;++g<v.length;)b[g]=h(v[g],y,m);return x(),b}function h(p,y,m){const v=p.children;let g=-1;const b=[],x=y.enter("tableRow");for(;++g<v.length;)b[g]=c(v[g],p,y,m);return x(),b}function f(p,y,m){let v=t5e.inlineCode(p,y,m);return m.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function grt(){return{exit:{taskListCheckValueChecked:Ofe,taskListCheckValueUnchecked:Ofe,paragraph:vrt}}}function yrt(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xrt}}}function Ofe(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function vrt(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const a=t.children;let s=-1,o;for(;++s<a.length;){const l=a[s];if(l.type==="paragraph"){o=l;break}}o===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function xrt(e,t,r,n){const a=e.children[0],s=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=r.createTracker(n);s&&l.move(o);let c=t5e.listItem(e,t,r,{...n,...l.current()});return s&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(d){return d+o}}function brt(){return[Qet(),xtt(),_tt(),crt(),grt()]}function wrt(e){return{extensions:[Jet(),btt(e),Stt(),mrt(e),yrt()]}}const krt={tokenize:Nrt,partial:!0},r5e={tokenize:Trt,partial:!0},n5e={tokenize:Art,partial:!0},a5e={tokenize:Mrt,partial:!0},_rt={tokenize:Irt,partial:!0},i5e={name:"wwwAutolink",tokenize:Ert,previous:o5e},s5e={name:"protocolAutolink",tokenize:Crt,previous:l5e},Fu={name:"emailAutolink",tokenize:jrt,previous:c5e},kc={};function Srt(){return{text:kc}}let Gh=48;
vendor: 9,867 bytes, line 7954
7954for(;Gh<123;)kc[Gh]=Fu,Gh++,Gh===58?Gh=65:Gh===91&&(Gh=97);kc[43]=Fu;kc[45]=Fu;kc[46]=Fu;kc[95]=Fu;kc[72]=[Fu,s5e];kc[104]=[Fu,s5e];kc[87]=[Fu,i5e];kc[119]=[Fu,i5e];function jrt(e,t,r){const n=this;let a,s;return o;function o(h){return!kte(h)||!c5e.call(n,n.previous)||Qie(n.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return kte(h)?(e.consume(h),l):h===64?(e.consume(h),c):r(h)}function c(h){return h===46?e.check(_rt,d,u)(h):h===45||h===95||Ni(h)?(s=!0,e.consume(h),c):d(h)}function u(h){return e.consume(h),a=!0,c}function d(h){return s&&a&&Wi(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):r(h)}}function Ert(e,t,r){const n=this;return a;function a(o){return o!==87&&o!==119||!o5e.call(n,n.previous)||Qie(n.events)?r(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(krt,e.attempt(r5e,e.attempt(n5e,s),r),r)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Crt(e,t,r){const n=this;let a="",s=!1;return o;function o(h){return(h===72||h===104)&&l5e.call(n,n.previous)&&!Qie(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),l):r(h)}function l(h){if(Wi(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(h),c}return r(h)}function c(h){return h===47?(e.consume(h),s?u:(s=!0,c)):r(h)}function u(h){return h===null||dH(h)||sn(h)||N0(h)||$W(h)?r(h):e.attempt(r5e,e.attempt(n5e,d),r)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Nrt(e,t,r){let n=0;return a;function a(o){return(o===87||o===119)&&n<3?(n++,e.consume(o),a):o===46&&n===3?(e.consume(o),s):r(o)}function s(o){return o===null?r(o):t(o)}}function Trt(e,t,r){let n,a,s;return o;function o(u){return u===46||u===95?e.check(a5e,c,l)(u):u===null||sn(u)||N0(u)||u!==45&&$W(u)?c(u):(s=!0,e.consume(u),o)}function l(u){return u===95?n=!0:(a=n,n=void 0),e.consume(u),o}function c(u){return a||n||!s?r(u):t(u)}}function Art(e,t){let r=0,n=0;return a;function a(o){return o===40?(r++,e.consume(o),a):o===41&&n<r?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(a5e,t,s)(o):o===null||sn(o)||N0(o)?t(o):(e.consume(o),a)}function s(o){return o===41&&n++,e.consume(o),a}}function Mrt(e,t,r){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),s):l===93?(e.consume(l),a):l===60||l===null||sn(l)||N0(l)?t(l):r(l)}function a(l){return l===null||l===40||l===91||sn(l)||N0(l)?t(l):n(l)}function s(l){return Wi(l)?o(l):r(l)}function o(l){return l===59?(e.consume(l),n):Wi(l)?(e.consume(l),o):r(l)}}function Irt(e,t,r){return n;function n(s){return e.consume(s),a}function a(s){return Ni(s)?r(s):t(s)}}function o5e(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||sn(e)}function l5e(e){return!Wi(e)}function c5e(e){return!(e===47||kte(e))}function kte(e){return e===43||e===45||e===46||e===95||Ni(e)}function Qie(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const Prt={tokenize:zrt,partial:!0};function Lrt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Frt,continuation:{tokenize:$rt},exit:Brt}},text:{91:{name:"gfmFootnoteCall",tokenize:Drt},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ort,resolveTo:Rrt}}}}function Ort(e,t,r){const n=this;let a=n.events.length;const s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;a--;){const c=n.events[a][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!o||!o._balanced)return r(c);const u=bl(n.sliceSerialize({start:o.end,end:n.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?r(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Rrt(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...l),e}function Drt(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s=0,o;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?r(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(s>999||h===93&&!o||h===null||h===91||sn(h))return r(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(bl(n.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(h)}return sn(h)||(o=!0),s++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,u):u(h)}}function Frt(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s,o=0,l;return c;function c(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):r(y)}function d(y){if(o>999||y===93&&!l||y===null||y===91||sn(y))return r(y);if(y===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return s=bl(n.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return sn(y)||(l=!0),o++,e.consume(y),y===92?h:d}function h(y){return y===91||y===92||y===93?(e.consume(y),o++,d):d(y)}function f(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),a.includes(s)||a.push(s),Sr(e,p,"gfmFootnoteDefinitionWhitespace")):r(y)}function p(y){return t(y)}}function $rt(e,t,r){return e.check(Z_,t,e.attempt(Prt,t,r))}function Brt(e){e.exit("gfmFootnoteDefinition")}function zrt(e,t,r){const n=this;return Sr(e,a,"gfmFootnoteDefinitionIndent",5);function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):r(s)}}function Urt(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:s,resolveAll:a};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function a(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let u=c;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[c][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[c][1].end)},h={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[c][1].start)},f=[["enter",d,l],["enter",o[u][1],l],["exit",o[u][1],l],["enter",h,l]],p=l.parser.constructs.insideSpan.null;p&&Gs(f,f.length,0,BW(p,o.slice(u+1,c),l)),Gs(f,f.length,0,[["exit",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",d,l]]),Gs(o,u-1,c-u+3,f),c=u+f.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function s(o,l,c){const u=this.previous,d=this.events;let h=0;return f;function f(y){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(y):(o.enter("strikethroughSequenceTemporary"),p(y))}function p(y){const m=b2(u);if(y===126)return h>1?c(y):(o.consume(y),h++,p);if(h<2&&!r)return c(y);const v=o.exit("strikethroughSequenceTemporary"),g=b2(y);return v._open=!g||g===2&&!!m,v._close=!m||m===2&&!!g,l(y)}}}class qrt{constructor(){this.map=[]}add(t,r,n){Hrt(this,t,r,n)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let a=n.pop();for(;a;){for(const s of a)t.push(s);a=n.pop()}this.map.length=0}}function Hrt(e,t,r,n){let a=0;if(!(r===0&&n.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...n);return}a+=1}e.map.push([t,r,n])}}function Vrt(e,t){let r=!1;const n=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left"
vendor: 4,362 bytes, line 7954
7954:"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=n.length-1;n[s]=n[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function Wrt(){return{flow:{null:{name:"table",tokenize:Grt,resolveAll:Krt}}}}function Grt(e,t,r){const n=this;let a=0,s=0,o;return l;function l(A){let $=n.events.length-1;for(;$>-1;){const M=n.events[$][1].type;if(M==="lineEnding"||M==="linePrefix")$--;else break}const T=$>-1?n.events[$][1].type:null,F=T==="tableHead"||T==="tableRow"?j:c;return F===j&&n.parser.lazy[n.now().line]?r(A):F(A)}function c(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(o=!0,s+=1),d(A)}function d(A){return A===null?r(A):Ut(A)?s>1?(s=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):r(A):mr(A)?Sr(e,d,"whitespace")(A):(s+=1,o&&(o=!1,a+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),h(A)))}function h(A){return A===null||A===124||sn(A)?(e.exit("data"),d(A)):(e.consume(A),A===92?f:h)}function f(A){return A===92||A===124?(e.consume(A),h):h(A)}function p(A){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(A):(e.enter("tableDelimiterRow"),o=!1,mr(A)?Sr(e,y,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):y(A))}function y(A){return A===45||A===58?v(A):A===124?(o=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),m):w(A)}function m(A){return mr(A)?Sr(e,v,"whitespace")(A):v(A)}function v(A){return A===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),g):A===45?(s+=1,g(A)):A===null||Ut(A)?_(A):w(A)}function g(A){return A===45?(e.enter("tableDelimiterFiller"),b(A)):w(A)}function b(A){return A===45?(e.consume(A),b):A===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(A))}function x(A){return mr(A)?Sr(e,_,"whitespace")(A):_(A)}function _(A){return A===124?y(A):A===null||Ut(A)?!o||a!==s?w(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):w(A)}function w(A){return r(A)}function j(A){return e.enter("tableRow"),E(A)}function E(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),E):A===null||Ut(A)?(e.exit("tableRow"),t(A)):mr(A)?Sr(e,E,"whitespace")(A):(e.enter("data"),C(A))}function C(A){return A===null||A===124||sn(A)?(e.exit("data"),E(A)):(e.consume(A),A===92?N:C)}function N(A){return A===92||A===124?(e.consume(A),C):C(A)}}function Krt(e,t){let r=-1,n=!0,a=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,c=0,u,d,h;const f=new qrt;for(;++r<e.length;){const p=e[r],y=p[1];p[0]==="enter"?y.type==="tableHead"?(l=!1,c!==0&&(Rfe(f,t,c,u,d),d=void 0,c=0),u={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},f.add(r,0,[["enter",u,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(n=!0,h=void 0,s=[0,0,0,0],o=[0,r+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},f.add(r,0,[["enter",d,t]])),a=y.type==="tableDelimiterRow"?2:d?3:1):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(n=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],h=N3(f,t,s,a,void 0,h),s=[0,0,0,0]),o[2]=r)):y.type==="tableCellDivider"&&(n?n=!1:(s[1]!==0&&(o[0]=o[1],h=N3(f,t,s,a,void 0,h)),s=o,o=[s[1],r,0,0])):y.type==="tableHead"?(l=!0,c=r):y.type==="tableRow"||y.type==="tableDelimiterRow"?(c=r,s[1]!==0?(o[0]=o[1],h=N3(f,t,s,a,r,h)):o[1]!==0&&(h=N3(f,t,o,a,r,h)),a=0):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(o[3]=r)}for(c!==0&&Rfe(f,t,c,u,d),f.consume(t.events),r=-1;++r<t.events.length;){const p=t.events[r];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Vrt(t.events,r))}return e}function N3(e,t,r,n,a,s){const o=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";r[0]!==0&&(s.end=Object.assign({},$g(t.events,r[0])),e.add(r[0],0,[["exit",s,t]]));const c=$g(t.events,r[1]);if(s={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(r[1],0,[["enter",s,t]]),r[2]!==0){const u=$g(t.events,r[2]),d=$g(t.events,r[3]),h={type:l,start:Object.assign({},u),end:Object.assign({},d)};
vendor: 18,957 bytes, lines 7954-7955
7954if(e.add(r[2],0,[["enter",h,t]]),n!==2){const f=t.events[r[2]],p=t.events[r[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const y=r[2]+1,m=r[3]-r[2]-1;e.add(y,m,[])}}e.add(r[3]+1,0,[["exit",h,t]])}return a!==void 0&&(s.end=Object.assign({},$g(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function Rfe(e,t,r,n,a){const s=[],o=$g(t.events,r);a&&(a.end=Object.assign({},o),s.push(["exit",a,t])),n.end=Object.assign({},o),s.push(["exit",n,t]),e.add(r+1,0,s)}function $g(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const Yrt={name:"tasklistCheck",tokenize:Zrt};function Xrt(){return{text:{91:Yrt}}}function Zrt(e,t,r){const n=this;return a;function a(c){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),s)}function s(c){return sn(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):r(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):r(c)}function l(c){return Ut(c)?t(c):mr(c)?e.check({tokenize:Qrt},t,r)(c):r(c)}}function Qrt(e,t,r){return Sr(e,n,"whitespace");function n(a){return a===null?r(a):t(a)}}function Jrt(e){return yje([Srt(),Lrt(),Urt(e),Wrt(),Xrt()])}const ent={};function tnt(e){const t=this,r=e||ent,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(Jrt(r)),s.push(brt()),o.push(wrt(r))}const Dfe=/[#.]/g;function rnt(e,t){const r=e||"",n={};let a=0,s,o;for(;a<r.length;){Dfe.lastIndex=a;const l=Dfe.exec(r),c=r.slice(a,l?l.index:r.length);c&&(s?s==="#"?n.id=c:Array.isArray(n.className)?n.className.push(c):n.className=[c]:o=c,a+=c.length),l&&(s=l[0],a++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function u5e(e,t,r){const n=r?snt(r):void 0;function a(s,o,...l){let c;if(s==null){c={type:"root",children:[]};const u=o;l.unshift(u)}else{c=rnt(s,t);const u=c.tagName.toLowerCase(),d=n?n.get(u):void 0;if(c.tagName=d||u,nnt(o))l.unshift(o);else for(const[h,f]of Object.entries(o))ant(e,c.properties,h,f)}for(const u of l)_te(c.children,u);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function nnt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const a=t[n];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const s=a;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function ant(e,t,r,n){const a=RW(e,r);let s;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;s=n}else typeof n=="boolean"?s=n:typeof n=="string"?a.spaceSeparated?s=Hhe(n):a.commaSeparated?s=$he(n):a.commaOrSpaceSeparated?s=Hhe($he(n).join(" ")):s=Ffe(a,a.property,n):Array.isArray(n)?s=[...n]:s=a.property==="style"?int(n):String(n);if(Array.isArray(s)){const o=[];for(const l of s)o.push(Ffe(a,a.property,l));s=o}a.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function _te(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)_te(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?_te(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ffe(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Tk(r)===Tk(t)))return!0}return r}function int(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function snt(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const ont=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],lnt=u5e(X_,"div"),cnt=u5e(vh,"g",ont);function unt(e){const t=String(e),r=[];return{toOffset:a,toPoint:n};function n(s){if(typeof s=="number"&&s>-1&&s<=t.length){let o=0;for(;;){let l=r[o];if(l===void 0){const c=$fe(t,r[o-1]);l=c===-1?t.length+1:c+1,r[o]=l}if(l>s)return{line:o+1,column:s-(o>0?r[o-1]:0)+1,offset:s};o++}}}function a(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;r.length<s.line;){const l=r[r.length-1],c=$fe(t,l),u=c===-1?t.length+1:c+1;if(l===u)break;r.push(u)}const o=(s.line>1?r[s.line-2]:0)+s.column-1;if(o<r[s.line-1])return o}}}function $fe(e,t){const r=e.indexOf("\r",t),n=e.indexOf(` 7955`,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const L1={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},d5e={}.hasOwnProperty,dnt=Object.prototype;function hnt(e,t){const r=t||{};return Jie({file:r.file||void 0,location:!1,schema:r.space==="svg"?vh:X_,verbose:r.verbose||!1},e)}function Jie(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},JU(e,n,r),r}case"#document":case"#document-fragment":{const n=t,a="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:h5e(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const s=String(e.file),o=unt(s),l=o.toPoint(0),c=o.toPoint(s.length);r.position={start:l,end:c}}return r}case"#documentType":{const n=t;return r={type:"doctype"},JU(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},JU(e,n,r),r}default:return r=fnt(e,t),r}}function h5e(e,t){let r=-1;const n=[];for(;++r<t.length;){const a=Jie(e,t[r]);n.push(a)}return n}function fnt(e,t){const r=e.schema;e.schema=t.namespaceURI===L1.svg?vh:X_;let n=-1;const a={};for(;++n<t.attrs.length;){const l=t.attrs[n],c=(l.prefix?l.prefix+":":"")+l.name;d5e.call(dnt,c)||(a[c]=l.value)}const o=(e.schema.space==="svg"?cnt:lnt)(t.tagName,a,h5e(e,t.childNodes));if(JU(e,t,o),o.tagName==="template"){const l=t,c=l.sourceCodeLocation,u=c&&c.startTag&&ay(c.startTag),d=c&&c.endTag&&ay(c.endTag),h=Jie(e,l.content);u&&d&&e.file&&(h.position={start:u.end,end:d.start}),o.content=h}return e.schema=r,o}function JU(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=pnt(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function pnt(e,t,r){const n=ay(r);if(t.type==="element"){const a=t.children[t.children.length-1];if(n&&!r.endTag&&a&&a.position&&a.position.end&&(n.end=Object.assign({},a.position.end)),e.verbose){const s={};let o;if(r.attrs)for(o in r.attrs)d5e.call(r.attrs,o)&&(s[RW(e.schema,o).property]=ay(r.attrs[o]));r.startTag;const l=ay(r.startTag),c=r.endTag?ay(r.endTag):void 0,u={opening:l};c&&(u.closing=c),u.properties=s,t.data={position:u}}}return n}function ay(e){const t=Bfe({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Bfe({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Bfe(e){return e.line&&e.column?e:void 0}const mnt={},gnt={}.hasOwnProperty,f5e=Hje("type",{handlers:{root:vnt,element:_nt,text:wnt,comment:knt,doctype:bnt}});function ynt(e,t){const n=(t||mnt).space;return f5e(e,n==="svg"?vh:X_)}function vnt(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=ese(e.children,r,t),Nv(e,r),r}function xnt(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=ese(e.children,r,t),Nv(e,r),r}function bnt(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Nv(e,t),t}function wnt(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Nv(e,t),t}function knt(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Nv(e,t),t}function _nt(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=vh);const a=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&gnt.call(e.properties,s)){const c=Snt(n,s,e.properties[s]);c&&a.push(c)}}const o=n.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:L1[o],childNodes:[],parentNode:null};return l.childNodes=ese(e.children,l,n),Nv(e,l),e.tagName==="template"&&e.content&&(l.content=xnt(e.content,n)),l}function Snt(e,t,r){const n=RW(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?rje(r):uje(r));const a={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const s=a.name.indexOf(":");s<0?a.prefix="":(a.name=a.name.slice(s+1),a.prefix=n.attribute.slice(0,s)),a.namespace=L1[n.space]}return a}function ese(e,t,r){let n=-1;const a=[];if(e)for(;++n<e.length;){const s=f5e(e[n],r);s.parentNode=t,a.push(s)}return a}function Nv(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const jnt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ent=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Sn="�";var he;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(he||(he={}));const ts={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function p5e(e){return e>=55296&&e<=57343}function Cnt(e){return e>=56320&&e<=57343}function Nnt(e,t){return(e-55296)*1024+9216+t}function m5e(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function g5e(e){return e>=64976&&e<=65007||Ent.has(e)}var Ae;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ae||(Ae={}));const Tnt=65536;class Ant{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Tnt,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:n,col:a,offset:s}=this,o=a+r,l=s+r;return{code:t,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:l,endOffset:l}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(Cnt(r))return this.pos++,this._addGap(),Nnt(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,he.EOF;return this._err(Ae.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,he.EOF;const n=this.html.charCodeAt(r);return n===he.CARRIAGE_RETURN?he.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,he.EOF;let t=this.html.charCodeAt(this.pos);return t===he.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,he.LINE_FEED):t===he.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,p5e(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===he.LINE_FEED||t===he.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){m5e(t)?this._err(Ae.controlCharacterInInputStream):g5e(t)&&this._err(Ae.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var hr;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(hr||(hr={}));function y5e(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const Mnt=new Uint16Array('
vendor: 16,129 bytes, line 7955
7955áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 7955
7955ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 7955
7955astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
7955'.split("").map(e=>e.charCodeAt(0))),Int=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Pnt(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Int.get(e))!==null&&t!==void 0?t:e}var Xa;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Xa||(Xa={}));const Lnt=32;var Id;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Id||(Id={}));function Ste(e){return e>=Xa.ZERO&&e<=Xa.NINE}function Ont(e){return e>=Xa.UPPER_A&&e<=Xa.UPPER_F||e>=Xa.LOWER_A&&e<=Xa.LOWER_F}function Rnt(e){return e>=Xa.UPPER_A&&e<=Xa.UPPER_Z||e>=Xa.LOWER_A&&e<=Xa.LOWER_Z||Ste(e)}function Dnt(e){return e===Xa.EQUALS||Rnt(e)}var Va;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Va||(Va={}));var eu;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(eu||(eu={}));class Fnt{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Va.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=eu.Strict}startEntity(t){this.decodeMode=t,this.state=Va.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Va.EntityStart:return t.charCodeAt(r)===Xa.NUM?(this.state=Va.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Va.NamedEntity,this.stateNamedEntity(t,r));case Va.NumericStart:return this.stateNumericStart(t,r);case Va.NumericDecimal:return this.stateNumericDecimal(t,r);case Va.NumericHex:return this.stateNumericHex(t,r);case Va.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|Lnt)===Xa.LOWER_X?(this.state=Va.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Va.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,a){if(r!==n){const s=n-r;this.result=this.result*Math.pow(a,s)+Number.parseInt(t.substr(r,s),a),this.consumed+=s}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(Ste(a)||Ont(a))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(Ste(a))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Xa.SEMI)this.consumed+=1;else if(this.decodeMode===eu.Strict)return 0;return this.emitCodePoint(Pnt(this.result),this.consumed),this.errors&&(t!==Xa.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let a=n[this.treeIndex],s=(a&Id.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const o=t.charCodeAt(r);if(this.treeIndex=$nt(n,a,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===eu.Attribute&&(s===0||Dnt(o))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],s=(a&Id.VALUE_LENGTH)>>14,s!==0){if(o===Xa.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==eu.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,a=(n[r]&Id.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[t]&~Id.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case Va.NamedEntity:return this.result!==0&&(this.decodeMode!==eu.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Va.NumericDecimal:return this.emitNumericEntity(0,2);case Va.NumericHex:return this.emitNumericEntity(0,3);case Va.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Va.EntityStart:return 0}}}function $nt(e,t,r,n){const a=(t&Id.BRANCH_LENGTH)>>7,s=t&Id.JUMP_TABLE;if(a===0)return s!==0&&n===s?r:-1;if(s){const c=n-s;return c<0||c>=a?-1:e[r+c]-1}let o=r,l=o+a-1;for(;o<=l;){const c=o+l>>>1,u=e[c];if(u<n)o=c+1;else if(u>n)l=c-1;else return e[c+a]}return-1}var Ve;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Ve||(Ve={}));var c0;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(c0||(c0={}));var ho;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ho||(ho={}));var Se;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="str
7955ike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(Se||(Se={}));var O;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(O||(O={}));const Bnt=new Map([[Se.A,O.A],[Se.ADDRESS,O.ADDRESS],[Se.ANNOTATION_XML,O.ANNOTATION_XML],[Se.APPLET,O.APPLET],[Se.AREA,O.AREA],[Se.ARTICLE,O.ARTICLE],[Se.ASIDE,O.ASIDE],[Se.B,O.B],[Se.BASE,O.BASE],[Se.BASEFONT,O.BASEFONT],[Se.BGSOUND,O.BGSOUND],[Se.BIG,O.BIG],[Se.BLOCKQUOTE,O.BLOCKQUOTE],[Se.BODY,O.BODY],[Se.BR,O.BR],[Se.BUTTON,O.BUTTON],[Se.CAPTION,O.CAPTION],[Se.CENTER,O.CENTER],[Se.CODE,O.CODE],[Se.COL,O.COL],[Se.COLGROUP,O.COLGROUP],[Se.DD,O.DD],[Se.DESC,O.DESC],[Se.DETAILS,O.DETAILS],[Se.DIALOG,O.DIALOG],[Se.DIR,O.DIR],[Se.DIV,O.DIV],[Se.DL,O.DL],[Se.DT,O.DT],[Se.EM,O.EM],[Se.EMBED,O.EMBED],[Se.FIELDSET,O.FIELDSET],[Se.FIGCAPTION,O.FIGCAPTION],[Se.FIGURE,O.FIGURE],[Se.FONT,O.FONT],[Se.FOOTER,O.FOOTER],[Se.FOREIGN_OBJECT,O.FOREIGN_OBJECT],[Se.FORM,O.FORM],[Se.FRAME,O.FRAME],[Se.FRAMESET,O.FRAMESET],[Se.H1,O.H1],[Se.H2,O.H2],[Se.H3,O.H3],[Se.H4,O.H4],[Se.H5,O.H5],[Se.H6,O.H6],[Se.HEAD,O.HEAD],[Se.HEADER,O.HEADER],[Se.HGROUP,O.HGROUP],[Se.HR,O.HR],[Se.HTML,O.HTML],[Se.I,O.I],[Se.IMG,O.IMG],[Se.IMAGE,O.IMAGE],[Se.INPUT,O.INPUT],[Se.IFRAME,O.IFRAME],[Se.KEYGEN,O.KEYGEN],[Se.LABEL,O.LABEL],[Se.LI,O.LI],[Se.LINK,O.LINK],[Se.LISTING,O.LISTING],[Se.MAIN,O.MAIN],[Se.MALIGNMARK,O.MALIGNMARK],[Se.MARQUEE,O.MARQUEE],[Se.MATH,O.MATH],[Se.MENU,O.MENU],[Se.META,O.META],[Se.MGLYPH,O.MGLYPH],[Se.MI,O.MI],[Se.MO,O.MO],[Se.MN,O.MN],[Se.MS,O.MS],[Se.MT
vendor: 118,197 bytes, line 7955
7955EXT,O.MTEXT],[Se.NAV,O.NAV],[Se.NOBR,O.NOBR],[Se.NOFRAMES,O.NOFRAMES],[Se.NOEMBED,O.NOEMBED],[Se.NOSCRIPT,O.NOSCRIPT],[Se.OBJECT,O.OBJECT],[Se.OL,O.OL],[Se.OPTGROUP,O.OPTGROUP],[Se.OPTION,O.OPTION],[Se.P,O.P],[Se.PARAM,O.PARAM],[Se.PLAINTEXT,O.PLAINTEXT],[Se.PRE,O.PRE],[Se.RB,O.RB],[Se.RP,O.RP],[Se.RT,O.RT],[Se.RTC,O.RTC],[Se.RUBY,O.RUBY],[Se.S,O.S],[Se.SCRIPT,O.SCRIPT],[Se.SEARCH,O.SEARCH],[Se.SECTION,O.SECTION],[Se.SELECT,O.SELECT],[Se.SOURCE,O.SOURCE],[Se.SMALL,O.SMALL],[Se.SPAN,O.SPAN],[Se.STRIKE,O.STRIKE],[Se.STRONG,O.STRONG],[Se.STYLE,O.STYLE],[Se.SUB,O.SUB],[Se.SUMMARY,O.SUMMARY],[Se.SUP,O.SUP],[Se.TABLE,O.TABLE],[Se.TBODY,O.TBODY],[Se.TEMPLATE,O.TEMPLATE],[Se.TEXTAREA,O.TEXTAREA],[Se.TFOOT,O.TFOOT],[Se.TD,O.TD],[Se.TH,O.TH],[Se.THEAD,O.THEAD],[Se.TITLE,O.TITLE],[Se.TR,O.TR],[Se.TRACK,O.TRACK],[Se.TT,O.TT],[Se.U,O.U],[Se.UL,O.UL],[Se.SVG,O.SVG],[Se.VAR,O.VAR],[Se.WBR,O.WBR],[Se.XMP,O.XMP]]);function Tv(e){var t;return(t=Bnt.get(e))!==null&&t!==void 0?t:O.UNKNOWN}const Ye=O,znt={[Ve.HTML]:new Set([Ye.ADDRESS,Ye.APPLET,Ye.AREA,Ye.ARTICLE,Ye.ASIDE,Ye.BASE,Ye.BASEFONT,Ye.BGSOUND,Ye.BLOCKQUOTE,Ye.BODY,Ye.BR,Ye.BUTTON,Ye.CAPTION,Ye.CENTER,Ye.COL,Ye.COLGROUP,Ye.DD,Ye.DETAILS,Ye.DIR,Ye.DIV,Ye.DL,Ye.DT,Ye.EMBED,Ye.FIELDSET,Ye.FIGCAPTION,Ye.FIGURE,Ye.FOOTER,Ye.FORM,Ye.FRAME,Ye.FRAMESET,Ye.H1,Ye.H2,Ye.H3,Ye.H4,Ye.H5,Ye.H6,Ye.HEAD,Ye.HEADER,Ye.HGROUP,Ye.HR,Ye.HTML,Ye.IFRAME,Ye.IMG,Ye.INPUT,Ye.LI,Ye.LINK,Ye.LISTING,Ye.MAIN,Ye.MARQUEE,Ye.MENU,Ye.META,Ye.NAV,Ye.NOEMBED,Ye.NOFRAMES,Ye.NOSCRIPT,Ye.OBJECT,Ye.OL,Ye.P,Ye.PARAM,Ye.PLAINTEXT,Ye.PRE,Ye.SCRIPT,Ye.SECTION,Ye.SELECT,Ye.SOURCE,Ye.STYLE,Ye.SUMMARY,Ye.TABLE,Ye.TBODY,Ye.TD,Ye.TEMPLATE,Ye.TEXTAREA,Ye.TFOOT,Ye.TH,Ye.THEAD,Ye.TITLE,Ye.TR,Ye.TRACK,Ye.UL,Ye.WBR,Ye.XMP]),[Ve.MATHML]:new Set([Ye.MI,Ye.MO,Ye.MN,Ye.MS,Ye.MTEXT,Ye.ANNOTATION_XML]),[Ve.SVG]:new Set([Ye.TITLE,Ye.FOREIGN_OBJECT,Ye.DESC]),[Ve.XLINK]:new Set,[Ve.XML]:new Set,[Ve.XMLNS]:new Set},jte=new Set([Ye.H1,Ye.H2,Ye.H3,Ye.H4,Ye.H5,Ye.H6]);Se.STYLE,Se.SCRIPT,Se.XMP,Se.IFRAME,Se.NOEMBED,Se.NOFRAMES,Se.PLAINTEXT;var me;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(me||(me={}));const Jn={DATA:me.DATA,RCDATA:me.RCDATA,RAWTEXT:me.RAWTEXT,SCRIPT_DATA:me.SCRIPT_DATA,PLAINTEXT:me.PLAINTEXT,CDATA_SECTION:me.CDATA_SECTION};function Unt(e){return e>=he.DIGIT_0&&e<=he.DIGIT_9}function _b(e){return e>=he.LATIN_CAPITAL_A&&e<=he.LATIN_CAPITAL_Z}function qnt(e){return e>=he.LATIN_SMALL_A&&e<=he.LATIN_SMALL_Z}function id(e){return qnt(e)||_b(e)}function zfe(e){return id(e)||Unt(e)}function T3(e){return e+32}function v5e(e){return e===he.SPACE||e===he.LINE_FEED||e===he.TABULATION||e===he.FORM_FEED}function Ufe(e){return v5e(e)||e===he.SOLIDUS||e===he.GREATER_THAN_SIGN}function Hnt(e){return e===he.NULL?Ae.nullCharacterReference:e>1114111?Ae.characterReferenceOutsideUnicodeRange:p5e(e)?Ae.surrogateCharacterReference:g5e(e)?Ae.noncharacterCharacterReference:m5e(e)||e===he.CARRIAGE_RETURN?Ae.controlCharacterReference:null}class Vnt{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=me.DATA,this.returnState=me.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ant(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Fnt(Mnt,(n,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ae.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(Ae.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const a=Hnt(n);a&&this._err(a,1)}}:void 0)}_err(t,r=0){var n,a;(a=(n=this.handler).onParseError)===null||a===void 0||a.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n==null||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:hr.START_TAG,tagName:"",tagID:O.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:hr.END_TAG,tagName:"",tagID:O.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:hr.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:hr.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const n=this.currentToken;if(y5e(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const a=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Ae.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Tv(t.tagName),t.type===hr.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case hr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case hr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case hr.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:hr.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=v5e(t)?hr.WHITESPACE_CHARACTER:t===he.NULL?hr.NULL_CHARACTER:hr.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(hr.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=me.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?eu.Attribute:eu.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===me.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===me.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===me.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case me.DATA:{this._stateData(t);break}case me.RCDATA:{this._stateRcdata(t);break}case me.RAWTEXT:{this._stateRawtext(t);break}case me.SCRIPT_DATA:{this._stateScriptData(t);break}case me.PLAINTEXT:{this._statePlaintext(t);break}case me.TAG_OPEN:{this._stateTagOpen(t);break}case me.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case me.TAG_NAME:{this._stateTagName(t);break}case me.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case me.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case me.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case me.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case me.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case me.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case me.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case me.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case me.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case me.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case me.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case me.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case me.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case me.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case me.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case me.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case me.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case me.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case me.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case me.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case me.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case me.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case me.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case me.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case me.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case me.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case me.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case me.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case me.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case me.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case me.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case me.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case me.BOGUS_COMMENT:{this._stateBogusComment(t);break}case me.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case me.COMMENT_START:{this._stateCommentStart(t);break}case me.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case me.COMMENT:{this._stateComment(t);break}case me.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case me.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case me.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case me.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case me.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case me.COMMENT_END:{this._stateCommentEnd(t);break}case me.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case me.DOCTYPE:{this._stateDoctype(t);break}case me.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case me.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case me.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case me.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case me.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case me.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case me.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case me.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case me.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case me.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case me.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case me.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case me.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case me.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case me.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case me.CDATA_SECTION:{this._stateCdataSection(t);break}case me.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case me.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case me.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case me.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case he.LESS_THAN_SIGN:{this.state=me.TAG_OPEN;break}case he.AMPERSAND:{this._startCharacterReference();break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitCodePoint(t);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case he.AMPERSAND:{this._startCharacterReference();break}case he.LESS_THAN_SIGN:{this.state=me.RCDATA_LESS_THAN_SIGN;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Sn);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case he.LESS_THAN_SIGN:{this.state=me.RAWTEXT_LESS_THAN_SIGN;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Sn);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case he.LESS_THAN_SIGN:{this.state=me.SCRIPT_DATA_LESS_THAN_SIGN;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Sn);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case he.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Sn);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(id(t))this._createStartTagToken(),this.state=me.TAG_NAME,this._stateTagName(t);else switch(t){case he.EXCLAMATION_MARK:{this.state=me.MARKUP_DECLARATION_OPEN;break}case he.SOLIDUS:{this.state=me.END_TAG_OPEN;break}case he.QUESTION_MARK:{this._err(Ae.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=me.BOGUS_COMMENT,this._stateBogusComment(t);break}case he.EOF:{this._err(Ae.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ae.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=me.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(id(t))this._createEndTagToken(),this.state=me.TAG_NAME,this._stateTagName(t);else switch(t){case he.GREATER_THAN_SIGN:{this._err(Ae.missingEndTagName),this.state=me.DATA;break}case he.EOF:{this._err(Ae.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Ae.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=me.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:{this.state=me.BEFORE_ATTRIBUTE_NAME;break}case he.SOLIDUS:{this.state=me.SELF_CLOSING_START_TAG;break}case he.GREATER_THAN_SIGN:{this.state=me.DATA,this.emitCurrentTagToken();break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),r.tagName+=Sn;break}case he.EOF:{this._err(Ae.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(_b(t)?T3(t):t)}}_stateRcdataLessThanSign(t){t===he.SOLIDUS?this.state=me.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=me.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){id(t)?(this.state=me.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=me.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=me.BEFORE_ATTRIBUTE_NAME,!1;case he.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=me.SELF_CLOSING_START_TAG,!1;case he.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=me.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=me.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===he.SOLIDUS?this.state=me.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=me.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){id(t)?(this.state=me.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=me.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=me.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case he.SOLIDUS:{this.state=me.SCRIPT_DATA_END_TAG_OPEN;break}case he.EXCLAMATION_MARK:{this.state=me.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=me.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){id(t)?(this.state=me.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=me.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=me.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===he.HYPHEN_MINUS?(this.state=me.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=me.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===he.HYPHEN_MINUS?(this.state=me.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=me.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case he.HYPHEN_MINUS:{this.state=me.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case he.LESS_THAN_SIGN:{this.state=me.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Sn);break}case he.EOF:{this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case he.HYPHEN_MINUS:{this.state=me.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case he.LESS_THAN_SIGN:{this.state=me.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this.state=me.SCRIPT_DATA_ESCAPED,this._emitChars(Sn);break}case he.EOF:{this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=me.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case he.HYPHEN_MINUS:{this._emitChars("-");break}case he.LESS_THAN_SIGN:{this.state=me.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case he.GREATER_THAN_SIGN:{this.state=me.SCRIPT_DATA,this._emitChars(">");break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this.state=me.SCRIPT_DATA_ESCAPED,this._emitChars(Sn);break}case he.EOF:{this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=me.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===he.SOLIDUS?this.state=me.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:id(t)?(this._emitChars("<"),this.state=me.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=me.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){id(t)?(this.state=me.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=me.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=me.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(ts.SCRIPT,!1)&&Ufe(this.preprocessor.peek(ts.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<ts.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=me.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case he.HYPHEN_MINUS:{this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case he.LESS_THAN_SIGN:{this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Sn);break}case he.EOF:{this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case he.HYPHEN_MINUS:{this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case he.LESS_THAN_SIGN:{this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sn);break}case he.EOF:{this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case he.HYPHEN_MINUS:{this._emitChars("-");break}case he.LESS_THAN_SIGN:{this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case he.GREATER_THAN_SIGN:{this.state=me.SCRIPT_DATA,this._emitChars(">");break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sn);break}case he.EOF:{this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===he.SOLIDUS?(this.state=me.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ts.SCRIPT,!1)&&Ufe(this.preprocessor.peek(ts.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<ts.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=me.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=me.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:break;case he.SOLIDUS:case he.GREATER_THAN_SIGN:case he.EOF:{this.state=me.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case he.EQUALS_SIGN:{this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=me.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=me.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:case he.SOLIDUS:case he.GREATER_THAN_SIGN:case he.EOF:{this._leaveAttrName(),this.state=me.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case he.EQUALS_SIGN:{this._leaveAttrName(),this.state=me.BEFORE_ATTRIBUTE_VALUE;break}case he.QUOTATION_MARK:case he.APOSTROPHE:case he.LESS_THAN_SIGN:{this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=Sn;break}default:this.currentAttr.name+=String.fromCodePoint(_b(t)?T3(t):t)}}_stateAfterAttributeName(t){switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:break;case he.SOLIDUS:{this.state=me.SELF_CLOSING_START_TAG;break}case he.EQUALS_SIGN:{this.state=me.BEFORE_ATTRIBUTE_VALUE;break}case he.GREATER_THAN_SIGN:{this.state=me.DATA,this.emitCurrentTagToken();break}case he.EOF:{this._err(Ae.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=me.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:break;case he.QUOTATION_MARK:{this.state=me.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case he.APOSTROPHE:{this.state=me.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case he.GREATER_THAN_SIGN:{this._err(Ae.missingAttributeValue),this.state=me.DATA,this.emitCurrentTagToken();break}default:this.state=me.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case he.QUOTATION_MARK:{this.state=me.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case he.AMPERSAND:{this._startCharacterReference();break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case he.EOF:{this._err(Ae.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case he.APOSTROPHE:{this.state=me.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case he.AMPERSAND:{this._startCharacterReference();break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case he.EOF:{this._err(Ae.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:{this._leaveAttrValue(),this.state=me.BEFORE_ATTRIBUTE_NAME;break}case he.AMPERSAND:{this._startCharacterReference();break}case he.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=me.DATA,this.emitCurrentTagToken();break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case he.QUOTATION_MARK:case he.APOSTROPHE:case he.LESS_THAN_SIGN:case he.EQUALS_SIGN:case he.GRAVE_ACCENT:{this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case he.EOF:{this._err(Ae.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:{this._leaveAttrValue(),this.state=me.BEFORE_ATTRIBUTE_NAME;break}case he.SOLIDUS:{this._leaveAttrValue(),this.state=me.SELF_CLOSING_START_TAG;break}case he.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=me.DATA,this.emitCurrentTagToken();break}case he.EOF:{this._err(Ae.eofInTag),this._emitEOFToken();break}default:this._err(Ae.missingWhitespaceBetweenAttributes),this.state=me.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case he.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=me.DATA,this.emitCurrentTagToken();break}case he.EOF:{this._err(Ae.eofInTag),this._emitEOFToken();break}default:this._err(Ae.unexpectedSolidusInTag),this.state=me.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case he.GREATER_THAN_SIGN:{this.state=me.DATA,this.emitCurrentComment(r);break}case he.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),r.data+=Sn;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(ts.DASH_DASH,!0)?(this._createCommentToken(ts.DASH_DASH.length+1),this.state=me.COMMENT_START):this._consumeSequenceIfMatch(ts.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(ts.DOCTYPE.length+1),this.state=me.DOCTYPE):this._consumeSequenceIfMatch(ts.CDATA_START,!0)?this.inForeignNode?this.state=me.CDATA_SECTION:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(ts.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=me.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(2),this.state=me.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case he.HYPHEN_MINUS:{this.state=me.COMMENT_START_DASH;break}case he.GREATER_THAN_SIGN:{this._err(Ae.abruptClosingOfEmptyComment),this.state=me.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=me.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case he.HYPHEN_MINUS:{this.state=me.COMMENT_END;break}case he.GREATER_THAN_SIGN:{this._err(Ae.abruptClosingOfEmptyComment),this.state=me.DATA,this.emitCurrentComment(r);break}case he.EOF:{this._err(Ae.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=me.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case he.HYPHEN_MINUS:{this.state=me.COMMENT_END_DASH;break}case he.LESS_THAN_SIGN:{r.data+="<",this.state=me.COMMENT_LESS_THAN_SIGN;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),r.data+=Sn;break}case he.EOF:{this._err(Ae.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case he.EXCLAMATION_MARK:{r.data+="!",this.state=me.COMMENT_LESS_THAN_SIGN_BANG;break}case he.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=me.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===he.HYPHEN_MINUS?this.state=me.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=me.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===he.HYPHEN_MINUS?this.state=me.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=me.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==he.GREATER_THAN_SIGN&&t!==he.EOF&&this._err(Ae.nestedComment),this.state=me.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case he.HYPHEN_MINUS:{this.state=me.COMMENT_END;break}case he.EOF:{this._err(Ae.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=me.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case he.GREATER_THAN_SIGN:{this.state=me.DATA,this.emitCurrentComment(r);break}case he.EXCLAMATION_MARK:{this.state=me.COMMENT_END_BANG;break}case he.HYPHEN_MINUS:{r.data+="-";break}case he.EOF:{this._err(Ae.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=me.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case he.HYPHEN_MINUS:{r.data+="--!",this.state=me.COMMENT_END_DASH;break}case he.GREATER_THAN_SIGN:{this._err(Ae.incorrectlyClosedComment),this.state=me.DATA,this.emitCurrentComment(r);break}case he.EOF:{this._err(Ae.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=me.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:{this.state=me.BEFORE_DOCTYPE_NAME;break}case he.GREATER_THAN_SIGN:{this.state=me.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case he.EOF:{this._err(Ae.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Ae.missingWhitespaceBeforeDoctypeName),this.state=me.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(_b(t))this._createDoctypeToken(String.fromCharCode(T3(t))),this.state=me.DOCTYPE_NAME;else switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:break;case he.NULL:{this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(Sn),this.state=me.DOCTYPE_NAME;break}case he.GREATER_THAN_SIGN:{this._err(Ae.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=me.DATA;break}case he.EOF:{this._err(Ae.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=me.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:{this.state=me.AFTER_DOCTYPE_NAME;break}case he.GREATER_THAN_SIGN:{this.state=me.DATA,this.emitCurrentDoctype(r);break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),r.name+=Sn;break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(_b(t)?T3(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:break;case he.GREATER_THAN_SIGN:{this.state=me.DATA,this.emitCurrentDoctype(r);break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(ts.PUBLIC,!1)?this.state=me.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ts.SYSTEM,!1)?this.state=me.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=me.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:{this.state=me.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case he.QUOTATION_MARK:{this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=me.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case he.APOSTROPHE:{this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=me.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case he.GREATER_THAN_SIGN:{this._err(Ae.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=me.DATA,this.emitCurrentDoctype(r);break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=me.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:break;case he.QUOTATION_MARK:{r.publicId="",this.state=me.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case he.APOSTROPHE:{r.publicId="",this.state=me.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case he.GREATER_THAN_SIGN:{this._err(Ae.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=me.DATA,this.emitCurrentDoctype(r);break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=me.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case he.QUOTATION_MARK:{this.state=me.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),r.publicId+=Sn;break}case he.GREATER_THAN_SIGN:{this._err(Ae.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=me.DATA;break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case he.APOSTROPHE:{this.state=me.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),r.publicId+=Sn;break}case he.GREATER_THAN_SIGN:{this._err(Ae.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=me.DATA;break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:{this.state=me.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case he.GREATER_THAN_SIGN:{this.state=me.DATA,this.emitCurrentDoctype(r);break}case he.QUOTATION_MARK:{this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=me.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case he.APOSTROPHE:{this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=me.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=me.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:break;case he.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=me.DATA;break}case he.QUOTATION_MARK:{r.systemId="",this.state=me.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case he.APOSTROPHE:{r.systemId="",this.state=me.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=me.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:{this.state=me.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case he.QUOTATION_MARK:{this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=me.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case he.APOSTROPHE:{this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=me.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case he.GREATER_THAN_SIGN:{this._err(Ae.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=me.DATA,this.emitCurrentDoctype(r);break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=me.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:break;case he.QUOTATION_MARK:{r.systemId="",this.state=me.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case he.APOSTROPHE:{r.systemId="",this.state=me.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case he.GREATER_THAN_SIGN:{this._err(Ae.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=me.DATA,this.emitCurrentDoctype(r);break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=me.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case he.QUOTATION_MARK:{this.state=me.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),r.systemId+=Sn;break}case he.GREATER_THAN_SIGN:{this._err(Ae.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=me.DATA;break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case he.APOSTROPHE:{this.state=me.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter),r.systemId+=Sn;break}case he.GREATER_THAN_SIGN:{this._err(Ae.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=me.DATA;break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case he.SPACE:case he.LINE_FEED:case he.TABULATION:case he.FORM_FEED:break;case he.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=me.DATA;break}case he.EOF:{this._err(Ae.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=me.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case he.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=me.DATA;break}case he.NULL:{this._err(Ae.unexpectedNullCharacter);break}case he.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case he.RIGHT_SQUARE_BRACKET:{this.state=me.CDATA_SECTION_BRACKET;break}case he.EOF:{this._err(Ae.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===he.RIGHT_SQUARE_BRACKET?this.state=me.CDATA_SECTION_END:(this._emitChars("]"),this.state=me.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case he.GREATER_THAN_SIGN:{this.state=me.DATA;break}case he.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=me.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(he.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zfe(this.preprocessor.peek(1))?me.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){zfe(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===he.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const x5e=new Set([O.DD,O.DT,O.LI,O.OPTGROUP,O.OPTION,O.P,O.RB,O.RP,O.RT,O.RTC]),qfe=new Set([...x5e,O.CAPTION,O.COLGROUP,O.TBODY,O.TD,O.TFOOT,O.TH,O.THEAD,O.TR]),pH=new Set([O.APPLET,O.CAPTION,O.HTML,O.MARQUEE,O.OBJECT,O.TABLE,O.TD,O.TEMPLATE,O.TH]),Wnt=new Set([...pH,O.OL,O.UL]),Gnt=new Set([...pH,O.BUTTON]),Hfe=new Set([O.ANNOTATION_XML,O.MI,O.MN,O.MO,O.MS,O.MTEXT]),Vfe=new Set([O.DESC,O.FOREIGN_OBJECT,O.TITLE]),Knt=new Set([O.TR,O.TEMPLATE,O.HTML]),Ynt=new Set([O.TBODY,O.TFOOT,O.THEAD,O.TEMPLATE,O.HTML]),Xnt=new Set([O.TABLE,O.TEMPLATE,O.HTML]),Znt=new Set([O.TD,O.TH]);class Qnt{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=O.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===O.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ve.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){const a=this._indexOf(t)+1;this.items.splice(a,0,r),this.tagIDs.splice(a,0,n),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==Ve.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(jte,Ve.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Znt,Ve.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Xnt,Ve.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Ynt,Ve.HTML)}clearBackToTableRowContext(){this.clearBackTo(Knt,Ve.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===O.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===O.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){const a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Ve.HTML:{if(a===t)return!0;if(r.has(a))return!1;break}case Ve.SVG:{if(Vfe.has(a))return!1;break}case Ve.MATHML:{if(Hfe.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,pH)}hasInListItemScope(t){return this.hasInDynamicScope(t,Wnt)}hasInButtonScope(t){return this.hasInDynamicScope(t,Gnt)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Ve.HTML:{if(jte.has(r))return!0;if(pH.has(r))return!1;break}case Ve.SVG:{if(Vfe.has(r))return!1;break}case Ve.MATHML:{if(Hfe.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Ve.HTML)switch(this.tagIDs[r]){case t:return!0;case O.TABLE:case O.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ve.HTML)switch(this.tagIDs[t]){case O.TBODY:case O.THEAD:case O.TFOOT:return!0;case O.TABLE:case O.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Ve.HTML)switch(this.tagIDs[r]){case t:return!0;case O.OPTION:case O.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&x5e.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&qfe.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&qfe.has(this.currentTagId);)this.pop()}}const iX=3;var Wl;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Wl||(Wl={}));const Wfe={type:Wl.Marker};class Jnt{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const n=[],a=r.length,s=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let l=0;l<this.entries.length;l++){const c=this.entries[l];if(c.type===Wl.Marker)break;const{element:u}=c;if(this.treeAdapter.getTagName(u)===s&&this.treeAdapter.getNamespaceURI(u)===o){const d=this.treeAdapter.getAttrList(u);d.length===a&&n.push({idx:l,attrs:d})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<iX)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<iX)return;const a=new Map(r.map(o=>[o.name,o.value]));let s=0;for(let o=0;o<n.length;o++){const l=n[o];l.attrs.every(c=>a.get(c.name)===c.value)&&(s+=1,s>=iX&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(Wfe)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Wl.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Wl.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Wfe);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===Wl.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===Wl.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Wl.Element&&r.element===t)}}const sd={createDocument(){return{nodeName:"#document",mode:ho.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const a=e.childNodes.find(s=>s.nodeName==="#documentType");if(a)a.name=t,a.publicId=r,a.systemId=n;else{const s={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};sd.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(sd.isTextNode(r)){r.value+=t;return}}sd.appendChild(e,sd.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&sd.isTextNode(n)?n.value+=t:sd.insertBefore(e,sd.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},b5e="html",eat="about:legacy-compat",tat="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",w5e=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],rat=[...w5e,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],nat=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),k5e=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],aat=[...k5e,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Gfe(e,t){return t.some(r=>e.startsWith(r))}function iat(e){return e.name===b5e&&e.publicId===null&&(e.systemId===null||e.systemId===eat)}function sat(e){if(e.name!==b5e)return ho.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===tat)return ho.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),nat.has(r))return ho.QUIRKS;let n=t===null?rat:w5e;if(Gfe(r,n))return ho.QUIRKS;if(n=t===null?k5e:aat,Gfe(r,n))return ho.LIMITED_QUIRKS}return ho.NO_QUIRKS}const Kfe={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},oat="definitionurl",lat="definitionURL",cat=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),uat=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ve.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ve.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ve.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ve.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ve.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ve.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ve.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ve.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ve.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ve.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ve.XMLNS}]]),dat=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),hat=new Set([O.B,O.BIG,O.BLOCKQUOTE,O.BODY,O.BR,O.CENTER,O.CODE,O.DD,O.DIV,O.DL,O.DT,O.EM,O.EMBED,O.H1,O.H2,O.H3,O.H4,O.H5,O.H6,O.HEAD,O.HR,O.I,O.IMG,O.LI,O.LISTING,O.MENU,O.META,O.NOBR,O.OL,O.P,O.PRE,O.RUBY,O.S,O.SMALL,O.SPAN,O.STRONG,O.STRIKE,O.SUB,O.SUP,O.TABLE,O.TT,O.U,O.UL,O.VAR]);function fat(e){const t=e.tagID;return t===O.FONT&&e.attrs.some(({name:n})=>n===c0.COLOR||n===c0.SIZE||n===c0.FACE)||hat.has(t)}function _5e(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===oat){e.attrs[t].name=lat;break}}function S5e(e){for(let t=0;t<e.attrs.length;t++){const r=cat.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function tse(e){for(let t=0;t<e.attrs.length;t++){const r=uat.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function pat(e){const t=dat.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Tv(e.tagName))}function mat(e,t){return t===Ve.MATHML&&(e===O.MI||e===O.MO||e===O.MN||e===O.MS||e===O.MTEXT)}function gat(e,t,r){if(t===Ve.MATHML&&e===O.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===c0.ENCODING){const a=r[n].value.toLowerCase();return a===Kfe.TEXT_HTML||a===Kfe.APPLICATION_XML}}return t===Ve.SVG&&(e===O.FOREIGN_OBJECT||e===O.DESC||e===O.TITLE)}function yat(e,t,r,n){return(!n||n===Ve.HTML)&&gat(e,t,r)||(!n||n===Ve.MATHML)&&mat(e,t)}const vat="hidden",xat=8,bat=3;var be;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(be||(be={}));const wat={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},j5e=new Set([O.TABLE,O.TBODY,O.TFOOT,O.THEAD,O.TR]),Yfe={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:sd,onParseError:null};class Xfe{constructor(t,r,n=null,a=null){this.fragmentContext=n,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=be.INITIAL,this.originalInsertionMode=be.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Yfe,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new Vnt(this.options,this),this.activeFormattingElements=new Jnt(this.treeAdapter),this.fragmentContextID=n?Tv(this.treeAdapter.getTagName(n)):O.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new Qnt(this.document,this.treeAdapter,this)}static parse(t,r){const n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){const n={...Yfe,...r};t??(t=n.treeAdapter.createElement(Se.TEMPLATE,Ve.HTML,[]));const a=n.treeAdapter.createElement("documentmock",Ve.HTML,[]),s=new this(n,a,t);return s.fragmentContextID===O.TEMPLATE&&s.tmplInsertionModeStack.unshift(be.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var a;if(!this.onParseError)return;const s=(a=t.location)!==null&&a!==void 0?a:wat,o={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:n?s.startLine:s.endLine,endCol:n?s.startCol:s.endCol,endOffset:n?s.startOffset:s.endOffset};this.onParseError(o)}onItemPush(t,r,n){var a,s;(s=(a=this.treeAdapter).onItemPush)===null||s===void 0||s.call(a,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(n=this.treeAdapter).onItemPop)===null||a===void 0||a.call(n,t,this.openElements.current),r){let s,o;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,o=this.fragmentContextID):{current:s,currentTagId:o}=this.openElements,this._setContextModes(s,o)}}_setContextModes(t,r){const n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Ve.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,Ve.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=be.TEXT}switchToPlaintextParsing(){this.insertionMode=be.TEXT,this.originalInsertionMode=be.IN_BODY,this.tokenizer.state=Jn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Se.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Ve.HTML))switch(this.fragmentContextID){case O.TITLE:case O.TEXTAREA:{this.tokenizer.state=Jn.RCDATA;break}case O.STYLE:case O.XMP:case O.IFRAME:case O.NOEMBED:case O.NOFRAMES:case O.NOSCRIPT:{this.tokenizer.state=Jn.RAWTEXT;break}case O.SCRIPT:{this.tokenizer.state=Jn.SCRIPT_DATA;break}case O.PLAINTEXT:{this.tokenizer.state=Jn.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",n=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){const n=this.treeAdapter.createElement(t,Ve.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,Ve.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Se.HTML,Ve.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,O.HTML)}_appendCommentNode(t,r){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(r),s=n?a.lastIndexOf(n):a.length,o=a[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:c,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const n=r.location,a=this.treeAdapter.getTagName(t),s=r.type===hr.END_TAG&&a===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===O.SVG&&this.treeAdapter.getTagName(r)===Se.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===Ve.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===O.MGLYPH||t.tagID===O.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,Ve.HTML)}_processToken(t){switch(t.type){case hr.CHARACTER:{this.onCharacter(t);break}case hr.NULL_CHARACTER:{this.onNullCharacter(t);break}case hr.COMMENT:{this.onComment(t);break}case hr.DOCTYPE:{this.onDoctype(t);break}case hr.START_TAG:{this._processStartTag(t);break}case hr.END_TAG:{this.onEndTag(t);break}case hr.EOF:{this.onEof(t);break}case hr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const a=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return yat(t,a,s,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(a=>a.type===Wl.Marker||this.openElements.contains(a.element)),n=r===-1?t-1:r-1;for(let a=n;a>=0;a--){const s=this.activeFormattingElements.entries[a];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=be.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(O.P),this.openElements.popUntilTagNamePopped(O.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case O.TR:{this.insertionMode=be.IN_ROW;return}case O.TBODY:case O.THEAD:case O.TFOOT:{this.insertionMode=be.IN_TABLE_BODY;return}case O.CAPTION:{this.insertionMode=be.IN_CAPTION;return}case O.COLGROUP:{this.insertionMode=be.IN_COLUMN_GROUP;return}case O.TABLE:{this.insertionMode=be.IN_TABLE;return}case O.BODY:{this.insertionMode=be.IN_BODY;return}case O.FRAMESET:{this.insertionMode=be.IN_FRAMESET;return}case O.SELECT:{this._resetInsertionModeForSelect(t);return}case O.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case O.HTML:{this.insertionMode=this.headElement?be.AFTER_HEAD:be.BEFORE_HEAD;return}case O.TD:case O.TH:{if(t>0){this.insertionMode=be.IN_CELL;return}break}case O.HEAD:{if(t>0){this.insertionMode=be.IN_HEAD;return}break}}this.insertionMode=be.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===O.TEMPLATE)break;if(n===O.TABLE){this.insertionMode=be.IN_SELECT_IN_TABLE;return}}this.insertionMode=be.IN_SELECT}_isElementCausesFosterParenting(t){return j5e.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case O.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===Ve.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case O.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const n=this.treeAdapter.getNamespaceURI(t);return znt[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Zit(this,t);return}switch(this.insertionMode){case be.INITIAL:{Rx(this,t);break}case be.BEFORE_HTML:{Mw(this,t);break}case be.BEFORE_HEAD:{Iw(this,t);break}case be.IN_HEAD:{Pw(this,t);break}case be.IN_HEAD_NO_SCRIPT:{Lw(this,t);break}case be.AFTER_HEAD:{Ow(this,t);break}case be.IN_BODY:case be.IN_CAPTION:case be.IN_CELL:case be.IN_TEMPLATE:{C5e(this,t);break}case be.TEXT:case be.IN_SELECT:case be.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case be.IN_TABLE:case be.IN_TABLE_BODY:case be.IN_ROW:{sX(this,t);break}case be.IN_TABLE_TEXT:{P5e(this,t);break}case be.IN_COLUMN_GROUP:{mH(this,t);break}case be.AFTER_BODY:{gH(this,t);break}case be.AFTER_AFTER_BODY:{eq(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Xit(this,t);return}switch(this.insertionMode){case be.INITIAL:{Rx(this,t);break}case be.BEFORE_HTML:{Mw(this,t);break}case be.BEFORE_HEAD:{Iw(this,t);break}case be.IN_HEAD:{Pw(this,t);break}case be.IN_HEAD_NO_SCRIPT:{Lw(this,t);break}case be.AFTER_HEAD:{Ow(this,t);break}case be.TEXT:{this._insertCharacters(t);break}case be.IN_TABLE:case be.IN_TABLE_BODY:case be.IN_ROW:{sX(this,t);break}case be.IN_COLUMN_GROUP:{mH(this,t);break}case be.AFTER_BODY:{gH(this,t);break}case be.AFTER_AFTER_BODY:{eq(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ete(this,t);return}switch(this.insertionMode){case be.INITIAL:case be.BEFORE_HTML:case be.BEFORE_HEAD:case be.IN_HEAD:case be.IN_HEAD_NO_SCRIPT:case be.AFTER_HEAD:case be.IN_BODY:case be.IN_TABLE:case be.IN_CAPTION:case be.IN_COLUMN_GROUP:case be.IN_TABLE_BODY:case be.IN_ROW:case be.IN_CELL:case be.IN_SELECT:case be.IN_SELECT_IN_TABLE:case be.IN_TEMPLATE:case be.IN_FRAMESET:case be.AFTER_FRAMESET:{Ete(this,t);break}case be.IN_TABLE_TEXT:{Dx(this,t);break}case be.AFTER_BODY:{Nat(this,t);break}case be.AFTER_AFTER_BODY:case be.AFTER_AFTER_FRAMESET:{Tat(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case be.INITIAL:{Aat(this,t);break}case be.BEFORE_HEAD:case be.IN_HEAD:case be.IN_HEAD_NO_SCRIPT:case be.AFTER_HEAD:{this._err(t,Ae.misplacedDoctype);break}case be.IN_TABLE_TEXT:{Dx(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Ae.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Qit(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case be.INITIAL:{Rx(this,t);break}case be.BEFORE_HTML:{Mat(this,t);break}case be.BEFORE_HEAD:{Pat(this,t);break}case be.IN_HEAD:{Tl(this,t);break}case be.IN_HEAD_NO_SCRIPT:{Rat(this,t);break}case be.AFTER_HEAD:{Fat(this,t);break}case be.IN_BODY:{Ii(this,t);break}case be.IN_TABLE:{k2(this,t);break}case be.IN_TABLE_TEXT:{Dx(this,t);break}case be.IN_CAPTION:{Lit(this,t);break}case be.IN_COLUMN_GROUP:{ase(this,t);break}case be.IN_TABLE_BODY:{GW(this,t);break}case be.IN_ROW:{KW(this,t);break}case be.IN_CELL:{Dit(this,t);break}case be.IN_SELECT:{R5e(this,t);break}case be.IN_SELECT_IN_TABLE:{$it(this,t);break}case be.IN_TEMPLATE:{zit(this,t);break}case be.AFTER_BODY:{qit(this,t);break}case be.IN_FRAMESET:{Hit(this,t);break}case be.AFTER_FRAMESET:{Wit(this,t);break}case be.AFTER_AFTER_BODY:{Kit(this,t);break}case be.AFTER_AFTER_FRAMESET:{Yit(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Jit(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case be.INITIAL:{Rx(this,t);break}case be.BEFORE_HTML:{Iat(this,t);break}case be.BEFORE_HEAD:{Lat(this,t);break}case be.IN_HEAD:{Oat(this,t);break}case be.IN_HEAD_NO_SCRIPT:{Dat(this,t);break}case be.AFTER_HEAD:{$at(this,t);break}case be.IN_BODY:{WW(this,t);break}case be.TEXT:{Sit(this,t);break}case be.IN_TABLE:{Ik(this,t);break}case be.IN_TABLE_TEXT:{Dx(this,t);break}case be.IN_CAPTION:{Oit(this,t);break}case be.IN_COLUMN_GROUP:{Rit(this,t);break}case be.IN_TABLE_BODY:{Cte(this,t);break}case be.IN_ROW:{O5e(this,t);break}case be.IN_CELL:{Fit(this,t);break}case be.IN_SELECT:{D5e(this,t);break}case be.IN_SELECT_IN_TABLE:{Bit(this,t);break}case be.IN_TEMPLATE:{Uit(this,t);break}case be.AFTER_BODY:{$5e(this,t);break}case be.IN_FRAMESET:{Vit(this,t);break}case be.AFTER_FRAMESET:{Git(this,t);break}case be.AFTER_AFTER_BODY:{eq(this,t);break}}}onEof(t){switch(this.insertionMode){case be.INITIAL:{Rx(this,t);break}case be.BEFORE_HTML:{Mw(this,t);break}case be.BEFORE_HEAD:{Iw(this,t);break}case be.IN_HEAD:{Pw(this,t);break}case be.IN_HEAD_NO_SCRIPT:{Lw(this,t);break}case be.AFTER_HEAD:{Ow(this,t);break}case be.IN_BODY:case be.IN_TABLE:case be.IN_CAPTION:case be.IN_COLUMN_GROUP:case be.IN_TABLE_BODY:case be.IN_ROW:case be.IN_CELL:case be.IN_SELECT:case be.IN_SELECT_IN_TABLE:{M5e(this,t);break}case be.TEXT:{jit(this,t);break}case be.IN_TABLE_TEXT:{Dx(this,t);break}case be.IN_TEMPLATE:{F5e(this,t);break}case be.AFTER_BODY:case be.IN_FRAMESET:case be.AFTER_FRAMESET:case be.AFTER_AFTER_BODY:case be.AFTER_AFTER_FRAMESET:{nse(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===he.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case be.IN_HEAD:case be.IN_HEAD_NO_SCRIPT:case be.AFTER_HEAD:case be.TEXT:case be.IN_COLUMN_GROUP:case be.IN_SELECT:case be.IN_SELECT_IN_TABLE:case be.IN_FRAMESET:case be.AFTER_FRAMESET:{this._insertCharacters(t);break}case be.IN_BODY:case be.IN_CAPTION:case be.IN_CELL:case be.IN_TEMPLATE:case be.AFTER_BODY:case be.AFTER_AFTER_BODY:case be.AFTER_AFTER_FRAMESET:{E5e(this,t);break}case be.IN_TABLE:case be.IN_TABLE_BODY:case be.IN_ROW:{sX(this,t);break}case be.IN_TABLE_TEXT:{I5e(this,t);break}}}}function kat(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):A5e(e,t),r}function _at(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const a=e.openElements.items[n];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[n])&&(r=a)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function Sat(e,t,r){let n=t,a=e.openElements.getCommonAncestor(t);for(let s=0,o=a;o!==r;s++,o=a){a=e.openElements.getCommonAncestor(o);const l=e.activeFormattingElements.getElementEntry(o),c=l&&s>=bat;!l||c?(c&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(o)):(o=jat(e,l),n===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(o,n),n=o)}return n}function jat(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Eat(e,t,r){const n=e.treeAdapter.getTagName(t),a=Tv(n);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const s=e.treeAdapter.getNamespaceURI(t);a===O.TEMPLATE&&s===Ve.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Cat(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:a}=r,s=e.treeAdapter.createElement(a.tagName,n,a.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,a),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,a.tagID)}function rse(e,t){for(let r=0;r<xat;r++){const n=kat(e,t);if(!n)break;const a=_at(e,n);if(!a)break;e.activeFormattingElements.bookmark=n;const s=Sat(e,a,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(s),o&&Eat(e,o,s),Cat(e,a,n)}}function Ete(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Nat(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Tat(e,t){e._appendCommentNode(t,e.document)}function nse(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(n);if(a&&!a.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(s);o&&!o.endTag&&e._setEndLocation(s,t)}}}}function Aat(e,t){e._setDocumentType(t);const r=t.forceQuirks?ho.QUIRKS:sat(t);iat(t)||e._err(t,Ae.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=be.BEFORE_HTML}function Rx(e,t){e._err(t,Ae.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ho.QUIRKS),e.insertionMode=be.BEFORE_HTML,e._processToken(t)}function Mat(e,t){t.tagID===O.HTML?(e._insertElement(t,Ve.HTML),e.insertionMode=be.BEFORE_HEAD):Mw(e,t)}function Iat(e,t){const r=t.tagID;(r===O.HTML||r===O.HEAD||r===O.BODY||r===O.BR)&&Mw(e,t)}function Mw(e,t){e._insertFakeRootElement(),e.insertionMode=be.BEFORE_HEAD,e._processToken(t)}function Pat(e,t){switch(t.tagID){case O.HTML:{Ii(e,t);break}case O.HEAD:{e._insertElement(t,Ve.HTML),e.headElement=e.openElements.current,e.insertionMode=be.IN_HEAD;break}default:Iw(e,t)}}function Lat(e,t){const r=t.tagID;r===O.HEAD||r===O.BODY||r===O.HTML||r===O.BR?Iw(e,t):e._err(t,Ae.endTagWithoutMatchingOpenElement)}function Iw(e,t){e._insertFakeElement(Se.HEAD,O.HEAD),e.headElement=e.openElements.current,e.insertionMode=be.IN_HEAD,e._processToken(t)}function Tl(e,t){switch(t.tagID){case O.HTML:{Ii(e,t);break}case O.BASE:case O.BASEFONT:case O.BGSOUND:case O.LINK:case O.META:{e._appendElement(t,Ve.HTML),t.ackSelfClosing=!0;break}case O.TITLE:{e._switchToTextParsing(t,Jn.RCDATA);break}case O.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Jn.RAWTEXT):(e._insertElement(t,Ve.HTML),e.insertionMode=be.IN_HEAD_NO_SCRIPT);break}case O.NOFRAMES:case O.STYLE:{e._switchToTextParsing(t,Jn.RAWTEXT);break}case O.SCRIPT:{e._switchToTextParsing(t,Jn.SCRIPT_DATA);break}case O.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=be.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(be.IN_TEMPLATE);break}case O.HEAD:{e._err(t,Ae.misplacedStartTagForHeadElement);break}default:Pw(e,t)}}function Oat(e,t){switch(t.tagID){case O.HEAD:{e.openElements.pop(),e.insertionMode=be.AFTER_HEAD;break}case O.BODY:case O.BR:case O.HTML:{Pw(e,t);break}case O.TEMPLATE:{Y0(e,t);break}default:e._err(t,Ae.endTagWithoutMatchingOpenElement)}}function Y0(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==O.TEMPLATE&&e._err(t,Ae.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(O.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ae.endTagWithoutMatchingOpenElement)}function Pw(e,t){e.openElements.pop(),e.insertionMode=be.AFTER_HEAD,e._processToken(t)}function Rat(e,t){switch(t.tagID){case O.HTML:{Ii(e,t);break}case O.BASEFONT:case O.BGSOUND:case O.HEAD:case O.LINK:case O.META:case O.NOFRAMES:case O.STYLE:{Tl(e,t);break}case O.NOSCRIPT:{e._err(t,Ae.nestedNoscriptInHead);break}default:Lw(e,t)}}function Dat(e,t){switch(t.tagID){case O.NOSCRIPT:{e.openElements.pop(),e.insertionMode=be.IN_HEAD;break}case O.BR:{Lw(e,t);break}default:e._err(t,Ae.endTagWithoutMatchingOpenElement)}}function Lw(e,t){const r=t.type===hr.EOF?Ae.openElementsLeftAfterEof:Ae.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=be.IN_HEAD,e._processToken(t)}function Fat(e,t){switch(t.tagID){case O.HTML:{Ii(e,t);break}case O.BODY:{e._insertElement(t,Ve.HTML),e.framesetOk=!1,e.insertionMode=be.IN_BODY;break}case O.FRAMESET:{e._insertElement(t,Ve.HTML),e.insertionMode=be.IN_FRAMESET;break}case O.BASE:case O.BASEFONT:case O.BGSOUND:case O.LINK:case O.META:case O.NOFRAMES:case O.SCRIPT:case O.STYLE:case O.TEMPLATE:case O.TITLE:{e._err(t,Ae.abandonedHeadElementChild),e.openElements.push(e.headElement,O.HEAD),Tl(e,t),e.openElements.remove(e.headElement);break}case O.HEAD:{e._err(t,Ae.misplacedStartTagForHeadElement);break}default:Ow(e,t)}}function $at(e,t){switch(t.tagID){case O.BODY:case O.HTML:case O.BR:{Ow(e,t);break}case O.TEMPLATE:{Y0(e,t);break}default:e._err(t,Ae.endTagWithoutMatchingOpenElement)}}function Ow(e,t){e._insertFakeElement(Se.BODY,O.BODY),e.insertionMode=be.IN_BODY,VW(e,t)}function VW(e,t){switch(t.type){case hr.CHARACTER:{C5e(e,t);break}case hr.WHITESPACE_CHARACTER:{E5e(e,t);break}case hr.COMMENT:{Ete(e,t);break}case hr.START_TAG:{Ii(e,t);break}case hr.END_TAG:{WW(e,t);break}case hr.EOF:{M5e(e,t);break}}}function E5e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function C5e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Bat(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function zat(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Uat(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ve.HTML),e.insertionMode=be.IN_FRAMESET)}function qat(e,t){e.openElements.hasInButtonScope(O.P)&&e._closePElement(),e._insertElement(t,Ve.HTML)}function Hat(e,t){e.openElements.hasInButtonScope(O.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&jte.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ve.HTML)}function Vat(e,t){e.openElements.hasInButtonScope(O.P)&&e._closePElement(),e._insertElement(t,Ve.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Wat(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(O.P)&&e._closePElement(),e._insertElement(t,Ve.HTML),r||(e.formElement=e.openElements.current))}function Gat(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const a=e.openElements.tagIDs[n];if(r===O.LI&&a===O.LI||(r===O.DD||r===O.DT)&&(a===O.DD||a===O.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==O.ADDRESS&&a!==O.DIV&&a!==O.P&&e._isSpecialElement(e.openElements.items[n],a))break}e.openElements.hasInButtonScope(O.P)&&e._closePElement(),e._insertElement(t,Ve.HTML)}function Kat(e,t){e.openElements.hasInButtonScope(O.P)&&e._closePElement(),e._insertElement(t,Ve.HTML),e.tokenizer.state=Jn.PLAINTEXT}function Yat(e,t){e.openElements.hasInScope(O.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(O.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ve.HTML),e.framesetOk=!1}function Xat(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Se.A);r&&(rse(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ve.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Zat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ve.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Qat(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(O.NOBR)&&(rse(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ve.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Jat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ve.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function eit(e,t){e.treeAdapter.getDocumentMode(e.document)!==ho.QUIRKS&&e.openElements.hasInButtonScope(O.P)&&e._closePElement(),e._insertElement(t,Ve.HTML),e.framesetOk=!1,e.insertionMode=be.IN_TABLE}function N5e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ve.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function T5e(e){const t=y5e(e,c0.TYPE);return t!=null&&t.toLowerCase()===vat}function tit(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ve.HTML),T5e(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function rit(e,t){e._appendElement(t,Ve.HTML),t.ackSelfClosing=!0}function nit(e,t){e.openElements.hasInButtonScope(O.P)&&e._closePElement(),e._appendElement(t,Ve.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ait(e,t){t.tagName=Se.IMG,t.tagID=O.IMG,N5e(e,t)}function iit(e,t){e._insertElement(t,Ve.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Jn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=be.TEXT}function sit(e,t){e.openElements.hasInButtonScope(O.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Jn.RAWTEXT)}function oit(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Jn.RAWTEXT)}function Zfe(e,t){e._switchToTextParsing(t,Jn.RAWTEXT)}function lit(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ve.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===be.IN_TABLE||e.insertionMode===be.IN_CAPTION||e.insertionMode===be.IN_TABLE_BODY||e.insertionMode===be.IN_ROW||e.insertionMode===be.IN_CELL?be.IN_SELECT_IN_TABLE:be.IN_SELECT}function cit(e,t){e.openElements.currentTagId===O.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ve.HTML)}function uit(e,t){e.openElements.hasInScope(O.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ve.HTML)}function dit(e,t){e.openElements.hasInScope(O.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(O.RTC),e._insertElement(t,Ve.HTML)}function hit(e,t){e._reconstructActiveFormattingElements(),_5e(t),tse(t),t.selfClosing?e._appendElement(t,Ve.MATHML):e._insertElement(t,Ve.MATHML),t.ackSelfClosing=!0}function fit(e,t){e._reconstructActiveFormattingElements(),S5e(t),tse(t),t.selfClosing?e._appendElement(t,Ve.SVG):e._insertElement(t,Ve.SVG),t.ackSelfClosing=!0}function Qfe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ve.HTML)}function Ii(e,t){switch(t.tagID){case O.I:case O.S:case O.B:case O.U:case O.EM:case O.TT:case O.BIG:case O.CODE:case O.FONT:case O.SMALL:case O.STRIKE:case O.STRONG:{Zat(e,t);break}case O.A:{Xat(e,t);break}case O.H1:case O.H2:case O.H3:case O.H4:case O.H5:case O.H6:{Hat(e,t);break}case O.P:case O.DL:case O.OL:case O.UL:case O.DIV:case O.DIR:case O.NAV:case O.MAIN:case O.MENU:case O.ASIDE:case O.CENTER:case O.FIGURE:case O.FOOTER:case O.HEADER:case O.HGROUP:case O.DIALOG:case O.DETAILS:case O.ADDRESS:case O.ARTICLE:case O.SEARCH:case O.SECTION:case O.SUMMARY:case O.FIELDSET:case O.BLOCKQUOTE:case O.FIGCAPTION:{qat(e,t);break}case O.LI:case O.DD:case O.DT:{Gat(e,t);break}case O.BR:case O.IMG:case O.WBR:case O.AREA:case O.EMBED:case O.KEYGEN:{N5e(e,t);break}case O.HR:{nit(e,t);break}case O.RB:case O.RTC:{uit(e,t);break}case O.RT:case O.RP:{dit(e,t);break}case O.PRE:case O.LISTING:{Vat(e,t);break}case O.XMP:{sit(e,t);break}case O.SVG:{fit(e,t);break}case O.HTML:{Bat(e,t);break}case O.BASE:case O.LINK:case O.META:case O.STYLE:case O.TITLE:case O.SCRIPT:case O.BGSOUND:case O.BASEFONT:case O.TEMPLATE:{Tl(e,t);break}case O.BODY:{zat(e,t);break}case O.FORM:{Wat(e,t);break}case O.NOBR:{Qat(e,t);break}case O.MATH:{hit(e,t);break}case O.TABLE:{eit(e,t);break}case O.INPUT:{tit(e,t);break}case O.PARAM:case O.TRACK:case O.SOURCE:{rit(e,t);break}case O.IMAGE:{ait(e,t);break}case O.BUTTON:{Yat(e,t);break}case O.APPLET:case O.OBJECT:case O.MARQUEE:{Jat(e,t);break}case O.IFRAME:{oit(e,t);break}case O.SELECT:{lit(e,t);break}case O.OPTION:case O.OPTGROUP:{cit(e,t);break}case O.NOEMBED:case O.NOFRAMES:{Zfe(e,t);break}case O.FRAMESET:{Uat(e,t);break}case O.TEXTAREA:{iit(e,t);break}case O.NOSCRIPT:{e.options.scriptingEnabled?Zfe(e,t):Qfe(e,t);break}case O.PLAINTEXT:{Kat(e,t);break}case O.COL:case O.TH:case O.TD:case O.TR:case O.HEAD:case O.FRAME:case O.TBODY:case O.TFOOT:case O.THEAD:case O.CAPTION:case O.COLGROUP:break;default:Qfe(e,t)}}function pit(e,t){if(e.openElements.hasInScope(O.BODY)&&(e.insertionMode=be.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function mit(e,t){e.openElements.hasInScope(O.BODY)&&(e.insertionMode=be.AFTER_BODY,$5e(e,t))}function git(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function yit(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(O.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(O.FORM):r&&e.openElements.remove(r))}function vit(e){e.openElements.hasInButtonScope(O.P)||e._insertFakeElement(Se.P,O.P),e._closePElement()}function xit(e){e.openElements.hasInListItemScope(O.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(O.LI),e.openElements.popUntilTagNamePopped(O.LI))}function bit(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function wit(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function kit(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function _it(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Se.BR,O.BR),e.openElements.pop(),e.framesetOk=!1}function A5e(e,t){const r=t.tagName,n=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a],o=e.openElements.tagIDs[a];if(n===o&&(n!==O.UNKNOWN||e.treeAdapter.getTagName(s)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(s,o))break}}function WW(e,t){switch(t.tagID){case O.A:case O.B:case O.I:case O.S:case O.U:case O.EM:case O.TT:case O.BIG:case O.CODE:case O.FONT:case O.NOBR:case O.SMALL:case O.STRIKE:case O.STRONG:{rse(e,t);break}case O.P:{vit(e);break}case O.DL:case O.UL:case O.OL:case O.DIR:case O.DIV:case O.NAV:case O.PRE:case O.MAIN:case O.MENU:case O.ASIDE:case O.BUTTON:case O.CENTER:case O.FIGURE:case O.FOOTER:case O.HEADER:case O.HGROUP:case O.DIALOG:case O.ADDRESS:case O.ARTICLE:case O.DETAILS:case O.SEARCH:case O.SECTION:case O.SUMMARY:case O.LISTING:case O.FIELDSET:case O.BLOCKQUOTE:case O.FIGCAPTION:{git(e,t);break}case O.LI:{xit(e);break}case O.DD:case O.DT:{bit(e,t);break}case O.H1:case O.H2:case O.H3:case O.H4:case O.H5:case O.H6:{wit(e);break}case O.BR:{_it(e);break}case O.BODY:{pit(e,t);break}case O.HTML:{mit(e,t);break}case O.FORM:{yit(e);break}case O.APPLET:case O.OBJECT:case O.MARQUEE:{kit(e,t);break}case O.TEMPLATE:{Y0(e,t);break}default:A5e(e,t)}}function M5e(e,t){e.tmplInsertionModeStack.length>0?F5e(e,t):nse(e,t)}function Sit(e,t){var r;t.tagID===O.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function jit(e,t){e._err(t,Ae.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function sX(e,t){if(e.openElements.currentTagId!==void 0&&j5e.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=be.IN_TABLE_TEXT,t.type){case hr.CHARACTER:{P5e(e,t);break}case hr.WHITESPACE_CHARACTER:{I5e(e,t);break}}else J_(e,t)}function Eit(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ve.HTML),e.insertionMode=be.IN_CAPTION}function Cit(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ve.HTML),e.insertionMode=be.IN_COLUMN_GROUP}function Nit(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Se.COLGROUP,O.COLGROUP),e.insertionMode=be.IN_COLUMN_GROUP,ase(e,t)}function Tit(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ve.HTML),e.insertionMode=be.IN_TABLE_BODY}function Ait(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Se.TBODY,O.TBODY),e.insertionMode=be.IN_TABLE_BODY,GW(e,t)}function Mit(e,t){e.openElements.hasInTableScope(O.TABLE)&&(e.openElements.popUntilTagNamePopped(O.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Iit(e,t){T5e(t)?e._appendElement(t,Ve.HTML):J_(e,t),t.ackSelfClosing=!0}function Pit(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ve.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function k2(e,t){switch(t.tagID){case O.TD:case O.TH:case O.TR:{Ait(e,t);break}case O.STYLE:case O.SCRIPT:case O.TEMPLATE:{Tl(e,t);break}case O.COL:{Nit(e,t);break}case O.FORM:{Pit(e,t);break}case O.TABLE:{Mit(e,t);break}case O.TBODY:case O.TFOOT:case O.THEAD:{Tit(e,t);break}case O.INPUT:{Iit(e,t);break}case O.CAPTION:{Eit(e,t);break}case O.COLGROUP:{Cit(e,t);break}default:J_(e,t)}}function Ik(e,t){switch(t.tagID){case O.TABLE:{e.openElements.hasInTableScope(O.TABLE)&&(e.openElements.popUntilTagNamePopped(O.TABLE),e._resetInsertionMode());break}case O.TEMPLATE:{Y0(e,t);break}case O.BODY:case O.CAPTION:case O.COL:case O.COLGROUP:case O.HTML:case O.TBODY:case O.TD:case O.TFOOT:case O.TH:case O.THEAD:case O.TR:break;default:J_(e,t)}}function J_(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,VW(e,t),e.fosterParentingEnabled=r}function I5e(e,t){e.pendingCharacterTokens.push(t)}function P5e(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Dx(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)J_(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const L5e=new Set([O.CAPTION,O.COL,O.COLGROUP,O.TBODY,O.TD,O.TFOOT,O.TH,O.THEAD,O.TR]);function Lit(e,t){const r=t.tagID;L5e.has(r)?e.openElements.hasInTableScope(O.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(O.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=be.IN_TABLE,k2(e,t)):Ii(e,t)}function Oit(e,t){const r=t.tagID;switch(r){case O.CAPTION:case O.TABLE:{e.openElements.hasInTableScope(O.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(O.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=be.IN_TABLE,r===O.TABLE&&Ik(e,t));break}case O.BODY:case O.COL:case O.COLGROUP:case O.HTML:case O.TBODY:case O.TD:case O.TFOOT:case O.TH:case O.THEAD:case O.TR:break;default:WW(e,t)}}function ase(e,t){switch(t.tagID){case O.HTML:{Ii(e,t);break}case O.COL:{e._appendElement(t,Ve.HTML),t.ackSelfClosing=!0;break}case O.TEMPLATE:{Tl(e,t);break}default:mH(e,t)}}function Rit(e,t){switch(t.tagID){case O.COLGROUP:{e.openElements.currentTagId===O.COLGROUP&&(e.openElements.pop(),e.insertionMode=be.IN_TABLE);break}case O.TEMPLATE:{Y0(e,t);break}case O.COL:break;default:mH(e,t)}}function mH(e,t){e.openElements.currentTagId===O.COLGROUP&&(e.openElements.pop(),e.insertionMode=be.IN_TABLE,e._processToken(t))}function GW(e,t){switch(t.tagID){case O.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ve.HTML),e.insertionMode=be.IN_ROW;break}case O.TH:case O.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Se.TR,O.TR),e.insertionMode=be.IN_ROW,KW(e,t);break}case O.CAPTION:case O.COL:case O.COLGROUP:case O.TBODY:case O.TFOOT:case O.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=be.IN_TABLE,k2(e,t));break}default:k2(e,t)}}function Cte(e,t){const r=t.tagID;switch(t.tagID){case O.TBODY:case O.TFOOT:case O.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=be.IN_TABLE);break}case O.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=be.IN_TABLE,Ik(e,t));break}case O.BODY:case O.CAPTION:case O.COL:case O.COLGROUP:case O.HTML:case O.TD:case O.TH:case O.TR:break;default:Ik(e,t)}}function KW(e,t){switch(t.tagID){case O.TH:case O.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ve.HTML),e.insertionMode=be.IN_CELL,e.activeFormattingElements.insertMarker();break}case O.CAPTION:case O.COL:case O.COLGROUP:case O.TBODY:case O.TFOOT:case O.THEAD:case O.TR:{e.openElements.hasInTableScope(O.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=be.IN_TABLE_BODY,GW(e,t));break}default:k2(e,t)}}function O5e(e,t){switch(t.tagID){case O.TR:{e.openElements.hasInTableScope(O.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=be.IN_TABLE_BODY);break}case O.TABLE:{e.openElements.hasInTableScope(O.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=be.IN_TABLE_BODY,Cte(e,t));break}case O.TBODY:case O.TFOOT:case O.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(O.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=be.IN_TABLE_BODY,Cte(e,t));break}case O.BODY:case O.CAPTION:case O.COL:case O.COLGROUP:case O.HTML:case O.TD:case O.TH:break;default:Ik(e,t)}}function Dit(e,t){const r=t.tagID;L5e.has(r)?(e.openElements.hasInTableScope(O.TD)||e.openElements.hasInTableScope(O.TH))&&(e._closeTableCell(),KW(e,t)):Ii(e,t)}function Fit(e,t){const r=t.tagID;switch(r){case O.TD:case O.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=be.IN_ROW);break}case O.TABLE:case O.TBODY:case O.TFOOT:case O.THEAD:case O.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),O5e(e,t));break}case O.BODY:case O.CAPTION:case O.COL:case O.COLGROUP:case O.HTML:break;default:WW(e,t)}}function R5e(e,t){switch(t.tagID){case O.HTML:{Ii(e,t);break}case O.OPTION:{e.openElements.currentTagId===O.OPTION&&e.openElements.pop(),e._insertElement(t,Ve.HTML);break}case O.OPTGROUP:{e.openElements.currentTagId===O.OPTION&&e.openElements.pop(),e.openElements.currentTagId===O.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ve.HTML);break}case O.HR:{e.openElements.currentTagId===O.OPTION&&e.openElements.pop(),e.openElements.currentTagId===O.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ve.HTML),t.ackSelfClosing=!0;break}case O.INPUT:case O.KEYGEN:case O.TEXTAREA:case O.SELECT:{e.openElements.hasInSelectScope(O.SELECT)&&(e.openElements.popUntilTagNamePopped(O.SELECT),e._resetInsertionMode(),t.tagID!==O.SELECT&&e._processStartTag(t));break}case O.SCRIPT:case O.TEMPLATE:{Tl(e,t);break}}}function D5e(e,t){switch(t.tagID){case O.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===O.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===O.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===O.OPTGROUP&&e.openElements.pop();break}case O.OPTION:{e.openElements.currentTagId===O.OPTION&&e.openElements.pop();break}case O.SELECT:{e.openElements.hasInSelectScope(O.SELECT)&&(e.openElements.popUntilTagNamePopped(O.SELECT),e._resetInsertionMode());break}case O.TEMPLATE:{Y0(e,t);break}}}function $it(e,t){const r=t.tagID;r===O.CAPTION||r===O.TABLE||r===O.TBODY||r===O.TFOOT||r===O.THEAD||r===O.TR||r===O.TD||r===O.TH?(e.openElements.popUntilTagNamePopped(O.SELECT),e._resetInsertionMode(),e._processStartTag(t)):R5e(e,t)}function Bit(e,t){const r=t.tagID;r===O.CAPTION||r===O.TABLE||r===O.TBODY||r===O.TFOOT||r===O.THEAD||r===O.TR||r===O.TD||r===O.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(O.SELECT),e._resetInsertionMode(),e.onEndTag(t)):D5e(e,t)}function zit(e,t){switch(t.tagID){case O.BASE:case O.BASEFONT:case O.BGSOUND:case O.LINK:case O.META:case O.NOFRAMES:case O.SCRIPT:case O.STYLE:case O.TEMPLATE:case O.TITLE:{Tl(e,t);break}case O.CAPTION:case O.COLGROUP:case O.TBODY:case O.TFOOT:case O.THEAD:{e.tmplInsertionModeStack[0]=be.IN_TABLE,e.insertionMode=be.IN_TABLE,k2(e,t);break}case O.COL:{e.tmplInsertionModeStack[0]=be.IN_COLUMN_GROUP,e.insertionMode=be.IN_COLUMN_GROUP,ase(e,t);break}case O.TR:{e.tmplInsertionModeStack[0]=be.IN_TABLE_BODY,e.insertionMode=be.IN_TABLE_BODY,GW(e,t);break}case O.TD:case O.TH:{e.tmplInsertionModeStack[0]=be.IN_ROW,e.insertionMode=be.IN_ROW,KW(e,t);break}default:e.tmplInsertionModeStack[0]=be.IN_BODY,e.insertionMode=be.IN_BODY,Ii(e,t)}}function Uit(e,t){t.tagID===O.TEMPLATE&&Y0(e,t)}function F5e(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(O.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):nse(e,t)}function qit(e,t){t.tagID===O.HTML?Ii(e,t):gH(e,t)}function $5e(e,t){var r;if(t.tagID===O.HTML){if(e.fragmentContext||(e.insertionMode=be.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===O.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else gH(e,t)}function gH(e,t){e.insertionMode=be.IN_BODY,VW(e,t)}function Hit(e,t){switch(t.tagID){case O.HTML:{Ii(e,t);break}case O.FRAMESET:{e._insertElement(t,Ve.HTML);break}case O.FRAME:{e._appendElement(t,Ve.HTML),t.ackSelfClosing=!0;break}case O.NOFRAMES:{Tl(e,t);break}}}function Vit(e,t){t.tagID===O.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==O.FRAMESET&&(e.insertionMode=be.AFTER_FRAMESET))}function Wit(e,t){switch(t.tagID){case O.HTML:{Ii(e,t);break}case O.NOFRAMES:{Tl(e,t);break}}}function Git(e,t){t.tagID===O.HTML&&(e.insertionMode=be.AFTER_AFTER_FRAMESET)}function Kit(e,t){t.tagID===O.HTML?Ii(e,t):eq(e,t)}function eq(e,t){e.insertionMode=be.IN_BODY,VW(e,t)}function Yit(e,t){switch(t.tagID){case O.HTML:{Ii(e,t);break}case O.NOFRAMES:{Tl(e,t);break}}}function Xit(e,t){t.chars=Sn,e._insertCharacters(t)}function Zit(e,t){e._insertCharacters(t),e.framesetOk=!1}function B5e(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ve.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Qit(e,t){if(fat(t))B5e(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===Ve.MATHML?_5e(t):n===Ve.SVG&&(pat(t),S5e(t)),tse(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function Jit(e,t){if(t.tagID===O.P||t.tagID===O.BR){B5e(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===Ve.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(n);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(r);break}}}Se.AREA,Se.BASE,Se.BASEFONT,Se.BGSOUND,Se.BR,Se.COL,Se.EMBED,Se.FRAME,Se.HR,Se.IMG,Se.INPUT,Se.KEYGEN,Se.LINK,Se.META,Se.PARAM,Se.SOURCE,Se.TRACK,Se.WBR;const est=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,tst=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Jfe={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function z5e(e,t){const r=dst(e),n=Hje("type",{handlers:{root:rst,element:nst,text:ast,comment:q5e,doctype:ist,raw:ost},unknown:lst}),a={parser:r?new Xfe(Jfe):Xfe.getFragmentParser(void 0,Jfe),handle(l){n(l,a)},stitches:!1,options:t||{}};n(e,a),Av(a,wc());const s=r?a.parser.document:a.parser.getFragment(),o=hnt(s,{file:a.options.file});return a.stitches&&HW(o,"comment",function(l,c,u){const d=l;if(d.value.stitch&&u&&c!==void 0){const h=u.children;return h[c]=d.value.stitch,c}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function U5e(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function rst(e,t){U5e(e.children,t)}function nst(e,t){cst(e,t),U5e(e.children,t),ust(e,t)}function ast(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:hr.CHARACTER,chars:e.value,location:e4(e)};Av(t,wc(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ist(e,t){const r={type:hr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:e4(e)};Av(t,wc(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function sst(e,t){t.stitches=!0;const r=hst(e);if("children"in e&&"children"in r){const n=z5e({type:"root",children:e.children},t.options);r.children=n.children}q5e({type:"comment",value:{stitch:r}},t)}function q5e(e,t){const r=e.value,n={type:hr.COMMENT,data:r,location:e4(e)};Av(t,wc(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ost(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,H5e(t,wc(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(est,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function lst(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))sst(r,t);else{let n="";throw tst.has(r.type)&&(n=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+n)}}function Av(e,t){H5e(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Jn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function H5e(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function cst(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Jn.PLAINTEXT)return;Av(t,wc(e));const n=t.parser.openElements.current;let a="namespaceURI"in n?n.namespaceURI:L1.html;a===L1.html&&r==="svg"&&(a=L1.svg);const s=ynt({...e,children:[]},{space:a===L1.svg?"svg":"html"}),o={type:hr.START_TAG,tagName:r,tagID:Tv(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:e4(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function ust(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&jnt.includes(r)||t.parser.tokenizer.state===Jn.PLAINTEXT)return;Av(t,FW(e));const n={type:hr.END_TAG,tagName:r,tagID:Tv(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:e4(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Jn.RCDATA||t.parser.tokenizer.state===Jn.RAWTEXT||t.parser.tokenizer.state===Jn.SCRIPT_DATA)&&(t.parser.tokenizer.state=Jn.DATA)}function dst(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function e4(e){const t=wc(e)||{line:void 0,column:void 0,offset:void 0},r=FW(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function hst(e){return"children"in e?w2({...e,children:[]}):w2(e)}function fst(e){return function(t,r){return z5e(t,{...e,file:r})}}function pst(e){const t=r=>r.replace(/&#x([0-9a-fA-F]+);/g,(n,a)=>String.fromCodePoint(parseInt(a,16))).replace(/&#(\d+);/g,(n,a)=>String.fromCodePoint(parseInt(a,10))).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");
7955return t(t(e))}const mst=/<\/?(?:p|h[1-6]|ul|ol|li|strong|em|a|br|img|blockquote|table|thead|tbody|tr|td|th|hr|div|span|figure|figcaption|pre|code)(?:\s|>|\/>)/i;function Pk({content:e}){let t=e.replace(/^HTML:\s*/i,"");return mst.test(t)&&(t=pst(t)),i.jsx($je,{remarkPlugins:[tnt],rehypePlugins:[fst],components:{h1:({node:r,children:n,...a})=>{const o=String(n).toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-");return i.jsx("h2",{...a,id:o,children:n})},h2:({node:r,children:n,...a})=>{const s=String(n),o=s.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-");return s==="Quick Answer"?i.jsx("h2",{...a,id:o,className:"quick-answer",children:n}):i.jsx("h2",{...a,id:o,children:n})},h3:({node:r,children:n,...a})=>{const o=String(n).toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-");return i.jsx("h3",{...a,id:o,children:n})},a:({node:r,href:n,children:a,...s})=>{let o=n;return(n!=null&&n.startsWith("https://kibbi.ai/")||n!=null&&n.startsWith("http://kibbi.ai/"))&&(o=n.replace(/https?:\/\/kibbi\.ai/,"")),i.jsx("a",{...s,href:o,children:a})},img:({node:r,alt:n,src:a,title:s,...o})=>{var c;if(!n||n.trim()===""){console.warn(`Image missing alt text: ${a}`);const d=(((c=a==null?void 0:a.split("/").pop())==null?void 0:c.split(".")[0])||"image").replace(/[-_]/g," ");return i.jsx("img",{...o,src:a,alt:d,title:s,loading:"lazy",className:"rounded-lg"})}return/^(image|img|picture|photo|screenshot)[\d\s-]*$/i.test(n.trim())&&console.warn(`Low quality alt text detected: "${n}" for image: ${a}`),i.jsx("img",{...o,src:a,alt:n,title:s,loading:"lazy",className:"rounded-lg"})}},children:t})}function ise({items:e}){return i.jsx("nav",{"aria-label":"Breadcrumb",className:"mb-6",children:i.jsx("ol",{itemScope:!0,itemType:"https://schema.org/BreadcrumbList",className:"flex flex-wrap items-center gap-2 text-sm text-muted-foreground",children:e.map((t,r)=>i.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",className:"flex items-center gap-2",children:r<e.length-1?i.jsxs(i.Fragment,{children:[i.jsx(or,{to:t.href,itemProp:"item",className:"hover:text-foreground transition-colors",children:i.jsx("span",{itemProp:"name",children:t.label})}),i.jsx("meta",{itemProp:"position",content:String(r+1)}),i.jsx(Vs,{className:"h-4 w-4"})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{itemProp:"name",className:"text-foreground",children:t.label}),i.jsx("meta",{itemProp:"position",content:String(r+1)})]})},t.href))})})}function gst(e){const t=[],r=e.split(/(?=^#{2,3}\s)/gm);for(const n of r){const a=n.trim().split(` 7956`);if(a.length<2)continue;const s=a[0].match(/^#{2,3}\s+(.+\?)\s*$/);if(s){const o=s[1].trim(),l=a.slice(1).join(` 7957`).trim().replace(/\*\*(.+?)\*\*/g,"$1").replace(/\*(.+?)\*/g,"$1").replace(/\[(.+?)\]\(.+?\)/g,"$1").replace(/^[-*]\s+/gm,"").replace(/\n{3,}/g,` 7958 7959`).trim();l&&t.push({question:o,answer:l})}}return t}function yst(e,t){return e.length===0?null:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(r=>({"@type":"Question",name:r.question,acceptedAnswer:{"@type":"Answer",text:r.answer}}))}}function vst(e,t,r){const n={"@context":"https://schema.org","@type":"BlogPosting",headline:e.title,description:e.excerpt||e.content.substring(0,160),author:{"@type":"Person",name:e.author||"Kibbi Team",url:window.location.origin,jobTitle:"Content Specialist",worksFor:{"@type":"Organization",name:"Kibbi"}},publisher:{"@type":"Organization",name:"Kibbi",logo:{"@type":"ImageObject",url:`${window.location.origin}/kibbi-logo.png`}},datePublished:e.published_at,dateModified:e.updated_at||e.published_at,mainEntityOfPage:{"@type":"WebPage","@id":t}};return e.categories&&e.categories.length>0&&(n.keywords=e.categories.map(a=>a.name).join(", "),n.articleSection=e.categories.map(a=>a.name)),e.content.includes("## Quick Answer")&&(n.speakable={"@type":"SpeakableSpecification",cssSelector:[".quick-answer"],xpath:["/html/head/title","/html/body//h2[contains(@class, 'quick-answer')]","/html/body//h2[contains(@class, 'quick-answer')]/following-sibling::*[1]"]}),n}function xst(e){if(e.excerpt&&e.excerpt.length>=120&&e.excerpt.length<=160)return e.excerpt;const t=e.content.match(/\*\*In one line:\*\*\s+(.+?)(?=\n\n|$)/);if(t){const n=t[1].trim();return n.length>160?n.substring(0,157)+"...":n}const r=e.content.split(` 7960 7961`).find(n=>n.length>50&&!n.startsWith("#"));if(r){const n=r.replace(/\*\*/g,"").replace(/\*/g,"").replace(/\[([^\]]+)\]\([^\)]+\)/g,"$1").trim();return n.length>160?n.substring(0,157)+"...":n}return e.content.substring(0,157)+"..."}function bst(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:window.location.origin},{"@type":"ListItem",position:2,name:"Blog",item:`${window.location.origin}/blog`},{"@type":"ListItem",position:3,name:e.title,item:`${window.location.origin}/post/${e.slug}`}]}}function wst(e){const r=e.split(/\s+/).length;return Math.ceil(r/200)}function kst(e){const t=[],r=/###\s+(\d+)\)\s+(.+?)\n\n([\s\S]+?)(?=###\s+\d+\)|##\s|$)/g;let n;for(;(n=r.exec(e))!==null;){const a=n[2].trim(),s=n[3].trim().replace(/\*\*(.+?)\*\*/g,"$1").replace(/\*(.+?)\*/g,"$1").replace(/\[(.+?)\]\(.+?\)/g,"$1").substring(0,500);t.push({name:a,text:s})}return t}function _st(e,t){return t.length===0?null:{"@context":"https://schema.org","@type":"HowTo",name:e.title,de
7961scription:e.excerpt||e.content.substring(0,160),step:t.map((r,n)=>({"@type":"HowToStep",position:n+1,name:r.name,text:r.text}))}}function Sst(e){return{"@context":"https://schema.org","@type":"Person",name:e,jobTitle:"Writer & Content Specialist",worksFor:{"@type":"Organization",name:"Kibbi",url:window.location.origin},sameAs:[window.location.origin+"/blog"],knowsAbout:["Self-Publishing","Book Marketing","Amazon KDP","Writing","Author Tools"]}}function jst(e,t){const r=e.content.match(/\*\*In one line:\*\*\s+(.+?)(?=\n\n|$)/),n=r?r[1].trim():e.excerpt;return{"@context":"https://schema.org","@type":"WebPage",name:e.title,description:e.excerpt||e.content.substring(0,160),url:t,abstract:n,inLanguage:"en",datePublished:e.published_at,dateModified:e.updated_at||e.published_at,license:"https://creativecommons.org/licenses/by/4.0/"}}function Est(e){return e.length===0?null:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}}function Cst(e,t,r){const n={"@context":"https://schema.org","@type":"WebPage",name:e.title,description:e.meta_description||e.title,url:t,inLanguage:"en",isPartOf:{"@type":"WebSite",name:"Kibbi",url:typeof window<"u"?window.location.origin:"https://kibbi.ai"},publisher:{"@type":"Organization",name:"Kibbi",logo:{"@type":"ImageObject",url:typeof window<"u"?`${window.location.origin}/favicon.png`:"https://kibbi.ai/favicon.png"}}};return r&&(n.abstract=r),e.created_at&&(n.datePublished=e.created_at),e.updated_at&&(n.dateModified=e.updated_at),n}function Nst(e){const t=typeof window<"u"?window.location.origin:"https://kibbi.ai";return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:t},{"@type":"ListItem",position:2,name:e.title,item:`${t}/p/${e.slug}`}]}}function Tst(e){return{"@type":"SpeakableSpecification",cssSelector:e?[".quick-answer-card","h1","article p:first-of-type"]:["h1","article p:first-of-type"]}}function Ast(){const{slug:e}=Ou(),[t,r]=k.useState(null),[n,a]=k.useState(!0),[s,o]=k.useState({}),[l,c]=k.useState(0);k.useEffect(()=>{async function p(){if(!e)return;const y=await WYe(e);if(r(y),a(!1),y!=null&&y.content){const m=`${window.location.origin}/post/${e}`,v={},g=gst(y.content);g.length>0&&(v.faq=yst(g));const b=kst(y.content);b.length>0&&(v.howto=_st(y,b)),v.article=vst(y,m),v.webpage=jst(y,m),v.breadcrumb=bst(y),y.author&&(v.author=Sst(y.author)),o(v),c(wst(y.content)),typeof window<"u"&&(window.__PRERENDER_READY__=!0)}}p()},[e]);const u=t?`${window.location.origin}/post/${t.slug}`:"",h=`${t!=null&&t.title?t.title.length>50?`${t.title.substring(0,50)}...`:t.title:"Blog Post"} | Kibbi`,f=t?xst(t):"";return i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:h}),i.jsx("meta",{name:"description",content:f}),i.jsx("link",{rel:"canonical",href:u}),i.jsx("meta",{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"}),i.jsx("meta",{name:"googlebot",content:"index, follow"}),i.jsx("meta",{name:"bingbot",content:"index, follow"}),i.jsx("meta",{name:"GPTBot",content:"index, follow"}),i.jsx("meta",{name:"ChatGPT-User",content:"index, follow"}),i.jsx("meta",{name:"Claude-Web",content:"index, follow"}),i.jsx("meta",{name:"anthropic-ai",content:"index, follow"}),i.jsx("meta",{name:"PerplexityBot",content:"index, follow"}),i.jsx("meta",{name:"AhrefsBot",content:"index, follow"}),i.jsx("meta",{name:"citation_title",content:(t==null?void 0:t.title)||""}),i.jsx("meta",{name:"citation_author",content:(t==null?void 0:t.author)||"Kibbi Team"}),i.jsx("meta",{name:"citation_publication_date",content:(t==null?void 0:t.published_at)||""}),i.jsx("meta",{name:"citation_publisher",content:"Kibbi"}),i.jsx("meta",{name:"dcterms.rights",content:"https://creativecommons.org/licenses/by/4.0/"}),i.jsx("meta",{property:"og:type",content:"article"}),i.jsx("meta",{property:"og:url",content:u}
7961),i.jsx("meta",{property:"og:title",content:(t==null?void 0:t.title)||""}),i.jsx("meta",{property:"og:description",content:f}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/story-creation-interface.png"}),i.jsx("meta",{property:"og:image:width",content:"1200"}),i.jsx("meta",{property:"og:image:height",content:"630"}),i.jsx("meta",{property:"og:image:alt",content:(t==null?void 0:t.title)||"Kibbi blog article"}),(t==null?void 0:t.published_at)&&i.jsx("meta",{property:"article:published_time",content:t.published_at}),(t==null?void 0:t.updated_at)&&i.jsx("meta",{property:"article:modified_time",content:t.updated_at}),(t==null?void 0:t.author)&&i.jsx("meta",{property:"article:author",content:t.author}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:url",content:u}),i.jsx("meta",{name:"twitter:title",content:(t==null?void 0:t.title)||""}),i.jsx("meta",{name:"twitter:description",content:f}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/story-creation-interface.png"}),i.jsx("meta",{name:"twitter:image:alt",content:(t==null?void 0:t.title)||"Kibbi blog article"}),s.webpage&&i.jsx("script",{type:"application/ld+json",children:JSON.stringify(s.webpage)}),s.article&&i.jsx("script",{type:"application/ld+json",children:JSON.stringify(s.article)}),s.howto&&i.jsx("script",{type:"application/ld+json",children:JSON.stringify(s.howto)}),s.faq&&i.jsx("script",{type:"application/ld+json",children:JSON.stringify(s.faq)}),s.breadcrumb&&i.jsx("script",{type:"application/ld+json",children:JSON.stringify(s.breadcrumb)}),s.author&&i.jsx("script",{type:"application/ld+json",children:JSON.stringify(s.author)})]}),i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 pt-32 pb-16",children:i.jsxs("div",{className:"max-w-3xl mx-auto",children:[i.jsx(le,{asChild:!0,variant:"ghost",className:"mb-4",children:i.jsxs(or,{to:"/blog",children:[i.jsx(ea,{className:"mr-2 h-4 w-4"}),"Back to Blog"]})}),t&&i.jsx(ise,{items:[{label:"Home",href:"/"},{label:"Blog",href:"/blog"},{label:t.title,href:`/post/${t.slug}`}]}),n?i.jsxs("div",{className:"animate-pulse space-y-4",children:[i.jsx("div",{className:"h-10 bg-muted rounded w-3/4"}),i.jsx("div",{className:"h-4 bg-muted rounded w-1/2"}),i.jsx("div",{className:"h-px bg-border my-8"}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("div",{className:"h-4 bg-muted rounded w-full"}),i.jsx("div",{className:"h-4 bg-muted rounded w-full"}),i.jsx("div",{className:"h-4 bg-muted rounded w-5/6"})]})]}):t?i.jsxs("article",{itemScope:!0,itemType:"https://schema.org/BlogPosting",children:[i.jsxs("header",{className:"mb-8",children:[i.jsx("h1",{className:"text-4xl font-semibold font-crimson mb-4",children:t.title}),i.jsxs("div",{className:"text-muted-foreground mb-4 flex flex-wrap items-center gap-2",children:[t.author&&i.jsxs("span",{children:["By ",i.jsx(or,{to:"/authors/harper-jules",className:"text-foreground underline hover:text-foreground/80 font-medium",children:t.author}),""]}),uH,l>0&&i.jsxs("span",{children:[t.author||uH?" ⢠":"",l," min read"]}),t.categories&&t.categories.length>0&&i.jsxs(i.Fragment,{children:[i.jsx("span",{children:" ⢠"}),t.categories.map(p=>i.jsx(Nk,{name:p.name,slug:p.slug},p.id))]})]})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-8",children:[i.jsx("aside",{className:"lg:col-span-1 order-1",children:i.jsx(pXe,{content:t.content})}),i.jsx("div",{className:"lg:col-span-3 order-2",children:i.jsx("div",{className:`prose prose-lg prose-slate dark:prose-invert max-w-none overflow-x-auto 7962 prose-headings:font-crimson prose-headings:font-semibold 7963 prose-h2:text-3xl prose-h2:mt-8 prose-h2:mb-4 7964 prose-h3:text-2xl prose-h3:mt-6 prose-h3:mb-3 7965 prose-p:text-lg prose-p:leading-relaxed prose-p:mb-4 7966 prose-strong:font-semibold prose-strong:text-foreground 7967 prose-ul:my-4 prose-li:my-2 7968 prose-a:text-primary prose-a:underline hover:prose-a:text-primary/80 7969 prose-pre:overflow-x-auto prose-pre:max-w-full 7970 prose-table:overflow-x-auto prose-table:block prose-table:max-w-full`,children:i.jsx(Pk,{content:t.content})})})]})]}):i.jsxs("div",{className:"text-center py-12",children:[i.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Post Not Found"}),i.jsx("p",{className:"text-muted-foreground mb-6",children:"The blog post you're looking for doesn't exist."}),i.jsx(le,{asChild:!0,children:i.jsx(or,{to:"/blog",children:"View All Posts"})})]})]})}),i.jsx(br,{ctaHeading:t==null?void 0:t.cta_heading,ctaSubheading:t==null?void 0:t.cta_subheading})]})}const Fr=()=>{const{user:e,loading:t}=er(),{data:r,isLoading:n,isFetching:a}=ei({queryKey:["is-admin",(e==null?void 0:e.id)??null],enabled:!t&&!!(e!=null&&e.id),staleTime:5*60*1e3,gcTime:30*60*1e3,retry:1,refetchOnWindowFocus:!1,queryFn:async()=>{const{data:s,error:o}=await oe.from("user_roles").select("role").eq("user_id",e.id).eq("role","admin").maybeSingle();return o?(console.error("useIsAdmin: Error checking admin status:",o),!1):!!s}});return t?{isAdmin:!1,loading:!0}:e?{isAdmin:r===!0,loading:r===void 0&&(n||a)}:{isAdmin:!1,loading:!1}};function Mst(){var f,p;const{isAdmin:e,loading:t}=Fr(),r=wt(),[n,a]=k.useState(null),[s,o]=k.useState(!1),[l,c]=k.useState(null),{toast:u}=Xt();if(k.useEffect(()=>{!t&&!e&&(u({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"}),r("/library"))},[e,t,r,u]),t)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})});const d=y=>{y.target.files&&y.target.files[0]&&(a(y.target.files[0]),c(null))},h=async()=>
7970{if(!n){u({title:"No file selected",description:"Please select a CSV file to import",variant:"destructive"});return}o(!0);try{const y=new FormData;y.append("file",n);const{data:m,error:v}=await oe.functions.invoke("import-blog-posts",{body:y});if(v)throw v;c(m),u({title:"Import complete!",description:`Successfully imported ${m.imported} posts. ${m.skipped} skipped.`})}catch(y){console.error("Import error:",y),u({title:"Import failed",description:y.message||"An error occurred during import",variant:"destructive"})}finally{o(!1)}};return i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 pt-32 pb-16",children:i.jsxs("div",{className:"max-w-2xl mx-auto",children:[i.jsx("h1",{className:"font-crimson text-4xl mb-4",children:"Import Blog Posts"}),i.jsx("p",{className:"text-muted-foreground mb-8",children:"Upload your CSV file to import blog posts from Webflow."}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Upload CSV File"}),i.jsx(Rt,{children:"Select your exported blog posts CSV file"})]}),i.jsxs(qe,{className:"space-y-4",children:[i.jsxs("div",{className:"border-2 border-dashed border-border rounded-lg p-8 text-center",children:[i.jsx("input",{type:"file",accept:".csv",onChange:d,className:"hidden",id:"csv-upload"}),i.jsxs("label",{htmlFor:"csv-upload",className:"cursor-pointer",children:[i.jsx(xw,{className:"mx-auto h-12 w-12 text-muted-foreground mb-4"}),i.jsx("p",{className:"text-sm font-medium mb-1",children:n?n.name:"Click to upload CSV"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"CSV file from Webflow export"})]})]}),i.jsxs(le,{onClick:h,disabled:!n||s,className:"w-full",children:[s&&i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),s?"Importing...":"Import Posts"]}),l&&i.jsxs(Ie,{className:"mt-6",children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"Import Results"})}),i.jsxs(qe,{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[i.jsx(Si,{className:"h-4 w-4 text-green-600"}),i.jsxs("span",{children:["Imported: ",l.imported," posts"]})]}),l.skipped>0&&i.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[i.jsx(li,{className:"h-4 w-4 text-yellow-600"}),i.jsxs("span",{children:["Skipped: ",l.skipped," posts"]})]}),((p=(f=l.details)==null?void 0:f.skipped)==null?void 0:p.length)>0&&i.jsxs("div",{className:"mt-4 pt-4 border-t",children:[i.jsx("p",{className:"text-sm font-medium mb-2",children:"Skipped posts:"}),i.jsx("ul",{className:"text-xs space-y-1 text-muted-foreground",children:l.details.skipped.map((y,m)=>i.jsxs("li",{children:[y.slug," - ",y.reason]},m))})]})]})]})]})]})]})}),i.jsx(br,{})]})}function Ist(){const{isAdmin:e,loading:t}=Fr(),r=wt(),[n,a]=k.useState(!1),[s,o]=k.useState(null),{toast:l}=Xt();if(k.useEffect(()=>{!t&&!e&&(l({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"}),r("/library"))},[e,t,r,l]),t)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})});const c=async()=>{a(!0),o(null);try{const{data:u,error:d}=await oe.functions.invoke("auto-categorize-posts");if(d)throw d;o(u),l({title:"Categorization complete!",description:`Successfully categorized ${u.categorized} posts using AI.`})}catch(u){console.error("Auto-categorize error:",u),l({title:"Categorization failed",description:u.message||"An error occurred during auto-categorization",variant:"destructive"})}finally{a(!1)}};return i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 pt-32 pb-16",children:i.jsxs("div",{className:"max-w-2xl mx-auto",children:[i.jsx("h1",{className:"font-crimson text-4xl mb-4",children:"Auto-Categorize Posts"}),i.jsx("p",{className:"text-muted-foreground mb-8",children:"Use AI to automatically categorize all your blog posts based on their content."}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"AI-Powered Categorization"}),i.jsx(Rt,{children:"This will analyze each post and assign it to the most appropriate category"})]}),i.jsxs(qe,{className:"space-y-4",children:[i.jsx("div",{className:"bg-muted p-4 rounded-lg",children:i.jsxs("p",{className:"text-sm",children:[i.jsx("strong",{children:"How it works:"})," The AI will read the title and excerpt of each post, then assign it to the best matching category from your existing categories."]})}),i.jsx(le,{onClick:c,disabled:n,className:"w-full",children:n?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Categorizing..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Qt,{className:"mr-2 h-4 w-4"}),"Auto-Categorize All Posts"]})}),s&&i.jsxs(Ie,{className:"mt-6",children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"Results"})}),i.jsxs(qe,{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-sm mb-4",children:[i.jsx(Si,{className:"h-4 w-4 text-green-600"}),i.jsxs("span",{children:["Categorized ",s.categorized," posts"]})]}),s.results&&s.results.length>0&&i.jsx("div",{className:"mt-4 max-h-64 overflow-y-auto border rounded-lg",children:i.jsxs("table",{className:"w-full text-xs",children:[i.jsx("thead",{className:"bg-muted sticky top-0",children:i.jsxs("tr",{children:[i.jsx("th",{className:"text-left p-2",children:"Post"}),i.jsx("th",{className:"text-left p-2",children:"Category"}),i.jsx("th",{className:"text-center p-2",children:"Status"})]})}),i.jsx("tbody",{children:s.results.map((u,d)=>i.jsxs("tr",{className:"border-t",children:[i.jsx("td",{className:"p-2 truncate max-w-xs",children:u.post}),i.jsx("td",{className:"p-2",children:u.category||"-"}),i.jsx("td",{className:"p-2 text-center",children:u.success?i.jsx(Si,{className:"h-3 w-3 text-green-600 inline"}):i.jsx(li,{className:"h-3 w-3 text-red-600 inline"})})]},d))})]})})]})]})]})]})]})}),i.jsx(br,{})]})}function Pst(){const{isAdmin:e,loading:t}=Fr(),r=wt(),[n,a]=k.useState(!1),[s,o]=k.useState([]),{toast:l}=Xt();if(k.useEffect(()=>{!t&&!e&&(l({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"}),r("/library"))},[e,t,r,l]),t)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})});const c=async()=>{a(!0),o([]);try{const{data:u,error:d}=await oe.from("blog_posts").select("id, title").order("created_at",{ascending:!1});if(d)throw d;if(!u||u.length===0){l({title:"No posts found",description:"There are no blog posts to process",variant:"destructive"}),a(!1);return}l({title:"Processing started",description:`Analyzing ${u.length} posts for internal links...`});const h=[];for(const p of u)try{const{data:y,error:m}=await oe.functions.invoke("auto-link-posts",{body:{postId:p.id}});if(m)throw m;h.push({postTitle:p.title,linksAdded:y.linksAdded,suggestions:y.suggestions||[]}
7970),o([...h])}catch(y){console.error(`Error processing "${p.title}":`,y),h.push({postTitle:p.title,linksAdded:0,suggestions:[]})}const f=h.reduce((p,y)=>p+y.linksAdded,0);l({title:"Internal linking complete!",description:`Added ${f} internal links across ${u.length} posts`})}catch(u){console.error("Error auto-linking posts:",u),l({title:"Error",description:u.message||"Failed to process posts",variant:"destructive"})}finally{a(!1)}};return i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 pt-32 pb-16",children:i.jsxs("div",{className:"max-w-4xl mx-auto",children:[i.jsxs("div",{className:"mb-8",children:[i.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Auto-Link Blog Posts"}),i.jsx("p",{className:"text-lg text-muted-foreground",children:"Automatically add relevant internal links to your blog posts using AI. This will analyze each post and intelligently insert links to related content."})]}),i.jsxs(Ie,{className:"mb-8",children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Add Internal Links"}),i.jsxs(Rt,{children:["This process will:",i.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[i.jsx("li",{children:"Analyze each blog post's content"}),i.jsx("li",{children:"Find relevant related posts to link to"}),i.jsx("li",{children:"Insert 2-5 contextual internal links per post"}),i.jsx("li",{children:"Update the content with proper markdown links"})]})]})]}),i.jsx(qe,{children:i.jsx(le,{onClick:c,disabled:n,size:"lg",className:"w-full",children:n?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Processing Posts..."]}):i.jsxs(i.Fragment,{children:[i.jsx(by,{className:"mr-2 h-4 w-4"}),"Start Auto-Linking"]})})})]}),s.length>0&&i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Results"}),i.jsxs(Rt,{children:["Internal links added to ",s.length," posts"]})]}),i.jsx(qe,{children:i.jsx("div",{className:"space-y-4",children:s.map((u,d)=>i.jsxs("div",{className:"border-b pb-4 last:border-b-0",children:[i.jsx("h3",{className:"font-semibold mb-2",children:u.postTitle}),u.linksAdded>0?i.jsxs("div",{children:[i.jsxs("p",{className:"text-sm text-muted-foreground mb-2",children:["Added ",u.linksAdded," link",u.linksAdded!==1?"s":""]}),i.jsx("ul",{className:"text-sm space-y-1",children:u.suggestions.map((h,f)=>i.jsxs("li",{className:"text-muted-foreground",children:[i.jsx(by,{className:"inline h-3 w-3 mr-1"}),'"',h.anchor,'" â ',h.target]},f))})]}):i.jsx("p",{className:"text-sm text-muted-foreground",children:"No links added"})]},d))})})]})]})}),i.jsx(br,{})]})}function Lst(){const{isAdmin:e,loading:t}=Fr(),r=wt(),[n,a]=k.useState(!1),[s,o]=k.useState(null),{toast:l}=Xt();if(k.useEffect(()=>{!t&&!e&&(l({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"}),r("/library"))},[e,t,r,l]),t)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})});const c=async()=>{a(!0),o(null);try{const{data:u,error:d}=await oe.functions.invoke("update-authors",{method:"POST"});if(d)throw d;if(!u.success)throw new Error(u.error||"Failed to update authors");o({updated:u.updated}),l({title:"Success!",description:u.message})}catch(u){console.error("Error updating authors:",u),l({title:"Error",description:u.message||"Failed to update authors",variant:"destructive"})}finally{a(!1)}};return i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 pt-32 pb-16",children:i.jsxs("div",{className:"max-w-2xl mx-auto",children:[i.jsxs("div",{className:"mb-8",children:[i.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Update Blog Authors"}),i.jsx("p",{className:"text-lg text-muted-foreground",children:"Update all blog posts to have Harper Jules as the author."})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Set Author to Harper Jules"}),i.jsx(Rt,{children:`This will update all blog posts that don't currently have "Harper Jules" as the author.`})]}),i.jsxs(qe,{className:"space-y-4",children:[i.jsx(le,{onClick:c,disabled:n,size:"lg",className:"w-full",children:n?"Updating...":i.jsxs(i.Fragment,{children:[i.jsx(bw,{className:"mr-2 h-4 w-4"}
7970),"Update All Authors"]})}),s&&i.jsxs("div",{className:"p-4 bg-muted rounded-lg",children:[i.jsx("p",{className:"font-semibold",children:"Update Complete!"}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Updated ",s.updated," blog post",s.updated!==1?"s":""]})]})]})]})]})}),i.jsx(br,{})]})}function Ost(){const{isAdmin:e,loading:t}=Fr(),r=wt(),[n,a]=k.useState(!1),[s,o]=k.useState(null),{toast:l}=Xt();if(k.useEffect(()=>{!t&&!e&&(l({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"}),r("/library"))},[e,t,r,l]),t)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})});const c=async()=>{a(!0),o(null);try{const{data:u,error:d}=await oe.functions.invoke("fix-blog-content");if(d)throw d;o(u),l({title:"Content fixed!",description:`Successfully fixed ${u.fixed} posts.`})}catch(u){console.error("Fix error:",u),l({title:"Fix failed",description:u.message||"An error occurred",variant:"destructive"})}finally{a(!1)}};return i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 pt-32 pb-16",children:i.jsxs("div",{className:"max-w-2xl mx-auto",children:[i.jsx("h1",{className:"font-crimson text-4xl mb-4",children:"Fix Blog Content"}),i.jsx("p",{className:"text-muted-foreground mb-8",children:"Fix HTML entities in all blog post content (converts & to &, etc.)"}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Content Fixer"}),i.jsx(Rt,{children:"This will decode HTML entities in all blog posts"})]}),i.jsxs(qe,{className:"space-y-4",children:[i.jsx("div",{className:"bg-muted p-4 rounded-lg",children:i.jsxs("p",{className:"text-sm",children:[i.jsx("strong",{children:"What it fixes:"}),` Converts HTML entities like &, ", ’ to their proper characters (&, ", ', etc.)`]})}),i.jsx(le,{onClick:c,disabled:n,className:"w-full",children:n?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Fixing..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Ay,{className:"mr-2 h-4 w-4"}),"Fix All Posts"]})}),s&&i.jsxs(Ie,{className:"mt-6",children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"Results"})}),i.jsxs(qe,{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[i.jsx(Si,{className:"h-4 w-4 text-green-600"}),i.jsxs("span",{children:["Fixed ",s.fixed," posts"]})]}),s.errors>0&&i.jsxs("div",{className:"text-sm text-destructive",children:[s.errors," errors occurred"]})]})]})]})]})]})}),i.jsx(br,{})]})}const Pt=k.forwardRef(({className:e,type:t,...r},n)=>i.jsx("input",{type:t,className:De("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));Pt.displayName="Input";function Rst(){const{isAdmin:e,loading:t}=Fr(),r=wt(),[n,a]=k.useState("the-serpent-and-the-wings-of-night-review-is-it-worth-reading"),[s,o]=k.useState(!1),{toast:l}=Xt();if(k.useEffect(()=>{!t&&!e&&(l({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"}),r("/library"))},[e,t,r,l]),t)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})});const c=async()=>{if(!n.trim()){l({title:"Error",description:"Please enter a slug",variant:"destructive"});return}o(!0);try{const{data:u,error:d}=await oe.functions.invoke("delete-blog-post",{body:{slug:n}});d?l({title:"Error",description:d.message,variant:"destructive"}):u!=null&&u.error?l({title:"Error",description:u.error,variant:"destructive"}):(l({title:"Success",description:"Post deleted successfully"}),a(""))}catch(u){l({title:"Error",description:u instanceof Error?u.message:"Unknown error",variant:"destructive"})}finally{o(!1)}};return i.jsxs("div",{className:"min-h-screen flex flex-col",children:[i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 py-24",children:i.jsxs(Ie,{className:"max-w-2xl mx-auto",children:[i.jsx(ze,{children:i.jsx(Ke,{children:"Delete Blog Post"})}),i.jsxs(qe,{className:"space-y-4",children:[i.jsx(Pt,{placeholder:"Enter post slug",value:n,onChange:u=>a(u.target.value)}),i.jsx(le,{onClick:c,disabled:s,variant:"destructive",children:s?"Deleting...":"Delete Post"})]})]})}),i.jsx(br,{})]})}function Dst(){const{isAdmin:e,loading:t}=Fr(),r=wt(),[n,a]=k.useState(!1),[s,o]=k.useState(!1),{toast:l}=Xt();if(k.useEffect(()=>{!t&&!e&&(l({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"}),r("/library"))},[e,t,r,l]),t)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})});const c=async()=>{a(!0);try{const{data:d,error:h}=await oe.functions.invoke("update-blog-links");if(h)throw h;l({title:"Success",description:d.message||"Internal blog links updated successfully"}),console.log("Update result:",d)}catch(d){l({title:"Error",description:d.message||"Failed to update blog links",variant:"destructive"}),console.error("Error:",d)}finally{a(!1)}},u=async()=>{o(!0);try{const{data:d,error:h}=await oe.functions.invoke("remove-blog-marketing-copy");if(h)throw h;l({title:"Success",description:d.message||"Marketing copy removed successfully"}),console.log("Marketing copy removal result:",d)}catch(d){l({title:"Error",description:d.message||"Failed to remove marketing copy",variant:"destructive"}),console.error("Error:",d)}finally{o(!1)}};return i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 pt-32 pb-16",children:i.jsxs("div",{className:"max-w-2xl mx-auto
7970space-y-6",children:[i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Update Internal Blog Links"}),i.jsx(Rt,{children:"This will update all internal links in blog post content from /blog/ to /post/"})]}),i.jsx(qe,{children:i.jsx(le,{onClick:c,disabled:n,className:"w-full",children:n?"Updating...":"Update All Blog Links"})})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Remove Kibbi Marketing Copy"}),i.jsx(Rt,{children:"This will remove promotional Kibbi marketing copy from the end of all blog posts"})]}),i.jsx(qe,{children:i.jsx(le,{onClick:u,disabled:s,className:"w-full",children:s?"Removing...":"Remove Marketing Copy"})})]})]})}),i.jsx(br,{})]})}const Dr=k.forwardRef(({className:e,...t},r)=>i.jsx("textarea",{className:De("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));Dr.displayName="Textarea";const Fst=()=>{const{isAdmin:e,loading:t}=Fr(),r=wt(),{toast:n}=Xt(),[a]=k.useState("1c425654-4ee3-43a3-920b-b741fe17b3cb"),[s]=k.useState(11),[o]=k.useState(`Playful sketchy linework, energetic loose lines, minimal detail, wonky whimsical proportions, light flat color fills, children's illustration style, image content extends to all edges with no white space or fading, clean digital rendering on a smooth surface :: Medium shot, high angle looking down, full-bleed illustration. Mina (Main Character): A determined 4-year-old girl with white skin, dark eyes, and straight black hair in two short braids. She wears a fuzzy yellow cardigan, a pale pink t-shirt, blue pants, and red sneakers. Mr. Ochoa (Supporting Character): An adult man with a medium build, warm brown skin, short black curly hair, and dark brown eyes. He wears a light blue button-up shirt, tan pants, brown loafers, black rectangular glasses, and a simple wristwatch. Mina stands beside the circle-time rug. The circle-time rug is large, round, with a rainbow border. A small, white adhesive label with "Mina" written on it stays on Mina's pale pink t-shirt with one loose edge still visible beside the blue paint dot. Mina pauses with one hand hovering near the bright name sticker and turns her face toward Mr. Ochoa. Mr. Ochoa stands just beyond the rug and looks back at Mina.`),[l,c]=k.useState(!1);if(k.useEffect(()=>{!t&&!e&&(n({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"}),r("/library"))},[e,t,r,n]),t)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})});const u=async()=>{c(!0);try{const{data:d,error:h}=await oe.functions.invoke("update-page-prompt",{body:{storyId:a,pageNumber:s,newPrompt:o}});if(h)throw h;n({title:"Success",description:"Prompt updated and image generation started!"}),console.log("Update result:",d)}catch(d){console.error("Error updating prompt:",d),n({title:"Error",description:"Failed to update prompt",variant:"destructive"})}finally{c(!1)}};return i.jsxs("div",{className:"min-h-screen flex flex-col",children:[i.jsx(lr,{}),i.jsxs("main",{className:"flex-1 container max-w-4xl mx-auto p-8 pt-24",children:[i.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Update Page 11 Prompt"}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"Story ID"}),i.jsx(Pt,{value:a,readOnly:!0})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"Page Number"}),i.jsx(Pt,{value:s,readOnly:!0})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium mb-2",children:"New Prompt"}),i.jsx(Dr,{value:o,readOnly:!0,rows:10,className:"font-mono text-sm"})]}),i.jsx(le,{onClick:u,disabled:l,className:"w-full",children:l?"Updating...":"Update Prompt & Regenerate Image"})]})]}),i.jsx(br,{})]})},pa=k.forwardRef(({className:e,...t},r)=>i.jsx("div",{className:"relative w-full overflow-auto",children:i.jsx("table",{ref:r,className:De("w-full caption-bottom text-sm",e),...t})}));pa.displayName="Table";const ma=k.forwardRef(({className:e,...t},r)=>i.jsx("thead",{ref:r,className:De("[&_tr]:border-b",e),...t}));ma.displayName="TableHeader";const ga=k.forwardRef(({className:e,...t},r)=>i.jsx("tbody",{ref:r,className:De("[&_tr:last-child]:border-0",e),...t}));ga.displayName="TableBody";const $st=k.forwardRef(({className:e,...t},r)=>i.jsx("tfoot",{ref:r,className:De("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));$st.displayName="TableFooter";const Jt=k.forwardRef(({className:e,...t},r)=>i.jsx("tr",{ref:r,className:De("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Jt.displayName="TableRow";const Ce=k.forwardRef(({className:e,...t},r)=>i.jsx("th",{ref:r,className:De("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ce.displayName="TableHead";const Ee=k.forwardRef(({className:e,...t},r)=>i.jsx("td",{ref:r,className:De("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));
vendor: 4,592 bytes, line 7970
7970Ee.displayName="TableCell";const Bst=k.forwardRef(({className:e,...t},r)=>i.jsx("caption",{ref:r,className:De("mt-4 text-sm text-muted-foreground",e),...t}));Bst.displayName="TableCaption";const zst=ov("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Re({className:e,variant:t,...r}){return i.jsx("div",{className:De(zst({variant:t}),e),...r})}var YW="Tabs",[Ust,jWt]=xa(YW,[bv]),V5e=bv(),[qst,sse]=Ust(YW),W5e=k.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:a,defaultValue:s,orientation:o="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=q0(l),[h,f]=ks({prop:n,onChange:a,defaultProp:s??"",caller:YW});return i.jsx(qst,{scope:r,baseId:$a(),value:h,onValueChange:f,orientation:o,dir:d,activationMode:c,children:i.jsx(dt.div,{dir:d,"data-orientation":o,...u,ref:t})})});W5e.displayName=YW;var G5e="TabsList",K5e=k.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...a}=e,s=sse(G5e,r),o=V5e(r);return i.jsx(wie,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:n,children:i.jsx(dt.div,{role:"tablist","aria-orientation":s.orientation,...a,ref:t})})});K5e.displayName=G5e;var Y5e="TabsTrigger",X5e=k.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:a=!1,...s}=e,o=sse(Y5e,r),l=V5e(r),c=J5e(o.baseId,n),u=e6e(o.baseId,n),d=n===o.value;return i.jsx(kie,{asChild:!0,...l,focusable:!a,active:d,children:i.jsx(dt.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...s,ref:t,onMouseDown:Xe(e.onMouseDown,h=>{!a&&h.button===0&&h.ctrlKey===!1?o.onValueChange(n):h.preventDefault()}),onKeyDown:Xe(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&o.onValueChange(n)}),onFocus:Xe(e.onFocus,()=>{const h=o.activationMode!=="manual";!d&&!a&&h&&o.onValueChange(n)})})})});X5e.displayName=Y5e;var Z5e="TabsContent",Q5e=k.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:a,children:s,...o}=e,l=sse(Z5e,r),c=J5e(l.baseId,n),u=e6e(l.baseId,n),d=n===l.value,h=k.useRef(d);return k.useEffect(()=>{const f=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(f)},[]),i.jsx(ba,{present:a||d,children:({present:f})=>i.jsx(dt.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:f&&s})})});Q5e.displayName=Z5e;function J5e(e,t){return`${e}-trigger-${t}`}function e6e(e,t){return`${e}-content-${t}`}var Hst=W5e,t6e=K5e,r6e=X5e,n6e=Q5e;const Mv=Hst,X0=k.forwardRef(({className:e,...t},r)=>i.jsx(t6e,{ref:r,className:De("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));X0.displayName=t6e.displayName;const Zn=k.forwardRef(({className:e,...t},r)=>i.jsx(r6e,{ref:r,className:De("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));Zn.displayName=r6e.displayName;const Ql=k.forwardRef(({className:e,...t},r)=>i.jsx(n6e,{ref:r,className:De("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Ql.displayName=n6e.displayName;const js=({title:e})=>{const t=wt(),r=wa(),n=[{group:"Analytics",items:[{path:"/admin/funnel",label:"Funnel",icon:Kc}]},{group:"Content",items:[{path:"/admin/stories",label:"Stories",icon:xr},{path:"/admin/illustrations",label:"Illustrations",icon:lc},{path:"/admin/edits",label:"Edits",icon:ii},{path:"/admin/categorize-stories",label:"Categories",icon:Qb},{path:"/admin/marketing-pages",label:"Marketing",icon:Ti}]},{group:"Users",items:[{path:"/admin/users",label:"Users",icon:Xi},{path:"/admin/orders",label:"Orders",icon:vl},{path:"/admin/chatbot-conversations",label:"Conversations",icon:ky}
7970,{path:"/admin/feedback",label:"Feedback",icon:Fa},{path:"/admin/reviews",label:"Reviews",icon:Oa}]},{group:"Tools",items:[{path:"/admin/scheduled-stories",label:"Scheduled Stories",icon:Gb},{path:"/admin/article-suggestions",label:"Articles",icon:Ti},{path:"/admin/fix-missing-images",label:"Fix Images",icon:Ay}]}],a=s=>r.pathname===s;return i.jsx("header",{className:"border-b border-border px-4 md:px-6 py-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2 md:gap-4",children:[i.jsx("img",{src:va,alt:"kibbi",className:"h-6 md:h-8"}),e&&i.jsx("h1",{className:"text-base md:text-xl font-semibold",children:e})]}),i.jsxs(jk,{children:[i.jsx(Ek,{asChild:!0,children:i.jsxs(le,{variant:"outline",className:"gap-2",children:[i.jsx(dw,{className:"h-4 w-4"}),i.jsx("span",{className:"hidden md:inline",children:"Admin Menu"}),i.jsx(sc,{className:"h-4 w-4"})]})}),i.jsxs(x2,{align:"end",className:"w-56 bg-background z-50",children:[i.jsx(cte,{children:"Admin Pages"}),i.jsx(Ck,{}),n.map(s=>i.jsxs("div",{children:[i.jsx(cte,{className:"text-xs text-muted-foreground",children:s.group}),s.items.map(o=>{const l=o.icon,c=a(o.path);return i.jsxs(ua,{onClick:()=>t(o.path),className:c?"bg-accent text-accent-foreground font-medium":"",children:[i.jsx(l,{className:"mr-2 h-4 w-4"}),o.label]},o.path)}),i.jsx(Ck,{})]},s.group)),i.jsxs(ua,{onClick:()=>t("/library"),children:[i.jsx(ea,{className:"mr-2 h-4 w-4"}),"Back to App"]})]})]})]})})},A3=500;function Vst(e){const t=e.trim();if(!t)return{pages:null};const r=new Set;for(const n of t.split(/[\s,]+/).filter(Boolean)){const a=n.match(/^(\d+)-(\d+)$/);if(a){const o=Number(a[1]),l=Number(a[2]);if(o<1||l<1)return{error:`page numbers start at 1 (got "${n}")`};if(l<o)return{error:`range "${n}" ends before it starts`};if(l>A3)return{error:`page numbers go up to ${A3} (got "${n}")`};for(let c=o;c<=l;c++)r.add(c);continue}if(!/^\d+$/.test(n))return{error:`"${n}" is not a page number or range`};const s=Number(n);if(s<1)return{error:`page numbers start at 1 (got "${n}")`};if(s>A3)return{error:`page numbers go up to ${A3} (got "${n}")`};r.add(s)}return r.size===0?{error:"no page numbers found"}:{pages:[...r].sort((n,a)=>n-a)}}const Wst=()=>{const e=wt(),{user:t,loading:r}=er(),{isAdmin:n,loading:a}=Fr(),{toast:s}=Xt(),[o,l]=k.useState(!0),[c,u]=k.useState([]),[d,h]=k.useState([]),[f,p]=k.useState(null),[y,m]=k.useState(""),[v,g]=k.useState(""),[b,x]=k.useState(!1),[_,w]=k.useState("incomplete"),[j,E]=k.useState("all"),[C,N]=k.useState("");k.useEffect(()=>{if(console.log("AdminIllustrations useEffect:",{user:t,isAdmin:n,adminLoading:a,authLoading:r}),!r){if(!t){console.log("No user, redirecting to login"),e("/login");return}if(!a&&!n){console.log("Not admin, redirecting to library"),e("/library"),s({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"});return}!a&&n&&(console.log("Admin confirmed, loading illustrations"),A())}},[t,n,a,r,e]);const A=async()=>{l(!0);try{const{data:P,error:R}=await oe.from("stories").select("id, story_title, story_content, page_illustrations, updated_at").order("updated_at",{ascending:!1});if(R)throw R;const H=[],re=[];P==null||P.forEach(ae=>{const D=ae.story_content||{},U=ae.page_illustrations||{};Object.keys(D).forEach(se=>{const te=parseInt(se),Q=U[te];!Q||Q.status==="failed"||Q.status==="generating"||Q.status==="pending"||!Q.image_url?H.push({storyId:ae.id,storyTitle:ae.story_title||"Untitled",pageNumber:te,status:(Q==null?void 0:Q.status)||"missing",imageUrl:(Q==null?void 0:Q.image_url)||null,prompt:(Q==null?void 0:Q.prompt)||null,updatedAt:ae.updated_at}):Q.status==="complete"&&Q.image_url&&re.push({storyId:ae.id,storyTitle:ae.story_title||"Untitled",pageNumber:te,status:Q.status,imageUrl:Q.image_url,prompt:Q.prompt||null,updatedAt:ae.updated_at})})}),u(H),h(re)}catch(P){console.error("Error loading illustrations:",P),s({title:"Error",description:"Failed to load illustrations",variant:"destructive"})}finally{l(!1)}},$=async(P,R)=>{var re;const H=`${P}-${R}`;p(H);try{const{data:ae,error:D}=await oe.from("stories").select("page_illustrations").eq("id",P).single();if(D)throw D;const se=(re=((ae==null?void 0:ae.page_illustrations)||{})[R])==null?void 0:re.prompt;if(!se)throw new Error("No prompt found for this page");console.log(`[AdminIllustrations] Retrying page ${R} with prompt:`,se);const{error:te}=await oe.functions.invoke("update-page-prompt",{body:{storyId:P,pageNumber:R,newPrompt:se,isEdit:!1}});if(te)throw te;s({title:"Success",description:`Image generation started for page ${R}`}),setTimeout(A,2e3)}catch(ae){console.error("Error retrying illustration:",ae),s({title:"Error",description:ae instanceof Error?ae.message:"Failed to retry illustration",variant:"destructive"})}finally{p(null)}},T=async()=>{const P=y.trim();if(!P)return;const R=Vst(v);if("error"in R){s({title:"Invalid pages",description:R.error,variant:"destructive"});return}x(!0);try{const{data:H,error:re}=await oe.functions.invoke("repair-story-images",{body:R.pages?{storyId:P,pages:R.pages}:{storyId:P,all:!0}});if(re)throw re;const ae=(H==null?void 0:H.collateralPages)??[];s({title:"Re-render started",description:`Pages ${H==null?void 0:H.fromPage}-${((H==null?void 0:H.fromPage)??1)+((H==null?void 0:H.maxPages)??1)-1} are rendering.`+(ae.length?` Also re-rendering ${ae.join(", ")} to keep the span contiguous.`:"")}),setTimeout(A,3e3)}catch(H){s({title:"Re-render failed",description:H instanceof Error?H.message:"Unknown error",variant:"destructive"})}finally{x(!1)}},F=async P=>{p(`regenerate-${P}`);try{const{data:R,error:H}=await oe.from("stories").select("language").eq("id",P).single();if(H)throw H;s({title:"Starting Regeneration",description:"Regenerating character descriptions and prompts..."});const{error:re}=await oe.functions.invoke("generate-character-descriptions",{body:{storyId:P,language:R.language}}
7970);if(re)throw new Error(`Character descriptions failed: ${re.message}`);const{error:ae}=await oe.functions.invoke("generate-all-prompts",{body:{storyId:P}});if(ae)throw new Error(`Prompt generation failed: ${ae.message}`);s({title:"Success",description:"Character descriptions and prompts regenerated successfully"}),setTimeout(A,3e3)}catch(R){console.error("Error regenerating prompts:",R),s({title:"Error",description:R instanceof Error?R.message:"Failed to regenerate prompts",variant:"destructive"})}finally{p(null)}},M=P=>{switch(P){case"failed":return i.jsxs(Re,{variant:"destructive",className:"gap-1",children:[i.jsx(Ya,{className:"h-3 w-3"}),"Failed"]});case"generating":return i.jsxs(Re,{variant:"secondary",className:"gap-1",children:[i.jsx(Da,{className:"h-3 w-3"}),"Generating"]});case"pending":return i.jsxs(Re,{variant:"outline",className:"gap-1",children:[i.jsx(Da,{className:"h-3 w-3"}),"Pending"]});case"missing":return i.jsxs(Re,{variant:"outline",className:"gap-1",children:[i.jsx(Ya,{className:"h-3 w-3"}),"Missing"]});case"complete":return i.jsxs(Re,{className:"gap-1 bg-green-500",children:[i.jsx(Vi,{className:"h-3 w-3"}),"Complete"]});default:return i.jsx(Re,{variant:"secondary",children:P})}},z=c.filter(P=>P.status==="failed").length,Y=c.filter(P=>P.status==="generating").length,W=c.filter(P=>P.status==="pending").length,ee=c.filter(P=>P.status==="missing").length,Z=j==="all"?c:c.filter(P=>P.status===j),V=C.trim()===""?Z:Z.filter(P=>P.storyTitle.toLowerCase().includes(C.toLowerCase())),ne=C.trim()===""?d:d.filter(P=>P.storyTitle.toLowerCase().includes(C.toLowerCase()));return r||a||o?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin mx-auto text-primary"}),i.jsx("p",{className:"text-muted-foreground",children:"Loading illustrations..."})]})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Illustrations"}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-7xl",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-4 mb-8",children:[i.jsx(Ie,{className:`cursor-pointer transition-all hover:shadow-md ${j==="all"?"ring-2 ring-primary":""}`,onClick:()=>E("all"),children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"All Incomplete"}),i.jsx(Ke,{className:"text-3xl",children:c.length})]})}),i.jsx(Ie,{className:`cursor-pointer transition-all hover:shadow-md ${j==="failed"?"ring-2 ring-destructive":""}`,onClick:()=>E("failed"),children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Failed"}),i.jsx(Ke,{className:"text-3xl text-destructive",children:z})]})}),i.jsx(Ie,{className:`cursor-pointer transition-all hover:shadow-md ${j==="generating"?"ring-2 ring-blue-500":""}`,onClick:()=>E("generating"),children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Generating"}),i.jsx(Ke,{className:"text-3xl text-blue-500",children:Y})]})}),i.jsx(Ie,{className:`cursor-pointer transition-all hover:shadow-md ${j==="pending"?"ring-2 ring-yellow-500":""}`,onClick:()=>E("pending"),children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Pending"}),i.jsx(Ke,{className:"text-3xl text-yellow-500",children:W})]})}),i.jsx(Ie,{className:`cursor-pointer transition-all hover:shadow-md ${j==="missing"?"ring-2 ring-muted":""}`,onClick:()=>E("missing"),children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Missing"}),i.jsx(Ke,{className:"text-3xl text-muted-foreground",children:ee})]})})]}),i.jsxs("div",{className:"mb-6",children:[i.jsxs("div",{className:"relative max-w-md",children:[i.jsx(go,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),i.jsx(Pt,{type:"text",placeholder:"Search by story name...",value:C,onChange:P=>N(P.target.value),className:"pl-10 pr-10"}),C&&i.jsx("button",{onClick:()=>N(""),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-muted-foreground hover:text-foreground",children:i.jsx(hi,{className:"h-4 w-4"})})]}),C&&i.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Searching for: ",i.jsx("span",{className:"font-medium",children:C})]})]}),i.jsxs(Ie,{className:"mb-6",children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Re-render illustrations"}),i.jsx(Rt,{children:'Renders pages through the Breyta pipeline and overwrites the existing images. Leave pages blank for the whole book. The pipeline renders a contiguous span, so "3, 9" also re-renders 4-8.'})]}),i.jsx(qe,{children:i.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[i.jsx(Pt,{placeholder:"Story ID (UUID)",value:y,onChange:P=>m(P.target.value),className:"sm:max-w-md"}),i.jsx(Pt,{placeholder:"Pages, e.g. 3,9 (blank = all)",value:v,onCh
7970ange:P=>g(P.target.value),className:"sm:max-w-xs"}),i.jsx(le,{onClick:T,disabled:b||!y.trim(),children:b?i.jsx(Me,{className:"h-4 w-4 animate-spin"}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"h-4 w-4 mr-1"}),"Re-render"]})})]})})]}),i.jsxs(Mv,{value:_,onValueChange:w,children:[i.jsxs(X0,{className:"mb-4",children:[i.jsxs(Zn,{value:"incomplete",children:["Incomplete (",V.length,")"]}),i.jsxs(Zn,{value:"finished",children:["Finished (",ne.length,")"]})]}),i.jsx(Ql,{value:"incomplete",children:i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Incomplete Illustrations"}),i.jsx(Rt,{children:c.length===0?"All illustrations are complete!":C?`Found ${V.length} result(s) matching "${C}"${j!=="all"?` (${j})`:""}`:j==="all"?`Showing ${V.length} incomplete illustration(s)`:`Showing ${V.length} of ${c.length} incomplete illustration(s) (${j})`})]}),i.jsx(qe,{children:V.length===0?i.jsx("div",{className:"text-center py-12",children:C?i.jsxs(i.Fragment,{children:[i.jsx(Ya,{className:"h-12 w-12 text-muted mx-auto mb-4"}),i.jsx("p",{className:"text-lg font-medium",children:"No results found"}),i.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:['No illustrations found matching "',C,'"',j!=="all"&&` with status "${j}"`]}),i.jsx(le,{variant:"outline",onClick:()=>N(""),className:"mt-4",children:"Clear search"})]}):i.jsxs(i.Fragment,{children:[i.jsx(Vi,{className:"h-12 w-12 text-green-500 mx-auto mb-4"}),i.jsx("p",{className:"text-lg font-medium",children:j==="all"?"All illustrations are complete!":`No ${j} illustrations`}),i.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:j==="all"?"There are no failed, pending, or missing illustrations at this time.":'Click "All Incomplete" to see all illustrations.'})]})}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Story Title"}),i.jsx(Ce,{children:"Page"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Prompt"}),i.jsx(Ce,{children:"Last Updated"}),i.jsx(Ce,{className:"text-right",children:"Actions"})]})}),i.jsx(ga,{children:V.map(P=>{const R=`${P.storyId}-${P.pageNumber}`;return i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium",children:i.jsx("button",{onClick:()=>e(`/app/book-preview?id=${P.storyId}`),className:"hover:underline text-left",children:P.storyTitle})}),i.jsx(Ee,{children:P.pageNumber}),i.jsx(Ee,{children:M(P.status)}),i.jsx(Ee,{className:"max-w-xs truncate",children:P.prompt?i.jsxs("span",{className:"text-xs text-muted-foreground",children:[P.prompt.substring(0,60),"..."]}):i.jsx("span",{className:"text-xs text-muted-foreground italic",children:"No prompt"})}),i.jsx(Ee,{className:"text-sm text-muted-foreground",children:new Date(P.updatedAt).toLocaleDateString()}),i.jsxs(Ee,{className:"text-right space-x-2",children:[i.jsx(le,{size:"sm",variant:"outline",onClick:()=>$(P.storyId,P.pageNumber),disabled:f===R,children:f===R?i.jsx(Me,{className:"h-4 w-4 animate-spin"}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"h-4 w-4 mr-1"}),"Retry"]})}),P.pageNumber===1&&i.jsx(le,{size:"sm",variant:"secondary",onClick:()=>F(P.storyId),disabled:f===`regenerate-${P.storyId}`,title:"Regenerate all character descriptions and prompts for this story",children:f===`regenerate-${P.storyId}`?i.jsx(Me,{className:"h-4 w-4 animate-spin"}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"h-4 w-4 mr-1"}),"All Prompts"]})})]})]},R)})})]})})})]})}),i.jsx(Ql,{value:"finished",children:i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Finished Illustrations"}),i.jsx(Rt,{children:C?`Found ${ne.length} result(s) matching "${C}"`:`Showing ${ne.length} completed illustration(s)`})]}),i.jsx(qe,{children:ne.length===0?i.jsx("div",{className:"text-center py-12",children:C?i.jsxs(i.Fragment,{children:[i.jsx(Ya,{className:"h-12 w-12 text-muted mx-auto mb-4"}),i.jsx("p",{className:"text-lg font-medium",children:"No results found"}),i.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:['No finished illustrations found matching "',C,'"']}),i.jsx(le,{variant:"outline",onClick:()=>N(""),className:"mt-4",children:"Clear search"})]}):i.jsxs(i.Fragment,{children:[i.jsx(Ya,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),i.jsx("p",{className:"text-lg font-medium",children:"No finished illustrations"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Completed illustrations will appear here."})]})}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Story Title"}),i.jsx(Ce,{children:"Page"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Preview"}),i.jsx(Ce,{children:"Prompt"}),i.jsx(Ce,{children:"Last Updated"}),i.jsx(Ce,{className:"text-right",children:"Actions"})]})}),i.jsx(ga,{children:ne.map(P=>{const R=`${P.storyId}-${P.pageNumber}`;return i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium",children:i.jsx("button",{onClick:()=>e(`/app/book-preview?id=${P.storyId}`),className:"hover:underline text-left",children:P.storyTitle})}),i.jsx(Ee,{children:P.pageNumber}),i.jsx(Ee,{children:M(P.status)}),i.jsx(Ee,{children:P.imageUrl&&i.jsx("img",{src:P.imageUrl,alt:`Page ${P.pageNumber}`,className:"h-12 w-12 object-cover rounded"})}),i.jsx(Ee,{className:"max-w-xs truncate",children:P.prompt?i.jsxs("span",{className:"text-xs text-muted-foreground",children:[P.prompt.substring(0,60),"..."]}):i.jsx("span",{className:"text-xs text-muted-foreground italic",children:"No prompt"})}),i.jsx(Ee,{className:"text-sm text-muted-foreground",children:new Date(P.updatedAt).toLocaleDateString()}),i.jsx(Ee,{className:"text-right",children:i.jsx(le,{size:"sm",variant:"outline",onClick:()=>$(P.storyId,P.pageNumber),disabled:f===R,children:f===R?i.jsx(Me,{className:"h-4 w-4 animate-spin"}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"h-4 w-4 mr-1"}),"Regenerate"]})})})]},R)})})]})})})]})})]})]})]})},oX=768;function ose(){const[e,t]=k.useState(void 0);return k.useEffect(()=>{const r=window.matchMedia(`(max-width: ${oX-1}px)`),n=()=>{t(window.innerWidth<oX)};return r.addEventListener("change",n),t(window.innerWidth<oX),()=>r.removeEventListener("change",n)},[]),!!e}const Xr=EW,lse=yie,Gst=CW,a6e=k.forwardRef(({className:e,...t},r)=>i.jsx(vv,{ref:r,className:De("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),...t}));a6e.displayName=vv.displayName;const Ur=k.forwardRef(({className:e,children:t,...r},n)=>i.jsxs(Gst,{children:[i.jsx(a6e,{}),i.jsxs(xv,{ref:n,className:De("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 max-h-[90vh] overflow-y-auto 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
7970nded-lg",e),...r,children:[t,i.jsxs(NW,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[i.jsx(hi,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ur.displayName=xv.displayName;const Nr=({className:e,...t})=>i.jsx("div",{className:De("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Nr.displayName="DialogHeader";const _2=({className:e,...t})=>i.jsx("div",{className:De("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_2.displayName="DialogFooter";const Tr=k.forwardRef(({className:e,...t},r)=>i.jsx(z_,{ref:r,className:De("text-lg font-semibold leading-none tracking-tight",e),...t}));Tr.displayName=z_.displayName;const ra=k.forwardRef(({className:e,...t},r)=>i.jsx(U_,{ref:r,className:De("text-sm text-muted-foreground",e),...t}));ra.displayName=U_.displayName;const epe={"claude-fable-5-1":{input:10,output:50,cacheRead:.25},"claude-opus-5-5":{input:4,output:20,cacheRead:.2},"claude-opus-5":{input:5,output:25,cacheRead:.5},"claude-opus-4-8":{input:5,output:25,cacheRead:.5},"claude-opus-4-7":{input:5,output:25,cacheRead:.5},"claude-opus-4-6":{input:5,output:25,cacheRead:.5},"claude-opus-4-5":{input:5,output:25,cacheRead:.5},"claude-sonnet-5":{input:2,output:10,cacheRead:.2},"claude-sonnet-4-6":{input:3,output:15,cacheRead:.3},"claude-sonnet-4-5":{input:3,output:15,cacheRead:.3},"claude-haiku-4-5":{input:1,output:5,cacheRead:.1}};function i6e(e){const t=(e??"").toLowerCase().trim().replace(/-\d{8}$/,"");return Object.prototype.hasOwnProperty.call(epe,t)?epe[t]:null}function Kst(e,t){const r=i6e(e);return r?(t.freshInput*r.input+t.cacheWrite*r.input*1.25+t.cacheRead*r.cacheRead+t.output*r.output)/1e6:null}function tpe(e){const t=new Set;for(const r of e)r.api_provider==="anthropic"&&!i6e(r.model)&&t.add(r.model||"unknown");return[...t].sort()}function Nte(e,[t,r]){return Math.min(r,Math.max(t,e))}function Yst(e,t){return k.useReducer((r,n)=>t[r][n]??r,e)}var cse="ScrollArea",[s6e,EWt]=xa(cse),[Xst,So]=s6e(cse),o6e=k.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:a,scrollHideDelay:s=600,...o}=e,[l,c]=k.useState(null),[u,d]=k.useState(null),[h,f]=k.useState(null),[p,y]=k.useState(null),[m,v]=k.useState(null),[g,b]=k.useState(0),[x,_]=k.useState(0),[w,j]=k.useState(!1),[E,C]=k.useState(!1),N=Vt(t,$=>c($)),A=q0(a);return i.jsx(Xst,{scope:r,type:n,dir:A,scrollHideDelay:s,scrollArea:l,viewport:u,onViewportChange:d,content:h,onContentChange:f,scrollbarX:p,onScrollbarXChange:y,scrollbarXEnabled:w,onScrollbarXEnabledChange:j,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:E,onScrollbarYEnabledChange:C,onCornerWidthChange:b,onCornerHeightChange:_,children:i.jsx(dt.div,{dir:A,...o,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});o6e.displayName=cse;var l6e="ScrollAreaViewport",c6e=k.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:a,...s}=e,o=So(l6e,r),l=k.useRef(null),c=Vt(t,l,o.onViewportChange);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),i.jsx(dt.div,{"data-radix-scroll-area-viewport":"",...s,ref:c,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:i.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});c6e.displayName=l6e;var _c="ScrollAreaScrollbar",use=k.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=So(_c,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:o}=a,l=e.orientation==="horizontal";return k.useEffect(()=>(l?s(!0):o(!0),()=>{l?s(!1):o(!1)}),[l,s,o]),a.type==="hover"?i.jsx(Zst,{...n,ref:t,forceMount:r}):a.type==="scroll"?i.jsx(Qst,{...n,ref:t,forceMount:r}):a.type==="auto"?i.jsx(u6e,{...n,ref:t,forceMount:r}):a.type==="always"?i.jsx(dse,{...n,ref:t}):null});use.displayName=_c;var Zst=k.forwardRef((e,t)=>
vendor: 4,249 bytes, line 7970
7970{const{forceMount:r,...n}=e,a=So(_c,e.__scopeScrollArea),[s,o]=k.useState(!1);return k.useEffect(()=>{const l=a.scrollArea;let c=0;if(l){const u=()=>{window.clearTimeout(c),o(!0)},d=()=>{c=window.setTimeout(()=>o(!1),a.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[a.scrollArea,a.scrollHideDelay]),i.jsx(ba,{present:r||s,children:i.jsx(u6e,{"data-state":s?"visible":"hidden",...n,ref:t})})}),Qst=k.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=So(_c,e.__scopeScrollArea),s=e.orientation==="horizontal",o=ZW(()=>c("SCROLL_END"),100),[l,c]=Yst("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return k.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>c("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,a.scrollHideDelay,c]),k.useEffect(()=>{const u=a.viewport,d=s?"scrollLeft":"scrollTop";if(u){let h=u[d];const f=()=>{const p=u[d];h!==p&&(c("SCROLL"),o()),h=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[a.viewport,s,c,o]),i.jsx(ba,{present:r||l!=="hidden",children:i.jsx(dse,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Xe(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:Xe(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),u6e=k.forwardRef((e,t)=>{const r=So(_c,e.__scopeScrollArea),{forceMount:n,...a}=e,[s,o]=k.useState(!1),l=e.orientation==="horizontal",c=ZW(()=>{if(r.viewport){const u=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;o(l?u:d)}},10);return S2(r.viewport,c),S2(r.content,c),i.jsx(ba,{present:n||s,children:i.jsx(dse,{"data-state":s?"visible":"hidden",...a,ref:t})})}),dse=k.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,a=So(_c,e.__scopeScrollArea),s=k.useRef(null),o=k.useRef(0),[l,c]=k.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=m6e(l.viewport,l.content),d={...n,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>s.current=f,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:f=>o.current=f};function h(f,p){return aot(f,o.current,l,p)}return r==="horizontal"?i.jsx(Jst,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){const f=a.viewport.scrollLeft,p=rpe(f,l,a.dir);s.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{a.viewport&&(a.viewport.scrollLeft=f)},onDragScroll:f=>{a.viewport&&(a.viewport.scrollLeft=h(f,a.dir))}}):r==="vertical"?i.jsx(eot,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){const f=a.viewport.scrollTop,p=rpe(f,l);s.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{a.viewport&&(a.viewport.scrollTop=f)},onDragScroll:f=>{a.viewport&&(a.viewport.scrollTop=h(f))}}):null}),Jst=k.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...a}=e,s=So(_c,e.__scopeScrollArea),[o,l]=k.useState(),c=k.useRef(null),u=Vt(t,c,s.onScrollbarXChange);return k.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),i.jsx(h6e,{"data-orientation":"horizontal",...a,ref:u,sizes:r,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":XW(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,h)=>{if(s.viewport){const f=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(f),y6e(f,h)&&d.preventDefault()}},onResize:()=>{c.current&&s.viewport&&o&&n({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:vH(o.paddingLeft),paddingEnd:vH(o.paddingRight)}})}})}),eot=k.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...a}=e,s=So(_c,e.__scopeScrollArea),[o,l]=k.useState(),c=k.useRef(null),u=Vt(t,c,s.onScrollbarYChange);return k.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),i.jsx(h6e,{"data-orientation":"vertical",...a,ref:u,sizes:r,style:{to
vendor: 6,008 bytes, line 7970
7970p:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":XW(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,h)=>{if(s.viewport){const f=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(f),y6e(f,h)&&d.preventDefault()}},onResize:()=>{c.current&&s.viewport&&o&&n({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:vH(o.paddingTop),paddingEnd:vH(o.paddingBottom)}})}})}),[tot,d6e]=s6e(_c),h6e=k.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:a,onThumbChange:s,onThumbPointerUp:o,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:h,...f}=e,p=So(_c,r),[y,m]=k.useState(null),v=Vt(t,N=>m(N)),g=k.useRef(null),b=k.useRef(""),x=p.viewport,_=n.content-n.viewport,w=Qn(d),j=Qn(c),E=ZW(h,10);function C(N){if(g.current){const A=N.clientX-g.current.left,$=N.clientY-g.current.top;u({x:A,y:$})}}return k.useEffect(()=>{const N=A=>{const $=A.target;(y==null?void 0:y.contains($))&&w(A,_)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[x,y,_,w]),k.useEffect(j,[n,j]),S2(y,E),S2(p.content,E),i.jsx(tot,{scope:r,scrollbar:y,hasThumb:a,onThumbChange:Qn(s),onThumbPointerUp:Qn(o),onThumbPositionChange:j,onThumbPointerDown:Qn(l),children:i.jsx(dt.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:Xe(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),g.current=y.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),C(N))}),onPointerMove:Xe(e.onPointerMove,C),onPointerUp:Xe(e.onPointerUp,N=>{const A=N.target;A.hasPointerCapture(N.pointerId)&&A.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=b.current,p.viewport&&(p.viewport.style.scrollBehavior=""),g.current=null})})})}),yH="ScrollAreaThumb",f6e=k.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=d6e(yH,e.__scopeScrollArea);return i.jsx(ba,{present:r||a.hasThumb,children:i.jsx(rot,{ref:t,...n})})}),rot=k.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...a}=e,s=So(yH,r),o=d6e(yH,r),{onThumbPositionChange:l}=o,c=Vt(t,h=>o.onThumbChange(h)),u=k.useRef(void 0),d=ZW(()=>{u.current&&(u.current(),u.current=void 0)},100);return k.useEffect(()=>{const h=s.viewport;if(h){const f=()=>{if(d(),!u.current){const p=iot(h,l);u.current=p,l()}};return l(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[s.viewport,d,l]),i.jsx(dt.div,{"data-state":o.hasThumb?"visible":"hidden",...a,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Xe(e.onPointerDownCapture,h=>{const p=h.target.getBoundingClientRect(),y=h.clientX-p.left,m=h.clientY-p.top;o.onThumbPointerDown({x:y,y:m})}),onPointerUp:Xe(e.onPointerUp,o.onThumbPointerUp)})});f6e.displayName=yH;var hse="ScrollAreaCorner",p6e=k.forwardRef((e,t)=>{const r=So(hse,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?i.jsx(not,{...e,ref:t}):null});p6e.displayName=hse;var not=k.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,a=So(hse,r),[s,o]=k.useState(0),[l,c]=k.useState(0),u=!!(s&&l);return S2(a.scrollbarX,()=>{var h;const d=((h=a.scrollbarX)==null?void 0:h.offsetHeight)||0;a.onCornerHeightChange(d),c(d)}),S2(a.scrollbarY,()=>{var h;const d=((h=a.scrollbarY)==null?void 0:h.offsetWidth)||0;a.onCornerWidthChange(d),o(d)}),u?i.jsx(dt.div,{...n,ref:t,style:{width:s,height:l,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function vH(e){return e?parseInt(e,10):0}function m6e(e,t){const r=e/t;return isNaN(r)?0:r}function XW(e){const t=m6e(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function aot(e,t,r,n="ltr"){const a=XW(r),s=a/2,o=t||s,l=a-o,c=r.scrollbar.paddingStart+o,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,d=r.content-r.viewport,h=n==="ltr"?[0,d]:[d*-1,0];return g6e([c,u],h)(e)}function rpe(e,t,r="ltr"){const n=XW(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-a,o=t.content-t.viewport,l=s-n,c=r==="ltr"?[0,o]:[o*-1,0],u=Nte(e,c);return g6e([0,o],[0,l])(u)}function g6e(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function y6e(e,t){return e>0&&e<t}var iot=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function a(){const s={left:e.scrollLeft,top:e.scrollTop},o=r.left!==s.left,l=r.top!==s.top;(o||l)&&t(),r=s,n=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(n)};function ZW(e,t){const r=Qn(e),n=k.useRef(0);return k.useEffect(()=>()=>window.clearTimeout(n.current),[]),k.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function S2(e,t){const r=Qn(t);za(()=>{let n=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(n),a.unobserve(e)}}},[e,r])}var v6e=o6e,sot=c6e,oot=p6e;const fse=k.forwardRef(({className:e,children:t,...r},n)=>i.jsxs(v6e,{ref:n,className:De("relative overflow-hidden",e),...r,children:[i.jsx(sot,{className:"h-full w-full rounded-[inherit]",children:t}),i.jsx(pse,{}),i.jsx(oot,{})]}));fse.displayName=v6e.displayName;const pse=k.forwardRef(({className:e,orientation:t="vertical",...r},n)=>i.jsx(use,{ref:n,orientation:t,className:De("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:i.jsx(f6e,{className:"relative flex-1 rounded-full bg-border"})}));
vendor: 4,268 bytes, line 7970
7970pse.displayName=use.displayName;const x6e=({className:e,...t})=>i.jsx("nav",{role:"navigation","aria-label":"pagination",className:De("mx-auto flex w-full justify-center",e),...t});x6e.displayName="Pagination";const b6e=k.forwardRef(({className:e,...t},r)=>i.jsx("ul",{ref:r,className:De("flex flex-row items-center gap-1",e),...t}));b6e.displayName="PaginationContent";const tq=k.forwardRef(({className:e,...t},r)=>i.jsx("li",{ref:r,className:De("",e),...t}));tq.displayName="PaginationItem";const QW=({className:e,isActive:t,size:r="icon",...n})=>i.jsx("a",{"aria-current":t?"page":void 0,className:De(wW({variant:t?"outline":"ghost",size:r}),e),...n});QW.displayName="PaginationLink";const w6e=({className:e,...t})=>i.jsxs(QW,{"aria-label":"Go to previous page",size:"default",className:De("gap-1 pl-2.5",e),...t,children:[i.jsx(fu,{className:"h-4 w-4"}),i.jsx("span",{children:"Previous"})]});w6e.displayName="PaginationPrevious";const k6e=({className:e,...t})=>i.jsxs(QW,{"aria-label":"Go to next page",size:"default",className:De("gap-1 pr-2.5",e),...t,children:[i.jsx("span",{children:"Next"}),i.jsx(Vs,{className:"h-4 w-4"})]});k6e.displayName="PaginationNext";const _6e=({className:e,...t})=>i.jsxs("span",{"aria-hidden":!0,className:De("flex h-9 w-9 items-center justify-center",e),...t,children:[i.jsx(Xc,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"More pages"})]});_6e.displayName="PaginationEllipsis";function JW(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var lot=[" ","Enter","ArrowUp","ArrowDown"],cot=[" ","Enter"],T0="Select",[eG,tG,uot]=A_(T0),[Iv,CWt]=xa(T0,[uot,mh]),rG=mh(),[dot,bh]=Iv(T0),[hot,fot]=Iv(T0),S6e=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:s,value:o,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:f,required:p,form:y}=e,m=rG(t),[v,g]=k.useState(null),[b,x]=k.useState(null),[_,w]=k.useState(!1),j=q0(u),[E,C]=ks({prop:n,defaultProp:a??!1,onChange:s,caller:T0}),[N,A]=ks({prop:o,defaultProp:l,onChange:c,caller:T0}),$=k.useRef(null),T=v?y||!!v.closest("form"):!0,[F,M]=k.useState(new Set),z=Array.from(F).map(Y=>Y.props.value).join(";");return i.jsx($ae,{...m,children:i.jsxs(dot,{required:p,scope:t,trigger:v,onTriggerChange:g,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:_,onValueNodeHasChildrenChange:w,contentId:$a(),value:N,onValueChange:A,open:E,onOpenChange:C,dir:j,triggerPointerDownPosRef:$,disabled:f,children:[i.jsx(eG.Provider,{scope:t,children:i.jsx(hot,{scope:e.__scopeSelect,onNativeOptionAdd:k.useCallback(Y=>{M(W=>new Set(W).add(Y))},[]),onNativeOptionRemove:k.useCallback(Y=>{M(W=>{const ee=new Set(W);return ee.delete(Y),ee})},[]),children:r})}),T?i.jsxs(K6e,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:h,value:N,onChange:Y=>A(Y.target.value),disabled:f,form:y,children:[N===void 0?i.jsx("option",{value:""}):null,Array.from(F)]},z):null]})})};S6e.displayName=T0;var j6e="SelectTrigger",E6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...a}=e,s=rG(r),o=bh(j6e,r),l=o.disabled||n,c=Vt(t,o.onTriggerChange),u=tG(r),d=k.useRef("touch"),[h,f,p]=X6e(m=>{const v=u().filter(x=>!x.disabled),g=v.find(x=>x.value===o.value),b=Z6e(v,m,g);b!==void 0&&o.onValueChange(b.value)}),y=m=>{l||(o.onOpenChange(!0),p()),m&&(o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return i.jsx(P_,{asChild:!0,...s,children:i.jsx(dt.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Y6e(o.value)?"":void 0,...a,ref:c,onClick:Xe(a.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&y(m)}),onPointerDown:Xe(a.onPointerDown,m=>{d.current=m.pointerType;const v=m.target;v.hasPointerCapture(m.pointerId)&&v.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(y(m),m.preventDefault())}),onKeyDown:Xe(a.onKeyDown,m=>{const v=h.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(v&&m.key===" ")&&lot.includes(m.key)&&
vendor: 1,743 bytes, line 7970
7970(y(),m.preventDefault())})})})});E6e.displayName=j6e;var C6e="SelectValue",N6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,children:s,placeholder:o="",...l}=e,c=bh(C6e,r),{onValueNodeHasChildrenChange:u}=c,d=s!==void 0,h=Vt(t,c.onValueNodeChange);return za(()=>{u(d)},[u,d]),i.jsx(dt.span,{...l,ref:h,style:{pointerEvents:"none"},children:Y6e(c.value)?i.jsx(i.Fragment,{children:o}):s})});N6e.displayName=C6e;var pot="SelectIcon",T6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...a}=e;return i.jsx(dt.span,{"aria-hidden":!0,...a,ref:t,children:n||"â¼"})});T6e.displayName=pot;var mot="SelectPortal",A6e=e=>i.jsx(sv,{asChild:!0,...e});A6e.displayName=mot;var A0="SelectContent",M6e=k.forwardRef((e,t)=>{const r=bh(A0,e.__scopeSelect),[n,a]=k.useState();if(za(()=>{a(new DocumentFragment)},[]),!r.open){const s=n;return s?B0.createPortal(i.jsx(I6e,{scope:e.__scopeSelect,children:i.jsx(eG.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(P6e,{...e,ref:t})});M6e.displayName=A0;var Wo=10,[I6e,wh]=Iv(A0),got="SelectContentImpl",yot=ih("SelectContent.RemoveScroll"),P6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:o,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:y,hideWhenDetached:m,avoidCollisions:v,...g}=e,b=bh(A0,r),[x,_]=k.useState(null),[w,j]=k.useState(null),E=Vt(t,D=>_(D)),[C,N]=k.useState(null),[A,$]=k.useState(null),T=tG(r),[F,M]=k.useState(!1),z=k.useRef(!1);k.useEffect(()=>{if(x)return SW(x)},[x]),kW();const Y=k.useCallback(D=>{const[U,...se]=T().map(K=>K.ref.current),[te]=se.slice(-1),Q=document.activeElement;
vendor: 13,966 bytes, line 7970
7970for(const K of D)if(K===Q||(K==null||K.scrollIntoView({block:"nearest"}),K===U&&w&&(w.scrollTop=0),K===te&&w&&(w.scrollTop=w.scrollHeight),K==null||K.focus(),document.activeElement!==Q))return},[T,w]),W=k.useCallback(()=>Y([C,x]),[Y,C,x]);k.useEffect(()=>{F&&W()},[F,W]);const{onOpenChange:ee,triggerPointerDownPosRef:Z}=b;k.useEffect(()=>{if(x){let D={x:0,y:0};const U=te=>{var Q,K;D={x:Math.abs(Math.round(te.pageX)-(((Q=Z.current)==null?void 0:Q.x)??0)),y:Math.abs(Math.round(te.pageY)-(((K=Z.current)==null?void 0:K.y)??0))}},se=te=>{D.x<=10&&D.y<=10?te.preventDefault():x.contains(te.target)||ee(!1),document.removeEventListener("pointermove",U),Z.current=null};return Z.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",se,{capture:!0})}}},[x,ee,Z]),k.useEffect(()=>{const D=()=>ee(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[ee]);const[V,ne]=X6e(D=>{const U=T().filter(Q=>!Q.disabled),se=U.find(Q=>Q.ref.current===document.activeElement),te=Z6e(U,D,se);te&&setTimeout(()=>te.ref.current.focus())}),P=k.useCallback((D,U,se)=>{const te=!z.current&&!se;(b.value!==void 0&&b.value===U||te)&&(N(D),te&&(z.current=!0))},[b.value]),R=k.useCallback(()=>x==null?void 0:x.focus(),[x]),H=k.useCallback((D,U,se)=>{const te=!z.current&&!se;(b.value!==void 0&&b.value===U||te)&&$(D)},[b.value]),re=n==="popper"?Tte:L6e,ae=re===Tte?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:y,hideWhenDetached:m,avoidCollisions:v}:{};return i.jsx(I6e,{scope:r,content:x,viewport:w,onViewportChange:j,itemRefCallback:P,selectedItem:C,onItemLeave:R,itemTextRefCallback:H,focusSelectedItem:W,selectedItemText:A,position:n,isPositioned:F,searchRef:V,children:i.jsx(B_,{as:yot,allowPinchZoom:!0,children:i.jsx($_,{asChild:!0,trapped:b.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:Xe(a,D=>{var U;(U=b.trigger)==null||U.focus({preventScroll:!0}),D.preventDefault()}),children:i.jsx(z0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:i.jsx(re,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:D=>D.preventDefault(),...g,...ae,onPlaced:()=>M(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Xe(g.onKeyDown,D=>{const U=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!U&&D.key.length===1&&ne(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let te=T().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(D.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const Q=D.target,K=te.indexOf(Q);te=te.slice(K+1)}setTimeout(()=>Y(te)),D.preventDefault()}})})})})})})});P6e.displayName=got;var vot="SelectItemAlignedPosition",L6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...a}=e,s=bh(A0,r),o=wh(A0,r),[l,c]=k.useState(null),[u,d]=k.useState(null),h=Vt(t,E=>d(E)),f=tG(r),p=k.useRef(!1),y=k.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:g,focusSelectedItem:b}=o,x=k.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&u&&m&&v&&g){const E=s.trigger.getBoundingClientRect(),C=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),A=g.getBoundingClientRect();if(s.dir!=="rtl"){const Q=A.left-C.left,K=N.left-Q,ue=E.left-K,B=E.width+ue,pe=Math.max(B,C.width),G=window.innerWidth-Wo,I=Nte(K,[Wo,Math.max(Wo,G-pe)]);l.style.minWidth=B+"px",l.style.left=I+"px"}else{const Q=C.right-A.right,K=window.innerWidth-N.right-Q,ue=window.innerWidth-E.right-K,B=E.width+ue,pe=Math.max(B,C.width),G=window.innerWidth-Wo,I=Nte(K,[Wo,Math.max(Wo,G-pe)]);l.style.minWidth=B+"px",l.style.right=I+"px"}const $=f(),T=window.innerHeight-Wo*2,F=m.scrollHeight,M=window.getComputedStyle(u),z=parseInt(M.borderTopWidth,10),Y=parseInt(M.paddingTop,10),W=parseInt(M.borderBottomWidth,10),ee=parseInt(M.paddingBottom,10),Z=z+Y+F+ee+W,V=Math.min(v.offsetHeight*5,Z),ne=window.getComputedStyle(m),P=parseInt(ne.paddingTop,10),R=parseInt(ne.paddingBottom,10),H=E.top+E.height/2-Wo,re=T-H,ae=v.offsetHeight/2,D=v.offsetTop+ae,U=z+Y+D,se=Z-U;if(U<=H){const Q=$.length>0&&v===$[$.length-1].ref.current;l.style.bottom="0px";const K=u.clientHeight-m.offsetTop-m.offsetHeight,ue=Math.max(re,ae+(Q?R:0)+K+W),B=U+ue;l.style.height=B+"px"}else{const Q=$.length>0&&v===$[0].ref.current;l.style.top="0px";const ue=Math.max(H,z+m.offsetTop+(Q?P:0)+ae)+se;l.style.height=ue+"px",m.scrollTop=U-H+m.offsetTop}l.style.margin=`${Wo}px 0`,l.style.minHeight=V+"px",l.style.maxHeight=T+"px",n==null||n(),requestAnimationFrame(()=>p.current=!0)}},[f,s.trigger,s.valueNode,l,u,m,v,g,s.dir,n]);za(()=>x(),[x]);const[_,w]=k.useState();za(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]);const j=k.useCallback(E=>{E&&y.current===!0&&(x(),b==null||b(),y.current=!1)},[x,b]);return i.jsx(bot,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:j,children:i.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:i.jsx(dt.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});L6e.displayName=vot;var xot="SelectPopperPosition",Tte=k.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:a=Wo,...s}=e,o=rG(r);return i.jsx(sW,{...o,...s,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Tte.displayName=xot;var[bot,mse]=Iv(A0,{}),Ate="SelectViewport",O6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...a}=e,s=wh(Ate,r),o=mse(Ate,r),l=Vt(t,s.onViewportChange),c=k.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),i.jsx(eG.Slot,{scope:r,children:i.jsx(dt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Xe(a.onScroll,u=>{const d=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&h){const p=Math.abs(c.current-d.scrollTop);if(p>0){const y=window.innerHeight-Wo*2,m=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),g=Math.max(m,v);if(g<y){const b=g+p,x=Math.min(y,b),_=b-x;h.style.height=x+"px",h.style.bottom==="0px"&&(d.scrollTop=_>0?_:0,h.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});O6e.displayName=Ate;var R6e="SelectGroup",[wot,kot]=Iv(R6e),_ot=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=$a();return i.jsx(wot,{scope:r,id:a,children:i.jsx(dt.div,{role:"group","aria-labelledby":a,...n,ref:t})})});_ot.displayName=R6e;var D6e="SelectLabel",F6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=kot(D6e,r);return i.jsx(dt.div,{id:a.id,...n,ref:t})});F6e.displayName=D6e;var xH="SelectItem",[Sot,$6e]=Iv(xH),B6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:a=!1,textValue:s,...o}=e,l=bh(xH,r),c=wh(xH,r),u=l.value===n,[d,h]=k.useState(s??""),[f,p]=k.useState(!1),y=Vt(t,b=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,b,n,a)}),m=$a(),v=k.useRef("touch"),g=()=>{a||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(Sot,{scope:r,value:n,disabled:a,textId:m,isSelected:u,onItemTextChange:k.useCallback(b=>{h(x=>x||((b==null?void 0:b.textContent)??"").trim())},[]),children:i.jsx(eG.ItemSlot,{scope:r,value:n,disabled:a,textValue:d,children:i.jsx(dt.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:y,onFocus:Xe(o.onFocus,()=>p(!0)),onBlur:Xe(o.onBlur,()=>p(!1)),onClick:Xe(o.onClick,()=>{v.current!=="mouse"&&g()}),onPointerUp:Xe(o.onPointerUp,()=>{v.current==="mouse"&&g()}),onPointerDown:Xe(o.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:Xe(o.onPointerMove,b=>{var x;v.current=b.pointerType,a?(x=c.onItemLeave)==null||x.call(c):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xe(o.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:Xe(o.onKeyDown,b=>{var _;((_=c.searchRef)==null?void 0:_.current)!==""&&b.key===" "||(cot.includes(b.key)&&g(),b.key===" "&&b.preventDefault())})})})})});B6e.displayName=xH;var Sb="SelectItemText",z6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,...s}=e,o=bh(Sb,r),l=wh(Sb,r),c=$6e(Sb,r),u=fot(Sb,r),[d,h]=k.useState(null),f=Vt(t,g=>h(g),c.onItemTextChange,g=>{var b;return(b=l.itemTextRefCallback)==null?void 0:b.call(l,g,c.value,c.disabled)}),p=d==null?void 0:d.textContent,y=k.useMemo(()=>i.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=u;return za(()=>(m(y),()=>v(y)),[m,v,y]),i.jsxs(i.Fragment,{children:[i.jsx(dt.span,{id:c.textId,...s,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?B0.createPortal(s.children,o.valueNode):null]})});z6e.displayName=Sb;var U6e="SelectItemIndicator",q6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return $6e(U6e,r).isSelected?i.jsx(dt.span,{"aria-hidden":!0,...n,ref:t}):null});q6e.displayName=U6e;var Mte="SelectScrollUpButton",H6e=k.forwardRef((e,t)=>{const r=wh(Mte,e.__scopeSelect),n=mse(Mte,e.__scopeSelect),[a,s]=k.useState(!1),o=Vt(t,n.onScrollButtonChange);return za(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollTop>0;s(u)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?i.jsx(W6e,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});H6e.displayName=Mte;var Ite="SelectScrollDownButton",V6e=k.forwardRef((e,t)=>{const r=wh(Ite,e.__scopeSelect),n=mse(Ite,e.__scopeSelect),[a,s]=k.useState(!1),o=Vt(t,n.onScrollButtonChange);return za(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;s(d)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?i.jsx(W6e,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});V6e.displayName=Ite;var W6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...a}=e,s=wh("SelectScrollButton",r),o=k.useRef(null),l=tG(r),c=k.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return k.useEffect(()=>()=>c(),[c]),za(()=>{var d;const u=l().find(h=>h.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),i.jsx(dt.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Xe(a.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:Xe(a.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:Xe(a.onPointerLeave,()=>{c()})})}),jot="SelectSeparator",G6e=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return i.jsx(dt.div,{"aria-hidden":!0,...n,ref:t})});G6e.displayName=jot;var Pte="SelectArrow",Eot=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=rG(r),s=bh(Pte,r),o=wh(Pte,r);return s.open&&o.position==="popper"?i.jsx(oW,{...a,...n,ref:t}):null});Eot.displayName=Pte;var Cot="SelectBubbleInput",K6e=k.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const a=k.useRef(null),s=Vt(n,a),o=JW(t);return k.useEffect(()=>{const l=a.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&d){const h=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(h)}},[o,t]),i.jsx(dt.select,{...r,style:{...mwe,...r.style},ref:s,defaultValue:t})});K6e.displayName=Cot;function Y6e(e){return e===""||e===void 0}function X6e(e){const t=Qn(e),r=k.useRef(""),n=k.useRef(0),a=k.useCallback(o=>{const l=r.current+o;t(l),function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),s=k.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,s]}function Z6e(e,t,r){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let o=Not(e,Math.max(s,0));a.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return c!==r?c:void 0}function Not(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Tot=S6e,Q6e=E6e,Aot=N6e,Mot=T6e,Iot=A6e,J6e=M6e,Pot=O6e,eEe=F6e,tEe=B6e,Lot=z6e,Oot=q6e,rEe=H6e,nEe=V6e,aEe=G6e;const rn=Tot,nn=Aot,Wr=k.forwardRef(({className:e,children:t,...r},n)=>i.jsxs(Q6e,{ref:n,className:De("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
7970ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,i.jsx(Mot,{asChild:!0,children:i.jsx(sc,{className:"h-4 w-4 opacity-50"})})]}));Wr.displayName=Q6e.displayName;const iEe=k.forwardRef(({className:e,...t},r)=>i.jsx(rEe,{ref:r,className:De("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(Kb,{className:"h-4 w-4"})}));iEe.displayName=rEe.displayName;const sEe=k.forwardRef(({className:e,...t},r)=>i.jsx(nEe,{ref:r,className:De("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(sc,{className:"h-4 w-4"})}));sEe.displayName=nEe.displayName;const Gr=k.forwardRef(({className:e,children:t,position:r="popper",...n},a)=>i.jsx(Iot,{children:i.jsxs(J6e,{ref:a,className:De("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[i.jsx(iEe,{}),i.jsx(Pot,{className:De("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),i.jsx(sEe,{})]})}));Gr.displayName=J6e.displayName;const Rot=k.forwardRef(({className:e,...t},r)=>i.jsx(eEe,{ref:r,className:De("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Rot.displayName=eEe.displayName;const pt=k.forwardRef(({className:e,children:t,...r},n)=>i.jsxs(tEe,{ref:n,className:De("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(Oot,{children:i.jsx(_r,{className:"h-4 w-4"})})}),i.jsx(Lot,{children:t})]}));pt.displayName=tEe.displayName;const Dot=k.forwardRef(({className:e,...t},r)=>i.jsx(aEe,{ref:r,className:De("-mx-1 my-1 h-px bg-muted",e),...t}));Dot.displayName=aEe.displayName;const npe=e=>{if(!e)return"N/A";const t=C0.find(r=>r.key===e);return t?t.name:e},Fot=()=>{const e=wt(),{isAdmin:t,loading:r}=Fr(),n=ose(),{toast:a}=Xt(),[s,o]=k.useState([]),[l,c]=k.useState(null),[u,d]=k.useState([]),[h,f]=k.useState(!1),[p,y]=k.useState(null),[m,v]=k.useState(null),[g,b]=k.useState(null),[x,_]=k.useState([]),[w,j]=k.useState(!1),[E,C]=k.useState(!1),[N,A]=k.useState([]),[$,T]=k.useState(null),[F,M]=k.useState(!1),[z,Y]=k.useState(1),[W,ee]=k.useState(25),[Z,V]=k.useState(""),[ne,P]=k.useState(""),[R,H]=k.useState("all"),[re,ae]=k.useState("all"),[D,U]=k.useState("all"),[se,te]=k.useState("all"),[Q,K]=k.useState("all");k.useEffect(()=>{const xe=setTimeout(()=>{P(Z),Y(1)},300);return()=>clearTimeout(xe)},[Z]);const ue=k.useMemo(()=>{const xe=new Set;return s.forEach(je=>{var ut;(ut=je.categories)==null||ut.forEach(Ot=>xe.add(Ot))}),Array.from(xe).sort()},[s]),B=k.useMemo(()=>s.filter(xe=>{var rr,Oe,rt;const je=ne.toLowerCase(),ut=!ne||((rr=xe.story_title)==null?void 0:rr.toLowerCase().includes(je))||((Oe=xe.user_email)==null?void 0:Oe.toLowerCase().includes(je))||xe.id.toLowerCase().includes(je),Ot=R==="all"||xe.status===R,lt=re==="all"||re==="byos"&&xe.story_source==="user_provided"||re==="kibbi"&&(!xe.story_source||xe.story_source==="kibbi"),et=D==="all"||((rt=xe.categories)==null?void 0:rt.includes(D)),It=se==="all"||xe.age_range===se,wr=Q==="all"||Q==="free_sample"&&xe.is_free_sample||Q==="purchased"&&xe.has_purchased||Q==="unpaid"&&!xe.is_free_sample&&!xe.has_purchased;return ut&&Ot&<&&et&&It&&wr}),[s,ne,R,re,D,se,Q]),pe=Math.ceil(B.length/W),G=(z-1)*W,I=G+W,L=B.slice(G,I),q=Z||R!=="all"||re!=="all"||D!=="all"||se!=="all"||Q!=="all",X=()=>{V(""),H("all"),ae("all"),U("all"),te("all"),K("all"),Y(1)},ie=()=>{const xe=[];if(pe<=7)return Array.from({length:pe},(je,ut)=>ut+1);xe.push(1),z>3&&xe.push("ellipsis");for(let je=Math.max(2,z-1);je<=Math.min(pe-1,z+1);je++)xe.push(je);return z<pe-2&&xe.push("ellipsis"),pe>1&&xe.push(pe),xe};k.useEffect(()=>{r||t||e("/")},[t,r,e]);const{isLoading:J,refetch:fe}=ei({queryKey:["admin-stories"],queryFn:async()=>{const{data:xe,error:je}=await oe.rpc("get_stories_with_user_emails");if(je)throw je;const ut=xe||[],{data:Ot}=await oe.from("story_token_usage_summary").select("story_id, openai_total_tokens, lovable_ai_total_tokens, anthropic_total_tokens"),lt=new Map;
7970(Ot||[]).forEach(It=>{It.story_id&<.set(It.story_id,(It.openai_total_tokens||0)+(It.lovable_ai_total_tokens||0)+(It.anthropic_total_tokens||0))});const et=ut.map(It=>({...It,total_tokens:lt.get(It.id)||0}));return o(et),et},enabled:!!t&&!r,staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,refetchOnMount:!1,meta:{onError:()=>a({title:"Error",description:"Failed to load stories",variant:"destructive"})}}),ve=xe=>{c(xe);const je=xe.page_illustrations||{},ut=xe.story_content||{},lt=Object.keys(ut).map(et=>parseInt(et)).sort((et,It)=>et-It).map(et=>{var It,wr,rr;return{pageNumber:et,prompt:((It=je[et])==null?void 0:It.prompt)||"No prompt available",imageUrl:((wr=je[et])==null?void 0:wr.image_url)||null,status:((rr=je[et])==null?void 0:rr.status)||"missing"}});d(lt),f(!0)},ge=async xe=>{c(xe);try{const{data:je,error:ut}=await oe.from("story_questions").select("question, answer, question_order").eq("story_id",xe.id).order("question_order",{ascending:!0});if(ut)throw ut;_(je||[]),j(!0)}catch(je){console.error("Error loading story questions:",je),a({title:"Error",description:"Failed to load story input",variant:"destructive"})}},de=xe=>{let je=0;return xe.forEach(ut=>{var nt;const Ot=ut.api_provider,lt=(ut.model||"").toLowerCase(),et=ut.cache_read_tokens||0,It=ut.cache_creation_tokens||0,wr=Math.max(0,ut.prompt_tokens-et),rr=wr/1e6,Oe=ut.completion_tokens/1e6,rt=et/1e6;if(Ot==="anthropic"){const yt=Kst(lt,{freshInput:wr,output:ut.completion_tokens,cacheRead:et,cacheWrite:It});yt!==null&&(je+=yt);return}if(Ot==="openai"){if(lt.includes("gpt-image")){const yt=(((nt=ut.metadata)==null?void 0:nt.quality)||"").toString().toLowerCase();yt==="low"?je+=.005:yt==="medium"?je+=.042:yt==="high"?je+=.167:je+=.041}else lt.includes("gpt-5")&<.includes("mini")?je+=rr*.25+rt*.125+Oe*2:lt.includes("gpt-5")?je+=rr*2.5+rt*1.25+Oe*15:lt.includes("gpt-4")&&(je+=rr*2.5+rt*1.25+Oe*10);return}if(Ot==="lovable_ai"){lt.includes("gemini")&<.includes("flash")?je+=rr*.3+Oe*2.5:lt.includes("gemini")&<.includes("pro")&&(je+=rr*1.25+Oe*10);return}if(Ot==="replicate"){je+=.002;return}}),je},ye=xe=>{const je={};return xe.forEach(ut=>{const Ot=ut.operation_type;je[Ot]||(je[Ot]={tokens:0,prompt_tokens:0,completion_tokens:0,cache_read_tokens:0,calls:0,provider:ut.api_provider}),je[Ot].tokens+=ut.total_tokens,je[Ot].prompt_tokens+=ut.prompt_tokens||0,je[Ot].completion_tokens+=ut.completion_tokens||0,je[Ot].cache_read_tokens+=ut.cache_read_tokens||0,je[Ot].calls+=1}),je},_e=async xe=>{c(xe),M(!0);try{const{data:je,error:ut}=await oe.from("token_usage_logs").select("*").eq("story_id",xe.id).order("created_at",{ascending:!0});if(ut)throw ut;if(A(je||[]),je&&je.length>0){const Ot=je,lt={total_tokens:Ot.reduce((et,It)=>et+It.total_tokens,0),total_prompt_tokens:Ot.reduce((et,It)=>et+It.prompt_tokens,0),total_completion_tokens:Ot.reduce((et,It)=>et+It.completion_tokens,0),openai_tokens:Ot.filter(et=>et.api_provider==="openai").reduce((et,It)=>et+It.total_tokens,0),lovable_ai_tokens:Ot.filter(et=>et.api_provider==="lovable_ai").reduce((et,It)=>et+It.total_tokens,0),replicate_tokens:Ot.filter(et=>et.api_provider==="replicate").reduce((et,It)=>et+It.total_tokens,0),total_cache_creation_tokens:Ot.reduce((et,It)=>et+(It.cache_creation_tokens||0),0),total_cache_read_tokens:Ot.reduce((et,It)=>et+(It.cache_read_tokens||0),0),total_api_calls:Ot.length,estimated_cost:de(Ot),unpriced_models:tpe(Ot),by_operation:ye(Ot)};T(lt)}else T(null);C(!0)}catch(je){console.error("Error loading token usage:",je),a({title:"Error",description:"Failed to load token usage data",variant:"destructive"})}finally{M(!1)}},Fe=async xe=>{console.log("ð Regenerate clicked for story:",xe),y(xe);try{console.log("ð¡ Invoking regenerate-story function...");const{data:je,error:ut}=await oe.functions.invoke("regenerate-story",{body:{storyId:xe}});if(console.log("ð¥ Function response:",{data:je,error:ut}),ut)throw ut;a({title:"Success",description:"Story regeneration started. This may take a few minutes."}),await fe()}catch(je){console.error("â Error regenerating story:",je),a({title:"Error",description:je instanceof Error?je.message:"Failed to regenerate story",variant:"destructive"})}finally{y(null)}},ht=async xe=>{console.log("ð Regenerate Draft clicked for story:",xe),b(xe);try{const{data:je,error:ut}=await oe.functions.invoke("admin-retry-story",{body:{storyId:xe,mode:"draft_only"}});if(ut)throw ut;a({title:"Draft Regeneration Started",description:"Regenerating story text only (no cover/images)."}),await fe()}catch(je){console.error("â Error regenerating draft:",je),a({title:"Error",description:je instanceof Error?je.message:"Failed to regenerate draft",variant:"destructive"})}finally{b(null)}},_t=async xe=>{var je,ut,Ot,lt;console.log("ð Retry clicked for story:",xe),v(xe);try{const{data:et,error:It}=await oe.functions.invoke("admin-retry-story",{body:{storyId:xe}});if(console.log("ð¥ Retry response:",et),It)throw It;const wr={story_generation_retry:"Retrying story content generation...",cover_generation_retry:"Retrying book cover generation...",prompts_retry:"Retrying prompt generation...",full_retry:"Restarting story generation from beginning...",image_queue_reset:`Reset ${((je=et.details)==null?void 0:je.resetCount)||0} stuck image jobs`,image_queue_trigger:`Triggered processor for ${((ut=et.details)==null?void 0:ut.pendingCount)||0} pending images`,generation_restart:"Restarted stuck generation...",empty_story_generation:"Started story generation for empty story...",missing_images_queued:`Queued ${((Ot=et.details)==null?void 0:Ot.pagesQueued)||0} missing images${(lt=et.details)!=null&<.coverQueued?" and cover":""} for generation`,no_action_needed:"Story doesn't appear to be stuck"};a({title:et.action==="no_action_needed"?"No Action Needed":"Retry Started",description:wr[et.action]||"Retry action completed"}),await fe()}catch(et){console.error("â Error retrying story:",et),a({title:"Error",description:et instanceof Error?et.message:"Failed to retry story",variant:"destructive"})}finally{v(null)}};return r||J?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin mx-auto text-primary"}),i.jsx("p",{className:"text-muted-foreground",children:"Loading..."})]})}):t?i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"All User Stories"}),i.jsx("main",{className:"container mx-auto px-4 py-4 md:py-8 max-w-7xl",children:i.jsxs(Ie,{children:[i.jsxs(ze,{className:"pb-3 md:pb-6",children:[i.jsx(Ke,{className:"text-lg md:text-2xl",children:"All User Stories"}),i.jsx(Rt,{className:"text-sm",children:B.length===s.length?`${s.length} total stories`:`${B.length} of ${s.length} stories`})]}),i.jsxs(qe,{children:[i.jsxs("div",{className:"flex flex-col gap-4 mb-4",children:[i.jsxs("div",{className:"relative",children:[i.jsx(go,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),i.jsx(Pt,{placeholder:"Search by title, email, or story ID...",value:Z,onChange:xe=>V(xe.target.value),className:"pl-10"})]}),i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsxs(rn,{value:R,onValueChange:xe=>{H(xe),Y(1)},children:[i.jsx(Wr,{className:"w-[140px]",children:i.jsx(nn,{placeholder:"Status"})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"all",children:"All Status"}),i.jsx(pt,{value:"completed",children:"Completed"}),i.jsx(pt,{value:"generating",children:"Generating"}),i.jsx(pt,{value:"failed",children:"Failed"}),i.jsx(pt,{value:"review",children:"Review"}),i.jsx(pt,{value:"draft",children:"Draft"}),i.jsx(pt,{value:"questionnaire",children:"Questionnaire"})]})]}),i.jsxs(rn,{value:re,onValueChange:xe=>
7970{ae(xe),Y(1)},children:[i.jsx(Wr,{className:"w-[120px]",children:i.jsx(nn,{placeholder:"Source"})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"all",children:"All Sources"}),i.jsx(pt,{value:"kibbi",children:"Kibbi"}),i.jsx(pt,{value:"byos",children:"BYOS"})]})]}),i.jsxs(rn,{value:D,onValueChange:xe=>{U(xe),Y(1)},children:[i.jsx(Wr,{className:"w-[180px]",children:i.jsx(nn,{placeholder:"Category"})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"all",children:"All Categories"}),ue.map(xe=>i.jsx(pt,{value:xe,children:xe},xe))]})]}),i.jsxs(rn,{value:se,onValueChange:xe=>{te(xe),Y(1)},children:[i.jsx(Wr,{className:"w-[120px]",children:i.jsx(nn,{placeholder:"Age"})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"all",children:"All Ages"}),i.jsx(pt,{value:"0-2",children:"0-2"}),i.jsx(pt,{value:"3-5",children:"3-5"}),i.jsx(pt,{value:"6-9",children:"6-9"})]})]}),i.jsxs(rn,{value:Q,onValueChange:xe=>{K(xe),Y(1)},children:[i.jsx(Wr,{className:"w-[140px]",children:i.jsx(nn,{placeholder:"Payment"})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"all",children:"All Payment"}),i.jsx(pt,{value:"free_sample",children:"Free Sample"}),i.jsx(pt,{value:"purchased",children:"Purchased"}),i.jsx(pt,{value:"unpaid",children:"Unpaid"})]})]}),q&&i.jsxs(le,{variant:"ghost",size:"sm",onClick:X,children:[i.jsx(hi,{className:"h-4 w-4 mr-1"})," Clear"]})]})]}),i.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 mb-4",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",B.length>0?G+1:0,"-",Math.min(I,B.length)," of ",B.length," stories"]}),i.jsxs(rn,{value:String(W),onValueChange:xe=>{ee(Number(xe)),Y(1)},children:[i.jsx(Wr,{className:"w-[100px]",children:i.jsx(nn,{})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"10",children:"10"}),i.jsx(pt,{value:"25",children:"25"}),i.jsx(pt,{value:"50",children:"50"}),i.jsx(pt,{value:"100",children:"100"})]})]})]}),pe>1&&i.jsx(x6e,{children:i.jsxs(b6e,{children:[i.jsx(tq,{children:i.jsx(w6e,{onClick:()=>Y(xe=>Math.max(1,xe-1)),className:z===1?"pointer-events-none opacity-50":"cursor-pointer"})}),ie().map((xe,je)=>i.jsx(tq,{children:xe==="ellipsis"?i.jsx(_6e,{}):i.jsx(QW,{onClick:()=>Y(xe),isActive:z===xe,className:"cursor-pointer",children:xe})},je)),i.jsx(tq,{children:i.jsx(k6e,{onClick:()=>Y(xe=>Math.min(pe,xe+1)),className:z===pe?"pointer-events-none opacity-50":"cursor-pointer"})})]})})]}),n?i.jsx("div",{className:"space-y-3",children:L.map(xe=>i.jsx(Ie,{className:"p-4",children:i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"flex items-start justify-between gap-2",children:[i.jsxs("div",{className:"flex flex-col gap-1 min-w-0 flex-1",children:[i.jsx("h3",{className:"font-semibold text-sm line-clamp-2",children:xe.story_title||"Untitled"}),i.jsxs("span",{className:"text-xs text-muted-foreground font-mono truncate",children:["ID: ",xe.id]})]}),i.jsxs("div",{className:"flex flex-col gap-1 shrink-0",children:[i.jsx(Re,{variant:"outline",className:xe.story_source==="user_provided"?"border-purple-500 text-purple-600 bg-purple-50 text-xs":"border-green-500 text-green-600 bg-green-50 text-xs",children:xe.story_source==="user_provided"?"BYOS":"Kibbi"}),!xe.has_purchased&&["completed","review","ready"].includes(xe.status)&&i.jsx(Re,{className:"text-xs bg-blue-500 hover:bg-blue-600",children:"Free Sample"}),xe.has_purchased&&i.jsx(Re,{variant:"default",className:"text-xs",children:"Purchased"}),(xe.status==="draft"||xe.status==="questionnaire"||xe.status==="generating")&&i.jsx(Re,{variant:"secondary",className:"text-xs",children:"Draft"}),xe.status==="failed"&&i.jsx(Re,{variant:"destructive",className:"text-xs",children:"Failed"})]})]}),xe.user_email&&i.jsxs("div",{className:"text-xs text-muted-foreground truncate",children:["ð§ ",xe.user_email]}),i.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(xl,{className:"h-3 w-3"}),i.jsx("span",{children:xe.age_range})]}),i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(ic,{className:"h-3 w-3"}),i.jsx("span",{children:new Date(xe.created_at).toLocaleDateString()})]})]}),i.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[i.jsx(lc,{className:"h-3 w-3"}),i.jsx("span",{children:npe(xe.illustration_style)})]}),i.jsxs("div",{className:"flex gap-2 pt-2",children:[i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>e(`/app/book-preview?id=${xe.id}`),className:"flex-1",children:[i.jsx(Qa,{className:"h-3 w-3 mr-1"}),"View"]}
7970),i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>ve(xe),className:"flex-1",children:[i.jsx(lc,{className:"h-3 w-3 mr-1"}),"Prompts"]}),i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>ge(xe),className:"flex-1",children:[i.jsx(Fa,{className:"h-3 w-3 mr-1"}),"Input"]}),i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>_e(xe),className:"flex-1",children:[i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"mr-1",children:[i.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"23"}),i.jsx("path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})]}),"Tokens"]})]}),i.jsx(le,{size:"sm",variant:"secondary",onClick:()=>Fe(xe.id),disabled:p===xe.id,className:"w-full mt-2",children:p===xe.id?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-3 w-3 mr-1 animate-spin"}),"Regenerating..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"h-3 w-3 mr-1"}),"Regenerate"]})}),i.jsx(le,{size:"sm",variant:"outline",onClick:()=>_t(xe.id),disabled:m===xe.id,className:"w-full mt-1 border-amber-500 text-amber-600 hover:bg-amber-50",children:m===xe.id?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-3 w-3 mr-1 animate-spin"}),"Retrying..."]}):i.jsxs(i.Fragment,{children:[i.jsx(jy,{className:"h-3 w-3 mr-1"}),"Retry Stuck"]})}),i.jsx(le,{size:"sm",variant:"outline",onClick:()=>ht(xe.id),disabled:g===xe.id,className:"w-full mt-1 border-blue-500 text-blue-600 hover:bg-blue-50",children:g===xe.id?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-3 w-3 mr-1 animate-spin"}),"Regenerating..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"h-3 w-3 mr-1"}),"Regen Draft"]})})]})},xe.id))}):i.jsxs(fse,{className:"w-full whitespace-nowrap rounded-md border",children:[i.jsx(pse,{orientation:"horizontal",className:"h-6 z-50"}),i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Title"}),i.jsx(Ce,{children:"Source"}),i.jsx(Ce,{children:"User Email"}),i.jsx(Ce,{children:"Age Range"}),i.jsx(Ce,{children:"Language"}),i.jsx(Ce,{children:"Style"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Created"}),i.jsx(Ce,{children:"Tokens"}),i.jsx(Ce,{className:"text-right",children:"Total Tokens"}),i.jsx(Ce,{className:"text-right",children:"Actions"})]})}),i.jsx(ga,{children:L.map(xe=>i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium max-w-xs",children:i.jsxs("div",{className:"flex flex-col",children:[i.jsx("span",{className:"truncate",children:xe.story_title||"Untitled"}),i.jsxs("span",{className:"text-xs text-muted-foreground font-mono",children:["ID: ",xe.id]})]})}),i.jsx(Ee,{children:i.jsx(Re,{variant:"outline",className:xe.story_source==="user_provided"?"border-purple-500 text-purple-600 bg-purple-50":"border-green-500 text-green-600 bg-green-50",children:xe.story_source==="user_provided"?"BYOS":"Kibbi"})}),i.jsx(Ee,{className:"text-sm text-muted-foreground max-w-xs truncate",children:xe.user_email||"N/A"}),i.jsx(Ee,{children:xe.age_range}),i.jsx(Ee,{children:xe.language}),i.jsx(Ee,{className:"text-sm",children:npe(xe.illustration_style)}),i.jsx(Ee,{children:i.jsxs("div",{className:"flex flex-col gap-1",children:[!xe.has_purchased&&["completed","review","ready"].includes(xe.status)&&i.jsx(Re,{className:"bg-blue-500 hover:bg-blue-600",children:"Free Sample"}),xe.has_purchased&&i.jsx(Re,{variant:"default",children:"Purchased"}),(xe.status==="draft"||xe.status==="questionnaire"||xe.status==="generating")&&i.jsx(Re,{variant:"secondary",children:"Draft"}),xe.status==="failed"&&i.jsx(Re,{variant:"destructive",children:"Failed"})]})}),i.jsx(Ee,{className:"text-sm text-muted-foreground",children:new Date(xe.created_at).toLocaleDateString()}),i.jsx(Ee,{children:i.jsxs(le,{size:"sm",variant:"ghost",onClick:()=>_e(xe),className:"text-primary hover:text-primary/80",children:[i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"mr-1",children:[i.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"23"}),i.jsx("path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})]}),"Tokens"]})}),i.jsx(Ee,{className:"text-right font-mono text-sm",children:xe.total_tokens?i.jsx("span",{className:"font-semibold",children:xe.total_tokens.toLocaleStr
7970ing()}):i.jsx("span",{className:"text-muted-foreground",children:"-"})}),i.jsx(Ee,{className:"text-right",children:i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>e(`/app/book-preview?id=${xe.id}`),children:[i.jsx(Qa,{className:"h-4 w-4 mr-1"}),"View"]}),i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>ve(xe),children:[i.jsx(lc,{className:"h-4 w-4 mr-1"}),"Prompts"]}),i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>ge(xe),children:[i.jsx(Fa,{className:"h-4 w-4 mr-1"}),"Story Input"]}),i.jsx(le,{size:"sm",variant:"secondary",onClick:()=>Fe(xe.id),disabled:p===xe.id,children:p===xe.id?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-4 w-4 mr-1 animate-spin"}),"Regenerating..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"h-4 w-4 mr-1"}),"Regenerate"]})}),i.jsx(le,{size:"sm",variant:"outline",onClick:()=>_t(xe.id),disabled:m===xe.id,className:"border-amber-500 text-amber-600 hover:bg-amber-50",children:m===xe.id?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-4 w-4 mr-1 animate-spin"}),"Retrying..."]}):i.jsxs(i.Fragment,{children:[i.jsx(jy,{className:"h-4 w-4 mr-1"}),"Retry"]})}),i.jsx(le,{size:"sm",variant:"outline",onClick:()=>ht(xe.id),disabled:g===xe.id,className:"border-blue-500 text-blue-600 hover:bg-blue-50",children:g===xe.id?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-4 w-4 mr-1 animate-spin"}),"Regenerating..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"h-4 w-4 mr-1"}),"Regen Draft"]})})]})})]},xe.id))})]})]})]})]})}),i.jsx(Xr,{open:h,onOpenChange:f,children:i.jsxs(Ur,{className:"max-w-4xl max-h-[80vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsxs(Tr,{children:["Image Prompts - ",l==null?void 0:l.story_title]}),i.jsx(ra,{children:"All illustration prompts for this story"})]}),i.jsx("div",{className:"space-y-4 mt-4",children:u.map(xe=>i.jsxs("div",{className:"border border-border rounded-lg p-4 space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("h3",{className:"font-semibold",children:["Page ",xe.pageNumber]}),i.jsx(Re,{variant:xe.status==="complete"?"default":"secondary",children:xe.status})]}),xe.imageUrl&&i.jsx("div",{className:"w-full max-w-xs",children:i.jsx("img",{src:xe.imageUrl,alt:`Page ${xe.pageNumber}`,className:"rounded-lg w-full"})}),i.jsx("div",{className:"bg-muted rounded-lg p-3",children:i.jsx("p",{className:"text-sm font-mono whitespace-pre-wrap break-words",children:xe.prompt})})]},xe.pageNumber))})]})}),i.jsx(Xr,{open:w,onOpenChange:j,children:i.jsxs(Ur,{className:"max-w-4xl max-h-[80vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsxs(Tr,{children:["Story Input - ",l==null?void 0:l.story_title]}),i.jsx(ra,{children:"User's answers to the story questionnaire"})]}),i.jsx("div",{className:"space-y-4 mt-4",children:x.length===0?i.jsx("p",{className:"text-muted-foreground text-center py-4",children:"No story input available for this story"}):x.map((xe,je)=>i.jsx("div",{className:"border border-border rounded-lg p-4 space-y-3",children:i.jsxs("div",{className:"flex items-start gap-2",children:[i.jsxs(Re,{variant:"outline",className:"shrink-0",children:["Q",xe.question_order]}),i.jsxs("div",{className:"flex-1 space-y-2",children:[i.jsx("p",{className:"font-semibold text-sm",children:xe.question}),i.jsx("div",{className:"bg-muted rounded-lg p-3",children:i.jsx("p",{className:"text-sm whitespace-pre-wrap",children:xe.answer||i.jsx("span",{className:"text-muted-foreground italic",children:"No answer provided"})})})]})]})},je))})]})}),i.jsx(Xr,{open:E,onOpenChange:C,children:i.jsxs(Ur,{className:"max-w-5xl max-h-[85vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsxs(Tr,{children:["Token Usage - ",l==null?void 0:l.story_title]}),i.jsx(ra,{children:"Detailed breakdown of all AI API calls for this story"})]}),F?i.jsx("div",{className:"flex items-center justify-center py-8",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-primary"})}):N.length===0?i.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No token usage data available for this story yet."}):i.jsxs("div",{className:"space-y-6",children:[$&&i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5 ga
7970p-4",children:[i.jsxs(Ie,{className:"border-l-4 border-l-blue-500",children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium text-muted-foreground",children:"Input Tokens"})}),i.jsxs(qe,{children:[i.jsx("div",{className:"text-2xl font-bold text-blue-600 dark:text-blue-400",children:$.total_prompt_tokens.toLocaleString()}),i.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Lower cost"})]})]}),i.jsxs(Ie,{className:"border-l-4 border-l-orange-500",children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium text-muted-foreground",children:"Output Tokens"})}),i.jsxs(qe,{children:[i.jsx("div",{className:"text-2xl font-bold text-orange-600 dark:text-orange-400",children:$.total_completion_tokens.toLocaleString()}),i.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Higher cost (4x)"})]})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium text-muted-foreground",children:"API Calls"})}),i.jsx(qe,{children:i.jsx("div",{className:"text-2xl font-bold",children:$.total_api_calls})})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium text-muted-foreground",children:"Estimated Cost"})}),i.jsxs(qe,{children:[i.jsxs("div",{className:"text-2xl font-bold",children:[$.unpriced_models.length>0?"⥠":"","$",$.estimated_cost.toFixed(4)]}),$.unpriced_models.length>0&&i.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Excludes unpriced models: ",$.unpriced_models.join(", ")]})]})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium text-muted-foreground",children:"Providers"})}),i.jsx(qe,{children:i.jsxs("div",{className:"space-y-1 text-sm",children:[$.openai_tokens>0&&i.jsxs("div",{children:["OpenAI: ",$.openai_tokens.toLocaleString()]}),$.lovable_ai_tokens>0&&i.jsxs("div",{children:["Lovable AI: ",$.lovable_ai_tokens.toLocaleString()]}),$.replicate_tokens>0&&i.jsxs("div",{children:["Replicate: ",$.replicate_tokens.toLocaleString()]})]})})]})]}),$&&i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsx(Ke,{children:"Usage by Operation"})}),i.jsx(qe,{children:i.jsx("div",{className:"space-y-3",children:Object.entries($.by_operation).sort(([,xe],[,je])=>je.tokens-xe.tokens).map(([xe,je])=>{const ut=N.filter(et=>et.operation_type===xe),Ot=de(ut),lt=tpe(ut).length>0;return i.jsxs("div",{className:"flex flex-col gap-2 py-3 border-b",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(Re,{variant:"outline",className:"capitalize",children:xe.replace(/_/g," ")}),i.jsxs("span",{className:"text-sm text-muted-foreground",children:[je.calls," call",je.calls!==1?"s":""]})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("span",{className:"text-sm font-semibold text-green-600 dark:text-green-400",children:[lt?"⥠":"","$",Ot.toFixed(Ot<.01?4:2)]}),i.jsx("div",{className:"text-xs text-muted-foreground capitalize",children:je.provider})]})]}),i.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[i.jsxs("span",{className:"text-blue-600 dark:text-blue-400",children:["â ",je.prompt_tokens.toLocaleString()," input"]}),i.jsx("span",{className:"text-muted-foreground",children:"â"}),i.jsxs("span",{className:"text-orange-600 dark:text-orange-400",children:[je.completion_tokens.toLocaleString()," output"]}),i.jsx("span",{className:"text-muted-foreground",children:"="}),i.jsxs("span",{className:"font-semibold",children:[je.tokens.toLocaleString()," total"]})]})]},xe)})})})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"All API Calls"}),i.jsx(Rt,{children:"Chronological list of all token usage"})]}),i.jsx(qe,{children:i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Time"}),i.jsx(Ce,{children:"Function"}),i.jsx(Ce,{children:"Operation"}),i.jsx(Ce,{children:"Model"}
7970),i.jsx(Ce,{className:"text-right text-blue-600 dark:text-blue-400",children:"Input Tokens"}),i.jsx(Ce,{className:"text-right text-orange-600 dark:text-orange-400",children:"Output Tokens"}),i.jsx(Ce,{className:"text-right",children:"Total"}),i.jsx(Ce,{children:"Provider"})]})}),i.jsx(ga,{children:N.map(xe=>i.jsxs(Jt,{children:[i.jsx(Ee,{className:"text-xs text-muted-foreground",children:new Date(xe.created_at).toLocaleTimeString()}),i.jsx(Ee,{className:"text-sm font-mono",children:xe.function_name}),i.jsx(Ee,{children:i.jsx(Re,{variant:"secondary",className:"text-xs",children:xe.operation_type})}),i.jsx(Ee,{className:"text-sm",children:xe.model}),i.jsx(Ee,{className:"text-right text-blue-600 dark:text-blue-400 font-medium",children:xe.prompt_tokens.toLocaleString()}),i.jsx(Ee,{className:"text-right text-orange-600 dark:text-orange-400 font-medium",children:xe.completion_tokens.toLocaleString()}),i.jsx(Ee,{className:"text-right font-semibold",children:xe.total_tokens.toLocaleString()}),i.jsx(Ee,{children:i.jsx(Re,{variant:xe.api_provider==="openai"?"default":xe.api_provider==="lovable_ai"?"secondary":"outline",className:"text-xs capitalize",children:xe.api_provider.replace(/_/g," ")})})]},xe.id))})]})})})]})]})]})})]}):null},$ot=()=>{const e=wt(),{isAdmin:t,loading:r}=Fr(),{toast:n}=Xt(),[a,s]=k.useState(!0),[o,l]=k.useState([]),[c,u]=k.useState(!1),[d,h]=k.useState(new Map),[f,p]=k.useState("all");k.useEffect(()=>{if(!r){if(!t){e("/");return}y()}},[t,r,e]);const y=async()=>{s(!0);try{const{data:w,error:j}=await oe.from("stories").select("id, story_title, age_range, language, created_at, has_purchased").order("created_at",{ascending:!1});if(j)throw j;const E=await Promise.all((w||[]).map(async C=>{const{data:N}=await oe.from("story_category_mappings").select("story_categories(name, slug)").eq("story_id",C.id),A=(N==null?void 0:N.map($=>$.story_categories).filter($=>$!==null))||[];return{...C,categories:A}}));l(E)}catch(w){console.error("Error loading stories:",w),n({title:"Error",description:"Failed to load stories",variant:"destructive"})}finally{s(!1)}},m=async w=>{h(j=>new Map(j).set(w,{storyId:w,status:"processing"}));try{const{data:j,error:E}=await oe.functions.invoke("auto-categorize-story",{body:{storyId:w}});if(E)throw E;h(C=>new Map(C).set(w,{storyId:w,status:"success",categories:j.categories})),await y()}catch(j){console.error(`Error categorizing story ${w}:`,j),h(E=>new Map(E).set(w,{storyId:w,status:"error",error:j instanceof Error?j.message:"Unknown error"}))}},v=async()=>{const w=b.filter(j=>j.categories.length===0);if(w.length===0){n({title:"No stories to categorize",description:"All stories already have categories"});return}u(!0),n({title:"Starting batch categorization",description:`Categorizing ${w.length} stories...`});for(const j of w)await m(j.id),await new Promise(E=>setTimeout(E,1e3));u(!1),n({title:"Batch categorization complete",description:`Processed ${w.length} stories`})},g=async w=>{window.confirm("Are you sure you want to re-categorize this story? Existing categories will be replaced.")&&await m(w)},b=o.filter(w=>f==="uncategorized"?w.categories.length===0:f==="categorized"?w.categories.length>0:!0),x=o.filter(w=>w.categories.length===0).length,_=o.filter(w=>w.categories.length>0).length;return r||a?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-primary"})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Story Categorization"}),i.jsx("main",{className:"container mx-auto py-8 px-4",children:i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsxs(Ke,{className:"text-2xl flex items-center gap-2",children:[i.jsx(s0,{className:"h-6 w-6"}),"Story Categorization"]}),i.jsx(Rt,{className:"mt-2",children:"Automatically categorize stories using AI based on their content and themes"})]}),i.jsx(le,{onClick:v,disabled:c||x===0,size:"lg",children:c?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Categorizing..."]}):i.jsxs(i.Fragment,{children:[i.jsx(s0,{className:"mr-2 h-4 w-4"}),"Categorize All Uncategorized"]})})]}),i.jsxs("div",{className:"flex gap-4 mt-4",children:[i.jsxs(Re,{variant:"outline",className:"text-sm",children:["Total: ",o.length]}),i.jsxs(Re,{variant:"outline",className:"text-sm",children:["Categorized: ",_]}),i.jsxs(Re,{variant:"destructive",className:"text-sm",children:["Uncategorized: ",x]})]}),i.jsxs("div",{className:"flex gap-2 mt-4",children:[i.jsx(le,{variant:f==="all"?"default":"outline",size:"sm",onClick:()=>p("all"),children:"All Stories"}),i.jsx(le,{variant:f==="uncategorized"?"default":"outline",size:"sm",onClick:()=>p("uncategorized"),children:"Uncategorized Only"}),i.jsx(le,{variant:f==="categorized"?"default":"outline",size:"sm",onClick:()=>p("categorized"),children:"Categorized Only"})]})]}),i.jsx(qe,{children:b.length===0?i.jsx("div",{className:"text-center py-12 text-muted-foreground",children:f==="uncategorized"?"All stories have been categorized! ð":"No stories found"}):i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Title"}),i.jsx(Ce,{children:"Age Range"}),i.jsx(Ce,{children:"Language"}),i.jsx(Ce,{children:"Categories"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Actions"})]})}),i.jsx(ga,{children:b.map(w=>{const j=d.get(w.id);return i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium max-w-xs truncate",children:w.story_title}),i.jsx(Ee,{children:w.age_range}),i.jsx(Ee,{children:w.language}
7970),i.jsx(Ee,{children:w.categories.length>0?i.jsx("div",{className:"flex flex-wrap gap-1",children:w.categories.map(E=>i.jsx(Nk,{name:E.name,slug:E.slug,clickable:!1,className:"text-xs"},E.slug))}):i.jsx(Re,{variant:"outline",className:"text-xs",children:"No categories"})}),i.jsxs(Ee,{children:[(j==null?void 0:j.status)==="processing"&&i.jsxs(Re,{variant:"secondary",children:[i.jsx(Me,{className:"mr-1 h-3 w-3 animate-spin"}),"Processing"]}),(j==null?void 0:j.status)==="success"&&i.jsxs(Re,{variant:"default",className:"bg-green-500",children:[i.jsx(Vi,{className:"mr-1 h-3 w-3"}),"Success"]}),(j==null?void 0:j.status)==="error"&&i.jsxs(Re,{variant:"destructive",children:[i.jsx(li,{className:"mr-1 h-3 w-3"}),"Error"]})]}),i.jsx(Ee,{children:i.jsx("div",{className:"flex gap-2",children:w.categories.length===0?i.jsx(le,{size:"sm",variant:"outline",onClick:()=>m(w.id),disabled:(j==null?void 0:j.status)==="processing",children:(j==null?void 0:j.status)==="processing"?i.jsx(Me,{className:"h-3 w-3 animate-spin"}):i.jsxs(i.Fragment,{children:[i.jsx(s0,{className:"mr-1 h-3 w-3"}),"Categorize"]})}):i.jsx(le,{size:"sm",variant:"ghost",onClick:()=>g(w.id),disabled:(j==null?void 0:j.status)==="processing",children:(j==null?void 0:j.status)==="processing"?i.jsx(Me,{className:"h-3 w-3 animate-spin"}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"mr-1 h-3 w-3"}),"Re-categorize"]})})})})]},w.id)})})]})})]})})]})};var Bot="Label",oEe=k.forwardRef((e,t)=>i.jsx(dt.label,{...e,ref:t,onMouseDown:r=>{var a;r.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));oEe.displayName=Bot;var lEe=oEe;const zot=ov("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Nt=k.forwardRef(({className:e,...t},r)=>i.jsx(lEe,{ref:r,className:De(zot(),e),...t}));Nt.displayName=lEe.displayName;function Uot(){var H;const e=wt(),{isAdmin:t,loading:r}=Fr(),[n,a]=k.useState([]),[s,o]=k.useState([]),[l,c]=k.useState(!0),[u,d]=k.useState(null),[h,f]=k.useState(!1),[p,y]=k.useState("all"),[m,v]=k.useState(!1),[g,b]=k.useState(""),[x,_]=k.useState(""),[w,j]=k.useState(""),[E,C]=k.useState(""),[N,A]=k.useState(""),[$,T]=k.useState("");k.useEffect(()=>{!r&&!t&&e("/")},[t,r,e]),k.useEffect(()=>{t&&(F(),M())},[t]);const F=async()=>{c(!0);const{data:re,error:ae}=await oe.from("help_article_suggestions").select("*").order("created_at",{ascending:!1});ae?(Ct.error("Failed to load suggestions"),console.error(ae)):a(re||[]),c(!1)},M=async()=>{const{data:re}=await oe.from("help_categories").select("*").order("order_index");o(re||[])},z=re=>{d(re),f(!1),b(re.final_title||re.suggested_title),_(re.final_slug||re.suggested_slug),C(re.final_content||re.suggested_content),A(re.final_excerpt||re.suggested_excerpt),T("");const ae=s.find(D=>D.slug===re.suggested_category_slug);j(re.final_category_id||(ae==null?void 0:ae.id)||"")},Y=async()=>{if(!u)return;v(!0);const{error:re}=await oe.from("help_article_suggestions").update({final_title:g,final_slug:x,final_category_id:w,final_content:E,final_excerpt:N,review_notes:$}).eq("id",u.id);re?(Ct.error("Failed to save changes"),console.error(re)):(Ct.success("Changes saved"),F(),f(!1)),v(!1)},W=async()=>{if(!u)return;v(!0);const{error:re}=await oe.from("help_article_suggestions").update({final_title:g,final_slug:x,final_category_id:w,final_content:E,final_excerpt:N}).eq("id",u.id);if(re){Ct.error("Failed to save before publishing"),v(!1);return}const{data:ae,error:D}=await oe.functions.invoke("publish-article-suggestion",{body:{suggestionId:u.id}});D||ae!=null&&ae.error?Ct.error((ae==null?void 0:ae.error)||"Failed to publish article"):(Ct.success("Article published successfully!"),d(null),F()),v(!1)},ee=async()=>{if(!u||!$.trim()){Ct.error("Please add review notes before rejecting");return}v(!0);const{error:re}=await oe.from("help_article_suggestions").update({status:"rejected",review_notes:$}).eq("id",u.id);re?Ct.error("Failed to reject suggestion"):(Ct.success("Suggestion rejected"),d(null),F()),v(!1)},Z=async()=>
7970{if(!u||!$.trim()){Ct.error("Please add review notes describing what to improve");return}v(!0);const{data:re,error:ae}=await oe.functions.invoke("improve-article-suggestion",{body:{suggestionId:u.id,currentContent:E,reviewNotes:$,originalQuestion:u.original_user_question,codeReferences:u.code_references,implementationSummary:u.implementation_summary}});ae||re!=null&&re.error?Ct.error((re==null?void 0:re.error)||"Failed to generate improvements"):(C(re.improved_content),Ct.success(`⨠${re.changes_summary}`)),v(!1)},V=re=>{const ae={pending:{label:"Pending",variant:"secondary"},under_review:{label:"Under Review",variant:"default"},approved:{label:"Approved",variant:"default"},published:{label:"Published",variant:"default"},rejected:{label:"Rejected",variant:"destructive"}},D=ae[re]||ae.pending;return i.jsx(Re,{variant:D.variant,children:D.label})},ne=re=>re>=80?i.jsxs(Re,{className:"bg-green-500",children:["High (",re,"%)"]}):re>=60?i.jsxs(Re,{className:"bg-yellow-500",children:["Medium (",re,"%)"]}):i.jsxs(Re,{className:"bg-red-500",children:["Low (",re,"%)"]}),P=p==="all"?n:n.filter(re=>re.status===p),R={all:n.length,pending:n.filter(re=>re.status==="pending").length,under_review:n.filter(re=>re.status==="under_review").length,approved:n.filter(re=>re.status==="approved").length,published:n.filter(re=>re.status==="published").length,rejected:n.filter(re=>re.status==="rejected").length};return r||l?i.jsx("div",{className:"flex items-center justify-center min-h-screen",children:i.jsx(Me,{className:"w-8 h-8 animate-spin"})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Article Suggestions"}),i.jsxs("div",{className:"container mx-auto p-6",children:[i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4 mb-6",children:[i.jsxs("div",{className:"p-4 border rounded-lg bg-card",children:[i.jsx("div",{className:"text-2xl font-bold",children:R.all}),i.jsx("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),i.jsxs("div",{className:"p-4 border rounded-lg bg-card",children:[i.jsx("div",{className:"text-2xl font-bold text-yellow-600",children:R.pending}),i.jsx("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),i.jsxs("div",{className:"p-4 border rounded-lg bg-card",children:[i.jsx("div",{className:"text-2xl font-bold text-blue-600",children:R.under_review}),i.jsx("div",{className:"text-sm text-muted-foreground",children:"Under Review"})]}),i.jsxs("div",{className:"p-4 border rounded-lg bg-card",children:[i.jsx("div",{className:"text-2xl font-bold text-green-600",children:R.approved}),i.jsx("div",{className:"text-sm text-muted-foreground",children:"Approved"})]}),i.jsxs("div",{className:"p-4 border rounded-lg bg-card",children:[i.jsx("div",{className:"text-2xl font-bold text-purple-600",children:R.published}),i.jsx("div",{className:"text-sm text-muted-foreground",children:"Published"})]}),i.jsxs("div",{className:"p-4 border rounded-lg bg-card",children:[i.jsx("div",{className:"text-2xl font-bold text-red-600",children:R.rejected}),i.jsx("div",{className:"text-sm text-muted-foreground",children:"Rejected"})]})]}),i.jsxs(Mv,{value:p,onValueChange:re=>y(re),children:[i.jsxs(X0,{children:[i.jsxs(Zn,{value:"all",children:["All (",R.all,")"]}),i.jsxs(Zn,{value:"pending",children:["Pending (",R.pending,")"]}),i.jsxs(Zn,{value:"under_review",children:["Under Review (",R.under_review,")"]}),i.jsxs(Zn,{value:"approved",children:["Approved (",R.approved,")"]}),i.jsxs(Zn,{value:"published",children:["Published (",R.published,")"]}),i.jsxs(Zn,{value:"rejected",children:["Rejected (",R.rejected,")"]})]}),i.jsx(Ql,{value:p,className:"mt-6",children:i.jsx("div",{className:"space-y-4",children:P.length===0?i.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No suggestions in this category"}):P.map(re=>{var ae;return i.jsx("div",{className:"border rounded-lg p-4 hover:bg-accent/50 transition-colors",children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{className:"flex-1",children:[i.jsx("h3",{className:"font-semibold text-lg mb-2",children:re.suggested_title}),i.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:re.suggested_excerpt}),i.jsxs("div",{className:"flex flex-wrap gap-2 mb-2",children:[V(re.status),ne(re.confidence_score),i.jsx(Re,{variant:"outline",children:re.suggested_category_slug})]}),i.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[i.jsx("span",{children:new Date(re.created_at).toLocaleDateString()}),((ae=re.code_references)==null?void 0:ae.length)>0&&i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx(yy,{className:"w-3 h-3"}),re.code_references.length," files analyzed"]})]})]}),i.jsxs(le,{variant:"outline",size:"sm",onClick:()=>z(re),children:[i.jsx(Qa,{className:"w-4 h-4 mr-2"}),"Review"]})]})},re.id)})})})]}),i.jsx(Xr,{open:!!u,onOpenChange:()=>d(null),children:i.jsxs(Ur,{className:"max-w-6xl max-h-[90vh] overflow-y-auto",children:[i.jsx(Nr,{children:i.jsx(Tr,{children:"Review Art
7970icle Suggestion"})}),u&&i.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("h4",{className:"font-semibold mb-2",children:"Original Question"}),i.jsx("p",{className:"text-sm bg-accent p-3 rounded",children:u.original_user_question})]}),u.conversation_context&&i.jsxs("div",{children:[i.jsx("h4",{className:"font-semibold mb-2",children:"Conversation Context"}),i.jsx("pre",{className:"text-xs bg-accent p-3 rounded whitespace-pre-wrap",children:u.conversation_context})]}),((H=u.code_references)==null?void 0:H.length)>0&&i.jsxs("div",{children:[i.jsx("h4",{className:"font-semibold mb-2",children:"Code References"}),i.jsx("ul",{className:"text-sm space-y-1",children:u.code_references.map(re=>i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(yy,{className:"w-4 h-4"}),i.jsx("code",{className:"text-xs",children:re})]},re))}),u.implementation_summary&&i.jsxs("details",{className:"mt-2",children:[i.jsx("summary",{className:"cursor-pointer text-sm text-blue-600",children:"View Implementation Summary"}),i.jsx("p",{className:"text-sm mt-2 p-2 bg-gray-50 rounded",children:u.implementation_summary})]})]})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"title",children:"Title"}),i.jsx(Pt,{id:"title",value:g,onChange:re=>b(re.target.value),disabled:!h})]}),i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"slug",children:"Slug"}),i.jsx(Pt,{id:"slug",value:x,onChange:re=>_(re.target.value),disabled:!h})]}),i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"category",children:"Category"}),i.jsxs(rn,{value:w,onValueChange:j,disabled:!h,children:[i.jsx(Wr,{children:i.jsx(nn,{})}),i.jsx(Gr,{children:s.map(re=>i.jsx(pt,{value:re.id,children:re.name},re.id))})]})]}),i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"excerpt",children:"Excerpt"}),i.jsx(Dr,{id:"excerpt",value:N,onChange:re=>A(re.target.value),disabled:!h,rows:2})]}),i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"content",children:"Content (Markdown)"}),i.jsx(Dr,{id:"content",value:E,onChange:re=>C(re.target.value),disabled:!h,rows:12,className:"font-mono text-sm"})]}),i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"notes",children:"Review Notes"}),i.jsx(Dr,{id:"notes",value:$,onChange:re=>T(re.target.value),rows:3,placeholder:"Add feedback for AI improvements (e.g., 'Make it shorter', 'Add more examples about X', 'Too technical, simplify', 'Focus more on Y')..."})]})]})]}),i.jsx(_2,{className:"flex gap-2",children:h?i.jsxs(i.Fragment,{children:[i.jsx(le,{variant:"outline",onClick:()=>f(!1),children:"Cancel"}),i.jsxs(le,{onClick:Y,disabled:m,children:[m?i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"}):null,"Save Changes"]})]}):i.jsxs(i.Fragment,{children:[i.jsx(le,{variant:"outline",onClick:()=>f(!0),children:"Edit"}),i.jsxs(le,{variant:"secondary",onClick:Z,disabled:!$.trim()||m,children:[m?i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"}):i.jsx(Qt,{className:"w-4 h-4 mr-2"}),"Request AI Improvements"]}),i.jsxs(le,{variant:"destructive",onClick:ee,children:[i.jsx(li,{className:"w-4 h-4 mr-2"}),"Reject"]}),i.jsxs(le,{onClick:W,disabled:m,children:[m?i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"}):i.jsx(Vi,{className:"w-4 h-4 mr-2"}),"Publish"]})]})})]})})]})]})}const M3={pending:"bg-yellow-500/10 text-yellow-500 border-yellow-500/20",pending_pdfs:"bg-yellow-500/10 text-yellow-500 border-yellow-500/20",paid:"bg-blue-500/10 text-blue-500 border-blue-500/20",submitted:"bg-blue-500/10 text-blue-500 border-blue-500/20",processing:"bg-purple-500/10 text-purple-500 border-purple-500/20",in_production:"bg-purple-500/10 text-purple-500 border-purple-500/20",shipped:"bg-green-500/10 text-green-500 border-green-500/20",delivered:"bg-emerald-500/10 text-emerald-500 border-emerald-500/20",failed:"bg-red-500/10 text-red-500 border-red-500/20",cancelled:"bg-gray-500/10 text-gray-500 border-gray-500/20"},qot=()=>{const e=wt(),{isAdmin:t,loading:r}=Fr(),n=ose(),{toast:a}=Xt(),[s,o]=k.useState(!0),[l,c]=k.useState([]),[u,d]=k.useState(null),[h,f]=k.useState(null),[p,y]=k.useState(null);k.useEffect(()=>{if(!r){if(!t){e("/");return}m()}},[t,r,e]);const m=async()=>{o(!0);try{const{data:T,error:F}=await oe.from("print_orders").select(` 7971 *, 7972 stories ( 7973 story_title, 7974 age_range, 7975 language, 7976 illustration_style 7977 ) 7978 `).order("created_at",{ascending:!1});if(F)throw F;c(T||[])}catch(T){console.error("Error loading orders:",T),a({title:"Error",description:"Failed to load orders",variant:"destructive"})}finally{o(!1)}},v=async T=>{d(T);try{const{data:F,error:M}=await oe.functions.invoke("check-print-order-status",{body:{orderId:T}});if(M)throw M;
7978a({title:"Status Updated",description:`Order status: ${F.status}`}),await m()}catch(F){console.error("Error checking status:",F),a({title:"Error",description:F instanceof Error?F.message:"Failed to check order status",variant:"destructive"})}finally{d(null)}},g=T=>`$${(T/100).toFixed(2)}`,b=T=>T?new Date(T).toLocaleDateString():"â",x=T=>{navigator.clipboard.writeText(T),a({title:"Copied",description:"Copied to clipboard"})},_=T=>`${T.slice(0,8)}...`,w=async T=>{y(T);try{const{data:F,error:M}=await oe.functions.invoke("admin-confirm-print-order",{body:{orderId:T}});if(M)throw M;if(F!=null&&F.error)throw new Error(F.error);a({title:"Payment Confirmed",description:(F==null?void 0:F.message)||"Order processing started"}),await m()}catch(F){console.error("Confirm payment error:",F),a({title:"Confirmation Failed",description:F.message||"Failed to confirm payment",variant:"destructive"})}finally{y(null)}},j=async T=>{var F,M;f(T);try{const{data:z,error:Y}=await oe.functions.invoke("process-print-order-background",{body:{orderId:T}});if(Y){const W=await((M=(F=Y.context)==null?void 0:F.json)==null?void 0:M.call(F).catch(()=>null));throw new Error((W==null?void 0:W.error)||Y.message)}if(z!=null&&z.error)throw new Error(z.error);a({title:(z==null?void 0:z.status)==="submitted"?"Order submitted":"Print preparation updated",description:(z==null?void 0:z.status)==="submitted"?"Lulu has accepted the verified print files.":(z==null?void 0:z.status)==="reconciling"?"Checking whether Lulu accepted the earlier request. No new order will be placed.":"Preparation and PDF checks are continuing. Refresh the order to see progress."}),await m()}catch(z){a({title:"Preparation needs attention",description:z.message||"Unable to resume print preparation",variant:"destructive"})}finally{f(null)}};if(r||s)return i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin mx-auto text-primary"}),i.jsx("p",{className:"text-muted-foreground",children:"Loading..."})]})});if(!t)return null;const E=l.filter(T=>T.paid_at!==null),C=l.filter(T=>T.paid_at===null),N=E.reduce((T,F)=>T+F.amount,0),A=C.reduce((T,F)=>T+F.amount,0),$=l.reduce((T,F)=>(T[F.status]=(T[F.status]||0)+1,T),{});return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Print Orders"}),i.jsxs("main",{className:"container mx-auto px-4 py-4 md:py-8 max-w-7xl",children:[i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-4 mb-6",children:[i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium",children:"Total Orders"})}),i.jsx(qe,{children:i.jsx("div",{className:"text-2xl font-bold",children:l.length})})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium",children:"Paid Revenue"})}),i.jsxs(qe,{children:[i.jsx("div",{className:"text-2xl font-bold text-green-600 dark:text-green-400",children:g(N)}),i.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[E.length," orders"]})]})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium",children:"Unpaid Orders"})}),i.jsxs(qe,{children:[i.jsx("div",{className:"text-2xl font-bold text-red-600 dark:text-red-400",children:g(A)}),i.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[C.length," orders"]})]})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium",children:"Shipped"})}),i.jsx(qe,{children:i.jsx("div",{className:"text-2xl font-bold",children:$.shipped||0})})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsx(Ke,{className:"text-sm font-medium",children:"Pending"})}),i.jsx(qe,{children:i.jsx("div",{className:"text-2xl font-bold",children:($.pending||0)+($.pending_pdfs||0)})})]})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-3 md:pb-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx(Ke,{className:"text-lg md:text-2xl",children:"All Print Orders"}),i.jsxs(Rt,{className:"text-sm",children:[l.length," total orders"]})]}),i.jsxs(le,{variant:"outline",size:"sm",onClick:m,children:[i.jsx(Vn,{className:"h-4 w-4 mr-2"}),"Refresh"]})]})}),i.jsx(qe,{children:n?i.jsx("div",{className:"space-y-3",children:l.map(T=>{var F;return i.jsx(Ie,{className:`p-4 ${T.paid_at===null?"border-red-500 bg-red-50/50 dark:bg-red-950/20":""}`,children:i.jsxs("div",{className:"space-y-3",children:[T.paid_at===null&&i.jsx("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-red-500/10 border border-red-500/20 rounded-md",children:i.jsx("span",{className:"text-red-600 dark:text-red-400 text-xs font-semibold",children:"â ï¸ PAYMENT PENDING"})}),i.jsxs("div",{className:"flex items-start justify-between gap-2",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-sm line-clamp-1",children:((F=T.stories)==null?void 0:F.story_title)||"Unknown Story"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:[T.shipping_first_name," ",T.shipping_last_name]})]}),i.jsxs("div",{className:"flex flex-col gap-1 items-end",children:[i.jsx(Re,{className:T.error_message?M3.failed:M3[T.status]||"",children:T.error_message?"failed":T.status}),T.error_message&&i.jsx("div",{className:"text-xs text-red-600 dark:text-red-400 text-right max-w-[200px]",children:T.error_message}),T.paid_at?i.jsx(Re,{className:"bg-green-500/10 text-green-600 dark:text-green-400 border-green-500/20",children:"â Paid"}):i.jsxs(rn,{value:"unpaid",onValueChange:M=>{M==="confirm"&&w(T.id)},disabled:p===T.id,children:[i.jsx(Wr,{className:"h-6 w-auto min-w-[100px] bg-red-500/10 text-red-600 dark:text-red-400 border-red-500/20 hover:bg-red-500/20",children:i.jsx(nn,{children:p===T.id?i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx(Me,{className:"h-3 w-3 animate-spin"}),"Processing..."]}):"â ï¸ Unpaid"})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"unpaid",children:"Unpaid"}),i.jsx(pt,{value:"confirm",children:"Mark as Paid & Process"})]})]})]})]}),i.jsxs("div",{className:"text-xs space-y-1",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-muted-foreground",children:"Order ID:"}),i.jsxs("button",{onClick:()=>x(T.id),className:"font-mono hover:text-primary flex items-center gap-1",children:[_(T.id),i.jsx(t0,{className:"h-3 w-3"})]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-muted-foreground",children:"Product:"}),i.jsxs("span",{children:[T.product_type," à ",T.quantity]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-muted-foreground",children:"Product:"}),i.jsx("span",{children:g(T.amount-T.shipping_cost)})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-muted-foreground",children:"Shipping:"}),i.jsx("span",{children:g(T.shipping_cost)})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-muted-foreground",children:"Total:"}),i.jsx("span",{className:"font-semibold",children:g(T.amount)})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-muted-foreground",children:"Created:"}),i.jsx("span",{children:b(T.created_at)})]}),T.paid_at&&i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-muted-foreground",children:"Paid:"}),i.jsx("span",{className:"text-green-600 dark:text-green-400",children:b(T.paid_at)})]}),T.tracking_number&&i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"text-muted-foreground",children:"Tracking:"}),i.jsx("span",{className:"font-mono",children:T.tracking_number})]})]}),i.jsxs("div",{className:"flex flex-wrap gap-2 pt-2",children:[i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>e(`/app/book-preview?id=${T.story_id}`),className:"flex-1",children:[i.jsx(Qa,{className:"h-3 w-3 mr-1"}),"View Story"]}),i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>v(T.id),disabled:u===T.id,className:"flex-1",children:[u===T.id?i.jsx(Me,{className:"h-3 w-3 mr-1 animate-spin"}):i.jsx(Vn,{className:"h-3 w-3 mr-1"}),"Check Status"]}),T.paid_at&&!T.lulu_print_job_id&&!["cancelled","delivered","completed","shipped"].includes(T.status)&&i.jsxs(le,{size:"sm",variant:"default",onClick:()=>j(T.id),"data-testid":`resume-print-${T.id}`,disabled:h===T.id,className:"flex-1",children:[h===T.id?i.jsx(Me,{className:"h-3 w-3 mr-1 animate-spin"}):i.jsx(Vn,{className:"h-3 w-3 mr-1"}),"Resume preparation"]})]})]})},T.id)})}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Order ID"}),i.jsx(Ce,{children:"Customer"}),i.jsx(Ce,{children:"Story"}),i.jsx(Ce,{children:"Product"}),i.jsx(Ce,{children:"Total"}),i.jsx(Ce,{children:"Payment Status"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Created"}),i.jsx(Ce,{className:"text-right",children:"Actions"})]})}),i.jsx(ga,{children:l.map(T=>{var F,M,z;return i.jsxs(Jt,{className:T.paid_at===null?"bg-red-50 dark:bg-red-950/10 border-l-4 border-l-red-500":"",children:[i.jsx(Ee,{className:"font-mono text-xs",children:i.jsxs("button",{onClick:()=>x(T.id),className:"hover:text-primary flex items-center gap-1",children:[_(T.id),i.jsx(t0,{className:"h-3 w-3"})]})}),i.jsx(Ee,{children:i.jsxs("div",{className:"space-y-1",children:[i.jsxs("div",{className:"font-medium",children:[T.shipping_first_name," ",T.shipping_last_name]}),i.jsx("div",{className:"text-xs text-muted-foreground",children:T.shipping_email}),i.jsx("div",{className:"text-xs text-muted-foreground",children:T.shipping_country})]})}),i.jsx(Ee,{children:i.jsxs("div",{className:"space-y-1 max-w-xs",children:[i.jsx("div",{className:"font-medium truncate",children:((F=T.stories)==null?void 0:F.story_title)||"Unknown"}),i.jsxs("div",{className:"text-xs text-muted-foreground",children:[(M=T.stories)==null?void 0:M.age_range," ⢠",(z=T.stories)==null?void 0:z.language]})]})}),i.jsx(Ee,{children:i.jsxs("div",{className:"space-y-1",children:[i.jsx("div",{children:T.product_type}),i.jsxs("div",{className:"text-xs text-muted-foreground",children:["Qty: ",T.quantity]})]})}),i.jsx(Ee,{children:i.jsxs("div",{className:"space-y-1",children:[i.jsxs("div",{className:"text-sm",children:["Product: ",g(T.amount-T.shipping_cost)]}),i.jsxs("div",{className:"text-xs text-muted-foreground",children:["Shipping: ",g(T.shipping_cost)]}),i.jsxs("div",{className:"font-semibold",children:["Total: ",g(T.amount)]})]})}),i.jsx(Ee,{children:i.jsx("div",{className:"space-y-2",children:T.paid_at?i.jsxs(i.Fragment,{children:[i.jsx(Re,{className:"bg-green-500/10 text-green-600 dark:text-green-400 border-green-500/20",children:"â Paid"}),i.jsx("div",{className:"text-xs text-muted-foreground",children:b(T.paid_at)})]}):i.jsxs(rn,{value:"unpaid",onValueChange:Y=>{Y==="confirm"&&w(T.id)},disabled:p===T.id,children:[i.jsx(Wr,{className:"h-7 w-auto min-w-[120px] bg-red-500/10 text-red-600 dark:text-red-400 border-red-500/20 hover:bg-red-500/20",children:i.jsx(nn,{children:p===T.id?i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx(Me,{className:"h-3 w-3 animate-spin"}),"Processing..."]}):"â ï¸ UNPAID"})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"unpaid",children:"Unpaid"}),i.jsx(pt,{value:"confirm",children:"Mark as Paid & Process"})]})]})})}),i.jsx(Ee,{children:i.jsxs("div",{className:"space-y-2",children:[i.jsx(Re,{className:T.error_message?M3.failed:M3[T.status]||"",children:T.error_message?"failed":T.status}),T.error_message&&i.jsxs("div",{className:"text-xs text-red-600 dark:text-red-400 max-w-xs",children:["Error: ",T.error_message]}),T.lulu_status&&i.jsxs("div",{className:"text-xs text-muted-foreground",children:["Lulu: ",T.lulu_status]}),T.tracking_number&&i.jsx("div",{className:"text-xs font-mono",children:T.tracking_number})]})}),i.jsx(Ee,{className:"text-sm text-muted-foreground",children:i.jsxs("div",{className:"space-y-1",children:[i.jsx("div",{children:b(T.created_at)}),T.paid_at&&i.jsxs("div",{className:"text-xs",children:["Paid: ",b(T.paid_at)]}),T.shipped_at&&i.jsxs("div",{className:"text-xs",children:["Shipped: ",b(T.shipped_at)]})]})}),i.jsx(Ee,{className:"text-right",children:i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx(le,{size:"sm",variant:"outline",onClick:()=>e(`/app/book-preview?id=${T.story_id}`),children:i.jsx(Qa,{className:"h-4 w-4"})}),T.tracking_url&&i.jsx(le,{size:"sm",variant:"outline",onClick:()=>window.open(T.tracking_url,"_blank"),children:i.jsx(oc,{className:"h-4 w-4"})}),i.jsx(le,{size:"sm",variant:"secondary",onClick:()=>v(T.id),disabled:u===T.id,children:u===T.id?i.jsx(Me,{className:"h-4 w-4 animate-spin"}):i.jsx(Vn,{className:"h-4 w-4"})}),T.paid_at&&!T.lulu_print_job_id&&!["cancelled","delivered","completed","shipped"].includes(T.status)&&i.jsx(le,{size:"sm",variant:"default",onClick:()=>j(T.id),"data-testid":`resume-print-${T.id}`,disabled:h===T.id,title:"Resume print preparation",children:h===T.id?i.jsx(Me,{className:"h-4 w-4 animate-spin"}):i.jsx(Vn,{className:"h-4 w-4"})})]})})]},T.id)})})]})})})]})]})]})};function Qs(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Cu(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function cEe(e,t){const r=Qs(e);if(isNaN(t))return Cu(e,NaN);if(!t)return r;const n=r.getDate(),a=Cu(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return n>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),n),r)}const uEe=6048e5,Hot=864e5;let Vot={};function nG(){return Vot}function Lk(e,t){var l,c,u,d;const r=nG(),n=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,a=Qs(e),s=a.getDay(),o=(s<n?7:0)+s-n;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function bH(e){return Lk(e,{weekStartsOn:1}
vendor: 19,328 bytes, line 7978
7978)}function dEe(e){const t=Qs(e),r=t.getFullYear(),n=Cu(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const a=bH(n),s=Cu(e,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const o=bH(s);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function ape(e){const t=Qs(e);return t.setHours(0,0,0,0),t}function ipe(e){const t=Qs(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Wot(e,t){const r=ape(e),n=ape(t),a=+r-ipe(r),s=+n-ipe(n);return Math.round((a-s)/Hot)}function Got(e){const t=dEe(e),r=Cu(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),bH(r)}function Kot(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Yot(e){if(!Kot(e)&&typeof e!="number")return!1;const t=Qs(e);return!isNaN(Number(t))}function spe(e){const t=Qs(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Xot(e){const t=Qs(e),r=Cu(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const Zot={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Qot=(e,t,r)=>{let n;const a=Zot[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function lX(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Jot={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},elt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tlt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rlt={date:lX({formats:Jot,defaultWidth:"full"}),time:lX({formats:elt,defaultWidth:"full"}),dateTime:lX({formats:tlt,defaultWidth:"full"})},nlt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},alt=(e,t,r,n)=>nlt[e];function Fx(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):o;a=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[l]||e.values[o]}const s=e.argumentCallback?e.argumentCallback(t):t;return a[s]}}const ilt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},slt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},olt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},llt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},clt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ult={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dlt=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},hlt={ordinalNumber:dlt,era:Fx({values:ilt,defaultWidth:"wide"}),quarter:Fx({values:slt,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Fx({values:olt,defaultWidth:"wide"}),day:Fx({values:llt,defaultWidth:"wide"}),dayPeriod:Fx({values:clt,defaultWidth:"wide",formattingValues:ult,defaultFormattingWidth:"wide"})};function $x(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;const o=s[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?plt(l,h=>h.test(o)):flt(l,h=>h.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function flt(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function plt(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function mlt(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],s=t.match(e.parsePattern);if(!s)return null;let o=e.valueCallback?e.valueCallback(s[0]):s[0];o=r.valueCallback?r.valueCallback(o):o;const l=t.slice(a.length);return{value:o,rest:l}}}const glt=/^(\d+)(th|st|nd|rd)?/i,ylt=/\d+/i,vlt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},xlt={any:[/^b/i,/^(a|c)/i]},blt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wlt={any:[/1/i,/2/i,/3/i,/4/i]},klt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_lt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Slt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jlt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Elt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Clt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Nlt={ordinalNumber:mlt({matchPattern:glt,parsePattern:ylt,valueCallback:e=>parseInt(e,10)}),era:$x({matchPatterns:vlt,defaultMatchWidth:"wide",parsePatterns:xlt,defaultParseWidth:"any"}),quarter:$x({matchPatterns:blt,defaultMatchWidth:"wide",parsePatterns:wlt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$x({matchPatterns:klt,defaultMatchWidth:"wide",parsePatterns:_lt,defaultParseWidth:"any"}),day:$x({matchPatterns:Slt,defaultMatchWidth:"wide",parsePatterns:jlt,defaultParseWidth:"any"}),dayPeriod:$x({matchPatterns:Elt,defaultMatchWidth:"any",parsePatterns:Clt,defaultParseWidth:"any"})},Tlt={code:"en-US",formatDistance:Qot,formatLong:rlt,formatRelative:alt,localize:hlt,match:Nlt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Alt(e){const t=Qs(e);return Wot(t,Xot(t))+1}function Mlt(e){const t=Qs(e),r=+bH(t)-+Got(t);return Math.round(r/uEe)+1}function hEe(e,t){var d,h,f,p;const r=Qs(e),n=r.getFullYear(),a=nG(),s=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??a.firstWeekContainsDate??((p=(f=a.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,o=Cu(e,0);o.setFullYear(n+1,0,s),o.setHours(0,0,0,0);const l=Lk(o,t),c=Cu(e,0);c.setFullYear(n,0,s),c.setHours(0,0,0,0);const u=Lk(c,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function Ilt(e,t){var l,c,u,d;const r=nG(),n=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,a=hEe(e,t),s=Cu(e,0);return s.setFullYear(a,0,n),s.setHours(0,0,0,0),Lk(s,t)}function Plt(e,t){const r=Qs(e),n=+Lk(r,t)-+Ilt(r,t);return Math.round(n/uEe)+1}function Vr(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const ed={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Vr(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Vr(r+1,2)},d(e,t){return Vr(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Vr(e.getHours()%12||12,t.length)},H(e,t){return Vr(e.getHours(),t.length)},m(e,t){return Vr(e.getMinutes(),t.length)},s(e,t){return Vr(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return Vr(a,t.length)}},jg={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ope={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return ed.y(e,t)},Y:function(e,t,r,n){const a=hEe(e,n),s=a>0?a:1-a;if(t==="YY"){const o=s%100;return Vr(o,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):Vr(s,t.length)},R:function(e,t){const r=dEe(e);return Vr(r,t.length)},u:function(e,t){const r=e.getFullYear();return Vr(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Vr(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Vr(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return ed.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Vr(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=Plt(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):Vr(a,t.length)},I:function(e,t,r){const n=Mlt(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Vr(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ed.d(e,t)},D:function(e,t,r){const n=Alt(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Vr(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return Vr(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),s=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return Vr(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return Vr(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(n===12?a=jg.noon:n===0?a=jg.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(n>=17?a=jg.evening:n>=12?a=jg.afternoon:n>=4?a=jg.morning:a=jg.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ed.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ed.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Vr(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Vr(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ed.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ed.s(e,t)},S:function(e,t){return ed.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return cpe(n);case"XXXX":case"XX":return k1(n);case"XXXXX":case"XXX":default:return k1(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return cpe(n);case"xxxx":case"xx":return k1(n);case"xxxxx":case"xxx":default:return k1(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+lpe(n,":");case"OOOO":default:return"GMT"+k1(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+lpe(n,":");case"zzzz":default:return"GMT"+k1(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Vr(n,t.length)},T:function(e,t,r){const n=e.getTime();return Vr(n,t.length)}};function lpe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),s=n%60;return s===0?r+String(a):r+String(a)+t+Vr(s,2)}function cpe(e,t){return e%60===0?(e>0?"-":"+")+Vr(Math.abs(e)/60,2):k1(e,t)}function k1(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Vr(Math.trunc(n/60),2),s=Vr(n%60,2);return r+a+t+s}const upe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},fEe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Llt=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return upe(e,t);let s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",upe(n,t)).replace("{{time}}",fEe(a,t))},Olt={p:fEe,P:Llt},Rlt=/^D+$/,Dlt=/^Y+$/,Flt=["D","DD","YY","YYYY"];function $lt(e){return Rlt.test(e)}function Blt(e){return Dlt.test(e)}function zlt(e,t,r){const n=Ult(e,t,r);if(console.warn(n),Flt.includes(e))throw new RangeError(n)}function Ult(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qlt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hlt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vlt=/^'([^]*?)'?$/,Wlt=/''/g,Glt=/[a-zA-Z]/;function ci(e,t,r){var d,h,f,p;const n=nG(),a=n.locale??Tlt,s=n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,o=n.weekStartsOn??((p=(f=n.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,l=Qs(e);if(!Yot(l))throw new RangeError("Invalid time value");let c=t.match(Hlt).map(y=>{const m=y[0];if(m==="p"||m==="P"){const v=Olt[m];return v(y,a.formatLong)}return y}).join("").match(qlt).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const m=y[0];if(m==="'")return{isToken:!1,value:Klt(y)};if(ope[m])return{isToken:!0,value:y};
7978if(m.match(Glt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:y}});a.localize.preprocessor&&(c=a.localize.preprocessor(l,c));const u={firstWeekContainsDate:s,weekStartsOn:o,locale:a};return c.map(y=>{if(!y.isToken)return y.value;const m=y.value;(Blt(m)||$lt(m))&&zlt(m,t,String(e));const v=ope[m[0]];return v(l,m,a.localize,u)}).join("")}function Klt(e){const t=e.match(Vlt);return t?t[1].replace(Wlt,"'"):e}function Ylt(e,t){return cEe(e,-t)}const I3={not_using:"Not using it enough",too_busy:"Too busy right now",child_not_interested:"Child not interested",price:"Price",monthly_stories_only:"Only wanted monthly stories",other:"Other"};function Xlt(){const e=wt(),{isAdmin:t,loading:r}=Fr(),[n,a]=k.useState([]),[s,o]=k.useState([]),[l,c]=k.useState(!0),[u,d]=k.useState(!0),[h,f]=k.useState(null),[p,y]=k.useState(null);k.useEffect(()=>{if(!r&&!t){e("/");return}t&&(m(),v())},[t,r,e]);const m=async()=>{try{c(!0);const{data:w,error:j}=await oe.rpc("get_feedback_with_user_emails");if(j)throw j;a(w||[])}catch(w){console.error("Error fetching feedback:",w),Ct.error("Failed to load feedback")}finally{c(!1)}},v=async()=>{try{d(!0);const{data:w,error:j}=await oe.rpc("get_cancellation_feedback_with_emails");if(j)throw j;o(w||[])}catch(w){console.error("Error fetching churn feedback:",w),Ct.error("Failed to load churn feedback")}finally{d(!1)}},g=n.filter(w=>w.credit_granted).length,b=s.reduce((w,j)=>w+(j.unused_credits||0),0),x=s.reduce((w,j)=>(w[j.reason]=(w[j.reason]||0)+1,w),{}),_=Object.entries(x).sort((w,j)=>j[1]-w[1])[0];return r?i.jsx("div",{className:"min-h-screen bg-background p-8",children:i.jsxs("div",{className:"max-w-7xl mx-auto space-y-6",children:[i.jsx(vr,{className:"h-12 w-64"}),i.jsx(vr,{className:"h-32 w-full"}),i.jsx(vr,{className:"h-96 w-full"})]})}):t?i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Feedback"}),i.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-3xl font-bold",children:"Feedback"}),i.jsx("p",{className:"text-muted-foreground mt-2",children:"View user feedback and cancellation reasons"})]}),i.jsxs(Mv,{defaultValue:"user-feedback",className:"space-y-6",children:[i.jsxs(X0,{children:[i.jsxs(Zn,{value:"user-feedback",className:"gap-2",children:[i.jsx(Fa,{className:"h-4 w-4"}),"User Feedback"]}),i.jsxs(Zn,{value:"churn-feedback",className:"gap-2",children:[i.jsx(o0,{className:"h-4 w-4"}),"Churn Feedback"]})]}),i.jsxs(Ql,{value:"user-feedback",className:"space-y-6",children:[i.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[i.jsxs(Ie,{children:[i.jsxs(ze,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(Ke,{className:"text-sm font-medium",children:"Total Submissions"}),i.jsx(Fa,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsx(qe,{children:i.jsx("div",{className:"text-2xl font-bold",children:n.length})})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(Ke,{className:"text-sm font-medium",children:"Credits Granted"}),i.jsx(Si,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsx(qe,{children:i.jsx("div",{className:"text-2xl font-bold",children:g})})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(Ke,{className:"text-sm font-medium",children:"Credit Rate"}),i.jsx(Kc,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsx(qe,{children:i.jsxs("div",{className:"text-2xl font-bold",children:[n.length>0?Math.round(g/n.length*100):0,"%"]})})]})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Feedback Submissions"}),i.jsx(Rt,{children:"All user feedback ordered by most recent"})]}),i.jsx(qe,{children:l?i.jsx("div",{className:"space-y-2",children:[1,2,3,4,5].map(w=>i.jsx(vr,{className:"h-16 w-full"},w))}):n.length===0?i.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[i.jsx(Fa,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),i.jsx("p",{children:"No feedback submissions yet"})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"hidden md:block",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"User Email"}),i.jsx(Ce,{children:"Feedback"}),i.jsx(Ce,{children:"Credit"}),i.jsx(Ce,{children:"Date"})]})}),i.jsx(ga,{children:n.map(w=>i.jsxs(Jt,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>f(w),children:[i.jsx(Ee,{className:"font-medium",children:w.user_email||"Unknown"}),i.jsx(Ee,{className:"max-w-md",children:i.jsx("div",{className:"truncate",children:w.feedback})}
7978),i.jsx(Ee,{children:w.credit_granted?i.jsxs(Re,{variant:"default",className:"gap-1",children:[i.jsx(Si,{className:"h-3 w-3"}),"Granted"]}):i.jsxs(Re,{variant:"secondary",className:"gap-1",children:[i.jsx(li,{className:"h-3 w-3"}),"No"]})}),i.jsx(Ee,{children:ci(new Date(w.created_at),"MMM d, yyyy")})]},w.id))})]})}),i.jsx("div",{className:"md:hidden space-y-4",children:n.map(w=>i.jsxs(Ie,{className:"cursor-pointer",onClick:()=>f(w),children:[i.jsx(ze,{children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{children:[i.jsx(Ke,{className:"text-base",children:w.user_email||"Unknown"}),i.jsx(Rt,{children:ci(new Date(w.created_at),"MMM d, yyyy")})]}),w.credit_granted?i.jsxs(Re,{variant:"default",className:"gap-1",children:[i.jsx(Si,{className:"h-3 w-3"}),"Credit"]}):i.jsxs(Re,{variant:"secondary",className:"gap-1",children:[i.jsx(li,{className:"h-3 w-3"}),"No Credit"]})]})}),i.jsx(qe,{children:i.jsx("p",{className:"text-sm line-clamp-2",children:w.feedback})})]},w.id))})]})})]})]}),i.jsxs(Ql,{value:"churn-feedback",className:"space-y-6",children:[i.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[i.jsxs(Ie,{children:[i.jsxs(ze,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(Ke,{className:"text-sm font-medium",children:"Total Cancellations"}),i.jsx(o0,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsx(qe,{children:i.jsx("div",{className:"text-2xl font-bold",children:s.length})})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(Ke,{className:"text-sm font-medium",children:"Most Common Reason"}),i.jsx(Cy,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsxs(qe,{children:[i.jsx("div",{className:"text-lg font-bold truncate",children:_?I3[_[0]]||_[0]:"N/A"}),_&&i.jsxs("p",{className:"text-xs text-muted-foreground",children:[_[1]," cancellations"]})]})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(Ke,{className:"text-sm font-medium",children:"Credits Lost"}),i.jsx(bs,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsxs(qe,{children:[i.jsx("div",{className:"text-2xl font-bold",children:b}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Unused at cancellation"})]})]})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Cancellation Reasons"}),i.jsx(Rt,{children:"Why users cancelled their subscriptions"})]}),i.jsx(qe,{children:u?i.jsx("div",{className:"space-y-2",children:[1,2,3,4,5].map(w=>i.jsx(vr,{className:"h-16 w-full"},w))}):s.length===0?i.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[i.jsx(o0,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),i.jsx("p",{children:"No cancellation feedback yet"})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"hidden md:block",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"User Email"}),i.jsx(Ce,{children:"Reason"}),i.jsx(Ce,{children:"Comments"}),i.jsx(Ce,{children:"Plan"}),i.jsx(Ce,{children:"Stories"}),i.jsx(Ce,{children:"Credits"}),i.jsx(Ce,{children:"Date"})]})}),i.jsx(ga,{children:s.map(w=>i.jsxs(Jt,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>y(w),children:[i.jsx(Ee,{className:"font-medium",children:w.user_email||"Unknown"}),i.jsx(Ee,{children:i.jsx(Re,{variant:"outline",children:I3[w.reason]||w.reason})}),i.jsx(Ee,{className:"max-w-xs",children:i.jsx("div",{className:"truncate text-sm text-muted-foreground",children:w.other_text||"â"})}),i.jsx(Ee,{className:"capitalize",children:w.subscription_plan||"â"}),i.jsx(Ee,{children:w.stories_created}),i.jsx(Ee,{children:w.unused_credits}),i.jsx(Ee,{children:ci(new Date(w.created_at),"MMM d, yyyy")})]},w.id))})]})}),i.jsx("div",{className:"md:hidden space-y-4",children:s.map(w=>i.jsxs(Ie,{className:"cursor-pointer",onClick:()=>y(w),children:[i.jsx(ze,{children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{children:[i.jsx(Ke,{className:"text-base",children:w.user_email||"Unknown"}),i.jsx(Rt,{children:ci(new Date(w.created_at),"MMM d, yyyy")})]}),i.jsx(Re,{variant:"outline",children:I3[w.reason]||w.reason})]})}),i.jsxs(qe,{children:[i.jsxs("div",{className:"flex gap-4 text-sm text-muted-foreground",children:[i.jsxs("span",{children:["Plan: ",w.subscription_plan||"â"]}
7978),i.jsxs("span",{children:["Stories: ",w.stories_created]}),i.jsxs("span",{children:["Credits: ",w.unused_credits]})]}),w.other_text&&i.jsx("p",{className:"text-sm mt-2 line-clamp-2",children:w.other_text})]})]},w.id))})]})})]})]})]})]})}),i.jsx(Xr,{open:!!h,onOpenChange:w=>!w&&f(null),children:i.jsxs(Ur,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsx(Tr,{children:"Feedback Details"}),i.jsxs(ra,{children:["From ",(h==null?void 0:h.user_email)||"Unknown"," on"," ",h&&ci(new Date(h.created_at),"MMMM d, yyyy 'at' h:mm a")]})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsx("div",{children:i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx("span",{className:"text-sm font-medium",children:"Credit Status:"}),h!=null&&h.credit_granted?i.jsxs(Re,{variant:"default",className:"gap-1",children:[i.jsx(Si,{className:"h-3 w-3"}),"Credit Granted"]}):i.jsxs(Re,{variant:"secondary",className:"gap-1",children:[i.jsx(li,{className:"h-3 w-3"}),"No Credit"]})]})}),i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-medium mb-2",children:"Feedback:"}),i.jsx("div",{className:"bg-muted p-4 rounded-lg whitespace-pre-wrap",children:h==null?void 0:h.feedback})]})]})]})}),i.jsx(Xr,{open:!!p,onOpenChange:w=>!w&&y(null),children:i.jsxs(Ur,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsx(Tr,{children:"Cancellation Details"}),i.jsxs(ra,{children:["From ",(p==null?void 0:p.user_email)||"Unknown"," on"," ",p&&ci(new Date(p.created_at),"MMMM d, yyyy 'at' h:mm a")]})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsx("div",{children:i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx("span",{className:"text-sm font-medium",children:"Reason:"}),i.jsx(Re,{variant:"outline",children:p&&(I3[p.reason]||p.reason)})]})}),(p==null?void 0:p.other_text)&&i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-medium mb-2",children:"Additional Comments:"}),i.jsx("div",{className:"bg-muted p-4 rounded-lg whitespace-pre-wrap",children:p.other_text})]}),i.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[i.jsxs("div",{className:"bg-muted p-4 rounded-lg",children:[i.jsx("p",{className:"text-xs text-muted-foreground",children:"Subscription Plan"}),i.jsx("p",{className:"font-medium capitalize",children:(p==null?void 0:p.subscription_plan)||"Unknown"})]}),i.jsxs("div",{className:"bg-muted p-4 rounded-lg",children:[i.jsx("p",{className:"text-xs text-muted-foreground",children:"Stories Created"}),i.jsx("p",{className:"font-medium",children:(p==null?void 0:p.stories_created)||0})]}),i.jsxs("div",{className:"bg-muted p-4 rounded-lg",children:[i.jsx("p",{className:"text-xs text-muted-foreground",children:"Unused Credits"}),i.jsx("p",{className:"font-medium",children:(p==null?void 0:p.unused_credits)||0})]})]})]})]})})]}):null}const cX=({stars:e})=>e===null?i.jsx("span",{className:"text-muted-foreground",children:"-"}):i.jsx("div",{className:"flex items-center gap-0.5",children:[1,2,3,4,5].map(t=>i.jsx(Oa,{className:`h-4 w-4 ${t<=e?"fill-yellow-400 text-yellow-400":"text-muted-foreground/30"}`},t))}),Zlt=()=>{const e=wt(),{isAdmin:t,loading:r}=Fr(),[n,a]=k.useState([]),[s,o]=k.useState(!0),[l,c]=k.useState(null);k.useEffect(()=>{!r&&!t&&e("/")},[t,r,e]),k.useEffect(()=>{t&&u()},[t]);const u=async()=>{try{o(!0);const{data:y,error:m}=await oe.rpc("get_reviews_with_details");if(m){console.error("Error fetching reviews:",m),Ct.error("Failed to load reviews");return}a(y||[])}catch(y){console.error("Error fetching reviews:",y),Ct.error("Failed to load reviews")}finally{o(!1)}};if(r)return i.jsx("div",{className:"min-h-screen bg-background",children:i.jsxs("div",{className:"p-6 space-y-6",children:[i.jsx(vr,{className:"h-8 w-48"}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[1,2,3,4].map(y=>i.jsx(vr,{className:"h-24"},y))}),i.jsx(vr,{className:"h-96"})]})});if(!t)return null;const d=n.filter(y=>y.stars!==null&&!y.review_skipped),h=n.filter(y=>y.review_skipped),f=d.length>0?(d.reduce((y,m)=>y+(m.stars||0),0)/d.length).toFixed(1):"0.0",p=d.filter(y=>y.stars===5).length;return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Reviews"}),i.jsxs("div",{className:"p-4 md:p-6 space-y-6",children:[i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsxs(Ke,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[i.jsx(Fa,{className:"h-4 w-4"}),"Total Reviews"]})}),i.jsx(qe,{children:i.jsx("p",{className:"text-2xl font-bold",children:d.length})})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsxs(Ke,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[i.jsx(Ny,{className:"h-4 w-4"}),"Average Rating"]})}),i.jsx(qe,{children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("p",{className:"text-2xl font-bold",children:f}),i.jsx(Oa,{className:"h-5 w-5 fill-yellow-400 text-yellow-400"})]})})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsxs(Ke,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[i.jsx(Oa,{className:"h-4 w-4"}),"5-Star Reviews"]})}),i.jsxs(qe,{children:[i.jsx("p",{className:"text-2xl font-bold",children:p}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:[d.length>0?Math.round(p/d.length*100):0,"% of reviews"]})]})]}),i.jsxs(Ie,{children:[i.jsx(ze,{className:"pb-2",children:i.jsxs(Ke,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[i.jsx(fw,{className:"h-4 w-4"}),"Skipped"]})}),i.jsx(qe,{children:i.jsx("p",{className:"text-2xl font-bold",children:h.length})})]})]}),i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsx(Ke,{children:"All Reviews"})}),i.jsx(qe,{children:s?i.jsx("div",{className:"space-y-2",children:[1,2,3,4,5].map(y=>i.jsx(vr,{className:"h-12 w-full"},y))}):n.length===0?i.jsx("p",{className:"text-center text-muted-foreground py-8",children:"No reviews yet"}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"hidden md:block",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Story"}),i.jsx(Ce,{children:"User"}),i.jsx(Ce,{children:"Rating"}),i.jsx(Ce,{children:"Comment"}),i.jsx(Ce,{children:"Date"})]})}),i.jsx(ga,{children:n.map(y=>i.jsxs(Jt,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>c(y),children:[i.jsx(Ee,{className:"font-medium max-w-[200px] truncate",children:y.story_title||"Untitled"}),i.jsx(Ee,{className:"max-w-[200px] truncate",children:y.user_email||"Unknown"}),i.jsx(Ee,{children:y.review_skipped?i.jsx("span",{className:"text-muted-foreground text-sm",children:"Skipped"}):i.jsx(cX,{stars:y.stars})}),i.jsx(Ee,{className:"max-w-[300px] truncate",children:y.comment||i.jsx("span",{className:"text-muted-foreground",children:"No comment"})}),i.jsx(Ee,{className:"text-muted-foreground",children:ci(new Date(y.created_at),"MMM d, yyyy")})]},y.id))})]})}),i.jsx("div",{className:"md:hidden space-y-3",children:n.map(y=>i.jsx(Ie,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>c(y),children:i.jsxs(qe,{className:"p-4 space-y-2",children:[i.jsxs("div",{className:"flex justify-between items-start",children:[i.jsx("p",{className:"font-medium truncate flex-1",children:y.story_title||"Untitled"}),y.review_skipped?i.jsx("span",{className:"text-muted-foreground text-sm",children:"Skipped"}):i.jsx(cX,{stars:y.stars})]}),i.jsx("p",{className:"text-sm text-muted-foreground truncate",children:y.user_email||"Unknown"}),y.comment&&i.jsx("p",{className:"text-sm truncate",children:y.comment}),i.jsx("p",{className:"text-xs text-muted-foreground",children:ci(new Date(y.created_at),"MMM d, yyyy")})]})},y.id))})]})})]})]}),i.jsx(Xr,{open:!!l,onOpenChange:()=>c(null),children:i.jsxs(Ur,{className:"max-w-md",children:[i.jsx(Nr,{children:i.jsx(Tr,{children:"Review Details"})}),l&&i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Story"}),i.jsx("p",{className:"font-medium",children:l.story_title||"Untitled"})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"User"}),i.jsx("p",{children:l.user_email||"Unknown"})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Rating"}),l.review_skipped?i.jsx("p",{className:"text-muted-foreground",children:"Skipped review"}):i.jsx(cX,{stars:l.stars})]}),l.comment&&i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Comment"}),i.jsx("p",{className:"whitespace-pre-wrap",children:l.comment})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Date"}),i.jsx("p",{children:ci(new Date(l.created_at),"MMMM d, yyyy h:mm a")})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Public Review"}),i.jsx("p",{children:l.is_public_review?"Yes":"No"})]})]})]})})]})};var pEe="AlertDialog",[Qlt,NWt]=xa(pEe,[t3e]),$u=t3e(),mEe=e=>{const{__scopeAlertDialog:t,...r}=e,n=$u(t);return i.jsx(EW,{...n,...r,modal:!0})};mEe.displayName=pEe;var Jlt="AlertDialogTrigger",gEe=k.forwardRef((e,t)=>
7978{const{__scopeAlertDialog:r,...n}=e,a=$u(r);return i.jsx(yie,{...a,...n,ref:t})});gEe.displayName=Jlt;var ect="AlertDialogPortal",yEe=e=>{const{__scopeAlertDialog:t,...r}=e,n=$u(t);return i.jsx(CW,{...n,...r})};yEe.displayName=ect;var tct="AlertDialogOverlay",vEe=k.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=$u(r);return i.jsx(vv,{...a,...n,ref:t})});vEe.displayName=tct;var $y="AlertDialogContent",[rct,nct]=Qlt($y),act=dwe("AlertDialogContent"),xEe=k.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...a}=e,s=$u(r),o=k.useRef(null),l=Vt(t,o),c=k.useRef(null);return i.jsx(mGe,{contentName:$y,titleName:bEe,docsSlug:"alert-dialog",children:i.jsx(rct,{scope:r,cancelRef:c,children:i.jsxs(xv,{role:"alertdialog",...s,...a,ref:l,onOpenAutoFocus:Xe(a.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=c.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[i.jsx(act,{children:n}),i.jsx(sct,{contentRef:o})]})})})});xEe.displayName=$y;var bEe="AlertDialogTitle",wEe=k.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=$u(r);return i.jsx(z_,{...a,...n,ref:t})});wEe.displayName=bEe;var kEe="AlertDialogDescription",_Ee=k.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=$u(r);return i.jsx(U_,{...a,...n,ref:t})});_Ee.displayName=kEe;var ict="AlertDialogAction",SEe=k.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=$u(r);return i.jsx(NW,{...a,...n,ref:t})});SEe.displayName=ict;var jEe="AlertDialogCancel",EEe=k.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:a}=nct(jEe,r),s=$u(r),o=Vt(t,a);return i.jsx(NW,{...s,...n,ref:o})});EEe.displayName=jEe;var sct=({contentRef:e})=>{const t=`\`${$y}\` requires a description for the component to be accessible for screen reader users. 7979 7980You can add a description to the \`${$y}\` by passing a \`${kEe}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 7981 7982Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${$y}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 7983 7984For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return k.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},oct=mEe,lct=gEe,cct=yEe,CEe=vEe,NEe=xEe,TEe=SEe,AEe=EEe,MEe=wEe,IEe=_Ee;const Jl=oct,uct=lct,dct=cct,PEe=k.forwardRef(({className:e,...t},r)=>i.jsx(CEe,{className:De("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),...t,ref:r}));PEe.displayName=CEe.displayName;const ll=k.forwardRef(({className:e,...t},r)=>i.jsxs(dct,{children:[i.jsx(PEe,{}),i.jsx(NEe,{ref:r,className:De("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:rounded-lg",e),...t})]}));ll.displayName=NEe.displayName;const cl=({className:e,...t})=>i.jsx("div",{className:De("flex flex-col space-y-2 text-center sm:text-left",e),...t});cl.displayName="AlertDialogHeader";const ul=({className:e,...t})=>i.jsx("div",{className:De("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ul.displayName="AlertDialogFooter";const dl=k.forwardRef(({className:e,...t},r)=>i.jsx(MEe,{ref:r,className:De("text-lg font-semibold",e),...t}));dl.displayName=MEe.displayName;const hl=k.forwardRef(({className:e,...t},r)=>i.jsx(IEe,{ref:r,className:De("text-sm text-muted-foreground",e),...t}));hl.displayName=IEe.displayName;const fl=k.forwardRef(({className:e,...t},r)=>i.jsx(TEe,{ref:r,className:De(wW(),e),...t}));
7984fl.displayName=TEe.displayName;const pl=k.forwardRef(({className:e,...t},r)=>i.jsx(AEe,{ref:r,className:De(wW({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));pl.displayName=AEe.displayName;const hct=()=>{const{isAdmin:e,loading:t}=Fr(),r=wt(),n=El(),[a,s]=k.useState(""),[o,l]=k.useState(null),[c,u]=k.useState(""),{data:d,isLoading:h}=ei({queryKey:["admin-users"],queryFn:async()=>{const{data:g,error:b}=await oe.rpc("get_users_with_profile_data");if(b)throw b;return g},enabled:e}),f=rl({mutationFn:async({userId:g,email:b})=>{const{data:x,error:_}=await oe.functions.invoke("grant-story-credit",{body:{userId:g,email:b}});if(_)throw _;if(!x.success)throw new Error(x.error);return x},onSuccess:()=>{n.invalidateQueries({queryKey:["admin-users"]}),Lr({title:"Credit granted",description:"Story credit has been granted to the user."})},onError:g=>{Lr({title:"Error",description:g instanceof Error?g.message:"Failed to grant credit",variant:"destructive"})}}),p=rl({mutationFn:async g=>{const{data:b,error:x}=await oe.functions.invoke("admin-delete-user",{body:{userId:g}});if(x)throw x;if(!b.success)throw new Error(b.error);return b},onSuccess:()=>{n.invalidateQueries({queryKey:["admin-users"]}),l(null),u(""),Lr({title:"User deleted",description:"User account and all associated data have been deleted."})},onError:g=>{Lr({title:"Error",description:g instanceof Error?g.message:"Failed to delete user",variant:"destructive"})}});if(t)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(!e)return r("/library"),null;const y=d==null?void 0:d.filter(g=>{var b;return(b=g.email)==null?void 0:b.toLowerCase().includes(a.toLowerCase())}),m=g=>g.membership_active?g.cancel_at_period_end?i.jsx(Re,{variant:"secondary",children:"Cancelling"}):i.jsx(Re,{className:"bg-green-600 hover:bg-green-700",children:"Subscriber"}):g.trial_ends_at?new Date(g.trial_ends_at)>new Date?i.jsx(Re,{variant:"outline",children:"Trial"}):i.jsx(Re,{variant:"destructive",children:"Trial Expired"}):i.jsx(Re,{variant:"outline",children:"Free"}),v=g=>{const b=[];return g.included_story_available&&b.push("1 included"),g.story_credits>0&&b.push(`${g.story_credits} rollover`),b.length>0?b.join(", "):"None"};return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Users"}),i.jsxs("main",{className:"container py-6",children:[i.jsx("div",{className:"mb-6",children:i.jsxs("div",{className:"relative max-w-sm",children:[i.jsx(go,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),i.jsx(Pt,{placeholder:"Search by email...",value:a,onChange:g=>s(g.target.value),className:"pl-10"})]})}),h?i.jsx("div",{className:"flex items-center justify-center py-12",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):i.jsx("div",{className:"border rounded-lg",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Email"}),i.jsx(Ce,{children:"Signed Up"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Credits"}),i.jsx(Ce,{children:"Stories"}),i.jsx(Ce,{className:"w-[70px]",children:"Actions"})]})}),i.jsx(ga,{children:(y==null?void 0:y.length)===0?i.jsx(Jt,{children:i.jsx(Ee,{colSpan:6,className:"text-center text-muted-foreground py-8",children:"No users found"})}):y==null?void 0:y.map(g=>i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium",children:g.email}),i.jsx(Ee,{children:g.created_at?ci(new Date(g.created_at),"MMM d, yyyy"):"-"}),i.jsx(Ee,{children:m(g)}),i.jsx(Ee,{children:v(g)}),i.jsx(Ee,{children:g.story_count}),i.jsx(Ee,{children:i.jsxs(jk,{children:[i.jsx(Ek,{asChild:!0,children:i.jsx(le,{variant:"ghost",size:"icon",children:i.jsx(Xc,{className:"h-4 w-4"})})}),i.jsxs(x2,{align:"end",children:[i.jsxs(ua,{onClick:()=>f.mutate({userId:g.id,email:g.email}),disabled:f.isPending,children:[i.jsx(r0,{className:"mr-2 h-4 w-4"}),"Grant Credit"]}),i.jsxs(ua,{className:"text-destructive focus:text-destructive",onClick:()=>{l(g.id),u(g.email)},children:[i.jsx(ws,{className:"mr-2 h-4 w-4"}),"Delete User"]})]})]})})]},g.id))})]})}),i.jsx(Jl,{open:!!o,onOpenChange:()=>l(null),children:i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Delete User Account"}),i.jsxs(hl,{children:["Are you sure you want to delete ",i.jsx("strong",{children:c}),"? This will permanently remove their account and all associated data including stories, payments, and files. This action cannot be undone."]})]}),i.jsxs(ul,{children:[i.jsx(pl,{children:"Cancel"}),i.jsx(fl,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>o&&p.mutate(o),disabled:p.isPending,children:p.isPending?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Deleting..."]}):"Delete User"})]})]})})]})]})};function fct(){const e="Harper Jules",t="Publishing Strategist at Kibbi",r="Harper helps indie authors price, position, and publish smarter on Amazon KDP.",n={"@context":"https://schema.org","@type":"Person",name:e,jobTitle:t,description:r,url:"https://kibbi.ai/authors/harper-jules",worksFor:{"@type":"Organization",name:"Kibbi"}};return i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsxs(qt,{children:[i.jsxs("title",{children:[e," - Author | Kibbi"]}),i.jsx("meta",{name:"description",content:`${e}, ${t}. ${r}`}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/authors/harper-jules"}),i.jsx("meta",{name:"robots",content:"index, follow"}),i.jsx("meta",{property:"og:title",content:`${e} - Author | Kibbi`}),i.jsx("meta",{property:"og:description",content:`${e}, ${t}. ${r}`}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/authors/harper-jules"}),i.jsx("meta",{property:"og:type",content:"profile"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}
7984),i.jsx("meta",{property:"og:image:width",content:"1200"}),i.jsx("meta",{property:"og:image:height",content:"630"}),i.jsx("meta",{property:"og:image:alt",content:`${e} - ${t}`}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)})]}),i.jsx(lr,{}),i.jsx("main",{className:"flex-1 container mx-auto px-4 pt-32 pb-16",children:i.jsx("div",{className:"max-w-3xl mx-auto",children:i.jsxs("article",{className:"prose prose-lg prose-slate dark:prose-invert max-w-none",children:[i.jsx("h1",{className:"text-4xl font-semibold font-crimson mb-8",children:"About the Author"}),i.jsx("div",{className:"text-lg leading-relaxed",children:i.jsxs("p",{children:["Written by ",i.jsx("strong",{children:e}),", ",t,". ",r]})})]})})}),i.jsx(br,{})]})}const pct=()=>{const e=wa();return k.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),i.jsxs("div",{className:"flex min-h-screen items-center justify-center bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Page Not Found - 404 Error | Kibbi.ai"}),i.jsx("meta",{name:"description",content:"The page you're looking for doesn't exist. Return to Kibbi.ai homepage."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/"}),i.jsx("meta",{name:"robots",content:"noindex, follow"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),i.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),i.jsx("a",{href:"/",className:"text-foreground underline hover:text-foreground/80 font-medium",children:"Return to Home"})]})]})},mct=()=>i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Privacy Policy - How We Protect Your Data | Kibbi.ai"}),i.jsx("meta",{name:"description",content:"Kibbi's privacy policy explains how we collect, use, and protect your personal information when using our AI story generation platform."}),i.jsx("meta",{name:"robots",content:"index, follow"}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/privacy-policy"}),i.jsx("meta",{property:"og:title",content:"Privacy Policy - How We Protect Your Data | Kibbi.ai"}),i.jsx("meta",{property:"og:description",content:"Kibbi's privacy policy explains how we collect, use, and protect your personal information."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/privacy-policy"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi.ai"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:"Privacy Policy - How We Protect Your Data | Kibbi.ai"}),i.jsx("meta",{name:"twitter:description",content:"Kibbi's privacy policy explains how we collect, use, and protect your personal information."}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:[i.jsx("h1",{className:"font-crimson text-4xl md:text-5xl font-bold mb-8",children:"Privacy Policy"}),i.jsxs("div",{className:"prose prose-lg max-w-none space-y-8 text-foreground/80",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Last updated: ",new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})]}),i.jsx("section",{children:i.jsx("p",{children:'Kibbi.ai ("we," "us," or "our") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, and safeguard your information when you use our website and services.'})}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"1. What We Collect"}),i.jsx("p",{children:"When you use Kibbi, we may collect the following types of information:"}),i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2 mt-4",children:"Parent Account Info"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Name and email address"}),i.jsx("li",{children:"Password (securely encrypted)"})]}),i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2 mt-4",children:"Child Profile Info"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"First name (optional)"}),i.jsx("li",{children:"Age or age range (used to tailor story content)"})]}),i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2 mt-4",children:"Story Input & Usage"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Custom text or voice inputs you provide to generate stories"}),i.jsx("li",{children:"Story content created through your account"}),i.jsx("li",{children:"Interaction data (e.g., books viewed, favorited, or edited)"})]}),i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2 mt-4",children:"Payment Info"}),i.jsx("p",{children:"We use Stripe to securely process payments. We do not store your full credit card details on our servers."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"2. How We Use Your Info"}),i.jsx("p",{children:"We use your data to:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Create personalized stories based on your input"}),i.jsx("li",{children:"Tailor content to your child's age and preferences"}),i.jsx("li",{children:"Improve our platform, features, and AI models"}),i.jsx("li",{children:"Provide customer support and respond to inquiries"}),i.jsx("li",{children:"Process payments and manage your subscription"})]}),i.jsx("p",{className:"mt-4",children:"We do not sell your data, and we never use your child's information for targeted advertising."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"3. Legal Basis for Processing (GDPR)"}),i.jsx("p",{children:"If you are located in the European Economic Area (EEA), we process your personal data under one or more of the following lawful bases:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsxs("li",{children:[i.jsx("strong",{children:"Performance of a contract"})," (e.g., to deliver the service you requested)"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Consent"})," (e.g., when customizing content for your child)"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Legitimate interests"})," (e.g., improving platform performance)"]})]}),i.jsx("p",{className:"mt-4",children:"You may withdraw your consent at any time by contacting us."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"4. Third-Party Services"}),i.jsx("p",{children:"We use trusted third-party services to help operate Kibbi.ai, including:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Payment processing (e.g., Str
7984ipe)"}),i.jsx("li",{children:"Cloud storage and hosting"}),i.jsx("li",{children:"AI content generation tools"}),i.jsx("li",{children:"Customer support systems"})]}),i.jsx("p",{className:"mt-4",children:"These providers are given only the data needed to perform their tasks, and they are contractually required to protect your data under privacy and security standards that match ours."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"5. International Data Transfers"}),i.jsx("p",{children:"If you are located outside the United States, please note that your data may be processed in countries where privacy laws may differ from yours."}),i.jsx("p",{className:"mt-4",children:"When transferring data internationally, we rely on:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Standard Contractual Clauses (SCCs) approved by the European Commission, or"}),i.jsx("li",{children:"Other lawful mechanisms permitted under GDPR"})]})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"6. Children's Privacy"}),i.jsx("p",{children:"Kibbi.ai is designed for adults, not children. While we allow you to create stories using your child's name or age for personalization, children under 13 are not permitted to create accounts or use Kibbi independently."}),i.jsx("p",{className:"mt-4",children:"We collect only minimal child-related data (e.g., age range) to provide age-appropriate experiences. If we learn we've collected personal data from a child without verified parental consent, we will delete it promptly."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"7. Your Rights (Under GDPR & Similar Laws)"}),i.jsx("p",{children:"If you are located in the EU, UK, or another jurisdiction with similar data protection laws, you may have the right to:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Access the personal data we hold about you"}),i.jsx("li",{children:"Request correction or deletion of your data"}),i.jsx("li",{children:"Object to or restrict certain processing"}),i.jsx("li",{children:"Receive a copy of your data in a portable format"}),i.jsx("li",{children:"Withdraw consent where processing is based on consent"}),i.jsx("li",{children:"Lodge a complaint with your local Data Protection Authority (DPA)"})]}),i.jsx("p",{className:"mt-4",children:"To exercise any of these rights, please email us at [email protected]."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"8. Your Choices & Data Deletion"}),i.jsx("p",{children:"You can:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Edit or delete your account information at any time"}),i.jsx("li",{children:"Manage or delete child profiles"}),i.jsx("li",{children:"Cancel your subscription (you'll retain access to already-created stories)"}),i.jsx("li",{children:"Request complete data deletion by contacting us"})]}),i.jsx("p",{className:"mt-4",children:"We'll respond to deletion or data access requests within the legally required timeframe."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"9. How We Protect Your Info"}),i.jsx("p",{children:"We use encryption, secure servers, and industry-standard safeguards to keep your personal data safe. Access is limited to authorized personnel and trusted service providers."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"10. Updates to This Policy"}),i.jsx("p",{children:"We may update this Privacy Policy from time to time. If changes are significant, we will notify you via email or in-app message. You can always find the latest version on our website."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"11. Contact Us"}),i.jsx("p",{children:"Got questions? We're here to help."}),i.jsxs("p",{className:"mt-2",children:["ð§ Email: [email protected]",i.jsx("br",{}),"ð Website: ",i.jsx("a",{href:"https://www.kibbi.ai",className:"text-foreground underline hover:text-foreground
7984/80 font-medium",children:"https://www.kibbi.ai"})]})]})]})]}),i.jsx(br,{})]})]}),gct=()=>i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Terms of Service - User Agreement & Guidelines | Kibbi.ai"}),i.jsx("meta",{name:"description",content:"Read Kibbi's terms of service to understand the rules and guidelines for using our AI-powered story generation platform."}),i.jsx("meta",{name:"robots",content:"index, follow"}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/terms-of-service"}),i.jsx("meta",{property:"og:title",content:"Terms of Service - User Agreement & Guidelines | Kibbi.ai"}),i.jsx("meta",{property:"og:description",content:"Read Kibbi's terms of service to understand the rules and guidelines for using our AI-powered story generation platform."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/terms-of-service"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi.ai"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:"Terms of Service - User Agreement & Guidelines | Kibbi.ai"}),i.jsx("meta",{name:"twitter:description",content:"Read Kibbi's terms of service to understand the rules and guidelines for using our AI-powered story generation platform."}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:[i.jsx("h1",{className:"font-crimson text-4xl md:text-5xl font-bold mb-8",children:"Terms of Service"}),i.jsxs("div",{className:"prose prose-lg max-w-none space-y-8 text-foreground/80",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Last updated: ",new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})]}),i.jsxs("section",{children:[i.jsx("p",{children:"Welcome to Kibbi.ai, where imagination meets technology to help families and individuals create personalized, AI-powered books â from magical children's tales to immersive adult fiction. Our platform provides tools to generate stories, illustrations, and audio narration, making storytelling creative, easy, and enjoyable for users of all ages."}),i.jsx("p",{className:"mt-4",children:'By accessing or using Kibbi.ai, you agree to these Terms of Service ("Terms"). If you do not agree, please do not use our services.'})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"1. Accounts, Age Requirements & Child Profiles"}),i.jsx("p",{children:"Only individuals who are 18 years of age or older may create a Kibbi.ai account. By creating an account, you represent and warrant that you are a parent, legal guardian, or authorized adult acting on behalf of a minor child."}),i.jsx("p",{className:"mt-4",children:"After creating an account, you may set up child profiles by entering your child's age. These profiles allow Kibbi.ai to personalize content for different developmental stages. Children may participate in story creation under your supervision, but they may not create or manage their own accounts."}),i.jsx("p",{className:"mt-4",children:"We do not permit children under 13 to access the platform independently. All interaction by children must occur through a parent or guardian's account. Parents or guardians remain legally responsible for all content generated through child profiles."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"2. AI-Generated Content Disclaimer"}),i.jsx("p",{children:"Kibbi.ai uses third-party AI technologies to generate content, including text, images, and audio. While we strive for quality and safety, AI-generated content may occasionally contain factual inaccuracies, repetition, or unexpected outputs (e.g., character inconsistencies or irrelevant details)."}),i.jsx("p",{className:"mt-4",children:"You are solely responsible for:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Reviewing all content before use or distribution"}),i.jsx("li",{children:"Ensuring that generated content is suitable for your intended audie
7984nce"}),i.jsx("li",{children:"Complying with applicable laws in your jurisdiction"})]}),i.jsx("p",{className:"mt-4",children:"Kibbi.ai makes no warranties regarding the originality, factual accuracy, or fitness for a particular purpose of AI-generated output."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"3. Content Ownership and Licensing"}),i.jsx("p",{children:"You retain all rights, title, and interest in and to the content you generate using Kibbi.ai, including AI-generated stories, illustrations, and audio files, as long as such content is based on your original input and does not infringe the rights of others."}),i.jsx("p",{className:"mt-4",children:"Kibbi.ai does not claim ownership over your generated content. You may use, share, publish, license, sell, or register your stories or materials without restriction, including for personal or commercial purposes."}),i.jsx("p",{className:"mt-4",children:"By using our platform, you grant Kibbi.ai a limited, non-exclusive, royalty-free, worldwide license solely to:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Store and process your content to provide the services you request"}),i.jsx("li",{children:"Display your generated content within your account"}),i.jsx("li",{children:"Use anonymized and aggregated data derived from your content and prompts to improve our services and underlying systems"})]}),i.jsx("p",{className:"mt-4",children:"This license is non-commercial, revocable, and does not transfer any ownership or intellectual property rights. You retain any moral rights that apply under local copyright laws."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"4. Copyright and Authorship"}),i.jsx("p",{children:"By submitting prompts, story ideas, and preferences to Kibbi.ai, you exercise creative control over the final result. As such, you are considered the author of the resulting work under applicable copyright laws in the U.S., EU, and other jurisdictions."}),i.jsx("p",{className:"mt-4",children:"You retain:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Copyright ownership of all content you generate through the platform"}),i.jsx("li",{children:"The right to use, share, adapt, publish, or register your content freely"}),i.jsx("li",{children:"Moral rights, where applicable, including attribution and protection against distortion"})]}),i.jsx("p",{className:"mt-4",children:"Kibbi.ai does not claim authorship or attribution for your generated content. Your content will not be reused in other users' stories or materials."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"5. User-Submitted Input"}),i.jsx("p",{children:"You are solely responsible for any prompts, ideas, or content you submit to Kibbi.ai. You agree not to use the platform to:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Infringe upon any third-party intellectual property rights"}),i.jsx("li",{children:"Submit names, likenesses, or voices of real individuals without authorization"}),i.jsx("li",{children:"Generate or distribute harmful, illegal, or obscene material, especially involving minors"})]}),i.jsx("p",{className:"mt-4",children:"You are responsible for ensuring that all input you submit to the platform complies with applicable law."}),i.jsx("p",{className:"mt-4",children:"Kibbi.ai reserves the right to suspend accounts or remove content that violates these Terms or our community guidelines."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"6. Children's Privacy and COPPA/GDPR-K Compliance"}),i.jsx("p",{children:"Kibbi.ai complies with the Children's Online Privacy Protection Act (COPPA), the EU General Data Protection Regulation for Kids (GDPR-K), and equivalent global standards."}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2 mt-4",children:[i.jsx("li",{children:"We do not knowingly collect personal data from children under 13 without verified parental consent"}),i.jsx("li",{children:"Child-related data (such as age range) is collected only to provide age-appropriate content"}),i.jsx("li",{children:"All access and input by minors must occur under direct supervision of an adult account holder"})]}),i.jsx("p",{className:"mt-4",children:"If we discover that personal data has been collected from a child without proper consent, we will delete it promptly."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"7. GDPR Notice for EU Users"}),i.jsx("p",{children:"If you are located in the European Union or EEA, the following additional terms apply:"}),i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2 mt-4",children:"Legal Basis for Processing"}),i.jsx("p",{children:"We process your personal data under Article 6(1)(b) of the GDPR as necessary to fulfill our contract with you, and under Article 6(1)(a) with your consent for optional features (e.g., child personalization)."}),i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2 mt-4",children:"Your Rights under GDPR include"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Right to access your data"}
7984),i.jsx("li",{children:"Right to rectification or deletion"}),i.jsx("li",{children:"Right to object to or restrict processing"}),i.jsx("li",{children:"Right to data portability"}),i.jsx("li",{children:"Right to lodge a complaint with your national Data Protection Authority (DPA)"}),i.jsx("li",{children:"Right to withdraw consent at any time, without affecting the lawfulness of processing based on consent before its withdrawal"})]}),i.jsx("p",{className:"mt-4",children:"You may exercise any of these rights by contacting: [email protected]"}),i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2 mt-4",children:"Data Transfers Outside the EU"}),i.jsx("p",{children:"If your data is processed outside the European Economic Area, we ensure that adequate safeguards are in place, including Standard Contractual Clauses approved by the European Commission."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"8. User Conduct and Platform Safety"}),i.jsx("p",{children:"You agree not to:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Use Kibbi.ai to generate or share harmful, illegal, or abusive content"}),i.jsx("li",{children:"Violate third-party rights or applicable law"}),i.jsx("li",{children:"Circumvent platform security or tamper with system integrity"}),i.jsx("li",{children:"Misuse Kibbi for impersonation, plagiarism, or disinformation"}),i.jsx("li",{children:"Misrepresent AI-assisted content as exclusively human-authored where doing so would be misleading, unlawful, or deceptive to consumers, publishers, or platforms"})]}),i.jsx("p",{className:"mt-4",children:"We may suspend or terminate your account if you violate these Terms."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"9. Indemnification"}),i.jsx("p",{children:"You agree to indemnify and hold harmless Kibbi.ai, its team, affiliates, and service providers from any claims, damages, or liabilities arising from:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Content you generate or distribute"}),i.jsx("li",{children:"Your use or misuse of the platform"}),i.jsx("li",{children:"Your breach of these Terms or applicable law"})]})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"10. Limitation of Liability"}),i.jsx("p",{children:'Kibbi.ai is provided "as is," with no warranties of performance, fitness, or accuracy. To the extent allowed by law, we disclaim all liability for:'}),i.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[i.jsx("li",{children:"Content quality, factual accuracy, or originality"}),i.jsx("li",{children:"Service interruptions or errors"}),i.jsx("li",{children:"Loss of user data or generated content"})]}),i.jsx("p",{className:"mt-4",children:"You are responsible for reviewing and backing up all content created through the platform."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"11. Privacy Policy"}),i.jsxs("p",{children:["Please refer to our ",i.jsx("a",{href:"/privacy-policy",className:"text-foreground underline hover:text-foreground/80 font-medium",children:"Privacy Policy"})," for full details on how we collect, use, protect, and store your personal and child-related data."]})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"12. Changes to These Terms"}),i.jsx("p",{children:"We may revise these Terms periodically. If we make material updates, we will notify you via the platform or your registered email. Continued use of Kibbi.ai after changes constitutes acceptance of the updated Terms."})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-4",children:"13. Contact Information"}),i.jsx("p",{children:"Questions or concerns? Contact us:"}),i.jsxs("p",{className:"mt-2",children:["ð§ [email protected]",i.jsx("br",{}),"ð ",i.jsx("a",{href:"https://www.kibbi.ai",className:"text-foreground underline hover:text-foreground
7984/80 font-medium",children:"https://www.kibbi.ai"})]}),i.jsx("p",{className:"mt-4",children:"Thank you for using Kibbi.ai â where every story begins with your imagination."})]})]})]}),i.jsx(br,{})]})]}),yct={"@context":"https://schema.org","@type":"AboutPage",name:"About Kibbi",url:"https://kibbi.ai/about",description:"Learn how Kibbi helps families create personalized storybooks that make kids want to read.",mainEntity:{"@type":"Organization",name:"Kibbi",url:"https://kibbi.ai",logo:"https://kibbi.ai/favicon.png",description:"Personalized storybook platform for families with children ages 0-9.",sameAs:["https://kibbi.ai"]}},vct=()=>i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Our Mission | Personalized Storybooks for Families | Kibbi"}),i.jsx("meta",{name:"description",content:"Learn how Kibbi helps families create personalized storybooks around bedtime, big feelings, milestones, and the moments kids want to read again."}),i.jsx("meta",{name:"robots",content:"index, follow"}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/about"}),i.jsx("meta",{property:"og:title",content:"Our Mission | Personalized Storybooks for Families | Kibbi"}),i.jsx("meta",{property:"og:description",content:"Learn how Kibbi helps families create personalized storybooks around bedtime, milestones, and the moments kids want to hold onto."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/about"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi.ai"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:"Our Mission | Personalized Storybooks for Families | Kibbi"}),i.jsx("meta",{name:"twitter:description",content:"Learn how Kibbi helps families create personalized storybooks around bedtime, milestones, and the moments kids want to revisit."}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(yct)})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:[i.jsx("h1",{className:"font-crimson text-4xl md:text-5xl font-bold mb-8",children:"About Kibbi"}),i.jsxs("div",{className:"prose prose-lg max-w-none space-y-12 text-foreground/80",children:[i.jsx("section",{children:i.jsx("p",{className:"text-xl leading-relaxed",children:"Kibbi exists to help families turn ordinary reading time into something more personal. When a child sees their name, interests, and real-life moments inside a story, reading feels easier to love and easier to come back to."})}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-3xl font-semibold text-foreground mb-6",children:"Our Story"}),i.jsx("p",{children:"Kibbi started with a simple observation: children pay more attention when a story feels like it belongs to them. A favorite animal, a familiar bedtime routine, a first day of school, or a beloved stuffed toy can turn storytime from passive listening into real engagement."}),i.jsx("p",{className:"mt-4",children:"Creating that kind of book from scratch used to take too much time. Kibbi makes it practical for parents and caregivers to create personalized storybooks in minutes, then read them digitally right away or print the ones that become keepsakes."})]}),i.jsxs("section",{className:"bg-muted/30 rounded-lg p-8",children:[i.jsx("h2",{className:"font-crimson text-3xl font-semibold text-foreground mb-6",children:"Our Mission"}),i.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"flex gap-4",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx(Qt,{className:"w-8 h-8 text-primary"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2",children:"Make Reading Feel Personal"}),i.jsx("p",{className:"text-sm",children:"Build stories around the interests, routines, and real-life moments kids already care about."})]})]}),i.jsxs("div",{className:"flex gap-4",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx(Xi,{className:"w-8 h-8 text-primary"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2",children:"Create Better Family Reading Moments"}),i.jsx("p",{className:"text-sm",children:"Help parents and caregivers turn bedtime, milestones, and everyday moments into stories kids ask for again."})]})]}),i.jsxs("div",{className:"flex gap-4",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx(qd,{className:"w-8 h-8 text-primary"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2",children:"Grow a Love of Reading"}),i.jsx("p",{className:"text-sm",children:"Match stories to a child's age and reading stage so they feel easier to enjoy and revisit."})]})]}),i.jsxs("div",{className:"flex gap-4",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx(xr,{className:"w-8 h-8 text-primary"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-2",children:"Turn Favorites into Keepsakes"}),i.jsx("p",{className:"text-sm",children:"Let families read instantly online, then print the stories worth holding onto."})]})]})]})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-3xl font-semibold text-foreground mb-6",children:"How It Works"}),i.jsx("p",{children:"Kibbi is designed to make personalized storytime simple:"}),i.jsxs("ul",{className:"list-disc pl-6 space-y-3 mt-4",children:[i.jsxs("li",{children:[i.jsx("strong",{children:"Start with your child:"})," Add their name, age, reading stage, and a few details they'll recognize."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Choose the moment or topic:"})," Create stories about bedtime, feelings, first-day nerves, favorite animals, big adventures, or everyday rout
7984ines."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Read tonight or print later:"})," Enjoy the story on any device, then turn the favorites into paperback or hardcover keepsakes when they matter most."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Keep it age-appropriate:"})," Stories are matched to your child's stage so they feel fun, understandable, and worth rereading."]})]})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-3xl font-semibold text-foreground mb-6",children:"Our Values"}),i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-xl text-foreground mb-2",children:"Safety First"}),i.jsx("p",{children:"We're committed to child safety and privacy. We comply with COPPA, GDPR-K, and other international standards to protect young users and their data."})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-xl text-foreground mb-2",children:"Transparency"}),i.jsx("p",{children:"We're clear about what you get, how stories are created, and when print is optional rather than required."})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-xl text-foreground mb-2",children:"Quality & Creativity"}),i.jsx("p",{children:"We care about stories that feel warm, personal, and worth reading aloud, not just fast output for its own sake."})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-xl text-foreground mb-2",children:"Accessibility"}),i.jsx("p",{children:"We believe great stories should be accessible to everyone. That's why we've designed Kibbi to be easy to use, affordable, and inclusive."})]})]})]}),i.jsxs("section",{children:[i.jsx("h2",{className:"font-crimson text-3xl font-semibold text-foreground mb-6",children:"Join Our Community"}),i.jsx("p",{children:"Kibbi is for parents, caregivers, and families who want reading to feel more personal. Whether you're making a bedtime favorite, a story for a big milestone, or a thoughtful gift, we're building Kibbi to support that moment well."}),i.jsxs("p",{className:"mt-4",children:["Have questions or feedback? We'd love to hear from you at ",i.jsx("a",{href:"mailto:[email protected]",className:"text-foreground underline hover:text-foreground/80 font-medium",children:"[email protected]"})]})]}),i.jsx("section",{className:"text-center py-8",children:i.jsx("p",{className:"text-2xl font-crimson text-foreground italic",children:'"The best stories feel like they were made for your child."'})})]})]}),i.jsx(br,{})]})]});function Lte(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,a])=>t.indexOf(+n)===-1).map(([n,a])=>a)}function dpe(e,t="|"){return e.map(r=>$Ee(r)).join(t)}function Ote(e,t){return typeof t=="bigint"?t.toString():t}class xct{constructor(t){this._getter=t,this._value=void 0}get value(){const t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}}function gse(e){return new xct(e)}function bct(e){return e==null}function yse(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Z0(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function LEe(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t!=null&&t.get?t.get.raw:t==null?void 0:t.value}function Nu(e){return LEe(e._zod.def)??e._zod.def.shape}function OEe(e,t,r){Object.defineProperty(e,t,{get(){const n=r();return Z0(this,t,n),n},enumerable:!0,configurable:!0})}function REe(e,t,r){t in e?Z0(e,t,r):e[t]=r}function M0(e,t,r,n){const a=Nu(t);for(const s of r){const o=Object.getOwnPropertyDescriptor(a,s);o.enumerable&&(o.get?OEe(e,s,()=>{const l=t._zod.def.shape[s];return n?n(l,s):l}):REe(e,s,n?n(o.value,s):o.value))}}function wct(e,t){for(const r of Reflect.ownKeys(t)){const n=Object.getOwnPropertyDescriptor(t,r);n.enumerable&&(n.get?OEe(e,r,()=>t[r]):REe(e,r,n.value))}}function Bs(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function kct(e){return JSON.stringify(e)}function _ct(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const DEe="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function wH(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Sct=gse(()=>{var e;if(yc.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Ok(e){if(wH(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(wH(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function FEe(e){return Ok(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const jct=new Set(["string","number","symbol"]);function aG(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kh(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(n._zod.parent=e),n}function Yt(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function $Ee(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ect(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}const Cct={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Nct={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Tct(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s={};return M0(s,e,iG(e,t)),kh(e,Bs(r,{shape:s,checks:[]}))}function iG(e,t){var a;const r=Nu(e),n=[];for(const s of Reflect.ownKeys(t)){if(!((a=Object.getOwnPropertyDescriptor(r,s))!=null&&a.enumerable))throw new Error(`Unrecognized key: "${String(s)}"`);t[s]&&n.push(s)}return n}function Act(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=new Set(iG(e,t)),o={};return M0(o,e,Reflect.ownKeys(Nu(e)).filter(l=>!s.has(l))),kh(e,Bs(r,{shape:o,checks:[]}))}function Mct(e,t){if(!Ok(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const a=Nu(e);for(const s of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(a,s)!==void 0)throw new Error("Cannot over
7984write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return kh(e,Bs(e._zod.def,{shape:BEe(e,t)}))}function BEe(e,t){const r={};return M0(r,e,Reflect.ownKeys(Nu(e))),wct(r,t),r}function Ict(e,t){if(!Ok(t))throw new Error("Invalid input to safeExtend: expected a plain object");return kh(e,Bs(e._zod.def,{shape:BEe(e,t)}))}function Pct(e,t){var a,s;if(!((a=t==null?void 0:t._zod)!=null&&a.def))throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if((s=e._zod.def.checks)!=null&&s.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r={};M0(r,e,Reflect.ownKeys(Nu(e))),M0(r,t,Reflect.ownKeys(Nu(t)));const n=Bs(e._zod.def,{shape:r,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return kh(e,n)}function hpe(e,t,r,n="partial"){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(`.${n}() cannot be used on object schemas containing refinements`);const l=r?new Set(iG(t,r)):void 0,c={};return M0(c,t,Reflect.ownKeys(Nu(t)),e&&((u,d)=>l&&!l.has(d)?u:new e({type:"optional",innerType:u}))),kh(t,Bs(t._zod.def,{shape:c,checks:[]}))}function Lct(e,t,r){const n=r?new Set(iG(t,r)):void 0,a={};return M0(a,t,Reflect.ownKeys(Nu(t)),(s,o)=>n&&!n.has(o)?s:new e({type:"nonoptional",innerType:s})),kh(t,Bs(t._zod.def,{shape:a}))}function iu(e,t=0){var r;if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(((r=e.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function Oct(e,t=0){var r;if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(((r=e.issues[n])==null?void 0:r.continue)===!1)return!0;return!1}function zEe(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Bx(e){return typeof e=="string"?e:e==null?void 0:e.message}function fpe(e,t,r){var n;for(let a=t;a<e.length;a++)(n=e[a]).schema??(n.schema=r)}function Pv(e,t,r){var c,u,d,h,f,p,y,m,v,g;var n;const a=(u=(c=e.inst)==null?void 0:c._zod)==null?void 0:u.traits;a!=null&&a.has("$ZodType")&&(a.has("$ZodCheck")?(n=e).schema??(n.schema=e.inst):e.schema=e.inst);const s=e.schema!==e.inst?(h=(d=e.schema)==null?void 0:d._zod.def)==null?void 0:h.error:void 0,o=e.message?e.message:Bx((y=(p=(f=e.inst)==null?void 0:f._zod.def)==null?void 0:p.error)==null?void 0:y.call(p,e))??Bx(s==null?void 0:s(e))??Bx((m=t==null?void 0:t.error)==null?void 0:m.call(t,e))??Bx((v=r.customError)==null?void 0:v.call(r,e))??Bx((g=r.localeError)==null?void 0:g.call(r,e))??"Invalid input",l={};for(const b of Object.keys(e))b==="inst"||b==="schema"||b==="continue"||b==="input"||b==="__proto__"||(l[b]=e[b]);return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=e.input),l}const Rct=/[\uD800-\uDBFF]/;function vse(e){const t=e.length;if(!Rct.test(e))return t;let r=t;for(let n=0;n<t-1;n++)(e.charCodeAt(n)&64512)===55296&&(e.charCodeAt(n+1)&64512)===56320&&(r--,n++);return r}function xse(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Dct(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Rk(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function Fct(e,t){for(const r in t){const n=Object.getOwnPropertyDescriptor(t,r);n.get?Object.defineProperty(e,r,{...n,enumerable:!1}):Bct(e,r,n.value)}}function lh(e,t,r,n=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:n,value:r}),r}function UEe(e,t,r){return lh(e,t,r,!1)}function $ct(e,t){for(const r in e){const n=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get(){return lh(this,r,n(this))},set(a){lh(this,r,a)}})}return t}function Bct(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:lh(this,t,r.bind(this))},set(n){lh(this,t,n)}})}function zct(e,t){const r=Object.getPrototypeOf(e);return t in r?void 0:r}let uX,od=!1;const Uct={configurable:!0,get(){od=!0}};function Kr(e,t,r){const n=Object.getPrototypeOf(e._zod);if(t in n&&uX!==e._zod){uX=void 0;return}uX=e._zod,Object.defineProperty(n,t,{configurable:!0,get(){Object.defineProperty(this,t,Uct);const a=od;od=!1;try{const s=r(this);return od?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:s}),od=od||a,s}catch(s){throw delete this[t],od=od||a,s}},set(a){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:a})}})}function qct(e,t,r,n){const a=zct(e,t);a&&Object.defineProperty(a,t,{configurable:!0,get(){const s={configurable:!0,writable:!0,enumerable:n,value:void 0};
7984return Object.defineProperty(this,t,s),s.value=r(this),Object.defineProperty(this,t,s),s.value},set(s){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:n,value:s})}})}const Hct="~constantCatch";function Vct(e){const t=()=>e;return t[Hct]=!0,t}var ppe;const dX={value:void 0,enumerable:!1};let mpe="captureStackTrace"in Error?Error:null;function Wct(e){const t=mpe;if(t){const r=t.stackTraceLimit;if(typeof r=="number"){try{t.stackTraceLimit=0}catch{return mpe=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function Ue(e,t,r,n){const a={};function s(f){this.def=f,this.constr=h,this.traits=new Set}s.prototype=a;const o=r,l=o&&new WeakSet;function c(f,p){if(f._zod){if(f._zod.traits.has(e))return}else{dX.value=new s(p);try{Object.defineProperty(f,"_zod",dX)}finally{dX.value=void 0}}if(f._zod.traits.add(e),t(f,p),l){const m=Object.getPrototypeOf(f),v=f._zod.constr.prototype;let g=m;for(;g&&g!==v;)g=Object.getPrototypeOf(g);const b=g??m;l.has(b)||(l.add(b),Fct(b,o))}const y=h.prototype;for(const m in y)Object.prototype.hasOwnProperty.call(y,m)&&(m in f||(f[m]=y[m].bind(f)))}const u=(n==null?void 0:n.Parent)??Object;class d extends u{}Object.defineProperty(d,"name",{value:e});function h(f){var v;const p=n!=null&&n.Parent?Wct(d):this;c(p,f);const y=p._zod.deferred;if(y){for(const g of y)g();p._zod.deferred=void 0}const m=(v=globalThis.__zod_globalConfig)==null?void 0:v.postProcessor;return m&&m(p),p}return Object.defineProperty(h,"init",{value:c}),Object.defineProperty(h,Symbol.hasInstance,{value:f=>{var p,y;return n!=null&&n.Parent&&f instanceof n.Parent?!0:(y=(p=f==null?void 0:f._zod)==null?void 0:p.traits)==null?void 0:y.has(e)}}),Object.defineProperty(h,"name",{value:e}),h}class u0 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class qEe extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(ppe=globalThis).__zod_globalConfig??(ppe.__zod_globalConfig={});const yc=globalThis.__zod_globalConfig;function _h(e){return e&&Object.assign(yc,e),yc}function Gct(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Ote,2)),e.message}function Kct(e){this._zod.message=e}const Yct={get:Gct,set:Kct,enumerable:!0,configurable:!0},hX={value:void 0,enumerable:!1},gpe=new WeakSet([Object.prototype,Error.prototype]),Xct=(e,t)=>{e.name="$ZodError",hX.value=t,Object.defineProperty(e,"issues",hX),hX.value=void 0,Object.defineProperty(e,"message",Yct);const r=Object.getPrototypeOf(e);gpe.has(r)||(gpe.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){const n=()=>this.message;return Object.defineProperty(this,"toString",{value:n,configurable:!0,writable:!0}),n},set(n){Object.defineProperty(this,"toString",{value:n,configurable:!0,writable:!0})}}))},Zct=Ue("$ZodError",Xct);function Qct(e,t,r){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:r(),writable:!0,enumerable:!0,configurable:!0}):e[t]=r()),e[t]}function Jct(e,t=r=>r.message){const r={},n=[];for(const a of e.issues)a.path.length>0?Qct(r,a.path[0],()=>[]).push(t(a)):n.push(t(a));return{formErrors:n,fieldErrors:r}}function eut(e,t=r=>r.message){const r={_errors:[]},n=(a,s=[])=>{for(const o of a.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(l=>n({issues:l},[...s,...o.path]));else if(o.code==="invalid_key")n({issues:o.issues},[...s,...o.path]);else if(o.code==="invalid_element")n({issues:o.issues},[...s,...o.path]);else{const l=[...s,...o.path];if(l.length===0)r._errors.push(t(o));else{let c=r,u=0;for(;u<l.length;){const d=l[u],h=u===l.length-1;if(d==="_errors"){h&&c._errors.push(t(o)),u++;continue}Object.prototype.hasOwnProperty.call(c,d)||Object.defineProperty(c,d,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const f=c[d];h&&f._errors.push(t(o)),c=f,u++}}}};return n(e),r}function sG(e,t){return{callee:(t==null?void 0:t.callee)??e,Err:t==null?void 0:t.Err}}const bse=e=>{const t=(r,n,a,s)=>{const o=a?{...a,async:!1}:{async:!1},l=r._zod.run({value:n,issues:[]},o);if(l instanceof Promise)throw new u0;if(l.issues.length){const c=new((s==null?void 0:s.Err)??e)(l.issues.map(u=>Pv(u,o,_h())));throw DEe(c,(s==null?void 0:s.callee)??t),c}return l.value};return t},wse=e=>{const t=async(r,n,a,s)=>{const o=a?{...a,async:!0}:{async:!0};let l=r._zod.run({value:n,issues:[]},o);if(l instanceof Promise&&(l=await l),l.issues.length){const c=new((s==null?void 0:s.Err)??e)(l.issues.map(u=>Pv(u,o,_h())));throw DEe(c,(s==null?void 0:s.callee)??t),c}return l.value};return t},kse=e=>(t,r,n)=>{const a=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new u0;return s.issues.length?HEe(e,s.issues,a):{success:!0,data:s.value}};function HEe(e,t,r){let n;return{success:!1,get error(){return n||(n=new e(t.map(a=>Pv(a,r,_h()))),t=void 0,r=void 0),n},set error(a){n=a,t=void 0,r=void 0}}}const _se=e=>async(t,r,n)=>{const a=n?{...n,async:!0}:{async:!0};let s=t._zod.run({value:r,issues:[]},a);return s instanceof Promise&&(s=await s),s.issues.length?HEe(e,s.issues,a):{success:!0,data:s.value}}
7984,tut=Symbol.for("zod.compile.invalid"),rut=Symbol.for("zod.compile.fallback"),nut=(e,t,r)=>{const n=e._zod.bag.validator;if(n!==void 0){if(n(t)!==tut)return!0;if(n.definite===!0&&r===void 0)return!1}return aut(e,t,r)};function aut(e,t,r){const n=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},a=e._zod.bag.fallbackRun;let s;if(a?(n[rut]=!0,s=a({value:t,issues:[]},n)):s=e._zod.run({value:t,issues:[]},n),s instanceof Promise)throw new u0;return s.issues.length===0}const iut=async(e,t,r)=>{const n=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let a=e._zod.run({value:t,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length===0},sut=e=>{const t=bse(e),r=(n,a,s,o)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return t(n,a,l,sG(r,o))};return r},out=e=>{const t=bse(e),r=(n,a,s,o)=>t(n,a,s,sG(r,o));return r},lut=e=>{const t=wse(e),r=async(n,a,s,o)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return await t(n,a,l,sG(r,o))};return r},cut=e=>{const t=wse(e),r=async(n,a,s,o)=>await t(n,a,s,sG(r,o));return r},uut=e=>(t,r,n)=>{const a=n?{...n,direction:"backward"}:{direction:"backward"};return kse(e)(t,r,a)},dut=e=>(t,r,n)=>kse(e)(t,r,n),hut=e=>async(t,r,n)=>{const a=n?{...n,direction:"backward"}:{direction:"backward"};return _se(e)(t,r,a)},fut=e=>async(t,r,n)=>_se(e)(t,r,n),put=/^[cC][0-9a-z]{6,}$/,mut=/^[0-9a-z]+$/,gut=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,yut=/^[0-9a-vA-V]{20}$/,vut=/^[A-Za-z0-9]{27}$/,xut=/^[a-zA-Z0-9_-]{21}$/;function but(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}const wut=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,kut=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ype=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_ut=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Sut="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function jut(){return new RegExp(Sut,"u")}const Eut=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Cut=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Nut=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Tut=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Aut=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Mut=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Iut=/^https?$/,Put=/^\+[1-9]\d{6,14}$/,VEe="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Lut(e){return new RegExp(`^${e}$`)}const Out=Lut(VEe);function Rte(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Rut(e){return new RegExp(`^${Rte(e)}$`)}function Dut(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${Rte({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,n=e.local?`${r}|${Rte({precision:e.precision})}`:r;return new RegExp(`^${VEe}T(?:${n})$`)}const Fut=/^[\s\S]{0,}$/,$ut=/^[^A-Z]*$/,But=/^[^a-z]*$/,Sc=Ue("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Sse=e=>{const t=e.value;return!bct(t)&&t.length!==void 0},zut=Ue("$ZodCheckMaxLength",(e,t)=>{var r;Sc.init(e,t),(r=e._zod.def).when??(r.when=Sse),e._zod.check=n=>{const a=n.value,s=a.length;
7984if((typeof a=="string"&&s>t.maximum?vse(a):s)<=t.maximum)return;const l=xse(a);n.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),Uut=Ue("$ZodCheckMinLength",(e,t)=>{var r;Sc.init(e,t),(r=e._zod.def).when??(r.when=Sse),e._zod.check=n=>{const a=n.value,s=a.length;if((typeof a=="string"&&s>=t.minimum&&s<t.minimum*2?vse(a):s)>=t.minimum)return;const l=xse(a);n.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),qut=Ue("$ZodCheckLengthEquals",(e,t)=>{var r;Sc.init(e,t),(r=e._zod.def).when??(r.when=Sse),e._zod.check=n=>{const a=n.value,s=a.length,o=typeof a=="string"&&s>=t.length&&s<=t.length*2?vse(a):s;if(o===t.length)return;const l=xse(a),c=o>t.length;n.issues.push({origin:l,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),oG=Ue("$ZodCheckStringFormat",(e,t)=>{var r,n;Sc.init(e,t),t.pattern?(r=e._zod).check??(r.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Hut=Ue("$ZodCheckRegex",(e,t)=>{oG.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Vut=Ue("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=$ut),oG.init(e,t)}),Wut=Ue("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=But),oG.init(e,t)}),Gut=Ue("$ZodCheckIncludes",(e,t)=>{Sc.init(e,t);const r=aG(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position},}${r}`:r);t.pattern=n,e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),Kut=Ue("$ZodCheckStartsWith",(e,t)=>{Sc.init(e,t);const r=new RegExp(`^${aG(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Yut=Ue("$ZodCheckEndsWith",(e,t)=>{Sc.init(e,t);const r=new RegExp(`.*${aG(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Xut=Ue("$ZodCheckOverwrite",(e,t)=>{Sc.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Zut{constructor(t=[],r={}){this.content=[],this.indent=0,this.args=t,this.closed=r}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(` 7985`).filter(o=>o),a=Math.min(...n.map(o=>o.length-o.trimStart().length)),s=n.map(o=>o.slice(a)).map(o=>" ".repeat(this.indent*2)+o);for(const o of s)this.content.push(o)}compile(){const t=Function,r=(this==null?void 0:this.content)??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) { 7986${r.join(` 7987`)} 7988};`)(...Object.values(this.closed))}}const Qut={major:4,minor:6,patch:5},Ua=Ue("$ZodType",(e,t)=>{var s;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Qut;const n=e._zod.def.checks,a=e._zod.traits.has("$ZodCheck")?[e,...n??[]]:n!=null&&n.length?[...n]:[];for(const o of a)for(const l of o._zod.onattach)l(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),(s=e._zod.deferred)==null||s.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,u,d)=>{if(c.memo)return c;let h=iu(c),f;for(const p of u){if(p._zod.def.when){if(Oct(c)||!p._zod.def.when(c))continue}else if(h)continue;const y=c.issues.length,m=p._zod.check(c);if(m instanceof Promise&&(d==null?void 0:d.async)===!1)throw new u0;if(f||m instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await m,c.issues.length!==y&&(fpe(c.issues,y,e),h||(h=iu(c,y)))});else{if(c.issues.length===y)continue;fpe(c.issues,y,e),h||(h=iu(c,y))}}return f?f.then(()=>c):c},l=(c,u,d)=>{if(iu(c))return c.aborted=!0,c;const h=o(u,a,d);if(h instanceof Promise){if(d.async===!1)throw new u0;return h.then(f=>e._zod.parse(f,d))}return e._zod.parse(h,d)};e._zod.run=(c,u)=>{if(u.skipChecks)return e._zod.parse(c,u);if(u.direction==="backward"){const h=e._zod.parse({value:c.value,issues:[]},{...u,skipChecks:!0});return h instanceof Promise?h.then(f=>l(f,c,u)):l(h,c,u)}const d=e._zod.parse(c,u);if(d instanceof Promise){if(u.async===!1)throw new u0;
7988return d.then(h=>o(h,a,u))}return o(d,a,u)}}},{get"~standard"(){return UEe(this,"~standard",GEe(this))},set"~standard"(e){lh(this,"~standard",e)}}),WEe=(e,t)=>e.issues.length?{issues:e.issues.map(r=>Pv(r,t,_h()))}:{value:e.value};async function Jut(e,t){const r={async:!0};return WEe(await e._zod.run({value:t,issues:[]},r),r)}function GEe(e){return{validate:t=>{const r={async:!1};try{const n=e._zod.run({value:t,issues:[]},r);if(!(n instanceof Promise))return WEe(n,r)}catch{}return Jut(e,t)},vendor:"zod",version:1}}const jse=Ue("$ZodString",(e,t)=>{Ua.init(e,t),e._zod.pattern=t.pattern??Fut,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Nn=Ue("$ZodStringFormat",(e,t)=>{oG.init(e,t),jse.init(e,t)}),edt=Ue("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=kut),Nn.init(e,t)}),tdt=Ue("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ype(n))}else t.pattern??(t.pattern=ype());Nn.init(e,t)}),rdt=Ue("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=_ut),Nn.init(e,t)}),KEe=1,kH=2;function YEe(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function ndt(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?YEe(e)||kH:adt(e,t)}function adt(e,t){var r;if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===Iut.source&&!/^https?:\/\//i.test(e))return KEe;try{if(typeof URL<"u"){const n=URL;if(typeof n.parse=="function")return n.parse(e)??kH}return new URL(e)}catch{return kH}}const idt=/[\t\n\r]/g;function vpe(e){return e.replace(idt,"")}function sdt(e,t){return t.lastIndex=0,t.test(e.hostname)}
7988function odt(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}const ldt=Ue("$ZodURL",(e,t)=>{Nn.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),a=ndt(n,t);if(a===KEe){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(a===kH){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(a===!0){r.value=vpe(n);return}t.hostname&&!sdt(a,t.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort}),t.protocol&&!odt(a,t.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort}),r.value=t.normalize?a.href:vpe(n);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),cdt=Ue("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jut()),Nn.init(e,t)}),udt=Ue("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?xut:but(t.length)),Nn.init(e,t)}),ddt=Ue("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=put),Nn.init(e,t)}),hdt=Ue("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=mut),Nn.init(e,t)}),fdt=Ue("$ZodULID",(e,t)=>{t.pattern??(t.pattern=gut),Nn.init(e,t)}),pdt=Ue("$ZodXID",(e,t)=>{t.pattern??(t.pattern=yut),Nn.init(e,t)}),mdt=Ue("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=vut),Nn.init(e,t)}),gdt=Ue("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Dut(t)),Nn.init(e,t)}),ydt=Ue("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Out),Nn.init(e,t)}),vdt=Ue("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Rut(t)),Nn.init(e,t)}),xdt=Ue("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=wut),Nn.init(e,t)}),bdt=Ue("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Eut),Nn.init(e,t)}),wdt=/^[0-9a-fA-F:.]+$/;function XEe(e){return wdt.test(e)?YEe(`http://[${e}]`):!1}const kdt=Ue("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Cut),Nn.init(e,t),e._zod.check=r=>{XEe(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}),_dt=Ue("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Nut),Nn.init(e,t)});function Sdt(e){const t=e.split("/");if(t.length!==2)return!1;const[r,n]=t;if(!n)return!1;const a=Number(n);return`${a}`!==n||a<0||a>128?!1:XEe(r)}const jdt=Ue("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Tut),Nn.init(e,t),e._zod.check=r=>{Sdt(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function ZEe(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const QEe=/^[0-9a-zA-Z+/]*={0,2}$/,Edt=Ue("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=QEe),Nn.init(e,t),e._zod.check=r=>{ZEe(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),Ese=/^[A-Za-z0-9_-]*$/;function Cdt(e){if(!Ese.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return ZEe(r)}const Ndt=Ue("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ese),Nn.init(e,t),e._zod.check=r=>{Cdt(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Tdt=Ue("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Put),Nn.init(e,t)});function Adt(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const a=JSON.parse(atob(n));return!("typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const Mdt=Ue("$ZodJWT",(e,t)=>{Nn.init(e,t),e._zod.check=r=>{Adt(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Idt=Ue("$ZodUnknown",(e,t)=>{Ua.init(e,t),e._zod.parse=r=>r}),Pdt=Ue("$ZodNever",(e,t)=>{Ua.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function xpe(e,t,r){e.issues.length&&t.issues.push(...zEe(r,e.issues)),t.value[r]=e.value}const Ldt=Ue("$ZodArray",(e,t)=>{Ua.init(e,t);const r=yc.memoizer;r==null||r.attach(e),e._zod.parse=(n,a)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=r?r.alloc(e,n,Array(s.length),a):Array(s.length);const o=[],l=a==null?void 0:a.abortEarly;for(let c=0;c<s.length;c++){const u=s[c],d=t.element._zod.run({value:u,issues:[]},a);if(d instanceof Promise)o.push(d.then(h=>xpe(h,n,c)));else if(xpe(d,n,c),l&&d.issues.length!==0&&iu(d))break}return o.length?Promise.all(o).then(()=>n):n}});function _H(e,t,r,n,a,s){const o=r in n,l=s==="optional";if(!(!o&&l&&a==="optional")){if(e.issues.length){if(a!==void 0&&l&&!o)return;t.issues.push(...zEe(r,e.issues))}if(!o&&a===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?(o||a==="defaulted"&&!l)&&(t.value[r]=void 0):t.value[r]=e.value}}const Odt=[];function JEe(e){var o,l,c,u;const t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),n=r.length?r:Odt,a=n.length?[...t,...n]:t;for(const d of a)if(!((u=(c=(l=(o=e.shape)==null?void 0:o[d])==null?void 0:l._zod)==null?void 0:c.traits)!=null&&u.has("$ZodType")))throw new Error(`Invalid element at key "${String(d)}": expected a Zod schema`);const s=Ect(e.shape);
7988return{...e,allKeys:a,symbolKeys:n,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(s)}}function eCe(e,t,r,n,a,s,o){const l=[],c=a.keySet,u=a.catchall._zod,d=u.def.type,h=u.optin,f=u.optout;let p=0;for(const y in t){if(o&&r.issues.length!==p){if(iu(r,p))break;p=r.issues.length}if(c.has(y))continue;if(y==="__proto__"){d==="never"&&l.push(y);continue}if(d==="never"){l.push(y);continue}const m=u.run({value:t[y],issues:[]},n);m instanceof Promise?e.push(m.then(v=>_H(v,r,y,t,h,f))):_H(m,r,y,t,h,f)}return l.length&&r.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:s,continue:!0}),e.length?Promise.all(e).then(()=>r):r}const Rdt=Ue("$ZodObject",(e,t)=>{Ua.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape"),n=r!=null&&r.get?r.get.raw:t.shape??{};if(n){const u=()=>{const d={...n};return Object.defineProperty(t,"shape",{value:d}),u.raw=d,d};u.raw=n,Object.defineProperty(t,"shape",{get:u})}const a=gse(()=>JEe(t));Kr(e,"propValues",u=>{const d=u.def.shape,h={};for(const f in d){const p=d[f]._zod;if(p.values){Object.prototype.hasOwnProperty.call(h,f)||Z0(h,f,new Set);for(const y of p.values)h[f].add(y);p.optin!==void 0&&h[f].add(void 0)}}return h});const s=wH,o=t.catchall;let l;const c=yc.memoizer;c==null||c.attach(e),e._zod.parse=(u,d)=>{l??(l=a.value);const h=u.value;if(!s(h))return u.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),u;u.value=c?c.alloc(e,u,{},d):{};const f=[],p=l.shape,y=d==null?void 0:d.abortEarly;let m=u.issues.length;for(const v of l.allKeys){if(y&&u.issues.length!==m){if(iu(u,m))break;m=u.issues.length}if(v==="__proto__")continue;const g=p[v],b=g._zod.optin,x=g._zod.optout,_=g._zod.run({value:h[v],issues:[]},d);_ instanceof Promise?f.push(_.then(w=>_H(w,u,v,h,b,x))):_H(_,u,v,h,b,x)}return o?eCe(f,h,u,d,a.value,e,y===!0):f.length?Promise.all(f).then(()=>u):u}}),Ddt=Ue("$ZodObjectJIT",(e,t)=>{Rdt.init(e,t);const r=e._zod.parse,n=gse(()=>JEe(t)),a=yc.memoizer,s=p=>{var w,j;const y=n.value,m=y.symbolKeys,v=new Zut(["payload","ctx"],{shape:p,inst:e,memo:a,syms:m}),g=E=>`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`,b=(E,C)=>` 7989 let ${E}_ab = false; 7990 for (let i = 0; i < ${E}.issues.length; i++) { 7991 const iss = ${E}.issues[i]; 7992 iss.path = iss.path ? [${C}, ...iss.path] : [${C}]; 7993 payload.issues.push(iss); 7994 if (iss.continue !== true) ${E}_ab = true; 7995 } 7996 if (${E}_ab && ctx && ctx.abortEarly) { 7997 payload.value = newResult; 7998 return payload; 7999 }`;v.write("const input = payload.value;");const x=Object.create(null);let _=0;for(const E of y.allKeys)x[E]=`key_${_++}`;v.write(a?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const E of y.allKeys){if(E==="__proto__")continue;const C=x[E],N=typeof E=="symbol"?`syms[${m.indexOf(E)}]`:kct(E),A=`${N} in input`,$=p[E],T=(w=$==null?void 0:$._zod)==null?void 0:w.optin,F=T!==void 0,M=((j=$==null?void 0:$._zod)==null?void 0:j.optout)==="optional";if(v.write(`const ${C} = ${g(N)};`),F&&M){const z=T==="optional"?`${C}_present`:`${C}.value !== undefined || ${C}_present`;v.write(` 8000 const ${C}_present = ${A}; 8001 if (!${C}.issues.length || ${C}_present) { 8002 if (${C}.issues.length) {${b(C,N)} 8003 } 8004 8005 if (${z}) { 8006 newResult[${N}] = ${C}.value; 8007 } 8008 } 8009 8010 `)}else F?(v.write(` 8011 if (${C}.issues.length) {${b(C,N)} 8012 } 8013 `),T==="defaulted"?v.write(`newResult[${N}] = ${C}.value;`):v.write(` 8014 if (${C}.value !== undefined || ${A}) { 8015 newResult[${N}] = ${C}.value; 8016 } 8017 `)):v.write(` 8018 const ${C}_present = ${A}; 8019 if (${C}.issues.length) {${b(C,N)} 8020 } 8021 if (!${C}_present && !${C}.issues.length) { 8022 payload.issues.push({ 8023 code: "invalid_type", 8024 expected: "nonoptional", 8025 input: undefined, 8026 path: [${N}] 8027 }); 8028 if (ctx && ctx.abortEarly) { 8029 payload.value = newResult; 8030 return payload; 8031 } 8032 } 8033 8034 if (${C}_present) { 8035 newResult[${N}] = ${C}.value; 8036 } 8037 8038 `)}return v.write("payload.value = newResult;"),v.write("return payload;"),v.compile()};let o;const l=wH,c=!yc.jitless,d=c&&Sct.value,h=t.catchall;let f;e._zod.parse=(p,y)=>{f??(f=n.value);const m=p.value;return l(m)?c&&d&&(y==null?void 0:y.async)===!1&&y.jitless!==!0?(o||(o=s(t.shape)),p=o(p,y),h?eCe([],m,p,y,f,e,(y==null?void 0:y.abortEarly)===!0):p):r(p,y):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),p)}});function bpe(e,t,r,n){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const a=e.filter(s=>!iu(s));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(o=>Pv(o,n,_h())))}),t)}const Fdt=Ue("$ZodUnion",(e,t)=>{Ua.init(e,t),Kr(e,"optin",n=>n.def.options.some(a=>a._zod.optin==="defaulted")?"defaulted":n.def.options.some(a=>a._zod.optin!==void 0)?"optional":void 0),Kr(e,"optout",n=>n.def.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Kr(e,"values",n=>{if(n.def.options.every(a=>a._zod.values))return new Set(n.def.options.flatMap(a=>Array.from(a._zod.values)))}),Kr(e,"pattern",n=>{if(n.def.options.every(a=>a._zod.pattern)){const a=n.def.options.map(s=>s._zod.pattern);return new RegExp(`^(${a.map(s=>yse(s.source)).join("|")})$`)}});const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(n,a)=>
8038{if(r)return r(n,a);let s=!1;const o=[];for(const l of t.options){const c=l._zod.run({value:n.value,issues:[]},a);if(c instanceof Promise)o.push(c),s=!0;else{if(c.issues.length===0)return c;o.push(c)}}return s?Promise.all(o).then(l=>bpe(l,n,e,a)):bpe(o,n,e,a)}}),$dt=Ue("$ZodIntersection",(e,t)=>{Ua.init(e,t),e._zod.parse=(r,n)=>{const a=r.value,s=t.left._zod.run({value:a,issues:[]},n),o=t.right._zod.run({value:a,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([c,u])=>wpe(r,c,u)):wpe(r,s,o)}});function Dte(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ok(e)&&Ok(t)){const r=Object.keys(t),n=Object.keys(e).filter(s=>r.indexOf(s)!==-1),a={...e,...t};Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__;for(const s of n){if(s==="__proto__")continue;const o=Dte(e[s],t[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};a[s]=o.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const a=e[n],s=t[n],o=Dte(a,s);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function wpe(e,t,r){const n=new Map;let a;const s=new Map,o=(u,d)=>{var f,p;let h;if(u.code==="unrecognized_keys"&&!((f=u.path)!=null&&f.length))a??(a=u),h=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&((p=u.path)==null?void 0:p.length)===1){const y=String(u.path[0]);s.has(y)||s.set(y,u),h=[y]}else return!1;for(const y of h)n.has(y)||n.set(y,{}),n.get(y)[d]=!0;return!0};for(const u of t.issues)o(u,"l")||e.issues.push(u);for(const u of r.issues)o(u,"r")||e.issues.push(u);const l=[...n].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(l.length){const u=a?l.filter(d=>a.keys.includes(d)):[];u.length&&e.issues.push({...a,keys:u});for(const d of l)!u.includes(d)&&s.has(d)&&e.issues.push(s.get(d))}const c=Dte(t.value,r.value);if(!c.valid){if(iu(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}const Bdt=Ue("$ZodEnum",(e,t)=>{Ua.init(e,t);const r=Lte(t.entries),n=new Set(r);e._zod.values=n,Kr(e,"pattern",a=>{const s=Lte(a.def.entries).filter(o=>jct.has(typeof o));return new RegExp(s.length?`^(${s.map(o=>aG(o.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(a,s)=>{const o=a.value;return n.has(o)||a.issues.push({code:"invalid_value",values:r,input:o,inst:e}),a}}),zdt=Ue("$ZodTransform",(e,t)=>{var r;Ua.init(e,t),e._zod.optin="optional",(r=yc.memoizer)==null||r.guard(e),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new qEe(e.constructor.name);const s=t.transform(n.value,n);if(a.async)return(s instanceof Promise?s:Promise.resolve(s)).then(l=>(n.value=l,n));if(s instanceof Promise)throw new u0;return n.value=s,n}});function kpe(e,t){return e.value=t.issues.length?void 0:t.value,e}const tCe=Ue("$ZodOptional",(e,t)=>{Ua.init(e,t),Kr(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Kr(e,"values",r=>{const n=r.def.innerType._zod.values;return n?new Set([...n,void 0]):void 0}),Kr(e,"pattern",r=>{const n=r.def.innerType._zod.pattern;return n?new RegExp(`^(${yse(n.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(r.value===void 0){if(t.innerType._zod.optin!=="defaulted")return r;const a=t.innerType._zod.run({value:r.value,issues:[]},n);return a instanceof Promise?a.then(s=>kpe(r,s)):kpe(r,a)}return t.innerType._zod.run(r,n)}}),Udt=Ue("$ZodExactOptional",(e,t)=>{tCe.init(e,t),Kr(e,"values",r=>r.def.innerType._zod.values),Kr(e,"pattern",r=>r.def.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),qdt=Ue("$ZodNullable",(e,t)=>{Ua.init(e,t),Kr(e,"optin",r=>r.def.innerType._zod.optin),Kr(e,"optout",r=>r.def.innerType._zod.optout),Kr(e,"pattern",r=>{const n=r.def.innerType._zod.pattern;return n?new RegExp(`^(${yse(n.source)}|null)$`):void 0}),Kr(e,"values",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),Hdt=Ue("$ZodDefault",(e,t)=>{Ua.init(e,t),e._zod.optin="defaulted",Kr(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(s=>_pe(s,t)):_pe(a,t)}});function _pe(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Vdt=Ue("$ZodPrefault",(e,t)=>{Ua.init(e,t),e._zod.optin="defaulted",Kr(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),Wdt=Ue("$ZodNonOptional",(e,t)=>{Ua.init(e,t),Kr(e,"values",r=>{const n=r.def.innerType._zod.values;return n?new Set([...n].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,n)=>{const a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(s=>Spe(s,e)):Spe(a,e)}});function Spe(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function jpe(e,t,r,n){return t.issues.length?(e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map(a=>Pv(a,n,_h()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}const Gdt=Ue("$ZodCatch",(e,t)=>{Ua.init(e,t),Kr(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Kr(e,"optout",r=>r.def.innerType._zod.optout),Kr(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const a=t.innerType._zod.run({value:r.value,issues:[]},n);return a instanceof Promise?a.then(s=>jpe(r,s,t,n)):jpe(r,a,t,n)}}),Kdt=Ue("$ZodPipe",(e,t)=>{Ua.init(e,t),Kr(e,"values",r=>r.def.in._zod.values),Kr(e,"optin",r=>r.def.in._zod.optin),Kr(e,"optout",r=>r.def.out._zod.optout),Kr(e,"propValues",r=>r.def.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const s=t.out._zod.run(r,n);return s instanceof Promise?s.then(o=>P3(o,t.in,n)):P3(s,t.in,n)}const a=t.in._zod.run(r,n);return a instanceof Promise?a.then(s=>P3(s,t.out,n)):P3(a,t.out,n)}});function P3(e,t,r){return e.issues.some(n=>n.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const Ydt=Ue("$ZodReadonly",(e,t)=>{Ua.init(e,t),Kr(e,"propValues",r=>r.def.innerType._zod.propValues),Kr(e,"values",r=>r.def.innerType._zod.values),Kr(e,"optin",r=>{var n,a;return(a=(n=r.def.innerType)==null?void 0:n._zod)==null?void 0:a.optin}),Kr(e,"optout",r=>{var n,a;return(a=(n=r.def.innerType)==null?void 0:n._zod)==null?void 0:a.optout}),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(Epe):Epe(a)}});function Epe(e){return e.memo||(e.value=Object.freeze(e.value)),e}const Xdt=Ue("$ZodCustom",(e,t)=>{Sc.init(e,t),Ua.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,a=t.fn(n);if(a instanceof Promise)return a.then(s=>Cpe(s,r,n,e));Cpe(a,r,n,e)}});function Cpe(e,t,r,n){if(!e){const a={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),t.issues.push(Rk(a))}}
8038class Zdt extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}const Fte="~memo",Npe=[];function rCe(e){return e!==null&&typeof e=="object"}function fX(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}const nCe=new WeakMap,jb=0,rq=1,Rw=2;function nq(e,t,r){const n=nCe.get(e);if(n!==void 0)return n?Rw:jb;if(t.has(e))return Rw;t.add(e);let a=jb;const s=d=>{if(a!==Rw&&(d!=null&&d._zod)){const h=nq(d,t);h>a&&(a=h)}},o=(d,h)=>{var p;let f=jb;for(const y of Reflect.ownKeys(d)){const m=Object.getOwnPropertyDescriptor(d,y);if(!m.enumerable)continue;const v=m.get?rq:(p=m.value)!=null&&p._zod?nq(m.value,t):jb;v>f&&(f=v)}return f},l=d=>{d>a&&(a=d)},c=e._zod.def;switch(c.type){case"object":{const d=LEe(c);l(d?o(d):rq),s(c.catchall);break}case"array":s(c.element);break;case"tuple":for(const d of c.items)s(d);s(c.rest);break;case"record":case"map":s(c.keyType),s(c.valueType);break;case"set":s(c.valueType);break;case"union":for(const d of c.options)s(d);break;case"intersection":s(c.left),s(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":s(c.innerType);break;case"pipe":s(c.in),s(c.out);break;case"function":s(c.input),s(c.output);break;case"lazy":{const d=c._cachedInner??void 0;l(d?nq(d,t):rq);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const d in c){const h=Object.getOwnPropertyDescriptor(c,d);if(!h||h.get)continue;const f=h.value;if(!(!f||typeof f!="object")){if(f._zod)s(f);else if(Array.isArray(f))for(const p of f)s(p)}}}return t.delete(e),Qdt(e,a)}function Qdt(e,t){return t!==rq&&nCe.set(e,t===Rw),t}function Jdt(e,t){let r=e.buckets.get(t);return r||(r=new WeakMap,e.buckets.set(t,r)),r}let L3;const O3=[],eht={alloc(e,t,r){const n=L3;if(!n)return r;L3=void 0;const a={value:r,issues:null};return n.set(t.value,a),O3.push(a),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const r=e._zod.parse,n=(a,s)=>{if(s.direction!=="backward"&&rht(s,a.value))throw new Zdt;return r(a,s)};e._zod.parse=n,e._zod.run===r&&(e._zod.run=n)})},attach(e){var t;let r,n=!1,a,s;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const o=e._zod.parse,l=(c,u)=>{if(r===void 0){const g=nq(e,new Set);if(g===jb)return e._zod.parse=o,e._zod.run===l&&(e._zod.run=o),o(c,u);g===Rw||n?r=!0:n=!0}const d=c.value;if(!rCe(d))return o(c,u);let h=u[Fte];h||(h={buckets:new WeakMap,backEdges:void 0},u[Fte]=h);let f;a===u?f=s:(f=Jdt(h,e),a=u,s=f);const p=f.get(d);if(p)return c.value=p.value,p.issues?p.issues.length&&c.issues.push(...fX(p.issues)):(c.memo=!0,h.backEdges??(h.backEdges=new WeakSet),h.backEdges.add(p.value)),c;L3=f;const y=O3.length,m=o(c,u);L3=void 0;const v=O3.length>y?O3.pop():void 0;return m instanceof Promise?m.then(g=>(v&&(v.issues=g.issues.length?fX(g.issues):Npe),g)):(v&&(v.issues=m.issues.length?fX(m.issues):Npe),m)};e._zod.parse=l,e._zod.run===o&&(e._zod.run=l)})}};function tht(){return eht}function rht(e,t){var n;const r=(n=e[Fte])==null?void 0:n.backEdges;return r!==void 0&&rCe(t)&&r.has(t)}const nht=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(s){return e[s]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};function a(s,o){return s==="number"&&typeof o=="number"&&!Number.isFinite(o)?String(o):n[s]??s}return s=>
8038{switch(s.code){case"invalid_type":{const o=a(s.expected),l=Dct(s.input),c=a(l,s.input);return`Invalid input: expected ${o}, received ${c}`}case"invalid_value":return s.values.length===1?`Invalid input: expected ${$Ee(s.values[0])}`:`Invalid option: expected one of ${dpe(s.values,"|")}`;case"too_big":{const o=s.exact?"exactly ":s.inclusive?"<=":"<",l=t(s.origin);return l?`Too big: expected ${s.origin??"value"} to have ${o}${s.maximum.toString()} ${l.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${o}${s.maximum.toString()}`}case"too_small":{const o=s.exact?"exactly ":s.inclusive?">=":">",l=t(s.origin);return l?`Too small: expected ${s.origin} to have ${o}${s.minimum.toString()} ${l.unit}`:`Too small: expected ${s.origin} to be ${o}${s.minimum.toString()}`}case"invalid_format":{const o=s;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${dpe(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Invalid discriminator value. Expected ${s.options.map(l=>`'${l}'`).join(" | ")}`:s.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function aht(){return{localeError:nht()}}var Tpe;class iht{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const a={...n,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function sht(){return new iht}(Tpe=globalThis).__zod_globalRegistry??(Tpe.__zod_globalRegistry=sht());const Eb=globalThis.__zod_globalRegistry;function oht(e){return e.checks&&(e.checks=[...e.checks]),e}function lht(e,t){return new e(oht({type:"string",...Yt(t)}))}function cht(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Yt(t)})}function uht(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Yt(t)})}function dht(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Yt(t)})}function hht(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Yt(t)})}function fht(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Yt(t)})}function pht(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Yt(t)})}function mht(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Yt(t)})}function ght(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Yt(t)})}function yht(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Yt(t)})}function vht(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Yt(t)})}function xht(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Yt(t)})}function bht(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Yt(t)})}function wht(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Yt(t)})}function kht(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Yt(t)})}function _ht(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Yt(t)})}function Sht(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Yt(t)})}function jht(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Yt(t)})}function Eht(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Yt(t)})}function Cht(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Yt(t)})}function Nht(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Yt(t)})}function Tht(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Yt(t)})}function Aht(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Yt(t)})}function Mht(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Yt(t)})}function Iht(e,t){return new e({type:"string",format:"date",check:"string_format",...Yt(t)})}function Pht(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Yt(t)})}function Lht(e,t){return new e({type:"string",format:"duration",check:"string_format",...Yt(t)})}function Oht(e){return new e({type:"unknown"})}function Rht(e,t){return new e({type:"never",...Yt(t)})}function aCe(e,t){return new zut({check:"max_length",...Yt(t),maximum:e})}function SH(e,t){return new Uut({check:"min_length",...Yt(t),minimum:e})}function iCe(e,t){return new qut({check:"length_equals",...Yt(t),length:e})}function Dht(e,t){return new Hut({check:"string_format",format:"regex",...Yt(t),pattern:e})}function Fht(e){return new Vut({check:"string_format",format:"lowercase",...Yt(e)})}function $ht(e){return new Wut({check:"string_format",format:"up
8038percase",...Yt(e)})}function Bht(e,t){return new Gut({check:"string_format",format:"includes",...Yt(t),includes:e})}function zht(e,t){return new Kut({check:"string_format",format:"starts_with",...Yt(t),prefix:e})}function Uht(e,t){return new Yut({check:"string_format",format:"ends_with",...Yt(t),suffix:e})}function Lv(e){return new Xut({check:"overwrite",tx:e})}function qht(e){return Lv(t=>t.normalize(e))}function Hht(){return Lv(e=>e.trim())}function Vht(){return Lv(e=>e.toLowerCase())}function Wht(){return Lv(e=>e.toUpperCase())}function Ght(){return Lv(e=>_ct(e))}function Kht(e,t,r){return new e({type:"array",element:t,...Yt(r)})}function Yht(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Yt(r)})}function Xht(e,t){const r=Zht(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(Rk(a,n.value,r._zod.def));else{const s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=r),s.continue??(s.continue=!r._zod.def.abort),n.issues.push(Rk(s))}},e(n.value,n)),t);return r}function Zht(e,t){const r=new Sc({check:"custom",...Yt(t)});return r._zod.check=e,r}function Dw(e,...t){for(const r of t)for(const n of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,n)&&Z0(e,n,r[n]);return e}function sCe(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Eb,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",intersections:[],deferred:[],external:(e==null?void 0:e.external)??void 0}}function t4(e,t,r,n,a){const s=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:n.path,message:a}):t.unrepresentable;if(s==="any")return!1;if(s===void 0||s==="throw")throw new Error(a);return Object.assign(r,s),!0}function pi(e,t,r={path:[],schemaPath:[]}){var d,h;var n;const a=e._zod.def,s=t.seen.get(e);if(s)return s.count++,r.schemaPath.includes(e)&&(s.cycle=r.path),s.schema;const o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const l=(h=(d=e._zod).toJSONSchema)==null?void 0:h.call(d);if(l)o.schema=l;else{const f={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,f);else{const y=o.schema,m=t.processors[a.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);m(e,t,y,f)}const p=e._zod.parent;p&&(o.ref||(o.ref=p),pi(p,t,f),t.seen.get(p).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Dw(o.schema,c),t.io==="input"&&$i(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&"_prefault"in o.schema&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Ape(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function oCe(e,t){var o,l,c,u;const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const n=new Map;for(const d of e.seen.entries()){const h=(o=e.metadataRegistry.get(d[0]))==null?void 0:o.id;if(h){const f=n.get(h);if(f&&f!==d[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(h,d[0])}}const a=d=>{var m;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=(m=e.external.registry.get(d[0]))==null?void 0:m.id,g=e.external.uri??(x=>x);if(v)return{ref:g(v)};const b=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=b,{defId:b,ref:`${g("__shared")}#/${h}/${Ape(b)}`}}const f="#",p=`${f}/${h}/`;if(d[1]===r&&!d[1].schema.id)return{ref:f};const y=d[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:p+Ape(y)}},s=d=>
8038{if(d[1].schema.$ref)return;const h=d[1],{ref:f,defId:p}=a(d);h.def={...h.schema},p&&(h.defId=p);const y=h.schema;for(const m in y)delete y[m];y.$ref=f};if(e.cycles==="throw")for(const d of e.seen.entries()){const h=d[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root> 8039 8040Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const d of e.seen.entries()){const h=d[1];if(t===d[0]){s(d);continue}if(e.external){const p=(c=e.external.registry.get(d[0]))==null?void 0:c.id;if(t!==d[0]&&p){s(d);continue}}if((u=e.metadataRegistry.get(d[0]))==null?void 0:u.id){s(d);continue}if(h.cycle){s(d);continue}h.count>1&&e.reused==="ref"&&s(d)}e.external&&(e.sharedDefsExtractedFor=e.external)}function lCe(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const r=[];for(const n of t){if(!n||typeof n!="object")return;lCe(n);const a=Object.keys(n);if(a.length!==1||a[0]!=="type")return;const s=n.type;for(const o of Array.isArray(s)?s:[s]){if(typeof o!="string")return;r.includes(o)||r.push(o)}}delete e.anyOf,e.type=r.length===1?r[0]:r}const cCe=new Set(["type","properties","required","additionalProperties"]),Mpe=["oneOf","anyOf"];function Ipe(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function $te(e){var s;const t=[];for(const o of e){if(typeof o!="object"||o.type!=="object")return null;for(const l in o)if(!cCe.has(l))return null;t.push(o)}const r={},n=new Set;for(const o of t){for(const l in o.properties){if(Object.prototype.hasOwnProperty.call(r,l))continue;const c=[];for(const d of t){const h=((s=d.properties)==null?void 0:s[l])??Ipe(d);h!=null&&(c.some(f=>JSON.stringify(f)===JSON.stringify(h))||c.push(h))}const u=c.length===1?c[0]:$te(c)??{allOf:c};Z0(r,l,u)}for(const l of o.required??[])n.add(l)}const a={type:"object",properties:r};if(n.size&&(a.required=[...n]),t.every(o=>o.additionalProperties===!1))a.additionalProperties=!1;else{const o=[];for(const l of t){const c=Ipe(l);c&&!o.some(u=>JSON.stringify(u)===JSON.stringify(c))&&o.push(c)}o.length===1?a.additionalProperties=o[0]:o.length>1&&(a.additionalProperties={allOf:o})}return a}function Qht(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const a of cCe)if(a in e)return;const r=t.filter(a=>Mpe.some(s=>Array.isArray(a[s])));let n=null;if(!r.length)n=$te(t);else{const a=r[0],s=Mpe.find(c=>Array.isArray(a[c]));if(Object.keys(a).length!==1)return;const o=t.filter(c=>c!==a),l=a[s].map(c=>$te([...o,c]));if(l.some(c=>!c))return;n={[s]:l}}n&&(delete e.allOf,Dw(e,n))}function uCe(e,t){var l,c,u,d;const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=h=>{const f=e.seen.get(h);if(f.ref===null)return;const p=f.def??f.schema,y={...p},m=f.ref;if(f.ref=null,m){n(m);const g=e.seen.get(m),b=g.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push(b)):Dw(p,b),Dw(p,y),h._zod.parent===m)for(const _ in p)_==="$ref"||_==="allOf"||_ in y||delete p[_];if(b.$ref&&g.def)for(const _ in p)_==="$ref"||_==="allOf"||_ in g.def&&JSON.stringify(p[_])===JSON.stringify(g.def[_])&&delete p[_]}const v=h._zod.parent;if(v&&v!==m){n(v);const g=e.seen.get(v);if(g!=null&&g.schema.$ref&&(p.$ref=g.schema.$ref,g.def))for(const b in p)b==="$ref"||b==="allOf"||b in g.def&&JSON.stringify(p[b])===JSON.stringify(g.def[b])&&delete p[b]}e.override({zodSchema:h,jsonSchema:p,path:f.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const h of[...e.seen.entries()].reverse())n(h[0]);if(e.target!=="openapi-3.0")for(const h of e.seen.entries())lCe(h[1].def??h[1].schema);for(const h of e.deferred)h();if(e.intersections.length){const h=new Map;for(const f of e.seen.values())for(const p of[f.schema,f.def]){const y=p==null?void 0:p.allOf;if(!Array.isArray(y))continue;const m=h.get(y);m?m.push(p):h.set(y,[p])}for(const f of e.intersections)for(const p of h.get(f)??[])Qht(p)}}const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$sc
8040hema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(c=e.external.registry.get(t))==null?void 0:c.id;if(!h)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(h)}Dw(a,r.defId?r.schema:r.def??r.schema);const s=(u=e.metadataRegistry.get(t))==null?void 0:u.id;s!==void 0&&a.id===s&&delete a.id;const o=((d=e.external)==null?void 0:d.defs)??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const h of e.seen.entries()){const f=h[1];f.def&&f.defId&&(f.def.id===f.defId&&delete f.def.id,Z0(o,f.defId,f.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?a.$defs=o:a.definitions=o);try{const h=JSON.parse(JSON.stringify(a));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:jH(t,"input",e.processors),output:jH(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function $i(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return $i(n.element,r);if(n.type==="set")return $i(n.valueType,r);if(n.type==="lazy")return $i(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault"||n.type==="catch")return $i(n.innerType,r);if(n.type==="intersection")return $i(n.left,r)||$i(n.right,r);if(n.type==="record"||n.type==="map")return $i(n.keyType,r)||$i(n.valueType,r);if(n.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:$i(n.in,r)||$i(n.out,r);if(n.type==="object"){for(const a in n.shape)if($i(n.shape[a],r))return!0;return!1}if(n.type==="union"){for(const a of n.options)if($i(a,r))return!0;return!1}if(n.type==="tuple"){for(const a of n.items)if($i(a,r))return!0;return!!(n.rest&&$i(n.rest,r))}return!1}const Jht=(e,t={})=>r=>{const n=sCe({...r,processors:t});return pi(e,n),oCe(n,e),uCe(n,e)},jH=(e,t,r={})=>n=>{const{libraryOptions:a,target:s}=n??{},o=sCe({...a??{},target:s,io:t,processors:r});return pi(e,o),oCe(o,e),uCe(o,e)},j2=(e,t,r)=>{(e[t]===void 0||r>e[t])&&(e[t]=r)},E2=(e,t,r)=>{(e[t]===void 0||r<e[t])&&(e[t]=r)},Ppe=(e,t)=>{j2(e,"minimum",t),E2(e,"maximum",t)},dCe=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},hCe=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},fCe=(e,t)=>{e.mime=e.mime?e.mime.filter(r=>t.includes(r)):[...t]},pCe=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},Lpe=(e,t)=>j2(e,"minimum",t.minimum),Ope=(e,t)=>E2(e,"maximum",t.maximum),Rpe=e=>(t,r)=>{pCe(t,r.format);const[n,a]=e[r.format];j2(t,"minimum",n),E2(t,"maximum",a)},pX={greater_than:(e,t)=>j2(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>E2(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>dCe(e,t.value),number_format:Rpe(Cct),bigint_format:Rpe(Nct),min_length:Lpe,max_length:Ope,length_equals:(e,t)=>Ppe(e,t.length),min_size:Lpe,max_size:Ope,size_equals:(e,t)=>Ppe(e,t.size),string_format:(e,t)=>{pCe(e,t.format),t.pattern&&hCe(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>fCe(e,t.mime)};function Fw(e){var s;const t={},r=e._zod.def,n=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(const o of n)(s=pX[o._zod.def.check])==null||s.call(pX,t,o._zod.def);const a=e._zod.bag;a.minimum!==void 0&&j2(t,"minimum",a.minimum),a.exclusiveMinimum!==void 0&&j2(t,"exclusiveMinimum",a.exclusiveMinimum),a.maximum!==void 0&&E2(t,"maximum",a.maximum),a.exclusiveMaximum!==void 0&&E2(t,"exclusiveMaximum",a.exclusiveMaximum),a.multipleOf!==void 0&&dCe(t,a.multipleOf),a.format!==void 0&&(t.format??(t.format=a.format),a.format.includes("int")&&(t.isInt=!0)),a.mime&&fCe(t,a.mime);for(const o of a.patterns??[])hCe(t,o);return t}const eft={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tft=new Map([[QEe,Aut],[Ese,Mut]]),rft=e=>tft.get(e)??e,nft=(e,t,r,n)=>{const a=r;a.type="string";const{minimum:s,maximum:o,format:l,patterns:c,contentEncoding:u,laxFormat:d}=Fw(e);if(typeof s=="number"&&(a.minLength=s),typeof o=="number"&&(a.maxLength=o),l&&(a.format=eft[l]??l,a.format===""&&delete a.format,(l==="time"||d)&&delete a.format),u&&(a.contentEncoding=u),c&&c.size>0){const h=[...c].map(rft);h.length===1?a.pattern=h[0].source:h.length>1&&(a.allOf=[...h.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},aft=(e,t,r,n)=>{r.not={}},ift=(e,t,r,n)=>{},sft=(e,t,r,n)=>
8040{const a=e._zod.def,s=Lte(a.entries);if(s.length===0){r.not={};return}s.every(o=>typeof o=="number")&&(r.type="number"),s.every(o=>typeof o=="string")&&(r.type="string"),r.enum=s},oft=(e,t,r,n)=>{t4(e,t,r,n,"Custom types cannot be represented in JSON Schema")},lft=(e,t,r,n)=>{t4(e,t,r,n,"Transforms cannot be represented in JSON Schema")},cft=(e,t,r,n)=>{const a=r,s=e._zod.def,{minimum:o,maximum:l}=Fw(e);typeof o=="number"&&(a.minItems=o),typeof l=="number"&&(a.maxItems=l),a.type="array",a.items=pi(s.element,t,{...n,path:[...n.path,"items"]})};function Bte(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Bte(t.out):t.type==="catch"?Bte(t.innerType):e._zod.optin}const uft=(e,t,r,n)=>{var u;const a=r,s=e._zod.def,o=s.shape;if(Object.getOwnPropertySymbols(o).length&&t4(e,t,a,n,"Symbol keys cannot be represented in JSON Schema"))return;a.type="object",a.properties={};for(const d in o)Z0(a.properties,d,pi(o[d],t,{...n,path:[...n.path,"properties",d]}));const c=[];for(const d of Object.keys(o)){const h=s.shape[d];(t.io==="input"?Bte(h)===void 0:h._zod.optout===void 0)&&c.push(d)}c.length>0&&(a.required=c),((u=s.catchall)==null?void 0:u._zod.def.type)==="never"?a.additionalProperties=!1:s.catchall?s.catchall&&(a.additionalProperties=pi(s.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},dft=(e,t,r,n)=>{const a=e._zod.def,s=a.inclusive===!1,o=a.options.map((l,c)=>pi(l,t,{...n,path:[...n.path,s?"oneOf":"anyOf",c]}));s?r.oneOf=o:r.anyOf=o},hft=(e,t,r,n)=>{const a=e._zod.def,s=pi(a.left,t,{...n,path:[...n.path,"allOf",0]}),o=pi(a.right,t,{...n,path:[...n.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,c=[...l(s)?s.allOf:[s],...l(o)?o.allOf:[o]];r.allOf=c,t.intersections.push(c)},fft=(e,t,r,n)=>{const a=e._zod.def,s=pi(a.innerType,t,n),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=a.innerType,r.nullable=!0):r.anyOf=[s,{type:"null"}]},pft=(e,t,r,n)=>{const a=e._zod.def;pi(a.innerType,t,n);const s=t.seen.get(e);s.ref=a.innerType},Cse=Symbol();function mCe(e,t,r,n,a){let s=!1;const o=JSON.stringify(e,(l,c)=>typeof c!="bigint"?c:(s=!0,null));return s?(t4(t,r,n,a,"BigInt defaults cannot be represented in JSON Schema"),Cse):JSON.parse(o)}const mft=(e,t,r,n)=>{const a=e._zod.def;pi(a.innerType,t,n);const s=t.seen.get(e);s.ref=a.innerType;const o=mCe(a.defaultValue,e,t,r,n);o!==Cse&&(r.default=o)},gft=(e,t,r,n)=>{const a=e._zod.def;pi(a.innerType,t,n);const s=t.seen.get(e);if(s.ref=a.innerType,t.io!=="input")return;const o=mCe(a.defaultValue,e,t,r,n);o!==Cse&&(r._prefault=o)},yft=(e,t,r,n)=>{const a=e._zod.def;pi(a.innerType,t,n);const s=t.seen.get(e);s.ref=a.innerType;let o;try{o=a.catchValue(void 0)}catch{t4(e,t,r,n,"Dynamic catch values are not supported in JSON Schema");return}r.default=o},vft=(e,t,r,n)=>{const a=e._zod.def,s=a.in._zod.traits.has("$ZodTransform"),o=t.io==="input"?s?a.out:a.in:a.out;pi(o,t,n);const l=t.seen.get(e);l.ref=o},xft=(e,t,r,n)=>{const a=e._zod.def;pi(a.innerType,t,n);const s=t.seen.get(e);s.ref=a.innerType,r.readOnly=!0},gCe=(e,t,r,n)=>{const a=e._zod.def;pi(a.innerType,t,n);const s=t.seen.get(e);s.ref=a.innerType},Dpe=new WeakSet([Object.prototype,Error.prototype]);function R3(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const n=r(this);return Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),n},set(n){Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0})}})}const yCe=(e,t)=>{Zct.init(e,t),e.name="ZodError";const r=Object.getPrototypeOf(e);Dpe.has(r)||(Dpe.add(r),R3(r,"format",n=>a=>eut(n,a)),R3(r,"flatten",n=>a=>Jct(n,a)),R3(r,"addIssue",n=>a=>{n.issues.push(a),n.message=JSON.stringify(n.issues,Ote,2)}),R3(r,"addIssues",n=>a=>{n.issues.push(...a),n.message=JSON.stringify(n.issues,Ote,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))}
vendor: 4,639 bytes, line 8040
8040,r4=Ue("ZodError",yCe),jo=Ue("ZodError",yCe,void 0,{Parent:Error}),bft=bse(jo),wft=wse(jo),kft=kse(jo),_ft=_se(jo),Sft=sut(jo),jft=out(jo),Eft=lut(jo),Cft=cut(jo),Nft=uut(jo),Tft=dut(jo),Aft=hut(jo),Mft=fut(jo);function Ift(){yc.localeError||_h(aht())}function Nse(){yc.memoizer||_h({memoizer:tht()})}const qa=Ue("ZodType",(e,t)=>(Ift(),Ua.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(Bs(t,{checks:[...t.checks??[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return kh(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Npt(e,t))},superRefine(e,t){return this.check(Tpt(e,t))},overwrite(e){return this.check(Lv(e))},optional(){return $pe(this)},exactOptional(){return mpt(this)},nullable(){return Bpe(this)},nullish(){return $pe(Bpe(this))},nonoptional(e){return wpt(this,e)},array(){return spt(this)},or(e){return cpt([this,e])},and(e){return dpt(this,e)},transform(e){return zpe(this,ppt(e))},default(e){return vpt(this,e)},prefault(e){return bpt(this,e)},catch(e){return _pt(this,e)},pipe(e){return zpe(this,e)},readonly(){return Ept(this)},describe(e){const t=this.clone();return Eb.add(t,{description:e}),t},meta(...e){if(e.length===0)return Eb.get(this);const t=this.clone();return Eb.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return UEe(this,"~standard",{...GEe(this),jsonSchema:{input:jH(this,"input"),output:jH(this,"output")}})},set"~standard"(e){lh(this,"~standard",e)},parse:function e(t,r){return bft(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await wft(this,t,r,{callee:e})},safeParse(e,t){return kft(this,e,t)},async safeParseAsync(e,t){return _ft(this,e,t)},get spa(){return this==null?void 0:this.safeParseAsync},set spa(e){lh(this,"spa",e)},validate(e,t){return nut(this,e,t)},validateAsync(e,t){return iut(this,e,t)},encode:function e(t,r){return Sft(this,t,r,{callee:e})},decode:function e(t,r){return jft(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await Eft(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await Cft(this,t,r,{callee:e})},safeEncode(e,t){return Nft(this,e,t)},safeDecode(e,t){return Tft(this,e,t)},async safeEncodeAsync(e,t){return Aft(this,e,t)},async safeDecodeAsync(e,t){return Mft(this,e,t)},toJSONSchema(e){return Jht(this,{})(e)},get description(){var e;return(e=Eb.get(this))==null?void 0:e.description},get _def(){return this._zod.def}}),vCe=Ue("_ZodString",(e,t)=>{jse.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>nft(e,r,n)},$ct({format:e=>Fw(e).format??null,minLength:e=>Fw(e).minimum??null,maxLength:e=>Fw(e).maximum??null},{regex(...e){return this.check(Dht(...e))},includes(...e){return this.check(Bht(...e))},startsWith(...e){return this.check(zht(...e))},endsWith(...e){return this.check(Uht(...e))},min(...e){return this.check(SH(...e))},max(...e){return this.check(aCe(...e))},length(...e){return this.check(iCe(...e))},nonempty(...e){return this.check(SH(1,...e))},lowercase(e){return this.check(Fht(e))},uppercase(e){return this.check($ht(e))},trim(){return this.check(Hht())},normalize(...e){return this.check(qht(...e))},toLowerCase(){return this.check(Vht())},toUpperCase(){return this.check(Wht())},slugify(){return this.check(Ght())}})),Pft=Ue("ZodString",(e,t)=>{jse.init(e,t),vCe.init(e,t)},{email(e){return this.check(cht(Fft,e))},url(e){return this.check(mht(Bft,e))},jwt(e){return this.check(Aht(tpt,e))},emoji(e){return this.check(ght(zft,e))},guid(e){return this.check(uht($ft,e))},uuid(e){return this.check(dht(D3,e))},uuidv4(e){return this.check(hht(D3,e))},uuidv6(e){return this.check(fht(D3,e))},uuidv7(e){return this.check(pht(D3,e))},nanoid(e){return this.check(yht(Uft,e))},cuid(e){return this.check(vht(qft,e))},cuid2(e){return this.check(xht(Hft,e))},ulid(e){return this.check(bht(Vft,e))},base64(e){return this.check(Cht(Qft,e))},base64url(e){return this.check(Nht(Jft,e))},xid(e){return this.check(wht(Wft,e))},ksuid(e){return this.check(kht(Gft,e))},ipv4(e){return this.check(_ht(Kft,e))},ipv6(e){return this.check(Sht(Yft,e))},cidrv4(e){return this.check(jht(Xft,e))},cidrv6(e){return this.check(Eht(Zft,e))},e164(e){return this.check(Tht(ept,e))},datetime(e){return this.check(Mht(Lft,e))},date(e){return this.check(Iht(Oft,e))},time(e){return this.check(Pht(Rft,e))},duration(e){return this.check(Lht(Dft,e))}});function Un(e){return lht(Pft,e)}
8040const On=Ue("ZodStringFormat",(e,t)=>{Nn.init(e,t),vCe.init(e,t)}),Lft=Ue("ZodISODateTime",(e,t)=>{gdt.init(e,t),On.init(e,t)}),Oft=Ue("ZodISODate",(e,t)=>{ydt.init(e,t),On.init(e,t)}),Rft=Ue("ZodISOTime",(e,t)=>{vdt.init(e,t),On.init(e,t)}),Dft=Ue("ZodISODuration",(e,t)=>{xdt.init(e,t),On.init(e,t)}),Fft=Ue("ZodEmail",(e,t)=>{rdt.init(e,t),On.init(e,t)}),$ft=Ue("ZodGUID",(e,t)=>{edt.init(e,t),On.init(e,t)}),D3=Ue("ZodUUID",(e,t)=>{tdt.init(e,t),On.init(e,t)}),Bft=Ue("ZodURL",(e,t)=>{ldt.init(e,t),On.init(e,t)}),zft=Ue("ZodEmoji",(e,t)=>{cdt.init(e,t),On.init(e,t)}),Uft=Ue("ZodNanoID",(e,t)=>{udt.init(e,t),On.init(e,t)}),qft=Ue("ZodCUID",(e,t)=>{ddt.init(e,t),On.init(e,t)}),Hft=Ue("ZodCUID2",(e,t)=>{hdt.init(e,t),On.init(e,t)}),Vft=Ue("ZodULID",(e,t)=>{fdt.init(e,t),On.init(e,t)}),Wft=Ue("ZodXID",(e,t)=>{pdt.init(e,t),On.init(e,t)}),Gft=Ue("ZodKSUID",(e,t)=>{mdt.init(e,t),On.init(e,t)}),Kft=Ue("ZodIPv4",(e,t)=>{bdt.init(e,t),On.init(e,t)}),Yft=Ue("ZodIPv6",(e,t)=>{kdt.init(e,t),On.init(e,t)}),Xft=Ue("ZodCIDRv4",(e,t)=>{_dt.init(e,t),On.init(e,t)}),Zft=Ue("ZodCIDRv6",(e,t)=>{jdt.init(e,t),On.init(e,t)}),Qft=Ue("ZodBase64",(e,t)=>{Edt.init(e,t),On.init(e,t)}),Jft=Ue("ZodBase64URL",(e,t)=>{Ndt.init(e,t),On.init(e,t)}),ept=Ue("ZodE164",(e,t)=>{Tdt.init(e,t),On.init(e,t)}),tpt=Ue("ZodJWT",(e,t)=>{Mdt.init(e,t),On.init(e,t)}),rpt=Ue("ZodUnknown",(e,t)=>{Idt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>ift()});function Fpe(){return Oht(rpt)}const npt=Ue("ZodNever",(e,t)=>{Pdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>aft(e,r,n)});function apt(e){return Rht(npt,e)}const ipt=Ue("ZodArray",(e,t)=>{Nse(),Ldt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>cft(e,r,n,a),e.element=t.element},{min(e,t){return this.check(SH(e,t))},nonempty(e){return this.check(SH(1,e))},max(e,t){return this.check(aCe(e,t))},length(e,t){return this.check(iCe(e,t))},unwrap(){return this.element}});function spt(e,t){return Kht(ipt,e,t)}const opt=Ue("ZodObject",(e,t)=>{Nse(),Ddt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>uft(e,r,n,a),qct(e,"shape",r=>r._zod.def.shape,!1)},{keyof(){return hpt(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Bs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Bs(this._zod.def,{catchall:Fpe()}))},loose(){return this.clone(Bs(this._zod.def,{catchall:Fpe()}))},strict(){return this.clone(Bs(this._zod.def,{catchall:apt()}))},strip(){return this.clone(Bs(this._zod.def,{catchall:void 0}))},extend(e){return Mct(this,e)},safeExtend(e){return Ict(this,e)},merge(e){return Pct(this,e)},pick(e){return Tct(this,e)},omit(e){return Act(this,e)},partial(...e){return hpe(xCe,this,e[0])},exactPartial(...e){return hpe(bCe,this,e[0],"exactPartial")},required(...e){return Lct(wCe,this,e[0])}});function n4(e,t){const r={type:"object",shape:e??{},...Yt(t)};return new opt(r)}const lpt=Ue("ZodUnion",(e,t)=>{Fdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>dft(e,r,n,a),e.options=t.options});function cpt(e,t){return new lpt({type:"union",options:e,...Yt(t)})}const upt=Ue("ZodIntersection",(e,t)=>{$dt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>hft(e,r,n,a)});function dpt(e,t){return new upt({type:"intersection",left:e,right:t})}const zte=Ue("ZodEnum",(e,t)=>{Bdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(n,a,s)=>sft(e,n,a),e.enum=t.entries,e.options=[...e._zod.values];const r=new Set(Object.keys(t.entries));e.extract=(n,a)=>{const s={};for(const o of n)if(r.has(o))s[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new zte({...t,checks:[],...Yt(a),entries:s})},e.exclude=(n,a)=>{const s={...t.entries};for(const o of n)if(r.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new zte({...t,checks:[],...Yt(a),entries:s})}});function hpt(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new zte({type:"enum",entries:r,...Yt(t)})}const fpt=Ue("ZodTransform",(e,t)=>{Nse(),zdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>lft(e,r,n,a),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new qEe(e.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(Rk(s,r.value,t));else{const o=s;
8040o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=r.value),o.inst??(o.inst=e),r.issues.push(Rk(o))}};const a=t.transform(r.value,r);return a instanceof Promise?a.then(s=>(r.value=s,r)):(r.value=a,r)}});function ppt(e){return new fpt({type:"transform",transform:e})}const xCe=Ue("ZodOptional",(e,t)=>{tCe.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>gCe(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function $pe(e){return new xCe({type:"optional",innerType:e})}const bCe=Ue("ZodExactOptional",(e,t)=>{Udt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>gCe(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function mpt(e){return new bCe({type:"optional",innerType:e})}const gpt=Ue("ZodNullable",(e,t)=>{qdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>fft(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function Bpe(e){return new gpt({type:"nullable",innerType:e})}const ypt=Ue("ZodDefault",(e,t)=>{Hdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>mft(e,r,n,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vpt(e,t){return new ypt({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():FEe(t)}})}const xpt=Ue("ZodPrefault",(e,t)=>{Vdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>gft(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function bpt(e,t){return new xpt({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():FEe(t)}})}const wCe=Ue("ZodNonOptional",(e,t)=>{Wdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>pft(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function wpt(e,t){return new wCe({type:"nonoptional",innerType:e,...Yt(t)})}const kpt=Ue("ZodCatch",(e,t)=>{Gdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>yft(e,r,n,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _pt(e,t){return new kpt({type:"catch",innerType:e,catchValue:typeof t=="function"?t:Vct(t)})}const Spt=Ue("ZodPipe",(e,t)=>{Kdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>vft(e,r,n,a),e.in=t.in,e.out=t.out});function zpe(e,t){return new Spt({type:"pipe",in:e,out:t})}const jpt=Ue("ZodReadonly",(e,t)=>{Ydt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>xft(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function Ept(e){return new jpt({type:"readonly",innerType:e})}const Cpt=Ue("ZodCustom",(e,t)=>{Xdt.init(e,t),qa.init(e,t),e._zod.processJSONSchema=(r,n,a)=>oft(e,r,n,a)});function Npt(e,t={}){return Yht(Cpt,e,t)}function Tpt(e,t){return Xht(e,t)}const Kh={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"},Apt=n4({name:Un().trim().min(1,{message:"Name is required"}).max(100,{message:"Name must be less than 100 characters"}),email:Un().trim().email({message:"Invalid email address"}).max(255,{message:"Email must be less than 255 characters"}),subject:Un().trim().min(1,{message:"Subject is required"}).max(200,{message:"Subject must be less than 200 characters"}),message:Un().trim().min(10,{message:"Message must be at least 10 characters"}).max(2e3,{message:"Message must be less than 2000 characters"})}),Mpt={"@context":"https://schema.org","@type":"ContactPage",name:"Contact Kibbi Support",url:"https://kibbi.ai/contact",description:"Get in touch with the Kibbi team for questions about our AI-powered story generation platform.",mainEntity:{"@type":"Organization",name:"Kibbi",url:"https://kibbi.ai",logo:"https://kibbi.ai/favicon.png",contactPoint:{"@type":"ContactPoint",email:"[email protected]",contactType:"customer support",availableLanguage:"English"}}},Ipt=()=>{const{toast:e}=Xt(),[t,r]=k.useState({name:"",email:"",subject:"",message:""}),[n,a]=k.useState({}),[s,o]=k.useState(!1),l=u=>{const{name:d,value:h}=u.target;r(f=>({...f,[d]:h})),n[d]&&a(f=>({...f,[d]:void 0}))},c=async u=>{u.preventDefault(),o(!0),a({});try{const d=Apt.parse(t),h=`mailto:[email protected]?subject=${encodeURIComponent(d.subject)}&body=${encodeURIComponent(`Name: ${d.name} 8041Email: ${d.email} 8042 8043Message: 8044${d.message}`)}`;window.location.href=h,e({title:"Opening email client",description:"Your default email application should open with your message."}),setTimeout(()=>{r({name:"",email:"",subject:"",message:""})},1e3)}catch(d){if(d instanceof r4){const h={};
8044d.issues.forEach(f=>{f.path[0]&&(h[f.path[0]]=f.message)}),a(h),e({title:"Validation Error",description:"Please check the form for errors.",variant:"destructive"})}}finally{o(!1)}};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Contact Kibbi Support - Questions About AI Story Generation | Kibbi.ai"}),i.jsx("meta",{name:"description",content:"Get in touch with the Kibbi team. We're here to help with questions about our AI-powered story generation platform."}),i.jsx("meta",{name:"robots",content:"index, follow"}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/contact"}),i.jsx("meta",{property:"og:title",content:"Contact Kibbi Support - Questions About AI Story Generation | Kibbi.ai"}),i.jsx("meta",{property:"og:description",content:"Get in touch with the Kibbi team. We're here to help with questions about our AI-powered story generation platform."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/contact"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi.ai"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:"Contact Kibbi Support - Questions About AI Story Generation | Kibbi.ai"}),i.jsx("meta",{name:"twitter:description",content:"Get in touch with the Kibbi team. We're here to help with questions about our AI-powered story generation platform."}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(Mpt)})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:[i.jsxs("div",{className:"text-center mb-12",children:[i.jsx("h1",{className:"font-crimson text-4xl md:text-5xl font-bold mb-4",children:"Get in Touch"}),i.jsx("p",{className:"text-lg text-foreground/80",children:"Have questions or feedback? We'd love to hear from you."})]}),i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 mb-12",children:[i.jsxs("div",{className:"space-y-8",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"font-crimson text-2xl font-semibold text-foreground mb-6",children:"Contact Information"}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx(Vd,{className:"w-6 h-6 text-primary mt-1 flex-shrink-0"}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Email"}),i.jsx("a",{href:"mailto:[email protected]",className:"text-foreground underline hover:text-foreground/80 font-medium",children:"[email protected]"})]})]}),i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx(Fa,{className:"w-6 h-6 text-primary mt-1 flex-shrink-0"}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Response Time"}),i.jsx("p",{className:"text-foreground/70",children:"We typically respond within 24-48 hours"})]})]})]})]}),i.jsxs("div",{className:"bg-muted/30 rounded-lg p-6",children:[i.jsx("h3",{className:"font-semibold text-lg text-foreground mb-3",children:"Quick Links"}),i.jsxs("ul",{className:"space-y-2 text-foreground/80",children:[i.jsx("li",{children:i.jsx("a",{href:"/pricing",className:"hover:text-primary transition-colors",children:"View Pricing Plans"})}),i.jsx("li",{children:i.jsx("a",{href:"/privacy-policy",className:"hover:text-primary transition-colors",children:"Privacy Policy"})}),i.jsx("li",{children:i.jsx("a",{href:"/terms-of-service",className:"hover:text-primary transition-colors",children:"Terms of Service"})}),i.jsx("li",{children:i.jsx("a",{href:"/about",className:"hover:text-primary transition-colors",children:"About Us"})})]})]})]}),i.jsx("div",{children:i.jsxs("form",{onSubmit:c,className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"name",children:"Name *"}),i.jsx(Pt,{id:"name",name:"name",type:"text",value:t.name,onChange:l,placeholder:"Your name",maxLength:100,className:n.name?"border-destructive":""}),n.name&&i.jsx("p",{className:"text-sm text-destructive mt-1",children:n.name})]}),i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"email",children:"Email *"}),i.jsx(Pt,{id:"email",name:"email",type:"email",value:t.email,onChange:l,placeholder:"[email protected]",maxLength:255,className:n.email?"border-destructive":""}),n.email&&i.jsx("p",{className:"text-sm text-destructive mt-1",children:n.email})]}),i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"subject",children:"Subject *"}),i.jsx(Pt,{id:"subject",name:"subject",type:"text",value:t.subject,onChange:l,placeholder:"What's this about?",maxLength:200,className:n.subject?"border-destructive":""}),n.subject&&i.jsx("p",{className:"text-sm text-destructive mt-1",children:n.subject})]}),i.jsxs("div",{children:[i.jsx(Nt,{htmlFor:"message",children:"Message *"}),i.jsx(Dr,{id:"message",name:"message",value:t.message,onChange:l,placeholder:"Tell us how we
8044can help...",rows:6,maxLength:2e3,className:n.message?"border-destructive":""}),i.jsxs("div",{className:"flex justify-between items-center mt-1",children:[n.message&&i.jsx("p",{className:"text-sm text-destructive",children:n.message}),i.jsxs("p",{className:"text-xs text-muted-foreground ml-auto",children:[t.message.length,"/2000"]})]})]}),i.jsx(le,{type:"submit",className:"w-full",disabled:s,children:s?"Sending...":i.jsxs(i.Fragment,{children:[i.jsx(Gd,{className:"w-4 h-4 mr-2"}),"Send Message"]})})]})})]})]}),i.jsx(br,{})]})]})},kCe="/assets/gmail-icon-CMMm2U_j.png",Ppt=n4({email:Un().trim().email("Invalid email address"),password:Un().min(6,"Password must be at least 6 characters")}),Lpt=()=>{const e=wt(),[t]=ka(),{signIn:r,signInWithGoogle:n,user:a,loading:s}=er(),{toast:o}=Xt(),[l,c]=k.useState(""),[u,d]=k.useState(""),[h,f]=k.useState(!1),[p,y]=k.useState(!1);k.useEffect(()=>{if(!s&&a){const g=t.get("redirect");e(g||"/library")}},[a,s,e,t]);const m=async g=>{g.preventDefault();try{const b=Ppt.parse({email:l,password:u});f(!0);const{error:x}=await r(b.email,b.password);if(x)o({title:"Login failed",description:x.message||"Invalid email or password",variant:"destructive"});else{const _=t.get("redirect");e(_||"/library")}}catch(b){b instanceof r4&&o({title:"Validation error",description:b.issues[0].message,variant:"destructive"})}finally{f(!1)}},v=async()=>{y(!0);try{const{error:g}=await n();g&&o({title:"Google sign in failed",description:g.message||"An error occurred during Google sign in",variant:"destructive"})}catch{o({title:"Error",description:"Failed to initiate Google sign in",variant:"destructive"})}finally{y(!1)}};return s?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx("div",{className:"text-foreground",children:"Loading..."})}):i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Log In | Kibbi"}),i.jsx("meta",{name:"robots",content:"noindex, follow"})]}),i.jsx("header",{className:"border-b border-border px-6 py-4 flex items-center",children:i.jsx("a",{href:"/",className:"flex items-center gap-2",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-8"})})}),i.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-12",children:i.jsxs("div",{className:"max-w-md w-full space-y-8",children:[i.jsxs("div",{className:"text-center",children:[i.jsx("h1",{className:"text-3xl font-semibold text-foreground mb-2",children:"Welcome back"}),i.jsx("p",{className:"text-base text-muted-foreground",children:"Log in to continue creating stories"})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs(le,{type:"button",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",size:"lg",onClick:v,disabled:h||p,children:[i.jsx("img",{src:kCe,alt:"Gmail",className:"mr-2 h-5 w-5"}),p?"Connecting...":"Continue with Google"]}),i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute inset-0 flex items-center",children:i.jsx("span",{className:"w-full border-t"})}),i.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:i.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"or"})})]})]}),i.jsxs("form",{onSubmit:m,className:"space-y-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"email",children:"Email"}),i.jsx(Pt,{id:"email",type:"email",value:l,onChange:g=>c(g.target.value),placeholder:"[email protected]",required:!0})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(Nt,{htmlFor:"password",children:"Password"}),i.jsx(or,{to:"/forgot-password",className:"text-sm text-muted-foreground hover:text-foreground underline",children:"Forgot password?"})]}),i.jsx(Pt,{id:"password",type:"password",value:u,onChange:g=>d(g.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",required:!0})]}),i.jsx(le,{type:"submit",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground rounded-full",size:"lg",disabled:h||p,children:h?"Logging in...":"Log in"})]}),i.jsxs("p",{className:"text-center text-sm text-muted-foreground",children:["Don't have an account?"," ",i.jsx(or,{to:"/signup",className:"text-foreground underline hover:text-foreground
8044/80 font-medium",children:"Sign up"})]})]})})]})},Opt=Un().trim().email("Please enter a valid email address"),Rpt=()=>{const{toast:e}=Xt(),[t,r]=k.useState(""),[n,a]=k.useState(!1),[s,o]=k.useState(!1),l=async c=>{c.preventDefault();try{const u=Opt.parse(t);a(!0);const{error:d}=await oe.auth.resetPasswordForEmail(u,{redirectTo:`${window.location.origin}/reset-password`});d?e({title:"Error",description:d.message||"Failed to send reset email",variant:"destructive"}):(o(!0),e({title:"Email sent",description:"Check your inbox for a password reset link"}))}catch(u){u instanceof r4&&e({title:"Validation error",description:u.issues[0].message,variant:"destructive"})}finally{a(!1)}};return i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx("header",{className:"border-b border-border px-6 py-4 flex items-center",children:i.jsx("a",{href:"/",className:"flex items-center gap-2",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-8"})})}),i.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-12",children:i.jsx("div",{className:"max-w-md w-full space-y-8",children:s?i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx("div",{className:"mx-auto w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center",children:i.jsx(Vd,{className:"w-8 h-8 text-primary"})}),i.jsx("h1",{className:"text-3xl font-semibold text-foreground",children:"Check your email"}),i.jsxs("p",{className:"text-base text-muted-foreground",children:["We've sent a password reset link to ",i.jsx("strong",{children:t})]}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Didn't receive the email? Check your spam folder or"," ",i.jsx("button",{onClick:()=>o(!1),className:"text-foreground underline hover:text-foreground/80",children:"try again"})]}),i.jsxs(or,{to:"/login",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground",children:[i.jsx(ea,{className:"w-4 h-4"}),"Back to login"]})]}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"text-center",children:[i.jsx("h1",{className:"text-3xl font-semibold text-foreground mb-2",children:"Forgot your password?"}),i.jsx("p",{className:"text-base text-muted-foreground",children:"Enter your email and we'll send you a reset link"})]}),i.jsxs("form",{onSubmit:l,className:"space-y-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"email",children:"Email"}),i.jsx(Pt,{id:"email",type:"email",value:t,onChange:c=>r(c.target.value),placeholder:"[email protected]",required:!0,autoFocus:!0})]}),i.jsx(le,{type:"submit",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground rounded-full",size:"lg",disabled:n,children:n?"Sending...":"Send reset link"})]}),i.jsx("p",{className:"text-center text-sm text-muted-foreground",children:i.jsxs(or,{to:"/login",className:"inline-flex items-center gap-2 text-foreground underline hover:text-foreground/80",children:[i.jsx(ea,{className:"w-4 h-4"}),"Back to login"]})})]})})})]})},_Ce=({password:e})=>{const t=[{label:"At least 8 characters",test:r=>r.length>=8},{label:"Contains a number",test:r=>/[0-9]/.test(r)},{label:"Contains an uppercase letter",test:r=>/[A-Z]/.test(r)},{label:"Contains a lowercase letter",test:r=>/[a-z]/.test(r)}];return i.jsxs("div",{className:"mt-2 space-y-2",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Password must have:"}),i.jsx("ul",{className:"space-y-1",children:t.map((r,n)=>{const a=e?r.test(e):!1;return i.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[a?i.jsx(Si,{className:"h-4 w-4 text-green-600"}):i.jsx(e0,{className:"h-4 w-4 text-muted-foreground"}),i.jsx("span",{className:a?"text-foreground":"text-muted-foreground",children:r.label})]},n)})})]})},Dpt=n4({password:Un().min(8,"Password must be at least 8 characters"),confirmPassword:Un()}).refine(e=>e.password===e.confirmPassword,{message:"Passwords don't match",path:["confirmPassword"]}),Fpt=()=>{const e=wt(),{toast:t}=Xt(),[r,n]=k.useState(""),[a,s]=k.useState(""),[o,l]=k.useState(!1),[c,u]=k.useState(!1),[d,h]=k.useState(null);k.useEffect(()=>{(async()=>{const{data:{session:m}}=await oe.auth.getSession();h(!!m)})();const{data:{subscription:y}}=oe.auth.onAuthStateChange(m=>{m==="PASSWORD_RECOVERY"&&h(!0)});return()=>y.unsubscribe()},[]);const f=async p=>{p.preventDefault();try{Dpt.parse({password:r,confirmPassword:a}),l(!0);const{error:y}=await oe.auth.updateUser({password:r});y?t({title:"Error",description:y.message||"Failed to update password",variant:"destructive"}):(u(!0),t({title:"Password updated",description:"Your password has been reset successfully"}),await oe.auth.signOut())}catch(y){y instanceof r4&&t({title:"Validation error",description:y.issues[0].message,variant:"destructive"})}finally{l(!1)}};return d===null?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx("div",{className:"text-foreground",children:"Loading..."})}):!d&&!c?i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx("header",{className:"border-b border-border px-6 py-4 flex items-center",children:i.jsx("a",{href:"/",className:"flex items-center gap-2",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-8"})})}),i.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-12",children:i.jsxs("div",{className:"max-w-md w-full space-y-8 text-center",children:[i.jsx("h1",{className:"text-3xl font-semibold text-foreground mb-2",children:"Invalid or expired link"}),i.jsx("p",{className:"text-base text-muted-foreground",children:"This password reset link is invali
8044d or has expired. Please request a new one."}),i.jsx(le,{onClick:()=>e("/forgot-password"),className:"bg-primary hover:bg-primary/90 text-primary-foreground rounded-full",size:"lg",children:"Request new link"})]})})]}):i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx("header",{className:"border-b border-border px-6 py-4 flex items-center",children:i.jsx("a",{href:"/",className:"flex items-center gap-2",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-8"})})}),i.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-12",children:i.jsx("div",{className:"max-w-md w-full space-y-8",children:c?i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center",children:i.jsx(Vi,{className:"w-8 h-8 text-green-600"})}),i.jsx("h1",{className:"text-3xl font-semibold text-foreground",children:"Password updated"}),i.jsx("p",{className:"text-base text-muted-foreground",children:"Your password has been reset successfully. You can now log in with your new password."}),i.jsx(le,{onClick:()=>e("/login"),className:"bg-primary hover:bg-primary/90 text-primary-foreground rounded-full",size:"lg",children:"Go to login"})]}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"text-center",children:[i.jsx("h1",{className:"text-3xl font-semibold text-foreground mb-2",children:"Set new password"}),i.jsx("p",{className:"text-base text-muted-foreground",children:"Enter your new password below"})]}),i.jsxs("form",{onSubmit:f,className:"space-y-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"password",children:"New password"}),i.jsx(Pt,{id:"password",type:"password",value:r,onChange:p=>n(p.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",required:!0,autoFocus:!0}),i.jsx(_Ce,{password:r})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"confirmPassword",children:"Confirm new password"}),i.jsx(Pt,{id:"confirmPassword",type:"password",value:a,onChange:p=>s(p.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",required:!0}),a&&r!==a&&i.jsx("p",{className:"text-sm text-destructive",children:"Passwords don't match"})]}),i.jsx(le,{type:"submit",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground rounded-full",size:"lg",disabled:o||r!==a,children:o?"Updating...":"Update password"})]})]})})})]})},$pt=n4({email:Un().trim().email("Invalid email address").max(255),password:Un().min(8,"Password must be at least 8 characters").max(72,"Password must be less than 72 characters").regex(/[0-9]/,"Password must contain at least one number").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[a-z]/,"Password must contain at least one lowercase letter"),confirmPassword:Un()}).refine(e=>e.password===e.confirmPassword,{message:"Passwords don't match",path:["confirmPassword"]}),Bpt=()=>{const e=wt(),{signUp:t,signInWithGoogle:r,user:n,loading:a}=er(),{toast:s}=Xt(),[o,l]=k.useState(""),[c,u]=k.useState(""),[d,h]=k.useState(""),[f,p]=k.useState(!1),[y,m]=k.useState(!1),v=o.length>0||c.length>0||d.length>0;k.useEffect(()=>{if(!a&&n){const x=n.created_at&&Date.now()-new Date(n.created_at).getTime()<6e4;e(x?"/app/story-mode":"/library")}},[n,a,e]);const g=async x=>{x.preventDefault();try{const _=$pt.parse({email:o,password:c,confirmPassword:d});p(!0);const{error:w,isNewSignup:j,newUserId:E}=await t(_.email,_.password);w?s({title:"Signup failed",description:w.message||"Could not create account",variant:"destructive"}):(j&&E&&Jae("CompleteRegistration",{content_name:"Kibbi signup",method:"email"},`signup-${E}`),s({title:"Account created!",description:"Welcome to kibbi. Let's create your first story."}),e("/app/story-mode"))}catch(_){_ instanceof r4&&s({title:"Validation error",description:_.issues[0].message,variant:"destructive"})}finally{p(!1)}},b=async()=>{m(!0);try{const{error:x}=await r();x&&s({title:"Google sign in failed",description:x.message||"An error occurred during Google sign in",variant:"destructive"})}catch{s({title:"Error",description:"Failed to initiate Google sign in",variant:"destructive"})}finally{m(!1)}};return a?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx("div",{className:"text-foreground",children:"Loading..."})}):i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Create Your Free Sample Story | Kibbi"}),i.jsx("meta",{name:"description",content:"Sign up free and create a personalized sample story for your child in minutes. No credit card required."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/signup"}),i.jsx("meta",{property:"og:title",content:"Create Your Free Sample Story | Kibbi"}),i.jsx("meta",{property:"og:description",content:"Sign up free and create a personalized sample story for your child in minutes. No credit card required."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/signup"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:"Create Your Free Sample Story | Kibbi"}),i.jsx("meta",{name:"twitter:description",content:"Sign up free and create a personalized sample story for your child in minutes. No credit card required."}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"})]}),i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx("header",{className:"border-b border-border px-6 py-4 flex items-center",children:i.jsx("a",{href:"/",className:"flex items-center gap-2",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-8"})})}),i.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-12",children:i.jsxs("div",{className:"max-w-md w-full space-y-8",children:[i.jsxs("div",{className:"text-center",children:[i.jsx("h1",{className:"text-3xl font-semibold text-foreground mb-2",children:"Create your account"}),i.jsx("p",{className:"text-base text-muted-foreground",children:"Start creating personalized stories for your child"})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs(le,{type:"button",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",size:"lg",onClick:b,disabled:f||y,children:[i.jsx("img",{src:kCe,alt:"Gmail",className:"mr-2 h-5 w-5"}),y?"Connecting...":"Sign up for free with Google"]}),i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute inset-0 flex items-center",children:i.jsx("span",{className:"w-full border-t"})}),i.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:i.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"or"})})]})]}),i.jsxs("form",{onSubmit:g,className:"space-y-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"email",children:"Email"}),i.jsx(Pt,{id:"email",type:"email",value:o,onChange:x=>l(x.target.value),placeholder:"[email protected]",required:!0})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"password",children:"Password"}),i.jsx(Pt,{id:"password",type:"password",value:c,onChange:x=>u(x.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",required:!0}),c.length>0&&i.jsx(_Ce,{password:c})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"confirmPassword",children:"Confirm Password"}),i.jsx(Pt,{id:"confirmPassword",type:"password",value:d,onChange:x=>h(x.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",required:!0})]}),i.jsx(le,{type:"submit",variant:v?"default":"outline",className:v?"w-full bg-primary hover:bg-primary/90 text-primary-foreground rounded-full":"w-full rounded-full",size:"lg",disabled:f||y,children:f?"Creating account...":"Sign up"})]}),i.jsxs("p",{className:"text-center text-sm text-muted-foreground",children:["Already have an account?"," ",i.jsx(or,{to:"/login",className:"text-foreground underline hover:text-foreground
8044/80 font-medium",children:"Log in"})]})]})})]})]})};var lG="Popover",[SCe,TWt]=xa(lG,[mh]),a4=mh(),[zpt,Sh]=SCe(lG),jCe=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:a,onOpenChange:s,modal:o=!1}=e,l=a4(t),c=k.useRef(null),[u,d]=k.useState(!1),[h,f]=ks({prop:n,defaultProp:a??!1,onChange:s,caller:lG});return i.jsx($ae,{...l,children:i.jsx(zpt,{scope:t,contentId:$a(),triggerRef:c,open:h,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:u,onCustomAnchorAdd:k.useCallback(()=>d(!0),[]),onCustomAnchorRemove:k.useCallback(()=>d(!1),[]),modal:o,children:r})})};jCe.displayName=lG;var ECe="PopoverAnchor",Upt=k.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=Sh(ECe,r),s=a4(r),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=a;return k.useEffect(()=>(o(),()=>l()),[o,l]),i.jsx(P_,{...s,...n,ref:t})});Upt.displayName=ECe;var CCe="PopoverTrigger",NCe=k.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=Sh(CCe,r),s=a4(r),o=Vt(t,a.triggerRef),l=i.jsx(dt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":PCe(a.open),...n,ref:o,onClick:Xe(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:i.jsx(P_,{asChild:!0,...s,children:l})});NCe.displayName=CCe;var Tse="PopoverPortal",[qpt,Hpt]=SCe(Tse,{forceMount:void 0}),TCe=e=>{const{__scopePopover:t,forceMount:r,children:n,container:a}=e,s=Sh(Tse,t);return i.jsx(qpt,{scope:t,forceMount:r,children:i.jsx(ba,{present:r||s.open,children:i.jsx(sv,{asChild:!0,container:a,children:n})})})};TCe.displayName=Tse;var C2="PopoverContent",ACe=k.forwardRef((e,t)=>{const r=Hpt(C2,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,s=Sh(C2,e.__scopePopover);return i.jsx(ba,{present:n||s.open,children:s.modal?i.jsx(Wpt,{...a,ref:t}):i.jsx(Gpt,{...a,ref:t})})});ACe.displayName=C2;var Vpt=ih("PopoverContent.RemoveScroll"),Wpt=k.forwardRef((e,t)=>{const r=Sh(C2,e.__scopePopover),n=k.useRef(null),a=Vt(t,n),s=k.useRef(!1);return k.useEffect(()=>{const o=n.current;if(o)return SW(o)},[]),i.jsx(B_,{as:Vpt,allowPinchZoom:!0,children:i.jsx(MCe,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xe(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),s.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Xe(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Xe(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),Gpt=k.forwardRef((e,t)=>{const r=Sh(C2,e.__scopePopover),n=k.useRef(!1),a=k.useRef(!1);return i.jsx(MCe,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),s.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=s.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),MCe=k.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...h}=e,f=Sh(C2,r),p=a4(r);return kW(),i.jsx($_,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:s,children:i.jsx(z0,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:i.jsx(sW,{"data-state":PCe(f.open),role:"dialog",id:f.contentId,...p,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}
vendor: 5,280 bytes, line 8044
8044),ICe="PopoverClose",Kpt=k.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=Sh(ICe,r);return i.jsx(dt.button,{type:"button",...n,ref:t,onClick:Xe(e.onClick,()=>a.onOpenChange(!1))})});Kpt.displayName=ICe;var Ypt="PopoverArrow",Xpt=k.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=a4(r);return i.jsx(oW,{...a,...n,ref:t})});Xpt.displayName=Ypt;function PCe(e){return e?"open":"closed"}var Zpt=jCe,Qpt=NCe,Jpt=TCe,LCe=ACe;const Ase=Zpt,Mse=Qpt,cG=k.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},a)=>i.jsx(Jpt,{children:i.jsx(LCe,{ref:a,align:t,sideOffset:r,className:De("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));cG.displayName=LCe.displayName;var uG="Checkbox",[emt,AWt]=xa(uG),[tmt,Ise]=emt(uG);function rmt(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:a,disabled:s,form:o,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:h}=e,[f,p]=ks({prop:r,defaultProp:a??!1,onChange:c,caller:uG}),[y,m]=k.useState(null),[v,g]=k.useState(null),b=k.useRef(!1),x=y?!!o||!!y.closest("form"):!0,_={checked:f,disabled:s,setChecked:p,control:y,setControl:m,name:l,form:o,value:d,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:eh(a)?!1:a,isFormControl:x,bubbleInput:v,setBubbleInput:g};return i.jsx(tmt,{scope:t,..._,children:nmt(h)?h(_):n})}var OCe="CheckboxTrigger",RCe=k.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},a)=>{const{control:s,value:o,disabled:l,checked:c,required:u,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:y}=Ise(OCe,e),m=Vt(a,d),v=k.useRef(c);return k.useEffect(()=>{const g=s==null?void 0:s.form;if(g){const b=()=>h(v.current);return g.addEventListener("reset",b),()=>g.removeEventListener("reset",b)}},[s,h]),i.jsx(dt.button,{type:"button",role:"checkbox","aria-checked":eh(c)?"mixed":c,"aria-required":u,"data-state":zCe(c),"data-disabled":l?"":void 0,disabled:l,value:o,...n,ref:m,onKeyDown:Xe(t,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:Xe(r,g=>{h(b=>eh(b)?!0:!b),y&&p&&(f.current=g.isPropagationStopped(),f.current||g.stopPropagation())})})});RCe.displayName=OCe;var Pse=k.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:a,defaultChecked:s,required:o,disabled:l,value:c,onCheckedChange:u,form:d,...h}=e;return i.jsx(rmt,{__scopeCheckbox:r,checked:a,defaultChecked:s,disabled:l,required:o,onCheckedChange:u,name:n,form:d,value:c,internal_do_not_use_render:({isFormControl:f})=>i.jsxs(i.Fragment,{children:[i.jsx(RCe,{...h,ref:t,__scopeCheckbox:r}),f&&i.jsx(BCe,{__scopeCheckbox:r})]})})});Pse.displayName=uG;var DCe="CheckboxIndicator",FCe=k.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...a}=e,s=Ise(DCe,r);return i.jsx(ba,{present:n||eh(s.checked)||s.checked===!0,children:i.jsx(dt.span,{"data-state":zCe(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});FCe.displayName=DCe;var $Ce="CheckboxBubbleInput",BCe=k.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:a,checked:s,defaultChecked:o,required:l,disabled:c,name:u,value:d,form:h,bubbleInput:f,setBubbleInput:p}=Ise($Ce,e),y=Vt(r,p),m=JW(s),v=iW(n);k.useEffect(()=>{const b=f;if(!b)return;const x=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(x,"checked").set,j=!a.current;if(m!==s&&w){const E=new Event("click",{bubbles:j});b.indeterminate=eh(s),w.call(b,eh(s)?!1:s),b.dispatchEvent(E)}},[f,m,s,a]);const g=k.useRef(eh(s)?!1:s);return i.jsx(dt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??g.current,required:l,disabled:c,name:u,value:d,form:h,...t,tabIndex:-1,ref:y,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});BCe.displayName=$Ce;function nmt(e){return typeof e=="function"}function eh(e){return e==="indeterminate"}function zCe(e){return eh(e)?"indeterminate":e?"checked":"unchecked"}const Dk=k.forwardRef(({className:e,...t},r)=>i.jsx(Pse,{ref:r,className:De("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:i.jsx(FCe,{className:De("flex items-center justify-center text-current"),children:i.jsx(_r,{className:"h-4 w-4"})})}));Dk.displayName=Pse.displayName;function Eg({options:e,selected:t,onChange:r,placeholder:n,className:a}){const[s,o]=k.useState(!1),l=h=>{const f=t.includes(h)?t.filter(p=>p!==h):[...t,h];r(f)},c=()=>{r(e.map(h=>h.value))},u=()=>{r([])},d=k.useMemo(()=>{var h;return t.length===0?`All ${n}`:t.length===1?((h=e.find(f=>f.value===t[0]))==null?void 0:h.label)||n:t.length===2?t.map(p=>{var y;return(y=e.find(m=>m.value===p))==null?void 0:y.label}
8044).filter(Boolean).join(", "):`${t.length} selected`},[t,e,n]);return i.jsxs(Ase,{open:s,onOpenChange:o,children:[i.jsx(Mse,{asChild:!0,children:i.jsxs(le,{variant:"outline",role:"combobox","aria-expanded":s,className:De("justify-between",a),children:[i.jsx("span",{className:"truncate",children:d}),i.jsx(sc,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),i.jsxs(cG,{className:"w-[200px] p-0",align:"start",children:[i.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[i.jsx(le,{variant:"ghost",size:"sm",onClick:c,className:"h-7 text-xs",children:"Select All"}),i.jsx(le,{variant:"ghost",size:"sm",onClick:u,className:"h-7 text-xs",children:"Clear All"})]}),i.jsx("div",{className:"max-h-64 overflow-y-auto p-1",children:e.map(h=>i.jsxs("div",{className:"flex items-center space-x-2 rounded-sm px-2 py-1.5 hover:bg-accent cursor-pointer",onClick:()=>l(h.value),children:[i.jsx(Dk,{checked:t.includes(h.value),onCheckedChange:()=>l(h.value)}),i.jsx("label",{className:"flex-1 cursor-pointer text-sm",children:h.label}),t.includes(h.value)&&i.jsx(_r,{className:"h-4 w-4 text-primary"})]},h.value))})]})]})}function amt(e){const{isAdmin:t,profile:r,subscriptionLoading:n,subscriptionSamplesUsed:a,freeSamplesRemaining:s}=e;return t?{canCreateStory:!0,entitlementType:"membership_included",requiresPayment:!1,requiresSubscription:!1}:r?r.membership_active?r.included_story_available||r.story_credits&&r.story_credits>0?{canCreateStory:!0,entitlementType:"membership_included",requiresPayment:!1,requiresSubscription:!1}:{canCreateStory:!0,entitlementType:"overage",requiresPayment:!0,requiresSubscription:!1}:s>0?{canCreateStory:!0,entitlementType:"free_sample",requiresPayment:!1,requiresSubscription:!1}:(r.story_credits??0)>0?{canCreateStory:!0,entitlementType:"membership_included",requiresPayment:!1,requiresSubscription:!1}:{canCreateStory:!0,entitlementType:"overage",requiresPayment:!0,requiresSubscription:!1}:n?{canCreateStory:!1,entitlementType:"none",requiresPayment:!1,requiresSubscription:!1}:a<1?{canCreateStory:!0,entitlementType:"free_sample",requiresPayment:!1,requiresSubscription:!1}:{canCreateStory:!0,entitlementType:"overage",requiresPayment:!0,requiresSubscription:!1}}const ch=()=>{const{user:e,profile:t,subscriptionStatus:r,subscriptionLoading:n,refreshSubscription:a}=er(),{isAdmin:s,loading:o}=Fr(),l=(t==null?void 0:t.free_samples_count)??0,c=Math.max(0,1-l);return{...amt({isAdmin:s,profile:t,subscriptionLoading:n,subscriptionSamplesUsed:(r==null?void 0:r.free_samples_count)??0,freeSamplesRemaining:c}),profile:t,subscription:r,loading:n||o,error:null,refresh:a,freeSamplesRemaining:c}},imt=new Set(["completed","complete","failed"]),smt=new Set(["ready","review"]);function omt(e){const t=[],r=[],n=[];for(const a of e)imt.has(a.status)?n.push(a):smt.has(a.status)?r.push(a):t.push(a);return{inProgress:t,drafts:r,completed:n}}function Cb(e){if(e.status==="questionnaire")return!e.age_range||e.age_range==="pending"?`/app/profile-selection?id=${e.id}`:!e.language||e.language==="pending"?`/app/language-selection?id=${e.id}`:e.reading_level?e.illustration_style?`/app/story-input?id=${e.id}`:`/app/style-selection?id=${e.id}`:`/app/reading-level-selection?id=${e.id}`;switch(e.status){case"draft":return`/app/profile-selection?id=${e.id}`;case"style_selection":return`/app/style-selection?id=${e.id}`;case"character_review":return`/app/character-review?id=${e.id}`;case"ready":case"failed":case"generating":return`/app/story-input?id=${e.id}`;case"completed":case"complete":return`/app/story-reader?id=${e.id}`;case"review":case"page_review":return`/app/book-preview?id=${e.id}`;default:return`/app/book-preview?id=${e.id}`}}function Ba(){const e=wt(),{signOut:t}=er(),{hasLibraryAccess:r,hasDashboardAccess:n,homeRoute:a}=W_(),s=async()=>{try{await t(),e("/")}catch(o){console.error("Error signing out:",o),e("/")}};return i.jsx("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:i.jsxs("div",{className:"container flex h-16 items-center justify-between px-6",children:[i.jsx(or,{to:"/library",children:i.jsx("img",{src:va,alt:"Kibbi",className:"h-8"})}),i.jsx("div",{className:"flex items-center gap-2",children:i.jsxs(jk,{children:[i.jsx(Ek,{asChild:!0,children:i.jsxs(le,{variant:"ghost",children:[i.jsx(xl,{className:"mr-2 h-4 w-4"}),"Account"]})}
8044),i.jsxs(x2,{align:"end",className:"w-48",children:[n&&i.jsxs(ua,{onClick:()=>e("/dashboard"),children:[i.jsx(Xi,{className:"mr-2 h-4 w-4"}),"Dashboard"]}),r&&i.jsxs(ua,{onClick:()=>e("/library"),children:[i.jsx(nw,{className:"mr-2 h-4 w-4"}),"My Library"]}),i.jsxs(ua,{onClick:()=>e("/billing"),children:[i.jsx(bs,{className:"mr-2 h-4 w-4"}),"Billing"]}),i.jsxs(ua,{onClick:()=>e("/orders"),children:[i.jsx(hw,{className:"mr-2 h-4 w-4"}),"Orders"]}),i.jsxs(ua,{onClick:()=>e("/profile"),children:[i.jsx(xl,{className:"mr-2 h-4 w-4"}),"Profile"]}),i.jsx(Ck,{}),i.jsxs(ua,{onClick:()=>e("/help"),children:[i.jsx(tl,{className:"mr-2 h-4 w-4"}),"Help Center"]}),i.jsxs(ua,{onClick:()=>e("/feedback"),children:[i.jsx(Fa,{className:"mr-2 h-4 w-4"}),"Feedback"]}),i.jsx(Ck,{}),i.jsxs(ua,{onClick:s,children:[i.jsx(sw,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]})})]})})}const lmt=()=>{W_(),Fr();const e=wt(),t=ose(),{user:r,loading:n,subscriptionStatus:a,profile:s,subscriptionLoading:o,signOut:l}=er(),{toast:c}=Xt(),[u,d]=k.useState([]),[h,f]=k.useState([]),[p,y]=k.useState(!0),[m,v]=k.useState(!1),[g,b]=k.useState(null),[x,_]=k.useState(!1),[w,j]=k.useState({}),E="kibbi-library-filters",[C,N]=k.useState(()=>{const J=localStorage.getItem(E);if(J)try{return JSON.parse(J).ageFilters||[]}catch{return[]}return[]}),[A,$]=k.useState(()=>{const J=localStorage.getItem(E);if(J)try{return JSON.parse(J).readingLevelFilters||[]}catch{return[]}return[]}),[T,F]=k.useState(()=>{const J=localStorage.getItem(E);if(J)try{return JSON.parse(J).themeFilters||[]}catch{return[]}return[]}),[M,z]=k.useState([]),[Y,W]=k.useState({}),{canCreateStory:ee,requiresPayment:Z,loading:V,freeSamplesRemaining:ne}=ch(),{setStoryId:P,setAgeRange:R,setLanguage:H,setIllustrationStyle:re}=Zs(),ae=C.length+A.length+T.length,D=()=>{N([]),$([]),F([]),localStorage.removeItem(E)};k.useEffect(()=>{localStorage.setItem(E,JSON.stringify({ageFilters:C,readingLevelFilters:A,themeFilters:T}))},[C,A,T]),k.useEffect(()=>{!n&&!r&&e("/login")},[r,n,e]),k.useEffect(()=>{if(!r)return;const J=async()=>{try{const{data:ve}=await oe.from("stories").select("id, has_purchased").eq("user_id",r.id).eq("has_purchased",!1);if(!ve||ve.length===0)return;for(const ge of ve){const{data:de}=await oe.from("story_payments").select("stripe_payment_intent_id, status").eq("story_id",ge.id).eq("status","pending").order("created_at",{ascending:!1}).limit(1);if(de&&de.length>0){const ye=de[0],{data:_e,error:Fe}=await oe.functions.invoke("verify-payment-status",{body:{paymentIntentId:ye.stripe_payment_intent_id}});!Fe&&(_e==null?void 0:_e.status)==="succeeded"&&(console.log("[Library] Found orphaned payment, fixing:",{storyId:ge.id,paymentIntentId:ye.stripe_payment_intent_id}),await oe.functions.invoke("confirm-story-payment",{body:{storyId:ge.id,paymentIntentId:ye.stripe_payment_intent_id}}),c({title:"Payment Confirmed!",description:"We found your completed payment and activated your story."}),U())}}}catch(ve){console.error("[Library] Error checking orphaned payments:",ve)}};J();const fe=setInterval(J,3e4);return()=>clearInterval(fe)},[r]),k.useEffect(()=>{if(r){U(),se(),te();const J=oe.channel("stories-changes").on("postgres_changes",{event:"*",schema:"public",table:"stories",filter:`user_id=eq.${r.id}`},fe=>{console.log("Story change detected:",fe),U()}).subscribe();return()=>{oe.removeChannel(J)}}},[r]);const U=async()=>{try{y(!0);const{data:J,error:fe}=await oe.from("stories").select("*").eq("user_id",r==null?void 0:r.id).order("updated_at",{ascending:!1});if(fe)throw fe;const ve=(J||[]).map(ge=>{const de=ge.updated_at?`?v=${new Date(ge.updated_at).getTime()}`:"";let ye={...ge};if(ge.cover_image_url&&ge.cover_image_url.includes("/sign/")){const _e=ge.cover_image_url.match(/story-illustrations\/([^?]+)/);if(_e){const Fe=_e[1],{data:ht}=oe.storage.from("story-illustrations").getPublicUrl(Fe);ye.cover_image_url=ht.publicUrl+de}}else ye.cover_image_url&&(ye.cover_image_url=ye.cover_image_url.split("?")[0]+de);return ye.cover_image_thumbnail_url&&(ye.cover_image_thumbnail_url=ye.cover_image_thumbnail_url.split("?")[0]+de),ye});if(d(ve),ve.length>0){const ge=ve.map(ye=>ye.id),{data:de}=await oe.from("story_category_mappings").select("story_id, category_id").in("story_id",ge);if(de){const ye={};de.forEach(_e=>{ye[_e.story_id]||(ye[_e.story_id]=[]),ye[_e.story_id].push(_e.category_id)}),W(ye)}pe(ge)}}catch(J){c({title:"Error loading stories",description:J.message,variant:"destructive"})}finally{y(!1)}},se=async()=>{try{const{data:J,error:fe}=await oe.from("stories").select("*").eq("is_public",!0).eq("admin_approved_public",!0).neq("user_id",r==null?void 0:r.id).order("shared_at",{ascending:!1}).limit(10);if(fe)throw fe;const ve=(J||[]).map(ge=>{const de=ge.updated_at?`?v=${new Date(ge.updated_at).getTime()}`:"";let ye={...ge};if(ge.cover_image_url&&ge.cover_image_url.includes("/sign/")){const _e=ge.cover_image_url.match(/story-illustrations\/([^?]+)/
8044);if(_e){const Fe=_e[1],{data:ht}=oe.storage.from("story-illustrations").getPublicUrl(Fe);ye.cover_image_url=ht.publicUrl+de}}else ye.cover_image_url&&(ye.cover_image_url=ye.cover_image_url.split("?")[0]+de);return ye.cover_image_thumbnail_url&&(ye.cover_image_thumbnail_url=ye.cover_image_thumbnail_url.split("?")[0]+de),ye});if(f(ve),ve.length>0){const ge=ve.map(ye=>ye.id),{data:de}=await oe.from("story_category_mappings").select("story_id, category_id").in("story_id",ge);de&&W(ye=>{const _e={...ye};return de.forEach(Fe=>{_e[Fe.story_id]||(_e[Fe.story_id]=[]),_e[Fe.story_id].push(Fe.category_id)}),_e}),pe(ge)}}catch(J){console.error("Error loading public stories:",J)}},te=async()=>{try{const{data:J,error:fe}=await oe.from("story_categories").select("id, name, slug").not("slug","in",'("0-2","3-5","6-9","read-aloud","learning-to-read","independent-reader","english","norwegian","spanish","german","french")').order("name");if(fe)throw fe;z(J||[])}catch(J){console.error("Error loading theme categories:",J)}},Q=J=>{if(J.status==="completed"||J.status==="complete"){e(`/app/book-preview?id=${J.id}`);return}e(Cb(J))},K=J=>{e(`/shared/story/${J.share_token}`)},ue=(J,fe)=>{J.stopPropagation(),b(fe),v(!0)},B=async()=>{if(g)try{const{data:J,error:fe}=await oe.functions.invoke("delete-story",{body:{storyId:g}});if(fe)throw fe;if(J!=null&&J.error)throw new Error(J.error);c({title:"Story deleted",description:"Your story has been permanently deleted."}),U()}catch(J){c({title:"Error deleting story",description:J.message,variant:"destructive"})}finally{v(!1),b(null)}},pe=async J=>{if(J.length===0)return;const{data:fe,error:ve}=await oe.from("story_reviews").select("story_id, stars").in("story_id",J).not("stars","is",null).eq("review_skipped",!1);if(ve||!fe)return;const ge={},de=fe.reduce((ye,_e)=>(ye[_e.story_id]||(ye[_e.story_id]=[]),_e.stars!==null&&ye[_e.story_id].push(_e.stars),ye),{});Object.entries(de).forEach(([ye,_e])=>{if(_e.length>0){const Fe=_e.reduce((ht,_t)=>ht+_t,0)/_e.length;ge[ye]={averageRating:Math.round(Fe*10)/10,reviewCount:_e.length}}}),j(ye=>({...ye,...ge}))},G=async()=>{if(!r){c({title:"Please log in",description:"You need to be logged in to create a story"}),e("/login");return}V||ee&&(P(null),R(null),H(null),re(null),e("/app/story-mode"))},I=k.useMemo(()=>u.filter(J=>{if(C.length>0&&!C.includes(J.age_range)||A.length>0&&!A.includes(J.reading_level||""))return!1;if(T.length>0){const fe=Y[J.id]||[];if(!T.some(ve=>fe.includes(ve)))return!1}return!0}),[u,C,A,T,Y]),{inProgress:L,drafts:q,completed:X}=omt(I),ie=k.useMemo(()=>h.filter(J=>{if(C.length>0&&!C.includes(J.age_range)||A.length>0&&!A.includes(J.reading_level||""))return!1;if(T.length>0){const fe=Y[J.id]||[];if(!T.some(ve=>fe.includes(ve)))return!1}return!0}),[h,C,A,T,Y]);return n||p&&r?i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx("header",{className:"border-b border-border px-6 py-4 flex items-center justify-between",children:i.jsx("span",{className:"text-2xl font-bold text-foreground",children:"kibbi"})}),i.jsx("main",{className:"flex-1 px-6 py-6",children:i.jsxs("div",{className:"max-w-6xl mx-auto space-y-8",children:[i.jsx(vr,{className:"h-10 w-48"}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(J=>i.jsx(vr,{className:"h-64 w-full"},J))})]})})]}):i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"My Library - kibbi | Your Personalized Storybooks"}),i.jsx("meta",{name:"description",content:"Access your personalized children's storybook library. View, read, and manage all your custom stories in one place."}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx(Ba,{}),i.jsx("main",{className:"flex-1 px-6 py-6",children:i.jsxs("div",{className:"max-w-6xl mx-auto space-y-12",children:[i.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-6",children:[i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center gap-3 mb-2",children:i.jsx("h1",{className:"font-semibold text-foreground text-2xl",children:"My Library"})}),!o&&s&&s.membership_active&&(()=>{const J=(s.story_credits||0)+(s.included_story_available?1:0),fe=s.current_period_end?new Date(s.current_period_end).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):null;return i.jsx("p",{className:"text-sm text-muted-foreground mt-1 max-w-lg",children:J===0&&fe?`You have 0 story credits available. You'll get a new one on ${fe}, but you can still create a new story anytime â just purchase it as a one-off.`:`${J} ${J===1?"story credit":"story credits"} available`})})()]}),u.length>0&&i.jsxs(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground rounded-full w-auto",onClick:G,disabled:V,children:[i.jsx(uc,{className:"mr-2 h-5 w-5"}),V?"Loading...":"Create New Story"]})]}),(u.length>0||h.length>0)&&(t?i.jsx("div",{className:"flex items-center gap-2",children:i.jsxs(vie,{open:x,onOpenChange:_,children:[i.jsx(y3e,{asChild:!0,children:i.jsxs(le,{variant:"outline",className:"relative",children:[i.jsx(pw,{className:"mr-2 h-4 w-4"}),"Filters",ae>0&&i.jsx(Re,{className:"absolute -top-2 -right-2 h-5 w-5 p-0 flex items-center justify-center text-xs",children:ae})]})}),i.jsxs(TW,{side:"bottom",className:"h-auto max-h-[80vh]",children:[i.jsx(xie,{children:i.jsx(bie,{children:"Filter Stories"})}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Age Group"}),i.jsx(Eg,{placeholder:"Ages",options:[{value:"0-2",label:"0-2 years"},{value:"3-5",label:"3-5 years"},{value:"6-9",label:"6-9 years"}],selected:C,onChange:N})]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Reading Level"}),i.jsx(Eg,{placeholder:"Levels",options:[{value:"read_aloud",label:"Read Aloud"},{value:"learning_to_read",label:"Learning to Read"},{value:"independent_reader",label:"Independent Reader"}],selected:A,onChange:$})]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Themes"}),i.jsx(Eg,{placeholder:"Themes",options:M.map(J=>({value:J.id,label:J.name})),selected:T,onChange:F})]}),ae>0&&i.jsxs(le,{variant:"ghost",onClick:D,className:"w-full",children:["Clear all filters (",ae,")"]})]})]})]})}):i.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[i.jsx(Eg,{placeholder:"Ages",options:[{value:"0-2",label:"0-2 years"},{value:"3-5",label:"3-5 years"},{value:"6-9",label:"6-9 years"}],selected:C,onChange:N,className:"w-[180px]"}),i.jsx(Eg,{placeholder:"Levels",options:[{value:"read_aloud",label:"Read Aloud"},{value:"learning_to_read",label:"Learning to Read"},{value:"independent_reader",label:"Independent Reader"}],selected:A,onChange:$,className:"w-[180px]"}),i.jsx(Eg,{placeholder:"Themes",options:M.map(J=>({value:J.id,label:J.name})),selected:T,onChange:F,className:"w-[180px]"}),ae>0&&i.jsx(le,{variant:"ghost",size:"sm",onClick:D,children:"Clear filters"})]})),L.length>0&&i.jsx("section",{children:i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 ga
8044p-6",children:L.map(J=>i.jsx(Ie,{className:"cursor-pointer hover:shadow-lg transition-shadow overflow-hidden relative group",onClick:()=>Q(J),children:i.jsxs(ze,{className:"p-0",children:[i.jsxs("div",{className:"w-full aspect-[2/3] bg-muted flex flex-col items-center justify-center gap-3",children:[i.jsx(xr,{className:"h-16 w-16 text-muted-foreground"}),i.jsx("span",{className:"text-sm font-medium text-muted-foreground px-4 text-center",children:J.status==="ready"?"Ready to create":"In progress"})]}),i.jsx(le,{size:"icon",variant:"destructive",className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity h-8 w-8",onClick:fe=>ue(fe,J.id),children:i.jsx(ws,{className:"h-4 w-4"})})]})},J.id))})}),q.length>0&&i.jsxs("section",{children:[i.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Drafts"}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-6",children:q.map(J=>i.jsx(Ie,{className:"cursor-pointer hover:shadow-lg transition-shadow overflow-hidden relative group",onClick:()=>Q(J),children:i.jsxs(ze,{className:"p-0",children:[J.cover_image_url?i.jsx("img",{src:J.cover_image_thumbnail_url||J.cover_image_url,alt:J.story_title||"Story cover",className:"w-full aspect-[2/3] object-cover",loading:"lazy",decoding:"async"}):i.jsxs("div",{className:`w-full aspect-[2/3] flex flex-col items-center justify-center gap-3 ${J.status==="failed"?"bg-destructive/10":"bg-muted"}`,children:[i.jsx(xr,{className:`h-16 w-16 ${J.status==="failed"?"text-destructive":"text-muted-foreground"}`}),i.jsx("span",{className:`text-sm font-medium px-4 text-center ${J.status==="failed"?"text-destructive":"text-muted-foreground"}`,children:J.status==="failed"?"Generation failed":"Draft"})]}),i.jsx(le,{size:"icon",variant:"destructive",className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity h-8 w-8",onClick:fe=>ue(fe,J.id),children:i.jsx(ws,{className:"h-4 w-4"})})]})},J.id))})]}),X.length>0&&i.jsxs("section",{children:[i.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Your Completed Stories"}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-6",children:X.map(J=>{var fe;return i.jsxs(Ie,{className:"cursor-pointer hover:shadow-lg transition-shadow overflow-hidden relative group",onClick:()=>Q(J),children:[i.jsxs(ze,{className:"p-0",children:[J.cover_image_url?i.jsx("img",{src:J.cover_image_thumbnail_url||J.cover_image_url,alt:J.story_title||"Story cover",className:"w-full aspect-[2/3] object-cover",loading:"lazy",decoding:"async"}):i.jsx("div",{className:"w-full aspect-[2/3] bg-muted flex items-center justify-center",children:i.jsx(xr,{className:"h-16 w-16 text-muted-foreground"})}),i.jsx(le,{size:"icon",variant:"destructive",className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity h-8 w-8",onClick:ve=>ue(ve,J.id),children:i.jsx(ws,{className:"h-4 w-4"})})]}),((fe=w[J.id])==null?void 0:fe.averageRating)&&i.jsx(qe,{className:"p-2",children:i.jsx("div",{className:"flex",children:[1,2,3,4,5].map(ve=>i.jsx("span",{className:`text-sm ${ve<=Math.round(w[J.id].averageRating)?"text-yellow-400":"text-gray-300"}`,children:"â
"},ve))})})]},J.id)})})]}),u.length===0&&!p&&i.jsxs("div",{className:"text-center py-[4px]",children:[i.jsx("p",{className:"text-muted-foreground mb-6",children:"Create your first personalized storybook"}),i.jsxs(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground rounded-full",onClick:G,disabled:V,children:[i.jsx(uc,{className:"mr-2 h-5 w-5"}),V?"Loading...":"Create Your First Story"]})]}),ie.length>0&&i.jsxs("section",{children:[i.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Stories by Kibbi"}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-6",children:ie.map(J=>{var fe;return i.jsxs(Ie,{className:"cursor-pointer hover:shadow-lg transition-shadow overflow-hidden",onClick:()=>K(J),children:[i.jsx(ze,{className:"p-0",children:J.cover_image_url?i.jsx("img",{src:J.cover_image_thumbnail_url||J.cover_image_url,alt:J.story_title||"Story cover",className:"w-full aspect-[2/3] object-cover",loading:"lazy",decoding:"async"}):i.jsx("div",{className:"w-full aspect-[2/3] bg-muted flex items-center justify-center",children:i.jsx(xr,{className:"h-16 w-16 text-muted-foreground"})})}),((fe=w[J.id])==null?void 0:fe.averageRating)&&i.jsx(qe,{className:"p-2",children:i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("div",{className:"flex",children:[1,2,3,4,5].map(ve=>i.jsx("span",{className:`text-sm ${ve<=Math.round(w[J.id].averageRating)?"text-yellow-400":"text-gray-300"}`,children:"â
"},ve))}),i.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",w[J.id].reviewCount,")"]})]})})]},J.id)})})]})]})}),i.jsx(Jl,{open:m,onOpenChange:v,children:i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Are you sure you want to delete this story?"}),i.jsx(hl,{children:"This will permanently delete this story. This action cannot be undone."})]}),i.jsxs(ul,{children:[i.jsx(pl,{children:"Cancel"}),i.jsx(fl,{onClick:B,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})})]})]})},cmt=4e3,umt=3e4,dmt=new Set(["printing","shipped"]),aq=15*60*1e3,hmt=["generating","analyzing","ready"];
8044function UCe(e,t=Date.now()){if(e.story_id||!e.created_at)return!1;const r=t-new Date(e.created_at).getTime();return Number.isFinite(r)&&r>aq}function fmt(e,t=Date.now()){if(!e)return!0;if(e.freeSample&&e.freeSample.status!=="failed"){if(e.freeSample.status==="generating"||!e.freeSample.coverUrl)return!0;if(e.freeSample.expectsTeasers&&e.teaserBooks.length===0){if(!e.freeSample.updatedAt)return!0;const r=t-new Date(e.freeSample.updatedAt).getTime();if(!Number.isFinite(r)||r<aq)return!0}}for(const r of e.teaserBooks)if(r.story_status!=="failed"&&!UCe(r,t)){if(!r.story_id||r.story_status==="generating")return!0;if(!r.cover_image_url){if(r.story_updated_at){const n=t-new Date(r.story_updated_at).getTime();if(Number.isFinite(n)&&n>aq)continue}return!0}}for(const r of e.subDataList){if(r.freeSample&&r.freeSample.status!=="failed"&&(r.freeSample.status==="generating"||!r.freeSample.coverUrl)||r.nextMonth&&r.nextMonth.status==="generating")return!0;for(const n of r.pastBooks)if(n.story_status!=="failed"){if(n.story_status==="generating")return!0;if(!n.cover_image_url){if(n.story_updated_at){const a=t-new Date(n.story_updated_at).getTime();if(Number.isFinite(a)&&a>aq)continue}return!0}}}return!!(e.inProgressStory&&hmt.includes(e.inProgressStory.status))}function pmt(e){if(!e)return!1;for(const t of e.subDataList)for(const r of t.pastBooks)if(r.status&&dmt.has(r.status))return!0;return!1}function mmt(e){return fmt(e)?cmt:pmt(e)?umt:!1}function mX(e,t){if(!e)return null;const r=Date.parse(e);if(Number.isNaN(r))return null;const n=new Date(r);let a;const s=t==null?void 0:t.generationDayOfMonth;if(typeof s=="number"&&s>=1&&s<=31){const h=n.getUTCFullYear(),f=n.getUTCMonth(),p=new Date(Date.UTC(h,f+1,0)).getUTCDate(),y=Math.min(s,p);a=Date.UTC(h,f,y)}else a=r;const o=t!=null&&t.subscriptionCreatedAt?Date.parse(t.subscriptionCreatedAt):NaN;Number.isNaN(o)||(a=Math.max(a,o));const l=new Date(a);l.setUTCDate(l.getUTCDate()+2);const c=String(l.getUTCDate()).padStart(2,"0"),u=String(l.getUTCMonth()+1).padStart(2,"0"),d=l.getUTCFullYear();return`${c}.${u}.${d}`}function F3(e){if(!e)return null;const t=Date.parse(e);if(Number.isNaN(t))return null;const r=new Date(t),n=r.toLocaleString("en-US",{month:"short",timeZone:"UTC"}),a=r.getUTCDate();return`${n} ${a}`}const Pd=(e,t)=>{if(!e)return"";if(e.startsWith("data:"))return e;const r=e.split("?")[0];if(!t)return r;const n=new Date(t).getTime();return Number.isNaN(n)?r:`${r}?v=${n}`},gX=e=>["bookClubDashboard",e];async function gmt(e){const[t,r]=await Promise.all([oe.from("book_club_months").select("*").eq("subscription_id",e.id).order("month",{ascending:!0}),oe.from("book_club_characters").select("*").eq("subscription_id",e.id).order("sort_order",{ascending:!0})]),n=r.data||[];let a=null,s=[],o=null;const l=[],c=t.data||[];if(c.length>0){const u=c.find(b=>b.story_id)||null,d=(u==null?void 0:u.story_id)||null,h=c.map(b=>b.story_id).filter(Boolean);let f=new Map;if(h.length>0){const{data:b}=await oe.from("stories").select("id, story_title, cover_image_url, updated_at, status, qa_status, intended_entitlement").in("id",h);if(f=new Map((b==null?void 0:b.map(E=>[E.id,E]))||[]),d){const E=f.get(d);if(E){let C=null;if(u!=null&&u.print_order_id){const{data:N}=await oe.from("print_orders").select("id, tracking_url, carrier_name, estimated_dispatch_min, estimated_dispatch_max, estimated_arrival_min, estimated_arrival_max").eq("id",u.print_order_id).maybeSingle();C=N}o={id:E.id,title:E.story_title||"",coverUrl:Pd(E.cover_image_url,E.updated_at),status:E.status,monthDate:(u==null?void 0:u.month)||null,printStatus:u==null?void 0:u.status,trackingUrl:(C==null?void 0:C.tracking_url)??null,carrierName:(C==null?void 0:C.carrier_name)??null,estimatedDispatchMin:(C==null?void 0:C.estimated_dispatch_min)??null,estimatedDispatchMax:(C==null?void 0:C.estimated_dispatch_max)??null,estimatedArrivalMin:(C==null?void 0:C.estimated_arrival_min)??null,estimatedArrivalMax:(C==null?void 0:C.estimated_arrival_max)??null}}}const x=new Set(["delivered","shipped","printing","printed","completed","failed"]),_=c.filter(E=>{var C;return E.story_id&&E.story_id!==d&&x.has(E.status)&&((C=f.get(E.story_id))==null?void 0:C.cover_image_url)}),w=_.map(E=>
8044E.print_order_id).filter(E=>!!E);let j=new Map;if(w.length>0){const{data:E}=await oe.from("print_orders").select("id, tracking_number, tracking_url, carrier_name, estimated_dispatch_min, estimated_dispatch_max, estimated_arrival_min, estimated_arrival_max").in("id",w);j=new Map((E==null?void 0:E.map(C=>[C.id,C]))||[])}s=_.map(E=>{var N,A,$,T,F,M;const C=E.print_order_id?j.get(E.print_order_id):null;return{...E,cover_image_url:Pd((N=f.get(E.story_id))==null?void 0:N.cover_image_url,(A=f.get(E.story_id))==null?void 0:A.updated_at)||void 0,story_title:(($=f.get(E.story_id))==null?void 0:$.story_title)||void 0,story_status:(T=f.get(E.story_id))==null?void 0:T.status,qa_status:((F=f.get(E.story_id))==null?void 0:F.qa_status)??null,story_updated_at:(M=f.get(E.story_id))==null?void 0:M.updated_at,tracking_number:(C==null?void 0:C.tracking_number)??null,tracking_url:(C==null?void 0:C.tracking_url)??null,carrier_name:(C==null?void 0:C.carrier_name)??null,estimated_dispatch_min:(C==null?void 0:C.estimated_dispatch_min)??null,estimated_dispatch_max:(C==null?void 0:C.estimated_dispatch_max)??null,estimated_arrival_min:(C==null?void 0:C.estimated_arrival_min)??null,estimated_arrival_max:(C==null?void 0:C.estimated_arrival_max)??null}})}const p=new Set(s.map(b=>b.story_id)),y=c.find(b=>(b.status==="upcoming"||b.status==="locked"||b.status==="generating"||b.status==="ready_for_review")&&b.story_id!==d&&!p.has(b.story_id))||null;if(y!=null&&y.story_id&&f.has(y.story_id)){const b=f.get(y.story_id);a={...y,cover_image_url:Pd(b==null?void 0:b.cover_image_url,b==null?void 0:b.updated_at)||void 0,story_title:(b==null?void 0:b.story_title)||void 0}}else a=y;const m=a==null?void 0:a.id,v=c.filter(b=>b.story_id!==d);let g=0;for(const b of v){if(p.has(b.story_id)){g++;continue}if(b.id===m){g++;continue}if(!b.story_id){g++;continue}const x=f.get(b.story_id);l.push({month_index:g,id:b.id,topic:b.topic||"",story_id:b.story_id,status:b.status,story_status:x==null?void 0:x.status,cover_image_url:Pd(x==null?void 0:x.cover_image_url,x==null?void 0:x.updated_at)||void 0,story_title:(x==null?void 0:x.story_title)||void 0,settings_override:b.settings_override||void 0,month:b.month}),g++}}return{subscription:e,nextMonth:a,pastBooks:s,characters:n,freeSample:o,upcomingMonths:l}}async function ymt(e){var b;const[t,r,n,a]=await Promise.all([oe.from("book_club_subscriptions").select("*").eq("user_id",e).in("status",["active","past_due"]).order("created_at",{ascending:!0}),oe.from("stories").select("id, story_title, cover_image_url, updated_at, status, intended_entitlement, qa_status").eq("user_id",e).eq("is_free_sample",!0).or("cover_image_url.not.is.null,status.in.(completed,review,generating,analyzing)").order("created_at",{ascending:!1}).limit(1).maybeSingle(),oe.from("book_club_months").select("id, month, topic, story_id, status, created_at").eq("user_id",e).in("status",["teaser","generating_teaser"]).is("subscription_id",null).order("month",{ascending:!0}),oe.from("stories").select("id, status, age_range, language, reading_level, illustration_style, story_title, created_at, cover_image_url, intended_entitlement").eq("user_id",e).neq("intended_entitlement","book_club_teaser").neq("intended_entitlement","membership_included").is("imported_from_story_id",null).in("status",["draft","questionnaire","style_selection","character_review","analyzing","generating","ready"]).order("created_at",{ascending:!1}).limit(1).maybeSingle()]),s=a.data??null;let o=null;const l=r.data;if(l){const x=l.intended_entitlement;o={id:l.id,title:l.story_title||"Your First Story",coverUrl:Pd(l.cover_image_url,l.updated_at),status:l.status,qaStatus:l.qa_status??null,intendedEntitlement:x??null,expectsTeasers:x==="free_sample"||x==="membership_included",updatedAt:l.updated_at}}else{const{data:x}=await oe.from("stories").select("id, story_title, cover_image_url, updated_at, status, intended_entitlement, qa_status").eq("user_id",e).neq("intended_entitlement","book_club_teaser").eq("is_overage",!1).is("imported_from_story_id",null).in("status",["completed","review"]).not("cover_image_url","is",null).order("created_at",{ascending:!1}).limit(1).maybeSingle();if(x){const _=x.intended_entitlement;o={id:x.id,title:x.story_title||"Your First Story",coverUrl:Pd(x.cover_image_url,x.updated_at),status:x.status,qaStatus:x.qa_status??null,intendedEntitlement:_??null,expectsTeasers:_==="free_sample"||_==="membership_included",updatedAt:x.updated_at}}}let c=[];const u=n.data||[];if(u.length>0){const x=u.map(w=>
8044w.story_id).filter(Boolean);let _=new Map;if(x.length>0){const{data:w}=await oe.from("stories").select("id, story_title, cover_image_url, intended_entitlement, updated_at, imported_from_story_id, status, qa_status").in("id",x);_=new Map((w==null?void 0:w.map(j=>[j.id,j]))||[])}c=u.map(w=>{var j,E,C,N,A,$,T;return{...w,cover_image_url:Pd((j=_.get(w.story_id))==null?void 0:j.cover_image_url,(E=_.get(w.story_id))==null?void 0:E.updated_at)||void 0,story_title:((C=_.get(w.story_id))==null?void 0:C.story_title)||void 0,intended_entitlement:((N=_.get(w.story_id))==null?void 0:N.intended_entitlement)||null,imported_from_story_id:((A=_.get(w.story_id))==null?void 0:A.imported_from_story_id)||null,story_status:($=_.get(w.story_id))==null?void 0:$.status,story_updated_at:(T=_.get(w.story_id))==null?void 0:T.updated_at}})}const d=t.data||[];if(d.length===0)return{freeSample:o,teaserBooks:c,subDataList:[],unlinkedStories:[],inProgressStory:s};const h=await Promise.all(d.map(x=>gmt(x))),f=new Set,p=new Set,{data:y}=await oe.from("book_club_months").select("story_id").eq("user_id",e).not("story_id","is",null);for(const x of y||[])x.story_id&&f.add(x.story_id);for(const x of h)(b=x.freeSample)!=null&&b.id&&p.add(x.freeSample.id);for(const x of u)x.story_id&&f.add(x.story_id);const{data:m}=await oe.from("stories").select("id, story_title, cover_image_url, updated_at").eq("user_id",e).eq("is_free_sample",!1).eq("is_overage",!1).is("imported_from_story_id",null).in("status",["completed","review"]).not("cover_image_url","is",null).neq("intended_entitlement","book_club_teaser").order("created_at",{ascending:!1}),g=(m||[]).filter(x=>!f.has(x.id)&&!p.has(x.id)).map(x=>({id:x.id,title:x.story_title||"Untitled",coverUrl:Pd(x.cover_image_url,x.updated_at)}));return{freeSample:o,teaserBooks:c,subDataList:h,unlinkedStories:g,inProgressStory:s}}const vmt={upcoming:{label:"Coming up",icon:ic,color:"bg-primary/10 text-primary border border-primary/20"},locked:{label:"Locked in",icon:Da,color:"bg-amber-50 text-amber-700 border border-amber-200"},generating:{label:"Creating your book",icon:Me,color:"bg-purple-50 text-purple-700 border border-purple-200"},printing:{label:"Printing",icon:vl,color:"bg-orange-50 text-orange-700 border border-orange-200"},shipped:{label:"Shipped!",icon:Ty,color:"bg-emerald-50 text-emerald-700 border border-emerald-200"},delivered:{label:"Delivered",icon:_r,color:"bg-emerald-50 text-emerald-700 border border-emerald-200"},failed:{label:"Issue â we're on it",icon:Da,color:"bg-red-50 text-red-700 border border-red-200"}},xmt=[{q:"How does Kibbi Book Club work?",a:"Every month, we create a brand-new personalized book just for your family. You choose the topic, characters, illustration style, and reading level â or let us surprise you. Each book is professionally printed, beautifully illustrated, and shipped straight to your door. It's like having your own private children's book publisher."},{q:"Can I change what the next book will be about?",a:"Absolutely. Before each book goes into production, you can pick the topic, swap out characters, change the illustration style, or adjust the reading level. Want a story about a brave dragon one month and a mystery on the moon the next? Go for it. You're always in control â or you can sit back and let us choose something wonderful."},{q:"Who can the stories be about?",a:"Anyone and anything! Your child, their best friend, a pet, a made-up character, or even a talking sandwich. You describe the characters and we bring them to life. Once you've created a character, they'll look the same in every book â so you can build a whole series around them."},{q:"What ages are the books designed for?",a:"We create books for children aged 0 to 9. Each book is adapted to the right developmental stage â simpler vocabulary and gentler themes for toddlers, richer stories and more complex adventures for older readers. You set the age range and reading level, and we match the content perfectly."},{q:"How much does it cost?",a:"Paperback: $16.99/month. Hardcover: $29.99/month. Shipping is calculated at checkout based on your location. Each month you receive a professionally printed and illustrated book, plus a digital version you can read anytime on Kibbi. No hidden fees."},{q:"How long does shipping take?",a:"Each book is printed on demand, so production takes about 6â8 business days. Shipping time depends on your location â typically 3â7 days within the US, and 7â14 days internationally. We ship worldwide."},{q:"Can I cancel anytime?",a:"Yes, no strings attached. Cancel from your subscription page whenever you want. You keep all the books you've already received, both physical and digital. If you change your mind later, you can restart just as easily."}];function Upe(){return i.jsxs("section",{className:"mt-16 mb-4 border-t border-border/40 pt-10",children:[i.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-foreground tracking-tight text-center mb-8",children:"Frequently Asked Questions"}),i.jsx(Sv,{type:"single",collapsible:!0,className:"space-y-2",children:xmt.map((e,t)=>i.jsxs(bi,{value:`faq-${t}`,className:"border-b border-border/40",children:[i.jsx(wi,{className:"text-left text-foreground hover:no-underline py-4",children:e.q}),i.jsx(ki,{className:"text-muted-foreground pb-4",children:e.a})]},t))})]})}function yX({freeSample:e,pastBooks:t,teaserBooks:r,nextMonth:n,totalMonths:a,isSubscribed:s,onMonthClick:o,onEditMonth:l,isAdmin:c,onDeleteMonth:u,upcomingMonths:d,subscriptionCreatedAt:h,generationDayOfMonth:f}){const p=(d==null?void 0:d.length)||0,y=t.length+2+p,m=Math.max(a,y+3),v=Array.from({length:m},(x,_)=>_+1),g=x=>{if(x===1&&e){const w=s?e.printStatus:void 0,j=w==="printing"||w==="shipped"||w==="delivered"||w==="failed";return{type:"sample",title:e.title,coverUrl:e.coverUrl,storyId:e.id,storyStatus:e.status,printStatus:w,trackingUrl:e.trackingUrl??void 0,carrierName:e.carrierName??void 0,estimatedDispatchMin:e.estimatedDispatchMin??void 0,estimatedDispatchMax:e.estimatedDispatchMax??void 0,estimatedArrivalMin:e.estimatedArrivalMin??void 0,estimatedArrivalMax:e.estimatedArrivalMax??void 0,sendsToPrint:s&&!j?mX(e.monthDate||null,{generationDayOfMonth:f,subscriptionCreatedAt:h}):null}}const _=x-2;if(_>=0&&_<t.length){const w=t[_];return{type:"delivered",title:w.story_title||w.topic,coverUrl:w.cover_image_url||"",storyId:w.story_id,printStatus:w.status,trackingUrl:w.tracking_url||void 0,carrierName:w.carrier_name||void 0,estimatedDispatchMin:w.estimated_dispatch_min||void 0,estimatedDispatchMax:w.estimated_dispatch_max||void 0,estimatedArrivalMin:w.estimated_arrival_min||void 0,estimatedArrivalMax:w.estimated_arrival_max||void 0}}if(s&&d){const w=x-2,j=d.find(E=>E.month_index===w);if(j){const E=j.status==="upcoming"||j.status==="generating_teaser"||j.status==="teaser";return{type:"delivered",title:j.story_title||j.topic||`Book ${x}`,coverUrl:j.cover_image_url||"",storyId:j.story_id||"",storyStatus:j.story_status,editable:E,sendsToPrint:E?mX(j.month,{generationDayOfMonth:f,subscriptionCreatedAt:h}):null}}}if(s&&n&&x===y){const w=n.status!=="ready_for_review";return{type:"next",title:n.topic||"Coming soon",coverUrl:n.cover_image_url||"",storyId:n.story_id,editable:w,sendsToPrint:mX(n.month,{generationDayOfMonth:f,subscriptionCreatedAt:h})}}if(!s){const w=x-2-t.length;if(w>=0&&w<r.length){const j=r[w],E=j.intended_entitlement&&j.intended_entitlement!=="book_club_teaser"?"delivered":"teaser",C=j.story_status,N=UCe({story_id:j.story_id||null,created_at:j.created_at||null})?"failed":C;return{type:E,title:j.story_title||`Book ${x}`,coverUrl:j.cover_image_url||"",storyId:j.story_id||"",storyStatus:N}}}return{type:"locked",title:"",coverUrl:""}},b=k.useRef(null);return k.useEffect(()=>{const x=b.current;if(!x)return;const _=w=>{if(Math.abs(w.deltaY)>Math.abs(w.deltaX)){const j=x.scrollLeft<=0&&w.deltaY<0,E=x.scrollLeft>=x.scrollWidth-x.clientWidth&&w.deltaY>0;if(j||E)return;w.preventDefault(),x.scrollLeft+=w.deltaY}};return x.addEventListener("wheel",_,{passive:!1}),()=>x.removeEventListener("wheel",_)},[]),i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute -right-6 top-0 bottom-2 w-12 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none"}),i.jsx("div",{ref:b,className:"overflow-x-auto -mx-6 px-6 pb-2 scrollbar-hide cursor-grab active:cursor-grabbing",style:{WebkitOverflowScrolling:"touch"},children:i.jsx("div",{className:"flex gap-5",style:{minWidth:`${m*200}px`},children:v.map(x=>{const _=g(x);return i.jsxs("div",{"data-testid":`month-card-${x}`,onClick:()=>_.type!=="teaser"&&o(x),className:`text-left shrink-0 flex flex-col ${_.type!=="teaser"?"group cursor-pointer":"cursor-default"}`,style:{width:180},role:_.type!=="teaser"?"button":void 0,children:[i.jsxs("div",{className:"relative w-full rounded-xl mb-2 transition-all duration-200 flex flex-col items-center justify-center gap-2",style:{aspectRatio:"2/3"},children:[_.coverUrl?i.jsxs(i.Fragment,{children:[i.jsx("img",{src:_.coverUrl,alt:_.title,className:"w-full h-full object-cover rounded-xl animate-in fade-in duration-500"},_.coverUrl),_.type==="teaser"&&i.jsx("div",{className:"absolute inset-0 rounded-xl bg-black/50 flex items-center justify-center",children:i.jsx(Hd,{className:"h-8 w-8 text-white/80"})})]}):_.type==="next"?i.jsxs("div",{className:"w-full h-full rounded-xl border-2 border-primary/30 bg-primary/5 flex flex-col items-center justify-center gap-2",children:[i.jsx(ic,{className:"h-6 w-6 text-primary/50"}),i.jsx("p",{className:"text-[10px] text-primary/60 text-center px-3 line-clamp-2",children:_.title})]}):_.type==="locked"?i.jsx("div",{className:"w-full h-full rounded-xl border-2 border-dashed border-border/60 bg-muted/20 flex flex-col items-center justify-center gap-2 group-hover:border-primary/40",children:i.jsx(ic,{className:"h-6 w-6 text-muted-foreground
8044/20"})}):(_.type==="teaser"||_.type==="sample"||_.type==="delivered")&&_.storyStatus==="failed"?i.jsxs("div",{className:"w-full h-full rounded-xl border-2 border-dashed border-destructive/30 bg-destructive/5 flex flex-col items-center justify-center gap-1 px-3",children:[i.jsx(Da,{className:"h-5 w-5 text-destructive/50"}),i.jsx("p",{className:"text-[10px] text-destructive/70 text-center leading-tight",children:"Couldn't generate this month's preview"})]}):_.type==="teaser"||_.type==="sample"||_.type==="delivered"?i.jsx("div",{className:"w-full h-full rounded-xl bg-muted/40 shadow-md overflow-hidden relative animate-pulse",children:i.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2",children:[i.jsx(Me,{className:"h-5 w-5 text-muted-foreground/50 animate-spin"}),i.jsxs("p",{className:"text-[10px] text-muted-foreground/70 text-center px-3",children:["Preparing month ",x,"â¦"]})]})}):i.jsx("div",{className:"w-full h-full rounded-xl bg-muted/50 shadow-md group-hover:shadow-lg group-hover:-translate-y-1 flex items-center justify-center",children:i.jsx(xr,{className:"h-6 w-6 text-muted-foreground/40"})}),(()=>{const w=_.printStatus;if(_.type!=="delivered"&&_.type!=="sample"||!w)return null;const j=vmt[w];if(!j||w==="delivered")return null;const E=j.icon;return i.jsxs("div",{className:`absolute top-2 left-2 z-20 flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-medium shadow-sm ${j.color}`,"data-testid":"month-status-badge",children:[i.jsx(E,{className:"h-3 w-3 "}),i.jsx("span",{children:j.label})]})})(),c&&u&&(_.type==="delivered"||_.type==="sample")&&_.coverUrl&&i.jsx("button",{onClick:w=>{w.stopPropagation(),w.preventDefault(),u(x)},className:"absolute top-2 right-2 z-20 p-2 rounded-full bg-destructive text-destructive-foreground hover:bg-destructive/80 shadow-md transition-colors",title:"Delete story",children:i.jsx(ws,{className:"h-4 w-4"})})]}),i.jsxs("p",{className:"text-[10px] font-medium uppercase tracking-widest text-muted-foreground",children:["Month ",x]}),i.jsx("p",{className:"text-xs font-medium mt-0.5 line-clamp-1 group-hover:text-primary transition-colors h-4",children:_.type==="sample"||_.type==="delivered"||_.type==="teaser"?_.title:_.type==="next"?s?"Up next":"Subscribe":s?"":"Subscribe to unlock"}),(()=>{const w=_.printStatus,j=_.sendsToPrint;if(w==="printing"){const E=F3(_.estimatedDispatchMin),C=F3(_.estimatedDispatchMax),N=F3(_.estimatedArrivalMax);let A="Being printed";return E&&C?A=`Ships ~${E} â ${C}`:C?A=`Ships ~${C}`:N&&(A=`Arrives ~${N}`),i.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs font-normal","data-testid":"month-status-subtitle",children:A})}if(w==="shipped"){const E=F3(_.estimatedArrivalMax),C=_.carrierName,N=[];return E&&N.push(`Arrives ~${E}`),C&&N.push(`via ${C}`),i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs font-normal","data-testid":"month-status-subtitle",children:N.length>0?N.join(" "):"On its way"}),_.trackingUrl&&i.jsx("a",{href:_.trackingUrl,target:"_blank",rel:"noreferrer",onClick:A=>A.stopPropagation(),className:"text-[10px] text-primary hover:text-primary/80 underline underline-offset-2 mt-0.5","data-testid":"month-tracking-link",children:"Track â"})]})}return w==="failed"?i.jsx("p",{className:"text-destructive/80 mt-0.5 text-xs font-normal","data-testid":"month-status-subtitle",children:"Issue â we're on it"}):j?i.jsxs("p",{className:"text-muted-foreground mt-0.5 text-xs font-normal",children:["Sends to print on ",j]}):null})(),(_.type==="sample"||_.type==="delivered"&&!_.editable||_.type==="next"&&_.coverUrl&&!_.editable||c&&_.storyId&&_.coverUrl)&&_.coverUrl&&_.storyId&&i.jsx(or,{to:`/app/book-preview?id=${_.storyId}`,onClick:w=>w.stopPropagation(),children:i.jsx(le,{size:"sm",className:"mt-1.5 h-7 px-3 w-full text-sm",children:"Read story"})}),_.type==="teaser"&&i.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:"Subscribe to unlock"}),l&&s&&(_.type==="next"||_.type==="delivered"&&_.editable)&&i.jsx("button",{onClick:w=>{w.stopPropagation(),l(x)},className:"text-[10px] text-primary hover:text-primary/80 underline underline-offset-2 mt
8044-1",children:"Change details"})]},x)})})})]})}function bmt(){const e=wt(),{user:t,loading:r}=er(),{setStoryId:n,setAgeRange:a,setLanguage:s,setIllustrationStyle:o,setBookClubFlow:l,bookClubFlow:c,bookClubTargetId:u}=Zs(),{toast:d}=Xt(),{isAdmin:h}=Fr(),f=()=>{n(null),a(null),s(null),o(null),l(!0),e("/app/story-mode")},p=El(),y=ei({queryKey:t?gX(t.id):["bookClubDashboard","anonymous"],queryFn:()=>ymt(t.id),enabled:!!t&&!r,refetchInterval:Oe=>{const rt=Oe.state.data;return mmt(rt)},refetchIntervalInBackground:!0,staleTime:2e3}),m=y.data??{freeSample:null,teaserBooks:[],subDataList:[],unlinkedStories:[],inProgressStory:null},v=m.subDataList,g=m.teaserBooks,b=m.freeSample,x=m.unlinkedStories,_=m.inProgressStory,w=r||y.isLoading&&!!t,j=Oe=>{t&&p.setQueryData(gX(t.id),rt=>rt&&Oe(rt))},E=async()=>{t&&await p.invalidateQueries({queryKey:gX(t.id)})},[C,N]=k.useState(0),[A,$]=k.useState(!1),[T,F]=k.useState(!1),[M,z]=k.useState(null),[Y,W]=k.useState(!1),[ee,Z]=k.useState(!1),[V,ne]=k.useState(""),[P,R]=k.useState(!1),[H,re]=k.useState(null),[ae,D]=k.useState(""),[U,se]=k.useState(""),[te,Q]=k.useState(""),[K,ue]=k.useState(""),[B,pe]=k.useState(""),[G,I]=k.useState(null),[L,q]=k.useState(!1),[X,ie]=k.useState([]),[J,fe]=k.useState([]),[ve,ge]=k.useState(!1),[de,ye]=k.useState(null),[_e,Fe]=k.useState(""),[ht,_t]=k.useState("");k.useEffect(()=>{r||t||e("/login")},[t,r,e]);const xe=k.useRef(!1);k.useEffect(()=>{if(!h||!t||!c||!u||xe.current)return;xe.current=!0;let Oe=!1;const rt=3e3,nt=12e4,yt=1e4;return(async()=>{var tt;try{const{data:$e,error:At}=await oe.from("stories").select("user_id").eq("id",u).maybeSingle();if(Oe)return;if(At||!$e||$e.user_id!==t.id){console.warn("[Dashboard] Stale bookClubFlow target â not owned by current user, clearing."),l(!1),xe.current=!1;return}}catch($e){console.error("[Dashboard] Pre-flight ownership check failed:",$e),xe.current=!1;return}for(;!Oe;)try{const $e=Date.now();let At=null;for(;!Oe;){const{data:Kt,error:$r}=await oe.from("stories").select("id, status, age_range, reading_level, illustration_style, language").eq("id",u).single();if($r&&!Kt){const ar=$r==null?void 0:$r.code;if(ar==="PGRST116"||ar==="42501"){xe.current=!1;return}}if(Kt&&["review","completed"].includes(Kt.status)){At=Kt;break}if(Date.now()-$e>nt)break;await new Promise(ar=>setTimeout(ar,rt))}if(Oe)break;if(!At){await new Promise(Kt=>setTimeout(Kt,yt));continue}d({title:"Creating subscription...",description:"Setting up your new book club series."});const at=await oe.functions.invoke("create-book-club-subscription",{body:{storyId:u,ageRange:At.age_range||"3-5",readingLevel:At.reading_level||"read-aloud",illustrationStyle:At.illustration_style||"watercolor-pastel",language:At.language||"english",productType:"hardcover"}});if(Oe)break;if(at.error)throw at.error;const Zt=at.data;if(Zt!=null&&Zt.error)throw new Error(Zt.error);l(!1),d({title:"Subscription created!",description:"New book club series activated."}),await E();return}catch($e){if(Oe)break;const At=String(($e==null?void 0:$e.message)||((tt=$e==null?void 0:$e.context)==null?void 0:tt.body)||$e||"");if(At.includes("You do not own this story")||At.includes("Story not found")||At.includes("storyId is required")||At.includes("already exists")||At.includes("already has an active subscription")){console.warn("[Dashboard] Admin auto-subscription permanent error, clearing flow:",At),l(!1),xe.current=!1,d({title:"Couldn't resume subscription setup",description:"Cleared a stale book club flow. Start a new series from the dashboard.",variant:"destructive"});return}console.error("[Dashboard] Admin auto-subscription failed:",$e),d({title:"Subscription setup failed",description:"Retrying...",variant:"destructive"}),await new Promise(Zt=>setTimeout(Zt,yt))}xe.current=!1})(),()=>{Oe=!0}},[h,t,c,u]);const je=v[C]||null,ut=async()=>{if(!(je!=null&&je.nextMonth)||!V.trim())return;const{error:Oe}=await oe.from("book_club_months").update({topic:V.trim(),topic_source:"user"}).eq("id",je.nextMonth.id);Oe?d({title:"Error",description:"Failed to update topic.",variant:"destructive"}):(j(rt=>({...rt,subDataList:rt.subDataList.map((nt,yt)=>yt!==C?nt:{...nt,nextMonth:{...nt.nextMonth,topic:V.trim(),topic_source:"user"}})})),Z(!1),d({title:"Topic updated"}))},Ot=async()=>
8044{if(!_e.trim()||!je)return;const Oe=je.characters;if(de){const{error:rt}=await oe.from("book_club_characters").update({name:_e.trim(),profile:ht.trim()}).eq("id",de.id);rt?d({title:"Error",description:"Failed to update character.",variant:"destructive"}):(j(nt=>({...nt,subDataList:nt.subDataList.map((yt,tt)=>tt!==C?yt:{...yt,characters:yt.characters.map($e=>$e.id===de.id?{...$e,name:_e.trim(),profile:ht.trim()}:$e)})})),d({title:"Character updated"}))}else{const{data:rt,error:nt}=await oe.from("book_club_characters").insert({user_id:t.id,subscription_id:je.subscription.id,name:_e.trim(),profile:ht.trim(),sort_order:Oe.length}).select().single();nt?d({title:"Error",description:"Failed to add character.",variant:"destructive"}):rt&&(j(yt=>({...yt,subDataList:yt.subDataList.map((tt,$e)=>$e!==C?tt:{...tt,characters:[...tt.characters,rt]})})),d({title:"Character added"}))}ge(!1),ye(null),Fe(""),_t("")},lt=(Oe,rt)=>{const nt=rt??C;N(nt);const yt=v[nt],tt=yt==null?void 0:yt.subscription,$e=yt==null?void 0:yt.nextMonth,At=(yt==null?void 0:yt.pastBooks)||[],at=(yt==null?void 0:yt.characters)||[],Zt=(yt==null?void 0:yt.upcomingMonths)||[],Kt=tt||{illustration_style:"watercolor-pastel",age_range:"3-5",reading_level:"read-aloud"},$r=Oe-2-At.length,ar=!tt&&$r>=0&&$r<g.length?g[$r]:null,_a=Oe-2,Pi=tt&&Zt.find(jt=>jt.month_index===_a)||null;if(ar){re(ar.id),D(ar.topic||"");const jt=ar.settings_override||{};se(jt.illustration_style||Kt.illustration_style||"watercolor-pastel"),Q(jt.age_range||Kt.age_range||"3-5"),ue(jt.reading_level||Kt.reading_level||"read-aloud"),pe(jt.language||Kt.language||"english"),I("teaser"),ar.story_id&&!jt.illustration_style&&oe.from("stories").select("language, illustration_style, age_range, reading_level").eq("id",ar.story_id).single().then(({data:yr})=>{yr&&(!jt.language&&yr.language&&pe(yr.language),!jt.illustration_style&&yr.illustration_style&&se(yr.illustration_style),!jt.age_range&&yr.age_range&&Q(yr.age_range),!jt.reading_level&&yr.reading_level&&ue(yr.reading_level.replace(/_/g,"-")))})}else if($e&&Oe===At.length+2+Zt.length){re($e.id),D($e.topic||"");const jt=$e.settings_override||{};se(jt.illustration_style||Kt.illustration_style||"watercolor-pastel"),Q(jt.age_range||Kt.age_range||"3-5"),ue(jt.reading_level||Kt.reading_level||"read-aloud"),pe(jt.language||Kt.language||"english"),I($e.status)}else if(Pi){re(Pi.id),D(Pi.topic||"");const jt=Pi.settings_override||{};se(jt.illustration_style||Kt.illustration_style||"watercolor-pastel"),Q(jt.age_range||Kt.age_range||"3-5"),ue(jt.reading_level||Kt.reading_level||"read-aloud"),pe(jt.language||Kt.language||"english"),I(Pi.status),Pi.story_id&&!jt.illustration_style&&oe.from("stories").select("language, illustration_style, age_range, reading_level").eq("id",Pi.story_id).single().then(({data:yr})=>{yr&&(!jt.language&&yr.language&&pe(yr.language),!jt.illustration_style&&yr.illustration_style&&se(yr.illustration_style),!jt.age_range&&yr.age_range&&Q(yr.age_range),!jt.reading_level&&yr.reading_level&&ue(yr.reading_level.replace(/_/g,"-")))})}else re(null),D(""),se(Kt.illustration_style||"watercolor-pastel"),Q(Kt.age_range||"3-5"),ue(Kt.reading_level||"read-aloud"),pe(Kt.language||"english"),I(null);ie([]);const Nc=(ar==null?void 0:ar.story_id)||($e==null?void 0:$e.story_id)||(Pi==null?void 0:Pi.story_id);if(!Nc&&t&&at.length>0){ie(at.map(jt=>({name:jt.name,context:jt.profile||jt.description||"",isPrimary:jt.is_primary}))),fe(at.map(jt=>({name:jt.name,suggested_description:jt.profile||jt.description}))),R(!0);return}Nc&&oe.from("stories").select("detected_characters, character_descriptions, character_profiles").eq("id",Nc).single().then(({data:jt})=>{let yr=jt==null?void 0:jt.detected_characters;if(typeof yr=="string")try{yr=JSON.parse(yr)}catch{yr=null}if(yr&&Array.isArray(yr)&&yr.length>0)fe(yr),ie(yr.map((Ao,hn)=>({name:Ao.name||"",context:Ao.suggested_description||"",isPrimary:hn===0})));else if(jt!=null&&jt.character_descriptions){const Ao=jt.character_descriptions.split(` 8045`).filter(Rn=>Rn.includes(":")).map(Rn=>{const As=Rn.match(/^\d*\.?\s*(.+?)(?:\s*\(.*?\))?:\s*/);return As?As[1].trim():null}
8045).filter(Boolean),hn=jt.character_profiles||"",Li=Ao.map((Rn,As)=>({name:Rn,context:"",isPrimary:As===0}));if(hn&&Li.length>0){const Rn=hn.match(/Core behavior pattern:\s*(.+)/i);Rn&&Li.length===1&&(Li[0].context=Rn[1].trim())}Li.length>0&&(fe(Li.map(Rn=>({name:Rn.name,suggested_description:Rn.context}))),ie(Li))}}),R(!0)},et=async()=>{const Oe=je==null?void 0:je.nextMonth,rt=(je==null?void 0:je.characters)||[],nt={illustration_style:U,age_range:te,reading_level:K,language:B};if(H){const{error:yt}=await oe.from("book_club_months").update({topic:ae.trim(),topic_source:ae.trim()?"user":"kibbi",settings_override:nt}).eq("id",H);if(yt)d({title:"Error",description:"Failed to save settings.",variant:"destructive"});else{if(Oe&&H===Oe.id&&j(tt=>({...tt,subDataList:tt.subDataList.map(($e,At)=>At!==C?$e:{...$e,nextMonth:{...$e.nextMonth,topic:ae.trim(),topic_source:ae.trim()?"user":"kibbi",settings_override:nt}})})),X.length>0){if(Oe!=null&&Oe.story_id){const tt=X.map((At,at)=>({...J[at]||{},name:At.name,suggested_description:At.context})),{error:$e}=await oe.from("stories").update({detected_characters:tt}).eq("id",Oe.story_id);if($e){d({title:"Error",description:"Failed to save character edits.",variant:"destructive"});return}}if(t&&rt.length>0){const tt=[],$e=X.slice(0,rt.length).map((At,at)=>oe.from("book_club_characters").update({name:At.name,profile:At.context,is_primary:At.isPrimary}).eq("id",rt[at].id).then(({error:Zt})=>{Zt&&tt.push(Zt.message)}));if(await Promise.all($e),tt.length>0){d({title:"Error",description:"Some character changes failed to sync.",variant:"destructive"});return}}}rt.length>0&&j(tt=>({...tt,subDataList:tt.subDataList.map(($e,At)=>At!==C?$e:{...$e,characters:$e.characters.map((at,Zt)=>Zt<X.length?{...at,name:X[Zt].name,profile:X[Zt].context,is_primary:X[Zt].isPrimary}:at)})})),d({title:"Book settings saved"}),G==="teaser"&&H&&(q(!0),d({title:"Regenerating preview...",description:"Updating story and cover."}),oe.functions.invoke("regenerate-teaser",{body:{monthId:H}}).then(({data:tt,error:$e})=>{q(!1),$e||tt!=null&&tt.error?d({title:"Regeneration failed",description:"Please try again.",variant:"destructive"}):E()}).catch(()=>{q(!1)}))}}R(!1)};if(w)return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Ba,{}),i.jsx("div",{className:"flex items-center justify-center h-64",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-muted-foreground"})})]});const It=v.length>0,wr=(Oe,rt)=>{const nt=rt!=null?v[rt]:null,yt=(nt==null?void 0:nt.pastBooks)||[],tt=(nt==null?void 0:nt.freeSample)||b;let $e=null,At="";if(Oe===1&&tt)$e=tt.id,At=tt.title;else{const at=Oe-2;if(at>=0&&at<yt.length){const Zt=yt[at];$e=Zt.story_id,At=Zt.story_title||Zt.topic}else{const Zt=at-yt.length;if(Zt>=0&&Zt<g.length){const Kt=g[Zt];$e=Kt.story_id,At=Kt.story_title||Kt.topic}}}$e&&z({id:$e,title:At,month:Oe})},rr=async()=>{if(M){W(!0);try{const{error:Oe}=await oe.functions.invoke("delete-story",{body:{storyId:M.id}});if(Oe)throw Oe;d({title:"Story deleted",description:`"${M.title}" has been removed.`}),z(null),await E()}catch(Oe){d({title:"Failed to delete story",description:Oe.message,variant:"destructive"})}finally{W(!1)}}};return It?i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"My Book Club - Kibbi"}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Ba,{}),i.jsxs("main",{className:"max-w-3xl mx-auto px-6 py-10 space-y-10",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"font-serif text-3xl md:text-4xl text-foreground tracking-tight",children:"Your Book Club"}),i.jsx("p",{className:"text-muted-foreground mt-1",children:"A new personalized book, every month."})]}),i.jsxs(le,{variant:"outline",size:"sm",onClick:()=>f(),className:"flex items-center gap-1.5",children:[i.jsx(uc,{className:"h-3.5 w-3.5"})," Add another child"]})]}),_&&i.jsxs("div",{className:"rounded-xl border border-amber-200 bg-amber-50 dark:bg-amber-950/20 dark:border-amber-800 p-4 flex items-center justify-between gap-3",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(Da,{className:"h-5 w-5 text-amber-600 dar
8045k:text-amber-400 shrink-0"}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-foreground",children:"You have a story in progress"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:_.story_title||"Untitled story"})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[["questionnaire","draft","style_selection","character_review","ready"].includes(_.status)&&i.jsxs(le,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>$(!0),children:[i.jsx(ws,{className:"h-3.5 w-3.5 mr-1"})," Discard"]}),i.jsxs(le,{variant:"outline",size:"sm",onClick:()=>e(Cb(_)),children:["Continue ",i.jsx(du,{className:"h-3.5 w-3.5 ml-1"})]})]})]}),v.map((Oe,rt)=>{var tt;const nt=Oe.subscription,yt=Oe.freeSample;return i.jsxs("section",{className:"space-y-4",children:[(v.length>1||nt.child_name)&&i.jsx("h2",{className:"font-serif text-2xl text-foreground tracking-tight",children:nt.child_name?`${nt.child_name}'s Series`:`Series ${rt+1}`}),i.jsx(yX,{freeSample:yt,pastBooks:Oe.pastBooks,teaserBooks:[],nextMonth:Oe.nextMonth,totalMonths:12,isSubscribed:!0,isAdmin:h,upcomingMonths:Oe.upcomingMonths,subscriptionCreatedAt:nt.created_at,generationDayOfMonth:nt.generation_day_of_month,onDeleteMonth:h?$e=>wr($e,rt):void 0,onMonthClick:$e=>{var Zt,Kt;const At=((Zt=Oe.upcomingMonths)==null?void 0:Zt.length)||0,at=Oe.pastBooks.length+2+At;if($e===1)yt&&e(`/app/book-preview?id=${yt.id}`);else if(Oe.nextMonth&&$e===at&&Oe.nextMonth.status==="upcoming"){if(h&&Oe.nextMonth.story_id){e(`/app/book-preview?id=${Oe.nextMonth.story_id}`);return}lt($e,rt)}else if(Oe.nextMonth&&$e===at&&Oe.nextMonth.status==="ready_for_review"&&Oe.nextMonth.story_id)e(`/app/book-preview?id=${Oe.nextMonth.story_id}`);else{const $r=(Kt=Oe.upcomingMonths)==null?void 0:Kt.find(_a=>_a.month_index===$e-2);if($r&&($r.status==="upcoming"||$r.status==="generating_teaser"||$r.status==="teaser")){if(h&&$r.story_id){e(`/app/book-preview?id=${$r.story_id}`);return}lt($e,rt);return}const ar=Oe.pastBooks[$e-2];
8045ar!=null&&ar.story_id&&e(`/app/book-preview?id=${ar.story_id}`)}},onEditMonth:$e=>lt($e,rt)}),i.jsxs("div",{className:"flex items-center gap-6 text-sm text-muted-foreground",children:[i.jsxs("span",{children:[i.jsx("span",{className:"capitalize",children:nt.status})," subscription"]}),((tt=nt.shipping_address)==null?void 0:tt.city)&&i.jsxs("span",{children:["Ships to ",nt.shipping_address.city,", ",nt.shipping_address.country]})]}),(rt<v.length-1||x.length>0)&&i.jsx("div",{className:"border-t border-border/40 pt-2"})]},nt.id)}),x.map((Oe,rt)=>i.jsxs("section",{className:"space-y-4",children:[i.jsx("h2",{className:"font-serif text-2xl text-foreground tracking-tight",children:"New Series"}),i.jsx(yX,{freeSample:Oe,pastBooks:[],teaserBooks:g.filter(nt=>!0),nextMonth:null,totalMonths:4,isSubscribed:!1,isAdmin:h,onMonthClick:nt=>{if(nt===1)e(`/app/book-preview?id=${Oe.id}`);else{const yt=g[nt-2];yt!=null&&yt.story_id&&yt.intended_entitlement!=="book_club_teaser"?e(`/app/book-preview?id=${yt.story_id}`):e(`/order-print/${Oe.id}?mode=book-club`)}}}),i.jsxs("div",{className:"rounded-xl bg-primary/5 border border-primary/20 p-4 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Start this series"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"From $16.99/mo + shipping · Paperback or Hardcover · Cancel anytime"})]}),i.jsx(le,{onClick:()=>e(`/order-print/${Oe.id}?mode=book-club`),className:"shrink-0",children:"Subscribe"})]}),rt<x.length-1&&i.jsx("div",{className:"border-t border-border/40 pt-2"})]},Oe.id)),i.jsx(Upe,{})]})]}),i.jsx(Xr,{open:ee,onOpenChange:Z,children:i.jsxs(Ur,{children:[i.jsxs(Nr,{children:[i.jsx(Tr,{children:"What should the next story be about?"}),i.jsx(ra,{children:"Describe a topic, theme, or scenario. Kibbi will create a unique story around it."})]}),i.jsx(Dr,{value:V,onChange:Oe=>ne(Oe.target.value),placeholder:"e.g., An adventure at the beach with a friendly crab",className:"min-h-[100px]"}),i.jsxs("div",{className:"flex gap-3 justify-end",children:[i.jsx(le,{variant:"outline",onClick:()=>Z(!1),children:"Cancel"}),i.jsx(le,{onClick:ut,disabled:!V.trim(),children:"Save"})]})]})}),i.jsx(Xr,{open:ve,onOpenChange:ge,children:i.jsxs(Ur,{children:[i.jsx(Nr,{children:i.jsx(Tr,{children:de?"Edit Character":"Add Character"})}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx(Nt,{children:"Name"}),i.jsx(Pt,{value:_e,onChange:Oe=>Fe(Oe.target.value),placeholder:"e.g., Luna"})]}),i.jsxs("div",{children:[i.jsx(Nt,{children:"Who they are"}),i.jsx(Dr,{value:ht,onChange:Oe=>_t(Oe.target.value),placeholder:"e.g., Luna's best friend, loves dinosaurs and building things",className:"min-h-[80px]"})]}),i.jsxs("div",{className:"flex gap-3 justify-end",children:[i.jsx(le,{variant:"outline",onClick:()=>ge(!1),children:"Cancel"}),i.jsx(le,{onClick:Ot,disabled:!_e.trim(),children:de?"Save":"Add"})]})]})]})}),i.jsx(Xr,{open:P,onOpenChange:R,children:i.jsxs(Ur,{className:"max-w-md",children:[i.jsxs(Nr,{children:[i.jsx(Tr,{children:"Book Settings"}),i.jsx(ra,{children:"Customize this upcoming book. Changes apply before generation."})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx(Nt,{children:"Topic"}),i.jsx(Dr,{value:ae,onChange:Oe=>D(Oe.target.value),placeholder:"e.g., An adventure at the beach with a friendly crab",className:"min-h-[80px]"})]}),i.jsxs("div",{children:[i.jsx(Nt,{children:"Illustration Style"}),i.jsxs(rn,{value:U,onValueChange:se,children:[i.jsx(Wr,{children:i.jsx(nn,{placeholder:"Select style..."})}),i.jsx(Gr,{children:["watercolor-pastel","whimsical-sketch","vintage-storybook","3d-family-film","stylized-vector","graphic"].map(Oe=>i.jsx(pt,{value:Oe,children:Oe.replace(/-/g," ")},Oe))})]})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[i.jsxs("div",{children:[i.jsx(Nt,{children:"Age Range"}),i.jsxs(rn,{value:te,onValueChange:Q,children:[i.jsx(Wr,{children:i.jsx(nn,{})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"0-2",children:"0â2"}),i.jsx(pt,{value:"3-5",children:"3â5"}),i.jsx(pt,{value:"6-9",children:"6â9"})]})]})]}),i.jsxs("div",{children:[i.jsx(Nt,{children:"Reading Level"}),i.jsxs(rn,{value:K,onValueChange:ue,children:[i.jsx(Wr,{children:i.jsx(nn,{})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"read-aloud",children:"Read aloud"}),i.jsx(pt,{value:"learning-to-read",children:"Learning to read"}),i.jsx(pt,{value:"independent-reader",children:"Independent reader"})]})]})]})]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx(Nt,{children:"Characters"}),i.jsxs(le,{type:"button",variant:"ghost",size:"sm",className:"text-xs h-7",onClick:()=>ie([...X,{name:"",context:"",isPrimary:!1}]),children:[i.jsx(uc,{className:"h-3 w-3 mr-1"}),"Add"]})]}),X.length===0?i.jsx("p",{className:"text-sm text-muted-foreground py-2",children:"No characters yet. Add characters for this book."}):i.jsx("div",{className:"space-y-2",children:X.map((Oe,rt)=>i.jsxs("div",{className:"flex gap-2 items-start",children:[i.jsx("button",{type:"button",onClick:()=>{const nt=[...X];nt[rt]={...nt[rt],isPrimary:!nt[rt].isPrimary},ie(nt)},className:`shrink-0 mt-1.5 text-[9px] uppercase tracking-wider font-semibold px-2 py-0.5 rounded-full border transition-colors ${Oe.isPrimary?"bg-primary/10 text-primary border-primary/30":"bg-muted text-muted-foreground border-border hover:border-primary/30"}`,title:Oe.isPrimary?"Main character (carries over)":"Side character (this book only)",children:Oe.isPrimary?"Main":"Side"}),i.jsx(Pt,{value:Oe.name,onChange:nt=>{const yt=[...X];yt[rt]={...yt[rt],name:nt.target.value},ie(yt)},placeholder:"Name",className:"w-1/4"}),i.jsx(Pt,{value:Oe.context,onChange:nt=>{const yt=[...X];yt[rt]={...yt[rt],context:nt.target.value},ie(yt)},placeholder:"Who they are",className:"flex-1"}),i.jsx(le,{type:"button",variant:"ghost",size:"sm",className:"h-9 w-9 p-0 shrink-0 text-destructive/60 hover:text-destructive",onClick:()=>{ie(X.filter((nt,yt)=>yt!==rt)),fe(J.filter((nt,yt)=>yt!==rt))},children:i.jsx(ws,{className:"h-3.5 w-3.5"})})]},rt))})]}),i.jsxs("div",{className:"flex gap-3 justify-end",children:[i.jsx(le,{variant:"outline",onClick:()=>R(!1),children:"Cancel"}),i.jsx(le,{onClick:et,children:"Save"})]})]})]})}),i.jsx(Jl,{open:A,onOpenChange:$,children:i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Discard this draft?"}),i.jsx(hl,{children:"This will permanently delete your in-progress story. This action cannot be undone."})]}),i.jsxs(ul,{children:[i.jsx(pl,{disabled:T,children:"Cancel"}),i.jsxs(fl,{disabled:T,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:async()=>
8045{if(_){F(!0);try{const{error:Oe}=await oe.functions.invoke("delete-story",{body:{storyId:_.id}});if(Oe)throw Oe;b&&b.id!==_.id&&!b.coverUrl&&(await oe.functions.invoke("delete-story",{body:{storyId:b.id}}),t&&await oe.from("profiles").update({free_sample_used:!1,free_sample_story_id:null,free_sample_created_at:null}).eq("id",t.id)),j(rt=>({...rt,inProgressStory:null,freeSample:null})),$(!1),d({title:"Draft discarded"}),await E()}catch(Oe){d({title:"Failed to discard draft",description:Oe.message,variant:"destructive"})}finally{F(!1)}}},children:[T?i.jsx(Me,{className:"h-4 w-4 animate-spin mr-1"}):null,"Discard"]})]})]})}),i.jsx(Jl,{open:!!M,onOpenChange:Oe=>!Oe&&z(null),children:i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Delete this story?"}),i.jsxs(hl,{children:['This will permanently delete "',M==null?void 0:M.title,'" (Month ',M==null?void 0:M.month,") and all related data. This action cannot be undone."]})]}),i.jsxs(ul,{children:[i.jsx(pl,{disabled:Y,children:"Cancel"}),i.jsxs(fl,{disabled:Y,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:rr,children:[Y?i.jsx(Me,{className:"h-4 w-4 animate-spin mr-1"}):null,"Delete"]})]})]})})]}):i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"My Book Club - Kibbi"}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Ba,{}),i.jsxs("main",{className:"max-w-3xl mx-auto px-6 py-10 space-y-10",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"font-serif text-3xl md:text-4xl text-foreground tracking-tight",children:"Your Book Club"}),i.jsx("p",{className:"text-muted-foreground mt-1",children:"A new personalized book, every month."})]}),b||g.length>0?i.jsxs(i.Fragment,{children:[i.jsx(yX,{freeSample:b,pastBooks:[],teaserBooks:g,nextMonth:null,totalMonths:12,isSubscribed:!1,isAdmin:h,onDeleteMonth:h?wr:void 0,onMonthClick:Oe=>{if(Oe===1)b?e(`/app/book-preview?id=${b.id}`):_&&e(Cb(_));else{const rt=g[Oe-2];rt!=null&&rt.story_id&&rt.intended_entitlement!=="book_club_teaser"?e(`/app/book-preview?id=${rt.story_id}`):b&&e(`/order-print/${b.id}?mode=book-club`)}}}),i.jsxs("div",{className:"rounded-xl bg-primary/5 border border-primary/20 p-5 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Get this book printed + a new one every month"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"From $16.99/mo + shipping · Paperback or Hardcover · Cancel anytime"})]}),i.jsx(le,{onClick:()=>b&&e(`/order-print/${b.id}?mode=book-club`),disabled:!b,className:"shrink-0",children:"Join Book Club"})]}),_&&b&&_.id!==b.id&&i.jsxs("div",{className:"rounded-xl border border-amber-200 bg-amber-50 dark:bg-amber-950/20 dark:border-amber-800 p-4 flex items-center justify-between gap-3",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(Da,{className:"h-5 w-5 text-amber-600 dark:text-amber-400 shrink-0"}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-foreground",children:"You have a story in progress"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:_.story_title||"Untitled story"})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[["questionnaire","draft","style_selection","character_review","ready"].includes(_.status)&&i.jsxs(le,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>$(!0),children:[i.jsx(ws,{className:"h-3.5 w-3.5 mr-1"})," Discard"]}),i.jsxs(le,{variant:"outline",size:"sm",onClick:()=>e(Cb(_)),children:["Continue ",i.jsx(du,{className:"h-3.5 w-3.5 ml-1"})]})]})]})]}):_?i.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card shadow-sm p-8 text-center space-y-4",children:[i.jsx(Da,{className:"h-12 w-12 text-primary/60 mx-auto"}),i.jsxs("div",{children:[i.jsx("h2",{className:"font-serif text-xl text-foreground",children:"Continue your story"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:_.story_title||"You have an unfinished story â pick up where you left off."})]}),i.jsxs("div",{className:"flex flex-col items-center gap-2",children:[i.jsxs(le,{onClick:()=>e(Cb(_)),children:["Continue ",i.jsx(du,{className:"h-4 w-4 ml-1"})]}),i.jsx("button",{className:"text-xs text-muted-foreground hover:text-foreground underline",onClick:()=>{n(null),a(null),s(null),o(null),f()},children:"Or start a new story"})]})]}):i.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card shadow-sm p-8 text-center space-y-4",children:[i.jsx(xr,{className:"h-12 w-12 text-muted-foreground
8045/40 mx-auto"}),i.jsxs("div",{children:[i.jsx("h2",{className:"font-serif text-xl text-foreground",children:"Create your first story"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Answer a few questions and we'll create a personalized book for you."})]}),i.jsx(le,{onClick:()=>{n(null),a(null),s(null),o(null),f()},children:"Get Started"})]}),i.jsx(Upe,{})]})]}),i.jsx(Jl,{open:A,onOpenChange:$,children:i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Discard this draft?"}),i.jsx(hl,{children:"This will permanently delete your in-progress story. This action cannot be undone."})]}),i.jsxs(ul,{children:[i.jsx(pl,{disabled:T,children:"Cancel"}),i.jsxs(fl,{disabled:T,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:async()=>{if(_){F(!0);try{const{error:Oe}=await oe.functions.invoke("delete-story",{body:{storyId:_.id}});if(Oe)throw Oe;b&&b.id!==_.id&&!b.coverUrl&&(await oe.functions.invoke("delete-story",{body:{storyId:b.id}}),t&&await oe.from("profiles").update({free_sample_used:!1,free_sample_story_id:null,free_sample_created_at:null}).eq("id",t.id)),j(rt=>({...rt,inProgressStory:null,freeSample:null})),$(!1),d({title:"Draft discarded"}),await E()}catch(Oe){d({title:"Failed to discard draft",description:Oe.message,variant:"destructive"})}finally{F(!1)}}},children:[T?i.jsx(Me,{className:"h-4 w-4 animate-spin mr-1"}):null,"Discard"]})]})]})}),i.jsx(Jl,{open:!!M,onOpenChange:Oe=>!Oe&&z(null),children:i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Delete this story?"}),i.jsxs(hl,{children:['This will permanently delete "',M==null?void 0:M.title,'" (Month ',M==null?void 0:M.month,") and all related data. This action cannot be undone."]})]}),i.jsxs(ul,{children:[i.jsx(pl,{disabled:Y,children:"Cancel"}),i.jsxs(fl,{disabled:Y,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:rr,children:[Y?i.jsx(Me,{className:"h-4 w-4 animate-spin mr-1"}):null,"Delete"]})]})]})})]})}const wmt=()=>{const[e,t]=ka(),r=e.get("category"),[n,a]=k.useState([]),[s,o]=k.useState([]),[l,c]=k.useState([]),[u,d]=k.useState(!0);k.useEffect(()=>{h(),f()},[]),k.useEffect(()=>{r&&s.length>0?p(r):a(s)},[r,s]);const h=async()=>{try{const{data:v,error:g}=await oe.from("stories").select("id, story_title, cover_image_url, share_token").eq("admin_approved_public",!0).not("share_token","is",null).order("shared_at",{ascending:!1});if(g)throw g;const b=v||[];o(b),a(b)}catch(v){console.error("Error fetching shared stories:",v)}finally{d(!1)}},f=async()=>{try{const{data:v,error:g}=await oe.from("story_categories").select("id, name, slug, description").order("name");if(g)throw g;const b=await Promise.all((v||[]).map(async x=>{const{count:_}=await oe.from("story_category_mappings").select("*",{count:"exact",head:!0}).eq("category_id",x.id);return{...x,story_count:_||0}}));c(b.filter(x=>x.story_count>0))}catch(v){console.error("Error fetching categories:",v)}},p=async v=>{try{const{data:g}=await oe.from("story_categories").select("id").eq("slug",v).maybeSingle();if(!g){a(s);return}const{data:b}=await oe.from("story_category_mappings").select("story_id").eq("category_id",g.id),x=(b||[]).map(w=>w.story_id),_=s.filter(w=>x.includes(w.id));a(_)}catch(g){console.error("Error filtering stories:",g),a(s)}},y=v=>{t(r===v?{}:{category:v})},m={"@context":"https://schema.org","@type":"CollectionPage",name:"Free Kids Stories to Read Online | Kibbi",description:"Read free example kids stories online from Kibbi, including bedtime, feelings, friendship, and read-aloud stories for families.",url:"https://kibbi.ai/free-kids-stories",breadcrumb:{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://kibbi.ai"},{"@type":"ListItem",position:2,name:"Free Kids Stories",item:"https://kibbi.ai/free-kids-stories"}]},numberOfItems:n.length,about:l.map(v=>({"@type":"Thing",name:v.name,url:`https://kibbi.ai/free-kids-stories/${v.slug}`}))};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Free Kids Stories to Read Online | Kibbi"}),i.jsx("meta",{name:"description",content:"Read free example kids stories online from Kibbi, including bedtime, feelings, friendship, and early-reader favorites for family storytime."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/free-kids-stories"}),i.jsx("meta",{property:"og:title",content:"Free Kids Stories to Read Online | Kibbi"}),i.jsx("meta",{property:"og:description",content:"Read free example kids stories online from Kibbi, including bedtime, feelings, friendship, and early-reader favorites."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/free-kids-stories"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:"Free Kids Stories to Read Online | Kibbi"}),i.jsx("meta",{name:"twitter:description",content:"Read free example kids stories online from Kibbi, including bedtime, feelings, friendship, and early-reader favorites."}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(m)})]}),i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"flex-1",children:[i.jsx("section",{className:"pt-32 pb-20 px-6",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsx("h1",{className:"font-crimson text-[45px] font-semibold mb-6 text-center leading-tight",children:"Free example kids stories to read online"}
8045),i.jsx("p",{className:"text-[18px] text-foreground/80 mb-8 max-w-2xl mx-auto text-center leading-relaxed",children:"Read free example stories from Kibbi's reading library. Explore bedtime stories, friendship stories, stories about big feelings, and short reads families can enjoy together."}),l.length>0&&i.jsx("div",{className:"mb-12",children:i.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:l.map(v=>i.jsx(le,{variant:r===v.slug?"default":"outline",onClick:()=>y(v.slug),className:"rounded-full",children:v.name},v.slug))})}),u?i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6",children:[...Array(8)].map((v,g)=>i.jsx(vr,{className:"w-full aspect-[2/3] rounded-2xl"},g))}):n.length===0?i.jsx("div",{className:"text-center py-12",children:i.jsx("p",{className:"text-foreground/60 text-lg",children:"No stories have been shared yet. Be the first to share your story!"})}):i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6",children:n.slice(0,12).map(v=>i.jsx(or,{to:`/shared/story/${v.share_token}`,target:"_blank",rel:"noopener noreferrer",className:"group",children:i.jsxs(Ie,{className:"relative overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300 bg-transparent border-0 p-0",children:[v.cover_image_url?i.jsx("img",{src:v.cover_image_url,alt:`${v.story_title} story cover`,className:"w-full aspect-[2/3] object-cover rounded-lg group-hover:scale-105 transition-transform duration-300"}):i.jsx("div",{className:"w-full aspect-[2/3] bg-muted rounded-lg group-hover:scale-105 transition-transform duration-300 flex items-center justify-center",children:i.jsx("span",{className:"text-muted-foreground text-sm text-center px-4",children:v.story_title})}),i.jsx("div",{className:"absolute inset-0 bg-black/60 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center rounded-lg",children:i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium",children:"Read story"})})]})},v.id))}),l.length>0&&i.jsxs("div",{className:"mt-12 text-center text-sm text-foreground/60",children:["Browse by category:"," ",l.map((v,g)=>i.jsxs("span",{children:[i.jsx(or,{to:`/free-kids-stories/${v.slug}`,className:"text-foreground underline hover:text-foreground/80 font-medium",children:v.name}),g<l.length-1&&", "]},v.slug))]})]})}),i.jsx("section",{className:"py-20 px-6 bg-muted/30",children:i.jsxs("div",{className:"container mx-auto max-w-4xl",children:[i.jsx("h2",{className:"font-crimson text-[36px] font-semibold mb-12 text-center leading-tight",children:"Why families keep reading with Kibbi"}),i.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:i.jsx("svg",{className:"w-8 h-8 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})})}),i.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Made for real reading moments"}),i.jsx("p",{className:"text-foreground/70",children:"Explore stories families actually want at bedtime, during transitions, and in the moments kids want comfort or fun."})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:i.jsx("svg",{className:"w-8 h-8 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})})}),i.jsx("h3",{className:"font-semibold text-lg mb-2",children:"A better preview of what Kibbi makes"}
8045),i.jsx("p",{className:"text-foreground/70",children:"These examples show the kinds of age-matched stories Kibbi helps families create around interests, milestones, and everyday routines."})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:i.jsx("svg",{className:"w-8 h-8 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}),i.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Age-appropriate by design"}),i.jsx("p",{className:"text-foreground/70",children:"Stories are reviewed to stay warm, positive, and appropriate for the age groups Kibbi serves."})]})]}),i.jsxs("div",{className:"text-center",children:[i.jsx(le,{asChild:!0,size:"lg",className:"font-medium",children:i.jsx(or,{to:"/signup",children:"Try it for free"})}),i.jsx("p",{className:"text-sm text-foreground/70 mt-3",children:"No credit card required"})]})]})}),i.jsx("section",{className:"py-20 px-6",children:i.jsxs("div",{className:"container mx-auto max-w-3xl",children:[i.jsx("h2",{className:"font-crimson text-[36px] font-semibold mb-12 text-center leading-tight",children:"Frequently Asked Questions"}),i.jsxs(Sv,{type:"single",collapsible:!0,className:"w-full",children:[i.jsxs(bi,{value:"item-1",children:[i.jsx(wi,{className:"text-left text-lg",children:"Are these kids stories really free?"}),i.jsx(ki,{className:"text-foreground/70 text-base",children:"Yes. These example stories are free to read online."})]}),i.jsxs(bi,{value:"item-2",children:[i.jsx(wi,{className:"text-left text-lg",children:"Can I download these stories?"}),i.jsx(ki,{className:"text-foreground/70 text-base",children:"Some shared stories may also be available as downloadable picture books."})]}),i.jsxs(bi,{value:"item-3",children:[i.jsx(wi,{className:"text-left text-lg",children:"Are the stories safe for toddlers?"}),i.jsx(ki,{className:"text-foreground/70 text-base",children:"Every story is reviewed for age-appropriate language and themes."})]}),i.jsxs(bi,{value:"item-4",children:[i.jsx(wi,{className:"text-left text-lg",children:"Can I create my own free kids story?"}),i.jsx(ki,{className:"text-foreground/70 text-base",children:"Yes. You can start with a free sample story and personalize it around your child."})]})]})]})})]}),i.jsx(br,{})]})]})},kmt=()=>{const{slug:e}=Ou(),t=wt(),[r,n]=k.useState([]),[a,s]=k.useState(null),[o,l]=k.useState(!0);k.useEffect(()=>{e&&c()},[e]);const c=async()=>{try{l(!0);const{data:f,error:p}=await oe.from("story_categories").select("*").eq("slug",e).maybeSingle();if(p)throw p;if(!f){t("/free-kids-stories");return}s(f);const{data:y,error:m}=await oe.from("story_category_mappings").select(` 8046 stories!inner( 8047 id, 8048 story_title, 8049 cover_image_url, 8050 share_token, 8051 admin_approved_public 8052 ) 8053 `).eq("category_id",f.id);if(m)throw m;const v=(y||[]).map(g=>g.stories).filter(g=>g.admin_approved_public&&g.share_token);n(v)}catch(f){console.error("Error fetching category stories:",f)}finally{l(!1)}},u=()=>{if(!a)return"Category Stories";if(a.slug==="bedtime")return"Free Bedtime Stories for Kids to Read Online";const f=a.name;return f.startsWith("Age ")?`Free Kids Stories for ${f}`:`Free ${f} Kids Stories to Read Online`},d=()=>{if(!a)return"";const f=r.length,p=a.name.toLowerCase();return a.slug==="bedtime"?`Read ${f} free bedtime stories for kids, with calming examples families can use for evening routines, storytime, and winding down for sleep.`:a.name.startsWith("Age ")?`Discover ${f} free kids stories for ${a.name.toLowerCase()} children, with examples suited to that stage and reading level.`:a.slug==="english"||a.slug==="norwegian"?`Read ${f} free kids stories in ${a.name}, with examples for family reading time and language learning.`:`Explore ${f} free ${p} kids stories for bedtime, read-aloud moments, and early reading practice.`},h=a?{"@context":"https://schema.org","@type":"CollectionPage",name:u(),description:d(),url:`https://kibbi.ai/free-kids-stories/${a.slug}`,breadcrumb:{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://kibbi.ai"},{"@type":"ListItem",position:2,name:"Free Kids Stories",item:"https://kibbi.ai/free-kids-stories"},{"@type":"ListItem",position:3,name:a.name,item:`https://kibbi.ai/free-kids-stories/${a.slug}`}]},numberOfItems:r.length}:null;return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsxs("title",{children:[u()," | Kibbi"]}),i.jsx("meta",{name:"description",content:d()}),i.jsx("link",{rel:"canonical",href:`https://kibbi.ai/free-kids-stories/${e}`}),i.jsx("meta",{property:"og:title",content:`${u()} | Kibbi`}),i.jsx("meta",{property:"og:description",content:d()}),i.jsx("meta",{property:"og:url",content:`https://kibbi.ai/free-kids-stories/${e}`}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:`${u()} | Kibbi`}),i.jsx("meta",{name:"twitter:description",content:d()}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),h&&i.jsx("script",{type:"application/ld+json",children:JSON.stringify(h)})]}),i.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"flex-1",children:i.jsx("section",{className:"pt-32 pb-20 px-6",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("nav",{className:"flex items-center gap-2 text-sm text-foreground
8053/60 mb-6",children:[i.jsx(or,{to:"/",className:"hover:text-foreground",children:"Home"}),i.jsx(Vs,{className:"h-4 w-4"}),i.jsx(or,{to:"/free-kids-stories",className:"hover:text-foreground",children:"Free Kids Stories"}),i.jsx(Vs,{className:"h-4 w-4"}),i.jsx("span",{className:"text-foreground",children:(a==null?void 0:a.name)||e})]}),o?i.jsxs(i.Fragment,{children:[i.jsx(vr,{className:"h-12 w-96 mb-4"}),i.jsx(vr,{className:"h-6 w-full max-w-2xl mb-16"})]}):i.jsxs(i.Fragment,{children:[i.jsx("h1",{className:"font-crimson text-[45px] font-semibold mb-6 leading-tight",children:u()}),i.jsxs("p",{className:"text-[18px] text-foreground/80 mb-16 max-w-2xl leading-relaxed",children:[d(),(a==null?void 0:a.description)&&` ${a.description}`]})]}),o?i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6",children:[...Array(8)].map((f,p)=>i.jsx(vr,{className:"w-full aspect-[2/3] rounded-2xl"},p))}):r.length===0?i.jsxs("div",{className:"text-center py-12",children:[i.jsx("p",{className:"text-foreground/60 text-lg mb-6",children:"No stories in this category yet."}),i.jsx(le,{asChild:!0,children:i.jsx(or,{to:"/free-kids-stories",children:"Browse All Stories"})})]}):i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6",children:r.map(f=>i.jsx(or,{to:`/shared/story/${f.share_token}`,target:"_blank",rel:"noopener noreferrer",className:"group",children:i.jsxs(Ie,{className:"relative overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300 bg-transparent border-0 p-0",children:[f.cover_image_url?i.jsx("img",{src:f.cover_image_url,alt:`${f.story_title} - ${a==null?void 0:a.name} story cover`,className:"w-full aspect-[2/3] object-cover rounded-lg group-hover:scale-105 transition-transform duration-300"}):i.jsx("div",{className:"w-full aspect-[2/3] bg-muted rounded-lg group-hover:scale-105 transition-transform duration-300 flex items-center justify-center",children:i.jsx("span",{className:"text-muted-foreground text-sm text-center px-4",children:f.story_title})}),i.jsx("div",{className:"absolute inset-0 bg-black/60 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center rounded-lg",children:i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium",children:"Read story"})})]})},f.id))}),i.jsx("div",{className:"mt-16 text-center",children:i.jsx(le,{asChild:!0,variant:"outline",size:"lg",children:i.jsx(or,{to:"/free-kids-stories",children:"View All Stories"})})})]})})}),i.jsx(br,{})]})]})},_mt=ov("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Eo=k.forwardRef(({className:e,variant:t,...r},n)=>i.jsx("div",{ref:n,role:"alert",className:De(_mt({variant:t}),e),...r}));Eo.displayName="Alert";const i4=k.forwardRef(({className:e,...t},r)=>i.jsx("h5",{ref:r,className:De("mb-1 font-medium leading-none tracking-tight",e),...t}));i4.displayName="AlertTitle";const Co=k.forwardRef(({className:e,...t},r)=>i.jsx("div",{ref:r,className:De("text-sm [&_p]:leading-relaxed",e),...t}));Co.displayName="AlertDescription";const Smt=({open:e,onOpenChange:t,matches:r,onEdit:n,onContinue:a})=>i.jsx(Xr,{open:e,onOpenChange:t,children:i.jsxs(Ur,{className:"sm:max-w-lg",children:[i.jsxs(Nr,{children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-amber-100",children:i.jsx(Fs,{className:"h-5 w-5 text-amber-600"})}),i.jsx(Tr,{className:"text-xl",children:"Copyrighted Content Detected"})]}),i.jsx(ra,{className:"pt-2",children:"We found references to trademarked characters in your story."})]}),i.jsxs("div",{className:"space-y-4 py-2",children:[i.jsx(Eo,{variant:"default",className:"border-amber-200 bg-amber-50",children:i.jsxs(Co,{className:"text-sm text-amber-800",children:[i.jsx("strong",{children:"AI image generators cannot create images of copyrighted characters"})," like those from Disney, Marvel, Harry Potter, etc. Illustrations for these scenes will likely fail."]})}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("p",{className:"text-sm font-medium text-foreground",children:"Detected references:"}),i.jsx("ul",{className:"space-y-1.5",children:r.map((s,o)=>i.jsxs("li",{className:"text-sm text-muted-foreground",children:[i.jsxs("span",{className:"font-medium text-foreground",children:[s.franchise,":"]})," ",s.terms.slice(0,3).join(", "),s.terms.length>3&&`, +${s.terms.length-3} more`]},o))})]}),i.jsx("div",{className:"rounded-lg bg-muted/50 p-3",children:i.jsxs("p",{className:"text-sm text-muted-foreground",children:[i.jsx("strong",{children:"Tip:"}),' You can edit your story to rename these characters with original names (e.g., "a young wizard named Henry" instead of "Harry Potter") and the illustrations will work perfectly.']})})]}),i.jsxs(_2,{className:"flex-col gap-2 sm:flex-row",children:[i.jsx(le,{variant:"outline",onClick:n,className:"w-full sm:w-auto",children:"Edit Story"}),i.jsx(le,{variant:"default",onClick:a,className:"w-full sm:w-auto",children:"Continue Anyway"})]})]})});function wl(e){if(!e)return{};if(e.pages&&typeof e.pages=="object")return e.pages;const t={};for(const r of Object.keys(e))isNaN(parseInt(r))||(t[r]=e[r]);return t}const zx=2e4,jmt=()=>{const[e]=ka(),{user:t}=er();return i.jsx(Emt,{},`${(t==null?void 0:t.id)??"anonymous"}:${e.get("id")??"new"}`)},Emt=()=>{const e=wt(),[t]=ka(),r=t.get("id"),{user:n,loading:a}=er(),s=n==null?void 0:n.id,{toast:o}=Xt(),{entitlementType:l}=ch(),[c,u]=k.useState(""),[d,h]=k.useState(!1),[f,p]=k.useState(r),[y,m]=k.useState(null),[v,g]=k.useState(!!r),[b,x]=k.useState(!1),[_,w]=k.useState(0),j=k.useRef(!0),E=k.useRef(!1);k.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const[C,N]=k.useState(!1),[A,$]=k.useState([]),[T,F]=k.useState(null),[M,z]=k.useState(null);k.useEffect(()=>{!a&&!n&&e("/login")}
8053,[n,a,e]),k.useEffect(()=>{let P=!0;return(async()=>{if(!(!r||!s)){g(!0),x(!1);try{const{data:H,error:re}=await oe.from("stories").select("user_story_text, story_source, story_content, status").eq("id",r).eq("user_id",s).single();if(!P)return;if(re||!H)throw re??new Error("Story unavailable");u(H.user_story_text??"");const ae=Object.entries(wl(H.story_content)).some(([U,se])=>Number(U)>=1&&typeof se=="string"),D=["page_review","character_review","style_selection"].includes(H.status);m(H.story_source==="user_provided"&&D&&ae?H.user_story_text:null)}catch{P&&x(!0)}finally{P&&g(!1)}}})(),()=>{P=!1}},[r,s,_]);const Y=c.length,W=c.trim().length>0&&Y<=zx,ee=y!==null&&c===y,Z=async()=>{var P,R;if(!(!W||!n||v||b||E.current)){if(ee&&f){e(`/app/review-pages?id=${f}`);return}E.current=!0,h(!0),m(null);try{let H=f;if(H){const{data:D,error:U}=await oe.from("stories").update({story_source:"user_provided",status:"analyzing",is_free_sample:l==="free_sample",intended_entitlement:l,is_overage:l==="overage"}).eq("id",H).eq("user_id",n.id).select("id").single();if(U||!D)throw U??new Error("Could not prepare your story for analysis. Please try again.")}else{const{data:D,error:U}=await oe.from("stories").insert({user_id:n.id,story_source:"user_provided",age_range:"3-5",language:"pending",status:"analyzing",is_free_sample:l==="free_sample",intended_entitlement:l,is_overage:l==="overage"}).select("id").single();if(U||!D)throw new Error("Failed to create story");H=D.id,j.current&&p(H)}const{data:re,error:ae}=await oe.functions.invoke("analyze-user-story",{body:{storyId:H,rawStoryText:c,language:"english"}});if(!j.current)return;if(ae)throw ae;if(re!=null&&re.error)throw new Error(re.error);if((P=re==null?void 0:re.copyrightWarning)!=null&&P.detected){$(re.copyrightWarning.matches),F(re),z(H),N(!0),h(!1);return}o({title:"Story analyzed!",description:`We found ${re.total_pages} pages and ${((R=re.characters)==null?void 0:R.length)||0} characters.`}),e(`/app/review-pages?id=${H}`)}catch(H){if(!j.current)return;console.error("Error analyzing story:",H),o({title:"Analysis failed",description:H.message||"Please try again",variant:"destructive"})}finally{E.current=!1,j.current&&h(!1)}}},V=()=>{var P;N(!1),T&&M&&(o({title:"Story analyzed!",description:`We found ${T.total_pages} pages and ${((P=T.characters)==null?void 0:P.length)||0} characters. Some illustrations may fail due to copyrighted content.`}),e(`/app/review-pages?id=${M}`))},ne=()=>{N(!1),F(null),z(null)};return a||v?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx("div",{className:"animate-pulse text-muted-foreground",children:"Loading..."})}):b?i.jsxs("div",{className:"min-h-screen bg-background flex flex-col items-center justify-center gap-4",children:[i.jsx("p",{role:"alert",children:"We couldn't load your story. Please try again."}),i.jsx(le,{onClick:()=>w(P=>P+1),children:"Try again"}),i.jsx(le,{variant:"ghost",onClick:()=>e("/library"),children:"Back to library"})]}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Paste Your Story | Kibbi"}),i.jsx("meta",{name:"description",content:"Paste your children's story and we'll create beautiful illustrations for each page."})]}),i.jsx(Ba,{}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-3xl",children:[i.jsxs(le,{variant:"ghost",onClick:()=>e("/app/story-mode"),className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[i.jsx(ea,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsxs(Ie,{children:[i.jsxs(ze,{className:"text-center",children:[i.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:i.jsx(Ti,{className:"w-7 h-7 text-primary"})}),i.jsx(Ke,{className:"text-2xl",children:"Paste Your Story"}),i.jsx(Rt,{className:"text-base",children:"Paste your children's story below. We'll analyze it, split it into pages, and identify characters for illustration."})]}),i.jsxs(qe,{className:"space-y-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Dr,{"aria-label":"Your story","data-testid":"byos-story-text",value:c,onChange:P=>u(P.target.value),placeholder:"Once upon a time, in a cozy little house at the edge of a forest, there lived a curious rabbit named Luna...",className:"min-h-[300px] text-base leading-relaxed resize-none",disabled:d}),i.jsx("div",{className:"text-sm",children:i.jsxs("span",{className:Y>zx?"text-destructive":"text-muted-foreground",children:[Y.toLocaleStr
8053ing()," / ",zx.toLocaleString()," characters"]})})]}),Y>zx&&i.jsxs(Eo,{variant:"destructive",children:[i.jsx(Ya,{className:"h-4 w-4"}),i.jsxs(Co,{children:["Your story is too long. Please shorten it to ",zx.toLocaleString()," characters or less."]})]}),i.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 space-y-2",children:[i.jsx("p",{className:"text-sm font-medium text-foreground",children:"Tips for best results:"}),i.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[i.jsx("li",{children:"⢠Write in clear paragraphs with natural scene breaks"}),i.jsx("li",{children:"⢠Include character names and descriptions"}),i.jsx("li",{children:"⢠Aim for 10-25 pages (each page is about 1-3 sentences)"}),i.jsx("li",{children:'⢠You can mark page breaks with "Page 1:", "---", or blank lines'})]})]}),y!==null&&i.jsx("p",{className:"text-sm text-muted-foreground","data-testid":"byos-review-resume-note",children:ee?"Your page edits are saved. Return to review without analyzing again.":"Continuing with a changed original will replace your reviewed pages."}),i.jsx(le,{"data-testid":"byos-continue",onClick:Z,disabled:!W||d,className:"w-full h-12 text-lg",children:d?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"w-5 h-5 mr-2 animate-spin"}),"Analyzing your story..."]}):ee?"Return to page review":"Continue"})]})]})]}),i.jsx(Smt,{open:C,onOpenChange:N,matches:A,onEdit:ne,onContinue:V})]})};async function EH(e,t){var n;if(t&&typeof t=="object"&&"code"in t&&t.code==="canon_changed")return!0;if(!e||typeof e!="object")return!1;if("code"in e&&e.code==="canon_changed")return!0;const r="context"in e?e.context:void 0;if(r instanceof Response&&r.status===409)try{return((n=await r.clone().json())==null?void 0:n.code)==="canon_changed"}catch{return!1}return!1}function Cmt(e,t){const r=new Map(e.map(a=>[a.name.trim(),a.suggested_description.trim()])),n=[];for(const a of t){const s=a.name.trim();if(!s)continue;const o=r.get(s);o!==void 0&&o!==a.suggested_description.trim()&&n.push(s)}return n}function Nmt(e,t){return!!e&&!!t&&e!==t}function Tmt(e,t,r){const n=new Set(Cmt(t,r)),a=new Set(r.map(o=>o.name.trim()).filter(Boolean)),s={};for(const[o,l]of Object.entries(e??{}))a.has(o)&&!n.has(o)&&(s[o]=l);return Object.keys(s).length>0?s:null}function Amt(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!0;for(const a of n)if(!(a in e)||(e[a]??"").trim()!==(t[a]??"").trim())return!0;return!1}async function qCe(e,t,r){let n;try{return await Promise.race([e,new Promise((a,s)=>{n=setTimeout(()=>s(new Error(`${r} timeout after ${t}ms`)),t)})])}finally{n!==void 0&&clearTimeout(n)}}async function Mmt(e,t,r={}){try{const n=await qCe(e("generate-setting-descriptions",{body:{storyId:t}}),r.timeoutMs??9e4,"setting-descriptions");return await EH(n.error,n.data)?{ok:!1,code:"canon_changed"}:n.error?(console.warn("[REF-SHEETS-CLIENT] setting generation returned error â proceeding without location sheets:",n.error),{ok:!1}):{ok:!0}}catch(n){return await EH(n)?{ok:!1,code:"canon_changed"}:(console.warn("[REF-SHEETS-CLIENT] setting generation failed/timed out â proceeding without location sheets:",n),{ok:!1})}}async function Imt(e,t,r={}){const n=Date.now();if((await Mmt(e,t,r)).code==="canon_changed")return{readyToSeed:!1,sheetDrainMs:Date.now()-n};await Pmt(e,t,r);const s=Date.now()-n;try{const o=await e("generate-all-prompts",{body:{storyId:t}});if(await EH(o.error,o.data))return{readyToSeed:!1,sheetDrainMs:s};o.error&&console.error("[BOOK-CREATION] Fallback prompt generation returned error:",o.error)}catch(o){if(await EH(o))return{readyToSeed:!1,sheetDrainMs:s};console.error("[BOOK-CREATION] Fallback prompt generation failed:",o)}return{readyToSeed:!0,sheetDrainMs:s}}async function Pmt(e,t,r={}){const n=r.maxInvocations??3,a=r.timeoutMs??9e4,s=new Set(r.forceNames??[]);for(let o=1;o<=n;o++){const l={storyId:t};s.size>0&&(l.forceNames=[...s]);try{const c=await qCe(e("generate-reference-sheets",{body:l}),a,"reference-sheets");if(c.error)return console.warn("[REF-SHEETS-CLIENT] invocation returned error â proceeding without sheets:",c.error),{completed:!1,invocations:o};const u=c.data;
8053for(const d of(u==null?void 0:u.completedKeys)??[])s.delete(d);if(!(u!=null&&u.partial))return{completed:!0,invocations:o}}catch(c){return console.warn("[REF-SHEETS-CLIENT] invocation failed/timed out â proceeding without sheets:",c),{completed:!1,invocations:o}}}return{completed:!1,invocations:n}}const Lmt=()=>{const[e]=ka(),{user:t}=er();return i.jsx(Omt,{},`${(t==null?void 0:t.id)??"anonymous"}:${e.get("id")}`)},Omt=()=>{const e=wt(),[t]=ka(),r=t.get("id"),{user:n,loading:a}=er(),s=n==null?void 0:n.id,{toast:o}=Xt(),[l,c]=k.useState({}),u=k.useRef({}),d=k.useRef(null),h=k.useRef(!1),f=k.useRef(!0),[p,y]=k.useState(1),[m,v]=k.useState(!0),[g,b]=k.useState(null),x=g!==null;k.useEffect(()=>(f.current=!0,()=>{f.current=!1}),[]),k.useEffect(()=>{!a&&!n&&e("/login")},[n,a,e]),k.useEffect(()=>{let C=!0;return(async()=>{if(!(!r||!s))try{const{data:A,error:$}=await oe.from("stories").select("story_content, story_source, updated_at").eq("id",r).eq("user_id",s).single();if(!C)return;if($)throw $;if(!A)throw new Error("Story unavailable");d.current=A.updated_at;const T=A==null?void 0:A.story_content;if(T){const F=typeof T.pages=="object"&&T.pages!==null?T.pages:T;c(F),u.current=F}}catch(A){if(!C)return;console.error("Error loading pages:",A),o({title:"Error loading story",description:A.message,variant:"destructive"}),e("/library")}finally{C&&v(!1)}})(),()=>{C=!1}},[r,s,e,o]);const _=Object.keys(l).length,w=(C,N)=>{c(A=>({...A,[C.toString()]:N}))},j=async C=>{if(!r||!n||h.current)return;const N=JSON.stringify(l)!==JSON.stringify(u.current);if(C==="original"&&!N){e(`/app/paste-story?id=${r}`);return}const A=Object.entries(l).filter(([,$])=>!$.trim()).map(([$])=>$).sort(($,T)=>Number($)-Number(T));if(C==="characters"&&A.length>0){o({title:"Empty pages detected",description:`Page${A.length>1?"s":""} ${A.join(", ")} ${A.length>1?"are":"is"} empty. Please add content or remove the page before continuing.`,variant:"destructive"});return}h.current=!0,b(C);try{const $=Amt(u.current,l);let T=oe.from("stories").update({story_content:l,...C==="characters"?{status:"character_review"}:{},updated_at:new Date().toISOString(),...$?{setting_descriptions:null,location_sheets:null}:{}}).eq("id",r).eq("user_id",n.id);d.current&&(T=T.eq("updated_at",d.current));const{data:F,error:M}=await T.select("id").single();if(!f.current)return;if((M==null?void 0:M.code)==="PGRST116"||!M&&!F)throw new Error("This story changed or is no longer available. Copy your edits before reloading.");if(M)throw M;if(C==="original"){e(`/app/paste-story?id=${r}`);return}o({title:"Pages confirmed!",description:"Now let's review the characters."}),e(`/app/review-characters?id=${r}`)}catch($){if(!f.current)return;console.error("Error saving pages:",$),o({title:"Error saving pages",description:$.message,variant:"destructive"})}finally{h.current=!1,f.current&&b(null)}};if(a||m)return i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx(Me,{className:"w-8 h-8 animate-spin text-primary"})});const E=l[p.toString()]||"";return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Review Pages | Kibbi"}),i.jsx("meta",{name:"description",content:"Review and adjust how your story is split into pages."})]}),i.jsx(Ba,{}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-3xl",children:[i.jsxs(le,{variant:"ghost",onClick:()=>j("original"),disabled:x,"data-testid":"byos-back-to-original",className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[i.jsx(ea,{className:"w-4 h-4 mr-2"}),"Back to Story"]}),i.jsxs(Ie,{children:[i.jsxs(ze,{className:"text-center",children:[i.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:i.jsx(xr,{className:"w-7 h-7 text-primary"})}),i.jsx(Ke,{className:"text-2xl",children:"Review Your Pages"}),i.jsxs(Rt,{className:"text-base",children:["We've split your story into ",_," pages. You can edit the text on each page if needed."]})]}),i.jsxs(qe,{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs(le,{variant:"outline",size:"sm",onClick:()=>y(C=>Math.max(1,C-1)),disabled:p===1,children:[i.jsx(fu,{className:"w-4 h-4 mr-1"}),"Previous"]}),i.jsx("div",{className:"flex items-center gap-2",children:i.jsxs(Re,{variant:"secondary",className:"text-sm px-3 py-1",children:["Page ",p," of ",_]})}),i.jsxs(le,{variant:"outline",size:"sm",onClick:()=>y(C=>Math.min(_,C+1)),disabled:p===_,children:["Next",i.jsx(Vs,{className:"w-4 h-4 ml-1"})]})]}),i.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2 scrollbar-thin",children:Array.from({length:_},(C,N)=>N+1).map(C=>i.jsx("button",{onClick:()=>y(C),className:`flex-shrink-0 w-10 h-10 rounded-lg border-2 text-sm font-medium transition-all ${p===C?"border-primary bg-primary/10 text-primary":"border-border hover:border-primary/50 text-muted-foreground"}`,children:C},C))}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{htmlFor:"byos-page-text",className:"text-sm font-medium text-foreground",children:["Page ",p," Text"]}),i.jsx(Dr,{id:"byos-page-text","data-testid":"byos-page-text","aria-label":`Page ${p} text`,value:E,onChange:C=>w(p,C.target.value),disabled:x,className:"min-h-[200px] text-base leading-relaxed",placeholder:"Page content..."}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:[E.length," characters"]})]}),i.jsxs("div",{className:"flex gap-3 pt-4",children:[i.jsx(le,{variant:"outline",onClick:()=>j("original"),disabled:x,"data-testid":"byos-edit-original",className:"flex-1",children:g==="original"?"Saving changes...":"Edit Original"}),i.jsx(le,{onClick:()=>j("characters"),"data-testid":"byos-confirm-pages",disabled:x||_===0,className:"flex-1",children:g==="characters"?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"}),"Saving..."]}):i.jsxs(i.Fragment,{children:[i.jsx(_r,{className:"w-4 h-4 mr-2"}),"Confirm Pages"]})})]})]})]})]})]})},Rmt=()=>{const e=wt(),[t]=ka(),r=t.get("id"),{user:n,loading:a}=er(),{toast:s}=Xt(),[o,l]=k.useState([]),[c,u]=k.useState(!0),[d,h]=k.useState(!1),[f,p]=k.useState(null),y=k.useRef([]),m=k.useRef(null);k.useEffect(()=>{!a&&!n&&e("/login")}
8053,[n,a,e]),k.useEffect(()=>{(async()=>{if(!(!r||!n))try{const{data:w,error:j}=await oe.from("stories").select("detected_characters, imported_from_story_id, character_sheets").eq("id",r).eq("user_id",n.id).single();if(j)throw j;if(w!=null&&w.detected_characters&&Array.isArray(w.detected_characters)&&(l(w.detected_characters),y.current=w.detected_characters),m.current=(w==null?void 0:w.character_sheets)??null,w!=null&&w.imported_from_story_id){const{data:E}=await oe.from("stories").select("story_title").eq("id",w.imported_from_story_id).single();E!=null&&E.story_title&&p(E.story_title)}}catch(w){console.error("Error loading characters:",w),s({title:"Error loading characters",description:w.message,variant:"destructive"})}finally{u(!1)}})()},[r,n,s]);const v=(_,w,j)=>{l(E=>{const C=[...E];return C[_]={...C[_],[w]:j},C})},g=()=>{l(_=>[..._,{name:"",context_snippet:"",suggested_description:""}])},b=_=>{l(w=>w.filter((j,E)=>E!==_))},x=async()=>{if(!r)return;if(o.filter(w=>!w.name.trim()||!w.suggested_description.trim()).length>0){s({title:"Missing information",description:"Please provide a name and description for all characters.",variant:"destructive"});return}h(!0);try{const w=o.map(C=>`${C.name}: ${C.suggested_description}`).join(` 8054 8055`),j=Tmt(m.current,y.current,o),{error:E}=await oe.from("stories").update({detected_characters:JSON.parse(JSON.stringify(o)),character_descriptions:w,character_sheets:j?JSON.parse(JSON.stringify(j)):null,status:"style_selection",updated_at:new Date().toISOString()}).eq("id",r);if(E)throw E;s({title:"Characters confirmed!",description:"Now let's choose an illustration style."}),e(`/app/story-metadata?id=${r}`)}catch(w){console.error("Error saving characters:",w),s({title:"Error saving characters",description:w.message,variant:"destructive"})}finally{h(!1)}};return a||c?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx(Me,{className:"w-8 h-8 animate-spin text-primary"})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Review Characters | Kibbi"}),i.jsx("meta",{name:"description",content:"Review and describe the characters in your story for illustration."})]}),i.jsx(Ba,{}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-3xl",children:[i.jsxs(le,{variant:"ghost",onClick:()=>e(`/app/review-pages?id=${r}`),className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[i.jsx(ea,{className:"w-4 h-4 mr-2"}),"Back to Pages"]}),i.jsxs(Ie,{children:[i.jsxs(ze,{className:"text-center",children:[i.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:i.jsx(Xi,{className:"w-7 h-7 text-primary"})}),i.jsx(Ke,{className:"text-2xl",children:"Review Your Characters"}),i.jsxs(Rt,{className:"text-base",children:["We found ",o.length," character",o.length!==1?"s":""," in your story and wrote a first draft of each description. Anything your story doesn't say, like a pet's breed or coloring, is a guess. Check each one now: looks are fixed once the book is created."]})]}),i.jsxs(qe,{className:"space-y-6",children:[f&&i.jsxs(Eo,{className:"mb-4",children:[i.jsx(xy,{className:"h-4 w-4"}),i.jsx(i4,{children:"Characters Imported"}),i.jsxs(Co,{children:['Using characters from "',f,'". You can edit them or add new ones below.']})]}),o.length===0?i.jsx("div",{className:"text-center py-8 text-muted-foreground",children:i.jsx("p",{children:"No characters detected. Add characters manually below."})}):i.jsx("div",{className:"space-y-6",children:o.map((_,w)=>i.jsxs("div",{className:"border rounded-lg p-4 space-y-4 relative",children:[i.jsx(le,{variant:"ghost",size:"sm",className:"absolute top-2 right-2 text-muted-foreground hover:text-destructive",onClick:()=>b(w),children:i.jsx(ws,{className:"w-4 h-4"})}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Character Name"}),i.jsx(Pt,{value:_.name,onChange:j=>v(w,"name",j.target.value),placeholder:"e.g., Luna, Dad, Whiskers"})]}),_.context_snippet&&i.jsxs("div",{className:"bg-muted/50 rounded-lg p-3",children:[i.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"From your story:"}),i.jsxs("p",{className:"text-sm italic",children:['"',_.context_snippet,'"']})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Visual Description"}),i.jsx(Dr,{value:_.suggested_description,onChange:j=>v(w,"suggested_description",j.target.value),placeholder:"People: age, skin tone, hair, clothing. Animals: species and breed, coat color, size, markings.",className:"min-h-[100px]"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Be specific. People: skin tone (fair, warm brown, deep brown), hair color and texture, eye color, age, clothing. Animals: species and breed, coat color and markings, ear and tail shape, size."})]})]},w))}),i.jsxs(le,{variant:"outline",onClick:g,className:"w-full",children:[i.jsx(uc,{className:"w-4 h-4 mr-2"}),"Add Another Character"]}),i.jsx(le,{onClick:x,disabled:d||o.length===0,className:"w-full h-12 text-lg",children:d?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"w-5 h-5 mr-2 animate-spin"}),"Saving..."]}):i.jsxs(i.Fragment,{children:[i.jsx(_r,{className:"w-5 h-5 mr-2"}),"Confirm Characters & Continue"]})})]})]})]})]})},HCe=[{value:"english",label:"English"},{value:"spanish",label:"Spanish"},{value:"swedish",label:"Swedish"},{value:"french",label:"French"},{value:"german",label:"German"},{value:"greek",label:"Greek"},{value:"italian",label:"Italian"},{value:"portuguese",label:"Portuguese"},{value:"dutch",label:"Dutch"},{value:"finnish",label:"Finnish"},{value:"norwegian",label:"Norwegian"},{value:"polish",label:"Polish"},{value:"russian",label:"Russian"},{value:"turkish",label:"Turkish"},{value:"korean",label:"Korean"},{value:"japanese",label:"Japanese"},{value:"chinese-simplified",label:"Chinese (Simplified)"},{value:"chinese-traditional",label:"Chinese (Traditional)"},{value:"danish",label:"Danish"},{value:"arabic",label:"Arabic"},{value:"hindi",label:"Hindi"},{value:"indonesian",label:"Indonesian"}],Dmt=[{value:"thai",label:"Thai"},{value:"vietnamese",label:"Vietnamese"}],qpe=[...HCe,...Dmt],Cg=22,Fmt=18,$mt=403.2,Bmt=new Set([...".,:;'!|()[]{}-ilIjt`"]),zmt=new Set([..." fr"]),Umt=new Set([..."mw"]),qmt=new Set([..."MW@%"]);function Hmt(e){return e>=4352&&e<=4447||e>=11904&&e<=42191||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>
8055=131072&&e<=262141}const Vmt=["chinese","japanese","korean"],Wmt=[[192,591,.62],[592,687,.62],[768,879,0],[880,1023,.64],[1024,1327,.64],[1424,1535,.62],[1536,1791,.62],[2304,2431,.72],[3584,3711,.62],[7680,7935,.62]],Gmt=[[9728,10175],[11008,11263],[126976,129791]],Kmt=1.15;function VCe(e,t){const r=e.codePointAt(0)??0;if(Hmt(r))return 1;for(const[n,a]of Gmt)if(r>=n&&r<=a)return 2;if(r<128)return Bmt.has(e)?Math.max(.32,t):zmt.has(e)?Math.max(.4,t):qmt.has(e)?Math.max(.95,t):Umt.has(e)?Math.max(.88,t):e>="A"&&e<="Z"?Math.max(.72,t):e>="0"&&e<="9"?Math.max(.6,t):Math.max(.55,t);for(const[n,a,s]of Wmt)if(r>=n&&r<=a)return s===0?0:Math.max(s,t);return Math.max(Kmt,t)}function WCe(e,t){let r=0;for(const n of e)r+=VCe(n,t);return r}const Ute=$mt/Fmt,Ymt=[["ï¬","ff"],["ï¬","fi"],["ï¬","fl"],["ï¬","ffi"],["ï¬","ffl"]];function Xmt(e){let t=e;for(const[r,n]of Ymt)t=t.split(r).join(n);return t.replace(/\u00A0/g," ")}function Zmt(e){const t=(e??"").trim().toLowerCase();for(const r of Vmt)if(t===r||t.startsWith(r+"-"))return 1;return 0}function Qmt(e,t){const r=VCe(" ",t);let n=0,a=0;for(const s of e.split(" ")){if(!s)continue;const o=WCe(s,t);if(o>Ute)return null;a>0&&a+r+o<=Ute?a+=r+o:(a>0&&n++,a=o)}return a>0&&n++,Math.max(1,n)}function Jmt(e,t){const r=Zmt(t),n=Xmt((e??"").replace(/\r\n?/g,` 8056`)).trim();if(!n)return{fits:!0,lines:0,maxLines:Cg,reason:null,charsOver:0};const a=n.split(` 8057`).filter(d=>d.trim().length>0);let s=0;for(const d of a){const h=Qmt(d.trim(),r);if(h===null)return{fits:!1,lines:0,maxLines:Cg,reason:"width",charsOver:0};s+=h}if(s+=Math.max(0,a.length-1),s<=Cg)return{fits:!0,lines:s,maxLines:Cg,reason:null,charsOver:0};const o=[...n].length,l=WCe(n,r)/Math.max(1,o),c=Math.max(1,Math.floor(Ute/Math.max(.01,l))),u=Math.max(0,(Cg-Math.max(0,a.length-1))*c);return{fits:!1,lines:s,maxLines:Cg,reason:"lines",charsOver:Math.max(0,o-u)}}function d0(e,t){const r=Jmt(e,t);return r.fits?null:r.reason==="width"?"One line is too long to fit the printed page. Add a line break to split it.":`This dedication is too long for the printed page. ${r.charsOver>0?`Remove about ${r.charsOver} characters, or use fewer line breaks.`:"Use fewer line breaks between short lines, or merge them into paragraphs."}`}var Hpe=1,e1t=.9,t1t=.8,r1t=.17,vX=.1,xX=.999,n1t=.9999,a1t=.99,i1t=/[\\\/_+.#"@\[\(\{&]/,s1t=/[\\\/_+.#"@\[\(\{&]/g,o1t=/[\s-]/,GCe=/[\s-]/g;function qte(e,t,r,n,a,s,o){if(s===t.length)return a===e.length?Hpe:a1t;var l=`${a},${s}`;if(o[l]!==void 0)return o[l];for(var c=n.charAt(s),u=r.indexOf(c,a),d=0,h,f,p,y;u>=0;)h=qte(e,t,r,n,u+1,s+1,o),h>d&&(u===a?h*=Hpe:i1t.test(e.charAt(u-1))?(h*=t1t,p=e.slice(a,u-1).match(s1t),p&&a>0&&(h*=Math.pow(xX,p.length))):o1t.test(e.charAt(u-1))?(h*=e1t,y=e.slice(a,u-1).match(GCe),y&&a>0&&(h*=Math.pow(xX,y.length))):(h*=r1t,a>0&&(h*=Math.pow(xX,u-a))),e.charAt(u)!==t.charAt(s)&&(h*=n1t)),(h<vX&&r.charAt(u-1)===n.charAt(s+1)||n.charAt(s+1)===n.charAt(s)&&r.charAt(u-1)!==n.charAt(s))&&(f=qte(e,t,r,n,u+1,s+2,o),f*vX>h&&(h=f*vX)),h>d&&(d=h),u=r.indexOf(c,u+1);return o[l]=d,d}function Vpe(e){return e.toLowerCase().replace(GCe," ")}function l1t(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,qte(e,t,Vpe(e),Vpe(t),0,0,{})}var Ux='[cmdk-group=""]',bX='[cmdk-group-items=""]',c1t='[cmdk-group-heading=""]',KCe='[cmdk-item=""]',Wpe=`${KCe}:not([aria-disabled="true"])`,Hte="cmdk-item-select",Bg="data-value",u1t=(e,t,r)=>l1t(e,t,r),YCe=k.createContext(void 0),s4=()=>k.useContext(YCe),XCe=k.createContext(void 0),Lse=()=>k.useContext(XCe),ZCe=k.createContext(void 0),QCe=k.forwardRef((e,t)=>{let r=zg(()=>{var P,R;return{search:"",value:(R=(P=e.value)!=null?P:e.defaultValue)!=null?R:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=zg(()=>new Set),a=zg(()=>new Map),s=zg(()=>new Map),o=zg(()=>new Set),l=JCe(e),{label:c,children:u,value:d,onValueChange:h,filter:f,shouldFilter:p,loop:y,disablePointerSelection:m=!1,vimBindings:v=!0,...g}=e,b=$a(),x=$a(),_=$a(),w=k.useRef(null),j=w1t();I0(()=>{if(d!==void 0){let P=d.trim();r.current.value=P,E.emit()}},[d]),I0(()=>{j(6,F)},[]);let E=k.useMemo(()=>({subscribe:P=>(o.current.add(P),()=>o.current.delete(P)),snapshot:()=>r.current,setState:(P,R,H)=>{var re,ae,D,U;
vendor: 9,174 bytes, line 8057
8057if(!Object.is(r.current[P],R)){if(r.current[P]=R,P==="search")T(),A(),j(1,$);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let se=document.getElementById(_);se?se.focus():(re=document.getElementById(b))==null||re.focus()}if(j(7,()=>{var se;r.current.selectedItemId=(se=M())==null?void 0:se.id,E.emit()}),H||j(5,F),((ae=l.current)==null?void 0:ae.value)!==void 0){let se=R??"";(U=(D=l.current).onValueChange)==null||U.call(D,se);return}}E.emit()}},emit:()=>{o.current.forEach(P=>P())}}),[]),C=k.useMemo(()=>({value:(P,R,H)=>{var re;R!==((re=s.current.get(P))==null?void 0:re.value)&&(s.current.set(P,{value:R,keywords:H}),r.current.filtered.items.set(P,N(R,H)),j(2,()=>{A(),E.emit()}))},item:(P,R)=>(n.current.add(P),R&&(a.current.has(R)?a.current.get(R).add(P):a.current.set(R,new Set([P]))),j(3,()=>{T(),A(),r.current.value||$(),E.emit()}),()=>{s.current.delete(P),n.current.delete(P),r.current.filtered.items.delete(P);let H=M();j(4,()=>{T(),(H==null?void 0:H.getAttribute("id"))===P&&$(),E.emit()})}),group:P=>(a.current.has(P)||a.current.set(P,new Set),()=>{s.current.delete(P),a.current.delete(P)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:_,labelId:x,listInnerRef:w}),[]);function N(P,R){var H,re;let ae=(re=(H=l.current)==null?void 0:H.filter)!=null?re:u1t;return P?ae(P,r.current.search,R):0}function A(){if(!r.current.search||l.current.shouldFilter===!1)return;let P=r.current.filtered.items,R=[];r.current.filtered.groups.forEach(re=>{let ae=a.current.get(re),D=0;ae.forEach(U=>{let se=P.get(U);D=Math.max(se,D)}),R.push([re,D])});let H=w.current;z().sort((re,ae)=>{var D,U;let se=re.getAttribute("id"),te=ae.getAttribute("id");return((D=P.get(te))!=null?D:0)-((U=P.get(se))!=null?U:0)}).forEach(re=>{let ae=re.closest(bX);ae?ae.appendChild(re.parentElement===ae?re:re.closest(`${bX} > *`)):H.appendChild(re.parentElement===H?re:re.closest(`${bX} > *`))}),R.sort((re,ae)=>ae[1]-re[1]).forEach(re=>{var ae;let D=(ae=w.current)==null?void 0:ae.querySelector(`${Ux}[${Bg}="${encodeURIComponent(re[0])}"]`);D==null||D.parentElement.appendChild(D)})}function $(){let P=z().find(H=>H.getAttribute("aria-disabled")!=="true"),R=P==null?void 0:P.getAttribute(Bg);E.setState("value",R||void 0)}function T(){var P,R,H,re;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let ae=0;for(let D of n.current){let U=(R=(P=s.current.get(D))==null?void 0:P.value)!=null?R:"",se=(re=(H=s.current.get(D))==null?void 0:H.keywords)!=null?re:[],te=N(U,se);r.current.filtered.items.set(D,te),te>0&&ae++}for(let[D,U]of a.current)for(let se of U)if(r.current.filtered.items.get(se)>0){r.current.filtered.groups.add(D);break}r.current.filtered.count=ae}function F(){var P,R,H;let re=M();re&&(((P=re.parentElement)==null?void 0:P.firstChild)===re&&((H=(R=re.closest(Ux))==null?void 0:R.querySelector(c1t))==null||H.scrollIntoView({block:"nearest"})),re.scrollIntoView({block:"nearest"}))}function M(){var P;return(P=w.current)==null?void 0:P.querySelector(`${KCe}[aria-selected="true"]`)}function z(){var P;return Array.from(((P=w.current)==null?void 0:P.querySelectorAll(Wpe))||[])}function Y(P){let R=z()[P];R&&E.setState("value",R.getAttribute(Bg))}function W(P){var R;let H=M(),re=z(),ae=re.findIndex(U=>U===H),D=re[ae+P];(R=l.current)!=null&&R.loop&&(D=ae+P<0?re[re.length-1]:ae+P===re.length?re[0]:re[ae+P]),D&&E.setState("value",D.getAttribute(Bg))}function ee(P){let R=M(),H=R==null?void 0:R.closest(Ux),re;for(;H&&!re;)H=P>0?x1t(H,Ux):b1t(H,Ux),re=H==null?void 0:H.querySelector(Wpe);re?E.setState("value",re.getAttribute(Bg)):W(P)}let Z=()=>Y(z().length-1),V=P=>{P.preventDefault(),P.metaKey?Z():P.altKey?ee(1):W(1)},ne=P=>{P.preventDefault(),P.metaKey?Y(0):P.altKey?ee(-1):W(-1)};return k.createElement(dt.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:P=>{var R;(R=g.onKeyDown)==null||R.call(g,P);let H=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||H))switch(P.key){case"n":case"j":{v&&P.ctrlKey&&V(P);break}case"ArrowDown":{V(P);break}case"p":case"k":{v&&P.ctrlKey&&ne(P);break}case"ArrowUp":{ne(P);break}case"Home":{P.preventDefault(),Y(0);break}case"End":{P.preventDefault(),Z();break}case"Enter":{P.preventDefault();let re=M();if(re){let ae=new Event(Hte);re.dispatchEvent(ae)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:_1t},c),dG(e,P=>k.createElement(XCe.Provider,{value:E},k.createElement(YCe.Provider,{value:C},P))))}),d1t=k.forwardRef((e,t)=>{var r,n;let a=$a(),s=k.useRef(null),o=k.useContext(ZCe),l=s4(),c=JCe(e),u=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:o==null?void 0:o.forceMount;I0(()=>{if(!u)return l.item(a,o==null?void 0:o.id)},[u]);let d=eNe(a,s,[e.value,e.children,s],e.keywords),h=Lse(),f=uh(j=>j.value&&j.value===d.current),p=uh(j=>u||l.filter()===!1?!0:j.search?j.filtered.items.get(a)>0:!0);k.useEffect(()=>{let j=s.current;if(!(!j||e.disabled))return j.addEventListener(Hte,y),()=>j.removeEventListener(Hte,y)},[p,e.onSelect,e.disabled]);function y(){var j,E;m(),(E=(j=c.current).onSelect)==null||E.call(j,d.current)}function m(){h.setState("value",d.current,!0)}if(!p)return null;let{disabled:v,value:g,onSelect:b,forceMount:x,keywords:_,...w}=e;return k.createElement(dt.div,{ref:Su(s,t),...w,id:a,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||l.getDisablePointerSelection()?void 0:m,onClick:v?void 0:y},e.children)}),h1t=k.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...s}=e,o=$a(),l=k.useRef(null),c=k.useRef(null),u=$a(),d=s4(),h=uh(p=>a||d.filter()===!1?!0:p.search?p.filtered.groups.has(o):!0);I0(()=>d.group(o),[]),eNe(o,l,[e.value,e.heading,c]);let f=k.useMemo(()=>({id:o,forceMount:a}),[a]);return k.createElement(dt.div,{ref:Su(l,t),...s,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&k.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),dG(e,p=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},k.createElement(ZCe.Provider,{value:f},p))))}),f1t=k.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=k.useRef(null),s=uh(o=>!o.search);return!r&&!s?null:k.createElement(dt.div,{ref:Su(a,t),...n,"cmdk-separator":"",role:"separator"})}),p1t=k.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=e.value!=null,s=Lse(),o=uh(u=>u.search),l=uh(u=>u.selectedItemId),c=s4();return k.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),k.createElement(dt.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:o,onChange:u=>{a||s.setState("search",u.target.value),r==null||r(u.target.value)}})}),m1t=k.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,s=k.useRef(null),o=k.useRef(null),l=uh(u=>u.selectedItemId),c=s4();return k.useEffect(()=>{if(o.current&&s.current){let u=o.current,d=s.current,h,f=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let p=u.offsetHeight;d.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(u),()=>{cancelAnimationFrame(h),f.unobserve(u)}}},[]),k.createElement(dt.div,{ref:Su(s,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},dG(e,u=>k.createElement("div",{ref:Su(o,c.listInnerRef),"cmdk-list-sizer":""},u)))}),g1t=k.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:s,container:o,...l}=e;return k.createElement(EW,{open:r,onOpenChange:n},k.createElement(CW,{container:o},k.createElement(vv,{"cmdk-overlay":"",className:a}),k.createElement(xv,{"aria-label":e.label,"cmdk-dialog":"",className:s},k.createElement(QCe,{ref:t,...l}))))}),y1t=k.forwardRef((e,t)=>uh(r=>r.filtered.count===0)?k.createElement(dt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),v1t=k.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...s}=e;return k.createElement(dt.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},dG(e,o=>k.createElement("div",{"aria-hidden":!0},o)))}),Es=Object.assign(QCe,{List:m1t,Item:d1t,Input:p1t,Group:h1t,Separator:f1t,Dialog:g1t,Empty:y1t,Loading:v1t});function x1t(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function b1t(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function JCe(e){let t=k.useRef(e);return I0(()=>{t.current=e}),t}var I0=typeof window>"u"?k.useEffect:k.useLayoutEffect;function zg(e){let t=k.useRef();return t.current===void 0&&(t.current=e()),t}function uh(e){let t=Lse(),r=()=>e(t.snapshot());return k.useSyncExternalStore(t.subscribe,r,r)}function eNe(e,t,r,n=[]){let a=k.useRef(),s=s4();return I0(()=>{var o;let l=(()=>{var u;
8057for(let d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():a.current}})(),c=n.map(u=>u.trim());s.value(e,l,c),(o=t.current)==null||o.setAttribute(Bg,l),a.current=l}),a}var w1t=()=>{let[e,t]=k.useState(),r=zg(()=>new Map);return I0(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,a)=>{r.current.set(n,a),t({})}};function k1t(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function dG({asChild:e,children:t},r){return e&&k.isValidElement(t)?k.cloneElement(k1t(t),{ref:t.ref},r(t.props.children)):r(t)}var _1t={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ose=k.forwardRef(({className:e,...t},r)=>i.jsx(Es,{ref:r,className:De("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ose.displayName=Es.displayName;const Rse=k.forwardRef(({className:e,...t},r)=>i.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[i.jsx(go,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),i.jsx(Es.Input,{ref:r,className:De("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Rse.displayName=Es.Input.displayName;const Dse=k.forwardRef(({className:e,...t},r)=>i.jsx(Es.List,{ref:r,className:De("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Dse.displayName=Es.List.displayName;const Fse=k.forwardRef((e,t)=>i.jsx(Es.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Fse.displayName=Es.Empty.displayName;const $se=k.forwardRef(({className:e,...t},r)=>i.jsx(Es.Group,{ref:r,className:De("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));$se.displayName=Es.Group.displayName;const S1t=k.forwardRef(({className:e,...t},r)=>i.jsx(Es.Separator,{ref:r,className:De("-mx-1 h-px bg-border",e),...t}));S1t.displayName=Es.Separator.displayName;const Bse=k.forwardRef(({className:e,...t},r)=>i.jsx(Es.Item,{ref:r,className:De("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));Bse.displayName=Es.Item.displayName;const j1t=()=>{var N;const e=wt(),[t]=ka(),r=t.get("id"),{user:n,loading:a}=er(),{toast:s}=Xt(),[o,l]=k.useState(""),[c,u]=k.useState(""),[d,h]=k.useState(""),[f,p]=k.useState(""),[y,m]=k.useState("english"),[v,g]=k.useState(!1),[b,x]=k.useState("3-5"),[_,w]=k.useState(!0),[j,E]=k.useState(!1);k.useEffect(()=>{!a&&!n&&e("/login")},[n,a,e]),k.useEffect(()=>{(async()=>{if(!(!r||!n))try{const{data:$,error:T}=await oe.from("stories").select("story_title, author_name, dedication_message, prop_descriptions, language, age_range").eq("id",r).eq("user_id",n.id).single();if(T)throw T;if($){l($.story_title||""),u($.author_name||""),h($.dedication_message||""),p($.prop_descriptions||"");const F=$.language&&$.language!=="pending"?$.language:"english";m(F),$.age_range&&x($.age_range)}}catch($){console.error("Error loading story metadata:",$)}finally{w(!1)}})()},[r,n]);const C=async()=>{if(!r)return;if(!o.trim()){s({title:"Book title required",description:"Please enter a title for your book.",variant:"destructive"});return}if(!c.trim()){s({title:"Author name required",description:"Please enter an author name for the book cover.",variant:"destructive"});return}const A=d0(d.trim(),y);if(A){s({title:"This dedication will not print",description:A,variant:"destructive"});return}E(!0);try{const{error:$}=await oe.from("stories").update({story_title:o.trim(),author_name:c.trim(),dedication_message:d.trim()||null,prop_descriptions:f.trim()||null,language:y,age_range:b,updated_at:new Date().toISOString()}).eq("id",r);
8057if($)throw $;s({title:"Details saved!",description:"Now let's choose an illustration style."}),e(`/app/style-selection?id=${r}`)}catch($){console.error("Error saving story metadata:",$),s({title:"Error saving details",description:$.message,variant:"destructive"})}finally{E(!1)}};return a||_?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx(Me,{className:"w-8 h-8 animate-spin text-primary"})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Story Details | Kibbi"}),i.jsx("meta",{name:"robots",content:"noindex, follow"})]}),i.jsx(Ba,{}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-2xl",children:[i.jsxs(le,{variant:"ghost",onClick:()=>e(`/app/review-characters?id=${r}`),className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[i.jsx(ea,{className:"w-4 h-4 mr-2"}),"Back to Characters"]}),i.jsxs(Ie,{children:[i.jsxs(ze,{className:"text-center",children:[i.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:i.jsx(xr,{className:"w-7 h-7 text-primary"})}),i.jsx("h1",{className:"text-2xl font-semibold leading-none tracking-tight",children:"Story Details"}),i.jsx(Rt,{className:"text-base",children:"Add the finishing touches before we illustrate your story"})]}),i.jsxs(qe,{className:"space-y-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-sm font-medium text-foreground",children:["Book Title ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsx(Pt,{value:o,onChange:A=>l(A.target.value),placeholder:"Enter your book's title",className:"text-base"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"This will appear on the cover and title page"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-sm font-medium text-foreground",children:["Author Name ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsx(Pt,{value:c,onChange:A=>u(A.target.value),placeholder:"Who wrote this story?",className:"text-base"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"This will appear on the book cover"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-sm font-medium text-foreground",children:["Story Language ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsxs(Ase,{open:v,onOpenChange:g,children:[i.jsx(Mse,{asChild:!0,children:i.jsxs(le,{variant:"outline",role:"combobox","aria-expanded":v,className:"w-full justify-between bg-background text-base",children:[((N=qpe.find(A=>A.value===y))==null?void 0:N.label)||"Select language",i.jsx(py,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),i.jsx(cG,{className:"w-full p-0",align:"start",children:i.jsxs(Ose,{children:[i.jsx(Rse,{placeholder:"Search language..."}),i.jsxs(Dse,{children:[i.jsx(Fse,{children:"No language found."}),i.jsx($se,{children:qpe.map(A=>i.jsxs(Bse,{value:A.label,onSelect:()=>{m(A.value),g(!1)},children:[i.jsx(_r,{className:De("mr-2 h-4 w-4",y===A.value?"opacity-100":"opacity-0")}),A.label]},A.value))})]})]})})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"The language your story is written in"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-sm font-medium text-foreground",children:["Age Range ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{value:"0-2",label:"0â2 years",desc:"10 pages"},{value:"3-5",label:"3â5 years",desc:"15 pages"},{value:"6-9",label:"6â9 years",desc:"20 pages"}].map(A=>i.jsxs("button",{type:"button",onClick:()=>x(A.value),className:De("rounded-lg border-2 p-3 text-center transition-all",b===A.value?"border-primary bg-primary/5 ring-1 ring-primary/20":"border-border hover:border-primary/40"),children:[i.jsx("div",{className:"text-sm font-medium text-foreground",children:A.label}),i.jsx("div",{className:"text-xs text-muted-foreground",children:A.desc})]},A.value))}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"This affects illustration complexity and detail level"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-sm font-medium text-foreground",children:["Dedication ",i.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),i.jsx(Dr,{value:d,onChange:A=>h(A.target.value),placeholder:"For my wonderful grandchildren...",maxLength:1e3,className:"min-h-[80px] text-base resize-none"}),d0(d.trim(),y)?i.jsx("p",{role:"alert",className:"text-xs text-destructive",children:d0(d.trim(),y)}):i.jsx("p",{className:"text-xs text-muted-foreground",children:"A personal message that will appear at the start of the book"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Illustration Notes"}),i.jsx(Qt,{className:"w-4 h-4 text-primary"}),i.jsx("span",{className:"text-xs text-muted-foreground",children:"(optional)"})]}),i.jsx(Dr,{value:f,onChange:A=>p(A.target.value),placeholder:"Any specific details for the illustrations? e.g., 'The dragon should be friendly-looking' or 'Set the scenes in a forest with autumn colors'",className:"min-h-[100px] text-base resize-none"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Special instructions for how characters or scenes should be illustrated"})]}),i.jsx(le,{onClick:C,disabled:j,className:"w-full h-12 text-lg",children:j?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"w-5 h-5 mr-2 animate-spin"}),"Saving..."]}):"Continue to Style Selection"})]})]})]})]})},E1t=()=>{const e=wt(),{user:t,loading:r}=er(),{storyId:n,setAgeRange:a,setStoryId:s,setLanguage:o,setIllustrationStyle:l}=Zs(),{entitlementType:c,freeSamplesRemaining:u}=ch(),h=new URLSearchParams(window.location.search).get("id"),f=h||n,[p,y]=k.useState(""),[m,v]=k.useState(!1),{loading:g}=ch(),b=k.useRef(!1),x=k.useRef(!1);k.useEffect(()=>{r||t||e("/login")},[t,r,e]),k.useEffect(()=>{(async()=>
8057{if(!t||g||b.current)return;b.current=!0;let j=!f;if(f)try{const{data:E,error:C}=await oe.from("stories").select("age_range, status").eq("id",f).single();if(C)throw C;(E==null?void 0:E.status)==="completed"||(E==null?void 0:E.status)==="review"?(console.log("[ProfileSelection] Stale story context detected (status:",E.status,"), creating new story"),s(null),j=!0):(E!=null&&E.age_range&&E.age_range!=="pending"&&y(E.age_range),s(f))}catch(E){console.error("Error loading story:",E),j=!0}if(j){if(x.current)return;x.current=!0;const E=`kibbi:draft-pending:${t.id}`;try{const C=sessionStorage.getItem(E);if(C){const N=JSON.parse(C);if(N!=null&&N.id&&Date.now()-N.ts<6e4){const{data:A}=await oe.from("stories").select("id, status, age_range").eq("id",N.id).eq("user_id",t.id).maybeSingle();if(A&&A.status==="questionnaire"){console.log("[ProfileSelection] Reusing recent draft:",A.id),A.age_range&&A.age_range!=="pending"&&y(A.age_range),s(A.id),x.current=!1;return}}}}catch(C){console.warn("[ProfileSelection] Dedupe lookup failed:",C)}try{const C=c==="none"&&u>0?"free_sample":c,{data:N,error:A}=await oe.from("stories").insert({user_id:t.id,age_range:"pending",language:"pending",status:"questionnaire",is_free_sample:C==="free_sample",intended_entitlement:C,is_overage:C==="overage"}).select().single();if(A)throw console.error("[ProfileSelection] Story creation error:",A),A;if(!N||!N.id)throw new Error("Story created but no ID returned");s(N.id);try{sessionStorage.setItem(E,JSON.stringify({id:N.id,ts:Date.now()}))}catch{}console.log("[ProfileSelection] Story created successfully:",{storyId:N.id,entitlement:N.intended_entitlement,isOverage:N.is_overage})}catch(C){console.error("[ProfileSelection] Error creating story:",C);const N=C instanceof Error?`Failed to create story: ${C.message}`:"Failed to start story creation. Please try again.";Ct.error(N),b.current=!1,e("/library")}finally{x.current=!1}}})()},[t==null?void 0:t.id,h,g]),k.useEffect(()=>()=>{f||(s(null),a(null),o(null),l(null))},[]);const _=async()=>{if(!p){Ct.error("Please select an age range");return}const w=f;if(!w){Ct.error("Story not found. Please try again."),e("/library");return}v(!0);try{const{error:j}=await oe.from("stories").update({age_range:p}).eq("id",w);if(j)throw j;a(p),e(`/app/language-selection?id=${w}`)}catch(j){console.error("Error updating story:",j),Ct.error("Failed to save your selection. Please try again.")}finally{v(!1)}};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Select Age Range - kibbi | Create Personalized Story"}),i.jsx("meta",{name:"description",content:"Choose your child's age range to create a story perfectly tailored to their developmental stage and reading level."}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx("header",{className:"border-b border-border px-6 py-4 flex items-center gap-6",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-8"})}),i.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-12",children:i.jsx("div",{className:"w-full max-w-md",children:i.jsxs("div",{className:"bg-card rounded-lg shadow-sm border border-border p-8 space-y-6",children:[i.jsx("h1",{className:"text-2xl font-semibold text-foreground text-center",children:"What is the age of the reader?"}),i.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"The older the child, the more advanced and longer the story will be."}),i.jsx("div",{className:"space-y-4",children:i.jsxs(rn,{value:p,onValueChange:y,children:[i.jsx(Wr,{className:"w-full bg-background",children:i.jsx(nn,{placeholder:"Select age range"})}),i.jsxs(Gr,{className:"bg-popover z-50",children:[i.jsx(pt,{value:"0-2",children:"0-2 years â 10 pages with up to 100 words"}),i.jsx(pt,{value:"3-5",children:"3-5 years â 15 pages with up to 450 words"}),i.jsx(pt,{value:"6-9",children:"6-9 years â 20 pages with up to 1,700 words"})]})]})}),i.jsx(le,{size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground rounded-full",disabled:!p||m,onClick:_,children:m?"Saving...":"Continue"})]})})})]})]})},C1t=()=>{var m;const e=wt(),{storyId:t,setLanguage:r,setStoryId:n}=Zs(),s=new URLSearchParams(window.location.search).get("id"),o=s||t,[l,c]=k.useState("english"),[u,d]=k.useState(!1),[h,f]=k.useState(!1);k.useEffect(()=>{(async()=>
8057{if(!o){e("/app/profile-selection");return}try{const{data:g,error:b}=await oe.from("stories").select("language, age_range").eq("id",o).single();if(b)throw b;if(!(g!=null&&g.age_range)||g.age_range==="pending"){Ct.error("Please select an age range first"),e(`/app/profile-selection?id=${o}`);return}g!=null&&g.language&&g.language!=="pending"&&c(g.language),s&&s!==t&&n(s)}catch(g){console.error("Error loading story:",g),e("/app/profile-selection")}})()},[o,s,t,e]);const p=async()=>{if(!l){Ct.error("Please select a language");return}if(!o){Ct.error("Story not found. Please start over."),e("/app/profile-selection");return}d(!0);try{const{error:v}=await oe.from("stories").update({language:l}).eq("id",o);if(v)throw v;r(l),e(`/app/reading-level-selection?id=${o}`)}catch(v){console.error("Error updating story:",v),Ct.error("Failed to save language. Please try again.")}finally{d(!1)}},y=HCe;return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Select Language - kibbi | Create Personalized Story"}),i.jsx("meta",{name:"description",content:"Choose the language for your child's personalized storybook. Available in 20+ languages including English, Spanish, French, and more."}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx("header",{className:"border-b border-border px-6 py-4 flex items-center gap-6",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-8"})}),i.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-12",children:i.jsx("div",{className:"w-full max-w-md",children:i.jsxs("div",{className:"bg-card rounded-lg shadow-sm border border-border p-8 space-y-6",children:[i.jsx("h1",{className:"text-2xl font-semibold text-foreground text-center",children:"What language do you want the stories to be in?"}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"language",className:"text-sm text-foreground",children:"Language"}),i.jsxs(Ase,{open:h,onOpenChange:f,children:[i.jsx(Mse,{asChild:!0,children:i.jsxs(le,{variant:"outline",role:"combobox","aria-expanded":h,className:"w-full justify-between bg-background",children:[l?(m=y.find(v=>v.value===l))==null?void 0:m.label:"Select language...",i.jsx(py,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),i.jsx(cG,{className:"w-[var(--radix-popover-trigger-width)] p-0 bg-popover z-50",children:i.jsxs(Ose,{children:[i.jsx(Rse,{placeholder:"Search language..."}),i.jsxs(Dse,{children:[i.jsx(Fse,{children:"No language found."}),i.jsx($se,{children:y.map(v=>i.jsxs(Bse,{value:v.label,onSelect:()=>{c(v.value),f(!1)},children:[i.jsx(_r,{className:De("mr-2 h-4 w-4",l===v.value?"opacity-100":"opacity-0")}),v.label]},v.value))})]})]})})]})]}),i.jsx(le,{size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground rounded-full",disabled:!l||!o||u,onClick:p,children:u?"Saving...":"Continue"}),i.jsx("button",{type:"button",onClick:()=>e(`/app/profile-selection?id=${o}`),className:"w-full text-sm text-muted-foreground hover:text-foreground transition-colors",children:"â Back to age selection"})]})})})]})]})},tNe={read_aloud:{title:"Read aloud to them",description:"Richer language with longer, flowing sentences."},learning_to_read:{title:"They're learning to read",description:"Short decodable sentences with phonetically simple words and predictable patterns."},independent_reader:{title:"They can read on their own",description:"More dialogue, longer sentences, and a bit more challenge."}},N1t={"0-2":{read_aloud:`Bella pushes the toy ball. 8058Ruby crawls to Bella, so small.`,learning_to_read:"",independent_reader:""},"3-5":{read_aloud:`One sunny morning, Mia found a shiny red button hiding under the leafy bush. 8059 8060She picked it up carefully, wondering where it came from.`,learning_to_read:"Pat can tap.",independent_reader:"Mia found something in the garden. What was it?"},"6-9":{read_aloud:`Maya stopped at the edge of the forest. The path ahead looked dark and twisty, winding between ancient oak trees. 8061 8062"Are you ready?" asked Leo, adjusting his backpack. 8063 8064"Let's find out," Maya whispered back, taking a deep breath.`,learning_to_read:"The frog jumps on the stump.",independent_reader:`Maya stood at the forest edge. The trees looked tall and dark. 8065 8066"Are you scared?" Leo asked. 8067 8068"A little," Maya said. "But let's go." 8069 8070They walked in together.`}},T1t={"0-2":{read_aloud:{title:"Read aloud to them",description:"Simple, rhythmic
8070sentences perfect for little ears. 5-15 words per page with optional rhyme."}},"3-5":{read_aloud:{title:"Read aloud to them",description:"Richer vocabulary and flowing sentences. 20-35 words per page with descriptive language."},learning_to_read:{title:"They're learning to read",description:"One short decodable sentence per page (~3 words). Simple words only with heavy repetition."},independent_reader:{title:"They can read on their own",description:"Short sentences with gentle challenge. 1-2 sentences per page, up to 24 words."}},"6-9":{read_aloud:{title:"Read aloud to them",description:"Literary language with rich sentences. 80-100 words per page with vivid descriptions."},learning_to_read:{title:"They're learning to read",description:"One decodable sentence per page (~5-6 words). CVC words plus blends and digraphs with repetition."},independent_reader:{title:"They can read on their own",description:"More dialogue, compound sentences, and vocabulary challenge. 60-70 words per page with richer storytelling."}}};function A1t(e,t){var r;return((r=N1t[e])==null?void 0:r[t])||""}function M1t(e,t){var n;const r=(n=T1t[e])==null?void 0:n[t];return r||tNe[t]}const I1t={"0-2":10,"3-5":15,"6-9":20},P1t=()=>{const e=wt(),{user:t}=er(),{storyId:r,readingLevel:n,setReadingLevel:a,ageRange:s,setAgeRange:o,language:l,setLanguage:c}=Zs(),h=new URLSearchParams(window.location.search).get("id")||r,[f,p]=k.useState(n),[y,m]=k.useState(!1);k.useEffect(()=>{if(!t){e("/login");return}if(!h){Ct.error("Please complete previous steps first"),e("/app/profile-selection");return}(async()=>{try{const{data:b,error:x}=await oe.from("stories").select("age_range, language, reading_level").eq("id",h).single();if(x)throw x;if(!b.age_range||b.age_range==="pending"){Ct.error("Please select an age range first"),e(`/app/profile-selection?id=${h}`);return}if(!b.language||b.language==="pending"){Ct.error("Please select a language first"),e(`/app/language-selection?id=${h}`);return}b.age_range&&s!==b.age_range&&o(b.age_range),b.language&&l!==b.language&&c(b.language),b.reading_level&&p(b.reading_level)}catch(b){console.error("Error loading story:",b),Ct.error("Failed to load story. Please try again."),e("/app/profile-selection")}})()},[t,h,e]);const v=async()=>{if(!f){Ct.error("Please select a reading level");return}if(!h){Ct.error("Story not found. Please start over."),e("/app/profile-selection");return}m(!0);try{const{error:g}=await oe.from("stories").update({reading_level:f}).eq("id",h);if(g)throw g;a(f),e(`/app/style-selection?id=${h}`)}catch(g){console.error("Error saving reading level:",g),Ct.error("Failed to save reading level. Please try again.")}finally{m(!1)}};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Choose Reading Level - kibbi"}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx("header",{className:"border-b border-border px-6 py-4",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-8"})}),i.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-12",children:i.jsxs("div",{className:"max-w-3xl w-full space-y-8",children:[i.jsxs("div",{className:"text-center space-y-2",children:[i.jsx("h1",{className:"text-4xl font-semibold text-foreground",children:"How do you want the story written?"}),i.jsxs("p",{className:"text-lg text-muted-foreground",children:["Choose the reading level that matches the child's current stage. Your story will have ",I1t[s||"3-5"]||15," pages."]})]}),i.jsx("div",{className:"grid gap-4",children:Object.keys(tNe).filter(g=>!(s==="0-2"&&g!=="read_aloud")).map(g=>{const{title:b,description:x}=M1t(s||"",g),_=A1t(s||"",g);return i.jsx(Ie,{className:`p-6 cursor-pointer transition-all hover:border-primary ${f===g?"border-primary bg-primary/5":""}`,onClick:()=>p(g),children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx("div",{className:"flex-shrink-0 mt-1",children:i.jsx("div",{className:`w-5 h-5 rounded-full border-2 transition-all ${f===g?"border-primary bg-primary":"border-gray-300"}`,children:f===g&&i.jsx("div",{className:"w-full h-full flex items-center justify-center",children:i.jsx("div",{className:"w-2 h-2 bg-white rounded-full"})})})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h3",{className:"text-xl font-semibold mb-1",children:b}),i.jsx("p",{className:"text-muted-foreground",children:x})]})]}),_&&i.jsxs("div",{className:"relative bg-background rounded-2xl shadow-lg p-6 border-2 border-border",children:[i.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-3",children:"Example page:"}),i.jsx("div",{className:"font-lexend font-normal text-base md:text-lg leading-relaxed text-foreground whitespace-pre-line",children:_})]})]})},g)})}),i.jsx(le,{size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",onClick:v,disabled:!f||y,children:y?"Saving...":"Continue"}),i.jsx("button",{type:"button",onClick:()=>e(`/app/language-selection?id=${h}`),className:"w-full text-sm text-muted-foreground hover:text-foreground transition-colors",children:"â Back to language"})]})})]})]})},L1t=["passed","failed","review","skipped"];function zse(e,t={}){return!!(t.isAdmin||e&&L1t.includes(e)||e==null&&t.qaCouldNotRun)}function O1t(e){return(e??[]).some(t=>(t==null?void 0:t.status)==="external"||(t==null?void 0:t.status)==="processing"||(t==null?void 0:t.status)==="completed")}function R1t(e){return(e??[]).some(t=>(t==null?void 0:t.status)==="completed")}const D1t=["external","ingesting","processing"];function F1t(e){return(e??[]).some(t=>D1t.includes((t==null?void 0:t.status)??""))}function $1t(e){return(e==null?void 0:e.status)==="failed"&&typeof(e==null?void 0:e.error_message)=="str
8070ing"&&e.error_message.startsWith("breyta trigger ")}function CH(e){return(e??[]).find(t=>{var r;return!$1t(t)&&((r=t==null?void 0:t.metadata)==null?void 0:r.trigger_ack)!==!1})}async function B1t(e,t){let r;try{r=await e("generate-all-images",{body:{storyId:t}})}catch(a){return{ok:!1,pipeline:"legacy",pageCount:0,error:a instanceof Error?a.message:String(a)}}if(r.error){const a=r.error;return{ok:!1,pipeline:"legacy",pageCount:0,error:typeof a=="string"?a:(a==null?void 0:a.message)??"generate-all-images failed"}}const n=r.data??{};return{ok:!0,pipeline:n.pipeline==="breyta"?"breyta":"legacy",pageCount:typeof n.pageCount=="number"?n.pageCount:0}}function z1t(e){return e.seedAttempts>=e.maxAttempts&&!e.requiredImagesReady&&!e.workInFlight}function U1t(e){return e.breytaRunCompleted?e.coverReady:e.queueTotal>0?e.queueSettled===e.queueTotal&&(e.coverInQueue||e.coverReady):e.requiredImagesReady&&e.coverReady&&!e.workInFlight}const q1t=["membership_included","membership_bonus","use_credit"],hG=4;function H1t(e){return e!=null&&e.has_purchased?!0:q1t.includes((e==null?void 0:e.intended_entitlement)??"")}function N2(e,t){return H1t(e)?t:t.filter(r=>r<=hG)}const V1t=new Set(["membership_included","membership_bonus","use_credit","free_sample","overage","admin_generated","paid"]);function Use(e){if(!e.textReady)return!1;const t=(e.entitlement??"").trim();return e.isBookClubTarget&&t!=="free_sample"&&t!=="overage"?!1:V1t.has(t)}function rNe(e){return(e.pathname==="/app/book-preview"||e.pathname==="/app/story-reader")&&new URLSearchParams(e.search).get("id")===e.storyId}const W1t=12e4,$3=new Map;function G1t(e){const t=(e==null?void 0:e.filter(n=>n.status==="completed").length)||0,r=(e==null?void 0:e.filter(n=>n.status==="failed"||n.status==="dead_letter").length)||0;return{completed:t,failed:r}}function K1t(e,t,r){let n=10;return t>0&&(n=Math.round(e/t*80)+10),r&&(n=Math.max(n,90)),n}const Yh=(e,t,r,n)=>{console.log(`[BOOK-CREATION] ${r.toUpperCase()} - ${t}`,{timestamp:new Date().toISOString(),storyId:e,step:t,status:r,details:n})},Y1t=(e,t)=>{const r=t instanceof Error?t.message:String(t);switch(e){case"Securing your story":return"Failed to secure your story credit. Please try again.";case"Creating illustrations":return"Illustrations are taking longer than expected. Your book may still be processing.";case"Finalizing book":return"Failed to finalize book. Your book may be ready - try viewing your library.";default:return`Failed to create book: ${r}`}},nNe=({storyId:e,title:t=""})=>{const r=wt(),{toast:n}=Xt(),{isAdmin:a}=Fr(),{bookClubTargetId:s}=Zs(),[o,l]=k.useState(!1),[c,u]=k.useState(0),[d,h]=k.useState(0),[f,p]=k.useState(null),y=k.useCallback(async()=>{if(e){l(!0),u(0),h(5),p(null);try{p("Securing your story"),Yh(e,"Securing your story","start");const{data:{user:v}}=await oe.auth.getUser();if(!v)throw new Error("User not authenticated");const{data:g,error:b}=await oe.from("profiles").select("included_story_available, story_credits, membership_active").eq("id",v.id).single();if(b)throw new Error("Failed to verify story credits. Please refresh and try again.");const x=a||(g==null?void 0:g.membership_active)&&(g==null?void 0:g.included_story_available)||((g==null?void 0:g.story_credits)??0)>0;Yh(e,"Securing your story","success",{hasCredits:x}),h(10),u(1),p("Creating illustrations"),Yh(e,"Creating illustrations","start");let _=10,w=10,j=!1,E=!1,C=0;const N=3,A=setInterval(()=>{_<85&&(_+=1,h(Z=>Math.max(Z,_)))},2e3),$=6e5,T=30*60*1e3,F=3e3,M=Date.now();let z=0,Y=0;try{let Z=null;for(;!j&&Date.now()-M-Y<(E?T:$);){const{data:V,error:ne}=await oe.from("image_generation_queue").select("page_number, status").eq("story_id",e),{data:P,error:R}=await oe.from("stories").select("cover_image_url, book_description, story_content, story_content_draft, has_purchased, page_illustrations, qa_status, intended_entitlement, age_range, language").eq("id",e).single();if(ne||R){console.warn("[BOOK-CREATION] Poll query error, retrying:",ne||R),await new Promise(ye=>setTimeout(ye,F));continue}const H=(V==null?void 0:V.length)||0,{data:re,error:ae}=await oe.from("story_generation_queue").select("status, step").eq("story_id",e).in("step",["breyta_images","breyta_cover"]);ae&&console.warn("[BOOK-CREATION] breyta tracker lookup failed â assuming an external run may be live this tick:",ae.message);const D=!!ae,U=(re||[]).filter(ye=>ye.step==="breyta_images"),se=D||O1t(U),te=D||F1t(re),Q=Object.keys(wl(P==null?void 0:P.story_content)).length>0;if(!E&&Q&&Use({textReady:Q,entitlement:P==null?void 0:P.intended_entitlement,isBookClubTarget:s===e})){E=!0;const ye=rNe({pathname:window.location.pathname,search:window.location.search,storyId:e});console.log(ye?"[BOOK-CREATION] Book already open; finalizing in the background without navigating":"[BOOK-CREATION] Text-first reveal: opening BookPreview; finalization continues in the background"),ye||r(`/app/book-preview?id=${e}`)}if(H===0&&!se&&C<N){C++,console.log(`[BOOK-CREATION] Empty queue â seeding attempt ${C}/${N} (BYOS/fallback)`);const ye=(P==null?void 0:P.story_content)||(P==null?void 0:P.story_content_draft),_e=wl(ye),Fe=Object.keys(_e).map(xe=>parseInt(xe)).filter(xe=>!isNaN(xe)),ht=await Imt((xe,je)=>oe.functions.invoke(xe,je),e,{maxInvocations:5,timeoutMs:75e3});if(Y+=ht.sheetDrainMs,!ht.readyToSeed){if(C>=N)throw new Error("Your story changed while illustrations were being prepared. Please try again.");console.log("[BOOK-CREATION] Canon changed during preparation; retrying saved story on the next poll"),await new Promise(xe=>setTimeout(xe,F));continue}const _t=await B1t((xe,je)=>oe.functions.invoke(xe,je),e);if(console.log(`[BOOK-CREATION] Server seeding: ok=${_t.ok} pipeline=${_t.pipeline} pages=${_t.pageCount} (of ${Fe.length} total)${_t.error?` error=${_t.error}`:""}`),!_t.ok&&C>=N)throw new Error(`Failed to queue any images after ${N} attempts. Please try again.`);P!=null&&P.book_description||oe.functions.invoke("generate-book-description",{body:{storyId:e,ageRange:P==null?void 0:P.age_range,language:P==null?void 0:P.language}}
8070).then(xe=>{xe.error&&console.error("[BOOK-CREATION] Fallback description invoke error:",xe.error)}).catch(xe=>console.error("[BOOK-CREATION] Fallback description generation failed:",xe)),await new Promise(xe=>setTimeout(xe,F));continue}const{completed:K,failed:ue}=G1t(V),B=!!(P!=null&&P.cover_image_url);z=ue,w=K1t(K,H,B),h(ye=>Math.max(ye,w));const pe=(V==null?void 0:V.some(ye=>ye.page_number===0))||!1,G=Object.keys(wl((P==null?void 0:P.story_content)||(P==null?void 0:P.story_content_draft))).map(ye=>parseInt(ye)).filter(ye=>!isNaN(ye)),I=N2(P,G),L=(P==null?void 0:P.page_illustrations)||{},q=I.length>0&&I.every(ye=>{const _e=L[String(ye)];return(_e==null?void 0:_e.status)==="complete"&&!!(_e!=null&&_e.image_url)}),X=U1t({breytaRunCompleted:R1t(U),queueTotal:H,queueSettled:K+ue,coverReady:B,coverInQueue:pe,requiredImagesReady:q,workInFlight:te}),ie=!!(P!=null&&P.cover_image_url),J=!!(P!=null&&P.book_description);if(z1t({seedAttempts:C,maxAttempts:N,requiredImagesReady:q,workInFlight:H>0||te}))throw new Error(`Failed to queue any images after ${N} attempts. Please try again.`);const fe=X&&q&&ie&&J;fe&&Z===null&&(Z=Date.now());const ve=z>0||(P==null?void 0:P.intended_entitlement)==="book_club_teaser",ge=zse(P==null?void 0:P.qa_status,{qaCouldNotRun:ve,isAdmin:a}),de=Z!==null&&Date.now()-Z>W1t;j=fe&&(ge||de),j||await new Promise(ye=>setTimeout(ye,F))}}finally{clearInterval(A)}if(j)z>0&&n({title:"Some images couldn't be generated",description:`${z} image(s) failed. You can regenerate them later.`,variant:"default",duration:5e3});else{l(!1),E||(console.warn("Timeout waiting for images, redirecting to library"),n({title:"Still preparing your book",description:"Illustrations are taking longer than usual. We'll keep working â check My Library in a minute.",variant:"default",duration:6e3}),r("/library"));return}Yh(e,"Creating illustrations","success",{finalFailedCount:z});let W=null;{let Z=null;for(let V=0;V<3;V++){const{data:ne,error:P}=await oe.from("stories").select("intended_entitlement").eq("id",e).single();if(!P){W=(ne==null?void 0:ne.intended_entitlement)??null,Z=null;break}Z=P,await new Promise(R=>setTimeout(R,1e3))}if(Z)throw console.error("Failed to read story entitlement before consume:",Z),new Error("Could not verify your story credit. Please try again.")}if(j&&W==="membership_included"&&!a){let Z=!1,V=!1,ne=null;for(let P=0;P<3;P++){const{error:R}=await oe.functions.invoke("consume-story-credit",{body:{storyId:e}});if(!R){Z=!0;break}const H=R==null?void 0:R.context,re=H==null?void 0:H.status;if(console.error("Failed to consume story credit:",R,{status:re,attempt:P}),re===400){V=!0;try{H&&typeof H.json=="function"&&(ne=await H.json())}catch{ne=null}break}await new Promise(ae=>setTimeout(ae,1e3))}if(V){if(ne&&ne.converted===!1)throw new Error("Your story credit was already used. Please reopen the story to purchase it.")}else if(!Z)throw new Error("Could not confirm your story credit. Please try again.")}u(2),p("Finalizing book"),Yh(e,"Finalizing book","start"),h(95);const{error:ee}=await oe.from("stories").update({status:"completed"}).eq("id",e);ee&&console.error("Failed to update status, continuing:",ee);try{W==="free_sample"&&await oe.functions.invoke("increment-free-sample-count",{body:{storyId:e}})}catch(Z){console.error("Free sample increment error (non-blocking):",Z)}Yh(e,"Finalizing book","success"),h(100);try{if(v!=null&&v.email){const{data:Z}=await oe.from("stories").select("illustration_style, story_title, age_range, language").eq("id",e).single();oe.functions.invoke("add-user-to-loops",{body:{email:v.email,operation:"event",eventName:"bookCreationCompleted",eventProperties:{ageRange:(Z==null?void 0:Z.age_range)||"unknown",language:(Z==null?void 0:Z.language)||"unknown",illustrationStyle:(Z==null?void 0:Z.illustration_style)||"unknown",storyTitle:(Z==null?void 0:Z.story_title)||t||"Untitled Story",completedAt:new Date().toISOString(),previewUrl:`${window.location.origin}/app/book-preview?id=${e}`}}}).catch(V=>console.error("Analytics failed (non-blocking):",V))}}catch(Z){console.error("Analytics error (non-blocking):",Z)}p("Opening book preview"),l(!1),!E&&!window.location.pathname.includes("/book-preview")&&r(`/app/book-preview?id=${e}`)}catch(v){const g=v instanceof Error?v.message:String(v);Yh(e,f||"Securing your story","error",{error:g}),l(!1),n({title:"Book Creation Failed",description:Y1t(f,v),variant:"destructive"})}}},[e,t,a,r,n,f]),m=k.useCallback(async()=>
8070{if(!e)return;const v=$3.get(e);if(v){l(!0);try{await v}finally{l(!1)}return}const g=y();$3.set(e,g);try{await g}finally{$3.get(e)===g&&$3.delete(e)}},[e,y]);return{isCreatingBook:o,creationStage:c,creationProgress:d,currentStep:f,createBook:m}};var qse="Progress",Hse=100,[X1t,MWt]=xa(qse),[Z1t,Q1t]=X1t(qse),aNe=k.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:a,getValueLabel:s=J1t,...o}=e;(a||a===0)&&!Gpe(a)&&console.error(e0t(`${a}`,"Progress"));const l=Gpe(a)?a:Hse;n!==null&&!Kpe(n,l)&&console.error(t0t(`${n}`,"Progress"));const c=Kpe(n,l)?n:null,u=NH(c)?s(c,l):void 0;return i.jsx(Z1t,{scope:r,value:c,max:l,children:i.jsx(dt.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":NH(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":oNe(c,l),"data-value":c??void 0,"data-max":l,...o,ref:t})})});aNe.displayName=qse;var iNe="ProgressIndicator",sNe=k.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,a=Q1t(iNe,r);return i.jsx(dt.div,{"data-state":oNe(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...n,ref:t})});sNe.displayName=iNe;function J1t(e,t){return`${Math.round(e/t*100)}%`}function oNe(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function NH(e){return typeof e=="number"}function Gpe(e){return NH(e)&&!isNaN(e)&&e>0}function Kpe(e,t){return NH(e)&&!isNaN(e)&&e<=t&&e>=0}function e0t(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Hse}\`.`}function t0t(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 8071 - a positive number 8072 - less than the value passed to \`max\` (or ${Hse} if no \`max\` prop is set) 8073 - \`null\` or \`undefined\` if the progress is indeterminate. 8074 8075Defaulting to \`null\`.`}var lNe=aNe,r0t=sNe;const cNe=k.forwardRef(({className:e,value:t,...r},n)=>i.jsx(lNe,{ref:n,className:De("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:i.jsx(r0t,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));cNe.displayName=lNe.displayName;const n0t=["If your child memorizes a book, that's not cheating â it's a real step toward reading.","Wiggly toddler? Reading on the floor or upside down still counts.","A book is 'just right' when your child misses about 1 in 20 words â not zero.","Bilingual kids aren't confused by two languages. They're building two toolkits.","Sound blending clicks faster when you stretch the word: 'sssss-uuuu-nnnn⦠sun!'","Bedtime resistance is rarely about the book â it's usually about the transition.","Re-reading the same story isn't boring for them. It's how mastery feels.","If a book frustrates your child three pages in, it's too hard today â not forever.","Children who see their parents read for fun are more likely to become readers themselves.","Let your child turn the page â that small control keeps them engaged longer.","Pointing at words while you read builds the idea that text carries meaning.","Questions like 'What might happen next?' teach prediction, a key reading skill.","Nursery rhymes and silly songs are pre-reading gold â rhythm builds phonemic awareness.","Reading aloud to older kids still matters. The bond and vocabulary boost don't expire.","If they ask about a picture instead of the words, follow their lead â both skills count.","A cozy, predictable reading spot signals the brain: it's time to settle in.","Pausing to let your child finish a sentence is more powerful than correcting them.","Letting kids 'read' pictures before text teaches them that stories have structure.","A single book at bedtime beats a stack of screens any night of the week.","Drama and funny voices aren't silly â they make characters memorable.","Kids who choose their own books read 3x more than kids who don't.","Stopping mid-sentence builds suspense and keeps them asking for more.","Books with repeating phrases let kids 'chime in' â that's active reading.","There is no 'too old' for being read to. The benefits keep stacking.","A bored expression during reading often means 'too easy,' not 'I hate books.'","Let them hold the book, flip ahead, go back â physical interaction deepens focus."],a0t=["Tip: the more specific the character quirks, the more they sound like your kid.","Tip: y
8075ou can reuse characters across stories â they remember their look.","Tip: shorter prompts often produce stronger stories. Trust Kibbi to fill the gaps.","Tip: stories work best when the child wants something and something gets in the way.","Tip: real places (grandma's house, your street) make the magic land harder.","Tip: try mixing genres â a pirate + space story surprises in the best way.","Tip: the book club mode lets you build a whole series with the same characters.","Tip: save your favorite characters so they can star in future adventures.","Tip: hardcover editions make keepsake gifts that outlast any screen.","Tip: reading the story aloud before bed makes the characters feel even more real.","Tip: use your child's own name as a character â nothing hooks them faster.","Tip: printing a physical copy turns a screen story into a shelf memory.","Tip: siblings love spotting each other as side characters in the same adventure.","Tip: keep the story under 20 pages for the youngest readers â attention is a currency.","Tip: a small fear overcome in the story becomes bravery in real life."],Ype=e=>{const t=[...e];for(let r=t.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1));[t[r],t[n]]=[t[n],t[r]]}return t},i0t=(e,t)=>{const r=[],n=Math.max(e.length,t.length);for(let a=0;a<n;a++)a<e.length&&r.push(e[a]),a<t.length&&r.push(t[a]);return r},Xpe=i0t(Ype(n0t),Ype(a0t)),s0t=e=>[{title:"Creating characters...",icon:Qt,color:"text-primary",timeHint:null},{title:"Writing your story...",icon:xr,color:"text-accent",timeHint:"Usually 3-5 minutes"},{title:"Painting your illustrations...",icon:lc,color:"text-accent",timeHint:"Illustrations can take up to 8-9 minutes"},{title:"Finalizing your story...",icon:Qt,color:"text-accent",timeHint:null}],o0t=[{title:"Preparing your book...",icon:xr,color:"text-primary",timeHint:null},{title:"Creating illustrations...",icon:lc,color:"text-accent",timeHint:"This may take a few minutes"},{title:"Finalizing your book...",icon:Qt,color:"text-primary",timeHint:null}],Fk=({currentStage:e,progress:t,flow:r="draft",readingLevel:n})=>{const[a,s]=k.useState(0),[o,l]=k.useState(0),c=k.useRef(Date.now()),u=r==="draft"?s0t():o0t,d=u[e]||u[0];return k.useEffect(()=>{c.current=Date.now(),l(0)},[e]),k.useEffect(()=>{const h=setInterval(()=>{l(Math.floor((Date.now()-c.current)/1e3))},1e3);return()=>clearInterval(h)},[]),k.useEffect(()=>{const h=setInterval(()=>{s(f=>(f+1)%Xpe.length)},7e3);return()=>clearInterval(h)},[]),i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-gradient-to-br from-primary/20 via-background to-accent/20 backdrop-blur-sm",children:i.jsxs("div",{className:"flex flex-col items-center gap-8 p-8 max-w-md w-full",children:[i.jsx("div",{className:"relative",children:i.jsx("div",{className:"animate-bounce",children:i.jsxs("div",{className:"relative w-32 h-32 flex items-center justify-center",children:[i.jsx(xr,{className:`w-24 h-24 ${d.color} transition-colors duration-500 animate-pulse`,strokeWidth:1.5}),i.jsx(Qt,{className:"absolute -top-2 -right-2 w-6 h-6 text-primary animate-ping",style:{animationDuration:"2s"}}),i.jsx(Qt,{className:"absolute -bottom-2 -left-2 w-5 h-5 text-accent animate-ping",style:{animationDuration:"2.5s",animationDelay:"0.5s"}}),i.jsx(Qt,{className:"absolute top-4 -left-4 w-4 h-4 text-primary animate-ping",style:{animationDuration:"3s",animationDelay:"1s"}})]})})}),i.jsxs("div",{className:"w-full space-y-2",children:[i.jsx(cNe,{value:t,className:"h-2"}),i.jsxs("p",{className:"text-sm text-muted-foreground text-center",children:[Math.round(t),"%"]})]}),i.jsxs("div",{className:"text-center space-y-2 min-h-[80px]",children:[i.jsx("h2",{className:"text-2xl font-semibold text-foreground animate-fade-in",children:d.title}),i.jsx("p",{className:"text-base text-muted-foreground animate-fade-in px-2",children:Xpe[a]},`tip-${a}`)]}),d.timeHint&&o>15&&i.jsx("p",{className:"text-sm text-muted-foreground animate-fade-in",children:d.timeHint}),i.jsx("p",{className:"text-sm text-muted-foreground/60 italic animate-pulse",children:"⨠Creating magic... please wait â¨"})]})})},l0t={"watercolor-pastel":_Se,"whimsical-sketch":SSe,"vintage-storybook":jSe,"3d-family-film":ESe,"stylized-vector":CSe,graphic:NSe,"mid-century-modern":TSe,anime:ASe,comic:MSe},c0t=()=>{var N;const[e]=ka(),t=wt(),{storyId:r,setStoryId:n,setIllustrationStyle:a}=Zs(),[s,o]=k.useState(null),[l,c]=k.useState(!1),[u,d]=k.useState(!1),[h,f]=k.useState(null),[p,y]=k.useState(null),m=k.useRef(null),v=p==="user_provided",{isCreatingBook:g,creationStage:b,creationProgress:x,createBook:_}=nNe({storyId:r||null});k.useEffect(()=>{const A=e.get("id");A&&A!==r?(n(A),w(A)):!A&&!r?t("/app/profile-selection"):r&&w(r)},[e,r,n,t]);const w=async A=>{try{const{data:$,error:T}=await oe.from("stories").select("illustration_style, age_range, language, reading_level, story_source").eq("id",A).single();if(T)throw T;const F=($==null?void 0:$.story_source)==="user_provided";if(y(($==null?void 0:$.story_source)||null),!($!=null&&$.age_range)||$.age_range==="pending"){Ct.error("Please select an age range first"),t(`/app/profile-selection?id=${A}`);return}if(!($!=null&&$.language)||$.language==="pending"){Ct.error("Please select a language first"),t(`/app/language-selection?id=${A}`);return}if(!($!=null&&$.reading_level)&&!F){Ct.error("Please select a reading level first"),t(`/app/reading-level-selection?id=${A}`);return}$!=null&&$.age_range&&f($.age_range),$!=null&&$.illustration_style&&(o($.illustration_style),a($.illustration_style)),m.current=($==null?void 0:$.illustration_style)??null}catch($){console.error("Error loading style:",$),t("/app/profile-selection")}},j=A=>{const $=[...C0];if(!A)return $;const F={"0-2":["watercolor-pastel","mid-century-modern","stylized-vector","graphic","3d-family-film","comic","anime","whimsical-sketch","vintage-storybook"],"3-5":["3d-family-film","whimsical-sketch","comic","anime","mid-century-modern","stylized-vector","graphic","vintage-storybook","watercolor-pastel"],"6-9":["graphic","comic","3d-family-film","anime","whimsical-sketch","mid-century-modern","watercolor-pastel","stylized-vector","vintage-storybook"]}[A];return F?$.sort((M,z)=>{const Y=F.indexOf(M.key),W=F.indexOf(z.key);return Y!==-1&&W!==-1?Y-W:Y!==-1?-1:W!==-1?1:0}):$},E=()=>
8075{if(!s){Ct.error("Please select an illustration style");return}d(!0)},C=async()=>{if(!r){Ct.error("Story ID not found");return}c(!0);try{const A=Nmt(m.current,s),{error:$}=await oe.from("stories").update({illustration_style:s,...A?{character_sheets:null,location_sheets:null}:{}}).eq("id",r);if($)throw $;m.current=s,a(s),d(!1),v?await _():t(`/app/story-input?id=${r}`)}catch(A){console.error("Error saving style:",A),Ct.error("Failed to save illustration style")}finally{c(!1)}};return g?i.jsx(Fk,{currentStage:b,progress:x,flow:"book"}):i.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-primary/5 to-background p-4 md:pb-4 pb-24",children:[i.jsx("header",{className:"flex justify-between items-center mb-8 max-w-6xl mx-auto",children:i.jsx("img",{src:va,alt:"Kibbi",className:"h-12"})}),i.jsx("main",{className:"max-w-6xl mx-auto",children:i.jsxs(Ie,{className:"p-8 pb-4 md:pb-8",children:[i.jsx("h1",{className:"text-3xl font-bold mb-2 text-center",children:"Choose Your Illustration Style"}),i.jsx("p",{className:"text-muted-foreground text-center mb-8",children:"Select the visual style for your story's illustrations"}),i.jsxs("div",{className:"hidden md:flex flex-col items-center gap-2 mb-8",children:[i.jsx(le,{onClick:E,disabled:!s||l,size:"lg",children:l?"Saving...":v?"Create My Book":"Continue"}),i.jsxs("button",{type:"button",onClick:()=>t(v?`/app/story-metadata?id=${r}`:`/app/reading-level-selection?id=${r}`),className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:["â ",v?"Back to characters":"Back to reading level"]})]}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-8",children:j(h).map((A,$)=>i.jsxs(Ie,{className:`cursor-pointer transition-all hover:shadow-lg overflow-hidden ${s===A.key?"ring-2 ring-primary shadow-lg":""}`,onClick:()=>o(A.key),children:[i.jsxs("div",{className:"relative",children:[i.jsx("img",{src:l0t[A.key],alt:`${A.name} illustration style example - ${A.description}`,className:"w-full aspect-[2/3] object-cover",loading:$<4?"eager":"lazy",decoding:"async",fetchPriority:$<4?"high":"auto",width:"400",height:"600"}),s===A.key&&i.jsx("div",{className:"absolute top-2 right-2 bg-primary text-primary-foreground rounded-full p-1.5",children:i.jsx(_r,{className:"w-4 h-4"})})]}),i.jsxs("div",{className:"p-3",children:[i.jsx("h3",{className:"font-semibold text-sm mb-1",children:A.name}),i.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:A.description})]})]},A.key))}),i.jsxs("div",{className:"md:hidden fixed bottom-0 left-0 right-0 p-4 bg-background border-t space-y-2",children:[i.jsx(le,{onClick:E,disabled:!s||l,size:"lg",className:"w-full",children:l?"Saving...":v?"Create My Book":"Continue"}),i.jsxs("button",{type:"button",onClick:()=>t(v?`/app/story-metadata?id=${r}`:`/app/reading-level-selection?id=${r}`),className:"w-full text-sm text-muted-foreground hover:text-foreground transition-colors",children:["â ",v?"Back to characters":"Back to reading level"]})]})]})}),i.jsx(Jl,{open:u,onOpenChange:d,children:i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Confirm Your Style Choice"}),i.jsxs(hl,{className:"space-y-3",children:[i.jsxs("p",{children:["Are you sure you want to use the"," ",i.jsx("strong",{children:(N=C0.find(A=>A.key===s))==null?void 0:N.name})," ","style?"]}),i.jsx("p",{className:"text-amber-600 dark:text-amber-500 font-medium",children:"â ï¸ This cannot be changed after your story is generated."}),i.jsx("p",{className:"text-sm",children:"You'll be able to edit specific details in individual images later, but you won't be able to change the overall illustration style."})]})]}),i.jsxs(ul,{children:[i.jsx(pl,{children:"Go Back"}),i.jsx(fl,{onClick:C,disabled:l||g,children:l||g?"Creating...":v?"Create My Book":"Yes, Continue"})]})]})})]})};function uNe(e){var r;const t=e;return(t==null?void 0:t.name)==="FunctionsFetchError"||(t==null?void 0:t.name)==="FunctionsRelayError"||((r=t==null?void 0:t.context)==null?void 0:r.status)===504}async function Zpe(e,t){t.throwIfAborted();let r=await oe.functions.invoke("generate-story-answers",{body:e,signal:t});return t.throwIfAborted(),uNe(r.error)&&(await new Promise((n,a)=>{const s=()=>{clearTimeout(o),a(t.reason)},o=setTimeout(()=>{t.removeEventListener("abort",s),n()},1500);t.addEventListener("abort",s,{once:!0})}),t.throwIfAborted(),r=await oe.functions.invoke("generate-story-answers",{body:e,signal:t}),t.throwIfAborted()),r}const u0t=100;function Qpe(e){return e.slice(-u0t)}function Jpe(e){return e.filter(t=>t.is_canon!==!1).sort((t,r)=>t.question_order-r.question_order)}function TH({answeredOrders:e,requiredOrders:t}){if(!t||t.length===0)return!1;const r=new Set(e.filter(n=>typeof n=="number"));return t.every(n=>r.has(n))}function d0t({answeredOrders:e,requiredOrders:t}){if(!t||t.length===0)return[];const r=new Set(e.filter(n=>typeof n=="number"));return t.filter(n=>!r.has(n)).sort((n,a)=>n-a)}function eme(e){return TH(e)?"complete":"finalize_failed"}function tme(e,t){if(TH(e))return"complete";if(t==null)return"restore";const r=new Set([...t].filter(a=>typeof a=="number"));return e.answeredOrders.some(a=>typeof a=="number"&&!r.has(a))?"finalize":"restore"}function h0t(e){return typeof e=="number"&&e!==504}function dNe(e){return e.source===null||e.source===void 0||e.source==="parent"||e.source==="follow_up"||e.source==="auto_answer"}function f0t(e){return e.filter(dNe)}function p0t(e){return e.filter(t=>!dNe(t))}function rme(e){return e==="complete"}function wX(e){const t=e.trim();return/^(no|none|skip|nope|na|n\/a)$/i.test(t)?null:t}function AH(e){const t=(e??"").toLowerCase();return/\bauthor\b/.test(t)||t.includes("book cover")||t.includes("credited as the writer")||t.includes("written by")||t.includes("forfatter")||t.includes("skrevet av")?"author":t.includes("dedication")||t.includes("dedik")||t.includes("widmung")||t.includes("dédic")||t.includes("special")&&t.includes("message")?"dedication":null}function nme(e,t,...r){if(typeof e=="number")for(const n of r){const a=n.find(s=>s.question_order===e);if(a)return AH(a.question_text)}return AH(t)}function m0t(e){const t=wt(),{user:r,loading:n,authVerified:a}=er(),{startJobTracking:s,isGenerating:o,bookClubTargetId:l}=Zs(),{toast:c}=Xt(),[u,d]=k.useState("loading"),[h,f]=k.useState(""),[p,y]=k.useState([]),[m,v]=k.useState([]),[g,b]=k.useState(""),[x,_]=k.useState([]),w=k.useRef([]),[j,E]=k.useState({}),[C,N]=k.useState(null),[A,$]=k.useState(null),T=k.useRef(null),F=k.useRef(null),M=k.useRef(!1);k.useRef(!1);const z=k.useRef(void 0),Y=k.useRef(!1),W=k.useRef(!1),ee=k.useRef(new AbortController);k.useEffect(()=>{const te=new AbortController;return ee.current=te,()=>te.abort()},[e,r==null?void 0:r.id]);const Z=k.useCallback(()=>{F.current&&(oe.removeChannel(F.current),F.current=null)},[]),V=k.useCallback(async()=>{const te=await w_e();return te||(c({title:"Session expired",description:CUe,variant:"destructive"}),t("/login"),null)},[t,c]),ne=k.useCallback(async te=>{const{data:Q,error:K}=await oe.from("story_questions").select("*").eq("story_id",te).order("question_order");if(K)throw new Error(`Failed to load answers: ${K.message}`);return(Q||[]).map(ue=>({id:ue.id,question:ue.question,answer:ue.answer||"",question_order:ue.question_order,question_type:ue.question_type||null,source:ue.source??null}))},[]),P=k.useCallback(async te=>{const{data:Q,error:K}=await oe.from("questionnaire_questions").select("*").eq("age_range",te).is("reading_level",null).order("question_order");if(K)throw new Error(`Failed to load static questions: ${K.message}`);if(!Q||Q.length===0)return!1;const ue=Jpe(Q);if(ue.length===0)return!1;_(ue);const B={};return ue.forEach(pe=>{B[pe.question_order]=""}),E(B),!0},[]);k.useEffect(()=>{if(n)return;if(!r){t("/login");return}if(!e){t("/library");return}const te=new AbortController;return(async()=>{d("loading"),$(null);try{const{data:K,error:ue}=await oe.from("stories").select("age_range, language, status, author_name, cover_image_url, reading_level, story_content, illustration_style, imported_from_story_id, character_descriptions, detected_characters").eq("id",e).single();if(te.signal.aborted)return;if(ue)throw ue;if(!K)throw new Error("Story not found");if(!K.age_range||K.age_range==="pending"){t(`/app/profile-selection?id=${e}`,{replace:!0});return}if(!K.language||K.language==="pending"){t(`/app/language-selection?id=${e}`,{replace:!0});return}if(!K.reading_level){t(`/app/reading-level-selection?id=${e}`,{replace:!0});return}if(!K.illustration_style){t(`/app/style-selection?id=${e}`,{replace:!0});return}if(K.status==="review"){const L=l===e?"/library":`/app/book-preview?id=${e}`;t(L,{replace:!0});return}if(K.status==="completed"&&K.cover_image_url){const L=l===e?"/library":`/app/book-preview?id=${e}`;t(L,{replace:!0});return}(async()=>{const{data:L}=await oe.from("questionnaire_questions").select("*").eq("age_range",K.age_range).is("reading_level",null).order("question_order");!te.signal.aborted&&L&&(w.current=Jpe(L))})();const B={storyId:e,userId:r.id,ageRange:K.age_range,language:K.language,readingLevel:K.reading_level};
8075if($(B),K.imported_from_story_id&&K.character_descriptions){const{data:L}=await oe.from("stories").select("story_title").eq("id",K.imported_from_story_id).single();let q=[];K.detected_characters&&Array.isArray(K.detected_characters)?q=K.detected_characters.map(X=>X.name):K.character_descriptions&&(q=K.character_descriptions.split(` 8076`).filter(ie=>ie.trim()).map(ie=>{const J=ie.match(/^(?:\d+\.\s*)?([^:(]+)/);return J?J[1].trim():""}).filter(Boolean)),te.signal.aborted||N({sourceTitle:(L==null?void 0:L.story_title)||"another story",characterNames:q,authorName:K.author_name})}const pe=localStorage.getItem(`draft-answer-${e}`);pe&&!te.signal.aborted&&b(pe);const G=await ne(e);if(te.signal.aborted)return;G.length>0&&v(G);const I=K.status==="ready"&&!K.story_content;if(K.status==="generating"||I){const{data:L}=await oe.from("story_generation_jobs").select("*").eq("story_id",e).in("status",["pending","processing"]).order("created_at",{ascending:!1}).limit(1).maybeSingle();if(L)if(I)if(Date.now()-new Date(L.updated_at||L.created_at).getTime()>10*60*1e3)await oe.from("story_generation_jobs").update({status:"failed",error_message:"Story generation timed out. Please try again.",completed_at:new Date().toISOString()}).eq("id",L.id),c({title:"Story generation timed out",description:"The previous attempt failed. Please try generating your story again.",variant:"destructive"});else{if(te.signal.aborted)return;s(L.id,e),M.current=!0,d("generating");return}else{if(te.signal.aborted)return;s(L.id,e),M.current=!0,d("generating");return}}if(K.status==="failed"&&c({title:"Story generation failed",description:"The previous attempt failed. Please try generating your story again.",variant:"destructive"}),K.status==="ready"){if(te.signal.aborted)return;d("complete");return}te.signal.aborted||d("starting")}catch(K){if(te.signal.aborted)return;console.error("Error loading story:",K),c({title:"Error",description:"Failed to load story. Please try again.",variant:"destructive"}),t("/library")}})(),()=>{te.abort(),Z()}},[e,n,r==null?void 0:r.id]),k.useEffect(()=>{if(u!=="starting"||!e||!A)return;const te=new AbortController;return(async()=>{try{const K=await V();if(!K||te.signal.aborted)return;const ue=[{role:"user",content:"Hi! I'm ready to create a story."}];for(const G of m)ue.push({role:"assistant",content:G.question}),ue.push({role:"user",content:G.answer});const{data:B,error:pe}=await oe.functions.invoke("questionnaire-chat",{body:{storyId:e,ageRange:A.ageRange,language:A.language,conversationHistory:Qpe(ue)},headers:{Authorization:`Bearer ${K}`}});if(te.signal.aborted)return;if(pe)throw pe;if(B.isComplete){y(ue),T.current=null,await H();return}if(!B.message||!String(B.message).trim())throw new Error("questionnaire-chat returned an empty question");y([...ue,{role:"assistant",content:B.message}]),f(B.message),T.current=typeof B.canonOrder=="number"?B.canonOrder:null,d("active")}catch(K){if(te.signal.aborted)return;console.error("Error starting conversation:",K);let ue=!1;try{ue=await P(A.ageRange)}catch(B){console.error("Failed to load static questions:",B)}te.signal.aborted||(ue?(d("fallback"),c({title:"Switching to simple mode",description:"Answer the questions below to create your story."})):(d("active"),c({title:"Error",description:"Unable to load questions. Please check your connection and try again.",variant:"destructive"})))}})(),()=>te.abort()},[u,A,e,m,V]),k.useEffect(()=>{u!=="active"||!e||!g.trim()||localStorage.setItem(`draft-answer-${e}`,g)},[g,e,u]),k.useEffect(()=>{u==="generating"&&!o&&M.current&&(M.current=!1,d("complete"))},[o,u]);const R=k.useCallback(async te=>{var L;if(!e||!A)return"finalize_failed";const Q=ee.current.signal,K=async()=>{const{data:q,error:X}=await Zpe({storyId:e,ageRange:A.ageRange,language:A.language,...te?{answerSource:te}:{}},Q);if(X)throw X;return Array.isArray(q==null?void 0:q.requiredOrders)?q.requiredOrders:void 0},ue=async()=>{const{data:q}=await oe.from("story_questions").select("question_order").eq("story_id",e);return(q||[]).map(X=>X.question_order)};let B=await K();if(eme({answeredOrders:await ue(),requiredOrders:B})==="complete")return"complete";B=await K()??B;const pe=await ue();if(eme({answeredOrders:pe,requiredOrders:B})==="complete")return"complete";const G=d0t({answeredOrders:pe,requiredOrders:B});
8076console.error("Background answer fill incomplete",{storyId:e,outstanding:G,requiredOrders:B});const I=window.posthog;return(L=I==null?void 0:I.capture)==null||L.call(I,"questionnaire_fill_incomplete",{story_id:e,age_range:A.ageRange,outstanding_orders:G,required_count:(B==null?void 0:B.length)??null}),"finalize_failed"},[e,A]),H=k.useCallback(async te=>{if(!e||W.current)return!1;W.current=!0;const Q=ee.current.signal;try{z.current=te,d("finalizing");let K;try{K=await R(te)}catch(B){if(Q.aborted)return!1;console.error("Could not finish story answers:",B),K="finalize_failed"}if(Q.aborted)return!1;const ue=K==="complete";ue&&await oe.from("stories").update({status:"ready"}).eq("id",e);try{v(await ne(e))}catch(B){console.error("Failed to refresh answer history:",B)}return ue?(d("complete"),c({title:"Story details complete!",description:"All questions answered.",duration:3e3}),!0):(d(K),c({title:"Almost there",description:"We couldn't finish preparing your story details. Please try again.",variant:"destructive"}),!1)}finally{W.current=!1}},[e,R,ne,c]),re=k.useCallback(async te=>{var B;if(u!=="active"||!e||!A)return;if(nme(T.current,h,w.current,x)==="dedication"){const pe=d0(wX(te.trim())??"",A.language);if(pe){c({title:"This dedication will not print",description:pe,variant:"destructive"});return}}const Q={role:"user",content:te},K=p,ue=[...p,Q];y(ue),b(""),d("submitting");try{const pe=await V();if(!pe){y(K),b(te),d("active");return}const{data:G,error:I}=await oe.functions.invoke("questionnaire-chat",{body:{storyId:e,ageRange:A.ageRange,language:A.language,conversationHistory:Qpe(ue),answeredCanonOrder:T.current},headers:{Authorization:`Bearer ${pe}`}});if(I)throw I;const L={role:"assistant",content:G.message};if(G.isComplete)localStorage.removeItem(`draft-answer-${e}`),y([...ue,L]),f(G.message),await H();else{localStorage.removeItem(`draft-answer-${e}`);try{v(await ne(e))}catch(q){console.error("Failed to refresh answer history:",q)}if(!G.message||!String(G.message).trim()){console.error("questionnaire-chat returned an empty question â restarting",{storyId:e}),T.current=null,d("starting");return}y([...ue,L]),f(G.message),T.current=typeof G.canonOrder=="number"?G.canonOrder:null,d("active")}}catch(pe){console.error("Error submitting answer:",pe),y(K),b(te),d("active");const G=((B=pe==null?void 0:pe.context)==null?void 0:B.status)===504;c({title:G?"Request Timeout":"Error",description:G?"The request took too long. Please try again.":"Failed to send message. Please try again.",variant:"destructive"})}},[u,e,A,p,t,c,ne,H,V]),ae=k.useCallback(async()=>{var G;if(u==="auto_answering"||Y.current||!e||!A)return;Y.current=!0;const te=ee.current.signal,Q=u;d("auto_answering");let K,ue;const B=async()=>{const{data:I,error:L}=await oe.from("story_questions").select("question_order").eq("story_id",e);return L?(console.error("Failed to read story answers:",L),null):(I||[]).map(q=>q.question_order)};let pe=null;try{pe=await B(),te.throwIfAborted();const{data:I,error:L}=await Zpe({storyId:e,ageRange:A.ageRange,language:A.language,answerSource:"auto_answer"},te);if(L&&!(I!=null&&I.success))throw L;if(K=I==null?void 0:I.expectedTotal,ue=Array.isArray(I==null?void 0:I.requiredOrders)?I.requiredOrders:void 0,!K)throw new Error("generate-story-answers did not return expectedTotal");await new Promise((ie,J)=>{let fe=null,ve=!1;const ge=_t=>{ve||(ve=!0,clearTimeout(ye),Z(),fe&&(clearInterval(fe),fe=null),te.removeEventListener("abort",de),_t?J(_t):ie())},de=()=>ge(te.reason),ye=setTimeout(()=>ge(new Error("Timeout waiting for answers")),12e4);te.addEventListener("abort",de,{once:!0});const _e=async()=>{const{data:_t}=await oe.from("story_questions").select("question_order").eq("story_id",e),xe=(_t||[]).map(je=>je.question_order);return TH({answeredOrders:xe,requiredOrders:ue})},Fe=async()=>{if(!ve)try{te.throwIfAborted(),await _e()&&ge()}catch(_t){ge(_t)}},ht=()=>{!ve&&!fe&&(fe=setInterval(Fe,3e3))};try{const _t=oe.channel(`story-questions-${e}-${Date.now()}`).on("postgres_changes",{event:"INSERT",schema:"public",table:"story_questions",filter:`story_id=eq.${e}`},()=>{Fe()}).subscribe(xe=>{xe==="SUBSCRIBED"&&Fe(),(xe==="CHANNEL_ERROR"||xe==="TIMED_OUT")&&(Z(),ht())});F.current=_t}catch{ht()}ht(),Fe()});const q=await ne(e);te.throwIfAborted(),v(q),await oe.from("stories").update({status:"ready"}).eq("id",e),localStorage.removeItem(`draft-answer-${e}`),K&&q.length<K?(c({title:`Partial success: ${q.length} answers generated`,description:"You can review and edit answers before creating your story."}),d("complete")):(c({title:"Answers ready",description:"Review or edit your answers, then click Create my story.",duration:5e3}),d("complete"))}
8076catch(I){if(te.aborted)return;if(console.error("Error auto-answering:",I),uNe(I)){const ie=await B();if(te.aborted)return;if(ie&&tme({answeredOrders:ie,requiredOrders:ue},pe)!=="restore")try{const J=await ne(e);if(te.aborted)return;v(J),d(g.trim()?Q:"starting");return}catch(J){console.error("Could not refresh late AI answers:",J)}if(te.aborted)return;c({title:"Couldn't connect",description:"Your saved answers are safe. Try getting AI answers again, or keep answering yourself.",variant:"destructive"}),d(Q);return}const L=(G=I==null?void 0:I.context)==null?void 0:G.status;let q=await B()??[];if(!h0t(L)){const ie=Date.now()+9e4;for(;Date.now()<ie&&!TH({answeredOrders:q,requiredOrders:ue});)await new Promise(J=>setTimeout(J,3e3)),q=await B()??q}const X=tme({answeredOrders:q,requiredOrders:ue},pe);if(X==="restore"){c({title:"Error",description:"Failed to generate answers. Please try again.",variant:"destructive"}),d(Q);return}try{v(await ne(e))}catch(ie){console.error("Failed to refresh answer history:",ie)}if(X==="complete"){await oe.from("stories").update({status:"ready"}).eq("id",e),localStorage.removeItem(`draft-answer-${e}`),c({title:"Answers ready",description:"Review or edit your answers, then click Create my story.",duration:5e3}),d("complete");return}await H("auto_answer")}finally{Y.current=!1}},[u,e,A,g,c,ne,Z,H]),D=k.useCallback(async()=>{if(!e)return;if(x.length===0){c({title:"Questions not loaded",description:"Please refresh the page and try again.",variant:"destructive"});return}const te=x.filter(Q=>{var K;return!((K=j[Q.question_order])!=null&&K.trim())});if(te.length>0){c({title:"Missing answers",description:`Please answer all ${te.length} remaining question(s).`,variant:"destructive"});return}try{const Q=x.filter(ue=>{var B;return(B=j[ue.question_order])==null?void 0:B.trim()});let K=null;for(const ue of Q){const B=j[ue.question_order].trim(),pe=AH(ue.question_text);pe==="author"&&(K=B);const{error:G}=await oe.from("story_questions").upsert({story_id:e,question:ue.question_text,answer:B,question_order:ue.question_order,question_type:pe},{onConflict:"story_id,question_order"});if(G)throw new Error(`Failed to save answer: ${G.message}`)}if(K){const{error:ue}=await oe.from("stories").update({author_name:K}).eq("id",e);if(ue)throw new Error(`Failed to save author name: ${ue.message}`)}localStorage.removeItem(`draft-answer-${e}`),await H()}catch(Q){console.error("Error saving static answers:",Q),c({title:"Error",description:Q instanceof Error?Q.message:"Failed to save answers. Please try again.",variant:"destructive"}),d("fallback")}},[e,x,j,c,H]),U=k.useCallback(async(te,Q)=>{var pe,G;if(!((pe=m[te])!=null&&pe.id)||!e)return;const K=Q.trim();if((m[te].question_type??nme(m[te].question_order,m[te].question,w.current,x))==="dedication"){const I=d0(wX(K)??"",A==null?void 0:A.language);if(I){c({title:"This dedication will not print",description:I,variant:"destructive"});return}}const B=p0t(m).map(I=>I.question_order);if(B.length>0){d("finalizing");const{error:I}=await oe.from("stories").update({status:"questionnaire"}).eq("id",e),{error:L}=I?{error:I}:await oe.from("story_questions").delete().eq("story_id",e).in("question_order",B);if(I||L){console.error("editAnswer: could not clear derived answers",I||L),d("complete"),c({title:"Couldn't save your edit",description:"We couldn't refresh the rest of your story details, so your change wasn't saved. Please try again.",variant:"destructive"});return}}try{const{data:I,error:L}=await oe.from("story_questions").update({answer:K}).eq("id",m[te].id).select("id");if(L||!I||I.length===0)throw console.error("editAnswer: story_questions update failed",{error:L,updatedRows:I,qaId:m[te].id}),c({title:"Couldn't save your edit",description:"Your change wasn't saved â please try again.",variant:"destructive"}),L??new Error("story_questions update affected 0 rows");if((m[te].question_type??AH(m[te].question))==="author"){let ie=K;if(ie.length>50)try{const{data:ge}=await oe.functions.invoke("questionnaire-chat",{body:{extractAuthorOnly:!0,rawAuthorText:ie}});ge!=null&&ge.extractedName&&(ie=ge.extractedName)}catch{}const{data:J,error:fe}=await oe.from("stories").update({author_name:ie}).eq("id",e).select("id, author_name");if(fe||!J||J.length===0)throw console.error("editAnswer: stories.author_name update failed",{authorErr:fe,
8076storyRows:J,storyId:e}),c({title:"Author name not saved",description:"Your answer was saved, but the author name on the cover wasn't updated. Please try again.",variant:"destructive"}),fe??new Error("stories update affected 0 rows");const ve=(G=J[0])==null?void 0:G.author_name;ve!==ie&&console.warn("editAnswer: author_name mismatch after save",{expected:ie,got:ve}),c({title:"Author name updated",description:"Your book cover will use this name when created."})}else if(m[te].question_type==="dedication"){const ie=wX(K),{data:J,error:fe}=await oe.from("stories").update({dedication_message:ie}).eq("id",e).select("id");if(fe||!J||J.length===0)throw console.error("editAnswer: stories.dedication_message update failed",{dedicationErr:fe,dedicationRows:J,storyId:e}),c({title:"Dedication not saved",description:"Your answer was saved, but the dedication in the book wasn't updated. Please try again.",variant:"destructive"}),fe??new Error("stories update affected 0 rows");c({title:"Dedication updated",description:ie?"Your book will include this dedication.":"Your book will have no dedication."})}else c({title:"Answer updated",description:"Your answer has been saved."});const X=[...m];X[te]={...X[te],answer:K},v(X)}catch(I){throw B.length>0&&d("finalize_failed"),I}B.length>0&&await H()},[m,e,c,H]),se=k.useCallback(async()=>{if(!(u!=="complete"||!e||(A==null?void 0:A.storyId)!==e||A.userId!==(r==null?void 0:r.id))&&!(!a||n)){rte("story_create_clicked",{storyId:e,userId:r==null?void 0:r.id});try{const te=await V();if(!te)return;const{data:Q,error:K}=await oe.functions.invoke("generate-story-background",{body:{storyId:e,ageRange:A.ageRange,language:A.language,steps:"story-only"},headers:{Authorization:`Bearer ${te}`}});if(K)throw new Error(`Failed to start story generation: ${K.message}`);const ue=Q==null?void 0:Q.jobId;if(typeof ue!="string"||!ue.trim())throw new Error("No job ID returned from server");rte("story_generation_accepted",{storyId:e,userId:r==null?void 0:r.id,jobId:ue}),s(ue,e),M.current=!0,d("generating"),c({title:"Creating your story",description:"Weâre writing your story using your answers.",duration:5e3})}catch(te){console.error("Error creating book:",te);const Q=te instanceof Error?te.message:"Failed to create book.";throw c({title:"Story Generation Failed",description:`${Q.replace("Edge Function returned a non-2xx status code","The story engine is temporarily unavailable").replace("502 Bad Gateway","The story engine is temporarily unavailable")}. Click "Create my story" to try again.`,variant:"destructive",duration:1e4}),te}}},[u,e,A,s,c,t,V,a,n,r==null?void 0:r.id]);return{status:u,currentQuestion:h,conversationHistory:p,qaHistory:m,answer:g,setAnswer:b,staticQuestions:x,staticAnswers:j,setStaticAnswer:(te,Q)=>E(K=>({...K,[te]:Q})),importedCharactersInfo:C,storyMeta:A,submitAnswer:re,submitStaticForm:D,autoAnswer:ae,retryFinalize:()=>H(z.current),createBook:se,editAnswer:U}}const hNe=e=>e.length<400?!1:[/page\s*\d+/i,/chapter\s*\d+/i,/\n---+\n/,/\n\*\*\*+\n/,/^\d+\.\s*.{20,}\n/m].some(r=>r.test(e)),fNe=e=>{const t=e.trim(),r=t.lastIndexOf("(");if(r<=0)return{questionPart:t,examplesPart:null};if(!/\)[.?!]?$/.test(t))return{questionPart:t,examplesPart:null};const n=t.substring(r+1);return/^(f\.?\s*eks\.?|e\.?g\.?,?|for example|for eksempel|för exempel|por ejemplo|par exemple|zum beispiel|напÑимеÑ),?\s*/i.test(n)?{questionPart:t.substring(0,r).trim(),examplesPart:t.substring(r)}:{questionPart:t,examplesPart:null}},g0t=({question:e,large:t})=>{const{questionPart:r,examplesPart:n}=fNe(e);return i.jsxs(i.Fragment,{children:[i.jsx("span",{className:t?"text-lg md:text-2xl font-semibold text-foreground":"text-sm font-medium text-muted-foreground",children:r}),n&&i.jsx("span",{className:`block ${t?"text-xs font-normal text-muted-foreground mt-2":"text-xs font-normal mt-1"}`,children:n})]})},y0t=({hook:e,storyId:t,onReviewAnswers:r})=>{const{authVerified:n,loading:a}=er(),{status:s,currentQuestion:o,answer:l,setAnswer:c,staticQuestions:u,staticAnswers:d,setStaticAnswer:h,importedCharactersInfo:f,submitAnswer:p,submitStaticForm:y,autoAnswer:m,retryFinalize:v,createBook:g}=e,b=k.useRef(null),[x,_]=k.useState(!1),[w,j]=k.useState(!1),[E,C]=k.useState(!1),N=z=>{const Y=z.target.value;c(Y),_(hNe(Y)),b.current&&(b.current.style.height="auto",b.current.style.height=`${Math.min(b.current.scrollHeight,300)}px`)},A=()=>{l.trim()&&(p(l),_(!1))};if(s==="loading"||s==="starting")return i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-primary"})});if(s==="complete"||s==="generating"){const z=async()=>
8076{if(!w){j(!0);try{await g()}catch{}finally{j(!1)}}};return i.jsxs("div",{className:"text-center space-y-6",children:[i.jsx("h3",{"data-testid":"questionnaire-ready",className:"text-2xl md:text-4xl font-semibold text-foreground",children:"Ready to create your story?"}),i.jsx("p",{className:"text-muted-foreground",children:"Weâll use your answers to write your story. You can review or change them before you start."}),i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground px-8 py-6 text-base rounded-full",disabled:!rme(s)||w||!n||a,onClick:z,children:w?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-4 w-4 mr-2 animate-spin"}),"Starting..."]}):"Create my story"}),i.jsx("div",{children:i.jsx(le,{variant:"link",className:"text-foreground underline underline-offset-4",onClick:r,disabled:!rme(s)||w,children:"Review answers"})})]})}if(s==="finalize_failed"){const z=async()=>{if(!w){j(!0);try{await v()}finally{j(!1)}}};return i.jsxs("div",{className:"text-center space-y-6",children:[i.jsx("h3",{className:"text-2xl md:text-4xl font-semibold text-foreground",children:"Almost there"}),i.jsx("p",{className:"text-muted-foreground",children:"We saved your answers but couldn't finish preparing your story details. Try again â nothing you typed is lost."}),i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground px-8 py-6 text-base rounded-full",disabled:w,onClick:z,"data-testid":"retry-finalize",children:w?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-4 w-4 mr-2 animate-spin"}),"Preparing..."]}):"Try again"})]})}if(s==="fallback"){const z=async()=>{C(!0);try{await y()}finally{C(!1)}};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-2xl font-semibold text-foreground mb-2",children:"Simple Mode"}),i.jsx("p",{className:"text-muted-foreground text-sm",children:"Fill in the questions below to create your story."})]}),i.jsx("div",{className:"space-y-4 max-h-[60vh] overflow-y-auto pr-2",children:u.map((Y,W)=>i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-sm font-medium text-foreground",children:[W+1,". ",Y.question_text]}),Y.examples&&i.jsx("p",{className:"text-xs text-muted-foreground",children:Y.examples}),i.jsx(Dr,{value:d[Y.question_order]||"",onChange:ee=>h(Y.question_order,ee.target.value),maxLength:1e3,placeholder:"Your answer...",className:"min-h-[80px] resize-none text-sm",disabled:E})]},Y.id))}),i.jsx(le,{size:"lg",onClick:z,disabled:E,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",children:E?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-4 w-4 mr-2 animate-spin"}),"Saving..."]}):"Save Answers & Continue"})]})}const $=s==="submitting",T=s==="auto_answering",F=s==="finalizing",M=$||T||F;return i.jsxs(i.Fragment,{children:[f&&i.jsxs(Eo,{className:"mb-4",children:[i.jsx(xy,{className:"h-4 w-4"}),i.jsxs(i4,{children:['Using Characters from "',f.sourceTitle,'"']}),i.jsxs(Co,{children:[i.jsx("div",{children:f.characterNames.length>0?`Characters: ${f.characterNames.join(", ")}`:"Imported characters will be used in your story."}),f.authorName&&i.jsxs("div",{className:"mt-1",children:["Author: ",i.jsx("strong",{children:f.authorName})]})]})]}),T?i.jsxs("div",{className:"flex items-center justify-center gap-3 py-12",children:[i.jsx(Me,{className:"h-6 w-6 animate-spin text-primary"}),i.jsx("span",{className:"text-muted-foreground",children:"AI is answering for you..."})]}):F?i.jsxs("div",{className:"flex items-center justify-center gap-3 py-12","data-testid":"questionnaire-finalizing",children:[i.jsx(Me,{className:"h-6 w-6 animate-spin text-primary"}),i.jsx("span",{className:"text-muted-foreground",children:"Reviewing your answers..."})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"space-y-2",children:i.jsx("h3",{className:"text-lg md:text-2xl font-semibold text-foreground",children:i.jsx(g0t,{question:o,large:!0})})}),i.jsxs("div",{className:"relative",children:[i.jsx(Dr,{ref:b,value:l,onChange:N,maxLength:1e3,placeholder:"Write to Kibbi",className:"min-h-[60
8076px] md:min-h-[120px] max-h-[300px] pr-12 md:pr-16 resize-none text-base border-2 border-primary/20 focus-visible:border-primary rounded-2xl overflow-y-auto",disabled:M,onKeyDown:z=>{z.key==="Enter"&&!z.shiftKey&&(z.preventDefault(),A())}}),i.jsxs("div",{className:"flex flex-col mt-1 px-1",children:[i.jsxs("span",{className:`text-xs ${l.length>=950?"text-destructive":l.length>=800?"text-orange-500":"text-muted-foreground"}`,children:[l.length," of 1000 characters"]}),l.length>=800&&!x&&i.jsx("span",{className:"text-xs text-muted-foreground mt-0.5",children:"Keep answers focused â Kibbi works best with specific details, not full stories"})]}),i.jsx(le,{size:"icon",onClick:A,disabled:!l.trim()||M,className:"absolute bottom-6 right-2 md:bottom-8 md:right-4 rounded-full bg-primary hover:bg-primary/90 h-[35px] w-[35px] md:h-[53px] md:w-[53px]",children:$?i.jsx(Me,{className:"h-4 w-4 md:h-5 md:w-5 animate-spin"}):i.jsx(Gd,{className:"h-4 w-4 md:h-5 md:w-5"})})]}),x&&i.jsxs("div",{className:"bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 rounded-lg p-3 mt-2",children:[i.jsx("p",{className:"text-sm text-amber-800 dark:text-amber-200 font-medium",children:"ð It looks like you've pasted a full story!"}),i.jsx("p",{className:"text-sm text-amber-700 dark:text-amber-300 mt-1",children:"Great news â you can use your own story with Kibbi! First, answer the questions here to describe your characters. Then in the next step, you'll be able to paste your complete story page by page."})]}),i.jsx("div",{className:"text-center pt-0 md:pt-4",children:i.jsx(le,{"data-testid":"questionnaire-auto-answer",variant:"outline",onClick:m,disabled:M,children:"Get AI to answer for me"})})]})]})},v0t=({hook:e,answersHeadingRef:t})=>{const{qaHistory:r,editAnswer:n}=e;wt();const[a,s]=k.useState(null),o=f0t(r.map((v,g)=>({...v,originalIndex:g}))),[l,c]=k.useState(""),[u,d]=k.useState(!1),[h,f]=k.useState(!1),p=v=>{s(v),c(r[v].answer),d(!1)},y=()=>{s(null),c(""),d(!1)},m=async v=>{if(l.trim()){f(!0);try{await n(v,l),s(null),c(""),d(!1)}catch{}finally{f(!1)}}};return i.jsxs("div",{className:"w-full md:w-1/2 bg-muted/30 overflow-y-auto min-h-[40vh] md:min-h-screen pb-[400px] md:pb-0",children:[i.jsx("header",{className:"md:hidden bg-background border-b border-border px-4 pb-2 sticky top-0 z-10",children:i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-5"})})}),i.jsx("div",{className:"px-4 pt-6 pb-2 md:px-12 md:py-12",children:i.jsxs("div",{className:"max-w-2xl mx-auto space-y-4 md:space-y-8 flex flex-col h-full",children:[o.length>0&&i.jsx("h2",{ref:t,tabIndex:-1,className:"text-xl font-semibold scroll-mt-20",children:"Your answers"}),o.length===0?i.jsxs("div",{className:"flex flex-col items-center justify-start md:justify-center md:flex-1 text-center space-y-4 text-muted-foreground pt-4 md:pt-0 min-h-[300px] md:min-h-0",children:[i.jsx("div",{className:"text-4xl",children:"â¨"}),i.jsx("p",{className:"text-base",children:"Start creating and your story details will appear here"})]}):i.jsx("div",{className:"flex-1 space-y-6",children:o.map((v,g)=>{const b=v.originalIndex,{questionPart:x,examplesPart:_}=fNe(v.question);return i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"text-sm font-medium text-muted-foreground",children:[x,_&&i.jsx("span",{className:"block text-xs font-normal mt-1",children:_})]}),a===b?i.jsxs("div",{className:"space-y-2",children:[i.jsx(Dr,{"aria-label":`Answer ${g+1}`,value:l,onChange:w=>{c(w.target.value),d(hNe(w.target.value))},maxLength:1e3,className:"min-h-[100px] text-base border-2 border-primary/20 focus-visible:border-primary"}),i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsxs("span",{className:`text-xs ${l.length>=950?"text-destructive":l.length>=800?"text-orange-500":"text-muted-foreground"}`,children:[l.length," of 1000 characters"]}),l.length>=800&&!u&&i.jsx("span",{className:"text-xs text-muted-foreground mt-0.5",children:"Keep answers focused â Kibbi works best with specific details, not full stories"}),u&&i.jsxs("div",{className:"bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 rounded-lg p-3",children:[i.jsx("p",{className:"text-sm text-amber-800 dark:text-amber-200 font-medium",children:"ð It looks like you've pasted a full story!"}),i.jsx("p",{className:"text-sm text-amber-700 dark:text-amber-300 mt-1",children:"Great news â you can use your own story with Kibbi! First, answer the questions here to describe your characters. Then in the next step, you'll be able to paste your complete story."})]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsxs(le,{size:"sm",onClick:()=>m(b),disabled:!l.trim()||h,className:"bg-primary hover:bg-primary/90",children:[h?i.jsx(Me,{className:"h-4 w-4 animate-spin"}):i.jsx(_r,{className:"h-4 w-4 mr-1"}),"Save"]}),i.jsxs(le,{size:"sm",variant:"outline",onClick:y,disabled:h,children:[i.jsx(hi,{className:"h-4 w-4 mr-1"}),"Cancel"]})]})]})]}):i.jsxs("div",{className:"bg-background rounded-xl p-4 border border-border relative",children:[i.jsx("p",{className:"text-foreground pr-10",children:v.answer}),i.jsx(le,{"aria-label":`Edit answer ${g+1}`,size:"icon",variant:"ghost",className:"absolute top-2 right-2 h-8 w-8",onClick:()=>p(b),children:i.jsx(dd,{className:"h-4 w-4"})})]})]},v.id||b)})})]})})]})},x0t=({storyId:e,completionViews:t})=>{const r=wt(),n=k.useRef(null),{user:a,authVerified:s,loading:o}=er(),{isGenerating:l,jobProgress:c,jobStage:u,activeJobStoryId:d}=Zs(),h=m0t(e),{storyMeta:f,qaHistory:p}=h;return k.useEffect(()=>{if(h.status!=="complete"||(f==null?void 0:f.storyId)!==e||(f==null?void 0:f.userId)!==(a==null?void 0:a.id)||l&&d===e||!s||o||!(a!=null&&a.id))return;const y=`${a.id}:${e}`;t.has(y)||rte("questionnaire_completion_viewed",{storyId:e,userId:a.id})&&t.add(y)},[h.status,f==null?void 0:f.storyId,f==null?void 0:f.userId,e,l,d,s,o,a==null?void 0:a.id,t]),l&&d===e?i.jsx(Fk,{currentStage:u,progress:c,flow:"draft",readingLevel:f==null?void 0:f.readingLevel}):i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Story Questions - kibbi | Create Your Personalized Book"}),i.jsx("meta",{name:"description",content:"Answer questions about your child to create a personalized story. Build a unique storybook tailored to your child's interests and imagination."}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-background flex flex-col-reverse md:flex-row",children:[i.jsxs("div",{className:"flex flex-col w-full md:w-1/2 md:border-r md:border-border fixed bottom-0 left-0 right-0 md:relative md:h-screen bg-background z-20",children:[i.jsx("header",{className:"hidden md:block bg-transparent px-6 py-4 flex-shrink-0",children:i.jsxs("div",{className:"flex items-center gap-6",children:[i.jsx("img",{src:va,alt:"kibbi",className:"h-8"}),h.status!=="complete"&&p.length===0&&i.jsx("button",{type:"button",onClick:()=>r(`/app/style-selection?id=${e}`),className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"â Back to style selection"})]})}),i.jsx("div",{className:"flex items-center justify-center px-6 py-4 md:px-12 md:py-12 flex-1 md:sticky md:top-0",children:i.jsx("div",{className:"max-w-2xl w-full space-y-4 md:space-y-8",children:i.jsx(y0t,{hook:h,storyId:e,onReviewAnswers:()=>{var y,m;(y=n.current)==null||y.focus({preventScroll:!0}),(m=n.current)==null||m.scrollIntoView({block:"start",behavior:"auto"})}})})})]}),i.jsx(v0t,{hook:h,answersHeadingRef:n})]})]})},b0t=()=>{const{user:e}=er(),{search:t}
8076=wa(),r=new URLSearchParams(t).get("id"),n=k.useRef(new Set);return i.jsx(x0t,{storyId:r,completionViews:n.current},`${e==null?void 0:e.id}:${r}`)};function w0t({src:e,alt:t}){return i.jsx("div",{className:"hardcover-stage","data-testid":"hardcover-preview",children:i.jsxs("div",{className:"hardcover-book",children:[i.jsx("div",{className:"hardcover-back","aria-hidden":"true"}),i.jsx("div",{className:"hardcover-pages","aria-hidden":"true"}),i.jsx("div",{className:"hardcover-page-bottom","aria-hidden":"true"}),i.jsxs("div",{className:"hardcover-front",children:[i.jsx("img",{src:e,alt:t,className:"hardcover-artwork"}),i.jsx("div",{className:"hardcover-finish","aria-hidden":"true"})]})]})})}var k0t=Object.defineProperty,_0t=Object.defineProperties,S0t=Object.getOwnPropertyDescriptors,ame=Object.getOwnPropertySymbols,j0t=Object.prototype.hasOwnProperty,E0t=Object.prototype.propertyIsEnumerable,Vte=(e,t,r)=>t in e?k0t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ur=(e,t)=>{for(var r in t||(t={}))j0t.call(t,r)&&Vte(e,r,t[r]);if(ame)for(var r of ame(t))E0t.call(t,r)&&Vte(e,r,t[r]);return e},Tu=(e,t)=>_0t(e,S0t(t)),Ne=(e,t,r)=>Vte(e,typeof t!="symbol"?t+"":t,r),C0t=(e,t,r)=>new Promise((n,a)=>{var s=c=>{try{l(r.next(c))}catch(u){a(u)}},o=c=>{try{l(r.throw(c))}catch(u){a(u)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,o);l((r=r.apply(e,t)).next())});class MH{constructor(t){Ne(this,"rootKey"),this.rootKey=t}}const N0t=Object.seal({});class Pe extends MH{constructor(t){super(t),Ne(this,"root"),this.root=new Array}prepForXml(t){var r;t.stack.push(this);const n=this.root.map(a=>a instanceof MH?a.prepForXml(t):a).filter(a=>a!==void 0);return t.stack.pop(),{[this.rootKey]:n.length?n.length===1&&((r=n[0])!=null&&r._attr)?n[0]:n:N0t}}addChildElement(t){return this.root.push(t),this}}class fG extends Pe{prepForXml(t){const r=super.prepForXml(t);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class Lt extends MH{constructor(t){super("_attr"),Ne(this,"xmlKeys"),this.root=t}prepForXml(t){const r={};return Object.entries(this.root).forEach(([n,a])=>{if(a!==void 0){const s=this.xmlKeys&&this.xmlKeys[n]||n;r[s]=a}}),{_attr:r}}}class o4 extends MH{constructor(t){super("_attr"),this.root=t}prepForXml(t){return{_attr:Object.values(this.root).filter(({value:n})=>n!==void 0).reduce((n,{key:a,value:s})=>Tu(ur({},n),{[a]:s}),{})}}}class Wn extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var ec=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vse(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kX={},B3={exports:{}},ime;function Wse(){if(ime)return B3.exports;ime=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(w,j,E){return Function.prototype.apply.call(w,j,E)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:r=function(w){return Object.getOwnPropertyNames(w)};function n(_){console&&console.warn&&console.warn(_)}var a=Number.isNaN||function(w){return w!==w};function s(){s.init.call(this)}B3.exports=s,B3.exports.once=g,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function l(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(_){if(typeof _!="number"||_<0||a(_))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_+".");o=_}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||a(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function c(_){return _._maxListeners===void 0?s.defaultMaxListeners:_._maxListeners}s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(w){for(var j=[],E=1;E<arguments.length;E++)j.push(arguments[E]);var C=w==="error",N=this._events;if(N!==void 0)C=C&&N.error===void 0;else if(!C)return!1;if(C){var A;if(j.length>0&&(A=j[0]),A instanceof Error)throw A;var $=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw $.context=A,$}var T=N[w];if(T===void 0)return!1;if(typeof T=="function")t(T,this,j);else for(var F=T.length,M=y(T,F),E=0;E<F;++E)t(M[E],this,j);return!0};function u(_,w,j,E){var C,N,A;if(l(j),N=_._events,N===void 0?(N=_._events=Object.create(null),_._eventsCount=0):(N.newListener!==void 0&&(_.emit("newListener",w,j.listener?j.listener:j),N=_._events),A=N[w]),A===void 0)A=N[w]=j,++_._eventsCount;else if(typeof A=="function"?A=N[w]=E?[j,A]:[A,j]:E?A.unshift(j):A.push(j),C=c(_),C>0&&A.length>C&&!A.warned){A.warned=!0;var $=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");$.name="MaxListenersExceededWarning",$.emitter=_,$.type=w,$.count=A.length,n($)}return _}s.prototype.addListener=function(w,j){return u(this,w,j,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(w,j){return u(this,w,j,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(_,w,j){var E={fired:!1,wrapFn:void 0,target:_,type:w,listener:j},C=d.bind(E);return C.listener=j,E.wrapFn=C,C}s.prototype.once=function(w,j){return l(j),this.on(w,h(this,w,j)),this},s.prototype.prependOnceListener=function(w,j){return l(j),this.prependListener(w,h(this,w,j)),this},s.prototype.removeListener=function(w,j){var E,C,N,A,$;if(l(j),C=this._events,C===void 0)return this;if(E=C[w],E===void 0)return this;if(E===j||E.listener===j)--this._eventsCount===0?this._events=Object.create(null):(delete C[w],C.removeListener&&this.emit
vendor: 8,427 bytes, lines 8076-8081
8076("removeListener",w,E.listener||j));else if(typeof E!="function"){for(N=-1,A=E.length-1;A>=0;A--)if(E[A]===j||E[A].listener===j){$=E[A].listener,N=A;break}if(N<0)return this;N===0?E.shift():m(E,N),E.length===1&&(C[w]=E[0]),C.removeListener!==void 0&&this.emit("removeListener",w,$||j)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(w){var j,E,C;if(E=this._events,E===void 0)return this;if(E.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):E[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete E[w]),this;if(arguments.length===0){var N=Object.keys(E),A;for(C=0;C<N.length;++C)A=N[C],A!=="removeListener"&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(j=E[w],typeof j=="function")this.removeListener(w,j);else if(j!==void 0)for(C=j.length-1;C>=0;C--)this.removeListener(w,j[C]);return this};function f(_,w,j){var E=_._events;if(E===void 0)return[];var C=E[w];return C===void 0?[]:typeof C=="function"?j?[C.listener||C]:[C]:j?v(C):y(C,C.length)}s.prototype.listeners=function(w){return f(this,w,!0)},s.prototype.rawListeners=function(w){return f(this,w,!1)},s.listenerCount=function(_,w){return typeof _.listenerCount=="function"?_.listenerCount(w):p.call(_,w)},s.prototype.listenerCount=p;function p(_){var w=this._events;if(w!==void 0){var j=w[_];if(typeof j=="function")return 1;if(j!==void 0)return j.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function y(_,w){for(var j=new Array(w),E=0;E<w;++E)j[E]=_[E];return j}function m(_,w){for(;w+1<_.length;w++)_[w]=_[w+1];_.pop()}function v(_){for(var w=new Array(_.length),j=0;j<w.length;++j)w[j]=_[j].listener||_[j];return w}function g(_,w){return new Promise(function(j,E){function C(A){_.removeListener(w,N),E(A)}function N(){typeof _.removeListener=="function"&&_.removeListener("error",C),j([].slice.call(arguments))}x(_,w,N,{once:!0}),w!=="error"&&b(_,C,{once:!0})})}function b(_,w,j){typeof _.on=="function"&&x(_,"error",w,j)}function x(_,w,j,E){if(typeof _.on=="function")E.once?_.once(w,j):_.on(w,j);else if(typeof _.addEventListener=="function")_.addEventListener(w,function C(N){E.once&&_.removeEventListener(w,C),j(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof _)}return B3.exports}var z3={exports:{}},sme;function jh(){return sme||(sme=1,typeof Object.create=="function"?z3.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:z3.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),z3.exports}function T0t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pNe={exports:{}},aa=pNe.exports={},Bl,zl;function Wte(){throw new Error("setTimeout has not been defined")}function Gte(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Bl=setTimeout:Bl=Wte}catch{Bl=Wte}try{typeof clearTimeout=="function"?zl=clearTimeout:zl=Gte}catch{zl=Gte}})();function mNe(e){if(Bl===setTimeout)return setTimeout(e,0);if((Bl===Wte||!Bl)&&setTimeout)return Bl=setTimeout,setTimeout(e,0);try{return Bl(e,0)}catch{try{return Bl.call(null,e,0)}catch{return Bl.call(this,e,0)}}}function A0t(e){if(zl===clearTimeout)return clearTimeout(e);if((zl===Gte||!zl)&&clearTimeout)return zl=clearTimeout,clearTimeout(e);try{return zl(e)}catch{try{return zl.call(null,e)}catch{return zl.call(this,e)}}}var su=[],By=!1,O1,iq=-1;function M0t(){!By||!O1||(By=!1,O1.length?su=O1.concat(su):iq=-1,su.length&&gNe())}function gNe(){if(!By){var e=mNe(M0t);By=!0;for(var t=su.length;t;){for(O1=su,su=[];++iq<t;)O1&&O1[iq].run();iq=-1,t=su.length}O1=null,By=!1,A0t(e)}}aa.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];su.push(new yNe(e,t)),su.length===1&&!By&&mNe(gNe)};function yNe(e,t){this.fun=e,this.array=t}yNe.prototype.run=function(){this.fun.apply(null,this.array)};aa.title="browser";aa.browser=!0;aa.env={};aa.argv=[];aa.version="";aa.versions={};function Bu(){}aa.on=Bu;aa.addListener=Bu;aa.once=Bu;aa.off=Bu;aa.removeListener=Bu;aa.removeAllListeners=Bu;aa.emit=Bu;aa.prependListener=Bu;aa.prependOnceListener=Bu;aa.listeners=function(e){return[]};aa.binding=function(e){throw new Error("process.binding is not supported")};aa.cwd=function(){return"/"};aa.chdir=function(e){throw new Error("process.chdir is not supported")};aa.umask=function(){return 0};var I0t=pNe.exports;const dr=T0t(I0t);var _X,ome;function vNe(){return ome||(ome=1,_X=Wse().EventEmitter),_X}var SX={},qx={},lme;function P0t(){if(lme)return qx;lme=1,qx.byteLength=l,qx.toByteArray=u,qx.fromByteArray=f;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=n.length;a<s;++a)e[a]=n[a],t[n.charCodeAt(a)]=a;t[45]=62,t[95]=63;function o(p){var y=p.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=p.indexOf("=");m===-1&&(m=y);var v=m===y?0:4-m%4;return[m,v]}function l(p){var y=o(p),m=y[0],v=y[1];return(m+v)*3/4-v}function c(p,y,m){return(y+m)*3/4-m}function u(p){var y,m=o(p),v=m[0],g=m[1],b=new r(c(p,v,g)),x=0,_=g>0?v-4:v,w;for(w=0;w<_;w+=4)y=t[p.charCodeAt(w)]<<18|t[p.charCodeAt(w+1)]<<12|t[p.charCodeAt(w+2)]<<6|t[p.charCodeAt(w+3)],b[x++]=y>>16&255,b[x++]=y>>8&255,b[x++]=y&255;return g===2&&(y=t[p.charCodeAt(w)]<<2|t[p.charCodeAt(w+1)]>>4,b[x++]=y&255),g===1&&(y=t[p.charCodeAt(w)]<<10|t[p.charCodeAt(w+1)]<<4|t[p.charCodeAt(w+2)]>>2,b[x++]=y>>8&255,b[x++]=y&255),b}function d(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function h(p,y,m){for(var v,g=[],b=y;b<m;b+=3)v=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(p[b+2]&255),g.push(d(v));return g.join("")}function f(p){for(var y,m=p.length,v=m%3,g=[],b=16383,x=0,_=m-v;x<_;x+=b)g.push(h(p,x,x+b>_?_:x+b));return v===1?(y=p[m-1],g.push(e[y>>2]+e[y<<4&63]+"==")):v===2&&(y=(p[m-2]<<8)+p[m-1],g.push(e[y>>10]+e[y>>4&63]+e[y<<2&63]+"=")),g.join("")}return qx}var U3={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var cme;function L0t(){return cme||(cme=1,U3.read=function(e,t,r,n,a){var s,o,l=a*8-n-1,c=(1<<l)-1,u=c>>1,d=-7,h=r?a-1:0,f=r?-1:1,p=e[t+h];for(h+=f,s=p&(1<<-d)-1,p>>=-d,d+=l;d>0;s=s*256+e[t+h],h+=f,d-=8);for(o=s&(1<<-d)-1,s>>=-d,d+=n;d>0;o=o*256+e[t+h],h+=f,d-=8);if(s===0)s=1-u;else{if(s===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-u}return(p?-1:1)*o*Math.pow(2,s-n)},U3.write=function(e,t,r,n,a,s){var o,l,c,u=s*8-a-1,d=(1<<u)-1,h=d>>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,y=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+h>=1?t+=f/c:t+=f*Math.pow(2,1-h),t*c>=2&&(o++,c/=2),o+h>=d?(l=0,o=d):o+h>=1?(l=(t*c-1)*Math.pow(2,a),o=o+h):(l=t*Math.pow(2,h-1)*Math.pow(2,a),o=0));a>=8;e[r+p]=l&255,p+=y,l/=256,a-=8);for(o=o<<a|l,u+=a;u>0;e[r+p]=o&255,p+=y,o/=256,u-=8);e[r+p-y]|=m*128}),U3}/*! 8077 * The buffer module from node.js, for the browser. 8078 * 8079 * @author Feross Aboukhadijeh <https://feross.org> 8080 * @license MIT 8081 */var ume;function pG(){return ume||(ume=1,function(e){var t=P0t(),r=L0t(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=s(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{var G=new Uint8Array(1),I={foo:function(){return 42}};return Object.setPrototypeOf(I,Uint8Array.prototype),Object.setPrototypeOf(G,I),G.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function o(G){if(G>
vendor: 6,110 bytes, line 8081
8081a)throw new RangeError('The value "'+G+'" is invalid for option "size"');var I=new Uint8Array(G);return Object.setPrototypeOf(I,l.prototype),I}function l(G,I,L){if(typeof G=="number"){if(typeof I=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(G)}return c(G,I,L)}l.poolSize=8192;function c(G,I,L){if(typeof G=="string")return f(G,I);if(ArrayBuffer.isView(G))return y(G);if(G==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G);if(ue(G,ArrayBuffer)||G&&ue(G.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ue(G,SharedArrayBuffer)||G&&ue(G.buffer,SharedArrayBuffer)))return m(G,I,L);if(typeof G=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var q=G.valueOf&&G.valueOf();if(q!=null&&q!==G)return l.from(q,I,L);var X=v(G);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof G[Symbol.toPrimitive]=="function")return l.from(G[Symbol.toPrimitive]("string"),I,L);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G)}l.from=function(G,I,L){return c(G,I,L)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function u(G){if(typeof G!="number")throw new TypeError('"size" argument must be of type number');if(G<0)throw new RangeError('The value "'+G+'" is invalid for option "size"')}function d(G,I,L){return u(G),G<=0?o(G):I!==void 0?typeof L=="string"?o(G).fill(I,L):o(G).fill(I):o(G)}l.alloc=function(G,I,L){return d(G,I,L)};function h(G){return u(G),o(G<0?0:g(G)|0)}l.allocUnsafe=function(G){return h(G)},l.allocUnsafeSlow=function(G){return h(G)};function f(G,I){if((typeof I!="string"||I==="")&&(I="utf8"),!l.isEncoding(I))throw new TypeError("Unknown encoding: "+I);var L=x(G,I)|0,q=o(L),X=q.write(G,I);return X!==L&&(q=q.slice(0,X)),q}function p(G){for(var I=G.length<0?0:g(G.length)|0,L=o(I),q=0;q<I;q+=1)L[q]=G[q]&255;return L}function y(G){if(ue(G,Uint8Array)){var I=new Uint8Array(G);return m(I.buffer,I.byteOffset,I.byteLength)}return p(G)}function m(G,I,L){if(I<0||G.byteLength<I)throw new RangeError('"offset" is outside of buffer bounds');if(G.byteLength<I+(L||0))throw new RangeError('"length" is outside of buffer bounds');var q;return I===void 0&&L===void 0?q=new Uint8Array(G):L===void 0?q=new Uint8Array(G,I):q=new Uint8Array(G,I,L),Object.setPrototypeOf(q,l.prototype),q}function v(G){if(l.isBuffer(G)){var I=g(G.length)|0,L=o(I);return L.length===0||G.copy(L,0,0,I),L}if(G.length!==void 0)return typeof G.length!="number"||B(G.length)?o(0):p(G);if(G.type==="Buffer"&&Array.isArray(G.data))return p(G.data)}function g(G){if(G>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return G|0}function b(G){return+G!=G&&(G=0),l.alloc(+G)}l.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==l.prototype},l.compare=function(I,L){if(ue(I,Uint8Array)&&(I=l.from(I,I.offset,I.byteLength)),ue(L,Uint8Array)&&(L=l.from(L,L.offset,L.byteLength)),!l.isBuffer(I)||!l.isBuffer(L))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===L)return 0;for(var q=I.length,X=L.length,ie=0,J=Math.min(q,X);ie<J;++ie)if(I[ie]!==L[ie]){q=I[ie],X=L[ie];break}return q<X?-1:X<q?1:0},l.isEncoding=function(I){switch(String(I).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(I,L){if(!Array.isArray(I))throw new TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return l.alloc(0);var q;if(L===void 0)for(L=0,q=0;q<I.length;++q)L+=I[q].length;var X=l.allocUnsafe(L),ie=0;for(q=0;q<I.length;++q){var J=I[q];if(ue(J,Uint8Array))ie+J.length>X.length?l.from(J).copy(X,ie):Uint8Array.prototype.set.call(X,J,ie);else if(l.isBuffer(J))J.copy(X,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=J.length}return X};function x(G,I){if(l.isBuffer(G))return G.length;if(ArrayBuffer.isView(G)||ue(G,ArrayBuffer))return G.byteLength;if(typeof G!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof G);var L=G.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&L===0)return 0;for(var X=!1;;)switch(I){case"ascii":case"latin1":case"binary":return L;case"utf8":case"utf-8":return U(G).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L*2;case"hex":return L>>>1;case"base64":return Q(G).length;default:if(X)return q?-1:U(G).length;I=(""+I).toLowerCase(),X=!0}}l.byteLength=x;function _(G,I,L){var q=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((L===void 0||L>this.length)&&(L=this.length),L<=0)||(L>>>=0,I>>>=0,L<=I))return"";for(G||(G="utf8");;)switch(G){case"hex":return Z(this,I,L);case"utf8":case"utf-8":return M(this,I,L);case"ascii":return W(this,I,L);case"latin1":case"binary":return ee(this,I,L);case"base64":return F(this,I,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,I,L);default:if(q)throw new TypeError("Unknown encoding: "+G);G=(G+"").toLowerCase(),q=!0}}l.prototype._isBuffer=!0;function w(G,I,L){var q=G[I];G[I]=G[L],G[L]=q}l.prototype.swap16=function(){var I=this.length;if(I%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var L=0;L<I;L+=2)w(this,L,L+1);return this},l.prototype.swap32=function(){var I=this.length;if(I%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var L=0;L<I;L+=4)w(this,L,L+3),w(this,L+1,L+2);return this},l.prototype.swap64=function(){var I=this.length;if(I%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var L=0;L<I;L+=8)w(this,L,L+7),w(this,L+1,L+6),w(this,L+2,L+5),w(this,L+3,L+4);return this},l.prototype.toString=function(){var I=this.length;return I===0?"":arguments.length===0?M(this,0,I):_.apply(this,arguments)}
vendor: 4,398 bytes, line 8081
8081,l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(I){if(!l.isBuffer(I))throw new TypeError("Argument must be a Buffer");return this===I?!0:l.compare(this,I)===0},l.prototype.inspect=function(){var I="",L=e.INSPECT_MAX_BYTES;return I=this.toString("hex",0,L).replace(/(.{2})/g,"$1 ").trim(),this.length>L&&(I+=" ... "),"<Buffer "+I+">"},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(I,L,q,X,ie){if(ue(I,Uint8Array)&&(I=l.from(I,I.offset,I.byteLength)),!l.isBuffer(I))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(L===void 0&&(L=0),q===void 0&&(q=I?I.length:0),X===void 0&&(X=0),ie===void 0&&(ie=this.length),L<0||q>I.length||X<0||ie>this.length)throw new RangeError("out of range index");if(X>=ie&&L>=q)return 0;if(X>=ie)return-1;if(L>=q)return 1;if(L>>>=0,q>>>=0,X>>>=0,ie>>>=0,this===I)return 0;for(var J=ie-X,fe=q-L,ve=Math.min(J,fe),ge=this.slice(X,ie),de=I.slice(L,q),ye=0;ye<ve;++ye)if(ge[ye]!==de[ye]){J=ge[ye],fe=de[ye];break}return J<fe?-1:fe<J?1:0};function j(G,I,L,q,X){if(G.length===0)return-1;if(typeof L=="string"?(q=L,L=0):L>2147483647?L=2147483647:L<-2147483648&&(L=-2147483648),L=+L,B(L)&&(L=X?0:G.length-1),L<0&&(L=G.length+L),L>=G.length){if(X)return-1;L=G.length-1}else if(L<0)if(X)L=0;else return-1;if(typeof I=="string"&&(I=l.from(I,q)),l.isBuffer(I))return I.length===0?-1:E(G,I,L,q,X);if(typeof I=="number")return I=I&255,typeof Uint8Array.prototype.indexOf=="function"?X?Uint8Array.prototype.indexOf.call(G,I,L):Uint8Array.prototype.lastIndexOf.call(G,I,L):E(G,[I],L,q,X);throw new TypeError("val must be string, number or Buffer")}function E(G,I,L,q,X){var ie=1,J=G.length,fe=I.length;if(q!==void 0&&(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(G.length<2||I.length<2)return-1;ie=2,J/=2,fe/=2,L/=2}function ve(Fe,ht){return ie===1?Fe[ht]:Fe.readUInt16BE(ht*ie)}var ge;if(X){var de=-1;for(ge=L;ge<J;ge++)if(ve(G,ge)===ve(I,de===-1?0:ge-de)){if(de===-1&&(de=ge),ge-de+1===fe)return de*ie}else de!==-1&&(ge-=ge-de),de=-1}else for(L+fe>J&&(L=J-fe),ge=L;ge>=0;ge--){for(var ye=!0,_e=0;_e<fe;_e++)if(ve(G,ge+_e)!==ve(I,_e)){ye=!1;break}if(ye)return ge}return-1}l.prototype.includes=function(I,L,q){return this.indexOf(I,L,q)!==-1},l.prototype.indexOf=function(I,L,q){return j(this,I,L,q,!0)},l.prototype.lastIndexOf=function(I,L,q){return j(this,I,L,q,!1)};function C(G,I,L,q){L=Number(L)||0;var X=G.length-L;q?(q=Number(q),q>X&&(q=X)):q=X;var ie=I.length;q>ie/2&&(q=ie/2);for(var J=0;J<q;++J){var fe=parseInt(I.substr(J*2,2),16);if(B(fe))return J;G[L+J]=fe}return J}function N(G,I,L,q){return K(U(I,G.length-L),G,L,q)}function A(G,I,L,q){return K(se(I),G,L,q)}function $(G,I,L,q){return K(Q(I),G,L,q)}function T(G,I,L,q){return K(te(I,G.length-L),G,L,q)}l.prototype.write=function(I,L,q,X){if(L===void 0)X="utf8",q=this.length,L=0;else if(q===void 0&&typeof L=="string")X=L,q=this.length,L=0;else if(isFinite(L))L=L>>>0,isFinite(q)?(q=q>>>0,X===void 0&&(X="utf8")):(X=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ie=this.length-L;if((q===void 0||q>ie)&&(q=ie),I.length>0&&(q<0||L<0)||L>this.length)throw new RangeError("Attempt to write outside buffer bounds");X||(X="utf8");for(var J=!1;;)switch(X){case"hex":return C(this,I,L,q);case"utf8":case"utf-8":return N(this,I,L,q);case"ascii":case"latin1":case"binary":return A(this,I,L,q);case"base64":return $(this,I,L,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,I,L,q);default:if(J)throw new TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),J=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(G,I,L){return I===0&&L===G.length?t.fromByteArray(G):t.fromByteArray(G.slice(I,L))}function M(G,I,L){L=Math.min(G.length,L);for(var q=[],X=I;X<L;){var ie=G[X],J=null,fe=ie>239?4:ie>223?3:ie>191?2:1;if(X+fe<=L){var ve,ge,de,ye;switch(fe){case 1:ie<128&&(J=ie);break;case 2:ve=G[X+1],(ve&192)===128&&(ye=(ie&31)<<6|ve&63,ye>127&&(J=ye));break;case 3:ve=G[X+1],ge=G[X+2],(ve&192)===128&&(ge&192)===128&&(ye=(ie&15)<<12|(ve&63)<<6|ge&63,ye>2047&&(ye<55296||ye>57343)&&(J=ye));break;case 4:ve=G[X+1],ge=G[X+2],de=G[X+3],(ve&192)===128&&(ge&192)===128&&(de&192)===128&&(ye=(ie&15)<<18|(ve&63)<<12|(ge&63)<<6|de&63,
vendor: 7,467 bytes, line 8081
8081ye>65535&&ye<1114112&&(J=ye))}}J===null?(J=65533,fe=1):J>65535&&(J-=65536,q.push(J>>>10&1023|55296),J=56320|J&1023),q.push(J),X+=fe}return Y(q)}var z=4096;function Y(G){var I=G.length;if(I<=z)return String.fromCharCode.apply(String,G);for(var L="",q=0;q<I;)L+=String.fromCharCode.apply(String,G.slice(q,q+=z));return L}function W(G,I,L){var q="";L=Math.min(G.length,L);for(var X=I;X<L;++X)q+=String.fromCharCode(G[X]&127);return q}function ee(G,I,L){var q="";L=Math.min(G.length,L);for(var X=I;X<L;++X)q+=String.fromCharCode(G[X]);return q}function Z(G,I,L){var q=G.length;(!I||I<0)&&(I=0),(!L||L<0||L>q)&&(L=q);for(var X="",ie=I;ie<L;++ie)X+=pe[G[ie]];return X}function V(G,I,L){for(var q=G.slice(I,L),X="",ie=0;ie<q.length-1;ie+=2)X+=String.fromCharCode(q[ie]+q[ie+1]*256);return X}l.prototype.slice=function(I,L){var q=this.length;I=~~I,L=L===void 0?q:~~L,I<0?(I+=q,I<0&&(I=0)):I>q&&(I=q),L<0?(L+=q,L<0&&(L=0)):L>q&&(L=q),L<I&&(L=I);var X=this.subarray(I,L);return Object.setPrototypeOf(X,l.prototype),X};function ne(G,I,L){if(G%1!==0||G<0)throw new RangeError("offset is not uint");if(G+I>L)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(I,L,q){I=I>>>0,L=L>>>0,q||ne(I,L,this.length);for(var X=this[I],ie=1,J=0;++J<L&&(ie*=256);)X+=this[I+J]*ie;return X},l.prototype.readUintBE=l.prototype.readUIntBE=function(I,L,q){I=I>>>0,L=L>>>0,q||ne(I,L,this.length);for(var X=this[I+--L],ie=1;L>0&&(ie*=256);)X+=this[I+--L]*ie;return X},l.prototype.readUint8=l.prototype.readUInt8=function(I,L){return I=I>>>0,L||ne(I,1,this.length),this[I]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(I,L){return I=I>>>0,L||ne(I,2,this.length),this[I]|this[I+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(I,L){return I=I>>>0,L||ne(I,2,this.length),this[I]<<8|this[I+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(I,L){return I=I>>>0,L||ne(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+this[I+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(I,L){return I=I>>>0,L||ne(I,4,this.length),this[I]*16777216+(this[I+1]<<16|this[I+2]<<8|this[I+3])},l.prototype.readIntLE=function(I,L,q){I=I>>>0,L=L>>>0,q||ne(I,L,this.length);for(var X=this[I],ie=1,J=0;++J<L&&(ie*=256);)X+=this[I+J]*ie;return ie*=128,X>=ie&&(X-=Math.pow(2,8*L)),X},l.prototype.readIntBE=function(I,L,q){I=I>>>0,L=L>>>0,q||ne(I,L,this.length);for(var X=L,ie=1,J=this[I+--X];X>0&&(ie*=256);)J+=this[I+--X]*ie;return ie*=128,J>=ie&&(J-=Math.pow(2,8*L)),J},l.prototype.readInt8=function(I,L){return I=I>>>0,L||ne(I,1,this.length),this[I]&128?(255-this[I]+1)*-1:this[I]},l.prototype.readInt16LE=function(I,L){I=I>>>0,L||ne(I,2,this.length);var q=this[I]|this[I+1]<<8;return q&32768?q|4294901760:q},l.prototype.readInt16BE=function(I,L){I=I>>>0,L||ne(I,2,this.length);var q=this[I+1]|this[I]<<8;return q&32768?q|4294901760:q},l.prototype.readInt32LE=function(I,L){return I=I>>>0,L||ne(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},l.prototype.readInt32BE=function(I,L){return I=I>>>0,L||ne(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},l.prototype.readFloatLE=function(I,L){return I=I>>>0,L||ne(I,4,this.length),r.read(this,I,!0,23,4)},l.prototype.readFloatBE=function(I,L){return I=I>>>0,L||ne(I,4,this.length),r.read(this,I,!1,23,4)},l.prototype.readDoubleLE=function(I,L){return I=I>>>0,L||ne(I,8,this.length),r.read(this,I,!0,52,8)},l.prototype.readDoubleBE=function(I,L){return I=I>>>0,L||ne(I,8,this.length),r.read(this,I,!1,52,8)};function P(G,I,L,q,X,ie){if(!l.isBuffer(G))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>X||I<ie)throw new RangeError('"value" argument is out of bounds');if(L+q>G.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(I,L,q,X){if(I=+I,L=L>>>0,q=q>>>0,!X){var ie=Math.pow(2,8*q)-1;P(this,I,L,q,ie,0)}var J=1,fe=0;for(this[L]=I&255;++fe<q&&(J*=256);)this[L+fe]=I/J&255;return L+q},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(I,L,q,X){if(I=+I,L=L>>>0,q=q>>>0,!X){var ie=Math.pow(2,8*q)-1;P(this,I,L,q,ie,0)}var J=q-1,fe=1;for(this[L+J]=I&255;--J>=0&&(fe*=256);)this[L+J]=I/fe&255;return L+q},l.prototype.writeUint8=l.prototype.writeUInt8=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,1,255,0),this[L]=I&255,L+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,2,65535,0),this[L]=I&255,this[L+1]=I>>>8,L+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,2,65535,0),this[L]=I>>>8,this[L+1]=I&255,L+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,4,4294967295,0),this[L+3]=I>>>24,this[L+2]=I>>>16,this[L+1]=I>>>8,this[L]=I&255,L+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,4,4294967295,0),this[L]=I>>>24,this[L+1]=I>>>16,this[L+2]=I>>>8,this[L+3]=I&255,L+4},l.prototype.writeIntLE=function(I,L,q,X){if(I=+I,L=L>>>0,!X){var ie=Math.pow(2,8*q-1);P(this,I,L,q,ie-1,-ie)}var J=0,fe=1,ve=0;for(this[L]=I&255;++J<q&&(fe*=256);)I<0&&ve===0&&this[L+J-1]!==0&&(ve=1),this[L+J]=(I/fe>>0)-ve&255;return L+q},l.prototype.writeIntBE=function(I,L,q,X){if(I=+I,L=L>>>0,!X){var ie=Math.pow(2,8*q-1);P(this,I,L,q,ie-1,-ie)}var J=q-1,fe=1,ve=0;for(this[L+J]=I&255;--J>=0&&(fe*=256);)I<0&&ve===0&&this[L+J+1]!==0&&(ve=1),this[L+J]=(I/fe>>0)-ve&255;return L+q},l.prototype.writeInt8=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,1,127,-128),I<0&&(I=255+I+1),this[L]=I&255,L+1},l.prototype.writeInt16LE=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,2,32767,-32768),this[L]=I&255,this[L+1]=I>>>8,L+2},l.prototype.writeInt16BE=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,2,32767,-32768),this[L]=I>>>8,this[L+1]=I&255,L+2},l.prototype.writeInt32LE=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,4,2147483647,-2147483648),this[L]=I&255,this[L+1]=I>>>8,this[L+2]=I>>>16,this[L+3]=I>>>24,L+4},l.prototype.writeInt32BE=function(I,L,q){return I=+I,L=L>>>0,q||P(this,I,L,4,2147483647,-2147483648),I<0&&(I=4294967295+I+1),this[L]=I>>>24,this[L+1]=I>>>16,this[L+2]=I>>>8,this[L+3]=I&255,L+4};function R(G,I,L,q,X,ie){if(L+q>G.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("Index out of range")}function H(G,I,L,q,X){return I=+I,L=L>>>0,X||R(G,I,L,4),r.write(G,I,L,q,23,4),L+4}l.prototype.writeFloatLE=function(I,L,q){return H(this,I,L,!0,q)},l.prototype.writeFloatBE=function(I,L,q){return H(this,I,L,!1,q)};function re(G,I,L,q,X){return I=+I,L=L>>>0,X||R(G,I,L,8),r.write(G,I,L,q,52,8),L+8}l.prototype.writeDoubleLE=function(I,L,q){return re(this,I,L,!0,q)},l.prototype.writeDoubleBE=function(I,L,q){return re(this,I,L,!1,q)},l.prototype.copy=function(I,L,q,X){if(!l.isBuffer(I))throw new TypeError("argument should be a Buffer");if(q||(q=0),!X&&X!==0&&(X=this.length),L>=I.length&&(L=I.length),L||(L=0),X>0&&X<q&&(X=q),X===q||I.length===0||this.length===0)return 0;if(L<0)throw new RangeError("targetStart out of bounds");if(q<0||q>=this.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("sourceEnd out of bounds");X>this.length&&(X=this.length),I.length-L<X-q&&(X=I.length-L+q);var ie=X-q;return this===I&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(L,q,X):Uint8Array.prototype.set.call(I,this.subarray(q,X),L),ie}
8081,l.prototype.fill=function(I,L,q,X){if(typeof I=="string"){if(typeof L=="string"?(X=L,L=0,q=this.length):typeof q=="string"&&(X=q,q=this.length),X!==void 0&&typeof X!="string")throw new TypeError("encoding must be a string");if(typeof X=="string"&&!l.isEncoding(X))throw new TypeError("Unknown encoding: "+X);if(I.length===1){var ie=I.charCodeAt(0);(X==="utf8"&&ie<128||X==="latin1")&&(I=ie)}}else typeof I=="number"?I=I&255:typeof I=="boolean"&&(I=Number(I));if(L<0||this.length<L||this.length<q)throw new RangeError("Out of range index");if(q<=L)return this;L=L>>>0,q=q===void 0?this.length:q>>>0,I||(I=0);var J;if(typeof I=="number")for(J=L;J<q;++J)this[J]=I;else{var fe=l.isBuffer(I)?I:l.from(I,X),ve=fe.length;if(ve===0)throw new TypeError('The value "'+I+'" is invalid for argument "value"');for(J=0;J<q-L;++J)this[J+L]=fe[J%ve]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function D(G){if(G=G.split("=")[0],G=G.trim().replace(ae,""),G.length<2)return"";for(;G.length%4!==0;)G=G+"=";return G}function U(G,I){I=I||1/0;for(var L,q=G.length,X=null,ie=[],J=0;J<q;++J){if(L=G.charCodeAt(J),L>55295&&L<57344){if(!X){if(L>56319){(I-=3)>-1&&ie.push(239,191,189);continue}else if(J+1===q){(I-=3)>-1&&ie.push(239,191,189);continue}X=L;continue}if(L<56320){(I-=3)>-1&&ie.push(239,191,189),X=L;continue}L=(X-55296<<10|L-56320)+65536}else X&&(I-=3)>-1&&ie.push(239,191,189);if(X=null,L<128){if((I-=1)<0)break;ie.push(L)}else if(L<2048){if((I-=2)<0)break;ie.push(L>>6|192,L&63|128)}else if(L<65536){if((I-=3)<0)break;ie.push(L>>12|224,L>>6&63|128,L&63|128)}else if(L<1114112){if((I-=4)<0)break;ie.push(L>>18|240,L>>12&63|128,L>>6&63|128,L&63|128)}else throw new Error("Invalid code point")}return ie}function se(G){for(var I=[],L=0;L<G.length;++L)I.push(G.charCodeAt(L)&255);return I}function te(G,I){for(var L,q,X,ie=[],J=0;J<G.length&&!((I-=2)<0);++J)L=G.charCodeAt(J),q=L>>8,X=L%256,ie.push(X),ie.push(q);return ie}function Q(G){return t.toByteArray(D(G))}function K(G,I,L,q){for(var X=0;X<q&&!(X+L>=I.length||X>=G.length);++X)I[X+L]=G[X];return X}function ue(G,I){return G instanceof I||G!=null&&G.constructor!=null&&G.constructor.name!=null&&G.constructor.name===I.name}function B(G){return G!==G}var pe=function(){for(var G="0123456789abcdef",I=new Array(256),L=0;L<16;++L)for(var q=L*16,X=0;X<16;++X)I[q+X]=G[L]+G[X];return I}()}(SX)),SX}var jX={},EX={},CX,dme;function xNe(){return dme||(dme=1,CX=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==a||l.enumerable!==!0)return!1}return!0}),CX}var NX,hme;function Gse(){if(hme)return NX;hme=1;var e=xNe();return NX=function(){return e()&&!!Symbol.toStringTag},NX}var TX,fme;function bNe(){return fme||(fme=1,TX=Object),TX}var AX,pme;function O0t(){return pme||(pme=1,AX=Error),AX}var MX,mme;function R0t(){return mme||(mme=1,MX=EvalError),MX}var IX,gme;function D0t(){return gme||(gme=1,IX=RangeError),IX}var PX,yme;function F0t(){return yme||(yme=1,PX=ReferenceError),PX}var LX,vme;function wNe(){return vme||(vme=1,LX=SyntaxError),LX}var OX,xme;function l4(){return xme||(xme=1,OX=TypeError),OX}var RX,bme;function $0t(){return bme||(bme=1,RX=URIError),RX}var DX,wme;function B0t(){return wme||(wme=1,DX=Math.abs),DX}var FX,kme;function z0t(){return kme||(kme=1,FX=Math.floor),FX}var $X,_me;function U0t(){return _me||(_me=1,$X=Math.max),$X}var BX,Sme;function q0t(){return Sme||(Sme=1,BX=Math.min),BX}var zX,jme;function H0t(){return jme||(jme=1,zX=Math.pow),zX}var UX,Eme;function V0t(){return Eme||(Eme=1,UX=Math.round),UX}var qX,Cme;function W0t(){return Cme||(Cme=1,qX=Number.isNaN||function(t){return t!==t}),qX}var HX,Nme;function G0t(){if(Nme)return HX;Nme=1;var e=W0t();return HX=function(r){return e(r)||r===0?r:r<0?-1:1},HX}var VX,Tme;function K0t(){return Tme||(Tme=1,VX=Object.getOwnPropertyDescriptor),VX}var WX,Ame;function c4(){if(Ame)return WX;Ame=1;var e=K0t();if(e)try{e([],"length")}catch{e=null}return WX=e,WX}var GX,Mme;
vendor: 9,711 bytes, line 8081
8081function mG(){if(Mme)return GX;Mme=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return GX=e,GX}var KX,Ime;function Y0t(){if(Ime)return KX;Ime=1;var e=typeof Symbol<"u"&&Symbol,t=xNe();return KX=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},KX}var YX,Pme;function kNe(){return Pme||(Pme=1,YX=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),YX}var XX,Lme;function _Ne(){if(Lme)return XX;Lme=1;var e=bNe();return XX=e.getPrototypeOf||null,XX}var ZX,Ome;function X0t(){if(Ome)return ZX;Ome=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",a=function(c,u){for(var d=[],h=0;h<c.length;h+=1)d[h]=c[h];for(var f=0;f<u.length;f+=1)d[f+c.length]=u[f];return d},s=function(c,u){for(var d=[],h=u,f=0;h<c.length;h+=1,f+=1)d[f]=c[h];return d},o=function(l,c){for(var u="",d=0;d<l.length;d+=1)u+=l[d],d+1<l.length&&(u+=c);return u};return ZX=function(c){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var d=s(arguments,1),h,f=function(){if(this instanceof h){var g=u.apply(this,a(d,arguments));return Object(g)===g?g:this}return u.apply(c,a(d,arguments))},p=r(0,u.length-d.length),y=[],m=0;m<p;m++)y[m]="$"+m;if(h=Function("binder","return function ("+o(y,",")+"){ return binder.apply(this,arguments); }")(f),u.prototype){var v=function(){};v.prototype=u.prototype,h.prototype=new v,v.prototype=null}return h},ZX}var QX,Rme;function u4(){if(Rme)return QX;Rme=1;var e=X0t();return QX=Function.prototype.bind||e,QX}var JX,Dme;function Kse(){return Dme||(Dme=1,JX=Function.prototype.call),JX}var eZ,Fme;function SNe(){return Fme||(Fme=1,eZ=Function.prototype.apply),eZ}var tZ,$me;function Z0t(){return $me||($me=1,tZ=typeof Reflect<"u"&&Reflect&&Reflect.apply),tZ}var rZ,Bme;function Q0t(){if(Bme)return rZ;Bme=1;var e=u4(),t=SNe(),r=Kse(),n=Z0t();return rZ=n||e.call(r,t),rZ}var nZ,zme;function J0t(){if(zme)return nZ;zme=1;var e=u4(),t=l4(),r=Kse(),n=Q0t();return nZ=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},nZ}var aZ,Ume;function egt(){if(Ume)return aZ;Ume=1;var e=J0t(),t=c4(),r;try{r=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return aZ=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(l){return s(l==null?l:a(l))}:!1,aZ}var iZ,qme;function tgt(){if(qme)return iZ;qme=1;var e=kNe(),t=_Ne(),r=egt();return iZ=e?function(a){return e(a)}:t?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return t(a)}:r?function(a){return r(a)}:null,iZ}var sZ,Hme;function rgt(){if(Hme)return sZ;Hme=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=u4();return sZ=r.call(e,t),sZ}var oZ,Vme;function Yse(){if(Vme)return oZ;Vme=1;var e,t=bNe(),r=O0t(),n=R0t(),a=D0t(),s=F0t(),o=wNe(),l=l4(),c=$0t(),u=B0t(),d=z0t(),h=U0t(),f=q0t(),p=H0t(),y=V0t(),m=G0t(),v=Function,g=function(se){try{return v('"use strict"; return ('+se+").constructor;")()}catch{}},b=c4(),x=mG(),_=function(){throw new l},w=b?function(){try{return arguments.callee,_}catch{try{return b(arguments,"callee").get}catch{return _}}}():_,j=Y0t()(),E=tgt(),C=_Ne(),N=kNe(),A=SNe(),$=Kse(),T={},F=typeof Uint8Array>"u"||!E?e:E(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":j&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":T,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!j||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&E?E(""[Symbol.iterator]()):e,"%Symbol%":j?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":w,"%TypedArray%":F,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":$,"%Function.prototype.apply%":A,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":C,"%Math.abs%":u,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":f,"%Math.pow%":p,"%Math.round%":y,"%Math.sign%":m,"%Reflect.getPrototypeOf%":N};if(E)try{null.error}catch(se){var z=E(E(se));M["%Error.prototype%"]=z}var Y=function se(te){var Q;if(te==="%AsyncFunction%")Q=g("async function () {}");else if(te==="%GeneratorFunction%")Q=g("function* () {}");else if(te==="%AsyncGeneratorFunction%")Q=g("async function* () {}");else if(te==="%AsyncGenerator%"){var K=se("%AsyncGeneratorFunction%");K&&(Q=K.prototype)}else if(te==="%AsyncIteratorPrototype%"){var ue=se("%AsyncGenerator%");ue&&E&&(Q=E(ue.prototype))}return M[te]=Q,Q},W={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ee=u4(),Z=rgt(),V=ee.call($,Array.prototype.concat),ne=ee.call(A,Array.prototype.splice),P=ee.call($,String.prototype.replace),R=ee.call($,String.prototype.slice),H=ee.call($,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,D=function(te){var Q=R(te,0,1),K=R(te,-1);if(Q==="%"&&K!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");
vendor: 4,269 bytes, line 8081
8081if(K==="%"&&Q!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var ue=[];return P(te,re,function(B,pe,G,I){ue[ue.length]=G?P(I,ae,"$1"):pe||B}),ue},U=function(te,Q){var K=te,ue;if(Z(W,K)&&(ue=W[K],K="%"+ue[0]+"%"),Z(M,K)){var B=M[K];if(B===T&&(B=Y(K)),typeof B>"u"&&!Q)throw new l("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:ue,name:K,value:B}}throw new o("intrinsic "+te+" does not exist!")};return oZ=function(te,Q){if(typeof te!="string"||te.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new l('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,te)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var K=D(te),ue=K.length>0?K[0]:"",B=U("%"+ue+"%",Q),pe=B.name,G=B.value,I=!1,L=B.alias;L&&(ue=L[0],ne(K,V([0,1],L)));for(var q=1,X=!0;q<K.length;q+=1){var ie=K[q],J=R(ie,0,1),fe=R(ie,-1);if((J==='"'||J==="'"||J==="`"||fe==='"'||fe==="'"||fe==="`")&&J!==fe)throw new o("property names with quotes must have matching quotes");if((ie==="constructor"||!X)&&(I=!0),ue+="."+ie,pe="%"+ue+"%",Z(M,pe))G=M[pe];else if(G!=null){if(!(ie in G)){if(!Q)throw new l("base intrinsic for "+te+" exists, but the property is not available.");return}if(b&&q+1>=K.length){var ve=b(G,ie);X=!!ve,X&&"get"in ve&&!("originalValue"in ve.get)?G=ve.get:G=G[ie]}else X=Z(G,ie),G=G[ie];X&&!I&&(M[pe]=G)}}return G},oZ}var lZ={exports:{}},cZ,Wme;function ngt(){if(Wme)return cZ;Wme=1;var e=mG(),t=wNe(),r=l4(),n=c4();return cZ=function(s,o,l){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,f=!!n&&n(s,o);if(e)e(s,o,{configurable:d===null&&f?f.configurable:!d,enumerable:c===null&&f?f.enumerable:!c,value:l,writable:u===null&&f?f.writable:!u});else if(h||!c&&!u&&!d)s[o]=l;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},cZ}var uZ,Gme;function agt(){if(Gme)return uZ;Gme=1;var e=mG(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},uZ=t,uZ}var dZ,Kme;function igt(){if(Kme)return dZ;Kme=1;var e=Yse(),t=ngt(),r=agt()(),n=c4(),a=l4(),s=e("%Math.floor%");return dZ=function(l,c){if(typeof l!="function")throw new a("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||s(c)!==c)throw new a("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],d=!0,h=!0;if("length"in l&&n){var f=n(l,"length");f&&!f.configurable&&(d=!1),f&&!f.writable&&(h=!1)}return(d||h||!u)&&(r?t(l,"length",c,!0,!0):t(l,"length",c)),l},dZ}var Yme;function jNe(){return Yme||(Yme=1,function(e){var t=u4(),r=Yse(),n=igt(),a=l4(),s=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(o,s),c=mG(),u=r("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new a("a function is required");var p=l(t,o,arguments);return n(p,1+u(0,f.length-(arguments.length-1)),!0)};var d=function(){return l(t,s,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d}(lZ)),lZ.exports}var hZ,Xme;function ENe(){if(Xme)return hZ;Xme=1;var e=Yse(),t=jNe(),r=t(e("String.prototype.indexOf"));return hZ=function(a,s){var o=e(a,!!s);return typeof o=="function"&&r(a,".prototype.")>-1?t(o):o},hZ}var fZ,Zme;
8081function sgt(){if(Zme)return fZ;Zme=1;var e=Gse()(),t=ENe(),r=t("Object.prototype.toString"),n=function(l){return e&&l&&typeof l=="object"&&Symbol.toStringTag in l?!1:r(l)==="[object Arguments]"},a=function(l){return n(l)?!0:l!==null&&typeof l=="object"&&typeof l.length=="number"&&l.length>=0&&r(l)!=="[object Array]"&&r(l.callee)==="[object Function]"},s=function(){return n(arguments)}();return n.isLegacyArguments=a,fZ=s?n:a,fZ}var pZ,Qme;function ogt(){if(Qme)return pZ;Qme=1;var e=Object.prototype.toString,t=Function.prototype.toString,r=/^\s*(?:function)?\*/,n=Gse()(),a=Object.getPrototypeOf,s=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},o;return pZ=function(c){if(typeof c!="function")return!1;if(r.test(t.call(c)))return!0;if(!n){var u=e.call(c);return u==="[object GeneratorFunction]"}if(!a)return!1;if(typeof o>"u"){var d=s();o=d?a(d):!1}return a(c)===o},pZ}var mZ,Jme;function lgt(){if(Jme)return mZ;Jme=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(b){b!==n&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(x){try{var _=e.call(x);return a.test(_)}catch{return!1}},o=function(x){try{return s(x)?!1:(e.call(x),!0)}catch{return!1}},l=Object.prototype.toString,c="[object Object]",u="[object Function]",d="[object GeneratorFunction]",h="[object HTMLAllCollection]",f="[object HTML document.all class]",p="[object HTMLCollection]",y=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),v=function(){return!1};if(typeof document=="object"){var g=document.all;l.call(g)===l.call(document.all)&&(v=function(x){if((m||!x)&&(typeof x>"u"||typeof x=="object"))try{var _=l.call(x);return(_===h||_===f||_===p||_===c)&&x("")==null}catch{}return!1})}return mZ=t?function(x){if(v(x))return!0;if(!x||typeof x!="function"&&typeof x!="object")return!1;try{t(x,null,r)}catch(_){if(_!==n)return!1}return!s(x)&&o(x)}:function(x){if(v(x))return!0;if(!x||typeof x!="function"&&typeof x!="object")return!1;if(y)return o(x);if(s(x))return!1;var _=l.call(x);return _!==u&&_!==d&&!/^\[object HTML/.test(_)?!1:o(x)},mZ}var gZ,e1e;function cgt(){if(e1e)return gZ;e1e=1;var e=lgt(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(c,u,d){for(var h=0,f=c.length;h<f;h++)r.call(c,h)&&(d==null?u(c[h],h,c):u.call(d,c[h],h,c))},a=function(c,u,d){for(var h=0,f=c.length;h<f;h++)d==null?u(c.charAt(h),h,c):u.call(d,c.charAt(h),h,c)},s=function(c,u,d){for(var h in c)r.call(c,h)&&(d==null?u(c[h],h,c):u.call(d,c[h],h,c))},o=function(c,u,d){if(!e(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=d),t.call(c)==="[object Array]"?n(c,u,h):typeof c=="string"?a(c,u,h):s(c,u,h)};return gZ=o,gZ}var yZ,t1e;function ugt(){return t1e||(t1e=1,yZ=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),yZ}var vZ,r1e;function dgt(){if(r1e)return vZ;r1e=1;var e=ugt(),t=typeof globalThis>"u"?ec:globalThis;return vZ=function(){for(var n=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(n[n.length]=e[a]);return n},vZ}var xZ,n1e;function CNe(){if(n1e)return xZ;n1e=1;var e=cgt(),t=dgt(),r=jNe(),n=ENe(),a=c4(),s=n("Object.prototype.toString"),o=Gse()(),l=typeof globalThis>"u"?ec:globalThis,c=t(),u=n("String.prototype.slice"),d=Object.getPrototypeOf,h=n("Array.prototype.indexOf",!0)||function(v,g){for(var b=0;b<v.length;b+=1)if(v[b]===g)return b;return-1},f={__proto__:null};o&&a&&d?e(c,function(m){var v=new l[m];if(Symbol.toStringTag in v){var g=d(v),b=a(g,Symbol.toStringTag);if(!b){var x=d(g);b=a(x,Symbol.toStringTag)}f["$"+m]=r(b.get)}}):e(c,function(m){var v=new l[m],g=v.slice||v.set;g&&(f["$"+m]=r(g))});var p=function(v){var g=!1;return e(f,function(b,x){if(!g)try{"$"+b(v)===x&&(g=u(x,1))}catch{}}),g},y=function(v){var g=!1;return e(f,function(b,x){if(!g)try{b(v),g=u(x,1)}catch{}}),g};return xZ=function(v){if(!v||typeof v!="object")return!1;if(!o){var g=u(s(v),8,-1);return h(c,g)>-1?g:g!=="Object"?!1:y(v)}return a?p(v):null},xZ}var bZ,a1e;function hgt(){if(a1e)return bZ;a1e=1;var e=CNe();return bZ=function(r){return!!e(r)},bZ}var i1e;function fgt(){return i1e||(i1e=1,function(e){var t=sgt(),r=ogt(),n=CNe(),a=hgt();function s(q){return q.call.bind(q)}var o=typeof BigInt<"u",l=typeof Symbol<"u",c=s(Object.prototype.toString),u=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(o)var f=s(BigInt.prototype.valueOf);if(l)var p=s(Symbol.prototype.valueOf);function y(q,X){if(typeof q!="object")return!1;try{return X(q),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function m(q){return typeof Promise<"u"&&q instanceof Promise||q!==null&&typeof q=="object"&&typeof q.then=="function"&&typeof q.catch=="function"}e.isPromise=m;function v(q){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(q):a(q)||R(q)}e.isArrayBufferView=v;function g(q){return n(q)==="Uint8Array"}e.isUint8Array=g;function b(q){return n(q)==="Uint8ClampedArray"}e.isUint8ClampedArray=b;function x(q){return n(q)==="Uint16Array"}e.isUint16Array=x;function _(q){return n(q)==="Uint32Array"}e.isUint32Array=_;function w(q){return n(q)==="Int8Array"}e.isInt8Array=w;function j(q){return n(q)==="Int16Array"}e.isInt16Array=j;function E(q){return n(q)==="Int32Array"}e.isInt32Array=E;function C(q){return n(q)==="Float32Array"}e.isFloat32Array=C;function N(q){return n(q)==="Float64Array"}e.isFloat64Array=N;function A(q){return n(q)==="BigInt64Array"}e.isBigInt64Array=A;function $(q){return n(q)==="BigUint64Array"}e.isBigUint64Array=$;function T(q){return c(q)==="[object Map]"}T.working=typeof Map<"u"&&T(new Map);function F(q){return typeof Map>"u"?!1:T.working?T(q):q instanceof Map}e.isMap=F;function M(q){return c(q)==="[object Set]"}M.working=typeof Set<"u"&&M(new Set);function z(q){return typeof Set>"u"?!1:M.working?M(q):q instanceof Set}e.isSet=z;function Y(q){return c(q)==="[object WeakMap]"}Y.working=typeof WeakMap<"u"&&Y(new WeakMap);function W(q){return typeof WeakMap>"u"?!1:Y.working?Y(q):q instanceof WeakMap}e.isWeakMap=W;function ee(q){return c(q)==="[object WeakSet]"}ee.working=typeof WeakSet<"u"&&ee(new WeakSet);function Z(q){return ee(q)}e.isWeakSet=Z;function V(q){return c(q)==="[object ArrayBuffer]"}V.working=typeof ArrayBuffer<"u"&&V(new ArrayBuffer);function ne(q){return typeof ArrayBuffer>"u"?!1:V.working?V(q):q instanceof ArrayBuffer}e.isArrayBuffer=ne;function P(q){return c(q)==="[object DataView]"}
vendor: 12,111 bytes, lines 8081-8090
8081P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1));function R(q){return typeof DataView>"u"?!1:P.working?P(q):q instanceof DataView}e.isDataView=R;var H=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function re(q){return c(q)==="[object SharedArrayBuffer]"}function ae(q){return typeof H>"u"?!1:(typeof re.working>"u"&&(re.working=re(new H)),re.working?re(q):q instanceof H)}e.isSharedArrayBuffer=ae;function D(q){return c(q)==="[object AsyncFunction]"}e.isAsyncFunction=D;function U(q){return c(q)==="[object Map Iterator]"}e.isMapIterator=U;function se(q){return c(q)==="[object Set Iterator]"}e.isSetIterator=se;function te(q){return c(q)==="[object Generator]"}e.isGeneratorObject=te;function Q(q){return c(q)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=Q;function K(q){return y(q,u)}e.isNumberObject=K;function ue(q){return y(q,d)}e.isStringObject=ue;function B(q){return y(q,h)}e.isBooleanObject=B;function pe(q){return o&&y(q,f)}e.isBigIntObject=pe;function G(q){return l&&y(q,p)}e.isSymbolObject=G;function I(q){return K(q)||ue(q)||B(q)||pe(q)||G(q)}e.isBoxedPrimitive=I;function L(q){return typeof Uint8Array<"u"&&(ne(q)||ae(q))}e.isAnyArrayBuffer=L,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(q){Object.defineProperty(e,q,{enumerable:!1,value:function(){throw new Error(q+" is not supported in userland")}})})}(EX)),EX}var wZ,s1e;function pgt(){return s1e||(s1e=1,wZ=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),wZ}var o1e;function NNe(){return o1e||(o1e=1,function(e){var t=Object.getOwnPropertyDescriptors||function(R){for(var H=Object.keys(R),re={},ae=0;ae<H.length;ae++)re[H[ae]]=Object.getOwnPropertyDescriptor(R,H[ae]);return re},r=/%[sdj%]/g;e.format=function(P){if(!w(P)){for(var R=[],H=0;H<arguments.length;H++)R.push(o(arguments[H]));return R.join(" ")}for(var H=1,re=arguments,ae=re.length,D=String(P).replace(r,function(se){if(se==="%%")return"%";if(H>=ae)return se;switch(se){case"%s":return String(re[H++]);case"%d":return Number(re[H++]);case"%j":try{return JSON.stringify(re[H++])}catch{return"[Circular]"}default:return se}}),U=re[H];H<ae;U=re[++H])b(U)||!N(U)?D+=" "+U:D+=" "+o(U);return D},e.deprecate=function(P,R){if(typeof dr<"u"&&dr.noDeprecation===!0)return P;if(typeof dr>"u")return function(){return e.deprecate(P,R).apply(this,arguments)};var H=!1;function re(){if(!H){if(dr.throwDeprecation)throw new Error(R);dr.traceDeprecation?console.trace(R):console.error(R),H=!0}return P.apply(this,arguments)}return re};var n={},a=/^$/;if(dr.env.NODE_DEBUG){var s=dr.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}e.debuglog=function(P){if(P=P.toUpperCase(),!n[P])if(a.test(P)){var R=dr.pid;n[P]=function(){var H=e.format.apply(e,arguments);console.error("%s %d: %s",P,R,H)}}else n[P]=function(){};return n[P]};function o(P,R){var H={seen:[],stylize:c};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),g(R)?H.showHidden=R:R&&e._extend(H,R),E(H.showHidden)&&(H.showHidden=!1),E(H.depth)&&(H.depth=2),E(H.colors)&&(H.colors=!1),E(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=l),d(H,P,H.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(P,R){var H=o.styles[R];return H?"\x1B["+o.colors[H][0]+"m"+P+"\x1B["+o.colors[H][1]+"m":P}function c(P,R){return P}function u(P){var R={};return P.forEach(function(H,re){R[H]=!0}),R}function d(P,R,H){if(P.customInspect&&R&&T(R.inspect)&&R.inspect!==e.inspect&&!(R.constructor&&R.constructor.prototype===R)){var re=R.inspect(H,P);return w(re)||(re=d(P,re,H)),re}var ae=h(P,R);if(ae)return ae;var D=Object.keys(R),U=u(D);if(P.showHidden&&(D=Object.getOwnPropertyNames(R)),$(R)&&(D.indexOf("message")>=0||D.indexOf("description")>=0))return f(R);if(D.length===0){if(T(R)){var se=R.name?": "+R.name:"";return P.stylize("[Function"+se+"]","special")}if(C(R))return P.stylize(RegExp.prototype.toString.call(R),"regexp");if(A(R))return P.stylize(Date.prototype.toString.call(R),"date");if($(R))return f(R)}var te="",Q=!1,K=["{","}"];if(v(R)&&(Q=!0,K=["[","]"]),T(R)){var ue=R.name?": "+R.name:"";te=" [Function"+ue+"]"}if(C(R)&&(te=" "+RegExp.prototype.toString.call(R)),A(R)&&(te=" "+Date.prototype.toUTCString.call(R)),$(R)&&(te=" "+f(R)),D.length===0&&(!Q||R.length==0))return K[0]+te+K[1];if(H<0)return C(R)?P.stylize(RegExp.prototype.toString.call(R),"regexp"):P.stylize("[Object]","special");P.seen.push(R);var B;return Q?B=p(P,R,H,U,D):B=D.map(function(pe){return y(P,R,H,U,pe,Q)}),P.seen.pop(),m(B,te,K)}function h(P,R){if(E(R))return P.stylize("undefined","undefined");if(w(R)){var H="'"+JSON.stringify(R).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return P.stylize(H,"string")}if(_(R))return P.stylize(""+R,"number");if(g(R))return P.stylize(""+R,"boolean");if(b(R))return P.stylize("null","null")}function f(P){return"["+Error.prototype.toString.call(P)+"]"}function p(P,R,H,re,ae){for(var D=[],U=0,se=R.length;U<se;++U)ee(R,String(U))?D.push(y(P,R,H,re,String(U),!0)):D.push("");return ae.forEach(function(te){te.match(/^\d+$/)||D.push(y(P,R,H,re,te,!0))}),D}function y(P,R,H,re,ae,D){var U,se,te;if(te=Object.getOwnPropertyDescriptor(R,ae)||{value:R[ae]},te.get?te.set?se=P.stylize("[Getter/Setter]","special"):se=P.stylize("[Getter]","special"):te.set&&(se=P.stylize("[Setter]","special")),ee(re,ae)||(U="["+ae+"]"),se||(P.seen.indexOf(te.value)<0?(b(H)?se=d(P,te.value,null):se=d(P,te.value,H-1),se.indexOf(` 8082`)>-1&&(D?se=se.split(` 8083`).map(function(Q){return" "+Q}).join(` 8084`).slice(2):se=` 8085`+se.split(` 8086`).map(function(Q){return" "+Q}).join(` 8087`))):se=P.stylize("[Circular]","special")),E(U)){if(D&&ae.match(/^\d+$/))return se;U=JSON.stringify(""+ae),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.slice(1,-1),U=P.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=P.stylize(U,"string"))}return U+": "+se}function m(P,R,H){var re=P.reduce(function(ae,D){return D.indexOf(` 8088`)>=0,ae+D.replace(/\u001b\[\d\d?m/g,"").length+1},0);return re>60?H[0]+(R===""?"":R+` 8089 `)+" "+P.join(`, 8090 `)+" "+H[1]:H[0]+R+" "+P.join(", ")+" "+H[1]}e.types=fgt();function v(P){return Array.isArray(P)}e.isArray=v;function g(P){return typeof P=="boolean"}e.isBoolean=g;function b(P){return P===null}e.isNull=b;function x(P){return P==null}e.isNullOrUndefined=x;function _(P){return typeof P=="number"}e.isNumber=_;function w(P){return typeof P=="string"}e.isString=w;function j(P){return typeof P=="symbol"}e.isSymbol=j;function E(P){return P===void 0}e.isUndefined=E;function C(P){return N(P)&&M(P)==="[object RegExp]"}e.isRegExp=C,e.types.isRegExp=C;function N(P){return typeof P=="object"&&P!==null}e.isObject=N;function A(P){return N(P)&&M(P)==="[object Date]"}e.isDate=A,e.types.isDate=A;function $(P){return N(P)&&(M(P)==="[object Error]"||P instanceof Error)}e.isError=$,e.types.isNativeError=$;function T(P){return typeof P=="function"}e.isFunction=T;function F(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||typeof P>"u"}e.isPrimitive=F,e.isBuffer=pgt();function M(P){return Object.prototype.toString.call(P)}function z(P){return P<10?"0"+P.toString(10):P.toString(10)}var Y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function W(){var P=new Date,R=[z(P.getHours()),z(P.getMinutes()),z(P.getSeconds())].join(":");return[P.getDate(),Y[P.getMonth()],R].join(" ")}e.log=function(){console.log("%s - %s",W(),e.format.apply(e,arguments))},e.inherits=jh(),e._extend=function(P,R){if(!R||!N(R))return P;for(var H=Object.keys(R),re=H.length;re--;)P[H[re]]=R[H[re]];return P};function ee(P,R){return Object.prototype.hasOwnProperty.call(P,R)}var Z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');if(Z&&R[Z]){var H=R[Z];if(typeof H!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(H,Z,{value:H,enumerable:!1,writable:!1,configurable:!0}),H}function H(){for(var re,ae,D=new Promise(function(te,Q){re=te,ae=Q}),U=[],se=0;se<arguments.length;se++)U.push(arguments[se]);U.push(function(te,Q){te?ae(te):re(Q)});try{R.apply(this,U)}catch(te){ae(te)}return D}return Object.setPrototypeOf(H,Object.getPrototypeOf(R)),Z&&Object.defineProperty(H,Z,{value:H,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(H,t(R))},e.promisify.custom=Z;function V(P,R){if(!P){var H=new Error("Promise was rejected with a falsy value");H.reason=P,P=H}return R(P)}function ne(P){if(typeof P!="function")throw new TypeError('The "original" argument must be of type Function');function R(){for(var H=[],re=0;re<arguments.length;re++)H.push(arguments[re]);var ae=H.pop();if(typeof ae!="function")throw new TypeError("The last argument must be of type Function");var D=this,U=function(){return ae.apply(D,arguments)};P.apply(this,H).then(function(se){dr.nextTick(U.bind(null,null,se))},function(se){dr.nextTick(V.bind(null,se,U))})}return Object.setPrototypeOf(R,Object.getPrototypeOf(P)),Object.defineProperties(R,t(P)),R}e.callbackify=ne}(jX)),jX}var kZ,l1e;function mgt(){if(l1e)return kZ;l1e=1;function e(f,p){var y=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);p&&(m=m.filter(function(v){return Object.getOwnPropertyDescriptor(f,v).enumerable})),y.push.apply(y,m)}return y}function t(f){for(var p=1;p<arguments.length;p++){var y=arguments[p]!=null?arguments[p]:{};p%2?e(Object(y),!0).forEach(function(m){r(f,m,y[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(y,m))})}return f}function r(f,p,y){return p in f?Object.defineProperty(f,p,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[p]=y,f}function n(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function a(f,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,m.key,m)}}function s(f,p,y){return p&&a(f.prototype,p),f}var o=pG(),l=o.Buffer,c=NNe(),u=c.inspect,d=u&&u.custom||"inspect";function h(f,p,y){l.prototype.copy.call(f,p,y)}return kZ=function(){function f(){n(this,f),this.head=null,this.tail=null,this.length=0}return s(f,[{key:"push",value:function(y){var m={data:y,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(y){var m={data:y,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var m=this.head,v=""+m.data;m=m.next;)v+=y+m.data;return v}},{key:"concat",value:function(y){if(this.length===0)return l.alloc(0);for(var m=l.allocUnsafe(y>>>0),v=this.head,g=0;v;)h(v.data,m,g),g+=v.data.length,v=v.next;return m}},{key:"consume",value:function(y,m){var v;return y<this.head.data.length?(v=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y)):y===this.head.data.length?v=this.shift():v=m?this._getString(y):this._getBuffer(y),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var m=this.head,v=1,g=m.data;for(y-=g.length;m=m.next;){var b=m.data,x=y>b.length?b.length:y;
vendor: 4,234 bytes, line 8090
8090if(x===b.length?g+=b:g+=b.slice(0,y),y-=x,y===0){x===b.length?(++v,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=b.slice(x));break}++v}return this.length-=v,g}},{key:"_getBuffer",value:function(y){var m=l.allocUnsafe(y),v=this.head,g=1;for(v.data.copy(m),y-=v.data.length;v=v.next;){var b=v.data,x=y>b.length?b.length:y;if(b.copy(m,m.length-y,0,x),y-=x,y===0){x===b.length?(++g,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(x));break}++g}return this.length-=g,m}},{key:d,value:function(y,m){return u(this,t({},m,{depth:0,customInspect:!1}))}}]),f}(),kZ}var _Z,c1e;function TNe(){if(c1e)return _Z;c1e=1;function e(o,l){var c=this,u=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return u||d?(l?l(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,dr.nextTick(a,this,o)):dr.nextTick(a,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(h){!l&&h?c._writableState?c._writableState.errorEmitted?dr.nextTick(r,c):(c._writableState.errorEmitted=!0,dr.nextTick(t,c,h)):dr.nextTick(t,c,h):l?(dr.nextTick(r,c),l(h)):dr.nextTick(r,c)}),this)}function t(o,l){a(o,l),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(o,l){o.emit("error",l)}function s(o,l){var c=o._readableState,u=o._writableState;c&&c.autoDestroy||u&&u.autoDestroy?o.destroy(l):o.emit("error",l)}return _Z={destroy:e,undestroy:n,errorOrDestroy:s},_Z}var SZ={},u1e;function Ov(){if(u1e)return SZ;u1e=1;function e(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,l.__proto__=c}var t={};function r(l,c,u){u||(u=Error);function d(f,p,y){return typeof c=="string"?c:c(f,p,y)}var h=function(f){e(p,f);function p(y,m,v){return f.call(this,d(y,m,v))||this}return p}(u);h.prototype.name=u.name,h.prototype.code=l,t[l]=h}function n(l,c){if(Array.isArray(l)){var u=l.length;return l=l.map(function(d){return String(d)}),u>2?"one of ".concat(c," ").concat(l.slice(0,u-1).join(", "),", or ")+l[u-1]:u===2?"one of ".concat(c," ").concat(l[0]," or ").concat(l[1]):"of ".concat(c," ").concat(l[0])}else return"of ".concat(c," ").concat(String(l))}function a(l,c,u){return l.substr(0,c.length)===c}function s(l,c,u){return(u===void 0||u>l.length)&&(u=l.length),l.substring(u-c.length,u)===c}function o(l,c,u){return typeof u!="number"&&(u=0),u+c.length>l.length?!1:l.indexOf(c,u)!==-1}return r("ERR_INVALID_OPT_VALUE",function(l,c){return'The value "'+c+'" is invalid for option "'+l+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(l,c,u){var d;typeof c=="string"&&a(c,"not ")?(d="must not be",c=c.replace(/^not /,"")):d="must be";var h;if(s(l," argument"))h="The ".concat(l," ").concat(d," ").concat(n(c,"type"));else{var f=o(l,".")?"property":"argument";h='The "'.concat(l,'" ').concat(f," ").concat(d," ").concat(n(c,"type"))}return h+=". Received type ".concat(typeof u),h},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(l){return"The "+l+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(l){return"Cannot call "+l+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(l){return"Unknown encoding: "+l},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),SZ.codes=t,SZ}var jZ,d1e;
vendor: 4,089 bytes, line 8090
8090function ANe(){if(d1e)return jZ;d1e=1;var e=Ov().codes.ERR_INVALID_OPT_VALUE;function t(n,a,s){return n.highWaterMark!=null?n.highWaterMark:a?n[s]:null}function r(n,a,s,o){var l=t(a,o,s);if(l!=null){if(!(isFinite(l)&&Math.floor(l)===l)||l<0){var c=o?s:"highWaterMark";throw new e(c,l)}return Math.floor(l)}return n.objectMode?16:16*1024}return jZ={getHighWaterMark:r},jZ}var EZ,h1e;function ggt(){if(h1e)return EZ;h1e=1,EZ=e;function e(r,n){if(t("noDeprecation"))return r;var a=!1;function s(){if(!a){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),a=!0}return r.apply(this,arguments)}return s}function t(r){try{if(!ec.localStorage)return!1}catch{return!1}var n=ec.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return EZ}var CZ,f1e;function MNe(){if(f1e)return CZ;f1e=1,CZ=C;function e(ae){var D=this;this.next=null,this.entry=null,this.finish=function(){re(D,ae)}}var t;C.WritableState=j;var r={deprecate:ggt()},n=vNe(),a=pG().Buffer,s=ec.Uint8Array||function(){};function o(ae){return a.from(ae)}function l(ae){return a.isBuffer(ae)||ae instanceof s}var c=TNe(),u=ANe(),d=u.getHighWaterMark,h=Ov().codes,f=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,m=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,g=h.ERR_STREAM_NULL_VALUES,b=h.ERR_STREAM_WRITE_AFTER_END,x=h.ERR_UNKNOWN_ENCODING,_=c.errorOrDestroy;jh()(C,n);function w(){}function j(ae,D,U){t=t||T2(),ae=ae||{},typeof U!="boolean"&&(U=D instanceof t),this.objectMode=!!ae.objectMode,U&&(this.objectMode=this.objectMode||!!ae.writableObjectMode),this.highWaterMark=d(this,ae,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var se=ae.decodeStrings===!1;this.decodeStrings=!se,this.defaultEncoding=ae.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){Y(D,te)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=ae.emitClose!==!1,this.autoDestroy=!!ae.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}j.prototype.getBuffer=function(){for(var D=this.bufferedRequest,U=[];D;)U.push(D),D=D.next;return U},function(){try{Object.defineProperty(j.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var E;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(D){return E.call(this,D)?!0:this!==C?!1:D&&D._writableState instanceof j}})):E=function(D){return D instanceof this};function C(ae){t=t||T2();var D=this instanceof t;if(!D&&!E.call(C,this))return new C(ae);this._writableState=new j(ae,this,D),this.writable=!0,ae&&(typeof ae.write=="function"&&(this._write=ae.write),typeof ae.writev=="function"&&(this._writev=ae.writev),typeof ae.destroy=="function"&&(this._destroy=ae.destroy),typeof ae.final=="function"&&(this._final=ae.final)),n.call(this)}C.prototype.pipe=function(){_(this,new m)};function N(ae,D){var U=new b;_(ae,U),dr.nextTick(D,U)}function A(ae,D,U,se){var te;return U===null?te=new g:typeof U!="string"&&!D.objectMode&&(te=new f("chunk",["string","Buffer"],U)),te?(_(ae,te),dr.nextTick(se,te),!1):!0}C.prototype.write=function(ae,D,U){var se=this._writableState,te=!1,Q=!se.objectMode&&l(ae);return Q&&!a.isBuffer(ae)&&(ae=o(ae)),typeof D=="function"&&(U=D,D=null),Q?D="buffer":D||(D=se.defaultEncoding),typeof U!="function"&&(U=w),se.ending?N(this,U):(Q||A(this,se,ae,U))&&(se.pendingcb++,te=T(this,se,Q,ae,D,U)),te},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var ae=this._writableState;ae.corked&&(ae.corked--,!ae.writing&&!ae.corked&&!ae.bufferProcessing&&ae.bufferedRequest&&Z(this,ae))}
vendor: 8,550 bytes, line 8090
8090,C.prototype.setDefaultEncoding=function(D){if(typeof D=="string"&&(D=D.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((D+"").toLowerCase())>-1))throw new x(D);return this._writableState.defaultEncoding=D,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function $(ae,D,U){return!ae.objectMode&&ae.decodeStrings!==!1&&typeof D=="string"&&(D=a.from(D,U)),D}Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(ae,D,U,se,te,Q){if(!U){var K=$(D,se,te);se!==K&&(U=!0,te="buffer",se=K)}var ue=D.objectMode?1:se.length;D.length+=ue;var B=D.length<D.highWaterMark;if(B||(D.needDrain=!0),D.writing||D.corked){var pe=D.lastBufferedRequest;D.lastBufferedRequest={chunk:se,encoding:te,isBuf:U,callback:Q,next:null},pe?pe.next=D.lastBufferedRequest:D.bufferedRequest=D.lastBufferedRequest,D.bufferedRequestCount+=1}else F(ae,D,!1,ue,se,te,Q);return B}function F(ae,D,U,se,te,Q,K){D.writelen=se,D.writecb=K,D.writing=!0,D.sync=!0,D.destroyed?D.onwrite(new v("write")):U?ae._writev(te,D.onwrite):ae._write(te,Q,D.onwrite),D.sync=!1}function M(ae,D,U,se,te){--D.pendingcb,U?(dr.nextTick(te,se),dr.nextTick(R,ae,D),ae._writableState.errorEmitted=!0,_(ae,se)):(te(se),ae._writableState.errorEmitted=!0,_(ae,se),R(ae,D))}function z(ae){ae.writing=!1,ae.writecb=null,ae.length-=ae.writelen,ae.writelen=0}function Y(ae,D){var U=ae._writableState,se=U.sync,te=U.writecb;if(typeof te!="function")throw new y;if(z(U),D)M(ae,U,se,D,te);else{var Q=V(U)||ae.destroyed;!Q&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&Z(ae,U),se?dr.nextTick(W,ae,U,Q,te):W(ae,U,Q,te)}}function W(ae,D,U,se){U||ee(ae,D),D.pendingcb--,se(),R(ae,D)}function ee(ae,D){D.length===0&&D.needDrain&&(D.needDrain=!1,ae.emit("drain"))}function Z(ae,D){D.bufferProcessing=!0;var U=D.bufferedRequest;if(ae._writev&&U&&U.next){var se=D.bufferedRequestCount,te=new Array(se),Q=D.corkedRequestsFree;Q.entry=U;for(var K=0,ue=!0;U;)te[K]=U,U.isBuf||(ue=!1),U=U.next,K+=1;te.allBuffers=ue,F(ae,D,!0,D.length,te,"",Q.finish),D.pendingcb++,D.lastBufferedRequest=null,Q.next?(D.corkedRequestsFree=Q.next,Q.next=null):D.corkedRequestsFree=new e(D),D.bufferedRequestCount=0}else{for(;U;){var B=U.chunk,pe=U.encoding,G=U.callback,I=D.objectMode?1:B.length;if(F(ae,D,!1,I,B,pe,G),U=U.next,D.bufferedRequestCount--,D.writing)break}U===null&&(D.lastBufferedRequest=null)}D.bufferedRequest=U,D.bufferProcessing=!1}C.prototype._write=function(ae,D,U){U(new p("_write()"))},C.prototype._writev=null,C.prototype.end=function(ae,D,U){var se=this._writableState;return typeof ae=="function"?(U=ae,ae=null,D=null):typeof D=="function"&&(U=D,D=null),ae!=null&&this.write(ae,D),se.corked&&(se.corked=1,this.uncork()),se.ending||H(this,se,U),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function V(ae){return ae.ending&&ae.length===0&&ae.bufferedRequest===null&&!ae.finished&&!ae.writing}function ne(ae,D){ae._final(function(U){D.pendingcb--,U&&_(ae,U),D.prefinished=!0,ae.emit("prefinish"),R(ae,D)})}function P(ae,D){!D.prefinished&&!D.finalCalled&&(typeof ae._final=="function"&&!D.destroyed?(D.pendingcb++,D.finalCalled=!0,dr.nextTick(ne,ae,D)):(D.prefinished=!0,ae.emit("prefinish")))}function R(ae,D){var U=V(D);if(U&&(P(ae,D),D.pendingcb===0&&(D.finished=!0,ae.emit("finish"),D.autoDestroy))){var se=ae._readableState;(!se||se.autoDestroy&&se.endEmitted)&&ae.destroy()}return U}function H(ae,D,U){D.ending=!0,R(ae,D),U&&(D.finished?dr.nextTick(U):ae.once("finish",U)),D.ended=!0,ae.writable=!1}function re(ae,D,U){var se=ae.entry;for(ae.entry=null;se;){var te=se.callback;D.pendingcb--,te(U),se=se.next}D.corkedRequestsFree.next=ae}return Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(D){this._writableState&&(this._writableState.destroyed=D)}}),C.prototype.destroy=c.destroy,C.prototype._undestroy=c.undestroy,C.prototype._destroy=function(ae,D){D(ae)},CZ}var NZ,p1e;function T2(){if(p1e)return NZ;p1e=1;var e=Object.keys||function(u){var d=[];for(var h in u)d.push(h);return d};NZ=o;var t=INe(),r=MNe();jh()(o,t);for(var n=e(r.prototype),a=0;a<n.length;a++){var s=n[a];o.prototype[s]||(o.prototype[s]=r.prototype[s])}function o(u){if(!(this instanceof o))return new o(u);t.call(this,u),r.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||dr.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),NZ}var TZ={},q3={exports:{}},m1e;function ygt(){return m1e||(m1e=1,function(e,t){var r=pG(),n=r.Buffer;function a(o,l){for(var c in o)l[c]=o[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s);function s(o,l,c){return n(o,l,c)}a(n,s),s.from=function(o,l,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,l,c)},s.alloc=function(o,l,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var u=n(o);return l!==void 0?typeof c=="string"?u.fill(l,c):u.fill(l):u.fill(0),u},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}}(q3,q3.exports)),q3.exports}var g1e;function Kte(){if(g1e)return TZ;g1e=1;var e=ygt().Buffer,t=e.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(g){if(!g)return"utf8";for(var b;;)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(b)return;g=(""+g).toLowerCase(),b=!0}}function n(g){var b=r(g);if(typeof b!="string"&&(e.isEncoding===t||!t(g)))throw new Error("Unknown encoding: "+g);return b||g}TZ.StringDecoder=a;function a(g){this.encoding=n(g);var b;switch(this.encoding){case"utf16le":this.text=h,this.end=f,b=4;break;case"utf8":this.fillLast=c,b=4;break;case"base64":this.text=p,this.end=y,b=3;break;default:this.write=m,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(b)}a.prototype.write=function(g){if(g.length===0)return"";var b,x;if(this.lastNeed){if(b=this.fillLast(g),b===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<g.length?b?b+this.text(g,x):this.text(g,x):b||""},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function s(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function o(g,b,x){var _=b.length-1;if(_<x)return 0;var w=s(b[_]);return w>=0?(w>0&&(g.lastNeed=w-1),w):--_<x||w===-2?0:(w=s(b[_]),w>=0?(w>0&&(g.lastNeed=w-2),w):--_<x||w===-2?0:(w=s(b[_]),w>=0?(w>0&&(w===2?w=0:g.lastNeed=w-3),w):0))}function l(g,b,x){if((b[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&b.length>2&&(b[2]&192)!==128)return g.lastNeed=2,"�"}}function c(g){var b=this.lastTotal-this.lastNeed,x=l(this,g);
vendor: 9,588 bytes, line 8090
8090if(x!==void 0)return x;if(this.lastNeed<=g.length)return g.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,b,0,g.length),this.lastNeed-=g.length}function u(g,b){var x=o(this,g,b);if(!this.lastNeed)return g.toString("utf8",b);this.lastTotal=x;var _=g.length-(x-this.lastNeed);return g.copy(this.lastChar,0,_),g.toString("utf8",b,_)}function d(g){var b=g&&g.length?this.write(g):"";return this.lastNeed?b+"�":b}function h(g,b){if((g.length-b)%2===0){var x=g.toString("utf16le",b);if(x){var _=x.charCodeAt(x.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",b,g.length-1)}function f(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,x)}return b}function p(g,b){var x=(g.length-b)%3;return x===0?g.toString("base64",b):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",b,g.length-x))}function y(g){var b=g&&g.length?this.write(g):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function m(g){return g.toString(this.encoding)}function v(g){return g&&g.length?this.write(g):""}return TZ}var AZ,y1e;function Xse(){if(y1e)return AZ;y1e=1;var e=Ov().codes.ERR_STREAM_PREMATURE_CLOSE;function t(s){var o=!1;return function(){if(!o){o=!0;for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s.apply(this,c)}}}function r(){}function n(s){return s.setHeader&&typeof s.abort=="function"}function a(s,o,l){if(typeof o=="function")return a(s,null,o);o||(o={}),l=t(l||r);var c=o.readable||o.readable!==!1&&s.readable,u=o.writable||o.writable!==!1&&s.writable,d=function(){s.writable||f()},h=s._writableState&&s._writableState.finished,f=function(){u=!1,h=!0,c||l.call(s)},p=s._readableState&&s._readableState.endEmitted,y=function(){c=!1,p=!0,u||l.call(s)},m=function(x){l.call(s,x)},v=function(){var x;if(c&&!p)return(!s._readableState||!s._readableState.ended)&&(x=new e),l.call(s,x);if(u&&!h)return(!s._writableState||!s._writableState.ended)&&(x=new e),l.call(s,x)},g=function(){s.req.on("finish",f)};return n(s)?(s.on("complete",f),s.on("abort",v),s.req?g():s.on("request",g)):u&&!s._writableState&&(s.on("end",d),s.on("close",d)),s.on("end",y),s.on("finish",f),o.error!==!1&&s.on("error",m),s.on("close",v),function(){s.removeListener("complete",f),s.removeListener("abort",v),s.removeListener("request",g),s.req&&s.req.removeListener("finish",f),s.removeListener("end",d),s.removeListener("close",d),s.removeListener("finish",f),s.removeListener("end",y),s.removeListener("error",m),s.removeListener("close",v)}}return AZ=a,AZ}var MZ,v1e;function vgt(){if(v1e)return MZ;v1e=1;var e;function t(g,b,x){return b in g?Object.defineProperty(g,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):g[b]=x,g}var r=Xse(),n=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),o=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),u=Symbol("stream");function d(g,b){return{value:g,done:b}}function h(g){var b=g[n];if(b!==null){var x=g[u].read();x!==null&&(g[l]=null,g[n]=null,g[a]=null,b(d(x,!1)))}}function f(g){dr.nextTick(h,g)}function p(g,b){return function(x,_){g.then(function(){if(b[o]){x(d(void 0,!0));return}b[c](x,_)},_)}}var y=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((e={get stream(){return this[u]},next:function(){var b=this,x=this[s];if(x!==null)return Promise.reject(x);if(this[o])return Promise.resolve(d(void 0,!0));if(this[u].destroyed)return new Promise(function(E,C){dr.nextTick(function(){b[s]?C(b[s]):E(d(void 0,!0))})});var _=this[l],w;if(_)w=new Promise(p(_,this));else{var j=this[u].read();if(j!==null)return Promise.resolve(d(j,!1));w=new Promise(this[c])}return this[l]=w,w}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var b=this;return new Promise(function(x,_){b[u].destroy(null,function(w){if(w){_(w);return}x(d(void 0,!0))})})}),e),y),v=function(b){var x,_=Object.create(m,(x={},t(x,u,{value:b,writable:!0}),t(x,n,{value:null,writable:!0}),t(x,a,{value:null,writable:!0}),t(x,s,{value:null,writable:!0}),t(x,o,{value:b._readableState.endEmitted,writable:!0}),t(x,c,{value:function(j,E){var C=_[u].read();C?(_[l]=null,_[n]=null,_[a]=null,j(d(C,!1))):(_[n]=j,_[a]=E)},writable:!0}),x));return _[l]=null,r(b,function(w){if(w&&w.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=_[a];j!==null&&(_[l]=null,_[n]=null,_[a]=null,j(w)),_[s]=w;return}var E=_[n];E!==null&&(_[l]=null,_[n]=null,_[a]=null,E(d(void 0,!0))),_[o]=!0}),b.on("readable",f.bind(null,_)),_};return MZ=v,MZ}var IZ,x1e;function xgt(){return x1e||(x1e=1,IZ=function(){throw new Error("Readable.from is not available in the browser")}),IZ}var PZ,b1e;function INe(){if(b1e)return PZ;b1e=1,PZ=N;var e;N.ReadableState=C,Wse().EventEmitter;var t=function(K,ue){return K.listeners(ue).length},r=vNe(),n=pG().Buffer,a=ec.Uint8Array||function(){};function s(Q){return n.from(Q)}function o(Q){return n.isBuffer(Q)||Q instanceof a}var l=NNe(),c;l&&l.debuglog?c=l.debuglog("stream"):c=function(){};var u=mgt(),d=TNe(),h=ANe(),f=h.getHighWaterMark,p=Ov().codes,y=p.ERR_INVALID_ARG_TYPE,m=p.ERR_STREAM_PUSH_AFTER_EOF,v=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,b,x,_;jh()(N,r);var w=d.errorOrDestroy,j=["error","close","destroy","pause","resume"];function E(Q,K,ue){if(typeof Q.prependListener=="function")return Q.prependListener(K,ue);!Q._events||!Q._events[K]?Q.on(K,ue):Array.isArray(Q._events[K])?Q._events[K].unshift(ue):Q._events[K]=[ue,Q._events[K]]}function C(Q,K,ue){e=e||T2(),Q=Q||{},typeof ue!="boolean"&&(ue=K instanceof e),this.objectMode=!!Q.objectMode,ue&&(this.objectMode=this.objectMode||!!Q.readableObjectMode),this.highWaterMark=f(this,Q,"readableHighWaterMark",ue),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=Q.emitClose!==!1,this.autoDestroy=!!Q.autoDestroy,this.destroyed=!1,this.defaultEncoding=Q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Q.encoding&&(b||(b=Kte().StringDecoder),this.decoder=new b(Q.encoding),this.encoding=Q.encoding)}function N(Q){if(e=e||T2(),!(this instanceof N))return new N(Q);var K=this instanceof e;this._readableState=new C(Q,this,K),this.readable=!0,Q&&(typeof Q.read=="function"&&(this._read=Q.read),typeof Q.destroy=="function"&&(this._destroy=Q.destroy)),r.call(this)}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(K){this._readableState&&(this._readableState.destroyed=K)}}),N.prototype.destroy=d.destroy,N.prototype._undestroy=d.undestroy,N.prototype._destroy=function(Q,K){K(Q)},N.prototype.push=function(Q,K){var ue=this._readableState,B;return ue.objectMode?B=!0:typeof Q=="string"&&(K=K||ue.defaultEncoding,K!==ue.encoding&&(Q=n.from(Q,K),K=""),B=!0),A(this,Q,K,!1,B)},N.prototype.unshift=function(Q){return A(this,Q,null,!0,!1)};function A(Q,K,ue,B,pe){c("readableAddChunk",K);var G=Q._readableState;if(K===null)G.reading=!1,Y(Q,G);else{var I;if(pe||(I=T(G,K)),I)w(Q,I);else if(G.objectMode||K&&K.length>0)if(typeof K!="string"&&!G.objectMode&&Object.getPrototypeOf(K)!==n.prototype&&(K=s(K)),B)G.endEmitted?w(Q,new g):$(Q,G,K,!0);else if(G.ended)w(Q,new m);else{if(G.destroyed)return!1;G.reading=!1,G.decoder&&!ue?(K=G.decoder.write(K),G.objectMode||K.length!==0?$(Q,G,K,!1):Z(Q,G)):$(Q,G,K,!1)}else B||(G.reading=!1,Z(Q,G))}return!G.ended&&(G.length<G.highWaterMark||G.length===0)}function $(Q,K,ue,B){K.flowing&&K.length===0&&!K.sync?(K.awaitDrain=0,Q.emit("data",ue)):(K.length+=K.objectMode?1:ue.length,B?K.buffer.unshift(ue):K.buffer.push(ue),K.needReadable&&W(Q)),Z(Q,K)}function T(Q,K){var ue;return!o(K)&&typeof K!="string"&&K!==void 0&&!Q.objectMode&&(ue=new y("chunk",["string","Buffer","Uint8Array"],K)),ue}N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(Q){b||(b=Kte().StringDecoder);var K=new b(Q);this._readableState.decoder=K,this._readableState.encoding=this._readableState.decoder.encoding;for(var ue=this._readableState.buffer.head,B="";ue!==null;)B+=K.write(ue.data),ue=ue.next;return this._readableState.buffer.clear(),B!==""&&this._readableState.buffer.push(B),this._readableState.length=B.length,this};var F=1073741824;function M(Q){return Q>=F?Q=F:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}function z(Q,K){return Q<=0||K.length===0&&K.ended?0:K.objectMode?1:Q!==Q?K.flowing&&K.length?K.buffer.head.data.length:K.length:(Q>K.highWaterMark&&(K.highWaterMark=M(Q)),Q<=K.length?Q:K.ended?K.length:(K.needReadable=!0,0))}N.prototype.read=function(Q){c("read",Q),Q=parseInt(Q,10);var K=this._readableState,ue=Q;if(Q!==0&&(K.emittedReadable=!1),Q===0&&K.needReadable&&((K.highWaterMark!==0?K.length>=K.highWaterMark:K.length>0)||K.ended))return c("read: emitReadable",K.length,K.ended),K.length===0&&K.ended?U(this):W(this),null;if(Q=z(Q,K),Q===0&&K.ended)return K.length===0&&U(this),null;var B=K.needReadable;c("need readable",B),(K.length===0||K.length-Q<K.highWaterMark)&&
vendor: 4,882 bytes, line 8090
8090(B=!0,c("length less than watermark",B)),K.ended||K.reading?(B=!1,c("reading or ended",B)):B&&(c("do read"),K.reading=!0,K.sync=!0,K.length===0&&(K.needReadable=!0),this._read(K.highWaterMark),K.sync=!1,K.reading||(Q=z(ue,K)));var pe;return Q>0?pe=D(Q,K):pe=null,pe===null?(K.needReadable=K.length<=K.highWaterMark,Q=0):(K.length-=Q,K.awaitDrain=0),K.length===0&&(K.ended||(K.needReadable=!0),ue!==Q&&K.ended&&U(this)),pe!==null&&this.emit("data",pe),pe};function Y(Q,K){if(c("onEofChunk"),!K.ended){if(K.decoder){var ue=K.decoder.end();ue&&ue.length&&(K.buffer.push(ue),K.length+=K.objectMode?1:ue.length)}K.ended=!0,K.sync?W(Q):(K.needReadable=!1,K.emittedReadable||(K.emittedReadable=!0,ee(Q)))}}function W(Q){var K=Q._readableState;c("emitReadable",K.needReadable,K.emittedReadable),K.needReadable=!1,K.emittedReadable||(c("emitReadable",K.flowing),K.emittedReadable=!0,dr.nextTick(ee,Q))}function ee(Q){var K=Q._readableState;c("emitReadable_",K.destroyed,K.length,K.ended),!K.destroyed&&(K.length||K.ended)&&(Q.emit("readable"),K.emittedReadable=!1),K.needReadable=!K.flowing&&!K.ended&&K.length<=K.highWaterMark,ae(Q)}function Z(Q,K){K.readingMore||(K.readingMore=!0,dr.nextTick(V,Q,K))}function V(Q,K){for(;!K.reading&&!K.ended&&(K.length<K.highWaterMark||K.flowing&&K.length===0);){var ue=K.length;if(c("maybeReadMore read 0"),Q.read(0),ue===K.length)break}K.readingMore=!1}N.prototype._read=function(Q){w(this,new v("_read()"))},N.prototype.pipe=function(Q,K){var ue=this,B=this._readableState;switch(B.pipesCount){case 0:B.pipes=Q;break;case 1:B.pipes=[B.pipes,Q];break;default:B.pipes.push(Q);break}B.pipesCount+=1,c("pipe count=%d opts=%j",B.pipesCount,K);var pe=(!K||K.end!==!1)&&Q!==dr.stdout&&Q!==dr.stderr,G=pe?L:de;B.endEmitted?dr.nextTick(G):ue.once("end",G),Q.on("unpipe",I);function I(ye,_e){c("onunpipe"),ye===ue&&_e&&_e.hasUnpiped===!1&&(_e.hasUnpiped=!0,ie())}function L(){c("onend"),Q.end()}var q=ne(ue);Q.on("drain",q);var X=!1;function ie(){c("cleanup"),Q.removeListener("close",ve),Q.removeListener("finish",ge),Q.removeListener("drain",q),Q.removeListener("error",fe),Q.removeListener("unpipe",I),ue.removeListener("end",L),ue.removeListener("end",de),ue.removeListener("data",J),X=!0,B.awaitDrain&&(!Q._writableState||Q._writableState.needDrain)&&q()}ue.on("data",J);function J(ye){c("ondata");var _e=Q.write(ye);c("dest.write",_e),_e===!1&&((B.pipesCount===1&&B.pipes===Q||B.pipesCount>1&&te(B.pipes,Q)!==-1)&&!X&&(c("false write response, pause",B.awaitDrain),B.awaitDrain++),ue.pause())}function fe(ye){c("onerror",ye),de(),Q.removeListener("error",fe),t(Q,"error")===0&&w(Q,ye)}E(Q,"error",fe);function ve(){Q.removeListener("finish",ge),de()}Q.once("close",ve);function ge(){c("onfinish"),Q.removeListener("close",ve),de()}Q.once("finish",ge);function de(){c("unpipe"),ue.unpipe(Q)}return Q.emit("pipe",ue),B.flowing||(c("pipe resume"),ue.resume()),Q};function ne(Q){return function(){var ue=Q._readableState;c("pipeOnDrain",ue.awaitDrain),ue.awaitDrain&&ue.awaitDrain--,ue.awaitDrain===0&&t(Q,"data")&&(ue.flowing=!0,ae(Q))}}N.prototype.unpipe=function(Q){var K=this._readableState,ue={hasUnpiped:!1};if(K.pipesCount===0)return this;if(K.pipesCount===1)return Q&&Q!==K.pipes?this:(Q||(Q=K.pipes),K.pipes=null,K.pipesCount=0,K.flowing=!1,Q&&Q.emit("unpipe",this,ue),this);if(!Q){var B=K.pipes,pe=K.pipesCount;K.pipes=null,K.pipesCount=0,K.flowing=!1;for(var G=0;G<pe;G++)B[G].emit("unpipe",this,{hasUnpiped:!1});return this}var I=te(K.pipes,Q);return I===-1?this:(K.pipes.splice(I,1),K.pipesCount-=1,K.pipesCount===1&&(K.pipes=K.pipes[0]),Q.emit("unpipe",this,ue),this)},N.prototype.on=function(Q,K){var ue=r.prototype.on.call(this,Q,K),B=this._readableState;return Q==="data"?(B.readableListening=this.listenerCount("readable")>0,B.flowing!==!1&&this.resume()):Q==="readable"&&!B.endEmitted&&!B.readableListening&&(B.readableListening=B.needReadable=!0,B.flowing=!1,B.emittedReadable=!1,c("on readable",B.length,B.reading),B.length?W(this):B.reading||dr.nextTick(R,this)),ue},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(Q,K){var ue=r.prototype.removeListener.call(this,Q,K);return Q==="readable"&&dr.nextTick(P,this),ue},N.prototype.removeAllListeners=function(Q){var K=r.prototype.removeAllListeners.apply(this,arguments);return(Q==="readable"||Q===void 0)&&dr.nextTick(P,this),K};function P(Q){var K=Q._readableState;K.readableListening=Q.listenerCount("readable")>0,K.resumeScheduled&&!K.paused?K.flowing=!0:Q.listenerCount("data")>0&&Q.resume()}function R(Q){c("readable nexttick read 0"),Q.read(0)}N.prototype.resume=function(){var Q=this._readableState;return Q.flowing||(c("resume"),Q.flowing=!Q.readableListening,H(this,Q)),Q.paused=!1,this};function H(Q,K){K.resumeScheduled||(K.resumeScheduled=!0,dr.nextTick(re,Q,K))}function re(Q,K){c("resume",K.reading),K.reading||Q.read(0),K.resumeScheduled=!1,Q.emit
vendor: 4,668 bytes, line 8090
8090("resume"),ae(Q),K.flowing&&!K.reading&&Q.read(0)}N.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ae(Q){var K=Q._readableState;for(c("flow",K.flowing);K.flowing&&Q.read()!==null;);}N.prototype.wrap=function(Q){var K=this,ue=this._readableState,B=!1;Q.on("end",function(){if(c("wrapped end"),ue.decoder&&!ue.ended){var I=ue.decoder.end();I&&I.length&&K.push(I)}K.push(null)}),Q.on("data",function(I){if(c("wrapped data"),ue.decoder&&(I=ue.decoder.write(I)),!(ue.objectMode&&I==null)&&!(!ue.objectMode&&(!I||!I.length))){var L=K.push(I);L||(B=!0,Q.pause())}});for(var pe in Q)this[pe]===void 0&&typeof Q[pe]=="function"&&(this[pe]=function(L){return function(){return Q[L].apply(Q,arguments)}}(pe));for(var G=0;G<j.length;G++)Q.on(j[G],this.emit.bind(this,j[G]));return this._read=function(I){c("wrapped _read",I),B&&(B=!1,Q.resume())},this},typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return x===void 0&&(x=vgt()),x(this)}),Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(K){this._readableState&&(this._readableState.flowing=K)}}),N._fromList=D,Object.defineProperty(N.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function D(Q,K){if(K.length===0)return null;var ue;return K.objectMode?ue=K.buffer.shift():!Q||Q>=K.length?(K.decoder?ue=K.buffer.join(""):K.buffer.length===1?ue=K.buffer.first():ue=K.buffer.concat(K.length),K.buffer.clear()):ue=K.buffer.consume(Q,K.decoder),ue}function U(Q){var K=Q._readableState;c("endReadable",K.endEmitted),K.endEmitted||(K.ended=!0,dr.nextTick(se,K,Q))}function se(Q,K){if(c("endReadableNT",Q.endEmitted,Q.length),!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,K.readable=!1,K.emit("end"),Q.autoDestroy)){var ue=K._writableState;(!ue||ue.autoDestroy&&ue.finished)&&K.destroy()}}typeof Symbol=="function"&&(N.from=function(Q,K){return _===void 0&&(_=xgt()),_(N,Q,K)});function te(Q,K){for(var ue=0,B=Q.length;ue<B;ue++)if(Q[ue]===K)return ue;return-1}return PZ}var LZ,w1e;function PNe(){if(w1e)return LZ;w1e=1,LZ=l;var e=Ov().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,s=T2();jh()(l,s);function o(d,h){var f=this._transformState;f.transforming=!1;var p=f.writecb;if(p===null)return this.emit("error",new r);f.writechunk=null,f.writecb=null,h!=null&&this.push(h),p(d);var y=this._readableState;y.reading=!1,(y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}function l(d){if(!(this instanceof l))return new l(d);s.call(this,d),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",c)}function c(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(h,f){u(d,h,f)}):u(this,null,null)}l.prototype.push=function(d,h){return this._transformState.needTransform=!1,s.prototype.push.call(this,d,h)},l.prototype._transform=function(d,h,f){f(new t("_transform()"))},l.prototype._write=function(d,h,f){var p=this._transformState;if(p.writecb=f,p.writechunk=d,p.writeencoding=h,!p.transforming){var y=this._readableState;(p.needTransform||y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}},l.prototype._read=function(d){var h=this._transformState;h.writechunk!==null&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},l.prototype._destroy=function(d,h){s.prototype._destroy.call(this,d,function(f){h(f)})};function u(d,h,f){if(h)return d.emit("error",h);if(f!=null&&d.push(f),d._writableState.length)throw new a;if(d._transformState.transforming)throw new n;return d.push(null)}return LZ}var OZ,k1e;function bgt(){if(k1e)return OZ;k1e=1,OZ=t;var e=PNe();jh()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,a){a(null,r)},OZ}var RZ,_1e;
8090function wgt(){if(_1e)return RZ;_1e=1;var e;function t(f){var p=!1;return function(){p||(p=!0,f.apply(void 0,arguments))}}var r=Ov().codes,n=r.ERR_MISSING_ARGS,a=r.ERR_STREAM_DESTROYED;function s(f){if(f)throw f}function o(f){return f.setHeader&&typeof f.abort=="function"}function l(f,p,y,m){m=t(m);var v=!1;f.on("close",function(){v=!0}),e===void 0&&(e=Xse()),e(f,{readable:p,writable:y},function(b){if(b)return m(b);v=!0,m()});var g=!1;return function(b){if(!v&&!g){if(g=!0,o(f))return f.abort();if(typeof f.destroy=="function")return f.destroy();m(b||new a("pipe"))}}}function c(f){f()}function u(f,p){return f.pipe(p)}function d(f){return!f.length||typeof f[f.length-1]!="function"?s:f.pop()}function h(){for(var f=arguments.length,p=new Array(f),y=0;y<f;y++)p[y]=arguments[y];var m=d(p);if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new n("streams");var v,g=p.map(function(b,x){var _=x<p.length-1,w=x>0;return l(b,_,w,function(j){v||(v=j),j&&g.forEach(c),!_&&(g.forEach(c),m(v))})});return p.reduce(u)}return RZ=h,RZ}var DZ,S1e;function Zse(){if(S1e)return DZ;S1e=1,DZ=r;var e=Wse().EventEmitter,t=jh();t(r,e),r.Readable=INe(),r.Writable=MNe(),r.Duplex=T2(),r.Transform=PNe(),r.PassThrough=bgt(),r.finished=Xse(),r.pipeline=wgt(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,a){var s=this;function o(p){n.writable&&n.write(p)===!1&&s.pause&&s.pause()}s.on("data",o);function l(){s.readable&&s.resume&&s.resume()}n.on("drain",l),!n._isStdio&&(!a||a.end!==!1)&&(s.on("end",u),s.on("close",d));var c=!1;function u(){c||(c=!0,n.end())}function d(){c||(c=!0,typeof n.destroy=="function"&&n.destroy())}function h(p){if(f(),e.listenerCount(this,"error")===0)throw p}s.on("error",h),n.on("error",h);function f(){s.removeListener("data",o),n.removeListener("drain",l),s.removeListener("end",u),s.removeListener("close",d),s.removeListener("error",h),n.removeListener("error",h),s.removeListener("end",f),s.removeListener("close",f),n.removeListener("close",f)}return s.on("end",f),s.on("close",f),n.on("close",f),n.emit("pipe",s),n},DZ}var j1e;function kgt(){return j1e||(j1e=1,function(e){(function(t){t.parser=function(D,U){return new n(D,U)},t.SAXParser=n,t.SAXStream=d,t.createStream=u,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(D,U){if(!(this instanceof n))return new n(D,U);var se=this;s(se),se.q=se.c="",se.bufferCheckPosition=t.MAX_BUFFER_LENGTH,se.opt=U||{},se.opt.lowercase=se.opt.lowercase||se.opt.lowercasetags,se.looseCase=se.opt.lowercase?"toLowerCase":"toUpperCase",se.tags=[],se.closed=se.closedRoot=se.sawRoot=!1,se.tag=se.error=null,se.strict=!!D,se.noscript=!!(D||se.opt.noscript),se.state=N.BEGIN,se.strictEntities=se.opt.strictEntities,se.ENTITIES=se.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),se.attribList=[],se.opt.xmlns&&(se.ns=Object.create(m)),se.trackPosition=se.opt.position!==!1,se.trackPosition&&(se.position=se.line=se.column=0),$(se,"onready")}Object.create||(Object.create=function(D){function U(){}U.prototype=D;var se=new U;return se}),Object.keys||(Object.keys=function(D){var U=[];for(var se in D)D.hasOwnProperty(se)&&U.push(se);return U});function a(D){for(var U=Math.max(t.MAX_BUFFER_LENGTH,10),se=0,te=0,Q=r.length;te<Q;te++){var K=D[r[te]].length;if(K>U)switch(r[te]){case"textNode":F(D);break;case"cdata":T(D,"oncdata",D.cdata),D.cdata="";break;case"script":T(D,"onscript",D.script),D.script="";break;default:z(D,"Max buffer length exceeded: "+r[te])}se=Math.max(se,K)}var ue=t.MAX_BUFFER_LENGTH-se;D.bufferCheckPosition=ue+D.position}function s(D){for(var U=0,se=r.length;U<se;U++)D[r[U]]=""}function o(D){F(D),D.cdata!==""&&(T(D,"oncdata",D.cdata),D.cdata=""),D.script!==""&&(T(D,"onscript",D.script),D.script="")}n.prototype={end:function(){Y(this)},write:ae,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){o(this)}};var l;try{l=Zse().Stream}catch{l=function(){}}var c=t.EVENTS.filter(function(D){return D!=="error"&&D!=="end"});function u(D,U){return new d(D,U)}
vendor: 29,873 bytes, lines 8090-8100
8090function d(D,U){if(!(this instanceof d))return new d(D,U);l.apply(this),this._parser=new n(D,U),this.writable=!0,this.readable=!0;var se=this;this._parser.onend=function(){se.emit("end")},this._parser.onerror=function(te){se.emit("error",te),se._parser.error=null},this._decoder=null,c.forEach(function(te){Object.defineProperty(se,"on"+te,{get:function(){return se._parser["on"+te]},set:function(Q){if(!Q)return se.removeAllListeners(te),se._parser["on"+te]=Q,Q;se.on(te,Q)},enumerable:!0,configurable:!1})})}d.prototype=Object.create(l.prototype,{constructor:{value:d}}),d.prototype.write=function(D){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(D)){if(!this._decoder){var U=Kte().StringDecoder;this._decoder=new U("utf8")}D=this._decoder.write(D)}return this._parser.write(D.toString()),this.emit("data",D),!0},d.prototype.end=function(D){return D&&D.length&&this.write(D),this._parser.end(),!0},d.prototype.on=function(D,U){var se=this;return!se._parser["on"+D]&&c.indexOf(D)!==-1&&(se._parser["on"+D]=function(){var te=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);te.splice(0,0,D),se.emit.apply(se,te)}),l.prototype.on.call(se,D,U)};var h="[CDATA[",f="DOCTYPE",p="http://www.w3.org/XML/1998/namespace",y="http://www.w3.org/2000/xmlns/",m={xml:p,xmlns:y},v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,x=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function _(D){return D===" "||D===` 8091`||D==="\r"||D===" "}function w(D){return D==='"'||D==="'"}function j(D){return D===">"||_(D)}function E(D,U){return D.test(U)}function C(D,U){return!E(D,U)}var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(D){var U=t.ENTITIES[D],se=typeof U=="number"?String.fromCharCode(U):U;t.ENTITIES[D]=se});for(var A in t.STATE)t.STATE[t.STATE[A]]=A;N=t.STATE;function $(D,U,se){D[U]&&D[U](se)}function T(D,U,se){D.textNode&&F(D),$(D,U,se)}function F(D){D.textNode=M(D.opt,D.textNode),D.textNode&&$(D,"ontext",D.textNode),D.textNode=""}function M(D,U){return D.trim&&(U=U.trim()),D.normalize&&(U=U.replace(/\s+/g," ")),U}function z(D,U){return F(D),D.trackPosition&&(U+=` 8092Line: `+D.line+` 8093Column: `+D.column+` 8094Char: `+D.c),U=new Error(U),D.error=U,$(D,"onerror",U),D}function Y(D){return D.sawRoot&&!D.closedRoot&&W(D,"Unclosed root tag"),D.state!==N.BEGIN&&D.state!==N.BEGIN_WHITESPACE&&D.state!==N.TEXT&&z(D,"Unexpected end"),F(D),D.c="",D.closed=!0,$(D,"onend"),n.call(D,D.strict,D.opt),D}function W(D,U){if(typeof D!="object"||!(D instanceof n))throw new Error("bad call to strictFail");D.strict&&z(D,U)}function ee(D){D.strict||(D.tagName=D.tagName[D.looseCase]());var U=D.tags[D.tags.length-1]||D,se=D.tag={name:D.tagName,attributes:{}};D.opt.xmlns&&(se.ns=U.ns),D.attribList.length=0,T(D,"onopentagstart",se)}function Z(D,U){var se=D.indexOf(":"),te=se<0?["",D]:D.split(":"),Q=te[0],K=te[1];return U&&D==="xmlns"&&(Q="xmlns",K=""),{prefix:Q,local:K}}function V(D){if(D.strict||(D.attribName=D.attribName[D.looseCase]()),D.attribList.indexOf(D.attribName)!==-1||D.tag.attributes.hasOwnProperty(D.attribName)){D.attribName=D.attribValue="";return}if(D.opt.xmlns){var U=Z(D.attribName,!0),se=U.prefix,te=U.local;if(se==="xmlns")if(te==="xml"&&D.attribValue!==p)W(D,"xml: prefix must be bound to "+p+` 8095Actual: `+D.attribValue);else if(te==="xmlns"&&D.attribValue!==y)W(D,"xmlns: prefix must be bound to "+y+` 8096Actual: `+D.attribValue);else{var Q=D.tag,K=D.tags[D.tags.length-1]||D;Q.ns===K.ns&&(Q.ns=Object.create(K.ns)),Q.ns[te]=D.attribValue}D.attribList.push([D.attribName,D.attribValue])}else D.tag.attributes[D.attribName]=D.attribValue,T(D,"onattribute",{name:D.attribName,value:D.attribValue});D.attribName=D.attribValue=""}function ne(D,U){if(D.opt.xmlns){var se=D.tag,te=Z(D.tagName);se.prefix=te.prefix,se.local=te.local,se.uri=se.ns[te.prefix]||"",se.prefix&&!se.uri&&(W(D,"Unbound namespace prefix: "+JSON.stringify(D.tagName)),se.uri=te.prefix);var Q=D.tags[D.tags.length-1]||D;se.ns&&Q.ns!==se.ns&&Object.keys(se.ns).forEach(function(J){T(D,"onopennamespace",{prefix:J,uri:se.ns[J]})});for(var K=0,ue=D.attribList.length;K<ue;K++){var B=D.attribList[K],pe=B[0],G=B[1],I=Z(pe,!0),L=I.prefix,q=I.local,X=L===""?"":se.ns[L]||"",ie={name:pe,value:G,prefix:L,local:q,uri:X};L&&L!=="xmlns"&&!X&&(W(D,"Unbound namespace prefix: "+JSON.stringify(L)),ie.uri=L),D.tag.attributes[pe]=ie,T(D,"onattribute",ie)}D.attribList.length=0}D.tag.isSelfClosing=!!U,D.sawRoot=!0,D.tags.push(D.tag),T(D,"onopentag",D.tag),U||(!D.noscript&&D.tagName.toLowerCase()==="script"?D.state=N.SCRIPT:D.state=N.TEXT,D.tag=null,D.tagName=""),D.attribName=D.attribValue="",D.attribList.length=0}function P(D){if(!D.tagName){W(D,"Weird empty close tag."),D.textNode+="</>",D.state=N.TEXT;return}if(D.script){if(D.tagName!=="script"){D.script+="</"+D.tagName+">",D.tagName="",D.state=N.SCRIPT;return}T(D,"onscript",D.script),D.script=""}var U=D.tags.length,se=D.tagName;D.strict||(se=se[D.looseCase]());for(var te=se;U--;){var Q=D.tags[U];if(Q.name!==te)W(D,"Unexpected close tag");else break}if(U<0){W(D,"Unmatched closing tag: "+D.tagName),D.textNode+="</"+D.tagName+">",D.state=N.TEXT;return}D.tagName=se;for(var K=D.tags.length;K-- >U;){var ue=D.tag=D.tags.pop();D.tagName=D.tag.name,T(D,"onclosetag",D.tagName);var B={};for(var pe in ue.ns)B[pe]=ue.ns[pe];var G=D.tags[D.tags.length-1]||D;D.opt.xmlns&&ue.ns!==G.ns&&Object.keys(ue.ns).forEach(function(I){var L=ue.ns[I];T(D,"onclosenamespace",{prefix:I,uri:L})})}U===0&&(D.closedRoot=!0),D.tagName=D.attribValue=D.attribName="",D.attribList.length=0,D.state=N.TEXT}function R(D){var U=D.entity,se=U.toLowerCase(),te,Q="";return D.ENTITIES[U]?D.ENTITIES[U]:D.ENTITIES[se]?D.ENTITIES[se]:(U=se,U.charAt(0)==="#"&&(U.charAt(1)==="x"?(U=U.slice(2),te=parseInt(U,16),Q=te.toString(16)):(U=U.slice(1),te=parseInt(U,10),Q=te.toString(10))),U=U.replace(/^0+/,""),isNaN(te)||Q.toLowerCase()!==U?(W(D,"Invalid character entity"),"&"+D.entity+";"):String.fromCodePoint(te))}function H(D,U){U==="<"?(D.state=N.OPEN_WAKA,D.startTagPosition=D.position):_(U)||(W(D,"Non-whitespace before first tag."),D.textNode=U,D.state=N.TEXT)}function re(D,U){var se="";return U<D.length&&(se=D.charAt(U)),se}function ae(D){var U=this;if(this.error)throw this.error;if(U.closed)return z(U,"Cannot write after close. Assign an onready handler.");if(D===null)return Y(U);typeof D=="object"&&(D=D.toString());for(var se=0,te="";te=re(D,se++),U.c=te,!!te;)switch(U.trackPosition&&(U.position++,te===` 8097`?(U.line++,U.column=0):U.column++),U.state){case N.BEGIN:if(U.state=N.BEGIN_WHITESPACE,te==="\uFEFF")continue;H(U,te);continue;case N.BEGIN_WHITESPACE:H(U,te);continue;case N.TEXT:if(U.sawRoot&&!U.closedRoot){for(var Q=se-1;te&&te!=="<"&&te!=="&";)te=re(D,se++),te&&U.trackPosition&&(U.position++,te===` 8098`?(U.line++,U.column=0):U.column++);U.textNode+=D.substring(Q,se-1)}te==="<"&&!(U.sawRoot&&U.closedRoot&&!U.strict)?(U.state=N.OPEN_WAKA,U.startTagPosition=U.position):(!_(te)&&(!U.sawRoot||U.closedRoot)&&W(U,"Text data outside of root node."),te==="&"?U.state=N.TEXT_ENTITY:U.textNode+=te);continue;case N.SCRIPT:te==="<"?U.state=N.SCRIPT_ENDING:U.script+=te;continue;case N.SCRIPT_ENDING:te==="/"?U.state=N.CLOSE_TAG:(U.script+="<"+te,U.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(te==="!")U.state=N.SGML_DECL,U.sgmlDecl="";else if(!_(te))if(E(v,te))U.state=N.OPEN_TAG,U.tagName=te;else if(te==="/")U.state=N.CLOSE_TAG,U.tagName="";else if(te==="?")U.state=N.PROC_INST,U.procInstName=U.procInstBody="";else{if(W(U,"Unencoded <"),U.startTagPosition+1<U.position){var K=U.position-U.startTagPosition;te=new Array(K).join(" ")+te}U.textNode+="<"+te,U.state=N.TEXT}continue;case N.SGML_DECL:(U.sgmlDecl+te).toUpperCase()===h?(T(U,"onopencdata"),U.state=N.CDATA,U.sgmlDecl="",U.cdata=""):U.sgmlDecl+te==="--"?(U.state=N.COMMENT,U.comment="",U.sgmlDecl=""):(U.sgmlDecl+te).toUpperCase()===f?(U.state=N.DOCTYPE,(U.doctype||U.sawRoot)&&W(U,"Inappropriately located doctype declaration"),U.doctype="",U.sgmlDecl=""):te===">"?(T(U,"onsgmldeclaration",U.sgmlDecl),U.sgmlDecl="",U.state=N.TEXT):(w(te)&&(U.state=N.SGML_DECL_QUOTED),U.sgmlDecl+=te);continue;case N.SGML_DECL_QUOTED:te===U.q&&(U.state=N.SGML_DECL,U.q=""),U.sgmlDecl+=te;continue;case N.DOCTYPE:te===">"?(U.state=N.TEXT,T(U,"ondoctype",U.doctype),U.doctype=!0):(U.doctype+=te,te==="["?U.state=N.DOCTYPE_DTD:w(te)&&(U.state=N.DOCTYPE_QUOTED,U.q=te));continue;case N.DOCTYPE_QUOTED:U.doctype+=te,te===U.q&&(U.q="",U.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:U.doctype+=te,te==="]"?U.state=N.DOCTYPE:w(te)&&(U.state=N.DOCTYPE_DTD_QUOTED,U.q=te);continue;case N.DOCTYPE_DTD_QUOTED:U.doctype+=te,te===U.q&&(U.state=N.DOCTYPE_DTD,U.q="");continue;case N.COMMENT:te==="-"?U.state=N.COMMENT_ENDING:U.comment+=te;continue;case N.COMMENT_ENDING:te==="-"?(U.state=N.COMMENT_ENDED,U.comment=M(U.opt,U.comment),U.comment&&T(U,"oncomment",U.comment),U.comment=""):(U.comment+="-"+te,U.state=N.COMMENT);continue;case N.COMMENT_ENDED:te!==">"?(W(U,"Malformed comment"),U.comment+="--"+te,U.state=N.COMMENT):U.state=N.TEXT;continue;case N.CDATA:te==="]"?U.state=N.CDATA_ENDING:U.cdata+=te;continue;case N.CDATA_ENDING:te==="]"?U.state=N.CDATA_ENDING_2:(U.cdata+="]"+te,U.state=N.CDATA);continue;case N.CDATA_ENDING_2:te===">"?(U.cdata&&T(U,"oncdata",U.cdata),T(U,"onclosecdata"),U.cdata="",U.state=N.TEXT):te==="]"?U.cdata+="]":(U.cdata+="]]"+te,U.state=N.CDATA);continue;case N.PROC_INST:te==="?"?U.state=N.PROC_INST_ENDING:_(te)?U.state=N.PROC_INST_BODY:U.procInstName+=te;continue;case N.PROC_INST_BODY:if(!U.procInstBody&&_(te))continue;te==="?"?U.state=N.PROC_INST_ENDING:U.procInstBody+=te;continue;case N.PROC_INST_ENDING:te===">"?(T(U,"onprocessinginstruction",{name:U.procInstName,body:U.procInstBody}),U.procInstName=U.procInstBody="",U.state=N.TEXT):(U.procInstBody+="?"+te,U.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:E(g,te)?U.tagName+=te:(ee(U),te===">"?ne(U):te==="/"?U.state=N.OPEN_TAG_SLASH:(_(te)||W(U,"Invalid character in tag name"),U.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:te===">"?(ne(U,!0),P(U)):(W(U,"Forward-slash in opening tag not followed by >"),U.state=N.ATTRIB);continue;case N.ATTRIB:if(_(te))continue;te===">"?ne(U):te==="/"?U.state=N.OPEN_TAG_SLASH:E(v,te)?(U.attribName=te,U.attribValue="",U.state=N.ATTRIB_NAME):W(U,"Invalid attribute name");continue;case N.ATTRIB_NAME:te==="="?U.state=N.ATTRIB_VALUE:te===">"?(W(U,"Attribute without value"),U.attribValue=U.attribName,V(U),ne(U)):_(te)?U.state=N.ATTRIB_NAME_SAW_WHITE:E(g,te)?U.attribName+=te:W(U,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(te==="=")U.state=N.ATTRIB_VALUE;else{if(_(te))continue;W(U,"Attribute without value"),U.tag.attributes[U.attribName]="",U.attribValue="",T(U,"onattribute",{name:U.attribName,value:""}),U.attribName="",te===">"?ne(U):E(v,te)?(U.attribName=te,U.state=N.ATTRIB_NAME):(W(U,"Invalid attribute name"),U.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(_(te))continue;w(te)?(U.q=te,U.state=N.ATTRIB_VALUE_QUOTED):(W(U,"Unquoted attribute value"),U.state=N.ATTRIB_VALUE_UNQUOTED,U.attribValue=te);continue;case N.ATTRIB_VALUE_QUOTED:if(te!==U.q){te==="&"?U.state=N.ATTRIB_VALUE_ENTITY_Q:U.attribValue+=te;continue}V(U),U.q="",U.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:_(te)?U.state=N.ATTRIB:te===">"?ne(U):te==="/"?U.state=N.OPEN_TAG_SLASH:E(v,te)?(W(U,"No whitespace between attributes"),U.attribName=te,U.attribValue="",U.state=N.ATTRIB_NAME):W(U,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!j(te)){te==="&"?U.state=N.ATTRIB_VALUE_ENTITY_U:U.attribValue+=te;continue}V(U),te===">"?ne(U):U.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(U.tagName)te===">"?P(U):E(g,te)?U.tagName+=te:U.script?(U.script+="</"+U.tagName,U.tagName="",U.state=N.SCRIPT):(_(te)||W(U,"Invalid tagname in closing tag"),U.state=N.CLOSE_TAG_SAW_WHITE);else{if(_(te))continue;C(v,te)?U.script?(U.script+="</"+te,U.state=N.SCRIPT):W(U,"Invalid tagname in closing tag."):U.tagName=te}continue;case N.CLOSE_TAG_SAW_WHITE:if(_(te))continue;te===">"?P(U):W(U,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var ue,B;switch(U.state){case N.TEXT_ENTITY:ue=N.TEXT,B="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:ue=N.ATTRIB_VALUE_QUOTED,B="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:ue=N.ATTRIB_VALUE_UNQUOTED,B="attribValue";break}te===";"?(U[B]+=R(U),U.entity="",U.state=ue):E(U.entity.length?x:b,te)?U.entity+=te:(W(U,"Invalid character in entity name"),U[B]+="&"+U.entity+te,U.entity="",U.state=ue);continue;default:throw new Error(U,"Unknown state: "+U.state)}return U.position>=U.bufferCheckPosition&&a(U),U}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var D=String.fromCharCode,U=Math.floor,se=function(){var te=16384,Q=[],K,ue,B=-1,pe=arguments.length;if(!pe)return"";for(var G="";++B<pe;){var I=Number(arguments[B]);if(!isFinite(I)||I<0||I>1114111||U(I)!==I)throw RangeError("Invalid code point: "+I);I<=65535?Q.push(I):(I-=65536,K=(I>>10)+55296,ue=I%1024+56320,Q.push(K,ue)),(B+1===pe||Q.length>te)&&(G+=D.apply(null,Q),Q.length=0)}return G};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:se,configurable:!0,writable:!0}):String.fromCodePoint=se}()})(e)}(kX)),kX}var FZ,E1e;function Qse(){return E1e||(E1e=1,FZ={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),FZ}var $Z,C1e;function Jse(){if(C1e)return $Z;C1e=1;var e=Qse().isArray;return $Z={copyOptions:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},ensureFlagExists:function(t,r){(!(t in r)||typeof r[t]!="boolean")&&(r[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,r){(!(t+"Key"in r)||typeof r[t+"Key"]!="string")&&(r[t+"Key"]=r.compact?"_"+t:t)},checkFnExists:function(t,r){return t+"Fn"in r}},$Z}var BZ,N1e;function LNe(){if(N1e)return BZ;N1e=1;var e=kgt(),t=Jse(),r=Qse().isArray,n,a;function s(g){return n=t.copyOptions(g),t.ensureFlagExists("ignoreDeclaration",n),t.ensureFlagExists("ignoreInstruction",n),t.ensureFlagExists("ignoreAttributes",n),t.ensureFlagExists("ignoreText",n),t.ensureFlagExists("ignoreComment",n),t.ensureFlagExists("ignoreCdata",n),t.ensureFlagExists("ignoreDoctype",n),t.ensureFlagExists("compact",n),t.ensureFlagExists("alwaysChildren",n),t.ensureFlagExists("addParent",n),t.ensureFlagExists("trim",n),t.ensureFlagExists("nativeType",n),t.ensureFlagExists("nativeTypeAttributes",n),t.ensureFlagExists("sanitize",n),t.ensureFlagExists("instructionHasAttributes",n),t.ensureFlagExists("captureSpacesBetweenElements",n),t.ensureAlwaysArrayExists(n),t.ensureKeyExists("declaration",n),t.ensureKeyExists("instruction",n),t.ensureKeyExists("attributes",n),t.ensureKeyExists("text",n),t.ensureKeyExists("comment",n),t.ensureKeyExists("cdata",n),t.ensureKeyExists("doctype",n),t.ensureKeyExists("type",n),t.ensureKeyExists("name",n),t.ensureKeyExists("elements",n),t.ensureKeyExists("parent",n),t.checkFnExists("doctype",n),t.checkFnExists("instruction",n),t.checkFnExists("cdata",n),t.checkFnExists("comment",n),t.checkFnExists("text",n),t.checkFnExists("instructionName",n),t.checkFnExists("elementName",n),t.checkFnExists("attributeName",n),t.checkFnExists("attributeValue",n),t.checkFnExists("attributes",n),n}function o(g){var b=Number(g);if(!isNaN(b))return b;var x=g.toLowerCase();return x==="true"?!0:x==="false"?!1:g}function l(g,b){var x;if(n.compact){if(!a[n[g+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[g+"Key"])!==-1:n.alwaysArray)&&(a[n[g+"Key"]]=[]),a[n[g+"Key"]]&&!r(a[n[g+"Key"]])&&(a[n[g+"Key"]]=[a[n[g+"Key"]]]),g+"Fn"in n&&typeof b=="string"&&(b=n[g+"Fn"](b,a)),g==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(x in b)if(b.hasOwnProperty(x))if("instructionFn"in n)b[x]=n.instructionFn(b[x],x,a);else{var _=b[x];delete b[x],b[n.instructionNameFn(x,_,a)]=_}}r(a[n[g+"Key"]])?a[n[g+"Key"]].push(b):a[n[g+"Key"]]=b}else{a[n.elementsKey]||(a[n.elementsKey]=[]);var w={};if(w[n.typeKey]=g,g==="instruction"){for(x in b)if(b.hasOwnProperty(x))break;w[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(x,b,a):x,n.instructionHasAttributes?(w[n.attributesKey]=b[x][n.attributesKey],"instructionFn"in n&&(w[n.attributesKey]=n.instructionFn(w[n.attributesKey],x,a))):("instructionFn"in n&&(b[x]=n.instructionFn(b[x],x,a)),w[n.instructionKey]=b[x])}else g+"Fn"in n&&(b=n[g+"Fn"](b,a)),w[n[g+"Key"]]=b;n.addParent&&(w[n.parentKey]=a),a[n.elementsKey].push(w)}}function c(g){if("attributesFn"in n&&g&&(g=n.attributesFn(g,a)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&g){var b;for(b in g)if(g.hasOwnProperty(b)&&(n.trim&&(g[b]=g[b].trim()),n.nativeTypeAttributes&&(g[b]=o(g[b])),"attributeValueFn"in n&&(g[b]=n.attributeValueFn(g[b],b,a)),"attributeNameFn"in n)){var x=g[b];delete g[b],g[n.attributeNameFn(b,g[b],a)]=x}}return g}function u(g){var b={};if(g.body&&(g.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var x=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,_;(_=x.exec(g.body))!==null;)b[_[1]]=_[2]||_[3]||_[4];b=c(b)}if(g.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;a[n.declarationKey]={},Object.keys(b).length&&(a[n.declarationKey][n.attributesKey]=b),n.addParent&&(a[n.declarationKey][n.parentKey]=a)}else{if(n.ignoreInstruction)return;n.trim&&(g.body=g.body.trim());var w={};n.instructionHasAttributes&&Object.keys(b).length?(w[g.name]={},w[g.name][n.attributesKey]=b):w[g.name]=g.body,l("instruction",w)}}function d(g,b){var x;if(typeof g=="object"&&(b=g.attributes,g=g.name),b=c(b),"elementNameFn"in n&&(g=n.elementNameFn(g,a)),n.compact){if(x={},!n.ignoreAttributes&&b&&Object.keys(b).length){x[n.attributesKey]={};var _;for(_ in b)b.hasOwnProperty(_)&&(x[n.attributesKey][_]=b[_])}!(g in a)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(g)!==-1:n.alwaysArray)&&(a[g]=[]),a[g]&&!r(a[g])&&(a[g]=[a[g]]),r(a[g])?a[g].push(x):a[g]=x}else a[n.elementsKey]||(a[n.elementsKey]=[]),x={},x[n.typeKey]="element",x[n.nameKey]=g,!n.ignoreAttributes&&b&&Object.keys(b).length&&(x[n.attributesKey]=b),n.alwaysChildren&&(x[n.elementsKey]=[]),a[n.elementsKey].push(x);x[n.parentKey]=a,a=x}function h(g){n.ignoreText||!g.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(g=g.trim()),n.nativeType&&(g=o(g)),n.sanitize&&(g=g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),l("text",g))}function f(g){n.ignoreComment||(n.trim&&(g=g.trim()),l("comment",g))}function p(g){var b=a[n.parentKey];n.addParent||delete a[n.parentKey],a=b}function y(g){n.ignoreCdata||(n.trim&&(g=g.trim()),l("cdata",g))}function m(g){n.ignoreDoctype||(g=g.replace(/^ /,""),n.trim&&(g=g.trim()),l("doctype",g))}function v(g){g.note=g}return BZ=function(g,b){var x=e.parser(!0,{}),_={};if(a=_,n=s(b),x.opt={strictEntities:!0},x.onopentag=d,x.ontext=h,x.oncomment=f,x.onclosetag=p,x.onerror=v,x.oncdata=y,x.ondoctype=m,x.onprocessinginstruction=u,x.write(g).close(),_[n.elementsKey]){var w=_[n.elementsKey];delete _[n.elementsKey],_[n.elementsKey]=w,delete _.text}return _},BZ}var zZ,T1e;function _gt(){if(T1e)return zZ;T1e=1;var e=Jse(),t=LNe();function r(n){var a=e.copyOptions(n);return e.ensureSpacesExists(a),a}return zZ=function(n,a){var s,o,l,c;return s=r(a),o=t(n,s),c="compact"in s&&s.compact?"_parent":"parent","addParent"in s&&s.addParent?l=JSON.stringify(o,function(u,d){return u===c?"_":d},s.spaces):l=JSON.stringify(o,null,s.spaces),l.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},zZ}var UZ,A1e;function ONe(){if(A1e)return UZ;A1e=1;var e=Jse(),t=Qse().isArray,r,n;function a(x){var _=e.copyOptions(x);return e.ensureFlagExists("ignoreDeclaration",_),e.ensureFlagExists("ignoreInstruction",_),e.ensureFlagExists("ignoreAttributes",_),e.ensureFlagExists("ignoreText",_),e.ensureFlagExists("ignoreComment",_),e.ensureFlagExists("ignoreCdata",_),e.ensureFlagExists("ignoreDoctype",_),e.ensureFlagExists("compact",_),e.ensureFlagExists("indentText",_),e.ensureFlagExists("indentCdata",_),e.ensureFlagExists("indentAttributes",_),e.ensureFlagExists("indentInstruction",_),e.ensureFlagExists("fullTagEmptyElement",_),e.ensureFlagExists("noQuotesForNativeAttributes",_),e.ensureSpacesExists(_),typeof _.spaces=="number"&&(_.spaces=Array(_.spaces+1).join(" ")),e.ensureKeyExists("declaration",_),e.ensureKeyExists("instruction",_),e.ensureKeyExists("attributes",_),e.ensureKeyExists("text",_),e.ensureKeyExists("comment",_),e.ensureKeyExists("cdata",_),e.ensureKeyExists("doctype",_),e.ensureKeyExists("type",_),e.ensureKeyExists("name",_),e.ensureKeyExists("elements",_),e.checkFnExists("doctype",_),e.checkFnExists("instruction",_),e.checkFnExists("cdata",_),e.checkFnExists("comment",_),e.checkFnExists("text",_),e.checkFnExists("instructionName",_),e.checkFnExists("elementName",_),e.checkFnExists("attributeName",_),e.checkFnExists("attributeValue",_),e.checkFnExists("attributes",_),e.checkFnExists("fullTagEmptyElement",_),_}function s(x,_,w){return(!w&&x.spaces?` 8099`:"")+Array(_+1).join(x.spaces)}function o(x,_,w){if(_.ignoreAttributes)return"";"attributesFn"in _&&(x=_.attributesFn(x,n,r));var j,E,C,N,A=[];for(j in x)x.hasOwnProperty(j)&&x[j]!==null&&x[j]!==void 0&&(N=_.noQuotesForNativeAttributes&&typeof x[j]!="string"?"":'"',E=""+x[j],E=E.replace(/"/g,"""),C="attributeNameFn"in _?_.attributeNameFn(j,E,n,r):j,A.push(_.spaces&&_.indentAttributes?s(_,w+1,!1):" "),A.push(C+"="+N+("attributeValueFn"in _?_.attributeValueFn(E,j,n,r):E)+N));return x&&Object.keys(x).length&&_.spaces&&_.indentAttributes&&A.push(s(_,w,!1)),A.join("")}function l(x,_,w){return r=x,n="xml",_.ignoreDeclaration?"":"<?xml"+o(x[_.attributesKey],_,w)+"?>"}function c(x,_,w){if(_.ignoreInstruction)return"";var j;for(j in x)if(x.hasOwnProperty(j))break;var E="instructionNameFn"in _?_.instructionNameFn(j,x[j],n,r):j;if(typeof x[j]=="object")return r=x,n=E,"<?"+E+o(x[j][_.attributesKey],_,w)+"?>";var C=x[j]?x[j]:"";return"instructionFn"in _&&(C=_.instructionFn(C,j,n,r)),"<?"+E+(C?" "+C:"")+"?>"}function u(x,_){return _.ignoreComment?"":"<!--"+("commentFn"in _?_.commentFn(x,n,r):x)+"-->"}function d(x,_){return _.ignoreCdata?"":"<![CDATA["+("cdataFn"in _?_.cdataFn(x,n,r):x.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function h(x,_){return _.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in _?_.doctypeFn(x,n,r):x)+">"}function f(x,_){return _.ignoreText?"":(x=""+x,x=x.replace(/&/g,"&"),x=x.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in _?_.textFn(x,n,r):x)}function p(x,_){var w;if(x.elements&&x.elements.length)for(w=0;w<x.elements.length;++w)switch(x.elements[w][_.typeKey]){case"text":if(_.indentText)return!0;break;case"cdata":if(_.indentCdata)return!0;break;case"instruction":if(_.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function y(x,_,w){r=x,n=x.name;var j=[],E="elementNameFn"in _?_.elementNameFn(x.name,x):x.name;j.push("<"+E),x[_.attributesKey]&&j.push(o(x[_.attributesKey],_,w));var C=x[_.elementsKey]&&x[_.elementsKey].length||x[_.attributesKey]&&x[_.attributesKey]["xml:space"]==="preserve";return C||("fullTagEmptyElementFn"in _?C=_.fullTagEmptyElementFn(x.name,x):C=_.fullTagEmptyElement),C?(j.push(">"),x[_.elementsKey]&&x[_.elementsKey].length&&(j.push(m(x[_.elementsKey],_,w+1)),r=x,n=x.name),j.push(_.spaces&&p(x,_)?` 8100`+Array(w+1).join(_.spaces):""),j.push("</"+E+">")):j.push("/>"),j.join("")}function m(x,_,w,j){return x.reduce(function(E,C){var N=s(_,w,j&&!E);switch(C.type){case"element":return E+N+y(C,_,w);case"comment":return E+N+u(C[_.commentKey],_);case"doctype":return E+N+h(C[_.doctypeKey],_);case"cdata":return E+(_.indentCdata?N:"")+d(C[_.cdataKey],_);case"text":return E+(_.indentText?N:"")+f(C[_.textKey],_);case"instruction":var A={};return A[C[_.nameKey]]=C[_.attributesKey]?C:C[_.instructionKey],E+(_.indentInstruction?N:"")+c(A,_,w)}},"")}function v(x,_,w){var j;for(j in x)if(x.hasOwnProperty(j))switch(j){case _.parentKey:case _.attributesKey:break;case _.textKey:if(_.indentText||w)return!0;break;case _.cdataKey:if(_.indentCdata||w)return!0;break;case _.instructionKey:if(_.indentInstruction||w)return!0;break;case _.doctypeKey:case _.commentKey:return!0;default:return!0}return!1}function g(x,_,w,j,E){r=x,n=_;var C="elementNameFn"in w?w.elementNameFn(_,x):_;if(typeof x>"u"||x===null||x==="")return"fullTagEmptyElementFn"in w&&w.fullTagEmptyElementFn(_,x)||w.fullTagEmptyElement?"<"+C+"></"+C+">":"<"+C+"/>";var N=[];if(_){if(N.push("<"+C),typeof x!="object")return N.push(">"+f(x,w)+"</"+C+">"),N.join("");x[w.attributesKey]&&N.push(o(x[w.attributesKey],w,j));var A=v(x,w,!0)||x[w.attributesKey]&&x[w.attributesKey]["xml:space"]==="preserve";if(A||("fullTagEmptyElementFn"in w?A=w.fullTagEmptyElementFn(_,x):A=w.fullTagEmptyElement),A)N.push(">");else return N.push("/>"),N.join("")}return N.push(b(x,w,j+1,!1)),r=x,n=_,_&&N.push((E?s(w,j,!1):"")+"</"+C+">"),N.join("")}function b(x,_,w,j){var E,C,N,A=[];for(C in x)if(x.hasOwnProperty(C))for(N=t(x[C])?x[C]:[x[C]],E=0;E<N.length;++E){switch(C){case _.declarationKey:A.push(l(N[E],_,w));break;case _.instructionKey:A.push((_.indentInstruction?s(_,w,j):"")+c(N[E],_,w));break;case _.attributesKey:case _.parentKey:break;case _.textKey:A.push((_.indentText?s(_,w,j):"")+f(N[E],_));break;case _.cdataKey:A.push((_.indentCdata?s(_,w,j):"")+d(N[E],_));break;case _.doctypeKey:A.push(s(_,w,j)+h(N[E],_));break;case _.commentKey:A.push(s(_,w,j)+u(N[E],_));break;default:A.push(s(_,w,j)+g(N[E],C,_,w,v(N[E],_)))}j=j&&!A.length}return A.join("")}return UZ=function(x,_){_=a(_);var w=[];return r=x,n="_root_",_.compact?w.push(b(x,_,0,!0)):(x[_.declarationKey]&&w.push(l(x[_.declarationKey],_,0)),x[_.elementsKey]&&x[_.elementsKey].length&&w.push(m(x[_.elementsKey],_,0,!w.length))),w.join("")},UZ}var qZ,M1e;
8100function Sgt(){if(M1e)return qZ;M1e=1;var e=ONe();return qZ=function(t,r){t instanceof Buffer&&(t=t.toString());var n=null;if(typeof t=="string")try{n=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else n=t;return e(n,r)},qZ}var HZ,I1e;function jgt(){if(I1e)return HZ;I1e=1;var e=LNe(),t=_gt(),r=ONe(),n=Sgt();return HZ={xml2js:e,xml2json:t,js2xml:r,json2xml:n},HZ}var RNe=jgt();const eoe=e=>{switch(e.type){case void 0:case"element":const t=new Cgt(e.name,e.attributes),r=e.elements||[];for(const n of r){const a=eoe(n);a!==void 0&&t.push(a)}return t;case"text":return e.text;default:return}};class Egt extends Lt{}class Cgt extends Pe{static fromXmlString(t){const r=RNe.xml2js(t,{compact:!1});return eoe(r)}constructor(t,r){super(t),r&&this.root.push(new Egt(r))}push(t){this.root.push(t)}}class Ngt extends Pe{constructor(t){super(""),this._attr=t}prepForXml(t){return{_attr:this._attr}}}class DNe extends Pe{constructor(t,r){super(t),r&&(this.root=r.root)}}const _s=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},gG=e=>{const t=_s(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},FNe=(e,t)=>{const r=t*2;if(e.length!==r||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e},P1e=e=>FNe(e,1),$Ne=e=>{const t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},BNe=e=>{const t=$Ne(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},A2=e=>{if(e==="auto")return e;const t=e.charAt(0)==="#"?e.substring(1):e;return FNe(t,3)},R1=e=>typeof e=="string"?$Ne(e):_s(e),Tgt=e=>typeof e=="string"?BNe(e):gG(e),nl=e=>typeof e=="string"?BNe(e):gG(e),Agt=gG,Mgt=gG,Igt=e=>e.toISOString();class We extends Pe{constructor(t,r=!0){super(t),r!==!0&&this.root.push(new Wn({val:r}))}}class VZ extends Pe{constructor(t,r){super(t),this.root.push(new Wn({val:Tgt(r)}))}}class zy extends Pe{constructor(t,r){super(t),this.root.push(new Wn({val:r}))}}const Hx=(e,t)=>new Zr({name:e,attributes:{value:{key:"w:val",value:t}}});class $w extends Pe{constructor(t,r){super(t),this.root.push(new Wn({val:r}))}}class Xh extends Pe{constructor(t,r){super(t),this.root.push(r)}}class Zr extends Pe{constructor({name:t,attributes:r,children:n}){super(t),r&&this.root.push(new o4(r)),n&&this.root.push(...n)}}const si={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class Pgt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{val:"w:val"})}}class Lgt extends Pe{constructor(t){super("w:jc"),this.root.push(new Pgt({val:t}))}}class zn extends Pe{constructor(t,{color:r,size:n,space:a,style:s}){super(t),this.root.push(new Ogt({style:s,color:r===void 0?void 0:A2(r),size:n===void 0?void 0:Agt(n),space:a===void 0?void 0:Mgt(a)}))}}class Ogt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const toe={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class Rgt extends fG{constructor(t){super("w:pBdr"),t.top&&this.root.push(new zn("w:top",t.top)),t.bottom&&this.root.push(new zn("w:bottom",t.bottom)),t.left&&this.root.push(new zn("w:left",t.left)),t.right&&this.root.push(new zn("w:right",t.right))}}class Dgt extends Pe{constructor(){super("w:pBdr");
8100const t=new zn("w:bottom",{color:"auto",space:1,style:toe.SINGLE,size:6});this.root.push(t)}}class Fgt extends Pe{constructor({start:t,end:r,left:n,right:a,hanging:s,firstLine:o}){super("w:ind"),this.root.push(new o4({start:{key:"w:start",value:t===void 0?void 0:R1(t)},end:{key:"w:end",value:r===void 0?void 0:R1(r)},left:{key:"w:left",value:n===void 0?void 0:R1(n)},right:{key:"w:right",value:a===void 0?void 0:R1(a)},hanging:{key:"w:hanging",value:s===void 0?void 0:nl(s)},firstLine:{key:"w:firstLine",value:o===void 0?void 0:nl(o)}}))}}let $gt=class extends Pe{constructor(){super("w:br")}};const roe={BEGIN:"begin",END:"end",SEPARATE:"separate"};class noe extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class H3 extends Pe{constructor(t){super("w:fldChar"),this.root.push(new noe({type:roe.BEGIN,dirty:t}))}}class V3 extends Pe{constructor(t){super("w:fldChar"),this.root.push(new noe({type:roe.SEPARATE,dirty:t}))}}class W3 extends Pe{constructor(t){super("w:fldChar"),this.root.push(new noe({type:roe.END,dirty:t}))}}const M2={DEFAULT:"default",PRESERVE:"preserve"};class I2 extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{space:"xml:space"})}}class Bgt extends Pe{constructor(){super("w:instrText"),this.root.push(new I2({space:M2.PRESERVE})),this.root.push("PAGE")}}class zgt extends Pe{constructor(){super("w:instrText"),this.root.push(new I2({space:M2.PRESERVE})),this.root.push("NUMPAGES")}}class Ugt extends Pe{constructor(){super("w:instrText"),this.root.push(new I2({space:M2.PRESERVE})),this.root.push("SECTIONPAGES")}}class qgt extends Pe{constructor(){super("w:instrText"),this.root.push(new I2({space:M2.PRESERVE})),this.root.push("SECTION")}}class Hgt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class zNe extends Pe{constructor({fill:t,color:r,type:n}){super("w:shd"),this.root.push(new Hgt({fill:t===void 0?void 0:A2(t),color:r===void 0?void 0:A2(r),type:n}))}}class Vgt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const Wgt={DOT:"dot"};class Ggt extends Pe{constructor(t){super("w:em"),this.root.push(new Wn({val:t}))}}class Kgt extends Ggt{constructor(t=Wgt.DOT){super(t)}}class Ygt extends Pe{constructor(t){super("w:spacing"),this.root.push(new Wn({val:R1(t)}))}}let Xgt=class extends Pe{constructor(t){super("w:color"),this.root.push(new Wn({val:A2(t)}))}};class Zgt extends Pe{constructor(t){super("w:highlight"),this.root.push(new Wn({val:t}))}}class Qgt extends Pe{constructor(t){super("w:highlightCs"),this.root.push(new Wn({val:t}))}}const Jgt=e=>new Zr({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}});class L1e extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class WZ extends Pe{constructor(t,r){if(super("w:rFonts"),typeof t=="string"){const n=t;this.root.push(new L1e({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:r}))}else{const n=t;this.root.push(new L1e(n))}}}let UNe=class extends Pe{constructor(t){super("w:vertAlign"),this.root.push(new Wn({val:t}))}};class eyt extends UNe{constructor(){super("superscript")}}class tyt extends UNe{constructor(){super("subscript")}}const qNe={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class ryt extends Pe{constructor(t=qNe.SINGLE,r){super("w:u"),this.root.push(new Wn({val:t,color:r===void 0?void 0:A2(r)}))}}class Q0 extends fG{constructor(t){var r,n;if(super("w:rPr"),!t)return;t.style&&this.push(new zy("w:rStyle",t.style)),t.font&&(typeof t.font=="string"?this.push(new WZ(t.font)):"name"in t.font?this.push(new WZ(t.font.name,t.font.hint)):this.push(new WZ(t.font))),t.bold!==void 0&&this.push(new We("w:b",t.bold)),(t.boldComplexScript===void 0&&t.bold!==void 0||t.boldComplexScript)&&this.push(new We("w:bCs",(r=t.boldComplexScript)!=null?r:t.bold)),t.italics!==void 0&&this.push(new We("w:i",t.italics)),(t.italicsComplexScript===void 0&&t.italics!==void 0||t.italicsComplexScript)&&this.push(new We("w:iCs",(n=t.italicsComplexScript)!=null?n:t.italics)),t.smallCaps!==void 0?this.push(new We("w:smallCaps",t.smallCaps)):t.allCaps!==void 0&&this.push(new We("w:caps",t.allCaps)),t.strike!==void 0&&this.push(new We("w:strike",t.strike)),t.doubleStrike!==void 0&&this.push(new We("w:dstrike",t.doubleStrike)),t.emboss!==void 0&&this.push(new We("w:emboss",t.emboss)),t.imprint!==void 0&&this.push(new We("w:imprint",t.imprint)),t.noProof!==void 0&&this.push(new We("w:noProof",t.noProof)),t.snapToGri
8100d!==void 0&&this.push(new We("w:snapToGrid",t.snapToGrid)),t.vanish&&this.push(new We("w:vanish",t.vanish)),t.color&&this.push(new Xgt(t.color)),t.characterSpacing&&this.push(new Ygt(t.characterSpacing)),t.scale!==void 0&&this.push(new $w("w:w",t.scale)),t.kern&&this.push(new VZ("w:kern",t.kern)),t.position&&this.push(new zy("w:position",t.position)),t.size!==void 0&&this.push(new VZ("w:sz",t.size));const a=t.sizeComplexScript===void 0||t.sizeComplexScript===!0?t.size:t.sizeComplexScript;a&&this.push(new VZ("w:szCs",a)),t.highlight&&this.push(new Zgt(t.highlight));const s=t.highlightComplexScript===void 0||t.highlightComplexScript===!0?t.highlight:t.highlightComplexScript;s&&this.push(new Qgt(s)),t.underline&&this.push(new ryt(t.underline.type,t.underline.color)),t.effect&&this.push(new zy("w:effect",t.effect)),t.border&&this.push(new zn("w:bdr",t.border)),t.shading&&this.push(new zNe(t.shading)),t.subScript&&this.push(new tyt),t.superScript&&this.push(new eyt),t.rightToLeft!==void 0&&this.push(new We("w:rtl",t.rightToLeft)),t.emphasisMark&&this.push(new Kgt(t.emphasisMark.type)),t.language&&this.push(Jgt(t.language)),t.specVanish&&this.push(new We("w:specVanish",t.vanish)),t.math&&this.push(new We("w:oMath",t.math)),t.revision&&this.push(new nyt(t.revision))}push(t){this.root.push(t)}}class nyt extends Pe{constructor(t){super("w:rPrChange"),this.root.push(new Vgt({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Q0(t))}}let O1e=class extends Pe{constructor(t){var r;super("w:t"),typeof t=="string"?(this.root.push(new I2({space:M2.PRESERVE})),this.root.push(t)):(this.root.push(new I2({space:(r=t.space)!=null?r:M2.DEFAULT})),this.root.push(t.text))}};const G3={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Rv extends Pe{constructor(t){if(super("w:r"),Ne(this,"properties"),this.properties=new Q0(t),this.root.push(this.properties),t.break)for(let r=0;r<t.break;r++)this.root.push(new $gt);if(t.children)for(const r of t.children){if(typeof r=="string"){switch(r){case G3.CURRENT:this.root.push(new H3),this.root.push(new Bgt),this.root.push(new V3),this.root.push(new W3);break;case G3.TOTAL_PAGES:this.root.push(new H3),this.root.push(new zgt),this.root.push(new V3),this.root.push(new W3);break;case G3.TOTAL_PAGES_IN_SECTION:this.root.push(new H3),this.root.push(new Ugt),this.root.push(new V3),this.root.push(new W3);break;case G3.CURRENT_SECTION:this.root.push(new H3),this.root.push(new qgt),this.root.push(new V3),this.root.push(new W3);break;default:this.root.push(new O1e(r));break}continue}this.root.push(r)}else t.text!==void 0&&this.root.push(new O1e(t.text))}}class io extends Rv{constructor(t){super(typeof t=="string"?{text:t}:t)}}var GZ={},Jr={},KZ,R1e;function d4(){if(R1e)return KZ;R1e=1,KZ=e;function e(t,r){if(!t)throw new Error(r||"Assertion failed")}return e.equal=function(r,n,a){if(r!=n)throw new Error(a||"Assertion failed: "+r+" != "+n)},KZ}var D1e;function jc(){if(D1e)return Jr;D1e=1;var e=d4(),t=jh();Jr.inherits=t;function r(T,F){return(T.charCodeAt(F)&64512)!==55296||F<0||F+1>=T.length?!1:(T.charCodeAt(F+1)&64512)===56320}
8100function n(T,F){if(Array.isArray(T))return T.slice();if(!T)return[];var M=[];if(typeof T=="string")if(F){if(F==="hex")for(T=T.replace(/[^a-z0-9]+/ig,""),T.length%2!==0&&(T="0"+T),Y=0;Y<T.length;Y+=2)M.push(parseInt(T[Y]+T[Y+1],16))}else for(var z=0,Y=0;Y<T.length;Y++){var W=T.charCodeAt(Y);W<128?M[z++]=W:W<2048?(M[z++]=W>>6|192,M[z++]=W&63|128):r(T,Y)?(W=65536+((W&1023)<<10)+(T.charCodeAt(++Y)&1023),M[z++]=W>>18|240,M[z++]=W>>12&63|128,M[z++]=W>>6&63|128,M[z++]=W&63|128):(M[z++]=W>>12|224,M[z++]=W>>6&63|128,M[z++]=W&63|128)}else for(Y=0;Y<T.length;Y++)M[Y]=T[Y]|0;return M}Jr.toArray=n;function a(T){for(var F="",M=0;M<T.length;M++)F+=l(T[M].toString(16));return F}Jr.toHex=a;function s(T){var F=T>>>24|T>>>8&65280|T<<8&16711680|(T&255)<<24;return F>>>0}Jr.htonl=s;function o(T,F){for(var M="",z=0;z<T.length;z++){var Y=T[z];F==="little"&&(Y=s(Y)),M+=c(Y.toString(16))}return M}Jr.toHex32=o;function l(T){return T.length===1?"0"+T:T}Jr.zero2=l;function c(T){return T.length===7?"0"+T:T.length===6?"00"+T:T.length===5?"000"+T:T.length===4?"0000"+T:T.length===3?"00000"+T:T.length===2?"000000"+T:T.length===1?"0000000"+T:T}Jr.zero8=c;function u(T,F,M,z){var Y=M-F;e(Y%4===0);for(var W=new Array(Y/4),ee=0,Z=F;ee<W.length;ee++,Z+=4){var V;z==="big"?V=T[Z]<<24|T[Z+1]<<16|T[Z+2]<<8|T[Z+3]:V=T[Z+3]<<24|T[Z+2]<<16|T[Z+1]<<8|T[Z],W[ee]=V>>>0}return W}Jr.join32=u;function d(T,F){for(var M=new Array(T.length*4),z=0,Y=0;z<T.length;z++,Y+=4){var W=T[z];F==="big"?(M[Y]=W>>>24,M[Y+1]=W>>>16&255,M[Y+2]=W>>>8&255,M[Y+3]=W&255):(M[Y+3]=W>>>24,M[Y+2]=W>>>16&255,M[Y+1]=W>>>8&255,M[Y]=W&255)}return M}Jr.split32=d;function h(T,F){return T>>>F|T<<32-F}Jr.rotr32=h;function f(T,F){return T<<F|T>>>32-F}Jr.rotl32=f;function p(T,F){return T+F>>>0}Jr.sum32=p;function y(T,F,M){return T+F+M>>>0}Jr.sum32_3=y;function m(T,F,M,z){return T+F+M+z>>>0}Jr.sum32_4=m;function v(T,F,M,z,Y){return T+F+M+z+Y>>>0}Jr.sum32_5=v;function g(T,F,M,z){var Y=T[F],W=T[F+1],ee=z+W>>>0,Z=(ee<z?1:0)+M+Y;T[F]=Z>>>0,T[F+1]=ee}Jr.sum64=g;function b(T,F,M,z){var Y=F+z>>>0,W=(Y<F?1:0)+T+M;return W>>>0}Jr.sum64_hi=b;function x(T,F,M,z){var Y=F+z;return Y>>>0}Jr.sum64_lo=x;function _(T,F,M,z,Y,W,ee,Z){var V=0,ne=F;ne=ne+z>>>0,V+=ne<F?1:0,ne=ne+W>>>0,V+=ne<W?1:0,ne=ne+Z>>>0,V+=ne<Z?1:0;var P=T+M+Y+ee+V;return P>>>0}Jr.sum64_4_hi=_;function w(T,F,M,z,Y,W,ee,Z){var V=F+z+W+Z;return V>>>0}Jr.sum64_4_lo=w;function j(T,F,M,z,Y,W,ee,Z,V,ne){var P=0,R=F;R=R+z>>>0,P+=R<F?1:0,R=R+W>>>0,P+=R<W?1:0,R=R+Z>>>0,P+=R<Z?1:0,R=R+ne>>>0,P+=R<ne?1:0;var H=T+M+Y+ee+V+P;return H>>>0}Jr.sum64_5_hi=j;function E(T,F,M,z,Y,W,ee,Z,V,ne){var P=F+z+W+Z+ne;return P>>>0}Jr.sum64_5_lo=E;function C(T,F,M){var z=F<<32-M|T>>>M;return z>>>0}Jr.rotr64_hi=C;function N(T,F,M){var z=T<<32-M|F>>>M;return z>>>0}Jr.rotr64_lo=N;function A(T,F,M){return T>>>M}Jr.shr64_hi=A;function $(T,F,M){var z=T<<32-M|F>>>M;return z>>>0}return Jr.shr64_lo=$,Jr}var YZ={},F1e;function h4(){if(F1e)return YZ;F1e=1;var e=jc(),t=d4();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return YZ.BlockHash=r,r.prototype.update=function(a,s){if(a=e.toArray(a,s),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){a=this.pending;var o=a.length%this._delta8;this.pending=a.slice(a.length-o,a.length),this.pending.length===0&&(this.pending=null),a=e.join32(a,0,a.length-o,this.endian);for(var l=0;l<a.length;l+=this._delta32)this._update(a,l,l+this._delta32)}return this},r.prototype.digest=function(a){return this.update(this._pad()),t(this.pending===null),this._digest(a)},r.prototype._pad=function(){var a=this.pendingTotal,s=this._delta8,o=s-(a+this.padLength)%s,l=new Array(o+this.padLength);l[0]=128;for(var c=1;c<o;c++)l[c]=0;if(a<<=3,this.endian==="big"){for(var u=8;u<this.padLength;u++)l[c++]=0;l[c++]=0,l[c++]=0,l[c++]=0,l[c++]=0,l[c++]=a>>>24&255,l[c++]=a>>>16&255,l[c++]=a>>>8&255,l[c++]=a&255}else for(l[c++]=a&255,l[c++]=a>>>8&255,l[c++]=a>>>16&255,l[c++]=a>>>24&255,l[c++]=0,l[c++]=0,l[c++]=0,l[c++]=0,u=8;u<this.padLength;u++)l[c++]=0;return l},YZ}var Zh={},Il={},$1e;function HNe(){if($1e)return Il;$1e=1;var e=jc(),t=e.rotr32;function r(d,h,f,p){if(d===0)return n(h,f,p);if(d===1||d===3)return s(h,f,p);if(d===2)return a(h,f,p)}Il.ft_1=r;function n(d,h,f){return d&h^~d&f}Il.ch32=n;function a(d,h,f){return d&h^d&f^h&f}Il.maj32=a;function s(d,h,f){return d^h^f}Il.p32=s;function o(d){return t(d,2)^t(d,13)^t(d,22)}Il.s0_256=o;function l(d){return t(d,6)^t(d,11)^t(d,25)}Il.s1_256=l;function c(d){return t(d,7)^t(d,18)^d>>>3}Il.g0_256=c;function u(d){return t(d,17)^t(d,19)^d>>>10}return Il.g1_256=u,Il}var XZ,B1e;function ayt(){if(B1e)return XZ;B1e=1;var e=jc(),t=h4(),r=HNe(),n=e.rotl32,a=e.sum32,s=e.sum32_5,o=r.ft_1,l=t.BlockH
8100ash,c=[1518500249,1859775393,2400959708,3395469782];function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return e.inherits(u,l),XZ=u,u.blockSize=512,u.outSize=160,u.hmacStrength=80,u.padLength=64,u.prototype._update=function(h,f){for(var p=this.W,y=0;y<16;y++)p[y]=h[f+y];for(;y<p.length;y++)p[y]=n(p[y-3]^p[y-8]^p[y-14]^p[y-16],1);var m=this.h[0],v=this.h[1],g=this.h[2],b=this.h[3],x=this.h[4];for(y=0;y<p.length;y++){var _=~~(y/20),w=s(n(m,5),o(_,v,g,b),x,p[y],c[_]);x=b,b=g,g=n(v,30),v=m,m=w}this.h[0]=a(this.h[0],m),this.h[1]=a(this.h[1],v),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],b),this.h[4]=a(this.h[4],x)},u.prototype._digest=function(h){return h==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},XZ}var ZZ,z1e;function VNe(){if(z1e)return ZZ;z1e=1;var e=jc(),t=h4(),r=HNe(),n=d4(),a=e.sum32,s=e.sum32_4,o=e.sum32_5,l=r.ch32,c=r.maj32,u=r.s0_256,d=r.s1_256,h=r.g0_256,f=r.g1_256,p=t.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;p.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}return e.inherits(m,p),ZZ=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(g,b){for(var x=this.W,_=0;_<16;_++)x[_]=g[b+_];for(;_<x.length;_++)x[_]=s(f(x[_-2]),x[_-7],h(x[_-15]),x[_-16]);var w=this.h[0],j=this.h[1],E=this.h[2],C=this.h[3],N=this.h[4],A=this.h[5],$=this.h[6],T=this.h[7];for(n(this.k.length===x.length),_=0;_<x.length;_++){var F=o(T,d(N),l(N,A,$),this.k[_],x[_]),M=a(u(w),c(w,j,E));T=$,$=A,A=N,N=a(C,F),C=E,E=j,j=w,w=a(F,M)}this.h[0]=a(this.h[0],w),this.h[1]=a(this.h[1],j),this.h[2]=a(this.h[2],E),this.h[3]=a(this.h[3],C),this.h[4]=a(this.h[4],N),this.h[5]=a(this.h[5],A),this.h[6]=a(this.h[6],$),this.h[7]=a(this.h[7],T)},m.prototype._digest=function(g){return g==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},ZZ}var QZ,U1e;function iyt(){if(U1e)return QZ;U1e=1;var e=jc(),t=VNe();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return e.inherits(r,t),QZ=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(a){return a==="hex"?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")},QZ}var JZ,q1e;function WNe(){if(q1e)return JZ;q1e=1;var e=jc(),t=h4(),r=d4(),n=e.rotr64_hi,a=e.rotr64_lo,s=e.shr64_hi,o=e.shr64_lo,l=e.sum64,c=e.sum64_hi,u=e.sum64_lo,d=e.sum64_4_hi,h=e.sum64_4_lo,f=e.sum64_5_hi,p=e.sum64_5_lo,y=t.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
81001322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}e.inherits(v,y),JZ=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(M,z){for(var Y=this.W,W=0;W<32;W++)Y[W]=M[z+W];for(;W<Y.length;W+=2){var ee=$(Y[W-4],Y[W-3]),Z=T(Y[W-4],Y[W-3]),V=Y[W-14],ne=Y[W-13],P=N(Y[W-30],Y[W-29]),R=A(Y[W-30],Y[W-29]),H=Y[W-32],re=Y[W-31];Y[W]=d(ee,Z,V,ne,P,R,H,re),Y[W+1]=h(ee,Z,V,ne,P,R,H,re)}},v.prototype._update=function(M,z){this._prepareBlock(M,z);var Y=this.W,W=this.h[0],ee=this.h[1],Z=this.h[2],V=this.h[3],ne=this.h[4],P=this.h[5],R=this.h[6],H=this.h[7],re=this.h[8],ae=this.h[9],D=this.h[10],U=this.h[11],se=this.h[12],te=this.h[13],Q=this.h[14],K=this.h[15];r(this.k.length===Y.length);for(var ue=0;ue<Y.length;ue+=2){var B=Q,pe=K,G=E(re,ae),I=C(re,ae),L=g(re,ae,D,U,se),q=b(re,ae,D,U,se,te),X=this.k[ue],ie=this.k[ue+1],J=Y[ue],fe=Y[ue+1],ve=f(B,pe,G,I,L,q,X,ie,J,fe),ge=p(B,pe,G,I,L,q,X,ie,J,fe);B=w(W,ee),pe=j(W,ee),G=x(W,ee,Z,V,ne),I=_(W,ee,Z,V,ne,P);var de=c(B,pe,G,I),ye=u(B,pe,G,I);Q=se,K=te,se=D,te=U,D=re,U=ae,re=c(R,H,ve,ge),ae=u(H,H,ve,ge),R=ne,H=P,ne=Z,P=V,Z=W,V=ee,W=c(ve,ge,de,ye),ee=u(ve,ge,de,ye)}l(this.h,0,W,ee),l(this.h,2,Z,V),l(this.h,4,ne,P),l(this.h,6,R,H),l(this.h,8,re,ae),l(this.h,10,D,U),l(this.h,12,se,te),l(this.h,14,Q,K)},v.prototype._digest=function(M){return M==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")};function g(F,M,z,Y,W){var ee=F&z^~F&W;return ee<0&&(ee+=4294967296),ee}function b(F,M,z,Y,W,ee){var Z=M&Y^~Mⅇreturn Z<0&&(Z+=4294967296),Z}function x(F,M,z,Y,W){var ee=F&z^F&W^z&W;return ee<0&&(ee+=4294967296),ee}function _(F,M,z,Y,W,ee){var Z=M&Y^M&ee^Yⅇreturn Z<0&&(Z+=4294967296),Z}function w(F,M){var z=n(F,M,28),Y=n(M,F,2),W=n(M,F,7),ee=z^Y^W;return ee<0&&(ee+=4294967296),ee}function j(F,M){var z=a(F,M,28),Y=a(M,F,2),W=a(M,F,7),ee=z^Y^W;return ee<0&&(ee+=4294967296),ee}function E(F,M){var z=n(F,M,14),Y=n(F,M,18),W=n(M,F,9),ee=z^Y^W;return ee<0&&(ee+=4294967296),ee}function C(F,M){var z=a(F,M,14),Y=a(F,M,18),W=a(M,F,9),ee=z^Y^W;return ee<0&&(ee+=4294967296),ee}function N(F,M){var z=n(F,M,1),Y=n(F,M,8),W=s(F,M,7),ee=z^Y^W;return ee<0&&(ee+=4294967296),ee}function A(F,M){var z=a(F,M,1),Y=a(F,M,8),W=o(F,M,7),ee=z^Y^W;return ee<0&&(ee+=4294967296),ee}function $(F,M){var z=n(F,M,19),Y=n(M,F,29),W=s(F,M,6),ee=z^Y^W;return ee<0&&(ee+=4294967296),ee}function T(F,M){var z=a(F,M,19),Y=a(M,F,29),W=o(F,M,6),ee=z^Y^W;return ee<0&&(ee+=4294967296),ee}return JZ}var eQ,H1e;function syt(){if(H1e)return eQ;H1e=1;var e=jc(),t=WNe();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return e.inherits(r,t),eQ=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(a){return a==="hex"?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")},eQ}var V1e;function oyt(){return V1e||(V1e=1,Zh.sha1=ayt(),Zh.sha224=iyt(),Zh.sha256=VNe(),Zh.sha384=syt(),Zh.sha512=WNe()),Zh}var tQ={},W1e;function lyt(){if(W1e)return tQ;W1e=1;var e=jc(),t=h4(),r=e.rotl32,n=e.sum32,a=e.sum32_3,s=e.sum32_4,o=t.BlockHash;function l(){if(!(this instanceof l))return new l;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}e.inherits(l,o),tQ.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(v,g){for(var b=this.h[0],x=this.h[1],_=this.h[2],w=this.h[3],j=this.h[4],E=b,C=x,N=_,A=w,$=j,T=0;T<80;T++){var F=n(r(s(b,c(T,x,_,w),v[h[T]+g],u(T)),p[T]),j);b=j,j=w,w=r(_,10),_=x,x=F,F=n(r(s(E,c(79-T,C,N,A),v[f[T]+g],d(T)),y[T]),$),E=$,$=A,A=r(N,10),N=C,C=F}F=a(this.h[1],_,A),this.h[1]=a(this.h[2],w,$),this.h[2]=a(this.h[3],j,E),this.h[3]=a(this.h[4],b,C),this.h[4]=a(this.h[0],x,N),this.h[0]=F},l.prototype._digest=function(v){return v==="hex"?e.toHex32(this.h,"little"):e.split32(this.h,"little")};function c(m,v,g,b){return m<=15?v^g^b:m<=31?v&g|~v&b:m<=47?(v|~g)^b:m<=63?v&b|g&~b:v^(g|~b)}function u(m){return m<=15?0:m<=31?1518500249:m<=47?1859775393:m<=63?2400959708:2840853838}function d(m){return m<=15?1352829926:m<=31?1548603684:m<=47?1836072691:m<=63?2053994217:0}var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return tQ}var rQ,G1e;
8100function cyt(){if(G1e)return rQ;G1e=1;var e=jc(),t=d4();function r(n,a,s){if(!(this instanceof r))return new r(n,a,s);this.Hash=n,this.blockSize=n.blockSize/8,this.outSize=n.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(a,s))}return rQ=r,r.prototype._init=function(a){a.length>this.blockSize&&(a=new this.Hash().update(a).digest()),t(a.length<=this.blockSize);for(var s=a.length;s<this.blockSize;s++)a.push(0);for(s=0;s<a.length;s++)a[s]^=54;for(this.inner=new this.Hash().update(a),s=0;s<a.length;s++)a[s]^=106;this.outer=new this.Hash().update(a)},r.prototype.update=function(a,s){return this.inner.update(a,s),this},r.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)},rQ}var K1e;function uyt(){return K1e||(K1e=1,function(e){var t=e;t.utils=jc(),t.common=h4(),t.sha=oyt(),t.ripemd=lyt(),t.hmac=cyt(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}(GZ)),GZ}var dyt=uyt();const hyt=Vse(dyt);let fyt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pyt=(e,t=21)=>(r=t)=>{let n="",a=r|0;for(;a--;)n+=e[Math.random()*e.length|0];return n},myt=(e=21)=>{let t="",r=e|0;for(;r--;)t+=fyt[Math.random()*64|0];return t};const $o=e=>Math.floor(e*72*20),yG=(e=0)=>{let t=e;return()=>++t},gyt=()=>yG(),yyt=()=>yG(1),vyt=()=>yG(),xyt=()=>yG(),byt=()=>myt().toLowerCase(),Y1e=e=>hyt.sha1().update(e instanceof ArrayBuffer?new Uint8Array(e):e).digest("hex"),Vx=e=>pyt("1234567890abcdef",e)(),wyt=()=>`${Vx(8)}-${Vx(4)}-${Vx(4)}-${Vx(4)}-${Vx(12)}`,kyt={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},_yt={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"},Syt=()=>new Zr({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}}),GNe=e=>new Zr({name:"wp:align",children:[e]}),KNe=e=>new Zr({name:"wp:posOffset",children:[e.toString()]}),jyt=({relative:e,align:t,offset:r})=>new Zr({name:"wp:positionH",attributes:{relativeFrom:{key:"relativeFrom",value:e??kyt.PAGE}},children:[(()=>{if(t)return GNe(t);if(r!==void 0)return KNe(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]}),Eyt=({relative:e,align:t,offset:r})=>new Zr({name:"wp:positionV",attributes:{relativeFrom:{key:"relativeFrom",value:e??_yt.PAGE}},children:[(()=>{if(t)return GNe(t);if(r!==void 0)return KNe(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]});class Cyt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{uri:"uri"})}}const Nyt=e=>new Zr({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${e.fileName}}`}}}),Tyt=e=>new Zr({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[Nyt(e)]}),Ayt=e=>new Zr({name:"a:extLst",children:[Tyt(e)]}),Myt=e=>new Zr({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${e.type==="svg"?e.fallback.fileName:e.fileName}}`},cstate:{key:"cstate",value:"none"}},children:e.type==="svg"?[Ayt(e)]:[]});class Iyt extends Pe{constructor(){super("a:srcRect")}}class Pyt extends Pe{constructor(){super("a:fillRect")}}class Lyt extends Pe{constructor(){super("a:stretch"),this.root.push(new Pyt)}}class Oyt extends Pe{constructor(t){super("pic:blipFill"),this.root.push(Myt(t)),this.root.push(new Iyt),this.root.push(new Lyt)}}class Ryt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class Dyt extends Pe{constructor(){super("a:picLocks"),this.root.push(new Ryt({noChangeAspect:1,noChangeArrowheads:1}))}}class Fyt extends Pe{constructor(){super("pic:cNvPicPr"),this.root.push(new Dyt)}}const YNe=(e,t)=>new Zr({name:"a:hlinkClick",attributes:Tu(ur({},t?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${e}`}})});class $yt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class Byt extends Pe{constructor(){super("pic:cNvPr"),this.root.push(new $yt({id:0,name:"",descr:""}))}
8100prepForXml(t){for(let r=t.stack.length-1;r>=0;r--){const n=t.stack[r];if(n instanceof aoe){this.root.push(YNe(n.linkId,!1));break}}return super.prepForXml(t)}}class zyt extends Pe{constructor(){super("pic:nvPicPr"),this.root.push(new Byt),this.root.push(new Fyt)}}class Uyt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class qyt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class Hyt extends Pe{constructor(t,r){super("a:ext"),Ne(this,"attributes"),this.attributes=new qyt({cx:t,cy:r}),this.root.push(this.attributes)}}class Vyt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{x:"x",y:"y"})}}class Wyt extends Pe{constructor(){super("a:off"),this.root.push(new Vyt({x:0,y:0}))}}class Gyt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}let Kyt=class extends Pe{constructor(t){var r,n;super("a:xfrm"),Ne(this,"extents"),this.root.push(new Gyt({flipVertical:(r=t.flip)==null?void 0:r.vertical,flipHorizontal:(n=t.flip)==null?void 0:n.horizontal,rotation:t.rotation})),this.extents=new Hyt(t.emus.x,t.emus.y),this.root.push(new Wyt),this.root.push(this.extents)}};const XNe=()=>new Zr({name:"a:noFill"}),Yyt=e=>new Zr({name:"a:srgbClr",attributes:{value:{key:"val",value:e.value}}}),Xyt=e=>new Zr({name:"a:schemeClr",attributes:{value:{key:"val",value:e.value}}}),X1e=e=>new Zr({name:"a:solidFill",children:[e.type==="rgb"?Yyt(e):Xyt(e)]}),Zyt=e=>new Zr({name:"a:ln",attributes:{width:{key:"w",value:e.width},cap:{key:"cap",value:e.cap},compoundLine:{key:"cmpd",value:e.compoundLine},align:{key:"algn",value:e.align}},children:[e.type==="noFill"?XNe():e.solidFillType==="rgb"?X1e({type:"rgb",value:e.value}):X1e({type:"scheme",value:e.value})]});class Qyt extends Pe{constructor(){super("a:avLst")}}class Jyt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{prst:"prst"})}}class e2t extends Pe{constructor(){super("a:prstGeom"),this.root.push(new Jyt({prst:"rect"})),this.root.push(new Qyt)}}class t2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{bwMode:"bwMode"})}}class r2t extends Pe{constructor({outline:t,transform:r}){super("pic:spPr"),Ne(this,"form"),this.root.push(new t2t({bwMode:"auto"})),this.form=new Kyt(r),this.root.push(this.form),this.root.push(new e2t),t&&(this.root.push(XNe()),this.root.push(Zyt(t)))}}class n2t extends Pe{constructor({mediaData:t,transform:r,outline:n}){super("pic:pic"),this.root.push(new Uyt({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new zyt),this.root.push(new Oyt(t)),this.root.push(new r2t({transform:r,outline:n}))}}class a2t extends Pe{constructor({mediaData:t,transform:r,outline:n}){super("a:graphicData"),Ne(this,"pic"),this.root.push(new Cyt({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new n2t({mediaData:t,transform:r,outline:n}),this.root.push(this.pic)}}class i2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{a:"xmlns:a"})}}class ZNe extends Pe{constructor({mediaData:t,transform:r,outline:n}){super("a:graphic"),Ne(this,"data"),this.root.push(new i2t({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new a2t({mediaData:t,transform:r,outline:n}),this.root.push(this.data)}}const K3={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},s2t={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"};class Z1e extends Pe{constructor(){super("wp:wrapNone")}}class o2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class l2t extends Pe{constructor(t,r={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new o2t({wrapText:t.side||s2t.BOTH_SIDES,distT:r.top,distB:r.bottom,distL:r.left,distR:r.right}))}}class c2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class u2t extends Pe{constructor(t={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new c2t({distT:t.top,distB:t.bottom}))}}class d2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class h2t extends Pe{constructor(t={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new d2t({distT:t.top,distB:t.bottom}))}}class QNe extends Pe{constructor({name:t,description:r,title:n}={name:"",description:"",title:""}){super("wp:docPr"),Ne(this,"docPropertiesUniqueNumericId",vyt());const a={id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:t}};r!=null&&(a.description={key:"descr",value:r}),n!=null&&(a.title={key:"title",value:n}),this.root.push(new o4(a))}
8100prepForXml(t){for(let r=t.stack.length-1;r>=0;r--){const n=t.stack[r];if(n instanceof aoe){this.root.push(YNe(n.linkId,!0));break}}return super.prepForXml(t)}}const JNe=({top:e,right:t,bottom:r,left:n})=>new Zr({name:"wp:effectExtent",attributes:{top:{key:"t",value:e},right:{key:"r",value:t},bottom:{key:"b",value:r},left:{key:"l",value:n}}}),e8e=({x:e,y:t})=>new Zr({name:"wp:extent",attributes:{x:{key:"cx",value:e},y:{key:"cy",value:t}}});class f2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class p2t extends Pe{constructor(){super("a:graphicFrameLocks"),this.root.push(new f2t({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}const t8e=()=>new Zr({name:"wp:cNvGraphicFramePr",children:[new p2t]});class m2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class g2t extends Pe{constructor({mediaData:t,transform:r,drawingOptions:n}){super("wp:anchor");const a=ur({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},n.floating);if(this.root.push(new m2t({distT:a.margins&&a.margins.top||0,distB:a.margins&&a.margins.bottom||0,distL:a.margins&&a.margins.left||0,distR:a.margins&&a.margins.right||0,simplePos:"0",allowOverlap:a.allowOverlap===!0?"1":"0",behindDoc:a.behindDocument===!0?"1":"0",locked:a.lockAnchor===!0?"1":"0",layoutInCell:a.layoutInCell===!0?"1":"0",relativeHeight:a.zIndex?a.zIndex:r.emus.y})),this.root.push(Syt()),this.root.push(jyt(a.horizontalPosition)),this.root.push(Eyt(a.verticalPosition)),this.root.push(e8e({x:r.emus.x,y:r.emus.y})),this.root.push(JNe({top:0,right:0,bottom:0,left:0})),n.floating!==void 0&&n.floating.wrap!==void 0)switch(n.floating.wrap.type){case K3.SQUARE:this.root.push(new l2t(n.floating.wrap,n.floating.margins));break;case K3.TIGHT:this.root.push(new u2t(n.floating.margins));break;case K3.TOP_AND_BOTTOM:this.root.push(new h2t(n.floating.margins));break;case K3.NONE:default:this.root.push(new Z1e)}else this.root.push(new Z1e);this.root.push(new QNe(n.docProperties)),this.root.push(t8e()),this.root.push(new ZNe({mediaData:t,transform:r,outline:n.outline}))}}const y2t=({mediaData:e,transform:t,docProperties:r,outline:n})=>{var a,s,o,l;return new Zr({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[e8e({x:t.emus.x,y:t.emus.y}),JNe(n?{top:((a=n.width)!=null?a:9525)*2,right:((s=n.width)!=null?s:9525)*2,bottom:((o=n.width)!=null?o:9525)*2,left:((l=n.width)!=null?l:9525)*2}:{top:0,right:0,bottom:0,left:0}),new QNe(r),t8e(),new ZNe({mediaData:e,transform:t,outline:n})]})};class v2t extends Pe{constructor(t,r={}){super("w:drawing"),r.floating?this.root.push(new g2t({mediaData:t,transform:t.transformation,drawingOptions:r})):this.root.push(y2t({mediaData:t,transform:t.transformation,docProperties:r.docProperties,outline:r.outline}))}}const x2t=e=>{if(typeof atob=="function"){const t=";base64,",r=e.indexOf(t),n=r===-1?0:r+t.length;return new Uint8Array(atob(e.substring(n)).split("").map(a=>a.charCodeAt(0)))}else{const t=require("buffer");return new t.Buffer(e,"base64")}},b2t=e=>typeof e=="string"?x2t(e):e,nQ=(e,t)=>({data:b2t(e.data),fileName:t,transformation:{pixels:{x:Math.round(e.transformation.width),y:Math.round(e.transformation.height)},emus:{x:Math.round(e.transformation.width*9525),y:Math.round(e.transformation.height*9525)},flip:e.transformation.flip,rotation:e.transformation.rotation?e.transformation.rotation*6e4:void 0}});class w2t extends Rv{constructor(t){super({}),Ne(this,"imageData");const n=`${Y1e(t.data)}.${t.type}`;this.imageData=t.type==="svg"?Tu(ur({type:t.type},nQ(t,n)),{fallback:ur({type:t.fallback.type},nQ(Tu(ur({},t.fallback),{transformation:t.transformation}),`${Y1e(t.fallback.data)}.${t.fallback.type}`))}):ur({type:t.type},nQ(t,n));const a=new v2t(this.imageData,{floating:t.floating,docProperties:t.altText,outline:t.outline});this.root.push(a)}
8100prepForXml(t){return t.file.Media.addImage(this.imageData.fileName,this.imageData),this.imageData.type==="svg"&&t.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(t)}}class k2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{xmlns:"xmlns"})}}class _2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const S2t={EXTERNAL:"External"};class j2t extends Pe{constructor(t,r,n,a){super("Relationship"),this.root.push(new _2t({id:t,type:r,target:n,targetMode:a}))}}class J0 extends Pe{constructor(){super("Relationships"),this.root.push(new k2t({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(t,r,n,a){const s=new j2t(`rId${t}`,r,n,a);return this.root.push(s),s}get RelationshipCount(){return this.root.length-1}}class E2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class C2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class N2t extends Pe{constructor({id:t,initials:r,author:n,date:a=new Date,children:s}){super("w:comment"),this.root.push(new E2t({id:t,initials:r,author:n,date:a.toISOString()}));for(const o of s)this.root.push(o)}}class T2t extends Pe{constructor({children:t}){super("w:comments"),Ne(this,"relationships"),this.root.push(new C2t({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const r of t)this.root.push(new N2t(r));this.relationships=new J0}get Relationships(){return this.relationships}}const A2t={COLUMN:"column",PAGE:"page"};class M2t extends Pe{constructor(t){super("w:br"),this.root.push(new Wn({type:t}))}}class Y3 extends Rv{constructor(){super({}),this.root.push(new M2t(A2t.PAGE))}}class I2t extends Pe{constructor(){super("w:pageBreakBefore")}}
8100const Yte={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class P2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutospacing"})}}class L2t extends Pe{constructor(t){super("w:spacing"),this.root.push(new P2t(t))}}let X3=class extends Pe{constructor(t){super("w:pStyle"),this.root.push(new Wn({val:t}))}};class O2t extends Pe{constructor(t){super("w:tabs");for(const r of t)this.root.push(new D2t(r))}}const Q1e={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class R2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class D2t extends Pe{constructor({type:t,position:r,leader:n}){super("w:tab"),this.root.push(new R2t({val:t,pos:r,leader:n}))}}class aQ extends Pe{constructor(t,r){super("w:numPr"),this.root.push(new F2t(r)),this.root.push(new $2t(t))}}class F2t extends Pe{constructor(t){if(super("w:ilvl"),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Wn({val:t}))}}class $2t extends Pe{constructor(t){super("w:numId"),this.root.push(new Wn({val:typeof t=="string"?`{${t}}`:t}))}}class B2t extends Pe{constructor(){super(...arguments),Ne(this,"fileChild",Symbol())}}class z2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class aoe extends Pe{constructor(t,r,n){super("w:hyperlink"),Ne(this,"linkId"),this.linkId=r;const a={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},s=new z2t(a);this.root.push(s),t.forEach(o=>{this.root.push(o)})}}class U2t extends Pe{constructor(t){super("w:externalHyperlink"),this.options=t}}class q2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class H2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{id:"w:id"})}}class V2t{constructor(t){Ne(this,"bookmarkUniqueNumericId",xyt()),Ne(this,"start"),Ne(this,"children"),Ne(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new W2t(t.id,r),this.children=t.children,this.end=new G2t(r)}}class W2t extends Pe{constructor(t,r){super("w:bookmarkStart");const n=new q2t({name:t,id:r});this.root.push(n)}}class G2t extends Pe{constructor(t){super("w:bookmarkEnd");const r=new H2t({id:t});this.root.push(r)}}class K2t extends Pe{constructor(t){super("w:outlineLvl"),this.level=t,this.root.push(new Wn({val:t}))}}const Y2t={TOP:"top",CENTER:"center",BOTTOM:"bottom"};Tu(ur({},Y2t),{BOTH:"both"});class X2t extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{verticalAlign:"w:val"})}}class Z2t extends Pe{constructor(t){super("w:vAlign"),this.root.push(new X2t({verticalAlign:t}))}}class Q2t extends Pe{constructor({space:t,count:r,separate:n,equalWidth:a,children:s}){super("w:cols"),this.root.push(new o4({space:{key:"w:space",value:t===void 0?void 0:nl(t)},count:{key:"w:num",value:r===void 0?void 0:_s(r)},separate:{key:"w:sep",value:n},equalWidth:{key:"w:equalWidth",value:a}})),!a&&s&&s.forEach(o=>this.addChildElement(o))}}const J2t=({type:e,linePitch:t,charSpace:r})=>new Zr({name:"w:docGrid",attributes:{type:{key:"w:type",value:e},linePitch:{key:"w:linePitch",value:_s(t)},charSpace:{key:"w:charSpace",value:r?_s(r):void 0}}}),Uy={DEFAULT:"default",FIRST:"first",EVEN:"even"};class evt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const J1e={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class iQ extends Pe{constructor(t,r){super(t),this.root.push(new evt({type:r.type||Uy.DEFAULT,id:`rId${r.id}`}))}}const tvt=({countBy:e,start:t,restart:r,distance:n})=>new Zr({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:e===void 0?void 0:_s(e)},start:{key:"w:start",value:t===void 0?void 0:_s(t)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:n===void 0?void 0:nl(n)}}});class e0e extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class rvt extends fG{constructor(t){if(super("w:pgBorders"),!t)return this;t.pageBorders?this.root.push(new e0e({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new e0e({})),t.pageBorderTop&&this.root.push(new zn("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new zn("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new zn("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new zn("w:right",t.pageBorderRight))}}class nvt extends Pe{constructor(t,r,n,a,s,o,l){super("w:pgMar"),this.root.push(new o4({top:{key:"w:top",value:R1(t)},right:{key:"w:right",value:nl(r)},bottom:{key:"w:bottom",value:R1(n)},left:{key:"w:left",value:nl(a)},header:{key:"w:header",value:nl(s)}
8100,footer:{key:"w:footer",value:nl(o)},gutter:{key:"w:gutter",value:nl(l)}}))}}class avt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class ivt extends Pe{constructor({start:t,formatType:r,separator:n}){super("w:pgNumType"),this.root.push(new avt({start:t===void 0?void 0:_s(t),formatType:r,separator:n}))}}const Xte={PORTRAIT:"portrait",LANDSCAPE:"landscape"},svt=({width:e,height:t,orientation:r,code:n})=>{const a=nl(e),s=nl(t);return new Zr({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===Xte.LANDSCAPE?s:a},height:{key:"w:h",value:r===Xte.LANDSCAPE?a:s},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:n}}})};class ovt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{val:"w:val"})}}class lvt extends Pe{constructor(t){super("w:textDirection"),this.root.push(new ovt({val:t}))}}class cvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{val:"w:val"})}}class uvt extends Pe{constructor(t){super("w:type"),this.root.push(new cvt({val:t}))}}const Qh={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},sQ={WIDTH:11906,HEIGHT:16838,ORIENTATION:Xte.PORTRAIT};class dvt extends Pe{constructor({page:{size:{width:t=sQ.WIDTH,height:r=sQ.HEIGHT,orientation:n=sQ.ORIENTATION}={},margin:{top:a=Qh.TOP,right:s=Qh.RIGHT,bottom:o=Qh.BOTTOM,left:l=Qh.LEFT,header:c=Qh.HEADER,footer:u=Qh.FOOTER,gutter:d=Qh.GUTTER}={},pageNumbers:h={},borders:f,textDirection:p}={},grid:{linePitch:y=360,charSpace:m,type:v}={},headerWrapperGroup:g={},footerWrapperGroup:b={},lineNumbers:x,titlePage:_,verticalAlign:w,column:j,type:E}={}){super("w:sectPr"),this.addHeaderFooterGroup(J1e.HEADER,g),this.addHeaderFooterGroup(J1e.FOOTER,b),E&&this.root.push(new uvt(E)),this.root.push(svt({width:t,height:r,orientation:n})),this.root.push(new nvt(a,s,o,l,c,u,d)),f&&this.root.push(new rvt(f)),x&&this.root.push(tvt(x)),this.root.push(new ivt(h)),j&&this.root.push(new Q2t(j)),w&&this.root.push(new Z2t(w)),_!==void 0&&this.root.push(new We("w:titlePg",_)),p&&this.root.push(new lvt(p)),this.root.push(J2t({linePitch:y,charSpace:m,type:v}))}addHeaderFooterGroup(t,r){r.default&&this.root.push(new iQ(t,{type:Uy.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new iQ(t,{type:Uy.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new iQ(t,{type:Uy.EVEN,id:r.even.View.ReferenceId}))}}class hvt extends Pe{constructor(){super("w:body"),Ne(this,"sections",[])}addSection(t){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new dvt(t))}prepForXml(t){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){const r=new Wa({}),n=new P2({});return n.push(t),r.addChildElement(n),r}}const t0e={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"};class vG extends Lt{constructor(t,r){super(ur({Ignorable:r},Object.fromEntries(t.map(n=>[n,t0e[n]])))),Ne(this,"xmlKeys",ur({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(t0e).map(n=>[n,`xmlns:${n}`]))))}}class fvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class pvt extends Pe{constructor(t){super("w:background"),this.root.push(new fvt({color:t.color===void 0?void 0:A2(t.color),themeColor:t.themeColor,themeShade:t.themeShade===void 0?void 0:P1e(t.themeShade),themeTint:t.themeTint===void 0?void 0:P1e(t.themeTint)}))}}class mvt extends Pe{constructor(t){super("w:document"),Ne(this,"body"),this.root.push(new vG(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new hvt,t.background&&this.root.push(new pvt(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}}class r8e{constructor(t){Ne(this,"document"),Ne(this,"relationships"),this.document=new mvt(t),this.relationships=new J0}get View(){return this.document}get Relationships(){return this.relationships}}class gvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{val:"w:val"})}}class yvt extends Pe{constructor(){super("w:wordWrap"),this.root.push(new gvt({val:0}))}}const vvt=e=>{var t,r;return new Zr({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=e.space)==null?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(r=e.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})};class P2 extends fG{constructor(t){var r,n;if(super("w:pPr"),Ne(this,"numberingReferences",[]),!t)return this;t.heading&&this.push(new X3(t.heading)),t.bullet&&this.push(new X3("ListParagraph")),t.numbering&&!t.style&&!t.heading&&(t.numbering.custom||this.push(new X3("ListParagraph"))),t.style&&this.push(new X3(t.
8100style)),t.keepNext!==void 0&&this.push(new We("w:keepNext",t.keepNext)),t.keepLines!==void 0&&this.push(new We("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new I2t),t.frame&&this.push(vvt(t.frame)),t.widowControl!==void 0&&this.push(new We("w:widowControl",t.widowControl)),t.bullet&&this.push(new aQ(1,t.bullet.level)),t.numbering?(this.numberingReferences.push({reference:t.numbering.reference,instance:(r=t.numbering.instance)!=null?r:0}),this.push(new aQ(`${t.numbering.reference}-${(n=t.numbering.instance)!=null?n:0}`,t.numbering.level))):t.numbering===!1&&this.push(new aQ(0,0)),t.border&&this.push(new Rgt(t.border)),t.thematicBreak&&this.push(new Dgt),t.shading&&this.push(new zNe(t.shading)),t.wordWrap&&this.push(new yvt),t.overflowPunctuation&&this.push(new We("w:overflowPunct",t.overflowPunctuation));const a=[...t.rightTabStop!==void 0?[{type:Q1e.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...t.leftTabStop!==void 0?[{type:Q1e.LEFT,position:t.leftTabStop}]:[]];a.length>0&&this.push(new O2t(a)),t.bidirectional!==void 0&&this.push(new We("w:bidi",t.bidirectional)),t.spacing&&this.push(new L2t(t.spacing)),t.indent&&this.push(new Fgt(t.indent)),t.contextualSpacing!==void 0&&this.push(new We("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new Lgt(t.alignment)),t.outlineLevel!==void 0&&this.push(new K2t(t.outlineLevel)),t.suppressLineNumbers!==void 0&&this.push(new We("w:suppressLineNumbers",t.suppressLineNumbers)),t.autoSpaceEastAsianText!==void 0&&this.push(new We("w:autoSpaceDN",t.autoSpaceEastAsianText)),t.run&&this.push(new Q0(t.run))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof r8e)for(const r of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(t)}}class Wa extends B2t{constructor(t){if(super("w:p"),Ne(this,"properties"),typeof t=="string")return this.properties=new P2({}),this.root.push(this.properties),this.root.push(new io(t)),this;if(this.properties=new P2(t),this.root.push(this.properties),t.text&&this.root.push(new io(t.text)),t.children)for(const r of t.children){if(r instanceof V2t){this.root.push(r.start);for(const n of r.children)this.root.push(n);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(t){for(const r of this.root)if(r instanceof U2t){const n=this.root.indexOf(r),a=new aoe(r.options.children,byt());t.viewWrapper.Relationships.createRelationship(a.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,S2t.EXTERNAL),this.root[n]=a}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}const Ng={style:toe.NONE,size:0,color:"auto"},Tg={style:toe.SINGLE,size:4,color:"auto"};class xvt extends Pe{constructor(t){super("w:tblBorders"),t.top?this.root.push(new zn("w:top",t.top)):this.root.push(new zn("w:top",Tg)),t.left?this.root.push(new zn("w:left",t.left)):this.root.push(new zn("w:left",Tg)),t.bottom?this.root.push(new zn("w:bottom",t.bottom)):this.root.push(new zn("w:bottom",Tg)),t.right?this.root.push(new zn("w:right",t.right)):this.root.push(new zn("w:right",Tg)),t.insideHorizontal?this.root.push(new zn("w:insideH",t.insideHorizontal)):this.root.push(new zn("w:insideH",Tg)),t.insideVertical?this.root.push(new zn("w:insideV",t.insideVertical)):this.root.push(new zn("w:insideV",Tg))}}Ne(xvt,"NONE",{top:Ng,bottom:Ng,left:Ng,right:Ng,insideHorizontal:Ng,insideVertical:Ng});class bvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class wvt extends Pe{constructor(){super("Properties"),this.root.push(new bvt({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class kvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{xmlns:"xmlns"})}}class _vt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Dc extends Pe{constructor(t,r){super("Default"),this.root.push(new _vt({contentType:t,extension:r}))}}class Svt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class to extends Pe{constructor(t,r){super("Override"),this.root.push(new Svt({contentType:t,partName:r}))}}class jvt extends Pe{constructor(){super("Types"),this.root.push(new kvt({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Dc("image/png","png")),this.root.push(new Dc("image/jpeg","jpeg")),this.root.push(new Dc("image/jpeg","jpg")),this.root.push(new Dc("image/bmp","bmp")),this.root.push(new Dc("image/gif","gif")),this.root.push(new Dc("image/svg+xml","svg")),this.root.push(new Dc("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Dc("application/xml","xml")),this.root.push(new Dc("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new to("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new to("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new to("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new to("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new to("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new to("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new to("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new to("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new to("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new to("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(t){this.root.push(new to("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${t}.xml`))}addHeader(t){this.root.push(new to("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${t}.xml`))}}class Evt extends Pe{constructor(t){super("cp:coreProperties"),this.root.push(new vG(["cp","dc","dcterms","dcmitype","xsi"])),t.title&&this.root.push(new Xh("dc:title",t.title)),t.subject&&this.root.push(new Xh("dc:subject",t.subject)),t.creator&&this.root.push(new Xh("dc:creator",t.creator)),t.keywords&&this.root.push(new Xh("cp:keywords",t.keywords)),t.description&&this.root.push(new Xh("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new Xh("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new Xh("cp:revision",String(t.revision))),this.root.push(new r0e("dcterms:created")),this.root.push(new r0e("dcterms:modified"))}}class Cvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{type:"xsi:type"})}}class r0e extends Pe{constructor(t){super(t),this.root.push(new Cvt({type:"dcterms:W3CDTF"})),this.root.push(Igt(new Date))}}class Nvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Tvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class Avt extends Pe{constructor(t,r){super("property"),this.root.push(new Tvt({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:r.name})),this.root.push(new Mvt(r.value))}}class Mvt extends Pe{constructor(t){super("vt:lpwstr"),this.root.push(t)}}class Ivt extends Pe{constructor(t){super("Properties"),Ne(this,"nextId"),Ne(this,"properties",[]),this.root.push(new Nvt({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;
8100for(const r of t)this.addCustomProperty(r)}prepForXml(t){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new Avt(this.nextId++,t))}}const Z3=({id:e,fontKey:t,subsetted:r},n)=>new Zr({name:n,attributes:ur({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...r?[new We("w:subsetted",r)]:[]]}),Pvt=({name:e,altName:t,panose1:r,charset:n,family:a,notTrueType:s,pitch:o,sig:l,embedRegular:c,embedBold:u,embedItalic:d,embedBoldItalic:h})=>new Zr({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[Hx("w:altName",t)]:[],...r?[Hx("w:panose1",r)]:[],...n?[Hx("w:charset",n)]:[],Hx("w:family",a),...s?[new We("w:notTrueType",s)]:[],Hx("w:pitch",o),...l?[new Zr({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:l.usb0},usb1:{key:"w:usb1",value:l.usb1},usb2:{key:"w:usb2",value:l.usb2},usb3:{key:"w:usb3",value:l.usb3},csb0:{key:"w:csb0",value:l.csb0},csb1:{key:"w:csb1",value:l.csb1}}})]:[],...c?[Z3(c,"w:embedRegular")]:[],...u?[Z3(u,"w:embedBold")]:[],...d?[Z3(d,"w:embedItalic")]:[],...h?[Z3(h,"w:embedBoldItalic")]:[]]}),Lvt=({name:e,index:t,fontKey:r,characterSet:n})=>Pvt({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${t}`}}),Ovt=e=>new Zr({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:e.map((t,r)=>Lvt({name:t.name,index:r+1,fontKey:t.fontKey}))});class Rvt{constructor(t){Ne(this,"fontTable"),Ne(this,"relationships"),Ne(this,"fontOptionsWithKey",[]),this.options=t,this.fontOptionsWithKey=t.map(r=>Tu(ur({},r),{fontKey:wyt()})),this.fontTable=Ovt(this.fontOptionsWithKey),this.relationships=new J0;for(let r=0;r<t.length;r++)this.relationships.createRelationship(r+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${t[r].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class Dvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let Fvt=class extends DNe{constructor(t,r){super("w:ftr",r),Ne(this,"refId"),this.refId=t,r||this.root.push(new Dvt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}};class $vt{constructor(t,r,n){Ne(this,"footer"),Ne(this,"relationships"),this.media=t,this.footer=new Fvt(r,n),this.relationships=new J0}add(t){this.footer.add(t)}addChildElement(t){this.footer.addChildElement(t)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class Bvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class zvt extends Pe{constructor(){super("w:footnoteRef")}}class Uvt extends Rv{constructor(){super({style:"FootnoteReference"}),this.root.push(new zvt)}}const n0e={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class oQ extends Pe{constructor(t){super("w:footnote"),this.root.push(new Bvt({type:t.type,id:t.id}));for(let r=0;r<t.children.length;r++){const n=t.children[r];r===0&&n.addRunToFront(new Uvt),this.root.push(n)}}}class qvt extends Pe{constructor(){super("w:continuationSeparator")}}class Hvt extends Rv{constructor(){super({}),this.root.push(new qvt)}}class Vvt extends Pe{constructor(){super("w:separator")}}class Wvt extends Rv{constructor(){super({}),this.root.push(new Vvt)}}class Gvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class Kvt extends Pe{constructor(){super("w:footnotes"),this.root.push(new Gvt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new oQ({id:-1,type:n0e.SEPERATOR,children:[new Wa({spacing:{after:0,line:240,lineRule:Yte.AUTO},children:[new Wvt]})]});this.root.push(t);
8100const r=new oQ({id:0,type:n0e.CONTINUATION_SEPERATOR,children:[new Wa({spacing:{after:0,line:240,lineRule:Yte.AUTO},children:[new Hvt]})]});this.root.push(r)}createFootNote(t,r){const n=new oQ({id:t,children:r});this.root.push(n)}}class Yvt{constructor(){Ne(this,"footnotess"),Ne(this,"relationships"),this.footnotess=new Kvt,this.relationships=new J0}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Xvt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let Zvt=class extends DNe{constructor(t,r){super("w:hdr",r),Ne(this,"refId"),this.refId=t,r||this.root.push(new Xvt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}};class Qvt{constructor(t,r,n){Ne(this,"header"),Ne(this,"relationships"),this.media=t,this.header=new Zvt(r,n),this.relationships=new J0}add(t){return this.header.add(t),this}addChildElement(t){this.header.addChildElement(t)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class Jvt{constructor(){Ne(this,"map"),this.map=new Map}addImage(t,r){this.map.set(t,r)}get Array(){return Array.from(this.map.values())}}const Fc={DECIMAL:"decimal",UPPER_ROMAN:"upperRoman",LOWER_ROMAN:"lowerRoman",UPPER_LETTER:"upperLetter",LOWER_LETTER:"lowerLetter",ORDINAL:"ordinal",CARDINAL_TEXT:"cardinalText",ORDINAL_TEXT:"ordinalText",HEX:"hex",CHICAGO:"chicago",IDEOGRAPH__DIGITAL:"ideographDigital",JAPANESE_COUNTING:"japaneseCounting",AIUEO:"aiueo",IROHA:"iroha",DECIMAL_FULL_WIDTH:"decimalFullWidth",DECIMAL_HALF_WIDTH:"decimalHalfWidth",JAPANESE_LEGAL:"japaneseLegal",JAPANESE_DIGITAL_TEN_THOUSAND:"japaneseDigitalTenThousand",DECIMAL_ENCLOSED_CIRCLE:"decimalEnclosedCircle",DECIMAL_FULL_WIDTH2:"decimalFullWidth2",AIUEO_FULL_WIDTH:"aiueoFullWidth",IROHA_FULL_WIDTH:"irohaFullWidth",DECIMAL_ZERO:"decimalZero",BULLET:"bullet",GANADA:"ganada",CHOSUNG:"chosung",DECIMAL_ENCLOSED_FULLSTOP:"decimalEnclosedFullstop",DECIMAL_ENCLOSED_PARENTHESES:"decimalEnclosedParen",DECIMAL_ENCLOSED_CIRCLE_CHINESE:"decimalEnclosedCircleChinese",IDEOGRAPH_ENCLOSED_CIRCLE:"ideographEnclosedCircle",IDEOGRAPH_TRADITIONAL:"ideographTraditional",IDEOGRAPH_ZODIAC:"ideographZodiac",IDEOGRAPH_ZODIAC_TRADITIONAL:"ideographZodiacTraditional",TAIWANESE_COUNTING:"taiwaneseCounting",IDEOGRAPH_LEGAL_TRADITIONAL:"ideographLegalTraditional",TAIWANESE_COUNTING_THOUSAND:"taiwaneseCountingThousand",TAIWANESE_DIGITAL:"taiwaneseDigital",CHINESE_COUNTING:"chineseCounting",CHINESE_LEGAL_
8100SIMPLIFIED:"chineseLegalSimplified",CHINESE_COUNTING_THOUSAND:"chineseCountingThousand",KOREAN_DIGITAL:"koreanDigital",KOREAN_COUNTING:"koreanCounting",KOREAN_LEGAL:"koreanLegal",KOREAN_DIGITAL2:"koreanDigital2",VIETNAMESE_COUNTING:"vietnameseCounting",RUSSIAN_LOWER:"russianLower",RUSSIAN_UPPER:"russianUpper",NONE:"none",NUMBER_IN_DASH:"numberInDash",HEBREW1:"hebrew1",HEBREW2:"hebrew2",ARABIC_ALPHA:"arabicAlpha",ARABIC_ABJAD:"arabicAbjad",HINDI_VOWELS:"hindiVowels",HINDI_CONSONANTS:"hindiConsonants",HINDI_NUMBERS:"hindiNumbers",HINDI_COUNTING:"hindiCounting",THAI_LETTERS:"thaiLetters",THAI_NUMBERS:"thaiNumbers",THAI_COUNTING:"thaiCounting",BAHT_TEXT:"bahtText",DOLLAR_TEXT:"dollarText",CUSTOM:"custom"};class ext extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class txt extends Pe{constructor(t){super("w:numFmt"),this.root.push(new Wn({val:t}))}}class rxt extends Pe{constructor(t){super("w:lvlText"),this.root.push(new Wn({val:t}))}}class nxt extends Pe{constructor(t){super("w:lvlJc"),this.root.push(new Wn({val:t}))}}class axt extends Pe{constructor(t){super("w:suff"),this.root.push(new Wn({val:t}))}}class ixt extends Pe{constructor(){super("w:isLgl")}}class sxt extends Pe{constructor({level:t,format:r,text:n,alignment:a=si.START,start:s=1,style:o,suffix:l,isLegalNumberingStyle:c}){if(super("w:lvl"),Ne(this,"paragraphProperties"),Ne(this,"runProperties"),this.root.push(new $w("w:start",_s(s))),r&&this.root.push(new txt(r)),l&&this.root.push(new axt(l)),c&&this.root.push(new ixt),n&&this.root.push(new rxt(n)),this.root.push(new nxt(a)),this.paragraphProperties=new P2(o&&o.paragraph),this.runProperties=new Q0(o&&o.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new ext({ilvl:_s(t),tentative:1}))}}class oxt extends sxt{}class lxt extends Pe{constructor(t){super("w:multiLevelType"),this.root.push(new Wn({val:t}))}}class cxt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class a0e extends Pe{constructor(t,r){super("w:abstractNum"),Ne(this,"id"),this.root.push(new cxt({abstractNumId:_s(t),restartNumberingAfterBreak:0})),this.root.push(new lxt("hybridMultilevel")),this.id=t;for(const n of r)this.root.push(new oxt(n))}}class uxt extends Pe{constructor(t){super("w:abstractNumId"),this.root.push(new Wn({val:t}))}}class dxt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{numId:"w:numId"})}}class i0e extends Pe{constructor(t){if(super("w:num"),Ne(this,"numId"),Ne(this,"reference"),Ne(this,"instance"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new dxt({numId:_s(t.numId)})),this.root.push(new uxt(_s(t.abstractNumId))),t.overrideLevels&&t.overrideLevels.length)for(const r of t.overrideLevels)this.root.push(new fxt(r.num,r.start))}}class hxt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{ilvl:"w:ilvl"})}}class fxt extends Pe{constructor(t,r){super("w:lvlOverride"),this.root.push(new hxt({ilvl:t})),r!==void 0&&this.root.push(new mxt(r))}}class pxt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{val:"w:val"})}}class mxt extends Pe{constructor(t){super("w:startOverride"),this.root.push(new pxt({val:t}))}}class gxt extends Pe{constructor(t){super("w:numbering"),Ne(this,"abstractNumberingMap",new Map),Ne(this,"concreteNumberingMap",new Map),Ne(this,"referenceConfigMap",new Map),Ne(this,"abstractNumUniqueNumericId",gyt()),Ne(this,"concreteNumUniqueNumericId",yyt()),this.root.push(new vG(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const r=new a0e(this.abstractNumUniqueNumericId(),[{level:0,format:Fc.BULLET,text:"â",alignment:si.LEFT,style:{paragraph:{indent:{left:$o(.5),hanging:$o(.25)}}}},{level:1,format:Fc.BULLET,text:"â",alignment:si.LEFT,style:{paragraph:{indent:{left:$o(1),hanging:$o(.25)}}}},{level:2,format:Fc.BULLET,text:"â ",alignment:si.LEFT,style:{paragraph:{indent:{left:2160,hanging:$o(.25)}}}},{level:3,format:Fc.BULLET,text:"â",alignment:si.LEFT,style:{paragraph:{indent:{left:2880,hanging:$o(.25)}}}},{level:4,format:Fc.BULLET,text:"â",alignment:si.LEFT,style:{paragraph:{indent:{left:3600,hanging:$o(.25)}}}},{level:5,format:Fc.BULLET,text:"â ",alignment:si.LEFT,style:{paragraph:{indent:{left:4320,hanging:$o(.25)}}}},{level:6,format:Fc.BULLET,text:"â",alignment:si.LEFT,style:{paragraph:{indent:{left:5040,hanging:$o(.25)}}}},{level:7,format:Fc.BULLET,text:"â",alignment:si.LEFT,style:{paragraph:{indent:{left:5760,hanging:$o(.25)}}}},{level:8,format:Fc.BULLET,text:"â",alignment:si.LEFT,style:{paragraph:{indent:{left:6480,hanging:$o(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new i0e({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const n of t.config)this.abstractNumberingMap.set(n.reference,new a0e(this.abstractNumUniqueNumericId(),n.levels)),this.referenceConfigMap.set(n.reference,n.levels)}
8100prepForXml(t){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(t)}createConcreteNumberingInstance(t,r){const n=this.abstractNumberingMap.get(t);if(!n)return;const a=`${t}-${r}`;if(this.concreteNumberingMap.has(a))return;const s=this.referenceConfigMap.get(t),o=s&&s[0].start,l={numId:this.concreteNumUniqueNumericId(),abstractNumId:n.id,reference:t,instance:r,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(a,new i0e(l))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class yxt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class vxt extends Pe{constructor(t){super("w:compatSetting"),this.root.push(new yxt({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class xxt extends Pe{constructor(t){super("w:compat"),t.version&&this.root.push(new vxt(t.version)),t.useSingleBorderforContiguousCells&&this.root.push(new We("w:useSingleBorderforContiguousCells",t.useSingleBorderforContiguousCells)),t.wordPerfectJustification&&this.root.push(new We("w:wpJustification",t.wordPerfectJustification)),t.noTabStopForHangingIndent&&this.root.push(new We("w:noTabHangInd",t.noTabStopForHangingIndent)),t.noLeading&&this.root.push(new We("w:noLeading",t.noLeading)),t.spaceForUnderline&&this.root.push(new We("w:spaceForUL",t.spaceForUnderline)),t.noColumnBalance&&this.root.push(new We("w:noColumnBalance",t.noColumnBalance)),t.balanceSingleByteDoubleByteWidth&&this.root.push(new We("w:balanceSingleByteDoubleByteWidth",t.balanceSingleByteDoubleByteWidth)),t.noExtraLineSpacing&&this.root.push(new We("w:noExtraLineSpacing",t.noExtraLineSpacing)),t.doNotLeaveBackslashAlone&&this.root.push(new We("w:doNotLeaveBackslashAlone",t.doNotLeaveBackslashAlone)),t.underlineTrailingSpaces&&this.root.push(new We("w:ulTrailSpace",t.underlineTrailingSpaces)),t.doNotExpandShiftReturn&&this.root.push(new We("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.spacingInWholePoints&&this.root.push(new We("w:spacingInWholePoints",t.spacingInWholePoints)),t.lineWrapLikeWord6&&this.root.push(new We("w:lineWrapLikeWord6",t.lineWrapLikeWord6)),t.printBodyTextBeforeHeader&&this.root.push(new We("w:printBodyTextBeforeHeader",t.printBodyTextBeforeHeader)),t.printColorsBlack&&this.root.push(new We("w:printColBlack",t.printColorsBlack)),t.spaceWidth&&this.root.push(new We("w:wpSpaceWidth",t.spaceWidth)),t.showBreaksInFrames&&this.root.push(new We("w:showBreaksInFrames",t.showBreaksInFrames)),t.subFontBySize&&this.root.push(new We("w:subFontBySize",t.subFontBySize)),t.suppressBottomSpacing&&this.root.push(new We("w:suppressBottomSpacing",t.suppressBottomSpacing)),t.suppressTopSpacing&&this.root.push(new We("w:suppressTopSpacing",t.suppressTopSpacing)),t.suppressSpacingAtTopOfPage&&this.root.push(new We("w:suppressSpacingAtTopOfPage",t.suppressSpacingAtTopOfPage)),t.suppressTopSpacingWP&&this.root.push(new We("w:suppressTopSpacingWP",t.suppressTopSpacingWP)),t.suppressSpBfAfterPgBrk&&this.root.push(new We("w:suppressSpBfAfterPgBrk",t.suppressSpBfAfterPgBrk)),t.swapBordersFacingPages&&this.root.push(new We("w:swapBordersFacingPages",t.swapBordersFacingPages)),t.convertMailMergeEsc&&this.root.push(new We("w:convMailMergeEsc",t.convertMailMergeEsc)),t.truncateFontHeightsLikeWP6&&this.root.push(new We("w:truncateFontHeightsLikeWP6",t.truncateFontHeightsLikeWP6)),t.macWordSmallCaps&&this.root.push(new We("w:mwSmallCaps",t.macWordSmallCaps)),t.usePrinterMetrics&&this.root.push(new We("w:usePrinterMetrics",t.usePrinterMetrics)),t.doNotSuppressParagraphBorders&&this.root.push(new We("w:doNotSuppressParagraphBorders",t.doNotSuppressParagraphBorders)),t.wrapTrailSpaces&&this.root.push(new We("w:wrapTrailSpaces",t.wrapTrailSpaces)),t.footnoteLayoutLikeWW8&&this.root.push(new We("w:footnoteLayoutLikeWW8",t.footnoteLayoutLikeWW8)),t.shapeLayoutLikeWW8&&this.root.push(new We("w:shapeLayoutLikeWW8",t.shapeLayoutLikeWW8)),t.alignTablesRowByRow&&this.root.push(new We("w:alignTablesRowByRow",t.alignTablesRowByRow)),t.forgetLastTabAlignment&&this.root.push(new We("w:forgetLastTabAlignment",t.forgetLastTabAlignment)),t.adjustLineHeightInTable&&this.root.push(new We("w:adjustLineHeightInTable",t.adjustLineHeightInTable)),t.autoSpaceLikeWord95&&this.root.push(new We("w:autoSpaceLikeWord95",t.autoSpaceLikeWord95)),t.noSpaceRaiseLower&&this.root.push(new We("w:noSpaceRaiseLower",t.noSpaceRaiseLower)),t.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new We("w:doNotUseHTMLParagraphAutoSpacing",t.doNotUseHTMLParagraphAutoSpacing)),t.layoutRawTableWidth&&this.root.push(new We("w:layoutRawTableWidth",t.layoutRawTableWidth)),t.layoutTableRowsApart&&this.root.push(new We("w:layoutTableRowsApart",t.layoutTableRowsApart)),t.useWord97LineBreakRules&&this.root.push(new We("w:useWord97LineBreakRules",t.useWord97LineBreakRules)),t.doNotBreakWrappedTables&&this.root.push(new We("w:doNotBreakWrappedTables",t.doNotBreakWrappedTables)),t.doNotSnapToGri
8100dInCell&&this.root.push(new We("w:doNotSnapToGridInCell",t.doNotSnapToGridInCell)),t.selectFieldWithFirstOrLastCharacter&&this.root.push(new We("w:selectFldWithFirstOrLastChar",t.selectFieldWithFirstOrLastCharacter)),t.applyBreakingRules&&this.root.push(new We("w:applyBreakingRules",t.applyBreakingRules)),t.doNotWrapTextWithPunctuation&&this.root.push(new We("w:doNotWrapTextWithPunct",t.doNotWrapTextWithPunctuation)),t.doNotUseEastAsianBreakRules&&this.root.push(new We("w:doNotUseEastAsianBreakRules",t.doNotUseEastAsianBreakRules)),t.useWord2002TableStyleRules&&this.root.push(new We("w:useWord2002TableStyleRules",t.useWord2002TableStyleRules)),t.growAutofit&&this.root.push(new We("w:growAutofit",t.growAutofit)),t.useFELayout&&this.root.push(new We("w:useFELayout",t.useFELayout)),t.useNormalStyleForList&&this.root.push(new We("w:useNormalStyleForList",t.useNormalStyleForList)),t.doNotUseIndentAsNumberingTabStop&&this.root.push(new We("w:doNotUseIndentAsNumberingTabStop",t.doNotUseIndentAsNumberingTabStop)),t.useAlternateEastAsianLineBreakRules&&this.root.push(new We("w:useAltKinsokuLineBreakRules",t.useAlternateEastAsianLineBreakRules)),t.allowSpaceOfSameStyleInTable&&this.root.push(new We("w:allowSpaceOfSameStyleInTable",t.allowSpaceOfSameStyleInTable)),t.doNotSuppressIndentation&&this.root.push(new We("w:doNotSuppressIndentation",t.doNotSuppressIndentation)),t.doNotAutofitConstrainedTables&&this.root.push(new We("w:doNotAutofitConstrainedTables",t.doNotAutofitConstrainedTables)),t.autofitToFirstFixedWidthCell&&this.root.push(new We("w:autofitToFirstFixedWidthCell",t.autofitToFirstFixedWidthCell)),t.underlineTabInNumberingList&&this.root.push(new We("w:underlineTabInNumList",t.underlineTabInNumberingList)),t.displayHangulFixedWidth&&this.root.push(new We("w:displayHangulFixedWidth",t.displayHangulFixedWidth)),t.splitPgBreakAndParaMark&&this.root.push(new We("w:splitPgBreakAndParaMark",t.splitPgBreakAndParaMark)),t.doNotVerticallyAlignCellWithSp&&this.root.push(new We("w:doNotVertAlignCellWithSp",t.doNotVerticallyAlignCellWithSp)),t.doNotBreakConstrainedForcedTable&&this.root.push(new We("w:doNotBreakConstrainedForcedTable",t.doNotBreakConstrainedForcedTable)),t.ignoreVerticalAlignmentInTextboxes&&this.root.push(new We("w:doNotVertAlignInTxbx",t.ignoreVerticalAlignmentInTextboxes)),t.useAnsiKerningPairs&&this.root.push(new We("w:useAnsiKerningPairs",t.useAnsiKerningPairs)),t.cachedColumnBalance&&this.root.push(new We("w:cachedColBalance",t.cachedColumnBalance))}}class bxt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class wxt extends Pe{constructor(t){var r,n,a,s,o,l,c,u;super("w:settings"),this.root.push(new bxt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new We("w:displayBackgroundShape",!0)),t.trackRevisions!==void 0&&this.root.push(new We("w:trackRevisions",t.trackRevisions)),t.evenAndOddHeaders!==void 0&&this.root.push(new We("w:evenAndOddHeaders",t.evenAndOddHeaders)),t.updateFields!==void 0&&this.root.push(new We("w:updateFields",t.updateFields)),t.defaultTabStop!==void 0&&this.root.push(new $w("w:defaultTabStop",t.defaultTabStop)),((r=t.hyphenation)==null?void 0:r.autoHyphenation)!==void 0&&this.root.push(new We("w:autoHyphenation",t.hy
8100phenation.autoHyphenation)),((n=t.hyphenation)==null?void 0:n.hyphenationZone)!==void 0&&this.root.push(new $w("w:hyphenationZone",t.hyphenation.hyphenationZone)),((a=t.hyphenation)==null?void 0:a.consecutiveHyphenLimit)!==void 0&&this.root.push(new $w("w:consecutiveHyphenLimit",t.hyphenation.consecutiveHyphenLimit)),((s=t.hyphenation)==null?void 0:s.doNotHyphenateCaps)!==void 0&&this.root.push(new We("w:doNotHyphenateCaps",t.hyphenation.doNotHyphenateCaps)),this.root.push(new xxt(Tu(ur({},(o=t.compatibility)!=null?o:{}),{version:(u=(c=(l=t.compatibility)==null?void 0:l.version)!=null?c:t.compatibilityModeVersion)!=null?u:15})))}}class n8e extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{val:"w:val"})}}class kxt extends Pe{constructor(t){super("w:name"),this.root.push(new n8e({val:t}))}}class _xt extends Pe{constructor(t){super("w:uiPriority"),this.root.push(new n8e({val:_s(t)}))}}class Sxt extends Lt{constructor(){super(...arguments),Ne(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class a8e extends Pe{constructor(t,r){super("w:style"),this.root.push(new Sxt(t)),r.name&&this.root.push(new kxt(r.name)),r.basedOn&&this.root.push(new zy("w:basedOn",r.basedOn)),r.next&&this.root.push(new zy("w:next",r.next)),r.link&&this.root.push(new zy("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new _xt(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new We("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new We("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new We("w:qFormat",r.quickFormat))}}class xG extends a8e{constructor(t){super({type:"paragraph",styleId:t.id},t),Ne(this,"paragraphProperties"),Ne(this,"runProperties"),this.paragraphProperties=new P2(t.paragraph),this.runProperties=new Q0(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class bG extends a8e{constructor(t){super({type:"character",styleId:t.id},ur({uiPriority:99,unhideWhenUsed:!0},t)),Ne(this,"runProperties"),this.runProperties=new Q0(t.run),this.root.push(this.runProperties)}}class Eh extends xG{constructor(t){super(ur({basedOn:"Normal",next:"Normal",quickFormat:!0},t))}}class jxt extends Eh{constructor(t){super(ur({id:"Title",name:"Title"},t))}}class Ext extends Eh{constructor(t){super(ur({id:"Heading1",name:"Heading 1"},t))}}class Cxt extends Eh{constructor(t){super(ur({id:"Heading2",name:"Heading 2"},t))}}class Nxt extends Eh{constructor(t){super(ur({id:"Heading3",name:"Heading 3"},t))}}class Txt extends Eh{constructor(t){super(ur({id:"Heading4",name:"Heading 4"},t))}}class Axt extends Eh{constructor(t){super(ur({id:"Heading5",name:"Heading 5"},t))}}class Mxt extends Eh{constructor(t){super(ur({id:"Heading6",name:"Heading 6"},t))}}class Ixt extends Eh{constructor(t){super(ur({id:"Strong",name:"Strong"},t))}}class Pxt extends xG{constructor(t){super(ur({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},t))}}class Lxt extends xG{constructor(t){super(ur({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Yte.AUTO}},run:{size:20}},t))}}class Oxt extends bG{constructor(t){super(ur({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},t))}}class Rxt extends bG{constructor(t){super(ur({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},t))}}class Dxt extends bG{constructor(t){super(ur({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:qNe.SINGLE}}},t))}}class Zte extends Pe{constructor(t){if(super("w:styles"),t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(const r of t.importedStyles)this.root.push(r);if(t.paragraphStyles)for(const r of t.paragraphStyles)this.root.push(new xG(r));if(t.characterStyles)for(const r of t.characterStyles)this.root.push(new bG(r))}}class Fxt extends Pe{constructor(t){super("w:pPrDefault"),this.root.push(new P2(t))}}class $xt extends Pe{constructor(t){super("w:rPrDefault"),this.root.push(new Q0(t))}}class Bxt extends Pe{constructor(t){super("w:docDefaults"),Ne(this,"runPropertiesDefaults"),Ne(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new $xt(t.run),this.paragraphPropertiesDefaults=new Fxt(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class zxt{newInstance(t){const r=RNe.xml2js(t,{compact:!1});let n;for(const o of r.elements||[])o.name==="w:styles"&&(n=o);if(n===void 0)throw new Error("can not find styles element");const a=n.elements||[];return new Zte({initialStyles:new Ngt(n.attributes),importedStyles:a.map(o=>eoe(o))})}}class s0e{newInstance(t={}){var r;return{initialStyles:new vG(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new Bxt((r=t.document)!=null?r:{}),new jxt(ur({run:{size:56}},t.title)),new Ext(ur({run:{color:"2E74B5",size:32}},t.heading1)),new Cxt(ur({run:{color:"2E74B5",size:26}}
8100,t.heading2)),new Nxt(ur({run:{color:"1F4D78",size:24}},t.heading3)),new Txt(ur({run:{color:"2E74B5",italics:!0}},t.heading4)),new Axt(ur({run:{color:"2E74B5"}},t.heading5)),new Mxt(ur({run:{color:"1F4D78"}},t.heading6)),new Ixt(ur({run:{bold:!0}},t.strong)),new Pxt(t.listParagraph||{}),new Dxt(t.hyperlink||{}),new Oxt(t.footnoteReference||{}),new Lxt(t.footnoteText||{}),new Rxt(t.footnoteTextChar||{})]}}}let Uxt=class{constructor(t){Ne(this,"currentRelationshipId",1),Ne(this,"documentWrapper"),Ne(this,"headers",[]),Ne(this,"footers",[]),Ne(this,"coreProperties"),Ne(this,"numbering"),Ne(this,"media"),Ne(this,"fileRelationships"),Ne(this,"footnotesWrapper"),Ne(this,"settings"),Ne(this,"contentTypes"),Ne(this,"customProperties"),Ne(this,"appProperties"),Ne(this,"styles"),Ne(this,"comments"),Ne(this,"fontWrapper");var r,n,a,s,o,l,c,u,d,h,f,p;if(this.coreProperties=new Evt(Tu(ur({},t),{creator:(r=t.creator)!=null?r:"Un-named",revision:(n=t.revision)!=null?n:1,lastModifiedBy:(a=t.lastModifiedBy)!=null?a:"Un-named"})),this.numbering=new gxt(t.numbering?t.numbering:{config:[]}),this.comments=new T2t((s=t.comments)!=null?s:{children:[]}),this.fileRelationships=new J0,this.customProperties=new Ivt((o=t.customProperties)!=null?o:[]),this.appProperties=new wvt,this.footnotesWrapper=new Yvt,this.contentTypes=new jvt,this.documentWrapper=new r8e({background:t.background}),this.settings=new wxt({compatibilityModeVersion:t.compatabilityModeVersion,compatibility:t.compatibility,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:(l=t.features)==null?void 0:l.trackRevisions,updateFields:(c=t.features)==null?void 0:c.updateFields,defaultTabStop:t.defaultTabStop,hyphenation:{autoHyphenation:(u=t.hyphenation)==null?void 0:u.autoHyphenation,hyphenationZone:(d=t.hyphenation)==null?void 0:d.hyphenationZone,consecutiveHyphenLimit:(h=t.hyphenation)==null?void 0:h.consecutiveHyphenLimit,doNotHyphenateCaps:(f=t.hyphenation)==null?void 0:f.doNotHyphenateCaps}}),this.media=new Jvt,t.externalStyles!==void 0){const y=new zxt;this.styles=y.newInstance(t.externalStyles)}else if(t.styles){const m=new s0e().newInstance(t.styles.default);this.styles=new Zte(ur(ur({},m),t.styles))}else{const y=new s0e;this.styles=new Zte(y.newInstance())}this.addDefaultRelationships();for(const y of t.sections)this.addSection(y);if(t.footnotes)for(const y in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(y),t.footnotes[y].children);this.fontWrapper=new Rvt((p=t.fonts)!=null?p:[])}addSection({headers:t={},footers:r={},children:n,properties:a}){this.documentWrapper.View.Body.addSection(Tu(ur({},a),{headerWrapperGroup:{default:t.default?this.createHeader(t.default):void 0,first:t.first?this.createHeader(t.first):void 0,even:t.even?this.createHeader(t.even):void 0},footerWrapperGroup:{default:r.default?this.createFooter(r.default):void 0,first:r.first?this.createFooter(r.first):void 0,even:r.even?this.createFooter(r.even):void 0}}));for(const s of n)this.documentWrapper.View.add(s)}createHeader(t){const r=new Qvt(this.media,this.currentRelationshipId++);for(const n of t.options.children)r.add(n);return this.addHeaderToDocument(r),r}createFooter(t){const r=new $vt(this.media,this.currentRelationshipId++);for(const n of t.options.children)r.add(n);return this.addFooterToDocument(r),r}addHeaderToDocument(t,r=Uy.DEFAULT){this.headers.push({header:t,type:r}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t,r=Uy.DEFAULT){this.footers.push({footer:t,type:r}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(t=>t.header)}get Footers(){return this.footers.map(t=>t.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}};var qxt=Zse();function Q3(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var lQ={exports:{}},o0e;function Hxt(){return o0e||(o0e=1,function(e,t){(function(r){e.exports=r()})(function(){return function r(n,a,s){function o(u,d){if(!a[u]){if(!n[u]){var h=typeof Q3=="function"&&Q3;if(!d&&h)return h(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=a[u]={exports:{}};n[u][0].call(p.exports,function(y){var m=n[u][1][y];return o(m||y)},p,p.exports,r,n,a,s)}return a[u].exports}for(var l=typeof Q3=="function"&&Q3,c=0;c<s.length;c++)o(s[c]);return o}({1:[function(r,n,a){var s=r("./utils"),o=r("./support"),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 10,578 bytes, lines 8100-8101
8100+/=";a.encode=function(c){for(var u,d,h,f,p,y,m,v=[],g=0,b=c.length,x=b,_=s.getTypeOf(c)!=="string";g<c.length;)x=b-g,h=_?(u=c[g++],d=g<b?c[g++]:0,g<b?c[g++]:0):(u=c.charCodeAt(g++),d=g<b?c.charCodeAt(g++):0,g<b?c.charCodeAt(g++):0),f=u>>2,p=(3&u)<<4|d>>4,y=1<x?(15&d)<<2|h>>6:64,m=2<x?63&h:64,v.push(l.charAt(f)+l.charAt(p)+l.charAt(y)+l.charAt(m));return v.join("")},a.decode=function(c){var u,d,h,f,p,y,m=0,v=0,g="data:";if(c.substr(0,g.length)===g)throw new Error("Invalid base64 input, it looks like a data url.");var b,x=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===l.charAt(64)&&x--,c.charAt(c.length-2)===l.charAt(64)&&x--,x%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=o.uint8array?new Uint8Array(0|x):new Array(0|x);m<c.length;)u=l.indexOf(c.charAt(m++))<<2|(f=l.indexOf(c.charAt(m++)))>>4,d=(15&f)<<4|(p=l.indexOf(c.charAt(m++)))>>2,h=(3&p)<<6|(y=l.indexOf(c.charAt(m++))),b[v++]=u,p!==64&&(b[v++]=d),y!==64&&(b[v++]=h);return b}},{"./support":30,"./utils":32}],2:[function(r,n,a){var s=r("./external"),o=r("./stream/DataWorker"),l=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function u(d,h,f,p,y){this.compressedSize=d,this.uncompressedSize=h,this.crc32=f,this.compression=p,this.compressedContent=y}u.prototype={getContentWorker:function(){var d=new o(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),h=this;return d.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new o(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(d,h,f){return d.pipe(new l).pipe(new c("uncompressedSize")).pipe(h.compressWorker(f)).pipe(new c("compressedSize")).withStreamInfo("compression",h)},n.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,a){var s=r("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},a.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,a){var s=r("./utils"),o=function(){for(var l,c=[],u=0;u<256;u++){l=u;for(var d=0;d<8;d++)l=1&l?3988292384^l>>>1:l>>>1;c[u]=l}return c}();n.exports=function(l,c){return l!==void 0&&l.length?s.getTypeOf(l)!=="string"?function(u,d,h,f){var p=o,y=f+h;u^=-1;for(var m=f;m<y;m++)u=u>>>8^p[255&(u^d[m])];return-1^u}(0|c,l,l.length,0):function(u,d,h,f){var p=o,y=f+h;u^=-1;for(var m=f;m<y;m++)u=u>>>8^p[255&(u^d.charCodeAt(m))];return-1^u}(0|c,l,l.length,0):0}},{"./utils":32}],5:[function(r,n,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(r,n,a){var s=null;s=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:s}},{lie:37}],7:[function(r,n,a){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),l=r("./utils"),c=r("./stream/GenericWorker"),u=s?"uint8array":"array";function d(h,f){c.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=f,this.meta={}}a.magic="\b\0",l.inherits(d,c),d.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(l.transformTo(u,h.data),!1)},d.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(f){h.push({data:f,meta:h.meta})}},a.compressWorker=function(h){return new d("Deflate",h)},a.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,a){function s(p,y){var m,v="";for(m=0;m<y;m++)v+=String.fromCharCode(255&p),p>>>=8;return v}function o(p,y,m,v,g,b){var x,_,w=p.file,j=p.compression,E=b!==u.utf8encode,C=l.transformTo("string",b(w.name)),N=l.transformTo("string",u.utf8encode(w.name)),A=w.comment,$=l.transformTo("string",b(A)),T=l.transformTo("string",u.utf8encode(A)),F=N.length!==w.name.length,M=T.length!==A.length,z="",Y="",W="",ee=w.dir,Z=w.date,V={crc32:0,compressedSize:0,uncompressedSize:0};y&&!m||(V.crc32=p.crc32,V.compressedSize=p.compressedSize,V.uncompressedSize=p.uncompressedSize);var ne=0;y&&(ne|=8),E||!F&&!M||(ne|=2048);var P=0,R=0;ee&&(P|=16),g==="UNIX"?(R=798,P|=function(re,ae){var D=re;return re||(D=ae?16893:33204),(65535&D)<<16}(w.unixPermissions,ee)):(R=20,P|=function(re){return 63&(re||0)}(w.dosPermissions)),x=Z.getUTCHours(),x<<=6,x|=Z.getUTCMinutes(),x<<=5,x|=Z.getUTCSeconds()/2,_=Z.getUTCFullYear()-1980,_<<=4,_|=Z.getUTCMonth()+1,_<<=5,_|=Z.getUTCDate(),F&&(Y=s(1,1)+s(d(C),4)+N,z+="up"+s(Y.length,2)+Y),M&&(W=s(1,1)+s(d($),4)+T,z+="uc"+s(W.length,2)+W);var H="";return H+=` 8101\0`,H+=s(ne,2),H+=j.magic,H+=s(x,2),H+=s(_,2),H+=s(V.crc32,4),H+=s(V.compressedSize,4),H+=s(V.uncompressedSize,4),H+=s(C.length,2),H+=s(z.length,2),{fileRecord:h.LOCAL_FILE_HEADER+H+C+z,dirRecord:h.CENTRAL_FILE_HEADER+s(R,2)+H+s($.length,2)+"\0\0\0\0"+s(P,4)+s(v,4)+C+z+$}}var l=r("../utils"),c=r("../stream/GenericWorker"),u=r("../utf8"),d=r("../crc32"),h=r("../signature");function f(p,y,m,v){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=y,this.zipPlatform=m,this.encodeFileName=v,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l.inherits(f,c),f.prototype.push=function(p){var y=p.meta.percent||0,m=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:m?(y+100*(m-v-1))/m:100}}))},f.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var y=this.streamFiles&&!p.file.dir;if(y){var m=o(p,y,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(p){this.accumulate=!1;var y=this.streamFiles&&!p.file.dir,m=o(p,y,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),y)this.push({data:function(v){return h.DATA_DESCRIPTOR+s(v.crc32,4)+s(v.compressedSize,4)+s(v.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var p=this.bytesWritten,y=0;y<this.dirRecords.length;y++)this.push({data:this.dirRecords[y],meta:{percent:100}});var m=this.bytesWritten-p,v=function(g,b,x,_,w){var j=l.transformTo("string",w(_));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(g,2)+s(g,2)+s(b,4)+s(x,4)+s(j.length,2)+j}(this.dirRecords.length,m,p,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(p){this._sources.push(p);var y=this;return p.on("data",function(m){y.processChunk(m)}),p.on("end",function(){y.closedSource(y.previous.streamInfo),y._sources.length?y.prepareNextSource():y.end()}),p.on("error",function(m){y.error(m)}),this},f.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(p){var y=this._sources;if(!c.prototype.error.call(this,p))return!1;for(var m=0;m<y.length;m++)try{y[m].error(p)}catch{}return!0},f.prototype.lock=function(){c.prototype.lock.call(this);for(var p=this._sources,y=0;y<p.length;y++)p[y].lock()},n.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,a){var s=r("../compressions"),o=r("./ZipFileWorker");a.generateWorker=function(l,c,u){var d=new o(c.streamFiles,u,c.platform,c.encodeFileName),h=0;try{l.forEach(function(f,p){h++;var y=function(b,x){var _=b||x,w=s[_];if(!w)throw new Error(_+" is not a valid compression method !");return w}(p.options.compression,c.compression),m=p.options.compressionOptions||c.compressionOptions||{},v=p.dir,g=p.date;p._compressWorker(y,m).withStreamInfo("file",{name:f,dir:v,date:g,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(d)}),d.entriesCount=h}catch(f){d.error(f)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,a){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new s;for(var l in this)typeof this[l]!="function"&&(o[l]=this[l]);return o}}(s.prototype=r("./object")).loadAsync=r("./load"),s.support=r("./support"),s.defaults=r("./defaults"),s.version="3.10.1",s.loadAsync=function(o,l){return new s().loadAsync(o,l)},s.external=r("./external"),n.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,a){var s=r("./utils"),o=r("./external"),l=r("./utf8"),c=r("./zipEntries"),u=r("./stream/Crc32Probe"),d=r("./nodejsUtils");function h(f){return new o.Promise(function(p,y){var m=f.decompressed.getContentWorker().pipe(new u);m.on("error",function(v){y(v)}).on("end",function(){m.streamInfo.crc32!==f.decompressed.crc32?y(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}n.exports=function(f,p){var y=this;return p=s.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:l.utf8decode}),d.isNode&&d.isStream(f)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip f
8101ile",f,!0,p.optimizedBinaryString,p.base64).then(function(m){var v=new c(p);return v.load(m),v}).then(function(m){var v=[o.Promise.resolve(m)],g=m.files;if(p.checkCRC32)for(var b=0;b<g.length;b++)v.push(h(g[b]));return o.Promise.all(v)}).then(function(m){for(var v=m.shift(),g=v.files,b=0;b<g.length;b++){var x=g[b],_=x.fileNameStr,w=s.resolve(x.fileNameStr);y.file(w,x.decompressed,{binary:!0,optimizedBinaryString:!0,date:x.date,dir:x.dir,comment:x.fileCommentStr.length?x.fileCommentStr:null,unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions,createFolders:p.createFolders}),x.dir||(y.file(w).unsafeOriginalName=_)}return v.zipComment.length&&(y.comment=v.zipComment),y})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,n,a){var s=r("../utils"),o=r("../stream/GenericWorker");function l(c,u){o.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(u)}s.inherits(l,o),l.prototype._bindStream=function(c){var u=this;(this._stream=c).pause(),c.on("data",function(d){u.push({data:d,meta:{percent:0}})}).on("error",function(d){u.isPaused?this.generatedError=d:u.error(d)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},l.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},l.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=l},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,n,a){var s=r("readable-stream").Readable;function o(l,c,u){s.call(this,c),this._helper=l;var d=this;l.on("data",function(h,f){d.push(h)||d._helper.pause(),u&&u(f)}).on("error",function(h){d.emit("error",h)}).on("end",function(){d.push(null)})}r("../utils").inherits(o,s),o.prototype._read=function(){this._helper.resume()},n.exports=o},{"../utils":32,"readable-stream":16}],14:[function(r,n,a){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,o);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,o)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var o=new Buffer(s);return o.fill(0),o},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(r,n,a){function s(w,j,E){var C,N=l.getTypeOf(j),A=l.extend(E||{},d);A.date=A.date||new Date,A.compression!==null&&(A.compression=A.compression.toUpperCase()),typeof A.unixPermissions=="string"&&(A.unixPermissions=parseInt(A.unixPermissions,8)),A.unixPermissions&&16384&A.unixPermissions&&(A.dir=!0),A.dosPermissions&&16&A.dosPermissions&&(A.dir=!0),A.dir&&(w=g(w)),A.createFolders&&(C=v(w))&&b.call(this,C,!0);var $=N==="string"&&A.binary===!1&&A.base64===!1;E&&E.binary!==void 0||(A.binary=!$),(j instanceof h&&j.uncompressedSize===0||A.dir||!j||j.length===0)&&(A.base64=!1,A.binary=!0,j="",A.compression="STORE",N="string");var T=null;T=j instanceof h||j instanceof c?j:y.isNode&&y.isStream(j)?new m(w,j):l.prepareContent(w,j,A.binary,A.optimizedBinaryString,A.base64);var F=new f(w,T,A);this.files[w]=F}var o=r("./utf8"),l=r("./utils"),c=r("./stream/GenericWorker"),u=r("./stream/StreamHelper"),d=r("./defaults"),h=r("./compressedObject"),f=r("./zipObject"),p=r("./generate"),y=r("./nodejsUtils"),m=r("./nodejs/NodejsStreamInputAdapter"),v=function(w){w.slice(-1)==="/"&&(w=w.substring(0,w.length-1));var j=w.lastIndexOf("/");return 0<j?w.substring(0,j):""},g=function(w){return w.slice(-1)!=="/"&&(w+="/"),w},b=function(w,j){return j=j!==void 0?j:d.createFolders,w=g(w),this.files[w]||s.call(this,w,null,{dir:!0,createFolders:j}),this.files[w]};function x(w){return Object.prototype.toString.call(w)==="[object RegExp]"}var _={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(w){var j,E,C;for(j in this.files)C=this.files[j],(E=j.slice(this.root.length,j.length))&&j.slice(0,this.root.length)===this.root&&w(E,C)},filter:function(w){var j=[];return this.forEach(function(E,C){w(E,C)&&j.push(C)}),j},file:function(w,j,E){if(arguments.length!==1)return w=this.root+w,s.call(this,w,j,E),this;if(x(w)){var C=w;return this.filter(function(A,$){return!$.dir&&C.test(A)})}var N=this.files[this.root+w];return N&&!N.dir?N:null},folder:function(w){if(!w)return this;if(x(w))return this.filter(function(N,A){return A.dir&&w.test(N)});var j=this.root+w,E=b.call(this,j),C=this.clone();return C.root=E.name,C}
vendor: 17,890 bytes, line 8101
8101,remove:function(w){w=this.root+w;var j=this.files[w];if(j||(w.slice(-1)!=="/"&&(w+="/"),j=this.files[w]),j&&!j.dir)delete this.files[w];else for(var E=this.filter(function(N,A){return A.name.slice(0,w.length)===w}),C=0;C<E.length;C++)delete this.files[E[C].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(w){var j,E={};try{if((E=l.extend(w||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=E.type.toLowerCase(),E.compression=E.compression.toUpperCase(),E.type==="binarystring"&&(E.type="string"),!E.type)throw new Error("No output type specified.");l.checkSupport(E.type),E.platform!=="darwin"&&E.platform!=="freebsd"&&E.platform!=="linux"&&E.platform!=="sunos"||(E.platform="UNIX"),E.platform==="win32"&&(E.platform="DOS");var C=E.comment||this.comment||"";j=p.generateWorker(this,E,C)}catch(N){(j=new c("error")).error(N)}return new u(j,E.type||"string",E.mimeType)},generateAsync:function(w,j){return this.generateInternalStream(w).accumulate(j)},generateNodeStream:function(w,j){return(w=w||{}).type||(w.type="nodebuffer"),this.generateInternalStream(w).toNodejsStream(j)}};n.exports=_},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,n,a){n.exports=r("stream")},{stream:void 0}],17:[function(r,n,a){var s=r("./DataReader");function o(l){s.call(this,l);for(var c=0;c<this.data.length;c++)l[c]=255&l[c]}r("../utils").inherits(o,s),o.prototype.byteAt=function(l){return this.data[this.zero+l]},o.prototype.lastIndexOfSignature=function(l){for(var c=l.charCodeAt(0),u=l.charCodeAt(1),d=l.charCodeAt(2),h=l.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===c&&this.data[f+1]===u&&this.data[f+2]===d&&this.data[f+3]===h)return f-this.zero;return-1},o.prototype.readAndCheckSignature=function(l){var c=l.charCodeAt(0),u=l.charCodeAt(1),d=l.charCodeAt(2),h=l.charCodeAt(3),f=this.readData(4);return c===f[0]&&u===f[1]&&d===f[2]&&h===f[3]},o.prototype.readData=function(l){if(this.checkOffset(l),l===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,c},n.exports=o},{"../utils":32,"./DataReader":18}],18:[function(r,n,a){var s=r("../utils");function o(l){this.data=l,this.length=l.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(l){this.checkIndex(this.index+l)},checkIndex:function(l){if(this.length<this.zero+l||l<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+l+"). Corrupted zip ?")},setIndex:function(l){this.checkIndex(l),this.index=l},skip:function(l){this.setIndex(this.index+l)},byteAt:function(){},readInt:function(l){var c,u=0;for(this.checkOffset(l),c=this.index+l-1;c>=this.index;c--)u=(u<<8)+this.byteAt(c);return this.index+=l,u},readString:function(l){return s.transformTo("string",this.readData(l))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var l=this.readInt(4);return new Date(Date.UTC(1980+(l>>25&127),(l>>21&15)-1,l>>16&31,l>>11&31,l>>5&63,(31&l)<<1))}},n.exports=o},{"../utils":32}],19:[function(r,n,a){var s=r("./Uint8ArrayReader");function o(l){s.call(this,l)}r("../utils").inherits(o,s),o.prototype.readData=function(l){this.checkOffset(l);var c=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,c},n.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,a){var s=r("./DataReader");function o(l){s.call(this,l)}r("../utils").inherits(o,s),o.prototype.byteAt=function(l){return this.data.charCodeAt(this.zero+l)},o.prototype.lastIndexOfSignature=function(l){return this.data.lastIndexOf(l)-this.zero},o.prototype.readAndCheckSignature=function(l){return l===this.readData(4)},o.prototype.readData=function(l){this.checkOffset(l);var c=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,c},n.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,n,a){var s=r("./ArrayReader");function o(l){s.call(this,l)}r("../utils").inherits(o,s),o.prototype.readData=function(l){if(this.checkOffset(l),l===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+l);return this.index+=l,c},n.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,a){var s=r("../utils"),o=r("../support"),l=r("./ArrayReader"),c=r("./StringReader"),u=r("./NodeBufferReader"),d=r("./Uint8ArrayReader");n.exports=function(h){var f=s.getTypeOf(h);return s.checkSupport(f),f!=="string"||o.uint8array?f==="nodebuffer"?new u(h):o.uint8array?new d(s.transformTo("uint8array",h)):new l(s.transformTo("array",h)):new c(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,a){a.LOCAL_FILE_HEADER="PK��",a.CENTRAL_FILE_HEADER="PK��",a.CENTRAL_DIRECTORY_END="PK��",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK��",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,a){var s=r("./GenericWorker"),o=r("../utils");function l(c){s.call(this,"ConvertWorker to "+c),this.destType=c}o.inherits(l,s),l.prototype.processChunk=function(c){this.push({data:o.transformTo(this.destType,c.data),meta:c.meta})},n.exports=l},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,a){var s=r("./GenericWorker"),o=r("../crc32");function l(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(l,s),l.prototype.processChunk=function(c){this.streamInfo.crc32=o(c.data,this.streamInfo.crc32||0),this.push(c)},n.exports=l},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,a){var s=r("../utils"),o=r("./GenericWorker");function l(c){o.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}s.inherits(l,o),l.prototype.processChunk=function(c){if(c){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+c.data.length}o.prototype.processChunk.call(this,c)},n.exports=l},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,a){var s=r("../utils"),o=r("./GenericWorker");function l(c){o.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(d){u.dataIsReady=!0,u.data=d,u.max=d&&d.length||0,u.type=s.getTypeOf(d),u.isPaused||u._tickAndRepeat()},function(d){u.error(d)})}s.inherits(l,o),l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},l.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},l.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},l.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,u);break;case"uint8array":c=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":c=this.data.slice(this.index,u)}return this.index=u,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=l},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,a){function s(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,l){return this._listeners[o].push(l),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,l){if(this._listeners[o])for(var c=0;c<this._listeners[o].length;c++)this._listeners[o][c].call(this,l)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var l=this;return o.on("data",function(c){l.processChunk(c)}),o.on("end",function(){l.end()}),o.on("error",function(c){l.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,l){return this.extraStreamInfo[o]=l,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},n.exports=s},{}],29:[function(r,n,a){var s=r("../utils"),o=r("./ConvertWorker"),l=r("./GenericWorker"),c=r("../base64"),u=r("../support"),d=r("../external"),h=null;if(u.nodestream)try{h=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(y,m){return new d.Promise(function(v,g){var b=[],x=y._internalType,_=y._outputType,w=y._mimeType;y.on("data",function(j,E){b.push(j),m&&m(E)}).on("error",function(j){b=[],g(j)}).on("end",function(){try{var j=function(E,C,N){switch(E){case"blob":return s.newBlob(s.transformTo("arraybuffer",C),N);case"base64":return c.encode(C);default:return s.transformTo(E,C)}}(_,function(E,C){var N,A=0,$=null,T=0;for(N=0;N<C.length;N++)T+=C[N].length;switch(E){case"string":return C.join("");case"array":return Array.prototype.concat.apply([],C);case"uint8array":for($=new Uint8Array(T),N=0;N<C.length;N++)$.set(C[N],A),A+=C[N].length;return $;case"nodebuffer":return Buffer.concat(C);default:throw new Error("concat : unsupported type '"+E+"'")}}(x,b),w);v(j)}catch(E){g(E)}b=[]}).resume()})}function p(y,m,v){var g=m;switch(m){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=m,this._mimeType=v,s.checkSupport(g),this._worker=y.pipe(new o(g)),y.lock()}catch(b){this._worker=new l("error"),this._worker.error(b)}}p.prototype={accumulate:function(y){return f(this,y)},on:function(y,m){var v=this;return y==="data"?this._worker.on(y,function(g){m.call(v,g.data,g.meta)}):this._worker.on(y,function(){s.delay(m,arguments,v)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(y){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},y)}},n.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,n,a){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a.nodebuffer=typeof Buffer<"u",a.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")a.blob=!1;else{var s=new ArrayBuffer(0);try{a.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(s),a.blob=o.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!r("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,a){for(var s=r("./utils"),o=r("./support"),l=r("./nodejsUtils"),c=r("./stream/GenericWorker"),u=new Array(256),d=0;d<256;d++)u[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;u[254]=u[254]=1;function h(){c.call(this,"utf-8 decode"),this.leftOver=null}function f(){c.call(this,"utf-8 encode")}a.utf8encode=function(p){return o.nodebuffer?l.newBufferFrom(p,"utf-8"):function(y){var m,v,g,b,x,_=y.length,w=0;for(b=0;b<_;b++)(64512&(v=y.charCodeAt(b)))==55296&&b+1<_&&(64512&(g=y.charCodeAt(b+1)))==56320&&(v=65536+(v-55296<<10)+(g-56320),b++),w+=v<128?1:v<2048?2:v<65536?3:4;for(m=o.uint8array?new Uint8Array(w):new Array(w),b=x=0;x<w;b++)(64512&(v=y.charCodeAt(b)))==55296&&b+1<_&&(64512&(g=y.charCodeAt(b+1)))==56320&&(v=65536+(v-55296<<10)+(g-56320),b++),v<128?m[x++]=v:(v<2048?m[x++]=192|v>>>6:(v<65536?m[x++]=224|v>>>12:(m[x++]=240|v>>>18,m[x++]=128|v>>>12&63),m[x++]=128|v>>>6&63),m[x++]=128|63&v);return m}(p)},a.utf8decode=function(p){return o.nodebuffer?s.transformTo("nodebuffer",p).toString("utf-8"):function(y){var m,v,g,b,x=y.length,_=new Array(2*x);for(m=v=0;m<x;)if((g=y[m++])<128)_[v++]=g;else if(4<(b=u[g]))_[v++]=65533,m+=b-1;else{for(g&=b===2?31:b===3?15:7;1<b&&m<x;)g=g<<6|63&y[m++],b--;1<b?_[v++]=65533:g<65536?_[v++]=g:(g-=65536,_[v++]=55296|g>>10&1023,_[v++]=56320|1023&g)}return _.length!==v&&(_.subarray?_=_.subarray(0,v):_.length=v),s.applyFromCharCode(_)}(p=s.transformTo(o.uint8array?"uint8array":"array",p))},s.inherits(h,c),h.prototype.processChunk=function(p){var y=s.transformTo(o.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var m=y;(y=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),y.set(m,this.leftOver.length)}else y=this.leftOver.concat(y);this.leftOver=null}var v=function(b,x){var _;for((x=x||b.length)>b.length&&(x=b.length),_=x-1;0<=_&&(192&b[_])==128;)_--;return _<0||_===0?x:_+u[b[_]]>x?_:x}(y),g=y;v!==y.length&&(o.uint8array?(g=y.subarray(0,v),this.leftOver=y.subarray(v,y.length)):(g=y.slice(0,v),this.leftOver=y.slice(v,y.length))),this.push({data:a.utf8decode(g),meta:p.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=h,s.inherits(f,c),f.prototype.processChunk=function(p){this.push({data:a.utf8encode(p.data),meta:p.meta})},a.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,a){var s=r("./support"),o=r("./base64"),l=r("./nodejsUtils"),c=r("./external");function u(m){return m}function d(m,v){for(var g=0;g<m.length;++g)v[g]=255&m.charCodeAt(g);return v}r("setimmediate"),a.newBlob=function(m,v){a.checkSupport("blob");try{return new Blob([m],{type:v})}catch{try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return g.append(m),g.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(m,v,g){var b=[],x=0,_=m.length;if(_<=g)return String.fromCharCode.apply(null,m);for(;x<_;)v==="array"||v==="nodebuffer"?b.push(String.fromCharCode.apply(null,m.slice(x,Math.min(x+g,_)))):b.push(String.fromCharCode.apply(null,m.subarray(x,Math.min(x+g,_)))),x+=g;return b.join("")},stringifyByChar:function(m){for(var v="",g=0;g<m.length;g++)v+=String.fromCharCode(m[g]);return v},applyCanBeUsed:{uint8array:function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,l.allocBuffer(1)).length===1}catch{return!1}}()}};function f(m){var v=65536,g=a.getTypeOf(m),b=!0;if(g==="uint8array"?b=h.applyCanBeUsed.uint8array:g==="nodebuffer"&&(b=h.applyCanBeUsed.nodebuffer),b)for(;1<v;)try{return h.stringifyByChunk(m,g,v)}catch{v=Math.floor(v/2)}return h.stringifyByChar(m)}function p(m,v){for(var g=0;g<m.length;g++)v[g]=m[g];return v}a.applyFromCharCode=f;var y={};y.string={string:u,array:function(m){return d(m,new Array(m.length))},arraybuffer:function(m){return y.string.uint8array(m).buffer},uint8array:function(m){return d(m,new Uint8Array(m.length))},nodebuffer:function(m){return d(m,l.allocBuffer(m.length))}},y.array={string:f,array:u,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return l.newBufferFrom(m)}},y.arraybuffer={string:function(m){return f(new Uint8Array(m))},array:function(m){return p(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:u,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return l.newBufferFrom(new Uint8Array(m))}},y.uint8array={string:f,array:function(m){return p(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:u,nodebuffer:function(m){return l.newBufferFrom(m)}},y.nodebuffer={string:f,array:function(m){return p(m,new Array(m.length))},arraybuffer:function(m){return y.nodebuffer.uint8array(m).buffer},uint8array:function(m){return p(m,new Uint8Array(m.length))},nodebuffer:u},a.transformTo=function(m,v){if(v=v||"",!m)return v;a.checkSupport(m);var g=a.getTypeOf(v);return y[g][m](v)},a.resolve=function(m){for(var v=m.split("/"),g=[],b=0;b<v.length;b++){var x=v[b];x==="."||x===""&&b!==0&&b!==v.length-1||(x===".."?g.pop():g.push(x))}return g.join("/")},a.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":s.nodebuffer&&l.isBuffer(m)?"
8101nodebuffer":s.uint8array&&m instanceof Uint8Array?"uint8array":s.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(m){if(!s[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(m){var v,g,b="";for(g=0;g<(m||"").length;g++)b+="\\x"+((v=m.charCodeAt(g))<16?"0":"")+v.toString(16).toUpperCase();return b},a.delay=function(m,v,g){setImmediate(function(){m.apply(g||null,v||[])})},a.inherits=function(m,v){function g(){}g.prototype=v.prototype,m.prototype=new g},a.extend=function(){var m,v,g={};for(m=0;m<arguments.length;m++)for(v in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],v)&&g[v]===void 0&&(g[v]=arguments[m][v]);return g},a.prepareContent=function(m,v,g,b,x){return c.Promise.resolve(v).then(function(_){return s.blob&&(_ instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(_))!==-1)&&typeof FileReader<"u"?new c.Promise(function(w,j){var E=new FileReader;E.onload=function(C){w(C.target.result)},E.onerror=function(C){j(C.target.error)},E.readAsArrayBuffer(_)}):_}).then(function(_){var w=a.getTypeOf(_);return w?(w==="arraybuffer"?_=a.transformTo("uint8array",_):w==="string"&&(x?_=o.decode(_):g&&b!==!0&&(_=function(j){return d(j,s.uint8array?new Uint8Array(j.length):new Array(j.length))}(_))),_):c.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,n,a){var s=r("./reader/readerFor"),o=r("./utils"),l=r("./signature"),c=r("./zipEntry"),u=r("./support");function d(h){this.files=[],this.loadOptions=h}d.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(f)+", expected "+o.pretty(h)+")")}},isSignature:function(h,f){var p=this.reader.index;this.reader.setIndex(h);var y=this.reader.readString(4)===f;return this.reader.setIndex(p),y},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),f=u.uint8array?"uint8array":"array",p=o.transformTo(f,h);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,f,p,y=this.zip64EndOfCentralSize-44;0<y;)h=this.reader.readInt(2),f=this.reader.readInt(4),p=this.reader.readData(f),this.zip64ExtensibleData[h]={id:h,length:f,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,f;for(h=0;h<this.files.length;h++)f=this.files[h],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(l.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(l.CENTRAL_FILE_HEADER);)(h=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(l.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,l.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
8101ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var f=h;if(this.checkSignature(l.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,l.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var y=f-p;if(0<y)this.isSignature(f,l.CENTRAL_FILE_HEADER)||(this.reader.zero=y);else if(y<0)throw new Error("Corrupted zip: missing "+Math.abs(y)+" bytes.")},prepareReader:function(h){this.reader=s(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,n,a){var s=r("./reader/readerFor"),o=r("./utils"),l=r("./compressedObject"),c=r("./crc32"),u=r("./utf8"),d=r("./compressions"),h=r("./support");function f(p,y){this.options=p,this.loadOptions=y}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var y,m;if(p.skip(22),this.fileNameLength=p.readInt(2),m=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((y=function(v){for(var g in d)if(Object.prototype.hasOwnProperty.call(d,g)&&d[g].magic===v)return d[g];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new l(this.compressedSize,this.uncompressedSize,this.crc32,y,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var y=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(y),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=s(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&
vendor: 7,719 bytes, line 8101
8101(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var y,m,v,g=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<g;)y=p.readInt(2),m=p.readInt(2),v=p.readData(m),this.extraFields[y]={id:y,length:m,value:v};p.setIndex(g)},handleUTF8:function(){var p=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var y=this.findExtraFieldUnicodePath();if(y!==null)this.fileNameStr=y;else{var m=o.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var g=o.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var y=s(p.value);return y.readInt(1)!==1||c(this.fileName)!==y.readInt(4)?null:u.utf8decode(y.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var y=s(p.value);return y.readInt(1)!==1||c(this.fileComment)!==y.readInt(4)?null:u.utf8decode(y.readData(p.length-5))}return null}},n.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,n,a){function s(y,m,v){this.name=y,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=m,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var o=r("./stream/StreamHelper"),l=r("./stream/DataWorker"),c=r("./utf8"),u=r("./compressedObject"),d=r("./stream/GenericWorker");s.prototype={internalStream:function(y){var m=null,v="string";try{if(!y)throw new Error("No output type specified.");var g=(v=y.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),m=this._decompressWorker();var b=!this._dataBinary;b&&!g&&(m=m.pipe(new c.Utf8EncodeWorker)),!b&&g&&(m=m.pipe(new c.Utf8DecodeWorker))}catch(x){(m=new d("error")).error(x)}return new o(m,v,"")},async:function(y,m){return this.internalStream(y).accumulate(m)},nodeStream:function(y,m){return this.internalStream(y||"nodebuffer").toNodejsStream(m)},_compressWorker:function(y,m){if(this._data instanceof u&&this._data.compression.magic===y.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new c.Utf8EncodeWorker)),u.createWorkerFrom(v,y,m)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof d?this._data:new l(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<h.length;p++)s.prototype[h[p]]=f;n.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,n,a){(function(s){var o,l,c=s.MutationObserver||s.WebKitMutationObserver;if(c){var u=0,d=new c(y),h=s.document.createTextNode("");d.observe(h,{characterData:!0}),o=function(){h.data=u=++u%2}}else if(s.setImmediate||s.MessageChannel===void 0)o="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var m=s.document.createElement("script");m.onreadystatechange=function(){y(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},s.document.documentElement.appendChild(m)}:function(){setTimeout(y,0)};else{var f=new s.MessageChannel;f.port1.onmessage=y,o=function(){f.port2.postMessage(0)}}var p=[];function y(){var m,v;l=!0;for(var g=p.length;g;){for(v=p,p=[],m=-1;++m<g;)v[m]();g=p.length}l=!1}n.exports=function(m){p.push(m)!==1||l||o()}}).call(this,typeof ec<"u"?ec:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,n,a){var s=r("immediate");function o(){}var l={},c=["REJECTED"],u=["FULFILLED"],d=["PENDING"];function h(g){if(typeof g!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,g!==o&&m(this,g)}function f(g,b,x){this.promise=g,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}function p(g,b,x){s(function(){var _;try{_=b(x)}catch(w){return l.reject(g,w)}_===g?l.reject(g,new TypeError("Cannot resolve promise with itself")):l.resolve(g,_)})}function y(g){var b=g&&g.then;if(g&&(typeof g=="object"||typeof g=="function")&&typeof b=="function")return function(){b.apply(g,arguments)}}function m(g,b){var x=!1;function _(E){x||(x=!0,l.reject(g,E))}function w(E){x||(x=!0,l.resolve(g,E))}var j=v(function(){b(w,_)});j.status==="error"&&_(j.value)}function v(g,b){var x={};try{x.value=g(b),x.status="success"}catch(_){x.status="error",x.value=_}return x}(n.exports=h).prototype.finally=function(g){if(typeof g!="function")return this;var b=this.constructor;return this.then(function(x){return b.resolve(g()).then(function(){return x})},function(x){return b.resolve(g()).then(function(){throw x})})},h.prototype.catch=function(g){return this.then(null,g)},h.prototype.then=function(g,b){if(typeof g!="function"&&this.state===u||typeof b!="function"&&this.state===c)return this;var x=new this.constructor(o);return this.state!==d?p(x,this.state===u?g:b,this.outcome):this.queue.push(new f(x,g,b)),x},f.prototype.callFulfilled=function(g){l.resolve(this.promise,g)},f.prototype.otherCallFulfilled=function(g){p(this.promise,this.onFulfilled,g)},f.prototype.callRejected=function(g){l.reject(this.promise,g)},f.prototype.otherCallRejected=function(g){p(this.promise,this.onRejected,g)},l.resolve=function(g,b){var x=v(y,b);if(x.status==="error")return l.reject(g,x.value);var _=x.value;if(_)m(g,_);else{g.state=u,g.outcome=b;for(var w=-1,j=g.queue.length;++w<j;)g.queue[w].callFulfilled(b)}return g},l.reject=function(g,b){g.state=c,g.outcome=b;for(var x=-1,_=g.queue.length;++x<_;)g.queue[x].callRejected(b);return g},h.resolve=function(g){return g instanceof this?g:l.resolve(new this(o),g)},h.reject=function(g){var b=new this(o);return l.reject(b,g)},h.all=function(g){var b=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=g.length,_=!1;if(!x)return this.resolve([]);for(var w=new Array(x),j=0,E=-1,C=new this(o);++E<x;)N(g[E],E);return C;function N(A,$){b.resolve(A).then(function(T){w[$]=T,++j!==x||_||(_=!0,l.resolve(C,w))},function(T){_||(_=!0,l.reject(C,T))})}},h.race=function(g){var b=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=g.length,_=!1;if(!x)return this.resolve([]);for(var w=-1,j=new this(o);++w<x;)E=g[w],b.resolve(E).then(function(C){_||(_=!0,l.resolve(j,C))},function(C){_||(_=!0,l.reject(j,C))});var E;return j}},{immediate:36}],38:[function(r,n,a){var s={};(0,r("./lib/utils/common").assign)(s,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),n.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,n,a){var s=r("./zlib/deflate"),o=r("./utils/common"),l=r("./utils/strings"),c=r("./zlib/messages"),u=r("./zlib/zstream"),d=Object.prototype.toString,h=0,f=-1,p=0,y=8;function m(g){if(!(this instanceof m))return new m(g);this.options=o.assign({level:f,method:y,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},g||{});var b=this.options;
vendor: 4,869 bytes, line 8101
8101b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var x=s.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(x!==h)throw new Error(c[x]);if(b.header&&s.deflateSetHeader(this.strm,b.header),b.dictionary){var _;if(_=typeof b.dictionary=="string"?l.string2buf(b.dictionary):d.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(x=s.deflateSetDictionary(this.strm,_))!==h)throw new Error(c[x]);this._dict_set=!0}}function v(g,b){var x=new m(b);if(x.push(g,!0),x.err)throw x.msg||c[x.err];return x.result}m.prototype.push=function(g,b){var x,_,w=this.strm,j=this.options.chunkSize;if(this.ended)return!1;_=b===~~b?b:b===!0?4:0,typeof g=="string"?w.input=l.string2buf(g):d.call(g)==="[object ArrayBuffer]"?w.input=new Uint8Array(g):w.input=g,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new o.Buf8(j),w.next_out=0,w.avail_out=j),(x=s.deflate(w,_))!==1&&x!==h)return this.onEnd(x),!(this.ended=!0);w.avail_out!==0&&(w.avail_in!==0||_!==4&&_!==2)||(this.options.to==="string"?this.onData(l.buf2binstring(o.shrinkBuf(w.output,w.next_out))):this.onData(o.shrinkBuf(w.output,w.next_out)))}while((0<w.avail_in||w.avail_out===0)&&x!==1);return _===4?(x=s.deflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===h):_!==2||(this.onEnd(h),!(w.avail_out=0))},m.prototype.onData=function(g){this.chunks.push(g)},m.prototype.onEnd=function(g){g===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},a.Deflate=m,a.deflate=v,a.deflateRaw=function(g,b){return(b=b||{}).raw=!0,v(g,b)},a.gzip=function(g,b){return(b=b||{}).gzip=!0,v(g,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,n,a){var s=r("./zlib/inflate"),o=r("./utils/common"),l=r("./utils/strings"),c=r("./zlib/constants"),u=r("./zlib/messages"),d=r("./zlib/zstream"),h=r("./zlib/gzheader"),f=Object.prototype.toString;function p(m){if(!(this instanceof p))return new p(m);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},m||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||m&&m.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&!(15&v.windowBits)&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var g=s.inflateInit2(this.strm,v.windowBits);if(g!==c.Z_OK)throw new Error(u[g]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function y(m,v){var g=new p(v);if(g.push(m,!0),g.err)throw g.msg||u[g.err];return g.result}p.prototype.push=function(m,v){var g,b,x,_,w,j,E=this.strm,C=this.options.chunkSize,N=this.options.dictionary,A=!1;if(this.ended)return!1;b=v===~~v?v:v===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof m=="string"?E.input=l.binstring2buf(m):f.call(m)==="[object ArrayBuffer]"?E.input=new Uint8Array(m):E.input=m,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new o.Buf8(C),E.next_out=0,E.avail_out=C),(g=s.inflate(E,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&N&&(j=typeof N=="string"?l.string2buf(N):f.call(N)==="[object ArrayBuffer]"?new Uint8Array(N):N,g=s.inflateSetDictionary(this.strm,j)),g===c.Z_BUF_ERROR&&A===!0&&(g=c.Z_OK,A=!1),g!==c.Z_STREAM_END&&g!==c.Z_OK)return this.onEnd(g),!(this.ended=!0);E.next_out&&(E.avail_out!==0&&g!==c.Z_STREAM_END&&(E.avail_in!==0||b!==c.Z_FINISH&&b!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(x=l.utf8border(E.output,E.next_out),_=E.next_out-x,w=l.buf2string(E.output,x),E.next_out=_,E.avail_out=C-_,_&&o.arraySet(E.output,E.output,x,_,0),this.onData(w)):this.onData(o.shrinkBuf(E.output,E.next_out)))),E.avail_in===0&&E.avail_out===0&&(A=!0)}while((0<E.avail_in||E.avail_out===0)&&g!==c.Z_STREAM_END);return g===c.Z_STREAM_END&&(b=c.Z_FINISH),b===c.Z_FINISH?(g=s.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===c.Z_OK):b!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(E.avail_out=0))},p.prototype.onData=function(m){this.chunks.push(m)},p.prototype.onEnd=function(m){m===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},a.Inflate=p,a.inflate=y,a.inflateRaw=function(m,v){return(v=v||{}).raw=!0,y(m,v)},a.ungzip=y},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,n,a){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";a.assign=function(c){for(var u=Array.prototype.slice.call(arguments,1
vendor: 14,495 bytes, line 8101
8101);u.length;){var d=u.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var h in d)d.hasOwnProperty(h)&&(c[h]=d[h])}}return c},a.shrinkBuf=function(c,u){return c.length===u?c:c.subarray?c.subarray(0,u):(c.length=u,c)};var o={arraySet:function(c,u,d,h,f){if(u.subarray&&c.subarray)c.set(u.subarray(d,d+h),f);else for(var p=0;p<h;p++)c[f+p]=u[d+p]},flattenChunks:function(c){var u,d,h,f,p,y;for(u=h=0,d=c.length;u<d;u++)h+=c[u].length;for(y=new Uint8Array(h),u=f=0,d=c.length;u<d;u++)p=c[u],y.set(p,f),f+=p.length;return y}},l={arraySet:function(c,u,d,h,f){for(var p=0;p<h;p++)c[f+p]=u[d+p]},flattenChunks:function(c){return[].concat.apply([],c)}};a.setTyped=function(c){c?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,o)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,l))},a.setTyped(s)},{}],42:[function(r,n,a){var s=r("./common"),o=!0,l=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{l=!1}for(var c=new s.Buf8(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function d(h,f){if(f<65537&&(h.subarray&&l||!h.subarray&&o))return String.fromCharCode.apply(null,s.shrinkBuf(h,f));for(var p="",y=0;y<f;y++)p+=String.fromCharCode(h[y]);return p}c[254]=c[254]=1,a.string2buf=function(h){var f,p,y,m,v,g=h.length,b=0;for(m=0;m<g;m++)(64512&(p=h.charCodeAt(m)))==55296&&m+1<g&&(64512&(y=h.charCodeAt(m+1)))==56320&&(p=65536+(p-55296<<10)+(y-56320),m++),b+=p<128?1:p<2048?2:p<65536?3:4;for(f=new s.Buf8(b),m=v=0;v<b;m++)(64512&(p=h.charCodeAt(m)))==55296&&m+1<g&&(64512&(y=h.charCodeAt(m+1)))==56320&&(p=65536+(p-55296<<10)+(y-56320),m++),p<128?f[v++]=p:(p<2048?f[v++]=192|p>>>6:(p<65536?f[v++]=224|p>>>12:(f[v++]=240|p>>>18,f[v++]=128|p>>>12&63),f[v++]=128|p>>>6&63),f[v++]=128|63&p);return f},a.buf2binstring=function(h){return d(h,h.length)},a.binstring2buf=function(h){for(var f=new s.Buf8(h.length),p=0,y=f.length;p<y;p++)f[p]=h.charCodeAt(p);return f},a.buf2string=function(h,f){var p,y,m,v,g=f||h.length,b=new Array(2*g);for(p=y=0;p<g;)if((m=h[p++])<128)b[y++]=m;else if(4<(v=c[m]))b[y++]=65533,p+=v-1;else{for(m&=v===2?31:v===3?15:7;1<v&&p<g;)m=m<<6|63&h[p++],v--;1<v?b[y++]=65533:m<65536?b[y++]=m:(m-=65536,b[y++]=55296|m>>10&1023,b[y++]=56320|1023&m)}return d(b,y)},a.utf8border=function(h,f){var p;for((f=f||h.length)>h.length&&(f=h.length),p=f-1;0<=p&&(192&h[p])==128;)p--;return p<0||p===0?f:p+c[h[p]]>f?p:f}},{"./common":41}],43:[function(r,n,a){n.exports=function(s,o,l,c){for(var u=65535&s|0,d=s>>>16&65535|0,h=0;l!==0;){for(l-=h=2e3<l?2e3:l;d=d+(u=u+o[c++]|0)|0,--h;);u%=65521,d%=65521}return u|d<<16|0}},{}],44:[function(r,n,a){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,n,a){var s=function(){for(var o,l=[],c=0;c<256;c++){o=c;for(var u=0;u<8;u++)o=1&o?3988292384^o>>>1:o>>>1;l[c]=o}return l}();n.exports=function(o,l,c,u){var d=s,h=u+c;o^=-1;for(var f=u;f<h;f++)o=o>>>8^d[255&(o^l[f])];return-1^o}},{}],46:[function(r,n,a){var s,o=r("../utils/common"),l=r("./trees"),c=r("./adler32"),u=r("./crc32"),d=r("./messages"),h=0,f=4,p=0,y=-2,m=-1,v=4,g=2,b=8,x=9,_=286,w=30,j=19,E=2*_+1,C=15,N=3,A=258,$=A+N+1,T=42,F=113,M=1,z=2,Y=3,W=4;function ee(B,pe){return B.msg=d[pe],pe}function Z(B){return(B<<1)-(4<B?9:0)}function V(B){for(var pe=B.length;0<=--pe;)B[pe]=0}function ne(B){var pe=B.state,G=pe.pending;G>B.avail_out&&(G=B.avail_out),G!==0&&(o.arraySet(B.output,pe.pending_buf,pe.pending_out,G,B.next_out),B.next_out+=G,pe.pending_out+=G,B.total_out+=G,B.avail_out-=G,pe.pending-=G,pe.pending===0&&(pe.pending_out=0))}function P(B,pe){l._tr_flush_block(B,0<=B.block_start?B.block_start:-1,B.strstart-B.block_start,pe),B.block_start=B.strstart,ne(B.strm)}function R(B,pe){B.pending_buf[B.pending++]=pe}function H(B,pe){B.pending_buf[B.pending++]=pe>>>8&255,B.pending_buf[B.pending++]=255&pe}function re(B,pe){var G,I,L=B.max_chain_length,q=B.strstart,X=B.prev_length,ie=B.nice_match,J=B.strstart>B.w_size-$?B.strstart-(B.w_size-$):0,fe=B.window,ve=B.w_mask,ge=B.prev,de=B.strstart+A,ye=fe[q+X-1],_e=fe[q+X];B.prev_length>=B.good_match&&(L>>=2),ie>B.lookahead&&(ie=B.lookahead);do if(fe[(G=pe)+X]===_e&&fe[G+X-1]===ye&&fe[G]===fe[q]&&fe[++G]===fe[q+1]){q+=2,G++;do;while(fe[++q]===fe[++G]&&fe[++q]===fe[++G]&&fe[++q]===fe[++G]&&fe[++q]===fe[++G]&&fe[++q]===fe[++G]&&fe[++q]===fe[++G]&&fe[++q]===fe[++G]&&fe[++q]===fe[++G]&&q<de);if(I=A-(de-q),q=de-A,X<I){if(B.match_start=pe,ie<=(X=I))break;ye=fe[q+X-1],_e=fe[q+X]}}while((pe=ge[pe&ve])>J&&--L!=0);return X<=B.lookahead?X:B.lookahead}function ae(B){var pe,G,I,L,q,X,ie,J,fe,ve,ge=B.w_size;do{if(L=B.window_size-B.lookahead-B.strstart,B.strstart>=ge+(ge-$)){for(o.arraySet(B.window,B.window,ge,ge,0),B.match_start-=ge,B.strstart-=ge,B.block_start-=ge,pe=G=B.hash_size;I=B.head[--pe],B.head[pe]=ge<=I?I-ge:0,--G;);for(pe=G=ge;I=B.prev[--pe],B.prev[pe]=ge<=I?I-ge:0,--G;);L+=ge}if(B.strm.avail_in===0)break;if(X=B.strm,ie=B.window,J=B.strstart+B.lookahead,fe=L,ve=void 0,ve=X.avail_in,fe<ve&&(ve=fe),G=ve===0?0:(X.avail_in-=ve,o.arraySet(ie,X.input,X.next_in,ve,J),X.state.wrap===1?X.adler=c(X.adler,ie,ve,J):X.state.wrap===2&&(X.adler=u(X.adler,ie,ve,J)),X.next_in+=ve,X.total_in+=ve,ve),B.lookahead+=G,B.lookahead+B.insert>=N)for(q=B.strstart-B.insert,B.ins_h=B.window[q],B.ins_h=(B.ins_h<<B.hash_shift^B.window[q+1])&B.hash_mask;B.insert&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[q+N-1])&B.hash_mask,B.prev[q&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=q,q++,B.insert--,!(B.lookahead+B.insert<N)););}while(B.lookahead<$&&B.strm.avail_in!==0)}function D(B,pe){for(var G,I;;){if(B.lookahead<$){if(ae(B),B.lookahead<$&&pe===h)return M;if(B.lookahead===0)break}if(G=0,B.lookahead>=N&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+N-1])&B.hash_mask,G=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart),G!==0&&B.strstart-G<=B.w_size-$&&(B.match_length=re(B,G)),B.match_length>=N)if(I=l._tr_tally(B,B.strstart-B.match_start,B.match_length-N),B.lookahead-=B.match_length,B.match_length<=B.max_lazy_match&&B.lookahead>=N){for(B.match_length--;B.strstart++,B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+N-1])&B.hash_mask,G=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart,--B.match_length!=0;);B.strstart++}else B.strstart+=B.match_length,B.match_length=0,B.ins_h=B.window[B.strstart],B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+1])&B.hash_mask;else I=l._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++;if(I&&(P(B,!1),B.strm.avail_out===0))return M}return B.insert=B.strstart<N-1?B.strstart:N-1,pe===f?(P(B,!0),B.strm.avail_out===0?Y:W):B.last_lit&&(P(B,!1),B.strm.avail_out===0)?M:z}function U(B,pe){for(var G,I,L;;){if(B.lookahead<$){if(ae(B),B.lookahead<$&&pe===h)return M;if(B.lookahead===0)break}if(G=0,B.lookahead>=N&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+N-1])&B.hash_mask,G=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart),B.prev_length=B.match_length,B.prev_match=B.match_start,B.match_length=N-1,G!==0&&B.prev_length<B.max_lazy_match&&B.strstart-G<=B.w_size-$&&(B.match_length=re(B,G),B.match_length<=5&&(B.strategy===1||B.match_length===N&&4096<B.strstart-B.match_start)&&(B.match_length=N-1)),B.prev_length>=N&&B.match_length<=B.prev_length){for(L=B.strstart+B.lookahead-N,I=l._tr_tally(B,B.strstart-1-B.prev_match,B.prev_length-N),B.lookahead-=B.prev_length-1,B.prev_length-=2;++B.strstart<=L&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+N-1])&B.hash_mask,G=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart),--B.prev_length!=0;);if(B.match_available=0,B.match_length=N-1,B.strstart++,I&&(P(B,!1),B.strm.avail_out===0))return M}else if(B.match_available){if((I=l._tr_tally(B,0,B.window[B.strstart-1]))&&P(B,!1),B.strstart++,B.lookahead--,B.strm.avail_out===0)return M}else B.match_available=1,B.strstart++,B.lookahead--}return B.match_available&&(I=l._tr_tally(B,0,B.window[B.strstart-1]),B.match_available=0),B.insert=B.strstart<N-1?B.strstart:N-1,pe===f?(P(B,!0),B.strm.avail_out===0?Y:W):B.last_lit&&(P(B,!1),B.strm.avail_out===0)?M:z}function se(B,pe,G,I,L){this.good_length=B,this.max_lazy=pe,this.nice_length=G,this.max_chain=I,this.func=L}function te(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*E),this.dyn_dtree=new o.Buf16(2*(2*w+1)),this.bl_tree=new o.Buf16(2*(2*j+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(C+1),this.heap=new o.Buf16(2*_+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*_+1),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Q(B){var pe;return B&&B.state?(B.total_in=B.total_out=0,B.data_type=g,(pe=B.state).pending=0,pe.pending_out=0,pe.wrap<0&&(pe.wrap=-pe.wrap),pe.status=pe.wrap?T:F,B.adler=pe.wrap===2?0:1,pe.last_flush=h,l._tr_init(pe),p):ee(B,y)}function K(B){var pe=Q(B);return pe===p&&function(G){G.window_size=2*G.w_size,V(G.head),G.max_lazy_match=s[G.level].max_lazy,G.good_match=s[G.level].good_length,G.nice_match=s[G.level].nice_length,G.max_chain_length=s[G.level].max_chain,G.strstart=0,G.block_start=0,G.lookahead=0,G.insert=0,G.match_length=G.prev_length=N-1,G.match_available=0,G.ins_h=0}(B.state),pe}function ue(B,pe,G,I,L,q){if(!B)return y;var X=1;if(pe===m&&(pe=6),I<0?(X=0,I=-I):15<I&&(X=2,I-=16),L<1||x<L||G!==b||I<8||15<I||pe<0||9<pe||q<0||v<q)return ee(B,y);I===8&&(I=9);var ie=new te;return(B.state=ie).strm=B,ie.wrap=X,ie.gzhead=null,ie.w_bits=I,ie.w_size=1<<ie.w_bits,ie.w_mask=ie.w_size-1,ie.hash_bits=L+7,ie.hash_size=1<<ie.hash_bits,ie.hash_mask=ie.hash_size-1,ie.hash_shift=~~((ie.hash_bits+N-1)/N),ie.window=new o.Buf8(2*ie.w_size),ie.head=new o.Buf16(ie.hash_size),ie.prev=new o.Buf16(ie.w_size),ie.lit_bufsize=1<<L+6,ie.pending_buf_size=4*ie.lit_bufsize,ie.pending_buf=new o.Buf8(ie.pending_buf_size),ie.d_buf=1*ie.lit_bufsize,ie.l_buf=3*ie.lit_bufsize,ie.level=pe,ie.strategy=q,ie.method=G,K(B)}s=[new se(0,0,0,0,function(B,pe){var G=65535;for(G>B.pending_buf_size-5&&(G=B.pending_buf_size-5);;){if(B.lookahead<=1){if(ae(B),B.lookahead===0&&pe===h)return M;if(B.lookahead===0)break}B.strstart+=B.lookahead,B.lookahead=0;var I=B.block_start+G;if((B.strstart===0||B.strstart>=I)&&(B.lookahead=B.strstart-I,B.strstart=I,P(B,!1),B.strm.avail_out===0)||B.strstart-B.block_start>=B.w_size-$&&(P(B,!1),B.strm.avail_out===0))return M}return B.insert=0,pe===f?(P(B,!0),B.strm.avail_out===0?Y:W):(B.strstart>B.block_start&&(P(B,!1),B.strm.avail_out),M)}),new se(4,4,8,4,D),new se(4,5,16,8,D),new se(4,6,32,32,D),new se(4,4,16,16,U),new se(8,16,32,32,U),new se(8,16,128,128,U),new se(8,32,128,256,U),new se(32,128,258,1024,U),new se(32,258,258,4096,U)],a.deflateInit=function(B,pe){return ue(B,pe,b,15,8,0)},a.deflateInit2=ue,a.deflateReset=K,a.deflateResetKeep=Q,a.deflateSetHeader=function(B,pe){return B&&B.state?B.state.wrap!==2?y:(B.state.gzhead=pe,p):y},a.deflate=function(B,pe){var G,I,L,q;if(!B||!B.state||5<pe||pe<0)return B?ee(B,y):y;if(I=B.state,!B.output||!B.input&&B.avail_in!==0||I.status===666&&pe!==f)return ee(B,B.avail_out===0?-5:y);if(I.strm=B,G=I.last_flush,I.last_flush=pe,I.status===T)if(I.wrap===2)B.adler=0,R(I,31),R(I,139),R(I,8),I.gzhead?(R(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),R(I,255&I.gzhead.time),R(I,I.gzhead.time>>8&255),R(I,I.gzhead.time>>16&255),R(I,I.gzhead.time>>24&255),R(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),R(I,255&I.gzhead.os),I.gzhead.extra&&I.gzhead.extra.length&&(R(I,255&I.gzhead.extra.length),R(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(B.adler=u(B.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(R(I,0),R(I,0),R(I,0),R(I,0),R(I,0),R(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),R(I,3),I.status=F);else{var X=b+(I.w_bits-8<<4)<<8;X|=(2<=I.strategy||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6,I.strstart!==0&&(X|=32),X+=31-X%31,I.status=F,H(I,X),I.strstart!==0&&(H(I,B.adler>>>16),H(I,65535&B.adler)),B.adler=1}if(I.status===69)if(I.gzhead.extra){for(L=I.pending;I.gzindex<(65535&I.gzhead.extra.length)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>L&&(B.adler=u(B.adler,I.pending_buf,I.pending-L,L)),ne(B),L=I.pending,I.pending!==I.pending_buf_size));)R(I,255&I.gzhead.extra[I.gzindex]),I.gzindex++;I.gzhead.hcrc&&I.pending>L&&(B.adler=u(B.adler,I.pending_buf,I.pending-L,L)),I.gzindex===I.gzhead.extra.length&&(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){L=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>L&&(B.adler=u(B.adler,I.pending_buf,I.pending-L,L)),ne(B),L=I.pending,I.pending===I.pending_buf_size)){q=1;break}q=I.gzindex<I.gzhead.name.length?255&I.gzhead.name.charCodeAt(I.gzindex++):0,R(I,q)}while(q!==0);I.gzhead.hcrc&&I.pending>L&&(B.adler=u(B.adler,I.pending_buf,I.pending-L,L)),q===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===91)if(I.gzhead.comment){L=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>L&&(B.adler=u(B.adler,I.pending_buf,I.pending-L,L)),ne(B),L=I.pending,I.pending===I.pending_buf_size)){q=1;break}q=I.gzindex<I.gzhead.comment.length?255&I.gzhead.comment.charCodeAt(I.gzindex++):0,R(I,q)}while(q!==0);I.gzhead.hcrc&&I.pending>L&&(B.adler=u(B.adler,I.pending_buf,I.pending-L,L)),q===0&&(I.status=103)}else I.status=103;if(I.status===103&&(I.gzhead.hcrc?(I.pending+2>
vendor: 17,281 bytes, line 8101
8101I.pending_buf_size&&ne(B),I.pending+2<=I.pending_buf_size&&(R(I,255&B.adler),R(I,B.adler>>8&255),B.adler=0,I.status=F)):I.status=F),I.pending!==0){if(ne(B),B.avail_out===0)return I.last_flush=-1,p}else if(B.avail_in===0&&Z(pe)<=Z(G)&&pe!==f)return ee(B,-5);if(I.status===666&&B.avail_in!==0)return ee(B,-5);if(B.avail_in!==0||I.lookahead!==0||pe!==h&&I.status!==666){var ie=I.strategy===2?function(J,fe){for(var ve;;){if(J.lookahead===0&&(ae(J),J.lookahead===0)){if(fe===h)return M;break}if(J.match_length=0,ve=l._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++,ve&&(P(J,!1),J.strm.avail_out===0))return M}return J.insert=0,fe===f?(P(J,!0),J.strm.avail_out===0?Y:W):J.last_lit&&(P(J,!1),J.strm.avail_out===0)?M:z}(I,pe):I.strategy===3?function(J,fe){for(var ve,ge,de,ye,_e=J.window;;){if(J.lookahead<=A){if(ae(J),J.lookahead<=A&&fe===h)return M;if(J.lookahead===0)break}if(J.match_length=0,J.lookahead>=N&&0<J.strstart&&(ge=_e[de=J.strstart-1])===_e[++de]&&ge===_e[++de]&&ge===_e[++de]){ye=J.strstart+A;do;while(ge===_e[++de]&&ge===_e[++de]&&ge===_e[++de]&&ge===_e[++de]&&ge===_e[++de]&&ge===_e[++de]&&ge===_e[++de]&&ge===_e[++de]&&de<ye);J.match_length=A-(ye-de),J.match_length>J.lookahead&&(J.match_length=J.lookahead)}if(J.match_length>=N?(ve=l._tr_tally(J,1,J.match_length-N),J.lookahead-=J.match_length,J.strstart+=J.match_length,J.match_length=0):(ve=l._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++),ve&&(P(J,!1),J.strm.avail_out===0))return M}return J.insert=0,fe===f?(P(J,!0),J.strm.avail_out===0?Y:W):J.last_lit&&(P(J,!1),J.strm.avail_out===0)?M:z}(I,pe):s[I.level].func(I,pe);if(ie!==Y&&ie!==W||(I.status=666),ie===M||ie===Y)return B.avail_out===0&&(I.last_flush=-1),p;if(ie===z&&(pe===1?l._tr_align(I):pe!==5&&(l._tr_stored_block(I,0,0,!1),pe===3&&(V(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),ne(B),B.avail_out===0))return I.last_flush=-1,p}return pe!==f?p:I.wrap<=0?1:(I.wrap===2?(R(I,255&B.adler),R(I,B.adler>>8&255),R(I,B.adler>>16&255),R(I,B.adler>>24&255),R(I,255&B.total_in),R(I,B.total_in>>8&255),R(I,B.total_in>>16&255),R(I,B.total_in>>24&255)):(H(I,B.adler>>>16),H(I,65535&B.adler)),ne(B),0<I.wrap&&(I.wrap=-I.wrap),I.pending!==0?p:1)},a.deflateEnd=function(B){var pe;return B&&B.state?(pe=B.state.status)!==T&&pe!==69&&pe!==73&&pe!==91&&pe!==103&&pe!==F&&pe!==666?ee(B,y):(B.state=null,pe===F?ee(B,-3):p):y},a.deflateSetDictionary=function(B,pe){var G,I,L,q,X,ie,J,fe,ve=pe.length;if(!B||!B.state||(q=(G=B.state).wrap)===2||q===1&&G.status!==T||G.lookahead)return y;for(q===1&&(B.adler=c(B.adler,pe,ve,0)),G.wrap=0,ve>=G.w_size&&(q===0&&(V(G.head),G.strstart=0,G.block_start=0,G.insert=0),fe=new o.Buf8(G.w_size),o.arraySet(fe,pe,ve-G.w_size,G.w_size,0),pe=fe,ve=G.w_size),X=B.avail_in,ie=B.next_in,J=B.input,B.avail_in=ve,B.next_in=0,B.input=pe,ae(G);G.lookahead>=N;){for(I=G.strstart,L=G.lookahead-(N-1);G.ins_h=(G.ins_h<<G.hash_shift^G.window[I+N-1])&G.hash_mask,G.prev[I&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=I,I++,--L;);G.strstart=I,G.lookahead=N-1,ae(G)}return G.strstart+=G.lookahead,G.block_start=G.strstart,G.insert=G.lookahead,G.lookahead=0,G.match_length=G.prev_length=N-1,G.match_available=0,B.next_in=ie,B.input=J,B.avail_in=X,G.wrap=q,p},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,n,a){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,n,a){n.exports=function(s,o){var l,c,u,d,h,f,p,y,m,v,g,b,x,_,w,j,E,C,N,A,$,T,F,M,z;l=s.state,c=s.next_in,M=s.input,u=c+(s.avail_in-5),d=s.next_out,z=s.output,h=d-(o-s.avail_out),f=d+(s.avail_out-257),p=l.dmax,y=l.wsize,m=l.whave,v=l.wnext,g=l.window,b=l.hold,x=l.bits,_=l.lencode,w=l.distcode,j=(1<<l.lenbits)-1,E=(1<<l.distbits)-1;e:do{x<15&&(b+=M[c++]<<x,x+=8,b+=M[c++]<<x,x+=8),C=_[b&j];t:for(;;){if(b>>>=N=C>>>24,x-=N,(N=C>>>16&255)===0)z[d++]=65535&C;else{if(!(16&N)){if(!(64&N)){C=_[(65535&C)+(b&(1<<N)-1)];continue t}if(32&N){l.mode=12;break e}s.msg="invalid literal/length code",l.mode=30;break e}A=65535&C,(N&=15)&&(x<N&&(b+=M[c++]<<x,x+=8),A+=b&(1<<N)-1,b>>>=N,x-=N),x<15&&(b+=M[c++]<<x,x+=8,b+=M[c++]<<x,x+=8),C=w[b&E];r:for(;;){if(b>>>=N=C>>>24,x-=N,!(16&(N=C>>>16&255))){if(!(64&N)){C=w[(65535&C)+(b&(1<<N)-1)];continue r}s.msg="invalid distance code",l.mode=30;break e}if($=65535&C,x<(N&=15)&&(b+=M[c++]<<x,(x+=8)<N&&(b+=M[c++]<<x,x+=8)),p<($+=b&(1<<N)-1)){s.msg="invalid distance too far back",l.mode=30;break e}if(b>>>=N,x-=N,(N=d-h)<$){if(m<(N=$-N)&&l.sane){s.msg="invalid distance too far back",l.mode=30;break e}if(F=g,(T=0)===v){if(T+=y-N,N<A){for(A-=N;z[d++]=g[T++],--N;);T=d-$,F=z}}else if(v<N){if(T+=y+v-N,(N-=v)<A){for(A-=N;z[d++]=g[T++],--N;);if(T=0,v<A){for(A-=N=v;z[d++]=g[T++],--N;);T=d-$,F=z}}}else if(T+=v-N,N<A){for(A-=N;z[d++]=g[T++],--N;);T=d-$,F=z}for(;2<A;)z[d++]=F[T++],z[d++]=F[T++],z[d++]=F[T++],A-=3;A&&(z[d++]=F[T++],1<A&&(z[d++]=F[T++]))}else{for(T=d-$;z[d++]=z[T++],z[d++]=z[T++],z[d++]=z[T++],2<(A-=3););A&&(z[d++]=z[T++],1<A&&(z[d++]=z[T++]))}break}}break}}while(c<u&&d<f);c-=A=x>>3,b&=(1<<(x-=A<<3))-1,s.next_in=c,s.next_out=d,s.avail_in=c<u?u-c+5:5-(c-u),s.avail_out=d<f?f-d+257:257-(d-f),l.hold=b,l.bits=x}},{}],49:[function(r,n,a){var s=r("../utils/common"),o=r("./adler32"),l=r("./crc32"),c=r("./inffast"),u=r("./inftrees"),d=1,h=2,f=0,p=-2,y=1,m=852,v=592;function g(T){return(T>>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function x(T){var F;return T&&T.state?(F=T.state,T.total_in=T.total_out=F.total=0,T.msg="",F.wrap&&(T.adler=1&F.wrap),F.mode=y,F.last=0,F.havedict=0,F.dmax=32768,F.head=null,F.hold=0,F.bits=0,F.lencode=F.lendyn=new s.Buf32(m),F.distcode=F.distdyn=new s.Buf32(v),F.sane=1,F.back=-1,f):p}function _(T){var F;return T&&T.state?((F=T.state).wsize=0,F.whave=0,F.wnext=0,x(T)):p}function w(T,F){var M,z;return T&&T.state?(z=T.state,F<0?(M=0,F=-F):(M=1+(F>>4),F<48&&(F&=15)),F&&(F<8||15<F)?p:(z.window!==null&&z.wbits!==F&&(z.window=null),z.wrap=M,z.wbits=F,_(T))):p}function j(T,F){var M,z;return T?(z=new b,(T.state=z).window=null,(M=w(T,F))!==f&&(T.state=null),M):p}var E,C,N=!0;function A(T){if(N){var F;for(E=new s.Buf32(512),C=new s.Buf32(32),F=0;F<144;)T.lens[F++]=8;for(;F<256;)T.lens[F++]=9;for(;F<280;)T.lens[F++]=7;for(;F<288;)T.lens[F++]=8;for(u(d,T.lens,0,288,E,0,T.work,{bits:9}),F=0;F<32;)T.lens[F++]=5;u(h,T.lens,0,32,C,0,T.work,{bits:5}),N=!1}T.lencode=E,T.lenbits=9,T.distcode=C,T.distbits=5}function $(T,F,M,z){var Y,W=T.state;return W.window===null&&(W.wsize=1<<W.wbits,W.wnext=0,W.whave=0,W.window=new s.Buf8(W.wsize)),z>=W.wsize?(s.arraySet(W.window,F,M-W.wsize,W.wsize,0),W.wnext=0,W.whave=W.wsize):(z<(Y=W.wsize-W.wnext)&&(Y=z),s.arraySet(W.window,F,M-z,Y,W.wnext),(z-=Y)?(s.arraySet(W.window,F,M-z,z,0),W.wnext=z,W.whave=W.wsize):(W.wnext+=Y,W.wnext===W.wsize&&(W.wnext=0),W.whave<W.wsize&&(W.whave+=Y))),0}a.inflateReset=_,a.inflateReset2=w,a.inflateResetKeep=x,a.inflateInit=function(T){return j(T,15)},a.inflateInit2=j,a.inflate=function(T,F){var M,z,Y,W,ee,Z,V,ne,P,R,H,re,ae,D,U,se,te,Q,K,ue,B,pe,G,I,L=0,q=new s.Buf8(4),X=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!T||!T.state||!T.output||!T.input&&T.avail_in!==0)return p;(M=T.state).mode===12&&(M.mode=13),ee=T.next_out,Y=T.output,V=T.avail_out,W=T.next_in,z=T.input,Z=T.avail_in,ne=M.hold,P=M.bits,R=Z,H=V,pe=f;e:for(;;)switch(M.mode){case y:if(M.wrap===0){M.mode=13;break}for(;P<16;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if(2&M.wrap&&ne===35615){q[M.check=0]=255&ne,q[1]=ne>>>8&255,M.check=l(M.check,q,2,0),P=ne=0,M.mode=2;break}if(M.flags=0,M.head&&(M.head.done=!1),!(1&M.wrap)||(((255&ne)<<8)+(ne>>8))%31){T.msg="incorrect header check",M.mode=30;break}if((15&ne)!=8){T.msg="unknown compression method",M.mode=30;break}if(P-=4,B=8+(15&(ne>>>=4)),M.wbits===0)M.wbits=B;else if(B>M.wbits){T.msg="invalid window size",M.mode=30;break}M.dmax=1<<B,T.adler=M.check=1,M.mode=512&ne?10:12,P=ne=0;break;case 2:for(;P<16;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if(M.flags=ne,(255&M.flags)!=8){T.msg="unknown compression method",M.mode=30;break}if(57344&M.flags){T.msg="unknown header flags set",M.mode=30;break}M.head&&(M.head.text=ne>>8&1),512&M.flags&&(q[0]=255&ne,q[1]=ne>>>8&255,M.check=l(M.check,q,2,0)),P=ne=0,M.mode=3;case 3:for(;P<32;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}M.head&&(M.head.time=ne),512&M.flags&&(q[0]=255&ne,q[1]=ne>>>8&255,q[2]=ne>>>16&255,q[3]=ne>>>24&255,M.check=l(M.check,q,4,0)),P=ne=0,M.mode=4;case 4:for(;P<16;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}M.head&&(M.head.xflags=255&ne,M.head.os=ne>>8),512&M.flags&&(q[0]=255&ne,q[1]=ne>>>8&255,M.check=l(M.check,q,2,0)),P=ne=0,M.mode=5;case 5:if(1024&M.flags){for(;P<16;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}M.length=ne,M.head&&(M.head.extra_len=ne),512&M.flags&&(q[0]=255&ne,q[1]=ne>>>8&255,M.check=l(M.check,q,2,0)),P=ne=0}else M.head&&(M.head.extra=null);M.mode=6;case 6:if(1024&M.flags&&(Z<(re=M.length)&&(re=Z),re&&(M.head&&(B=M.head.extra_len-M.length,M.head.extra||(M.head.extra=new Array(M.head.extra_len)),s.arraySet(M.head.extra,z,W,re,B)),512&M.flags&&(M.check=l(M.check,z,re,W)),Z-=re,W+=re,M.length-=re),M.length))break e;M.length=0,M.mode=7;case 7:if(2048&M.flags){if(Z===0)break e;for(re=0;B=z[W+re++],M.head&&B&&M.length<65536&&(M.head.name+=String.fromCharCode(B)),B&&re<Z;);if(512&M.flags&&(M.check=l(M.check,z,re,W)),Z-=re,W+=re,B)break e}else M.head&&(M.head.name=null);M.length=0,M.mode=8;case 8:if(4096&M.flags){if(Z===0)break e;for(re=0;B=z[W+re++],M.head&&B&&M.length<65536&&(M.head.comment+=String.fromCharCode(B)),B&&re<Z;);if(512&M.flags&&(M.check=l(M.check,z,re,W)),Z-=re,W+=re,B)break e}else M.head&&(M.head.comment=null);M.mode=9;case 9:if(512&M.flags){for(;P<16;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if(ne!==(65535&M.check)){T.msg="header crc mismatch",M.mode=30;break}P=ne=0}M.head&&(M.head.hcrc=M.flags>>9&1,M.head.done=!0),T.adler=M.check=0,M.mode=12;break;case 10:for(;P<32;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}T.adler=M.check=g(ne),P=ne=0,M.mode=11;case 11:if(M.havedict===0)return T.next_out=ee,T.avail_out=V,T.next_in=W,T.avail_in=Z,M.hold=ne,M.bits=P,2;T.adler=M.check=1,M.mode=12;case 12:if(F===5||F===6)break e;case 13:if(M.last){ne>>>=7&P,P-=7&P,M.mode=27;break}for(;P<3;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}switch(M.last=1&ne,P-=1,3&(ne>>>=1)){case 0:M.mode=14;break;case 1:if(A(M),M.mode=20,F!==6)break;ne>>>=2,P-=2;break e;case 2:M.mode=17;break;case 3:T.msg="invalid block type",M.mode=30}ne>>>=2,P-=2;break;case 14:for(ne>>>=7&P,P-=7&P;P<32;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if((65535&ne)!=(ne>>>16^65535)){T.msg="invalid stored block lengths",M.mode=30;break}if(M.length=65535&ne,P=ne=0,M.mode=15,F===6)break e;case 15:M.mode=16;case 16:if(re=M.length){if(Z<re&&(re=Z),V<re&&(re=V),re===0)break e;s.arraySet(Y,z,W,re,ee),Z-=re,W+=re,V-=re,ee+=re,M.length-=re;break}M.mode=12;break;case 17:for(;P<14;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if(M.nlen=257+(31&ne),ne>>>=5,P-=5,M.ndist=1+(31&ne),ne>>>=5,P-=5,M.ncode=4+(15&ne),ne>>>=4,P-=4,286<M.nlen||30<M.ndist){T.msg="too many length or distance symbols",M.mode=30;break}M.have=0,M.mode=18;case 18:for(;M.have<M.ncode;){for(;P<3;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}M.lens[X[M.have++]]=7&ne,ne>>>=3,P-=3}for(;M.have<19;)M.lens[X[M.have++]]=0;if(M.lencode=M.lendyn,M.lenbits=7,G={bits:M.lenbits},pe=u(0,M.lens,0,19,M.lencode,0,M.work,G),M.lenbits=G.bits,pe){T.msg="invalid code lengths set",M.mode=30;break}M.have=0,M.mode=19;case 19:for(;M.have<M.nlen+M.ndist;){for(;se=(L=M.lencode[ne&(1<<M.lenbits)-1])>>>16&255,te=65535&L,!((U=L>>>24)<=P);){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if(te<16)ne>>>=U,P-=U,M.lens[M.have++]=te;else{if(te===16){for(I=U+2;P<I;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if(ne>>>=U,P-=U,M.have===0){T.msg="invalid bit length repeat",M.mode=30;break}B=M.lens[M.have-1],re=3+(3&ne),ne>>>=2,P-=2}else if(te===17){for(I=U+3;P<I;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}P-=U,B=0,re=3+(7&(ne>>>=U)),ne>>>=3,P-=3}else{for(I=U+7;P<I;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}P-=U,B=0,re=11+(127&(ne>>>=U)),ne>>>=7,P-=7}if(M.have+re>M.nlen+M.ndist){T.msg="invalid bit length repeat",M.mode=30;break}for(;re--;)M.lens[M.have++]=B}}if(M.mode===30)break;if(M.lens[256]===0){T.msg="invalid code -- missing end-of-block",M.mode=30;break}if(M.lenbits=9,G={bits:M.lenbits},pe=u(d,M.lens,0,M.nlen,M.lencode,0,M.work,G),M.lenbits=G.bits,pe){T.msg="invalid literal/lengths set",M.mode=30;break}if(M.distbits=6,M.distcode=M.distdyn,G={bits:M.distbits},pe=u(h,M.lens,M.nlen,M.ndist,M.distcode,0,M.work,G),M.distbits=G.bits,pe){T.msg="invalid distances set",M.mode=30;break}if(M.mode=20,F===6)break e;case 20:M.mode=21;case 21:if(6<=Z&&258<=V){T.next_out=ee,T.avail_out=V,T.next_in=W,T.avail_in=Z,M.hold=ne,M.bits=P,c(T,H),ee=T.next_out,Y=T.output,V=T.avail_out,W=T.next_in,z=T.input,Z=T.avail_in,ne=M.hold,P=M.bits,M.mode===12&&(M.back=-1);break}for(M.back=0;se=(L=M.lencode[ne&(1<<M.lenbits)-1])>>>16&255,te=65535&L,!((U=L>>>24)<=P);){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if(se&&!(240&se)){for(Q=U,K=se,ue=te;se=(L=M.lencode[ue+((ne&(1<<Q+K)-1)>>Q)])>>>16&255,te=65535&L,!(Q+(U=L>>>24)<=P);){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}ne>>>=Q,P-=Q,M.back+=Q}if(ne>>>=U,P-=U,M.back+=U,M.length=te,se===0){M.mode=26;break}if(32&se){M.back=-1,M.mode=12;break}if(64&se){T.msg="invalid literal/length code",M.mode=30;break}M.extra=15&se,M.mode=22;case 22:if(M.extra){for(I=M.extra;P<I;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}M.length+=ne&(1<<M.extra)-1,ne>>>=M.extra,P-=M.extra,M.back+=M.extra}M.was=M.length,M.mode=23;case 23:for(;se=(L=M.distcode[ne&(1<<M.distbits)-1])>>>16&255,te=65535&L,!((U=L>>>24)<=P);){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if(!(240&se)){for(Q=U,K=se,ue=te;se=(L=M.distcode[ue+((ne&(1<<Q+K)-1)>>Q)])>>>16&255,te=65535&L,!(Q+(U=L>>>24)<=P);){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}ne>>>=Q,P-=Q,M.back+=Q}if(ne>>>=U,P-=U,M.back+=U,64&se){T.msg="invalid distance code",M.mode=30;break}M.offset=te,M.extra=15&se,M.mode=24;case 24:if(M.extra){for(I=M.extra;P<I;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}M.offset+=ne&(1<<M.extra)-1,ne>>>=M.extra,P-=M.extra,M.back+=M.extra}if(M.offset>M.dmax){T.msg="invalid distance too far back",M.mode=30;break}M.mode=25;case 25:if(V===0)break e;if(re=H-V,M.offset>re){if((re=M.offset-re)>M.whave&&M.sane){T.msg="invalid distance too far back",M.mode=30;break}ae=re>M.wnext?(re-=M.wnext,M.wsize-re):M.wnext-re,re>M.length&&(re=M.length),D=M.window}else D=Y,ae=ee-M.offset,re=M.length;for(V<re&&(re=V),V-=re,M.length-=re;Y[ee++]=D[ae++],--re;);M.length===0&&(M.mode=21);break;case 26:if(V===0)break e;Y[ee++]=M.length,V--,M.mode=21;break;case 27:if(M.wrap){for(;P<32;){if(Z===0)break e;Z--,ne|=z[W++]<<P,P+=8}if(H-=V,T.total_out+=H,M.total+=H,H&&(T.adler=M.check=M.flags?l(M.check,Y,H,ee-H):o(M.check,Y,H,ee-H)),H=V,(M.flags?ne:g(ne))!==M.check){T.msg="incorrect data check",M.mode=30;break}P=ne=0}M.mode=28;case 28:if(M.wrap&&M.flags){for(;P<32;){if(Z===0)break e;Z--,ne+=z[W++]<<P,P+=8}if(ne!==(4294967295&M.total)){T.msg="incorrect length check",M.mode=30;break}P=ne=0}M.mode=29;case 29:pe=1;break e;case 30:pe=-3;break e;case 31:return-4;case 32:default:return p}return T.next_out=ee,T.avail_out=V,T.next_in=W,T.avail_in=Z,M.hold=ne,M.bits=P,(M.wsize||H!==T.avail_out&&M.mode<30&&(M.mode<27||F!==4))&&$(T,T.output,T.next_out,H-T.avail_out)?(M.mode=31,-4):(R-=T.avail_in,H-=T.avail_out,T.total_in+=R,T.total_out+=H,M.total+=H,M.wrap&&H&&(T.adler=M.check=M.flags?l(M.check,Y,H,T.next_out-H):o(M.check,Y,H,T.next_out-H)),T.data_type=M.bits+(M.last?64:0)+(M.mode===12?128:0)+(M.mode===20||M.mode===15?256:0),(R==0&&H===0||F===4)&&pe===f&&(pe=-5),pe)},a.inflateEnd=function(T){if(!T||!T.state)return p;var F=T.state;return F.window&&(F.window=null),T.state=null,f},a.inflateGetHeader=function(T,F){var M;return T&&T.state&&2&(M=T.state).wrap?((M.head=F).done=!1,f):p},a.inflateSetDictionary=function(T,F){var M,z=F.length;return T&&T.state?(M=T.state).wrap!==0&&M.mode!==11?p:M.mode===11&&o(1,F,z,0)!==M.check?-3:$(T,F,z,z)?(M.mode=31,-4):(M.havedict=1,f):p},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,n,a){var s=r("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];
vendor: 9,999 bytes, line 8101
8101n.exports=function(d,h,f,p,y,m,v,g){var b,x,_,w,j,E,C,N,A,$=g.bits,T=0,F=0,M=0,z=0,Y=0,W=0,ee=0,Z=0,V=0,ne=0,P=null,R=0,H=new s.Buf16(16),re=new s.Buf16(16),ae=null,D=0;for(T=0;T<=15;T++)H[T]=0;for(F=0;F<p;F++)H[h[f+F]]++;for(Y=$,z=15;1<=z&&H[z]===0;z--);if(z<Y&&(Y=z),z===0)return y[m++]=20971520,y[m++]=20971520,g.bits=1,0;for(M=1;M<z&&H[M]===0;M++);for(Y<M&&(Y=M),T=Z=1;T<=15;T++)if(Z<<=1,(Z-=H[T])<0)return-1;if(0<Z&&(d===0||z!==1))return-1;for(re[1]=0,T=1;T<15;T++)re[T+1]=re[T]+H[T];for(F=0;F<p;F++)h[f+F]!==0&&(v[re[h[f+F]]++]=F);if(E=d===0?(P=ae=v,19):d===1?(P=o,R-=257,ae=l,D-=257,256):(P=c,ae=u,-1),T=M,j=m,ee=F=ne=0,_=-1,w=(V=1<<(W=Y))-1,d===1&&852<V||d===2&&592<V)return 1;for(;;){for(C=T-ee,A=v[F]<E?(N=0,v[F]):v[F]>E?(N=ae[D+v[F]],P[R+v[F]]):(N=96,0),b=1<<T-ee,M=x=1<<W;y[j+(ne>>ee)+(x-=b)]=C<<24|N<<16|A|0,x!==0;);for(b=1<<T-1;ne&b;)b>>=1;if(b!==0?(ne&=b-1,ne+=b):ne=0,F++,--H[T]==0){if(T===z)break;T=h[f+v[F]]}if(Y<T&&(ne&w)!==_){for(ee===0&&(ee=Y),j+=M,Z=1<<(W=T-ee);W+ee<z&&!((Z-=H[W+ee])<=0);)W++,Z<<=1;if(V+=1<<W,d===1&&852<V||d===2&&592<V)return 1;y[_=ne&w]=Y<<24|W<<16|j-m|0}}return ne!==0&&(y[j+ne]=T-ee<<24|64<<16|0),g.bits=Y,0}},{"../utils/common":41}],51:[function(r,n,a){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,n,a){var s=r("../utils/common"),o=0,l=1;function c(L){for(var q=L.length;0<=--q;)L[q]=0}var u=0,d=29,h=256,f=h+1+d,p=30,y=19,m=2*f+1,v=15,g=16,b=7,x=256,_=16,w=17,j=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(f+2));c($);var T=new Array(2*p);c(T);var F=new Array(512);c(F);var M=new Array(256);c(M);var z=new Array(d);c(z);var Y,W,ee,Z=new Array(p);function V(L,q,X,ie,J){this.static_tree=L,this.extra_bits=q,this.extra_base=X,this.elems=ie,this.max_length=J,this.has_stree=L&&L.length}function ne(L,q){this.dyn_tree=L,this.max_code=0,this.stat_desc=q}function P(L){return L<256?F[L]:F[256+(L>>>7)]}function R(L,q){L.pending_buf[L.pending++]=255&q,L.pending_buf[L.pending++]=q>>>8&255}function H(L,q,X){L.bi_valid>g-X?(L.bi_buf|=q<<L.bi_valid&65535,R(L,L.bi_buf),L.bi_buf=q>>g-L.bi_valid,L.bi_valid+=X-g):(L.bi_buf|=q<<L.bi_valid&65535,L.bi_valid+=X)}function re(L,q,X){H(L,X[2*q],X[2*q+1])}function ae(L,q){for(var X=0;X|=1&L,L>>>=1,X<<=1,0<--q;);return X>>>1}function D(L,q,X){var ie,J,fe=new Array(v+1),ve=0;for(ie=1;ie<=v;ie++)fe[ie]=ve=ve+X[ie-1]<<1;for(J=0;J<=q;J++){var ge=L[2*J+1];ge!==0&&(L[2*J]=ae(fe[ge]++,ge))}}function U(L){var q;for(q=0;q<f;q++)L.dyn_ltree[2*q]=0;for(q=0;q<p;q++)L.dyn_dtree[2*q]=0;for(q=0;q<y;q++)L.bl_tree[2*q]=0;L.dyn_ltree[2*x]=1,L.opt_len=L.static_len=0,L.last_lit=L.matches=0}function se(L){8<L.bi_valid?R(L,L.bi_buf):0<L.bi_valid&&(L.pending_buf[L.pending++]=L.bi_buf),L.bi_buf=0,L.bi_valid=0}function te(L,q,X,ie){var J=2*q,fe=2*X;return L[J]<L[fe]||L[J]===L[fe]&&ie[q]<=ie[X]}function Q(L,q,X){for(var ie=L.heap[X],J=X<<1;J<=L.heap_len&&(J<L.heap_len&&te(q,L.heap[J+1],L.heap[J],L.depth)&&J++,!te(q,ie,L.heap[J],L.depth));)L.heap[X]=L.heap[J],X=J,J<<=1;L.heap[X]=ie}function K(L,q,X){var ie,J,fe,ve,ge=0;if(L.last_lit!==0)for(;ie=L.pending_buf[L.d_buf+2*ge]<<8|L.pending_buf[L.d_buf+2*ge+1],J=L.pending_buf[L.l_buf+ge],ge++,ie===0?re(L,J,q):(re(L,(fe=M[J])+h+1,q),(ve=E[fe])!==0&&H(L,J-=z[fe],ve),re(L,fe=P(--ie),X),(ve=C[fe])!==0&&H(L,ie-=Z[fe],ve)),ge<L.last_lit;);re(L,x,q)}function ue(L,q){var X,ie,J,fe=q.dyn_tree,ve=q.stat_desc.static_tree,ge=q.stat_desc.has_stree,de=q.stat_desc.elems,ye=-1;for(L.heap_len=0,L.heap_max=m,X=0;X<de;X++)fe[2*X]!==0?(L.heap[++L.heap_len]=ye=X,L.depth[X]=0):fe[2*X+1]=0;for(;L.heap_len<2;)fe[2*(J=L.heap[++L.heap_len]=ye<2?++ye:0)]=1,L.depth[J]=0,L.opt_len--,ge&&(L.static_len-=ve[2*J+1]);for(q.max_code=ye,X=L.heap_len>>1;1<=X;X--)Q(L,fe,X);for(J=de;X=L.heap[1],L.heap[1]=L.heap[L.heap_len--],Q(L,fe,1),ie=L.heap[1],L.heap[--L.heap_max]=X,L.heap[--L.heap_max]=ie,fe[2*J]=fe[2*X]+fe[2*ie],L.depth[J]=(L.depth[X]>=L.depth[ie]?L.depth[X]:L.depth[ie])+1,fe[2*X+1]=fe[2*ie+1]=J,L.heap[1]=J++,Q(L,fe,1),2<=L.heap_len;);L.heap[--L.heap_max]=L.heap[1],function(_e,Fe){var ht,_t,xe,je,ut,Ot,lt=Fe.dyn_tree,et=Fe.max_code,It=Fe.stat_desc.static_tree,wr=Fe.stat_desc.has_stree,rr=Fe.stat_desc.extra_bits,Oe=Fe.stat_desc.extra_base,rt=Fe.stat_desc.max_length,nt=0;for(je=0;je<=v;je++)_e.bl_count[je]=0;for(lt[2*_e.heap[_e.heap_max]+1]=0,ht=_e.heap_max+1;ht<m;ht++)rt<(je=lt[2*lt[2*(_t=_e.heap[ht])+1]+1]+1)&&(je=rt,nt++),lt[2*_t+1]=je,et<_t||(_e.bl_count[je]++,ut=0,Oe<=_t&&(ut=rr[_t-Oe]),Ot=lt[2*_t],_e.opt_len+=Ot*(je+ut),wr&&(_e.static_len+=Ot*(It[2*_t+1]+ut)));if(nt!==0){do{for(je=rt-1;_e.bl_count[je]===0;)je--;_e.bl_count[je]--,_e.bl_count[je+1]+=2,_e.bl_count[rt]--,nt-=2}while(0<nt);for(je=rt;je!==0;je--)for(_t=_e.bl_count[je];_t!==0;)et<(xe=_e.heap[--ht])||(lt[2*xe+1]!==je&&(_e.opt_len+=(je-lt[2*xe+1])*lt[2*xe],lt[2*xe+1]=je),_t--)}}(L,q),D(fe,ye,L.bl_count)}function B(L,q,X){var ie,J,fe=-1,ve=q[1],ge=0,de=7,ye=4;for(ve===0&&(de=138,ye=3),q[2*(X+1)+1]=65535,ie=0;ie<=X;ie++)J=ve,ve=q[2*(ie+1)+1],++ge<de&&J===ve||(ge<ye?L.bl_tree[2*J]+=ge:J!==0?(J!==fe&&L.bl_tree[2*J]++,L.bl_tree[2*_]++):ge<=10?L.bl_tree[2*w]++:L.bl_tree[2*j]++,fe=J,ye=(ge=0)===ve?(de=138,3):J===ve?(de=6,3):(de=7,4))}function pe(L,q,X){var ie,J,fe=-1,ve=q[1],ge=0,de=7,ye=4;for(ve===0&&(de=138,ye=3),ie=0;ie<=X;ie++)if(J=ve,ve=q[2*(ie+1)+1],!(++ge<de&&J===ve)){if(ge<ye)for(;re(L,J,L.bl_tree),--ge!=0;);else J!==0?(J!==fe&&(re(L,J,L.bl_tree),ge--),re(L,_,L.bl_tree),H(L,ge-3,2)):ge<=10?(re(L,w,L.bl_tree),H(L,ge-3,3)):(re(L,j,L.bl_tree),H(L,ge-11,7));fe=J,ye=(ge=0)===ve?(de=138,3):J===ve?(de=6,3):(de=7,4)}}c(Z);var G=!1;function I(L,q,X,ie){H(L,(u<<1)+(ie?1:0),3),function(J,fe,ve,ge){se(J),R(J,ve),R(J,~ve),s.arraySet(J.pending_buf,J.window,fe,ve,J.pending),J.pending+=ve}(L,q,X)}a._tr_init=function(L){G||(function(){var q,X,ie,J,fe,ve=new Array(v+1);for(J=ie=0;J<d-1;J++)for(z[J]=ie,q=0;q<1<<E[J];q++)M[ie++]=J;for(M[ie-1]=J,J=fe=0;J<16;J++)for(Z[J]=fe,q=0;q<1<<C[J];q++)F[fe++]=J;for(fe>>=7;J<p;J++)for(Z[J]=fe<<7,q=0;q<1<<C[J]-7;q++)F[256+fe++]=J;for(X=0;X<=v;X++)ve[X]=0;for(q=0;q<=143;)$[2*q+1]=8,q++,ve[8]++;for(;q<=255;)$[2*q+1]=9,q++,ve[9]++;for(;q<=279;)$[2*q+1]=7,q++,ve[7]++;for(;q<=287;)$[2*q+1]=8,q++,ve[8]++;for(D($,f+1,ve),q=0;q<p;q++)T[2*q+1]=5,T[2*q]=ae(q,5);Y=new V($,E,h+1,f,v),W=new V(T,C,0,p,v),ee=new V(new Array(0),N,0,y,b)}(),G=!0),L.l_desc=new ne(L.dyn_ltree,Y),L.d_desc=new ne(L.dyn_dtree,W),L.bl_desc=new ne(L.bl_tree,ee),L.bi_buf=0,L.bi_valid=0,U(L)},a._tr_stored_block=I,a._tr_flush_block=function(L,q,X,ie){var J,fe,ve=0;0<L.level?(L.strm.data_type===2&&(L.strm.data_type=function(ge){var de,ye=4093624447;for(de=0;de<=31;de++,ye>>>=1)if(1&ye&&ge.dyn_ltree[2*de]!==0)return o;if(ge.dyn_ltree[18]!==0||ge.dyn_ltree[20]!==0||ge.dyn_ltree[26]!==0)return l;for(de=32;de<h;de++)if(ge.dyn_ltree[2*de]!==0)return l;return o}(L)),ue(L,L.l_desc),ue(L,L.d_desc),ve=function(ge){var de;for(B(ge,ge.dyn_ltree,ge.l_desc.max_code),B(ge,ge.dyn_dtree,ge.d_desc.max_code),ue(ge,ge.bl_desc),de=y-1;3<=de&&ge.bl_tree[2*A[de]+1]===0;de--);return ge.opt_len+=3*(de+1)+5+5+4,de}(L),J=L.opt_len+3+7>>>3,(fe=L.static_len+3+7>>>3)<=J&&(J=fe)):J=fe=X+5,X+4<=J&&q!==-1?I(L,q,X,ie):L.strategy===4||fe===J?(H(L,2+(ie?1:0),3),K(L,$,T)):(H(L,4+(ie?1:0),3),function(ge,de,ye,_e){var Fe;for(H(ge,de-257,5),H(ge,ye-1,5),H(ge,_e-4,4),Fe=0;Fe<_e;Fe++)H(ge,ge.bl_tree[2*A[Fe]+1],3);pe(ge,ge.dyn_ltree,de-1),pe(ge,ge.dyn_dtree,ye-1)}(L,L.l_desc.max_code+1,L.d_desc.max_code+1,ve+1),K(L,L.dyn_ltree,L.dyn_dtree)),U(L),ie&&se(L)},a._tr_tally=function(L,q,X){return L.pending_buf[L.d_buf+2*L.last_lit]=q>>>8&255,L.pending_buf[L.d_buf+2*L.last_lit+1]=255&q,L.pending_buf[L.l_buf+L.last_lit]=255&X,L.last_lit++,q===0?L.dyn_ltree[2*X]++:(L.matches++,q--,L.dyn_ltree[2*(M[X]+h+1)]++,L.dyn_dtree[2*P(q)]++),L.last_lit===L.lit_bufsize-1},a._tr_align=function(L){H(L,2,3),re(L,x,$),function(q){q.bi_valid===16?(R(q,q.bi_buf),q.bi_buf=0,q.bi_valid=0):8<=q.bi_valid&&(q.pending_buf[q.pending++]=255&q.bi_buf,q.bi_buf>>=8,q.bi_valid-=8)}(L)}},{"../utils/common":41}],53:[function(r,n,a){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,n,a){(function(s){(function(o,l){if(!o.setImmediate){var c,u,d,h,f=1,p={},y=!1,m=o.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(o);v=v&&v.setTimeout?v:o,c={}.toString.call(o.process)==="[object process]"?function(_){dr.nextTick(function(){b(_)})}:function(){if(o.postMessage&&!o.importScripts){var _=!0,w=o.onmessage;return o.onmessage=function(){_=!1},o.postMessage("","*"),o.onmessage=w,_}}()?(h="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),function(_){o.postMessage(h+_,"*")}):o.MessageChannel?((d=new MessageChannel).port1.onmessage=function(_){b(_.data)},function(_){d.port2.postMessage(_)}):m&&"onreadystatechange"in m.createElement("script")?(u=m.documentElement,function(_){var w=m.createElement("script");w.onreadystatechange=function(){b(_),w.onreadystatechange=null,u.removeChild(w),w=null},u.appendChild(w)}):function(_){setTimeout(b,0,_)},v.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var w=new Array(arguments.length-1),j=0;j<w.length;j++)w[j]=arguments[j+1];var E={callback:_,args:w};return p[f]=E,c(f),f++},v.clearImmediate=g}function g(_){delete p[_]}function b(_){if(y)setTimeout(b,0,_);else{var w=p[_];if(w){y=!0;try{(function(j){var E=j.callback,C=j.args;switch(C.length){case 0:E();break;case 1:E(C[0]);break;case 2:E(C[0],C[1]);break;case 3:E(C[0],C[1],C[2]);break;default:E.apply(l,C)}})(w)}finally{g(_),y=!1}}}}
8101function x(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(h)===0&&b(+_.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof ec<"u"?ec:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(lQ)),lQ.exports}var Vxt=Hxt();const Wxt=Vse(Vxt);var Wx={exports:{}},cQ,l0e;function Gxt(){if(l0e)return cQ;l0e=1;var e={"&":"&",'"':""","'":"'","<":"<",">":">"};function t(r){return r&&r.replace?r.replace(/([&"<>'])/g,function(n,a){return e[a]}):r}return cQ=t,cQ}var c0e;function Kxt(){if(c0e)return Wx.exports;c0e=1;var e=Gxt(),t=Zse().Stream,r=" ";function n(u,d){typeof d!="object"&&(d={indent:d});var h=d.stream?new t:null,f="",p=!1,y=d.indent?d.indent===!0?r:d.indent:"",m=!0;function v(w){m?dr.nextTick(w):w()}function g(w,j){if(j!==void 0&&(f+=j),w&&!p&&(h=h||new t,p=!0),w&&p){var E=f;v(function(){h.emit("data",E)}),f=""}}function b(w,j){l(g,o(w,y,y?1:0),j)}function x(){if(h){var w=f;v(function(){h.emit("data",w),h.emit("end"),h.readable=!1,h.emit("close")})}}function _(w){var j=w.encoding||"UTF-8",E={version:"1.0",encoding:j};w.standalone&&(E.standalone=w.standalone),b({"?xml":{_attr:E}}),f=f.replace("/>","?>")}return v(function(){m=!1}),d.declaration&&_(d.declaration),u&&u.forEach?u.forEach(function(w,j){var E;j+1===u.length&&(E=x),b(w,E)}):b(u,x),h?(h.readable=!0,h):f}function a(){var u=Array.prototype.slice.call(arguments),d={_elem:o(u)};return d.push=function(h){if(!this.append)throw new Error("not assigned to a parent!");var f=this,p=this._elem.indent;l(this.append,o(h,p,this._elem.icount+(p?1:0)),function(){f.append(!0)})},d.close=function(h){h!==void 0&&this.push(h),this.end&&this.end()},d}function s(u,d){return new Array(d||0).join(u||"")}function o(u,d,h){h=h||0;var f=s(d,h),p,y=u,m=!1;if(typeof u=="object"){var v=Object.keys(u);if(p=v[0],y=u[p],y&&y._elem)return y._elem.name=p,y._elem.icount=h,y._elem.indent=d,y._elem.indents=f,y._elem.interrupt=y,y._elem}var g=[],b=[],x;function _(w){var j=Object.keys(w);j.forEach(function(E){g.push(c(E,w[E]))})}switch(typeof y){case"object":if(y===null)break;y._attr&&_(y._attr),y._cdata&&b.push(("<![CDATA["+y._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),y.forEach&&(x=!1,b.push(""),y.forEach(function(w){if(typeof w=="object"){var j=Object.keys(w)[0];j=="_attr"?_(w._attr):b.push(o(w,d,h+1))}else b.pop(),x=!0,b.push(e(w))}),x||b.push(""));break;default:b.push(e(y))}return{name:p,interrupt:m,attributes:g,content:b,icount:h,indents:f,indent:d}}function l(u,d,h){if(typeof d!="object")return u(!1,d);var f=d.interrupt?1:d.content.length;function p(){for(;d.content.length;){var m=d.content.shift();if(m!==void 0){if(y(m))return;l(u,m)}}u(!1,(f>1?d.indents:"")+(d.name?"</"+d.name+">":"")+(d.indent&&!h?` 8102`:"")),h&&h()}function y(m){return m.interrupt?(m.interrupt.append=u,m.interrupt.end=p,m.interrupt=!1,u(!0),!0):!1}if(u(!1,d.indents+(d.name?"<"+d.name:"")+(d.attributes.length?" "+d.attributes.join(" "):"")+(f?d.name?">":"":d.name?"/>":"")+(d.indent&&f>1?` 8103`:"")),!f)return u(!1,d.indent?` 8104`:"");y(d)||p()}function c(u,d){return u+'="'+e(d)+'"'}return Wx.exports=n,Wx.exports.element=Wx.exports.Element=a,Wx.exports}var Yxt=Kxt();const $n=Vse(Yxt),Gx=0,uQ=32,Xxt=32,Zxt=(e,t)=>{const r=t.replace(/-/g,"");if(r.length!==Xxt)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const a=r.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));a.reverse();const o=e.slice(Gx,uQ).map((c,u)=>c^a[u%a.length]),l=new Uint8Array(Gx+o.length+Math.max(0,e.length-uQ));return l.set(e.slice(0,Gx)),l.set(o,Gx),l.set(e.slice(uQ),Gx+o.length),l};class Qxt{format(t,r={stack:[]}){const n=t.prepForXml(r);if(n)return n;throw Error("XMLComponent did not format correctly")}}class Jxt{replace(t,r,n){let a=t;return r.forEach((s,o)=>{a=a.replace(new RegExp(`{${s.fileName}}`,"g"),(n+o).toString())}),a}getMediaData(t,r){return r.Array.filter(n=>t.search(`{${n.fileName}}`)>0)}}class ebt{replace(t,r){let n=t;for(const a of r)n=n.replace(new RegExp(`{${a.reference}-${a.instance}}`,"g"),a.numId.toString());return n}}class tbt{constructor(){Ne(this,"formatter"),Ne(this,"imageReplacer"),Ne(this,"numberingReplacer"),this.formatter=new Qxt,this.imageReplacer=new Jxt,this.numberingReplacer=new ebt}compile(t,r,n=[]){const a=new Wxt,s=this.xmlifyFile(t,r),o=new Map(Object.entries(s));for(const[,l]of o)if(Array.isArray(l))for(const c of l)a.file(c.path,c.data);else a.file(l.path,l.data);for(const l of n)a.file(l.path,l.data);for(const l of t.Media.Array)l.type!=="svg"?a.file(`word/media/${l.fileName}`,l.data):(a.file(`word/media/${l.fileName}`,l.data),a.file(`word/media/${l.fallback.fileName}`,l.fallback.data));for(const{data:l,name:c,fontKey:u}of t.FontTable.fontOptionsWithKey){const[d]=c.split(".");a.file(`word/fonts/${d}.odttf`,Zxt(l,u))}return a}xmlifyFile(t,r){const n=t.Document.Relationships.RelationshipCount+1,a=$n(this.formatter.format(t.Document.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),s=t.Comments.Relationships.RelationshipCount+1,o=$n(this.formatter.format(t.Comments,{viewWrapper:{View:t.Comments,Relationships:t.Comments.Relationships},file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),l=this.imageReplacer.getMediaData(a,t.Media),c=this.imageReplacer.getMediaData(o,t.Media);return{Relationships:{data:(l.forEach((u,d)=>{t.Document.Relationships.createRelationship(n+d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${u.fileName}`)}),t.Document.Relationships.createRelationship(t.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),$n(this.formatter.format(t.Document.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const u=this.imageReplacer.replace(a,l,n);return this.numberingReplacer.replace(u,t.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const u=$n(this.formatter.format(t.Styles,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(u,t.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:$n(this.formatter.format(t.CoreProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:$n(this.formatter.format(t.Numbering,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:$n(this.formatter.format(t.FileRelationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:t.Headers.map((u,d)=>{const h=$n(this.formatter.format(u.View,{viewWrapper:u,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});
8104return this.imageReplacer.getMediaData(h,t.Media).forEach((p,y)=>{u.Relationships.createRelationship(y,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${p.fileName}`)}),{data:$n(this.formatter.format(u.Relationships,{viewWrapper:u,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${d+1}.xml.rels`}}),FooterRelationships:t.Footers.map((u,d)=>{const h=$n(this.formatter.format(u.View,{viewWrapper:u,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(h,t.Media).forEach((p,y)=>{u.Relationships.createRelationship(y,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${p.fileName}`)}),{data:$n(this.formatter.format(u.Relationships,{viewWrapper:u,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${d+1}.xml.rels`}}),Headers:t.Headers.map((u,d)=>{const h=$n(this.formatter.format(u.View,{viewWrapper:u,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),f=this.imageReplacer.getMediaData(h,t.Media),p=this.imageReplacer.replace(h,f,0);return{data:this.numberingReplacer.replace(p,t.Numbering.ConcreteNumbering),path:`word/header${d+1}.xml`}}),Footers:t.Footers.map((u,d)=>{const h=$n(this.formatter.format(u.View,{viewWrapper:u,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),f=this.imageReplacer.getMediaData(h,t.Media),p=this.imageReplacer.replace(h,f,0);return{data:this.numberingReplacer.replace(p,t.Numbering.ConcreteNumbering),path:`word/footer${d+1}.xml`}}),ContentTypes:{data:$n(this.formatter.format(t.ContentTypes,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:$n(this.formatter.format(t.CustomProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:$n(this.formatter.format(t.AppProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:$n(this.formatter.format(t.FootNotes.View,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:$n(this.formatter.format(t.FootNotes.Relationships,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:$n(this.formatter.format(t.Settings,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const u=this.imageReplacer.replace(o,c,s);return this.numberingReplacer.replace(u,t.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(c.forEach((u,d)=>{t.Comments.Relationships.createRelationship(s+d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${u.fileName}`)}),$n(this.formatter.format(t.Comments.Relationships,{viewWrapper:{View:t.Comments,Relationships:t.Comments.Relationships},file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"},FontTable:{data:$n(this.formatter.format(t.FontTable.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:$n(this.formatter.format(t.FontTable.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const rbt={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},u0e=e=>e===!0?rbt.WITH_2_BLANKS:e===!1?void 0:e,i8e=class Ug{static pack(t,r,n){return C0t(this,arguments,function*(a,s,o,l=[]){return this.compiler.compile(a,u0e(o),l).generateAsync({type:s,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(t,r,n=[]){return Ug.pack(t,"string",r,n)}static toBuffer(t,r,n=[]){return Ug.pack(t,"nodebuffer",r,n)}static toBase64String(t,r,n=[]){return Ug.pack(t,"base64",r,n)}static toBlob(t,r,n=[]){return Ug.pack(t,"blob",r,n)}static toArrayBuffer(t,r,n=[]){return Ug.pack(t,"arraybuffer",r,n)}static toStream(t,r,n=[]){const a=new qxt.Stream;return this.compiler.compile(t,u0e(r),n).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(o=>
8104{a.emit("data",o),a.emit("end")}),a}};Ne(i8e,"compiler",new tbt);let nbt=i8e;async function abt(e){try{const t=await fetch(e);return t.ok?await t.arrayBuffer():(console.warn(`Failed to fetch image: ${e}`),null)}catch(t){return console.warn(`Error fetching image ${e}:`,t),null}}async function ibt({title:e,description:t,storyContent:r,pageIllustrations:n={},authorName:a,dedicationMessage:s}){const o=[],l=new Date().getFullYear(),c=a||"Kibbi";o.push(new Wa({children:[new io({text:""})],spacing:{after:800}})),o.push(new Wa({children:[new io({text:e,bold:!0,size:72})],alignment:si.CENTER,spacing:{after:400}})),o.push(new Wa({children:[new io({text:`By ${c}`,italics:!0,size:28})],alignment:si.CENTER,spacing:{before:400}})),o.push(new Wa({children:[new Y3]})),o.push(new Wa({children:[new io({text:""})],spacing:{after:1200}})),o.push(new Wa({children:[new io({text:`Copyright © ${l} ${c}`,size:22})],alignment:si.CENTER,spacing:{after:400}})),o.push(new Wa({children:[new io({text:"All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law.",size:20})],alignment:si.CENTER,spacing:{after:400}})),o.push(new Wa({children:[new Y3]})),o.push(new Wa({children:[new io({text:""})],spacing:{after:1200}}));const u=s||`This story was created just for you. 8105May it bring joy, wonder, and endless imagination to your reading adventures.`;o.push(new Wa({children:[new io({text:"Dedication",bold:!0,size:32})],alignment:si.CENTER,spacing:{after:600}}));const d=u.split(` 8106`);for(const v of d)o.push(new Wa({children:[new io({text:v,italics:!0,size:24})],alignment:si.CENTER,spacing:{after:200}}));o.push(new Wa({children:[new Y3]}));const h=Object.keys(r).map(Number).filter(v=>!isNaN(v)).sort((v,g)=>v-g),f=h.map(async v=>{const g=n[String(v)],b=(g==null?void 0:g.upscaled_url)||(g==null?void 0:g.image_url);return b?{pageNum:v,buffer:await abt(b)}:{pageNum:v,buffer:null}}),p=await Promise.all(f),y=new Map;p.forEach(({pageNum:v,buffer:g})=>{y.set(v,g)});for(let v=0;v<h.length;v++){const g=h[v],b=r[String(g)]||"",x=y.get(g),_=b.split(/\n+/).filter(w=>w.trim());_.forEach((w,j)=>{o.push(new Wa({children:[new io({text:w.trim(),size:24})],spacing:{after:j<_.length-1?200:400}}))}),x&&o.push(new Wa({children:[new w2t({data:x,transformation:{width:450,height:675},type:"png"})],alignment:si.CENTER,spacing:{before:200,after:400}})),v<h.length-1&&o.push(new Wa({children:[new Y3]}))}const m=new Uxt({title:e,description:t,sections:[{children:o}]});return await nbt.toBlob(m)}function sbt(e){return e.replace(/[^a-zA-Z0-9\s-]/g,"").replace(/\s+/g,"-").toLowerCase().substring(0,100)}function s8e(e,t){const r=e==null?void 0:e[String(t)],n=e==null?void 0:e[`page-${t}`];return r!=null&&r.image_url||r!=null&&r.upscaled_url?r:n!=null&&n.image_url||n!=null&&n.upscaled_url?n:r??n}function obt({storedStatus:e,hasImage:t,abandoned:r}){return r?t?"complete":"failed":t?"complete":e??void 0}function lbt(e){return e.hasImage&&!e.abandoned&&(e.qaRefining===!0||["generating","painting","pending"].includes(e.storedStatus??""))}function Qte(e,t){const r=e&&typeof e=="object"&&!Array.isArray(e)?e:{};return[...new Set(t)].filter(n=>{const a=s8e(r,n);return!!(a!=null&&a.image_url||a!=null&&a.upscaled_url)}).length}function cbt(e){return!!e.partialUrl&&!e.abandoned}const o8e="kibbi:illustration-progress:",l8e=3e4,ubt={pct:0,stage:null,revealed:!1,runId:null,updatedAt:0};function c8e(e,t){const r=e??ubt,n=t.pct,a=typeof n=="number"&&Number.isFinite(n)?Math.max(0,Math.min(100,n)):null,s=r.revealed||t.revealed===!0,o=t.runId??null,l=!!o&&!!r.runId&&o!==r.runId,c=!!o&&!!r.runId&&o===r.runId,u=!l&&!c&&r.updatedAt>0&&typeof t.updatedAt=="number"&&t.updatedAt-r.updatedAt>l8e;return l||u?{pct:a??0,stage:t.stage!==void 0?t.stage:null,revealed:s,runId:o,updatedAt:t.updatedAt??r.updatedAt}:{pct:a===null?r.pct:Math.max(r.pct,a),stage:t.stage!==void 0?t.stage:r.stage,revealed:s,runId:o||r.runId,updatedAt:t.updatedAt??r.updatedAt}}function u8e(){try{return typeof window>"u"||!window.sessionStorage?null:window.sessionStorage}catch{return null}}function ioe(e){if(!e)return null;const t=u8e();if(!t)return null;try{const r=t.getItem(o8e+e);if(!r)return null;const n=JSON.parse(r);return c8e(null,n)}catch{return null}}function d8e(e,t){const r=ioe(e);return r?t&&r.runId?r.runId===t?r:null:r.updatedAt>0&&Date.now()-r.updatedAt>l8e?null:r:null}
8106function h8e(e,t){if(!e)return null;const r=u8e();if(!r)return null;const n=c8e(ioe(e),{...t,updatedAt:t.updatedAt??Date.now()});try{r.setItem(o8e+e,JSON.stringify(n))}catch{}return n}function dbt(e){h8e(e,{revealed:!0})}function hbt(e){var t;return((t=ioe(e))==null?void 0:t.revealed)===!0}const fbt=["checking","repairing","verifying","complete","correction_failed","check_incomplete"],pbt=20;function d0e(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function mbt(e,t){if(!d0e(e)||e.version!==3||Object.keys(e).length!==4||typeof e.invocation_id!="string"||!e.invocation_id.trim()||!Number.isSafeInteger(e.sequence)||Number(e.sequence)<1||!d0e(e.pages))return null;const r=Object.entries(e.pages);if(r.length>pbt)return null;const n=t?new Set(t):null,a={};for(const[s,o]of r){const l=Number(s);if(!/^[1-9][0-9]*$/.test(s)||!Number.isSafeInteger(l)||n&&!n.has(l)||!fbt.includes(o))return null;a[s]=o}return{version:3,invocation_id:e.invocation_id,sequence:Number(e.sequence),pages:a}}function f8e(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return["complete","incomplete"].includes(t.local)&&["complete","incomplete","not_required"].includes(t.consistency)&&["complete","incomplete","not_required"].includes(t.repair_verification)&&(t.repair_outcome==="not_attempted"?t.repair_verification!=="complete":t.repair_outcome==="original_retained"?t.repair_verification!=="not_required":t.repair_outcome==="improved"&&t.repair_verification==="complete")}function gbt(e,t=!1){return f8e(e)&&e.local==="complete"&&(e.consistency==="complete"||!t&&e.consistency==="not_required")&&(e.repair_verification==="complete"||e.repair_verification==="not_required")}function ybt(e){var o,l,c,u;const t=CH(e);if((t==null?void 0:t.status)!=="external"||!t.orchestrator_invocation||((o=t.metadata)==null?void 0:o.image_final_token)!=null)return null;const r=(l=t.metadata)==null?void 0:l.fromPage,n=(c=t.metadata)==null?void 0:c.pagesToQueue;if(typeof r!="number"||!Number.isSafeInteger(r)||r<1||typeof n!="number"||!Number.isSafeInteger(n)||n<1||n>20||!Number.isSafeInteger(r+n-1))return null;const a=Array.from({length:n},(d,h)=>r+h),s=mbt((u=t.metadata)==null?void 0:u.image_qa_progress,a);return(s==null?void 0:s.invocation_id)===t.orchestrator_invocation?{...s,requestedPages:a}:null}const vbt={checking:"Checking illustrationâ¦",repairing:"We spotted a detail to fix. Updating this illustrationâ¦",verifying:"Checking the updated illustrationâ¦",complete:null,correction_failed:"We couldnât finish this correction.",check_incomplete:"We couldnât finish checking this illustration."};function xbt({page:e,progress:t,coverage:r,imageUrl:n,qaImageUrl:a,qaPassed:s,rendering:o,legacyQaRefining:l}){if(l)return null;let c;if(t!=null&&t.requestedPages.includes(e)){const u=t.pages[String(e)];if(!u)return null;c=u}else{if(o||!(n!=null&&n.trim())||a!==n||!f8e(r))return null;c=r.repair_outcome==="original_retained"||r.repair_outcome==="improved"&&s===!1?"correction_failed":gbt(r)?"complete":"check_incomplete"}return{message:vbt[c],busy:c==="checking"||c==="repairing"||c==="verifying"}}const bbt=e=>(e??[]).some(t=>(t==null?void 0:t.status)==="external"||(t==null?void 0:t.status)==="processing"),wbt=["dead_letter"],p8e=["external","processing","ingesting"];function kbt(e,t,r,n=!1){if(n||(r??[]).some(s=>p8e.includes((s==null?void 0:s.status)??"")))return!1;const a=(t??[]).find(s=>Number(s==null?void 0:s.page_number)===e);return!!a&&wbt.includes(a.status??"")}function _bt(e){const t=CH(e),r=(t==null?void 0:t.status)==="external"||(t==null?void 0:t.status)==="processing"?t:void 0,n=r==null?void 0:r.metadata;if(!n||typeof n!="object")return null;const a=typeof n.breyta_last_stage=="string"?n.breyta_last_stage:null,s=n.breyta_last_pct,o=typeof s=="number"&&Number.isFinite(s)?Math.max(0,Math.min(100,s)):null,l=n.trigger_id,c=typeof l=="string"&&l.trim()?l.trim():null;return a===null&&o===null&&c===null?null:{stage:a,pct:o,runId:c}}function m8e(e,t,r={}){if(!e)return[];const n=Object.keys(wl(e.story_content??e.story_content_draft)).map(o=>parseInt(o,10)).filter(o=>!Number.isNaN(o)),a=N2(e,n),s=e.page_illustrations||{};return a.filter(o=>{const l=s[String(o)];return!((l==null?void 0:l.status)==="complete"&&!!(l!=null&&l.image_url))&&kbt(o,r.legacyQueueRows,t,r.evidenceUnknown)})}function Sbt(e,t,r={}){if(!e)return"images_pending";const n=wl(e.story_content),a=Object.keys(n).length,s=bbt(t);if(a===0)return s?"breyta_running":"images_pending";const o=!!e.cover_image_url,l=Object.keys(n).map(j=>parseInt(j,10)).filter(j=>!isNaN(j)),c=e.page_illustrations||{},u=j=>{const E=c[String(j)];return(E==null?void 0:E.status)==="complete"&&!!(E!=null&&E.image_url)},d=l.filter(j=>j<=4),h=o&&d.length>0&&d.every(u),f=N2(e,l),p=m8e(e,t,r),y=f.length>0&&f.every(j=>u(j)||p.includes(j));if(s)return o&&y?"polishing":h?"topping_up":a>0?"streaming":"breyta_running";if(!o||!y)return h?"topping_up":a>0?"text_ready":"images_pending";const m=e.intended_entitlement==="book_club_teaser",v=Object.values(c),g=v.filter(j=>(j==null?void 0:j.status)==="failed").length,b=v.filter(j=>(j==null?void 0:j.status)==="complete"||(j==null?void 0:j.status)==="failed").length,x=v.length>0&&b>=v.length,_=!e.qa_status&&!e.qa_run_id&&e.status==="completed",w=m||x&&g>0||_||p.length>0;return zse(e.qa_status,{qaCouldNotRun:w,isAdmin:r.isAdmin})?"ready":"qa_pending"}function jbt(e){return e.readerAlreadyRevealed||e.textViewable?null:e.creationInFlight?"creation":e.gateActive&&!e.bookViewable&&!e.previewAlreadyShown?"readiness":null}function dQ(e){return e==="ready"||e==="topping_up"||e==="polishing"||e==="streaming"||e==="text_ready"||e==="qa_pending"}function J3(e){const t=d8e(e,null),r=t&&!(t.stage===null&&t.pct===0)?{stage:t.stage,pct:t.pct||null,runId:t.runId}:null;return{storyId:e,status:"loading",abandonedPages:[],coverImageUrl:null,breytaProgress:r,imageQaProgress:null,hasFinalText:!1,polled:!1}}function g8e(e,t={}){const{enabled:r=!0,pollMs:n=2e3,isAdmin:a,observeLaterImageRuns:s=!1}=t,[o,l]=k.useState(()=>J3(e)),c=o.storyId===e?o:J3(e),{status:u,coverImageUrl:d,breytaProgress:h}=c,f=!!d;k.useEffect(()=>{l(g=>g.storyId===e?g:J3(e))},[e]),k.useEffect(()=>{let g=!1;if(!r||!e){l({...J3(e),status:"ready"});return}let b=null,x;const _=Math.max(1e4,n),w=()=>oe.from("story_generation_queue").select("id, status, error_message, metadata, orchestrator_invocation").eq("story_id",e).eq("step","breyta_images").order("started_at",{ascending:!1}).order("created_at",{ascending:!1}).order("id",{ascending:!1}),j=N=>
8106{var $;const A=CH(N);return JSON.stringify([A==null?void 0:A.id,A==null?void 0:A.status,A==null?void 0:A.orchestrator_invocation,($=A==null?void 0:A.metadata)==null?void 0:$.image_final_token])},E=async()=>{try{const{data:N,error:A}=await w();if(g)return;if(!A&&Array.isArray(N)){const $=N,T=CH($);if(j($)!==x||p8e.includes((T==null?void 0:T.status)??"")){await C($);return}}}catch(N){g||console.warn("[useStoryImagesReady] idle observation error:",N)}g||(b=setTimeout(E,_))},C=async N=>{try{const[{data:A,error:$},{data:T,error:F},{data:M,error:z}]=await Promise.all([oe.from("stories").select("cover_image_url, page_illustrations, story_content, story_content_draft, has_purchased, intended_entitlement, qa_status, qa_run_id, status").eq("id",e).maybeSingle(),N?Promise.resolve({data:N,error:null}):w(),oe.from("image_generation_queue").select("page_number, status").eq("story_id",e)]);if(g)return;const Y=!!F||!Array.isArray(T),W=Y?null:ybt(T);if($||!A){l(ne=>ne.storyId===e?{...ne,imageQaProgress:W}:ne),b=setTimeout(C,n);return}Y||(x=j(T));const ee={isAdmin:a,legacyQueueRows:M,evidenceUnknown:!!z||Y},Z=Sbt(A,T,ee),V=m8e(A,T,ee);l(ne=>({storyId:e,abandonedPages:V,status:ne.storyId===e&&ne.hasFinalText&&dQ(ne.status)&&!dQ(Z)?ne.status:Z,coverImageUrl:(A==null?void 0:A.cover_image_url)??null,breytaProgress:_bt(T),imageQaProgress:W,hasFinalText:Object.keys(wl(A.story_content)).length>0,polled:!0})),Z!=="ready"?b=setTimeout(C,n):s&&(b=setTimeout(E,_))}catch(A){console.warn("[useStoryImagesReady] poll error:",A),g||(l($=>$.storyId===e?{...$,imageQaProgress:null}:$),b=setTimeout(C,n))}};return C(),()=>{g=!0,b&&clearTimeout(b)}},[e,r,n,a,s]);const p=!r||!e||c.hasFinalText,y=p&&dQ(u),m=p&&(u==="ready"||u==="topping_up"||u==="polishing"||u==="streaming"&&f),v=p&&(u==="ready"||u==="polishing");return{ready:p&&u==="ready",abandonedPages:c.abandonedPages??[],bookViewable:v,minViewable:m,textViewable:y,status:u,breytaProgress:h,imageQaProgress:r?c.imageQaProgress:null,coverImageUrl:d,progressStoryId:c.polled?e??null:null}}function y8e({label:e,progress:t,className:r="",testId:n="illustration-streaming-card"}){return i.jsxs("div",{role:"status",className:`w-full flex flex-col items-center justify-center space-y-4 p-6 text-center ${r}`,"data-testid":n,children:[i.jsx(Me,{"aria-hidden":"true",className:"h-8 w-8 animate-spin text-primary"}),i.jsx("p",{className:"text-sm font-medium text-foreground",children:e}),t!==void 0&&i.jsx("div",{role:"progressbar","aria-label":"Illustration progress","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(t),className:"w-48 h-1.5 bg-muted rounded-full overflow-hidden",children:i.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-1000 ease-out",style:{width:`${t}%`},"data-testid":"illustration-progress-bar"})}),i.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px]",children:"Usually a few minutes â keep reading, the pictures appear as they're painted."})]})}const Ebt={planning:"Planning the artwork...",rendering:"Painting each page...","pages-landed":"First pictures are landing...",finalizing:"Finishing touches..."};function Cbt(e){return e&&Ebt[e]||"Painting your illustrations..."}const v8e=[5,40,60,90,100];function Nbt(e){return v8e.find(t=>t>e)??100}function Tbt(e,t,r=.02){const n=Math.max(e,t??0,v8e[0]),a=Math.max(n,Nbt(t??n)-1);return n>=a?a:Math.min(a,n+(a-n)*r)}const hQ=[16,9,4];function Abt(e){if(e==null||Number.isNaN(e)||e<0)return hQ[0];const t=Math.min(Math.floor(e),hQ.length-1);return hQ[t]}function Mbt(e,t){const r=e!=null&&!Number.isNaN(e)&&e>=0?e:void 0,n=t!=null&&!Number.isNaN(t)&&t>=0?t:void 0;return r===void 0?n:n===void 0?r:Math.max(r,n)}function fQ(e,t){var r;return{storyId:e,runId:t,pct:((r=d8e(e,t))==null?void 0:r.pct)||5}}function x8e({storyId:e,pending:t,realPct:r,stage:n,progressStoryId:a,runId:s,markRevealed:o=!1}){const l=a===void 0||a===e,c=l?r:null,u=l?n:null,d=l?s??null:null,[h,f]=k.useState(()=>fQ(e,d)),p=h.storyId===e&&h.runId===d,y=p?h.pct:fQ(e,d).pct;return k.useEffect(()=>{f(m=>m.storyId===e&&m.runId===d?m:fQ(e,d))},[e,d]),k.useEffect(()=>{if(!t)return;const m=setInterval(()=>f(v=>v.storyId===e&&v.runId===d?{storyId:e,runId:d,pct:Tbt(v.pct,c)}:v),1e3);return()=>clearInterval(m)},[t,c,e,d]),k.useEffect(()=>{c!=null&&f(m=>m.storyId===e&&m.runId===d?{storyId:e,runId:d,pct:Math.max(m.pct,c)}:m)},[c,e,d]),k.useEffect(()=>{o&&dbt(e)},[o,e]),k.useEffect(()=>
8106{!t||!p||h8e(e,{pct:h.pct,stage:u??void 0,runId:d})},[e,h,p,t,u,d]),{displayProgress:y,label:Cbt(u)}}var b8e={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(window,function(){return function(r){var n={};function a(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=n,a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:l})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,o){if(o&1&&(s=a(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)a.d(l,c,(function(u){return s[u]}).bind(null,c));return l},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=0)}({
8106"./src/index.js":function(r,n,a){a.r(n),a("./src/sass/index.scss");var s=a("./src/js/init.js"),o=s.default.init;typeof window<"u"&&(window.printJS=o),n.default=o},
8106"./src/js/browser.js":function(r,n,a){a.r(n);var s={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!s.isIE()&&!!window.StyleMedia},isChrome:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!l.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};n.default=s},
8106"./src/js/functions.js":function(r,n,a){a.r(n),a.d(n,"addWrapper",function(){return c}),a.d(n,"capitalizePrint",function(){return u}),a.d(n,"collectStyles",function(){return d}),a.d(n,"addHeader",function(){return f}),a.d(n,"cleanUp",function(){return p}),a.d(n,"isRawHTML",function(){return y});var s=a("./src/js/modal.js"),o=a("./src/js/browser.js");function l(m){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(g){return typeof g}:l=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},l(m)}function c(m,v){var g="font-family:"+v.font+" !important; font-size: "+v.font_size+" !important; width:100%;";return'<div style="'+g+'">'+m+"</div>"}function u(m){return m.charAt(0).toUpperCase()+m.slice(1)}function d(m,v){for(var g=document.defaultView||window,b="",x=g.getComputedStyle(m,""),_=0;_<x.length;_++)(v.targetStyles.indexOf("*")!==-1||v.targetStyle.indexOf(x[_])!==-1||h(v.targetStyles,x[_]))&&x.getPropertyValue(x[_])&&(b+=x[_]+":"+x.getPropertyValue(x[_])+";");return b+="max-width: "+v.maxWidth+"px !important; font-size: "+v.font_size+" !important;",b}function h(m,v){for(var g=0;g<m.length;g++)if(l(v)==="object"&&v.indexOf(m[g])!==-1)return!0;return!1}function f(m,v){var g=document.createElement("div");if(y(v.header))g.innerHTML=v.header;else{var b=document.createElement("h1"),x=document.createTextNode(v.header);b.appendChild(x),b.setAttribute("style",v.headerStyle),g.appendChild(b)}m.insertBefore(g,m.childNodes[0])}function p(m){m.showModal&&s.default.close(),m.onLoadingEnd&&m.onLoadingEnd(),(m.showModal||m.onLoadingStart)&&window.URL.revokeObjectURL(m.printable);var v="mouseover";(o.default.isChrome()||o.default.isFirefox())&&(v="focus");var g=function b(){window.removeEventListener(v,b),m.onPrintDialogClose();var x=document.getElementById(m.frameId);x&&x.remove()};window.addEventListener(v,g)}function y(m){var v=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return v.test(m)}},
8106"./src/js/html.js":function(r,n,a){a.r(n);var s=a("./src/js/functions.js"),o=a("./src/js/print.js");function l(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(f){return typeof f}:l=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},l(d)}n.default={print:function(h,f){var p=u(h.printable)?h.printable:document.getElementById(h.printable);if(!p){window.console.error("Invalid HTML element id: "+h.printable);return}h.printableElement=c(p,h),h.header&&Object(s.addHeader)(h.printableElement,h),o.default.send(h,f)}};function c(d,h){for(var f=d.cloneNode(),p=Array.prototype.slice.call(d.childNodes),y=0;y<p.length;y++)if(h.ignoreElements.indexOf(p[y].id)===-1){var m=c(p[y],h);f.appendChild(m)}switch(h.scanStyles&&d.nodeType===1&&f.setAttribute("style",Object(s.collectStyles)(d,h)),d.tagName){case"SELECT":f.value=d.value;break;case"CANVAS":f.getContext("2d").drawImage(d,0,0);break}return f}function u(d){return l(d)==="object"&&d&&(d instanceof HTMLElement||d.nodeType===1)}},
vendor: 592 bytes, line 8106
8106"./src/js/image.js":function(r,n,a){a.r(n);var s=a("./src/js/functions.js"),o=a("./src/js/print.js"),l=a("./src/js/browser.js");n.default={print:function(u,d){u.printable.constructor!==Array&&(u.printable=[u.printable]),u.printableElement=document.createElement("div"),u.printable.forEach(function(h){var f=document.createElement("img");if(f.setAttribute("style",u.imageStyle),f.src=h,l.default.isFirefox()){var p=f.src;f.src=p}var y=document.createElement("div");y.appendChild(f),u.printableElement.appendChild(y)}),u.header&&Object(s.addHeader)(u.printableElement,u),o.default.send(u,d)}}},
8106"./src/js/init.js":function(r,n,a){a.r(n);var s=a("./src/js/browser.js"),o=a("./src/js/modal.js"),l=a("./src/js/pdf.js"),c=a("./src/js/html.js"),u=a("./src/js/raw-html.js"),d=a("./src/js/image.js"),h=a("./src/js/json.js");function f(y){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(v){return typeof v}:f=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},f(y)}var p=["pdf","html","image","json","raw-html"];n.default={init:function(){var m={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(j){throw j},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},v=arguments[0];if(v===void 0)throw new Error("printJS expects at least 1 attribute.");switch(f(v)){case"string":m.printable=encodeURI(v),m.fallbackPrintable=m.printable,m.type=arguments[1]||m.type;break;case"object":m.printable=v.printable,m.fallbackPrintable=typeof v.fallbackPrintable<"u"?v.fallbackPrintable:m.printable,m.fallbackPrintable=m.base64?"data:application/pdf;base64,".concat(m.fallbackPrintable):m.fallbackPrintable;for(var g in m)g==="printable"||g==="fallbackPrintable"||(m[g]=typeof v[g]<"u"?v[g]:m[g]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+f(v))}if(!m.printable)throw new Error("Missing printable information.");if(!m.type||typeof m.type!="string"||p.indexOf(m.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");m.showModal&&o.default.show(m),m.onLoadingStart&&m.onLoadingStart();var b=document.getElementById(m.frameId);b&&b.parentNode.removeChild(b);var x=document.createElement("iframe");switch(s.default.isFirefox()?x.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):x.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),x.setAttribute("id",m.frameId),m.type!=="pdf"&&(x.srcdoc="<html><head><title>"+m.documentTitle+"</title>",m.css&&(Array.isArray(m.css)||(m.css=[m.css]),m.css.forEach(function(w){x.srcdoc+='<link rel="stylesheet" href="'+w+'">'})),x.srcdoc+="</head><body></body></html>"),m.type){case"pdf":if(s.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var _=window.open(m.fallbackPrintable,"_blank");_.focus(),m.onIncompatibleBrowser()}catch(w){m.onError(w)}finally{m.showModal&&o.default.close(),m.onLoadingEnd&&m.onLoadingEnd()}else l.default.print(m,x);break;case"image":d.default.print(m,x);break;case"html":c.default.print(m,x);break;case"raw-html":u.default.print(m,x);break;case"json":h.default.print(m,x);break}}}},
8106"./src/js/json.js":function(r,n,a){a.r(n);var s=a("./src/js/functions.js"),o=a("./src/js/print.js");function l(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(h){return typeof h}:l=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},l(u)}n.default={print:function(d,h){if(l(d.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof d.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!d.properties||!Array.isArray(d.properties))throw new Error("Invalid properties array for your JSON data.");d.properties=d.properties.map(function(f){return{field:l(f)==="object"?f.field:f,displayName:l(f)==="object"?f.displayName:f,columnSize:l(f)==="object"&&f.columnSize?f.columnSize+";":100/d.properties.length+"%;"}}),d.printableElement=document.createElement("div"),d.header&&Object(s.addHeader)(d.printableElement,d),d.printableElement.innerHTML+=c(d),o.default.send(d,h)}};function c(u){var d=u.printable,h=u.properties,f='<table style="border-collapse: collapse; width: 100%;">';u.repeatTableHeader&&(f+="<thead>"),f+="<tr>";for(var p=0;p<h.length;p++)f+='<th style="width:'+h[p].columnSize+";"+u.gridHeaderStyle+'">'+Object(s.capitalizePrint)(h[p].displayName)+"</th>";f+="</tr>",u.repeatTableHeader&&(f+="</thead>"),f+="<tbody>";for(var y=0;y<d.length;y++){f+="<tr>";for(var m=0;m<h.length;m++){var v=d[y],g=h[m].field.split(".");if(g.length>1)for(var b=0;b<g.length;b++)v=v[g[b]];else v=v[h[m].field];f+='<td style="width:'+h[m].columnSize+u.gridStyle+'">'+v+"</td>"}f+="</tr>"}return f+="</tbody></table>",f}},
8106"./src/js/modal.js":function(r,n,a){a.r(n);var s={show:function(l){var c="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",u=document.createElement("div");u.setAttribute("style",c),u.setAttribute("id","printJS-Modal");var d=document.createElement("div");d.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var h=document.createElement("div");h.setAttribute("class","printClose"),h.setAttribute("id","printClose"),d.appendChild(h);var f=document.createElement("span");f.setAttribute("class","printSpinner"),d.appendChild(f);var p=document.createTextNode(l.modalMessage);d.appendChild(p),u.appendChild(d),document.getElementsByTagName("body")[0].appendChild(u),document.getElementById("printClose").addEventListener("click",function(){s.close()})},close:function(){var l=document.getElementById("printJS-Modal");l&&l.parentNode.removeChild(l)}};n.default=s},
8106"./src/js/pdf.js":function(r,n,a){a.r(n);var s=a("./src/js/print.js"),o=a("./src/js/functions.js");n.default={print:function(u,d){if(u.base64){var h=Uint8Array.from(atob(u.printable),function(p){return p.charCodeAt(0)});l(u,d,h);return}u.printable=/^(blob|http|\/\/)/i.test(u.printable)?u.printable:window.location.origin+(u.printable.charAt(0)!=="/"?"/"+u.printable:u.printable);var f=new window.XMLHttpRequest;f.responseType="arraybuffer",f.addEventListener("error",function(){Object(o.cleanUp)(u),u.onError(f.statusText,f)}),f.addEventListener("load",function(){if([200,201].indexOf(f.status)===-1){Object(o.cleanUp)(u),u.onError(f.statusText,f);return}l(u,d,f.response)}),f.open("GET",u.printable,!0),f.send()}};function l(c,u,d){var h=new window.Blob([d],{type:"application/pdf"});h=window.URL.createObjectURL(h),u.setAttribute("src",h),s.default.send(c,u)}},
8106"./src/js/print.js":function(r,n,a){a.r(n);var s=a("./src/js/browser.js"),o=a("./src/js/functions.js"),l={send:function(f,p){document.getElementsByTagName("body")[0].appendChild(p);var y=document.getElementById(f.frameId);y.onload=function(){if(f.type==="pdf"){s.default.isFirefox()?setTimeout(function(){return c(y,f)},1e3):c(y,f);return}var m=y.contentWindow||y.contentDocument;if(m.document&&(m=m.document),m.body.appendChild(f.printableElement),f.type!=="pdf"&&f.style){var v=document.createElement("style");v.innerHTML=f.style,m.head.appendChild(v)}var g=m.getElementsByTagName("img");g.length>0?u(Array.from(g)).then(function(){return c(y,f)}):c(y,f)}}};function c(h,f){try{if(h.focus(),s.default.isEdge()||s.default.isIE())try{h.contentWindow.document.execCommand("print",!1,null)}catch{h.contentWindow.print()}else h.contentWindow.print()}catch(p){f.onError(p)}finally{s.default.isFirefox()&&(h.style.visibility="hidden",h.style.left="-1px"),Object(o.cleanUp)(f)}}function u(h){var f=h.map(function(p){if(p.src&&p.src!==window.location.href)return d(p)});return Promise.all(f)}function d(h){return new Promise(function(f){var p=function y(){!h||typeof h.naturalWidth>"u"||h.naturalWidth===0||!h.complete?setTimeout(y,500):f()};p()})}n.default=l},
8106"./src/js/raw-html.js":function(r,n,a){a.r(n);var s=a("./src/js/print.js");n.default={print:function(l,c){l.printableElement=document.createElement("div"),l.printableElement.setAttribute("style","width:100%"),l.printableElement.innerHTML=l.printable,s.default.send(l,c)}}},
8106"./src/sass/index.scss":function(r,n,a){}
8106,0:function(r,n,a){r.exports=a("./src/index.js")}}).default})})(b8e);var Ibt=b8e.exports;const h0e=jr(Ibt),Pbt=({isOpen:e,onClose:t,storyId:r,shareToken:n,isPublic:a,onShareToggled:s})=>{const[o,l]=k.useState(!1),[c,u]=k.useState(!1),{toast:d}=Xt(),h=n?`${window.location.origin}/shared/story/${n}`:null,f=async()=>{l(!0);try{const{data:y,error:m}=await oe.functions.invoke("toggle-story-sharing",{body:{storyId:r,isPublic:!a}});if(m)throw m;s(y.isPublic,y.shareToken,y.shareUrl),d({title:y.isPublic?"Story shared!":"Story is now private",description:y.isPublic?"Your story is now accessible via the share link.":"Your story is no longer publicly accessible."}),y.isPublic||t()}catch(y){console.error("Error toggling sharing:",y),d({title:"Error",description:"Failed to update sharing settings. Please try again.",variant:"destructive"})}finally{l(!1)}},p=async()=>{if(h)try{await navigator.clipboard.writeText(h),u(!0),d({title:"Link copied!",description:"Share it with anyone."}),setTimeout(()=>u(!1),2e3)}catch(y){console.error("Error copying to clipboard:",y),d({title:"Error",description:"Failed to copy link. Please try again.",variant:"destructive"})}};return i.jsx(Xr,{open:e,onOpenChange:t,children:i.jsx(Ur,{className:"sm:max-w-lg p-0 gap-0",children:i.jsxs("div",{className:"relative p-6",children:[i.jsxs("button",{onClick:t,className:"absolute right-4 top-4 roun
8106ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[i.jsx(hi,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-3xl font-bold text-gray-900",children:"Share the Magic of This Book!"}),i.jsx("p",{className:"text-base text-muted-foreground mt-2",children:"Let someone special enjoy this story too â it's completely free."})]}),a?i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Send it by email or copy the link below."}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx("input",{type:"text",readOnly:!0,value:h||"",className:"flex-1 bg-gray-50 border border-input rounded-lg px-4 py-3 text-sm font-mono focus:outline-none focus:ring-2 focus:ring-ring"}),i.jsx(le,{onClick:p,className:"bg-green-500 hover:bg-green-600 text-white px-6",children:c?i.jsxs(i.Fragment,{children:[i.jsx(_r,{className:"h-4 w-4 mr-2"}),"Copied"]}):i.jsxs(i.Fragment,{children:[i.jsx(t0,{className:"h-4 w-4 mr-2"}),"Copy Link"]})})]})]}),i.jsx(le,{onClick:f,disabled:o,variant:"outline",className:"w-full",children:o?"Disabling...":"Disable Sharing"})]}):i.jsxs("div",{className:"space-y-4",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Enable sharing to generate a unique link that anyone can use to read your story."}),i.jsx(le,{onClick:f,disabled:o,className:"w-full bg-green-500 hover:bg-green-600 text-white",children:o?"Enabling...":"Enable Sharing"})]})]})]})})})};var w8e="clover",Lbt=function(t){return t===3?"v3":t},k8e="https://js.stripe.com",Obt="".concat(k8e,"/").concat(w8e,"/stripe.js"),Rbt=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Dbt=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,f0e="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Fbt=function(t){return Rbt.test(t)||Dbt.test(t)},$bt=function(){for(var t=document.querySelectorAll('script[src^="'.concat(k8e,'"]')),r=0;r<t.length;r++){var n=t[r];if(Fbt(n.src))return n}return null},p0e=function(t){var r="",n=document.createElement("script");n.src="".concat(Obt).concat(r);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n},Bbt=function(t,r){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"8.0.0",startTime:r})},Kx=null,eS=null,tS=null,zbt=function(t){return function(r){t(new Error("Failed to load Stripe.js",{cause:r}))}},Ubt=function(t,r){return function(){window.Stripe?t(window.Stripe):r(new Error("Stripe.js not available"))}},qbt=function(t){return Kx!==null?Kx:(Kx=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&t&&console.warn(f0e),window.Stripe){r(window.Stripe);return}try{var a=$bt();if(a&&t)console.warn(f0e);else if(!a)a=p0e(t);else if(a&&tS!==null&&eS!==null){var s;a.removeEventListener("load",tS),a.removeEventListener("error",eS),(s=a.parentNode)===null||s===void 0||s.removeChild(a),a=p0e(t)}tS=Ubt(r,n),eS=zbt(n),a.addEventListener("load",tS),a.addEventListener("error",eS)}catch(o){n(o);return}}),Kx.catch(function(r){return Kx=null,Promise.reject(r)}))},Hbt=function(t,r,n){if(t===null)return null;var a=r[0],s=a.match(/^pk_test/),o=Lbt(t.version),l=w8e;s&&o!==l&&console.warn("Stripe.js@".concat(o," was loaded on the page, but @stripe/stripe-js@").concat("8.0.0"," expected Stripe.js@").concat(l,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var c=t.apply(void 0,r);return Bbt(c,n),c},Yx,_8e=!1,S8e=function(){return Yx||(Yx=qbt(null).catch(function(t){return Yx=null,Promise.reject(t)}),Yx)};Promise.resolve().then(function(){return S8e()}).catch(function(e){_8e||console.warn(e)});var Dv=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];_8e=!0;var a=Date.now();return S8e().then(function(s){return Hbt(s,r,a)})};function m0e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function g0e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 5,416 bytes, lines 8106-8107
8106t%2?m0e(Object(r),!0).forEach(function(n){j8e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m0e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sq(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sq=function(t){return typeof t}:sq=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sq(e)}function j8e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vbt(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s<n.length;s++)a=n[s],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Wbt(e,t){if(e==null)return{};var r=Vbt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E8e(e,t){return Gbt(e)||Kbt(e,t)||Ybt(e,t)||Xbt()}function Gbt(e){if(Array.isArray(e))return e}function Kbt(e,t){var r=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(r!=null){var n=[],a=!0,s=!1,o,l;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));a=!0);}catch(c){s=!0,l=c}finally{try{!a&&r.return!=null&&r.return()}finally{if(s)throw l}}return n}}function Ybt(e,t){if(e){if(typeof e=="string")return y0e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y0e(e,t)}}function y0e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xbt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8107In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Di=function(t,r,n){var a=!!n,s=ce.useRef(n);ce.useEffect(function(){s.current=n},[n]),ce.useEffect(function(){if(!a||!t)return function(){};var o=function(){s.current&&s.current.apply(s,arguments)};return t.on(r,o),function(){t.off(r,o)}},[a,r,t,s])},Jte=function(t){var r=ce.useRef(t);return ce.useEffect(function(){r.current=t},[t]),r.current},L2=function(t){return t!==null&&sq(t)==="object"},Zbt=function(t){return L2(t)&&typeof t.then=="function"},Qbt=function(t){return L2(t)&&typeof t.elements=="function"&&typeof t.createToken=="function"&&typeof t.createPaymentMethod=="function"&&typeof t.confirmCardPayment=="function"},v0e="[object Object]",Jbt=function e(t,r){if(!L2(t)||!L2(r))return t===r;var n=Array.isArray(t),a=Array.isArray(r);if(n!==a)return!1;var s=Object.prototype.toString.call(t)===v0e,o=Object.prototype.toString.call(r)===v0e;if(s!==o)return!1;if(!s&&!n)return t===r;var l=Object.keys(t),c=Object.keys(r);if(l.length!==c.length)return!1;for(var u={},d=0;d<l.length;d+=1)u[l[d]]=!0;for(var h=0;h<c.length;h+=1)u[c[h]]=!0;var f=Object.keys(u);if(f.length!==l.length)return!1;var p=t,y=r,m=function(g){return e(p[g],y[g])};return f.every(m)},C8e=function(t,r,n){return L2(t)?Object.keys(t).reduce(function(a,s){var o=!L2(r)||!Jbt(t[s],r[s]);return n.includes(s)?(o&&console.warn("Unsupported prop change: options.".concat(s," is not a mutable property.")),a):o?g0e(g0e({},a||{}),{},j8e({},s,t[s])):a},null):null},N8e="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",x0e=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N8e;if(t===null||Qbt(t))return t;throw new Error(r)},ewt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N8e;if(Zbt(t))return{tag:"async",stripePromise:Promise.resolve(t).then(function(a){return x0e(a,r)})};var n=x0e(t,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},twt=function(t){!t||!t._registerWrapper||!t.registerAppInfo||(t._registerWrapper({name:"react-stripe-js",version:"5.2.0"}),t.registerAppInfo({name:"react-stripe-js",version:"5.2.0",url:"https://stripe.com/docs/stripe-js/react"}))},wG=ce.createContext(null);wG.displayName="ElementsContext";var T8e=function(t,r){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return t},f4=function(t){var r=t.stripe,n=t.options,a=t.children,s=ce.useMemo(function(){return ewt(r)},[r]),o=ce.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(n):null}}),l=E8e(o,2),c=l[0],u=l[1];ce.useEffect(function(){var f=!0,p=function(m){u(function(v){return v.stripe?v:{stripe:m,elements:m.elements(n)}})};return s.tag==="async"&&!c.stripe?s.stripePromise.then(function(y){y&&f&&p(y)}):s.tag==="sync"&&!c.stripe&&p(s.stripe),function(){f=!1}},[s,c,n]);var d=Jte(r);ce.useEffect(function(){d!==null&&d!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[d,r]);var h=Jte(n);return ce.useEffect(function(){if(c.elements){var f=C8e(n,h,["clientSecret","fonts"]);f&&c.elements.update(f)}},[n,h,c.elements]),ce.useEffect(function(){twt(c.stripe)},[c.stripe]),ce.createElement(wG.Provider,{value:c},a)};
8107f4.propTypes={stripe:st.any,options:st.object};var rwt=function(t){var r=ce.useContext(wG);return T8e(r,t)},kG=function(){var t=rwt("calls useElements()"),r=t.elements;return r};st.func.isRequired;var A8e=ce.createContext(null);A8e.displayName="CheckoutContext";st.any,st.shape({clientSecret:st.oneOfType([st.string,st.instanceOf(Promise)]).isRequired,elementsOptions:st.object}).isRequired;var ere=function(t){var r=ce.useContext(A8e),n=ce.useContext(wG);if(r){if(n)throw new Error("You cannot wrap the part of your app that ".concat(t," in both <CheckoutProvider> and <Elements> providers."));return r}else return T8e(n,t)},nwt=["mode"],awt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Cs=function(t,r){var n="".concat(awt(t),"Element"),a=function(c){var u=c.id,d=c.className,h=c.options,f=h===void 0?{}:h,p=c.onBlur,y=c.onFocus,m=c.onReady,v=c.onChange,g=c.onEscape,b=c.onClick,x=c.onLoadError,_=c.onLoaderStart,w=c.onNetworksChange,j=c.onConfirm,E=c.onCancel,C=c.onShippingAddressChange,N=c.onShippingRateChange,A=c.onSavedPaymentMethodRemove,$=c.onSavedPaymentMethodUpdate,T=ere("mounts <".concat(n,">")),F="elements"in T?T.elements:null,M="checkoutState"in T?T.checkoutState:null,z=(M==null?void 0:M.type)==="success"||(M==null?void 0:M.type)==="loading"?M.sdk:null,Y=ce.useState(null),W=E8e(Y,2),ee=W[0],Z=W[1],V=ce.useRef(null),ne=ce.useRef(null);Di(ee,"blur",p),Di(ee,"focus",y),Di(ee,"escape",g),Di(ee,"click",b),Di(ee,"loaderror",x),Di(ee,"loaderstart",_),Di(ee,"networkschange",w),Di(ee,"confirm",j),Di(ee,"cancel",E),Di(ee,"shippingaddresschange",C),Di(ee,"shippingratechange",N),Di(ee,"savedpaymentmethodremove",A),Di(ee,"savedpaymentmethodupdate",$),Di(ee,"change",v);var P;m&&(t==="expressCheckout"?P=m:P=function(){m(ee)}),Di(ee,"ready",P),ce.useLayoutEffect(function(){if(V.current===null&&ne.current!==null&&(F||z)){var H=null;if(z)switch(t){case"payment":H=z.createPaymentElement(f);break;case"address":if("mode"in f){var re=f.mode,ae=Wbt(f,nwt);if(re==="shipping")H=z.createShippingAddressElement(ae);else if(re==="billing")H=z.createBillingAddressElement(ae);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":H=z.createExpressCheckoutElement(f);break;case"currencySelector":H=z.createCurrencySelectorElement();break;case"taxId":H=z.createTaxIdElement(f);break;default:throw new Error("Invalid Element type ".concat(n,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else F&&(H=F.create(t,f));V.current=H,Z(H),H&&H.mount(ne.current)}},[F,z,f]);var R=Jte(f);return ce.useEffect(function(){if(V.current){var H=C8e(f,R,["paymentRequest"]);H&&"update"in V.current&&V.current.update(H)}},[f,R]),ce.useLayoutEffect(function(){return function(){if(V.current&&typeof V.current.destroy=="function")try{V.current.destroy(),V.current=null}catch{}}},[]),ce.createElement("div",{id:u,className:d,ref:ne})},s=function(c){ere("mounts <".concat(n,">"));var u=c.id,d=c.className;return ce.createElement("div",{id:u,className:d})},o=r?s:a;return o.propTypes={id:st.string,className:st.string,onChange:st.func,onBlur:st.func,onFocus:st.func,onReady:st.func,onEscape:st.func,onClick:st.func,onLoadError:st.func,onLoaderStart:st.func,onNetworksChange:st.func,onConfirm:st.func,onCancel:st.func,onShippingAddressChange:st.func,onShippingRateChange:st.func,onSavedPaymentMethodRemove:st.func,onSavedPaymentMethodUpdate:st.func,options:st.object},o.displayName=n,o.__elementType=t,o},Ns=typeof window>"u",iwt=ce.createContext(null);iwt.displayName="EmbeddedCheckoutProviderContext";var _G=function(){var t=ere("calls useStripe()"),r=t.stripe;return r};Cs("auBankAccount",Ns);Cs("card",Ns);Cs("cardNumber",Ns);Cs("cardExpiry",Ns);Cs("cardCvc",Ns);Cs("iban",Ns);var SG=Cs("payment",Ns);Cs("expressCheckout",Ns);Cs("paymentRequestButton",Ns);Cs("linkAuthentication",Ns);Cs("address",Ns);Cs("shippingAddress",Ns);Cs("paymentMethodMessaging",Ns);Cs("taxId",Ns);function soe(e){if(!e||!e.startsWith("pi_"))return null;const[t]=e.split("_secret");return t&&t!==e?t:null}const M8e="kibbi:checkout_amount:";function swt(e,t){if(!(!e||!Number.isFinite(t)))try{sessionStorage.setItem(M8e+e,String(t))}catch{}}function I8e(e){if(!e)return null;try{const t=M8e+e,r=sessionStorage.getItem(t);if(r===null)return null;sessionStorage.removeItem(t);const n=Number(r);return Number.isFinite(n)?n:null}catch{return null}}const P8e="AW-17040737820/NoL8CLCkmLUbEJyM1L0_",L8e=`kibbi:google_ads:${P8e}:`,b0e=500,pQ=new Map,w0e=new Set;function owt(e){try{return sessionStorage.getItem(L8e+e)==="1"}catch{return!1}}function p4(e){if(!e||e.status!=="succeeded")return(e==null?void 0:e.status)==="processing"&&console.warn("[GoogleAds] Purchase pending; no conversion sent"),Promise.resolve();const{id:t,amount:r,currency:n}=e;if(typeof t!="string"||!/^pi_[A-Za-z0-9]+$/.test(t)||typeof r!="number"||!Number.isSafeInteger(r)||r<=0||typeof n!="str
8107ing"||n.toUpperCase()!=="USD")return console.warn("[GoogleAds] Purchase receipt incomplete or unsupported; no conversion sent"),Promise.resolve();const a=pQ.get(t);if(a)return a;if(w0e.has(t)||owt(t)||typeof window.gtag!="function")return Promise.resolve();let s;const o=new Promise(u=>{s=u});pQ.set(t,o);const l=()=>{clearTimeout(c),pQ.delete(t),s()},c=setTimeout(l,b0e);try{window.gtag("event","conversion",{send_to:P8e,value:r/100,currency:"USD",transaction_id:t,event_timeout:b0e,event_callback:()=>{try{sessionStorage.setItem(L8e+t,"1")}catch{}l()}}),w0e.add(t)}catch{console.warn("[GoogleAds] Purchase tracking unavailable; checkout continues"),l()}return o}const tre=`$${(Gi.STORY_OVERAGE.amount/100).toFixed(2)}`,lwt=({selectedPlan:e,subscriptionId:t,customerId:r,paymentIntentId:n,onSuccess:a,onClose:s,finalAmount:o,storyId:l,onError:c,clearError:u,getRenewalDate:d,onCheckoutStarted:h,pollForActivation:f})=>{const p=_G(),y=kG(),[m,v]=k.useState(!1),g=async b=>{if(b.preventDefault(),u(),!(!p||!y)){v(!0);try{const{error:x}=await y.submit();if(x)throw x;h(),swt(n,o);const{error:_,paymentIntent:w}=await p.confirmPayment({elements:y,confirmParams:{return_url:l?`${window.location.origin}/app/book-preview?storyId=${l}`:`${window.location.origin}/library`},redirect:"if_required"});if(_)throw _;console.log("[SubscriptionCheckout] Payment confirmed, waiting for webhook..."),p4(w),window.fbq&&window.fbq("track","Purchase",{value:o/100,currency:"USD",content_type:"product",content_name:"Kibbi Subscription"},n?{eventID:n}:void 0),I8e(n),Lr({title:"Payment successful!",description:"Activating your subscription..."});const j=await f(10);Lr(j?l?{title:"Story Unlocked! â¨",description:`Your next story credit will be available on ${d()}. Additional stories are ${tre} each.`,duration:6e3}:{title:"Subscription activated!",description:"Your membership is now active."}:{title:"Almost there!",description:"Your payment was successful. Your subscription will activate shortly â please refresh if it doesn't appear.",duration:8e3}),a==null||a(),s()}catch(x){console.error("Payment error:",x);const _=x.message||"Something went wrong. Please try again.";c(_)}finally{v(!1)}}};return i.jsxs("form",{onSubmit:g,className:"space-y-6",children:[i.jsx(SG,{}),i.jsxs("div",{className:"flex gap-3",children:[i.jsx(le,{type:"button",variant:"outline",onClick:s,disabled:m,className:"flex-1",children:"Cancel"}),i.jsx(le,{type:"submit",disabled:!p||m,className:"flex-1",children:m?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Processing..."]}):`Subscribe - $${(o/100).toFixed(2)}/${e==="monthly"?"mo":"yr"}`})]})]})},cwt=({open:e,onClose:t,onSuccess:r,defaultPlan:n="monthly",storyId:a})=>{const[s,o]=k.useState(null),[l,c]=k.useState(""),[u,d]=k.useState(""),[h,f]=k.useState(n),[p,y]=k.useState(!0),[m,v]=k.useState(null),[g,b]=k.useState(0),[x,_]=k.useState(!1),[w,j]=k.useState(null),[E,C]=k.useState(!1),N=k.useRef(0),A=async(ee=10)=>{console.log("[SubscriptionCheckout] Polling for subscription activation...");for(let Z=0;Z<ee;Z++){await new Promise(P=>setTimeout(P,3e3));const{data:{user:V}}=await oe.auth.getUser();if(!V)continue;const{data:ne}=await oe.from("profiles").select("membership_active").eq("id",V.id).single();if(ne!=null&&ne.membership_active)if(a){const{data:P}=await oe.from("stories").select("has_purchased").eq("id",a).single();if(P!=null&&P.has_purchased)return console.log("[SubscriptionCheckout] Story unlocked!"),!0}else return!0;console.log(`Attempt ${Z+1}: Waiting...`)}return!1};k.useEffect(()=>{if(e){window.fbq&&window.fbq("track","InitiateCheckout",{content_name:"Kibbi Subscription"});const ee=new URLSearchParams(window.location.search),Z=ee.get("payment_intent"),V=ee.get("payment_intent_client_secret"),ne=ee.get("redirect_status");if(Z&&V&&ne==="succeeded"){console.log("[SubscriptionCheckout] Returned from 3D Secure, verifying with webhook..."),_(!0),Lr({title:"Processing payment...",description:"Please wait while we activate your subscription."}),window.history.replaceState({},document.title,window.location.pathname),A(10).then(P=>{if(P){const R=I8e(Z);window.fbq&&window.fbq("track","Purchase",{...R!==null?{value:R/100}:{},currency:"USD",content_type:"product",content_name:"Kibbi Subscription"},Z?{eventID:Z}:void 0),Lr(a?{title:"Story Unlocked! â¨",description:`Your next story credit will be available on ${W()}. Additional stories are ${tre} each.`,duration:6e3}:{title:"Subscription activated!",description:"Your membership is now active."}),r==null||r(),t()}else Lr({title:"Activation timeout",description:"Your payment succeeded but activation is taking longer than expected. Please refresh the page in a moment.",variant:"destructive"}),setTimeout(()=>{t()},3e3)}).catch(P=>{console.error("[SubscriptionCheckout] Polling error:",P),Lr({title:"Verification error",description:"We couldn't verify your subscription. Please refresh the page. If the issue persists, contact support.",variant:"destructive"}),setTimeout(()=>{t()},3e3)}).finally(()=>{_(!1)});return}m||v(Dv("pk_live_51RCFHxACvtIVItsaBYp3zmtR8bGqG74cndw9Qg2IpS3My4lapcnaUlNryFmE7Cff5wrTvoP4ssqqTcM4cdrxMitW00I0Aao1fS")),$(h)}},[e]),k.useEffect(()=>{e&&!E&&(o(null),j(null),$(h))},[h]);const $=async ee=>{var V;const Z=++N.current;y(!0),j(null);try{console.log("Creating SetupIntent for plan:",ee);const{data:ne,error:P}=await oe.functions.invoke("create-subscription-setup",{body:{plan:ee,storyId:a}});if(N.current!==Z)return;if(console.log("Setup intent response debug:",{hasError:!!P,errorType:(V=P==null?void 0:P.constructor)==null?void 0:V.name,errorMessage:P==null?void 0:P.message,errorFull:P,hasData:!!ne,dataError:ne==null?void 0:ne.error,dataFull:ne}),P){console.error("Function invoke error:",P);const R=(ne==null?void 0:ne.error)||(P==null?void 0:P.message)||(P==null?void 0:P.error)||(P==null?void 0:P.msg)||"Failed to initialize subscription";throw new Error(R)}if(!(ne!=null&&ne.clientSecret)){const R=(ne==null?void 0:ne.error)||"Invalid response from subscription service";throw new Error(R)}o(ne.clientSecret),c(ne.subscriptionId),d(ne.customerId),b(ne.amount),console.log("Subscription created successfully with PaymentIntent")}catch(ne){if(N.current!==Z)return;console.error("Error creating SetupIntent:",ne);const P=ne.message||"Failed to initialize subscription. Please try again.";j(P),P.includes("already has an active subscription")&&t()}finally{N.current===Z&&y(!1)}},T=()=>{t(),o(null),c(""),d(""),j(null),C(!1)},F=Gi.MEMBERSHIP.monthly.amount/100,M=Gi.MEMBERSHIP.annual.amount/100,z=M/12,Y=F*12-M,W=()=>{const ee=new Date;return h==="monthly"?ee.setMonth(ee.getMonth()+1):ee.setFullYear(ee.getFullYear()+1),ee.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})};return i.jsx(i.Fragment,{children:i.jsx(Xr,{open:e,onOpenChange:T,children:i.jsxs(Ur,{className:"sm:max-w-[600px] notranslate",translate:"no",children:[i.jsxs(Nr,{children:[i.jsx(Tr,{children:"Subscribe to Kibbi Club"}),i.jsx(ra,{children:"Get 1 personalized story each month plus exclusive member benefits"})]}),i.jsxs("div",{className:"space-y-6",children:[w&&i.jsxs(Eo,{variant:"destructive",children:[i.jsx(Ya,{className:"h-4 w-4"}),i.jsx(Co,{children:w})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[i.jsxs("button",{type:"button",onClick:()=>f("monthly"),disabled:p||E,className:`relative p-3 rounded-lg border-2 transition-all ${h==="monthly"?"border-primary bg-primary/5":"border-border hover:border-primary/50"} ${E?"opacity-60 cursor-not-allowed":""}`,children:[h==="monthly"&&i.jsx("div",{className:"absolute top-1.5 right-1.5",children:i.jsx("div",{className:"bg-primary text-primary-foreground rounded-full p-0.5",children:i.jsx(_r,{className:"h-2.5 w-2.5"})})}),i.jsxs("div",{className:"text-left",children:[i.jsx("div",{className:"font-semibold text-sm",children:"Monthly"}),i.jsxs("div",{className:"text-xl font-bold mt-0.5",children:["$",F]}),i.jsx("div",{className:"text-xs text-muted-foreground",children:"per month"})]})]}),i.jsxs("button",{type:"button",onClick:()=>f("annual"),disabled:p||E,className:`relative p-3 rounded-lg border-2 transition-all ${h==="annual"?"border-primary bg-primary/5":"border-border hover:border-primary/50"} ${E?"opacity-60 cursor-not-allowed":""}`,children:[h==="annual"&&i.jsx("div",{className:"absolute top-1.5 right-1.5",children:i.jsx("div",{className:"bg-primary text-primary-foreground rounded-full p-0.5",children:i.jsx(_r,{className:"h-2.5 w-2.5"})})}),i.jsx("div",{className:"absolute -top-2 left-1/2 -translate-x-1/2",children:i.jsxs("span",{className:"bg-primary text-primary-foreground text-[10px] px-2 py-0.5 rounded-full font-semibold",children:["Save $",Y.toFixed(0)]})}),i.jsxs("div",{className:"text-left",children:[i.jsx("div",{className:"font-semibold text-sm",children:"Annual"}),i.jsxs("div",{className:"text-xl font-bold mt-0.5",children:["$",M]}),i.jsxs("div",{className:"text-xs text-muted-foreground",children:["$",z.toFixed(2),"/mo"]})]})]})]}),i.jsxs("div",{className:"bg-muted/50 p-4 rounded-lg space-y-3",children:[i.jsx("div",{className:"font-semibold mb-2",children:"What's included:"}),i.jsxs("ul",{className:"space-y-2 text-sm",children:[i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(_r,{className:"h-4 w-4 text-primary shrink-0 mt-0.5"}),i.jsx("span",{children:a?`This story is your first monthly credit (next credit: ${W()})`:"1 story credit per month"})]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(_r,{className:"h-4 w-4 text-primary shrink-0 mt-0.5"}),i.jsxs("span",{children:[tre," for additional stories"]})]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(_r,{className:"h-4 w-4 text-primary shrink-0 mt-0.5"}),i.jsx("span",{children:"Print any story for $14.99 (paperback) or $24.99 (hardcover)"})]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(_r,{className:"h-4 w-4 text-primary shrink-0 mt-0.5"}),i.jsx("span",{children:"Cancel anytime"})]})]})]}),p?i.jsx("div",{className:"flex items-center justify-center py-8",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-primary"})}):s&&m&&l&&u?i.jsx(f4,{stripe:m,options:{clientSecret:s,appearance:{theme:"stripe"}},children:i.jsx(lwt,{selectedPlan:h,subscriptionId:l,customerId:u,paymentIntentId:soe(s),onSuccess:r,onClose:t,finalAmount:g,storyId:a,onError:j,clearError:()=>j(null),getRenewalDate:W,onCheckoutStarted:()=>C(!0),pollForActivation:A})}):i.jsx("div",{className:"text-center text-muted-foreground",children:"Failed to load payment form. Please try again."})]})]})})})},uwt=`$${(Gi.STORY_OVERAGE.amount/100).toFixed(2)}`,dwt=({storyId:e,onSuccess:t,onClose:r,paymentIntentId:n,finalAmount:a,storyTitle:s,onError:o,clearError:l})=>{const c=_G(),u=kG(),[d,h]=k.useState(!1),f=async p=>{if(p.preventDefault(),l(),!(!c||!u)){h(!0);try{const{error:y}=await u.submit();if(y)throw y;const{error:m,paymentIntent:v}=await c.confirmPayment({elements:u,confirmParams:{return_url:`${window.location.origin}/app/book-preview?id=${e}`},redirect:"if_required"});if(m)throw m;p4(v);const{data:{session:g}}=await oe.auth.getSession();if(!g)throw new Error("Not authenticated");
8107console.log("[StoryPurchase] Confirming payment with backend...");const{data:b,error:x}=await oe.functions.invoke("confirm-story-payment",{body:{storyId:e,paymentIntentId:n}});if(x)throw console.error("[StoryPurchase] Payment confirmation failed:",x),new Error(`Payment confirmation failed: ${x.message||"Unknown error"}. Please contact support with reference: ${n}`);console.log("[StoryPurchase] Payment confirmed successfully:",b);const{data:{user:_}}=await oe.auth.getUser();_!=null&&_.email&&oe.functions.invoke("add-user-to-loops",{body:{email:_.email,operation:"event",eventName:"bookPurchased",eventProperties:{storyTitle:s,purchaseAmount:a,currency:"usd",paymentIntentId:n,purchasedAt:new Date().toISOString()}}}).then(()=>{console.log("Story purchase event sent to Loops")}).catch(w=>{console.error("Failed to send Loops event:",w)}),window.fbq&&window.fbq("track","Purchase",{value:a/100,currency:"USD",content_type:"product",content_name:"Kibbi Story"},{eventID:n}),Lr({title:"Purchase successful!",description:"Your full story is being generated. This may take a few minutes."}),t(),r()}catch(y){console.error("Payment error:",y);const m=y.message||"Something went wrong. Please try again.";o(m)}finally{h(!1)}}};return i.jsxs("form",{onSubmit:f,className:"space-y-6",children:[i.jsx(SG,{}),i.jsxs("div",{className:"flex gap-3",children:[i.jsx(le,{type:"button",variant:"outline",onClick:r,disabled:d,className:"flex-1",children:"Cancel"}),i.jsx(le,{type:"submit",disabled:!c||d,className:"flex-1",children:d?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Processing..."]}):`Pay $${(a/100).toFixed(2)}`})]})]})},O8e=({isOpen:e,onClose:t,storyId:r,storyTitle:n,onSuccess:a})=>{const[s,o]=k.useState(null),[l,c]=k.useState(""),[u,d]=k.useState(!0),[h,f]=k.useState(null),[p,y]=k.useState(!1),[m,v]=k.useState(null),[g,b]=k.useState(""),[x,_]=k.useState(null),[w]=k.useState(Gi.STORY_OVERAGE.amount),[j,E]=k.useState(0),[C,N]=k.useState(Gi.STORY_OVERAGE.amount),[A,$]=k.useState(null),[T,F]=k.useState(!1),[M,z]=k.useState(null);k.useEffect(()=>{if(e){h||f(Dv("pk_live_51RCFHxACvtIVItsaBYp3zmtR8bGqG74cndw9Qg2IpS3My4lapcnaUlNryFmE7Cff5wrTvoP4ssqqTcM4cdrxMitW00I0Aao1fS"));const P=new URLSearchParams(window.location.search).get("coupon");let R;P&&(b(P),R=P),Y(R)}},[e]);const Y=async ne=>{var P;d(!0),v(null);try{const{data:R,error:H}=await oe.functions.invoke("create-story-payment",{body:{storyId:r,couponCode:ne,useOneClick:!0}});if(console.log("One-click payment response debug:",{hasError:!!H,errorType:(P=H==null?void 0:H.constructor)==null?void 0:P.name,errorMessage:H==null?void 0:H.message,errorFull:H,hasData:!!R,dataError:R==null?void 0:R.error,dataFull:R}),H||R!=null&&R.error){const re=(R==null?void 0:R.error)||(H==null?void 0:H.message)||(H==null?void 0:H.error)||(H==null?void 0:H.msg)||"Unknown error",ae=!H&&(R==null?void 0:R.error)==="No saved payment method found. Please add a payment method first.";v(ae?null:re),y(!0),await W(ne);return}if(R!=null&&R.success&&(R!=null&&R.paymentIntentId)){const re=p4({id:R.paymentIntentId,status:R.status,amount:R.amountReceived===void 0?R.finalAmount:R.amountReceived,currency:R.currency===void 0?"usd":R.currency}),{error:ae}=await oe.functions.invoke("confirm-story-payment",{body:{storyId:r,paymentIntentId:R.paymentIntentId}});if(ae)throw new Error(`Payment succeeded but confirmation failed. Reference: ${R.paymentIntentId}`);const{data:{user:D}}=await oe.auth.getUser();D!=null&&D.email&&oe.functions.invoke("add-user-to-loops",{body:{email:D.email,operation:"event",eventName:"bookPurchased",eventProperties:{storyTitle:n,purchaseAmount:R.finalAmount,currency:"usd",paymentIntentId:R.paymentIntentId,purchasedAt:new Date().toISOString()}}}),window.fbq&&window.fbq("track","Purchase",{value:(typeof R.finalAmount=="number"?R.finalAmount:Gi.STORY_OVERAGE.amount)/100,currency:"USD",content_type:"product",content_name:"Kibbi Story"},R.paymentIntentId?{eventID:R.paymentIntentId}:void 0),Lr({title:"Purchase successful!",description:"Your full story is being generated. This may take a few minutes."}),a(),t(),await re,window.location.reload()}}catch(R){console.error("One-click payment error:",R),y(!0),d(!1),W(ne)}},W=async ne=>{var P;d(!0),$(null);try{console.log("Making payment request with coupon:",ne);const{data:R,error:H}=await oe.functions.invoke("create-story-payment",{body:{storyId:r,couponCode:ne}});if(console.log("Payment intent response debug:",{hasError:!!H,errorType:(P=H==null?void 0:H.constructor)==null?void 0:P.name,errorMessage:H==null?void 0:H.message,errorFull:H,hasData:!!R,dataError:R==null?void 0:R.error,dataFull:R}),H){console.error("Function invoke error:",H);const re=(R==null?void 0:R.error)||(H==null?void 0:H.message)||(H==null?void 0:H.error)||(H==null?void 0:H.msg)||"Failed to initialize payment";throw new Error(re)}if(!(R!=null&&R.clientSecret)){const re=(R==null?void 0:R.error)||"Invalid response from payment service";throw new Error(re)}o(R.clientSecret),c(R.paymentIntentId),N(R.finalAmount||899),E(R.discountAmount||0),z(R.couponDetail
8107s),R.couponApplied&&(_(R.couponApplied),Lr({title:"Coupon applied!",description:`You saved $${((R.discountAmount||0)/100).toFixed(2)}`}))}catch(R){console.error("Error creating payment intent:",R);const H=R.message||"Failed to initialize payment. Please try again.";if(ne&&(H.includes("coupon")||H.includes("valid"))){$(H),b(""),_(null),W(void 0);return}v(H)}finally{d(!1),F(!1)}},ee=async ne=>{const P=g;if(!P.trim()){$("Please enter a coupon code");return}F(!0),$(null),o(null),await W(P.trim())},Z=async()=>{b(""),_(null),$(null),z(null),E(0),N(Gi.STORY_OVERAGE.amount),o(null),await W()},V=()=>{t(),o(null),_(null),b(""),$(null),z(null),y(!1),v(null)};return i.jsx(i.Fragment,{children:i.jsx(Xr,{open:e,onOpenChange:V,children:i.jsxs(Ur,{className:"sm:max-w-[500px]",children:[i.jsxs(Nr,{children:[i.jsx(Tr,{children:"Unlock Full Story"}),i.jsxs(ra,{children:['Purchase "',n,'" to generate and access the complete story with all pages.']})]}),i.jsxs("div",{className:"space-y-4",children:[m&&i.jsxs(Eo,{variant:"destructive",children:[i.jsx(Ya,{className:"h-4 w-4"}),i.jsx(Co,{children:m})]}),x?null:i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"coupon",children:"Promo Code"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(Pt,{id:"coupon",placeholder:"Enter coupon code",value:g,onChange:ne=>{b(ne.target.value.toUpperCase()),$(null)},disabled:T||u}),i.jsx(le,{type:"button",variant:"outline",onClick:()=>ee(),disabled:!g.trim()||T||u,children:T?i.jsx(Me,{className:"h-4 w-4 animate-spin"}):"Apply"})]}),A&&i.jsx("p",{className:"text-sm text-destructive",children:A})]}),i.jsxs("div",{className:"bg-muted p-4 rounded-lg space-y-2",children:[i.jsxs("div",{className:"flex justify-between items-center",children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:"Story"}),i.jsx("span",{className:"font-medium",children:n})]}),x?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex justify-between items-center",children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:"Original Price"}),i.jsxs("span",{className:"font-medium",children:["$",(w/100).toFixed(2)]})]}),i.jsxs("div",{className:"flex justify-between items-center text-green-600",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"text-sm font-medium",children:["Discount (",x,")"]}),i.jsx(le,{type:"button",variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:Z,disabled:u,children:"Remove"})]}),i.jsxs("span",{className:"font-medium",children:["-$",(j/100).toFixed(2)]})]}),i.jsxs("div",{className:"border-t pt-2 flex justify-between items-center",children:[i.jsx("span",{className:"font-semibold",children:"Total"}),i.jsxs("span",{className:"text-2xl font-bold",children:["$",(C/100).toFixed(2)]})]})]}):i.jsxs("div",{className:"flex justify-between items-center",children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:"Price"}),i.jsx("span",{className:"text-2xl font-bold",children:uwt})]})]}),u?i.jsxs("div",{className:"flex flex-col items-center justify-center py-8 space-y-2",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin text-primary"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:p?"Loading payment form...":"Processing payment..."})]}):p&&s&&h&&l?i.jsx(f4,{stripe:h,options:{clientSecret:s,appearance:{theme:"stripe"}},children:i.jsx(dwt,{storyId:r,onSuccess:a,onClose:t,paymentIntentId:l,finalAmount:C,storyTitle:n,onError:v,clearError:()=>v(null)})}):p?i.jsx("div",{className:"text-center text-muted-foreground",children:"Failed to load payment form. Please try again."}):null]})]})})})},hwt=()=>{const{data:e=[],isLoading:t}=ei({queryKey:["top-reviews"],queryFn:async()=>{const{data:r,error:n}=await oe.from("story_reviews").select("stars, comment, story_id, stories!inner(story_title)").eq("review_skipped",!1).gte("stars",4).not("comment","is",null).order("stars",{ascending:!1}).order("created_at",{ascending:!1}).limit(5);if(n)throw n;return(r||[]).map(a=>{var s;return{stars:a.stars,comment:a.comment,storyTitle:((s=a.stories)==null?void 0:s.story_title)||null}})},staleTime:18e5,gcTime:36e5});return{reviews:e,isLoading:t}},rre=({storyTitle:e,totalPages:t,variant:r,onPurchaseClick:n,storyId:a,entitlementType:s="overage"})=>{const{averageRating:o}=G_(),{reviews:l}=hwt(),[c,u]=k.useState(!1),d=o!==null&&o>=4,h=s==="use_credit";return r==="preview"?i.jsxs(i.Fragment,{children:[i.jsx(Ie,{className:"p-3 sm:p-4 bg-gradient-to-br from-amber-100 to-orange-100 border-amber-300",children:i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Qt,{className:"h-5 w-5 text-primary flex-shrink-0"}),i.jsxs("h3",{className:"text-lg sm:text-xl font-semibold",children:["Unlock the full story for ",Br]})]}),i.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[d&&i.jsxs("li",{className:"flex items-center gap-2 cursor-pointer hover:underline underline-offset-2 transition-colors",onClick:()=>u(!0),children:[i.jsx(Oa,{className:"h-4 w-4 text-yellow-500 fill-yellow-500 flex-shrink-0"}),"Our stories have an average rating of ",o.toFixed(1)," â
· ",i.jsx("span",{className:"underline font-medium",children:"See reviews"})]}),i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(Qt,{className:"h-4 w-4 text-primary flex-shrink-0"}),"Every page illustrated, yours to read on Kibbi anytime"]}),i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(Qt,{className:"h-4 w-4 text-primary flex-shrink-0"}),"Print it for $14.99 (paperback) or $24.99 (hardcover)"]}),i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(Qt,{className:"h-4 w-4 text-primary flex-shrink-0"}),"Characters carry over â your child's story continues"]}),i.jsxs("li",{className:"flex items-center gap-2 font-bold text-foreground",children:[i.jsx(Qt,{className:"h-4 w-4 text-primary flex-shrink-0"}),"Preview and edit story text and images before printing"]})]}),i.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 pt-2",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-2xl font-bold text-foreground sm:text-2xl",children:Br}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"one-time, no subscription"})]}),i.jsxs(le,{size:"lg",onClick:n,className:"w-full sm:w-auto",children:[i.jsx(Hd,{className:"mr-2 h-4 w-4 flex-shrink-0"}),"Buy now and unlock full story"]})]})]})}),i.jsx(Xr,{open:c,onOpenChange:u,children:i.jsxs(Ur,{className:"max-w-md",children:[i.jsx(Nr,{children:i.jsxs(Tr,{className:"flex items-center gap-2",children:[i.jsx(Oa,{className:"h-5 w-5 text-yellow-500 fill-yellow-500"}),"What Parents Are Saying"]})}),i.jsx("div",{className:"space-y-4",children:l.map((f,p)=>i.jsxs("div",{className:"space-y-1",children:[i.jsx("div",{className:"flex items-center gap-0.5",children:Array.from({length:f.stars}).map((y,m)=>i.jsx(Oa,{className:"h-3.5 w-3.5 text-yellow-500 fill-yellow-500"},m))}),i.jsxs("p",{className:"text-sm text-foreground italic line-clamp-3",children:['"',f.comment,'"']}),f.storyTitle&&i.jsxs("p",{className:"text-xs text-muted-foreground",children:["â ",f.storyTitle]})]},p))})]})})]}):i.jsx("div",{className:"fixed inset-0 bg-background/95 backdrop-blur-sm flex items-start sm:items-center justify-center p-4 overflow-y-auto z-50",children:i.jsxs(Ie,{className:"w-full p-6 sm:p-8 space-y-6 border-primary/20 shadow-2xl my-4 max-w-lg",children:[i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx("div",{className:"hidden sm:inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 mb-4",children:h?i.jsx(Qt,{className:"h-8 w-8 text-primary"}):i.jsx(Hd,{className:"h-8 w-8 text-primary"})}),i.jsx("h2",{className:"text-2xl sm:text-3xl font-bold",children:h?"Unlock This Story with Your Credit":"Unlock This Story"}),i.jsx("p",{className:"text-base sm:text-lg text-muted-foreground",children:h?`You have 1 story credit available. Use it to unlock all ${t||"remaining"} pages of "${e}".`:`You've reached the end of the free preview. Unlock all ${t||"remaining"} pages of "${e}" for ${Br} â one-time, no subscription.`})]}),i.jsxs("div",{className:"bg-muted p-6 rounded-lg space-y-3",children:[!h&&i.jsx("div",{className:"flex items-center justify-center",children:i.jsx("span",{className:"font-bold text-foreground text-xl",children:Br})}),i.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[d&&!h&&i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(Oa,{className:"h-4 w-4 text-yellow-500 fill-yellow-500"}),"Our stories have an average rating of ",o.toFixed(1)," â
"]}),i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(Qt,{className:"h-4 w-4 text-primary"}),"See the full story and all illustrations"]}),!h&&i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(Qt,{className:"h-4 w-4 text-primary"}),"Yours to read on Kibbi anytime"]}),!h&&i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(Qt,{className:"h-4 w-4 text-primary"}),"Print it for $14.99 (paperback) or $24.99 (hardcover)"]})]})]}),i.jsxs(le,{size:"lg",className:"w-full",onClick:n,children:[h?i.jsx(Qt,{className:"mr-2 h-5 w-5"}):i.jsx(Hd,{className:"mr-2 h-5 w-5"}),h?"Use my credit to unlock":`Buy now to unlock full story for ${Br}`]}),h&&i.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"This will consume your monthly story credit"}),a&&i.jsx(le,{asChild:!0,variant:"ghost",size:"sm",className:"w-full text-muted-foreground hover:text-foreground",children:i.jsxs(or,{"data-testid":"sample-back-to-preview",to:`/app/book-preview?id=${encodeURIComponent(a)}`,children:[i.jsx(ea,{className:"mr-2 h-4 w-4"}),"Back to Preview"]})})]})})},m4={usStandardOrderBy:{year:2026,month:12,day:1},usExpressOrderBy:{year:2026,month:12,day:9},internationalOrderBy:{year:2026,month:11,day:26},showFrom:{year:2026,month:11,day:1},showUntil:{year:2026,month:12,day:24}},fwt=["January","February","March","April","May","June","July","August","September","October","November","December"];function pu(e){return`${fwt[e.month-1]} ${e.day}`}function hd(e){return e.year*1e4+e.month*100+e.day}function R8e(e){return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()}}function mu(e,t){return hd(e)<=hd(t)}function D8e(e=new Date,t={}){const r=t.deadlines??m4,n=R8e(e);
8107if(t.alwaysShow){if(hd(n)>hd(r.showUntil))return null}else if(!(hd(n)>=hd(r.showFrom)&&hd(n)<=hd(r.showUntil)))return null;const a=t.country?t.country.toUpperCase():null,s=pu(r.usStandardOrderBy),o=pu(r.usExpressOrderBy),l=pu(r.internationalOrderBy),c={phase:"after-cutoff",headline:"Printed books ordered now arrive after Christmas.",detail:"The story itself is ready to read tonight, so it can still be the present. The printed book follows in January."};return a===null?pwt(n,r,c):a!=="US"?mu(n,r.internationalOrderBy)?{phase:"standard",headline:`Order by ${l} to arrive before Christmas outside the US.`,detail:"Printing takes 6 to 8 days, longer in December, and international mail up to three weeks after that."}:c:mu(n,r.usStandardOrderBy)?{phase:"standard",headline:`Order by ${s} to arrive before Christmas with standard shipping.`,detail:`Printing takes 6 to 8 days, longer in December, and US Mail up to two weeks after that. With express shipping you have until ${o}.`}:mu(n,r.usExpressOrderBy)?{phase:"express",headline:`Order by ${o} with express shipping to arrive before Christmas.`,detail:"Standard shipping no longer arrives in time. Pick an express option at the shipping step."}:c}function pwt(e,t,r){const n=pu(t.usStandardOrderBy),a=pu(t.usExpressOrderBy),s=pu(t.internationalOrderBy);return mu(e,t.internationalOrderBy)?{phase:"standard",headline:`Order by ${n} with US standard shipping, or by ${s} outside the US, to arrive before Christmas.`,detail:`Printing takes 6 to 8 days, longer in December, then the mail. With US express shipping you have until ${a}.`}:mu(e,t.usStandardOrderBy)?{phase:"standard",headline:`Order by ${n} with US standard shipping to arrive before Christmas.`,detail:`Outside the US, printed books ordered now arrive after Christmas. Printing takes 6 to 8 days, longer in December, then the mail. With US express shipping you have until ${a}.`}:mu(e,t.usExpressOrderBy)?{phase:"express",headline:`Order by ${a} with US express shipping to arrive before Christmas.`,detail:"US standard shipping and orders outside the US no longer arrive in time. Pick an express option at the shipping step."}:r}function mwt(e=new Date,t=m4){const r=R8e(e);return{usStandardOpen:mu(r,t.usStandardOrderBy),usExpressOpen:mu(r,t.usExpressOrderBy),internationalOpen:mu(r,t.internationalOrderBy)}}function gwt(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1,0,0,0,0);return Math.max(1e3,t.getTime()-e.getTime())}function F8e(){const[e,t]=k.useState(()=>new Date);return k.useEffect(()=>{let r;const n=()=>{r=setTimeout(()=>{t(new Date),n()},gwt(new Date))};return n(),()=>clearTimeout(r)},[]),e}const $8e=({className:e,now:t,...r})=>{const n=F8e(),a=D8e(t??n,r);if(!a)return null;const s=a.phase==="after-cutoff";return i.jsxs("div",{role:"status","data-testid":"holiday-deadline-notice","data-phase":a.phase,className:De("flex items-start gap-3 rounded-lg border p-3 text-sm",s?"border-border bg-muted/40":"border-red-200 bg-red-50 text-red-950",e),children:[i.jsx(r0,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":"true"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium",children:a.headline}),a.detail&&i.jsx("p",{className:"mt-1 text-xs opacity-80",children:a.detail})]})]})},B8e=({storyId:e,storyTitle:t,missingPages:r,onPrintOrderClick:n})=>i.jsx(Ie,{className:"p-3 sm:p-4 bg-gradient-to-br from-blue-50 to-indigo-100 border-blue-300",children:i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(hu,{className:"h-5 w-5 text-primary flex-shrink-0"}),i.jsx("h3",{className:"text-lg sm:text-xl font-semibold",children:"Get a physical copy of this story!"})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 bg-white/60 rounded-lg border border-blue-200",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(hu,{className:"h-5 w-5 text-muted-foreground"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-foreground",children:"Paperback"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"$14.99"})]})]}),i.jsx(le,{size:"sm",variant:"default",onClick:()=>n("paperback"),disabled:r>0,children:"Buy now"})]}),i.jsxs("div",{className:"flex items-center justify-between p-3 bg-white/60 rounded-lg border border-blue-200",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(hu,{className:"h-5 w-5 text-muted-foreground"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-foreground",children:"Hardcover"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"$24.99"})]})]}),i.jsx(le,{size:"sm",variant:"default",onClick:()=>n("hardcover"),disabled:r>0,children:"Buy now"})]})]}),i.jsx($8e,{}),r>0&&i.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Print options available once all illustrations are generated"})]})}),O2={paperback:{amount:1499,label:"$14.99",productId:"prod_TFPlKxuLdolsfO"},hardcover:{amount:2499,label:"$24.99",productId:"prod_TFPok4MKwU5Y4x"}};function z8e({hasPurchased:e,isOwner:t,isAdmin:r}){return e&&(t||r)}const D1=e=>typeof e=="number"&&Number.isSafeInteger(e)&&e>=0;function ywt(e,t,r){return e.filter(n=>n.total_cost_with_tax).map(n=>{let a=Math.round(Number(n.total_cost_with_tax)*100),s=a;if(!t){const{shipping_cost_cents:o,product_tax_buffer_cents:l,print_shipping_cost_cents:c}=n;if(!D1(o)||!D1(l)||!D1(c)||n.print_unit_amount_cents!==O2[r].amount||o+l!==c)throw new Error("Shipping prices are updating. Please try again in a few minutes.");a=o,s=c}
8107return{level:n.level,price:s,shippingCost:a,unitAmount:O2[r].amount,delivery_estimate:`6-8 days production + ${n.transit_time} days shipping (${n.carrier_service_name})`}}).sort((n,a)=>n.price-a.price)}function vwt(e){const{quantity:t,unitAmount:r,shippingCost:n,shippingAmount:a,quotedTotal:s}=e,o=O2[e.productType];return!o||!D1(r)||r!==o.amount||typeof t!="number"||!Number.isInteger(t)||t<1||t>10||!D1(n)||!D1(a)||!D1(s)||a<n||s!==r*t+a?"Please return to shipping and choose a shipping method again.":null}const xwt=async e=>{const t=e==null?void 0:e.context;if(t&&typeof t.json=="function")try{const n=await t.clone().json();if(n&&typeof n.error=="string"&&n.error.trim())return n.error}catch{}const r=e==null?void 0:e.message;return typeof r=="string"&&r.trim()?r:null},Jh={firstName:25,lastName:25,street1:30,street2:30,city:30,state:30,phone:30},IH=[{code:"AL",name:"Alabama"},{code:"AK",name:"Alaska"},{code:"AS",name:"American Samoa"},{code:"AZ",name:"Arizona"},{code:"AR",name:"Arkansas"},{code:"AA",name:"Armed Forces Americas"},{code:"AE",name:"Armed Forces Europe"},{code:"AP",name:"Armed Forces Pacific"},{code:"CA",name:"California"},{code:"CO",name:"Colorado"},{code:"CT",name:"Connecticut"},{code:"DE",name:"Delaware"},{code:"DC",name:"District of Columbia"},{code:"FL",name:"Florida"},{code:"GA",name:"Georgia"},{code:"GU",name:"Guam"},{code:"HI",name:"Hawaii"},{code:"ID",name:"Idaho"},{code:"IL",name:"Illinois"},{code:"IN",name:"Indiana"},{code:"IA",name:"Iowa"},{code:"KS",name:"Kansas"},{code:"KY",name:"Kentucky"},{code:"LA",name:"Louisiana"},{code:"ME",name:"Maine"},{code:"MH",name:"Marshall Islands"},{code:"MD",name:"Maryland"},{code:"MA",name:"Massachusetts"},{code:"MI",name:"Michigan"},{code:"FM",name:"Micronesia"},{code:"MN",name:"Minnesota"},{code:"MS",name:"Mississippi"},{code:"MO",name:"Missouri"},{code:"MT",name:"Montana"},{code:"NE",name:"Nebraska"},{code:"NV",name:"Nevada"},{code:"NH",name:"New Hampshire"},{code:"NJ",name:"New Jersey"},{code:"NM",name:"New Mexico"},{code:"NY",name:"New York"},{code:"NC",name:"North Carolina"},{code:"ND",name:"North Dakota"},{code:"MP",name:"Northern Mariana Islands"},{code:"OH",name:"Ohio"},{code:"OK",name:"Oklahoma"},{code:"OR",name:"Oregon"},{code:"PW",name:"Palau"},{code:"PA",name:"Pennsylvania"},{code:"PR",name:"Puerto Rico"},{code:"RI",name:"Rhode Island"},{code:"SC",name:"South Carolina"},{code:"SD",name:"South Dakota"},{code:"TN",name:"Tennessee"},{code:"TX",name:"Texas"},{code:"UT",name:"Utah"},{code:"VT",name:"Vermont"},{code:"VI",name:"Virgin Islands"},{code:"VA",name:"Virginia"},{code:"WA",name:"Washington"},{code:"WV",name:"West Virginia"},{code:"WI",name:"Wisconsin"},{code:"WY",name:"Wyoming"}],U8e=[{code:"AB",name:"Alberta"},{code:"BC",name:"British Columbia"},{code:"MB",name:"Manitoba"},{code:"NB",name:"New Brunswick"},{code:"NL",name:"Newfoundland and Labrador"},{code:"NS",name:"Nova Scotia"},{code:"NT",name:"Northwest Territories"},{code:"NU",name:"Nunavut"},{code:"ON",name:"Ontario"},{code:"PE",name:"Prince Edward Island"},{code:"QC",name:"Quebec"},{code:"SK",name:"Saskatchewan"},{code:"YT",name:"Yukon"}],bwt=["Hokkaido","Aomori","Iwate","Miyagi","Akita","Yamagata","Fukushima","Ibaraki","Tochigi","Gunma","Saitama","Chiba","Tokyo","Kanagawa","Niigata","Toyama","Ishikawa","Fukui","Yamanashi","Nagano","Gifu","Shizuoka","Aichi","Mie","Shiga","Kyoto","Osaka","Hyogo","Nara","Wakayama","Tottori","Shimane","Okayama","Hiroshima","Yamaguchi","Tokushima","Kagawa","Ehime","Kochi","Fukuoka","Saga","Nagasaki","Kumamoto","Oita","Miyazaki","Kagoshima","Okinawa"].map(e=>({code:e,name:e})),q8e=[{code:"US",name:"United States"},{code:"CA",name:"Canada"},{code:"GB",name:"United Kingdom"},{code:"AU",name:"Australia"},{code:"DE",name:"Germany"},{code:"FR",name:"France"},{code:"IT",name:"Italy"},{code:"ES",name:"Spain"},{code:"NL",name:"Netherlands"},{code:"BE",name:"Belgium"},{code:"SE",name:"Sweden"},{code:"NO",name:"Norway"},{code:"DK",name:"Denmark"},{code:"FI",name:"Finland"},{code:"IE",name:"Ireland"},{code:"NZ",name:"New Zealand"},{code:"JP",name:"Japan"},{code:"SG",name:"Singapore"},{code:"HK",name:"Hong Kong"},{code:"CH",name:"Switzerland"},{code:"AT",name:"Austria"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"GR",name:"Greece"}],wwt=e=>{switch(e){case"GB":return{street1:"10 Downing Street",city:"London",state:"England",postcode:"SW1A 2AA",phone:"+44 20 1234 5678"};case"CA":return{street1:"123 Main Street",city:"Toronto",state:"ON",postcode:"M5H 2N2",phone:"+1 (416) 123-4567"};case"AU":return{street1:"123 George Street",city:"Sydney",state:"NSW",postcode:"2000",phone:"+61 2 1234 5678"};case"DE":return{street1:"HauptstraÃe 123",city:"Berlin",state:"Berlin",postcode:"10115",phone:"+49 30 12345678"};case"FR":return{street1:"123 Rue de Rivoli",city:"Paris",state:"Ãle-de-France",postcode:"75001",phone:"+33 1 23 45 67 89"};case"JP":return{street1:"1-2-3 Nishi-Shinjuku",city:"Shinjuku-ku",state:"Tokyo",postcode:"160-0023",phone:"+81 3 1234 5678"};default:return{street1:"123 Main Street",city:"New York",state:"NY",postcode:"10001-1234",phone:"+1 (555) 123-4567"}}}
8107,kwt={AL:["350","351","352","354","355","356","357","358","359","360","361","362","363","364","365","366","367","368","369"],AK:["995","996","997","998","999"],AZ:["850","851","852","853","855","856","857","859","860","863","864","865"],AR:["716","717","718","719","720","721","722","723","724","725","726","727","728","729"],CA:["900","901","902","903","904","905","906","907","908","910","911","912","913","914","915","916","917","918","919","920","921","922","923","924","925","926","927","928","930","931","932","933","934","935","936","937","938","939","940","941","943","944","945","946","947","948","949","950","951","952","953","954","955","956","957","958","959","960","961"],CO:["800","801","802","803","804","805","806","807","808","809","810","811","812","813","814","815","816"],CT:["060","061","062","063","064","065","066","067","068","069"],DE:["197","198","199"],DC:["200","202","203","204","205"],FL:["320","321","322","323","324","325","326","327","328","329","330","331","332","333","334","335","336","337","338","339","340","341","342","344","346","347","349"],GA:["300","301","302","303","304","305","306","307","308","309","310","311","312","313","314","315","316","317","318","319","398","399"],HI:["967","968"],ID:["832","833","834","835","836","837","838"],IL:["600","601","602","603","604","605","606","607","608","609","610","611","612","613","614","615","616","617","618","619","620","621","622","623","624","625","626","627","628","629"],IN:["460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479"],IA:["500","501","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","520","521","522","523","524","525","526","527","528"],KS:["660","661","662","664","665","666","667","668","669","670","671","672","673","674","675","676","677","678","679"],KY:["400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","420","421","422","423","424","425","426","427"],LA:["700","701","703","704","705","706","707","708","710","711","712","713","714"],ME:["039","040","041","042","043","044","045","046","047","048","049"],MD:["206","207","208","209","210","211","212","214","215","216","217","218","219"],MA:["010","011","012","013","014","015","016","017","018","019","020","021","022","023","024","025","026","027"],MI:["480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499"],MN:["550","551","553","554","555","556","557","558","559","560","561","562","563","564","565","566","567"],MS:["386","387","388","389","390","391","392","393","394","395","396","397"],MO:["630","631","633","634","635","636","637","638","639","640","641","644","645","646","647","648","649","650","651","652","653","654","655","656","657","658"],MT:["590","591","592","593","594","595","596","597","598","599"],NE:["680","681","683","684","685","686","687","688","689","690","691","692","693"],NV:["889","890","891","893","894","895","897","898"],NH:["030","031","032","033","034","035","036","037","038"],NJ:["070","071","072","073","074","075","076","077","078","079","080","081","082","083","084","085","086","087","088","089"],NM:["870","871","873","874","875","877","878","879","880","881","882","883","884"],NY:["005","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149"],NC:["270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289"],ND:["580","581","582","583","584","585","586","587","588"],OH:["430","431","432","433","434","435","436","437","438","439","440","441","442","443","444","445","446","447","448","449","450","451","452","453","454","455","456","457","458","459"],OK:["730","731","734","735","736","737","738","739","740","741","743","744","745","746","747","748","749"],OR:["970","971","972","973","974","975","976","977","978","979"],PA:["150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196"],PR:["006","007","009"],RI:["028","029"],SC:["290","291","292","293","294","295","296","297","298","299"],SD:["570","571","572","573","574","575","576","577"],TN:["370","371","372","373","374","375","376","377","378","379","380","381","382","383","384","385"],TX:["7
810750","751","752","753","754","755","756","757","758","759","760","761","762","763","764","765","766","767","768","769","770","771","772","773","774","775","776","777","778","779","780","781","782","783","784","785","786","787","788","789","790","791","792","793","794","795","796","797","798","799","885"],UT:["840","841","842","843","844","845","846","847"],VT:["050","051","052","053","054","055","056","057","058","059"],VA:["201","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246"],VI:["008"],WA:["980","981","982","983","984","985","986","988","989","990","991","992","993","994"],WV:["247","248","249","250","251","252","253","254","255","256","257","258","259","260","261","262","263","264","265","266","267","268"],WI:["530","531","532","534","535","537","538","539","540","541","542","543","544","545","546","547","548","549"],WY:["820","821","822","823","824","825","826","827","828","829","830","831"]},H8e={};for(const[e,t]of Object.entries(kwt))for(const r of t)H8e[r]=e;const _wt=(e,t)=>{var s,o;const r=e.trim().replace(/-.*$/,"");if(r.length<3)return null;const n=r.substring(0,3),a=H8e[n];if(!a)return null;if(a!==t){const l=((s=IH.find(u=>u.code===a))==null?void 0:s.name)||a,c=((o=IH.find(u=>u.code===t))==null?void 0:o.name)||t;return`ZIP code ${e} belongs to ${l}, not ${c}. Please check your state selection.`}return null},PH="kibbi:payment-method-saved",Swt=({onSuccess:e,onClose:t,mode:r})=>{const n=_G(),a=kG(),[s,o]=k.useState(!1),[l,c]=k.useState(null),[u,d]=k.useState(!1),h=k.useRef(null),f=k.useRef(!1),p=k.useRef(!0),y=k.useRef();k.useEffect(()=>(p.current=!0,()=>{p.current=!1,y.current&&clearTimeout(y.current)}),[]);const m=async v=>{if(v.preventDefault(),c(null),!(!n||!a||f.current)){f.current=!0,o(!0);try{if(!h.current){const{error:x}=await a.submit();if(x)throw x;const{error:_,setupIntent:w}=await n.confirmSetup({elements:a,confirmParams:{return_url:`${window.location.origin}${window.location.pathname}${window.location.search}`},redirect:"if_required"});if(_)throw _;if(!(w!=null&&w.id)||w.status!=="succeeded")throw new Error("The card setup was not confirmed. Please try again.");h.current=w.id}const{data:g,error:b}=await oe.functions.invoke("create-update-payment-method",{body:{setup_intent_id:h.current}});if(b||g!=null&&g.error)throw new Error((g==null?void 0:g.error)||(b==null?void 0:b.message)||"Failed to set new card as default");if((g==null?void 0:g.success)!==!0)throw new Error("Your card could not be saved. Please try again.");if(window.dispatchEvent(new Event(PH)),!p.current)return;e==null||e(),d(!0),Lr({title:"Card saved",description:"Your new card will be used for future charges."}),y.current=setTimeout(()=>{t()},1500)}catch(g){console.error("Payment method update error:",g),p.current&&c(g.message||"Failed to save your card. Please try again.")}finally{f.current=!1,p.current&&o(!1)}}};return u?i.jsxs("div",{className:"flex flex-col items-center justify-center py-8 space-y-4",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center",children:i.jsx(Vi,{className:"h-8 w-8 text-green-600 dark:text-green-400"})}),i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold",children:"Card saved"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Your new card is now on file."})]})]}):i.jsxs("form",{onSubmit:m,className:"space-y-6",children:[l&&i.jsxs(Eo,{variant:"destructive",children:[i.jsx(Ya,{className:"h-4 w-4"}),i.jsx(Co,{children:l})]}),i.jsx(SG,{}),i.jsxs("div",{className:"flex gap-3",children:[i.jsx(le,{type:"button",variant:"outline",onClick:t,disabled:s,className:"flex-1",children:"Cancel"}),i.jsx(le,{type:"submit",disabled:!n||s,className:"flex-1",children:s?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):i.jsxs(i.Fragment,{children:[i.jsx(bs,{className:"mr-2 h-4 w-4"}),r==="add"?"Save card":"Update Card"]})})]})]})},V8e=({open:e,onClose:t,onSuccess:r,mode:n="update"})=>{const[a,s]=k.useState(null),[o,l]=k.useState(!0),[c,u]=k.useState(null),[d,h]=k.useState(null),f=k.useRef(0);k.useEffect(()=>(e&&(d||h(Dv("pk_live_51RCFHxACvtIVItsaBYp3zmtR8bGqG74cndw9Qg2IpS3My4lapcnaUlNryFmE7Cff5wrTvoP4ssqqTcM4cdrxMitW00I0Aao1fS")),p()),()=>{f.current++}
8107),[e]);const p=async()=>{const m=++f.current;l(!0),u(null),s(null);try{const{data:v,error:g}=await oe.functions.invoke("create-update-payment-method",{body:{save_only:n==="add"}});if(m!==f.current)return;if(g)throw new Error((v==null?void 0:v.error)||g.message);if(!(v!=null&&v.clientSecret))throw new Error((v==null?void 0:v.error)||"Failed to initialize payment update");s(v.clientSecret)}catch(v){console.error("Error creating SetupIntent:",v),m===f.current&&u(v.message||"Failed to initialize. Please try again.")}finally{m===f.current&&l(!1)}},y=()=>{f.current++,s(null),u(null),t()};return i.jsx(Xr,{open:e,onOpenChange:y,children:i.jsxs(Ur,{className:"sm:max-w-[480px] max-h-[calc(100dvh-2rem)] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsxs(Tr,{className:"flex items-center gap-2",children:[i.jsx(bs,{className:"h-5 w-5"}),n==="add"?"Add card":"Update Payment Method"]}),i.jsx(ra,{children:n==="add"?"Save this card for future story and image edit purchases you choose to make. We wonât charge you now or start a subscription.":"Save this card for future purchases and any existing plan. Updating your card may also retry an unpaid subscription invoice."})]}),c&&i.jsxs(Eo,{variant:"destructive",children:[i.jsx(Ya,{className:"h-4 w-4"}),i.jsx(Co,{children:c}),i.jsx(le,{variant:"outline",onClick:p,className:"mt-3",children:"Try again"})]}),o?i.jsxs("div",{className:"flex flex-col items-center justify-center py-12 space-y-4",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin text-primary"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading payment form..."})]}):a&&d?i.jsx(f4,{stripe:d,options:{clientSecret:a,appearance:{theme:"stripe",variables:{colorPrimary:"hsl(var(--primary))"}}},children:i.jsx(Swt,{onSuccess:r,onClose:y,mode:n})}):c?null:i.jsxs("div",{className:"flex flex-col items-center justify-center py-12 space-y-4",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Unable to load payment form."}),i.jsx(le,{variant:"outline",onClick:p,children:"Try Again"})]})]})})};function ooe(e){return(e==null?void 0:e.has_purchased)===!0?4:1}function k0e(e){return(e==null?void 0:e.type)==="restore"?!1:(e==null?void 0:e.status)!=="failed"}function loe(e){if(!e)return 0;let t=0;if(Array.isArray(e.cover)&&(t+=e.cover.filter(k0e).length),e.pages&&typeof e.pages=="object")for(const r of Object.keys(e.pages))Array.isArray(e.pages[r])&&(t+=e.pages[r].filter(k0e).length);return t}const W8e=({isOpen:e,onClose:t,storyId:r,imageType:n,pageNumber:a,currentImageUrl:s,currentPrompt:o,initialEditRequest:l,onEditComplete:c,onEditStarted:u})=>{const[d,h]=k.useState(""),[f,p]=k.useState(!1),[y,m]=k.useState(null),[v,g]=k.useState(null),[b,x]=k.useState(!1),[_,w]=k.useState(!1),j=k.useRef(new Map),E=`${r}:${n}:${n==="page"?a??"":""}`,[C,N]=k.useState([]),[A,$]=k.useState(null),[T,F]=k.useState(!1),{toast:M}=Xt(),{isAdmin:z}=Fr();k.useEffect(()=>{e||w(!1)},[e]),k.useEffect(()=>{e&&h(l??"")},[e,l,r,n,a]),k.useEffect(()=>{let H=!1;return m(null),g(null),e&&r?(async()=>{var ue,B,pe,G;const{data:ae,error:D}=await oe.from("stories").select("has_purchased, edit_history, cover_image_url, page_illustrations").eq("id",r).single();if(H)return;if(D||!ae){console.error("Failed to fetch edit history:",D);return}m(loe(ae.edit_history)),g(ooe(ae));const U=ae.edit_history||{},se=[],te=s;if(n==="cover")(ue=U.cover_original)!=null&&ue.image_url&&se.push({id:"original",imageUrl:U.cover_original.image_url,label:"Original",timestamp:U.cover_original.captured_at||null,isCurrent:U.cover_original.image_url===te}),Array.isArray(U.cover)&&U.cover.forEach((I,L)=>{I!=null&&I.new_image_url&&I.status!=="failed"&&se.push({id:I.job_id||`cover-${L}`,imageUrl:I.new_image_url,label:I.type==="restore"?"Restored":`Edit ${L+1}`,editRequest:I.edit_request||null,timestamp:I.completed_at||I.edited_at||null,isCurrent:I.new_image_url===te})});else if(a!==void 0){const I=(pe=(B=U.page_originals)==null?void 0:B[a])==null?void 0:pe.image_url;I&&se.push({id:"original",imageUrl:I,label:"Original",timestamp:U.page_originals[a].captured_at||null,isCurrent:I===te});const L=(G=U.pages)==null?void 0:G[a];
8107Array.isArray(L)&&L.forEach((q,X)=>{q!=null&&q.new_image_url&&q.status!=="failed"&&se.push({id:q.job_id||`page-${a}-${X}`,imageUrl:q.new_image_url,label:q.type==="restore"?"Restored":`Edit ${X+1}`,editRequest:q.edit_request||null,timestamp:q.completed_at||q.edited_at||null,isCurrent:q.new_image_url===te})})}const Q=new Set,K=se.filter(I=>Q.has(I.imageUrl)?!1:(Q.add(I.imageUrl),!0));!K.some(I=>I.isCurrent)&&te&&K.unshift({id:"current",imageUrl:te,label:"Current",isCurrent:!0}),K.reverse(),N(K)})():(m(null),N([]),$(null)),()=>{H=!0}},[e,r,n,a,s]);const Y=()=>{if(y===null||v===null)return;if(d.trim().length<5){M({title:"Invalid request",description:"Please describe what you'd like to change (at least 5 characters)",variant:"destructive"});return}if(d.trim().length>1e3){M({title:"Request too long",description:"Please keep your edit request under 1000 characters",variant:"destructive"});return}z||(y??0)<v?W(!0):W(!1)},W=async(H,re)=>{x(!0),p(!0);let ae=j.current.get(E);ae||(ae=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random()}`,j.current.set(E,ae));try{const{data:D,error:U}=await oe.functions.invoke("create-image-edit-payment",{body:{storyId:r,imageType:n,pageNumber:a,currentPrompt:o,editRequest:d.trim(),isFreeEdit:H,client_request_id:ae,...re?{confirmedPaymentIntentId:re}:{}}});if(U){let te=null,Q=null;try{const K=U.context;if(K&&typeof K.json=="function"){const ue=await K.json();Q=K.status??null,ue!=null&&ue.error&&(te=String(ue.error)),console.error("[EditImageModal] create-image-edit-payment failed",{status:Q,body:ue})}else console.error("[EditImageModal] create-image-edit-payment failed (no context)",U)}catch(K){console.error("[EditImageModal] failed to parse edge function error body",K)}throw new Error(te||U.message||"Failed to submit edit")}if(D.requiresAction&&D.clientSecret){const te=await Dv("pk_live_51RCFHxACvtIVItsaBYp3zmtR8bGqG74cndw9Qg2IpS3My4lapcnaUlNryFmE7Cff5wrTvoP4ssqqTcM4cdrxMitW00I0Aao1fS");if(!te)throw new Error("Payment system failed to load. Please try again.");const{error:Q}=await te.confirmCardPayment(D.clientSecret);if(Q)throw new Error(Q.message||"Your bank didn't confirm the payment. Please try again.");await W(H,D.paymentIntentId);return}if(D.noPaymentMethod){w(!0);return}if(D.cardDeclined){const te=String(D.error||"Your card was declined").replace(/\.\s*$/,"");M({title:"Card declined",description:`${te}. Add a new card to continue.`,variant:"destructive"}),w(!0);return}if(!D.success)throw new Error(D.error||"Failed to submit edit");u&&u(D.jobId),j.current.delete(E);const se=!!D.paymentIntentId;M({title:se?"Payment successful":D.deduped?"Edit already in progress":"Edit started",description:`Your ${n==="cover"?"cover":`page ${a}`} is being regenerated...`}),c(),t(),h("")}catch(D){console.error("Error submitting edit:",D),M({title:"Error",description:D instanceof Error?D.message:"Failed to submit edit. Please try again.",variant:"destructive"})}finally{x(!1),p(!1)}},ee=async H=>{F(!0);try{const{data:re,error:ae}=await oe.functions.invoke("restore-image-version",{body:{storyId:r,imageType:n,pageNumber:n==="page"?a:null,targetImageUrl:H.imageUrl,sourceEntryId:H.id}});if(ae)throw ae;if(re!=null&&re.error)throw new Error(re.error);M({title:"Version restored",description:`${H.label} is now showing.`}),c(),t(),$(null)}catch(re){console.error("Restore failed:",re),M({title:"Restore failed",description:re instanceof Error?re.message:"Please try again.",variant:"destructive"})}finally{F(!1)}},Z=v??0,ne=Math.max(0,Z-(y??0)),P=z||ne>0,R=y===null||v===null;return i.jsxs(i.Fragment,{children:[i.jsx(Xr,{open:e,onOpenChange:H=>{!H&&!f&&!b&&!T&&t()},children:i.jsxs(Ur,{className:"max-w-2xl",children:[i.jsxs(Nr,{children:[i.jsxs(Tr,{children:["Edit ",n==="cover"?"Cover":`Page ${a}`," Image"]}),i.jsx(ra,{children:"Describe what you'd like to change about this image."})]}),i.jsxs("div",{className:"space-y-4",children:[!R&&i.jsx("div",{className:`text-sm px-3 py-2 rounded-md ${P?"bg-green-500/10 text-green-700 dark:text-green-400":"bg-amber-500/10 text-amber-700 dark:text-amber-400"}`,children:z?"Admin: Free edits":P&&Z>1?`Free edit (${ne} of ${Z} remaining for this story)`:P?"Free edit (1 free edit per story)":"This edit costs $0.50 (charged to your saved card)"}),i.jsx("div",{className:"relative w-full max-h-[40vh] rounded-lg overflow-hidden bg-muted flex items-center justify-center",children:i.jsx("img",{src:s,alt:n==="cover"?"Current cover":`Current page ${a}`,className:"max-w-full max-h-[40vh] object-contain"})}),C.length>1&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("label",{className:"text-sm font-medium",children:"Previous versions"}),i.jsx("span",{className:"text-xs text-muted-foreground",children:"Restoring is free â no credits used"})]}),i.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2",children:C.map(H=>{const re=A===H.id;return i.jsxs("div",{className:"flex-shrink-0 w-24 space-y-1",children:[i.jsxs("button",{type:"button",disabled:H.isCurrent||T||f||b,onClick:()=>{H.isCurrent||(re?ee(H):$(H.id))},title:H.editRequest||H.label,className:`relative block w-24 h-24 rounded-md overflow-hidden border-2 transition ${H.isCurrent?"border-primary curs
8107or-default":re?"border-amber-500":"border-transparent hover:border-primary/50 cursor-pointer"} disabled:opacity-60`,children:[i.jsx("img",{src:H.imageUrl,alt:H.label,className:"w-full h-full object-cover",loading:"lazy"}),re&&!H.isCurrent&&i.jsx("div",{className:"absolute inset-0 bg-black/60 text-white text-[10px] flex items-center justify-center text-center px-1 leading-tight",children:T?"Restoringâ¦":"Click again to restore"})]}),i.jsx("div",{className:"text-[11px] text-center text-muted-foreground truncate",children:H.isCurrent?"Current":H.label})]},H.id)})}),A&&i.jsx("button",{type:"button",className:"text-xs text-muted-foreground underline",onClick:()=>$(null),disabled:T,children:"Cancel restore"})]}),i.jsxs("div",{className:"text-xs text-muted-foreground bg-muted/50 px-3 py-2 rounded-md space-y-1",children:[i.jsx("p",{className:"font-medium text-foreground/80",children:"Tips for best results:"}),i.jsxs("ul",{className:"list-disc pl-4 space-y-0.5",children:[i.jsxs("li",{children:["Keep it to ",i.jsx("strong",{children:"one change at a time"})," â multiple changes in one edit may not all come through"]}),i.jsx("li",{children:"Works well: changing colors, outfits, background, character expressions, adding or removing objects"}),i.jsx("li",{children:"Harder for AI: specific text or words on objects, small connecting details between characters, precise positioning"}),i.jsx("li",{children:"Each edit generates a new image â results may vary slightly each time"})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex justify-between items-center font-bold",children:[i.jsx("label",{className:"text-sm font-medium",children:"What would you like to change?"}),i.jsxs("span",{className:"text-xs text-muted-foreground",children:[d.length,"/1000"]})]}),i.jsx(Dr,{value:d,onChange:H=>h(H.target.value),placeholder:"E.g., Make the sky sunset colors with pink clouds",rows:3,disabled:f||b||T,maxLength:1e3}),i.jsx("p",{className:"text-xs text-muted-foreground italic",children:"Edits apply to this page only. To change a character across the whole book, edit the character description in Character Review."}),i.jsxs("div",{className:"text-xs text-muted-foreground space-y-1",children:[i.jsx("p",{children:"Examples:"}),i.jsxs("ul",{className:"list-disc list-inside space-y-0.5",children:[i.jsx("li",{children:"Make the sky sunset colors with pink and orange clouds"}),i.jsx("li",{children:"Add more flowers in the foreground"}),i.jsx("li",{children:"Change the background to a darker forest"})]})]})]}),i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx(le,{variant:"outline",onClick:t,disabled:f||b||T,children:"Cancel"}),i.jsxs(le,{onClick:Y,disabled:f||b||T||R||d.trim().length<5,children:[f&&i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),R?"Loading...":P?"Generate New Image":"Generate New Image - $0.50"]})]})]})]})}),i.jsx(V8e,{open:_,onClose:()=>w(!1),onSuccess:()=>{w(!1),M({title:"Card saved",description:"Click Generate again to run your edit ($0.50)."})}})]})},jwt=/Title\s*["â](.+)["â](?:\s+is\s+displayed)?\s*prominent(?:ly)?\b/i,Ewt=/Title\s*["â]([^"â]+)["â]/i;function G8e(e){if(!e)return null;const t=e.match(jwt)??e.match(Ewt);return t?t[1].trim():null}function _0e(e,t){const r=(t??"").trim().toLowerCase();return r.startsWith("turkish")||r.startsWith("azerbaijani")||r==="tr"||r==="az"?e.toLocaleLowerCase("tr"):e.toLowerCase()}function S0e(e,t){return e.normalize("NFC").replace(/&/g," and ").replace(/[^\p{L}\p{N}\p{M}]+/gu," ").trim().replace(/\s+/g," ")}function Cwt(e,t,r){const n=G8e(e);return!n||!t||!t.trim()?!1:_0e(S0e(n),r)!==_0e(S0e(t),r)}function Nwt(e){return`Change the title text on the cover to read exactly "${e}". Keep the same scene, characters, composition, lettering style and colours as close as possible.`}const Twt=["cover_image_url","cover_image_thumbnail_url","story_title","book_description","has_purchased","intended_entitlement"];function Awt(e,t){return e===t?!0:e===null||t===null||e===void 0||t===void 0?!1:typeof e=="object"&&typeof t=="object"?JSON.stringify(e)===JSON.stringify(t):!1}function Mwt(e,t){return t?Twt.some(r=>!Awt(e==null?void 0:e[r],t[r])):!1}const Iwt=.5,Pwt=1,Lwt=["chinese","japanese","korean"],Owt={paperback:{sideWidthInches:7.15,heightInches:10.25,sideMarginPoints:72,topMarginPoints:72,footerPoints:120}
8107,hardcover:{sideWidthInches:7.875,heightInches:11.75,sideMarginPoints:108,topMarginPoints:108,footerPoints:180}},j0e=11,E0e=7,K8e=1.5,Y8e=1.5,mQ=9;function Rwt(e){const t=(e??"").trim().toLowerCase();for(const r of Lwt)if(t===r||t.startsWith(r+"-"))return Pwt;return Iwt}function Dwt(e,t){let r=0,n=0;for(const a of e.split(" ")){if(!a)continue;const s=a.length;n>0&&n+1+s<=t?n+=1+s:s<=t?(n>0&&r++,n=s):(n>0&&r++,r+=Math.floor(s/t),n=s%t)}return n>0&&r++,Math.max(1,r)}function Fwt(e,t,r,n){const a=Math.max(1,Math.floor(r/(n*t))),s=t*K8e,o=e.split(/\n/).map(c=>c.trim());let l=0;for(let c=0;c<o.length;c++){const u=o[c];u&&(l+=Dwt(u,a)*s,c<o.length-1&&(l+=Y8e*s))}return l}function $wt(e,t,r){const n=Owt[t],a=n.sideWidthInches*72-n.sideMarginPoints*2,s=n.heightInches*72-n.topMarginPoints-n.footerPoints,o=Rwt(r),l=(e??"").trim();if(!l)return{fits:!0,fontSize:j0e,readable:!0,charsOverReadable:0};let c=E0e,u=!1;for(let f=j0e;f>=E0e;f--)if(Fwt(l,f,a,o)<=s){c=f,u=!0;break}const d=u&&c>=mQ;let h=0;if(!d){const f=Math.max(1,Math.floor(a/(o*mQ))),p=mQ*K8e,y=Math.floor(s/p),m=l.split(/\n/).map(b=>b.trim());let v=0;for(let b=0;b<m.length;b++)m[b]&&b<m.length-1&&v++;const g=Math.max(0,Math.floor((y-v*Y8e)*f));h=Math.max(0,l.length-g)}return{fits:u,fontSize:c,readable:d,charsOverReadable:h}}function Bwt(e,t){const n=["paperback","hardcover"].map(s=>$wt(e,s,t)).sort((s,o)=>Number(s.fits)-Number(o.fits)||s.fontSize-o.fontSize||o.charsOverReadable-s.charsOverReadable)[0];if(n.readable)return null;const a=n.charsOverReadable>0?`Remove about ${n.charsOverReadable} characters, or use fewer line breaks.`:"Use fewer line breaks between short lines, or merge them into paragraphs.";return n.fits?`This description only fits the printed back cover in very small type (${n.fontSize}pt). ${a}`:`This description is too long for the printed back cover and would run past the edge. ${a}`}const X8e=({storyTitle:e,onSubmit:t,onSkip:r,isSubmitting:n=!1,inModal:a=!1})=>{const[s,o]=k.useState(0),[l,c]=k.useState(""),u=()=>{s!==0&&t(s,l)},d=a?"w-full space-y-6 p-4":"min-h-screen flex items-center justify-center p-6",h=a?void 0:{backgroundColor:"#FFFFFF"},f=a?"w-full space-y-6":"max-w-md w-full space-y-8";return i.jsx("div",{className:d,style:h,children:i.jsxs("div",{className:f,children:[i.jsxs("div",{className:"text-center space-y-3",children:[i.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground",children:"What did you think of this story?"}),i.jsx("p",{className:"text-muted-foreground text-base",children:"Your feedback helps us create better stories"})]}),i.jsx("div",{className:"flex justify-center gap-2",role:"group","aria-label":"Rating",children:[1,2,3,4,5].map(p=>i.jsx("button",{onClick:()=>o(p),className:`text-5xl transition-all duration-200 hover:scale-110 focus:outline-none rounded min-w-[44px] min-h-[44px] flex items-center justify-center ${p<=s?"text-yellow-400":"text-gray-300"}`,"aria-label":`${p} star${p>1?"s":""}`,"aria-pressed":p<=s,children:"â
"},p))}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Dr,{value:l,onChange:p=>c(p.target.value),placeholder:"Share your thoughts (optional)",maxLength:500,rows:4,className:"resize-none text-base",disabled:n}),i.jsxs("p",{className:"text-xs text-muted-foreground text-right",children:[l.length,"/500"]})]}),i.jsxs("div",{className:"flex flex-col gap-3 pt-4",children:[i.jsx(le,{onClick:u,disabled:s===0||n,className:"w-full h-12 text-base",size:"lg",children:n?"Submitting...":"Submit Review"}),i.jsx(le,{variant:"ghost",onClick:r,disabled:n,className:"w-full h-12 text-base",size:"lg",children:"Skip"})]})]})})},zwt=({failedCount:e,onEditStory:t})=>i.jsxs(Eo,{variant:"destructive",className:"border-amber-500 bg-amber-50 text-amber-900",children:[i.jsx(Fs,{className:"h-5 w-5 text-amber-600"}),i.jsxs(i4,{className:"text-amber-900 font-semibold",children:[e," ",e===1?"illustration":"illustrations"," couldn't be generated"]}),i.jsxs(Co,{className:"text-amber-800 mt-2 space-y-3",children:[i.jsx("p",{children:"Some scenes reference copyrighted characters (like Harry Potter, Disney, Marvel, etc.). AI image generators cannot create images of trademarked content."}),i.jsxs("p",{className:"text-sm",children:[i.jsx("strong",{children:"Tip:"})," Edit your story to rename these characters with original names, then regenerate the illustrations."]}),t&&i.jsxs(le,{variant:"outline",size:"sm",onClick:t,className:"mt-2 border-amber-600 text-amber-700 hover:bg-amber-100",children:[i.jsx(cc,{className:"h-4 w-4 mr-2"}),"Edit Your Story"]})]})]}),Uwt=4;async function C0e(e){var t;try{const{data:r}=await oe.from("pdf_generation_jobs").select("completed_at").eq("story_id",e).eq("status","completed").order("completed_at",{ascending:!1}).limit(1).maybeSingle();if(!(r!=null&&r.completed_at))return!0;const n=new Date(r.completed_at).getTime(),{data:a}=await oe.from("stories").select("page_illustrations").eq("id",e).single(),s=(a==null?void 0:a.page_illustrations)||{};let o=0;for(const l of Object.keys(s)){const c=(t=s[l])==null?void 0:t.generated_at;if(c){const u=new Date(c).getTime();!isNaN(u)&&u>o&&(o=u)}}return o===0?!1:o>n}catch(r){return console.warn("[BookPreview] PDF staleness check failed",r),!1}}async function N0e(e){await oe.from("stories").update({pdf_url:null,cover_pdf_url:null,pdf_generation_status:"idle",pdf_generation_error:null}).eq("id",e)}const T0e=(e,t)=>{if(!e)return"";if(e.startsWith("data:"))return e;const r=e.split("?")[0];if(!t)return r;const n=new Date(t).getTime();return Number.isNaN(n)?r:`${r}?v=${n}`},A0e=()=>{var Kle,Yle,Xle;const e=wt(),t=wa(),{token:r}=Ou(),[n]=ka(),{setStoryId:a,setAgeRange:s,setLanguage:o,bookClubFlow:l,bookClubTargetId:c}=Zs(),{user:u,loading:d,subscriptionStatus:h}=er(),{isAdmin:f,loading:p}=Fr(),{isLegacyUser:y}=W_(),{toast:m}=Xt(),{entitlementType:v,profile:g,refresh:b,freeSamplesRemaining:x}=ch(),[_,w]=k.useState(""),[j,E]=k.useState(""),[C,N]=k.useState(""),[A,$]=k.useState(""),[T,F]=k.useState(""),[M,z]=k.useState(0),[Y,W]=k.useState(""),[ee,Z]=k.useState(""),[V,ne]=k.useState(""),[P,R]=k.useState(""),H=l&&!!c&&c===P,[re,ae]=k.useState(!0),[D,U]=k.useState(!1),se=k.useRef(0),te=k.useRef(0),Q=k.useMemo(()=>({pathname:t.pathname,search:t.search,userId:u==null?void 0:u.id,authLoading:d,active:!0}),[t.pathname,t.search,u==null?void 0:u.id,d]);k.useEffect(()=>(Q.active=!0,()=>{Q.active=!1,se.current+=1}),[Q]);const[K,ue]=k.useState(!1),[B,pe]=k.useState(0),[G,I]=k.useState(0);k.useState(!1);const[L,q]=k.useState(!1),[X,ie]=k.useState(0),[J,fe]=k.useState(!1),[ve,ge]=k.useState({completed:0,total:0}),[de,ye]=k.useState(!1),[_e,Fe]=k.useState(!1),[ht,_t]=k.useState(!1),[xe,je]=k.useState(!1),[ut,Ot]=k.useState(!1),[lt,et]=k.useState(null),[It,wr]=k.useState(null),[rr,Oe]=k.useState(null),[rt,nt]=k.useState(null),[yt,tt]=k.useState(null),[$e,At]=k.useState(!1),[at,Zt]=k.useState(!1),[Kt,$r]=k.useState(!1),[ar,_a]=k.useState(null),[Pi,Nc
8107]=k.useState(!1),[jt,yr]=k.useState(!1),[Ao,hn]=k.useState(!1),[Li,Rn]=k.useState(!1),[As,Xv]=k.useState([]),[ig,Tn]=k.useState(!1),[Ih,S4]=k.useState("cover"),[Mo,_n]=k.useState(void 0),[Io,qr]=k.useState(""),[Ph,Tc]=k.useState(""),[Zv,Lh]=k.useState(""),[wK,kK]=k.useState({}),[ct,sg]=k.useState(!1),[Qv,Jv]=k.useState(null);k.useState(!1),k.useState(null);const[ex,og]=k.useState(!1),[An,Ac]=k.useState(null),[tx,Oh]=k.useState(!1),[j4,Rh]=k.useState(!1),[_K,Dh]=k.useState(!1),[rx,E4]=k.useState(""),[lg,C4]=k.useState(""),[cg,N4]=k.useState(!1),[nx,T4]=k.useState(!1),[ug,Fh]=k.useState(!1),[$h,ax]=k.useState(""),[Bh,A4]=k.useState(!1),[Ms,ix]=k.useState(!1),zh=!!u&&!d&&!re&&!D&&!ex&&at&&!$e&&!!P,sx=!!u&&!d&&!D&&!ex&&at&&!$e&&!!P,{isCreatingBook:Hu,creationStage:M4,creationProgress:I4,createBook:it}=nNe({storyId:P||null,title:_}),Ft=hbt(P),Dt=g8e(P||null,{enabled:zh,isAdmin:f}),fn=Dt.bookViewable&&(!at||$e||Dt.progressStoryId===P),Dn=Dt.progressStoryId===P&&Use({textReady:Dt.textViewable,entitlement:An,isBookClubTarget:H}),Sa=!C||$h!==P,ja=k.useRef(null),Oi=Dt.status==="streaming"||Dt.status==="text_ready"||Dt.status==="topping_up",Pr=k.useRef(P);k.useEffect(()=>{Pr.current=P},[P]),k.useEffect(()=>{Xv([]),I(0),pe(0),ie(0),sg(!1),Jv(null),Tn(!1),Lh(""),Tc(""),qr(""),tt(null)},[P]),k.useEffect(()=>{if(!P)return;const we=Dt.coverImageUrl;if($h!==P){N(we??""),$(""),F(""),nt(we?"complete":null),we&&ax(P);return}!C&&we&&(N(we),nt("complete"))},[P,$h,C,Dt.coverImageUrl]);const Er=B>0||(at||f)&&!$e&&!fn,{displayProgress:Po,label:Wt}=x8e({storyId:P||null,pending:Oi,realPct:((Kle=Dt.breytaProgress)==null?void 0:Kle.pct)??null,stage:(Yle=Dt.breytaProgress)==null?void 0:Yle.stage,progressStoryId:Dt.progressStoryId,runId:((Xle=Dt.breytaProgress)==null?void 0:Xle.runId)??null}),[Js,dg]=k.useState(!1),[Vu,P4]=k.useState(!1),[SK,ox]=k.useState(!1),[jK,L4]=k.useState(!1),[Wu,lx]=k.useState(null),[Mc,cx]=k.useState(0),[Tle,Ale]=k.useState([]),[MPe,Mle]=k.useState(!1),IPe=async(we,He)=>{const{data:Ge,error:mt}=await oe.rpc("get_story_reviews_with_anonymized_emails",{p_story_id:we});if(He())if(!mt&&Ge&&Ge.length>0){Ale(Ge),cx(Ge.length);const bt=Ge.reduce(($t,kt)=>$t+(kt.stars||0),0)/Ge.length;lx(Math.round(bt*10)/10)}else Ale([]),cx(0),lx(null)},EK=async(we,He,Ge=0)=>{try{console.log(`[BookPreview] Verifying checkout session (attempt ${Ge+1})`);const{data:mt,error:bt}=await oe.functions.invoke("verify-checkout-session",{body:{session_id:we}});if(bt)throw bt;if(mt.success&&mt.subscription_active){await b(),hn(!1);const $t=He?`${window.location.pathname}?id=${He}`:window.location.pathname;window.history.replaceState({},"",$t),m({title:"Subscription activated! ð",description:"You can now create your personalized story"}),He&&await Ea(He,null)}else if(Ge<3){const $t=Math.pow(2,Ge+1)*1e3;console.log(`[BookPreview] Payment not ready, retrying in ${$t}ms`),setTimeout(()=>{EK(we,He,Ge+1)},$t)}else m({title:"Taking longer than expected",description:"Your subscription is being activated. Please refresh the page in a moment.",variant:"default"})}catch(mt){if(console.error("[BookPreview] Verification error:",mt),Ge<3){const bt=Math.pow(2,Ge+1)*1e3;setTimeout(()=>{EK(we,He,Ge+1)},bt)}else m({title:"Unable to verify payment",description:"Please contact support if your subscription is not activated shortly.",variant:"destructive"})}};k.useEffect(()=>{u&&!d&&(async()=>{const He=new URLSearchParams(window.location.search),Ge=He.get("session_id"),mt=He.get("payment_intent"),bt=He.get("payment_intent_client_secret"),$t=He.get("redirect_status"),kt=He.get("id");if(mt&&kt&&u){console.log("[BookPreview] Detected return from payment redirect",{paymentIntentId:mt,storyId:kt});const{data:Be}=await oe.from("stories").select("has_purchased").eq("id",kt).eq("user_id",u.id).maybeSingle();if(Be&&!Be.has_purchased){console.log("[BookPreview] Story not yet purchased, verifying payment status");try{const{data:Fn,error:pn}=await oe.functions.invoke("verify-payment-status",{body:{paymentIntentId:mt}});!pn&&(Fn==null?void 0:Fn.status)==="succeeded"&&(console.log("[BookPreview] Payment succeeded, c
8107onfirming with backend"),await oe.functions.invoke("confirm-story-payment",{body:{storyId:kt,paymentIntentId:mt}}),m({title:"Payment Confirmed!",description:"Your payment was processed successfully. Your story is being generated."}),Ea(kt,null))}catch(Fn){console.error("[BookPreview] Error verifying payment on return:",Fn)}}return}if(mt&&bt&&$t==="succeeded"&&u){console.log("[BookPreview] Detected return from subscription 3D Secure"),hn(!0);return}if(Ge&&u){console.log("[BookPreview] Detected subscription checkout return"),m({title:"Activating subscription...",description:"Please wait while we confirm your payment"}),EK(Ge,kt||void 0);return}})()},[u,d,t.search]),k.useEffect(()=>{if(d)return;const we=t.pathname.startsWith("/shared/story/");At(we);let He=null,Ge=null;if(we){if(Ge=r||null,!Ge){e("/");return}}else{if(He=n.get("id"),!He){e("/library");return}if(!u){og(!0),ae(!1);return}b()}He?(R(He),a(He),Ea(He,null)):Ge&&Ea(null,Ge)},[n,t.pathname,r,e,a,d,u==null?void 0:u.id]),k.useEffect(()=>{if(!zh)return;const we=P;let He=!1,Ge=0;const mt=30;let bt=!1;const $t=setInterval(()=>{bt||(Ge++,PPe(we,()=>!He).then(kt=>{bt=kt,kt&&(console.log("[BookPreview] All images complete, stopping polling"),clearInterval($t))}))},Ge<mt?1e3:3e3);return()=>{He=!0,clearInterval($t)}},[P,zh,Q]),k.useEffect(()=>{Bh&&!Ms&&!Hu&&P&&_&&(ix(!0),it())},[Bh,Ms,Hu,P,_,it]),k.useEffect(()=>{Ms&&!Hu&&P&&Ea(P,null)},[Ms,Hu,P]),k.useEffect(()=>{if(rt!=="generating"||!P||!yt)return;let we=!1;const He=setInterval(async()=>{const{data:Ge}=await oe.from("image_edit_jobs").select("status, error_message").eq("id",yt).eq("story_id",P).eq("image_type","cover").maybeSingle();we||!Q.active||!Ge||(Ge.status==="completed"?(clearInterval(He),await Ea(P,null)):(Ge.status==="failed"||Ge.status==="refunded")&&(clearInterval(He),nt("failed"),m({title:Ge.status==="refunded"?"Cover edit refunded":"Cover regeneration failed",description:Ge.status==="refunded"?`${Ge.error_message||"We couldn't apply that change."} You have not been charged.`:Ge.error_message||"Please try again.",variant:"destructive"})))},4e3);return()=>{we=!0,clearInterval(He)}},[rt,P,yt,Q]),k.useEffect(()=>{if(!sx)return;const we=P;let He=null;const Ge=oe.channel(`book-preview-${we}`).on("postgres_changes",{event:"UPDATE",schema:"public",table:"stories",filter:`id=eq.${we}`},mt=>{if(!Q.active||Pr.current!==we||!Mwt(mt.old,mt.new))return;He&&clearTimeout(He);const bt=()=>{if(He=null,!(!Q.active||Pr.current!==we)){if(te.current>0){He=setTimeout(bt,500);return}Ea(we,null,{background:!0})}};He=setTimeout(bt,500)}).subscribe();return()=>{He&&clearTimeout(He),oe.removeChannel(Ge)}},[P,sx,Q]);const Ea=async(we,He,Ge={})=>{if(!we&&!He||!Q.active)return;const mt=++se.current,bt=()=>Q.active&&se.current===mt;Ge.background||(te.current+=1);const $t=kt=>{if(Ge.background){console.warn(`[BookPreview] Background refresh failed (${kt}); keeping the loaded preview`);return}U(!0)};Ge.background||ae(!0),U(!1),og(!1),console.log("[BookPreview] Loading story at:",new Date().toISOString());try{let kt=oe.from("stories").select("id, story_title, book_description, cover_image_url, cover_image_thumbnail_url, cover_image_prompt, story_content, age_range, language, reading_level, illustration_style, pdf_url, cover_pdf_url, pdf_generation_status, user_id, is_public, share_token, has_purchased, intended_entitlement, page_illustrations, edit_history, story_source, updated_at");He?kt=kt.eq("share_token",He).eq("is_public",!0):we&&(kt=kt.eq("id",we));const{data:Be,error:Fn}=await kt.maybeSingle();if(!bt())return;if(console.log("[BookPreview] Story data fetched:",{storyId:Be==null?void 0:Be.id,has_purchased:Be==null?void 0:Be.has_purchased,timestamp:new Date().toISOString()}),Fn){if(console.error("Error fetching story:",Fn),!He&&(Fn.code==="PGRST301"||!u)){og(!0),ae(!1);return}$t("fetch error");return}if(!Be){$t("no row");return}const pn=Be.id;P||(R(pn),a(pn));const Lo=(u==null?void 0:u.id)===Be.user_id;if(console.log("BookPreview ownership check:",{currentUserId:u==null?void 0:u.id,storyUserId:Be.user_id,isOwner:Lo}),Zt(Lo),_a(Be.share_token),Nc(Be.is_public||!1),et(Be.pdf_url),wr(Be.cover_pdf_url),Oe(Be.story_source||"kibbi"),console.log("[BookPreview] Setting hasPurchased to:",Be.has_purchased),yr(Be.has_purchased||!1),Ac(Be.intended_entitlement||null),kK(Be.edit_history||{}),w(Be.story_title||"Untitled Story"),Lo&&Be.pdf_generation_status==="processing"&&(console.log("[BookPreview] PDFs still generating - subscribing to updates"),oe.channel(`story-${pn}-pdfs`).on("postgres_changes",{event:"UPDATE",schema:"public",table:"stories",filter:`id=eq.${pn}`},Cr=>{const Gn=Cr.new;console.log("[BookPreview] Story updated:",Gn.pdf_generation_status),Gn.pdf_url&&Gn.cover_pdf_url&&Gn.pdf_generation_status==="completed"&&(console.log("[BookPreview] PDFs ready - updating state"),et(Gn.pdf_url),wr(Gn.cover_pdf_url))}).subscribe()),W(Be.age_range),Z(Be.language),s(Be.age_range),o(Be.language),ne(Be.illustration_style||""),Be.story_content){const Cr=Object.keys(wl(Be.story_content)).length;z(Cr)}if(E(Be.book_description||""),!Be.book_description&&Lo&&(console.log("Generating book description..."),await oe.functions.invoke("generate-book-description",{body:{storyId:pn,ageRange:Be.age_range,language:Be.language}}
8107).then(({data:Cr,error:Gn})=>{bt()&&(Gn?console.warn("Could not generate book description:",Gn):typeof(Cr==null?void 0:Cr.description)=="string"&&E(Cr.description))}).catch(Cr=>{bt()&&console.warn("Could not generate book description:",Cr)}),!bt()))return;if(Be.cover_image_url){const Cr=Be.updated_at?new Date(Be.updated_at).getTime():0,Gn=`${Be.cover_image_url}?v=${Cr}`;if(N(Gn),ax(Be.id),Be.cover_image_thumbnail_url){const Oo=`${Be.cover_image_thumbnail_url}?v=${Cr}`;$(Oo)}F(Be.cover_image_prompt||""),nt("complete")}else if(Lo&&Be.story_content&&!Bh&&!Ge.background){A4(!0);return}else Be.cover_image_prompt&&(F(Be.cover_image_prompt),nt("generating"));if(oe.from("story_category_mappings").select("story_categories(name, slug)").eq("story_id",pn).then(({data:Cr})=>{if(bt()&&Cr){const Gn=Cr.map(Oo=>Oo.story_categories).filter(Oo=>Oo!==null);Xv(Gn)}}),IPe(pn,bt).catch(Cr=>{bt()&&console.warn("Could not load story reviews:",Cr)}),Lo&&oe.from("image_upscaling_queue").select("status").eq("story_id",pn).then(({data:Cr})=>{if(bt()&&Cr&&Cr.length>0){const Gn=Cr.filter(Ro=>Ro.status==="pending"||Ro.status==="processing").length,Oo=Cr.filter(Ro=>Ro.status==="completed").length,Ic=Cr.length;Gn>0&&(console.log("[BookPreview] Active upscaling detected, resuming progress tracking"),fe(!0),ge({completed:Oo,total:Ic}),O4(pn))}}),Lo&&Be.story_content){const Cr=wl(Be.story_content),Gn=(Be.intended_entitlement==="free_sample"||Be.intended_entitlement==="overage")&&!Be.has_purchased,Oo=Object.keys(Cr).map(Ri=>parseInt(Ri)).sort((Ri,Pc)=>Ri-Pc),Ic=N2(Be,Oo),Ro=Ic.length,ux=Be.page_illustrations||{},Zle=Qte(ux,Ic),dx=Ro-Zle,Qle=Ic.filter(Ri=>{var Pc,hx;return((Pc=ux[Ri])==null?void 0:Pc.status)==="failed"&&((hx=ux[Ri])==null?void 0:hx.error_type)==="copyright_blocked"}).length;console.log("[BookPreview] Illustration status:",{total:Ro,complete:Zle,missing:dx,copyrightBlocked:Qle,isFreeSampleViewer:Gn,timestamp:new Date().toISOString()}),pe(dx),I(Qle),ie(Ro-dx),(Be.has_purchased||f)&&(f&&!Be.has_purchased&&dx>0?(console.log(`[BookPreview] Admin story with ${dx} missing images â triggering generate-all-images`),oe.functions.invoke("generate-all-images",{body:{storyId:pn}}).then(()=>{oe.functions.invoke("process-image-queue",{body:{}}).catch(Ri=>console.error("Error triggering image processor:",Ri))}).catch(Ri=>{console.error("Error triggering admin image generation:",Ri)})):Promise.all([oe.functions.invoke("reset-stuck-illustrations",{body:{storyId:pn}})]).then(async([Ri])=>{var hx,Jle;((Jle=(hx=Ri.data)==null?void 0:hx.stuckPages)==null?void 0:Jle.length)>0&&console.log("Reset stuck pages:",Ri.data.stuckPages);const Pc=Ic.filter(fx=>{var $4,ece;return!(($4=ux[fx])!=null&&$4.image_url)||((ece=ux[fx])==null?void 0:ece.status)==="failed"});Pc.length>0&&(console.log(`Auto-retrying ${Pc.length} failed pages:`,Pc),Promise.all(Pc.map(fx=>oe.functions.invoke("generate-single-image",{body:{storyId:pn,pageNumber:fx}}).catch($4=>{console.error(`Error auto-retrying page ${fx}:`,$4)}))))}).catch(Ri=>{console.error("Error checking illustrations:",Ri)}))}P4(!1),u!=null&&u.id&&He&&(Be!=null&&Be.id)&&oe.from("story_reviews").select("id").eq("story_id",Be.id).eq("user_id",u.id).maybeSingle().then(({data:Cr})=>{bt()&&P4(!!Cr)}).catch(Cr=>{bt()&&console.warn("Could not load public story review:",Cr)})}catch(kt){if(!bt())return;console.error("Error loading book preview:",kt),$t("exception")}finally{Ge.background||(te.current-=1),bt()&&ae(!1)}},PPe=async(we,He)=>{const Ge=se.current;try{const{data:mt}=await oe.from("stories").select("story_content, page_illustrations, intended_entitlement, has_purchased").eq("id",we).maybeSingle();if(!He()||!Q.active||se.current!==Ge)return!1;if(mt){const bt=wl(mt.story_content),$t=(mt.intended_entitlement==="free_sample"||mt.intended_entitlement==="overage")&&!mt.has_purchased,kt=N2(mt,Object.keys(bt).map(Number).filter(Number.isInteger)),Be=kt.length,Fn=mt.page_illustrations||{},pn=Qte(Fn,kt),Lo=Be-pn,Cr=Object.keys(Fn).filter(Gn=>{var Ic,Ro;const Oo=parseInt(Gn);return $t&&Oo>Uwt?!1:((Ic=Fn[Gn])==null?void 0:Ic.status)==="failed"&&((Ro=Fn[Gn])==null?void 0:Ro.error_type)==="copyright_blocked"}).length;return console.log("[BookPreview] Poll update:",{generated:pn,missing:Lo,copyrightBlocked:Cr,total:Be,isFreeSampleViewer:$t,timestamp:new Date().toISOString()}),ie(pn),pe(Lo),I(Cr),z(Be),Lo===0}return!1}catch(mt){return console.error("Error checking illustration progress:",mt),!1}},Ile=()=>{e($e&&ar?`/app/story-reader?id=${P}&token=${ar}`:`/app/story-reader?id=${P}`)},Ple=async()=>
8107{if(P)try{const{error:we}=await oe.from("stories").update({has_purchased:!0,purchase_date:new Date().toISOString()}).eq("id",P);if(we)throw we;yr(!0),m({title:"Success",description:"Story marked as purchased"})}catch(we){console.error("Error marking as purchased:",we),m({title:"Error",description:"Failed to mark story as purchased",variant:"destructive"})}},Lle=async()=>{try{const{error:we}=await oe.from("stories").update({pdf_url:null,cover_pdf_url:null,pdf_generation_status:"idle"}).eq("id",P);we?console.error("Error deleting PDFs:",we):(console.log("PDFs marked for regeneration"),et(null),wr(null))}catch(we){console.error("Error in deletePDFsAfterEdit:",we)}},Ole=async()=>{if(Sa||cg)return;const we=rx.trim();if(we.length<1||we.length>100){m({title:"Invalid title",description:"Title must be between 1 and 100 characters",variant:"destructive"});return}const He=P;N4(!0);try{const{data:Ge,error:mt}=await oe.from("stories").update({story_title:we}).eq("id",He).select("cover_image_url, cover_image_thumbnail_url, cover_image_prompt").single();if(mt)throw mt;if(He!==Pr.current)return;w(we),Rh(!1);const bt=Ge.cover_image_prompt||"";if(F(bt),Ge.cover_image_url&&N(Ge.cover_image_url),$(Ge.cover_image_thumbnail_url||""),await Lle(),He!==Pr.current)return;if(Ge.cover_image_url&&Cwt(bt,we,ee)){Jv(G8e(bt)),sg(!0);return}m({title:"Title updated",description:"Your book title has been saved. PDFs will be regenerated for print orders."})}catch(Ge){console.error("Error saving title:",Ge),m({title:"Failed to save",description:"Please try again",variant:"destructive"})}finally{N4(!1)}},LPe=async()=>{const we=lg.trim();if(we.length<10||we.length>6e3){m({title:"Invalid description",description:"Description must be between 10 and 6000 characters",variant:"destructive"});return}const He=P;T4(!0);try{const{error:Ge}=await oe.from("stories").update({book_description:we}).eq("id",He);if(Ge)throw Ge;if(He!==Pr.current)return;E(we),Dh(!1),await Lle(),m({title:"Back cover description saved",description:"This is the text printed on the back of your book. The story itself is unchanged."})}catch(Ge){console.error("Error saving description:",Ge),m({title:"Failed to save",description:"Please try again",variant:"destructive"})}finally{T4(!1)}},OPe=async()=>{if(P){q(!0);try{const{data:we,error:He}=await oe.functions.invoke("reset-image-queue",{body:{storyId:P}});if(He)throw He;m({title:"Queue Reset",description:(we==null?void 0:we.message)||"Stuck images reset and processor triggered"}),setTimeout(()=>{Ea(P,null)},2e3)}catch(we){console.error("Error resetting image queue:",we),m({title:"Error",description:"Failed to reset image queue",variant:"destructive"})}finally{q(!1)}}},Rle=async()=>{if(P){dg(!0);try{const{data:we,error:He}=await oe.functions.invoke("consume-story-credit",{body:{storyId:P}});if(He)throw He;if(we!=null&&we.success){yr(!0);const{error:Ge}=await oe.functions.invoke("generate-all-images",{body:{storyId:P}});if(Ge){console.error("Error starting full generation after unlock:",Ge),await Ea(P,null),Ct.success("Story unlocked! ð",{description:"Your credit was used, but the illustrations didn't start. Use Retry on the preview â you won't be charged again."});return}oe.functions.invoke("process-image-queue",{body:{}}).catch(()=>{}),await Ea(P,null),Ct.success("Story unlocked! ð",{description:"Your story credit has been used. Full illustrations are being generated."})}}catch(we){console.error("Error unlocking story:",we),Ct.error("Failed to unlock story",{description:we.message||"Please try again"})}finally{dg(!1)}}},RPe=async(we,He)=>{if(!(!(u!=null&&u.id)||!P)){L4(!0);try{const{error:Ge}=await oe.from("story_reviews").upsert({story_id:P,user_id:u.id,stars:we,comment:He.trim()||null,review_skipped:!1,is_public_review:!0});if(Ge)throw Ge;P4(!0),ox(!1),m({title:"Thank you for your review! ð",description:"Your feedback helps other parents discover great stories"})}catch(Ge){console.error("Error submitting public review:",Ge),m({title:"Failed to submit review",description:"Please try again",variant:"destructive"})}finally{L4(!1)}}},DPe=()=>{ox(!1)},FPe=async()=>
8107{if(P){Fh(!0);try{const{data:we}=await oe.from("stories").select("cover_image_url").eq("id",P).maybeSingle(),He=(we==null?void 0:we.cover_image_url)??null,{data:Ge,error:mt}=await oe.functions.invoke("generate-book-cover",{body:{storyId:P}});if(mt)throw mt;if(Ge!=null&&Ge.external){m({title:"Cover generation started",description:"Generating your cover â this can take a couple of minutes."});const bt=Date.now()+5*60*1e3,$t=setInterval(async()=>{const{data:kt}=await oe.from("stories").select("cover_image_url").eq("id",P).maybeSingle();kt!=null&&kt.cover_image_url&&kt.cover_image_url!==He?(clearInterval($t),Fh(!1),await Ea(P,null)):Date.now()>bt&&(clearInterval($t),Fh(!1))},5e3);return}m({title:"Cover generation started",description:"The cover image is being generated. This may take up to 60 seconds."}),setTimeout(()=>{Ea(P,null)},5e3),Fh(!1)}catch(we){console.error("Error generating cover:",we),m({title:"Error",description:"Failed to generate cover image",variant:"destructive"}),Fh(!1)}}},Dle=async()=>{if(!(!P||!(u!=null&&u.id)))try{const we=`${u.id}`,{data:He,error:Ge}=await oe.storage.from("story-pdfs").list(we);if(Ge)throw console.error("Error listing files:",Ge),Ge;const mt=(He==null?void 0:He.map($t=>`${we}/${$t.name}`))||[];if(console.log("Deleting files:",mt),mt.length>0){const{error:$t}=await oe.storage.from("story-pdfs").remove(mt);if($t)throw console.error("Error deleting storage files:",$t),$t;console.log(`Successfully deleted ${mt.length} files from storage`)}const{error:bt}=await oe.from("stories").update({pdf_url:null,cover_pdf_url:null,pdf_generation_status:"idle",pdf_generation_error:null}).eq("id",P);if(bt)throw bt;et(null),wr(null),window.location.reload(),m({title:"PDFs deleted",description:`All PDF files (${mt.length} files) and database records have been permanently deleted.`})}catch(we){console.error("Error deleting PDFs:",we),m({title:"Error",description:"Failed to delete PDFs",variant:"destructive"})}},Fle=(we,He)=>{try{const Ge=new URL(we);Ge.searchParams.set("download",He);const mt=document.createElement("a");mt.href=Ge.toString(),mt.rel="noopener",mt.download=He,document.body.appendChild(mt),mt.click(),document.body.removeChild(mt)}catch(Ge){throw console.error("[BookPreview] directDownload failed for",we,Ge),Ge}},$le=async(we,He)=>{const Ge=_||"story";m({title:"Downloading 2 files",description:"Your browser may ask permission to download multiple files â click Allow to get both the cover and the story PDF."});try{Fle(we,`${Ge}_cover.pdf`)}catch(mt){throw console.error("Error downloading cover PDF:",mt),m({title:"Cover download failed",description:"Couldn't start the cover PDF download. Please try again.",variant:"destructive"}),mt}await new Promise(mt=>setTimeout(mt,1200));try{Fle(He,`${Ge}_story.pdf`)}catch(mt){throw console.error("Error downloading story PDF:",mt),m({title:"Story download failed",description:"Couldn't start the story PDF download. If your browser blocked multiple downloads, allow it and click Download PDF again.",variant:"destructive"}),mt}m({title:"Downloads started",description:"Cover and story PDFs are downloading. If only the cover arrived, your browser blocked the second file â allow multiple downloads and click again."})},CK=async()=>{if(P){if(Er){m({title:"Story not ready",description:"Please wait for all illustrations to finish before downloading.",variant:"destructive"});return}console.log("[BookPreview] Download PDF clicked",{storyId:P,missingPages:B,hasPurchased:jt,intendedEntitlement:An,isUpscalingForPDF:tx,membershipActive:g==null?void 0:g.membership_active,isOwner:at,isAdmin:f}),ye(!0);try{const{data:we}=await oe.from("stories").select("pdf_url, cover_pdf_url, pdf_generation_status, pdf_generation_error, user_id").eq("id",P).single();if(we!=null&&we.pdf_url&&(we!=null&&we.cover_pdf_url)){if(!await C0e(P)){await $le(we.cover_pdf_url,we.pdf_url),ye(!1);return}console.log("[BookPreview] Cached PDF is older than latest illustrations â regenerating"),await N0e(P)}if((we==null?void 0:we.pdf_generation_status)==="failed"){const Be=we.pdf_generation_error||"Unknown error";m({title:"Previous generation failed",description:Be.includes("UseAnvil")?"PDF service temporarily unavailable. Retrying...":Be,variant:"destructive"})}m({title:"Generating High-Quality PDFs",description:"Upscaling images and creating PDFs. This may take up to 10 minutes..."});let He=null,Ge=null;try{const Be=await oe.functions.invoke("generate-book-pdf",{body:{storyId:P,userId:(we==null?void 0:we.user_id)||(u==null?void 0:u.id)}});He=Be.error,Ge=Be.data}catch(Be){He=Be}if(console.log("[BookPreview] generate-book-pdf invoke result",{invokeError:He,invokeData:Ge}),He){console.error("Error invoking PDF generation:",He),m({title:"Error",description:`Failed to start PDF generation: ${(He==null?void 0:He.message)||"unknown error"}. Please try again.`,variant:"destructive"}),ye(!1);return}const{data:mt}=await oe.from("image_upscaling_queue").select("status").eq("story_id",P);if(mt&&mt.length>0&&mt.some(Fn=>Fn.status==="pending"||Fn.status==="processing")){Oh(!0),O4(P),ye(!1);return}const bt=240;let $t=0;const kt=setInterval(async()=>{$t++;try{const{data:Be}=await oe.from("stories").select("pdf_url, cover_pdf_url, pdf_generation_status, pdf_generation_error").eq("id",P).single();if((Be==null?void 0:Be.pdf_generation_status)==="failed"){clearInterval(kt),ye(!1);const Fn=Be.pdf_generation_error||"Unknown error";m({title:"PDF Generation Failed",description:Fn.includes("UseAnvil")?"PDF service is temporarily unavailable. Please try again in a few minutes.":Fn,variant:"destructive"});return}Be!=null&&Be.pdf_url&&(Be!=null&&Be.cover_pdf_url)?(clearInterval(kt),await $le(Be.cover_pdf_url,Be.pdf_url),sessionStorage.setItem(`pdf_downloaded_${P}`,"true"),ye(!1)):$t>=bt&&(clearInterval(kt),ye(!1),m({title:"Timeout",description:"PDF generation is taking longer than expected. Please try again in a few minutes.",variant:"destructive"}))}catch(Be){console.error("Error polling for PDFs:",Be),clearInterval(kt),ye(!1),m({title:"Error",description:"Failed to check PDF status. Please try again.",variant:"destructive"})}},3e3)}catch(we){console.error("Error downloading PDFs:",we),m({title:"Error",description:"Failed to download PDFs",variant:"destructive"}),ye(!1)}}},Ble=async()=>
8107{if(!(!P||Er)){je(!0);try{const{data:we,error:He}=await oe.from("stories").select("story_title, book_description, story_content, page_illustrations, author_name, dedication_message").eq("id",P).single();if(He||!we)throw new Error("Failed to fetch story data");const Ge=await ibt({title:we.story_title||"Untitled Story",description:we.book_description||"",storyContent:we.story_content||{},pageIllustrations:Object.fromEntries(Object.entries(we.page_illustrations||{}).map(([$t,kt])=>[$t,{...kt,image_url:T0e(kt==null?void 0:kt.image_url,kt==null?void 0:kt.generated_at),upscaled_url:T0e(kt==null?void 0:kt.upscaled_url,kt==null?void 0:kt.generated_at)}])),authorName:we.author_name||void 0,dedicationMessage:we.dedication_message||void 0}),mt=URL.createObjectURL(Ge),bt=document.createElement("a");bt.href=mt,bt.download=`${sbt(we.story_title||"story")}.docx`,document.body.appendChild(bt),bt.click(),document.body.removeChild(bt),URL.revokeObjectURL(mt),m({title:"Download complete",description:"DOCX file downloaded successfully"})}catch(we){console.error("Error generating DOCX:",we),m({title:"Error",description:"Failed to generate DOCX file",variant:"destructive"})}finally{je(!1)}}},zle=async()=>{if(Er){m({title:"Story not ready",description:"Please wait for all illustrations to finish before printing.",variant:"destructive"});return}if(P){Fe(!0);try{const{data:we}=await oe.from("stories").select("pdf_url, pdf_generation_status, pdf_generation_error, user_id").eq("id",P).single();if(we!=null&&we.pdf_url){if(!await C0e(P)){const Be=window.open(we.pdf_url,"_blank");Be&&Be.addEventListener("load",()=>{setTimeout(()=>{Be.print()},500)}),Fe(!1);return}console.log("[BookPreview] Cached PDF is older than latest illustrations â regenerating before print"),await N0e(P)}if((we==null?void 0:we.pdf_generation_status)==="failed"){const kt=we.pdf_generation_error||"Unknown error";m({title:"Previous generation failed",description:kt.includes("UseAnvil")?"PDF service temporarily unavailable. Retrying...":kt,variant:"destructive"})}m({title:"Generating High-Quality PDF",description:"Upscaling images and creating PDF. This may take up to 10 minutes..."});const{error:He}=await oe.functions.invoke("generate-book-pdf",{body:{storyId:P,userId:(we==null?void 0:we.user_id)||(u==null?void 0:u.id)}});if(He){console.error("Error invoking PDF generation:",He),m({title:"Error",description:"Failed to start PDF generation. Please try again.",variant:"destructive"}),Fe(!1);return}const{data:Ge}=await oe.from("image_upscaling_queue").select("status").eq("story_id",P);if(Ge&&Ge.length>0&&Ge.some(Be=>Be.status==="pending"||Be.status==="processing")){Oh(!0),O4(P),Fe(!1);return}const mt=240;let bt=0;const $t=setInterval(async()=>{bt++;try{const{data:kt}=await oe.from("stories").select("pdf_url, pdf_generation_status, pdf_generation_error").eq("id",P).single();if((kt==null?void 0:kt.pdf_generation_status)==="failed"){clearInterval($t),Fe(!1);const Be=kt.pdf_generation_error||"Unknown error";m({title:"PDF Generation Failed",description:Be.includes("UseAnvil")?"PDF service is temporarily unavailable. Please try again in a few minutes.":Be,variant:"destructive"});return}if(kt!=null&&kt.pdf_url){clearInterval($t);const Be=window.open(kt.pdf_url,"_blank");Be&&Be.addEventListener("load",()=>{setTimeout(()=>{Be.print()},500)}),Fe(!1)}else bt>=mt&&(clearInterval($t),Fe(!1),m({title:"Timeout",description:"PDF generation is taking longer than expected. Please try again in a few minutes.",variant:"destructive"}))}catch(kt){console.error("Error polling for PDF:",kt),clearInterval($t),Fe(!1),m({title:"Error",description:"Failed to check PDF status. Please try again.",variant:"destructive"})}},3e3)}catch(we){console.error("Error printing PDF:",we),m({title:"Error",description:"Failed to prepare PDF for printing",variant:"destructive"}),Fe(!1)}}},O4=we=>{let Ge=0;const mt=setInterval(async()=>{Ge++;try{const{data:bt}=await oe.from("image_upscaling_queue").select("status").eq("story_id",we);if(!bt)return;const $t=bt.length,kt=bt.filter(pn=>pn.status==="completed").length,Be=bt.filter(pn=>pn.status==="failed").length,Fn=bt.filter(pn=>pn.status==="pending"||pn.status==="processing").length;ge({completed:kt,total:$t}),Be>0&&Fn===0?(clearInterval(mt),fe(!1),m({title:"Upscaling Completed with Errors",description:`${kt}/${$t} images upscaled successfully. ${Be} failed.`,variant:"destructive"})):kt===$t?(clearInterval(mt),fe(!1),tx?(m({title:"Images Ready",description:`All ${$t} images upscaled! Starting PDF generation...`}),Oh(!1),CK()):m({title:"Upscaling Complete",description:`All ${$t} images upscaled successfully!`})):Ge>=200&&(clearInterval(mt),fe(!1),m({title:"Timeout",description:"Upscaling is taking longer than expected. Please check admin page.",variant:"destructive"}))}catch(bt){console.error("Error polling upscaling progress:",bt)}},3e3)},Ule=async()=>
8107{if(!(!f||Er))try{fe(!0),m({title:"Starting Image Upscaling",description:"Processing images in queue. This may take 5-10 minutes..."});const{error:we}=await oe.functions.invoke("upscale-story-images",{body:{storyId:P}});if(we)throw new Error(we.message);Oh(!1),O4(P)}catch(we){console.error("Error starting upscaling:",we),m({title:"Error",description:"Failed to start upscaling. Please try again.",variant:"destructive"}),fe(!1)}},qle=async()=>{if(!(!f||!P)){q(!0);try{const{data:we,error:He}=await oe.functions.invoke("reset-upscaling-queue",{body:{storyId:P}});if(He)throw He;m({title:"Queue Reset",description:(we==null?void 0:we.message)||"Upscaling queue reset and ready to retry"}),setTimeout(()=>{Ea(P,null)},2e3)}catch(we){console.error("Error resetting upscaling queue:",we),m({title:"Error",description:"Failed to reset upscaling queue",variant:"destructive"})}finally{q(!1)}}},$Pe=async()=>{if(!(!f||!P))try{m({title:"Resuming Upscaling",description:"Triggering queue processor..."});const{error:we}=await oe.functions.invoke("process-upscaling-queue",{body:{}});if(we)throw we;m({title:"Queue Resumed",description:"Processing will continue in the background"})}catch(we){console.error("Error resuming upscaling:",we),m({title:"Error",description:"Failed to resume upscaling queue",variant:"destructive"})}},BPe=async()=>{if(!(!f||!P||Er)){_t(!0);try{m({title:"Generating PDFs",description:"This may take 1-2 minutes for large stories..."});const{error:we}=await oe.functions.invoke("generate-book-pdf",{body:{storyId:P}});if(we)throw we;let He=0;const Ge=36,mt=setInterval(async()=>{He++;const{data:bt}=await oe.from("stories").select("pdf_url, cover_pdf_url, pdf_generation_status, pdf_generation_error").eq("id",P).single();(bt==null?void 0:bt.pdf_generation_status)==="completed"&&bt.pdf_url?(clearInterval(mt),await Ea(P,null),m({title:"PDFs Generated",description:"Cover and story PDFs are ready for download"}),_t(!1)):(bt==null?void 0:bt.pdf_generation_status)==="failed"?(clearInterval(mt),m({title:"PDF Generation Failed",description:bt.pdf_generation_error||"Unknown error occurred",variant:"destructive"}),_t(!1)):He>=Ge&&(clearInterval(mt),m({title:"PDF Generation Taking Too Long",description:"Check back in a few minutes or try again",variant:"destructive"}),_t(!1))},5e3)}catch(we){console.error("Error generating PDFs:",we),m({title:"Error",description:"Failed to start PDF generation. Please try again.",variant:"destructive"}),_t(!1)}}};if(D&&!re&&!d&&!ex)return i.jsx("main",{"data-testid":"preview-load-error",className:"min-h-screen bg-background flex items-center justify-center p-4",children:i.jsxs("div",{className:"max-w-md w-full space-y-6 text-center",children:[i.jsxs("div",{className:"space-y-2",role:"alert",children:[i.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"We couldn't load this story"}),i.jsx("p",{className:"text-muted-foreground",children:"Try again. If it still won't open, it may no longer be available to you."})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx(le,{"data-testid":"preview-load-retry",size:"lg",className:"w-full",onClick:()=>{const we=t.pathname.startsWith("/shared/story/");Ea(we?null:n.get("id"),we&&r||null)},children:"Try again"}),i.jsx(le,{variant:"outline",size:"lg",className:"w-full",onClick:()=>e($e?"/":"/library"),children:$e?"Back to home":"Back to library"})]})]})});const Hle=zh,Vle=Hu||Bh&&!Ms;Hle&&(Dn||!Vle&&fn)&&(ja.current=P);const Wle=jbt({readerAlreadyRevealed:Ft,textViewable:Dn,creationInFlight:Vle,gateActive:Hle,bookViewable:fn,previewAlreadyShown:ja.current===P});if(Wle==="creation")return i.jsx(Fk,{currentStage:M4,progress:I4,flow:"book"});if(Wle==="readiness")return i.jsx(Fk,{currentStage:3,progress:97,flow:"book"});if(re||d||p)return i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin mx-auto text-primary"}),i.jsx("p",{className:"text-muted-foreground",children:"Preparing your book preview..."})]})});const zPe=we=>we?we.startsWith("http")?we:`https://kibbi.ai${we.startsWith("/")?we:"/"+we}`:"",UPe=_?`${_} - Read this kids story for free | Kibbi`:"Story Preview | Kibbi",R4=j?j.length>157?j.substring(0,157)+"...":j:`Read this personalized children's story for ages ${Y}. Create your own personalized storybook with Kibbi - AI-powered stories tailored to your child.`,Gle=$e&&ar?`https://kibbi.ai/shared/story/${ar}`:"https://kibbi.ai/app/book-preview",NK=C?zPe(C):"https://kibbi.ai/images/kibbi-devices.jpg",qPe={"@context":"https://schema.org","@type":"Book",name:_||"Personalized Children's Story",description:j||R4,image:NK,author:{"@type":"Organization",name:"Kibbi"},genre:As.length>0?As.map(we=>we.name).join(", "):"Children's Literature",bookFormat:"https://schema.org/EBook",inLanguage:ee||"en",audience:{"@type":"PeopleAudience",suggestedMinAge:(Y==null?void 0:Y.split("-")[0])||"2",suggestedMaxAge:(Y==null?void 0:Y.split("-")[1])||"12"},numberOfPages:M,publisher:{"@type":"Organization",name:"Kibbi",url:"https://kibbi.ai"}},HPe=(g==null?void 0:g.membership_active)===!0&&(g==null?void 0:g.included_story_available)===!0||((g==null?void 0:g.story_credits)??0)>0,eo=!f&&!jt&&An!=="membership_bonus",D4=z8e({hasPurchased:jt,isOwner:at,isAdmin:f}),F4=!jt&&at&&!f&&An!=="membership_included"&&An!=="membership_bonus"&&An!=="overage"&&HPe;return ex?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:i.jsxs("div",{className:"max-w-md w-full space-y-6 text-center",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Login Required"}),i.jsx("p",{className:"text-muted-foreground",children:"This story is private. Please log in to view it."})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx(le,{size:"lg",className:"w-full",onClick:()=>e(`/login?redirect=${encodeURIComponent(t.pathname+t.search)}`),children:"Log in to view story"}),i.jsx(le,{variant:"outline",size:"lg",className:"w-full",onClick:()=>e("/signup"),children:"Create an account"}),i.jsx(le,{variant:"ghost",size:"sm",className:"w-full",onClick:()=>e("/"),children:"Back to home"})]})]})}):i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:UPe}),i.jsx("meta",{name:"description",content:R4}),i.jsx("link",{rel:"canonical",href:Gle}),i.jsx("meta",{property:"og:type",content:"book"}),i.jsx("meta",{property:"og:title",content:_||"Personalized Children's Story"}),i.jsx("meta",{property:"og:description",content:R4}),i.jsx("meta",{property:"og:image",content:NK}
8107),i.jsx("meta",{property:"og:image:width",content:"1200"}),i.jsx("meta",{property:"og:image:height",content:"630"}),i.jsx("meta",{property:"og:image:alt",content:`Cover of ${_||"Personalized Children's Story"}`}),i.jsx("meta",{property:"og:url",content:Gle}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:_||"Personalized Children's Story"}),i.jsx("meta",{name:"twitter:description",content:R4}),i.jsx("meta",{name:"twitter:image",content:NK}),i.jsx("meta",{name:"twitter:image:alt",content:`Cover of ${_||"Personalized Children's Story"}`}),Y&&i.jsx("meta",{property:"book:tag",content:`Ages ${Y}`}),As.map(we=>i.jsx("meta",{property:"book:tag",content:we.name},we.slug)),i.jsx("meta",{name:"robots",content:$e?"index, follow":"noindex, nofollow"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(qPe)})]}),i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[$e||!at?i.jsx(lr,{}):i.jsx(Ba,{}),$e&&i.jsx("div",{className:"bg-gradient-to-r from-primary/10 to-primary/5 border-b border-primary/20 px-4 md:px-6 py-4",children:i.jsxs("div",{className:"max-w-5xl mx-auto flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 sm:gap-4",children:[i.jsx("p",{className:"text-sm text-foreground",children:"Love this story? Create your own personalized book!"}),i.jsx(le,{asChild:!0,size:"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground whitespace-nowrap",children:u?i.jsxs("a",{href:"/create",children:["Create New Story",i.jsx(oc,{className:"ml-2 h-4 w-4"})]}):i.jsxs("a",{href:"/signup",children:["Try it for free",i.jsx(oc,{className:"ml-2 h-4 w-4"})]})})]})}),i.jsx("main",{className:"flex-1 flex items-center justify-center py-8 md:py-16",children:i.jsxs("div",{className:"max-w-5xl w-full px-4 md:px-6",children:[at&&!f&&!jt&&(H||An!=="membership_included"&&An!=="membership_bonus"&&!F4)&&i.jsx("div",{className:"mb-6 md:hidden",children:i.jsx(rre,{storyTitle:_,variant:"preview",onPurchaseClick:()=>{H&&(h!=null&&h.hasActiveBookClub)?e(`/order-print/${P}?mode=book-club`):Rn(!0)},isSubscriber:(g==null?void 0:g.membership_active)===!0,entitlementType:H||v==="overage"&&!(h!=null&&h.hasActiveBookClub)&&!(g!=null&&g.membership_active)?"none":v})}),i.jsxs("div",{className:"grid md:grid-cols-[42%_58%] gap-16 md:gap-12 lg:gap-16 items-start",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsx("div",{"data-testid":"preview-cover",className:`${C?"":"bg-muted rounded-xl overflow-hidden"} flex items-center justify-center relative`,children:C?i.jsxs(i.Fragment,{children:[i.jsx(w0t,{src:C,alt:`${_} - Personalized children's story book cover for ages ${Y}`}),rt==="generating"&&i.jsxs("div",{role:"status",className:"absolute bottom-3 right-3 flex items-center gap-2 rounded-full bg-background/90 px-3 py-1 text-xs shadow-sm",children:[i.jsx(Me,{"aria-hidden":"true",className:"h-3 w-3 animate-spin"})," Regenerating cover..."]})]}):Oi||rt==="generating"?i.jsx(y8e,{label:Oi?Wt:"Painting your illustrationsâ¦",progress:Oi?Po:void 0,className:"aspect-[3/4]",testId:"cover-illustration-progress"}):i.jsxs("div",{className:"text-center space-y-2 p-8",children:[i.jsx("p",{className:"text-muted-foreground text-sm",children:"Cover Preview"}),i.jsx("p",{className:"font-semibold text-foreground",children:_})]})}),(at||f)&&C&&T&&i.jsx(le,{variant:"outline",size:"default",className:"w-full",onClick:()=>{S4("cover"),qr(C),Tc(T),_n(void 0),Tn(!0)},children:(()=>{if(f)return"Edit Cover";const we=loe(wK),He=ooe({has_purchased:jt});return we<He?"Edit Cover":"Edit Cover - $0.50"})()}),(at||f)&&i.jsxs(le,{variant:"outline",size:"default",className:"w-full hidden md:flex",onClick:()=>$r(!0),disabled:eo,title:eo?"Purchase the full story to share":"",children:[i.jsx(Ey,{className:"mr-2 h-4 w-4"}),"Share"]}),f&&C&&i.jsxs(Xr,{open:K,onOpenChange:ue,children:[i.jsx(lse,{asChild:!0,children:i.jsx(le,{variant:"outline",size:"default",className:"w-full",children:"Show cover prompt"})}),i.jsxs(Ur,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsx(Tr,{children:"Cover Illustration Prompt"}),i.jsx(ra,{children:"The exact prompt used to generate the book cover"})]}),i.jsx("div",{className:"mt-4 p-4 bg-muted rounded-lg",children:T?i.jsx("p",{className:"text-sm text-foreground whitespace-pre-wrap font-mono",children:T}):i.jsx("p",{className:"text-sm text-muted-foreground italic",children:"Prompt not stored for this cover. New books will include the full prompt."})})]})]}),i.jsxs("div",{className:"space-y-3 md:hidden",children:[F4&&i.jsx(le,{size:"lg",onClick:Rle,className:"w-full bg-green-600 hover:bg-green-700 text-white",disabled:Js,children:Js?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Unlocking..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Qt,{className:"mr-2 h-4 w-4"}),"Unlock with my credit"]})}),f&&!jt&&i.jsx(le,{size:"lg",onClick:Ple,variant:"outline",className:"w-full border-primary text-primary hover:bg-primary hover:text-primary-foreground",children:"Mark as Purchased (Admin)"}),f&&jt&&i.jsx(le,{size:"lg",onClick:Ule,variant:"outline",className:"w-full border-primary text-primary hover:bg-primary hover:text-primary-foreground",disabled:J||Er,children:J?`Upscaling ${ve.completed}/${ve.total}...`:"Upscale for Print (Admin)"}),f&&jt&&i.jsx(le,{size:"lg",onClick:qle,variant:"outline",className:"w-full",disabled:L,children:L?"Resetting...":"Reset Upscaling Queue"}),f&&i.jsx(le,{size:"lg",onClick:Dle,variant:"destructive",className:"w-full",disabled:!lt&&!It,children:"Delete PDFs (Admin)"}),f&&i.jsxs(le,{size:"lg",onClick:Ble,variant:"outline",className:"w-full",disabled:xe||Er,children:[i.jsx(Ti,{className:"mr-2 h-4 w-4"}),xe?"Generating DOCX...":"Download DOCX (Admin)"]}),i.jsx(le,{size:"lg",onClick:Ile,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",children:(at||f)&&!jt&&An!=="membership_included"&&An!=="membership_bonus"&&v!=="membership_included"&&v!=="membership_bonus"?"Read Free Sample":"Read story"})]})]}),i.jsxs("div",{className:"space-y-6",children:[F4&&i.jsx("div",{className:"hidden md:block",children:i.jsxs(Ie,{className:"p-6 bg-gradient-to-br from-green-50 to-emerald-50 dark:from-green-950/20 dark:to-emerald-950/20 border-green-300 dark:border-green-800",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsx(Qt,{className:"h-5 w-5 text-green-600 dark:text-green-400"}),i.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"You have a story credit available!"})]}),i.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Use your monthly story credit to unlock this story and see all illustrations."}),i.jsx(le,{className:"w-full",onClick:Rle,disabled:Js,children:Js?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Unlocking..."]}
8107):"Unlock with my credit"})]})}),at&&!f&&!jt&&(H||An!=="membership_included"&&An!=="membership_bonus"&&!F4)&&i.jsx("div",{className:"hidden md:block",children:i.jsx(rre,{storyTitle:_,variant:"preview",onPurchaseClick:()=>{H&&(h!=null&&h.hasActiveBookClub)?e(`/order-print/${P}?mode=book-club`):Rn(!0)},isSubscriber:(g==null?void 0:g.membership_active)===!0,entitlementType:H||An==="overage"&&!(h!=null&&h.hasActiveBookClub)&&!(g!=null&&g.membership_active)?"none":An||"none"})}),(at||f)&&G>0&&i.jsx("div",{className:"mb-4",children:i.jsx(zwt,{failedCount:G,onEditStory:()=>e(`/app/paste-story?id=${P}`)})}),D4&&i.jsx("div",{className:"hidden md:block",children:i.jsx(B8e,{storyId:P,storyTitle:_,missingPages:Er?Math.max(B,1):0,onPrintOrderClick:we=>{D4&&(Er?m({title:"Story not ready",description:"Please wait for all illustrations to be generated before ordering a print book.",variant:"destructive"}):e(`/order-print/${P}?format=${we}`))}})}),i.jsx("div",{children:j4?i.jsxs("div",{className:"space-y-2 mb-2",children:[i.jsx(Pt,{value:rx,onChange:we=>E4(we.target.value),maxLength:100,className:"text-2xl sm:text-3xl font-bold",autoFocus:!0,onKeyDown:we=>{we.key==="Enter"&&Ole(),we.key==="Escape"&&Rh(!1)}}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("span",{className:"text-sm text-muted-foreground",children:[rx.length,"/100"]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(le,{onClick:Ole,disabled:cg||Sa,size:"sm",children:cg?"Saving...":"Save"}),i.jsx(le,{onClick:()=>Rh(!1),variant:"ghost",size:"sm",disabled:cg,children:"Cancel"})]})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex items-center gap-2 group mb-2",children:[i.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-foreground break-words",children:_}),(at||f)&&i.jsx(le,{variant:"ghost",size:"sm",onClick:()=>{E4(_),Rh(!0)},disabled:Sa,className:"transition-opacity shrink-0","aria-label":"Edit title",children:i.jsx(cc,{className:"h-4 w-4"})})]}),Wu!==null&&Mc>0&&i.jsxs("button",{onClick:()=>Mle(!0),className:"flex items-center gap-1.5 text-sm hover:opacity-80 transition-opacity mb-2","aria-label":`${Wu} out of 5 stars, ${Mc} reviews. Click to see all reviews`,children:[i.jsx("div",{className:"flex",children:[1,2,3,4,5].map(we=>i.jsx("span",{className:`text-lg ${we<=Math.round(Wu)?"text-yellow-400":"text-gray-300"}`,children:"â
"},we))}),$e&&i.jsxs("span",{className:"text-muted-foreground",children:["(",Mc," ",Mc===1?"review":"reviews",")"]})]}),(()=>{var bt;const we=new Set(["english","spanish","swedish","french","german","greek","italian","portuguese","dutch","finnish","norwegian","polish","russian","turkish","korean","japanese","chinese-simplified","chinese-traditional","danish","arabic","hindi","indonesian","thai","vietnamese"]),He=As.find($t=>we.has($t.slug)),Ge=As.filter($t=>!/^\d+-\d+$/.test($t.slug)&&!we.has($t.slug));return Y||V||He||Ge.length>0?i.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-2",children:[Y&&i.jsxs(Re,{variant:"secondary",className:"font-normal",children:["Ages ",Y]}),V&&i.jsx(Re,{variant:"secondary",className:"font-normal",children:((bt=C0.find($t=>$t.key===V))==null?void 0:bt.name)||V}),He&&i.jsx(Re,{variant:"secondary",className:"font-normal",children:He.name}),Ge.map($t=>i.jsx(Re,{variant:"secondary",className:"font-normal",children:$t.name},$t.slug))]}):null})()]})}),i.jsxs("div",{className:"prose prose-sm max-w-none",children:[(at||f)&&i.jsxs("div",{className:"not-prose mb-2",children:[i.jsx("h2",{className:"text-sm font-semibold text-foreground",children:"Back cover description"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Printed on the back of your book. Editing it doesn't change the story."})]}),_K?i.jsxs("div",{className:"space-y-2",children:[i.jsx(Dr,{value:lg,onChange:we=>C4(we.target.value),maxLength:6e3,rows:6,className:"resize-none",autoFocus:!0,onKeyDown:we=>{we.key==="Escape"&&Dh(!1)}}),(()=>{const we=Bwt(lg,ee);return we?i.jsx("p",{className:"text-xs text-amber-700 dark:text-amber-400",children:we}):null})(),i.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[i.jsxs("span",{className:"text-sm text-muted-foreground",children:[lg.length,"/6000"]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(le,{onClick:LPe,disabled:nx,size:"sm",children:nx?"Saving...":"Save"}),i.jsx(le,{onClick:()=>Dh(!1),variant:"ghost",size:"sm",disabled:nx,children:"Cancel"})]})]})]}):i.jsxs("div",{className:"group relative",children:[(at||f)&&i.jsx(le,{variant:"ghost",size:"sm",onClick:()=>{C4(j),Dh(!0)},className:"absolute -top-2 right-0 transition-opacity","aria-label":"Edit back cover description",children:i.jsx(cc,{className:"h-4 w-4"})}),i.jsx("div",{className:"text-foreground whitespace-pre-wrap leading-relaxed text-sm sm:text-base break-words",children:ut?j:`${j.slice(0,400)}${j.length>400?"...":""}`}),j.length>400&&i.jsx("button",{onClick:()=>Ot(!ut),className:"text-foreground underline hover:text-foreground
8107/80 text-sm mt-2 font-medium",children:ut?"Read less":"Read more"})]})]}),i.jsxs("div",{className:"space-y-3 md:hidden pt-4",children:[(at||f)&&i.jsxs(le,{variant:"outline",size:"lg",className:"w-full",onClick:()=>$r(!0),disabled:eo,title:eo?"Purchase the full story to share":"",children:[i.jsx(Ey,{className:"mr-2 h-4 w-4"}),"Share"]}),D4&&i.jsxs(le,{size:"lg",onClick:()=>{D4&&(Er?m({title:"Story not ready",description:"Please wait for all illustrations to be generated before ordering a print book.",variant:"destructive"}):e(`/order-print/${P}`))},disabled:Er,variant:"outline",className:"w-full",children:[i.jsx(xr,{className:"mr-2 h-4 w-4"}),"Order Print Book"]}),(f||y||at&&rr==="kibbi")&&i.jsxs(le,{size:"lg",onClick:()=>{if(at||f)CK();else if(lt)try{const we=document.createElement("a");we.href=lt,we.target="_blank",we.rel="noopener noreferrer",document.body.appendChild(we),we.click(),document.body.removeChild(we)}catch(we){console.error("Download failed:",we),m({title:"Download failed",description:"Please try again or right-click the button to save the link.",variant:"destructive"})}},disabled:(at||f)&&(Er||de||eo),variant:"outline",className:"w-full",title:(at||f)&&eo?"Purchase the full story to download PDF":"",children:[i.jsx(vy,{className:"mr-2 h-4 w-4"}),(at||f)&&de?"Generating...":"Download PDF"]}),f&&i.jsxs(le,{size:"lg",onClick:()=>{if(at||f)zle();else if(lt)try{h0e(lt,"pdf")}catch(we){console.error("Print failed:",we),window.open(lt,"_blank"),m({title:"Opening PDF",description:"Use your browser's print function (Ctrl+P / Cmd+P) to print."})}},disabled:(at||f)&&(Er||_e||eo),variant:"outline",className:"w-full",title:(at||f)&&eo?"Purchase the full story to print PDF":"",children:[i.jsx(Wd,{className:"mr-2 h-4 w-4"}),(at||f)&&_e?"Generating...":"Print PDF"]})]}),i.jsxs("div",{className:"pt-4 grid grid-cols-1 md:grid-cols-2 gap-3",children:[f&&!C&&i.jsx(le,{size:"lg",onClick:FPe,variant:"outline",className:"w-full hidden md:flex md:col-span-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground",disabled:ug,children:ug?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Generating Cover..."]}):"Generate Cover (Admin)"}),f&&!jt&&i.jsx(le,{size:"lg",onClick:Ple,variant:"outline",className:"w-full hidden md:flex md:col-span-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground",children:"Mark as Purchased (Admin)"}),f&&jt&&i.jsx(le,{size:"lg",onClick:Ule,variant:"outline",className:"w-full hidden md:flex md:col-span-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground",disabled:J||Er,children:J?`Upscaling ${ve.completed}/${ve.total}...`:"Upscale for Print (Admin)"}),f&&jt&&J&&i.jsx(le,{size:"lg",onClick:$Pe,variant:"outline",className:"w-full hidden md:flex md:col-span-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground",children:"Resume Upscaling Queue"}),f&&jt&&i.jsx(le,{size:"lg",onClick:BPe,disabled:ht||Er,className:"w-full hidden md:flex md:col-span-2 bg-gradient-to-r from-primary to-primary/80",children:ht?"Generating PDFs...":"Generate PDFs (Admin)"}),f&&jt&&i.jsx(le,{size:"lg",onClick:qle,variant:"outline",className:"w-full hidden md:flex md:col-span-2",disabled:L,children:L?"Resetting...":"Reset Upscaling Queue"}),f&&i.jsx(le,{size:"lg",onClick:Dle,variant:"destructive",className:"w-full hidden md:flex md:col-span-2",disabled:!lt&&!It,children:"Delete PDFs (Admin)"}),f&&i.jsxs(le,{size:"lg",onClick:Ble,variant:"outline",className:"w-full hidden md:flex md:col-span-2",disabled:xe||Er,children:[i.jsx(Ti,{className:"mr-2 h-4 w-4"}),xe?"Generating DOCX...":"Download DOCX (Admin)"]}),f&&jt&&B>0&&i.jsx(le,{size:"lg",onClick:OPe,variant:"outline",className:"w-full hidden md:flex md:col-span-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground",disabled:L,children:L?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Resetting..."]}):"Reset Stuck Images (Admin)"}),i.jsx(le,{size:"lg",onClick:Ile,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground hidden md:flex",children:(at||f)&&!jt&&An!=="membership_included"&&An!=="membership_bonus"&&v!=="membership_included"&&v!=="membership_bonus"?"Read Free Sample":"Read story"}),(f||y||at&&rr==="kibbi")&&i.jsxs(le,{size:"lg",onClick:()=>
8107{if(at||f)CK();else if(lt)try{const we=document.createElement("a");we.href=lt,we.target="_blank",we.rel="noopener noreferrer",document.body.appendChild(we),we.click(),document.body.removeChild(we)}catch(we){console.error("Download failed:",we),m({title:"Download failed",description:"Please try again or right-click the button to save the link.",variant:"destructive"})}},disabled:(at||f)&&(Er||de||eo),variant:"outline",className:"w-full hidden md:flex",title:(at||f)&&eo?"Purchase the full story to download PDF":"",children:[i.jsx(vy,{className:"mr-2 h-4 w-4"}),(at||f)&&de?"Generating...":"Download PDF"]}),f&&i.jsxs(le,{size:"lg",onClick:()=>{if(at||f)zle();else if(lt)try{h0e(lt,"pdf")}catch(we){console.error("Print failed:",we),window.open(lt,"_blank"),m({title:"Opening PDF",description:"Use your browser's print function (Ctrl+P / Cmd+P) to print."})}},disabled:(at||f)&&(Er||_e||eo),variant:"outline",className:"w-full hidden md:flex",title:(at||f)&&eo?"Purchase the full story to print PDF":"",children:[i.jsx(Wd,{className:"mr-2 h-4 w-4"}),(at||f)&&_e?"Generating...":"Print PDF"]})]})]})]})]})}),(at||f)&&i.jsx(Pbt,{isOpen:Kt,onClose:()=>$r(!1),storyId:P,shareToken:ar,isPublic:Pi,onShareToggled:(we,He,Ge)=>{Nc(we),_a(He)}}),(at||f)&&i.jsx(cwt,{open:Ao,storyId:P,onClose:async()=>{hn(!1),await b(),Ea(P,null)},onSuccess:async()=>{await b(),await Ea(P,null)}}),(at||f)&&i.jsx(O8e,{isOpen:Li,onClose:()=>Rn(!1),storyId:P,storyTitle:_,onSuccess:async()=>{Rn(!1),await b(),await Ea(P,null)}}),i.jsx(Jl,{open:ct,onOpenChange:sg,children:i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Your cover still shows the old title"}),i.jsxs(hl,{children:["The title is part of the cover picture, so it doesn't change on its own.",Qv?i.jsxs(i.Fragment,{children:[" Your cover still reads â",Qv,"â."]}):null," ","Fixing it draws a brand new cover from the same description, so the picture will be similar but not identical to the one you have now."]})]}),i.jsxs(ul,{children:[i.jsx(pl,{onClick:()=>{m({title:"Title updated",description:"Your book title has been saved. The cover picture still shows the old title."})},children:"Leave cover as is"}),i.jsx(fl,{onClick:()=>{S4("cover"),_n(void 0),qr(C),Tc(T),Lh(Nwt(_)),Tn(!0)},children:"Draw a new cover"})]})]})}),(at||f)&&i.jsx(W8e,{isOpen:ig,onClose:()=>{Tn(!1),Lh("")},storyId:P,imageType:Ih,pageNumber:Mo,currentImageUrl:Io,currentPrompt:Ph,initialEditRequest:Zv,onEditStarted:we=>{Q.active&&Ih==="cover"&&(tt(we),nt("generating"))},onEditComplete:()=>{Tn(!1),Ih!=="cover"&&Ea(P,null)}}),$e&&u&&!at&&i.jsx(Xr,{open:SK,onOpenChange:ox,children:i.jsx(Ur,{className:"max-w-md",children:i.jsx(X8e,{storyTitle:_,onSubmit:RPe,onSkip:DPe,isSubmitting:jK,inModal:!0})})}),i.jsx(Xr,{open:MPe,onOpenChange:Mle,children:i.jsxs(Ur,{className:"max-w-lg max-h-[80vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsxs(Tr,{children:['Reviews for "',_,'"']}),i.jsx(ra,{children:Wu!==null&&i.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[i.jsx("div",{className:"flex",children:[1,2,3,4,5].map(we=>i.jsx("span",{className:`text-xl ${we<=Math.round(Wu)?"text-yellow-400":"text-gray-300"}`,children:"â
"},we))}),i.jsx("span",{className:"font-medium",children:Wu.toFixed(1)}),i.jsxs("span",{className:"text-muted-foreground",children:["(",Mc," ",Mc===1?"review":"reviews",")"]})]})})]}),i.jsx("div",{className:"space-y-4 mt-4",children:Tle.length===0?i.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No reviews yet"}):Tle.map(we=>i.jsxs("div",{className:"border-b pb-4 last:border-b-0",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("div",{className:"flex items-center gap-2",children:[1,2,3,4,5].map(He=>i.jsx("span",{className:`text-sm ${He<=(we.stars||0)?"text-yellow-400":"text-gray-300"}`,children:"â
"},He))}),i.jsx("span",{className:"text-xs text-muted-foreground",children:we.anonymized_email})]}),i.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(we.created_at).toLocaleDateString()}),we.comment&&i.jsx("p",{className:"text-sm text-foreground mt-2",children:we.comment})]},we.id))})]})})]})]})},LH={copyright:"Copyright",dedication:"Dedication","back-cover":"Back cover"};function qwt(e){const t=s=>({kind:s,key:s}),r=[t("copyright"),t("dedication")],n=!e.fullAccess&&!e.publicViewer,a=e.storyPages.filter(s=>!n||s<=hG);return r.push(...a.map(s=>({kind:"story",key:`story:${s}`,page:s}))),n?[...r,t("purchase")]:(r.push(t("back-cover")),e.imagesReady&&(e.loggedIn&&!e.reviewed&&r.push(t("review")),e.canPrint&&r.push(t("print"))),r)}function Hwt(e,t){const r=e.find(n=>n.key===t);return r||(t==="purchase"?e.find(n=>n.kind==="story"&&n.page>hG)??e.find(n=>n.key==="back-cover")??e[0]:t==="review"?e.find(n=>n.key==="print")??e.find(n=>n.key==="back-cover")??e[0]:t==="print"?e.find(n=>n.key==="back-cover")??e[0]:e.find(n=>n.key==="purchase")??e[0])}const Vwt="All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law.",Wwt="This story was created just for you",M0e="Every page, every word, and every illustration in this book was thoughtfully crafted to create a unique adventure. We hope this story brings joy, sparks imagination, and creates lasting memories.",Gwt="A personalized story created just for you.",Kwt=["Created with Kibbi","www.kibbi.ai"];function Ywt({kind:e,story:t,details:r,failed:n,onRetry:a,dedicationEditor:s}){var u,d;const o=(u=t.author_name)!=null&&u.trim()?t.author_name:r==null?void 0:r.author_name;if(!r)return i.jsx("section",{"aria-label":LH[e],className:"flex flex-1 flex-col items-center justify-center gap-4 py-24 text-center",children:n?i.jsxs(i.Fragment,{children:[i.jsx("p",{children:"We couldnât load this bookâs details."}),i.jsx(le,{variant:"outline",onClick:a,children:"Try again"})]}):i.jsxs("p",{role:"status",className:"flex items-center gap-2",children:[i.jsx(Me,{className:"h-4 w-4 animate-spin"}),"Loading book detailsâ¦"]})});const l=(d=t.dedication_message)!=null&&d.trim()?t.dedication_message:null,c=s!=null&&s.isEditing?d0(s.draft,t.language):null;return i.jsx("section",{"aria-label":LH[e],className:"flex flex-1 items-center justify-center py-8",children:i.jsxs("div",{className:"flex w-full max-w-2xl flex-col justify-center py-8 font-lexend text-foreground",children:[e==="copyright"&&i.jsxs("div",{className:"space-y-8 text-base font-light leading-relaxed sm:text-xl",children:[i.jsxs("p",{className:"whitespace-pre-wrap break-words",children:["Copyright © ",new Date().getFullYear()," ",o||"Unknown Author"]}),i.jsx("p",{children:Vwt})]}),e==="dedication"&&(s!=null&&s.isEditing?i.jsxs("div",{className:"w-full space-y-3",children:[i.jsx(Dr,{value:s.draft,onChange:h=>s.onChange(h.target.value),maxLength:1e3,rows:8,placeholder:M0e,"data-testid":"dedication-textarea",className:"resize-none text-center font-lexend text-lg leading-relaxed",autoFocus:!0,onKeyDown:h=>{h.key==="Escape"&&s.onCancel()}}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Leave this empty to keep the standard message."}),c&&i.jsx("p",{role:"alert","data-testid":"dedication-problem",className:"text-sm text-destructive",children:c}),i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx(le,{onClick:s.onSave,disabled:s.isSaving||!!c,"data-testid":"dedication-save",size:"sm",children:s.isSaving?"Saving...":"Save"}),i.jsx(le,{onClick:s.onCancel,variant:"ghost",size:"sm",disabled:s.isSaving,children:"Cancel"})]})]}):i.jsxs("div",{className:"space-y-8 text-center",children:[!l&&i.jsx("h2",{className:"text-2xl font-medium leading-snug",children:Wwt}),i.jsx("p",{className:"whitespace-pre-wrap break-words text-xl font-light leading-relaxed sm:text-2xl",children:l||M0e}),(s==null?void 0:s.canEdit)&&i.jsxs(le,{variant:"ghost",size:"sm",onClick:s.onStart,"data-testid":"dedication-edit",className:"mx-auto flex",children:[i.jsx(ii,{className:"h-4 w-4 mr-2"}),"Edit dedication"]})]})),e==="back-cover"&&i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"my-auto whitespace-pre-wrap break-words text-lg font-light leading-relaxed sm:text-xl",children:t.book_description||Gwt}),!r.omit_attribution&&i.jsx("div",{className:"mt-14 space-y-1 text-center text-sm font-light sm:text-base",children:Kwt.map(h=>i.jsx("p",{children:h},h))})]})]})})}const nre="kibbi.app-update.reader-position",Xwt=5*6e4,Z8e=()=>window.location.pathname+window.location.search;function Zwt(e,t,r=Z8e()){try{return sessionStorage.setItem(nre,JSON.stringify({storyId:e,key:t,url:r,at:Date.now()})),!0}catch{return!1}}function Qwt(e,t=Z8e()){try{const r=sessionStorage.getItem(nre);sessionStorage.removeItem(nre);const n=r?JSON.parse(r):null,a=n?Date.now()-n.at:-1;return(n==null?void 0:n.storyId)===e&&(n==null?void 0:n.url)===t&&a>=0&&a<Xwt&&typeof n.key=="string"&&/^(copyright|dedication|back-cover|story:[1-9]\d*)$/.test(n.key)?n.key:null}catch{return null}}
8107function Jwt(e,t,r){return ei({queryKey:["story-book-details",e,t??null,r??null],enabled:!!e,queryFn:async()=>{if(!e)throw new Error("A story is required");const{data:n,error:a}=await oe.rpc("get_story_book_details",{p_story_id:e});if(a)throw a;if(!(n!=null&&n[0]))throw new Error("Book details are unavailable");return n[0]},staleTime:3e4,retry:1})}const ekt={style:"The illustration style stays the same throughout the book. Please request changes to the imageâs content without changing its style.",ambiguous:"We could not tell which character or object you wanted to change. Please name it or describe where it is in the image."};function tkt(e){const t=[...Object.values(ekt),"A required character reference is unavailable. Your previous image is still available.","Current page snapshot is unavailable. Your previous image is still available.","We could not check this edit. Your previous image is still available.","We could not apply every requested change. Your previous image is still available.","The image edit could not be completed within two attempts. Your previous image is still available.","The image provider declined this edit."];return typeof e=="string"&&t.includes(e)?e:"Your previous illustration is still available."}const rkt=e=>i.jsx(nkt,{...e},e.src),nkt=({src:e,alt:t,preloadSrc:r})=>{const[n,a]=k.useState("loading"),[s,o]=k.useState(0),l=n==="loaded",c=k.useRef(null);return k.useEffect(()=>{const u=c.current;u!=null&&u.complete&&a(u.naturalWidth>0?"loaded":"error")},[s]),k.useEffect(()=>{if(!l||!r||r===e)return;const u=new Image;return u.fetchPriority="low",u.decoding="async",u.src=r,()=>u.removeAttribute("src")},[l,r,e]),i.jsxs("div",{className:"relative w-full",children:[n==="loading"&&i.jsxs("div",{role:"status",className:"min-h-[400px] w-full flex flex-col items-center justify-center gap-3 text-muted-foreground",children:[i.jsx(Me,{className:"h-6 w-6 animate-spin","aria-hidden":"true"}),i.jsx("p",{className:"text-sm",children:"Loading illustration..."})]}),n==="error"&&i.jsxs("div",{className:"min-h-[400px] w-full flex flex-col items-center justify-center gap-3 text-muted-foreground",children:[i.jsx(ew,{className:"h-8 w-8","aria-hidden":"true"}),i.jsx("p",{role:"alert",className:"text-sm",children:"We couldn't load this illustration."}),i.jsx(le,{variant:"outline",onClick:()=>{a("loading"),o(u=>u+1)},children:"Try again"})]}),i.jsx("img",{ref:c,src:e,alt:t,hidden:!l,onLoad:()=>a("loaded"),onError:()=>a("error"),className:"w-full h-auto rounded-lg"},s)]})},Q8e=5*60*1e3,akt=4,ikt=["membership_included","membership_bonus","use_credit"];function are(e){return e.intended_entitlement==="book_club_teaser"?0:e.has_purchased||ikt.includes(e.intended_entitlement??"")?1/0:akt}function skt(e){return e==="pending"||e==="failed"}function okt(e,t,r=Q8e){if(e.illustrationStatus==="failed")return!0;const n=e.illustrationGeneratedAt?new Date(e.illustrationGeneratedAt).getTime():0;return n===0||t-n>r}function lkt(e,t){const{now:r,illustrationLimit:n,stalePendingMs:a=Q8e}=t;return e.filter(s=>skt(s.illustrationStatus)&&!s.illustrationUrl&&s.page<=n&&okt(s,r,a))}const ckt=e=>{const t=El();return{...ei({queryKey:["story",e],queryFn:async()=>{if(!e)return null;const{data:a,error:s}=await oe.from("stories").select("*").eq("id",e).maybeSingle();if(s)throw s;return a},enabled:!!e,staleTime:30*1e3,gcTime:5*60*1e3}),invalidate:()=>{t.invalidateQueries({queryKey:["story",e]})}}},ukt=30*60*1e3,dkt=(e,t)=>
8107{const r=e.split(/\n\n+/),n=t==="6-9"?"block h-6":"block h-4";return r.map((a,s)=>i.jsxs("span",{children:[a,s<r.length-1&&i.jsx("span",{className:n})]},s))},hkt=()=>{var Hu,M4,I4;const e=wt(),[t]=ka(),{storyId:r,isGenerating:n,activeJobId:a}=Zs(),{toast:s}=Xt(),{isAdmin:o,loading:l}=Fr(),{user:c,subscriptionStatus:u,authVerified:d}=er(),{entitlementType:h,profile:f,loading:p,refresh:y}=ch(),m=El(),v=t.get("id"),b=t.get("token"),[x,_]=k.useState(()=>v?(localStorage.setItem("lastViewedStoryId",v),v):r?(localStorage.setItem("lastViewedStoryId",r),r):localStorage.getItem("lastViewedStoryId")),{data:w,isLoading:j,error:E,invalidate:C}=ckt(x),[N]=k.useState(()=>Qwt(x)),A=k.useRef(!!N),[$,T]=k.useState({storyId:x,key:N??"copyright"}),F=Jwt((w==null?void 0:w.id)===x?x:null,c==null?void 0:c.id,w==null?void 0:w.author_name),[M,z]=k.useState([]),Y=k.useRef([]);k.useEffect(()=>{Y.current=M},[M]);const W=k.useRef(null),[ee,Z]=k.useState(null),[V,ne]=k.useState(0),[P,R]=k.useState(!1),[H,re]=k.useState(""),[ae,D]=k.useState(!1),[U,se]=k.useState(null),[te,Q]=k.useState(null),[K,ue]=k.useState(""),B=hG,[pe,G]=k.useState(!1),[I,L]=k.useState(!1),[q,X]=k.useState(!1),[ie,J]=k.useState(!1),[fe,ve]=k.useState(0),[ge,de]=k.useState(null),[ye,_e]=k.useState(!1),[Fe,ht]=k.useState(void 0),[_t,xe]=k.useState(""),[je,ut]=k.useState(""),[Ot,lt]=k.useState({}),et=`${x??""}:${(c==null?void 0:c.id)??""}`,It=k.useRef(et);It.current=et;const[wr,rr]=k.useState({scope:"",jobs:{}});k.useEffect(()=>{if(!x||!(c!=null&&c.id)||wr.scope!==et||!Object.keys(wr.jobs).length)return;let it=!1,Ft=!1;const Dt=async()=>{if(!Ft){Ft=!0;try{await Promise.all(Object.entries(wr.jobs).map(async([Dn,Sa])=>{const{data:ja,error:Oi}=await oe.from("image_edit_jobs").select("status,error_message").eq("id",Sa).eq("story_id",x).eq("image_type","page").eq("page_number",Number(Dn)).maybeSingle();it||It.current!==et||Oi||!ja||!["completed","failed","refunded"].includes(ja.status)||(rr(Pr=>{if(Pr.scope!==et||Pr.jobs[Number(Dn)]!==Sa)return Pr;const Er={...Pr.jobs};return delete Er[Number(Dn)],{scope:et,jobs:Er}}),ja.status!=="completed"&&s({title:"The image edit could not be completed",description:tkt(ja.error_message),variant:"destructive"}),C())}))}catch(Dn){console.warn("Page edit status unavailable:",Dn)}finally{Ft=!1}}};Dt();const fn=setInterval(()=>void Dt(),4e3);return()=>{it=!0,clearInterval(fn)}},[wr,et,x,c==null?void 0:c.id]);const[Oe,rt]=k.useState(!1),[nt,yt]=k.useState(""),[tt,$e]=k.useState(!1),[At,at]=k.useState(null),[Zt,Kt]=k.useState(!1),[$r,ar]=k.useState(""),[_a,Pi]=k.useState(null),[Nc,jt]=k.useState(!1),[yr,Ao]=k.useState(!1);k.useState(!1);const hn=!!b&&(w==null?void 0:w.id)===x&&!!(w!=null&&w.is_public)&&w.user_id!==(c==null?void 0:c.id),Li=!!(w!=null&&w.has_purchased)||o||(w==null?void 0:w.user_id)===(c==null?void 0:c.id)&&(w==null?void 0:w.intended_entitlement)==="membership_bonus",Rn=z8e({hasPurchased:!!(w!=null&&w.has_purchased),isOwner:ie,isAdmin:o}),[As,Xv]=k.useState(!1),ig=!!x&&ie&&!hn,Tn=g8e(x,{enabled:ig,observeLaterImageRuns:!0,isAdmin:o}),Ih=Tn.status==="streaming"||Tn.status==="text_ready"||Tn.status==="topping_up",S4=((Hu=Tn.breytaProgress)==null?void 0:Hu.pct)??null,Mo=k.useMemo(()=>
8107qwt({storyPages:M.map(it=>it.page),fullAccess:Li,publicViewer:hn,loggedIn:!!c,canPrint:Rn,imagesReady:Tn.ready,reviewed:yr}),[M,Li,hn,c,Rn,Tn.ready,yr]),_n=Hwt(Mo,$.storyId===x?$.key:"copyright"),Io=Mo.indexOf(_n),qr=_n.kind==="story"?_n.page:0,Ph=it=>T({storyId:x,key:it}),Tc=(w==null?void 0:w.id)===x&&W.current===x&&M.length>0,Zv=Tn.textViewable&&Tc;k.useEffect(()=>{if(A.current&&$.storyId===x){if(!d||l||p||!Tc)return;A.current=!1}Tc&&($.storyId!==x||$.key!==_n.key)&&T({storyId:x,key:_n.key})},[Tc,x,_n.key,$,d,l,p]),k.useEffect(()=>{rt(!1),at(null),_e(!1),R(!1),Kt(!1),ar(""),Pi(null)},[x]);const Lh=Zv&&Tn.progressStoryId===x;k.useEffect(()=>{(w==null?void 0:w.id)===x&&dVe({storyId:x,userId:c==null?void 0:c.id,isOwner:w.user_id===(c==null?void 0:c.id),isAdmin:o,isPublicViewer:hn,isSample:w.intended_entitlement==="free_sample"&&!w.has_purchased,showingBook:d&&Lh&&_n.kind==="story"})},[w,x,c==null?void 0:c.id,d,o,hn,Lh,_n.kind]);const{displayProgress:wK,label:kK}=x8e({storyId:x,pending:Ih,realPct:S4,stage:(M4=Tn.breytaProgress)==null?void 0:M4.stage,progressStoryId:Tn.progressStoryId,runId:((I4=Tn.breytaProgress)==null?void 0:I4.runId)??null,markRevealed:!hn&&ie&&Lh});k.useEffect(()=>{c&&(w!=null&&w.user_id)&&J(c.id===w.user_id)},[c,w==null?void 0:w.user_id]),k.useEffect(()=>{let it=!1;return Ao(!1),(async()=>{if(!(c!=null&&c.id)||!x)return;const{data:Dt}=await oe.from("story_reviews").select("id").eq("story_id",x).eq("user_id",c.id).maybeSingle();it||Ao(!!Dt)})(),()=>{it=!0}},[c==null?void 0:c.id,x]),k.useEffect(()=>{v&&v!==x?(localStorage.setItem("lastViewedStoryId",v),_(v)):!v&&r&&r!==x&&(localStorage.setItem("lastViewedStoryId",r),_(r))},[v,r]),k.useEffect(()=>{if(w){if(de(w.intended_entitlement||null),ue(w.age_range||"3-5"),L(w.admin_approved_public||!1),J((c==null?void 0:c.id)===w.user_id),lt(w.edit_history||{}),w!=null&&w.story_content){const it=w.story_content,Ft=w.page_illustrations||{},Dt=new Map;W.current===w.id&&Y.current.forEach(Pr=>Dt.set(Pr.page,Pr)),W.current=w.id;const fn=Object.entries(it).map(([Pr,Er])=>{var lx,Mc,cx;const Po=parseInt(Pr),Wt=s8e(Ft,Po),Js=(Wt==null?void 0:Wt.image_url)||(Wt==null?void 0:Wt.upscaled_url),dg=Wt==null?void 0:Wt.status,Vu=Dt.get(Po),SK=wr.scope===et&&!!wr.jobs[Po]?"generating":dg,ox=Wt!=null&&Wt.generated_at?new Date(Wt.generated_at).getTime():0,jK=Js?`${Js}?v=${ox}`:void 0,L4=Wt!=null&&Wt.partial_at?new Date(Wt.partial_at).getTime():(Wt==null?void 0:Wt.partial_index)??0,Wu=!Js&&(Wt!=null&&Wt.partial_url)?`${Wt.partial_url}?v=${L4}`:void 0;return{page:Po,content:Er,illustrationPrompt:Wt==null?void 0:Wt.prompt,illustrationUrl:jK,illustrationSourceUrl:Js,illustrationStatus:SK,illustrationGeneratedAt:Wt==null?void 0:Wt.generated_at,illustrationQaRefining:!!((lx=Wt==null?void 0:Wt.qa_refining)!=null&&lx.qa_run_id),illustrationQaCoverage:(Mc=Wt==null?void 0:Wt.breyta_qa)==null?void 0:Mc.coverage_v3,illustrationQaImageUrl:Wt==null?void 0:Wt.breyta_qa_image_url,illustrationQaPassed:(cx=Wt==null?void 0:Wt.breyta_qa)==null?void 0:cx.passed,illustrationPartialUrl:Wu,illustrationPartialIndex:Mbt(Vu==null?void 0:Vu.illustrationPartialIndex,Wt==null?void 0:Wt.partial_index)}});z(fn.sort((Pr,Er)=>Pr.page-Er.page));const Dn=N2(w,fn.map(Pr=>Pr.page)),Sa=Dn.length-Qte(Object.fromEntries(fn.map(Pr=>[String(Pr.page),{image_url:Pr.illustrationUrl}])),Dn);ve(Sa);const ja=are(w),Oi=lkt(fn,{now:Date.now(),illustrationLimit:ja});Oi.length>0&&(console.log(`Auto-retrying image generation for ${Oi.length} stale pages`),Oi.forEach(Pr=>{oe.functions.invoke("generate-single-image",{body:{storyId:x,pageNumber:Pr.page}}).catch(Er=>{console.error(`Error triggering image for page ${Pr.page}:`,Er)})}))}x&&oe.functions.invoke("reset-stuck-illustrations",{body:{storyId:x}}).catch(it=>{console.error("Error resetting stuck illustrations:",it)})}},[w,c==null?void 0:c.id,x,wr,et]),k.useEffect(()=>{E&&(Z(E.message||"Failed to load story"),s({title:"Error loading story",description:E.message||"Failed to load story. Please try again.",variant:"destructive"}))},[E,s]),k.useEffect(()=>{const it=setTimeout(()=>{!x&&!v&&!r&&e("/library")},1e3);return()=>clearTimeout(it)},[x,v,r,e]),k.useEffect(()=>{if(!x)return;let it=null;const Ft=oe.channel(`page-illustrations-${x}`).on("postgres_changes",{event:"UPDATE",schema:"public",table:"stories",filter:`id=eq.${x}`},async Dt=>
8107{console.log("[StoryReader] Received illustration update, invalidating cache"),it&&clearTimeout(it),it=setTimeout(()=>{m.invalidateQueries({queryKey:["story",x]})},500)}).subscribe();return()=>{it&&clearTimeout(it),oe.removeChannel(Ft)}},[x,m]);const ct=M.find(it=>it.page===qr),sg=!!w&&w.id===x&&(o||qr<=are(w)),Qv=!ig&&(ct==null?void 0:ct.illustrationStatus)==="failed"&&!(ct!=null&&ct.illustrationUrl),Jv=!!w&&w.id===x&&W.current===x&&!!ct&&!Qv&&!Tn.abandonedPages.includes(qr)&&(Li||hn||qr<=B)&&(ct.illustrationUrl?ct.illustrationQaRefining||["pending","generating","painting"].includes(ct.illustrationStatus??""):sg),og=ie&&!hn&&(w==null?void 0:w.id)===x&&Tn.progressStoryId===x&&Tn.textViewable&&!Tc||Jv,An=k.useRef(null);k.useEffect(()=>{var Dn,Sa;if(!og||!x){An.current=null;return}ig?An.current=null:(((Dn=An.current)==null?void 0:Dn.storyId)!==x||An.current.page!==qr)&&(An.current={storyId:x,page:qr,until:Date.now()+ukt});const it=((Sa=An.current)==null?void 0:Sa.until)??1/0;let Ft=!1,Dt;const fn=async()=>{if(!(Ft||Date.now()>
8107=it))try{await m.invalidateQueries({queryKey:["story",x]})}catch(ja){Ft||console.warn("[StoryReader] Illustration refresh failed:",ja)}finally{!Ft&&Date.now()<it&&(Dt=setTimeout(fn,5e3))}};return Dt=setTimeout(fn,5e3),()=>{Ft=!0,clearTimeout(Dt)}},[og,qr,x,m,ig]);const Ac=Oe||Zt||ye||P||As;wVe(d&&!l&&!p&&!j&&!ee&&Zv&&!Ac&&!tt&&!Nc&&!pe&&!ae&&!q&&!n&&!a&&Object.keys(wr.jobs).length===0&&["copyright","dedication","story","back-cover"].includes(_n.kind),()=>!!x&&Zwt(x,_n.key));const tx=Io>0&&!Ac,Oh=Io<Mo.length-1&&!Ac,j4=()=>{tx&&Ph(Mo[Io-1].key)},Rh=()=>{Oh&&Ph(Mo[Io+1].key)};k.useEffect(()=>{const it=Ft=>{Ac||Ft.target instanceof Element&&Ft.target.closest('input, textarea, select, [contenteditable="true"], [role="dialog"]')||(Ft.key==="ArrowLeft"||Ft.key==="ArrowUp"?(Ft.preventDefault(),Io>0&&T({storyId:x,key:Mo[Io-1].key})):(Ft.key==="ArrowRight"||Ft.key==="ArrowDown")&&(Ft.preventDefault(),Io<Mo.length-1&&T({storyId:x,key:Mo[Io+1].key})))};return window.addEventListener("keydown",it),()=>window.removeEventListener("keydown",it)},[Mo,Io,x,Ac]);const _K=it=>{!Rn||!Tn.ready||fe>0||e(`/order-print/${x}?format=${it}`)},Dh=50,rx=it=>{Q(null),se(it.targetTouches[0].clientX)},E4=it=>{Q(it.targetTouches[0].clientX)},lg=()=>{if(Ac||!U||!te)return;const it=U-te,Ft=it>Dh,Dt=it<-Dh;Ft&&Rh(),Dt&&j4()},C4=async()=>{if(!(!x||!o)){X(!0);try{const it=!I,{error:Ft}=await oe.from("stories").update({admin_approved_public:it}).eq("id",x);if(Ft)throw Ft;L(it),Ct.success(it?"Story approved for public library":"Story removed from public library")}catch(it){console.error("Error toggling admin approval:",it),Ct.error("Failed to update approval status")}finally{X(!1)}}},cg=async()=>{const it=At||qr,Ft=nt.trim();if(Ft.length<10){s({title:"Text too short",description:"Story text must be at least 10 characters",variant:"destructive"});return}if(Ft.length>600){s({title:"Text too long",description:"Story text must be less than 600 characters",variant:"destructive"});return}$e(!0);try{const{data:Dt,error:fn}=await oe.from("stories").select("story_content, edit_history").eq("id",x).single();if(fn)throw fn;const Dn={...Dt.story_content,[it.toString()]:Ft},Sa=Dt.story_content[it.toString()]||"",ja=Dt.edit_history||{},Oi=ja.text_edits||{},Pr=Oi[it.toString()]||[],Er={original_text:Sa,edited_text:Ft,edited_at:new Date().toISOString(),edit_stage:"post_creation"},Po={...Oi,[it.toString()]:[...Pr,Er]},Wt={...ja,text_edits:Po},{error:Js}=await oe.from("stories").update({story_content:Dn,edit_history:Wt,pdf_url:null,cover_pdf_url:null,pdf_generation_status:"idle"}).eq("id",x);if(Js)throw Js;z(dg=>dg.map(Vu=>Vu.page===it?{...Vu,content:Ft}:Vu)),rt(!1),at(null),s({title:"Text updated",description:"Story text has been saved. PDFs will be regenerated."})}catch(Dt){console.error("Error saving page text:",Dt),s({title:"Failed to save",description:"Please try again",variant:"destructive"})}finally{$e(!1)}},N4=async()=>{if(!x)return;const it=$r.trim(),Ft=d0(it,w==null?void 0:w.language);if(Ft){s({title:"This dedication will not print",description:Ft,variant:"destructive"});return}jt(!0);try{const{data:Dt,error:fn}=await oe.from("stories").select("edit_history, updated_at").eq("id",x).single();if(fn)throw fn;const Dn=it||null,Sa=(Dt==null?void 0:Dt.edit_history)||{},ja=Sa.dedication_edits||[],Oi={...Sa,dedication_edits:[...ja,{original_text:_a||"",edited_text:Dn||"",edited_at:new Date().toISOString(),edit_stage:"post_creation"}]},Pr=oe.from("stories").update({dedication_message:Dn,edit_history:Oi,pdf_url:null,cover_pdf_url:null,pdf_generation_status:"idle"}).eq("id",x).eq("updated_at",Dt==null?void 0:Dt.updated_at),{data:Er,error:Po}=await(_a===null?Pr.is("dedication_message",null):Pr.eq("dedication_message",_a)).select("id");if(Po)throw Po;if(!(Er!=null&&Er.length))throw new Error("This book's dedication changed elsewhere, or you do not have permission to edit it.");Kt(!1),C(),s({title:"Dedication updated",description:"Your dedication has been saved. PDFs will be regenerated."})}catch(Dt){console.error("Error saving dedication:",Dt),s({title:"Failed to save",description:Dt instanceof Error?Dt.message:"Please try again",variant:"destructive"})}finally{jt(!1)}},nx=async(it,Ft)=>{if(!(!(c!=null&&c.id)||!x)){Xv(!0);try{const{error:Dt}=await oe.from("story_reviews").upsert({story_id:x,user_id:c.id,stars:it,comment:Ft.trim()||null,review_skipped:!1,is_public_review:hn});if(Dt)throw Dt;Ao(!0),it>=4&&Rn?Ph("print"):it>=4&&hn?Ph("back-cover"):e(`/app/book-preview?id=${x}`)}catch(Dt){console.error("Error submitting review:",Dt),Ct.error("Failed to submit review")}finally{Xv(!1)}}},T4=async()=>
8107{if(!(!(c!=null&&c.id)||!x))try{await oe.from("story_reviews").upsert({story_id:x,user_id:c.id,stars:0,review_skipped:!0,is_public_review:!1}),Ao(!0),e(`/app/book-preview?id=${x}`)}catch{e(`/app/book-preview?id=${x}`)}};if(j)return i.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin mx-auto text-primary"}),i.jsx("p",{className:"text-muted-foreground",children:V>0?`Loading your story... (Retry ${V}/3)`:"Loading your story..."}),V>0&&i.jsx("p",{className:"text-sm text-muted-foreground",children:"Images are still being generated, please wait..."})]})});if(ie&&!hn&&x&&!Zv)return i.jsx(Fk,{currentStage:3,progress:97,flow:"book"});if(ee&&!j)return i.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-6 max-w-md px-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Unable to load story"}),i.jsx("p",{className:"text-muted-foreground",children:ee==="timeout"?"Your story images are still being generated. This can take a few moments.":ee})]}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx(le,{onClick:()=>{ne(0),C()},className:"w-full",children:"Try Again"}),i.jsx(le,{variant:"outline",onClick:()=>e("/app/library"),className:"w-full",children:"Go to Library"})]})]})});const ug=M.find(it=>it.page===qr+1),Fh=Li||hn||qr+1<=B?ug==null?void 0:ug.illustrationUrl:void 0,$h=Tn.abandonedPages.includes(qr),ax=obt({storedStatus:ct==null?void 0:ct.illustrationStatus,hasImage:!!(ct!=null&&ct.illustrationUrl),abandoned:$h}),Bh=lbt({storedStatus:ct==null?void 0:ct.illustrationStatus,hasImage:!!(ct!=null&&ct.illustrationUrl),abandoned:$h,qaRefining:ct==null?void 0:ct.illustrationQaRefining}),A4=wr.scope===et&&wr.jobs[qr],Ms=ie&&!hn&&!A4?xbt({page:qr,progress:Tn.imageQaProgress,coverage:ct==null?void 0:ct.illustrationQaCoverage,imageUrl:ct==null?void 0:ct.illustrationSourceUrl,qaImageUrl:ct==null?void 0:ct.illustrationQaImageUrl,qaPassed:ct==null?void 0:ct.illustrationQaPassed,rendering:Bh||["generating","pending","painting"].includes(ax??""),legacyQaRefining:ct==null?void 0:ct.illustrationQaRefining}):null,ix=_n.kind==="story"?`Page ${qr} of ${M.length}`:LH[_n.kind]??{purchase:"End of sample",review:"Leave a review",print:"Print Options"}[_n.kind],zh=w!=null&&w.story_title?`${w.story_title} - ${ix} | Kibbi`:"Reading Story | Kibbi",sx=`Reading ${ix}${w!=null&&w.story_title?` - ${w.story_title}`:""}. Create personalized children's stories with Kibbi.`;return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:zh}),i.jsx("meta",{name:"description",content:sx}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"}),i.jsx("meta",{property:"og:title",content:zh}),i.jsx("meta",{property:"og:description",content:sx}),i.jsx("meta",{property:"og:type",content:"book"}),(ct==null?void 0:ct.illustrationUrl)&&i.jsx("meta",{property:"og:image",content:ct.illustrationUrl.split("?")[0]})]}),i.jsxs("div",{className:"min-h-screen flex flex-col relative bg-white",children:[i.jsx("div",{className:"absolute top-6 left-6 z-10",children:i.jsxs(le,{variant:"ghost",size:"sm",onClick:()=>{e(b?`/shared/story/${b}`:`/app/book-preview?id=${x}`)},className:"text-muted-foreground hover:text-foreground",children:[i.jsx(fu,{className:"h-4 w-4 mr-1"}),"Back to preview"]})}),o&&i.jsxs("div",{className:"absolute top-6 left-1/2 -translate-x-1/2 z-10",children:[i.jsxs(le,{onClick:C4,disabled:q,variant:I?"default":"outline",size:"sm",className:"gap-2",children:[q?i.jsx(Me,{className:"h-4 w-4 animate-spin"}):I?i.jsx(_r,{className:"h-4 w-4"}):i.jsx(hi,{className:"h-4 w-4"}),I?"In Public Library":"Not in Public Library"]}),i.jsxs(le,{onClick:()=>e("/admin/marketing-pages"),variant:"outline",size:"sm",className:"gap-2",children:[i.jsx(xr,{className:"h-4 w-4"}),"Landing page books"]})]}),i.jsx("div",{className:"absolute top-6 right-6 z-10",children:i.jsx("span",{className:"text-sm text-muted-foreground",children:_n.kind!=="story"?ix:i.jsxs(i.Fragment,{children:["Page ",qr," of ",M.length,!Li&&!hn&&ge!=="membership_included"&&ge!=="membership_bonus"&&qr<=B&&(ge==="overage"?" (Preview)":" (Free Sample)")]})})}),i.jsx("main",{className:"flex-1 flex flex-col items-center justify-between px-6 pt-20 pb-12 md:pt-12",onTouchStart:rx,onTouchMove:E4,onTouchEnd:lg,children:i.jsxs("div",{className:"max-w-5xl w-full flex-1 flex flex-col",children:[_n.kind in LH?i.jsx(Ywt,{kind:_n.kind,story:w??{},details:F.data,failed:F.isError,onRetry:()=>void F.refetch(),dedicationEditor:{canEdit:ie&&!hn,isEditing:Zt,draft:$r,isSaving:Nc,onStart:()=>{Pi((w==null?void 0:w.dedication_message)??null),ar((w==null?void 0:w.dedication_message)??""),Kt(!0)},onChange:ar,onSave:N4,onCancel:()=>Kt(!1)}}):_n.kind==="purchase"?i.jsx("div",{className:"flex flex-1 items-center justify-center py-24",children:i.jsx("p",{children:"Youâve reached the end of your sample."})}):_n.kind==="review"&&c?i.jsx(X8e,{storyTitle:(w==null?void 0:w.story_title)||"this book",onSubmit:nx,onSkip:T4,isSubmitting:As}):_n.kind==="print"&&Rn?i.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:i.jsxs("div",{className:"max-w-2xl w-full space-y-6",children:[i.jsxs("div",{className:"text-center space-y-2",children:[i.jsxs("h2",{className:"text-3xl md:text-4xl font-bold",children:["Love this story?",i.jsx("br",{}),"Get a physical copy!"]}),i.jsx("p",{className:"text-lg text-muted-foreground",children:"Create a beautiful keepsake that will last for years"})]}),i.jsx(B8e,{storyId:x,storyTitle:(w==null?void 0:w.story_title)||"",missingPages:fe,onPrintOrderClick:_K})]})}):i.jsx(i.Fragment,{children:i.jsxs("div",{className:"flex-1 grid md:grid-cols-2 gap-1 md:gap-12 items-center mb-8",children:[i.jsx("div",{className:"flex items-center justify-start",children:Oe?i.jsxs("div",{className:"space-y-3 w-full",children:[i.jsx(Dr,{value:nt,onChange:it=>yt(it.target.value),maxLength:600,rows:8,className:"resize-none font-lexend text-lg leading-relaxed",autoFocus:!0,onKeyDown:it=>{it.key==="Escape"&&(rt(!1),at(null))}}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("span",{className:`text-sm ${nt.length>500?nt.length>=600?"text-destructive":"text-amber-500":"text-muted-foreground"}`,children:[nt.length,"/600 characters",nt.length>500&&nt.length<600&&" (Approaching limit)",nt.length>=600&&" (Limit reached)"]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(le,{onClick:cg,disabled:tt,size:"sm",children:tt?"Saving...":"Save"}),i.jsx(le,{onClick:()=>{rt(!1),at(null)},variant:"ghost",size:"sm",disabled:tt,children:"Cancel"})]})]})]}):i.jsxs("div",{className:"w-full group",children:[i.jsx("p",{className:`font-lexend font-light text-foreground text-left whitespace-pre-wrap ${K==="6-9"?"text-base md:text-xl leading-relaxed":"text-lg md:text-2xl leading-relaxed"}`,children:ct!=null&&ct.content?dkt(ct.content,K):"Page not found"}),(ie||o)&&i.jsxs(le,{variant:"ghost",size:"sm",onClick:()=>{yt((ct==null?void 0:ct.content)||""),at(qr),rt(!0)},className:"mt-2 ml-auto flex",children:[i.jsx(ii,{className:"h-4 w-4 mr-2"}),"Edit text"]})]})}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"bg-muted/30 rounded-lg flex items-center justify-center overflow-hidden min-h-[400px] relative",children:[ct!=null&&ct.illustrationUrl?i.jsxs("div",{className:"relative w-full","data-testid":"reader-landed-illustration",children:[i.jsx(rkt,{src:ct.illustrationUrl,alt:`Illustration for page ${qr}`,preloadSrc:Fh}),A4?i.jsxs("div",{role:"status","data-testid":"illustration-editing",className:"absolute bottom-3 right-3 flex items-center gap-2 rounded-full bg-background/90 px-3 py-1 text-xs shadow-sm",children:[i.jsx(Me,{className:"h-3 w-3 animate-spin"})," Editing illustration"]}):Bh&&!Ms&&i.jsxs("div",{role:"status","data-testid":"illustration-refining",className:"absolute bottom-3 right-3 flex items-center gap-2 rounded-full bg-background/90 px-3 py-1 text-xs shadow-sm",children:[i.jsx(Me,{className:"h-3 w-3 animate-spin"})," Refining illustration"]})]}
8107):!Qv&&cbt({partialUrl:ct==null?void 0:ct.illustrationPartialUrl,abandoned:$h})?i.jsxs("div",{className:"relative w-full overflow-hidden rounded-lg","data-testid":"illustration-partial-frame",children:[i.jsx("img",{src:ct.illustrationPartialUrl,alt:`Illustration for page ${qr} (painting...)`,className:"w-full h-auto",style:{filter:`blur(${Abt(ct.illustrationPartialIndex)}px)`,transform:"scale(1.06)",transition:"filter 1200ms ease-out"}}),!Ms&&i.jsxs("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex items-center gap-2 rounded-full bg-black/60 backdrop-blur-sm px-4 py-2 shadow-lg",children:[i.jsx(Me,{className:"h-4 w-4 animate-spin text-white"}),i.jsx("span",{className:"text-sm font-medium text-white",children:"Painting..."})]})]}):ax==="failed"?i.jsxs("div",{className:"p-4 text-center space-y-2",children:[i.jsx("div",{className:"h-8 w-8 mx-auto rounded-full bg-destructive/10 flex items-center justify-center",children:i.jsx("span",{className:"text-destructive text-xl",children:"â"})}),i.jsx("p",{className:"text-sm text-destructive",children:"This picture didn't come out"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"You can keep reading the rest of your book."})]}):!sg||!Li&&!hn&&qr>B?null:Jv?i.jsx(y8e,{label:Ih?kK:"Painting your illustrationsâ¦",progress:Ih?wK:void 0,className:"h-[400px]"}):i.jsxs("div",{className:"p-4 text-center space-y-2",children:[i.jsx("div",{className:"h-8 w-8 mx-auto rounded-full border-2 border-dashed border-primary/50 animate-pulse"}),i.jsx("p",{className:"text-sm text-muted-foreground animate-pulse",children:"Preparing image..."})]}),(Ms==null?void 0:Ms.message)&&i.jsxs("div",{role:"status","data-testid":"illustration-qa-status",className:"absolute bottom-3 left-3 right-3 flex items-center justify-center gap-2 rounded-lg bg-background/95 px-3 py-2 text-center text-xs shadow-sm",children:[Ms.busy&&i.jsx(Me,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 animate-spin"}),i.jsx("span",{children:Ms.message})]})]}),i.jsxs("div",{className:"space-y-2",children:[(ie||o)&&(ct==null?void 0:ct.illustrationUrl)&&(ct==null?void 0:ct.illustrationPrompt)&&i.jsxs(le,{variant:"outline",size:"sm",className:"w-full",onClick:()=>{ht(qr),xe(ct.illustrationUrl||""),ut(ct.illustrationPrompt||""),_e(!0)},children:[i.jsx(ii,{className:"h-4 w-4 mr-2"}),(()=>{if(o)return"Edit image";const it=loe(Ot),Ft=ooe(w);return it<Ft?"Edit image":"Edit image - $0.50"})()]}),o&&(ct==null?void 0:ct.illustrationUrl)&&i.jsxs(Xr,{open:P,onOpenChange:it=>{R(it),it&&(ct!=null&&ct.illustrationPrompt)&&re(ct.illustrationPrompt)},children:[i.jsx(lse,{asChild:!0,children:i.jsx(le,{variant:"outline",size:"sm",className:"w-full",children:"Show prompt"})}),i.jsxs(Ur,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsxs(Tr,{children:["Illustration Prompt - Page ",qr]}),i.jsx(ra,{children:"Edit the prompt and regenerate the image directly"})]}),i.jsx("div",{className:"mt-4 space-y-3",children:ct.illustrationPrompt?i.jsxs(i.Fragment,{children:[i.jsx(Dr,{value:H,onChange:it=>re(it.target.value),className:"min-h-[200px] font-mono text-sm",placeholder:"Illustration prompt..."}),i.jsx(le,{onClick:async()=>{D(!0);try{const{data:{session:it}}=await oe.auth.getSession(),Ft=await oe.functions.invoke("update-page-prompt",{body:{storyId:x,pageNumber:qr,newPrompt:H}});if(Ft.error)throw Ft.error;z(Dt=>Dt.map(fn=>fn.page===qr?{...fn,illustrationStatus:"generating"}:fn)),R(!1),Ct.success("Image regeneration started for page "+qr)}catch(it){console.error("Error regenerating:",it),Ct.error("Failed to regenerate image")}finally{D(!1)}},disabled:ae||H===ct.illustrationPrompt,className:"w-full",children:ae?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-4 w-4 mr-2 animate-spin"}),"Regenerating..."]}):"Regenerate Image"})]}):i.jsx("p",{className:"text-sm text-muted-foreground italic p-4 bg-muted rounded-lg",children:"Prompt not stored for this illustration. New stories will include the full prompt."})})]})]})]})]})]})}),i.jsxs("nav",{"aria-label":"Book pages",className:"flex items-center justify-between gap-2",children:[i.jsxs(le,{variant:"outline",className:"px-3","aria-label":"Previous",onClick:j4,disabled:!tx,children:[i.jsx(fu,{className:"h-4 w-4 sm:mr-1"}),i.jsx("span",{className:"hidden sm:inline",children:"Previous"})]}),["copyright","dedication"].includes(_n.kind)&&M[0]&&i.jsx(le,{variant:"ghost",className:"px-2 sm:px-4",disabled:Ac,"data-testid":"reader-skip-to-story",onClick:()=>Ph(`story:${M[0].page}`),children:"Skip to story"}),i.jsxs(le,{variant:"outline",onClick:Rh,"data-testid":"reader-next-page-mobile",disabled:!Oh,children:["Next",i.jsx(Vs,{className:"h-4 w-4 ml-2"})]})]})]})}),_n.kind==="purchase"&&(()=>{const it=(f==null?void 0:f.membership_active)&&(f==null?void 0:f.included_story_available)||(f==null?void 0:f.story_credits)>0,Ft=ge==="free_sample"&&it,Dt=async()=>
8107{if(Ft)try{const{data:Dn,error:Sa}=await oe.functions.invoke("consume-story-credit",{body:{storyId:x}});if(Sa)throw Sa;const{error:ja}=await oe.functions.invoke("generate-all-images",{body:{storyId:x}});if(ja){console.error("Error starting full generation after unlock:",ja),Ct.success("Story Unlocked! â¨",{description:"Your credit was used, but the illustrations didn't start. Open the story preview to retry â you won't be charged again."}),await y(),C();return}oe.functions.invoke("process-image-queue",{body:{}}).catch(()=>{}),Ct.success("Story Unlocked! â¨",{description:"Your story credit has been used. The rest of your illustrations are on the way!"}),await y(),C()}catch(Dn){console.error("Error consuming credit:",Dn),Ct.error("Failed to unlock story",{description:"Please try again or contact support"})}else G(!0)},fn=h==="overage"&&!(u!=null&&u.hasActiveBookClub)&&!(f!=null&&f.membership_active)?"none":h;return i.jsx(rre,{storyTitle:(w==null?void 0:w.story_title)||"this story",totalPages:M.length,variant:"reader-end",onPurchaseClick:Dt,storyId:x,isSubscriber:f==null?void 0:f.membership_active,entitlementType:Ft?"use_credit":fn})})(),x&&i.jsx(O8e,{isOpen:pe,onClose:()=>G(!1),storyId:x,storyTitle:(w==null?void 0:w.story_title)||"this story",onSuccess:async()=>{G(!1),await y(),C()}}),x&&Fe&&i.jsx(W8e,{isOpen:ye,onClose:()=>_e(!1),storyId:x,imageType:"page",pageNumber:Fe,currentImageUrl:_t,currentPrompt:je,onEditStarted:it=>{It.current!==et||!Fe||(it&&rr(Ft=>({scope:et,jobs:{...Ft.scope===et?Ft.jobs:{},[Fe]:it}})),z(Ft=>Ft.map(Dt=>Dt.page===Fe?{...Dt,illustrationStatus:"generating"}:Dt)))},onEditComplete:()=>{C()}})]})]})},fkt={generating:"Readying for print",ready:"Readying for print",printing:"Printing"},pkt=["submitted","in_production","shipped","delivered"];function mkt(e){const t=new URLSearchParams(e),r=t.get("redirect_status"),n=t.get("payment_intent");return r!=="succeeded"||!n?null:n}function gkt(e){return e?!!e.paid_at||!!e.lulu_print_job_id:!1}function ykt(e){return e.lookupFailed?"wait":e.order?gkt(e.order)?"settled":"wait":"absent"}const vkt=3e4,xkt=2e3,bkt=["delivered","failed","cancelled"];function J8e(e){return new Date(`${e}T00:00:00`)}function wkt(e,t){if(!e&&!t)return null;const r=n=>J8e(n).toLocaleDateString("en-US",{month:"short",day:"numeric"});return e&&t&&e!==t?`${r(e)} â ${r(t)}`:r(e||t)}function kkt(e,t=new Date){if(bkt.includes(e.status))return null;const r=wkt(e.estimated_arrival_min,e.estimated_arrival_max);if(!r)return null;const n=e.estimated_arrival_max||e.estimated_arrival_min,a=new Date(t.getFullYear(),t.getMonth(),t.getDate()),s=!!n&&J8e(n)<a,o=!!e.shipped_at||e.status==="shipped";return s?{label:"Estimated arrival was",window:r,note:"Later than we'd hoped. Email [email protected] and we'll track it down.",overdue:!0}:{label:"Estimated arrival",window:r,note:o?"On its way. Tracking can take a few days to start updating.":"Printed to order: 6â8 business days in production, then shipping.",overdue:!1}}const _kt={pending:Da,pending_pdfs:Ti,paid:Da,submitted:vl,processing:vl,in_production:vl,shipped:Ty,delivered:Vi,failed:li,cancelled:li},Skt={pending:"bg-yellow-500",pending_pdfs:"bg-blue-500",paid:"bg-blue-500",submitted:"bg-blue-500",processing:"bg-purple-500",in_production:"bg-purple-500",shipped:"bg-green-500",delivered:"bg-green-600",failed:"bg-red-500",cancelled:"bg-gray-500"},jkt={pending:"Payment Confirmed",pending_pdfs:"Preparing for Print",paid:"Paid",submitted:"Submitted to Printer",processing:"Preparing for Print",in_production:"In Production",shipped:"Shipped",delivered:"Delivered",failed:"Failed",cancelled:"Cancelled"};function Ekt(){const[e,t]=k.useState([]),[r,n]=k.useState(null),[a,s]=k.useState(!0),[o,l]=k.useState(!1),[c,u]=k.useState(!1),[d,h]=k.useState(null),f=wt(),{toast:p}=Xt();k.useEffect(()=>{m(),g(),y()},[]);const y=async()=>{try{const{data:{session:w}}=await oe.auth.getSession();if(!w)return;const{data:j}=await oe.from("book_club_months").select("id, month, status, story_id").eq("user_id",w.user.id).in("status",["generating","ready","ready_for_review","printing"]).order("month",{ascending:!0}).limit(1),E=(j==null?void 0:j[0])||null;if(E&&E.story_id){const{data:C}=await oe.from("stories").select("story_title, cover_image_thumbnail_url").eq("id",E.story_id).single();n({...E,story_title:(C==null?void 0:C.story_title)||null,cover_image_thumbnail_url:(C==null?void 0:C.cover_image_thumbnail_url)||null})}else E&&n({...E,story_title:null,cover_image_thumbnail_url:null})}catch{}},m=async()=>{const{data:{session:w}}=await oe.auth.getSession();w||f("/login")},v=async()=>{const w=mkt(window.location.search);if(!w)return;l(!0);const j=Date.now()+vkt;let E="wait";try{for(;Date.now()<j;){const{data:C,error:N}=await oe.from("print_orders").select("id, paid_at, lulu_print_job_id").eq("stripe_payment_intent_id",w).maybeSingle();if(E=ykt({order:C??null,lookupFailed:!!N}),E!=="wait")break;await new Promise(A=>setTimeout(A,xkt))}}catch(C){console.error("[orders] waiting for payment settlement failed",C)}finally{l(!1),E==="wait"?u(!0):(u(!1),window.history.replaceState({},"",window.location.pathname))}},g=async()=>{s(!0);try{await v();const{data:w,error:j}=await oe.from("print_orders").select("*, stories(story_title)").or(`paid_at.not.is.null,lulu_print_job_id.not.is.null,status.in.(${pkt.join(",")})`).order("created_at",{ascending:!1});if(j)throw j;t(w||[])}catch(w){console.error("Error loading orders:",w),p({title:"Error",description:"Failed to load orders",variant:"destructive"})}finally{s(!1)}},b=async w=>{var j;h(w);try{const{data:E}=await oe.auth.getSession(),C=(j=E==null?void 0:E.session)==null?void 0:j.access_token,{data:N,error:A}=await oe.functions.invoke("check-print-order-status",{body:{orderId:w},headers:{Authorization:`Bearer ${C}`}});if(A)throw A;p({title:"Status updated",description:`Order status: ${N.status}`}),await g()}catch(E){console.error("Error checking status:",E),p({title:"Error",description:E.message||"Failed to check order status",variant:"destructive"})}finally{h(null)}},x=w=>`$${(w/100).toFixed(2)}`,_=w=>new Date(w).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return a?i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx(Ba,{}),i.jsxs("div",{className:"flex-1 px-6 py-12 flex flex-col items-center justify-center gap-3",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin"}),o&&i.jsx("p",{className:"text-sm text-muted-foreground","data-testid":"finalizing-payment",children:"Finalizing your payment â this can take a few moments."})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"My Orders - kibbi | Print Orders"}
8107),i.jsx("meta",{name:"description",content:"View and track your personalized storybook print orders."}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx(Ba,{}),i.jsx("main",{className:"flex-1 px-6 py-12",children:i.jsxs("div",{className:"max-w-6xl mx-auto",children:[i.jsxs("div",{className:"mb-8",children:[i.jsx("h1",{className:"text-4xl font-bold mb-2",children:"My Print Orders"}),i.jsx("p",{className:"text-muted-foreground",children:"Track your physical book orders"})]}),c&&i.jsx(Ie,{className:"mb-6 border-primary/40 bg-primary/5","data-testid":"slow-webhook-notice",children:i.jsxs(qe,{className:"pt-6",children:[i.jsx("p",{className:"font-medium",children:"Your payment went through."}),i.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"We're still setting up this order â it can take a minute to appear here. Refresh the page shortly, and email [email protected] if it hasn't shown up."})]})}),r&&i.jsx(Ie,{className:"mb-6 border-dashed border-2 border-primary/30 bg-primary/5",children:i.jsx(ze,{children:i.jsxs("div",{className:"flex items-start gap-4",children:[r.cover_image_thumbnail_url?i.jsx("img",{src:r.cover_image_thumbnail_url,alt:r.story_title||"Upcoming book",className:"w-16 h-20 object-cover rounded-md shadow-sm"}):i.jsx("div",{className:"w-16 h-20 rounded-md bg-muted flex items-center justify-center",children:i.jsx(xr,{className:"h-6 w-6 text-muted-foreground"})}),i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx(Ke,{className:"text-lg",children:r.story_title||"Generating..."}),i.jsx(Re,{variant:"outline",className:"text-primary-foreground border-primary/40",children:"Upcoming"})]}),i.jsxs(Rt,{children:[new Date(r.month+"T00:00:00").toLocaleDateString("en-US",{year:"numeric",month:"long"})," · ",fkt[r.status]||r.status]})]})]})})}),e.length===0&&!r?i.jsx(Ie,{children:i.jsxs(qe,{className:"py-12 text-center",children:[i.jsx(vl,{className:"h-12 w-12 mx-auto mb-4 text-muted-foreground"}),i.jsx("p",{className:"text-lg text-muted-foreground mb-4",children:"You haven't ordered any print books yet."}),i.jsx(le,{onClick:()=>f("/library"),children:"Browse Your Stories"})]})}):i.jsx("div",{className:"space-y-4",children:e.map(w=>{var N;const j=_kt[w.status],E=Skt[w.status],C=kkt(w);return i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsx(Ke,{className:"text-xl",children:w.story_title||((N=w.stories)==null?void 0:N.story_title)||"Story deleted"}),i.jsxs(Rt,{children:["Order placed ",_(w.created_at)]}),C&&i.jsxs("p",{className:"text-sm text-muted-foreground","data-testid":"arrival-estimate",children:[C.label," ",C.window,i.jsx("span",{className:"block text-xs",children:C.note})]})]}),i.jsxs(Re,{className:`${E} text-white`,children:[i.jsx(j,{className:"w-3 h-3 mr-1"}),jkt[w.status]||w.status]})]})}),i.jsx(qe,{children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Product"}),i.jsx("p",{className:"text-base capitalize",children:w.product_type})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Pricing"}),i.jsxs("div",{className:"text-base space-y-1",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{children:"Product:"}),i.jsx("span",{children:x(w.amount-(w.shipping_cost||0))})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{children:"Shipping:"}),i.jsx("span",{children:x(w.shipping_cost||0)})]}),i.jsxs("div",{className:"flex justify-between font-semibold pt-1 border-t",children:[i.jsx("span",{children:"Total:"}),i.jsx("span",{children:x(w.amount)})]})]})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Shipping To"}),i.jsx("p",{className:"text-base",children:w.shipping_name}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:[w.shipping_city,", ",w.shipping_state," ",w.shipping_country]})]}),w.lulu_status&&i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Status"}),i.jsx("p",{className:"text-base",children:w.lulu_status})]})]}),i.jsxs("div",{className:"space-y-3",children:[w.shipped_at&&i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Shipped Date"}),i.jsx("p",{className:"text-base",children:_(w.shipped_at)})]}),w.tracking_number&&i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Tracking Number"}),i.jsx("p",{className:"text-base font-mono",children:w.tracking_number}),w.tracking_url&&i.jsxs("a",{href:w.tracking_url,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary hover:underline inline-flex items-center gap-1",children:["Track Package ",i.jsx(oc,{className:"w-3 h-3"})]})]}),i.jsx("div",{className:"pt-2",children:i.jsx(le,{onClick:()=>b(w.id),disabled:d===w.id,variant:"outline",size:"sm",children:d===w.id?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Checking..."]}):"Check Status"})})]})]})})]},w.id)})})]})})]})]})}var coe="Radio",[Ckt,eTe]=xa(coe),[Nkt,Tkt]=Ckt(coe),tTe=k.forwardRef((e,t)=>
vendor: 2,809 bytes, line 8107
8107{const{__scopeRadio:r,name:n,checked:a=!1,required:s,disabled:o,value:l="on",onCheck:c,form:u,...d}=e,[h,f]=k.useState(null),p=Vt(t,v=>f(v)),y=k.useRef(!1),m=h?u||!!h.closest("form"):!0;return i.jsxs(Nkt,{scope:r,checked:a,disabled:o,children:[i.jsx(dt.button,{type:"button",role:"radio","aria-checked":a,"data-state":iTe(a),"data-disabled":o?"":void 0,disabled:o,value:l,...d,ref:p,onClick:Xe(e.onClick,v=>{a||c==null||c(),m&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})}),m&&i.jsx(aTe,{control:h,bubbles:!y.current,name:n,value:l,checked:a,required:s,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});tTe.displayName=coe;var rTe="RadioIndicator",nTe=k.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...a}=e,s=Tkt(rTe,r);return i.jsx(ba,{present:n||s.checked,children:i.jsx(dt.span,{"data-state":iTe(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})})});nTe.displayName=rTe;var Akt="RadioBubbleInput",aTe=k.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...a},s)=>{const o=k.useRef(null),l=Vt(o,s),c=JW(r),u=iW(t);return k.useEffect(()=>{const d=o.current;if(!d)return;const h=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==r&&p){const y=new Event("click",{bubbles:n});p.call(d,r),d.dispatchEvent(y)}},[c,r,n]),i.jsx(dt.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});aTe.displayName=Akt;function iTe(e){return e?"checked":"unchecked"}var Mkt=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],jG="RadioGroup",[Ikt,zWt]=xa(jG,[bv,eTe]),sTe=bv(),oTe=eTe(),[Pkt,Lkt]=Ikt(jG),lTe=k.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:a,value:s,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:d=!0,onValueChange:h,...f}=e,p=sTe(r),y=q0(u),[m,v]=ks({prop:s,defaultProp:a??null,onChange:h,caller:jG});return i.jsx(Pkt,{scope:r,name:n,required:o,disabled:l,value:m,onValueChange:v,children:i.jsx(wie,{asChild:!0,...p,orientation:c,dir:y,loop:d,children:i.jsx(dt.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:y,...f,ref:t})})})});lTe.displayName=jG;var cTe="RadioGroupItem",uTe=k.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...a}=e,s=Lkt(cTe,r),o=s.disabled||n,l=sTe(r),c=oTe(r),u=k.useRef(null),d=Vt(t,u),h=s.value===a.value,f=k.useRef(!1);return k.useEffect(()=>{const p=m=>{Mkt.includes(m.key)&&(f.current=!0)},y=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",y)}},[]),i.jsx(kie,{asChild:!0,...l,focusable:!o,active:h,children:i.jsx(tTe,{disabled:o,required:s.required,
8107checked:h,...c,...a,name:s.name,ref:d,onCheck:()=>s.onValueChange(a.value),onKeyDown:Xe(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:Xe(a.onFocus,()=>{var p;f.current&&((p=u.current)==null||p.click())})})})});uTe.displayName=cTe;var Okt="RadioGroupIndicator",dTe=k.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,a=oTe(r);return i.jsx(nTe,{...a,...n,ref:t})});dTe.displayName=Okt;var hTe=lTe,fTe=uTe,Rkt=dTe;const OH=k.forwardRef(({className:e,...t},r)=>i.jsx(hTe,{className:De("grid gap-2",e),...t,ref:r}));OH.displayName=hTe.displayName;const Bw=k.forwardRef(({className:e,...t},r)=>i.jsx(fTe,{ref:r,className:De("aspect-square h-4 w-4 rounded-full border border-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:i.jsx(Rkt,{className:"flex items-center justify-center",children:i.jsx(e0,{className:"h-2.5 w-2.5 fill-foreground text-foreground"})})}));Bw.displayName=fTe.displayName;var g4=e=>e.type==="checkbox",F1=e=>e instanceof Date,Hi=e=>e==null;const pTe=e=>typeof e=="object";var na=e=>!Hi(e)&&!Array.isArray(e)&&pTe(e)&&!F1(e),mTe=e=>na(e)&&e.target?g4(e.target)?e.target.checked:e.target.value:e,Dkt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,gTe=(e,t)=>e.has(Dkt(t)),Fkt=e=>{const t=e.constructor&&e.constructor.prototype;return na(t)&&t.hasOwnProperty("isPrototypeOf")},uoe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Aa(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(uoe&&(e instanceof Blob||n))&&(r||na(e)))if(t=r?[]:{},!r&&!Fkt(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=Aa(e[a]));else return e;return t}var EG=e=>/^\w*$/.test(e),Kn=e=>e===void 0,doe=e=>Array.isArray(e)?e.filter(Boolean):[],hoe=e=>doe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ft=(e,t,r)=>{if(!t||!na(e))return r;const n=(EG(t)?[t]:hoe(t)).reduce((a,s)=>Hi(a)?a:a[s],e);return Kn(n)||n===e?Kn(e[t])?r:e[t]:n},Ds=e=>typeof e=="boolean",Hr=(e,t,r)=>{let n=-1;const a=EG(t)?[t]:hoe(t),s=a.length,o=s-1;for(;++n<s;){const l=a[n];let c=r;if(n!==o){const u=e[l];c=na(u)||Array.isArray(u)?u:isNaN(+a[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const RH={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},al={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$c={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},foe=ce.createContext(null);foe.displayName="HookFormContext";const CG=()=>ce.useContext(foe),$kt=e=>{const{children:t,...r}=e;return ce.createElement(foe.Provider,{value:r},t)};var yTe=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(a,s,{get:()=>{const o=s;return t._proxyFormState[o]!==al.all&&(t._proxyFormState[o]=!n||al.all),r&&(r[o]=!0),e[o]}});return a};const poe=typeof window<"u"?ce.useLayoutEffect:ce.useEffect;function Bkt(e){const t=CG(),{control:r=t.control,disabled:n,name:a,exact:s}=e||{},[o,l]=ce.useState(r._formState),c=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return poe(()=>r._subscribe({name:a,formState:c.current,exact:s,callback:u=>{!n&&l({...r._formState,...u})}}),[a,n,s]),ce.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),ce.useMemo(()=>yTe(o,r,c.current,!1),[o,r])}var tc=e=>typeof e=="string",vTe=(e,t,r,n,a)=>tc(e)?(n&&t.watch.add(e),ft(r,e,a)):Array.isArray(e)?e.map(s=>(n&&t.watch.add(s),ft(r,s))):(n&&(t.watchAll=!0),r),ire=e=>Hi(e)||!pTe(e);function tu(e,t,r=new WeakSet){if(ire(e)||ire(t))return e===t;if(F1(e)&&F1(t))return e.getTime()===t.getTime();const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of n){const o=e[s];if(!a.includes(s))return!1;if(s!=="ref"){const l=t[s];if(F1(o)&&F1(l)||na(o)&&na(l)||Array.isArray(o)&&Array.isArray(l)?!tu(o,l,r):o!==l)return!1}}return!0}function zkt(e){const t=CG(),{control:r=t.control,name:n,defaultValue:a,disabled:s,exact:o,c
8107ompute:l}=e||{},c=ce.useRef(a),u=ce.useRef(l),d=ce.useRef(void 0);u.current=l;const h=ce.useMemo(()=>r._getWatch(n,c.current),[r,n]),[f,p]=ce.useState(u.current?u.current(h):h);return poe(()=>r._subscribe({name:n,formState:{values:!0},exact:o,callback:y=>{if(!s){const m=vTe(n,r._names,y.values||r._formValues,!1,c.current);if(u.current){const v=u.current(m);tu(v,d.current)||(p(v),d.current=v)}else p(m)}}}),[r,s,n,o]),ce.useEffect(()=>r._removeUnmounted()),f}function Ukt(e){const t=CG(),{name:r,disabled:n,control:a=t.control,shouldUnregister:s,defaultValue:o}=e,l=gTe(a._names.array,r),c=ce.useMemo(()=>ft(a._formValues,r,ft(a._defaultValues,r,o)),[a,r,o]),u=zkt({control:a,name:r,defaultValue:c,exact:!0}),d=Bkt({control:a,name:r,exact:!0}),h=ce.useRef(e),f=ce.useRef(a.register(r,{...e.rules,value:u,...Ds(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const p=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ft(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!ft(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ft(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ft(d.validatingFields,r)},error:{enumerable:!0,get:()=>ft(d.errors,r)}}),[d,r]),y=ce.useCallback(b=>f.current.onChange({target:{value:mTe(b),name:r},type:RH.CHANGE}),[r]),m=ce.useCallback(()=>f.current.onBlur({target:{value:ft(a._formValues,r),name:r},type:RH.BLUR}),[r,a._formValues]),v=ce.useCallback(b=>{const x=ft(a._fields,r);x&&b&&(x._f.ref={focus:()=>b.focus&&b.focus(),select:()=>b.select&&b.select(),setCustomValidity:_=>b.setCustomValidity(_),reportValidity:()=>b.reportValidity()})},[a._fields,r]),g=ce.useMemo(()=>({name:r,value:u,...Ds(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:y,onBlur:m,ref:v}),[r,n,d.disabled,y,m,v,u]);return ce.useEffect(()=>{const b=a._options.shouldUnregister||s;a.register(r,{...h.current.rules,...Ds(h.current.disabled)?{disabled:h.current.disabled}:{}});const x=(_,w)=>{const j=ft(a._fields,_);j&&j._f&&(j._f.mount=w)};if(x(r,!0),b){const _=Aa(ft(a._options.defaultValues,r));Hr(a._defaultValues,r,_),Kn(ft(a._formValues,r))&&Hr(a._formValues,r,_)}return!l&&a.register(r),()=>{(l?b&&!a._state.action:b)?a.unregister(r):x(r,!1)}},[r,a,l,s]),ce.useEffect(()=>{a._setDisabledField({disabled:n,name:r})},[n,r,a]),ce.useMemo(()=>({field:g,formState:d,fieldState:p}),[g,d,p])}const qkt=e=>e.render(Ukt(e));var xTe=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},zw=e=>Array.isArray(e)?e:[e],I0e=()=>{let e=[];return{get observers(){return e},next:a=>{for(const s of e)s.next&&s.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(s=>s!==a)}}),unsubscribe:()=>{e=[]}}},os=e=>na(e)&&!Object.keys(e).length,moe=e=>e.type==="file",il=e=>typeof e=="function",DH=e=>{if(!uoe)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},bTe=e=>e.type==="select-multiple",goe=e=>e.type==="radio",Hkt=e=>goe(e)||g4(e),gQ=e=>DH(e)&&e.isConnected;function Vkt(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Kn(e)?n++:e[t[n++]];return e}function Wkt(e){for(const t in e)if(e.hasOwnProperty(t)&&!Kn(e[t]))return!1;return!0}function ia(e,t){const r=Array.isArray(t)?t:EG(t)?[t]:hoe(t),n=r.length===1?e:Vkt(e,r),a=r.length-1,s=r[a];return n&&delete n[s],a!==0&&(na(n)&&os(n)||Array.isArray(n)&&Wkt(n))&&ia(e,r.slice(0,-1)),e}var wTe=e=>{for(const t in e)if(il(e[t]))return!0;return!1};function FH(e,t={}){const r=Array.isArray(e);if(na(e)||r)for(const n in e)Array.isArray(e[n])||na(e[n])&&!wTe(e[n])?(t[n]=Array.isArray(e[n])?[]:{},FH(e[n],t[n])):Hi(e[n])||(t[n]=!0);return t}function kTe(e,t,r){const n=Array.isArray(e);if(na(e)||n)for(const a in e)Array.isArray(e[a])||na(e[a])&&!wTe(e[a])?Kn(t)||ire(r[a
vendor: 8,470 bytes, line 8107
8107])?r[a]=Array.isArray(e[a])?FH(e[a],[]):{...FH(e[a])}:kTe(e[a],Hi(t)?{}:t[a],r[a]):r[a]=!tu(e[a],t[a]);return r}var Xx=(e,t)=>kTe(e,t,FH(t));const P0e={value:!1,isValid:!1},L0e={value:!0,isValid:!0};var _Te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Kn(e[0].attributes.value)?Kn(e[0].value)||e[0].value===""?L0e:{value:e[0].value,isValid:!0}:L0e:P0e}return P0e},STe=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Kn(e)?e:t?e===""?NaN:e&&+e:r&&tc(e)?new Date(e):n?n(e):e;const O0e={isValid:!1,value:null};var jTe=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,O0e):O0e;function R0e(e){const t=e.ref;return moe(t)?t.files:goe(t)?jTe(e.refs).value:bTe(t)?[...t.selectedOptions].map(({value:r})=>r):g4(t)?_Te(e.refs).value:STe(Kn(t.value)?e.ref.value:t.value,e)}var Gkt=(e,t,r,n)=>{const a={};for(const s of e){const o=ft(t,s);o&&Hr(a,s,o._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},$H=e=>e instanceof RegExp,Zx=e=>Kn(e)?e:$H(e)?e.source:na(e)?$H(e.value)?e.value.source:e.value:e,D0e=e=>({isOnSubmit:!e||e===al.onSubmit,isOnBlur:e===al.onBlur,isOnChange:e===al.onChange,isOnAll:e===al.all,isOnTouch:e===al.onTouched});const F0e="AsyncFunction";var Kkt=e=>!!e&&!!e.validate&&!!(il(e.validate)&&e.validate.constructor.name===F0e||na(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===F0e)),Ykt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),$0e=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Uw=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const s=ft(e,a);if(s){const{_f:o,...l}=s;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],a)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(Uw(l,t))break}else if(na(l)&&Uw(l,t))break}}};function B0e(e,t,r){const n=ft(e,r);if(n||EG(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const s=a.join("."),o=ft(t,s),l=ft(e,s);if(o&&!Array.isArray(o)&&r!==s)return{name:r};if(l&&l.type)return{name:s,error:l};if(l&&l.root&&l.root.type)return{name:`${s}.root`,error:l.root};a.pop()}return{name:r}}var Xkt=(e,t,r,n)=>{r(e);const{name:a,...s}=e;return os(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(o=>t[o]===(!n||al.all))},Zkt=(e,t,r)=>!e||!t||e===t||zw(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),Qkt=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Jkt=(e,t)=>!doe(ft(e,t)).length&&ia(e,t),e_t=(e,t,r)=>{const n=zw(ft(e,r));return Hr(n,"root",t[r]),Hr(e,r,n),e},oq=e=>tc(e);function z0e(e,t,r="validate"){if(oq(e)||Array.isArray(e)&&e.every(oq)||Ds(e)&&!e)return{type:r,message:oq(e)?e:"",ref:t}}var Ag=e=>na(e)&&!$H(e)?e:{value:e,message:""},U0e=async(e,t,r,n,a,s)=>{const{ref:o,refs:l,required:c,maxLength:u,minLength:d,min:h,max:f,pattern:p,validate:y,name:m,valueAsNumber:v,mount:g}=e._f,b=ft(r,m);if(!g||t.has(m))return{};const x=l?l[0]:o,_=T=>{a&&x.reportValidity&&(x.setCustomValidity(Ds(T)?"":T||""),x.reportValidity())},w={},j=goe(o),E=g4(o),C=j||E,N=(v||moe(o))&&Kn(o.value)&&Kn(b)||DH(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,A=xTe.bind(null,m,n,w),$=(T,F,M,z=$c.maxLength,Y=$c.minLength)=>{const W=T?F:M;w[m]={type:T?z:Y,message:W,ref:o,...A(T?z:Y,W)}};if(s?!Array.isArray(b)||!b.length:c&&(!C&&(N||Hi(b))||Ds(b)&&!b||E&&!_Te(l).isValid||j&&!jTe(l).isValid)){const{value:T,message:F}=oq(c)?{value:!!c,message:c}:Ag(c);if(T&&(w[m]={type:$c.required,message:F,ref:x,...A($c.required,F)},!n))return _(F),w}if(!N&&(!Hi(h)||!Hi(f))){let T,F;const M=Ag(f),z=Ag(h);if(!Hi(b)&&!isNaN(b)){const Y=o.valueAsNumber||b&&+b;Hi(M.value)||(T=Y>M.value),Hi(z.value)||(F=Y<z.value)}else{const Y=o.valueAsDate||new Date(b),W=V=>new Date(new Date().toDateString()+" "+V),ee=o.type=="time",Z=o.type=="week";tc(M.value)&&b&&(T=ee?W(b)>W(M.value):Z?b>M.value:Y>new Date(M.value)),tc(z.value)&&b&&(F=ee?W(b)<W(z.value):Z?b<z.value:Y<new Date(z.value))}if((T||F)&&($(!!T,M.message,z.message,$c.max,$c.min),!n))return _(w[m].message),w}if((u||d)&&!N&&(tc(b)||s&&Array.isArray(b))){const T=Ag(u),F=Ag(d),M=!Hi(T.value)&&b.length>+T.value,z=!Hi(F.value)&&b.length<+F.value;if((M||z)&&($(M,T.message,F.message),!n))return _(w[m].message),w}if(p&&!N&&tc(b)){const{value:T,message:F}=Ag(p);if($H(T)&&!b.match(T)&&(w[m]={type:$c.pattern,message:F,ref:o,...A($c.pattern,F)},!n))return _(F),w}if(y){if(il(y)){const T=await y(b,r),F=z0e(T,x);if(F&&(w[m]={...F,...A($c.validate,F.message)},!n))return _(F.message),w}else if(na(y)){let T={};for(const F in y){if(!os(T)&&!n)break;const M=z0e(await y[F](b,r),x,F);M&&(T={...M,...A(F,M.message)},_(M.message),n&&(w[m]=T))}if(!os(T)&&(w[m]={ref:x,...T},!n))return w}}return _(!0),w};const t_t={mode:al.onSubmit,reValidateMode:al.onChange,shouldFocusError:!0};function r_t(e={}){let t={...t_t,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:il(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=na(t.defaultValues)||na(t.values)?Aa(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Aa(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...d};const f={array:I0e(),state:I0e()},p=t.criteriaMode===al.all,y=X=>ie=>{clearTimeout(u),u=setTimeout(X,ie)},m=async X=>{if(!t.disabled&&(d.isValid||h.isValid||X)){const ie=t.resolver?os((await E()).errors):await N(n,!0);ie!==r.isValid&&f.state.next({isValid:ie})}},v=(X,ie)=>{!t.disabled&&(d.isValidating||d.validatingFields||h.isValidating||h.validatingFields)&&((X||Array.from(l.mount)).forEach(J=>{J&&(ie?Hr(r.validatingFields,J,ie):ia(r.validatingFields,J))}),f.state.next({validatingFields:r.validatingFields,isValidating:!os(r.validatingFields)}))},g=(X,ie=[],J,fe,ve=!0,ge=!0)=>{if(fe&&J&&!t.disabled){if(o.action=!0,ge&&Array.isArray(ft(n,X))){const de=J(ft(n,X),fe.argA,fe.argB);ve&&Hr(n,X,de)}if(ge&&Array.isArray(ft(r.errors,X))){const de=J(ft(r.errors,X),fe.argA,fe.argB);ve&&Hr(r.errors,X,de),Jkt(r.errors,X)}if((d.touchedFields||h.touchedFields)&&ge&&Array.isArray(ft(r.touchedFields,X))){const de=J(ft(r.touchedFields,X),fe.argA,fe.argB);ve&&Hr(r.touchedFields,X,de)}(d.dirtyFields||h.dirtyFields)&&(r.dirtyFields=Xx(a,s)),f.state.next({name:X,isDirty:$(X,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Hr(s,X,ie)},b=(X,ie)=>{Hr(r.errors,X,ie),f.state.next({errors:r.errors})},x=X=>{r.errors=X,f.state.next({errors:r.errors,isValid:!1})},_=(X,ie,J,fe)=>{const ve=ft(n,X);if(ve){const ge=ft(s,X,Kn(J)?ft(a,X):J);Kn(ge)||fe&&fe.defaultChecked||ie?Hr(s,X,ie?ge:R0e(ve._f)):M(X,ge),o.mount&&m()}},w=(X,ie,J,fe,ve)=>{let ge=!1,de=!1;const ye={name:X};if(!t.disabled){if(!J||fe){(d.isDirty||h.isDirty)&&(de=r.isDirty,r.isDirty=ye.isDirty=$(),ge=de!==ye.isDirty);const _e=tu(ft(a,X),ie);de=!!ft(r.dirtyFields,X),_e?ia(r.dirtyFields,X):Hr(r.dirtyFields,X,!0),ye.dirtyFields=r.dirtyFields,ge=ge||(d.dirtyFields||h.dirtyFields)&&de!==!_e}if(J){const _e=ft(r.touchedFields,X);_e||(Hr(r.touchedFields,X,J),ye.touchedFields=r.touchedFields,ge=ge||(d.touchedFields||h.touchedFields)&&_e!==J)}ge&&ve&&f.state.next(ye)}return ge?ye:{}},j=(X,ie,J,fe)=>{const ve=ft(r.errors,X),ge=(d.isValid||h.isValid)&&Ds(ie)&&r.isValid!==ie;if(t.delayError&&J?(c=y(()=>b(X,J)),c(t.delayError)):(clearTimeout(u),c=null,J?Hr(r.errors,X,J):ia(r.errors,X)),(J?!tu(ve,J):ve)||!os(fe)||ge){const de={...fe,...ge&&Ds(ie)?{isValid:ie}:{},errors:r.errors,name:X};r={...r,...de},f.state.next(de)}},E=async X=>{v(X,!0);const ie=await t.resolver(s,t.context,Gkt(X||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return v(X),ie},C=async X=>{const{errors:ie}=await E(X);if(X)for(const J of X){const fe=ft(ie,J);fe?Hr(r.errors,J,fe):ia(r.errors,J)}else r.errors=ie;return ie},N=async(X,ie,J={valid:!0})=>{for(const fe in X){const ve=X[fe];if(ve){const{_f:ge,...de}=ve;if(ge){const ye=l.array.has(ge.name),_e=ve._f&&Kkt(ve._f);_e&&d.validatingFields&&v([fe],!0);const Fe=await U0e(ve,l.disabled,s,p,t.shouldUseNativeValidation&&!ie,ye);
vendor: 10,044 bytes, line 8107
8107if(_e&&d.validatingFields&&v([fe]),Fe[ge.name]&&(J.valid=!1,ie))break;!ie&&(ft(Fe,ge.name)?ye?e_t(r.errors,Fe,ge.name):Hr(r.errors,ge.name,Fe[ge.name]):ia(r.errors,ge.name))}!os(de)&&await N(de,ie,J)}}return J.valid},A=()=>{for(const X of l.unMount){const ie=ft(n,X);ie&&(ie._f.refs?ie._f.refs.every(J=>!gQ(J)):!gQ(ie._f.ref))&&D(X)}l.unMount=new Set},$=(X,ie)=>!t.disabled&&(X&&ie&&Hr(s,X,ie),!tu(V(),a)),T=(X,ie,J)=>vTe(X,l,{...o.mount?s:Kn(ie)?a:tc(X)?{[X]:ie}:ie},J,ie),F=X=>doe(ft(o.mount?s:a,X,t.shouldUnregister?ft(a,X,[]):[])),M=(X,ie,J={})=>{const fe=ft(n,X);let ve=ie;if(fe){const ge=fe._f;ge&&(!ge.disabled&&Hr(s,X,STe(ie,ge)),ve=DH(ge.ref)&&Hi(ie)?"":ie,bTe(ge.ref)?[...ge.ref.options].forEach(de=>de.selected=ve.includes(de.value)):ge.refs?g4(ge.ref)?ge.refs.forEach(de=>{(!de.defaultChecked||!de.disabled)&&(Array.isArray(ve)?de.checked=!!ve.find(ye=>ye===de.value):de.checked=ve===de.value||!!ve)}):ge.refs.forEach(de=>de.checked=de.value===ve):moe(ge.ref)?ge.ref.value="":(ge.ref.value=ve,ge.ref.type||f.state.next({name:X,values:Aa(s)})))}(J.shouldDirty||J.shouldTouch)&&w(X,ve,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&Z(X)},z=(X,ie,J)=>{for(const fe in ie){if(!ie.hasOwnProperty(fe))return;const ve=ie[fe],ge=X+"."+fe,de=ft(n,ge);(l.array.has(X)||na(ve)||de&&!de._f)&&!F1(ve)?z(ge,ve,J):M(ge,ve,J)}},Y=(X,ie,J={})=>{const fe=ft(n,X),ve=l.array.has(X),ge=Aa(ie);Hr(s,X,ge),ve?(f.array.next({name:X,values:Aa(s)}),(d.isDirty||d.dirtyFields||h.isDirty||h.dirtyFields)&&J.shouldDirty&&f.state.next({name:X,dirtyFields:Xx(a,s),isDirty:$(X,ge)})):fe&&!fe._f&&!Hi(ge)?z(X,ge,J):M(X,ge,J),$0e(X,l)&&f.state.next({...r,name:X}),f.state.next({name:o.mount?X:void 0,values:Aa(s)})},W=async X=>{o.mount=!0;const ie=X.target;let J=ie.name,fe=!0;const ve=ft(n,J),ge=_e=>{fe=Number.isNaN(_e)||F1(_e)&&isNaN(_e.getTime())||tu(_e,ft(s,J,_e))},de=D0e(t.mode),ye=D0e(t.reValidateMode);if(ve){let _e,Fe;const ht=ie.type?R0e(ve._f):mTe(X),_t=X.type===RH.BLUR||X.type===RH.FOCUS_OUT,xe=!Ykt(ve._f)&&!t.resolver&&!ft(r.errors,J)&&!ve._f.deps||Qkt(_t,ft(r.touchedFields,J),r.isSubmitted,ye,de),je=$0e(J,l,_t);Hr(s,J,ht),_t?(ve._f.onBlur&&ve._f.onBlur(X),c&&c(0)):ve._f.onChange&&ve._f.onChange(X);const ut=w(J,ht,_t),Ot=!os(ut)||je;if(!_t&&f.state.next({name:J,type:X.type,values:Aa(s)}),xe)return(d.isValid||h.isValid)&&(t.mode==="onBlur"?_t&&m():_t||m()),Ot&&f.state.next({name:J,...je?{}:ut});if(!_t&&je&&f.state.next({...r}),t.resolver){const{errors:lt}=await E([J]);if(ge(ht),fe){const et=B0e(r.errors,n,J),It=B0e(lt,n,et.name||J);_e=It.error,J=It.name,Fe=os(lt)}}else v([J],!0),_e=(await U0e(ve,l.disabled,s,p,t.shouldUseNativeValidation))[J],v([J]),ge(ht),fe&&(_e?Fe=!1:(d.isValid||h.isValid)&&(Fe=await N(n,!0)));fe&&(ve._f.deps&&Z(ve._f.deps),j(J,Fe,_e,ut))}},ee=(X,ie)=>{if(ft(r.errors,ie)&&X.focus)return X.focus(),1},Z=async(X,ie={})=>{let J,fe;const ve=zw(X);if(t.resolver){const ge=await C(Kn(X)?X:ve);J=os(ge),fe=X?!ve.some(de=>ft(ge,de)):J}else X?(fe=(await Promise.all(ve.map(async ge=>{const de=ft(n,ge);return await N(de&&de._f?{[ge]:de}:de)}))).every(Boolean),!(!fe&&!r.isValid)&&m()):fe=J=await N(n);return f.state.next({...!tc(X)||(d.isValid||h.isValid)&&J!==r.isValid?{}:{name:X},...t.resolver||!X?{isValid:J}:{},errors:r.errors}),ie.shouldFocus&&!fe&&Uw(n,ee,X?ve:l.mount),fe},V=X=>{const ie={...o.mount?s:a};return Kn(X)?ie:tc(X)?ft(ie,X):X.map(J=>ft(ie,J))},ne=(X,ie)=>({invalid:!!ft((ie||r).errors,X),isDirty:!!ft((ie||r).dirtyFields,X),error:ft((ie||r).errors,X),isValidating:!!ft(r.validatingFields,X),isTouched:!!ft((ie||r).touchedFields,X)}),P=X=>{X&&zw(X).forEach(ie=>ia(r.errors,ie)),f.state.next({errors:X?r.errors:{}})},R=(X,ie,J)=>{const fe=(ft(n,X,{_f:{}})._f||{}).ref,ve=ft(r.errors,X)||{},{ref:ge,message:de,type:ye,..._e}=ve;Hr(r.errors,X,{..._e,...ie,ref:fe}),f.state.next({name:X,errors:r.errors,isValid:!1}),J&&J.shouldFocus&&fe&&fe.focus&&fe.focus()},H=(X,ie)=>il(X)?f.state.subscribe({next:J=>"values"in J&&X(T(void 0,ie),J)}):T(X,ie,!0),re=X=>f.state.subscribe({next:ie=>{Zkt(X.name,ie.name,X.exact)&&Xkt(ie,X.formState||d,I,X.reRenderRoot)&&X.callback({values:{...s},...r,...ie,defaultValues:a})}}).unsubscribe,ae=X=>(o.mount=!0,h={...h,...X.formState},re({...X,formState:h})),D=(X,ie={})=>{for(const J of X?zw(X):l.mount)l.mount.delete(J),l.array.delete(J),ie.keepValue||(ia(n,J),ia(s,J)),!ie.keepError&&ia(r.errors,J),!ie.keepDirty&&ia(r.dirtyFields,J),!ie.keepTouched&&ia(r.touchedFields,J),!ie.keepIsValidating&&ia(r.validatingFields,J),!t.shouldUnregister&&!ie.keepDefaultValue&&ia(a,J);f.state.next({values:Aa(s)}),f.state.next({...r,...ie.keepDirty?{isDirty:$()}:{}}),!ie.keepIsValid&&m()},U=({disabled:X,name:ie})=>{(Ds(X)&&o.mount||X||l.disabled.has(ie))&&(X?l.disabled.add(ie):l.disabled.delete(ie))},se=(X,ie={})=>{let J=ft(n,X);const fe=Ds(ie.disabled)||Ds(t.disabled);return Hr(n,X,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:X}},name:X,mount:!0,...ie}}),l.mount.add(X),J?U({disabled:Ds(ie.disabled)?ie.disabled:t.disabled,name:X}):_(X,!0,ie.value),{...fe?{disabled:ie.disabled||t.disabled}:{},...t.progressive?{required:!!ie.required,min:Zx(ie.min),max:Zx(ie.max),minLength:Zx(ie.minLength),maxLength:Zx(ie.maxLength),pattern:Zx(ie.pattern)}:{},name:X,onChange:W,onBlur:W,ref:ve=>{if(ve){se(X,ie),J=ft(n,X);const ge=Kn(ve.value)&&ve.querySelectorAll&&ve.querySelectorAll("input,select,textarea")[0]||ve,de=Hkt(ge),ye=J._f.refs||[];if(de?ye.find(_e=>_e===ge):ge===J._f.ref)return;Hr(n,X,{_f:{...J._f,...de?{refs:[...ye.filter(gQ),ge,...Array.isArray(ft(a,X))?[{}]:[]],ref:{type:ge.type,name:X}}:{ref:ge}}}),_(X,!1,void 0,ge)}else J=ft(n,X,{}),J._f&&(J._f.mount=!1),(t.shouldUnregister||ie.shouldUnregister)&&!(gTe(l.array,X)&&o.action)&&l.unMount.add(X)}}},te=()=>t.shouldFocusError&&Uw(n,ee,l.mount),Q=X=>{Ds(X)&&(f.state.next({disabled:X}),Uw(n,(ie,J)=>{const fe=ft(n,J);fe&&(ie.disabled=fe._f.disabled||X,Array.isArray(fe._f.refs)&&fe._f.refs.forEach(ve=>{ve.disabled=fe._f.disabled||X}))},0,!1))},K=(X,ie)=>async J=>{let fe;J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let ve=Aa(s);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:ge,values:de}=await E();r.errors=ge,ve=Aa(de)}else await N(n);if(l.disabled.size)for(const ge of l.disabled)ia(ve,ge);if(ia(r.errors,"root"),os(r.errors)){f.state.next({errors:{}});try{await X(ve,J)}catch(ge){fe=ge}}else ie&&await ie({...r.errors},J),te(),setTimeout(te);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:os(r.errors)&&!fe,submitCount:r.submitCount+1,errors:r.errors}),fe)throw fe},ue=(X,ie={})=>{ft(n,X)&&(Kn(ie.defaultValue)?Y(X,Aa(ft(a,X))):(Y(X,ie.defaultValue),Hr(a,X,Aa(ie.defaultValue))),ie.keepTouched||ia(r.touchedFields,X),ie.keepDirty||(ia(r.dirtyFields,X),r.isDirty=ie.defaultValue?$(X,Aa(ft(a,X))):$()),ie.keepError||(ia(r.errors,X),d.isValid&&m()),f.state.next({...r}))},B=(X,ie={})=>{const J=X?Aa(X):a,fe=Aa(J),ve=os(X),ge=ve?a:fe;if(ie.keepDefaultValues||(a=J),!ie.keepValues){if(ie.keepDirtyValues){const de=new Set([...l.mount,...Object.keys(Xx(a,s))]);for(const ye of Array.from(de))ft(r.dirtyFields,ye)?Hr(ge,ye,ft(s,ye)):Y(ye,ft(ge,ye))}else{if(uoe&&Kn(X))for(const de of l.mount){const ye=ft(n,de);if(ye&&ye._f){const _e=Array.isArray(ye._f.refs)?ye._f.refs[0]:ye._f.ref;if(DH(_e)){const Fe=_e.closest("form");if(Fe){Fe.reset();break}}}}if(ie.keepFieldsRef)for(const de of l.mount)Y(de,ft(ge,de));else n={}}s=t.shouldUnregister?ie.keepDefaultValues?Aa(a):{}:Aa(ge),f.array.next({values:{...ge}}),f.state.next({values:{...ge}})}l={mount:ie.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!ie.keepIsValid||!!ie.keepDirtyValues,o.watch=!!t.shouldUnregister,f.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ve?!1:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!tu(X,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ve?{}:ie.keepDirtyValues?ie.keepDefaultValues&&s?Xx(a,s):r.dirtyFields:ie.keepDefaultValues&&X?Xx(a,X):ie.keepDirty?r.dirtyFields:{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitSuccessful:ie.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},pe=(X,ie)=>B(il(X)?X(s):X,ie),G=(X,ie={})=>{const J=ft(n,X),fe=J&&J._f;if(fe){const ve=fe.refs?fe.refs[0]:fe.ref;ve.focus&&(ve.focus(),ie.shouldSelect&&il(ve.select)&&ve.select())}},I=X=>{r={...r,...X}},q={control:{register:se,unregister:D,getFieldState:ne,handleSubmit:K,setError:R,_subscribe:re,_runSchema:E,_focusError:te,_getWatch:T,_getDirty:$,_setValid:m,_setFieldArray:g,_setDisabledField:U,_setErrors:x,_getFieldArray:F,_reset:B,_resetDefaultValues:()=>il(t.defaultValues)&&t.defaultValues().then(X=>{pe(X,t.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:A,_disableForm:Q,_subjects:f,_proxyFormState:d,get _fields(){return n},get _formValues(){return s},get _state(){return o},set _state(X){o=X},get _defaultValues(){return a},get _names(){return l},set _names(X){l=X},get _formState(){return r},get _options(){return t},set _options(X){t={...t,...X}}},subscribe:ae,trigger:Z,register:se,handleSubmit:K,watch:H,setValue:Y,getValues:V,reset:pe,resetField:ue,clearErrors:P,unregister:D,setError:R,setFocus:G,getFieldState:ne};return{...q,formControl:q}}function n_t(e={}){const t=ce.useRef(void 0),r=ce.useRef(void 0),[n,a]=ce.useState({isDirty:!1,isValidating:!1,isLoading:il(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:il(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!il(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...l}=r_t(e);t.current={...l,formState:n}}const s=t.current.control;return s._options=e,poe(()=>{const o=s._subscribe({formState:s._proxyFormState,callback:()=>a({...s._formState}
vendor: 5,134 bytes, line 8107
8107),reRenderRoot:!0});return a(l=>({...l,isReady:!0})),s._formState.isReady=!0,o},[s]),ce.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),ce.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),ce.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),ce.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),ce.useEffect(()=>{if(s._proxyFormState.isDirty){const o=s._getDirty();o!==n.isDirty&&s._subjects.state.next({isDirty:o})}},[s,n.isDirty]),ce.useEffect(()=>{e.values&&!tu(e.values,r.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),r.current=e.values,a(o=>({...o}))):s._resetDefaultValues()},[s,e.values]),ce.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=yTe(n,s),t.current}const q0e=(e,t,r)=>{if(e&&"reportValidity"in e){const n=ft(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},ETe=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?q0e(n.ref,r,e):n.refs&&n.refs.forEach(a=>q0e(a,r,e))}},a_t=(e,t)=>{t.shouldUseNativeValidation&&ETe(e,t);const r={};for(const n in e){const a=ft(t.fields,n),s=Object.assign(e[n]||{},{ref:a&&a.ref});if(i_t(t.names||Object.keys(e),n)){const o=Object.assign({},ft(r,n));Hr(o,"root",s),Hr(r,n,o)}else Hr(r,n,s)}return r},i_t=(e,t)=>e.some(r=>r.startsWith(t+"."));var s_t=function(e,t){for(var r={};e.length;){var n=e[0],a=n.code,s=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[o]={message:l.message,type:l.code}}else r[o]={message:s,type:a};if("unionErrors"in n&&n.unionErrors.forEach(function(d){return d.errors.forEach(function(h){return e.push(h)})}),t){var c=r[o].types,u=c&&c[n.code];r[o]=xTe(o,t,r,a,u?[].concat(u,n.message):n.message)}e.shift()}return r},o_t=function(e,t,r){return r===void 0&&(r={}),function(n,a,s){try{return Promise.resolve(function(o,l){try{var c=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(u){return s.shouldUseNativeValidation&&ETe({},s),{errors:{},values:r.raw?n:u}})}catch(u){return l(u)}return c&&c.then?c.then(void 0,l):c}(0,function(o){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(o))return{values:{},errors:a_t(s_t(o.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw o}))}catch(o){return Promise.reject(o)}}};const l_t=$kt,CTe=k.createContext({}),Pl=({...e})=>i.jsx(CTe.Provider,{value:{name:e.name},children:i.jsx(qkt,{...e})}),NG=()=>{const e=k.useContext(CTe),t=k.useContext(NTe),{getFieldState:r,formState:n}=CG(),a=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...a}},NTe=k.createContext({}),qo=k.forwardRef(({className:e,...t},r)=>{const n=k.useId();return i.jsx(NTe.Provider,{value:{id:n},children:i.jsx("div",{ref:r,className:De("space-y-2",e),...t})})});qo.displayName="FormItem";const Ho=k.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:a}=NG();return i.jsx(Nt,{ref:r,className:De(n&&"text-destructive",e),htmlFor:a,...t})});Ho.displayName="FormLabel";const as=k.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:a,formMessageId:s}=NG();return i.jsx(Sae,{ref:t,id:n,"aria-describedby":r?`${a} ${s}`:`${a}`,"aria-invalid":!!r,...e})});as.displayName="FormControl";const c_t=k.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=NG();return i.jsx("p",{ref:r,id:n,className:De("text-sm text-muted-foreground",e),...t})});c_t.displayName="FormDescription";const Vo=k.forwardRef(({className:e,children:t,...r},n)=>{const{error:a,formMessageId:s}=NG(),o=a?String(a==null?void 0:a.message):t;return o?i.jsx("p",{ref:n,id:s,className:De("text-sm font-medium text-destructive",e),...r,children:o}):null});Vo.displayName="FormMessage";const u_t=n4({firstName:Un().trim().min(1,"First name is required").max(25,"First name must be 25 characters or less (printing limit)"),lastName:Un().trim().min(1,"Last name is required").max(25,"Last name must be 25 characters or less (printing limit)"),email:Un().trim().email("Invalid email address").max(255,"Email must be less than 255 characters"),street1:Un().trim().min(1,"Street address is required").max(30,"Street address must be 30 characters or less (printing limit)"),street2:Un().max(30,"Apt/Suite must be 30 characters or less (printing limit)").optional(),city:Un().trim().min(1,"City is required").max(30,"City must be 30 characters or less (printing limit)"),state:Un().optional(),postcode:Un().trim().min(1,"Postal code is required").max(20,"Postal code must be less than 20 characters"),country:Un().min(2,"Country is required"),phone:Un().trim().min(1,"Phone number is required").max(30,"Phone number must be less than 30 characters")}).superRefine((e,t)=>
8107{var r;if((e.country==="US"||e.country==="CA"||e.country==="JP")&&!((r=e.state)!=null&&r.trim())&&t.addIssue({code:Kh.custom,message:e.country==="JP"?"Prefecture is required for Japan":"State/Province is required for US and Canada",path:["state"]}),e.country==="US"){if(!/^\d{5}(-\d{4})?$/.test(e.postcode.trim()))t.addIssue({code:Kh.custom,message:"US ZIP code must be in format 12345 or 12345-6789",path:["postcode"]});else if(e.state){const a=_wt(e.postcode.trim(),e.state);a&&t.addIssue({code:Kh.custom,message:a,path:["postcode"]})}}e.country==="CA"&&(/^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/.test(e.postcode.trim())||t.addIssue({code:Kh.custom,message:"Canadian postal code must be in format A1A 1A1",path:["postcode"]})),e.country==="JP"&&(/^\d{3}-?\d{4}$/.test(e.postcode.trim())||t.addIssue({code:Kh.custom,message:"Japanese postal code must be in format 123-4567",path:["postcode"]}),e.city&&/[\u3040-\u309F\u30A0-\u30FF\u4E00-\u9FFF]/.test(e.city)&&t.addIssue({code:Kh.custom,message:"Please enter city in English (romaji), e.g. Shinjuku-ku",path:["city"]}),e.street1&&/[\u3040-\u309F\u30A0-\u30FF\u4E00-\u9FFF]/.test(e.street1)&&t.addIssue({code:Kh.custom,message:"Please enter street address in English (romaji), e.g. 1-2-3 Nishi-Shinjuku",path:["street1"]}))});function d_t(){const{storyId:e}=Ou(),t=wt(),[r]=ka(),{user:n,profile:a}=er(),{toast:s}=Xt(),o=r.get("mode")==="book-club",[l,c]=k.useState(""),[u,d]=k.useState(""),[h,f]=k.useState(()=>{const H=r.get("format");return H==="paperback"||H==="hardcover"?H:"paperback"}),[p,y]=k.useState(1),[m,v]=k.useState(!0),[g,b]=k.useState(!1),[x,_]=k.useState([]),[w,j]=k.useState(""),E=k.useRef(0),[C,N]=k.useState(""),[A,$]=k.useState(""),T=()=>{try{const H=localStorage.getItem("kibbi_shipping_address");if(H)return JSON.parse(H)}catch(H){console.error("Failed to load saved address:",H)}return{firstName:"",lastName:"",email:(n==null?void 0:n.email)||"",street1:"",street2:"",city:"",state:"",postcode:"",country:"US",phone:""}},F=n_t({resolver:o_t(u_t),defaultValues:T(),mode:"onBlur"});k.useEffect(()=>{if(!e){t("/library");return}n!=null&&n.id&&(ee(),Z())},[e,n==null?void 0:n.id]),k.useEffect(()=>{n!=null&&n.email&&!F.getValues("email")&&F.setValue("email",n.email||"")},[n]);const M=F.watch(),z=JSON.stringify([h,p,o,M.country,M.state,M.postcode,M.city,M.street1,M.street2]),Y=k.useRef(z);Y.current=z;const W=w===z?x:[];k.useEffect(()=>{E.current++,N(""),b(!1);const H=setTimeout(()=>{V()&&ne()},500);return()=>clearTimeout(H)},[z]),k.useEffect(()=>{const H=F.watch(re=>{localStorage.setItem("kibbi_shipping_address",JSON.stringify(re))});return()=>H.unsubscribe()},[F]);const ee=async()=>{var H,re,ae;try{if(!(n!=null&&n.id))return;const{data:D,error:U}=await oe.functions.invoke("verify-print-order-access",{body:{storyId:e,isBookClub:o}});if(U||!D){const se=((H=U==null?void 0:U.context)==null?void 0:H.reason)||(D==null?void 0:D.reason);se==="not_found"?(s({title:"Story not found",description:"This story does not exist",variant:"destructive"}),t("/library")):se==="not_owner"?(s({title:"Access denied",description:"You don't have permission to order this story",variant:"destructive"}),t("/library")):se==="purchase_required"?(s({title:"Purchase required",description:"Please purchase the digital version first",variant:"destructive"}),t(`/app/book-preview?id=${e}`)):(s({title:"Error",description:"Failed to load story details",variant:"destructive"}),t("/library"));return}if(!D.allowed){const se=D.reason;se==="not_owner"?(s({title:"Access denied",description:"You don't have permission to order this story",variant:"destructive"}),t("/library")):se==="purchase_required"?(s({title:"Purchase required",description:"Please purchase the digital version first",variant:"destructive"}),t(`/app/book-preview?id=${e}`)):se==="not_found"?(s({title:"Story not found",description:"This story does not exist",variant:"destructive"}),t("/library")):(s({title:"Error",description:"Failed to load story details",variant:"destructive"}),t("/library"));return}c(((re=D.story)==null?void 0:re.story_title)||"Your Story"),d(((ae=D.story)==null?void 0:ae.cover_image_url)||"")}catch(D){console.error("Error loading story:",D),s({title:"Error",description:"Failed to load story details",variant:"destructive"}),t("/library")}finally{v(!1)}},Z=async()=>{const H=localStorage.getItem("kibbi_shipping_address");
8107if(H)try{if(JSON.parse(H).country)return}catch{}try{const ae=await(await fetch("https://ipapi.co/json/")).json();ae.country_code&&F.setValue("country",ae.country_code)}catch(re){console.error("Failed to detect country:",re)}},V=()=>{const H=F.getValues(),re=["country","city","street1","postcode"];return(H.country==="US"||H.country==="CA"||H.country==="JP")&&re.push("state"),re.every(ae=>{var D;return(D=H[ae])==null?void 0:D.trim()})},ne=async()=>{var D,U,se,te,Q;if(!V())return;const H=F.getValues();if((((D=H.firstName)==null?void 0:D.trim().length)??0)>25||(((U=H.lastName)==null?void 0:U.trim().length)??0)>25||(((se=H.street1)==null?void 0:se.trim().length)??0)>30||(((te=H.street2)==null?void 0:te.trim().length)??0)>30||(((Q=H.city)==null?void 0:Q.trim().length)??0)>30)return;b(!0);const re=++E.current,ae=z;try{const K=F.getValues(),{data:ue,error:B}=await oe.functions.invoke("get-lulu-shipping-options",{body:{productType:h,quantity:p,pageCount:24,shippingAddress:K,currency:"USD"}});if(re!==E.current||ae!==Y.current)return;if(B){let pe=B.message||"";try{const G=B.context;if(G&&typeof G.json=="function"){const I=await G.json();pe=(I==null?void 0:I.error)||(I==null?void 0:I.message)||JSON.stringify(I)}else G&&typeof G.text=="function"&&(pe=await G.text())}catch{}throw new Error(pe||"Could not fetch shipping rates.")}if(ue&&Array.isArray(ue)){const pe=ywt(ue,o,h);_(pe),j(ae),pe.length>0&&N(pe[0].level)}}catch(K){if(re!==E.current||ae!==Y.current)return;console.error("Error fetching shipping options:",K);const ue=(K==null?void 0:K.message)||"",B=/address|postal|postcode|zip|city|state|street|country|line|character|length/i.test(ue);s({title:B?"Please check your address":"Shipping Error",description:ue||"Could not fetch shipping rates. Please check your address.",variant:"destructive"})}finally{re===E.current&&ae===Y.current&&b(!1)}},P=async()=>{if(!await F.trigger()){const U=F.formState.errors,se=Object.keys(U)[0];if(se){F.setFocus(se);const te=document.querySelector(`[name="${se}"]`);te==null||te.scrollIntoView({behavior:"smooth",block:"center"})}s({title:"Please fix the highlighted fields",description:"Some address fields exceed the printing limit or are missing.",variant:"destructive"});return}if(g||w!==Y.current)return;if(!C){s({title:"Select Shipping Method",description:"Please select a shipping method.",variant:"destructive"});return}const re=W.find(U=>U.level===C);if(!re)return;const ae=F.getValues(),D={storyId:e,productType:h,quantity:p,shippingAddress:ae,shippingLevel:C,shippingCost:re.shippingCost,...!o&&{unitAmount:re.unitAmount,shippingAmount:re.price,quotedTotal:re.unitAmount*p+re.price},mode:o?"book-club":"print",...o&&A.trim()?{childName:A.trim()}:{}};localStorage.setItem("kibbi_pending_order",JSON.stringify(D)),t(`/order-print/${e}/payment`)},R=wwt(F.watch("country")||"US");return m?i.jsx("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})}):i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Shipping Details - kibbi | Order Print"}),i.jsx("meta",{name:"description",content:"Enter your shipping address and select shipping options for your printed storybook."}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted",children:[i.jsx("header",{className:"sticky top-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:i.jsx("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:i.jsx("a",{href:"/library",className:"flex items-center",children:i.jsx("img",{src:va,alt:"Kibbi",className:"h-10"})})})}),i.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[i.jsxs(le,{variant:"ghost",onClick:()=>t(`/app/book-preview?id=${e}`),className:"mb-6",children:[i.jsx(ea,{className:"mr-2 h-4 w-4"}),"Back to Book Preview"]}),i.jsxs("div",{className:"bg-card rounded-lg shadow-lg p-6 space-y-6",children:[i.jsxs("div",{className:"flex items-center gap-4 pb-6 border-b",children:[u&&i.jsx("img",{src:u,alt:l,className:"w-20 h-20 object-cover rounded-lg"}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold",children:l}),i.jsx("p",{className:"text-muted-foreground",children:o?"Join the Book Club":"Order Print Copy"})]})]}),o&&i.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-lg p-4 space-y-3",children:[i.jsxs("h2",{className:"text-lg font-semibold",children:["Kibbi Book Club â ",Gi.BOOK_CLUB.tiers[h].label,"/month"]}),i.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[i.jsxs("li",{children:[h==="hardcover"?"Hardcover":"Paperback"," book delivered every month"]}),i.jsx("li",{children:"Your characters carry over between books"}),i.jsx("li",{children:"Cancel anytime"})]}),i.jsxs("div",{className:"pt-1",children:[i.jsx(Nt,{htmlFor:"childName",className:"text-sm font-medium",children:"Child's first name"}),i.jsx(Pt,{id:"childName",value:A,onChange:H=>$(H.target.value),placeholder:"e.g., Luna",maxLength:50,className:"mt-1 max-w-xs"}),i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Used to personalize their book club series on your dashboard"})]})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsx("h2",{className:"text-xl font-semibold",children:o?"Choose Your Format":"Select Product Type"}),i.jsx(OH,{value:h,onValueChange:H=>f(H),children:i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[i.jsxs(Nt,{htmlFor:"paperback",className:`flex items-center space-x-3 border-2 rounded-lg p-4 cursor-pointer hover:bg-accent ${h==="paperback"?"border-primary":""}`,children:[i.jsx(Bw,{value:"paperback",id:"paperback"}),i.jsx(xr,{className:"h-8 w-8"}),i.jsxs("div",{children:[i.jsx("div",{className:"font-semibold",children:"Paperback"}),i.jsx("div",{className:"text-sm text-muted-foreground",children:o?`${Gi.BOOK_CLUB.tiers.paperback.label}/mo + shipping`:O2.paperback.label})]})]}),i.jsxs(Nt,{htmlFor:"hardcover",className:`relative flex items-center space-x-3 border-2 rounded-lg p-4 cursor-pointer hover:bg-accent ${h==="hardcover"?"border-primary":""}`,children:[i.jsx(Bw,{value:"hardcover",id:"hardcover"}),i.jsx(hu,{className:"h-8 w-8"}),i.jsxs("div",{children:[i.jsx("div",{className:"font-semibold",children:"Hardcover"}),i.jsx("div",{className:"text-sm text-muted-foreground",children:o?`${Gi.BOOK_CLUB.tiers.hardcover.label}/mo + shipping`:O2.hardcover.label})]}),o&&i.jsx("span",{className:"absolute -top-2 right-2 bg-primary text-primary-foreground text-xs font-medium px-2 py-0.5 rounded-full",children:"Most Popular"})]})]})})]}),!o&&i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"quantity",children:"Quantity"}),i.jsx(Pt,{id:"quantity",type:"number",inputMode:"numeric",min:1,max:10,value:Number.isFinite(p)&&p>
81070?p:"",onChange:H=>{const re=H.target.value;if(re===""){y(NaN);return}const ae=parseInt(re,10);Number.isNaN(ae)||y(Math.min(10,Math.max(1,ae)))},onBlur:()=>{(!Number.isFinite(p)||p<1)&&y(1)}})]}),i.jsx(l_t,{...F,children:i.jsxs("div",{className:"space-y-4",children:[i.jsx("h2",{className:"text-xl font-semibold",children:"Shipping Address"}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[i.jsx(Pl,{control:F.control,name:"firstName",render:({field:H})=>i.jsxs(qo,{children:[i.jsxs(Ho,{children:["First Name ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsx(as,{children:i.jsx(Pt,{...H})}),i.jsx(Vo,{})]})}),i.jsx(Pl,{control:F.control,name:"lastName",render:({field:H})=>i.jsxs(qo,{children:[i.jsxs(Ho,{children:["Last Name ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsx(as,{children:i.jsx(Pt,{...H})}),i.jsx(Vo,{})]})})]}),i.jsx(Pl,{control:F.control,name:"email",render:({field:H})=>i.jsxs(qo,{children:[i.jsxs(Ho,{children:["Email ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsx(as,{children:i.jsx(Pt,{type:"email",...H})}),i.jsx(Vo,{})]})}),i.jsx(Pl,{control:F.control,name:"street1",render:({field:H})=>{const re=(H.value??"").length,ae=re>30;return i.jsxs(qo,{children:[i.jsxs(Ho,{className:"flex items-center justify-between",children:[i.jsxs("span",{children:["Street Address ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsxs("span",{className:`text-xs font-normal ${ae?"text-destructive":"text-muted-foreground"}`,children:[re,"/30"]})]}),i.jsx(as,{children:i.jsx(Pt,{placeholder:R.street1,maxLength:60,...H})}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Our print partner limits this line to 30 characters. If your address is longer, put the rest on the Apartment/Suite line below."}),i.jsx(Vo,{})]})}}),i.jsx(Pl,{control:F.control,name:"street2",render:({field:H})=>{const re=(H.value??"").length,ae=re>30;return i.jsxs(qo,{children:[i.jsxs(Ho,{className:"flex items-center justify-between",children:[i.jsx("span",{children:"Apartment, Suite, etc. (optional)"}),i.jsxs("span",{className:`text-xs font-normal ${ae?"text-destructive":"text-muted-foreground"}`,children:[re,"/30"]})]}),i.jsx(as,{children:i.jsx(Pt,{maxLength:60,...H})}),i.jsx(Vo,{})]})}}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[i.jsx(Pl,{control:F.control,name:"city",render:({field:H})=>i.jsxs(qo,{children:[i.jsxs(Ho,{children:["City ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsx(as,{children:i.jsx(Pt,{placeholder:R.city,...H})}),i.jsx(Vo,{})]})}),i.jsx(Pl,{control:F.control,name:"state",render:({field:H})=>i.jsxs(qo,{children:[i.jsxs(Ho,{children:[F.watch("country")==="JP"?"Prefecture":"State/Province",(F.watch("country")==="US"||F.watch("country")==="CA"||F.watch("country")==="JP")&&i.jsx("span",{className:"text-destructive",children:" *"})]}),F.watch("country")==="US"?i.jsxs(rn,{onValueChange:H.onChange,value:H.value,children:[i.jsx(as,{children:i.jsx(Wr,{children:i.jsx(nn,{placeholder:"Select state"})})}),i.jsx(Gr,{children:IH.map(re=>i.jsx(pt,{value:re.code,children:re.name},re.code))})]}):F.watch("country")==="CA"?i.jsxs(rn,{onValueChange:H.onChange,value:H.value,children:[i.jsx(as,{children:i.jsx(Wr,{children:i.jsx(nn,{placeholder:"Select province"})})}),i.jsx(Gr,{children:U8e.map(re=>i.jsx(pt,{value:re.code,children:re.name},re.code))})]}):F.watch("country")==="JP"?i.jsxs(rn,{onValueChange:H.onChange,value:H.value,children:[i.jsx(as,{children:i.jsx(Wr,{children:i.jsx(nn,{placeholder:"Select prefecture"})})}),i.jsx(Gr,{children:bwt.map(re=>i.jsx(pt,{value:re.code,children:re.name},re.code))})]}):i.jsx(as,{children:i.jsx(Pt,{placeholder:R.state,...H})}),i.jsx(Vo,{})]})}),i.jsx(Pl,{control:F.control,name:"postcode",render:({field:H})=>i.jsxs(qo,{children:[i.jsxs(Ho,{children:["Postal Code ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsx(as,{children:i.jsx(Pt,{placeholder:R.postcode,...H})}),F.watch("country")==="US"&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Format: 12345 or 12345-6789 (ZIP+4 recommended for accurate delivery)"}),F.watch("country")==="CA"&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Format: A1A 1A1"}),F.watch("country")==="GB"&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Format: SW1A 2AA"}),F.watch("country")==="JP"&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Format: 123-4567 (7 digits, e.g. 160-0023). Enter address in English (romaji)."}),i.jsx(Vo,{})]})})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[i.jsx(Pl,{control:F.control,name:"country",render:({field:H})=>i.jsxs(qo,{children:[i.jsxs(Ho,{children:["Country ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsxs(rn,{onValueChange:H.onChange,value:H.value,children:[i.jsx(as,{children:i.jsx(Wr,{children:i.jsx(nn,{})})}),i.jsx(Gr,{children:q8e.map(re=>i.jsx(pt,{value:re.code,children:re.name},re.code))})]}),i.jsx(Vo,{})]})}),i.jsx(Pl,{control:F.control,name:"phone",render:({field:H})=>i.jsxs(qo,{children:[i.jsxs(Ho,{children:["Phone ",i.jsx("span",{className:"text-destructive",children:"*"})]}),i.jsx(as,{children:i.jsx(Pt,{type:"tel",placeholder:R.phone,...H})}),i.jsx(Vo,{})]})})]})]})}),g&&i.jsxs("div",{className:"flex items-center justify-center py-4 text-muted-foreground",children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Loading shipping options..."]}),W.length>0&&i.jsxs("div",{className:"space-y-4",children:[i.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-4",children:i.jsxs("p",{className:"text-sm text-yellow-800",children:[i.jsx("strong",{children:"Note:"})," Standard production time is 6-8 business days before shipment. During busy holiday seasons, production times may increase to 9-12 business days or more."]})}),i.jsx("h2",{className:"text-xl font-semibold",children:"Select Shipping Method"}),i.jsx(OH,{value:C,onValueChange:N,children:i.jsx("div",{className:"space-y-3",children:W.map(H=>i.jsxs(Nt,{htmlFor:H.level,className:"flex items-center justify-between border-2 rounded-lg p-4 cursor-pointer hover:bg-accent",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx(Bw,{value:H.level,id:H.level}),i.jsxs("div",{children:[i.jsx("div",{className:"font-medium",children:H.level}),i.jsx("div",{className:"text-sm text-muted-foreground",children:H.delivery_estimate})]})]}),i.jsxs("div",{className:"font-semibold","data-testid":`shipping-price-${H.level}`,children:["$",(H.price/100).toFixed(2)]})]},H.level))})})]}),i.jsx(le,{onClick:P,disabled:g||!C||W.length===0,className:"w-full",size:"lg",children:"Continue to Payment"})]})]})]})]})}function h_t({orderId:e,paymentIntentId:t,orderAmount:r,chargedAmountCents:n,onSuccess:a,isBookClub:s}){const o=_G(),l=kG(),[c,u]=k.useState(!1),[d,h]=k.useState(!1),{toast:f}=Xt(),p=async y=>{if(y.preventDefault(),!o||!l){f({title:"Payment system not ready",description:"Please wait a moment and try again.",variant:"destructive"});return}u(!0);try{const{error:m}=await l.submit();if(m)throw m;const{error:v,paymentIntent:g}=await o.confirmPayment({elements:l,confirmParams:{return_url:window.location.origin+(s?"/dashboard":"/orders")},redirect:"if_required"});if(v){f({title:"Payment failed",description:v.message,variant:"destructive"}),u(!1);return}if(p4(g),!s){const{data:b,error:x}=await oe.functions.invoke("confirm-print-order",{body:{orderId:e,paymentIntentId:t}});if(x)throw x}f({title:s?"Welcome to the Book Club!":"Order placed successfully!",description:s?"Your first book is being created. You'll receive a new hardcover every month.":"Your book is being prepared for printing. You can track its status in your orders page."}),window.fbq&&window.fbq("track","Purchase",{value:(n??r)/100,currency:"USD",content_type:"product",content_name:s?"Kibbi Book Club":"Kibbi Print Order"},t?{eventID:t}:void 0),a()}catch(m){console.error("Error confirming payment:",m),f({title:"Error",description:m.message||"Failed to process order",variant:"destructive"})}finally{u(!1)}};return i.jsxs("form",{onSubmit:p,className:"space-y-6",children:[i.jsx(SG,{onReady:()=>h(!0),options:{layout:{type:"accordion",defaultCollapsed:!1,radios:!0,spacedAccordionItems:!0}}}),i.jsx(le,{type:"submit",disabled:!o||!d||c,className:"w-full",size:"lg",children:c?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Processing..."]}):d?s?"Subscribe and order book":"Place Order":i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Loading payment..."]})})]})}function f_t(){const{storyId:e}=Ou(),t=wt(),{toast:r}=Xt(),n=El(),{setBookClubFlow:a}=Zs(),[s,o]=k.useState(""),[l,c]=k.useState(""),[u,d]=k.useState(!0),[h,f]=k.useState(""),[p,y]=k.useState(""),[m,v]=k.useState(""),[g,b]=k.useState(null),[x,_]=k.useState(null),[w,j]=k.useState(null);k.useEffect(()=>{j(Dv("pk_live_51RCFHxACvtIVItsaBYp3zmtR8bGqG74cndw9Qg2IpS3My4lapcnaUlNryFmE7Cff5wrTvoP4ssqqTcM4cdrxMitW00I0Aao1fS"))},[]),k.useEffect(()=>{if(!e){t("/library");return}const z=localStorage.getItem("kibbi_pending_order");if(!z){r({title:"No order found",description:"Please start from the shipping page",variant:"destructive"}),t(`/order-print/${e}`);return}const Y=JSON.parse(z);if(Y.storyId!==e){r({title:"Order mismatch",description:"Please start your order again",variant:"destructive"}),t(`/order-print/${e}`);return}if(Y.mode!=="book-club"){const W=vwt(Y);if(W){r({title:"Refresh your shipping price",description:W,variant:"destructive"}),t(`/order-print/${e}`);return}}_(Y),Y.mode==="book-club"?E(Y):C(Y)},[e]);const E=async z=>{try{const{data:Y,error:W}=await oe.from("stories").select("story_title, cover_image_url, age_range, reading_level, illustration_style, language").eq("id",e).single();if(W)throw W;o(Y.story_title||"Your Story"),c(Y.cover_image_url||"");const ee=z.shippingAddress,Z={name:`${ee.firstName} ${ee.lastName}`.trim(),line1:ee.street1,line2:ee.street2||"",city:ee.city,state:ee.state||"",postal_code:ee.postcode,country:ee.country,phone:ee.phone||""},{data:V,error:ne}=await oe.functions.invoke("create-book-club-subscription",{body:{storyId:e,shippingAddress:Z,childName:z.childName||null,ageRange:Y.age_range,readingLevel:Y.reading_level||"read-aloud",illustrationStyle:Y.illustration_style||"watercolor-pastel",language:Y.language||"english",shippingAmount:z.shippingCost,shippingLevel:z.shippingLevel||"MAIL",productType:z.productType||"hardcover"}});if(ne||V!=null&&V.error)throw new Error((V==null?void 0:V.error)||(ne==null?void 0:ne.message)||"Failed to create subscription");if(V.adminBypass){localStorage.removeItem("kibbi_pending_order"),localStorage.removeItem("kibbi_book_club_flow"),a(!1),r({title:"Subscription created!",description:"Book club series activated (admin)."}),n.invalidateQueries({queryKey:["subscription"]}),n.invalidateQueries({queryKey:["profile"]}),t("/dashboard");return}f(V.clientSecret),y(V.bookClubSubscriptionId||""),v(soe(V.clientSecret)??""),b(typeof V.amount=="number"?V.amount:null)}catch(Y){console.error("Error:",Y),r({title:"Error",description:Y.message||"Failed to create subscription",variant:"destructive"}),t(`/order-print/${e}?mode=book-club`)}finally{d(!1)}},C=async z=>{try{const{data:Y,error:W}=await oe.from("stories").select("story_title, cover_image_url").eq("id",e).single();if(W)throw W;o(Y.story_title||"Your Story"),c(Y.cover_image_url||"");const{data:ee,error:Z}=await oe.functions.invoke("create-print-order",{body:{storyId:e,productType:z.productType,quantity:z.quantity,unitAmou
8107nt:z.unitAmount,quotedTotal:z.quotedTotal,shippingAddress:z.shippingAddress,shippingCost:z.shippingCost,shippingLevel:z.shippingLevel}});if(Z)throw Z;if(!Number.isSafeInteger(ee==null?void 0:ee.finalAmount)||ee.finalAmount<z.unitAmount*z.quantity)throw new Error("Could not confirm the order total. Please choose shipping again.");f(ee.clientSecret),y(ee.orderId),v(ee.paymentIntentId),b(typeof ee.finalAmount=="number"?ee.finalAmount:null)}catch(Y){console.error("Error:",Y),r({title:"Error",description:await xwt(Y)||"Failed to create order",variant:"destructive"}),t(`/order-print/${e}`)}finally{d(!1)}},N=()=>{localStorage.removeItem("kibbi_pending_order"),localStorage.removeItem("kibbi_book_club_flow"),a(!1),(x==null?void 0:x.mode)==="book-club"?(n.invalidateQueries({queryKey:["subscription"]}),n.invalidateQueries({queryKey:["profile"]}),t("/dashboard")):t("/orders")},A=(x==null?void 0:x.mode)==="book-club",$=(x==null?void 0:x.productType)||"hardcover",T=x?(x.unitAmount??O2[x.productType].amount)*x.quantity:0,F=g===null?0:g-T,M=A?(_Ye($)+((x==null?void 0:x.shippingCost)||0))/100:(g??0)/100;return u||!h?i.jsx("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted flex items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin mx-auto mb-4"}),i.jsx("p",{className:"text-muted-foreground",children:"Preparing payment..."})]})}):i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Payment - kibbi | Complete Order"}),i.jsx("meta",{name:"description",content:"Complete your payment to order a printed version of your personalized storybook."}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted",children:[i.jsx("header",{className:"sticky top-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border",children:i.jsx("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:i.jsx("a",{href:"/library",className:"flex items-center",children:i.jsx("img",{src:va,alt:"Kibbi",className:"h-10"})})})}),i.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[i.jsxs(le,{variant:"ghost",onClick:()=>t(`/order-print/${e}`),className:"mb-6",children:[i.jsx(ea,{className:"mr-2 h-4 w-4"}),"Back to Shipping"]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"bg-card rounded-lg shadow-lg p-6 h-fit",children:[i.jsx("h2",{className:"text-xl font-bold mb-4",children:"Order Summary"}),l&&i.jsx("img",{src:l,alt:s,className:"w-full h-48 object-cover rounded-lg mb-4"}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{children:[i.jsx("div",{className:"font-semibold",children:s}),i.jsx("div",{className:"text-sm text-muted-foreground",children:(x==null?void 0:x.productType)==="paperback"?"Paperback":"Hardcover"})]}),i.jsx("div",{className:"border-t pt-3 space-y-2",children:A?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsxs("span",{children:["Book Club (",$==="paperback"?"Paperback":"Hardcover",", monthly)"]}),i.jsx("span",{children:Gi.BOOK_CLUB.tiers[$].label})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{children:"Shipping"}),i.jsxs("span",{children:["$",(((x==null?void 0:x.shippingCost)??0)/100).toFixed(2)]})]}),i.jsxs("div",{className:"flex justify-between font-bold text-lg border-t pt-2",children:[i.jsx("span",{children:"Total / month"}),i.jsxs("span",{children:["$",M.toFixed(2)]})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsxs("span",{children:["Product (",x==null?void 0:x.quantity,"x)"]}),i.jsxs("span",{"data-testid":"print-product-amount",children:["$",(T/100).toFixed(2)]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{children:"Shipping"}),i.jsxs("span",{"data-testid":"print-shipping-amount",children:["$",(F/100).toFixed(2)]})]}),i.jsxs("div",{className:"flex justify-between font-bold text-lg border-t pt-2",children:[i.jsx("span",{children:"Total"}),i.jsxs("span",{"data-testid":"print-total-amount",children:["$",M.toFixed(2)]})]})]})}),i.jsxs("div",{className:"border-t pt-3 text-sm text-muted-foreground",children:[i.jsx("p",{className:"font-semibold mb-1",children:"Shipping to:"}),i.jsxs("p",{children:[x==null?void 0:x.shippingAddress.firstName," ",x==null?void 0:x.shippingAddress.lastName]}),i.jsx("p",{children:x==null?void 0:x.shippingAddress.street1}),(x==null?void 0:x.shippingAddress.street2)&&i.jsx("p",{children:x==null?void 0:x.shippingAddress.street2}),i.jsxs("p",{children:[x==null?void 0:x.shippingAddress.city,", ",x==null?void 0:x.shippingAddress.state," ",x==null?void 0:x.shippingAddress.postcode]}),i.jsx("p",{children:x==null?void 0:x.shippingAddress.country})]})]})]}),i.jsxs("div",{className:"bg-card rounded-lg shadow-lg p-6",children:[i.jsx("h2",{className:"text-xl font-bold mb-4",children:"Payment Details"}),i.jsx(f4,{stripe:w,options:{clientSecret:h,appearance:{theme:"stripe"}},children:i.jsx(h_t,{orderId:p,paymentIntentId:m,orderAmount:M*100,chargedAmountCents:g,onSuccess:N,isBookClub:A})})]})]})]})]})]})}const p_t={firstName:"",lastName:"",street1:"",street2:"",city:"",state:"",postcode:"",country:"US",phone:""};function m_t(e){const t=(e.name||"").split(" "),r=t[0]||"",n=t.slice(1).join(" ")||"";return{firstName:r,lastName:n,street1:e.line1||"",street2:e.line2||"",city:e.city||"",state:e.state||"",postcode:e.postal_code||"",country:e.country||"US",phone:e.phone||""}}function g_t(e){return{name:`${e.firstName} ${e.lastName}`.trim(),line1:e.street1,line2:e.street2,city:e.city,state:e.state,postal_code:e.postcode,country:e.country,phone:e.phone}}function y_t(e,t){return{firstName:e.firstName,lastName:e.lastName,email:t,street1:e.street1,street2:e.street2,city:e.city,state:e.state,postcode:e.postcode,country:e.country,phone:e.phone}}function v_t(){const{user:e}=er(),[t,r]=k.useState(p_t),[n,a]=k.useState(null),[s,o]=k.useState(!0),[l,c]=k.useState(!1),[u,d]=k.useState(!1);k.useEffect(()=>{e&&h()},[e]);const h=async()=>{o(!0);try{const{data:v}=await oe.from("book_club_subscriptions").select("id, shipping_address").eq("user_id",e.id).in("status",["active","past_due"]).order("created_at",{ascending:!0}).limit(1),g=(v==null?void 0:v[0])||null;if(g!=null&&g.shipping_address&&Object.keys(g.shipping_address).length>0&&g.shipping_address.line1){r(m_t(g.shipping_address)),a(g.id),d(!0),o(!1);return}g&&a(g.id);try{const b=localStorage.getItem("kibbi_shipping_address");if(b){const x=JSON.parse(b);(x.street1||x.line1)&&(r({firstName:x.firstName||"",lastName:x.lastName||"",street1:x.street1||x.line1||"",street2:x.street2||x.line2||"",city:x.city||"",state:x.state||"",postcode:x.postcode||x.postal_code||"",country:x.country||"US",phone:x.phone||""}),d(!0))}}catch{}}catch(v){console.error("Failed to load shipping address:",v)}finally{o(!1)}},f=async()=>
8107{if(!t.firstName.trim()||!t.lastName.trim()){Lr({title:"Name required",description:"Please enter first and last name",variant:"destructive"});return}if(!t.street1.trim()){Lr({title:"Address required",description:"Please enter a street address",variant:"destructive"});return}if(!t.city.trim()){Lr({title:"City required",description:"Please enter a city",variant:"destructive"});return}if(!t.postcode.trim()){Lr({title:"Postal code required",description:"Please enter a postal code",variant:"destructive"});return}if(!t.phone.trim()){Lr({title:"Phone required",description:"Please enter a phone number",variant:"destructive"});return}c(!0);try{if(localStorage.setItem("kibbi_shipping_address",JSON.stringify(y_t(t,(e==null?void 0:e.email)||""))),e){const{error:v}=await oe.from("book_club_subscriptions").update({shipping_address:g_t(t)}).eq("user_id",e.id).in("status",["active","past_due"]);if(v)throw v}Lr({title:"Address saved",description:"Your shipping address has been updated."}),d(!0)}catch(v){console.error("Failed to save address:",v),Lr({title:"Failed to save",description:v.message||"Please try again",variant:"destructive"})}finally{c(!1)}},p=t.country==="US"||t.country==="CA",y=t.country==="US"?IH:U8e,m=t.country==="CA"?"Province":"State";return s?i.jsxs(Ie,{className:"mb-8",children:[i.jsx(ze,{children:i.jsxs(Ke,{className:"flex items-center gap-2",children:[i.jsx(wy,{className:"h-5 w-5"}),"Shipping Address"]})}),i.jsx(qe,{className:"flex justify-center py-4",children:i.jsx(Me,{className:"h-5 w-5 animate-spin text-muted-foreground"})})]}):i.jsxs(Ie,{className:"mb-8",children:[i.jsxs(ze,{children:[i.jsxs(Ke,{className:"flex items-center gap-2",children:[i.jsx(wy,{className:"h-5 w-5"}),"Shipping Address"]}),i.jsx(Rt,{children:u?"Update your default shipping address for print orders.":"Add a shipping address so it's pre-filled when you order prints."})]}),i.jsx(qe,{children:i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"ship-firstName",children:"First Name"}),i.jsx(Pt,{id:"ship-firstName",value:t.firstName,onChange:v=>r({...t,firstName:v.target.value}),maxLength:Jh.firstName,placeholder:"John"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"ship-lastName",children:"Last Name"}),i.jsx(Pt,{id:"ship-lastName",value:t.lastName,onChange:v=>r({...t,lastName:v.target.value}),maxLength:Jh.lastName,placeholder:"Doe"})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"ship-street1",children:"Street Address"}),i.jsx(Pt,{id:"ship-street1",value:t.street1,onChange:v=>r({...t,street1:v.target.value}),maxLength:Jh.street1,placeholder:"123 Main Street"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"ship-street2",children:"Apt / Suite (optional)"}),i.jsx(Pt,{id:"ship-street2",value:t.street2,onChange:v=>r({...t,street2:v.target.value}),maxLength:Jh.street2,placeholder:"Apt 4B"})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"ship-city",children:"City"}),i.jsx(Pt,{id:"ship-city",value:t.city,onChange:v=>r({...t,city:v.target.value}),maxLength:Jh.city,placeholder:"New York"})]}),p?i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:m}),i.jsxs(rn,{value:t.state,onValueChange:v=>r({...t,state:v}),children:[i.jsx(Wr,{children:i.jsx(nn,{placeholder:`Select ${m.toLowerCase()}`})}),i.jsx(Gr,{children:y.map(v=>i.jsx(pt,{value:v.code,children:v.name},v.code))})]})]}):i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"ship-state",children:"State / Region"}),i.jsx(Pt,{id:"ship-state",value:t.state,onChange:v=>r({...t,state:v.target.value}),maxLength:Jh.state})]})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"ship-postcode",children:"Postal Code"}),i.jsx(Pt,{id:"ship-postcode",value:t.postcode,onChange:v=>r({...t,postcode:v.target.value}),placeholder:"10001"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:"Country"}),i.jsxs(rn,{value:t.country,onValueChange:v=>r({...t,country:v,state:""}),children:[i.jsx(Wr,{children:i.jsx(nn,{placeholder:"Select country"})}),i.jsx(Gr,{children:q8e.map(v=>i.jsx(pt,{value:v.code,children:v.name},v.code))})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"ship-phone",children:"Phone"}),i.jsx(Pt,{id:"ship-phone",value:t.phone,onChange:v=>r({...t,phone:v.target.value}),maxLength:Jh.phone,placeholder:"+1 (555) 123-4567"})]}),i.jsxs(le,{onClick:f,disabled:l,children:[l&&i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Save Address"]})]})})]})}function x_t(){const{user:e,signOut:t}=er(),r=wt(),[n,a]=k.useState(""),[s,o]=k.useState(""),[l,c]=k.useState(!1),[u,d]=k.useState(""),[h,f]=k.useState(!1),[p,y]=k.useState(!1),m=async g=>{if(g.preventDefault(),!n||!s){Lr({title:"Missing information",description:"Please enter both new email and password",variant:"destructive"});return}c(!0);try{const{error:b}=await oe.auth.signInWithPassword({email:(e==null?void 0:e.email)||"",password:s});if(b)throw new Error("Incorrect password");const{error:x}=await oe.auth.updateUser({email:n});if(x)throw x;Lr({title:"Email update initiated",description:"Please check both your old and new email addresses for confirmation links."}),a(""),o("")}catch(b){console.error("Error updating email:",b),Lr({title:"Failed to update email",description:b.message||"Please try again",variant:"destructive"})}finally{c(!1)}},v=async()=>
8107{if(!h||u!=="DELETE"){Lr({title:"Confirmation required",description:"Please check the box and type DELETE to confirm",variant:"destructive"});return}y(!0);try{const{data:{session:g}}=await oe.auth.getSession();if(!g)throw new Error("No active session");const{data:b,error:x}=await oe.functions.invoke("delete-user-account",{headers:{Authorization:`Bearer ${g.access_token}`}});if(x)throw x;if(!(b!=null&&b.success))throw new Error((b==null?void 0:b.error)||"Failed to delete account");Lr({title:"Account deleted",description:"Your account and all data have been permanently deleted."}),await t(),r("/")}catch(g){console.error("Error deleting account:",g),Lr({title:"Failed to delete account",description:g.message||"Please try again or contact support",variant:"destructive"}),y(!1)}};return e?i.jsxs(i.Fragment,{children:[i.jsx(Ba,{}),i.jsxs("div",{className:"container max-w-4xl mx-auto py-8 px-4",children:[i.jsx("h1",{className:"text-3xl font-bold mb-8",children:"Account Settings"}),i.jsxs(Ie,{className:"mb-8",children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Change Email Address"}),i.jsx(Rt,{children:"Update your email address. You'll receive confirmation emails at both addresses."})]}),i.jsx(qe,{children:i.jsxs("form",{onSubmit:m,className:"space-y-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:"Current Email"}),i.jsx(Pt,{type:"email",value:e.email||"",disabled:!0,className:"bg-muted"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"newEmail",children:"New Email"}),i.jsx(Pt,{id:"newEmail",type:"email",value:n,onChange:g=>a(g.target.value),placeholder:"Enter new email address",disabled:l})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"password",children:"Confirm Password"}),i.jsx(Pt,{id:"password",type:"password",value:s,onChange:g=>o(g.target.value),placeholder:"Enter your password",disabled:l})]}),i.jsxs(le,{type:"submit",disabled:l,children:[l&&i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Update Email"]})]})})]}),i.jsx(v_t,{}),i.jsxs(Ie,{className:"border-destructive",children:[i.jsxs(ze,{children:[i.jsxs(Ke,{className:"text-destructive flex items-center gap-2",children:[i.jsx(Fs,{className:"h-5 w-5"}),"Delete Account"]}),i.jsx(Rt,{children:"Permanently delete your account and all associated data. This action cannot be undone."})]}),i.jsxs(qe,{className:"space-y-6",children:[i.jsx(Eo,{variant:"destructive",children:i.jsxs(Co,{children:[i.jsx("strong",{children:"Warning:"})," This will permanently delete:",i.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[i.jsx("li",{children:"All your stories (including purchased ones)"}),i.jsx("li",{children:"All print orders and order history"}),i.jsx("li",{children:"All payment history"}),i.jsx("li",{children:"All conversation history"}),i.jsx("li",{children:"Your account and profile data"})]})]})}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(Dk,{id:"deleteConfirm",checked:h,onCheckedChange:g=>f(g),disabled:p}),i.jsx(Nt,{htmlFor:"deleteConfirm",className:"text-sm font-normal cursor-pointer",children:"I understand this action cannot be undone"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs(Nt,{htmlFor:"deleteConfirmation",children:["Type ",i.jsx("strong",{children:"DELETE"})," to confirm"]}),i.jsx(Pt,{id:"deleteConfirmation",value:u,onChange:g=>d(g.target.value),placeholder:"Type DELETE",disabled:p})]}),i.jsxs(le,{variant:"destructive",onClick:v,disabled:!h||u!=="DELETE"||p,className:"w-full",children:[p&&i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}
8107),"Delete My Account Permanently"]})]})]})]})]})]}):i.jsxs(i.Fragment,{children:[i.jsx(Ba,{}),i.jsx("div",{className:"container max-w-4xl mx-auto py-8 px-4",children:i.jsx("p",{children:"Please log in to view your profile."})})]})}const H0e={not_using:"Not using it enough",too_busy:"Too busy right now",child_not_interested:"Child not interested",price:"Price",monthly_stories_only:"I only wanted to read the monthly stories",other:"Other"},b_t=e=>{if(e.length===0)return"";const t=e.filter(n=>n.story_title&&n.story_title.length<=30).slice(0,2).map(n=>`"${n.story_title}"`);if(t.length>=2)return`stories like ${t[0]} and ${t[1]}`;if(t.length===1)return`stories like ${t[0]}`;const r=e.flatMap(n=>n.detected_characters&&Array.isArray(n.detected_characters)?n.detected_characters.map(a=>a.name):[]).filter(Boolean).slice(0,3);return r.length>=2?`stories featuring ${r.join(", ")}`:"your existing stories"};function w_t({open:e,onClose:t,onCancelled:r,profile:n,subscriptionStatus:a}){const s=wt(),[o,l]=k.useState({step:0,segment:"C",storiesCreated:0,unusedCredits:0,storyReferences:"",selectedReason:null,otherText:""}),[c,u]=k.useState(!1),[d,h]=k.useState(!1);k.useEffect(()=>{e?f():l({step:0,segment:"C",storiesCreated:0,unusedCredits:0,storyReferences:"",selectedReason:null,otherText:""})},[e]);const f=async()=>{u(!0);try{const{data:{user:A}}=await oe.auth.getUser();if(!A){l(W=>({...W,step:1,segment:"C",storiesCreated:0,unusedCredits:0,storyReferences:""})),u(!1);return}const $=((n==null?void 0:n.story_credits)||0)+(n!=null&&n.included_story_available?1:0),{data:T,error:F}=await oe.from("stories").select("id, story_title, detected_characters").eq("user_id",A.id).order("created_at",{ascending:!1}).limit(10);if(F)throw F;const M=(T==null?void 0:T.length)||0,z=b_t(T||[]);let Y="C";M>0&&(Y=$>0?"A":"B"),l(W=>({...W,step:1,segment:Y,storiesCreated:M,unusedCredits:$,storyReferences:z}))}catch(A){console.error("Segmentation error:",A),l($=>({...$,step:1,segment:"C",storiesCreated:0,unusedCredits:0,storyReferences:""}))}finally{u(!1)}},p=()=>{l(A=>({...A,step:Math.min(A.step+1,4)}))},y=()=>{l(A=>({...A,step:Math.max(A.step-1,1)}))},m=()=>{t()},v=()=>{t(),s("/create-story")},g=async()=>{h(!0);try{const{error:A}=await oe.functions.invoke("cancel-subscription",{body:{reason:o.selectedReason,otherText:o.otherText||null,storiesCreated:o.storiesCreated,unusedCredits:o.unusedCredits}});if(A)throw A;r()}catch(A){throw console.error("Cancellation error:",A),A}finally{h(!1)}},b=()=>{if(c||o.step===0)return i.jsx("div",{className:"flex items-center justify-center py-12",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-primary"})});switch(o.step){case 1:return j();case 2:return E();case 3:return C();case 4:return N();default:return null}},x=()=>i.jsxs(i.Fragment,{children:[i.jsx(Nr,{children:i.jsxs(Tr,{className:"text-xl flex items-center gap-2",children:[i.jsx(bs,{className:"h-5 w-5 text-primary"}),"You still have unused story credits"]})}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsxs("div",{className:"bg-primary/10 border border-primary/20 rounded-lg p-4",children:[i.jsxs("p",{className:"font-semibold text-primary",children:["You have ",o.unusedCredits," unused story ",o.unusedCredits===1?"credit":"credits","."]}),i.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Unused credits will be lost if you cancel today."})]}),o.storyReferences&&i.jsxs("p",{className:"text-muted-foreground",children:["You've already created ",o.storyReferences,"."]}),i.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(Qt,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),i.jsx("span",{children:"Story credits accumulate and never expire while your subscription is active."})]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(Da,{className:"h-4 w-4 text-orange-500 mt-0.5 flex-shrink-0"}),i.jsx("span",{children:"Stories and illustrations are kept for 30 days after cancellation, then permanently deleted."})]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(xr,{className:"h-4 w-4 text-muted-foreground mt-0.5 flex-shrink-0"}),i.jsx("span",{children:"You can download your stories as PDFs at any time to keep them as a personal keepsake."})]})]}),i.jsx("p",{className:"text-sm",children:"You can use a credit now to create a new story in under 3 minutes."})]}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx(le,{onClick:v,className:"w-full",children:"Create a story now"}),i.jsx(le,{variant:"ghost",onClick:p,className:"w-full text-muted-foreground",children:"Continue to cancellation"})]})]}),_=()=>i.jsxs(i.Fragment,{children:[i.jsx(Nr,{children:i.jsxs(Tr,{className:"text-xl flex items-center gap-2",children:[i.jsx(Da,{className:"h-5 w-5 text-orange-500"}),"Your stories are kept for 30 days after cancellation"]})}),i.jsxs("div",{className:"space-y-4 py-4",children:[o.storyReferences&&i.jsxs("p",{className:"text-muted-foreground",children:["You've already created ",o.storyReferences,"."]}),i.jsx("div",{className:"bg-orange-50 dark:bg-orange-900/20 border border-orange-200 dark:border-orange-800 rounded-lg p-4",children:i.jsx("p",{className:"text-sm text-orange-800 dark:text-orange-200",children:"If you cancel, your stories and illustrations will be kept for 30 days, then permanently deleted."})}),i.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx(xr,{className:"h-4 w-4 text-muted-foreground mt-0.5 flex-shrink-0"}),i.jsx("span",{children:"You can download your stories as PDFs at any time to keep them as a personal keepsake."})]})}),i.jsx("p",{className:"text-sm",children:"You can keep your library active by staying subscribed or pausing instead."})]}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx(le,{onClick:m,className:"w-full",children:"Keep subscription active"}),i.jsx(le,{variant:"ghost",onClick:p,className:"w-full text-muted-foreground",children:"Continue"})]})]}),w=()=>i.jsxs(i.Fragment,{children:[i.jsx(Nr,{children:i.jsxs(Tr,{className:"text-xl flex items-center gap-2",children:[i.jsx(xr,{className:"h-5 w-5 text-muted-foreground"}),"You haven't created a story yet"]})}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsx("p",{className:"text-muted-foreground",children:"If you cancel now, you won't be able to create stories or receive new monthly Kibbi stories unless you resubscribe."}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Your account data will be kept for 30 days after cancellation."})]}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx(le,{onClick:v,className:"w-full",children:"Create your first story"}),i.jsx(le,{variant:"ghost",onClick:p,className:"w-full text-muted-foreground",children:"Continue"})]})]}),j=()=>{switch(o.segment){case"A":return x();case"B":return _();case"C":return w()}},E=()=>{const A=a!=null&&a.subscription_end?new Date(a.subscription_end).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):null;return i.jsxs(i.Fragment,{children:[i.jsx(Nr,{children:i.jsxs(Tr,{className:"text-xl flex items-center gap-2",children:[i.jsx(Fs,{className:"h-5 w-5 text-orange-500"}),"You'll stop getting new Kibbi stories"]})}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsx("p",{className:"text-muted-foreground",children:"If you cancel:"}),i.jsxs("ul",{className:"space-y-3",children:[i.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[i.jsx("span",{className:"text-orange-500 font-bold",children:"Ã"}),i.jsxs("span",{children:["No new story credit",A&&` â you would have received your next one on ${A}`]})]}),i.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[i.jsx("span",{className:"text-orange-500 font-bold",children:"Ã"}),i.jsx("span",{children:"No new monthly Kibbi stories added"})]}),i.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[i.jsx("span",{className:"text-orange-500 font-bold",children:"Ã"}),i.jsx("span",{children:"Access limited to your existing library"})]}),i.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[i.jsx("span",{className:"text-orange-500 font-bold",children:"Ã"}),i.jsx("span",{children:"Story creation locked unless you resubscribe"})]})]}),i.jsx("p",{className:"text-sm text-muted-foreground italic",children:"Many users stay subscribed just to discover the new stories each month."})]}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx(le,{onClick:m,className:"w-full",children:"Keep subscription active"}),i.jsx(le,{variant:"ghost",onClick:p,className:"w-full text-muted-foreground",children:"Continue"})]})]})},C=()=>i.jsxs(i.Fragment,{children:[i.jsx(Nr,{children:i.jsx(Tr,{className:"text-xl",children:"What's the main reason you're canceling?"})}),i.jsxs("div",{className:"py-4",children:[i.jsx(OH,{value:o.selectedReason||"",onValueChange:A=>l($=>({...$,selectedReason:A})),className:"space-y-3",children:Object.keys(H0e).map(A=>i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx(Bw,{value:A,id:A}),i.jsx(Nt,{htmlFor:A,className:"cursor-pointer",children:H0e[A]})]},A))}),o.selectedReason&&i.jsxs("div",{className:"mt-4",children:[i.jsx(Nt,{htmlFor:"otherText",className:"text-sm text-muted-foreground",children:"Anything else you'd like to share? (optional)"}),i.jsx(Dr,{id:"otherText",value:o.otherText,onChange:A=>l($=>({...$,otherText:A.target.value})),placeholder:"Your feedback helps us improve...",className:"mt-2",rows:3})]})]}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx(le,{onClick:p,disabled:!o.selectedReason,
8107className:"w-full",children:"Continue"}),i.jsxs(le,{variant:"ghost",onClick:y,className:"w-full text-muted-foreground",children:[i.jsx(ea,{className:"h-4 w-4 mr-2"}),"Go back"]})]})]}),N=()=>i.jsxs(i.Fragment,{children:[i.jsx(Nr,{children:i.jsxs(Tr,{className:"text-xl flex items-center gap-2",children:[i.jsx(Fs,{className:"h-5 w-5 text-destructive"}),"Confirm cancellation"]})}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 rounded-lg p-4 space-y-2",children:[i.jsx("p",{className:"text-sm",children:"Your subscription will end at the end of your current billing period."}),i.jsx("p",{className:"text-sm",children:"Your stories and illustrations will be available for 30 days after that, then permanently deleted."})]}),i.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[i.jsx("li",{children:"⢠You can resubscribe within 30 days to restore everything."}),i.jsx("li",{children:"⢠You'll receive a reminder before your stories are permanently deleted."})]})]}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx(le,{variant:"destructive",onClick:g,disabled:d,className:"w-full",children:d?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Cancelling..."]}):"Cancel subscription"}),i.jsxs(le,{variant:"ghost",onClick:y,className:"w-full text-muted-foreground",children:[i.jsx(ea,{className:"h-4 w-4 mr-2"}),"Go back"]})]})]});return i.jsx(Xr,{open:e,onOpenChange:A=>!A&&t(),children:i.jsx(Ur,{className:"sm:max-w-md",children:i.jsx("div",{className:"flex flex-col",children:b()},o.step)})})}const k_t=()=>{const e=wt(),{user:t,subscriptionStatus:r,profile:n,loading:a,subscriptionLoading:s,refreshSubscription:o}=er(),{toast:l}=Xt(),[c,u]=k.useState(!1),[d,h]=k.useState(!1),[f,p]=k.useState(!1),[y,m]=k.useState("update"),[v,g]=k.useState(null),[b,x]=k.useState(!1),[_,w]=k.useState(null),[j,E]=k.useState(0),[C,N]=k.useState({loading:!0,card:null,error:!1}),A=!!(n!=null&&n.stripe_customer_id);k.useEffect(()=>{const W=()=>{E(ee=>ee+1),o(!0)};return window.addEventListener(PH,W),()=>window.removeEventListener(PH,W)},[o]),k.useEffect(()=>{if(a||s||!t||r!=null&&r.subscribed)return;if(!A){N({loading:!1,card:null,error:!1});return}let W=!0;return N({loading:!0,card:null,error:!1}),oe.functions.invoke("create-update-payment-method",{method:"GET"}).then(({data:ee,error:Z})=>{W&&N({loading:!1,card:(ee==null?void 0:ee.paymentMethod)??null,error:!!(Z||ee!=null&&ee.error)})}).catch(()=>{W&&N({loading:!1,card:null,error:!0})}),()=>{W=!1}},[t==null?void 0:t.id,a,s,r==null?void 0:r.subscribed,A,j]);const $=async()=>{if(t)try{const{data:W}=await oe.from("book_club_subscriptions").select("id, status, current_period_end, stripe_subscription_id, product_type").eq("user_id",t.id).in("status",["active","past_due"]).order("created_at",{ascending:!0}).limit(1);g((W==null?void 0:W[0])||null)}finally{x(!0)}};k.useEffect(()=>{if(a)return;if(!t){e(`/login?redirect=${encodeURIComponent("/billing")}`);return}$(),(async()=>{const{data:ee}=await oe.from("stories").select("id").eq("user_id",t.id).eq("is_free_sample",!0).order("created_at",{ascending:!1}).limit(1).maybeSingle();w((ee==null?void 0:ee.id)||null)})()},[t,a,e]);const T=async()=>{await o(!0),h(!0)},F=async()=>{h(!1),await o(!0),l({title:"Subscription Cancelled",description:"Your subscription has been cancelled. You'll retain access until the end of your billing period."})},M=async()=>{u(!0);try{const{data:W,error:ee}=await oe.functions.invoke("restart-subscription");if(ee)throw ee;l({title:"Subscription Restarted!",description:"Your membership is now active and you've received 1 story credit."}),await o(!0)}catch(W){console.error("Restart subscription error:",W),l({title:"Error",description:W.message||"Failed to restart subscription",variant:"destructive"})}finally{u(!1)}};if(a||!t||s)return i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx("div",{className:"text-center space-y-4",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-primary mx-auto"})})});const z=r==null?void 0:r.subscribed,Y=(n==null?void 0:n.membership_plan)||"none";return((n==null?void 0:n.story_credits)||0)+(n!=null&&n.included_story_available?1:0),n!=null&&n.stories_created_this_period,i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Billing - Kibbi"}),i.jsx("meta",{name:"description",content:"Manage your payment method, see what you have bought, and handle any active plan."}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Ba,{}),i.jsxs("div",{className:"container mx-auto px-6 py-12 max-w-5xl",children:[i.jsx("div",{className:"mb-8",children:i.jsx("h1",{className:"text-4xl font-semibold text-foreground mb-2",children:"Billing"})}),z&&i.jsxs(Ie,{className:"mb-8 border-primary/20 bg-gradient-to-br from-primary/5 to-background max-w-2xl mx-auto",children:[i.jsxs(ze,{children:[i.jsx("p",{className:"text-sm text-muted-foreground","data-testid":"sunset-notice",children:"Kibbi is now pay-per-story for new customers. Your plan is unchanged and continues until you cancel."}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(my,{
8107className:"h-5 w-5 text-primary"}),i.jsx(Ke,{children:r!=null&&r.cancel_at_period_end?"Cancelled - Access Until Period End":"Active Membership"})]}),i.jsx(Re,{variant:r!=null&&r.cancel_at_period_end?"outline":"default",className:r!=null&&r.cancel_at_period_end?"border-orange-500 text-orange-600":"bg-primary",children:Y==="monthly"?"Monthly Plan":"Annual Plan"})]}),i.jsx(Rt,{children:r.subscription_end?i.jsx("span",{children:r.cancel_at_period_end?`Access ends on ${new Date(r.subscription_end).toLocaleDateString()}`:`Renews on ${new Date(r.subscription_end).toLocaleDateString()}`}):i.jsx("span",{children:"Active membership"})})]}),(r==null?void 0:r.cancel_at_period_end)&&(n==null?void 0:n.membership_active)&&i.jsxs("div",{className:"px-6 pb-4 space-y-4",children:[i.jsx("div",{className:"bg-orange-50 dark:bg-orange-900/20 border border-orange-200 dark:border-orange-800 rounded-lg p-4",children:i.jsxs("p",{className:"text-sm text-orange-800 dark:text-orange-200",children:[i.jsx("strong",{children:"Subscription Cancelled"})," - Your access ends on"," ",i.jsx("strong",{children:new Date(r.subscription_end).toLocaleDateString()}),"."]})}),i.jsx(le,{onClick:M,disabled:c,variant:"default",className:"w-full",size:"lg",children:c?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Restarting..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{className:"mr-2 h-5 w-5"}),"Restart Subscription & Get 1 Story Credit Now"]})}),i.jsxs("p",{className:"text-xs text-center text-muted-foreground",children:["Your existing payment method will be charged at the next billing date (",new Date(r.subscription_end).toLocaleDateString(),"). You'll get 1 story credit immediately."]})]}),!(n!=null&&n.membership_active)&&i.jsxs("div",{className:"px-6 pb-4 space-y-4",children:[i.jsx("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4",children:i.jsxs("p",{className:"text-sm text-red-800 dark:text-red-200",children:[i.jsx("strong",{children:"Subscription Ended"})," - Your membership has expired. You can keep creating stories and buy each one for ",Br,", no subscription needed."]})}),i.jsxs(le,{onClick:()=>e("/app/story-mode"),variant:"default",className:"w-full",size:"lg",children:[i.jsx(Qt,{className:"mr-2 h-5 w-5"}),"Create a Story"]})]}),i.jsx(qe,{className:"space-y-6",children:i.jsxs("div",{className:"space-y-3",children:[i.jsxs(le,{onClick:()=>{m("update"),p(!0)},variant:"outline",className:"w-full",size:"lg",children:[i.jsx(bs,{className:"mr-2 h-4 w-4"}),"Update Payment Method"]}),!(r!=null&&r.cancel_at_period_end)&&i.jsx(le,{onClick:T,variant:"outline",className:"w-full text-muted-foreground hover:text-destructive hover:border-destructive",size:"lg",children:"Cancel Subscription"})]})})]}),v&&i.jsxs(Ie,{className:"mb-8 border-primary/20 bg-gradient-to-br from-primary/5 to-background max-w-2xl mx-auto",children:[i.jsxs(ze,{children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(my,{
8107className:"h-5 w-5 text-primary"}),i.jsx(Ke,{children:"Book Club"})]}),i.jsxs(Re,{className:"bg-primary",children:[v.product_type==="paperback"?"$16.99":"$29.99","/mo"]})]}),i.jsx(Rt,{children:v.current_period_end?i.jsxs("span",{children:["Next book ships around ",new Date(v.current_period_end).toLocaleDateString()]}):i.jsx("span",{children:"Active subscription"})})]}),i.jsx(qe,{className:"space-y-3",children:i.jsx(le,{variant:"outline",className:"w-full",onClick:()=>e("/dashboard"),children:"Manage in Dashboard"})})]}),!z&&i.jsxs(Ie,{className:"mb-8 max-w-2xl mx-auto","data-testid":"card-on-file",children:[i.jsxs(ze,{children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(bs,{className:"h-5 w-5 text-primary"}),i.jsx(Ke,{children:"Payment method"})]}),i.jsx(Rt,{children:"Save a card for stories and image edits. Adding a card won't charge you or start a subscription."})]}),i.jsxs(qe,{className:"space-y-4",children:[C.card&&i.jsxs("p",{"data-testid":"saved-card",className:"text-sm capitalize",children:[C.card.brand," ending in ",C.card.last4]}),C.error&&i.jsxs("div",{role:"alert",className:"text-sm space-y-2",children:[i.jsx("p",{children:"We couldn't check your saved card."}),i.jsx(le,{variant:"outline",onClick:()=>E(W=>W+1),children:"Try again"})]}),(r==null?void 0:r.paymentFailedAt)&&i.jsx("div",{className:"bg-orange-50 dark:bg-orange-900/20 border border-orange-200 dark:border-orange-800 rounded-lg p-4",children:i.jsx("p",{className:"text-sm text-orange-800 dark:text-orange-200",children:"Your last charge didn't go through. Add a new card to keep going."})}),i.jsxs(le,{"data-testid":"billing-card-action",onClick:()=>{m(C.card?"update":"add"),p(!0)},variant:"outline",className:"w-full",size:"lg",disabled:A&&C.loading,children:[i.jsx(bs,{className:"mr-2 h-4 w-4"}),A&&C.loading?"Checking card...":C.card?"Update Payment Method":C.error?"Add or update card":"Add card"]})]})]}),!z&&!v&&b&&i.jsx("div",{className:"max-w-[500px] mx-auto","data-testid":"subscription-digital-pitch",children:i.jsxs("div",{className:"bg-card rounded-3xl p-6 md:px-8 md:py-10 shadow-lg border-2 border-primary/20",children:[i.jsxs("div",{className:"mb-6",children:[i.jsx("h2",{className:"text-xl font-semibold text-foreground mb-3",children:"Kibbi Stories"}),i.jsxs("div",{className:"flex items-baseline gap-2 mb-1",children:[i.jsx("span",{className:"font-crimson text-5xl font-bold",children:Br}),i.jsx("span",{className:"text-lg text-foreground/70",children:"per story"})]}),i.jsx("p",{className:"text-sm text-foreground/70",children:"One-time. No subscription."})]}),i.jsx("ul",{className:"space-y-4 mb-8",children:["A personalized story, up to 20 pages","Your child's characters in every book","Matched to your child's age and reading level","Illustrated cover to cover","Read on Kibbi anytime, on any device","Print any story in paperback ($14.99) or hardcover ($24.99) â pay only when you want it","Preview free before you buy"].map((W,ee)=>i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx(_r,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-base text-foreground/80 leading-relaxed",children:W})]},ee))}),i.jsx(le,{size:"lg",className:"w-full bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full text-base",onClick:()=>{e(_?`/app/book-preview?id=${_}`:"/app/story-mode")},"data-testid":"subscription-preview-cta",children:_?"Continue with your free preview":"Try it for free"}),i.jsxs("p",{className:"text-sm text-foreground/70 text-center mt-3",children:[Br," per story. Pay only for the ones you keep."]})]})}),i.jsxs(Ie,{className:"mt-8 bg-muted/30 max-w-2xl mx-auto",children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"How It Works"})}),i.jsxs(qe,{className:"space-y-3 text-sm text-muted-foreground",children:[i.jsx("p",{children:"⢠We create a personalized book built around your child"}),i.jsx("p",{children:"⢠Your child's characters appear in every book with full visual consistency"}),i.jsx("p",{children:"⢠Set your preferences once â or tweak topic, characters, and style before any book"}),i.jsx("p",{children:"⢠Books are matched to your child's age and reading level"}),i.jsxs("p",{children:["⢠",Br," per story â preview free, pay only if you love it"]}),i.jsx("p",{children:"⢠Order any story in print: $14.99 paperback, $24.99 hardcover, plus shipping and handling, shown before you pay"}),i.jsx("p",{children:"⢠Ships worldwide"})]})]})]}),i.jsx(w_t,{open:d,onClose:()=>h(!1),onCancelled:F,profile:n,subscriptionStatus:r}),i.jsx(V8e,{open:f,mode:y,onClose:()=>p(!1)})]})]})};
8107function TTe({value:e,onChange:t,onSearch:r,placeholder:n="Search help articles...",isLoading:a=!1}){const s=o=>{o.key==="Enter"&&r?r():o.key==="Escape"&&t("")};return i.jsxs("div",{className:"relative w-full max-w-2xl",children:[i.jsx(go,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),i.jsx(Pt,{type:"text",value:e,onChange:o=>t(o.target.value),onKeyDown:s,placeholder:n,className:"pl-12 pr-12 h-12 text-base rounded-full border-2 focus-visible:ring-2","aria-label":"Search help articles"}),e&&i.jsx(le,{variant:"ghost",size:"sm",onClick:()=>t(""),className:"absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 p-0 rounded-full","aria-label":"Clear search",children:i.jsx(hi,{className:"w-4 h-4"})}),a&&i.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:i.jsx("div",{className:"w-4 h-4 border-2 border-primary border-t-transparent rounded-full animate-spin"})})]})}function __t({category:e}){const t=e.icon?Fwe[e.icon]:tl;return i.jsx(or,{to:`/help/${e.slug}`,className:"group block p-6 rounded-2xl border border-border bg-card hover:bg-accent/50 transition-all duration-300 hover:scale-[1.02] hover:shadow-lg",children:i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-colors",children:i.jsx(t,{className:"w-6 h-6 text-primary"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:"font-crimson text-xl font-semibold mb-2 group-hover:text-primary transition-colors",children:e.name}),e.description&&i.jsx("p",{className:"text-sm text-muted-foreground mb-2 line-clamp-2",children:e.description}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:[e.article_count||0," article",e.article_count!==1?"s":""]})]})]})})}const TG=()=>ei({queryKey:["help-categories"],queryFn:async()=>{const{data:e,error:t}=await oe.from("help_categories").select("*").order("order_index",{ascending:!0});if(t)throw t;return await Promise.all(e.map(async n=>{const{count:a}=await oe.from("help_articles").select("*",{count:"exact",head:!0}).eq("category_id",n.id).eq("is_published",!0);return{...n,article_count:a||0}}))}}),ATe=(e="")=>{const[t,r]=k.useState(e),[n,a]=k.useState(e);k.useEffect(()=>{const o=setTimeout(()=>{a(t)},300);return()=>clearTimeout(o)},[t]);const s=ei({queryKey:["help-search",n],queryFn:async()=>{if(!n||n.trim().length<2)return[];const{data:o,error:l}=await oe.rpc("search_help_articles",{search_term:n});if(l)throw l;return o},enabled:n.trim().length>=2});return{...s,searchTerm:t,setSearchTerm:r,isSearching:s.isLoading}};function S_t(){const{data:e,isLoading:t}=TG(),{searchTerm:r,setSearchTerm:n}=ATe(),{openChatbot:a}=E_e(),s=wt(),o=()=>{r.trim()&&s(`/help/search?q=${encodeURIComponent(r)}`)};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Help Center | Kibbi - AI-Powered Personalized Children's Books"}),i.jsx("meta",{name:"description",content:"Find answers to common questions about creating personalized children's books with Kibbi. Get help with story creation, illustrations, ordering, and more."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/help"})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-7xl px-4 md:px-6 pt-32 pb-12",children:[i.jsxs("div",{className:"text-center mb-12",children:[i.jsx("h1",{className:"font-crimson text-4xl md:text-5xl font-bold mb-4",children:"How can we help you?"}),i.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Search our help articles or browse by category to find answers about creating your personalized story"}),i.jsxs("div",{className:"flex flex-col items-center gap-4",children:[i.jsx(TTe,{value:r,onChange:n,onSearch:o,placeholder:"Search for help..."}),i.jsxs(le,{onClick:a,size:"lg",className:"rounded-full",children:[i.jsx(ky,{className:"w-5 h-5 mr-2"}),"Chat with AI Assistant"]})]})]}),i.jsxs("div",{className:"mb-16",children:[i.jsx("h2",{className:"font-crimson text-2xl font-bold mb-6 text-center",children:"Browse by Category"}),t?i.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(6)].map((l,c)=>i.jsx("div",{className:"h-40 rounded-2xl border border-border bg-card animate-pulse"},c))}):i.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:e==null?void 0:e.map(l=>i.jsx(__t,{category:l},l.id))})]}),i.jsxs("div",{className:"max-w-3xl mx-auto text-center p-8 rounded-2xl border border-border bg-card",children:[i.jsx("h2",{className:"font-crimson text-2xl font-bold mb-3",children:"Still need help?"}),i.jsx("p",{className:"text-muted-foreground mb-6",children:"Can't find what you're looking for? Our team is here to help."}),i.jsx(le,{asChild:!0,size:"lg",children:i.jsxs("a",{href:"/contact",children:[i.jsx(Vd,{className:"w-4 h-4 mr-2"}),"Contact Support"]})})]})]}),i.jsx(br,{})]})]})}function j_t(e){if(!e)return 1;const t=200,r=e.split(/\s+/).length;return Math.ceil(r/t)}function yoe({article:e,categorySlug:t,categoryName:r,showCategory:n=!1}){const a=j_t(e.content);return i.jsx(or,{to:`/help/${t}/${e.slug}`,className:"block p-6 rounded-xl border border-border bg-card hover:bg-accent/50 transition-all duration-200 hover:shadow-md",children:i.jsx("div",{className:"flex items-start justify-between gap-4",children:i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:"font-crimson text-lg font-semibold mb-2 hover:text-primary transition-colors",children:e.title}),e.excerpt&&i.jsx("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2",children:e.excerpt}),i.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(Da,{className:"w-3 h-3"}),i.jsxs("span",{children:[a," min read"]})]}),n&&r&&i.jsx(Re,{variant:"secondary",className:"text-xs",children:r})]})]})})})}const E_t=e=>ei({queryKey:["category-articles",e],queryFn:async()=>{const{data:t,error:r}=await oe.from("help_categories").select("*").eq("slug",e).single();if(r)throw r;const{data:n,error:a}=await oe.from("help_articles").select("*").eq("category_id",t.id).eq("is_published",!0).order("order_index",{ascending:!0});if(a)throw a;return{category:t,articles:n}}});function C_t(){const{categorySlug:e}=Ou(),{data:t,isLoading:r,error:n}=E_t(e);if(n)return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:i.jsxs("div",{className:"text-center py-12",children:[i.jsx("h1",{className:"font-crimson text-3xl font-bold mb-4",children:"Category Not Found"}),i.jsx("p",{className:"text-muted-foreground mb-6",children:"The help category you're looking for doesn't exist."}),i.jsx("a",{href:"/help",className:"text-primary hover:underline",children:"â Back to Help Center"})]})})]});const a=t!=null&&t.category.icon?Fwe[t.category.icon]:tl,s=[{label:"Home",href:"/"},{label:"Help",href:"/help"},{label:(t==null?void 0:t.category.name)||"Loading...",href:`/help/${e}`}];return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsxs("title",{children:[(t==null?void 0:t.category.name)||"Help"," | Kibbi Help Center"]}),i.jsx("meta",{name:"description",content:(t==null?void 0:t.category.description)||`Browse help articles about ${t==null?void 0:t.category.name}`}),i.jsx("link",{rel:"canonical",href:`https://kibbi.ai/help/${e}`})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:[i.jsx(ise,{items:s}),r?i.jsxs(i.Fragment,{children:[i.jsx(vr,{className:"h-12 w-64 mb-4"}),i.jsx(vr,{className:"h-6 w-full max-w-2xl mb-8"}),i.jsx("div",{className:"space-y-4",children:[...Array(5)].map((o,l)=>i.jsx(vr,{className:"h-32 w-full"},l))})]}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[i.jsx("div",{className:"w-16 h-16 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0",children:i.jsx(a,{className:"w-8 h-8 text-primary"})}),i.jsxs("div",{children:[i.jsx("h1",{className:"font-crimson text-3xl md:text-4xl font-bold mb-2",children:t==null?void 0:t.category.name}),(t==null?void 0:t.category.description)&&i.jsx("p",{className:"text-muted-foreground",children:t.category.description})]})]}),i.jsx("div",{className:"space-y-4",children:t!=null&&t.articles&&t.articles.length>0?t.articles.map(o=>i.jsx(yoe,{article:o,categorySlug:e},o.id)):i.jsx("div",{className:"text-center py-12 text-muted-foreground",children:i.jsx("p",{children:"No articles in this category yet."})})}),i.jsx("div",{className:"mt-8 pt-6 border-t border-border",children:i.jsx("a",{href:"/help",className:"text-primary hover:underline inline-flex items-center gap-2",children:"â Back to all categories"})})]})]}),i.jsx(br,{})]})]})}function N_t({content:e}){const[t,r]=k.useState([]),[n,a]=k.useState("");
8107if(k.useEffect(()=>{const o=/^(#{2,3})\s+(.+)$/gm,c=Array.from(e.matchAll(o)).map(u=>{const d=u[1].length,h=u[2].trim();return{id:h.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-"),text:h,level:d}});r(c)},[e]),k.useEffect(()=>{const o=new IntersectionObserver(l=>{l.forEach(c=>{c.isIntersecting&&a(c.target.id)})},{rootMargin:"-80px 0px -80% 0px"});return t.forEach(l=>{const c=document.getElementById(l.id);c&&o.observe(c)}),()=>o.disconnect()},[t]),t.length===0)return null;const s=o=>{const l=document.getElementById(o);if(l){const c=l.offsetTop-100;window.scrollTo({top:c,behavior:"smooth"})}};return i.jsx("nav",{className:"hidden lg:block sticky top-24 w-64 max-h-[calc(100vh-8rem)] overflow-y-auto",children:i.jsxs("div",{className:"p-4 rounded-xl border border-border bg-card",children:[i.jsx("h4",{className:"font-semibold text-sm mb-3 text-foreground",children:"On this page"}),i.jsx("ul",{className:"space-y-2",children:t.map(o=>i.jsx("li",{children:i.jsx("button",{onClick:()=>s(o.id),className:De("text-sm text-left w-full py-1 px-2 rounded transition-colors",o.level===3&&"pl-4",n===o.id?"text-primary font-medium bg-primary/10":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:o.text})},o.id))})]})})}function T_t({currentArticleId:e,categoryId:t,categorySlug:r,limit:n=3}){const{data:a,isLoading:s}=ei({queryKey:["related-articles",e,t],queryFn:async()=>{const{data:o,error:l}=await oe.from("help_articles").select("*").eq("category_id",t).eq("is_published",!0).neq("id",e).limit(n);if(l)throw l;return o}});return s||!a||a.length===0?null:i.jsxs("div",{className:"mt-12 pt-8 border-t border-border",children:[i.jsx("h2",{className:"font-crimson text-2xl font-bold mb-6",children:"Related Articles"}),i.jsx("div",{className:"grid gap-4",children:a.map(o=>i.jsx(yoe,{article:o,categorySlug:r},o.id))})]})}function A_t({articleId:e,articleTitle:t}){const[r,n]=k.useState(null),[a,s]=k.useState(!1),[o,l]=k.useState(""),[c,u]=k.useState(!1),d=f=>{n(f),s(f==="negative"),Ko.capture("help_article_feedback",{article_id:e,article_title:t,feedback:f}),f==="positive"&&u(!0)},h=()=>{Ko.capture("help_article_feedback_comment",{article_id:e,article_title:t,comment:o}),u(!0)};return c?i.jsxs("div",{className:"p-6 rounded-xl border border-border bg-accent/50 text-center",children:[i.jsx("p",{className:"text-foreground font-medium",children:"Thank you for your feedback! â¨"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"We'll use it to improve our help articles."})]}):i.jsxs("div",{className:"p-6 rounded-xl border border-border bg-card",children:[i.jsx("h3",{className:"font-semibold mb-4",children:"Was this article helpful?"}),i.jsxs("div",{className:"flex gap-3 mb-4",children:[i.jsxs(le,{variant:r==="positive"?"default":"outline",onClick:()=>d("positive"),className:"flex-1",children:[i.jsx(yw,{className:"w-4 h-4 mr-2"}),"Yes"]}),i.jsxs(le,{variant:r==="negative"?"default":"outline",onClick:()=>d("negative"),className:"flex-1",children:[i.jsx(gw,{className:"w-4 h-4 mr-2"}),"No"]})]}),a&&i.jsxs("div",{className:"space-y-3",children:[i.jsx(Dr,{value:o,onChange:f=>l(f.target.value),placeholder:"What would make this article better?",className:"min-h-[100px]"}),i.jsx(le,{onClick:h,className:"w-full",children:"Submit Feedback"})]})]})}const MTe=(e,t)=>{var n;const r=ei({queryKey:["help-article",e,t],queryFn:async()=>{const{data:a,error:s}=await oe.from("help_categories").select("id, name, slug").eq("slug",e).single();if(s)throw s;const{data:o,error:l}=await oe.from("help_articles").select("*").eq("category_id",a.id).eq("slug",t).eq("is_published",!0).single();if(l)throw l;return{article:o,category:a}}});return k.useEffect(()=>{var a;(a=r.data)!=null&&a.article&&oe.rpc("increment_article_views",{article_id:r.data.article.id})},[(n=r.data)==null?void 0:n.article]),r};function M_t(e){const r=e.split(/\s+/).length;return Math.ceil(r/200)}function I_t(){const{categorySlug:e,articleSlug:t}=Ou(),r=wt(),{isAdmin:n}=Fr(),{data:a,isLoading:s,error:o}=MTe(e,t);if(o)return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:i.jsxs("div",{className:"text-center py-12",children:[i.jsx("h1",{className:"font-crimson text-3xl font-bold mb-4",children:"Article Not Found"}),i.jsx("p",{className:"text-muted-foreground mb-6",children:"The help article you're looking for doesn't exist or has been removed."}),i.jsx("a",{href:"/help",className:"text-primary hover:underline",children:"â Back to Help Center"})]})})]});const l=[{label:"Home",href:"/"},{label:"Help",href:"/help"},{label:(a==null?void 0:a.category.name)||"Category",href:`/help/${e}`},{label:(a==null?void 0:a.article.title)||"Article",href:`/help/${e}/${t}`}],c=a!=null&&a.article?M_t(a.article.content):0;return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsxs("title",{children:[(a==null?void 0:a.article.title)||"Help Article"," | Kibbi Help Center"]}),i.jsx("meta",{name:"description",content:(a==null?void 0:a.article.excerpt)||"Help article from Kibbi"}),i.jsx("link",{rel:"canonical",href:`https://kibbi.ai/help/${e}/${t}`}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:a==null?void 0:a.article.title,de
8107scription:a==null?void 0:a.article.excerpt,datePublished:a==null?void 0:a.article.created_at,dateModified:a==null?void 0:a.article.updated_at,author:{"@type":"Organization",name:"Kibbi"}})})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-7xl px-4 md:px-6 pt-32 pb-12",children:[i.jsx(ise,{items:l}),s?i.jsxs("div",{className:"max-w-4xl mx-auto",children:[i.jsx(vr,{className:"h-12 w-3/4 mb-4"}),i.jsx(vr,{className:"h-6 w-48 mb-8"}),i.jsx(vr,{className:"h-96 w-full"})]}):i.jsxs("div",{className:"flex gap-8 lg:gap-12",children:[i.jsxs("article",{className:"flex-1 min-w-0 max-w-4xl",children:[i.jsxs("header",{className:"mb-8",children:[i.jsxs("div",{className:"flex items-start justify-between gap-4 mb-4",children:[i.jsx("h1",{className:"font-crimson text-3xl md:text-4xl font-bold flex-1",children:a==null?void 0:a.article.title}),n&&i.jsxs(le,{variant:"outline",size:"sm",onClick:()=>r(`/help/edit/${e}/${t}`),className:"flex-shrink-0",children:[i.jsx(cc,{className:"w-4 h-4 mr-2"}),"Edit Article"]})]}),i.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(Da,{className:"w-4 h-4"}),i.jsxs("span",{children:[c," min read"]})]}),(a==null?void 0:a.article.updated_at)&&i.jsxs("span",{children:["Updated ",ci(new Date(a.article.updated_at),"MMM d, yyyy")]})]})]}),i.jsx("div",{className:"prose prose-lg max-w-none mb-12",children:(a==null?void 0:a.article.content)&&i.jsx(Pk,{content:a.article.content})}),(a==null?void 0:a.article)&&i.jsx(A_t,{articleId:a.article.id,articleTitle:a.article.title}),i.jsxs("div",{className:"mt-8 p-6 rounded-xl border border-border bg-accent/50 text-center",children:[i.jsx("h3",{className:"font-semibold mb-2",children:"Still need help?"}),i.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Our team is ready to assist you with any questions."}),i.jsx(le,{asChild:!0,variant:"outline",children:i.jsxs("a",{href:"/contact",children:[i.jsx(Vd,{className:"w-4 h-4 mr-2"}),"Contact Support"]})})]}),(a==null?void 0:a.article)&&(a==null?void 0:a.category)&&i.jsx(T_t,{currentArticleId:a.article.id,categoryId:a.article.category_id,categorySlug:a.category.slug})]}),(a==null?void 0:a.article)&&i.jsx(N_t,{content:a.article.content})]})]}),i.jsx(br,{})]})]})}function P_t(){const[e]=ka(),t=e.get("q")||"",{data:r,searchTerm:n,setSearchTerm:a,isSearching:s}=ATe(t),{data:o}=TG();k.useEffect(()=>{a(t)},[t,a]),k.useEffect(()=>{n&&!s&&Ko.capture("help_search_performed",{search_term:n,results_count:(r==null?void 0:r.length)||0})},[n,s,r]);const l=c=>o==null?void 0:o.find(u=>u.id===c);return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsxs("title",{children:[n?`Search: ${n}`:"Search"," | Kibbi Help Center"]}),i.jsx("meta",{name:"description",content:"Search Kibbi's help center to find answers to your questions."})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:[i.jsxs("div",{className:"mb-8",children:[i.jsx("h1",{className:"font-crimson text-3xl md:text-4xl font-bold mb-6 text-center",children:"Search Help Articles"}),i.jsx("div",{className:"flex justify-center",children:i.jsx(TTe,{value:n,onChange:a,isLoading:s})})]}),n.length>=2?i.jsx(i.Fragment,{children:s?i.jsxs("div",{className:"text-center py-12",children:[i.jsx("div",{className:"w-12 h-12 border-4 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),i.jsx("p",{className:"text-muted-foreground",children:"Searching..."})]}):r&&r.length>0?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"mb-6",children:i.jsxs("p",{className:"text-muted-foreground",children:["Found ",i.jsx("span",{className:"font-semibold text-foreground",children:r.length})," ","result",r.length!==1?"s":"",' for "',i.jsx("span",{className:"font-semibold text-foreground",children:n}),'"']})}),i.jsx("div",{className:"space-y-4",children:r.map(c=>{const u=l(c.category_id);return i.jsx("div",{children:i.jsx(yoe,{article:{id:c.id,title:c.title,slug:c.slug,excerpt:c.excerpt,category_id:c.category_id},categorySlug:(u==null?void 0:u.slug)||"",categoryName:u==null?void 0:u.name,showCategory:!0})},c.id)})})]}):i.jsxs("div",{className:"text-center py-12",children:[i.jsx(go,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),i.jsx("h2",{className:"font-crimson text-2xl font-bold mb-2",children:"No results found"}),i.jsxs("p",{className:"text-muted-foreground mb-6",children:[`We couldn't find any articles matching "`,i.jsx("span",{className:"font-semibold",children:n}),'"']}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Try:"}),i.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[i.jsx("li",{children:"⢠Using different keywords"}),i.jsx("li",{children:"⢠Checking your spelling"}),i.jsx("li",{children:"⢠Browsing our categories"})]})]}),i.jsx("div",{className:"mt-8",children:i.jsx("a",{href:"/help",className:"text-primary hover:underline font-medium",children:"â Browse all categories"})})]})}):i.jsx("div",{className:"text-center py-12 text-muted-foreground",children:i.jsx("p",{children:"Enter at least 2 characters to search"})})]}),i.jsx(br,{})]})]})}const L_t=e=>{const t=El();return rl({mutationFn:async r=>{const{error:n}=await oe.from("help_articles").update({...r,updated_at:new Date().toISOString()}).eq("id",e);if(n)throw n},onSuccess:()=>{t.invalidateQueries({queryKey:["help-article"]})}})};var AG="Switch",[O_t,UWt]=xa(AG),[R_t,D_t]=O_t(AG),ITe=k.forwardRef((e,t)=>
8107{const{__scopeSwitch:r,name:n,checked:a,defaultChecked:s,required:o,disabled:l,value:c="on",onCheckedChange:u,form:d,...h}=e,[f,p]=k.useState(null),y=Vt(t,x=>p(x)),m=k.useRef(!1),v=f?d||!!f.closest("form"):!0,[g,b]=ks({prop:a,defaultProp:s??!1,onChange:u,caller:AG});return i.jsxs(R_t,{scope:r,checked:g,disabled:l,children:[i.jsx(dt.button,{type:"button",role:"switch","aria-checked":g,"aria-required":o,"data-state":RTe(g),"data-disabled":l?"":void 0,disabled:l,value:c,...h,ref:y,onClick:Xe(e.onClick,x=>{b(_=>!_),v&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})}),v&&i.jsx(OTe,{control:f,bubbles:!m.current,name:n,value:c,checked:g,required:o,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});ITe.displayName=AG;var PTe="SwitchThumb",LTe=k.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,a=D_t(PTe,r);return i.jsx(dt.span,{"data-state":RTe(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})});LTe.displayName=PTe;var F_t="SwitchBubbleInput",OTe=k.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...a},s)=>{const o=k.useRef(null),l=Vt(o,s),c=JW(r),u=iW(t);return k.useEffect(()=>{const d=o.current;if(!d)return;const h=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==r&&p){const y=new Event("click",{bubbles:n});p.call(d,r),d.dispatchEvent(y)}},[c,r,n]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});OTe.displayName=F_t;function RTe(e){return e?"checked":"unchecked"}var DTe=ITe,$_t=LTe;const $k=k.forwardRef(({className:e,...t},r)=>i.jsx(DTe,{className:De("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:r,children:i.jsx($_t,{className:De("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));$k.displayName=DTe.displayName;function B_t(){const{categorySlug:e,articleSlug:t}=Ou(),r=wt(),{isAdmin:n,loading:a}=Fr(),{toast:s}=Xt(),{data:o,isLoading:l}=MTe(e,t),{data:c,isLoading:u}=TG(),d=L_t((o==null?void 0:o.article.id)||""),[h,f]=k.useState({title:"",slug:"",excerpt:"",content:"",is_published:!1,category_id:""});k.useEffect(()=>{!a&&!n&&r("/")},[n,a,r]),k.useEffect(()=>{o!=null&&o.article&&f({title:o.article.title,slug:o.article.slug,excerpt:o.article.excerpt||"",content:o.article.content,is_published:o.article.is_published,category_id:o.article.category_id})},[o]);const p=async y=>{y.preventDefault();try{await d.mutateAsync({...h,excerpt:h.excerpt||null}),s({title:"Success",description:"Article updated successfully"}),r(`/help/${e}/${h.slug}`)}catch(m){console.error("Error updating article:",m),s({title:"Error",description:"Failed to update article",variant:"destructive"})}};return a||l||u?i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:[i.jsx(vr,{className:"h-12 w-64 mb-8"}),i.jsx(vr,{className:"h-96 w-full"})]})]}):o!=null&&o.article?i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:[i.jsxs(le,{variant:"ghost",onClick:()=>r(`/help/${e}/${t}`),className:"mb-6",children:[i.jsx(ea,{className:"w-4 h-4 mr-2"}),"Back to Article"]}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{className:"font-crimson text-3xl",children:"Edit Help Article"}),i.jsx(Rt,{children:"Make changes to the help article content and settings"})]}),i.jsx(qe,{children:i.jsxs("form",{onSubmit:p,className:"space-y-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"title",children:"Title"}),i.jsx(Pt,{id:"title",value:h.title,onChange:y=>f({...h,title:y.target.value}),required:!0})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs(Nt,{htmlFor:"slug",children:["Slug"," ",i.jsx("span",{className:"text-xs text-muted-foreground",children:"(changing this will change the URL)"})]}),i.jsx(Pt,{id:"slug",value:h.slug,onChange:y=>f({...h,slug:y.target.value}),pattern:"[a-z0-9-]+",title:"Only lowercase letters, numbers, and hyphens",required:!0})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{htmlFor:"category",children:"Category"}),i.jsxs(rn,{value:h.category_id,onValueChange:y=>f({...h,category_id:y}),children:[i.jsx(Wr,{children:i.jsx(nn,{placeholder:"Select a category"})}),i.jsx(Gr,{children:c==null?void 0:c.map(y=>i.jsx(pt,{value:y.id,children:y.name},y.id))})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs(Nt,{htmlFor:"excerpt",children:["Excerpt"," ",i.jsx("span",{className:"text-xs text-muted-foreground",children:"(optional, ~150-160 characters for SEO)"})]}),i.jsx(Dr,{id:"excerpt",value:h.excerpt,onChange:y=>f({...h,excerpt:y.target.value}),rows:3,maxLength:200}),i.jsxs("p",{className:"text-xs text-muted-foreground text-right",children:[h.excerpt.length,"/200 characters"]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs(Nt,{htmlFor:"content",children:["Content"," ",i.jsx("span",{className:"text-xs text-muted-foreground",children:"(supports Markdown)"})]}),i.jsx(Dr,{id:"content",value:h.content,onChange:y=>f({...h,content:y.target.value}),rows:20,className:"font-mono text-sm",required:!0})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($k,{id:"is_published",checked:h.is_published,onCheckedChange:y=>f({...h,is_published:y})}),i.jsx(Nt,{htmlFor:"is_published",children:"Published"})]}),i.jsxs("div",{className:"flex gap-4",children:[i.jsxs(le,{type:"submit",disabled:d.isPending,children:[d.isPending&&i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"}),"Save Changes"]}),i.jsx(le,{type:"button",variant:"outline",onClick:()=>r(`/help/${e}/${t}`),children:"Cancel"})]})]})})]})]}),i.jsx(br,{})]}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsx("main",{className:"container mx-auto max-w-4xl px-4 md:px-6 pt-32 pb-12",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h1",{className:"font-crimson text-3xl font-bold mb-4",children:"Article Not Found"}),i.jsx(le,{onClick:()=>r("/help"),children:"Back to Help Center"})]})})]})}const z_t=e=>e.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-");function U_t(){var N;const e=wt(),{isAdmin:t,loading:r}=Fr(),{toast:n}=Xt(),a=El(),{data:s}=TG(),[o,l]=k.useState(""),[c,u]=k.useState("all"),[d,h]=k.useState("all"),[f,p]=k.useState(null),[y,m]=k.useState(!1),[v,g]=k.useState({title:"",slug:"",excerpt:"",content:"",is_published:!1,category_id:""});k.useEffect(()=>{!r&&!t&&e("/")},[t,r,e]);const{data:b,isLoading:x}=ei({queryKey:["admin-help-articles"],queryFn:async()=>{const{data:A,error:$}=await oe.from("help_articles").select("*").order("updated_at",{ascending:!1});if($)throw $;return A},enabled:!!t}),_=k.useMemo(()=>{const A={};
8107return s==null||s.forEach($=>{A[$.id]={name:$.name,slug:$.slug}}),A},[s]),w=k.useMemo(()=>b?b.filter(A=>{if(c==="published"&&!A.is_published||c==="draft"&&A.is_published||d!=="all"&&A.category_id!==d)return!1;if(o){const $=o.toLowerCase();return A.title.toLowerCase().includes($)||A.slug.toLowerCase().includes($)||A.content.toLowerCase().includes($)}return!0}):[],[b,o,c,d]),j=rl({mutationFn:async({id:A,is_published:$})=>{const{error:T}=await oe.from("help_articles").update({is_published:$,updated_at:new Date().toISOString()}).eq("id",A);if(T)throw T},onSuccess:()=>{a.invalidateQueries({queryKey:["admin-help-articles"]}),n({title:"Updated",description:"Publish status changed."})},onError:A=>n({title:"Error",description:A.message,variant:"destructive"})}),E=rl({mutationFn:async A=>{const{error:$}=await oe.from("help_articles").delete().eq("id",A);if($)throw $},onSuccess:()=>{a.invalidateQueries({queryKey:["admin-help-articles"]}),n({title:"Deleted",description:"Article removed."})},onError:A=>n({title:"Error",description:A.message,variant:"destructive"})}),C=rl({mutationFn:async A=>{const{data:$,error:T}=await oe.from("help_articles").insert({title:A.title,slug:A.slug,excerpt:A.excerpt||null,content:A.content,is_published:A.is_published,category_id:A.category_id}).select().single();if(T)throw T;return $},onSuccess:A=>{a.invalidateQueries({queryKey:["admin-help-articles"]}),n({title:"Created",description:"Article created successfully."}),m(!1),g({title:"",slug:"",excerpt:"",content:"",is_published:!1,category_id:""});const $=_[A.category_id];$&&e(`/help/edit/${$.slug}/${A.slug}`)},onError:A=>n({title:"Error",description:A.message,variant:"destructive"})});return r?i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-7xl px-4 md:px-6 pt-32 pb-12",children:[i.jsx(vr,{className:"h-12 w-64 mb-8"}),i.jsx(vr,{className:"h-96 w-full"})]})]}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-7xl px-4 md:px-6 pt-32 pb-12",children:[i.jsxs("div",{className:"flex items-start justify-between mb-8 flex-wrap gap-4",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"font-crimson text-4xl font-bold",children:"Help Articles"}),i.jsx("p",{className:"text-muted-foreground mt-2",children:"Manage all help center articles â view, edit, publish, or create new ones."})]}),i.jsxs(Xr,{open:y,onOpenChange:m,children:[i.jsx(lse,{asChild:!0,children:i.jsxs(le,{children:[i.jsx(uc,{className:"w-4 h-4 mr-2"})," New Article"]})}),i.jsxs(Ur,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsx(Tr,{children:"Create Help Article"}),i.jsx(ra,{children:"Fill in the details. You can edit further after creating."})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:"Title"}),i.jsx(Pt,{value:v.title,onChange:A=>{const $=A.target.value;g(T=>({...T,title:$,slug:T.slug||z_t($)}))}})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:"Slug"}),i.jsx(Pt,{value:v.slug,onChange:A=>g({...v,slug:A.target.value}),pattern:"[a-z0-9-]+"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:"Category"}),i.jsxs(rn,{value:v.category_id,onValueChange:A=>g({...v,category_id:A}),children:[i.jsx(Wr,{children:i.jsx(nn,{placeholder:"Select category"})}),i.jsx(Gr,{children:s==null?void 0:s.map(A=>i.jsx(pt,{value:A.id,children:A.name},A.id))})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:"Excerpt"}),i.jsx(Dr,{value:v.excerpt,onChange:A=>g({...v,excerpt:A.target.value}),rows:2,maxLength:200})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:"Content (Markdown)"}),i.jsx(Dr,{value:v.content,onChange:A=>g({...v,content:A.target.value}),rows:12,className:"font-mono text-sm"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($k,{checked:v.is_published,onCheckedChange:A=>g({...v,is_published:A})}),i.jsx(Nt,{children:"Publish immediately"})]})]}),i.jsxs(_2,{children:[i.jsx(le,{variant:"outline",onClick:()=>m(!1),children:"Cancel"}),i.jsxs(le,{onClick:()=>C.mutate(v),disabled:C.isPending||!v.title||!v.slug||!v.content||!v.category_id,children:[C.isPending&&i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"}),"Create"]})]})]})]})]}),i.jsx(Ie,{className:"mb-6",children:i.jsx(qe,{className:"pt-6",children:i.jsxs("div",{className:"flex flex-wrap gap-4 items-end",children:[i.jsxs("div",{className:"flex-1 min-w-[240px] space-y-2",children:[i.jsx(Nt,{children:"Search"}),i.jsxs("div",{className:"relative",children:[i.jsx(go,{className:"w-4 h-4 absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),i.jsx(Pt,{className:"pl-10",placeholder:"Search title, slug, content...",value:o,onChange:A=>l(A.target.value)})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:"Status"}),i.jsxs(rn,{value:c,onValueChange:A=>u(A),children:[i.jsx(Wr,{className:"w-[160px]",children:i.jsx(nn,{})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"all",children:"All"}),i.jsx(pt,{value:"published",children:"Published"}),i.jsx(pt,{value:"draft",children:"Draft"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(Nt,{children:"Category"}),i.jsxs(rn,{value:d,onValueChange:h,children:[i.jsx(Wr,{className:"w-[200px]",children:i.jsx(nn,{})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"all",children:"All categories"}),s==null?void 0:s.map(A=>i.jsx(pt,{value:A.id,children:A.name},A.id))]})]})]})]})})}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:x?"Loading...":`${w.length} article${w.length===1?"":"s"}`}),i.jsx(Rt,{children:"Click an article title to view full content. Use Edit for full editing."})]}),i.jsx(qe,{children:x?i.jsx(vr,{className:"h-64 w-full"}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Title"}),i.jsx(Ce,{children:"Category"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{className:"text-right",children:"Views"}),i.jsx(Ce,{children:"Updated"}),i.jsx(Ce,{className:"text-right",children:"Actions"})]})}),i.jsxs(ga,{children:[w.map(A=>{const $=_[A.category_id];return i.jsxs(Jt,{children:[i.jsxs(Ee,{children:[i.jsx("button",{onClick:()=>p(A),className:"text-left font-medium hover:underline",children:A.title}),i.jsxs("div",{className:"text-xs text-muted-foreground",children:["/",A.slug]})]}),i.jsx(Ee,{className:"text-sm",children:($==null?void 0:$.name)||"â"}),i.jsx(Ee,{children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx($k,{checked:A.is_published,onCheckedChange:T=>j.mutate({id:A.id,is_published:T})}),i.jsx(Re,{variant:A.is_published?"default":"secondary",children:A.is_published?"Published":"Draft"})]})}),i.jsx(Ee,{className:"text-right",children:A.views_count}),i.jsx(Ee,{className:"text-sm text-muted-foreground",children:new Date(A.updated_at).toLocaleDateString()}),i.jsx(Ee,{className:"text-right",children:i.jsxs("div",{className:"flex justify-end gap-1",children:[i.jsx(le,{size:"sm",variant:"ghost",onClick:()=>p(A),title:"View",children:i.jsx(Qa,{className:"w-4 h-4"})}),i.jsx(le,{size:"sm",variant:"ghost",onClick:()=>{$&&e(`/help/edit/${$.slug}/${A.slug}`)},title:"Edit",disabled:!$,children:i.jsx(cc,{className:"w-4 h-4"})}),i.jsxs(Jl,{children:[i.jsx(uct,{asChild:!0,children:i.jsx(le,{size:"sm",variant:"ghost",title:"Delete",children:i.jsx(ws,{className:"w-4 h-4 text-destructive"})})}),i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Delete article?"}),i.jsxs(hl,{children:['"',A.title,'" will be permanently deleted. This cannot be undone.']})]}),i.jsxs(ul,{children:[i.jsx(pl,{children:"Cancel"}),i.jsx(fl,{onClick:()=>E.mutate(A.id),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})]})]})})]},A.id)}
8107),w.length===0&&i.jsx(Jt,{children:i.jsx(Ee,{colSpan:6,className:"text-center text-muted-foreground py-8",children:"No articles match your filters."})})]})]})})})]})]}),i.jsx(Xr,{open:!!f,onOpenChange:A=>!A&&p(null),children:i.jsxs(Ur,{className:"max-w-4xl max-h-[90vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsx(Tr,{className:"font-crimson text-2xl",children:f==null?void 0:f.title}),i.jsxs(ra,{children:[f&&((N=_[f.category_id])==null?void 0:N.name)," · /",f==null?void 0:f.slug," ·"," ",f!=null&&f.is_published?"Published":"Draft"," · ",f==null?void 0:f.views_count," views"]})]}),(f==null?void 0:f.excerpt)&&i.jsx("div",{className:"text-sm text-muted-foreground italic border-l-2 border-border pl-3",children:f.excerpt}),i.jsx("pre",{className:"whitespace-pre-wrap font-mono text-sm bg-muted p-4 rounded-md overflow-x-auto",children:f==null?void 0:f.content}),i.jsxs(_2,{children:[i.jsx(le,{variant:"outline",onClick:()=>p(null),children:"Close"}),i.jsxs(le,{onClick:()=>{if(!f)return;const A=_[f.category_id];A&&e(`/help/edit/${A.slug}/${f.slug}`)},children:[i.jsx(cc,{className:"w-4 h-4 mr-2"})," Edit"]})]})]})}),i.jsx(br,{})]})}const q_t=()=>{const e=wt(),{isAdmin:t,loading:r}=Fr(),[n,a]=k.useState([]),[s,o]=k.useState(null),[l,c]=k.useState([]),[u,d]=k.useState(!1),[h,f]=k.useState("all"),[p,y]=k.useState(!0),[m,v]=k.useState(""),[g,b]=k.useState(!1),{toast:x}=Xt();k.useEffect(()=>{if(!r){if(!t){e("/");return}_()}},[t,r,e,h]);const _=async()=>{y(!0);try{const{data:C,error:N}=await oe.rpc("get_chatbot_conversations_with_user_emails");if(N)throw N;const{data:A,error:$}=await oe.from("chat_messages").select("*").order("created_at",{ascending:!0});if($)throw $;const T=(A||[]).reduce((M,z)=>(M[z.conversation_id]||(M[z.conversation_id]=[]),M[z.conversation_id].push(z),M),{});let F=(C||[]).map(M=>{var W,ee,Z;const z=T[M.id]||[],Y=z.filter(V=>V.role==="user");return{id:M.id,user_id:M.user_id,user_email:M.user_email,session_id:M.session_id,created_at:M.created_at,message_count:z.length,first_message:((W=Y[0])==null?void 0:W.content.substring(0,100))||"No messages",last_message_at:((ee=z[z.length-1])==null?void 0:ee.created_at)||M.created_at,last_page_context:((Z=z[z.length-1])==null?void 0:Z.page_context)||"Unknown"}});h==="authenticated"?F=F.filter(M=>M.user_id!==null):h==="anonymous"&&(F=F.filter(M=>M.user_id===null)),a(F)}catch(C){console.error("Error loading conversations:",C)}finally{y(!1)}},w=async C=>{try{const{data:N,error:A}=await oe.from("chat_messages").select("*").eq("conversation_id",C).order("created_at",{ascending:!0});if(A)throw A;c(N||[])}catch(N){console.error("Error loading messages:",N)}},j=C=>{o(C),w(C.id),d(!0)},E=async C=>{if(C.preventDefault(),!(!m.trim()||!s||g)){b(!0);try{const{data:N,error:A}=await oe.functions.invoke("send-admin-reply",{body:{conversationId:s.id,content:m.trim(),pageContext:null}});if(A)throw A;if(N!=null&&N.error)throw new Error(N.error);N!=null&&N.message&&c($=>[...$,N.message]),v(""),x({title:"Reply sent",description:"Your message has been sent to the user"})}catch(N){console.error("Error sending admin reply:",N),x({title:"Error",description:N instanceof Error?N.message:"Failed to send reply",variant:"destructive"})}finally{b(!1)}}};return r||p?i.jsx("div",{className:"min-h-screen bg-gradient-to-b from-kibbi-cream to-white flex items-center justify-center",children:i.jsx("p",{children:"Loading..."})}):i.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-kibbi-cream to-white",children:[i.jsx(js,{title:"Chatbot Conversations"}),i.jsx("div",{className:"container mx-auto px-4 py-6",children:i.jsx(Mv,{value:h,onValueChange:C=>f(C),children:i.jsxs(X0,{children:[i.jsx(Zn,{value:"all",children:"All Conversations"}),i.jsx(Zn,{value:"authenticated",children:"Authenticated Users"}),i.jsx(Zn,{value:"anonymous",children:"Anonymous Visitors"})]})})}),i.jsx("main",{className:"container mx-auto px-4 py-8",children:i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsxs(Ke,{children:[h==="all"&&"All Conversations",h==="authenticated"&&"Authenticated User Conversations",h==="anonymous"&&"Anonymous Visitor Conversations"]}),i.jsxs(Rt,{children:[n.length," total conversations"]})]}),i.jsx(qe,{children:n.length===0?i.jsx("p",{className:"text-center text-muted-foreground py-8",children:"No conversations foun
8107d"}):i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Session ID"}),i.jsx(Ce,{children:"User"}),i.jsx(Ce,{children:"Messages"}),i.jsx(Ce,{children:"First Message"}),i.jsx(Ce,{children:"Last Page"}),i.jsx(Ce,{children:"Created"}),i.jsx(Ce,{children:"Actions"})]})}),i.jsx(ga,{children:n.map(C=>i.jsxs(Jt,{children:[i.jsxs(Ee,{className:"font-mono text-xs",children:[C.session_id.substring(0,8),"..."]}),i.jsx(Ee,{children:C.user_id?i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsx(Re,{children:"Authenticated"}),C.user_email&&i.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:C.user_email})]}):i.jsx(Re,{variant:"outline",children:"Anonymous"})}),i.jsx(Ee,{children:C.message_count}),i.jsx(Ee,{className:"max-w-xs truncate",children:C.first_message}),i.jsx(Ee,{className:"text-xs text-muted-foreground",children:C.last_page_context}),i.jsx(Ee,{children:new Date(C.created_at).toLocaleDateString()}),i.jsx(Ee,{children:i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>j(C),children:[i.jsx(Qa,{className:"h-4 w-4 mr-1"}),"View"]}
8107)})]},C.id))})]})})]})}),i.jsx(Xr,{open:u,onOpenChange:d,children:i.jsxs(Ur,{className:"max-w-3xl max-h-[80vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsx(Tr,{children:"Conversation Details"}),i.jsxs(ra,{children:["Session: ",s==null?void 0:s.session_id,(s==null?void 0:s.user_email)&&i.jsxs("span",{className:"block mt-1",children:["User: ",s.user_email]})]})]}),i.jsx("div",{className:"space-y-4 max-h-[50vh] overflow-y-auto",children:l.map(C=>i.jsxs("div",{className:`p-4 rounded-lg ${C.role==="user"?"bg-blue-50 ml-8":C.sent_by_admin?"bg-amber-50 border-l-4 border-amber-600 dark:bg-amber-950/30 mr-8":"bg-gray-50 mr-8"}`,children:[i.jsxs("div",{className:"flex justify-between items-start mb-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[C.sent_by_admin&&i.jsx(i0,{className:"h-3 w-3 text-amber-600"}),i.jsx(Re,{variant:C.role==="user"?"default":"secondary",className:C.sent_by_admin?"bg-amber-100 text-amber-800 border-amber-300 dark:bg-amber-900":"",children:C.role==="user"?"User":C.sent_by_admin?"Admin":"AI Assistant"})]}),i.jsx("span",{className:"text-xs text-muted-foreground",children:ci(new Date(C.created_at),"MMM d, h:mm a")})]}),i.jsx("p",{className:"whitespace-pre-wrap",children:C.content}),C.page_context&&i.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["Page: ",C.page_context]})]},C.id))}),i.jsxs("div",{className:"border-t pt-4 mt-4 bg-amber-50/50 dark:bg-amber-950/20 p-4 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx(i0,{className:"h-4 w-4 text-amber-600"}),i.jsx(Re,{className:"bg-amber-600",children:"Send Admin Reply"}),i.jsx("span",{className:"text-xs text-muted-foreground",children:"User will see this in their chat"})]}),i.jsxs("form",{onSubmit:E,className:"space-y-2",children:[i.jsx(Dr,{placeholder:"Type your admin reply here...",value:m,onChange:C=>v(C.target.value),rows:3,className:"resize-none"}),i.jsx("div",{className:"flex justify-end",children:i.jsxs(le,{type:"submit",disabled:!m.trim()||g,size:"sm",children:[g?i.jsx(Me,{className:"h-4 w-4 animate-spin mr-2"}):i.jsx(Gd,{className:"h-4 w-4 mr-2"}),"Send Reply"]})})]})]})]})})]})};var H_t=Array.isArray,Ts=H_t,V_t=typeof fa=="object"&&fa&&fa.Object===Object&&fa,FTe=V_t,W_t=FTe,G_t=typeof self=="object"&&self&&self.Object===Object&&self,K_t=W_t||G_t||Function("return this")(),Ec=K_t,Y_t=Ec,X_t=Y_t.Symbol,y4=X_t,V0e=y4,$Te=Object.prototype,Z_t=$Te.hasOwnProperty,Q_t=$Te.toString,Qx=V0e?V0e.toStringTag:void 0;function J_t(e){var t=Z_t.call(e,Qx),r=e[Qx];try{e[Qx]=void 0;var n=!0}catch{}var a=Q_t.call(e);return n&&(t?e[Qx]=r:delete e[Qx]),a}var e4t=J_t,t4t=Object.prototype,r4t=t4t.toString;function n4t(e){return r4t.call(e)}var a4t=n4t,W0e=y4,i4t=e4t,s4t=a4t,o4t="[object Null]",l4t="[object Undefined]",G0e=W0e?W0e.toStringTag:void 0;function c4t(e){return e==null?e===void 0?l4t:o4t:G0e&&G0e in Object(e)?i4t(e):s4t(e)}var zu=c4t;function u4t(e){return e!=null&&typeof e=="object"}var Uu=u4t,d4t=zu,h4t=Uu,f4t="[object Symbol]";function p4t(e){return typeof e=="symbol"||h4t(e)&&d4t(e)==f4t}var Fv=p4t,m4t=Ts,g4t=Fv,y4t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v4t=/^\w*$/;function x4t(e,t){if(m4t(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||g4t(e)?!0:v4t.test(e)||!y4t.test(e)||t!=null&&e in Object(t)}var voe=x4t;function b4t(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ch=b4t;const $v=jr(Ch);var w4t=zu,k4t=Ch,_4t="[object AsyncFunction]",S4t="[object Function]",j4t="[object GeneratorFunction]",E4t="[object Proxy]";function C4t(e){if(!k4t(e))return!1;var t=w4t(e);return t==S4t||t==j4t||t==_4t||t==E4t}var xoe=C4t;const fr=jr(xoe);var N4t=Ec,T4t=N4t["__core-js_shared__"],A4t=T4t,yQ=A4t,K0e=function(){var e=/[^.]+$/.exec(yQ&&yQ.keys&&yQ.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M4t(e){return!!K0e&&K0e in e}var I4t=M4t,P4t=Function.prototype,L4t=P4t.toString;function O4t(e){if(e!=null){try{return L4t.call(e)}catch{}try{return e+""}catch{}}return""}var BTe=O4t,R4t=xoe,D4t=I4t,F4t=Ch,$4t=BTe,B4t=/[\\^$.*+?()[\]{}|]/g,z4t=/^\[object .+?Constructor\]$/,U4t=Function.prototype,q4t=Object.prototype,H4t=U4t.toString,V4t=q4t.hasOwnProperty,W4t=RegExp("^"+H4t.call(V4t).replace(B4t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function G4t(e){if(!F4t(e)||D4t(e))return!1;var t=R4t(e)?W4t:z4t;return t.test($4t(e))}var K4t=G4t;function Y4t(e,t){return e==null?void 0:e[t]}var X4t=Y4t,Z4t=K4t,Q4t=X4t;function J4t(e,t){var r=Q4t(e,t);return Z4t(r)?r:void 0}var eg=J4t,e3t=eg,t3t=e3t(Object,"create"),MG=t3t,Y0e=MG;function r3t(){this.__data__=Y0e?Y0e(null):{},this.size=0}var n3t=r3t;function a3t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var i3t=a3t,s3t=MG,o3t="__lodash_hash_undefined__",l3t=Object.prototype,c3t=l3t.hasOwnProperty;function u3t(e){var t=this.__data__;if(s3t){var r=t[e];return r===o3t?void 0:r}return c3t.call(t,e)?t[e]:void 0}var d3t=u3t,h3t=MG,f3t=Object.prototype,p3t=f3t.hasOwnProperty;function m3t(e){var t=this.__data__;return h3t?t[e]!==void 0:p3t.call(t,e)}var g3t=m3t,y3t=MG,v3t="__lodash_hash_undefined__";function x3t(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=y3t&&t===void 0?v3t:t,this}var b3t=x3t,w3t=n3t,k3t=i3t,_3t=d3t,S3t=g3t,j3t=b3t;function Bv(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Bv.prototype.clear=w3t;Bv.prototype.delete=k3t;Bv.prototype.get=_3t;Bv.prototype.has=S3t;Bv.prototype.set=j3t;var E3t=Bv;function C3t(){this.__data__=[],this.size=0}var N3t=C3t;function T3t(e,t){return e===t||e!==e&&t!==t}var boe=T3t,A3t=boe;function M3t(e,t){for(var r=e.length;r--;)if(A3t(e[r][0],t))return r;return-1}var IG=M3t,I3t=IG,P3t=Array.prototype,L3t=P3t.splice;function O3t(e){var t=this.__data__,r=I3t(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():L3t.call(t,r,1),--this.size,!0}var R3t=O3t,D3t=IG;function F3t(e){var t=this.__data__,r=D3t(t,e);return r<0?void 0:t[r][1]}var $3t=F3t,B3t=IG;function z3t(e){return B3t(this.__data__,e)>-1}var U3t=z3t,q3t=IG;function H3t(e,t){var r=this.__data__,n=q3t(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var V3t=H3t,W3t=N3t,G3t=R3t,K3t=$3t,Y3t=U3t,X3t=V3t;function zv(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}zv.prototype.clear=W3t;zv.prototype.delete=G3t;zv.prototype.get=K3t;zv.prototype.has=Y3t;zv.prototype.set=X3t;var PG=zv,Z3t=eg,Q3t=Ec,J3t=Z3t(Q3t,"Map"),woe=J3t,X0e=E3t,eSt=PG,tSt=woe;function rSt(){this.size=0,this.__data__={hash:new X0e,map:new(tSt||eSt),string:new X0e}}var nSt=rSt;function aSt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var iSt=aSt,sSt=iSt;function oSt(e,t){var r=e.__data__;return sSt(t)?r[typeof t=="string"?"string":"hash"]:r.map}var LG=oSt,lSt=LG;function cSt(e){var t=lSt(this,e).delete(e);return this.size-=t?1:0,t}var uSt=cSt,dSt=LG;function hSt(e){return dSt(this,e).get(e)}var fSt=hSt,pSt=LG;
vendor: 1,073 bytes, line 8107
8107function mSt(e){return pSt(this,e).has(e)}var gSt=mSt,ySt=LG;function vSt(e,t){var r=ySt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var xSt=vSt,bSt=nSt,wSt=uSt,kSt=fSt,_St=gSt,SSt=xSt;function Uv(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Uv.prototype.clear=bSt;Uv.prototype.delete=wSt;Uv.prototype.get=kSt;Uv.prototype.has=_St;Uv.prototype.set=SSt;var koe=Uv,zTe=koe,jSt="Expected a function";function _oe(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(jSt);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var o=e.apply(this,n);return r.cache=s.set(a,o)||s,o};return r.cache=new(_oe.Cache||zTe),r}_oe.Cache=zTe;var UTe=_oe;const ESt=jr(UTe);var CSt=UTe,NSt=500;function TSt(e){var t=CSt(e,function(n){return r.size===NSt&&r.clear(),n}),r=t.cache;return t}var ASt=TSt,MSt=ASt,ISt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PSt=/\\(\\)?/g,LSt=MSt(function(e){var t=[];
vendor: 6,606 bytes, lines 8107-8115
8107return e.charCodeAt(0)===46&&t.push(""),e.replace(ISt,function(r,n,a,s){t.push(a?s.replace(PSt,"$1"):n||r)}),t}),OSt=LSt;function RSt(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var Soe=RSt,Z0e=y4,DSt=Soe,FSt=Ts,$St=Fv,BSt=1/0,Q0e=Z0e?Z0e.prototype:void 0,J0e=Q0e?Q0e.toString:void 0;function qTe(e){if(typeof e=="string")return e;if(FSt(e))return DSt(e,qTe)+"";if($St(e))return J0e?J0e.call(e):"";var t=e+"";return t=="0"&&1/e==-BSt?"-0":t}var zSt=qTe,USt=zSt;function qSt(e){return e==null?"":USt(e)}var HTe=qSt,HSt=Ts,VSt=voe,WSt=OSt,GSt=HTe;function KSt(e,t){return HSt(e)?e:VSt(e,t)?[e]:WSt(GSt(e))}var VTe=KSt,YSt=Fv,XSt=1/0;function ZSt(e){if(typeof e=="string"||YSt(e))return e;var t=e+"";return t=="0"&&1/e==-XSt?"-0":t}var OG=ZSt,QSt=VTe,JSt=OG;function ejt(e,t){t=QSt(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[JSt(t[r++])];return r&&r==n?e:void 0}var joe=ejt,tjt=joe;function rjt(e,t,r){var n=e==null?void 0:tjt(e,t);return n===void 0?r:n}var WTe=rjt;const bo=jr(WTe);function njt(e){return e==null}var ajt=njt;const Rr=jr(ajt);var ijt=zu,sjt=Ts,ojt=Uu,ljt="[object String]";function cjt(e){return typeof e=="string"||!sjt(e)&&ojt(e)&&ijt(e)==ljt}var ujt=cjt;const P0=jr(ujt);var GTe={exports:{}},Qr={};/** 8108 * @license React 8109 * react-is.production.min.js 8110 * 8111 * Copyright (c) Facebook, Inc. and its affiliates. 8112 * 8113 * This source code is licensed under the MIT license found in the 8114 * LICENSE file in the root directory of this source tree. 8115 */var Eoe=Symbol.for("react.element"),Coe=Symbol.for("react.portal"),RG=Symbol.for("react.fragment"),DG=Symbol.for("react.strict_mode"),FG=Symbol.for("react.profiler"),$G=Symbol.for("react.provider"),BG=Symbol.for("react.context"),djt=Symbol.for("react.server_context"),zG=Symbol.for("react.forward_ref"),UG=Symbol.for("react.suspense"),qG=Symbol.for("react.suspense_list"),HG=Symbol.for("react.memo"),VG=Symbol.for("react.lazy"),hjt=Symbol.for("react.offscreen"),KTe;KTe=Symbol.for("react.module.reference");function No(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Eoe:switch(e=e.type,e){case RG:case FG:case DG:case UG:case qG:return e;default:switch(e=e&&e.$$typeof,e){case djt:case BG:case zG:case VG:case HG:case $G:return e;default:return t}}case Coe:return t}}}Qr.ContextConsumer=BG;Qr.ContextProvider=$G;Qr.Element=Eoe;Qr.ForwardRef=zG;Qr.Fragment=RG;Qr.Lazy=VG;Qr.Memo=HG;Qr.Portal=Coe;Qr.Profiler=FG;Qr.StrictMode=DG;Qr.Suspense=UG;Qr.SuspenseList=qG;Qr.isAsyncMode=function(){return!1};Qr.isConcurrentMode=function(){return!1};Qr.isContextConsumer=function(e){return No(e)===BG};Qr.isContextProvider=function(e){return No(e)===$G};Qr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eoe};Qr.isForwardRef=function(e){return No(e)===zG};Qr.isFragment=function(e){return No(e)===RG};Qr.isLazy=function(e){return No(e)===VG};Qr.isMemo=function(e){return No(e)===HG};Qr.isPortal=function(e){return No(e)===Coe};Qr.isProfiler=function(e){return No(e)===FG};Qr.isStrictMode=function(e){return No(e)===DG};Qr.isSuspense=function(e){return No(e)===UG};Qr.isSuspenseList=function(e){return No(e)===qG};Qr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===RG||e===FG||e===DG||e===UG||e===qG||e===hjt||typeof e=="object"&&e!==null&&(e.$$typeof===VG||e.$$typeof===HG||e.$$typeof===$G||e.$$typeof===BG||e.$$typeof===zG||e.$$typeof===KTe||e.getModuleId!==void 0)};Qr.typeOf=No;GTe.exports=Qr;var fjt=GTe.exports,pjt=zu,mjt=Uu,gjt="[object Number]";function yjt(e){return typeof e=="number"||mjt(e)&&pjt(e)==gjt}var YTe=yjt;const vjt=jr(YTe);var xjt=YTe;function bjt(e){return xjt(e)&&e!=+e}var wjt=bjt;const v4=jr(wjt);var ml=function(t){return t===0?0:t>0?1:-1},$1=function(t){return P0(t)&&t.indexOf("%")===t.length-1},ot=function(t){return vjt(t)&&!v4(t)},kjt=function(t){return Rr(t)},Ra=function(t){return ot(t)||P0(t)},_jt=0,WG=function(t){var r=++_jt;return"".concat(t||"").concat(r)},L0=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ot(t)&&!P0(t))return n;var s;if($1(t)){var o=t.indexOf("%");s=r*parseFloat(t.slice(0,o))/100}else s=+t;return v4(s)&&(s=n),a&&s>r&&(s=r),s},yd=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Sjt=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a<r;a++)if(!n[t[a]])n[t[a]]=!0;else return!0;return!1},Mg=function(t,r){return ot(t)&&ot(r)?function(n){return t+n*(r-t)}:function(){return r}};function sre(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):bo(n,t))===r})}var jjt=function(t,r){return ot(t)&&ot(r)?t-r:P0(t)&&P0(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function qy(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function ore(e){"@babel/helpers - typeof";return ore=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ore(e)}var Ejt=["viewBox","children"],Cjt=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
8115dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],ege=["points","pathLength"],vQ={svg:Ejt,polygon:ege,polyline:ege},Noe=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
8115Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],BH=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(k.isValidElement(t)&&(n=t.props),!$v(n))return null;var a={};return Object.keys(n).forEach(function(s){Noe.includes(s)&&(a[s]=r||function(o){return n[s](n,o)})}),a},Njt=function(t,r,n){return function(a){return t(r,n,a),null}},zH=function(t,r,n){if(!$v(t)||ore(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(s){var o=t[s];Noe.includes(s)&&typeof o=="function"&&(a||(a={}),a[s]=Njt(o,r,n))}),a},Tjt=["children"],Ajt=["children"];function tge(e,t){if(e==null)return{};var r=Mjt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mjt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var rge={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},gu=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},nge=null,xQ=null,Toe=function e(t){if(t===nge&&Array.isArray(xQ))return xQ;var r=[];return k.Children.forEach(t,function(n){Rr(n)||(fjt.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),xQ=r,nge=t,r};function kl(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return gu(a)}):n=[gu(t)],Toe(e).forEach(function(a){var s=bo(a,"type.displayName")||bo(a,"type.name");n.indexOf(s)!==-1&&r.push(a)}),r}function Rs(e,t){var r=kl(e,t);return r&&r[0]}var age=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!ot(n)||n<=0||!ot(a)||a<=0)},Ijt=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Pjt=function(t){return t&&t.type&&P0(t.type)&&Ijt.indexOf(t.type)>=0},Ljt=function(t,r,n,a){var s,o=(s=vQ==null?void 0:vQ[a])!==null&&s!==void 0?s:[];return r.startsWith("data-")||!fr(t)&&(a&&o.includes(r)||Cjt.includes(r))||n&&Noe.includes(r)},Or=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(k.isValidElement(t)&&(a=t.props),!$v(a))return null;var s={};
8115return Object.keys(a).forEach(function(o){var l;Ljt((l=a)===null||l===void 0?void 0:l[o],o,r,n)&&(s[o]=a[o])}),s},lre=function e(t,r){if(t===r)return!0;var n=k.Children.count(t);if(n!==k.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ige(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var s=t[a],o=r[a];if(Array.isArray(s)||Array.isArray(o)){if(!e(s,o))return!1}else if(!ige(s,o))return!1}return!0},ige=function(t,r){if(Rr(t)&&Rr(r))return!0;if(!Rr(t)&&!Rr(r)){var n=t.props||{},a=n.children,s=tge(n,Tjt),o=r.props||{},l=o.children,c=tge(o,Ajt);return a&&l?qy(s,c)&&lre(a,l):!a&&!l?qy(s,c):!1}return!1},sge=function(t,r){var n=[],a={};return Toe(t).forEach(function(s,o){if(Pjt(s))n.push(s);else if(s){var l=gu(s.type),c=r[l]||{},u=c.handler,d=c.once;if(u&&(!d||!a[l])){var h=u(s,l,o);n.push(h),a[l]=!0}}}),n},Ojt=function(t){var r=t&&t.type;return r&&rge[r]?rge[r]:null},Rjt=function(t,r){return Toe(r).indexOf(t)},Djt=["children","width","height","viewBox","className","style","title","desc"];function cre(){return cre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cre.apply(this,arguments)}function Fjt(e,t){if(e==null)return{};var r=$jt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $jt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ure(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,s=e.className,o=e.style,l=e.title,c=e.desc,u=Fjt(e,Djt),d=a||{width:r,height:n,x:0,y:0},h=Mr("recharts-surface",s);return ce.createElement("svg",cre({},Or(u,!0,"svg"),{className:h,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),ce.createElement("title",null,l),ce.createElement("desc",null,c),t)}var Bjt=["children","className"];function dre(){return dre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dre.apply(this,arguments)}function zjt(e,t){if(e==null)return{};var r=Ujt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ujt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Za=ce.forwardRef(function(e,t){var r=e.children,n=e.className,a=zjt(e,Bjt),s=Mr("recharts-layer",n);return ce.createElement("g",dre({className:s},Or(a,!0),{ref:t}),r)}),yu=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),s=2;s<n;s++)a[s-2]=arguments[s]};function qjt(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(a);++n<a;)s[n]=e[n+t];return s}var Hjt=qjt,Vjt=Hjt;function Wjt(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Vjt(e,t,r)}var Gjt=Wjt,Kjt="\\ud800-\\udfff",Yjt="\\u0300-\\u036f",Xjt="\\ufe20-\\ufe2f",Zjt="\\u20d0-\\u20ff",Qjt=Yjt+Xjt+Zjt,Jjt="\\ufe0e\\ufe0f",e5t="\\u200d",t5t=RegExp("["+e5t+Kjt+Qjt+Jjt+"]");function r5t(e){return t5t.test(e)}var XTe=r5t;function n5t(e){return e.split("")}var a5t=n5t,ZTe="\\ud800-\\udfff",i5t="\\u0300-\\u036f",s5t="\\ufe20-\\ufe2f",o5t="\\u20d0-\\u20ff",l5t=i5t+s5t+o5t,c5t="\\ufe0e\\ufe0f",u5t="["+ZTe+"]",hre="["+l5t+"]",fre="\\ud83c[\\udffb-\\udfff]",d5t="(?:"+hre+"|"+fre+")",QTe="[^"+ZTe+"]",JTe="(?:\\ud83c[\\udde6-\\uddff]){2}",eAe="[\\ud800-\\udbff][\\udc00-\\udfff]",h5t="\\u200d",tAe=d5t+"?",rAe="["+c5t+"]?",f5t="(?:"+h5t+"(?:"+[QTe,JTe,eAe].join("|")+")"+rAe+tAe+")*",p5t=rAe+tAe+f5t,m5t="(?:"+[QTe+hre+"?",hre,JTe,eAe,u5t].join("|")+")",g5t=RegExp(fre+"(?="+fre+")|"+m5t+p5t,"g");function y5t(e){return e.match(g5t)||[]}var v5t=y5t,x5t=a5t,b5t=XTe,w5t=v5t;function k5t(e){return b5t(e)?w5t(e):x5t(e)}var _5t=k5t,S5t=Gjt,j5t=XTe,E5t=_5t,C5t=HTe;function N5t(e){return function(t){t=C5t(t);var r=j5t(t)?E5t(t):void 0,n=r?r[0]:t.charAt(0),a=r?S5t(r,1).join(""):t.slice(1);return n[e]()+a}}var T5t=N5t,A5t=T5t,M5t=A5t("toUpperCase"),I5t=M5t;const GG=jr(I5t);function cn(e){return function(){return e}}const nAe=Math.cos,UH=Math.sin,Al=Math.sqrt,qH=Math.PI,KG=2*qH,pre=Math.PI,mre=2*pre,_1=1e-6,P5t=mre-_1;function aAe(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function L5t(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return aAe;const r=10**t;return function(n){this._+=n[0];for(let a=1,s=n.length;a<s;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class O5t{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?aAe:L5t(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,a){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(t,r,n,a,s,o){this._append`C${+t},${+r},${+n}
8115,${+a},${this._x1=+s},${this._y1=+o}`}arcTo(t,r,n,a,s){if(t=+t,r=+r,n=+n,a=+a,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,c=n-t,u=a-r,d=o-t,h=l-r,f=d*d+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>_1)if(!(Math.abs(h*c-u*d)>_1)||!s)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=a-l,m=c*c+u*u,v=p*p+y*y,g=Math.sqrt(m),b=Math.sqrt(f),x=s*Math.tan((pre-Math.acos((m+f-v)/(2*g*b)))/2),_=x/b,w=x/g;Math.abs(_-1)>_1&&this._append`L${t+_*d},${r+_*h}`,this._append`A${s},${s},0,0,${+(h*p>d*y)},${this._x1=t+w*c},${this._y1=r+w*u}`}}arc(t,r,n,a,s,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(a),c=n*Math.sin(a),u=t+l,d=r+c,h=1^o,f=o?a-s:s-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>_1||Math.abs(this._y1-d)>_1)&&this._append`L${u},${d}`,n&&(f<0&&(f=f%mre+mre),f>P5t?this._append`A${n},${n},0,1,${h},${t-l},${r-c}A${n},${n},0,1,${h},${this._x1=u},${this._y1=d}`:f>_1&&this._append`A${n},${n},0,${+(f>=pre)},${h},${this._x1=t+n*Math.cos(s)},${this._y1=r+n*Math.sin(s)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function Aoe(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new O5t(t)}function Moe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function iAe(e){this._context=e}iAe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function YG(e){return new iAe(e)}function sAe(e){return e[0]}function oAe(e){return e[1]}function lAe(e,t){var r=cn(!0),n=null,a=YG,s=null,o=Aoe(l);e=typeof e=="function"?e:e===void 0?sAe:cn(e),t=typeof t=="function"?t:t===void 0?oAe:cn(t);function l(c){var u,d=(c=Moe(c)).length,h,f=!1,p;for(n==null&&(s=a(p=o())),u=0;u<=d;++u)!(u<d&&r(h=c[u],u,c))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+e(h,u,c),+t(h,u,c));if(p)return s=null,p+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:cn(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:cn(+c),l):t},l.defined=function(c){return arguments.length?(r=typeof c=="function"?c:cn(!!c),l):r},l.curve=function(c){return arguments.length?(a=c,n!=null&&(s=a(n)),l):a},l.context=function(c){return arguments.length?(c==null?n=s=null:s=a(n=c),l):n},l}function rS(e,t,r){var n=null,a=cn(!0),s=null,o=YG,l=null,c=Aoe(u);e=typeof e=="function"?e:e===void 0?sAe:cn(+e),t=typeof t=="function"?t:cn(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?oAe:cn(+r);function u(h){var f,p,y,m=(h=Moe(h)).length,v,g=!1,b,x=new Array(m),_=new Array(m);for(s==null&&(l=o(b=c())),f=0;f<=m;++f){if(!(f<m&&a(v=h[f],f,h))===g)if(g=!g)p=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),y=f-1;y>=p;--y)l.point(x[y],_[y]);l.lineEnd(),l.areaEnd()}g&&(x[f]=+e(v,f,h),_[f]=+t(v,f,h),l.point(n?+n(v,f,h):x[f],r?+r(v,f,h):_[f]))}if(b)return l=null,b+""||null}function d(){return lAe().defined(a).curve(o).context(s)}return u.x=function(h){return arguments.length?(e=typeof h=="function"?h:cn(+h),n=null,u):e},u.x0=function(h){return arguments.length?(e=typeof h=="function"?h:cn(+h),u):e},u.x1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:cn(+h),u):n},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:cn(+h),r=null,u):t},u.y0=function(h){return arguments.length?(t=typeof h=="function"?h:cn(+h),u):t},u.y1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:cn(+h),u):r},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(r)},u.lineX1=function(){return d().x(n).y(t)},u.defined=function(h){return arguments.length?(a=typeof h=="function"?h:cn(!!h),u):a},u.curve=function(h){return arguments.length?(o=h,s!=null&&(l=o(s)),u):o},u.context=function(h){return arguments.length?(h==null?s=l=null:l=o(s=h),u):s},u}class cAe{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function R5t(e){return new cAe(e,!0)}function D5t(e){return new cAe(e,!1)}const Ioe={draw(e,t){const r=Al(t/qH);e.moveTo(r,0),e.arc(0,0,r,0,KG)}},F5t={draw(e,t){const r=Al(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},uAe=Al(1/3),$5t=uAe*2,B5t={draw(e,t){const r=Al(t/$5t),n=r*uAe;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},z5t={draw(e,t){const r=Al(t),n=-r/2;e.rect(n,n,r,r)}},U5t=.8908130915292852,dAe=UH(qH/10)/UH(7*qH/10),q5t=UH(KG/10)*dAe,H5t=-nAe(KG/10)*dAe,V5t={draw(e,t){const r=Al(t*U5t),n=q5t*r,a=H5t*r;e.moveTo(0,-r),e.lineTo(n,a);for(let s=1;s<5;++s){const o=KG*s/5,l=nAe(o),c=UH(o);e.lineTo(c*r,-l*r),e.lineTo(l*n-c*a,c*n+l*a)}e.closePath()}},bQ=Al(3),W5t={draw(e,t){const r=-Al(t/(bQ*3));e.moveTo(0,r*2),e.lineTo(-bQ*r,-r),e.lineTo(bQ*r,-r),e.closePath()}},ro=-.5,no=Al(3)/2,gre=1/Al(12),G5t=(gre/2+1)*3,K5t={draw(e,t){const r=Al(t/G5t),n=r/2,a=r*gre,s=n,o=r*gre+r,l=-s,c=o;e.moveTo(n,a),e.lineTo(s,o),e.lineTo(l,c),e.lineTo(ro*n-no*a,no*n+ro*a),e.lineTo(ro*s-no*o,no*s+ro*o),e.lineTo(ro*l-no*c,no*l+ro*c),e.lineTo(ro*n+no*a,ro*a-no*n),e.lineTo(ro*s+no*o,ro*o-no*s),e.lineTo(ro*l+no*c,ro*c-no*l),e.closePath()}};function Y5t(e,t){let r=null,n=Aoe(a);e=typeof e=="function"?e:cn(e||Ioe),t=typeof t=="function"?t:cn(t===void 0?64:+t);function a(){let s;if(r||(r=s=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),s)return r=null,s+""||null}return a.type=function(s){return arguments.length?(e=typeof s=="function"?s:cn(s),a):e},a.size=function(s){return arguments.length?(t=typeof s=="function"?s:cn(+s),a):t},a.context=function(s){return arguments.length?(r=s??null,a):r},a}function HH(){}function VH(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function hAe(e){this._context=e}hAe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:VH(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:VH(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X5t(e){return new hAe(e)}function fAe(e){this._context=e}fAe.prototype={areaStart:HH,areaEnd:HH,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:VH(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Z5t(e){return new fAe(e)}function pAe(e){this._context=e}pAe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:VH(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Q5t(e){return new pAe(e)}function mAe(e){this._context=e}mAe.prototype={areaStart:HH,areaEnd:HH,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function J5t(e){return new mAe(e)}function oge(e){return e<0?-1:1}function lge(e,t,r){var n=e._x1-e._x0,a=t-e._x1,s=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),l=(s*a+o*n)/(n+a);return(oge(s)+oge(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function cge(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function wQ(e,t,r){var n=e._x0,a=e._y0,s=e._x1,o=e._y1,l=(s-n)/3;e._context.bezierCurveTo(n+l,a+l*t,s-l,o-l*r,s,o)}function WH(e){this._context=e}WH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:wQ(this,this._t0,cge(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,wQ(this,cge(this,r=lge(this,e,t)),r);break;default:wQ(this,this._t0,r=lge(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function gAe(e){this._context=new yAe(e)}(gAe.prototype=Object.create(WH.prototype)).point=function(e,t){WH.prototype.point.call(this,t,e)};function yAe(e){this._context=e}yAe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,s){this._context.bezierCurveTo(t,e,n,r,s,a)}};function e6t(e){return new WH(e)}function t6t(e){return new gAe(e)}function vAe(e){this._context=e}vAe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=uge(e),a=uge(t),s=0,o=1;o<r;++s,++o)this._context.bezierCurveTo(n[0][s],a[0][s],n[1][s],a[1][s],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function uge(e){var t,r=e.length-1,n,a=new Array(r),s=new Array(r),o=new Array(r);for(a[0]=0,s[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,s[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,s[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/s[t-1],s[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/s[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/s[t];for(s[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)s[t]=2*e[t+1]-a[t+1];return[a,s]}function r6t(e){return new vAe(e)}
8115function XG(e,t){this._context=e,this._t=t}XG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function n6t(e){return new XG(e,.5)}function a6t(e){return new XG(e,0)}function i6t(e){return new XG(e,1)}function R2(e,t){if((o=e.length)>1)for(var r=1,n,a,s=e[t[0]],o,l=s.length;r<o;++r)for(a=s,s=e[t[r]],n=0;n<l;++n)s[n][1]+=s[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function yre(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function s6t(e,t){return e[t]}function o6t(e){const t=[];return t.key=e,t}function l6t(){var e=cn([]),t=yre,r=R2,n=s6t;function a(s){var o=Array.from(e.apply(this,arguments),o6t),l,c=o.length,u=-1,d;for(const h of s)for(l=0,++u;l<c;++l)(o[l][u]=[0,+n(h,o[l].key,u,s)]).data=h;for(l=0,d=Moe(t(o));l<c;++l)o[d[l]].index=l;return r(o,d),o}return a.keys=function(s){return arguments.length?(e=typeof s=="function"?s:cn(Array.from(s)),a):e},a.value=function(s){return arguments.length?(n=typeof s=="function"?s:cn(+s),a):n},a.order=function(s){return arguments.length?(t=s==null?yre:typeof s=="function"?s:cn(Array.from(s)),a):t},a.offset=function(s){return arguments.length?(r=s??R2,a):r},a}function c6t(e,t){if((n=e.length)>0){for(var r,n,a=0,s=e[0].length,o;a<s;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}R2(e,t)}}function u6t(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,s=n.length;r<s;++r){for(var o=0,l=0;o<a;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}R2(e,t)}}function d6t(e,t){if(!(!((o=e.length)>0)||!((s=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,s,o;n<s;++n){for(var l=0,c=0,u=0;l<o;++l){for(var d=e[t[l]],h=d[n][1]||0,f=d[n-1][1]||0,p=(h-f)/2,y=0;y<l;++y){var m=e[t[y]],v=m[n][1]||0,g=m[n-1][1]||0;p+=v-g}c+=h,u+=p*h}a[n-1][1]+=a[n-1][0]=r,c&&(r-=u/c)}a[n-1][1]+=a[n-1][0]=r,R2(e,t)}}function Bk(e){"@babel/helpers - typeof";return Bk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bk(e)}var h6t=["type","size","sizeType"];function vre(){return vre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vre.apply(this,arguments)}function dge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function hge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dge(Object(r),!0).forEach(function(n){f6t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dge(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f6t(e,t,r){return t=p6t(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p6t(e){var t=m6t(e,"string");return Bk(t)=="symbol"?t:t+""}function m6t(e,t){if(Bk(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bk(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g6t(e,t){if(e==null)return{};var r=y6t(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y6t(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var xAe={symbolCircle:Ioe,symbolCross:F5t,symbolDiamond:B5t,symbolSquare:z5t,symbolStar:V5t,symbolTriangle:W5t,symbolWye:K5t},v6t=Math.PI/180,x6t=function(t){var r="symbol".concat(GG(t));return xAe[r]||Ioe},b6t=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*v6t;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},w6t=function(t,r){xAe["symbol".concat(GG(t))]=r},Poe=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,s=a===void 0?64:a,o=t.sizeType,l=o===void 0?"area":o,c=g6t(t,h6t),u=hge(hge({},c),{},{type:n,size:s,sizeType:l}),d=function(){var v=x6t(n),g=Y5t().type(v).size(b6t(s,l,n));return g()},h=u.className,f=u.cx,p=u.cy,y=Or(u,!0);return f===+f&&p===+p&&s===+s?ce.createElement("path",vre({}
vendor: 4,439 bytes, lines 8115-8118
8115,y,{className:Mr("recharts-symbols",h),transform:"translate(".concat(f,", ").concat(p,")"),d:d()})):null};Poe.registerSymbol=w6t;function D2(e){"@babel/helpers - typeof";return D2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D2(e)}function xre(){return xre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xre.apply(this,arguments)}function fge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function k6t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fge(Object(r),!0).forEach(function(n){zk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fge(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _6t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S6t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wAe(n.key),n)}}function j6t(e,t,r){return t&&S6t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E6t(e,t,r){return t=GH(t),C6t(e,bAe()?Reflect.construct(t,r||[],GH(e).constructor):t.apply(e,r))}function C6t(e,t){if(t&&(D2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N6t(e)}function N6t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bAe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bAe=function(){return!!e})()}function GH(e){return GH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},GH(e)}function T6t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bre(e,t)}function bre(e,t){return bre=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},bre(e,t)}function zk(e,t,r){return t=wAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wAe(e){var t=A6t(e,"string");return D2(t)=="symbol"?t:t+""}function A6t(e,t){if(D2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(D2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ao=32,Loe=function(e){function t(){return _6t(this,t),E6t(this,t,arguments)}return T6t(t,e),j6t(t,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,s=ao/2,o=ao/6,l=ao/3,c=n.inactive?a:n.color;if(n.type==="plainline")return ce.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:s,x2:ao,y2:s,className:"recharts-legend-icon"});if(n.type==="line")return ce.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(s,"h").concat(l,` 8116 A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(s,` 8117 H`).concat(ao,"M").concat(2*l,",").concat(s,` 8118 A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(s),className:"recharts-legend-icon"});if(n.type==="rect")return ce.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(ao/8,"h").concat(ao,"v").concat(ao*3/4,"h").concat(-ao,"z"),className:"recharts-legend-icon"});if(ce.isValidElement(n.legendIcon)){var u=k6t({},n);return delete u.legendIcon,ce.cloneElement(n.legendIcon,u)}return ce.createElement(Poe,{fill:c,cx:s,cy:s,size:ao,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,s=a.payload,o=a.iconSize,l=a.layout,c=a.formatter,u=a.inactiveColor,d={x:0,y:0,width:ao,height:ao}
8118,h={display:l==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(p,y){var m=p.formatter||c,v=Mr(zk(zk({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=fr(p.value)?null:p.value;yu(!fr(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=p.inactive?u:p.color;return ce.createElement("li",xre({className:v,style:h,key:"legend-item-".concat(y)},zH(n.props,p,y)),ce.createElement(ure,{width:o,height:o,viewBox:d,style:f},n.renderIcon(p)),ce.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},m?m(g,p,y):g))})}},{key:"render",value:function(){var n=this.props,a=n.payload,s=n.layout,o=n.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:s==="horizontal"?o:"left"};return ce.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(k.PureComponent);zk(Loe,"displayName","Legend");zk(Loe,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var M6t=PG;function I6t(){this.__data__=new M6t,this.size=0}var P6t=I6t;function L6t(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var O6t=L6t;function R6t(e){return this.__data__.get(e)}var D6t=R6t;function F6t(e){return this.__data__.has(e)}var $6t=F6t,B6t=PG,z6t=woe,U6t=koe,q6t=200;function H6t(e,t){var r=this.__data__;if(r instanceof B6t){var n=r.__data__;if(!z6t||n.length<q6t-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new U6t(n)}return r.set(e,t),this.size=r.size,this}var V6t=H6t,W6t=PG,G6t=P6t,K6t=O6t,Y6t=D6t,X6t=$6t,Z6t=V6t;function qv(e){var t=this.__data__=new W6t(e);this.size=t.size}qv.prototype.clear=G6t;qv.prototype.delete=K6t;qv.prototype.get=Y6t;qv.prototype.has=X6t;qv.prototype.set=Z6t;var kAe=qv,Q6t="__lodash_hash_undefined__";function J6t(e){return this.__data__.set(e,Q6t),this}var eEt=J6t;function tEt(e){return this.__data__.has(e)}var rEt=tEt,nEt=koe,aEt=eEt,iEt=rEt;function KH(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nEt;++t<r;)this.add(e[t])}KH.prototype.add=KH.prototype.push=aEt;KH.prototype.has=iEt;var _Ae=KH;function sEt(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var SAe=sEt;function oEt(e,t){return e.has(t)}var jAe=oEt,lEt=_Ae,cEt=SAe,uEt=jAe,dEt=1,hEt=2;function fEt(e,t,r,n,a,s){var o=r&dEt,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=r&hEt?new lEt:void 0;for(s.set(e,t),s.set(t,e);++h<l;){var y=e[h],m=t[h];if(n)var v=o?n(m,y,h,t,e,s):n(y,m,h,e,t,s);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!cEt(t,function(g,b){if(!uEt(p,b)&&(y===g||a(y,g,r,n,s)))return p.push(b)})){f=!1;break}}else if(!(y===m||a(y,m,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}var EAe=fEt,pEt=Ec,mEt=pEt.Uint8Array,gEt=mEt;function yEt(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var vEt=yEt;function xEt(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ooe=xEt,pge=y4,mge=gEt,bEt=boe,wEt=EAe,kEt=vEt,_Et=Ooe,SEt=1,jEt=2,EEt="[object Boolean]",CEt="[object Date]",NEt="[object Error]",TEt="[object Map]",AEt="[object Number]",MEt="[object RegExp]",IEt="[object Set]",PEt="[object String]",LEt="[object Symbol]",OEt="[object ArrayBuffer]",REt="[object DataView]",gge=pge?pge.prototype:void 0,kQ=gge?gge.valueOf:void 0;function DEt(e,t,r,n,a,s,o){switch(r){case REt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case OEt:return!(e.byteLength!=t.byteLength||!s(new mge(e),new mge(t)));case EEt:case CEt:case AEt:return bEt(+e,+t);case NEt:return e.name==t.name&&e.message==t.message;case MEt:case PEt:return e==t+"";case TEt:var l=kEt;case IEt:var c=n&SEt;if(l||(l=_Et),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=jEt,o.set(e,t);var d=wEt(l(e),l(t),n,a,s,o);return o.delete(e),d;case LEt:if(kQ)return kQ.call(e)==kQ.call(t)}return!1}var FEt=DEt;function $Et(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var CAe=$Et,BEt=CAe,zEt=Ts;function UEt(e,t,r){var n=t(e);return zEt(e)?n:BEt(n,r(e))}var qEt=UEt;function HEt(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[a++]=o)}return s}var VEt=HEt;function WEt(){return[]}var GEt=WEt,KEt=VEt,YEt=GEt,XEt=Object.prototype,ZEt=XEt.propertyIsEnumerable,yge=Object.getOwnPropertySymbols,QEt=yge?function(e){return e==null?[]:(e=Object(e),KEt(yge(e),function(t){return ZEt.call(e,t)}))}:YEt,JEt=QEt;function eCt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var tCt=eCt,rCt=zu,nCt=Uu,aCt="[object Arguments]";function iCt(e){return nCt(e)&&rCt(e)==aCt}var sCt=iCt,vge=sCt,oCt=Uu,NAe=Object.prototype,lCt=NAe.hasOwnProperty,cCt=NAe.propertyIsEnumerable,uCt=vge(function(){return arguments}())?vge:function(e){return oCt(e)&&lCt.call(e,"callee")&&!cCt.call(e,"callee")},Roe=uCt,YH={exports:{}};function dCt(){return!1}var hCt=dCt;YH.exports;(function(e,t){var r=Ec,n=hCt,a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===a,l=o?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||n;e.exports=u}
vendor: 4,665 bytes, line 8118
8118)(YH,YH.exports);var TAe=YH.exports,fCt=9007199254740991,pCt=/^(?:0|[1-9]\d*)$/;function mCt(e,t){var r=typeof e;return t=t??fCt,!!t&&(r=="number"||r!="symbol"&&pCt.test(e))&&e>-1&&e%1==0&&e<t}var Doe=mCt,gCt=9007199254740991;function yCt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gCt}var Foe=yCt,vCt=zu,xCt=Foe,bCt=Uu,wCt="[object Arguments]",kCt="[object Array]",_Ct="[object Boolean]",SCt="[object Date]",jCt="[object Error]",ECt="[object Function]",CCt="[object Map]",NCt="[object Number]",TCt="[object Object]",ACt="[object RegExp]",MCt="[object Set]",ICt="[object String]",PCt="[object WeakMap]",LCt="[object ArrayBuffer]",OCt="[object DataView]",RCt="[object Float32Array]",DCt="[object Float64Array]",FCt="[object Int8Array]",$Ct="[object Int16Array]",BCt="[object Int32Array]",zCt="[object Uint8Array]",UCt="[object Uint8ClampedArray]",qCt="[object Uint16Array]",HCt="[object Uint32Array]",yn={};yn[RCt]=yn[DCt]=yn[FCt]=yn[$Ct]=yn[BCt]=yn[zCt]=yn[UCt]=yn[qCt]=yn[HCt]=!0;yn[wCt]=yn[kCt]=yn[LCt]=yn[_Ct]=yn[OCt]=yn[SCt]=yn[jCt]=yn[ECt]=yn[CCt]=yn[NCt]=yn[TCt]=yn[ACt]=yn[MCt]=yn[ICt]=yn[PCt]=!1;function VCt(e){return bCt(e)&&xCt(e.length)&&!!yn[vCt(e)]}var WCt=VCt;function GCt(e){return function(t){return e(t)}}var AAe=GCt,XH={exports:{}};XH.exports;(function(e,t){var r=FTe,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===n,o=s&&r.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(XH,XH.exports);var KCt=XH.exports,YCt=WCt,XCt=AAe,xge=KCt,bge=xge&&xge.isTypedArray,ZCt=bge?XCt(bge):YCt,MAe=ZCt,QCt=tCt,JCt=Roe,eNt=Ts,tNt=TAe,rNt=Doe,nNt=MAe,aNt=Object.prototype,iNt=aNt.hasOwnProperty;function sNt(e,t){var r=eNt(e),n=!r&&JCt(e),a=!r&&!n&&tNt(e),s=!r&&!n&&!a&&nNt(e),o=r||n||a||s,l=o?QCt(e.length,String):[],c=l.length;for(var u in e)(t||iNt.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||rNt(u,c)))&&l.push(u);return l}var oNt=sNt,lNt=Object.prototype;function cNt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lNt;return e===r}var uNt=cNt;function dNt(e,t){return function(r){return e(t(r))}}var IAe=dNt,hNt=IAe,fNt=hNt(Object.keys,Object),pNt=fNt,mNt=uNt,gNt=pNt,yNt=Object.prototype,vNt=yNt.hasOwnProperty;function xNt(e){if(!mNt(e))return gNt(e);var t=[];for(var r in Object(e))vNt.call(e,r)&&r!="constructor"&&t.push(r);return t}var bNt=xNt,wNt=xoe,kNt=Foe;function _Nt(e){return e!=null&&kNt(e.length)&&!wNt(e)}var x4=_Nt,SNt=oNt,jNt=bNt,ENt=x4;function CNt(e){return ENt(e)?SNt(e):jNt(e)}var ZG=CNt,NNt=qEt,TNt=JEt,ANt=ZG;function MNt(e){return NNt(e,ANt,TNt)}var INt=MNt,wge=INt,PNt=1,LNt=Object.prototype,ONt=LNt.hasOwnProperty;function RNt(e,t,r,n,a,s){var o=r&PNt,l=wge(e),c=l.length,u=wge(t),d=u.length;if(c!=d&&!o)return!1;for(var h=c;h--;){var f=l[h];if(!(o?f in t:ONt.call(t,f)))return!1}var p=s.get(e),y=s.get(t);if(p&&y)return p==t&&y==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=o;++h<c;){f=l[h];var g=e[f],b=t[f];if(n)var x=o?n(b,g,f,t,e,s):n(g,b,f,e,t,s);if(!(x===void 0?g===b||a(g,b,r,n,s):x)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof w=="function"&&w instanceof w)&&(m=!1)}return s.delete(e),s.delete(t),m}var DNt=RNt,FNt=eg,$Nt=Ec,BNt=FNt($Nt,"DataView"),zNt=BNt,UNt=eg,qNt=Ec,HNt=UNt(qNt,"Promise"),VNt=HNt,WNt=eg,GNt=Ec,KNt=WNt(GNt,"Set"),PAe=KNt,YNt=eg,XNt=Ec,ZNt=YNt(XNt,"WeakMap"),QNt=ZNt,wre=zNt,kre=woe,_re=VNt,Sre=PAe,jre=QNt,LAe=zu,Hv=BTe,kge="[object Map]",JNt="[object Object]",_ge="[object Promise]",Sge="[object Set]",jge="[object WeakMap]",Ege="[object DataView]",e8t=Hv(wre),t8t=Hv(kre),r8t=Hv(_re),n8t=Hv(Sre),a8t=Hv(jre),S1=LAe;(wre&&S1(new wre(new ArrayBuffer(1)))!=Ege||kre&&S1(new kre)!=kge||_re&&S1(_re.resolve())!=_ge||Sre&&S1(new Sre)!=Sge||jre&&S1(new jre)!=jge)&&(S1=function(e){var t=LAe(e),r=t==JNt?e.constructor:void 0,n=r?Hv(r):"";if(n)switch(n){case e8t:return Ege;case t8t:return kge;case r8t:return _ge;case n8t:return Sge;case a8t:return jge}return t});var i8t=S1,_Q=kAe,s8t=EAe,o8t=FEt,l8t=DNt,Cge=i8t,Nge=Ts,Tge=TAe,c8t=MAe,u8t=1,Age="[object Arguments]",Mge="[object Array]",nS="[object Object]",d8t=Object.prototype,Ige=d8t.hasOwnProperty;function h8t(e,t,r,n,a,s){var o=Nge(e),l=Nge(t),c=o?Mge:Cge(e),u=l?Mge:Cge(t);c=c==Age?nS:c,u=u==Age?nS:u;var d=c==nS,h=u==nS,f=c==u;if(f&&Tge(e)){if(!Tge(t))return!1;o=!0,d=!1}if(f&&!d)return s||(s=new _Q),o||c8t(e)?s8t(e,t,r,n,a,s):o8t(e,t,c,r,n,a,s);if(!(r&u8t)){var p=d&&Ige.call(e,"__wrapped__"),y=h&&Ige.call(t,"__wrapped__");
vendor: 4,150 bytes, line 8118
8118if(p||y){var m=p?e.value():e,v=y?t.value():t;return s||(s=new _Q),a(m,v,r,n,s)}}return f?(s||(s=new _Q),l8t(e,t,r,n,a,s)):!1}var f8t=h8t,p8t=f8t,Pge=Uu;function OAe(e,t,r,n,a){return e===t?!0:e==null||t==null||!Pge(e)&&!Pge(t)?e!==e&&t!==t:p8t(e,t,r,n,OAe,a)}var $oe=OAe,m8t=kAe,g8t=$oe,y8t=1,v8t=2;function x8t(e,t,r,n){var a=r.length,s=a,o=!n;if(e==null)return!s;for(e=Object(e);a--;){var l=r[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){l=r[a];var c=l[0],u=e[c],d=l[1];if(o&&l[2]){if(u===void 0&&!(c in e))return!1}else{var h=new m8t;if(n)var f=n(u,d,c,e,t,h);if(!(f===void 0?g8t(d,u,y8t|v8t,n,h):f))return!1}}return!0}var b8t=x8t,w8t=Ch;function k8t(e){return e===e&&!w8t(e)}var RAe=k8t,_8t=RAe,S8t=ZG;function j8t(e){for(var t=S8t(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,_8t(a)]}return t}var E8t=j8t;function C8t(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var DAe=C8t,N8t=b8t,T8t=E8t,A8t=DAe;function M8t(e){var t=T8t(e);return t.length==1&&t[0][2]?A8t(t[0][0],t[0][1]):function(r){return r===e||N8t(r,e,t)}}var I8t=M8t;function P8t(e,t){return e!=null&&t in Object(e)}var L8t=P8t,O8t=VTe,R8t=Roe,D8t=Ts,F8t=Doe,$8t=Foe,B8t=OG;function z8t(e,t,r){t=O8t(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var o=B8t(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&$8t(a)&&F8t(o,a)&&(D8t(e)||R8t(e)))}var U8t=z8t,q8t=L8t,H8t=U8t;function V8t(e,t){return e!=null&&H8t(e,t,q8t)}var W8t=V8t,G8t=$oe,K8t=WTe,Y8t=W8t,X8t=voe,Z8t=RAe,Q8t=DAe,J8t=OG,eTt=1,tTt=2;function rTt(e,t){return X8t(e)&&Z8t(t)?Q8t(J8t(e),t):function(r){var n=K8t(r,e);return n===void 0&&n===t?Y8t(r,e):G8t(t,n,eTt|tTt)}}var nTt=rTt;function aTt(e){return e}var Vv=aTt;function iTt(e){return function(t){return t==null?void 0:t[e]}}var sTt=iTt,oTt=joe;function lTt(e){return function(t){return oTt(t,e)}}var cTt=lTt,uTt=sTt,dTt=cTt,hTt=voe,fTt=OG;function pTt(e){return hTt(e)?uTt(fTt(e)):dTt(e)}var mTt=pTt,gTt=I8t,yTt=nTt,vTt=Vv,xTt=Ts,bTt=mTt;function wTt(e){return typeof e=="function"?e:e==null?vTt:typeof e=="object"?xTt(e)?yTt(e[0],e[1]):gTt(e):bTt(e)}var Nh=wTt;function kTt(e,t,r,n){for(var a=e.length,s=r+(n?1:-1);n?s--:++s<a;)if(t(e[s],s,e))return s;return-1}var FAe=kTt;function _Tt(e){return e!==e}var STt=_Tt;function jTt(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var ETt=jTt,CTt=FAe,NTt=STt,TTt=ETt;function ATt(e,t,r){return t===t?TTt(e,t,r):CTt(e,NTt,r)}var MTt=ATt,ITt=MTt;function PTt(e,t){var r=e==null?0:e.length;return!!r&&ITt(e,t,0)>-1}var LTt=PTt;function OTt(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}var RTt=OTt;function DTt(){}var FTt=DTt,SQ=PAe,$Tt=FTt,BTt=Ooe,zTt=1/0,UTt=SQ&&1/BTt(new SQ([,-0]))[1]==zTt?function(e){return new SQ(e)}:$Tt,qTt=UTt,HTt=_Ae,VTt=LTt,WTt=RTt,GTt=jAe,KTt=qTt,YTt=Ooe,XTt=200;function ZTt(e,t,r){var n=-1,a=VTt,s=e.length,o=!0,l=[],c=l;if(r)o=!1,a=WTt;else if(s>=XTt){var u=t?null:KTt(e);if(u)return YTt(u);o=!1,a=GTt,c=new HTt}else c=t?[]:l;e:for(;++n<s;){var d=e[n],h=t?t(d):d;if(d=r||d!==0?d:0,o&&h===h){for(var f=c.length;f--;)if(c[f]===h)continue e;t&&c.push(h),l.push(d)}else a(c,h,r)||(c!==l&&c.push(h),l.push(d))}return l}var QTt=ZTt,JTt=Nh,eAt=QTt;function tAt(e,t){return e&&e.length?eAt(e,JTt(t)):[]}var rAt=tAt;const Lge=jr(rAt);function $Ae(e,t,r){return t===!0?Lge(e,r):fr(t)?Lge(e,t):e}function F2(e){"@babel/helpers - typeof";return F2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F2(e)}var nAt=["ref"];function Oge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Bc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oge(Object(r),!0).forEach(function(n){QG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oge(Object(r)).forEac
8118h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zAe(n.key),n)}}function iAt(e,t,r){return t&&Rge(e.prototype,t),r&&Rge(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sAt(e,t,r){return t=ZH(t),oAt(e,BAe()?Reflect.construct(t,r||[],ZH(e).constructor):t.apply(e,r))}function oAt(e,t){if(t&&(F2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lAt(e)}function lAt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BAe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BAe=function(){return!!e})()}
vendor: 4,885 bytes, line 8118
8118function ZH(e){return ZH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ZH(e)}function cAt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ere(e,t)}function Ere(e,t){return Ere=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ere(e,t)}function QG(e,t,r){return t=zAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zAe(e){var t=uAt(e,"string");return F2(t)=="symbol"?t:t+""}function uAt(e,t){if(F2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(F2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dAt(e,t){if(e==null)return{};var r=hAt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hAt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fAt(e){return e.value}function pAt(e,t){if(ce.isValidElement(e))return ce.cloneElement(e,t);if(typeof e=="function")return ce.createElement(e,t);t.ref;var r=dAt(t,nAt);return ce.createElement(Loe,r)}var Dge=1,Hy=function(e){function t(){var r;aAt(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=sAt(this,t,[].concat(a)),QG(r,"lastBoundingBox",{width:-1,height:-1}),r}return cAt(t,e),iAt(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>Dge||Math.abs(a.height-this.lastBoundingBox.height)>Dge)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Bc({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,s=a.layout,o=a.align,l=a.verticalAlign,c=a.margin,u=a.chartWidth,d=a.chartHeight,h,f;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&s==="vertical"){var p=this.getBBoxSnapshot();h={left:((u||0)-p.width)/2}}else h=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var y=this.getBBoxSnapshot();f={top:((d||0)-y.height)/2}}else f=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Bc(Bc({},h),f)}},{key:"render",value:function(){var n=this,a=this.props,s=a.content,o=a.width,l=a.height,c=a.wrapperStyle,u=a.payloadUniqBy,d=a.payload,h=Bc(Bc({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return ce.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(p){n.wrapperNode=p}},pAt(s,Bc(Bc({},this.props),{},{payload:$Ae(d,u,fAt)})))}}],[{key:"getWithHeight",value:function(n,a){var s=Bc(Bc({},this.defaultProps),n.props),o=s.layout;return o==="vertical"&&ot(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||a}:null}}])}(k.PureComponent);QG(Hy,"displayName","Legend");QG(Hy,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Fge=y4,mAt=Roe,gAt=Ts,$ge=Fge?Fge.isConcatSpreadable:void 0;function yAt(e){return gAt(e)||mAt(e)||!!($ge&&e&&e[$ge])}var vAt=yAt,xAt=CAe,bAt=vAt;function UAe(e,t,r,n,a){var s=-1,o=e.length;for(r||(r=bAt),a||(a=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?UAe(l,t-1,r,n,a):xAt(a,l):n||(a[a.length]=l)}return a}var qAe=UAe;function wAt(e){return function(t,r,n){for(var a=-1,s=Object(t),o=n(t),l=o.length;l--;){var c=o[e?l:++a];if(r(s[c],c,s)===!1)break}return t}}var kAt=wAt,_At=kAt,SAt=_At(),jAt=SAt,EAt=jAt,CAt=ZG;function NAt(e,t){return e&&EAt(e,t,CAt)}var HAe=NAt,TAt=x4;function AAt(e,t){return function(r,n){if(r==null)return r;if(!TAt(r))return e(r,n);for(var a=r.length,s=t?a:-1,o=Object(r);(t?s--:++s<a)&&n(o[s],s,o)!==!1;);return r}}
8118var MAt=AAt,IAt=HAe,PAt=MAt,LAt=PAt(IAt),Boe=LAt,OAt=Boe,RAt=x4;function DAt(e,t){var r=-1,n=RAt(e)?Array(e.length):[];return OAt(e,function(a,s,o){n[++r]=t(a,s,o)}),n}var VAe=DAt;function FAt(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var $At=FAt,Bge=Fv;function BAt(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,s=Bge(e),o=t!==void 0,l=t===null,c=t===t,u=Bge(t);if(!l&&!u&&!s&&e>t||s&&o&&c&&!l&&!u||n&&o&&c||!r&&c||!a)return 1;if(!n&&!s&&!u&&e<t||u&&r&&a&&!n&&!s||l&&r&&a||!o&&a||!c)return-1}return 0}var zAt=BAt,UAt=zAt;function qAt(e,t,r){for(var n=-1,a=e.criteria,s=t.criteria,o=a.length,l=r.length;++n<o;){var c=UAt(a[n],s[n]);if(c){if(n>=l)return c;var u=r[n];return c*(u=="desc"?-1:1)}}return e.index-t.index}var HAt=qAt,jQ=Soe,VAt=joe,WAt=Nh,GAt=VAe,KAt=$At,YAt=AAe,XAt=HAt,ZAt=Vv,QAt=Ts;function JAt(e,t,r){t.length?t=jQ(t,function(s){return QAt(s)?function(o){return VAt(o,s.length===1?s[0]:s)}:s}):t=[ZAt];var n=-1;t=jQ(t,YAt(WAt));var a=GAt(e,function(s,o,l){var c=jQ(t,function(u){return u(s)});return{criteria:c,index:++n,value:s}});return KAt(a,function(s,o){return XAt(s,o,r)})}var eMt=JAt;function tMt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var rMt=tMt,nMt=rMt,zge=Math.max;function aMt(e,t,r){return t=zge(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,s=zge(n.length-t,0),o=Array(s);++a<s;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),nMt(e,this,l)}}var iMt=aMt;function sMt(e){return function(){return e}}var oMt=sMt,lMt=eg,cMt=function(){try{var e=lMt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),WAe=cMt,uMt=oMt,Uge=WAe,dMt=Vv,hMt=Uge?function(e,t){return Uge(e,"toString",{configurable:!0,enumerable:!1,value:uMt(t),writable:!0})}:dMt,fMt=hMt,pMt=800,mMt=16,gMt=Date.now;function yMt(e){var t=0,r=0;return function(){var n=gMt(),a=mMt-(n-r);if(r=n,a>0){if(++t>=pMt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var vMt=yMt,xMt=fMt,bMt=vMt,wMt=bMt(xMt),kMt=wMt,_Mt=Vv,SMt=iMt,jMt=kMt;function EMt(e,t){return jMt(SMt(e,t,_Mt),e+"")}var CMt=EMt,NMt=boe,TMt=x4,AMt=Doe,MMt=Ch;function IMt(e,t,r){if(!MMt(r))return!1;var n=typeof t;return(n=="number"?TMt(r)&&AMt(t,r.length):n=="string"&&t in r)?NMt(r[t],e):!1}var JG=IMt,PMt=qAe,LMt=eMt,OMt=CMt,qge=JG,RMt=OMt(function(e,t){if(e==null)return[];var r=t.length;return r>1&&qge(e,t[0],t[1])?t=[]:r>2&&qge(t[0],t[1],t[2])&&(t=[t[0]]),LMt(e,PMt(t,1),[])}),DMt=RMt;const zoe=jr(DMt);function Uk(e){"@babel/helpers - typeof";return Uk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uk(e)}function Cre(){return Cre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cre.apply(this,arguments)}function FMt(e,t){return UMt(e)||zMt(e,t)||BMt(e,t)||$Mt()}function $Mt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8119In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BMt(e,t){if(e){if(typeof e=="string")return Hge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hge(e,t)}}function Hge(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zMt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function UMt(e){if(Array.isArray(e))return e}function Vge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function EQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 30,105 bytes, lines 8119-8126
8119t%2?Vge(Object(r),!0).forEach(function(n){qMt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vge(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qMt(e,t,r){return t=HMt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HMt(e){var t=VMt(e,"string");return Uk(t)=="symbol"?t:t+""}function VMt(e,t){if(Uk(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Uk(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WMt(e){return Array.isArray(e)&&Ra(e[0])&&Ra(e[1])?e.join(" ~ "):e}var GMt=function(t){var r=t.separator,n=r===void 0?" : ":r,a=t.contentStyle,s=a===void 0?{}:a,o=t.itemStyle,l=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,d=t.payload,h=t.formatter,f=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,v=t.labelFormatter,g=t.accessibilityLayer,b=g===void 0?!1:g,x=function(){if(d&&d.length){var T={padding:0,margin:0},F=(f?zoe(d,f):d).map(function(M,z){if(M.type==="none")return null;var Y=EQ({display:"block",paddingTop:4,paddingBottom:4,color:M.color||"#000"},l),W=M.formatter||h||WMt,ee=M.value,Z=M.name,V=ee,ne=Z;if(W&&V!=null&&ne!=null){var P=W(ee,Z,M,z,d);if(Array.isArray(P)){var R=FMt(P,2);V=R[0],ne=R[1]}else V=P}return ce.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(z),style:Y},Ra(ne)?ce.createElement("span",{className:"recharts-tooltip-item-name"},ne):null,Ra(ne)?ce.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,ce.createElement("span",{className:"recharts-tooltip-item-value"},V),ce.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return ce.createElement("ul",{className:"recharts-tooltip-item-list",style:T},F)}return null},_=EQ({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),w=EQ({margin:0},u),j=!Rr(m),E=j?m:"",C=Mr("recharts-default-tooltip",p),N=Mr("recharts-tooltip-label",y);j&&v&&d!==void 0&&d!==null&&(E=v(m,d));var A=b?{role:"status","aria-live":"assertive"}:{};return ce.createElement("div",Cre({className:C,style:_},A),ce.createElement("p",{className:N,style:w},ce.isValidElement(E)?E:"".concat(E)),x())};function qk(e){"@babel/helpers - typeof";return qk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qk(e)}function aS(e,t,r){return t=KMt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KMt(e){var t=YMt(e,"string");return qk(t)=="symbol"?t:t+""}function YMt(e,t){if(qk(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qk(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jx="recharts-tooltip-wrapper",XMt={visibility:"hidden"};function ZMt(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Mr(Jx,aS(aS(aS(aS({},"".concat(Jx,"-right"),ot(r)&&t&&ot(t.x)&&r>=t.x),"".concat(Jx,"-left"),ot(r)&&t&&ot(t.x)&&r<t.x),"".concat(Jx,"-bottom"),ot(n)&&t&&ot(t.y)&&n>=t.y),"".concat(Jx,"-top"),ot(n)&&t&&ot(t.y)&&n<t.y))}function Wge(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,s=e.position,o=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(s&&ot(s[n]))return s[n];var d=r[n]-l-a,h=r[n]+a;if(t[n])return o[n]?d:h;if(o[n]){var f=d,p=c[n];return f<p?Math.max(h,c[n]):Math.max(d,c[n])}var y=h+l,m=c[n]+u;return y>m?Math.max(d,c[n]):Math.max(h,c[n])}function QMt(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function JMt(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,s=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,u,d,h;return o.height>0&&o.width>0&&r?(d=Wge({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:s,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),h=Wge({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:s,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=QMt({translateX:d,translateY:h,useTranslate3d:l})):u=XMt,{cssProperties:u,cssClasses:ZMt({translateX:d,translateY:h,coordinate:r})}}function $2(e){"@babel/helpers - typeof";return $2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$2(e)}function Gge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Kge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gge(Object(r),!0).forEach(function(n){Tre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gge(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eIt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tIt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KAe(n.key),n)}}function rIt(e,t,r){return t&&tIt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nIt(e,t,r){return t=QH(t),aIt(e,GAe()?Reflect.construct(t,r||[],QH(e).constructor):t.apply(e,r))}function aIt(e,t){if(t&&($2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iIt(e)}function iIt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GAe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GAe=function(){return!!e})()}function QH(e){return QH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},QH(e)}function sIt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nre(e,t)}function Nre(e,t){return Nre=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Nre(e,t)}function Tre(e,t,r){return t=KAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KAe(e){var t=oIt(e,"string");return $2(t)=="symbol"?t:t+""}function oIt(e,t){if($2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yge=1,lIt=function(e){function t(){var r;eIt(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=nIt(this,t,[].concat(a)),Tre(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Tre(r,"handleKeyDown",function(o){if(o.key==="Escape"){var l,c,u,d;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(u=(d=r.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),r}return sIt(t,e),rIt(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Yge||Math.abs(n.height-this.state.lastBoundingBox.height)>Yge)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,s=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.children,d=a.coordinate,h=a.hasPayload,f=a.isAnimationActive,p=a.offset,y=a.position,m=a.reverseDirection,v=a.useTranslate3d,g=a.viewBox,b=a.wrapperStyle,x=JMt({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:g}),_=x.cssClasses,w=x.cssProperties,j=Kge(Kge({transition:f&&s?"transform ".concat(l,"ms ").concat(c):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&h?"visible":"hidden",position:"absolute",top:0,left:0},b);return ce.createElement("div",{tabIndex:-1,className:_,style:j,ref:function(C){n.wrapperNode=C}},u)}}])}(k.PureComponent),cIt=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},th={isSsr:cIt(),get:function(t){return th[t]},set:function(t,r){if(typeof t=="string")th[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){th[a]=t[a]})}}};function B2(e){"@babel/helpers - typeof";return B2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B2(e)}function Xge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xge(Object(r),!0).forEach(function(n){Uoe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xge(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uIt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dIt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XAe(n.key),n)}}function hIt(e,t,r){return t&&dIt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fIt(e,t,r){return t=JH(t),pIt(e,YAe()?Reflect.construct(t,r||[],JH(e).constructor):t.apply(e,r))}function pIt(e,t){if(t&&(B2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mIt(e)}function mIt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YAe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YAe=function(){return!!e})()}function JH(e){return JH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},JH(e)}function gIt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Are(e,t)}function Are(e,t){return Are=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Are(e,t)}function Uoe(e,t,r){return t=XAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XAe(e){var t=yIt(e,"string");return B2(t)=="symbol"?t:t+""}function yIt(e,t){if(B2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(B2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vIt(e){return e.dataKey}function xIt(e,t){return ce.isValidElement(e)?ce.cloneElement(e,t):typeof e=="function"?ce.createElement(e,t):ce.createElement(GMt,t)}var Ul=function(e){function t(){return uIt(this,t),fIt(this,t,arguments)}return gIt(t,e),hIt(t,[{key:"render",value:function(){var n=this,a=this.props,s=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.content,d=a.coordinate,h=a.filterNull,f=a.isAnimationActive,p=a.offset,y=a.payload,m=a.payloadUniqBy,v=a.position,g=a.reverseDirection,b=a.useTranslate3d,x=a.viewBox,_=a.wrapperStyle,w=y??[];h&&w.length&&(w=$Ae(y.filter(function(E){return E.value!=null&&(E.hide!==!0||n.props.includeHidden)}),m,vIt));var j=w.length>0;return ce.createElement(lIt,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:f,active:s,coordinate:d,hasPayload:j,offset:p,position:v,reverseDirection:g,useTranslate3d:b,viewBox:x,wrapperStyle:_},xIt(u,Zge(Zge({},this.props),{},{payload:w})))}}])}(k.PureComponent);Uoe(Ul,"displayName","Tooltip");Uoe(Ul,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!th.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var bIt=Ec,wIt=function(){return bIt.Date.now()},kIt=wIt,_It=/\s/;function SIt(e){for(var t=e.length;t--&&_It.test(e.charAt(t)););return t}var jIt=SIt,EIt=jIt,CIt=/^\s+/;function NIt(e){return e&&e.slice(0,EIt(e)+1).replace(CIt,"")}var TIt=NIt,AIt=TIt,Qge=Ch,MIt=Fv,Jge=NaN,IIt=/^[-+]0x[0-9a-f]+$/i,PIt=/^0b[01]+$/i,LIt=/^0o[0-7]+$/i,OIt=parseInt;function RIt(e){if(typeof e=="number")return e;if(MIt(e))return Jge;if(Qge(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qge(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=AIt(e);var r=PIt.test(e);return r||LIt.test(e)?OIt(e.slice(2),r?2:8):IIt.test(e)?Jge:+e}var ZAe=RIt,DIt=Ch,CQ=kIt,eye=ZAe,FIt="Expected a function",$It=Math.max,BIt=Math.min;function zIt(e,t,r){var n,a,s,o,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(FIt);t=eye(t)||0,DIt(r)&&(d=!!r.leading,h="maxWait"in r,s=h?$It(eye(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(j){var E=n,C=a;return n=a=void 0,u=j,o=e.apply(C,E),o}function y(j){return u=j,l=setTimeout(g,t),d?p(j):o}function m(j){var E=j-c,C=j-u,N=t-E;return h?BIt(N,s-C):N}function v(j){var E=j-c,C=j-u;return c===void 0||E>=t||E<0||h&&C>=s}function g(){var j=CQ();if(v(j))return b(j);l=setTimeout(g,m(j))}function b(j){return l=void 0,f&&n?p(j):(n=a=void 0,o)}function x(){l!==void 0&&clearTimeout(l),u=0,n=c=a=l=void 0}function _(){return l===void 0?o:b(CQ())}function w(){var j=CQ(),E=v(j);if(n=arguments,a=this,c=j,E){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(g,t),p(c)}return l===void 0&&(l=setTimeout(g,t)),o}return w.cancel=x,w.flush=_,w}var UIt=zIt,qIt=UIt,HIt=Ch,VIt="Expected a function";function WIt(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(VIt);return HIt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),qIt(e,t,{leading:n,maxWait:t,trailing:a})}var GIt=WIt;const QAe=jr(GIt);function Hk(e){"@babel/helpers - typeof";return Hk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hk(e)}function tye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function iS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tye(Object(r),!0).forEach(function(n){KIt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tye(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KIt(e,t,r){return t=YIt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YIt(e){var t=XIt(e,"string");return Hk(t)=="symbol"?t:t+""}function XIt(e,t){if(Hk(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hk(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZIt(e,t){return tPt(e)||ePt(e,t)||JIt(e,t)||QIt()}function QIt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8120In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JIt(e,t){if(e){if(typeof e=="string")return rye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rye(e,t)}}function rye(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ePt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function tPt(e){if(Array.isArray(e))return e}var rPt=k.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,a=n===void 0?{width:-1,height:-1}:n,s=e.width,o=s===void 0?"100%":s,l=e.height,c=l===void 0?"100%":l,u=e.minWidth,d=u===void 0?0:u,h=e.minHeight,f=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,v=e.id,g=e.className,b=e.onResize,x=e.style,_=x===void 0?{}:x,w=k.useRef(null),j=k.useRef();j.current=b,k.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var E=k.useState({containerWidth:a.width,containerHeight:a.height}),C=ZIt(E,2),N=C[0],A=C[1],$=k.useCallback(function(F,M){A(function(z){var Y=Math.round(F),W=Math.round(M);return z.containerWidth===Y&&z.containerHeight===W?z:{containerWidth:Y,containerHeight:W}})},[]);k.useEffect(function(){var F=function(Z){var V,ne=Z[0].contentRect,P=ne.width,R=ne.height;$(P,R),(V=j.current)===null||V===void 0||V.call(j,P,R)};m>0&&(F=QAe(F,m,{trailing:!0,leading:!1}));var M=new ResizeObserver(F),z=w.current.getBoundingClientRect(),Y=z.width,W=z.height;return $(Y,W),M.observe(w.current),function(){M.disconnect()}},[$,m]);var T=k.useMemo(function(){var F=N.containerWidth,M=N.containerHeight;if(F<0||M<0)return null;yu($1(o)||$1(c),`The width(%s) and height(%s) are both fixed numbers, 8121 maybe you don't need to use a ResponsiveContainer.`,o,c),yu(!r||r>0,"The aspect(%s) must be greater than zero.",r);var z=$1(o)?F:o,Y=$1(c)?M:c;r&&r>0&&(z?Y=z/r:Y&&(z=Y*r),f&&Y>f&&(Y=f)),yu(z>0||Y>0,`The width(%s) and height(%s) of chart should be greater than 0, 8122 please check the style of container, or the props width(%s) and height(%s), 8123 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 8124 height and width.`,z,Y,o,c,d,h,r);var W=!Array.isArray(p)&&gu(p.type).endsWith("Chart");return ce.Children.map(p,function(ee){return ce.isValidElement(ee)?k.cloneElement(ee,iS({width:z,height:Y},W?{style:iS({height:"100%",width:"100%",maxHeight:Y,maxWidth:z},ee.props.style)}:{})):ee})},[r,p,c,f,h,d,N,o]);return ce.createElement("div",{id:v?"".concat(v):void 0,className:Mr("recharts-responsive-container",g),style:iS(iS({},_),{},{width:o,height:c,minWidth:d,minHeight:h,maxHeight:f}),ref:w},T)}),qoe=function(t){return null};qoe.displayName="Cell";function Vk(e){"@babel/helpers - typeof";return Vk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vk(e)}function nye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mre(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nye(Object(r),!0).forEach(function(n){nPt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nye(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nPt(e,t,r){return t=aPt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aPt(e){var t=iPt(e,"string");return Vk(t)=="symbol"?t:t+""}function iPt(e,t){if(Vk(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vk(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ig={widthCache:{},cacheCount:0},sPt=2e3,oPt={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},aye="recharts_measurement_span";function lPt(e){var t=Mre({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var qw=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||th.isSsr)return{width:0,height:0};var n=lPt(r),a=JSON.stringify({text:t,copyStyle:n});if(Ig.widthCache[a])return Ig.widthCache[a];try{var s=document.getElementById(aye);s||(s=document.createElement("span"),s.setAttribute("id",aye),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var o=Mre(Mre({},oPt),n);Object.assign(s.style,o),s.textContent="".concat(t);var l=s.getBoundingClientRect(),c={width:l.width,height:l.height};return Ig.widthCache[a]=c,++Ig.cacheCount>sPt&&(Ig.cacheCount=0,Ig.widthCache={}),c}catch{return{width:0,height:0}}},cPt=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Wk(e){"@babel/helpers - typeof";return Wk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wk(e)}function eV(e,t){return fPt(e)||hPt(e,t)||dPt(e,t)||uPt()}function uPt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8125In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dPt(e,t){if(e){if(typeof e=="string")return iye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iye(e,t)}}function iye(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hPt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function fPt(e){if(Array.isArray(e))return e}function pPt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gPt(n.key),n)}}function mPt(e,t,r){return t&&sye(e.prototype,t),r&&sye(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gPt(e){var t=yPt(e,"string");return Wk(t)=="symbol"?t:t+""}function yPt(e,t){if(Wk(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wk(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oye=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lye=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,vPt=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,xPt=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,JAe={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},bPt=Object.keys(JAe),iy="NaN";function wPt(e,t){return e*JAe[t]}var sS=function(){function e(t,r){pPt(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!vPt.test(r)&&(this.num=NaN,this.unit=""),bPt.includes(r)&&(this.num=wPt(t,r),this.unit="px")}return mPt(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,a=(n=xPt.exec(r))!==null&&n!==void 0?n:[],s=eV(a,3),o=s[1],l=s[2];return new e(parseFloat(o),l??"")}}])}();function eMe(e){if(e.includes(iy))return iy;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=oye.exec(t))!==null&&r!==void 0?r:[],a=eV(n,4),s=a[1],o=a[2],l=a[3],c=sS.parse(s??""),u=sS.parse(l??""),d=o==="*"?c.multiply(u):c.divide(u);if(d.isNaN())return iy;t=t.replace(oye,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,f=(h=lye.exec(t))!==null&&h!==void 0?h:[],p=eV(f,4),y=p[1],m=p[2],v=p[3],g=sS.parse(y??""),b=sS.parse(v??""),x=m==="+"?g.add(b):g.subtract(b);if(x.isNaN())return iy;t=t.replace(lye,x.toString())}return t}var cye=/\(([^()]*)\)/;function kPt(e){for(var t=e;t.includes("(");){var r=cye.exec(t),n=eV(r,2),a=n[1];t=t.replace(cye,eMe(a))}return t}function _Pt(e){var t=e.replace(/\s+/g,"");return t=kPt(t),t=eMe(t),t}function SPt(e){try{return _Pt(e)}catch{return iy}}function NQ(e){var t=SPt(e.slice(5,-1));return t===iy?"":t}var jPt=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],EPt=["dx","dy","angle","className","breakAll"];function Ire(){return Ire=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ire.apply(this,arguments)}function uye(e,t){if(e==null)return{};var r=CPt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CPt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dye(e,t){return MPt(e)||APt(e,t)||TPt(e,t)||NPt()}function NPt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8126In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TPt(e,t){if(e){if(typeof e=="string")return hye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hye(e,t)}}function hye(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function APt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function MPt(e){if(Array.isArray(e))return e}var tMe=/[ \f\n\r\t\v\u2028\u2029]+/,rMe=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var s=[];Rr(r)||(n?s=r.toString().split(""):s=r.toString().split(tMe));var o=s.map(function(c){return{word:c,width:qw(c,a).width}}),l=n?0:qw("Â ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},IPt=function(t,r,n,a,s){var o=t.maxLines,l=t.children,c=t.style,u=t.breakAll,d=ot(o),h=l,f=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return z.reduce(function(Y,W){var ee=W.word,Z=W.width,V=Y[Y.length-1];if(V&&(a==null||s||V.width+Z+n<Number(a)))V.words.push(ee),V.width+=Z+n;else{var ne={words:[ee],width:Z};Y.push(ne)}return Y},[])}
8126,p=f(r),y=function(z){return z.reduce(function(Y,W){return Y.width>W.width?Y:W})};if(!d)return p;for(var m="â¦",v=function(z){var Y=h.slice(0,z),W=rMe({breakAll:u,style:c,children:Y+m}).wordsWithComputedWidth,ee=f(W),Z=ee.length>o||y(ee).width>Number(a);return[Z,ee]},g=0,b=h.length-1,x=0,_;g<=b&&x<=h.length-1;){var w=Math.floor((g+b)/2),j=w-1,E=v(j),C=dye(E,2),N=C[0],A=C[1],$=v(w),T=dye($,1),F=T[0];if(!N&&!F&&(g=w+1),N&&F&&(b=w-1),!N&&F){_=A;break}x++}return _||p},fye=function(t){var r=Rr(t)?[]:t.toString().split(tMe);return[{words:r}]},PPt=function(t){var r=t.width,n=t.scaleToFit,a=t.children,s=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!th.isSsr){var c,u,d=rMe({breakAll:o,children:a,style:s});if(d){var h=d.wordsWithComputedWidth,f=d.spaceWidth;c=h,u=f}else return fye(a);return IPt({breakAll:o,children:a,maxLines:l,style:s},c,u,r,n)}return fye(a)},pye="#808080",tV=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,s=a===void 0?0:a,o=t.lineHeight,l=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,d=t.scaleToFit,h=d===void 0?!1:d,f=t.textAnchor,p=f===void 0?"start":f,y=t.verticalAnchor,m=y===void 0?"end":y,v=t.fill,g=v===void 0?pye:v,b=uye(t,jPt),x=k.useMemo(function(){return PPt({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:h,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,h,b.style,b.width]),_=b.dx,w=b.dy,j=b.angle,E=b.className,C=b.breakAll,N=uye(b,EPt);if(!Ra(n)||!Ra(s))return null;var A=n+(ot(_)?_:0),$=s+(ot(w)?w:0),T;switch(m){case"start":T=NQ("calc(".concat(u,")"));break;case"middle":T=NQ("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:T=NQ("calc(".concat(x.length-1," * -").concat(l,")"));break}var F=[];if(h){var M=x[0].width,z=b.width;F.push("scale(".concat((ot(z)?z/M:1)/M,")"))}return j&&F.push("rotate(".concat(j,", ").concat(A,", ").concat($,")")),F.length&&(N.transform=F.join(" ")),ce.createElement("text",Ire({},Or(N,!0),{x:A,y:$,className:Mr("recharts-text",E),textAnchor:p,fill:g.includes("url")?pye:g}),x.map(function(Y,W){var ee=Y.words.join(C?"":" ");return ce.createElement("tspan",{x:A,dy:W===0?T:l,key:"".concat(ee,"-").concat(W)},ee)}))};function rh(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LPt(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Hoe(e){let t,r,n;e.length!==2?(t=rh,r=(l,c)=>rh(e(l),c),n=(l,c)=>e(l)-c):(t=e===rh||e===LPt?e:OPt,r=e,n=e);function a(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const h=u+d>>>1;r(l[h],c)<0?u=h+1:d=h}while(u<d)}return u}function s(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const h=u+d>>>1;r(l[h],c)<=0?u=h+1:d=h}while(u<d)}return u}function o(l,c,u=0,d=l.length){const h=a(l,c,u,d-1);return h>u&&n(l[h-1],c)>-n(l[h],c)?h-1:h}return{left:a,center:o,right:s}}function OPt(){return 0}function nMe(e){return e===null?NaN:+e}function*RPt(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const DPt=Hoe(rh),b4=DPt.right;Hoe(nMe).center;class mye extends Map{constructor(t,r=BPt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(gye(this,t))}has(t){return super.has(gye(this,t))}set(t,r){return super.set(FPt(this,t),r)}delete(t){return super.delete($Pt(this,t))}}function gye({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function FPt({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function $Pt({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function BPt(e){return e!==null&&typeof e=="object"?e.valueOf():e}function zPt(e=rh){if(e===rh)return aMe;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function aMe(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const UPt=Math.sqrt(50),qPt=Math.sqrt(10),HPt=Math.sqrt(2);function rV(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),s=n/Math.pow(10,a),o=s>=UPt?10:s>=qPt?5:s>=HPt?2:1;let l,c,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),c=Math.round(t*u),l/u<e&&++l,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),c=Math.round(t/u),l*u<e&&++l,c*u>t&&--c),c<l&&.5<=r&&r<2?rV(e,t,r*2):[l,c,u]}function Pre(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,s,o]=n?rV(t,e,r):rV(e,t,r);if(!(s>=a))return[];const l=s-a+1,c=new Array(l);if(n)if(o<0)for(let u=0;u<l;++u)c[u]=(s-u)/-o;else for(let u=0;u<l;++u)c[u]=(s-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(a+u)/-o;else for(let u=0;u<l;++u)c[u]=(a+u)*o;return c}function Lre(e,t,r){return t=+t,e=+e,r=+r,rV(e,t,r)[2]}function Ore(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?Lre(t,e,r):Lre(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function yye(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function vye(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function iMe(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?aMe:zPt(a);n>r;){if(n-r>600){const c=n-r+1,u=t-r+1,d=Math.log(c),h=.5*Math.exp(2*d/3),f=.5*Math.sqrt(d*h*(c-h)/c)*(u-c/2<0?-1:1),p=Math.max(r,Math.floor(t-u*h/c+f)),y=Math.min(n,Math.floor(t+(c-u)*h/c+f));iMe(e,t,p,y,a)}const s=e[t];let o=r,l=n;for(eb(e,r,t),a(e[n],s)>0&&eb(e,r,n);o<l;){for(eb(e,o,l),++o,--l;a(e[o],s)<0;)++o;for(;a(e[l],s)>0;)--l}a(e[r],s)===0?eb(e,r,l):(++l,eb(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function eb(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function VPt(e,t,r){if(e=Float64Array.from(RPt(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return vye(e);if(t>=1)return yye(e);var n,a=(n-1)*t,s=Math.floor(a),o=yye(iMe(e,s).subarray(0,s+1)),l=vye(e.subarray(s+1));return o+(l-o)*(a-s)}}function WPt(e,t,r=nMe){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,s=Math.floor(a),o=+r(e[s],s,e),l=+r(e[s+1],s+1,e);return o+(l-o)*(a-s)}}function GPt(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,s=new Array(a);++n<a;)s[n]=e+n*r;return s}function To(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function qu(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 10,067 bytes, line 8126
8126const Rre=Symbol("implicit");function Voe(){var e=new mye,t=[],r=[],n=Rre;function a(s){let o=e.get(s);if(o===void 0){if(n!==Rre)return n;e.set(s,o=t.push(s)-1)}return r[o%r.length]}return a.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new mye;for(const o of s)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(s){return arguments.length?(r=Array.from(s),a):r.slice()},a.unknown=function(s){return arguments.length?(n=s,a):n},a.copy=function(){return Voe(t,r).unknown(n)},To.apply(a,arguments),a}function Gk(){var e=Voe().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,s,o,l=!1,c=0,u=0,d=.5;delete e.unknown;function h(){var f=t().length,p=a<n,y=p?a:n,m=p?n:a;s=(m-y)/Math.max(1,f-c+u*2),l&&(s=Math.floor(s)),y+=(m-y-s*(f-c))*d,o=s*(1-c),l&&(y=Math.round(y),o=Math.round(o));var v=GPt(f).map(function(g){return y+s*g});return r(p?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),h()):t()},e.range=function(f){return arguments.length?([n,a]=f,n=+n,a=+a,h()):[n,a]},e.rangeRound=function(f){return[n,a]=f,n=+n,a=+a,l=!0,h()},e.bandwidth=function(){return o},e.step=function(){return s},e.round=function(f){return arguments.length?(l=!!f,h()):l},e.padding=function(f){return arguments.length?(c=Math.min(1,u=+f),h()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),h()):c},e.paddingOuter=function(f){return arguments.length?(u=+f,h()):u},e.align=function(f){return arguments.length?(d=Math.max(0,Math.min(1,f)),h()):d},e.copy=function(){return Gk(t(),[n,a]).round(l).paddingInner(c).paddingOuter(u).align(d)},To.apply(h(),arguments)}function sMe(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sMe(t())},e}function Hw(){return sMe(Gk.apply(null,arguments).paddingInner(1))}function Woe(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function oMe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function w4(){}var Kk=.7,nV=1/Kk,Vy="\\s*([+-]?\\d+)\\s*",Yk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",KPt=/^#([0-9a-f]{3,8})$/,YPt=new RegExp(`^rgb\\(${Vy},${Vy},${Vy}\\)$`),XPt=new RegExp(`^rgb\\(${fc},${fc},${fc}\\)$`),ZPt=new RegExp(`^rgba\\(${Vy},${Vy},${Vy},${Yk}\\)$`),QPt=new RegExp(`^rgba\\(${fc},${fc},${fc},${Yk}\\)$`),JPt=new RegExp(`^hsl\\(${Yk},${fc},${fc}\\)$`),e7t=new RegExp(`^hsla\\(${Yk},${fc},${fc},${Yk}\\)$`),xye={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Woe(w4,Xk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bye,formatHex:bye,formatHex8:t7t,formatHsl:r7t,formatRgb:wye,toString:wye});function bye(){return this.rgb().formatHex()}function t7t(){return this.rgb().formatHex8()}function r7t(){return lMe(this).formatHsl()}function wye(){return this.rgb().formatRgb()}function Xk(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=KPt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?kye(t):r===3?new gs(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?oS(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?oS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=YPt.exec(e))?new gs(t[1],t[2],t[3],1):(t=XPt.exec(e))?new gs(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ZPt.exec(e))?oS(t[1],t[2],t[3],t[4]):(t=QPt.exec(e))?oS(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JPt.exec(e))?jye(t[1],t[2]/100,t[3]/100,1):(t=e7t.exec(e))?jye(t[1],t[2]/100,t[3]/100,t[4]):xye.hasOwnProperty(e)?kye(xye[e]):e==="transparent"?new gs(NaN,NaN,NaN,0):null}function kye(e){return new gs(e>>16&255,e>>8&255,e&255,1)}function oS(e,t,r,n){return n<=0&&(e=t=r=NaN),new gs(e,t,r,n)}function n7t(e){return e instanceof w4||(e=Xk(e)),e?(e=e.rgb(),new gs(e.r,e.g,e.b,e.opacity)):new gs}function Dre(e,t,r,n){return arguments.length===1?n7t(e):new gs(e,t,r,n??1)}function gs(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Woe(gs,Dre,oMe(w4,{brighter(e){return e=e==null?nV:Math.pow(nV,e),new gs(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Kk:Math.pow(Kk,e),new gs(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gs(h0(this.r),h0(this.g),h0(this.b),aV(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_ye,formatHex:_ye,formatHex8:a7t,formatRgb:Sye,toString:Sye}));function _ye(){return`#${B1(this.r)}${B1(this.g)}${B1(this.b)}`}function a7t(){return`#${B1(this.r)}${B1(this.g)}${B1(this.b)}${B1((isNaN(this.opacity)?1:this.opacity)*255)}`}function Sye(){const e=aV(this.opacity);return`${e===1?"rgb(":"rgba("}${h0(this.r)}, ${h0(this.g)}, ${h0(this.b)}${e===1?")":`, ${e})`}`}function aV(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function h0(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function B1(e){return e=h0(e),(e<16?"0":"")+e.toString(16)}function jye(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new sl(e,t,r,n)}function lMe(e){if(e instanceof sl)return new sl(e.h,e.s,e.l,e.opacity);if(e instanceof w4||(e=Xk(e)),!e)return new sl;if(e instanceof sl)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),s=Math.max(t,r,n),o=NaN,l=s-a,c=(s+a)/2;return l?(t===s?o=(r-n)/l+(r<n)*6:r===s?o=(n-t)/l+2:o=(t-r)/l+4,l/=c<.5?s+a:2-s-a,o*=60):l=c>0&&c<1?0:o,new sl(o,l,c,e.opacity)}function i7t(e,t,r,n){return arguments.length===1?lMe(e):new sl(e,t,r,n??1)}function sl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Woe(sl,i7t,oMe(w4,{brighter(e){return e=e==null?nV:Math.pow(nV,e),new sl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Kk:Math.pow(Kk,e),new sl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new gs(TQ(e>=240?e-240:e+120,a,n),TQ(e,a,n),TQ(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new sl(Eye(this.h),lS(this.s),lS(this.l),aV(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=aV(this.opacity);return`${e===1?"hsl(":"hsla("}${Eye(this.h)}, ${lS(this.s)*100}%, ${lS(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Eye(e){return e=(e||0)%360,e<0?e+360:e}function lS(e){return Math.max(0,Math.min(1,e||0))}function TQ(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Goe=e=>()=>e;function s7t(e,t){return function(r){return e+r*t}}function o7t(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function l7t(e){return(e=+e)==1?cMe:function(t,r){return r-t?o7t(t,r,e):Goe(isNaN(t)?r:t)}}function cMe(e,t){var r=t-e;return r?s7t(e,r):Goe(isNaN(e)?t:e)}const Cye=function e(t){var r=l7t(t);function n(a,s){var o=r((a=Dre(a)).r,(s=Dre(s)).r),l=r(a.g,s.g),c=r(a.b,s.b),u=cMe(a.opacity,s.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=c(d),a.opacity=u(d),a+""}}return n.gamma=e,n}(1);function c7t(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(s){for(a=0;a<r;++a)n[a]=e[a]*(1-s)+t[a]*s;return n}}function u7t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function d7t(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),s=new Array(r),o;for(o=0;o<n;++o)a[o]=Wv(e[o],t[o]);for(;o<r;
vendor: 5,539 bytes, line 8126
8126++o)s[o]=t[o];return function(l){for(o=0;o<n;++o)s[o]=a[o](l);return s}}function h7t(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function iV(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function f7t(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=Wv(e[a],t[a]):n[a]=t[a];return function(s){for(a in r)n[a]=r[a](s);return n}}var Fre=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,AQ=new RegExp(Fre.source,"g");function p7t(e){return function(){return e}}function m7t(e){return function(t){return e(t)+""}}function g7t(e,t){var r=Fre.lastIndex=AQ.lastIndex=0,n,a,s,o=-1,l=[],c=[];for(e=e+"",t=t+"";(n=Fre.exec(e))&&(a=AQ.exec(t));)(s=a.index)>r&&(s=t.slice(r,s),l[o]?l[o]+=s:l[++o]=s),(n=n[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,c.push({i:o,x:iV(n,a)})),r=AQ.lastIndex;return r<t.length&&(s=t.slice(r),l[o]?l[o]+=s:l[++o]=s),l.length<2?c[0]?m7t(c[0].x):p7t(t):(t=c.length,function(u){for(var d=0,h;d<t;++d)l[(h=c[d]).i]=h.x(u);return l.join("")})}function Wv(e,t){var r=typeof t,n;return t==null||r==="boolean"?Goe(t):(r==="number"?iV:r==="string"?(n=Xk(t))?(t=n,Cye):g7t:t instanceof Xk?Cye:t instanceof Date?h7t:u7t(t)?c7t:Array.isArray(t)?d7t:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?f7t:iV)(e,t)}function Koe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function y7t(e,t){t===void 0&&(t=e,e=Wv);for(var r=0,n=t.length-1,a=t[0],s=new Array(n<0?0:n);r<n;)s[r]=e(a,a=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return s[l](o-l)}}function v7t(e){return function(){return e}}function sV(e){return+e}var Nye=[0,1];function Ki(e){return e}function $re(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:v7t(isNaN(t)?NaN:.5)}function x7t(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function b7t(e,t,r){var n=e[0],a=e[1],s=t[0],o=t[1];return a<n?(n=$re(a,n),s=r(o,s)):(n=$re(n,a),s=r(s,o)),function(l){return s(n(l))}}function w7t(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),s=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=$re(e[o],e[o+1]),s[o]=r(t[o],t[o+1]);return function(l){var c=b4(e,l,1,n)-1;return s[c](a[c](l))}}function k4(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function eK(){var e=Nye,t=Nye,r=Wv,n,a,s,o=Ki,l,c,u;function d(){var f=Math.min(e.length,t.length);return o!==Ki&&(o=x7t(e[0],e[f-1])),l=f>2?w7t:b7t,c=u=null,h}function h(f){return f==null||isNaN(f=+f)?s:(c||(c=l(e.map(n),t,r)))(n(o(f)))}return h.invert=function(f){return o(a((u||(u=l(t,e.map(n),iV)))(f)))},h.domain=function(f){return arguments.length?(e=Array.from(f,sV),d()):e.slice()},h.range=function(f){return arguments.length?(t=Array.from(f),d()):t.slice()},h.rangeRound=function(f){return t=Array.from(f),r=Koe,d()},h.clamp=function(f){return arguments.length?(o=f?!0:Ki,d()):o!==Ki},h.interpolate=function(f){return arguments.length?(r=f,d()):r},h.unknown=function(f){return arguments.length?(s=f,h):s},function(f,p){return n=f,a=p,d()}}function Yoe(){return eK()(Ki,Ki)}function k7t(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function oV(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function z2(e){return e=oV(Math.abs(e)),e?e[1]:NaN}function _7t(e,t){return function(r,n){for(var a=r.length,s=[],o=0,l=e[0],c=0;a>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),s.push(r.substring(a-=l,a+l)),!((c+=l+1)>n));)l=e[o=(o+1)%e.length];return s.reverse().join(t)}}function S7t(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var j7t=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zk(e){if(!(t=j7t.exec(e)))throw new Error("invalid format: "+e);var t;return new Xoe({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Zk.prototype=Xoe.prototype;function Xoe(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Xoe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function E7t(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var uMe;function C7t(e,t){var r=oV(e,t);if(!r)return e+"";var n=r[0],a=r[1],s=a-(uMe=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return s===o?n:s>o?n+new Array(s-o+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+oV(e,Math.max(0,t+s-1))[0]}function Tye(e,t){var r=oV(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const Aye={"%":(e,t)=>
vendor: 5,659 bytes, line 8126
8126(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:k7t,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Tye(e*100,t),r:Tye,s:C7t,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Mye(e){return e}var Iye=Array.prototype.map,Pye=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function N7t(e){var t=e.grouping===void 0||e.thousands===void 0?Mye:_7t(Iye.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?Mye:S7t(Iye.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(h){h=Zk(h);var f=h.fill,p=h.align,y=h.sign,m=h.symbol,v=h.zero,g=h.width,b=h.comma,x=h.precision,_=h.trim,w=h.type;w==="n"?(b=!0,w="g"):Aye[w]||(x===void 0&&(x=12),_=!0,w="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var j=m==="$"?r:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",E=m==="$"?n:/[%p]/.test(w)?o:"",C=Aye[w],N=/[defgprs%]/.test(w);x=x===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function A($){var T=j,F=E,M,z,Y;if(w==="c")F=C($)+F,$="";else{$=+$;var W=$<0||1/$<0;if($=isNaN($)?c:C(Math.abs($),x),_&&($=E7t($)),W&&+$==0&&y!=="+"&&(W=!1),T=(W?y==="("?y:l:y==="-"||y==="("?"":y)+T,F=(w==="s"?Pye[8+uMe/3]:"")+F+(W&&y==="("?")":""),N){for(M=-1,z=$.length;++M<z;)if(Y=$.charCodeAt(M),48>Y||Y>57){F=(Y===46?a+$.slice(M+1):$.slice(M))+F,$=$.slice(0,M);break}}}b&&!v&&($=t($,1/0));var ee=T.length+$.length+F.length,Z=ee<g?new Array(g-ee+1).join(f):"";switch(b&&v&&($=t(Z+$,Z.length?g-F.length:1/0),Z=""),p){case"<":$=T+$+F+Z;break;case"=":$=T+Z+$+F;break;case"^":$=Z.slice(0,ee=Z.length>>1)+T+$+F+Z.slice(ee);break;default:$=Z+T+$+F;break}return s($)}return A.toString=function(){return h+""},A}function d(h,f){var p=u((h=Zk(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(z2(f)/3)))*3,m=Math.pow(10,-y),v=Pye[8+y/3];return function(g){return p(m*g)+v}}return{format:u,formatPrefix:d}}var cS,Zoe,dMe;T7t({thousands:",",grouping:[3],currency:["$",""]});function T7t(e){return cS=N7t(e),Zoe=cS.format,dMe=cS.formatPrefix,cS}function A7t(e){return Math.max(0,-z2(Math.abs(e)))}function M7t(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(z2(t)/3)))*3-z2(Math.abs(e)))}function I7t(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,z2(t)-z2(e))+1}function hMe(e,t,r,n){var a=Ore(e,t,r),s;switch(n=Zk(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(s=M7t(a,o))&&(n.precision=s),dMe(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(s=I7t(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=s-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(s=A7t(a))&&(n.precision=s-(n.type==="%")*2);break}}return Zoe(n)}function Th(e){var t=e.domain;return e.ticks=function(r){var n=t();return Pre(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return hMe(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,s=n.length-1,o=n[a],l=n[s],c,u,d=10;for(l<o&&(u=o,o=l,l=u,u=a,a=s,s=u);d-- >0;){if(u=Lre(o,l,r),u===c)return n[a]=o,n[s]=l,t(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return e},e}function lV(){var e=Yoe();return e.copy=function(){return k4(e,lV())},To.apply(e,arguments),Th(e)}function fMe(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,sV),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return fMe(e).unknown(t)},e=arguments.length?Array.from(e,sV):[0,1],Th(r)}function pMe(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],s=e[n],o;return s<a&&(o=r,r=n,n=o,o=a,a=s,s=o),e[r]=t.floor(a),e[n]=t.ceil(s),e}function Lye(e){return Math.log(e)}function Oye(e){return Math.exp(e)}function P7t(e){return-Math.log(-e)}function L7t(e){return-Math.exp(-e)}function O7t(e){return isFinite(e)?+("1e"+e):e<0?0:e}function R7t(e){return e===10?O7t:e===Math.E?Math.exp:t=>Math.pow(e,t)}function D7t(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Rye(e){return(t,r)=>-e(-t,r)}function Qoe(e){const t=e(Lye,Oye),r=t.domain;let n=10,a,s;function o(){return a=D7t(n),s=R7t(n),r()[0]<0?(a=Rye(a),s=Rye(s),e(P7t,L7t)):e(Lye,Oye),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const c=r();let u=c[0],d=c[c.length-1];const h=d<u;h&&([u,d]=[d,u]);let f=a(u),p=a(d),y,m;const v=l==null?10:+l;let g=[];if(!(n%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),u>0){for(;f<=p;++f)for(y=1;y<n;++y)if(m=f<0?y/s(-f):y*s(f),!(m<u)){if(m>d)break;g.push(m)}}else for(;f<=p;++f)for(y=n-1;y>=1;--y)if(m=f>0?y/s(-f):y*s(f),!(m<u)){if(m>d)break;g.push(m)}g.length*2<v&&(g=Pre(u,d,v))}else g=Pre(f,p,Math.min(p-f,v)).map(s);return h?g.reverse():g},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Zk(c)).precision==null&&(c.trim=!0),c=Zoe(c)),l===1/0)return c;const u=Math.max(1,n*l/t.ticks().length);return d=>{let h=d/s(Math.round(a(d)));return h*n<n-.5&&(h*=n),h<=u?c(d):""}},t.nice=()=>r(pMe(r(),{floor:l=>s(Math.floor(a(l))),ceil:l=>s(Math.ceil(a(l)))})),t}function mMe(){const e=Qoe(eK()).domain([1,10]);return e.copy=()=>k4(e,mMe()).base(e.base()),To.apply(e,arguments),e}
8126function Dye(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Fye(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Joe(e){var t=1,r=e(Dye(t),Fye(t));return r.constant=function(n){return arguments.length?e(Dye(t=+n),Fye(t)):t},Th(r)}function gMe(){var e=Joe(eK());return e.copy=function(){return k4(e,gMe()).constant(e.constant())},To.apply(e,arguments)}function $ye(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function F7t(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function $7t(e){return e<0?-e*e:e*e}function ele(e){var t=e(Ki,Ki),r=1;function n(){return r===1?e(Ki,Ki):r===.5?e(F7t,$7t):e($ye(r),$ye(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},Th(t)}function tle(){var e=ele(eK());return e.copy=function(){return k4(e,tle()).exponent(e.exponent())},To.apply(e,arguments),e}function B7t(){return tle.apply(null,arguments).exponent(.5)}function Bye(e){return Math.sign(e)*e*e}function z7t(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function yMe(){var e=Yoe(),t=[0,1],r=!1,n;function a(s){var o=z7t(e(s));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(s){return e.invert(Bye(s))},a.domain=function(s){return arguments.length?(e.domain(s),a):e.domain()},a.range=function(s){return arguments.length?(e.range((t=Array.from(s,sV)).map(Bye)),a):t.slice()},a.rangeRound=function(s){return a.range(s).round(!0)},a.round=function(s){return arguments.length?(r=!!s,a):r},a.clamp=function(s){return arguments.length?(e.clamp(s),a):e.clamp()},a.unknown=function(s){return arguments.length?(n=s,a):n},a.copy=function(){return yMe(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},To.apply(a,arguments),Th(a)}function vMe(){var e=[],t=[],r=[],n;function a(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=WPt(e,o/l);return s}function s(o){return o==null||isNaN(o=+o)?n:t[b4(r,o)]}return s.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},s.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(rh),a()},s.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},s.unknown=function(o){return arguments.length?(n=o,s):n},s.quantiles=function(){return r.slice()},s.copy=function(){return vMe().domain(e).range(t).unknown(n)},To.apply(s,arguments)}function xMe(){var e=0,t=1,r=1,n=[.5],a=[0,1],s;function o(c){return c!=null&&c<=c?a[b4(n,c,0,r)]:s}function l(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},o.range=function(c){return arguments.length?(r=(a=Array.from(c)).length-1,l()):a.slice()},o.invertExtent=function(c){var u=a.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(c){return arguments.length&&(s=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return xMe().domain([e,t]).range(a).unknown(s)},To.apply(Th(o),arguments)}function bMe(){var e=[.5],t=[0,1],r,n=1;function a(s){return s!=null&&s<=s?t[b4(e,s,0,n)]:r}return a.domain=function(s){return arguments.length?(e=Array.from(s),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(s){return arguments.length?(t=Array.from(s),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(s){var o=t.indexOf(s);return[e[o-1],e[o]]},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return bMe().domain(e).range(t).unknown(r)},To.apply(a,arguments)}const MQ=new Date,IQ=new Date;function Ha(e,t,r,n){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a.floor=s=>(e(s=new Date(+s)),s),a.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),a.round=s=>{const o=a(s),l=a.ceil(s);return s-o<l-s?o:l},a.offset=(s,o)=>(t(s=new Date(+s),o==null?1:Math.floor(o)),s),a.range=(s,o,l)=>{const c=[];if(s=a.ceil(s),l=l==null?1:Math.floor(l),!(s<o)||!(l>0))return c;let u;do c.push(u=new Date(+s)),t(s,l),e(s);while(u<s&&s<o);return c},a.filter=s=>Ha(o=>{if(o>=o)for(;e(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!s(o););else for(;--l>=0;)for(;t(o,1),!s(o););}),r&&(a.count=(s,o)=>(MQ.setTime(+s),IQ.setTime(+o),e(MQ),e(IQ),Math.floor(r(MQ,IQ))),a.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(n?o=>n(o)%s===0:o=>a.count(0,o)%s===0):a)),a}const cV=Ha(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);cV.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ha(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):cV);cV.range;const ou=1e3,po=ou*60,lu=po*60,Au=lu*24,rle=Au*7,zye=Au*30,PQ=Au*365,z1=Ha(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ou)},(e,t)=>(t-e)/ou,e=>e.getUTCSeconds());z1.range;const nle=Ha(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ou)},(e,t)=>{e.setTime(+e+t*po)},(e,t)=>(t-e)/po,e=>e.getMinutes());nle.range;const ale=Ha(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*po)},(e,t)=>(t-e)/po,e=>e.getUTCMinutes());ale.range;const ile=Ha(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ou-e.getMinutes()*po)},(e,t)=>{e.setTime(+e+t*lu)},(e,t)=>(t-e)/lu,e=>e.getHours());ile.range;const sle=Ha(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*lu)},(e,t)=>(t-e)/lu,e=>e.getUTCHours());sle.range;const _4=Ha(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*po)/Au,e=>e.getDate()-1);_4.range;const tK=Ha(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Au,e=>e.getUTCDate()-1);tK.range;const wMe=Ha(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Au,e=>Math.floor(e/Au));wMe.range;function tg(e){return Ha(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*po)/rle)}const rK=tg(0),uV=tg(1),U7t=tg(2),q7t=tg(3),U2=tg(4),H7t=tg(5),V7t=tg(6);rK.range;uV.range;U7t.range;q7t.range;U2.range;H7t.range;V7t.range;function rg(e){return Ha(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/rle)}const nK=rg(0),dV=rg(1),W7t=rg(2),G7t=rg(3),q2=rg(4),K7t=rg(5),Y7t=rg(6);nK.range;dV.range;W7t.range;G7t.range;q2.range;K7t.range;Y7t.range;const ole=Ha(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());ole.range;const lle=Ha(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());lle.range;const Mu=Ha(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Mu.every=e=>
vendor: 10,185 bytes, line 8126
8126!isFinite(e=Math.floor(e))||!(e>0)?null:Ha(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Mu.range;const Iu=Ha(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Iu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ha(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Iu.range;function kMe(e,t,r,n,a,s){const o=[[z1,1,ou],[z1,5,5*ou],[z1,15,15*ou],[z1,30,30*ou],[s,1,po],[s,5,5*po],[s,15,15*po],[s,30,30*po],[a,1,lu],[a,3,3*lu],[a,6,6*lu],[a,12,12*lu],[n,1,Au],[n,2,2*Au],[r,1,rle],[t,1,zye],[t,3,3*zye],[e,1,PQ]];function l(u,d,h){const f=d<u;f&&([u,d]=[d,u]);const p=h&&typeof h.range=="function"?h:c(u,d,h),y=p?p.range(u,+d+1):[];return f?y.reverse():y}function c(u,d,h){const f=Math.abs(d-u)/h,p=Hoe(([,,v])=>v).right(o,f);if(p===o.length)return e.every(Ore(u/PQ,d/PQ,h));if(p===0)return cV.every(Math.max(Ore(u,d,h),1));const[y,m]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return y.every(m)}return[l,c]}const[X7t,Z7t]=kMe(Iu,lle,nK,wMe,sle,ale),[Q7t,J7t]=kMe(Mu,ole,rK,_4,ile,nle);function LQ(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function OQ(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tb(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function eLt(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,s=e.days,o=e.shortDays,l=e.months,c=e.shortMonths,u=rb(a),d=nb(a),h=rb(s),f=nb(s),p=rb(o),y=nb(o),m=rb(l),v=nb(l),g=rb(c),b=nb(c),x={a:W,A:ee,b:Z,B:V,c:null,d:Gye,e:Gye,f:_Lt,g:PLt,G:OLt,H:bLt,I:wLt,j:kLt,L:_Me,m:SLt,M:jLt,p:ne,q:P,Q:Xye,s:Zye,S:ELt,u:CLt,U:NLt,V:TLt,w:ALt,W:MLt,x:null,X:null,y:ILt,Y:LLt,Z:RLt,"%":Yye},_={a:R,A:H,b:re,B:ae,c:null,d:Kye,e:Kye,f:BLt,g:XLt,G:QLt,H:DLt,I:FLt,j:$Lt,L:jMe,m:zLt,M:ULt,p:D,q:U,Q:Xye,s:Zye,S:qLt,u:HLt,U:VLt,V:WLt,w:GLt,W:KLt,x:null,X:null,y:YLt,Y:ZLt,Z:JLt,"%":Yye},w={a:A,A:$,b:T,B:F,c:M,d:Vye,e:Vye,f:gLt,g:Hye,G:qye,H:Wye,I:Wye,j:hLt,L:mLt,m:dLt,M:fLt,p:N,q:uLt,Q:vLt,s:xLt,S:pLt,u:iLt,U:sLt,V:oLt,w:aLt,W:lLt,x:z,X:Y,y:Hye,Y:qye,Z:cLt,"%":yLt};x.x=j(r,x),x.X=j(n,x),x.c=j(t,x),_.x=j(r,_),_.X=j(n,_),_.c=j(t,_);function j(se,te){return function(Q){var K=[],ue=-1,B=0,pe=se.length,G,I,L;for(Q instanceof Date||(Q=new Date(+Q));++ue<pe;)se.charCodeAt(ue)===37&&(K.push(se.slice(B,ue)),(I=Uye[G=se.charAt(++ue)])!=null?G=se.charAt(++ue):I=G==="e"?" ":"0",(L=te[G])&&(G=L(Q,I)),K.push(G),B=ue+1);return K.push(se.slice(B,ue)),K.join("")}}function E(se,te){return function(Q){var K=tb(1900,void 0,1),ue=C(K,se,Q+="",0),B,pe;if(ue!=Q.length)return null;if("Q"in K)return new Date(K.Q);if("s"in K)return new Date(K.s*1e3+("L"in K?K.L:0));if(te&&!("Z"in K)&&(K.Z=0),"p"in K&&(K.H=K.H%12+K.p*12),K.m===void 0&&(K.m="q"in K?K.q:0),"V"in K){if(K.V<1||K.V>53)return null;"w"in K||(K.w=1),"Z"in K?(B=OQ(tb(K.y,0,1)),pe=B.getUTCDay(),B=pe>4||pe===0?dV.ceil(B):dV(B),B=tK.offset(B,(K.V-1)*7),K.y=B.getUTCFullYear(),K.m=B.getUTCMonth(),K.d=B.getUTCDate()+(K.w+6)%7):(B=LQ(tb(K.y,0,1)),pe=B.getDay(),B=pe>4||pe===0?uV.ceil(B):uV(B),B=_4.offset(B,(K.V-1)*7),K.y=B.getFullYear(),K.m=B.getMonth(),K.d=B.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),pe="Z"in K?OQ(tb(K.y,0,1)).getUTCDay():LQ(tb(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(pe+5)%7:K.w+K.U*7-(pe+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,OQ(K)):LQ(K)}}function C(se,te,Q,K){for(var ue=0,B=te.length,pe=Q.length,G,I;ue<B;){if(K>=pe)return-1;if(G=te.charCodeAt(ue++),G===37){if(G=te.charAt(ue++),I=w[G in Uye?te.charAt(ue++):G],!I||(K=I(se,Q,K))<0)return-1}else if(G!=Q.charCodeAt(K++))return-1}return K}function N(se,te,Q){var K=u.exec(te.slice(Q));return K?(se.p=d.get(K[0].toLowerCase()),Q+K[0].length):-1}function A(se,te,Q){var K=p.exec(te.slice(Q));return K?(se.w=y.get(K[0].toLowerCase()),Q+K[0].length):-1}function $(se,te,Q){var K=h.exec(te.slice(Q));return K?(se.w=f.get(K[0].toLowerCase()),Q+K[0].length):-1}function T(se,te,Q){var K=g.exec(te.slice(Q));return K?(se.m=b.get(K[0].toLowerCase()),Q+K[0].length):-1}function F(se,te,Q){var K=m.exec(te.slice(Q));return K?(se.m=v.get(K[0].toLowerCase()),Q+K[0].length):-1}function M(se,te,Q){return C(se,t,te,Q)}function z(se,te,Q){return C(se,r,te,Q)}function Y(se,te,Q){return C(se,n,te,Q)}function W(se){return o[se.getDay()]}function ee(se){return s[se.getDay()]}function Z(se){return c[se.getMonth()]}function V(se){return l[se.getMonth()]}function ne(se){return a[+(se.getHours()>=12)]}function P(se){return 1+~~(se.getMonth()/3)}function R(se){return o[se.getUTCDay()]}function H(se){return s[se.getUTCDay()]}function re(se){return c[se.getUTCMonth()]}function ae(se){return l[se.getUTCMonth()]}function D(se){return a[+(se.getUTCHours()>=12)]}function U(se){return 1+~~(se.getUTCMonth()/3)}return{format:function(se){var te=j(se+="",x);return te.toString=function(){return se},te},parse:function(se){var te=E(se+="",!1);return te.toString=function(){return se},te},utcFormat:function(se){var te=j(se+="",_);return te.toString=function(){return se},te},utcParse:function(se){var te=E(se+="",!0);return te.toString=function(){return se},te}}}var Uye={"-":"",_:" ",0:"0"},ri=/^\s*\d+/,tLt=/^%/,rLt=/[\\^$*+?|[\]().{}]/g;function Ir(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",s=a.length;return n+(s<r?new Array(r-s+1).join(t)+a:a)}function nLt(e){return e.replace(rLt,"\\$&")}function rb(e){return new RegExp("^(?:"+e.map(nLt).join("|")+")","i")}function nb(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function aLt(e,t,r){var n=ri.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function iLt(e,t,r){var n=ri.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function sLt(e,t,r){var n=ri.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function oLt(e,t,r){var n=ri.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function lLt(e,t,r){var n=ri.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function qye(e,t,r){var n=ri.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Hye(e,t,r){var n=ri.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function cLt(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function uLt(e,t,r){var n=ri.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function dLt(e,t,r){var n=ri.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Vye(e,t,r){var n=ri.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function hLt(e,t,r){var n=ri.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Wye(e,t,r){var n=ri.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function fLt(e,t,r){var n=ri.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function pLt(e,t,r){var n=ri.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function mLt(e,t,r){var n=ri.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function gLt(e,t,r){var n=ri.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function yLt(e,t,r){var n=tLt.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function vLt(e,t,r){var n=ri.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function xLt(e,t,r){var n=ri.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Gye(e,t){return Ir(e.getDate(),t,2)}function bLt(e,t){return Ir(e.getHours(),t,2)}function wLt(e,t){return Ir(e.getHours()%12||12,t,2)}function kLt(e,t){return Ir(1+_4.count(Mu(e),e),t,3)}function _Me(e,t){return Ir(e.getMilliseconds(),t,3)}function _Lt(e,t){return _Me(e,t)+"000"}function SLt(e,t){return Ir(e.getMonth()+1,t,2)}function jLt(e,t){return Ir(e.getMinutes(),t,2)}function ELt(e,t){return Ir(e.getSeconds(),t,2)}function CLt(e){var t=e.getDay();return t===0?7:t}function NLt(e,t){return Ir(rK.count(Mu(e)-1,e),t,2)}function SMe(e){var t=e.getDay();return t>=4||t===0?U2(e):U2.ceil(e)}function TLt(e,t){return e=SMe(e),Ir(U2.count(Mu(e),e)+(Mu(e).getDay()===4),t,2)}function ALt(e){return e.getDay()}function MLt(e,t){return Ir(uV.count(Mu(e)-1,e),t,2)}function ILt(e,t){return Ir(e.getFullYear()%100,t,2)}function PLt(e,t){return e=SMe(e),Ir(e.getFullYear()%100,t,2)}function LLt(e,t){return Ir(e.getFullYear()%1e4,t,4)}function OLt(e,t){var r=e.getDay();return e=r>=4||r===0?U2(e):U2.ceil(e),Ir(e.getFullYear()%1e4,t,4)}function RLt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ir(t/60|0,"0",2)+Ir(t%60,"0",2)}function Kye(e,t){return Ir(e.getUTCDate(),t,2)}function DLt(e,t){return Ir(e.getUTCHours(),t,2)}function FLt(e,t){return Ir(e.getUTCHours()%12||12,t,2)}function $Lt(e,t){return Ir(1+tK.count(Iu(e),e),t,3)}function jMe(e,t){return Ir(e.getUTCMilliseconds(),t,3)}function BLt(e,t){return jMe(e,t)+"000"}function zLt(e,t){return Ir(e.getUTCMonth()+1,t,2)}function ULt(e,t){return Ir(e.getUTCMinutes(),t,2)}function qLt(e,t){return Ir(e.getUTCSeconds(),t,2)}function HLt(e){var t=e.getUTCDay();return t===0?7:t}function VLt(e,t){return Ir(nK.count(Iu(e)-1,e),t,2)}function EMe(e){var t=e.getUTCDay();return t>=4||t===0?q2(e):q2.ceil(e)}function WLt(e,t){return e=EMe(e),Ir(q2.count(Iu(e),e)+(Iu(e).getUTCDay()===4),t,2)}function GLt(e){return e.getUTCDay()}function KLt(e,t){return Ir(dV.count(Iu(e)-1,e),t,2)}function YLt(e,t){return Ir(e.getUTCFullYear()%100,t,2)}function XLt(e,t){return e=EMe(e),Ir(e.getUTCFullYear()%100,t,2)}function ZLt(e,t){return Ir(e.getUTCFullYear()%1e4,t,4)}function QLt(e,t){var r=e.getUTCDay();return e=r>=4||r===0?q2(e):q2.ceil(e),Ir(e.getUTCFullYear()%1e4,t,4)}function JLt(){return"+0000"}function Yye(){return"%"}function Xye(e){return+e}function Zye(e){return Math.floor(+e/1e3)}var Pg,CMe,NMe;e9t({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
8126ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function e9t(e){return Pg=eLt(e),CMe=Pg.format,Pg.parse,NMe=Pg.utcFormat,Pg.utcParse,Pg}function t9t(e){return new Date(e)}function r9t(e){return e instanceof Date?+e:+new Date(+e)}function cle(e,t,r,n,a,s,o,l,c,u){var d=Yoe(),h=d.invert,f=d.domain,p=u(".%L"),y=u(":%S"),m=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),b=u("%b %d"),x=u("%B"),_=u("%Y");function w(j){return(c(j)<j?p:l(j)<j?y:o(j)<j?m:s(j)<j?v:n(j)<j?a(j)<j?g:b:r(j)<j?x:_)(j)}return d.invert=function(j){return new Date(h(j))},d.domain=function(j){return arguments.length?f(Array.from(j,r9t)):f().map(t9t)},d.ticks=function(j){var E=f();return e(E[0],E[E.length-1],j??10)},d.tickFormat=function(j,E){return E==null?w:u(E)},d.nice=function(j){var E=f();return(!j||typeof j.range!="function")&&(j=t(E[0],E[E.length-1],j??10)),j?f(pMe(E,j)):d},d.copy=function(){return k4(d,cle(e,t,r,n,a,s,o,l,c,u))},d}function n9t(){return To.apply(cle(Q7t,J7t,Mu,ole,rK,_4,ile,nle,z1,CMe).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function a9t(){return To.apply(cle(X7t,Z7t,Iu,lle,nK,tK,sle,ale,z1,NMe).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function aK(){var e=0,t=1,r,n,a,s,o=Ki,l=!1,c;function u(h){return h==null||isNaN(h=+h)?c:o(a===0?.5:(h=(s(h)-r)*a,l?Math.max(0,Math.min(1,h)):h))}u.domain=function(h){return arguments.length?([e,t]=h,r=s(e=+e),n=s(t=+t),a=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(h){return arguments.length?(l=!!h,u):l},u.interpolator=function(h){return arguments.length?(o=h,u):o};function d(h){return function(f){var p,y;return arguments.length?([p,y]=f,o=h(p,y),u):[o(0),o(1)]}}return u.range=d(Wv),u.rangeRound=d(Koe),u.unknown=function(h){return arguments.length?(c=h,u):c},function(h){return s=h,r=h(e),n=h(t),a=r===n?0:1/(n-r),u}}function Ah(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function TMe(){var e=Th(aK()(Ki));return e.copy=function(){return Ah(e,TMe())},qu.apply(e,arguments)}function AMe(){var e=Qoe(aK()).domain([1,10]);return e.copy=function(){return Ah(e,AMe()).base(e.base())},qu.apply(e,arguments)}function MMe(){var e=Joe(aK());return e.copy=function(){return Ah(e,MMe()).constant(e.constant())},qu.apply(e,arguments)}function ule(){var e=ele(aK());return e.copy=function(){return Ah(e,ule()).exponent(e.exponent())},qu.apply(e,arguments)}function i9t(){return ule.apply(null,arguments).exponent(.5)}function IMe(){var e=[],t=Ki;function r(n){if(n!=null&&!isNaN(n=+n))return t((b4(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(rh),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,s)=>VPt(e,s/n))},r.copy=function(){return IMe(t).domain(e)},qu.apply(r,arguments)}function iK(){var e=0,t=.5,r=1,n=1,a,s,o,l,c,u=Ki,d,h=!1,f;function p(m){return isNaN(m=+m)?f:(m=.5+((m=+d(m))-s)*(n*m<n*s?l:c),u(h?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,a=d(e=+e),s=d(t=+t),o=d(r=+r),l=a===s?0:.5/(s-a),c=s===o?0:.5/(o-s),n=s<a?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(h=!!m,p):h},p.interpolator=function(m){return arguments.length?(u=m,p):u};function y(m){return function(v){var g,b,x;return arguments.length?([g,b,x]=v,u=y7t(m,[g,b,x]),p):[u(0),u(.5),u(1)]}}return p.range=y(Wv),p.rangeRound=y(Koe),p.unknown=function(m){return arguments.length?(f=m,p):f},function(m){return d=m,a=m(e),s=m(t),o=m(r),l=a===s?0:.5/(s-a),c=s===o?0:.5/(o-s),n=s<a?-1:1,p}}function PMe(){var e=Th(iK()(Ki));return e.copy=function(){return Ah(e,PMe())},qu.apply(e,arguments)}function LMe(){var e=Qoe(iK()).domain([.1,1,10]);return e.copy=function(){return Ah(e,LMe()).base(e.base())},qu.apply(e,arguments)}function OMe(){var e=Joe(iK());return e.copy=function(){return Ah(e,OMe()).constant(e.constant())},qu.apply(e,arguments)}function dle(){var e=ele(iK());return e.copy=function(){return Ah(e,dle()).exponent(e.exponent())},qu.apply(e,arguments)}function s9t(){return dle.apply(null,arguments).exponent(.5)}const Qye=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Gk,scaleDiverging:PMe,scaleDivergingLog:LMe,scaleDivergingPow:dle,scaleDivergingSqrt:s9t,scaleDivergingSymlog:OMe,scaleIdentity:fMe,scaleImplicit:Rre,scaleLinear:lV,scaleLog:mMe,scaleOrdinal:Voe,scalePoint:Hw,scalePow:tle,scaleQuantile:vMe,scaleQuantize:xMe,scaleRadial:yMe,scaleSequential:TMe,scaleSequentialLog:AMe,scaleSequentialPow:ule,scaleSequentialQuantile:IMe,scaleSequentialSqrt:i9t,scaleSequentialSymlog:
vendor: 61,651 bytes, lines 8126-8152
8126MMe,scaleSqrt:B7t,scaleSymlog:gMe,scaleThreshold:bMe,scaleTime:n9t,scaleUtc:a9t,tickFormat:hMe},Symbol.toStringTag,{value:"Module"}));var o9t=Fv;function l9t(e,t,r){for(var n=-1,a=e.length;++n<a;){var s=e[n],o=t(s);if(o!=null&&(l===void 0?o===o&&!o9t(o):r(o,l)))var l=o,c=s}return c}var RMe=l9t;function c9t(e,t){return e>t}var u9t=c9t,d9t=RMe,h9t=u9t,f9t=Vv;function p9t(e){return e&&e.length?d9t(e,f9t,h9t):void 0}var m9t=p9t;const sK=jr(m9t);function g9t(e,t){return e<t}var y9t=g9t,v9t=RMe,x9t=y9t,b9t=Vv;function w9t(e){return e&&e.length?v9t(e,b9t,x9t):void 0}var k9t=w9t;const oK=jr(k9t);var _9t=Soe,S9t=Nh,j9t=VAe,E9t=Ts;function C9t(e,t){var r=E9t(e)?_9t:j9t;return r(e,S9t(t))}var N9t=C9t,T9t=qAe,A9t=N9t;function M9t(e,t){return T9t(A9t(e,t),1)}var I9t=M9t;const P9t=jr(I9t);var L9t=$oe;function O9t(e,t){return L9t(e,t)}var R9t=O9t;const hle=jr(R9t);var Gv=1e9,D9t={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ple,Cn=!0,_o="[DecimalError] ",f0=_o+"Invalid argument: ",fle=_o+"Exponent out of range: ",Kv=Math.floor,j1=Math.pow,F9t=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,zs,Ga=1e7,vn=7,DMe=9007199254740991,hV=Kv(DMe/vn),Tt={};Tt.absoluteValue=Tt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Tt.comparedTo=Tt.cmp=function(e){var t,r,n,a,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(n=s.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return n===a?0:n>a^s.s<0?1:-1};Tt.decimalPlaces=Tt.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*vn;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Tt.dividedBy=Tt.div=function(e){return vu(this,new this.constructor(e))};Tt.dividedToIntegerBy=Tt.idiv=function(e){var t=this,r=t.constructor;return an(vu(t,new r(e),0,1),r.precision)};Tt.equals=Tt.eq=function(e){return!this.cmp(e)};Tt.exponent=function(){return ya(this)};Tt.greaterThan=Tt.gt=function(e){return this.cmp(e)>0};Tt.greaterThanOrEqualTo=Tt.gte=function(e){return this.cmp(e)>=0};Tt.isInteger=Tt.isint=function(){return this.e>this.d.length-2};Tt.isNegative=Tt.isneg=function(){return this.s<0};Tt.isPositive=Tt.ispos=function(){return this.s>0};Tt.isZero=function(){return this.s===0};Tt.lessThan=Tt.lt=function(e){return this.cmp(e)<0};Tt.lessThanOrEqualTo=Tt.lte=function(e){return this.cmp(e)<1};Tt.logarithm=Tt.log=function(e){var t,r=this,n=r.constructor,a=n.precision,s=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(zs))throw Error(_o+"NaN");if(r.s<1)throw Error(_o+(r.s?"NaN":"-Infinity"));return r.eq(zs)?new n(0):(Cn=!1,t=vu(Qk(r,s),Qk(e,s),s),Cn=!0,an(t,a))};Tt.minus=Tt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?BMe(t,e):FMe(t,(e.s=-e.s,e))};Tt.modulo=Tt.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(_o+"NaN");return r.s?(Cn=!1,t=vu(r,e,0,1).times(e),Cn=!0,r.minus(t)):an(new n(r),a)};Tt.naturalExponential=Tt.exp=function(){return $Me(this)};Tt.naturalLogarithm=Tt.ln=function(){return Qk(this)};Tt.negated=Tt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Tt.plus=Tt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?FMe(t,e):BMe(t,(e.s=-e.s,e))};Tt.precision=Tt.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(f0+e);if(t=ya(a)+1,n=a.d.length-1,r=n*vn+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Tt.squareRoot=Tt.sqrt=function(){var e,t,r,n,a,s,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(_o+"NaN")}for(e=ya(l),Cn=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=rc(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Kv((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(a.toString()),r=c.precision,a=o=r+3;;)if(s=n,n=s.plus(vu(l,s,o+2)).times(.5),rc(s.d).slice(0,o)===(t=rc(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(an(s,r+1,0),s.times(s).eq(l)){n=s;break}}else if(t!="9999")break;o+=4}return Cn=!0,an(n,r)};Tt.times=Tt.mul=function(e){var t,r,n,a,s,o,l,c,u,d=this,h=d.constructor,f=d.d,p=(e=new h(e)).d;if(!d.s||!e.s)return new h(0);for(e.s*=d.s,r=d.e+e.e,c=f.length,u=p.length,c<u&&(s=f,f=p,p=s,o=c,c=u,u=o),s=[],o=c+u,n=o;n--;)s.push(0);for(n=u;--n>=0;){for(t=0,a=c+n;a>n;)l=s[a]+p[n]*f[a-n-1]+t,s[a--]=l%Ga|0,t=l/Ga|0;s[a]=(s[a]+t)%Ga|0}for(;!s[--o];)s.pop();return t?++r:s.shift(),e.d=s,e.e=r,Cn?an(e,h.precision):e};Tt.toDecimalPlaces=Tt.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(vc(e,0,Gv),t===void 0?t=n.rounding:vc(t,0,8),an(r,e+ya(r)+1,t))};Tt.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=O0(n,!0):(vc(e,0,Gv),t===void 0?t=a.rounding:vc(t,0,8),n=an(new a(n),e+1,t),r=O0(n,!0,e+1)),r};Tt.toFixed=function(e,t){var r,n,a=this,s=a.constructor;return e===void 0?O0(a):(vc(e,0,Gv),t===void 0?t=s.rounding:vc(t,0,8),n=an(new s(a),e+ya(a)+1,t),r=O0(n.abs(),!1,e+ya(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};Tt.toInteger=Tt.toint=function(){var e=this,t=e.constructor;return an(new t(e),ya(e)+1,t.rounding)};Tt.toNumber=function(){return+this};Tt.toPower=Tt.pow=function(e){var t,r,n,a,s,o,l=this,c=l.constructor,u=12,d=+(e=new c(e));if(!e.s)return new c(zs);if(l=new c(l),!l.s){if(e.s<1)throw Error(_o+"Infinity");return l}if(l.eq(zs))return l;if(n=c.precision,e.eq(zs))return an(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,s=l.s,o){if((r=d<0?-d:d)<=DMe){for(a=new c(zs),t=Math.ceil(n/vn+4),Cn=!1;r%2&&(a=a.times(l),e2e(a.d,t)),r=Kv(r/2),r!==0;)l=l.times(l),e2e(l.d,t);return Cn=!0,e.s<0?new c(zs).div(a):an(a,n)}}else if(s<0)throw Error(_o+"NaN");return s=s<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Cn=!1,a=e.times(Qk(l,n+u)),Cn=!0,a=$Me(a),a.s=s,a};Tt.toPrecision=function(e,t){var r,n,a=this,s=a.constructor;return e===void 0?(r=ya(a),n=O0(a,r<=s.toExpNeg||r>=s.toExpPos)):(vc(e,1,Gv),t===void 0?t=s.rounding:vc(t,0,8),a=an(new s(a),e,t),r=ya(a),n=O0(a,e<=r||r<=s.toExpNeg,e)),n};Tt.toSignificantDigits=Tt.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(vc(e,1,Gv),t===void 0?t=n.rounding:vc(t,0,8)),an(new n(r),e,t)};Tt.toString=Tt.valueOf=Tt.val=Tt.toJSON=Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ya(e),r=e.constructor;return O0(e,t<=r.toExpNeg||t>=r.toExpPos)};function FMe(e,t){var r,n,a,s,o,l,c,u,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),Cn?an(t,h):t;if(c=e.d,u=t.d,o=e.e,a=t.e,c=c.slice(),s=o-a,s){for(s<0?(n=c,s=-s,l=u.length):(n=u,a=o,l=c.length),o=Math.ceil(h/vn),l=o>l?o+1:l+1,s>l&&(s=l,n.length=1),n.reverse();s--;)n.push(0);n.reverse()}for(l=c.length,s=u.length,l-s<0&&(s=l,n=u,u=c,c=n),r=0;s;)r=(c[--s]=c[s]+u[s]+r)/Ga|0,c[s]%=Ga;for(r&&(c.unshift(r),++a),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=a,Cn?an(t,h):t}function vc(e,t,r){if(e!==~~e||e<t||e>r)throw Error(f0+e)}function rc(e){var t,r,n,a=e.length-1,s="",o=e[0];if(a>0){for(s+=o,t=1;t<a;t++)n=e[t]+"",r=vn-n.length,r&&(s+=fd(r)),s+=n;o=e[t],n=o+"",r=vn-n.length,r&&(s+=fd(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}var vu=function(){function e(n,a){var s,o=0,l=n.length;for(n=n.slice();l--;)s=n[l]*a+o,n[l]=s%Ga|0,o=s/Ga|0;return o&&n.unshift(o),n}function t(n,a,s,o){var l,c;if(s!=o)c=s>o?1:-1;else for(l=c=0;l<s;l++)if(n[l]!=a[l]){c=n[l]>a[l]?1:-1;break}return c}function r(n,a,s){for(var o=0;s--;)n[s]-=o,o=n[s]<a[s]?1:0,n[s]=o*Ga+n[s]-a[s];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,s,o){var l,c,u,d,h,f,p,y,m,v,g,b,x,_,w,j,E,C,N=n.constructor,A=n.s==a.s?1:-1,$=n.d,T=a.d;if(!n.s)return new N(n);if(!a.s)throw Error(_o+"Division by zero");for(c=n.e-a.e,E=T.length,w=$.length,p=new N(A),y=p.d=[],u=0;T[u]==($[u]||0);)++u;if(T[u]>($[u]||0)&&--c,s==null?b=s=N.precision:o?b=s+(ya(n)-ya(a))+1:b=s,b<0)return new N(0);if(b=b/vn+2|0,u=0,E==1)for(d=0,T=T[0],b++;(u<w||d)&&b--;u++)x=d*Ga+($[u]||0),y[u]=x/T|0,d=x%T|0;else{for(d=Ga/(T[0]+1)|0,d>1&&(T=e(T,d),$=e($,d),E=T.length,w=$.length),_=E,m=$.slice(0,E),v=m.length;v<E;)m[v++]=0;C=T.slice(),C.unshift(0),j=T[0],T[1]>=Ga/2&&++j;do d=0,l=t(T,m,E,v),l<0?(g=m[0],E!=v&&(g=g*Ga+(m[1]||0)),d=g/j|0,d>1?(d>=Ga&&(d=Ga-1),h=e(T,d),f=h.length,v=m.length,l=t(h,m,f,v),l==1&&(d--,r(h,E<f?C:T,f))):(d==0&&(l=d=1),h=T.slice()),f=h.length,f<v&&h.unshift(0),r(m,h,v),l==-1&&(v=m.length,l=t(T,m,E,v),l<1&&(d++,r(m,E<v?C:T,v))),v=m.length):l===0&&(d++,m=[0]),y[u++]=d,l&&m[0]?m[v++]=$[_]||0:(m=[$[_]],v=1);while((_++<w||m[0]!==void 0)&&b--)}return y[0]||y.shift(),p.e=c,an(p,o?s+ya(p)+1:s)}}();function $Me(e,t){var r,n,a,s,o,l,c=0,u=0,d=e.constructor,h=d.precision;if(ya(e)>16)throw Error(fle+ya(e));if(!e.s)return new d(zs);for(t==null?(Cn=!1,l=h):l=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(j1(2,u))/Math.LN10*2+5|0,l+=n,r=a=s=new d(zs),d.precision=l;;){if(a=an(a.times(e),l),r=r.times(++c),o=s.plus(vu(a,r,l)),rc(o.d).slice(0,l)===rc(s.d).slice(0,l)){for(;u--;)s=an(s.times(s),l);return d.precision=h,t==null?(Cn=!0,an(s,h)):s}s=o}}function ya(e){for(var t=e.e*vn,r=e.d[0];r>=10;r/=10)t++;return t}function RQ(e,t,r){if(t>e.LN10.sd())throw Cn=!0,r&&(e.precision=r),Error(_o+"LN10 precision limit exceeded");return an(new e(e.LN10),t)}function fd(e){for(var t="";e--;)t+="0";return t}function Qk(e,t){var r,n,a,s,o,l,c,u,d,h=1,f=10,p=e,y=p.d,m=p.constructor,v=m.precision;if(p.s<1)throw Error(_o+(p.s?"NaN":"-Infinity"));if(p.eq(zs))return new m(0);if(t==null?(Cn=!1,u=v):u=t,p.eq(10))return t==null&&(Cn=!0),RQ(m,u);if(u+=f,m.precision=u,r=rc(y),n=r.charAt(0),s=ya(p),Math.abs(s)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=rc(p.d),n=r.charAt(0),h++;s=ya(p),n>1?(p=new m("0."+r),s++):p=new m(n+"."+r.slice(1))}else return c=RQ(m,u+2,v).times(s+""),p=Qk(new m(n+"."+r.slice(1)),u-f).plus(c),m.precision=v,t==null?(Cn=!0,an(p,v)):p;for(l=o=p=vu(p.minus(zs),p.plus(zs),u),d=an(p.times(p),u),a=3;;){if(o=an(o.times(d),u),c=l.plus(vu(o,new m(a),u)),rc(c.d).slice(0,u)===rc(l.d).slice(0,u))return l=l.times(2),s!==0&&(l=l.plus(RQ(m,u+2,v).times(s+""))),l=vu(l,new m(h),u),m.precision=v,t==null?(Cn=!0,an(l,v)):l;l=c,a+=2}}function Jye(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=Kv(r/vn),e.d=[],n=(r+1)%vn,r<0&&(n+=vn),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=vn;n<a;)e.d.push(+t.slice(n,n+=vn));t=t.slice(n),n=vn-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),Cn&&(e.e>hV||e.e<-hV))throw Error(fle+r)}else e.s=0,e.e=0,e.d=[0];return e}function an(e,t,r){var n,a,s,o,l,c,u,d,h=e.d;for(o=1,s=h[0];s>=10;s/=10)o++;if(n=t-o,n<0)n+=vn,a=t,u=h[d=0];else{if(d=Math.ceil((n+1)/vn),s=h.length,d>=s)return e;for(u=s=h[d],o=1;s>=10;s/=10)o++;n%=vn,a=n-vn+o}if(r!==void 0&&(s=j1(10,o-a-1),l=u/s%10|0,c=t<0||h[d+1]!==void 0||u%s,c=r<4?(l||c)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||c||r==6&&(n>0?a>0?u/j1(10,o-a):0:h[d-1])%10&1||r==(e.s<0?8:7))),t<1||!h[0])return c?(s=ya(e),h.length=1,t=t-s-1,h[0]=j1(10,(vn-t%vn)%vn),e.e=Kv(-t/vn)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(n==0?(h.length=d,s=1,d--):(h.length=d+1,s=j1(10,vn-n),h[d]=a>0?(u/j1(10,o-a)%j1(10,a)|0)*s:0),c)for(;;)if(d==0){(h[0]+=s)==Ga&&(h[0]=1,++e.e);break}else{if(h[d]+=s,h[d]!=Ga)break;h[d--]=0,s=1}for(n=h.length;h[--n]===0;)h.pop();if(Cn&&(e.e>hV||e.e<-hV))throw Error(fle+ya(e));return e}function BMe(e,t){var r,n,a,s,o,l,c,u,d,h,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),Cn?an(t,p):t;if(c=e.d,h=t.d,n=t.e,u=e.e,c=c.slice(),o=u-n,o){for(d=o<0,d?(r=c,o=-o,l=h.length):(r=h,n=u,l=c.length),a=Math.max(Math.ceil(p/vn),l)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=c.length,l=h.length,d=a<l,d&&(l=a),a=0;a<l;a++)if(c[a]!=h[a]){d=c[a]<h[a];break}o=0}for(d&&(r=c,c=h,h=r,t.s=-t.s),l=c.length,a=h.length-l;a>0;--a)c[l++]=0;for(a=h.length;a>o;){if(c[--a]<h[a]){for(s=a;s&&c[--s]===0;)c[s]=Ga-1;--c[s],c[a]+=Ga}c[a]-=h[a]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,Cn?an(t,p):t):new f(0)}function O0(e,t,r){var n,a=ya(e),s=rc(e.d),o=s.length;return t?(r&&(n=r-o)>0?s=s.charAt(0)+"."+s.slice(1)+fd(n):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(a<0?"e":"e+")+a):a<0?(s="0."+fd(-a-1)+s,r&&(n=r-o)>0&&(s+=fd(n))):a>=o?(s+=fd(a+1-o),r&&(n=r-a-1)>0&&(s=s+"."+fd(n))):((n=a+1)<o&&(s=s.slice(0,n)+"."+s.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(s+="."),s+=fd(n))),e.s<0?"-"+s:s}function e2e(e,t){if(e.length>t)return e.length=t,!0}function zMe(e){var t,r,n;function a(s){var o=this;if(!(o instanceof a))return new a(s);if(o.constructor=a,s instanceof a){o.s=s.s,o.e=s.e,o.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(f0+s);if(s>0)o.s=1;else if(s<0)s=-s,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(s===~~s&&s<1e7){o.e=0,o.d=[s];return}return Jye(o,s.toString())}else if(typeof s!="string")throw Error(f0+s);if(s.charCodeAt(0)===45?(s=s.slice(1),o.s=-1):o.s=1,F9t.test(s))Jye(o,s);else throw Error(f0+s)}if(a.prototype=Tt,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=zMe,a.config=a.set=$9t,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return a.config(e),a}function $9t(e){if(!e||typeof e!="object")throw Error(_o+"Object expected");var t,r,n,a=["precision",1,Gv,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(Kv(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(f0+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(f0+r+": "+n);return this}var ple=zMe(D9t);zs=new ple(1);const tn=ple;function B9t(e){return H9t(e)||q9t(e)||U9t(e)||z9t()}function z9t(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8127In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U9t(e,t){if(e){if(typeof e=="string")return Bre(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bre(e,t)}}function q9t(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function H9t(e){if(Array.isArray(e))return Bre(e)}function Bre(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var V9t=function(t){return t},UMe={"@@functional/placeholder":!0},qMe=function(t){return t===UMe},t2e=function(t){return function r(){return arguments.length===0||arguments.length===1&&qMe(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},W9t=function e(t,r){return t===1?r:t2e(function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];var o=a.filter(function(l){return l!==UMe}).length;return o>=t?r.apply(void 0,a):e(t-o,t2e(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=a.map(function(h){return qMe(h)?c.shift():h});return r.apply(void 0,B9t(d).concat(c))}))})},lK=function(t){return W9t(t.length,t)},zre=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},G9t=lK(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),K9t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return V9t;var a=r.reverse(),s=a[0],o=a.slice(1);return function(){return o.reduce(function(l,c){return c(l)},s.apply(void 0,arguments))}},Ure=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},HMe=function(t){var r=null,n=null;return function(){for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return r&&s.every(function(l,c){return l===r[c]})||(r=s,n=t.apply(void 0,s)),n}};function Y9t(e){var t;return e===0?t=1:t=Math.floor(new tn(e).abs().log(10).toNumber())+1,t}function X9t(e,t,r){for(var n=new tn(e),a=0,s=[];n.lt(t)&&a<1e5;)s.push(n.toNumber()),n=n.add(r),a++;return s}var Z9t=lK(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),Q9t=lK(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),J9t=lK(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const cK={rangeStep:X9t,getDigitCount:Y9t,interpolateNumber:Z9t,uninterpolateNumber:Q9t,uninterpolateTruncation:J9t};function qre(e){return rOt(e)||tOt(e)||VMe(e)||eOt()}function eOt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8128In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tOt(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function rOt(e){if(Array.isArray(e))return Hre(e)}function Jk(e,t){return iOt(e)||aOt(e,t)||VMe(e,t)||nOt()}function nOt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8129In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VMe(e,t){if(e){if(typeof e=="string")return Hre(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hre(e,t)}}function Hre(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aOt(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,s=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(c){a=!0,s=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw s}}return r}}function iOt(e){if(Array.isArray(e))return e}function WMe(e){var t=Jk(e,2),r=t[0],n=t[1],a=r,s=n;return r>n&&(a=n,s=r),[a,s]}function GMe(e,t,r){if(e.lte(0))return new tn(0);var n=cK.getDigitCount(e.toNumber()),a=new tn(10).pow(n),s=e.div(a),o=n!==1?.05:.1,l=new tn(Math.ceil(s.div(o).toNumber())).add(r).mul(o),c=l.mul(a);return t?c:new tn(Math.ceil(c))}function sOt(e,t,r){var n=1,a=new tn(e);if(!a.isint()&&r){var s=Math.abs(e);s<1?(n=new tn(10).pow(cK.getDigitCount(e)-1),a=new tn(Math.floor(a.div(n).toNumber())).mul(n)):s>1&&(a=new tn(Math.floor(e)))}else e===0?a=new tn(Math.floor((t-1)/2)):r||(a=new tn(Math.floor(e)));var o=Math.floor((t-1)/2),l=K9t(G9t(function(c){return a.add(new tn(c-o).mul(n)).toNumber()}),zre);return l(0,t)}function KMe(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new tn(0),tickMin:new tn(0),tickMax:new tn(0)};var s=GMe(new tn(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new tn(0):(o=new tn(e).add(t).div(2),o=o.sub(new tn(o).mod(s)));var l=Math.ceil(o.sub(e).div(s).toNumber()),c=Math.ceil(new tn(t).sub(o).div(s).toNumber()),u=l+c+1;return u>r?KMe(e,t,r,n,a+1):(u<r&&(c=t>0?c+(r-u):c,l=t>0?l:l+(r-u)),{step:s,tickMin:o.sub(new tn(l).mul(s)),tickMax:o.add(new tn(c).mul(s))})}function oOt(e){var t=Jk(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),l=WMe([r,n]),c=Jk(l,2),u=c[0],d=c[1];if(u===-1/0||d===1/0){var h=d===1/0?[u].concat(qre(zre(0,a-1).map(function(){return 1/0}))):[].concat(qre(zre(0,a-1).map(function(){return-1/0})),[d]);return r>n?Ure(h):h}if(u===d)return sOt(u,a,s);var f=KMe(u,d,o,s),p=f.step,y=f.tickMin,m=f.tickMax,v=cK.rangeStep(y,m.add(new tn(.1).mul(p)),p);return r>n?Ure(v):v}function lOt(e,t){var r=Jk(e,2),n=r[0],a=r[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=WMe([n,a]),l=Jk(o,2),c=l[0],u=l[1];if(c===-1/0||u===1/0)return[n,a];if(c===u)return[c];var d=Math.max(t,2),h=GMe(new tn(u).sub(c).div(d-1),s,0),f=[].concat(qre(cK.rangeStep(new tn(c),new tn(u).sub(new tn(.99).mul(h)),h)),[u]);return n>a?Ure(f):f}var cOt=HMe(oOt),uOt=HMe(lOt),dOt="Invariant failed";function R0(e,t){throw new Error(dOt)}var hOt=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function H2(e){"@babel/helpers - typeof";return H2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H2(e)}function fV(){return fV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fV.apply(this,arguments)}function fOt(e,t){return yOt(e)||gOt(e,t)||mOt(e,t)||pOt()}function pOt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8130In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mOt(e,t){if(e){if(typeof e=="string")return r2e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r2e(e,t)}}function r2e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gOt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function yOt(e){if(Array.isArray(e))return e}function vOt(e,t){if(e==null)return{};var r=xOt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xOt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bOt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wOt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZMe(n.key),n)}}function kOt(e,t,r){return t&&wOt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Ot(e,t,r){return t=pV(t),SOt(e,YMe()?Reflect.construct(t,r||[],pV(e).constructor):t.apply(e,r))}function SOt(e,t){if(t&&(H2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jOt(e)}function jOt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YMe=function(){return!!e})()}function pV(e){return pV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pV(e)}function EOt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vre(e,t)}function Vre(e,t){return Vre=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Vre(e,t)}function XMe(e,t,r){return t=ZMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZMe(e){var t=COt(e,"string");return H2(t)=="symbol"?t:t+""}function COt(e,t){if(H2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(H2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uK=function(e){function t(){return bOt(this,t),_Ot(this,t,arguments)}return EOt(t,e),kOt(t,[{key:"render",value:function(){var n=this.props,a=n.offset,s=n.layout,o=n.width,l=n.dataKey,c=n.data,u=n.dataPointFormatter,d=n.xAxis,h=n.yAxis,f=vOt(n,hOt),p=Or(f,!1);this.props.direction==="x"&&d.type!=="number"&&R0();var y=c.map(function(m){var v=u(m,l),g=v.x,b=v.y,x=v.value,_=v.errorVal;if(!_)return null;var w=[],j,E;if(Array.isArray(_)){var C=fOt(_,2);j=C[0],E=C[1]}else j=E=_;if(s==="vertical"){var N=d.scale,A=b+a,$=A+o,T=A-o,F=N(x-j),M=N(x+E);w.push({x1:M,y1:$,x2:M,y2:T}),w.push({x1:F,y1:A,x2:M,y2:A}),w.push({x1:F,y1:$,x2:F,y2:T})}else if(s==="horizontal"){var z=h.scale,Y=g+a,W=Y-o,ee=Y+o,Z=z(x-j),V=z(x+E);w.push({x1:W,y1:V,x2:ee,y2:V}),w.push({x1:Y,y1:Z,x2:Y,y2:V}),w.push({x1:W,y1:Z,x2:ee,y2:Z})}return ce.createElement(Za,fV({className:"recharts-errorBar",key:"bar-".concat(w.map(function(ne){return"".concat(ne.x1,"-").concat(ne.x2,"-").concat(ne.y1,"-").concat(ne.y2)}))},p),w.map(function(ne){return ce.createElement("line",fV({},ne,{key:"line-".concat(ne.x1,"-").concat(ne.x2,"-").concat(ne.y1,"-").concat(ne.y2)}))}))});return ce.createElement(Za,{className:"recharts-errorBars"},y)}}])}(ce.Component);XMe(uK,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});XMe(uK,"displayName","ErrorBar");function e_(e){"@babel/helpers - typeof";return e_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e_(e)}function n2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ef(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n2e(Object(r),!0).forEach(function(n){NOt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NOt(e,t,r){return t=TOt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TOt(e){var t=AOt(e,"string");return e_(t)=="symbol"?t:t+""}function AOt(e,t){if(e_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(e_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QMe=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,s=t.legendContent,o=Rs(r,Hy);if(!o)return null;var l=Hy.defaultProps,c=l!==void 0?ef(ef({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:s==="children"?u=(n||[]).reduce(function(d,h){var f=h.item,p=h.props,y=p.sectors||p.data||[];return d.concat(y.map(function(m){return{type:o.props.iconType||f.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(n||[]).map(function(d){var h=d.item,f=h.type.defaultProps,p=f!==void 0?ef(ef({},f),h.props):{},y=p.dataKey,m=p.name,v=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:c.iconType||v||"square",color:mle(h),value:m||y,payload:p}}),ef(ef(ef({},c),Hy.getWithHeight(o,a)),{},{payload:u,item:o})};function t_(e){"@babel/helpers - typeof";return t_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t_(e)}function a2e(e){return LOt(e)||POt(e)||IOt(e)||MOt()}function MOt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8131In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IOt(e,t){if(e){if(typeof e=="string")return Wre(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wre(e,t)}}function POt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LOt(e){if(Array.isArray(e))return Wre(e)}function Wre(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i2e(Object(r),!0).forEach(function(n){Wy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wy(e,t,r){return t=OOt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OOt(e){var t=ROt(e,"string");return t_(t)=="symbol"?t:t+""}function ROt(e,t){if(t_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(t_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xc(e,t,r){return Rr(e)||Rr(t)?r:Ra(t)?bo(e,t,r):fr(t)?t(e):r}function Vw(e,t,r,n){var a=P9t(e,function(l){return xc(l,t)});if(r==="number"){var s=a.filter(function(l){return ot(l)||parseFloat(l)});return s.length?[oK(s),sK(s)]:[1/0,-1/0]}var o=n?a.filter(function(l){return!Rr(l)}):a;return o.map(function(l){return Ra(l)||l instanceof Date?l:""})}var DOt=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var c=s.range,u=0;u<l;u++){var d=u>0?a[u-1].coordinate:a[l-1].coordinate,h=a[u].coordinate,f=u>=l-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(ml(h-d)!==ml(f-h)){var y=[];if(ml(f-h)===ml(c[1]-c[0])){p=f;var m=h+c[1]-c[0];y[0]=Math.min(m,(m+d)/2),y[1]=Math.max(m,(m+d)/2)}else{p=d;var v=f+c[1]-c[0];y[0]=Math.min(h,(v+h)/2),y[1]=Math.max(h,(v+h)/2)}var g=[Math.min(h,(p+h)/2),Math.max(h,(p+h)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=a[u].index;break}}else{var b=Math.min(d,f),x=Math.max(d,f);if(t>(b+h)/2&&t<=(x+h)/2){o=a[u].index;break}}}else for(var _=0;_<l;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<l-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===l-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},mle=function(t){var r,n=t,a=n.type.displayName,s=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Hn(Hn({},t.type.defaultProps),t.props):t.props,o=s.stroke,l=s.fill,c;switch(a){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:l;break;default:c=l;break}return c},FOt=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,s=a===void 0?{}:a;if(!s)return{};for(var o={},l=Object.keys(s),c=0,u=l.length;c<u;c++)for(var d=s[l[c]].stackGroups,h=Object.keys(d),f=0,p=h.length;f<p;f++){var y=d[h[f]],m=y.items,v=y.cateAxisId,g=m.filter(function(E){return gu(E.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,x=b!==void 0?Hn(Hn({},b),g[0].props):g[0].props,_=x.barSize,w=x[v];o[w]||(o[w]=[]);var j=Rr(_)?r:_;o[w].push({item:g[0],stackList:g.slice(1),barSize:Rr(j)?void 0:L0(j,n,0)})}}return o},$Ot=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,s=t.sizeList,o=s===void 0?[]:s,l=t.maxBarSize,c=o.length;if(c<1)return null;var u=L0(r,a,0,!0),d,h=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=a/c,y=o.reduce(function(_,w){return _+w.barSize||0},0);y+=(c-1)*u,y>=a&&(y-=(c-1)*u,u=0),y>=a&&p>0&&(f=!0,p*=.9,y=c*p);var m=(a-y)/2>>0,v={offset:m-u,size:0};d=o.reduce(function(_,w){var j={item:w.item,position:{offset:v.offset+v.size+u,size:f?p:w.barSize}},E=[].concat(a2e(_),[j]);return v=E[E.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(C){E.push({item:C,position:v})}),E},h)}else{var g=L0(n,a,0,!0);a-2*g-(c-1)*u<=0&&(u=0);var b=(a-2*g-(c-1)*u)/c;b>1&&(b>>=0);var x=l===+l?Math.min(b,l):b;d=o.reduce(function(_,w,j){var E=[].concat(a2e(_),[{item:w.item,position:{offset:g+(b+u)*j+(b-x)/2,size:x}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(C){E.push({item:C,position:E[E.length-1].position})}),E},h)}return d},BOt=function(t,r,n,a){var s=n.children,o=n.width,l=n.margin,c=o-(l.left||0)-(l.right||0),u=QMe({children:s,legendWidth:c});if(u){var d=a||{},h=d.width,f=d.height,p=u.align,y=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&ot(t[p]))return Hn(Hn({},t),{},Wy({},p,t[p]+(h||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&ot(t[y]))return Hn(Hn({},t),{},Wy({},y,t[y]+(f||0)))}return t},zOt=function(t,r,n){return Rr(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},JMe=function(t,r,n,a,s){var o=r.props.children,l=kl(o,uK).filter(function(u){return zOt(a,s,u.props.direction)});if(l&&l.length){var c=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var h=xc(d,n);if(Rr(h))return u;var f=Array.isArray(h)?[oK(h),sK(h)]:[h,h],p=c.reduce(function(y,m){var v=xc(d,m,0),g=f[0]-Math.abs(Array.isArray(v)?v[0]:v),b=f[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(g,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},UOt=function(t,r,n,a,s){var o=r.map(function(l){return JMe(t,l,n,s,a)}).filter(function(l){return!Rr(l)});return o&&o.length?o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},eIe=function(t,r,n,a,s){var o=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&JMe(t,c,u,a)||Vw(t,u,n,s)});if(n==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(c,u){for(var d=0,h=u.length;d<h;d++)l[u[d]]||(l[u[d]]=!0,c.push(u[d]));return c},[])},tIe=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},rIe=function(t,r,n,a){if(a)return t.map(function(c){return c.coordinate});var s,o,l=t.map(function(c){return c.coordinate===r&&(s=!0),c.coordinate===n&&(o=!0),c.coordinate});return s||l.push(r),o||l.push(n),l},cu=function(t,r,n){if(!t)return null;var a=t.scale,s=t.duplicateDomain,o=t.type,l=t.range,c=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?ml(l[0]-l[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(h){var f=s?s.indexOf(h):h;return{coordinate:a(f)+u,value:h,offset:u}});return d.filter(function(h){return!v4(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,f){return{coordinate:a(h)+u,value:h,index:f,offset:u}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(h){return{coordinate:a(h)+u,value:h,offset:u}}):a.domain().map(function(h,f){return{coordinate:a(h)+u,value:s?s[h]:h,index:f,offset:u}})},DQ=new WeakMap,uS=function(t,r){if(typeof r!="function")return t;DQ.has(t)||DQ.set(t,new WeakMap);var n=DQ.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},qOt=function(t,r,n){var a=t.scale,s=t.type,o=t.layout,l=t.axisType;if(a==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Gk(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:lV(),realScaleType:"linear"}:s==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Hw(),realScaleType:"point"}:s==="category"?{scale:Gk(),realScaleType:"band"}:{scale:lV(),realScaleType:"linear"};if(P0(a)){var c="scale".concat(GG(a));return{scale:(Qye[c]||Hw)(),realScaleType:Qye[c]?c:"point"}}return fr(a)?{scale:a}:{scale:Hw(),realScaleType:"point"}},s2e=1e-4,HOt=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),s=Math.min(a[0],a[1])-s2e,o=Math.max(a[0],a[1])+s2e,l=t(r[0]),c=t(r[n-1]);(l<s||l>o||c<s||c>o)&&t.domain([r[0],r[n-1]])}},VOt=function(t,r){if(!t)return null;for(var n=0,a=t.length;n<a;n++)if(t[n].item===r)return t[n].position;return null},WOt=function(t,r){if(!r||r.length!==2||!ot(r[0])||!ot(r[1]))return t;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),s=[t[0],t[1]];return(!ot(t[0])||t[0]<n)&&(s[0]=n),(!ot(t[1])||t[1]>a)&&(s[1]=a),s[0]>a&&(s[0]=a),s[1]<n&&(s[1]=n),s},GOt=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var s=0,o=0,l=0;l<r;++l){var c=v4(t[l][n][1])?t[l][n][0]:t[l][n][1];c>=0?(t[l][n][0]=s,t[l][n][1]=s+c,s=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+c,o=t[l][n][1])}},KOt=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var s=0,o=0;o<r;++o){var l=v4(t[o][n][1])?t[o][n][0]:t[o][n][1];l>=0?(t[o][n][0]=s,t[o][n][1]=s+l,s=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},YOt={sign:GOt,expand:c6t,none:R2,silhouette:u6t,wiggle:d6t,positive:KOt},XOt=function(t,r,n){var a=r.map(function(l){return l.props.dataKey}),s=YOt[n],o=l6t().keys(a).value(function(l,c){return+xc(l,c,0)}).order(yre).offset(s);return o(t)},ZOt=function(t,r,n,a,s,o){if(!t)return null;var l=o?r.reverse():r,c={},u=l.reduce(function(h,f){var p,y=(p=f.type)!==null&&p!==void 0&&p.defaultProps?Hn(Hn({},f.type.defaultProps),f.props):f.props,m=y.stackId,v=y.hide;if(v)return h;var g=y[n],b=h[g]||{hasStack:!1,stackGroups:{}};if(Ra(m)){var x=b.stackGroups[m]||{numericAxisId:n,cateAxisId:a,items:[]};x.items.push(f),b.hasStack=!0,b.stackGroups[m]=x}else b.stackGroups[WG("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[f]};return Hn(Hn({},h),{},Wy({},g,b))},c),d={};return Object.keys(u).reduce(function(h,f){var p=u[f];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,v){var g=p.stackGroups[v];return Hn(Hn({},m),{},Wy({},v,{numericAxisId:n,cateAxisId:a,items:g.items,stackedData:XOt(t,g.items,s)}))},y)}return Hn(Hn({},h),{},Wy({},f,p))},d)},QOt=function(t,r){var n=r.realScaleType,a=r.type,s=r.tickCount,o=r.originalDomain,l=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(s&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var d=cOt(u,s,l);return t.domain([oK(d),sK(d)]),{niceTicks:d}}if(s&&a==="number"){var h=t.domain(),f=uOt(h,s,l);return{niceTicks:f}}return null},o2e=function(t){var r=t.axis,n=t.ticks,a=t.offset,s=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+a:null;var c=xc(o,r.dataKey,r.domain[l]);return Rr(c)?null:r.scale(c)-s/2+a},JOt=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);return a<=0&&s>=0?0:s<0?s:a}return n[0]},eRt=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Hn(Hn({},t.type.defaultProps),t.props):t.props,s=a.stackId;if(Ra(s)){var o=r[s];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},tRt=function(t){return t.reduce(function(r,n){return[oK(n.concat([r[0]]).filter(ot)),sK(n.concat([r[1]]).filter(ot))]},[1/0,-1/0])},nIe=function(t,r,n){return Object.keys(t).reduce(function(a,s){var o=t[s],l=o.stackedData,c=l.reduce(function(u,d){var h=tRt(d.slice(r,n+1));return[Math.min(u[0],h[0]),Math.max(u[1],h[1])]},[1/0,-1/0]);return[Math.min(c[0],a[0]),Math.max(c[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},l2e=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,c2e=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gre=function(t,r,n){if(fr(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(ot(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(l2e.test(t[0])){var s=+l2e.exec(t[0])[1];a[0]=r[0]-s}else fr(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(ot(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(c2e.test(t[1])){var o=+c2e.exec(t[1])[1];a[1]=r[1]+o}else fr(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},mV=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var s=zoe(r,function(h){return h.coordinate}),o=1/0,l=1,c=s.length;l<c;l++){var u=s[l],d=s[l-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},u2e=function(t,r,n){return!t||!t.length||hle(t,bo(n,"type.defaultProps.domain"))?r:t},aIe=function(t,r){var n=t.type.defaultProps?Hn(Hn({},t.type.defaultProps),t.props):t.props,a=n.dataKey,s=n.name,o=n.unit,l=n.formatter,c=n.tooltipType,u=n.chartType,d=n.hide;return Hn(Hn({},Or(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:s||a,color:mle(t),value:xc(r,a),type:c,payload:r,chartType:u,hide:d})};function r_(e){"@babel/helpers - typeof";return r_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r_(e)}function d2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function h2e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d2e(Object(r),!0).forEach(function(n){rRt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rRt(e,t,r){return t=nRt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nRt(e){var t=aRt(e,"string");return r_(t)=="symbol"?t:t+""}function aRt(e,t){if(r_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(r_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gV=Math.PI/180,iRt=function(t){return t*180/Math.PI},ui=function(t,r,n,a){return{x:t+Math.cos(-gV*a)*n,y:r+Math.sin(-gV*a)*n}},sRt=function(t,r){var n=t.x,a=t.y,s=r.x,o=r.y;return Math.sqrt(Math.pow(n-s,2)+Math.pow(a-o,2))},oRt=function(t,r){var n=t.x,a=t.y,s=r.cx,o=r.cy,l=sRt({x:n,y:a},{x:s,y:o});if(l<=0)return{radius:l};var c=(n-s)/l,u=Math.acos(c);return a>o&&(u=2*Math.PI-u),{radius:l,angle:iRt(u),angleInRadian:u}},lRt=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),s=Math.floor(n/360),o=Math.min(a,s);return{startAngle:r-o*360,endAngle:n-o*360}},cRt=function(t,r){var n=r.startAngle,a=r.endAngle,s=Math.floor(n/360),o=Math.floor(a/360),l=Math.min(s,o);return t+l*360},f2e=function(t,r){var n=t.x,a=t.y,s=oRt({x:n,y:a},r),o=s.radius,l=s.angle,c=r.innerRadius,u=r.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var d=lRt(r),h=d.startAngle,f=d.endAngle,p=l,y;if(h<=f){for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}else{for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}return y?h2e(h2e({},r),{},{radius:o,angle:cRt(p,r)}):null};function n_(e){"@babel/helpers - typeof";return n_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n_(e)}var uRt=["offset"];function dRt(e){return mRt(e)||pRt(e)||fRt(e)||hRt()}function hRt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8132In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fRt(e,t){if(e){if(typeof e=="string")return Kre(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kre(e,t)}}function pRt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mRt(e){if(Array.isArray(e))return Kre(e)}function Kre(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gRt(e,t){if(e==null)return{};var r=yRt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yRt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function p2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p2e(Object(r),!0).forEach(function(n){vRt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vRt(e,t,r){return t=xRt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xRt(e){var t=bRt(e,"string");return n_(t)=="symbol"?t:t+""}function bRt(e,t){if(n_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(n_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a_(){return a_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a_.apply(this,arguments)}var wRt=function(t){var r=t.value,n=t.formatter,a=Rr(t.children)?r:t.children;return fr(n)?n(a):a},kRt=function(t,r){var n=ml(r-t),a=Math.min(Math.abs(r-t),360);return n*a},_Rt=function(t,r,n){var a=t.position,s=t.viewBox,o=t.offset,l=t.className,c=s,u=c.cx,d=c.cy,h=c.innerRadius,f=c.outerRadius,p=c.startAngle,y=c.endAngle,m=c.clockWise,v=(h+f)/2,g=kRt(p,y),b=g>=0?1:-1,x,_;a==="insideStart"?(x=p+b*o,_=m):a==="insideEnd"?(x=y-b*o,_=!m):a==="end"&&(x=y+b*o,_=m),_=g<=0?_:!_;var w=ui(u,d,v,x),j=ui(u,d,v,x+(_?1:-1)*359),E="M".concat(w.x,",").concat(w.y,` 8133 A`).concat(v,",").concat(v,",0,1,").concat(_?0:1,`, 8134 `).concat(j.x,",").concat(j.y),C=Rr(t.id)?WG("recharts-radial-line-"):t.id;return ce.createElement("text",a_({},n,{dominantBaseline:"central",className:Mr("recharts-radial-bar-label",l)}),ce.createElement("defs",null,ce.createElement("path",{id:C,d:E})),ce.createElement("textPath",{xlinkHref:"#".concat(C)},r))},SRt=function(t){var r=t.viewBox,n=t.offset,a=t.position,s=r,o=s.cx,l=s.cy,c=s.innerRadius,u=s.outerRadius,d=s.startAngle,h=s.endAngle,f=(d+h)/2;if(a==="outside"){var p=ui(o,l,u+n,f),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var v=(c+u)/2,g=ui(o,l,v,f),b=g.x,x=g.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},jRt=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,s=t.position,o=r,l=o.x,c=o.y,u=o.width,d=o.height,h=d>=0?1:-1,f=h*a,p=h>0?"end":"start",y=h>0?"start":"end",m=u>=0?1:-1,v=m*a,g=m>0?"end":"start",b=m>0?"start":"end";if(s==="top"){var x={x:l+u/2,y:c-h*a,textAnchor:"middle",verticalAnchor:p};return Na(Na({},x),n?{height:Math.max(c-n.y,0),width:u}:{})}if(s==="bottom"){var _={x:l+u/2,y:c+d+f,textAnchor:"middle",verticalAnchor:y};return Na(Na({},_),n?{height:Math.max(n.y+n.height-(c+d),0),width:u}:{})}if(s==="left"){var w={x:l-v,y:c+d/2,textAnchor:g,verticalAnchor:"middle"};return Na(Na({},w),n?{width:Math.max(w.x-n.x,0),height:d}:{})}if(s==="right"){var j={x:l+u+v,y:c+d/2,textAnchor:b,verticalAnchor:"middle"};return Na(Na({},j),n?{width:Math.max(n.x+n.width-j.x,0),height:d}:{})}var E=n?{width:u,height:d}:{};return s==="insideLeft"?Na({x:l+v,y:c+d/2,textAnchor:b,verticalAnchor:"middle"},E):s==="insideRight"?Na({x:l+u-v,y:c+d/2,textAnchor:g,verticalAnchor:"middle"},E):s==="insideTop"?Na({x:l+u/2,y:c+f,textAnchor:"middle",verticalAnchor:y},E):s==="insideBottom"?Na({x:l+u/2,y:c+d-f,textAnchor:"middle",verticalAnchor:p},E):s==="insideTopLeft"?Na({x:l+v,y:c+f,textAnchor:b,verticalAnchor:y},E):s==="insideTopRight"?Na({x:l+u-v,y:c+f,textAnchor:g,verticalAnchor:y},E):s==="insideBottomLeft"?Na({x:l+v,y:c+d-f,textAnchor:b,verticalAnchor:p},E):s==="insideBottomRight"?Na({x:l+u-v,y:c+d-f,textAnchor:g,verticalAnchor:p},E):$v(s)&&(ot(s.x)||$1(s.x))&&(ot(s.y)||$1(s.y))?Na({x:l+L0(s.x,u),y:c+L0(s.y,d),textAnchor:"end",verticalAnchor:"end"},E):Na({x:l+u/2,y:c+d/2,textAnchor:"middle",verticalAnchor:"middle"},E)},ERt=function(t){return"cx"in t&&ot(t.cx)};function Ei(e){var t=e.offset,r=t===void 0?5:t,n=gRt(e,uRt),a=Na({offset:r},n),s=a.viewBox,o=a.position,l=a.value,c=a.children,u=a.content,d=a.className,h=d===void 0?"":d,f=a.textBreakAll;if(!s||Rr(l)&&Rr(c)&&!k.isValidElement(u)&&!fr(u))return null;if(k.isValidElement(u))return k.cloneElement(u,a);var p;if(fr(u)){if(p=k.createElement(u,a),k.isValidElement(p))return p}else p=wRt(a);var y=ERt(s),m=Or(a,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return _Rt(a,p,m);var v=y?SRt(a):jRt(a);return ce.createElement(tV,a_({className:Mr("recharts-label",h)},m,v,{breakAll:f}),p)}Ei.displayName="Label";var iIe=function(t){var r=t.cx,n=t.cy,a=t.angle,s=t.startAngle,o=t.endAngle,l=t.r,c=t.radius,u=t.innerRadius,d=t.outerRadius,h=t.x,f=t.y,p=t.top,y=t.left,m=t.width,v=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(ot(m)&&ot(v)){if(ot(h)&&ot(f))return{x:h,y:f,width:m,height:v};if(ot(p)&&ot(y))return{x:p,y,width:m,height:v}}return ot(h)&&ot(f)?{x:h,y:f,width:0,height:0}:ot(r)&&ot(n)?{cx:r,cy:n,startAngle:s||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:d||c||l||0,clockWise:g}:t.viewBox?t.viewBox:{}},CRt=function(t,r){return t?t===!0?ce.createElement(Ei,{key:"label-implicit",viewBox:r}):Ra(t)?ce.createElement(Ei,{key:"label-implicit",viewBox:r,value:t}):k.isValidElement(t)?t.type===Ei?k.cloneElement(t,{key:"label-implicit",viewBox:r}):ce.createElement(Ei,{key:"label-implicit",content:t,viewBox:r}):fr(t)?ce.createElement(Ei,{key:"label-implicit",content:t,viewBox:r}):$v(t)?ce.createElement(Ei,a_({viewBox:r},t,{key:"label-implicit"})):null:null},NRt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,s=iIe(t),o=kl(a,Ei).map(function(c,u){return k.cloneElement(c,{viewBox:r||s,key:"label-".concat(u)})});if(!n)return o;var l=CRt(t.label,r||s);return[l].concat(dRt(o))};Ei.parseViewBox=iIe;Ei.renderCallByParent=NRt;function TRt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ARt=TRt;const MRt=jr(ARt);function i_(e){"@babel/helpers - typeof";return i_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i_(e)}var IRt=["valueAccessor"],PRt=["data","dataKey","clockWise","id","textBreakAll"];function LRt(e){return FRt(e)||DRt(e)||RRt(e)||ORt()}function ORt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8135In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RRt(e,t){if(e){if(typeof e=="string")return Yre(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yre(e,t)}}function DRt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FRt(e){if(Array.isArray(e))return Yre(e)}function Yre(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yV(){return yV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yV.apply(this,arguments)}function m2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function g2e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m2e(Object(r),!0).forEach(function(n){$Rt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $Rt(e,t,r){return t=BRt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BRt(e){var t=zRt(e,"string");return i_(t)=="symbol"?t:t+""}function zRt(e,t){if(i_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(i_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y2e(e,t){if(e==null)return{};var r=URt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function URt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var qRt=function(t){return Array.isArray(t.value)?MRt(t.value):t.value};function p0(e){var t=e.valueAccessor,r=t===void 0?qRt:t,n=y2e(e,IRt),a=n.data,s=n.dataKey,o=n.clockWise,l=n.id,c=n.textBreakAll,u=y2e(n,PRt);return!a||!a.length?null:ce.createElement(Za,{className:"recharts-label-list"},a.map(function(d,h){var f=Rr(s)?r(d,h):xc(d&&d.payload,s),p=Rr(l)?{}:{id:"".concat(l,"-").concat(h)};return ce.createElement(Ei,yV({},Or(d,!0),u,p,{parentViewBox:d.parentViewBox,value:f,textBreakAll:c,viewBox:Ei.parseViewBox(Rr(o)?d:g2e(g2e({},d),{},{clockWise:o})),key:"label-".concat(h),index:h}))}))}p0.displayName="LabelList";function HRt(e,t){return e?e===!0?ce.createElement(p0,{key:"labelList-implicit",data:t}):ce.isValidElement(e)||fr(e)?ce.createElement(p0,{key:"labelList-implicit",data:t,content:e}):$v(e)?ce.createElement(p0,yV({data:t},e,{key:"labelList-implicit"})):null:null}function VRt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=kl(n,p0).map(function(o,l){return k.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return a;var s=HRt(e.label,t);return[s].concat(LRt(a))}p0.renderCallByParent=VRt;function s_(e){"@babel/helpers - typeof";return s_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s_(e)}function Xre(){return Xre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xre.apply(this,arguments)}function v2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function x2e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v2e(Object(r),!0).forEach(function(n){WRt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WRt(e,t,r){return t=GRt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GRt(e){var t=KRt(e,"string");return s_(t)=="symbol"?t:t+""}function KRt(e,t){if(s_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(s_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YRt=function(t,r){var n=ml(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},dS=function(t){var r=t.cx,n=t.cy,a=t.radius,s=t.angle,o=t.sign,l=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,d=c*(l?1:-1)+a,h=Math.asin(c/d)/gV,f=u?s:s+o*h,p=ui(r,n,d,f),y=ui(r,n,a,f),m=u?s-o*h:s,v=ui(r,n,d*Math.cos(h*gV),m);return{center:p,circleTangency:y,lineTangency:v,theta:h}},sIe=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,s=t.outerRadius,o=t.startAngle,l=t.endAngle,c=YRt(o,l),u=o+c,d=ui(r,n,s,o),h=ui(r,n,s,u),f="M ".concat(d.x,",").concat(d.y,` 8136 A `).concat(s,",").concat(s,`,0, 8137 `).concat(+(Math.abs(c)>180),",").concat(+(o>u),`, 8138 `).concat(h.x,",").concat(h.y,` 8139 `);if(a>0){var p=ui(r,n,a,o),y=ui(r,n,a,u);f+="L ".concat(y.x,",").concat(y.y,` 8140 A `).concat(a,",").concat(a,`,0, 8141 `).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`, 8142 `).concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(r,",").concat(n," Z");return f},XRt=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,s=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,h=ml(d-u),f=dS({cx:r,cy:n,radius:s,angle:u,sign:h,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,y=f.lineTangency,m=f.theta,v=dS({cx:r,cy:n,radius:s,angle:d,sign:-h,cornerRadius:o,cornerIsExternal:c}),g=v.circleTangency,b=v.lineTangency,x=v.theta,_=c?Math.abs(u-d):Math.abs(u-d)-m-x;if(_<0)return l?"M ".concat(y.x,",").concat(y.y,` 8143 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 8144 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 8145 `):sIe({cx:r,cy:n,innerRadius:a,outerRadius:s,startAngle:u,endAngle:d});var w="M ".concat(y.x,",").concat(y.y,` 8146 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(p.x,",").concat(p.y,` 8147 A`).concat(s,",").concat(s,",0,").concat(+(_>180),",").concat(+(h<0),",").concat(g.x,",").concat(g.y,` 8148 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(b.x,",").concat(b.y,` 8149 `);if(a>0){var j=dS({cx:r,cy:n,radius:a,angle:u,sign:h,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=j.circleTangency,C=j.lineTangency,N=j.theta,A=dS({cx:r,cy:n,radius:a,angle:d,sign:-h,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),$=A.circleTangency,T=A.lineTangency,F=A.theta,M=c?Math.abs(u-d):Math.abs(u-d)-N-F;if(M<0&&o===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(T.x,",").concat(T.y,` 8150 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat($.x,",").concat($.y,` 8151 A`).concat(a,",").concat(a,",0,").concat(+(M>180),",").concat(+(h>0),",").concat(E.x,",").concat(E.y,` 8152 A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},ZRt={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},oIe=function(t){var r=x2e(x2e({},ZRt),t),n=r.cx,a=r.cy,s=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,d=r.startAngle,h=r.endAngle,f=r.className;if(o<s||d===h)return null;var p=Mr("recharts-sector",f),y=o-s,m=L0(l,y,0,!0),v;return m>0&&Math.abs(d-h)<360?v=XRt({cx:n,cy:a,innerRadius:s,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:d,endAngle:h}):v=sIe({cx:n,cy:a,innerRadius:s,outerRadius:o,startAngle:d,endAngle:h}),ce.createElement("path",Xre({},Or(r,!0),{className:p,d:v,role:"img"}))};function o_(e){"@babel/helpers - typeof";return o_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o_(e)}function Zre(){return Zre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zre.apply(this,arguments)}function b2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function w2e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b2e(Object(r),!0).forEach(function(n){QRt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b2e(Object(r)).forEac
8152h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QRt(e,t,r){return t=JRt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JRt(e){var t=eDt(e,"string");return o_(t)=="symbol"?t:t+""}function eDt(e,t){if(o_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(o_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k2e={curveBasisClosed:Z5t,curveBasisOpen:Q5t,curveBasis:X5t,curveBumpX:R5t,curveBumpY:D5t,curveLinearClosed:J5t,curveLinear:YG,curveMonotoneX:e6t,curveMonotoneY:t6t,curveNatural:r6t,curveStep:n6t,curveStepAfter:i6t,curveStepBefore:a6t},hS=function(t){return t.x===+t.x&&t.y===+t.y},ab=function(t){return t.x},ib=function(t){return t.y},tDt=function(t,r){if(fr(t))return t;var n="curve".concat(GG(t));return(n==="curveMonotone"||n==="curveBump")&&r?k2e["".concat(n).concat(r==="vertical"?"Y":"X")]:k2e[n]||YG},rDt=function(t){var r=t.type,n=r===void 0?"linear":r,a=t.points,s=a===void 0?[]:a,o=t.baseLine,l=t.layout,c=t.connectNulls,u=c===void 0?!1:c,d=tDt(n,l),h=u?s.filter(function(m){return hS(m)}):s,f;if(Array.isArray(o)){var p=u?o.filter(function(m){return hS(m)}):o,y=h.map(function(m,v){return w2e(w2e({},m),{},{base:p[v]})});return l==="vertical"?f=rS().y(ib).x1(ab).x0(function(m){return m.base.x}):f=rS().x(ab).y1(ib).y0(function(m){return m.base.y}),f.defined(hS).curve(d),f(y)}return l==="vertical"&&ot(o)?f=rS().y(ib).x1(ab).x0(o):ot(o)?f=rS().x(ab).y1(ib).y0(o):f=lAe().x(ab).y(ib),f.defined(hS).curve(d),f(h)},_2e=function(t){var r=t.className,n=t.points,a=t.path,s=t.pathRef;if((!n||!n.length)&&!a)return null;var o=n&&n.length?rDt(t):a;return k.createElement("path",Zre({},Or(t,!1),BH(t),{className:Mr("recharts-curve",r),d:o,ref:s}))},nDt=Object.getOwnPropertyNames,aDt=Object.getOwnPropertySymbols,iDt=Object.prototype.hasOwnProperty;function S2e(e,t){return function(n,a,s){return e(n,a,s)&&t(n,a,s)}}function fS(e){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,a);var s=a.cache,o=s.get(r),l=s.get(n);if(o&&l)return o===n&&l===r;s.set(r,n),s.set(n,r);var c=e(r,n,a);return s.delete(r),s.delete(n),c}}function j2e(e){return nDt(e).concat(aDt(e))}var sDt=Object.hasOwn||function(e,t){return iDt.call(e,t)};function ng(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var oDt="__v",lDt="__o",cDt="_owner",E2e=Object.getOwnPropertyDescriptor,C2e=Object.keys;function uDt(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function dDt(e,t){return ng(e.getTime(),t.getTime())}function hDt(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function fDt(e,t){return e===t}function N2e(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),s=e.entries(),o,l,c=0;(o=s.next())&&!o.done;){for(var u=t.entries(),d=!1,h=0;(l=u.next())&&!l.done;){if(a[h]){h++;continue}var f=o.value,p=l.value;if(r.equals(f[0],p[0],c,h,e,t,r)&&r.equals(f[1],p[1],f[0],p[0],e,t,r)){d=a[h]=!0;break}h++}if(!d)return!1;c++}return!0}var pDt=ng;function mDt(e,t,r){var n=C2e(e),a=n.length;if(C2e(t).length!==a)return!1;for(;a-- >0;)if(!lIe(e,t,r,n[a]))return!1;return!0}function sb(e,t,r){var n=j2e(e),a=n.length;if(j2e(t).length!==a)return!1;for(var s,o,l;a-- >0;)if(s=n[a],!lIe(e,t,r,s)||(o=E2e(e,s),l=E2e(t,s),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function gDt(e,t){return ng(e.valueOf(),t.valueOf())}function yDt(e,t){return e.source===t.source&&e.flags===t.flags}function T2e(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),s=e.values(),o,l;(o=s.next())&&!o.done;){for(var c=t.values(),u=!1,d=0;(l=c.next())&&!l.done;){if(!a[d]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function vDt(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function xDt(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function lIe(e,t,r,n){return(n===cDt||n===lDt||n===oDt)&&(e.$$typeof||t.$$typeof)?!0:sDt(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var bDt="[object Arguments]",wDt="[object Boolean]",kDt="[object Date]",_Dt="[object Error]",SDt="[object Map]",jDt="[object Number]",EDt="[object Object]",CDt="[object RegExp]",NDt="[object Set]",TDt="[object String]",ADt="[object URL]",MDt=Array.isArray,A2e=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,M2e=Object.assign,IDt=Object.prototype.toString.call.bind(Object.prototype.toString);function PDt(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,a=e.areFunctionsEqual,s=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,h=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(y,m,v){if(y===m)return!0;
8152if(y==null||m==null)return!1;var g=typeof y;if(g!==typeof m)return!1;if(g!=="object")return g==="number"?o(y,m,v):g==="function"?a(y,m,v):!1;var b=y.constructor;if(b!==m.constructor)return!1;if(b===Object)return l(y,m,v);if(MDt(y))return t(y,m,v);if(A2e!=null&&A2e(y))return h(y,m,v);if(b===Date)return r(y,m,v);if(b===RegExp)return u(y,m,v);if(b===Map)return s(y,m,v);if(b===Set)return d(y,m,v);var x=IDt(y);return x===kDt?r(y,m,v):x===CDt?u(y,m,v):x===SDt?s(y,m,v):x===NDt?d(y,m,v):x===EDt?typeof y.then!="function"&&typeof m.then!="function"&&l(y,m,v):x===ADt?f(y,m,v):x===_Dt?n(y,m,v):x===bDt?l(y,m,v):x===wDt||x===jDt||x===TDt?c(y,m,v):!1}}function LDt(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?sb:uDt,areDatesEqual:dDt,areErrorsEqual:hDt,areFunctionsEqual:fDt,areMapsEqual:n?S2e(N2e,sb):N2e,areNumbersEqual:pDt,areObjectsEqual:n?sb:mDt,arePrimitiveWrappersEqual:gDt,areRegExpsEqual:yDt,areSetsEqual:n?S2e(T2e,sb):T2e,areTypedArraysEqual:n?sb:vDt,areUrlsEqual:xDt};if(r&&(a=M2e({},a,r(a))),t){var s=fS(a.areArraysEqual),o=fS(a.areMapsEqual),l=fS(a.areObjectsEqual),c=fS(a.areSetsEqual);a=M2e({},a,{areArraysEqual:s,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:c})}return a}function ODt(e){return function(t,r,n,a,s,o,l){return e(t,r,l)}}function RDt(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,s=e.strict;if(n)return function(c,u){var d=n(),h=d.cache,f=h===void 0?t?new WeakMap:void 0:h,p=d.meta;return r(c,u,{cache:f,equals:a,meta:p,strict:s})};if(t)return function(c,u){return r(c,u,{cache:new WeakMap,equals:a,meta:void 0,strict:s})};var o={cache:void 0,equals:a,meta:void 0,strict:s};return function(c,u){return r(c,u,o)}}var DDt=Mh();Mh({strict:!0});Mh({circular:!0});Mh({circular:!0,strict:!0});Mh({createInternalComparator:function(){return ng}});Mh({strict:!0,createInternalComparator:function(){return ng}});Mh({circular:!0,createInternalComparator:function(){return ng}});Mh({circular:!0,createInternalComparator:function(){return ng},strict:!0});function Mh(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,s=e.strict,o=s===void 0?!1:s,l=LDt(e),c=PDt(l),u=n?n(c):ODt(c);return RDt({circular:r,comparator:c,createState:a,equals:u,strict:o})}function FDt(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function I2e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(s){r<0&&(r=s),s-r>t?(e(s),r=-1):FDt(a)};requestAnimationFrame(n)}function Qre(e){"@babel/helpers - typeof";return Qre=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qre(e)}function $Dt(e){return qDt(e)||UDt(e)||zDt(e)||BDt()}function BDt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8153In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zDt(e,t){if(e){if(typeof e=="string")return P2e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P2e(e,t)}}function P2e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function UDt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qDt(e){if(Array.isArray(e))return e}function HDt(){var e={},t=function(){return null},r=!1,n=function a(s){if(!r){if(Array.isArray(s)){if(!s.length)return;var o=s,l=$Dt(o),c=l[0],u=l.slice(1);if(typeof c=="number"){I2e(a.bind(null,u),c);return}a(c),I2e(a.bind(null,u));return}Qre(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){r=!0},start:function(s){r=!1,n(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function l_(e){"@babel/helpers - typeof";return l_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l_(e)}function L2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function O2e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 48,557 bytes, lines 8153-8170
8153t%2?L2e(Object(r),!0).forEach(function(n){cIe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cIe(e,t,r){return t=VDt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VDt(e){var t=WDt(e,"string");return l_(t)==="symbol"?t:String(t)}function WDt(e,t){if(l_(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(l_(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GDt=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(s){return a.includes(s)})})},KDt=function(t){return t},YDt=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ww=function(t,r){return Object.keys(r).reduce(function(n,a){return O2e(O2e({},n),{},cIe({},a,t(a,r[a])))},{})},R2e=function(t,r,n){return t.map(function(a){return"".concat(YDt(a)," ").concat(r,"ms ").concat(n)}).join(",")};function XDt(e,t){return JDt(e)||QDt(e,t)||uIe(e,t)||ZDt()}function ZDt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8154In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QDt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function JDt(e){if(Array.isArray(e))return e}function eFt(e){return nFt(e)||rFt(e)||uIe(e)||tFt()}function tFt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8155In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uIe(e,t){if(e){if(typeof e=="string")return Jre(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jre(e,t)}}function rFt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nFt(e){if(Array.isArray(e))return Jre(e)}function Jre(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var vV=1e-4,dIe=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},hIe=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},D2e=function(t,r){return function(n){var a=dIe(t,r);return hIe(a,n)}},aFt=function(t,r){return function(n){var a=dIe(t,r),s=[].concat(eFt(a.map(function(o,l){return o*l}).slice(1)),[0]);return hIe(s,n)}},F2e=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0],s=r[1],o=r[2],l=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,s=0,o=1,l=1;break;case"ease":a=.25,s=.1,o=.25,l=1;break;case"ease-in":a=.42,s=0,o=1,l=1;break;case"ease-out":a=.42,s=0,o=.58,l=1;break;case"ease-in-out":a=0,s=0,o=.58,l=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),d=XDt(u,4);a=d[0],s=d[1],o=d[2],l=d[3]}}}var h=D2e(a,o),f=D2e(s,l),p=aFt(a,o),y=function(g){return g>1?1:g<0?0:g},m=function(g){for(var b=g>1?1:g,x=b,_=0;_<8;++_){var w=h(x)-b,j=p(x);if(Math.abs(w-b)<vV||j<vV)return f(x);x=y(x-w/j)}return f(x)};return m.isStepper=!1,m},iFt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,s=a===void 0?8:a,o=t.dt,l=o===void 0?17:o,c=function(d,h,f){var p=-(d-h)*n,y=f*s,m=f+(p-y)*l/1e3,v=f*l/1e3+d;return Math.abs(v-h)<vV&&Math.abs(m)<vV?[h,0]:[v,m]};return c.isStepper=!0,c.dt=l,c},sFt=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return F2e(a);case"spring":return iFt();default:if(a.split("(")[0]==="cubic-bezier")return F2e(a)}return typeof a=="function"?a:null};function c_(e){"@babel/helpers - typeof";return c_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c_(e)}function $2e(e){return cFt(e)||lFt(e)||fIe(e)||oFt()}function oFt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8156In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lFt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cFt(e){if(Array.isArray(e))return tne(e)}function B2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B2e(Object(r),!0).forEach(function(n){ene(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ene(e,t,r){return t=uFt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uFt(e){var t=dFt(e,"string");return c_(t)==="symbol"?t:String(t)}function dFt(e,t){if(c_(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(c_(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hFt(e,t){return mFt(e)||pFt(e,t)||fIe(e,t)||fFt()}function fFt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8157In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fIe(e,t){if(e){if(typeof e=="string")return tne(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tne(e,t)}}function tne(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pFt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function mFt(e){if(Array.isArray(e))return e}var xV=function(t,r,n){return t+(r-t)*n},rne=function(t){var r=t.from,n=t.to;return r!==n},gFt=function e(t,r,n){var a=Ww(function(s,o){if(rne(o)){var l=t(o.from,o.to,o.velocity),c=hFt(l,2),u=c[0],d=c[1];return ni(ni({},o),{},{from:u,velocity:d})}return o},r);return n<1?Ww(function(s,o){return rne(o)?ni(ni({},o),{},{velocity:xV(o.velocity,a[s].velocity,n),from:xV(o.from,a[s].from,n)}):o},r):e(t,a,n-1)};const yFt=function(e,t,r,n,a){var s=GDt(e,t),o=s.reduce(function(v,g){return ni(ni({},v),{},ene({},g,[e[g],t[g]]))},{}),l=s.reduce(function(v,g){return ni(ni({},v),{},ene({},g,{from:e[g],velocity:0,to:t[g]}))},{}),c=-1,u,d,h=function(){return null},f=function(){return Ww(function(g,b){return b.from},l)},p=function(){return!Object.values(l).filter(rne).length},y=function(g){u||(u=g);var b=g-u,x=b/r.dt;l=gFt(r,l,x),a(ni(ni(ni({},e),t),f())),u=g,p()||(c=requestAnimationFrame(h))},m=function(g){d||(d=g);var b=(g-d)/n,x=Ww(function(w,j){return xV.apply(void 0,$2e(j).concat([r(b)]))},o);if(a(ni(ni(ni({},e),t),x)),b<1)c=requestAnimationFrame(h);else{var _=Ww(function(w,j){return xV.apply(void 0,$2e(j).concat([r(1)]))},o);a(ni(ni(ni({},e),t),_))}};return h=r.isStepper?y:m,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(c)}}};function V2(e){"@babel/helpers - typeof";return V2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V2(e)}var vFt=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function xFt(e,t){if(e==null)return{};var r=bFt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bFt(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s<n.length;s++)a=n[s],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function FQ(e){return SFt(e)||_Ft(e)||kFt(e)||wFt()}function wFt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8158In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kFt(e,t){if(e){if(typeof e=="string")return nne(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nne(e,t)}}function _Ft(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SFt(e){if(Array.isArray(e))return nne(e)}function nne(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function z2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z2e(Object(r),!0).forEach(function(n){Nb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nb(e,t,r){return t=pIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jFt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EFt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pIe(n.key),n)}}function CFt(e,t,r){return t&&EFt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pIe(e){var t=NFt(e,"string");return V2(t)==="symbol"?t:String(t)}function NFt(e,t){if(V2(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(V2(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TFt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ane(e,t)}function ane(e,t){return ane=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ane(e,t)}function AFt(e){var t=MFt();return function(){var n=bV(e),a;if(t){var s=bV(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return ine(this,a)}}function ine(e,t){if(t&&(V2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sne(e)}function sne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MFt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bV(e){return bV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bV(e)}var dh=function(e){TFt(r,e);var t=AFt(r);function r(n,a){var s;jFt(this,r),s=t.call(this,n,a);var o=s.props,l=o.isActive,c=o.attributeName,u=o.from,d=o.to,h=o.steps,f=o.children,p=o.duration;if(s.handleStyleChange=s.handleStyleChange.bind(sne(s)),s.changeStyle=s.changeStyle.bind(sne(s)),!l||p<=0)return s.state={style:{}},typeof f=="function"&&(s.state={style:d}),ine(s);if(h&&h.length)s.state={style:h[0].style};else if(u){if(typeof f=="function")return s.state={style:u},ine(s);s.state={style:c?Nb({},c,u):u}}else s.state={style:{}};return s}return CFt(r,[{key:"componentDidMount",value:function(){var a=this.props,s=a.isActive,o=a.canBegin;this.mounted=!0,!(!s||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var s=this.props,o=s.isActive,l=s.canBegin,c=s.attributeName,u=s.shouldReAnimate,d=s.to,h=s.from,f=this.state.style;if(l){if(!o){var p={style:c?Nb({},c,d):d};this.state&&f&&(c&&f[c]!==d||!c&&f!==d)&&this.setState(p);return}if(!(DDt(a.to,d)&&a.canBegin&&a.isActive)){var y=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||u?h:a.to;if(this.state&&f){var v={style:c?Nb({},c,m):m};(c&&f[c]!==m||!c&&f!==m)&&this.setState(v)}this.runAnimation(Bo(Bo({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var s=this,o=a.from,l=a.to,c=a.duration,u=a.easing,d=a.begin,h=a.onAnimationEnd,f=a.onAnimationStart,p=yFt(o,l,sFt(u),c,this.changeStyle),y=function(){s.stopJSAnimation=p()};this.manager.start([f,d,y,c,h])}},{key:"runStepAnimation",value:function(a){var s=this,o=a.steps,l=a.begin,c=a.onAnimationStart,u=o[0],d=u.style,h=u.duration,f=h===void 0?0:h,p=function(m,v,g){if(g===0)return m;var b=v.duration,x=v.easing,_=x===void 0?"ease":x,w=v.style,j=v.properties,E=v.onAnimationEnd,C=g>0?o[g-1]:v,N=j||Object.keys(w);if(typeof _=="function"||_==="spring")return[].concat(FQ(m),[s.runJSAnimation.bind(s,{from:C.style,to:w,duration:b,easing:_}),b]);var A=R2e(N,b,_),$=Bo(Bo(Bo({},C.style),w),{},{transition:A});return[].concat(FQ(m),[$,b,E]).filter(KDt)};return this.manager.start([c].concat(FQ(o.reduce(p,[d,Math.max(f,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=HDt());var s=a.begin,o=a.duration,l=a.attributeName,c=a.to,u=a.easing,d=a.onAnimationStart,h=a.onAnimationEnd,f=a.steps,p=a.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(a);return}if(f.length>1){this.runStepAnimation(a);return}var m=l?Nb({},l,c):c,v=R2e(Object.keys(m),o,u);y.start([d,s,Bo(Bo({},m),{},{transition:v}),o,h])}},{key:"render",value:function(){var a=this.props,s=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var l=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var c=xFt(a,vFt),u=k.Children.count(s),d=this.state.style;if(typeof s=="function")return s(d);if(!l||u===0||o<=0)return s;var h=function(p){var y=p.props,m=y.style,v=m===void 0?{}:m,g=y.className,b=k.cloneElement(p,Bo(Bo({},c),{},{style:Bo(Bo({},v),d),className:g}));return b};return u===1?h(k.Children.only(s)):ce.createElement("div",null,k.Children.map(s,function(f){return h(f)}))}}]),r}(k.PureComponent);dh.displayName="Animate";dh.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};dh.propTypes={from:st.oneOfType([st.object,st.string]),to:st.oneOfType([st.object,st.string]),attributeName:st.string,duration:st.number,begin:st.number,easing:st.oneOfType([st.string,st.func]),steps:st.arrayOf(st.shape({duration:st.number.isRequired,style:st.object.isRequired,easing:st.oneOfType([st.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),st.func]),properties:st.arrayOf("string"),onAnimationEnd:st.func})),children:st.oneOfType([st.node,st.func]),isActive:st.bool,canBegin:st.bool,onAnimationEnd:st.func,shouldReAnimate:st.bool,onAnimationStart:st.func,onAnimationReStart:st.func};function u_(e){"@babel/helpers - typeof";return u_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u_(e)}function wV(){return wV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wV.apply(this,arguments)}function IFt(e,t){return RFt(e)||OFt(e,t)||LFt(e,t)||PFt()}function PFt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8159In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LFt(e,t){if(e){if(typeof e=="string")return U2e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U2e(e,t)}}function U2e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OFt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function RFt(e){if(Array.isArray(e))return e}function q2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function H2e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q2e(Object(r),!0).forEach(function(n){DFt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DFt(e,t,r){return t=FFt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FFt(e){var t=$Ft(e,"string");return u_(t)=="symbol"?t:t+""}function $Ft(e,t){if(u_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(u_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var V2e=function(t,r,n,a,s){var o=Math.min(Math.abs(n)/2,Math.abs(a)/2),l=a>=0?1:-1,c=n>=0?1:-1,u=a>=0&&n>=0||a<0&&n<0?1:0,d;if(o>0&&s instanceof Array){for(var h=[0,0,0,0],f=0,p=4;f<p;f++)h[f]=s[f]>o?o:s[f];d="M".concat(t,",").concat(r+l*h[0]),h[0]>0&&(d+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(u,",").concat(t+c*h[0],",").concat(r)),d+="L ".concat(t+n-c*h[1],",").concat(r),h[1]>0&&(d+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(u,`, 8160 `).concat(t+n,",").concat(r+l*h[1])),d+="L ".concat(t+n,",").concat(r+a-l*h[2]),h[2]>0&&(d+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(u,`, 8161 `).concat(t+n-c*h[2],",").concat(r+a)),d+="L ".concat(t+c*h[3],",").concat(r+a),h[3]>0&&(d+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(u,`, 8162 `).concat(t,",").concat(r+a-l*h[3])),d+="Z"}else if(o>0&&s===+s&&s>0){var y=Math.min(o,s);d="M ".concat(t,",").concat(r+l*y,` 8163 A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+c*y,",").concat(r,` 8164 L `).concat(t+n-c*y,",").concat(r,` 8165 A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n,",").concat(r+l*y,` 8166 L `).concat(t+n,",").concat(r+a-l*y,` 8167 A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n-c*y,",").concat(r+a,` 8168 L `).concat(t+c*y,",").concat(r+a,` 8169 A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(r+a-l*y," Z")}else d="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return d},BFt=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,s=r.x,o=r.y,l=r.width,c=r.height;if(Math.abs(l)>0&&Math.abs(c)>0){var u=Math.min(s,s+l),d=Math.max(s,s+l),h=Math.min(o,o+c),f=Math.max(o,o+c);return n>=u&&n<=d&&a>=h&&a<=f}return!1},zFt={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gle=function(t){var r=H2e(H2e({},zFt),t),n=k.useRef(),a=k.useState(-1),s=IFt(a,2),o=s[0],l=s[1];k.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&l(_)}catch{}},[]);var c=r.x,u=r.y,d=r.width,h=r.height,f=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,v=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||h!==+h||d===0||h===0)return null;var x=Mr("recharts-rectangle",p);return b?ce.createElement(dh,{canBegin:o>0,from:{width:d,height:h,x:c,y:u},to:{width:d,height:h,x:c,y:u},duration:m,animationEasing:y,isActive:b},function(_){var w=_.width,j=_.height,E=_.x,C=_.y;return ce.createElement(dh,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:m,isActive:g,easing:y},ce.createElement("path",wV({},Or(r,!0),{className:x,d:V2e(E,C,w,j,f),ref:n})))}):ce.createElement("path",wV({},Or(r,!0),{className:x,d:V2e(c,u,d,h,f)}))};function one(){return one=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},one.apply(this,arguments)}var mIe=function(t){var r=t.cx,n=t.cy,a=t.r,s=t.className,o=Mr("recharts-dot",s);return r===+r&&n===+n&&a===+a?k.createElement("circle",one({},Or(t,!1),BH(t),{className:o,cx:r,cy:n,r:a})):null};function d_(e){"@babel/helpers - typeof";return d_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d_(e)}var UFt=["x","y","top","left","width","height","className"];function lne(){return lne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lne.apply(this,arguments)}function W2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qFt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W2e(Object(r),!0).forEach(function(n){HFt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HFt(e,t,r){return t=VFt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VFt(e){var t=WFt(e,"string");return d_(t)=="symbol"?t:t+""}function WFt(e,t){if(d_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(d_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GFt(e,t){if(e==null)return{};var r=KFt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KFt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var YFt=function(t,r,n,a,s,o){return"M".concat(t,",").concat(s,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},XFt=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,s=a===void 0?0:a,o=t.top,l=o===void 0?0:o,c=t.left,u=c===void 0?0:c,d=t.width,h=d===void 0?0:d,f=t.height,p=f===void 0?0:f,y=t.className,m=GFt(t,UFt),v=qFt({x:n,y:s,top:l,left:u,width:h,height:p},m);return!ot(n)||!ot(s)||!ot(h)||!ot(p)||!ot(l)||!ot(u)?null:ce.createElement("path",lne({},Or(v,!0),{className:Mr("recharts-cross",y),d:YFt(n,s,h,p,l,u)}))},ZFt=IAe,QFt=ZFt(Object.getPrototypeOf,Object),JFt=QFt,e$t=zu,t$t=JFt,r$t=Uu,n$t="[object Object]",a$t=Function.prototype,i$t=Object.prototype,gIe=a$t.toString,s$t=i$t.hasOwnProperty,o$t=gIe.call(Object);function l$t(e){if(!r$t(e)||e$t(e)!=n$t)return!1;var t=t$t(e);if(t===null)return!0;var r=s$t.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&gIe.call(r)==o$t}var c$t=l$t;const u$t=jr(c$t);var d$t=zu,h$t=Uu,f$t="[object Boolean]";function p$t(e){return e===!0||e===!1||h$t(e)&&d$t(e)==f$t}var m$t=p$t;const g$t=jr(m$t);function h_(e){"@babel/helpers - typeof";return h_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h_(e)}function kV(){return kV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kV.apply(this,arguments)}function y$t(e,t){return w$t(e)||b$t(e,t)||x$t(e,t)||v$t()}function v$t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8170In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x$t(e,t){if(e){if(typeof e=="string")return G2e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G2e(e,t)}}function G2e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function b$t(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function w$t(e){if(Array.isArray(e))return e}function K2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Y2e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K2e(Object(r),!0).forEach(function(n){k$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k$t(e,t,r){return t=_$t(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _$t(e){var t=S$t(e,"string");return h_(t)=="symbol"?t:t+""}function S$t(e,t){if(h_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(h_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X2e=function(t,r,n,a,s){var o=n-a,l;return l="M ".concat(t,",").concat(r),l+="L ".concat(t+n,",").concat(r),l+="L ".concat(t+n-o/2,",").concat(r+s),l+="L ".concat(t+n-o/2-a,",").concat(r+s),l+="L ".concat(t,",").concat(r," Z"),l},j$t={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},E$t=function(t){var r=Y2e(Y2e({},j$t),t),n=k.useRef(),a=k.useState(-1),s=y$t(a,2),o=s[0],l=s[1];k.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&l(x)}catch{}},[]);var c=r.x,u=r.y,d=r.upperWidth,h=r.lowerWidth,f=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,v=r.animationBegin,g=r.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||h!==+h||f!==+f||d===0&&h===0||f===0)return null;var b=Mr("recharts-trapezoid",p);return g?ce.createElement(dh,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:f,x:c,y:u},to:{upperWidth:d,lowerWidth:h,height:f,x:c,y:u},duration:m,animationEasing:y,isActive:g},function(x){var _=x.upperWidth,w=x.lowerWidth,j=x.height,E=x.x,C=x.y;return ce.createElement(dh,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:m,easing:y},ce.createElement("path",kV({},Or(r,!0),{className:b,d:X2e(E,C,_,w,j),ref:n})))}):ce.createElement("g",null,ce.createElement("path",kV({},Or(r,!0),{className:b,d:X2e(c,u,d,h,f)})))},C$t=["option","shapeType","propTransformer","activeClassName","isActive"];function f_(e){"@babel/helpers - typeof";return f_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f_(e)}function N$t(e,t){if(e==null)return{};var r=T$t(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T$t(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Z2e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _V(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z2e(Object(r),!0).forEach(function(n){A$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z2e(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A$t(e,t,r){return t=M$t(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M$t(e){var t=I$t(e,"string");return f_(t)=="symbol"?t:t+""}function I$t(e,t){if(f_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(f_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P$t(e,t){return _V(_V({},t),e)}function L$t(e,t){return e==="symbols"}function Q2e(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return ce.createElement(gle,r);case"trapezoid":return ce.createElement(E$t,r);case"sector":return ce.createElement(oIe,r);case"symbols":if(L$t(t))return ce.createElement(Poe,r);break;default:return null}}function O$t(e){return k.isValidElement(e)?e.props:e}function R$t(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?P$t:n,s=e.activeClassName,o=s===void 0?"recharts-active-shape":s,l=e.isActive,c=N$t(e,C$t),u;if(k.isValidElement(t))u=k.cloneElement(t,_V(_V({},c),O$t(t)));else if(fr(t))u=t(c);else if(u$t(t)&&!g$t(t)){var d=a(t,c);u=ce.createElement(Q2e,{shapeType:r,elementProps:d})}else{var h=c;u=ce.createElement(Q2e,{shapeType:r,elementProps:h})}return l?ce.createElement(Za,{className:o},u):u}function dK(e,t){return t!=null&&"trapezoids"in e.props}function hK(e,t){return t!=null&&"sectors"in e.props}function p_(e,t){return t!=null&&"points"in e.props}function D$t(e,t){var r,n,a=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,s=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return a&&s}function F$t(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function $$t(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function B$t(e,t){var r;return dK(e,t)?r=D$t:hK(e,t)?r=F$t:p_(e,t)&&(r=$$t),r}function z$t(e,t){var r;return dK(e,t)?r="trapezoids":hK(e,t)?r="sectors":p_(e,t)&&(r="points"),r}function U$t(e,t){if(dK(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(hK(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return p_(e,t)?t.payload:{}}function q$t(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=z$t(r,t),s=U$t(r,t),o=n.filter(function(c,u){var d=hle(s,c),h=r.props[a].filter(function(y){var m=B$t(r,t);return m(y,t)}),f=r.props[a].indexOf(h[h.length-1]),p=u===f;return d&&p}),l=n.indexOf(o[o.length-1]);return l}var H$t=Math.ceil,V$t=Math.max;function W$t(e,t,r,n){for(var a=-1,s=V$t(H$t((t-e)/(r||1)),0),o=Array(s);s--;)o[n?s:++a]=e,e+=r;return o}var G$t=W$t,K$t=ZAe,J2e=1/0,Y$t=17976931348623157e292;function X$t(e){if(!e)return e===0?e:0;if(e=K$t(e),e===J2e||e===-J2e){var t=e<0?-1:1;return t*Y$t}return e===e?e:0}var yIe=X$t,Z$t=G$t,Q$t=JG,$Q=yIe;function J$t(e){return function(t,r,n){return n&&typeof n!="number"&&Q$t(t,r,n)&&(r=n=void 0),t=$Q(t),r===void 0?(r=t,t=0):r=$Q(r),n=n===void 0?t<r?1:-1:$Q(n),Z$t(t,r,n,e)}}var eBt=J$t,tBt=eBt,rBt=tBt(),nBt=rBt;const SV=jr(nBt);function m_(e){"@babel/helpers - typeof";return m_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m_(e)}function eve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eve(Object(r),!0).forEach(function(n){vIe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vIe(e,t,r){return t=aBt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aBt(e){var t=iBt(e,"string");return m_(t)=="symbol"?t:t+""}function iBt(e,t){if(m_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(m_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sBt=["Webkit","Moz","O","ms"],oBt=function(t,r){var n=t.replace(/(\w)/,function(s){return s.toUpperCase()}),a=sBt.reduce(function(s,o){return tve(tve({},s),{},vIe({},o+n,r))},{});return a[t]=r,a};function W2(e){"@babel/helpers - typeof";return W2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W2(e)}function jV(){return jV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jV.apply(this,arguments)}function rve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function BQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rve(Object(r),!0).forEach(function(n){Ls(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lBt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bIe(n.key),n)}}function cBt(e,t,r){return t&&nve(e.prototype,t),r&&nve(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uBt(e,t,r){return t=EV(t),dBt(e,xIe()?Reflect.construct(t,r||[],EV(e).constructor):t.apply(e,r))}function dBt(e,t){if(t&&(W2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hBt(e)}function hBt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xIe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xIe=function(){return!!e})()}function EV(e){return EV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},EV(e)}function fBt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cne(e,t)}function cne(e,t){return cne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},cne(e,t)}function Ls(e,t,r){return t=bIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bIe(e){var t=pBt(e,"string");return W2(t)=="symbol"?t:t+""}function pBt(e,t){if(W2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(W2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mBt=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,s=t.x,o=t.width,l=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=Hw().domain(SV(0,c)).range([s,s+o-l]),d=u.domain().map(function(h){return u(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(a),scale:u,scaleValues:d}},ave=function(t){return t.changedTouches&&!!t.changedTouches.length},G2=function(e){function t(r){var n;return lBt(this,t),n=uBt(this,t,[r]),Ls(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),Ls(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),Ls(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,s=a.endIndex,o=a.onDragEnd,l=a.startIndex;o==null||o({endIndex:s,startIndex:l})}),n.detachDragEndListener()}),Ls(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ls(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ls(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ls(n,"handleSlideDragStart",function(a){var s=ave(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return fBt(t,e),cBt(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,s=n.endX,o=this.state.scaleValues,l=this.props,c=l.gap,u=l.data,d=u.length-1,h=Math.min(a,s),f=Math.max(a,s),p=t.getIndexInRange(o,h),y=t.getIndexInRange(o,f);return{startIndex:p-p%c,endIndex:y===d?d:y-y%c}}},{key:"getTextOfTick",value:function(n){var a=this.props,s=a.data,o=a.tickFormatter,l=a.dataKey,c=xc(s[n],l,n);return fr(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var a=this.state,s=a.slideMoveStartX,o=a.startX,l=a.endX,c=this.props,u=c.x,d=c.width,h=c.travellerWidth,f=c.startIndex,p=c.endIndex,y=c.onChange,m=n.pageX-s;m>0?m=Math.min(m,u+d-h-l,u+d-h-o):m<0&&(m=Math.max(m,u-o,u-l));var v=this.getIndex({startX:o+m,endX:l+m});(v.startIndex!==f||v.endIndex!==p)&&y&&y(v),this.setState({startX:o+m,endX:l+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var s=ave(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,s=a.brushMoveStartX,o=a.movingTravellerId,l=a.endX,c=a.startX,u=this.state[o],d=this.props,h=d.x,f=d.width,p=d.travellerWidth,y=d.onChange,m=d.gap,v=d.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-s;b>0?b=Math.min(b,h+f-p-u):b<0&&(b=Math.max(b,h-u)),g[o]=u+b;var x=this.getIndex(g),_=x.startIndex,w=x.endIndex,j=function(){var C=v.length-1;return o==="startX"&&(l>c?_%m===0:w%m===0)||l<c&&w===C||o==="endX"&&(l>c?w%m===0:_%m===0)||l>c&&w===C};this.setState(Ls(Ls({},o,u+b),"brushMoveStartX",n.pageX),function(){y&&j()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var s=this,o=this.state,l=o.scaleValues,c=o.startX,u=o.endX,d=this.state[a],h=l.indexOf(d);if(h!==-1){var f=h+n;if(!(f===-1||f>=l.length)){var p=l[f];a==="startX"&&p>=u||a==="endX"&&p<=c||this.setState(Ls({},a,p),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,s=n.y,o=n.width,l=n.height,c=n.fill,u=n.stroke;return ce.createElement("rect",{stroke:u,fill:c,x:a,y:s,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,s=n.y,o=n.width,l=n.height,c=n.data,u=n.children,d=n.padding,h=k.Children.only(u);return h?ce.cloneElement(h,{x:a,y:s,width:o,height:l,margin:d,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,a){var s,o,l=this,c=this.props,u=c.y,d=c.travellerWidth,h=c.height,f=c.traveller,p=c.ariaLabel,y=c.data,m=c.startIndex,v=c.endIndex,g=Math.max(n,this.props.x),b=BQ(BQ({},Or(this.props,!1)),{},{x:g,y:u,width:d,height:h}),x=p||"Min value: ".concat((s=y[m])===null||s===void 0?void 0:s.name,", Max value: ").concat((o=y[v])===null||o===void 0?void 0:o.name);return ce.createElement(Za,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),l.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,b))}},{key:"renderSlide",value:function(n,a){var s=this.props,o=s.y,l=s.height,c=s.stroke,u=s.travellerWidth,d=Math.min(n,a)+u,h=Math.max(Math.abs(a-n)-u,0);return ce.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:d,y:o,width:h,height:l})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,s=n.endIndex,o=n.y,l=n.height,c=n.travellerWidth,u=n.stroke,d=this.state,h=d.startX,f=d.endX,p=5,y={pointerEvents:"none",fill:u};return ce.createElement(Za,{className:"recharts-brush-texts"},ce.createElement(tV,jV({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,f)-p,y:o+l/2},y),this.getTextOfTick(a)),ce.createElement(tV,jV({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,f)+c+p,y:o+l/2},y),this.getTextOfTick(s)))}},{key:"render",value:function(){var n=this.props,a=n.data,s=n.className,o=n.children,l=n.x,c=n.y,u=n.width,d=n.height,h=n.alwaysShowText,f=this.state,p=f.startX,y=f.endX,m=f.isTextActive,v=f.isSlideMoving,g=f.isTravellerMoving,b=f.isTravellerFocused;if(!a||!a.length||!ot(l)||!ot(c)||!ot(u)||!ot(d)||u<=0||d<=0)return null;var x=Mr("recharts-brush",s),_=ce.Children.count(o)===1,w=oBt("userSelect","none");return ce.createElement(Za,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||v||g||b||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,s=n.y,o=n.width,l=n.height,c=n.stroke,u=Math.floor(s+l/2)-1;return ce.createElement(ce.Fragment,null,ce.createElement("rect",{x:a,y:s,width:o,height:l,fill:c,stroke:"none"}),ce.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),ce.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var s;return ce.isValidElement(n)?s=ce.cloneElement(n,a):fr(n)?s=n(a):s=t.renderDefaultTraveller(a),s}},{key:"getDerivedStateFromProps",value:function(n,a){var s=n.data,o=n.width,l=n.x,c=n.travellerWidth,u=n.updateId,d=n.startIndex,h=n.endIndex;if(s!==a.prevData||u!==a.prevUpdateId)return BQ({prevData:s,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o},s&&s.length?mBt({data:s,width:o,x:l,travellerWidth:c,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||l!==a.prevX||c!==a.prevTravellerWidth)){a.scale.range([l,l+o-c]);var f=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:s,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:f}}return null}},{key:"getIndexInRange",value:function(n,a){for(var s=n.length,o=0,l=s-1;l-o>1;){var c=Math.floor((o+l)/2);n[c]>a?l=c:o=c}return a>=n[l]?l:o}}])}(k.PureComponent);Ls(G2,"displayName","Brush");Ls(G2,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var gBt=Boe;function yBt(e,t){var r;return gBt(e,function(n,a,s){return r=t(n,a,s),!r}),!!r}var vBt=yBt,xBt=SAe,bBt=Nh,wBt=vBt,kBt=Ts,_Bt=JG;function SBt(e,t,r){var n=kBt(e)?xBt:wBt;return r&&_Bt(e,t,r)&&(t=void 0),n(e,bBt(t))}var jBt=SBt;const EBt=jr(jBt);var pc=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},ive=WAe;
8170function CBt(e,t,r){t=="__proto__"&&ive?ive(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var NBt=CBt,TBt=NBt,ABt=HAe,MBt=Nh;function IBt(e,t){var r={};return t=MBt(t),ABt(e,function(n,a,s){TBt(r,a,t(n,a,s))}),r}var PBt=IBt;const LBt=jr(PBt);function OBt(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var RBt=OBt,DBt=Boe;function FBt(e,t){var r=!0;return DBt(e,function(n,a,s){return r=!!t(n,a,s),r}),r}var $Bt=FBt,BBt=RBt,zBt=$Bt,UBt=Nh,qBt=Ts,HBt=JG;function VBt(e,t,r){var n=qBt(e)?BBt:zBt;return r&&HBt(e,t,r)&&(t=void 0),n(e,UBt(t))}var WBt=VBt;const wIe=jr(WBt);var GBt=["x","y"];function g_(e){"@babel/helpers - typeof";return g_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g_(e)}function une(){return une=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},une.apply(this,arguments)}function sve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ob(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sve(Object(r),!0).forEach(function(n){KBt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KBt(e,t,r){return t=YBt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YBt(e){var t=XBt(e,"string");return g_(t)=="symbol"?t:t+""}function XBt(e,t){if(g_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(g_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZBt(e,t){if(e==null)return{};var r=QBt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QBt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function JBt(e,t){var r=e.x,n=e.y,a=ZBt(e,GBt),s="".concat(r),o=parseInt(s,10),l="".concat(n),c=parseInt(l,10),u="".concat(t.height||a.height),d=parseInt(u,10),h="".concat(t.width||a.width),f=parseInt(h,10);return ob(ob(ob(ob(ob({},t),a),o?{x:o}:{}),c?{y:c}:{}),{},{height:d,width:f,name:t.name,radius:t.radius})}function ove(e){return ce.createElement(R$t,une({shapeType:"rectangle",propTransformer:JBt,activeClassName:"recharts-active-bar"},e))}var ezt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof t=="number")return t;var s=ot(n)||kjt(n);return s?t(n,a):(s||R0(),r)}},tzt=["value","background"],kIe;function K2(e){"@babel/helpers - typeof";return K2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K2(e)}function rzt(e,t){if(e==null)return{};var r=nzt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nzt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function CV(){return CV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CV.apply(this,arguments)}function lve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function oa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 95,831 bytes, lines 8170-8174
8170t%2?lve(Object(r),!0).forEach(function(n){Ld(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function azt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SIe(n.key),n)}}function izt(e,t,r){return t&&cve(e.prototype,t),r&&cve(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function szt(e,t,r){return t=NV(t),ozt(e,_Ie()?Reflect.construct(t,r||[],NV(e).constructor):t.apply(e,r))}function ozt(e,t){if(t&&(K2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lzt(e)}function lzt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _Ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_Ie=function(){return!!e})()}function NV(e){return NV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},NV(e)}function czt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dne(e,t)}function dne(e,t){return dne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},dne(e,t)}function Ld(e,t,r){return t=SIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SIe(e){var t=uzt(e,"string");return K2(t)=="symbol"?t:t+""}function uzt(e,t){if(K2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(K2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ag=function(e){function t(){var r;azt(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=szt(this,t,[].concat(a)),Ld(r,"state",{isAnimationFinished:!1}),Ld(r,"id",WG("recharts-bar-")),Ld(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Ld(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return czt(t,e),izt(t,[{key:"renderRectanglesStatically",value:function(n){var a=this,s=this.props,o=s.shape,l=s.dataKey,c=s.activeIndex,u=s.activeBar,d=Or(this.props,!1);return n&&n.map(function(h,f){var p=f===c,y=p?u:o,m=oa(oa(oa({},d),h),{},{isActive:p,option:y,index:f,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return ce.createElement(Za,CV({className:"recharts-bar-rectangle"},zH(a.props,h,f),{key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value,"-").concat(f)}),ce.createElement(ove,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,s=a.data,o=a.layout,l=a.isAnimationActive,c=a.animationBegin,u=a.animationDuration,d=a.animationEasing,h=a.animationId,f=this.state.prevData;return ce.createElement(dh,{begin:c,duration:u,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=s.map(function(v,g){var b=f&&f[g];if(b){var x=Mg(b.x,v.x),_=Mg(b.y,v.y),w=Mg(b.width,v.width),j=Mg(b.height,v.height);return oa(oa({},v),{},{x:x(y),y:_(y),width:w(y),height:j(y)})}if(o==="horizontal"){var E=Mg(0,v.height),C=E(y);return oa(oa({},v),{},{y:v.y+v.height-C,height:C})}var N=Mg(0,v.width),A=N(y);return oa(oa({},v),{},{width:A})});return ce.createElement(Za,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,s=n.isAnimationActive,o=this.state.prevData;return s&&a&&a.length&&(!o||!hle(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,s=a.data,o=a.dataKey,l=a.activeIndex,c=Or(this.props.background,!1);return s.map(function(u,d){u.value;var h=u.background,f=rzt(u,tzt);if(!h)return null;var p=oa(oa(oa(oa(oa({},f),{},{fill:"#eee"},h),c),zH(n.props,u,d)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return ce.createElement(ove,CV({key:"background-bar-".concat(d),option:n.props.background,isActive:d===l},p))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,o=s.data,l=s.xAxis,c=s.yAxis,u=s.layout,d=s.children,h=kl(d,uK);if(!h)return null;var f=u==="vertical"?o[0].height/2:o[0].width/2,p=function(v,g){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:xc(v,g)}},y={clipPath:n?"url(#clipPath-".concat(a,")"):null};return ce.createElement(Za,y,h.map(function(m){return ce.cloneElement(m,{key:"error-bar-".concat(a,"-").concat(m.props.dataKey),data:o,xAxis:l,yAxis:c,layout:u,offset:f,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,s=n.data,o=n.className,l=n.xAxis,c=n.yAxis,u=n.left,d=n.top,h=n.width,f=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,g=Mr("recharts-bar",o),b=l&&l.allowDataOverflow,x=c&&c.allowDataOverflow,_=b||x,w=Rr(m)?this.id:m;return ce.createElement(Za,{className:g},b||x?ce.createElement("defs",null,ce.createElement("clipPath",{id:"clipPath-".concat(w)},ce.createElement("rect",{x:b?u:u-h/2,y:x?d:d-f/2,width:b?h:h*2,height:x?f:f*2}))):null,ce.createElement(Za,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(w,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,w),(!p||v)&&p0.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])}(k.PureComponent);kIe=ag;Ld(ag,"displayName","Bar");Ld(ag,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!th.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ld(ag,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,s=e.xAxis,o=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,d=e.dataStartIndex,h=e.displayedData,f=e.offset,p=VOt(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,v=m!==void 0?oa(oa({},m),r.props):r.props,g=v.dataKey,b=v.children,x=v.minPointSize,_=y==="horizontal"?o:s,w=u?_.scale.domain():null,j=JOt({numericAxis:_}),E=kl(b,qoe),C=h.map(function(N,A){var $,T,F,M,z,Y;u?$=WOt(u[d+A],w):($=xc(N,g),Array.isArray($)||($=[j,$]));var W=ezt(x,kIe.defaultProps.minPointSize)($[1],A);if(y==="horizontal"){var ee,Z=[o.scale($[0]),o.scale($[1])],V=Z[0],ne=Z[1];T=o2e({axis:s,ticks:l,bandSize:a,offset:p.offset,entry:N,index:A}),F=(ee=ne??V)!==null&&ee!==void 0?ee:void 0,M=p.size;var P=V-ne;if(z=Number.isNaN(P)?0:P,Y={x:T,y:o.y,width:M,height:o.height},Math.abs(W)>0&&Math.abs(z)<Math.abs(W)){var R=ml(z||W)*(Math.abs(W)-Math.abs(z));F-=R,z+=R}}else{var H=[s.scale($[0]),s.scale($[1])],re=H[0],ae=H[1];if(T=re,F=o2e({axis:o,ticks:c,bandSize:a,offset:p.offset,entry:N,index:A}),M=ae-re,z=p.size,Y={x:s.x,y:F,width:s.width,height:z},Math.abs(W)>0&&Math.abs(M)<Math.abs(W)){var D=ml(M||W)*(Math.abs(W)-Math.abs(M));M+=D}}return oa(oa(oa({},N),{},{x:T,y:F,width:M,height:z,value:u?$:$[1],payload:N,background:Y},E&&E[A]&&E[A].props),{},{tooltipPayload:[aIe(r,N)],tooltipPosition:{x:T+M/2,y:F+z/2}})});return oa({data:C,layout:y},f)});function y_(e){"@babel/helpers - typeof";return y_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y_(e)}function dzt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jIe(n.key),n)}}function hzt(e,t,r){return t&&uve(e.prototype,t),r&&uve(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Jo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dve(Object(r),!0).forEach(function(n){fK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fK(e,t,r){return t=jIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jIe(e){var t=fzt(e,"string");return y_(t)=="symbol"?t:t+""}function fzt(e,t){if(y_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(y_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pzt=function(t,r,n,a,s){var o=t.width,l=t.height,c=t.layout,u=t.children,d=Object.keys(r),h={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},f=!!Rs(u,ag);return d.reduce(function(p,y){var m=r[y],v=m.orientation,g=m.domain,b=m.padding,x=b===void 0?{}:b,_=m.mirror,w=m.reversed,j="".concat(v).concat(_?"Mirror":""),E,C,N,A,$;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var T=g[1]-g[0],F=1/0,M=m.categoricalDomain.sort(jjt);if(M.forEach(function(H,re){re>0&&(F=Math.min((H||0)-(M[re-1]||0),F))}),Number.isFinite(F)){var z=F/T,Y=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(E=z*Y/2),m.padding==="no-gap"){var W=L0(t.barCategoryGap,z*Y),ee=z*Y/2;E=ee-W-(ee-W)/Y*W}}}a==="xAxis"?C=[n.left+(x.left||0)+(E||0),n.left+n.width-(x.right||0)-(E||0)]:a==="yAxis"?C=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(E||0),n.top+n.height-(x.bottom||0)-(E||0)]:C=m.range,w&&(C=[C[1],C[0]]);var Z=qOt(m,s,f),V=Z.scale,ne=Z.realScaleType;V.domain(g).range(C),HOt(V);var P=QOt(V,Jo(Jo({},m),{},{realScaleType:ne}));a==="xAxis"?($=v==="top"&&!_||v==="bottom"&&_,N=n.left,A=h[j]-$*m.height):a==="yAxis"&&($=v==="left"&&!_||v==="right"&&_,N=h[j]-$*m.width,A=n.top);var R=Jo(Jo(Jo({},m),P),{},{realScaleType:ne,x:N,y:A,scale:V,width:a==="xAxis"?n.width:m.width,height:a==="yAxis"?n.height:m.height});return R.bandSize=mV(R,P),!m.hide&&a==="xAxis"?h[j]+=($?-1:1)*R.height:m.hide||(h[j]+=($?-1:1)*R.width),Jo(Jo({},p),{},fK({},y,R))},{})},EIe=function(t,r){var n=t.x,a=t.y,s=r.x,o=r.y;return{x:Math.min(n,s),y:Math.min(a,o),width:Math.abs(s-n),height:Math.abs(o-a)}},mzt=function(t){var r=t.x1,n=t.y1,a=t.x2,s=t.y2;return EIe({x:r,y:n},{x:a,y:s})},CIe=function(){function e(t){dzt(this,e),this.scale=t}return hzt(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,s=n.position;if(r!==void 0){if(s)switch(s){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(a){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],s=n[n.length-1];return a<=s?r>=a&&r<=s:r>=s&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])}();fK(CIe,"EPS",1e-4);var yle=function(t){var r=Object.keys(t).reduce(function(n,a){return Jo(Jo({},n),{},fK({},a,CIe.create(t[a])))},{});return Jo(Jo({},r),{},{apply:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=s.bandAware,l=s.position;return LBt(a,function(c,u){return r[u].apply(c,{bandAware:o,position:l})})},isInRange:function(a){return wIe(a,function(s,o){return r[o].isInRange(s)})}})};function gzt(e){return(e%180+180)%180}var yzt=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=gzt(a),o=s*Math.PI/180,l=Math.atan(n/r),c=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},vzt=Nh,xzt=x4,bzt=ZG;function wzt(e){return function(t,r,n){var a=Object(t);if(!xzt(t)){var s=vzt(r);t=bzt(t),r=function(l){return s(a[l],l,a)}}var o=e(t,r,n);return o>-1?a[s?t[o]:o]:void 0}}var kzt=wzt,_zt=yIe;function Szt(e){var t=_zt(e),r=t%1;return t===t?r?t-r:t:0}var jzt=Szt,Ezt=FAe,Czt=Nh,Nzt=jzt,Tzt=Math.max;function Azt(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:Nzt(r);return a<0&&(a=Tzt(n+a,0)),Ezt(e,Czt(t),a)}var Mzt=Azt,Izt=kzt,Pzt=Mzt,Lzt=Izt(Pzt),Ozt=Lzt;const Rzt=jr(Ozt);var Dzt=ESt(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),vle=k.createContext(void 0),xle=k.createContext(void 0),NIe=k.createContext(void 0),TIe=k.createContext({}),AIe=k.createContext(void 0),MIe=k.createContext(0),IIe=k.createContext(0),hve=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,s=r.offset,o=t.clipPathId,l=t.children,c=t.width,u=t.height,d=Dzt(s);return ce.createElement(vle.Provider,{value:n},ce.createElement(xle.Provider,{value:a},ce.createElement(TIe.Provider,{value:s},ce.createElement(NIe.Provider,{value:d},ce.createElement(AIe.Provider,{value:o},ce.createElement(MIe.Provider,{value:u},ce.createElement(IIe.Provider,{value:c},l)))))))},Fzt=function(){return k.useContext(AIe)},PIe=function(t){var r=k.useContext(vle);r==null&&R0();var n=r[t];return n==null&&R0(),n},$zt=function(){var t=k.useContext(vle);return yd(t)},Bzt=function(){var t=k.useContext(xle),r=Rzt(t,function(n){return wIe(n.domain,Number.isFinite)});return r||yd(t)},LIe=function(t){var r=k.useContext(xle);r==null&&R0();var n=r[t];return n==null&&R0(),n},zzt=function(){var t=k.useContext(NIe);return t},Uzt=function(){return k.useContext(TIe)},ble=function(){return k.useContext(IIe)},wle=function(){return k.useContext(MIe)};function Y2(e){"@babel/helpers - typeof";return Y2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y2(e)}function qzt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hzt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RIe(n.key),n)}}function Vzt(e,t,r){return t&&Hzt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wzt(e,t,r){return t=TV(t),Gzt(e,OIe()?Reflect.construct(t,r||[],TV(e).constructor):t.apply(e,r))}function Gzt(e,t){if(t&&(Y2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kzt(e)}function Kzt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OIe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OIe=function(){return!!e})()}function TV(e){return TV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},TV(e)}function Yzt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hne(e,t)}function hne(e,t){return hne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},hne(e,t)}function fve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fve(Object(r),!0).forEach(function(n){kle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kle(e,t,r){return t=RIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RIe(e){var t=Xzt(e,"string");return Y2(t)=="symbol"?t:t+""}function Xzt(e,t){if(Y2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Y2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zzt(e,t){return tUt(e)||eUt(e,t)||Jzt(e,t)||Qzt()}function Qzt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8171In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jzt(e,t){if(e){if(typeof e=="string")return mve(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mve(e,t)}}function mve(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eUt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function tUt(e){if(Array.isArray(e))return e}function fne(){return fne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fne.apply(this,arguments)}var rUt=function(t,r){var n;return ce.isValidElement(t)?n=ce.cloneElement(t,r):fr(t)?n=t(r):n=ce.createElement("line",fne({},r,{className:"recharts-reference-line-line"})),n},nUt=function(t,r,n,a,s,o,l,c,u){var d=s.x,h=s.y,f=s.width,p=s.height;if(n){var y=u.y,m=t.y.apply(y,{position:o});if(pc(u,"discard")&&!t.y.isInRange(m))return null;var v=[{x:d+f,y:m},{x:d,y:m}];return c==="left"?v.reverse():v}if(r){var g=u.x,b=t.x.apply(g,{position:o});if(pc(u,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:h+p},{x:b,y:h}];return l==="top"?x.reverse():x}if(a){var _=u.segment,w=_.map(function(j){return t.apply(j,{position:o})});return pc(u,"discard")&&EBt(w,function(j){return!t.isInRange(j)})?null:w}return null};function aUt(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxisId,s=e.yAxisId,o=e.shape,l=e.className,c=e.alwaysShow,u=Fzt(),d=PIe(a),h=LIe(s),f=zzt();if(!u||!f)return null;yu(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=yle({x:d.scale,y:h.scale}),y=Ra(t),m=Ra(r),v=n&&n.length===2,g=nUt(p,y,m,v,f,e.position,d.orientation,h.orientation,e);if(!g)return null;var b=Zzt(g,2),x=b[0],_=x.x,w=x.y,j=b[1],E=j.x,C=j.y,N=pc(e,"hidden")?"url(#".concat(u,")"):void 0,A=pve(pve({clipPath:N},Or(e,!0)),{},{x1:_,y1:w,x2:E,y2:C});return ce.createElement(Za,{className:Mr("recharts-reference-line",l)},rUt(o,A),Ei.renderCallByParent(e,mzt({x1:_,y1:w,x2:E,y2:C})))}var _le=function(e){function t(){return qzt(this,t),Wzt(this,t,arguments)}return Yzt(t,e),Vzt(t,[{key:"render",value:function(){return ce.createElement(aUt,this.props)}}])}(ce.Component);kle(_le,"displayName","ReferenceLine");kle(_le,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function pne(){return pne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pne.apply(this,arguments)}function X2(e){"@babel/helpers - typeof";return X2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X2(e)}function gve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gve(Object(r),!0).forEach(function(n){pK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iUt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sUt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FIe(n.key),n)}}function oUt(e,t,r){return t&&sUt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lUt(e,t,r){return t=AV(t),cUt(e,DIe()?Reflect.construct(t,r||[],AV(e).constructor):t.apply(e,r))}function cUt(e,t){if(t&&(X2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uUt(e)}function uUt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DIe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DIe=function(){return!!e})()}function AV(e){return AV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},AV(e)}function dUt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mne(e,t)}function mne(e,t){return mne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},mne(e,t)}function pK(e,t,r){return t=FIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FIe(e){var t=hUt(e,"string");return X2(t)=="symbol"?t:t+""}function hUt(e,t){if(X2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(X2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fUt=function(t){var r=t.x,n=t.y,a=t.xAxis,s=t.yAxis,o=yle({x:a.scale,y:s.scale}),l=o.apply({x:r,y:n},{bandAware:!0});return pc(t,"discard")&&!o.isInRange(l)?null:l},mK=function(e){function t(){return iUt(this,t),lUt(this,t,arguments)}return dUt(t,e),oUt(t,[{key:"render",value:function(){var n=this.props,a=n.x,s=n.y,o=n.r,l=n.alwaysShow,c=n.clipPathId,u=Ra(a),d=Ra(s);if(yu(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var h=fUt(this.props);if(!h)return null;var f=h.x,p=h.y,y=this.props,m=y.shape,v=y.className,g=pc(this.props,"hidden")?"url(#".concat(c,")"):void 0,b=yve(yve({clipPath:g},Or(this.props,!0)),{},{cx:f,cy:p});return ce.createElement(Za,{className:Mr("recharts-reference-dot",v)},t.renderDot(m,b),Ei.renderCallByParent(this.props,{x:f-o,y:p-o,width:2*o,height:2*o}))}}])}(ce.Component);pK(mK,"displayName","ReferenceDot");pK(mK,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});pK(mK,"renderDot",function(e,t){var r;return ce.isValidElement(e)?r=ce.cloneElement(e,t):fr(e)?r=e(t):r=ce.createElement(mIe,pne({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function gne(){return gne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gne.apply(this,arguments)}function Z2(e){"@babel/helpers - typeof";return Z2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z2(e)}function vve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vve(Object(r),!0).forEach(function(n){gK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pUt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mUt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BIe(n.key),n)}}function gUt(e,t,r){return t&&mUt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yUt(e,t,r){return t=MV(t),vUt(e,$Ie()?Reflect.construct(t,r||[],MV(e).constructor):t.apply(e,r))}function vUt(e,t){if(t&&(Z2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xUt(e)}function xUt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $Ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($Ie=function(){return!!e})()}function MV(e){return MV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},MV(e)}function bUt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yne(e,t)}function yne(e,t){return yne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},yne(e,t)}function gK(e,t,r){return t=BIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BIe(e){var t=wUt(e,"string");return Z2(t)=="symbol"?t:t+""}function wUt(e,t){if(Z2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Z2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kUt=function(t,r,n,a,s){var o=s.x1,l=s.x2,c=s.y1,u=s.y2,d=s.xAxis,h=s.yAxis;if(!d||!h)return null;var f=yle({x:d.scale,y:h.scale}),p={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(c,{position:"start"}):f.y.rangeMin},y={x:r?f.x.apply(l,{position:"end"}):f.x.rangeMax,y:a?f.y.apply(u,{position:"end"}):f.y.rangeMax};return pc(s,"discard")&&(!f.isInRange(p)||!f.isInRange(y))?null:EIe(p,y)},yK=function(e){function t(){return pUt(this,t),yUt(this,t,arguments)}return bUt(t,e),gUt(t,[{key:"render",value:function(){var n=this.props,a=n.x1,s=n.x2,o=n.y1,l=n.y2,c=n.className,u=n.alwaysShow,d=n.clipPathId;yu(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Ra(a),f=Ra(s),p=Ra(o),y=Ra(l),m=this.props.shape;if(!h&&!f&&!p&&!y&&!m)return null;var v=kUt(h,f,p,y,this.props);if(!v&&!m)return null;var g=pc(this.props,"hidden")?"url(#".concat(d,")"):void 0;return ce.createElement(Za,{className:Mr("recharts-reference-area",c)},t.renderRect(m,xve(xve({clipPath:g},Or(this.props,!0)),v)),Ei.renderCallByParent(this.props,v))}}])}(ce.Component);gK(yK,"displayName","ReferenceArea");gK(yK,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});gK(yK,"renderRect",function(e,t){var r;return ce.isValidElement(e)?r=ce.cloneElement(e,t):fr(e)?r=e(t):r=ce.createElement(gle,gne({},t,{className:"recharts-reference-area-rect"})),r});function zIe(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],a=0;a<e.length;a+=t)n.push(e[a]);return n}function _Ut(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return yzt(n,r)}function SUt(e,t,r){var n=r==="width",a=e.x,s=e.y,o=e.width,l=e.height;return t===1?{start:n?a:s,end:n?a+o:s+l}:{start:n?a+o:s+l,end:n?a:s}}function IV(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var s=r();return e*(t-e*s/2-n)>=0&&e*(t+e*s/2-a)<=0}function jUt(e,t){return zIe(e,t+1)}function EUt(e,t,r,n,a){for(var s=(n||[]).slice(),o=t.start,l=t.end,c=0,u=1,d=o,h=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:zIe(n,u)};var m=c,v,g=function(){return v===void 0&&(v=r(y,m)),v},b=y.coordinate,x=c===0||IV(e,b,g,d,l);x||(c=0,d=o,u+=1),x&&(d=b+e*(g()/2+a),c+=u)},f;u<=s.length;)if(f=h(),f)return f.v;return[]}function v_(e){"@babel/helpers - typeof";return v_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v_(e)}function bve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bve(Object(r),!0).forEach(function(n){CUt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CUt(e,t,r){return t=NUt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NUt(e){var t=TUt(e,"string");return v_(t)=="symbol"?t:t+""}function TUt(e,t){if(v_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(v_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AUt(e,t,r,n,a){for(var s=(n||[]).slice(),o=s.length,l=t.start,c=t.end,u=function(f){var p=s[f],y,m=function(){return y===void 0&&(y=r(p,f)),y};if(f===o-1){var v=e*(p.coordinate+e*m()/2-c);s[f]=p=xi(xi({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else s[f]=p=xi(xi({},p),{},{tickCoord:p.coordinate});var g=IV(e,p.tickCoord,m,l,c);g&&(c=p.tickCoord-e*(m()/2+a),s[f]=xi(xi({},p),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return s}function MUt(e,t,r,n,a,s){var o=(n||[]).slice(),l=o.length,c=t.start,u=t.end;if(s){var d=n[l-1],h=r(d,l-1),f=e*(d.coordinate+e*h/2-u);o[l-1]=d=xi(xi({},d),{},{tickCoord:f>0?d.coordinate-f*e:d.coordinate});var p=IV(e,d.tickCoord,function(){return h},c,u);p&&(u=d.tickCoord-e*(h/2+a),o[l-1]=xi(xi({},d),{},{isShow:!0}))}for(var y=s?l-1:l,m=function(b){var x=o[b],_,w=function(){return _===void 0&&(_=r(x,b)),_};if(b===0){var j=e*(x.coordinate-e*w()/2-c);o[b]=x=xi(xi({},x),{},{tickCoord:j<0?x.coordinate-j*e:x.coordinate})}else o[b]=x=xi(xi({},x),{},{tickCoord:x.coordinate});var E=IV(e,x.tickCoord,w,c,u);E&&(c=x.tickCoord+e*(w()/2+a),o[b]=xi(xi({},x),{},{isShow:!0}))},v=0;v<y;v++)m(v);return o}function Sle(e,t,r){var n=e.tick,a=e.ticks,s=e.viewBox,o=e.minTickGap,l=e.orientation,c=e.interval,u=e.tickFormatter,d=e.unit,h=e.angle;if(!a||!a.length||!n)return[];if(ot(c)||th.isSsr)return jUt(a,typeof c=="number"&&ot(c)?c:0);var f=[],p=l==="top"||l==="bottom"?"width":"height",y=d&&p==="width"?qw(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(x,_){var w=fr(u)?u(x.value,_):x.value;return p==="width"?_Ut(qw(w,{fontSize:t,letterSpacing:r}),y,h):qw(w,{fontSize:t,letterSpacing:r})[p]},v=a.length>=2?ml(a[1].coordinate-a[0].coordinate):1,g=SUt(s,v,p);return c==="equidistantPreserveStart"?EUt(v,g,m,a,o):(c==="preserveStart"||c==="preserveStartEnd"?f=MUt(v,g,m,a,o,c==="preserveStartEnd"):f=AUt(v,g,m,a,o),f.filter(function(b){return b.isShow}))}var IUt=["viewBox"],PUt=["viewBox"],LUt=["ticks"];function Q2(e){"@babel/helpers - typeof";return Q2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q2(e)}function sy(){return sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sy.apply(this,arguments)}function wve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wve(Object(r),!0).forEach(function(n){jle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zQ(e,t){if(e==null)return{};var r=OUt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OUt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function RUt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qIe(n.key),n)}}function DUt(e,t,r){return t&&kve(e.prototype,t),r&&kve(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FUt(e,t,r){return t=PV(t),$Ut(e,UIe()?Reflect.construct(t,r||[],PV(e).constructor):t.apply(e,r))}function $Ut(e,t){if(t&&(Q2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BUt(e)}function BUt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UIe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UIe=function(){return!!e})()}function PV(e){return PV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},PV(e)}function zUt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vne(e,t)}function vne(e,t){return vne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},vne(e,t)}function jle(e,t,r){return t=qIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qIe(e){var t=UUt(e,"string");return Q2(t)=="symbol"?t:t+""}function UUt(e,t){if(Q2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Q2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yv=function(e){function t(r){var n;return RUt(this,t),n=FUt(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return zUt(t,e),DUt(t,[{key:"shouldComponentUpdate",value:function(n,a){var s=n.viewBox,o=zQ(n,IUt),l=this.props,c=l.viewBox,u=zQ(l,PUt);return!qy(s,c)||!qy(o,u)||!qy(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,s=a.x,o=a.y,l=a.width,c=a.height,u=a.orientation,d=a.tickSize,h=a.mirror,f=a.tickMargin,p,y,m,v,g,b,x=h?-1:1,_=n.tickSize||d,w=ot(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=y=n.coordinate,v=o+ +!h*c,m=v-x*_,b=m-x*f,g=w;break;case"left":m=v=n.coordinate,y=s+ +!h*l,p=y-x*_,g=p-x*f,b=w;break;case"right":m=v=n.coordinate,y=s+ +h*l,p=y+x*_,g=p+x*f,b=w;break;default:p=y=n.coordinate,v=o+ +h*c,m=v+x*_,b=m+x*f,g=w;break}return{line:{x1:p,y1:m,x2:y,y2:v},tick:{x:g,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,s=n.mirror,o;switch(a){case"left":o=s?"start":"end";break;case"right":o=s?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,s=n.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=s?"start":"end";break;default:o=s?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,s=n.y,o=n.width,l=n.height,c=n.orientation,u=n.mirror,d=n.axisLine,h=Ca(Ca(Ca({},Or(this.props,!1)),Or(d,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var f=+(c==="top"&&!u||c==="bottom"&&u);h=Ca(Ca({},h),{},{x1:a,y1:s+f*l,x2:a+o,y2:s+f*l})}else{var p=+(c==="left"&&!u||c==="right"&&u);h=Ca(Ca({},h),{},{x1:a+p*o,y1:s,x2:a+p*o,y2:s+l})}return ce.createElement("line",sy({},h,{className:Mr("recharts-cartesian-axis-line",bo(d,"className"))}))}},{key:"renderTicks",value:function(n,a,s){var o=this,l=this.props,c=l.tickLine,u=l.stroke,d=l.tick,h=l.tickFormatter,f=l.unit,p=Sle(Ca(Ca({},this.props),{},{ticks:n}),a,s),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),v=Or(this.props,!1),g=Or(d,!1),b=Ca(Ca({},v),{},{fill:"none"},Or(c,!1)),x=p.map(function(_,w){var j=o.getTickLineCoord(_),E=j.line,C=j.tick,N=Ca(Ca(Ca(Ca({textAnchor:y,verticalAnchor:m},v),{},{stroke:"none",fill:u},g),C),{},{index:w,payload:_,visibleTicksCount:p.length,tickFormatter:h});return ce.createElement(Za,sy({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},zH(o.props,_,w)),c&&ce.createElement("line",sy({},b,E,{className:Mr("recharts-cartesian-axis-tick-line",bo(c,"className"))})),d&&t.renderTickItem(d,N,"".concat(fr(h)?h(_.value,w):_.value).concat(f||"")))});return ce.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,a=this.props,s=a.axisLine,o=a.width,l=a.height,c=a.ticksGenerator,u=a.className,d=a.hide;if(d)return null;var h=this.props,f=h.ticks,p=zQ(h,LUt),y=f;return fr(c)&&(y=f&&f.length>0?c(this.props):c(p)),o<=0||l<=0||!y||!y.length?null:ce.createElement(Za,{className:Mr("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},s&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ei.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,s){var o,l=Mr(a.className,"recharts-cartesian-axis-tick-value");return ce.isValidElement(n)?o=ce.cloneElement(n,Ca(Ca({},a),{},{className:l})):fr(n)?o=n(Ca(Ca({},a),{},{className:l})):o=ce.createElement(tV,sy({},a,{className:"recharts-cartesian-axis-tick-value"}),s),o}}])}(k.Component);jle(Yv,"displayName","CartesianAxis");jle(Yv,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var qUt=["x1","y1","x2","y2","key"],HUt=["offset"];function D0(e){"@babel/helpers - typeof";return D0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D0(e)}function _ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ci(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_ve(Object(r),!0).forEach(function(n){VUt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_ve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VUt(e,t,r){return t=WUt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WUt(e){var t=GUt(e,"string");return D0(t)=="symbol"?t:t+""}function GUt(e,t){if(D0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(D0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U1(){return U1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U1.apply(this,arguments)}function Sve(e,t){if(e==null)return{};var r=KUt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KUt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var YUt=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,a=t.x,s=t.y,o=t.width,l=t.height,c=t.ry;return ce.createElement("rect",{x:a,y:s,ry:c,width:o,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function HIe(e,t){var r;if(ce.isValidElement(e))r=ce.cloneElement(e,t);else if(fr(e))r=e(t);else{var n=t.x1,a=t.y1,s=t.x2,o=t.y2,l=t.key,c=Sve(t,qUt),u=Or(c,!1);u.offset;var d=Sve(u,HUt);r=ce.createElement("line",U1({},d,{x1:n,y1:a,x2:s,y2:o,fill:"none",key:l}))}return r}function XUt(e){var t=e.x,r=e.width,n=e.horizontal,a=n===void 0?!0:n,s=e.horizontalPoints;if(!a||!s||!s.length)return null;var o=s.map(function(l,c){var u=Ci(Ci({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(c),index:c});return HIe(a,u)});return ce.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function ZUt(e){var t=e.y,r=e.height,n=e.vertical,a=n===void 0?!0:n,s=e.verticalPoints;if(!a||!s||!s.length)return null;var o=s.map(function(l,c){var u=Ci(Ci({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(c),index:c});return HIe(a,u)});return ce.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function QUt(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,a=e.y,s=e.width,o=e.height,l=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var d=l.map(function(f){return Math.round(f+a-a)}).sort(function(f,p){return f-p});a!==d[0]&&d.unshift(0);var h=d.map(function(f,p){var y=!d[p+1],m=y?a+o-f:d[p+1]-f;if(m<=0)return null;var v=p%t.length;return ce.createElement("rect",{key:"react-".concat(p),y:f,x:n,height:m,width:s,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return ce.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function JUt(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,a=e.fillOpacity,s=e.x,o=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var d=u.map(function(f){return Math.round(f+s-s)}).sort(function(f,p){return f-p});s!==d[0]&&d.unshift(0);var h=d.map(function(f,p){var y=!d[p+1],m=y?s+l-f:d[p+1]-f;if(m<=0)return null;var v=p%n.length;return ce.createElement("rect",{key:"react-".concat(p),x:f,y:o,width:m,height:c,stroke:"none",fill:n[v],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return ce.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var eqt=function(t,r){var n=t.xAxis,a=t.width,s=t.height,o=t.offset;return rIe(Sle(Ci(Ci(Ci({},Yv.defaultProps),n),{},{ticks:cu(n,!0),viewBox:{x:0,y:0,width:a,height:s}})),o.left,o.left+o.width,r)},tqt=function(t,r){var n=t.yAxis,a=t.width,s=t.height,o=t.offset;return rIe(Sle(Ci(Ci(Ci({},Yv.defaultProps),n),{},{ticks:cu(n,!0),viewBox:{x:0,y:0,width:a,height:s}})),o.top,o.top+o.height,r)},Lg={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function VIe(e){var t,r,n,a,s,o,l=ble(),c=wle(),u=Uzt(),d=Ci(Ci({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Lg.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Lg.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Lg.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Lg.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:Lg.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Lg.verticalFill,x:ot(e.x)?e.x:u.left,y:ot(e.y)?e.y:u.top,width:ot(e.width)?e.width:u.width,height:ot(e.height)?e.height:u.height}),h=d.x,f=d.y,p=d.width,y=d.height,m=d.syncWithTicks,v=d.horizontalValues,g=d.verticalValues,b=$zt(),x=Bzt();if(!ot(p)||p<=0||!ot(y)||y<=0||!ot(h)||h!==+h||!ot(f)||f!==+f)return null;var _=d.verticalCoordinatesGenerator||eqt,w=d.horizontalCoordinatesGenerator||tqt,j=d.horizontalPoints,E=d.verticalPoints;if((!j||!j.length)&&fr(w)){var C=v&&v.length,N=w({yAxis:x?Ci(Ci({},x),{},{ticks:C?v:x.ticks}):void 0,width:l,height:c,offset:u},C?!0:m);yu(Array.isArray(N),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(D0(N),"]")),Array.isArray(N)&&(j=N)}if((!E||!E.length)&&fr(_)){var A=g&&g.length,$=_({xAxis:b?Ci(Ci({},b),{},{ticks:A?g:b.ticks}):void 0,width:l,height:c,offset:u},A?!0:m);yu(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(D0($),"]")),Array.isArray($)&&(E=$)}return ce.createElement("g",{className:"recharts-cartesian-grid"},ce.createElement(YUt,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),ce.createElement(XUt,U1({},d,{offset:u,horizontalPoints:j,xAxis:b,yAxis:x})),ce.createElement(ZUt,U1({},d,{offset:u,verticalPoints:E,xAxis:b,yAxis:x})),ce.createElement(QUt,U1({},d,{horizontalPoints:j})),ce.createElement(JUt,U1({},d,{verticalPoints:E})))}VIe.displayName="CartesianGrid";function J2(e){"@babel/helpers - typeof";return J2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J2(e)}function rqt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nqt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KIe(n.key),n)}}function aqt(e,t,r){return t&&nqt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iqt(e,t,r){return t=LV(t),sqt(e,WIe()?Reflect.construct(t,r||[],LV(e).constructor):t.apply(e,r))}function sqt(e,t){if(t&&(J2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oqt(e)}function oqt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WIe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WIe=function(){return!!e})()}function LV(e){return LV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},LV(e)}function lqt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xne(e,t)}function xne(e,t){return xne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},xne(e,t)}function GIe(e,t,r){return t=KIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KIe(e){var t=cqt(e,"string");return J2(t)=="symbol"?t:t+""}function cqt(e,t){if(J2(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(J2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bne(){return bne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bne.apply(this,arguments)}function uqt(e){var t=e.xAxisId,r=ble(),n=wle(),a=PIe(t);return a==null?null:k.createElement(Yv,bne({},a,{className:Mr("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return cu(o,!0)}}))}var vK=function(e){function t(){return rqt(this,t),iqt(this,t,arguments)}return lqt(t,e),aqt(t,[{key:"render",value:function(){return k.createElement(uqt,this.props)}}])}(k.Component);GIe(vK,"displayName","XAxis");GIe(vK,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function ev(e){"@babel/helpers - typeof";return ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ev(e)}function dqt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hqt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZIe(n.key),n)}}function fqt(e,t,r){return t&&hqt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pqt(e,t,r){return t=OV(t),mqt(e,YIe()?Reflect.construct(t,r||[],OV(e).constructor):t.apply(e,r))}function mqt(e,t){if(t&&(ev(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gqt(e)}function gqt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YIe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YIe=function(){return!!e})()}function OV(e){return OV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},OV(e)}function yqt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wne(e,t)}function wne(e,t){return wne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},wne(e,t)}function XIe(e,t,r){return t=ZIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZIe(e){var t=vqt(e,"string");return ev(t)=="symbol"?t:t+""}function vqt(e,t){if(ev(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ev(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kne(){return kne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kne.apply(this,arguments)}var xqt=function(t){var r=t.yAxisId,n=ble(),a=wle(),s=LIe(r);return s==null?null:k.createElement(Yv,kne({},s,{className:Mr("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(l){return cu(l,!0)}}))},xK=function(e){function t(){return dqt(this,t),pqt(this,t,arguments)}return yqt(t,e),fqt(t,[{key:"render",value:function(){return k.createElement(xqt,this.props)}}])}(k.Component);XIe(xK,"displayName","YAxis");XIe(xK,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function jve(e){return _qt(e)||kqt(e)||wqt(e)||bqt()}function bqt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8172In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wqt(e,t){if(e){if(typeof e=="string")return _ne(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _ne(e,t)}}function kqt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _qt(e){if(Array.isArray(e))return _ne(e)}function _ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Sne=function(t,r,n,a,s){var o=kl(t,_le),l=kl(t,mK),c=[].concat(jve(o),jve(l)),u=kl(t,yK),d="".concat(a,"Id"),h=a[0],f=r;if(c.length&&(f=c.reduce(function(m,v){if(v.props[d]===n&&pc(v.props,"extendDomain")&&ot(v.props[h])){var g=v.props[h];return[Math.min(m[0],g),Math.max(m[1],g)]}return m},f)),u.length){var p="".concat(h,"1"),y="".concat(h,"2");f=u.reduce(function(m,v){if(v.props[d]===n&&pc(v.props,"extendDomain")&&ot(v.props[p])&&ot(v.props[y])){var g=v.props[p],b=v.props[y];return[Math.min(m[0],g,b),Math.max(m[1],g,b)]}return m},f)}return s&&s.length&&(f=s.reduce(function(m,v){return ot(v)?[Math.min(m[0],v),Math.max(m[1],v)]:m},f)),f},QIe={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function s(c,u,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new a(d,h||c,f),y=r?r+u:u;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],p]:c._events[y].push(p):(c._events[y]=p,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)t.call(d,h)&&u.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=r?r+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,p=h.length,y=new Array(p);f<p;f++)y[f]=h[f].fn;return y},l.prototype.listenerCount=function(u){var d=r?r+u:u,h=this._events[d];return h?h.fn?1:h.length:0},l.prototype.emit=function(u,d,h,f,p,y){var m=r?r+u:u;if(!this._events[m])return!1;var v=this._events[m],g=arguments.length,b,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,h),!0;case 4:return v.fn.call(v.context,d,h,f),!0;case 5:return v.fn.call(v.context,d,h,f,p),!0;case 6:return v.fn.call(v.context,d,h,f,p,y),!0}for(x=1,b=new Array(g-1);x<g;x++)b[x-1]=arguments[x];v.fn.apply(v.context,b)}else{var _=v.length,w;for(x=0;x<_;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),g){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,d);break;case 3:v[x].fn.call(v[x].context,d,h);break;case 4:v[x].fn.call(v[x].context,d,h,f);break;default:if(!b)for(w=1,b=new Array(g-1);w<g;w++)b[w-1]=arguments[w];v[x].fn.apply(v[x].context,b)}}return!0},l.prototype.on=function(u,d,h){return s(this,u,d,h,!1)},l.prototype.once=function(u,d,h){return s(this,u,d,h,!0)},l.prototype.removeListener=function(u,d,h,f){var p=r?r+u:u;if(!this._events[p])return this;if(!d)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===d&&(!f||y.once)&&(!h||y.context===h)&&o(this,p);else{for(var m=0,v=[],g=y.length;m<g;m++)(y[m].fn!==d||f&&!y[m].once||h&&y[m].context!==h)&&v.push(y[m]);v.length?this._events[p]=v.length===1?v[0]:v:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=r?r+u:u,this._events[d]&&o(this,d)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(QIe);var Sqt=QIe.exports;const jqt=jr(Sqt);var UQ=new jqt,qQ="recharts.syncMouseEvents";function x_(e){"@babel/helpers - typeof";return x_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x_(e)}function Eqt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cqt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JIe(n.key),n)}}function Nqt(e,t,r){return t&&Cqt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HQ(e,t,r){return t=JIe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JIe(e){var t=Tqt(e,"string");return x_(t)=="symbol"?t:t+""}function Tqt(e,t){if(x_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(x_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Aqt=function(){function e(){Eqt(this,e),HQ(this,"activeIndex",0),HQ(this,"coordinateList",[]),HQ(this,"layout","horizontal")}return Nqt(e,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,s=a===void 0?null:a,o=r.container,l=o===void 0?null:o,c=r.layout,u=c===void 0?null:c,d=r.offset,h=d===void 0?null:d,f=r.mouseHandlerCallback,p=f===void 0?null:f;this.coordinateList=(n=s??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),s=a.x,o=a.y,l=a.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,d=((n=window)===null||n===void 0?void 0:n.scrollY)||0,h=s+c+u,f=o+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:h,pageY:f})}}}])}();function Mqt(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],a=e==null?void 0:e[1];if(n&&a&&ot(n)&&ot(a))return!0}return!1}function Iqt(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function ePe(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,s=e.endAngle,o=ui(t,r,n,a),l=ui(t,r,n,s);return{points:[o,l],cx:t,cy:r,radius:n,startAngle:a,endAngle:s}}function Pqt(e,t,r){var n,a,s,o;if(e==="horizontal")n=t.x,s=n,a=r.top,o=r.top+r.height;else if(e==="vertical")a=t.y,o=a,n=r.left,s=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,u=t.innerRadius,d=t.outerRadius,h=t.angle,f=ui(l,c,u,h),p=ui(l,c,d,h);n=f.x,a=f.y,s=p.x,o=p.y}else return ePe(t);return[{x:n,y:a},{x:s,y:o}]}function b_(e){"@babel/helpers - typeof";return b_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b_(e)}function Eve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eve(Object(r),!0).forEach(function(n){Lqt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lqt(e,t,r){return t=Oqt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oqt(e){var t=Rqt(e,"string");return b_(t)=="symbol"?t:t+""}function Rqt(e,t){if(b_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(b_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dqt(e){var t,r,n=e.element,a=e.tooltipEventType,s=e.isActive,o=e.activeCoordinate,l=e.activePayload,c=e.offset,u=e.activeTooltipIndex,d=e.tooltipAxisBandSize,h=e.layout,f=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!s||!o||f!=="ScatterChart"&&a!=="axis")return null;var y,m=_2e;if(f==="ScatterChart")y=o,m=XFt;else if(f==="BarChart")y=Iqt(h,o,c,d),m=gle;else if(h==="radial"){var v=ePe(o),g=v.cx,b=v.cy,x=v.radius,_=v.startAngle,w=v.endAngle;y={cx:g,cy:b,startAngle:_,endAngle:w,innerRadius:x,outerRadius:x},m=oIe}else y={points:Pqt(h,o,c)},m=_2e;var j=pS(pS(pS(pS({stroke:"#ccc",pointerEvents:"none"},c),y),Or(p,!1)),{},{payload:l,payloadIndex:u,className:Mr("recharts-tooltip-cursor",p.className)});return k.isValidElement(p)?k.cloneElement(p,j):k.createElement(m,j)}var Fqt=["item"],$qt=["children","className","width","height","style","compact","title","desc"];function tv(e){"@babel/helpers - typeof";return tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tv(e)}function oy(){return oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oy.apply(this,arguments)}function Cve(e,t){return Uqt(e)||zqt(e,t)||rPe(e,t)||Bqt()}function Bqt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8173In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zqt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,o,l=[],c=!0,u=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Uqt(e){if(Array.isArray(e))return e}function Nve(e,t){if(e==null)return{};var r=qqt(e,t),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qqt(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Hqt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vqt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nPe(n.key),n)}}function Wqt(e,t,r){return t&&Vqt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gqt(e,t,r){return t=RV(t),Kqt(e,tPe()?Reflect.construct(t,r||[],RV(e).constructor):t.apply(e,r))}function Kqt(e,t){if(t&&(tv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yqt(e)}function Yqt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tPe=function(){return!!e})()}function RV(e){return RV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},RV(e)}function Xqt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jne(e,t)}function jne(e,t){return jne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},jne(e,t)}function rv(e){return Jqt(e)||Qqt(e)||rPe(e)||Zqt()}function Zqt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8174In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rPe(e,t){if(e){if(typeof e=="string")return Ene(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ene(e,t)}}function Qqt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jqt(e){if(Array.isArray(e))return Ene(e)}function Ene(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tve(Object(r),!0).forEach(function(n){Ht(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tve(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ht(e,t,r){return t=nPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nPe(e){var t=eHt(e,"string");return tv(t)=="symbol"?t:t+""}function eHt(e,t){if(tv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tHt={xAxis:["bottom","top"],yAxis:["left","right"]},rHt={width:"100%",height:"100%"},aPe={x:0,y:0};function mS(e){return e}var nHt=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},aHt=function(t,r,n,a){var s=r.find(function(d){return d&&d.index===n});if(s){if(t==="horizontal")return{x:s.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:s.coordinate};if(t==="centric"){var o=s.coordinate,l=a.radius;return Le(Le(Le({},a),ui(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var c=s.coordinate,u=a.angle;return Le(Le(Le({},a),ui(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}return aPe},bK=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,s=r.dataEndIndex,o=(n??[]).reduce(function(l,c){var u=c.props.data;return u&&u.length?[].concat(rv(l),rv(u)):l},[]);return o.length>0?o:t&&t.length&&ot(a)&&ot(s)?t.slice(a,s+1):[]};function iPe(e){return e==="number"?[0,"auto"]:void 0}var Cne=function(t,r,n,a){var s=t.graphicalItems,o=t.tooltipAxis,l=bK(r,t);return n<0||!s||!s.length||n>=l.length?null:s.reduce(function(c,u){var d,h=(d=u.props.data)!==null&&d!==void 0?d:r;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var f;if(o.dataKey&&!o.allowDuplicatedCategory){var p=h===void 0?l:h;f=sre(p,o.dataKey,a)}else f=h&&h[n]||l[n];return f?[].concat(rv(c),[aIe(u,f)]):c},[])},Ave=function(t,r,n,a){var s=a||{x:t.chartX,y:t.chartY},o=nHt(s,n),l=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,d=DOt(o,l,u,c);if(d>=0&&u){var h=u[d]&&u[d].value,f=Cne(t,r,d,h),p=aHt(n,l,d,s);return{activeTooltipIndex:d,activeLabel:h,activePayload:f,activeCoordinate:p}}return null},iHt=function(t,r){var n=r.axes,a=r.graphicalItems,s=r.axisType,o=r.axisIdKey,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,h=t.children,f=t.stackOffset,p=tIe(d,s);return n.reduce(function(y,m){var v,g=m.type.defaultProps!==void 0?Le(Le({},m.type.defaultProps),m.props):m.props,b=g.type,x=g.dataKey,_=g.allowDataOverflow,w=g.allowDuplicatedCategory,j=g.scale,E=g.ticks,C=g.includeHidden,N=g[o];if(y[N])return y;var A=bK(t.data,{graphicalItems:a.filter(function(P){var R,H=o in P.props?P.props[o]:(R=P.type.defaultProps)===null||R===void 0?void 0:R[o];return H===N}),dataStartIndex:c,dataEndIndex:u}),$=A.length,T,F,M;Mqt(g.domain,_,b)&&(T=Gre(g.domain,null,_),p&&(b==="number"||j!=="auto")&&(M=Vw(A,x,"category")));var z=iPe(b);if(!T||T.length===0){var Y,W=(Y=g.domain)!==null&&Y!==void 0?Y:z;if(x){if(T=Vw(A,x,b),b==="category"&&p){var ee=Sjt(T);w&&ee?(F=T,T=SV(0,$)):w||(T=u2e(W,T,m).reduce(function(P,R){return P.indexOf(R)>=0?P:[].concat(rv(P),[R])},[]))}else if(b==="category")w?T=T.filter(function(P){return P!==""&&!Rr(P)}):T=u2e(W,T,m).reduce(function(P,R){return P.indexOf(R)>=0||R===""||Rr(R)?P:[].concat(rv(P),[R])},[]);else if(b==="number"){var Z=UOt(A,a.filter(function(P){var R,H,re=o in P.props?P.props[o]:(R=P.type.defaultProps)===null||R===void 0?void 0:R[o],ae="hide"in P.props?P.props.hide:(H=P.type.defaultProps)===null||H===void 0?void 0:H.hide;return re===N&&(C||!ae)}),x,s,d);Z&&(T=Z)}p&&(b==="number"||j!=="auto")&&(M=Vw(A,x,"category"))}else p?T=SV(0,$):l&&l[N]&&l[N].hasStack&&b==="number"?T=f==="expand"?[0,1]:nIe(l[N].stackGroups,c,u):T=eIe(A,a.filter(function(P){var R=o in P.props?P.props[o]:P.type.defaultProps[o],H="hide"in P.props?P.props.hide:P.type.defaultProps.hide;return R===N&&(C||!H)}),b,d,!0);if(b==="number")T=Sne(h,T,N,s,E),W&&(T=Gre(W,T,_));else if(b==="category"&&W){var V=W,ne=T.every(function(P){return V.indexOf(P)>=0});ne&&(T=V)}}return Le(Le({},y),{},Ht({},N,Le(Le({},g),{},{axisType:s,domain:T,categoricalDomain:M,duplicateDomain:F,originalDomain:(v=g.domain)!==null&&v!==void 0?v:z,isCategorical:p,layout:d})))},{})},sHt=function(t,r){var n=r.graphicalItems,a=r.Axis,s=r.axisType,o=r.axisIdKey,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,h=t.children,f=bK(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),p=f.length,y=tIe(d,s),m=-1;return n.reduce(function(v,g){var b=g.type.defaultProps!==void 0?Le(Le({},g.type.defaultProps),g.props):g.props,x=b[o],_=iPe("number");if(!v[x]){m++;var w;return y?w=SV(0,p):l&&l[x]&&l[x].hasStack?(w=nIe(l[x].stackGroups,c,u),w=Sne(h,w,x,s)):(w=Gre(_,eIe(f,n.filter(function(j){var E,C,N=o in j.props?j.props[o]:(E=j.type.defaultProps)===null||E===void 0?void 0:E[o],A="hide"in j.props?j.props.hide:(C=j.type.defaultProps)===null||C===void 0?void 0:C.hide;return N===x&&!A}),"number",d),a.defaultProps.allowDataOverflow),w=Sne(h,w,x,s)),Le(Le({},v),{},Ht({},x,Le(Le({axisType:s},a.defaultProps),{},{hide:!0,orientation:bo(tHt,"".concat(s,".").concat(m%2),null),domain:w,originalDomain:_,isCategorical:y,layout:d})))}return v},{})},oHt=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,s=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=t.children,h="".concat(a,"Id"),f=kl(d,s),p={};return f&&f.length?p=iHt(t,{axes:f,graphicalItems:o,axisType:a,axisIdKey:h,stackGroups:l,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(p=sHt(t,{Axis:s,graphicalItems:o,axisType:a,axisIdKey:h,stackGroups:l,dataStartIndex:c,dataEndIndex:u})),p},lHt=function(t){var r=yd(t),n=cu(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:zoe(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:mV(r,n)}},Mve=function(t){var r=t.children,n=t.defaultShowTooltip,a=Rs(r,G2),s=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(s=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},cHt=function(t){return!t||!t.length?!1:t.some(function(r){var n=gu(r&&r.type);return n&&n.indexOf("Bar")>=0})},Ive=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},uHt=function(t,r){var n=t.props,a=t.graphicalItems,s=t.xAxisMap,o=s===void 0?{}:s,l=t.yAxisMap,c=l===void 0?{}:l,u=n.width,d=n.height,h=n.children,f=n.margin||{},p=Rs(h,G2),y=Rs(h,Hy),m=Object.keys(c).reduce(function(w,j){var E=c[j],C=E.orientation;return!E.mirror&&!E.hide?Le(Le({},w),{},Ht({},C,w[C]+E.width)):w},{left:f.left||0,right:f.right||0}),v=Object.keys(o).reduce(function(w,j){var E=o[j],C=E.orientation;return!E.mirror&&!E.hide?Le(Le({},w),{},Ht({},C,bo(w,"".concat(C))+E.height)):w},{top:f.top||0,bottom:f.bottom||0}),g=Le(Le({},v),m),b=g.bottom;p&&(g.bottom+=p.props.height||G2.defaultProps.height),y&&r&&(g=BOt(g,a,n,r));var x=u-g.left-g.right,_=d-g.top-g.bottom;return Le(Le({brushBottom:b},g),{},{width:Math.max(x,0),height:Math.max(_,0)})},dHt=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},hHt=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,s=a===void 0?"axis":a,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,f=function(g,b){var x=b.graphicalItems,_=b.stackGroups,w=b.offset,j=b.updateId,E=b.dataStartIndex,C=b.dataEndIndex,N=g.barSize,A=g.layout,$=g.barGap,T=g.barCategoryGap,F=g.maxBarSize,M=Ive(A),z=M.numericAxisName,Y=M.cateAxisName,W=cHt(x),ee=[];return x.forEach(function(Z,V){var ne=bK(g.data,{graphicalItems:[Z],dataStartIndex:E,dataEndIndex:C}),P=Z.type.defaultProps!==void 0?Le(Le({},Z.type.defaultProps),Z.props):Z.props,R=P.dataKey,H=P.maxBarSize,re=P["".concat(z,"Id")],ae=P["".concat(Y,"Id")],D={},U=c.reduce(function(ie,J){var fe=b["".concat(J.axisType,"Map")],ve=P["".concat(J.axisType,"Id")];fe&&fe[ve]||J.axisType==="zAxis"||R0();var ge=fe[ve];return Le(Le({},ie),{},Ht(Ht({},J.axisType,ge),"".concat(J.axisType,"Ticks"),cu(ge)))},D),se=U[Y],te=U["".concat(Y,"Ticks")],Q=_&&_[re]&&_[re].hasStack&&eRt(Z,_[re].stackGroups),K=gu(Z.type).indexOf("Bar")>=0,ue=mV(se,te),B=[],pe=W&&FOt({barSize:N,stackGroups:_,totalSize:dHt(U,Y)});if(K){var G,I,L=Rr(H)?F:H,q=(G=(I=mV(se,te,!0))!==null&&I!==void 0?I:L)!==null&&G!==void 0?G:0;B=$Ot({barGap:$,barCategoryGap:T,bandSize:q!==ue?q:ue,sizeList:pe[ae],maxBarSize:L}),q!==ue&&(B=B.map(function(ie){return Le(Le({},ie),{},{position:Le(Le({},ie.position),{},{offset:ie.position.offset-q/2})})}))}var X=Z&&Z.type&&Z.type.getComposedData;X&&ee.push({props:Le(Le({},X(Le(Le({},U),{},{displayedData:ne,props:g,dataKey:R,item:Z,bandSize:ue,barPosition:B,offset:w,stackedData:Q,layout:A,dataStartIndex:E,dataEndIndex:C}))),{},Ht(Ht(Ht({key:Z.key||"item-".concat(V)},z,U[z]),Y,U[Y]),"animationId",j)),childIndex:Rjt(Z,g.children),item:Z})}),ee},p=function(g,b){var x=g.props,_=g.dataStartIndex,w=g.dataEndIndex,j=g.updateId;if(!age({props:x}))return null;var E=x.children,C=x.layout,N=x.stackOffset,A=x.data,$=x.reverseStackOrder,T=Ive(C),F=T.numericAxisName,M=T.cateAxisName,z=kl(E,n),Y=ZOt(A,z,"".concat(F,"Id"),"".concat(M,"Id"),N,$),W=c.reduce(function(P,R){var H="".concat(R.axisType,"Map");return Le(Le({},P),{},Ht({},H,oHt(x,Le(Le({},R),{},{graphicalItems:z,stackGroups:R.axisType===F&&Y,dataStartIndex:_,dataEndIndex:w}))))},{}),ee=uHt(Le(Le({},W),{},{props:x,graphicalItems:z}),b==null?void 0:b.legendBBox);Object.keys(W).forEach(function(P){W[P]=d(x,W[P],ee,P.replace("Map",""),r)});var Z=W["".concat(M,"Map")],V=lHt(Z),ne=f(x,Le(Le({},W),{},{dataStartIndex:_,dataEndIndex:w,updateId:j,graphicalItems:z,stackGroups:Y,offset:ee}));return Le(Le({formattedGraphicalItems:ne,graphicalItems:z,offset:ee,stackGroups:Y},V),W)},y=function(v){function g(b){var x,_,w;return Hqt(this,g),w=Gqt(this,g,[b]),Ht(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ht(w,"accessibilityManager",new Aqt),Ht(w,"handleLegendBBoxUpdate",function(j){if(j){var E=w.state,C=E.dataStartIndex,N=E.dataEndIndex,A=E.updateId;w.setState(Le({legendBBox:j},p({props:w.props,dataStartIndex:C,dataEndIndex:N,updateId:A},Le(Le({},w.state),{},{legendBBox:j}))))}}),Ht(w,"handleReceiveSyncEvent",function(j,E,C){if(w.props.syncId===j){if(C===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(E)}}),Ht(w,"handleBrushChange",function(j){var E=j.startIndex,C=j.endIndex;if(E!==w.state.dataStartIndex||C!==w.state.dataEndIndex){var N=w.state.updateId;w.setState(function(){return Le({dataStartIndex:E,dataEndIndex:C},p({props:w.props,dataStartIndex:E,dataEndIndex:C,updateId:N},w.state))}),w.triggerSyncEvent({dataStartIndex:E,dataEndIndex:C})}}),Ht(w,"handleMouseEnter",function(j){var E=w.getMouseInfo(j);if(E){var C=Le(Le({},E),{},{isTooltipActive:!0});w.setState(C),w.triggerSyncEvent(C);var N=w.props.onMouseEnter;fr(N)&&N(C,j)}}),Ht(w,"triggeredAfterMouseMove",function(j){var E=w.getMouseInfo(j),C=E?Le(Le({},E),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(C),w.triggerSyncEvent(C);var N=w.props.onMouseMove;fr(N)&&N(C,j)}),Ht(w,"handleItemMouseEnter",function(j){w.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),Ht(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),Ht(w,"handleMouseMove",function(j){j.persist(),w.throttleTriggeredAfterMouseMove(j)}),Ht(w,"handleMouseLeave",function(j){w.throttleTriggeredAfterMouseMove.cancel();var E={isTooltipActive:!1};w.setState(E),w.triggerSyncEvent(E);var C=w.props.onMouseLeave;fr(C)&&C(E,j)}),Ht(w,"handleOuterEvent",function(j){var E=Ojt(j),C=bo(w.props,"".concat(E));if(E&&fr(C)){var N,A;/.*touch.*/i.test(E)?A=w.getMouseInfo(j.changedTouches[0]):A=w.getMouseInfo(j),C((N=A)!==null&&N!==void 0?N:{},j)}}),Ht(w,"handleClick",function(j){var E=w.getMouseInfo(j);if(E){var C=Le(Le({},E),{},{isTooltipActive:!0});w.setState(C),w.triggerSyncEvent(C);var N=w.props.onClick;fr(N)&&N(C,j)}}),Ht(w,"handleMouseDown",function(j){var E=w.props.onMouseDown;if(fr(E)){var C=w.getMouseInfo(j);E(C,j)}}),Ht(w,"handleMouseUp",function(j){var E=w.props.onMouseUp;if(fr(E)){var C=w.getMouseInfo(j);E(C,j)}}),Ht(w,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),Ht(w,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&w.handleMouseDown(j.changedTouches[0])}),Ht(w,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&w.handleMouseUp(j.changedTouches[0])}),Ht(w,"handleDoubleClick",function(j){var E=w.props.onDoubleClick;if(fr(E)){var C=w.getMouseInfo(j);E(C,j)}}),Ht(w,"handleContextMenu",function(j){var E=w.props.onContextMenu;if(fr(E)){var C=w.getMouseInfo(j);E(C,j)}}),Ht(w,"triggerSyncEvent",function(j){w.props.syncId!==void 0&&UQ.emit(qQ,w.props.syncId,j,w.eventEmitterSymbol)}),Ht(w,"applySyncEvent",function(j){var E=w.props,C=E.layout,N=E.syncMethod,A=w.state.updateId,$=j.dataStartIndex,T=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)w.setState(Le({dataStartIndex:$,dataEndIndex:T},p({props:w.props,dataStartIndex:$,dataEndIndex:T,updateId:A},w.state)));else if(j.activeTooltipIndex!==void 0){var F=j.chartX,M=j.chartY,z=j.activeTooltipIndex,Y=w.state,W=Y.offset,ee=Y.tooltipTicks;if(!W)return;if(typeof N=="function")z=N(ee,j);else if(N==="value"){z=-1;for(var Z=0;Z<ee.length;Z++)if(ee[Z].value===j.activeLabel){z=Z;break}}var V=Le(Le({},W),{},{x:W.left,y:W.top}),ne=Math.min(F,V.x+V.width),P=Math.min(M,V.y+V.height),R=ee[z]&&ee[z].value,H=Cne(w.state,w.props.data,z),re=ee[z]?{x:C==="horizontal"?ee[z].coordinate:ne,y:C==="horizontal"?P:ee[z].coordinate}:aPe;w.setState(Le(Le({},j),{},{activeLabel:R,activeCoordinate:re,activePayload:H,activeTooltipIndex:z}))}else w.setState(j)}),Ht(w,"renderCursor",function(j){var E,C=w.state,N=C.isTooltipActive,A=C.activeCoordinate,$=C.activePayload,T=C.offset,F=C.activeTooltipIndex,M=C.tooltipAxisBandSize,z=w.getTooltipEventType(),Y=(E=j.props.active)!==null&&E!==void 0?E:N,W=w.props.layout,ee=j.key||"_recharts-cursor";return ce.createElement(Dqt,{key:ee,activeCoordinate:A,activePayload:$,activeTooltipIndex:F,chartName:r,element:j,isActive:Y,layout:W,offset:T,tooltipAxisBandSize:M,tooltipEventType:z})}),Ht(w,"renderPolarAxis",function(j,E,C){var N=bo(j,"type.axisType"),A=bo(w.state,"".concat(N,"Map")),$=j.type.defaultProps,T=$!==void 0?Le(Le({},$),j.props):j.props,F=A&&A[T["".concat(N,"Id")]];return k.cloneElement(j,Le(Le({},F),{},{className:Mr(N,F.className),key:j.key||"".concat(E,"-").concat(C),ticks:cu(F,!0)}))}),Ht(w,"renderPolarGrid",function(j){var E=j.props,C=E.radialLines,N=E.polarAngles,A=E.polarRadius,$=w.state,T=$.radiusAxisMap,F=$.angleAxisMap,M=yd(T),z=yd(F),Y=z.cx,W=z.cy,ee=z.innerRadius,Z=z.outerRadius;return k.cloneElement(j,{polarAngles:Array.isArray(N)?N:cu(z,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(A)?A:cu(M,!0).map(function(V){return V.coordinate}),cx:Y,cy:W,innerRadius:ee,outerRadius:Z,key:j.key||"polar-grid",radialLines:C})}),Ht(w,"renderLegend",function(){var j=w.state.formattedGraphicalItems,E=w.props,C=E.children,N=E.width,A=E.height,$=w.props.margin||{},T=N-($.left||0)-($.right||0),F=QMe({children:C,formattedGraphicalItems:j,legendWidth:T,legendContent:u});if(!F)return null;var M=F.item,z=Nve(F,Fqt);return k.cloneElement(M,Le(Le({},z),{},{chartWidth:N,chartHeight:A,margin:$,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),Ht(w,"renderTooltip",function(){var j,E=w.props,C=E.children,N=E.accessibilityLayer,A=Rs(C,Ul);if(!A)return null;var $=w.state,T=$.isTooltipActive,F=$.activeCoordinate,M=$.activePayload,z=$.activeLabel,Y=$.offset,W=(j=A.props.active)!==null&&j!==void 0?j:T;return k.cloneElement(A,{viewBox:Le(Le({},Y),{},{x:Y.left,y:Y.top}),active:W,label:z,payload:W?M:[],coordinate:F,accessibilityLayer:N})}),Ht(w,"renderBrush",function(j){var E=w.props,C=E.margin,N=E.data,A=w.state,$=A.offset,T=A.dataStartIndex,F=A.dataEndIndex,M=A.updateId;return k.cloneElement(j,{key:j.key||"_recharts-brush",onChange:uS(w.handleBrushChange,j.props.onChange),data:N,x:ot(j.props.x)?j.props.x:$.left,y:ot(j.props.y)?j.props.y:$.top+$.height+$.brushBottom-(C.bottom||0),width:ot(j.props.width)?j.props.width:$.width,startIndex:T,endIndex:F,updateId:"brush-".concat(M)})}),Ht(w,"renderReferenceElement",function(j,E,C){if(!j)return null;var N=w,A=N.clipPathId,$=w.state,T=$.xAxisMap,F=$.yAxisMap,M=$.offset,z=j.type.defaultProps||{},Y=j.props,W=Y.xAxisId,ee=W===void 0?z.xAxisId:W,Z=Y.yAxisId,V=Z===void 0?z.yAxisId:Z;return k.cloneElement(j,{key:j.key||"".concat(E,"-").concat(C),xAxis:T[ee],yAxis:F[V],viewBox:{x:M.left,y:M.top,width:M.width,height:M.height},clipPathId:A})}),Ht(w,"renderActivePoints",function(j){var E=j.item,C=j.activePoint,N=j.basePoint,A=j.childIndex,$=j.isRange,T=[],F=E.props.key,M=E.item.type.defaultProps!==void 0?Le(Le({},E.item.type.defaultProps),E.item.props):E.item.props,z=M.activeDot,Y=M.dataKey,W=Le(Le({index:A,dataKey:Y,cx:C.x,cy:C.y,r:4,fill:mle(E.item),strokeWidth:2,stroke:"#fff",payload:C.payload,value:C.value},Or(z,!1)),BH(z));return T.push(g.renderActiveDot(z,W,"".concat(F,"-activePoint-").concat(A))),N?T.push(g.renderActiveDot(z,Le(Le({},W),{},{cx:N.x,cy:N.y}),"".concat(F,"-basePoint-").concat(A))):$&&T.push(null),T}),Ht(w,"renderGraphicChild",function(j,E,C){var N=w.filterFormatItem(j,E,C);if(!N)return null;var A=w.getTooltipEventType(),$=w.state,T=$.isTooltipActive,F=$.tooltipAxis,M=$.activeTooltipIndex,z=$.activeLabel,Y=w.props.children,W=Rs(Y,Ul),ee=N.props,Z=ee.points,V=ee.isRange,ne=ee.baseLine,P=N.item.type.defaultProps!==void 0?Le(Le({},N.item.type.defaultProps),N.item.props):N.item.props,R=P.activeDot,H=P.hide,re=P.activeBar,ae=P.activeShape,D=!!(!H&&T&&W&&(R||re||ae)),U={};A!=="axis"&&W&&W.props.trigger==="click"?U={onClick:uS(w.handleItemMouseEnter,j.props.onClick)}:A!=="axis"&&(U={onMouseLeave:uS(w.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:uS(w.handleItemMouseEnter,j.props.onMouseEnter)});var se=k.cloneElement(j,Le(Le({},N.props),U));function te(J){return typeof F.dataKey=="function"?F.dataKey(J.payload):null}if(D)if(M>=0){var Q,K;if(F.dataKey&&!F.allowDuplicatedCategory){var ue=typeof F.dataKey=="function"?te:"payload.".concat(F.dataKey.toString());Q=sre(Z,ue,z),K=V&&ne&&sre(ne,ue,z)}else Q=Z==null?void 0:Z[M],K=V&&ne&&ne[M];if(ae||re){var B=j.props.activeIndex!==void 0?j.props.activeIndex:M;return[k.cloneElement(j,Le(Le(Le({},N.props),U),{},{activeIndex:B})),null,null]}if(!Rr(Q))return[se].concat(rv(w.renderActivePoints({item:N,activePoint:Q,basePoint:K,childIndex:M,isRange:V})))}else{var pe,G=(pe=w.getItemByXY(w.state.activeCoordinate))!==null&&pe!==void 0?pe:{graphicalItem:se},I=G.graphicalItem,L=I.item,q=L===void 0?j:L,X=I.childIndex,ie=Le(Le(Le({},N.props),U),{},{activeIndex:X});return[k.cloneElement(q,ie),null,null]}return V?[se,null,null]:[se,null]}),Ht(w,"renderCustomized",function(j,E,C){return k.cloneElement(j,Le(Le({key:"recharts-customized-".concat(C)},w.props),w.state))}),Ht(w,"renderMap",{CartesianGrid:{handler:mS,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:mS},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:mS},YAxis:{handler:mS},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:WG("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=QAe(w.triggeredAfterMouseMove,(_=b.throttleDelay)!==null&&_!==void 0?_:1e3/60),w.state={},w}return Xqt(g,v),Wqt(g,[{key:"componentDidMount",value:function(){var x,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,_=x.children,w=x.data,j=x.height,E=x.layout,C=Rs(_,Ul);if(C){var N=C.props.defaultIndex;if(!(typeof N!="number"||N<0||N>this.state.tooltipTicks.length-1)){var A=this.state.tooltipTicks[N]&&this.state.tooltipTicks[N].value,$=Cne(this.state,w,N,A),T=this.state.tooltipTicks[N].coordinate,F=(this.state.offset.top+j)/2,M=E==="horizontal",z=M?{x:T,y:F}:{y:T,x:F},Y=this.state.formattedGraphicalItems.find(function(ee){var Z=ee.item;return Z.type.name==="Scatter"});Y&&(z=Le(Le({},z),Y.props.points[N].tooltipPosition),$=Y.props.points[N].tooltipPayload);var W={activeTooltipIndex:N,isTooltipActive:!0,activeLabel:A,activePayload:$,activeCoordinate:z};this.setState(W),this.renderCursor(C),this.accessibilityManager.setIndex(N)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var w,j;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(x){lre([Rs(x.children,Ul)],[Rs(this.props.children,Ul)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Rs(this.props.children,Ul);if(x&&typeof x.props.shared=="boolean"){var _=x.props.shared?"axis":"item";return l.indexOf(_)>=0?_:s}return s}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var _=this.container,w=_.getBoundingClientRect(),j=cPt(w),E={chartX:Math.round(x.pageX-j.left),chartY:Math.round(x.pageY-j.top)},C=w.width/_.offsetWidth||1,N=this.inRange(E.chartX,E.chartY,C);if(!N)return null;var A=this.state,$=A.xAxisMap,T=A.yAxisMap,F=this.getTooltipEventType(),M=Ave(this.state,this.props.data,this.props.layout,N);if(F!=="axis"&&$&&T){var z=yd($).scale,Y=yd(T).scale,W=z&&z.invert?z.invert(E.chartX):null,ee=Y&&Y.invert?Y.invert(E.chartY):null;return Le(Le({},E),{},{xValue:W,yValue:ee},M)}return M?Le(Le({},E),M):null}},{key:"inRange",value:function(x,_){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,E=x/w,C=_/w;if(j==="horizontal"||j==="vertical"){var N=this.state.offset,A=E>=N.left&&E<=N.left+N.width&&C>=N.top&&C<=N.top+N.height;return A?{x:E,y:C}:null}var $=this.state,T=$.angleAxisMap,F=$.radiusAxisMap;if(T&&F){var M=yd(T);return f2e({x:E,y:C},M)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,_=this.getTooltipEventType(),w=Rs(x,Ul),j={};w&&_==="axis"&&(w.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var E=BH(this.props,this.handleOuterEvent);return Le(Le({},E),j)}},{key:"addListener",value:function(){UQ.on(qQ,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){UQ.removeListener(qQ,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,_,w){for(var j=this.state.formattedGraphicalItems,E=0,C=j.length;E<C;E++){var N=j[E];if(N.item===x||N.props.key===x.key||_===gu(N.item.type)&&w===N.childIndex)return N}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,_=this.state.offset,w=_.left,j=_.top,E=_.height,C=_.width;return ce.createElement("defs",null,ce.createElement("clipPath",{id:x},ce.createElement("rect",{x:w,y:j,height:E,width:C})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(_,w){var j=Cve(w,2),E=j[0],C=j[1];return Le(Le({},_),{},Ht({},E,C.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(_,w){var j=Cve(w,2),E=j[0],C=j[1];return Le(Le({},_),{},Ht({},E,C.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[x])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(x){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[x])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(x){var _=this.state,w=_.formattedGraphicalItems,j=_.activeItem;if(w&&w.length)for(var E=0,C=w.length;E<C;E++){var N=w[E],A=N.props,$=N.item,T=$.type.defaultProps!==void 0?Le(Le({},$.type.defaultProps),$.props):$.props,F=gu($.type);if(F==="Bar"){var M=(A.data||[]).find(function(ee){return BFt(x,ee)});if(M)return{graphicalItem:N,payload:M}}else if(F==="RadialBar"){var z=(A.data||[]).find(function(ee){return f2e(x,ee)});if(z)return{graphicalItem:N,payload:z}}else if(dK(N,j)||hK(N,j)||p_(N,j)){var Y=q$t({graphicalItem:N,activeTooltipItem:j,itemData:T.data}),W=T.activeIndex===void 0?Y:T.activeIndex;return{graphicalItem:Le(Le({},N),{},{childIndex:W}),payload:p_(N,j)?T.data[Y]:N.props.data[Y]}}}return null}},{key:"render",value:function(){var x=this;if(!age(this))return null;var _=this.props,w=_.children,j=_.className,E=_.width,C=_.height,N=_.style,A=_.compact,$=_.title,T=_.desc,F=Nve(_,$qt),M=Or(F,!1);if(A)return ce.createElement(hve,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ce.createElement(ure,oy({},M,{width:E,height:C,title:$,desc:T}),this.renderClipPath(),sge(w,this.renderMap)));if(this.props.accessibilityLayer){var z,Y;M.tabIndex=(z=this.props.tabIndex)!==null&&z!==void 0?z:0,M.role=(Y=this.props.role)!==null&&Y!==void 0?Y:"application",M.onKeyDown=function(ee){x.accessibilityManager.keyboardEvent(ee)},M.onFocus=function(){x.accessibilityManager.focus()}}var W=this.parseEventsOfWrapper();return ce.createElement(hve,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ce.createElement("div",oy({className:Mr("recharts-wrapper",j),style:Le({position:"relative",curs
8174or:"default",width:E,height:C},N)},W,{ref:function(Z){x.container=Z}}),ce.createElement(ure,oy({},M,{width:E,height:C,title:$,desc:T,style:rHt}),this.renderClipPath(),sge(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(k.Component);Ht(y,"displayName",r),Ht(y,"defaultProps",Le({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Ht(y,"getDerivedStateFromProps",function(v,g){var b=v.dataKey,x=v.data,_=v.children,w=v.width,j=v.height,E=v.layout,C=v.stackOffset,N=v.margin,A=g.dataStartIndex,$=g.dataEndIndex;if(g.updateId===void 0){var T=Mve(v);return Le(Le(Le({},T),{},{updateId:0},p(Le(Le({props:v},T),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:x,prevWidth:w,prevHeight:j,prevLayout:E,prevStackOffset:C,prevMargin:N,prevChildren:_})}if(b!==g.prevDataKey||x!==g.prevData||w!==g.prevWidth||j!==g.prevHeight||E!==g.prevLayout||C!==g.prevStackOffset||!qy(N,g.prevMargin)){var F=Mve(v),M={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},z=Le(Le({},Ave(g,x,E)),{},{updateId:g.updateId+1}),Y=Le(Le(Le({},F),M),z);return Le(Le(Le({},Y),p(Le({props:v},Y),g)),{},{prevDataKey:b,prevData:x,prevWidth:w,prevHeight:j,prevLayout:E,prevStackOffset:C,prevMargin:N,prevChildren:_})}if(!lre(_,g.prevChildren)){var W,ee,Z,V,ne=Rs(_,G2),P=ne&&(W=(ee=ne.props)===null||ee===void 0?void 0:ee.startIndex)!==null&&W!==void 0?W:A,R=ne&&(Z=(V=ne.props)===null||V===void 0?void 0:V.endIndex)!==null&&Z!==void 0?Z:$,H=P!==A||R!==$,re=!Rr(x),ae=re&&!H?g.updateId:g.updateId+1;return Le(Le({updateId:ae},p(Le(Le({props:v},g),{},{updateId:ae,dataStartIndex:P,dataEndIndex:R}),g)),{},{prevChildren:_,dataStartIndex:P,dataEndIndex:R})}return null}),Ht(y,"renderActiveDot",function(v,g,b){var x;return k.isValidElement(v)?x=k.cloneElement(v,g):fr(v)?x=v(g):x=ce.createElement(mIe,g),ce.createElement(Za,{className:"recharts-active-dot",key:b},x)});var m=k.forwardRef(function(g,b){return ce.createElement(y,oy({},g,{ref:b}))});return m.displayName=y.displayName,m},fHt=hHt({chartName:"BarChart",GraphicalChild:ag,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:vK},{axisType:"yAxis",AxisComp:xK}],formatAxisMap:pzt});const pHt=({data:e,getStageName:t})=>{const r=e.map(a=>({name:t(a.metric_name),value:a.user_count,percentage:a.percentage})),n=(a,s)=>{const o=a/(s-1);return o<.5?`hsl(${120-o*120}, 70%, 50%)`:`hsl(${60-(o-.5)*60}, 70%, 50%)`};return i.jsx(rPt,{width:"100%",height:400,children:i.jsxs(fHt,{data:r,layout:"vertical",margin:{top:20,right:30,left:120,bottom:5},children:[i.jsx(VIe,{strokeDasharray:"3 3",className:"stroke-muted"}),i.jsx(vK,{type:"number",className:"text-xs"}),i.jsx(xK,{dataKey:"name",type:"category",className:"text-xs",width:110}),i.jsx(Ul,{content:({active:a,payload:s})=>a&&s&&s.length?i.jsxs("div",{className:"bg-popover border border-border rounded-lg p-3 shadow-lg",children:[i.jsx("p",{className:"font-semibold",children:s[0].payload.name}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Users: ",s[0].value]}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:[s[0].payload.percentage.toFixed(1),"% of signups"]})]}):null}),i.jsx(ag,{dataKey:"value",radius:[0,8,8,0],children:r.map((a,s)=>i.jsx(qoe,{fill:n(s,r.length)},`cell-${s}`))})]})})},Og=({title:e,value:t,percentage:r,icon:n,trend:a="neutral"})=>{const s=()=>a==="up"?i.jsx(Ny,{className:"h-4 w-4 text-green-500"}):a==="down"?i.jsx(Cy,{className:"h-4 w-4 text-red-500"}):i.jsx(n0,{className:"h-4 w-4 text-muted-foreground"}),o=()=>a==="up"?"text-green-500":a==="down"?"text-red-500":"text-muted-foreground";return i.jsx(Ie,{children:i.jsxs(qe,{className:"pt-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:i.jsx(n,{className:"h-5 w-5 text-primary"})}),s()]}),i.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-1",children:e}),i.jsxs("div",{className:"flex items-baseline gap-2",children:[i.jsx("p",{className:"text-2xl md:text-3xl font-bold",children:t}),i.jsxs("p",{className:`text-sm font-medium ${o()}`,children:[r.toFixed(1),"%"]})]})]})})},mHt=()=>{const e=wt(),{isAdmin:t,loading:r}=Fr(),{toast:n}=Xt(),[a,s]=k.useState(!0),[o,l]=k.useState(30),[c,u]=k.useState([]),[d,h]=k.useState(null);k.useEffect(()=>{if(!r){if(!t){e("/");return}f(),p()}},[t,r,e,o]);const f=async()=>{s(!0);try{const{data:C,error:N}=await oe.rpc("get_funnel_metrics",{days_filter:o===0?null:o});if(N)throw N;u(C||[])}catch(C){console.error("Error loading funnel data:",C),n({title:"Error",description:"Failed to load funnel metrics",variant:"destructive"})}finally{s(!1)}},p=async()=>{var C,N,A,$;try{const{data:T,error:F}=await oe.rpc("get_revenue_metrics",{days_filter:o===0?null:o});if(F)throw F;const{data:M,error:z}=await oe.rpc("get_filtered_subscription_metrics",{days_filter:o===0?null:o});if(z)throw z;const Y=((C=M==null?void 0:M[0])==null?void 0:C.mrr)||0,W=Number(((N=M==null?void 0:M[0])==null?void 0:N.active_subscriptions)||0),{data:ee,error:Z}=await oe.rpc("get_overage_metrics",{days_filter:o===0?null:o});if(Z)throw Z;const V=Number(((A=ee==null?void 0:ee[0])==null?void 0:A.overage_revenue)||0),ne=Number((($=ee==null?void 0:ee[0])==null?void 0:$.overage_count)||0);if(T&&T.length>0){const P=T[0];h({totalRevenue:P.total_revenue,totalUsers:P.total_users,totalStories:P.total_stories,usersWithStories:P.users_with_stories,payingUsers:P.paying_users,paidStories:P.paid_stories,mrr:Y,overageRevenue:V,activeSubscriptions:W,overageCount:ne})}}catch(T){console.error("Error loading revenue metrics:",T),n({title:"Error",description:"Failed to load revenue metrics",variant:"destructive"})}},y=C=>c.find(N=>N.metric_name===C),m=C=>({signup:Xi,started_story:xr,story_input:Ti,story_review:Qa,free_sample:xr,paid_digital:bs,bought_print:vl})[C]||Xi,v=C=>({signup:"Signups",started_story:"Started Story",story_input:"Story Input",story_review:"Story Review",free_sample:"Free Sample",paid_digital:"Paid Digital",bought_print:"Bought Print"})[C]||C,g=()=>!d||d.totalUsers===0?0:d.totalRevenue/100/d.totalUsers,b=()=>!d||d.usersWithStories===0?0:d.totalStories/d.usersWithStories,x=()=>d?`$${(d.totalRevenue/100).toFixed(2)}`:"$0.00";if(r||a)return i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin mx-auto text-primary"}),i.jsx("p",{className:"text-muted-foreground",children:"Loading funnel data..."})]})});if(!t)return null;const _=y("signup"),w=y("started_story"),j=y("free_sample"),E=y("paid_digital");return y("bought_print"),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Funnel Analytics"}),i.jsxs("main",{className:"container mx-auto px-4 py-4 md:py-8 max-w-7xl",children:[i.jsx(Mv,{value:o.toString(),onValueChange:C=>l(parseInt(C)),className:"mb-6",children:i.jsxs(X0,{children:[i.jsx(Zn,{value:"7",children:"Last 7 Days"}),i.jsx(Zn,{value:"30",children:"Last 30 Days"}),i.jsx(Zn,{value:"90",children:"Last 90 Days"}),i.jsx(Zn,{value:"0",children:"All Time"})]})}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[i.jsx(Ie,{className:"bg-gradient-to-br from-green-50 to-emerald-50 dark:from-green-950 dark:to-emerald-950 border-green-200 dark:border-green-800",children:i.jsx(qe,{className:"pt-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-1",children:"Total Revenue"}),i.jsx("p",{className:"text-3xl font-bold text-green-600 dark:text-green-400",children:x()}),i.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:[(d==null?void 0:d.paidStories)||0," digital books sold"]})]}),i.jsx("div",{className:"p-3 rounded-full bg-green-100 dark:bg-green-900",children:i.jsx(gy,{className:"h-6 w-6 text-green-600 dark:text-green-400"})})]})})}),i.jsx(Ie,{className:"bg-gradient-to-br from-blue-50 to-indigo-50 dark:from-blue-950 dar
8174k:to-indigo-950 border-blue-200 dark:border-blue-800",children:i.jsx(qe,{className:"pt-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-1",children:"MRR"}),i.jsxs("p",{className:"text-3xl font-bold text-blue-600 dark:text-blue-400",children:["$",(((d==null?void 0:d.mrr)||0)/100).toFixed(2)]}),i.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:[(d==null?void 0:d.activeSubscriptions)||0," active subscriptions"]})]}),i.jsx("div",{className:"p-3 rounded-full bg-blue-100 dark:bg-blue-900",children:i.jsx(bs,{className:"h-6 w-6 text-blue-600 dark:text-blue-400"})})]})})}),i.jsx(Ie,{className:"bg-gradient-to-br from-purple-50 to-violet-50 dark:from-purple-950 dark:to-violet-950 border-purple-200 dark:border-purple-800",children:i.jsx(qe,{className:"pt-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-1",children:"Overage Revenue"}),i.jsxs("p",{className:"text-3xl font-bold text-purple-600 dark:text-purple-400",children:["$",(((d==null?void 0:d.overageRevenue)||0)/100).toFixed(2)]}),i.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:[(d==null?void 0:d.overageCount)||0," overage purchases"]})]}),i.jsx("div",{className:"p-3 rounded-full bg-purple-100 dark:bg-purple-900",children:i.jsx(xr,{className:"h-6 w-6 text-purple-600 dark:text-purple-400"})})]})})})]}),i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 mb-8",children:[i.jsx(Og,{title:"ARPU",value:`$${g().toFixed(2)}`,percentage:(d==null?void 0:d.payingUsers)||0,icon:gy,trend:g()>2.5?"up":g()<1?"down":"neutral"}),i.jsx(Og,{title:"Avg Stories",value:b().toFixed(1),percentage:(d==null?void 0:d.usersWithStories)||0,icon:xr,trend:b()>2?"up":b()<1?"down":"neutral"}),i.jsx(Og,{title:"Signups",value:(_==null?void 0:_.user_count)||0,percentage:100,icon:m("signup"),trend:"neutral"}),i.jsx(Og,{title:"Started Story",value:(w==null?void 0:w.user_count)||0,percentage:(w==null?void 0:w.percentage)||0,icon:m("started_story"),trend:w&&w.percentage>80?"up":"neutral"}),i.jsx(Og,{title:"Free Sample",value:(j==null?void 0:j.user_count)||0,percentage:(j==null?void 0:j.percentage)||0,icon:m("free_sample"),trend:j&&j.percentage>40?"up":"down"}),i.jsx(Og,{title:"Paid Digital",value:(E==null?void 0:E.user_count)||0,percentage:(E==null?void 0:E.percentage)||0,icon:m("paid_digital"),trend:E&&E.percentage>10?"up":"down"})]}),i.jsxs(Ie,{className:"mb-8",children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Conversion Funnel"}),i.jsx(Rt,{children:"User journey from signup to purchase"})]}),i.jsx(qe,{children:i.jsx(pHt,{data:c,getStageName:v})})]}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Detailed Breakdown"}),i.jsx(Rt,{children:"Stage-by-stage metrics"})]}),i.jsx(qe,{children:i.jsx("div",{className:"space-y-4",children:c.map((C,N)=>{const A=m(C.metric_name),$=N>0?c[N-1]:null,T=$?(C.user_count/$.user_count*100).toFixed(1):"100.0";return i.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:i.jsx(A,{className:"h-5 w-5 text-primary"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold",children:v(C.metric_name)}),i.jsx("p",{className:"text-sm text-muted-foreground",children:N>0&&`${T}% from previous stage`})]})]}),i.jsxs("div",{className:"text-right",children:[i.jsx("p",{className:"text-2xl font-bold",children:C.user_count}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:[C.percentage.toFixed(1),"% of signups"]})]})]},C.metric_name)})})})]})]})]})},gHt=({edit:e,onClose:t})=>{var c;const r=u=>new Date(u).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"}),{data:n,isLoading:a}=ei({queryKey:["edit-insights",e.story_id,e.image_type,e.page_number],queryFn:async()=>{const u=oe.from("image_edit_insights").select("*").eq("story_id",e.story_id).eq("image_type",e.image_type);e.page_number!==null?u.eq("page_number",e.page_number):u.is("page_number",null);const{data:d,error:h}=await u.order("created_at",{ascending:!1});if(h)throw h;return d}}),s=u=>{if(!u)return null;const d={system_fault:{label:"System Fault",variant:"destructive"},story_mismatch:{label:"Story Mismatch",variant:"default"},user_preference:{label:"User Preference",variant:"secondary"},non_actionable:{label:"Non-Actionable",variant:"outline"}},{label:h,variant:f}=d[u]||{label:u,variant:"outline"};return i.jsx(Re,{variant:f,children:h})},l=(()=>{const u=e.original_prompt,d=e.refined_prompt;if(!u||!d)return{original:u,refined:d,hasChanges:!1};const h=u.trim()!==d.trim();return{original:u,refined:d,hasChanges:h}})();return i.jsx(Xr,{open:!0,onOpenChange:t,children:i.jsxs(Ur,{className:"max-w-6xl max-h-[90vh] overflow-y-auto",children:[i.jsx(Nr,{children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{children:[i.jsxs(Tr,{className:"text-2xl mb-2",children:["Edit Details - ",e.story_title]}),i.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[i.jsxs("span",{children:["ð¤ ",e.user_email]}),i.jsx("span",{children:"â¢"}),e.image_type==="cover"?i.jsx(Re,{children:"Cover"}):i.jsxs(Re,{variant:"outline",children:["Page ",e.page_number]}),i.jsx("span",{children:"â¢"}),i.jsxs("span",{children:["ð ",r(e.edited_at)]})]})]}),i.jsx(le,{variant:"ghost",size:"icon",onClick:t,className:"h-8 w-8",children:i.jsx(hi,{className:"h-4 w-4"})})]})}),i.jsxs("div",{className:"space-y-6 mt-6",children:[i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"Current Image (After Edit)"})}),i.jsx(qe,{children:e.current_image_url?i.jsx("div",{className:"flex justify-center",children:i.jsx("img",{src:e.current_image_url,alt:"Current edited image",className:"max-w-full h-auto rounded-lg border border-border",style:{maxHeight:"400px"}})}):i.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No image available"})})]}),i.jsxs(Ie,{className:e.status==="success"?"bg-green-50 border-green-200 dark:bg-green-950/20 dark:border-green-800":e.status==="failed"?"bg-red-50 border-red-200 dark:bg-red-950/20 dark:border-red-800":"bg-yellow-50 border-yellow-200 dark:bg-yellow-950/20 dark:border-yellow-800",children:[i.jsx(ze,{children:i.jsxs(Ke,{className:"text-lg flex items-center gap-2",children:[e.status==="success"?"â
":e.status==="failed"?"â":"â³","Generation Status"]})}),i.jsx(qe,{children:i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[i.jsx(Re,{variant:e.status==="success"?"default":e.status==="failed"?"destructive":"secondary",children:((c=e.status)==null?void 0:c.toUpperCase())||"PENDING"}),e.completed_at&&i.jsxs("span",{className:"text-sm text-muted-foreground",children:["Completed: ",r(e.completed_at)]})]}),e.error_message&&i.jsxs("div",{className:"bg-destructive/10 p-3 rounded border border-destructive/20",children:[i.jsx("p",{className:"text-sm text-destructive font-medium",children:"Error:"}),i.jsx("p",{className:"text-sm text-destructive mt-1",children:e.error_message})]})]})})]}),i.jsxs(Ie,{className:"bg-primary/5 border-primary/20",children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg flex items-center gap-2",children:"ð User's Edit Request"})}),i.jsx(qe,{children:i.jsxs("p",{className:"text-base leading-relaxed bg-background p-4 rounded-lg border border-border",children:['"',e.edit_request,'"']})})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"Original Prompt"})}),i.jsx(qe,{children:i.jsx("div",{className:"bg-muted/50 p-4 rounded-lg border border-border",children:i.jsx("pre",{className:"text-xs whitespace-pre-wrap font-mono leading-relaxed",children:e.original_prompt||"No original prompt"})})})]}),i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsxs(Ke,{className:"text-lg flex items-center gap-2",children:["Refined Prompt",l.hasChanges&&i.jsx(Re,{variant:"secondary",className:"text-xs",children:"Modified"})]})}),i.jsx(qe,{children:i.jsx("div",{className:"bg-primary/5 p-4 rounded-lg border border-primary/20",children:i.jsx("pre",{className:"text-xs whitespace-pre-wrap font-mono leading-relaxed",children:e.refined_prompt||"No refined prompt"})})})]})]}),a?i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"ð¤ AI Analysis"})}),i.jsxs(qe,{className:"space-y-3",children:[i.jsx(vr,{className:"h-4 w-full"}),i.jsx(vr,{className:"h-4 w-3/4"}),i.jsx(vr,{className:"h-4 w-1/2"})]})]}):n&&n.length>0?i.jsxs(Ie,{className:"border-2 border-primary/20",children:[i.jsx(ze,{children:i.jsxs(Ke,{className:"text-lg flex items-center gap-2",children:["ð¤ AI Analysis",n[0].should_fix&&i.jsx(Re,{variant:"destructive",className:"ml-auto",children:"Needs Fix"})]})}),i.jsxs(qe,{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s(n[0].edit_intent_type),n[0].affected_component&&i.jsxs(Re,{variant:"outline",children:["Component: ",n[0].affected_component]}),n[0].issue_category&&i.jsxs(Re,{variant:"outline",children:["Category: ",n[0].issue_category]})]}),i.jsxs("div",{className:"flex gap-4 text-sm",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-muted-foreground",children:"Confidence:"}),i.jsxs(Re,{variant:"secondary",children:[n[0].confidence_score,"/10"]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-muted-foreground",children:"Severity:"}),i.jsxs(Re,{variant:"secondary",children:[n[0].severity_score,"/10"]})]})]}),n[0].root_cause_analysis&&i.jsxs("div",{className:"bg-muted/50 p-4 rounded-lg space-y-2",children:[i.jsx("p",{className:"font-medium text-sm",children:"Root Cause"}),i.jsx("p",{className:"text-sm leading-relaxed",children:n[0].root_cause_analysis}),n[0].root_cause_evidence&&i.jsxs("div",{className:"mt-2 pt-2 border-t border-border",children:[i.jsx("p",{className:"text-xs text-muted-foreground font-medium mb-1",children:"Evidence:"}),i.jsxs("p",{className:"text-xs text-muted-foreground italic",children:['"',n[0].root_cause_evidence,'"']})]})]}),n[0].suggested_improvement&&i.jsxs("div",{className:"bg-primary/5 p-4 rounded-lg border border-primary/20",children:[i.jsx("p",{className:"font-medium text-sm mb-2",children:"ð¡ Suggested Improvement"}),i.jsx("p",{className:"text-sm leading-relaxed",children:n[0].suggested_improvement})]}),i.jsxs("div",{className:"text-xs text-muted-foreground",children:["Analyzed by ",n[0].model_version," ⢠",r(n[0].created_at)]})]})]}):null,l.hasChanges&&i.jsx(Ie,{className:"bg-muted/30",children:i.jsx(qe,{className:"pt-6",children:i.jsx("p",{className:"text-sm text-muted-foreground",children:"â¹ï¸ The AI refined the prompt based on the user's edit request. Compare the original and refined prompts above to see how the request was interpreted."})})})]})]})})},yHt=({edit:e,isOpen:t,onClose:r})=>{if(!e)return null;const n=s=>
8174new Date(s).toLocaleString(),a=()=>{const s=e.original_text.length,l=e.edited_text.length-s;return l>0?`+${l} characters`:l<0?`${l} characters`:"No change in length"};return i.jsx(Xr,{open:t,onOpenChange:r,children:i.jsxs(Ur,{className:"max-w-4xl max-h-[80vh] overflow-y-auto",children:[i.jsxs(Nr,{children:[i.jsxs(Tr,{className:"flex items-center gap-2",children:[i.jsx(Ti,{className:"h-5 w-5"}),"Story Text Edit Details"]}),i.jsxs(ra,{children:["Page ",e.page_number," - ",e.story_title]})]}),i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"grid grid-cols-2 gap-4 p-4 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(xl,{className:"h-4 w-4 text-muted-foreground"}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium",children:"User"}),i.jsx("div",{className:"text-sm text-muted-foreground",children:e.user_email})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(ic,{className:"h-4 w-4 text-muted-foreground"}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium",children:"Edited"}),i.jsx("div",{className:"text-sm text-muted-foreground",children:n(e.edited_at)})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Ti,{className:"h-4 w-4 text-muted-foreground"}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium",children:"Edit Stage"}),i.jsx(Re,{variant:e.edit_stage==="review"?"default":"secondary",children:e.edit_stage==="review"?"Review Stage":"After Creation"})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(du,{className:"h-4 w-4 text-muted-foreground"}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium",children:"Character Count"}),i.jsx("div",{className:"text-sm text-muted-foreground",children:a()})]})]})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{children:[i.jsxs("h3",{className:"text-sm font-medium mb-2 flex items-center gap-2",children:["Original Text",i.jsxs(Re,{variant:"outline",children:[e.original_text.length," chars"]})]}),i.jsx("div",{className:"p-4 bg-muted/30 rounded-lg border border-border min-h-[200px]",children:i.jsx("p",{className:"text-sm whitespace-pre-wrap",children:e.original_text})})]}),i.jsxs("div",{children:[i.jsxs("h3",{className:"text-sm font-medium mb-2 flex items-center gap-2",children:["Edited Text",i.jsxs(Re,{variant:"outline",children:[e.edited_text.length," chars"]})]}),i.jsx("div",{className:"p-4 bg-primary/5 rounded-lg border border-primary/20 min-h-[200px]",children:i.jsx("p",{className:"text-sm whitespace-pre-wrap",children:e.edited_text})})]})]})]})]})})},vHt=({insight:e,storyTitle:t,onClose:r})=>{const n=s=>new Date(s).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"}),a=s=>{if(!s)return i.jsx(Re,{variant:"outline",children:"Unknown"});const o={system_fault:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300",story_mismatch:"bg-orange-100 text-orange-800 dark:bg-orange-900/30 dark:text-orange-300",user_preference:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",non_actionable:"bg-gray-100 text-gray-800 dark:bg-gray-900/30 dark:text-gray-300"};return i.jsx(Re,{className:o[s]||"bg-gray-100 text-gray-800",children:s.replace("_"," ")})};return i.jsx(Xr,{open:!0,onOpenChange:r,children:i.jsxs(Ur,{className:"max-w-6xl max-h-[90vh] overflow-y-auto",children:[i.jsx(Nr,{children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{children:[i.jsxs(Tr,{className:"text-2xl mb-2",children:["AI Edit Insight - ",t]}),i.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.image_type==="cover"?i.jsx(Re,{children:"Cover"}):i.jsxs(Re,{variant:"outline",children:["Page ",e.page_number]}),i.jsx("span",{children:"â¢"}),i.jsxs("span",{children:["ð ",n(e.created_at)]}),i.jsx("span",{children:"â¢"}),i.jsx("span",{className:"font-mono text-xs",children:e.model_version})]})]}),i.jsx(le,{variant:"ghost",size:"icon",onClick:r,className:"h-8 w-8",children:i.jsx(hi,{className:"h-4 w-4"})})]})}),i.jsxs("div",{className:"space-y-6 mt-6",children:[i.jsxs(Ie,{className:e.edit_intent_type==="system_fault"?"bg-red-50 border-red-200 dark:bg-red-950/20 dark:border-red-800":e.edit_intent_type==="story_mismatch"?"bg-
8174orange-50 border-orange-200 dark:bg-orange-950/20 dark:border-orange-800":"bg-blue-50 border-blue-200 dark:bg-blue-950/20 dark:border-blue-800",children:[i.jsx(ze,{children:i.jsxs(Ke,{className:"text-lg flex items-center gap-3",children:["AI Analysis",a(e.edit_intent_type),e.should_fix&&i.jsx(Re,{className:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",children:"Should Fix"})]})}),i.jsxs(qe,{className:"space-y-4",children:[i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-1",children:"Affected Component"}),i.jsx("div",{className:"font-mono text-sm",children:e.affected_component?e.affected_component.replace("_"," "):"None"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-1",children:"Issue Category"}),i.jsx("div",{className:"font-mono text-sm",children:e.issue_category?e.issue_category.replace("_"," "):"None"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-1",children:"Confidence Score"}),i.jsxs("div",{className:"font-bold",children:[e.confidence_score||"N/A"," / 10"]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-1",children:"Severity Score"}),i.jsxs("div",{className:`font-bold ${e.severity_score&&e.severity_score>=7?"text-red-600":""}`,children:[e.severity_score||"N/A"," / 10"]})]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Root Cause Analysis"}),i.jsx("div",{className:"bg-background p-3 rounded-md border border-border",children:e.root_cause_analysis||"No analysis available"})]}),e.root_cause_evidence&&i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Evidence"}),i.jsx("div",{className:"bg-background p-3 rounded-md border border-border font-mono text-xs",children:e.root_cause_evidence})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Suggested Improvement"}),i.jsx("div",{className:"bg-background p-3 rounded-md border border-border",children:e.suggested_improvement||"No suggestion available"})]}),e.status!=="ok"&&i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Status"}),i.jsxs("div",{className:"bg-red-50 dark:bg-red-950/20 p-3 rounded-md border border-red-200 dark:border-red-800",children:[i.jsx(Re,{variant:"destructive",className:"mb-2",children:e.status}),e.error_message&&i.jsx("div",{className:"text-sm text-red-900 dark:text-red-300",children:e.error_message})]})]})]})]}),i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"Story Context"})}),i.jsxs(qe,{className:"space-y-4",children:[i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-1",children:"Age Range"}),i.jsx("div",{children:e.age_range})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-1",children:"Illustration Style"}),i.jsx("div",{children:e.illustration_style})]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Page Text"}),i.jsx("div",{className:"bg-muted p-3 rounded-md text-sm",children:e.story_text_for_page||"No text available"})]}),e.locked_character_summary&&i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Character Summary"}),i.jsx("div",{className:"bg-muted p-3 rounded-md text-sm font-mono",children:e.locked_character_summary})]})]})]}),i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"User's Edit Request"})}),i.jsx(qe,{children:i.jsxs("div",{className:"bg-amber-50 dark:bg-amber-950/20 p-4 rounded-md border border-amber-200 dark:border-amber-800",children:[i.jsx("div",{className:"font-medium mb-2",children:"User wrote:"}),i.jsxs("div",{className:"text-sm italic",children:['"',e.user_edit_request,'"']})]})})]}),i.jsxs(Ie,{children:[i.jsx(ze,{children:i.jsx(Ke,{className:"text-lg",children:"Prompt Comparison"})}),i.jsx(qe,{children:i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Original Prompt"}),i.jsx("div",{className:"bg-muted p-3 rounded-md text-xs font-mono max-h-[300px] overflow-y-auto",children:e.original_prompt})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Refined Prompt"}),i.jsx("div",{className:"bg-muted p-3 rounded-md text-xs font-mono max-h-[300px] overflow-y-auto",children:e.refined_prompt})]})]})})]})]})]})})},xHt=()=>{const{toast:e}=Xt(),[t,r]=k.useState(!0),[n,a]=k.useState([]),[s,o]=k.useState({}),[l,c]=k.useState(null),[u,d]=k.useState("system_fault,story_mismatch"),[h,f]=k.useState("all"),[p,y]=k.useState("all"),[m,v]=k.useState(4),[g,b]=k.useState("true"),x=async()=>{r(!0);try{let E=oe.from("image_edit_insights").select("*").order("severity_score",{ascending:!1}).order("confidence_score",{ascending:!1}).order("created_at",{ascending:!1}).limit(100);if(u!=="all"){const A=u.split(",");E=E.in("edit_intent_type",A)}h!=="all"&&(E=E.eq("affected_component",h)),p!=="all"&&(E=E.eq("issue_category",p)),g!=="all"&&(E=E.eq("should_fix",g==="true")),m>0&&(E=E.gte("severity_score",m));const{data:C,error:N}=await E;if(N)throw N;if(a(C||[]),C&&C.length>0){const A=[...new Set(C.map(T=>T.story_id))],{data:$}=await oe.from("stories").select("id, story_title").in("id",A);if($){const T={};$.forEach(F=>{T[F.id]=F.story_title||"Untitled Story"}),o(T)}}}catch(E){console.error("Error loading insights:",E),e({title:"Error",description:"Failed to load AI insights",variant:"destructive"})}finally{r(!1)}};k.useEffect(()=>{x()},[u,h,p,m,g]);const _=E=>{const C=new Date(E),A=new Date().getTime()-C.getTime(),$=Math.floor(A/(1e3*60*60));return $<24?$===0?"Just now":`${$}h ago`:C.toLocaleDateString()},w=E=>{if(!E)return i.jsx(Re,{variant:"outline",children:"Unknown"});const C={system_fault:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300",story_mismatch:"bg-orange-100 text-orange-800 dark:bg-orange-900/30 dark:text-orange-300",user_preference:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",non_actionable:"bg-gray-100 text-gray-800 dark:bg-gray-900/30 dark:text-gray-300"};return i.jsx(Re,{className:C[E]||"bg-gray-100 text-gray-800",children:E.replace("_"," ")})},j=(E,C)=>E?E.length>C?E.substring(0,C)+"...":E:"-";return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("label",{className:"text-sm font-medium",children:"Intent:"}),i.jsxs(rn,{value:u,onValueChange:d,children:[i.jsx(Wr,{className:"w-[200px]",children:i.jsx(nn,{})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"system_fault,story_mismatch",children:"System Issues Only"}),i.jsx(pt,{value:"all",children:"All Intents"}),i.jsx(pt,{value:"system_fault",children:"System Fault"}),i.jsx(pt,{value:"story_mismatch",children:"Story Mismatch"}),i.jsx(pt,{value:"user_preference",children:"User Preference"}),i.jsx(pt,{value:"non_actionable",children:"Non-Actionable"})]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("label",{className:"text-sm font-medium",children:"Should Fix:"}),i.jsxs(rn,{value:g,onValueChange:b,children:[i.jsx(Wr,{className:"w-[120px]",children:i.jsx(nn,{})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"true",children:"Yes"}),i.jsx(pt,{value:"all",children:"All"}),i.jsx(pt,{value:"false",children:"No"})]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("label",{className:"text-sm font-medium",children:"Min Severity:"}),i.jsxs(rn,{value:m.toString(),onValueChange:E=>v(parseInt(E)),children:[i.jsx(Wr,{className:"w-[100px]",children:i.jsx(nn,{})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"0",children:"All"}),i.jsx(pt,{value:"4",children:"4+"}),i.jsx(pt,{value:"6",children:"6+"}),i.jsx(pt,{value:"7",children:"7+"}),i.jsx(pt,{value:"8",children:"8+"})]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("label",{className:"text-sm font-medium",children:"Component:"}),i.jsxs(rn,{value:h,onValueChange:f,children:[i.jsx(Wr,{className:"w-[180px]",children:i.jsx(nn,{})}),i.jsxs(Gr,{children:[i.jsx(pt,{value:"all",children:"All Components"}),i.jsx(pt,{value:"story_generation",children:"Story Generation"}),i.jsx(pt,{value:"prompt_engineering",children:"Prompt Engineering"}),i.jsx(pt,{value:"character_descriptions",children:"Character Descriptions"}),i.jsx(pt,{value:"scene_setup",children:"Scene Setup"}),i.jsx(pt,{value:"style_application",children:"Style Application"}),i.jsx(pt,{value:"model_error",children:"Model Error"})]})]})]}),i.jsxs(le,{variant:"outline",size:"sm",onClick:x,children:[i.jsx(Vn,{className:"h-4 w-4 mr-2"}),"Refresh"]})]}),i.jsxs("div",{className:"text-sm text-muted-foreground",children:["Showing ",n.length," insights (sorted by severity â
8174 confidence â time)"]}),i.jsx("div",{className:"border border-border rounded-lg overflow-hidden",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{className:"w-[100px]",children:"Time"}),i.jsx(Ce,{children:"Story"}),i.jsx(Ce,{className:"w-[80px]",children:"Page"}),i.jsx(Ce,{className:"w-[140px]",children:"Intent"}),i.jsx(Ce,{className:"w-[120px]",children:"Component"}),i.jsx(Ce,{className:"w-[140px]",children:"Category"}),i.jsx(Ce,{children:"Root Cause"}),i.jsx(Ce,{children:"Suggestion"}),i.jsx(Ce,{className:"w-[80px] text-center",children:"Fix?"}),i.jsx(Ce,{className:"w-[100px] text-center",children:"Score"}),i.jsx(Ce,{className:"w-[80px]"})]})}),i.jsx(ga,{children:t?i.jsx(Jt,{children:i.jsx(Ee,{colSpan:11,className:"text-center py-8",children:"Loading insights..."})}):n.length===0?i.jsx(Jt,{children:i.jsx(Ee,{colSpan:11,className:"text-center py-8 text-muted-foreground",children:"No insights found with current filters"})}):n.map(E=>i.jsxs(Jt,{className:"hover:bg-muted/50",children:[i.jsx(Ee,{className:"text-xs",children:_(E.created_at)}),i.jsx(Ee,{className:"font-medium text-sm",children:j(s[E.story_id],30)}),i.jsx(Ee,{children:E.image_type==="cover"?i.jsx(Re,{variant:"secondary",children:"Cover"}):i.jsxs(Re,{variant:"outline",children:["Pg ",E.page_number]})}),i.jsx(Ee,{children:w(E.edit_intent_type)}),i.jsx(Ee,{className:"text-xs",children:E.affected_component?i.jsx("span",{className:"font-mono",children:E.affected_component.replace("_"," ")}):i.jsx("span",{className:"text-muted-foreground",children:"-"})}),i.jsx(Ee,{className:"text-xs",children:E.issue_category?i.jsx("span",{className:"font-mono",children:E.issue_category.replace("_"," ")}):i.jsx("span",{className:"text-muted-foreground",children:"-"})}),i.jsx(Ee,{className:"text-xs max-w-[200px]",children:j(E.root_cause_analysis,100)}),i.jsx(Ee,{className:"text-xs max-w-[200px]",children:j(E.suggested_improvement,100)}),i.jsx(Ee,{className:"text-center",children:E.should_fix?i.jsx(Re,{className:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",children:"Yes"}):i.jsx(Re,{variant:"outline",children:"No"})}),i.jsx(Ee,{className:"text-center text-xs",children:i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsxs("span",{className:E.severity_score&&E.severity_score>=7?"text-red-600 font-bold":"",children:["S: ",E.severity_score||"-"]}),i.jsxs("span",{className:"text-muted-foreground",children:["C: ",E.confidence_score||"-"]})]})}),i.jsx(Ee,{children:i.jsx(le,{variant:"ghost",size:"sm",onClick:()=>c(E),children:i.jsx(Qa,{className:"h-4 w-4"})})})]},E.id))})]})}),l&&i.jsx(vHt,{insight:l,storyTitle:s[l.story_id],onClose:()=>c(null)})]})},bHt=()=>{const e=wt(),{user:t,loading:r}=er(),{isAdmin:n,loading:a}=Fr(),{toast:s}=Xt(),[o,l]=k.useState(!0),[c,u]=k.useState("image"),[d,h]=k.useState([]),[f,p]=k.useState([]),[y,m]=k.useState("all"),[v,g]=k.useState(null),[b,x]=k.useState(null);k.useState(null),k.useEffect(()=>{if(!r){if(!t){e("/login");return}if(!a&&!n){e("/library"),s({title:"Access Denied",description:"You don't have admin privileges",variant:"destructive"});return}!a&&n&&_()}},[t,n,a,r,e]);const _=async()=>{l(!0);try{if(c==="image"){const{data:C,error:N}=await oe.rpc("get_all_edits",{image_type_filter:y==="all"?null:y,limit_count:100,offset_count:0});if(N)throw N;h(C||[])}else{const{data:C,error:N}=await oe.rpc("get_all_text_edits",{limit_count:100,offset_count:0});if(N)throw N;p(C||[])}}catch(C){console.error("Error loading edits:",C),s({title:"Error",description:"Failed to load edit history",variant:"destructive"})}finally{l(!1)}};k.useEffect(()=>{!a&&n&&_()},[y,c]);const w=d.filter(C=>C.image_type==="cover"),j=d.filter(C=>C.image_type==="page"),E=C=>{const N=new Date(C),$=new Date().getTime()-N.getTime(),T=Math.floor($/(1e3*60*60));return T<24?T===0?"Just now":`${T}h ago`:N.toLocaleDateString()};return r||a||o?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx(Me,{className:"h-8 w-8 animate-spin mx-auto text-primary"}),i.jsx("p",{className:"text-muted-foreground",children:"Loading edits..."})]})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Edit Requests Monitor"}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-7xl",children:[c==="image"?i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[i.jsx(Ie,{children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Total Edits"}),i.jsx(Ke,{className:"text-3xl",children:d.length})]})}),i.jsx(Ie,{children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Cover Edits"}),i.jsx(Ke,{className:"text-3xl text-primary",children:w.length})]})}),i.jsx(Ie,{children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Page Edits"}),i.jsx(Ke,{className:"text-3xl text-blue-500",children:j.length})]})})]}):i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[i.jsx(Ie,{children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Total Story Edits"}),i.jsx(Ke,{className:"text-3xl",children:f.length})]})}),i.jsx(Ie,{children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Review Stage Edits"}),i.jsx(Ke,{className:"text-3xl text-primary",children:f.filter(C=>C.edit_stage==="review").length})]})}),i.jsx(Ie,{children:i.jsxs(ze,{className:"pb-2",children:[i.jsx(Rt,{children:"Post-Creation Edits"}),i.jsx(Ke,{className:"text-3xl text-blue-500",children:f.filter(C=>C.edit_stage==="post_creation").length})]})})]}),c==="image"?i.jsxs(Mv,{value:y,onValueChange:m,children:[i.jsxs(X0,{className:"mb-4",children:[i.jsxs(Zn,{value:"all",children:["All Edits (",d.length,")"]}),i.jsxs(Zn,{value:"cover",children:["Cover (",w.length,")"]}),i.jsxs(Zn,{value:"page",children:["Pages (",j.length,")"]})]}),i.jsx(Ql,{value:"all",children:i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"All Edit Requests"}
8174),i.jsx(Rt,{children:d.length===0?"No edit requests yet":`Showing all ${d.length} edit request(s)`})]}),i.jsx(qe,{children:d.length===0?i.jsxs("div",{className:"text-center py-12",children:[i.jsx("p",{className:"text-lg font-medium",children:"No edit requests"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Edit requests will appear here when users edit their images."})]}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Story"}),i.jsx(Ce,{children:"Type"}),i.jsx(Ce,{children:"User"}),i.jsx(Ce,{children:"Edit Request"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Date"}),i.jsx(Ce,{className:"text-right",children:"Actions"})]})}),i.jsx(ga,{children:d.map((C,N)=>{var A;return i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium",children:i.jsx("button",{onClick:()=>e(`/app/book-preview?id=${C.story_id}`),className:"hover:underline text-left",children:C.story_title||"Untitled"})}),i.jsx(Ee,{children:C.image_type==="cover"?i.jsx(Re,{children:"Cover"}):i.jsxs(Re,{variant:"outline",children:["Page ",C.page_number]})}),i.jsx(Ee,{className:"text-sm text-muted-foreground",children:C.user_email}),i.jsxs(Ee,{className:"max-w-xs truncate text-sm",children:[(A=C.edit_request)==null?void 0:A.substring(0,60),"..."]}),i.jsx(Ee,{children:i.jsx(Re,{variant:C.status==="success"?"default":C.status==="failed"?"destructive":"secondary",className:"whitespace-nowrap",children:C.status==="success"?"â Success":C.status==="failed"?"â Failed":"â³ Pending"})}),i.jsx(Ee,{className:"text-sm text-muted-foreground whitespace-nowrap",children:E(C.edited_at)}),i.jsx(Ee,{className:"text-right",children:i.jsxs("div",{className:"flex gap-2 justify-end",children:[i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>g(C),children:[i.jsx(Qa,{className:"h-4 w-4 mr-1"}),"View"]}
8174),i.jsxs(le,{size:"sm",variant:"outline",disabled:!0,title:"AI Insights disabled to save tokens",children:[i.jsx(Qt,{className:"h-4 w-4 mr-1 opacity-50"}),"Disabled"]})]})})]},`${C.story_id}-${C.page_number}-${N}`)})})]})})})]})}),i.jsx(Ql,{value:"cover",children:i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Cover Edit Requests"}),i.jsxs(Rt,{children:["Showing ",w.length," cover edit(s)"]})]}),i.jsx(qe,{children:w.length===0?i.jsx("div",{className:"text-center py-12",children:i.jsx("p",{className:"text-lg font-medium",children:"No cover edits"})}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Story"}),i.jsx(Ce,{children:"User"}),i.jsx(Ce,{children:"Edit Request"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Date"}),i.jsx(Ce,{className:"text-right",children:"Actions"})]})}),i.jsx(ga,{children:w.map((C,N)=>{var A;return i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium",children:i.jsx("button",{onClick:()=>e(`/app/book-preview?id=${C.story_id}`),className:"hover:underline text-left",children:C.story_title||"Untitled"})}),i.jsx(Ee,{className:"text-sm text-muted-foreground",children:C.user_email}),i.jsxs(Ee,{className:"max-w-xs truncate text-sm",children:[(A=C.edit_request)==null?void 0:A.substring(0,60),"..."]}),i.jsx(Ee,{children:i.jsx(Re,{variant:C.status==="success"?"default":C.status==="failed"?"destructive":"secondary",className:"whitespace-nowrap",children:C.status==="success"?"â Success":C.status==="failed"?"â Failed":"â³ Pending"})}),i.jsx(Ee,{className:"text-sm text-muted-foreground whitespace-nowrap",children:E(C.edited_at)}),i.jsx(Ee,{className:"text-right",children:i.jsxs("div",{className:"flex gap-2 justify-end",children:[i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>g(C),children:[i.jsx(Qa,{className:"h-4 w-4 mr-1"}),"View"]}
8174),i.jsxs(le,{size:"sm",variant:"outline",disabled:!0,title:"AI Insights disabled to save tokens",children:[i.jsx(Qt,{className:"h-4 w-4 mr-1 opacity-50"}),"Disabled"]})]})})]},`cover-${C.story_id}-${N}`)})})]})})})]})}),i.jsx(Ql,{value:"page",children:i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Page Edit Requests"}),i.jsxs(Rt,{children:["Showing ",j.length," page edit(s)"]})]}),i.jsx(qe,{children:j.length===0?i.jsx("div",{className:"text-center py-12",children:i.jsx("p",{className:"text-lg font-medium",children:"No page edits"})}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Story"}),i.jsx(Ce,{children:"Page"}),i.jsx(Ce,{children:"User"}),i.jsx(Ce,{children:"Edit Request"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Date"}),i.jsx(Ce,{className:"text-right",children:"Actions"})]})}),i.jsx(ga,{children:j.map((C,N)=>{var A;return i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium",children:i.jsx("button",{onClick:()=>e(`/app/book-preview?id=${C.story_id}`),className:"hover:underline text-left",children:C.story_title||"Untitled"})}),i.jsx(Ee,{children:i.jsxs(Re,{variant:"outline",children:["Page ",C.page_number]})}),i.jsx(Ee,{className:"text-sm text-muted-foreground",children:C.user_email}),i.jsxs(Ee,{className:"max-w-xs truncate text-sm",children:[(A=C.edit_request)==null?void 0:A.substring(0,60),"..."]}),i.jsx(Ee,{children:i.jsx(Re,{variant:C.status==="success"?"default":C.status==="failed"?"destructive":"secondary",className:"whitespace-nowrap",children:C.status==="success"?"â Success":C.status==="failed"?"â Failed":"â³ Pending"})}),i.jsx(Ee,{className:"text-sm text-muted-foreground whitespace-nowrap",children:E(C.edited_at)}),i.jsx(Ee,{className:"text-right",children:i.jsxs("div",{className:"flex gap-2 justify-end",children:[i.jsxs(le,{size:"sm",variant:"outline",onClick:()=>g(C),children:[i.jsx(Qa,{className:"h-4 w-4 mr-1"}),"View"]}
8174),i.jsxs(le,{size:"sm",variant:"outline",disabled:!0,title:"AI Insights disabled to save tokens",children:[i.jsx(Qt,{className:"h-4 w-4 mr-1 opacity-50"}),"Disabled"]})]})})]},`page-${C.story_id}-${C.page_number}-${N}`)})})]})})})]})}),i.jsx(Ql,{value:"insights",children:i.jsx(xHt,{})})]}):i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Story Text Edits"}),i.jsx(Rt,{children:"View all text edits made during review or after story creation"})]}),i.jsx(qe,{children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Story"}),i.jsx(Ce,{children:"User"}),i.jsx(Ce,{children:"Page"}),i.jsx(Ce,{children:"Original Text"}),i.jsx(Ce,{children:"Edited Text"}),i.jsx(Ce,{children:"Stage"}),i.jsx(Ce,{children:"Date"}),i.jsx(Ce,{children:"Actions"})]})}),i.jsx(ga,{children:f.length===0?i.jsx(Jt,{children:i.jsx(Ee,{colSpan:8,className:"text-center text-muted-foreground py-12",children:"No story text edits found"})}):f.map((C,N)=>i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium max-w-[200px] truncate",children:C.story_title}),i.jsx(Ee,{className:"max-w-[150px] truncate text-sm text-muted-foreground",children:C.user_email}),i.jsx(Ee,{children:i.jsx(Re,{variant:"outline",children:C.page_number})}),i.jsx(Ee,{className:"max-w-[200px] truncate text-sm text-muted-foreground",children:C.original_text}),i.jsx(Ee,{className:"max-w-[200px] truncate text-sm",children:C.edited_text}),i.jsx(Ee,{children:i.jsx(Re,{variant:C.edit_stage==="review"?"default":"secondary",children:C.edit_stage==="review"?"Review":"Post-Creation"})}),i.jsx(Ee,{children:E(C.edited_at)}),i.jsx(Ee,{children:i.jsx(le,{variant:"ghost",size:"sm",onClick:()=>x(C),children:i.jsx(Qa,{className:"h-4 w-4"})})})]},N))})]})})]})]}),v&&i.jsx(gHt,{edit:v,onClose:()=>g(null)}),b&&i.jsx(yHt,{edit:b,isOpen:!!b,onClose:()=>x(null)})]})},sPe={slug:"kids-book-subscription",path:"/lp/kids-book-subscription",headline:"Personalized Kids Books, One Story at a Time",subheadline:"Create a new personalized digital story matched to your child's reading stage, whenever you want one. Read it on Kibbi the same day, then print the favorites as paperback or hardcover keepsakes.",ctaText:"Try it for free",ctaSubtext:"No credit card required. $9.99 per story, only if you love it. Print only when you want to.",metaTitle:"Kids Book Subscription for Personalized Storytime | Kibbi",metaDescription:"Personalized kids books built around your child, $9.99 per story. Read digitally the same day, then print the favorites as keepsakes. Try it for free.",canonicalPath:"/lp/kids-book-subscription"},oPe={slug:"monthly-book-club-kids",path:"/lp/monthly-book-club-kids",headline:"Stories Where Your Child Is the Main Character",subheadline:"Create a new personalized digital story whenever you like, with the same child-centered magic: age-matched reading, familiar details, and the option to print the stories worth keeping.",ctaText:"Create Their Story",ctaSubtext:"Try it for free. Read online first, print later.",metaTitle:"Monthly Book Club for Kids â Personalized Stories | Kibbi",metaDescription:"Stories where your child is the main character. Create a new personalized story whenever you want, matched to their reading stage. Try it for free.",canonicalPath:"/lp/monthly-book-club-kids"},lPe={slug:"new-sibling-book",path:"/lp/new-sibling-book",headline:"A New Sibling Book â Starring Your Soon-to-Be Big Kid",subheadline:"A personalized hardcover that helps your child see themselves as the proud big sister or big brother. Their name, their look, their story.",ctaText:"Create Their Sibling Story",ctaSubtext:"Free preview. Hardcover printed and shipped to your door.",metaTitle:"New Sibling Book â Personalized Big Brother & Sister Story | Kibbi",metaDescription:"A personalized new sibling book starring your child as the proud big brother or big sister. Hardcover printed and shipped. Try it for free.",canonicalPath:"/lp/new-sibling-book"},cPe={slug:"books-about-feelings",path:"/lp/books-about-feelings",headline:"Books About Feelings â With Your Child Right in the Story",subheadline:"Personalized stories that help kids name and navigate big emotions. Kindness, bravery, change, worry â told through a character who looks and sounds like them.",ctaText:"Try it for free",ctaSubtext:"Try it for free. Read online tonight or print a comforting keepsake.",metaTitle:"Books About Feelings for Kids â Personalized Stories | Kibbi",metaDescription:"Personalized books about feelings starring your child. Help kids name and navigate big emotions through stories. Ages 0â9. Try it for free.",canonicalPath:"/lp/books-about-feelings"},wHt={slug:"decodable-books",path:"/lp/decodable-books",headline:"Decodable Books â Personalized With Your Child as the Hero",subheadline:"Controlled vocabulary and phonics-friendly text, matched to your childâs exact reading level. The first decodable reader that stars someone they know: themselves.",ctaText:"Try it for free",ctaSubtext:"Built on reading science. Ages 3-9. Read online first, print the best ones later.",metaTitle:"Decodable Books â Personalized Phonics Readers | Kibbi",metaDescription:"Personalized decodable books with phonics-friendly text matched to your childâs reading level. Read online first, then print the stories worth keeping. Ages 3â9. Try it for free.",canonicalPath:"/lp/decodable-books"},uPe={slug:"grandparent-book-gift",path:"/lp/grandparent-book-gift",headline:"A Grandparent Book Gift That Feels Personal From the First Page",subheadline:"Give your grandchild a personalized storybook with their name, interests, and a story just for them. Try it for free, then print the favorites or gift another story whenever you like.",ctaText:"Create Their Gift Story",ctaSubtext:"No tech skills needed. Digital first, optional print keepsakes, stories from $9.99.",metaTitle:"Grandparent Book Gift â Personalized Storybooks | Kibbi",metaDescription:"A grandparent gift that feels thoughtful from the first page. Create a personalized storybook, then print the favorites or gift another story anytime.",canonicalPath:"/lp/grandparent-book-gift"},dPe={slug:"mothers-day-book-gift",path:"/lp/mothers-day-book-gift",headline:"A Motherâs Day Gift Sheâll Read to Them a Hundred Times",subheadline:"A personalized hardcover book about mom and her child â their names, their story, their world. The kind of gift that lives on the nightstand, not in a drawer.",ctaText:"Create Her Book",ctaSubtext:"Free preview. Hardcover ships in time for Motherâs Day.",metaTitle:"Motherâs Day Book Gift â Personalized Story for Mom | Kibbi",metaDescription:"A personalized Motherâs Day book about mom and her child. Hardcover printed and shipped in time. The gift sheâll read a hundred times. Try it for free.",canonicalPath:"/lp/mothers-day-book-gift"},hPe={slug:"fathers-day-book-gift",path:"/lp/fathers-day-book-gift",headline:"A Fatherâs Day Gift Heâll Actually Want to Read Out Loud",subheadline:"A personalized hardcover about dad and his kid. Their adventure, their characters, their bedtime story. Not a tie. Not a mug. A book theyâll share for years.",ctaText:"Create His Book",ctaSubtext:"Free preview. Hardcover ships in time for Fatherâs Day.",metaTitle:"Fatherâs Day Book Gift â Personalized Story for Dad | Kibbi",metaDescription:"A personalized Fatherâs Day book about dad and his kid. Hardcover printed and shipped in time. Not a tie â a book theyâll share for years.",canonicalPath:"/lp/fathers-day-book-gift"},fPe={slug:"wonderbly-alternative",path:"/lp/wonderbly-alternative",headline:"A Wonderbly Alternative for Families Who Want More Than One Keepsake",subheadline:"One personalized book is wonderful. Kibbi helps you create new stories around your child whenever you want, matched to their reading stage and ready to read tonight or print later.",ctaText:"Try it for free",ctaSubtext:"Try it for free. Digital first, optional print keepsakes. Stories from $9.99.",metaTitle:"Wonderbly Alternative â Personalized Storybooks | Kibbi",metaDescription:"A Wonderbly alternative for families who want personalized storybooks matched to a child's reading stage, with digital reading now and optional print keepsakes later.",canonicalPath:"/lp/wonderbly-alternative"},pPe={slug:"personalized-early-reader",path:"/lp/personalized-early-reader",headline:"Personalized Early Readers â Matched to Their Reading Level",subheadline:"Learn-to-read books starring your child. Age-matched vocabulary, sentence length tuned to their stage, and a face on every page that makes them want to keep going.",ctaText:"Try it for free",ctaSubtext:"Read-aloud (0-2), learning to read (3-5), independent reader (6-9).",metaTitle:"Personalized Early Readers â Age-Matched Books | Kibbi",metaDescription:"Personalized early readers matched to your childâs reading level. Age-matched vocabulary, starring your child. Ages 0â9. Try it for free.",canonicalPath:"/lp/personalized-early-reader"},mPe={slug:"starting-school-book",path:"/lp/starting-school-book",headline:"A Starting School Book That Makes the First Day Feel Less Scary",subheadline:"Create a personalized story about your child starting school, meeting new friends, and knowing you always come back. Matched to their age and reading stage, so it feels comforting instead of generic.",ctaText:"Try it for free",ctaSubtext:"Try it for free. Read tonight or print a keepsake for the first week of school.",metaTitle:"Starting School Book for Kids â Personalized First Day Story | Kibbi",metaDescription:"A personalized starting school book starring your child. Help them prepare for preschool or kindergarten with a story matched to their age and reading stage. Try it for free.",canonicalPath:"/lp/starting-school-book"},kHt=[sPe,oPe,lPe,cPe,wHt,uPe,dPe,hPe,fPe,pPe,mPe],Ele=Object.assign(Object.create(null),{"best-children-s-book-software-for-teachers-to-create-personalized-books":"/post/the-best-ai-tools-for-writing-kids-books","best-personalized-children-s-book-creation-software-for-teachers":"/post/the-best-ai-tools-for-writing-kids-books","best-personalized-children-s-book-platform-for-elementary-school-teachers":"/post/the-best-ai-tools-for-writing-kids-books","best-personalized-children-s-book-platform-for-teachers":"/post/the-best-ai-tools-for-writing-kids-books","best-personalized-children-s-book-software-for-teachers":"/post/the-best-ai-tools-for-writing-kids-books","best-platform-for-teachers-to-create-personalized-children-s-books":"/post/the-best-ai-tools-for-writing-kids-books","best-software-for-creating-personalized-children-s-books-for-teachers":"/post/the-best-ai-tools-for-writing-kids-books","best-platform-for-creating-personalized-children-s-books":"/post/the-best-ai-tools-for-writing-kids-books","best-platform-for-creating-personalized-children-s-books-with-ai":"/post/the-best-ai-tools-for-writing-kids-books","best-software-for-creating-personalized-children-s-books":"/post/the-best-ai-tools-for-writing-kids-books","best-software-for-creating-personalized-children-s-books-online":"/post/the-best-ai-tools-for-writing-kids-books","best-software-for-creating-personalized-children-s-picture-books":"/post/the-best-ai-tools-for-writing-kids-books","is-kibbi-worth-it-compared-to-wonderbly":"/post/kibbi-vs-wonderbly","is-kibbi-worth-it-compared-to-wonderbly-for-cost-subscriptions-and-ownership":"/post/kibbi-vs-wonderbly","is-kibbi-worth-it-compared-to-wonderbly-for-personalized-children-s-books":"/post/kibbi-vs-wonderbly","is-kibbi-worth-it-compared-to-wonderbly-for-personalized-children-s-books-pricing-and-ownership":"/post/kibbi-vs-wonderbly","is-kibbi-worth-it-compared-to-wonderbly-on-price-and-ownership-for-personalized-children-s-books":"/post/kibbi-vs-wonderbly","is-kibbi-worth-it-compared-to-wonderbly-on-price-subscriptions-and-content-ownership":"/post/kibbi-vs-wonderbly","is-kibbi-worth-the-price-compared-to-wonderbly":"/post/kibbi-vs-wonderbly","is-kibbi-worth-the-price-compared-to-wonderbly-for-personalized-children-s-books":"/post/kibbi-vs-wonderbly","kibbi-vs-wonderbly-features-and-pricing-for-personalized-children-s-books":"/post/kibbi-vs-wonderbly","kibbi-vs-wonderbly-personalized-children-s-book-creator-features-and-pricing":"/post/kibbi-vs-wonderbly","kibbi-vs-wonderbly-personalized-children-s-book-creator-pricing-and-capabilities":"/post/kibbi-vs-wonderbly","kibbi-vs-wonderbly-personalized-children-s-book-platform-features-and-pricing":"/post/kibbi-vs-wonderbly","kibbi-vs-wonderbly-pricing-for-personalized-children-s-book-creation":"/post/kibbi-vs-wonderbly","kibbi-vs-wonderbly-which-children-s-book-creator-has-better-personalization-features":"/post/kibbi-vs-wonderbly","alternatives-to-wonderbly-for-creating-personalized-children-s-books":"/post/wonderbly-alternatives","alternatives-to-wonderbly-for-creating-personalized-children-s-books-online":"/post/wonderbly-alternatives","wonderbly-alternatives-for-creating-personalized-children-s-books":"/post/wonderbly-alternatives","wonderbly-alternatives-for-creating-personalized-children-s-books-online":"/post/wonderbly-alternatives"});
8174function _Ht(e){return[{path:"/personalized-books-for-kids",label:"Personalized books"},{path:"/",label:"Homepage"},{path:"/name-book",label:"Name book"},{path:"/christmas-book-for-kids",label:"Christmas book"},...kHt.map(t=>({path:t.path,label:t.slug.charAt(0).toUpperCase()+t.slug.slice(1).replace(/-/g," ")})),...e.filter(t=>!Ele[t.slug]).map(t=>({path:`/p/${t.slug}`,label:`${t.title}${t.is_published?"":" (draft)"}`}))]}const Pve=e=>e?JSON.stringify([e.useDefault,e.selected.map(t=>t.storyId)]):"";function Lve({book:e}){const t=e&&xSe(e);return t?i.jsx("img",{"data-testid":"book-cover",src:t,alt:"",loading:"lazy",width:"48",height:"72",className:"w-12 h-[72px] rounded object-cover shrink-0"}):i.jsx("div",{className:"w-12 h-[72px] rounded bg-muted shrink-0"})}function SHt({pagePath:e,onLockChange:t}){const[r,n]=k.useState(null),[a,s]=k.useState(null),[o,l]=k.useState(!1),[c,u]=k.useState(0),[d,h]=k.useState(null),[f,p]=k.useState(!1),[y,m]=k.useState(!1),[v,g]=k.useState(""),[b,x]=k.useState(0),[_,w]=k.useState(null),[j,E]=k.useState(!1),[C,N]=k.useState(0),A=Pve(r)!==Pve(a);k.useEffect(()=>(t(A||f),()=>t(!1)),[A,f,t]),k.useEffect(()=>{let z=!0;return l(!1),GKe(e).then(Y=>{z&&(n(Y),s(Y))}).catch(()=>{z&&l(!0)}),()=>{z=!1}},[e,c]),k.useEffect(()=>{let z=!0;w(null),E(!1);const Y=window.setTimeout(()=>{KKe(v,b).then(W=>{z&&w(W)}).catch(()=>{z&&E(!0)})},200);return()=>{z=!1,window.clearTimeout(Y)}},[v,b,C]);const $=z=>{s(z),h(null),m(!1)},T=async()=>{if(!(!a||f)){p(!0),h(null),m(!1);try{await YKe(e,a.useDefault?null:a.selected.map(z=>z.storyId)),n(a),m(!0)}catch{h("Could not save. Your changes are kept. Check your connection and that every selected book is still public, then try again.")}finally{p(!1)}}};if(o)return i.jsxs("div",{role:"alert",className:"space-y-3",children:[i.jsx("p",{children:"Could not load this pageâs saved book selection. Try again in a moment."}),i.jsx(le,{variant:"outline",onClick:()=>u(z=>z+1),children:"Retry loading selection"})]});if(!a)return i.jsxs("p",{role:"status",className:"flex items-center gap-2",children:[i.jsx(Me,{className:"w-4 h-4 animate-spin"})," Loading selectionâ¦"]});const F=a.selected.some(z=>
8174!z.book||!ute(z.book)),M=(z,Y)=>{const W=[...a.selected];[W[z],W[z+Y]]=[W[z+Y],W[z]],$({useDefault:!1,selected:W})};return i.jsxs("div",{className:"space-y-6","data-testid":"book-selection-editor",children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i.jsx(le,{variant:"outline",disabled:f||a.useDefault,onClick:()=>$({useDefault:!0,selected:[]}),children:"Restore default"}),i.jsx(le,{variant:"outline",disabled:f||!a.useDefault&&a.selected.length===0,onClick:()=>$({useDefault:!1,selected:[]}),children:"Hide carousel"}),i.jsx("p",{className:"text-sm text-muted-foreground","data-testid":"collection-mode",children:a.useDefault?vSe(e)?"Default: latest public books":"Default: no carousel":a.selected.length?`${a.selected.length} of ${au} books selected`:"Carousel hidden"})]}),i.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[i.jsxs("div",{className:"min-w-0 space-y-3","data-testid":"selected-books",children:[i.jsx("h3",{className:"font-semibold",children:"Selected books, in display order"}),!a.selected.length&&i.jsx("p",{className:"text-sm text-muted-foreground",children:"Add books from the public library below to choose a set for this page."}),i.jsx("ol",{className:"space-y-2",children:a.selected.map((z,Y)=>{var ee;const W=((ee=z.book)==null?void 0:ee.story_title)||"Unavailable book";return i.jsxs("li",{className:"flex flex-wrap items-center gap-3 rounded-lg border p-3","data-testid":`selected-book-${z.storyId}`,children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:Y+1}),i.jsx(Lve,{book:z.book}),i.jsxs("div",{className:"flex-1 min-w-24 break-words text-sm",children:[i.jsx("p",{className:"font-medium",children:W}
8174),(!z.book||!ute(z.book))&&i.jsx("p",{className:"text-destructive",children:"No longer public and approved. Remove before saving."})]}),i.jsxs("div",{className:"flex gap-1 ml-auto",children:[i.jsx(le,{variant:"ghost",size:"icon","aria-label":`Move ${W} earlier`,disabled:f||Y===0,onClick:()=>M(Y,-1),children:i.jsx(Ub,{"aria-hidden":"true",className:"w-4 h-4"})}),i.jsx(le,{variant:"ghost",size:"icon","aria-label":`Move ${W} later`,disabled:f||Y===a.selected.length-1,onClick:()=>M(Y,1),children:i.jsx(zb,{"aria-hidden":"true",className:"w-4 h-4"})}),i.jsx(le,{variant:"ghost",size:"icon","aria-label":`Remove ${W}`,disabled:f,onClick:()=>$({useDefault:!1,selected:a.selected.filter(Z=>Z.storyId!==z.storyId)}),children:i.jsx(hi,{"aria-hidden":"true",className:"w-4 h-4"})})]})]},z.storyId)})})]}),i.jsxs("div",{className:"min-w-0 space-y-3",children:[i.jsx("h3",{className:"font-semibold",children:"Choose from the public library"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Only public, admin-approved books with a share link appear here."}),i.jsx(Pt,{"aria-label":"Search book titles",placeholder:"Search book titles",value:v,disabled:f,onChange:z=>{g(z.target.value),x(0)}}),j?i.jsxs("div",{role:"alert",children:[i.jsx("p",{children:"Could not load public books."}),i.jsx(le,{variant:"outline",onClick:()=>N(z=>z+1),children:"Retry book search"})]}):_?i.jsxs(i.Fragment,{children:[!_.books.length&&i.jsx("p",{className:"text-sm text-muted-foreground",children:"No books match. Clear the search or approve and share a book from Admin â Stories."}),i.jsx("ul",{className:"max-h-[32rem] overflow-y-auto space-y-2 pr-1",children:_.books.map(z=>{const Y=a.selected.some(W=>W.storyId===z.id);return i.jsxs("li",{className:"flex items-center gap-3 rounded-lg border p-3",children:[i.jsx(Lve,{book:z}),i.jsx("span",{className:"flex-1 min-w-0 break-words text-sm",children:z.story_title}),i.jsx(le,{size:"sm",variant:"outline","aria-label":`Add ${z.story_title}`,disabled:f||Y||a.selected.length>=au,onClick:()=>$({useDefault:!1,selected:[...a.selected,{storyId:z.id,book:z}]}),children:Y?"Added":"Add"})]},z.id)})})]}):i.jsx("p",{role:"status",className:"text-sm text-muted-foreground",children:"Loading public booksâ¦"}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(le,{variant:"outline",size:"sm",disabled:f||!_||b===0,onClick:()=>x(z=>z-1),children:"Previous books"}),i.jsxs("span",{className:"text-sm",children:["Page ",b+1]}),i.jsx(le,{variant:"outline",size:"sm",disabled:f||!(_!=null&&_.hasMore),onClick:()=>x(z=>z+1),children:"Next books"})]})]})]}),i.jsxs("div",{className:"sticky bottom-0 z-10 border-t bg-card py-4 space-y-3",children:[d&&i.jsx("p",{role:"alert",className:"text-sm text-destructive",children:d}),y&&i.jsx("p",{role:"status",className:"text-sm",children:"Selection saved for this page."}),i.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i.jsxs(le,{onClick:T,disabled:!A||f||F,"data-testid":"save-book-selection",children:[f&&i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"})," ",f?"Savingâ¦":"Save selection"]}),i.jsx(le,{variant:"outline",disabled:!A||f,onClick:()=>{r&&$(r)},children:"Discard changes"}),A&&i.jsx("p",{className:"text-sm text-muted-foreground",children:"Save or discard before switching pages."})]})]})]})}function jHt({pages:e}){var c;const t=_Ht(e),[r,n]=ka(),a=r.get("booksFor"),s=((c=t.find(u=>u.path===a))==null?void 0:c.path)??t[0].path,[o,l]=k.useState(!1);return i.jsxs(Ie,{className:"mb-8","data-testid":"landing-page-book-manager",children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Books on landing pages"}),i.jsx(Rt,{children:"Choose a separate set and display order for each page."})]}),i.jsxs(qe,{className:"space-y-6",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx("label",{htmlFor:"book-landing-page",className:"block text-sm font-medium",children:"Landing page"}),i.jsx("select",{id:"book-landing-page",className:"w-full min-w-0 rounded-md border bg-background px-3 py-2 text-sm",value:s,disabled:o,onChange:u=>{const d=u.target.value;n(h=>(h.set("booksFor",d),h),{replace:!0})},children:t.map(u=>i.jsxs("option",{value:u.path,children:[u.label," · ",u.path]},u.path))})]}),i.jsx(SHt,{pagePath:s,onLockChange:l},s)]})]})}const EHt=()=>{const e=wt(),{isAdmin:t,loading:r}=Fr(),[n,a]=k.useState([]),[s,o]=k.useState(!0),[l,c]=k.useState(null);k.useEffect(()=>{!r&&!t&&e("/")},[t,r,e]),k.useEffect(()=>{t&&u()},[t]);const u=async()=>{o(!0);const{data:h,error:f}=await oe.from("marketing_pages").select("id, slug, page_type, title, meta_description, is_published, created_at, updated_at").order("created_at",{ascending:!1});f?(Ct.error("Failed to load marketing pages"),console.error(f)):a(h||[]),o(!1)},d=async h=>{c(h.id);const{error:f}=await oe.from("marketing_pages").update({is_published:!h.is_published}).eq("id",h.id);f?(Ct.error("Failed to update page status"),console.error(f)):(a(n.map(p=>p.id===h.id?{...p,is_published:!p.is_published}:p)),Ct.success(`Page ${h.is_published?"unpublished":"published"}`)),c(null)};return r||s?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):t?i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Marketing Pages"}),i.jsxs("main",{className:"container mx-auto px-4 py-8",children:[i.jsx(jHt,{pages:n}),i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"All Marketing Pages"}),i.jsxs(Rt,{children:[n.length," marketing page",n.length!==1?"s":""," total"]})]}),i.jsx(qe,{children:n.length===0?i.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No marketing pages found"}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Title"}),i.jsx(Ce,{children:"Slug"}),i.jsx(Ce,{children:"Type"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Created"}),i.jsx(Ce,{children:"Updated"}),i.jsx(Ce,{className:"text-right",children:"Actions"})]})}),i.jsx(ga,{children:n.map(h=>i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium max-w-[200px] truncate",children:h.title}),i.jsxs(Ee,{className:"text-muted-foreground",children:["/p/",h.slug]}),i.jsx(Ee,{children:i.jsx(Re,{variant:"outline",children:h.page_type})}),i.jsx(Ee,{children:i.jsx(Re,{variant:h.is_published?"default":"secondary",children:h.is_published?"Published":"Draft"})}),i.jsx(Ee,{className:"text-muted-foreground text-sm",children:ci(new Date(h.created_at),"MMM d, yyyy")}),i.jsx(Ee,{className:"text-muted-foreground text-sm",children:ci(new Date(h.updated_at),"MMM d, yyyy")}),i.jsx(Ee,{className:"text-right",children:i.jsxs("div",{className:"flex items-center justify-end gap-3",children:[i.jsx($k,{checked:h.is_published,onCheckedChange:()=>d(h),disabled:l===h.id}),i.jsx(le,{variant:"ghost",size:"icon",asChild:!0,children:i.jsx("a",{href:`/p/${h.slug}`,target:"_blank",rel:"noopener noreferrer",children:i.jsx(oc,{className:"h-4 w-4"})})})]})})]}
8174,h.id))})]})})})]})]})]}):null},CHt=["0-2","3-5","6-9"],NHt={"0-2":["read_aloud"],"3-5":["read_aloud","learning_to_read","independent_reader"],"6-9":["read_aloud","learning_to_read","independent_reader"]},gPe=[];for(const e of CHt)for(const t of NHt[e])gPe.push({ageRange:e,readingLevel:t});const THt=new Set(["review","draft","completed"]);function DV(e){return e.status==="generating"&&e.story_id!==null&&e.story_status!==null&&THt.has(e.story_status)}function lb(e){Ct.error(`Failed: ${e instanceof Error?e.message:String(e)}`)}async function Ove(e){const[t,r]=await Promise.all([oe.from("stories").select("story_content").eq("id",e).single(),oe.functions.invoke("generate-all-prompts",{body:{storyId:e}})]);if(t.error||!t.data)throw new Error("Story not found");if(r.error)throw r.error;const n=t.data.story_content,a=Object.keys((n==null?void 0:n.pages)||{}).length,s=[{story_id:e,page_number:0,priority:2,status:"pending",retry_count:0,worker_id:null},...Array.from({length:a},(o,l)=>({story_id:e,page_number:l+1,priority:l+1<=4?1:0,status:"pending",retry_count:0,worker_id:null}))];return await oe.from("image_generation_queue").upsert(s,{onConflict:"story_id,page_number"}),a+1}function AHt(){const e=El(),[t,r]=k.useState(()=>ci(spe(new Date),"yyyy-MM-dd")),n=k.useMemo(()=>{const y=new Date,m=[];for(let v=-6;v<=2;v++){const g=v===0?y:v<0?Ylt(y,Math.abs(v)):cEe(y,v),b=spe(g);m.push({value:ci(b,"yyyy-MM-dd"),label:ci(b,"MMMM yyyy")})}return m},[]),{data:a,isLoading:s,refetch:o}=ei({queryKey:["scheduled-generations",t],queryFn:async()=>{const{data:y,error:m}=await oe.rpc("get_scheduled_generations_with_details",{p_month:t});if(m)throw m;return y},refetchInterval:y=>{const m=y.state.data;return(m==null?void 0:m.some(g=>g.status==="generating"))?1e4:!1}}),l=k.useMemo(()=>{const y=new Set;let m=0,v=0,g=0,b=0;const x=[];if(a)for(const w of a)y.add(`${w.age_range}|${w.reading_level}`),w.status==="completed"?m++:w.status==="generating"?v++:w.status==="failed"&&g++,DV(w)&&w.story_status!=="completed"&&b++,w.error_message&&x.push(w);const _=gPe.filter(w=>!y.has(`${w.ageRange}|${w.readingLevel}`));return{missingCombinations:_,stuckStoriesCount:b,summary:{completed:m,generating:v,failed:g,notStarted:_.length},generationsWithErrors:x}},[a]),c=()=>e.invalidateQueries({queryKey:["scheduled-generations"]}),u=rl({mutationFn:async()=>{const{data:y,error:m}=await oe.functions.invoke("generate-scheduled-stories",{body:{month:t,source:"admin_manual"}});if(m)throw m;return y},onSuccess:y=>{Ct.success(`Generation started: ${y.summary.started} stories`),c()},onError:lb}),d=rl({mutationFn:async({ageRange:y,readingLevel:m})=>{const{data:v,error:g}=await oe.functions.invoke("generate-scheduled-stories",{body:{month:t,source:"admin_manual",specificCombination:{ageRange:y,readingLevel:m}}});if(g)throw g;return v},onSuccess:()=>{Ct.success("Story generation started"),c()},onError:lb}),h=rl({mutationFn:async y=>{const{data:m,error:v}=await oe.functions.invoke("complete-scheduled-story",{body:{storyId:y,action:"complete"}});if(v)throw v;return m},onSuccess:()=>{Ct.success("Story marked as complete and published"),c()},onError:lb}),f=rl({mutationFn:async y=>{Ct.info("Generating image prompts...");const m=await Ove(y);Ct.info(`Queued ${m} images, triggering processor...`);const{error:v}=await oe.functions.invoke("process-image-queue",{body:{}});if(v)throw v;return{queued:m}},onSuccess:y=>{Ct.success(`Started generating ${y.queued} images`),c()},onError:lb}),p=rl({mutationFn:async()=>{const y=(a==null?void 0:a.filter(g=>DV(g)&&g.story_status!=="completed"))||[];if(y.length===0)throw new Error("No stuck stories found");Ct.info(`Retrying images for ${y.length} stuck stories...`);const v=(await Promise.allSettled(y.map(g=>Ove(g.story_id)))).map((g,b)=>({storyId:y[b].story_id,success:g.status==="fulfilled",pageCount:g.status==="fulfilled"?g.value:void 0,error:g.status==="rejected"?g.reason instanceof Error?g.reason.message:String(g.reason):void 0}));return await oe.functions.invoke("process-image-queue",{body:{}}),v},onSuccess:y=>{const m=y.filter(g=>g.success).length,v=y.filter(g=>g.success).reduce((g,b)=>g+(b.pageCount||0),0);Ct.success(`Queued ${v} images for ${m} stories`),c()},onError:lb});return{selectedMonth:t,setSelectedMonth:r,monthOptions:n,generations:a,isLoading:s,refetch:o,...l,generateAllMutation:u,generateSingleMutation:d,completeStoryMutation:h,retryImagesMutation:f,retryAllStuckImagesMutation:p}}const MHt=[{key:"completed",label:"Completed"},{key:"generating",label:"Generating"},{key:"failed",label:"Failed"},{key:"notStarted",label:"Not Started"}];function IHt(e){return i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:MHt.map(t=>i.jsxs("div",{className:"bg-card p-4 rounded-lg border",children:[i.jsx("div",{className:"text-2xl font-bold",children:e[t.key]}),i.jsx("div",{className:"text-sm text-muted-foreground",children:t.label})]},t.key))})}function Cle(e){return e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function PHt({combinations:e,onGenerate:t,isPending:r}){return e.length===0?null:i.jsxs("div",{className:"mb-6 p-4 bg-muted/50 rounded-lg border",children:[i.jsx("h3",{className:"font-semibold mb-2",children:"Missing Combinations"}),i.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(n=>i.jsxs(le,{variant:"outline",size:"sm",onClick:()=>t(n),disabled:r,children:[n.ageRange," / ",Cle(n.readingLevel)]},`${n.ageRange}-${n.readingLevel}`))})]})}function LHt(e){switch(e){case"completed":return i.jsxs(Re,{className:"bg-green-500",children:[i.jsx(Vi,{className:"w-3 h-3 mr-1"})," Completed"]});case"generating":return i.jsxs(Re,{className:"bg-blue-500",children:[i.jsx(Me,{className:"w-3 h-3 mr-1 animate-spin"})," Generating"]});case"failed":return i.jsxs(Re,{variant:"destructive",children:[i.jsx(li,{className:"w-3 h-3 mr-1"})," Failed"]});
8174case"pending":return i.jsxs(Re,{variant:"secondary",children:[i.jsx(Da,{className:"w-3 h-3 mr-1"})," Pending"]});default:return i.jsx(Re,{variant:"outline",children:e})}}function OHt({generations:e,isLoading:t,onRetryGeneration:r,onRetryImages:n,onCompleteStory:a,isRetryGenerationPending:s,isRetryImagesPending:o,isCompleteStoryPending:l}){return t?i.jsx("div",{className:"flex items-center justify-center py-12",children:i.jsx(Me,{className:"w-8 h-8 animate-spin text-muted-foreground"})}):i.jsx("div",{className:"bg-card rounded-lg border overflow-hidden",children:i.jsxs(pa,{children:[i.jsx(ma,{children:i.jsxs(Jt,{children:[i.jsx(Ce,{children:"Age Range"}),i.jsx(Ce,{children:"Reading Level"}),i.jsx(Ce,{children:"Style"}),i.jsx(Ce,{children:"Status"}),i.jsx(Ce,{children:"Story Title"}),i.jsx(Ce,{children:"Story Status"}),i.jsx(Ce,{children:"Actions"})]})}),i.jsx(ga,{children:(e==null?void 0:e.length)===0?i.jsx(Jt,{children:i.jsx(Ee,{colSpan:7,className:"text-center py-8 text-muted-foreground",children:"No scheduled generations for this month"})}):e==null?void 0:e.map(c=>i.jsxs(Jt,{children:[i.jsx(Ee,{className:"font-medium",children:c.age_range}),i.jsx(Ee,{children:Cle(c.reading_level)}),i.jsx(Ee,{className:"capitalize",children:c.illustration_style.replace(/-/g," ")}),i.jsx(Ee,{children:LHt(c.status)}),i.jsx(Ee,{className:"max-w-[200px] truncate",children:c.story_title||"-"}),i.jsx(Ee,{children:c.story_status?i.jsx(Re,{variant:"outline",className:"capitalize",children:c.story_status}):"-"}),i.jsx(Ee,{children:i.jsxs("div",{className:"flex items-center gap-2",children:[c.story_id&&i.jsx(le,{variant:"ghost",size:"sm",onClick:()=>window.open(`/story/${c.story_id}`,"_blank"),children:i.jsx(oc,{className:"w-4 h-4"})}),c.status==="failed"&&i.jsx(le,{variant:"outline",size:"sm",onClick:()=>r({ageRange:c.age_range,readingLevel:c.reading_level}),disabled:s,children:"Retry"}),DV(c)&&c.story_status!=="completed"&&i.jsxs(le,{variant:"outline",size:"sm",onClick:()=>n(c.story_id),disabled:o,children:[o?i.jsx(Me,{className:"w-3 h-3 mr-1 animate-spin"}):null,"Retry Images"]}),DV(c)&&c.story_status==="completed"&&i.jsx(le,{variant:"outline",size:"sm",onClick:()=>a(c.story_id),disabled:l,children:"Mark Complete"})]})})]},c.id))})]})})}function RHt({generations:e}){return e.length===0?null:i.jsxs("div",{className:"mt-6 p-4 bg-destructive/10 rounded-lg border border-destructive/20",children:[i.jsx("h3",{className:"font-semibold text-destructive mb-2",children:"Error Messages"}),e.map(t=>i.jsxs("div",{className:"text-sm mb-2",children:[i.jsxs("span",{className:"font-medium",children:[t.age_range," / ",Cle(t.reading_level),":"]})," ",i.jsx("span",{className:"text-muted-foreground",children:t.error_message})]},t.id))]})}function DHt({open:e,onOpenChange:t,onConfirm:r,isPending:n,missingCount:a}){return i.jsx(Jl,{open:e,onOpenChange:t,children:i.jsxs(ll,{children:[i.jsxs(cl,{children:[i.jsx(dl,{children:"Generate All Missing Stories"}),i.jsxs(hl,{children:["This will start generating ",a," missing story",a!==1?" combinations":" combination",". Each generation triggers AI story creation and image generation which may take several minutes."]})]}),i.jsxs(ul,{children:[i.jsx(pl,{children:"Cancel"}),i.jsx(fl,{onClick:r,disabled:n,children:n?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"mr-2 h-4 w-4 animate-spin"}),"Generating..."]}):"Generate All"})]})]})})}function FHt(){const[e,t]=k.useState(!1),{selectedMonth:r,setSelectedMonth:n,monthOptions:a,generations:s,isLoading:o,refetch:l,missingCombinations:c,stuckStoriesCount:u,summary:d,generationsWithErrors:h,generateAllMutation:f,generateSingleMutation:p,completeStoryMutation:y,retryImagesMutation:m,retryAllStuckImagesMutation:v}=AHt();return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Scheduled Stories"}),i.jsxs("main",{className:"container mx-auto px-4 py-8",children:[i.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4 mb-6",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold",children:"Scheduled Story Generation"}),i.jsx("p",{className:"text-muted-foreground",children:"Automatically generate stories for each age/reading level combination"})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs(rn,{value:r,onValueChange:n,children:[i.jsxs(Wr,{className:"w-[180px]",children:[i.jsx(ic,{className:"w-4 h-4 mr-2"}),i.jsx(nn,{})]}),i.jsx(Gr,{children:a.map(g=>i.jsx(pt,{value:g.value,children:g.label},g.value))})]}),i.jsxs(le,{variant:"outline",onClick:()=>l(),children:[i.jsx(Vn,{className:"w-4 h-4 mr-2"}),"Refresh"]}),i.jsxs(le,{onClick:()=>t(!0),disabled:f.isPending,children:[f.isPending?i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"}):i.jsx(a0,{className:"w-4 h-4 mr-2"}),"Generate All Missing"]}),u>0&&i.jsxs(le,{variant:"outline",onClick:()=>v.mutate(),disabled:v.isPending,children:[v.isPending?i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"}):i.jsx(Vn,{className:"w-4 h-4 mr-2"}),"Retry All Stuck Images (",u,")"]})]})]}),i.jsx(IHt,{...d}),i.jsx(PHt,{combinations:c,onGenerate:g=>p.mutate(g),isPending:p.isPending}),i.jsx(OHt,{generations:s,isLoading:o,onRetryGeneration:g=>p.mutate(g),onRetryImages:g=>m.mutate(g),onCompleteStory:g=>y.mutate(g),isRetryGenerationPending:p.isPending,isRetryImagesPending:m.isPending,isCompleteStoryPending:y.isPending}),i.jsx(RHt,{generations:h}),i.jsx(DHt,{open:e,onOpenChange:t,onConfirm:()=>{f.mutate(),t(!1)},isPending:f.isPending,missingCount:c.length})]})]})}const $Ht=()=>{const[e,t]=k.useState("5dbf3f87-b8e9-4d58-8b48-b393fb7b1c2b"),[r,n]=k.useState(!1),[a,s]=k.useState(null),{toast:o}=Xt(),l=wt(),{isAdmin:c,loading:u}=Fr();if(u)return i.jsx("div",{className:"min-h-screen flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin"})});if(!c)return l("/library"),null;const d=async()=>{var h;if(!e.trim()){o({title:"Story ID required",description:"Please enter a story ID",variant:"destructive"});return}n(!0),s(null);try{const{data:f}=await oe.auth.getSession(),p=await oe.functions.invoke("fix-missing-images",{body:{storyId:e.trim()},headers:{Authorization:`Bearer ${(h=f.session)==null?void 0:h.access_token}`}});if(p.error)throw p.error;s(p.data.results),o({title:"Image generation started",description:"Missing images are being generated in the background"})}catch(f){console.error("Error fixing images:",f),o({title:"Failed to fix images",description:f.message,variant:"destructive"})}finally{n(!1)}};return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(js,{title:"Fix Missing Images"}),i.jsx("main",{className:"container max-w-2xl mx-auto px-4 py-8",children:i.jsxs(Ie,{children:[i.jsxs(ze,{children:[i.jsx(Ke,{children:"Fix Missing Images"}),i.jsx(Rt,{children:"Manually regenerate missing cover images and page illustrations for a story"})]}),i.jsxs(qe,{className:"space-y-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx("label",{className:"text-sm font-medium",children:"Story ID"}
8174),i.jsx(Pt,{value:e,onChange:h=>t(h.target.value),placeholder:"Enter story ID"})]}),i.jsx(le,{onClick:d,disabled:r,className:"w-full",children:r?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"h-4 w-4 mr-2 animate-spin"}),"Fixing Images..."]}):"Fix Missing Images"}),a&&i.jsxs("div",{className:"mt-6 p-4 border rounded-lg space-y-2",children:[i.jsx("h3",{className:"font-semibold",children:"Results:"}),a.coverFixed&&i.jsx("p",{className:"text-sm text-green-600",children:"â Cover image generation started"}),a.missingPages.length>0&&i.jsxs("p",{className:"text-sm text-green-600",children:["â Fixing ",a.missingPages.length," missing page(s): ",a.missingPages.join(", ")]}),a.errors.length>0&&i.jsxs("div",{className:"mt-2",children:[i.jsx("p",{className:"text-sm font-medium text-red-600",children:"Errors:"}),a.errors.map((h,f)=>i.jsxs("p",{className:"text-sm text-red-500",children:["⢠",h]},f))]}),!a.coverFixed&&a.missingPages.length===0&&a.errors.length===0&&i.jsx("p",{className:"text-sm text-gray-600",children:"No missing images found"})]})]})]})})]})},BHt=()=>{const e=wt(),{user:t}=er(),[r,n]=k.useState(""),[a,s]=k.useState(!1),[o,l]=k.useState(!1),c=50,u=async f=>{f.preventDefault();const p=r.trim();if(!p){Ct.error("Please enter your feedback");return}if(p.length<c){Ct.error(`Please provide more detailed feedback (at least ${c} characters)`);return}if(!t){Ct.error("You must be logged in to submit feedback");return}s(!0);try{const{data:{session:y}}=await oe.auth.getSession();if(!y){Ct.error("Session expired. Please log in again."),e("/login");return}const m=await oe.functions.invoke("submit-feedback",{body:{feedback:r.trim()}});if(m.error)throw m.error;l(!0),n(""),Ct.success("Thank you for your feedback!")}catch(y){console.error("Error submitting feedback:",y),Ct.error(y.message||"Failed to submit feedback. Please try again.")}finally{s(!1)}},d=r.length,h=2e3;return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Ba,{}),i.jsxs("div",{className:"container max-w-2xl mx-auto px-4 py-12",children:[i.jsxs("div",{className:"text-center mb-8",children:[i.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 mb-4",children:i.jsx(Fa,{className:"w-8 h-8 text-primary"})}),i.jsx("h1",{className:"font-bold mb-3 text-3xl",children:"Share your feedback"}),i.jsx("p",{className:"text-lg text-muted-foreground",children:"Help us improve Kibbi! Tell us what you love, what could be better, or any features you'd like to see."})]}),o?i.jsxs("div",{className:"bg-card border border-border rounded-lg p-8 text-center",children:[i.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-green-500/10 mb-4",children:i.jsx(Fa,{className:"w-8 h-8 text-green-600"})}),i.jsx("h2",{className:"text-2xl font-semibold mb-2",children:"Thank you!"}),i.jsx("p",{className:"text-muted-foreground mb-6",children:"Your feedback has been received. We appreciate you taking the time to help us improve!"}),i.jsx(le,{onClick:()=>e("/library"),children:"Return to Library"})]}):i.jsxs("form",{onSubmit:u,className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx(Dr,{value:r,onChange:f=>n(f.target.value),placeholder:"Tell us what you think about Kibbi... What do you love? What could be better? Any features you'd like to see?",className:"min-h-[200px] text-base resize-none",maxLength:h}),i.jsxs("div",{className:"flex items-center justify-between mt-2",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:[d===0&&`Share your thoughts (minimum ${c} characters)`,d>0&&d<c&&`${c-d} more characters needed`,d>=c&&"Thanks for the detailed feedback!"]}),i.jsxs("span",{className:`text-sm ${d>h*.9?"text-orange-600":"text-muted-foreground"}`,children:[d,"/",h]})]})]}),i.jsx(le,{type:"submit",size:"lg",className:"w-full",disabled:a||r.trim().length<c,children:a?"Submitting...":"Submit Feedback"})]})]})]})},zHt=({headline:e="Welcome",subheadline:t,cta_text:r="Try it for free",cta_link:n="/signup",image_url:a,variant:s="centered",show_rating:o=!1})=>{const l=()=>i.jsxs("div",{className:"flex items-center justify-center gap-2 mb-6",children:[i.jsx("div",{className:"flex items-center gap-1",children:[1,2,3,4,5].map(c=>i.jsx(Oa,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},c))}),i.jsx("span",{className:"text-muted-foreground text-sm",children:"Loved by parents"})]});return s==="split"&&a?i.jsx("section",{className:"pt-32 pb-16 md:pt-40 md:pb-24 bg-gradient-to-br from-background via-secondary/20 to-background",children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 lg:gap-16 items-center",children:[i.jsxs("div",{className:"space-y-8",children:[o&&i.jsx(l,{}),i.jsx("h1",{className:"font-crimson text-4xl md:text-5xl lg:text-6xl font-bold text-foreground leading-tight",children:e}),t&&i.jsx("p",{className:"text-lg md:text-xl text-muted-foreground leading-relaxed max-w-xl",children:t}),r&&i.jsxs("div",{className:"space-y-3",children:[i.jsx(or,{to:n,children:i.jsx(le,{size:"lg",className:"rounded-full text-lg px-8 py-6 shadow-lg hover:shadow-xl transition-shadow",children:r})}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Try it for free, no credit card needed. Cancel anytime"})]})]}),i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/10 to-secondary/10 rounded-2xl transform rotate-3"}),i.jsx("img",{src:a,alt:e,className:"relative rounded-2xl shadow-2xl w-full"})]})]})})}):s==="minimal"?i.jsx("section",{className:"pt-28 pb-12 md:pt-36 md:pb-16 bg-background",children:i.jsxs("div",{className:"container mx-auto px-4 text-center max-w-4xl",children:[o&&i.jsx(l,{}),i.jsx("h1",{className:"font-crimson text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6 leading-tight",children:e}),t&&i.jsx("p",{className:"text-lg md:text-xl text-muted-foreground mb-8 leading-relaxed",children:t}),r&&i.jsxs("div",{className:"space-y-3",children:[i.jsx(or,{to:n,children:i.jsx(le,{size:"lg",className:"rounded-full text-lg px-8 py-6",children:r})}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Try it for free, no credit card needed. Cancel anytime"})]})]})}):i.jsx("section",{className:"pt-32 pb-4 md:pt-40 md:pb-6 bg-gradient-to-br from-background via-secondary/20 to-background",children:i.jsxs("div",{className:"container mx-auto px-4 text-center",children:[o&&i.jsx(l,{}),i.jsx("h1",{className:"font-crimson text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-8 max-w-5xl mx-auto leading-tight",children:e}),t&&i.jsx("p",{className:"text-lg md:text-xl lg:text-2xl text-muted-foreground mb-10 max-w-3xl mx-auto leading-relaxed",children:t}),r&&i.jsxs("div",{className:"space-y-4",children:[i.jsx(or,{to:n,children:i.jsx(le,{size:"lg",className:"rounded-full text-lg px-10 py-7 shadow-lg hover:shadow-xl transition-shadow",children:r})}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Try it for free, no credit card needed. Cancel anytime"})]}),a&&i.jsx("div",{className:"mt-16 max-w-5xl mx-auto",children:i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/10 to-secondary/10 rounded-2xl transform rotate-1"}),i.jsx("img",{src:a,alt:e,className:"relative rounded-2xl shadow-2xl w-full"})]})})]})})}
8174,UHt=({title:e="How We Compare",subtitle:t,our_name:r="Kibbi",items:n=[]})=>{var o,l;if(!n.length)return null;const a=((l=(o=n[0])==null?void 0:o.competitors)==null?void 0:l.map(c=>c.name))||[],s=(c,u=!1)=>typeof c=="boolean"?c?i.jsx(_r,{className:De("w-5 h-5",u?"text-primary":"text-green-500")}):i.jsx(hi,{className:"w-5 h-5 text-muted-foreground/50"}):c==="partial"?i.jsx(n0,{className:"w-5 h-5 text-yellow-500"}):i.jsx("span",{className:"text-sm",children:c});return i.jsx("section",{className:"py-16 md:py-24 bg-background",children:i.jsxs("div",{className:"container mx-auto px-4",children:[e&&i.jsxs("div",{className:"text-center mb-12",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e}),t&&i.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:t})]}),i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full border-collapse",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-border",children:[i.jsx("th",{className:"text-left py-4 px-4 font-medium text-muted-foreground",children:"Feature"}),i.jsx("th",{className:"py-4 px-4 font-bold text-primary bg-primary/5 rounded-t-lg",children:r}),a.map(c=>i.jsx("th",{className:"py-4 px-4 font-medium text-muted-foreground",children:c},c))]})}),i.jsx("tbody",{children:n.map((c,u)=>i.jsxs("tr",{className:De("border-b border-border",u%2===0?"bg-muted/30":"bg-background"),children:[i.jsx("td",{className:"py-4 px-4 text-foreground font-medium",children:c.feature}),i.jsx("td",{className:"py-4 px-4 text-center bg-primary/5",children:i.jsx("div",{className:"flex justify-center",children:s(c.us,!0)})}),c.competitors.map((d,h)=>i.jsx("td",{className:"py-4 px-4 text-center",children:i.jsx("div",{className:"flex justify-center",children:s(d.value)})},h))]},u))})]})})]})})},qHt={sparkles:Qt,heart:qd,zap:kw,shield:i0,star:Oa,book:xr},HHt=({title:e="Features",subtitle:t,features:r=[],columns:n=3})=>{if(!r.length)return null;const a={2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-2 lg:grid-cols-4"};return i.jsx("section",{className:"py-16 md:py-24 bg-muted/30",children:i.jsxs("div",{className:"container mx-auto px-4",children:[e&&i.jsxs("div",{className:"text-center mb-12",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e}),t&&i.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:t})]}),i.jsx("div",{className:`grid gap-8 ${a[n]}`,children:r.map((s,o)=>{const l=s.icon&&qHt[s.icon]||Qt;return i.jsxs("div",{className:"bg-background rounded-xl p-6 shadow-sm border border-border hover:shadow-md transition-shadow",children:[i.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-4",children:i.jsx(l,{className:"w-6 h-6 text-primary"})}),i.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:s.title}),i.jsx("p",{className:"text-muted-foreground",children:s.description})]},o)})})]})})},VHt=({title:e="Frequently Asked Questions",subtitle:t,items:r=[]})=>r.length?i.jsx("section",{className:"py-16 md:py-24 bg-background",children:i.jsxs("div",{className:"container mx-auto px-4",children:[e&&i.jsxs("div",{className:"text-center mb-12",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e}),t&&i.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:t})]}),i.jsx("div",{className:"max-w-3xl mx-auto",children:i.jsx(Sv,{type:"single",collapsible:!0,className:"space-y-4",children:r.map((n,a)=>i.jsxs(bi,{value:`item-${a}`,className:"bg-muted/30 rounded-lg px-6 border border-border",children:[i.jsx(wi,{className:"text-left font-medium text-foreground hover:no-underline",children:n.question}),i.jsx(ki,{className:"text-muted-foreground",children:n.answer})]},a))})})]})}):null,WHt=({headline:e="Ready to get started?",subheadline:t,cta_text:r="Get Started",cta_link:n="/signup",secondary_cta_text:a,secondary_cta_link:s,variant:o="default"})=>o==="gradient"?i.jsx("section",{className:"py-20 md:py-28 bg-gradient-to-r from-primary to-primary/80",children:i.jsxs("div",{className:"container mx-auto px-4 text-center",children:[i.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-primary-foreground mb-6",children:e}),t&&i.jsx("p",{className:"text-lg md:text-xl text-primary-foreground
8174/90 mb-8 max-w-2xl mx-auto",children:t}),i.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[i.jsx(or,{to:n,children:i.jsx(le,{size:"lg",variant:"secondary",className:"text-lg px-8",children:r})}),a&&s&&i.jsx(or,{to:s,children:i.jsx(le,{size:"lg",variant:"outline",className:"text-lg px-8 bg-transparent border-primary-foreground text-primary-foreground hover:bg-primary-foreground/10",children:a})})]})]})}):o==="minimal"?i.jsx("section",{className:"py-12 md:py-16 border-t border-border",children:i.jsxs("div",{className:"container mx-auto px-4 text-center",children:[i.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-4",children:e}),t&&i.jsx("p",{className:"text-muted-foreground mb-6",children:t}),i.jsx(or,{to:n,children:i.jsx(le,{children:r})})]})}):i.jsx("section",{className:"py-16 md:py-24 bg-muted/50",children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:"bg-background rounded-2xl p-8 md:p-12 shadow-lg border border-border text-center max-w-4xl mx-auto",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e}),t&&i.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-xl mx-auto",children:t}),i.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[i.jsx(or,{to:n,children:i.jsx(le,{size:"lg",className:"text-lg px-8",children:r})}),a&&s&&i.jsx(or,{to:s,children:i.jsx(le,{size:"lg",variant:"outline",className:"text-lg px-8",children:a})})]})]})})}),GHt=({title:e,content:t,variant:r="answer"})=>{const n={answer:"bg-primary/5 border-primary/20",callout:"bg-accent/50 border-accent",tip:"bg-muted border-muted-foreground/20"},a={answer:"text-primary",callout:"text-accent-foreground",tip:"text-muted-foreground"};return i.jsx("div",{className:`quick-answer-card rounded-2xl border-2 p-8 md:p-10 my-10 ${n[r]}`,children:i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx("div",{className:`flex-shrink-0 mt-1 ${a[r]}`,children:i.jsx(aw,{className:"w-6 h-6"})}),i.jsxs("div",{className:"flex-1",children:[e&&i.jsx("h3",{className:"font-crimson text-xl md:text-2xl font-bold text-foreground mb-3",children:e}),i.jsx("p",{className:"text-lg md:text-xl text-foreground/90 leading-relaxed",children:t})]})]})})},KHt=e=>{const t=[],r=e.split(/(?=^## )/gm);for(const n of r){const a=n.trim();if(!a)continue;const s=a.match(/^## (.+?)(?:\n|$)/);if(s){const o=s[1].trim(),l=a.substring(s[0].length).trim();if(o.toLowerCase().includes("quick answer")||o.toLowerCase().includes("tldr")||o.toLowerCase().includes("tl;dr"))t.push({type:"quick-answer",heading:o,content:l});else if(o.toLowerCase().includes("faq")||o.toLowerCase().includes("frequently asked")){const c=YHt(l);t.push({type:"faq",heading:o,content:l,faqItems:c})}else t.push({type:"regular",heading:o,content:l})}else t.push({type:"regular",content:a})}return t},YHt=e=>{const t=[],r=e.split(/(?=^### )/gm);for(const n of r){const a=n.trim();if(!a)continue;const s=a.match(/^### (.+?)(?:\n|$)/);if(s){const o=s[1].trim().replace(/\?$/,"")+"?",l=a.substring(s[0].length).trim();l&&t.push({question:o,answer:l})}}return t},XHt=e=>{const t=e.split(/(?=^>)/gm),r=[];return t.forEach((n,a)=>{const s=n.trim();if(s)if(s.startsWith(">")){const o=s.split(` 8175`).map(l=>l.replace(/^>\s?/,"")).join(` 8176`).trim();r.push(i.jsxs("div",{className:"my-8 flex gap-4 p-6 bg-accent/30 rounded-xl border-l-4 border-primary",children:[i.jsx(cw,{className:"w-6 h-6 text-primary flex-shrink-0 mt-1"}),i.jsx("div",{className:"text-lg text-foreground/90 italic leading-relaxed",children:i.jsx(Pk,{content:o})})]},a))}else r.push(i.jsx("div",{children:i.jsx(Pk,{content:s})},a))}),r},ZHt=({title:e,content:t,markdown:r,html:n,align:a="center",onStructuredDataExtracted:s})=>{const o={left:"text-left",center:"text-center mx-auto",right:"text-right ml-auto"},l=t||r,c=t||r||"",u=l?KHt(c):[];ce.useEffect(()=>{var h;if(s&&u.length>0){const f=u.find(y=>y.type==="quick-answer"),p=u.find(y=>y.type==="faq");s({faqs:(p==null?void 0:p.faqItems)||[],quickAnswer:(h=f==null?void 0:f.content)==null?void 0:h.replace(/\n/g," ").substring(0,500)})}},[c]);const d=["bg-background","bg-muted/30"];return i.jsxs("div",{children:[e&&i.jsx("section",{className:"py-12 md:py-16 bg-background",children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsx("div",{className:`max-w-4xl ${o[a]}`,children:i.jsx("h1",{className:"font-crimson text-3xl md:text-4xl lg:text-5xl font-bold text-foreground",children:e})})})}),u.map((h,f)=>{const p=d[f%2];return h.type==="quick-answer"?i.jsx("section",{className:`py-8 md:py-12 ${p}`,children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsx("div",{className:"max-w-4xl mx-auto",children:i.jsx(GHt,{title:"Quick Answer",content:h.content.replace(/\n/g," ").substring(0,500),variant:"answer"})})})},f):h.type==="faq"&&h.faqItems&&h.faqItems.length>0?i.jsx("section",{className:`py-12 md:py-20 ${p}`,children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:"max-w-4xl mx-auto",children:[i.jsx("h2",{className:"font-crimson text-2xl md:text-3xl lg:text-4xl font-bold text-foreground mb-8 text-center",children:h.heading}),i.jsx(Sv,{type:"single",collapsible:!0,className:"space-y-4",children:h.faqItems.map((y,m)=>i.jsxs(bi,{value:`faq-${m}`,className:"border border-border/50 rounded-xl px-6 bg-background shadow-sm",children:[i.jsx(wi,{className:"text-left text-lg font-semibold text-foreground hover:no-underline py-5",children:y.question}),i.jsx(ki,{className:"text-muted-foreground text-base leading-relaxed pb-5",children:i.jsx(Pk,{content:y.answer})})]},m))})]})})},f):i.jsx("section",{className:`py-12 md:py-16 ${p}`,children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:`max-w-4xl mx-auto ${o[a]}`,children:[h.heading&&i.jsx("h2",{className:"font-crimson text-2xl md:text-3xl lg:text-4xl font-bold text-foreground mb-8",children:h.heading}),i.jsx("div",{className:`prose prose-lg md:prose-xl max-w-none text-muted-foreground leading-relaxed text-left 8177 [&>h3]:font-crimson [&>h3]:text-xl [&>h3]:md:text-2xl [&>h3]:font-semibold [&>h3]:text-foreground [&>h3]:mt-8 [&>h3]:mb-4 8178 [&>h4]:font-crimson [&>h4]:text-lg [&>h4]:md:text-xl [&>h4]:font-semibold [&>h4]:text-foreground [&>h4]:mt-6 [&>h4]:mb-3 8179 [&>p]:my-5 [&>p]:leading-relaxed [&>p]:text-lg [&>p]:md:text-xl 8180 [&>ul]:my-6 [&>ul]:space-y-2 [&>ul]:list-disc [&>ul]:pl-6 [&>ul]:text-lg [&>ul]:md:text-xl 8181 [&>ol]:my-6 [&>ol]:space-y-2 [&>ol]:list-decimal [&>ol]:pl-6 [&>ol]:text-lg [&>ol]:md:text-xl 8182 [&>li]:text-muted-foreground [&>li]:leading-relaxed 8183 [&>a]:text-primary [&>a]:underline [&>a]:underline-offset-4 [&>a]:hover:text-primary/80 [&>a]:transition-colors 8184 [&>strong]:text-foreground [&>strong]:font-semibold 8185 [&_a]:text-primary [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-primary/80 [&_a]:transition-colors 8186 [&_strong]:text-foreground [&_strong]:font-semibold 8187 `,children:XHt(h.content)})]})})},f)}),!l&&n&&i.jsx("section",{className:"py-16 md:py-24 bg-background",children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsx("div",{className:`max-w-4xl mx-auto ${o[a]}`,children:i.jsx("div",{className:"prose prose-lg md:prose-xl max-w-none",dangerouslySetInnerHTML:{__html:n}})})})})]})},QHt=({title:e,content:t,image_url:r,image_alt:n="",image_position:a="right",cta_text:s,cta_link:o})=>{const l=i.jsx("div",{className:"relative",children:i.jsx("img",{src:r,alt:n||e||"",className:"rounded-xl shadow-lg w-full"})}),c=i.jsxs("div",{className:"space-y-4",children:[e&&i.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground",children:e}),i.jsx("p",{className:"text-lg text-muted-foreground",children:t}),s&&o&&i.jsx(or,{to:o,children:i.jsx(le,{className:"mt-4",children:s})})]});return i.jsx("section",{className:"py-16 md:py-24 bg-background",children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsx("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:a==="left"?i.jsxs(i.Fragment,{children:[l,c]}):i.jsxs(i.Fragment,{children:[c,l]})})})})},JHt=({sections:e,onStructuredDataExtracted:t})=>i.jsx(i.Fragment,{children:e.map((r,n)=>{const a=`${r.type}-${n}`,s=r.content;switch(r.type){case"hero":return i.jsx(zHt,{...s},a);case"comparison_table":return i.jsx(UHt,{...s},a);case"features":return i.jsx(HHt,{...s},a);case"faq":return i.jsx(VHt,{...s},a);case"cta":return i.jsx(WHt,{...s},a);case"text_block":return i.jsx(ZHt,{...s,onStructuredDataExtracted:t},a);case"image_text":return i.jsx(QHt,{...s},a);case"testimonials":return i.jsx(W0,{},a);case"pricing":return i.jsx(G0,{},a);default:return console.warn(`Unknown section type: ${r.type}`),null}})}),yPe=k.forwardRef(({...e},t)=>i.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));yPe.displayName="Breadcrumb";const vPe=k.forwardRef(({className:e,...t},r)=>i.jsx("ol",{ref:r,className:De("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));vPe.displayName="BreadcrumbList";const Nne=k.forwardRef(({className:e,...t},r)=>i.jsx("li",{ref:r,className:De("inline-flex items-center gap-1.5",e),...t}));
8187Nne.displayName="BreadcrumbItem";const xPe=k.forwardRef(({asChild:e,className:t,...r},n)=>{const a=e?Sae:"a";return i.jsx(a,{ref:n,className:De("transition-colors hover:text-foreground",t),...r})});xPe.displayName="BreadcrumbLink";const bPe=k.forwardRef(({className:e,...t},r)=>i.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:De("font-normal text-foreground",e),...t}));bPe.displayName="BreadcrumbPage";const wPe=({children:e,className:t,...r})=>i.jsx("li",{role:"presentation","aria-hidden":"true",className:De("[&>svg]:size-3.5",t),...r,children:e??i.jsx(Vs,{})});wPe.displayName="BreadcrumbSeparator";const eVt=()=>{var j;const{slug:e}=Ou(),{search:t}=wa(),r=e?Ele[e]:void 0,[n,a]=k.useState(null),[s,o]=k.useState(!0),[l,c]=k.useState(null),[u,d]=k.useState(null);k.useEffect(()=>{if(r)return;let E=!0;return o(!0),c(null),a(null),d(null),(async()=>{if(!e){c("Page not found"),o(!1);return}const{data:N,error:A}=await oe.from("marketing_pages").select("*").eq("slug",e).eq("is_published",!0).single();if(E){if(A||!N){c("Page not found"),o(!1);return}a({...N,hero_content:N.hero_content,sections:N.sections,schema_markup:N.schema_markup}),o(!1)}})().catch(()=>{E&&(c("Page not found"),o(!1))}),()=>{E=!1}},[e,r]);const h=k.useCallback(E=>{d(E)},[]),f=(j=n==null?void 0:n.sections)==null?void 0:j.some(E=>E.type==="hero"),p=()=>{if(!n)return[];let E=[...n.sections||[]];if(!f&&n.title){let C=n.meta_description||"";C.toLowerCase().startsWith("html:")&&(C=C.substring(5).trim()),E.unshift({type:"hero",content:{headline:n.title,subheadline:C,variant:"centered"}})}return E};if(r)return i.jsx(ty,{to:r+t,replace:!0});if(s||n&&n.slug!==e)return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("div",{className:"container mx-auto px-4 py-16",children:[i.jsx(vr,{className:"h-12 w-3/4 mb-4"}),i.jsx(vr,{className:"h-6 w-1/2 mb-8"}),i.jsx(vr,{className:"h-64 w-full"})]}),i.jsx(br,{})]});if(l||!n)return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("div",{className:"container mx-auto px-4 py-32 text-center",children:[i.jsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:"Page Not Found"}),i.jsx("p",{className:"text-muted-foreground",children:"The page you're looking for doesn't exist."})]}),i.jsx(br,{})]});const y=`https://kibbi.ai/p/${n.slug}`,m=p();let v=n.meta_description||"";v.toLowerCase().startsWith("html:")&&(v=v.substring(5).trim());const g=Cst({title:n.title,slug:n.slug,meta_description:v,created_at:n.created_at,updated_at:n.updated_at},y,u==null?void 0:u.quickAnswer),b=Nst({title:n.title,slug:n.slug}),x=u!=null&&u.faqs&&u.faqs.length>0?Est(u.faqs):null,_=Tst(!!(u!=null&&u.quickAnswer)),w=[{...g,speakable:_},b,...x?[x]:[],...n.schema_markup&&Object.keys(n.schema_markup).length>0?[n.schema_markup]:[]];return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsxs("title",{children:[n.title," | Kibbi"]}),v&&i.jsx("meta",{name:"description",content:v}),i.jsx("link",{rel:"canonical",href:y}),i.jsx("meta",{name:"robots",content:"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"}),i.jsx("meta",{name:"googlebot",content:"index, follow, max-snippet:-1, max-image-preview:large"}),i.jsx("meta",{name:"bingbot",content:"index, follow"}),i.jsx("meta",{name:"GPTBot",content:"index, follow"}),i.jsx("meta",{name:"ChatGPT-User",content:"index, follow"}),i.jsx("meta",{name:"Claude-Web",content:"index, follow"}),i.jsx("meta",{name:"anthropic-ai",content:"index, follow"}),i.jsx("meta",{name:"PerplexityBot",content:"index, follow"}),i.jsx("meta",{name:"Applebot",content:"index, follow"}),i.jsx("meta",{name:"cohere-ai",content:"index, follow"}),i.jsx("meta",{name:"citation_title",content:n.title}),i.jsx("meta",{name:"citation_author",content:"Kibbi"}),i.jsx("meta",{name:"citation_publisher",content:"Kibbi"}),i.jsx("meta",{name:"citation_publication_date",content:n.created_at||new Date().toISOString()}),i.jsx("meta",{name:"citation_online_date",content:n.updated_at||n.created_at||new Date().toISOString()}),i.jsx("meta",{name:"citation_public_url",content:y}),i.jsx("meta",{name:"citation_language",content:"en"}),i.jsx("meta",{property:"og:title",content:n.title}),v&&i.jsx("meta",{property:"og:description",content:v}),i.jsx("meta",{property:"og:url",content:y}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{property:"og:locale",content:"en_US"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:n.title}),v&&i.jsx("meta",{name:"twitter:description",content:v}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(w)})]}),i.jsx(lr,{}),i.jsx("div",{className:"container mx-auto px-4 pt-4",children:i.jsx(yPe,{children:i.jsxs(vPe,{children:[i.jsx(Nne,{children:i.jsx(xPe,{href:"/",children:"Home"})}),i.jsx(wPe,{}),i.jsx(Nne,{children:i.jsx(bPe,{children:n.title})})]})})}),i.jsx("main",{children:i.jsxs("article",{itemScope:!0,itemType:"https://schema.org/WebPage",children:[i.jsx(JHt,{sections:m,onStructuredDataExtracted:h}),i.jsx(wv,{pagePath:`/p/${n.slug}`,className:"container mx-auto max-w-7xl px-6 py-12"})]})}),i.jsx(br,{})]})},tVt=()=>ei({queryKey:["marketing-guides"],queryFn:async()=>{const{data:e,error:t}=await oe.from("marketing_pages").select("slug, title").eq("is_published",!0).order("title",{ascending:!0});if(t)throw t;return(e??[]).filter(r=>!Ele[r.slug])}}),rVt=()=>{const{data:e,isLoading:t,isError:r,refetch:n}=tVt();return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Guides & Comparisons | Kibbi"}),i.jsx("meta",{name:"description",content:"Guides and comparisons for choosing children's book software: Kibbi vs Wonderbly, StoryJumper, and more, plus buying advice for storybooks kids love."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/guides"}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/guides"}),i.jsx("meta",{property:"og:title",content:"Guides & Comparisons | Kibbi"})]}),i.jsx(lr,{}),i.jsxs("main",{className:"container mx-auto max-w-4xl px-6 pt-40 pb-20",children:[i.jsx("h1",{className:"font-crimson text-4xl font-semibold mb-4",children:"Guides & comparisons"}
8187),i.jsx("p",{className:"text-[18px] text-foreground/80 mb-10 leading-relaxed",children:"Practical guides for parents choosing storybook tools: how Kibbi compares to alternatives, what to look for, and how to get books your child actually wants to read."}),t?i.jsxs("div",{className:"space-y-3",children:[i.jsx(vr,{className:"h-6 w-3/4"}),i.jsx(vr,{className:"h-6 w-2/3"}),i.jsx(vr,{className:"h-6 w-3/4"})]}):r?i.jsxs("div",{"data-testid":"guides-error",children:[i.jsx("p",{className:"text-foreground/80 mb-4",children:"We couldn't load the guides right now. Please try again."}),i.jsx("button",{type:"button",onClick:()=>n(),className:"text-foreground underline underline-offset-4",children:"Retry"})]}):i.jsx("ul",{className:"space-y-3","data-testid":"guides-list",children:(e??[]).map(a=>i.jsx("li",{children:i.jsx(or,{to:`/p/${a.slug}`,className:"text-foreground/90 hover:text-foreground underline-offset-4 hover:underline",children:a.title})},a.slug))})]}),i.jsx(br,{})]})},Nle=({headline:e,subheadline:t,ctaText:r,ctaSubtext:n,media:a})=>{const{averageRating:s}=G_(),o=s!==null&&s>=4,l=Du();return i.jsx("section",{className:"pt-40 pb-20 px-6","aria-labelledby":"hero-heading",children:i.jsx("div",{className:"container mx-auto max-w-7xl",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[i.jsxs("div",{className:"text-left",children:[i.jsx("h1",{id:"hero-heading",className:"font-crimson text-[28px] md:text-[40px] font-semibold mb-6 leading-tight",children:e}),i.jsx("p",{className:"text-[18px] text-foreground/80 mb-10 leading-relaxed",children:t}),i.jsxs("div",{className:"text-center md:text-left",children:[i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-8 py-6 text-[16px]",asChild:!0,children:i.jsx("a",{href:l,children:r})}),i.jsx("p",{className:"text-xs md:text-sm text-foreground/70 mt-3",children:n}),o&&i.jsxs("p",{className:"flex items-center justify-center md:justify-start gap-1 text-xs md:text-sm text-foreground/70 mt-2",children:["Our stories have an average rating of"," ",s.toFixed(1),i.jsx(Oa,{className:"h-4 w-4 text-yellow-500 fill-yellow-500"})]})]})]}),i.jsx("div",{className:"flex justify-center md:justify-end",children:a?i.jsx("div",{className:"w-full max-w-[600px]",children:a}):i.jsx("img",{src:tje,alt:"Mother and son reading a Kibbi story together",width:"600",height:"600",className:"w-full max-w-[600px] h-auto rounded-2xl shadow-lg"})})]})})})},Cc=({config:e})=>{const{user:t,loading:r}=er(),n=wt();if(k.useEffect(()=>{!r&&t&&n("/library",{replace:!0})},[t,r,n]),r||t)return null;const a={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"How does Kibbi work?",acceptedAnswer:{"@type":"Answer",text:"You set up your child's details and pick a topic. Kibbi creates a personalized story matched to their reading stage, which you can read on Kibbi right away and print later as a paperback or hardcover keepsake."}},{"@type":"Question",name:"What ages is it for?",acceptedAnswer:{"@type":"Answer",text:"Kibbi books are designed for ages 0-9. Each book is matched to your child's reading level: read-alouds for the youngest, learning-to-read for the middle, and independent reading for older kids."}},{"@type":"Question",name:"How much does it cost?",acceptedAnswer:{"@type":"Answer",text:`${Br} per story, one time. Preview it free and pay only if you want the whole book. If you want a printed keepsake, paperback is $14.99 and hardcover is $24.99 per book, plus shipping and handling, shown before you pay.`}},{"@type":"Question",name:"Can I cancel anytime?",acceptedAnswer:{"@type":"Answer",text:"Yes. No commitment, no fees. Cancel from your account whenever you want."}}]};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:e.metaTitle}),i.jsx("meta",{name:"description",content:e.metaDescription}),i.jsx("link",{rel:"canonical",href:`https://kibbi.ai${e.canonicalPath}`}),i.jsx("meta",{property:"og:title",content:e.metaTitle}),i.jsx("meta",{property:"og:description",content:e.metaDescription}),i.jsx("meta",{property:"og:url",content:`https://kibbi.ai${e.canonicalPath}`}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:e.metaTitle}),i.jsx("meta",{name:"twitter:description",content:e.metaDescription}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(a)})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{role:"main",children:[i.jsx(Nle,{headline:e.headline,subheadline:e.subheadline,ctaText:e.ctaText,ctaSubtext:e.ctaSubtext}),i.jsx(wv,{pagePath:e.path,className:"container mx-auto max-w-7xl px-6 py-12"}),i.jsx(_v,{headline:e.howItWorksHeadline}),i.jsx(Aie,{headline:e.featuresHeadline}),i.jsx(kv,{}),i.jsx(W0,{}),i.jsx(K_,{}),i.jsx(G0,{}),i.jsx(jv,{})]}),i.jsx(br,{})]})]})},nVt=()=>i.jsx(Cc,{config:sPe}),aVt=()=>i.jsx(Cc,{config:oPe}),iVt=()=>i.jsx(Cc,{config:lPe}),sVt=()=>i.jsx(Cc,{config:cPe}),oVt=[{icon:xr,title:"Matched to their stage",description:"Choose Learning to Read for short, decodable sentences and predictable word patterns made for early readers."},{icon:Qt,title:"About anything they love",description:"Dinosaurs, space, soccer, a pet, or the first day of school. Start with the topic that gets their attention."},{icon:Wd,title:"Digital now, print later",description:"Read the story on any device first. Then order a paperback or hardcover when it becomes a favorite."}],lVt=[["1","Add your child","Enter their name, age, and a few details they will recognize."],["2","Choose Learning to Read","Select the reading mode made for early readers ages 3â8."],["3","Pick any topic","Use an interest, routine, milestone, or adventure they already care about."],["4","Preview the first pages","Start free, then read digitally or print the finished book."]],Rve=[{question:"What ages is Learning to Read for?",answer:"Kibbi's Learning to Read mode is available for children ages 3â8. You can also choose Read Aloud or Reading Independently for children in those age bands."},{question:"Can I choose the topic?",answer:"Yes. Create a story about any topic your child cares about, from animals and vehicles to school, feelings, family moments, or an adventure you invent together."},{question:"Can I see the book before paying?",answer:"Yes. Start with a free sample and preview the cover and opening pages. No credit card is required."},{question:"Can I order a printed copy?",answer:"Yes. Any completed story can be ordered as a paperback or hardcover."},{question:"Does my child need to use Kibbi alone?",answer:"No. An adult creates and manages the account. You can read together, help when a word feels hard, or let your child try the story independently."}],cVt=()=>{const{user:e,loading:t}=er(),r=wt(),n=Du(),a=`${n}${n.includes("?")?"&":"?"}intent=learning-to-read`;if(k.useEffect(()=>{!t&&e&&r("/library",{replace:!0})},[e,t,r]),t||e)return null;const s={"@context":"https://schema.org","@type":"FAQPage",mainEntity:Rve.map(({question:o,answer:l})=>
8187({"@type":"Question",name:o,acceptedAnswer:{"@type":"Answer",text:l}}))};return i.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Personalized Decodable Books for Early Readers | Kibbi"}),i.jsx("meta",{name:"description",content:"Create a personalized decodable story for your early reader, built around their name and favorite topic. Ages 3â8. Start a free sample with no credit card."}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/lp/decodable-books"}),i.jsx("meta",{property:"og:title",content:"A decodable book made for your child | Kibbi"}),i.jsx("meta",{property:"og:description",content:"Create a personalized Learning to Read story for ages 3â8 and preview the first pages free."}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/lp/decodable-books"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-print-books.jpg"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(s)})]}),i.jsx("header",{className:"sticky top-0 z-50 border-b border-border bg-background/95 backdrop-blur-sm",children:i.jsxs("div",{className:"container mx-auto flex max-w-6xl items-center justify-between px-4 py-3 md:px-6",children:[i.jsx("a",{href:"/","aria-label":"Kibbi home",children:i.jsx("img",{src:va,alt:"Kibbi",className:"h-10",width:"81",height:"40"})}),i.jsx(le,{className:"rounded-full bg-primary px-5 text-foreground hover:bg-primary/90",asChild:!0,children:i.jsx("a",{href:a,children:"Create a free sample"})})]})}),i.jsxs("main",{children:[i.jsx("section",{className:"px-6 py-16 md:py-24","aria-labelledby":"decodable-hero-heading",children:i.jsxs("div",{className:"container mx-auto grid max-w-6xl items-center gap-12 lg:grid-cols-2",children:[i.jsxs("div",{children:[i.jsx("p",{className:"mb-4 text-sm font-semibold uppercase tracking-[0.18em] text-foreground/65",children:"Personalized Learning to Read books for ages 3â8"}),i.jsx("h1",{id:"decodable-hero-heading",className:"font-crimson text-4xl font-semibold leading-tight md:text-6xl",children:"A decodable book made for your child"}),i.jsx("p",{className:"mt-6 max-w-xl text-lg leading-relaxed text-foreground/80 md:text-xl",children:"Turn their name, favorite topic, and reading stage into a story they will want to try themselves. Read it online today or order a printed copy when it becomes a favorite."}),i.jsxs("div",{className:"mt-8",children:[i.jsx(le,{size:"lg",className:"rounded-full bg-primary px-8 py-6 text-base text-foreground hover:bg-primary/90",asChild:!0,children:i.jsx("a",{href:a,children:"Create a free sample"})}),i.jsx("p",{className:"mt-3 text-sm text-foreground/65",children:"No credit card required."})]})]}),i.jsxs("div",{className:"rounded-3xl border border-border bg-card p-4 shadow-xl md:p-6",children:[i.jsx("img",{src:"/images/story-creation-interface-optimized.png",alt:"Kibbi's guided story creation screen",width:"900",height:"700",className:"w-full rounded-2xl"}),i.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-3",children:[i.jsxs("div",{className:"rounded-2xl bg-background p-4",children:[i.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-foreground/55",children:"Ages 3â5"}),i.jsx("p",{className:"mt-2 font-lexend text-xl",children:"Pat can tap."})]}),i.jsxs("div",{className:"rounded-2xl bg-background p-4",children:[i.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-foreground/55",children:"Ages 6â8"}),i.jsx("p",{className:"mt-2 font-lexend text-xl",children:"The frog jumps on the stump."})]})]}),i.jsx("p",{className:"mt-3 text-center text-xs text-foreground/55",children:"Example text from Kibbi's Learning to Read mode"})]})]})}),i.jsx(wv,{pagePath:"/lp/decodable-books",className:"container mx-auto max-w-7xl px-6 py-12"}),i.jsx("section",{className:"border-y border-border bg-card px-6 py-6","aria-label":"Product facts",children:i.jsx("div",{className:"container mx-auto grid max-w-6xl gap-4 text-sm font-medium md:grid-cols-3",children:["Made for ages 3â8 in Learning to Read mode","Personalized around your child and any topic","Read online or print as paperback or hardcover"].map(o=>i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(_r,{className:"mt-0.5 h-5 w-5 shrink-0 text-primary"}),i.jsx("span",{children:o})]},o))})}),i.jsx("section",{className:"px-6 py-20 md:py-28",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[i.jsx("p",{className:"mb-3 text-sm font-semibold uppercase tracking-[0.18em] text-foreground
8187/60",children:"Reading practice they recognize"}),i.jsx("h2",{className:"font-crimson text-4xl font-semibold md:text-5xl",children:"Give them a story they already care about"}),i.jsx("p",{className:"mt-5 text-lg leading-relaxed text-foreground/75",children:"Early readers have enough work on the page. Kibbi makes the story itself feel familiar: their name, the things they love, and an adventure chosen for them."})]}),i.jsx("div",{className:"mt-14 grid gap-6 md:grid-cols-3",children:oVt.map(({icon:o,title:l,description:c})=>i.jsxs("article",{className:"rounded-3xl border border-border bg-card p-7 shadow-sm",children:[i.jsx("div",{className:"mb-5 flex h-12 w-12 items-center justify-center rounded-2xl bg-primary/15",children:i.jsx(o,{className:"h-6 w-6"})}),i.jsx("h3",{className:"text-xl font-semibold",children:l}),i.jsx("p",{className:"mt-3 leading-relaxed text-foreground/70",children:c})]},l))}),i.jsx("div",{className:"mt-10 text-center",children:i.jsx(le,{size:"lg",className:"rounded-full bg-primary px-8 text-foreground hover:bg-primary/90",asChild:!0,children:i.jsx("a",{href:a,children:"Make their Learning to Read book"})})})]})}),i.jsx("section",{className:"bg-card px-6 py-20 md:py-28","aria-labelledby":"how-it-works-heading",children:i.jsxs("div",{className:"container mx-auto max-w-6xl",children:[i.jsx("h2",{id:"how-it-works-heading",className:"text-center font-crimson text-4xl font-semibold md:text-5xl",children:"From their favorite idea to a book in minutes"}),i.jsx("div",{className:"mt-14 grid gap-6 md:grid-cols-2 lg:grid-cols-4",children:lVt.map(([o,l,c])=>i.jsxs("article",{className:"rounded-3xl bg-background p-6",children:[i.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary font-semibold",children:o}),i.jsx("h3",{className:"mt-5 text-lg font-semibold",children:l}),i.jsx("p",{className:"mt-2 text-sm leading-relaxed text-foreground/70",children:c})]},o))})]})}),i.jsx("section",{className:"px-6 py-20 md:py-28",children:i.jsxs("div",{className:"container mx-auto grid max-w-6xl items-center gap-12 lg:grid-cols-2",children:[i.jsxs("div",{children:[i.jsx("p",{className:"mb-3 text-sm font-semibold uppercase tracking-[0.18em] text-foreground/60",children:"Proven in real orders"}),i.jsx("h2",{className:"font-crimson text-4xl font-semibold md:text-5xl",children:"Families already choose Learning to Read books"}),i.jsx("p",{className:"mt-5 text-lg leading-relaxed text-foreground/75",children:"Learning to Read is not a future feature. Kibbi customers already create and buy books in this mode, including printed copies."}),i.jsxs("div",{className:"mt-7 flex items-start gap-3 rounded-2xl border border-border bg-card p-5",children:[i.jsx(qd,{className:"mt-0.5 h-6 w-6 shrink-0 text-primary"}),i.jsx("p",{className:"leading-relaxed",children:"Start with the digital story. Print it only when your child asks to read it again."})]})]}),i.jsx("img",{src:"/images/kibbi-print-books.jpg",alt:"Printed Kibbi storybooks",width:"900",height:"700",loading:"lazy",className:"w-full rounded-3xl shadow-xl"})]})}),i.jsx("section",{className:"bg-card px-6 py-20 md:py-28","aria-labelledby":"pricing-heading",children:i.jsxs("div",{className:"container mx-auto max-w-5xl",children:[i.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[i.jsx("h2",{id:"pricing-heading",className:"font-crimson text-4xl font-semibold md:text-5xl",children:"One personal story. Two ways to keep reading."}),i.jsx("p",{className:"mt-5 text-lg text-foreground/75",children:"Read the story digitally first. Order a printed copy only when you want one."})]}),i.jsxs("div",{className:"mt-12 grid items-stretch gap-6 md:grid-cols-2",children:[i.jsxs("article",{className:"flex flex-col rounded-3xl border-2 border-primary/25 bg-background p-7 md:p-9",children:[i.jsx("h3",{className:"text-xl font-semibold",children:"Your Child's Story"}),i.jsxs("p",{className:"mt-4 font-crimson text-4xl font-bold",children:[Br,i.jsx("span",{className:"text-base font-normal text-foreground/60",children:" per story"})]}
8187),i.jsx("p",{className:"mt-1 text-sm text-foreground/60",children:"One-time. No subscription."}),i.jsx("ul",{className:"my-7 flex-1 space-y-4",children:["A personalized story built for your child","Up to 20 illustrated pages","Read on Kibbi from any device","Edit the story text and images"].map(o=>i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx(_r,{className:"mt-0.5 h-5 w-5 shrink-0 text-primary"}),i.jsx("span",{children:o})]},o))}),i.jsx(le,{size:"lg",className:"w-full rounded-full bg-primary text-foreground hover:bg-primary/90",asChild:!0,children:i.jsx("a",{href:a,children:"Start with a free sample"})})]}),i.jsxs("article",{className:"flex flex-col rounded-3xl border-2 border-primary bg-background p-7 md:p-9",children:[i.jsx("h3",{className:"text-xl font-semibold",children:"Printed copy"}),i.jsx("p",{className:"mt-4 font-crimson text-4xl font-bold",children:"From $14.99"}),i.jsx("p",{className:"mt-1 text-sm text-foreground/60",children:"Paperback or hardcover"}),i.jsx("ul",{className:"my-7 flex-1 space-y-4",children:["Paperback from $14.99","Hardcover from $24.99","Order only when you want one","Shipping and handling shown before you pay"].map(o=>i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx(_r,{className:"mt-0.5 h-5 w-5 shrink-0 text-primary"}),i.jsx("span",{children:o})]},o))}),i.jsx(le,{size:"lg",className:"w-full rounded-full bg-primary text-foreground hover:bg-primary/90",asChild:!0,children:i.jsx("a",{href:a,children:"Create the digital story first"})})]})]})]})}),i.jsx("section",{className:"px-6 py-20 md:py-28","aria-labelledby":"testimonials-heading",children:i.jsxs("div",{className:"container mx-auto max-w-5xl",children:[i.jsx("h2",{id:"testimonials-heading",className:"text-center font-crimson text-4xl font-semibold md:text-5xl",children:"What parents notice"}),i.jsxs("div",{className:"mt-12 grid gap-6 md:grid-cols-2",children:[i.jsxs("figure",{className:"rounded-3xl border border-border bg-card p-8",children:[i.jsx("blockquote",{className:"text-lg leading-relaxed",children:"âI love how easy it was to create a story, and my kid has already read the same story 5 times!â"}),i.jsx("figcaption",{className:"mt-5 font-semibold",children:"Kaja S."})]}),i.jsxs("figure",{className:"rounded-3xl border border-border bg-card p-8",children:[i.jsx("blockquote",{className:"text-lg leading-relaxed",children:"âMy son was amazed to hear his own story come to life! It was so easy to create, and now it's his favorite part of the day.â"}),i.jsx("figcaption",{className:"mt-5 font-semibold",children:"Eddie K."})]})]})]})}),i.jsx("section",{className:"bg-card px-6 py-20 md:py-28","aria-labelledby":"faq-heading",children:i.jsxs("div",{className:"container mx-auto max-w-3xl",children:[i.jsx("h2",{id:"faq-heading",className:"text-center font-crimson text-4xl font-semibold md:text-5xl",children:"Questions parents ask"}),i.jsx("div",{className:"mt-12 space-y-4",children:Rve.map(({question:o,answer:l})=>i.jsxs("details",{className:"group rounded-2xl border border-border bg-background p-6",children:[i.jsx("summary",{className:"cursor-pointer list-none pr-8 text-lg font-semibold",children:o}),i.jsx("p",{className:"mt-4 leading-relaxed text-foreground/70",children:l})]},o))})]})}),i.jsx("section",{className:"px-6 py-20 text-center md:py-28",children:i.jsxs("div",{className:"container mx-auto max-w-3xl",children:[i.jsx("h2",{className:"font-crimson text-4xl font-semibold md:text-5xl",children:"Make the next practice book about something they love"}),i.jsx("p",{className:"mx-auto mt-5 max-w-2xl text-lg text-foreground/75",children:"Create a personalized Learning to Read story for your child and preview the first pages free."}),i.jsx(le,{size:"lg",className:"mt-8 rounded-full bg-primary px-8 py-6 text-base text-foreground hover:bg-primary/90",asChild:!0,children:i.jsx("a",{href:a,children:"Create a free sample"})}),i.jsx("p",{className:"mt-3 text-sm text-foreground/65",children:"No credit card required."})]})})]}),i.jsx(br,{hideCTA:!0})]})},uVt=()=>i.jsx(Cc,{config:uPe}),dVt=()=>i.jsx(Cc,{config:dPe}),hVt=()=>i.jsx(Cc,{config:hPe}),fVt=()=>i.jsx(Cc,{config:fPe}),pVt=()=>i.jsx(Cc,{config:pPe}),mVt=()=>i.jsx(Cc,{config:mPe}
8187),kPe="(prefers-reduced-motion: reduce)",gVt=e=>{var r;const t=(r=window.matchMedia)==null?void 0:r.call(window,kPe);return t?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):()=>{}},yVt=()=>{var e;return((e=window.matchMedia)==null?void 0:e.call(window,kPe).matches)??!1},vVt=()=>k.useSyncExternalStore(gVt,yVt,()=>!1),_Pe=()=>{const e=vVt(),t=k.useRef(null),[r,n]=k.useState(!1);k.useEffect(()=>{e&&n(!1)},[e]);const a=()=>{const s=t.current;s&&(s.paused?s.play():s.pause())};return e?i.jsx("img",{src:lH,alt:"Boy jumping with excitement while holding his printed Kibbi storybook",width:"720",height:"900",className:"w-full h-auto rounded-2xl shadow-lg",fetchPriority:"high"}):i.jsxs("div",{className:"relative",children:[i.jsx("video",{ref:t,"data-testid":"hero-video",src:bSe,poster:lH,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata",onPlay:()=>n(!0),onPause:()=>n(!1),width:"720",height:"900","aria-label":"Boy jumping with excitement while holding his printed Kibbi storybook",className:"w-full h-auto rounded-2xl shadow-lg"}),i.jsx("button",{type:"button",onClick:a,"aria-label":r?"Pause video":"Play video",className:"absolute bottom-3 right-3 rounded-full bg-black/50 hover:bg-black/70 text-white p-2.5 backdrop-blur-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white",children:r?i.jsx(Sy,{className:"w-4 h-4","aria-hidden":"true"}):i.jsx(a0,{className:"w-4 h-4","aria-hidden":"true"})})]})},xVt=[{icon:Fa,number:"1",title:"Tell us about your child",description:"Their name, age, how they look, and what they're obsessed with right now."},{icon:Qt,number:"2",title:"Kibbi writes and illustrates their book",description:"A complete story built around your child. Takes a few minutes."},{icon:xr,number:"3",title:"Read it tonight, print it if it's a keeper",description:"Read online right away, or order a paperback or hardcover keepsake."}],Dve=[{question:"How is this different from other name books?",answer:"Most name books are pre-written templates. The story and pictures are fixed, and your child's name is inserted into the gaps. Kibbi writes a new story from scratch for your child, so their looks, interests, and big moments shape the whole book, not just page one."},{question:"What ages does it work for?",answer:"Ages 0 to 9. Each book matches your child's reading stage: simple read-alouds for 0-2, picture books for 3-5, and chapter-style stories for 6-9."},{question:"What if the story misses the mark?",answer:"Your first sample story is free, no credit card needed, so you can see a real Kibbi story with your child in it before you pay anything."},{question:"How long does printing take?",answer:"Stories are ready to read online in minutes. Printed books take 6-8 business days to produce, plus shipping time for the carrier you pick at checkout. Paperback is $14.99, hardcover $24.99."},{question:"How much does it cost?",answer:`${Br} per story, one time, and only if you love it after the free preview. Printed keepsakes are one-off purchases too: $14.99 paperback, $24.99 hardcover, plus shipping and handling, shown before you pay.`}],bVt=()=>i.jsx("section",{className:"py-20 px-6","aria-labelledby":"name-book-difference-heading",children:i.jsxs("div",{className:"container mx-auto max-w-5xl",children:[i.jsx("h2",{id:"name-book-difference-heading",className:"font-crimson text-3xl md:text-4xl font-semibold text-center mb-12",children:"See the difference"}),i.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"rounded-2xl border border-border bg-muted/40 p-8",children:[i.jsx("h3",{className:"text-xl font-semibold mb-3",children:"A name book"}),i.jsx("p",{className:"text-foreground/80 leading-relaxed",children:"Their name dropped into a story thousands of other kids already have. Same plot, same pictures, different name on page one."})]}),i.jsxs("div",{className:"rounded-2xl border-2 border-primary bg-primary/5 p-8",children:[i.jsx("h3",{className:"text-xl font-semibold mb-3",children:"A Kibbi book"}
8187),i.jsx("p",{className:"text-foreground/80 leading-relaxed",children:"A story written and illustrated around your child alone: their name, their look, their favorite things."})]})]}),i.jsx("p",{className:"text-center text-foreground/70 mt-8 text-lg",children:"You tell us their name, age, and what they're into. Kibbi does the rest."})]})}),wVt=()=>{const e=Du();return i.jsx("section",{className:"py-20 px-6 bg-muted/30","aria-labelledby":"name-book-cta-heading",children:i.jsxs("div",{className:"container mx-auto max-w-3xl text-center",children:[i.jsx("h2",{id:"name-book-cta-heading",className:"font-crimson text-3xl md:text-4xl font-semibold mb-6",children:"Start with a free sample story"}),i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-8 py-6 text-[16px]",asChild:!0,children:i.jsx("a",{href:e,children:"Try it for free"})}),i.jsx("p",{className:"text-xs md:text-sm text-foreground/70 mt-3",children:"No credit card needed"})]})})},VQ="A Book With Your Child's Name in It | Kibbi",WQ="Kibbi writes and illustrates a brand-new story around your child: their name, their look, their interests. Read it online tonight. First sample story free.",kVt=()=>{const{user:e,loading:t}=er(),r=wt();if(k.useEffect(()=>{!t&&e&&r("/library",{replace:!0})},[e,t,r]),t||e)return null;const n={"@context":"https://schema.org","@type":"FAQPage",mainEntity:Dve.map(a=>({"@type":"Question",name:a.question,acceptedAnswer:{"@type":"Answer",text:a.answer}}))};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:VQ}),i.jsx("meta",{name:"description",content:WQ}),i.jsx("link",{rel:"canonical",href:"https://kibbi.ai/name-book"}),i.jsx("meta",{property:"og:title",content:VQ}),i.jsx("meta",{property:"og:description",content:WQ}),i.jsx("meta",{property:"og:url",content:"https://kibbi.ai/name-book"}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:VQ}),i.jsx("meta",{name:"twitter:description",content:WQ}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{role:"main",children:[i.jsx(Nle,{headline:"A book with your child's name in it. And their face, and their dinosaur phase.",subheadline:"Most name books drop a name into a story someone else wrote. Kibbi writes and illustrates a brand-new story around your kid: how they look, what they love, what they're going through this week. Ready to read tonight.",ctaText:"Try it for free",ctaSubtext:"Free sample story. No credit card needed.",media:i.jsx(_Pe,{})}),i.jsx(bVt,{}),i.jsx(wv,{pagePath:"/name-book",className:"container mx-auto max-w-7xl px-6 py-12"}),i.jsx(_v,{headline:"From their name to their book in three steps",subheadline:"A few minutes from start to story",steps:xVt}),i.jsx(kv,{}),i.jsx(W0,{}),i.jsx(K_,{}),i.jsx(G0,{}),i.jsx(jv,{headline:"Questions parents ask",subheadline:"What to know before you make their first story",faqs:Dve}),i.jsx(wVt,{})]}),i.jsx(br,{hideCTA:!0})]})]})},SPe="/christmas-book-for-kids",jPe=pu(m4.usStandardOrderBy),EPe=pu(m4.usExpressOrderBy),CPe=pu(m4.internationalOrderBy);function _Vt(e){const t=D8e(e,{alwaysShow:!0});return{mode:t?t.phase==="after-cutoff"?"closed":"open":"off",notice:t,cutoffs:mwt(e)}}const SVt=({mode:e,notice:t})=>[{icon:Fa,number:"1",title:"Tell us about the child",description:"Their name, age, how they look, and what they're into right now. Works for your own kid, a grandchild, or a friend's child."},{icon:Qt,number:"2",title:"Kibbi writes and illustrates the book",description:"A complete story built around that one child. Takes a few minutes."},{icon:r0,number:"3",title:"Read it tonight, wrap the hardcover",description:e==="open"&&t?`Read online right away. ${t.headline}`:e==="closed"?"Read online right away and on the 24th. Printed books ordered now arrive in January.":"Read online right away, or order a paperback or hardcover keepsake that ships to any address."}],jVt=({mode:e,notice:t,cutoffs:r})=>[{question:"Will the printed book arrive before Christmas?",answer:e==="closed"?"Printed books ordered now arrive after Christmas. The story itself is ready to read the same evening you make it, so read it together on the 24th and let the printed book follow in January.":e==="open"&&t?`Yes, if you order in time. ${t.headline} ${t.detail??""} After that the story is still ready to read the same evening, and the printed book arrives in January.`:"Printing takes 6 to 8 days, and can run longer in December, then the mail. We publish the exact order-by dates for Christmas delivery on this page each November. The story itself is ready to read the same evening you make it."},{question:"Can I make a book for a child who isn't mine?",answer:"Yes. Grandparents, aunts, uncles, and family friends do it all the time. You answer a few questions about the child: name, age, what they look like, what they love. If you're unsure, ask their parents for three things they're into this month. The printed book can ship straight to the child's address or to you for wrapping."},{question:"Does the story have to be about Christmas?",answer:"No. It can be about Christmas, or about the thing they can't stop talking about: dinosaurs, the new puppy, starting school, a trip you took together. You choose when you make it."},{question:"Where do you ship?",answer:`The United States, Canada, the United Kingdom, Australia, and most of Europe. Shipping and handling are shown in full before you pay.${e==="open"?r.internationalOpen?` Outside the US, order by ${CPe} for Christmas delivery.`:" Outside the US, printed books ordered now arrive after Christmas.":""}`},{question:"Is there a gift card?",answer:"Not yet. Making the story takes about ten minutes, and the printed book ships to any address, so most people make it themselves and send it straight to the child."},{question:"How much does it cost?",answer:`${Br} per story, one time, and only if you love it after the free sample. Printed books are one-off purchases too: $14.99 paperback, $24.99 hardcover, plus shipping and handling shown before you pay.`}],GQ=({label:e,date:t,open:r})=>i.jsxs("div",{className:"rounded-2xl border border-border bg-background p-6 text-center",children:[i.jsx("dt",{className:"text-sm text-foreground
8187/70 mb-1",children:e}),i.jsx("dd",{className:r?"text-xl font-semibold whitespace-nowrap":"text-xl font-semibold text-foreground/50",children:r?`Order by ${t}`:`${t}, passed`})]}),EVt=({cutoffs:e})=>i.jsx("section",{className:"py-16 px-6 bg-muted/30","aria-labelledby":"christmas-deadlines-heading",children:i.jsxs("div",{className:"container mx-auto max-w-4xl",children:[i.jsx("h2",{id:"christmas-deadlines-heading",className:"font-crimson text-3xl md:text-4xl font-semibold text-center mb-4",children:"Order by these dates for Christmas delivery"}),i.jsx("p",{className:"text-center text-foreground/70 mb-8 max-w-2xl mx-auto",children:"Printing takes 6 to 8 days and can run longer in December, then the mail. These dates come from how long our books actually took to arrive this year, with room for the holiday rush."}),i.jsxs("dl",{className:"grid gap-4 md:grid-cols-3 mb-8",children:[i.jsx(GQ,{label:"US, standard shipping",date:jPe,open:e.usStandardOpen}),i.jsx(GQ,{label:"US, express shipping",date:EPe,open:e.usExpressOpen}),i.jsx(GQ,{label:"Outside the US",date:CPe,open:e.internationalOpen})]}),i.jsx($8e,{alwaysShow:!0,className:"max-w-2xl mx-auto"})]})}),CVt=["Their real dog helps the reindeer find the way on Christmas Eve.","The year the family moved, told as an adventure, so the new house feels like theirs.","Grandma and Grandpa as characters, for the grandparents who live far away.","A big-sister story for the baby arriving in spring."],NVt=()=>i.jsx("section",{className:"py-20 px-6","aria-labelledby":"december-ideas-heading",children:i.jsxs("div",{className:"container mx-auto max-w-5xl",children:[i.jsx("h2",{id:"december-ideas-heading",className:"font-crimson text-3xl md:text-4xl font-semibold text-center mb-4",children:"What parents are making this December"}),i.jsx("p",{className:"text-center text-foreground/70 mb-10 max-w-2xl mx-auto",children:"Every book is written from scratch, so the story can be about anything the child cares about. A few from this season:"}),i.jsx("ul",{className:"grid gap-4 md:grid-cols-2",children:CVt.map(e=>i.jsx("li",{className:"rounded-2xl border border-border bg-muted/40 p-6 text-lg leading-relaxed",children:e},e))})]})}),TVt=()=>{const e=Du();return i.jsx("section",{className:"py-16 px-6 bg-primary/5","aria-labelledby":"late-december-heading",children:i.jsxs("div",{className:"container mx-auto max-w-3xl text-center",children:[i.jsx("h2",{id:"late-december-heading",className:"font-crimson text-3xl md:text-4xl font-semibold mb-4",children:"Running late? The story is the present."}),i.jsx("p",{className:"text-lg text-foreground/80 leading-relaxed mb-6",children:"Past the order-by date for where you live? Make the story tonight and read it together on the 24th, on a phone, a tablet, or the TV. The printed hardcover follows in January as the second half of the gift."}),i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-8 py-6 text-[16px]",asChild:!0,children:i.jsx("a",{href:e,children:"Try it for free"})})]})})},AVt=()=>{const e=Du();return i.jsx("section",{className:"py-20 px-6 bg-muted/30","aria-labelledby":"christmas-cta-heading",children:i.jsxs("div",{className:"container mx-auto max-w-3xl text-center",children:[i.jsx("h2",{id:"christmas-cta-heading",className:"font-crimson text-3xl md:text-4xl font-semibold mb-6",children:"Start with a free sample story"}),i.jsx(le,{size:"lg",className:"bg-primary hover:bg-primary/90 text-foreground font-medium rounded-full px-8 py-6 text-[16px]",asChild:!0,children:i.jsx("a",{href:e,children:"Try it for free"})}),i.jsx("p",{className:"text-xs md:text-sm text-foreground/70 mt-3",children:"No credit card needed"})]})})},KQ="A Christmas Book Starring Your Child | Kibbi",MVt=({mode:e,cutoffs:t})=>`Kibbi writes and illustrates a brand-new story around one child: their name, their look, what they love. Read it tonight.${e==="open"&&t.usStandardOpen?` In the US, order the hardcover by ${jPe} for Christmas.`:e==="open"?` In the US, order the hardcover by ${EPe} with express shipping for Christmas.`:" Order the hardcover as a keepsake."}`,Fve=`https://kibbi.ai${SPe}`,IVt=()=>{const{user:e,loading:t}=er(),r=wt(),n=F8e();if(k.useEffect(()=>{!t&&e&&r("/library",{replace:!0})},[e,t,r]),t||e)return null;
8187const a=_Vt(n),{mode:s,cutoffs:o}=a,l=jVt(a),c=MVt(a),u={"@context":"https://schema.org","@type":"FAQPage",mainEntity:l.map(d=>({"@type":"Question",name:d.question,acceptedAnswer:{"@type":"Answer",text:d.answer}}))};return i.jsxs(i.Fragment,{children:[i.jsxs(qt,{children:[i.jsx("title",{children:KQ}),i.jsx("meta",{name:"description",content:c}),i.jsx("link",{rel:"canonical",href:Fve}),i.jsx("meta",{property:"og:title",content:KQ}),i.jsx("meta",{property:"og:description",content:c}),i.jsx("meta",{property:"og:url",content:Fve}),i.jsx("meta",{property:"og:type",content:"website"}),i.jsx("meta",{property:"og:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("meta",{property:"og:site_name",content:"Kibbi"}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:KQ}),i.jsx("meta",{name:"twitter:description",content:c}),i.jsx("meta",{name:"twitter:image",content:"https://kibbi.ai/images/kibbi-devices.jpg"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify(u)})]}),i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(lr,{}),i.jsxs("main",{role:"main",children:[i.jsx(Nle,{headline:"Create a children's book about anything in minutes. Starring your kid.",subheadline:`Not a name swapped into a template. Kibbi writes and illustrates a brand-new story from scratch, about whatever your kid is into this December. Read it together tonight${s==="open"&&o.internationalOpen?", and order the hardcover in time to go under the tree.":s==="open"?". In the US, the hardcover can still arrive in time to go under the tree; elsewhere, printed books ordered now arrive in January.":s==="closed"?". Printed books ordered now arrive in January, so the story is the present this year.":", and order the hardcover as a keepsake."}`,ctaText:"Try it for free",ctaSubtext:"Free sample story. No credit card needed.",media:i.jsx(_Pe,{})}),s==="open"&&i.jsx(EVt,{cutoffs:o}),i.jsx(wv,{pagePath:SPe,className:"container mx-auto max-w-7xl px-6 py-12"}),i.jsx(NVt,{}),i.jsx(_v,{headline:"From their name to a wrapped book in three steps",subheadline:"A few minutes to make, 6 to 8 days to print, longer in December",steps:SVt(a)}),i.jsx(kv,{}),i.jsx(W0,{}),i.jsx(K_,{}),i.jsx(G0,{}),s!=="off"&&i.jsx(TVt,{}),i.jsx(jv,{headline:"Questions before you order",subheadline:"Delivery dates, gifting to other people's kids, and what it costs",faqs:l}),i.jsx(AVt,{})]}),i.jsx(br,{hideCTA:!0})]})]})};var PVt="Separator",$ve="horizontal",LVt=["horizontal","vertical"],NPe=k.forwardRef((e,t)=>{const{decorative:r,orientation:n=$ve,...a}=e,s=OVt(n)?n:$ve,l=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return i.jsx(dt.div,{"data-orientation":s,...l,...a,ref:t})});NPe.displayName=PVt;function OVt(e){return LVt.includes(e)}var TPe=NPe;const Tb=k.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},a)=>i.jsx(TPe,{ref:a,decorative:r,orientation:t,className:De("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Tb.displayName=TPe.displayName;const RVt=()=>i.jsxs("div",{className:"min-h-screen bg-muted/50 py-12 px-4",children:[i.jsx(qt,{children:i.jsx("title",{children:"Email Preview | Kibbi"})}),i.jsxs("div",{className:"max-w-2xl mx-auto",children:[i.jsx("p",{className:"text-sm text-muted-foreground mb-4 text-center",children:'Email Preview â Subject: "Your characters are ready for their next adventure"'}),i.jsx(Ie,{className:"shadow-lg",children:i.jsxs(qe,{className:"p-8 md:p-12 space-y-8",children:[i.jsx("div",{className:"text-center",children:i.jsx("img",{src:va,alt:"Kibbi",className:"h-10 mx-auto"})}),i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx("p",{className:"text-lg text-muted-foreground italic",children:"Remember Sunny the squirrel from your child's bedtime favorite?"}),i.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-foreground",children:"Now Sunny can star in a brand new adventure â looking exactly the same."})]}),i.jsx(Tb,{}),i.jsxs("div",{className:"space-y-4",children:[i.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"What's new"}),i.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary mt-1",children:"â"}),i.jsx("span",{children:"Import characters from any completed story into a new one"})]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary mt-1",children:"â"}),i.jsx("span",{children:"Characters keep their exact appearance (fur color, outfit, accessories)"})]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary mt-1",children:"â"}),i.jsx("span",{children:"Works with both Kibbi-generated stories AND your own uploaded text"})]})]})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Why it matters"}),i.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[i.jsx("li",{children:"ð Create a story series with visual consistency"}),i.jsx("li",{children:"ð¯ No need to re-describe characters â we remember them perfectly"}),i.jsx("li",{children:"⨠Characters your child loves can go on unlimited adventures"})]})]}),i.jsx(Tb,{}),i.jsxs("div",{className:"space-y-6",children:[i.jsx("h2",{className:"text-xl font-semibold text-foreground text-center",children:"How It Works"}),i.jsxs("div",{className:"grid gap-4",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold text-sm shrink-0",children:"1"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Start a new story"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:'Choose "Create New Story" from your library'})]})]}),i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold text-sm shrink-0",children:"2"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Import characters"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:'Select "Use existing characters" and pick a previous story'})]})]}),i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold text-sm shrink-0",children:"3"}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Choose your favorites"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Select which characters to bring into the new adventure"})]})]})]}),i.jsx("p",{className:"text-center text-muted-foreground italic",children:"That's it â we handle the rest."})]}),i.jsx(Tb,{}),i.jsxs("div",{className:"space-y-4",children:[i.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Ideas to try"}),i.jsxs("div",{className:"grid gap-3 text-sm",children:[i.jsxs("div",{className:"bg-muted/50 rounded-lg p-3",children:[i.jsx("p",{className:"font-medium text-foreground",children:"Sequel story"}),i.jsx("p",{className:"text-muted-foreground",children:"Sunny's Forest Adventure â Sunny's Winter Wonderland"})]}),i.jsxs("div",{className:"bg-muted/50 rounded-lg p-3",children:[i.jsx("p",{className:"font-medium text-foreground",children:"Character crossover"}),i.jsx("p",{className:"text-muted-foreground",children:"Bring Bella the rabbit into a story with new friends"})]}),i.jsxs("div",{className:"bg-muted/50 rounded-lg p-3",children:[i.jsx("p",{className:"font-medium text-foreground",children:"Illustrate your own text"}),i.jsx("p",{className:"text-muted-foreground",children:"Use the same characters for your next uploaded story"})]})]})]}),i.jsxs("div",{className:"text-center space-y-4 pt-4",children:[i.jsx(le,{size:"lg",className:"rounded-full px-8",children:"Create a Sequel Story"}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:["or ",i.jsx("a",{href:"#",className:"underline hover:text-foreground",children:"See How It Works"})]})]}),i.jsx(Tb,{}),i.jsxs("div",{className:"text-center space-y-6",children:[i.jsxs("p",{className:"text-muted-foreground italic",children:['"Every great character deserves more than one story.',i.jsx("br",{}),'Now yours can have as many as your imagination allows."']}),i.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[i.jsx("p",{children:"Happy storytelling,"}),i.jsx("p",{className:"font-medium text-foreground",children:"The Kibbi Team"})]})]}),i.jsxs("div",{className:"text-center text-xs text-muted-foreground pt-4 border-t",children:[i.jsx("p",{children:"You're receiving this email because you signed up for Kibbi."}),i.jsxs("p",{className:"mt-1",children:[i.jsx("a",{href:"#",className:"underline",children:"Unsubscribe"})," · ",i.jsx("a",{href:"#",className:"underline",children:"Update preferences"})]})]})]})})]})]}),APe=()=>{const e=wa(),{toast:t}=Xt(),{user:r}=er(),[n,a]=k.useState([]),[s,o]=k.useState(!1),[l,c]=k.useState(""),[u,d]=k.useState(0);k.useEffect(()=>{let v=localStorage.getItem("chatbot_session_id");v||(v=crypto.randomUUID(),localStorage.setItem("chatbot_session_id",v)),c(v)},[]);const h=k.useCallback(async v=>{var b,x,_,w,j,E,C;if(!v.trim())return;const g={role:"user",content:v.trim(),timestamp:new Date};a(N=>
8187[...N,g]),o(!0);try{const N=await fetch("https://lzszruyujsdpxlwctvlq.supabase.co/functions/v1/help-chatbot",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imx6c3pydXl1anNkcHhsd2N0dmxxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODY1MzkzMTEsImV4cCI6MjEwMjExNTMxMX0.VFzb_KxS4jUJovrg3ge4Edg21pN3PEK9EEJzd3KL0Nk"},body:JSON.stringify({message:v.trim(),currentPath:e.pathname,conversationHistory:n.map(M=>({role:M.role,content:M.content})),sessionId:l,userId:(r==null?void 0:r.id)||null})});if(!N.ok)throw N.status===429?new Error("Rate limit exceeded. Please try again in a moment."):N.status===402?new Error("Service temporarily unavailable. Please try again later."):new Error("Failed to get response");const A=(b=N.body)==null?void 0:b.getReader();if(!A)throw new Error("No response stream");const $=new TextDecoder;let T="",F="";for(;;){const{done:M,value:z}=await A.read();if(M)break;F+=$.decode(z,{stream:!0});const Y=F.split(` 8188`);F=Y.pop()||"";for(const W of Y){const ee=W.trim();if(!ee||ee.startsWith(":")||!ee.startsWith("data: "))continue;const Z=ee.slice(6).trim();if(Z!=="[DONE]")try{const ne=(w=(_=(x=JSON.parse(Z).choices)==null?void 0:x[0])==null?void 0:_.delta)==null?void 0:w.content;ne&&(T+=ne,a(P=>{const R=P[P.length-1];return(R==null?void 0:R.role)==="assistant"?P.map((H,re)=>re===P.length-1?{...H,content:T}:H):[...P,{role:"assistant",content:T,timestamp:new Date}]}))}catch(V){console.error("Failed to parse SSE data:",V)}}}if(F.trim()){const M=F.trim();if(M.startsWith("data: ")&&M.slice(6)!=="[DONE]")try{const Y=(C=(E=(j=JSON.parse(M.slice(6)).choices)==null?void 0:j[0])==null?void 0:E.delta)==null?void 0:C.content;Y&&(T+=Y,a(W=>{const ee=W[W.length-1];return(ee==null?void 0:ee.role)==="assistant"?W.map((Z,V)=>V===W.length-1?{...Z,content:T}:Z):[...W,{role:"assistant",content:T}]}))}catch(z){console.error("Failed to parse final buffer:",z)}}}catch(N){console.error("Chat error:",N);const A={role:"assistant",content:`I'm having trouble connecting right now. ${N instanceof Error?N.message:""} 8189 8190Here are some helpful resources: 8191 8192- [Help Center](/help) 8193- [Contact Support](/contact)`,timestamp:new Date};a($=>[...$,A]),t({title:"Connection Error",description:N instanceof Error?N.message:"Please try again",variant:"destructive"})}finally{o(!1)}},[e.pathname,n,t,l,r]),f=k.useCallback(()=>{a([])},[]),p=k.useCallback(async()=>{const v=localStorage.getItem("chatbot_session_id");if(!(!r&&!v))try{const{data:g}=await oe.from("chat_conversations").select("id").eq(r?"user_id":"session_id",r?r.id:v).maybeSingle();if(!(g!=null&&g.id))return;const{data:b,error:x}=await oe.from("chat_messages").select("id, role, content, sent_by_admin, created_at").eq("conversation_id",g.id).order("created_at",{ascending:!0});if(x)throw x;if(b){const _=b.map(w=>({role:w.role,content:w.content,sent_by_admin:w.sent_by_admin,timestamp:new Date(w.created_at)}));a(_)}}catch(g){console.error("Error loading messages:",g)}},[r]),y=k.useCallback(async()=>{const v=r?{p_user_id:r.id,p_session_id:null}:{p_user_id:null,p_session_id:l};if(!r&&!l){d(0);return}try{const{data:g,error:b}=await oe.rpc("get_unread_admin_message_count",v);if(b)throw b;d(g||0)}catch(g){console.error("Error fetching unread count:",g)}},[r,l]),m=k.useCallback(async v=>{const g=r?{p_conversation_id:v,p_user_id:r.id,p_session_id:null}:{p_conversation_id:v,p_user_id:null,p_session_id:l};if(!(!r&&!l))try{const{error:b}=await oe.rpc("mark_conversation_as_read",g);if(b)throw b;await y()}catch(b){console.error("Error marking as read:",b)}},[r,l,y]);return{messages:n,isStreaming:s,sendMessage:h,clearMessages:f,loadMessages:p,unreadCount:u,fetchUnreadCount:y,markAsRead:m}},DVt=({onClick:e,isOpen:t})=>{const{unreadCount:r,fetchUnreadCount:n}=APe();return er(),k.useEffect(()=>{if(t)return;n();const a=setInterval(n,3e4);return()=>clearInterval(a)},[t,n]),i.jsxs("div",{className:"relative",children:[i.jsxs(le,{onClick:e,className:"fixed bottom-6 right-6 h-14 px-4 rounded-full shadow-lg hover:shadow-xl transition-all duration-200 z-50 gap-2","aria-label":"Open help",children:[i.jsx(tl,{className:"h-6 w-6"}),i.jsx("span",{className:"font-medium",children:"Help"})]}),r>0&&i.jsx("div",{className:"fixed bottom-[4.5rem] right-[5.5rem] h-6 w-6 bg-red-500 text-white text-xs font-bold rounded-full flex items-center justify-center z-50",children:r})]})},YQ={"/pricing":["What's included in the digital story?","How much does a print book cost?","Do you offer subscriptions?"],"/library":["How do I create a new story?","Can I download my stories?","How do I order a print version?"],"/app/style-selection":["What illustration styles are available?","Can I change the style later?","How does AI generate the images?"],"/orders":["How long does shipping take?","Can I track my order?","What's your return policy?"],"/help":["How do I create a personalized story?","What formats are available?","Can I illustrate an existing story?"]},FVt=e=>{if(YQ[e])return YQ[e];for(const[t,r]of Object.entries(YQ))if(e.startsWith(t))return r;return["How do I create a personalized story?","What formats are available?","Can I illustrate an existing story?"]},$Vt=({isOpen:e,onClose:t,messages:r,isStreaming:n,onSendMessage:a,onMarkAsRead:s,onLoadMessages:o})=>{const l=wa(),[c,u]=k.useState(""),d=k.useRef(null),h=k.useRef(null),[f,p]=k.useState(null),[y,m]=k.useState(r),{user:v}=er(),g=FVt(l.pathname);k.useEffect(()=>{m(r)},[r]),k.useEffect(()=>{if(!e)return;(async()=>{o();const w=oe.from("chat_conversations").select("id");if(v)w.eq("user_id",v.id);else{const E=localStorage.getItem("chatbot_session_id");if(!E)return;w.eq("session_id",E)}const{data:j}=await w.maybeSingle();j!=null&&j.id&&(p(j.id),s(j.id))})()},[e,s,o,v]),k.useEffect(()=>{if(!e||!f)return;console.log("Setting up realtime subscription for conversation:",f);const _=oe.channel(`chat_messages:${f}`).on("postgres_changes",{event:"INSERT",schema:"public",table:"chat_messages",filter:`conversation_id=eq.${f}`},w=>{console.log("New message received via realtime:",w);const j=w.new;m(E=>E.some(N=>{var A;return((A=N.timestamp)==null?void 0:A.getTime())===new Date(j.created_at).getTime()&&N.content===j.content})?(console.log("Message already exists, skipping"),E):(console.log("Adding new message to chat"),[...E,{role:j.role,content:j.content,sent_by_admin:j.sent_by_admin,timestamp:new Date(j.created_at)}]))}).subscribe();return()=>{console.log("Cleaning up realtime subscription"),oe.removeChannel(_)}},[e,f]);const b=_=>{_.preventDefault(),c.trim()&&!n&&(a(c),u(""))},x=_=>{n||a(_)};return k.useEffect(()=>{var _;(_=h.current)==null||_.scrollIntoView({behavior:"smooth"})},[y]),i.jsx(vie,{open:e,onOpenChange:t,children:i.jsxs(TW,{side:"right",className:"w-full sm:w-[400px] p-0 flex flex-col",children:[i.jsx(xie,{className:"px-6 py-4 border-b",children:i.jsx(bie,{children:"Chat with Kibbi AI"})}),i.jsx(fse,{ref:d,className:"flex-1 px-6 py-4",children:y.length===0?i.jsxs("div",{className:"space-y-4",children:[i.jsx("p",{className:"text-muted-foreground text-sm",children:"Hi! I'm here to help you with any questions about Kibbi. Ask me anything or try one of these:"}),i.jsx("div",{className:"space-y-2",children:g.map((_,w)=>i.jsx(Re,{variant:"outline",className:"cursor-pointer hover:bg-accent w-full justify-start text-left py-2 px-3 h-auto",onClick:()=>x(_),children:_},w))})]}):i.jsxs("div",{className:"space-y-4",children:[y.map((_,w)=>{const E=_.sent_by_admin;return i.jsx("div",{className:`flex ${_.role==="user"?"justify-end":"justify-start"}`,children:i.jsxs("div",{className:`max-w-[85%] rounded-lg px-4 py-2 ${_.role==="user"?"bg-primary text-primary-foreground":E?"bg-amber-50 border-l-4 border-amber-600 dar
8193k:bg-amber-950/30":"bg-muted"}`,children:[_.role==="assistant"&&i.jsx("div",{className:"flex items-center gap-2 mb-2",children:E?i.jsxs(i.Fragment,{children:[i.jsx(xl,{className:"h-3 w-3 text-amber-600"}),i.jsx(Re,{variant:"outline",className:"bg-amber-100 text-amber-800 border-amber-300 dark:bg-amber-900 dark:text-amber-200",children:"Nick @ Kibbi support"})]}):i.jsx(Re,{variant:"outline",className:"text-xs",children:"AI Assistant"})}),_.role==="assistant"?i.jsx("div",{className:"prose prose-sm max-w-none dark:prose-invert",children:i.jsx($je,{components:{a:({node:C,...N})=>i.jsx("a",{...N,className:"text-blue-600 underline hover:text-blue-800 font-medium",target:"_blank",rel:"noopener noreferrer"}),p:({node:C,...N})=>i.jsx("p",{...N,className:"mb-2 last:mb-0"}),ul:({node:C,...N})=>i.jsx("ul",{...N,className:"list-disc ml-4 mb-2"}),ol:({node:C,...N})=>i.jsx("ol",{...N,className:"list-decimal ml-4 mb-2"})},children:_.content})}):i.jsx("p",{className:"text-sm",children:_.content})]})},w)}),n&&i.jsx("div",{className:"flex justify-start",children:i.jsx("div",{className:"bg-muted rounded-lg px-4 py-2",children:i.jsx(Me,{className:"h-4 w-4 animate-spin"})})}),i.jsx("div",{ref:h})]})}),i.jsx("form",{onSubmit:b,className:"p-4 border-t",children:i.jsxs("div",{className:"flex gap-2",children:[i.jsx(Pt,{value:c,onChange:_=>u(_.target.value),placeholder:"Type your question...",disabled:n,className:"flex-1"}),i.jsx(le,{type:"submit",size:"icon",disabled:n||!c.trim(),children:i.jsx(Gd,{className:"h-4 w-4"})})]})})]})})},BVt=()=>{const{isOpen:e,openChatbot:t,closeChatbot:r}=E_e(),{messages:n,isStreaming:a,sendMessage:s,markAsRead:o,loadMessages:l}=APe(),c=wa();return c.pathname.startsWith("/admin")||c.pathname.includes("/update-")||c.pathname.includes("/import-")||c.pathname.includes("/auto-")||c.pathname.includes("/fix-")||c.pathname.includes("/delete-")||c.pathname==="/app/story-reader"||c.pathname.startsWith("/shared/story/")||c.pathname==="/app/disclaimer"||c.pathname==="/app/profile-selection"||c.pathname==="/app/language-selection"||c.pathname==="/app/reading-level-selection"||c.pathname==="/app/style-selection"||c.pathname==="/app/story-input"||c.pathname==="/app/story-metadata"?null:i.jsxs(i.Fragment,{children:[i.jsx(DVt,{onClick:t,isOpen:e}),i.jsx($Vt,{isOpen:e,onClose:r,messages:n,isStreaming:a,onSendMessage:s,onMarkAsRead:o,onLoadMessages:l})]})},zVt=({children:e})=>{const{hasDashboardAccess:t,loading:r}=W_();return r?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):t?i.jsx(i.Fragment,{children:e}):i.jsx(ty,{to:"/library",replace:!0})},UVt=()=>{const e=wt(),[t]=ka(),r=t.get("id"),{user:n,loading:a}=er(),{freeSamplesRemaining:s}=ch();k.useEffect(()=>{!a&&!n&&e("/login")},[n,a,e]);const o=()=>{e(`/app/character-import-choice?mode=kibbi${r?`&id=${r}`:""}`)},l=()=>{e(`/app/character-import-choice?mode=byos${r?`&id=${r}`:""}`)};return a?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx("div",{className:"animate-pulse text-muted-foreground",children:"Loading..."})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Choose Story Mode | Kibbi"}),i.jsx("meta",{name:"description",content:"Choose how to create your personalized children's book - let Kibbi write it or bring your own story."})]}),i.jsx(Ba,{}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[i.jsxs("div",{className:"text-center mb-10",children:[i.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-3",children:"How would you like to create your book?"}),i.jsx("p",{className:"text-muted-foreground text-lg",children:s>0?"You have 1 free sample â choose either option to try it out":"Choose the option that works best for you"})]}),i.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[i.jsxs(Ie,{className:"cursor-pointer transition-all hover:shadow-lg hover:border-primary/50 hover:scale-[1.02] border-2",onClick:o,children:[i.jsxs(ze,{className:"text-center pb-2",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:i.jsx(Qt,{className:"w-8 h-8 text-primary"})}),i.jsx(Ke,{className:"text-xl",children:"Kibbi Creates the Story"}),i.jsx(Rt,{className:"text-base",children:"Answer a few questions and we'll write a personalized story just for your child"})]}),i.jsxs(qe,{className:"pt-4",children:[i.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"AI-written story based on your child's interests"]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Personalized characters and adventures"]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Age-appropriate vocabulary and themes"]})]}),i.jsxs(le,{className:"w-full mt-6",onClick:c=>{c.stopPropagation(),o()},children:[i.jsx(Qt,{className:"w-4 h-4 mr-2"}),"Start Creating"]})]})]}),i.jsxs(Ie,{className:"cursor-pointer transition-all hover:shadow-lg hover:border-primary/50 hover:scale-[1.02] border-2",onClick:l,children:[i.jsxs(ze,{className:"text-center pb-2",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-4",children:i.jsx(Ti,{className:"w-8 h-8 text-accent"})}),i.jsx(Ke,{className:"text-xl",children:"Illustrate My Story"}),i.jsx(Rt,{className:"text-base",children:"Already have a story? Paste it and we'll create beautiful illustrations"})]}),i.jsxs(qe,{className:"pt-4",children:[i.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Use your own written story or AI-generated text"]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"We'll split it into pages automatically"]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Custom illustrations matching your story"]})]}),i.jsxs(le,{className:"w-full mt-6",onClick:c=>{c.stopPropagation(),l()},children:[i.jsx(Ti,{className:"w-4 h-4 mr-2"}),"Upload My Story"]})]})]})]})]})]})},qVt=()=>{const e=wt(),[t]=ka(),r=t.get("mode")||"kibbi",n=t.get("id"),{user:a,loading:s}=er(),[o,l]=k.useState(!0),[c,u]=k.useState(!1);k.useEffect(()=>{!s&&!a&&e("/login")},[a,s,e]),k.useEffect(()=>{a&&(async()=>
8193{if(!a)return;const{data:p,error:y}=await oe.from("stories").select("id").eq("user_id",a.id).in("status",["completed","review","ready","page_review"]).not("character_descriptions","is",null).limit(1);y?(console.error("Error checking eligible stories:",y),u(!1)):u(p&&p.length>0),l(!1)})()},[a]),k.useEffect(()=>{if(!o&&!c){const f=r==="kibbi"?`/app/profile-selection${n?`?id=${n}`:""}`:`/app/paste-story${n?`?id=${n}`:""}`;e(f)}},[o,c,r,n,e]);const d=()=>{e(`/app/character-source?mode=${r}${n?`&id=${n}`:""}`)},h=()=>{const f=r==="kibbi"?`/app/profile-selection${n?`?id=${n}`:""}`:`/app/paste-story${n?`?id=${n}`:""}`;e(f)};return s||o?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Import Characters | Kibbi"}),i.jsx("meta",{name:"description",content:"Choose whether to import characters from an existing story or start fresh."})]}),i.jsx(Ba,{}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[i.jsxs(le,{variant:"ghost",onClick:()=>e("/app/story-mode"),className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[i.jsx(ea,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsxs("div",{className:"text-center mb-10",children:[i.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-3",children:"Use existing characters?"}),i.jsx("p",{className:"text-muted-foreground text-lg",children:"You can bring characters from a previous story into your new one"})]}),i.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[i.jsxs(Ie,{className:"cursor-pointer transition-all hover:shadow-lg hover:border-primary/50 hover:scale-[1.02] border-2",onClick:d,children:[i.jsxs(ze,{className:"text-center pb-2",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:i.jsx(Xi,{className:"w-8 h-8 text-primary"})}),i.jsx(Ke,{className:"text-xl",children:"Yes, Import Characters"}),i.jsx(Rt,{className:"text-base",children:"Use characters from one of your completed stories"})]}),i.jsxs(qe,{className:"pt-4",children:[i.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Same character appearances across stories"]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Consistent illustration style"]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Perfect for story series"]})]}),i.jsxs(le,{className:"w-full mt-6",onClick:f=>{f.stopPropagation(),d()},children:[i.jsx(Xi,{className:"w-4 h-4 mr-2"}),"Choose a Story"]})]})]}),i.jsxs(Ie,{className:"cursor-pointer transition-all hover:shadow-lg hover:border-primary/50 hover:scale-[1.02] border-2",onClick:h,children:[i.jsxs(ze,{className:"text-center pb-2",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-4",children:i.jsx(Yc,{className:"w-8 h-8 text-accent"})}),i.jsx(Ke,{className:"text-xl",children:"No, Start Fresh"}),i.jsx(Rt,{className:"text-base",children:"Create brand new characters for this story"})]}),i.jsxs(qe,{className:"pt-4",children:[i.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Design new characters from scratch"]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Choose any illustration style"]}),i.jsxs("li",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-primary",children:"â"}),"Fresh adventure with new faces"]})]}),i.jsxs(le,{variant:"outline",className:"w-full mt-6",onClick:f=>{f.stopPropagation(),h()},children:[i.jsx(Yc,{className:"w-4 h-4 mr-2"}),"Create New Characters"]})]})]})]})]})]})},HVt=()=>{const e=wt(),[t]=ka(),r=t.get("mode")||"kibbi",n=t.get("id"),{user:a,loading:s}=er(),[o,l]=k.useState(!0),[c,u]=k.useState([]);k.useEffect(()=>{!s&&!a&&e("/login")},[a,s,e]),k.useEffect(()=>{a&&(async()=>
8193{if(!a)return;const{data:y,error:m}=await oe.from("stories").select("id, story_title, cover_image_thumbnail_url, cover_image_url, illustration_style, detected_characters, character_descriptions").eq("user_id",a.id).in("status",["completed","review","ready","page_review"]).not("character_descriptions","is",null).order("updated_at",{ascending:!1});if(m)console.error("Error loading stories:",m);else{const v=(y||[]).map(g=>({...g,detected_characters:typeof g.detected_characters=="string"?JSON.parse(g.detected_characters):g.detected_characters}));u(v)}l(!1)})()},[a]);const d=p=>{if(!p)return"Unknown";const y=C0.find(m=>m.key===p);return(y==null?void 0:y.name)||p},h=p=>p.detected_characters&&Array.isArray(p.detected_characters)&&p.detected_characters.length>0?p.detected_characters.length:p.character_descriptions?p.character_descriptions.split(` 8194`).filter(m=>m.trim()).length:0,f=p=>{e(`/app/character-selection?sourceId=${p}&mode=${r}${n?`&id=${n}`:""}`)};return s||o?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Choose Story | Kibbi"}),i.jsx("meta",{name:"description",content:"Select a story to import characters from."})]}),i.jsx(Ba,{}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-5xl",children:[i.jsxs(le,{variant:"ghost",onClick:()=>e(`/app/character-import-choice?mode=${r}${n?`&id=${n}`:""}`),className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[i.jsx(ea,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsxs("div",{className:"text-center mb-10",children:[i.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-3",children:"Choose a Story"}),i.jsx("p",{className:"text-muted-foreground text-lg",children:"Select a story to import characters from"})]}),c.length===0?i.jsxs("div",{className:"text-center py-12",children:[i.jsx(xr,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),i.jsx("p",{className:"text-muted-foreground",children:"No completed stories with characters found."})]}):i.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map(p=>{const y=h(p),m=p.cover_image_thumbnail_url||p.cover_image_url;return i.jsxs(Ie,{className:"cursor-pointer transition-all hover:shadow-lg hover:border-primary/50 hover:scale-[1.02] overflow-hidden",onClick:()=>f(p.id),children:[m&&i.jsx("div",{className:"aspect-[4/3] overflow-hidden bg-muted",children:i.jsx("img",{src:m,alt:p.story_title||"Story cover",className:"w-full h-full object-cover"})}),i.jsxs(qe,{className:"p-4",children:[i.jsx("h3",{className:"font-semibold text-foreground mb-2 line-clamp-2",children:p.story_title||"Untitled Story"}),i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsxs(Re,{variant:"secondary",className:"flex items-center gap-1",children:[i.jsx(Xi,{className:"w-3 h-3"}),y," character",y!==1?"s":""]}),p.illustration_style&&i.jsx(Re,{variant:"outline",className:"text-xs",children:d(p.illustration_style)})]})]})]},p.id)})})]})]})};function VVt(e,t){if(!e)return null;const r=t.map(a=>a.name.toLowerCase());return e.split(/(?=^[A-Z][a-zA-Z\s]+:)/gm).filter(a=>{const s=a.match(/^([A-Za-z\s]+):/);return s?r.includes(s[1].trim().toLowerCase()):!1}).join(` 8195 8196`)||null}function WVt({userId:e,sourceStory:t,selectedCharacters:r,mode:n,useSameStyle:a,entitlementType:s}){const o=r.map(c=>`${c.name}: ${c.suggested_description}`).join(` 8197 8198`),l=r.map(({name:c,context_snippet:u,suggested_description:d})=>({name:c,...u!==void 0?{context_snippet:u}:{},suggested_description:d}));return{user_id:e,imported_from_story_id:t.id,detected_characters:l,character_descriptions:o,character_profiles:VVt(t.character_profiles,r),age_range:t.age_range,language:t.language,reading_level:t.reading_level,status:"draft",story_source:n==="byos"?"user_provided":"kibbi",illustration_style:a&&t.illustration_style?t.illustration_style:null,author_name:t.author_name,is_free_sample:s==="free_sample",intended_entitlement:s,is_overage:s==="overage"}}const GVt=()=>{const e=wt(),[t]=ka(),r=t.get("sourceId"),n=t.get("mode")||"kibbi",a=t.get("id"),{user:s,loading:o}=er(),{toast:l}=Xt(),{entitlementType:c}=ch(),[u,d]=k.useState(!0),[h,f]=k.useState(!1),[p,y]=k.useState(null),[m,v]=k.useState([]),[g,b]=k.useState(!0);k.useEffect(()=>{!o&&!s&&e("/login")}
8198,[s,o,e]),k.useEffect(()=>{s&&r&&(async()=>{if(!r||!s)return;const{data:M,error:z}=await oe.from("stories").select("id, story_title, illustration_style, detected_characters, character_descriptions, character_profiles, age_range, language, reading_level, page_illustrations, author_name").eq("id",r).eq("user_id",s.id).single();if(z){console.error("Error loading source story:",z),l({title:"Error",description:"Could not load the selected story.",variant:"destructive"}),e(`/app/character-source?mode=${n}`);return}const Y=typeof M.detected_characters=="string"?JSON.parse(M.detected_characters):M.detected_characters,W=typeof M.page_illustrations=="string"?JSON.parse(M.page_illustrations):M.page_illustrations;y({...M,detected_characters:Y,page_illustrations:W});const ee=Y&&Array.isArray(Y)?Y.map(Z=>Z.name):[];if(Y&&Array.isArray(Y)&&Y.length>0)v(Y.map(Z=>({...Z,selected:!0,thumbnail:_(Z.name,W,ee)})));else if(M.character_descriptions){const Z=w(M.character_descriptions),V=Z.map(ne=>ne.name);v(Z.map(ne=>({...ne,selected:!0,thumbnail:_(ne.name,W,V)})))}d(!1)})()},[s,r,n,e,l]);const x=(F,M)=>{const z=/\([^)]*Character\)\s*:/gi,Y=F.match(z);if(Y&&Y.length>0)return Y.length;const W=F.toLowerCase();return M.filter(ee=>W.includes(ee.toLowerCase())).length},_=(F,M,z)=>{if(!M)return;const Y=F.toLowerCase(),W=["close-up","close up","portrait","medium shot","closeup"],ee=["wide establishing","establishing shot","wide shot","panoramic"],Z=[];for(const[R,H]of Object.entries(M)){const re=((H==null?void 0:H.prompt)||"").toLowerCase();if(!re.includes(Y))continue;let ae=0;H.status==="complete"&&(ae+=5);const D=x((H==null?void 0:H.prompt)||"",z);
8198D===1?ae+=20:D===2&&(ae+=10);for(const U of W)if(re.includes(U)){ae+=10;break}for(const U of ee)if(re.includes(U)){ae-=5;break}Z.push({pageNum:parseInt(R,10),score:ae,illustration:H})}if(Z.length===0)return;Z.sort((R,H)=>H.score!==R.score?H.score-R.score:R.pageNum-H.pageNum);const V=Z[0].illustration,ne=V.image_url;if(!ne)return;const P=V.upscaled_url?`${ne} 1x, ${V.upscaled_url} 2x`:void 0;return{src:ne,srcSet:P}},w=F=>F.split(` 8199`).filter(z=>z.trim()).map(z=>{var W;const Y=z.match(/^(?:\d+\.\s*)?([^:(]+)(?:\s*\([^)]+\))?:\s*(.+)$/);return Y?{name:Y[1].trim(),suggested_description:Y[2].trim(),selected:!0}:{name:((W=z.split(":")[0])==null?void 0:W.trim())||"Unknown",suggested_description:z,selected:!0}}),j=F=>{if(!F)return"Unknown";const M=C0.find(z=>z.key===F);return(M==null?void 0:M.name)||F},E=F=>{v(M=>M.map((z,Y)=>Y===F?{...z,selected:!z.selected}:z))},C=()=>{v(F=>F.map(M=>({...M,selected:!0})))},N=()=>{v(F=>F.map(M=>({...M,selected:!1})))},A=m.filter(F=>F.selected).length,$=async()=>{if(!(!s||!p||A===0)){f(!0);try{const F=m.filter(W=>W.selected),M=WVt({userId:s.id,sourceStory:p,selectedCharacters:F,mode:n,useSameStyle:g,entitlementType:c}),{data:z,error:Y}=await oe.from("stories").insert(M).select().single();if(Y)throw Y;e(n==="kibbi"?`/app/profile-selection?id=${z.id}`:`/app/paste-story?id=${z.id}`)}catch(F){console.error("Error creating story with imported characters:",F),l({title:"Error",description:"Failed to import characters. Please try again.",variant:"destructive"})}finally{f(!1)}}};if(o||u)return i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsx(Me,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(!p)return null;const T=p.illustration_style;return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsxs(qt,{children:[i.jsx("title",{children:"Select Characters | Kibbi"}),i.jsx("meta",{name:"description",content:"Choose which characters to import into your new story."})]}),i.jsx(Ba,{}),i.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-2xl",children:[i.jsxs(le,{variant:"ghost",onClick:()=>e(`/app/character-source?mode=${n}${a?`&id=${a}`:""}`),className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[i.jsx(ea,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsxs("div",{className:"text-center mb-8",children:[i.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-3",children:"Select Characters"}),i.jsxs("p",{className:"text-muted-foreground text-lg",children:['From "',p.story_title||"Untitled Story",'"']})]}),T&&i.jsxs(Eo,{className:"mb-6",children:[i.jsx(Fs,{className:"h-4 w-4"}),i.jsx(i4,{children:"Illustration Style"}),i.jsxs(Co,{children:[i.jsxs("p",{className:"mb-3",children:['"',p.story_title,'" uses ',i.jsx("strong",{children:j(T)})," style. Characters may look slightly different if you choose a different style."]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Dk,{id:"use-same-style",checked:g,onCheckedChange:F=>b(F===!0)}),i.jsxs("label",{htmlFor:"use-same-style",className:"text-sm cursor-pointer",children:["Use the same style (",j(T),")"]})]})]})]}),i.jsx("div",{className:"space-y-3 mb-6",children:m.map((F,M)=>{var z;return i.jsxs("div",{className:`relative flex items-start gap-3 p-3 border rounded-lg cursor-pointer transition-colors ${F.selected?"border-primary/50 bg-primary/5":"border-border hover:border-muted-foreground/30"}`,onClick:()=>E(M),children:[i.jsx(Dk,{checked:F.selected,onCheckedChange:()=>E(M),className:"mt-1"}),i.jsx("div",{className:"w-[100px] h-[150px] rounded-lg overflow-hidden flex-shrink-0 bg-muted",children:(z=F.thumbnail)!=null&&z.src?i.jsx("img",{src:F.thumbnail.src,srcSet:F.thumbnail.srcSet,sizes:"100px",width:100,height:150,alt:F.name,className:"w-full h-full object-cover",decoding:"async",loading:"lazy"}):i.jsx("div",{className:"w-full h-full flex items-center justify-center",children:i.jsx(xl,{className:"w-12 h-12 text-muted-foreground"})})}),i.jsxs("div",{className:"flex-1 min-w-0 pr-8",children:[i.jsx("h3",{className:"font-medium text-foreground",children:F.name}),i.jsx("p",{className:"text-sm text-muted-foreground whitespace-normal break-words mt-1",children:F.suggested_description})]}),F.selected&&i.jsx(_r,{className:"w-5 h-5 text-primary absolute top-3 right-3"})]},M)})}),i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsxs("div",{className:"flex gap-2",children:[i.jsx(le,{variant:"outline",size:"sm",onClick:C,children:"Select All"}),i.jsx(le,{variant:"outline",size:"sm",onClick:N,children:"Clear All"})]}),i.jsxs("span",{className:"text-sm text-muted-foreground",children:[A," of ",m.length," selected"]})]}),i.jsx(le,{onClick:$,disabled:A===0||h,className:"w-full",size:"lg",children:h?i.jsxs(i.Fragment,{children:[i.jsx(Me,{className:"w-4 h-4 mr-2 animate-spin"}),"Creating Story..."]}):`Continue with ${A} Character${A!==1?"s":""}`})]})]})},KVt=()=>{const e=wt(),t=wa(),{toast:r}=Xt(),{activeJobId:n,activeJobStoryId:a,jobStartTime:s,isGenerating:o,setJobProgress:l,setJobStage:c,stopJobTracking:u,bookClubTargetId:d}=Zs(),h=k.useRef(null),f=k.useRef(null),p=k.useRef(0),y=k.useRef(""),m=k.useRef(0),v=k.useRef(!1),g=k.useRef(null),b=k.useRef(l),x=k.useRef(c),_=k.useRef(u),w=k.useRef(r),j=k.useRef(e),E=k.useRef(t),C=k.useRef(a),N=k.useRef(d),A=z=>{b.current(z);const Y=z<25?0:z<55?1:z<90?2:3;x.current(Y)},T=["character_profiles","character_descriptions","story_content_creative","linguistic_rewrite"].reduce((z,Y,W)=>({...z,[Y]:W}),{}),F=z=>z==="character_profiles"?10:z==="character_descriptions"?15:z==="story_content_creative"?40:z==="linguistic_rewrite"?55:99,M=z=>z==="character_profiles"?4:z==="character_descriptions"?6:z==="story_content_creative"?10:z==="linguistic_rewrite"?18:8;return k.useEffect(()=>{b.current=l,x.current=c,_.current=u,w.current=r,j.current=e,E.current=t,C.current=a,N.current=d,g.current=s}),k.useEffect(()=>{if(!o||!n){h.current&&(clearInterval(h.current),h.current=null),f.current&&(clearInterval(f.current),f.current=null),p.current=0,y.current="",m.current=0,v.current=!1;return}
8199console.log("[BackgroundJobTracker] Starting to track job:",n);const z=()=>{const R=g.current;if(!R)return 0;const re=(Date.now()-R)/1e3;if(re<30)return re/30*20;if(re<300)return 20+(re-30)/270*30;if(re<420)return 50+(re-300)/120*25;if(re<540)return 75+(re-420)/120*17;const ae=re-540;return 92+Math.min(7,ae*.05)},Y=()=>{const R=F(y.current),H=M(y.current);return Math.min(R,m.current+H)};let W=0,ee=!1,Z=!1,V;const ne=900,P=async()=>{if(!(ee||Z)){if(W++,W>ne){console.log("[BackgroundJobTracker] Max attempts reached, stopping"),h.current&&clearInterval(h.current),f.current&&clearInterval(f.current),h.current=null,f.current=null,w.current({title:"Story Generation Failed",description:"Story generation timed out. Please try again.",variant:"destructive",duration:1e4}),_.current();return}Z=!0;try{const{data:R,error:H}=await oe.from("story_generation_jobs").select("status, stage, progress, error_message").eq("id",n).maybeSingle();if(ee)return;if(H){console.error("[BackgroundJobTracker] Error checking job status:",H);return}if(!R){console.log("[BackgroundJobTracker] Job not found yet, waiting...");return}if(v.current=!0,R.stage){const D=T[R.stage]??-1,U=T[y.current]??-1;D>=U&&(y.current=R.stage)}if(R.progress!==null){const D=Number(R.progress);D>=m.current&&(m.current=D)}const re=m.current,ae=Y();if(p.current>ae+8?(p.current=ae,A(ae)):re>p.current&&(p.current=re,A(re)),R.status==="completed"){console.log("[BackgroundJobTracker] Text job completed; checking preview readiness"),h.current&&clearInterval(h.current),f.current&&clearInterval(f.current),h.current=null,f.current=null,A(55);const D=C.current;await(async()=>{if(!D){_.current();return}const se=6e5,te=8*60*1e3,Q=2e3,K=Date.now(),{data:ue}=await oe.from("stories").select("intended_entitlement, user_id, has_purchased").eq("id",D).maybeSingle();if(ee)return;const B=ue==null?void 0:ue.user_id;let pe=!1;if(B){const{data:ie}=await oe.from("user_roles").select("role").eq("user_id",B).eq("role","admin").maybeSingle();pe=!!ie}if(ee)return;const G=(ue==null?void 0:ue.intended_entitlement)||"membership_included",I=G==="book_club_teaser",L=pe?1/0:are({intended_entitlement:G,has_purchased:ue==null?void 0:ue.has_purchased}),q=L===1/0;console.log(`[BackgroundJobTracker] Readiness gate: entitlement=${G}, isAdmin=${pe}, needAllImages=${q}, coverOnly=${I}`);let X=!1;for(;!ee&&Date.now()-K<se;){const[{data:ie},{data:J}]=await Promise.all([oe.from("stories").select("cover_image_url, page_illustrations, qa_status, story_content").eq("id",D).maybeSingle(),oe.from("story_generation_queue").select("status").eq("story_id",D).eq("step","breyta_images")]);if(ee)return;if(!ie){await new Promise(rr=>setTimeout(rr,Q));continue}const fe=Object.keys(wl(ie.story_content)).length>0;if(Use({textReady:fe,entitlement:G,isBookClubTarget:N.current===D})){console.log("[BackgroundJobTracker] Text-first reveal: opening BookPreview"),X=!0;break}const ve=!!ie.cover_image_url,ge=ie.page_illustrations||{},de=new Set,ye=[];for(const rr of Object.keys(ge).sort((Oe,rt)=>{const nt=/^\d+$/.test(Oe),yt=/^\d+$/.test(rt);return nt!==yt?nt?-1:1:0})){const Oe=Number(rr.replace(/\D/g,""));isNaN(Oe)||de.has(Oe)||(de.add(Oe),ye.push(ge[rr]))}const _e=ye.length,Fe=ye.filter(rr=>(rr==null?void 0:rr.status)==="complete"&&(rr==null?void 0:rr.image_url)).length,ht=ye.filter(rr=>(rr==null?void 0:rr.status)==="failed").length,_t=Fe+ht,xe=I?0:q?_e:Math.min(L,_e),je=I||_e>0&&Fe>=xe,ut=ie.qa_status,Ot=_e>0&&_t>=_e,lt=I||Ot&&ht>0,et=zse(ut,{qaCouldNotRun:lt,isAdmin:pe});if(console.log(`[BackgroundJobTracker] Readiness: cover=${ve}, images=${Fe}/${xe} (failed=${ht}), qa=${ut}`),ve&&je&&et){console.log("[BackgroundJobTracker] All readiness checks passed!");break}const It=Date.now()-K,wr=Math.min(97,55+It/te*42);A(wr),await new Promise(rr=>setTimeout(rr,Q))}if(!ee)if(b.current(100),x.current(3),w.current({title:"Your Story is Ready!",description:X?"Opening your story â the pictures are on their way...":"Creating your book now..."}),X&&D)V=setTimeout(()=>{ee||(rNe({...E.current,storyId:D})||j.current(`/app/book-preview?id=${D}`,{replace:!0}),_.current())},500);else if(D&&!X&&!E.current.pathname.includes("/book-preview")){const J=!(G==="free_sample")&&N.current===D?"/library":`/app/book-preview?id=${D}`;V=setTimeout(()=>{ee||(j.current(J,{replace:!0}),_.current())},500)}else _.current()})();return}
8199else if(R.status==="failed"){console.log("[BackgroundJobTracker] Job failed:",R.error_message),h.current&&clearInterval(h.current),f.current&&clearInterval(f.current),h.current=null,f.current=null;const D=(R.error_message||"Story generation failed").replace("Edge Function returned a non-2xx status code","The story engine is temporarily unavailable").replace("502 Bad Gateway","The story engine is temporarily unavailable");w.current({title:"Story Generation Failed",description:`${D}. Please try again.`,variant:"destructive",duration:1e4}),_.current()}}catch(R){console.error("[BackgroundJobTracker] Poll error:",R)}finally{Z=!1}}};return P(),f.current=setInterval(()=>{if(!v.current)return;const R=z(),H=Y(),re=Math.min(R,H),ae=p.current>H+8?H:Math.max(re,p.current);p.current=ae,A(ae)},500),h.current=setInterval(P,3e3),()=>{ee=!0,clearTimeout(V),h.current&&(clearInterval(h.current),h.current=null),f.current&&(clearInterval(f.current),f.current=null)}},[o,n]),null},YVt=()=>{const{toast:e}=Xt();return k.useEffect(()=>{const t=new URLSearchParams(window.location.search),r=t.get("setup_intent"),n=t.get("redirect_status");if(!r)return;const a=()=>{t.delete("setup_intent"),t.delete("setup_intent_client_secret"),t.delete("redirect_status");const s=t.toString();window.history.replaceState({},document.title,window.location.pathname+(s?`?${s}`:""))};if(n!=="succeeded"){a(),e({title:"Card not saved",description:"The card wasn't confirmed. Please try adding it again.",variant:"destructive"});return}(async()=>{const{data:s,error:o}=await oe.functions.invoke("create-update-payment-method",{body:{setup_intent_id:r}});if(o||s!=null&&s.error||(s==null?void 0:s.success)!==!0){e({title:"Card needs one more step",description:"We couldn't set your new card as the default. Refresh this page to try again.",variant:"destructive"});return}a(),window.dispatchEvent(new Event(PH)),e({title:"Payment method updated!",description:"Your new card will be used for future charges."})})()},[]),null},XVt=new Set(["/app/book-preview","/orders","/library","/dashboard"]);function ZVt(){var s;const{pathname:e,search:t}=wa(),r=k.useRef(null),n=k.useRef(new Set);if(XVt.has(e)){const o=new URLSearchParams(t),l=o.get("payment_intent"),c=o.get("payment_intent_client_secret");l&&c&&soe(c)===l&&(r.current={id:l,secret:c})}const a=(s=r.current)==null?void 0:s.id;return k.useEffect(()=>{const o=r.current;!o||n.current.has(o.id)||(n.current.add(o.id),(async()=>{const c=await Dv("pk_live_51RCFHxACvtIVItsaBYp3zmtR8bGqG74cndw9Qg2IpS3My4lapcnaUlNryFmE7Cff5wrTvoP4ssqqTcM4cdrxMitW00I0Aao1fS");if(!c)return;const{paymentIntent:u,error:d}=await c.retrievePaymentIntent(o.secret);if(d||(u==null?void 0:u.id)!==o.id){console.warn("[GoogleAds] Could not verify purchase return; no conversion sent");return}await p4(u)})().catch(()=>{console.warn("[GoogleAds] Purchase return tracking unavailable; checkout continues")}))},[a]),null}function QVt(){const{subscriptionStatus:e,user:t}=er(),r=wt(),[n,a]=k.useState(!1),s=!!t&&!!(e!=null&&e.paymentFailedAt)&&!n,o=()=>{a(!0),r("/subscription")};return i.jsx(Xr,{open:s,onOpenChange:l=>{l||a(!0)},children:i.jsxs(Ur,{className:"sm:max-w-md",children:[i.jsxs(Nr,{children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-destructive/10",children:i.jsx(Ya,{className:"h-5 w-5 text-destructive"})}),i.jsx(Tr,{children:"Payment didn't go through"})]}),i.jsx(ra,{className:"pt-2",children:"Your recent payment couldn't be processed. Please update your payment method to continue using all features without interruption."})]}),i.jsxs(_2,{className:"flex-col gap-2 sm:flex-row",children:[i.jsx(le,{variant:"outline",onClick:()=>a(!0),children:"Remind me later"}),i.jsx(le,{onClick:o,children:"Update Payment Method"})]})]})})}const JVt=()=>{const e=wa(),t=k.useRef(!0);return k.useEffect(()=>{if(t.current){t.current=!1;return}Jae("PageView")},[e.pathname,e.search]),null},XQ=oe.auth.oauth;function eWt(){var u,d;const[e]=ka(),t=e.get("authorization_id")??"",[r,n]=k.useState(null),[a,s]=k.useState(null),[o,l]=k.useState(!1);k.useEffect(()=>{let h=!0;return(async()=>
8199{if(!t){s("Missing authorization_id");return}const{data:f}=await oe.auth.getSession();if(!f.session){const v=window.location.pathname+window.location.search;window.location.href="/login?redirect="+encodeURIComponent(v);return}const{data:p,error:y}=await XQ.getAuthorizationDetails(t);if(!h)return;if(y){s(y.message??"Could not load authorization request.");return}const m=(p==null?void 0:p.redirect_url)??(p==null?void 0:p.redirect_to);if(m&&!(p!=null&&p.client)){window.location.href=m;return}n(p)})(),()=>{h=!1}},[t]);async function c(h){l(!0);const{data:f,error:p}=h?await XQ.approveAuthorization(t):await XQ.denyAuthorization(t);if(p){l(!1),s(p.message??"Could not complete authorization.");return}const y=(f==null?void 0:f.redirect_url)??(f==null?void 0:f.redirect_to);if(!y){l(!1),s("No redirect returned by the authorization server.");return}window.location.href=y}return i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx("header",{className:"border-b border-border px-6 py-4 flex items-center",children:i.jsx("a",{href:"/",className:"flex items-center gap-2",children:i.jsx("img",{src:va,alt:"kibbi",className:"h-8"})})}),i.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-12",children:i.jsx("div",{className:"max-w-md w-full space-y-6 text-center",children:a?i.jsxs(i.Fragment,{children:[i.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:"Could not load this authorization request"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}):r?i.jsxs(i.Fragment,{children:[i.jsxs("h1",{className:"text-2xl font-semibold text-foreground",children:["Connect ",((u=r.client)==null?void 0:u.name)??"an app"," to Kibbi"]}),i.jsxs("p",{className:"text-base text-muted-foreground",children:["This lets ",((d=r.client)==null?void 0:d.name)??"the client"," use Kibbi as you â it can read your stories and subscription status through the tools you enable. It does not bypass Kibbi's permissions."]}),i.jsxs("div",{className:"flex flex-col gap-3 pt-2",children:[i.jsx(le,{className:"w-full rounded-full",size:"lg",disabled:o,onClick:()=>c(!0),children:o?"Workingâ¦":"Approve"}),i.jsx(le,{className:"w-full rounded-full",variant:"outline",size:"lg",disabled:o,onClick:()=>c(!1),children:"Cancel connection"})]})]}):i.jsx("p",{className:"text-muted-foreground",children:"Loadingâ¦"})})})]})}const tWt=new NFe,rWt=()=>i.jsx(PFe,{client:tWt,children:i.jsxs(dFe,{children:[i.jsx(YOe,{}),i.jsx(CRe,{}),i.jsx(z$e,{children:i.jsx(ZUe,{children:i.jsx(fVe,{children:i.jsx(QUe,{children:i.jsx(V$e,{children:i.jsxs(kVe,{children:[i.jsxs(P$e,{children:[i.jsx(Ze,{path:"/",element:i.jsx(YYe,{})}),i.jsx(Ze,{path:"/personalized-books-for-kids",element:i.jsx(XYe,{})}),i.jsx(Ze,{path:"/ai-illustration-for-childrens-books",element:i.jsx(tXe,{})}),i.jsx(Ze,{path:"/pricing",element:i.jsx(iXe,{})}),i.jsx(Ze,{path:"/research",element:i.jsx(hXe,{})}),i.jsx(Ze,{path:"/blog",element:i.jsx(fXe,{})}),i.jsx(Ze,{path:"/post/:slug",element:i.jsx(Ast,{})}),i.jsx(Ze,{path:"/import-blog",element:i.jsx(Mst,{})}),i.jsx(Ze,{path:"/auto-categorize",element:i.jsx(Ist,{})}),i.jsx(Ze,{path:"/auto-link-posts",element:i.jsx(Pst,{})}),i.jsx(Ze,{path:"/update-authors",element:i.jsx(Lst,{})}),i.jsx(Ze,{path:"/fix-blog-content",element:i.jsx(Ost,{})}),i.jsx(Ze,{path:"/delete-post",element:i.jsx(Rst,{})}),i.jsx(Ze,{path:"/update-blog-links",element:i.jsx(Dst,{})}),i.jsx(Ze,{path:"/update-page-prompt",element:i.jsx(Fst,{})}),i.jsx(Ze,{path:"/admin/illustrations",element:i.jsx(Wst,{})}),i.jsx(Ze,{path:"/admin/stories",element:i.jsx(Fot,{})}),i.jsx(Ze,{path:"/admin/categorize-stories",element:i.jsx($ot,{})}),i.jsx(Ze,{path:"/admin/orders",element:i.jsx(qot,{})}),i.jsx(Ze,{path:"/admin/chatbot-conversations",element:i.jsx(q_t,{})}),i.jsx(Ze,{path:"/admin/article-suggestions",element:i.jsx(Uot,{})}),i.jsx(Ze,{path:"/admin/help-articles",element:i.jsx(U_t,{})}),i.jsx(Ze,{path:"/admin/funnel",element:i.jsx(mHt,{})}),i.jsx(Ze,{path:"/admin/edits",element:i.jsx(bHt,{})}),i.jsx(Ze,{path:"/admin/feedback",element:i.jsx(Xlt,{})}),i.jsx(Ze,{path:"/admin/reviews",element:i.jsx(Zlt,{})}),i.jsx(Ze,{path:"/admin/users",element:i.jsx(hct,{})}),i.jsx(Ze,{path:"/admin/marketing-pages",element:i.jsx(EHt,{})}),i.jsx(Ze,{path:"/admin/scheduled-stories",element:i.jsx(FHt,{})}),i.jsx(Ze,{path:"/admin/fix-missing-images",element:i.jsx($Ht,{})}),i.jsx(Ze,{path:"/authors/harper-jules",element:i.jsx(fct,{})}),i.jsx(Ze,{path:"/privacy-policy",element:i.jsx(mct,{})}),i.jsx(Ze,{path:"/terms-of-service",element:i.jsx(gct,{})}),i.jsx(Ze,{path:"/about",element:i.jsx(vct,{})}),i.jsx(Ze,{path:"/contact",element:i.jsx(Ipt,{})}),i.jsx(Ze,{path:"/help",element:i.jsx(S_t,{})}),i.jsx(Ze,{path:"/help/search",element:i.jsx(P_t,{})}),i.jsx(Ze,{path:"/help/:categorySlug",element:i.jsx(C_t,{})}),i.jsx(Ze,{path:"/help/:categorySlug/:articleSlug",element:i.jsx(I_t,{})}),i.jsx(Ze,{path:"/help/edit/:categorySlug/:articleSlug",element:i.jsx(B_t,{})}),i.jsx(Ze,{path:"/login",element:i.jsx(Lpt,{})}),i.jsx(Ze,{path:"/.lovable/oauth/consent",element:i.jsx(eWt,{})}),i.jsx(Ze,{path:"/forgot-password",element:i.jsx(Rpt,{})}),i.jsx(Ze,{path:"/reset-password",element:i.jsx(Fpt,{})}),i.jsx(Ze,{path:"/signup",element:i.jsx(Bpt,{})}),i.jsx(Ze,{path:"/welcome",element:i.jsx(ty,{to:"/app/profile-selection",replace:!0})}),i.jsx(Ze,{path:"/feedback",element:i.jsx(BHt,{})}),i.jsx(Ze,{path:"/library",element:i.jsx(lmt,{})}),i.jsx(Ze,{path:"/dashboard",element:i.jsx(zVt,{children:i.jsx(bmt,{})})}),i.jsx(Ze,{path:"/free-kids-stories",element:i.jsx(wmt,{})}),i.jsx(Ze,{path:"/free-kids-stories/:slug",element:i.jsx(kmt,{})}),i.jsx(Ze,{path:"/app/disclaimer",element:i.jsx(ty,{to:"/app/story-mode",replace:!0})}),i.jsx(Ze,{path:"/app/story-mode",element:i.jsx(UVt,{})}),i.jsx(Ze,{path:"/app/character-import-choice",element:i.jsx(qVt,{})}),i.jsx(Ze,{path:"/app/character-source",element:i.jsx(HVt,{})}),i.jsx(Ze,{path:"/app/character-selection",element:i.jsx(GVt,{})}),i.jsx(Ze,{path:"/app/paste-story",element:i.jsx(jmt,{})}),i.jsx(Ze,{path:"/app/review-pages",element:i.jsx(Lmt,{})}),i.jsx(Ze,{path:"/app/review-characters",element:i.jsx(Rmt,{})}),i.jsx(Ze,{path:"/app/story-metadata",element:i.jsx(j1t,{})}),i.jsx(Ze,{path:"/app/profile-selection",element:i.jsx(E1t,{})}),i.jsx(Ze,{path:"/app/language-selection",element:i.jsx(C1t,{})}),i.jsx(Ze,{path:"/app/reading-level-selection",element:i.jsx(P1t,{})}),i.jsx(Ze,{path:"/app/style-selection",element:i.jsx(c0t,{})}),i.jsx(Ze,{path:"/app/story-input",element:i.jsx(b0t,{})}),i.jsx(Ze,{path:"/app/story-review",element:i.jsx(ty,{to:"/library",replace:!0})}),i.jsx(Ze,{path:"/app/book-preview",element:i.jsx(A0e,{})}),i.jsx(Ze,{path:"/app/story-reader",element:i.jsx(hkt,{})}),i.jsx(Ze,{path:"/shared/story/:token",element:i.jsx(A0e,{})}),i.jsx(Ze,{path:"/orders",element:i.jsx(Ekt,{})}),i.jsx(Ze,{path:"/order-print/:storyId",element:i.jsx(d_t,{})}),i.jsx(Ze,{path:"/order-print/:storyId/payment",element:i.jsx(f_t,{})}),i.jsx(Ze,{path:"/profile",element:i.jsx(x_t,{})}),i.jsx(Ze,{path:"/billing",element:i.jsx(k_t,{})}),i.jsx(Ze,{path:"/subscription",element:i.jsx(ty,{to:"/billing",replace:!0})}),i.jsx(Ze,{path:"/p/:slug",element:i.jsx(eVt,{})}),i.jsx(Ze,{path:"/guides",element:i.jsx(rVt,{})}),i.jsx(Ze,{path:"/email-preview",element:i.jsx(RVt,{})}),i.jsx(Ze,{path:"/lp/kids-book-subscription",element:i.jsx(nVt,{})}),i.jsx(Ze,{path:"/lp/monthly-book-club-kids",element:i.jsx(aVt,{})}
8199),i.jsx(Ze,{path:"/lp/new-sibling-book",element:i.jsx(iVt,{})}),i.jsx(Ze,{path:"/lp/books-about-feelings",element:i.jsx(sVt,{})}),i.jsx(Ze,{path:"/lp/decodable-books",element:i.jsx(cVt,{})}),i.jsx(Ze,{path:"/lp/grandparent-book-gift",element:i.jsx(uVt,{})}),i.jsx(Ze,{path:"/lp/mothers-day-book-gift",element:i.jsx(dVt,{})}),i.jsx(Ze,{path:"/lp/fathers-day-book-gift",element:i.jsx(hVt,{})}),i.jsx(Ze,{path:"/lp/wonderbly-alternative",element:i.jsx(fVt,{})}),i.jsx(Ze,{path:"/lp/personalized-early-reader",element:i.jsx(pVt,{})}),i.jsx(Ze,{path:"/lp/starting-school-book",element:i.jsx(mVt,{})}),i.jsx(Ze,{path:"/name-book",element:i.jsx(kVt,{})}),i.jsx(Ze,{path:"/christmas-book-for-kids",element:i.jsx(IVt,{})}),i.jsx(Ze,{path:"*",element:i.jsx(pct,{})})]}),i.jsx(KVt,{}),i.jsx(YVt,{}),i.jsx(ZVt,{}),i.jsx(QVt,{}),i.jsx(BVt,{}),i.jsx(JVt,{})]})})})})})})]})});HUe();AUe();cwe(document.getElementById("root")).render(i.jsx(rWt,{}));
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.